vercel-api-js 0.1.9 → 0.1.10

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.9 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.1.10 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.4s
7
+ created dist/index.cjs, dist/index.mjs in 6.9s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 6.8s
10
+ created dist/index.d.ts in 6.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 7445ccd: [OpenAPI] Update InviteUserToTeamResponse
8
+
3
9
  ## 0.1.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -687,12 +687,7 @@ const getTeamMembers = (variables, signal) => fetch$1({
687
687
  /**
688
688
  * 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.
689
689
  */
690
- const inviteUserToTeam = (variables, signal) => fetch$1({
691
- url: '/v1/teams/{teamId}/members',
692
- method: 'post',
693
- ...variables,
694
- signal
695
- });
690
+ const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
696
691
  /**
697
692
  * 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.
698
693
  */
package/dist/index.d.ts CHANGED
@@ -10618,7 +10618,29 @@ type GetTeamMembersVariables = {
10618
10618
  */
10619
10619
  declare const getTeamMembers: (variables: GetTeamMembersVariables, signal?: AbortSignal) => Promise<GetTeamMembersResponse>;
10620
10620
  type InviteUserToTeamError = ErrorWrapper<undefined>;
10621
- type InviteUserToTeamResponse = {
10621
+ type InviteUserToTeamRequestBody = {
10622
+ /**
10623
+ * The id of the user to invite
10624
+ *
10625
+ * @example kr1PsOIzqEL5Xg6M4VZcZosf
10626
+ */
10627
+ uid?: string;
10628
+ /**
10629
+ * The email address of the user to invite
10630
+ *
10631
+ * @format email
10632
+ * @example john@example.com
10633
+ */
10634
+ email?: string;
10635
+ role?: void;
10636
+ };
10637
+ type InviteUserToTeamVariables = {
10638
+ body?: InviteUserToTeamRequestBody;
10639
+ } & FetcherExtraProps;
10640
+ /**
10641
+ * 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.
10642
+ */
10643
+ declare const inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<{
10622
10644
  /**
10623
10645
  * The ID of the invited user
10624
10646
  *
@@ -10632,7 +10654,7 @@ type InviteUserToTeamResponse = {
10632
10654
  */
10633
10655
  username: string;
10634
10656
  /**
10635
- * The email of the invited user
10657
+ * The email of the invited user. Not included if the user was invited via their UID.
10636
10658
  *
10637
10659
  * @example john@user.co
10638
10660
  */
@@ -10643,30 +10665,11 @@ type InviteUserToTeamResponse = {
10643
10665
  * @example MEMBER
10644
10666
  */
10645
10667
  role: string;
10646
- };
10647
- type InviteUserToTeamRequestBody = {
10648
- /**
10649
- * The id of the user to invite
10650
- *
10651
- * @example kr1PsOIzqEL5Xg6M4VZcZosf
10652
- */
10653
- uid?: string;
10654
- /**
10655
- * The email address of the user to invite
10656
- *
10657
- * @format email
10658
- * @example john@example.com
10659
- */
10660
- email?: string;
10661
- role?: void;
10662
- };
10663
- type InviteUserToTeamVariables = {
10664
- body?: InviteUserToTeamRequestBody;
10665
- } & FetcherExtraProps;
10666
- /**
10667
- * 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.
10668
- */
10669
- declare const inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<InviteUserToTeamResponse>;
10668
+ } | {
10669
+ uid: string;
10670
+ username: string;
10671
+ role: string;
10672
+ }>;
10670
10673
  type RequestAccessToTeamError = ErrorWrapper<undefined>;
10671
10674
  type RequestAccessToTeamResponse = {
10672
10675
  teamSlug: string;
@@ -13244,7 +13247,36 @@ declare const operationsByTag: {
13244
13247
  deleteTeam: (variables: DeleteTeamVariables, signal?: AbortSignal) => Promise<DeleteTeamResponse>;
13245
13248
  deleteTeamInviteCode: (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal) => Promise<DeleteTeamInviteCodeResponse>;
13246
13249
  getTeamMembers: (variables: GetTeamMembersVariables, signal?: AbortSignal) => Promise<GetTeamMembersResponse>;
13247
- inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<InviteUserToTeamResponse>;
13250
+ inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<{
13251
+ /**
13252
+ * The ID of the invited user
13253
+ *
13254
+ * @example kr1PsOIzqEL5Xg6M4VZcZosf
13255
+ */
13256
+ uid: string;
13257
+ /**
13258
+ * The username of the invited user
13259
+ *
13260
+ * @example john-doe
13261
+ */
13262
+ username: string;
13263
+ /**
13264
+ * The email of the invited user. Not included if the user was invited via their UID.
13265
+ *
13266
+ * @example john@user.co
13267
+ */
13268
+ email: string;
13269
+ /**
13270
+ * The role used for the invitation
13271
+ *
13272
+ * @example MEMBER
13273
+ */
13274
+ role: string;
13275
+ } | {
13276
+ uid: string;
13277
+ username: string;
13278
+ role: string;
13279
+ }>;
13248
13280
  requestAccessToTeam: (variables: RequestAccessToTeamVariables, signal?: AbortSignal) => Promise<RequestAccessToTeamResponse>;
13249
13281
  getTeamAccessRequest: (variables: GetTeamAccessRequestVariables, signal?: AbortSignal) => Promise<GetTeamAccessRequestResponse>;
13250
13282
  joinTeam: (variables: JoinTeamVariables, signal?: AbortSignal) => Promise<JoinTeamResponse>;
@@ -13627,7 +13659,6 @@ type components_GitNamespacesResponse = GitNamespacesResponse;
13627
13659
  type components_GitNamespacesVariables = GitNamespacesVariables;
13628
13660
  type components_InviteUserToTeamError = InviteUserToTeamError;
13629
13661
  type components_InviteUserToTeamRequestBody = InviteUserToTeamRequestBody;
13630
- type components_InviteUserToTeamResponse = InviteUserToTeamResponse;
13631
13662
  type components_InviteUserToTeamVariables = InviteUserToTeamVariables;
13632
13663
  type components_IssueCertError = IssueCertError;
13633
13664
  type components_IssueCertQueryParams = IssueCertQueryParams;
@@ -14250,7 +14281,6 @@ declare namespace components {
14250
14281
  components_GitNamespacesVariables as GitNamespacesVariables,
14251
14282
  components_InviteUserToTeamError as InviteUserToTeamError,
14252
14283
  components_InviteUserToTeamRequestBody as InviteUserToTeamRequestBody,
14253
- components_InviteUserToTeamResponse as InviteUserToTeamResponse,
14254
14284
  components_InviteUserToTeamVariables as InviteUserToTeamVariables,
14255
14285
  components_IssueCertError as IssueCertError,
14256
14286
  components_IssueCertQueryParams as IssueCertQueryParams,
@@ -15226,7 +15256,16 @@ declare const operationsByPath: {
15226
15256
  'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15227
15257
  'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15228
15258
  'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15229
- 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<InviteUserToTeamResponse>;
15259
+ 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<{
15260
+ uid: string;
15261
+ username: string;
15262
+ email: string;
15263
+ role: string;
15264
+ } | {
15265
+ uid: string;
15266
+ username: string;
15267
+ role: string;
15268
+ }>;
15230
15269
  'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15231
15270
  'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15232
15271
  'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
@@ -15980,7 +16019,16 @@ declare class VercelApi {
15980
16019
  'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15981
16020
  'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15982
16021
  'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15983
- 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<InviteUserToTeamResponse>;
16022
+ 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<{
16023
+ uid: string;
16024
+ username: string;
16025
+ email: string;
16026
+ role: string;
16027
+ } | {
16028
+ uid: string;
16029
+ username: string;
16030
+ role: string;
16031
+ }>;
15984
16032
  'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15985
16033
  'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15986
16034
  'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
package/dist/index.mjs CHANGED
@@ -685,12 +685,7 @@ const getTeamMembers = (variables, signal) => fetch$1({
685
685
  /**
686
686
  * 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.
687
687
  */
688
- const inviteUserToTeam = (variables, signal) => fetch$1({
689
- url: '/v1/teams/{teamId}/members',
690
- method: 'post',
691
- ...variables,
692
- signal
693
- });
688
+ const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
694
689
  /**
695
690
  * 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.
696
691
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",