@vercel/sdk 1.10.6 → 1.10.7
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/README.md +58 -45
- package/bin/mcp-server.js +6045 -1761
- package/bin/mcp-server.js.map +48 -39
- package/docs/sdks/integrations/README.md +209 -0
- package/docs/sdks/projects/README.md +2 -0
- package/docs/sdks/teams/README.md +12 -0
- package/docs/sdks/vercel/README.md +74 -0
- package/esm/__tests__/accessgroups.test.js +3 -1
- package/esm/__tests__/accessgroups.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 +62 -0
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +28 -1
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/domainsCheckDomainPrice.js +2 -2
- package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +14 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +84 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts +20 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.js +97 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.js.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts +21 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +90 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -0
- package/esm/funcs/marketplaceExchangeSsoToken.js +2 -2
- package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -1
- package/esm/funcs/marketplaceSubmitInvoice.js +2 -2
- package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInvoice.js +2 -2
- package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -1
- package/esm/funcs/projectsGetProjects.js +1 -0
- package/esm/funcs/projectsGetProjects.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.d.ts.map +1 -1
- package/esm/mcp-server/server.js +7 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +7 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +26 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js +27 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js.map +1 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js +28 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js.map +1 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts +37 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
- package/esm/models/acceptprojecttransferrequestop.js +40 -1
- package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
- package/esm/models/authuser.d.ts +3 -3
- package/esm/models/authuser.js +1 -1
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +80 -42
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +44 -15
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/connectintegrationresourcetoprojectop.d.ts +68 -0
- package/esm/models/connectintegrationresourcetoprojectop.d.ts.map +1 -0
- package/esm/models/connectintegrationresourcetoprojectop.js +73 -0
- package/esm/models/connectintegrationresourcetoprojectop.js.map +1 -0
- package/esm/models/createdeploymentop.d.ts +292 -254
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +244 -217
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +5995 -0
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -0
- package/esm/models/createintegrationstoredirectop.js +6597 -0
- package/esm/models/createintegrationstoredirectop.js.map +1 -0
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +183 -162
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +154 -154
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +12 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +9 -9
- package/esm/models/filterprojectenvsop.js +3 -3
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +6 -0
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +2 -0
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +533 -533
- package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
- package/esm/models/getconfigurationproductsop.js +666 -665
- package/esm/models/getconfigurationproductsop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +6 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +2 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +45 -7
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +30 -2
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getintegrationresourceop.d.ts +13 -13
- package/esm/models/getintegrationresourceop.d.ts.map +1 -1
- package/esm/models/getintegrationresourceop.js +13 -13
- package/esm/models/getintegrationresourceop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +57 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +24 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +102 -9
- package/esm/models/getteammembersop.d.ts.map +1 -1
- package/esm/models/getteammembersop.js +60 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +247 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +1 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +246 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +1 -0
- package/esm/models/getwebhookop.d.ts +6 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +27 -15
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +19 -15
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/inviteusertoteamop.d.ts +3 -0
- package/esm/models/inviteusertoteamop.d.ts.map +1 -1
- package/esm/models/inviteusertoteamop.js +1 -0
- package/esm/models/inviteusertoteamop.js.map +1 -1
- package/esm/models/patchteamop.d.ts +253 -0
- package/esm/models/patchteamop.d.ts.map +1 -1
- package/esm/models/patchteamop.js +150 -0
- package/esm/models/patchteamop.js.map +1 -1
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/team.d.ts +47 -0
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +36 -0
- package/esm/models/team.js.map +1 -1
- package/esm/models/teamlimited.d.ts +3 -0
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +1 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +32 -32
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +49 -49
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateinvoiceop.d.ts +36 -15
- package/esm/models/updateinvoiceop.d.ts.map +1 -1
- package/esm/models/updateinvoiceop.js +37 -16
- package/esm/models/updateinvoiceop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +21 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +21 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +406 -305
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +467 -365
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +16 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +20 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +3 -1
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +65 -0
- package/src/__tests__/rollingrelease.test.ts +2 -6
- package/src/__tests__/security.test.ts +1 -11
- package/src/__tests__/vercel.test.ts +36 -1
- package/src/funcs/domainsCheckDomainPrice.ts +2 -2
- package/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +207 -0
- package/src/funcs/integrationsConnectIntegrationResourceToProject.ts +213 -0
- package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +207 -0
- package/src/funcs/marketplaceExchangeSsoToken.ts +2 -2
- package/src/funcs/marketplaceSubmitInvoice.ts +2 -2
- package/src/funcs/marketplaceUpdateInvoice.ts +2 -2
- package/src/funcs/projectsGetProjects.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +41 -0
- package/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts +37 -0
- package/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts +39 -0
- package/src/models/acceptprojecttransferrequestop.ts +88 -1
- package/src/models/authuser.ts +1 -1
- package/src/models/canceldeploymentop.ts +71 -24
- package/src/models/connectintegrationresourcetoprojectop.ts +185 -0
- package/src/models/createdeploymentop.ts +545 -503
- package/src/models/createintegrationstoredirectop.ts +15739 -0
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +364 -343
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/filterprojectenvsop.ts +3 -3
- package/src/models/getconfigurationop.ts +2 -0
- package/src/models/getconfigurationproductsop.ts +1326 -1163
- package/src/models/getconfigurationsop.ts +2 -0
- package/src/models/getdeploymentop.ts +59 -9
- package/src/models/getintegrationresourceop.ts +26 -20
- package/src/models/getprojectsop.ts +63 -0
- package/src/models/getteammembersop.ts +84 -3
- package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +575 -0
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +31 -25
- package/src/models/inviteusertoteamop.ts +1 -0
- package/src/models/patchteamop.ts +254 -0
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/team.ts +92 -0
- package/src/models/teamlimited.ts +1 -0
- package/src/models/updatefirewallconfigop.ts +74 -68
- package/src/models/updateinvoiceop.ts +78 -27
- package/src/models/updateprojectdatacacheop.ts +21 -0
- package/src/models/updateprojectop.ts +21 -0
- package/src/models/userevent.ts +918 -682
- package/src/sdk/integrations.ts +41 -0
- package/src/sdk/sdk.ts +23 -1
- package/vercel-spec.json +4249 -1150
|
@@ -40,6 +40,7 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
40
40
|
DomainRenewalFailed: "domain.renewal.failed",
|
|
41
41
|
DomainAutoRenewChanged: "domain.auto-renew.changed",
|
|
42
42
|
DeploymentCreated: "deployment.created",
|
|
43
|
+
DeploymentCleanup: "deployment.cleanup",
|
|
43
44
|
DeploymentError: "deployment.error",
|
|
44
45
|
DeploymentCanceled: "deployment.canceled",
|
|
45
46
|
DeploymentSucceeded: "deployment.succeeded",
|
|
@@ -97,6 +98,7 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
97
98
|
MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid",
|
|
98
99
|
MarketplaceInvoiceRefunded: "marketplace.invoice.refunded",
|
|
99
100
|
ObservabilityAnomaly: "observability.anomaly",
|
|
101
|
+
ObservabilityAnomalyError: "observability.anomaly-error",
|
|
100
102
|
TestWebhook: "test-webhook",
|
|
101
103
|
} as const;
|
|
102
104
|
/**
|
|
@@ -193,7 +195,7 @@ export type GetWebhooksResponseBodyFramework = ClosedEnum<
|
|
|
193
195
|
typeof GetWebhooksResponseBodyFramework
|
|
194
196
|
>;
|
|
195
197
|
|
|
196
|
-
export type
|
|
198
|
+
export type ResponseBodyProjectsMetadata = {
|
|
197
199
|
id: string;
|
|
198
200
|
name: string;
|
|
199
201
|
framework?: GetWebhooksResponseBodyFramework | null | undefined;
|
|
@@ -220,6 +222,7 @@ export const ResponseBodyEvents = {
|
|
|
220
222
|
DomainRenewalFailed: "domain.renewal.failed",
|
|
221
223
|
DomainAutoRenewChanged: "domain.auto-renew.changed",
|
|
222
224
|
DeploymentCreated: "deployment.created",
|
|
225
|
+
DeploymentCleanup: "deployment.cleanup",
|
|
223
226
|
DeploymentError: "deployment.error",
|
|
224
227
|
DeploymentCanceled: "deployment.canceled",
|
|
225
228
|
DeploymentSucceeded: "deployment.succeeded",
|
|
@@ -277,6 +280,7 @@ export const ResponseBodyEvents = {
|
|
|
277
280
|
MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid",
|
|
278
281
|
MarketplaceInvoiceRefunded: "marketplace.invoice.refunded",
|
|
279
282
|
ObservabilityAnomaly: "observability.anomaly",
|
|
283
|
+
ObservabilityAnomalyError: "observability.anomaly-error",
|
|
280
284
|
TestWebhook: "test-webhook",
|
|
281
285
|
} as const;
|
|
282
286
|
/**
|
|
@@ -285,7 +289,7 @@ export const ResponseBodyEvents = {
|
|
|
285
289
|
export type ResponseBodyEvents = ClosedEnum<typeof ResponseBodyEvents>;
|
|
286
290
|
|
|
287
291
|
export type GetWebhooksResponseBody1 = {
|
|
288
|
-
projectsMetadata: Array<
|
|
292
|
+
projectsMetadata: Array<ResponseBodyProjectsMetadata> | null;
|
|
289
293
|
/**
|
|
290
294
|
* The webhooks events
|
|
291
295
|
*/
|
|
@@ -495,8 +499,8 @@ export namespace GetWebhooksResponseBodyFramework$ {
|
|
|
495
499
|
}
|
|
496
500
|
|
|
497
501
|
/** @internal */
|
|
498
|
-
export const
|
|
499
|
-
|
|
502
|
+
export const ResponseBodyProjectsMetadata$inboundSchema: z.ZodType<
|
|
503
|
+
ResponseBodyProjectsMetadata,
|
|
500
504
|
z.ZodTypeDef,
|
|
501
505
|
unknown
|
|
502
506
|
> = z.object({
|
|
@@ -508,7 +512,7 @@ export const ProjectsMetadata$inboundSchema: z.ZodType<
|
|
|
508
512
|
});
|
|
509
513
|
|
|
510
514
|
/** @internal */
|
|
511
|
-
export type
|
|
515
|
+
export type ResponseBodyProjectsMetadata$Outbound = {
|
|
512
516
|
id: string;
|
|
513
517
|
name: string;
|
|
514
518
|
framework?: string | null | undefined;
|
|
@@ -516,10 +520,10 @@ export type ProjectsMetadata$Outbound = {
|
|
|
516
520
|
};
|
|
517
521
|
|
|
518
522
|
/** @internal */
|
|
519
|
-
export const
|
|
520
|
-
|
|
523
|
+
export const ResponseBodyProjectsMetadata$outboundSchema: z.ZodType<
|
|
524
|
+
ResponseBodyProjectsMetadata$Outbound,
|
|
521
525
|
z.ZodTypeDef,
|
|
522
|
-
|
|
526
|
+
ResponseBodyProjectsMetadata
|
|
523
527
|
> = z.object({
|
|
524
528
|
id: z.string(),
|
|
525
529
|
name: z.string(),
|
|
@@ -532,30 +536,32 @@ export const ProjectsMetadata$outboundSchema: z.ZodType<
|
|
|
532
536
|
* @internal
|
|
533
537
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
534
538
|
*/
|
|
535
|
-
export namespace
|
|
536
|
-
/** @deprecated use `
|
|
537
|
-
export const inboundSchema =
|
|
538
|
-
/** @deprecated use `
|
|
539
|
-
export const outboundSchema =
|
|
540
|
-
/** @deprecated use `
|
|
541
|
-
export type Outbound =
|
|
539
|
+
export namespace ResponseBodyProjectsMetadata$ {
|
|
540
|
+
/** @deprecated use `ResponseBodyProjectsMetadata$inboundSchema` instead. */
|
|
541
|
+
export const inboundSchema = ResponseBodyProjectsMetadata$inboundSchema;
|
|
542
|
+
/** @deprecated use `ResponseBodyProjectsMetadata$outboundSchema` instead. */
|
|
543
|
+
export const outboundSchema = ResponseBodyProjectsMetadata$outboundSchema;
|
|
544
|
+
/** @deprecated use `ResponseBodyProjectsMetadata$Outbound` instead. */
|
|
545
|
+
export type Outbound = ResponseBodyProjectsMetadata$Outbound;
|
|
542
546
|
}
|
|
543
547
|
|
|
544
|
-
export function
|
|
545
|
-
|
|
548
|
+
export function responseBodyProjectsMetadataToJSON(
|
|
549
|
+
responseBodyProjectsMetadata: ResponseBodyProjectsMetadata,
|
|
546
550
|
): string {
|
|
547
551
|
return JSON.stringify(
|
|
548
|
-
|
|
552
|
+
ResponseBodyProjectsMetadata$outboundSchema.parse(
|
|
553
|
+
responseBodyProjectsMetadata,
|
|
554
|
+
),
|
|
549
555
|
);
|
|
550
556
|
}
|
|
551
557
|
|
|
552
|
-
export function
|
|
558
|
+
export function responseBodyProjectsMetadataFromJSON(
|
|
553
559
|
jsonString: string,
|
|
554
|
-
): SafeParseResult<
|
|
560
|
+
): SafeParseResult<ResponseBodyProjectsMetadata, SDKValidationError> {
|
|
555
561
|
return safeParse(
|
|
556
562
|
jsonString,
|
|
557
|
-
(x) =>
|
|
558
|
-
`Failed to parse '
|
|
563
|
+
(x) => ResponseBodyProjectsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
564
|
+
`Failed to parse 'ResponseBodyProjectsMetadata' from JSON`,
|
|
559
565
|
);
|
|
560
566
|
}
|
|
561
567
|
|
|
@@ -587,7 +593,7 @@ export const GetWebhooksResponseBody1$inboundSchema: z.ZodType<
|
|
|
587
593
|
unknown
|
|
588
594
|
> = z.object({
|
|
589
595
|
projectsMetadata: z.nullable(
|
|
590
|
-
z.array(z.lazy(() =>
|
|
596
|
+
z.array(z.lazy(() => ResponseBodyProjectsMetadata$inboundSchema)),
|
|
591
597
|
),
|
|
592
598
|
events: z.array(ResponseBodyEvents$inboundSchema),
|
|
593
599
|
id: z.string(),
|
|
@@ -600,7 +606,7 @@ export const GetWebhooksResponseBody1$inboundSchema: z.ZodType<
|
|
|
600
606
|
|
|
601
607
|
/** @internal */
|
|
602
608
|
export type GetWebhooksResponseBody1$Outbound = {
|
|
603
|
-
projectsMetadata: Array<
|
|
609
|
+
projectsMetadata: Array<ResponseBodyProjectsMetadata$Outbound> | null;
|
|
604
610
|
events: Array<string>;
|
|
605
611
|
id: string;
|
|
606
612
|
url: string;
|
|
@@ -617,7 +623,7 @@ export const GetWebhooksResponseBody1$outboundSchema: z.ZodType<
|
|
|
617
623
|
GetWebhooksResponseBody1
|
|
618
624
|
> = z.object({
|
|
619
625
|
projectsMetadata: z.nullable(
|
|
620
|
-
z.array(z.lazy(() =>
|
|
626
|
+
z.array(z.lazy(() => ResponseBodyProjectsMetadata$outboundSchema)),
|
|
621
627
|
),
|
|
622
628
|
events: z.array(ResponseBodyEvents$outboundSchema),
|
|
623
629
|
id: z.string(),
|
|
@@ -114,6 +114,7 @@ export type InviteUserToTeamTeamRoles = ClosedEnum<
|
|
|
114
114
|
* The team permissions of the user
|
|
115
115
|
*/
|
|
116
116
|
export const InviteUserToTeamTeamPermissions = {
|
|
117
|
+
IntegrationManager: "IntegrationManager",
|
|
117
118
|
CreateProject: "CreateProject",
|
|
118
119
|
FullProductionDeployment: "FullProductionDeployment",
|
|
119
120
|
UsageViewer: "UsageViewer",
|
|
@@ -118,6 +118,101 @@ export type PatchTeamDefaultDeploymentProtection = {
|
|
|
118
118
|
ssoProtection?: PatchTeamSsoProtection | null | undefined;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* The time period to keep non-production deployments for
|
|
123
|
+
*/
|
|
124
|
+
export const Expiration = {
|
|
125
|
+
Oney: "1y",
|
|
126
|
+
Sixm: "6m",
|
|
127
|
+
Threem: "3m",
|
|
128
|
+
Twom: "2m",
|
|
129
|
+
Onem: "1m",
|
|
130
|
+
Twow: "2w",
|
|
131
|
+
Onew: "1w",
|
|
132
|
+
Oned: "1d",
|
|
133
|
+
Unlimited: "unlimited",
|
|
134
|
+
} as const;
|
|
135
|
+
/**
|
|
136
|
+
* The time period to keep non-production deployments for
|
|
137
|
+
*/
|
|
138
|
+
export type Expiration = ClosedEnum<typeof Expiration>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The time period to keep production deployments for
|
|
142
|
+
*/
|
|
143
|
+
export const ExpirationProduction = {
|
|
144
|
+
Oney: "1y",
|
|
145
|
+
Sixm: "6m",
|
|
146
|
+
Threem: "3m",
|
|
147
|
+
Twom: "2m",
|
|
148
|
+
Onem: "1m",
|
|
149
|
+
Twow: "2w",
|
|
150
|
+
Onew: "1w",
|
|
151
|
+
Oned: "1d",
|
|
152
|
+
Unlimited: "unlimited",
|
|
153
|
+
} as const;
|
|
154
|
+
/**
|
|
155
|
+
* The time period to keep production deployments for
|
|
156
|
+
*/
|
|
157
|
+
export type ExpirationProduction = ClosedEnum<typeof ExpirationProduction>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The time period to keep canceled deployments for
|
|
161
|
+
*/
|
|
162
|
+
export const ExpirationCanceled = {
|
|
163
|
+
Oney: "1y",
|
|
164
|
+
Sixm: "6m",
|
|
165
|
+
Threem: "3m",
|
|
166
|
+
Twom: "2m",
|
|
167
|
+
Onem: "1m",
|
|
168
|
+
Twow: "2w",
|
|
169
|
+
Onew: "1w",
|
|
170
|
+
Oned: "1d",
|
|
171
|
+
Unlimited: "unlimited",
|
|
172
|
+
} as const;
|
|
173
|
+
/**
|
|
174
|
+
* The time period to keep canceled deployments for
|
|
175
|
+
*/
|
|
176
|
+
export type ExpirationCanceled = ClosedEnum<typeof ExpirationCanceled>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The time period to keep errored deployments for
|
|
180
|
+
*/
|
|
181
|
+
export const ExpirationErrored = {
|
|
182
|
+
Oney: "1y",
|
|
183
|
+
Sixm: "6m",
|
|
184
|
+
Threem: "3m",
|
|
185
|
+
Twom: "2m",
|
|
186
|
+
Onem: "1m",
|
|
187
|
+
Twow: "2w",
|
|
188
|
+
Onew: "1w",
|
|
189
|
+
Oned: "1d",
|
|
190
|
+
Unlimited: "unlimited",
|
|
191
|
+
} as const;
|
|
192
|
+
/**
|
|
193
|
+
* The time period to keep errored deployments for
|
|
194
|
+
*/
|
|
195
|
+
export type ExpirationErrored = ClosedEnum<typeof ExpirationErrored>;
|
|
196
|
+
|
|
197
|
+
export type PatchTeamDefaultExpirationSettings = {
|
|
198
|
+
/**
|
|
199
|
+
* The time period to keep non-production deployments for
|
|
200
|
+
*/
|
|
201
|
+
expiration?: Expiration | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* The time period to keep production deployments for
|
|
204
|
+
*/
|
|
205
|
+
expirationProduction?: ExpirationProduction | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* The time period to keep canceled deployments for
|
|
208
|
+
*/
|
|
209
|
+
expirationCanceled?: ExpirationCanceled | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* The time period to keep errored deployments for
|
|
212
|
+
*/
|
|
213
|
+
expirationErrored?: ExpirationErrored | undefined;
|
|
214
|
+
};
|
|
215
|
+
|
|
121
216
|
export type PatchTeamRequestBody = {
|
|
122
217
|
/**
|
|
123
218
|
* The hash value of an uploaded image.
|
|
@@ -175,6 +270,7 @@ export type PatchTeamRequestBody = {
|
|
|
175
270
|
defaultDeploymentProtection?:
|
|
176
271
|
| PatchTeamDefaultDeploymentProtection
|
|
177
272
|
| undefined;
|
|
273
|
+
defaultExpirationSettings?: PatchTeamDefaultExpirationSettings | undefined;
|
|
178
274
|
};
|
|
179
275
|
|
|
180
276
|
export type PatchTeamRequest = {
|
|
@@ -654,6 +750,155 @@ export function patchTeamDefaultDeploymentProtectionFromJSON(
|
|
|
654
750
|
);
|
|
655
751
|
}
|
|
656
752
|
|
|
753
|
+
/** @internal */
|
|
754
|
+
export const Expiration$inboundSchema: z.ZodNativeEnum<typeof Expiration> = z
|
|
755
|
+
.nativeEnum(Expiration);
|
|
756
|
+
|
|
757
|
+
/** @internal */
|
|
758
|
+
export const Expiration$outboundSchema: z.ZodNativeEnum<typeof Expiration> =
|
|
759
|
+
Expiration$inboundSchema;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* @internal
|
|
763
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
764
|
+
*/
|
|
765
|
+
export namespace Expiration$ {
|
|
766
|
+
/** @deprecated use `Expiration$inboundSchema` instead. */
|
|
767
|
+
export const inboundSchema = Expiration$inboundSchema;
|
|
768
|
+
/** @deprecated use `Expiration$outboundSchema` instead. */
|
|
769
|
+
export const outboundSchema = Expiration$outboundSchema;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/** @internal */
|
|
773
|
+
export const ExpirationProduction$inboundSchema: z.ZodNativeEnum<
|
|
774
|
+
typeof ExpirationProduction
|
|
775
|
+
> = z.nativeEnum(ExpirationProduction);
|
|
776
|
+
|
|
777
|
+
/** @internal */
|
|
778
|
+
export const ExpirationProduction$outboundSchema: z.ZodNativeEnum<
|
|
779
|
+
typeof ExpirationProduction
|
|
780
|
+
> = ExpirationProduction$inboundSchema;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* @internal
|
|
784
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
785
|
+
*/
|
|
786
|
+
export namespace ExpirationProduction$ {
|
|
787
|
+
/** @deprecated use `ExpirationProduction$inboundSchema` instead. */
|
|
788
|
+
export const inboundSchema = ExpirationProduction$inboundSchema;
|
|
789
|
+
/** @deprecated use `ExpirationProduction$outboundSchema` instead. */
|
|
790
|
+
export const outboundSchema = ExpirationProduction$outboundSchema;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/** @internal */
|
|
794
|
+
export const ExpirationCanceled$inboundSchema: z.ZodNativeEnum<
|
|
795
|
+
typeof ExpirationCanceled
|
|
796
|
+
> = z.nativeEnum(ExpirationCanceled);
|
|
797
|
+
|
|
798
|
+
/** @internal */
|
|
799
|
+
export const ExpirationCanceled$outboundSchema: z.ZodNativeEnum<
|
|
800
|
+
typeof ExpirationCanceled
|
|
801
|
+
> = ExpirationCanceled$inboundSchema;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* @internal
|
|
805
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
806
|
+
*/
|
|
807
|
+
export namespace ExpirationCanceled$ {
|
|
808
|
+
/** @deprecated use `ExpirationCanceled$inboundSchema` instead. */
|
|
809
|
+
export const inboundSchema = ExpirationCanceled$inboundSchema;
|
|
810
|
+
/** @deprecated use `ExpirationCanceled$outboundSchema` instead. */
|
|
811
|
+
export const outboundSchema = ExpirationCanceled$outboundSchema;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/** @internal */
|
|
815
|
+
export const ExpirationErrored$inboundSchema: z.ZodNativeEnum<
|
|
816
|
+
typeof ExpirationErrored
|
|
817
|
+
> = z.nativeEnum(ExpirationErrored);
|
|
818
|
+
|
|
819
|
+
/** @internal */
|
|
820
|
+
export const ExpirationErrored$outboundSchema: z.ZodNativeEnum<
|
|
821
|
+
typeof ExpirationErrored
|
|
822
|
+
> = ExpirationErrored$inboundSchema;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @internal
|
|
826
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
827
|
+
*/
|
|
828
|
+
export namespace ExpirationErrored$ {
|
|
829
|
+
/** @deprecated use `ExpirationErrored$inboundSchema` instead. */
|
|
830
|
+
export const inboundSchema = ExpirationErrored$inboundSchema;
|
|
831
|
+
/** @deprecated use `ExpirationErrored$outboundSchema` instead. */
|
|
832
|
+
export const outboundSchema = ExpirationErrored$outboundSchema;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/** @internal */
|
|
836
|
+
export const PatchTeamDefaultExpirationSettings$inboundSchema: z.ZodType<
|
|
837
|
+
PatchTeamDefaultExpirationSettings,
|
|
838
|
+
z.ZodTypeDef,
|
|
839
|
+
unknown
|
|
840
|
+
> = z.object({
|
|
841
|
+
expiration: Expiration$inboundSchema.optional(),
|
|
842
|
+
expirationProduction: ExpirationProduction$inboundSchema.optional(),
|
|
843
|
+
expirationCanceled: ExpirationCanceled$inboundSchema.optional(),
|
|
844
|
+
expirationErrored: ExpirationErrored$inboundSchema.optional(),
|
|
845
|
+
});
|
|
846
|
+
|
|
847
|
+
/** @internal */
|
|
848
|
+
export type PatchTeamDefaultExpirationSettings$Outbound = {
|
|
849
|
+
expiration?: string | undefined;
|
|
850
|
+
expirationProduction?: string | undefined;
|
|
851
|
+
expirationCanceled?: string | undefined;
|
|
852
|
+
expirationErrored?: string | undefined;
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
/** @internal */
|
|
856
|
+
export const PatchTeamDefaultExpirationSettings$outboundSchema: z.ZodType<
|
|
857
|
+
PatchTeamDefaultExpirationSettings$Outbound,
|
|
858
|
+
z.ZodTypeDef,
|
|
859
|
+
PatchTeamDefaultExpirationSettings
|
|
860
|
+
> = z.object({
|
|
861
|
+
expiration: Expiration$outboundSchema.optional(),
|
|
862
|
+
expirationProduction: ExpirationProduction$outboundSchema.optional(),
|
|
863
|
+
expirationCanceled: ExpirationCanceled$outboundSchema.optional(),
|
|
864
|
+
expirationErrored: ExpirationErrored$outboundSchema.optional(),
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* @internal
|
|
869
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
870
|
+
*/
|
|
871
|
+
export namespace PatchTeamDefaultExpirationSettings$ {
|
|
872
|
+
/** @deprecated use `PatchTeamDefaultExpirationSettings$inboundSchema` instead. */
|
|
873
|
+
export const inboundSchema = PatchTeamDefaultExpirationSettings$inboundSchema;
|
|
874
|
+
/** @deprecated use `PatchTeamDefaultExpirationSettings$outboundSchema` instead. */
|
|
875
|
+
export const outboundSchema =
|
|
876
|
+
PatchTeamDefaultExpirationSettings$outboundSchema;
|
|
877
|
+
/** @deprecated use `PatchTeamDefaultExpirationSettings$Outbound` instead. */
|
|
878
|
+
export type Outbound = PatchTeamDefaultExpirationSettings$Outbound;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export function patchTeamDefaultExpirationSettingsToJSON(
|
|
882
|
+
patchTeamDefaultExpirationSettings: PatchTeamDefaultExpirationSettings,
|
|
883
|
+
): string {
|
|
884
|
+
return JSON.stringify(
|
|
885
|
+
PatchTeamDefaultExpirationSettings$outboundSchema.parse(
|
|
886
|
+
patchTeamDefaultExpirationSettings,
|
|
887
|
+
),
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export function patchTeamDefaultExpirationSettingsFromJSON(
|
|
892
|
+
jsonString: string,
|
|
893
|
+
): SafeParseResult<PatchTeamDefaultExpirationSettings, SDKValidationError> {
|
|
894
|
+
return safeParse(
|
|
895
|
+
jsonString,
|
|
896
|
+
(x) =>
|
|
897
|
+
PatchTeamDefaultExpirationSettings$inboundSchema.parse(JSON.parse(x)),
|
|
898
|
+
`Failed to parse 'PatchTeamDefaultExpirationSettings' from JSON`,
|
|
899
|
+
);
|
|
900
|
+
}
|
|
901
|
+
|
|
657
902
|
/** @internal */
|
|
658
903
|
export const PatchTeamRequestBody$inboundSchema: z.ZodType<
|
|
659
904
|
PatchTeamRequestBody,
|
|
@@ -677,6 +922,9 @@ export const PatchTeamRequestBody$inboundSchema: z.ZodType<
|
|
|
677
922
|
defaultDeploymentProtection: z.lazy(() =>
|
|
678
923
|
PatchTeamDefaultDeploymentProtection$inboundSchema
|
|
679
924
|
).optional(),
|
|
925
|
+
defaultExpirationSettings: z.lazy(() =>
|
|
926
|
+
PatchTeamDefaultExpirationSettings$inboundSchema
|
|
927
|
+
).optional(),
|
|
680
928
|
});
|
|
681
929
|
|
|
682
930
|
/** @internal */
|
|
@@ -698,6 +946,9 @@ export type PatchTeamRequestBody$Outbound = {
|
|
|
698
946
|
defaultDeploymentProtection?:
|
|
699
947
|
| PatchTeamDefaultDeploymentProtection$Outbound
|
|
700
948
|
| undefined;
|
|
949
|
+
defaultExpirationSettings?:
|
|
950
|
+
| PatchTeamDefaultExpirationSettings$Outbound
|
|
951
|
+
| undefined;
|
|
701
952
|
};
|
|
702
953
|
|
|
703
954
|
/** @internal */
|
|
@@ -723,6 +974,9 @@ export const PatchTeamRequestBody$outboundSchema: z.ZodType<
|
|
|
723
974
|
defaultDeploymentProtection: z.lazy(() =>
|
|
724
975
|
PatchTeamDefaultDeploymentProtection$outboundSchema
|
|
725
976
|
).optional(),
|
|
977
|
+
defaultExpirationSettings: z.lazy(() =>
|
|
978
|
+
PatchTeamDefaultExpirationSettings$outboundSchema
|
|
979
|
+
).optional(),
|
|
726
980
|
});
|
|
727
981
|
|
|
728
982
|
/**
|
|
@@ -55,10 +55,10 @@ export type RemoveProjectEnvResponseBodyProjectsResponseTarget =
|
|
|
55
55
|
|
|
56
56
|
export const RemoveProjectEnvResponseBodyProjectsResponseType = {
|
|
57
57
|
System: "system",
|
|
58
|
-
Secret: "secret",
|
|
59
58
|
Encrypted: "encrypted",
|
|
60
59
|
Plain: "plain",
|
|
61
60
|
Sensitive: "sensitive",
|
|
61
|
+
Secret: "secret",
|
|
62
62
|
} as const;
|
|
63
63
|
export type RemoveProjectEnvResponseBodyProjectsResponseType = ClosedEnum<
|
|
64
64
|
typeof RemoveProjectEnvResponseBodyProjectsResponseType
|
|
@@ -405,10 +405,10 @@ export type RemoveProjectEnvResponseBodyProjectsTarget =
|
|
|
405
405
|
|
|
406
406
|
export const RemoveProjectEnvResponseBodyProjectsType = {
|
|
407
407
|
System: "system",
|
|
408
|
-
Secret: "secret",
|
|
409
408
|
Encrypted: "encrypted",
|
|
410
409
|
Plain: "plain",
|
|
411
410
|
Sensitive: "sensitive",
|
|
411
|
+
Secret: "secret",
|
|
412
412
|
} as const;
|
|
413
413
|
export type RemoveProjectEnvResponseBodyProjectsType = ClosedEnum<
|
|
414
414
|
typeof RemoveProjectEnvResponseBodyProjectsType
|
|
@@ -754,10 +754,10 @@ export type RemoveProjectEnvResponseBodyTarget =
|
|
|
754
754
|
|
|
755
755
|
export const RemoveProjectEnvResponseBodyType = {
|
|
756
756
|
System: "system",
|
|
757
|
-
Secret: "secret",
|
|
758
757
|
Encrypted: "encrypted",
|
|
759
758
|
Plain: "plain",
|
|
760
759
|
Sensitive: "sensitive",
|
|
760
|
+
Secret: "secret",
|
|
761
761
|
} as const;
|
|
762
762
|
export type RemoveProjectEnvResponseBodyType = ClosedEnum<
|
|
763
763
|
typeof RemoveProjectEnvResponseBodyType
|
package/src/models/team.ts
CHANGED
|
@@ -185,6 +185,16 @@ export type DefaultDeploymentProtection = {
|
|
|
185
185
|
ssoProtection?: SsoProtection | undefined;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Default deployment expiration settings for this team
|
|
190
|
+
*/
|
|
191
|
+
export type DefaultExpirationSettings = {
|
|
192
|
+
expiration?: string | undefined;
|
|
193
|
+
expirationProduction?: string | undefined;
|
|
194
|
+
expirationCanceled?: string | undefined;
|
|
195
|
+
expirationErrored?: string | undefined;
|
|
196
|
+
};
|
|
197
|
+
|
|
188
198
|
/**
|
|
189
199
|
* Whether toolbar is enabled on preview deployments
|
|
190
200
|
*/
|
|
@@ -268,6 +278,7 @@ export const TeamRoles = {
|
|
|
268
278
|
export type TeamRoles = ClosedEnum<typeof TeamRoles>;
|
|
269
279
|
|
|
270
280
|
export const TeamPermissions = {
|
|
281
|
+
IntegrationManager: "IntegrationManager",
|
|
271
282
|
CreateProject: "CreateProject",
|
|
272
283
|
FullProductionDeployment: "FullProductionDeployment",
|
|
273
284
|
UsageViewer: "UsageViewer",
|
|
@@ -365,6 +376,10 @@ export type Team = {
|
|
|
365
376
|
* The hostname that is current set as preview deployment suffix.
|
|
366
377
|
*/
|
|
367
378
|
previewDeploymentSuffix?: string | null | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* Whether the team is a platform team.
|
|
381
|
+
*/
|
|
382
|
+
platform?: boolean | undefined;
|
|
368
383
|
disableHardAutoBlocks?: number | boolean | undefined;
|
|
369
384
|
/**
|
|
370
385
|
* Is remote caching enabled for this team
|
|
@@ -374,6 +389,10 @@ export type Team = {
|
|
|
374
389
|
* Default deployment protection for this team
|
|
375
390
|
*/
|
|
376
391
|
defaultDeploymentProtection?: DefaultDeploymentProtection | undefined;
|
|
392
|
+
/**
|
|
393
|
+
* Default deployment expiration settings for this team
|
|
394
|
+
*/
|
|
395
|
+
defaultExpirationSettings?: DefaultExpirationSettings | undefined;
|
|
377
396
|
/**
|
|
378
397
|
* Whether toolbar is enabled on preview deployments
|
|
379
398
|
*/
|
|
@@ -1168,6 +1187,69 @@ export function defaultDeploymentProtectionFromJSON(
|
|
|
1168
1187
|
);
|
|
1169
1188
|
}
|
|
1170
1189
|
|
|
1190
|
+
/** @internal */
|
|
1191
|
+
export const DefaultExpirationSettings$inboundSchema: z.ZodType<
|
|
1192
|
+
DefaultExpirationSettings,
|
|
1193
|
+
z.ZodTypeDef,
|
|
1194
|
+
unknown
|
|
1195
|
+
> = z.object({
|
|
1196
|
+
expiration: z.string().optional(),
|
|
1197
|
+
expirationProduction: z.string().optional(),
|
|
1198
|
+
expirationCanceled: z.string().optional(),
|
|
1199
|
+
expirationErrored: z.string().optional(),
|
|
1200
|
+
});
|
|
1201
|
+
|
|
1202
|
+
/** @internal */
|
|
1203
|
+
export type DefaultExpirationSettings$Outbound = {
|
|
1204
|
+
expiration?: string | undefined;
|
|
1205
|
+
expirationProduction?: string | undefined;
|
|
1206
|
+
expirationCanceled?: string | undefined;
|
|
1207
|
+
expirationErrored?: string | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
/** @internal */
|
|
1211
|
+
export const DefaultExpirationSettings$outboundSchema: z.ZodType<
|
|
1212
|
+
DefaultExpirationSettings$Outbound,
|
|
1213
|
+
z.ZodTypeDef,
|
|
1214
|
+
DefaultExpirationSettings
|
|
1215
|
+
> = z.object({
|
|
1216
|
+
expiration: z.string().optional(),
|
|
1217
|
+
expirationProduction: z.string().optional(),
|
|
1218
|
+
expirationCanceled: z.string().optional(),
|
|
1219
|
+
expirationErrored: z.string().optional(),
|
|
1220
|
+
});
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* @internal
|
|
1224
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1225
|
+
*/
|
|
1226
|
+
export namespace DefaultExpirationSettings$ {
|
|
1227
|
+
/** @deprecated use `DefaultExpirationSettings$inboundSchema` instead. */
|
|
1228
|
+
export const inboundSchema = DefaultExpirationSettings$inboundSchema;
|
|
1229
|
+
/** @deprecated use `DefaultExpirationSettings$outboundSchema` instead. */
|
|
1230
|
+
export const outboundSchema = DefaultExpirationSettings$outboundSchema;
|
|
1231
|
+
/** @deprecated use `DefaultExpirationSettings$Outbound` instead. */
|
|
1232
|
+
export type Outbound = DefaultExpirationSettings$Outbound;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export function defaultExpirationSettingsToJSON(
|
|
1236
|
+
defaultExpirationSettings: DefaultExpirationSettings,
|
|
1237
|
+
): string {
|
|
1238
|
+
return JSON.stringify(
|
|
1239
|
+
DefaultExpirationSettings$outboundSchema.parse(defaultExpirationSettings),
|
|
1240
|
+
);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export function defaultExpirationSettingsFromJSON(
|
|
1244
|
+
jsonString: string,
|
|
1245
|
+
): SafeParseResult<DefaultExpirationSettings, SDKValidationError> {
|
|
1246
|
+
return safeParse(
|
|
1247
|
+
jsonString,
|
|
1248
|
+
(x) => DefaultExpirationSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1249
|
+
`Failed to parse 'DefaultExpirationSettings' from JSON`,
|
|
1250
|
+
);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1171
1253
|
/** @internal */
|
|
1172
1254
|
export const EnablePreviewFeedback$inboundSchema: z.ZodNativeEnum<
|
|
1173
1255
|
typeof EnablePreviewFeedback
|
|
@@ -1632,11 +1714,15 @@ export const Team$inboundSchema: z.ZodType<Team, z.ZodTypeDef, unknown> =
|
|
|
1632
1714
|
stagingPrefix: z.string(),
|
|
1633
1715
|
resourceConfig: z.lazy(() => ResourceConfig$inboundSchema).optional(),
|
|
1634
1716
|
previewDeploymentSuffix: z.nullable(z.string()).optional(),
|
|
1717
|
+
platform: z.boolean().optional(),
|
|
1635
1718
|
disableHardAutoBlocks: z.union([z.number(), z.boolean()]).optional(),
|
|
1636
1719
|
remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(),
|
|
1637
1720
|
defaultDeploymentProtection: z.lazy(() =>
|
|
1638
1721
|
DefaultDeploymentProtection$inboundSchema
|
|
1639
1722
|
).optional(),
|
|
1723
|
+
defaultExpirationSettings: z.lazy(() =>
|
|
1724
|
+
DefaultExpirationSettings$inboundSchema
|
|
1725
|
+
).optional(),
|
|
1640
1726
|
enablePreviewFeedback: z.nullable(EnablePreviewFeedback$inboundSchema)
|
|
1641
1727
|
.optional(),
|
|
1642
1728
|
enableProductionFeedback: z.nullable(
|
|
@@ -1671,11 +1757,13 @@ export type Team$Outbound = {
|
|
|
1671
1757
|
stagingPrefix: string;
|
|
1672
1758
|
resourceConfig?: ResourceConfig$Outbound | undefined;
|
|
1673
1759
|
previewDeploymentSuffix?: string | null | undefined;
|
|
1760
|
+
platform?: boolean | undefined;
|
|
1674
1761
|
disableHardAutoBlocks?: number | boolean | undefined;
|
|
1675
1762
|
remoteCaching?: RemoteCaching$Outbound | undefined;
|
|
1676
1763
|
defaultDeploymentProtection?:
|
|
1677
1764
|
| DefaultDeploymentProtection$Outbound
|
|
1678
1765
|
| undefined;
|
|
1766
|
+
defaultExpirationSettings?: DefaultExpirationSettings$Outbound | undefined;
|
|
1679
1767
|
enablePreviewFeedback?: string | null | undefined;
|
|
1680
1768
|
enableProductionFeedback?: string | null | undefined;
|
|
1681
1769
|
sensitiveEnvironmentVariablePolicy?: string | null | undefined;
|
|
@@ -1704,11 +1792,15 @@ export const Team$outboundSchema: z.ZodType<Team$Outbound, z.ZodTypeDef, Team> =
|
|
|
1704
1792
|
stagingPrefix: z.string(),
|
|
1705
1793
|
resourceConfig: z.lazy(() => ResourceConfig$outboundSchema).optional(),
|
|
1706
1794
|
previewDeploymentSuffix: z.nullable(z.string()).optional(),
|
|
1795
|
+
platform: z.boolean().optional(),
|
|
1707
1796
|
disableHardAutoBlocks: z.union([z.number(), z.boolean()]).optional(),
|
|
1708
1797
|
remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(),
|
|
1709
1798
|
defaultDeploymentProtection: z.lazy(() =>
|
|
1710
1799
|
DefaultDeploymentProtection$outboundSchema
|
|
1711
1800
|
).optional(),
|
|
1801
|
+
defaultExpirationSettings: z.lazy(() =>
|
|
1802
|
+
DefaultExpirationSettings$outboundSchema
|
|
1803
|
+
).optional(),
|
|
1712
1804
|
enablePreviewFeedback: z.nullable(EnablePreviewFeedback$outboundSchema)
|
|
1713
1805
|
.optional(),
|
|
1714
1806
|
enableProductionFeedback: z.nullable(
|
|
@@ -109,6 +109,7 @@ export const TeamLimitedTeamRoles = {
|
|
|
109
109
|
export type TeamLimitedTeamRoles = ClosedEnum<typeof TeamLimitedTeamRoles>;
|
|
110
110
|
|
|
111
111
|
export const TeamLimitedTeamPermissions = {
|
|
112
|
+
IntegrationManager: "IntegrationManager",
|
|
112
113
|
CreateProject: "CreateProject",
|
|
113
114
|
FullProductionDeployment: "FullProductionDeployment",
|
|
114
115
|
UsageViewer: "UsageViewer",
|