vercel-api-js 0.1.17 → 0.1.18
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 +67 -62
- package/dist/index.d.ts +2112 -1359
- package/dist/index.mjs +67 -62
- 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.18 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 [1m6.
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m6.4s[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 [1m7.
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m7.9s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -137,6 +137,10 @@ const artifactQuery = (variables, signal) => fetch$1({
|
|
|
137
137
|
...variables,
|
|
138
138
|
signal
|
|
139
139
|
});
|
|
140
|
+
/**
|
|
141
|
+
* Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
142
|
+
*/
|
|
143
|
+
const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
|
|
140
144
|
/**
|
|
141
145
|
* List all of the checks created for a deployment.
|
|
142
146
|
*/
|
|
@@ -146,10 +150,6 @@ const getAllChecks = (variables, signal) => fetch$1({
|
|
|
146
150
|
...variables,
|
|
147
151
|
signal
|
|
148
152
|
});
|
|
149
|
-
/**
|
|
150
|
-
* Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
151
|
-
*/
|
|
152
|
-
const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
|
|
153
153
|
/**
|
|
154
154
|
* Return a detailed response for a single check.
|
|
155
155
|
*/
|
|
@@ -172,6 +172,10 @@ const rerequestCheck = (variables, signal) => fetch$1({
|
|
|
172
172
|
...variables,
|
|
173
173
|
signal
|
|
174
174
|
});
|
|
175
|
+
/**
|
|
176
|
+
* Update the cron job feature on a project.
|
|
177
|
+
*/
|
|
178
|
+
const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-cache/projects/{projectId}', method: 'patch', ...variables, signal });
|
|
175
179
|
/**
|
|
176
180
|
* 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.
|
|
177
181
|
*/
|
|
@@ -206,14 +210,14 @@ const checkDomainPrice = (variables, signal) => fetch$1({
|
|
|
206
210
|
...variables,
|
|
207
211
|
signal
|
|
208
212
|
});
|
|
209
|
-
/**
|
|
210
|
-
* Creates a DNS record for a domain.
|
|
211
|
-
*/
|
|
212
|
-
const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}/records', method: 'post', ...variables, signal });
|
|
213
213
|
/**
|
|
214
214
|
* Retrieves a list of DNS records created for a domain name. By default it returns 20 records if no limit is provided. The rest can be retrieved using the pagination options.
|
|
215
215
|
*/
|
|
216
216
|
const getRecords = (variables, signal) => fetch$1({ url: '/v4/domains/{domain}/records', method: 'get', ...variables, signal });
|
|
217
|
+
/**
|
|
218
|
+
* Creates a DNS record for a domain.
|
|
219
|
+
*/
|
|
220
|
+
const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}/records', method: 'post', ...variables, signal });
|
|
217
221
|
/**
|
|
218
222
|
* Updates an existing DNS record for a domain name.
|
|
219
223
|
*/
|
|
@@ -607,20 +611,20 @@ const deleteTeamInviteCode = (variables, signal) => fetch$1({
|
|
|
607
611
|
*/
|
|
608
612
|
const uploadFile = (variables, signal) => fetch$1({ url: '/v2/files', method: 'post', ...variables, signal });
|
|
609
613
|
/**
|
|
610
|
-
*
|
|
614
|
+
* Retrieves information related to the currently authenticated User.
|
|
611
615
|
*/
|
|
612
|
-
const
|
|
613
|
-
url: '/
|
|
614
|
-
method: '
|
|
616
|
+
const getAuthUser = (variables, signal) => fetch$1({
|
|
617
|
+
url: '/v2/user',
|
|
618
|
+
method: 'get',
|
|
615
619
|
...variables,
|
|
616
620
|
signal
|
|
617
621
|
});
|
|
618
622
|
/**
|
|
619
|
-
*
|
|
623
|
+
* Initiates the deletion process for the currently authenticated User, by sending a deletion confirmation email. The email contains a link that the user needs to visit in order to proceed with the deletion process.
|
|
620
624
|
*/
|
|
621
|
-
const
|
|
622
|
-
url: '/
|
|
623
|
-
method: '
|
|
625
|
+
const requestDelete = (variables, signal) => fetch$1({
|
|
626
|
+
url: '/v1/user',
|
|
627
|
+
method: 'delete',
|
|
624
628
|
...variables,
|
|
625
629
|
signal
|
|
626
630
|
});
|
|
@@ -687,19 +691,19 @@ const deleteWebhook = (variables, signal) => fetch$1({
|
|
|
687
691
|
signal
|
|
688
692
|
});
|
|
689
693
|
/**
|
|
690
|
-
* Retrieves
|
|
694
|
+
* Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
|
|
691
695
|
*/
|
|
692
|
-
const
|
|
693
|
-
url: '/v4/aliases
|
|
696
|
+
const listAliases = (variables, signal) => fetch$1({
|
|
697
|
+
url: '/v4/aliases',
|
|
694
698
|
method: 'get',
|
|
695
699
|
...variables,
|
|
696
700
|
signal
|
|
697
701
|
});
|
|
698
702
|
/**
|
|
699
|
-
* Retrieves
|
|
703
|
+
* Retrieves an Alias for the given host name or alias ID.
|
|
700
704
|
*/
|
|
701
|
-
const
|
|
702
|
-
url: '/v4/aliases',
|
|
705
|
+
const getAlias = (variables, signal) => fetch$1({
|
|
706
|
+
url: '/v4/aliases/{idOrAlias}',
|
|
703
707
|
method: 'get',
|
|
704
708
|
...variables,
|
|
705
709
|
signal
|
|
@@ -774,6 +778,15 @@ const getDeployments = (variables, signal) => fetch$1({
|
|
|
774
778
|
...variables,
|
|
775
779
|
signal
|
|
776
780
|
});
|
|
781
|
+
/**
|
|
782
|
+
* 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`.
|
|
783
|
+
*/
|
|
784
|
+
const verifyToken = (variables, signal) => fetch$1({
|
|
785
|
+
url: '/registration/verify',
|
|
786
|
+
method: 'get',
|
|
787
|
+
...variables,
|
|
788
|
+
signal
|
|
789
|
+
});
|
|
777
790
|
/**
|
|
778
791
|
* Request a new login for a user to get a token. This will respond with a verification token and send an email to confirm the request. Once confirmed you can use the verification token to get an authentication token.
|
|
779
792
|
*/
|
|
@@ -784,18 +797,18 @@ const emailLogin = (variables, signal) => fetch$1({
|
|
|
784
797
|
signal
|
|
785
798
|
});
|
|
786
799
|
/**
|
|
787
|
-
*
|
|
800
|
+
* 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.
|
|
788
801
|
*/
|
|
789
|
-
const
|
|
790
|
-
|
|
802
|
+
const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
|
|
803
|
+
/**
|
|
804
|
+
* 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.
|
|
805
|
+
*/
|
|
806
|
+
const getSecrets = (variables, signal) => fetch$1({
|
|
807
|
+
url: '/v3/secrets',
|
|
791
808
|
method: 'get',
|
|
792
809
|
...variables,
|
|
793
810
|
signal
|
|
794
811
|
});
|
|
795
|
-
/**
|
|
796
|
-
* 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.
|
|
797
|
-
*/
|
|
798
|
-
const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
|
|
799
812
|
/**
|
|
800
813
|
* Allows to create a new secret.
|
|
801
814
|
*/
|
|
@@ -809,15 +822,6 @@ const createSecret = (variables, signal) => fetch$1({
|
|
|
809
822
|
* Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
|
|
810
823
|
*/
|
|
811
824
|
const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
|
|
812
|
-
/**
|
|
813
|
-
* 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.
|
|
814
|
-
*/
|
|
815
|
-
const getSecrets = (variables, signal) => fetch$1({
|
|
816
|
-
url: '/v3/secrets',
|
|
817
|
-
method: 'get',
|
|
818
|
-
...variables,
|
|
819
|
-
signal
|
|
820
|
-
});
|
|
821
825
|
/**
|
|
822
826
|
* Retrieves the information for a specific secret by passing either the secret id or name in the URL.
|
|
823
827
|
*/
|
|
@@ -838,7 +842,26 @@ const deleteSecret = (variables, signal) => fetch$1({
|
|
|
838
842
|
});
|
|
839
843
|
const operationsByTag = {
|
|
840
844
|
artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
|
|
841
|
-
checks: {
|
|
845
|
+
checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
|
|
846
|
+
projects: {
|
|
847
|
+
updateProjectDataCache,
|
|
848
|
+
getProjects,
|
|
849
|
+
createProject,
|
|
850
|
+
getProject,
|
|
851
|
+
updateProject,
|
|
852
|
+
deleteProject,
|
|
853
|
+
getProjectDomains,
|
|
854
|
+
getProjectDomain,
|
|
855
|
+
updateProjectDomain,
|
|
856
|
+
removeProjectDomain,
|
|
857
|
+
addProjectDomain,
|
|
858
|
+
verifyProjectDomain,
|
|
859
|
+
filterProjectEnvs,
|
|
860
|
+
getProjectEnv,
|
|
861
|
+
createProjectEnv,
|
|
862
|
+
removeProjectEnv,
|
|
863
|
+
editProjectEnv
|
|
864
|
+
},
|
|
842
865
|
deployments: {
|
|
843
866
|
getDeploymentEvents,
|
|
844
867
|
getDeployment,
|
|
@@ -860,7 +883,7 @@ const operationsByTag = {
|
|
|
860
883
|
createOrTransferDomain,
|
|
861
884
|
deleteDomain
|
|
862
885
|
},
|
|
863
|
-
dns: {
|
|
886
|
+
dns: { getRecords, createRecord, updateRecord, removeRecord },
|
|
864
887
|
edgeConfig: {
|
|
865
888
|
getEdgeConfigs,
|
|
866
889
|
createEdgeConfig,
|
|
@@ -875,7 +898,7 @@ const operationsByTag = {
|
|
|
875
898
|
getEdgeConfigToken,
|
|
876
899
|
createEdgeConfigToken
|
|
877
900
|
},
|
|
878
|
-
user: { listUserEvents,
|
|
901
|
+
user: { listUserEvents, getAuthUser, requestDelete },
|
|
879
902
|
integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
|
|
880
903
|
logDrains: {
|
|
881
904
|
getIntegrationLogDrains,
|
|
@@ -886,24 +909,6 @@ const operationsByTag = {
|
|
|
886
909
|
getConfigurableLogDrains,
|
|
887
910
|
createConfigurableLogDrain
|
|
888
911
|
},
|
|
889
|
-
projects: {
|
|
890
|
-
getProjects,
|
|
891
|
-
createProject,
|
|
892
|
-
getProject,
|
|
893
|
-
updateProject,
|
|
894
|
-
deleteProject,
|
|
895
|
-
getProjectDomains,
|
|
896
|
-
getProjectDomain,
|
|
897
|
-
updateProjectDomain,
|
|
898
|
-
removeProjectDomain,
|
|
899
|
-
addProjectDomain,
|
|
900
|
-
verifyProjectDomain,
|
|
901
|
-
filterProjectEnvs,
|
|
902
|
-
getProjectEnv,
|
|
903
|
-
createProjectEnv,
|
|
904
|
-
removeProjectEnv,
|
|
905
|
-
editProjectEnv
|
|
906
|
-
},
|
|
907
912
|
teams: {
|
|
908
913
|
getTeamMembers,
|
|
909
914
|
inviteUserToTeam,
|
|
@@ -919,11 +924,11 @@ const operationsByTag = {
|
|
|
919
924
|
deleteTeam,
|
|
920
925
|
deleteTeamInviteCode
|
|
921
926
|
},
|
|
922
|
-
authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken,
|
|
927
|
+
authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
|
|
923
928
|
webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
|
|
924
|
-
aliases: {
|
|
929
|
+
aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
|
|
925
930
|
certs: { getCertById, removeCert, issueCert, uploadCert },
|
|
926
|
-
secrets: { createSecret, renameSecret,
|
|
931
|
+
secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret }
|
|
927
932
|
};
|
|
928
933
|
|
|
929
934
|
function formEncoded(data) {
|