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