vercel-api-js 0.1.14 → 0.1.16
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 +12 -0
- package/dist/index.cjs +44 -217
- package/dist/index.d.ts +4621 -377
- package/dist/index.mjs +44 -217
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise */
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
17
19
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -119,21 +121,11 @@ const status = (variables, signal) => fetch$1({
|
|
|
119
121
|
/**
|
|
120
122
|
* Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
|
|
121
123
|
*/
|
|
122
|
-
const uploadArtifact = (variables, signal) => fetch$1({
|
|
123
|
-
url: '/v8/artifacts/{hash}',
|
|
124
|
-
method: 'put',
|
|
125
|
-
...variables,
|
|
126
|
-
signal
|
|
127
|
-
});
|
|
124
|
+
const uploadArtifact = (variables, signal) => fetch$1({ url: '/v8/artifacts/{hash}', method: 'put', ...variables, signal });
|
|
128
125
|
/**
|
|
129
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.
|
|
130
127
|
*/
|
|
131
|
-
const downloadArtifact = (variables, signal) => fetch$1({
|
|
132
|
-
url: '/v8/artifacts/{hash}',
|
|
133
|
-
method: 'get',
|
|
134
|
-
...variables,
|
|
135
|
-
signal
|
|
136
|
-
});
|
|
128
|
+
const downloadArtifact = (variables, signal) => fetch$1({ url: '/v8/artifacts/{hash}', method: 'get', ...variables, signal });
|
|
137
129
|
/**
|
|
138
130
|
* Query information about an array of artifacts.
|
|
139
131
|
*/
|
|
@@ -150,21 +142,11 @@ const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{i
|
|
|
150
142
|
/**
|
|
151
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.
|
|
152
144
|
*/
|
|
153
|
-
const createDeployment = (variables, signal) => fetch$1({
|
|
154
|
-
url: '/v13/deployments',
|
|
155
|
-
method: 'post',
|
|
156
|
-
...variables,
|
|
157
|
-
signal
|
|
158
|
-
});
|
|
145
|
+
const createDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments', method: 'post', ...variables, signal });
|
|
159
146
|
/**
|
|
160
147
|
* This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
|
|
161
148
|
*/
|
|
162
|
-
const cancelDeployment = (variables, signal) => fetch$1({
|
|
163
|
-
url: '/v12/deployments/{id}/cancel',
|
|
164
|
-
method: 'patch',
|
|
165
|
-
...variables,
|
|
166
|
-
signal
|
|
167
|
-
});
|
|
149
|
+
const cancelDeployment = (variables, signal) => fetch$1({ url: '/v12/deployments/{id}/cancel', method: 'patch', ...variables, signal });
|
|
168
150
|
/**
|
|
169
151
|
* Get cert by id
|
|
170
152
|
*/
|
|
@@ -184,32 +166,27 @@ const removeCert = (variables, signal) => fetch$1({
|
|
|
184
166
|
signal
|
|
185
167
|
});
|
|
186
168
|
/**
|
|
187
|
-
*
|
|
169
|
+
* Upload a cert
|
|
188
170
|
*/
|
|
189
|
-
const
|
|
171
|
+
const uploadCert = (variables, signal) => fetch$1({
|
|
190
172
|
url: '/v7/certs',
|
|
191
|
-
method: '
|
|
173
|
+
method: 'put',
|
|
192
174
|
...variables,
|
|
193
175
|
signal
|
|
194
176
|
});
|
|
195
177
|
/**
|
|
196
|
-
*
|
|
178
|
+
* Issue a new cert
|
|
197
179
|
*/
|
|
198
|
-
const
|
|
180
|
+
const issueCert = (variables, signal) => fetch$1({
|
|
199
181
|
url: '/v7/certs',
|
|
200
|
-
method: '
|
|
182
|
+
method: 'post',
|
|
201
183
|
...variables,
|
|
202
184
|
signal
|
|
203
185
|
});
|
|
204
186
|
/**
|
|
205
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.
|
|
206
188
|
*/
|
|
207
|
-
const getDeploymentEvents = (variables, signal) => fetch$1({
|
|
208
|
-
url: '/v2/deployments/{idOrUrl}/events',
|
|
209
|
-
method: 'get',
|
|
210
|
-
...variables,
|
|
211
|
-
signal
|
|
212
|
-
});
|
|
189
|
+
const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
|
|
213
190
|
/**
|
|
214
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.
|
|
215
192
|
*/
|
|
@@ -253,12 +230,7 @@ const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deploym
|
|
|
253
230
|
/**
|
|
254
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.
|
|
255
232
|
*/
|
|
256
|
-
const assignAlias = (variables, signal) => fetch$1({
|
|
257
|
-
url: '/v2/deployments/{id}/aliases',
|
|
258
|
-
method: 'post',
|
|
259
|
-
...variables,
|
|
260
|
-
signal
|
|
261
|
-
});
|
|
233
|
+
const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
|
|
262
234
|
/**
|
|
263
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.
|
|
264
236
|
*/
|
|
@@ -293,12 +265,7 @@ const listAuthTokens = (variables, signal) => fetch$1({
|
|
|
293
265
|
/**
|
|
294
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.
|
|
295
267
|
*/
|
|
296
|
-
const createAuthToken = (variables, signal) => fetch$1({
|
|
297
|
-
url: '/v3/user/tokens',
|
|
298
|
-
method: 'post',
|
|
299
|
-
...variables,
|
|
300
|
-
signal
|
|
301
|
-
});
|
|
268
|
+
const createAuthToken = (variables, signal) => fetch$1({ url: '/v3/user/tokens', method: 'post', ...variables, signal });
|
|
302
269
|
/**
|
|
303
270
|
* Retrieve metadata about an authentication token belonging to the currently authenticated User.
|
|
304
271
|
*/
|
|
@@ -328,12 +295,7 @@ const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}
|
|
|
328
295
|
/**
|
|
329
296
|
* Updates an existing DNS record for a domain name.
|
|
330
297
|
*/
|
|
331
|
-
const updateRecord = (variables, signal) => fetch$1({
|
|
332
|
-
url: '/v1/domains/records/{recordId}',
|
|
333
|
-
method: 'patch',
|
|
334
|
-
...variables,
|
|
335
|
-
signal
|
|
336
|
-
});
|
|
298
|
+
const updateRecord = (variables, signal) => fetch$1({ url: '/v1/domains/records/{recordId}', method: 'patch', ...variables, signal });
|
|
337
299
|
/**
|
|
338
300
|
* Removes an existing DNS record from a domain name.
|
|
339
301
|
*/
|
|
@@ -373,12 +335,7 @@ const buyDomain = (variables, signal) => fetch$1({
|
|
|
373
335
|
/**
|
|
374
336
|
* Get a Domain's configuration.
|
|
375
337
|
*/
|
|
376
|
-
const getDomainConfig = (variables, signal) => fetch$1({
|
|
377
|
-
url: '/v6/domains/{domain}/config',
|
|
378
|
-
method: 'get',
|
|
379
|
-
...variables,
|
|
380
|
-
signal
|
|
381
|
-
});
|
|
338
|
+
const getDomainConfig = (variables, signal) => fetch$1({ url: '/v6/domains/{domain}/config', method: 'get', ...variables, signal });
|
|
382
339
|
/**
|
|
383
340
|
* Get information for a single domain in an account or team.
|
|
384
341
|
*/
|
|
@@ -431,12 +388,7 @@ const createSecret = (variables, signal) => fetch$1({
|
|
|
431
388
|
/**
|
|
432
389
|
* Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
|
|
433
390
|
*/
|
|
434
|
-
const renameSecret = (variables, signal) => fetch$1({
|
|
435
|
-
url: '/v2/secrets/{name}',
|
|
436
|
-
method: 'patch',
|
|
437
|
-
...variables,
|
|
438
|
-
signal
|
|
439
|
-
});
|
|
391
|
+
const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
|
|
440
392
|
/**
|
|
441
393
|
* Retrieves the information for a specific secret by passing either the secret id or name in the URL.
|
|
442
394
|
*/
|
|
@@ -458,12 +410,7 @@ const deleteSecret = (variables, signal) => fetch$1({
|
|
|
458
410
|
/**
|
|
459
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.
|
|
460
412
|
*/
|
|
461
|
-
const deleteDeployment = (variables, signal) => fetch$1({
|
|
462
|
-
url: '/v13/deployments/{id}',
|
|
463
|
-
method: 'delete',
|
|
464
|
-
...variables,
|
|
465
|
-
signal
|
|
466
|
-
});
|
|
413
|
+
const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
|
|
467
414
|
/**
|
|
468
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`.
|
|
469
416
|
*/
|
|
@@ -503,12 +450,7 @@ const getProject = (variables, signal) => fetch$1({
|
|
|
503
450
|
/**
|
|
504
451
|
* Update the fields of a project using either its `name` or `id`.
|
|
505
452
|
*/
|
|
506
|
-
const updateProject = (variables, signal) => fetch$1({
|
|
507
|
-
url: '/v9/projects/{idOrName}',
|
|
508
|
-
method: 'patch',
|
|
509
|
-
...variables,
|
|
510
|
-
signal
|
|
511
|
-
});
|
|
453
|
+
const updateProject = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}', method: 'patch', ...variables, signal });
|
|
512
454
|
/**
|
|
513
455
|
* Delete a specific project by passing either the project `id` or `name` in the URL.
|
|
514
456
|
*/
|
|
@@ -521,57 +463,27 @@ const deleteProject = (variables, signal) => fetch$1({
|
|
|
521
463
|
/**
|
|
522
464
|
* Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
|
|
523
465
|
*/
|
|
524
|
-
const getProjectDomains = (variables, signal) => fetch$1({
|
|
525
|
-
url: '/v9/projects/{idOrName}/domains',
|
|
526
|
-
method: 'get',
|
|
527
|
-
...variables,
|
|
528
|
-
signal
|
|
529
|
-
});
|
|
466
|
+
const getProjectDomains = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains', method: 'get', ...variables, signal });
|
|
530
467
|
/**
|
|
531
468
|
* Get project domain by project id/name and domain name.
|
|
532
469
|
*/
|
|
533
|
-
const getProjectDomain = (variables, signal) => fetch$1({
|
|
534
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
535
|
-
method: 'get',
|
|
536
|
-
...variables,
|
|
537
|
-
signal
|
|
538
|
-
});
|
|
470
|
+
const getProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'get', ...variables, signal });
|
|
539
471
|
/**
|
|
540
472
|
* Update a project domain's configuration, including the name, git branch and redirect of the domain.
|
|
541
473
|
*/
|
|
542
|
-
const updateProjectDomain = (variables, signal) => fetch$1({
|
|
543
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
544
|
-
method: 'patch',
|
|
545
|
-
...variables,
|
|
546
|
-
signal
|
|
547
|
-
});
|
|
474
|
+
const updateProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'patch', ...variables, signal });
|
|
548
475
|
/**
|
|
549
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.
|
|
550
477
|
*/
|
|
551
|
-
const removeProjectDomain = (variables, signal) => fetch$1({
|
|
552
|
-
url: '/v9/projects/{idOrName}/domains/{domain}',
|
|
553
|
-
method: 'delete',
|
|
554
|
-
...variables,
|
|
555
|
-
signal
|
|
556
|
-
});
|
|
478
|
+
const removeProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}', method: 'delete', ...variables, signal });
|
|
557
479
|
/**
|
|
558
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.
|
|
559
481
|
*/
|
|
560
|
-
const addProjectDomain = (variables, signal) => fetch$1({
|
|
561
|
-
url: '/v10/projects/{idOrName}/domains',
|
|
562
|
-
method: 'post',
|
|
563
|
-
...variables,
|
|
564
|
-
signal
|
|
565
|
-
});
|
|
482
|
+
const addProjectDomain = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/domains', method: 'post', ...variables, signal });
|
|
566
483
|
/**
|
|
567
484
|
* Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
|
|
568
485
|
*/
|
|
569
|
-
const verifyProjectDomain = (variables, signal) => fetch$1({
|
|
570
|
-
url: '/v9/projects/{idOrName}/domains/{domain}/verify',
|
|
571
|
-
method: 'post',
|
|
572
|
-
...variables,
|
|
573
|
-
signal
|
|
574
|
-
});
|
|
486
|
+
const verifyProjectDomain = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/domains/{domain}/verify', method: 'post', ...variables, signal });
|
|
575
487
|
/**
|
|
576
488
|
* Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
|
|
577
489
|
*/
|
|
@@ -588,12 +500,7 @@ const getProjectEnv = (variables, signal) => fetch$1({
|
|
|
588
500
|
/**
|
|
589
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.
|
|
590
502
|
*/
|
|
591
|
-
const createProjectEnv = (variables, signal) => fetch$1({
|
|
592
|
-
url: '/v10/projects/{idOrName}/env',
|
|
593
|
-
method: 'post',
|
|
594
|
-
...variables,
|
|
595
|
-
signal
|
|
596
|
-
});
|
|
503
|
+
const createProjectEnv = (variables, signal) => fetch$1({ url: '/v10/projects/{idOrName}/env', method: 'post', ...variables, signal });
|
|
597
504
|
/**
|
|
598
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.
|
|
599
506
|
*/
|
|
@@ -601,12 +508,7 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
|
|
|
601
508
|
/**
|
|
602
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.
|
|
603
510
|
*/
|
|
604
|
-
const editProjectEnv = (variables, signal) => fetch$1({
|
|
605
|
-
url: '/v9/projects/{idOrName}/env/{id}',
|
|
606
|
-
method: 'patch',
|
|
607
|
-
...variables,
|
|
608
|
-
signal
|
|
609
|
-
});
|
|
511
|
+
const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
|
|
610
512
|
/**
|
|
611
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`.
|
|
612
514
|
*/
|
|
@@ -636,12 +538,7 @@ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations
|
|
|
636
538
|
/**
|
|
637
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.
|
|
638
540
|
*/
|
|
639
|
-
const deleteConfiguration = (variables, signal) => fetch$1({
|
|
640
|
-
url: '/v1/integrations/configuration/{id}',
|
|
641
|
-
method: 'delete',
|
|
642
|
-
...variables,
|
|
643
|
-
signal
|
|
644
|
-
});
|
|
541
|
+
const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
|
|
645
542
|
/**
|
|
646
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.
|
|
647
544
|
*/
|
|
@@ -658,12 +555,7 @@ const createLogDrain = (variables, signal) => fetch$1({
|
|
|
658
555
|
/**
|
|
659
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.
|
|
660
557
|
*/
|
|
661
|
-
const deleteIntegrationLogDrain = (variables, signal) => fetch$1({
|
|
662
|
-
url: '/v1/integrations/log-drains/{id}',
|
|
663
|
-
method: 'delete',
|
|
664
|
-
...variables,
|
|
665
|
-
signal
|
|
666
|
-
});
|
|
558
|
+
const deleteIntegrationLogDrain = (variables, signal) => fetch$1({ url: '/v1/integrations/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
667
559
|
/**
|
|
668
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.
|
|
669
561
|
*/
|
|
@@ -720,12 +612,7 @@ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-d
|
|
|
720
612
|
/**
|
|
721
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.
|
|
722
614
|
*/
|
|
723
|
-
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({
|
|
724
|
-
url: '/v1/log-drains/{id}',
|
|
725
|
-
method: 'delete',
|
|
726
|
-
...variables,
|
|
727
|
-
signal
|
|
728
|
-
});
|
|
615
|
+
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
729
616
|
/**
|
|
730
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.
|
|
731
618
|
*/
|
|
@@ -831,12 +718,7 @@ const joinTeam = (variables, signal) => fetch$1({
|
|
|
831
718
|
/**
|
|
832
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.
|
|
833
720
|
*/
|
|
834
|
-
const updateTeamMember = (variables, signal) => fetch$1({
|
|
835
|
-
url: '/v1/teams/{teamId}/members/{uid}',
|
|
836
|
-
method: 'patch',
|
|
837
|
-
...variables,
|
|
838
|
-
signal
|
|
839
|
-
});
|
|
721
|
+
const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'patch', ...variables, signal });
|
|
840
722
|
/**
|
|
841
723
|
* Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
|
|
842
724
|
*/
|
|
@@ -849,30 +731,15 @@ const removeTeamMember = (variables, signal) => fetch$1({
|
|
|
849
731
|
/**
|
|
850
732
|
* Allows to retrieve the file structure of a deployment by supplying the deployment unique identifier.
|
|
851
733
|
*/
|
|
852
|
-
const listDeploymentFiles = (variables, signal) => fetch$1({
|
|
853
|
-
url: '/v6/deployments/{id}/files',
|
|
854
|
-
method: 'get',
|
|
855
|
-
...variables,
|
|
856
|
-
signal
|
|
857
|
-
});
|
|
734
|
+
const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files', method: 'get', ...variables, signal });
|
|
858
735
|
/**
|
|
859
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.
|
|
860
737
|
*/
|
|
861
|
-
const getDeploymentFileContents = (variables, signal) => fetch$1({
|
|
862
|
-
url: '/v6/deployments/{id}/files/{fileId}',
|
|
863
|
-
method: 'get',
|
|
864
|
-
...variables,
|
|
865
|
-
signal
|
|
866
|
-
});
|
|
738
|
+
const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
|
|
867
739
|
/**
|
|
868
740
|
* Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
869
741
|
*/
|
|
870
|
-
const createCheck = (variables, signal) => fetch$1({
|
|
871
|
-
url: '/v1/deployments/{deploymentId}/checks',
|
|
872
|
-
method: 'post',
|
|
873
|
-
...variables,
|
|
874
|
-
signal
|
|
875
|
-
});
|
|
742
|
+
const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
|
|
876
743
|
/**
|
|
877
744
|
* List all of the checks created for a deployment.
|
|
878
745
|
*/
|
|
@@ -894,12 +761,7 @@ const getCheck = (variables, signal) => fetch$1({
|
|
|
894
761
|
/**
|
|
895
762
|
* Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
896
763
|
*/
|
|
897
|
-
const updateCheck = (variables, signal) => fetch$1({
|
|
898
|
-
url: '/v1/deployments/{deploymentId}/checks/{checkId}',
|
|
899
|
-
method: 'patch',
|
|
900
|
-
...variables,
|
|
901
|
-
signal
|
|
902
|
-
});
|
|
764
|
+
const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}', method: 'patch', ...variables, signal });
|
|
903
765
|
/**
|
|
904
766
|
* Rerequest a selected check that has failed.
|
|
905
767
|
*/
|
|
@@ -921,12 +783,7 @@ const getEdgeConfigs = (variables, signal) => fetch$1({
|
|
|
921
783
|
/**
|
|
922
784
|
* Creates an Edge Config.
|
|
923
785
|
*/
|
|
924
|
-
const createEdgeConfig = (variables, signal) => fetch$1({
|
|
925
|
-
url: '/v1/edge-config',
|
|
926
|
-
method: 'post',
|
|
927
|
-
...variables,
|
|
928
|
-
signal
|
|
929
|
-
});
|
|
786
|
+
const createEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config', method: 'post', ...variables, signal });
|
|
930
787
|
/**
|
|
931
788
|
* Returns an Edge Config.
|
|
932
789
|
*/
|
|
@@ -939,12 +796,7 @@ const getEdgeConfig = (variables, signal) => fetch$1({
|
|
|
939
796
|
/**
|
|
940
797
|
* Updates an Edge Config.
|
|
941
798
|
*/
|
|
942
|
-
const updateEdgeConfig = (variables, signal) => fetch$1({
|
|
943
|
-
url: '/v1/edge-config/{edgeConfigId}',
|
|
944
|
-
method: 'put',
|
|
945
|
-
...variables,
|
|
946
|
-
signal
|
|
947
|
-
});
|
|
799
|
+
const updateEdgeConfig = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}', method: 'put', ...variables, signal });
|
|
948
800
|
/**
|
|
949
801
|
* Delete an Edge Config by id.
|
|
950
802
|
*/
|
|
@@ -957,12 +809,7 @@ const deleteEdgeConfig = (variables, signal) => fetch$1({
|
|
|
957
809
|
/**
|
|
958
810
|
* Returns all items of an Edge Config.
|
|
959
811
|
*/
|
|
960
|
-
const getEdgeConfigItems = (variables, signal) => fetch$1({
|
|
961
|
-
url: '/v1/edge-config/{edgeConfigId}/items',
|
|
962
|
-
method: 'get',
|
|
963
|
-
...variables,
|
|
964
|
-
signal
|
|
965
|
-
});
|
|
812
|
+
const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'get', ...variables, signal });
|
|
966
813
|
/**
|
|
967
814
|
* Update multiple Edge Config Items in batch.
|
|
968
815
|
*/
|
|
@@ -970,39 +817,19 @@ const patchtEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-co
|
|
|
970
817
|
/**
|
|
971
818
|
* Returns a specific Edge Config Item.
|
|
972
819
|
*/
|
|
973
|
-
const getEdgeConfigItem = (variables, signal) => fetch$1({
|
|
974
|
-
url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}',
|
|
975
|
-
method: 'get',
|
|
976
|
-
...variables,
|
|
977
|
-
signal
|
|
978
|
-
});
|
|
820
|
+
const getEdgeConfigItem = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}', method: 'get', ...variables, signal });
|
|
979
821
|
/**
|
|
980
822
|
* Returns all tokens of an Edge Config.
|
|
981
823
|
*/
|
|
982
|
-
const getEdgeConfigTokens = (variables, signal) => fetch$1({
|
|
983
|
-
url: '/v1/edge-config/{edgeConfigId}/tokens',
|
|
984
|
-
method: 'get',
|
|
985
|
-
...variables,
|
|
986
|
-
signal
|
|
987
|
-
});
|
|
824
|
+
const getEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'get', ...variables, signal });
|
|
988
825
|
/**
|
|
989
826
|
* Deletes one or more tokens of an existing Edge Config.
|
|
990
827
|
*/
|
|
991
|
-
const deleteEdgeConfigTokens = (variables, signal) => fetch$1({
|
|
992
|
-
url: '/v1/edge-config/{edgeConfigId}/tokens',
|
|
993
|
-
method: 'delete',
|
|
994
|
-
...variables,
|
|
995
|
-
signal
|
|
996
|
-
});
|
|
828
|
+
const deleteEdgeConfigTokens = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/tokens', method: 'delete', ...variables, signal });
|
|
997
829
|
/**
|
|
998
830
|
* Return meta data about an Edge Config token.
|
|
999
831
|
*/
|
|
1000
|
-
const getEdgeConfigToken = (variables, signal) => fetch$1({
|
|
1001
|
-
url: '/v1/edge-config/{edgeConfigId}/token/{token}',
|
|
1002
|
-
method: 'get',
|
|
1003
|
-
...variables,
|
|
1004
|
-
signal
|
|
1005
|
-
});
|
|
832
|
+
const getEdgeConfigToken = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/token/{token}', method: 'get', ...variables, signal });
|
|
1006
833
|
/**
|
|
1007
834
|
* Adds a token to an existing Edge Config.
|
|
1008
835
|
*/
|
|
@@ -1020,7 +847,7 @@ const operationsByTag = {
|
|
|
1020
847
|
listDeploymentFiles,
|
|
1021
848
|
getDeploymentFileContents
|
|
1022
849
|
},
|
|
1023
|
-
certs: { getCertById, removeCert,
|
|
850
|
+
certs: { getCertById, removeCert, uploadCert, issueCert },
|
|
1024
851
|
user: { listUserEvents, getAuthUser, requestDelete },
|
|
1025
852
|
aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
|
|
1026
853
|
authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
|