@distilled.cloud/slack 1.0.0-rc.17 → 1.0.0-rc.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +140 -139
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -33
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +30 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +1 -1
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +3 -1
- package/package.json +5 -4
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -4
- package/src/protocol.ts +21 -17
- package/src/services/admin.ts +255 -0
- package/src/services/agents.ts +35 -0
- package/src/services/api.ts +15 -0
- package/src/services/apps.ts +59 -0
- package/src/services/assistant.ts +23 -0
- package/src/services/auth.ts +19 -0
- package/src/services/blocks.ts +15 -0
- package/src/services/bookmarks.ts +21 -0
- package/src/services/bots.ts +15 -0
- package/src/services/calls.ts +25 -0
- package/src/services/canvases.ts +27 -0
- package/src/services/chat.ts +39 -0
- package/src/services/conversations.ts +69 -0
- package/src/services/dialog.ts +15 -0
- package/src/services/dnd.ts +23 -0
- package/src/services/emoji.ts +15 -0
- package/src/services/entity.ts +19 -0
- package/src/services/files.ts +43 -0
- package/src/services/functions.ts +29 -0
- package/src/services/lists.ts +37 -0
- package/src/services/migration.ts +15 -0
- package/src/services/oauth.ts +25 -0
- package/src/services/openid.ts +17 -0
- package/src/services/pins.ts +19 -0
- package/src/services/reactions.ts +21 -0
- package/src/services/reminders.ts +23 -0
- package/src/services/rtm.ts +17 -0
- package/src/services/search.ts +19 -0
- package/src/services/stars.ts +19 -0
- package/src/services/team.ts +31 -0
- package/src/services/tooling.ts +15 -0
- package/src/services/usergroups.ts +27 -0
- package/src/services/users.ts +39 -0
- package/src/services/views.ts +21 -0
- package/src/services/workflows.ts +29 -0
package/src/services/rtm.ts
CHANGED
|
@@ -11,6 +11,19 @@ const __s: any[] = [];
|
|
|
11
11
|
|
|
12
12
|
export type { SlackOpError, SlackOpContext };
|
|
13
13
|
|
|
14
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
15
|
+
const TELEMETRY = {
|
|
16
|
+
system: "slack-api",
|
|
17
|
+
responseHeaders: [
|
|
18
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
19
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
20
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Slack",
|
|
23
|
+
service: "Rtm",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface ConnectRtmRequest {
|
|
15
28
|
/** Batch presence deliveries via subscription. Enabling changes the shape of `presence_change` events. See [batch presence](/apis/web-api/user-presence-and-status#batching). */
|
|
16
29
|
batch_presence_aware?: boolean;
|
|
@@ -73,6 +86,8 @@ export const connectRtm: API.OperationMethod<
|
|
|
73
86
|
errors: [SlackError, SlackRateLimited],
|
|
74
87
|
protocol: SlackProtocol,
|
|
75
88
|
retry: Retry.Retry,
|
|
89
|
+
telemetry: TELEMETRY,
|
|
90
|
+
span: "ConnectRtm",
|
|
76
91
|
}));
|
|
77
92
|
|
|
78
93
|
export type StartRtmError = SlackOpError;
|
|
@@ -88,6 +103,8 @@ export const startRtm: API.OperationMethod<
|
|
|
88
103
|
errors: [SlackError, SlackRateLimited],
|
|
89
104
|
protocol: SlackProtocol,
|
|
90
105
|
retry: Retry.Retry,
|
|
106
|
+
telemetry: TELEMETRY,
|
|
107
|
+
span: "StartRtm",
|
|
91
108
|
}));
|
|
92
109
|
|
|
93
110
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/search.ts
CHANGED
|
@@ -11,6 +11,19 @@ const __s: any[] = [];
|
|
|
11
11
|
|
|
12
12
|
export type { SlackOpError, SlackOpContext };
|
|
13
13
|
|
|
14
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
15
|
+
const TELEMETRY = {
|
|
16
|
+
system: "slack-api",
|
|
17
|
+
responseHeaders: [
|
|
18
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
19
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
20
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Slack",
|
|
23
|
+
service: "Search",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export type SearchAllRequestSortDir = "asc" | "desc";
|
|
15
28
|
export interface SearchAllRequest {
|
|
16
29
|
count?: number;
|
|
@@ -203,6 +216,8 @@ export const searchAll: API.OperationMethod<
|
|
|
203
216
|
errors: [SlackError, SlackRateLimited],
|
|
204
217
|
protocol: SlackProtocol,
|
|
205
218
|
retry: Retry.Retry,
|
|
219
|
+
telemetry: TELEMETRY,
|
|
220
|
+
span: "SearchAll",
|
|
206
221
|
}));
|
|
207
222
|
|
|
208
223
|
export type SearchFilesError = SlackOpError;
|
|
@@ -218,6 +233,8 @@ export const searchFiles: API.OperationMethod<
|
|
|
218
233
|
errors: [SlackError, SlackRateLimited],
|
|
219
234
|
protocol: SlackProtocol,
|
|
220
235
|
retry: Retry.Retry,
|
|
236
|
+
telemetry: TELEMETRY,
|
|
237
|
+
span: "SearchFiles",
|
|
221
238
|
}));
|
|
222
239
|
|
|
223
240
|
export type SearchMessagesError = SlackOpError;
|
|
@@ -233,6 +250,8 @@ export const searchMessages: API.OperationMethod<
|
|
|
233
250
|
errors: [SlackError, SlackRateLimited],
|
|
234
251
|
protocol: SlackProtocol,
|
|
235
252
|
retry: Retry.Retry,
|
|
253
|
+
telemetry: TELEMETRY,
|
|
254
|
+
span: "SearchMessages",
|
|
236
255
|
}));
|
|
237
256
|
|
|
238
257
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/stars.ts
CHANGED
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { SlackOpError, SlackOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "slack-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Slack",
|
|
24
|
+
service: "Stars",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export interface AddStarRequest {
|
|
16
29
|
/** Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`). */
|
|
17
30
|
channel?: string;
|
|
@@ -122,6 +135,8 @@ export const addStar: API.OperationMethod<
|
|
|
122
135
|
errors: [SlackError, SlackRateLimited],
|
|
123
136
|
protocol: SlackProtocol,
|
|
124
137
|
retry: Retry.Retry,
|
|
138
|
+
telemetry: TELEMETRY,
|
|
139
|
+
span: "AddStar",
|
|
125
140
|
}));
|
|
126
141
|
|
|
127
142
|
export type ListStarsError = SlackOpError;
|
|
@@ -139,6 +154,8 @@ export const listStars: API.PaginatedOperationMethod<
|
|
|
139
154
|
errors: [SlackError, SlackRateLimited],
|
|
140
155
|
protocol: SlackProtocol,
|
|
141
156
|
retry: Retry.Retry,
|
|
157
|
+
telemetry: TELEMETRY,
|
|
158
|
+
span: "ListStars",
|
|
142
159
|
pagination: {
|
|
143
160
|
mode: "cursor",
|
|
144
161
|
inputToken: "cursor",
|
|
@@ -163,6 +180,8 @@ export const removeStar: API.OperationMethod<
|
|
|
163
180
|
errors: [SlackError, SlackRateLimited],
|
|
164
181
|
protocol: SlackProtocol,
|
|
165
182
|
retry: Retry.Retry,
|
|
183
|
+
telemetry: TELEMETRY,
|
|
184
|
+
span: "RemoveStar",
|
|
166
185
|
}));
|
|
167
186
|
|
|
168
187
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/team.ts
CHANGED
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { SlackOpError, SlackOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "slack-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Slack",
|
|
24
|
+
service: "Team",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export type AccessLogsRequestBeforeCase0 = "now";
|
|
16
29
|
export type AccessLogsRequestBefore = AccessLogsRequestBeforeCase0 | (string & {}) | string;
|
|
17
30
|
export interface AccessLogsRequest {
|
|
@@ -281,6 +294,8 @@ export const accessLogs: API.PaginatedOperationMethod<
|
|
|
281
294
|
errors: [SlackError, SlackRateLimited],
|
|
282
295
|
protocol: SlackProtocol,
|
|
283
296
|
retry: Retry.Retry,
|
|
297
|
+
telemetry: TELEMETRY,
|
|
298
|
+
span: "AccessLogs",
|
|
284
299
|
pagination: {
|
|
285
300
|
mode: "cursor",
|
|
286
301
|
inputToken: "cursor",
|
|
@@ -305,6 +320,8 @@ export const billableInfo: API.OperationMethod<
|
|
|
305
320
|
errors: [SlackError, SlackRateLimited],
|
|
306
321
|
protocol: SlackProtocol,
|
|
307
322
|
retry: Retry.Retry,
|
|
323
|
+
telemetry: TELEMETRY,
|
|
324
|
+
span: "BillableInfo",
|
|
308
325
|
}));
|
|
309
326
|
|
|
310
327
|
export type BillingInfoError = SlackOpError;
|
|
@@ -320,6 +337,8 @@ export const billingInfo: API.OperationMethod<
|
|
|
320
337
|
errors: [SlackError, SlackRateLimited],
|
|
321
338
|
protocol: SlackProtocol,
|
|
322
339
|
retry: Retry.Retry,
|
|
340
|
+
telemetry: TELEMETRY,
|
|
341
|
+
span: "BillingInfo",
|
|
323
342
|
}));
|
|
324
343
|
|
|
325
344
|
export type DisconnectExternalTeamError = SlackOpError;
|
|
@@ -335,6 +354,8 @@ export const disconnectExternalTeam: API.OperationMethod<
|
|
|
335
354
|
errors: [SlackError, SlackRateLimited],
|
|
336
355
|
protocol: SlackProtocol,
|
|
337
356
|
retry: Retry.Retry,
|
|
357
|
+
telemetry: TELEMETRY,
|
|
358
|
+
span: "DisconnectExternalTeam",
|
|
338
359
|
}));
|
|
339
360
|
|
|
340
361
|
export type GetProfileError = SlackOpError;
|
|
@@ -350,6 +371,8 @@ export const getProfile: API.OperationMethod<
|
|
|
350
371
|
errors: [SlackError, SlackRateLimited],
|
|
351
372
|
protocol: SlackProtocol,
|
|
352
373
|
retry: Retry.Retry,
|
|
374
|
+
telemetry: TELEMETRY,
|
|
375
|
+
span: "GetProfile",
|
|
353
376
|
}));
|
|
354
377
|
|
|
355
378
|
export type IntegrationLogsError = SlackOpError;
|
|
@@ -365,6 +388,8 @@ export const integrationLogs: API.OperationMethod<
|
|
|
365
388
|
errors: [SlackError, SlackRateLimited],
|
|
366
389
|
protocol: SlackProtocol,
|
|
367
390
|
retry: Retry.Retry,
|
|
391
|
+
telemetry: TELEMETRY,
|
|
392
|
+
span: "IntegrationLogs",
|
|
368
393
|
}));
|
|
369
394
|
|
|
370
395
|
export type ListExternalTeamsError = SlackOpError;
|
|
@@ -382,6 +407,8 @@ export const listExternalTeams: API.PaginatedOperationMethod<
|
|
|
382
407
|
errors: [SlackError, SlackRateLimited],
|
|
383
408
|
protocol: SlackProtocol,
|
|
384
409
|
retry: Retry.Retry,
|
|
410
|
+
telemetry: TELEMETRY,
|
|
411
|
+
span: "ListExternalTeams",
|
|
385
412
|
pagination: {
|
|
386
413
|
mode: "cursor",
|
|
387
414
|
inputToken: "cursor",
|
|
@@ -406,6 +433,8 @@ export const listPreferences: API.OperationMethod<
|
|
|
406
433
|
errors: [SlackError, SlackRateLimited],
|
|
407
434
|
protocol: SlackProtocol,
|
|
408
435
|
retry: Retry.Retry,
|
|
436
|
+
telemetry: TELEMETRY,
|
|
437
|
+
span: "ListPreferences",
|
|
409
438
|
}));
|
|
410
439
|
|
|
411
440
|
export type TeamInfoError = SlackOpError;
|
|
@@ -421,6 +450,8 @@ export const teamInfo: API.OperationMethod<
|
|
|
421
450
|
errors: [SlackError, SlackRateLimited],
|
|
422
451
|
protocol: SlackProtocol,
|
|
423
452
|
retry: Retry.Retry,
|
|
453
|
+
telemetry: TELEMETRY,
|
|
454
|
+
span: "TeamInfo",
|
|
424
455
|
}));
|
|
425
456
|
|
|
426
457
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/tooling.ts
CHANGED
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { SlackOpError, SlackOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "slack-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Slack",
|
|
24
|
+
service: "Tooling",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export interface RotateTokenRequest {
|
|
16
29
|
/** The `xoxe` refresh token that was issued along with the old app configuration token. */
|
|
17
30
|
refresh_token: string | Redacted.Redacted<string>;
|
|
@@ -45,6 +58,8 @@ export const rotateToken: API.OperationMethod<
|
|
|
45
58
|
errors: [SlackError, SlackRateLimited],
|
|
46
59
|
protocol: SlackProtocol,
|
|
47
60
|
retry: Retry.Retry,
|
|
61
|
+
telemetry: TELEMETRY,
|
|
62
|
+
span: "RotateToken",
|
|
48
63
|
}));
|
|
49
64
|
|
|
50
65
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -11,6 +11,19 @@ const __s: any[] = [];
|
|
|
11
11
|
|
|
12
12
|
export type { SlackOpError, SlackOpContext };
|
|
13
13
|
|
|
14
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
15
|
+
const TELEMETRY = {
|
|
16
|
+
system: "slack-api",
|
|
17
|
+
responseHeaders: [
|
|
18
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
19
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
20
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Slack",
|
|
23
|
+
service: "Usergroups",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
15
28
|
export type CreateUsergroupRequestChannelsList = Array<string>;
|
|
16
29
|
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
@@ -163,6 +176,8 @@ export const createUsergroup: API.OperationMethod<
|
|
|
163
176
|
errors: [SlackError, SlackRateLimited],
|
|
164
177
|
protocol: SlackProtocol,
|
|
165
178
|
retry: Retry.Retry,
|
|
179
|
+
telemetry: TELEMETRY,
|
|
180
|
+
span: "CreateUsergroup",
|
|
166
181
|
}));
|
|
167
182
|
|
|
168
183
|
export type DisableUsergroupError = SlackOpError;
|
|
@@ -178,6 +193,8 @@ export const disableUsergroup: API.OperationMethod<
|
|
|
178
193
|
errors: [SlackError, SlackRateLimited],
|
|
179
194
|
protocol: SlackProtocol,
|
|
180
195
|
retry: Retry.Retry,
|
|
196
|
+
telemetry: TELEMETRY,
|
|
197
|
+
span: "DisableUsergroup",
|
|
181
198
|
}));
|
|
182
199
|
|
|
183
200
|
export type EnableUsergroupError = SlackOpError;
|
|
@@ -193,6 +210,8 @@ export const enableUsergroup: API.OperationMethod<
|
|
|
193
210
|
errors: [SlackError, SlackRateLimited],
|
|
194
211
|
protocol: SlackProtocol,
|
|
195
212
|
retry: Retry.Retry,
|
|
213
|
+
telemetry: TELEMETRY,
|
|
214
|
+
span: "EnableUsergroup",
|
|
196
215
|
}));
|
|
197
216
|
|
|
198
217
|
export type ListUsergroupsError = SlackOpError;
|
|
@@ -208,6 +227,8 @@ export const listUsergroups: API.OperationMethod<
|
|
|
208
227
|
errors: [SlackError, SlackRateLimited],
|
|
209
228
|
protocol: SlackProtocol,
|
|
210
229
|
retry: Retry.Retry,
|
|
230
|
+
telemetry: TELEMETRY,
|
|
231
|
+
span: "ListUsergroups",
|
|
211
232
|
}));
|
|
212
233
|
|
|
213
234
|
export type ListUsersError = SlackOpError;
|
|
@@ -223,6 +244,8 @@ export const listUsers: API.OperationMethod<
|
|
|
223
244
|
errors: [SlackError, SlackRateLimited],
|
|
224
245
|
protocol: SlackProtocol,
|
|
225
246
|
retry: Retry.Retry,
|
|
247
|
+
telemetry: TELEMETRY,
|
|
248
|
+
span: "ListUsers",
|
|
226
249
|
}));
|
|
227
250
|
|
|
228
251
|
export type UpdateUserError = SlackOpError;
|
|
@@ -238,6 +261,8 @@ export const updateUser: API.OperationMethod<
|
|
|
238
261
|
errors: [SlackError, SlackRateLimited],
|
|
239
262
|
protocol: SlackProtocol,
|
|
240
263
|
retry: Retry.Retry,
|
|
264
|
+
telemetry: TELEMETRY,
|
|
265
|
+
span: "UpdateUser",
|
|
241
266
|
}));
|
|
242
267
|
|
|
243
268
|
export type UpdateUsergroupError = SlackOpError;
|
|
@@ -253,6 +278,8 @@ export const updateUsergroup: API.OperationMethod<
|
|
|
253
278
|
errors: [SlackError, SlackRateLimited],
|
|
254
279
|
protocol: SlackProtocol,
|
|
255
280
|
retry: Retry.Retry,
|
|
281
|
+
telemetry: TELEMETRY,
|
|
282
|
+
span: "UpdateUsergroup",
|
|
256
283
|
}));
|
|
257
284
|
|
|
258
285
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/users.ts
CHANGED
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { SlackOpError, SlackOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "slack-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Slack",
|
|
24
|
+
service: "Users",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export interface DeletePhotoRequest {}
|
|
16
29
|
export interface DeletePhotoResponse {
|
|
17
30
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -189,6 +202,8 @@ export const deletePhoto: API.OperationMethod<
|
|
|
189
202
|
errors: [SlackError, SlackRateLimited],
|
|
190
203
|
protocol: SlackProtocol,
|
|
191
204
|
retry: Retry.Retry,
|
|
205
|
+
telemetry: TELEMETRY,
|
|
206
|
+
span: "DeletePhoto",
|
|
192
207
|
}));
|
|
193
208
|
|
|
194
209
|
export type GetPresenceError = SlackOpError;
|
|
@@ -204,6 +219,8 @@ export const getPresence: API.OperationMethod<
|
|
|
204
219
|
errors: [SlackError, SlackRateLimited],
|
|
205
220
|
protocol: SlackProtocol,
|
|
206
221
|
retry: Retry.Retry,
|
|
222
|
+
telemetry: TELEMETRY,
|
|
223
|
+
span: "GetPresence",
|
|
207
224
|
}));
|
|
208
225
|
|
|
209
226
|
export type GetProfileError = SlackOpError;
|
|
@@ -219,6 +236,8 @@ export const getProfile: API.OperationMethod<
|
|
|
219
236
|
errors: [SlackError, SlackRateLimited],
|
|
220
237
|
protocol: SlackProtocol,
|
|
221
238
|
retry: Retry.Retry,
|
|
239
|
+
telemetry: TELEMETRY,
|
|
240
|
+
span: "GetProfile",
|
|
222
241
|
}));
|
|
223
242
|
|
|
224
243
|
export type ListUsersError = SlackOpError;
|
|
@@ -236,6 +255,8 @@ export const listUsers: API.PaginatedOperationMethod<
|
|
|
236
255
|
errors: [SlackError, SlackRateLimited],
|
|
237
256
|
protocol: SlackProtocol,
|
|
238
257
|
retry: Retry.Retry,
|
|
258
|
+
telemetry: TELEMETRY,
|
|
259
|
+
span: "ListUsers",
|
|
239
260
|
pagination: {
|
|
240
261
|
mode: "cursor",
|
|
241
262
|
inputToken: "cursor",
|
|
@@ -260,6 +281,8 @@ export const lookupByEmail: API.OperationMethod<
|
|
|
260
281
|
errors: [SlackError, SlackRateLimited],
|
|
261
282
|
protocol: SlackProtocol,
|
|
262
283
|
retry: Retry.Retry,
|
|
284
|
+
telemetry: TELEMETRY,
|
|
285
|
+
span: "LookupByEmail",
|
|
263
286
|
}));
|
|
264
287
|
|
|
265
288
|
export type LookupDiscoverableContactError = SlackOpError;
|
|
@@ -275,6 +298,8 @@ export const lookupDiscoverableContact: API.OperationMethod<
|
|
|
275
298
|
errors: [SlackError, SlackRateLimited],
|
|
276
299
|
protocol: SlackProtocol,
|
|
277
300
|
retry: Retry.Retry,
|
|
301
|
+
telemetry: TELEMETRY,
|
|
302
|
+
span: "LookupDiscoverableContact",
|
|
278
303
|
}));
|
|
279
304
|
|
|
280
305
|
export type SetActiveError = SlackOpError;
|
|
@@ -290,6 +315,8 @@ export const setActive: API.OperationMethod<
|
|
|
290
315
|
errors: [SlackError, SlackRateLimited],
|
|
291
316
|
protocol: SlackProtocol,
|
|
292
317
|
retry: Retry.Retry,
|
|
318
|
+
telemetry: TELEMETRY,
|
|
319
|
+
span: "SetActive",
|
|
293
320
|
}));
|
|
294
321
|
|
|
295
322
|
export type SetPhotoError = SlackOpError;
|
|
@@ -305,6 +332,8 @@ export const setPhoto: API.OperationMethod<
|
|
|
305
332
|
errors: [SlackError, SlackRateLimited],
|
|
306
333
|
protocol: SlackProtocol,
|
|
307
334
|
retry: Retry.Retry,
|
|
335
|
+
telemetry: TELEMETRY,
|
|
336
|
+
span: "SetPhoto",
|
|
308
337
|
}));
|
|
309
338
|
|
|
310
339
|
export type SetPresenceError = SlackOpError;
|
|
@@ -320,6 +349,8 @@ export const setPresence: API.OperationMethod<
|
|
|
320
349
|
errors: [SlackError, SlackRateLimited],
|
|
321
350
|
protocol: SlackProtocol,
|
|
322
351
|
retry: Retry.Retry,
|
|
352
|
+
telemetry: TELEMETRY,
|
|
353
|
+
span: "SetPresence",
|
|
323
354
|
}));
|
|
324
355
|
|
|
325
356
|
export type SetProfileError = SlackOpError;
|
|
@@ -335,6 +366,8 @@ export const setProfile: API.OperationMethod<
|
|
|
335
366
|
errors: [SlackError, SlackRateLimited],
|
|
336
367
|
protocol: SlackProtocol,
|
|
337
368
|
retry: Retry.Retry,
|
|
369
|
+
telemetry: TELEMETRY,
|
|
370
|
+
span: "SetProfile",
|
|
338
371
|
}));
|
|
339
372
|
|
|
340
373
|
export type UsersConversationsError = SlackOpError;
|
|
@@ -352,6 +385,8 @@ export const usersConversations: API.PaginatedOperationMethod<
|
|
|
352
385
|
errors: [SlackError, SlackRateLimited],
|
|
353
386
|
protocol: SlackProtocol,
|
|
354
387
|
retry: Retry.Retry,
|
|
388
|
+
telemetry: TELEMETRY,
|
|
389
|
+
span: "UsersConversations",
|
|
355
390
|
pagination: {
|
|
356
391
|
mode: "cursor",
|
|
357
392
|
inputToken: "cursor",
|
|
@@ -376,6 +411,8 @@ export const usersIdentity: API.OperationMethod<
|
|
|
376
411
|
errors: [SlackError, SlackRateLimited],
|
|
377
412
|
protocol: SlackProtocol,
|
|
378
413
|
retry: Retry.Retry,
|
|
414
|
+
telemetry: TELEMETRY,
|
|
415
|
+
span: "UsersIdentity",
|
|
379
416
|
}));
|
|
380
417
|
|
|
381
418
|
export type UsersInfoError = SlackOpError;
|
|
@@ -391,6 +428,8 @@ export const usersInfo: API.OperationMethod<
|
|
|
391
428
|
errors: [SlackError, SlackRateLimited],
|
|
392
429
|
protocol: SlackProtocol,
|
|
393
430
|
retry: Retry.Retry,
|
|
431
|
+
telemetry: TELEMETRY,
|
|
432
|
+
span: "UsersInfo",
|
|
394
433
|
}));
|
|
395
434
|
|
|
396
435
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/views.ts
CHANGED
|
@@ -11,6 +11,19 @@ const __s: any[] = [];
|
|
|
11
11
|
|
|
12
12
|
export type { SlackOpError, SlackOpContext };
|
|
13
13
|
|
|
14
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
15
|
+
const TELEMETRY = {
|
|
16
|
+
system: "slack-api",
|
|
17
|
+
responseHeaders: [
|
|
18
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
19
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
20
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Slack",
|
|
23
|
+
service: "Views",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface PublishViewRequest {
|
|
15
28
|
/** `id` of the user you want publish a view to. */
|
|
16
29
|
user_id: string;
|
|
@@ -80,6 +93,8 @@ export const publishView: API.OperationMethod<
|
|
|
80
93
|
errors: [SlackError, SlackRateLimited],
|
|
81
94
|
protocol: SlackProtocol,
|
|
82
95
|
retry: Retry.Retry,
|
|
96
|
+
telemetry: TELEMETRY,
|
|
97
|
+
span: "PublishView",
|
|
83
98
|
}));
|
|
84
99
|
|
|
85
100
|
export type UpdateViewError = SlackOpError;
|
|
@@ -95,6 +110,8 @@ export const updateView: API.OperationMethod<
|
|
|
95
110
|
errors: [SlackError, SlackRateLimited],
|
|
96
111
|
protocol: SlackProtocol,
|
|
97
112
|
retry: Retry.Retry,
|
|
113
|
+
telemetry: TELEMETRY,
|
|
114
|
+
span: "UpdateView",
|
|
98
115
|
}));
|
|
99
116
|
|
|
100
117
|
export type ViewsOpenError = SlackOpError;
|
|
@@ -110,6 +127,8 @@ export const viewsOpen: API.OperationMethod<
|
|
|
110
127
|
errors: [SlackError, SlackRateLimited],
|
|
111
128
|
protocol: SlackProtocol,
|
|
112
129
|
retry: Retry.Retry,
|
|
130
|
+
telemetry: TELEMETRY,
|
|
131
|
+
span: "ViewsOpen",
|
|
113
132
|
}));
|
|
114
133
|
|
|
115
134
|
export type ViewsPushError = SlackOpError;
|
|
@@ -125,6 +144,8 @@ export const viewsPush: API.OperationMethod<
|
|
|
125
144
|
errors: [SlackError, SlackRateLimited],
|
|
126
145
|
protocol: SlackProtocol,
|
|
127
146
|
retry: Retry.Retry,
|
|
147
|
+
telemetry: TELEMETRY,
|
|
148
|
+
span: "ViewsPush",
|
|
128
149
|
}));
|
|
129
150
|
|
|
130
151
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -11,6 +11,19 @@ const __s: any[] = [];
|
|
|
11
11
|
|
|
12
12
|
export type { SlackOpError, SlackOpContext };
|
|
13
13
|
|
|
14
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
15
|
+
const TELEMETRY = {
|
|
16
|
+
system: "slack-api",
|
|
17
|
+
responseHeaders: [
|
|
18
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
19
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
20
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Slack",
|
|
23
|
+
service: "Workflows",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
/** Comma-separated array of trigger IDs to add; max 15 */
|
|
15
28
|
export type AddFeaturedRequestTriggerIdsList = Array<string>;
|
|
16
29
|
export interface AddFeaturedRequest {
|
|
@@ -192,6 +205,8 @@ export const addFeatured: API.OperationMethod<
|
|
|
192
205
|
errors: [SlackError, SlackRateLimited],
|
|
193
206
|
protocol: SlackProtocol,
|
|
194
207
|
retry: Retry.Retry,
|
|
208
|
+
telemetry: TELEMETRY,
|
|
209
|
+
span: "AddFeatured",
|
|
195
210
|
}));
|
|
196
211
|
|
|
197
212
|
export type AddTriggersPermissionsError = SlackOpError;
|
|
@@ -207,6 +222,8 @@ export const addTriggersPermissions: API.OperationMethod<
|
|
|
207
222
|
errors: [SlackError, SlackRateLimited],
|
|
208
223
|
protocol: SlackProtocol,
|
|
209
224
|
retry: Retry.Retry,
|
|
225
|
+
telemetry: TELEMETRY,
|
|
226
|
+
span: "AddTriggersPermissions",
|
|
210
227
|
}));
|
|
211
228
|
|
|
212
229
|
export type ListFeaturedError = SlackOpError;
|
|
@@ -222,6 +239,8 @@ export const listFeatured: API.OperationMethod<
|
|
|
222
239
|
errors: [SlackError, SlackRateLimited],
|
|
223
240
|
protocol: SlackProtocol,
|
|
224
241
|
retry: Retry.Retry,
|
|
242
|
+
telemetry: TELEMETRY,
|
|
243
|
+
span: "ListFeatured",
|
|
225
244
|
}));
|
|
226
245
|
|
|
227
246
|
export type ListTriggersPermissionsError = SlackOpError;
|
|
@@ -237,6 +256,8 @@ export const listTriggersPermissions: API.OperationMethod<
|
|
|
237
256
|
errors: [SlackError, SlackRateLimited],
|
|
238
257
|
protocol: SlackProtocol,
|
|
239
258
|
retry: Retry.Retry,
|
|
259
|
+
telemetry: TELEMETRY,
|
|
260
|
+
span: "ListTriggersPermissions",
|
|
240
261
|
}));
|
|
241
262
|
|
|
242
263
|
export type RemoveFeaturedError = SlackOpError;
|
|
@@ -252,6 +273,8 @@ export const removeFeatured: API.OperationMethod<
|
|
|
252
273
|
errors: [SlackError, SlackRateLimited],
|
|
253
274
|
protocol: SlackProtocol,
|
|
254
275
|
retry: Retry.Retry,
|
|
276
|
+
telemetry: TELEMETRY,
|
|
277
|
+
span: "RemoveFeatured",
|
|
255
278
|
}));
|
|
256
279
|
|
|
257
280
|
export type RemoveTriggersPermissionsError = SlackOpError;
|
|
@@ -267,6 +290,8 @@ export const removeTriggersPermissions: API.OperationMethod<
|
|
|
267
290
|
errors: [SlackError, SlackRateLimited],
|
|
268
291
|
protocol: SlackProtocol,
|
|
269
292
|
retry: Retry.Retry,
|
|
293
|
+
telemetry: TELEMETRY,
|
|
294
|
+
span: "RemoveTriggersPermissions",
|
|
270
295
|
}));
|
|
271
296
|
|
|
272
297
|
export type SetFeaturedError = SlackOpError;
|
|
@@ -282,6 +307,8 @@ export const setFeatured: API.OperationMethod<
|
|
|
282
307
|
errors: [SlackError, SlackRateLimited],
|
|
283
308
|
protocol: SlackProtocol,
|
|
284
309
|
retry: Retry.Retry,
|
|
310
|
+
telemetry: TELEMETRY,
|
|
311
|
+
span: "SetFeatured",
|
|
285
312
|
}));
|
|
286
313
|
|
|
287
314
|
export type SetTriggersPermissionsError = SlackOpError;
|
|
@@ -297,6 +324,8 @@ export const setTriggersPermissions: API.OperationMethod<
|
|
|
297
324
|
errors: [SlackError, SlackRateLimited],
|
|
298
325
|
protocol: SlackProtocol,
|
|
299
326
|
retry: Retry.Retry,
|
|
327
|
+
telemetry: TELEMETRY,
|
|
328
|
+
span: "SetTriggersPermissions",
|
|
300
329
|
}));
|
|
301
330
|
|
|
302
331
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|