vercel-api-js 0.1.21 → 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.
@@ -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.22 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 7.2s
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 10.4s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 0.1.21
4
13
 
5
14
  ### 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',
@@ -564,12 +576,7 @@ const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamI
564
576
  /**
565
577
  * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
566
578
  */
567
- const removeTeamMember = (variables, signal) => fetch$1({
568
- url: '/v1/teams/{teamId}/members/{uid}',
569
- method: 'delete',
570
- ...variables,
571
- signal
572
- });
579
+ const removeTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'delete', ...variables, signal });
573
580
  /**
574
581
  * Get information for the Team specified by the `teamId` parameter.
575
582
  */
@@ -736,11 +743,11 @@ const deleteAlias = (variables, signal) => fetch$1({
736
743
  signal
737
744
  });
738
745
  /**
739
- * Retrieves all Aliases for the Deployment with the given ID. The authenticated User must own the deployment.
746
+ * Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
740
747
  */
741
748
  const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
742
749
  /**
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.
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.
744
751
  */
745
752
  const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
746
753
  /**
@@ -788,7 +795,7 @@ const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deploymen
788
795
  */
789
796
  const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
790
797
  /**
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`.
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`.
792
799
  */
793
800
  const getDeployments = (variables, signal) => fetch$1({
794
801
  url: '/v6/deployments',
@@ -819,7 +826,7 @@ const emailLogin = (variables, signal) => fetch$1({
819
826
  */
820
827
  const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
821
828
  /**
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.
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.
823
830
  */
824
831
  const getSecrets = (variables, signal) => fetch$1({
825
832
  url: '/v3/secrets',
@@ -837,7 +844,7 @@ const createSecret = (variables, signal) => fetch$1({
837
844
  signal
838
845
  });
839
846
  /**
840
- * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
847
+ * Enables to edit the name of a secret. The name has to be unique to the user or team’s secrets.
841
848
  */
842
849
  const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
843
850
  /**
@@ -850,7 +857,7 @@ const getSecret = (variables, signal) => fetch$1({
850
857
  signal
851
858
  });
852
859
  /**
853
- * This deletes the user's secret defined in the URL.
860
+ * This deletes the user or team’s secret defined in the URL.
854
861
  */
855
862
  const deleteSecret = (variables, signal) => fetch$1({
856
863
  url: '/v2/secrets/{idOrName}',
@@ -929,6 +936,7 @@ const operationsByTag = {
929
936
  getConfigurableLogDrains,
930
937
  createConfigurableLogDrain
931
938
  },
939
+ projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
932
940
  teams: {
933
941
  getTeamMembers,
934
942
  inviteUserToTeam,