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