@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.17

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 (255) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +1 -1
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -53
  8. package/lib/errors.d.ts +31 -31
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -59
  11. package/lib/index.d.ts +1 -1
  12. package/lib/index.js +0 -10
  13. package/lib/index.lazy.js +7 -0
  14. package/lib/pagination.d.ts +2 -2
  15. package/lib/pagination.js +1 -31
  16. package/lib/protocol.d.ts.map +1 -1
  17. package/lib/protocol.js +1 -231
  18. package/lib/retry.d.ts +2 -2
  19. package/lib/retry.d.ts.map +1 -1
  20. package/lib/retry.js +1 -45
  21. package/lib/services/admin.d.ts +123 -575
  22. package/lib/services/admin.d.ts.map +1 -1
  23. package/lib/services/admin.js +141 -2884
  24. package/lib/services/admin.js.map +1 -1
  25. package/lib/services/agents.d.ts +13 -55
  26. package/lib/services/agents.d.ts.map +1 -1
  27. package/lib/services/agents.js +1 -314
  28. package/lib/services/agents.js.map +1 -1
  29. package/lib/services/api.d.ts +0 -4
  30. package/lib/services/api.d.ts.map +1 -1
  31. package/lib/services/api.js +1 -23
  32. package/lib/services/api.js.map +1 -1
  33. package/lib/services/apps.d.ts +25 -106
  34. package/lib/services/apps.d.ts.map +1 -1
  35. package/lib/services/apps.js +35 -515
  36. package/lib/services/apps.js.map +1 -1
  37. package/lib/services/assistant.d.ts +6 -40
  38. package/lib/services/assistant.d.ts.map +1 -1
  39. package/lib/services/assistant.js +1 -209
  40. package/lib/services/assistant.js.map +1 -1
  41. package/lib/services/auth.d.ts +4 -15
  42. package/lib/services/auth.d.ts.map +1 -1
  43. package/lib/services/auth.js +1 -96
  44. package/lib/services/auth.js.map +1 -1
  45. package/lib/services/blocks.d.ts +1 -7
  46. package/lib/services/blocks.d.ts.map +1 -1
  47. package/lib/services/blocks.js +1 -26
  48. package/lib/services/blocks.js.map +1 -1
  49. package/lib/services/bookmarks.d.ts +4 -15
  50. package/lib/services/bookmarks.d.ts.map +1 -1
  51. package/lib/services/bookmarks.js +1 -81
  52. package/lib/services/bookmarks.js.map +1 -1
  53. package/lib/services/bots.d.ts +1 -9
  54. package/lib/services/bots.d.ts.map +1 -1
  55. package/lib/services/bots.js +1 -59
  56. package/lib/services/bots.js.map +1 -1
  57. package/lib/services/calls.d.ts +6 -22
  58. package/lib/services/calls.d.ts.map +1 -1
  59. package/lib/services/calls.js +1 -115
  60. package/lib/services/calls.js.map +1 -1
  61. package/lib/services/canvases.d.ts +7 -35
  62. package/lib/services/canvases.d.ts.map +1 -1
  63. package/lib/services/canvases.js +1 -140
  64. package/lib/services/canvases.js.map +1 -1
  65. package/lib/services/chat.d.ts +14 -83
  66. package/lib/services/chat.d.ts.map +1 -1
  67. package/lib/services/chat.js +1 -387
  68. package/lib/services/chat.js.map +1 -1
  69. package/lib/services/conversations.d.ts +31 -116
  70. package/lib/services/conversations.d.ts.map +1 -1
  71. package/lib/services/conversations.js +40 -696
  72. package/lib/services/conversations.js.map +1 -1
  73. package/lib/services/dialog.d.ts +1 -4
  74. package/lib/services/dialog.d.ts.map +1 -1
  75. package/lib/services/dialog.js +1 -22
  76. package/lib/services/dialog.js.map +1 -1
  77. package/lib/services/dnd.d.ts +5 -17
  78. package/lib/services/dnd.d.ts.map +1 -1
  79. package/lib/services/dnd.js +1 -96
  80. package/lib/services/dnd.js.map +1 -1
  81. package/lib/services/emoji.d.ts +1 -8
  82. package/lib/services/emoji.d.ts.map +1 -1
  83. package/lib/services/emoji.js +1 -34
  84. package/lib/services/emoji.js.map +1 -1
  85. package/lib/services/entity.d.ts +4 -16
  86. package/lib/services/entity.d.ts.map +1 -1
  87. package/lib/services/entity.js +1 -76
  88. package/lib/services/entity.js.map +1 -1
  89. package/lib/services/files.d.ts +16 -80
  90. package/lib/services/files.d.ts.map +1 -1
  91. package/lib/services/files.js +1 -439
  92. package/lib/services/files.js.map +1 -1
  93. package/lib/services/functions.d.ts +8 -49
  94. package/lib/services/functions.d.ts.map +1 -1
  95. package/lib/services/functions.js +1 -208
  96. package/lib/services/functions.js.map +1 -1
  97. package/lib/services/index.js +0 -2
  98. package/lib/services/lists.d.ts +13 -55
  99. package/lib/services/lists.d.ts.map +1 -1
  100. package/lib/services/lists.js +1 -254
  101. package/lib/services/lists.js.map +1 -1
  102. package/lib/services/migration.d.ts +1 -7
  103. package/lib/services/migration.d.ts.map +1 -1
  104. package/lib/services/migration.js +1 -32
  105. package/lib/services/migration.js.map +1 -1
  106. package/lib/services/oauth.d.ts +7 -43
  107. package/lib/services/oauth.d.ts.map +1 -1
  108. package/lib/services/oauth.js +1 -294
  109. package/lib/services/oauth.js.map +1 -1
  110. package/lib/services/openid.d.ts +3 -10
  111. package/lib/services/openid.d.ts.map +1 -1
  112. package/lib/services/openid.js +1 -84
  113. package/lib/services/openid.js.map +1 -1
  114. package/lib/services/pins.d.ts +3 -13
  115. package/lib/services/pins.d.ts.map +1 -1
  116. package/lib/services/pins.js +1 -66
  117. package/lib/services/pins.js.map +1 -1
  118. package/lib/services/reactions.d.ts +5 -17
  119. package/lib/services/reactions.d.ts.map +1 -1
  120. package/lib/services/reactions.js +1 -102
  121. package/lib/services/reactions.js.map +1 -1
  122. package/lib/services/reminders.d.ts +5 -17
  123. package/lib/services/reminders.d.ts.map +1 -1
  124. package/lib/services/reminders.js +1 -88
  125. package/lib/services/reminders.js.map +1 -1
  126. package/lib/services/rtm.d.ts +2 -11
  127. package/lib/services/rtm.d.ts.map +1 -1
  128. package/lib/services/rtm.js +1 -61
  129. package/lib/services/rtm.js.map +1 -1
  130. package/lib/services/search.d.ts +4 -35
  131. package/lib/services/search.d.ts.map +1 -1
  132. package/lib/services/search.js +1 -172
  133. package/lib/services/search.js.map +1 -1
  134. package/lib/services/stars.d.ts +4 -26
  135. package/lib/services/stars.d.ts.map +1 -1
  136. package/lib/services/stars.js +1 -134
  137. package/lib/services/stars.js.map +1 -1
  138. package/lib/services/team.d.ts +11 -63
  139. package/lib/services/team.d.ts.map +1 -1
  140. package/lib/services/team.js +1 -295
  141. package/lib/services/team.js.map +1 -1
  142. package/lib/services/tooling.d.ts +2 -5
  143. package/lib/services/tooling.d.ts.map +1 -1
  144. package/lib/services/tooling.js +1 -33
  145. package/lib/services/tooling.js.map +1 -1
  146. package/lib/services/usergroups.d.ts +7 -31
  147. package/lib/services/usergroups.d.ts.map +1 -1
  148. package/lib/services/usergroups.js +1 -151
  149. package/lib/services/usergroups.js.map +1 -1
  150. package/lib/services/users.d.ts +14 -48
  151. package/lib/services/users.d.ts.map +1 -1
  152. package/lib/services/users.js +1 -255
  153. package/lib/services/users.js.map +1 -1
  154. package/lib/services/views.d.ts +4 -14
  155. package/lib/services/views.d.ts.map +1 -1
  156. package/lib/services/views.js +1 -78
  157. package/lib/services/views.js.map +1 -1
  158. package/lib/services/workflows.d.ts +8 -51
  159. package/lib/services/workflows.d.ts.map +1 -1
  160. package/lib/services/workflows.js +1 -193
  161. package/lib/services/workflows.js.map +1 -1
  162. package/lib/services.lazy/admin.js +3 -0
  163. package/lib/services.lazy/agents.js +1 -0
  164. package/lib/services.lazy/api.js +1 -0
  165. package/lib/services.lazy/apps.js +3 -0
  166. package/lib/services.lazy/assistant.js +1 -0
  167. package/lib/services.lazy/auth.js +1 -0
  168. package/lib/services.lazy/blocks.js +1 -0
  169. package/lib/services.lazy/bookmarks.js +1 -0
  170. package/lib/services.lazy/bots.js +1 -0
  171. package/lib/services.lazy/calls.js +1 -0
  172. package/lib/services.lazy/canvases.js +1 -0
  173. package/lib/services.lazy/chat.js +1 -0
  174. package/lib/services.lazy/conversations.js +3 -0
  175. package/lib/services.lazy/dialog.js +1 -0
  176. package/lib/services.lazy/dnd.js +1 -0
  177. package/lib/services.lazy/emoji.js +1 -0
  178. package/lib/services.lazy/entity.js +1 -0
  179. package/lib/services.lazy/files.js +1 -0
  180. package/lib/services.lazy/functions.js +1 -0
  181. package/lib/services.lazy/index.js +3 -0
  182. package/lib/services.lazy/lists.js +1 -0
  183. package/lib/services.lazy/migration.js +1 -0
  184. package/lib/services.lazy/oauth.js +1 -0
  185. package/lib/services.lazy/openid.js +1 -0
  186. package/lib/services.lazy/pins.js +1 -0
  187. package/lib/services.lazy/reactions.js +1 -0
  188. package/lib/services.lazy/reminders.js +1 -0
  189. package/lib/services.lazy/rtm.js +1 -0
  190. package/lib/services.lazy/search.js +1 -0
  191. package/lib/services.lazy/stars.js +1 -0
  192. package/lib/services.lazy/team.js +1 -0
  193. package/lib/services.lazy/tooling.js +1 -0
  194. package/lib/services.lazy/usergroups.js +1 -0
  195. package/lib/services.lazy/users.js +1 -0
  196. package/lib/services.lazy/views.js +1 -0
  197. package/lib/services.lazy/workflows.js +1 -0
  198. package/lib/traits.d.ts +1 -1
  199. package/lib/traits.js +1 -12
  200. package/package.json +10 -8
  201. package/src/credentials.ts +20 -21
  202. package/src/errors.ts +31 -27
  203. package/src/index.ts +1 -1
  204. package/src/pagination.ts +2 -2
  205. package/src/protocol.ts +30 -29
  206. package/src/retry.ts +6 -6
  207. package/src/services/admin.ts +2717 -3451
  208. package/src/services/agents.ts +380 -370
  209. package/src/services/api.ts +31 -21
  210. package/src/services/apps.ts +569 -621
  211. package/src/services/assistant.ts +235 -270
  212. package/src/services/auth.ts +118 -100
  213. package/src/services/blocks.ts +33 -29
  214. package/src/services/bookmarks.ts +101 -83
  215. package/src/services/bots.ts +74 -67
  216. package/src/services/calls.ts +118 -124
  217. package/src/services/canvases.ts +171 -178
  218. package/src/services/chat.ts +428 -496
  219. package/src/services/conversations.ts +675 -761
  220. package/src/services/dialog.ts +30 -17
  221. package/src/services/dnd.ts +125 -99
  222. package/src/services/emoji.ts +46 -42
  223. package/src/services/entity.ts +94 -92
  224. package/src/services/files.ts +536 -531
  225. package/src/services/functions.ts +209 -274
  226. package/src/services/lists.ts +289 -304
  227. package/src/services/migration.ts +39 -37
  228. package/src/services/oauth.ts +345 -361
  229. package/src/services/openid.ts +137 -122
  230. package/src/services/pins.ts +83 -70
  231. package/src/services/reactions.ts +119 -103
  232. package/src/services/reminders.ts +112 -90
  233. package/src/services/rtm.ts +73 -65
  234. package/src/services/search.ts +193 -244
  235. package/src/services/stars.ts +101 -160
  236. package/src/services/team.ts +333 -369
  237. package/src/services/tooling.ts +43 -30
  238. package/src/services/usergroups.ts +175 -179
  239. package/src/services/users.ts +301 -268
  240. package/src/services/views.ts +85 -80
  241. package/src/services/workflows.ts +184 -269
  242. package/src/traits.ts +1 -1
  243. package/lib/credentials.js.map +0 -1
  244. package/lib/errors.js.map +0 -1
  245. package/lib/pagination.js.map +0 -1
  246. package/lib/protocol.js.map +0 -1
  247. package/lib/protocol.test.d.ts +0 -2
  248. package/lib/protocol.test.d.ts.map +0 -1
  249. package/lib/protocol.test.js +0 -288
  250. package/lib/protocol.test.js.map +0 -1
  251. package/lib/retry.js.map +0 -1
  252. package/lib/services/index.js.map +0 -1
  253. package/lib/traits.js.map +0 -1
  254. package/src/protocol.test.ts +0 -372
  255. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -1,141 +1,2 @@
1
- import * as API from "@distilled.cloud/core/api";
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 { SlackError, SlackRateLimited } from "../errors.js";
5
- import { SlackProtocol } from "../protocol.js";
6
- import * as Retry from "../retry.js";
7
- import * as T from "../traits.js";
8
- export const CreateCanvaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
- title: S.optional(S.String),
10
- document_content: S.optional(S.Unknown),
11
- channel_id: S.optional(S.String),
12
- }).pipe(T.Http({ method: "POST", uri: "/canvases.create", code: 200 }))).annotate({ identifier: "CreateCanvaseRequest" });
13
- export const CreateCanvaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
14
- ok: S.Boolean,
15
- canvas_id: S.String,
16
- })).annotate({ identifier: "CreateCanvaseResponse" });
17
- export const DeleteAccessRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
18
- export const DeleteAccessRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
19
- export const DeleteAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
20
- canvas_id: S.String,
21
- channel_ids: S.optional(DeleteAccessRequestChannelIdsList),
22
- user_ids: S.optional(DeleteAccessRequestUserIdsList),
23
- }).pipe(T.Http({ method: "POST", uri: "/canvases.access.delete", code: 200 }))).annotate({ identifier: "DeleteAccessRequest" });
24
- export const DeleteAccessResponseFailedToUpdateChannelIdsList = /*@__PURE__*/ S.Array(S.String);
25
- export const DeleteAccessResponseFailedToUpdateUserIdsList = /*@__PURE__*/ S.Array(S.String);
26
- export const DeleteAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
27
- ok: S.Boolean,
28
- failed_to_update_channel_ids: S.optional(DeleteAccessResponseFailedToUpdateChannelIdsList),
29
- failed_to_update_user_ids: S.optional(DeleteAccessResponseFailedToUpdateUserIdsList),
30
- })).annotate({ identifier: "DeleteAccessResponse" });
31
- export const DeleteCanvaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
32
- canvas_id: S.String,
33
- }).pipe(T.Http({ method: "POST", uri: "/canvases.delete", code: 200 }))).annotate({ identifier: "DeleteCanvaseRequest" });
34
- export const DeleteCanvaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
35
- ok: S.Boolean,
36
- })).annotate({ identifier: "DeleteCanvaseResponse" });
37
- export const EditCanvaseRequestChangesList = /*@__PURE__*/ S.Array(S.Unknown);
38
- export const EditCanvaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
39
- canvas_id: S.String,
40
- changes: EditCanvaseRequestChangesList,
41
- }).pipe(T.Http({ method: "POST", uri: "/canvases.edit", code: 200 }))).annotate({ identifier: "EditCanvaseRequest" });
42
- export const EditCanvaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
43
- ok: S.Boolean,
44
- })).annotate({ identifier: "EditCanvaseResponse" });
45
- export const GetContentRequestContentType = S.String;
46
- export const GetContentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
47
- canvas_id: S.String,
48
- content_type: S.optional(GetContentRequestContentType),
49
- }).pipe(T.Http({ method: "POST", uri: "/canvases.getContent", code: 200 }))).annotate({ identifier: "GetContentRequest" });
50
- export const GetContentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
51
- ok: S.Boolean,
52
- content: S.String,
53
- })).annotate({ identifier: "GetContentResponse" });
54
- export const LookupSectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
55
- canvas_id: S.String,
56
- criteria: S.Unknown,
57
- }).pipe(T.Http({ method: "POST", uri: "/canvases.sections.lookup", code: 200 }))).annotate({ identifier: "LookupSectionRequest" });
58
- export const LookupSectionResponseSectionsItemChildSectionIdsList = /*@__PURE__*/ S.Array(S.String);
59
- export const LookupSectionResponseSectionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
60
- id: S.String,
61
- child_section_ids: S.optional(LookupSectionResponseSectionsItemChildSectionIdsList),
62
- })).annotate({
63
- identifier: "LookupSectionResponseSectionsItem",
64
- });
65
- export const LookupSectionResponseSectionsList = /*@__PURE__*/ S.Array(LookupSectionResponseSectionsItem);
66
- export const LookupSectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
67
- ok: S.Boolean,
68
- sections: LookupSectionResponseSectionsList,
69
- })).annotate({ identifier: "LookupSectionResponse" });
70
- export const SetAccessRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
71
- export const SetAccessRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
72
- export const SetAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
73
- canvas_id: S.String,
74
- access_level: S.String,
75
- channel_ids: S.optional(SetAccessRequestChannelIdsList),
76
- user_ids: S.optional(SetAccessRequestUserIdsList),
77
- }).pipe(T.Http({ method: "POST", uri: "/canvases.access.set", code: 200 }))).annotate({ identifier: "SetAccessRequest" });
78
- export const SetAccessResponseFailedToUpdateChannelIdsList = /*@__PURE__*/ S.Array(S.String);
79
- export const SetAccessResponseFailedToUpdateUserIdsList = /*@__PURE__*/ S.Array(S.String);
80
- export const SetAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
81
- ok: S.Boolean,
82
- failed_to_update_channel_ids: S.optional(SetAccessResponseFailedToUpdateChannelIdsList),
83
- failed_to_update_user_ids: S.optional(SetAccessResponseFailedToUpdateUserIdsList),
84
- })).annotate({ identifier: "SetAccessResponse" });
85
- /** Create canvas for a user Required scopes — bot: `canvases:write`; user: `canvases:write`; seamless_user: `seamless.user` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` — Canvas is disabled on user's team - `restricted_action` — User does not have permission to perform this action. - `canvas_creation_failed` — Canvas was unable to be created. - `free_team_canvas_tab_already_exists` — Free teams are limited to one canvas tab per channel - `free_teams_cannot_create_standalone_canvases` — Free teams cannot create standalone canvases See https://docs.slack.dev/reference/methods/canvases.create */
86
- export const createCanvase = /*@__PURE__*/ API.make(() => ({
87
- input: CreateCanvaseRequest,
88
- output: CreateCanvaseResponse,
89
- errors: [SlackError, SlackRateLimited],
90
- protocol: SlackProtocol,
91
- retry: Retry.Retry,
92
- }));
93
- /** Remove access to a canvas for specified entities Required scopes — bot: `canvases:write`; user: `canvases:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_not_found` — The canvas you wish to revoke permissions for is not available. - `restricted_action` — User does not have permission to perform this action. - `canvas_disabled_user_team` — Canvas is disabled on user's team. - `invalid_parameters` — One of user_ids and channel_ids must be defined. - `channel_not_found` — A channel could not be found. - `user_not_found` — A user could not be found. See https://docs.slack.dev/reference/methods/canvases.access.delete */
94
- export const deleteAccess = /*@__PURE__*/ API.make(() => ({
95
- input: DeleteAccessRequest,
96
- output: DeleteAccessResponse,
97
- errors: [SlackError, SlackRateLimited],
98
- protocol: SlackProtocol,
99
- retry: Retry.Retry,
100
- }));
101
- /** Deletes a canvas Required scopes — bot: `canvases:write`; user: `canvases:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_deleting_disabled` — This functionality is disabled. - `canvas_not_found` — The canvas does not exist, or is not visible to the calling user. - `restricted_action` — User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/canvases.delete */
102
- export const deleteCanvase = /*@__PURE__*/ API.make(() => ({
103
- input: DeleteCanvaseRequest,
104
- output: DeleteCanvaseResponse,
105
- errors: [SlackError, SlackRateLimited],
106
- protocol: SlackProtocol,
107
- retry: Retry.Retry,
108
- }));
109
- /** Update an existing canvas Required scopes — bot: `canvases:write`; user: `canvases:write`; seamless_user: `seamless.user` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_not_found` — The canvas you wish to apply changes to is not available. - `canvas_disabled_user_team` — Canvas is disabled on user's team - `free_teams_cannot_edit_standalone_canvases` — Free teams cannot edit standalone canvases - `restricted_action` — User does not have permission to perform this action. - `canvas_editing_failed` — The changes to the canvas failed to be applied. - `canvas_editing_locked` — Another edit to this canvas is currently in progress. Please retry after a short delay. - `canvas_too_large` — The canvas is too large to apply the requested changes. Reduce the size of the canvas or the edit and try again. See https://docs.slack.dev/reference/methods/canvases.edit */
110
- export const editCanvase = /*@__PURE__*/ API.make(() => ({
111
- input: EditCanvaseRequest,
112
- output: EditCanvaseResponse,
113
- errors: [SlackError, SlackRateLimited],
114
- protocol: SlackProtocol,
115
- retry: Retry.Retry,
116
- }));
117
- /** Get the content of a canvas as markdown (default) or HTML. Required scopes — bot: `canvases:read`; user: `canvases:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` — Canvas is disabled on user's team - `canvas_not_found` — The canvas does not exist, or is not visible to the calling user. See https://docs.slack.dev/reference/methods/canvases.getContent */
118
- export const getContent = /*@__PURE__*/ API.make(() => ({
119
- input: GetContentRequest,
120
- output: GetContentResponse,
121
- errors: [SlackError, SlackRateLimited],
122
- protocol: SlackProtocol,
123
- retry: Retry.Retry,
124
- }));
125
- /** Find sections matching the provided criteria Required scopes — bot: `canvases:read`; user: `canvases:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_deleted` — The canvas you wish to search is not available. - `canvas_disabled_user_team` — Canvas is disabled on user's team. - `canvas_not_found` — The canvas you wish to search for is not available. - `internal_error` — Something went wrong on our end, please try again. See https://docs.slack.dev/reference/methods/canvases.sections.lookup */
126
- export const lookupSection = /*@__PURE__*/ API.make(() => ({
127
- input: LookupSectionRequest,
128
- output: LookupSectionResponse,
129
- errors: [SlackError, SlackRateLimited],
130
- protocol: SlackProtocol,
131
- retry: Retry.Retry,
132
- }));
133
- /** Sets the access level to a canvas for specified entities Required scopes — bot: `canvases:write`; user: `canvases:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` — Canvas is disabled on user's team - `canvas_not_found` — The canvas you wish to update permissions for is not available. - `channel_not_found` — A channel could not be found. - `failed_to_update_user_ids` — Failed to update the specified user_ids. - `invalid_parameters` — One of user_ids or channel_ids must be defined, but not both. - `restricted_action` — User does not have permission to perform this action. - `user_not_found` — A user could not be found. See https://docs.slack.dev/reference/methods/canvases.access.set */
134
- export const setAccess = /*@__PURE__*/ API.make(() => ({
135
- input: SetAccessRequest,
136
- output: SetAccessResponse,
137
- errors: [SlackError, SlackRateLimited],
138
- protocol: SlackProtocol,
139
- retry: Retry.Retry,
140
- }));
1
+ import{c as e,d as t,errors$SlackError as n,errors$SlackRateLimited as r,f as i,h as a,l as o,m as s,n as c,o as l,p as u,protocol$SlackProtocol as d,retry$Retry as f,s as p,t as m,traits$Http as h,u as g}from"../_bundle/sdk.js";const _=/*@__PURE__*/ a(a=>a===i?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"CreateCanvaseRequest";$6(>4)@"CreateCanvaseResponse";$5({title:$3($2),document_content:$3($4),channel_id:$3($2)}).pipe($1({method:"POST",uri:"/canvases.create",code:200}));$5({ok:$7,canvas_id:$2})`,[o,h,l,g,e,p,t,c,n,r,d,f]]:u(_,a));const v=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"DeleteAccessRequest";$5({canvas_id:$2,channel_ids:$4(#3:0),user_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/canvases.access.delete",code:200}))`,[o,h,l,__d0,g,p,t,__d1,n,r,d,f]]:u(v,e));const y=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"DeleteCanvaseRequest";$3({canvas_id:$2}).pipe($1({method:"POST",uri:"/canvases.delete",code:200}))`,[o,h,l,p,t,__d2,n,r,d,f]]:u(y,e));const b=/*@__PURE__*/ a(a=>a===i?[`{input:#2,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$2($1);$6(>3)@"EditCanvaseRequest";$5({canvas_id:$4,changes:#1}).pipe($3({method:"POST",uri:"/canvases.edit",code:200}))`,[o,e,m,h,l,p,t,__d2,n,r,d,f]]:u(b,a));const x=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$5(>3)@"GetContentRequest";$5(>4)@"GetContentResponse";$4({canvas_id:$2,content_type:$3($2)}).pipe($1({method:"POST",uri:"/canvases.getContent",code:200}));$4({ok:$6,content:$2})`,[o,h,l,g,p,t,c,n,r,d,f]]:u(x,e));const S=/*@__PURE__*/ a(a=>a===i?s(`LookupSectionResponse`,`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$5(>5)@"LookupSectionRequest";$5(>6)@"%SectionsItem";$8(#2);$5(>7)@"%";$4({canvas_id:$2,criteria:$3}).pipe($1({method:"POST",uri:"/canvases.sections.lookup",code:200}));$4({id:$2,child_section_ids:$7(#6:0)});$4({ok:$9,sections:#3})`,[o,h,l,e,p,t,__d0,g,m,c,n,r,d,f]):u(S,a));const C=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetAccessRequest";$5({canvas_id:$2,access_level:$2,channel_ids:$4(#3:0),user_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/canvases.access.set",code:200}))`,[o,h,l,__d0,g,p,t,__d1,n,r,d,f]]:u(C,e));function __d0(){return[`$2($1)`,[o,l,m]]}function __d1(){return[`$5(>1)@"DeleteAccessResponse";$4({ok:$1,failed_to_update_channel_ids:$3(#2:0),failed_to_update_user_ids:$3(#2:0)})`,[o,c,__d0,g,p,t]]}function __d2(){return[`$3(>1)@"DeleteCanvaseResponse";$2({ok:$1})`,[o,c,p,t]]}export{_ as createCanvase,v as deleteAccess,y as deleteCanvase,b as editCanvase,x as getContent,S as lookupSection,C as setAccess};
141
2
  //# sourceMappingURL=canvases.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"canvases.js","sourceRoot":"","sources":["../../src/services/canvases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,aAAa,EAA0C,MAAM,gBAAgB,CAAC;AACvF,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAYlC,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC/D,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,QAAQ,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,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"canvases.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Unknown","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","S.Array","API.named","Unknown","suspend","SlackError","SlackRateLimited","D","op","at","named","Boolean","String","call","SlackProtocol","Retry","Struct","Array","Http","optional","createCanvase","i","deleteAccess","deleteCanvase","editCanvase","getContent","lookupSection","setAccess"],"sources":["../../src/services/canvases.ts"],"mappings":"qOAoIA,MAAa8B,EAKK,gBAAQ,GAAgBC,IAAM/B,EAAQ,CAAC,0QAA2Q,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAWC,EAAUC,EAAWC,EAAWO,EAAYC,EAAkBQ,EAAef,CAAW,CAAC,EAAIC,EAASoB,EAAeC,CAAC,CAAC,EAI7e,MAAaC,EAKK,gBAAQ,GAAgBD,IAAM/B,EAAQ,CAAC,uNAAwN,CAACC,EAAQC,EAAQC,EAAU,KAAMC,EAAYE,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAef,CAAW,CAAC,EAAIC,EAASsB,EAAcD,CAAC,CAAC,EAI/a,MAAaE,EAKK,gBAAQ,GAAgBF,IAAM/B,EAAQ,CAAC,wKAAyK,CAACC,EAAQC,EAAQC,EAAUG,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAef,CAAW,CAAC,EAAIC,EAASuB,EAAeF,CAAC,CAAC,EAI/W,MAAaG,EAKK,gBAAQ,GAAgBH,IAAM/B,EAAQ,CAAC,wLAAyL,CAACC,EAAQI,EAAWM,EAAST,EAAQC,EAAUG,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAef,CAAW,CAAC,EAAIC,EAASwB,EAAaH,CAAC,CAAC,EAIjZ,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAM/B,EAAQ,CAAC,+OAAgP,CAACC,EAAQC,EAAQC,EAAUC,EAAYE,EAAUC,EAAWC,EAAWO,EAAYC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