vercel-api-js 0.1.9 → 0.1.11
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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +1 -6
- package/dist/index.d.ts +84 -43
- package/dist/index.mjs +1 -6
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.1.
|
|
2
|
+
> vercel-api-js@0.1.11 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m8.6s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m9.5s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# vercel-api-js
|
|
2
2
|
|
|
3
|
+
## 0.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- eacb118: [OpenAPI] Update schemas for projects and deployments
|
|
8
|
+
|
|
9
|
+
## 0.1.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7445ccd: [OpenAPI] Update InviteUserToTeamResponse
|
|
14
|
+
|
|
3
15
|
## 0.1.9
|
|
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
|
@@ -1840,18 +1840,7 @@ type CreateDeploymentResponse = {
|
|
|
1840
1840
|
*/
|
|
1841
1841
|
env: string[];
|
|
1842
1842
|
};
|
|
1843
|
-
builds?:
|
|
1844
|
-
use: string;
|
|
1845
|
-
src?: string;
|
|
1846
|
-
/**
|
|
1847
|
-
* An object containing the deployment's metadata
|
|
1848
|
-
*
|
|
1849
|
-
* @example {"foo":"bar"}
|
|
1850
|
-
*/
|
|
1851
|
-
config?: {
|
|
1852
|
-
[key: string]: string;
|
|
1853
|
-
};
|
|
1854
|
-
}[];
|
|
1843
|
+
builds?: Record<string, any>[];
|
|
1855
1844
|
/**
|
|
1856
1845
|
* The ID of Vercel Connect configuration used for this deployment
|
|
1857
1846
|
*/
|
|
@@ -6490,6 +6479,7 @@ type GetProjectsResponse = {
|
|
|
6490
6479
|
billingPlan?: ACLAction[];
|
|
6491
6480
|
billingPurchaseOrder?: ACLAction[];
|
|
6492
6481
|
billingTaxId?: ACLAction[];
|
|
6482
|
+
blob?: ACLAction[];
|
|
6493
6483
|
cacheArtifact?: ACLAction[];
|
|
6494
6484
|
cacheArtifactUsageEvent?: ACLAction[];
|
|
6495
6485
|
concurrentBuilds?: ACLAction[];
|
|
@@ -6821,6 +6811,7 @@ type CreateProjectResponse = {
|
|
|
6821
6811
|
billingPlan?: ACLAction[];
|
|
6822
6812
|
billingPurchaseOrder?: ACLAction[];
|
|
6823
6813
|
billingTaxId?: ACLAction[];
|
|
6814
|
+
blob?: ACLAction[];
|
|
6824
6815
|
cacheArtifact?: ACLAction[];
|
|
6825
6816
|
cacheArtifactUsageEvent?: ACLAction[];
|
|
6826
6817
|
concurrentBuilds?: ACLAction[];
|
|
@@ -7262,6 +7253,7 @@ type GetProjectResponse = {
|
|
|
7262
7253
|
billingPlan?: ACLAction[];
|
|
7263
7254
|
billingPurchaseOrder?: ACLAction[];
|
|
7264
7255
|
billingTaxId?: ACLAction[];
|
|
7256
|
+
blob?: ACLAction[];
|
|
7265
7257
|
cacheArtifact?: ACLAction[];
|
|
7266
7258
|
cacheArtifactUsageEvent?: ACLAction[];
|
|
7267
7259
|
concurrentBuilds?: ACLAction[];
|
|
@@ -7600,6 +7592,7 @@ type UpdateProjectResponse = {
|
|
|
7600
7592
|
billingPlan?: ACLAction[];
|
|
7601
7593
|
billingPurchaseOrder?: ACLAction[];
|
|
7602
7594
|
billingTaxId?: ACLAction[];
|
|
7595
|
+
blob?: ACLAction[];
|
|
7603
7596
|
cacheArtifact?: ACLAction[];
|
|
7604
7597
|
cacheArtifactUsageEvent?: ACLAction[];
|
|
7605
7598
|
concurrentBuilds?: ACLAction[];
|
|
@@ -10618,7 +10611,29 @@ type GetTeamMembersVariables = {
|
|
|
10618
10611
|
*/
|
|
10619
10612
|
declare const getTeamMembers: (variables: GetTeamMembersVariables, signal?: AbortSignal) => Promise<GetTeamMembersResponse>;
|
|
10620
10613
|
type InviteUserToTeamError = ErrorWrapper<undefined>;
|
|
10621
|
-
type
|
|
10614
|
+
type InviteUserToTeamRequestBody = {
|
|
10615
|
+
/**
|
|
10616
|
+
* The id of the user to invite
|
|
10617
|
+
*
|
|
10618
|
+
* @example kr1PsOIzqEL5Xg6M4VZcZosf
|
|
10619
|
+
*/
|
|
10620
|
+
uid?: string;
|
|
10621
|
+
/**
|
|
10622
|
+
* The email address of the user to invite
|
|
10623
|
+
*
|
|
10624
|
+
* @format email
|
|
10625
|
+
* @example john@example.com
|
|
10626
|
+
*/
|
|
10627
|
+
email?: string;
|
|
10628
|
+
role?: void;
|
|
10629
|
+
};
|
|
10630
|
+
type InviteUserToTeamVariables = {
|
|
10631
|
+
body?: InviteUserToTeamRequestBody;
|
|
10632
|
+
} & FetcherExtraProps;
|
|
10633
|
+
/**
|
|
10634
|
+
* 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.
|
|
10635
|
+
*/
|
|
10636
|
+
declare const inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<{
|
|
10622
10637
|
/**
|
|
10623
10638
|
* The ID of the invited user
|
|
10624
10639
|
*
|
|
@@ -10632,7 +10647,7 @@ type InviteUserToTeamResponse = {
|
|
|
10632
10647
|
*/
|
|
10633
10648
|
username: string;
|
|
10634
10649
|
/**
|
|
10635
|
-
* The email of the invited user
|
|
10650
|
+
* The email of the invited user. Not included if the user was invited via their UID.
|
|
10636
10651
|
*
|
|
10637
10652
|
* @example john@user.co
|
|
10638
10653
|
*/
|
|
@@ -10643,30 +10658,11 @@ type InviteUserToTeamResponse = {
|
|
|
10643
10658
|
* @example MEMBER
|
|
10644
10659
|
*/
|
|
10645
10660
|
role: string;
|
|
10646
|
-
}
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
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>;
|
|
10661
|
+
} | {
|
|
10662
|
+
uid: string;
|
|
10663
|
+
username: string;
|
|
10664
|
+
role: string;
|
|
10665
|
+
}>;
|
|
10670
10666
|
type RequestAccessToTeamError = ErrorWrapper<undefined>;
|
|
10671
10667
|
type RequestAccessToTeamResponse = {
|
|
10672
10668
|
teamSlug: string;
|
|
@@ -13244,7 +13240,36 @@ declare const operationsByTag: {
|
|
|
13244
13240
|
deleteTeam: (variables: DeleteTeamVariables, signal?: AbortSignal) => Promise<DeleteTeamResponse>;
|
|
13245
13241
|
deleteTeamInviteCode: (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal) => Promise<DeleteTeamInviteCodeResponse>;
|
|
13246
13242
|
getTeamMembers: (variables: GetTeamMembersVariables, signal?: AbortSignal) => Promise<GetTeamMembersResponse>;
|
|
13247
|
-
inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<
|
|
13243
|
+
inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?: AbortSignal) => Promise<{
|
|
13244
|
+
/**
|
|
13245
|
+
* The ID of the invited user
|
|
13246
|
+
*
|
|
13247
|
+
* @example kr1PsOIzqEL5Xg6M4VZcZosf
|
|
13248
|
+
*/
|
|
13249
|
+
uid: string;
|
|
13250
|
+
/**
|
|
13251
|
+
* The username of the invited user
|
|
13252
|
+
*
|
|
13253
|
+
* @example john-doe
|
|
13254
|
+
*/
|
|
13255
|
+
username: string;
|
|
13256
|
+
/**
|
|
13257
|
+
* The email of the invited user. Not included if the user was invited via their UID.
|
|
13258
|
+
*
|
|
13259
|
+
* @example john@user.co
|
|
13260
|
+
*/
|
|
13261
|
+
email: string;
|
|
13262
|
+
/**
|
|
13263
|
+
* The role used for the invitation
|
|
13264
|
+
*
|
|
13265
|
+
* @example MEMBER
|
|
13266
|
+
*/
|
|
13267
|
+
role: string;
|
|
13268
|
+
} | {
|
|
13269
|
+
uid: string;
|
|
13270
|
+
username: string;
|
|
13271
|
+
role: string;
|
|
13272
|
+
}>;
|
|
13248
13273
|
requestAccessToTeam: (variables: RequestAccessToTeamVariables, signal?: AbortSignal) => Promise<RequestAccessToTeamResponse>;
|
|
13249
13274
|
getTeamAccessRequest: (variables: GetTeamAccessRequestVariables, signal?: AbortSignal) => Promise<GetTeamAccessRequestResponse>;
|
|
13250
13275
|
joinTeam: (variables: JoinTeamVariables, signal?: AbortSignal) => Promise<JoinTeamResponse>;
|
|
@@ -13627,7 +13652,6 @@ type components_GitNamespacesResponse = GitNamespacesResponse;
|
|
|
13627
13652
|
type components_GitNamespacesVariables = GitNamespacesVariables;
|
|
13628
13653
|
type components_InviteUserToTeamError = InviteUserToTeamError;
|
|
13629
13654
|
type components_InviteUserToTeamRequestBody = InviteUserToTeamRequestBody;
|
|
13630
|
-
type components_InviteUserToTeamResponse = InviteUserToTeamResponse;
|
|
13631
13655
|
type components_InviteUserToTeamVariables = InviteUserToTeamVariables;
|
|
13632
13656
|
type components_IssueCertError = IssueCertError;
|
|
13633
13657
|
type components_IssueCertQueryParams = IssueCertQueryParams;
|
|
@@ -14250,7 +14274,6 @@ declare namespace components {
|
|
|
14250
14274
|
components_GitNamespacesVariables as GitNamespacesVariables,
|
|
14251
14275
|
components_InviteUserToTeamError as InviteUserToTeamError,
|
|
14252
14276
|
components_InviteUserToTeamRequestBody as InviteUserToTeamRequestBody,
|
|
14253
|
-
components_InviteUserToTeamResponse as InviteUserToTeamResponse,
|
|
14254
14277
|
components_InviteUserToTeamVariables as InviteUserToTeamVariables,
|
|
14255
14278
|
components_IssueCertError as IssueCertError,
|
|
14256
14279
|
components_IssueCertQueryParams as IssueCertQueryParams,
|
|
@@ -15226,7 +15249,16 @@ declare const operationsByPath: {
|
|
|
15226
15249
|
'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
|
|
15227
15250
|
'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
|
|
15228
15251
|
'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
|
|
15229
|
-
'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<
|
|
15252
|
+
'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<{
|
|
15253
|
+
uid: string;
|
|
15254
|
+
username: string;
|
|
15255
|
+
email: string;
|
|
15256
|
+
role: string;
|
|
15257
|
+
} | {
|
|
15258
|
+
uid: string;
|
|
15259
|
+
username: string;
|
|
15260
|
+
role: string;
|
|
15261
|
+
}>;
|
|
15230
15262
|
'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
|
|
15231
15263
|
'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
|
|
15232
15264
|
'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
|
|
@@ -15980,7 +16012,16 @@ declare class VercelApi {
|
|
|
15980
16012
|
'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
|
|
15981
16013
|
'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
|
|
15982
16014
|
'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
|
|
15983
|
-
'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<
|
|
16015
|
+
'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<{
|
|
16016
|
+
uid: string;
|
|
16017
|
+
username: string;
|
|
16018
|
+
email: string;
|
|
16019
|
+
role: string;
|
|
16020
|
+
} | {
|
|
16021
|
+
uid: string;
|
|
16022
|
+
username: string;
|
|
16023
|
+
role: string;
|
|
16024
|
+
}>;
|
|
15984
16025
|
'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
|
|
15985
16026
|
'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
|
|
15986
16027
|
'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
|
*/
|