vercel-api-js 0.1.8 → 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.8 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.3s
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 5.9s
10
+ created dist/index.d.ts in 6.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 7445ccd: [OpenAPI] Update InviteUserToTeamResponse
8
+
9
+ ## 0.1.9
10
+
11
+ ### Patch Changes
12
+
13
+ - 8ca0e54: [OpenAPI] Spec updates
14
+
3
15
  ## 0.1.8
4
16
 
5
17
  ### 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
@@ -122,6 +122,7 @@ type AuthUser = {
122
122
  } | null;
123
123
  plan: 'hobby' | 'enterprise' | 'pro';
124
124
  platform?: 'stripe' | 'stripeTestMode';
125
+ orbCustomerId?: string;
125
126
  programType?: 'startup' | 'agency';
126
127
  trial?: {
127
128
  start: number;
@@ -349,6 +350,7 @@ type AuthUser = {
349
350
  maxQuantity?: number;
350
351
  };
351
352
  analyticsUsage?: {
353
+ tier?: number;
352
354
  price: number;
353
355
  batch: number;
354
356
  threshold: number;
@@ -357,6 +359,7 @@ type AuthUser = {
357
359
  disabledAt?: number | null;
358
360
  };
359
361
  artifacts?: {
362
+ tier?: number;
360
363
  price: number;
361
364
  batch: number;
362
365
  threshold: number;
@@ -365,6 +368,7 @@ type AuthUser = {
365
368
  disabledAt?: number | null;
366
369
  };
367
370
  bandwidth?: {
371
+ tier?: number;
368
372
  price: number;
369
373
  batch: number;
370
374
  threshold: number;
@@ -373,6 +377,7 @@ type AuthUser = {
373
377
  disabledAt?: number | null;
374
378
  };
375
379
  builds?: {
380
+ tier?: number;
376
381
  price: number;
377
382
  batch: number;
378
383
  threshold: number;
@@ -381,6 +386,7 @@ type AuthUser = {
381
386
  disabledAt?: number | null;
382
387
  };
383
388
  edgeMiddlewareInvocations?: {
389
+ tier?: number;
384
390
  price: number;
385
391
  batch: number;
386
392
  threshold: number;
@@ -389,6 +395,7 @@ type AuthUser = {
389
395
  disabledAt?: number | null;
390
396
  };
391
397
  edgeFunctionExecutionUnits?: {
398
+ tier?: number;
392
399
  price: number;
393
400
  batch: number;
394
401
  threshold: number;
@@ -397,6 +404,7 @@ type AuthUser = {
397
404
  disabledAt?: number | null;
398
405
  };
399
406
  monitoringMetric?: {
407
+ tier?: number;
400
408
  price: number;
401
409
  batch: number;
402
410
  threshold: number;
@@ -405,6 +413,7 @@ type AuthUser = {
405
413
  disabledAt?: number | null;
406
414
  };
407
415
  serverlessFunctionExecution?: {
416
+ tier?: number;
408
417
  price: number;
409
418
  batch: number;
410
419
  threshold: number;
@@ -413,6 +422,7 @@ type AuthUser = {
413
422
  disabledAt?: number | null;
414
423
  };
415
424
  sourceImages?: {
425
+ tier?: number;
416
426
  price: number;
417
427
  batch: number;
418
428
  threshold: number;
@@ -421,6 +431,7 @@ type AuthUser = {
421
431
  disabledAt?: number | null;
422
432
  };
423
433
  webAnalyticsEvent?: {
434
+ tier?: number;
424
435
  price: number;
425
436
  batch: number;
426
437
  threshold: number;
@@ -429,6 +440,7 @@ type AuthUser = {
429
440
  disabledAt?: number | null;
430
441
  };
431
442
  edgeConfigRead?: {
443
+ tier?: number;
432
444
  price: number;
433
445
  batch: number;
434
446
  threshold: number;
@@ -437,6 +449,7 @@ type AuthUser = {
437
449
  disabledAt?: number | null;
438
450
  };
439
451
  edgeConfigWrite?: {
452
+ tier?: number;
440
453
  price: number;
441
454
  batch: number;
442
455
  threshold: number;
@@ -445,6 +458,7 @@ type AuthUser = {
445
458
  disabledAt?: number | null;
446
459
  };
447
460
  cronJobInvocation?: {
461
+ tier?: number;
448
462
  price: number;
449
463
  batch: number;
450
464
  threshold: number;
@@ -1010,16 +1024,13 @@ type StatusQueryParams = {
1010
1024
  teamId?: string;
1011
1025
  };
1012
1026
  type StatusError = ErrorWrapper<undefined>;
1013
- type StatusResponse = {
1014
- status: 'disabled' | 'enabled' | 'over_limit' | 'paused';
1015
- };
1016
1027
  type StatusVariables = {
1017
1028
  queryParams?: StatusQueryParams;
1018
1029
  } & FetcherExtraProps;
1019
1030
  /**
1020
1031
  * Check the status of Remote Caching for this principal. Returns a JSON-encoded status indicating if Remote Caching is enabled, disabled, or disabled due to usage limits.
1021
1032
  */
1022
- declare const status: (variables: StatusVariables, signal?: AbortSignal) => Promise<StatusResponse>;
1033
+ declare const status: (variables: StatusVariables, signal?: AbortSignal) => Promise<undefined>;
1023
1034
  type UploadArtifactPathParams = {
1024
1035
  /**
1025
1036
  * The artifact hash
@@ -1069,14 +1080,6 @@ type UploadArtifactHeaders = {
1069
1080
  ['x-artifact-tag']?: string;
1070
1081
  };
1071
1082
  type UploadArtifactError = ErrorWrapper<undefined>;
1072
- type UploadArtifactResponse = {
1073
- /**
1074
- * Array of URLs where the artifact was updated
1075
- *
1076
- * @example https://api.vercel.com/v2/now/artifact/12HKQaOmR5t5Uy6vdcQsNIiZgHGB
1077
- */
1078
- urls: string[];
1079
- };
1080
1083
  type UploadArtifactVariables = {
1081
1084
  body?: Blob;
1082
1085
  headers: UploadArtifactHeaders;
@@ -1086,7 +1089,7 @@ type UploadArtifactVariables = {
1086
1089
  /**
1087
1090
  * Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
1088
1091
  */
1089
- declare const uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<UploadArtifactResponse>;
1092
+ declare const uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
1090
1093
  type DownloadArtifactPathParams = {
1091
1094
  /**
1092
1095
  * The artifact hash
@@ -1127,7 +1130,7 @@ type DownloadArtifactVariables = {
1127
1130
  /**
1128
1131
  * Downloads a cache artifact indentified by its `hash` specified on the request path. The artifact is downloaded as an octet-stream. The client should verify the content-length header and response body.
1129
1132
  */
1130
- declare const downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<Blob>;
1133
+ declare const downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
1131
1134
  type ArtifactQueryQueryParams = {
1132
1135
  /**
1133
1136
  * The Team identifier or slug to perform the request on behalf of.
@@ -1135,17 +1138,6 @@ type ArtifactQueryQueryParams = {
1135
1138
  teamId?: string;
1136
1139
  };
1137
1140
  type ArtifactQueryError = ErrorWrapper<undefined>;
1138
- type ArtifactQueryResponse = {
1139
- [key: string]: {
1140
- size: number;
1141
- taskDurationMs: number;
1142
- tag?: string;
1143
- } | {
1144
- name: string;
1145
- message: string;
1146
- stack?: string;
1147
- } | null;
1148
- };
1149
1141
  type ArtifactQueryRequestBody = {
1150
1142
  /**
1151
1143
  * artifact hashes
@@ -1159,7 +1151,7 @@ type ArtifactQueryVariables = {
1159
1151
  /**
1160
1152
  * Query information about an array of artifacts.
1161
1153
  */
1162
- declare const artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<ArtifactQueryResponse>;
1154
+ declare const artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<undefined>;
1163
1155
  type GetDeploymentPathParams = {
1164
1156
  /**
1165
1157
  * The unique identifier or hostname of the deployment.
@@ -2753,6 +2745,7 @@ type CreateDeploymentRequestBody = {
2753
2745
  ['continue']?: boolean;
2754
2746
  override?: boolean;
2755
2747
  check?: boolean;
2748
+ isInternal?: boolean;
2756
2749
  /**
2757
2750
  * @minimum 100
2758
2751
  * @maximum 999
@@ -10625,7 +10618,29 @@ type GetTeamMembersVariables = {
10625
10618
  */
10626
10619
  declare const getTeamMembers: (variables: GetTeamMembersVariables, signal?: AbortSignal) => Promise<GetTeamMembersResponse>;
10627
10620
  type InviteUserToTeamError = ErrorWrapper<undefined>;
10628
- 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<{
10629
10644
  /**
10630
10645
  * The ID of the invited user
10631
10646
  *
@@ -10639,7 +10654,7 @@ type InviteUserToTeamResponse = {
10639
10654
  */
10640
10655
  username: string;
10641
10656
  /**
10642
- * The email of the invited user
10657
+ * The email of the invited user. Not included if the user was invited via their UID.
10643
10658
  *
10644
10659
  * @example john@user.co
10645
10660
  */
@@ -10650,30 +10665,11 @@ type InviteUserToTeamResponse = {
10650
10665
  * @example MEMBER
10651
10666
  */
10652
10667
  role: string;
10653
- };
10654
- type InviteUserToTeamRequestBody = {
10655
- /**
10656
- * The id of the user to invite
10657
- *
10658
- * @example kr1PsOIzqEL5Xg6M4VZcZosf
10659
- */
10660
- uid?: string;
10661
- /**
10662
- * The email address of the user to invite
10663
- *
10664
- * @format email
10665
- * @example john@example.com
10666
- */
10667
- email?: string;
10668
- role?: void;
10669
- };
10670
- type InviteUserToTeamVariables = {
10671
- body?: InviteUserToTeamRequestBody;
10672
- } & FetcherExtraProps;
10673
- /**
10674
- * 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.
10675
- */
10676
- declare const inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<InviteUserToTeamResponse>;
10668
+ } | {
10669
+ uid: string;
10670
+ username: string;
10671
+ role: string;
10672
+ }>;
10677
10673
  type RequestAccessToTeamError = ErrorWrapper<undefined>;
10678
10674
  type RequestAccessToTeamResponse = {
10679
10675
  teamSlug: string;
@@ -11827,10 +11823,10 @@ declare const createEdgeConfigToken: (variables: CreateEdgeConfigTokenVariables,
11827
11823
  declare const operationsByTag: {
11828
11824
  artifacts: {
11829
11825
  recordEvents: (variables: RecordEventsVariables, signal?: AbortSignal) => Promise<undefined>;
11830
- status: (variables: StatusVariables, signal?: AbortSignal) => Promise<StatusResponse>;
11831
- uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<UploadArtifactResponse>;
11832
- downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<Blob>;
11833
- artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<ArtifactQueryResponse>;
11826
+ status: (variables: StatusVariables, signal?: AbortSignal) => Promise<undefined>;
11827
+ uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
11828
+ downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
11829
+ artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<undefined>;
11834
11830
  };
11835
11831
  deployments: {
11836
11832
  getDeployment: (variables: GetDeploymentVariables, signal?: AbortSignal) => Promise<{
@@ -13251,7 +13247,36 @@ declare const operationsByTag: {
13251
13247
  deleteTeam: (variables: DeleteTeamVariables, signal?: AbortSignal) => Promise<DeleteTeamResponse>;
13252
13248
  deleteTeamInviteCode: (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal) => Promise<DeleteTeamInviteCodeResponse>;
13253
13249
  getTeamMembers: (variables: GetTeamMembersVariables, signal?: AbortSignal) => Promise<GetTeamMembersResponse>;
13254
- 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
+ }>;
13255
13280
  requestAccessToTeam: (variables: RequestAccessToTeamVariables, signal?: AbortSignal) => Promise<RequestAccessToTeamResponse>;
13256
13281
  getTeamAccessRequest: (variables: GetTeamAccessRequestVariables, signal?: AbortSignal) => Promise<GetTeamAccessRequestResponse>;
13257
13282
  joinTeam: (variables: JoinTeamVariables, signal?: AbortSignal) => Promise<JoinTeamResponse>;
@@ -13290,7 +13315,6 @@ type components_AddProjectDomainVariables = AddProjectDomainVariables;
13290
13315
  type components_ArtifactQueryError = ArtifactQueryError;
13291
13316
  type components_ArtifactQueryQueryParams = ArtifactQueryQueryParams;
13292
13317
  type components_ArtifactQueryRequestBody = ArtifactQueryRequestBody;
13293
- type components_ArtifactQueryResponse = ArtifactQueryResponse;
13294
13318
  type components_ArtifactQueryVariables = ArtifactQueryVariables;
13295
13319
  type components_AssignAliasError = AssignAliasError;
13296
13320
  type components_AssignAliasPathParams = AssignAliasPathParams;
@@ -13635,7 +13659,6 @@ type components_GitNamespacesResponse = GitNamespacesResponse;
13635
13659
  type components_GitNamespacesVariables = GitNamespacesVariables;
13636
13660
  type components_InviteUserToTeamError = InviteUserToTeamError;
13637
13661
  type components_InviteUserToTeamRequestBody = InviteUserToTeamRequestBody;
13638
- type components_InviteUserToTeamResponse = InviteUserToTeamResponse;
13639
13662
  type components_InviteUserToTeamVariables = InviteUserToTeamVariables;
13640
13663
  type components_IssueCertError = IssueCertError;
13641
13664
  type components_IssueCertQueryParams = IssueCertQueryParams;
@@ -13731,7 +13754,6 @@ type components_SearchRepoResponse = SearchRepoResponse;
13731
13754
  type components_SearchRepoVariables = SearchRepoVariables;
13732
13755
  type components_StatusError = StatusError;
13733
13756
  type components_StatusQueryParams = StatusQueryParams;
13734
- type components_StatusResponse = StatusResponse;
13735
13757
  type components_StatusVariables = StatusVariables;
13736
13758
  type components_UpdateCheckError = UpdateCheckError;
13737
13759
  type components_UpdateCheckPathParams = UpdateCheckPathParams;
@@ -13772,7 +13794,6 @@ type components_UploadArtifactError = UploadArtifactError;
13772
13794
  type components_UploadArtifactHeaders = UploadArtifactHeaders;
13773
13795
  type components_UploadArtifactPathParams = UploadArtifactPathParams;
13774
13796
  type components_UploadArtifactQueryParams = UploadArtifactQueryParams;
13775
- type components_UploadArtifactResponse = UploadArtifactResponse;
13776
13797
  type components_UploadArtifactVariables = UploadArtifactVariables;
13777
13798
  type components_UploadCertError = UploadCertError;
13778
13799
  type components_UploadCertQueryParams = UploadCertQueryParams;
@@ -13916,7 +13937,6 @@ declare namespace components {
13916
13937
  components_ArtifactQueryError as ArtifactQueryError,
13917
13938
  components_ArtifactQueryQueryParams as ArtifactQueryQueryParams,
13918
13939
  components_ArtifactQueryRequestBody as ArtifactQueryRequestBody,
13919
- components_ArtifactQueryResponse as ArtifactQueryResponse,
13920
13940
  components_ArtifactQueryVariables as ArtifactQueryVariables,
13921
13941
  components_AssignAliasError as AssignAliasError,
13922
13942
  components_AssignAliasPathParams as AssignAliasPathParams,
@@ -14261,7 +14281,6 @@ declare namespace components {
14261
14281
  components_GitNamespacesVariables as GitNamespacesVariables,
14262
14282
  components_InviteUserToTeamError as InviteUserToTeamError,
14263
14283
  components_InviteUserToTeamRequestBody as InviteUserToTeamRequestBody,
14264
- components_InviteUserToTeamResponse as InviteUserToTeamResponse,
14265
14284
  components_InviteUserToTeamVariables as InviteUserToTeamVariables,
14266
14285
  components_IssueCertError as IssueCertError,
14267
14286
  components_IssueCertQueryParams as IssueCertQueryParams,
@@ -14357,7 +14376,6 @@ declare namespace components {
14357
14376
  components_SearchRepoVariables as SearchRepoVariables,
14358
14377
  components_StatusError as StatusError,
14359
14378
  components_StatusQueryParams as StatusQueryParams,
14360
- components_StatusResponse as StatusResponse,
14361
14379
  components_StatusVariables as StatusVariables,
14362
14380
  components_UpdateCheckError as UpdateCheckError,
14363
14381
  components_UpdateCheckPathParams as UpdateCheckPathParams,
@@ -14398,7 +14416,6 @@ declare namespace components {
14398
14416
  components_UploadArtifactHeaders as UploadArtifactHeaders,
14399
14417
  components_UploadArtifactPathParams as UploadArtifactPathParams,
14400
14418
  components_UploadArtifactQueryParams as UploadArtifactQueryParams,
14401
- components_UploadArtifactResponse as UploadArtifactResponse,
14402
14419
  components_UploadArtifactVariables as UploadArtifactVariables,
14403
14420
  components_UploadCertError as UploadCertError,
14404
14421
  components_UploadCertQueryParams as UploadCertQueryParams,
@@ -14536,10 +14553,10 @@ declare namespace components {
14536
14553
 
14537
14554
  declare const operationsByPath: {
14538
14555
  'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14539
- 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
14540
- 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
14541
- 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
14542
- 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
14556
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14557
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14558
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14559
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14543
14560
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
14544
14561
  aliasAssignedAt?: number | boolean | null;
14545
14562
  build: {
@@ -15239,7 +15256,16 @@ declare const operationsByPath: {
15239
15256
  'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15240
15257
  'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15241
15258
  'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15242
- '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
+ }>;
15243
15269
  'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15244
15270
  'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15245
15271
  'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
@@ -15290,10 +15316,10 @@ declare class VercelApi {
15290
15316
  };
15291
15317
  request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<ReturnType<{
15292
15318
  'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15293
- 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
15294
- 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
15295
- 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
15296
- 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
15319
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15320
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15321
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15322
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15297
15323
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
15298
15324
  aliasAssignedAt?: number | boolean | null;
15299
15325
  build: {
@@ -15993,7 +16019,16 @@ declare class VercelApi {
15993
16019
  'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15994
16020
  'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15995
16021
  'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15996
- '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
+ }>;
15997
16032
  'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15998
16033
  'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15999
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.8",
3
+ "version": "0.1.10",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",