@distilled.cloud/slack 1.0.0-rc.18 → 1.0.0-rc.19

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 (190) hide show
  1. package/lib/_bundle/sdk.js +1 -1
  2. package/lib/_bundle/sdk.js.map +1 -1
  3. package/lib/protocol.d.ts +2 -1
  4. package/lib/protocol.d.ts.map +1 -1
  5. package/lib/services/admin.d.ts +594 -356
  6. package/lib/services/admin.d.ts.map +1 -1
  7. package/lib/services/admin.js +149 -140
  8. package/lib/services/admin.js.map +1 -1
  9. package/lib/services/agents.d.ts +89 -97
  10. package/lib/services/agents.d.ts.map +1 -1
  11. package/lib/services/agents.js +1 -1
  12. package/lib/services/agents.js.map +1 -1
  13. package/lib/services/api.d.ts +2 -2
  14. package/lib/services/api.d.ts.map +1 -1
  15. package/lib/services/api.js +1 -1
  16. package/lib/services/api.js.map +1 -1
  17. package/lib/services/apps.d.ts +74 -74
  18. package/lib/services/apps.d.ts.map +1 -1
  19. package/lib/services/apps.js +32 -32
  20. package/lib/services/apps.js.map +1 -1
  21. package/lib/services/assistant.d.ts +55 -46
  22. package/lib/services/assistant.d.ts.map +1 -1
  23. package/lib/services/assistant.js +1 -1
  24. package/lib/services/assistant.js.map +1 -1
  25. package/lib/services/auth.d.ts +27 -27
  26. package/lib/services/auth.d.ts.map +1 -1
  27. package/lib/services/auth.js +1 -1
  28. package/lib/services/auth.js.map +1 -1
  29. package/lib/services/blocks.d.ts +3 -3
  30. package/lib/services/blocks.d.ts.map +1 -1
  31. package/lib/services/blocks.js +1 -1
  32. package/lib/services/blocks.js.map +1 -1
  33. package/lib/services/bookmarks.d.ts +19 -19
  34. package/lib/services/bookmarks.d.ts.map +1 -1
  35. package/lib/services/bookmarks.js +1 -1
  36. package/lib/services/bookmarks.js.map +1 -1
  37. package/lib/services/bots.d.ts +23 -23
  38. package/lib/services/bots.d.ts.map +1 -1
  39. package/lib/services/bots.js +1 -1
  40. package/lib/services/bots.js.map +1 -1
  41. package/lib/services/calls.d.ts +10 -10
  42. package/lib/services/calls.d.ts.map +1 -1
  43. package/lib/services/calls.js +1 -1
  44. package/lib/services/calls.js.map +1 -1
  45. package/lib/services/canvases.d.ts +18 -18
  46. package/lib/services/canvases.d.ts.map +1 -1
  47. package/lib/services/canvases.js +1 -1
  48. package/lib/services/canvases.js.map +1 -1
  49. package/lib/services/chat.d.ts +103 -103
  50. package/lib/services/chat.d.ts.map +1 -1
  51. package/lib/services/chat.js +1 -1
  52. package/lib/services/chat.js.map +1 -1
  53. package/lib/services/conversations.d.ts +109 -103
  54. package/lib/services/conversations.d.ts.map +1 -1
  55. package/lib/services/conversations.js +38 -38
  56. package/lib/services/conversations.js.map +1 -1
  57. package/lib/services/dialog.js +1 -1
  58. package/lib/services/dialog.js.map +1 -1
  59. package/lib/services/dnd.d.ts +14 -14
  60. package/lib/services/dnd.d.ts.map +1 -1
  61. package/lib/services/dnd.js +1 -1
  62. package/lib/services/dnd.js.map +1 -1
  63. package/lib/services/emoji.d.ts +6 -6
  64. package/lib/services/emoji.d.ts.map +1 -1
  65. package/lib/services/emoji.js +1 -1
  66. package/lib/services/emoji.js.map +1 -1
  67. package/lib/services/entity.d.ts +14 -14
  68. package/lib/services/entity.d.ts.map +1 -1
  69. package/lib/services/entity.js +1 -1
  70. package/lib/services/entity.js.map +1 -1
  71. package/lib/services/files.d.ts +106 -106
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +26 -26
  74. package/lib/services/files.js.map +1 -1
  75. package/lib/services/functions.d.ts +37 -37
  76. package/lib/services/functions.d.ts.map +1 -1
  77. package/lib/services/functions.js +1 -1
  78. package/lib/services/functions.js.map +1 -1
  79. package/lib/services/index.d.ts +1 -0
  80. package/lib/services/index.d.ts.map +1 -1
  81. package/lib/services/index.js +1 -0
  82. package/lib/services/lists.d.ts +47 -45
  83. package/lib/services/lists.d.ts.map +1 -1
  84. package/lib/services/lists.js +1 -1
  85. package/lib/services/lists.js.map +1 -1
  86. package/lib/services/migration.d.ts +3 -3
  87. package/lib/services/migration.d.ts.map +1 -1
  88. package/lib/services/migration.js +1 -1
  89. package/lib/services/migration.js.map +1 -1
  90. package/lib/services/oauth.d.ts +102 -102
  91. package/lib/services/oauth.d.ts.map +1 -1
  92. package/lib/services/oauth.js +1 -1
  93. package/lib/services/oauth.js.map +1 -1
  94. package/lib/services/openid.d.ts +40 -40
  95. package/lib/services/openid.d.ts.map +1 -1
  96. package/lib/services/openid.js +1 -1
  97. package/lib/services/openid.js.map +1 -1
  98. package/lib/services/pins.d.ts +9 -9
  99. package/lib/services/pins.d.ts.map +1 -1
  100. package/lib/services/pins.js +1 -1
  101. package/lib/services/pins.js.map +1 -1
  102. package/lib/services/reactions.d.ts +23 -23
  103. package/lib/services/reactions.d.ts.map +1 -1
  104. package/lib/services/reactions.js +1 -1
  105. package/lib/services/reactions.js.map +1 -1
  106. package/lib/services/reminders.d.ts +8 -8
  107. package/lib/services/reminders.d.ts.map +1 -1
  108. package/lib/services/reminders.js +1 -1
  109. package/lib/services/reminders.js.map +1 -1
  110. package/lib/services/rtm.d.ts +11 -11
  111. package/lib/services/rtm.d.ts.map +1 -1
  112. package/lib/services/rtm.js +1 -1
  113. package/lib/services/rtm.js.map +1 -1
  114. package/lib/services/search.d.ts +84 -80
  115. package/lib/services/search.d.ts.map +1 -1
  116. package/lib/services/search.js +1 -1
  117. package/lib/services/search.js.map +1 -1
  118. package/lib/services/slackbot.d.ts +366 -0
  119. package/lib/services/slackbot.d.ts.map +1 -0
  120. package/lib/services/slackbot.js +2 -0
  121. package/lib/services/slackbot.js.map +1 -0
  122. package/lib/services/stars.d.ts +16 -16
  123. package/lib/services/stars.d.ts.map +1 -1
  124. package/lib/services/stars.js +1 -1
  125. package/lib/services/stars.js.map +1 -1
  126. package/lib/services/team.d.ts +39 -37
  127. package/lib/services/team.d.ts.map +1 -1
  128. package/lib/services/team.js +1 -1
  129. package/lib/services/team.js.map +1 -1
  130. package/lib/services/tooling.js +1 -1
  131. package/lib/services/tooling.js.map +1 -1
  132. package/lib/services/usergroups.d.ts +30 -30
  133. package/lib/services/usergroups.d.ts.map +1 -1
  134. package/lib/services/usergroups.js +1 -1
  135. package/lib/services/usergroups.js.map +1 -1
  136. package/lib/services/users.d.ts +37 -37
  137. package/lib/services/users.d.ts.map +1 -1
  138. package/lib/services/users.js +1 -1
  139. package/lib/services/users.js.map +1 -1
  140. package/lib/services/views.d.ts +9 -9
  141. package/lib/services/views.d.ts.map +1 -1
  142. package/lib/services/views.js +1 -1
  143. package/lib/services/views.js.map +1 -1
  144. package/lib/services/workflows.d.ts +16 -16
  145. package/lib/services/workflows.d.ts.map +1 -1
  146. package/lib/services/workflows.js +1 -1
  147. package/lib/services/workflows.js.map +1 -1
  148. package/lib/services.lazy/admin.js +2 -2
  149. package/lib/services.lazy/apps.js +1 -1
  150. package/lib/services.lazy/conversations.js +1 -1
  151. package/lib/services.lazy/files.js +1 -1
  152. package/lib/services.lazy/index.js +2 -2
  153. package/lib/services.lazy/slackbot.js +1 -0
  154. package/package.json +6 -6
  155. package/src/protocol.ts +3 -5
  156. package/src/services/admin.ts +1609 -1016
  157. package/src/services/agents.ts +93 -103
  158. package/src/services/api.ts +2 -2
  159. package/src/services/apps.ts +74 -74
  160. package/src/services/assistant.ts +88 -56
  161. package/src/services/auth.ts +27 -27
  162. package/src/services/blocks.ts +3 -3
  163. package/src/services/bookmarks.ts +19 -19
  164. package/src/services/bots.ts +23 -23
  165. package/src/services/calls.ts +10 -10
  166. package/src/services/canvases.ts +50 -46
  167. package/src/services/chat.ts +103 -103
  168. package/src/services/conversations.ts +126 -115
  169. package/src/services/dnd.ts +14 -14
  170. package/src/services/emoji.ts +6 -6
  171. package/src/services/entity.ts +14 -14
  172. package/src/services/files.ts +106 -106
  173. package/src/services/functions.ts +37 -37
  174. package/src/services/index.ts +1 -0
  175. package/src/services/lists.ts +49 -46
  176. package/src/services/migration.ts +3 -3
  177. package/src/services/oauth.ts +102 -102
  178. package/src/services/openid.ts +40 -40
  179. package/src/services/pins.ts +9 -9
  180. package/src/services/reactions.ts +23 -23
  181. package/src/services/reminders.ts +8 -8
  182. package/src/services/rtm.ts +11 -11
  183. package/src/services/search.ts +123 -130
  184. package/src/services/slackbot.ts +766 -0
  185. package/src/services/stars.ts +16 -16
  186. package/src/services/team.ts +42 -37
  187. package/src/services/usergroups.ts +30 -30
  188. package/src/services/users.ts +37 -37
  189. package/src/services/views.ts +9 -9
  190. package/src/services/workflows.ts +16 -16
@@ -53,19 +53,19 @@ export interface CompleteShortTokenRotationResponse {
53
53
  }
54
54
  export interface OauthAccessRequest {
55
55
  /** 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. */
56
- client_id?: string;
56
+ client_id?: string | undefined;
57
57
  /** 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. */
58
- client_secret?: string | Redacted.Redacted<string>;
58
+ client_secret?: string | Redacted.Redacted<string> | undefined;
59
59
  /** The `code` param returned via the OAuth callback. */
60
- code?: string;
60
+ code?: string | undefined;
61
61
  /** This must match the originally submitted URI (if one was sent). */
62
- redirect_uri?: string;
62
+ redirect_uri?: string | undefined;
63
63
  /** 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). */
64
- single_channel?: boolean;
64
+ single_channel?: boolean | undefined;
65
65
  }
66
66
  export interface OauthAccessResponseAuthorizingUser {
67
- user_id?: string;
68
- app_home?: string | null;
67
+ user_id?: string | undefined;
68
+ app_home?: string | null | undefined;
69
69
  }
70
70
  export type OauthAccessResponseInstallerUser = OauthAccessResponseAuthorizingUser;
71
71
  export type OauthAccessResponseScopesAppHomeList = Array<string>;
@@ -75,92 +75,92 @@ export type OauthAccessResponseScopesGroupList = Array<string>;
75
75
  export type OauthAccessResponseScopesMpimList = Array<string>;
76
76
  export type OauthAccessResponseScopesImList = Array<string>;
77
77
  export interface OauthAccessResponseScopes {
78
- app_home?: OauthAccessResponseScopesAppHomeList;
79
- team?: OauthAccessResponseScopesTeamList;
80
- channel?: OauthAccessResponseScopesChannelList;
81
- group?: OauthAccessResponseScopesGroupList;
82
- mpim?: OauthAccessResponseScopesMpimList;
83
- im?: OauthAccessResponseScopesImList;
78
+ app_home?: OauthAccessResponseScopesAppHomeList | undefined;
79
+ team?: OauthAccessResponseScopesTeamList | undefined;
80
+ channel?: OauthAccessResponseScopesChannelList | undefined;
81
+ group?: OauthAccessResponseScopesGroupList | undefined;
82
+ mpim?: OauthAccessResponseScopesMpimList | undefined;
83
+ im?: OauthAccessResponseScopesImList | undefined;
84
84
  }
85
85
  export interface OauthAccessResponseBot {
86
- bot_user_id?: string;
87
- bot_access_token?: string;
88
- scope?: string;
86
+ bot_user_id?: string | undefined;
87
+ bot_access_token?: string | undefined;
88
+ scope?: string | undefined;
89
89
  }
90
90
  export interface OauthAccessResponseUser {
91
- name?: string;
92
- id?: string;
93
- email?: string;
94
- image_24?: string;
95
- image_32?: string;
96
- image_48?: string;
97
- image_72?: string;
98
- image_192?: string;
99
- image_512?: string;
100
- scope?: string;
101
- access_token?: string | Redacted.Redacted<string>;
102
- token_type?: string;
91
+ name?: string | undefined;
92
+ id?: string | undefined;
93
+ email?: string | undefined;
94
+ image_24?: string | undefined;
95
+ image_32?: string | undefined;
96
+ image_48?: string | undefined;
97
+ image_72?: string | undefined;
98
+ image_192?: string | undefined;
99
+ image_512?: string | undefined;
100
+ scope?: string | undefined;
101
+ access_token?: string | Redacted.Redacted<string> | undefined;
102
+ token_type?: string | undefined;
103
103
  }
104
104
  export interface OauthAccessResponseTeam {
105
- id?: string;
106
- name?: string;
107
- domain?: string;
108
- image_34?: string;
109
- image_44?: string;
110
- image_68?: string;
111
- image_88?: string;
112
- image_102?: string;
113
- image_132?: string;
114
- image_230?: string;
115
- image_default?: boolean;
116
- image_original?: string;
105
+ id?: string | undefined;
106
+ name?: string | undefined;
107
+ domain?: string | undefined;
108
+ image_34?: string | undefined;
109
+ image_44?: string | undefined;
110
+ image_68?: string | undefined;
111
+ image_88?: string | undefined;
112
+ image_102?: string | undefined;
113
+ image_132?: string | undefined;
114
+ image_230?: string | undefined;
115
+ image_default?: boolean | undefined;
116
+ image_original?: string | undefined;
117
117
  }
118
118
  export interface OauthAccessResponseIncomingWebhook {
119
- channel?: string;
120
- channel_id?: string;
121
- configuration_url?: string;
122
- url?: string;
119
+ channel?: string | undefined;
120
+ channel_id?: string | undefined;
121
+ configuration_url?: string | undefined;
122
+ url?: string | undefined;
123
123
  }
124
124
  export interface OauthAccessResponse {
125
125
  /** Always `true` (a failed call raises a typed error instead). */
126
126
  ok: boolean;
127
- token_type?: string;
128
- app_id?: string;
129
- app_user_id?: string;
130
- team_name?: string;
127
+ token_type?: string | undefined;
128
+ app_id?: string | undefined;
129
+ app_user_id?: string | undefined;
130
+ team_name?: string | undefined;
131
131
  team_id: string;
132
132
  access_token: string | Redacted.Redacted<string>;
133
- authorizing_user?: OauthAccessResponseAuthorizingUser;
134
- installer_user?: OauthAccessResponseAuthorizingUser;
135
- scopes?: OauthAccessResponseScopes;
136
- scope?: string;
137
- user_id?: string;
138
- bot?: OauthAccessResponseBot;
139
- refresh_token?: string | Redacted.Redacted<string>;
140
- expires_in?: number;
141
- user?: OauthAccessResponseUser;
142
- team?: OauthAccessResponseTeam;
143
- enterprise_id?: string | null;
144
- incoming_webhook?: OauthAccessResponseIncomingWebhook;
145
- single_channel_id?: string;
133
+ authorizing_user?: OauthAccessResponseAuthorizingUser | undefined;
134
+ installer_user?: OauthAccessResponseAuthorizingUser | undefined;
135
+ scopes?: OauthAccessResponseScopes | undefined;
136
+ scope?: string | undefined;
137
+ user_id?: string | undefined;
138
+ bot?: OauthAccessResponseBot | undefined;
139
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
140
+ expires_in?: number | undefined;
141
+ user?: OauthAccessResponseUser | undefined;
142
+ team?: OauthAccessResponseTeam | undefined;
143
+ enterprise_id?: string | null | undefined;
144
+ incoming_webhook?: OauthAccessResponseIncomingWebhook | undefined;
145
+ single_channel_id?: string | undefined;
146
146
  }
147
147
  export interface V2AccessRequest {
148
148
  /** 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. */
149
- client_id?: string;
149
+ client_id?: string | undefined;
150
150
  /** 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. */
151
- client_secret?: string | Redacted.Redacted<string>;
151
+ client_secret?: string | Redacted.Redacted<string> | undefined;
152
152
  /** The `code` param returned via the OAuth callback. */
153
- code?: string;
153
+ code?: string | undefined;
154
154
  /** The code_verifier param used to generate the code_challenge originally. Used for PKCE. */
155
- code_verifier?: string;
155
+ code_verifier?: string | undefined;
156
156
  /** This must match the originally submitted URI (if one was sent). */
157
- redirect_uri?: string;
157
+ redirect_uri?: string | undefined;
158
158
  /** The `grant_type` param as described in the OAuth spec. */
159
- grant_type?: string;
159
+ grant_type?: string | undefined;
160
160
  /** The `refresh_token` param as described in the OAuth spec. */
161
- refresh_token?: string | Redacted.Redacted<string>;
161
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
162
162
  /** Identity assertion JWT authorization grant */
163
- assertion?: string;
163
+ assertion?: string | undefined;
164
164
  }
165
165
  /** The type of access token. Only present if a bot token was requested at the start of the auth flow. */
166
166
  export type V2AccessResponseTokenType = "granular_bot";
@@ -169,14 +169,14 @@ export interface V2AccessResponseTeam {
169
169
  /** ID of the team into which the app is being installed or re-installed. */
170
170
  id: string;
171
171
  /** Name of the team into which the app is being installed or re-installed. */
172
- name?: string;
172
+ name?: string | undefined;
173
173
  }
174
174
  /** Details about the installing team, and the user token if one was requested at the start of the auth flow. */
175
175
  export interface V2AccessResponseEnterprise {
176
176
  /** ID of the enterprise into which the app is being installed or re-installed. */
177
177
  id: string;
178
178
  /** Name of the enterprise into which the app is being installed or re-installed. */
179
- name?: string;
179
+ name?: string | undefined;
180
180
  }
181
181
  /** The type of the access token. Only present if a user token was requested at the start of the auth flow. */
182
182
  export type V2AccessResponseAuthedUserTokenType = "user";
@@ -185,15 +185,15 @@ export interface V2AccessResponseAuthedUser {
185
185
  /** 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. */
186
186
  id: string;
187
187
  /** A user token. Only presented if requested at the start of the auth flow. */
188
- access_token?: string | Redacted.Redacted<string>;
188
+ access_token?: string | Redacted.Redacted<string> | undefined;
189
189
  /** The type of the access token. Only present if a user token was requested at the start of the auth flow. */
190
- token_type?: V2AccessResponseAuthedUserTokenType;
190
+ token_type?: V2AccessResponseAuthedUserTokenType | undefined;
191
191
  /** 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. */
192
- scope?: string;
192
+ scope?: string | undefined;
193
193
  /** Time until this credential expires, if it expires at all. */
194
- expires_in?: number;
194
+ expires_in?: number | undefined;
195
195
  /** Refresh token for this credential. */
196
- refresh_token?: string | Redacted.Redacted<string>;
196
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
197
197
  }
198
198
  /** Details about a newly-created incoming webhook. Only present if an incoming webhook was requested at the start of the auth flow. */
199
199
  export interface V2AccessResponseIncomingWebhook {
@@ -210,29 +210,29 @@ export interface V2AccessResponse {
210
210
  /** Always `true` (a failed call raises a typed error instead). */
211
211
  ok: boolean;
212
212
  /** A bot access token. Only present if requested at the start of the auth flow. */
213
- access_token?: string | Redacted.Redacted<string>;
213
+ access_token?: string | Redacted.Redacted<string> | undefined;
214
214
  /** The type of access token. Only present if a bot token was requested at the start of the auth flow. */
215
- token_type?: V2AccessResponseTokenType;
215
+ token_type?: V2AccessResponseTokenType | undefined;
216
216
  /** Comma-separated list of scopes granted to the token. Only present if a bot token was requested at the start of the auth flow. */
217
- scope?: string;
217
+ scope?: string | undefined;
218
218
  /** 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. */
219
- bot_user_id?: string;
219
+ bot_user_id?: string | undefined;
220
220
  /** The user ID of the bot user corresponding to the token. Only present during a refresh_token grant_type for a user access token. */
221
- user_id?: string;
221
+ user_id?: string | undefined;
222
222
  /** ID of the app being installed or re-installed. */
223
223
  app_id: string;
224
224
  /** Boolean flag indicating whether the generated token is Enterprise-level token or not. */
225
- is_enterprise_install?: boolean;
225
+ is_enterprise_install?: boolean | undefined;
226
226
  /** Time until this credential expires, if it expires at all. */
227
- expires_in?: number;
227
+ expires_in?: number | undefined;
228
228
  /** Refresh token for this credential. */
229
- refresh_token?: string | Redacted.Redacted<string>;
229
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
230
230
  team: V2AccessResponseTeam | null;
231
231
  enterprise: V2AccessResponseEnterprise | null;
232
232
  /** Details about the installing user, and the user token if one was requested at the start of the auth flow. */
233
- authed_user?: V2AccessResponseAuthedUser;
233
+ authed_user?: V2AccessResponseAuthedUser | undefined;
234
234
  /** Details about a newly-created incoming webhook. Only present if an incoming webhook was requested at the start of the auth flow. */
235
- incoming_webhook?: V2AccessResponseIncomingWebhook;
235
+ incoming_webhook?: V2AccessResponseIncomingWebhook | undefined;
236
236
  }
237
237
  export interface V2ExchangeRequest {
238
238
  /** Issued when you created your application. */
@@ -251,35 +251,35 @@ export interface V2ExchangeResponse {
251
251
  /** Comma-separated list of scopes granted to the token. */
252
252
  scope: string;
253
253
  /** The user ID of the bot user corresponding to the token. Only present if a legacy bot access token is being exchanged. */
254
- bot_user_id?: string;
254
+ bot_user_id?: string | undefined;
255
255
  /** The user ID of the user corresponding to the token. Only present if a legacy user access token is being exchanged. */
256
- user_id?: string;
256
+ user_id?: string | undefined;
257
257
  /** A new xoxe.xox(b|p) expiring access token to replace the legacy token. */
258
258
  access_token: string | Redacted.Redacted<string>;
259
259
  /** Duration (in seconds) until the new access token expires. */
260
260
  expires_in: number;
261
261
  /** The xoxe refresh token to obtain a new access token after the one returned expires. */
262
262
  refresh_token: string | Redacted.Redacted<string>;
263
- team?: unknown | null;
264
- enterprise?: unknown | null;
263
+ team?: unknown | null | undefined;
264
+ enterprise?: unknown | null | undefined;
265
265
  }
266
266
  export interface V2UserAccessRequest {
267
267
  /** 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. */
268
- client_id?: string;
268
+ client_id?: string | undefined;
269
269
  /** 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. */
270
- client_secret?: string | Redacted.Redacted<string>;
270
+ client_secret?: string | Redacted.Redacted<string> | undefined;
271
271
  /** The `code` param returned via the OAuth callback. */
272
- code?: string;
272
+ code?: string | undefined;
273
273
  /** The code_verifier param used to generate the code_challenge originally. Used for PKCE. */
274
- code_verifier?: string;
274
+ code_verifier?: string | undefined;
275
275
  /** This must match the originally submitted URI (if one was sent). */
276
- redirect_uri?: string;
276
+ redirect_uri?: string | undefined;
277
277
  /** The `grant_type` param as described in the OAuth spec. */
278
- grant_type?: string;
278
+ grant_type?: string | undefined;
279
279
  /** The `refresh_token` param as described in the OAuth spec. */
280
- refresh_token?: string | Redacted.Redacted<string>;
280
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
281
281
  /** Identity assertion JWT authorization grant. */
282
- assertion?: string;
282
+ assertion?: string | undefined;
283
283
  }
284
284
  /** The type of access token. */
285
285
  export type V2UserAccessResponseTokenType = "user";
@@ -295,7 +295,7 @@ export interface V2UserAccessResponse {
295
295
  /** The type of access token. */
296
296
  token_type: V2UserAccessResponseTokenType;
297
297
  /** Comma-separated list of scopes granted to the token. */
298
- scope?: string;
298
+ scope?: string | undefined;
299
299
  /** The user ID of the user corresponding to the token. */
300
300
  user_id: string;
301
301
  /** ID of the app being installed or re-installed. */
@@ -303,9 +303,9 @@ export interface V2UserAccessResponse {
303
303
  /** Boolean flag indicating whether the generated token is enterprise level token or not */
304
304
  is_enterprise_install: boolean;
305
305
  /** Time until this credential expires, if it expires at all */
306
- expires_in?: number;
306
+ expires_in?: number | undefined;
307
307
  /** Refresh token for this credential */
308
- refresh_token?: string | Redacted.Redacted<string>;
308
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
309
309
  team: V2AccessResponseTeam | null;
310
310
  enterprise: V2AccessResponseEnterprise | null;
311
311
  }
@@ -395,7 +395,7 @@ export const v2Exchange: API.OperationMethod<
395
395
  }));
396
396
 
397
397
  export type V2UserAccessError = SlackOpError;
398
- /** 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. - `invalid_resource` -- The `resource` in the assertion is malformed, or is not a resource tokens can be issued for. - `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 - `app_not_admin_approved` -- The app has not been approved by an org admin, so no tokens can be issued for this user. Ask an org admin to approve the app before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `app_not_org_installed` -- The app is not installed at the organization level. Using the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant type requires org level app installs. - `client_id_mismatch` -- Value passed for `client_id` did not match the `client_id` in the assertion. - `ema_disabled` -- Enterprise-managed auth is disabled. - `ema_issuer_mismatch` -- The issuer in the assertion did not match the issuer configured for enterprise-managed auth. - `invalid_audience` -- The audience in the assertion is not one this token endpoint supports. - `missing_scope` -- Missing `scope` in the assertion. The identity assertion JWT must carry a space-delimited `scope` claim. - `no_app_scopes_requested` -- None of the scopes requested in the identity assertion are configured on the app. Request only scopes the app already declares. - `no_approved_scopes_requested` -- The app is approved by org admins, but none of the requested scopes are approved ones. Ask an org admin to approve the requested scopes. - `no_assertion` -- Missing `assertion` in the request. - `user_not_authenticated` -- The user has never authenticated via single sign-on. See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
398
+ /** 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, or the `client_id` in the assertion is not a string. - `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. - `invalid_resource` -- The `resource` in the assertion is malformed, or is not a resource tokens can be issued for. - `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 - `app_not_admin_approved` -- The app has not been approved by an org admin, so no tokens can be issued for this user. Ask an org admin to approve the app before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `app_not_org_installed` -- The app is not installed at the organization level. Using the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant type requires org level app installs. - `client_id_mismatch` -- Value passed for `client_id` did not match the `client_id` in the assertion. - `ema_disabled` -- Enterprise-managed auth is disabled. - `ema_issuer_mismatch` -- The issuer in the assertion did not match the issuer configured for enterprise-managed auth. - `invalid_audience` -- The audience in the assertion is not one this token endpoint supports. - `missing_scope` -- Missing `scope` in the assertion. The identity assertion JWT must carry a space-delimited `scope` claim. - `no_app_scopes_requested` -- None of the scopes requested in the identity assertion are configured on the app. Request only scopes the app already declares. - `no_approved_scopes_requested` -- The app is approved by org admins, but none of the requested scopes are approved ones. Ask an org admin to approve the requested scopes. - `no_assertion` -- Missing `assertion` in the request. - `user_not_authenticated` -- The user has never authenticated via single sign-on. - `no_idp_config_for_entity_id` -- No Enterprise-Managed Authorization (cross-app access) configuration is bound to the identity provider's SAML EntityID carried in the assertion's `sub_id`. An org admin must configure External Identity / cross-app access for that identity provider before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `ema_tenant_mismatch` -- The `aud_tenant` in an assertion without a `sub_id` is missing, or is not the ID of the organization or workspace whose identity provider issued it. - `invalid_aud_tenant` -- The `aud_tenant` in the assertion is not a string. It must be the ID of the organization or workspace whose identity provider issued the assertion. - `invalid_email` -- The `email` in the assertion is not a string. - `invalid_issuer` -- The `iss` in the assertion is not a string. It must be the issuer URL of the identity provider that issued the assertion. - `invalid_jti` -- The `jti` in the assertion is not a string. It must be a unique identifier for the assertion. - `invalid_scope` -- The `scope` in the assertion is not a string. It must be a space-delimited list of scopes. - `invalid_sub` -- The `sub` in the assertion is not a string. - `invalid_sub_id_format` -- The `format` of the `sub_id` in the assertion is not a string. The only supported format is `saml-nameid`. - `missing_audience` -- Missing `aud` in the assertion. It must name this token endpoint as an audience. - `missing_client_id` -- Missing `client_id` in the assertion. It must match the `client_id` of the app requesting the token. See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
399
399
  export const v2UserAccess: API.OperationMethod<
400
400
  V2UserAccessRequest,
401
401
  V2UserAccessResponse,
@@ -29,19 +29,19 @@ const TELEMETRY = {
29
29
  export type ConnectTokenRequestGrantType = "authorization_code" | "refresh_token";
30
30
  export interface ConnectTokenRequest {
31
31
  /** Issued when you created your application. */
32
- client_id?: string;
32
+ client_id?: string | undefined;
33
33
  /** Issued when you created your application. */
34
- client_secret?: string | Redacted.Redacted<string>;
34
+ client_secret?: string | Redacted.Redacted<string> | undefined;
35
35
  /** The `code` param returned via the OAuth callback. */
36
- code?: string;
36
+ code?: string | undefined;
37
37
  /** This must match the originally submitted URI (if one was sent). */
38
- redirect_uri?: string;
38
+ redirect_uri?: string | undefined;
39
39
  /** The `grant_type` param as described in the OAuth spec. */
40
- grant_type?: ConnectTokenRequestGrantType | (string & {});
40
+ grant_type?: ConnectTokenRequestGrantType | (string & {}) | undefined;
41
41
  /** The `refresh_token` param as described in the OAuth spec. */
42
- refresh_token?: string | Redacted.Redacted<string>;
42
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
43
43
  /** PKCE code verifier (RFC 7636). Required when the authorization request included a `code_challenge`. */
44
- code_verifier?: string;
44
+ code_verifier?: string | undefined;
45
45
  }
46
46
  export type ConnectTokenResponseTokenType = "Bearer";
47
47
  export interface ConnectTokenResponse {
@@ -49,12 +49,12 @@ export interface ConnectTokenResponse {
49
49
  ok: boolean;
50
50
  access_token: string | Redacted.Redacted<string>;
51
51
  token_type: ConnectTokenResponseTokenType;
52
- id_token?: string;
53
- state?: string;
52
+ id_token?: string | undefined;
53
+ state?: string | undefined;
54
54
  /** Time until this credential expires, if it expires at all */
55
- expires_in?: number;
55
+ expires_in?: number | undefined;
56
56
  /** Refresh token for this credential */
57
- refresh_token?: string | Redacted.Redacted<string>;
57
+ refresh_token?: string | Redacted.Redacted<string> | undefined;
58
58
  }
59
59
  export interface UserInfoRequest {}
60
60
  export interface UserInfoResponse {
@@ -62,35 +62,35 @@ export interface UserInfoResponse {
62
62
  ok: boolean;
63
63
  sub: string;
64
64
  https___slack_com_user_id: string;
65
- https___slack_com_team_id?: string;
66
- https___slack_com_enterprise_id?: string;
67
- email?: string;
68
- email_verified?: boolean;
69
- date_email_verified?: number;
70
- locale?: string;
71
- name?: string;
72
- given_name?: string;
73
- family_name?: string;
74
- picture?: string;
75
- https___slack_com_user_image_24?: string;
76
- https___slack_com_user_image_32?: string;
77
- https___slack_com_user_image_48?: string;
78
- https___slack_com_user_image_72?: string;
79
- https___slack_com_user_image_192?: string;
80
- https___slack_com_user_image_512?: string;
81
- https___slack_com_user_image_1024?: string;
82
- https___slack_com_team_name?: string;
83
- https___slack_com_team_domain?: string;
84
- https___slack_com_enterprise_name?: string;
85
- https___slack_com_enterprise_domain?: string;
86
- https___slack_com_team_image_34?: string;
87
- https___slack_com_team_image_44?: string;
88
- https___slack_com_team_image_68?: string;
89
- https___slack_com_team_image_88?: string;
90
- https___slack_com_team_image_102?: string;
91
- https___slack_com_team_image_132?: string;
92
- https___slack_com_team_image_230?: string;
93
- https___slack_com_team_image_default?: boolean;
65
+ https___slack_com_team_id?: string | undefined;
66
+ https___slack_com_enterprise_id?: string | undefined;
67
+ email?: string | undefined;
68
+ email_verified?: boolean | undefined;
69
+ date_email_verified?: number | undefined;
70
+ locale?: string | undefined;
71
+ name?: string | undefined;
72
+ given_name?: string | undefined;
73
+ family_name?: string | undefined;
74
+ picture?: string | undefined;
75
+ https___slack_com_user_image_24?: string | undefined;
76
+ https___slack_com_user_image_32?: string | undefined;
77
+ https___slack_com_user_image_48?: string | undefined;
78
+ https___slack_com_user_image_72?: string | undefined;
79
+ https___slack_com_user_image_192?: string | undefined;
80
+ https___slack_com_user_image_512?: string | undefined;
81
+ https___slack_com_user_image_1024?: string | undefined;
82
+ https___slack_com_team_name?: string | undefined;
83
+ https___slack_com_team_domain?: string | undefined;
84
+ https___slack_com_enterprise_name?: string | undefined;
85
+ https___slack_com_enterprise_domain?: string | undefined;
86
+ https___slack_com_team_image_34?: string | undefined;
87
+ https___slack_com_team_image_44?: string | undefined;
88
+ https___slack_com_team_image_68?: string | undefined;
89
+ https___slack_com_team_image_88?: string | undefined;
90
+ https___slack_com_team_image_102?: string | undefined;
91
+ https___slack_com_team_image_132?: string | undefined;
92
+ https___slack_com_team_image_230?: string | undefined;
93
+ https___slack_com_team_image_default?: boolean | undefined;
94
94
  }
95
95
  export type ConnectTokenError = SlackOpError;
96
96
  /** Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- The value passed for `client_secret` was invalid. - `bad_redirect_uri` -- The value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- An org-installed app cannot be installed on a workspace. - `invalid_client` -- Client authentication failed (unknown `client_id` or bad `client_secret`). - `invalid_client_id` -- The value passed for `client_id` was invalid. - `invalid_code` -- The value passed for `code` was invalid. - `invalid_grant` -- The authorization code is invalid, expired, revoked, or the PKCE `code_verifier` does not match. - `invalid_grant_type` -- The value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `invalid_request` -- The request is missing a required parameter or includes an invalid parameter value. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization URL. The flow must be initiated via /openid/connect/authorize . - `preview_feature_not_available` -- The API method is not yet available on the team. - `unsupported_grant_type` -- The `grant_type` is not supported by this endpoint. See https://docs.slack.dev/reference/methods/openid.connect.token */
@@ -25,10 +25,10 @@ const TELEMETRY = {
25
25
  } as const;
26
26
 
27
27
  export interface AddPinRequest {
28
- /** Channel to pin the messsage to. You must also include a `timestamp` when pinning messages. */
28
+ /** Channel to pin the message to. You must also include a `timestamp` when pinning messages. */
29
29
  channel: string;
30
30
  /** Timestamp of the message to pin. You must also include the `channel`. */
31
- timestamp?: string;
31
+ timestamp?: string | undefined;
32
32
  }
33
33
  export interface AddPinResponse {
34
34
  /** Always `true` (a failed call raises a typed error instead). */
@@ -43,23 +43,23 @@ export interface ListPinsResponseItemsItem {
43
43
  type: ListPinsResponseItemsItemType;
44
44
  created: number;
45
45
  created_by: string;
46
- channel?: string;
47
- message?: unknown;
48
- file?: unknown;
49
- comment?: string;
46
+ channel?: string | undefined;
47
+ message?: unknown | undefined;
48
+ file?: unknown | undefined;
49
+ comment?: string | undefined;
50
50
  }
51
51
  export type ListPinsResponseItemsList = Array<ListPinsResponseItemsItem>;
52
52
  export interface ListPinsResponse {
53
53
  /** Always `true` (a failed call raises a typed error instead). */
54
54
  ok: boolean;
55
- items?: ListPinsResponseItemsList;
56
- count?: number;
55
+ items?: ListPinsResponseItemsList | undefined;
56
+ count?: number | undefined;
57
57
  }
58
58
  export interface RemovePinRequest {
59
59
  /** Channel where the item is pinned to. */
60
60
  channel: string;
61
61
  /** Timestamp of the message to un-pin. */
62
- timestamp?: string;
62
+ timestamp?: string | undefined;
63
63
  }
64
64
  export interface RemovePinResponse {
65
65
  /** Always `true` (a failed call raises a typed error instead). */
@@ -39,65 +39,65 @@ export interface AddReactionResponse {
39
39
  }
40
40
  export interface GetReactionRequest {
41
41
  /** Channel where the message to get reactions for was posted. */
42
- channel?: string;
42
+ channel?: string | undefined;
43
43
  /** File to get reactions for. */
44
- file?: string;
44
+ file?: string | undefined;
45
45
  /** File comment to get reactions for. */
46
- file_comment?: string;
46
+ file_comment?: string | undefined;
47
47
  /** If true always return the complete reaction list. */
48
- full?: boolean;
48
+ full?: boolean | undefined;
49
49
  /** Timestamp of the message to get reactions for. */
50
- timestamp?: string;
50
+ timestamp?: string | undefined;
51
51
  }
52
52
  export interface GetReactionResponse {
53
53
  /** Always `true` (a failed call raises a typed error instead). */
54
54
  ok: boolean;
55
- comment?: unknown;
56
- message?: unknown;
55
+ comment?: unknown | undefined;
56
+ message?: unknown | undefined;
57
57
  type: string;
58
- channel?: string;
59
- file?: unknown;
58
+ channel?: string | undefined;
59
+ file?: unknown | undefined;
60
60
  }
61
61
  export interface ListReactionsRequest {
62
62
  /** Show reactions made by this user. Defaults to the authed user. */
63
- user?: string;
63
+ user?: string | undefined;
64
64
  /** If true always return the complete reaction list. */
65
- full?: boolean;
66
- count?: number;
67
- page?: number;
65
+ full?: boolean | undefined;
66
+ count?: number | undefined;
67
+ page?: number | undefined;
68
68
  /** Parameter for pagination. Set `cursor` equal to the `next_cursor` attribute returned by the previous request's `response_metadata`. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more details. */
69
- cursor?: string;
69
+ cursor?: string | undefined;
70
70
  /** 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. */
71
- limit?: number;
71
+ limit?: number | undefined;
72
72
  /** encoded team id to list reactions in, required if org token is used */
73
- team_id?: string;
73
+ team_id?: string | undefined;
74
74
  }
75
75
  export type ListReactionsResponseItemsItemMap = { [key: string]: unknown | undefined };
76
76
  export type ListReactionsResponseItemsList = Array<ListReactionsResponseItemsItemMap>;
77
77
  /** Pagination metadata. An empty `next_cursor` means the last page. */
78
78
  export interface ListReactionsResponseResponseMetadata {
79
79
  /** Cursor for the next page -- pass as `cursor` on the next call. */
80
- next_cursor?: string;
80
+ next_cursor?: string | undefined;
81
81
  }
82
82
  export interface ListReactionsResponse {
83
83
  /** Always `true` (a failed call raises a typed error instead). */
84
84
  ok: boolean;
85
85
  items: ListReactionsResponseItemsList;
86
- paging?: unknown;
86
+ paging?: unknown | undefined;
87
87
  /** Pagination metadata. An empty `next_cursor` means the last page. */
88
- response_metadata?: ListReactionsResponseResponseMetadata;
88
+ response_metadata?: ListReactionsResponseResponseMetadata | undefined;
89
89
  }
90
90
  export interface RemoveReactionRequest {
91
91
  /** Reaction (emoji) name. */
92
92
  name: string;
93
93
  /** File to remove reaction from. */
94
- file?: string;
94
+ file?: string | undefined;
95
95
  /** File comment to remove reaction from. */
96
- file_comment?: string;
96
+ file_comment?: string | undefined;
97
97
  /** Channel where the message to remove reaction from was posted. */
98
- channel?: string;
98
+ channel?: string | undefined;
99
99
  /** Timestamp of the message to remove reaction from. */
100
- timestamp?: string;
100
+ timestamp?: string | undefined;
101
101
  }
102
102
  export interface RemoveReactionResponse {
103
103
  /** Always `true` (a failed call raises a typed error instead). */
@@ -30,11 +30,11 @@ export interface AddReminderRequest {
30
30
  /** Can also take a type of integer. When this reminder should happen: the Unix timestamp (up to five years from now), the number of seconds until the reminder (if within 24 hours), or a natural language description (Ex. "in 15 minutes," or "every Thursday") */
31
31
  time: string;
32
32
  /** No longer supported - reminders cannot be set for other users. Previously, was the user who would receive the reminder. */
33
- user?: string;
33
+ user?: string | undefined;
34
34
  /** Encoded team id, required if org token is used */
35
- team_id?: string;
35
+ team_id?: string | undefined;
36
36
  /** Specify the repeating behavior of a reminder. Available options: `daily`, `weekly`, `monthly`, or `yearly`. If `weekly`, may further specify the days of the week. */
37
- recurrence?: unknown;
37
+ recurrence?: unknown | undefined;
38
38
  }
39
39
  export interface AddReminderResponse {
40
40
  /** Always `true` (a failed call raises a typed error instead). */
@@ -45,7 +45,7 @@ export interface CompleteReminderRequest {
45
45
  /** The ID of the reminder to be marked as complete */
46
46
  reminder: string;
47
47
  /** Encoded team id, required if org token is used */
48
- team_id?: string;
48
+ team_id?: string | undefined;
49
49
  }
50
50
  export interface CompleteReminderResponse {
51
51
  /** Always `true` (a failed call raises a typed error instead). */
@@ -55,7 +55,7 @@ export interface DeleteReminderRequest {
55
55
  /** The ID of the reminder */
56
56
  reminder: string;
57
57
  /** Encoded team id, required if org token is used */
58
- team_id?: string;
58
+ team_id?: string | undefined;
59
59
  }
60
60
  export interface DeleteReminderResponse {
61
61
  /** Always `true` (a failed call raises a typed error instead). */
@@ -63,19 +63,19 @@ export interface DeleteReminderResponse {
63
63
  }
64
64
  export interface ListRemindersRequest {
65
65
  /** Encoded team id, required if org token is passed */
66
- team_id?: string;
66
+ team_id?: string | undefined;
67
67
  }
68
68
  export type ListRemindersResponseRemindersList = Array<unknown>;
69
69
  export interface ListRemindersResponse {
70
70
  /** Always `true` (a failed call raises a typed error instead). */
71
71
  ok: boolean;
72
- reminders?: ListRemindersResponseRemindersList;
72
+ reminders?: ListRemindersResponseRemindersList | undefined;
73
73
  }
74
74
  export interface RemindersInfoRequest {
75
75
  /** The ID of the reminder */
76
76
  reminder: string;
77
77
  /** Encoded team id, required if org token is passed */
78
- team_id?: string;
78
+ team_id?: string | undefined;
79
79
  }
80
80
  export interface RemindersInfoResponse {
81
81
  /** Always `true` (a failed call raises a typed error instead). */