vercel-api-js 0.1.20 → 0.1.22
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 +16 -0
- package/dist/index.cjs +40 -17
- package/dist/index.d.ts +1058 -966
- package/dist/index.mjs +40 -17
- 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.22 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.2s[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 [1m10.4s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# vercel-api-js
|
|
2
2
|
|
|
3
|
+
## 0.1.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 352a83a: [OpenAPI] Spec updates for vercel-api-js
|
|
8
|
+
- f587d3d: [OpenAPI] Spec updates for vercel-api-js
|
|
9
|
+
- a267e20: [OpenAPI] Spec updates for vercel-api-js
|
|
10
|
+
- 64b8c15: [OpenAPI] Spec updates for vercel-api-js
|
|
11
|
+
|
|
12
|
+
## 0.1.21
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 8faaa44: [OpenAPI] Add patch domain endpoint
|
|
17
|
+
- 3b9bfd6: [OpenAPI] Add getDomainTransfer endpoint
|
|
18
|
+
|
|
3
19
|
## 0.1.20
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -186,7 +186,7 @@ const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-c
|
|
|
186
186
|
*/
|
|
187
187
|
const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
|
|
188
188
|
/**
|
|
189
|
-
* Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user is an owner of the deployment.
|
|
189
|
+
* Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user or team is an owner of the deployment.
|
|
190
190
|
*/
|
|
191
191
|
const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{idOrUrl}', method: 'get', ...variables, signal });
|
|
192
192
|
/**
|
|
@@ -245,6 +245,15 @@ const checkDomainStatus = (variables, signal) => fetch$1({
|
|
|
245
245
|
...variables,
|
|
246
246
|
signal
|
|
247
247
|
});
|
|
248
|
+
/**
|
|
249
|
+
* Fetch domain transfer availability or transfer status if a transfer is in progress.
|
|
250
|
+
*/
|
|
251
|
+
const getDomainTransfer = (variables, signal) => fetch$1({
|
|
252
|
+
url: '/v1/domains/{domain}/registry',
|
|
253
|
+
method: 'get',
|
|
254
|
+
...variables,
|
|
255
|
+
signal
|
|
256
|
+
});
|
|
248
257
|
/**
|
|
249
258
|
* Get a Domain's configuration.
|
|
250
259
|
*/
|
|
@@ -259,7 +268,7 @@ const getDomain = (variables, signal) => fetch$1({
|
|
|
259
268
|
signal
|
|
260
269
|
});
|
|
261
270
|
/**
|
|
262
|
-
* Retrieves a list of domains registered for the
|
|
271
|
+
* Retrieves a list of domains registered for the authenticated user or team. By default it returns the last 20 domains if no limit is provided.
|
|
263
272
|
*/
|
|
264
273
|
const getDomains = (variables, signal) => fetch$1({
|
|
265
274
|
url: '/v5/domains',
|
|
@@ -268,9 +277,13 @@ const getDomains = (variables, signal) => fetch$1({
|
|
|
268
277
|
signal
|
|
269
278
|
});
|
|
270
279
|
/**
|
|
271
|
-
* This endpoint is used for
|
|
280
|
+
* This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
|
|
272
281
|
*/
|
|
273
282
|
const createOrTransferDomain = (variables, signal) => fetch$1({ url: '/v5/domains', method: 'post', ...variables, signal });
|
|
283
|
+
/**
|
|
284
|
+
* Update or move apex domain.
|
|
285
|
+
*/
|
|
286
|
+
const patchDomain = (variables, signal) => fetch$1({ url: '/v3/domains/{domain}', method: 'patch', ...variables, signal });
|
|
274
287
|
/**
|
|
275
288
|
* Delete a previously registered domain name from Vercel. Deleting a domain will automatically remove any associated aliases.
|
|
276
289
|
*/
|
|
@@ -365,7 +378,7 @@ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations
|
|
|
365
378
|
*/
|
|
366
379
|
const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
|
|
367
380
|
/**
|
|
368
|
-
* Retrieves a list of all Integration log drains that are defined for the
|
|
381
|
+
* Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
|
|
369
382
|
*/
|
|
370
383
|
const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
|
|
371
384
|
/**
|
|
@@ -416,7 +429,19 @@ const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-
|
|
|
416
429
|
*/
|
|
417
430
|
const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
|
|
418
431
|
/**
|
|
419
|
-
*
|
|
432
|
+
* Lists all members of a project.
|
|
433
|
+
*/
|
|
434
|
+
const getProjectMembers = (variables, signal) => fetch$1({ url: '/v1/projects/{idOrName}/members', method: 'get', ...variables, signal });
|
|
435
|
+
/**
|
|
436
|
+
* Adds a new member to the project.
|
|
437
|
+
*/
|
|
438
|
+
const addProjectMember = (variables, signal) => fetch$1({ url: '/v1/projects/{idOrName}/members', method: 'post', ...variables, signal });
|
|
439
|
+
/**
|
|
440
|
+
* Remove a member from a specific project
|
|
441
|
+
*/
|
|
442
|
+
const removeProjectMember = (variables, signal) => fetch$1({ url: '/v1/projects/{idOrName}/members/{uid}', method: 'delete', ...variables, signal });
|
|
443
|
+
/**
|
|
444
|
+
* Allows to retrieve the list of projects of the authenticated user or team. The list will be paginated and the provided query parameters allow filtering the returned projects.
|
|
420
445
|
*/
|
|
421
446
|
const getProjects = (variables, signal) => fetch$1({
|
|
422
447
|
url: '/v9/projects',
|
|
@@ -551,12 +576,7 @@ const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamI
|
|
|
551
576
|
/**
|
|
552
577
|
* Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
|
|
553
578
|
*/
|
|
554
|
-
const removeTeamMember = (variables, signal) => fetch$1({
|
|
555
|
-
url: '/v1/teams/{teamId}/members/{uid}',
|
|
556
|
-
method: 'delete',
|
|
557
|
-
...variables,
|
|
558
|
-
signal
|
|
559
|
-
});
|
|
579
|
+
const removeTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'delete', ...variables, signal });
|
|
560
580
|
/**
|
|
561
581
|
* Get information for the Team specified by the `teamId` parameter.
|
|
562
582
|
*/
|
|
@@ -723,11 +743,11 @@ const deleteAlias = (variables, signal) => fetch$1({
|
|
|
723
743
|
signal
|
|
724
744
|
});
|
|
725
745
|
/**
|
|
726
|
-
* Retrieves all Aliases for the Deployment with the given ID. The authenticated
|
|
746
|
+
* Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
|
|
727
747
|
*/
|
|
728
748
|
const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
|
|
729
749
|
/**
|
|
730
|
-
* 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.
|
|
750
|
+
* Creates a new alias for the deployment with the given deployment ID. The authenticated user or team 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.
|
|
731
751
|
*/
|
|
732
752
|
const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
|
|
733
753
|
/**
|
|
@@ -775,7 +795,7 @@ const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deploymen
|
|
|
775
795
|
*/
|
|
776
796
|
const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
|
|
777
797
|
/**
|
|
778
|
-
* List deployments under the
|
|
798
|
+
* List deployments under the authenticated user or team. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
|
|
779
799
|
*/
|
|
780
800
|
const getDeployments = (variables, signal) => fetch$1({
|
|
781
801
|
url: '/v6/deployments',
|
|
@@ -806,7 +826,7 @@ const emailLogin = (variables, signal) => fetch$1({
|
|
|
806
826
|
*/
|
|
807
827
|
const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
|
|
808
828
|
/**
|
|
809
|
-
* Retrieves the active Vercel secrets for the authenticated user. By default it returns 20 secrets. The rest can be retrieved using the pagination options. The body will contain an entry for each secret.
|
|
829
|
+
* Retrieves the active Vercel secrets for the authenticated user or team. By default it returns 20 secrets. The rest can be retrieved using the pagination options. The body will contain an entry for each secret.
|
|
810
830
|
*/
|
|
811
831
|
const getSecrets = (variables, signal) => fetch$1({
|
|
812
832
|
url: '/v3/secrets',
|
|
@@ -824,7 +844,7 @@ const createSecret = (variables, signal) => fetch$1({
|
|
|
824
844
|
signal
|
|
825
845
|
});
|
|
826
846
|
/**
|
|
827
|
-
* Enables to edit the name of a
|
|
847
|
+
* Enables to edit the name of a secret. The name has to be unique to the user or team’s secrets.
|
|
828
848
|
*/
|
|
829
849
|
const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
|
|
830
850
|
/**
|
|
@@ -837,7 +857,7 @@ const getSecret = (variables, signal) => fetch$1({
|
|
|
837
857
|
signal
|
|
838
858
|
});
|
|
839
859
|
/**
|
|
840
|
-
* This deletes the user
|
|
860
|
+
* This deletes the user or team’s secret defined in the URL.
|
|
841
861
|
*/
|
|
842
862
|
const deleteSecret = (variables, signal) => fetch$1({
|
|
843
863
|
url: '/v2/secrets/{idOrName}',
|
|
@@ -882,10 +902,12 @@ const operationsByTag = {
|
|
|
882
902
|
buyDomain,
|
|
883
903
|
checkDomainPrice,
|
|
884
904
|
checkDomainStatus,
|
|
905
|
+
getDomainTransfer,
|
|
885
906
|
getDomainConfig,
|
|
886
907
|
getDomain,
|
|
887
908
|
getDomains,
|
|
888
909
|
createOrTransferDomain,
|
|
910
|
+
patchDomain,
|
|
889
911
|
deleteDomain
|
|
890
912
|
},
|
|
891
913
|
dns: { getRecords, createRecord, updateRecord, removeRecord },
|
|
@@ -914,6 +936,7 @@ const operationsByTag = {
|
|
|
914
936
|
getConfigurableLogDrains,
|
|
915
937
|
createConfigurableLogDrain
|
|
916
938
|
},
|
|
939
|
+
projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
|
|
917
940
|
teams: {
|
|
918
941
|
getTeamMembers,
|
|
919
942
|
inviteUserToTeam,
|