vercel-api-js 0.1.17 → 0.1.19

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.19 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 7.3s
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.1s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ab0e65: [OpenAPI] Spec updates for vercel-api-js
8
+
9
+ ## 0.1.18
10
+
11
+ ### Patch Changes
12
+
13
+ - 8570cfa: [OpenAPI] Spec updates for vercel-api-js
14
+
3
15
  ## 0.1.17
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */
17
- /* global Reflect, Promise */
17
+ /* global Reflect, Promise, SuppressedError, Symbol */
18
18
 
19
19
 
20
20
  function __classPrivateFieldGet(receiver, state, kind, f) {
@@ -28,7 +28,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
28
28
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
29
29
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
30
30
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
31
- }
31
+ }
32
+
33
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
+ var e = new Error(message);
35
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
+ };
32
37
 
33
38
  function notEmpty(value) {
34
39
  return value !== null && value !== undefined;
@@ -137,6 +142,10 @@ const artifactQuery = (variables, signal) => fetch$1({
137
142
  ...variables,
138
143
  signal
139
144
  });
145
+ /**
146
+ * Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
147
+ */
148
+ const createCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks', method: 'post', ...variables, signal });
140
149
  /**
141
150
  * List all of the checks created for a deployment.
142
151
  */
@@ -146,10 +155,6 @@ const getAllChecks = (variables, signal) => fetch$1({
146
155
  ...variables,
147
156
  signal
148
157
  });
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
158
  /**
154
159
  * Return a detailed response for a single check.
155
160
  */
@@ -172,6 +177,10 @@ const rerequestCheck = (variables, signal) => fetch$1({
172
177
  ...variables,
173
178
  signal
174
179
  });
180
+ /**
181
+ * Update the cron job feature on a project.
182
+ */
183
+ const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-cache/projects/{projectId}', method: 'patch', ...variables, signal });
175
184
  /**
176
185
  * 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
186
  */
@@ -206,14 +215,14 @@ const checkDomainPrice = (variables, signal) => fetch$1({
206
215
  ...variables,
207
216
  signal
208
217
  });
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
218
  /**
214
219
  * 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
220
  */
216
221
  const getRecords = (variables, signal) => fetch$1({ url: '/v4/domains/{domain}/records', method: 'get', ...variables, signal });
222
+ /**
223
+ * Creates a DNS record for a domain.
224
+ */
225
+ const createRecord = (variables, signal) => fetch$1({ url: '/v2/domains/{domain}/records', method: 'post', ...variables, signal });
217
226
  /**
218
227
  * Updates an existing DNS record for a domain name.
219
228
  */
@@ -507,7 +516,12 @@ const getTeamMembers = (variables, signal) => fetch$1({
507
516
  /**
508
517
  * Invite a user to join the team specified in the URL. The authenticated user needs to be an `OWNER` in order to successfully invoke this endpoint. The user can be specified with an email or an ID. If both email and ID are provided, ID will take priority.
509
518
  */
510
- const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
519
+ const inviteUserToTeam = (variables, signal) => fetch$1({
520
+ url: '/v1/teams/{teamId}/members',
521
+ method: 'post',
522
+ ...variables,
523
+ signal
524
+ });
511
525
  /**
512
526
  * Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.
513
527
  */
@@ -607,20 +621,20 @@ const deleteTeamInviteCode = (variables, signal) => fetch$1({
607
621
  */
608
622
  const uploadFile = (variables, signal) => fetch$1({ url: '/v2/files', method: 'post', ...variables, signal });
609
623
  /**
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.
624
+ * Retrieves information related to the currently authenticated User.
611
625
  */
612
- const requestDelete = (variables, signal) => fetch$1({
613
- url: '/v1/user',
614
- method: 'delete',
626
+ const getAuthUser = (variables, signal) => fetch$1({
627
+ url: '/v2/user',
628
+ method: 'get',
615
629
  ...variables,
616
630
  signal
617
631
  });
618
632
  /**
619
- * Retrieves information related to the currently authenticated User.
633
+ * 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
634
  */
621
- const getAuthUser = (variables, signal) => fetch$1({
622
- url: '/v2/user',
623
- method: 'get',
635
+ const requestDelete = (variables, signal) => fetch$1({
636
+ url: '/v1/user',
637
+ method: 'delete',
624
638
  ...variables,
625
639
  signal
626
640
  });
@@ -687,19 +701,19 @@ const deleteWebhook = (variables, signal) => fetch$1({
687
701
  signal
688
702
  });
689
703
  /**
690
- * Retrieves an Alias for the given host name or alias ID.
704
+ * 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
705
  */
692
- const getAlias = (variables, signal) => fetch$1({
693
- url: '/v4/aliases/{idOrAlias}',
706
+ const listAliases = (variables, signal) => fetch$1({
707
+ url: '/v4/aliases',
694
708
  method: 'get',
695
709
  ...variables,
696
710
  signal
697
711
  });
698
712
  /**
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.
713
+ * Retrieves an Alias for the given host name or alias ID.
700
714
  */
701
- const listAliases = (variables, signal) => fetch$1({
702
- url: '/v4/aliases',
715
+ const getAlias = (variables, signal) => fetch$1({
716
+ url: '/v4/aliases/{idOrAlias}',
703
717
  method: 'get',
704
718
  ...variables,
705
719
  signal
@@ -774,6 +788,15 @@ const getDeployments = (variables, signal) => fetch$1({
774
788
  ...variables,
775
789
  signal
776
790
  });
791
+ /**
792
+ * 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`.
793
+ */
794
+ const verifyToken = (variables, signal) => fetch$1({
795
+ url: '/registration/verify',
796
+ method: 'get',
797
+ ...variables,
798
+ signal
799
+ });
777
800
  /**
778
801
  * 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
802
  */
@@ -784,18 +807,18 @@ const emailLogin = (variables, signal) => fetch$1({
784
807
  signal
785
808
  });
786
809
  /**
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`.
810
+ * 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
811
  */
789
- const verifyToken = (variables, signal) => fetch$1({
790
- url: '/registration/verify',
812
+ const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
813
+ /**
814
+ * 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.
815
+ */
816
+ const getSecrets = (variables, signal) => fetch$1({
817
+ url: '/v3/secrets',
791
818
  method: 'get',
792
819
  ...variables,
793
820
  signal
794
821
  });
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
822
  /**
800
823
  * Allows to create a new secret.
801
824
  */
@@ -809,15 +832,6 @@ const createSecret = (variables, signal) => fetch$1({
809
832
  * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
810
833
  */
811
834
  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
835
  /**
822
836
  * Retrieves the information for a specific secret by passing either the secret id or name in the URL.
823
837
  */
@@ -838,7 +852,26 @@ const deleteSecret = (variables, signal) => fetch$1({
838
852
  });
839
853
  const operationsByTag = {
840
854
  artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
841
- checks: { getAllChecks, createCheck, getCheck, updateCheck, rerequestCheck },
855
+ checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
856
+ projects: {
857
+ updateProjectDataCache,
858
+ getProjects,
859
+ createProject,
860
+ getProject,
861
+ updateProject,
862
+ deleteProject,
863
+ getProjectDomains,
864
+ getProjectDomain,
865
+ updateProjectDomain,
866
+ removeProjectDomain,
867
+ addProjectDomain,
868
+ verifyProjectDomain,
869
+ filterProjectEnvs,
870
+ getProjectEnv,
871
+ createProjectEnv,
872
+ removeProjectEnv,
873
+ editProjectEnv
874
+ },
842
875
  deployments: {
843
876
  getDeploymentEvents,
844
877
  getDeployment,
@@ -860,7 +893,7 @@ const operationsByTag = {
860
893
  createOrTransferDomain,
861
894
  deleteDomain
862
895
  },
863
- dns: { createRecord, getRecords, updateRecord, removeRecord },
896
+ dns: { getRecords, createRecord, updateRecord, removeRecord },
864
897
  edgeConfig: {
865
898
  getEdgeConfigs,
866
899
  createEdgeConfig,
@@ -875,7 +908,7 @@ const operationsByTag = {
875
908
  getEdgeConfigToken,
876
909
  createEdgeConfigToken
877
910
  },
878
- user: { listUserEvents, requestDelete, getAuthUser },
911
+ user: { listUserEvents, getAuthUser, requestDelete },
879
912
  integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
880
913
  logDrains: {
881
914
  getIntegrationLogDrains,
@@ -886,24 +919,6 @@ const operationsByTag = {
886
919
  getConfigurableLogDrains,
887
920
  createConfigurableLogDrain
888
921
  },
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
922
  teams: {
908
923
  getTeamMembers,
909
924
  inviteUserToTeam,
@@ -919,11 +934,11 @@ const operationsByTag = {
919
934
  deleteTeam,
920
935
  deleteTeamInviteCode
921
936
  },
922
- authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, emailLogin, verifyToken },
937
+ authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
923
938
  webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
924
- aliases: { getAlias, listAliases, deleteAlias, listDeploymentAliases, assignAlias },
939
+ aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
925
940
  certs: { getCertById, removeCert, issueCert, uploadCert },
926
- secrets: { createSecret, renameSecret, getSecrets, getSecret, deleteSecret }
941
+ secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret }
927
942
  };
928
943
 
929
944
  function formEncoded(data) {