vercel-api-js 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +35 -210
- package/dist/index.d.ts +4608 -364
- package/dist/index.mjs +35 -210
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.1.
|
|
2
|
+
> vercel-api-js@0.1.15 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m7.
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m7.3s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [1m7.
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m7.3s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -121,21 +121,11 @@ const status = (variables, signal) => fetch$1({
|
|
|
121
121
|
/**
|
|
122
122
|
* Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
|
|
123
123
|
*/
|
|
124
|
-
const uploadArtifact = (variables, signal) => fetch$1({
|
|
125
|
-
url: '/v8/artifacts/{hash}',
|
|
126
|
-
method: 'put',
|
|
127
|
-
...variables,
|
|
128
|
-
signal
|
|
129
|
-
});
|
|
124
|
+
const uploadArtifact = (variables, signal) => fetch$1({ url: '/v8/artifacts/{hash}', method: 'put', ...variables, signal });
|
|
130
125
|
/**
|
|
131
126
|
* 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.
|
|
132
127
|
*/
|
|
133
|
-
const downloadArtifact = (variables, signal) => fetch$1({
|
|
134
|
-
url: '/v8/artifacts/{hash}',
|
|
135
|
-
method: 'get',
|
|
136
|
-
...variables,
|
|
137
|
-
signal
|
|
138
|
-
});
|
|
128
|
+
const downloadArtifact = (variables, signal) => fetch$1({ url: '/v8/artifacts/{hash}', method: 'get', ...variables, signal });
|
|
139
129
|
/**
|
|
140
130
|
* Query information about an array of artifacts.
|
|
141
131
|
*/
|
|
@@ -152,21 +142,11 @@ const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{i
|
|
|
152
142
|
/**
|
|
153
143
|
* Create a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
|
|
154
144
|
*/
|
|
155
|
-
const createDeployment = (variables, signal) => fetch$1({
|
|
156
|
-
url: '/v13/deployments',
|
|
157
|
-
method: 'post',
|
|
158
|
-
...variables,
|
|
159
|
-
signal
|
|
160
|
-
});
|
|
145
|
+
const createDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments', method: 'post', ...variables, signal });
|
|
161
146
|
/**
|
|
162
147
|
* This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
|
|
163
148
|
*/
|
|
164
|
-
const cancelDeployment = (variables, signal) => fetch$1({
|
|
165
|
-
url: '/v12/deployments/{id}/cancel',
|
|
166
|
-
method: 'patch',
|
|
167
|
-
...variables,
|
|
168
|
-
signal
|
|
169
|
-
});
|
|
149
|
+
const cancelDeployment = (variables, signal) => fetch$1({ url: '/v12/deployments/{id}/cancel', method: 'patch', ...variables, signal });
|
|
170
150
|
/**
|
|
171
151
|
* Get cert by id
|
|
172
152
|
*/
|
|
@@ -206,12 +186,7 @@ const uploadCert = (variables, signal) => fetch$1({
|
|
|
206
186
|
/**
|
|
207
187
|
* Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
|
|
208
188
|
*/
|
|
209
|
-
const getDeploymentEvents = (variables, signal) => fetch$1({
|
|
210
|
-
url: '/v2/deployments/{idOrUrl}/events',
|
|
211
|
-
method: 'get',
|
|
212
|
-
...variables,
|
|
213
|
-
signal
|
|
214
|
-
});
|
|
189
|
+
const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
|
|
215
190
|
/**
|
|
216
191
|
* Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the `teamId` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
|
|
217
192
|
*/
|
|
@@ -255,12 +230,7 @@ const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deploym
|
|
|
255
230
|
/**
|
|
256
231
|
* Creates a new alias for the deployment with the given deployment ID. The authenticated user must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one.
|
|
257
232
|
*/
|
|
258
|
-
const assignAlias = (variables, signal) => fetch$1({
|
|
259
|
-
url: '/v2/deployments/{id}/aliases',
|
|
260
|
-
method: 'post',
|
|
261
|
-
...variables,
|
|
262
|
-
signal
|
|
263
|
-
});
|
|
233
|
+
const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
|
|
264
234
|
/**
|
|
265
235
|
* Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
|
|
266
236
|
*/
|
|
@@ -295,12 +265,7 @@ const listAuthTokens = (variables, signal) => fetch$1({
|
|
|
295
265
|
/**
|
|
296
266
|
* Creates and returns a new authentication token for the currently authenticated User. The `bearerToken` property is only provided once, in the response body, so be sure to save it on the client for use with API requests.
|
|
297
267
|
*/
|
|
298
|
-
const createAuthToken = (variables, signal) => fetch$1({
|
|
299
|
-
url: '/v3/user/tokens',
|
|
300
|
-
method: 'post',
|
|
301
|
-
...variables,
|
|
302
|
-
signal
|
|
303
|
-
});
|
|
268
|
+
const createAuthToken = (variables, signal) => fetch$1({ url: '/v3/user/tokens', method: 'post', ...variables, signal });
|
|
304
269
|
/**
|
|
305
270
|
* Retrieve metadata about an authentication token belonging to the currently authenticated User.
|
|
306
271
|
*/
|
|
@@ -330,12 +295,7 @@ const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}
|
|
|
330
295
|
/**
|
|
331
296
|
* Updates an existing DNS record for a domain name.
|
|
332
297
|
*/
|
|
333
|
-
const updateRecord = (variables, signal) => fetch$1({
|
|
334
|
-
url: '/v1/domains/records/{recordId}',
|
|
335
|
-
method: 'patch',
|
|
336
|
-
...variables,
|
|
337
|
-
signal
|
|
338
|
-
});
|
|
298
|
+
const updateRecord = (variables, signal) => fetch$1({ url: '/v1/domains/records/{recordId}', method: 'patch', ...variables, signal });
|
|
339
299
|
/**
|
|
340
300
|
* Removes an existing DNS record from a domain name.
|
|
341
301
|
*/
|
|
@@ -375,12 +335,7 @@ const buyDomain = (variables, signal) => fetch$1({
|
|
|
375
335
|
/**
|
|
376
336
|
* Get a Domain's configuration.
|
|
377
337
|
*/
|
|
378
|
-
const getDomainConfig = (variables, signal) => fetch$1({
|
|
379
|
-
url: '/v6/domains/{domain}/config',
|
|
380
|
-
method: 'get',
|
|
381
|
-
...variables,
|
|
382
|
-
signal
|
|
383
|
-
});
|
|
338
|
+
const getDomainConfig = (variables, signal) => fetch$1({ url: '/v6/domains/{domain}/config', method: 'get', ...variables, signal });
|
|
384
339
|
/**
|
|
385
340
|
* Get information for a single domain in an account or team.
|
|
386
341
|
*/
|
|
@@ -433,12 +388,7 @@ const createSecret = (variables, signal) => fetch$1({
|
|
|
433
388
|
/**
|
|
434
389
|
* Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
|
|
435
390
|
*/
|
|
436
|
-
const renameSecret = (variables, signal) => fetch$1({
|
|
437
|
-
url: '/v2/secrets/{name}',
|
|
438
|
-
method: 'patch',
|
|
439
|
-
...variables,
|
|
440
|
-
signal
|
|
441
|
-
});
|
|
391
|
+
const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
|
|
442
392
|
/**
|
|
443
393
|
* Retrieves the information for a specific secret by passing either the secret id or name in the URL.
|
|
444
394
|
*/
|
|
@@ -460,12 +410,7 @@ const deleteSecret = (variables, signal) => fetch$1({
|
|
|
460
410
|
/**
|
|
461
411
|
* This API allows you to delete a deployment, either by supplying its `id` in the URL or the `url` of the deployment as a query parameter. You can obtain the ID, for example, by listing all deployments.
|
|
462
412
|
*/
|
|
463
|
-
const deleteDeployment = (variables, signal) => fetch$1({
|
|
464
|
-
url: '/v13/deployments/{id}',
|
|
465
|
-
method: 'delete',
|
|
466
|
-
...variables,
|
|
467
|
-
signal
|
|
468
|
-
});
|
|
413
|
+
const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
|
|
469
414
|
/**
|
|
470
415
|
* List deployments under the account corresponding to the API token. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
|
|
471
416
|
*/
|
|
@@ -505,12 +450,7 @@ const getProject = (variables, signal) => fetch$1({
|
|
|
505
450
|
/**
|
|
506
451
|
* Update the fields of a project using either its `name` or `id`.
|
|
507
452
|
*/
|
|
508
|
-
const updateProject = (variables, signal) => fetch$1({
|
|
509
|
-
url: '/v9/projects/{idOrName}',
|
|
510
|
-
method: 'patch',
|
|
511
|
-
...variables,
|
|
512
|
-
signal
|
|
513
|
-
});
|
|
453
|
+
const updateProject = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}', method: 'patch', ...variables, signal });
|
|
514
454
|
/**
|
|
515
455
|
* Delete a specific project by passing either the project `id` or `name` in the URL.
|
|
516
456
|
*/
|
|
@@ -523,57 +463,27 @@ const deleteProject = (variables, signal) => fetch$1({
|
|
|
523
463
|
/**
|
|
524
464
|
* Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
|
|
525
465
|
*/
|
|
526
|
-
const getProjectDomains = (variables, signal) => fetch$1({
|
|
527
|
-
url: '/v9/projects/{idOrName}/domains',
|
|
528
|
-
method: 'get',
|
|
529
|
-
...variables,
|
|
530
|
-
signal
|
|
531
|
-
});
|
|
466
|
+
const getProjectDomains = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains', method: 'get', ...variables, signal });
|
|
532
467
|
/**
|
|
533
468
|
* Get project domain by project id/name and domain name.
|
|
534
469
|
*/
|
|
535
|
-
const getProjectDomain = (variables, signal) => fetch$1({
|
|
536
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
537
|
-
method: 'get',
|
|
538
|
-
...variables,
|
|
539
|
-
signal
|
|
540
|
-
});
|
|
470
|
+
const getProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'get', ...variables, signal });
|
|
541
471
|
/**
|
|
542
472
|
* Update a project domain's configuration, including the name, git branch and redirect of the domain.
|
|
543
473
|
*/
|
|
544
|
-
const updateProjectDomain = (variables, signal) => fetch$1({
|
|
545
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
546
|
-
method: 'patch',
|
|
547
|
-
...variables,
|
|
548
|
-
signal
|
|
549
|
-
});
|
|
474
|
+
const updateProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'patch', ...variables, signal });
|
|
550
475
|
/**
|
|
551
476
|
* Remove a domain from a project by passing the domain name and by specifying the project by either passing the project `id` or `name` in the URL.
|
|
552
477
|
*/
|
|
553
|
-
const removeProjectDomain = (variables, signal) => fetch$1({
|
|
554
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
555
|
-
method: 'delete',
|
|
556
|
-
...variables,
|
|
557
|
-
signal
|
|
558
|
-
});
|
|
478
|
+
const removeProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'delete', ...variables, signal });
|
|
559
479
|
/**
|
|
560
480
|
* Add a domain to the project by passing its domain name and by specifying the project by either passing the project `id` or `name` in the URL. If the domain is not yet verified to be used on this project, the request will return `verified = false`, and the domain will need to be verified according to the `verification` challenge via `POST /projects/:idOrName/domains/:domain/verify`. If the domain already exists on the project, the request will fail with a `400` status code.
|
|
561
481
|
*/
|
|
562
|
-
const addProjectDomain = (variables, signal) => fetch$1({
|
|
563
|
-
url: '/v10/projects/{idOrName}/domains',
|
|
564
|
-
method: 'post',
|
|
565
|
-
...variables,
|
|
566
|
-
signal
|
|
567
|
-
});
|
|
482
|
+
const addProjectDomain = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/domains', method: 'post', ...variables, signal });
|
|
568
483
|
/**
|
|
569
484
|
* Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
|
|
570
485
|
*/
|
|
571
|
-
const verifyProjectDomain = (variables, signal) => fetch$1({
|
|
572
|
-
url: '/v9/projects/{idOrName}/domains/{domain}/verify',
|
|
573
|
-
method: 'post',
|
|
574
|
-
...variables,
|
|
575
|
-
signal
|
|
576
|
-
});
|
|
486
|
+
const verifyProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}/verify', method: 'post', ...variables, signal });
|
|
577
487
|
/**
|
|
578
488
|
* Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
|
|
579
489
|
*/
|
|
@@ -590,12 +500,7 @@ const getProjectEnv = (variables, signal) => fetch$1({
|
|
|
590
500
|
/**
|
|
591
501
|
* Create one ore more environment variables for a project by passing its `key`, `value`, `type` and `target` and by specifying the project by either passing the project `id` or `name` in the URL.
|
|
592
502
|
*/
|
|
593
|
-
const createProjectEnv = (variables, signal) => fetch$1({
|
|
594
|
-
url: '/v10/projects/{idOrName}/env',
|
|
595
|
-
method: 'post',
|
|
596
|
-
...variables,
|
|
597
|
-
signal
|
|
598
|
-
});
|
|
503
|
+
const createProjectEnv = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/env', method: 'post', ...variables, signal });
|
|
599
504
|
/**
|
|
600
505
|
* Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
|
|
601
506
|
*/
|
|
@@ -603,12 +508,7 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
|
|
|
603
508
|
/**
|
|
604
509
|
* Edit a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
|
|
605
510
|
*/
|
|
606
|
-
const editProjectEnv = (variables, signal) => fetch$1({
|
|
607
|
-
url: '/v9/projects/{idOrName}/env/{id}',
|
|
608
|
-
method: 'patch',
|
|
609
|
-
...variables,
|
|
610
|
-
signal
|
|
611
|
-
});
|
|
511
|
+
const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
|
|
612
512
|
/**
|
|
613
513
|
* Verify the user accepted the login request and get a authentication token. The user email address and the token received after requesting the login must be added to the URL as a query string with the names `email` and `token`.
|
|
614
514
|
*/
|
|
@@ -638,12 +538,7 @@ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations
|
|
|
638
538
|
/**
|
|
639
539
|
* Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
|
|
640
540
|
*/
|
|
641
|
-
const deleteConfiguration = (variables, signal) => fetch$1({
|
|
642
|
-
url: '/v1/integrations/configuration/{id}',
|
|
643
|
-
method: 'delete',
|
|
644
|
-
...variables,
|
|
645
|
-
signal
|
|
646
|
-
});
|
|
541
|
+
const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
|
|
647
542
|
/**
|
|
648
543
|
* Retrieves a list of all Integration log drains that are defined for the authorized account. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
|
|
649
544
|
*/
|
|
@@ -660,12 +555,7 @@ const createLogDrain = (variables, signal) => fetch$1({
|
|
|
660
555
|
/**
|
|
661
556
|
* Deletes the Integration log drain with the provided `id`. When using an OAuth2 Token, the log drain can be deleted only if the integration owns it.
|
|
662
557
|
*/
|
|
663
|
-
const deleteIntegrationLogDrain = (variables, signal) => fetch$1({
|
|
664
|
-
url: '/v1/integrations/log-drains/{id}',
|
|
665
|
-
method: 'delete',
|
|
666
|
-
...variables,
|
|
667
|
-
signal
|
|
668
|
-
});
|
|
558
|
+
const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
669
559
|
/**
|
|
670
560
|
* Lists git namespaces for a supported provider. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
|
|
671
561
|
*/
|
|
@@ -722,12 +612,7 @@ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-d
|
|
|
722
612
|
/**
|
|
723
613
|
* Deletes a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be deleted.
|
|
724
614
|
*/
|
|
725
|
-
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({
|
|
726
|
-
url: '/v1/log-drains/{id}',
|
|
727
|
-
method: 'delete',
|
|
728
|
-
...variables,
|
|
729
|
-
signal
|
|
730
|
-
});
|
|
615
|
+
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
731
616
|
/**
|
|
732
617
|
* Retrieves a list of Configurable Log Drains. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
|
|
733
618
|
*/
|
|
@@ -833,12 +718,7 @@ const joinTeam = (variables, signal) => fetch$1({
|
|
|
833
718
|
/**
|
|
834
719
|
* Update the membership of a Team Member on the Team specified by `teamId`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an `OWNER` of the Team.
|
|
835
720
|
*/
|
|
836
|
-
const updateTeamMember = (variables, signal) => fetch$1({
|
|
837
|
-
url: '/v1/teams/{teamId}/members/{uid}',
|
|
838
|
-
method: 'patch',
|
|
839
|
-
...variables,
|
|
840
|
-
signal
|
|
841
|
-
});
|
|
721
|
+
const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
|
|
842
722
|
/**
|
|
843
723
|
* Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
|
|
844
724
|
*/
|
|
@@ -851,30 +731,15 @@ const removeTeamMember = (variables, signal) => fetch$1({
|
|
|
851
731
|
/**
|
|
852
732
|
* Allows to retrieve the file structure of a deployment by supplying the deployment unique identifier.
|
|
853
733
|
*/
|
|
854
|
-
const listDeploymentFiles = (variables, signal) => fetch$1({
|
|
855
|
-
url: '/v6/deployments/{id}/files',
|
|
856
|
-
method: 'get',
|
|
857
|
-
...variables,
|
|
858
|
-
signal
|
|
859
|
-
});
|
|
734
|
+
const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files', method: 'get', ...variables, signal });
|
|
860
735
|
/**
|
|
861
736
|
* Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain the raw content of the file.
|
|
862
737
|
*/
|
|
863
|
-
const getDeploymentFileContents = (variables, signal) => fetch$1({
|
|
864
|
-
url: '/v6/deployments/{id}/files/{fileId}',
|
|
865
|
-
method: 'get',
|
|
866
|
-
...variables,
|
|
867
|
-
signal
|
|
868
|
-
});
|
|
738
|
+
const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
|
|
869
739
|
/**
|
|
870
740
|
* Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
871
741
|
*/
|
|
872
|
-
const createCheck = (variables, signal) => fetch$1({
|
|
873
|
-
url: '/v1/deployments/{deploymentId}/checks',
|
|
874
|
-
method: 'post',
|
|
875
|
-
...variables,
|
|
876
|
-
signal
|
|
877
|
-
});
|
|
742
|
+
const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
|
|
878
743
|
/**
|
|
879
744
|
* List all of the checks created for a deployment.
|
|
880
745
|
*/
|
|
@@ -896,12 +761,7 @@ const getCheck = (variables, signal) => fetch$1({
|
|
|
896
761
|
/**
|
|
897
762
|
* Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
898
763
|
*/
|
|
899
|
-
const updateCheck = (variables, signal) => fetch$1({
|
|
900
|
-
url: '/v1/deployments/{deploymentId}/checks/{checkId}',
|
|
901
|
-
method: 'patch',
|
|
902
|
-
...variables,
|
|
903
|
-
signal
|
|
904
|
-
});
|
|
764
|
+
const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}', method: 'patch', ...variables, signal });
|
|
905
765
|
/**
|
|
906
766
|
* Rerequest a selected check that has failed.
|
|
907
767
|
*/
|
|
@@ -923,12 +783,7 @@ const getEdgeConfigs = (variables, signal) => fetch$1({
|
|
|
923
783
|
/**
|
|
924
784
|
* Creates an Edge Config.
|
|
925
785
|
*/
|
|
926
|
-
const createEdgeConfig = (variables, signal) => fetch$1({
|
|
927
|
-
url: '/v1/edge-config',
|
|
928
|
-
method: 'post',
|
|
929
|
-
...variables,
|
|
930
|
-
signal
|
|
931
|
-
});
|
|
786
|
+
const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
|
|
932
787
|
/**
|
|
933
788
|
* Returns an Edge Config.
|
|
934
789
|
*/
|
|
@@ -941,12 +796,7 @@ const getEdgeConfig = (variables, signal) => fetch$1({
|
|
|
941
796
|
/**
|
|
942
797
|
* Updates an Edge Config.
|
|
943
798
|
*/
|
|
944
|
-
const updateEdgeConfig = (variables, signal) => fetch$1({
|
|
945
|
-
url: '/v1/edge-config/{edgeConfigId}',
|
|
946
|
-
method: 'put',
|
|
947
|
-
...variables,
|
|
948
|
-
signal
|
|
949
|
-
});
|
|
799
|
+
const updateEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}', method: 'put', ...variables, signal });
|
|
950
800
|
/**
|
|
951
801
|
* Delete an Edge Config by id.
|
|
952
802
|
*/
|
|
@@ -959,12 +809,7 @@ const deleteEdgeConfig = (variables, signal) => fetch$1({
|
|
|
959
809
|
/**
|
|
960
810
|
* Returns all items of an Edge Config.
|
|
961
811
|
*/
|
|
962
|
-
const getEdgeConfigItems = (variables, signal) => fetch$1({
|
|
963
|
-
url: '/v1/edge-config/{edgeConfigId}/items',
|
|
964
|
-
method: 'get',
|
|
965
|
-
...variables,
|
|
966
|
-
signal
|
|
967
|
-
});
|
|
812
|
+
const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
|
|
968
813
|
/**
|
|
969
814
|
* Update multiple Edge Config Items in batch.
|
|
970
815
|
*/
|
|
@@ -972,39 +817,19 @@ const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-co
|
|
|
972
817
|
/**
|
|
973
818
|
* Returns a specific Edge Config Item.
|
|
974
819
|
*/
|
|
975
|
-
const getEdgeConfigItem = (variables, signal) => fetch$1({
|
|
976
|
-
url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}',
|
|
977
|
-
method: 'get',
|
|
978
|
-
...variables,
|
|
979
|
-
signal
|
|
980
|
-
});
|
|
820
|
+
const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
|
|
981
821
|
/**
|
|
982
822
|
* Returns all tokens of an Edge Config.
|
|
983
823
|
*/
|
|
984
|
-
const getEdgeConfigTokens = (variables, signal) => fetch$1({
|
|
985
|
-
url: '/v1/edge-config/{edgeConfigId}/tokens',
|
|
986
|
-
method: 'get',
|
|
987
|
-
...variables,
|
|
988
|
-
signal
|
|
989
|
-
});
|
|
824
|
+
const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
|
|
990
825
|
/**
|
|
991
826
|
* Deletes one or more tokens of an existing Edge Config.
|
|
992
827
|
*/
|
|
993
|
-
const deleteEdgeConfigTokens = (variables, signal) => fetch$1({
|
|
994
|
-
url: '/v1/edge-config/{edgeConfigId}/tokens',
|
|
995
|
-
method: 'delete',
|
|
996
|
-
...variables,
|
|
997
|
-
signal
|
|
998
|
-
});
|
|
828
|
+
const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
|
|
999
829
|
/**
|
|
1000
830
|
* Return meta data about an Edge Config token.
|
|
1001
831
|
*/
|
|
1002
|
-
const getEdgeConfigToken = (variables, signal) => fetch$1({
|
|
1003
|
-
url: '/v1/edge-config/{edgeConfigId}/token/{token}',
|
|
1004
|
-
method: 'get',
|
|
1005
|
-
...variables,
|
|
1006
|
-
signal
|
|
1007
|
-
});
|
|
832
|
+
const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
|
|
1008
833
|
/**
|
|
1009
834
|
* Adds a token to an existing Edge Config.
|
|
1010
835
|
*/
|