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.
@@ -1,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.1.17 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
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
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 6.3s
7
+ created dist/index.cjs, dist/index.mjs in 6.4s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 7.4s
10
+ created dist/index.d.ts in 7.9s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 8570cfa: [OpenAPI] Spec updates for vercel-api-js
8
+
3
9
  ## 0.1.17
4
10
 
5
11
  ### Patch Changes
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
- * 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.
614
+ * Retrieves information related to the currently authenticated User.
611
615
  */
612
- const requestDelete = (variables, signal) => fetch$1({
613
- url: '/v1/user',
614
- method: 'delete',
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
- * Retrieves information related to the currently authenticated User.
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 getAuthUser = (variables, signal) => fetch$1({
622
- url: '/v2/user',
623
- method: 'get',
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 an Alias for the given host name or alias ID.
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 getAlias = (variables, signal) => fetch$1({
693
- url: '/v4/aliases/{idOrAlias}',
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 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.
703
+ * Retrieves an Alias for the given host name or alias ID.
700
704
  */
701
- const listAliases = (variables, signal) => fetch$1({
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
- * 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`.
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 verifyToken = (variables, signal) => fetch$1({
790
- url: '/registration/verify',
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: { getAllChecks, createCheck, getCheck, updateCheck, rerequestCheck },
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: { createRecord, getRecords, updateRecord, removeRecord },
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, requestDelete, getAuthUser },
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, emailLogin, verifyToken },
927
+ authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
923
928
  webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
924
- aliases: { getAlias, listAliases, deleteAlias, listDeploymentAliases, assignAlias },
929
+ aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
925
930
  certs: { getCertById, removeCert, issueCert, uploadCert },
926
- secrets: { createSecret, renameSecret, getSecrets, getSecret, deleteSecret }
931
+ secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret }
927
932
  };
928
933
 
929
934
  function formEncoded(data) {