@vercel/sdk 1.10.7 → 1.11.0
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 +3751 -930
- package/bin/mcp-server.js.map +23 -23
- package/esm/__tests__/accessgroups.test.js +6 -6
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +11 -4
- 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 +11 -1
- 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 +41 -41
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +43 -41
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +98 -98
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +113 -117
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +240 -240
- package/esm/models/createintegrationstoredirectop.js +294 -294
- package/esm/models/createortransferdomainop.d.ts +33 -0
- package/esm/models/createortransferdomainop.d.ts.map +1 -1
- package/esm/models/createortransferdomainop.js +23 -0
- package/esm/models/createortransferdomainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +1626 -281
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +1676 -298
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +72 -66
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +24 -22
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +330 -330
- package/esm/models/getconfigurationproductsop.js +408 -408
- package/esm/models/getdeploymentop.d.ts +16 -16
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +24 -24
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdomainop.d.ts +33 -0
- package/esm/models/getdomainop.d.ts.map +1 -1
- package/esm/models/getdomainop.js +24 -0
- package/esm/models/getdomainop.js.map +1 -1
- package/esm/models/getdomainsop.d.ts +33 -0
- package/esm/models/getdomainsop.d.ts.map +1 -1
- package/esm/models/getdomainsop.js +23 -0
- package/esm/models/getdomainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +1402 -57
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +1575 -202
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +36 -33
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +12 -11
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +72 -66
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +24 -22
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/listaccessgroupsop.d.ts +2 -5
- package/esm/models/listaccessgroupsop.d.ts.map +1 -1
- package/esm/models/listaccessgroupsop.js +2 -2
- package/esm/models/listaccessgroupsop.js.map +1 -1
- package/esm/models/readaccessgroupop.d.ts +48 -5
- package/esm/models/readaccessgroupop.d.ts.map +1 -1
- package/esm/models/readaccessgroupop.js +30 -2
- package/esm/models/readaccessgroupop.js.map +1 -1
- package/esm/models/team.d.ts +35 -18
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +15 -13
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +1402 -57
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +1584 -200
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +1402 -57
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +1579 -202
- package/esm/models/updateprojectop.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/examples/projectsUpdateProject.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +6 -6
- package/src/__tests__/domains.test.ts +11 -4
- 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 +11 -1
- 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 +84 -64
- package/src/models/createdeploymentop.ts +239 -192
- package/src/models/createintegrationstoredirectop.ts +505 -505
- package/src/models/createortransferdomainop.ts +41 -0
- package/src/models/createprojectop.ts +3443 -466
- package/src/models/createwebhookop.ts +24 -22
- package/src/models/getconfigurationproductsop.ts +703 -703
- package/src/models/getdeploymentop.ts +34 -34
- package/src/models/getdomainop.ts +37 -0
- package/src/models/getdomainsop.ts +39 -0
- package/src/models/getprojectsop.ts +3255 -300
- package/src/models/getwebhookop.ts +12 -11
- package/src/models/getwebhooksop.ts +24 -22
- package/src/models/listaccessgroupsop.ts +4 -7
- package/src/models/readaccessgroupop.ts +42 -7
- package/src/models/team.ts +47 -28
- package/src/models/updateprojectdatacacheop.ts +3184 -307
- package/src/models/updateprojectop.ts +3290 -298
- package/vercel-spec.json +4916 -2034
|
@@ -79,20 +79,21 @@ export const GetWebhookEvents = {
|
|
|
79
79
|
DeploymentChecksFailed: "deployment.checks.failed",
|
|
80
80
|
DeploymentChecksSucceeded: "deployment.checks.succeeded",
|
|
81
81
|
DeploymentChecksCompleted: "deployment-checks-completed",
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
DeploymentReadyHyphen: "deployment-ready",
|
|
83
|
+
DeploymentPreparedHyphen: "deployment-prepared",
|
|
84
|
+
DeploymentErrorHyphen: "deployment-error",
|
|
85
|
+
DeploymentCheckRerequestedHyphen: "deployment-check-rerequested",
|
|
86
|
+
DeploymentCanceledHyphen: "deployment-canceled",
|
|
87
|
+
ProjectCreatedHyphen: "project-created",
|
|
88
|
+
ProjectRemovedHyphen: "project-removed",
|
|
89
|
+
DomainCreatedHyphen: "domain-created",
|
|
90
90
|
Deployment: "deployment",
|
|
91
|
-
|
|
91
|
+
IntegrationConfigurationPermissionUpdatedHyphen:
|
|
92
92
|
"integration-configuration-permission-updated",
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
IntegrationConfigurationRemovedHyphen: "integration-configuration-removed",
|
|
94
|
+
IntegrationConfigurationScopeChangeConfirmedHyphen:
|
|
95
95
|
"integration-configuration-scope-change-confirmed",
|
|
96
|
+
MarketplaceMemberChanged: "marketplace.member.changed",
|
|
96
97
|
MarketplaceInvoiceCreated: "marketplace.invoice.created",
|
|
97
98
|
MarketplaceInvoicePaid: "marketplace.invoice.paid",
|
|
98
99
|
MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid",
|
|
@@ -79,20 +79,21 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
79
79
|
DeploymentChecksFailed: "deployment.checks.failed",
|
|
80
80
|
DeploymentChecksSucceeded: "deployment.checks.succeeded",
|
|
81
81
|
DeploymentChecksCompleted: "deployment-checks-completed",
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
DeploymentReadyHyphen: "deployment-ready",
|
|
83
|
+
DeploymentPreparedHyphen: "deployment-prepared",
|
|
84
|
+
DeploymentErrorHyphen: "deployment-error",
|
|
85
|
+
DeploymentCheckRerequestedHyphen: "deployment-check-rerequested",
|
|
86
|
+
DeploymentCanceledHyphen: "deployment-canceled",
|
|
87
|
+
ProjectCreatedHyphen: "project-created",
|
|
88
|
+
ProjectRemovedHyphen: "project-removed",
|
|
89
|
+
DomainCreatedHyphen: "domain-created",
|
|
90
90
|
Deployment: "deployment",
|
|
91
|
-
|
|
91
|
+
IntegrationConfigurationPermissionUpdatedHyphen:
|
|
92
92
|
"integration-configuration-permission-updated",
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
IntegrationConfigurationRemovedHyphen: "integration-configuration-removed",
|
|
94
|
+
IntegrationConfigurationScopeChangeConfirmedHyphen:
|
|
95
95
|
"integration-configuration-scope-change-confirmed",
|
|
96
|
+
MarketplaceMemberChanged: "marketplace.member.changed",
|
|
96
97
|
MarketplaceInvoiceCreated: "marketplace.invoice.created",
|
|
97
98
|
MarketplaceInvoicePaid: "marketplace.invoice.paid",
|
|
98
99
|
MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid",
|
|
@@ -261,20 +262,21 @@ export const ResponseBodyEvents = {
|
|
|
261
262
|
DeploymentChecksFailed: "deployment.checks.failed",
|
|
262
263
|
DeploymentChecksSucceeded: "deployment.checks.succeeded",
|
|
263
264
|
DeploymentChecksCompleted: "deployment-checks-completed",
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
265
|
+
DeploymentReadyHyphen: "deployment-ready",
|
|
266
|
+
DeploymentPreparedHyphen: "deployment-prepared",
|
|
267
|
+
DeploymentErrorHyphen: "deployment-error",
|
|
268
|
+
DeploymentCheckRerequestedHyphen: "deployment-check-rerequested",
|
|
269
|
+
DeploymentCanceledHyphen: "deployment-canceled",
|
|
270
|
+
ProjectCreatedHyphen: "project-created",
|
|
271
|
+
ProjectRemovedHyphen: "project-removed",
|
|
272
|
+
DomainCreatedHyphen: "domain-created",
|
|
272
273
|
Deployment: "deployment",
|
|
273
|
-
|
|
274
|
+
IntegrationConfigurationPermissionUpdatedHyphen:
|
|
274
275
|
"integration-configuration-permission-updated",
|
|
275
|
-
|
|
276
|
-
|
|
276
|
+
IntegrationConfigurationRemovedHyphen: "integration-configuration-removed",
|
|
277
|
+
IntegrationConfigurationScopeChangeConfirmedHyphen:
|
|
277
278
|
"integration-configuration-scope-change-confirmed",
|
|
279
|
+
MarketplaceMemberChanged: "marketplace.member.changed",
|
|
278
280
|
MarketplaceInvoiceCreated: "marketplace.invoice.created",
|
|
279
281
|
MarketplaceInvoicePaid: "marketplace.invoice.paid",
|
|
280
282
|
MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid",
|
|
@@ -46,6 +46,7 @@ export type AccessGroups = {
|
|
|
46
46
|
members?: Array<string> | undefined;
|
|
47
47
|
projects?: Array<string> | undefined;
|
|
48
48
|
entitlements?: Array<string> | undefined;
|
|
49
|
+
teamPermissions?: Array<string> | undefined;
|
|
49
50
|
isDsyncManaged: boolean;
|
|
50
51
|
/**
|
|
51
52
|
* The name of this access group.
|
|
@@ -79,10 +80,6 @@ export type AccessGroups = {
|
|
|
79
80
|
* Roles that the team has in the access group.
|
|
80
81
|
*/
|
|
81
82
|
teamRoles?: Array<string> | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Permissions that the team has in the access group.
|
|
84
|
-
*/
|
|
85
|
-
teamPermissions?: Array<string> | undefined;
|
|
86
83
|
};
|
|
87
84
|
|
|
88
85
|
export type ResponseBodyPagination = {
|
|
@@ -185,6 +182,7 @@ export const AccessGroups$inboundSchema: z.ZodType<
|
|
|
185
182
|
members: z.array(z.string()).optional(),
|
|
186
183
|
projects: z.array(z.string()).optional(),
|
|
187
184
|
entitlements: z.array(z.string()).optional(),
|
|
185
|
+
teamPermissions: z.array(z.string()).optional(),
|
|
188
186
|
isDsyncManaged: z.boolean(),
|
|
189
187
|
name: z.string(),
|
|
190
188
|
createdAt: z.string(),
|
|
@@ -194,7 +192,6 @@ export const AccessGroups$inboundSchema: z.ZodType<
|
|
|
194
192
|
membersCount: z.number(),
|
|
195
193
|
projectsCount: z.number(),
|
|
196
194
|
teamRoles: z.array(z.string()).optional(),
|
|
197
|
-
teamPermissions: z.array(z.string()).optional(),
|
|
198
195
|
});
|
|
199
196
|
|
|
200
197
|
/** @internal */
|
|
@@ -202,6 +199,7 @@ export type AccessGroups$Outbound = {
|
|
|
202
199
|
members?: Array<string> | undefined;
|
|
203
200
|
projects?: Array<string> | undefined;
|
|
204
201
|
entitlements?: Array<string> | undefined;
|
|
202
|
+
teamPermissions?: Array<string> | undefined;
|
|
205
203
|
isDsyncManaged: boolean;
|
|
206
204
|
name: string;
|
|
207
205
|
createdAt: string;
|
|
@@ -211,7 +209,6 @@ export type AccessGroups$Outbound = {
|
|
|
211
209
|
membersCount: number;
|
|
212
210
|
projectsCount: number;
|
|
213
211
|
teamRoles?: Array<string> | undefined;
|
|
214
|
-
teamPermissions?: Array<string> | undefined;
|
|
215
212
|
};
|
|
216
213
|
|
|
217
214
|
/** @internal */
|
|
@@ -223,6 +220,7 @@ export const AccessGroups$outboundSchema: z.ZodType<
|
|
|
223
220
|
members: z.array(z.string()).optional(),
|
|
224
221
|
projects: z.array(z.string()).optional(),
|
|
225
222
|
entitlements: z.array(z.string()).optional(),
|
|
223
|
+
teamPermissions: z.array(z.string()).optional(),
|
|
226
224
|
isDsyncManaged: z.boolean(),
|
|
227
225
|
name: z.string(),
|
|
228
226
|
createdAt: z.string(),
|
|
@@ -232,7 +230,6 @@ export const AccessGroups$outboundSchema: z.ZodType<
|
|
|
232
230
|
membersCount: z.number(),
|
|
233
231
|
projectsCount: z.number(),
|
|
234
232
|
teamRoles: z.array(z.string()).optional(),
|
|
235
|
-
teamPermissions: z.array(z.string()).optional(),
|
|
236
233
|
});
|
|
237
234
|
|
|
238
235
|
/**
|
|
@@ -20,6 +20,21 @@ export type ReadAccessGroupRequest = {
|
|
|
20
20
|
slug?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
export const ReadAccessGroupTeamPermissions = {
|
|
24
|
+
IntegrationManager: "IntegrationManager",
|
|
25
|
+
CreateProject: "CreateProject",
|
|
26
|
+
FullProductionDeployment: "FullProductionDeployment",
|
|
27
|
+
UsageViewer: "UsageViewer",
|
|
28
|
+
EnvVariableManager: "EnvVariableManager",
|
|
29
|
+
EnvironmentManager: "EnvironmentManager",
|
|
30
|
+
V0Builder: "V0Builder",
|
|
31
|
+
V0Chatter: "V0Chatter",
|
|
32
|
+
V0Viewer: "V0Viewer",
|
|
33
|
+
} as const;
|
|
34
|
+
export type ReadAccessGroupTeamPermissions = ClosedEnum<
|
|
35
|
+
typeof ReadAccessGroupTeamPermissions
|
|
36
|
+
>;
|
|
37
|
+
|
|
23
38
|
export const ReadAccessGroupEntitlements = {
|
|
24
39
|
V0: "v0",
|
|
25
40
|
} as const;
|
|
@@ -28,6 +43,7 @@ export type ReadAccessGroupEntitlements = ClosedEnum<
|
|
|
28
43
|
>;
|
|
29
44
|
|
|
30
45
|
export type ReadAccessGroupResponseBody = {
|
|
46
|
+
teamPermissions?: Array<ReadAccessGroupTeamPermissions> | undefined;
|
|
31
47
|
entitlements?: Array<ReadAccessGroupEntitlements> | undefined;
|
|
32
48
|
isDsyncManaged: boolean;
|
|
33
49
|
/**
|
|
@@ -62,10 +78,6 @@ export type ReadAccessGroupResponseBody = {
|
|
|
62
78
|
* Roles that the team has in the access group.
|
|
63
79
|
*/
|
|
64
80
|
teamRoles?: Array<string> | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Permissions that the team has in the access group.
|
|
67
|
-
*/
|
|
68
|
-
teamPermissions?: Array<string> | undefined;
|
|
69
81
|
};
|
|
70
82
|
|
|
71
83
|
/** @internal */
|
|
@@ -128,6 +140,27 @@ export function readAccessGroupRequestFromJSON(
|
|
|
128
140
|
);
|
|
129
141
|
}
|
|
130
142
|
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const ReadAccessGroupTeamPermissions$inboundSchema: z.ZodNativeEnum<
|
|
145
|
+
typeof ReadAccessGroupTeamPermissions
|
|
146
|
+
> = z.nativeEnum(ReadAccessGroupTeamPermissions);
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const ReadAccessGroupTeamPermissions$outboundSchema: z.ZodNativeEnum<
|
|
150
|
+
typeof ReadAccessGroupTeamPermissions
|
|
151
|
+
> = ReadAccessGroupTeamPermissions$inboundSchema;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
156
|
+
*/
|
|
157
|
+
export namespace ReadAccessGroupTeamPermissions$ {
|
|
158
|
+
/** @deprecated use `ReadAccessGroupTeamPermissions$inboundSchema` instead. */
|
|
159
|
+
export const inboundSchema = ReadAccessGroupTeamPermissions$inboundSchema;
|
|
160
|
+
/** @deprecated use `ReadAccessGroupTeamPermissions$outboundSchema` instead. */
|
|
161
|
+
export const outboundSchema = ReadAccessGroupTeamPermissions$outboundSchema;
|
|
162
|
+
}
|
|
163
|
+
|
|
131
164
|
/** @internal */
|
|
132
165
|
export const ReadAccessGroupEntitlements$inboundSchema: z.ZodNativeEnum<
|
|
133
166
|
typeof ReadAccessGroupEntitlements
|
|
@@ -155,6 +188,8 @@ export const ReadAccessGroupResponseBody$inboundSchema: z.ZodType<
|
|
|
155
188
|
z.ZodTypeDef,
|
|
156
189
|
unknown
|
|
157
190
|
> = z.object({
|
|
191
|
+
teamPermissions: z.array(ReadAccessGroupTeamPermissions$inboundSchema)
|
|
192
|
+
.optional(),
|
|
158
193
|
entitlements: z.array(ReadAccessGroupEntitlements$inboundSchema).optional(),
|
|
159
194
|
isDsyncManaged: z.boolean(),
|
|
160
195
|
name: z.string(),
|
|
@@ -165,11 +200,11 @@ export const ReadAccessGroupResponseBody$inboundSchema: z.ZodType<
|
|
|
165
200
|
membersCount: z.number(),
|
|
166
201
|
projectsCount: z.number(),
|
|
167
202
|
teamRoles: z.array(z.string()).optional(),
|
|
168
|
-
teamPermissions: z.array(z.string()).optional(),
|
|
169
203
|
});
|
|
170
204
|
|
|
171
205
|
/** @internal */
|
|
172
206
|
export type ReadAccessGroupResponseBody$Outbound = {
|
|
207
|
+
teamPermissions?: Array<string> | undefined;
|
|
173
208
|
entitlements?: Array<string> | undefined;
|
|
174
209
|
isDsyncManaged: boolean;
|
|
175
210
|
name: string;
|
|
@@ -180,7 +215,6 @@ export type ReadAccessGroupResponseBody$Outbound = {
|
|
|
180
215
|
membersCount: number;
|
|
181
216
|
projectsCount: number;
|
|
182
217
|
teamRoles?: Array<string> | undefined;
|
|
183
|
-
teamPermissions?: Array<string> | undefined;
|
|
184
218
|
};
|
|
185
219
|
|
|
186
220
|
/** @internal */
|
|
@@ -189,6 +223,8 @@ export const ReadAccessGroupResponseBody$outboundSchema: z.ZodType<
|
|
|
189
223
|
z.ZodTypeDef,
|
|
190
224
|
ReadAccessGroupResponseBody
|
|
191
225
|
> = z.object({
|
|
226
|
+
teamPermissions: z.array(ReadAccessGroupTeamPermissions$outboundSchema)
|
|
227
|
+
.optional(),
|
|
192
228
|
entitlements: z.array(ReadAccessGroupEntitlements$outboundSchema).optional(),
|
|
193
229
|
isDsyncManaged: z.boolean(),
|
|
194
230
|
name: z.string(),
|
|
@@ -199,7 +235,6 @@ export const ReadAccessGroupResponseBody$outboundSchema: z.ZodType<
|
|
|
199
235
|
membersCount: z.number(),
|
|
200
236
|
projectsCount: z.number(),
|
|
201
237
|
teamRoles: z.array(z.string()).optional(),
|
|
202
|
-
teamPermissions: z.array(z.string()).optional(),
|
|
203
238
|
});
|
|
204
239
|
|
|
205
240
|
/**
|
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
|
-
* The Identity Provider "type", for example Okta.
|
|
25
|
-
*/
|
|
26
|
-
type: string;
|
|
27
23
|
/**
|
|
28
24
|
* Current status of the connection.
|
|
29
25
|
*/
|
|
30
26
|
status: string;
|
|
27
|
+
/**
|
|
28
|
+
* The Identity Provider "type", for example Okta.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
31
|
/**
|
|
32
32
|
* Current state of the connection.
|
|
33
33
|
*/
|
|
@@ -189,10 +189,26 @@ export type DefaultDeploymentProtection = {
|
|
|
189
189
|
* Default deployment expiration settings for this team
|
|
190
190
|
*/
|
|
191
191
|
export type DefaultExpirationSettings = {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
/**
|
|
193
|
+
* Number of days to keep non-production deployments (mostly preview deployments) before soft deletion.
|
|
194
|
+
*/
|
|
195
|
+
expirationDays?: number | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Number of days to keep production deployments before soft deletion.
|
|
198
|
+
*/
|
|
199
|
+
expirationDaysProduction?: number | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Number of days to keep canceled deployments before soft deletion.
|
|
202
|
+
*/
|
|
203
|
+
expirationDaysCanceled?: number | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* Number of days to keep errored deployments before soft deletion.
|
|
206
|
+
*/
|
|
207
|
+
expirationDaysErrored?: number | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Minimum number of production deployments to keep for this project, even if they are over the production expiration limit.
|
|
210
|
+
*/
|
|
211
|
+
deploymentsToKeep?: number | undefined;
|
|
196
212
|
};
|
|
197
213
|
|
|
198
214
|
/**
|
|
@@ -291,9 +307,9 @@ export const TeamPermissions = {
|
|
|
291
307
|
export type TeamPermissions = ClosedEnum<typeof TeamPermissions>;
|
|
292
308
|
|
|
293
309
|
export const Origin = {
|
|
294
|
-
Link: "link",
|
|
295
310
|
Saml: "saml",
|
|
296
311
|
Mail: "mail",
|
|
312
|
+
Link: "link",
|
|
297
313
|
Import: "import",
|
|
298
314
|
Teams: "teams",
|
|
299
315
|
Github: "github",
|
|
@@ -327,12 +343,12 @@ export type JoinedFrom = {
|
|
|
327
343
|
export type Membership = {
|
|
328
344
|
uid?: string | undefined;
|
|
329
345
|
entitlements?: Array<Entitlements> | undefined;
|
|
330
|
-
teamId?: string | undefined;
|
|
331
346
|
confirmed: boolean;
|
|
332
347
|
accessRequestedAt?: number | undefined;
|
|
333
348
|
role: Role;
|
|
334
349
|
teamRoles?: Array<TeamRoles> | undefined;
|
|
335
350
|
teamPermissions?: Array<TeamPermissions> | undefined;
|
|
351
|
+
teamId?: string | undefined;
|
|
336
352
|
createdAt: number;
|
|
337
353
|
created: number;
|
|
338
354
|
joinedFrom?: JoinedFrom | undefined;
|
|
@@ -497,8 +513,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
497
513
|
z.ZodTypeDef,
|
|
498
514
|
unknown
|
|
499
515
|
> = z.object({
|
|
500
|
-
type: z.string(),
|
|
501
516
|
status: z.string(),
|
|
517
|
+
type: z.string(),
|
|
502
518
|
state: z.string(),
|
|
503
519
|
connectedAt: z.number(),
|
|
504
520
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -506,8 +522,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
506
522
|
|
|
507
523
|
/** @internal */
|
|
508
524
|
export type Connection$Outbound = {
|
|
509
|
-
type: string;
|
|
510
525
|
status: string;
|
|
526
|
+
type: string;
|
|
511
527
|
state: string;
|
|
512
528
|
connectedAt: number;
|
|
513
529
|
lastReceivedWebhookEvent?: number | undefined;
|
|
@@ -519,8 +535,8 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
519
535
|
z.ZodTypeDef,
|
|
520
536
|
Connection
|
|
521
537
|
> = z.object({
|
|
522
|
-
type: z.string(),
|
|
523
538
|
status: z.string(),
|
|
539
|
+
type: z.string(),
|
|
524
540
|
state: z.string(),
|
|
525
541
|
connectedAt: z.number(),
|
|
526
542
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -1193,18 +1209,20 @@ export const DefaultExpirationSettings$inboundSchema: z.ZodType<
|
|
|
1193
1209
|
z.ZodTypeDef,
|
|
1194
1210
|
unknown
|
|
1195
1211
|
> = z.object({
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1212
|
+
expirationDays: z.number().optional(),
|
|
1213
|
+
expirationDaysProduction: z.number().optional(),
|
|
1214
|
+
expirationDaysCanceled: z.number().optional(),
|
|
1215
|
+
expirationDaysErrored: z.number().optional(),
|
|
1216
|
+
deploymentsToKeep: z.number().optional(),
|
|
1200
1217
|
});
|
|
1201
1218
|
|
|
1202
1219
|
/** @internal */
|
|
1203
1220
|
export type DefaultExpirationSettings$Outbound = {
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1221
|
+
expirationDays?: number | undefined;
|
|
1222
|
+
expirationDaysProduction?: number | undefined;
|
|
1223
|
+
expirationDaysCanceled?: number | undefined;
|
|
1224
|
+
expirationDaysErrored?: number | undefined;
|
|
1225
|
+
deploymentsToKeep?: number | undefined;
|
|
1208
1226
|
};
|
|
1209
1227
|
|
|
1210
1228
|
/** @internal */
|
|
@@ -1213,10 +1231,11 @@ export const DefaultExpirationSettings$outboundSchema: z.ZodType<
|
|
|
1213
1231
|
z.ZodTypeDef,
|
|
1214
1232
|
DefaultExpirationSettings
|
|
1215
1233
|
> = z.object({
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1234
|
+
expirationDays: z.number().optional(),
|
|
1235
|
+
expirationDaysProduction: z.number().optional(),
|
|
1236
|
+
expirationDaysCanceled: z.number().optional(),
|
|
1237
|
+
expirationDaysErrored: z.number().optional(),
|
|
1238
|
+
deploymentsToKeep: z.number().optional(),
|
|
1220
1239
|
});
|
|
1221
1240
|
|
|
1222
1241
|
/**
|
|
@@ -1628,12 +1647,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1628
1647
|
> = z.object({
|
|
1629
1648
|
uid: z.string().optional(),
|
|
1630
1649
|
entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
|
|
1631
|
-
teamId: z.string().optional(),
|
|
1632
1650
|
confirmed: z.boolean(),
|
|
1633
1651
|
accessRequestedAt: z.number().optional(),
|
|
1634
1652
|
role: Role$inboundSchema,
|
|
1635
1653
|
teamRoles: z.array(TeamRoles$inboundSchema).optional(),
|
|
1636
1654
|
teamPermissions: z.array(TeamPermissions$inboundSchema).optional(),
|
|
1655
|
+
teamId: z.string().optional(),
|
|
1637
1656
|
createdAt: z.number(),
|
|
1638
1657
|
created: z.number(),
|
|
1639
1658
|
joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
|
|
@@ -1643,12 +1662,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1643
1662
|
export type Membership$Outbound = {
|
|
1644
1663
|
uid?: string | undefined;
|
|
1645
1664
|
entitlements?: Array<Entitlements$Outbound> | undefined;
|
|
1646
|
-
teamId?: string | undefined;
|
|
1647
1665
|
confirmed: boolean;
|
|
1648
1666
|
accessRequestedAt?: number | undefined;
|
|
1649
1667
|
role: string;
|
|
1650
1668
|
teamRoles?: Array<string> | undefined;
|
|
1651
1669
|
teamPermissions?: Array<string> | undefined;
|
|
1670
|
+
teamId?: string | undefined;
|
|
1652
1671
|
createdAt: number;
|
|
1653
1672
|
created: number;
|
|
1654
1673
|
joinedFrom?: JoinedFrom$Outbound | undefined;
|
|
@@ -1662,12 +1681,12 @@ export const Membership$outboundSchema: z.ZodType<
|
|
|
1662
1681
|
> = z.object({
|
|
1663
1682
|
uid: z.string().optional(),
|
|
1664
1683
|
entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
|
|
1665
|
-
teamId: z.string().optional(),
|
|
1666
1684
|
confirmed: z.boolean(),
|
|
1667
1685
|
accessRequestedAt: z.number().optional(),
|
|
1668
1686
|
role: Role$outboundSchema,
|
|
1669
1687
|
teamRoles: z.array(TeamRoles$outboundSchema).optional(),
|
|
1670
1688
|
teamPermissions: z.array(TeamPermissions$outboundSchema).optional(),
|
|
1689
|
+
teamId: z.string().optional(),
|
|
1671
1690
|
createdAt: z.number(),
|
|
1672
1691
|
created: z.number(),
|
|
1673
1692
|
joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
|