@vercel/sdk 1.10.0 → 1.10.2
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 +3601 -3879
- package/bin/mcp-server.js.map +59 -59
- package/docs/sdks/accessgroups/README.md +11 -0
- package/docs/sdks/aliases/README.md +7 -1
- package/docs/sdks/artifacts/README.md +6 -0
- package/docs/sdks/authentication/README.md +5 -0
- package/docs/sdks/certs/README.md +4 -0
- package/docs/sdks/checks/README.md +5 -0
- package/docs/sdks/deployments/README.md +18 -0
- package/docs/sdks/dns/README.md +4 -0
- package/docs/sdks/domains/README.md +10 -0
- package/docs/sdks/edgeconfig/README.md +17 -0
- package/docs/sdks/environment/README.md +5 -0
- package/docs/sdks/integrations/README.md +4 -0
- package/docs/sdks/logdrains/README.md +3 -0
- package/docs/sdks/logs/README.md +1 -0
- package/docs/sdks/marketplace/README.md +20 -0
- package/docs/sdks/projectmembers/README.md +3 -0
- package/docs/sdks/projects/README.md +24 -0
- package/docs/sdks/rollingrelease/README.md +7 -0
- package/docs/sdks/security/README.md +8 -0
- package/docs/sdks/teams/README.md +13 -0
- package/docs/sdks/user/README.md +3 -0
- package/docs/sdks/webhooks/README.md +4 -0
- package/esm/__tests__/aliases.test.js +16 -16
- package/esm/__tests__/aliases.test.js.map +1 -1
- package/esm/__tests__/security.test.js +13 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/aliasesGetAlias.d.ts +2 -2
- package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
- package/esm/funcs/aliasesGetAlias.js +3 -2
- package/esm/funcs/aliasesGetAlias.js.map +1 -1
- package/esm/funcs/checksRerequestCheck.js +1 -0
- package/esm/funcs/checksRerequestCheck.js.map +1 -1
- package/esm/funcs/domainsBuyDomain.js +2 -2
- package/esm/funcs/domainsBuyDomain.js.map +1 -1
- package/esm/funcs/domainsGetDomainConfig.js +2 -2
- package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
- package/esm/funcs/domainsPatchDomain.js +2 -2
- package/esm/funcs/domainsPatchDomain.js.map +1 -1
- package/esm/funcs/edgeConfigPatchEdgeConfigItems.js +2 -3
- package/esm/funcs/edgeConfigPatchEdgeConfigItems.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js +2 -2
- package/esm/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js.map +1 -1
- package/esm/funcs/projectsAcceptProjectTransferRequest.js +2 -2
- package/esm/funcs/projectsAcceptProjectTransferRequest.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +2 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/funcs/teamsPatchTeam.js +2 -2
- package/esm/funcs/teamsPatchTeam.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/acceptprojecttransferrequestop.d.ts +176 -2
- package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
- package/esm/models/acceptprojecttransferrequestop.js +176 -2
- package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
- package/esm/models/addbypassipop.d.ts +38 -38
- package/esm/models/addbypassipop.d.ts.map +1 -1
- package/esm/models/addbypassipop.js +44 -42
- package/esm/models/addbypassipop.js.map +1 -1
- package/esm/models/authtoken.d.ts +10 -4
- package/esm/models/authtoken.d.ts.map +1 -1
- package/esm/models/authtoken.js +6 -4
- package/esm/models/authtoken.js.map +1 -1
- package/esm/models/authuser.d.ts +54 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +34 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +385 -148
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +363 -148
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createcustomenvironmentop.d.ts +3 -3
- package/esm/models/createcustomenvironmentop.js +1 -1
- package/esm/models/createcustomenvironmentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +604 -344
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +501 -274
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createlogdrainop.d.ts +2 -2
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +2 -2
- package/esm/models/createlogdrainop.js.map +1 -1
- 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 +378 -797
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +344 -718
- 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/exchangessotokenop.d.ts +4 -4
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +4 -4
- package/esm/models/exchangessotokenop.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/getaliasop.d.ts +0 -555
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +0 -449
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getbypassipop.d.ts +55 -179
- package/esm/models/getbypassipop.d.ts.map +1 -1
- package/esm/models/getbypassipop.js +59 -221
- package/esm/models/getbypassipop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +3 -3
- package/esm/models/getcustomenvironmentop.js +1 -1
- package/esm/models/getcustomenvironmentop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +847 -366
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +772 -332
- 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/getfirewallconfigop.d.ts +3 -0
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +1 -0
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/getintegrationlogdrainsop.d.ts +2 -2
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +4 -2
- package/esm/models/getintegrationlogdrainsop.js.map +1 -1
- package/esm/models/getprojectmembersop.d.ts +3 -0
- package/esm/models/getprojectmembersop.d.ts.map +1 -1
- package/esm/models/getprojectmembersop.js +1 -0
- package/esm/models/getprojectmembersop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +218 -643
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +197 -573
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrecordsop.d.ts +8 -0
- package/esm/models/getrecordsop.d.ts.map +1 -1
- package/esm/models/getrecordsop.js +8 -0
- package/esm/models/getrecordsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +6 -0
- package/esm/models/getteammembersop.d.ts.map +1 -1
- package/esm/models/getteammembersop.js +2 -0
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -3
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- 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 +15 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +5 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/inviteusertoteamop.d.ts +33 -0
- package/esm/models/inviteusertoteamop.d.ts.map +1 -1
- package/esm/models/inviteusertoteamop.js +11 -0
- package/esm/models/inviteusertoteamop.js.map +1 -1
- package/esm/models/listaccessgroupmembersop.d.ts +3 -0
- package/esm/models/listaccessgroupmembersop.d.ts.map +1 -1
- package/esm/models/listaccessgroupmembersop.js +1 -0
- package/esm/models/listaccessgroupmembersop.js.map +1 -1
- package/esm/models/listaliasesop.d.ts +141 -39
- package/esm/models/listaliasesop.d.ts.map +1 -1
- package/esm/models/listaliasesop.js +132 -35
- package/esm/models/listaliasesop.js.map +1 -1
- package/esm/models/listdeploymentaliasesop.d.ts +30 -30
- package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
- package/esm/models/listdeploymentaliasesop.js +34 -34
- package/esm/models/listdeploymentaliasesop.js.map +1 -1
- package/esm/models/patchedgeconfigitemsop.d.ts +0 -4
- package/esm/models/patchedgeconfigitemsop.d.ts.map +1 -1
- package/esm/models/patchedgeconfigitemsop.js +0 -4
- package/esm/models/patchedgeconfigitemsop.js.map +1 -1
- package/esm/models/patchteamop.d.ts +185 -0
- package/esm/models/patchteamop.d.ts.map +1 -1
- package/esm/models/patchteamop.js +132 -0
- package/esm/models/patchteamop.js.map +1 -1
- package/esm/models/putfirewallconfigop.d.ts +3 -0
- package/esm/models/putfirewallconfigop.d.ts.map +1 -1
- package/esm/models/putfirewallconfigop.js +1 -0
- package/esm/models/putfirewallconfigop.js.map +1 -1
- package/esm/models/removecustomenvironmentop.d.ts +3 -3
- package/esm/models/removecustomenvironmentop.js +1 -1
- package/esm/models/removecustomenvironmentop.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/rerequestcheckop.d.ts +5 -0
- package/esm/models/rerequestcheckop.d.ts.map +1 -1
- package/esm/models/rerequestcheckop.js +2 -0
- package/esm/models/rerequestcheckop.js.map +1 -1
- package/esm/models/team.d.ts +142 -0
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +111 -0
- package/esm/models/team.js.map +1 -1
- package/esm/models/teamlimited.d.ts +15 -0
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +5 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updatecustomenvironmentop.d.ts +3 -3
- package/esm/models/updatecustomenvironmentop.js +1 -1
- package/esm/models/updatecustomenvironmentop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +226 -651
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +209 -604
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +221 -643
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +198 -573
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +1629 -1433
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +2023 -1841
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/aliases.d.ts +2 -2
- package/esm/sdk/aliases.d.ts.map +1 -1
- package/examples/README.md +5 -0
- package/examples/package-lock.json +8 -7
- package/examples/projectsUpdateProject.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +6 -8
- package/src/__tests__/aliases.test.ts +16 -16
- package/src/__tests__/security.test.ts +13 -1
- package/src/funcs/aliasesGetAlias.ts +5 -6
- package/src/funcs/checksRerequestCheck.ts +1 -0
- package/src/funcs/domainsBuyDomain.ts +2 -2
- package/src/funcs/domainsGetDomainConfig.ts +2 -2
- package/src/funcs/domainsPatchDomain.ts +2 -2
- package/src/funcs/edgeConfigPatchEdgeConfigItems.ts +2 -3
- package/src/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.ts +2 -2
- package/src/funcs/projectsAcceptProjectTransferRequest.ts +2 -2
- package/src/funcs/projectsCreateProject.ts +2 -2
- package/src/funcs/teamsPatchTeam.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/acceptprojecttransferrequestop.ts +449 -4
- package/src/models/addbypassipop.ts +69 -78
- package/src/models/authtoken.ts +10 -8
- package/src/models/authuser.ts +93 -0
- package/src/models/canceldeploymentop.ts +734 -295
- package/src/models/createcustomenvironmentop.ts +1 -1
- package/src/models/createdeploymentop.ts +1122 -641
- package/src/models/createlogdrainop.ts +4 -4
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +734 -1475
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/exchangessotokenop.ts +8 -8
- package/src/models/filterprojectenvsop.ts +3 -3
- package/src/models/getaliasop.ts +0 -1042
- package/src/models/getbypassipop.ts +100 -404
- package/src/models/getcustomenvironmentop.ts +1 -1
- package/src/models/getdeploymentop.ts +1761 -780
- package/src/models/getdeploymentsop.ts +1 -0
- package/src/models/getfirewallconfigop.ts +1 -0
- package/src/models/getintegrationlogdrainsop.ts +6 -4
- package/src/models/getprojectmembersop.ts +1 -0
- package/src/models/getprojectsop.ts +612 -1335
- package/src/models/getrecordsop.ts +16 -0
- package/src/models/getteammembersop.ts +2 -0
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +5 -0
- package/src/models/inviteusertoteamop.ts +11 -0
- package/src/models/listaccessgroupmembersop.ts +1 -0
- package/src/models/listaliasesop.ts +290 -74
- package/src/models/listdeploymentaliasesop.ts +58 -70
- package/src/models/patchedgeconfigitemsop.ts +0 -8
- package/src/models/patchteamop.ts +311 -0
- package/src/models/putfirewallconfigop.ts +1 -0
- package/src/models/removecustomenvironmentop.ts +1 -1
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/rerequestcheckop.ts +7 -0
- package/src/models/team.ts +240 -0
- package/src/models/teamlimited.ts +5 -0
- package/src/models/updatecustomenvironmentop.ts +1 -1
- package/src/models/updateprojectdatacacheop.ts +684 -1411
- package/src/models/updateprojectop.ts +601 -1343
- package/src/models/userevent.ts +3615 -3202
- package/src/sdk/aliases.ts +2 -2
- package/temp/example.ts +11 -0
- package/vercel-spec.json +2337 -2625
|
@@ -684,6 +684,7 @@ export const PutFirewallConfigSecurityType = {
|
|
|
684
684
|
Ja4Digest: "ja4_digest",
|
|
685
685
|
Ja3Digest: "ja3_digest",
|
|
686
686
|
RateLimitApiId: "rate_limit_api_id",
|
|
687
|
+
BotName: "bot_name",
|
|
687
688
|
} as const;
|
|
688
689
|
export type PutFirewallConfigSecurityType = ClosedEnum<
|
|
689
690
|
typeof PutFirewallConfigSecurityType
|
|
@@ -40,8 +40,8 @@ export type RemoveCustomEnvironmentRequest = {
|
|
|
40
40
|
* The type of environment (production, preview, or development)
|
|
41
41
|
*/
|
|
42
42
|
export const RemoveCustomEnvironmentType = {
|
|
43
|
-
Production: "production",
|
|
44
43
|
Preview: "preview",
|
|
44
|
+
Production: "production",
|
|
45
45
|
Development: "development",
|
|
46
46
|
} as const;
|
|
47
47
|
/**
|
|
@@ -55,10 +55,10 @@ export type RemoveProjectEnvResponseBodyProjectsResponseTarget =
|
|
|
55
55
|
|
|
56
56
|
export const RemoveProjectEnvResponseBodyProjectsResponseType = {
|
|
57
57
|
System: "system",
|
|
58
|
+
Secret: "secret",
|
|
58
59
|
Encrypted: "encrypted",
|
|
59
60
|
Plain: "plain",
|
|
60
61
|
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",
|
|
408
409
|
Encrypted: "encrypted",
|
|
409
410
|
Plain: "plain",
|
|
410
411
|
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",
|
|
757
758
|
Encrypted: "encrypted",
|
|
758
759
|
Plain: "plain",
|
|
759
760
|
Sensitive: "sensitive",
|
|
760
|
-
Secret: "secret",
|
|
761
761
|
} as const;
|
|
762
762
|
export type RemoveProjectEnvResponseBodyType = ClosedEnum<
|
|
763
763
|
typeof RemoveProjectEnvResponseBodyType
|
|
@@ -16,6 +16,10 @@ export type RerequestCheckRequest = {
|
|
|
16
16
|
* The check to rerun
|
|
17
17
|
*/
|
|
18
18
|
checkId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Mark the check as running
|
|
21
|
+
*/
|
|
22
|
+
autoUpdate?: boolean | undefined;
|
|
19
23
|
/**
|
|
20
24
|
* The Team identifier to perform the request on behalf of.
|
|
21
25
|
*/
|
|
@@ -36,6 +40,7 @@ export const RerequestCheckRequest$inboundSchema: z.ZodType<
|
|
|
36
40
|
> = z.object({
|
|
37
41
|
deploymentId: z.string(),
|
|
38
42
|
checkId: z.string(),
|
|
43
|
+
autoUpdate: z.boolean().optional(),
|
|
39
44
|
teamId: z.string().optional(),
|
|
40
45
|
slug: z.string().optional(),
|
|
41
46
|
});
|
|
@@ -44,6 +49,7 @@ export const RerequestCheckRequest$inboundSchema: z.ZodType<
|
|
|
44
49
|
export type RerequestCheckRequest$Outbound = {
|
|
45
50
|
deploymentId: string;
|
|
46
51
|
checkId: string;
|
|
52
|
+
autoUpdate?: boolean | undefined;
|
|
47
53
|
teamId?: string | undefined;
|
|
48
54
|
slug?: string | undefined;
|
|
49
55
|
};
|
|
@@ -56,6 +62,7 @@ export const RerequestCheckRequest$outboundSchema: z.ZodType<
|
|
|
56
62
|
> = z.object({
|
|
57
63
|
deploymentId: z.string(),
|
|
58
64
|
checkId: z.string(),
|
|
65
|
+
autoUpdate: z.boolean().optional(),
|
|
59
66
|
teamId: z.string().optional(),
|
|
60
67
|
slug: z.string().optional(),
|
|
61
68
|
});
|
package/src/models/team.ts
CHANGED
|
@@ -64,6 +64,19 @@ export type Directory = {
|
|
|
64
64
|
lastReceivedWebhookEvent?: number | undefined;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* The default redirect URI to use after successful SAML authentication.
|
|
69
|
+
*/
|
|
70
|
+
export const DefaultRedirectUri = {
|
|
71
|
+
VercelCom: "vercel.com",
|
|
72
|
+
V0Dev: "v0.dev",
|
|
73
|
+
V0App: "v0.app",
|
|
74
|
+
} as const;
|
|
75
|
+
/**
|
|
76
|
+
* The default redirect URI to use after successful SAML authentication.
|
|
77
|
+
*/
|
|
78
|
+
export type DefaultRedirectUri = ClosedEnum<typeof DefaultRedirectUri>;
|
|
79
|
+
|
|
67
80
|
export const Roles2 = {
|
|
68
81
|
Owner: "OWNER",
|
|
69
82
|
Member: "MEMBER",
|
|
@@ -71,6 +84,7 @@ export const Roles2 = {
|
|
|
71
84
|
Security: "SECURITY",
|
|
72
85
|
Billing: "BILLING",
|
|
73
86
|
Viewer: "VIEWER",
|
|
87
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
74
88
|
Contributor: "CONTRIBUTOR",
|
|
75
89
|
} as const;
|
|
76
90
|
export type Roles2 = ClosedEnum<typeof Roles2>;
|
|
@@ -100,6 +114,10 @@ export type Saml = {
|
|
|
100
114
|
* When `true`, interactions with the Team **must** be done with an authentication token that has been authenticated with the Team's SAML Single Sign-On provider.
|
|
101
115
|
*/
|
|
102
116
|
enforced: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The default redirect URI to use after successful SAML authentication.
|
|
119
|
+
*/
|
|
120
|
+
defaultRedirectUri?: DefaultRedirectUri | undefined;
|
|
103
121
|
/**
|
|
104
122
|
* When "Directory Sync" is configured, this object contains a mapping of which Directory Group (by ID) should be assigned to which Vercel Team "role".
|
|
105
123
|
*/
|
|
@@ -149,6 +167,22 @@ export type RemoteCaching = {
|
|
|
149
167
|
enabled?: boolean | undefined;
|
|
150
168
|
};
|
|
151
169
|
|
|
170
|
+
export type PasswordProtection = {
|
|
171
|
+
deploymentType: string;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export type SsoProtection = {
|
|
175
|
+
deploymentType: string;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Default deployment protection for this team
|
|
180
|
+
*/
|
|
181
|
+
export type DefaultDeploymentProtection = {
|
|
182
|
+
passwordProtection?: PasswordProtection | undefined;
|
|
183
|
+
ssoProtection?: SsoProtection | undefined;
|
|
184
|
+
};
|
|
185
|
+
|
|
152
186
|
/**
|
|
153
187
|
* Whether toolbar is enabled on preview deployments
|
|
154
188
|
*/
|
|
@@ -214,6 +248,7 @@ export const Role = {
|
|
|
214
248
|
Security: "SECURITY",
|
|
215
249
|
Billing: "BILLING",
|
|
216
250
|
Viewer: "VIEWER",
|
|
251
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
217
252
|
Contributor: "CONTRIBUTOR",
|
|
218
253
|
} as const;
|
|
219
254
|
export type Role = ClosedEnum<typeof Role>;
|
|
@@ -225,6 +260,7 @@ export const TeamRoles = {
|
|
|
225
260
|
Security: "SECURITY",
|
|
226
261
|
Billing: "BILLING",
|
|
227
262
|
Viewer: "VIEWER",
|
|
263
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
228
264
|
Contributor: "CONTRIBUTOR",
|
|
229
265
|
} as const;
|
|
230
266
|
export type TeamRoles = ClosedEnum<typeof TeamRoles>;
|
|
@@ -235,6 +271,9 @@ export const TeamPermissions = {
|
|
|
235
271
|
UsageViewer: "UsageViewer",
|
|
236
272
|
EnvVariableManager: "EnvVariableManager",
|
|
237
273
|
EnvironmentManager: "EnvironmentManager",
|
|
274
|
+
V0Builder: "V0Builder",
|
|
275
|
+
V0Chatter: "V0Chatter",
|
|
276
|
+
V0Viewer: "V0Viewer",
|
|
238
277
|
} as const;
|
|
239
278
|
export type TeamPermissions = ClosedEnum<typeof TeamPermissions>;
|
|
240
279
|
|
|
@@ -329,6 +368,10 @@ export type Team = {
|
|
|
329
368
|
* Is remote caching enabled for this team
|
|
330
369
|
*/
|
|
331
370
|
remoteCaching?: RemoteCaching | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* Default deployment protection for this team
|
|
373
|
+
*/
|
|
374
|
+
defaultDeploymentProtection?: DefaultDeploymentProtection | undefined;
|
|
332
375
|
/**
|
|
333
376
|
* Whether toolbar is enabled on preview deployments
|
|
334
377
|
*/
|
|
@@ -548,6 +591,27 @@ export function directoryFromJSON(
|
|
|
548
591
|
);
|
|
549
592
|
}
|
|
550
593
|
|
|
594
|
+
/** @internal */
|
|
595
|
+
export const DefaultRedirectUri$inboundSchema: z.ZodNativeEnum<
|
|
596
|
+
typeof DefaultRedirectUri
|
|
597
|
+
> = z.nativeEnum(DefaultRedirectUri);
|
|
598
|
+
|
|
599
|
+
/** @internal */
|
|
600
|
+
export const DefaultRedirectUri$outboundSchema: z.ZodNativeEnum<
|
|
601
|
+
typeof DefaultRedirectUri
|
|
602
|
+
> = DefaultRedirectUri$inboundSchema;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* @internal
|
|
606
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
607
|
+
*/
|
|
608
|
+
export namespace DefaultRedirectUri$ {
|
|
609
|
+
/** @deprecated use `DefaultRedirectUri$inboundSchema` instead. */
|
|
610
|
+
export const inboundSchema = DefaultRedirectUri$inboundSchema;
|
|
611
|
+
/** @deprecated use `DefaultRedirectUri$outboundSchema` instead. */
|
|
612
|
+
export const outboundSchema = DefaultRedirectUri$outboundSchema;
|
|
613
|
+
}
|
|
614
|
+
|
|
551
615
|
/** @internal */
|
|
552
616
|
export const Roles2$inboundSchema: z.ZodNativeEnum<typeof Roles2> = z
|
|
553
617
|
.nativeEnum(Roles2);
|
|
@@ -661,6 +725,7 @@ export const Saml$inboundSchema: z.ZodType<Saml, z.ZodTypeDef, unknown> = z
|
|
|
661
725
|
connection: z.lazy(() => Connection$inboundSchema).optional(),
|
|
662
726
|
directory: z.lazy(() => Directory$inboundSchema).optional(),
|
|
663
727
|
enforced: z.boolean(),
|
|
728
|
+
defaultRedirectUri: DefaultRedirectUri$inboundSchema.optional(),
|
|
664
729
|
roles: z.record(
|
|
665
730
|
z.union([z.lazy(() => Roles1$inboundSchema), Roles2$inboundSchema]),
|
|
666
731
|
).optional(),
|
|
@@ -671,6 +736,7 @@ export type Saml$Outbound = {
|
|
|
671
736
|
connection?: Connection$Outbound | undefined;
|
|
672
737
|
directory?: Directory$Outbound | undefined;
|
|
673
738
|
enforced: boolean;
|
|
739
|
+
defaultRedirectUri?: string | undefined;
|
|
674
740
|
roles?: { [k: string]: Roles1$Outbound | string } | undefined;
|
|
675
741
|
};
|
|
676
742
|
|
|
@@ -680,6 +746,7 @@ export const Saml$outboundSchema: z.ZodType<Saml$Outbound, z.ZodTypeDef, Saml> =
|
|
|
680
746
|
connection: z.lazy(() => Connection$outboundSchema).optional(),
|
|
681
747
|
directory: z.lazy(() => Directory$outboundSchema).optional(),
|
|
682
748
|
enforced: z.boolean(),
|
|
749
|
+
defaultRedirectUri: DefaultRedirectUri$outboundSchema.optional(),
|
|
683
750
|
roles: z.record(
|
|
684
751
|
z.union([z.lazy(() => Roles1$outboundSchema), Roles2$outboundSchema]),
|
|
685
752
|
).optional(),
|
|
@@ -887,6 +954,170 @@ export function remoteCachingFromJSON(
|
|
|
887
954
|
);
|
|
888
955
|
}
|
|
889
956
|
|
|
957
|
+
/** @internal */
|
|
958
|
+
export const PasswordProtection$inboundSchema: z.ZodType<
|
|
959
|
+
PasswordProtection,
|
|
960
|
+
z.ZodTypeDef,
|
|
961
|
+
unknown
|
|
962
|
+
> = z.object({
|
|
963
|
+
deploymentType: z.string(),
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
/** @internal */
|
|
967
|
+
export type PasswordProtection$Outbound = {
|
|
968
|
+
deploymentType: string;
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
/** @internal */
|
|
972
|
+
export const PasswordProtection$outboundSchema: z.ZodType<
|
|
973
|
+
PasswordProtection$Outbound,
|
|
974
|
+
z.ZodTypeDef,
|
|
975
|
+
PasswordProtection
|
|
976
|
+
> = z.object({
|
|
977
|
+
deploymentType: z.string(),
|
|
978
|
+
});
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* @internal
|
|
982
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
983
|
+
*/
|
|
984
|
+
export namespace PasswordProtection$ {
|
|
985
|
+
/** @deprecated use `PasswordProtection$inboundSchema` instead. */
|
|
986
|
+
export const inboundSchema = PasswordProtection$inboundSchema;
|
|
987
|
+
/** @deprecated use `PasswordProtection$outboundSchema` instead. */
|
|
988
|
+
export const outboundSchema = PasswordProtection$outboundSchema;
|
|
989
|
+
/** @deprecated use `PasswordProtection$Outbound` instead. */
|
|
990
|
+
export type Outbound = PasswordProtection$Outbound;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export function passwordProtectionToJSON(
|
|
994
|
+
passwordProtection: PasswordProtection,
|
|
995
|
+
): string {
|
|
996
|
+
return JSON.stringify(
|
|
997
|
+
PasswordProtection$outboundSchema.parse(passwordProtection),
|
|
998
|
+
);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
export function passwordProtectionFromJSON(
|
|
1002
|
+
jsonString: string,
|
|
1003
|
+
): SafeParseResult<PasswordProtection, SDKValidationError> {
|
|
1004
|
+
return safeParse(
|
|
1005
|
+
jsonString,
|
|
1006
|
+
(x) => PasswordProtection$inboundSchema.parse(JSON.parse(x)),
|
|
1007
|
+
`Failed to parse 'PasswordProtection' from JSON`,
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/** @internal */
|
|
1012
|
+
export const SsoProtection$inboundSchema: z.ZodType<
|
|
1013
|
+
SsoProtection,
|
|
1014
|
+
z.ZodTypeDef,
|
|
1015
|
+
unknown
|
|
1016
|
+
> = z.object({
|
|
1017
|
+
deploymentType: z.string(),
|
|
1018
|
+
});
|
|
1019
|
+
|
|
1020
|
+
/** @internal */
|
|
1021
|
+
export type SsoProtection$Outbound = {
|
|
1022
|
+
deploymentType: string;
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
/** @internal */
|
|
1026
|
+
export const SsoProtection$outboundSchema: z.ZodType<
|
|
1027
|
+
SsoProtection$Outbound,
|
|
1028
|
+
z.ZodTypeDef,
|
|
1029
|
+
SsoProtection
|
|
1030
|
+
> = z.object({
|
|
1031
|
+
deploymentType: z.string(),
|
|
1032
|
+
});
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* @internal
|
|
1036
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1037
|
+
*/
|
|
1038
|
+
export namespace SsoProtection$ {
|
|
1039
|
+
/** @deprecated use `SsoProtection$inboundSchema` instead. */
|
|
1040
|
+
export const inboundSchema = SsoProtection$inboundSchema;
|
|
1041
|
+
/** @deprecated use `SsoProtection$outboundSchema` instead. */
|
|
1042
|
+
export const outboundSchema = SsoProtection$outboundSchema;
|
|
1043
|
+
/** @deprecated use `SsoProtection$Outbound` instead. */
|
|
1044
|
+
export type Outbound = SsoProtection$Outbound;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export function ssoProtectionToJSON(ssoProtection: SsoProtection): string {
|
|
1048
|
+
return JSON.stringify(SsoProtection$outboundSchema.parse(ssoProtection));
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export function ssoProtectionFromJSON(
|
|
1052
|
+
jsonString: string,
|
|
1053
|
+
): SafeParseResult<SsoProtection, SDKValidationError> {
|
|
1054
|
+
return safeParse(
|
|
1055
|
+
jsonString,
|
|
1056
|
+
(x) => SsoProtection$inboundSchema.parse(JSON.parse(x)),
|
|
1057
|
+
`Failed to parse 'SsoProtection' from JSON`,
|
|
1058
|
+
);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/** @internal */
|
|
1062
|
+
export const DefaultDeploymentProtection$inboundSchema: z.ZodType<
|
|
1063
|
+
DefaultDeploymentProtection,
|
|
1064
|
+
z.ZodTypeDef,
|
|
1065
|
+
unknown
|
|
1066
|
+
> = z.object({
|
|
1067
|
+
passwordProtection: z.lazy(() => PasswordProtection$inboundSchema).optional(),
|
|
1068
|
+
ssoProtection: z.lazy(() => SsoProtection$inboundSchema).optional(),
|
|
1069
|
+
});
|
|
1070
|
+
|
|
1071
|
+
/** @internal */
|
|
1072
|
+
export type DefaultDeploymentProtection$Outbound = {
|
|
1073
|
+
passwordProtection?: PasswordProtection$Outbound | undefined;
|
|
1074
|
+
ssoProtection?: SsoProtection$Outbound | undefined;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
/** @internal */
|
|
1078
|
+
export const DefaultDeploymentProtection$outboundSchema: z.ZodType<
|
|
1079
|
+
DefaultDeploymentProtection$Outbound,
|
|
1080
|
+
z.ZodTypeDef,
|
|
1081
|
+
DefaultDeploymentProtection
|
|
1082
|
+
> = z.object({
|
|
1083
|
+
passwordProtection: z.lazy(() => PasswordProtection$outboundSchema)
|
|
1084
|
+
.optional(),
|
|
1085
|
+
ssoProtection: z.lazy(() => SsoProtection$outboundSchema).optional(),
|
|
1086
|
+
});
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @internal
|
|
1090
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1091
|
+
*/
|
|
1092
|
+
export namespace DefaultDeploymentProtection$ {
|
|
1093
|
+
/** @deprecated use `DefaultDeploymentProtection$inboundSchema` instead. */
|
|
1094
|
+
export const inboundSchema = DefaultDeploymentProtection$inboundSchema;
|
|
1095
|
+
/** @deprecated use `DefaultDeploymentProtection$outboundSchema` instead. */
|
|
1096
|
+
export const outboundSchema = DefaultDeploymentProtection$outboundSchema;
|
|
1097
|
+
/** @deprecated use `DefaultDeploymentProtection$Outbound` instead. */
|
|
1098
|
+
export type Outbound = DefaultDeploymentProtection$Outbound;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export function defaultDeploymentProtectionToJSON(
|
|
1102
|
+
defaultDeploymentProtection: DefaultDeploymentProtection,
|
|
1103
|
+
): string {
|
|
1104
|
+
return JSON.stringify(
|
|
1105
|
+
DefaultDeploymentProtection$outboundSchema.parse(
|
|
1106
|
+
defaultDeploymentProtection,
|
|
1107
|
+
),
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export function defaultDeploymentProtectionFromJSON(
|
|
1112
|
+
jsonString: string,
|
|
1113
|
+
): SafeParseResult<DefaultDeploymentProtection, SDKValidationError> {
|
|
1114
|
+
return safeParse(
|
|
1115
|
+
jsonString,
|
|
1116
|
+
(x) => DefaultDeploymentProtection$inboundSchema.parse(JSON.parse(x)),
|
|
1117
|
+
`Failed to parse 'DefaultDeploymentProtection' from JSON`,
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
890
1121
|
/** @internal */
|
|
891
1122
|
export const EnablePreviewFeedback$inboundSchema: z.ZodNativeEnum<
|
|
892
1123
|
typeof EnablePreviewFeedback
|
|
@@ -1355,6 +1586,9 @@ export const Team$inboundSchema: z.ZodType<Team, z.ZodTypeDef, unknown> =
|
|
|
1355
1586
|
resourceConfig: z.lazy(() => ResourceConfig$inboundSchema).optional(),
|
|
1356
1587
|
previewDeploymentSuffix: z.nullable(z.string()).optional(),
|
|
1357
1588
|
remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(),
|
|
1589
|
+
defaultDeploymentProtection: z.lazy(() =>
|
|
1590
|
+
DefaultDeploymentProtection$inboundSchema
|
|
1591
|
+
).optional(),
|
|
1358
1592
|
enablePreviewFeedback: z.nullable(EnablePreviewFeedback$inboundSchema)
|
|
1359
1593
|
.optional(),
|
|
1360
1594
|
enableProductionFeedback: z.nullable(
|
|
@@ -1390,6 +1624,9 @@ export type Team$Outbound = {
|
|
|
1390
1624
|
resourceConfig?: ResourceConfig$Outbound | undefined;
|
|
1391
1625
|
previewDeploymentSuffix?: string | null | undefined;
|
|
1392
1626
|
remoteCaching?: RemoteCaching$Outbound | undefined;
|
|
1627
|
+
defaultDeploymentProtection?:
|
|
1628
|
+
| DefaultDeploymentProtection$Outbound
|
|
1629
|
+
| undefined;
|
|
1393
1630
|
enablePreviewFeedback?: string | null | undefined;
|
|
1394
1631
|
enableProductionFeedback?: string | null | undefined;
|
|
1395
1632
|
sensitiveEnvironmentVariablePolicy?: string | null | undefined;
|
|
@@ -1419,6 +1656,9 @@ export const Team$outboundSchema: z.ZodType<Team$Outbound, z.ZodTypeDef, Team> =
|
|
|
1419
1656
|
resourceConfig: z.lazy(() => ResourceConfig$outboundSchema).optional(),
|
|
1420
1657
|
previewDeploymentSuffix: z.nullable(z.string()).optional(),
|
|
1421
1658
|
remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(),
|
|
1659
|
+
defaultDeploymentProtection: z.lazy(() =>
|
|
1660
|
+
DefaultDeploymentProtection$outboundSchema
|
|
1661
|
+
).optional(),
|
|
1422
1662
|
enablePreviewFeedback: z.nullable(EnablePreviewFeedback$outboundSchema)
|
|
1423
1663
|
.optional(),
|
|
1424
1664
|
enableProductionFeedback: z.nullable(
|
|
@@ -91,6 +91,7 @@ export const TeamLimitedRole = {
|
|
|
91
91
|
Security: "SECURITY",
|
|
92
92
|
Billing: "BILLING",
|
|
93
93
|
Viewer: "VIEWER",
|
|
94
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
94
95
|
Contributor: "CONTRIBUTOR",
|
|
95
96
|
} as const;
|
|
96
97
|
export type TeamLimitedRole = ClosedEnum<typeof TeamLimitedRole>;
|
|
@@ -102,6 +103,7 @@ export const TeamLimitedTeamRoles = {
|
|
|
102
103
|
Security: "SECURITY",
|
|
103
104
|
Billing: "BILLING",
|
|
104
105
|
Viewer: "VIEWER",
|
|
106
|
+
ViewerForPlus: "VIEWER_FOR_PLUS",
|
|
105
107
|
Contributor: "CONTRIBUTOR",
|
|
106
108
|
} as const;
|
|
107
109
|
export type TeamLimitedTeamRoles = ClosedEnum<typeof TeamLimitedTeamRoles>;
|
|
@@ -112,6 +114,9 @@ export const TeamLimitedTeamPermissions = {
|
|
|
112
114
|
UsageViewer: "UsageViewer",
|
|
113
115
|
EnvVariableManager: "EnvVariableManager",
|
|
114
116
|
EnvironmentManager: "EnvironmentManager",
|
|
117
|
+
V0Builder: "V0Builder",
|
|
118
|
+
V0Chatter: "V0Chatter",
|
|
119
|
+
V0Viewer: "V0Viewer",
|
|
115
120
|
} as const;
|
|
116
121
|
export type TeamLimitedTeamPermissions = ClosedEnum<
|
|
117
122
|
typeof TeamLimitedTeamPermissions
|
|
@@ -77,8 +77,8 @@ export type UpdateCustomEnvironmentRequest = {
|
|
|
77
77
|
* The type of environment (production, preview, or development)
|
|
78
78
|
*/
|
|
79
79
|
export const UpdateCustomEnvironmentEnvironmentType = {
|
|
80
|
-
Production: "production",
|
|
81
80
|
Preview: "preview",
|
|
81
|
+
Production: "production",
|
|
82
82
|
Development: "development",
|
|
83
83
|
} as const;
|
|
84
84
|
/**
|