@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.
Files changed (157) hide show
  1. package/lib/_bundle/sdk.js +1 -1
  2. package/lib/_bundle/sdk.js.map +1 -1
  3. package/lib/credentials.d.ts +2 -1
  4. package/lib/credentials.d.ts.map +1 -1
  5. package/lib/index.d.ts +3 -4
  6. package/lib/index.d.ts.map +1 -1
  7. package/lib/index.lazy.js.map +1 -1
  8. package/lib/protocol.d.ts +2 -2
  9. package/lib/protocol.d.ts.map +1 -1
  10. package/lib/services/admin.d.ts.map +1 -1
  11. package/lib/services/admin.js +140 -139
  12. package/lib/services/admin.js.map +1 -1
  13. package/lib/services/agents.d.ts.map +1 -1
  14. package/lib/services/agents.js +1 -1
  15. package/lib/services/agents.js.map +1 -1
  16. package/lib/services/api.d.ts.map +1 -1
  17. package/lib/services/api.js +1 -1
  18. package/lib/services/api.js.map +1 -1
  19. package/lib/services/apps.d.ts.map +1 -1
  20. package/lib/services/apps.js +34 -33
  21. package/lib/services/apps.js.map +1 -1
  22. package/lib/services/assistant.d.ts.map +1 -1
  23. package/lib/services/assistant.js +1 -1
  24. package/lib/services/assistant.js.map +1 -1
  25. package/lib/services/auth.d.ts.map +1 -1
  26. package/lib/services/auth.js +1 -1
  27. package/lib/services/auth.js.map +1 -1
  28. package/lib/services/blocks.d.ts.map +1 -1
  29. package/lib/services/blocks.js +1 -1
  30. package/lib/services/blocks.js.map +1 -1
  31. package/lib/services/bookmarks.d.ts.map +1 -1
  32. package/lib/services/bookmarks.js +1 -1
  33. package/lib/services/bookmarks.js.map +1 -1
  34. package/lib/services/bots.d.ts.map +1 -1
  35. package/lib/services/bots.js +1 -1
  36. package/lib/services/bots.js.map +1 -1
  37. package/lib/services/calls.d.ts.map +1 -1
  38. package/lib/services/calls.js +1 -1
  39. package/lib/services/calls.js.map +1 -1
  40. package/lib/services/canvases.d.ts.map +1 -1
  41. package/lib/services/canvases.js +1 -1
  42. package/lib/services/canvases.js.map +1 -1
  43. package/lib/services/chat.d.ts.map +1 -1
  44. package/lib/services/chat.js +1 -1
  45. package/lib/services/chat.js.map +1 -1
  46. package/lib/services/conversations.d.ts.map +1 -1
  47. package/lib/services/conversations.js +39 -38
  48. package/lib/services/conversations.js.map +1 -1
  49. package/lib/services/dialog.d.ts.map +1 -1
  50. package/lib/services/dialog.js +1 -1
  51. package/lib/services/dialog.js.map +1 -1
  52. package/lib/services/dnd.d.ts.map +1 -1
  53. package/lib/services/dnd.js +1 -1
  54. package/lib/services/dnd.js.map +1 -1
  55. package/lib/services/emoji.d.ts.map +1 -1
  56. package/lib/services/emoji.js +1 -1
  57. package/lib/services/emoji.js.map +1 -1
  58. package/lib/services/entity.d.ts.map +1 -1
  59. package/lib/services/entity.js +1 -1
  60. package/lib/services/entity.js.map +1 -1
  61. package/lib/services/files.d.ts.map +1 -1
  62. package/lib/services/files.js +30 -1
  63. package/lib/services/files.js.map +1 -1
  64. package/lib/services/functions.d.ts.map +1 -1
  65. package/lib/services/functions.js +1 -1
  66. package/lib/services/functions.js.map +1 -1
  67. package/lib/services/lists.d.ts.map +1 -1
  68. package/lib/services/lists.js +1 -1
  69. package/lib/services/lists.js.map +1 -1
  70. package/lib/services/migration.d.ts.map +1 -1
  71. package/lib/services/migration.js +1 -1
  72. package/lib/services/migration.js.map +1 -1
  73. package/lib/services/oauth.d.ts.map +1 -1
  74. package/lib/services/oauth.js +1 -1
  75. package/lib/services/oauth.js.map +1 -1
  76. package/lib/services/openid.d.ts.map +1 -1
  77. package/lib/services/openid.js +1 -1
  78. package/lib/services/openid.js.map +1 -1
  79. package/lib/services/pins.d.ts.map +1 -1
  80. package/lib/services/pins.js +1 -1
  81. package/lib/services/pins.js.map +1 -1
  82. package/lib/services/reactions.d.ts.map +1 -1
  83. package/lib/services/reactions.js +1 -1
  84. package/lib/services/reactions.js.map +1 -1
  85. package/lib/services/reminders.d.ts.map +1 -1
  86. package/lib/services/reminders.js +1 -1
  87. package/lib/services/reminders.js.map +1 -1
  88. package/lib/services/rtm.d.ts.map +1 -1
  89. package/lib/services/rtm.js +1 -1
  90. package/lib/services/rtm.js.map +1 -1
  91. package/lib/services/search.d.ts.map +1 -1
  92. package/lib/services/search.js +1 -1
  93. package/lib/services/search.js.map +1 -1
  94. package/lib/services/stars.d.ts.map +1 -1
  95. package/lib/services/stars.js +1 -1
  96. package/lib/services/stars.js.map +1 -1
  97. package/lib/services/team.d.ts.map +1 -1
  98. package/lib/services/team.js +1 -1
  99. package/lib/services/team.js.map +1 -1
  100. package/lib/services/tooling.d.ts.map +1 -1
  101. package/lib/services/tooling.js +1 -1
  102. package/lib/services/tooling.js.map +1 -1
  103. package/lib/services/usergroups.d.ts.map +1 -1
  104. package/lib/services/usergroups.js +1 -1
  105. package/lib/services/usergroups.js.map +1 -1
  106. package/lib/services/users.d.ts.map +1 -1
  107. package/lib/services/users.js +1 -1
  108. package/lib/services/users.js.map +1 -1
  109. package/lib/services/views.d.ts.map +1 -1
  110. package/lib/services/views.js +1 -1
  111. package/lib/services/views.js.map +1 -1
  112. package/lib/services/workflows.d.ts.map +1 -1
  113. package/lib/services/workflows.js +1 -1
  114. package/lib/services/workflows.js.map +1 -1
  115. package/lib/services.lazy/admin.js +1 -1
  116. package/lib/services.lazy/apps.js +1 -1
  117. package/lib/services.lazy/conversations.js +1 -1
  118. package/lib/services.lazy/files.js +3 -1
  119. package/package.json +5 -4
  120. package/src/credentials.ts +3 -2
  121. package/src/index.ts +3 -4
  122. package/src/protocol.ts +21 -17
  123. package/src/services/admin.ts +255 -0
  124. package/src/services/agents.ts +35 -0
  125. package/src/services/api.ts +15 -0
  126. package/src/services/apps.ts +59 -0
  127. package/src/services/assistant.ts +23 -0
  128. package/src/services/auth.ts +19 -0
  129. package/src/services/blocks.ts +15 -0
  130. package/src/services/bookmarks.ts +21 -0
  131. package/src/services/bots.ts +15 -0
  132. package/src/services/calls.ts +25 -0
  133. package/src/services/canvases.ts +27 -0
  134. package/src/services/chat.ts +39 -0
  135. package/src/services/conversations.ts +69 -0
  136. package/src/services/dialog.ts +15 -0
  137. package/src/services/dnd.ts +23 -0
  138. package/src/services/emoji.ts +15 -0
  139. package/src/services/entity.ts +19 -0
  140. package/src/services/files.ts +43 -0
  141. package/src/services/functions.ts +29 -0
  142. package/src/services/lists.ts +37 -0
  143. package/src/services/migration.ts +15 -0
  144. package/src/services/oauth.ts +25 -0
  145. package/src/services/openid.ts +17 -0
  146. package/src/services/pins.ts +19 -0
  147. package/src/services/reactions.ts +21 -0
  148. package/src/services/reminders.ts +23 -0
  149. package/src/services/rtm.ts +17 -0
  150. package/src/services/search.ts +19 -0
  151. package/src/services/stars.ts +19 -0
  152. package/src/services/team.ts +31 -0
  153. package/src/services/tooling.ts +15 -0
  154. package/src/services/usergroups.ts +27 -0
  155. package/src/services/users.ts +39 -0
  156. package/src/services/views.ts +21 -0
  157. package/src/services/workflows.ts +29 -0
@@ -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: "Files",
25
+ propagate: "w3c",
26
+ } as const;
27
+
15
28
  export interface AddRemoteRequest {
16
29
  /** Creator defined GUID for the file. */
17
30
  external_id: string;
@@ -383,6 +396,8 @@ export const addRemote: API.OperationMethod<
383
396
  errors: [SlackError, SlackRateLimited],
384
397
  protocol: SlackProtocol,
385
398
  retry: Retry.Retry,
399
+ telemetry: TELEMETRY,
400
+ span: "AddRemote",
386
401
  }));
387
402
 
388
403
  export type CompleteUploadExternalError = SlackOpError;
@@ -398,6 +413,8 @@ export const completeUploadExternal: API.OperationMethod<
398
413
  errors: [SlackError, SlackRateLimited],
399
414
  protocol: SlackProtocol,
400
415
  retry: Retry.Retry,
416
+ telemetry: TELEMETRY,
417
+ span: "CompleteUploadExternal",
401
418
  }));
402
419
 
403
420
  export type DeleteCommentError = SlackOpError;
@@ -413,6 +430,8 @@ export const deleteComment: API.OperationMethod<
413
430
  errors: [SlackError, SlackRateLimited],
414
431
  protocol: SlackProtocol,
415
432
  retry: Retry.Retry,
433
+ telemetry: TELEMETRY,
434
+ span: "DeleteComment",
416
435
  }));
417
436
 
418
437
  export type DeleteFileError = SlackOpError;
@@ -428,6 +447,8 @@ export const deleteFile: API.OperationMethod<
428
447
  errors: [SlackError, SlackRateLimited],
429
448
  protocol: SlackProtocol,
430
449
  retry: Retry.Retry,
450
+ telemetry: TELEMETRY,
451
+ span: "DeleteFile",
431
452
  }));
432
453
 
433
454
  export type FilesInfoError = SlackOpError;
@@ -445,6 +466,8 @@ export const filesInfo: API.PaginatedOperationMethod<
445
466
  errors: [SlackError, SlackRateLimited],
446
467
  protocol: SlackProtocol,
447
468
  retry: Retry.Retry,
469
+ telemetry: TELEMETRY,
470
+ span: "FilesInfo",
448
471
  pagination: {
449
472
  mode: "cursor",
450
473
  inputToken: "cursor",
@@ -469,6 +492,8 @@ export const getUploadURLExternal: API.OperationMethod<
469
492
  errors: [SlackError, SlackRateLimited],
470
493
  protocol: SlackProtocol,
471
494
  retry: Retry.Retry,
495
+ telemetry: TELEMETRY,
496
+ span: "GetUploadURLExternal",
472
497
  }));
473
498
 
474
499
  export type ListFilesError = SlackOpError;
@@ -484,6 +509,8 @@ export const listFiles: API.OperationMethod<
484
509
  errors: [SlackError, SlackRateLimited],
485
510
  protocol: SlackProtocol,
486
511
  retry: Retry.Retry,
512
+ telemetry: TELEMETRY,
513
+ span: "ListFiles",
487
514
  }));
488
515
 
489
516
  export type ListRemoteError = SlackOpError;
@@ -501,6 +528,8 @@ export const listRemote: API.PaginatedOperationMethod<
501
528
  errors: [SlackError, SlackRateLimited],
502
529
  protocol: SlackProtocol,
503
530
  retry: Retry.Retry,
531
+ telemetry: TELEMETRY,
532
+ span: "ListRemote",
504
533
  pagination: {
505
534
  mode: "cursor",
506
535
  inputToken: "cursor",
@@ -525,6 +554,8 @@ export const remoteInfo: API.OperationMethod<
525
554
  errors: [SlackError, SlackRateLimited],
526
555
  protocol: SlackProtocol,
527
556
  retry: Retry.Retry,
557
+ telemetry: TELEMETRY,
558
+ span: "RemoteInfo",
528
559
  }));
529
560
 
530
561
  export type RemoveRemoteError = SlackOpError;
@@ -540,6 +571,8 @@ export const removeRemote: API.OperationMethod<
540
571
  errors: [SlackError, SlackRateLimited],
541
572
  protocol: SlackProtocol,
542
573
  retry: Retry.Retry,
574
+ telemetry: TELEMETRY,
575
+ span: "RemoveRemote",
543
576
  }));
544
577
 
545
578
  export type RevokePublicURLError = SlackOpError;
@@ -555,6 +588,8 @@ export const revokePublicURL: API.OperationMethod<
555
588
  errors: [SlackError, SlackRateLimited],
556
589
  protocol: SlackProtocol,
557
590
  retry: Retry.Retry,
591
+ telemetry: TELEMETRY,
592
+ span: "RevokePublicURL",
558
593
  }));
559
594
 
560
595
  export type SharedPublicURLError = SlackOpError;
@@ -570,6 +605,8 @@ export const sharedPublicURL: API.OperationMethod<
570
605
  errors: [SlackError, SlackRateLimited],
571
606
  protocol: SlackProtocol,
572
607
  retry: Retry.Retry,
608
+ telemetry: TELEMETRY,
609
+ span: "SharedPublicURL",
573
610
  }));
574
611
 
575
612
  export type ShareRemoteError = SlackOpError;
@@ -585,6 +622,8 @@ export const shareRemote: API.OperationMethod<
585
622
  errors: [SlackError, SlackRateLimited],
586
623
  protocol: SlackProtocol,
587
624
  retry: Retry.Retry,
625
+ telemetry: TELEMETRY,
626
+ span: "ShareRemote",
588
627
  }));
589
628
 
590
629
  export type UpdateRemoteError = SlackOpError;
@@ -600,6 +639,8 @@ export const updateRemote: API.OperationMethod<
600
639
  errors: [SlackError, SlackRateLimited],
601
640
  protocol: SlackProtocol,
602
641
  retry: Retry.Retry,
642
+ telemetry: TELEMETRY,
643
+ span: "UpdateRemote",
603
644
  }));
604
645
 
605
646
  export type UploadFileError = SlackOpError;
@@ -615,6 +656,8 @@ export const uploadFile: API.OperationMethod<
615
656
  errors: [SlackError, SlackRateLimited],
616
657
  protocol: SlackProtocol,
617
658
  retry: Retry.Retry,
659
+ telemetry: TELEMETRY,
660
+ span: "UploadFile",
618
661
  }));
619
662
 
620
663
  // 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: "Functions",
24
+ propagate: "w3c",
25
+ } as const;
26
+
14
27
  /** List of encoded user IDs */
15
28
  export type AddDistributionsPermissionsRequestUserIdsList = Array<string>;
16
29
  export interface AddDistributionsPermissionsRequest {
@@ -215,6 +228,8 @@ export const addDistributionsPermissions: API.OperationMethod<
215
228
  errors: [SlackError, SlackRateLimited],
216
229
  protocol: SlackProtocol,
217
230
  retry: Retry.Retry,
231
+ telemetry: TELEMETRY,
232
+ span: "AddDistributionsPermissions",
218
233
  }));
219
234
 
220
235
  export type CompleteErrorError = SlackOpError;
@@ -230,6 +245,8 @@ export const completeError: API.OperationMethod<
230
245
  errors: [SlackError, SlackRateLimited],
231
246
  protocol: SlackProtocol,
232
247
  retry: Retry.Retry,
248
+ telemetry: TELEMETRY,
249
+ span: "CompleteError",
233
250
  }));
234
251
 
235
252
  export type CompleteSuccessError = SlackOpError;
@@ -245,6 +262,8 @@ export const completeSuccess: API.OperationMethod<
245
262
  errors: [SlackError, SlackRateLimited],
246
263
  protocol: SlackProtocol,
247
264
  retry: Retry.Retry,
265
+ telemetry: TELEMETRY,
266
+ span: "CompleteSuccess",
248
267
  }));
249
268
 
250
269
  export type ExportWorkflowsStepsResponseError = SlackOpError;
@@ -260,6 +279,8 @@ export const exportWorkflowsStepsResponse: API.OperationMethod<
260
279
  errors: [SlackError, SlackRateLimited],
261
280
  protocol: SlackProtocol,
262
281
  retry: Retry.Retry,
282
+ telemetry: TELEMETRY,
283
+ span: "ExportWorkflowsStepsResponse",
263
284
  }));
264
285
 
265
286
  export type ListDistributionsPermissionsError = SlackOpError;
@@ -275,6 +296,8 @@ export const listDistributionsPermissions: API.OperationMethod<
275
296
  errors: [SlackError, SlackRateLimited],
276
297
  protocol: SlackProtocol,
277
298
  retry: Retry.Retry,
299
+ telemetry: TELEMETRY,
300
+ span: "ListDistributionsPermissions",
278
301
  }));
279
302
 
280
303
  export type ListWorkflowsStepsError = SlackOpError;
@@ -290,6 +313,8 @@ export const listWorkflowsSteps: API.OperationMethod<
290
313
  errors: [SlackError, SlackRateLimited],
291
314
  protocol: SlackProtocol,
292
315
  retry: Retry.Retry,
316
+ telemetry: TELEMETRY,
317
+ span: "ListWorkflowsSteps",
293
318
  }));
294
319
 
295
320
  export type RemoveDistributionsPermissionsError = SlackOpError;
@@ -305,6 +330,8 @@ export const removeDistributionsPermissions: API.OperationMethod<
305
330
  errors: [SlackError, SlackRateLimited],
306
331
  protocol: SlackProtocol,
307
332
  retry: Retry.Retry,
333
+ telemetry: TELEMETRY,
334
+ span: "RemoveDistributionsPermissions",
308
335
  }));
309
336
 
310
337
  export type SetDistributionsPermissionsError = SlackOpError;
@@ -320,6 +347,8 @@ export const setDistributionsPermissions: API.OperationMethod<
320
347
  errors: [SlackError, SlackRateLimited],
321
348
  protocol: SlackProtocol,
322
349
  retry: Retry.Retry,
350
+ telemetry: TELEMETRY,
351
+ span: "SetDistributionsPermissions",
323
352
  }));
324
353
 
325
354
  // 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: "Lists",
25
+ propagate: "w3c",
26
+ } as const;
27
+
15
28
  /** Initial item data. */
16
29
  export type CreateItemRequestInitialFieldsList = Array<unknown>;
17
30
  export interface CreateItemRequest {
@@ -247,6 +260,8 @@ export const createItem: API.OperationMethod<
247
260
  errors: [SlackError, SlackRateLimited],
248
261
  protocol: SlackProtocol,
249
262
  retry: Retry.Retry,
263
+ telemetry: TELEMETRY,
264
+ span: "CreateItem",
250
265
  }));
251
266
 
252
267
  export type CreateSlackListError = SlackOpError;
@@ -262,6 +277,8 @@ export const createSlackList: API.OperationMethod<
262
277
  errors: [SlackError, SlackRateLimited],
263
278
  protocol: SlackProtocol,
264
279
  retry: Retry.Retry,
280
+ telemetry: TELEMETRY,
281
+ span: "CreateSlackList",
265
282
  }));
266
283
 
267
284
  export type DeleteAccessError = SlackOpError;
@@ -277,6 +294,8 @@ export const deleteAccess: API.OperationMethod<
277
294
  errors: [SlackError, SlackRateLimited],
278
295
  protocol: SlackProtocol,
279
296
  retry: Retry.Retry,
297
+ telemetry: TELEMETRY,
298
+ span: "DeleteAccess",
280
299
  }));
281
300
 
282
301
  export type DeleteItemError = SlackOpError;
@@ -292,6 +311,8 @@ export const deleteItem: API.OperationMethod<
292
311
  errors: [SlackError, SlackRateLimited],
293
312
  protocol: SlackProtocol,
294
313
  retry: Retry.Retry,
314
+ telemetry: TELEMETRY,
315
+ span: "DeleteItem",
295
316
  }));
296
317
 
297
318
  export type DeleteMultipleError = SlackOpError;
@@ -307,6 +328,8 @@ export const deleteMultiple: API.OperationMethod<
307
328
  errors: [SlackError, SlackRateLimited],
308
329
  protocol: SlackProtocol,
309
330
  retry: Retry.Retry,
331
+ telemetry: TELEMETRY,
332
+ span: "DeleteMultiple",
310
333
  }));
311
334
 
312
335
  export type DownloadGetError = SlackOpError;
@@ -322,6 +345,8 @@ export const downloadGet: API.OperationMethod<
322
345
  errors: [SlackError, SlackRateLimited],
323
346
  protocol: SlackProtocol,
324
347
  retry: Retry.Retry,
348
+ telemetry: TELEMETRY,
349
+ span: "DownloadGet",
325
350
  }));
326
351
 
327
352
  export type DownloadStartError = SlackOpError;
@@ -337,6 +362,8 @@ export const downloadStart: API.OperationMethod<
337
362
  errors: [SlackError, SlackRateLimited],
338
363
  protocol: SlackProtocol,
339
364
  retry: Retry.Retry,
365
+ telemetry: TELEMETRY,
366
+ span: "DownloadStart",
340
367
  }));
341
368
 
342
369
  export type ItemsInfoError = SlackOpError;
@@ -352,6 +379,8 @@ export const itemsInfo: API.OperationMethod<
352
379
  errors: [SlackError, SlackRateLimited],
353
380
  protocol: SlackProtocol,
354
381
  retry: Retry.Retry,
382
+ telemetry: TELEMETRY,
383
+ span: "ItemsInfo",
355
384
  }));
356
385
 
357
386
  export type ListItemsError = SlackOpError;
@@ -369,6 +398,8 @@ export const listItems: API.PaginatedOperationMethod<
369
398
  errors: [SlackError, SlackRateLimited],
370
399
  protocol: SlackProtocol,
371
400
  retry: Retry.Retry,
401
+ telemetry: TELEMETRY,
402
+ span: "ListItems",
372
403
  pagination: {
373
404
  mode: "cursor",
374
405
  inputToken: "cursor",
@@ -393,6 +424,8 @@ export const setAccess: API.OperationMethod<
393
424
  errors: [SlackError, SlackRateLimited],
394
425
  protocol: SlackProtocol,
395
426
  retry: Retry.Retry,
427
+ telemetry: TELEMETRY,
428
+ span: "SetAccess",
396
429
  }));
397
430
 
398
431
  export type UpdateItemError = SlackOpError;
@@ -408,6 +441,8 @@ export const updateItem: API.OperationMethod<
408
441
  errors: [SlackError, SlackRateLimited],
409
442
  protocol: SlackProtocol,
410
443
  retry: Retry.Retry,
444
+ telemetry: TELEMETRY,
445
+ span: "UpdateItem",
411
446
  }));
412
447
 
413
448
  export type UpdateSlackListError = SlackOpError;
@@ -423,6 +458,8 @@ export const updateSlackList: API.OperationMethod<
423
458
  errors: [SlackError, SlackRateLimited],
424
459
  protocol: SlackProtocol,
425
460
  retry: Retry.Retry,
461
+ telemetry: TELEMETRY,
462
+ span: "UpdateSlackList",
426
463
  }));
427
464
 
428
465
  // 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: "Migration",
24
+ propagate: "w3c",
25
+ } as const;
26
+
14
27
  export type MigrationExchangeRequestUsersList = Array<string>;
15
28
  export interface MigrationExchangeRequest {
16
29
  /** A comma-separated list of user ids, up to 400 per request */
@@ -43,6 +56,8 @@ export const migrationExchange: API.OperationMethod<
43
56
  errors: [SlackError, SlackRateLimited],
44
57
  protocol: SlackProtocol,
45
58
  retry: Retry.Retry,
59
+ telemetry: TELEMETRY,
60
+ span: "MigrationExchange",
46
61
  }));
47
62
 
48
63
  // 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: "Oauth",
25
+ propagate: "w3c",
26
+ } as const;
27
+
15
28
  export interface BeginShortTokenRotationRequest {
16
29
  /** Issued when you created your application. Must be the app the token being rotated was issued to. */
17
30
  client_id: string;
@@ -309,6 +322,8 @@ export const beginShortTokenRotation: API.OperationMethod<
309
322
  errors: [SlackError, SlackRateLimited],
310
323
  protocol: SlackProtocol,
311
324
  retry: Retry.Retry,
325
+ telemetry: TELEMETRY,
326
+ span: "BeginShortTokenRotation",
312
327
  }));
313
328
 
314
329
  export type CompleteShortTokenRotationError = SlackOpError;
@@ -324,6 +339,8 @@ export const completeShortTokenRotation: API.OperationMethod<
324
339
  errors: [SlackError, SlackRateLimited],
325
340
  protocol: SlackProtocol,
326
341
  retry: Retry.Retry,
342
+ telemetry: TELEMETRY,
343
+ span: "CompleteShortTokenRotation",
327
344
  }));
328
345
 
329
346
  export type OauthAccessError = SlackOpError;
@@ -339,6 +356,8 @@ export const oauthAccess: API.OperationMethod<
339
356
  errors: [SlackError, SlackRateLimited],
340
357
  protocol: SlackProtocol,
341
358
  retry: Retry.Retry,
359
+ telemetry: TELEMETRY,
360
+ span: "OauthAccess",
342
361
  }));
343
362
 
344
363
  export type V2AccessError = SlackOpError;
@@ -354,6 +373,8 @@ export const v2Access: API.OperationMethod<
354
373
  errors: [SlackError, SlackRateLimited],
355
374
  protocol: SlackProtocol,
356
375
  retry: Retry.Retry,
376
+ telemetry: TELEMETRY,
377
+ span: "V2Access",
357
378
  }));
358
379
 
359
380
  export type V2ExchangeError = SlackOpError;
@@ -369,6 +390,8 @@ export const v2Exchange: API.OperationMethod<
369
390
  errors: [SlackError, SlackRateLimited],
370
391
  protocol: SlackProtocol,
371
392
  retry: Retry.Retry,
393
+ telemetry: TELEMETRY,
394
+ span: "V2Exchange",
372
395
  }));
373
396
 
374
397
  export type V2UserAccessError = SlackOpError;
@@ -384,6 +407,8 @@ export const v2UserAccess: API.OperationMethod<
384
407
  errors: [SlackError, SlackRateLimited],
385
408
  protocol: SlackProtocol,
386
409
  retry: Retry.Retry,
410
+ telemetry: TELEMETRY,
411
+ span: "V2UserAccess",
387
412
  }));
388
413
 
389
414
  // 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: "Openid",
25
+ propagate: "w3c",
26
+ } as const;
27
+
15
28
  /** The `grant_type` param as described in the OAuth spec. */
16
29
  export type ConnectTokenRequestGrantType = "authorization_code" | "refresh_token";
17
30
  export interface ConnectTokenRequest {
@@ -92,6 +105,8 @@ export const connectToken: API.OperationMethod<
92
105
  errors: [SlackError, SlackRateLimited],
93
106
  protocol: SlackProtocol,
94
107
  retry: Retry.Retry,
108
+ telemetry: TELEMETRY,
109
+ span: "ConnectToken",
95
110
  }));
96
111
 
97
112
  export type UserInfoError = SlackOpError;
@@ -107,6 +122,8 @@ export const userInfo: API.OperationMethod<
107
122
  errors: [SlackError, SlackRateLimited],
108
123
  protocol: SlackProtocol,
109
124
  retry: Retry.Retry,
125
+ telemetry: TELEMETRY,
126
+ span: "UserInfo",
110
127
  }));
111
128
 
112
129
  // 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: "Pins",
24
+ propagate: "w3c",
25
+ } as const;
26
+
14
27
  export interface AddPinRequest {
15
28
  /** Channel to pin the messsage to. You must also include a `timestamp` when pinning messages. */
16
29
  channel: string;
@@ -65,6 +78,8 @@ export const addPin: API.OperationMethod<
65
78
  errors: [SlackError, SlackRateLimited],
66
79
  protocol: SlackProtocol,
67
80
  retry: Retry.Retry,
81
+ telemetry: TELEMETRY,
82
+ span: "AddPin",
68
83
  }));
69
84
 
70
85
  export type ListPinsError = SlackOpError;
@@ -80,6 +95,8 @@ export const listPins: API.OperationMethod<
80
95
  errors: [SlackError, SlackRateLimited],
81
96
  protocol: SlackProtocol,
82
97
  retry: Retry.Retry,
98
+ telemetry: TELEMETRY,
99
+ span: "ListPins",
83
100
  }));
84
101
 
85
102
  export type RemovePinError = SlackOpError;
@@ -95,6 +112,8 @@ export const removePin: API.OperationMethod<
95
112
  errors: [SlackError, SlackRateLimited],
96
113
  protocol: SlackProtocol,
97
114
  retry: Retry.Retry,
115
+ telemetry: TELEMETRY,
116
+ span: "RemovePin",
98
117
  }));
99
118
 
100
119
  // 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: "Reactions",
25
+ propagate: "w3c",
26
+ } as const;
27
+
15
28
  export interface AddReactionRequest {
16
29
  /** Channel where the message to add reaction to was posted. */
17
30
  channel: string;
@@ -103,6 +116,8 @@ export const addReaction: API.OperationMethod<
103
116
  errors: [SlackError, SlackRateLimited],
104
117
  protocol: SlackProtocol,
105
118
  retry: Retry.Retry,
119
+ telemetry: TELEMETRY,
120
+ span: "AddReaction",
106
121
  }));
107
122
 
108
123
  export type GetReactionError = SlackOpError;
@@ -118,6 +133,8 @@ export const getReaction: API.OperationMethod<
118
133
  errors: [SlackError, SlackRateLimited],
119
134
  protocol: SlackProtocol,
120
135
  retry: Retry.Retry,
136
+ telemetry: TELEMETRY,
137
+ span: "GetReaction",
121
138
  }));
122
139
 
123
140
  export type ListReactionsError = SlackOpError;
@@ -135,6 +152,8 @@ export const listReactions: API.PaginatedOperationMethod<
135
152
  errors: [SlackError, SlackRateLimited],
136
153
  protocol: SlackProtocol,
137
154
  retry: Retry.Retry,
155
+ telemetry: TELEMETRY,
156
+ span: "ListReactions",
138
157
  pagination: {
139
158
  mode: "cursor",
140
159
  inputToken: "cursor",
@@ -159,6 +178,8 @@ export const removeReaction: API.OperationMethod<
159
178
  errors: [SlackError, SlackRateLimited],
160
179
  protocol: SlackProtocol,
161
180
  retry: Retry.Retry,
181
+ telemetry: TELEMETRY,
182
+ span: "RemoveReaction",
162
183
  }));
163
184
 
164
185
  // 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: "Reminders",
24
+ propagate: "w3c",
25
+ } as const;
26
+
14
27
  export interface AddReminderRequest {
15
28
  /** The content of the reminder */
16
29
  text: string;
@@ -82,6 +95,8 @@ export const addReminder: API.OperationMethod<
82
95
  errors: [SlackError, SlackRateLimited],
83
96
  protocol: SlackProtocol,
84
97
  retry: Retry.Retry,
98
+ telemetry: TELEMETRY,
99
+ span: "AddReminder",
85
100
  }));
86
101
 
87
102
  export type CompleteReminderError = SlackOpError;
@@ -97,6 +112,8 @@ export const completeReminder: API.OperationMethod<
97
112
  errors: [SlackError, SlackRateLimited],
98
113
  protocol: SlackProtocol,
99
114
  retry: Retry.Retry,
115
+ telemetry: TELEMETRY,
116
+ span: "CompleteReminder",
100
117
  }));
101
118
 
102
119
  export type DeleteReminderError = SlackOpError;
@@ -112,6 +129,8 @@ export const deleteReminder: API.OperationMethod<
112
129
  errors: [SlackError, SlackRateLimited],
113
130
  protocol: SlackProtocol,
114
131
  retry: Retry.Retry,
132
+ telemetry: TELEMETRY,
133
+ span: "DeleteReminder",
115
134
  }));
116
135
 
117
136
  export type ListRemindersError = SlackOpError;
@@ -127,6 +146,8 @@ export const listReminders: API.OperationMethod<
127
146
  errors: [SlackError, SlackRateLimited],
128
147
  protocol: SlackProtocol,
129
148
  retry: Retry.Retry,
149
+ telemetry: TELEMETRY,
150
+ span: "ListReminders",
130
151
  }));
131
152
 
132
153
  export type RemindersInfoError = SlackOpError;
@@ -142,6 +163,8 @@ export const remindersInfo: API.OperationMethod<
142
163
  errors: [SlackError, SlackRateLimited],
143
164
  protocol: SlackProtocol,
144
165
  retry: Retry.Retry,
166
+ telemetry: TELEMETRY,
167
+ span: "RemindersInfo",
145
168
  }));
146
169
 
147
170
  // Schema builders: each runs one schema initializer, on that schema's first use.