@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/agents.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: "Agents",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface ArchiveConversationRequest {
|
|
15
28
|
/** ID of the code channel to archive. */
|
|
16
29
|
channel_id: string;
|
|
@@ -369,6 +382,8 @@ export const archiveConversation: API.OperationMethod<
|
|
|
369
382
|
errors: [SlackError, SlackRateLimited],
|
|
370
383
|
protocol: SlackProtocol,
|
|
371
384
|
retry: Retry.Retry,
|
|
385
|
+
telemetry: TELEMETRY,
|
|
386
|
+
span: "ArchiveConversation",
|
|
372
387
|
}));
|
|
373
388
|
|
|
374
389
|
export type CreateConversationError = SlackOpError;
|
|
@@ -384,6 +399,8 @@ export const createConversation: API.OperationMethod<
|
|
|
384
399
|
errors: [SlackError, SlackRateLimited],
|
|
385
400
|
protocol: SlackProtocol,
|
|
386
401
|
retry: Retry.Retry,
|
|
402
|
+
telemetry: TELEMETRY,
|
|
403
|
+
span: "CreateConversation",
|
|
387
404
|
}));
|
|
388
405
|
|
|
389
406
|
export type GetCanvasError = SlackOpError;
|
|
@@ -399,6 +416,8 @@ export const getCanvas: API.OperationMethod<
|
|
|
399
416
|
errors: [SlackError, SlackRateLimited],
|
|
400
417
|
protocol: SlackProtocol,
|
|
401
418
|
retry: Retry.Retry,
|
|
419
|
+
telemetry: TELEMETRY,
|
|
420
|
+
span: "GetCanvas",
|
|
402
421
|
}));
|
|
403
422
|
|
|
404
423
|
export type ListViewsError = SlackOpError;
|
|
@@ -414,6 +433,8 @@ export const listViews: API.OperationMethod<
|
|
|
414
433
|
errors: [SlackError, SlackRateLimited],
|
|
415
434
|
protocol: SlackProtocol,
|
|
416
435
|
retry: Retry.Retry,
|
|
436
|
+
telemetry: TELEMETRY,
|
|
437
|
+
span: "ListViews",
|
|
417
438
|
}));
|
|
418
439
|
|
|
419
440
|
export type RemoveViewError = SlackOpError;
|
|
@@ -429,6 +450,8 @@ export const removeView: API.OperationMethod<
|
|
|
429
450
|
errors: [SlackError, SlackRateLimited],
|
|
430
451
|
protocol: SlackProtocol,
|
|
431
452
|
retry: Retry.Retry,
|
|
453
|
+
telemetry: TELEMETRY,
|
|
454
|
+
span: "RemoveView",
|
|
432
455
|
}));
|
|
433
456
|
|
|
434
457
|
export type RenameSessionError = SlackOpError;
|
|
@@ -444,6 +467,8 @@ export const renameSession: API.OperationMethod<
|
|
|
444
467
|
errors: [SlackError, SlackRateLimited],
|
|
445
468
|
protocol: SlackProtocol,
|
|
446
469
|
retry: Retry.Retry,
|
|
470
|
+
telemetry: TELEMETRY,
|
|
471
|
+
span: "RenameSession",
|
|
447
472
|
}));
|
|
448
473
|
|
|
449
474
|
export type SetCanvasContentError = SlackOpError;
|
|
@@ -459,6 +484,8 @@ export const setCanvasContent: API.OperationMethod<
|
|
|
459
484
|
errors: [SlackError, SlackRateLimited],
|
|
460
485
|
protocol: SlackProtocol,
|
|
461
486
|
retry: Retry.Retry,
|
|
487
|
+
telemetry: TELEMETRY,
|
|
488
|
+
span: "SetCanvasContent",
|
|
462
489
|
}));
|
|
463
490
|
|
|
464
491
|
export type SetCommandsError = SlackOpError;
|
|
@@ -474,6 +501,8 @@ export const setCommands: API.OperationMethod<
|
|
|
474
501
|
errors: [SlackError, SlackRateLimited],
|
|
475
502
|
protocol: SlackProtocol,
|
|
476
503
|
retry: Retry.Retry,
|
|
504
|
+
telemetry: TELEMETRY,
|
|
505
|
+
span: "SetCommands",
|
|
477
506
|
}));
|
|
478
507
|
|
|
479
508
|
export type SetPropertiesError = SlackOpError;
|
|
@@ -489,6 +518,8 @@ export const setProperties: API.OperationMethod<
|
|
|
489
518
|
errors: [SlackError, SlackRateLimited],
|
|
490
519
|
protocol: SlackProtocol,
|
|
491
520
|
retry: Retry.Retry,
|
|
521
|
+
telemetry: TELEMETRY,
|
|
522
|
+
span: "SetProperties",
|
|
492
523
|
}));
|
|
493
524
|
|
|
494
525
|
export type SetStatusError = SlackOpError;
|
|
@@ -504,6 +535,8 @@ export const setStatus: API.OperationMethod<
|
|
|
504
535
|
errors: [SlackError, SlackRateLimited],
|
|
505
536
|
protocol: SlackProtocol,
|
|
506
537
|
retry: Retry.Retry,
|
|
538
|
+
telemetry: TELEMETRY,
|
|
539
|
+
span: "SetStatus",
|
|
507
540
|
}));
|
|
508
541
|
|
|
509
542
|
export type SetViewError = SlackOpError;
|
|
@@ -519,6 +552,8 @@ export const setView: API.OperationMethod<
|
|
|
519
552
|
errors: [SlackError, SlackRateLimited],
|
|
520
553
|
protocol: SlackProtocol,
|
|
521
554
|
retry: Retry.Retry,
|
|
555
|
+
telemetry: TELEMETRY,
|
|
556
|
+
span: "SetView",
|
|
522
557
|
}));
|
|
523
558
|
|
|
524
559
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/api.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: "Api",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface TestApiRequest {
|
|
15
28
|
/** Error response to return */
|
|
16
29
|
error?: string;
|
|
@@ -34,6 +47,8 @@ export const testApi: API.OperationMethod<
|
|
|
34
47
|
errors: [SlackError, SlackRateLimited],
|
|
35
48
|
protocol: SlackProtocol,
|
|
36
49
|
retry: Retry.Retry,
|
|
50
|
+
telemetry: TELEMETRY,
|
|
51
|
+
span: "TestApi",
|
|
37
52
|
}));
|
|
38
53
|
|
|
39
54
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/apps.ts
CHANGED
|
@@ -13,6 +13,19 @@ const __s: any[] = [];
|
|
|
13
13
|
|
|
14
14
|
export type { SlackOpError, SlackOpContext };
|
|
15
15
|
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "slack-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
23
|
+
],
|
|
24
|
+
prefix: "Slack",
|
|
25
|
+
service: "Apps",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
16
29
|
/** IDs of items to be deleted */
|
|
17
30
|
export type BulkDeleteRequestIdsList = Array<string>;
|
|
18
31
|
export interface BulkDeleteRequest {
|
|
@@ -432,6 +445,8 @@ export const bulkDelete: API.OperationMethod<
|
|
|
432
445
|
errors: [SlackError, SlackRateLimited],
|
|
433
446
|
protocol: SlackProtocol,
|
|
434
447
|
retry: Retry.Retry,
|
|
448
|
+
telemetry: TELEMETRY,
|
|
449
|
+
span: "BulkDelete",
|
|
435
450
|
}));
|
|
436
451
|
|
|
437
452
|
export type BulkGetError = SlackOpError;
|
|
@@ -447,6 +462,8 @@ export const bulkGet: API.OperationMethod<
|
|
|
447
462
|
errors: [SlackError, SlackRateLimited],
|
|
448
463
|
protocol: SlackProtocol,
|
|
449
464
|
retry: Retry.Retry,
|
|
465
|
+
telemetry: TELEMETRY,
|
|
466
|
+
span: "BulkGet",
|
|
450
467
|
}));
|
|
451
468
|
|
|
452
469
|
export type BulkPutError = SlackOpError;
|
|
@@ -462,6 +479,8 @@ export const bulkPut: API.OperationMethod<
|
|
|
462
479
|
errors: [SlackError, SlackRateLimited],
|
|
463
480
|
protocol: SlackProtocol,
|
|
464
481
|
retry: Retry.Retry,
|
|
482
|
+
telemetry: TELEMETRY,
|
|
483
|
+
span: "BulkPut",
|
|
465
484
|
}));
|
|
466
485
|
|
|
467
486
|
export type ConnectionsOpenError = SlackOpError;
|
|
@@ -477,6 +496,8 @@ export const connectionsOpen: API.OperationMethod<
|
|
|
477
496
|
errors: [SlackError, SlackRateLimited],
|
|
478
497
|
protocol: SlackProtocol,
|
|
479
498
|
retry: Retry.Retry,
|
|
499
|
+
telemetry: TELEMETRY,
|
|
500
|
+
span: "ConnectionsOpen",
|
|
480
501
|
}));
|
|
481
502
|
|
|
482
503
|
export type CreateManifestError = SlackOpError;
|
|
@@ -492,6 +513,8 @@ export const createManifest: API.OperationMethod<
|
|
|
492
513
|
errors: [SlackError, SlackRateLimited],
|
|
493
514
|
protocol: SlackProtocol,
|
|
494
515
|
retry: Retry.Retry,
|
|
516
|
+
telemetry: TELEMETRY,
|
|
517
|
+
span: "CreateManifest",
|
|
495
518
|
}));
|
|
496
519
|
|
|
497
520
|
export type DatastoreCountError = SlackOpError;
|
|
@@ -507,6 +530,8 @@ export const datastoreCount: API.OperationMethod<
|
|
|
507
530
|
errors: [SlackError, SlackRateLimited],
|
|
508
531
|
protocol: SlackProtocol,
|
|
509
532
|
retry: Retry.Retry,
|
|
533
|
+
telemetry: TELEMETRY,
|
|
534
|
+
span: "DatastoreCount",
|
|
510
535
|
}));
|
|
511
536
|
|
|
512
537
|
export type DatastoreQueryError = SlackOpError;
|
|
@@ -524,6 +549,8 @@ export const datastoreQuery: API.PaginatedOperationMethod<
|
|
|
524
549
|
errors: [SlackError, SlackRateLimited],
|
|
525
550
|
protocol: SlackProtocol,
|
|
526
551
|
retry: Retry.Retry,
|
|
552
|
+
telemetry: TELEMETRY,
|
|
553
|
+
span: "DatastoreQuery",
|
|
527
554
|
pagination: {
|
|
528
555
|
mode: "cursor",
|
|
529
556
|
inputToken: "cursor",
|
|
@@ -548,6 +575,8 @@ export const deleteAuthExternal: API.OperationMethod<
|
|
|
548
575
|
errors: [SlackError, SlackRateLimited],
|
|
549
576
|
protocol: SlackProtocol,
|
|
550
577
|
retry: Retry.Retry,
|
|
578
|
+
telemetry: TELEMETRY,
|
|
579
|
+
span: "DeleteAuthExternal",
|
|
551
580
|
}));
|
|
552
581
|
|
|
553
582
|
export type DeleteDatastoreError = SlackOpError;
|
|
@@ -563,6 +592,8 @@ export const deleteDatastore: API.OperationMethod<
|
|
|
563
592
|
errors: [SlackError, SlackRateLimited],
|
|
564
593
|
protocol: SlackProtocol,
|
|
565
594
|
retry: Retry.Retry,
|
|
595
|
+
telemetry: TELEMETRY,
|
|
596
|
+
span: "DeleteDatastore",
|
|
566
597
|
}));
|
|
567
598
|
|
|
568
599
|
export type DeleteManifestError = SlackOpError;
|
|
@@ -578,6 +609,8 @@ export const deleteManifest: API.OperationMethod<
|
|
|
578
609
|
errors: [SlackError, SlackRateLimited],
|
|
579
610
|
protocol: SlackProtocol,
|
|
580
611
|
retry: Retry.Retry,
|
|
612
|
+
telemetry: TELEMETRY,
|
|
613
|
+
span: "DeleteManifest",
|
|
581
614
|
}));
|
|
582
615
|
|
|
583
616
|
export type ExportManifestError = SlackOpError;
|
|
@@ -593,6 +626,8 @@ export const exportManifest: API.OperationMethod<
|
|
|
593
626
|
errors: [SlackError, SlackRateLimited],
|
|
594
627
|
protocol: SlackProtocol,
|
|
595
628
|
retry: Retry.Retry,
|
|
629
|
+
telemetry: TELEMETRY,
|
|
630
|
+
span: "ExportManifest",
|
|
596
631
|
}));
|
|
597
632
|
|
|
598
633
|
export type GetAuthExternalError = SlackOpError;
|
|
@@ -608,6 +643,8 @@ export const getAuthExternal: API.OperationMethod<
|
|
|
608
643
|
errors: [SlackError, SlackRateLimited],
|
|
609
644
|
protocol: SlackProtocol,
|
|
610
645
|
retry: Retry.Retry,
|
|
646
|
+
telemetry: TELEMETRY,
|
|
647
|
+
span: "GetAuthExternal",
|
|
611
648
|
}));
|
|
612
649
|
|
|
613
650
|
export type GetDatastoreError = SlackOpError;
|
|
@@ -623,6 +660,8 @@ export const getDatastore: API.OperationMethod<
|
|
|
623
660
|
errors: [SlackError, SlackRateLimited],
|
|
624
661
|
protocol: SlackProtocol,
|
|
625
662
|
retry: Retry.Retry,
|
|
663
|
+
telemetry: TELEMETRY,
|
|
664
|
+
span: "GetDatastore",
|
|
626
665
|
}));
|
|
627
666
|
|
|
628
667
|
export type ListActivitiesError = SlackOpError;
|
|
@@ -640,6 +679,8 @@ export const listActivities: API.PaginatedOperationMethod<
|
|
|
640
679
|
errors: [SlackError, SlackRateLimited],
|
|
641
680
|
protocol: SlackProtocol,
|
|
642
681
|
retry: Retry.Retry,
|
|
682
|
+
telemetry: TELEMETRY,
|
|
683
|
+
span: "ListActivities",
|
|
643
684
|
pagination: {
|
|
644
685
|
mode: "cursor",
|
|
645
686
|
inputToken: "cursor",
|
|
@@ -666,6 +707,8 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
|
666
707
|
errors: [SlackError, SlackRateLimited],
|
|
667
708
|
protocol: SlackProtocol,
|
|
668
709
|
retry: Retry.Retry,
|
|
710
|
+
telemetry: TELEMETRY,
|
|
711
|
+
span: "ListEventAuthorizations",
|
|
669
712
|
pagination: {
|
|
670
713
|
mode: "cursor",
|
|
671
714
|
inputToken: "cursor",
|
|
@@ -690,6 +733,8 @@ export const putDatastore: API.OperationMethod<
|
|
|
690
733
|
errors: [SlackError, SlackRateLimited],
|
|
691
734
|
protocol: SlackProtocol,
|
|
692
735
|
retry: Retry.Retry,
|
|
736
|
+
telemetry: TELEMETRY,
|
|
737
|
+
span: "PutDatastore",
|
|
693
738
|
}));
|
|
694
739
|
|
|
695
740
|
export type SetIconError = SlackOpError;
|
|
@@ -705,6 +750,8 @@ export const setIcon: API.OperationMethod<
|
|
|
705
750
|
errors: [SlackError, SlackRateLimited],
|
|
706
751
|
protocol: SlackProtocol,
|
|
707
752
|
retry: Retry.Retry,
|
|
753
|
+
telemetry: TELEMETRY,
|
|
754
|
+
span: "SetIcon",
|
|
708
755
|
}));
|
|
709
756
|
|
|
710
757
|
export type SetManagedPermissionsError = SlackOpError;
|
|
@@ -720,6 +767,8 @@ export const setManagedPermissions: API.OperationMethod<
|
|
|
720
767
|
errors: [SlackError, SlackRateLimited],
|
|
721
768
|
protocol: SlackProtocol,
|
|
722
769
|
retry: Retry.Retry,
|
|
770
|
+
telemetry: TELEMETRY,
|
|
771
|
+
span: "SetManagedPermissions",
|
|
723
772
|
}));
|
|
724
773
|
|
|
725
774
|
export type UninstallAppError = SlackOpError;
|
|
@@ -735,6 +784,8 @@ export const uninstallApp: API.OperationMethod<
|
|
|
735
784
|
errors: [SlackError, SlackRateLimited],
|
|
736
785
|
protocol: SlackProtocol,
|
|
737
786
|
retry: Retry.Retry,
|
|
787
|
+
telemetry: TELEMETRY,
|
|
788
|
+
span: "UninstallApp",
|
|
738
789
|
}));
|
|
739
790
|
|
|
740
791
|
export type UpdateDatastoreError = SlackOpError;
|
|
@@ -750,6 +801,8 @@ export const updateDatastore: API.OperationMethod<
|
|
|
750
801
|
errors: [SlackError, SlackRateLimited],
|
|
751
802
|
protocol: SlackProtocol,
|
|
752
803
|
retry: Retry.Retry,
|
|
804
|
+
telemetry: TELEMETRY,
|
|
805
|
+
span: "UpdateDatastore",
|
|
753
806
|
}));
|
|
754
807
|
|
|
755
808
|
export type UpdateManifestError = SlackOpError;
|
|
@@ -765,6 +818,8 @@ export const updateManifest: API.OperationMethod<
|
|
|
765
818
|
errors: [SlackError, SlackRateLimited],
|
|
766
819
|
protocol: SlackProtocol,
|
|
767
820
|
retry: Retry.Retry,
|
|
821
|
+
telemetry: TELEMETRY,
|
|
822
|
+
span: "UpdateManifest",
|
|
768
823
|
}));
|
|
769
824
|
|
|
770
825
|
export type UpdateUserConnectionError = SlackOpError;
|
|
@@ -780,6 +835,8 @@ export const updateUserConnection: API.OperationMethod<
|
|
|
780
835
|
errors: [SlackError, SlackRateLimited],
|
|
781
836
|
protocol: SlackProtocol,
|
|
782
837
|
retry: Retry.Retry,
|
|
838
|
+
telemetry: TELEMETRY,
|
|
839
|
+
span: "UpdateUserConnection",
|
|
783
840
|
}));
|
|
784
841
|
|
|
785
842
|
export type ValidateManifestError = SlackOpError;
|
|
@@ -795,6 +852,8 @@ export const validateManifest: API.OperationMethod<
|
|
|
795
852
|
errors: [SlackError, SlackRateLimited],
|
|
796
853
|
protocol: SlackProtocol,
|
|
797
854
|
retry: Retry.Retry,
|
|
855
|
+
telemetry: TELEMETRY,
|
|
856
|
+
span: "ValidateManifest",
|
|
798
857
|
}));
|
|
799
858
|
|
|
800
859
|
// 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: "Assistant",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export type SearchContextRequestChannelTypesItem =
|
|
15
28
|
| "public_channel"
|
|
16
29
|
| "private_channel"
|
|
@@ -275,6 +288,8 @@ export const searchContext: API.OperationMethod<
|
|
|
275
288
|
errors: [SlackError, SlackRateLimited],
|
|
276
289
|
protocol: SlackProtocol,
|
|
277
290
|
retry: Retry.Retry,
|
|
291
|
+
telemetry: TELEMETRY,
|
|
292
|
+
span: "SearchContext",
|
|
278
293
|
}));
|
|
279
294
|
|
|
280
295
|
export type SearchInfoError = SlackOpError;
|
|
@@ -290,6 +305,8 @@ export const searchInfo: API.OperationMethod<
|
|
|
290
305
|
errors: [SlackError, SlackRateLimited],
|
|
291
306
|
protocol: SlackProtocol,
|
|
292
307
|
retry: Retry.Retry,
|
|
308
|
+
telemetry: TELEMETRY,
|
|
309
|
+
span: "SearchInfo",
|
|
293
310
|
}));
|
|
294
311
|
|
|
295
312
|
export type SetStatusError = SlackOpError;
|
|
@@ -305,6 +322,8 @@ export const setStatus: API.OperationMethod<
|
|
|
305
322
|
errors: [SlackError, SlackRateLimited],
|
|
306
323
|
protocol: SlackProtocol,
|
|
307
324
|
retry: Retry.Retry,
|
|
325
|
+
telemetry: TELEMETRY,
|
|
326
|
+
span: "SetStatus",
|
|
308
327
|
}));
|
|
309
328
|
|
|
310
329
|
export type SetSuggestedPromptsError = SlackOpError;
|
|
@@ -320,6 +339,8 @@ export const setSuggestedPrompts: API.OperationMethod<
|
|
|
320
339
|
errors: [SlackError, SlackRateLimited],
|
|
321
340
|
protocol: SlackProtocol,
|
|
322
341
|
retry: Retry.Retry,
|
|
342
|
+
telemetry: TELEMETRY,
|
|
343
|
+
span: "SetSuggestedPrompts",
|
|
323
344
|
}));
|
|
324
345
|
|
|
325
346
|
export type SetTitleError = SlackOpError;
|
|
@@ -335,6 +356,8 @@ export const setTitle: API.OperationMethod<
|
|
|
335
356
|
errors: [SlackError, SlackRateLimited],
|
|
336
357
|
protocol: SlackProtocol,
|
|
337
358
|
retry: Retry.Retry,
|
|
359
|
+
telemetry: TELEMETRY,
|
|
360
|
+
span: "SetTitle",
|
|
338
361
|
}));
|
|
339
362
|
|
|
340
363
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/auth.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: "Auth",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export interface ListTeamsRequest {
|
|
16
29
|
/** The maximum number of workspaces to return. Must be a positive integer no larger than 1000. */
|
|
17
30
|
limit?: number;
|
|
@@ -92,6 +105,8 @@ export const listTeams: API.PaginatedOperationMethod<
|
|
|
92
105
|
errors: [SlackError, SlackRateLimited],
|
|
93
106
|
protocol: SlackProtocol,
|
|
94
107
|
retry: Retry.Retry,
|
|
108
|
+
telemetry: TELEMETRY,
|
|
109
|
+
span: "ListTeams",
|
|
95
110
|
pagination: {
|
|
96
111
|
mode: "cursor",
|
|
97
112
|
inputToken: "cursor",
|
|
@@ -116,6 +131,8 @@ export const revokeAuth: API.OperationMethod<
|
|
|
116
131
|
errors: [SlackError, SlackRateLimited],
|
|
117
132
|
protocol: SlackProtocol,
|
|
118
133
|
retry: Retry.Retry,
|
|
134
|
+
telemetry: TELEMETRY,
|
|
135
|
+
span: "RevokeAuth",
|
|
119
136
|
}));
|
|
120
137
|
|
|
121
138
|
export type TestAuthError = SlackOpError;
|
|
@@ -131,6 +148,8 @@ export const testAuth: API.OperationMethod<
|
|
|
131
148
|
errors: [SlackError, SlackRateLimited],
|
|
132
149
|
protocol: SlackProtocol,
|
|
133
150
|
retry: Retry.Retry,
|
|
151
|
+
telemetry: TELEMETRY,
|
|
152
|
+
span: "TestAuth",
|
|
134
153
|
}));
|
|
135
154
|
|
|
136
155
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/blocks.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: "Blocks",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export type ValidateBlockRequestBlocksCase1ItemMap = { [key: string]: unknown | undefined };
|
|
15
28
|
export type ValidateBlockRequestBlocksCase1List = Array<ValidateBlockRequestBlocksCase1ItemMap>;
|
|
16
29
|
/** A JSON-encoded array of [structured blocks](/reference/block-kit/blocks). Provide exactly one of `blocks`, `view`, or `message`. */
|
|
@@ -40,6 +53,8 @@ export const validateBlock: API.OperationMethod<
|
|
|
40
53
|
errors: [SlackError, SlackRateLimited],
|
|
41
54
|
protocol: SlackProtocol,
|
|
42
55
|
retry: Retry.Retry,
|
|
56
|
+
telemetry: TELEMETRY,
|
|
57
|
+
span: "ValidateBlock",
|
|
43
58
|
}));
|
|
44
59
|
|
|
45
60
|
// 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: "Bookmarks",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
/** The level that we are setting the file's permission to (read or write) */
|
|
15
28
|
export type AddBookmarkRequestAccessLevel = "read" | "write";
|
|
16
29
|
export interface AddBookmarkRequest {
|
|
@@ -88,6 +101,8 @@ export const addBookmark: API.OperationMethod<
|
|
|
88
101
|
errors: [SlackError, SlackRateLimited],
|
|
89
102
|
protocol: SlackProtocol,
|
|
90
103
|
retry: Retry.Retry,
|
|
104
|
+
telemetry: TELEMETRY,
|
|
105
|
+
span: "AddBookmark",
|
|
91
106
|
}));
|
|
92
107
|
|
|
93
108
|
export type EditBookmarkError = SlackOpError;
|
|
@@ -103,6 +118,8 @@ export const editBookmark: API.OperationMethod<
|
|
|
103
118
|
errors: [SlackError, SlackRateLimited],
|
|
104
119
|
protocol: SlackProtocol,
|
|
105
120
|
retry: Retry.Retry,
|
|
121
|
+
telemetry: TELEMETRY,
|
|
122
|
+
span: "EditBookmark",
|
|
106
123
|
}));
|
|
107
124
|
|
|
108
125
|
export type ListBookmarksError = SlackOpError;
|
|
@@ -118,6 +135,8 @@ export const listBookmarks: API.OperationMethod<
|
|
|
118
135
|
errors: [SlackError, SlackRateLimited],
|
|
119
136
|
protocol: SlackProtocol,
|
|
120
137
|
retry: Retry.Retry,
|
|
138
|
+
telemetry: TELEMETRY,
|
|
139
|
+
span: "ListBookmarks",
|
|
121
140
|
}));
|
|
122
141
|
|
|
123
142
|
export type RemoveBookmarkError = SlackOpError;
|
|
@@ -133,6 +152,8 @@ export const removeBookmark: API.OperationMethod<
|
|
|
133
152
|
errors: [SlackError, SlackRateLimited],
|
|
134
153
|
protocol: SlackProtocol,
|
|
135
154
|
retry: Retry.Retry,
|
|
155
|
+
telemetry: TELEMETRY,
|
|
156
|
+
span: "RemoveBookmark",
|
|
136
157
|
}));
|
|
137
158
|
|
|
138
159
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/bots.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: "Bots",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
export interface BotsInfoRequest {
|
|
15
28
|
/** Bot user to get info on */
|
|
16
29
|
bot?: string;
|
|
@@ -69,6 +82,8 @@ export const botsInfo: API.OperationMethod<
|
|
|
69
82
|
errors: [SlackError, SlackRateLimited],
|
|
70
83
|
protocol: SlackProtocol,
|
|
71
84
|
retry: Retry.Retry,
|
|
85
|
+
telemetry: TELEMETRY,
|
|
86
|
+
span: "BotsInfo",
|
|
72
87
|
}));
|
|
73
88
|
|
|
74
89
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/calls.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: "Calls",
|
|
24
|
+
propagate: "w3c",
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
14
27
|
/** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
15
28
|
export type AddCallRequestUsersList = Array<unknown>;
|
|
16
29
|
export interface AddCallRequest {
|
|
@@ -110,6 +123,8 @@ export const addCall: API.OperationMethod<
|
|
|
110
123
|
errors: [SlackError, SlackRateLimited],
|
|
111
124
|
protocol: SlackProtocol,
|
|
112
125
|
retry: Retry.Retry,
|
|
126
|
+
telemetry: TELEMETRY,
|
|
127
|
+
span: "AddCall",
|
|
113
128
|
}));
|
|
114
129
|
|
|
115
130
|
export type AddParticipantError = SlackOpError;
|
|
@@ -125,6 +140,8 @@ export const addParticipant: API.OperationMethod<
|
|
|
125
140
|
errors: [SlackError, SlackRateLimited],
|
|
126
141
|
protocol: SlackProtocol,
|
|
127
142
|
retry: Retry.Retry,
|
|
143
|
+
telemetry: TELEMETRY,
|
|
144
|
+
span: "AddParticipant",
|
|
128
145
|
}));
|
|
129
146
|
|
|
130
147
|
export type CallsEndError = SlackOpError;
|
|
@@ -140,6 +157,8 @@ export const callsEnd: API.OperationMethod<
|
|
|
140
157
|
errors: [SlackError, SlackRateLimited],
|
|
141
158
|
protocol: SlackProtocol,
|
|
142
159
|
retry: Retry.Retry,
|
|
160
|
+
telemetry: TELEMETRY,
|
|
161
|
+
span: "CallsEnd",
|
|
143
162
|
}));
|
|
144
163
|
|
|
145
164
|
export type CallsInfoError = SlackOpError;
|
|
@@ -155,6 +174,8 @@ export const callsInfo: API.OperationMethod<
|
|
|
155
174
|
errors: [SlackError, SlackRateLimited],
|
|
156
175
|
protocol: SlackProtocol,
|
|
157
176
|
retry: Retry.Retry,
|
|
177
|
+
telemetry: TELEMETRY,
|
|
178
|
+
span: "CallsInfo",
|
|
158
179
|
}));
|
|
159
180
|
|
|
160
181
|
export type RemoveParticipantError = SlackOpError;
|
|
@@ -170,6 +191,8 @@ export const removeParticipant: API.OperationMethod<
|
|
|
170
191
|
errors: [SlackError, SlackRateLimited],
|
|
171
192
|
protocol: SlackProtocol,
|
|
172
193
|
retry: Retry.Retry,
|
|
194
|
+
telemetry: TELEMETRY,
|
|
195
|
+
span: "RemoveParticipant",
|
|
173
196
|
}));
|
|
174
197
|
|
|
175
198
|
export type UpdateCallError = SlackOpError;
|
|
@@ -185,6 +208,8 @@ export const updateCall: API.OperationMethod<
|
|
|
185
208
|
errors: [SlackError, SlackRateLimited],
|
|
186
209
|
protocol: SlackProtocol,
|
|
187
210
|
retry: Retry.Retry,
|
|
211
|
+
telemetry: TELEMETRY,
|
|
212
|
+
span: "UpdateCall",
|
|
188
213
|
}));
|
|
189
214
|
|
|
190
215
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|