@vercel/sdk 1.11.0 → 1.11.1
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/bin/mcp-server.js +721 -586
- package/bin/mcp-server.js.map +24 -24
- package/esm/__tests__/checks.test.js +1 -0
- package/esm/__tests__/checks.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +4 -11
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/rollingrelease.test.js +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +2 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +1 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +6 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +2 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createedgeconfigop.d.ts +2 -0
- package/esm/models/createedgeconfigop.d.ts.map +1 -1
- package/esm/models/createedgeconfigop.js +2 -0
- package/esm/models/createedgeconfigop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +252 -240
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +298 -294
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +170 -162
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +158 -154
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getallchecksop.d.ts +2 -0
- package/esm/models/getallchecksop.d.ts.map +1 -1
- package/esm/models/getallchecksop.js +2 -0
- package/esm/models/getallchecksop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +421 -331
- package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
- package/esm/models/getconfigurationproductsop.js +482 -410
- package/esm/models/getconfigurationproductsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +3 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +1 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +3 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +1 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getedgeconfigop.d.ts +2 -0
- package/esm/models/getedgeconfigop.d.ts.map +1 -1
- package/esm/models/getedgeconfigop.js +2 -0
- package/esm/models/getedgeconfigop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +5 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +3 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +36 -30
- package/esm/models/getteammembersop.d.ts.map +1 -1
- package/esm/models/getteammembersop.js +12 -10
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +3 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +1 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +36 -0
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +25 -0
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/team.d.ts +150 -26
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +110 -30
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateedgeconfigop.d.ts +2 -0
- package/esm/models/updateedgeconfigop.d.ts.map +1 -1
- package/esm/models/updateedgeconfigop.js +2 -0
- package/esm/models/updateedgeconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +5 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +3 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +8 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +4 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +2 -2
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/checks.test.ts +1 -0
- package/src/__tests__/domains.test.ts +4 -11
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/rollingrelease.test.ts +1 -1
- package/src/__tests__/security.test.ts +1 -11
- package/src/__tests__/teams.test.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/canceldeploymentop.ts +1 -0
- package/src/models/createdeploymentop.ts +2 -0
- package/src/models/createedgeconfigop.ts +4 -0
- package/src/models/createintegrationstoredirectop.ts +509 -505
- package/src/models/createprojectop.ts +304 -298
- package/src/models/getallchecksop.ts +4 -0
- package/src/models/getconfigurationproductsop.ts +847 -706
- package/src/models/getdeploymentop.ts +1 -0
- package/src/models/getdeploymentsop.ts +1 -0
- package/src/models/getedgeconfigop.ts +4 -0
- package/src/models/getprojectsop.ts +5 -0
- package/src/models/getteammembersop.ts +12 -10
- package/src/models/getwebhooksop.ts +1 -0
- package/src/models/importresourceop.ts +34 -0
- package/src/models/team.ts +177 -42
- package/src/models/updateedgeconfigop.ts +4 -0
- package/src/models/updateprojectdatacacheop.ts +5 -0
- package/src/models/updateprojectop.ts +6 -0
- package/src/models/userevent.ts +2 -2
- package/vercel-spec.json +781 -634
|
@@ -65,6 +65,7 @@ export type GetEdgeConfigPurpose =
|
|
|
65
65
|
export type GetEdgeConfigResponseBody = {
|
|
66
66
|
createdAt: number;
|
|
67
67
|
updatedAt: number;
|
|
68
|
+
deletedAt?: number | undefined;
|
|
68
69
|
id: string;
|
|
69
70
|
/**
|
|
70
71
|
* Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
|
|
@@ -475,6 +476,7 @@ export const GetEdgeConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
475
476
|
> = z.object({
|
|
476
477
|
createdAt: z.number(),
|
|
477
478
|
updatedAt: z.number(),
|
|
479
|
+
deletedAt: z.number().optional(),
|
|
478
480
|
id: z.string(),
|
|
479
481
|
slug: z.string(),
|
|
480
482
|
ownerId: z.string(),
|
|
@@ -494,6 +496,7 @@ export const GetEdgeConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
494
496
|
export type GetEdgeConfigResponseBody$Outbound = {
|
|
495
497
|
createdAt: number;
|
|
496
498
|
updatedAt: number;
|
|
499
|
+
deletedAt?: number | undefined;
|
|
497
500
|
id: string;
|
|
498
501
|
slug: string;
|
|
499
502
|
ownerId: string;
|
|
@@ -517,6 +520,7 @@ export const GetEdgeConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
517
520
|
> = z.object({
|
|
518
521
|
createdAt: z.number(),
|
|
519
522
|
updatedAt: z.number(),
|
|
523
|
+
deletedAt: z.number().optional(),
|
|
520
524
|
id: z.string(),
|
|
521
525
|
slug: z.string(),
|
|
522
526
|
ownerId: z.string(),
|
|
@@ -713,6 +713,7 @@ export const GetProjectsFramework = {
|
|
|
713
713
|
Vitepress: "vitepress",
|
|
714
714
|
Vuepress: "vuepress",
|
|
715
715
|
Parcel: "parcel",
|
|
716
|
+
Fastapi: "fastapi",
|
|
716
717
|
Fasthtml: "fasthtml",
|
|
717
718
|
SanityV3: "sanity-v3",
|
|
718
719
|
Sanity: "sanity",
|
|
@@ -1533,6 +1534,7 @@ export type GetProjectsPermissions = {
|
|
|
1533
1534
|
jobGlobal?: Array<ACLAction> | undefined;
|
|
1534
1535
|
drain?: Array<ACLAction> | undefined;
|
|
1535
1536
|
logDrain?: Array<ACLAction> | undefined;
|
|
1537
|
+
traceDrain?: Array<ACLAction> | undefined;
|
|
1536
1538
|
monitoring?: Array<ACLAction> | undefined;
|
|
1537
1539
|
monitoringSettings?: Array<ACLAction> | undefined;
|
|
1538
1540
|
monitoringQuery?: Array<ACLAction> | undefined;
|
|
@@ -8687,6 +8689,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
|
|
|
8687
8689
|
jobGlobal: z.array(ACLAction$inboundSchema).optional(),
|
|
8688
8690
|
drain: z.array(ACLAction$inboundSchema).optional(),
|
|
8689
8691
|
logDrain: z.array(ACLAction$inboundSchema).optional(),
|
|
8692
|
+
traceDrain: z.array(ACLAction$inboundSchema).optional(),
|
|
8690
8693
|
Monitoring: z.array(ACLAction$inboundSchema).optional(),
|
|
8691
8694
|
monitoringSettings: z.array(ACLAction$inboundSchema).optional(),
|
|
8692
8695
|
monitoringQuery: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -8910,6 +8913,7 @@ export type GetProjectsPermissions$Outbound = {
|
|
|
8910
8913
|
jobGlobal?: Array<string> | undefined;
|
|
8911
8914
|
drain?: Array<string> | undefined;
|
|
8912
8915
|
logDrain?: Array<string> | undefined;
|
|
8916
|
+
traceDrain?: Array<string> | undefined;
|
|
8913
8917
|
Monitoring?: Array<string> | undefined;
|
|
8914
8918
|
monitoringSettings?: Array<string> | undefined;
|
|
8915
8919
|
monitoringQuery?: Array<string> | undefined;
|
|
@@ -9138,6 +9142,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
|
|
|
9138
9142
|
jobGlobal: z.array(ACLAction$outboundSchema).optional(),
|
|
9139
9143
|
drain: z.array(ACLAction$outboundSchema).optional(),
|
|
9140
9144
|
logDrain: z.array(ACLAction$outboundSchema).optional(),
|
|
9145
|
+
traceDrain: z.array(ACLAction$outboundSchema).optional(),
|
|
9141
9146
|
monitoring: z.array(ACLAction$outboundSchema).optional(),
|
|
9142
9147
|
monitoringSettings: z.array(ACLAction$outboundSchema).optional(),
|
|
9143
9148
|
monitoringQuery: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -15,8 +15,10 @@ export const QueryParamRole = {
|
|
|
15
15
|
Owner: "OWNER",
|
|
16
16
|
Member: "MEMBER",
|
|
17
17
|
Developer: "DEVELOPER",
|
|
18
|
-
|
|
18
|
+
Security: "SECURITY",
|
|
19
19
|
Billing: "BILLING",
|
|
20
|
+
Viewer: "VIEWER",
|
|
21
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
20
22
|
Contributor: "CONTRIBUTOR",
|
|
21
23
|
} as const;
|
|
22
24
|
/**
|
|
@@ -83,11 +85,11 @@ export const GetTeamMembersRole = {
|
|
|
83
85
|
Owner: "OWNER",
|
|
84
86
|
Member: "MEMBER",
|
|
85
87
|
Developer: "DEVELOPER",
|
|
86
|
-
Viewer: "VIEWER",
|
|
87
|
-
Billing: "BILLING",
|
|
88
|
-
Contributor: "CONTRIBUTOR",
|
|
89
88
|
Security: "SECURITY",
|
|
89
|
+
Billing: "BILLING",
|
|
90
|
+
Viewer: "VIEWER",
|
|
90
91
|
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
92
|
+
Contributor: "CONTRIBUTOR",
|
|
91
93
|
} as const;
|
|
92
94
|
/**
|
|
93
95
|
* Role of this user in the team.
|
|
@@ -209,11 +211,11 @@ export const GetTeamMembersTeamsRole = {
|
|
|
209
211
|
Owner: "OWNER",
|
|
210
212
|
Member: "MEMBER",
|
|
211
213
|
Developer: "DEVELOPER",
|
|
212
|
-
Viewer: "VIEWER",
|
|
213
|
-
Billing: "BILLING",
|
|
214
|
-
Contributor: "CONTRIBUTOR",
|
|
215
214
|
Security: "SECURITY",
|
|
215
|
+
Billing: "BILLING",
|
|
216
|
+
Viewer: "VIEWER",
|
|
216
217
|
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
218
|
+
Contributor: "CONTRIBUTOR",
|
|
217
219
|
} as const;
|
|
218
220
|
export type GetTeamMembersTeamsRole = ClosedEnum<
|
|
219
221
|
typeof GetTeamMembersTeamsRole
|
|
@@ -223,11 +225,11 @@ export const GetTeamMembersTeamRoles = {
|
|
|
223
225
|
Owner: "OWNER",
|
|
224
226
|
Member: "MEMBER",
|
|
225
227
|
Developer: "DEVELOPER",
|
|
226
|
-
Viewer: "VIEWER",
|
|
227
|
-
Billing: "BILLING",
|
|
228
|
-
Contributor: "CONTRIBUTOR",
|
|
229
228
|
Security: "SECURITY",
|
|
229
|
+
Billing: "BILLING",
|
|
230
|
+
Viewer: "VIEWER",
|
|
230
231
|
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
232
|
+
Contributor: "CONTRIBUTOR",
|
|
231
233
|
} as const;
|
|
232
234
|
export type GetTeamMembersTeamRoles = ClosedEnum<
|
|
233
235
|
typeof GetTeamMembersTeamRoles
|
|
@@ -12,6 +12,13 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
12
12
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
13
13
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
14
14
|
|
|
15
|
+
export const Ownership = {
|
|
16
|
+
Owned: "owned",
|
|
17
|
+
Linked: "linked",
|
|
18
|
+
Sandbox: "sandbox",
|
|
19
|
+
} as const;
|
|
20
|
+
export type Ownership = ClosedEnum<typeof Ownership>;
|
|
21
|
+
|
|
15
22
|
export const ImportResourceStatus = {
|
|
16
23
|
Ready: "ready",
|
|
17
24
|
Pending: "pending",
|
|
@@ -94,12 +101,14 @@ export type ImportResourceSecrets = {
|
|
|
94
101
|
};
|
|
95
102
|
|
|
96
103
|
export type ImportResourceRequestBody = {
|
|
104
|
+
ownership?: Ownership | undefined;
|
|
97
105
|
productId: string;
|
|
98
106
|
name: string;
|
|
99
107
|
status: ImportResourceStatus;
|
|
100
108
|
metadata?: { [k: string]: any } | undefined;
|
|
101
109
|
billingPlan?: BillingPlan | undefined;
|
|
102
110
|
notification?: Notification | undefined;
|
|
111
|
+
extras?: { [k: string]: any } | undefined;
|
|
103
112
|
secrets?: Array<ImportResourceSecrets> | undefined;
|
|
104
113
|
};
|
|
105
114
|
|
|
@@ -113,6 +122,25 @@ export type ImportResourceResponseBody = {
|
|
|
113
122
|
name: string;
|
|
114
123
|
};
|
|
115
124
|
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const Ownership$inboundSchema: z.ZodNativeEnum<typeof Ownership> = z
|
|
127
|
+
.nativeEnum(Ownership);
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const Ownership$outboundSchema: z.ZodNativeEnum<typeof Ownership> =
|
|
131
|
+
Ownership$inboundSchema;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
136
|
+
*/
|
|
137
|
+
export namespace Ownership$ {
|
|
138
|
+
/** @deprecated use `Ownership$inboundSchema` instead. */
|
|
139
|
+
export const inboundSchema = Ownership$inboundSchema;
|
|
140
|
+
/** @deprecated use `Ownership$outboundSchema` instead. */
|
|
141
|
+
export const outboundSchema = Ownership$outboundSchema;
|
|
142
|
+
}
|
|
143
|
+
|
|
116
144
|
/** @internal */
|
|
117
145
|
export const ImportResourceStatus$inboundSchema: z.ZodNativeEnum<
|
|
118
146
|
typeof ImportResourceStatus
|
|
@@ -563,24 +591,28 @@ export const ImportResourceRequestBody$inboundSchema: z.ZodType<
|
|
|
563
591
|
z.ZodTypeDef,
|
|
564
592
|
unknown
|
|
565
593
|
> = z.object({
|
|
594
|
+
ownership: Ownership$inboundSchema.optional(),
|
|
566
595
|
productId: z.string(),
|
|
567
596
|
name: z.string(),
|
|
568
597
|
status: ImportResourceStatus$inboundSchema,
|
|
569
598
|
metadata: z.record(z.any()).optional(),
|
|
570
599
|
billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
|
|
571
600
|
notification: z.lazy(() => Notification$inboundSchema).optional(),
|
|
601
|
+
extras: z.record(z.any()).optional(),
|
|
572
602
|
secrets: z.array(z.lazy(() => ImportResourceSecrets$inboundSchema))
|
|
573
603
|
.optional(),
|
|
574
604
|
});
|
|
575
605
|
|
|
576
606
|
/** @internal */
|
|
577
607
|
export type ImportResourceRequestBody$Outbound = {
|
|
608
|
+
ownership?: string | undefined;
|
|
578
609
|
productId: string;
|
|
579
610
|
name: string;
|
|
580
611
|
status: string;
|
|
581
612
|
metadata?: { [k: string]: any } | undefined;
|
|
582
613
|
billingPlan?: BillingPlan$Outbound | undefined;
|
|
583
614
|
notification?: Notification$Outbound | undefined;
|
|
615
|
+
extras?: { [k: string]: any } | undefined;
|
|
584
616
|
secrets?: Array<ImportResourceSecrets$Outbound> | undefined;
|
|
585
617
|
};
|
|
586
618
|
|
|
@@ -590,12 +622,14 @@ export const ImportResourceRequestBody$outboundSchema: z.ZodType<
|
|
|
590
622
|
z.ZodTypeDef,
|
|
591
623
|
ImportResourceRequestBody
|
|
592
624
|
> = z.object({
|
|
625
|
+
ownership: Ownership$outboundSchema.optional(),
|
|
593
626
|
productId: z.string(),
|
|
594
627
|
name: z.string(),
|
|
595
628
|
status: ImportResourceStatus$outboundSchema,
|
|
596
629
|
metadata: z.record(z.any()).optional(),
|
|
597
630
|
billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
|
|
598
631
|
notification: z.lazy(() => Notification$outboundSchema).optional(),
|
|
632
|
+
extras: z.record(z.any()).optional(),
|
|
599
633
|
secrets: z.array(z.lazy(() => ImportResourceSecrets$outboundSchema))
|
|
600
634
|
.optional(),
|
|
601
635
|
});
|
package/src/models/team.ts
CHANGED
|
@@ -20,14 +20,14 @@ export type Connect = {
|
|
|
20
20
|
* Information for the SAML Single Sign-On configuration.
|
|
21
21
|
*/
|
|
22
22
|
export type Connection = {
|
|
23
|
-
/**
|
|
24
|
-
* Current status of the connection.
|
|
25
|
-
*/
|
|
26
|
-
status: string;
|
|
27
23
|
/**
|
|
28
24
|
* The Identity Provider "type", for example Okta.
|
|
29
25
|
*/
|
|
30
26
|
type: string;
|
|
27
|
+
/**
|
|
28
|
+
* Current status of the connection.
|
|
29
|
+
*/
|
|
30
|
+
status: string;
|
|
31
31
|
/**
|
|
32
32
|
* Current state of the connection.
|
|
33
33
|
*/
|
|
@@ -124,6 +124,39 @@ export type Saml = {
|
|
|
124
124
|
roles?: { [k: string]: Roles1 | Roles2 } | undefined;
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
+
export const TeamRoles = {
|
|
128
|
+
Owner: "OWNER",
|
|
129
|
+
Member: "MEMBER",
|
|
130
|
+
Developer: "DEVELOPER",
|
|
131
|
+
Security: "SECURITY",
|
|
132
|
+
Billing: "BILLING",
|
|
133
|
+
Viewer: "VIEWER",
|
|
134
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
135
|
+
Contributor: "CONTRIBUTOR",
|
|
136
|
+
} as const;
|
|
137
|
+
export type TeamRoles = ClosedEnum<typeof TeamRoles>;
|
|
138
|
+
|
|
139
|
+
export const TeamPermissions = {
|
|
140
|
+
IntegrationManager: "IntegrationManager",
|
|
141
|
+
CreateProject: "CreateProject",
|
|
142
|
+
FullProductionDeployment: "FullProductionDeployment",
|
|
143
|
+
UsageViewer: "UsageViewer",
|
|
144
|
+
EnvVariableManager: "EnvVariableManager",
|
|
145
|
+
EnvironmentManager: "EnvironmentManager",
|
|
146
|
+
V0Builder: "V0Builder",
|
|
147
|
+
V0Chatter: "V0Chatter",
|
|
148
|
+
V0Viewer: "V0Viewer",
|
|
149
|
+
} as const;
|
|
150
|
+
export type TeamPermissions = ClosedEnum<typeof TeamPermissions>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Default roles for the team.
|
|
154
|
+
*/
|
|
155
|
+
export type DefaultRoles = {
|
|
156
|
+
teamRoles?: Array<TeamRoles> | undefined;
|
|
157
|
+
teamPermissions?: Array<TeamPermissions> | undefined;
|
|
158
|
+
};
|
|
159
|
+
|
|
127
160
|
export type BuildEntitlements = {
|
|
128
161
|
enhancedBuilds?: boolean | undefined;
|
|
129
162
|
};
|
|
@@ -281,7 +314,7 @@ export const Role = {
|
|
|
281
314
|
} as const;
|
|
282
315
|
export type Role = ClosedEnum<typeof Role>;
|
|
283
316
|
|
|
284
|
-
export const
|
|
317
|
+
export const TeamTeamRoles = {
|
|
285
318
|
Owner: "OWNER",
|
|
286
319
|
Member: "MEMBER",
|
|
287
320
|
Developer: "DEVELOPER",
|
|
@@ -291,9 +324,9 @@ export const TeamRoles = {
|
|
|
291
324
|
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
292
325
|
Contributor: "CONTRIBUTOR",
|
|
293
326
|
} as const;
|
|
294
|
-
export type
|
|
327
|
+
export type TeamTeamRoles = ClosedEnum<typeof TeamTeamRoles>;
|
|
295
328
|
|
|
296
|
-
export const
|
|
329
|
+
export const TeamTeamPermissions = {
|
|
297
330
|
IntegrationManager: "IntegrationManager",
|
|
298
331
|
CreateProject: "CreateProject",
|
|
299
332
|
FullProductionDeployment: "FullProductionDeployment",
|
|
@@ -304,12 +337,12 @@ export const TeamPermissions = {
|
|
|
304
337
|
V0Chatter: "V0Chatter",
|
|
305
338
|
V0Viewer: "V0Viewer",
|
|
306
339
|
} as const;
|
|
307
|
-
export type
|
|
340
|
+
export type TeamTeamPermissions = ClosedEnum<typeof TeamTeamPermissions>;
|
|
308
341
|
|
|
309
342
|
export const Origin = {
|
|
343
|
+
Link: "link",
|
|
310
344
|
Saml: "saml",
|
|
311
345
|
Mail: "mail",
|
|
312
|
-
Link: "link",
|
|
313
346
|
Import: "import",
|
|
314
347
|
Teams: "teams",
|
|
315
348
|
Github: "github",
|
|
@@ -343,12 +376,12 @@ export type JoinedFrom = {
|
|
|
343
376
|
export type Membership = {
|
|
344
377
|
uid?: string | undefined;
|
|
345
378
|
entitlements?: Array<Entitlements> | undefined;
|
|
379
|
+
teamId?: string | undefined;
|
|
346
380
|
confirmed: boolean;
|
|
347
381
|
accessRequestedAt?: number | undefined;
|
|
348
382
|
role: Role;
|
|
349
|
-
teamRoles?: Array<
|
|
350
|
-
teamPermissions?: Array<
|
|
351
|
-
teamId?: string | undefined;
|
|
383
|
+
teamRoles?: Array<TeamTeamRoles> | undefined;
|
|
384
|
+
teamPermissions?: Array<TeamTeamPermissions> | undefined;
|
|
352
385
|
createdAt: number;
|
|
353
386
|
created: number;
|
|
354
387
|
joinedFrom?: JoinedFrom | undefined;
|
|
@@ -383,6 +416,10 @@ export type Team = {
|
|
|
383
416
|
* A short description of the Team.
|
|
384
417
|
*/
|
|
385
418
|
description: string | null;
|
|
419
|
+
/**
|
|
420
|
+
* Default roles for the team.
|
|
421
|
+
*/
|
|
422
|
+
defaultRoles?: DefaultRoles | undefined;
|
|
386
423
|
/**
|
|
387
424
|
* The prefix that is prepended to automatic aliases.
|
|
388
425
|
*/
|
|
@@ -513,8 +550,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
513
550
|
z.ZodTypeDef,
|
|
514
551
|
unknown
|
|
515
552
|
> = z.object({
|
|
516
|
-
status: z.string(),
|
|
517
553
|
type: z.string(),
|
|
554
|
+
status: z.string(),
|
|
518
555
|
state: z.string(),
|
|
519
556
|
connectedAt: z.number(),
|
|
520
557
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -522,8 +559,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
522
559
|
|
|
523
560
|
/** @internal */
|
|
524
561
|
export type Connection$Outbound = {
|
|
525
|
-
status: string;
|
|
526
562
|
type: string;
|
|
563
|
+
status: string;
|
|
527
564
|
state: string;
|
|
528
565
|
connectedAt: number;
|
|
529
566
|
lastReceivedWebhookEvent?: number | undefined;
|
|
@@ -535,8 +572,8 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
535
572
|
z.ZodTypeDef,
|
|
536
573
|
Connection
|
|
537
574
|
> = z.object({
|
|
538
|
-
status: z.string(),
|
|
539
575
|
type: z.string(),
|
|
576
|
+
status: z.string(),
|
|
540
577
|
state: z.string(),
|
|
541
578
|
connectedAt: z.number(),
|
|
542
579
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -816,6 +853,99 @@ export function samlFromJSON(
|
|
|
816
853
|
);
|
|
817
854
|
}
|
|
818
855
|
|
|
856
|
+
/** @internal */
|
|
857
|
+
export const TeamRoles$inboundSchema: z.ZodNativeEnum<typeof TeamRoles> = z
|
|
858
|
+
.nativeEnum(TeamRoles);
|
|
859
|
+
|
|
860
|
+
/** @internal */
|
|
861
|
+
export const TeamRoles$outboundSchema: z.ZodNativeEnum<typeof TeamRoles> =
|
|
862
|
+
TeamRoles$inboundSchema;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* @internal
|
|
866
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
867
|
+
*/
|
|
868
|
+
export namespace TeamRoles$ {
|
|
869
|
+
/** @deprecated use `TeamRoles$inboundSchema` instead. */
|
|
870
|
+
export const inboundSchema = TeamRoles$inboundSchema;
|
|
871
|
+
/** @deprecated use `TeamRoles$outboundSchema` instead. */
|
|
872
|
+
export const outboundSchema = TeamRoles$outboundSchema;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/** @internal */
|
|
876
|
+
export const TeamPermissions$inboundSchema: z.ZodNativeEnum<
|
|
877
|
+
typeof TeamPermissions
|
|
878
|
+
> = z.nativeEnum(TeamPermissions);
|
|
879
|
+
|
|
880
|
+
/** @internal */
|
|
881
|
+
export const TeamPermissions$outboundSchema: z.ZodNativeEnum<
|
|
882
|
+
typeof TeamPermissions
|
|
883
|
+
> = TeamPermissions$inboundSchema;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* @internal
|
|
887
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
888
|
+
*/
|
|
889
|
+
export namespace TeamPermissions$ {
|
|
890
|
+
/** @deprecated use `TeamPermissions$inboundSchema` instead. */
|
|
891
|
+
export const inboundSchema = TeamPermissions$inboundSchema;
|
|
892
|
+
/** @deprecated use `TeamPermissions$outboundSchema` instead. */
|
|
893
|
+
export const outboundSchema = TeamPermissions$outboundSchema;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/** @internal */
|
|
897
|
+
export const DefaultRoles$inboundSchema: z.ZodType<
|
|
898
|
+
DefaultRoles,
|
|
899
|
+
z.ZodTypeDef,
|
|
900
|
+
unknown
|
|
901
|
+
> = z.object({
|
|
902
|
+
teamRoles: z.array(TeamRoles$inboundSchema).optional(),
|
|
903
|
+
teamPermissions: z.array(TeamPermissions$inboundSchema).optional(),
|
|
904
|
+
});
|
|
905
|
+
|
|
906
|
+
/** @internal */
|
|
907
|
+
export type DefaultRoles$Outbound = {
|
|
908
|
+
teamRoles?: Array<string> | undefined;
|
|
909
|
+
teamPermissions?: Array<string> | undefined;
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
/** @internal */
|
|
913
|
+
export const DefaultRoles$outboundSchema: z.ZodType<
|
|
914
|
+
DefaultRoles$Outbound,
|
|
915
|
+
z.ZodTypeDef,
|
|
916
|
+
DefaultRoles
|
|
917
|
+
> = z.object({
|
|
918
|
+
teamRoles: z.array(TeamRoles$outboundSchema).optional(),
|
|
919
|
+
teamPermissions: z.array(TeamPermissions$outboundSchema).optional(),
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* @internal
|
|
924
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
925
|
+
*/
|
|
926
|
+
export namespace DefaultRoles$ {
|
|
927
|
+
/** @deprecated use `DefaultRoles$inboundSchema` instead. */
|
|
928
|
+
export const inboundSchema = DefaultRoles$inboundSchema;
|
|
929
|
+
/** @deprecated use `DefaultRoles$outboundSchema` instead. */
|
|
930
|
+
export const outboundSchema = DefaultRoles$outboundSchema;
|
|
931
|
+
/** @deprecated use `DefaultRoles$Outbound` instead. */
|
|
932
|
+
export type Outbound = DefaultRoles$Outbound;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export function defaultRolesToJSON(defaultRoles: DefaultRoles): string {
|
|
936
|
+
return JSON.stringify(DefaultRoles$outboundSchema.parse(defaultRoles));
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export function defaultRolesFromJSON(
|
|
940
|
+
jsonString: string,
|
|
941
|
+
): SafeParseResult<DefaultRoles, SDKValidationError> {
|
|
942
|
+
return safeParse(
|
|
943
|
+
jsonString,
|
|
944
|
+
(x) => DefaultRoles$inboundSchema.parse(JSON.parse(x)),
|
|
945
|
+
`Failed to parse 'DefaultRoles' from JSON`,
|
|
946
|
+
);
|
|
947
|
+
}
|
|
948
|
+
|
|
819
949
|
/** @internal */
|
|
820
950
|
export const BuildEntitlements$inboundSchema: z.ZodType<
|
|
821
951
|
BuildEntitlements,
|
|
@@ -1457,43 +1587,45 @@ export namespace Role$ {
|
|
|
1457
1587
|
}
|
|
1458
1588
|
|
|
1459
1589
|
/** @internal */
|
|
1460
|
-
export const
|
|
1461
|
-
|
|
1590
|
+
export const TeamTeamRoles$inboundSchema: z.ZodNativeEnum<
|
|
1591
|
+
typeof TeamTeamRoles
|
|
1592
|
+
> = z.nativeEnum(TeamTeamRoles);
|
|
1462
1593
|
|
|
1463
1594
|
/** @internal */
|
|
1464
|
-
export const
|
|
1465
|
-
|
|
1595
|
+
export const TeamTeamRoles$outboundSchema: z.ZodNativeEnum<
|
|
1596
|
+
typeof TeamTeamRoles
|
|
1597
|
+
> = TeamTeamRoles$inboundSchema;
|
|
1466
1598
|
|
|
1467
1599
|
/**
|
|
1468
1600
|
* @internal
|
|
1469
1601
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1470
1602
|
*/
|
|
1471
|
-
export namespace
|
|
1472
|
-
/** @deprecated use `
|
|
1473
|
-
export const inboundSchema =
|
|
1474
|
-
/** @deprecated use `
|
|
1475
|
-
export const outboundSchema =
|
|
1603
|
+
export namespace TeamTeamRoles$ {
|
|
1604
|
+
/** @deprecated use `TeamTeamRoles$inboundSchema` instead. */
|
|
1605
|
+
export const inboundSchema = TeamTeamRoles$inboundSchema;
|
|
1606
|
+
/** @deprecated use `TeamTeamRoles$outboundSchema` instead. */
|
|
1607
|
+
export const outboundSchema = TeamTeamRoles$outboundSchema;
|
|
1476
1608
|
}
|
|
1477
1609
|
|
|
1478
1610
|
/** @internal */
|
|
1479
|
-
export const
|
|
1480
|
-
typeof
|
|
1481
|
-
> = z.nativeEnum(
|
|
1611
|
+
export const TeamTeamPermissions$inboundSchema: z.ZodNativeEnum<
|
|
1612
|
+
typeof TeamTeamPermissions
|
|
1613
|
+
> = z.nativeEnum(TeamTeamPermissions);
|
|
1482
1614
|
|
|
1483
1615
|
/** @internal */
|
|
1484
|
-
export const
|
|
1485
|
-
typeof
|
|
1486
|
-
> =
|
|
1616
|
+
export const TeamTeamPermissions$outboundSchema: z.ZodNativeEnum<
|
|
1617
|
+
typeof TeamTeamPermissions
|
|
1618
|
+
> = TeamTeamPermissions$inboundSchema;
|
|
1487
1619
|
|
|
1488
1620
|
/**
|
|
1489
1621
|
* @internal
|
|
1490
1622
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1491
1623
|
*/
|
|
1492
|
-
export namespace
|
|
1493
|
-
/** @deprecated use `
|
|
1494
|
-
export const inboundSchema =
|
|
1495
|
-
/** @deprecated use `
|
|
1496
|
-
export const outboundSchema =
|
|
1624
|
+
export namespace TeamTeamPermissions$ {
|
|
1625
|
+
/** @deprecated use `TeamTeamPermissions$inboundSchema` instead. */
|
|
1626
|
+
export const inboundSchema = TeamTeamPermissions$inboundSchema;
|
|
1627
|
+
/** @deprecated use `TeamTeamPermissions$outboundSchema` instead. */
|
|
1628
|
+
export const outboundSchema = TeamTeamPermissions$outboundSchema;
|
|
1497
1629
|
}
|
|
1498
1630
|
|
|
1499
1631
|
/** @internal */
|
|
@@ -1647,12 +1779,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1647
1779
|
> = z.object({
|
|
1648
1780
|
uid: z.string().optional(),
|
|
1649
1781
|
entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
|
|
1782
|
+
teamId: z.string().optional(),
|
|
1650
1783
|
confirmed: z.boolean(),
|
|
1651
1784
|
accessRequestedAt: z.number().optional(),
|
|
1652
1785
|
role: Role$inboundSchema,
|
|
1653
|
-
teamRoles: z.array(
|
|
1654
|
-
teamPermissions: z.array(
|
|
1655
|
-
teamId: z.string().optional(),
|
|
1786
|
+
teamRoles: z.array(TeamTeamRoles$inboundSchema).optional(),
|
|
1787
|
+
teamPermissions: z.array(TeamTeamPermissions$inboundSchema).optional(),
|
|
1656
1788
|
createdAt: z.number(),
|
|
1657
1789
|
created: z.number(),
|
|
1658
1790
|
joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
|
|
@@ -1662,12 +1794,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1662
1794
|
export type Membership$Outbound = {
|
|
1663
1795
|
uid?: string | undefined;
|
|
1664
1796
|
entitlements?: Array<Entitlements$Outbound> | undefined;
|
|
1797
|
+
teamId?: string | undefined;
|
|
1665
1798
|
confirmed: boolean;
|
|
1666
1799
|
accessRequestedAt?: number | undefined;
|
|
1667
1800
|
role: string;
|
|
1668
1801
|
teamRoles?: Array<string> | undefined;
|
|
1669
1802
|
teamPermissions?: Array<string> | undefined;
|
|
1670
|
-
teamId?: string | undefined;
|
|
1671
1803
|
createdAt: number;
|
|
1672
1804
|
created: number;
|
|
1673
1805
|
joinedFrom?: JoinedFrom$Outbound | undefined;
|
|
@@ -1681,12 +1813,12 @@ export const Membership$outboundSchema: z.ZodType<
|
|
|
1681
1813
|
> = z.object({
|
|
1682
1814
|
uid: z.string().optional(),
|
|
1683
1815
|
entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
|
|
1816
|
+
teamId: z.string().optional(),
|
|
1684
1817
|
confirmed: z.boolean(),
|
|
1685
1818
|
accessRequestedAt: z.number().optional(),
|
|
1686
1819
|
role: Role$outboundSchema,
|
|
1687
|
-
teamRoles: z.array(
|
|
1688
|
-
teamPermissions: z.array(
|
|
1689
|
-
teamId: z.string().optional(),
|
|
1820
|
+
teamRoles: z.array(TeamTeamRoles$outboundSchema).optional(),
|
|
1821
|
+
teamPermissions: z.array(TeamTeamPermissions$outboundSchema).optional(),
|
|
1690
1822
|
createdAt: z.number(),
|
|
1691
1823
|
created: z.number(),
|
|
1692
1824
|
joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
|
|
@@ -1730,6 +1862,7 @@ export const Team$inboundSchema: z.ZodType<Team, z.ZodTypeDef, unknown> =
|
|
|
1730
1862
|
saml: z.lazy(() => Saml$inboundSchema).optional(),
|
|
1731
1863
|
inviteCode: z.string().optional(),
|
|
1732
1864
|
description: z.nullable(z.string()),
|
|
1865
|
+
defaultRoles: z.lazy(() => DefaultRoles$inboundSchema).optional(),
|
|
1733
1866
|
stagingPrefix: z.string(),
|
|
1734
1867
|
resourceConfig: z.lazy(() => ResourceConfig$inboundSchema).optional(),
|
|
1735
1868
|
previewDeploymentSuffix: z.nullable(z.string()).optional(),
|
|
@@ -1773,6 +1906,7 @@ export type Team$Outbound = {
|
|
|
1773
1906
|
saml?: Saml$Outbound | undefined;
|
|
1774
1907
|
inviteCode?: string | undefined;
|
|
1775
1908
|
description: string | null;
|
|
1909
|
+
defaultRoles?: DefaultRoles$Outbound | undefined;
|
|
1776
1910
|
stagingPrefix: string;
|
|
1777
1911
|
resourceConfig?: ResourceConfig$Outbound | undefined;
|
|
1778
1912
|
previewDeploymentSuffix?: string | null | undefined;
|
|
@@ -1808,6 +1942,7 @@ export const Team$outboundSchema: z.ZodType<Team$Outbound, z.ZodTypeDef, Team> =
|
|
|
1808
1942
|
saml: z.lazy(() => Saml$outboundSchema).optional(),
|
|
1809
1943
|
inviteCode: z.string().optional(),
|
|
1810
1944
|
description: z.nullable(z.string()),
|
|
1945
|
+
defaultRoles: z.lazy(() => DefaultRoles$outboundSchema).optional(),
|
|
1811
1946
|
stagingPrefix: z.string(),
|
|
1812
1947
|
resourceConfig: z.lazy(() => ResourceConfig$outboundSchema).optional(),
|
|
1813
1948
|
previewDeploymentSuffix: z.nullable(z.string()).optional(),
|
|
@@ -71,6 +71,7 @@ export type UpdateEdgeConfigPurpose =
|
|
|
71
71
|
export type UpdateEdgeConfigResponseBody = {
|
|
72
72
|
createdAt: number;
|
|
73
73
|
updatedAt: number;
|
|
74
|
+
deletedAt?: number | undefined;
|
|
74
75
|
id: string;
|
|
75
76
|
/**
|
|
76
77
|
* Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
|
|
@@ -550,6 +551,7 @@ export const UpdateEdgeConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
550
551
|
> = z.object({
|
|
551
552
|
createdAt: z.number(),
|
|
552
553
|
updatedAt: z.number(),
|
|
554
|
+
deletedAt: z.number().optional(),
|
|
553
555
|
id: z.string(),
|
|
554
556
|
slug: z.string(),
|
|
555
557
|
ownerId: z.string(),
|
|
@@ -569,6 +571,7 @@ export const UpdateEdgeConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
569
571
|
export type UpdateEdgeConfigResponseBody$Outbound = {
|
|
570
572
|
createdAt: number;
|
|
571
573
|
updatedAt: number;
|
|
574
|
+
deletedAt?: number | undefined;
|
|
572
575
|
id: string;
|
|
573
576
|
slug: string;
|
|
574
577
|
ownerId: string;
|
|
@@ -592,6 +595,7 @@ export const UpdateEdgeConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
592
595
|
> = z.object({
|
|
593
596
|
createdAt: z.number(),
|
|
594
597
|
updatedAt: z.number(),
|
|
598
|
+
deletedAt: z.number().optional(),
|
|
595
599
|
id: z.string(),
|
|
596
600
|
slug: z.string(),
|
|
597
601
|
ownerId: z.string(),
|