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