vercel-api-js 0.1.16 → 0.1.18

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,154 +138,78 @@ 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
154
- */
155
- const getCertById = (variables, signal) => fetch$1({
156
- url: '/v7/certs/{id}',
157
- method: 'get',
158
- ...variables,
159
- signal
160
- });
161
- /**
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.
141
+ * Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
190
142
  */
191
- const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
143
+ const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
192
144
  /**
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.
145
+ * List all of the checks created for a deployment.
194
146
  */
195
- const listUserEvents = (variables, signal) => fetch$1({
196
- url: '/v3/events',
147
+ const getAllChecks = (variables, signal) => fetch$1({
148
+ url: '/v1/deployments/{deploymentId}/checks',
197
149
  method: 'get',
198
150
  ...variables,
199
151
  signal
200
152
  });
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.
176
+ * Update the cron job feature on a project.
230
177
  */
231
- const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
178
+ const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-cache/projects/{projectId}', method: 'patch', ...variables, signal });
232
179
  /**
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.
180
+ * 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
181
  */
235
- const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
182
+ const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
236
183
  /**
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.
184
+ * 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
185
  */
239
- const uploadFile = (variables, signal) => fetch$1({ url: '/v2/files', method: 'post', ...variables, signal });
186
+ const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{idOrUrl}', method: 'get', ...variables, signal });
240
187
  /**
241
- * Retrieves information related to the currently authenticated User.
188
+ * 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
189
  */
243
- const getAuthUser = (variables, signal) => fetch$1({
244
- url: '/v2/user',
245
- method: 'get',
246
- ...variables,
247
- signal
248
- });
190
+ const createDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments', method: 'post', ...variables, signal });
249
191
  /**
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.
192
+ * This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
251
193
  */
252
- const requestDelete = (variables, signal) => fetch$1({
253
- url: '/v1/user',
254
- method: 'delete',
255
- ...variables,
256
- signal
257
- });
194
+ const cancelDeployment = (variables, signal) => fetch$1({ url: '/v12/deployments/{id}/cancel', method: 'patch', ...variables, signal });
258
195
  /**
259
- * Retrieve a list of the current User's authentication tokens.
196
+ * Allows to purchase the specified domain.
260
197
  */
261
- const listAuthTokens = (variables, signal) => fetch$1({
262
- url: '/v5/user/tokens',
263
- method: 'get',
198
+ const buyDomain = (variables, signal) => fetch$1({
199
+ url: '/v4/domains/buy',
200
+ method: 'post',
264
201
  ...variables,
265
202
  signal
266
203
  });
267
204
  /**
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.
205
+ * Check the price to purchase a domain and how long a single purchase period is.
273
206
  */
274
- const getAuthToken = (variables, signal) => fetch$1({
275
- url: '/v5/user/tokens/{tokenId}',
207
+ const checkDomainPrice = (variables, signal) => fetch$1({
208
+ url: '/v4/domains/price',
276
209
  method: 'get',
277
210
  ...variables,
278
211
  signal
279
212
  });
280
- /**
281
- * Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
282
- */
283
- const deleteAuthToken = (variables, signal) => fetch$1({
284
- url: '/v3/user/tokens/{tokenId}',
285
- method: 'delete',
286
- ...variables,
287
- signal
288
- });
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
  */
@@ -316,24 +240,6 @@ const checkDomainStatus = (variables, signal) => fetch$1({
316
240
  ...variables,
317
241
  signal
318
242
  });
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
243
  /**
338
244
  * Get a Domain's configuration.
339
245
  */
@@ -370,259 +276,282 @@ const deleteDomain = (variables, signal) => fetch$1({
370
276
  signal
371
277
  });
372
278
  /**
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.
279
+ * Returns all Edge Configs.
374
280
  */
375
- const getSecrets = (variables, signal) => fetch$1({
376
- url: '/v3/secrets',
281
+ const getEdgeConfigs = (variables, signal) => fetch$1({
282
+ url: '/v1/edge-config',
377
283
  method: 'get',
378
284
  ...variables,
379
285
  signal
380
286
  });
381
287
  /**
382
- * Allows to create a new secret.
383
- */
384
- const createSecret = (variables, signal) => fetch$1({
385
- url: '/v2/secrets/{name}',
386
- method: 'post',
387
- ...variables,
388
- signal
389
- });
390
- /**
391
- * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
288
+ * Creates an Edge Config.
392
289
  */
393
- const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
290
+ const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
394
291
  /**
395
- * Retrieves the information for a specific secret by passing either the secret id or name in the URL.
292
+ * Returns an Edge Config.
396
293
  */
397
- const getSecret = (variables, signal) => fetch$1({
398
- url: '/v3/secrets/{idOrName}',
294
+ const getEdgeConfig = (variables, signal) => fetch$1({
295
+ url: '/v1/edge-config/{edgeConfigId}',
399
296
  method: 'get',
400
297
  ...variables,
401
298
  signal
402
299
  });
403
300
  /**
404
- * This deletes the user's secret defined in the URL.
301
+ * Updates an Edge Config.
405
302
  */
406
- const deleteSecret = (variables, signal) => fetch$1({
407
- url: '/v2/secrets/{idOrName}',
303
+ const updateEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}', method: 'put', ...variables, signal });
304
+ /**
305
+ * Delete an Edge Config by id.
306
+ */
307
+ const deleteEdgeConfig = (variables, signal) => fetch$1({
308
+ url: '/v1/edge-config/{edgeConfigId}',
408
309
  method: 'delete',
409
310
  ...variables,
410
311
  signal
411
312
  });
412
313
  /**
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.
314
+ * Returns all items of an Edge Config.
414
315
  */
415
- const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
316
+ const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
416
317
  /**
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`.
318
+ * Update multiple Edge Config Items in batch.
418
319
  */
419
- const getDeployments = (variables, signal) => fetch$1({
420
- url: '/v6/deployments',
421
- method: 'get',
422
- ...variables,
423
- signal
424
- });
320
+ const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'patch', ...variables, signal });
425
321
  /**
426
- * 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.
322
+ * Returns a specific Edge Config Item.
427
323
  */
428
- const getProjects = (variables, signal) => fetch$1({
429
- url: '/v9/projects',
430
- method: 'get',
431
- ...variables,
432
- signal
433
- });
324
+ const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
434
325
  /**
435
- * Allows to create a new project with the provided configuration. It only requires the project `name` but more configuration can be provided to override the defaults.
326
+ * Returns all tokens of an Edge Config.
436
327
  */
437
- const createProject = (variables, signal) => fetch$1({
438
- url: '/v9/projects',
439
- method: 'post',
440
- ...variables,
441
- signal
442
- });
328
+ const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
443
329
  /**
444
- * Get the information for a specific project by passing either the project `id` or `name` in the URL.
330
+ * Deletes one or more tokens of an existing Edge Config.
445
331
  */
446
- const getProject = (variables, signal) => fetch$1({
447
- url: '/v9/projects/{idOrName}',
448
- method: 'get',
449
- ...variables,
450
- signal
451
- });
332
+ const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
452
333
  /**
453
- * Update the fields of a project using either its `name` or `id`.
334
+ * Return meta data about an Edge Config token.
454
335
  */
455
- const updateProject = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}', method: 'patch', ...variables, signal });
336
+ const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
456
337
  /**
457
- * Delete a specific project by passing either the project `id` or `name` in the URL.
338
+ * Adds a token to an existing Edge Config.
458
339
  */
459
- const deleteProject = (variables, signal) => fetch$1({
460
- url: '/v9/projects/{idOrName}',
461
- method: 'delete',
340
+ const createEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token', method: 'post', ...variables, signal });
341
+ /**
342
+ * 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.
343
+ */
344
+ const listUserEvents = (variables, signal) => fetch$1({
345
+ url: '/v3/events',
346
+ method: 'get',
462
347
  ...variables,
463
348
  signal
464
349
  });
465
350
  /**
466
- * Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
351
+ * 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.
467
352
  */
468
- const getProjectDomains = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains', method: 'get', ...variables, signal });
353
+ const getConfigurations = (variables, signal) => fetch$1({ url: '/v1/integrations/configurations', method: 'get', ...variables, signal });
469
354
  /**
470
- * Get project domain by project id/name and domain name.
355
+ * 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.
471
356
  */
472
- const getProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'get', ...variables, signal });
357
+ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'get', ...variables, signal });
473
358
  /**
474
- * Update a project domain's configuration, including the name, git branch and redirect of the domain.
359
+ * 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.
475
360
  */
476
- const updateProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'patch', ...variables, signal });
361
+ const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
477
362
  /**
478
- * Remove a domain from a project by passing the domain name and by specifying the project by either passing the project `id` or `name` in the URL.
363
+ * 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.
479
364
  */
480
- const removeProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'delete', ...variables, signal });
365
+ const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
481
366
  /**
482
- * Add a domain to the project by passing its domain name and by specifying the project by either passing the project `id` or `name` in the URL. If the domain is not yet verified to be used on this project, the request will return `verified = false`, and the domain will need to be verified according to the `verification` challenge via `POST /projects/:idOrName/domains/:domain/verify`. If the domain already exists on the project, the request will fail with a `400` status code.
367
+ * 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.
483
368
  */
484
- const addProjectDomain = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/domains', method: 'post', ...variables, signal });
369
+ const createLogDrain = (variables, signal) => fetch$1({
370
+ url: '/v2/integrations/log-drains',
371
+ method: 'post',
372
+ ...variables,
373
+ signal
374
+ });
485
375
  /**
486
- * Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
376
+ * 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.
487
377
  */
488
- const verifyProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}/verify', method: 'post', ...variables, signal });
378
+ const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
489
379
  /**
490
- * Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
380
+ * 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.
491
381
  */
492
- const filterProjectEnvs = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env', method: 'get', ...variables, signal });
382
+ const gitNamespaces = (variables, signal) => fetch$1({
383
+ url: '/v1/integrations/git-namespaces',
384
+ method: 'get',
385
+ ...variables,
386
+ signal
387
+ });
493
388
  /**
494
- * Retrieve the environment variable for a given project.
389
+ * 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.
495
390
  */
496
- const getProjectEnv = (variables, signal) => fetch$1({
497
- url: '/v1/projects/{idOrName}/env/{id}',
391
+ const searchRepo = (variables, signal) => fetch$1({
392
+ url: '/v1/integrations/search-repo',
498
393
  method: 'get',
499
394
  ...variables,
500
395
  signal
501
396
  });
502
397
  /**
503
- * Create one ore more environment variables for a project by passing its `key`, `value`, `type` and `target` and by specifying the project by either passing the project `id` or `name` in the URL.
398
+ * 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.
504
399
  */
505
- const createProjectEnv = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/env', method: 'post', ...variables, signal });
400
+ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'get', ...variables, signal });
506
401
  /**
507
- * Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
402
+ * 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.
508
403
  */
509
- const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'delete', ...variables, signal });
404
+ const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
510
405
  /**
511
- * Edit a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
406
+ * 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.
512
407
  */
513
- const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
408
+ const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'get', ...variables, signal });
514
409
  /**
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`.
410
+ * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
516
411
  */
517
- const verifyToken = (variables, signal) => fetch$1({
518
- url: '/registration/verify',
412
+ const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
413
+ /**
414
+ * 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.
415
+ */
416
+ const getProjects = (variables, signal) => fetch$1({
417
+ url: '/v9/projects',
519
418
  method: 'get',
520
419
  ...variables,
521
420
  signal
522
421
  });
523
422
  /**
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.
423
+ * Allows to create a new project with the provided configuration. It only requires the project `name` but more configuration can be provided to override the defaults.
525
424
  */
526
- const emailLogin = (variables, signal) => fetch$1({
527
- url: '/registration',
425
+ const createProject = (variables, signal) => fetch$1({
426
+ url: '/v9/projects',
528
427
  method: 'post',
529
428
  ...variables,
530
429
  signal
531
430
  });
532
431
  /**
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.
432
+ * Get the information for a specific project by passing either the project `id` or `name` in the URL.
534
433
  */
535
- const getConfigurations = (variables, signal) => fetch$1({ url: '/v1/integrations/configurations', method: 'get', ...variables, signal });
434
+ const getProject = (variables, signal) => fetch$1({
435
+ url: '/v9/projects/{idOrName}',
436
+ method: 'get',
437
+ ...variables,
438
+ signal
439
+ });
536
440
  /**
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.
441
+ * Update the fields of a project using either its `name` or `id`.
538
442
  */
539
- const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'get', ...variables, signal });
443
+ const updateProject = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}', method: 'patch', ...variables, signal });
540
444
  /**
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.
445
+ * Delete a specific project by passing either the project `id` or `name` in the URL.
542
446
  */
543
- const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
447
+ const deleteProject = (variables, signal) => fetch$1({
448
+ url: '/v9/projects/{idOrName}',
449
+ method: 'delete',
450
+ ...variables,
451
+ signal
452
+ });
544
453
  /**
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.
454
+ * Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
546
455
  */
547
- const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
456
+ const getProjectDomains = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains', method: 'get', ...variables, signal });
548
457
  /**
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.
458
+ * Get project domain by project id/name and domain name.
550
459
  */
551
- const createLogDrain = (variables, signal) => fetch$1({
552
- url: '/v2/integrations/log-drains',
553
- method: 'post',
554
- ...variables,
555
- signal
556
- });
460
+ const getProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'get', ...variables, signal });
557
461
  /**
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.
462
+ * Update a project domain's configuration, including the name, git branch and redirect of the domain.
559
463
  */
560
- const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
464
+ const updateProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'patch', ...variables, signal });
561
465
  /**
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.
466
+ * Remove a domain from a project by passing the domain name and by specifying the project by either passing the project `id` or `name` in the URL.
563
467
  */
564
- const gitNamespaces = (variables, signal) => fetch$1({
565
- url: '/v1/integrations/git-namespaces',
468
+ const removeProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'delete', ...variables, signal });
469
+ /**
470
+ * Add a domain to the project by passing its domain name and by specifying the project by either passing the project `id` or `name` in the URL. If the domain is not yet verified to be used on this project, the request will return `verified = false`, and the domain will need to be verified according to the `verification` challenge via `POST /projects/:idOrName/domains/:domain/verify`. If the domain already exists on the project, the request will fail with a `400` status code.
471
+ */
472
+ const addProjectDomain = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/domains', method: 'post', ...variables, signal });
473
+ /**
474
+ * Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
475
+ */
476
+ const verifyProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}/verify', method: 'post', ...variables, signal });
477
+ /**
478
+ * Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
479
+ */
480
+ const filterProjectEnvs = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env', method: 'get', ...variables, signal });
481
+ /**
482
+ * Retrieve the environment variable for a given project.
483
+ */
484
+ const getProjectEnv = (variables, signal) => fetch$1({
485
+ url: '/v1/projects/{idOrName}/env/{id}',
566
486
  method: 'get',
567
487
  ...variables,
568
488
  signal
569
489
  });
570
490
  /**
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.
491
+ * Create one ore more environment variables for a project by passing its `key`, `value`, `type` and `target` and by specifying the project by either passing the project `id` or `name` in the URL.
572
492
  */
573
- const searchRepo = (variables, signal) => fetch$1({
574
- url: '/v1/integrations/search-repo',
493
+ const createProjectEnv = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/env', method: 'post', ...variables, signal });
494
+ /**
495
+ * Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
496
+ */
497
+ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'delete', ...variables, signal });
498
+ /**
499
+ * Edit a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
500
+ */
501
+ const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
502
+ /**
503
+ * Get a paginated list of team members for the provided team.
504
+ */
505
+ const getTeamMembers = (variables, signal) => fetch$1({
506
+ url: '/v2/teams/{teamId}/members',
575
507
  method: 'get',
576
508
  ...variables,
577
509
  signal
578
510
  });
579
511
  /**
580
- * Creates a webhook
512
+ * 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.
581
513
  */
582
- const createWebhook = (variables, signal) => fetch$1({
583
- url: '/v1/webhooks',
514
+ const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
515
+ /**
516
+ * 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.
517
+ */
518
+ const requestAccessToTeam = (variables, signal) => fetch$1({
519
+ url: '/v1/teams/{teamId}/request',
584
520
  method: 'post',
585
521
  ...variables,
586
522
  signal
587
523
  });
588
524
  /**
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
525
+ * 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.
594
526
  */
595
- const getWebhook = (variables, signal) => fetch$1({
596
- url: '/v1/webhooks/{id}',
527
+ const getTeamAccessRequest = (variables, signal) => fetch$1({
528
+ url: '/v1/teams/{teamId}/request/{userId}',
597
529
  method: 'get',
598
530
  ...variables,
599
531
  signal
600
532
  });
601
533
  /**
602
- * Deletes a webhook
534
+ * Join a team with a provided invite code or team ID.
603
535
  */
604
- const deleteWebhook = (variables, signal) => fetch$1({
605
- url: '/v1/webhooks/{id}',
606
- method: 'delete',
536
+ const joinTeam = (variables, signal) => fetch$1({
537
+ url: '/v1/teams/{teamId}/members/teams/join',
538
+ method: 'post',
607
539
  ...variables,
608
540
  signal
609
541
  });
610
542
  /**
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.
612
- */
613
- const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'get', ...variables, signal });
614
- /**
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.
616
- */
617
- const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
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.
543
+ * 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.
620
544
  */
621
- const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'get', ...variables, signal });
545
+ const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
622
546
  /**
623
- * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
547
+ * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
624
548
  */
625
- const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
549
+ const removeTeamMember = (variables, signal) => fetch$1({
550
+ url: '/v1/teams/{teamId}/members/{uid}',
551
+ method: 'delete',
552
+ ...variables,
553
+ signal
554
+ });
626
555
  /**
627
556
  * Get information for the Team specified by the `teamId` parameter.
628
557
  */
@@ -678,194 +607,244 @@ const deleteTeamInviteCode = (variables, signal) => fetch$1({
678
607
  signal
679
608
  });
680
609
  /**
681
- * Get a paginated list of team members for the provided team.
610
+ * 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.
682
611
  */
683
- const getTeamMembers = (variables, signal) => fetch$1({
684
- url: '/v2/teams/{teamId}/members',
612
+ const uploadFile = (variables, signal) => fetch$1({ url: '/v2/files', method: 'post', ...variables, signal });
613
+ /**
614
+ * Retrieves information related to the currently authenticated User.
615
+ */
616
+ const getAuthUser = (variables, signal) => fetch$1({
617
+ url: '/v2/user',
685
618
  method: 'get',
686
619
  ...variables,
687
620
  signal
688
621
  });
689
622
  /**
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.
623
+ * 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.
691
624
  */
692
- const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
625
+ const requestDelete = (variables, signal) => fetch$1({
626
+ url: '/v1/user',
627
+ method: 'delete',
628
+ ...variables,
629
+ signal
630
+ });
693
631
  /**
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.
632
+ * Retrieve a list of the current User's authentication tokens.
695
633
  */
696
- const requestAccessToTeam = (variables, signal) => fetch$1({
697
- url: '/v1/teams/{teamId}/request',
698
- method: 'post',
634
+ const listAuthTokens = (variables, signal) => fetch$1({
635
+ url: '/v5/user/tokens',
636
+ method: 'get',
699
637
  ...variables,
700
638
  signal
701
639
  });
702
640
  /**
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.
641
+ * 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.
704
642
  */
705
- const getTeamAccessRequest = (variables, signal) => fetch$1({
706
- url: '/v1/teams/{teamId}/request/{userId}',
643
+ const createAuthToken = (variables, signal) => fetch$1({ url: '/v3/user/tokens', method: 'post', ...variables, signal });
644
+ /**
645
+ * Retrieve metadata about an authentication token belonging to the currently authenticated User.
646
+ */
647
+ const getAuthToken = (variables, signal) => fetch$1({
648
+ url: '/v5/user/tokens/{tokenId}',
707
649
  method: 'get',
708
650
  ...variables,
709
651
  signal
710
652
  });
711
653
  /**
712
- * Join a team with a provided invite code or team ID.
654
+ * Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
713
655
  */
714
- const joinTeam = (variables, signal) => fetch$1({
715
- url: '/v1/teams/{teamId}/members/teams/join',
656
+ const deleteAuthToken = (variables, signal) => fetch$1({
657
+ url: '/v3/user/tokens/{tokenId}',
658
+ method: 'delete',
659
+ ...variables,
660
+ signal
661
+ });
662
+ /**
663
+ * Creates a webhook
664
+ */
665
+ const createWebhook = (variables, signal) => fetch$1({
666
+ url: '/v1/webhooks',
716
667
  method: 'post',
717
668
  ...variables,
718
669
  signal
719
670
  });
720
671
  /**
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.
672
+ * Get a list of webhooks
722
673
  */
723
- const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
674
+ const getWebhooks = (variables, signal) => fetch$1({ url: '/v1/webhooks', method: 'get', ...variables, signal });
724
675
  /**
725
- * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
676
+ * Get a webhook
726
677
  */
727
- const removeTeamMember = (variables, signal) => fetch$1({
728
- url: '/v1/teams/{teamId}/members/{uid}',
729
- method: 'delete',
678
+ const getWebhook = (variables, signal) => fetch$1({
679
+ url: '/v1/webhooks/{id}',
680
+ method: 'get',
730
681
  ...variables,
731
682
  signal
732
683
  });
733
684
  /**
734
- * Allows to retrieve the file structure of a deployment by supplying the deployment unique identifier.
685
+ * Deletes a webhook
735
686
  */
736
- const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files', method: 'get', ...variables, signal });
687
+ const deleteWebhook = (variables, signal) => fetch$1({
688
+ url: '/v1/webhooks/{id}',
689
+ method: 'delete',
690
+ ...variables,
691
+ signal
692
+ });
737
693
  /**
738
- * Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain the raw content of the file.
694
+ * 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.
739
695
  */
740
- const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
696
+ const listAliases = (variables, signal) => fetch$1({
697
+ url: '/v4/aliases',
698
+ method: 'get',
699
+ ...variables,
700
+ signal
701
+ });
741
702
  /**
742
- * Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
703
+ * Retrieves an Alias for the given host name or alias ID.
743
704
  */
744
- const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
705
+ const getAlias = (variables, signal) => fetch$1({
706
+ url: '/v4/aliases/{idOrAlias}',
707
+ method: 'get',
708
+ ...variables,
709
+ signal
710
+ });
745
711
  /**
746
- * List all of the checks created for a deployment.
712
+ * Delete an Alias with the specified ID.
747
713
  */
748
- const getAllChecks = (variables, signal) => fetch$1({
749
- url: '/v1/deployments/{deploymentId}/checks',
750
- method: 'get',
714
+ const deleteAlias = (variables, signal) => fetch$1({
715
+ url: '/v2/aliases/{aliasId}',
716
+ method: 'delete',
751
717
  ...variables,
752
718
  signal
753
719
  });
754
720
  /**
755
- * Return a detailed response for a single check.
721
+ * Retrieves all Aliases for the Deployment with the given ID. The authenticated User must own the deployment.
756
722
  */
757
- const getCheck = (variables, signal) => fetch$1({
758
- url: '/v1/deployments/{deploymentId}/checks/{checkId}',
723
+ const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
724
+ /**
725
+ * 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.
726
+ */
727
+ const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
728
+ /**
729
+ * Get cert by id
730
+ */
731
+ const getCertById = (variables, signal) => fetch$1({
732
+ url: '/v7/certs/{id}',
759
733
  method: 'get',
760
734
  ...variables,
761
735
  signal
762
736
  });
763
737
  /**
764
- * Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
738
+ * Remove cert
765
739
  */
766
- const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}', method: 'patch', ...variables, signal });
740
+ const removeCert = (variables, signal) => fetch$1({
741
+ url: '/v7/certs/{id}',
742
+ method: 'delete',
743
+ ...variables,
744
+ signal
745
+ });
767
746
  /**
768
- * Rerequest a selected check that has failed.
747
+ * Issue a new cert
769
748
  */
770
- const rerequestCheck = (variables, signal) => fetch$1({
771
- url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest',
749
+ const issueCert = (variables, signal) => fetch$1({
750
+ url: '/v7/certs',
772
751
  method: 'post',
773
752
  ...variables,
774
753
  signal
775
754
  });
776
755
  /**
777
- * Returns all Edge Configs.
756
+ * Upload a cert
778
757
  */
779
- const getEdgeConfigs = (variables, signal) => fetch$1({
780
- url: '/v1/edge-config',
781
- method: 'get',
758
+ const uploadCert = (variables, signal) => fetch$1({
759
+ url: '/v7/certs',
760
+ method: 'put',
782
761
  ...variables,
783
762
  signal
784
763
  });
785
764
  /**
786
- * Creates an Edge Config.
765
+ * Allows to retrieve the file structure of a deployment by supplying the deployment unique identifier.
787
766
  */
788
- const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
767
+ const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files', method: 'get', ...variables, signal });
789
768
  /**
790
- * Returns an Edge Config.
769
+ * Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain the raw content of the file.
791
770
  */
792
- const getEdgeConfig = (variables, signal) => fetch$1({
793
- url: '/v1/edge-config/{edgeConfigId}',
771
+ const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
772
+ /**
773
+ * 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`.
774
+ */
775
+ const getDeployments = (variables, signal) => fetch$1({
776
+ url: '/v6/deployments',
794
777
  method: 'get',
795
778
  ...variables,
796
779
  signal
797
780
  });
798
781
  /**
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.
782
+ * 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`.
804
783
  */
805
- const deleteEdgeConfig = (variables, signal) => fetch$1({
806
- url: '/v1/edge-config/{edgeConfigId}',
807
- method: 'delete',
784
+ const verifyToken = (variables, signal) => fetch$1({
785
+ url: '/registration/verify',
786
+ method: 'get',
808
787
  ...variables,
809
788
  signal
810
789
  });
811
790
  /**
812
- * Returns all items of an Edge Config.
791
+ * 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.
813
792
  */
814
- const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
793
+ const emailLogin = (variables, signal) => fetch$1({
794
+ url: '/registration',
795
+ method: 'post',
796
+ ...variables,
797
+ signal
798
+ });
815
799
  /**
816
- * Update multiple Edge Config Items in batch.
800
+ * 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.
817
801
  */
818
- const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'patch', ...variables, signal });
802
+ const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
819
803
  /**
820
- * Returns a specific Edge Config Item.
804
+ * 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.
821
805
  */
822
- const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
806
+ const getSecrets = (variables, signal) => fetch$1({
807
+ url: '/v3/secrets',
808
+ method: 'get',
809
+ ...variables,
810
+ signal
811
+ });
823
812
  /**
824
- * Returns all tokens of an Edge Config.
813
+ * Allows to create a new secret.
825
814
  */
826
- const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
815
+ const createSecret = (variables, signal) => fetch$1({
816
+ url: '/v2/secrets/{name}',
817
+ method: 'post',
818
+ ...variables,
819
+ signal
820
+ });
827
821
  /**
828
- * Deletes one or more tokens of an existing Edge Config.
822
+ * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
829
823
  */
830
- const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
824
+ const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
831
825
  /**
832
- * Return meta data about an Edge Config token.
826
+ * Retrieves the information for a specific secret by passing either the secret id or name in the URL.
833
827
  */
834
- const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
828
+ const getSecret = (variables, signal) => fetch$1({
829
+ url: '/v3/secrets/{idOrName}',
830
+ method: 'get',
831
+ ...variables,
832
+ signal
833
+ });
835
834
  /**
836
- * Adds a token to an existing Edge Config.
835
+ * This deletes the user's secret defined in the URL.
837
836
  */
838
- const createEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token', method: 'post', ...variables, signal });
837
+ const deleteSecret = (variables, signal) => fetch$1({
838
+ url: '/v2/secrets/{idOrName}',
839
+ method: 'delete',
840
+ ...variables,
841
+ signal
842
+ });
839
843
  const operationsByTag = {
840
844
  artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
841
- deployments: {
842
- getDeployment,
843
- createDeployment,
844
- cancelDeployment,
845
- getDeploymentEvents,
846
- uploadFile,
847
- deleteDeployment,
848
- getDeployments,
849
- listDeploymentFiles,
850
- getDeploymentFileContents
851
- },
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
- domains: {
858
- checkDomainStatus,
859
- checkDomainPrice,
860
- buyDomain,
861
- getDomainConfig,
862
- getDomain,
863
- getDomains,
864
- createOrTransferDomain,
865
- deleteDomain
866
- },
867
- secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret },
845
+ checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
868
846
  projects: {
847
+ updateProjectDataCache,
869
848
  getProjects,
870
849
  createProject,
871
850
  getProject,
@@ -883,6 +862,43 @@ const operationsByTag = {
883
862
  removeProjectEnv,
884
863
  editProjectEnv
885
864
  },
865
+ deployments: {
866
+ getDeploymentEvents,
867
+ getDeployment,
868
+ createDeployment,
869
+ cancelDeployment,
870
+ uploadFile,
871
+ listDeploymentFiles,
872
+ getDeploymentFileContents,
873
+ getDeployments,
874
+ deleteDeployment
875
+ },
876
+ domains: {
877
+ buyDomain,
878
+ checkDomainPrice,
879
+ checkDomainStatus,
880
+ getDomainConfig,
881
+ getDomain,
882
+ getDomains,
883
+ createOrTransferDomain,
884
+ deleteDomain
885
+ },
886
+ dns: { getRecords, createRecord, updateRecord, removeRecord },
887
+ edgeConfig: {
888
+ getEdgeConfigs,
889
+ createEdgeConfig,
890
+ getEdgeConfig,
891
+ updateEdgeConfig,
892
+ deleteEdgeConfig,
893
+ getEdgeConfigItems,
894
+ patchtEdgeConfigItems,
895
+ getEdgeConfigItem,
896
+ getEdgeConfigTokens,
897
+ deleteEdgeConfigTokens,
898
+ getEdgeConfigToken,
899
+ createEdgeConfigToken
900
+ },
901
+ user: { listUserEvents, getAuthUser, requestDelete },
886
902
  integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
887
903
  logDrains: {
888
904
  getIntegrationLogDrains,
@@ -893,37 +909,26 @@ const operationsByTag = {
893
909
  getConfigurableLogDrains,
894
910
  createConfigurableLogDrain
895
911
  },
896
- webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
897
912
  teams: {
898
- getTeam,
899
- patchTeam,
900
- getTeams,
901
- createTeam,
902
- deleteTeam,
903
- deleteTeamInviteCode,
904
913
  getTeamMembers,
905
914
  inviteUserToTeam,
906
915
  requestAccessToTeam,
907
916
  getTeamAccessRequest,
908
917
  joinTeam,
909
918
  updateTeamMember,
910
- removeTeamMember
919
+ removeTeamMember,
920
+ getTeam,
921
+ patchTeam,
922
+ getTeams,
923
+ createTeam,
924
+ deleteTeam,
925
+ deleteTeamInviteCode
911
926
  },
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
- }
927
+ authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
928
+ webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
929
+ aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
930
+ certs: { getCertById, removeCert, issueCert, uploadCert },
931
+ secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret }
927
932
  };
928
933
 
929
934
  function formEncoded(data) {