Skip to content

Commit 0c5ae6a

Browse files
committed
Add work objects support
1 parent a8f837f commit 0c5ae6a

File tree

24 files changed

+3286
-1579
lines changed

24 files changed

+3286
-1579
lines changed

json-logs/samples/api/chat.unfurl.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,15 @@
22
"ok": false,
33
"error": "",
44
"needed": "",
5-
"provided": ""
5+
"provided": "",
6+
"callstack": "",
7+
"warning": "",
8+
"response_metadata": {
9+
"messages": [
10+
""
11+
],
12+
"warnings": [
13+
""
14+
]
15+
}
616
}

json-logs/samples/api/conversations.list.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,7 @@
115115
},
116116
"error": "",
117117
"needed": "",
118-
"provided": ""
118+
"provided": "",
119+
"arg": "",
120+
"callstack": ""
119121
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ok": false,
3+
"warning": "",
4+
"error": "",
5+
"needed": "",
6+
"provided": "",
7+
"response_metadata": {
8+
"messages": [
9+
""
10+
]
11+
}
12+
}

json-logs/samples/api/users.info.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@
7979
"who_can_share_contact_card": "",
8080
"is_workflow_bot": false,
8181
"is_invited_user": false,
82-
"is_connector_bot": false
82+
"is_connector_bot": false,
83+
"teams": [
84+
"T00000000"
85+
],
86+
"enterprise_id": "E00000000",
87+
"enterprise_name": ""
8388
},
8489
"error": "",
8590
"needed": "",

slack-api-client/src/main/java/com/slack/api/methods/AsyncMethodsClient.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
import com.slack.api.methods.request.dialog.DialogOpenRequest;
7777
import com.slack.api.methods.request.dnd.*;
7878
import com.slack.api.methods.request.emoji.EmojiListRequest;
79+
import com.slack.api.methods.request.entity.EntityPresentDetailsRequest;
7980
import com.slack.api.methods.request.files.*;
8081
import com.slack.api.methods.request.files.remote.*;
8182
import com.slack.api.methods.request.functions.FunctionsCompleteErrorRequest;
@@ -197,6 +198,7 @@
197198
import com.slack.api.methods.response.dialog.DialogOpenResponse;
198199
import com.slack.api.methods.response.dnd.*;
199200
import com.slack.api.methods.response.emoji.EmojiListResponse;
201+
import com.slack.api.methods.response.entity.EntityPresentDetailsResponse;
200202
import com.slack.api.methods.response.files.*;
201203
import com.slack.api.methods.response.files.remote.*;
202204
import com.slack.api.methods.response.functions.FunctionsCompleteErrorResponse;
@@ -244,6 +246,7 @@
244246
import com.slack.api.methods.response.workflows.WorkflowsStepFailedResponse;
245247
import com.slack.api.methods.response.workflows.WorkflowsUpdateStepResponse;
246248

249+
import java.io.IOException;
247250
import java.util.concurrent.CompletableFuture;
248251

249252
/**
@@ -1565,4 +1568,12 @@ CompletableFuture<AdminConversationsWhitelistListGroupsLinkedToChannelResponse>
15651568

15661569
CompletableFuture<WorkflowsUpdateStepResponse> workflowsUpdateStep(RequestConfigurator<WorkflowsUpdateStepRequest.WorkflowsUpdateStepRequestBuilder> req);
15671570

1571+
// ------------------------------
1572+
// work object entities
1573+
// ------------------------------
1574+
1575+
CompletableFuture<EntityPresentDetailsResponse> entityPresentDetails(EntityPresentDetailsRequest req);
1576+
1577+
CompletableFuture<EntityPresentDetailsResponse> entityPresentDetails(RequestConfigurator<EntityPresentDetailsRequest.EntityPresentDetailsRequestBuilder> req);
1578+
15681579
}

slack-api-client/src/main/java/com/slack/api/methods/Methods.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private Methods() {
216216
public static final String ADMIN_WORKFLOWS_COLLABORATORS_REMOVE = "admin.workflows.collaborators.remove";
217217
public static final String ADMIN_WORKFLOWS_PERMISSIONS_LOOKUP = "admin.workflows.permissions.lookup";
218218
public static final String ADMIN_WORKFLOWS_SEARCH = "admin.workflows.search";
219-
public static final String ADMIN_WORKFLOWS_UNPUBLISH = "admin.workflows.unpublish";
219+
public static final String ADMIN_WORKFLOWS_UNPUBLISH = "admin.workflows.unpublish";
220220

221221
// ------------------------------
222222
// api
@@ -247,7 +247,6 @@ private Methods() {
247247
public static final String APPS_MANIFEST_VALIDATE = "apps.manifest.validate";
248248
public static final String TOOLING_TOKENS_ROTATE = "tooling.tokens.rotate";
249249

250-
251250
// ------------------------------
252251
// apps.event.authorizations
253252
// ------------------------------
@@ -261,7 +260,8 @@ private Methods() {
261260
// Developer preview has ended
262261
// This feature was exclusive to our workspace apps developer preview.
263262
// The preview has now ended, but fan-favorite features such as token rotation
264-
// and the Conversations API will become available to classic Slack apps over the coming months.
263+
// and the Conversations API will become available to classic Slack apps over
264+
// the coming months.
265265

266266
@Deprecated
267267
public static final String APPS_PERMISSIONS_INFO = "apps.permissions.info";
@@ -453,6 +453,12 @@ private Methods() {
453453

454454
public static final String EMOJI_LIST = "emoji.list";
455455

456+
// ------------------------------
457+
// entity
458+
// ------------------------------
459+
460+
public static final String ENTITY_PRESENT_DETAILS = "entity.presentDetails";
461+
456462
// ------------------------------
457463
// files.comments
458464
// ------------------------------
@@ -725,4 +731,10 @@ private Methods() {
725731
public static final String WORKFLOWS_STEP_COMPLETED = "workflows.stepCompleted";
726732
public static final String WORKFLOWS_STEP_FAILED = "workflows.stepFailed";
727733
public static final String WORKFLOWS_UPDATE_STEP = "workflows.updateStep";
734+
735+
// ------------------------------
736+
// work object entities
737+
// ------------------------------
738+
739+
public static final String ENTITY_PRESENT_DETAILSs = "entity.presentDetails";
728740
}

0 commit comments

Comments
 (0)