@distilled.cloud/slack 1.0.0-rc.14 → 1.0.0-rc.16

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 (209) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +39 -34
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +31 -31
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +41 -41
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +9 -9
  11. package/lib/pagination.d.ts +2 -2
  12. package/lib/pagination.js +28 -28
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +61 -59
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +2 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +34 -33
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/admin.d.ts +123 -575
  21. package/lib/services/admin.d.ts.map +1 -1
  22. package/lib/services/admin.js +304 -2878
  23. package/lib/services/agents.d.ts +13 -55
  24. package/lib/services/agents.d.ts.map +1 -1
  25. package/lib/services/agents.js +48 -309
  26. package/lib/services/api.d.ts +0 -4
  27. package/lib/services/api.d.ts.map +1 -1
  28. package/lib/services/api.js +16 -18
  29. package/lib/services/apps.d.ts +25 -106
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +84 -509
  32. package/lib/services/assistant.d.ts +6 -40
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +33 -204
  35. package/lib/services/auth.d.ts +4 -15
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +22 -90
  38. package/lib/services/blocks.d.ts +1 -7
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +16 -21
  41. package/lib/services/bookmarks.d.ts +4 -15
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +27 -76
  44. package/lib/services/bots.d.ts +1 -9
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +17 -54
  47. package/lib/services/calls.d.ts +6 -22
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +35 -110
  50. package/lib/services/canvases.d.ts +7 -35
  51. package/lib/services/canvases.d.ts.map +1 -1
  52. package/lib/services/canvases.js +39 -135
  53. package/lib/services/chat.d.ts +14 -83
  54. package/lib/services/chat.d.ts.map +1 -1
  55. package/lib/services/chat.js +59 -381
  56. package/lib/services/conversations.d.ts +31 -116
  57. package/lib/services/conversations.d.ts.map +1 -1
  58. package/lib/services/conversations.js +94 -690
  59. package/lib/services/dialog.d.ts +1 -4
  60. package/lib/services/dialog.d.ts.map +1 -1
  61. package/lib/services/dialog.js +13 -17
  62. package/lib/services/dnd.d.ts +5 -17
  63. package/lib/services/dnd.d.ts.map +1 -1
  64. package/lib/services/dnd.js +26 -91
  65. package/lib/services/emoji.d.ts +1 -8
  66. package/lib/services/emoji.d.ts.map +1 -1
  67. package/lib/services/emoji.js +18 -29
  68. package/lib/services/entity.d.ts +4 -16
  69. package/lib/services/entity.d.ts.map +1 -1
  70. package/lib/services/entity.js +29 -71
  71. package/lib/services/files.d.ts +16 -80
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +75 -433
  74. package/lib/services/functions.d.ts +8 -49
  75. package/lib/services/functions.d.ts.map +1 -1
  76. package/lib/services/functions.js +45 -203
  77. package/lib/services/lists.d.ts +13 -55
  78. package/lib/services/lists.d.ts.map +1 -1
  79. package/lib/services/lists.js +53 -248
  80. package/lib/services/migration.d.ts +1 -7
  81. package/lib/services/migration.d.ts.map +1 -1
  82. package/lib/services/migration.js +18 -27
  83. package/lib/services/oauth.d.ts +7 -43
  84. package/lib/services/oauth.d.ts.map +1 -1
  85. package/lib/services/oauth.js +34 -289
  86. package/lib/services/openid.d.ts +3 -10
  87. package/lib/services/openid.d.ts.map +1 -1
  88. package/lib/services/openid.js +19 -79
  89. package/lib/services/pins.d.ts +3 -13
  90. package/lib/services/pins.d.ts.map +1 -1
  91. package/lib/services/pins.js +27 -61
  92. package/lib/services/reactions.d.ts +5 -17
  93. package/lib/services/reactions.d.ts.map +1 -1
  94. package/lib/services/reactions.js +30 -96
  95. package/lib/services/reminders.d.ts +5 -17
  96. package/lib/services/reminders.d.ts.map +1 -1
  97. package/lib/services/reminders.js +33 -83
  98. package/lib/services/rtm.d.ts +2 -11
  99. package/lib/services/rtm.d.ts.map +1 -1
  100. package/lib/services/rtm.js +22 -56
  101. package/lib/services/search.d.ts +4 -35
  102. package/lib/services/search.d.ts.map +1 -1
  103. package/lib/services/search.js +28 -167
  104. package/lib/services/stars.d.ts +4 -26
  105. package/lib/services/stars.d.ts.map +1 -1
  106. package/lib/services/stars.js +28 -128
  107. package/lib/services/team.d.ts +11 -63
  108. package/lib/services/team.d.ts.map +1 -1
  109. package/lib/services/team.js +45 -289
  110. package/lib/services/tooling.d.ts +2 -5
  111. package/lib/services/tooling.d.ts.map +1 -1
  112. package/lib/services/tooling.js +15 -28
  113. package/lib/services/usergroups.d.ts +7 -31
  114. package/lib/services/usergroups.d.ts.map +1 -1
  115. package/lib/services/usergroups.js +40 -146
  116. package/lib/services/users.d.ts +14 -48
  117. package/lib/services/users.d.ts.map +1 -1
  118. package/lib/services/users.js +54 -249
  119. package/lib/services/views.d.ts +4 -14
  120. package/lib/services/views.d.ts.map +1 -1
  121. package/lib/services/views.js +28 -73
  122. package/lib/services/workflows.d.ts +8 -51
  123. package/lib/services/workflows.d.ts.map +1 -1
  124. package/lib/services/workflows.js +37 -188
  125. package/lib/traits.d.ts +1 -1
  126. package/lib/traits.js +8 -8
  127. package/package.json +14 -10
  128. package/src/credentials.ts +20 -21
  129. package/src/errors.ts +31 -27
  130. package/src/index.ts +1 -1
  131. package/src/pagination.ts +2 -2
  132. package/src/protocol.ts +30 -29
  133. package/src/retry.ts +6 -6
  134. package/src/services/admin.ts +2717 -3451
  135. package/src/services/agents.ts +380 -370
  136. package/src/services/api.ts +31 -21
  137. package/src/services/apps.ts +569 -621
  138. package/src/services/assistant.ts +235 -270
  139. package/src/services/auth.ts +118 -100
  140. package/src/services/blocks.ts +33 -29
  141. package/src/services/bookmarks.ts +101 -83
  142. package/src/services/bots.ts +74 -67
  143. package/src/services/calls.ts +118 -124
  144. package/src/services/canvases.ts +171 -178
  145. package/src/services/chat.ts +428 -496
  146. package/src/services/conversations.ts +675 -761
  147. package/src/services/dialog.ts +30 -17
  148. package/src/services/dnd.ts +125 -99
  149. package/src/services/emoji.ts +46 -42
  150. package/src/services/entity.ts +94 -92
  151. package/src/services/files.ts +536 -531
  152. package/src/services/functions.ts +209 -274
  153. package/src/services/lists.ts +289 -304
  154. package/src/services/migration.ts +39 -37
  155. package/src/services/oauth.ts +345 -361
  156. package/src/services/openid.ts +137 -122
  157. package/src/services/pins.ts +83 -70
  158. package/src/services/reactions.ts +119 -103
  159. package/src/services/reminders.ts +112 -90
  160. package/src/services/rtm.ts +73 -65
  161. package/src/services/search.ts +193 -244
  162. package/src/services/stars.ts +101 -160
  163. package/src/services/team.ts +333 -369
  164. package/src/services/tooling.ts +43 -30
  165. package/src/services/usergroups.ts +175 -179
  166. package/src/services/users.ts +301 -268
  167. package/src/services/views.ts +85 -80
  168. package/src/services/workflows.ts +184 -269
  169. package/src/traits.ts +1 -1
  170. package/lib/protocol.test.d.ts +0 -2
  171. package/lib/protocol.test.d.ts.map +0 -1
  172. package/lib/protocol.test.js +0 -288
  173. package/lib/protocol.test.js.map +0 -1
  174. package/lib/services/admin.js.map +0 -1
  175. package/lib/services/agents.js.map +0 -1
  176. package/lib/services/api.js.map +0 -1
  177. package/lib/services/apps.js.map +0 -1
  178. package/lib/services/assistant.js.map +0 -1
  179. package/lib/services/auth.js.map +0 -1
  180. package/lib/services/blocks.js.map +0 -1
  181. package/lib/services/bookmarks.js.map +0 -1
  182. package/lib/services/bots.js.map +0 -1
  183. package/lib/services/calls.js.map +0 -1
  184. package/lib/services/canvases.js.map +0 -1
  185. package/lib/services/chat.js.map +0 -1
  186. package/lib/services/conversations.js.map +0 -1
  187. package/lib/services/dialog.js.map +0 -1
  188. package/lib/services/dnd.js.map +0 -1
  189. package/lib/services/emoji.js.map +0 -1
  190. package/lib/services/entity.js.map +0 -1
  191. package/lib/services/files.js.map +0 -1
  192. package/lib/services/functions.js.map +0 -1
  193. package/lib/services/lists.js.map +0 -1
  194. package/lib/services/migration.js.map +0 -1
  195. package/lib/services/oauth.js.map +0 -1
  196. package/lib/services/openid.js.map +0 -1
  197. package/lib/services/pins.js.map +0 -1
  198. package/lib/services/reactions.js.map +0 -1
  199. package/lib/services/reminders.js.map +0 -1
  200. package/lib/services/rtm.js.map +0 -1
  201. package/lib/services/search.js.map +0 -1
  202. package/lib/services/stars.js.map +0 -1
  203. package/lib/services/team.js.map +0 -1
  204. package/lib/services/tooling.js.map +0 -1
  205. package/lib/services/usergroups.js.map +0 -1
  206. package/lib/services/users.js.map +0 -1
  207. package/lib/services/views.js.map +0 -1
  208. package/lib/services/workflows.js.map +0 -1
  209. package/src/protocol.test.ts +0 -372
@@ -1,516 +1,91 @@
1
1
  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
- import * as S from "@distilled.cloud/core/schema";
4
- import * as Redacted from "effect/Redacted";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
5
  import { SlackError, SlackRateLimited } from "../errors.js";
6
6
  import { slackPaginate } from "../pagination.js";
7
7
  import { SlackProtocol } from "../protocol.js";
8
8
  import * as Retry from "../retry.js";
9
9
  import * as T from "../traits.js";
10
- export const BulkDeleteRequestIdsList = /*@__PURE__*/ S.Array(S.String);
11
- export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
12
- datastore: S.String,
13
- ids: BulkDeleteRequestIdsList,
14
- app_id: S.optional(S.String),
15
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkDelete", code: 200 }))).annotate({ identifier: "BulkDeleteRequest" });
16
- export const BulkDeleteResponseFailedItemsList = /*@__PURE__*/ S.Array(S.String);
17
- export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
18
- ok: S.Boolean,
19
- failed_items: S.optional(BulkDeleteResponseFailedItemsList),
20
- })).annotate({ identifier: "BulkDeleteResponse" });
21
- export const BulkGetRequestIdsList = /*@__PURE__*/ S.Array(S.String);
22
- export const BulkGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
23
- datastore: S.String,
24
- ids: BulkGetRequestIdsList,
25
- app_id: S.optional(S.String),
26
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkGet", code: 200 }))).annotate({ identifier: "BulkGetRequest" });
27
- export const BulkGetResponseItemsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
28
- export const BulkGetResponseItemsList = /*@__PURE__*/ S.Array(BulkGetResponseItemsItemMap);
29
- export const BulkGetResponseFailedItemsList = /*@__PURE__*/ S.Array(S.String);
30
- export const BulkGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
31
- ok: S.Boolean,
32
- items: S.optional(BulkGetResponseItemsList),
33
- failed_items: S.optional(BulkGetResponseFailedItemsList),
34
- })).annotate({ identifier: "BulkGetResponse" });
35
- export const BulkPutRequestItemsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
36
- export const BulkPutRequestItemsList = /*@__PURE__*/ S.Array(BulkPutRequestItemsItemMap);
37
- export const BulkPutRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
38
- datastore: S.String,
39
- items: BulkPutRequestItemsList,
40
- app_id: S.optional(S.String),
41
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 }))).annotate({ identifier: "BulkPutRequest" });
42
- export const BulkPutResponseFailedItemsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
43
- export const BulkPutResponseFailedItemsList = /*@__PURE__*/ S.Array(BulkPutResponseFailedItemsItemMap);
44
- export const BulkPutResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
45
- ok: S.Boolean,
46
- datastore: S.optional(S.String),
47
- failed_items: S.optional(BulkPutResponseFailedItemsList),
48
- })).annotate({ identifier: "BulkPutResponse" });
49
- export const ConnectionsOpenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/apps.connections.open", code: 200 }))).annotate({ identifier: "ConnectionsOpenRequest" });
50
- export const ConnectionsOpenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
51
- ok: S.Boolean,
52
- url: S.String,
53
- })).annotate({ identifier: "ConnectionsOpenResponse" });
54
- export const CreateManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
55
- manifest: S.String,
56
- team_id: S.optional(S.String),
57
- }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.create", code: 200 }))).annotate({ identifier: "CreateManifestRequest" });
58
- export const CreateManifestResponseCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
59
- client_id: S.optional(S.String),
60
- client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
61
- verification_token: S.optional(S.String),
62
- signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
63
- })).annotate({
64
- identifier: "CreateManifestResponseCredentials",
65
- });
66
- export const CreateManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
67
- ok: S.Boolean,
68
- app_id: S.String,
69
- credentials: CreateManifestResponseCredentials,
70
- oauth_authorize_url: S.optional(S.String),
71
- team_id: S.optional(S.String),
72
- team_domain: S.optional(S.String),
73
- app_token: S.optional(S.String),
74
- })).annotate({ identifier: "CreateManifestResponse" });
75
- export const DatastoreCountRequestExpressionAttributesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
76
- export const DatastoreCountRequestExpressionValuesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
77
- export const DatastoreCountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
78
- datastore: S.String,
79
- expression: S.optional(S.String),
80
- expression_attributes: S.optional(DatastoreCountRequestExpressionAttributesMap),
81
- expression_values: S.optional(DatastoreCountRequestExpressionValuesMap),
82
- app_id: S.optional(S.String),
83
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.count", code: 200 }))).annotate({ identifier: "DatastoreCountRequest" });
84
- export const DatastoreCountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
85
- ok: S.Boolean,
86
- datastore: S.optional(S.String),
87
- count: S.optional(S.Number),
88
- })).annotate({ identifier: "DatastoreCountResponse" });
89
- export const DatastoreQueryRequestExpressionAttributesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
90
- export const DatastoreQueryRequestExpressionValuesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
91
- export const DatastoreQueryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
92
- datastore: S.String,
93
- expression: S.optional(S.String),
94
- expression_attributes: S.optional(DatastoreQueryRequestExpressionAttributesMap),
95
- expression_values: S.optional(DatastoreQueryRequestExpressionValuesMap),
96
- app_id: S.optional(S.String),
97
- cursor: S.optional(S.String),
98
- limit: S.optional(S.Number),
99
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.query", code: 200 }))).annotate({ identifier: "DatastoreQueryRequest" });
100
- export const DatastoreQueryResponseItemsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
101
- export const DatastoreQueryResponseItemsList = /*@__PURE__*/ S.Array(DatastoreQueryResponseItemsItemMap);
102
- export const DatastoreQueryResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
103
- next_cursor: S.optional(S.String),
104
- })).annotate({
105
- identifier: "DatastoreQueryResponseResponseMetadata",
106
- });
107
- export const DatastoreQueryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
108
- ok: S.Boolean,
109
- datastore: S.optional(S.String),
110
- items: DatastoreQueryResponseItemsList,
111
- response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
112
- })).annotate({ identifier: "DatastoreQueryResponse" });
113
- export const DeleteAuthExternalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
114
- app_id: S.optional(S.String),
115
- provider_key: S.optional(S.String),
116
- external_token_id: S.optional(S.String),
117
- }).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 }))).annotate({
118
- identifier: "DeleteAuthExternalRequest",
119
- });
120
- export const DeleteAuthExternalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
121
- ok: S.Boolean,
122
- })).annotate({
123
- identifier: "DeleteAuthExternalResponse",
124
- });
125
- export const DeleteDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
126
- datastore: S.String,
127
- id: S.String,
128
- app_id: S.optional(S.String),
129
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.delete", code: 200 }))).annotate({ identifier: "DeleteDatastoreRequest" });
130
- export const DeleteDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
131
- ok: S.Boolean,
132
- })).annotate({ identifier: "DeleteDatastoreResponse" });
133
- export const DeleteManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
134
- app_id: S.String,
135
- }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 }))).annotate({ identifier: "DeleteManifestRequest" });
136
- export const DeleteManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
137
- ok: S.Boolean,
138
- })).annotate({ identifier: "DeleteManifestResponse" });
139
- export const ExportManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
140
- app_id: S.String,
141
- }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.export", code: 200 }))).annotate({ identifier: "ExportManifestRequest" });
142
- export const ExportManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
143
- ok: S.Boolean,
144
- manifest: S.Unknown,
145
- })).annotate({ identifier: "ExportManifestResponse" });
146
- export const GetAuthExternalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
147
- external_token_id: S.String,
148
- force_refresh: S.optional(S.Boolean),
149
- }).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.get", code: 200 }))).annotate({ identifier: "GetAuthExternalRequest" });
150
- export const GetAuthExternalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
151
- ok: S.Boolean,
152
- external_token: S.String,
153
- token_response_extras: S.Unknown,
154
- })).annotate({ identifier: "GetAuthExternalResponse" });
155
- export const GetDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
156
- datastore: S.String,
157
- id: S.String,
158
- app_id: S.optional(S.String),
159
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.get", code: 200 }))).annotate({ identifier: "GetDatastoreRequest" });
160
- export const GetDatastoreResponseItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
161
- export const GetDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
162
- ok: S.Boolean,
163
- datastore: S.optional(S.String),
164
- item: S.optional(GetDatastoreResponseItemMap),
165
- })).annotate({ identifier: "GetDatastoreResponse" });
166
- export const ListActivitiesRequestSortDirection = S.String;
167
- export const ListActivitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
168
- app_id: S.String,
169
- team_id: S.optional(S.String),
170
- cursor: S.optional(S.String),
171
- limit: S.optional(S.Number),
172
- min_log_level: S.optional(S.String),
173
- log_event_type: S.optional(S.String),
174
- source: S.optional(S.String),
175
- component_type: S.optional(S.String),
176
- component_id: S.optional(S.String),
177
- trace_id: S.optional(S.String),
178
- min_date_created: S.optional(S.Number),
179
- max_date_created: S.optional(S.Number),
180
- sort_direction: S.optional(ListActivitiesRequestSortDirection),
181
- }).pipe(T.Http({
182
- method: "POST",
183
- uri: "/apps.activities.list",
184
- code: 200,
185
- contentType: "form-urlencoded",
186
- }))).annotate({ identifier: "ListActivitiesRequest" });
187
- export const ListActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(S.Unknown);
188
- export const ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
189
- export const ListActivitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
190
- ok: S.Boolean,
191
- activities: ListActivitiesResponseActivitiesList,
192
- response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
193
- })).annotate({ identifier: "ListActivitiesResponse" });
194
- export const ListEventAuthorizationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
195
- event_context: S.String,
196
- cursor: S.optional(S.String),
197
- limit: S.optional(S.Number),
198
- }).pipe(T.Http({ method: "POST", uri: "/apps.event.authorizations.list", code: 200 }))).annotate({
199
- identifier: "ListEventAuthorizationsRequest",
200
- });
201
- export const ListEventAuthorizationsResponseAuthorizationsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
202
- enterprise_id: S.NullOr(S.String),
203
- team_id: S.NullOr(S.String),
204
- user_id: S.String,
205
- is_bot: S.Boolean,
206
- is_enterprise_install: S.Boolean,
207
- })).annotate({
208
- identifier: "ListEventAuthorizationsResponseAuthorizationsItem",
209
- });
210
- export const ListEventAuthorizationsResponseAuthorizationsList = /*@__PURE__*/ S.Array(ListEventAuthorizationsResponseAuthorizationsItem);
211
- export const ListEventAuthorizationsResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
212
- export const ListEventAuthorizationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
213
- ok: S.Boolean,
214
- cursor_next: S.optional(S.String),
215
- authorizations: ListEventAuthorizationsResponseAuthorizationsList,
216
- response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
217
- })).annotate({
218
- identifier: "ListEventAuthorizationsResponse",
219
- });
220
- export const PutDatastoreRequestItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
221
- export const PutDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
222
- datastore: S.String,
223
- item: PutDatastoreRequestItemMap,
224
- app_id: S.optional(S.String),
225
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.put", code: 200 }))).annotate({ identifier: "PutDatastoreRequest" });
226
- export const PutDatastoreResponseItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
227
- export const PutDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
228
- ok: S.Boolean,
229
- datastore: S.optional(S.String),
230
- item: S.optional(PutDatastoreResponseItemMap),
231
- })).annotate({ identifier: "PutDatastoreResponse" });
232
- export const SetIconRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
233
- app_id: S.String,
234
- file: S.optional(S.Unknown),
235
- url: S.optional(S.String),
236
- }).pipe(T.Http({ method: "POST", uri: "/apps.icon.set", code: 200 }))).annotate({ identifier: "SetIconRequest" });
237
- export const SetIconResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
238
- ok: S.Boolean,
239
- })).annotate({ identifier: "SetIconResponse" });
240
- export const SetManagedPermissionsRequestPermissions = S.String;
241
- export const SetManagedPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
242
- app_id: S.String,
243
- permissions: SetManagedPermissionsRequestPermissions,
244
- }).pipe(T.Http({ method: "POST", uri: "/apps.managed.permissions.set", code: 200 }))).annotate({
245
- identifier: "SetManagedPermissionsRequest",
246
- });
247
- export const SetManagedPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
248
- ok: S.Boolean,
249
- })).annotate({
250
- identifier: "SetManagedPermissionsResponse",
251
- });
252
- export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
253
- client_id: S.String,
254
- client_secret: S.String.pipe(T.SensitiveValue({})),
255
- }).pipe(T.Http({ method: "POST", uri: "/apps.uninstall", code: 200, contentType: "form-urlencoded" }))).annotate({ identifier: "UninstallAppRequest" });
256
- export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
257
- ok: S.Boolean,
258
- uninstalled: S.Boolean,
259
- })).annotate({ identifier: "UninstallAppResponse" });
260
- export const UpdateDatastoreRequestItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
261
- export const UpdateDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
262
- datastore: S.String,
263
- item: UpdateDatastoreRequestItemMap,
264
- app_id: S.optional(S.String),
265
- }).pipe(T.Http({ method: "POST", uri: "/apps.datastore.update", code: 200 }))).annotate({ identifier: "UpdateDatastoreRequest" });
266
- export const UpdateDatastoreResponseItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
267
- export const UpdateDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
268
- ok: S.Boolean,
269
- datastore: S.optional(S.String),
270
- item: S.optional(UpdateDatastoreResponseItemMap),
271
- })).annotate({ identifier: "UpdateDatastoreResponse" });
272
- export const UpdateManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
273
- manifest: S.String,
274
- app_id: S.String,
275
- }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.update", code: 200 }))).annotate({ identifier: "UpdateManifestRequest" });
276
- export const UpdateManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
277
- ok: S.Boolean,
278
- app_id: S.String,
279
- permissions_updated: S.optional(S.Boolean),
280
- })).annotate({ identifier: "UpdateManifestResponse" });
281
- export const UpdateUserConnectionRequestStatus = S.String;
282
- export const UpdateUserConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
283
- user_id: S.String,
284
- status: UpdateUserConnectionRequestStatus,
285
- }).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.update", code: 200 }))).annotate({
286
- identifier: "UpdateUserConnectionRequest",
287
- });
288
- export const UpdateUserConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
289
- ok: S.Boolean,
290
- })).annotate({
291
- identifier: "UpdateUserConnectionResponse",
292
- });
293
- export const ValidateManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
294
- manifest: S.String,
295
- app_id: S.optional(S.String),
296
- }).pipe(T.Http({ method: "POST", uri: "/apps.manifest.validate", code: 200 }))).annotate({ identifier: "ValidateManifestRequest" });
297
- export const ValidateManifestResponseErrorsList = /*@__PURE__*/ S.Array(S.String);
298
- export const ValidateManifestResponseWarningsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
299
- code: S.String,
300
- message: S.String,
301
- pointer: S.optional(S.String),
302
- })).annotate({
303
- identifier: "ValidateManifestResponseWarningsItem",
304
- });
305
- export const ValidateManifestResponseWarningsList = /*@__PURE__*/ S.Array(ValidateManifestResponseWarningsItem);
306
- export const ValidateManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
307
- ok: S.Boolean,
308
- errors: ValidateManifestResponseErrorsList,
309
- warnings: S.optional(ValidateManifestResponseWarningsList),
310
- })).annotate({ identifier: "ValidateManifestResponse" });
311
- /** Delete items from a datastore in bulk Required scopes — bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be deleted - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkDelete */
312
- export const bulkDelete = /*@__PURE__*/ API.make(() => ({
313
- input: BulkDeleteRequest,
314
- output: BulkDeleteResponse,
315
- errors: [SlackError, SlackRateLimited],
316
- protocol: SlackProtocol,
317
- retry: Retry.Retry,
318
- }));
319
- /** Get items from a datastore in bulk Required scopes — bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be retrieved - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkGet */
320
- export const bulkGet = /*@__PURE__*/ API.make(() => ({
321
- input: BulkGetRequest,
322
- output: BulkGetResponse,
323
- errors: [SlackError, SlackRateLimited],
324
- protocol: SlackProtocol,
325
- retry: Retry.Retry,
326
- }));
327
- /** Creates or replaces existing items in bulk Required scopes — bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be updated - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkPut */
328
- export const bulkPut = /*@__PURE__*/ API.make(() => ({
329
- input: BulkPutRequest,
330
- output: BulkPutResponse,
331
- errors: [SlackError, SlackRateLimited],
332
- protocol: SlackProtocol,
333
- retry: Retry.Retry,
334
- }));
335
- /** 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 */
336
- export const connectionsOpen = /*@__PURE__*/ API.make(() => ({
337
- input: ConnectionsOpenRequest,
338
- output: ConnectionsOpenResponse,
339
- errors: [SlackError, SlackRateLimited],
340
- protocol: SlackProtocol,
341
- retry: Retry.Retry,
342
- }));
343
- /** 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 */
344
- export const createManifest = /*@__PURE__*/ API.make(() => ({
345
- input: CreateManifestRequest,
346
- output: CreateManifestResponse,
347
- errors: [SlackError, SlackRateLimited],
348
- protocol: SlackProtocol,
349
- retry: Retry.Retry,
350
- }));
351
- /** Count the number of items in a datastore that match a query Required scopes — bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to access datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore query not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.count */
352
- export const datastoreCount = /*@__PURE__*/ API.make(() => ({
353
- input: DatastoreCountRequest,
354
- output: DatastoreCountResponse,
355
- errors: [SlackError, SlackRateLimited],
356
- protocol: SlackProtocol,
357
- retry: Retry.Retry,
358
- }));
359
- /** Query a datastore for items Required scopes — bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to access datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore query not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.query */
360
- export const datastoreQuery = /*@__PURE__*/ API.makePaginated(() => ({
361
- input: DatastoreQueryRequest,
362
- output: DatastoreQueryResponse,
363
- errors: [SlackError, SlackRateLimited],
364
- protocol: SlackProtocol,
365
- retry: Retry.Retry,
366
- pagination: {
367
- mode: "cursor",
368
- inputToken: "cursor",
369
- outputToken: "response_metadata.next_cursor",
370
- items: "items",
371
- pageSize: "limit",
372
- },
373
- }), slackPaginate);
374
- /** Delete external auth tokens only on the Slack side Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `unable_to_delete` — There was an error deleting tokens - `providers_not_found` — The provided `provider_key` is invalid - `no_tokens_found` — No tokens found to delete - `method_not_supported` — This API method is not supported - `app_not_found` — The provided `app_id` was not found - `token_not_found` — The token pointed to by the external_token_id input is not found - `invalid_auth` — The token used to invoke this API doesn't have permission to delete the token pointed to by the external_token_id input - `invalid_args` — The arguments provided to this API are invalid See https://docs.slack.dev/reference/methods/apps.auth.external.delete */
375
- export const deleteAuthExternal = /*@__PURE__*/ API.make(() => ({
376
- input: DeleteAuthExternalRequest,
377
- output: DeleteAuthExternalResponse,
378
- errors: [SlackError, SlackRateLimited],
379
- protocol: SlackProtocol,
380
- retry: Retry.Retry,
381
- }));
382
- /** Delete an item from a datastore Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to delete datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore delete not allowed on a free team. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.delete */
383
- export const deleteDatastore = /*@__PURE__*/ API.make(() => ({
384
- input: DeleteDatastoreRequest,
385
- output: DeleteDatastoreResponse,
386
- errors: [SlackError, SlackRateLimited],
387
- protocol: SlackProtocol,
388
- retry: Retry.Retry,
389
- }));
390
- /** 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 */
391
- export const deleteManifest = /*@__PURE__*/ API.make(() => ({
392
- input: DeleteManifestRequest,
393
- output: DeleteManifestResponse,
394
- errors: [SlackError, SlackRateLimited],
395
- protocol: SlackProtocol,
396
- retry: Retry.Retry,
397
- }));
398
- /** Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. Required scopes — configuration: `app_configurations:read` Rate limit tier: 3 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_export` — Failed to export manifest for given app ID - `internal_error` — Internal error. - `invalid_app_id` — The app ID passed is invalid. - `no_permission` — User does not have proper permissions. - `unknown_method` — This method does not exist. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only access apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.export */
399
- export const exportManifest = /*@__PURE__*/ API.make(() => ({
400
- input: ExportManifestRequest,
401
- output: ExportManifestResponse,
402
- errors: [SlackError, SlackRateLimited],
403
- protocol: SlackProtocol,
404
- retry: Retry.Retry,
405
- }));
406
- /** Get the access token for the provided token ID Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `token_not_found` — No token found for the passed external_token_id - `method_not_supported` — This API method is not supported - `no_refresh_token` — No refresh token found for the passed external_token_id - `access_token_exchange_failed` — There was an error while attempting to exchange or refresh token See https://docs.slack.dev/reference/methods/apps.auth.external.get */
407
- export const getAuthExternal = /*@__PURE__*/ API.make(() => ({
408
- input: GetAuthExternalRequest,
409
- output: GetAuthExternalResponse,
410
- errors: [SlackError, SlackRateLimited],
411
- protocol: SlackProtocol,
412
- retry: Retry.Retry,
413
- }));
414
- /** Get an item from a datastore Required scopes — bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to get datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error. - `access_denied` — Not authorized to access to the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore get not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.get */
415
- export const getDatastore = /*@__PURE__*/ API.make(() => ({
416
- input: GetDatastoreRequest,
417
- output: GetDatastoreResponse,
418
- errors: [SlackError, SlackRateLimited],
419
- protocol: SlackProtocol,
420
- retry: Retry.Retry,
421
- }));
422
- /** Get logs for a specified app Required scopes — user: `hosting:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Something went wrong on our end, please try again. - `invalid_app_id` — App ID provided is not valid. - `invalid_app` — App ID provided is not valid for team and user. - `invalid_args` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `free_team_not_allowed` — Feature is only available on a paid team. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.activities.list */
423
- export const listActivities = /*@__PURE__*/ API.makePaginated(() => ({
424
- input: ListActivitiesRequest,
425
- output: ListActivitiesResponse,
426
- errors: [SlackError, SlackRateLimited],
427
- protocol: SlackProtocol,
428
- retry: Retry.Retry,
429
- pagination: {
430
- mode: "cursor",
431
- inputToken: "cursor",
432
- outputToken: "response_metadata.next_cursor",
433
- items: "activities",
434
- pageSize: "limit",
435
- },
436
- }), slackPaginate);
437
- /** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch` — The given authorization token is not associated with the app that sent this event. - `internal_error` — An unexpected error occurred while finding authorizations for this event. - `invalid_cursor` — The `cursor` argument was invalid. - `invalid_event_context` — The given `event_context` didn't match an event. See https://docs.slack.dev/reference/methods/apps.event.authorizations.list */
438
- export const listEventAuthorizations = /*@__PURE__*/ API.makePaginated(() => ({
439
- input: ListEventAuthorizationsRequest,
440
- output: ListEventAuthorizationsResponse,
441
- errors: [SlackError, SlackRateLimited],
442
- protocol: SlackProtocol,
443
- retry: Retry.Retry,
444
- pagination: {
445
- mode: "cursor",
446
- inputToken: "cursor",
447
- outputToken: "response_metadata.next_cursor",
448
- items: "authorizations",
449
- pageSize: "limit",
450
- },
451
- }), slackPaginate);
452
- /** Creates a new item, or replaces an old item with a new item. Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.put */
453
- export const putDatastore = /*@__PURE__*/ API.make(() => ({
454
- input: PutDatastoreRequest,
455
- output: PutDatastoreResponse,
456
- errors: [SlackError, SlackRateLimited],
457
- protocol: SlackProtocol,
458
- retry: Retry.Retry,
459
- }));
460
- /** 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. See https://docs.slack.dev/reference/methods/apps.icon.set */
461
- export const setIcon = /*@__PURE__*/ API.make(() => ({
462
- input: SetIconRequest,
463
- output: SetIconResponse,
464
- errors: [SlackError, SlackRateLimited],
465
- protocol: SlackProtocol,
466
- retry: Retry.Retry,
467
- }));
468
- /** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions as themselves, using a user token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. Required scopes — configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token. - `access_denied` — The token was not issued to a manager app that is eligible to configure managed apps. - `manager_app_not_eligible` — The manager app the token was issued to is not eligible to configure app permissions. - `feature_not_enabled` — This method is not enabled for the manager app's organization. - `app_not_found` — This app does not exist. - `app_not_managed` — The specified app is not currently managed by any manager app. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only set permissions for apps that it originally created and currently manages. - `app_owner_not_found` — The app's owner could not be resolved, so app_owner cannot be applied. - `enterprise_only_feature` — App permissions are only available on Enterprise Grid plans. Upgrade the app's org to configure who can interact with it. - `internal_error` — The app's current installations could not be determined, so permissions were not changed. Retry the request. See https://docs.slack.dev/reference/methods/apps.managed.permissions.set */
469
- export const setManagedPermissions = /*@__PURE__*/ API.make(() => ({
470
- input: SetManagedPermissionsRequest,
471
- output: SetManagedPermissionsResponse,
472
- errors: [SlackError, SlackRateLimited],
473
- protocol: SlackProtocol,
474
- retry: Retry.Retry,
475
- }));
476
- /** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `client_id_token_mismatch` — The provided client ID and token do not belong to the same app. - `internal_error` — Internal error uninstall - `invalid_client_id` — Value passed for `client_id` was invalid. - `no_permission` — Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
477
- export const uninstallApp = /*@__PURE__*/ API.make(() => ({
478
- input: UninstallAppRequest,
479
- output: UninstallAppResponse,
480
- errors: [SlackError, SlackRateLimited],
481
- protocol: SlackProtocol,
482
- retry: Retry.Retry,
483
- }));
484
- /** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.update */
485
- export const updateDatastore = /*@__PURE__*/ API.make(() => ({
486
- input: UpdateDatastoreRequest,
487
- output: UpdateDatastoreResponse,
488
- errors: [SlackError, SlackRateLimited],
489
- protocol: SlackProtocol,
490
- retry: Retry.Retry,
491
- }));
492
- /** 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. See https://docs.slack.dev/reference/methods/apps.manifest.update */
493
- export const updateManifest = /*@__PURE__*/ API.make(() => ({
494
- input: UpdateManifestRequest,
495
- output: UpdateManifestResponse,
496
- errors: [SlackError, SlackRateLimited],
497
- protocol: SlackProtocol,
498
- retry: Retry.Retry,
499
- }));
500
- /** 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 */
501
- export const updateUserConnection = /*@__PURE__*/ API.make(() => ({
502
- input: UpdateUserConnectionRequest,
503
- output: UpdateUserConnectionResponse,
504
- errors: [SlackError, SlackRateLimited],
505
- protocol: SlackProtocol,
506
- retry: Retry.Retry,
507
- }));
508
- /** Validate an app manifest Required scopes — configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `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. - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `unknown_method` — Unknown method - `no_permission` — User described by the used token does not have proper permissions to take this action. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only validate apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
509
- export const validateManifest = /*@__PURE__*/ API.make(() => ({
510
- input: ValidateManifestRequest,
511
- output: ValidateManifestResponse,
512
- errors: [SlackError, SlackRateLimited],
513
- protocol: SlackProtocol,
514
- retry: Retry.Retry,
515
- }));
516
- //# sourceMappingURL=apps.js.map
10
+ const __0 = __L.at;
11
+ const __1 = T.Http;
12
+ const __2 = S.String;
13
+ const __3 = S.optional;
14
+ const __4 = S.Struct;
15
+ const __5 = S.suspend;
16
+ const __6 = S.Boolean;
17
+ const __7 = S.Array;
18
+ const __8 = S.Unknown;
19
+ const __9 = S.Record;
20
+ const __10 = S.Number;
21
+ const __11 = S.NullOr;
22
+ const __12 = T.SensitiveValue;
23
+
24
+ export const bulkDelete = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"BulkDeleteRequest";$6(>4)@"BulkDeleteResponse";$5({datastore:$2,ids:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.bulkDelete",code:200}));$5({ok:$7,failed_items:$4(#3:0)})', [__0, __1, __2, __d0, __3, __4, __5, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkDelete, i));
25
+
26
+ export const bulkGet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"BulkGetRequest";$6(>4)@"BulkGetResponse";$5({datastore:$2,ids:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.bulkGet",code:200}));$5({ok:$7,items:$4(#8:0),failed_items:$4(#3:0)})', [__0, __1, __2, __d0, __3, __4, __5, __6, __d2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkGet, i));
27
+
28
+ export const bulkPut = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"BulkPutRequest";$6(>4)@"BulkPutResponse";$5({datastore:$2,items:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.bulkPut",code:200}));$5({ok:$7,datastore:$4($2),failed_items:$4(#3:0)})', [__0, __1, __2, __d2, __3, __4, __5, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkPut, i));
29
+
30
+ export const connectionsOpen = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7],protocol:$8,retry:$9};$3(>3)@"ConnectionsOpenRequest";$3(>4)@"ConnectionsOpenResponse";$2({}).pipe($1({method:"POST",uri:"/apps.connections.open",code:200}));$2({ok:$4,url:$5})', [__0, __1, __4, __5, __6, __2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(connectionsOpen, i));
31
+
32
+ export const createManifest = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("CreateManifestResponse", '{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"CreateManifestRequest";$5(>5)@"%Credentials";$5(>6)@"%";$4({manifest:$2,team_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.manifest.create",code:200}));$4({client_id:$3($2),client_secret:$3($2.pipe($6({}))),verification_token:$3($2),signing_secret:$3($2.pipe($6({})))});$4({ok:$7,app_id:$2,credentials:#2,oauth_authorize_url:$3($2),team_id:$3($2),team_domain:$3($2),app_token:$3($2)})', [__0, __1, __2, __3, __4, __5, __12, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(createManifest, i));
33
+
34
+ export const datastoreCount = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"DatastoreCountRequest";$6(>4)@"DatastoreCountResponse";$5({datastore:$2,expression:$3($2),expression_attributes:$3(#4:0),expression_values:$3(#4:0),app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.datastore.count",code:200}));$5({ok:$7,datastore:$3($2),count:$3($8)})', [__0, __1, __2, __3, __d1, __4, __5, __6, __10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(datastoreCount, i));
35
+
36
+ export const datastoreQuery = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"items",pageSize:"limit"},strategy:$15};$7(>3)@"DatastoreQueryRequest";$7(>4)@"DatastoreQueryResponse";$6({datastore:$2,expression:$3($2),expression_attributes:$3(#4:0),expression_values:$3(#4:0),app_id:$3($2),cursor:$3($2),limit:$3($5)}).pipe($1({method:"POST",uri:"/apps.datastore.query",code:200}));$6({ok:$8,datastore:$3($2),items:#9:0,response_metadata:$3(#10:0)})', [__0, __1, __2, __3, __d1, __10, __4, __5, __6, __d2, __d4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(datastoreQuery, i));
37
+
38
+ export const deleteAuthExternal = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteAuthExternalRequest";$4({app_id:$3($2),provider_key:$3($2),external_token_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.auth.external.delete",code:200}))', [__0, __1, __2, __3, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(deleteAuthExternal, i));
39
+
40
+ export const deleteDatastore = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteDatastoreRequest";$4({datastore:$2,id:$2,app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.datastore.delete",code:200}))', [__0, __1, __2, __3, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(deleteDatastore, i));
41
+
42
+ export const deleteManifest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"DeleteManifestRequest";$3({app_id:$2}).pipe($1({method:"POST",uri:"/apps.manifest.delete",code:200}))', [__0, __1, __2, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(deleteManifest, i));
43
+
44
+ export const exportManifest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"ExportManifestRequest";$4(>4)@"ExportManifestResponse";$3({app_id:$2}).pipe($1({method:"POST",uri:"/apps.manifest.export",code:200}));$3({ok:$5,manifest:$6})', [__0, __1, __2, __4, __5, __6, __8, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(exportManifest, i));
45
+
46
+ export const getAuthExternal = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"GetAuthExternalRequest";$6(>4)@"GetAuthExternalResponse";$5({external_token_id:$2,force_refresh:$4($3)}).pipe($1({method:"POST",uri:"/apps.auth.external.get",code:200}));$5({ok:$3,external_token:$2,token_response_extras:$7})', [__0, __1, __2, __6, __3, __4, __5, __8, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getAuthExternal, i));
47
+
48
+ export const getDatastore = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetDatastoreRequest";$4({datastore:$2,id:$2,app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.datastore.get",code:200}))', [__0, __1, __2, __3, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getDatastore, i));
49
+
50
+ export const listActivities = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#3,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"activities",pageSize:"limit"},strategy:$15};$6(>4)@"ListActivitiesRequest";$8($7);$6(>5)@"ListActivitiesResponse";$5({app_id:$2,team_id:$3($2),cursor:$3($2),limit:$3($4),min_log_level:$3($2),log_event_type:$3($2),source:$3($2),component_type:$3($2),component_id:$3($2),trace_id:$3($2),min_date_created:$3($4),max_date_created:$3($4),sort_direction:$3($2)}).pipe($1({method:"POST",uri:"/apps.activities.list",code:200,contentType:"form-urlencoded"}));$5({ok:$9,activities:#2,response_metadata:$3(#10:0)})', [__0, __1, __2, __3, __10, __4, __5, __8, __7, __6, __d4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listActivities, i));
51
+
52
+ export const listEventAuthorizations = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListEventAuthorizationsResponse", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"authorizations",pageSize:"limit"},strategy:$15};$6(>5)@"ListEventAuthorizationsRequest";$6(>6)@"%AuthorizationsItem";$9(#2);$6(>7)@"%";$5({event_context:$2,cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/apps.event.authorizations.list",code:200}));$5({enterprise_id:$7($2),team_id:$7($2),user_id:$2,is_bot:$8,is_enterprise_install:$8});$5({ok:$8,cursor_next:$3($2),authorizations:#3,response_metadata:$3(#10:0)})', [__0, __1, __2, __3, __10, __4, __5, __11, __6, __7, __d4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listEventAuthorizations, i));
53
+
54
+ export const putDatastore = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"PutDatastoreRequest";$5({datastore:$2,item:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.put",code:200}))', [__0, __1, __2, __d1, __3, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(putDatastore, i));
55
+
56
+ export const setIcon = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetIconRequest";$5({app_id:$2,file:$4($3),url:$4($2)}).pipe($1({method:"POST",uri:"/apps.icon.set",code:200}))', [__0, __1, __2, __8, __3, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setIcon, i));
57
+
58
+ export const setManagedPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetManagedPermissionsRequest";$3({app_id:$2,permissions:$2}).pipe($1({method:"POST",uri:"/apps.managed.permissions.set",code:200}))', [__0, __1, __2, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setManagedPermissions, i));
59
+
60
+ export const uninstallApp = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$5(>3)@"UninstallAppRequest";$5(>4)@"UninstallAppResponse";$4({client_id:$2,client_secret:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/apps.uninstall",code:200,contentType:"form-urlencoded"}));$4({ok:$6,uninstalled:$6})', [__0, __1, __2, __12, __4, __5, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(uninstallApp, i));
61
+
62
+ export const updateDatastore = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"UpdateDatastoreRequest";$5({datastore:$2,item:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.update",code:200}))', [__0, __1, __2, __d1, __3, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateDatastore, i));
63
+
64
+ export const updateManifest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"UpdateManifestRequest";$4(>4)@"UpdateManifestResponse";$3({manifest:$2,app_id:$2}).pipe($1({method:"POST",uri:"/apps.manifest.update",code:200}));$3({ok:$5,app_id:$2,permissions_updated:$6($5)})', [__0, __1, __2, __4, __5, __6, __3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateManifest, i));
65
+
66
+ export const updateUserConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"UpdateUserConnectionRequest";$3({user_id:$2,status:$2}).pipe($1({method:"POST",uri:"/apps.user.connection.update",code:200}))', [__0, __1, __2, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateUserConnection, i));
67
+
68
+ export const validateManifest = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ValidateManifestResponse", '{input:#1,output:#4,errors:[$9,$10],protocol:$11,retry:$12};$5(>5)@"ValidateManifestRequest";$5(>6)@"%WarningsItem";$6(#2);$5(>7)@"%";$4({manifest:$2,app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.manifest.validate",code:200}));$4({code:$2,message:$2,pointer:$3($2)});$4({ok:$7,errors:#8:0,warnings:$3(#3)})', [__0, __1, __2, __3, __4, __5, __7, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(validateManifest, i));
69
+ // Schema builders: each runs one schema initializer, on that schema's first use.
70
+ // Schema table: entry i is schema j of builder f, made on first reach.
71
+
72
+
73
+ // Shared schema data (see `op` in core/api).
74
+ function __d0() {
75
+ return ['$2($1)', [__0, __2, __7]];
76
+ }
77
+ function __d1() {
78
+ return ['$3($1,$2)', [__0, __2, __8, __9]];
79
+ }
80
+ function __d2() {
81
+ return ['$2(#1:0)', [__0, __d1, __7]];
82
+ }
83
+ function __d3() {
84
+ return ['$6(>1)@"GetDatastoreResponse";$5({ok:$1,datastore:$3($2),item:$3(#4:0)})', [__0, __6, __2, __3, __d1, __4, __5]];
85
+ }
86
+ function __d4() {
87
+ return ['$4(>1)@"DatastoreQueryResponseResponseMetadata";$3({next_cursor:$2($1)})', [__0, __2, __3, __4, __5]];
88
+ }
89
+ function __d5() {
90
+ return ['$3(>1)@"DeleteAuthExternalResponse";$2({ok:$1})', [__0, __6, __4, __5]];
91
+ }