@distilled.cloud/slack 0.0.0 → 1.0.0-rc.9

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 (212) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +27 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +53 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +83 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +59 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +17 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +17 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +31 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +31 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +230 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +52 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +45 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/admin.d.ts +2796 -0
  27. package/lib/services/admin.d.ts.map +1 -0
  28. package/lib/services/admin.js +3225 -0
  29. package/lib/services/admin.js.map +1 -0
  30. package/lib/services/api.d.ts +23 -0
  31. package/lib/services/api.d.ts.map +1 -0
  32. package/lib/services/api.js +26 -0
  33. package/lib/services/api.js.map +1 -0
  34. package/lib/services/apps.d.ts +568 -0
  35. package/lib/services/apps.d.ts.map +1 -0
  36. package/lib/services/apps.js +584 -0
  37. package/lib/services/apps.js.map +1 -0
  38. package/lib/services/assistant.d.ts +290 -0
  39. package/lib/services/assistant.d.ts.map +1 -0
  40. package/lib/services/assistant.js +232 -0
  41. package/lib/services/assistant.js.map +1 -0
  42. package/lib/services/auth.d.ts +90 -0
  43. package/lib/services/auth.d.ts.map +1 -0
  44. package/lib/services/auth.js +114 -0
  45. package/lib/services/auth.js.map +1 -0
  46. package/lib/services/blocks.d.ts +31 -0
  47. package/lib/services/blocks.d.ts.map +1 -0
  48. package/lib/services/blocks.js +31 -0
  49. package/lib/services/blocks.js.map +1 -0
  50. package/lib/services/bookmarks.d.ts +91 -0
  51. package/lib/services/bookmarks.d.ts.map +1 -0
  52. package/lib/services/bookmarks.js +98 -0
  53. package/lib/services/bookmarks.js.map +1 -0
  54. package/lib/services/bots.d.ts +60 -0
  55. package/lib/services/bots.d.ts.map +1 -0
  56. package/lib/services/bots.js +68 -0
  57. package/lib/services/bots.js.map +1 -0
  58. package/lib/services/calls.d.ts +124 -0
  59. package/lib/services/calls.d.ts.map +1 -0
  60. package/lib/services/calls.js +136 -0
  61. package/lib/services/calls.js.map +1 -0
  62. package/lib/services/canvases.d.ts +152 -0
  63. package/lib/services/canvases.d.ts.map +1 -0
  64. package/lib/services/canvases.js +152 -0
  65. package/lib/services/canvases.js.map +1 -0
  66. package/lib/services/chat.d.ts +525 -0
  67. package/lib/services/chat.d.ts.map +1 -0
  68. package/lib/services/chat.js +436 -0
  69. package/lib/services/chat.js.map +1 -0
  70. package/lib/services/conversations.d.ts +642 -0
  71. package/lib/services/conversations.d.ts.map +1 -0
  72. package/lib/services/conversations.js +769 -0
  73. package/lib/services/conversations.js.map +1 -0
  74. package/lib/services/dialog.d.ts +20 -0
  75. package/lib/services/dialog.d.ts.map +1 -0
  76. package/lib/services/dialog.js +27 -0
  77. package/lib/services/dialog.js.map +1 -0
  78. package/lib/services/dnd.d.ts +94 -0
  79. package/lib/services/dnd.d.ts.map +1 -0
  80. package/lib/services/dnd.js +111 -0
  81. package/lib/services/dnd.js.map +1 -0
  82. package/lib/services/emoji.d.ts +35 -0
  83. package/lib/services/emoji.d.ts.map +1 -0
  84. package/lib/services/emoji.js +40 -0
  85. package/lib/services/emoji.js.map +1 -0
  86. package/lib/services/entity.d.ts +93 -0
  87. package/lib/services/entity.d.ts.map +1 -0
  88. package/lib/services/entity.js +89 -0
  89. package/lib/services/entity.js.map +1 -0
  90. package/lib/services/files.d.ts +473 -0
  91. package/lib/services/files.d.ts.map +1 -0
  92. package/lib/services/files.js +510 -0
  93. package/lib/services/files.js.map +1 -0
  94. package/lib/services/functions.d.ts +235 -0
  95. package/lib/services/functions.d.ts.map +1 -0
  96. package/lib/services/functions.js +261 -0
  97. package/lib/services/functions.js.map +1 -0
  98. package/lib/services/index.d.ts +35 -0
  99. package/lib/services/index.d.ts.map +1 -0
  100. package/lib/services/index.js +36 -0
  101. package/lib/services/index.js.map +1 -0
  102. package/lib/services/lists.d.ts +300 -0
  103. package/lib/services/lists.d.ts.map +1 -0
  104. package/lib/services/lists.js +366 -0
  105. package/lib/services/lists.js.map +1 -0
  106. package/lib/services/migration.d.ts +34 -0
  107. package/lib/services/migration.d.ts.map +1 -0
  108. package/lib/services/migration.js +36 -0
  109. package/lib/services/migration.js.map +1 -0
  110. package/lib/services/oauth.d.ts +307 -0
  111. package/lib/services/oauth.d.ts.map +1 -0
  112. package/lib/services/oauth.js +278 -0
  113. package/lib/services/oauth.js.map +1 -0
  114. package/lib/services/openid.d.ts +86 -0
  115. package/lib/services/openid.d.ts.map +1 -0
  116. package/lib/services/openid.js +93 -0
  117. package/lib/services/openid.js.map +1 -0
  118. package/lib/services/pins.d.ts +64 -0
  119. package/lib/services/pins.d.ts.map +1 -0
  120. package/lib/services/pins.js +75 -0
  121. package/lib/services/pins.js.map +1 -0
  122. package/lib/services/reactions.d.ts +108 -0
  123. package/lib/services/reactions.d.ts.map +1 -0
  124. package/lib/services/reactions.js +119 -0
  125. package/lib/services/reactions.js.map +1 -0
  126. package/lib/services/reminders.d.ts +89 -0
  127. package/lib/services/reminders.d.ts.map +1 -0
  128. package/lib/services/reminders.js +109 -0
  129. package/lib/services/reminders.js.map +1 -0
  130. package/lib/services/rtm.d.ts +68 -0
  131. package/lib/services/rtm.d.ts.map +1 -0
  132. package/lib/services/rtm.js +74 -0
  133. package/lib/services/rtm.js.map +1 -0
  134. package/lib/services/search.d.ts +239 -0
  135. package/lib/services/search.d.ts.map +1 -0
  136. package/lib/services/search.js +190 -0
  137. package/lib/services/search.js.map +1 -0
  138. package/lib/services/stars.d.ts +126 -0
  139. package/lib/services/stars.d.ts.map +1 -0
  140. package/lib/services/stars.js +145 -0
  141. package/lib/services/stars.js.map +1 -0
  142. package/lib/services/team.d.ts +309 -0
  143. package/lib/services/team.d.ts.map +1 -0
  144. package/lib/services/team.js +336 -0
  145. package/lib/services/team.js.map +1 -0
  146. package/lib/services/tooling.d.ts +31 -0
  147. package/lib/services/tooling.d.ts.map +1 -0
  148. package/lib/services/tooling.js +38 -0
  149. package/lib/services/tooling.js.map +1 -0
  150. package/lib/services/usergroups.d.ts +183 -0
  151. package/lib/services/usergroups.d.ts.map +1 -0
  152. package/lib/services/usergroups.js +180 -0
  153. package/lib/services/usergroups.js.map +1 -0
  154. package/lib/services/users.d.ts +246 -0
  155. package/lib/services/users.d.ts.map +1 -0
  156. package/lib/services/users.js +309 -0
  157. package/lib/services/users.js.map +1 -0
  158. package/lib/services/views.d.ts +84 -0
  159. package/lib/services/views.d.ts.map +1 -0
  160. package/lib/services/views.js +95 -0
  161. package/lib/services/views.js.map +1 -0
  162. package/lib/services/workflows.d.ts +231 -0
  163. package/lib/services/workflows.d.ts.map +1 -0
  164. package/lib/services/workflows.js +240 -0
  165. package/lib/services/workflows.js.map +1 -0
  166. package/lib/traits.d.ts +11 -0
  167. package/lib/traits.d.ts.map +1 -0
  168. package/lib/traits.js +12 -0
  169. package/lib/traits.js.map +1 -0
  170. package/package.json +82 -4
  171. package/src/credentials.ts +86 -0
  172. package/src/errors.ts +101 -0
  173. package/src/index.ts +20 -0
  174. package/src/pagination.ts +35 -0
  175. package/src/protocol.ts +326 -0
  176. package/src/retry.ts +76 -0
  177. package/src/services/admin.ts +7729 -0
  178. package/src/services/api.ts +58 -0
  179. package/src/services/apps.ts +1441 -0
  180. package/src/services/assistant.ts +639 -0
  181. package/src/services/auth.ts +241 -0
  182. package/src/services/blocks.ts +80 -0
  183. package/src/services/bookmarks.ts +223 -0
  184. package/src/services/bots.ts +144 -0
  185. package/src/services/calls.ts +318 -0
  186. package/src/services/canvases.ts +392 -0
  187. package/src/services/chat.ts +1191 -0
  188. package/src/services/conversations.ts +1754 -0
  189. package/src/services/dialog.ts +55 -0
  190. package/src/services/dnd.ts +246 -0
  191. package/src/services/emoji.ts +91 -0
  192. package/src/services/entity.ts +225 -0
  193. package/src/services/files.ts +1192 -0
  194. package/src/services/functions.ts +647 -0
  195. package/src/services/index.ts +35 -0
  196. package/src/services/lists.ts +832 -0
  197. package/src/services/migration.ts +85 -0
  198. package/src/services/oauth.ts +658 -0
  199. package/src/services/openid.ts +243 -0
  200. package/src/services/pins.ts +167 -0
  201. package/src/services/reactions.ts +272 -0
  202. package/src/services/reminders.ts +240 -0
  203. package/src/services/rtm.ts +162 -0
  204. package/src/services/search.ts +507 -0
  205. package/src/services/stars.ts +323 -0
  206. package/src/services/team.ts +836 -0
  207. package/src/services/tooling.ts +78 -0
  208. package/src/services/usergroups.ts +441 -0
  209. package/src/services/users.ts +685 -0
  210. package/src/services/views.ts +212 -0
  211. package/src/services/workflows.ts +607 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usergroups.d.ts","sourceRoot":"","sources":["../../src/services/usergroups.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAIxB,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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,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,CAOb,CAAC"}
@@ -0,0 +1,180 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.js";
5
+ import { SlackProtocol, } from "../protocol.js";
6
+ import { SlackError, SlackRateLimited } from "../errors.js";
7
+ import * as Retry from "../retry.js";
8
+ export const CreateUsergroupRequestChannelsList = /*@__PURE__*/ S.Array(S.String);
9
+ export const CreateUsergroupRequestAdditionalChannelsList =
10
+ /*@__PURE__*/ S.Array(S.String);
11
+ export const CreateUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
12
+ channels: S.optional(CreateUsergroupRequestChannelsList),
13
+ additional_channels: S.optional(CreateUsergroupRequestAdditionalChannelsList),
14
+ description: S.optional(S.String),
15
+ handle: S.optional(S.String),
16
+ include_count: S.optional(S.Boolean),
17
+ name: S.String,
18
+ team_id: S.optional(S.String),
19
+ enable_section: S.optional(S.Boolean),
20
+ }).pipe(T.Http({ method: "POST", uri: "/usergroups.create", code: 200 }))).annotate({
21
+ identifier: "CreateUsergroupRequest",
22
+ });
23
+ export const CreateUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
24
+ ok: S.Boolean,
25
+ usergroup: S.Unknown,
26
+ })).annotate({
27
+ identifier: "CreateUsergroupResponse",
28
+ });
29
+ export const DisableUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
30
+ include_count: S.optional(S.Boolean),
31
+ team_id: S.optional(S.String),
32
+ usergroup: S.String,
33
+ }).pipe(T.Http({ method: "POST", uri: "/usergroups.disable", code: 200 }))).annotate({
34
+ identifier: "DisableUsergroupRequest",
35
+ });
36
+ export const DisableUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
37
+ ok: S.Boolean,
38
+ usergroup: S.Unknown,
39
+ })).annotate({
40
+ identifier: "DisableUsergroupResponse",
41
+ });
42
+ export const EnableUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
43
+ include_count: S.optional(S.Boolean),
44
+ team_id: S.optional(S.String),
45
+ usergroup: S.String,
46
+ }).pipe(T.Http({ method: "POST", uri: "/usergroups.enable", code: 200 }))).annotate({
47
+ identifier: "EnableUsergroupRequest",
48
+ });
49
+ export const EnableUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
50
+ ok: S.Boolean,
51
+ usergroup: S.Unknown,
52
+ })).annotate({
53
+ identifier: "EnableUsergroupResponse",
54
+ });
55
+ export const ListUsergroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
56
+ include_count: S.optional(S.Boolean.pipe(T.Query())),
57
+ include_disabled: S.optional(S.Boolean.pipe(T.Query())),
58
+ include_users: S.optional(S.Boolean.pipe(T.Query())),
59
+ team_id: S.optional(S.String.pipe(T.Query())),
60
+ }).pipe(T.Http({ method: "GET", uri: "/usergroups.list", code: 200 }))).annotate({
61
+ identifier: "ListUsergroupsRequest",
62
+ });
63
+ export const ListUsergroupsResponseUsergroupsList = /*@__PURE__*/ S.Array(S.Unknown);
64
+ export const ListUsergroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
65
+ ok: S.Boolean,
66
+ usergroups: ListUsergroupsResponseUsergroupsList,
67
+ })).annotate({
68
+ identifier: "ListUsergroupsResponse",
69
+ });
70
+ export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
71
+ include_disabled: S.optional(S.Boolean.pipe(T.Query())),
72
+ usergroup: S.String.pipe(T.Query()),
73
+ team_id: S.optional(S.String.pipe(T.Query())),
74
+ }).pipe(T.Http({ method: "GET", uri: "/usergroups.users.list", code: 200 }))).annotate({
75
+ identifier: "ListUsersRequest",
76
+ });
77
+ export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(S.Unknown);
78
+ export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
79
+ ok: S.Boolean,
80
+ users: ListUsersResponseUsersList,
81
+ })).annotate({
82
+ identifier: "ListUsersResponse",
83
+ });
84
+ export const UpdateUserRequestUsersList = /*@__PURE__*/ S.Array(S.String);
85
+ export const UpdateUserRequestAdditionalChannelsList = /*@__PURE__*/ S.Array(S.String);
86
+ export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
87
+ include_count: S.optional(S.Boolean),
88
+ team_id: S.optional(S.String),
89
+ usergroup: S.String,
90
+ users: UpdateUserRequestUsersList,
91
+ additional_channels: S.optional(UpdateUserRequestAdditionalChannelsList),
92
+ is_shared: S.optional(S.Boolean),
93
+ }).pipe(T.Http({ method: "POST", uri: "/usergroups.users.update", code: 200 }))).annotate({
94
+ identifier: "UpdateUserRequest",
95
+ });
96
+ export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
97
+ ok: S.Boolean,
98
+ usergroup: S.Unknown,
99
+ })).annotate({
100
+ identifier: "UpdateUserResponse",
101
+ });
102
+ export const UpdateUsergroupRequestChannelsList = /*@__PURE__*/ S.Array(S.String);
103
+ export const UpdateUsergroupRequestAdditionalChannelsList =
104
+ /*@__PURE__*/ S.Array(S.String);
105
+ export const UpdateUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
106
+ channels: S.optional(UpdateUsergroupRequestChannelsList),
107
+ additional_channels: S.optional(UpdateUsergroupRequestAdditionalChannelsList),
108
+ description: S.optional(S.String),
109
+ handle: S.optional(S.String),
110
+ include_count: S.optional(S.Boolean),
111
+ name: S.optional(S.String),
112
+ team_id: S.optional(S.String),
113
+ usergroup: S.String,
114
+ enable_section: S.optional(S.Boolean),
115
+ }).pipe(T.Http({ method: "POST", uri: "/usergroups.update", code: 200 }))).annotate({
116
+ identifier: "UpdateUsergroupRequest",
117
+ });
118
+ export const UpdateUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
119
+ ok: S.Boolean,
120
+ usergroup: S.Unknown,
121
+ })).annotate({
122
+ identifier: "UpdateUsergroupResponse",
123
+ });
124
+ /** 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 */
125
+ export const createUsergroup = /*@__PURE__*/ API.make(() => ({
126
+ input: CreateUsergroupRequest,
127
+ output: CreateUsergroupResponse,
128
+ errors: [SlackError, SlackRateLimited],
129
+ protocol: SlackProtocol,
130
+ retry: Retry.Retry,
131
+ }));
132
+ /** 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 */
133
+ export const disableUsergroup = /*@__PURE__*/ API.make(() => ({
134
+ input: DisableUsergroupRequest,
135
+ output: DisableUsergroupResponse,
136
+ errors: [SlackError, SlackRateLimited],
137
+ protocol: SlackProtocol,
138
+ retry: Retry.Retry,
139
+ }));
140
+ /** 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 */
141
+ export const enableUsergroup = /*@__PURE__*/ API.make(() => ({
142
+ input: EnableUsergroupRequest,
143
+ output: EnableUsergroupResponse,
144
+ errors: [SlackError, SlackRateLimited],
145
+ protocol: SlackProtocol,
146
+ retry: Retry.Retry,
147
+ }));
148
+ /** 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 */
149
+ export const listUsergroups = /*@__PURE__*/ API.make(() => ({
150
+ input: ListUsergroupsRequest,
151
+ output: ListUsergroupsResponse,
152
+ errors: [SlackError, SlackRateLimited],
153
+ protocol: SlackProtocol,
154
+ retry: Retry.Retry,
155
+ }));
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 */
157
+ export const listUsers = /*@__PURE__*/ API.make(() => ({
158
+ input: ListUsersRequest,
159
+ output: ListUsersResponse,
160
+ errors: [SlackError, SlackRateLimited],
161
+ protocol: SlackProtocol,
162
+ retry: Retry.Retry,
163
+ }));
164
+ /** 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. See https://docs.slack.dev/reference/methods/usergroups.users.update */
165
+ export const updateUser = /*@__PURE__*/ API.make(() => ({
166
+ input: UpdateUserRequest,
167
+ output: UpdateUserResponse,
168
+ errors: [SlackError, SlackRateLimited],
169
+ protocol: SlackProtocol,
170
+ retry: Retry.Retry,
171
+ }));
172
+ /** 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. See https://docs.slack.dev/reference/methods/usergroups.update */
173
+ export const updateUsergroup = /*@__PURE__*/ API.make(() => ({
174
+ input: UpdateUsergroupRequest,
175
+ output: UpdateUsergroupResponse,
176
+ errors: [SlackError, SlackRateLimited],
177
+ protocol: SlackProtocol,
178
+ retry: Retry.Retry,
179
+ }));
180
+ //# sourceMappingURL=usergroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usergroups.js","sourceRoot":"","sources":["../../src/services/usergroups.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAC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CAAC"}
@@ -0,0 +1,246 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
+ export type { SlackOpError, SlackOpContext };
5
+ export interface DeletePhotoRequest {
6
+ }
7
+ export declare const DeletePhotoRequest: S.Schema<DeletePhotoRequest>;
8
+ export interface DeletePhotoResponse {
9
+ /** Always `true` (a failed call raises a typed error instead). */
10
+ ok: boolean;
11
+ }
12
+ export declare const DeletePhotoResponse: S.Schema<DeletePhotoResponse>;
13
+ export interface GetPresenceRequest {
14
+ /** User to get presence info on. Defaults to the authed user. */
15
+ user?: string;
16
+ }
17
+ export declare const GetPresenceRequest: S.Schema<GetPresenceRequest>;
18
+ export interface GetPresenceResponse {
19
+ /** Always `true` (a failed call raises a typed error instead). */
20
+ ok: boolean;
21
+ last_activity?: number;
22
+ manual_away?: boolean;
23
+ presence: string;
24
+ online?: boolean;
25
+ connection_count?: number;
26
+ auto_away?: boolean;
27
+ }
28
+ export declare const GetPresenceResponse: S.Schema<GetPresenceResponse>;
29
+ export interface GetProfileRequest {
30
+ /** Include labels for each ID in custom profile fields. Using this parameter will heavily rate-limit your requests and is not recommended. */
31
+ include_labels?: boolean;
32
+ /** User to retrieve profile info for */
33
+ user?: string;
34
+ }
35
+ export declare const GetProfileRequest: S.Schema<GetProfileRequest>;
36
+ export interface GetProfileResponse {
37
+ /** Always `true` (a failed call raises a typed error instead). */
38
+ ok: boolean;
39
+ profile: unknown;
40
+ }
41
+ export declare const GetProfileResponse: S.Schema<GetProfileResponse>;
42
+ export interface ListUsersRequest {
43
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more detail. */
44
+ cursor?: string;
45
+ /** Set this to `true` to receive the locale for users. Defaults to `false` */
46
+ include_locale?: boolean;
47
+ /** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. Providing no `limit` value will result in Slack attempting to deliver you the entire result set. If the collection is too large you may experience `limit_required` or HTTP 500 errors. */
48
+ limit?: number;
49
+ /** encoded team id to list users in, required if org token is used */
50
+ team_id?: string;
51
+ }
52
+ export declare const ListUsersRequest: S.Schema<ListUsersRequest>;
53
+ export type ListUsersResponseMembersList = Array<unknown>;
54
+ export declare const ListUsersResponseMembersList: S.Schema<ListUsersResponseMembersList>;
55
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
56
+ export interface ListUsersResponseResponseMetadata {
57
+ /** Cursor for the next page — pass as `cursor` on the next call. */
58
+ next_cursor?: string;
59
+ }
60
+ export declare const ListUsersResponseResponseMetadata: S.Schema<ListUsersResponseResponseMetadata>;
61
+ export interface ListUsersResponse {
62
+ /** Always `true` (a failed call raises a typed error instead). */
63
+ ok: boolean;
64
+ members: ListUsersResponseMembersList;
65
+ cache_ts: number;
66
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
67
+ response_metadata?: ListUsersResponseResponseMetadata;
68
+ offset?: string;
69
+ }
70
+ export declare const ListUsersResponse: S.Schema<ListUsersResponse>;
71
+ export interface LookupByEmailRequest {
72
+ /** An email address belonging to a user in the workspace */
73
+ email: string;
74
+ }
75
+ export declare const LookupByEmailRequest: S.Schema<LookupByEmailRequest>;
76
+ export interface LookupByEmailResponse {
77
+ /** Always `true` (a failed call raises a typed error instead). */
78
+ ok: boolean;
79
+ user: unknown;
80
+ }
81
+ export declare const LookupByEmailResponse: S.Schema<LookupByEmailResponse>;
82
+ export interface LookupDiscoverableContactRequest {
83
+ email: string;
84
+ }
85
+ export declare const LookupDiscoverableContactRequest: S.Schema<LookupDiscoverableContactRequest>;
86
+ export interface LookupDiscoverableContactResponse {
87
+ /** Always `true` (a failed call raises a typed error instead). */
88
+ ok: boolean;
89
+ is_discoverable: boolean;
90
+ }
91
+ export declare const LookupDiscoverableContactResponse: S.Schema<LookupDiscoverableContactResponse>;
92
+ export interface SetActiveRequest {
93
+ }
94
+ export declare const SetActiveRequest: S.Schema<SetActiveRequest>;
95
+ export interface SetActiveResponse {
96
+ /** Always `true` (a failed call raises a typed error instead). */
97
+ ok: boolean;
98
+ }
99
+ export declare const SetActiveResponse: S.Schema<SetActiveResponse>;
100
+ export interface SetPhotoRequest {
101
+ /** Width/height of crop box (always square) */
102
+ crop_w?: string;
103
+ /** X coordinate of top-left corner of crop box */
104
+ crop_x?: string;
105
+ /** Y coordinate of top-left corner of crop box */
106
+ crop_y?: string;
107
+ /** File contents via `multipart/form-data`. */
108
+ image?: unknown;
109
+ }
110
+ export declare const SetPhotoRequest: S.Schema<SetPhotoRequest>;
111
+ export type SetPhotoResponseProfileMap = {
112
+ [key: string]: unknown | undefined;
113
+ };
114
+ export declare const SetPhotoResponseProfileMap: S.Schema<SetPhotoResponseProfileMap>;
115
+ export interface SetPhotoResponse {
116
+ /** Always `true` (a failed call raises a typed error instead). */
117
+ ok: boolean;
118
+ profile: SetPhotoResponseProfileMap;
119
+ }
120
+ export declare const SetPhotoResponse: S.Schema<SetPhotoResponse>;
121
+ /** Either `auto` or `away` */
122
+ export type SetPresenceRequestPresence = "auto" | "away";
123
+ export declare const SetPresenceRequestPresence: any;
124
+ export interface SetPresenceRequest {
125
+ /** Either `auto` or `away` */
126
+ presence: SetPresenceRequestPresence | (string & {});
127
+ }
128
+ export declare const SetPresenceRequest: S.Schema<SetPresenceRequest>;
129
+ export interface SetPresenceResponse {
130
+ /** Always `true` (a failed call raises a typed error instead). */
131
+ ok: boolean;
132
+ }
133
+ export declare const SetPresenceResponse: S.Schema<SetPresenceResponse>;
134
+ export interface SetProfileRequest {
135
+ /** Name of a single key to set. Usable only if `profile` is not passed. */
136
+ name?: string;
137
+ /** Collection of key:value pairs presented as a URL-encoded JSON hash. At most 50 fields may be set. Each field name is limited to 255 characters. */
138
+ profile?: string;
139
+ /** ID of user to change. This argument may only be specified by admins on paid teams. */
140
+ user?: string;
141
+ /** Value to set a single key to. Usable only if `profile` is not passed. */
142
+ value?: string;
143
+ }
144
+ export declare const SetProfileRequest: S.Schema<SetProfileRequest>;
145
+ export interface SetProfileResponse {
146
+ /** Always `true` (a failed call raises a typed error instead). */
147
+ ok: boolean;
148
+ username: string;
149
+ profile: unknown;
150
+ email_pending?: string;
151
+ }
152
+ export declare const SetProfileResponse: S.Schema<SetProfileResponse>;
153
+ export interface UsersConversationsRequest {
154
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more detail. */
155
+ cursor?: string;
156
+ /** Set to `true` to exclude archived channels from the list */
157
+ exclude_archived?: boolean;
158
+ /** Set to `true` to exclude muted channels from the list */
159
+ exclude_muted?: boolean;
160
+ /** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer with a max value of 999. */
161
+ limit?: number;
162
+ /** encoded team id to list conversations in, required if org token is used */
163
+ team_id?: string;
164
+ /** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im` */
165
+ types?: string;
166
+ /** Browse conversations by a specific user ID's membership. Non-public channels are restricted to those where the calling user shares membership. */
167
+ user?: string;
168
+ }
169
+ export declare const UsersConversationsRequest: S.Schema<UsersConversationsRequest>;
170
+ export type UsersConversationsResponseChannelsList = Array<unknown>;
171
+ export declare const UsersConversationsResponseChannelsList: S.Schema<UsersConversationsResponseChannelsList>;
172
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
173
+ export type UsersConversationsResponseResponseMetadata = ListUsersResponseResponseMetadata;
174
+ export declare const UsersConversationsResponseResponseMetadata: S.Schema<ListUsersResponseResponseMetadata>;
175
+ export interface UsersConversationsResponse {
176
+ /** Always `true` (a failed call raises a typed error instead). */
177
+ ok: boolean;
178
+ channels: UsersConversationsResponseChannelsList;
179
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
180
+ response_metadata?: ListUsersResponseResponseMetadata;
181
+ }
182
+ export declare const UsersConversationsResponse: S.Schema<UsersConversationsResponse>;
183
+ export interface UsersIdentityRequest {
184
+ }
185
+ export declare const UsersIdentityRequest: S.Schema<UsersIdentityRequest>;
186
+ export interface UsersIdentityResponse {
187
+ /** Always `true` (a failed call raises a typed error instead). */
188
+ ok: boolean;
189
+ }
190
+ export declare const UsersIdentityResponse: S.Schema<UsersIdentityResponse>;
191
+ export interface UsersInfoRequest {
192
+ /** Set this to `true` to receive the locale for this user. Defaults to `false` */
193
+ include_locale?: boolean;
194
+ /** User to get info on */
195
+ user: string;
196
+ }
197
+ export declare const UsersInfoRequest: S.Schema<UsersInfoRequest>;
198
+ export type UsersInfoResponseUsersList = Array<unknown>;
199
+ export declare const UsersInfoResponseUsersList: S.Schema<UsersInfoResponseUsersList>;
200
+ export interface UsersInfoResponse {
201
+ /** Always `true` (a failed call raises a typed error instead). */
202
+ ok: boolean;
203
+ user?: unknown;
204
+ users?: UsersInfoResponseUsersList;
205
+ }
206
+ export declare const UsersInfoResponse: S.Schema<UsersInfoResponse>;
207
+ export type DeletePhotoError = SlackOpError;
208
+ /** Delete the user profile photo Required scopes — user: `users.profile:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred. See https://docs.slack.dev/reference/methods/users.deletePhoto */
209
+ export declare const deletePhoto: API.OperationMethod<DeletePhotoRequest, DeletePhotoResponse, DeletePhotoError, SlackOpContext>;
210
+ export type GetPresenceError = SlackOpError;
211
+ /** Gets user presence information. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/users.getPresence */
212
+ export declare const getPresence: API.OperationMethod<GetPresenceRequest, GetPresenceResponse, GetPresenceError, SlackOpContext>;
213
+ export type GetProfileError = SlackOpError;
214
+ /** Retrieve a user's profile information, including their custom status. Required scopes — bot: `users.profile:read`; user: `users.profile:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `user_not_found` — Value passed for `user` was invalid. - `token_revoked` — The token being used is not valid. - `ratelimited` — You are attempting to call this method too frequently. See https://docs.slack.dev/reference/methods/users.profile.get */
215
+ export declare const getProfile: API.OperationMethod<GetProfileRequest, GetProfileResponse, GetProfileError, SlackOpContext>;
216
+ export type ListUsersError = SlackOpError;
217
+ /** Lists all users in a Slack team. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `limit_required` — For large teams a limit is required. - `missing_argument` — A required argument is missing. See https://docs.slack.dev/reference/methods/users.list */
218
+ export declare const listUsers: API.PaginatedOperationMethod<ListUsersRequest, ListUsersResponse, ListUsersError, SlackOpContext, unknown>;
219
+ export type LookupByEmailError = SlackOpError;
220
+ /** Find a user with an email address. Required scopes — bot: `users:read.email`; user: `users:read.email` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `enterprise_is_restricted` — This method was called with an inappropriate enterprise-level token. - `users_not_found` — Value passed for `user` was invalid. See https://docs.slack.dev/reference/methods/users.lookupByEmail */
221
+ export declare const lookupByEmail: API.OperationMethod<LookupByEmailRequest, LookupByEmailResponse, LookupByEmailError, SlackOpContext>;
222
+ export type LookupDiscoverableContactError = SlackOpError;
223
+ /** Look up an email address to see if someone is discoverable on Slack Required scopes — bot: `conversations.connect:manage`, `team:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` — user is not allowed to call this API - `ratelimited` — too many attempts - `invalid_arguments` — Invalid arguments (including exceeding character count) - `restricted_action` — user is restricted from calling this API - `not_an_enterprise` — The token does not belong to an enterprise. See https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup */
224
+ export declare const lookupDiscoverableContact: API.OperationMethod<LookupDiscoverableContactRequest, LookupDiscoverableContactResponse, LookupDiscoverableContactError, SlackOpContext>;
225
+ export type SetActiveError = SlackOpError;
226
+ /** Marked a user as active. Deprecated and non-functional. Required scopes — bot: `users:write`; user: `users:write` Rate limit tier: 2 See https://docs.slack.dev/reference/methods/users.setActive */
227
+ export declare const setActive: API.OperationMethod<SetActiveRequest, SetActiveResponse, SetActiveError, SlackOpContext>;
228
+ export type SetPhotoError = SlackOpError;
229
+ /** Set the user profile photo Required scopes — user: `users.profile:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_image` — The uploaded image could not be processed - try passing a JPEG, GIF or PNG - `internal_error` — An unexpected error occurred. - `too_large` — The uploaded image had excessive dimensions - `too_many_frames` — An animated GIF with too many frames was uploaded See https://docs.slack.dev/reference/methods/users.setPhoto */
230
+ export declare const setPhoto: API.OperationMethod<SetPhotoRequest, SetPhotoResponse, SetPhotoError, SlackOpContext>;
231
+ export type SetPresenceError = SlackOpError;
232
+ /** Manually sets user presence. Required scopes — bot: `users:write`; user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_presence` — Value passed for `presence` was invalid. See https://docs.slack.dev/reference/methods/users.setPresence */
233
+ export declare const setPresence: API.OperationMethod<SetPresenceRequest, SetPresenceResponse, SetPresenceError, SlackOpContext>;
234
+ export type SetProfileError = SlackOpError;
235
+ /** Set a user's profile information, including custom status. Required scopes — user: `users.profile:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cannot_update_admin_user` — Only a primary owner can update the profile of an admin. - `email_taken` — email taken - `invalid_profile` — Profile object passed in is not valid JSON (make sure it is URL encoded!). - `must_clear_both_status_text_and_status_emoji` — Clearing the status requires setting both `status_text` and `status_emoji` to ''. - `name_not_allowed` — name cannot contain URL. - `not_admin` — Only admins can update the profile of another user. Some fields, like `email` may only be updated by an admin. - `not_app_admin` — Only team owners and selected members can update the profile of a bot user. - `partial_profile_set_failed` — Failed to set user profile. - `profile_set_failed` — Failed to set user profile. - `reserved_name` — First or last name are reserved. - `sudo_required` — Request requires sudo session. - `too_long` — You attempted to set a custom status but it was longer than the maximum allowed, 100. - `permission_denied` — Permission denied. - `username_same` — Username is the same as the current username. - `invalid_emoji_not_allowed` — Invalid emoji not allowed. - `invalid_ooo_message` — Invalid Out of Office message. - `invalid_starts_with_at` — Name cannot start with @. See https://docs.slack.dev/reference/methods/users.profile.set */
236
+ export declare const setProfile: API.OperationMethod<SetProfileRequest, SetProfileResponse, SetProfileError, SlackOpContext>;
237
+ export type UsersConversationsError = SlackOpError;
238
+ /** List conversations the calling user is a member of. Required scopes — bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_limit` — Value passed for `limit` is not understood. - `invalid_types` — Value passed for `type` could not be used based on the method's capabilities or the permission scopes granted to the used token. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_argument` — A required argument is missing. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/users.conversations */
239
+ export declare const usersConversations: API.PaginatedOperationMethod<UsersConversationsRequest, UsersConversationsResponse, UsersConversationsError, SlackOpContext, unknown>;
240
+ export type UsersIdentityError = SlackOpError;
241
+ /** Get a user's identity. Required scopes — user: `identity:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal error - `invalid_user_id` — Invalid user id provided - `email_not_verified` — user email has not been verified See https://docs.slack.dev/reference/methods/users.identity */
242
+ export declare const usersIdentity: API.OperationMethod<UsersIdentityRequest, UsersIdentityResponse, UsersIdentityError, SlackOpContext>;
243
+ export type UsersInfoError = SlackOpError;
244
+ /** Gets information about a user. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `too_many_users` — Too many users. - `user_not_found` — Value passed for `user` was invalid. - `user_not_visible` — The requested user is not visible to the calling user See https://docs.slack.dev/reference/methods/users.info */
245
+ export declare const usersInfo: API.OperationMethod<UsersInfoRequest, UsersInfoResponse, UsersInfoError, SlackOpContext>;
246
+ //# sourceMappingURL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