vercel-api-js 0.1.16 → 0.1.17

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.
package/dist/index.cjs CHANGED
@@ -138,162 +138,82 @@ const artifactQuery = (variables, signal) => fetch$1({
138
138
  signal
139
139
  });
140
140
  /**
141
- * Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user is an owner of the deployment.
142
- */
143
- const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{idOrUrl}', method: 'get', ...variables, signal });
144
- /**
145
- * Create a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
146
- */
147
- const createDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments', method: 'post', ...variables, signal });
148
- /**
149
- * This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
150
- */
151
- const cancelDeployment = (variables, signal) => fetch$1({ url: '/v12/deployments/{id}/cancel', method: 'patch', ...variables, signal });
152
- /**
153
- * Get cert by id
141
+ * List all of the checks created for a deployment.
154
142
  */
155
- const getCertById = (variables, signal) => fetch$1({
156
- url: '/v7/certs/{id}',
143
+ const getAllChecks = (variables, signal) => fetch$1({
144
+ url: '/v1/deployments/{deploymentId}/checks',
157
145
  method: 'get',
158
146
  ...variables,
159
147
  signal
160
148
  });
161
149
  /**
162
- * Remove cert
163
- */
164
- const removeCert = (variables, signal) => fetch$1({
165
- url: '/v7/certs/{id}',
166
- method: 'delete',
167
- ...variables,
168
- signal
169
- });
170
- /**
171
- * Upload a cert
172
- */
173
- const uploadCert = (variables, signal) => fetch$1({
174
- url: '/v7/certs',
175
- method: 'put',
176
- ...variables,
177
- signal
178
- });
179
- /**
180
- * Issue a new cert
181
- */
182
- const issueCert = (variables, signal) => fetch$1({
183
- url: '/v7/certs',
184
- method: 'post',
185
- ...variables,
186
- signal
187
- });
188
- /**
189
- * Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
190
- */
191
- const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
192
- /**
193
- * Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the `teamId` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
150
+ * Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
194
151
  */
195
- const listUserEvents = (variables, signal) => fetch$1({
196
- url: '/v3/events',
197
- method: 'get',
198
- ...variables,
199
- signal
200
- });
152
+ const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
201
153
  /**
202
- * Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
154
+ * Return a detailed response for a single check.
203
155
  */
204
- const listAliases = (variables, signal) => fetch$1({
205
- url: '/v4/aliases',
156
+ const getCheck = (variables, signal) => fetch$1({
157
+ url: '/v1/deployments/{deploymentId}/checks/{checkId}',
206
158
  method: 'get',
207
159
  ...variables,
208
160
  signal
209
161
  });
210
162
  /**
211
- * Retrieves an Alias for the given host name or alias ID.
163
+ * Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
212
164
  */
213
- const getAlias = (variables, signal) => fetch$1({
214
- url: '/v4/aliases/{idOrAlias}',
215
- method: 'get',
216
- ...variables,
217
- signal
218
- });
165
+ const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}', method: 'patch', ...variables, signal });
219
166
  /**
220
- * Delete an Alias with the specified ID.
167
+ * Rerequest a selected check that has failed.
221
168
  */
222
- const deleteAlias = (variables, signal) => fetch$1({
223
- url: '/v2/aliases/{aliasId}',
224
- method: 'delete',
169
+ const rerequestCheck = (variables, signal) => fetch$1({
170
+ url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest',
171
+ method: 'post',
225
172
  ...variables,
226
173
  signal
227
174
  });
228
175
  /**
229
- * Retrieves all Aliases for the Deployment with the given ID. The authenticated User must own the deployment.
230
- */
231
- const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
232
- /**
233
- * Creates a new alias for the deployment with the given deployment ID. The authenticated user must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one.
176
+ * Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
234
177
  */
235
- const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
178
+ const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
236
179
  /**
237
- * Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
180
+ * Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user is an owner of the deployment.
238
181
  */
239
- const uploadFile = (variables, signal) => fetch$1({ url: '/v2/files', method: 'post', ...variables, signal });
182
+ const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{idOrUrl}', method: 'get', ...variables, signal });
240
183
  /**
241
- * Retrieves information related to the currently authenticated User.
184
+ * Create a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
242
185
  */
243
- const getAuthUser = (variables, signal) => fetch$1({
244
- url: '/v2/user',
245
- method: 'get',
246
- ...variables,
247
- signal
248
- });
186
+ const createDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments', method: 'post', ...variables, signal });
249
187
  /**
250
- * Initiates the deletion process for the currently authenticated User, by sending a deletion confirmation email. The email contains a link that the user needs to visit in order to proceed with the deletion process.
188
+ * This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
251
189
  */
252
- const requestDelete = (variables, signal) => fetch$1({
253
- url: '/v1/user',
254
- method: 'delete',
255
- ...variables,
256
- signal
257
- });
190
+ const cancelDeployment = (variables, signal) => fetch$1({ url: '/v12/deployments/{id}/cancel', method: 'patch', ...variables, signal });
258
191
  /**
259
- * Retrieve a list of the current User's authentication tokens.
192
+ * Allows to purchase the specified domain.
260
193
  */
261
- const listAuthTokens = (variables, signal) => fetch$1({
262
- url: '/v5/user/tokens',
263
- method: 'get',
194
+ const buyDomain = (variables, signal) => fetch$1({
195
+ url: '/v4/domains/buy',
196
+ method: 'post',
264
197
  ...variables,
265
198
  signal
266
199
  });
267
200
  /**
268
- * Creates and returns a new authentication token for the currently authenticated User. The `bearerToken` property is only provided once, in the response body, so be sure to save it on the client for use with API requests.
269
- */
270
- const createAuthToken = (variables, signal) => fetch$1({ url: '/v3/user/tokens', method: 'post', ...variables, signal });
271
- /**
272
- * Retrieve metadata about an authentication token belonging to the currently authenticated User.
201
+ * Check the price to purchase a domain and how long a single purchase period is.
273
202
  */
274
- const getAuthToken = (variables, signal) => fetch$1({
275
- url: '/v5/user/tokens/{tokenId}',
203
+ const checkDomainPrice = (variables, signal) => fetch$1({
204
+ url: '/v4/domains/price',
276
205
  method: 'get',
277
206
  ...variables,
278
207
  signal
279
208
  });
280
209
  /**
281
- * Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
210
+ * Creates a DNS record for a domain.
282
211
  */
283
- const deleteAuthToken = (variables, signal) => fetch$1({
284
- url: '/v3/user/tokens/{tokenId}',
285
- method: 'delete',
286
- ...variables,
287
- signal
288
- });
212
+ const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}/records', method: 'post', ...variables, signal });
289
213
  /**
290
214
  * Retrieves a list of DNS records created for a domain name. By default it returns 20 records if no limit is provided. The rest can be retrieved using the pagination options.
291
215
  */
292
216
  const getRecords = (variables, signal) => fetch$1({ url: '/v4/domains/{domain}/records', method: 'get', ...variables, signal });
293
- /**
294
- * Creates a DNS record for a domain.
295
- */
296
- const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}/records', method: 'post', ...variables, signal });
297
217
  /**
298
218
  * Updates an existing DNS record for a domain name.
299
219
  */
@@ -316,24 +236,6 @@ const checkDomainStatus = (variables, signal) => fetch$1({
316
236
  ...variables,
317
237
  signal
318
238
  });
319
- /**
320
- * Check the price to purchase a domain and how long a single purchase period is.
321
- */
322
- const checkDomainPrice = (variables, signal) => fetch$1({
323
- url: '/v4/domains/price',
324
- method: 'get',
325
- ...variables,
326
- signal
327
- });
328
- /**
329
- * Allows to purchase the specified domain.
330
- */
331
- const buyDomain = (variables, signal) => fetch$1({
332
- url: '/v4/domains/buy',
333
- method: 'post',
334
- ...variables,
335
- signal
336
- });
337
239
  /**
338
240
  * Get a Domain's configuration.
339
241
  */
@@ -370,58 +272,140 @@ const deleteDomain = (variables, signal) => fetch$1({
370
272
  signal
371
273
  });
372
274
  /**
373
- * Retrieves the active Vercel secrets for the authenticated user. By default it returns 20 secrets. The rest can be retrieved using the pagination options. The body will contain an entry for each secret.
275
+ * Returns all Edge Configs.
374
276
  */
375
- const getSecrets = (variables, signal) => fetch$1({
376
- url: '/v3/secrets',
277
+ const getEdgeConfigs = (variables, signal) => fetch$1({
278
+ url: '/v1/edge-config',
377
279
  method: 'get',
378
280
  ...variables,
379
281
  signal
380
282
  });
381
283
  /**
382
- * Allows to create a new secret.
284
+ * Creates an Edge Config.
383
285
  */
384
- const createSecret = (variables, signal) => fetch$1({
385
- url: '/v2/secrets/{name}',
386
- method: 'post',
286
+ const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
287
+ /**
288
+ * Returns an Edge Config.
289
+ */
290
+ const getEdgeConfig = (variables, signal) => fetch$1({
291
+ url: '/v1/edge-config/{edgeConfigId}',
292
+ method: 'get',
387
293
  ...variables,
388
294
  signal
389
295
  });
390
296
  /**
391
- * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
297
+ * Updates an Edge Config.
392
298
  */
393
- const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
299
+ const updateEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}', method: 'put', ...variables, signal });
394
300
  /**
395
- * Retrieves the information for a specific secret by passing either the secret id or name in the URL.
301
+ * Delete an Edge Config by id.
396
302
  */
397
- const getSecret = (variables, signal) => fetch$1({
398
- url: '/v3/secrets/{idOrName}',
303
+ const deleteEdgeConfig = (variables, signal) => fetch$1({
304
+ url: '/v1/edge-config/{edgeConfigId}',
305
+ method: 'delete',
306
+ ...variables,
307
+ signal
308
+ });
309
+ /**
310
+ * Returns all items of an Edge Config.
311
+ */
312
+ const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
313
+ /**
314
+ * Update multiple Edge Config Items in batch.
315
+ */
316
+ const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'patch', ...variables, signal });
317
+ /**
318
+ * Returns a specific Edge Config Item.
319
+ */
320
+ const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
321
+ /**
322
+ * Returns all tokens of an Edge Config.
323
+ */
324
+ const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
325
+ /**
326
+ * Deletes one or more tokens of an existing Edge Config.
327
+ */
328
+ const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
329
+ /**
330
+ * Return meta data about an Edge Config token.
331
+ */
332
+ const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
333
+ /**
334
+ * Adds a token to an existing Edge Config.
335
+ */
336
+ const createEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token', method: 'post', ...variables, signal });
337
+ /**
338
+ * Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the `teamId` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
339
+ */
340
+ const listUserEvents = (variables, signal) => fetch$1({
341
+ url: '/v3/events',
399
342
  method: 'get',
400
343
  ...variables,
401
344
  signal
402
345
  });
403
346
  /**
404
- * This deletes the user's secret defined in the URL.
347
+ * Allows to retrieve all configurations for an authenticated integration. When the `project` view is used, configurations generated for the authorization flow will be filtered out of the results.
405
348
  */
406
- const deleteSecret = (variables, signal) => fetch$1({
407
- url: '/v2/secrets/{idOrName}',
408
- method: 'delete',
349
+ const getConfigurations = (variables, signal) => fetch$1({ url: '/v1/integrations/configurations', method: 'get', ...variables, signal });
350
+ /**
351
+ * Allows to retrieve a the configuration with the provided id in case it exists. The authenticated user or team must be the owner of the config in order to access it.
352
+ */
353
+ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'get', ...variables, signal });
354
+ /**
355
+ * Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
356
+ */
357
+ const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
358
+ /**
359
+ * Retrieves a list of all Integration log drains that are defined for the authorized account. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
360
+ */
361
+ const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
362
+ /**
363
+ * Creates an Integration log drain. This endpoint must be called with an OAuth2 client (integration), since log drains are tied to integrations. If it is called with a different token type it will produce a 400 error.
364
+ */
365
+ const createLogDrain = (variables, signal) => fetch$1({
366
+ url: '/v2/integrations/log-drains',
367
+ method: 'post',
409
368
  ...variables,
410
369
  signal
411
370
  });
412
371
  /**
413
- * This API allows you to delete a deployment, either by supplying its `id` in the URL or the `url` of the deployment as a query parameter. You can obtain the ID, for example, by listing all deployments.
372
+ * Deletes the Integration log drain with the provided `id`. When using an OAuth2 Token, the log drain can be deleted only if the integration owns it.
414
373
  */
415
- const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
374
+ const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
416
375
  /**
417
- * List deployments under the account corresponding to the API token. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
376
+ * Lists git namespaces for a supported provider. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
418
377
  */
419
- const getDeployments = (variables, signal) => fetch$1({
420
- url: '/v6/deployments',
378
+ const gitNamespaces = (variables, signal) => fetch$1({
379
+ url: '/v1/integrations/git-namespaces',
421
380
  method: 'get',
422
381
  ...variables,
423
382
  signal
424
383
  });
384
+ /**
385
+ * Lists git repositories linked to a namespace `id` for a supported provider. A specific namespace `id` can be obtained via the `git-namespaces` endpoint. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.
386
+ */
387
+ const searchRepo = (variables, signal) => fetch$1({
388
+ url: '/v1/integrations/search-repo',
389
+ method: 'get',
390
+ ...variables,
391
+ signal
392
+ });
393
+ /**
394
+ * Retrieves a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
395
+ */
396
+ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'get', ...variables, signal });
397
+ /**
398
+ * Deletes a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be deleted.
399
+ */
400
+ const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
401
+ /**
402
+ * Retrieves a list of Configurable Log Drains. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
403
+ */
404
+ const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'get', ...variables, signal });
405
+ /**
406
+ * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
407
+ */
408
+ const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
425
409
  /**
426
410
  * Allows to retrieve the list of projects of the authenticated user. The list will be paginated and the provided query parameters allow filtering the returned projects.
427
411
  */
@@ -512,221 +496,264 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
512
496
  */
513
497
  const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
514
498
  /**
515
- * Verify the user accepted the login request and get a authentication token. The user email address and the token received after requesting the login must be added to the URL as a query string with the names `email` and `token`.
499
+ * Get a paginated list of team members for the provided team.
516
500
  */
517
- const verifyToken = (variables, signal) => fetch$1({
518
- url: '/registration/verify',
501
+ const getTeamMembers = (variables, signal) => fetch$1({
502
+ url: '/v2/teams/{teamId}/members',
519
503
  method: 'get',
520
504
  ...variables,
521
505
  signal
522
506
  });
523
507
  /**
524
- * Request a new login for a user to get a token. This will respond with a verification token and send an email to confirm the request. Once confirmed you can use the verification token to get an authentication token.
508
+ * Invite a user to join the team specified in the URL. The authenticated user needs to be an `OWNER` in order to successfully invoke this endpoint. The user can be specified with an email or an ID. If both email and ID are provided, ID will take priority.
525
509
  */
526
- const emailLogin = (variables, signal) => fetch$1({
527
- url: '/registration',
510
+ const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
511
+ /**
512
+ * Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.
513
+ */
514
+ const requestAccessToTeam = (variables, signal) => fetch$1({
515
+ url: '/v1/teams/{teamId}/request',
528
516
  method: 'post',
529
517
  ...variables,
530
518
  signal
531
519
  });
532
520
  /**
533
- * Allows to retrieve all configurations for an authenticated integration. When the `project` view is used, configurations generated for the authorization flow will be filtered out of the results.
534
- */
535
- const getConfigurations = (variables, signal) => fetch$1({ url: '/v1/integrations/configurations', method: 'get', ...variables, signal });
536
- /**
537
- * Allows to retrieve a the configuration with the provided id in case it exists. The authenticated user or team must be the owner of the config in order to access it.
521
+ * Check the status of a join request. It'll respond with a 404 if the request has been declined. If no `userId` path segment was provided, this endpoint will instead return the status of the authenticated user.
538
522
  */
539
- const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'get', ...variables, signal });
523
+ const getTeamAccessRequest = (variables, signal) => fetch$1({
524
+ url: '/v1/teams/{teamId}/request/{userId}',
525
+ method: 'get',
526
+ ...variables,
527
+ signal
528
+ });
540
529
  /**
541
- * Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
530
+ * Join a team with a provided invite code or team ID.
542
531
  */
543
- const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
532
+ const joinTeam = (variables, signal) => fetch$1({
533
+ url: '/v1/teams/{teamId}/members/teams/join',
534
+ method: 'post',
535
+ ...variables,
536
+ signal
537
+ });
544
538
  /**
545
- * Retrieves a list of all Integration log drains that are defined for the authorized account. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
539
+ * Update the membership of a Team Member on the Team specified by `teamId`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an `OWNER` of the Team.
546
540
  */
547
- const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
541
+ const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
548
542
  /**
549
- * Creates an Integration log drain. This endpoint must be called with an OAuth2 client (integration), since log drains are tied to integrations. If it is called with a different token type it will produce a 400 error.
543
+ * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
550
544
  */
551
- const createLogDrain = (variables, signal) => fetch$1({
552
- url: '/v2/integrations/log-drains',
553
- method: 'post',
545
+ const removeTeamMember = (variables, signal) => fetch$1({
546
+ url: '/v1/teams/{teamId}/members/{uid}',
547
+ method: 'delete',
554
548
  ...variables,
555
549
  signal
556
550
  });
557
551
  /**
558
- * Deletes the Integration log drain with the provided `id`. When using an OAuth2 Token, the log drain can be deleted only if the integration owns it.
552
+ * Get information for the Team specified by the `teamId` parameter.
559
553
  */
560
- const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
554
+ const getTeam = (variables, signal) => fetch$1({
555
+ url: '/v2/teams/{teamId}',
556
+ method: 'get',
557
+ ...variables,
558
+ signal
559
+ });
561
560
  /**
562
- * Lists git namespaces for a supported provider. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
561
+ * Update the information of a Team specified by the `teamId` parameter. The request body should contain the information that will be updated on the Team.
563
562
  */
564
- const gitNamespaces = (variables, signal) => fetch$1({
565
- url: '/v1/integrations/git-namespaces',
566
- method: 'get',
563
+ const patchTeam = (variables, signal) => fetch$1({
564
+ url: '/v2/teams/{teamId}',
565
+ method: 'patch',
567
566
  ...variables,
568
567
  signal
569
568
  });
570
569
  /**
571
- * Lists git repositories linked to a namespace `id` for a supported provider. A specific namespace `id` can be obtained via the `git-namespaces` endpoint. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.
570
+ * Get a paginated list of all the Teams the authenticated User is a member of.
572
571
  */
573
- const searchRepo = (variables, signal) => fetch$1({
574
- url: '/v1/integrations/search-repo',
572
+ const getTeams = (variables, signal) => fetch$1({
573
+ url: '/v2/teams',
575
574
  method: 'get',
576
575
  ...variables,
577
576
  signal
578
577
  });
579
578
  /**
580
- * Creates a webhook
579
+ * Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name.
581
580
  */
582
- const createWebhook = (variables, signal) => fetch$1({
583
- url: '/v1/webhooks',
581
+ const createTeam = (variables, signal) => fetch$1({
582
+ url: '/v1/teams',
584
583
  method: 'post',
585
584
  ...variables,
586
585
  signal
587
586
  });
588
587
  /**
589
- * Get a list of webhooks
590
- */
591
- const getWebhooks = (variables, signal) => fetch$1({ url: '/v1/webhooks', method: 'get', ...variables, signal });
592
- /**
593
- * Get a webhook
588
+ * Delete a team under your account. You need to send a `DELETE` request with the desired team `id`. An optional array of reasons for deletion may also be sent.
594
589
  */
595
- const getWebhook = (variables, signal) => fetch$1({
596
- url: '/v1/webhooks/{id}',
597
- method: 'get',
590
+ const deleteTeam = (variables, signal) => fetch$1({
591
+ url: '/v1/teams/{teamId}',
592
+ method: 'delete',
598
593
  ...variables,
599
594
  signal
600
595
  });
601
596
  /**
602
- * Deletes a webhook
597
+ * Delete an active Team invite code.
603
598
  */
604
- const deleteWebhook = (variables, signal) => fetch$1({
605
- url: '/v1/webhooks/{id}',
599
+ const deleteTeamInviteCode = (variables, signal) => fetch$1({
600
+ url: '/v1/teams/{teamId}/invites/{inviteId}',
606
601
  method: 'delete',
607
602
  ...variables,
608
603
  signal
609
604
  });
610
605
  /**
611
- * Retrieves a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
606
+ * Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
612
607
  */
613
- const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'get', ...variables, signal });
608
+ const uploadFile = (variables, signal) => fetch$1({ url: '/v2/files', method: 'post', ...variables, signal });
614
609
  /**
615
- * Deletes a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be deleted.
610
+ * Initiates the deletion process for the currently authenticated User, by sending a deletion confirmation email. The email contains a link that the user needs to visit in order to proceed with the deletion process.
616
611
  */
617
- const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
612
+ const requestDelete = (variables, signal) => fetch$1({
613
+ url: '/v1/user',
614
+ method: 'delete',
615
+ ...variables,
616
+ signal
617
+ });
618
618
  /**
619
- * Retrieves a list of Configurable Log Drains. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
619
+ * Retrieves information related to the currently authenticated User.
620
620
  */
621
- const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'get', ...variables, signal });
621
+ const getAuthUser = (variables, signal) => fetch$1({
622
+ url: '/v2/user',
623
+ method: 'get',
624
+ ...variables,
625
+ signal
626
+ });
622
627
  /**
623
- * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
628
+ * Retrieve a list of the current User's authentication tokens.
624
629
  */
625
- const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
630
+ const listAuthTokens = (variables, signal) => fetch$1({
631
+ url: '/v5/user/tokens',
632
+ method: 'get',
633
+ ...variables,
634
+ signal
635
+ });
626
636
  /**
627
- * Get information for the Team specified by the `teamId` parameter.
637
+ * Creates and returns a new authentication token for the currently authenticated User. The `bearerToken` property is only provided once, in the response body, so be sure to save it on the client for use with API requests.
628
638
  */
629
- const getTeam = (variables, signal) => fetch$1({
630
- url: '/v2/teams/{teamId}',
639
+ const createAuthToken = (variables, signal) => fetch$1({ url: '/v3/user/tokens', method: 'post', ...variables, signal });
640
+ /**
641
+ * Retrieve metadata about an authentication token belonging to the currently authenticated User.
642
+ */
643
+ const getAuthToken = (variables, signal) => fetch$1({
644
+ url: '/v5/user/tokens/{tokenId}',
631
645
  method: 'get',
632
646
  ...variables,
633
647
  signal
634
648
  });
635
649
  /**
636
- * Update the information of a Team specified by the `teamId` parameter. The request body should contain the information that will be updated on the Team.
650
+ * Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
651
+ */
652
+ const deleteAuthToken = (variables, signal) => fetch$1({
653
+ url: '/v3/user/tokens/{tokenId}',
654
+ method: 'delete',
655
+ ...variables,
656
+ signal
657
+ });
658
+ /**
659
+ * Creates a webhook
637
660
  */
638
- const patchTeam = (variables, signal) => fetch$1({
639
- url: '/v2/teams/{teamId}',
640
- method: 'patch',
661
+ const createWebhook = (variables, signal) => fetch$1({
662
+ url: '/v1/webhooks',
663
+ method: 'post',
641
664
  ...variables,
642
665
  signal
643
666
  });
644
667
  /**
645
- * Get a paginated list of all the Teams the authenticated User is a member of.
668
+ * Get a list of webhooks
646
669
  */
647
- const getTeams = (variables, signal) => fetch$1({
648
- url: '/v2/teams',
670
+ const getWebhooks = (variables, signal) => fetch$1({ url: '/v1/webhooks', method: 'get', ...variables, signal });
671
+ /**
672
+ * Get a webhook
673
+ */
674
+ const getWebhook = (variables, signal) => fetch$1({
675
+ url: '/v1/webhooks/{id}',
649
676
  method: 'get',
650
677
  ...variables,
651
678
  signal
652
679
  });
653
680
  /**
654
- * Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name.
681
+ * Deletes a webhook
655
682
  */
656
- const createTeam = (variables, signal) => fetch$1({
657
- url: '/v1/teams',
658
- method: 'post',
683
+ const deleteWebhook = (variables, signal) => fetch$1({
684
+ url: '/v1/webhooks/{id}',
685
+ method: 'delete',
659
686
  ...variables,
660
687
  signal
661
688
  });
662
689
  /**
663
- * Delete a team under your account. You need to send a `DELETE` request with the desired team `id`. An optional array of reasons for deletion may also be sent.
690
+ * Retrieves an Alias for the given host name or alias ID.
664
691
  */
665
- const deleteTeam = (variables, signal) => fetch$1({
666
- url: '/v1/teams/{teamId}',
667
- method: 'delete',
692
+ const getAlias = (variables, signal) => fetch$1({
693
+ url: '/v4/aliases/{idOrAlias}',
694
+ method: 'get',
668
695
  ...variables,
669
696
  signal
670
697
  });
671
698
  /**
672
- * Delete an active Team invite code.
699
+ * Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
673
700
  */
674
- const deleteTeamInviteCode = (variables, signal) => fetch$1({
675
- url: '/v1/teams/{teamId}/invites/{inviteId}',
676
- method: 'delete',
701
+ const listAliases = (variables, signal) => fetch$1({
702
+ url: '/v4/aliases',
703
+ method: 'get',
677
704
  ...variables,
678
705
  signal
679
706
  });
680
707
  /**
681
- * Get a paginated list of team members for the provided team.
708
+ * Delete an Alias with the specified ID.
682
709
  */
683
- const getTeamMembers = (variables, signal) => fetch$1({
684
- url: '/v2/teams/{teamId}/members',
685
- method: 'get',
710
+ const deleteAlias = (variables, signal) => fetch$1({
711
+ url: '/v2/aliases/{aliasId}',
712
+ method: 'delete',
686
713
  ...variables,
687
714
  signal
688
715
  });
689
716
  /**
690
- * Invite a user to join the team specified in the URL. The authenticated user needs to be an `OWNER` in order to successfully invoke this endpoint. The user can be specified with an email or an ID. If both email and ID are provided, ID will take priority.
717
+ * Retrieves all Aliases for the Deployment with the given ID. The authenticated User must own the deployment.
691
718
  */
692
- const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
719
+ const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
693
720
  /**
694
- * Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.
721
+ * Creates a new alias for the deployment with the given deployment ID. The authenticated user must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one.
695
722
  */
696
- const requestAccessToTeam = (variables, signal) => fetch$1({
697
- url: '/v1/teams/{teamId}/request',
698
- method: 'post',
723
+ const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
724
+ /**
725
+ * Get cert by id
726
+ */
727
+ const getCertById = (variables, signal) => fetch$1({
728
+ url: '/v7/certs/{id}',
729
+ method: 'get',
699
730
  ...variables,
700
731
  signal
701
732
  });
702
733
  /**
703
- * Check the status of a join request. It'll respond with a 404 if the request has been declined. If no `userId` path segment was provided, this endpoint will instead return the status of the authenticated user.
734
+ * Remove cert
704
735
  */
705
- const getTeamAccessRequest = (variables, signal) => fetch$1({
706
- url: '/v1/teams/{teamId}/request/{userId}',
707
- method: 'get',
736
+ const removeCert = (variables, signal) => fetch$1({
737
+ url: '/v7/certs/{id}',
738
+ method: 'delete',
708
739
  ...variables,
709
740
  signal
710
741
  });
711
742
  /**
712
- * Join a team with a provided invite code or team ID.
743
+ * Issue a new cert
713
744
  */
714
- const joinTeam = (variables, signal) => fetch$1({
715
- url: '/v1/teams/{teamId}/members/teams/join',
745
+ const issueCert = (variables, signal) => fetch$1({
746
+ url: '/v7/certs',
716
747
  method: 'post',
717
748
  ...variables,
718
749
  signal
719
750
  });
720
751
  /**
721
- * Update the membership of a Team Member on the Team specified by `teamId`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an `OWNER` of the Team.
722
- */
723
- const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
724
- /**
725
- * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
752
+ * Upload a cert
726
753
  */
727
- const removeTeamMember = (variables, signal) => fetch$1({
728
- url: '/v1/teams/{teamId}/members/{uid}',
729
- method: 'delete',
754
+ const uploadCert = (variables, signal) => fetch$1({
755
+ url: '/v7/certs',
756
+ method: 'put',
730
757
  ...variables,
731
758
  signal
732
759
  });
@@ -739,132 +766,126 @@ const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deploymen
739
766
  */
740
767
  const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
741
768
  /**
742
- * Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
769
+ * List deployments under the account corresponding to the API token. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
743
770
  */
744
- const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
771
+ const getDeployments = (variables, signal) => fetch$1({
772
+ url: '/v6/deployments',
773
+ method: 'get',
774
+ ...variables,
775
+ signal
776
+ });
745
777
  /**
746
- * List all of the checks created for a deployment.
778
+ * Request a new login for a user to get a token. This will respond with a verification token and send an email to confirm the request. Once confirmed you can use the verification token to get an authentication token.
747
779
  */
748
- const getAllChecks = (variables, signal) => fetch$1({
749
- url: '/v1/deployments/{deploymentId}/checks',
750
- method: 'get',
780
+ const emailLogin = (variables, signal) => fetch$1({
781
+ url: '/registration',
782
+ method: 'post',
751
783
  ...variables,
752
784
  signal
753
785
  });
754
786
  /**
755
- * Return a detailed response for a single check.
787
+ * Verify the user accepted the login request and get a authentication token. The user email address and the token received after requesting the login must be added to the URL as a query string with the names `email` and `token`.
756
788
  */
757
- const getCheck = (variables, signal) => fetch$1({
758
- url: '/v1/deployments/{deploymentId}/checks/{checkId}',
789
+ const verifyToken = (variables, signal) => fetch$1({
790
+ url: '/registration/verify',
759
791
  method: 'get',
760
792
  ...variables,
761
793
  signal
762
794
  });
763
795
  /**
764
- * Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
796
+ * This API allows you to delete a deployment, either by supplying its `id` in the URL or the `url` of the deployment as a query parameter. You can obtain the ID, for example, by listing all deployments.
765
797
  */
766
- const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}', method: 'patch', ...variables, signal });
798
+ const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
767
799
  /**
768
- * Rerequest a selected check that has failed.
800
+ * Allows to create a new secret.
769
801
  */
770
- const rerequestCheck = (variables, signal) => fetch$1({
771
- url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest',
802
+ const createSecret = (variables, signal) => fetch$1({
803
+ url: '/v2/secrets/{name}',
772
804
  method: 'post',
773
805
  ...variables,
774
806
  signal
775
807
  });
776
808
  /**
777
- * Returns all Edge Configs.
809
+ * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
778
810
  */
779
- const getEdgeConfigs = (variables, signal) => fetch$1({
780
- url: '/v1/edge-config',
811
+ const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
812
+ /**
813
+ * Retrieves the active Vercel secrets for the authenticated user. By default it returns 20 secrets. The rest can be retrieved using the pagination options. The body will contain an entry for each secret.
814
+ */
815
+ const getSecrets = (variables, signal) => fetch$1({
816
+ url: '/v3/secrets',
781
817
  method: 'get',
782
818
  ...variables,
783
819
  signal
784
820
  });
785
821
  /**
786
- * Creates an Edge Config.
787
- */
788
- const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
789
- /**
790
- * Returns an Edge Config.
822
+ * Retrieves the information for a specific secret by passing either the secret id or name in the URL.
791
823
  */
792
- const getEdgeConfig = (variables, signal) => fetch$1({
793
- url: '/v1/edge-config/{edgeConfigId}',
824
+ const getSecret = (variables, signal) => fetch$1({
825
+ url: '/v3/secrets/{idOrName}',
794
826
  method: 'get',
795
827
  ...variables,
796
828
  signal
797
829
  });
798
830
  /**
799
- * Updates an Edge Config.
800
- */
801
- const updateEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}', method: 'put', ...variables, signal });
802
- /**
803
- * Delete an Edge Config by id.
831
+ * This deletes the user's secret defined in the URL.
804
832
  */
805
- const deleteEdgeConfig = (variables, signal) => fetch$1({
806
- url: '/v1/edge-config/{edgeConfigId}',
833
+ const deleteSecret = (variables, signal) => fetch$1({
834
+ url: '/v2/secrets/{idOrName}',
807
835
  method: 'delete',
808
836
  ...variables,
809
837
  signal
810
838
  });
811
- /**
812
- * Returns all items of an Edge Config.
813
- */
814
- const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
815
- /**
816
- * Update multiple Edge Config Items in batch.
817
- */
818
- const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'patch', ...variables, signal });
819
- /**
820
- * Returns a specific Edge Config Item.
821
- */
822
- const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
823
- /**
824
- * Returns all tokens of an Edge Config.
825
- */
826
- const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
827
- /**
828
- * Deletes one or more tokens of an existing Edge Config.
829
- */
830
- const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
831
- /**
832
- * Return meta data about an Edge Config token.
833
- */
834
- const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
835
- /**
836
- * Adds a token to an existing Edge Config.
837
- */
838
- const createEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token', method: 'post', ...variables, signal });
839
839
  const operationsByTag = {
840
840
  artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
841
+ checks: { getAllChecks, createCheck, getCheck, updateCheck, rerequestCheck },
841
842
  deployments: {
843
+ getDeploymentEvents,
842
844
  getDeployment,
843
845
  createDeployment,
844
846
  cancelDeployment,
845
- getDeploymentEvents,
846
847
  uploadFile,
847
- deleteDeployment,
848
- getDeployments,
849
848
  listDeploymentFiles,
850
- getDeploymentFileContents
849
+ getDeploymentFileContents,
850
+ getDeployments,
851
+ deleteDeployment
851
852
  },
852
- certs: { getCertById, removeCert, uploadCert, issueCert },
853
- user: { listUserEvents, getAuthUser, requestDelete },
854
- aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
855
- authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
856
- dns: { getRecords, createRecord, updateRecord, removeRecord },
857
853
  domains: {
858
- checkDomainStatus,
859
- checkDomainPrice,
860
854
  buyDomain,
855
+ checkDomainPrice,
856
+ checkDomainStatus,
861
857
  getDomainConfig,
862
858
  getDomain,
863
859
  getDomains,
864
860
  createOrTransferDomain,
865
861
  deleteDomain
866
862
  },
867
- secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret },
863
+ dns: { createRecord, getRecords, updateRecord, removeRecord },
864
+ edgeConfig: {
865
+ getEdgeConfigs,
866
+ createEdgeConfig,
867
+ getEdgeConfig,
868
+ updateEdgeConfig,
869
+ deleteEdgeConfig,
870
+ getEdgeConfigItems,
871
+ patchtEdgeConfigItems,
872
+ getEdgeConfigItem,
873
+ getEdgeConfigTokens,
874
+ deleteEdgeConfigTokens,
875
+ getEdgeConfigToken,
876
+ createEdgeConfigToken
877
+ },
878
+ user: { listUserEvents, requestDelete, getAuthUser },
879
+ integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
880
+ logDrains: {
881
+ getIntegrationLogDrains,
882
+ createLogDrain,
883
+ deleteIntegrationLogDrain,
884
+ getConfigurableLogDrain,
885
+ deleteConfigurableLogDrain,
886
+ getConfigurableLogDrains,
887
+ createConfigurableLogDrain
888
+ },
868
889
  projects: {
869
890
  getProjects,
870
891
  createProject,
@@ -883,47 +904,26 @@ const operationsByTag = {
883
904
  removeProjectEnv,
884
905
  editProjectEnv
885
906
  },
886
- integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
887
- logDrains: {
888
- getIntegrationLogDrains,
889
- createLogDrain,
890
- deleteIntegrationLogDrain,
891
- getConfigurableLogDrain,
892
- deleteConfigurableLogDrain,
893
- getConfigurableLogDrains,
894
- createConfigurableLogDrain
895
- },
896
- webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
897
907
  teams: {
898
- getTeam,
899
- patchTeam,
900
- getTeams,
901
- createTeam,
902
- deleteTeam,
903
- deleteTeamInviteCode,
904
908
  getTeamMembers,
905
909
  inviteUserToTeam,
906
910
  requestAccessToTeam,
907
911
  getTeamAccessRequest,
908
912
  joinTeam,
909
913
  updateTeamMember,
910
- removeTeamMember
914
+ removeTeamMember,
915
+ getTeam,
916
+ patchTeam,
917
+ getTeams,
918
+ createTeam,
919
+ deleteTeam,
920
+ deleteTeamInviteCode
911
921
  },
912
- checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
913
- edgeConfig: {
914
- getEdgeConfigs,
915
- createEdgeConfig,
916
- getEdgeConfig,
917
- updateEdgeConfig,
918
- deleteEdgeConfig,
919
- getEdgeConfigItems,
920
- patchtEdgeConfigItems,
921
- getEdgeConfigItem,
922
- getEdgeConfigTokens,
923
- deleteEdgeConfigTokens,
924
- getEdgeConfigToken,
925
- createEdgeConfigToken
926
- }
922
+ authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, emailLogin, verifyToken },
923
+ webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
924
+ aliases: { getAlias, listAliases, deleteAlias, listDeploymentAliases, assignAlias },
925
+ certs: { getCertById, removeCert, issueCert, uploadCert },
926
+ secrets: { createSecret, renameSecret, getSecrets, getSecret, deleteSecret }
927
927
  };
928
928
 
929
929
  function formEncoded(data) {