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/dist/index.mjs
CHANGED
|
@@ -119,21 +119,11 @@ const status = (variables, signal) => fetch$1({
|
|
|
119
119
|
/**
|
|
120
120
|
* Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
|
|
121
121
|
*/
|
|
122
|
-
const uploadArtifact = (variables, signal) => fetch$1({
|
|
123
|
-
url: '/v8/artifacts/{hash}',
|
|
124
|
-
method: 'put',
|
|
125
|
-
...variables,
|
|
126
|
-
signal
|
|
127
|
-
});
|
|
122
|
+
const uploadArtifact = (variables, signal) => fetch$1({ url: '/v8/artifacts/{hash}', method: 'put', ...variables, signal });
|
|
128
123
|
/**
|
|
129
124
|
* 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.
|
|
130
125
|
*/
|
|
131
|
-
const downloadArtifact = (variables, signal) => fetch$1({
|
|
132
|
-
url: '/v8/artifacts/{hash}',
|
|
133
|
-
method: 'get',
|
|
134
|
-
...variables,
|
|
135
|
-
signal
|
|
136
|
-
});
|
|
126
|
+
const downloadArtifact = (variables, signal) => fetch$1({ url: '/v8/artifacts/{hash}', method: 'get', ...variables, signal });
|
|
137
127
|
/**
|
|
138
128
|
* Query information about an array of artifacts.
|
|
139
129
|
*/
|
|
@@ -150,21 +140,11 @@ const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{i
|
|
|
150
140
|
/**
|
|
151
141
|
* Create a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
|
|
152
142
|
*/
|
|
153
|
-
const createDeployment = (variables, signal) => fetch$1({
|
|
154
|
-
url: '/v13/deployments',
|
|
155
|
-
method: 'post',
|
|
156
|
-
...variables,
|
|
157
|
-
signal
|
|
158
|
-
});
|
|
143
|
+
const createDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments', method: 'post', ...variables, signal });
|
|
159
144
|
/**
|
|
160
145
|
* This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
|
|
161
146
|
*/
|
|
162
|
-
const cancelDeployment = (variables, signal) => fetch$1({
|
|
163
|
-
url: '/v12/deployments/{id}/cancel',
|
|
164
|
-
method: 'patch',
|
|
165
|
-
...variables,
|
|
166
|
-
signal
|
|
167
|
-
});
|
|
147
|
+
const cancelDeployment = (variables, signal) => fetch$1({ url: '/v12/deployments/{id}/cancel', method: 'patch', ...variables, signal });
|
|
168
148
|
/**
|
|
169
149
|
* Get cert by id
|
|
170
150
|
*/
|
|
@@ -204,12 +184,7 @@ const uploadCert = (variables, signal) => fetch$1({
|
|
|
204
184
|
/**
|
|
205
185
|
* Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
|
|
206
186
|
*/
|
|
207
|
-
const getDeploymentEvents = (variables, signal) => fetch$1({
|
|
208
|
-
url: '/v2/deployments/{idOrUrl}/events',
|
|
209
|
-
method: 'get',
|
|
210
|
-
...variables,
|
|
211
|
-
signal
|
|
212
|
-
});
|
|
187
|
+
const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
|
|
213
188
|
/**
|
|
214
189
|
* Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the `teamId` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
|
|
215
190
|
*/
|
|
@@ -253,12 +228,7 @@ const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deploym
|
|
|
253
228
|
/**
|
|
254
229
|
* Creates a new alias for the deployment with the given deployment ID. The authenticated user must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one.
|
|
255
230
|
*/
|
|
256
|
-
const assignAlias = (variables, signal) => fetch$1({
|
|
257
|
-
url: '/v2/deployments/{id}/aliases',
|
|
258
|
-
method: 'post',
|
|
259
|
-
...variables,
|
|
260
|
-
signal
|
|
261
|
-
});
|
|
231
|
+
const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
|
|
262
232
|
/**
|
|
263
233
|
* 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.
|
|
264
234
|
*/
|
|
@@ -293,12 +263,7 @@ const listAuthTokens = (variables, signal) => fetch$1({
|
|
|
293
263
|
/**
|
|
294
264
|
* 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.
|
|
295
265
|
*/
|
|
296
|
-
const createAuthToken = (variables, signal) => fetch$1({
|
|
297
|
-
url: '/v3/user/tokens',
|
|
298
|
-
method: 'post',
|
|
299
|
-
...variables,
|
|
300
|
-
signal
|
|
301
|
-
});
|
|
266
|
+
const createAuthToken = (variables, signal) => fetch$1({ url: '/v3/user/tokens', method: 'post', ...variables, signal });
|
|
302
267
|
/**
|
|
303
268
|
* Retrieve metadata about an authentication token belonging to the currently authenticated User.
|
|
304
269
|
*/
|
|
@@ -328,12 +293,7 @@ const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}
|
|
|
328
293
|
/**
|
|
329
294
|
* Updates an existing DNS record for a domain name.
|
|
330
295
|
*/
|
|
331
|
-
const updateRecord = (variables, signal) => fetch$1({
|
|
332
|
-
url: '/v1/domains/records/{recordId}',
|
|
333
|
-
method: 'patch',
|
|
334
|
-
...variables,
|
|
335
|
-
signal
|
|
336
|
-
});
|
|
296
|
+
const updateRecord = (variables, signal) => fetch$1({ url: '/v1/domains/records/{recordId}', method: 'patch', ...variables, signal });
|
|
337
297
|
/**
|
|
338
298
|
* Removes an existing DNS record from a domain name.
|
|
339
299
|
*/
|
|
@@ -373,12 +333,7 @@ const buyDomain = (variables, signal) => fetch$1({
|
|
|
373
333
|
/**
|
|
374
334
|
* Get a Domain's configuration.
|
|
375
335
|
*/
|
|
376
|
-
const getDomainConfig = (variables, signal) => fetch$1({
|
|
377
|
-
url: '/v6/domains/{domain}/config',
|
|
378
|
-
method: 'get',
|
|
379
|
-
...variables,
|
|
380
|
-
signal
|
|
381
|
-
});
|
|
336
|
+
const getDomainConfig = (variables, signal) => fetch$1({ url: '/v6/domains/{domain}/config', method: 'get', ...variables, signal });
|
|
382
337
|
/**
|
|
383
338
|
* Get information for a single domain in an account or team.
|
|
384
339
|
*/
|
|
@@ -431,12 +386,7 @@ const createSecret = (variables, signal) => fetch$1({
|
|
|
431
386
|
/**
|
|
432
387
|
* Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
|
|
433
388
|
*/
|
|
434
|
-
const renameSecret = (variables, signal) => fetch$1({
|
|
435
|
-
url: '/v2/secrets/{name}',
|
|
436
|
-
method: 'patch',
|
|
437
|
-
...variables,
|
|
438
|
-
signal
|
|
439
|
-
});
|
|
389
|
+
const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
|
|
440
390
|
/**
|
|
441
391
|
* Retrieves the information for a specific secret by passing either the secret id or name in the URL.
|
|
442
392
|
*/
|
|
@@ -458,12 +408,7 @@ const deleteSecret = (variables, signal) => fetch$1({
|
|
|
458
408
|
/**
|
|
459
409
|
* 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.
|
|
460
410
|
*/
|
|
461
|
-
const deleteDeployment = (variables, signal) => fetch$1({
|
|
462
|
-
url: '/v13/deployments/{id}',
|
|
463
|
-
method: 'delete',
|
|
464
|
-
...variables,
|
|
465
|
-
signal
|
|
466
|
-
});
|
|
411
|
+
const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
|
|
467
412
|
/**
|
|
468
413
|
* 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`.
|
|
469
414
|
*/
|
|
@@ -503,12 +448,7 @@ const getProject = (variables, signal) => fetch$1({
|
|
|
503
448
|
/**
|
|
504
449
|
* Update the fields of a project using either its `name` or `id`.
|
|
505
450
|
*/
|
|
506
|
-
const updateProject = (variables, signal) => fetch$1({
|
|
507
|
-
url: '/v9/projects/{idOrName}',
|
|
508
|
-
method: 'patch',
|
|
509
|
-
...variables,
|
|
510
|
-
signal
|
|
511
|
-
});
|
|
451
|
+
const updateProject = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}', method: 'patch', ...variables, signal });
|
|
512
452
|
/**
|
|
513
453
|
* Delete a specific project by passing either the project `id` or `name` in the URL.
|
|
514
454
|
*/
|
|
@@ -521,57 +461,27 @@ const deleteProject = (variables, signal) => fetch$1({
|
|
|
521
461
|
/**
|
|
522
462
|
* Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
|
|
523
463
|
*/
|
|
524
|
-
const getProjectDomains = (variables, signal) => fetch$1({
|
|
525
|
-
url: '/v9/projects/{idOrName}/domains',
|
|
526
|
-
method: 'get',
|
|
527
|
-
...variables,
|
|
528
|
-
signal
|
|
529
|
-
});
|
|
464
|
+
const getProjectDomains = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains', method: 'get', ...variables, signal });
|
|
530
465
|
/**
|
|
531
466
|
* Get project domain by project id/name and domain name.
|
|
532
467
|
*/
|
|
533
|
-
const getProjectDomain = (variables, signal) => fetch$1({
|
|
534
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
535
|
-
method: 'get',
|
|
536
|
-
...variables,
|
|
537
|
-
signal
|
|
538
|
-
});
|
|
468
|
+
const getProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'get', ...variables, signal });
|
|
539
469
|
/**
|
|
540
470
|
* Update a project domain's configuration, including the name, git branch and redirect of the domain.
|
|
541
471
|
*/
|
|
542
|
-
const updateProjectDomain = (variables, signal) => fetch$1({
|
|
543
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
544
|
-
method: 'patch',
|
|
545
|
-
...variables,
|
|
546
|
-
signal
|
|
547
|
-
});
|
|
472
|
+
const updateProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'patch', ...variables, signal });
|
|
548
473
|
/**
|
|
549
474
|
* 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.
|
|
550
475
|
*/
|
|
551
|
-
const removeProjectDomain = (variables, signal) => fetch$1({
|
|
552
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
553
|
-
method: 'delete',
|
|
554
|
-
...variables,
|
|
555
|
-
signal
|
|
556
|
-
});
|
|
476
|
+
const removeProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'delete', ...variables, signal });
|
|
557
477
|
/**
|
|
558
478
|
* 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.
|
|
559
479
|
*/
|
|
560
|
-
const addProjectDomain = (variables, signal) => fetch$1({
|
|
561
|
-
url: '/v10/projects/{idOrName}/domains',
|
|
562
|
-
method: 'post',
|
|
563
|
-
...variables,
|
|
564
|
-
signal
|
|
565
|
-
});
|
|
480
|
+
const addProjectDomain = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/domains', method: 'post', ...variables, signal });
|
|
566
481
|
/**
|
|
567
482
|
* Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
|
|
568
483
|
*/
|
|
569
|
-
const verifyProjectDomain = (variables, signal) => fetch$1({
|
|
570
|
-
url: '/v9/projects/{idOrName}/domains/{domain}/verify',
|
|
571
|
-
method: 'post',
|
|
572
|
-
...variables,
|
|
573
|
-
signal
|
|
574
|
-
});
|
|
484
|
+
const verifyProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}/verify', method: 'post', ...variables, signal });
|
|
575
485
|
/**
|
|
576
486
|
* Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
|
|
577
487
|
*/
|
|
@@ -588,12 +498,7 @@ const getProjectEnv = (variables, signal) => fetch$1({
|
|
|
588
498
|
/**
|
|
589
499
|
* 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.
|
|
590
500
|
*/
|
|
591
|
-
const createProjectEnv = (variables, signal) => fetch$1({
|
|
592
|
-
url: '/v10/projects/{idOrName}/env',
|
|
593
|
-
method: 'post',
|
|
594
|
-
...variables,
|
|
595
|
-
signal
|
|
596
|
-
});
|
|
501
|
+
const createProjectEnv = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/env', method: 'post', ...variables, signal });
|
|
597
502
|
/**
|
|
598
503
|
* 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.
|
|
599
504
|
*/
|
|
@@ -601,12 +506,7 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
|
|
|
601
506
|
/**
|
|
602
507
|
* 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.
|
|
603
508
|
*/
|
|
604
|
-
const editProjectEnv = (variables, signal) => fetch$1({
|
|
605
|
-
url: '/v9/projects/{idOrName}/env/{id}',
|
|
606
|
-
method: 'patch',
|
|
607
|
-
...variables,
|
|
608
|
-
signal
|
|
609
|
-
});
|
|
509
|
+
const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
|
|
610
510
|
/**
|
|
611
511
|
* 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`.
|
|
612
512
|
*/
|
|
@@ -636,12 +536,7 @@ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations
|
|
|
636
536
|
/**
|
|
637
537
|
* 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.
|
|
638
538
|
*/
|
|
639
|
-
const deleteConfiguration = (variables, signal) => fetch$1({
|
|
640
|
-
url: '/v1/integrations/configuration/{id}',
|
|
641
|
-
method: 'delete',
|
|
642
|
-
...variables,
|
|
643
|
-
signal
|
|
644
|
-
});
|
|
539
|
+
const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
|
|
645
540
|
/**
|
|
646
541
|
* 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.
|
|
647
542
|
*/
|
|
@@ -658,12 +553,7 @@ const createLogDrain = (variables, signal) => fetch$1({
|
|
|
658
553
|
/**
|
|
659
554
|
* 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.
|
|
660
555
|
*/
|
|
661
|
-
const deleteIntegrationLogDrain = (variables, signal) => fetch$1({
|
|
662
|
-
url: '/v1/integrations/log-drains/{id}',
|
|
663
|
-
method: 'delete',
|
|
664
|
-
...variables,
|
|
665
|
-
signal
|
|
666
|
-
});
|
|
556
|
+
const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
667
557
|
/**
|
|
668
558
|
* 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.
|
|
669
559
|
*/
|
|
@@ -720,12 +610,7 @@ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-d
|
|
|
720
610
|
/**
|
|
721
611
|
* Deletes a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be deleted.
|
|
722
612
|
*/
|
|
723
|
-
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({
|
|
724
|
-
url: '/v1/log-drains/{id}',
|
|
725
|
-
method: 'delete',
|
|
726
|
-
...variables,
|
|
727
|
-
signal
|
|
728
|
-
});
|
|
613
|
+
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
729
614
|
/**
|
|
730
615
|
* Retrieves a list of Configurable Log Drains. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
|
|
731
616
|
*/
|
|
@@ -831,12 +716,7 @@ const joinTeam = (variables, signal) => fetch$1({
|
|
|
831
716
|
/**
|
|
832
717
|
* 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.
|
|
833
718
|
*/
|
|
834
|
-
const updateTeamMember = (variables, signal) => fetch$1({
|
|
835
|
-
url: '/v1/teams/{teamId}/members/{uid}',
|
|
836
|
-
method: 'patch',
|
|
837
|
-
...variables,
|
|
838
|
-
signal
|
|
839
|
-
});
|
|
719
|
+
const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
|
|
840
720
|
/**
|
|
841
721
|
* Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
|
|
842
722
|
*/
|
|
@@ -849,30 +729,15 @@ const removeTeamMember = (variables, signal) => fetch$1({
|
|
|
849
729
|
/**
|
|
850
730
|
* Allows to retrieve the file structure of a deployment by supplying the deployment unique identifier.
|
|
851
731
|
*/
|
|
852
|
-
const listDeploymentFiles = (variables, signal) => fetch$1({
|
|
853
|
-
url: '/v6/deployments/{id}/files',
|
|
854
|
-
method: 'get',
|
|
855
|
-
...variables,
|
|
856
|
-
signal
|
|
857
|
-
});
|
|
732
|
+
const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files', method: 'get', ...variables, signal });
|
|
858
733
|
/**
|
|
859
734
|
* 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.
|
|
860
735
|
*/
|
|
861
|
-
const getDeploymentFileContents = (variables, signal) => fetch$1({
|
|
862
|
-
url: '/v6/deployments/{id}/files/{fileId}',
|
|
863
|
-
method: 'get',
|
|
864
|
-
...variables,
|
|
865
|
-
signal
|
|
866
|
-
});
|
|
736
|
+
const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
|
|
867
737
|
/**
|
|
868
738
|
* Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
869
739
|
*/
|
|
870
|
-
const createCheck = (variables, signal) => fetch$1({
|
|
871
|
-
url: '/v1/deployments/{deploymentId}/checks',
|
|
872
|
-
method: 'post',
|
|
873
|
-
...variables,
|
|
874
|
-
signal
|
|
875
|
-
});
|
|
740
|
+
const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
|
|
876
741
|
/**
|
|
877
742
|
* List all of the checks created for a deployment.
|
|
878
743
|
*/
|
|
@@ -894,12 +759,7 @@ const getCheck = (variables, signal) => fetch$1({
|
|
|
894
759
|
/**
|
|
895
760
|
* Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
896
761
|
*/
|
|
897
|
-
const updateCheck = (variables, signal) => fetch$1({
|
|
898
|
-
url: '/v1/deployments/{deploymentId}/checks/{checkId}',
|
|
899
|
-
method: 'patch',
|
|
900
|
-
...variables,
|
|
901
|
-
signal
|
|
902
|
-
});
|
|
762
|
+
const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}', method: 'patch', ...variables, signal });
|
|
903
763
|
/**
|
|
904
764
|
* Rerequest a selected check that has failed.
|
|
905
765
|
*/
|
|
@@ -921,12 +781,7 @@ const getEdgeConfigs = (variables, signal) => fetch$1({
|
|
|
921
781
|
/**
|
|
922
782
|
* Creates an Edge Config.
|
|
923
783
|
*/
|
|
924
|
-
const createEdgeConfig = (variables, signal) => fetch$1({
|
|
925
|
-
url: '/v1/edge-config',
|
|
926
|
-
method: 'post',
|
|
927
|
-
...variables,
|
|
928
|
-
signal
|
|
929
|
-
});
|
|
784
|
+
const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
|
|
930
785
|
/**
|
|
931
786
|
* Returns an Edge Config.
|
|
932
787
|
*/
|
|
@@ -939,12 +794,7 @@ const getEdgeConfig = (variables, signal) => fetch$1({
|
|
|
939
794
|
/**
|
|
940
795
|
* Updates an Edge Config.
|
|
941
796
|
*/
|
|
942
|
-
const updateEdgeConfig = (variables, signal) => fetch$1({
|
|
943
|
-
url: '/v1/edge-config/{edgeConfigId}',
|
|
944
|
-
method: 'put',
|
|
945
|
-
...variables,
|
|
946
|
-
signal
|
|
947
|
-
});
|
|
797
|
+
const updateEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}', method: 'put', ...variables, signal });
|
|
948
798
|
/**
|
|
949
799
|
* Delete an Edge Config by id.
|
|
950
800
|
*/
|
|
@@ -957,12 +807,7 @@ const deleteEdgeConfig = (variables, signal) => fetch$1({
|
|
|
957
807
|
/**
|
|
958
808
|
* Returns all items of an Edge Config.
|
|
959
809
|
*/
|
|
960
|
-
const getEdgeConfigItems = (variables, signal) => fetch$1({
|
|
961
|
-
url: '/v1/edge-config/{edgeConfigId}/items',
|
|
962
|
-
method: 'get',
|
|
963
|
-
...variables,
|
|
964
|
-
signal
|
|
965
|
-
});
|
|
810
|
+
const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
|
|
966
811
|
/**
|
|
967
812
|
* Update multiple Edge Config Items in batch.
|
|
968
813
|
*/
|
|
@@ -970,39 +815,19 @@ const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-co
|
|
|
970
815
|
/**
|
|
971
816
|
* Returns a specific Edge Config Item.
|
|
972
817
|
*/
|
|
973
|
-
const getEdgeConfigItem = (variables, signal) => fetch$1({
|
|
974
|
-
url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}',
|
|
975
|
-
method: 'get',
|
|
976
|
-
...variables,
|
|
977
|
-
signal
|
|
978
|
-
});
|
|
818
|
+
const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
|
|
979
819
|
/**
|
|
980
820
|
* Returns all tokens of an Edge Config.
|
|
981
821
|
*/
|
|
982
|
-
const getEdgeConfigTokens = (variables, signal) => fetch$1({
|
|
983
|
-
url: '/v1/edge-config/{edgeConfigId}/tokens',
|
|
984
|
-
method: 'get',
|
|
985
|
-
...variables,
|
|
986
|
-
signal
|
|
987
|
-
});
|
|
822
|
+
const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
|
|
988
823
|
/**
|
|
989
824
|
* Deletes one or more tokens of an existing Edge Config.
|
|
990
825
|
*/
|
|
991
|
-
const deleteEdgeConfigTokens = (variables, signal) => fetch$1({
|
|
992
|
-
url: '/v1/edge-config/{edgeConfigId}/tokens',
|
|
993
|
-
method: 'delete',
|
|
994
|
-
...variables,
|
|
995
|
-
signal
|
|
996
|
-
});
|
|
826
|
+
const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
|
|
997
827
|
/**
|
|
998
828
|
* Return meta data about an Edge Config token.
|
|
999
829
|
*/
|
|
1000
|
-
const getEdgeConfigToken = (variables, signal) => fetch$1({
|
|
1001
|
-
url: '/v1/edge-config/{edgeConfigId}/token/{token}',
|
|
1002
|
-
method: 'get',
|
|
1003
|
-
...variables,
|
|
1004
|
-
signal
|
|
1005
|
-
});
|
|
830
|
+
const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
|
|
1006
831
|
/**
|
|
1007
832
|
* Adds a token to an existing Edge Config.
|
|
1008
833
|
*/
|