@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,13 +1,10 @@
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
  /** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
6
5
  export type CreateUsergroupRequestChannelsList = Array<string>;
7
- export declare const CreateUsergroupRequestChannelsList: S.Schema<CreateUsergroupRequestChannelsList>;
8
6
  /** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
9
7
  export type CreateUsergroupRequestAdditionalChannelsList = Array<string>;
10
- export declare const CreateUsergroupRequestAdditionalChannelsList: S.Schema<CreateUsergroupRequestAdditionalChannelsList>;
11
8
  export interface CreateUsergroupRequest {
12
9
  /** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
13
10
  channels?: CreateUsergroupRequestChannelsList;
@@ -26,13 +23,11 @@ export interface CreateUsergroupRequest {
26
23
  /** Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added. */
27
24
  enable_section?: boolean;
28
25
  }
29
- export declare const CreateUsergroupRequest: S.Schema<CreateUsergroupRequest>;
30
26
  export interface CreateUsergroupResponse {
31
27
  /** Always `true` (a failed call raises a typed error instead). */
32
28
  ok: boolean;
33
29
  usergroup: unknown;
34
30
  }
35
- export declare const CreateUsergroupResponse: S.Schema<CreateUsergroupResponse>;
36
31
  export interface DisableUsergroupRequest {
37
32
  /** Include the number of users in the User Group. */
38
33
  include_count?: boolean;
@@ -41,13 +36,11 @@ export interface DisableUsergroupRequest {
41
36
  /** The encoded ID of the User Group to disable. */
42
37
  usergroup: string;
43
38
  }
44
- export declare const DisableUsergroupRequest: S.Schema<DisableUsergroupRequest>;
45
39
  export interface DisableUsergroupResponse {
46
40
  /** Always `true` (a failed call raises a typed error instead). */
47
41
  ok: boolean;
48
42
  usergroup: unknown;
49
43
  }
50
- export declare const DisableUsergroupResponse: S.Schema<DisableUsergroupResponse>;
51
44
  export interface EnableUsergroupRequest {
52
45
  /** Include the number of users in the User Group. */
53
46
  include_count?: boolean;
@@ -56,13 +49,11 @@ export interface EnableUsergroupRequest {
56
49
  /** The encoded ID of the User Group to enable. */
57
50
  usergroup: string;
58
51
  }
59
- export declare const EnableUsergroupRequest: S.Schema<EnableUsergroupRequest>;
60
52
  export interface EnableUsergroupResponse {
61
53
  /** Always `true` (a failed call raises a typed error instead). */
62
54
  ok: boolean;
63
55
  usergroup: unknown;
64
56
  }
65
- export declare const EnableUsergroupResponse: S.Schema<EnableUsergroupResponse>;
66
57
  export interface ListUsergroupsRequest {
67
58
  /** Include the number of users in each User Group. */
68
59
  include_count?: boolean;
@@ -73,15 +64,12 @@ export interface ListUsergroupsRequest {
73
64
  /** The user group's encoded team ID. Required if org token is used. */
74
65
  team_id?: string;
75
66
  }
76
- export declare const ListUsergroupsRequest: S.Schema<ListUsergroupsRequest>;
77
67
  export type ListUsergroupsResponseUsergroupsList = Array<unknown>;
78
- export declare const ListUsergroupsResponseUsergroupsList: S.Schema<ListUsergroupsResponseUsergroupsList>;
79
68
  export interface ListUsergroupsResponse {
80
69
  /** Always `true` (a failed call raises a typed error instead). */
81
70
  ok: boolean;
82
71
  usergroups: ListUsergroupsResponseUsergroupsList;
83
72
  }
84
- export declare const ListUsergroupsResponse: S.Schema<ListUsergroupsResponse>;
85
73
  export interface ListUsersRequest {
86
74
  /** Include results for disabled User Groups. */
87
75
  include_disabled?: boolean;
@@ -90,21 +78,16 @@ export interface ListUsersRequest {
90
78
  /** The user group's encoded team ID. Required if org token is used. */
91
79
  team_id?: string;
92
80
  }
93
- export declare const ListUsersRequest: S.Schema<ListUsersRequest>;
94
81
  export type ListUsersResponseUsersList = Array<unknown>;
95
- export declare const ListUsersResponseUsersList: S.Schema<ListUsersResponseUsersList>;
96
82
  export interface ListUsersResponse {
97
83
  /** Always `true` (a failed call raises a typed error instead). */
98
84
  ok: boolean;
99
85
  users: ListUsersResponseUsersList;
100
86
  }
101
- export declare const ListUsersResponse: S.Schema<ListUsersResponse>;
102
87
  /** A comma separated string of encoded user IDs that represent the entire list of users for the user group. */
103
88
  export type UpdateUserRequestUsersList = Array<string>;
104
- export declare const UpdateUserRequestUsersList: S.Schema<UpdateUserRequestUsersList>;
105
89
  /** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
106
90
  export type UpdateUserRequestAdditionalChannelsList = Array<string>;
107
- export declare const UpdateUserRequestAdditionalChannelsList: S.Schema<UpdateUserRequestAdditionalChannelsList>;
108
91
  export interface UpdateUserRequest {
109
92
  /** Include the number of users in the user group. */
110
93
  include_count?: boolean;
@@ -119,19 +102,15 @@ export interface UpdateUserRequest {
119
102
  /** Boolean to identify if the API is getting called when a shared section is getting shared */
120
103
  is_shared?: boolean;
121
104
  }
122
- export declare const UpdateUserRequest: S.Schema<UpdateUserRequest>;
123
105
  export interface UpdateUserResponse {
124
106
  /** Always `true` (a failed call raises a typed error instead). */
125
107
  ok: boolean;
126
108
  usergroup: unknown;
127
109
  }
128
- export declare const UpdateUserResponse: S.Schema<UpdateUserResponse>;
129
110
  /** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
130
111
  export type UpdateUsergroupRequestChannelsList = Array<string>;
131
- export declare const UpdateUsergroupRequestChannelsList: S.Schema<UpdateUsergroupRequestChannelsList>;
132
112
  /** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
133
113
  export type UpdateUsergroupRequestAdditionalChannelsList = Array<string>;
134
- export declare const UpdateUsergroupRequestAdditionalChannelsList: S.Schema<UpdateUsergroupRequestAdditionalChannelsList>;
135
114
  export interface UpdateUsergroupRequest {
136
115
  /** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
137
116
  channels?: UpdateUsergroupRequestChannelsList;
@@ -152,10 +131,8 @@ export interface UpdateUsergroupRequest {
152
131
  /** Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added. */
153
132
  enable_section?: boolean;
154
133
  }
155
- export declare const UpdateUsergroupRequest: S.Schema<UpdateUsergroupRequest>;
156
134
  /** List of user IDs who would exceed their channel limit */
157
135
  export type UpdateUsergroupResponseChannelLimitUserIdsList = Array<string>;
158
- export declare const UpdateUsergroupResponseChannelLimitUserIdsList: S.Schema<UpdateUsergroupResponseChannelLimitUserIdsList>;
159
136
  export interface UpdateUsergroupResponse {
160
137
  /** Always `true` (a failed call raises a typed error instead). */
161
138
  ok: boolean;
@@ -163,26 +140,25 @@ export interface UpdateUsergroupResponse {
163
140
  /** List of user IDs who would exceed their channel limit */
164
141
  channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList;
165
142
  }
166
- export declare const UpdateUsergroupResponse: S.Schema<UpdateUsergroupResponse>;
167
143
  export type CreateUsergroupError = SlackOpError;
168
- /** Create a User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_handle` — Handle is invalid - `description_too_long` — Given usergroup description is too long - `forbidden_handle` — Handle is invalid - `handle_already_exists` — Handle is already in use on this workspace - `invalid_channel_provided` — An invalid channel ID was provided - `invalid_group_provided` — An invalid group ID was provided - `missing_argument` — A required argument is missing. - `missing_subteam_name` — Subteam name is required - `name_already_exists` — Name is already in use on this workspace - `name_too_long` — Name too long. - `paid_teams_only` — Usergroups can only be used on paid Slack teams - `permission_denied` — The user does not have permission to create a User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` — Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` — No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.create */
144
+ /** Create a User Group. Required scopes -- bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_handle` -- Handle is invalid - `description_too_long` -- Given usergroup description is too long - `forbidden_handle` -- Handle is invalid - `handle_already_exists` -- Handle is already in use on this workspace - `invalid_channel_provided` -- An invalid channel ID was provided - `invalid_group_provided` -- An invalid group ID was provided - `missing_argument` -- A required argument is missing. - `missing_subteam_name` -- Subteam name is required - `name_already_exists` -- Name is already in use on this workspace - `name_too_long` -- Name too long. - `paid_teams_only` -- Usergroups can only be used on paid Slack teams - `permission_denied` -- The user does not have permission to create a User Group. - `plan_upgrade_required` -- This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` -- Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` -- No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.create */
169
145
  export declare const createUsergroup: API.OperationMethod<CreateUsergroupRequest, CreateUsergroupResponse, CreateUsergroupError, SlackOpContext>;
170
146
  export type DisableUsergroupError = SlackOpError;
171
- /** Disable an existing User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `permission_denied` — The user does not have permission to disable the User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` — Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` — No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.disable */
147
+ /** Disable an existing User Group. Required scopes -- bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` -- A required argument is missing. - `permission_denied` -- The user does not have permission to disable the User Group. - `plan_upgrade_required` -- This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` -- Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` -- No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.disable */
172
148
  export declare const disableUsergroup: API.OperationMethod<DisableUsergroupRequest, DisableUsergroupResponse, DisableUsergroupError, SlackOpContext>;
173
149
  export type EnableUsergroupError = SlackOpError;
174
- /** Enable a User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `permission_denied` — The user does not have permission to enables the User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. See https://docs.slack.dev/reference/methods/usergroups.enable */
150
+ /** Enable a User Group. Required scopes -- bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` -- A required argument is missing. - `permission_denied` -- The user does not have permission to enables the User Group. - `plan_upgrade_required` -- This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. See https://docs.slack.dev/reference/methods/usergroups.enable */
175
151
  export declare const enableUsergroup: API.OperationMethod<EnableUsergroupRequest, EnableUsergroupResponse, EnableUsergroupError, SlackOpContext>;
176
152
  export type ListUsergroupsError = SlackOpError;
177
- /** List all User Groups for a team. Required scopes — bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `users_not_found` — Cannot find users on subteam. - `invalid_team` — Cannot find subteam team. See https://docs.slack.dev/reference/methods/usergroups.list */
153
+ /** List all User Groups for a team. Required scopes -- bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` -- A required argument is missing. - `plan_upgrade_required` -- This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `users_not_found` -- Cannot find users on subteam. - `invalid_team` -- Cannot find subteam team. See https://docs.slack.dev/reference/methods/usergroups.list */
178
154
  export declare const listUsergroups: API.OperationMethod<ListUsergroupsRequest, ListUsergroupsResponse, ListUsergroupsError, SlackOpContext>;
179
155
  export type ListUsersError = SlackOpError;
180
- /** List all users in a User Group. Required scopes — bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_such_subteam` — No usergroup found with the given ID. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/usergroups.users.list */
156
+ /** List all users in a User Group. Required scopes -- bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_such_subteam` -- No usergroup found with the given ID. - `plan_upgrade_required` -- This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/usergroups.users.list */
181
157
  export declare const listUsers: API.OperationMethod<ListUsersRequest, ListUsersResponse, ListUsersError, SlackOpContext>;
182
158
  export type UpdateUserError = SlackOpError;
183
- /** Update the list of users for a user group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_users` — Value passed for `users` was empty or invalid. - `failed_for_some_users` — User(s) are not in the workspace where this usergroup exists - `missing_argument` — A required argument is missing. - `no_users_provided` — Either the `users` field wasn't provided or an empty value was passed. - `permission_denied` — The user does not have permission to update the list of users for a user group. Check workspace settings to confirm whether the calling user has permission. - `plan_upgrade_required` — This workspace does not have access to user groups, as that feature is only available on Standard and above plans. - `subteam_max_users_exceeded` — Exceeds maximum supported number of users per subteam. - `cannot_modify_role_admin` — The user does not have permission to modify the roles admin role. See https://docs.slack.dev/reference/methods/usergroups.users.update */
159
+ /** Update the list of users for a user group. Required scopes -- bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_users` -- Value passed for `users` was empty or invalid. - `failed_for_some_users` -- User(s) are not in the workspace where this usergroup exists - `missing_argument` -- A required argument is missing. - `no_users_provided` -- Either the `users` field wasn't provided or an empty value was passed. - `permission_denied` -- The user does not have permission to update the list of users for a user group. Check workspace settings to confirm whether the calling user has permission. - `plan_upgrade_required` -- This workspace does not have access to user groups, as that feature is only available on Standard and above plans. - `subteam_max_users_exceeded` -- Exceeds maximum supported number of users per subteam. - `cannot_modify_role_admin` -- The user does not have permission to modify the roles admin role. See https://docs.slack.dev/reference/methods/usergroups.users.update */
184
160
  export declare const updateUser: API.OperationMethod<UpdateUserRequest, UpdateUserResponse, UpdateUserError, SlackOpContext>;
185
161
  export type UpdateUsergroupError = SlackOpError;
186
- /** Update an existing User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `paid_teams_only` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `permission_denied` — The user does not have permission to update the User Group. - `too_many_linked_channels` — This request exceeds the number of channels we supporting linking to a single usergroup. - `user_channel_limit_exceeded` — Adding these channels would cause one or more members to exceed their channel limit. See https://docs.slack.dev/reference/methods/usergroups.update */
162
+ /** Update an existing User Group. Required scopes -- bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` -- A required argument is missing. - `paid_teams_only` -- This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `permission_denied` -- The user does not have permission to update the User Group. - `too_many_linked_channels` -- This request exceeds the number of channels we supporting linking to a single usergroup. - `user_channel_limit_exceeded` -- Adding these channels would cause one or more members to exceed their channel limit. See https://docs.slack.dev/reference/methods/usergroups.update */
187
163
  export declare const updateUsergroup: API.OperationMethod<UpdateUsergroupRequest, UpdateUsergroupResponse, UpdateUsergroupError, SlackOpContext>;
188
164
  //# sourceMappingURL=usergroups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usergroups.d.ts","sourceRoot":"","sources":["../../src/services/usergroups.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,kGAAkG;AAClG,MAAM,MAAM,kCAAkC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAC/D,eAAO,MAAM,kCAAkC,EAEnC,CAAC,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC;AAEzD,qHAAqH;AACrH,MAAM,MAAM,4CAA4C,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACzE,eAAO,MAAM,4CAA4C,EAE7C,CAAC,CAAC,MAAM,CAAC,4CAA4C,CAAC,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,kGAAkG;IAClG,QAAQ,CAAC,EAAE,k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Y,CAAC;AAChD,iwBAAiwB;AACjwB,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,CAOb,CAAC"}
@@ -1,152 +1,46 @@
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";
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 CreateUsergroupRequestChannelsList = /*@__PURE__*/ S.Array(S.String);
9
- export const CreateUsergroupRequestAdditionalChannelsList = /*@__PURE__*/ S.Array(S.String);
10
- export const CreateUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
11
- channels: S.optional(CreateUsergroupRequestChannelsList),
12
- additional_channels: S.optional(CreateUsergroupRequestAdditionalChannelsList),
13
- description: S.optional(S.String),
14
- handle: S.optional(S.String),
15
- include_count: S.optional(S.Boolean),
16
- name: S.String,
17
- team_id: S.optional(S.String),
18
- enable_section: S.optional(S.Boolean),
19
- }).pipe(T.Http({ method: "POST", uri: "/usergroups.create", code: 200 }))).annotate({ identifier: "CreateUsergroupRequest" });
20
- export const CreateUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
21
- ok: S.Boolean,
22
- usergroup: S.Unknown,
23
- })).annotate({ identifier: "CreateUsergroupResponse" });
24
- export const DisableUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
25
- include_count: S.optional(S.Boolean),
26
- team_id: S.optional(S.String),
27
- usergroup: S.String,
28
- }).pipe(T.Http({ method: "POST", uri: "/usergroups.disable", code: 200 }))).annotate({ identifier: "DisableUsergroupRequest" });
29
- export const DisableUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
30
- ok: S.Boolean,
31
- usergroup: S.Unknown,
32
- })).annotate({ identifier: "DisableUsergroupResponse" });
33
- export const EnableUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
34
- include_count: S.optional(S.Boolean),
35
- team_id: S.optional(S.String),
36
- usergroup: S.String,
37
- }).pipe(T.Http({ method: "POST", uri: "/usergroups.enable", code: 200 }))).annotate({ identifier: "EnableUsergroupRequest" });
38
- export const EnableUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
39
- ok: S.Boolean,
40
- usergroup: S.Unknown,
41
- })).annotate({ identifier: "EnableUsergroupResponse" });
42
- export const ListUsergroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
43
- include_count: S.optional(S.Boolean.pipe(T.Query())),
44
- include_disabled: S.optional(S.Boolean.pipe(T.Query())),
45
- include_users: S.optional(S.Boolean.pipe(T.Query())),
46
- team_id: S.optional(S.String.pipe(T.Query())),
47
- }).pipe(T.Http({ method: "GET", uri: "/usergroups.list", code: 200 }))).annotate({ identifier: "ListUsergroupsRequest" });
48
- export const ListUsergroupsResponseUsergroupsList = /*@__PURE__*/ S.Array(S.Unknown);
49
- export const ListUsergroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
50
- ok: S.Boolean,
51
- usergroups: ListUsergroupsResponseUsergroupsList,
52
- })).annotate({ identifier: "ListUsergroupsResponse" });
53
- export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
54
- include_disabled: S.optional(S.Boolean.pipe(T.Query())),
55
- usergroup: S.String.pipe(T.Query()),
56
- team_id: S.optional(S.String.pipe(T.Query())),
57
- }).pipe(T.Http({ method: "GET", uri: "/usergroups.users.list", code: 200 }))).annotate({ identifier: "ListUsersRequest" });
58
- export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(S.Unknown);
59
- export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
60
- ok: S.Boolean,
61
- users: ListUsersResponseUsersList,
62
- })).annotate({ identifier: "ListUsersResponse" });
63
- export const UpdateUserRequestUsersList = /*@__PURE__*/ S.Array(S.String);
64
- export const UpdateUserRequestAdditionalChannelsList = /*@__PURE__*/ S.Array(S.String);
65
- export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
66
- include_count: S.optional(S.Boolean),
67
- team_id: S.optional(S.String),
68
- usergroup: S.String,
69
- users: UpdateUserRequestUsersList,
70
- additional_channels: S.optional(UpdateUserRequestAdditionalChannelsList),
71
- is_shared: S.optional(S.Boolean),
72
- }).pipe(T.Http({ method: "POST", uri: "/usergroups.users.update", code: 200 }))).annotate({ identifier: "UpdateUserRequest" });
73
- export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
74
- ok: S.Boolean,
75
- usergroup: S.Unknown,
76
- })).annotate({ identifier: "UpdateUserResponse" });
77
- export const UpdateUsergroupRequestChannelsList = /*@__PURE__*/ S.Array(S.String);
78
- export const UpdateUsergroupRequestAdditionalChannelsList = /*@__PURE__*/ S.Array(S.String);
79
- export const UpdateUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
80
- channels: S.optional(UpdateUsergroupRequestChannelsList),
81
- additional_channels: S.optional(UpdateUsergroupRequestAdditionalChannelsList),
82
- description: S.optional(S.String),
83
- handle: S.optional(S.String),
84
- include_count: S.optional(S.Boolean),
85
- name: S.optional(S.String),
86
- team_id: S.optional(S.String),
87
- usergroup: S.String,
88
- enable_section: S.optional(S.Boolean),
89
- }).pipe(T.Http({ method: "POST", uri: "/usergroups.update", code: 200 }))).annotate({ identifier: "UpdateUsergroupRequest" });
90
- export const UpdateUsergroupResponseChannelLimitUserIdsList = /*@__PURE__*/ S.Array(S.String);
91
- export const UpdateUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
92
- ok: S.Boolean,
93
- usergroup: S.Unknown,
94
- channel_limit_user_ids: S.optional(UpdateUsergroupResponseChannelLimitUserIdsList),
95
- })).annotate({ identifier: "UpdateUsergroupResponse" });
96
- /** Create a User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_handle` — Handle is invalid - `description_too_long` — Given usergroup description is too long - `forbidden_handle` — Handle is invalid - `handle_already_exists` — Handle is already in use on this workspace - `invalid_channel_provided` — An invalid channel ID was provided - `invalid_group_provided` — An invalid group ID was provided - `missing_argument` — A required argument is missing. - `missing_subteam_name` — Subteam name is required - `name_already_exists` — Name is already in use on this workspace - `name_too_long` — Name too long. - `paid_teams_only` — Usergroups can only be used on paid Slack teams - `permission_denied` — The user does not have permission to create a User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` — Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` — No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.create */
97
- export const createUsergroup = /*@__PURE__*/ API.make(() => ({
98
- input: CreateUsergroupRequest,
99
- output: CreateUsergroupResponse,
100
- errors: [SlackError, SlackRateLimited],
101
- protocol: SlackProtocol,
102
- retry: Retry.Retry,
103
- }));
104
- /** Disable an existing User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `permission_denied` — The user does not have permission to disable the User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` — Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` — No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.disable */
105
- export const disableUsergroup = /*@__PURE__*/ API.make(() => ({
106
- input: DisableUsergroupRequest,
107
- output: DisableUsergroupResponse,
108
- errors: [SlackError, SlackRateLimited],
109
- protocol: SlackProtocol,
110
- retry: Retry.Retry,
111
- }));
112
- /** Enable a User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `permission_denied` — The user does not have permission to enables the User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. See https://docs.slack.dev/reference/methods/usergroups.enable */
113
- export const enableUsergroup = /*@__PURE__*/ API.make(() => ({
114
- input: EnableUsergroupRequest,
115
- output: EnableUsergroupResponse,
116
- errors: [SlackError, SlackRateLimited],
117
- protocol: SlackProtocol,
118
- retry: Retry.Retry,
119
- }));
120
- /** List all User Groups for a team. Required scopes — bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `users_not_found` — Cannot find users on subteam. - `invalid_team` — Cannot find subteam team. See https://docs.slack.dev/reference/methods/usergroups.list */
121
- export const listUsergroups = /*@__PURE__*/ API.make(() => ({
122
- input: ListUsergroupsRequest,
123
- output: ListUsergroupsResponse,
124
- errors: [SlackError, SlackRateLimited],
125
- protocol: SlackProtocol,
126
- retry: Retry.Retry,
127
- }));
128
- /** List all users in a User Group. Required scopes — bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_such_subteam` — No usergroup found with the given ID. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/usergroups.users.list */
129
- export const listUsers = /*@__PURE__*/ API.make(() => ({
130
- input: ListUsersRequest,
131
- output: ListUsersResponse,
132
- errors: [SlackError, SlackRateLimited],
133
- protocol: SlackProtocol,
134
- retry: Retry.Retry,
135
- }));
136
- /** Update the list of users for a user group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_users` — Value passed for `users` was empty or invalid. - `failed_for_some_users` — User(s) are not in the workspace where this usergroup exists - `missing_argument` — A required argument is missing. - `no_users_provided` — Either the `users` field wasn't provided or an empty value was passed. - `permission_denied` — The user does not have permission to update the list of users for a user group. Check workspace settings to confirm whether the calling user has permission. - `plan_upgrade_required` — This workspace does not have access to user groups, as that feature is only available on Standard and above plans. - `subteam_max_users_exceeded` — Exceeds maximum supported number of users per subteam. - `cannot_modify_role_admin` — The user does not have permission to modify the roles admin role. See https://docs.slack.dev/reference/methods/usergroups.users.update */
137
- export const updateUser = /*@__PURE__*/ API.make(() => ({
138
- input: UpdateUserRequest,
139
- output: UpdateUserResponse,
140
- errors: [SlackError, SlackRateLimited],
141
- protocol: SlackProtocol,
142
- retry: Retry.Retry,
143
- }));
144
- /** Update an existing User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `paid_teams_only` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `permission_denied` — The user does not have permission to update the User Group. - `too_many_linked_channels` — This request exceeds the number of channels we supporting linking to a single usergroup. - `user_channel_limit_exceeded` — Adding these channels would cause one or more members to exceed their channel limit. See https://docs.slack.dev/reference/methods/usergroups.update */
145
- export const updateUsergroup = /*@__PURE__*/ API.make(() => ({
146
- input: UpdateUsergroupRequest,
147
- output: UpdateUsergroupResponse,
148
- errors: [SlackError, SlackRateLimited],
149
- protocol: SlackProtocol,
150
- retry: Retry.Retry,
151
- }));
152
- //# sourceMappingURL=usergroups.js.map
9
+ const __0 = __L.at;
10
+ const __1 = T.Http;
11
+ const __2 = S.optional;
12
+ const __3 = S.String;
13
+ const __4 = S.Boolean;
14
+ const __5 = S.Struct;
15
+ const __6 = S.suspend;
16
+ const __7 = S.Unknown;
17
+ const __8 = S.Array;
18
+ const __9 = T.Query;
19
+
20
+ export const createUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"CreateUsergroupRequest";$6({channels:$3(#2:0),additional_channels:$3(#2:0),description:$3($4),handle:$3($4),include_count:$3($5),name:$4,team_id:$3($4),enable_section:$3($5)}).pipe($1({method:"POST",uri:"/usergroups.create",code:200}))', [__0, __1, __d1, __2, __3, __4, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createUsergroup, i));
21
+
22
+ export const disableUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"DisableUsergroupRequest";$5({include_count:$3($2),team_id:$3($4),usergroup:$4}).pipe($1({method:"POST",uri:"/usergroups.disable",code:200}))', [__0, __1, __4, __2, __3, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(disableUsergroup, i));
23
+
24
+ export const enableUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"EnableUsergroupRequest";$5({include_count:$3($2),team_id:$3($4),usergroup:$4}).pipe($1({method:"POST",uri:"/usergroups.enable",code:200}))', [__0, __1, __4, __2, __3, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(enableUsergroup, i));
25
+
26
+ export const listUsergroups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$7(>3)@"ListUsergroupsRequest";$7(>4)@"ListUsergroupsResponse";$6({include_count:$4($3.pipe($2())),include_disabled:$4($3.pipe($2())),include_users:$4($3.pipe($2())),team_id:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/usergroups.list",code:200}));$6({ok:$3,usergroups:#8:0})', [__0, __1, __9, __4, __2, __3, __5, __6, __d2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listUsergroups, i));
27
+
28
+ export const listUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$7(>3)@"ListUsersRequest";$7(>4)@"ListUsersResponse";$6({include_disabled:$4($3.pipe($2())),usergroup:$5.pipe($2()),team_id:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/usergroups.users.list",code:200}));$6({ok:$3,users:#8:0})', [__0, __1, __9, __4, __2, __3, __5, __6, __d2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listUsers, i));
29
+
30
+ export const updateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"UpdateUserRequest";$6({include_count:$3($2),team_id:$3($4),usergroup:$4,users:#5:0,additional_channels:$3(#5:0),is_shared:$3($2)}).pipe($1({method:"POST",uri:"/usergroups.users.update",code:200}))', [__0, __1, __4, __2, __3, __d1, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateUser, i));
31
+
32
+ export const updateUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$7(>3)@"UpdateUsergroupRequest";$7(>4)@"UpdateUsergroupResponse";$6({channels:$3(#2:0),additional_channels:$3(#2:0),description:$3($4),handle:$3($4),include_count:$3($5),name:$3($4),team_id:$3($4),usergroup:$4,enable_section:$3($5)}).pipe($1({method:"POST",uri:"/usergroups.update",code:200}));$6({ok:$5,usergroup:$8,channel_limit_user_ids:$3(#2:0)})', [__0, __1, __d1, __2, __3, __4, __5, __6, __7, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateUsergroup, i));
33
+ // Schema builders: each runs one schema initializer, on that schema's first use.
34
+ // Schema table: entry i is schema j of builder f, made on first reach.
35
+
36
+
37
+ // Shared schema data (see `op` in core/api).
38
+ function __d0() {
39
+ return ['$4(>1)@"CreateUsergroupResponse";$3({ok:$1,usergroup:$2})', [__0, __4, __7, __5, __6]];
40
+ }
41
+ function __d1() {
42
+ return ['$2($1)', [__0, __3, __8]];
43
+ }
44
+ function __d2() {
45
+ return ['$2($1)', [__0, __7, __8]];
46
+ }