@distilled.cloud/slack 1.0.0-rc.16 → 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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -58
- package/lib/errors.js +1 -59
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -10
- package/lib/index.lazy.js +7 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.js +1 -31
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -233
- package/lib/retry.js +1 -46
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +143 -311
- package/lib/services/admin.js.map +1 -0
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +2 -54
- package/lib/services/agents.js.map +1 -0
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +2 -22
- package/lib/services/api.js.map +1 -0
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +37 -91
- package/lib/services/apps.js.map +1 -0
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +2 -39
- package/lib/services/assistant.js.map +1 -0
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +2 -29
- package/lib/services/auth.js.map +1 -0
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +2 -22
- package/lib/services/blocks.js.map +1 -0
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +2 -33
- package/lib/services/bookmarks.js.map +1 -0
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +2 -23
- package/lib/services/bots.js.map +1 -0
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +2 -41
- package/lib/services/calls.js.map +1 -0
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +2 -45
- package/lib/services/canvases.js.map +1 -0
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +2 -66
- package/lib/services/chat.js.map +1 -0
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +42 -101
- package/lib/services/conversations.js.map +1 -0
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +2 -19
- package/lib/services/dialog.js.map +1 -0
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +2 -32
- package/lib/services/dnd.js.map +1 -0
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +2 -24
- package/lib/services/emoji.js.map +1 -0
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +2 -35
- package/lib/services/entity.js.map +1 -0
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +31 -82
- package/lib/services/files.js.map +1 -0
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +2 -51
- package/lib/services/functions.js.map +1 -0
- package/lib/services/index.js +0 -2
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +2 -60
- package/lib/services/lists.js.map +1 -0
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +2 -24
- package/lib/services/migration.js.map +1 -0
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +2 -40
- package/lib/services/oauth.js.map +1 -0
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +2 -25
- package/lib/services/openid.js.map +1 -0
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +2 -33
- package/lib/services/pins.js.map +1 -0
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +2 -37
- package/lib/services/reactions.js.map +1 -0
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +2 -39
- package/lib/services/reminders.js.map +1 -0
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +2 -28
- package/lib/services/rtm.js.map +1 -0
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +2 -34
- package/lib/services/search.js.map +1 -0
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +2 -35
- package/lib/services/stars.js.map +1 -0
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +2 -52
- package/lib/services/team.js.map +1 -0
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +2 -21
- package/lib/services/tooling.js.map +1 -0
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +2 -46
- package/lib/services/usergroups.js.map +1 -0
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +2 -61
- package/lib/services/users.js.map +1 -0
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +2 -34
- package/lib/services/views.js.map +1 -0
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +2 -43
- package/lib/services/workflows.js.map +1 -0
- package/lib/services.lazy/admin.js +3 -0
- package/lib/services.lazy/agents.js +1 -0
- package/lib/services.lazy/api.js +1 -0
- package/lib/services.lazy/apps.js +3 -0
- package/lib/services.lazy/assistant.js +1 -0
- package/lib/services.lazy/auth.js +1 -0
- package/lib/services.lazy/blocks.js +1 -0
- package/lib/services.lazy/bookmarks.js +1 -0
- package/lib/services.lazy/bots.js +1 -0
- package/lib/services.lazy/calls.js +1 -0
- package/lib/services.lazy/canvases.js +1 -0
- package/lib/services.lazy/chat.js +1 -0
- package/lib/services.lazy/conversations.js +3 -0
- package/lib/services.lazy/dialog.js +1 -0
- package/lib/services.lazy/dnd.js +1 -0
- package/lib/services.lazy/emoji.js +1 -0
- package/lib/services.lazy/entity.js +1 -0
- package/lib/services.lazy/files.js +3 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/lists.js +1 -0
- package/lib/services.lazy/migration.js +1 -0
- package/lib/services.lazy/oauth.js +1 -0
- package/lib/services.lazy/openid.js +1 -0
- package/lib/services.lazy/pins.js +1 -0
- package/lib/services.lazy/reactions.js +1 -0
- package/lib/services.lazy/reminders.js +1 -0
- package/lib/services.lazy/rtm.js +1 -0
- package/lib/services.lazy/search.js +1 -0
- package/lib/services.lazy/stars.js +1 -0
- package/lib/services.lazy/team.js +1 -0
- package/lib/services.lazy/tooling.js +1 -0
- package/lib/services.lazy/usergroups.js +1 -0
- package/lib/services.lazy/users.js +1 -0
- package/lib/services.lazy/views.js +1 -0
- package/lib/services.lazy/workflows.js +1 -0
- package/lib/traits.js +1 -12
- package/package.json +9 -10
- 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/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
package/src/services/canvases.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: "Canvases",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface CreateCanvaseRequest {
|
|
15
28
|
/** Title of the newly created canvas */
|
|
16
29
|
title?: string;
|
|
@@ -143,6 +156,8 @@ export const createCanvase: API.OperationMethod<
|
|
|
143
156
|
errors: [SlackError, SlackRateLimited],
|
|
144
157
|
protocol: SlackProtocol,
|
|
145
158
|
retry: Retry.Retry,
|
|
159
|
+
telemetry: TELEMETRY,
|
|
160
|
+
span: "CreateCanvase",
|
|
146
161
|
}));
|
|
147
162
|
|
|
148
163
|
export type DeleteAccessError = SlackOpError;
|
|
@@ -158,6 +173,8 @@ export const deleteAccess: API.OperationMethod<
|
|
|
158
173
|
errors: [SlackError, SlackRateLimited],
|
|
159
174
|
protocol: SlackProtocol,
|
|
160
175
|
retry: Retry.Retry,
|
|
176
|
+
telemetry: TELEMETRY,
|
|
177
|
+
span: "DeleteAccess",
|
|
161
178
|
}));
|
|
162
179
|
|
|
163
180
|
export type DeleteCanvaseError = SlackOpError;
|
|
@@ -173,6 +190,8 @@ export const deleteCanvase: API.OperationMethod<
|
|
|
173
190
|
errors: [SlackError, SlackRateLimited],
|
|
174
191
|
protocol: SlackProtocol,
|
|
175
192
|
retry: Retry.Retry,
|
|
193
|
+
telemetry: TELEMETRY,
|
|
194
|
+
span: "DeleteCanvase",
|
|
176
195
|
}));
|
|
177
196
|
|
|
178
197
|
export type EditCanvaseError = SlackOpError;
|
|
@@ -188,6 +207,8 @@ export const editCanvase: API.OperationMethod<
|
|
|
188
207
|
errors: [SlackError, SlackRateLimited],
|
|
189
208
|
protocol: SlackProtocol,
|
|
190
209
|
retry: Retry.Retry,
|
|
210
|
+
telemetry: TELEMETRY,
|
|
211
|
+
span: "EditCanvase",
|
|
191
212
|
}));
|
|
192
213
|
|
|
193
214
|
export type GetContentError = SlackOpError;
|
|
@@ -203,6 +224,8 @@ export const getContent: API.OperationMethod<
|
|
|
203
224
|
errors: [SlackError, SlackRateLimited],
|
|
204
225
|
protocol: SlackProtocol,
|
|
205
226
|
retry: Retry.Retry,
|
|
227
|
+
telemetry: TELEMETRY,
|
|
228
|
+
span: "GetContent",
|
|
206
229
|
}));
|
|
207
230
|
|
|
208
231
|
export type LookupSectionError = SlackOpError;
|
|
@@ -218,6 +241,8 @@ export const lookupSection: API.OperationMethod<
|
|
|
218
241
|
errors: [SlackError, SlackRateLimited],
|
|
219
242
|
protocol: SlackProtocol,
|
|
220
243
|
retry: Retry.Retry,
|
|
244
|
+
telemetry: TELEMETRY,
|
|
245
|
+
span: "LookupSection",
|
|
221
246
|
}));
|
|
222
247
|
|
|
223
248
|
export type SetAccessError = SlackOpError;
|
|
@@ -233,6 +258,8 @@ export const setAccess: API.OperationMethod<
|
|
|
233
258
|
errors: [SlackError, SlackRateLimited],
|
|
234
259
|
protocol: SlackProtocol,
|
|
235
260
|
retry: Retry.Retry,
|
|
261
|
+
telemetry: TELEMETRY,
|
|
262
|
+
span: "SetAccess",
|
|
236
263
|
}));
|
|
237
264
|
|
|
238
265
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/chat.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: "Chat",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
/** Array of streaming chunks. */
|
|
16
29
|
export type AppendStreamRequestChunksList = Array<unknown>;
|
|
17
30
|
export interface AppendStreamRequest {
|
|
@@ -425,6 +438,8 @@ export const appendStream: API.OperationMethod<
|
|
|
425
438
|
errors: [SlackError, SlackRateLimited],
|
|
426
439
|
protocol: SlackProtocol,
|
|
427
440
|
retry: Retry.Retry,
|
|
441
|
+
telemetry: TELEMETRY,
|
|
442
|
+
span: "AppendStream",
|
|
428
443
|
}));
|
|
429
444
|
|
|
430
445
|
export type ChatUnfurlError = SlackOpError;
|
|
@@ -440,6 +455,8 @@ export const chatUnfurl: API.OperationMethod<
|
|
|
440
455
|
errors: [SlackError, SlackRateLimited],
|
|
441
456
|
protocol: SlackProtocol,
|
|
442
457
|
retry: Retry.Retry,
|
|
458
|
+
telemetry: TELEMETRY,
|
|
459
|
+
span: "ChatUnfurl",
|
|
443
460
|
}));
|
|
444
461
|
|
|
445
462
|
export type DeleteChatError = SlackOpError;
|
|
@@ -455,6 +472,8 @@ export const deleteChat: API.OperationMethod<
|
|
|
455
472
|
errors: [SlackError, SlackRateLimited],
|
|
456
473
|
protocol: SlackProtocol,
|
|
457
474
|
retry: Retry.Retry,
|
|
475
|
+
telemetry: TELEMETRY,
|
|
476
|
+
span: "DeleteChat",
|
|
458
477
|
}));
|
|
459
478
|
|
|
460
479
|
export type DeleteScheduledMessageError = SlackOpError;
|
|
@@ -470,6 +489,8 @@ export const deleteScheduledMessage: API.OperationMethod<
|
|
|
470
489
|
errors: [SlackError, SlackRateLimited],
|
|
471
490
|
protocol: SlackProtocol,
|
|
472
491
|
retry: Retry.Retry,
|
|
492
|
+
telemetry: TELEMETRY,
|
|
493
|
+
span: "DeleteScheduledMessage",
|
|
473
494
|
}));
|
|
474
495
|
|
|
475
496
|
export type GetPermalinkError = SlackOpError;
|
|
@@ -485,6 +506,8 @@ export const getPermalink: API.OperationMethod<
|
|
|
485
506
|
errors: [SlackError, SlackRateLimited],
|
|
486
507
|
protocol: SlackProtocol,
|
|
487
508
|
retry: Retry.Retry,
|
|
509
|
+
telemetry: TELEMETRY,
|
|
510
|
+
span: "GetPermalink",
|
|
488
511
|
}));
|
|
489
512
|
|
|
490
513
|
export type ListScheduledMessagesError = SlackOpError;
|
|
@@ -502,6 +525,8 @@ export const listScheduledMessages: API.PaginatedOperationMethod<
|
|
|
502
525
|
errors: [SlackError, SlackRateLimited],
|
|
503
526
|
protocol: SlackProtocol,
|
|
504
527
|
retry: Retry.Retry,
|
|
528
|
+
telemetry: TELEMETRY,
|
|
529
|
+
span: "ListScheduledMessages",
|
|
505
530
|
pagination: {
|
|
506
531
|
mode: "cursor",
|
|
507
532
|
inputToken: "cursor",
|
|
@@ -526,6 +551,8 @@ export const meMessage: API.OperationMethod<
|
|
|
526
551
|
errors: [SlackError, SlackRateLimited],
|
|
527
552
|
protocol: SlackProtocol,
|
|
528
553
|
retry: Retry.Retry,
|
|
554
|
+
telemetry: TELEMETRY,
|
|
555
|
+
span: "MeMessage",
|
|
529
556
|
}));
|
|
530
557
|
|
|
531
558
|
export type PostEphemeralError = SlackOpError;
|
|
@@ -541,6 +568,8 @@ export const postEphemeral: API.OperationMethod<
|
|
|
541
568
|
errors: [SlackError, SlackRateLimited],
|
|
542
569
|
protocol: SlackProtocol,
|
|
543
570
|
retry: Retry.Retry,
|
|
571
|
+
telemetry: TELEMETRY,
|
|
572
|
+
span: "PostEphemeral",
|
|
544
573
|
}));
|
|
545
574
|
|
|
546
575
|
export type PostMessageError = SlackOpError;
|
|
@@ -556,6 +585,8 @@ export const postMessage: API.OperationMethod<
|
|
|
556
585
|
errors: [SlackError, SlackRateLimited],
|
|
557
586
|
protocol: SlackProtocol,
|
|
558
587
|
retry: Retry.Retry,
|
|
588
|
+
telemetry: TELEMETRY,
|
|
589
|
+
span: "PostMessage",
|
|
559
590
|
}));
|
|
560
591
|
|
|
561
592
|
export type ScheduleMessageError = SlackOpError;
|
|
@@ -571,6 +602,8 @@ export const scheduleMessage: API.OperationMethod<
|
|
|
571
602
|
errors: [SlackError, SlackRateLimited],
|
|
572
603
|
protocol: SlackProtocol,
|
|
573
604
|
retry: Retry.Retry,
|
|
605
|
+
telemetry: TELEMETRY,
|
|
606
|
+
span: "ScheduleMessage",
|
|
574
607
|
}));
|
|
575
608
|
|
|
576
609
|
export type StartStreamError = SlackOpError;
|
|
@@ -586,6 +619,8 @@ export const startStream: API.OperationMethod<
|
|
|
586
619
|
errors: [SlackError, SlackRateLimited],
|
|
587
620
|
protocol: SlackProtocol,
|
|
588
621
|
retry: Retry.Retry,
|
|
622
|
+
telemetry: TELEMETRY,
|
|
623
|
+
span: "StartStream",
|
|
589
624
|
}));
|
|
590
625
|
|
|
591
626
|
export type StopStreamError = SlackOpError;
|
|
@@ -601,6 +636,8 @@ export const stopStream: API.OperationMethod<
|
|
|
601
636
|
errors: [SlackError, SlackRateLimited],
|
|
602
637
|
protocol: SlackProtocol,
|
|
603
638
|
retry: Retry.Retry,
|
|
639
|
+
telemetry: TELEMETRY,
|
|
640
|
+
span: "StopStream",
|
|
604
641
|
}));
|
|
605
642
|
|
|
606
643
|
export type UpdateChatError = SlackOpError;
|
|
@@ -616,6 +653,8 @@ export const updateChat: API.OperationMethod<
|
|
|
616
653
|
errors: [SlackError, SlackRateLimited],
|
|
617
654
|
protocol: SlackProtocol,
|
|
618
655
|
retry: Retry.Retry,
|
|
656
|
+
telemetry: TELEMETRY,
|
|
657
|
+
span: "UpdateChat",
|
|
619
658
|
}));
|
|
620
659
|
|
|
621
660
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -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: "Conversations",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export interface AcceptSharedInviteRequest {
|
|
16
29
|
/** Name of the channel. If the channel does not exist already in your workspace, this name is the one that the channel will take. */
|
|
17
30
|
channel_name: string;
|
|
@@ -495,6 +508,8 @@ export const acceptSharedInvite: API.OperationMethod<
|
|
|
495
508
|
errors: [SlackError, SlackRateLimited],
|
|
496
509
|
protocol: SlackProtocol,
|
|
497
510
|
retry: Retry.Retry,
|
|
511
|
+
telemetry: TELEMETRY,
|
|
512
|
+
span: "AcceptSharedInvite",
|
|
498
513
|
}));
|
|
499
514
|
|
|
500
515
|
export type ApproveRequestSharedInviteError = SlackOpError;
|
|
@@ -510,6 +525,8 @@ export const approveRequestSharedInvite: API.OperationMethod<
|
|
|
510
525
|
errors: [SlackError, SlackRateLimited],
|
|
511
526
|
protocol: SlackProtocol,
|
|
512
527
|
retry: Retry.Retry,
|
|
528
|
+
telemetry: TELEMETRY,
|
|
529
|
+
span: "ApproveRequestSharedInvite",
|
|
513
530
|
}));
|
|
514
531
|
|
|
515
532
|
export type ApproveSharedInviteError = SlackOpError;
|
|
@@ -525,6 +542,8 @@ export const approveSharedInvite: API.OperationMethod<
|
|
|
525
542
|
errors: [SlackError, SlackRateLimited],
|
|
526
543
|
protocol: SlackProtocol,
|
|
527
544
|
retry: Retry.Retry,
|
|
545
|
+
telemetry: TELEMETRY,
|
|
546
|
+
span: "ApproveSharedInvite",
|
|
528
547
|
}));
|
|
529
548
|
|
|
530
549
|
export type ArchiveConversationError = SlackOpError;
|
|
@@ -540,6 +559,8 @@ export const archiveConversation: API.OperationMethod<
|
|
|
540
559
|
errors: [SlackError, SlackRateLimited],
|
|
541
560
|
protocol: SlackProtocol,
|
|
542
561
|
retry: Retry.Retry,
|
|
562
|
+
telemetry: TELEMETRY,
|
|
563
|
+
span: "ArchiveConversation",
|
|
543
564
|
}));
|
|
544
565
|
|
|
545
566
|
export type ConversationsCloseError = SlackOpError;
|
|
@@ -555,6 +576,8 @@ export const conversationsClose: API.OperationMethod<
|
|
|
555
576
|
errors: [SlackError, SlackRateLimited],
|
|
556
577
|
protocol: SlackProtocol,
|
|
557
578
|
retry: Retry.Retry,
|
|
579
|
+
telemetry: TELEMETRY,
|
|
580
|
+
span: "ConversationsClose",
|
|
558
581
|
}));
|
|
559
582
|
|
|
560
583
|
export type ConversationsHistoryError = SlackOpError;
|
|
@@ -572,6 +595,8 @@ export const conversationsHistory: API.PaginatedOperationMethod<
|
|
|
572
595
|
errors: [SlackError, SlackRateLimited],
|
|
573
596
|
protocol: SlackProtocol,
|
|
574
597
|
retry: Retry.Retry,
|
|
598
|
+
telemetry: TELEMETRY,
|
|
599
|
+
span: "ConversationsHistory",
|
|
575
600
|
pagination: {
|
|
576
601
|
mode: "cursor",
|
|
577
602
|
inputToken: "cursor",
|
|
@@ -596,6 +621,8 @@ export const conversationsInfo: API.OperationMethod<
|
|
|
596
621
|
errors: [SlackError, SlackRateLimited],
|
|
597
622
|
protocol: SlackProtocol,
|
|
598
623
|
retry: Retry.Retry,
|
|
624
|
+
telemetry: TELEMETRY,
|
|
625
|
+
span: "ConversationsInfo",
|
|
599
626
|
}));
|
|
600
627
|
|
|
601
628
|
export type ConversationsKickError = SlackOpError;
|
|
@@ -611,6 +638,8 @@ export const conversationsKick: API.OperationMethod<
|
|
|
611
638
|
errors: [SlackError, SlackRateLimited],
|
|
612
639
|
protocol: SlackProtocol,
|
|
613
640
|
retry: Retry.Retry,
|
|
641
|
+
telemetry: TELEMETRY,
|
|
642
|
+
span: "ConversationsKick",
|
|
614
643
|
}));
|
|
615
644
|
|
|
616
645
|
export type ConversationsMarkError = SlackOpError;
|
|
@@ -626,6 +655,8 @@ export const conversationsMark: API.OperationMethod<
|
|
|
626
655
|
errors: [SlackError, SlackRateLimited],
|
|
627
656
|
protocol: SlackProtocol,
|
|
628
657
|
retry: Retry.Retry,
|
|
658
|
+
telemetry: TELEMETRY,
|
|
659
|
+
span: "ConversationsMark",
|
|
629
660
|
}));
|
|
630
661
|
|
|
631
662
|
export type ConversationsMembersError = SlackOpError;
|
|
@@ -643,6 +674,8 @@ export const conversationsMembers: API.PaginatedOperationMethod<
|
|
|
643
674
|
errors: [SlackError, SlackRateLimited],
|
|
644
675
|
protocol: SlackProtocol,
|
|
645
676
|
retry: Retry.Retry,
|
|
677
|
+
telemetry: TELEMETRY,
|
|
678
|
+
span: "ConversationsMembers",
|
|
646
679
|
pagination: {
|
|
647
680
|
mode: "cursor",
|
|
648
681
|
inputToken: "cursor",
|
|
@@ -667,6 +700,8 @@ export const conversationsOpen: API.OperationMethod<
|
|
|
667
700
|
errors: [SlackError, SlackRateLimited],
|
|
668
701
|
protocol: SlackProtocol,
|
|
669
702
|
retry: Retry.Retry,
|
|
703
|
+
telemetry: TELEMETRY,
|
|
704
|
+
span: "ConversationsOpen",
|
|
670
705
|
}));
|
|
671
706
|
|
|
672
707
|
export type ConversationsRepliesError = SlackOpError;
|
|
@@ -684,6 +719,8 @@ export const conversationsReplies: API.PaginatedOperationMethod<
|
|
|
684
719
|
errors: [SlackError, SlackRateLimited],
|
|
685
720
|
protocol: SlackProtocol,
|
|
686
721
|
retry: Retry.Retry,
|
|
722
|
+
telemetry: TELEMETRY,
|
|
723
|
+
span: "ConversationsReplies",
|
|
687
724
|
pagination: {
|
|
688
725
|
mode: "cursor",
|
|
689
726
|
inputToken: "cursor",
|
|
@@ -708,6 +745,8 @@ export const createCanvase: API.OperationMethod<
|
|
|
708
745
|
errors: [SlackError, SlackRateLimited],
|
|
709
746
|
protocol: SlackProtocol,
|
|
710
747
|
retry: Retry.Retry,
|
|
748
|
+
telemetry: TELEMETRY,
|
|
749
|
+
span: "CreateCanvase",
|
|
711
750
|
}));
|
|
712
751
|
|
|
713
752
|
export type CreateConversationError = SlackOpError;
|
|
@@ -723,6 +762,8 @@ export const createConversation: API.OperationMethod<
|
|
|
723
762
|
errors: [SlackError, SlackRateLimited],
|
|
724
763
|
protocol: SlackProtocol,
|
|
725
764
|
retry: Retry.Retry,
|
|
765
|
+
telemetry: TELEMETRY,
|
|
766
|
+
span: "CreateConversation",
|
|
726
767
|
}));
|
|
727
768
|
|
|
728
769
|
export type InviteConversationError = SlackOpError;
|
|
@@ -738,6 +779,8 @@ export const inviteConversation: API.OperationMethod<
|
|
|
738
779
|
errors: [SlackError, SlackRateLimited],
|
|
739
780
|
protocol: SlackProtocol,
|
|
740
781
|
retry: Retry.Retry,
|
|
782
|
+
telemetry: TELEMETRY,
|
|
783
|
+
span: "InviteConversation",
|
|
741
784
|
}));
|
|
742
785
|
|
|
743
786
|
export type InviteDeclineSharedError = SlackOpError;
|
|
@@ -753,6 +796,8 @@ export const inviteDeclineShared: API.OperationMethod<
|
|
|
753
796
|
errors: [SlackError, SlackRateLimited],
|
|
754
797
|
protocol: SlackProtocol,
|
|
755
798
|
retry: Retry.Retry,
|
|
799
|
+
telemetry: TELEMETRY,
|
|
800
|
+
span: "InviteDeclineShared",
|
|
756
801
|
}));
|
|
757
802
|
|
|
758
803
|
export type InviteSharedError = SlackOpError;
|
|
@@ -768,6 +813,8 @@ export const inviteShared: API.OperationMethod<
|
|
|
768
813
|
errors: [SlackError, SlackRateLimited],
|
|
769
814
|
protocol: SlackProtocol,
|
|
770
815
|
retry: Retry.Retry,
|
|
816
|
+
telemetry: TELEMETRY,
|
|
817
|
+
span: "InviteShared",
|
|
771
818
|
}));
|
|
772
819
|
|
|
773
820
|
export type JoinConversationError = SlackOpError;
|
|
@@ -783,6 +830,8 @@ export const joinConversation: API.OperationMethod<
|
|
|
783
830
|
errors: [SlackError, SlackRateLimited],
|
|
784
831
|
protocol: SlackProtocol,
|
|
785
832
|
retry: Retry.Retry,
|
|
833
|
+
telemetry: TELEMETRY,
|
|
834
|
+
span: "JoinConversation",
|
|
786
835
|
}));
|
|
787
836
|
|
|
788
837
|
export type LeaveConversationError = SlackOpError;
|
|
@@ -798,6 +847,8 @@ export const leaveConversation: API.OperationMethod<
|
|
|
798
847
|
errors: [SlackError, SlackRateLimited],
|
|
799
848
|
protocol: SlackProtocol,
|
|
800
849
|
retry: Retry.Retry,
|
|
850
|
+
telemetry: TELEMETRY,
|
|
851
|
+
span: "LeaveConversation",
|
|
801
852
|
}));
|
|
802
853
|
|
|
803
854
|
export type ListConnectInvitesError = SlackOpError;
|
|
@@ -815,6 +866,8 @@ export const listConnectInvites: API.PaginatedOperationMethod<
|
|
|
815
866
|
errors: [SlackError, SlackRateLimited],
|
|
816
867
|
protocol: SlackProtocol,
|
|
817
868
|
retry: Retry.Retry,
|
|
869
|
+
telemetry: TELEMETRY,
|
|
870
|
+
span: "ListConnectInvites",
|
|
818
871
|
pagination: {
|
|
819
872
|
mode: "cursor",
|
|
820
873
|
inputToken: "cursor",
|
|
@@ -840,6 +893,8 @@ export const listConversations: API.PaginatedOperationMethod<
|
|
|
840
893
|
errors: [SlackError, SlackRateLimited],
|
|
841
894
|
protocol: SlackProtocol,
|
|
842
895
|
retry: Retry.Retry,
|
|
896
|
+
telemetry: TELEMETRY,
|
|
897
|
+
span: "ListConversations",
|
|
843
898
|
pagination: {
|
|
844
899
|
mode: "cursor",
|
|
845
900
|
inputToken: "cursor",
|
|
@@ -866,6 +921,8 @@ export const listRequestSharedInvite: API.PaginatedOperationMethod<
|
|
|
866
921
|
errors: [SlackError, SlackRateLimited],
|
|
867
922
|
protocol: SlackProtocol,
|
|
868
923
|
retry: Retry.Retry,
|
|
924
|
+
telemetry: TELEMETRY,
|
|
925
|
+
span: "ListRequestSharedInvite",
|
|
869
926
|
pagination: {
|
|
870
927
|
mode: "cursor",
|
|
871
928
|
inputToken: "cursor",
|
|
@@ -890,6 +947,8 @@ export const renameConversation: API.OperationMethod<
|
|
|
890
947
|
errors: [SlackError, SlackRateLimited],
|
|
891
948
|
protocol: SlackProtocol,
|
|
892
949
|
retry: Retry.Retry,
|
|
950
|
+
telemetry: TELEMETRY,
|
|
951
|
+
span: "RenameConversation",
|
|
893
952
|
}));
|
|
894
953
|
|
|
895
954
|
export type RequestSharedInviteDenyError = SlackOpError;
|
|
@@ -905,6 +964,8 @@ export const requestSharedInviteDeny: API.OperationMethod<
|
|
|
905
964
|
errors: [SlackError, SlackRateLimited],
|
|
906
965
|
protocol: SlackProtocol,
|
|
907
966
|
retry: Retry.Retry,
|
|
967
|
+
telemetry: TELEMETRY,
|
|
968
|
+
span: "RequestSharedInviteDeny",
|
|
908
969
|
}));
|
|
909
970
|
|
|
910
971
|
export type SetExternalInvitePermissionsError = SlackOpError;
|
|
@@ -920,6 +981,8 @@ export const setExternalInvitePermissions: API.OperationMethod<
|
|
|
920
981
|
errors: [SlackError, SlackRateLimited],
|
|
921
982
|
protocol: SlackProtocol,
|
|
922
983
|
retry: Retry.Retry,
|
|
984
|
+
telemetry: TELEMETRY,
|
|
985
|
+
span: "SetExternalInvitePermissions",
|
|
923
986
|
}));
|
|
924
987
|
|
|
925
988
|
export type SetPurposeError = SlackOpError;
|
|
@@ -935,6 +998,8 @@ export const setPurpose: API.OperationMethod<
|
|
|
935
998
|
errors: [SlackError, SlackRateLimited],
|
|
936
999
|
protocol: SlackProtocol,
|
|
937
1000
|
retry: Retry.Retry,
|
|
1001
|
+
telemetry: TELEMETRY,
|
|
1002
|
+
span: "SetPurpose",
|
|
938
1003
|
}));
|
|
939
1004
|
|
|
940
1005
|
export type SetTopicError = SlackOpError;
|
|
@@ -950,6 +1015,8 @@ export const setTopic: API.OperationMethod<
|
|
|
950
1015
|
errors: [SlackError, SlackRateLimited],
|
|
951
1016
|
protocol: SlackProtocol,
|
|
952
1017
|
retry: Retry.Retry,
|
|
1018
|
+
telemetry: TELEMETRY,
|
|
1019
|
+
span: "SetTopic",
|
|
953
1020
|
}));
|
|
954
1021
|
|
|
955
1022
|
export type UnarchiveConversationError = SlackOpError;
|
|
@@ -965,6 +1032,8 @@ export const unarchiveConversation: API.OperationMethod<
|
|
|
965
1032
|
errors: [SlackError, SlackRateLimited],
|
|
966
1033
|
protocol: SlackProtocol,
|
|
967
1034
|
retry: Retry.Retry,
|
|
1035
|
+
telemetry: TELEMETRY,
|
|
1036
|
+
span: "UnarchiveConversation",
|
|
968
1037
|
}));
|
|
969
1038
|
|
|
970
1039
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/dialog.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: "Dialog",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface DialogOpenRequest {
|
|
15
28
|
/** The dialog definition. This must be a JSON-encoded string. */
|
|
16
29
|
dialog: string;
|
|
@@ -34,6 +47,8 @@ export const dialogOpen: API.OperationMethod<
|
|
|
34
47
|
errors: [SlackError, SlackRateLimited],
|
|
35
48
|
protocol: SlackProtocol,
|
|
36
49
|
retry: Retry.Retry,
|
|
50
|
+
telemetry: TELEMETRY,
|
|
51
|
+
span: "DialogOpen",
|
|
37
52
|
}));
|
|
38
53
|
|
|
39
54
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/dnd.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: "Dnd",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface DndInfoRequest {
|
|
15
28
|
/** User to fetch status for (defaults to current user) */
|
|
16
29
|
user?: string;
|
|
@@ -83,6 +96,8 @@ export const dndInfo: API.OperationMethod<
|
|
|
83
96
|
errors: [SlackError, SlackRateLimited],
|
|
84
97
|
protocol: SlackProtocol,
|
|
85
98
|
retry: Retry.Retry,
|
|
99
|
+
telemetry: TELEMETRY,
|
|
100
|
+
span: "DndInfo",
|
|
86
101
|
}));
|
|
87
102
|
|
|
88
103
|
export type EndDndError = SlackOpError;
|
|
@@ -98,6 +113,8 @@ export const endDnd: API.OperationMethod<
|
|
|
98
113
|
errors: [SlackError, SlackRateLimited],
|
|
99
114
|
protocol: SlackProtocol,
|
|
100
115
|
retry: Retry.Retry,
|
|
116
|
+
telemetry: TELEMETRY,
|
|
117
|
+
span: "EndDnd",
|
|
101
118
|
}));
|
|
102
119
|
|
|
103
120
|
export type EndSnoozeError = SlackOpError;
|
|
@@ -113,6 +130,8 @@ export const endSnooze: API.OperationMethod<
|
|
|
113
130
|
errors: [SlackError, SlackRateLimited],
|
|
114
131
|
protocol: SlackProtocol,
|
|
115
132
|
retry: Retry.Retry,
|
|
133
|
+
telemetry: TELEMETRY,
|
|
134
|
+
span: "EndSnooze",
|
|
116
135
|
}));
|
|
117
136
|
|
|
118
137
|
export type SetSnoozeError = SlackOpError;
|
|
@@ -128,6 +147,8 @@ export const setSnooze: API.OperationMethod<
|
|
|
128
147
|
errors: [SlackError, SlackRateLimited],
|
|
129
148
|
protocol: SlackProtocol,
|
|
130
149
|
retry: Retry.Retry,
|
|
150
|
+
telemetry: TELEMETRY,
|
|
151
|
+
span: "SetSnooze",
|
|
131
152
|
}));
|
|
132
153
|
|
|
133
154
|
export type TeamInfoError = SlackOpError;
|
|
@@ -143,6 +164,8 @@ export const teamInfo: API.OperationMethod<
|
|
|
143
164
|
errors: [SlackError, SlackRateLimited],
|
|
144
165
|
protocol: SlackProtocol,
|
|
145
166
|
retry: Retry.Retry,
|
|
167
|
+
telemetry: TELEMETRY,
|
|
168
|
+
span: "TeamInfo",
|
|
146
169
|
}));
|
|
147
170
|
|
|
148
171
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/emoji.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: "Emoji",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface ListEmojiRequest {
|
|
15
28
|
/** Include a list of categories for Unicode emoji and the emoji in each category */
|
|
16
29
|
include_categories?: boolean;
|
|
@@ -43,6 +56,8 @@ export const listEmoji: API.OperationMethod<
|
|
|
43
56
|
errors: [SlackError, SlackRateLimited],
|
|
44
57
|
protocol: SlackProtocol,
|
|
45
58
|
retry: Retry.Retry,
|
|
59
|
+
telemetry: TELEMETRY,
|
|
60
|
+
span: "ListEmoji",
|
|
46
61
|
}));
|
|
47
62
|
|
|
48
63
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/entity.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: "Entity",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
/** The full comment data. Required for edit and post actions. See the [comment schema](/messaging/work-objects-comments#entity-present-comments-method) for the full list of properties. */
|
|
15
28
|
export type AcknowledgeCommentActionRequestCommentMap = { [key: string]: unknown | undefined };
|
|
16
29
|
export interface AcknowledgeCommentActionRequest {
|
|
@@ -86,6 +99,8 @@ export const acknowledgeCommentAction: API.OperationMethod<
|
|
|
86
99
|
errors: [SlackError, SlackRateLimited],
|
|
87
100
|
protocol: SlackProtocol,
|
|
88
101
|
retry: Retry.Retry,
|
|
102
|
+
telemetry: TELEMETRY,
|
|
103
|
+
span: "AcknowledgeCommentAction",
|
|
89
104
|
}));
|
|
90
105
|
|
|
91
106
|
export type PresentCommentsError = SlackOpError;
|
|
@@ -101,6 +116,8 @@ export const presentComments: API.OperationMethod<
|
|
|
101
116
|
errors: [SlackError, SlackRateLimited],
|
|
102
117
|
protocol: SlackProtocol,
|
|
103
118
|
retry: Retry.Retry,
|
|
119
|
+
telemetry: TELEMETRY,
|
|
120
|
+
span: "PresentComments",
|
|
104
121
|
}));
|
|
105
122
|
|
|
106
123
|
export type PresentDetailsError = SlackOpError;
|
|
@@ -116,6 +133,8 @@ export const presentDetails: API.OperationMethod<
|
|
|
116
133
|
errors: [SlackError, SlackRateLimited],
|
|
117
134
|
protocol: SlackProtocol,
|
|
118
135
|
retry: Retry.Retry,
|
|
136
|
+
telemetry: TELEMETRY,
|
|
137
|
+
span: "PresentDetails",
|
|
119
138
|
}));
|
|
120
139
|
|
|
121
140
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|