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

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 +3217 -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 +256 -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 +333 -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 +238 -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 +7722 -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 +642 -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 +834 -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 +605 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1,307 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as Redacted from "effect/Redacted";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
5
+ export type { SlackOpError, SlackOpContext };
6
+ export interface OauthAccessRequest {
7
+ /** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
8
+ client_id?: string;
9
+ /** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
10
+ client_secret?: string | Redacted.Redacted<string>;
11
+ /** The `code` param returned via the OAuth callback. */
12
+ code?: string;
13
+ /** This must match the originally submitted URI (if one was sent). */
14
+ redirect_uri?: string;
15
+ /** Request the user to add your app only to a single channel. Only valid with a [legacy workspace app](https://docs.slack.dev/changelog/2021-03-workspace-apps-to-retire-in-august-2021). */
16
+ single_channel?: boolean;
17
+ }
18
+ export declare const OauthAccessRequest: S.Schema<OauthAccessRequest>;
19
+ export interface OauthAccessResponseAuthorizingUser {
20
+ user_id?: string;
21
+ app_home?: string | null;
22
+ }
23
+ export declare const OauthAccessResponseAuthorizingUser: S.Schema<OauthAccessResponseAuthorizingUser>;
24
+ export type OauthAccessResponseInstallerUser = OauthAccessResponseAuthorizingUser;
25
+ export declare const OauthAccessResponseInstallerUser: S.Schema<OauthAccessResponseAuthorizingUser>;
26
+ export type OauthAccessResponseScopesAppHomeList = Array<string>;
27
+ export declare const OauthAccessResponseScopesAppHomeList: S.Schema<OauthAccessResponseScopesAppHomeList>;
28
+ export type OauthAccessResponseScopesTeamList = Array<string>;
29
+ export declare const OauthAccessResponseScopesTeamList: S.Schema<OauthAccessResponseScopesTeamList>;
30
+ export type OauthAccessResponseScopesChannelList = Array<string>;
31
+ export declare const OauthAccessResponseScopesChannelList: S.Schema<OauthAccessResponseScopesChannelList>;
32
+ export type OauthAccessResponseScopesGroupList = Array<string>;
33
+ export declare const OauthAccessResponseScopesGroupList: S.Schema<OauthAccessResponseScopesGroupList>;
34
+ export type OauthAccessResponseScopesMpimList = Array<string>;
35
+ export declare const OauthAccessResponseScopesMpimList: S.Schema<OauthAccessResponseScopesMpimList>;
36
+ export type OauthAccessResponseScopesImList = Array<string>;
37
+ export declare const OauthAccessResponseScopesImList: S.Schema<OauthAccessResponseScopesImList>;
38
+ export interface OauthAccessResponseScopes {
39
+ app_home?: OauthAccessResponseScopesAppHomeList;
40
+ team?: OauthAccessResponseScopesTeamList;
41
+ channel?: OauthAccessResponseScopesChannelList;
42
+ group?: OauthAccessResponseScopesGroupList;
43
+ mpim?: OauthAccessResponseScopesMpimList;
44
+ im?: OauthAccessResponseScopesImList;
45
+ }
46
+ export declare const OauthAccessResponseScopes: S.Schema<OauthAccessResponseScopes>;
47
+ export interface OauthAccessResponseBot {
48
+ bot_user_id?: string;
49
+ bot_access_token?: string;
50
+ scope?: string;
51
+ }
52
+ export declare const OauthAccessResponseBot: S.Schema<OauthAccessResponseBot>;
53
+ export interface OauthAccessResponseUser {
54
+ name?: string;
55
+ id?: string;
56
+ email?: string;
57
+ image_24?: string;
58
+ image_32?: string;
59
+ image_48?: string;
60
+ image_72?: string;
61
+ image_192?: string;
62
+ image_512?: string;
63
+ scope?: string;
64
+ access_token?: string | Redacted.Redacted<string>;
65
+ token_type?: string;
66
+ }
67
+ export declare const OauthAccessResponseUser: S.Schema<OauthAccessResponseUser>;
68
+ export interface OauthAccessResponseTeam {
69
+ id?: string;
70
+ name?: string;
71
+ domain?: string;
72
+ image_34?: string;
73
+ image_44?: string;
74
+ image_68?: string;
75
+ image_88?: string;
76
+ image_102?: string;
77
+ image_132?: string;
78
+ image_230?: string;
79
+ image_default?: boolean;
80
+ image_original?: string;
81
+ }
82
+ export declare const OauthAccessResponseTeam: S.Schema<OauthAccessResponseTeam>;
83
+ export interface OauthAccessResponseIncomingWebhook {
84
+ channel?: string;
85
+ channel_id?: string;
86
+ configuration_url?: string;
87
+ url?: string;
88
+ }
89
+ export declare const OauthAccessResponseIncomingWebhook: S.Schema<OauthAccessResponseIncomingWebhook>;
90
+ export interface OauthAccessResponse {
91
+ /** Always `true` (a failed call raises a typed error instead). */
92
+ ok: boolean;
93
+ token_type?: string;
94
+ app_id?: string;
95
+ app_user_id?: string;
96
+ team_name?: string;
97
+ team_id: string;
98
+ access_token: string | Redacted.Redacted<string>;
99
+ authorizing_user?: OauthAccessResponseAuthorizingUser;
100
+ installer_user?: OauthAccessResponseAuthorizingUser;
101
+ scopes?: OauthAccessResponseScopes;
102
+ scope?: string;
103
+ user_id?: string;
104
+ bot?: OauthAccessResponseBot;
105
+ refresh_token?: string | Redacted.Redacted<string>;
106
+ expires_in?: number;
107
+ user?: OauthAccessResponseUser;
108
+ team?: OauthAccessResponseTeam;
109
+ enterprise_id?: string | null;
110
+ incoming_webhook?: OauthAccessResponseIncomingWebhook;
111
+ single_channel_id?: string;
112
+ }
113
+ export declare const OauthAccessResponse: S.Schema<OauthAccessResponse>;
114
+ export interface V2AccessRequest {
115
+ /** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
116
+ client_id?: string;
117
+ /** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
118
+ client_secret?: string | Redacted.Redacted<string>;
119
+ /** The `code` param returned via the OAuth callback. */
120
+ code?: string;
121
+ /** The code_verifier param used to generate the code_challenge originally. Used for PKCE. */
122
+ code_verifier?: string;
123
+ /** This must match the originally submitted URI (if one was sent). */
124
+ redirect_uri?: string;
125
+ /** The `grant_type` param as described in the OAuth spec. */
126
+ grant_type?: string;
127
+ /** The `refresh_token` param as described in the OAuth spec. */
128
+ refresh_token?: string | Redacted.Redacted<string>;
129
+ /** Identity assertion JWT authorization grant */
130
+ assertion?: string;
131
+ }
132
+ export declare const V2AccessRequest: S.Schema<V2AccessRequest>;
133
+ /** The type of access token. Only present if a bot token was requested at the start of the auth flow. */
134
+ export type V2AccessResponseTokenType = "granular_bot";
135
+ export declare const V2AccessResponseTokenType: any;
136
+ /** Details about the installing user, and the user token if one was requested at the start of the auth flow. */
137
+ export interface V2AccessResponseTeam {
138
+ /** ID of the team into which the app is being installed or re-installed. */
139
+ id: string;
140
+ /** Name of the team into which the app is being installed or re-installed. */
141
+ name?: string;
142
+ }
143
+ export declare const V2AccessResponseTeam: S.Schema<V2AccessResponseTeam>;
144
+ /** Details about the installing team, and the user token if one was requested at the start of the auth flow. */
145
+ export interface V2AccessResponseEnterprise {
146
+ /** ID of the enterprise into which the app is being installed or re-installed. */
147
+ id: string;
148
+ /** Name of the enterprise into which the app is being installed or re-installed. */
149
+ name?: string;
150
+ }
151
+ export declare const V2AccessResponseEnterprise: S.Schema<V2AccessResponseEnterprise>;
152
+ /** The type of the access token. Only present if a user token was requested at the start of the auth flow. */
153
+ export type V2AccessResponseAuthedUserTokenType = "user";
154
+ export declare const V2AccessResponseAuthedUserTokenType: any;
155
+ /** Details about the installing user, and the user token if one was requested at the start of the auth flow. */
156
+ export interface V2AccessResponseAuthedUser {
157
+ /** ID of the installing user. If a user token was requested, this is also the ID of the user to which the user token authenticates. */
158
+ id: string;
159
+ /** A user token. Only presented if requested at the start of the auth flow. */
160
+ access_token?: string | Redacted.Redacted<string>;
161
+ /** The type of the access token. Only present if a user token was requested at the start of the auth flow. */
162
+ token_type?: V2AccessResponseAuthedUserTokenType;
163
+ /** Comma-separated list of scopes granted to the user token. Only present if a user token was requested at the start of the auth flow. */
164
+ scope?: string;
165
+ /** Time until this credential expires, if it expires at all. */
166
+ expires_in?: number;
167
+ /** Refresh token for this credential. */
168
+ refresh_token?: string | Redacted.Redacted<string>;
169
+ }
170
+ export declare const V2AccessResponseAuthedUser: S.Schema<V2AccessResponseAuthedUser>;
171
+ /** Details about a newly-created incoming webhook. Only present if an incoming webhook was requested at the start of the auth flow. */
172
+ export interface V2AccessResponseIncomingWebhook {
173
+ /** Name of channel. */
174
+ channel: string;
175
+ /** Encoded ID of channel. */
176
+ channel_id: string;
177
+ /** URL for managing the webhook. */
178
+ configuration_url: string;
179
+ /** Endpoint for triggering the wehbook. */
180
+ url: string;
181
+ }
182
+ export declare const V2AccessResponseIncomingWebhook: S.Schema<V2AccessResponseIncomingWebhook>;
183
+ export interface V2AccessResponse {
184
+ /** Always `true` (a failed call raises a typed error instead). */
185
+ ok: boolean;
186
+ /** A bot access token. Only present if requested at the start of the auth flow. */
187
+ access_token?: string | Redacted.Redacted<string>;
188
+ /** The type of access token. Only present if a bot token was requested at the start of the auth flow. */
189
+ token_type?: V2AccessResponseTokenType;
190
+ /** Comma-separated list of scopes granted to the token. Only present if a bot token was requested at the start of the auth flow. */
191
+ scope?: string;
192
+ /** The user ID of the bot user corresponding to the token. Only present if a bot token was requested at the start of the auth flow. */
193
+ bot_user_id?: string;
194
+ /** The user ID of the bot user corresponding to the token. Only present during a refresh_token grant_type for a user access token. */
195
+ user_id?: string;
196
+ /** ID of the app being installed or re-installed. */
197
+ app_id: string;
198
+ /** Boolean flag indicating whether the generated token is Enterprise-level token or not. */
199
+ is_enterprise_install?: boolean;
200
+ /** Time until this credential expires, if it expires at all. */
201
+ expires_in?: number;
202
+ /** Refresh token for this credential. */
203
+ refresh_token?: string | Redacted.Redacted<string>;
204
+ team: V2AccessResponseTeam | null;
205
+ enterprise: V2AccessResponseEnterprise | null;
206
+ /** Details about the installing user, and the user token if one was requested at the start of the auth flow. */
207
+ authed_user?: V2AccessResponseAuthedUser;
208
+ /** Details about a newly-created incoming webhook. Only present if an incoming webhook was requested at the start of the auth flow. */
209
+ incoming_webhook?: V2AccessResponseIncomingWebhook;
210
+ }
211
+ export declare const V2AccessResponse: S.Schema<V2AccessResponse>;
212
+ export interface V2ExchangeRequest {
213
+ /** Issued when you created your application. */
214
+ client_id: string;
215
+ /** Issued when you created your application. */
216
+ client_secret: string | Redacted.Redacted<string>;
217
+ }
218
+ export declare const V2ExchangeRequest: S.Schema<V2ExchangeRequest>;
219
+ /** The type of access token. */
220
+ export type V2ExchangeResponseTokenType = "bot" | "user";
221
+ export declare const V2ExchangeResponseTokenType: any;
222
+ export interface V2ExchangeResponse {
223
+ /** Always `true` (a failed call raises a typed error instead). */
224
+ ok: boolean;
225
+ app_id: string;
226
+ /** The type of access token. */
227
+ token_type: V2ExchangeResponseTokenType;
228
+ /** Comma-separated list of scopes granted to the token. */
229
+ scope: string;
230
+ /** The user ID of the bot user corresponding to the token. Only present if a legacy bot access token is being exchanged. */
231
+ bot_user_id?: string;
232
+ /** The user ID of the user corresponding to the token. Only present if a legacy user access token is being exchanged. */
233
+ user_id?: string;
234
+ /** A new xoxe.xox(b|p) expiring access token to replace the legacy token. */
235
+ access_token: string | Redacted.Redacted<string>;
236
+ /** Duration (in seconds) until the new access token expires. */
237
+ expires_in: number;
238
+ /** The xoxe refresh token to obtain a new access token after the one returned expires. */
239
+ refresh_token: string | Redacted.Redacted<string>;
240
+ team?: unknown | null;
241
+ enterprise?: unknown | null;
242
+ }
243
+ export declare const V2ExchangeResponse: S.Schema<V2ExchangeResponse>;
244
+ export interface V2UserAccessRequest {
245
+ /** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
246
+ client_id?: string;
247
+ /** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
248
+ client_secret?: string | Redacted.Redacted<string>;
249
+ /** The `code` param returned via the OAuth callback. */
250
+ code?: string;
251
+ /** The code_verifier param used to generate the code_challenge originally. Used for PKCE. */
252
+ code_verifier?: string;
253
+ /** This must match the originally submitted URI (if one was sent). */
254
+ redirect_uri?: string;
255
+ /** The `grant_type` param as described in the OAuth spec. */
256
+ grant_type?: string;
257
+ /** The `refresh_token` param as described in the OAuth spec. */
258
+ refresh_token?: string | Redacted.Redacted<string>;
259
+ /** Identity assertion JWT authorization grant. */
260
+ assertion?: string;
261
+ }
262
+ export declare const V2UserAccessRequest: S.Schema<V2UserAccessRequest>;
263
+ /** The type of access token. */
264
+ export type V2UserAccessResponseTokenType = "user";
265
+ export declare const V2UserAccessResponseTokenType: any;
266
+ /** Details about the team. */
267
+ export type V2UserAccessResponseTeam = V2AccessResponseTeam;
268
+ export declare const V2UserAccessResponseTeam: S.Schema<V2AccessResponseTeam>;
269
+ /** Details about the enterprise. */
270
+ export type V2UserAccessResponseEnterprise = V2AccessResponseEnterprise;
271
+ export declare const V2UserAccessResponseEnterprise: S.Schema<V2AccessResponseEnterprise>;
272
+ export interface V2UserAccessResponse {
273
+ /** Always `true` (a failed call raises a typed error instead). */
274
+ ok: boolean;
275
+ /** A user access token. */
276
+ access_token: string | Redacted.Redacted<string>;
277
+ /** The type of access token. */
278
+ token_type: V2UserAccessResponseTokenType;
279
+ /** Comma-separated list of scopes granted to the token. */
280
+ scope?: string;
281
+ /** The user ID of the user corresponding to the token. */
282
+ user_id: string;
283
+ /** ID of the app being installed or re-installed. */
284
+ app_id: string;
285
+ /** Boolean flag indicating whether the generated token is enterprise level token or not */
286
+ is_enterprise_install: boolean;
287
+ /** Time until this credential expires, if it expires at all */
288
+ expires_in?: number;
289
+ /** Refresh token for this credential */
290
+ refresh_token?: string | Redacted.Redacted<string>;
291
+ team: V2AccessResponseTeam | null;
292
+ enterprise: V2AccessResponseEnterprise | null;
293
+ }
294
+ export declare const V2UserAccessResponse: S.Schema<V2UserAccessResponse>;
295
+ export type OauthAccessError = SlackOpError;
296
+ /** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `code_already_used` — Value passed for `code` was already exchanged. - `internal_error` — Something went wrong during app installation. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_token` — Invalid refresh token. - `missing_resource` — Missing permission resource. - `ratelimited` — Too many requests made in succession. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/authorize. - `user_email_unverified` — The users email is unverified See https://docs.slack.dev/reference/methods/oauth.access */
297
+ export declare const oauthAccess: API.OperationMethod<OauthAccessRequest, OauthAccessResponse, OauthAccessError, SlackOpContext>;
298
+ export type V2AccessError = SlackOpError;
299
+ /** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_grant_type` — Value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `no_scopes` — Missing `scope` in the request. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize. - `preview_feature_not_available` — Returned when the API method is not yet available on the team in context. - `user_email_unverified` — The users email is unverified. - `pkce_not_allowed` — The app is not allowed to use the PKCE flow. - `invalid_code_verifier` — The code_verifier is invalid. See https://docs.slack.dev/reference/methods/oauth.v2.access */
300
+ export declare const v2Access: API.OperationMethod<V2AccessRequest, V2AccessResponse, V2AccessError, SlackOpContext>;
301
+ export type V2ExchangeError = SlackOpError;
302
+ /** Exchanges a legacy access token for a new expiring access token and refresh token Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `authorization_not_found` — The underlying authorization for this token was revoked or is invalid. - `bad_client_secret` — Value passed for `client_secret` was invalid. - `internal_error` — A server-side error occurred. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_token` — The legacy token provided cannot be exchanged for a new pair of token credentials. - `token_already_exchanged` — This token has already been exchanged for a pair of token credentials. - `token_rotation_not_enabled` — The app does not have token rotation enabled. See https://docs.slack.dev/reference/methods/oauth.v2.exchange */
303
+ export declare const v2Exchange: API.OperationMethod<V2ExchangeRequest, V2ExchangeResponse, V2ExchangeError, SlackOpContext>;
304
+ export type V2UserAccessError = SlackOpError;
305
+ /** Exchanges a temporary OAuth verifier code for a user access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_grant_type` — Value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `no_scopes` — Missing `scope` in the request. - `no_user_scopes` — Missing user `scope` in the auth request. - `not_implemented` — Method not yet supported - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize . - `preview_feature_not_available` — Returned when the API method is not yet available on the team in context. - `user_email_unverified` — The users email is unverified See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
306
+ export declare const v2UserAccess: API.OperationMethod<V2UserAccessRequest, V2UserAccessResponse, V2UserAccessError, SlackOpContext>;
307
+ //# sourceMappingURL=oauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/services/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,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,MAAM,WAAW,kBAAkB;IACjC,wOAAwO;IACxO,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wOAAwO;IACxO,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6LAA6L;IAC7L,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,eAAO,MAAM,kBAAkB,EAiBlB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE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AChB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,8vCAA8vC;AAC9vC,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,kyBAAkyB;AAClyB,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,uvCAAuvC;AACvvC,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,CAOb,CAAC"}
@@ -0,0 +1,278 @@
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 Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as T from "../traits.js";
6
+ import { SlackProtocol, } from "../protocol.js";
7
+ import { SlackError, SlackRateLimited } from "../errors.js";
8
+ import * as Retry from "../retry.js";
9
+ export const OauthAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
10
+ client_id: S.optional(S.String),
11
+ client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
12
+ code: S.optional(S.String),
13
+ redirect_uri: S.optional(S.String),
14
+ single_channel: S.optional(S.Boolean),
15
+ }).pipe(T.Http({
16
+ method: "POST",
17
+ uri: "/oauth.access",
18
+ code: 200,
19
+ contentType: "form-urlencoded",
20
+ }))).annotate({
21
+ identifier: "OauthAccessRequest",
22
+ });
23
+ export const OauthAccessResponseAuthorizingUser = /*@__PURE__*/ S.suspend(() => S.Struct({
24
+ user_id: S.optional(S.String),
25
+ app_home: S.optional(S.NullOr(S.String)),
26
+ })).annotate({
27
+ identifier: "OauthAccessResponseAuthorizingUser",
28
+ });
29
+ export const OauthAccessResponseInstallerUser = OauthAccessResponseAuthorizingUser;
30
+ export const OauthAccessResponseScopesAppHomeList = /*@__PURE__*/ S.Array(S.String);
31
+ export const OauthAccessResponseScopesTeamList = /*@__PURE__*/ S.Array(S.String);
32
+ export const OauthAccessResponseScopesChannelList = /*@__PURE__*/ S.Array(S.String);
33
+ export const OauthAccessResponseScopesGroupList = /*@__PURE__*/ S.Array(S.String);
34
+ export const OauthAccessResponseScopesMpimList = /*@__PURE__*/ S.Array(S.String);
35
+ export const OauthAccessResponseScopesImList = /*@__PURE__*/ S.Array(S.String);
36
+ export const OauthAccessResponseScopes = /*@__PURE__*/ S.suspend(() => S.Struct({
37
+ app_home: S.optional(OauthAccessResponseScopesAppHomeList),
38
+ team: S.optional(OauthAccessResponseScopesTeamList),
39
+ channel: S.optional(OauthAccessResponseScopesChannelList),
40
+ group: S.optional(OauthAccessResponseScopesGroupList),
41
+ mpim: S.optional(OauthAccessResponseScopesMpimList),
42
+ im: S.optional(OauthAccessResponseScopesImList),
43
+ })).annotate({
44
+ identifier: "OauthAccessResponseScopes",
45
+ });
46
+ export const OauthAccessResponseBot = /*@__PURE__*/ S.suspend(() => S.Struct({
47
+ bot_user_id: S.optional(S.String),
48
+ bot_access_token: S.optional(S.String),
49
+ scope: S.optional(S.String),
50
+ })).annotate({
51
+ identifier: "OauthAccessResponseBot",
52
+ });
53
+ export const OauthAccessResponseUser = /*@__PURE__*/ S.suspend(() => S.Struct({
54
+ name: S.optional(S.String),
55
+ id: S.optional(S.String),
56
+ email: S.optional(S.String),
57
+ image_24: S.optional(S.String),
58
+ image_32: S.optional(S.String),
59
+ image_48: S.optional(S.String),
60
+ image_72: S.optional(S.String),
61
+ image_192: S.optional(S.String),
62
+ image_512: S.optional(S.String),
63
+ scope: S.optional(S.String),
64
+ access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
65
+ token_type: S.optional(S.String),
66
+ })).annotate({
67
+ identifier: "OauthAccessResponseUser",
68
+ });
69
+ export const OauthAccessResponseTeam = /*@__PURE__*/ S.suspend(() => S.Struct({
70
+ id: S.optional(S.String),
71
+ name: S.optional(S.String),
72
+ domain: S.optional(S.String),
73
+ image_34: S.optional(S.String),
74
+ image_44: S.optional(S.String),
75
+ image_68: S.optional(S.String),
76
+ image_88: S.optional(S.String),
77
+ image_102: S.optional(S.String),
78
+ image_132: S.optional(S.String),
79
+ image_230: S.optional(S.String),
80
+ image_default: S.optional(S.Boolean),
81
+ image_original: S.optional(S.String),
82
+ })).annotate({
83
+ identifier: "OauthAccessResponseTeam",
84
+ });
85
+ export const OauthAccessResponseIncomingWebhook = /*@__PURE__*/ S.suspend(() => S.Struct({
86
+ channel: S.optional(S.String),
87
+ channel_id: S.optional(S.String),
88
+ configuration_url: S.optional(S.String),
89
+ url: S.optional(S.String),
90
+ })).annotate({
91
+ identifier: "OauthAccessResponseIncomingWebhook",
92
+ });
93
+ export const OauthAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
94
+ ok: S.Boolean,
95
+ token_type: S.optional(S.String),
96
+ app_id: S.optional(S.String),
97
+ app_user_id: S.optional(S.String),
98
+ team_name: S.optional(S.String),
99
+ team_id: S.String,
100
+ access_token: S.String.pipe(T.SensitiveValue({})),
101
+ authorizing_user: S.optional(OauthAccessResponseAuthorizingUser),
102
+ installer_user: S.optional(OauthAccessResponseAuthorizingUser),
103
+ scopes: S.optional(OauthAccessResponseScopes),
104
+ scope: S.optional(S.String),
105
+ user_id: S.optional(S.String),
106
+ bot: S.optional(OauthAccessResponseBot),
107
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
108
+ expires_in: S.optional(S.Number),
109
+ user: S.optional(OauthAccessResponseUser),
110
+ team: S.optional(OauthAccessResponseTeam),
111
+ enterprise_id: S.optional(S.NullOr(S.String)),
112
+ incoming_webhook: S.optional(OauthAccessResponseIncomingWebhook),
113
+ single_channel_id: S.optional(S.String),
114
+ })).annotate({
115
+ identifier: "OauthAccessResponse",
116
+ });
117
+ export const V2AccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
118
+ client_id: S.optional(S.String),
119
+ client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
120
+ code: S.optional(S.String),
121
+ code_verifier: S.optional(S.String),
122
+ redirect_uri: S.optional(S.String),
123
+ grant_type: S.optional(S.String),
124
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
125
+ assertion: S.optional(S.String),
126
+ }).pipe(T.Http({
127
+ method: "POST",
128
+ uri: "/oauth.v2.access",
129
+ code: 200,
130
+ contentType: "form-urlencoded",
131
+ }))).annotate({
132
+ identifier: "V2AccessRequest",
133
+ });
134
+ export const V2AccessResponseTokenType = S.String;
135
+ export const V2AccessResponseTeam = /*@__PURE__*/ S.suspend(() => S.Struct({
136
+ id: S.String,
137
+ name: S.optional(S.String),
138
+ })).annotate({
139
+ identifier: "V2AccessResponseTeam",
140
+ });
141
+ export const V2AccessResponseEnterprise = /*@__PURE__*/ S.suspend(() => S.Struct({
142
+ id: S.String,
143
+ name: S.optional(S.String),
144
+ })).annotate({
145
+ identifier: "V2AccessResponseEnterprise",
146
+ });
147
+ export const V2AccessResponseAuthedUserTokenType = S.String;
148
+ export const V2AccessResponseAuthedUser = /*@__PURE__*/ S.suspend(() => S.Struct({
149
+ id: S.String,
150
+ access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
151
+ token_type: S.optional(V2AccessResponseAuthedUserTokenType),
152
+ scope: S.optional(S.String),
153
+ expires_in: S.optional(S.Number),
154
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
155
+ })).annotate({
156
+ identifier: "V2AccessResponseAuthedUser",
157
+ });
158
+ export const V2AccessResponseIncomingWebhook = /*@__PURE__*/ S.suspend(() => S.Struct({
159
+ channel: S.String,
160
+ channel_id: S.String,
161
+ configuration_url: S.String,
162
+ url: S.String,
163
+ })).annotate({
164
+ identifier: "V2AccessResponseIncomingWebhook",
165
+ });
166
+ export const V2AccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
167
+ ok: S.Boolean,
168
+ access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
169
+ token_type: S.optional(V2AccessResponseTokenType),
170
+ scope: S.optional(S.String),
171
+ bot_user_id: S.optional(S.String),
172
+ user_id: S.optional(S.String),
173
+ app_id: S.String,
174
+ is_enterprise_install: S.optional(S.Boolean),
175
+ expires_in: S.optional(S.Number),
176
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
177
+ team: S.NullOr(V2AccessResponseTeam),
178
+ enterprise: S.NullOr(V2AccessResponseEnterprise),
179
+ authed_user: S.optional(V2AccessResponseAuthedUser),
180
+ incoming_webhook: S.optional(V2AccessResponseIncomingWebhook),
181
+ })).annotate({
182
+ identifier: "V2AccessResponse",
183
+ });
184
+ export const V2ExchangeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
185
+ client_id: S.String,
186
+ client_secret: S.String.pipe(T.SensitiveValue({})),
187
+ }).pipe(T.Http({
188
+ method: "POST",
189
+ uri: "/oauth.v2.exchange",
190
+ code: 200,
191
+ contentType: "form-urlencoded",
192
+ }))).annotate({
193
+ identifier: "V2ExchangeRequest",
194
+ });
195
+ export const V2ExchangeResponseTokenType = S.String;
196
+ export const V2ExchangeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
197
+ ok: S.Boolean,
198
+ app_id: S.String,
199
+ token_type: V2ExchangeResponseTokenType,
200
+ scope: S.String,
201
+ bot_user_id: S.optional(S.String),
202
+ user_id: S.optional(S.String),
203
+ access_token: S.String.pipe(T.SensitiveValue({})),
204
+ expires_in: S.Number,
205
+ refresh_token: S.String.pipe(T.SensitiveValue({})),
206
+ team: S.optional(S.NullOr(S.Unknown)),
207
+ enterprise: S.optional(S.NullOr(S.Unknown)),
208
+ })).annotate({
209
+ identifier: "V2ExchangeResponse",
210
+ });
211
+ export const V2UserAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
212
+ client_id: S.optional(S.String),
213
+ client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
214
+ code: S.optional(S.String),
215
+ code_verifier: S.optional(S.String),
216
+ redirect_uri: S.optional(S.String),
217
+ grant_type: S.optional(S.String),
218
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
219
+ assertion: S.optional(S.String),
220
+ }).pipe(T.Http({
221
+ method: "POST",
222
+ uri: "/oauth.v2.user.access",
223
+ code: 200,
224
+ contentType: "form-urlencoded",
225
+ }))).annotate({
226
+ identifier: "V2UserAccessRequest",
227
+ });
228
+ export const V2UserAccessResponseTokenType = S.String;
229
+ export const V2UserAccessResponseTeam = V2AccessResponseTeam;
230
+ export const V2UserAccessResponseEnterprise = V2AccessResponseEnterprise;
231
+ export const V2UserAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
232
+ ok: S.Boolean,
233
+ access_token: S.String.pipe(T.SensitiveValue({})),
234
+ token_type: V2UserAccessResponseTokenType,
235
+ scope: S.optional(S.String),
236
+ user_id: S.String,
237
+ app_id: S.String,
238
+ is_enterprise_install: S.Boolean,
239
+ expires_in: S.optional(S.Number),
240
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
241
+ team: S.NullOr(V2AccessResponseTeam),
242
+ enterprise: S.NullOr(V2AccessResponseEnterprise),
243
+ })).annotate({
244
+ identifier: "V2UserAccessResponse",
245
+ });
246
+ /** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `code_already_used` — Value passed for `code` was already exchanged. - `internal_error` — Something went wrong during app installation. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_token` — Invalid refresh token. - `missing_resource` — Missing permission resource. - `ratelimited` — Too many requests made in succession. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/authorize. - `user_email_unverified` — The users email is unverified See https://docs.slack.dev/reference/methods/oauth.access */
247
+ export const oauthAccess = /*@__PURE__*/ API.make(() => ({
248
+ input: OauthAccessRequest,
249
+ output: OauthAccessResponse,
250
+ errors: [SlackError, SlackRateLimited],
251
+ protocol: SlackProtocol,
252
+ retry: Retry.Retry,
253
+ }));
254
+ /** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_grant_type` — Value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `no_scopes` — Missing `scope` in the request. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize. - `preview_feature_not_available` — Returned when the API method is not yet available on the team in context. - `user_email_unverified` — The users email is unverified. - `pkce_not_allowed` — The app is not allowed to use the PKCE flow. - `invalid_code_verifier` — The code_verifier is invalid. See https://docs.slack.dev/reference/methods/oauth.v2.access */
255
+ export const v2Access = /*@__PURE__*/ API.make(() => ({
256
+ input: V2AccessRequest,
257
+ output: V2AccessResponse,
258
+ errors: [SlackError, SlackRateLimited],
259
+ protocol: SlackProtocol,
260
+ retry: Retry.Retry,
261
+ }));
262
+ /** Exchanges a legacy access token for a new expiring access token and refresh token Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `authorization_not_found` — The underlying authorization for this token was revoked or is invalid. - `bad_client_secret` — Value passed for `client_secret` was invalid. - `internal_error` — A server-side error occurred. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_token` — The legacy token provided cannot be exchanged for a new pair of token credentials. - `token_already_exchanged` — This token has already been exchanged for a pair of token credentials. - `token_rotation_not_enabled` — The app does not have token rotation enabled. See https://docs.slack.dev/reference/methods/oauth.v2.exchange */
263
+ export const v2Exchange = /*@__PURE__*/ API.make(() => ({
264
+ input: V2ExchangeRequest,
265
+ output: V2ExchangeResponse,
266
+ errors: [SlackError, SlackRateLimited],
267
+ protocol: SlackProtocol,
268
+ retry: Retry.Retry,
269
+ }));
270
+ /** Exchanges a temporary OAuth verifier code for a user access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_grant_type` — Value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `no_scopes` — Missing `scope` in the request. - `no_user_scopes` — Missing user `scope` in the auth request. - `not_implemented` — Method not yet supported - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize . - `preview_feature_not_available` — Returned when the API method is not yet available on the team in context. - `user_email_unverified` — The users email is unverified See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
271
+ export const v2UserAccess = /*@__PURE__*/ API.make(() => ({
272
+ input: V2UserAccessRequest,
273
+ output: V2UserAccessResponse,
274
+ errors: [SlackError, SlackRateLimited],
275
+ protocol: SlackProtocol,
276
+ retry: Retry.Retry,
277
+ }));
278
+ //# sourceMappingURL=oauth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/services/oauth.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,QAAQ,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