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.
package/dist/index.mjs CHANGED
@@ -184,7 +184,7 @@ const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-c
184
184
  */
185
185
  const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
186
186
  /**
187
- * 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.
187
+ * 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.
188
188
  */
189
189
  const getDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{idOrUrl}', method: 'get', ...variables, signal });
190
190
  /**
@@ -266,7 +266,7 @@ const getDomain = (variables, signal) => fetch$1({
266
266
  signal
267
267
  });
268
268
  /**
269
- * Retrieves a list of domains registered for the authenticating user. By default it returns the last 20 domains if no limit is provided.
269
+ * 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.
270
270
  */
271
271
  const getDomains = (variables, signal) => fetch$1({
272
272
  url: '/v5/domains',
@@ -376,7 +376,7 @@ const getConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations
376
376
  */
377
377
  const deleteConfiguration = (variables, signal) => fetch$1({ url: '/v1/integrations/configuration/{id}', method: 'delete', ...variables, signal });
378
378
  /**
379
- * 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.
379
+ * 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.
380
380
  */
381
381
  const getIntegrationLogDrains = (variables, signal) => fetch$1({ url: '/v2/integrations/log-drains', method: 'get', ...variables, signal });
382
382
  /**
@@ -427,7 +427,19 @@ const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-
427
427
  */
428
428
  const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'post', ...variables, signal });
429
429
  /**
430
- * 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.
430
+ * Lists all members of a project.
431
+ */
432
+ const getProjectMembers = (variables, signal) => fetch$1({ url: '/v1/projects/{idOrName}/members', method: 'get', ...variables, signal });
433
+ /**
434
+ * Adds a new member to the project.
435
+ */
436
+ const addProjectMember = (variables, signal) => fetch$1({ url: '/v1/projects/{idOrName}/members', method: 'post', ...variables, signal });
437
+ /**
438
+ * Remove a member from a specific project
439
+ */
440
+ const removeProjectMember = (variables, signal) => fetch$1({ url: '/v1/projects/{idOrName}/members/{uid}', method: 'delete', ...variables, signal });
441
+ /**
442
+ * 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.
431
443
  */
432
444
  const getProjects = (variables, signal) => fetch$1({
433
445
  url: '/v9/projects',
@@ -562,12 +574,7 @@ const updateTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamI
562
574
  /**
563
575
  * Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
564
576
  */
565
- const removeTeamMember = (variables, signal) => fetch$1({
566
- url: '/v1/teams/{teamId}/members/{uid}',
567
- method: 'delete',
568
- ...variables,
569
- signal
570
- });
577
+ const removeTeamMember = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members/{uid}', method: 'delete', ...variables, signal });
571
578
  /**
572
579
  * Get information for the Team specified by the `teamId` parameter.
573
580
  */
@@ -734,11 +741,11 @@ const deleteAlias = (variables, signal) => fetch$1({
734
741
  signal
735
742
  });
736
743
  /**
737
- * Retrieves all Aliases for the Deployment with the given ID. The authenticated User must own the deployment.
744
+ * Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
738
745
  */
739
746
  const listDeploymentAliases = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'get', ...variables, signal });
740
747
  /**
741
- * 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.
748
+ * 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.
742
749
  */
743
750
  const assignAlias = (variables, signal) => fetch$1({ url: '/v2/deployments/{id}/aliases', method: 'post', ...variables, signal });
744
751
  /**
@@ -786,7 +793,7 @@ const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deploymen
786
793
  */
787
794
  const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
788
795
  /**
789
- * 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`.
796
+ * 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`.
790
797
  */
791
798
  const getDeployments = (variables, signal) => fetch$1({
792
799
  url: '/v6/deployments',
@@ -817,7 +824,7 @@ const emailLogin = (variables, signal) => fetch$1({
817
824
  */
818
825
  const deleteDeployment = (variables, signal) => fetch$1({ url: '/v13/deployments/{id}', method: 'delete', ...variables, signal });
819
826
  /**
820
- * 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.
827
+ * 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.
821
828
  */
822
829
  const getSecrets = (variables, signal) => fetch$1({
823
830
  url: '/v3/secrets',
@@ -835,7 +842,7 @@ const createSecret = (variables, signal) => fetch$1({
835
842
  signal
836
843
  });
837
844
  /**
838
- * Enables to edit the name of a user's secret. The name has to be unique to that user's secrets.
845
+ * Enables to edit the name of a secret. The name has to be unique to the user or team’s secrets.
839
846
  */
840
847
  const renameSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{name}', method: 'patch', ...variables, signal });
841
848
  /**
@@ -848,7 +855,7 @@ const getSecret = (variables, signal) => fetch$1({
848
855
  signal
849
856
  });
850
857
  /**
851
- * This deletes the user's secret defined in the URL.
858
+ * This deletes the user or team’s secret defined in the URL.
852
859
  */
853
860
  const deleteSecret = (variables, signal) => fetch$1({
854
861
  url: '/v2/secrets/{idOrName}',
@@ -927,6 +934,7 @@ const operationsByTag = {
927
934
  getConfigurableLogDrains,
928
935
  createConfigurableLogDrain
929
936
  },
937
+ projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
930
938
  teams: {
931
939
  getTeamMembers,
932
940
  inviteUserToTeam,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",