vercel-api-js 0.1.21 → 0.1.23

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.21 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.1.23 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 8.9s
7
+ created dist/index.cjs, dist/index.mjs in 8.6s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 8.5s
10
+ created dist/index.d.ts in 7.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 2da8330: [OpenAPI] Spec updates for vercel-api-js
8
+ - 73631f0: [OpenAPI] Add pause project endpoints
9
+
10
+ ## 0.1.22
11
+
12
+ ### Patch Changes
13
+
14
+ - 352a83a: [OpenAPI] Spec updates for vercel-api-js
15
+ - f587d3d: [OpenAPI] Spec updates for vercel-api-js
16
+ - a267e20: [OpenAPI] Spec updates for vercel-api-js
17
+ - 64b8c15: [OpenAPI] Spec updates for vercel-api-js
18
+
3
19
  ## 0.1.21
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
  /**
@@ -268,7 +268,7 @@ const getDomain = (variables, signal) => fetch$1({
268
268
  signal
269
269
  });
270
270
  /**
271
- * Retrieves a list of domains registered for the authenticating user. By default it returns the last 20 domains if no limit is provided.
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.
272
272
  */
273
273
  const getDomains = (variables, signal) => fetch$1({
274
274
  url: '/v5/domains',
@@ -378,7 +378,7 @@ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations
378
378
  */
379
379
  const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
380
380
  /**
381
- * 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.
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.
382
382
  */
383
383
  const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
384
384
  /**
@@ -429,7 +429,19 @@ const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-
429
429
  */
430
430
  const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
431
431
  /**
432
- * Allows to retrieve the list of projects of the authenticated user. The list will be paginated and the provided query parameters allow filtering the returned projects.
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.
433
445
  */
434
446
  const getProjects = (variables, signal) => fetch$1({
435
447
  url: '/v9/projects',
@@ -517,6 +529,24 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
517
529
  * 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.
518
530
  */
519
531
  const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
532
+ /**
533
+ * Pause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project disables auto assigning custom production domains and blocks the active Production Deployment then the request will return with 200 status code.
534
+ */
535
+ const pauseProject = (variables, signal) => fetch$1({
536
+ url: '/v1/projects/{projectId}/pause',
537
+ method: 'post',
538
+ ...variables,
539
+ signal
540
+ });
541
+ /**
542
+ * Unpause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project enables auto assigning custom production domains and unblocks the active Production Deployment then the request will return with 200 status code.
543
+ */
544
+ const unpauseProject = (variables, signal) => fetch$1({
545
+ url: '/v1/projects/{projectId}/unpause',
546
+ method: 'post',
547
+ ...variables,
548
+ signal
549
+ });
520
550
  /**
521
551
  * Get a paginated list of team members for the provided team.
522
552
  */
@@ -564,12 +594,7 @@ const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamI
564
594
  /**
565
595
  * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
566
596
  */
567
- const removeTeamMember = (variables, signal) => fetch$1({
568
- url: '/v1/teams/{teamId}/members/{uid}',
569
- method: 'delete',
570
- ...variables,
571
- signal
572
- });
597
+ const removeTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'delete', ...variables, signal });
573
598
  /**
574
599
  * Get information for the Team specified by the `teamId` parameter.
575
600
  */
@@ -736,11 +761,11 @@ const deleteAlias = (variables, signal) => fetch$1({
736
761
  signal
737
762
  });
738
763
  /**
739
- * Retrieves all Aliases for the Deployment with the given ID. The authenticated User must own the deployment.
764
+ * Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
740
765
  */
741
766
  const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
742
767
  /**
743
- * 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.
768
+ * 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.
744
769
  */
745
770
  const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
746
771
  /**
@@ -788,7 +813,7 @@ const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deploymen
788
813
  */
789
814
  const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
790
815
  /**
791
- * 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`.
816
+ * 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`.
792
817
  */
793
818
  const getDeployments = (variables, signal) => fetch$1({
794
819
  url: '/v6/deployments',
@@ -819,7 +844,7 @@ const emailLogin = (variables, signal) => fetch$1({
819
844
  */
820
845
  const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
821
846
  /**
822
- * 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.
847
+ * 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.
823
848
  */
824
849
  const getSecrets = (variables, signal) => fetch$1({
825
850
  url: '/v3/secrets',
@@ -837,7 +862,7 @@ const createSecret = (variables, signal) => fetch$1({
837
862
  signal
838
863
  });
839
864
  /**
840
- * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
865
+ * Enables to edit the name of a secret. The name has to be unique to the user or team’s secrets.
841
866
  */
842
867
  const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
843
868
  /**
@@ -850,7 +875,7 @@ const getSecret = (variables, signal) => fetch$1({
850
875
  signal
851
876
  });
852
877
  /**
853
- * This deletes the user's secret defined in the URL.
878
+ * This deletes the user or team’s secret defined in the URL.
854
879
  */
855
880
  const deleteSecret = (variables, signal) => fetch$1({
856
881
  url: '/v2/secrets/{idOrName}',
@@ -878,7 +903,9 @@ const operationsByTag = {
878
903
  getProjectEnv,
879
904
  createProjectEnv,
880
905
  removeProjectEnv,
881
- editProjectEnv
906
+ editProjectEnv,
907
+ pauseProject,
908
+ unpauseProject
882
909
  },
883
910
  deployments: {
884
911
  getDeploymentEvents,
@@ -929,6 +956,7 @@ const operationsByTag = {
929
956
  getConfigurableLogDrains,
930
957
  createConfigurableLogDrain
931
958
  },
959
+ projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
932
960
  teams: {
933
961
  getTeamMembers,
934
962
  inviteUserToTeam,