@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.22

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 (189) 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 +268 -87
  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 +54 -28
  23. package/lib/services/agents.d.ts.map +1 -1
  24. package/lib/services/agents.js +1 -1
  25. package/lib/services/agents.js.map +1 -1
  26. package/lib/services/api.d.ts.map +1 -1
  27. package/lib/services/api.js +1 -1
  28. package/lib/services/api.js.map +1 -1
  29. package/lib/services/apps.d.ts +69 -9
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +36 -34
  32. package/lib/services/apps.js.map +1 -1
  33. package/lib/services/assistant.d.ts +4 -1
  34. package/lib/services/assistant.d.ts.map +1 -1
  35. package/lib/services/assistant.js +1 -1
  36. package/lib/services/assistant.js.map +1 -1
  37. package/lib/services/auth.d.ts.map +1 -1
  38. package/lib/services/auth.js +1 -1
  39. package/lib/services/auth.js.map +1 -1
  40. package/lib/services/blocks.d.ts.map +1 -1
  41. package/lib/services/blocks.js +1 -1
  42. package/lib/services/blocks.js.map +1 -1
  43. package/lib/services/bookmarks.d.ts.map +1 -1
  44. package/lib/services/bookmarks.js +1 -1
  45. package/lib/services/bookmarks.js.map +1 -1
  46. package/lib/services/bots.d.ts.map +1 -1
  47. package/lib/services/bots.js +1 -1
  48. package/lib/services/bots.js.map +1 -1
  49. package/lib/services/calls.d.ts.map +1 -1
  50. package/lib/services/calls.js +1 -1
  51. package/lib/services/calls.js.map +1 -1
  52. package/lib/services/canvases.d.ts +1 -1
  53. package/lib/services/canvases.d.ts.map +1 -1
  54. package/lib/services/canvases.js +1 -1
  55. package/lib/services/canvases.js.map +1 -1
  56. package/lib/services/chat.d.ts.map +1 -1
  57. package/lib/services/chat.js +1 -1
  58. package/lib/services/chat.js.map +1 -1
  59. package/lib/services/conversations.d.ts +5 -5
  60. package/lib/services/conversations.d.ts.map +1 -1
  61. package/lib/services/conversations.js +39 -39
  62. package/lib/services/conversations.js.map +1 -1
  63. package/lib/services/dialog.d.ts.map +1 -1
  64. package/lib/services/dialog.js +1 -1
  65. package/lib/services/dialog.js.map +1 -1
  66. package/lib/services/dnd.d.ts.map +1 -1
  67. package/lib/services/dnd.js +1 -1
  68. package/lib/services/dnd.js.map +1 -1
  69. package/lib/services/emoji.d.ts.map +1 -1
  70. package/lib/services/emoji.js +1 -1
  71. package/lib/services/emoji.js.map +1 -1
  72. package/lib/services/entity.d.ts.map +1 -1
  73. package/lib/services/entity.js +1 -1
  74. package/lib/services/entity.js.map +1 -1
  75. package/lib/services/files.d.ts +1 -1
  76. package/lib/services/files.d.ts.map +1 -1
  77. package/lib/services/files.js +28 -28
  78. package/lib/services/files.js.map +1 -1
  79. package/lib/services/functions.d.ts.map +1 -1
  80. package/lib/services/functions.js +1 -1
  81. package/lib/services/functions.js.map +1 -1
  82. package/lib/services/index.d.ts.map +1 -1
  83. package/lib/services/lists.d.ts.map +1 -1
  84. package/lib/services/lists.js +1 -1
  85. package/lib/services/lists.js.map +1 -1
  86. package/lib/services/migration.d.ts.map +1 -1
  87. package/lib/services/migration.js +1 -1
  88. package/lib/services/migration.js.map +1 -1
  89. package/lib/services/oauth.d.ts +6 -6
  90. package/lib/services/oauth.d.ts.map +1 -1
  91. package/lib/services/oauth.js +1 -1
  92. package/lib/services/oauth.js.map +1 -1
  93. package/lib/services/openid.d.ts +2 -2
  94. package/lib/services/openid.d.ts.map +1 -1
  95. package/lib/services/openid.js +1 -1
  96. package/lib/services/openid.js.map +1 -1
  97. package/lib/services/pins.d.ts.map +1 -1
  98. package/lib/services/pins.js +1 -1
  99. package/lib/services/pins.js.map +1 -1
  100. package/lib/services/reactions.d.ts.map +1 -1
  101. package/lib/services/reactions.js +1 -1
  102. package/lib/services/reactions.js.map +1 -1
  103. package/lib/services/reminders.d.ts.map +1 -1
  104. package/lib/services/reminders.js +1 -1
  105. package/lib/services/reminders.js.map +1 -1
  106. package/lib/services/rtm.d.ts.map +1 -1
  107. package/lib/services/rtm.js +1 -1
  108. package/lib/services/rtm.js.map +1 -1
  109. package/lib/services/search.d.ts.map +1 -1
  110. package/lib/services/search.js +1 -1
  111. package/lib/services/search.js.map +1 -1
  112. package/lib/services/slackbot.d.ts +299 -7
  113. package/lib/services/slackbot.d.ts.map +1 -1
  114. package/lib/services/slackbot.js +1 -1
  115. package/lib/services/slackbot.js.map +1 -1
  116. package/lib/services/stars.d.ts.map +1 -1
  117. package/lib/services/stars.js +1 -1
  118. package/lib/services/stars.js.map +1 -1
  119. package/lib/services/team.d.ts +1 -1
  120. package/lib/services/team.d.ts.map +1 -1
  121. package/lib/services/team.js +1 -1
  122. package/lib/services/team.js.map +1 -1
  123. package/lib/services/tooling.d.ts +1 -1
  124. package/lib/services/tooling.d.ts.map +1 -1
  125. package/lib/services/tooling.js +1 -1
  126. package/lib/services/tooling.js.map +1 -1
  127. package/lib/services/usergroups.d.ts.map +1 -1
  128. package/lib/services/usergroups.js +1 -1
  129. package/lib/services/usergroups.js.map +1 -1
  130. package/lib/services/users.d.ts +73 -1
  131. package/lib/services/users.d.ts.map +1 -1
  132. package/lib/services/users.js +1 -1
  133. package/lib/services/users.js.map +1 -1
  134. package/lib/services/views.d.ts.map +1 -1
  135. package/lib/services/views.js +1 -1
  136. package/lib/services/views.js.map +1 -1
  137. package/lib/services/workflows.d.ts +4 -4
  138. package/lib/services/workflows.d.ts.map +1 -1
  139. package/lib/services/workflows.js +1 -1
  140. package/lib/services/workflows.js.map +1 -1
  141. package/lib/services.lazy/admin.js +2 -2
  142. package/lib/services.lazy/apps.js +2 -2
  143. package/lib/services.lazy/conversations.js +1 -1
  144. package/lib/services.lazy/files.js +1 -1
  145. package/lib/traits.d.ts.map +1 -1
  146. package/package.json +6 -7
  147. package/src/credentials.ts +20 -15
  148. package/src/errors.ts +12 -1
  149. package/src/index.ts +0 -1
  150. package/src/protocol.ts +96 -86
  151. package/src/retry.ts +1 -2
  152. package/src/services/admin.ts +1527 -955
  153. package/src/services/agents.ts +110 -50
  154. package/src/services/api.ts +3 -2
  155. package/src/services/apps.ts +307 -136
  156. package/src/services/assistant.ts +17 -8
  157. package/src/services/auth.ts +7 -4
  158. package/src/services/blocks.ts +3 -2
  159. package/src/services/bookmarks.ts +9 -5
  160. package/src/services/bots.ts +3 -2
  161. package/src/services/calls.ts +13 -7
  162. package/src/services/canvases.ts +16 -9
  163. package/src/services/chat.ts +27 -14
  164. package/src/services/conversations.ts +62 -34
  165. package/src/services/dialog.ts +3 -2
  166. package/src/services/dnd.ts +11 -6
  167. package/src/services/emoji.ts +3 -2
  168. package/src/services/entity.ts +7 -4
  169. package/src/services/files.ts +32 -17
  170. package/src/services/functions.ts +17 -9
  171. package/src/services/lists.ts +25 -13
  172. package/src/services/migration.ts +3 -2
  173. package/src/services/oauth.ts +23 -17
  174. package/src/services/openid.ts +8 -6
  175. package/src/services/pins.ts +7 -4
  176. package/src/services/reactions.ts +9 -5
  177. package/src/services/reminders.ts +11 -6
  178. package/src/services/rtm.ts +5 -3
  179. package/src/services/search.ts +7 -4
  180. package/src/services/slackbot.ts +700 -74
  181. package/src/services/stars.ts +7 -4
  182. package/src/services/team.ts +20 -11
  183. package/src/services/tooling.ts +5 -4
  184. package/src/services/usergroups.ts +15 -8
  185. package/src/services/users.ts +136 -17
  186. package/src/services/views.ts +9 -5
  187. package/src/services/workflows.ts +21 -13
  188. package/lib/index.lazy.js +0 -7
  189. package/lib/index.lazy.js.map +0 -1
@@ -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";
@@ -86,6 +86,38 @@ export interface BulkPutResponse {
86
86
  /** attribute names and values of the items that failed to be processed */
87
87
  failed_items?: BulkPutResponseFailedItemsList | undefined;
88
88
  }
89
+ /** IDs of users connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
90
+ export type BulkUpdateRequestConnectedUserIdsList = Array<string>;
91
+ /** IDs of users not connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
92
+ export type BulkUpdateRequestDisconnectedUserIdsList = Array<string>;
93
+ export interface BulkUpdateRequest {
94
+ /** IDs of users connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
95
+ connected_user_ids?: BulkUpdateRequestConnectedUserIdsList | undefined;
96
+ /** IDs of users not connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
97
+ disconnected_user_ids?: BulkUpdateRequestDisconnectedUserIdsList | undefined;
98
+ }
99
+ /** Users whose stored status changed. Users already at the requested status are omitted. */
100
+ export type BulkUpdateResponseChangedUserIdsList = Array<string>;
101
+ /** Why this user's update did not fully succeed. `user_not_found` also covers undecodable IDs and users outside the token's organization. `duplicate_user_id` means the user appeared in both arrays, so no status was written for them. `clients_not_notified` means the status was written but the user's clients could not be told, so they may still show the previous status. Treat unrecognized values as a generic failure. */
102
+ export type BulkUpdateResponseFailuresItemError =
103
+ | "user_not_found"
104
+ | "duplicate_user_id"
105
+ | "clients_not_notified";
106
+ export interface BulkUpdateResponseFailuresItem {
107
+ user_id: string;
108
+ /** Why this user's update did not fully succeed. `user_not_found` also covers undecodable IDs and users outside the token's organization. `duplicate_user_id` means the user appeared in both arrays, so no status was written for them. `clients_not_notified` means the status was written but the user's clients could not be told, so they may still show the previous status. Treat unrecognized values as a generic failure. */
109
+ error: BulkUpdateResponseFailuresItemError;
110
+ }
111
+ /** Users whose update did not fully succeed. A user can also appear in `changed_user_ids`, when their status was written but a later step was not. A user in neither this array nor `changed_user_ids` was already at the requested status. */
112
+ export type BulkUpdateResponseFailuresList = Array<BulkUpdateResponseFailuresItem>;
113
+ export interface BulkUpdateResponse {
114
+ /** Always `true` (a failed call raises a typed error instead). */
115
+ ok: boolean;
116
+ /** Users whose stored status changed. Users already at the requested status are omitted. */
117
+ changed_user_ids: BulkUpdateResponseChangedUserIdsList;
118
+ /** Users whose update did not fully succeed. A user can also appear in `changed_user_ids`, when their status was written but a later step was not. A user in neither this array nor `changed_user_ids` was already at the requested status. */
119
+ failures: BulkUpdateResponseFailuresList;
120
+ }
89
121
  export interface ConnectionsOpenRequest {}
90
122
  export interface ConnectionsOpenResponse {
91
123
  /** Always `true` (a failed call raises a typed error instead). */
@@ -102,7 +134,7 @@ export interface CreateManifestRequest {
102
134
  export interface CreateManifestResponseCredentials {
103
135
  client_id?: string | undefined;
104
136
  client_secret?: string | Redacted.Redacted<string> | undefined;
105
- verification_token?: string | undefined;
137
+ verification_token?: string | Redacted.Redacted<string> | undefined;
106
138
  signing_secret?: string | Redacted.Redacted<string> | undefined;
107
139
  }
108
140
  export interface CreateManifestResponse {
@@ -115,7 +147,7 @@ export interface CreateManifestResponse {
115
147
  team_id?: string | undefined;
116
148
  /** The team domain where the app was created on */
117
149
  team_domain?: string | undefined;
118
- app_token?: string | undefined;
150
+ app_token?: string | Redacted.Redacted<string> | undefined;
119
151
  }
120
152
  /** A map of attributes referenced in expression */
121
153
  export type DatastoreCountRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
@@ -228,7 +260,7 @@ export interface GetAuthExternalRequest {
228
260
  export interface GetAuthExternalResponse {
229
261
  /** Always `true` (a failed call raises a typed error instead). */
230
262
  ok: boolean;
231
- external_token: string;
263
+ external_token: string | Redacted.Redacted<string>;
232
264
  token_response_extras: unknown;
233
265
  }
234
266
  export interface GetDatastoreRequest {
@@ -333,6 +365,31 @@ export interface PutDatastoreResponse {
333
365
  /** attribute names and values of the item */
334
366
  item?: PutDatastoreResponseItemMap | undefined;
335
367
  }
368
+ /** The connection to render. Its `icon_url` defaults to the app's own avatar when omitted. */
369
+ export interface RequestAuthRequestPrimaryProvider {
370
+ value: string;
371
+ name: unknown;
372
+ description?: unknown | undefined;
373
+ icon_url?: string | undefined;
374
+ auth_url?: string | undefined;
375
+ disconnect_url?: string | undefined;
376
+ is_connected: boolean;
377
+ connected_identity?: unknown | undefined;
378
+ connected_context?: unknown | undefined;
379
+ accessory?: unknown | undefined;
380
+ }
381
+ export interface RequestAuthRequest {
382
+ /** The `trigger_id` from the `user_connection` event. Opens a new modal. When `primary_provider` has an `auth_url`, Slack may open it for the user immediately instead. */
383
+ trigger_id?: string | undefined;
384
+ /** The user whose auth modal to update. Required when `trigger_id` is omitted, and ignored when it is present. */
385
+ user_id?: string | undefined;
386
+ /** The connection to render. Its `icon_url` defaults to the app's own avatar when omitted. */
387
+ primary_provider: RequestAuthRequestPrimaryProvider;
388
+ }
389
+ export interface RequestAuthResponse {
390
+ /** Always `true` (a failed call raises a typed error instead). */
391
+ ok: boolean;
392
+ }
336
393
  export interface SetIconRequest {
337
394
  /** The ID of the app whose icon you want to set. */
338
395
  app_id: string;
@@ -402,7 +459,7 @@ export interface UpdateManifestResponse {
402
459
  /** The status that should be set for the user. */
403
460
  export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
404
461
  export interface UpdateUserConnectionRequest {
405
- /** The ID of the user for the status update. */
462
+ /** The ID of the user whose connection status is being updated. */
406
463
  user_id: string;
407
464
  /** The status that should be set for the user. */
408
465
  status: UpdateUserConnectionRequestStatus | (string & {});
@@ -442,7 +499,8 @@ export const bulkDelete: API.OperationMethod<
442
499
  > = /*@__PURE__*/ API.make(() => ({
443
500
  input: __S(0, __c0, 0) as any as S.Schema<BulkDeleteRequest>,
444
501
  output: __S(1, __c0, 1) as any as S.Schema<BulkDeleteResponse>,
445
- errors: [SlackError, SlackRateLimited],
502
+ errors: [],
503
+ serviceErrors: SlackServiceErrors,
446
504
  protocol: SlackProtocol,
447
505
  retry: Retry.Retry,
448
506
  telemetry: TELEMETRY,
@@ -459,7 +517,8 @@ export const bulkGet: API.OperationMethod<
459
517
  > = /*@__PURE__*/ API.make(() => ({
460
518
  input: __S(8, __c2, 0) as any as S.Schema<BulkGetRequest>,
461
519
  output: __S(9, __c2, 1) as any as S.Schema<BulkGetResponse>,
462
- errors: [SlackError, SlackRateLimited],
520
+ errors: [],
521
+ serviceErrors: SlackServiceErrors,
463
522
  protocol: SlackProtocol,
464
523
  retry: Retry.Retry,
465
524
  telemetry: TELEMETRY,
@@ -476,13 +535,32 @@ export const bulkPut: API.OperationMethod<
476
535
  > = /*@__PURE__*/ API.make(() => ({
477
536
  input: __S(64, __c16, 0) as any as S.Schema<BulkPutRequest>,
478
537
  output: __S(65, __c16, 1) as any as S.Schema<BulkPutResponse>,
479
- errors: [SlackError, SlackRateLimited],
538
+ errors: [],
539
+ serviceErrors: SlackServiceErrors,
480
540
  protocol: SlackProtocol,
481
541
  retry: Retry.Retry,
482
542
  telemetry: TELEMETRY,
483
543
  span: "BulkPut",
484
544
  }));
485
545
 
546
+ export type BulkUpdateError = SlackOpError;
547
+ /** Updates the connection status between an app and many users in one call, for backfilling an existing user base. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `internal_error` -- The connection statuses could not be written. No user was notified, so retry the whole call. - `invalid_auth` -- The token doesn't have access to this endpoint. - `no_user_ids` -- Neither `connected_user_ids` nor `disconnected_user_ids` was provided. At least one is required. - `too_many_users` -- `connected_user_ids` and `disconnected_user_ids` exceed 1000 users combined. Split the sync into smaller batches. See https://docs.slack.dev/reference/methods/apps.user.connection.bulkUpdate */
548
+ export const bulkUpdate: API.OperationMethod<
549
+ BulkUpdateRequest,
550
+ BulkUpdateResponse,
551
+ BulkUpdateError,
552
+ SlackOpContext
553
+ > = /*@__PURE__*/ API.make(() => ({
554
+ input: __S(88, __c22, 0) as any as S.Schema<BulkUpdateRequest>,
555
+ output: __S(91, __c22, 3) as any as S.Schema<BulkUpdateResponse>,
556
+ errors: [],
557
+ serviceErrors: SlackServiceErrors,
558
+ protocol: SlackProtocol,
559
+ retry: Retry.Retry,
560
+ telemetry: TELEMETRY,
561
+ span: "BulkUpdate",
562
+ }));
563
+
486
564
  export type ConnectionsOpenError = SlackOpError;
487
565
  /** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team` -- The authenticated team cannot use this API - `insecure_request` -- The method was not called via a `POST` request. - `internal_error` -- An unexpected exception with the service has occurred. - `invalid_auth` -- The provided [app-level token](/authentication/tokens#app) wasn't valid. - `missing_args` -- An [app-level token](/authentication/tokens#app) wasn't provided. See https://docs.slack.dev/reference/methods/apps.connections.open */
488
566
  export const connectionsOpen: API.OperationMethod<
@@ -491,9 +569,10 @@ export const connectionsOpen: API.OperationMethod<
491
569
  ConnectionsOpenError,
492
570
  SlackOpContext
493
571
  > = /*@__PURE__*/ API.make(() => ({
494
- input: __S(80, __c20, 0) as any as S.Schema<ConnectionsOpenRequest>,
495
- output: __S(81, __c20, 1) as any as S.Schema<ConnectionsOpenResponse>,
496
- errors: [SlackError, SlackRateLimited],
572
+ input: __S(92, __c23, 0) as any as S.Schema<ConnectionsOpenRequest>,
573
+ output: __S(93, __c23, 1) as any as S.Schema<ConnectionsOpenResponse>,
574
+ errors: [],
575
+ serviceErrors: SlackServiceErrors,
497
576
  protocol: SlackProtocol,
498
577
  retry: Retry.Retry,
499
578
  telemetry: TELEMETRY,
@@ -501,16 +580,17 @@ export const connectionsOpen: API.OperationMethod<
501
580
  }));
502
581
 
503
582
  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 */
583
+ /** 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
584
  export const createManifest: API.OperationMethod<
506
585
  CreateManifestRequest,
507
586
  CreateManifestResponse,
508
587
  CreateManifestError,
509
588
  SlackOpContext
510
589
  > = /*@__PURE__*/ API.make(() => ({
511
- input: __S(84, __c21, 0) as any as S.Schema<CreateManifestRequest>,
512
- output: __S(86, __c21, 2) as any as S.Schema<CreateManifestResponse>,
513
- errors: [SlackError, SlackRateLimited],
590
+ input: __S(96, __c24, 0) as any as S.Schema<CreateManifestRequest>,
591
+ output: __S(98, __c24, 2) as any as S.Schema<CreateManifestResponse>,
592
+ errors: [],
593
+ serviceErrors: SlackServiceErrors,
514
594
  protocol: SlackProtocol,
515
595
  retry: Retry.Retry,
516
596
  telemetry: TELEMETRY,
@@ -525,9 +605,10 @@ export const datastoreCount: API.OperationMethod<
525
605
  DatastoreCountError,
526
606
  SlackOpContext
527
607
  > = /*@__PURE__*/ API.make(() => ({
528
- input: __S(88, __c22, 0) as any as S.Schema<DatastoreCountRequest>,
529
- output: __S(89, __c22, 1) as any as S.Schema<DatastoreCountResponse>,
530
- errors: [SlackError, SlackRateLimited],
608
+ input: __S(100, __c25, 0) as any as S.Schema<DatastoreCountRequest>,
609
+ output: __S(101, __c25, 1) as any as S.Schema<DatastoreCountResponse>,
610
+ errors: [],
611
+ serviceErrors: SlackServiceErrors,
531
612
  protocol: SlackProtocol,
532
613
  retry: Retry.Retry,
533
614
  telemetry: TELEMETRY,
@@ -544,9 +625,10 @@ export const datastoreQuery: API.PaginatedOperationMethod<
544
625
  DatastoreQueryResponseItemsItemMap
545
626
  > = /*@__PURE__*/ API.makePaginated(
546
627
  () => ({
547
- input: __S(92, __c23, 0) as any as S.Schema<DatastoreQueryRequest>,
548
- output: __S(93, __c23, 1) as any as S.Schema<DatastoreQueryResponse>,
549
- errors: [SlackError, SlackRateLimited],
628
+ input: __S(104, __c26, 0) as any as S.Schema<DatastoreQueryRequest>,
629
+ output: __S(105, __c26, 1) as any as S.Schema<DatastoreQueryResponse>,
630
+ errors: [],
631
+ serviceErrors: SlackServiceErrors,
550
632
  protocol: SlackProtocol,
551
633
  retry: Retry.Retry,
552
634
  telemetry: TELEMETRY,
@@ -570,9 +652,10 @@ export const deleteAuthExternal: API.OperationMethod<
570
652
  DeleteAuthExternalError,
571
653
  SlackOpContext
572
654
  > = /*@__PURE__*/ API.make(() => ({
573
- input: __S(100, __c25, 0) as any as S.Schema<DeleteAuthExternalRequest>,
574
- output: __S(104, __c26, 0) as any as S.Schema<DeleteAuthExternalResponse>,
575
- errors: [SlackError, SlackRateLimited],
655
+ input: __S(112, __c28, 0) as any as S.Schema<DeleteAuthExternalRequest>,
656
+ output: __S(116, __c29, 0) as any as S.Schema<DeleteAuthExternalResponse>,
657
+ errors: [],
658
+ serviceErrors: SlackServiceErrors,
576
659
  protocol: SlackProtocol,
577
660
  retry: Retry.Retry,
578
661
  telemetry: TELEMETRY,
@@ -587,9 +670,10 @@ export const deleteDatastore: API.OperationMethod<
587
670
  DeleteDatastoreError,
588
671
  SlackOpContext
589
672
  > = /*@__PURE__*/ API.make(() => ({
590
- input: __S(108, __c27, 0) as any as S.Schema<DeleteDatastoreRequest>,
591
- output: __S(104, __c26, 0) as any as S.Schema<DeleteDatastoreResponse>,
592
- errors: [SlackError, SlackRateLimited],
673
+ input: __S(120, __c30, 0) as any as S.Schema<DeleteDatastoreRequest>,
674
+ output: __S(116, __c29, 0) as any as S.Schema<DeleteDatastoreResponse>,
675
+ errors: [],
676
+ serviceErrors: SlackServiceErrors,
593
677
  protocol: SlackProtocol,
594
678
  retry: Retry.Retry,
595
679
  telemetry: TELEMETRY,
@@ -597,16 +681,17 @@ export const deleteDatastore: API.OperationMethod<
597
681
  }));
598
682
 
599
683
  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 */
684
+ /** 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
685
  export const deleteManifest: API.OperationMethod<
602
686
  DeleteManifestRequest,
603
687
  DeleteManifestResponse,
604
688
  DeleteManifestError,
605
689
  SlackOpContext
606
690
  > = /*@__PURE__*/ API.make(() => ({
607
- input: __S(112, __c28, 0) as any as S.Schema<DeleteManifestRequest>,
608
- output: __S(104, __c26, 0) as any as S.Schema<DeleteManifestResponse>,
609
- errors: [SlackError, SlackRateLimited],
691
+ input: __S(20, __c5, 0) as any as S.Schema<DeleteManifestRequest>,
692
+ output: __S(116, __c29, 0) as any as S.Schema<DeleteManifestResponse>,
693
+ errors: [],
694
+ serviceErrors: SlackServiceErrors,
610
695
  protocol: SlackProtocol,
611
696
  retry: Retry.Retry,
612
697
  telemetry: TELEMETRY,
@@ -621,9 +706,10 @@ export const exportManifest: API.OperationMethod<
621
706
  ExportManifestError,
622
707
  SlackOpContext
623
708
  > = /*@__PURE__*/ API.make(() => ({
624
- input: __S(20, __c5, 0) as any as S.Schema<ExportManifestRequest>,
625
- output: __S(21, __c5, 1) as any as S.Schema<ExportManifestResponse>,
626
- errors: [SlackError, SlackRateLimited],
709
+ input: __S(24, __c6, 0) as any as S.Schema<ExportManifestRequest>,
710
+ output: __S(25, __c6, 1) as any as S.Schema<ExportManifestResponse>,
711
+ errors: [],
712
+ serviceErrors: SlackServiceErrors,
627
713
  protocol: SlackProtocol,
628
714
  retry: Retry.Retry,
629
715
  telemetry: TELEMETRY,
@@ -638,9 +724,10 @@ export const getAuthExternal: API.OperationMethod<
638
724
  GetAuthExternalError,
639
725
  SlackOpContext
640
726
  > = /*@__PURE__*/ API.make(() => ({
641
- input: __S(24, __c6, 0) as any as S.Schema<GetAuthExternalRequest>,
642
- output: __S(25, __c6, 1) as any as S.Schema<GetAuthExternalResponse>,
643
- errors: [SlackError, SlackRateLimited],
727
+ input: __S(28, __c7, 0) as any as S.Schema<GetAuthExternalRequest>,
728
+ output: __S(29, __c7, 1) as any as S.Schema<GetAuthExternalResponse>,
729
+ errors: [],
730
+ serviceErrors: SlackServiceErrors,
644
731
  protocol: SlackProtocol,
645
732
  retry: Retry.Retry,
646
733
  telemetry: TELEMETRY,
@@ -655,9 +742,10 @@ export const getDatastore: API.OperationMethod<
655
742
  GetDatastoreError,
656
743
  SlackOpContext
657
744
  > = /*@__PURE__*/ API.make(() => ({
658
- input: __S(28, __c7, 0) as any as S.Schema<GetDatastoreRequest>,
659
- output: __S(32, __c8, 0) as any as S.Schema<GetDatastoreResponse>,
660
- errors: [SlackError, SlackRateLimited],
745
+ input: __S(32, __c8, 0) as any as S.Schema<GetDatastoreRequest>,
746
+ output: __S(36, __c9, 0) as any as S.Schema<GetDatastoreResponse>,
747
+ errors: [],
748
+ serviceErrors: SlackServiceErrors,
661
749
  protocol: SlackProtocol,
662
750
  retry: Retry.Retry,
663
751
  telemetry: TELEMETRY,
@@ -674,9 +762,10 @@ export const listActivities: API.PaginatedOperationMethod<
674
762
  unknown
675
763
  > = /*@__PURE__*/ API.makePaginated(
676
764
  () => ({
677
- input: __S(36, __c9, 0) as any as S.Schema<ListActivitiesRequest>,
678
- output: __S(38, __c9, 2) as any as S.Schema<ListActivitiesResponse>,
679
- errors: [SlackError, SlackRateLimited],
765
+ input: __S(40, __c10, 0) as any as S.Schema<ListActivitiesRequest>,
766
+ output: __S(42, __c10, 2) as any as S.Schema<ListActivitiesResponse>,
767
+ errors: [],
768
+ serviceErrors: SlackServiceErrors,
680
769
  protocol: SlackProtocol,
681
770
  retry: Retry.Retry,
682
771
  telemetry: TELEMETRY,
@@ -702,9 +791,10 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
702
791
  ListEventAuthorizationsResponseAuthorizationsItem
703
792
  > = /*@__PURE__*/ API.makePaginated(
704
793
  () => ({
705
- input: __S(40, __c10, 0) as any as S.Schema<ListEventAuthorizationsRequest>,
706
- output: __S(43, __c10, 3) as any as S.Schema<ListEventAuthorizationsResponse>,
707
- errors: [SlackError, SlackRateLimited],
794
+ input: __S(44, __c11, 0) as any as S.Schema<ListEventAuthorizationsRequest>,
795
+ output: __S(47, __c11, 3) as any as S.Schema<ListEventAuthorizationsResponse>,
796
+ errors: [],
797
+ serviceErrors: SlackServiceErrors,
708
798
  protocol: SlackProtocol,
709
799
  retry: Retry.Retry,
710
800
  telemetry: TELEMETRY,
@@ -728,26 +818,46 @@ export const putDatastore: API.OperationMethod<
728
818
  PutDatastoreError,
729
819
  SlackOpContext
730
820
  > = /*@__PURE__*/ API.make(() => ({
731
- input: __S(44, __c11, 0) as any as S.Schema<PutDatastoreRequest>,
732
- output: __S(32, __c8, 0) as any as S.Schema<PutDatastoreResponse>,
733
- errors: [SlackError, SlackRateLimited],
821
+ input: __S(48, __c12, 0) as any as S.Schema<PutDatastoreRequest>,
822
+ output: __S(36, __c9, 0) as any as S.Schema<PutDatastoreResponse>,
823
+ errors: [],
824
+ serviceErrors: SlackServiceErrors,
734
825
  protocol: SlackProtocol,
735
826
  retry: Retry.Retry,
736
827
  telemetry: TELEMETRY,
737
828
  span: "PutDatastore",
738
829
  }));
739
830
 
831
+ export type RequestAuthError = SlackOpError;
832
+ /** Opens or updates a standardized authentication modal for the calling app. Pass `trigger_id` to open a modal, or `user_id` to update the one already open for that user. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- An argument failed validation. Every provider must set `is_connected` explicitly: Slack records that state against the user, so it cannot be defaulted. - `invalid_auth` -- The token is invalid or the app could not be authenticated. - `invalid_trigger` -- The `trigger_id` is expired or invalid. - `expired_trigger_id` -- The **Connect** click behind this `trigger_id` is too old: about 3 seconds after the click, the user is told the app didn't respond. Answer the `user_connection` event within 3 seconds. - `invalid_view` -- The auth modal for this user exists but could not be updated. A user with no modal open returns ok with the auth_modal_not_found warning instead. - `missing_target` -- Neither trigger_id nor user_id was provided. - `user_not_found` -- Value passed for `user_id` was invalid, or the user is not reachable by this token. - `invalid_accessory_url` -- An accessory overflow option has a URL with a disallowed scheme. Use HTTP or HTTPs. - `invalid_auth_url` -- The provider's `auth_url` is not a plain HTTPs URL on a valid domain. Credentials embedded in the authority (for example https://user:pass@example.com) are rejected, because they move the real destination host away from the one the URL appears to name. IP literals and control characters are also rejected. The one exception is `localhost` or `127.0.0.1` from an app that isn't distributed or listed in the Slack Marketplace, shown to one of the app's collaborators. The same URL shown to anyone else gets this error. - `auth_url_host_not_registered` -- The provider's `auth_url` is on a host the app has not registered. Add the host to `features.user_connections.auth_hosts` in the app manifest; a registered host also covers its subdomains. - `invalid_disconnect_url` -- The provider's `disconnect_url` is not a plain HTTPs URL on a valid domain. Screened identically to `auth_url`: credentials embedded in the authority, IP literals and control characters are all rejected, because the Disconnect renders in Slack chrome under the app's name. The same localhost exception applies. - `disconnect_url_host_not_registered` -- The provider's `disconnect_url` is on a host the app has not registered. Add the host to `features.user_connections.auth_hosts` in the app manifest; a registered host also covers its subdomains. - `app_not_found` -- The app was not found. - `feature_not_enabled` -- The standardized authentication modal is not available for this team, or for the user the modal would be shown to. - `user_connections_not_enabled` -- The app has not declared the `features.user_connections` capability in its manifest, so it cannot present the standardized connect modal. - `view_open_failed` -- The modal view could not be opened. The `trigger_id` was valid but the view creation failed. See https://docs.slack.dev/reference/methods/apps.user.connection.requestAuth */
833
+ export const requestAuth: API.OperationMethod<
834
+ RequestAuthRequest,
835
+ RequestAuthResponse,
836
+ RequestAuthError,
837
+ SlackOpContext
838
+ > = /*@__PURE__*/ API.make(() => ({
839
+ input: __S(53, __c13, 1) as any as S.Schema<RequestAuthRequest>,
840
+ output: __S(116, __c29, 0) as any as S.Schema<RequestAuthResponse>,
841
+ errors: [],
842
+ serviceErrors: SlackServiceErrors,
843
+ protocol: SlackProtocol,
844
+ retry: Retry.Retry,
845
+ telemetry: TELEMETRY,
846
+ span: "RequestAuth",
847
+ }));
848
+
740
849
  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 */
850
+ /** 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
851
  export const setIcon: API.OperationMethod<
743
852
  SetIconRequest,
744
853
  SetIconResponse,
745
854
  SetIconError,
746
855
  SlackOpContext
747
856
  > = /*@__PURE__*/ API.make(() => ({
748
- input: __S(48, __c12, 0) as any as S.Schema<SetIconRequest>,
749
- output: __S(104, __c26, 0) as any as S.Schema<SetIconResponse>,
750
- errors: [SlackError, SlackRateLimited],
857
+ input: __S(56, __c14, 0) as any as S.Schema<SetIconRequest>,
858
+ output: __S(116, __c29, 0) as any as S.Schema<SetIconResponse>,
859
+ errors: [],
860
+ serviceErrors: SlackServiceErrors,
751
861
  protocol: SlackProtocol,
752
862
  retry: Retry.Retry,
753
863
  telemetry: TELEMETRY,
@@ -762,9 +872,10 @@ export const setManagedPermissions: API.OperationMethod<
762
872
  SetManagedPermissionsError,
763
873
  SlackOpContext
764
874
  > = /*@__PURE__*/ API.make(() => ({
765
- input: __S(52, __c13, 0) as any as S.Schema<SetManagedPermissionsRequest>,
766
- output: __S(104, __c26, 0) as any as S.Schema<SetManagedPermissionsResponse>,
767
- errors: [SlackError, SlackRateLimited],
875
+ input: __S(60, __c15, 0) as any as S.Schema<SetManagedPermissionsRequest>,
876
+ output: __S(116, __c29, 0) as any as S.Schema<SetManagedPermissionsResponse>,
877
+ errors: [],
878
+ serviceErrors: SlackServiceErrors,
768
879
  protocol: SlackProtocol,
769
880
  retry: Retry.Retry,
770
881
  telemetry: TELEMETRY,
@@ -779,9 +890,10 @@ export const uninstallApp: API.OperationMethod<
779
890
  UninstallAppError,
780
891
  SlackOpContext
781
892
  > = /*@__PURE__*/ API.make(() => ({
782
- input: __S(56, __c14, 0) as any as S.Schema<UninstallAppRequest>,
783
- output: __S(57, __c14, 1) as any as S.Schema<UninstallAppResponse>,
784
- errors: [SlackError, SlackRateLimited],
893
+ input: __S(68, __c17, 0) as any as S.Schema<UninstallAppRequest>,
894
+ output: __S(69, __c17, 1) as any as S.Schema<UninstallAppResponse>,
895
+ errors: [],
896
+ serviceErrors: SlackServiceErrors,
785
897
  protocol: SlackProtocol,
786
898
  retry: Retry.Retry,
787
899
  telemetry: TELEMETRY,
@@ -796,9 +908,10 @@ export const updateDatastore: API.OperationMethod<
796
908
  UpdateDatastoreError,
797
909
  SlackOpContext
798
910
  > = /*@__PURE__*/ API.make(() => ({
799
- input: __S(60, __c15, 0) as any as S.Schema<UpdateDatastoreRequest>,
800
- output: __S(32, __c8, 0) as any as S.Schema<UpdateDatastoreResponse>,
801
- errors: [SlackError, SlackRateLimited],
911
+ input: __S(72, __c18, 0) as any as S.Schema<UpdateDatastoreRequest>,
912
+ output: __S(36, __c9, 0) as any as S.Schema<UpdateDatastoreResponse>,
913
+ errors: [],
914
+ serviceErrors: SlackServiceErrors,
802
915
  protocol: SlackProtocol,
803
916
  retry: Retry.Retry,
804
917
  telemetry: TELEMETRY,
@@ -806,16 +919,17 @@ export const updateDatastore: API.OperationMethod<
806
919
  }));
807
920
 
808
921
  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 */
922
+ /** 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
923
  export const updateManifest: API.OperationMethod<
811
924
  UpdateManifestRequest,
812
925
  UpdateManifestResponse,
813
926
  UpdateManifestError,
814
927
  SlackOpContext
815
928
  > = /*@__PURE__*/ API.make(() => ({
816
- input: __S(68, __c17, 0) as any as S.Schema<UpdateManifestRequest>,
817
- output: __S(69, __c17, 1) as any as S.Schema<UpdateManifestResponse>,
818
- errors: [SlackError, SlackRateLimited],
929
+ input: __S(76, __c19, 0) as any as S.Schema<UpdateManifestRequest>,
930
+ output: __S(77, __c19, 1) as any as S.Schema<UpdateManifestResponse>,
931
+ errors: [],
932
+ serviceErrors: SlackServiceErrors,
819
933
  protocol: SlackProtocol,
820
934
  retry: Retry.Retry,
821
935
  telemetry: TELEMETRY,
@@ -823,16 +937,17 @@ export const updateManifest: API.OperationMethod<
823
937
  }));
824
938
 
825
939
  export type UpdateUserConnectionError = SlackOpError;
826
- /** Updates the connection status between a user and an app. Required scopes -- user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `invalid_auth` -- The token doesn't have access to this endpoint. - `app_not_subscribed` -- The app is not subscribed to the required events. - `user_not_found` -- Value passed for `user_id` was invalid. - `missing_scope` -- The token provided doesn't have the required scopes. - `internal_error` -- The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
940
+ /** Updates the connection status between a user and an app. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `invalid_auth` -- The token doesn't have access to this endpoint. - `app_not_subscribed` -- The app is not subscribed to the required events. - `user_not_found` -- Value passed for `user_id` was invalid. - `missing_scope` -- The token provided doesn't have the required scopes. - `internal_error` -- The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
827
941
  export const updateUserConnection: API.OperationMethod<
828
942
  UpdateUserConnectionRequest,
829
943
  UpdateUserConnectionResponse,
830
944
  UpdateUserConnectionError,
831
945
  SlackOpContext
832
946
  > = /*@__PURE__*/ API.make(() => ({
833
- input: __S(72, __c18, 0) as any as S.Schema<UpdateUserConnectionRequest>,
834
- output: __S(104, __c26, 0) as any as S.Schema<UpdateUserConnectionResponse>,
835
- errors: [SlackError, SlackRateLimited],
947
+ input: __S(80, __c20, 0) as any as S.Schema<UpdateUserConnectionRequest>,
948
+ output: __S(116, __c29, 0) as any as S.Schema<UpdateUserConnectionResponse>,
949
+ errors: [],
950
+ serviceErrors: SlackServiceErrors,
836
951
  protocol: SlackProtocol,
837
952
  retry: Retry.Retry,
838
953
  telemetry: TELEMETRY,
@@ -847,9 +962,10 @@ export const validateManifest: API.OperationMethod<
847
962
  ValidateManifestError,
848
963
  SlackOpContext
849
964
  > = /*@__PURE__*/ API.make(() => ({
850
- input: __S(76, __c19, 0) as any as S.Schema<ValidateManifestRequest>,
851
- output: __S(79, __c19, 3) as any as S.Schema<ValidateManifestResponse>,
852
- errors: [SlackError, SlackRateLimited],
965
+ input: __S(84, __c21, 0) as any as S.Schema<ValidateManifestRequest>,
966
+ output: __S(87, __c21, 3) as any as S.Schema<ValidateManifestResponse>,
967
+ errors: [],
968
+ serviceErrors: SlackServiceErrors,
853
969
  protocol: SlackProtocol,
854
970
  retry: Retry.Retry,
855
971
  telemetry: TELEMETRY,
@@ -915,6 +1031,16 @@ function __c4(j: number): any {
915
1031
  }
916
1032
  }
917
1033
  function __c5(j: number): any {
1034
+ switch (j) {
1035
+ case 0:
1036
+ return S.suspend(() =>
1037
+ S.Struct({
1038
+ app_id: S.String,
1039
+ }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
1040
+ ).annotate({ identifier: "DeleteManifestRequest" });
1041
+ }
1042
+ }
1043
+ function __c6(j: number): any {
918
1044
  switch (j) {
919
1045
  case 0:
920
1046
  return S.suspend(() =>
@@ -931,7 +1057,7 @@ function __c5(j: number): any {
931
1057
  ).annotate({ identifier: "ExportManifestResponse" });
932
1058
  }
933
1059
  }
934
- function __c6(j: number): any {
1060
+ function __c7(j: number): any {
935
1061
  switch (j) {
936
1062
  case 0:
937
1063
  return S.suspend(() =>
@@ -944,13 +1070,13 @@ function __c6(j: number): any {
944
1070
  return S.suspend(() =>
945
1071
  S.Struct({
946
1072
  ok: S.Boolean,
947
- external_token: S.String,
1073
+ external_token: S.String.pipe(T.SensitiveValue({})),
948
1074
  token_response_extras: S.Unknown,
949
1075
  }),
950
1076
  ).annotate({ identifier: "GetAuthExternalResponse" });
951
1077
  }
952
1078
  }
953
- function __c7(j: number): any {
1079
+ function __c8(j: number): any {
954
1080
  switch (j) {
955
1081
  case 0:
956
1082
  return S.suspend(() =>
@@ -962,7 +1088,7 @@ function __c7(j: number): any {
962
1088
  ).annotate({ identifier: "GetDatastoreRequest" });
963
1089
  }
964
1090
  }
965
- function __c8(j: number): any {
1091
+ function __c9(j: number): any {
966
1092
  switch (j) {
967
1093
  case 0:
968
1094
  return S.suspend(() =>
@@ -974,7 +1100,7 @@ function __c8(j: number): any {
974
1100
  ).annotate({ identifier: "GetDatastoreResponse" });
975
1101
  }
976
1102
  }
977
- function __c9(j: number): any {
1103
+ function __c10(j: number): any {
978
1104
  switch (j) {
979
1105
  case 0:
980
1106
  return S.suspend(() =>
@@ -1007,13 +1133,13 @@ function __c9(j: number): any {
1007
1133
  return S.suspend(() =>
1008
1134
  S.Struct({
1009
1135
  ok: S.Boolean,
1010
- activities: __S(37, __c9, 1),
1011
- response_metadata: S.optional(__S(96, __c24, 0)),
1136
+ activities: __S(41, __c10, 1),
1137
+ response_metadata: S.optional(__S(108, __c27, 0)),
1012
1138
  }),
1013
1139
  ).annotate({ identifier: "ListActivitiesResponse" });
1014
1140
  }
1015
1141
  }
1016
- function __c10(j: number): any {
1142
+ function __c11(j: number): any {
1017
1143
  switch (j) {
1018
1144
  case 0:
1019
1145
  return S.suspend(() =>
@@ -1034,19 +1160,19 @@ function __c10(j: number): any {
1034
1160
  }),
1035
1161
  ).annotate({ identifier: "ListEventAuthorizationsResponseAuthorizationsItem" });
1036
1162
  case 2:
1037
- return S.Array(__S(41, __c10, 1));
1163
+ return S.Array(__S(45, __c11, 1));
1038
1164
  case 3:
1039
1165
  return S.suspend(() =>
1040
1166
  S.Struct({
1041
1167
  ok: S.Boolean,
1042
1168
  cursor_next: S.optional(S.String),
1043
- authorizations: __S(42, __c10, 2),
1044
- response_metadata: S.optional(__S(96, __c24, 0)),
1169
+ authorizations: __S(46, __c11, 2),
1170
+ response_metadata: S.optional(__S(108, __c27, 0)),
1045
1171
  }),
1046
1172
  ).annotate({ identifier: "ListEventAuthorizationsResponse" });
1047
1173
  }
1048
1174
  }
1049
- function __c11(j: number): any {
1175
+ function __c12(j: number): any {
1050
1176
  switch (j) {
1051
1177
  case 0:
1052
1178
  return S.suspend(() =>
@@ -1058,7 +1184,34 @@ function __c11(j: number): any {
1058
1184
  ).annotate({ identifier: "PutDatastoreRequest" });
1059
1185
  }
1060
1186
  }
1061
- function __c12(j: number): any {
1187
+ function __c13(j: number): any {
1188
+ switch (j) {
1189
+ case 0:
1190
+ return S.suspend(() =>
1191
+ S.Struct({
1192
+ value: S.String,
1193
+ name: S.Unknown,
1194
+ description: S.optional(S.Unknown),
1195
+ icon_url: S.optional(S.String),
1196
+ auth_url: S.optional(S.String),
1197
+ disconnect_url: S.optional(S.String),
1198
+ is_connected: S.Boolean,
1199
+ connected_identity: S.optional(S.Unknown),
1200
+ connected_context: S.optional(S.Unknown),
1201
+ accessory: S.optional(S.Unknown),
1202
+ }),
1203
+ ).annotate({ identifier: "RequestAuthRequestPrimaryProvider" });
1204
+ case 1:
1205
+ return S.suspend(() =>
1206
+ S.Struct({
1207
+ trigger_id: S.optional(S.String),
1208
+ user_id: S.optional(S.String),
1209
+ primary_provider: __S(52, __c13, 0),
1210
+ }).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.requestAuth", code: 200 })),
1211
+ ).annotate({ identifier: "RequestAuthRequest" });
1212
+ }
1213
+ }
1214
+ function __c14(j: number): any {
1062
1215
  switch (j) {
1063
1216
  case 0:
1064
1217
  return S.suspend(() =>
@@ -1070,7 +1223,7 @@ function __c12(j: number): any {
1070
1223
  ).annotate({ identifier: "SetIconRequest" });
1071
1224
  }
1072
1225
  }
1073
- function __c13(j: number): any {
1226
+ function __c15(j: number): any {
1074
1227
  switch (j) {
1075
1228
  case 0:
1076
1229
  return S.suspend(() =>
@@ -1081,7 +1234,27 @@ function __c13(j: number): any {
1081
1234
  ).annotate({ identifier: "SetManagedPermissionsRequest" });
1082
1235
  }
1083
1236
  }
1084
- function __c14(j: number): any {
1237
+ function __c16(j: number): any {
1238
+ switch (j) {
1239
+ case 0:
1240
+ return S.suspend(() =>
1241
+ S.Struct({
1242
+ datastore: S.String,
1243
+ items: __S(16, __c4, 0),
1244
+ app_id: S.optional(S.String),
1245
+ }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
1246
+ ).annotate({ identifier: "BulkPutRequest" });
1247
+ case 1:
1248
+ return S.suspend(() =>
1249
+ S.Struct({
1250
+ ok: S.Boolean,
1251
+ datastore: S.optional(S.String),
1252
+ failed_items: S.optional(__S(16, __c4, 0)),
1253
+ }),
1254
+ ).annotate({ identifier: "BulkPutResponse" });
1255
+ }
1256
+ }
1257
+ function __c17(j: number): any {
1085
1258
  switch (j) {
1086
1259
  case 0:
1087
1260
  return S.suspend(() =>
@@ -1106,7 +1279,7 @@ function __c14(j: number): any {
1106
1279
  ).annotate({ identifier: "UninstallAppResponse" });
1107
1280
  }
1108
1281
  }
1109
- function __c15(j: number): any {
1282
+ function __c18(j: number): any {
1110
1283
  switch (j) {
1111
1284
  case 0:
1112
1285
  return S.suspend(() =>
@@ -1118,27 +1291,7 @@ function __c15(j: number): any {
1118
1291
  ).annotate({ identifier: "UpdateDatastoreRequest" });
1119
1292
  }
1120
1293
  }
1121
- function __c16(j: number): any {
1122
- switch (j) {
1123
- case 0:
1124
- return S.suspend(() =>
1125
- S.Struct({
1126
- datastore: S.String,
1127
- items: __S(16, __c4, 0),
1128
- app_id: S.optional(S.String),
1129
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
1130
- ).annotate({ identifier: "BulkPutRequest" });
1131
- case 1:
1132
- return S.suspend(() =>
1133
- S.Struct({
1134
- ok: S.Boolean,
1135
- datastore: S.optional(S.String),
1136
- failed_items: S.optional(__S(16, __c4, 0)),
1137
- }),
1138
- ).annotate({ identifier: "BulkPutResponse" });
1139
- }
1140
- }
1141
- function __c17(j: number): any {
1294
+ function __c19(j: number): any {
1142
1295
  switch (j) {
1143
1296
  case 0:
1144
1297
  return S.suspend(() =>
@@ -1157,7 +1310,7 @@ function __c17(j: number): any {
1157
1310
  ).annotate({ identifier: "UpdateManifestResponse" });
1158
1311
  }
1159
1312
  }
1160
- function __c18(j: number): any {
1313
+ function __c20(j: number): any {
1161
1314
  switch (j) {
1162
1315
  case 0:
1163
1316
  return S.suspend(() =>
@@ -1168,7 +1321,7 @@ function __c18(j: number): any {
1168
1321
  ).annotate({ identifier: "UpdateUserConnectionRequest" });
1169
1322
  }
1170
1323
  }
1171
- function __c19(j: number): any {
1324
+ function __c21(j: number): any {
1172
1325
  switch (j) {
1173
1326
  case 0:
1174
1327
  return S.suspend(() =>
@@ -1186,18 +1339,46 @@ function __c19(j: number): any {
1186
1339
  }),
1187
1340
  ).annotate({ identifier: "ValidateManifestResponseWarningsItem" });
1188
1341
  case 2:
1189
- return S.Array(__S(77, __c19, 1));
1342
+ return S.Array(__S(85, __c21, 1));
1190
1343
  case 3:
1191
1344
  return S.suspend(() =>
1192
1345
  S.Struct({
1193
1346
  ok: S.Boolean,
1194
1347
  errors: __S(4, __c1, 0),
1195
- warnings: S.optional(__S(78, __c19, 2)),
1348
+ warnings: S.optional(__S(86, __c21, 2)),
1196
1349
  }),
1197
1350
  ).annotate({ identifier: "ValidateManifestResponse" });
1198
1351
  }
1199
1352
  }
1200
- function __c20(j: number): any {
1353
+ function __c22(j: number): any {
1354
+ switch (j) {
1355
+ case 0:
1356
+ return S.suspend(() =>
1357
+ S.Struct({
1358
+ connected_user_ids: S.optional(__S(4, __c1, 0)),
1359
+ disconnected_user_ids: S.optional(__S(4, __c1, 0)),
1360
+ }).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.bulkUpdate", code: 200 })),
1361
+ ).annotate({ identifier: "BulkUpdateRequest" });
1362
+ case 1:
1363
+ return S.suspend(() =>
1364
+ S.Struct({
1365
+ user_id: S.String,
1366
+ error: S.String,
1367
+ }),
1368
+ ).annotate({ identifier: "BulkUpdateResponseFailuresItem" });
1369
+ case 2:
1370
+ return S.Array(__S(89, __c22, 1));
1371
+ case 3:
1372
+ return S.suspend(() =>
1373
+ S.Struct({
1374
+ ok: S.Boolean,
1375
+ changed_user_ids: __S(4, __c1, 0),
1376
+ failures: __S(90, __c22, 2),
1377
+ }),
1378
+ ).annotate({ identifier: "BulkUpdateResponse" });
1379
+ }
1380
+ }
1381
+ function __c23(j: number): any {
1201
1382
  switch (j) {
1202
1383
  case 0:
1203
1384
  return S.suspend(() =>
@@ -1212,7 +1393,7 @@ function __c20(j: number): any {
1212
1393
  ).annotate({ identifier: "ConnectionsOpenResponse" });
1213
1394
  }
1214
1395
  }
1215
- function __c21(j: number): any {
1396
+ function __c24(j: number): any {
1216
1397
  switch (j) {
1217
1398
  case 0:
1218
1399
  return S.suspend(() =>
@@ -1226,7 +1407,7 @@ function __c21(j: number): any {
1226
1407
  S.Struct({
1227
1408
  client_id: S.optional(S.String),
1228
1409
  client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
1229
- verification_token: S.optional(S.String),
1410
+ verification_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1230
1411
  signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
1231
1412
  }),
1232
1413
  ).annotate({ identifier: "CreateManifestResponseCredentials" });
@@ -1235,16 +1416,16 @@ function __c21(j: number): any {
1235
1416
  S.Struct({
1236
1417
  ok: S.Boolean,
1237
1418
  app_id: S.String,
1238
- credentials: __S(85, __c21, 1),
1419
+ credentials: __S(97, __c24, 1),
1239
1420
  oauth_authorize_url: S.optional(S.String),
1240
1421
  team_id: S.optional(S.String),
1241
1422
  team_domain: S.optional(S.String),
1242
- app_token: S.optional(S.String),
1423
+ app_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1243
1424
  }),
1244
1425
  ).annotate({ identifier: "CreateManifestResponse" });
1245
1426
  }
1246
1427
  }
1247
- function __c22(j: number): any {
1428
+ function __c25(j: number): any {
1248
1429
  switch (j) {
1249
1430
  case 0:
1250
1431
  return S.suspend(() =>
@@ -1266,7 +1447,7 @@ function __c22(j: number): any {
1266
1447
  ).annotate({ identifier: "DatastoreCountResponse" });
1267
1448
  }
1268
1449
  }
1269
- function __c23(j: number): any {
1450
+ function __c26(j: number): any {
1270
1451
  switch (j) {
1271
1452
  case 0:
1272
1453
  return S.suspend(() =>
@@ -1286,12 +1467,12 @@ function __c23(j: number): any {
1286
1467
  ok: S.Boolean,
1287
1468
  datastore: S.optional(S.String),
1288
1469
  items: __S(16, __c4, 0),
1289
- response_metadata: S.optional(__S(96, __c24, 0)),
1470
+ response_metadata: S.optional(__S(108, __c27, 0)),
1290
1471
  }),
1291
1472
  ).annotate({ identifier: "DatastoreQueryResponse" });
1292
1473
  }
1293
1474
  }
1294
- function __c24(j: number): any {
1475
+ function __c27(j: number): any {
1295
1476
  switch (j) {
1296
1477
  case 0:
1297
1478
  return S.suspend(() =>
@@ -1301,7 +1482,7 @@ function __c24(j: number): any {
1301
1482
  ).annotate({ identifier: "DatastoreQueryResponseResponseMetadata" });
1302
1483
  }
1303
1484
  }
1304
- function __c25(j: number): any {
1485
+ function __c28(j: number): any {
1305
1486
  switch (j) {
1306
1487
  case 0:
1307
1488
  return S.suspend(() =>
@@ -1313,7 +1494,7 @@ function __c25(j: number): any {
1313
1494
  ).annotate({ identifier: "DeleteAuthExternalRequest" });
1314
1495
  }
1315
1496
  }
1316
- function __c26(j: number): any {
1497
+ function __c29(j: number): any {
1317
1498
  switch (j) {
1318
1499
  case 0:
1319
1500
  return S.suspend(() =>
@@ -1323,7 +1504,7 @@ function __c26(j: number): any {
1323
1504
  ).annotate({ identifier: "DeleteAuthExternalResponse" });
1324
1505
  }
1325
1506
  }
1326
- function __c27(j: number): any {
1507
+ function __c30(j: number): any {
1327
1508
  switch (j) {
1328
1509
  case 0:
1329
1510
  return S.suspend(() =>
@@ -1335,16 +1516,6 @@ function __c27(j: number): any {
1335
1516
  ).annotate({ identifier: "DeleteDatastoreRequest" });
1336
1517
  }
1337
1518
  }
1338
- function __c28(j: number): any {
1339
- switch (j) {
1340
- case 0:
1341
- return S.suspend(() =>
1342
- S.Struct({
1343
- app_id: S.String,
1344
- }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
1345
- ).annotate({ identifier: "DeleteManifestRequest" });
1346
- }
1347
- }
1348
1519
  // Schema table: entry i is schema j of builder f, made on first reach.
1349
1520
  function __S(i: number, f: (j: number) => unknown, j: number): any {
1350
1521
  return (__s[i] ??= __L.at(f, j));