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