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