vercel-api-js 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.mts +182 -182
- package/dist/client.d.ts +182 -182
- package/dist/generated/components.d.mts +664 -664
- package/dist/generated/components.d.ts +664 -664
- package/dist/generated/components.js +1071 -801
- package/dist/generated/components.mjs +1071 -801
- package/dist/generated/mcp.d.mts +2061 -0
- package/dist/generated/mcp.d.ts +2061 -0
- package/dist/generated/mcp.js +4692 -0
- package/dist/generated/mcp.mjs +4508 -0
- package/dist/generated/schemas.d.mts +14785 -1918
- package/dist/generated/schemas.d.ts +14785 -1918
- package/dist/generated/schemas.js +1501 -989
- package/dist/generated/schemas.mjs +1501 -989
- package/dist/generated/types.d.mts +11 -2
- package/dist/generated/types.d.ts +11 -2
- package/dist/generated/types.js +133 -132
- package/dist/generated/types.mjs +133 -132
- package/dist/index.d.mts +484 -484
- package/dist/index.d.ts +484 -484
- package/dist/mcp.d.mts +1 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +5 -0
- package/dist/mcp.mjs +1 -0
- package/dist/utils/fetcher.d.mts +2 -3
- package/dist/utils/fetcher.d.ts +2 -3
- package/dist/utils/fetcher.js +2 -1
- package/dist/utils/fetcher.mjs +2 -1
- package/dist/utils/mcp.d.mts +1 -0
- package/dist/utils/mcp.d.ts +1 -0
- package/dist/utils/mcp.js +2 -0
- package/dist/utils/mcp.mjs +1 -0
- package/package.json +14 -4
|
@@ -190,113 +190,125 @@ const fetcher_1 = __importDefault(require("../utils/fetcher.js"));
|
|
|
190
190
|
/**
|
|
191
191
|
* @description Allows to read an access group
|
|
192
192
|
* @summary Reads an access group
|
|
193
|
-
* {@link
|
|
193
|
+
* {@link /v1/access-groups/:idOrName}
|
|
194
194
|
*/
|
|
195
|
-
async function readAccessGroup({ pathParams: { idOrName }, queryParams, config = {}
|
|
195
|
+
async function readAccessGroup({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
196
196
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
197
197
|
if (!idOrName) {
|
|
198
198
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
199
199
|
}
|
|
200
|
-
const data = await request({ method: 'GET', url:
|
|
200
|
+
const data = await request({ method: 'GET', url: `/v1/access-groups/${idOrName}`, queryParams, ...requestConfig });
|
|
201
201
|
return data;
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @description Allows to update an access group metadata
|
|
205
205
|
* @summary Update an access group
|
|
206
|
-
* {@link
|
|
206
|
+
* {@link /v1/access-groups/:idOrName}
|
|
207
207
|
*/
|
|
208
|
-
async function updateAccessGroup({ pathParams: { idOrName }, queryParams, config = {}
|
|
208
|
+
async function updateAccessGroup({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
209
209
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
210
210
|
if (!idOrName) {
|
|
211
211
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
212
212
|
}
|
|
213
|
-
const data = await request({
|
|
213
|
+
const data = await request({
|
|
214
|
+
method: 'POST',
|
|
215
|
+
url: `/v1/access-groups/${idOrName}`,
|
|
216
|
+
queryParams,
|
|
217
|
+
...requestConfig,
|
|
218
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
219
|
+
});
|
|
214
220
|
return data;
|
|
215
221
|
}
|
|
216
222
|
/**
|
|
217
223
|
* @description Allows to delete an access group
|
|
218
224
|
* @summary Deletes an access group
|
|
219
|
-
* {@link
|
|
225
|
+
* {@link /v1/access-groups/:idOrName}
|
|
220
226
|
*/
|
|
221
|
-
async function deleteAccessGroup({ pathParams: { idOrName }, queryParams, config = {}
|
|
227
|
+
async function deleteAccessGroup({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
222
228
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
223
229
|
if (!idOrName) {
|
|
224
230
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
225
231
|
}
|
|
226
|
-
const data = await request({ method: 'DELETE', url:
|
|
232
|
+
const data = await request({ method: 'DELETE', url: `/v1/access-groups/${idOrName}`, queryParams, ...requestConfig });
|
|
227
233
|
return data;
|
|
228
234
|
}
|
|
229
235
|
/**
|
|
230
236
|
* @description List members of an access group
|
|
231
237
|
* @summary List members of an access group
|
|
232
|
-
* {@link
|
|
238
|
+
* {@link /v1/access-groups/:idOrName/members}
|
|
233
239
|
*/
|
|
234
|
-
async function listAccessGroupMembers({ pathParams: { idOrName }, queryParams, config = {}
|
|
240
|
+
async function listAccessGroupMembers({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
235
241
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
236
242
|
if (!idOrName) {
|
|
237
243
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
238
244
|
}
|
|
239
|
-
const data = await request({ method: 'GET', url:
|
|
245
|
+
const data = await request({ method: 'GET', url: `/v1/access-groups/${idOrName}/members`, queryParams, ...requestConfig });
|
|
240
246
|
return data;
|
|
241
247
|
}
|
|
242
248
|
/**
|
|
243
249
|
* @description List access groups
|
|
244
250
|
* @summary List access groups for a team, project or member
|
|
245
|
-
* {@link
|
|
251
|
+
* {@link /v1/access-groups}
|
|
246
252
|
*/
|
|
247
|
-
async function listAccessGroups({ queryParams, config = {}
|
|
253
|
+
async function listAccessGroups({ queryParams, config = {} }) {
|
|
248
254
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
249
|
-
const data = await request({ method: 'GET', url:
|
|
255
|
+
const data = await request({ method: 'GET', url: `/v1/access-groups`, queryParams, ...requestConfig });
|
|
250
256
|
return data;
|
|
251
257
|
}
|
|
252
258
|
/**
|
|
253
259
|
* @description Allows to create an access group
|
|
254
260
|
* @summary Creates an access group
|
|
255
|
-
* {@link
|
|
261
|
+
* {@link /v1/access-groups}
|
|
256
262
|
*/
|
|
257
|
-
async function createAccessGroup({ queryParams, config = {}
|
|
263
|
+
async function createAccessGroup({ queryParams, config = {} }) {
|
|
258
264
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
259
|
-
const data = await request({
|
|
265
|
+
const data = await request({
|
|
266
|
+
method: 'POST',
|
|
267
|
+
url: `/v1/access-groups`,
|
|
268
|
+
queryParams,
|
|
269
|
+
...requestConfig,
|
|
270
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
271
|
+
});
|
|
260
272
|
return data;
|
|
261
273
|
}
|
|
262
274
|
/**
|
|
263
275
|
* @description List projects of an access group
|
|
264
276
|
* @summary List projects of an access group
|
|
265
|
-
* {@link
|
|
277
|
+
* {@link /v1/access-groups/:idOrName/projects}
|
|
266
278
|
*/
|
|
267
|
-
async function listAccessGroupProjects({ pathParams: { idOrName }, queryParams, config = {}
|
|
279
|
+
async function listAccessGroupProjects({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
268
280
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
269
281
|
if (!idOrName) {
|
|
270
282
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
271
283
|
}
|
|
272
|
-
const data = await request({ method: 'GET', url:
|
|
284
|
+
const data = await request({ method: 'GET', url: `/v1/access-groups/${idOrName}/projects`, queryParams, ...requestConfig });
|
|
273
285
|
return data;
|
|
274
286
|
}
|
|
275
287
|
/**
|
|
276
288
|
* @description Allows creation of an access group project
|
|
277
289
|
* @summary Create an access group project
|
|
278
|
-
* {@link
|
|
290
|
+
* {@link /v1/access-groups/:accessGroupIdOrName/projects}
|
|
279
291
|
*/
|
|
280
|
-
async function createAccessGroupProject({ pathParams: { accessGroupIdOrName }, queryParams, config = {}
|
|
292
|
+
async function createAccessGroupProject({ pathParams: { accessGroupIdOrName }, queryParams, config = {} }) {
|
|
281
293
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
282
294
|
if (!accessGroupIdOrName) {
|
|
283
295
|
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
284
296
|
}
|
|
285
297
|
const data = await request({
|
|
286
298
|
method: 'POST',
|
|
287
|
-
url:
|
|
299
|
+
url: `/v1/access-groups/${accessGroupIdOrName}/projects`,
|
|
288
300
|
queryParams,
|
|
289
301
|
...requestConfig,
|
|
290
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
302
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
291
303
|
});
|
|
292
304
|
return data;
|
|
293
305
|
}
|
|
294
306
|
/**
|
|
295
307
|
* @description Allows reading an access group project
|
|
296
308
|
* @summary Reads an access group project
|
|
297
|
-
* {@link
|
|
309
|
+
* {@link /v1/access-groups/:accessGroupIdOrName/projects/:projectId}
|
|
298
310
|
*/
|
|
299
|
-
async function readAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {}
|
|
311
|
+
async function readAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {} }) {
|
|
300
312
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
301
313
|
if (!accessGroupIdOrName) {
|
|
302
314
|
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
@@ -304,15 +316,20 @@ async function readAccessGroupProject({ pathParams: { accessGroupIdOrName, proje
|
|
|
304
316
|
if (!projectId) {
|
|
305
317
|
throw new Error(`Missing required path parameter: projectId`);
|
|
306
318
|
}
|
|
307
|
-
const data = await request({
|
|
319
|
+
const data = await request({
|
|
320
|
+
method: 'GET',
|
|
321
|
+
url: `/v1/access-groups/${accessGroupIdOrName}/projects/${projectId}`,
|
|
322
|
+
queryParams,
|
|
323
|
+
...requestConfig
|
|
324
|
+
});
|
|
308
325
|
return data;
|
|
309
326
|
}
|
|
310
327
|
/**
|
|
311
328
|
* @description Allows update of an access group project
|
|
312
329
|
* @summary Update an access group project
|
|
313
|
-
* {@link
|
|
330
|
+
* {@link /v1/access-groups/:accessGroupIdOrName/projects/:projectId}
|
|
314
331
|
*/
|
|
315
|
-
async function updateAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {}
|
|
332
|
+
async function updateAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {} }) {
|
|
316
333
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
317
334
|
if (!accessGroupIdOrName) {
|
|
318
335
|
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
@@ -322,19 +339,19 @@ async function updateAccessGroupProject({ pathParams: { accessGroupIdOrName, pro
|
|
|
322
339
|
}
|
|
323
340
|
const data = await request({
|
|
324
341
|
method: 'PATCH',
|
|
325
|
-
url:
|
|
342
|
+
url: `/v1/access-groups/${accessGroupIdOrName}/projects/${projectId}`,
|
|
326
343
|
queryParams,
|
|
327
344
|
...requestConfig,
|
|
328
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
345
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
329
346
|
});
|
|
330
347
|
return data;
|
|
331
348
|
}
|
|
332
349
|
/**
|
|
333
350
|
* @description Allows deletion of an access group project
|
|
334
351
|
* @summary Delete an access group project
|
|
335
|
-
* {@link
|
|
352
|
+
* {@link /v1/access-groups/:accessGroupIdOrName/projects/:projectId}
|
|
336
353
|
*/
|
|
337
|
-
async function deleteAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {}
|
|
354
|
+
async function deleteAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {} }) {
|
|
338
355
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
339
356
|
if (!accessGroupIdOrName) {
|
|
340
357
|
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
@@ -342,115 +359,132 @@ async function deleteAccessGroupProject({ pathParams: { accessGroupIdOrName, pro
|
|
|
342
359
|
if (!projectId) {
|
|
343
360
|
throw new Error(`Missing required path parameter: projectId`);
|
|
344
361
|
}
|
|
345
|
-
const data = await request({
|
|
362
|
+
const data = await request({
|
|
363
|
+
method: 'DELETE',
|
|
364
|
+
url: `/v1/access-groups/${accessGroupIdOrName}/projects/${projectId}`,
|
|
365
|
+
queryParams,
|
|
366
|
+
...requestConfig
|
|
367
|
+
});
|
|
346
368
|
return data;
|
|
347
369
|
}
|
|
348
370
|
/**
|
|
349
371
|
* @description Records an artifacts cache usage event. The body of this request is an array of cache usage events. The supported event types are `HIT` and `MISS`. The source is either `LOCAL` the cache event was on the users filesystem cache or `REMOTE` if the cache event is for a remote cache. When the event is a `HIT` the request also accepts a number `duration` which is the time taken to generate the artifact in the cache.
|
|
350
372
|
* @summary Record an artifacts cache usage event
|
|
351
|
-
* {@link
|
|
373
|
+
* {@link /v8/artifacts/events}
|
|
352
374
|
*/
|
|
353
|
-
async function recordEvents({ queryParams, headers, config = {}
|
|
375
|
+
async function recordEvents({ queryParams, headers, config = {} }) {
|
|
354
376
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
355
377
|
const data = await request({
|
|
356
378
|
method: 'POST',
|
|
357
|
-
url:
|
|
379
|
+
url: `/v8/artifacts/events`,
|
|
358
380
|
queryParams,
|
|
359
381
|
...requestConfig,
|
|
360
|
-
headers: { 'Content-Type': 'applicationJson', ...headers, ...requestConfig.headers }
|
|
382
|
+
headers: { 'Content-Type': 'applicationJson', ...headers, ...requestConfig.headers }
|
|
361
383
|
});
|
|
362
384
|
return data;
|
|
363
385
|
}
|
|
364
386
|
/**
|
|
365
387
|
* @description Check the status of Remote Caching for this principal. Returns a JSON-encoded status indicating if Remote Caching is enabled, disabled, or disabled due to usage limits.
|
|
366
388
|
* @summary Get status of Remote Caching for this principal
|
|
367
|
-
* {@link
|
|
389
|
+
* {@link /v8/artifacts/status}
|
|
368
390
|
*/
|
|
369
391
|
async function status({ queryParams, config = {} }) {
|
|
370
392
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
371
|
-
const data = await request({ method: 'GET', url:
|
|
393
|
+
const data = await request({ method: 'GET', url: `/v8/artifacts/status`, queryParams, ...requestConfig });
|
|
372
394
|
return data;
|
|
373
395
|
}
|
|
374
396
|
/**
|
|
375
397
|
* @description Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
|
|
376
398
|
* @summary Upload a cache artifact
|
|
377
|
-
* {@link
|
|
399
|
+
* {@link /v8/artifacts/:hash}
|
|
378
400
|
*/
|
|
379
|
-
async function uploadArtifact({ pathParams: { hash }, headers, queryParams, config = {}
|
|
401
|
+
async function uploadArtifact({ pathParams: { hash }, headers, queryParams, config = {} }) {
|
|
380
402
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
381
403
|
if (!hash) {
|
|
382
404
|
throw new Error(`Missing required path parameter: hash`);
|
|
383
405
|
}
|
|
384
406
|
const data = await request({
|
|
385
407
|
method: 'PUT',
|
|
386
|
-
url:
|
|
408
|
+
url: `/v8/artifacts/${hash}`,
|
|
387
409
|
queryParams,
|
|
388
410
|
...requestConfig,
|
|
389
|
-
headers: { 'Content-Type': 'applicationOctetStream', ...headers, ...requestConfig.headers }
|
|
411
|
+
headers: { 'Content-Type': 'applicationOctetStream', ...headers, ...requestConfig.headers }
|
|
390
412
|
});
|
|
391
413
|
return data;
|
|
392
414
|
}
|
|
393
415
|
/**
|
|
394
416
|
* @description Downloads a cache artifact indentified by its `hash` specified on the request path. The artifact is downloaded as an octet-stream. The client should verify the content-length header and response body.
|
|
395
417
|
* @summary Download a cache artifact
|
|
396
|
-
* {@link
|
|
418
|
+
* {@link /v8/artifacts/:hash}
|
|
397
419
|
*/
|
|
398
|
-
async function downloadArtifact({ pathParams: { hash }, queryParams, headers, config = {}
|
|
420
|
+
async function downloadArtifact({ pathParams: { hash }, queryParams, headers, config = {} }) {
|
|
399
421
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
400
422
|
if (!hash) {
|
|
401
423
|
throw new Error(`Missing required path parameter: hash`);
|
|
402
424
|
}
|
|
403
|
-
const data = await request({
|
|
425
|
+
const data = await request({
|
|
426
|
+
method: 'GET',
|
|
427
|
+
url: `/v8/artifacts/${hash}`,
|
|
428
|
+
queryParams,
|
|
429
|
+
...requestConfig,
|
|
430
|
+
headers: { ...headers, ...requestConfig.headers }
|
|
431
|
+
});
|
|
404
432
|
return data;
|
|
405
433
|
}
|
|
406
434
|
/**
|
|
407
435
|
* @description Query information about an array of artifacts.
|
|
408
436
|
* @summary Query information about an artifact
|
|
409
|
-
* {@link
|
|
437
|
+
* {@link /v8/artifacts}
|
|
410
438
|
*/
|
|
411
|
-
async function artifactQuery({ queryParams, config = {}
|
|
439
|
+
async function artifactQuery({ queryParams, config = {} }) {
|
|
412
440
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
413
|
-
const data = await request({
|
|
441
|
+
const data = await request({
|
|
442
|
+
method: 'POST',
|
|
443
|
+
url: `/v8/artifacts`,
|
|
444
|
+
queryParams,
|
|
445
|
+
...requestConfig,
|
|
446
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
447
|
+
});
|
|
414
448
|
return data;
|
|
415
449
|
}
|
|
416
450
|
/**
|
|
417
451
|
* @description Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
418
452
|
* @summary Creates a new Check
|
|
419
|
-
* {@link
|
|
453
|
+
* {@link /v1/deployments/:deploymentId/checks}
|
|
420
454
|
*/
|
|
421
|
-
async function createCheck({ pathParams: { deploymentId }, queryParams, config = {}
|
|
455
|
+
async function createCheck({ pathParams: { deploymentId }, queryParams, config = {} }) {
|
|
422
456
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
423
457
|
if (!deploymentId) {
|
|
424
458
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
425
459
|
}
|
|
426
460
|
const data = await request({
|
|
427
461
|
method: 'POST',
|
|
428
|
-
url:
|
|
462
|
+
url: `/v1/deployments/${deploymentId}/checks`,
|
|
429
463
|
queryParams,
|
|
430
464
|
...requestConfig,
|
|
431
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
465
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
432
466
|
});
|
|
433
467
|
return data;
|
|
434
468
|
}
|
|
435
469
|
/**
|
|
436
470
|
* @description List all of the checks created for a deployment.
|
|
437
471
|
* @summary Retrieve a list of all checks
|
|
438
|
-
* {@link
|
|
472
|
+
* {@link /v1/deployments/:deploymentId/checks}
|
|
439
473
|
*/
|
|
440
|
-
async function getAllChecks({ pathParams: { deploymentId }, queryParams, config = {}
|
|
474
|
+
async function getAllChecks({ pathParams: { deploymentId }, queryParams, config = {} }) {
|
|
441
475
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
442
476
|
if (!deploymentId) {
|
|
443
477
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
444
478
|
}
|
|
445
|
-
const data = await request({ method: 'GET', url:
|
|
479
|
+
const data = await request({ method: 'GET', url: `/v1/deployments/${deploymentId}/checks`, queryParams, ...requestConfig });
|
|
446
480
|
return data;
|
|
447
481
|
}
|
|
448
482
|
/**
|
|
449
483
|
* @description Return a detailed response for a single check.
|
|
450
484
|
* @summary Get a single check
|
|
451
|
-
* {@link
|
|
485
|
+
* {@link /v1/deployments/:deploymentId/checks/:checkId}
|
|
452
486
|
*/
|
|
453
|
-
async function getCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {}
|
|
487
|
+
async function getCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {} }) {
|
|
454
488
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
455
489
|
if (!deploymentId) {
|
|
456
490
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
@@ -458,15 +492,15 @@ async function getCheck({ pathParams: { deploymentId, checkId }, queryParams, co
|
|
|
458
492
|
if (!checkId) {
|
|
459
493
|
throw new Error(`Missing required path parameter: checkId`);
|
|
460
494
|
}
|
|
461
|
-
const data = await request({ method: 'GET', url:
|
|
495
|
+
const data = await request({ method: 'GET', url: `/v1/deployments/${deploymentId}/checks/${checkId}`, queryParams, ...requestConfig });
|
|
462
496
|
return data;
|
|
463
497
|
}
|
|
464
498
|
/**
|
|
465
499
|
* @description Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
466
500
|
* @summary Update a check
|
|
467
|
-
* {@link
|
|
501
|
+
* {@link /v1/deployments/:deploymentId/checks/:checkId}
|
|
468
502
|
*/
|
|
469
|
-
async function updateCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {}
|
|
503
|
+
async function updateCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {} }) {
|
|
470
504
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
471
505
|
if (!deploymentId) {
|
|
472
506
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
@@ -476,19 +510,19 @@ async function updateCheck({ pathParams: { deploymentId, checkId }, queryParams,
|
|
|
476
510
|
}
|
|
477
511
|
const data = await request({
|
|
478
512
|
method: 'PATCH',
|
|
479
|
-
url:
|
|
513
|
+
url: `/v1/deployments/${deploymentId}/checks/${checkId}`,
|
|
480
514
|
queryParams,
|
|
481
515
|
...requestConfig,
|
|
482
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
516
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
483
517
|
});
|
|
484
518
|
return data;
|
|
485
519
|
}
|
|
486
520
|
/**
|
|
487
521
|
* @description Rerequest a selected check that has failed.
|
|
488
522
|
* @summary Rerequest a check
|
|
489
|
-
* {@link
|
|
523
|
+
* {@link /v1/deployments/:deploymentId/checks/:checkId/rerequest}
|
|
490
524
|
*/
|
|
491
|
-
async function rerequestCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {}
|
|
525
|
+
async function rerequestCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {} }) {
|
|
492
526
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
493
527
|
if (!deploymentId) {
|
|
494
528
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
@@ -496,63 +530,73 @@ async function rerequestCheck({ pathParams: { deploymentId, checkId }, queryPara
|
|
|
496
530
|
if (!checkId) {
|
|
497
531
|
throw new Error(`Missing required path parameter: checkId`);
|
|
498
532
|
}
|
|
499
|
-
const data = await request({
|
|
533
|
+
const data = await request({
|
|
534
|
+
method: 'POST',
|
|
535
|
+
url: `/v1/deployments/${deploymentId}/checks/${checkId}/rerequest`,
|
|
536
|
+
queryParams,
|
|
537
|
+
...requestConfig
|
|
538
|
+
});
|
|
500
539
|
return data;
|
|
501
540
|
}
|
|
502
541
|
/**
|
|
503
|
-
* {@link
|
|
542
|
+
* {@link /data-cache/purge-all}
|
|
504
543
|
*/
|
|
505
|
-
async function purgeAllDataCache({ queryParams, config = {}
|
|
544
|
+
async function purgeAllDataCache({ queryParams, config = {} }) {
|
|
506
545
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
507
|
-
const data = await request({ method: 'DELETE', url:
|
|
546
|
+
const data = await request({ method: 'DELETE', url: `/data-cache/purge-all`, queryParams, ...requestConfig });
|
|
508
547
|
return data;
|
|
509
548
|
}
|
|
510
549
|
/**
|
|
511
|
-
* {@link
|
|
550
|
+
* {@link /data-cache/billing-settings}
|
|
512
551
|
*/
|
|
513
552
|
async function updateDataCacheBillingSettings({ config = {} }) {
|
|
514
553
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
515
|
-
const data = await request({
|
|
554
|
+
const data = await request({
|
|
555
|
+
method: 'PATCH',
|
|
556
|
+
url: `/data-cache/billing-settings`,
|
|
557
|
+
...requestConfig,
|
|
558
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
559
|
+
});
|
|
516
560
|
return data;
|
|
517
561
|
}
|
|
518
562
|
/**
|
|
519
563
|
* @description Update the data cache feature on a project.
|
|
520
564
|
* @summary Update the data cache feature
|
|
521
|
-
* {@link
|
|
565
|
+
* {@link /v1/data-cache/projects/:projectId}
|
|
522
566
|
*/
|
|
523
|
-
async function updateProjectDataCache({ pathParams: { projectId }, queryParams, config = {}
|
|
567
|
+
async function updateProjectDataCache({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
524
568
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
525
569
|
if (!projectId) {
|
|
526
570
|
throw new Error(`Missing required path parameter: projectId`);
|
|
527
571
|
}
|
|
528
572
|
const data = await request({
|
|
529
573
|
method: 'PATCH',
|
|
530
|
-
url:
|
|
574
|
+
url: `/v1/data-cache/projects/${projectId}`,
|
|
531
575
|
queryParams,
|
|
532
576
|
...requestConfig,
|
|
533
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
577
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
534
578
|
});
|
|
535
579
|
return data;
|
|
536
580
|
}
|
|
537
581
|
/**
|
|
538
582
|
* @description 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.
|
|
539
583
|
* @summary Get deployment events
|
|
540
|
-
* {@link
|
|
584
|
+
* {@link /v3/deployments/:idOrUrl/events}
|
|
541
585
|
*/
|
|
542
|
-
async function getDeploymentEvents({ pathParams: { idOrUrl }, queryParams, config = {}
|
|
586
|
+
async function getDeploymentEvents({ pathParams: { idOrUrl }, queryParams, config = {} }) {
|
|
543
587
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
544
588
|
if (!idOrUrl) {
|
|
545
589
|
throw new Error(`Missing required path parameter: idOrUrl`);
|
|
546
590
|
}
|
|
547
|
-
const data = await request({ method: 'GET', url:
|
|
591
|
+
const data = await request({ method: 'GET', url: `/v3/deployments/${idOrUrl}/events`, queryParams, ...requestConfig });
|
|
548
592
|
return data;
|
|
549
593
|
}
|
|
550
594
|
/**
|
|
551
595
|
* @description Updates the deployment integration action for the specified integration installation
|
|
552
596
|
* @summary Update deployment integration action
|
|
553
|
-
* {@link
|
|
597
|
+
* {@link /v1/deployments/:deploymentId/integrations/:integrationConfigurationId/resources/:resourceId/actions/:action}
|
|
554
598
|
*/
|
|
555
|
-
async function updateIntegrationDeploymentAction({ pathParams: { deploymentId, integrationConfigurationId, resourceId, action }, config = {}
|
|
599
|
+
async function updateIntegrationDeploymentAction({ pathParams: { deploymentId, integrationConfigurationId, resourceId, action }, config = {} }) {
|
|
556
600
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
557
601
|
if (!deploymentId) {
|
|
558
602
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
@@ -568,129 +612,147 @@ async function updateIntegrationDeploymentAction({ pathParams: { deploymentId, i
|
|
|
568
612
|
}
|
|
569
613
|
const data = await request({
|
|
570
614
|
method: 'PATCH',
|
|
571
|
-
url:
|
|
615
|
+
url: `/v1/deployments/${deploymentId}/integrations/${integrationConfigurationId}/resources/${resourceId}/actions/${action}`,
|
|
572
616
|
...requestConfig,
|
|
573
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
617
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
574
618
|
});
|
|
575
619
|
return data;
|
|
576
620
|
}
|
|
577
621
|
/**
|
|
578
622
|
* @description 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 or team is an owner of the deployment.
|
|
579
623
|
* @summary Get a deployment by ID or URL
|
|
580
|
-
* {@link
|
|
624
|
+
* {@link /v13/deployments/:idOrUrl}
|
|
581
625
|
*/
|
|
582
|
-
async function getDeployment({ pathParams: { idOrUrl }, queryParams, config = {}
|
|
626
|
+
async function getDeployment({ pathParams: { idOrUrl }, queryParams, config = {} }) {
|
|
583
627
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
584
628
|
if (!idOrUrl) {
|
|
585
629
|
throw new Error(`Missing required path parameter: idOrUrl`);
|
|
586
630
|
}
|
|
587
|
-
const data = await request({ method: 'GET', url:
|
|
631
|
+
const data = await request({ method: 'GET', url: `/v13/deployments/${idOrUrl}`, queryParams, ...requestConfig });
|
|
588
632
|
return data;
|
|
589
633
|
}
|
|
590
634
|
/**
|
|
591
635
|
* @description 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.
|
|
592
636
|
* @summary Create a new deployment
|
|
593
|
-
* {@link
|
|
637
|
+
* {@link /v13/deployments}
|
|
594
638
|
*/
|
|
595
|
-
async function createDeployment({ queryParams, config = {}
|
|
639
|
+
async function createDeployment({ queryParams, config = {} }) {
|
|
596
640
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
597
|
-
const data = await request({
|
|
641
|
+
const data = await request({
|
|
642
|
+
method: 'POST',
|
|
643
|
+
url: `/v13/deployments`,
|
|
644
|
+
queryParams,
|
|
645
|
+
...requestConfig,
|
|
646
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
647
|
+
});
|
|
598
648
|
return data;
|
|
599
649
|
}
|
|
600
650
|
/**
|
|
601
651
|
* @description This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
|
|
602
652
|
* @summary Cancel a deployment
|
|
603
|
-
* {@link
|
|
653
|
+
* {@link /v12/deployments/:id/cancel}
|
|
604
654
|
*/
|
|
605
|
-
async function cancelDeployment({ pathParams: { id }, queryParams, config = {}
|
|
655
|
+
async function cancelDeployment({ pathParams: { id }, queryParams, config = {} }) {
|
|
606
656
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
607
657
|
if (!id) {
|
|
608
658
|
throw new Error(`Missing required path parameter: id`);
|
|
609
659
|
}
|
|
610
|
-
const data = await request({ method: 'PATCH', url:
|
|
660
|
+
const data = await request({ method: 'PATCH', url: `/v12/deployments/${id}/cancel`, queryParams, ...requestConfig });
|
|
611
661
|
return data;
|
|
612
662
|
}
|
|
613
663
|
/**
|
|
614
664
|
* @description Allows to purchase the specified domain.
|
|
615
665
|
* @summary Purchase a domain
|
|
616
|
-
* {@link
|
|
666
|
+
* {@link /v5/domains/buy}
|
|
617
667
|
*/
|
|
618
|
-
async function buyDomain({ queryParams, config = {}
|
|
668
|
+
async function buyDomain({ queryParams, config = {} }) {
|
|
619
669
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
620
|
-
const data = await request({
|
|
670
|
+
const data = await request({
|
|
671
|
+
method: 'POST',
|
|
672
|
+
url: `/v5/domains/buy`,
|
|
673
|
+
queryParams,
|
|
674
|
+
...requestConfig,
|
|
675
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
676
|
+
});
|
|
621
677
|
return data;
|
|
622
678
|
}
|
|
623
679
|
/**
|
|
624
680
|
* @description Check the price to purchase a domain and how long a single purchase period is.
|
|
625
681
|
* @summary Check the price for a domain
|
|
626
|
-
* {@link
|
|
682
|
+
* {@link /v4/domains/price}
|
|
627
683
|
*/
|
|
628
|
-
async function checkDomainPrice({ queryParams, config = {}
|
|
684
|
+
async function checkDomainPrice({ queryParams, config = {} }) {
|
|
629
685
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
630
|
-
const data = await request({ method: 'GET', url:
|
|
686
|
+
const data = await request({ method: 'GET', url: `/v4/domains/price`, queryParams, ...requestConfig });
|
|
631
687
|
return data;
|
|
632
688
|
}
|
|
633
689
|
/**
|
|
634
690
|
* @description Check if a domain name is available for purchase.
|
|
635
691
|
* @summary Check a Domain Availability
|
|
636
|
-
* {@link
|
|
692
|
+
* {@link /v4/domains/status}
|
|
637
693
|
*/
|
|
638
|
-
async function checkDomainStatus({ queryParams, config = {}
|
|
694
|
+
async function checkDomainStatus({ queryParams, config = {} }) {
|
|
639
695
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
640
|
-
const data = await request({ method: 'GET', url:
|
|
696
|
+
const data = await request({ method: 'GET', url: `/v4/domains/status`, queryParams, ...requestConfig });
|
|
641
697
|
return data;
|
|
642
698
|
}
|
|
643
699
|
/**
|
|
644
700
|
* @description 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.
|
|
645
701
|
* @summary List existing DNS records
|
|
646
|
-
* {@link
|
|
702
|
+
* {@link /v4/domains/:domain/records}
|
|
647
703
|
*/
|
|
648
|
-
async function getRecords({ pathParams: { domain }, queryParams, config = {}
|
|
704
|
+
async function getRecords({ pathParams: { domain }, queryParams, config = {} }) {
|
|
649
705
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
650
706
|
if (!domain) {
|
|
651
707
|
throw new Error(`Missing required path parameter: domain`);
|
|
652
708
|
}
|
|
653
|
-
const data = await request({ method: 'GET', url:
|
|
709
|
+
const data = await request({ method: 'GET', url: `/v4/domains/${domain}/records`, queryParams, ...requestConfig });
|
|
654
710
|
return data;
|
|
655
711
|
}
|
|
656
712
|
/**
|
|
657
713
|
* @description Creates a DNS record for a domain.
|
|
658
714
|
* @summary Create a DNS record
|
|
659
|
-
* {@link
|
|
715
|
+
* {@link /v2/domains/:domain/records}
|
|
660
716
|
*/
|
|
661
|
-
async function createRecord({ pathParams: { domain }, queryParams, config = {}
|
|
717
|
+
async function createRecord({ pathParams: { domain }, queryParams, config = {} }) {
|
|
662
718
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
663
719
|
if (!domain) {
|
|
664
720
|
throw new Error(`Missing required path parameter: domain`);
|
|
665
721
|
}
|
|
666
|
-
const data = await request({
|
|
722
|
+
const data = await request({
|
|
723
|
+
method: 'POST',
|
|
724
|
+
url: `/v2/domains/${domain}/records`,
|
|
725
|
+
queryParams,
|
|
726
|
+
...requestConfig,
|
|
727
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
728
|
+
});
|
|
667
729
|
return data;
|
|
668
730
|
}
|
|
669
731
|
/**
|
|
670
732
|
* @description Updates an existing DNS record for a domain name.
|
|
671
733
|
* @summary Update an existing DNS record
|
|
672
|
-
* {@link
|
|
734
|
+
* {@link /v1/domains/records/:recordId}
|
|
673
735
|
*/
|
|
674
|
-
async function updateRecord({ pathParams: { recordId }, queryParams, config = {}
|
|
736
|
+
async function updateRecord({ pathParams: { recordId }, queryParams, config = {} }) {
|
|
675
737
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
676
738
|
if (!recordId) {
|
|
677
739
|
throw new Error(`Missing required path parameter: recordId`);
|
|
678
740
|
}
|
|
679
741
|
const data = await request({
|
|
680
742
|
method: 'PATCH',
|
|
681
|
-
url:
|
|
743
|
+
url: `/v1/domains/records/${recordId}`,
|
|
682
744
|
queryParams,
|
|
683
745
|
...requestConfig,
|
|
684
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
746
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
685
747
|
});
|
|
686
748
|
return data;
|
|
687
749
|
}
|
|
688
750
|
/**
|
|
689
751
|
* @description Removes an existing DNS record from a domain name.
|
|
690
752
|
* @summary Delete a DNS record
|
|
691
|
-
* {@link
|
|
753
|
+
* {@link /v2/domains/:domain/records/:recordId}
|
|
692
754
|
*/
|
|
693
|
-
async function removeRecord({ pathParams: { domain, recordId }, queryParams, config = {}
|
|
755
|
+
async function removeRecord({ pathParams: { domain, recordId }, queryParams, config = {} }) {
|
|
694
756
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
695
757
|
if (!domain) {
|
|
696
758
|
throw new Error(`Missing required path parameter: domain`);
|
|
@@ -698,236 +760,260 @@ async function removeRecord({ pathParams: { domain, recordId }, queryParams, con
|
|
|
698
760
|
if (!recordId) {
|
|
699
761
|
throw new Error(`Missing required path parameter: recordId`);
|
|
700
762
|
}
|
|
701
|
-
const data = await request({ method: 'DELETE', url:
|
|
763
|
+
const data = await request({ method: 'DELETE', url: `/v2/domains/${domain}/records/${recordId}`, queryParams, ...requestConfig });
|
|
702
764
|
return data;
|
|
703
765
|
}
|
|
704
766
|
/**
|
|
705
767
|
* @description Fetch domain transfer availability or transfer status if a transfer is in progress.
|
|
706
768
|
* @summary Get domain transfer info.
|
|
707
|
-
* {@link
|
|
769
|
+
* {@link /v1/domains/:domain/registry}
|
|
708
770
|
*/
|
|
709
|
-
async function getDomainTransfer({ pathParams: { domain }, queryParams, config = {}
|
|
771
|
+
async function getDomainTransfer({ pathParams: { domain }, queryParams, config = {} }) {
|
|
710
772
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
711
773
|
if (!domain) {
|
|
712
774
|
throw new Error(`Missing required path parameter: domain`);
|
|
713
775
|
}
|
|
714
|
-
const data = await request({ method: 'GET', url:
|
|
776
|
+
const data = await request({ method: 'GET', url: `/v1/domains/${domain}/registry`, queryParams, ...requestConfig });
|
|
715
777
|
return data;
|
|
716
778
|
}
|
|
717
779
|
/**
|
|
718
780
|
* @description Get a Domain's configuration.
|
|
719
781
|
* @summary Get a Domain's configuration
|
|
720
|
-
* {@link
|
|
782
|
+
* {@link /v6/domains/:domain/config}
|
|
721
783
|
*/
|
|
722
|
-
async function getDomainConfig({ pathParams: { domain }, queryParams, config = {}
|
|
784
|
+
async function getDomainConfig({ pathParams: { domain }, queryParams, config = {} }) {
|
|
723
785
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
724
786
|
if (!domain) {
|
|
725
787
|
throw new Error(`Missing required path parameter: domain`);
|
|
726
788
|
}
|
|
727
|
-
const data = await request({ method: 'GET', url:
|
|
789
|
+
const data = await request({ method: 'GET', url: `/v6/domains/${domain}/config`, queryParams, ...requestConfig });
|
|
728
790
|
return data;
|
|
729
791
|
}
|
|
730
792
|
/**
|
|
731
793
|
* @description Get information for a single domain in an account or team.
|
|
732
794
|
* @summary Get Information for a Single Domain
|
|
733
|
-
* {@link
|
|
795
|
+
* {@link /v5/domains/:domain}
|
|
734
796
|
*/
|
|
735
|
-
async function getDomain({ pathParams: { domain }, queryParams, config = {}
|
|
797
|
+
async function getDomain({ pathParams: { domain }, queryParams, config = {} }) {
|
|
736
798
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
737
799
|
if (!domain) {
|
|
738
800
|
throw new Error(`Missing required path parameter: domain`);
|
|
739
801
|
}
|
|
740
|
-
const data = await request({ method: 'GET', url:
|
|
802
|
+
const data = await request({ method: 'GET', url: `/v5/domains/${domain}`, queryParams, ...requestConfig });
|
|
741
803
|
return data;
|
|
742
804
|
}
|
|
743
805
|
/**
|
|
744
806
|
* @description Retrieves a list of domains registered for the authenticated user or team. By default it returns the last 20 domains if no limit is provided.
|
|
745
807
|
* @summary List all the domains
|
|
746
|
-
* {@link
|
|
808
|
+
* {@link /v5/domains}
|
|
747
809
|
*/
|
|
748
|
-
async function getDomains({ queryParams, config = {}
|
|
810
|
+
async function getDomains({ queryParams, config = {} }) {
|
|
749
811
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
750
|
-
const data = await request({ method: 'GET', url:
|
|
812
|
+
const data = await request({ method: 'GET', url: `/v5/domains`, queryParams, ...requestConfig });
|
|
751
813
|
return data;
|
|
752
814
|
}
|
|
753
815
|
/**
|
|
754
816
|
* @description This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
|
|
755
817
|
* @summary Register or transfer-in a new Domain
|
|
756
|
-
* {@link
|
|
818
|
+
* {@link /v7/domains}
|
|
757
819
|
*/
|
|
758
|
-
async function createOrTransferDomain({ queryParams, config = {}
|
|
820
|
+
async function createOrTransferDomain({ queryParams, config = {} }) {
|
|
759
821
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
760
|
-
const data = await request({
|
|
822
|
+
const data = await request({
|
|
823
|
+
method: 'POST',
|
|
824
|
+
url: `/v7/domains`,
|
|
825
|
+
queryParams,
|
|
826
|
+
...requestConfig,
|
|
827
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
828
|
+
});
|
|
761
829
|
return data;
|
|
762
830
|
}
|
|
763
831
|
/**
|
|
764
832
|
* @description Update or move apex domain.
|
|
765
833
|
* @summary Update or move apex domain
|
|
766
|
-
* {@link
|
|
834
|
+
* {@link /v3/domains/:domain}
|
|
767
835
|
*/
|
|
768
|
-
async function patchDomain({ pathParams: { domain }, queryParams, config = {}
|
|
836
|
+
async function patchDomain({ pathParams: { domain }, queryParams, config = {} }) {
|
|
769
837
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
770
838
|
if (!domain) {
|
|
771
839
|
throw new Error(`Missing required path parameter: domain`);
|
|
772
840
|
}
|
|
773
|
-
const data = await request({
|
|
841
|
+
const data = await request({
|
|
842
|
+
method: 'PATCH',
|
|
843
|
+
url: `/v3/domains/${domain}`,
|
|
844
|
+
queryParams,
|
|
845
|
+
...requestConfig,
|
|
846
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
847
|
+
});
|
|
774
848
|
return data;
|
|
775
849
|
}
|
|
776
850
|
/**
|
|
777
851
|
* @description Delete a previously registered domain name from Vercel. Deleting a domain will automatically remove any associated aliases.
|
|
778
852
|
* @summary Remove a domain by name
|
|
779
|
-
* {@link
|
|
853
|
+
* {@link /v6/domains/:domain}
|
|
780
854
|
*/
|
|
781
|
-
async function deleteDomain({ pathParams: { domain }, queryParams, config = {}
|
|
855
|
+
async function deleteDomain({ pathParams: { domain }, queryParams, config = {} }) {
|
|
782
856
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
783
857
|
if (!domain) {
|
|
784
858
|
throw new Error(`Missing required path parameter: domain`);
|
|
785
859
|
}
|
|
786
|
-
const data = await request({ method: 'DELETE', url:
|
|
860
|
+
const data = await request({ method: 'DELETE', url: `/v6/domains/${domain}`, queryParams, ...requestConfig });
|
|
787
861
|
return data;
|
|
788
862
|
}
|
|
789
863
|
/**
|
|
790
864
|
* @description Returns all Edge Configs.
|
|
791
865
|
* @summary Get Edge Configs
|
|
792
|
-
* {@link
|
|
866
|
+
* {@link /v1/edge-config}
|
|
793
867
|
*/
|
|
794
|
-
async function getEdgeConfigs({ queryParams, config = {}
|
|
868
|
+
async function getEdgeConfigs({ queryParams, config = {} }) {
|
|
795
869
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
796
|
-
const data = await request({ method: 'GET', url:
|
|
870
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config`, queryParams, ...requestConfig });
|
|
797
871
|
return data;
|
|
798
872
|
}
|
|
799
873
|
/**
|
|
800
874
|
* @description Creates an Edge Config.
|
|
801
875
|
* @summary Create an Edge Config
|
|
802
|
-
* {@link
|
|
876
|
+
* {@link /v1/edge-config}
|
|
803
877
|
*/
|
|
804
|
-
async function createEdgeConfig({ queryParams, config = {}
|
|
878
|
+
async function createEdgeConfig({ queryParams, config = {} }) {
|
|
805
879
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
806
|
-
const data = await request({
|
|
880
|
+
const data = await request({
|
|
881
|
+
method: 'POST',
|
|
882
|
+
url: `/v1/edge-config`,
|
|
883
|
+
queryParams,
|
|
884
|
+
...requestConfig,
|
|
885
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
886
|
+
});
|
|
807
887
|
return data;
|
|
808
888
|
}
|
|
809
889
|
/**
|
|
810
890
|
* @description Returns an Edge Config.
|
|
811
891
|
* @summary Get an Edge Config
|
|
812
|
-
* {@link
|
|
892
|
+
* {@link /v1/edge-config/:edgeConfigId}
|
|
813
893
|
*/
|
|
814
|
-
async function getEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
894
|
+
async function getEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
815
895
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
816
896
|
if (!edgeConfigId) {
|
|
817
897
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
818
898
|
}
|
|
819
|
-
const data = await request({ method: 'GET', url:
|
|
899
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}`, queryParams, ...requestConfig });
|
|
820
900
|
return data;
|
|
821
901
|
}
|
|
822
902
|
/**
|
|
823
903
|
* @description Updates an Edge Config.
|
|
824
904
|
* @summary Update an Edge Config
|
|
825
|
-
* {@link
|
|
905
|
+
* {@link /v1/edge-config/:edgeConfigId}
|
|
826
906
|
*/
|
|
827
|
-
async function updateEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
907
|
+
async function updateEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
828
908
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
829
909
|
if (!edgeConfigId) {
|
|
830
910
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
831
911
|
}
|
|
832
|
-
const data = await request({
|
|
912
|
+
const data = await request({
|
|
913
|
+
method: 'PUT',
|
|
914
|
+
url: `/v1/edge-config/${edgeConfigId}`,
|
|
915
|
+
queryParams,
|
|
916
|
+
...requestConfig,
|
|
917
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
918
|
+
});
|
|
833
919
|
return data;
|
|
834
920
|
}
|
|
835
921
|
/**
|
|
836
922
|
* @description Delete an Edge Config by id.
|
|
837
923
|
* @summary Delete an Edge Config
|
|
838
|
-
* {@link
|
|
924
|
+
* {@link /v1/edge-config/:edgeConfigId}
|
|
839
925
|
*/
|
|
840
|
-
async function deleteEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
926
|
+
async function deleteEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
841
927
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
842
928
|
if (!edgeConfigId) {
|
|
843
929
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
844
930
|
}
|
|
845
|
-
const data = await request({ method: 'DELETE', url:
|
|
931
|
+
const data = await request({ method: 'DELETE', url: `/v1/edge-config/${edgeConfigId}`, queryParams, ...requestConfig });
|
|
846
932
|
return data;
|
|
847
933
|
}
|
|
848
934
|
/**
|
|
849
935
|
* @description Returns all items of an Edge Config.
|
|
850
936
|
* @summary Get Edge Config items
|
|
851
|
-
* {@link
|
|
937
|
+
* {@link /v1/edge-config/:edgeConfigId/items}
|
|
852
938
|
*/
|
|
853
|
-
async function getEdgeConfigItems({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
939
|
+
async function getEdgeConfigItems({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
854
940
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
855
941
|
if (!edgeConfigId) {
|
|
856
942
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
857
943
|
}
|
|
858
|
-
const data = await request({ method: 'GET', url:
|
|
944
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/items`, queryParams, ...requestConfig });
|
|
859
945
|
return data;
|
|
860
946
|
}
|
|
861
947
|
/**
|
|
862
948
|
* @description Update multiple Edge Config Items in batch.
|
|
863
949
|
* @summary Update Edge Config items in batch
|
|
864
|
-
* {@link
|
|
950
|
+
* {@link /v1/edge-config/:edgeConfigId/items}
|
|
865
951
|
*/
|
|
866
|
-
async function patchEdgeConfigItems({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
952
|
+
async function patchEdgeConfigItems({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
867
953
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
868
954
|
if (!edgeConfigId) {
|
|
869
955
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
870
956
|
}
|
|
871
957
|
const data = await request({
|
|
872
958
|
method: 'PATCH',
|
|
873
|
-
url:
|
|
959
|
+
url: `/v1/edge-config/${edgeConfigId}/items`,
|
|
874
960
|
queryParams,
|
|
875
961
|
...requestConfig,
|
|
876
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
962
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
877
963
|
});
|
|
878
964
|
return data;
|
|
879
965
|
}
|
|
880
966
|
/**
|
|
881
967
|
* @description Returns the schema of an Edge Config.
|
|
882
968
|
* @summary Get Edge Config schema
|
|
883
|
-
* {@link
|
|
969
|
+
* {@link /v1/edge-config/:edgeConfigId/schema}
|
|
884
970
|
*/
|
|
885
|
-
async function getEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
971
|
+
async function getEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
886
972
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
887
973
|
if (!edgeConfigId) {
|
|
888
974
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
889
975
|
}
|
|
890
|
-
const data = await request({ method: 'GET', url:
|
|
976
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/schema`, queryParams, ...requestConfig });
|
|
891
977
|
return data;
|
|
892
978
|
}
|
|
893
979
|
/**
|
|
894
980
|
* @description Update an Edge Config's schema.
|
|
895
981
|
* @summary Update Edge Config schema
|
|
896
|
-
* {@link
|
|
982
|
+
* {@link /v1/edge-config/:edgeConfigId/schema}
|
|
897
983
|
*/
|
|
898
|
-
async function patchEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
984
|
+
async function patchEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
899
985
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
900
986
|
if (!edgeConfigId) {
|
|
901
987
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
902
988
|
}
|
|
903
989
|
const data = await request({
|
|
904
990
|
method: 'POST',
|
|
905
|
-
url:
|
|
991
|
+
url: `/v1/edge-config/${edgeConfigId}/schema`,
|
|
906
992
|
queryParams,
|
|
907
993
|
...requestConfig,
|
|
908
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
994
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
909
995
|
});
|
|
910
996
|
return data;
|
|
911
997
|
}
|
|
912
998
|
/**
|
|
913
999
|
* @description Deletes the schema of existing Edge Config.
|
|
914
1000
|
* @summary Delete an Edge Config's schema
|
|
915
|
-
* {@link
|
|
1001
|
+
* {@link /v1/edge-config/:edgeConfigId/schema}
|
|
916
1002
|
*/
|
|
917
|
-
async function deleteEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
1003
|
+
async function deleteEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
918
1004
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
919
1005
|
if (!edgeConfigId) {
|
|
920
1006
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
921
1007
|
}
|
|
922
|
-
const data = await request({ method: 'DELETE', url:
|
|
1008
|
+
const data = await request({ method: 'DELETE', url: `/v1/edge-config/${edgeConfigId}/schema`, queryParams, ...requestConfig });
|
|
923
1009
|
return data;
|
|
924
1010
|
}
|
|
925
1011
|
/**
|
|
926
1012
|
* @description Returns a specific Edge Config Item.
|
|
927
1013
|
* @summary Get an Edge Config item
|
|
928
|
-
* {@link
|
|
1014
|
+
* {@link /v1/edge-config/:edgeConfigId/item/:edgeConfigItemKey}
|
|
929
1015
|
*/
|
|
930
|
-
async function getEdgeConfigItem({ pathParams: { edgeConfigId, edgeConfigItemKey }, queryParams, config = {}
|
|
1016
|
+
async function getEdgeConfigItem({ pathParams: { edgeConfigId, edgeConfigItemKey }, queryParams, config = {} }) {
|
|
931
1017
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
932
1018
|
if (!edgeConfigId) {
|
|
933
1019
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
@@ -935,47 +1021,47 @@ async function getEdgeConfigItem({ pathParams: { edgeConfigId, edgeConfigItemKey
|
|
|
935
1021
|
if (!edgeConfigItemKey) {
|
|
936
1022
|
throw new Error(`Missing required path parameter: edgeConfigItemKey`);
|
|
937
1023
|
}
|
|
938
|
-
const data = await request({ method: 'GET', url:
|
|
1024
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/item/${edgeConfigItemKey}`, queryParams, ...requestConfig });
|
|
939
1025
|
return data;
|
|
940
1026
|
}
|
|
941
1027
|
/**
|
|
942
1028
|
* @description Returns all tokens of an Edge Config.
|
|
943
1029
|
* @summary Get all tokens of an Edge Config
|
|
944
|
-
* {@link
|
|
1030
|
+
* {@link /v1/edge-config/:edgeConfigId/tokens}
|
|
945
1031
|
*/
|
|
946
|
-
async function getEdgeConfigTokens({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
1032
|
+
async function getEdgeConfigTokens({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
947
1033
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
948
1034
|
if (!edgeConfigId) {
|
|
949
1035
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
950
1036
|
}
|
|
951
|
-
const data = await request({ method: 'GET', url:
|
|
1037
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/tokens`, queryParams, ...requestConfig });
|
|
952
1038
|
return data;
|
|
953
1039
|
}
|
|
954
1040
|
/**
|
|
955
1041
|
* @description Deletes one or more tokens of an existing Edge Config.
|
|
956
1042
|
* @summary Delete one or more Edge Config tokens
|
|
957
|
-
* {@link
|
|
1043
|
+
* {@link /v1/edge-config/:edgeConfigId/tokens}
|
|
958
1044
|
*/
|
|
959
|
-
async function deleteEdgeConfigTokens({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
1045
|
+
async function deleteEdgeConfigTokens({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
960
1046
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
961
1047
|
if (!edgeConfigId) {
|
|
962
1048
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
963
1049
|
}
|
|
964
1050
|
const data = await request({
|
|
965
1051
|
method: 'DELETE',
|
|
966
|
-
url:
|
|
1052
|
+
url: `/v1/edge-config/${edgeConfigId}/tokens`,
|
|
967
1053
|
queryParams,
|
|
968
1054
|
...requestConfig,
|
|
969
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1055
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
970
1056
|
});
|
|
971
1057
|
return data;
|
|
972
1058
|
}
|
|
973
1059
|
/**
|
|
974
1060
|
* @description Return meta data about an Edge Config token.
|
|
975
1061
|
* @summary Get Edge Config token meta data
|
|
976
|
-
* {@link
|
|
1062
|
+
* {@link /v1/edge-config/:edgeConfigId/token/:token}
|
|
977
1063
|
*/
|
|
978
|
-
async function getEdgeConfigToken({ pathParams: { edgeConfigId, token }, queryParams, config = {}
|
|
1064
|
+
async function getEdgeConfigToken({ pathParams: { edgeConfigId, token }, queryParams, config = {} }) {
|
|
979
1065
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
980
1066
|
if (!edgeConfigId) {
|
|
981
1067
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
@@ -983,34 +1069,34 @@ async function getEdgeConfigToken({ pathParams: { edgeConfigId, token }, queryPa
|
|
|
983
1069
|
if (!token) {
|
|
984
1070
|
throw new Error(`Missing required path parameter: token`);
|
|
985
1071
|
}
|
|
986
|
-
const data = await request({ method: 'GET', url:
|
|
1072
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/token/${token}`, queryParams, ...requestConfig });
|
|
987
1073
|
return data;
|
|
988
1074
|
}
|
|
989
1075
|
/**
|
|
990
1076
|
* @description Adds a token to an existing Edge Config.
|
|
991
1077
|
* @summary Create an Edge Config token
|
|
992
|
-
* {@link
|
|
1078
|
+
* {@link /v1/edge-config/:edgeConfigId/token}
|
|
993
1079
|
*/
|
|
994
|
-
async function createEdgeConfigToken({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
1080
|
+
async function createEdgeConfigToken({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
995
1081
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
996
1082
|
if (!edgeConfigId) {
|
|
997
1083
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
998
1084
|
}
|
|
999
1085
|
const data = await request({
|
|
1000
1086
|
method: 'POST',
|
|
1001
|
-
url:
|
|
1087
|
+
url: `/v1/edge-config/${edgeConfigId}/token`,
|
|
1002
1088
|
queryParams,
|
|
1003
1089
|
...requestConfig,
|
|
1004
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1090
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1005
1091
|
});
|
|
1006
1092
|
return data;
|
|
1007
1093
|
}
|
|
1008
1094
|
/**
|
|
1009
1095
|
* @description Retrieves a specific version of an Edge Config from backup storage.
|
|
1010
1096
|
* @summary Get Edge Config backup
|
|
1011
|
-
* {@link
|
|
1097
|
+
* {@link /v1/edge-config/:edgeConfigId/backups/:edgeConfigBackupVersionId}
|
|
1012
1098
|
*/
|
|
1013
|
-
async function getEdgeConfigBackup({ pathParams: { edgeConfigId, edgeConfigBackupVersionId }, queryParams, config = {}
|
|
1099
|
+
async function getEdgeConfigBackup({ pathParams: { edgeConfigId, edgeConfigBackupVersionId }, queryParams, config = {} }) {
|
|
1014
1100
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1015
1101
|
if (!edgeConfigId) {
|
|
1016
1102
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
@@ -1018,51 +1104,56 @@ async function getEdgeConfigBackup({ pathParams: { edgeConfigId, edgeConfigBacku
|
|
|
1018
1104
|
if (!edgeConfigBackupVersionId) {
|
|
1019
1105
|
throw new Error(`Missing required path parameter: edgeConfigBackupVersionId`);
|
|
1020
1106
|
}
|
|
1021
|
-
const data = await request({
|
|
1107
|
+
const data = await request({
|
|
1108
|
+
method: 'GET',
|
|
1109
|
+
url: `/v1/edge-config/${edgeConfigId}/backups/${edgeConfigBackupVersionId}`,
|
|
1110
|
+
queryParams,
|
|
1111
|
+
...requestConfig
|
|
1112
|
+
});
|
|
1022
1113
|
return data;
|
|
1023
1114
|
}
|
|
1024
1115
|
/**
|
|
1025
1116
|
* @description Returns backups of an Edge Config.
|
|
1026
1117
|
* @summary Get Edge Config backups
|
|
1027
|
-
* {@link
|
|
1118
|
+
* {@link /v1/edge-config/:edgeConfigId/backups}
|
|
1028
1119
|
*/
|
|
1029
|
-
async function getEdgeConfigBackups({ pathParams: { edgeConfigId }, queryParams, config = {}
|
|
1120
|
+
async function getEdgeConfigBackups({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
1030
1121
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1031
1122
|
if (!edgeConfigId) {
|
|
1032
1123
|
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
1033
1124
|
}
|
|
1034
|
-
const data = await request({ method: 'GET', url:
|
|
1125
|
+
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/backups`, queryParams, ...requestConfig });
|
|
1035
1126
|
return data;
|
|
1036
1127
|
}
|
|
1037
1128
|
/**
|
|
1038
1129
|
* @description 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.
|
|
1039
1130
|
* @summary List User Events
|
|
1040
|
-
* {@link
|
|
1131
|
+
* {@link /v3/events}
|
|
1041
1132
|
*/
|
|
1042
|
-
async function listUserEvents({ queryParams, config = {}
|
|
1133
|
+
async function listUserEvents({ queryParams, config = {} }) {
|
|
1043
1134
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1044
|
-
const data = await request({ method: 'GET', url:
|
|
1135
|
+
const data = await request({ method: 'GET', url: `/v3/events`, queryParams, ...requestConfig });
|
|
1045
1136
|
return data;
|
|
1046
1137
|
}
|
|
1047
1138
|
/**
|
|
1048
1139
|
* @description Fetches the best account or user’s contact info
|
|
1049
1140
|
* @summary Get Account Information
|
|
1050
|
-
* {@link
|
|
1141
|
+
* {@link /v1/installations/:integrationConfigurationId/account}
|
|
1051
1142
|
*/
|
|
1052
|
-
async function getAccountInfo({ pathParams: { integrationConfigurationId }, config = {}
|
|
1143
|
+
async function getAccountInfo({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1053
1144
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1054
1145
|
if (!integrationConfigurationId) {
|
|
1055
1146
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1056
1147
|
}
|
|
1057
|
-
const data = await request({ method: 'GET', url:
|
|
1148
|
+
const data = await request({ method: 'GET', url: `/v1/installations/${integrationConfigurationId}/account`, ...requestConfig });
|
|
1058
1149
|
return data;
|
|
1059
1150
|
}
|
|
1060
1151
|
/**
|
|
1061
1152
|
* @description Returns the member role and other information for a given member ID ("user_id" claim in the SSO OIDC token).
|
|
1062
1153
|
* @summary Get Member Information
|
|
1063
|
-
* {@link
|
|
1154
|
+
* {@link /v1/installations/:integrationConfigurationId/member/:memberId}
|
|
1064
1155
|
*/
|
|
1065
|
-
async function getMember({ pathParams: { integrationConfigurationId, memberId }, config = {}
|
|
1156
|
+
async function getMember({ pathParams: { integrationConfigurationId, memberId }, config = {} }) {
|
|
1066
1157
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1067
1158
|
if (!integrationConfigurationId) {
|
|
1068
1159
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1070,46 +1161,46 @@ async function getMember({ pathParams: { integrationConfigurationId, memberId },
|
|
|
1070
1161
|
if (!memberId) {
|
|
1071
1162
|
throw new Error(`Missing required path parameter: memberId`);
|
|
1072
1163
|
}
|
|
1073
|
-
const data = await request({ method: 'GET', url:
|
|
1164
|
+
const data = await request({ method: 'GET', url: `/v1/installations/${integrationConfigurationId}/member/${memberId}`, ...requestConfig });
|
|
1074
1165
|
return data;
|
|
1075
1166
|
}
|
|
1076
1167
|
/**
|
|
1077
1168
|
* @description Partner notifies Vercel of any changes made to an Installation or a Resource. Vercel is expected to use `list-resources` and other read APIs to get the new state.<br/> <br/> `resource.updated` event should be dispatched when any state of a resource linked to Vercel is modified by the partner.<br/> `installation.updated` event should be dispatched when an installation's billing plan is changed via the provider instead of Vercel.<br/> <br/> Resource update use cases: <br/> <br/> - The user renames a database in the partner’s application. The partner should dispatch a `resource.updated` event to notify Vercel to update the resource in Vercel’s datastores.<br/> - A resource has been suspended due to a lack of use. The partner should dispatch a `resource.updated` event to notify Vercel to update the resource's status in Vercel's datastores.<br/>
|
|
1078
1169
|
* @summary Create Event
|
|
1079
|
-
* {@link
|
|
1170
|
+
* {@link /v1/installations/:integrationConfigurationId/events}
|
|
1080
1171
|
*/
|
|
1081
|
-
async function createEvent({ pathParams: { integrationConfigurationId }, config = {}
|
|
1172
|
+
async function createEvent({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1082
1173
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1083
1174
|
if (!integrationConfigurationId) {
|
|
1084
1175
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1085
1176
|
}
|
|
1086
1177
|
const data = await request({
|
|
1087
1178
|
method: 'POST',
|
|
1088
|
-
url:
|
|
1179
|
+
url: `/v1/installations/${integrationConfigurationId}/events`,
|
|
1089
1180
|
...requestConfig,
|
|
1090
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1181
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1091
1182
|
});
|
|
1092
1183
|
return data;
|
|
1093
1184
|
}
|
|
1094
1185
|
/**
|
|
1095
1186
|
* @description Get all resources for a given installation ID.
|
|
1096
1187
|
* @summary Get Integration Resources
|
|
1097
|
-
* {@link
|
|
1188
|
+
* {@link /v1/installations/:integrationConfigurationId/resources}
|
|
1098
1189
|
*/
|
|
1099
|
-
async function getIntegrationResources({ pathParams: { integrationConfigurationId }, config = {}
|
|
1190
|
+
async function getIntegrationResources({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1100
1191
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1101
1192
|
if (!integrationConfigurationId) {
|
|
1102
1193
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1103
1194
|
}
|
|
1104
|
-
const data = await request({ method: 'GET', url:
|
|
1195
|
+
const data = await request({ method: 'GET', url: `/v1/installations/${integrationConfigurationId}/resources`, ...requestConfig });
|
|
1105
1196
|
return data;
|
|
1106
1197
|
}
|
|
1107
1198
|
/**
|
|
1108
1199
|
* @description Get a resource by its partner ID.
|
|
1109
1200
|
* @summary Get Integration Resource
|
|
1110
|
-
* {@link
|
|
1201
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId}
|
|
1111
1202
|
*/
|
|
1112
|
-
async function getIntegrationResource({ pathParams: { integrationConfigurationId, resourceId }, config = {}
|
|
1203
|
+
async function getIntegrationResource({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1113
1204
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1114
1205
|
if (!integrationConfigurationId) {
|
|
1115
1206
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1117,15 +1208,19 @@ async function getIntegrationResource({ pathParams: { integrationConfigurationId
|
|
|
1117
1208
|
if (!resourceId) {
|
|
1118
1209
|
throw new Error(`Missing required path parameter: resourceId`);
|
|
1119
1210
|
}
|
|
1120
|
-
const data = await request({
|
|
1211
|
+
const data = await request({
|
|
1212
|
+
method: 'GET',
|
|
1213
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}`,
|
|
1214
|
+
...requestConfig
|
|
1215
|
+
});
|
|
1121
1216
|
return data;
|
|
1122
1217
|
}
|
|
1123
1218
|
/**
|
|
1124
1219
|
* @description Delete a resource owned by the selected installation ID.
|
|
1125
1220
|
* @summary Delete Integration Resource
|
|
1126
|
-
* {@link
|
|
1221
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId}
|
|
1127
1222
|
*/
|
|
1128
|
-
async function deleteIntegrationResource({ pathParams: { integrationConfigurationId, resourceId }, config = {}
|
|
1223
|
+
async function deleteIntegrationResource({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1129
1224
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1130
1225
|
if (!integrationConfigurationId) {
|
|
1131
1226
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1133,15 +1228,19 @@ async function deleteIntegrationResource({ pathParams: { integrationConfiguratio
|
|
|
1133
1228
|
if (!resourceId) {
|
|
1134
1229
|
throw new Error(`Missing required path parameter: resourceId`);
|
|
1135
1230
|
}
|
|
1136
|
-
const data = await request({
|
|
1231
|
+
const data = await request({
|
|
1232
|
+
method: 'DELETE',
|
|
1233
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}`,
|
|
1234
|
+
...requestConfig
|
|
1235
|
+
});
|
|
1137
1236
|
return data;
|
|
1138
1237
|
}
|
|
1139
1238
|
/**
|
|
1140
1239
|
* @description This endpoint imports (upserts) a resource to Vercel's installation. This may be needed if resources can be independently created on the partner's side and need to be synchronized to Vercel.
|
|
1141
1240
|
* @summary Import Resource
|
|
1142
|
-
* {@link
|
|
1241
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId}
|
|
1143
1242
|
*/
|
|
1144
|
-
async function importResource({ pathParams: { integrationConfigurationId, resourceId }, config = {}
|
|
1243
|
+
async function importResource({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1145
1244
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1146
1245
|
if (!integrationConfigurationId) {
|
|
1147
1246
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1151,54 +1250,54 @@ async function importResource({ pathParams: { integrationConfigurationId, resour
|
|
|
1151
1250
|
}
|
|
1152
1251
|
const data = await request({
|
|
1153
1252
|
method: 'PUT',
|
|
1154
|
-
url:
|
|
1253
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}`,
|
|
1155
1254
|
...requestConfig,
|
|
1156
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1255
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1157
1256
|
});
|
|
1158
1257
|
return data;
|
|
1159
1258
|
}
|
|
1160
1259
|
/**
|
|
1161
1260
|
* @description Sends the billing and usage data. The partner should do this at least once a day and ideally once per hour. <br/> Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.
|
|
1162
1261
|
* @summary Submit Billing Data
|
|
1163
|
-
* {@link
|
|
1262
|
+
* {@link /v1/installations/:integrationConfigurationId/billing}
|
|
1164
1263
|
*/
|
|
1165
|
-
async function submitBillingData({ pathParams: { integrationConfigurationId }, config = {}
|
|
1264
|
+
async function submitBillingData({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1166
1265
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1167
1266
|
if (!integrationConfigurationId) {
|
|
1168
1267
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1169
1268
|
}
|
|
1170
1269
|
const data = await request({
|
|
1171
1270
|
method: 'POST',
|
|
1172
|
-
url:
|
|
1271
|
+
url: `/v1/installations/${integrationConfigurationId}/billing`,
|
|
1173
1272
|
...requestConfig,
|
|
1174
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1273
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1175
1274
|
});
|
|
1176
1275
|
return data;
|
|
1177
1276
|
}
|
|
1178
1277
|
/**
|
|
1179
1278
|
* @description This endpoint allows the partner to submit an invoice to Vercel. The invoice is created in Vercel's billing system and sent to the customer. Depending on the type of billing plan, the invoice can be sent at a time of signup, at the start of the billing period, or at the end of the billing period.<br/> <br/> Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request. <br/> There are several limitations to the invoice submission:<br/> <br/> 1. A resource can only be billed once per the billing period and the billing plan.<br/> 2. The billing plan used to bill the resource must have been active for this resource during the billing period.<br/> 3. The billing plan used must be a subscription plan.<br/> 4. The interim usage data must be sent hourly for all types of subscriptions. See [Send subscription billing and usage data](#send-subscription-billing-and-usage-data) API on how to send interim billing and usage data.<br/>
|
|
1180
1279
|
* @summary Submit Invoice
|
|
1181
|
-
* {@link
|
|
1280
|
+
* {@link /v1/installations/:integrationConfigurationId/billing/invoices}
|
|
1182
1281
|
*/
|
|
1183
|
-
async function submitInvoice({ pathParams: { integrationConfigurationId }, config = {}
|
|
1282
|
+
async function submitInvoice({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1184
1283
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1185
1284
|
if (!integrationConfigurationId) {
|
|
1186
1285
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1187
1286
|
}
|
|
1188
1287
|
const data = await request({
|
|
1189
1288
|
method: 'POST',
|
|
1190
|
-
url:
|
|
1289
|
+
url: `/v1/installations/${integrationConfigurationId}/billing/invoices`,
|
|
1191
1290
|
...requestConfig,
|
|
1192
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1291
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1193
1292
|
});
|
|
1194
1293
|
return data;
|
|
1195
1294
|
}
|
|
1196
1295
|
/**
|
|
1197
1296
|
* @description Get Invoice details and status for a given invoice ID.<br/> <br/> See Billing Events with Webhooks documentation on how to receive invoice events. This endpoint is used to retrieve the invoice details.
|
|
1198
1297
|
* @summary Get Invoice
|
|
1199
|
-
* {@link
|
|
1298
|
+
* {@link /v1/installations/:integrationConfigurationId/billing/invoices/:invoiceId}
|
|
1200
1299
|
*/
|
|
1201
|
-
async function getInvoice({ pathParams: { integrationConfigurationId, invoiceId }, config = {}
|
|
1300
|
+
async function getInvoice({ pathParams: { integrationConfigurationId, invoiceId }, config = {} }) {
|
|
1202
1301
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1203
1302
|
if (!integrationConfigurationId) {
|
|
1204
1303
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1206,15 +1305,19 @@ async function getInvoice({ pathParams: { integrationConfigurationId, invoiceId
|
|
|
1206
1305
|
if (!invoiceId) {
|
|
1207
1306
|
throw new Error(`Missing required path parameter: invoiceId`);
|
|
1208
1307
|
}
|
|
1209
|
-
const data = await request({
|
|
1308
|
+
const data = await request({
|
|
1309
|
+
method: 'GET',
|
|
1310
|
+
url: `/v1/installations/${integrationConfigurationId}/billing/invoices/${invoiceId}`,
|
|
1311
|
+
...requestConfig
|
|
1312
|
+
});
|
|
1210
1313
|
return data;
|
|
1211
1314
|
}
|
|
1212
1315
|
/**
|
|
1213
1316
|
* @description This endpoint allows the partner to request a refund for an invoice to Vercel. The invoice is created using the [Submit Invoice API](#submit-invoice-api).
|
|
1214
1317
|
* @summary Invoice Actions
|
|
1215
|
-
* {@link
|
|
1318
|
+
* {@link /v1/installations/:integrationConfigurationId/billing/invoices/:invoiceId/actions}
|
|
1216
1319
|
*/
|
|
1217
|
-
async function updateInvoice({ pathParams: { integrationConfigurationId, invoiceId }, config = {}
|
|
1320
|
+
async function updateInvoice({ pathParams: { integrationConfigurationId, invoiceId }, config = {} }) {
|
|
1218
1321
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1219
1322
|
if (!integrationConfigurationId) {
|
|
1220
1323
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1224,36 +1327,36 @@ async function updateInvoice({ pathParams: { integrationConfigurationId, invoice
|
|
|
1224
1327
|
}
|
|
1225
1328
|
const data = await request({
|
|
1226
1329
|
method: 'POST',
|
|
1227
|
-
url:
|
|
1330
|
+
url: `/v1/installations/${integrationConfigurationId}/billing/invoices/${invoiceId}/actions`,
|
|
1228
1331
|
...requestConfig,
|
|
1229
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1332
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1230
1333
|
});
|
|
1231
1334
|
return data;
|
|
1232
1335
|
}
|
|
1233
1336
|
/**
|
|
1234
1337
|
* @description Sends the prepayment balances. The partner should do this at least once a day and ideally once per hour. <br/> Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.
|
|
1235
1338
|
* @summary Submit Prepayment Balances
|
|
1236
|
-
* {@link
|
|
1339
|
+
* {@link /v1/installations/:integrationConfigurationId/billing/balance}
|
|
1237
1340
|
*/
|
|
1238
|
-
async function submitPrepaymentBalances({ pathParams: { integrationConfigurationId }, config = {}
|
|
1341
|
+
async function submitPrepaymentBalances({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1239
1342
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1240
1343
|
if (!integrationConfigurationId) {
|
|
1241
1344
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1242
1345
|
}
|
|
1243
1346
|
const data = await request({
|
|
1244
1347
|
method: 'POST',
|
|
1245
|
-
url:
|
|
1348
|
+
url: `/v1/installations/${integrationConfigurationId}/billing/balance`,
|
|
1246
1349
|
...requestConfig,
|
|
1247
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1350
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1248
1351
|
});
|
|
1249
1352
|
return data;
|
|
1250
1353
|
}
|
|
1251
1354
|
/**
|
|
1252
1355
|
* @description This endpoint is deprecated and replaced with the endpoint [Update Resource Secrets](#update-resource-secrets). <br/> This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.<br/> <br/> Use cases for this endpoint:<br/> <br/> - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.<br/>
|
|
1253
1356
|
* @summary Update Resource Secrets (Deprecated)
|
|
1254
|
-
* {@link
|
|
1357
|
+
* {@link /v1/installations/:integrationConfigurationId/products/:integrationProductIdOrSlug/resources/:resourceId/secrets}
|
|
1255
1358
|
*/
|
|
1256
|
-
async function updateResourceSecrets({ pathParams: { integrationConfigurationId, integrationProductIdOrSlug, resourceId }, config = {}
|
|
1359
|
+
async function updateResourceSecrets({ pathParams: { integrationConfigurationId, integrationProductIdOrSlug, resourceId }, config = {} }) {
|
|
1257
1360
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1258
1361
|
if (!integrationConfigurationId) {
|
|
1259
1362
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1266,18 +1369,18 @@ async function updateResourceSecrets({ pathParams: { integrationConfigurationId,
|
|
|
1266
1369
|
}
|
|
1267
1370
|
const data = await request({
|
|
1268
1371
|
method: 'PUT',
|
|
1269
|
-
url:
|
|
1372
|
+
url: `/v1/installations/${integrationConfigurationId}/products/${integrationProductIdOrSlug}/resources/${resourceId}/secrets`,
|
|
1270
1373
|
...requestConfig,
|
|
1271
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1374
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1272
1375
|
});
|
|
1273
1376
|
return data;
|
|
1274
1377
|
}
|
|
1275
1378
|
/**
|
|
1276
1379
|
* @description This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.<br/> <br/> Use cases for this endpoint:<br/> <br/> - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.<br/>
|
|
1277
1380
|
* @summary Update Resource Secrets
|
|
1278
|
-
* {@link
|
|
1381
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/secrets}
|
|
1279
1382
|
*/
|
|
1280
|
-
async function updateResourceSecretsById({ pathParams: { integrationConfigurationId, resourceId }, config = {}
|
|
1383
|
+
async function updateResourceSecretsById({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1281
1384
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1282
1385
|
if (!integrationConfigurationId) {
|
|
1283
1386
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1287,97 +1390,108 @@ async function updateResourceSecretsById({ pathParams: { integrationConfiguratio
|
|
|
1287
1390
|
}
|
|
1288
1391
|
const data = await request({
|
|
1289
1392
|
method: 'PUT',
|
|
1290
|
-
url:
|
|
1393
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/secrets`,
|
|
1291
1394
|
...requestConfig,
|
|
1292
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1395
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1293
1396
|
});
|
|
1294
1397
|
return data;
|
|
1295
1398
|
}
|
|
1296
1399
|
/**
|
|
1297
1400
|
* @description 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.
|
|
1298
1401
|
* @summary Get configurations for the authenticated user or team
|
|
1299
|
-
* {@link
|
|
1402
|
+
* {@link /v1/integrations/configurations}
|
|
1300
1403
|
*/
|
|
1301
|
-
async function getConfigurations({ queryParams, config = {}
|
|
1404
|
+
async function getConfigurations({ queryParams, config = {} }) {
|
|
1302
1405
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1303
|
-
const data = await request({ method: 'GET', url:
|
|
1406
|
+
const data = await request({ method: 'GET', url: `/v1/integrations/configurations`, queryParams, ...requestConfig });
|
|
1304
1407
|
return data;
|
|
1305
1408
|
}
|
|
1306
1409
|
/**
|
|
1307
1410
|
* @description 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.
|
|
1308
1411
|
* @summary Retrieve an integration configuration
|
|
1309
|
-
* {@link
|
|
1412
|
+
* {@link /v1/integrations/configuration/:id}
|
|
1310
1413
|
*/
|
|
1311
|
-
async function getConfiguration({ pathParams: { id }, queryParams, config = {}
|
|
1414
|
+
async function getConfiguration({ pathParams: { id }, queryParams, config = {} }) {
|
|
1312
1415
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1313
1416
|
if (!id) {
|
|
1314
1417
|
throw new Error(`Missing required path parameter: id`);
|
|
1315
1418
|
}
|
|
1316
|
-
const data = await request({ method: 'GET', url:
|
|
1419
|
+
const data = await request({ method: 'GET', url: `/v1/integrations/configuration/${id}`, queryParams, ...requestConfig });
|
|
1317
1420
|
return data;
|
|
1318
1421
|
}
|
|
1319
1422
|
/**
|
|
1320
1423
|
* @description 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.
|
|
1321
1424
|
* @summary Delete an integration configuration
|
|
1322
|
-
* {@link
|
|
1425
|
+
* {@link /v1/integrations/configuration/:id}
|
|
1323
1426
|
*/
|
|
1324
|
-
async function deleteConfiguration({ pathParams: { id }, queryParams, config = {}
|
|
1427
|
+
async function deleteConfiguration({ pathParams: { id }, queryParams, config = {} }) {
|
|
1325
1428
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1326
1429
|
if (!id) {
|
|
1327
1430
|
throw new Error(`Missing required path parameter: id`);
|
|
1328
1431
|
}
|
|
1329
|
-
const data = await request({ method: 'DELETE', url:
|
|
1432
|
+
const data = await request({ method: 'DELETE', url: `/v1/integrations/configuration/${id}`, queryParams, ...requestConfig });
|
|
1330
1433
|
return data;
|
|
1331
1434
|
}
|
|
1332
1435
|
/**
|
|
1333
1436
|
* @description During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl. Providers should not persist the returned `id_token` in a database since the token will expire. See [**Authentication with SSO**](https://vercel.com/docs/integrations/create-integration/marketplace-api#authentication-with-sso) for more details.
|
|
1334
1437
|
* @summary SSO Token Exchange
|
|
1335
|
-
* {@link
|
|
1438
|
+
* {@link /v1/integrations/sso/token}
|
|
1336
1439
|
*/
|
|
1337
1440
|
async function exchangeSsoToken({ config = {} }) {
|
|
1338
1441
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1339
|
-
const data = await request({
|
|
1442
|
+
const data = await request({
|
|
1443
|
+
method: 'POST',
|
|
1444
|
+
url: `/v1/integrations/sso/token`,
|
|
1445
|
+
...requestConfig,
|
|
1446
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1447
|
+
});
|
|
1340
1448
|
return data;
|
|
1341
1449
|
}
|
|
1342
1450
|
/**
|
|
1343
1451
|
* @description Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
|
|
1344
1452
|
* @summary Retrieves a list of Integration log drains
|
|
1345
|
-
* {@link
|
|
1453
|
+
* {@link /v2/integrations/log-drains}
|
|
1346
1454
|
*/
|
|
1347
|
-
async function getIntegrationLogDrains({ queryParams, config = {}
|
|
1455
|
+
async function getIntegrationLogDrains({ queryParams, config = {} }) {
|
|
1348
1456
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1349
|
-
const data = await request({ method: 'GET', url:
|
|
1457
|
+
const data = await request({ method: 'GET', url: `/v2/integrations/log-drains`, queryParams, ...requestConfig });
|
|
1350
1458
|
return data;
|
|
1351
1459
|
}
|
|
1352
1460
|
/**
|
|
1353
1461
|
* @description 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.
|
|
1354
1462
|
* @summary Creates a new Integration Log Drain
|
|
1355
|
-
* {@link
|
|
1463
|
+
* {@link /v2/integrations/log-drains}
|
|
1356
1464
|
*/
|
|
1357
|
-
async function createLogDrain({ queryParams, config = {}
|
|
1465
|
+
async function createLogDrain({ queryParams, config = {} }) {
|
|
1358
1466
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1359
|
-
const data = await request({
|
|
1467
|
+
const data = await request({
|
|
1468
|
+
method: 'POST',
|
|
1469
|
+
url: `/v2/integrations/log-drains`,
|
|
1470
|
+
queryParams,
|
|
1471
|
+
...requestConfig,
|
|
1472
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1473
|
+
});
|
|
1360
1474
|
return data;
|
|
1361
1475
|
}
|
|
1362
1476
|
/**
|
|
1363
1477
|
* @description 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.
|
|
1364
1478
|
* @summary Deletes the Integration log drain with the provided `id`
|
|
1365
|
-
* {@link
|
|
1479
|
+
* {@link /v1/integrations/log-drains/:id}
|
|
1366
1480
|
*/
|
|
1367
|
-
async function deleteIntegrationLogDrain({ pathParams: { id }, queryParams, config = {}
|
|
1481
|
+
async function deleteIntegrationLogDrain({ pathParams: { id }, queryParams, config = {} }) {
|
|
1368
1482
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1369
1483
|
if (!id) {
|
|
1370
1484
|
throw new Error(`Missing required path parameter: id`);
|
|
1371
1485
|
}
|
|
1372
|
-
const data = await request({ method: 'DELETE', url:
|
|
1486
|
+
const data = await request({ method: 'DELETE', url: `/v1/integrations/log-drains/${id}`, queryParams, ...requestConfig });
|
|
1373
1487
|
return data;
|
|
1374
1488
|
}
|
|
1375
1489
|
/**
|
|
1376
1490
|
* @description Returns a stream of logs for a given deployment.
|
|
1377
1491
|
* @summary Get logs for a deployment
|
|
1378
|
-
* {@link
|
|
1492
|
+
* {@link /v1/projects/:projectId/deployments/:deploymentId/runtime-logs}
|
|
1379
1493
|
*/
|
|
1380
|
-
async function getRuntimeLogs({ pathParams: { projectId, deploymentId }, queryParams, config = {}
|
|
1494
|
+
async function getRuntimeLogs({ pathParams: { projectId, deploymentId }, queryParams, config = {} }) {
|
|
1381
1495
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1382
1496
|
if (!projectId) {
|
|
1383
1497
|
throw new Error(`Missing required path parameter: projectId`);
|
|
@@ -1385,15 +1499,20 @@ async function getRuntimeLogs({ pathParams: { projectId, deploymentId }, queryPa
|
|
|
1385
1499
|
if (!deploymentId) {
|
|
1386
1500
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
1387
1501
|
}
|
|
1388
|
-
const data = await request({
|
|
1502
|
+
const data = await request({
|
|
1503
|
+
method: 'GET',
|
|
1504
|
+
url: `/v1/projects/${projectId}/deployments/${deploymentId}/runtime-logs`,
|
|
1505
|
+
queryParams,
|
|
1506
|
+
...requestConfig
|
|
1507
|
+
});
|
|
1389
1508
|
return data;
|
|
1390
1509
|
}
|
|
1391
1510
|
/**
|
|
1392
1511
|
* @description Create one or multiple experimentation items
|
|
1393
1512
|
* @summary Create one or multiple experimentation items
|
|
1394
|
-
* {@link
|
|
1513
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/items}
|
|
1395
1514
|
*/
|
|
1396
|
-
async function createExperimentationItem({ pathParams: { integrationConfigurationId, resourceId }, config = {}
|
|
1515
|
+
async function createExperimentationItem({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1397
1516
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1398
1517
|
if (!integrationConfigurationId) {
|
|
1399
1518
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1403,18 +1522,18 @@ async function createExperimentationItem({ pathParams: { integrationConfiguratio
|
|
|
1403
1522
|
}
|
|
1404
1523
|
const data = await request({
|
|
1405
1524
|
method: 'POST',
|
|
1406
|
-
url:
|
|
1525
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/items`,
|
|
1407
1526
|
...requestConfig,
|
|
1408
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1527
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1409
1528
|
});
|
|
1410
1529
|
return data;
|
|
1411
1530
|
}
|
|
1412
1531
|
/**
|
|
1413
1532
|
* @description Patch an existing experimentation item
|
|
1414
1533
|
* @summary Patch an existing experimentation item
|
|
1415
|
-
* {@link
|
|
1534
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/items/:itemId}
|
|
1416
1535
|
*/
|
|
1417
|
-
async function updateExperimentationItem({ pathParams: { integrationConfigurationId, resourceId, itemId }, config = {}
|
|
1536
|
+
async function updateExperimentationItem({ pathParams: { integrationConfigurationId, resourceId, itemId }, config = {} }) {
|
|
1418
1537
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1419
1538
|
if (!integrationConfigurationId) {
|
|
1420
1539
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1427,18 +1546,18 @@ async function updateExperimentationItem({ pathParams: { integrationConfiguratio
|
|
|
1427
1546
|
}
|
|
1428
1547
|
const data = await request({
|
|
1429
1548
|
method: 'PATCH',
|
|
1430
|
-
url:
|
|
1549
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/items/${itemId}`,
|
|
1431
1550
|
...requestConfig,
|
|
1432
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1551
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1433
1552
|
});
|
|
1434
1553
|
return data;
|
|
1435
1554
|
}
|
|
1436
1555
|
/**
|
|
1437
1556
|
* @description Delete an existing experimentation item
|
|
1438
1557
|
* @summary Delete an existing experimentation item
|
|
1439
|
-
* {@link
|
|
1558
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/items/:itemId}
|
|
1440
1559
|
*/
|
|
1441
|
-
async function deleteExperimentationItem({ pathParams: { integrationConfigurationId, resourceId, itemId }, config = {}
|
|
1560
|
+
async function deleteExperimentationItem({ pathParams: { integrationConfigurationId, resourceId, itemId }, config = {} }) {
|
|
1442
1561
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1443
1562
|
if (!integrationConfigurationId) {
|
|
1444
1563
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1449,15 +1568,19 @@ async function deleteExperimentationItem({ pathParams: { integrationConfiguratio
|
|
|
1449
1568
|
if (!itemId) {
|
|
1450
1569
|
throw new Error(`Missing required path parameter: itemId`);
|
|
1451
1570
|
}
|
|
1452
|
-
const data = await request({
|
|
1571
|
+
const data = await request({
|
|
1572
|
+
method: 'DELETE',
|
|
1573
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/items/${itemId}`,
|
|
1574
|
+
...requestConfig
|
|
1575
|
+
});
|
|
1453
1576
|
return data;
|
|
1454
1577
|
}
|
|
1455
1578
|
/**
|
|
1456
1579
|
* @description When the user enabled Edge Config syncing, then this endpoint can be used by the partner to push their configuration data into the relevant Edge Config.
|
|
1457
1580
|
* @summary Push data into a user-provided Edge Config
|
|
1458
|
-
* {@link
|
|
1581
|
+
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/edge-config}
|
|
1459
1582
|
*/
|
|
1460
|
-
async function updateExperimentationEdgeConfig({ pathParams: { integrationConfigurationId, resourceId }, config = {}
|
|
1583
|
+
async function updateExperimentationEdgeConfig({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1461
1584
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1462
1585
|
if (!integrationConfigurationId) {
|
|
1463
1586
|
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
@@ -1467,50 +1590,50 @@ async function updateExperimentationEdgeConfig({ pathParams: { integrationConfig
|
|
|
1467
1590
|
}
|
|
1468
1591
|
const data = await request({
|
|
1469
1592
|
method: 'PUT',
|
|
1470
|
-
url:
|
|
1593
|
+
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/edge-config`,
|
|
1471
1594
|
...requestConfig,
|
|
1472
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1595
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1473
1596
|
});
|
|
1474
1597
|
return data;
|
|
1475
1598
|
}
|
|
1476
1599
|
/**
|
|
1477
1600
|
* @description Lists all members of a project.
|
|
1478
1601
|
* @summary List project members
|
|
1479
|
-
* {@link
|
|
1602
|
+
* {@link /v1/projects/:idOrName/members}
|
|
1480
1603
|
*/
|
|
1481
|
-
async function getProjectMembers({ pathParams: { idOrName }, queryParams, config = {}
|
|
1604
|
+
async function getProjectMembers({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1482
1605
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1483
1606
|
if (!idOrName) {
|
|
1484
1607
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1485
1608
|
}
|
|
1486
|
-
const data = await request({ method: 'GET', url:
|
|
1609
|
+
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/members`, queryParams, ...requestConfig });
|
|
1487
1610
|
return data;
|
|
1488
1611
|
}
|
|
1489
1612
|
/**
|
|
1490
1613
|
* @description Adds a new member to the project.
|
|
1491
1614
|
* @summary Adds a new member to a project.
|
|
1492
|
-
* {@link
|
|
1615
|
+
* {@link /v1/projects/:idOrName/members}
|
|
1493
1616
|
*/
|
|
1494
|
-
async function addProjectMember({ pathParams: { idOrName }, queryParams, config = {}
|
|
1617
|
+
async function addProjectMember({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1495
1618
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1496
1619
|
if (!idOrName) {
|
|
1497
1620
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1498
1621
|
}
|
|
1499
1622
|
const data = await request({
|
|
1500
1623
|
method: 'POST',
|
|
1501
|
-
url:
|
|
1624
|
+
url: `/v1/projects/${idOrName}/members`,
|
|
1502
1625
|
queryParams,
|
|
1503
1626
|
...requestConfig,
|
|
1504
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1627
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1505
1628
|
});
|
|
1506
1629
|
return data;
|
|
1507
1630
|
}
|
|
1508
1631
|
/**
|
|
1509
1632
|
* @description Remove a member from a specific project
|
|
1510
1633
|
* @summary Remove a Project Member
|
|
1511
|
-
* {@link
|
|
1634
|
+
* {@link /v1/projects/:idOrName/members/:uid}
|
|
1512
1635
|
*/
|
|
1513
|
-
async function removeProjectMember({ pathParams: { idOrName, uid }, queryParams, config = {}
|
|
1636
|
+
async function removeProjectMember({ pathParams: { idOrName, uid }, queryParams, config = {} }) {
|
|
1514
1637
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1515
1638
|
if (!idOrName) {
|
|
1516
1639
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1518,106 +1641,118 @@ async function removeProjectMember({ pathParams: { idOrName, uid }, queryParams,
|
|
|
1518
1641
|
if (!uid) {
|
|
1519
1642
|
throw new Error(`Missing required path parameter: uid`);
|
|
1520
1643
|
}
|
|
1521
|
-
const data = await request({ method: 'DELETE', url:
|
|
1644
|
+
const data = await request({ method: 'DELETE', url: `/v1/projects/${idOrName}/members/${uid}`, queryParams, ...requestConfig });
|
|
1522
1645
|
return data;
|
|
1523
1646
|
}
|
|
1524
1647
|
/**
|
|
1525
1648
|
* @description Allows to retrieve the list of projects of the authenticated user or team. The list will be paginated and the provided query parameters allow filtering the returned projects.
|
|
1526
1649
|
* @summary Retrieve a list of projects
|
|
1527
|
-
* {@link
|
|
1650
|
+
* {@link /v10/projects}
|
|
1528
1651
|
*/
|
|
1529
|
-
async function getProjects({ queryParams, config = {}
|
|
1652
|
+
async function getProjects({ queryParams, config = {} }) {
|
|
1530
1653
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1531
|
-
const data = await request({ method: 'GET', url:
|
|
1654
|
+
const data = await request({ method: 'GET', url: `/v10/projects`, queryParams, ...requestConfig });
|
|
1532
1655
|
return data;
|
|
1533
1656
|
}
|
|
1534
1657
|
/**
|
|
1535
1658
|
* @description 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.
|
|
1536
1659
|
* @summary Create a new project
|
|
1537
|
-
* {@link
|
|
1660
|
+
* {@link /v11/projects}
|
|
1538
1661
|
*/
|
|
1539
|
-
async function createProject({ queryParams, config = {}
|
|
1662
|
+
async function createProject({ queryParams, config = {} }) {
|
|
1540
1663
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1541
|
-
const data = await request({
|
|
1664
|
+
const data = await request({
|
|
1665
|
+
method: 'POST',
|
|
1666
|
+
url: `/v11/projects`,
|
|
1667
|
+
queryParams,
|
|
1668
|
+
...requestConfig,
|
|
1669
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1670
|
+
});
|
|
1542
1671
|
return data;
|
|
1543
1672
|
}
|
|
1544
1673
|
/**
|
|
1545
1674
|
* @description Get the information for a specific project by passing either the project `id` or `name` in the URL.
|
|
1546
1675
|
* @summary Find a project by id or name
|
|
1547
|
-
* {@link
|
|
1676
|
+
* {@link /v9/projects/:idOrName}
|
|
1548
1677
|
*/
|
|
1549
|
-
async function getProject({ pathParams: { idOrName }, queryParams, config = {}
|
|
1678
|
+
async function getProject({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1550
1679
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1551
1680
|
if (!idOrName) {
|
|
1552
1681
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1553
1682
|
}
|
|
1554
|
-
const data = await request({ method: 'GET', url:
|
|
1683
|
+
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}`, queryParams, ...requestConfig });
|
|
1555
1684
|
return data;
|
|
1556
1685
|
}
|
|
1557
1686
|
/**
|
|
1558
1687
|
* @description Update the fields of a project using either its `name` or `id`.
|
|
1559
1688
|
* @summary Update an existing project
|
|
1560
|
-
* {@link
|
|
1689
|
+
* {@link /v9/projects/:idOrName}
|
|
1561
1690
|
*/
|
|
1562
|
-
async function updateProject({ pathParams: { idOrName }, queryParams, config = {}
|
|
1691
|
+
async function updateProject({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1563
1692
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1564
1693
|
if (!idOrName) {
|
|
1565
1694
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1566
1695
|
}
|
|
1567
|
-
const data = await request({
|
|
1696
|
+
const data = await request({
|
|
1697
|
+
method: 'PATCH',
|
|
1698
|
+
url: `/v9/projects/${idOrName}`,
|
|
1699
|
+
queryParams,
|
|
1700
|
+
...requestConfig,
|
|
1701
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1702
|
+
});
|
|
1568
1703
|
return data;
|
|
1569
1704
|
}
|
|
1570
1705
|
/**
|
|
1571
1706
|
* @description Delete a specific project by passing either the project `id` or `name` in the URL.
|
|
1572
1707
|
* @summary Delete a Project
|
|
1573
|
-
* {@link
|
|
1708
|
+
* {@link /v9/projects/:idOrName}
|
|
1574
1709
|
*/
|
|
1575
|
-
async function deleteProject({ pathParams: { idOrName }, queryParams, config = {}
|
|
1710
|
+
async function deleteProject({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1576
1711
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1577
1712
|
if (!idOrName) {
|
|
1578
1713
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1579
1714
|
}
|
|
1580
|
-
const data = await request({ method: 'DELETE', url:
|
|
1715
|
+
const data = await request({ method: 'DELETE', url: `/v9/projects/${idOrName}`, queryParams, ...requestConfig });
|
|
1581
1716
|
return data;
|
|
1582
1717
|
}
|
|
1583
1718
|
/**
|
|
1584
1719
|
* @description Creates a custom environment for the current project. Cannot be named 'Production' or 'Preview'.
|
|
1585
1720
|
* @summary Create a custom environment for the current project.
|
|
1586
|
-
* {@link
|
|
1721
|
+
* {@link /v9/projects/:idOrName/custom-environments}
|
|
1587
1722
|
*/
|
|
1588
|
-
async function createCustomEnvironment({ pathParams: { idOrName }, queryParams, config = {}
|
|
1723
|
+
async function createCustomEnvironment({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1589
1724
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1590
1725
|
if (!idOrName) {
|
|
1591
1726
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1592
1727
|
}
|
|
1593
1728
|
const data = await request({
|
|
1594
1729
|
method: 'POST',
|
|
1595
|
-
url:
|
|
1730
|
+
url: `/v9/projects/${idOrName}/custom-environments`,
|
|
1596
1731
|
queryParams,
|
|
1597
1732
|
...requestConfig,
|
|
1598
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1733
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1599
1734
|
});
|
|
1600
1735
|
return data;
|
|
1601
1736
|
}
|
|
1602
1737
|
/**
|
|
1603
1738
|
* @description Retrieve custom environments for the project. Must not be named 'Production' or 'Preview'.
|
|
1604
1739
|
* @summary Retrieve custom environments
|
|
1605
|
-
* {@link
|
|
1740
|
+
* {@link /v9/projects/:idOrName/custom-environments}
|
|
1606
1741
|
*/
|
|
1607
|
-
async function listCustomEnvironments({ pathParams: { idOrName }, queryParams, config = {}
|
|
1742
|
+
async function listCustomEnvironments({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1608
1743
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1609
1744
|
if (!idOrName) {
|
|
1610
1745
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1611
1746
|
}
|
|
1612
|
-
const data = await request({ method: 'GET', url:
|
|
1747
|
+
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}/custom-environments`, queryParams, ...requestConfig });
|
|
1613
1748
|
return data;
|
|
1614
1749
|
}
|
|
1615
1750
|
/**
|
|
1616
1751
|
* @description Retrieve a custom environment for the project. Must not be named 'Production' or 'Preview'.
|
|
1617
1752
|
* @summary Retrieve a custom environment
|
|
1618
|
-
* {@link
|
|
1753
|
+
* {@link /v9/projects/:idOrName/custom-environments/:environmentSlugOrId}
|
|
1619
1754
|
*/
|
|
1620
|
-
async function getCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {}
|
|
1755
|
+
async function getCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {} }) {
|
|
1621
1756
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1622
1757
|
if (!idOrName) {
|
|
1623
1758
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1625,15 +1760,20 @@ async function getCustomEnvironment({ pathParams: { idOrName, environmentSlugOrI
|
|
|
1625
1760
|
if (!environmentSlugOrId) {
|
|
1626
1761
|
throw new Error(`Missing required path parameter: environmentSlugOrId`);
|
|
1627
1762
|
}
|
|
1628
|
-
const data = await request({
|
|
1763
|
+
const data = await request({
|
|
1764
|
+
method: 'GET',
|
|
1765
|
+
url: `/v9/projects/${idOrName}/custom-environments/${environmentSlugOrId}`,
|
|
1766
|
+
queryParams,
|
|
1767
|
+
...requestConfig
|
|
1768
|
+
});
|
|
1629
1769
|
return data;
|
|
1630
1770
|
}
|
|
1631
1771
|
/**
|
|
1632
1772
|
* @description Update a custom environment for the project. Must not be named 'Production' or 'Preview'.
|
|
1633
1773
|
* @summary Update a custom environment
|
|
1634
|
-
* {@link
|
|
1774
|
+
* {@link /v9/projects/:idOrName/custom-environments/:environmentSlugOrId}
|
|
1635
1775
|
*/
|
|
1636
|
-
async function updateCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {}
|
|
1776
|
+
async function updateCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {} }) {
|
|
1637
1777
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1638
1778
|
if (!idOrName) {
|
|
1639
1779
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1643,19 +1783,19 @@ async function updateCustomEnvironment({ pathParams: { idOrName, environmentSlug
|
|
|
1643
1783
|
}
|
|
1644
1784
|
const data = await request({
|
|
1645
1785
|
method: 'PATCH',
|
|
1646
|
-
url:
|
|
1786
|
+
url: `/v9/projects/${idOrName}/custom-environments/${environmentSlugOrId}`,
|
|
1647
1787
|
queryParams,
|
|
1648
1788
|
...requestConfig,
|
|
1649
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1789
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1650
1790
|
});
|
|
1651
1791
|
return data;
|
|
1652
1792
|
}
|
|
1653
1793
|
/**
|
|
1654
1794
|
* @description Remove a custom environment for the project. Must not be named 'Production' or 'Preview'.
|
|
1655
1795
|
* @summary Remove a custom environment
|
|
1656
|
-
* {@link
|
|
1796
|
+
* {@link /v9/projects/:idOrName/custom-environments/:environmentSlugOrId}
|
|
1657
1797
|
*/
|
|
1658
|
-
async function removeCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {}
|
|
1798
|
+
async function removeCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {} }) {
|
|
1659
1799
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1660
1800
|
if (!idOrName) {
|
|
1661
1801
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1665,32 +1805,32 @@ async function removeCustomEnvironment({ pathParams: { idOrName, environmentSlug
|
|
|
1665
1805
|
}
|
|
1666
1806
|
const data = await request({
|
|
1667
1807
|
method: 'DELETE',
|
|
1668
|
-
url:
|
|
1808
|
+
url: `/v9/projects/${idOrName}/custom-environments/${environmentSlugOrId}`,
|
|
1669
1809
|
queryParams,
|
|
1670
1810
|
...requestConfig,
|
|
1671
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1811
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1672
1812
|
});
|
|
1673
1813
|
return data;
|
|
1674
1814
|
}
|
|
1675
1815
|
/**
|
|
1676
1816
|
* @description Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
|
|
1677
1817
|
* @summary Retrieve project domains by project by id or name
|
|
1678
|
-
* {@link
|
|
1818
|
+
* {@link /v9/projects/:idOrName/domains}
|
|
1679
1819
|
*/
|
|
1680
|
-
async function getProjectDomains({ pathParams: { idOrName }, queryParams, config = {}
|
|
1820
|
+
async function getProjectDomains({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1681
1821
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1682
1822
|
if (!idOrName) {
|
|
1683
1823
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1684
1824
|
}
|
|
1685
|
-
const data = await request({ method: 'GET', url:
|
|
1825
|
+
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}/domains`, queryParams, ...requestConfig });
|
|
1686
1826
|
return data;
|
|
1687
1827
|
}
|
|
1688
1828
|
/**
|
|
1689
1829
|
* @description Get project domain by project id/name and domain name.
|
|
1690
1830
|
* @summary Get a project domain
|
|
1691
|
-
* {@link
|
|
1831
|
+
* {@link /v9/projects/:idOrName/domains/:domain}
|
|
1692
1832
|
*/
|
|
1693
|
-
async function getProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {}
|
|
1833
|
+
async function getProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1694
1834
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1695
1835
|
if (!idOrName) {
|
|
1696
1836
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1698,15 +1838,15 @@ async function getProjectDomain({ pathParams: { idOrName, domain }, queryParams,
|
|
|
1698
1838
|
if (!domain) {
|
|
1699
1839
|
throw new Error(`Missing required path parameter: domain`);
|
|
1700
1840
|
}
|
|
1701
|
-
const data = await request({ method: 'GET', url:
|
|
1841
|
+
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}/domains/${domain}`, queryParams, ...requestConfig });
|
|
1702
1842
|
return data;
|
|
1703
1843
|
}
|
|
1704
1844
|
/**
|
|
1705
1845
|
* @description Update a project domain's configuration, including the name, git branch and redirect of the domain.
|
|
1706
1846
|
* @summary Update a project domain
|
|
1707
|
-
* {@link
|
|
1847
|
+
* {@link /v9/projects/:idOrName/domains/:domain}
|
|
1708
1848
|
*/
|
|
1709
|
-
async function updateProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {}
|
|
1849
|
+
async function updateProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1710
1850
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1711
1851
|
if (!idOrName) {
|
|
1712
1852
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1716,19 +1856,19 @@ async function updateProjectDomain({ pathParams: { idOrName, domain }, queryPara
|
|
|
1716
1856
|
}
|
|
1717
1857
|
const data = await request({
|
|
1718
1858
|
method: 'PATCH',
|
|
1719
|
-
url:
|
|
1859
|
+
url: `/v9/projects/${idOrName}/domains/${domain}`,
|
|
1720
1860
|
queryParams,
|
|
1721
1861
|
...requestConfig,
|
|
1722
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1862
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1723
1863
|
});
|
|
1724
1864
|
return data;
|
|
1725
1865
|
}
|
|
1726
1866
|
/**
|
|
1727
1867
|
* @description 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.
|
|
1728
1868
|
* @summary Remove a domain from a project
|
|
1729
|
-
* {@link
|
|
1869
|
+
* {@link /v9/projects/:idOrName/domains/:domain}
|
|
1730
1870
|
*/
|
|
1731
|
-
async function removeProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {}
|
|
1871
|
+
async function removeProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1732
1872
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1733
1873
|
if (!idOrName) {
|
|
1734
1874
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1738,38 +1878,38 @@ async function removeProjectDomain({ pathParams: { idOrName, domain }, queryPara
|
|
|
1738
1878
|
}
|
|
1739
1879
|
const data = await request({
|
|
1740
1880
|
method: 'DELETE',
|
|
1741
|
-
url:
|
|
1881
|
+
url: `/v9/projects/${idOrName}/domains/${domain}`,
|
|
1742
1882
|
queryParams,
|
|
1743
1883
|
...requestConfig,
|
|
1744
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1884
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1745
1885
|
});
|
|
1746
1886
|
return data;
|
|
1747
1887
|
}
|
|
1748
1888
|
/**
|
|
1749
1889
|
* @description 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.
|
|
1750
1890
|
* @summary Add a domain to a project
|
|
1751
|
-
* {@link
|
|
1891
|
+
* {@link /v10/projects/:idOrName/domains}
|
|
1752
1892
|
*/
|
|
1753
|
-
async function addProjectDomain({ pathParams: { idOrName }, queryParams, config = {}
|
|
1893
|
+
async function addProjectDomain({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1754
1894
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1755
1895
|
if (!idOrName) {
|
|
1756
1896
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1757
1897
|
}
|
|
1758
1898
|
const data = await request({
|
|
1759
1899
|
method: 'POST',
|
|
1760
|
-
url:
|
|
1900
|
+
url: `/v10/projects/${idOrName}/domains`,
|
|
1761
1901
|
queryParams,
|
|
1762
1902
|
...requestConfig,
|
|
1763
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1903
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1764
1904
|
});
|
|
1765
1905
|
return data;
|
|
1766
1906
|
}
|
|
1767
1907
|
/**
|
|
1768
1908
|
* @description Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.
|
|
1769
1909
|
* @summary Move a project domain
|
|
1770
|
-
* {@link
|
|
1910
|
+
* {@link /v1/projects/:idOrName/domains/:domain/move}
|
|
1771
1911
|
*/
|
|
1772
|
-
async function moveProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {}
|
|
1912
|
+
async function moveProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1773
1913
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1774
1914
|
if (!idOrName) {
|
|
1775
1915
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1779,19 +1919,19 @@ async function moveProjectDomain({ pathParams: { idOrName, domain }, queryParams
|
|
|
1779
1919
|
}
|
|
1780
1920
|
const data = await request({
|
|
1781
1921
|
method: 'POST',
|
|
1782
|
-
url:
|
|
1922
|
+
url: `/v1/projects/${idOrName}/domains/${domain}/move`,
|
|
1783
1923
|
queryParams,
|
|
1784
1924
|
...requestConfig,
|
|
1785
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1925
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1786
1926
|
});
|
|
1787
1927
|
return data;
|
|
1788
1928
|
}
|
|
1789
1929
|
/**
|
|
1790
1930
|
* @description Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
|
|
1791
1931
|
* @summary Verify project domain
|
|
1792
|
-
* {@link
|
|
1932
|
+
* {@link /v9/projects/:idOrName/domains/:domain/verify}
|
|
1793
1933
|
*/
|
|
1794
|
-
async function verifyProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {}
|
|
1934
|
+
async function verifyProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1795
1935
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1796
1936
|
if (!idOrName) {
|
|
1797
1937
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1799,41 +1939,47 @@ async function verifyProjectDomain({ pathParams: { idOrName, domain }, queryPara
|
|
|
1799
1939
|
if (!domain) {
|
|
1800
1940
|
throw new Error(`Missing required path parameter: domain`);
|
|
1801
1941
|
}
|
|
1802
|
-
const data = await request({ method: 'POST', url:
|
|
1942
|
+
const data = await request({ method: 'POST', url: `/v9/projects/${idOrName}/domains/${domain}/verify`, queryParams, ...requestConfig });
|
|
1803
1943
|
return data;
|
|
1804
1944
|
}
|
|
1805
1945
|
/**
|
|
1806
1946
|
* @description Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
|
|
1807
1947
|
* @summary Retrieve the environment variables of a project by id or name
|
|
1808
|
-
* {@link
|
|
1948
|
+
* {@link /v10/projects/:idOrName/env}
|
|
1809
1949
|
*/
|
|
1810
|
-
async function filterProjectEnvs({ pathParams: { idOrName }, queryParams, config = {}
|
|
1950
|
+
async function filterProjectEnvs({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1811
1951
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1812
1952
|
if (!idOrName) {
|
|
1813
1953
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1814
1954
|
}
|
|
1815
|
-
const data = await request({ method: 'GET', url:
|
|
1955
|
+
const data = await request({ method: 'GET', url: `/v10/projects/${idOrName}/env`, queryParams, ...requestConfig });
|
|
1816
1956
|
return data;
|
|
1817
1957
|
}
|
|
1818
1958
|
/**
|
|
1819
1959
|
* @description Create one or 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. If you include `upsert=true` as a query parameter, a new environment variable will not be created if it already exists but, the existing variable's value will be updated.
|
|
1820
1960
|
* @summary Create one or more environment variables
|
|
1821
|
-
* {@link
|
|
1961
|
+
* {@link /v10/projects/:idOrName/env}
|
|
1822
1962
|
*/
|
|
1823
|
-
async function createProjectEnv({ pathParams: { idOrName }, queryParams, config = {}
|
|
1963
|
+
async function createProjectEnv({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1824
1964
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1825
1965
|
if (!idOrName) {
|
|
1826
1966
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1827
1967
|
}
|
|
1828
|
-
const data = await request({
|
|
1968
|
+
const data = await request({
|
|
1969
|
+
method: 'POST',
|
|
1970
|
+
url: `/v10/projects/${idOrName}/env`,
|
|
1971
|
+
queryParams,
|
|
1972
|
+
...requestConfig,
|
|
1973
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1974
|
+
});
|
|
1829
1975
|
return data;
|
|
1830
1976
|
}
|
|
1831
1977
|
/**
|
|
1832
1978
|
* @description Retrieve the environment variable for a given project.
|
|
1833
1979
|
* @summary Retrieve the decrypted value of an environment variable of a project by id
|
|
1834
|
-
* {@link
|
|
1980
|
+
* {@link /v1/projects/:idOrName/env/:id}
|
|
1835
1981
|
*/
|
|
1836
|
-
async function getProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {}
|
|
1982
|
+
async function getProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {} }) {
|
|
1837
1983
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1838
1984
|
if (!idOrName) {
|
|
1839
1985
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1841,15 +1987,15 @@ async function getProjectEnv({ pathParams: { idOrName, id }, queryParams, config
|
|
|
1841
1987
|
if (!id) {
|
|
1842
1988
|
throw new Error(`Missing required path parameter: id`);
|
|
1843
1989
|
}
|
|
1844
|
-
const data = await request({ method: 'GET', url:
|
|
1990
|
+
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/env/${id}`, queryParams, ...requestConfig });
|
|
1845
1991
|
return data;
|
|
1846
1992
|
}
|
|
1847
1993
|
/**
|
|
1848
1994
|
* @description 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.
|
|
1849
1995
|
* @summary Remove an environment variable
|
|
1850
|
-
* {@link
|
|
1996
|
+
* {@link /v9/projects/:idOrName/env/:id}
|
|
1851
1997
|
*/
|
|
1852
|
-
async function removeProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {}
|
|
1998
|
+
async function removeProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {} }) {
|
|
1853
1999
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1854
2000
|
if (!idOrName) {
|
|
1855
2001
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1857,15 +2003,15 @@ async function removeProjectEnv({ pathParams: { idOrName, id }, queryParams, con
|
|
|
1857
2003
|
if (!id) {
|
|
1858
2004
|
throw new Error(`Missing required path parameter: id`);
|
|
1859
2005
|
}
|
|
1860
|
-
const data = await request({ method: 'DELETE', url:
|
|
2006
|
+
const data = await request({ method: 'DELETE', url: `/v9/projects/${idOrName}/env/${id}`, queryParams, ...requestConfig });
|
|
1861
2007
|
return data;
|
|
1862
2008
|
}
|
|
1863
2009
|
/**
|
|
1864
2010
|
* @description 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.
|
|
1865
2011
|
* @summary Edit an environment variable
|
|
1866
|
-
* {@link
|
|
2012
|
+
* {@link /v9/projects/:idOrName/env/:id}
|
|
1867
2013
|
*/
|
|
1868
|
-
async function editProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {}
|
|
2014
|
+
async function editProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {} }) {
|
|
1869
2015
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1870
2016
|
if (!idOrName) {
|
|
1871
2017
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
@@ -1875,179 +2021,179 @@ async function editProjectEnv({ pathParams: { idOrName, id }, queryParams, confi
|
|
|
1875
2021
|
}
|
|
1876
2022
|
const data = await request({
|
|
1877
2023
|
method: 'PATCH',
|
|
1878
|
-
url:
|
|
2024
|
+
url: `/v9/projects/${idOrName}/env/${id}`,
|
|
1879
2025
|
queryParams,
|
|
1880
2026
|
...requestConfig,
|
|
1881
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2027
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1882
2028
|
});
|
|
1883
2029
|
return data;
|
|
1884
2030
|
}
|
|
1885
2031
|
/**
|
|
1886
2032
|
* @description Get the Rolling Releases billing status for a project. The team level billing status is used to determine if the project can be configured for rolling releases.
|
|
1887
2033
|
* @summary Get rolling release billing status
|
|
1888
|
-
* {@link
|
|
2034
|
+
* {@link /v1/projects/:idOrName/rolling-release/billing}
|
|
1889
2035
|
*/
|
|
1890
|
-
async function getRollingReleaseBillingStatus({ pathParams: { idOrName }, queryParams, config = {}
|
|
2036
|
+
async function getRollingReleaseBillingStatus({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1891
2037
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1892
2038
|
if (!idOrName) {
|
|
1893
2039
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1894
2040
|
}
|
|
1895
|
-
const data = await request({ method: 'GET', url:
|
|
2041
|
+
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/rolling-release/billing`, queryParams, ...requestConfig });
|
|
1896
2042
|
return data;
|
|
1897
2043
|
}
|
|
1898
2044
|
/**
|
|
1899
2045
|
* @description Get the Rolling Releases configuration for a project. The project-level config is simply a template that will be used for any future rolling release, and not the configuration for any active rolling release.
|
|
1900
2046
|
* @summary Get rolling release configuration
|
|
1901
|
-
* {@link
|
|
2047
|
+
* {@link /v1/projects/:idOrName/rolling-release/config}
|
|
1902
2048
|
*/
|
|
1903
|
-
async function getRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {}
|
|
2049
|
+
async function getRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1904
2050
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1905
2051
|
if (!idOrName) {
|
|
1906
2052
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1907
2053
|
}
|
|
1908
|
-
const data = await request({ method: 'GET', url:
|
|
2054
|
+
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/rolling-release/config`, queryParams, ...requestConfig });
|
|
1909
2055
|
return data;
|
|
1910
2056
|
}
|
|
1911
2057
|
/**
|
|
1912
2058
|
* @description Disable Rolling Releases for a project means that future deployments will not undergo a rolling release. Changing the config never alters a rollout that's already in-flight—it only affects the next production deployment. If you want to also stop the current rollout, call this endpoint to disable the feature, and then call either the /complete or /abort endpoint.
|
|
1913
2059
|
* @summary Delete rolling release configuration
|
|
1914
|
-
* {@link
|
|
2060
|
+
* {@link /v1/projects/:idOrName/rolling-release/config}
|
|
1915
2061
|
*/
|
|
1916
|
-
async function deleteRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {}
|
|
2062
|
+
async function deleteRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1917
2063
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1918
2064
|
if (!idOrName) {
|
|
1919
2065
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1920
2066
|
}
|
|
1921
|
-
const data = await request({ method: 'DELETE', url:
|
|
2067
|
+
const data = await request({ method: 'DELETE', url: `/v1/projects/${idOrName}/rolling-release/config`, queryParams, ...requestConfig });
|
|
1922
2068
|
return data;
|
|
1923
2069
|
}
|
|
1924
2070
|
/**
|
|
1925
2071
|
* @description Update (or disable) Rolling Releases for a project. Changing the config never alters a rollout that's already in-flight. It only affects the next production deployment. This also applies to disabling Rolling Releases. If you want to also stop the current rollout, call this endpoint to disable the feature, and then call either the /complete or /abort endpoint. Note: Enabling Rolling Releases automatically enables skew protection on the project with the default value if it wasn't configured already.
|
|
1926
2072
|
* @summary Update the rolling release settings for the project
|
|
1927
|
-
* {@link
|
|
2073
|
+
* {@link /v1/projects/:idOrName/rolling-release/config}
|
|
1928
2074
|
*/
|
|
1929
|
-
async function updateRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {}
|
|
2075
|
+
async function updateRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1930
2076
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1931
2077
|
if (!idOrName) {
|
|
1932
2078
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1933
2079
|
}
|
|
1934
|
-
const data = await request({ method: 'PATCH', url:
|
|
2080
|
+
const data = await request({ method: 'PATCH', url: `/v1/projects/${idOrName}/rolling-release/config`, queryParams, ...requestConfig });
|
|
1935
2081
|
return data;
|
|
1936
2082
|
}
|
|
1937
2083
|
/**
|
|
1938
2084
|
* @description Return the Rolling Release for a project, regardless of whether the rollout is active, aborted, or completed. If the feature is enabled but no deployment has occurred yet, null will be returned.
|
|
1939
2085
|
* @summary Get the active rolling release information for a project
|
|
1940
|
-
* {@link
|
|
2086
|
+
* {@link /v1/projects/:idOrName/rolling-release}
|
|
1941
2087
|
*/
|
|
1942
|
-
async function getRollingRelease({ pathParams: { idOrName }, queryParams, config = {}
|
|
2088
|
+
async function getRollingRelease({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1943
2089
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1944
2090
|
if (!idOrName) {
|
|
1945
2091
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1946
2092
|
}
|
|
1947
|
-
const data = await request({ method: 'GET', url:
|
|
2093
|
+
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/rolling-release`, queryParams, ...requestConfig });
|
|
1948
2094
|
return data;
|
|
1949
2095
|
}
|
|
1950
2096
|
/**
|
|
1951
2097
|
* @description Advance a rollout to the next stage. This is only needed when rolling releases is configured to require manual approval.
|
|
1952
2098
|
* @summary Update the active rolling release to the next stage for a project
|
|
1953
|
-
* {@link
|
|
2099
|
+
* {@link /v1/projects/:idOrName/rolling-release/approve-stage}
|
|
1954
2100
|
*/
|
|
1955
|
-
async function approveRollingReleaseStage({ pathParams: { idOrName }, queryParams, config = {}
|
|
2101
|
+
async function approveRollingReleaseStage({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1956
2102
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1957
2103
|
if (!idOrName) {
|
|
1958
2104
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1959
2105
|
}
|
|
1960
2106
|
const data = await request({
|
|
1961
2107
|
method: 'POST',
|
|
1962
|
-
url:
|
|
2108
|
+
url: `/v1/projects/${idOrName}/rolling-release/approve-stage`,
|
|
1963
2109
|
queryParams,
|
|
1964
2110
|
...requestConfig,
|
|
1965
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2111
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1966
2112
|
});
|
|
1967
2113
|
return data;
|
|
1968
2114
|
}
|
|
1969
2115
|
/**
|
|
1970
2116
|
* @description Force-complete a Rolling Release. The canary deployment will begin serving 100% of the traffic.
|
|
1971
2117
|
* @summary Complete the rolling release for the project
|
|
1972
|
-
* {@link
|
|
2118
|
+
* {@link /v1/projects/:idOrName/rolling-release/complete}
|
|
1973
2119
|
*/
|
|
1974
|
-
async function completeRollingRelease({ pathParams: { idOrName }, queryParams, config = {}
|
|
2120
|
+
async function completeRollingRelease({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1975
2121
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1976
2122
|
if (!idOrName) {
|
|
1977
2123
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1978
2124
|
}
|
|
1979
2125
|
const data = await request({
|
|
1980
2126
|
method: 'POST',
|
|
1981
|
-
url:
|
|
2127
|
+
url: `/v1/projects/${idOrName}/rolling-release/complete`,
|
|
1982
2128
|
queryParams,
|
|
1983
2129
|
...requestConfig,
|
|
1984
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2130
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1985
2131
|
});
|
|
1986
2132
|
return data;
|
|
1987
2133
|
}
|
|
1988
2134
|
/**
|
|
1989
2135
|
* @description Initiates a project transfer request from one team to another. <br/> Returns a `code` that remains valid for 24 hours and can be used to accept the transfer request by another team using the `PUT /projects/transfer-request/:code` endpoint. <br/> Users can also accept the project transfer request using the claim URL: `https://vercel.com/claim-deployment?code=<code>&returnUrl=<returnUrl>`. <br/> The `code` parameter specifies the project transfer request code generated using this endpoint. <br/> The `returnUrl` parameter redirects users to a specific page of the application if the claim URL is invalid or expired.
|
|
1990
2136
|
* @summary Create project transfer request
|
|
1991
|
-
* {@link
|
|
2137
|
+
* {@link /projects/:idOrName/transfer-request}
|
|
1992
2138
|
*/
|
|
1993
|
-
async function createProjectTransferRequest({ pathParams: { idOrName }, queryParams, config = {}
|
|
2139
|
+
async function createProjectTransferRequest({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1994
2140
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
1995
2141
|
if (!idOrName) {
|
|
1996
2142
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
1997
2143
|
}
|
|
1998
2144
|
const data = await request({
|
|
1999
2145
|
method: 'POST',
|
|
2000
|
-
url:
|
|
2146
|
+
url: `/projects/${idOrName}/transfer-request`,
|
|
2001
2147
|
queryParams,
|
|
2002
2148
|
...requestConfig,
|
|
2003
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2149
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2004
2150
|
});
|
|
2005
2151
|
return data;
|
|
2006
2152
|
}
|
|
2007
2153
|
/**
|
|
2008
2154
|
* @description Accept a project transfer request initated by another team. <br/> The `code` is generated using the `POST /projects/:idOrName/transfer-request` endpoint.
|
|
2009
2155
|
* @summary Accept project transfer request
|
|
2010
|
-
* {@link
|
|
2156
|
+
* {@link /projects/transfer-request/:code}
|
|
2011
2157
|
*/
|
|
2012
|
-
async function acceptProjectTransferRequest({ pathParams: { code }, queryParams, config = {}
|
|
2158
|
+
async function acceptProjectTransferRequest({ pathParams: { code }, queryParams, config = {} }) {
|
|
2013
2159
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2014
2160
|
if (!code) {
|
|
2015
2161
|
throw new Error(`Missing required path parameter: code`);
|
|
2016
2162
|
}
|
|
2017
2163
|
const data = await request({
|
|
2018
2164
|
method: 'PUT',
|
|
2019
|
-
url:
|
|
2165
|
+
url: `/projects/transfer-request/${code}`,
|
|
2020
2166
|
queryParams,
|
|
2021
2167
|
...requestConfig,
|
|
2022
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2168
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2023
2169
|
});
|
|
2024
2170
|
return data;
|
|
2025
2171
|
}
|
|
2026
2172
|
/**
|
|
2027
2173
|
* @description Update the deployment protection automation bypass for a project
|
|
2028
2174
|
* @summary Update Protection Bypass for Automation
|
|
2029
|
-
* {@link
|
|
2175
|
+
* {@link /v1/projects/:idOrName/protection-bypass}
|
|
2030
2176
|
*/
|
|
2031
|
-
async function updateProjectProtectionBypass({ pathParams: { idOrName }, queryParams, config = {}
|
|
2177
|
+
async function updateProjectProtectionBypass({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
2032
2178
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2033
2179
|
if (!idOrName) {
|
|
2034
2180
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
2035
2181
|
}
|
|
2036
2182
|
const data = await request({
|
|
2037
2183
|
method: 'PATCH',
|
|
2038
|
-
url:
|
|
2184
|
+
url: `/v1/projects/${idOrName}/protection-bypass`,
|
|
2039
2185
|
queryParams,
|
|
2040
2186
|
...requestConfig,
|
|
2041
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2187
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2042
2188
|
});
|
|
2043
2189
|
return data;
|
|
2044
2190
|
}
|
|
2045
2191
|
/**
|
|
2046
2192
|
* @description Allows users to promote a deployment to production. Note: This does NOT rebuild the deployment. If you need that, then call create-deployments endpoint.
|
|
2047
2193
|
* @summary Points all production domains for a project to the given deploy
|
|
2048
|
-
* {@link
|
|
2194
|
+
* {@link /v10/projects/:projectId/promote/:deploymentId}
|
|
2049
2195
|
*/
|
|
2050
|
-
async function requestPromote({ pathParams: { projectId, deploymentId }, queryParams, config = {}
|
|
2196
|
+
async function requestPromote({ pathParams: { projectId, deploymentId }, queryParams, config = {} }) {
|
|
2051
2197
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2052
2198
|
if (!projectId) {
|
|
2053
2199
|
throw new Error(`Missing required path parameter: projectId`);
|
|
@@ -2055,194 +2201,216 @@ async function requestPromote({ pathParams: { projectId, deploymentId }, queryPa
|
|
|
2055
2201
|
if (!deploymentId) {
|
|
2056
2202
|
throw new Error(`Missing required path parameter: deploymentId`);
|
|
2057
2203
|
}
|
|
2058
|
-
const data = await request({ method: 'POST', url:
|
|
2204
|
+
const data = await request({ method: 'POST', url: `/v10/projects/${projectId}/promote/${deploymentId}`, queryParams, ...requestConfig });
|
|
2059
2205
|
return data;
|
|
2060
2206
|
}
|
|
2061
2207
|
/**
|
|
2062
2208
|
* @description Get a list of aliases related to the last promote request with their mapping status
|
|
2063
2209
|
* @summary Gets a list of aliases with status for the current promote
|
|
2064
|
-
* {@link
|
|
2210
|
+
* {@link /v1/projects/:projectId/promote/aliases}
|
|
2065
2211
|
*/
|
|
2066
|
-
async function listPromoteAliases({ pathParams: { projectId }, queryParams, config = {}
|
|
2212
|
+
async function listPromoteAliases({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
2067
2213
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2068
2214
|
if (!projectId) {
|
|
2069
2215
|
throw new Error(`Missing required path parameter: projectId`);
|
|
2070
2216
|
}
|
|
2071
|
-
const data = await request({ method: 'GET', url:
|
|
2217
|
+
const data = await request({ method: 'GET', url: `/v1/projects/${projectId}/promote/aliases`, queryParams, ...requestConfig });
|
|
2072
2218
|
return data;
|
|
2073
2219
|
}
|
|
2074
2220
|
/**
|
|
2075
2221
|
* @description Pause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project disables auto assigning custom production domains and blocks the active Production Deployment then the request will return with 200 status code.
|
|
2076
2222
|
* @summary Pause a project
|
|
2077
|
-
* {@link
|
|
2223
|
+
* {@link /v1/projects/:projectId/pause}
|
|
2078
2224
|
*/
|
|
2079
|
-
async function pauseProject({ pathParams: { projectId }, queryParams, config = {}
|
|
2225
|
+
async function pauseProject({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
2080
2226
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2081
2227
|
if (!projectId) {
|
|
2082
2228
|
throw new Error(`Missing required path parameter: projectId`);
|
|
2083
2229
|
}
|
|
2084
|
-
const data = await request({ method: 'POST', url:
|
|
2230
|
+
const data = await request({ method: 'POST', url: `/v1/projects/${projectId}/pause`, queryParams, ...requestConfig });
|
|
2085
2231
|
return data;
|
|
2086
2232
|
}
|
|
2087
2233
|
/**
|
|
2088
2234
|
* @description Unpause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project enables auto assigning custom production domains and unblocks the active Production Deployment then the request will return with 200 status code.
|
|
2089
2235
|
* @summary Unpause a project
|
|
2090
|
-
* {@link
|
|
2236
|
+
* {@link /v1/projects/:projectId/unpause}
|
|
2091
2237
|
*/
|
|
2092
|
-
async function unpauseProject({ pathParams: { projectId }, queryParams, config = {}
|
|
2238
|
+
async function unpauseProject({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
2093
2239
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2094
2240
|
if (!projectId) {
|
|
2095
2241
|
throw new Error(`Missing required path parameter: projectId`);
|
|
2096
2242
|
}
|
|
2097
|
-
const data = await request({ method: 'POST', url:
|
|
2243
|
+
const data = await request({ method: 'POST', url: `/v1/projects/${projectId}/unpause`, queryParams, ...requestConfig });
|
|
2098
2244
|
return data;
|
|
2099
2245
|
}
|
|
2100
2246
|
/**
|
|
2101
2247
|
* @description Update the setting for determining if the project has Attack Challenge mode enabled.
|
|
2102
2248
|
* @summary Update Attack Challenge mode
|
|
2103
|
-
* {@link
|
|
2249
|
+
* {@link /v1/security/attack-mode}
|
|
2104
2250
|
*/
|
|
2105
|
-
async function updateAttackChallengeMode({ queryParams, config = {}
|
|
2251
|
+
async function updateAttackChallengeMode({ queryParams, config = {} }) {
|
|
2106
2252
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2107
|
-
const data = await request({
|
|
2253
|
+
const data = await request({
|
|
2254
|
+
method: 'POST',
|
|
2255
|
+
url: `/v1/security/attack-mode`,
|
|
2256
|
+
queryParams,
|
|
2257
|
+
...requestConfig,
|
|
2258
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2259
|
+
});
|
|
2108
2260
|
return data;
|
|
2109
2261
|
}
|
|
2110
2262
|
/**
|
|
2111
2263
|
* @description Set the firewall configuration to provided rules and settings. Creates or overwrite the existing firewall configuration.
|
|
2112
2264
|
* @summary Put Firewall Configuration
|
|
2113
|
-
* {@link
|
|
2265
|
+
* {@link /v1/security/firewall/config}
|
|
2114
2266
|
*/
|
|
2115
|
-
async function putFirewallConfig({ queryParams, config = {}
|
|
2267
|
+
async function putFirewallConfig({ queryParams, config = {} }) {
|
|
2116
2268
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2117
|
-
const data = await request({
|
|
2269
|
+
const data = await request({
|
|
2270
|
+
method: 'PUT',
|
|
2271
|
+
url: `/v1/security/firewall/config`,
|
|
2272
|
+
queryParams,
|
|
2273
|
+
...requestConfig,
|
|
2274
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2275
|
+
});
|
|
2118
2276
|
return data;
|
|
2119
2277
|
}
|
|
2120
2278
|
/**
|
|
2121
2279
|
* @description Process updates to modify the existing firewall config for a project
|
|
2122
2280
|
* @summary Update Firewall Configuration
|
|
2123
|
-
* {@link
|
|
2281
|
+
* {@link /v1/security/firewall/config}
|
|
2124
2282
|
*/
|
|
2125
|
-
async function updateFirewallConfig({ queryParams, config = {}
|
|
2283
|
+
async function updateFirewallConfig({ queryParams, config = {} }) {
|
|
2126
2284
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2127
2285
|
const data = await request({
|
|
2128
2286
|
method: 'PATCH',
|
|
2129
|
-
url:
|
|
2287
|
+
url: `/v1/security/firewall/config`,
|
|
2130
2288
|
queryParams,
|
|
2131
2289
|
...requestConfig,
|
|
2132
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2290
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2133
2291
|
});
|
|
2134
2292
|
return data;
|
|
2135
2293
|
}
|
|
2136
2294
|
/**
|
|
2137
2295
|
* @description Retrieve the specified firewall configuration for a project. The deployed configVersion will be `active`
|
|
2138
2296
|
* @summary Read Firewall Configuration
|
|
2139
|
-
* {@link
|
|
2297
|
+
* {@link /v1/security/firewall/config/:configVersion}
|
|
2140
2298
|
*/
|
|
2141
|
-
async function getFirewallConfig({ pathParams: { configVersion }, queryParams, config = {}
|
|
2299
|
+
async function getFirewallConfig({ pathParams: { configVersion }, queryParams, config = {} }) {
|
|
2142
2300
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2143
2301
|
if (!configVersion) {
|
|
2144
2302
|
throw new Error(`Missing required path parameter: configVersion`);
|
|
2145
2303
|
}
|
|
2146
|
-
const data = await request({ method: 'GET', url:
|
|
2304
|
+
const data = await request({ method: 'GET', url: `/v1/security/firewall/config/${configVersion}`, queryParams, ...requestConfig });
|
|
2147
2305
|
return data;
|
|
2148
2306
|
}
|
|
2149
2307
|
/**
|
|
2150
2308
|
* @description Retrieve active attack data within the last 24h window
|
|
2151
2309
|
* @summary Read active attack data
|
|
2152
|
-
* {@link
|
|
2310
|
+
* {@link /v1/security/firewall/attack-status}
|
|
2153
2311
|
*/
|
|
2154
|
-
async function getActiveAttackStatus({ queryParams, config = {}
|
|
2312
|
+
async function getActiveAttackStatus({ queryParams, config = {} }) {
|
|
2155
2313
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2156
|
-
const data = await request({ method: 'GET', url:
|
|
2314
|
+
const data = await request({ method: 'GET', url: `/v1/security/firewall/attack-status`, queryParams, ...requestConfig });
|
|
2157
2315
|
return data;
|
|
2158
2316
|
}
|
|
2159
2317
|
/**
|
|
2160
2318
|
* @description Retrieve the system bypass rules configured for the specified project
|
|
2161
2319
|
* @summary Read System Bypass
|
|
2162
|
-
* {@link
|
|
2320
|
+
* {@link /v1/security/firewall/bypass}
|
|
2163
2321
|
*/
|
|
2164
|
-
async function getBypassIp({ queryParams, config = {}
|
|
2322
|
+
async function getBypassIp({ queryParams, config = {} }) {
|
|
2165
2323
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2166
|
-
const data = await request({ method: 'GET', url:
|
|
2324
|
+
const data = await request({ method: 'GET', url: `/v1/security/firewall/bypass`, queryParams, ...requestConfig });
|
|
2167
2325
|
return data;
|
|
2168
2326
|
}
|
|
2169
2327
|
/**
|
|
2170
2328
|
* @description Create new system bypass rules
|
|
2171
2329
|
* @summary Create System Bypass Rule
|
|
2172
|
-
* {@link
|
|
2330
|
+
* {@link /v1/security/firewall/bypass}
|
|
2173
2331
|
*/
|
|
2174
|
-
async function addBypassIp({ queryParams, config = {}
|
|
2332
|
+
async function addBypassIp({ queryParams, config = {} }) {
|
|
2175
2333
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2176
2334
|
const data = await request({
|
|
2177
2335
|
method: 'POST',
|
|
2178
|
-
url:
|
|
2336
|
+
url: `/v1/security/firewall/bypass`,
|
|
2179
2337
|
queryParams,
|
|
2180
2338
|
...requestConfig,
|
|
2181
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2339
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2182
2340
|
});
|
|
2183
2341
|
return data;
|
|
2184
2342
|
}
|
|
2185
2343
|
/**
|
|
2186
2344
|
* @description Remove system bypass rules
|
|
2187
2345
|
* @summary Remove System Bypass Rule
|
|
2188
|
-
* {@link
|
|
2346
|
+
* {@link /v1/security/firewall/bypass}
|
|
2189
2347
|
*/
|
|
2190
|
-
async function removeBypassIp({ queryParams, config = {}
|
|
2348
|
+
async function removeBypassIp({ queryParams, config = {} }) {
|
|
2191
2349
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2192
2350
|
const data = await request({
|
|
2193
2351
|
method: 'DELETE',
|
|
2194
|
-
url:
|
|
2352
|
+
url: `/v1/security/firewall/bypass`,
|
|
2195
2353
|
queryParams,
|
|
2196
2354
|
...requestConfig,
|
|
2197
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2355
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2198
2356
|
});
|
|
2199
2357
|
return data;
|
|
2200
2358
|
}
|
|
2201
2359
|
/**
|
|
2202
2360
|
* @description Get a paginated list of team members for the provided team.
|
|
2203
2361
|
* @summary List team members
|
|
2204
|
-
* {@link
|
|
2362
|
+
* {@link /v3/teams/:teamId/members}
|
|
2205
2363
|
*/
|
|
2206
|
-
async function getTeamMembers({ pathParams: { teamId }, queryParams, config = {}
|
|
2364
|
+
async function getTeamMembers({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2207
2365
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2208
2366
|
if (!teamId) {
|
|
2209
2367
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2210
2368
|
}
|
|
2211
|
-
const data = await request({ method: 'GET', url:
|
|
2369
|
+
const data = await request({ method: 'GET', url: `/v3/teams/${teamId}/members`, queryParams, ...requestConfig });
|
|
2212
2370
|
return data;
|
|
2213
2371
|
}
|
|
2214
2372
|
/**
|
|
2215
2373
|
* @description 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.
|
|
2216
2374
|
* @summary Invite a user
|
|
2217
|
-
* {@link
|
|
2375
|
+
* {@link /v1/teams/:teamId/members}
|
|
2218
2376
|
*/
|
|
2219
|
-
async function inviteUserToTeam({ pathParams: { teamId }, config = {}
|
|
2377
|
+
async function inviteUserToTeam({ pathParams: { teamId }, config = {} }) {
|
|
2220
2378
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2221
2379
|
if (!teamId) {
|
|
2222
2380
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2223
2381
|
}
|
|
2224
|
-
const data = await request({
|
|
2382
|
+
const data = await request({
|
|
2383
|
+
method: 'POST',
|
|
2384
|
+
url: `/v1/teams/${teamId}/members`,
|
|
2385
|
+
...requestConfig,
|
|
2386
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2387
|
+
});
|
|
2225
2388
|
return data;
|
|
2226
2389
|
}
|
|
2227
2390
|
/**
|
|
2228
2391
|
* @description 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.
|
|
2229
2392
|
* @summary Request access to a team
|
|
2230
|
-
* {@link
|
|
2393
|
+
* {@link /v1/teams/:teamId/request}
|
|
2231
2394
|
*/
|
|
2232
|
-
async function requestAccessToTeam({ pathParams: { teamId }, config = {}
|
|
2395
|
+
async function requestAccessToTeam({ pathParams: { teamId }, config = {} }) {
|
|
2233
2396
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2234
2397
|
if (!teamId) {
|
|
2235
2398
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2236
2399
|
}
|
|
2237
|
-
const data = await request({
|
|
2400
|
+
const data = await request({
|
|
2401
|
+
method: 'POST',
|
|
2402
|
+
url: `/v1/teams/${teamId}/request`,
|
|
2403
|
+
...requestConfig,
|
|
2404
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2405
|
+
});
|
|
2238
2406
|
return data;
|
|
2239
2407
|
}
|
|
2240
2408
|
/**
|
|
2241
2409
|
* @description 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.
|
|
2242
2410
|
* @summary Get access request status
|
|
2243
|
-
* {@link
|
|
2411
|
+
* {@link /v1/teams/:teamId/request/:userId}
|
|
2244
2412
|
*/
|
|
2245
|
-
async function getTeamAccessRequest({ pathParams: { userId, teamId }, config = {}
|
|
2413
|
+
async function getTeamAccessRequest({ pathParams: { userId, teamId }, config = {} }) {
|
|
2246
2414
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2247
2415
|
if (!userId) {
|
|
2248
2416
|
throw new Error(`Missing required path parameter: userId`);
|
|
@@ -2250,28 +2418,33 @@ async function getTeamAccessRequest({ pathParams: { userId, teamId }, config = {
|
|
|
2250
2418
|
if (!teamId) {
|
|
2251
2419
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2252
2420
|
}
|
|
2253
|
-
const data = await request({ method: 'GET', url:
|
|
2421
|
+
const data = await request({ method: 'GET', url: `/v1/teams/${teamId}/request/${userId}`, ...requestConfig });
|
|
2254
2422
|
return data;
|
|
2255
2423
|
}
|
|
2256
2424
|
/**
|
|
2257
2425
|
* @description Join a team with a provided invite code or team ID.
|
|
2258
2426
|
* @summary Join a team
|
|
2259
|
-
* {@link
|
|
2427
|
+
* {@link /v1/teams/:teamId/members/teams/join}
|
|
2260
2428
|
*/
|
|
2261
|
-
async function joinTeam({ pathParams: { teamId }, config = {}
|
|
2429
|
+
async function joinTeam({ pathParams: { teamId }, config = {} }) {
|
|
2262
2430
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2263
2431
|
if (!teamId) {
|
|
2264
2432
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2265
2433
|
}
|
|
2266
|
-
const data = await request({
|
|
2434
|
+
const data = await request({
|
|
2435
|
+
method: 'POST',
|
|
2436
|
+
url: `/v1/teams/${teamId}/members/teams/join`,
|
|
2437
|
+
...requestConfig,
|
|
2438
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2439
|
+
});
|
|
2267
2440
|
return data;
|
|
2268
2441
|
}
|
|
2269
2442
|
/**
|
|
2270
2443
|
* @description 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.
|
|
2271
2444
|
* @summary Update a Team Member
|
|
2272
|
-
* {@link
|
|
2445
|
+
* {@link /v1/teams/:teamId/members/:uid}
|
|
2273
2446
|
*/
|
|
2274
|
-
async function updateTeamMember({ pathParams: { uid, teamId }, config = {}
|
|
2447
|
+
async function updateTeamMember({ pathParams: { uid, teamId }, config = {} }) {
|
|
2275
2448
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2276
2449
|
if (!uid) {
|
|
2277
2450
|
throw new Error(`Missing required path parameter: uid`);
|
|
@@ -2279,15 +2452,20 @@ async function updateTeamMember({ pathParams: { uid, teamId }, config = {}, }) {
|
|
|
2279
2452
|
if (!teamId) {
|
|
2280
2453
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2281
2454
|
}
|
|
2282
|
-
const data = await request({
|
|
2455
|
+
const data = await request({
|
|
2456
|
+
method: 'PATCH',
|
|
2457
|
+
url: `/v1/teams/${teamId}/members/${uid}`,
|
|
2458
|
+
...requestConfig,
|
|
2459
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2460
|
+
});
|
|
2283
2461
|
return data;
|
|
2284
2462
|
}
|
|
2285
2463
|
/**
|
|
2286
2464
|
* @description Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
|
|
2287
2465
|
* @summary Remove a Team Member
|
|
2288
|
-
* {@link
|
|
2466
|
+
* {@link /v1/teams/:teamId/members/:uid}
|
|
2289
2467
|
*/
|
|
2290
|
-
async function removeTeamMember({ pathParams: { uid, teamId }, queryParams, config = {}
|
|
2468
|
+
async function removeTeamMember({ pathParams: { uid, teamId }, queryParams, config = {} }) {
|
|
2291
2469
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2292
2470
|
if (!uid) {
|
|
2293
2471
|
throw new Error(`Missing required path parameter: uid`);
|
|
@@ -2295,74 +2473,91 @@ async function removeTeamMember({ pathParams: { uid, teamId }, queryParams, conf
|
|
|
2295
2473
|
if (!teamId) {
|
|
2296
2474
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2297
2475
|
}
|
|
2298
|
-
const data = await request({ method: 'DELETE', url:
|
|
2476
|
+
const data = await request({ method: 'DELETE', url: `/v1/teams/${teamId}/members/${uid}`, queryParams, ...requestConfig });
|
|
2299
2477
|
return data;
|
|
2300
2478
|
}
|
|
2301
2479
|
/**
|
|
2302
2480
|
* @description Get information for the Team specified by the `teamId` parameter.
|
|
2303
2481
|
* @summary Get a Team
|
|
2304
|
-
* {@link
|
|
2482
|
+
* {@link /v2/teams/:teamId}
|
|
2305
2483
|
*/
|
|
2306
|
-
async function getTeam({ pathParams: { teamId }, queryParams, config = {}
|
|
2484
|
+
async function getTeam({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2307
2485
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2308
2486
|
if (!teamId) {
|
|
2309
2487
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2310
2488
|
}
|
|
2311
|
-
const data = await request({ method: 'GET', url:
|
|
2489
|
+
const data = await request({ method: 'GET', url: `/v2/teams/${teamId}`, queryParams, ...requestConfig });
|
|
2312
2490
|
return data;
|
|
2313
2491
|
}
|
|
2314
2492
|
/**
|
|
2315
2493
|
* @description Update the information of a Team specified by the `teamId` parameter. The request body should contain the information that will be updated on the Team.
|
|
2316
2494
|
* @summary Update a Team
|
|
2317
|
-
* {@link
|
|
2495
|
+
* {@link /v2/teams/:teamId}
|
|
2318
2496
|
*/
|
|
2319
|
-
async function patchTeam({ pathParams: { teamId }, queryParams, config = {}
|
|
2497
|
+
async function patchTeam({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2320
2498
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2321
2499
|
if (!teamId) {
|
|
2322
2500
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2323
2501
|
}
|
|
2324
|
-
const data = await request({
|
|
2502
|
+
const data = await request({
|
|
2503
|
+
method: 'PATCH',
|
|
2504
|
+
url: `/v2/teams/${teamId}`,
|
|
2505
|
+
queryParams,
|
|
2506
|
+
...requestConfig,
|
|
2507
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2508
|
+
});
|
|
2325
2509
|
return data;
|
|
2326
2510
|
}
|
|
2327
2511
|
/**
|
|
2328
2512
|
* @description Get a paginated list of all the Teams the authenticated User is a member of.
|
|
2329
2513
|
* @summary List all teams
|
|
2330
|
-
* {@link
|
|
2514
|
+
* {@link /v2/teams}
|
|
2331
2515
|
*/
|
|
2332
|
-
async function getTeams({ queryParams, config = {}
|
|
2516
|
+
async function getTeams({ queryParams, config = {} }) {
|
|
2333
2517
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2334
|
-
const data = await request({ method: 'GET', url:
|
|
2518
|
+
const data = await request({ method: 'GET', url: `/v2/teams`, queryParams, ...requestConfig });
|
|
2335
2519
|
return data;
|
|
2336
2520
|
}
|
|
2337
2521
|
/**
|
|
2338
2522
|
* @description Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name.
|
|
2339
2523
|
* @summary Create a Team
|
|
2340
|
-
* {@link
|
|
2524
|
+
* {@link /v1/teams}
|
|
2341
2525
|
*/
|
|
2342
2526
|
async function createTeam({ config = {} }) {
|
|
2343
2527
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2344
|
-
const data = await request({
|
|
2528
|
+
const data = await request({
|
|
2529
|
+
method: 'POST',
|
|
2530
|
+
url: `/v1/teams`,
|
|
2531
|
+
...requestConfig,
|
|
2532
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2533
|
+
});
|
|
2345
2534
|
return data;
|
|
2346
2535
|
}
|
|
2347
2536
|
/**
|
|
2348
2537
|
* @description Delete a team under your account. You need to send a `DELETE` request with the desired team `id`. An optional array of reasons for deletion may also be sent.
|
|
2349
2538
|
* @summary Delete a Team
|
|
2350
|
-
* {@link
|
|
2539
|
+
* {@link /v1/teams/:teamId}
|
|
2351
2540
|
*/
|
|
2352
|
-
async function deleteTeam({ pathParams: { teamId }, queryParams, config = {}
|
|
2541
|
+
async function deleteTeam({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2353
2542
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2354
2543
|
if (!teamId) {
|
|
2355
2544
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2356
2545
|
}
|
|
2357
|
-
const data = await request({
|
|
2546
|
+
const data = await request({
|
|
2547
|
+
method: 'DELETE',
|
|
2548
|
+
url: `/v1/teams/${teamId}`,
|
|
2549
|
+
queryParams,
|
|
2550
|
+
...requestConfig,
|
|
2551
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2552
|
+
});
|
|
2358
2553
|
return data;
|
|
2359
2554
|
}
|
|
2360
2555
|
/**
|
|
2361
2556
|
* @description Delete an active Team invite code.
|
|
2362
2557
|
* @summary Delete a Team invite code
|
|
2363
|
-
* {@link
|
|
2558
|
+
* {@link /v1/teams/:teamId/invites/:inviteId}
|
|
2364
2559
|
*/
|
|
2365
|
-
async function deleteTeamInviteCode({ pathParams: { inviteId, teamId }, config = {}
|
|
2560
|
+
async function deleteTeamInviteCode({ pathParams: { inviteId, teamId }, config = {} }) {
|
|
2366
2561
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2367
2562
|
if (!inviteId) {
|
|
2368
2563
|
throw new Error(`Missing required path parameter: inviteId`);
|
|
@@ -2370,291 +2565,326 @@ async function deleteTeamInviteCode({ pathParams: { inviteId, teamId }, config =
|
|
|
2370
2565
|
if (!teamId) {
|
|
2371
2566
|
throw new Error(`Missing required path parameter: teamId`);
|
|
2372
2567
|
}
|
|
2373
|
-
const data = await request({ method: 'DELETE', url:
|
|
2568
|
+
const data = await request({ method: 'DELETE', url: `/v1/teams/${teamId}/invites/${inviteId}`, ...requestConfig });
|
|
2374
2569
|
return data;
|
|
2375
2570
|
}
|
|
2376
2571
|
/**
|
|
2377
2572
|
* @description 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.
|
|
2378
2573
|
* @summary Upload Deployment Files
|
|
2379
|
-
* {@link
|
|
2574
|
+
* {@link /v2/files}
|
|
2380
2575
|
*/
|
|
2381
|
-
async function uploadFile({ queryParams, headers, config = {}
|
|
2576
|
+
async function uploadFile({ queryParams, headers, config = {} }) {
|
|
2382
2577
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2383
2578
|
const data = await request({
|
|
2384
2579
|
method: 'POST',
|
|
2385
|
-
url:
|
|
2580
|
+
url: `/v2/files`,
|
|
2386
2581
|
queryParams,
|
|
2387
2582
|
...requestConfig,
|
|
2388
|
-
headers: { 'Content-Type': 'applicationOctetStream', ...headers, ...requestConfig.headers }
|
|
2583
|
+
headers: { 'Content-Type': 'applicationOctetStream', ...headers, ...requestConfig.headers }
|
|
2389
2584
|
});
|
|
2390
2585
|
return data;
|
|
2391
2586
|
}
|
|
2392
2587
|
/**
|
|
2393
2588
|
* @description Retrieve a list of the current User's authentication tokens.
|
|
2394
2589
|
* @summary List Auth Tokens
|
|
2395
|
-
* {@link
|
|
2590
|
+
* {@link /v5/user/tokens}
|
|
2396
2591
|
*/
|
|
2397
2592
|
async function listAuthTokens({ config = {} }) {
|
|
2398
2593
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2399
|
-
const data = await request({ method: 'GET', url:
|
|
2594
|
+
const data = await request({ method: 'GET', url: `/v5/user/tokens`, ...requestConfig });
|
|
2400
2595
|
return data;
|
|
2401
2596
|
}
|
|
2402
2597
|
/**
|
|
2403
2598
|
* @description 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.
|
|
2404
2599
|
* @summary Create an Auth Token
|
|
2405
|
-
* {@link
|
|
2600
|
+
* {@link /v3/user/tokens}
|
|
2406
2601
|
*/
|
|
2407
|
-
async function createAuthToken({ queryParams, config = {}
|
|
2602
|
+
async function createAuthToken({ queryParams, config = {} }) {
|
|
2408
2603
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2409
|
-
const data = await request({
|
|
2604
|
+
const data = await request({
|
|
2605
|
+
method: 'POST',
|
|
2606
|
+
url: `/v3/user/tokens`,
|
|
2607
|
+
queryParams,
|
|
2608
|
+
...requestConfig,
|
|
2609
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2610
|
+
});
|
|
2410
2611
|
return data;
|
|
2411
2612
|
}
|
|
2412
2613
|
/**
|
|
2413
2614
|
* @description Retrieve metadata about an authentication token belonging to the currently authenticated User.
|
|
2414
2615
|
* @summary Get Auth Token Metadata
|
|
2415
|
-
* {@link
|
|
2616
|
+
* {@link /v5/user/tokens/:tokenId}
|
|
2416
2617
|
*/
|
|
2417
|
-
async function getAuthToken({ pathParams: { tokenId }, config = {}
|
|
2618
|
+
async function getAuthToken({ pathParams: { tokenId }, config = {} }) {
|
|
2418
2619
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2419
2620
|
if (!tokenId) {
|
|
2420
2621
|
throw new Error(`Missing required path parameter: tokenId`);
|
|
2421
2622
|
}
|
|
2422
|
-
const data = await request({ method: 'GET', url:
|
|
2623
|
+
const data = await request({ method: 'GET', url: `/v5/user/tokens/${tokenId}`, ...requestConfig });
|
|
2423
2624
|
return data;
|
|
2424
2625
|
}
|
|
2425
2626
|
/**
|
|
2426
2627
|
* @description Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
|
|
2427
2628
|
* @summary Delete an authentication token
|
|
2428
|
-
* {@link
|
|
2629
|
+
* {@link /v3/user/tokens/:tokenId}
|
|
2429
2630
|
*/
|
|
2430
|
-
async function deleteAuthToken({ pathParams: { tokenId }, config = {}
|
|
2631
|
+
async function deleteAuthToken({ pathParams: { tokenId }, config = {} }) {
|
|
2431
2632
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2432
2633
|
if (!tokenId) {
|
|
2433
2634
|
throw new Error(`Missing required path parameter: tokenId`);
|
|
2434
2635
|
}
|
|
2435
|
-
const data = await request({ method: 'DELETE', url:
|
|
2636
|
+
const data = await request({ method: 'DELETE', url: `/v3/user/tokens/${tokenId}`, ...requestConfig });
|
|
2436
2637
|
return data;
|
|
2437
2638
|
}
|
|
2438
2639
|
/**
|
|
2439
2640
|
* @description Retrieves information related to the currently authenticated User.
|
|
2440
2641
|
* @summary Get the User
|
|
2441
|
-
* {@link
|
|
2642
|
+
* {@link /v2/user}
|
|
2442
2643
|
*/
|
|
2443
2644
|
async function getAuthUser({ config = {} }) {
|
|
2444
2645
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2445
|
-
const data = await request({ method: 'GET', url:
|
|
2646
|
+
const data = await request({ method: 'GET', url: `/v2/user`, ...requestConfig });
|
|
2446
2647
|
return data;
|
|
2447
2648
|
}
|
|
2448
2649
|
/**
|
|
2449
2650
|
* @description 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.
|
|
2450
2651
|
* @summary Delete User Account
|
|
2451
|
-
* {@link
|
|
2652
|
+
* {@link /v1/user}
|
|
2452
2653
|
*/
|
|
2453
2654
|
async function requestDelete({ config = {} }) {
|
|
2454
2655
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2455
|
-
const data = await request({
|
|
2656
|
+
const data = await request({
|
|
2657
|
+
method: 'DELETE',
|
|
2658
|
+
url: `/v1/user`,
|
|
2659
|
+
...requestConfig,
|
|
2660
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2661
|
+
});
|
|
2456
2662
|
return data;
|
|
2457
2663
|
}
|
|
2458
2664
|
/**
|
|
2459
2665
|
* @description Creates a webhook
|
|
2460
2666
|
* @summary Creates a webhook
|
|
2461
|
-
* {@link
|
|
2667
|
+
* {@link /v1/webhooks}
|
|
2462
2668
|
*/
|
|
2463
|
-
async function createWebhook({ queryParams, config = {}
|
|
2669
|
+
async function createWebhook({ queryParams, config = {} }) {
|
|
2464
2670
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2465
|
-
const data = await request({
|
|
2671
|
+
const data = await request({
|
|
2672
|
+
method: 'POST',
|
|
2673
|
+
url: `/v1/webhooks`,
|
|
2674
|
+
queryParams,
|
|
2675
|
+
...requestConfig,
|
|
2676
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2677
|
+
});
|
|
2466
2678
|
return data;
|
|
2467
2679
|
}
|
|
2468
2680
|
/**
|
|
2469
2681
|
* @description Get a list of webhooks
|
|
2470
2682
|
* @summary Get a list of webhooks
|
|
2471
|
-
* {@link
|
|
2683
|
+
* {@link /v1/webhooks}
|
|
2472
2684
|
*/
|
|
2473
|
-
async function getWebhooks({ queryParams, config = {}
|
|
2685
|
+
async function getWebhooks({ queryParams, config = {} }) {
|
|
2474
2686
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2475
|
-
const data = await request({ method: 'GET', url:
|
|
2687
|
+
const data = await request({ method: 'GET', url: `/v1/webhooks`, queryParams, ...requestConfig });
|
|
2476
2688
|
return data;
|
|
2477
2689
|
}
|
|
2478
2690
|
/**
|
|
2479
2691
|
* @description Get a webhook
|
|
2480
2692
|
* @summary Get a webhook
|
|
2481
|
-
* {@link
|
|
2693
|
+
* {@link /v1/webhooks/:id}
|
|
2482
2694
|
*/
|
|
2483
|
-
async function getWebhook({ pathParams: { id }, queryParams, config = {}
|
|
2695
|
+
async function getWebhook({ pathParams: { id }, queryParams, config = {} }) {
|
|
2484
2696
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2485
2697
|
if (!id) {
|
|
2486
2698
|
throw new Error(`Missing required path parameter: id`);
|
|
2487
2699
|
}
|
|
2488
|
-
const data = await request({ method: 'GET', url:
|
|
2700
|
+
const data = await request({ method: 'GET', url: `/v1/webhooks/${id}`, queryParams, ...requestConfig });
|
|
2489
2701
|
return data;
|
|
2490
2702
|
}
|
|
2491
2703
|
/**
|
|
2492
2704
|
* @description Deletes a webhook
|
|
2493
2705
|
* @summary Deletes a webhook
|
|
2494
|
-
* {@link
|
|
2706
|
+
* {@link /v1/webhooks/:id}
|
|
2495
2707
|
*/
|
|
2496
|
-
async function deleteWebhook({ pathParams: { id }, queryParams, config = {}
|
|
2708
|
+
async function deleteWebhook({ pathParams: { id }, queryParams, config = {} }) {
|
|
2497
2709
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2498
2710
|
if (!id) {
|
|
2499
2711
|
throw new Error(`Missing required path parameter: id`);
|
|
2500
2712
|
}
|
|
2501
|
-
const data = await request({ method: 'DELETE', url:
|
|
2713
|
+
const data = await request({ method: 'DELETE', url: `/v1/webhooks/${id}`, queryParams, ...requestConfig });
|
|
2502
2714
|
return data;
|
|
2503
2715
|
}
|
|
2504
2716
|
/**
|
|
2505
2717
|
* @description Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
|
|
2506
2718
|
* @summary List Deployment Aliases
|
|
2507
|
-
* {@link
|
|
2719
|
+
* {@link /v2/deployments/:id/aliases}
|
|
2508
2720
|
*/
|
|
2509
|
-
async function listDeploymentAliases({ pathParams: { id }, queryParams, config = {}
|
|
2721
|
+
async function listDeploymentAliases({ pathParams: { id }, queryParams, config = {} }) {
|
|
2510
2722
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2511
2723
|
if (!id) {
|
|
2512
2724
|
throw new Error(`Missing required path parameter: id`);
|
|
2513
2725
|
}
|
|
2514
|
-
const data = await request({ method: 'GET', url:
|
|
2726
|
+
const data = await request({ method: 'GET', url: `/v2/deployments/${id}/aliases`, queryParams, ...requestConfig });
|
|
2515
2727
|
return data;
|
|
2516
2728
|
}
|
|
2517
2729
|
/**
|
|
2518
2730
|
* @description Creates a new alias for the deployment with the given deployment ID. The authenticated user or team 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.
|
|
2519
2731
|
* @summary Assign an Alias
|
|
2520
|
-
* {@link
|
|
2732
|
+
* {@link /v2/deployments/:id/aliases}
|
|
2521
2733
|
*/
|
|
2522
|
-
async function assignAlias({ pathParams: { id }, queryParams, config = {}
|
|
2734
|
+
async function assignAlias({ pathParams: { id }, queryParams, config = {} }) {
|
|
2523
2735
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2524
2736
|
if (!id) {
|
|
2525
2737
|
throw new Error(`Missing required path parameter: id`);
|
|
2526
2738
|
}
|
|
2527
|
-
const data = await request({
|
|
2739
|
+
const data = await request({
|
|
2740
|
+
method: 'POST',
|
|
2741
|
+
url: `/v2/deployments/${id}/aliases`,
|
|
2742
|
+
queryParams,
|
|
2743
|
+
...requestConfig,
|
|
2744
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2745
|
+
});
|
|
2528
2746
|
return data;
|
|
2529
2747
|
}
|
|
2530
2748
|
/**
|
|
2531
2749
|
* @description 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.
|
|
2532
2750
|
* @summary List aliases
|
|
2533
|
-
* {@link
|
|
2751
|
+
* {@link /v4/aliases}
|
|
2534
2752
|
*/
|
|
2535
|
-
async function listAliases({ queryParams, config = {}
|
|
2753
|
+
async function listAliases({ queryParams, config = {} }) {
|
|
2536
2754
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2537
|
-
const data = await request({ method: 'GET', url:
|
|
2755
|
+
const data = await request({ method: 'GET', url: `/v4/aliases`, queryParams, ...requestConfig });
|
|
2538
2756
|
return data;
|
|
2539
2757
|
}
|
|
2540
2758
|
/**
|
|
2541
2759
|
* @description Retrieves an Alias for the given host name or alias ID.
|
|
2542
2760
|
* @summary Get an Alias
|
|
2543
|
-
* {@link
|
|
2761
|
+
* {@link /v4/aliases/:idOrAlias}
|
|
2544
2762
|
*/
|
|
2545
|
-
async function getAlias({ pathParams: { idOrAlias }, queryParams, config = {}
|
|
2763
|
+
async function getAlias({ pathParams: { idOrAlias }, queryParams, config = {} }) {
|
|
2546
2764
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2547
2765
|
if (!idOrAlias) {
|
|
2548
2766
|
throw new Error(`Missing required path parameter: idOrAlias`);
|
|
2549
2767
|
}
|
|
2550
|
-
const data = await request({ method: 'GET', url:
|
|
2768
|
+
const data = await request({ method: 'GET', url: `/v4/aliases/${idOrAlias}`, queryParams, ...requestConfig });
|
|
2551
2769
|
return data;
|
|
2552
2770
|
}
|
|
2553
2771
|
/**
|
|
2554
2772
|
* @description Delete an Alias with the specified ID.
|
|
2555
2773
|
* @summary Delete an Alias
|
|
2556
|
-
* {@link
|
|
2774
|
+
* {@link /v2/aliases/:aliasId}
|
|
2557
2775
|
*/
|
|
2558
|
-
async function deleteAlias({ pathParams: { aliasId }, queryParams, config = {}
|
|
2776
|
+
async function deleteAlias({ pathParams: { aliasId }, queryParams, config = {} }) {
|
|
2559
2777
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2560
2778
|
if (!aliasId) {
|
|
2561
2779
|
throw new Error(`Missing required path parameter: aliasId`);
|
|
2562
2780
|
}
|
|
2563
|
-
const data = await request({ method: 'DELETE', url:
|
|
2781
|
+
const data = await request({ method: 'DELETE', url: `/v2/aliases/${aliasId}`, queryParams, ...requestConfig });
|
|
2564
2782
|
return data;
|
|
2565
2783
|
}
|
|
2566
2784
|
/**
|
|
2567
2785
|
* @description Update the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). Used as shareable links and user scoped access for Vercel Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode).
|
|
2568
2786
|
* @summary Update the protection bypass for a URL
|
|
2569
|
-
* {@link
|
|
2787
|
+
* {@link /aliases/:id/protection-bypass}
|
|
2570
2788
|
*/
|
|
2571
|
-
async function patchUrlProtectionBypass({ pathParams: { id }, queryParams, config = {}
|
|
2789
|
+
async function patchUrlProtectionBypass({ pathParams: { id }, queryParams, config = {} }) {
|
|
2572
2790
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2573
2791
|
if (!id) {
|
|
2574
2792
|
throw new Error(`Missing required path parameter: id`);
|
|
2575
2793
|
}
|
|
2576
2794
|
const data = await request({
|
|
2577
2795
|
method: 'PATCH',
|
|
2578
|
-
url:
|
|
2796
|
+
url: `/aliases/${id}/protection-bypass`,
|
|
2579
2797
|
queryParams,
|
|
2580
2798
|
...requestConfig,
|
|
2581
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2799
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2582
2800
|
});
|
|
2583
2801
|
return data;
|
|
2584
2802
|
}
|
|
2585
2803
|
/**
|
|
2586
|
-
* {@link certs}
|
|
2804
|
+
* {@link /certs}
|
|
2587
2805
|
*/
|
|
2588
2806
|
async function listCerts({ config = {} }) {
|
|
2589
2807
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2590
|
-
const data = await request({ method: 'GET', url:
|
|
2808
|
+
const data = await request({ method: 'GET', url: `/certs`, ...requestConfig });
|
|
2591
2809
|
return data;
|
|
2592
2810
|
}
|
|
2593
2811
|
/**
|
|
2594
2812
|
* @description Get cert by id
|
|
2595
2813
|
* @summary Get cert by id
|
|
2596
|
-
* {@link
|
|
2814
|
+
* {@link /v8/certs/:id}
|
|
2597
2815
|
*/
|
|
2598
|
-
async function getCertById({ pathParams: { id }, queryParams, config = {}
|
|
2816
|
+
async function getCertById({ pathParams: { id }, queryParams, config = {} }) {
|
|
2599
2817
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2600
2818
|
if (!id) {
|
|
2601
2819
|
throw new Error(`Missing required path parameter: id`);
|
|
2602
2820
|
}
|
|
2603
|
-
const data = await request({ method: 'GET', url:
|
|
2821
|
+
const data = await request({ method: 'GET', url: `/v8/certs/${id}`, queryParams, ...requestConfig });
|
|
2604
2822
|
return data;
|
|
2605
2823
|
}
|
|
2606
2824
|
/**
|
|
2607
2825
|
* @description Remove cert
|
|
2608
2826
|
* @summary Remove cert
|
|
2609
|
-
* {@link
|
|
2827
|
+
* {@link /v8/certs/:id}
|
|
2610
2828
|
*/
|
|
2611
|
-
async function removeCert({ pathParams: { id }, queryParams, config = {}
|
|
2829
|
+
async function removeCert({ pathParams: { id }, queryParams, config = {} }) {
|
|
2612
2830
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2613
2831
|
if (!id) {
|
|
2614
2832
|
throw new Error(`Missing required path parameter: id`);
|
|
2615
2833
|
}
|
|
2616
|
-
const data = await request({ method: 'DELETE', url:
|
|
2834
|
+
const data = await request({ method: 'DELETE', url: `/v8/certs/${id}`, queryParams, ...requestConfig });
|
|
2617
2835
|
return data;
|
|
2618
2836
|
}
|
|
2619
2837
|
/**
|
|
2620
2838
|
* @description Issue a new cert
|
|
2621
2839
|
* @summary Issue a new cert
|
|
2622
|
-
* {@link
|
|
2840
|
+
* {@link /v8/certs}
|
|
2623
2841
|
*/
|
|
2624
|
-
async function issueCert({ queryParams, config = {}
|
|
2842
|
+
async function issueCert({ queryParams, config = {} }) {
|
|
2625
2843
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2626
|
-
const data = await request({
|
|
2844
|
+
const data = await request({
|
|
2845
|
+
method: 'POST',
|
|
2846
|
+
url: `/v8/certs`,
|
|
2847
|
+
queryParams,
|
|
2848
|
+
...requestConfig,
|
|
2849
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2850
|
+
});
|
|
2627
2851
|
return data;
|
|
2628
2852
|
}
|
|
2629
2853
|
/**
|
|
2630
2854
|
* @description Upload a cert
|
|
2631
2855
|
* @summary Upload a cert
|
|
2632
|
-
* {@link
|
|
2856
|
+
* {@link /v8/certs}
|
|
2633
2857
|
*/
|
|
2634
|
-
async function uploadCert({ queryParams, config = {}
|
|
2858
|
+
async function uploadCert({ queryParams, config = {} }) {
|
|
2635
2859
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2636
|
-
const data = await request({
|
|
2860
|
+
const data = await request({
|
|
2861
|
+
method: 'PUT',
|
|
2862
|
+
url: `/v8/certs`,
|
|
2863
|
+
queryParams,
|
|
2864
|
+
...requestConfig,
|
|
2865
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2866
|
+
});
|
|
2637
2867
|
return data;
|
|
2638
2868
|
}
|
|
2639
2869
|
/**
|
|
2640
2870
|
* @description Allows to retrieve the file structure of the source code of a deployment by supplying the deployment unique identifier. If the deployment was created with the Vercel CLI or the API directly with the `files` key, it will have a file tree that can be retrievable.
|
|
2641
2871
|
* @summary List Deployment Files
|
|
2642
|
-
* {@link
|
|
2872
|
+
* {@link /v6/deployments/:id/files}
|
|
2643
2873
|
*/
|
|
2644
|
-
async function listDeploymentFiles({ pathParams: { id }, queryParams, config = {}
|
|
2874
|
+
async function listDeploymentFiles({ pathParams: { id }, queryParams, config = {} }) {
|
|
2645
2875
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2646
2876
|
if (!id) {
|
|
2647
2877
|
throw new Error(`Missing required path parameter: id`);
|
|
2648
2878
|
}
|
|
2649
|
-
const data = await request({ method: 'GET', url:
|
|
2879
|
+
const data = await request({ method: 'GET', url: `/v6/deployments/${id}/files`, queryParams, ...requestConfig });
|
|
2650
2880
|
return data;
|
|
2651
2881
|
}
|
|
2652
2882
|
/**
|
|
2653
2883
|
* @description Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain a JSON response containing the contents of the file encoded as base64.
|
|
2654
2884
|
* @summary Get Deployment File Contents
|
|
2655
|
-
* {@link
|
|
2885
|
+
* {@link /v8/deployments/:id/files/:fileId}
|
|
2656
2886
|
*/
|
|
2657
|
-
async function getDeploymentFileContents({ pathParams: { id, fileId }, queryParams, config = {}
|
|
2887
|
+
async function getDeploymentFileContents({ pathParams: { id, fileId }, queryParams, config = {} }) {
|
|
2658
2888
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2659
2889
|
if (!id) {
|
|
2660
2890
|
throw new Error(`Missing required path parameter: id`);
|
|
@@ -2662,273 +2892,285 @@ async function getDeploymentFileContents({ pathParams: { id, fileId }, queryPara
|
|
|
2662
2892
|
if (!fileId) {
|
|
2663
2893
|
throw new Error(`Missing required path parameter: fileId`);
|
|
2664
2894
|
}
|
|
2665
|
-
const data = await request({ method: 'GET', url:
|
|
2895
|
+
const data = await request({ method: 'GET', url: `/v8/deployments/${id}/files/${fileId}`, queryParams, ...requestConfig });
|
|
2666
2896
|
return data;
|
|
2667
2897
|
}
|
|
2668
2898
|
/**
|
|
2669
2899
|
* @description List deployments under the authenticated user or team. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
|
|
2670
2900
|
* @summary List deployments
|
|
2671
|
-
* {@link
|
|
2901
|
+
* {@link /v6/deployments}
|
|
2672
2902
|
*/
|
|
2673
|
-
async function getDeployments({ queryParams, config = {}
|
|
2903
|
+
async function getDeployments({ queryParams, config = {} }) {
|
|
2674
2904
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2675
|
-
const data = await request({ method: 'GET', url:
|
|
2905
|
+
const data = await request({ method: 'GET', url: `/v6/deployments`, queryParams, ...requestConfig });
|
|
2676
2906
|
return data;
|
|
2677
2907
|
}
|
|
2678
2908
|
/**
|
|
2679
2909
|
* @description 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.
|
|
2680
2910
|
* @summary Delete a Deployment
|
|
2681
|
-
* {@link
|
|
2911
|
+
* {@link /v13/deployments/:id}
|
|
2682
2912
|
*/
|
|
2683
|
-
async function deleteDeployment({ pathParams: { id }, queryParams, config = {}
|
|
2913
|
+
async function deleteDeployment({ pathParams: { id }, queryParams, config = {} }) {
|
|
2684
2914
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2685
2915
|
if (!id) {
|
|
2686
2916
|
throw new Error(`Missing required path parameter: id`);
|
|
2687
2917
|
}
|
|
2688
|
-
const data = await request({ method: 'DELETE', url:
|
|
2918
|
+
const data = await request({ method: 'DELETE', url: `/v13/deployments/${id}`, queryParams, ...requestConfig });
|
|
2689
2919
|
return data;
|
|
2690
2920
|
}
|
|
2691
2921
|
/**
|
|
2692
2922
|
* @description Retrieves the active Vercel secrets for the authenticated user or team. By default it returns 20 secrets. The rest can be retrieved using the pagination options. The body will contain an entry for each secret.
|
|
2693
2923
|
* @summary List secrets
|
|
2694
|
-
* {@link
|
|
2924
|
+
* {@link /v3/secrets}
|
|
2695
2925
|
*/
|
|
2696
|
-
async function getSecrets({ queryParams, config = {}
|
|
2926
|
+
async function getSecrets({ queryParams, config = {} }) {
|
|
2697
2927
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2698
|
-
const data = await request({ method: 'GET', url:
|
|
2928
|
+
const data = await request({ method: 'GET', url: `/v3/secrets`, queryParams, ...requestConfig });
|
|
2699
2929
|
return data;
|
|
2700
2930
|
}
|
|
2701
2931
|
/**
|
|
2702
2932
|
* @description Allows to create a new secret.
|
|
2703
2933
|
* @summary Create a new secret
|
|
2704
|
-
* {@link
|
|
2934
|
+
* {@link /v2/secrets/:name}
|
|
2705
2935
|
*/
|
|
2706
|
-
async function createSecret({ pathParams: { name }, queryParams, config = {}
|
|
2936
|
+
async function createSecret({ pathParams: { name }, queryParams, config = {} }) {
|
|
2707
2937
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2708
2938
|
if (!name) {
|
|
2709
2939
|
throw new Error(`Missing required path parameter: name`);
|
|
2710
2940
|
}
|
|
2711
|
-
const data = await request({
|
|
2941
|
+
const data = await request({
|
|
2942
|
+
method: 'POST',
|
|
2943
|
+
url: `/v2/secrets/${name}`,
|
|
2944
|
+
queryParams,
|
|
2945
|
+
...requestConfig,
|
|
2946
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2947
|
+
});
|
|
2712
2948
|
return data;
|
|
2713
2949
|
}
|
|
2714
2950
|
/**
|
|
2715
2951
|
* @description Enables to edit the name of a secret. The name has to be unique to the user or team’s secrets.
|
|
2716
2952
|
* @summary Change secret name
|
|
2717
|
-
* {@link
|
|
2953
|
+
* {@link /v2/secrets/:name}
|
|
2718
2954
|
*/
|
|
2719
|
-
async function renameSecret({ pathParams: { name }, queryParams, config = {}
|
|
2955
|
+
async function renameSecret({ pathParams: { name }, queryParams, config = {} }) {
|
|
2720
2956
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2721
2957
|
if (!name) {
|
|
2722
2958
|
throw new Error(`Missing required path parameter: name`);
|
|
2723
2959
|
}
|
|
2724
|
-
const data = await request({
|
|
2960
|
+
const data = await request({
|
|
2961
|
+
method: 'PATCH',
|
|
2962
|
+
url: `/v2/secrets/${name}`,
|
|
2963
|
+
queryParams,
|
|
2964
|
+
...requestConfig,
|
|
2965
|
+
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2966
|
+
});
|
|
2725
2967
|
return data;
|
|
2726
2968
|
}
|
|
2727
2969
|
/**
|
|
2728
2970
|
* @description Retrieves the information for a specific secret by passing either the secret id or name in the URL.
|
|
2729
2971
|
* @summary Get a single secret
|
|
2730
|
-
* {@link
|
|
2972
|
+
* {@link /v3/secrets/:idOrName}
|
|
2731
2973
|
*/
|
|
2732
|
-
async function getSecret({ pathParams: { idOrName }, queryParams, config = {}
|
|
2974
|
+
async function getSecret({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
2733
2975
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2734
2976
|
if (!idOrName) {
|
|
2735
2977
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
2736
2978
|
}
|
|
2737
|
-
const data = await request({ method: 'GET', url:
|
|
2979
|
+
const data = await request({ method: 'GET', url: `/v3/secrets/${idOrName}`, queryParams, ...requestConfig });
|
|
2738
2980
|
return data;
|
|
2739
2981
|
}
|
|
2740
2982
|
/**
|
|
2741
2983
|
* @description This deletes the user or team’s secret defined in the URL.
|
|
2742
2984
|
* @summary Delete a secret
|
|
2743
|
-
* {@link
|
|
2985
|
+
* {@link /v2/secrets/:idOrName}
|
|
2744
2986
|
*/
|
|
2745
|
-
async function deleteSecret({ pathParams: { idOrName }, queryParams, config = {}
|
|
2987
|
+
async function deleteSecret({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
2746
2988
|
const { client: request = fetcher_1.default, ...requestConfig } = config;
|
|
2747
2989
|
if (!idOrName) {
|
|
2748
2990
|
throw new Error(`Missing required path parameter: idOrName`);
|
|
2749
2991
|
}
|
|
2750
|
-
const data = await request({ method: 'DELETE', url:
|
|
2992
|
+
const data = await request({ method: 'DELETE', url: `/v2/secrets/${idOrName}`, queryParams, ...requestConfig });
|
|
2751
2993
|
return data;
|
|
2752
2994
|
}
|
|
2753
2995
|
exports.operationsByPath = {
|
|
2754
|
-
'GET
|
|
2755
|
-
'POST
|
|
2756
|
-
'DELETE
|
|
2757
|
-
'GET
|
|
2758
|
-
'GET
|
|
2759
|
-
'POST
|
|
2760
|
-
'GET
|
|
2761
|
-
'POST
|
|
2762
|
-
'GET
|
|
2763
|
-
'PATCH
|
|
2764
|
-
'DELETE
|
|
2765
|
-
'POST
|
|
2766
|
-
'GET
|
|
2767
|
-
'PUT
|
|
2768
|
-
'GET
|
|
2769
|
-
'POST
|
|
2770
|
-
'POST
|
|
2771
|
-
'GET
|
|
2772
|
-
'GET
|
|
2773
|
-
'PATCH
|
|
2774
|
-
'POST
|
|
2775
|
-
'DELETE
|
|
2776
|
-
'PATCH
|
|
2777
|
-
'PATCH
|
|
2778
|
-
'GET
|
|
2779
|
-
'PATCH
|
|
2780
|
-
'GET
|
|
2781
|
-
'POST
|
|
2782
|
-
'PATCH
|
|
2783
|
-
'POST
|
|
2784
|
-
'GET
|
|
2785
|
-
'GET
|
|
2786
|
-
'GET
|
|
2787
|
-
'POST
|
|
2788
|
-
'PATCH
|
|
2789
|
-
'DELETE
|
|
2790
|
-
'GET
|
|
2791
|
-
'GET
|
|
2792
|
-
'GET
|
|
2793
|
-
'GET
|
|
2794
|
-
'POST
|
|
2795
|
-
'PATCH
|
|
2796
|
-
'DELETE
|
|
2797
|
-
'GET
|
|
2798
|
-
'POST
|
|
2799
|
-
'GET
|
|
2800
|
-
'PUT
|
|
2801
|
-
'DELETE
|
|
2802
|
-
'GET
|
|
2803
|
-
'PATCH
|
|
2804
|
-
'GET
|
|
2805
|
-
'POST
|
|
2806
|
-
'DELETE
|
|
2807
|
-
'GET
|
|
2808
|
-
'GET
|
|
2809
|
-
'DELETE
|
|
2810
|
-
'GET
|
|
2811
|
-
'POST
|
|
2812
|
-
'GET
|
|
2813
|
-
'GET
|
|
2814
|
-
'GET
|
|
2815
|
-
'GET
|
|
2816
|
-
'GET
|
|
2817
|
-
'POST
|
|
2818
|
-
'GET
|
|
2819
|
-
'GET
|
|
2820
|
-
'DELETE
|
|
2821
|
-
'PUT
|
|
2822
|
-
'POST
|
|
2823
|
-
'POST
|
|
2824
|
-
'GET
|
|
2825
|
-
'POST
|
|
2826
|
-
'POST
|
|
2827
|
-
'PUT
|
|
2828
|
-
'PUT
|
|
2829
|
-
'GET
|
|
2830
|
-
'GET
|
|
2831
|
-
'DELETE
|
|
2832
|
-
'POST
|
|
2833
|
-
'GET
|
|
2834
|
-
'POST
|
|
2835
|
-
'DELETE
|
|
2836
|
-
'GET
|
|
2837
|
-
'POST
|
|
2838
|
-
'PATCH
|
|
2839
|
-
'DELETE
|
|
2840
|
-
'PUT
|
|
2841
|
-
'GET
|
|
2842
|
-
'POST
|
|
2843
|
-
'DELETE
|
|
2844
|
-
'GET
|
|
2845
|
-
'POST
|
|
2846
|
-
'GET
|
|
2847
|
-
'PATCH
|
|
2848
|
-
'DELETE
|
|
2849
|
-
'POST
|
|
2850
|
-
'GET
|
|
2851
|
-
'GET
|
|
2852
|
-
'PATCH
|
|
2853
|
-
'DELETE
|
|
2854
|
-
'GET
|
|
2855
|
-
'GET
|
|
2856
|
-
'PATCH
|
|
2857
|
-
'DELETE
|
|
2858
|
-
'POST
|
|
2859
|
-
'POST
|
|
2860
|
-
'POST
|
|
2861
|
-
'GET
|
|
2862
|
-
'POST
|
|
2863
|
-
'GET
|
|
2864
|
-
'DELETE
|
|
2865
|
-
'PATCH
|
|
2866
|
-
'GET
|
|
2867
|
-
'GET
|
|
2868
|
-
'DELETE
|
|
2869
|
-
'PATCH
|
|
2870
|
-
'GET
|
|
2871
|
-
'POST
|
|
2872
|
-
'POST
|
|
2873
|
-
'POST
|
|
2874
|
-
'PUT
|
|
2875
|
-
'PATCH
|
|
2876
|
-
'POST
|
|
2877
|
-
'GET
|
|
2878
|
-
'POST
|
|
2879
|
-
'POST
|
|
2880
|
-
'POST
|
|
2881
|
-
'PUT
|
|
2882
|
-
'PATCH
|
|
2883
|
-
'GET
|
|
2884
|
-
'GET
|
|
2885
|
-
'GET
|
|
2886
|
-
'POST
|
|
2887
|
-
'DELETE
|
|
2888
|
-
'GET
|
|
2889
|
-
'POST
|
|
2890
|
-
'POST
|
|
2891
|
-
'GET
|
|
2892
|
-
'POST
|
|
2893
|
-
'PATCH
|
|
2894
|
-
'DELETE
|
|
2895
|
-
'GET
|
|
2896
|
-
'PATCH
|
|
2897
|
-
'GET
|
|
2898
|
-
'POST
|
|
2899
|
-
'DELETE
|
|
2900
|
-
'DELETE
|
|
2901
|
-
'POST
|
|
2902
|
-
'GET
|
|
2903
|
-
'POST
|
|
2904
|
-
'GET
|
|
2905
|
-
'DELETE
|
|
2906
|
-
'GET
|
|
2907
|
-
'DELETE
|
|
2908
|
-
'POST
|
|
2909
|
-
'GET
|
|
2910
|
-
'GET
|
|
2911
|
-
'DELETE
|
|
2912
|
-
'GET
|
|
2913
|
-
'POST
|
|
2914
|
-
'GET
|
|
2915
|
-
'GET
|
|
2916
|
-
'DELETE
|
|
2917
|
-
'PATCH
|
|
2918
|
-
'GET certs': listCerts,
|
|
2919
|
-
'GET
|
|
2920
|
-
'DELETE
|
|
2921
|
-
'POST
|
|
2922
|
-
'PUT
|
|
2923
|
-
'GET
|
|
2924
|
-
'GET
|
|
2925
|
-
'GET
|
|
2926
|
-
'DELETE
|
|
2927
|
-
'GET
|
|
2928
|
-
'POST
|
|
2929
|
-
'PATCH
|
|
2930
|
-
'GET
|
|
2931
|
-
'DELETE
|
|
2996
|
+
'GET /v1/access-groups/{idOrName}': readAccessGroup,
|
|
2997
|
+
'POST /v1/access-groups/{idOrName}': updateAccessGroup,
|
|
2998
|
+
'DELETE /v1/access-groups/{idOrName}': deleteAccessGroup,
|
|
2999
|
+
'GET /v1/access-groups/{idOrName}/members': listAccessGroupMembers,
|
|
3000
|
+
'GET /v1/access-groups': listAccessGroups,
|
|
3001
|
+
'POST /v1/access-groups': createAccessGroup,
|
|
3002
|
+
'GET /v1/access-groups/{idOrName}/projects': listAccessGroupProjects,
|
|
3003
|
+
'POST /v1/access-groups/{accessGroupIdOrName}/projects': createAccessGroupProject,
|
|
3004
|
+
'GET /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}': readAccessGroupProject,
|
|
3005
|
+
'PATCH /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}': updateAccessGroupProject,
|
|
3006
|
+
'DELETE /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}': deleteAccessGroupProject,
|
|
3007
|
+
'POST /v8/artifacts/events': recordEvents,
|
|
3008
|
+
'GET /v8/artifacts/status': status,
|
|
3009
|
+
'PUT /v8/artifacts/{hash}': uploadArtifact,
|
|
3010
|
+
'GET /v8/artifacts/{hash}': downloadArtifact,
|
|
3011
|
+
'POST /v8/artifacts': artifactQuery,
|
|
3012
|
+
'POST /v1/deployments/{deploymentId}/checks': createCheck,
|
|
3013
|
+
'GET /v1/deployments/{deploymentId}/checks': getAllChecks,
|
|
3014
|
+
'GET /v1/deployments/{deploymentId}/checks/{checkId}': getCheck,
|
|
3015
|
+
'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': updateCheck,
|
|
3016
|
+
'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': rerequestCheck,
|
|
3017
|
+
'DELETE /data-cache/purge-all': purgeAllDataCache,
|
|
3018
|
+
'PATCH /data-cache/billing-settings': updateDataCacheBillingSettings,
|
|
3019
|
+
'PATCH /v1/data-cache/projects/{projectId}': updateProjectDataCache,
|
|
3020
|
+
'GET /v3/deployments/{idOrUrl}/events': getDeploymentEvents,
|
|
3021
|
+
'PATCH /v1/deployments/{deploymentId}/integrations/{integrationConfigurationId}/resources/{resourceId}/actions/{action}': updateIntegrationDeploymentAction,
|
|
3022
|
+
'GET /v13/deployments/{idOrUrl}': getDeployment,
|
|
3023
|
+
'POST /v13/deployments': createDeployment,
|
|
3024
|
+
'PATCH /v12/deployments/{id}/cancel': cancelDeployment,
|
|
3025
|
+
'POST /v5/domains/buy': buyDomain,
|
|
3026
|
+
'GET /v4/domains/price': checkDomainPrice,
|
|
3027
|
+
'GET /v4/domains/status': checkDomainStatus,
|
|
3028
|
+
'GET /v4/domains/{domain}/records': getRecords,
|
|
3029
|
+
'POST /v2/domains/{domain}/records': createRecord,
|
|
3030
|
+
'PATCH /v1/domains/records/{recordId}': updateRecord,
|
|
3031
|
+
'DELETE /v2/domains/{domain}/records/{recordId}': removeRecord,
|
|
3032
|
+
'GET /v1/domains/{domain}/registry': getDomainTransfer,
|
|
3033
|
+
'GET /v6/domains/{domain}/config': getDomainConfig,
|
|
3034
|
+
'GET /v5/domains/{domain}': getDomain,
|
|
3035
|
+
'GET /v5/domains': getDomains,
|
|
3036
|
+
'POST /v7/domains': createOrTransferDomain,
|
|
3037
|
+
'PATCH /v3/domains/{domain}': patchDomain,
|
|
3038
|
+
'DELETE /v6/domains/{domain}': deleteDomain,
|
|
3039
|
+
'GET /v1/edge-config': getEdgeConfigs,
|
|
3040
|
+
'POST /v1/edge-config': createEdgeConfig,
|
|
3041
|
+
'GET /v1/edge-config/{edgeConfigId}': getEdgeConfig,
|
|
3042
|
+
'PUT /v1/edge-config/{edgeConfigId}': updateEdgeConfig,
|
|
3043
|
+
'DELETE /v1/edge-config/{edgeConfigId}': deleteEdgeConfig,
|
|
3044
|
+
'GET /v1/edge-config/{edgeConfigId}/items': getEdgeConfigItems,
|
|
3045
|
+
'PATCH /v1/edge-config/{edgeConfigId}/items': patchEdgeConfigItems,
|
|
3046
|
+
'GET /v1/edge-config/{edgeConfigId}/schema': getEdgeConfigSchema,
|
|
3047
|
+
'POST /v1/edge-config/{edgeConfigId}/schema': patchEdgeConfigSchema,
|
|
3048
|
+
'DELETE /v1/edge-config/{edgeConfigId}/schema': deleteEdgeConfigSchema,
|
|
3049
|
+
'GET /v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}': getEdgeConfigItem,
|
|
3050
|
+
'GET /v1/edge-config/{edgeConfigId}/tokens': getEdgeConfigTokens,
|
|
3051
|
+
'DELETE /v1/edge-config/{edgeConfigId}/tokens': deleteEdgeConfigTokens,
|
|
3052
|
+
'GET /v1/edge-config/{edgeConfigId}/token/{token}': getEdgeConfigToken,
|
|
3053
|
+
'POST /v1/edge-config/{edgeConfigId}/token': createEdgeConfigToken,
|
|
3054
|
+
'GET /v1/edge-config/{edgeConfigId}/backups/{edgeConfigBackupVersionId}': getEdgeConfigBackup,
|
|
3055
|
+
'GET /v1/edge-config/{edgeConfigId}/backups': getEdgeConfigBackups,
|
|
3056
|
+
'GET /v3/events': listUserEvents,
|
|
3057
|
+
'GET /v1/installations/{integrationConfigurationId}/account': getAccountInfo,
|
|
3058
|
+
'GET /v1/installations/{integrationConfigurationId}/member/{memberId}': getMember,
|
|
3059
|
+
'POST /v1/installations/{integrationConfigurationId}/events': createEvent,
|
|
3060
|
+
'GET /v1/installations/{integrationConfigurationId}/resources': getIntegrationResources,
|
|
3061
|
+
'GET /v1/installations/{integrationConfigurationId}/resources/{resourceId}': getIntegrationResource,
|
|
3062
|
+
'DELETE /v1/installations/{integrationConfigurationId}/resources/{resourceId}': deleteIntegrationResource,
|
|
3063
|
+
'PUT /v1/installations/{integrationConfigurationId}/resources/{resourceId}': importResource,
|
|
3064
|
+
'POST /v1/installations/{integrationConfigurationId}/billing': submitBillingData,
|
|
3065
|
+
'POST /v1/installations/{integrationConfigurationId}/billing/invoices': submitInvoice,
|
|
3066
|
+
'GET /v1/installations/{integrationConfigurationId}/billing/invoices/{invoiceId}': getInvoice,
|
|
3067
|
+
'POST /v1/installations/{integrationConfigurationId}/billing/invoices/{invoiceId}/actions': updateInvoice,
|
|
3068
|
+
'POST /v1/installations/{integrationConfigurationId}/billing/balance': submitPrepaymentBalances,
|
|
3069
|
+
'PUT /v1/installations/{integrationConfigurationId}/products/{integrationProductIdOrSlug}/resources/{resourceId}/secrets': updateResourceSecrets,
|
|
3070
|
+
'PUT /v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets': updateResourceSecretsById,
|
|
3071
|
+
'GET /v1/integrations/configurations': getConfigurations,
|
|
3072
|
+
'GET /v1/integrations/configuration/{id}': getConfiguration,
|
|
3073
|
+
'DELETE /v1/integrations/configuration/{id}': deleteConfiguration,
|
|
3074
|
+
'POST /v1/integrations/sso/token': exchangeSsoToken,
|
|
3075
|
+
'GET /v2/integrations/log-drains': getIntegrationLogDrains,
|
|
3076
|
+
'POST /v2/integrations/log-drains': createLogDrain,
|
|
3077
|
+
'DELETE /v1/integrations/log-drains/{id}': deleteIntegrationLogDrain,
|
|
3078
|
+
'GET /v1/projects/{projectId}/deployments/{deploymentId}/runtime-logs': getRuntimeLogs,
|
|
3079
|
+
'POST /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items': createExperimentationItem,
|
|
3080
|
+
'PATCH /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}': updateExperimentationItem,
|
|
3081
|
+
'DELETE /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}': deleteExperimentationItem,
|
|
3082
|
+
'PUT /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config': updateExperimentationEdgeConfig,
|
|
3083
|
+
'GET /v1/projects/{idOrName}/members': getProjectMembers,
|
|
3084
|
+
'POST /v1/projects/{idOrName}/members': addProjectMember,
|
|
3085
|
+
'DELETE /v1/projects/{idOrName}/members/{uid}': removeProjectMember,
|
|
3086
|
+
'GET /v10/projects': getProjects,
|
|
3087
|
+
'POST /v11/projects': createProject,
|
|
3088
|
+
'GET /v9/projects/{idOrName}': getProject,
|
|
3089
|
+
'PATCH /v9/projects/{idOrName}': updateProject,
|
|
3090
|
+
'DELETE /v9/projects/{idOrName}': deleteProject,
|
|
3091
|
+
'POST /v9/projects/{idOrName}/custom-environments': createCustomEnvironment,
|
|
3092
|
+
'GET /v9/projects/{idOrName}/custom-environments': listCustomEnvironments,
|
|
3093
|
+
'GET /v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}': getCustomEnvironment,
|
|
3094
|
+
'PATCH /v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}': updateCustomEnvironment,
|
|
3095
|
+
'DELETE /v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}': removeCustomEnvironment,
|
|
3096
|
+
'GET /v9/projects/{idOrName}/domains': getProjectDomains,
|
|
3097
|
+
'GET /v9/projects/{idOrName}/domains/{domain}': getProjectDomain,
|
|
3098
|
+
'PATCH /v9/projects/{idOrName}/domains/{domain}': updateProjectDomain,
|
|
3099
|
+
'DELETE /v9/projects/{idOrName}/domains/{domain}': removeProjectDomain,
|
|
3100
|
+
'POST /v10/projects/{idOrName}/domains': addProjectDomain,
|
|
3101
|
+
'POST /v1/projects/{idOrName}/domains/{domain}/move': moveProjectDomain,
|
|
3102
|
+
'POST /v9/projects/{idOrName}/domains/{domain}/verify': verifyProjectDomain,
|
|
3103
|
+
'GET /v10/projects/{idOrName}/env': filterProjectEnvs,
|
|
3104
|
+
'POST /v10/projects/{idOrName}/env': createProjectEnv,
|
|
3105
|
+
'GET /v1/projects/{idOrName}/env/{id}': getProjectEnv,
|
|
3106
|
+
'DELETE /v9/projects/{idOrName}/env/{id}': removeProjectEnv,
|
|
3107
|
+
'PATCH /v9/projects/{idOrName}/env/{id}': editProjectEnv,
|
|
3108
|
+
'GET /v1/projects/{idOrName}/rolling-release/billing': getRollingReleaseBillingStatus,
|
|
3109
|
+
'GET /v1/projects/{idOrName}/rolling-release/config': getRollingReleaseConfig,
|
|
3110
|
+
'DELETE /v1/projects/{idOrName}/rolling-release/config': deleteRollingReleaseConfig,
|
|
3111
|
+
'PATCH /v1/projects/{idOrName}/rolling-release/config': updateRollingReleaseConfig,
|
|
3112
|
+
'GET /v1/projects/{idOrName}/rolling-release': getRollingRelease,
|
|
3113
|
+
'POST /v1/projects/{idOrName}/rolling-release/approve-stage': approveRollingReleaseStage,
|
|
3114
|
+
'POST /v1/projects/{idOrName}/rolling-release/complete': completeRollingRelease,
|
|
3115
|
+
'POST /projects/{idOrName}/transfer-request': createProjectTransferRequest,
|
|
3116
|
+
'PUT /projects/transfer-request/{code}': acceptProjectTransferRequest,
|
|
3117
|
+
'PATCH /v1/projects/{idOrName}/protection-bypass': updateProjectProtectionBypass,
|
|
3118
|
+
'POST /v10/projects/{projectId}/promote/{deploymentId}': requestPromote,
|
|
3119
|
+
'GET /v1/projects/{projectId}/promote/aliases': listPromoteAliases,
|
|
3120
|
+
'POST /v1/projects/{projectId}/pause': pauseProject,
|
|
3121
|
+
'POST /v1/projects/{projectId}/unpause': unpauseProject,
|
|
3122
|
+
'POST /v1/security/attack-mode': updateAttackChallengeMode,
|
|
3123
|
+
'PUT /v1/security/firewall/config': putFirewallConfig,
|
|
3124
|
+
'PATCH /v1/security/firewall/config': updateFirewallConfig,
|
|
3125
|
+
'GET /v1/security/firewall/config/{configVersion}': getFirewallConfig,
|
|
3126
|
+
'GET /v1/security/firewall/attack-status': getActiveAttackStatus,
|
|
3127
|
+
'GET /v1/security/firewall/bypass': getBypassIp,
|
|
3128
|
+
'POST /v1/security/firewall/bypass': addBypassIp,
|
|
3129
|
+
'DELETE /v1/security/firewall/bypass': removeBypassIp,
|
|
3130
|
+
'GET /v3/teams/{teamId}/members': getTeamMembers,
|
|
3131
|
+
'POST /v1/teams/{teamId}/members': inviteUserToTeam,
|
|
3132
|
+
'POST /v1/teams/{teamId}/request': requestAccessToTeam,
|
|
3133
|
+
'GET /v1/teams/{teamId}/request/{userId}': getTeamAccessRequest,
|
|
3134
|
+
'POST /v1/teams/{teamId}/members/teams/join': joinTeam,
|
|
3135
|
+
'PATCH /v1/teams/{teamId}/members/{uid}': updateTeamMember,
|
|
3136
|
+
'DELETE /v1/teams/{teamId}/members/{uid}': removeTeamMember,
|
|
3137
|
+
'GET /v2/teams/{teamId}': getTeam,
|
|
3138
|
+
'PATCH /v2/teams/{teamId}': patchTeam,
|
|
3139
|
+
'GET /v2/teams': getTeams,
|
|
3140
|
+
'POST /v1/teams': createTeam,
|
|
3141
|
+
'DELETE /v1/teams/{teamId}': deleteTeam,
|
|
3142
|
+
'DELETE /v1/teams/{teamId}/invites/{inviteId}': deleteTeamInviteCode,
|
|
3143
|
+
'POST /v2/files': uploadFile,
|
|
3144
|
+
'GET /v5/user/tokens': listAuthTokens,
|
|
3145
|
+
'POST /v3/user/tokens': createAuthToken,
|
|
3146
|
+
'GET /v5/user/tokens/{tokenId}': getAuthToken,
|
|
3147
|
+
'DELETE /v3/user/tokens/{tokenId}': deleteAuthToken,
|
|
3148
|
+
'GET /v2/user': getAuthUser,
|
|
3149
|
+
'DELETE /v1/user': requestDelete,
|
|
3150
|
+
'POST /v1/webhooks': createWebhook,
|
|
3151
|
+
'GET /v1/webhooks': getWebhooks,
|
|
3152
|
+
'GET /v1/webhooks/{id}': getWebhook,
|
|
3153
|
+
'DELETE /v1/webhooks/{id}': deleteWebhook,
|
|
3154
|
+
'GET /v2/deployments/{id}/aliases': listDeploymentAliases,
|
|
3155
|
+
'POST /v2/deployments/{id}/aliases': assignAlias,
|
|
3156
|
+
'GET /v4/aliases': listAliases,
|
|
3157
|
+
'GET /v4/aliases/{idOrAlias}': getAlias,
|
|
3158
|
+
'DELETE /v2/aliases/{aliasId}': deleteAlias,
|
|
3159
|
+
'PATCH /aliases/{id}/protection-bypass': patchUrlProtectionBypass,
|
|
3160
|
+
'GET /certs': listCerts,
|
|
3161
|
+
'GET /v8/certs/{id}': getCertById,
|
|
3162
|
+
'DELETE /v8/certs/{id}': removeCert,
|
|
3163
|
+
'POST /v8/certs': issueCert,
|
|
3164
|
+
'PUT /v8/certs': uploadCert,
|
|
3165
|
+
'GET /v6/deployments/{id}/files': listDeploymentFiles,
|
|
3166
|
+
'GET /v8/deployments/{id}/files/{fileId}': getDeploymentFileContents,
|
|
3167
|
+
'GET /v6/deployments': getDeployments,
|
|
3168
|
+
'DELETE /v13/deployments/{id}': deleteDeployment,
|
|
3169
|
+
'GET /v3/secrets': getSecrets,
|
|
3170
|
+
'POST /v2/secrets/{name}': createSecret,
|
|
3171
|
+
'PATCH /v2/secrets/{name}': renameSecret,
|
|
3172
|
+
'GET /v3/secrets/{idOrName}': getSecret,
|
|
3173
|
+
'DELETE /v2/secrets/{idOrName}': deleteSecret
|
|
2932
3174
|
};
|
|
2933
3175
|
exports.operationsByTag = {
|
|
2934
3176
|
accessGroups: {
|
|
@@ -2942,21 +3184,21 @@ exports.operationsByTag = {
|
|
|
2942
3184
|
createAccessGroupProject,
|
|
2943
3185
|
readAccessGroupProject,
|
|
2944
3186
|
updateAccessGroupProject,
|
|
2945
|
-
deleteAccessGroupProject
|
|
3187
|
+
deleteAccessGroupProject
|
|
2946
3188
|
},
|
|
2947
3189
|
artifacts: {
|
|
2948
3190
|
recordEvents,
|
|
2949
3191
|
status,
|
|
2950
3192
|
uploadArtifact,
|
|
2951
3193
|
downloadArtifact,
|
|
2952
|
-
artifactQuery
|
|
3194
|
+
artifactQuery
|
|
2953
3195
|
},
|
|
2954
3196
|
checks: {
|
|
2955
3197
|
createCheck,
|
|
2956
3198
|
getAllChecks,
|
|
2957
3199
|
getCheck,
|
|
2958
3200
|
updateCheck,
|
|
2959
|
-
rerequestCheck
|
|
3201
|
+
rerequestCheck
|
|
2960
3202
|
},
|
|
2961
3203
|
projects: {
|
|
2962
3204
|
updateProjectDataCache,
|
|
@@ -2983,7 +3225,7 @@ exports.operationsByTag = {
|
|
|
2983
3225
|
requestPromote,
|
|
2984
3226
|
listPromoteAliases,
|
|
2985
3227
|
pauseProject,
|
|
2986
|
-
unpauseProject
|
|
3228
|
+
unpauseProject
|
|
2987
3229
|
},
|
|
2988
3230
|
deployments: {
|
|
2989
3231
|
getDeploymentEvents,
|
|
@@ -2995,13 +3237,13 @@ exports.operationsByTag = {
|
|
|
2995
3237
|
listDeploymentFiles,
|
|
2996
3238
|
getDeploymentFileContents,
|
|
2997
3239
|
getDeployments,
|
|
2998
|
-
deleteDeployment
|
|
3240
|
+
deleteDeployment
|
|
2999
3241
|
},
|
|
3000
3242
|
integrations: {
|
|
3001
3243
|
updateIntegrationDeploymentAction,
|
|
3002
3244
|
getConfigurations,
|
|
3003
3245
|
getConfiguration,
|
|
3004
|
-
deleteConfiguration
|
|
3246
|
+
deleteConfiguration
|
|
3005
3247
|
},
|
|
3006
3248
|
domains: {
|
|
3007
3249
|
buyDomain,
|
|
@@ -3013,13 +3255,13 @@ exports.operationsByTag = {
|
|
|
3013
3255
|
getDomains,
|
|
3014
3256
|
createOrTransferDomain,
|
|
3015
3257
|
patchDomain,
|
|
3016
|
-
deleteDomain
|
|
3258
|
+
deleteDomain
|
|
3017
3259
|
},
|
|
3018
3260
|
dns: {
|
|
3019
3261
|
getRecords,
|
|
3020
3262
|
createRecord,
|
|
3021
3263
|
updateRecord,
|
|
3022
|
-
removeRecord
|
|
3264
|
+
removeRecord
|
|
3023
3265
|
},
|
|
3024
3266
|
edgeConfig: {
|
|
3025
3267
|
getEdgeConfigs,
|
|
@@ -3038,12 +3280,12 @@ exports.operationsByTag = {
|
|
|
3038
3280
|
getEdgeConfigToken,
|
|
3039
3281
|
createEdgeConfigToken,
|
|
3040
3282
|
getEdgeConfigBackup,
|
|
3041
|
-
getEdgeConfigBackups
|
|
3283
|
+
getEdgeConfigBackups
|
|
3042
3284
|
},
|
|
3043
3285
|
user: {
|
|
3044
3286
|
listUserEvents,
|
|
3045
3287
|
getAuthUser,
|
|
3046
|
-
requestDelete
|
|
3288
|
+
requestDelete
|
|
3047
3289
|
},
|
|
3048
3290
|
marketplace: {
|
|
3049
3291
|
getAccountInfo,
|
|
@@ -3064,34 +3306,34 @@ exports.operationsByTag = {
|
|
|
3064
3306
|
createExperimentationItem,
|
|
3065
3307
|
updateExperimentationItem,
|
|
3066
3308
|
deleteExperimentationItem,
|
|
3067
|
-
updateExperimentationEdgeConfig
|
|
3309
|
+
updateExperimentationEdgeConfig
|
|
3068
3310
|
},
|
|
3069
3311
|
authentication: {
|
|
3070
3312
|
exchangeSsoToken,
|
|
3071
3313
|
listAuthTokens,
|
|
3072
3314
|
createAuthToken,
|
|
3073
3315
|
getAuthToken,
|
|
3074
|
-
deleteAuthToken
|
|
3316
|
+
deleteAuthToken
|
|
3075
3317
|
},
|
|
3076
3318
|
logdrains: {
|
|
3077
3319
|
getIntegrationLogDrains,
|
|
3078
3320
|
createLogDrain,
|
|
3079
|
-
deleteIntegrationLogDrain
|
|
3321
|
+
deleteIntegrationLogDrain
|
|
3080
3322
|
},
|
|
3081
3323
|
logs: {
|
|
3082
|
-
getRuntimeLogs
|
|
3324
|
+
getRuntimeLogs
|
|
3083
3325
|
},
|
|
3084
3326
|
projectmembers: {
|
|
3085
3327
|
getProjectMembers,
|
|
3086
3328
|
addProjectMember,
|
|
3087
|
-
removeProjectMember
|
|
3329
|
+
removeProjectMember
|
|
3088
3330
|
},
|
|
3089
3331
|
environment: {
|
|
3090
3332
|
createCustomEnvironment,
|
|
3091
3333
|
listCustomEnvironments,
|
|
3092
3334
|
getCustomEnvironment,
|
|
3093
3335
|
updateCustomEnvironment,
|
|
3094
|
-
removeCustomEnvironment
|
|
3336
|
+
removeCustomEnvironment
|
|
3095
3337
|
},
|
|
3096
3338
|
rollingRelease: {
|
|
3097
3339
|
getRollingReleaseBillingStatus,
|
|
@@ -3100,7 +3342,7 @@ exports.operationsByTag = {
|
|
|
3100
3342
|
updateRollingReleaseConfig,
|
|
3101
3343
|
getRollingRelease,
|
|
3102
3344
|
approveRollingReleaseStage,
|
|
3103
|
-
completeRollingRelease
|
|
3345
|
+
completeRollingRelease
|
|
3104
3346
|
},
|
|
3105
3347
|
security: {
|
|
3106
3348
|
updateAttackChallengeMode,
|
|
@@ -3110,7 +3352,7 @@ exports.operationsByTag = {
|
|
|
3110
3352
|
getActiveAttackStatus,
|
|
3111
3353
|
getBypassIp,
|
|
3112
3354
|
addBypassIp,
|
|
3113
|
-
removeBypassIp
|
|
3355
|
+
removeBypassIp
|
|
3114
3356
|
},
|
|
3115
3357
|
teams: {
|
|
3116
3358
|
getTeamMembers,
|
|
@@ -3125,13 +3367,13 @@ exports.operationsByTag = {
|
|
|
3125
3367
|
getTeams,
|
|
3126
3368
|
createTeam,
|
|
3127
3369
|
deleteTeam,
|
|
3128
|
-
deleteTeamInviteCode
|
|
3370
|
+
deleteTeamInviteCode
|
|
3129
3371
|
},
|
|
3130
3372
|
webhooks: {
|
|
3131
3373
|
createWebhook,
|
|
3132
3374
|
getWebhooks,
|
|
3133
3375
|
getWebhook,
|
|
3134
|
-
deleteWebhook
|
|
3376
|
+
deleteWebhook
|
|
3135
3377
|
},
|
|
3136
3378
|
aliases: {
|
|
3137
3379
|
listDeploymentAliases,
|
|
@@ -3139,42 +3381,62 @@ exports.operationsByTag = {
|
|
|
3139
3381
|
listAliases,
|
|
3140
3382
|
getAlias,
|
|
3141
3383
|
deleteAlias,
|
|
3142
|
-
patchUrlProtectionBypass
|
|
3384
|
+
patchUrlProtectionBypass
|
|
3143
3385
|
},
|
|
3144
3386
|
certs: {
|
|
3145
3387
|
getCertById,
|
|
3146
3388
|
removeCert,
|
|
3147
3389
|
issueCert,
|
|
3148
|
-
uploadCert
|
|
3390
|
+
uploadCert
|
|
3149
3391
|
},
|
|
3150
3392
|
secrets: {
|
|
3151
3393
|
getSecrets,
|
|
3152
3394
|
createSecret,
|
|
3153
3395
|
renameSecret,
|
|
3154
3396
|
getSecret,
|
|
3155
|
-
deleteSecret
|
|
3156
|
-
}
|
|
3397
|
+
deleteSecret
|
|
3398
|
+
}
|
|
3157
3399
|
};
|
|
3158
3400
|
exports.tagDictionary = {
|
|
3159
3401
|
accessGroups: {
|
|
3160
|
-
GET: [
|
|
3402
|
+
GET: [
|
|
3403
|
+
'readAccessGroup',
|
|
3404
|
+
'listAccessGroupMembers',
|
|
3405
|
+
'listAccessGroups',
|
|
3406
|
+
'listAccessGroupProjects',
|
|
3407
|
+
'readAccessGroupProject'
|
|
3408
|
+
],
|
|
3161
3409
|
POST: ['updateAccessGroup', 'createAccessGroup', 'createAccessGroupProject'],
|
|
3162
3410
|
DELETE: ['deleteAccessGroup', 'deleteAccessGroupProject'],
|
|
3163
|
-
PATCH: ['updateAccessGroupProject']
|
|
3411
|
+
PATCH: ['updateAccessGroupProject']
|
|
3164
3412
|
},
|
|
3165
3413
|
artifacts: {
|
|
3166
3414
|
POST: ['recordEvents', 'artifactQuery'],
|
|
3167
3415
|
GET: ['status', 'downloadArtifact'],
|
|
3168
|
-
PUT: ['uploadArtifact']
|
|
3416
|
+
PUT: ['uploadArtifact']
|
|
3169
3417
|
},
|
|
3170
3418
|
checks: {
|
|
3171
3419
|
POST: ['createCheck', 'rerequestCheck'],
|
|
3172
3420
|
GET: ['getAllChecks', 'getCheck'],
|
|
3173
|
-
PATCH: ['updateCheck']
|
|
3421
|
+
PATCH: ['updateCheck']
|
|
3174
3422
|
},
|
|
3175
3423
|
projects: {
|
|
3176
|
-
PATCH: [
|
|
3177
|
-
|
|
3424
|
+
PATCH: [
|
|
3425
|
+
'updateProjectDataCache',
|
|
3426
|
+
'updateProject',
|
|
3427
|
+
'updateProjectDomain',
|
|
3428
|
+
'editProjectEnv',
|
|
3429
|
+
'updateProjectProtectionBypass'
|
|
3430
|
+
],
|
|
3431
|
+
GET: [
|
|
3432
|
+
'getProjects',
|
|
3433
|
+
'getProject',
|
|
3434
|
+
'getProjectDomains',
|
|
3435
|
+
'getProjectDomain',
|
|
3436
|
+
'filterProjectEnvs',
|
|
3437
|
+
'getProjectEnv',
|
|
3438
|
+
'listPromoteAliases'
|
|
3439
|
+
],
|
|
3178
3440
|
POST: [
|
|
3179
3441
|
'createProject',
|
|
3180
3442
|
'addProjectDomain',
|
|
@@ -3184,33 +3446,33 @@ exports.tagDictionary = {
|
|
|
3184
3446
|
'createProjectTransferRequest',
|
|
3185
3447
|
'requestPromote',
|
|
3186
3448
|
'pauseProject',
|
|
3187
|
-
'unpauseProject'
|
|
3449
|
+
'unpauseProject'
|
|
3188
3450
|
],
|
|
3189
3451
|
DELETE: ['deleteProject', 'removeProjectDomain', 'removeProjectEnv'],
|
|
3190
|
-
PUT: ['acceptProjectTransferRequest']
|
|
3452
|
+
PUT: ['acceptProjectTransferRequest']
|
|
3191
3453
|
},
|
|
3192
3454
|
deployments: {
|
|
3193
3455
|
GET: ['getDeploymentEvents', 'getDeployment', 'listDeploymentFiles', 'getDeploymentFileContents', 'getDeployments'],
|
|
3194
3456
|
PATCH: ['updateIntegrationDeploymentAction', 'cancelDeployment'],
|
|
3195
3457
|
POST: ['createDeployment', 'uploadFile'],
|
|
3196
|
-
DELETE: ['deleteDeployment']
|
|
3458
|
+
DELETE: ['deleteDeployment']
|
|
3197
3459
|
},
|
|
3198
3460
|
integrations: {
|
|
3199
3461
|
PATCH: ['updateIntegrationDeploymentAction'],
|
|
3200
3462
|
GET: ['getConfigurations', 'getConfiguration'],
|
|
3201
|
-
DELETE: ['deleteConfiguration']
|
|
3463
|
+
DELETE: ['deleteConfiguration']
|
|
3202
3464
|
},
|
|
3203
3465
|
domains: {
|
|
3204
3466
|
POST: ['buyDomain', 'createOrTransferDomain'],
|
|
3205
3467
|
GET: ['checkDomainPrice', 'checkDomainStatus', 'getDomainTransfer', 'getDomainConfig', 'getDomain', 'getDomains'],
|
|
3206
3468
|
PATCH: ['patchDomain'],
|
|
3207
|
-
DELETE: ['deleteDomain']
|
|
3469
|
+
DELETE: ['deleteDomain']
|
|
3208
3470
|
},
|
|
3209
3471
|
dns: {
|
|
3210
3472
|
GET: ['getRecords'],
|
|
3211
3473
|
POST: ['createRecord'],
|
|
3212
3474
|
PATCH: ['updateRecord'],
|
|
3213
|
-
DELETE: ['removeRecord']
|
|
3475
|
+
DELETE: ['removeRecord']
|
|
3214
3476
|
},
|
|
3215
3477
|
edgeConfig: {
|
|
3216
3478
|
GET: [
|
|
@@ -3222,88 +3484,96 @@ exports.tagDictionary = {
|
|
|
3222
3484
|
'getEdgeConfigTokens',
|
|
3223
3485
|
'getEdgeConfigToken',
|
|
3224
3486
|
'getEdgeConfigBackup',
|
|
3225
|
-
'getEdgeConfigBackups'
|
|
3487
|
+
'getEdgeConfigBackups'
|
|
3226
3488
|
],
|
|
3227
3489
|
POST: ['createEdgeConfig', 'patchEdgeConfigSchema', 'createEdgeConfigToken'],
|
|
3228
3490
|
PUT: ['updateEdgeConfig'],
|
|
3229
3491
|
DELETE: ['deleteEdgeConfig', 'deleteEdgeConfigSchema', 'deleteEdgeConfigTokens'],
|
|
3230
|
-
PATCH: ['patchEdgeConfigItems']
|
|
3492
|
+
PATCH: ['patchEdgeConfigItems']
|
|
3231
3493
|
},
|
|
3232
3494
|
user: {
|
|
3233
3495
|
GET: ['listUserEvents', 'getAuthUser'],
|
|
3234
|
-
DELETE: ['requestDelete']
|
|
3496
|
+
DELETE: ['requestDelete']
|
|
3235
3497
|
},
|
|
3236
3498
|
marketplace: {
|
|
3237
3499
|
GET: ['getAccountInfo', 'getMember', 'getIntegrationResources', 'getIntegrationResource', 'getInvoice'],
|
|
3238
|
-
POST: [
|
|
3500
|
+
POST: [
|
|
3501
|
+
'createEvent',
|
|
3502
|
+
'submitBillingData',
|
|
3503
|
+
'submitInvoice',
|
|
3504
|
+
'updateInvoice',
|
|
3505
|
+
'submitPrepaymentBalances',
|
|
3506
|
+
'exchangeSsoToken',
|
|
3507
|
+
'createExperimentationItem'
|
|
3508
|
+
],
|
|
3239
3509
|
DELETE: ['deleteIntegrationResource', 'deleteExperimentationItem'],
|
|
3240
3510
|
PUT: ['importResource', 'updateResourceSecrets', 'updateResourceSecretsById', 'updateExperimentationEdgeConfig'],
|
|
3241
|
-
PATCH: ['updateExperimentationItem']
|
|
3511
|
+
PATCH: ['updateExperimentationItem']
|
|
3242
3512
|
},
|
|
3243
3513
|
authentication: {
|
|
3244
3514
|
POST: ['exchangeSsoToken', 'createAuthToken'],
|
|
3245
3515
|
GET: ['listAuthTokens', 'getAuthToken'],
|
|
3246
|
-
DELETE: ['deleteAuthToken']
|
|
3516
|
+
DELETE: ['deleteAuthToken']
|
|
3247
3517
|
},
|
|
3248
3518
|
logdrains: {
|
|
3249
3519
|
GET: ['getIntegrationLogDrains'],
|
|
3250
3520
|
POST: ['createLogDrain'],
|
|
3251
|
-
DELETE: ['deleteIntegrationLogDrain']
|
|
3521
|
+
DELETE: ['deleteIntegrationLogDrain']
|
|
3252
3522
|
},
|
|
3253
3523
|
logs: {
|
|
3254
|
-
GET: ['getRuntimeLogs']
|
|
3524
|
+
GET: ['getRuntimeLogs']
|
|
3255
3525
|
},
|
|
3256
3526
|
projectmembers: {
|
|
3257
3527
|
GET: ['getProjectMembers'],
|
|
3258
3528
|
POST: ['addProjectMember'],
|
|
3259
|
-
DELETE: ['removeProjectMember']
|
|
3529
|
+
DELETE: ['removeProjectMember']
|
|
3260
3530
|
},
|
|
3261
3531
|
environment: {
|
|
3262
3532
|
POST: ['createCustomEnvironment'],
|
|
3263
3533
|
GET: ['listCustomEnvironments', 'getCustomEnvironment'],
|
|
3264
3534
|
PATCH: ['updateCustomEnvironment'],
|
|
3265
|
-
DELETE: ['removeCustomEnvironment']
|
|
3535
|
+
DELETE: ['removeCustomEnvironment']
|
|
3266
3536
|
},
|
|
3267
3537
|
rollingRelease: {
|
|
3268
3538
|
GET: ['getRollingReleaseBillingStatus', 'getRollingReleaseConfig', 'getRollingRelease'],
|
|
3269
3539
|
DELETE: ['deleteRollingReleaseConfig'],
|
|
3270
3540
|
PATCH: ['updateRollingReleaseConfig'],
|
|
3271
|
-
POST: ['approveRollingReleaseStage', 'completeRollingRelease']
|
|
3541
|
+
POST: ['approveRollingReleaseStage', 'completeRollingRelease']
|
|
3272
3542
|
},
|
|
3273
3543
|
security: {
|
|
3274
3544
|
POST: ['updateAttackChallengeMode', 'addBypassIp'],
|
|
3275
3545
|
PUT: ['putFirewallConfig'],
|
|
3276
3546
|
PATCH: ['updateFirewallConfig'],
|
|
3277
3547
|
GET: ['getFirewallConfig', 'getActiveAttackStatus', 'getBypassIp'],
|
|
3278
|
-
DELETE: ['removeBypassIp']
|
|
3548
|
+
DELETE: ['removeBypassIp']
|
|
3279
3549
|
},
|
|
3280
3550
|
teams: {
|
|
3281
3551
|
GET: ['getTeamMembers', 'getTeamAccessRequest', 'getTeam', 'getTeams'],
|
|
3282
3552
|
POST: ['inviteUserToTeam', 'requestAccessToTeam', 'joinTeam', 'createTeam'],
|
|
3283
3553
|
PATCH: ['updateTeamMember', 'patchTeam'],
|
|
3284
|
-
DELETE: ['removeTeamMember', 'deleteTeam', 'deleteTeamInviteCode']
|
|
3554
|
+
DELETE: ['removeTeamMember', 'deleteTeam', 'deleteTeamInviteCode']
|
|
3285
3555
|
},
|
|
3286
3556
|
webhooks: {
|
|
3287
3557
|
POST: ['createWebhook'],
|
|
3288
3558
|
GET: ['getWebhooks', 'getWebhook'],
|
|
3289
|
-
DELETE: ['deleteWebhook']
|
|
3559
|
+
DELETE: ['deleteWebhook']
|
|
3290
3560
|
},
|
|
3291
3561
|
aliases: {
|
|
3292
3562
|
GET: ['listDeploymentAliases', 'listAliases', 'getAlias'],
|
|
3293
3563
|
POST: ['assignAlias'],
|
|
3294
3564
|
DELETE: ['deleteAlias'],
|
|
3295
|
-
PATCH: ['patchUrlProtectionBypass']
|
|
3565
|
+
PATCH: ['patchUrlProtectionBypass']
|
|
3296
3566
|
},
|
|
3297
3567
|
certs: {
|
|
3298
3568
|
GET: ['getCertById'],
|
|
3299
3569
|
DELETE: ['removeCert'],
|
|
3300
3570
|
POST: ['issueCert'],
|
|
3301
|
-
PUT: ['uploadCert']
|
|
3571
|
+
PUT: ['uploadCert']
|
|
3302
3572
|
},
|
|
3303
3573
|
secrets: {
|
|
3304
3574
|
GET: ['getSecrets', 'getSecret'],
|
|
3305
3575
|
POST: ['createSecret'],
|
|
3306
3576
|
PATCH: ['renameSecret'],
|
|
3307
|
-
DELETE: ['deleteSecret']
|
|
3308
|
-
}
|
|
3577
|
+
DELETE: ['deleteSecret']
|
|
3578
|
+
}
|
|
3309
3579
|
};
|