@distilled.cloud/slack 1.0.0-rc.15 → 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,10 +1,8 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
2
  import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
3
  export type { SlackOpError, SlackOpContext };
5
4
  /** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
6
5
  export type AddCallRequestUsersList = Array<unknown>;
7
- export declare const AddCallRequestUsersList: S.Schema<AddCallRequestUsersList>;
8
6
  export interface AddCallRequest {
9
7
  /** An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service. */
10
8
  external_unique_id: string;
@@ -23,69 +21,57 @@ export interface AddCallRequest {
23
21
  /** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
24
22
  users?: AddCallRequestUsersList;
25
23
  }
26
- export declare const AddCallRequest: S.Schema<AddCallRequest>;
27
24
  export interface AddCallResponse {
28
25
  /** Always `true` (a failed call raises a typed error instead). */
29
26
  ok: boolean;
30
27
  call: unknown;
31
28
  }
32
- export declare const AddCallResponse: S.Schema<AddCallResponse>;
33
29
  /** The list of users to add as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
34
30
  export type AddParticipantRequestUsersList = Array<unknown>;
35
- export declare const AddParticipantRequestUsersList: S.Schema<AddParticipantRequestUsersList>;
36
31
  export interface AddParticipantRequest {
37
32
  /** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
38
33
  id: string;
39
34
  /** The list of users to add as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
40
35
  users: AddParticipantRequestUsersList;
41
36
  }
42
- export declare const AddParticipantRequest: S.Schema<AddParticipantRequest>;
43
37
  export interface AddParticipantResponse {
44
38
  /** Always `true` (a failed call raises a typed error instead). */
45
39
  ok: boolean;
46
40
  call: unknown;
47
41
  }
48
- export declare const AddParticipantResponse: S.Schema<AddParticipantResponse>;
49
42
  export interface CallsEndRequest {
50
43
  /** `id` returned when registering the call using the [`calls.add`](/reference/methods/calls.add) method. */
51
44
  id: string;
52
45
  /** Call duration in seconds */
53
46
  duration?: number;
54
47
  }
55
- export declare const CallsEndRequest: S.Schema<CallsEndRequest>;
56
48
  export interface CallsEndResponse {
57
49
  /** Always `true` (a failed call raises a typed error instead). */
58
50
  ok: boolean;
59
51
  call: unknown;
60
52
  }
61
- export declare const CallsEndResponse: S.Schema<CallsEndResponse>;
62
53
  export interface CallsInfoRequest {
63
54
  /** `id` of the Call returned by the [`calls.add`](/reference/methods/calls.add) method. */
64
55
  id: string;
65
56
  }
66
- export declare const CallsInfoRequest: S.Schema<CallsInfoRequest>;
67
57
  export interface CallsInfoResponse {
68
58
  /** Always `true` (a failed call raises a typed error instead). */
69
59
  ok: boolean;
70
60
  call: unknown;
71
61
  }
72
- export declare const CallsInfoResponse: S.Schema<CallsInfoResponse>;
73
62
  /** The list of users to remove as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
74
63
  export type RemoveParticipantRequestUsersList = Array<unknown>;
75
- export declare const RemoveParticipantRequestUsersList: S.Schema<RemoveParticipantRequestUsersList>;
76
64
  export interface RemoveParticipantRequest {
77
65
  /** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
78
66
  id: string;
79
67
  /** The list of users to remove as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
80
68
  users: RemoveParticipantRequestUsersList;
81
69
  }
82
- export declare const RemoveParticipantRequest: S.Schema<RemoveParticipantRequest>;
83
70
  export interface RemoveParticipantResponse {
84
71
  /** Always `true` (a failed call raises a typed error instead). */
85
72
  ok: boolean;
86
73
  call: unknown;
87
74
  }
88
- export declare const RemoveParticipantResponse: S.Schema<RemoveParticipantResponse>;
89
75
  export interface UpdateCallRequest {
90
76
  /** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
91
77
  id: string;
@@ -96,29 +82,27 @@ export interface UpdateCallRequest {
96
82
  /** When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL. */
97
83
  desktop_app_join_url?: string;
98
84
  }
99
- export declare const UpdateCallRequest: S.Schema<UpdateCallRequest>;
100
85
  export interface UpdateCallResponse {
101
86
  /** Always `true` (a failed call raises a typed error instead). */
102
87
  ok: boolean;
103
88
  call: unknown;
104
89
  }
105
- export declare const UpdateCallResponse: S.Schema<UpdateCallResponse>;
106
90
  export type AddCallError = SlackOpError;
107
- /** Registers a new Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error has occurred while trying to register the Call. - `invalid_created_by` — The `created_by` user ID is invalid. - `invalid_start_time` — The start time is invalid. - `not_authorized` — The specified user is not authorized to create a Call in this channel. - `not_implemented` — This method is not available. - `user_not_found` — A specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.add */
91
+ /** Registers a new Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected error has occurred while trying to register the Call. - `invalid_created_by` -- The `created_by` user ID is invalid. - `invalid_start_time` -- The start time is invalid. - `not_authorized` -- The specified user is not authorized to create a Call in this channel. - `not_implemented` -- This method is not available. - `user_not_found` -- A specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.add */
108
92
  export declare const addCall: API.OperationMethod<AddCallRequest, AddCallResponse, AddCallError, SlackOpContext>;
109
93
  export type AddParticipantError = SlackOpError;
110
- /** Registers new participants added to a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is already part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while adding a Call participant. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.add */
94
+ /** Registers new participants added to a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` -- At least one specified user is already part of the Call. - `inactive_call` -- The Call has been already ended. - `internal_error` -- An unexpected exception occurred while adding a Call participant. - `invalid_call_id` -- The specified Call wasn't found. - `missing_argument` -- A required argument is missing. - `not_implemented` -- This method is not available. - `user_not_found` -- At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.add */
111
95
  export declare const addParticipant: API.OperationMethod<AddParticipantRequest, AddParticipantResponse, AddParticipantError, SlackOpContext>;
112
96
  export type CallsEndError = SlackOpError;
113
- /** Ends a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `inactive_call` — The Call has been already stopped. - `internal_error` — An unexpected error has occurred while ending the Call. - `invalid_call_id` — Invalid Call ID. - `not_implemented` — This method is not publicly available yet. See https://docs.slack.dev/reference/methods/calls.end */
97
+ /** Ends a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `inactive_call` -- The Call has been already stopped. - `internal_error` -- An unexpected error has occurred while ending the Call. - `invalid_call_id` -- Invalid Call ID. - `not_implemented` -- This method is not publicly available yet. See https://docs.slack.dev/reference/methods/calls.end */
114
98
  export declare const callsEnd: API.OperationMethod<CallsEndRequest, CallsEndResponse, CallsEndError, SlackOpContext>;
115
99
  export type CallsInfoError = SlackOpError;
116
- /** Returns information about a Call. Required scopes — bot: `calls:read`; user: `calls:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred while finding information about this Call. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.info */
100
+ /** Returns information about a Call. Required scopes -- bot: `calls:read`; user: `calls:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected error occurred while finding information about this Call. - `not_implemented` -- This method is not available. See https://docs.slack.dev/reference/methods/calls.info */
117
101
  export declare const callsInfo: API.OperationMethod<CallsInfoRequest, CallsInfoResponse, CallsInfoError, SlackOpContext>;
118
102
  export type RemoveParticipantError = SlackOpError;
119
- /** Registers participants removed from a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is not part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while removing participants from the Call. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.remove */
103
+ /** Registers participants removed from a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` -- At least one specified user is not part of the Call. - `inactive_call` -- The Call has been already ended. - `internal_error` -- An unexpected exception occurred while removing participants from the Call. - `invalid_call_id` -- The specified Call wasn't found. - `missing_argument` -- A required argument is missing. - `not_implemented` -- This method is not available. - `user_not_found` -- At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.remove */
120
104
  export declare const removeParticipant: API.OperationMethod<RemoveParticipantRequest, RemoveParticipantResponse, RemoveParticipantError, SlackOpContext>;
121
105
  export type UpdateCallError = SlackOpError;
122
- /** Updates information about a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected exception occurred while updating the Call info. - `invalid_call_id` — The Call's `id` was invalid. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.update */
106
+ /** Updates information about a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected exception occurred while updating the Call info. - `invalid_call_id` -- The Call's `id` was invalid. - `not_implemented` -- This method is not available. See https://docs.slack.dev/reference/methods/calls.update */
123
107
  export declare const updateCall: API.OperationMethod<UpdateCallRequest, UpdateCallResponse, UpdateCallError, SlackOpContext>;
124
108
  //# sourceMappingURL=calls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../src/services/calls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,oJAAoJ;AACpJ,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AACrD,eAAO,MAAM,uBAAuB,EAExB,CAAC,CAAC,MA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  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";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import { SlackError, SlackRateLimited } from "../errors.js";
5
6
  import { SlackProtocol } from "../protocol.js";
6
7
  import * as Retry from "../retry.js";
7
8
  import * as T from "../traits.js";
8
- export const AddCallRequestUsersList = /*@__PURE__*/ S.Array(S.Unknown);
9
- export const AddCallRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
10
- external_unique_id: S.String,
11
- external_display_id: S.optional(S.String),
12
- join_url: S.String,
13
- desktop_app_join_url: S.optional(S.String),
14
- date_start: S.optional(S.Number),
15
- title: S.optional(S.String),
16
- created_by: S.optional(S.String),
17
- users: S.optional(AddCallRequestUsersList),
18
- }).pipe(T.Http({ method: "POST", uri: "/calls.add", code: 200 }))).annotate({ identifier: "AddCallRequest" });
19
- export const AddCallResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
20
- ok: S.Boolean,
21
- call: S.Unknown,
22
- })).annotate({ identifier: "AddCallResponse" });
23
- export const AddParticipantRequestUsersList = /*@__PURE__*/ S.Array(S.Unknown);
24
- export const AddParticipantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
25
- id: S.String,
26
- users: AddParticipantRequestUsersList,
27
- }).pipe(T.Http({ method: "POST", uri: "/calls.participants.add", code: 200 }))).annotate({ identifier: "AddParticipantRequest" });
28
- export const AddParticipantResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
29
- ok: S.Boolean,
30
- call: S.Unknown,
31
- })).annotate({ identifier: "AddParticipantResponse" });
32
- export const CallsEndRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
33
- id: S.String,
34
- duration: S.optional(S.Number),
35
- }).pipe(T.Http({ method: "POST", uri: "/calls.end", code: 200 }))).annotate({ identifier: "CallsEndRequest" });
36
- export const CallsEndResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
37
- ok: S.Boolean,
38
- call: S.Unknown,
39
- })).annotate({ identifier: "CallsEndResponse" });
40
- export const CallsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
41
- id: S.String,
42
- }).pipe(T.Http({ method: "POST", uri: "/calls.info", code: 200 }))).annotate({ identifier: "CallsInfoRequest" });
43
- export const CallsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
44
- ok: S.Boolean,
45
- call: S.Unknown,
46
- })).annotate({ identifier: "CallsInfoResponse" });
47
- export const RemoveParticipantRequestUsersList = /*@__PURE__*/ S.Array(S.Unknown);
48
- export const RemoveParticipantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
49
- id: S.String,
50
- users: RemoveParticipantRequestUsersList,
51
- }).pipe(T.Http({ method: "POST", uri: "/calls.participants.remove", code: 200 }))).annotate({ identifier: "RemoveParticipantRequest" });
52
- export const RemoveParticipantResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
53
- ok: S.Boolean,
54
- call: S.Unknown,
55
- })).annotate({
56
- identifier: "RemoveParticipantResponse",
57
- });
58
- export const UpdateCallRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
59
- id: S.String,
60
- title: S.optional(S.String),
61
- join_url: S.optional(S.String),
62
- desktop_app_join_url: S.optional(S.String),
63
- }).pipe(T.Http({ method: "POST", uri: "/calls.update", code: 200 }))).annotate({ identifier: "UpdateCallRequest" });
64
- export const UpdateCallResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
65
- ok: S.Boolean,
66
- call: S.Unknown,
67
- })).annotate({ identifier: "UpdateCallResponse" });
68
- /** Registers a new Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error has occurred while trying to register the Call. - `invalid_created_by` — The `created_by` user ID is invalid. - `invalid_start_time` — The start time is invalid. - `not_authorized` — The specified user is not authorized to create a Call in this channel. - `not_implemented` — This method is not available. - `user_not_found` — A specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.add */
69
- export const addCall = /*@__PURE__*/ API.make(() => ({
70
- input: AddCallRequest,
71
- output: AddCallResponse,
72
- errors: [SlackError, SlackRateLimited],
73
- protocol: SlackProtocol,
74
- retry: Retry.Retry,
75
- }));
76
- /** Registers new participants added to a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is already part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while adding a Call participant. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.add */
77
- export const addParticipant = /*@__PURE__*/ API.make(() => ({
78
- input: AddParticipantRequest,
79
- output: AddParticipantResponse,
80
- errors: [SlackError, SlackRateLimited],
81
- protocol: SlackProtocol,
82
- retry: Retry.Retry,
83
- }));
84
- /** Ends a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `inactive_call` — The Call has been already stopped. - `internal_error` — An unexpected error has occurred while ending the Call. - `invalid_call_id` — Invalid Call ID. - `not_implemented` — This method is not publicly available yet. See https://docs.slack.dev/reference/methods/calls.end */
85
- export const callsEnd = /*@__PURE__*/ API.make(() => ({
86
- input: CallsEndRequest,
87
- output: CallsEndResponse,
88
- errors: [SlackError, SlackRateLimited],
89
- protocol: SlackProtocol,
90
- retry: Retry.Retry,
91
- }));
92
- /** Returns information about a Call. Required scopes — bot: `calls:read`; user: `calls:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred while finding information about this Call. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.info */
93
- export const callsInfo = /*@__PURE__*/ API.make(() => ({
94
- input: CallsInfoRequest,
95
- output: CallsInfoResponse,
96
- errors: [SlackError, SlackRateLimited],
97
- protocol: SlackProtocol,
98
- retry: Retry.Retry,
99
- }));
100
- /** Registers participants removed from a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is not part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while removing participants from the Call. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.remove */
101
- export const removeParticipant = /*@__PURE__*/ API.make(() => ({
102
- input: RemoveParticipantRequest,
103
- output: RemoveParticipantResponse,
104
- errors: [SlackError, SlackRateLimited],
105
- protocol: SlackProtocol,
106
- retry: Retry.Retry,
107
- }));
108
- /** Updates information about a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected exception occurred while updating the Call info. - `invalid_call_id` — The Call's `id` was invalid. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.update */
109
- export const updateCall = /*@__PURE__*/ API.make(() => ({
110
- input: UpdateCallRequest,
111
- output: UpdateCallResponse,
112
- errors: [SlackError, SlackRateLimited],
113
- protocol: SlackProtocol,
114
- retry: Retry.Retry,
115
- }));
116
- //# sourceMappingURL=calls.js.map
9
+ const __0 = __L.at;
10
+ const __1 = T.Http;
11
+ const __2 = S.String;
12
+ const __3 = S.optional;
13
+ const __4 = S.Number;
14
+ const __5 = S.Struct;
15
+ const __6 = S.suspend;
16
+ const __7 = S.Boolean;
17
+ const __8 = S.Unknown;
18
+ const __9 = S.Array;
19
+
20
+ export const addCall = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"AddCallRequest";$6({external_unique_id:$2,external_display_id:$3($2),join_url:$2,desktop_app_join_url:$3($2),date_start:$3($4),title:$3($2),created_by:$3($2),users:$3(#5:0)}).pipe($1({method:"POST",uri:"/calls.add",code:200}))', [__0, __1, __2, __3, __4, __d1, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addCall, i));
21
+
22
+ export const addParticipant = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"AddParticipantRequest";$4({id:$2,users:#3:0}).pipe($1({method:"POST",uri:"/calls.participants.add",code:200}))', [__0, __1, __2, __d1, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addParticipant, i));
23
+
24
+ export const callsEnd = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"CallsEndRequest";$5({id:$2,duration:$4($3)}).pipe($1({method:"POST",uri:"/calls.end",code:200}))', [__0, __1, __2, __4, __3, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(callsEnd, i));
25
+
26
+ export const callsInfo = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"CallsInfoRequest";$3({id:$2}).pipe($1({method:"POST",uri:"/calls.info",code:200}))', [__0, __1, __2, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(callsInfo, i));
27
+
28
+ export const removeParticipant = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveParticipantRequest";$4({id:$2,users:#3:0}).pipe($1({method:"POST",uri:"/calls.participants.remove",code:200}))', [__0, __1, __2, __d1, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeParticipant, i));
29
+
30
+ export const updateCall = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"UpdateCallRequest";$4({id:$2,title:$3($2),join_url:$3($2),desktop_app_join_url:$3($2)}).pipe($1({method:"POST",uri:"/calls.update",code:200}))', [__0, __1, __2, __3, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateCall, i));
31
+ // Schema builders: each runs one schema initializer, on that schema's first use.
32
+ // Schema table: entry i is schema j of builder f, made on first reach.
33
+
34
+
35
+ // Shared schema data (see `op` in core/api).
36
+ function __d0() {
37
+ return ['$4(>1)@"AddCallResponse";$3({ok:$1,call:$2})', [__0, __7, __8, __5, __6]];
38
+ }
39
+ function __d1() {
40
+ return ['$2($1)', [__0, __8, __9]];
41
+ }
@@ -1,5 +1,4 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
2
  import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
3
  export type { SlackOpError, SlackOpContext };
5
4
  export interface CreateCanvaseRequest {
@@ -10,20 +9,16 @@ export interface CreateCanvaseRequest {
10
9
  /** Channel ID of the channel the canvas will be tabbed in. This is a required field for free teams. */
11
10
  channel_id?: string;
12
11
  }
13
- export declare const CreateCanvaseRequest: S.Schema<CreateCanvaseRequest>;
14
12
  export interface CreateCanvaseResponse {
15
13
  /** Always `true` (a failed call raises a typed error instead). */
16
14
  ok: boolean;
17
15
  /** Encoded ID of the canvas */
18
16
  canvas_id: string;
19
17
  }
20
- export declare const CreateCanvaseResponse: S.Schema<CreateCanvaseResponse>;
21
18
  /** List of channels you wish to update access for */
22
19
  export type DeleteAccessRequestChannelIdsList = Array<string>;
23
- export declare const DeleteAccessRequestChannelIdsList: S.Schema<DeleteAccessRequestChannelIdsList>;
24
20
  /** List of users you wish to update access for */
25
21
  export type DeleteAccessRequestUserIdsList = Array<string>;
26
- export declare const DeleteAccessRequestUserIdsList: S.Schema<DeleteAccessRequestUserIdsList>;
27
22
  export interface DeleteAccessRequest {
28
23
  /** Encoded ID of the canvas */
29
24
  canvas_id: string;
@@ -32,13 +27,10 @@ export interface DeleteAccessRequest {
32
27
  /** List of users you wish to update access for */
33
28
  user_ids?: DeleteAccessRequestUserIdsList;
34
29
  }
35
- export declare const DeleteAccessRequest: S.Schema<DeleteAccessRequest>;
36
30
  /** The channel IDs that could not be updated */
37
31
  export type DeleteAccessResponseFailedToUpdateChannelIdsList = Array<string>;
38
- export declare const DeleteAccessResponseFailedToUpdateChannelIdsList: S.Schema<DeleteAccessResponseFailedToUpdateChannelIdsList>;
39
32
  /** The user IDs that could not be updated */
40
33
  export type DeleteAccessResponseFailedToUpdateUserIdsList = Array<string>;
41
- export declare const DeleteAccessResponseFailedToUpdateUserIdsList: S.Schema<DeleteAccessResponseFailedToUpdateUserIdsList>;
42
34
  export interface DeleteAccessResponse {
43
35
  /** Always `true` (a failed call raises a typed error instead). */
44
36
  ok: boolean;
@@ -47,81 +39,65 @@ export interface DeleteAccessResponse {
47
39
  /** The user IDs that could not be updated */
48
40
  failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList;
49
41
  }
50
- export declare const DeleteAccessResponse: S.Schema<DeleteAccessResponse>;
51
42
  export interface DeleteCanvaseRequest {
52
43
  /** Encoded ID of the canvas */
53
44
  canvas_id: string;
54
45
  }
55
- export declare const DeleteCanvaseRequest: S.Schema<DeleteCanvaseRequest>;
56
46
  export interface DeleteCanvaseResponse {
57
47
  /** Always `true` (a failed call raises a typed error instead). */
58
48
  ok: boolean;
59
49
  }
60
- export declare const DeleteCanvaseResponse: S.Schema<DeleteCanvaseResponse>;
61
50
  /** List of changes to apply on the specified canvas. The markdown content of each change is limited to 1 MiB (1,048,576 characters). */
62
51
  export type EditCanvaseRequestChangesList = Array<unknown>;
63
- export declare const EditCanvaseRequestChangesList: S.Schema<EditCanvaseRequestChangesList>;
64
52
  export interface EditCanvaseRequest {
65
53
  /** Encoded ID of the canvas */
66
54
  canvas_id: string;
67
55
  /** List of changes to apply on the specified canvas. The markdown content of each change is limited to 1 MiB (1,048,576 characters). */
68
56
  changes: EditCanvaseRequestChangesList;
69
57
  }
70
- export declare const EditCanvaseRequest: S.Schema<EditCanvaseRequest>;
71
58
  export interface EditCanvaseResponse {
72
59
  /** Always `true` (a failed call raises a typed error instead). */
73
60
  ok: boolean;
74
61
  }
75
- export declare const EditCanvaseResponse: S.Schema<EditCanvaseResponse>;
76
62
  /** Format in which to return the canvas content. Defaults to markdown. */
77
63
  export type GetContentRequestContentType = "html" | "markdown";
78
- export declare const GetContentRequestContentType: any;
79
64
  export interface GetContentRequest {
80
65
  /** Encoded ID of the canvas */
81
66
  canvas_id: string;
82
67
  /** Format in which to return the canvas content. Defaults to markdown. */
83
68
  content_type?: GetContentRequestContentType | (string & {});
84
69
  }
85
- export declare const GetContentRequest: S.Schema<GetContentRequest>;
86
70
  export interface GetContentResponse {
87
71
  /** Always `true` (a failed call raises a typed error instead). */
88
72
  ok: boolean;
89
73
  /** The content of the canvas in the requested content_type. */
90
74
  content: string;
91
75
  }
92
- export declare const GetContentResponse: S.Schema<GetContentResponse>;
93
76
  export interface LookupSectionRequest {
94
77
  /** Encoded ID of the canvas */
95
78
  canvas_id: string;
96
79
  /** Filtering criteria */
97
80
  criteria: unknown;
98
81
  }
99
- export declare const LookupSectionRequest: S.Schema<LookupSectionRequest>;
100
82
  /** IDs of child sections within a layout container (blockquote, callout, flexbox, or table). */
101
83
  export type LookupSectionResponseSectionsItemChildSectionIdsList = Array<string>;
102
- export declare const LookupSectionResponseSectionsItemChildSectionIdsList: S.Schema<LookupSectionResponseSectionsItemChildSectionIdsList>;
103
84
  export interface LookupSectionResponseSectionsItem {
104
85
  id: string;
105
86
  /** IDs of child sections within a layout container (blockquote, callout, flexbox, or table). */
106
87
  child_section_ids?: LookupSectionResponseSectionsItemChildSectionIdsList;
107
88
  }
108
- export declare const LookupSectionResponseSectionsItem: S.Schema<LookupSectionResponseSectionsItem>;
109
89
  /** Sections in the canvas that match the provided criteria */
110
90
  export type LookupSectionResponseSectionsList = Array<LookupSectionResponseSectionsItem>;
111
- export declare const LookupSectionResponseSectionsList: S.Schema<LookupSectionResponseSectionsList>;
112
91
  export interface LookupSectionResponse {
113
92
  /** Always `true` (a failed call raises a typed error instead). */
114
93
  ok: boolean;
115
94
  /** Sections in the canvas that match the provided criteria */
116
95
  sections: LookupSectionResponseSectionsList;
117
96
  }
118
- export declare const LookupSectionResponse: S.Schema<LookupSectionResponse>;
119
97
  /** List of channels you wish to update access for. Can only be used if user_ids is not provided. */
120
98
  export type SetAccessRequestChannelIdsList = Array<string>;
121
- export declare const SetAccessRequestChannelIdsList: S.Schema<SetAccessRequestChannelIdsList>;
122
99
  /** List of users you wish to update access for. Can only be used if channel_ids is not provided. */
123
100
  export type SetAccessRequestUserIdsList = Array<string>;
124
- export declare const SetAccessRequestUserIdsList: S.Schema<SetAccessRequestUserIdsList>;
125
101
  export interface SetAccessRequest {
126
102
  /** Encoded ID of the canvas */
127
103
  canvas_id: string;
@@ -132,13 +108,10 @@ export interface SetAccessRequest {
132
108
  /** List of users you wish to update access for. Can only be used if channel_ids is not provided. */
133
109
  user_ids?: SetAccessRequestUserIdsList;
134
110
  }
135
- export declare const SetAccessRequest: S.Schema<SetAccessRequest>;
136
111
  /** The channel IDs that could not be updated */
137
112
  export type SetAccessResponseFailedToUpdateChannelIdsList = Array<string>;
138
- export declare const SetAccessResponseFailedToUpdateChannelIdsList: S.Schema<SetAccessResponseFailedToUpdateChannelIdsList>;
139
113
  /** The user IDs that could not be updated */
140
114
  export type SetAccessResponseFailedToUpdateUserIdsList = Array<string>;
141
- export declare const SetAccessResponseFailedToUpdateUserIdsList: S.Schema<SetAccessResponseFailedToUpdateUserIdsList>;
142
115
  export interface SetAccessResponse {
143
116
  /** Always `true` (a failed call raises a typed error instead). */
144
117
  ok: boolean;
@@ -147,26 +120,25 @@ export interface SetAccessResponse {
147
120
  /** The user IDs that could not be updated */
148
121
  failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList;
149
122
  }
150
- export declare const SetAccessResponse: S.Schema<SetAccessResponse>;
151
123
  export type CreateCanvaseError = SlackOpError;
152
- /** 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 */
124
+ /** 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 */
153
125
  export declare const createCanvase: API.OperationMethod<CreateCanvaseRequest, CreateCanvaseResponse, CreateCanvaseError, SlackOpContext>;
154
126
  export type DeleteAccessError = SlackOpError;
155
- /** 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 */
127
+ /** 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 */
156
128
  export declare const deleteAccess: API.OperationMethod<DeleteAccessRequest, DeleteAccessResponse, DeleteAccessError, SlackOpContext>;
157
129
  export type DeleteCanvaseError = SlackOpError;
158
- /** 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 */
130
+ /** 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 */
159
131
  export declare const deleteCanvase: API.OperationMethod<DeleteCanvaseRequest, DeleteCanvaseResponse, DeleteCanvaseError, SlackOpContext>;
160
132
  export type EditCanvaseError = SlackOpError;
161
- /** 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 */
133
+ /** 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 */
162
134
  export declare const editCanvase: API.OperationMethod<EditCanvaseRequest, EditCanvaseResponse, EditCanvaseError, SlackOpContext>;
163
135
  export type GetContentError = SlackOpError;
164
- /** 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 */
136
+ /** 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 */
165
137
  export declare const getContent: API.OperationMethod<GetContentRequest, GetContentResponse, GetContentError, SlackOpContext>;
166
138
  export type LookupSectionError = SlackOpError;
167
- /** 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 */
139
+ /** 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 */
168
140
  export declare const lookupSection: API.OperationMethod<LookupSectionRequest, LookupSectionResponse, LookupSectionError, SlackOpContext>;
169
141
  export type SetAccessError = SlackOpError;
170
- /** 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 */
142
+ /** 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 */
171
143
  export declare const setAccess: API.OperationMethod<SetAccessRequest, SetAccessResponse, SetAccessError, SlackOpContext>;
172
144
  //# sourceMappingURL=canvases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"canv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