@distilled.cloud/slack 1.0.0-rc.19 → 1.0.0-rc.21

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 (188) hide show
  1. package/README.md +2 -2
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +6 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +10 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +0 -1
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +47 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts +1 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/services/admin.d.ts +264 -83
  19. package/lib/services/admin.d.ts.map +1 -1
  20. package/lib/services/admin.js +154 -149
  21. package/lib/services/admin.js.map +1 -1
  22. package/lib/services/agents.d.ts.map +1 -1
  23. package/lib/services/agents.js +1 -1
  24. package/lib/services/agents.js.map +1 -1
  25. package/lib/services/api.d.ts.map +1 -1
  26. package/lib/services/api.js +1 -1
  27. package/lib/services/api.js.map +1 -1
  28. package/lib/services/apps.d.ts +7 -7
  29. package/lib/services/apps.d.ts.map +1 -1
  30. package/lib/services/apps.js +34 -34
  31. package/lib/services/apps.js.map +1 -1
  32. package/lib/services/assistant.d.ts +4 -1
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +1 -1
  35. package/lib/services/assistant.js.map +1 -1
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +1 -1
  38. package/lib/services/auth.js.map +1 -1
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +1 -1
  41. package/lib/services/blocks.js.map +1 -1
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +1 -1
  44. package/lib/services/bookmarks.js.map +1 -1
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +1 -1
  47. package/lib/services/bots.js.map +1 -1
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +1 -1
  50. package/lib/services/calls.js.map +1 -1
  51. package/lib/services/canvases.d.ts +1 -1
  52. package/lib/services/canvases.d.ts.map +1 -1
  53. package/lib/services/canvases.js +1 -1
  54. package/lib/services/canvases.js.map +1 -1
  55. package/lib/services/chat.d.ts.map +1 -1
  56. package/lib/services/chat.js +1 -1
  57. package/lib/services/chat.js.map +1 -1
  58. package/lib/services/conversations.d.ts +5 -5
  59. package/lib/services/conversations.d.ts.map +1 -1
  60. package/lib/services/conversations.js +39 -39
  61. package/lib/services/conversations.js.map +1 -1
  62. package/lib/services/dialog.d.ts.map +1 -1
  63. package/lib/services/dialog.js +1 -1
  64. package/lib/services/dialog.js.map +1 -1
  65. package/lib/services/dnd.d.ts.map +1 -1
  66. package/lib/services/dnd.js +1 -1
  67. package/lib/services/dnd.js.map +1 -1
  68. package/lib/services/emoji.d.ts.map +1 -1
  69. package/lib/services/emoji.js +1 -1
  70. package/lib/services/emoji.js.map +1 -1
  71. package/lib/services/entity.d.ts.map +1 -1
  72. package/lib/services/entity.js +1 -1
  73. package/lib/services/entity.js.map +1 -1
  74. package/lib/services/files.d.ts +1 -1
  75. package/lib/services/files.d.ts.map +1 -1
  76. package/lib/services/files.js +28 -28
  77. package/lib/services/files.js.map +1 -1
  78. package/lib/services/functions.d.ts.map +1 -1
  79. package/lib/services/functions.js +1 -1
  80. package/lib/services/functions.js.map +1 -1
  81. package/lib/services/index.d.ts.map +1 -1
  82. package/lib/services/lists.d.ts.map +1 -1
  83. package/lib/services/lists.js +1 -1
  84. package/lib/services/lists.js.map +1 -1
  85. package/lib/services/migration.d.ts.map +1 -1
  86. package/lib/services/migration.js +1 -1
  87. package/lib/services/migration.js.map +1 -1
  88. package/lib/services/oauth.d.ts +6 -6
  89. package/lib/services/oauth.d.ts.map +1 -1
  90. package/lib/services/oauth.js +1 -1
  91. package/lib/services/oauth.js.map +1 -1
  92. package/lib/services/openid.d.ts +2 -2
  93. package/lib/services/openid.d.ts.map +1 -1
  94. package/lib/services/openid.js +1 -1
  95. package/lib/services/openid.js.map +1 -1
  96. package/lib/services/pins.d.ts.map +1 -1
  97. package/lib/services/pins.js +1 -1
  98. package/lib/services/pins.js.map +1 -1
  99. package/lib/services/reactions.d.ts.map +1 -1
  100. package/lib/services/reactions.js +1 -1
  101. package/lib/services/reactions.js.map +1 -1
  102. package/lib/services/reminders.d.ts.map +1 -1
  103. package/lib/services/reminders.js +1 -1
  104. package/lib/services/reminders.js.map +1 -1
  105. package/lib/services/rtm.d.ts.map +1 -1
  106. package/lib/services/rtm.js +1 -1
  107. package/lib/services/rtm.js.map +1 -1
  108. package/lib/services/search.d.ts.map +1 -1
  109. package/lib/services/search.js +1 -1
  110. package/lib/services/search.js.map +1 -1
  111. package/lib/services/slackbot.d.ts +2 -2
  112. package/lib/services/slackbot.d.ts.map +1 -1
  113. package/lib/services/slackbot.js +1 -1
  114. package/lib/services/slackbot.js.map +1 -1
  115. package/lib/services/stars.d.ts.map +1 -1
  116. package/lib/services/stars.js +1 -1
  117. package/lib/services/stars.js.map +1 -1
  118. package/lib/services/team.d.ts +1 -1
  119. package/lib/services/team.d.ts.map +1 -1
  120. package/lib/services/team.js +1 -1
  121. package/lib/services/team.js.map +1 -1
  122. package/lib/services/tooling.d.ts +1 -1
  123. package/lib/services/tooling.d.ts.map +1 -1
  124. package/lib/services/tooling.js +1 -1
  125. package/lib/services/tooling.js.map +1 -1
  126. package/lib/services/usergroups.d.ts.map +1 -1
  127. package/lib/services/usergroups.js +1 -1
  128. package/lib/services/usergroups.js.map +1 -1
  129. package/lib/services/users.d.ts +73 -1
  130. package/lib/services/users.d.ts.map +1 -1
  131. package/lib/services/users.js +1 -1
  132. package/lib/services/users.js.map +1 -1
  133. package/lib/services/views.d.ts.map +1 -1
  134. package/lib/services/views.js +1 -1
  135. package/lib/services/views.js.map +1 -1
  136. package/lib/services/workflows.d.ts +4 -4
  137. package/lib/services/workflows.d.ts.map +1 -1
  138. package/lib/services/workflows.js +1 -1
  139. package/lib/services/workflows.js.map +1 -1
  140. package/lib/services.lazy/admin.js +2 -2
  141. package/lib/services.lazy/apps.js +1 -1
  142. package/lib/services.lazy/conversations.js +1 -1
  143. package/lib/services.lazy/files.js +1 -1
  144. package/lib/traits.d.ts.map +1 -1
  145. package/package.json +6 -7
  146. package/src/credentials.ts +20 -15
  147. package/src/errors.ts +12 -1
  148. package/src/index.ts +0 -1
  149. package/src/protocol.ts +96 -86
  150. package/src/retry.ts +1 -2
  151. package/src/services/admin.ts +1523 -951
  152. package/src/services/agents.ts +23 -12
  153. package/src/services/api.ts +3 -2
  154. package/src/services/apps.ts +57 -34
  155. package/src/services/assistant.ts +17 -8
  156. package/src/services/auth.ts +7 -4
  157. package/src/services/blocks.ts +3 -2
  158. package/src/services/bookmarks.ts +9 -5
  159. package/src/services/bots.ts +3 -2
  160. package/src/services/calls.ts +13 -7
  161. package/src/services/canvases.ts +16 -9
  162. package/src/services/chat.ts +27 -14
  163. package/src/services/conversations.ts +62 -34
  164. package/src/services/dialog.ts +3 -2
  165. package/src/services/dnd.ts +11 -6
  166. package/src/services/emoji.ts +3 -2
  167. package/src/services/entity.ts +7 -4
  168. package/src/services/files.ts +32 -17
  169. package/src/services/functions.ts +17 -9
  170. package/src/services/lists.ts +25 -13
  171. package/src/services/migration.ts +3 -2
  172. package/src/services/oauth.ts +23 -17
  173. package/src/services/openid.ts +8 -6
  174. package/src/services/pins.ts +7 -4
  175. package/src/services/reactions.ts +9 -5
  176. package/src/services/reminders.ts +11 -6
  177. package/src/services/rtm.ts +5 -3
  178. package/src/services/search.ts +7 -4
  179. package/src/services/slackbot.ts +17 -10
  180. package/src/services/stars.ts +7 -4
  181. package/src/services/team.ts +20 -11
  182. package/src/services/tooling.ts +5 -4
  183. package/src/services/usergroups.ts +15 -8
  184. package/src/services/users.ts +136 -17
  185. package/src/services/views.ts +9 -5
  186. package/src/services/workflows.ts +21 -13
  187. package/lib/index.lazy.js +0 -7
  188. package/lib/index.lazy.js.map +0 -1
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { SlackServiceErrors } from "../errors.ts";
6
6
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
7
7
  import * as Retry from "../retry.ts";
8
8
  import * as T from "../traits.ts";
@@ -371,7 +371,8 @@ export const archiveConversation: API.OperationMethod<
371
371
  > = /*@__PURE__*/ API.make(() => ({
372
372
  input: __S(0, __c0, 0) as any as S.Schema<ArchiveConversationRequest>,
373
373
  output: __S(1, __c0, 1) as any as S.Schema<ArchiveConversationResponse>,
374
- errors: [SlackError, SlackRateLimited],
374
+ errors: [],
375
+ serviceErrors: SlackServiceErrors,
375
376
  protocol: SlackProtocol,
376
377
  retry: Retry.Retry,
377
378
  telemetry: TELEMETRY,
@@ -388,7 +389,8 @@ export const createConversation: API.OperationMethod<
388
389
  > = /*@__PURE__*/ API.make(() => ({
389
390
  input: __S(8, __c1, 0) as any as S.Schema<CreateConversationRequest>,
390
391
  output: __S(16, __c2, 0) as any as S.Schema<CreateConversationResponse>,
391
- errors: [SlackError, SlackRateLimited],
392
+ errors: [],
393
+ serviceErrors: SlackServiceErrors,
392
394
  protocol: SlackProtocol,
393
395
  retry: Retry.Retry,
394
396
  telemetry: TELEMETRY,
@@ -405,7 +407,8 @@ export const getCanvas: API.OperationMethod<
405
407
  > = /*@__PURE__*/ API.make(() => ({
406
408
  input: __S(32, __c4, 0) as any as S.Schema<GetCanvasRequest>,
407
409
  output: __S(37, __c4, 5) as any as S.Schema<GetCanvasResponse>,
408
- errors: [SlackError, SlackRateLimited],
410
+ errors: [],
411
+ serviceErrors: SlackServiceErrors,
409
412
  protocol: SlackProtocol,
410
413
  retry: Retry.Retry,
411
414
  telemetry: TELEMETRY,
@@ -422,7 +425,8 @@ export const listViews: API.OperationMethod<
422
425
  > = /*@__PURE__*/ API.make(() => ({
423
426
  input: __S(40, __c5, 0) as any as S.Schema<ListViewsRequest>,
424
427
  output: __S(43, __c5, 3) as any as S.Schema<ListViewsResponse>,
425
- errors: [SlackError, SlackRateLimited],
428
+ errors: [],
429
+ serviceErrors: SlackServiceErrors,
426
430
  protocol: SlackProtocol,
427
431
  retry: Retry.Retry,
428
432
  telemetry: TELEMETRY,
@@ -439,7 +443,8 @@ export const removeView: API.OperationMethod<
439
443
  > = /*@__PURE__*/ API.make(() => ({
440
444
  input: __S(48, __c6, 0) as any as S.Schema<RemoveViewRequest>,
441
445
  output: __S(49, __c6, 1) as any as S.Schema<RemoveViewResponse>,
442
- errors: [SlackError, SlackRateLimited],
446
+ errors: [],
447
+ serviceErrors: SlackServiceErrors,
443
448
  protocol: SlackProtocol,
444
449
  retry: Retry.Retry,
445
450
  telemetry: TELEMETRY,
@@ -456,7 +461,8 @@ export const renameSession: API.OperationMethod<
456
461
  > = /*@__PURE__*/ API.make(() => ({
457
462
  input: __S(56, __c7, 0) as any as S.Schema<RenameSessionRequest>,
458
463
  output: __S(57, __c7, 1) as any as S.Schema<RenameSessionResponse>,
459
- errors: [SlackError, SlackRateLimited],
464
+ errors: [],
465
+ serviceErrors: SlackServiceErrors,
460
466
  protocol: SlackProtocol,
461
467
  retry: Retry.Retry,
462
468
  telemetry: TELEMETRY,
@@ -473,7 +479,8 @@ export const setCanvasContent: API.OperationMethod<
473
479
  > = /*@__PURE__*/ API.make(() => ({
474
480
  input: __S(64, __c8, 0) as any as S.Schema<SetCanvasContentRequest>,
475
481
  output: __S(65, __c8, 1) as any as S.Schema<SetCanvasContentResponse>,
476
- errors: [SlackError, SlackRateLimited],
482
+ errors: [],
483
+ serviceErrors: SlackServiceErrors,
477
484
  protocol: SlackProtocol,
478
485
  retry: Retry.Retry,
479
486
  telemetry: TELEMETRY,
@@ -490,7 +497,8 @@ export const setCommands: API.OperationMethod<
490
497
  > = /*@__PURE__*/ API.make(() => ({
491
498
  input: __S(72, __c9, 0) as any as S.Schema<SetCommandsRequest>,
492
499
  output: __S(73, __c9, 1) as any as S.Schema<SetCommandsResponse>,
493
- errors: [SlackError, SlackRateLimited],
500
+ errors: [],
501
+ serviceErrors: SlackServiceErrors,
494
502
  protocol: SlackProtocol,
495
503
  retry: Retry.Retry,
496
504
  telemetry: TELEMETRY,
@@ -507,7 +515,8 @@ export const setProperties: API.OperationMethod<
507
515
  > = /*@__PURE__*/ API.make(() => ({
508
516
  input: __S(91, __c11, 3) as any as S.Schema<SetPropertiesRequest>,
509
517
  output: __S(16, __c2, 0) as any as S.Schema<SetPropertiesResponse>,
510
- errors: [SlackError, SlackRateLimited],
518
+ errors: [],
519
+ serviceErrors: SlackServiceErrors,
511
520
  protocol: SlackProtocol,
512
521
  retry: Retry.Retry,
513
522
  telemetry: TELEMETRY,
@@ -524,7 +533,8 @@ export const setStatus: API.OperationMethod<
524
533
  > = /*@__PURE__*/ API.make(() => ({
525
534
  input: __S(104, __c13, 0) as any as S.Schema<SetStatusRequest>,
526
535
  output: __S(105, __c13, 1) as any as S.Schema<SetStatusResponse>,
527
- errors: [SlackError, SlackRateLimited],
536
+ errors: [],
537
+ serviceErrors: SlackServiceErrors,
528
538
  protocol: SlackProtocol,
529
539
  retry: Retry.Retry,
530
540
  telemetry: TELEMETRY,
@@ -541,7 +551,8 @@ export const setView: API.OperationMethod<
541
551
  > = /*@__PURE__*/ API.make(() => ({
542
552
  input: __S(25, __c3, 1) as any as S.Schema<SetViewRequest>,
543
553
  output: __S(26, __c3, 2) as any as S.Schema<SetViewResponse>,
544
- errors: [SlackError, SlackRateLimited],
554
+ errors: [],
555
+ serviceErrors: SlackServiceErrors,
545
556
  protocol: SlackProtocol,
546
557
  retry: Retry.Retry,
547
558
  telemetry: TELEMETRY,
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { SlackServiceErrors } from "../errors.ts";
6
6
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
7
7
  import * as Retry from "../retry.ts";
8
8
  import * as T from "../traits.ts";
@@ -44,7 +44,8 @@ export const testApi: API.OperationMethod<
44
44
  > = /*@__PURE__*/ API.make(() => ({
45
45
  input: __S(0, __c0, 0) as any as S.Schema<TestApiRequest>,
46
46
  output: __S(2, __c0, 2) as any as S.Schema<TestApiResponse>,
47
- errors: [SlackError, SlackRateLimited],
47
+ errors: [],
48
+ serviceErrors: SlackServiceErrors,
48
49
  protocol: SlackProtocol,
49
50
  retry: Retry.Retry,
50
51
  telemetry: TELEMETRY,
@@ -3,7 +3,7 @@ import * as API from "@distilled.cloud/core/api";
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
5
  import type * as Redacted from "effect/Redacted";
6
- import { SlackError, SlackRateLimited } from "../errors.ts";
6
+ import { SlackServiceErrors } from "../errors.ts";
7
7
  import { slackPaginate } from "../pagination.ts";
8
8
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
9
9
  import * as Retry from "../retry.ts";
@@ -102,7 +102,7 @@ export interface CreateManifestRequest {
102
102
  export interface CreateManifestResponseCredentials {
103
103
  client_id?: string | undefined;
104
104
  client_secret?: string | Redacted.Redacted<string> | undefined;
105
- verification_token?: string | undefined;
105
+ verification_token?: string | Redacted.Redacted<string> | undefined;
106
106
  signing_secret?: string | Redacted.Redacted<string> | undefined;
107
107
  }
108
108
  export interface CreateManifestResponse {
@@ -115,7 +115,7 @@ export interface CreateManifestResponse {
115
115
  team_id?: string | undefined;
116
116
  /** The team domain where the app was created on */
117
117
  team_domain?: string | undefined;
118
- app_token?: string | undefined;
118
+ app_token?: string | Redacted.Redacted<string> | undefined;
119
119
  }
120
120
  /** A map of attributes referenced in expression */
121
121
  export type DatastoreCountRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
@@ -228,7 +228,7 @@ export interface GetAuthExternalRequest {
228
228
  export interface GetAuthExternalResponse {
229
229
  /** Always `true` (a failed call raises a typed error instead). */
230
230
  ok: boolean;
231
- external_token: string;
231
+ external_token: string | Redacted.Redacted<string>;
232
232
  token_response_extras: unknown;
233
233
  }
234
234
  export interface GetDatastoreRequest {
@@ -442,7 +442,8 @@ export const bulkDelete: API.OperationMethod<
442
442
  > = /*@__PURE__*/ API.make(() => ({
443
443
  input: __S(0, __c0, 0) as any as S.Schema<BulkDeleteRequest>,
444
444
  output: __S(1, __c0, 1) as any as S.Schema<BulkDeleteResponse>,
445
- errors: [SlackError, SlackRateLimited],
445
+ errors: [],
446
+ serviceErrors: SlackServiceErrors,
446
447
  protocol: SlackProtocol,
447
448
  retry: Retry.Retry,
448
449
  telemetry: TELEMETRY,
@@ -459,7 +460,8 @@ export const bulkGet: API.OperationMethod<
459
460
  > = /*@__PURE__*/ API.make(() => ({
460
461
  input: __S(8, __c2, 0) as any as S.Schema<BulkGetRequest>,
461
462
  output: __S(9, __c2, 1) as any as S.Schema<BulkGetResponse>,
462
- errors: [SlackError, SlackRateLimited],
463
+ errors: [],
464
+ serviceErrors: SlackServiceErrors,
463
465
  protocol: SlackProtocol,
464
466
  retry: Retry.Retry,
465
467
  telemetry: TELEMETRY,
@@ -476,7 +478,8 @@ export const bulkPut: API.OperationMethod<
476
478
  > = /*@__PURE__*/ API.make(() => ({
477
479
  input: __S(64, __c16, 0) as any as S.Schema<BulkPutRequest>,
478
480
  output: __S(65, __c16, 1) as any as S.Schema<BulkPutResponse>,
479
- errors: [SlackError, SlackRateLimited],
481
+ errors: [],
482
+ serviceErrors: SlackServiceErrors,
480
483
  protocol: SlackProtocol,
481
484
  retry: Retry.Retry,
482
485
  telemetry: TELEMETRY,
@@ -493,7 +496,8 @@ export const connectionsOpen: API.OperationMethod<
493
496
  > = /*@__PURE__*/ API.make(() => ({
494
497
  input: __S(80, __c20, 0) as any as S.Schema<ConnectionsOpenRequest>,
495
498
  output: __S(81, __c20, 1) as any as S.Schema<ConnectionsOpenResponse>,
496
- errors: [SlackError, SlackRateLimited],
499
+ errors: [],
500
+ serviceErrors: SlackServiceErrors,
497
501
  protocol: SlackProtocol,
498
502
  retry: Retry.Retry,
499
503
  telemetry: TELEMETRY,
@@ -501,7 +505,7 @@ export const connectionsOpen: API.OperationMethod<
501
505
  }));
502
506
 
503
507
  export type CreateManifestError = SlackOpError;
504
- /** Create an app from an app manifest. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_arguments` -- Invalid API arguments provided. - `invalid_manager_app` -- The calling app is not enrolled as a manager app. Ensure the app has `app_configurations:write` in its configured scopes and its home team has manager app support enabled. - `invalid_manifest` -- The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues. - `invalid_team_id` -- The provided team ID is not valid - `not_in_team` -- Cannot create an app in a team that user is not a member of - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `failed_generating_app_token` -- App level token failed to generate. - `feature_not_enabled` -- The required feature is not enabled for this workspace. - `managed_app_limit_reached` -- The manager app has reached the maximum number of managed apps it can create. - `ratelimited` -- Too many calls in succession to create endpoint during a short period of time. - `socket_mode_not_enabled` -- Socket mode is not enabled in manifest. - `enterprise_is_restricted` -- Org-level tokens are not allowed. - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.create */
508
+ /** Create an app from an app manifest. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_arguments` -- Invalid API arguments provided. - `invalid_manager_app` -- The calling app is not enrolled as a manager app. Ensure the app has `app_configurations:write` in its configured scopes and its home team has manager app support enabled. - `invalid_manifest` -- The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues. - `invalid_team_id` -- The provided team ID is not valid - `not_in_team` -- Cannot create an app in a team that user is not a member of - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `failed_generating_app_token` -- App level token failed to generate. - `feature_not_enabled` -- The required feature is not enabled for this workspace. - `managed_app_limit_reached` -- The manager app has reached the maximum number of managed apps it can create. - `ratelimited` -- Too many calls in succession to create endpoint during a short period of time. - `socket_mode_not_enabled` -- Socket mode is not enabled in manifest. - `enterprise_is_restricted` -- Org-level tokens are not allowed. - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.create */
505
509
  export const createManifest: API.OperationMethod<
506
510
  CreateManifestRequest,
507
511
  CreateManifestResponse,
@@ -510,7 +514,8 @@ export const createManifest: API.OperationMethod<
510
514
  > = /*@__PURE__*/ API.make(() => ({
511
515
  input: __S(84, __c21, 0) as any as S.Schema<CreateManifestRequest>,
512
516
  output: __S(86, __c21, 2) as any as S.Schema<CreateManifestResponse>,
513
- errors: [SlackError, SlackRateLimited],
517
+ errors: [],
518
+ serviceErrors: SlackServiceErrors,
514
519
  protocol: SlackProtocol,
515
520
  retry: Retry.Retry,
516
521
  telemetry: TELEMETRY,
@@ -527,7 +532,8 @@ export const datastoreCount: API.OperationMethod<
527
532
  > = /*@__PURE__*/ API.make(() => ({
528
533
  input: __S(88, __c22, 0) as any as S.Schema<DatastoreCountRequest>,
529
534
  output: __S(89, __c22, 1) as any as S.Schema<DatastoreCountResponse>,
530
- errors: [SlackError, SlackRateLimited],
535
+ errors: [],
536
+ serviceErrors: SlackServiceErrors,
531
537
  protocol: SlackProtocol,
532
538
  retry: Retry.Retry,
533
539
  telemetry: TELEMETRY,
@@ -546,7 +552,8 @@ export const datastoreQuery: API.PaginatedOperationMethod<
546
552
  () => ({
547
553
  input: __S(92, __c23, 0) as any as S.Schema<DatastoreQueryRequest>,
548
554
  output: __S(93, __c23, 1) as any as S.Schema<DatastoreQueryResponse>,
549
- errors: [SlackError, SlackRateLimited],
555
+ errors: [],
556
+ serviceErrors: SlackServiceErrors,
550
557
  protocol: SlackProtocol,
551
558
  retry: Retry.Retry,
552
559
  telemetry: TELEMETRY,
@@ -572,7 +579,8 @@ export const deleteAuthExternal: API.OperationMethod<
572
579
  > = /*@__PURE__*/ API.make(() => ({
573
580
  input: __S(100, __c25, 0) as any as S.Schema<DeleteAuthExternalRequest>,
574
581
  output: __S(104, __c26, 0) as any as S.Schema<DeleteAuthExternalResponse>,
575
- errors: [SlackError, SlackRateLimited],
582
+ errors: [],
583
+ serviceErrors: SlackServiceErrors,
576
584
  protocol: SlackProtocol,
577
585
  retry: Retry.Retry,
578
586
  telemetry: TELEMETRY,
@@ -589,7 +597,8 @@ export const deleteDatastore: API.OperationMethod<
589
597
  > = /*@__PURE__*/ API.make(() => ({
590
598
  input: __S(108, __c27, 0) as any as S.Schema<DeleteDatastoreRequest>,
591
599
  output: __S(104, __c26, 0) as any as S.Schema<DeleteDatastoreResponse>,
592
- errors: [SlackError, SlackRateLimited],
600
+ errors: [],
601
+ serviceErrors: SlackServiceErrors,
593
602
  protocol: SlackProtocol,
594
603
  retry: Retry.Retry,
595
604
  telemetry: TELEMETRY,
@@ -597,7 +606,7 @@ export const deleteDatastore: API.OperationMethod<
597
606
  }));
598
607
 
599
608
  export type DeleteManifestError = SlackOpError;
600
- /** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found. - `internal_error` -- Internal error. - `invalid_app_id` -- The app ID passed in was invalid. - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `published_app_only` -- This action is only permitted for published app IDs. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only delete apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.delete */
609
+ /** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found. - `internal_error` -- Internal error. - `invalid_app_id` -- The app ID passed in was invalid. - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `published_app_only` -- This action is only permitted for published app IDs. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only delete apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.delete */
601
610
  export const deleteManifest: API.OperationMethod<
602
611
  DeleteManifestRequest,
603
612
  DeleteManifestResponse,
@@ -606,7 +615,8 @@ export const deleteManifest: API.OperationMethod<
606
615
  > = /*@__PURE__*/ API.make(() => ({
607
616
  input: __S(112, __c28, 0) as any as S.Schema<DeleteManifestRequest>,
608
617
  output: __S(104, __c26, 0) as any as S.Schema<DeleteManifestResponse>,
609
- errors: [SlackError, SlackRateLimited],
618
+ errors: [],
619
+ serviceErrors: SlackServiceErrors,
610
620
  protocol: SlackProtocol,
611
621
  retry: Retry.Retry,
612
622
  telemetry: TELEMETRY,
@@ -623,7 +633,8 @@ export const exportManifest: API.OperationMethod<
623
633
  > = /*@__PURE__*/ API.make(() => ({
624
634
  input: __S(20, __c5, 0) as any as S.Schema<ExportManifestRequest>,
625
635
  output: __S(21, __c5, 1) as any as S.Schema<ExportManifestResponse>,
626
- errors: [SlackError, SlackRateLimited],
636
+ errors: [],
637
+ serviceErrors: SlackServiceErrors,
627
638
  protocol: SlackProtocol,
628
639
  retry: Retry.Retry,
629
640
  telemetry: TELEMETRY,
@@ -640,7 +651,8 @@ export const getAuthExternal: API.OperationMethod<
640
651
  > = /*@__PURE__*/ API.make(() => ({
641
652
  input: __S(24, __c6, 0) as any as S.Schema<GetAuthExternalRequest>,
642
653
  output: __S(25, __c6, 1) as any as S.Schema<GetAuthExternalResponse>,
643
- errors: [SlackError, SlackRateLimited],
654
+ errors: [],
655
+ serviceErrors: SlackServiceErrors,
644
656
  protocol: SlackProtocol,
645
657
  retry: Retry.Retry,
646
658
  telemetry: TELEMETRY,
@@ -657,7 +669,8 @@ export const getDatastore: API.OperationMethod<
657
669
  > = /*@__PURE__*/ API.make(() => ({
658
670
  input: __S(28, __c7, 0) as any as S.Schema<GetDatastoreRequest>,
659
671
  output: __S(32, __c8, 0) as any as S.Schema<GetDatastoreResponse>,
660
- errors: [SlackError, SlackRateLimited],
672
+ errors: [],
673
+ serviceErrors: SlackServiceErrors,
661
674
  protocol: SlackProtocol,
662
675
  retry: Retry.Retry,
663
676
  telemetry: TELEMETRY,
@@ -676,7 +689,8 @@ export const listActivities: API.PaginatedOperationMethod<
676
689
  () => ({
677
690
  input: __S(36, __c9, 0) as any as S.Schema<ListActivitiesRequest>,
678
691
  output: __S(38, __c9, 2) as any as S.Schema<ListActivitiesResponse>,
679
- errors: [SlackError, SlackRateLimited],
692
+ errors: [],
693
+ serviceErrors: SlackServiceErrors,
680
694
  protocol: SlackProtocol,
681
695
  retry: Retry.Retry,
682
696
  telemetry: TELEMETRY,
@@ -704,7 +718,8 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
704
718
  () => ({
705
719
  input: __S(40, __c10, 0) as any as S.Schema<ListEventAuthorizationsRequest>,
706
720
  output: __S(43, __c10, 3) as any as S.Schema<ListEventAuthorizationsResponse>,
707
- errors: [SlackError, SlackRateLimited],
721
+ errors: [],
722
+ serviceErrors: SlackServiceErrors,
708
723
  protocol: SlackProtocol,
709
724
  retry: Retry.Retry,
710
725
  telemetry: TELEMETRY,
@@ -730,7 +745,8 @@ export const putDatastore: API.OperationMethod<
730
745
  > = /*@__PURE__*/ API.make(() => ({
731
746
  input: __S(44, __c11, 0) as any as S.Schema<PutDatastoreRequest>,
732
747
  output: __S(32, __c8, 0) as any as S.Schema<PutDatastoreResponse>,
733
- errors: [SlackError, SlackRateLimited],
748
+ errors: [],
749
+ serviceErrors: SlackServiceErrors,
734
750
  protocol: SlackProtocol,
735
751
  retry: Retry.Retry,
736
752
  telemetry: TELEMETRY,
@@ -738,7 +754,7 @@ export const putDatastore: API.OperationMethod<
738
754
  }));
739
755
 
740
756
  export type SetIconError = SlackOpError;
741
- /** Sets the app icon Required scopes -- user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` -- Icon must be a valid image file. - `internal_error` -- Internal error. - `icon_not_accessible` -- The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` -- App does not exist. - `invalid_app_id` -- App ID is not valid. - `invalid_icon_size` -- Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` -- Only one of `URL` or `file` can be defined. - `missing_arguments` -- One of `URL` or `file` must be provided. - `no_permission` -- User does not have required permissions for app. - `unable_to_open_file` -- Error with file upload. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.icon.set */
757
+ /** Sets the app icon Required scopes -- user: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` -- Icon must be a valid image file. - `internal_error` -- Internal error. - `icon_not_accessible` -- The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` -- App does not exist. - `invalid_app_id` -- App ID is not valid. - `invalid_icon_size` -- Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` -- Only one of `URL` or `file` can be defined. - `missing_arguments` -- One of `URL` or `file` must be provided. - `no_permission` -- User does not have required permissions for app. - `unable_to_open_file` -- Error with file upload. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.icon.set */
742
758
  export const setIcon: API.OperationMethod<
743
759
  SetIconRequest,
744
760
  SetIconResponse,
@@ -747,7 +763,8 @@ export const setIcon: API.OperationMethod<
747
763
  > = /*@__PURE__*/ API.make(() => ({
748
764
  input: __S(48, __c12, 0) as any as S.Schema<SetIconRequest>,
749
765
  output: __S(104, __c26, 0) as any as S.Schema<SetIconResponse>,
750
- errors: [SlackError, SlackRateLimited],
766
+ errors: [],
767
+ serviceErrors: SlackServiceErrors,
751
768
  protocol: SlackProtocol,
752
769
  retry: Retry.Retry,
753
770
  telemetry: TELEMETRY,
@@ -764,7 +781,8 @@ export const setManagedPermissions: API.OperationMethod<
764
781
  > = /*@__PURE__*/ API.make(() => ({
765
782
  input: __S(52, __c13, 0) as any as S.Schema<SetManagedPermissionsRequest>,
766
783
  output: __S(104, __c26, 0) as any as S.Schema<SetManagedPermissionsResponse>,
767
- errors: [SlackError, SlackRateLimited],
784
+ errors: [],
785
+ serviceErrors: SlackServiceErrors,
768
786
  protocol: SlackProtocol,
769
787
  retry: Retry.Retry,
770
788
  telemetry: TELEMETRY,
@@ -781,7 +799,8 @@ export const uninstallApp: API.OperationMethod<
781
799
  > = /*@__PURE__*/ API.make(() => ({
782
800
  input: __S(56, __c14, 0) as any as S.Schema<UninstallAppRequest>,
783
801
  output: __S(57, __c14, 1) as any as S.Schema<UninstallAppResponse>,
784
- errors: [SlackError, SlackRateLimited],
802
+ errors: [],
803
+ serviceErrors: SlackServiceErrors,
785
804
  protocol: SlackProtocol,
786
805
  retry: Retry.Retry,
787
806
  telemetry: TELEMETRY,
@@ -798,7 +817,8 @@ export const updateDatastore: API.OperationMethod<
798
817
  > = /*@__PURE__*/ API.make(() => ({
799
818
  input: __S(60, __c15, 0) as any as S.Schema<UpdateDatastoreRequest>,
800
819
  output: __S(32, __c8, 0) as any as S.Schema<UpdateDatastoreResponse>,
801
- errors: [SlackError, SlackRateLimited],
820
+ errors: [],
821
+ serviceErrors: SlackServiceErrors,
802
822
  protocol: SlackProtocol,
803
823
  retry: Retry.Retry,
804
824
  telemetry: TELEMETRY,
@@ -806,7 +826,7 @@ export const updateDatastore: API.OperationMethod<
806
826
  }));
807
827
 
808
828
  export type UpdateManifestError = SlackOpError;
809
- /** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `internal_error` -- Internal error. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `no_permission` -- User does not have permission to update app - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` -- Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.manifest.update */
829
+ /** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `internal_error` -- Internal error. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `no_permission` -- User does not have permission to update app - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` -- Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.manifest.update */
810
830
  export const updateManifest: API.OperationMethod<
811
831
  UpdateManifestRequest,
812
832
  UpdateManifestResponse,
@@ -815,7 +835,8 @@ export const updateManifest: API.OperationMethod<
815
835
  > = /*@__PURE__*/ API.make(() => ({
816
836
  input: __S(68, __c17, 0) as any as S.Schema<UpdateManifestRequest>,
817
837
  output: __S(69, __c17, 1) as any as S.Schema<UpdateManifestResponse>,
818
- errors: [SlackError, SlackRateLimited],
838
+ errors: [],
839
+ serviceErrors: SlackServiceErrors,
819
840
  protocol: SlackProtocol,
820
841
  retry: Retry.Retry,
821
842
  telemetry: TELEMETRY,
@@ -832,7 +853,8 @@ export const updateUserConnection: API.OperationMethod<
832
853
  > = /*@__PURE__*/ API.make(() => ({
833
854
  input: __S(72, __c18, 0) as any as S.Schema<UpdateUserConnectionRequest>,
834
855
  output: __S(104, __c26, 0) as any as S.Schema<UpdateUserConnectionResponse>,
835
- errors: [SlackError, SlackRateLimited],
856
+ errors: [],
857
+ serviceErrors: SlackServiceErrors,
836
858
  protocol: SlackProtocol,
837
859
  retry: Retry.Retry,
838
860
  telemetry: TELEMETRY,
@@ -849,7 +871,8 @@ export const validateManifest: API.OperationMethod<
849
871
  > = /*@__PURE__*/ API.make(() => ({
850
872
  input: __S(76, __c19, 0) as any as S.Schema<ValidateManifestRequest>,
851
873
  output: __S(79, __c19, 3) as any as S.Schema<ValidateManifestResponse>,
852
- errors: [SlackError, SlackRateLimited],
874
+ errors: [],
875
+ serviceErrors: SlackServiceErrors,
853
876
  protocol: SlackProtocol,
854
877
  retry: Retry.Retry,
855
878
  telemetry: TELEMETRY,
@@ -944,7 +967,7 @@ function __c6(j: number): any {
944
967
  return S.suspend(() =>
945
968
  S.Struct({
946
969
  ok: S.Boolean,
947
- external_token: S.String,
970
+ external_token: S.String.pipe(T.SensitiveValue({})),
948
971
  token_response_extras: S.Unknown,
949
972
  }),
950
973
  ).annotate({ identifier: "GetAuthExternalResponse" });
@@ -1226,7 +1249,7 @@ function __c21(j: number): any {
1226
1249
  S.Struct({
1227
1250
  client_id: S.optional(S.String),
1228
1251
  client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
1229
- verification_token: S.optional(S.String),
1252
+ verification_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1230
1253
  signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
1231
1254
  }),
1232
1255
  ).annotate({ identifier: "CreateManifestResponseCredentials" });
@@ -1239,7 +1262,7 @@ function __c21(j: number): any {
1239
1262
  oauth_authorize_url: S.optional(S.String),
1240
1263
  team_id: S.optional(S.String),
1241
1264
  team_domain: S.optional(S.String),
1242
- app_token: S.optional(S.String),
1265
+ app_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1243
1266
  }),
1244
1267
  ).annotate({ identifier: "CreateManifestResponse" });
1245
1268
  }
@@ -2,7 +2,8 @@ import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import type * as Redacted from "effect/Redacted";
6
+ import { SlackServiceErrors } from "../errors.ts";
6
7
  import { slackPaginate } from "../pagination.ts";
7
8
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
@@ -54,7 +55,7 @@ export interface SearchContextRequest {
54
55
  /** User prompt or search query */
55
56
  query: string;
56
57
  /** Send `action_token` as received in a message event. */
57
- action_token?: string | undefined;
58
+ action_token?: string | Redacted.Redacted<string> | undefined;
58
59
  /** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im`. */
59
60
  channel_types?: SearchContextRequestChannelTypesList | undefined;
60
61
  /** Content types to include, a comma-separated list of any combination of `messages`, `files`, `channels`, `users`. */
@@ -238,6 +239,8 @@ export interface SearchContextResponse {
238
239
  response_metadata?: SearchContextResponseResponseMetadata | undefined;
239
240
  /** Requested content types whose search failed. Their lists in `results` are empty because they could not be searched, not because nothing matched. Present only when at least one failed; see the `content_type_search_failed` warning. */
240
241
  failed_content_types: SearchContextResponseFailedContentTypesList;
242
+ /** True when this is the last page that can be fetched but more results exist past it. `next_cursor` is then an empty string even though results were cut off; narrow the query to see the rest. Present only when true; see the `search_page_limit_reached` warning. */
243
+ page_limit_reached?: boolean | undefined;
241
244
  }
242
245
  export interface SearchInfoRequest {}
243
246
  export interface SearchInfoResponse {
@@ -306,7 +309,8 @@ export const searchContext: API.PaginatedOperationMethod<
306
309
  () => ({
307
310
  input: __S(1, __c0, 1) as any as S.Schema<SearchContextRequest>,
308
311
  output: __S(14, __c0, 14) as any as S.Schema<SearchContextResponse>,
309
- errors: [SlackError, SlackRateLimited],
312
+ errors: [],
313
+ serviceErrors: SlackServiceErrors,
310
314
  protocol: SlackProtocol,
311
315
  retry: Retry.Retry,
312
316
  telemetry: TELEMETRY,
@@ -332,7 +336,8 @@ export const searchInfo: API.OperationMethod<
332
336
  > = /*@__PURE__*/ API.make(() => ({
333
337
  input: __S(32, __c2, 0) as any as S.Schema<SearchInfoRequest>,
334
338
  output: __S(33, __c2, 1) as any as S.Schema<SearchInfoResponse>,
335
- errors: [SlackError, SlackRateLimited],
339
+ errors: [],
340
+ serviceErrors: SlackServiceErrors,
336
341
  protocol: SlackProtocol,
337
342
  retry: Retry.Retry,
338
343
  telemetry: TELEMETRY,
@@ -349,7 +354,8 @@ export const setStatus: API.OperationMethod<
349
354
  > = /*@__PURE__*/ API.make(() => ({
350
355
  input: __S(48, __c3, 0) as any as S.Schema<SetStatusRequest>,
351
356
  output: __S(64, __c4, 0) as any as S.Schema<SetStatusResponse>,
352
- errors: [SlackError, SlackRateLimited],
357
+ errors: [],
358
+ serviceErrors: SlackServiceErrors,
353
359
  protocol: SlackProtocol,
354
360
  retry: Retry.Retry,
355
361
  telemetry: TELEMETRY,
@@ -366,7 +372,8 @@ export const setSuggestedPrompts: API.OperationMethod<
366
372
  > = /*@__PURE__*/ API.make(() => ({
367
373
  input: __S(80, __c5, 0) as any as S.Schema<SetSuggestedPromptsRequest>,
368
374
  output: __S(64, __c4, 0) as any as S.Schema<SetSuggestedPromptsResponse>,
369
- errors: [SlackError, SlackRateLimited],
375
+ errors: [],
376
+ serviceErrors: SlackServiceErrors,
370
377
  protocol: SlackProtocol,
371
378
  retry: Retry.Retry,
372
379
  telemetry: TELEMETRY,
@@ -383,7 +390,8 @@ export const setTitle: API.OperationMethod<
383
390
  > = /*@__PURE__*/ API.make(() => ({
384
391
  input: __S(96, __c6, 0) as any as S.Schema<SetTitleRequest>,
385
392
  output: __S(64, __c4, 0) as any as S.Schema<SetTitleResponse>,
386
- errors: [SlackError, SlackRateLimited],
393
+ errors: [],
394
+ serviceErrors: SlackServiceErrors,
387
395
  protocol: SlackProtocol,
388
396
  retry: Retry.Retry,
389
397
  telemetry: TELEMETRY,
@@ -399,7 +407,7 @@ function __c0(j: number): any {
399
407
  return S.suspend(() =>
400
408
  S.Struct({
401
409
  query: S.String,
402
- action_token: S.optional(S.String),
410
+ action_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
403
411
  channel_types: S.optional(__S(0, __c0, 0)),
404
412
  content_types: S.optional(__S(0, __c0, 0)),
405
413
  include_bots: S.optional(S.Boolean),
@@ -524,6 +532,7 @@ function __c0(j: number): any {
524
532
  results: __S(12, __c0, 12),
525
533
  response_metadata: S.optional(__S(13, __c0, 13)),
526
534
  failed_content_types: __S(0, __c0, 0),
535
+ page_limit_reached: S.optional(S.Boolean),
527
536
  }),
528
537
  ).annotate({ identifier: "SearchContextResponse" });
529
538
  }
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { SlackServiceErrors } from "../errors.ts";
6
6
  import { slackPaginate } from "../pagination.ts";
7
7
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
8
8
  import * as Retry from "../retry.ts";
@@ -102,7 +102,8 @@ export const listTeams: API.PaginatedOperationMethod<
102
102
  () => ({
103
103
  input: __S(0, __c0, 0) as any as S.Schema<ListTeamsRequest>,
104
104
  output: __S(5, __c0, 5) as any as S.Schema<ListTeamsResponse>,
105
- errors: [SlackError, SlackRateLimited],
105
+ errors: [],
106
+ serviceErrors: SlackServiceErrors,
106
107
  protocol: SlackProtocol,
107
108
  retry: Retry.Retry,
108
109
  telemetry: TELEMETRY,
@@ -128,7 +129,8 @@ export const revokeAuth: API.OperationMethod<
128
129
  > = /*@__PURE__*/ API.make(() => ({
129
130
  input: __S(8, __c1, 0) as any as S.Schema<RevokeAuthRequest>,
130
131
  output: __S(9, __c1, 1) as any as S.Schema<RevokeAuthResponse>,
131
- errors: [SlackError, SlackRateLimited],
132
+ errors: [],
133
+ serviceErrors: SlackServiceErrors,
132
134
  protocol: SlackProtocol,
133
135
  retry: Retry.Retry,
134
136
  telemetry: TELEMETRY,
@@ -145,7 +147,8 @@ export const testAuth: API.OperationMethod<
145
147
  > = /*@__PURE__*/ API.make(() => ({
146
148
  input: __S(16, __c2, 0) as any as S.Schema<TestAuthRequest>,
147
149
  output: __S(17, __c2, 1) as any as S.Schema<TestAuthResponse>,
148
- errors: [SlackError, SlackRateLimited],
150
+ errors: [],
151
+ serviceErrors: SlackServiceErrors,
149
152
  protocol: SlackProtocol,
150
153
  retry: Retry.Retry,
151
154
  telemetry: TELEMETRY,
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { SlackServiceErrors } from "../errors.ts";
6
6
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
7
7
  import * as Retry from "../retry.ts";
8
8
  import * as T from "../traits.ts";
@@ -50,7 +50,8 @@ export const validateBlock: API.OperationMethod<
50
50
  > = /*@__PURE__*/ API.make(() => ({
51
51
  input: __S(1, __c0, 1) as any as S.Schema<ValidateBlockRequest>,
52
52
  output: __S(2, __c0, 2) as any as S.Schema<ValidateBlockResponse>,
53
- errors: [SlackError, SlackRateLimited],
53
+ errors: [],
54
+ serviceErrors: SlackServiceErrors,
54
55
  protocol: SlackProtocol,
55
56
  retry: Retry.Retry,
56
57
  telemetry: TELEMETRY,