@vercel/sdk 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/bin/mcp-server.js +3144 -2287
  2. package/bin/mcp-server.js.map +51 -51
  3. package/docs/sdks/accessgroups/README.md +11 -0
  4. package/docs/sdks/aliases/README.md +7 -1
  5. package/docs/sdks/artifacts/README.md +6 -0
  6. package/docs/sdks/authentication/README.md +5 -0
  7. package/docs/sdks/certs/README.md +4 -0
  8. package/docs/sdks/checks/README.md +5 -0
  9. package/docs/sdks/deployments/README.md +18 -0
  10. package/docs/sdks/dns/README.md +4 -0
  11. package/docs/sdks/domains/README.md +10 -0
  12. package/docs/sdks/edgeconfig/README.md +17 -0
  13. package/docs/sdks/environment/README.md +5 -0
  14. package/docs/sdks/integrations/README.md +4 -0
  15. package/docs/sdks/logdrains/README.md +3 -0
  16. package/docs/sdks/logs/README.md +1 -0
  17. package/docs/sdks/marketplace/README.md +20 -0
  18. package/docs/sdks/projectmembers/README.md +3 -0
  19. package/docs/sdks/projects/README.md +24 -0
  20. package/docs/sdks/rollingrelease/README.md +7 -0
  21. package/docs/sdks/security/README.md +8 -0
  22. package/docs/sdks/teams/README.md +13 -0
  23. package/docs/sdks/user/README.md +3 -0
  24. package/docs/sdks/webhooks/README.md +4 -0
  25. package/esm/__tests__/aliases.test.js +16 -16
  26. package/esm/__tests__/aliases.test.js.map +1 -1
  27. package/esm/__tests__/security.test.js +13 -1
  28. package/esm/__tests__/security.test.js.map +1 -1
  29. package/esm/__tests__/teams.test.js +2 -2
  30. package/esm/__tests__/teams.test.js.map +1 -1
  31. package/esm/funcs/aliasesGetAlias.d.ts +2 -2
  32. package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
  33. package/esm/funcs/aliasesGetAlias.js +3 -2
  34. package/esm/funcs/aliasesGetAlias.js.map +1 -1
  35. package/esm/funcs/checksRerequestCheck.js +1 -0
  36. package/esm/funcs/checksRerequestCheck.js.map +1 -1
  37. package/esm/funcs/domainsGetDomainConfig.js +2 -2
  38. package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
  39. package/esm/funcs/edgeConfigPatchEdgeConfigItems.js +2 -3
  40. package/esm/funcs/edgeConfigPatchEdgeConfigItems.js.map +1 -1
  41. package/esm/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js +2 -2
  42. package/esm/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js.map +1 -1
  43. package/esm/funcs/projectsAcceptProjectTransferRequest.js +2 -2
  44. package/esm/funcs/projectsAcceptProjectTransferRequest.js.map +1 -1
  45. package/esm/funcs/projectsCreateProject.js +2 -2
  46. package/esm/funcs/projectsCreateProject.js.map +1 -1
  47. package/esm/funcs/teamsPatchTeam.js +2 -2
  48. package/esm/funcs/teamsPatchTeam.js.map +1 -1
  49. package/esm/lib/config.d.ts +3 -3
  50. package/esm/lib/config.js +3 -3
  51. package/esm/mcp-server/mcp-server.js +1 -1
  52. package/esm/mcp-server/server.js +1 -1
  53. package/esm/models/acceptprojecttransferrequestop.d.ts +176 -2
  54. package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
  55. package/esm/models/acceptprojecttransferrequestop.js +176 -2
  56. package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
  57. package/esm/models/addbypassipop.d.ts +38 -38
  58. package/esm/models/addbypassipop.d.ts.map +1 -1
  59. package/esm/models/addbypassipop.js +44 -42
  60. package/esm/models/addbypassipop.js.map +1 -1
  61. package/esm/models/authtoken.d.ts +10 -4
  62. package/esm/models/authtoken.d.ts.map +1 -1
  63. package/esm/models/authtoken.js +6 -4
  64. package/esm/models/authtoken.js.map +1 -1
  65. package/esm/models/authuser.d.ts +54 -0
  66. package/esm/models/authuser.d.ts.map +1 -1
  67. package/esm/models/authuser.js +34 -0
  68. package/esm/models/authuser.js.map +1 -1
  69. package/esm/models/canceldeploymentop.d.ts +336 -99
  70. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  71. package/esm/models/canceldeploymentop.js +310 -93
  72. package/esm/models/canceldeploymentop.js.map +1 -1
  73. package/esm/models/createcustomenvironmentop.d.ts +3 -3
  74. package/esm/models/createcustomenvironmentop.js +1 -1
  75. package/esm/models/createcustomenvironmentop.js.map +1 -1
  76. package/esm/models/createdeploymentop.d.ts +412 -152
  77. package/esm/models/createdeploymentop.d.ts.map +1 -1
  78. package/esm/models/createdeploymentop.js +348 -122
  79. package/esm/models/createdeploymentop.js.map +1 -1
  80. package/esm/models/createlogdrainop.d.ts +2 -2
  81. package/esm/models/createlogdrainop.d.ts.map +1 -1
  82. package/esm/models/createlogdrainop.js +2 -2
  83. package/esm/models/createlogdrainop.js.map +1 -1
  84. package/esm/models/createprojectop.d.ts +191 -58
  85. package/esm/models/createprojectop.d.ts.map +1 -1
  86. package/esm/models/createprojectop.js +168 -43
  87. package/esm/models/createprojectop.js.map +1 -1
  88. package/esm/models/createwebhookop.d.ts +12 -0
  89. package/esm/models/createwebhookop.d.ts.map +1 -1
  90. package/esm/models/createwebhookop.js +4 -0
  91. package/esm/models/createwebhookop.js.map +1 -1
  92. package/esm/models/exchangessotokenop.d.ts +4 -4
  93. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  94. package/esm/models/exchangessotokenop.js +4 -4
  95. package/esm/models/exchangessotokenop.js.map +1 -1
  96. package/esm/models/getaliasop.d.ts +0 -555
  97. package/esm/models/getaliasop.d.ts.map +1 -1
  98. package/esm/models/getaliasop.js +0 -449
  99. package/esm/models/getaliasop.js.map +1 -1
  100. package/esm/models/getbypassipop.d.ts +55 -179
  101. package/esm/models/getbypassipop.d.ts.map +1 -1
  102. package/esm/models/getbypassipop.js +59 -221
  103. package/esm/models/getbypassipop.js.map +1 -1
  104. package/esm/models/getcustomenvironmentop.d.ts +3 -3
  105. package/esm/models/getcustomenvironmentop.js +1 -1
  106. package/esm/models/getcustomenvironmentop.js.map +1 -1
  107. package/esm/models/getdeploymentop.d.ts +757 -276
  108. package/esm/models/getdeploymentop.d.ts.map +1 -1
  109. package/esm/models/getdeploymentop.js +703 -262
  110. package/esm/models/getdeploymentop.js.map +1 -1
  111. package/esm/models/getdeploymentsop.d.ts +3 -0
  112. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  113. package/esm/models/getdeploymentsop.js +1 -0
  114. package/esm/models/getdeploymentsop.js.map +1 -1
  115. package/esm/models/getintegrationlogdrainsop.d.ts +2 -2
  116. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  117. package/esm/models/getintegrationlogdrainsop.js +4 -2
  118. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  119. package/esm/models/getprojectmembersop.d.ts +3 -0
  120. package/esm/models/getprojectmembersop.d.ts.map +1 -1
  121. package/esm/models/getprojectmembersop.js +1 -0
  122. package/esm/models/getprojectmembersop.js.map +1 -1
  123. package/esm/models/getprojectsop.d.ts +185 -58
  124. package/esm/models/getprojectsop.d.ts.map +1 -1
  125. package/esm/models/getprojectsop.js +166 -43
  126. package/esm/models/getprojectsop.js.map +1 -1
  127. package/esm/models/getrecordsop.d.ts +8 -0
  128. package/esm/models/getrecordsop.d.ts.map +1 -1
  129. package/esm/models/getrecordsop.js +8 -0
  130. package/esm/models/getrecordsop.js.map +1 -1
  131. package/esm/models/getteammembersop.d.ts +6 -0
  132. package/esm/models/getteammembersop.d.ts.map +1 -1
  133. package/esm/models/getteammembersop.js +2 -0
  134. package/esm/models/getteammembersop.js.map +1 -1
  135. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -3
  136. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +1 -1
  137. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  138. package/esm/models/getwebhookop.d.ts +6 -0
  139. package/esm/models/getwebhookop.d.ts.map +1 -1
  140. package/esm/models/getwebhookop.js +2 -0
  141. package/esm/models/getwebhookop.js.map +1 -1
  142. package/esm/models/getwebhooksop.d.ts +15 -0
  143. package/esm/models/getwebhooksop.d.ts.map +1 -1
  144. package/esm/models/getwebhooksop.js +5 -0
  145. package/esm/models/getwebhooksop.js.map +1 -1
  146. package/esm/models/inviteusertoteamop.d.ts +33 -0
  147. package/esm/models/inviteusertoteamop.d.ts.map +1 -1
  148. package/esm/models/inviteusertoteamop.js +11 -0
  149. package/esm/models/inviteusertoteamop.js.map +1 -1
  150. package/esm/models/listaccessgroupmembersop.d.ts +3 -0
  151. package/esm/models/listaccessgroupmembersop.d.ts.map +1 -1
  152. package/esm/models/listaccessgroupmembersop.js +1 -0
  153. package/esm/models/listaccessgroupmembersop.js.map +1 -1
  154. package/esm/models/listaliasesop.d.ts +141 -39
  155. package/esm/models/listaliasesop.d.ts.map +1 -1
  156. package/esm/models/listaliasesop.js +132 -35
  157. package/esm/models/listaliasesop.js.map +1 -1
  158. package/esm/models/listdeploymentaliasesop.d.ts +30 -30
  159. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  160. package/esm/models/listdeploymentaliasesop.js +34 -34
  161. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  162. package/esm/models/patchedgeconfigitemsop.d.ts +0 -4
  163. package/esm/models/patchedgeconfigitemsop.d.ts.map +1 -1
  164. package/esm/models/patchedgeconfigitemsop.js +0 -4
  165. package/esm/models/patchedgeconfigitemsop.js.map +1 -1
  166. package/esm/models/patchteamop.d.ts +185 -0
  167. package/esm/models/patchteamop.d.ts.map +1 -1
  168. package/esm/models/patchteamop.js +132 -0
  169. package/esm/models/patchteamop.js.map +1 -1
  170. package/esm/models/removecustomenvironmentop.d.ts +3 -3
  171. package/esm/models/removecustomenvironmentop.js +1 -1
  172. package/esm/models/removecustomenvironmentop.js.map +1 -1
  173. package/esm/models/rerequestcheckop.d.ts +5 -0
  174. package/esm/models/rerequestcheckop.d.ts.map +1 -1
  175. package/esm/models/rerequestcheckop.js +2 -0
  176. package/esm/models/rerequestcheckop.js.map +1 -1
  177. package/esm/models/team.d.ts +149 -10
  178. package/esm/models/team.d.ts.map +1 -1
  179. package/esm/models/team.js +115 -5
  180. package/esm/models/team.js.map +1 -1
  181. package/esm/models/teamlimited.d.ts +15 -0
  182. package/esm/models/teamlimited.d.ts.map +1 -1
  183. package/esm/models/teamlimited.js +5 -0
  184. package/esm/models/teamlimited.js.map +1 -1
  185. package/esm/models/updatecustomenvironmentop.d.ts +3 -3
  186. package/esm/models/updatecustomenvironmentop.js +1 -1
  187. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  188. package/esm/models/updateprojectdatacacheop.d.ts +185 -58
  189. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  190. package/esm/models/updateprojectdatacacheop.js +166 -43
  191. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  192. package/esm/models/updateprojectop.d.ts +188 -58
  193. package/esm/models/updateprojectop.d.ts.map +1 -1
  194. package/esm/models/updateprojectop.js +167 -43
  195. package/esm/models/updateprojectop.js.map +1 -1
  196. package/esm/models/userevent.d.ts +1599 -1433
  197. package/esm/models/userevent.d.ts.map +1 -1
  198. package/esm/models/userevent.js +1998 -1847
  199. package/esm/models/userevent.js.map +1 -1
  200. package/esm/sdk/aliases.d.ts +2 -2
  201. package/esm/sdk/aliases.d.ts.map +1 -1
  202. package/examples/README.md +5 -0
  203. package/examples/package-lock.json +8 -7
  204. package/examples/projectsUpdateProject.example.ts +2 -0
  205. package/jsr.json +1 -1
  206. package/package.json +6 -8
  207. package/src/__tests__/aliases.test.ts +16 -16
  208. package/src/__tests__/security.test.ts +13 -1
  209. package/src/__tests__/teams.test.ts +2 -2
  210. package/src/funcs/aliasesGetAlias.ts +5 -6
  211. package/src/funcs/checksRerequestCheck.ts +1 -0
  212. package/src/funcs/domainsGetDomainConfig.ts +2 -2
  213. package/src/funcs/edgeConfigPatchEdgeConfigItems.ts +2 -3
  214. package/src/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.ts +2 -2
  215. package/src/funcs/projectsAcceptProjectTransferRequest.ts +2 -2
  216. package/src/funcs/projectsCreateProject.ts +2 -2
  217. package/src/funcs/teamsPatchTeam.ts +2 -2
  218. package/src/lib/config.ts +3 -3
  219. package/src/mcp-server/mcp-server.ts +1 -1
  220. package/src/mcp-server/server.ts +1 -1
  221. package/src/models/acceptprojecttransferrequestop.ts +449 -4
  222. package/src/models/addbypassipop.ts +69 -78
  223. package/src/models/authtoken.ts +10 -8
  224. package/src/models/authuser.ts +93 -0
  225. package/src/models/canceldeploymentop.ts +655 -190
  226. package/src/models/createcustomenvironmentop.ts +1 -1
  227. package/src/models/createdeploymentop.ts +752 -268
  228. package/src/models/createlogdrainop.ts +4 -4
  229. package/src/models/createprojectop.ts +365 -82
  230. package/src/models/createwebhookop.ts +4 -0
  231. package/src/models/exchangessotokenop.ts +8 -8
  232. package/src/models/getaliasop.ts +0 -1042
  233. package/src/models/getbypassipop.ts +100 -404
  234. package/src/models/getcustomenvironmentop.ts +1 -1
  235. package/src/models/getdeploymentop.ts +1657 -674
  236. package/src/models/getdeploymentsop.ts +1 -0
  237. package/src/models/getintegrationlogdrainsop.ts +6 -4
  238. package/src/models/getprojectmembersop.ts +1 -0
  239. package/src/models/getprojectsop.ts +363 -81
  240. package/src/models/getrecordsop.ts +16 -0
  241. package/src/models/getteammembersop.ts +2 -0
  242. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
  243. package/src/models/getwebhookop.ts +2 -0
  244. package/src/models/getwebhooksop.ts +5 -0
  245. package/src/models/inviteusertoteamop.ts +11 -0
  246. package/src/models/listaccessgroupmembersop.ts +1 -0
  247. package/src/models/listaliasesop.ts +290 -74
  248. package/src/models/listdeploymentaliasesop.ts +58 -70
  249. package/src/models/patchedgeconfigitemsop.ts +0 -8
  250. package/src/models/patchteamop.ts +311 -0
  251. package/src/models/removecustomenvironmentop.ts +1 -1
  252. package/src/models/rerequestcheckop.ts +7 -0
  253. package/src/models/team.ts +251 -12
  254. package/src/models/teamlimited.ts +5 -0
  255. package/src/models/updatecustomenvironmentop.ts +1 -1
  256. package/src/models/updateprojectdatacacheop.ts +352 -82
  257. package/src/models/updateprojectop.ts +364 -82
  258. package/src/models/userevent.ts +3609 -3269
  259. package/src/sdk/aliases.ts +2 -2
  260. package/temp/example.ts +11 -0
  261. package/vercel-spec.json +1984 -867
@@ -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
  /**
@@ -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
  });
@@ -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
  */
@@ -64,6 +64,18 @@ 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
+ } as const;
74
+ /**
75
+ * The default redirect URI to use after successful SAML authentication.
76
+ */
77
+ export type DefaultRedirectUri = ClosedEnum<typeof DefaultRedirectUri>;
78
+
67
79
  export const Roles2 = {
68
80
  Owner: "OWNER",
69
81
  Member: "MEMBER",
@@ -71,6 +83,7 @@ export const Roles2 = {
71
83
  Security: "SECURITY",
72
84
  Billing: "BILLING",
73
85
  Viewer: "VIEWER",
86
+ ViewerForPlus: "VIEWER_FOR_PLUS",
74
87
  Contributor: "CONTRIBUTOR",
75
88
  } as const;
76
89
  export type Roles2 = ClosedEnum<typeof Roles2>;
@@ -100,6 +113,10 @@ export type Saml = {
100
113
  * 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
114
  */
102
115
  enforced: boolean;
116
+ /**
117
+ * The default redirect URI to use after successful SAML authentication.
118
+ */
119
+ defaultRedirectUri?: DefaultRedirectUri | undefined;
103
120
  /**
104
121
  * 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
122
  */
@@ -149,6 +166,22 @@ export type RemoteCaching = {
149
166
  enabled?: boolean | undefined;
150
167
  };
151
168
 
169
+ export type PasswordProtection = {
170
+ deploymentType: string;
171
+ };
172
+
173
+ export type SsoProtection = {
174
+ deploymentType: string;
175
+ };
176
+
177
+ /**
178
+ * Default deployment protection for this team
179
+ */
180
+ export type DefaultDeploymentProtection = {
181
+ passwordProtection?: PasswordProtection | undefined;
182
+ ssoProtection?: SsoProtection | undefined;
183
+ };
184
+
152
185
  /**
153
186
  * Whether toolbar is enabled on preview deployments
154
187
  */
@@ -214,6 +247,7 @@ export const Role = {
214
247
  Security: "SECURITY",
215
248
  Billing: "BILLING",
216
249
  Viewer: "VIEWER",
250
+ ViewerForPlus: "VIEWER_FOR_PLUS",
217
251
  Contributor: "CONTRIBUTOR",
218
252
  } as const;
219
253
  export type Role = ClosedEnum<typeof Role>;
@@ -225,6 +259,7 @@ export const TeamRoles = {
225
259
  Security: "SECURITY",
226
260
  Billing: "BILLING",
227
261
  Viewer: "VIEWER",
262
+ ViewerForPlus: "VIEWER_FOR_PLUS",
228
263
  Contributor: "CONTRIBUTOR",
229
264
  } as const;
230
265
  export type TeamRoles = ClosedEnum<typeof TeamRoles>;
@@ -235,13 +270,16 @@ export const TeamPermissions = {
235
270
  UsageViewer: "UsageViewer",
236
271
  EnvVariableManager: "EnvVariableManager",
237
272
  EnvironmentManager: "EnvironmentManager",
273
+ V0Builder: "V0Builder",
274
+ V0Chatter: "V0Chatter",
275
+ V0Viewer: "V0Viewer",
238
276
  } as const;
239
277
  export type TeamPermissions = ClosedEnum<typeof TeamPermissions>;
240
278
 
241
279
  export const Origin = {
242
- Link: "link",
243
280
  Saml: "saml",
244
281
  Mail: "mail",
282
+ Link: "link",
245
283
  Import: "import",
246
284
  Teams: "teams",
247
285
  Github: "github",
@@ -275,13 +313,13 @@ export type JoinedFrom = {
275
313
  export type Membership = {
276
314
  uid?: string | undefined;
277
315
  entitlements?: Array<Entitlements> | undefined;
278
- teamId?: string | undefined;
279
316
  confirmed: boolean;
280
317
  confirmedAt: number;
281
318
  accessRequestedAt?: number | undefined;
282
319
  role: Role;
283
320
  teamRoles?: Array<TeamRoles> | undefined;
284
321
  teamPermissions?: Array<TeamPermissions> | undefined;
322
+ teamId?: string | undefined;
285
323
  createdAt: number;
286
324
  created: number;
287
325
  joinedFrom?: JoinedFrom | undefined;
@@ -329,6 +367,10 @@ export type Team = {
329
367
  * Is remote caching enabled for this team
330
368
  */
331
369
  remoteCaching?: RemoteCaching | undefined;
370
+ /**
371
+ * Default deployment protection for this team
372
+ */
373
+ defaultDeploymentProtection?: DefaultDeploymentProtection | undefined;
332
374
  /**
333
375
  * Whether toolbar is enabled on preview deployments
334
376
  */
@@ -433,8 +475,8 @@ export const Connection$inboundSchema: z.ZodType<
433
475
  z.ZodTypeDef,
434
476
  unknown
435
477
  > = z.object({
436
- type: z.string(),
437
478
  status: z.string(),
479
+ type: z.string(),
438
480
  state: z.string(),
439
481
  connectedAt: z.number(),
440
482
  lastReceivedWebhookEvent: z.number().optional(),
@@ -442,8 +484,8 @@ export const Connection$inboundSchema: z.ZodType<
442
484
 
443
485
  /** @internal */
444
486
  export type Connection$Outbound = {
445
- type: string;
446
487
  status: string;
488
+ type: string;
447
489
  state: string;
448
490
  connectedAt: number;
449
491
  lastReceivedWebhookEvent?: number | undefined;
@@ -455,8 +497,8 @@ export const Connection$outboundSchema: z.ZodType<
455
497
  z.ZodTypeDef,
456
498
  Connection
457
499
  > = z.object({
458
- type: z.string(),
459
500
  status: z.string(),
501
+ type: z.string(),
460
502
  state: z.string(),
461
503
  connectedAt: z.number(),
462
504
  lastReceivedWebhookEvent: z.number().optional(),
@@ -548,6 +590,27 @@ export function directoryFromJSON(
548
590
  );
549
591
  }
550
592
 
593
+ /** @internal */
594
+ export const DefaultRedirectUri$inboundSchema: z.ZodNativeEnum<
595
+ typeof DefaultRedirectUri
596
+ > = z.nativeEnum(DefaultRedirectUri);
597
+
598
+ /** @internal */
599
+ export const DefaultRedirectUri$outboundSchema: z.ZodNativeEnum<
600
+ typeof DefaultRedirectUri
601
+ > = DefaultRedirectUri$inboundSchema;
602
+
603
+ /**
604
+ * @internal
605
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
606
+ */
607
+ export namespace DefaultRedirectUri$ {
608
+ /** @deprecated use `DefaultRedirectUri$inboundSchema` instead. */
609
+ export const inboundSchema = DefaultRedirectUri$inboundSchema;
610
+ /** @deprecated use `DefaultRedirectUri$outboundSchema` instead. */
611
+ export const outboundSchema = DefaultRedirectUri$outboundSchema;
612
+ }
613
+
551
614
  /** @internal */
552
615
  export const Roles2$inboundSchema: z.ZodNativeEnum<typeof Roles2> = z
553
616
  .nativeEnum(Roles2);
@@ -661,6 +724,7 @@ export const Saml$inboundSchema: z.ZodType<Saml, z.ZodTypeDef, unknown> = z
661
724
  connection: z.lazy(() => Connection$inboundSchema).optional(),
662
725
  directory: z.lazy(() => Directory$inboundSchema).optional(),
663
726
  enforced: z.boolean(),
727
+ defaultRedirectUri: DefaultRedirectUri$inboundSchema.optional(),
664
728
  roles: z.record(
665
729
  z.union([z.lazy(() => Roles1$inboundSchema), Roles2$inboundSchema]),
666
730
  ).optional(),
@@ -671,6 +735,7 @@ export type Saml$Outbound = {
671
735
  connection?: Connection$Outbound | undefined;
672
736
  directory?: Directory$Outbound | undefined;
673
737
  enforced: boolean;
738
+ defaultRedirectUri?: string | undefined;
674
739
  roles?: { [k: string]: Roles1$Outbound | string } | undefined;
675
740
  };
676
741
 
@@ -680,6 +745,7 @@ export const Saml$outboundSchema: z.ZodType<Saml$Outbound, z.ZodTypeDef, Saml> =
680
745
  connection: z.lazy(() => Connection$outboundSchema).optional(),
681
746
  directory: z.lazy(() => Directory$outboundSchema).optional(),
682
747
  enforced: z.boolean(),
748
+ defaultRedirectUri: DefaultRedirectUri$outboundSchema.optional(),
683
749
  roles: z.record(
684
750
  z.union([z.lazy(() => Roles1$outboundSchema), Roles2$outboundSchema]),
685
751
  ).optional(),
@@ -887,6 +953,170 @@ export function remoteCachingFromJSON(
887
953
  );
888
954
  }
889
955
 
956
+ /** @internal */
957
+ export const PasswordProtection$inboundSchema: z.ZodType<
958
+ PasswordProtection,
959
+ z.ZodTypeDef,
960
+ unknown
961
+ > = z.object({
962
+ deploymentType: z.string(),
963
+ });
964
+
965
+ /** @internal */
966
+ export type PasswordProtection$Outbound = {
967
+ deploymentType: string;
968
+ };
969
+
970
+ /** @internal */
971
+ export const PasswordProtection$outboundSchema: z.ZodType<
972
+ PasswordProtection$Outbound,
973
+ z.ZodTypeDef,
974
+ PasswordProtection
975
+ > = z.object({
976
+ deploymentType: z.string(),
977
+ });
978
+
979
+ /**
980
+ * @internal
981
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
982
+ */
983
+ export namespace PasswordProtection$ {
984
+ /** @deprecated use `PasswordProtection$inboundSchema` instead. */
985
+ export const inboundSchema = PasswordProtection$inboundSchema;
986
+ /** @deprecated use `PasswordProtection$outboundSchema` instead. */
987
+ export const outboundSchema = PasswordProtection$outboundSchema;
988
+ /** @deprecated use `PasswordProtection$Outbound` instead. */
989
+ export type Outbound = PasswordProtection$Outbound;
990
+ }
991
+
992
+ export function passwordProtectionToJSON(
993
+ passwordProtection: PasswordProtection,
994
+ ): string {
995
+ return JSON.stringify(
996
+ PasswordProtection$outboundSchema.parse(passwordProtection),
997
+ );
998
+ }
999
+
1000
+ export function passwordProtectionFromJSON(
1001
+ jsonString: string,
1002
+ ): SafeParseResult<PasswordProtection, SDKValidationError> {
1003
+ return safeParse(
1004
+ jsonString,
1005
+ (x) => PasswordProtection$inboundSchema.parse(JSON.parse(x)),
1006
+ `Failed to parse 'PasswordProtection' from JSON`,
1007
+ );
1008
+ }
1009
+
1010
+ /** @internal */
1011
+ export const SsoProtection$inboundSchema: z.ZodType<
1012
+ SsoProtection,
1013
+ z.ZodTypeDef,
1014
+ unknown
1015
+ > = z.object({
1016
+ deploymentType: z.string(),
1017
+ });
1018
+
1019
+ /** @internal */
1020
+ export type SsoProtection$Outbound = {
1021
+ deploymentType: string;
1022
+ };
1023
+
1024
+ /** @internal */
1025
+ export const SsoProtection$outboundSchema: z.ZodType<
1026
+ SsoProtection$Outbound,
1027
+ z.ZodTypeDef,
1028
+ SsoProtection
1029
+ > = z.object({
1030
+ deploymentType: z.string(),
1031
+ });
1032
+
1033
+ /**
1034
+ * @internal
1035
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1036
+ */
1037
+ export namespace SsoProtection$ {
1038
+ /** @deprecated use `SsoProtection$inboundSchema` instead. */
1039
+ export const inboundSchema = SsoProtection$inboundSchema;
1040
+ /** @deprecated use `SsoProtection$outboundSchema` instead. */
1041
+ export const outboundSchema = SsoProtection$outboundSchema;
1042
+ /** @deprecated use `SsoProtection$Outbound` instead. */
1043
+ export type Outbound = SsoProtection$Outbound;
1044
+ }
1045
+
1046
+ export function ssoProtectionToJSON(ssoProtection: SsoProtection): string {
1047
+ return JSON.stringify(SsoProtection$outboundSchema.parse(ssoProtection));
1048
+ }
1049
+
1050
+ export function ssoProtectionFromJSON(
1051
+ jsonString: string,
1052
+ ): SafeParseResult<SsoProtection, SDKValidationError> {
1053
+ return safeParse(
1054
+ jsonString,
1055
+ (x) => SsoProtection$inboundSchema.parse(JSON.parse(x)),
1056
+ `Failed to parse 'SsoProtection' from JSON`,
1057
+ );
1058
+ }
1059
+
1060
+ /** @internal */
1061
+ export const DefaultDeploymentProtection$inboundSchema: z.ZodType<
1062
+ DefaultDeploymentProtection,
1063
+ z.ZodTypeDef,
1064
+ unknown
1065
+ > = z.object({
1066
+ passwordProtection: z.lazy(() => PasswordProtection$inboundSchema).optional(),
1067
+ ssoProtection: z.lazy(() => SsoProtection$inboundSchema).optional(),
1068
+ });
1069
+
1070
+ /** @internal */
1071
+ export type DefaultDeploymentProtection$Outbound = {
1072
+ passwordProtection?: PasswordProtection$Outbound | undefined;
1073
+ ssoProtection?: SsoProtection$Outbound | undefined;
1074
+ };
1075
+
1076
+ /** @internal */
1077
+ export const DefaultDeploymentProtection$outboundSchema: z.ZodType<
1078
+ DefaultDeploymentProtection$Outbound,
1079
+ z.ZodTypeDef,
1080
+ DefaultDeploymentProtection
1081
+ > = z.object({
1082
+ passwordProtection: z.lazy(() => PasswordProtection$outboundSchema)
1083
+ .optional(),
1084
+ ssoProtection: z.lazy(() => SsoProtection$outboundSchema).optional(),
1085
+ });
1086
+
1087
+ /**
1088
+ * @internal
1089
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1090
+ */
1091
+ export namespace DefaultDeploymentProtection$ {
1092
+ /** @deprecated use `DefaultDeploymentProtection$inboundSchema` instead. */
1093
+ export const inboundSchema = DefaultDeploymentProtection$inboundSchema;
1094
+ /** @deprecated use `DefaultDeploymentProtection$outboundSchema` instead. */
1095
+ export const outboundSchema = DefaultDeploymentProtection$outboundSchema;
1096
+ /** @deprecated use `DefaultDeploymentProtection$Outbound` instead. */
1097
+ export type Outbound = DefaultDeploymentProtection$Outbound;
1098
+ }
1099
+
1100
+ export function defaultDeploymentProtectionToJSON(
1101
+ defaultDeploymentProtection: DefaultDeploymentProtection,
1102
+ ): string {
1103
+ return JSON.stringify(
1104
+ DefaultDeploymentProtection$outboundSchema.parse(
1105
+ defaultDeploymentProtection,
1106
+ ),
1107
+ );
1108
+ }
1109
+
1110
+ export function defaultDeploymentProtectionFromJSON(
1111
+ jsonString: string,
1112
+ ): SafeParseResult<DefaultDeploymentProtection, SDKValidationError> {
1113
+ return safeParse(
1114
+ jsonString,
1115
+ (x) => DefaultDeploymentProtection$inboundSchema.parse(JSON.parse(x)),
1116
+ `Failed to parse 'DefaultDeploymentProtection' from JSON`,
1117
+ );
1118
+ }
1119
+
890
1120
  /** @internal */
891
1121
  export const EnablePreviewFeedback$inboundSchema: z.ZodNativeEnum<
892
1122
  typeof EnablePreviewFeedback
@@ -1265,13 +1495,13 @@ export const Membership$inboundSchema: z.ZodType<
1265
1495
  > = z.object({
1266
1496
  uid: z.string().optional(),
1267
1497
  entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
1268
- teamId: z.string().optional(),
1269
1498
  confirmed: z.boolean(),
1270
1499
  confirmedAt: z.number(),
1271
1500
  accessRequestedAt: z.number().optional(),
1272
1501
  role: Role$inboundSchema,
1273
1502
  teamRoles: z.array(TeamRoles$inboundSchema).optional(),
1274
1503
  teamPermissions: z.array(TeamPermissions$inboundSchema).optional(),
1504
+ teamId: z.string().optional(),
1275
1505
  createdAt: z.number(),
1276
1506
  created: z.number(),
1277
1507
  joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
@@ -1281,13 +1511,13 @@ export const Membership$inboundSchema: z.ZodType<
1281
1511
  export type Membership$Outbound = {
1282
1512
  uid?: string | undefined;
1283
1513
  entitlements?: Array<Entitlements$Outbound> | undefined;
1284
- teamId?: string | undefined;
1285
1514
  confirmed: boolean;
1286
1515
  confirmedAt: number;
1287
1516
  accessRequestedAt?: number | undefined;
1288
1517
  role: string;
1289
1518
  teamRoles?: Array<string> | undefined;
1290
1519
  teamPermissions?: Array<string> | undefined;
1520
+ teamId?: string | undefined;
1291
1521
  createdAt: number;
1292
1522
  created: number;
1293
1523
  joinedFrom?: JoinedFrom$Outbound | undefined;
@@ -1301,13 +1531,13 @@ export const Membership$outboundSchema: z.ZodType<
1301
1531
  > = z.object({
1302
1532
  uid: z.string().optional(),
1303
1533
  entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
1304
- teamId: z.string().optional(),
1305
1534
  confirmed: z.boolean(),
1306
1535
  confirmedAt: z.number(),
1307
1536
  accessRequestedAt: z.number().optional(),
1308
1537
  role: Role$outboundSchema,
1309
1538
  teamRoles: z.array(TeamRoles$outboundSchema).optional(),
1310
1539
  teamPermissions: z.array(TeamPermissions$outboundSchema).optional(),
1540
+ teamId: z.string().optional(),
1311
1541
  createdAt: z.number(),
1312
1542
  created: z.number(),
1313
1543
  joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
@@ -1355,6 +1585,9 @@ export const Team$inboundSchema: z.ZodType<Team, z.ZodTypeDef, unknown> =
1355
1585
  resourceConfig: z.lazy(() => ResourceConfig$inboundSchema).optional(),
1356
1586
  previewDeploymentSuffix: z.nullable(z.string()).optional(),
1357
1587
  remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(),
1588
+ defaultDeploymentProtection: z.lazy(() =>
1589
+ DefaultDeploymentProtection$inboundSchema
1590
+ ).optional(),
1358
1591
  enablePreviewFeedback: z.nullable(EnablePreviewFeedback$inboundSchema)
1359
1592
  .optional(),
1360
1593
  enableProductionFeedback: z.nullable(
@@ -1390,6 +1623,9 @@ export type Team$Outbound = {
1390
1623
  resourceConfig?: ResourceConfig$Outbound | undefined;
1391
1624
  previewDeploymentSuffix?: string | null | undefined;
1392
1625
  remoteCaching?: RemoteCaching$Outbound | undefined;
1626
+ defaultDeploymentProtection?:
1627
+ | DefaultDeploymentProtection$Outbound
1628
+ | undefined;
1393
1629
  enablePreviewFeedback?: string | null | undefined;
1394
1630
  enableProductionFeedback?: string | null | undefined;
1395
1631
  sensitiveEnvironmentVariablePolicy?: string | null | undefined;
@@ -1419,6 +1655,9 @@ export const Team$outboundSchema: z.ZodType<Team$Outbound, z.ZodTypeDef, Team> =
1419
1655
  resourceConfig: z.lazy(() => ResourceConfig$outboundSchema).optional(),
1420
1656
  previewDeploymentSuffix: z.nullable(z.string()).optional(),
1421
1657
  remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(),
1658
+ defaultDeploymentProtection: z.lazy(() =>
1659
+ DefaultDeploymentProtection$outboundSchema
1660
+ ).optional(),
1422
1661
  enablePreviewFeedback: z.nullable(EnablePreviewFeedback$outboundSchema)
1423
1662
  .optional(),
1424
1663
  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
  /**