@vercel/sdk 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/README.md +11 -7
  2. package/bin/mcp-server.js +3307 -2453
  3. package/bin/mcp-server.js.map +46 -41
  4. package/docs/sdks/deployments/README.md +2 -0
  5. package/docs/sdks/logdrains/README.md +0 -80
  6. package/docs/sdks/marketplace/README.md +310 -78
  7. package/esm/__tests__/deployments.test.js.map +1 -1
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/logdrains.test.js +3 -13
  10. package/esm/__tests__/logdrains.test.js.map +1 -1
  11. package/esm/__tests__/marketplace.test.js +41 -0
  12. package/esm/__tests__/marketplace.test.js.map +1 -1
  13. package/esm/__tests__/projects.test.js +13 -15
  14. package/esm/__tests__/projects.test.js.map +1 -1
  15. package/esm/__tests__/rollingrelease.test.js +5 -2
  16. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  17. package/esm/funcs/deploymentsCreateDeployment.js +2 -2
  18. package/esm/funcs/deploymentsCreateDeployment.js.map +1 -1
  19. package/esm/funcs/{logDrainsDeleteConfigurableLogDrain.d.ts → marketplaceDeleteIntegrationResource.d.ts} +5 -5
  20. package/esm/funcs/marketplaceDeleteIntegrationResource.d.ts.map +1 -0
  21. package/esm/funcs/{logDrainsDeleteConfigurableLogDrain.js → marketplaceDeleteIntegrationResource.js} +11 -15
  22. package/esm/funcs/marketplaceDeleteIntegrationResource.js.map +1 -0
  23. package/esm/funcs/marketplaceGetIntegrationResource.d.ts +20 -0
  24. package/esm/funcs/marketplaceGetIntegrationResource.d.ts.map +1 -0
  25. package/esm/funcs/marketplaceGetIntegrationResource.js +90 -0
  26. package/esm/funcs/marketplaceGetIntegrationResource.js.map +1 -0
  27. package/esm/funcs/marketplaceGetIntegrationResources.d.ts +20 -0
  28. package/esm/funcs/marketplaceGetIntegrationResources.d.ts.map +1 -0
  29. package/esm/funcs/marketplaceGetIntegrationResources.js +86 -0
  30. package/esm/funcs/marketplaceGetIntegrationResources.js.map +1 -0
  31. package/esm/lib/config.d.ts +3 -3
  32. package/esm/lib/config.js +3 -3
  33. package/esm/lib/config.js.map +1 -1
  34. package/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  35. package/esm/mcp-server/cli/start/command.js +0 -12
  36. package/esm/mcp-server/cli/start/command.js.map +1 -1
  37. package/esm/mcp-server/cli/start/impl.d.ts +0 -2
  38. package/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  39. package/esm/mcp-server/cli/start/impl.js +0 -2
  40. package/esm/mcp-server/cli/start/impl.js.map +1 -1
  41. package/esm/mcp-server/mcp-server.js +1 -1
  42. package/esm/mcp-server/mcp-server.js.map +1 -1
  43. package/esm/mcp-server/server.d.ts.map +1 -1
  44. package/esm/mcp-server/server.js +11 -7
  45. package/esm/mcp-server/server.js.map +1 -1
  46. package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.d.ts +7 -0
  47. package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.d.ts.map +1 -0
  48. package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.js +27 -0
  49. package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.js.map +1 -0
  50. package/esm/mcp-server/tools/marketplaceGetIntegrationResource.d.ts +7 -0
  51. package/esm/mcp-server/tools/marketplaceGetIntegrationResource.d.ts.map +1 -0
  52. package/esm/mcp-server/tools/marketplaceGetIntegrationResource.js +28 -0
  53. package/esm/mcp-server/tools/marketplaceGetIntegrationResource.js.map +1 -0
  54. package/esm/mcp-server/tools/marketplaceGetIntegrationResources.d.ts +7 -0
  55. package/esm/mcp-server/tools/marketplaceGetIntegrationResources.d.ts.map +1 -0
  56. package/esm/mcp-server/tools/marketplaceGetIntegrationResources.js +28 -0
  57. package/esm/mcp-server/tools/marketplaceGetIntegrationResources.js.map +1 -0
  58. package/esm/models/authuser.d.ts +5 -27
  59. package/esm/models/authuser.d.ts.map +1 -1
  60. package/esm/models/authuser.js +2 -9
  61. package/esm/models/authuser.js.map +1 -1
  62. package/esm/models/canceldeploymentop.d.ts +335 -6
  63. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  64. package/esm/models/canceldeploymentop.js +274 -2
  65. package/esm/models/canceldeploymentop.js.map +1 -1
  66. package/esm/models/createdeploymentop.d.ts +434 -97
  67. package/esm/models/createdeploymentop.d.ts.map +1 -1
  68. package/esm/models/createdeploymentop.js +362 -83
  69. package/esm/models/createdeploymentop.js.map +1 -1
  70. package/esm/models/createprojectop.d.ts +102 -25
  71. package/esm/models/createprojectop.d.ts.map +1 -1
  72. package/esm/models/createprojectop.js +80 -29
  73. package/esm/models/createprojectop.js.map +1 -1
  74. package/esm/models/createwebhookop.d.ts +6 -0
  75. package/esm/models/createwebhookop.d.ts.map +1 -1
  76. package/esm/models/createwebhookop.js +2 -0
  77. package/esm/models/createwebhookop.js.map +1 -1
  78. package/esm/models/deleteintegrationresourceop.d.ts +31 -0
  79. package/esm/models/deleteintegrationresourceop.d.ts.map +1 -0
  80. package/esm/models/deleteintegrationresourceop.js +33 -0
  81. package/esm/models/deleteintegrationresourceop.js.map +1 -0
  82. package/esm/models/getconfigurationop.d.ts +3 -3
  83. package/esm/models/getconfigurationop.js +1 -1
  84. package/esm/models/getconfigurationop.js.map +1 -1
  85. package/esm/models/getdeploymentop.d.ts +338 -9
  86. package/esm/models/getdeploymentop.d.ts.map +1 -1
  87. package/esm/models/getdeploymentop.js +276 -3
  88. package/esm/models/getdeploymentop.js.map +1 -1
  89. package/esm/models/getdeploymentsop.d.ts +8 -2
  90. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  91. package/esm/models/getdeploymentsop.js +3 -2
  92. package/esm/models/getdeploymentsop.js.map +1 -1
  93. package/esm/models/getedgeconfigbackupop.d.ts +15 -15
  94. package/esm/models/getedgeconfigbackupop.d.ts.map +1 -1
  95. package/esm/models/getedgeconfigbackupop.js +15 -15
  96. package/esm/models/getedgeconfigbackupop.js.map +1 -1
  97. package/esm/models/getintegrationresourceop.d.ts +293 -0
  98. package/esm/models/getintegrationresourceop.d.ts.map +1 -0
  99. package/esm/models/getintegrationresourceop.js +252 -0
  100. package/esm/models/getintegrationresourceop.js.map +1 -0
  101. package/esm/models/getintegrationresourcesop.d.ts +310 -0
  102. package/esm/models/getintegrationresourcesop.d.ts.map +1 -0
  103. package/esm/models/getintegrationresourcesop.js +275 -0
  104. package/esm/models/getintegrationresourcesop.js.map +1 -0
  105. package/esm/models/getprojectsop.d.ts +12 -2
  106. package/esm/models/getprojectsop.d.ts.map +1 -1
  107. package/esm/models/getprojectsop.js +4 -2
  108. package/esm/models/getprojectsop.js.map +1 -1
  109. package/esm/models/getrollingreleasebillingstatusop.d.ts +21 -13
  110. package/esm/models/getrollingreleasebillingstatusop.d.ts.map +1 -1
  111. package/esm/models/getrollingreleasebillingstatusop.js +17 -9
  112. package/esm/models/getrollingreleasebillingstatusop.js.map +1 -1
  113. package/esm/models/getteamaccessrequestop.d.ts +3 -3
  114. package/esm/models/getteamaccessrequestop.js +1 -1
  115. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -3
  116. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +1 -1
  117. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  118. package/esm/models/getwebhookop.d.ts +3 -0
  119. package/esm/models/getwebhookop.d.ts.map +1 -1
  120. package/esm/models/getwebhookop.js +1 -0
  121. package/esm/models/getwebhookop.js.map +1 -1
  122. package/esm/models/getwebhooksop.d.ts +9 -0
  123. package/esm/models/getwebhooksop.d.ts.map +1 -1
  124. package/esm/models/getwebhooksop.js +3 -0
  125. package/esm/models/getwebhooksop.js.map +1 -1
  126. package/esm/models/importresourceop.d.ts +15 -15
  127. package/esm/models/importresourceop.d.ts.map +1 -1
  128. package/esm/models/importresourceop.js +17 -15
  129. package/esm/models/importresourceop.js.map +1 -1
  130. package/esm/models/requestaccesstoteamop.d.ts +3 -3
  131. package/esm/models/requestaccesstoteamop.js +1 -1
  132. package/esm/models/sdkerror.d.ts.map +1 -1
  133. package/esm/models/sdkerror.js +8 -2
  134. package/esm/models/sdkerror.js.map +1 -1
  135. package/esm/models/team.d.ts +8 -3
  136. package/esm/models/team.d.ts.map +1 -1
  137. package/esm/models/team.js +3 -1
  138. package/esm/models/team.js.map +1 -1
  139. package/esm/models/teamlimited.d.ts +3 -3
  140. package/esm/models/teamlimited.js +1 -1
  141. package/esm/models/updateprojectdatacacheop.d.ts +12 -2
  142. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  143. package/esm/models/updateprojectdatacacheop.js +4 -2
  144. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  145. package/esm/models/updateprojectop.d.ts +24 -2
  146. package/esm/models/updateprojectop.d.ts.map +1 -1
  147. package/esm/models/updateprojectop.js +8 -2
  148. package/esm/models/updateprojectop.js.map +1 -1
  149. package/esm/models/updateresourcesecretsop.d.ts +15 -15
  150. package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
  151. package/esm/models/updateresourcesecretsop.js +15 -17
  152. package/esm/models/updateresourcesecretsop.js.map +1 -1
  153. package/esm/models/userevent.d.ts +1622 -1824
  154. package/esm/models/userevent.d.ts.map +1 -1
  155. package/esm/models/userevent.js +2049 -2225
  156. package/esm/models/userevent.js.map +1 -1
  157. package/esm/models/vercelbadrequesterror.d.ts.map +1 -1
  158. package/esm/models/vercelbadrequesterror.js +2 -3
  159. package/esm/models/vercelbadrequesterror.js.map +1 -1
  160. package/esm/models/vercelforbiddenerror.d.ts.map +1 -1
  161. package/esm/models/vercelforbiddenerror.js +2 -3
  162. package/esm/models/vercelforbiddenerror.js.map +1 -1
  163. package/esm/models/vercelnotfounderror.d.ts.map +1 -1
  164. package/esm/models/vercelnotfounderror.js +2 -3
  165. package/esm/models/vercelnotfounderror.js.map +1 -1
  166. package/esm/models/vercelratelimiterror.d.ts.map +1 -1
  167. package/esm/models/vercelratelimiterror.js +2 -3
  168. package/esm/models/vercelratelimiterror.js.map +1 -1
  169. package/esm/sdk/logdrains.d.ts +0 -8
  170. package/esm/sdk/logdrains.d.ts.map +1 -1
  171. package/esm/sdk/logdrains.js +0 -10
  172. package/esm/sdk/logdrains.js.map +1 -1
  173. package/esm/sdk/marketplace.d.ts +31 -7
  174. package/esm/sdk/marketplace.d.ts.map +1 -1
  175. package/esm/sdk/marketplace.js +39 -9
  176. package/esm/sdk/marketplace.js.map +1 -1
  177. package/esm/sdk/sdk.d.ts +2 -2
  178. package/esm/sdk/sdk.d.ts.map +1 -1
  179. package/esm/sdk/sdk.js +3 -3
  180. package/esm/sdk/sdk.js.map +1 -1
  181. package/examples/README.md +26 -0
  182. package/examples/package-lock.json +628 -0
  183. package/examples/package.json +18 -0
  184. package/examples/projectsUpdateProject.example.ts +31 -0
  185. package/jsr.json +1 -1
  186. package/package.json +4 -4
  187. package/src/__tests__/deployments.test.ts +2 -1
  188. package/src/__tests__/domains.test.ts +2 -1
  189. package/src/__tests__/logdrains.test.ts +5 -15
  190. package/src/__tests__/marketplace.test.ts +47 -0
  191. package/src/__tests__/projects.test.ts +13 -15
  192. package/src/__tests__/rollingrelease.test.ts +5 -2
  193. package/src/funcs/deploymentsCreateDeployment.ts +2 -2
  194. package/src/funcs/{logDrainsDeleteConfigurableLogDrain.ts → marketplaceDeleteIntegrationResource.ts} +20 -19
  195. package/src/funcs/marketplaceGetIntegrationResource.ts +206 -0
  196. package/src/funcs/marketplaceGetIntegrationResources.ts +202 -0
  197. package/src/lib/config.ts +3 -3
  198. package/src/mcp-server/cli/start/command.ts +0 -13
  199. package/src/mcp-server/cli/start/impl.ts +0 -4
  200. package/src/mcp-server/mcp-server.ts +1 -1
  201. package/src/mcp-server/server.ts +11 -7
  202. package/src/mcp-server/tools/marketplaceDeleteIntegrationResource.ts +37 -0
  203. package/src/mcp-server/tools/marketplaceGetIntegrationResource.ts +39 -0
  204. package/src/mcp-server/tools/marketplaceGetIntegrationResources.ts +39 -0
  205. package/src/models/authuser.ts +7 -10
  206. package/src/models/canceldeploymentop.ts +607 -2
  207. package/src/models/createdeploymentop.ts +855 -289
  208. package/src/models/createprojectop.ts +159 -46
  209. package/src/models/createwebhookop.ts +2 -0
  210. package/src/models/deleteintegrationresourceop.ts +72 -0
  211. package/src/models/getconfigurationop.ts +1 -1
  212. package/src/models/getdeploymentop.ts +620 -3
  213. package/src/models/getdeploymentsop.ts +8 -4
  214. package/src/models/getedgeconfigbackupop.ts +41 -24
  215. package/src/models/getintegrationresourceop.ts +561 -0
  216. package/src/models/getintegrationresourcesop.ts +642 -0
  217. package/src/models/getprojectsop.ts +4 -4
  218. package/src/models/getrollingreleasebillingstatusop.ts +31 -15
  219. package/src/models/getteamaccessrequestop.ts +1 -1
  220. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
  221. package/src/models/getwebhookop.ts +1 -0
  222. package/src/models/getwebhooksop.ts +3 -0
  223. package/src/models/importresourceop.ts +27 -35
  224. package/src/models/requestaccesstoteamop.ts +1 -1
  225. package/src/models/sdkerror.ts +8 -2
  226. package/src/models/team.ts +8 -1
  227. package/src/models/teamlimited.ts +1 -1
  228. package/src/models/updateprojectdatacacheop.ts +4 -4
  229. package/src/models/updateprojectop.ts +8 -4
  230. package/src/models/updateresourcesecretsop.ts +49 -33
  231. package/src/models/userevent.ts +4781 -5205
  232. package/src/models/vercelbadrequesterror.ts +2 -3
  233. package/src/models/vercelforbiddenerror.ts +2 -3
  234. package/src/models/vercelnotfounderror.ts +2 -3
  235. package/src/models/vercelratelimiterror.ts +2 -3
  236. package/src/sdk/logdrains.ts +0 -19
  237. package/src/sdk/marketplace.ts +80 -17
  238. package/src/sdk/sdk.ts +5 -5
  239. package/vercel-spec.json +1641 -828
  240. package/esm/funcs/logDrainsDeleteConfigurableLogDrain.d.ts.map +0 -1
  241. package/esm/funcs/logDrainsDeleteConfigurableLogDrain.js.map +0 -1
  242. package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.d.ts +0 -7
  243. package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.d.ts.map +0 -1
  244. package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.js +0 -27
  245. package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.js.map +0 -1
  246. package/esm/models/deleteconfigurablelogdrainop.d.ts +0 -39
  247. package/esm/models/deleteconfigurablelogdrainop.d.ts.map +0 -1
  248. package/esm/models/deleteconfigurablelogdrainop.js +0 -35
  249. package/esm/models/deleteconfigurablelogdrainop.js.map +0 -1
  250. package/src/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.ts +0 -37
  251. package/src/models/deleteconfigurablelogdrainop.ts +0 -83
@@ -103,6 +103,10 @@ export type GitMetadata = {
103
103
  * The name of the author of the commit
104
104
  */
105
105
  commitAuthorName?: string | undefined;
106
+ /**
107
+ * The email of the author of the commit
108
+ */
109
+ commitAuthorEmail?: string | undefined;
106
110
  /**
107
111
  * The commit message
108
112
  */
@@ -255,6 +259,7 @@ export const Framework = {
255
259
  SanityV3: "sanity-v3",
256
260
  Sanity: "sanity",
257
261
  Storybook: "storybook",
262
+ Nitro: "nitro",
258
263
  } as const;
259
264
  /**
260
265
  * The framework that is being used for this project. When `null` is used no framework is selected
@@ -464,6 +469,7 @@ export const CreateDeploymentFramework = {
464
469
  SanityV3: "sanity-v3",
465
470
  Sanity: "sanity",
466
471
  Storybook: "storybook",
472
+ Nitro: "nitro",
467
473
  } as const;
468
474
  export type CreateDeploymentFramework = ClosedEnum<
469
475
  typeof CreateDeploymentFramework
@@ -498,10 +504,10 @@ export type CreateDeploymentProjectSettings = {
498
504
  };
499
505
 
500
506
  export const CreateDeploymentDeploymentsStatus = {
501
- Error: "error",
502
507
  Skipped: "skipped",
503
508
  Pending: "pending",
504
509
  Ready: "ready",
510
+ Error: "error",
505
511
  Timeout: "timeout",
506
512
  } as const;
507
513
  export type CreateDeploymentDeploymentsStatus = ClosedEnum<
@@ -658,9 +664,9 @@ export type CustomEnvironmentType = ClosedEnum<typeof CustomEnvironmentType>;
658
664
  * The type of matching to perform
659
665
  */
660
666
  export const CreateDeploymentCustomEnvironmentType = {
667
+ EndsWith: "endsWith",
661
668
  StartsWith: "startsWith",
662
669
  Equals: "equals",
663
- EndsWith: "endsWith",
664
670
  } as const;
665
671
  /**
666
672
  * The type of matching to perform
@@ -1136,6 +1142,49 @@ export const Architecture = {
1136
1142
  } as const;
1137
1143
  export type Architecture = ClosedEnum<typeof Architecture>;
1138
1144
 
1145
+ /**
1146
+ * Event type - must be "queue/v1beta" (REQUIRED)
1147
+ */
1148
+ export const CreateDeploymentDeploymentsType = {
1149
+ QueueV1beta: "queue/v1beta",
1150
+ } as const;
1151
+ /**
1152
+ * Event type - must be "queue/v1beta" (REQUIRED)
1153
+ */
1154
+ export type CreateDeploymentDeploymentsType = ClosedEnum<
1155
+ typeof CreateDeploymentDeploymentsType
1156
+ >;
1157
+
1158
+ /**
1159
+ * Queue trigger event for Vercel's queue system. Handles "queue/v1beta" events with queue-specific configuration.
1160
+ */
1161
+ export type ExperimentalTriggers = {
1162
+ /**
1163
+ * Event type - must be "queue/v1beta" (REQUIRED)
1164
+ */
1165
+ type: CreateDeploymentDeploymentsType;
1166
+ /**
1167
+ * Name of the queue topic to consume from (REQUIRED)
1168
+ */
1169
+ topic: string;
1170
+ /**
1171
+ * Name of the consumer group for this trigger (REQUIRED)
1172
+ */
1173
+ consumer: string;
1174
+ /**
1175
+ * Maximum number of delivery attempts for message processing (OPTIONAL) This represents the total number of times a message can be delivered, not the number of retries. Must be at least 1 if specified. Behavior when not specified depends on the server's default configuration.
1176
+ */
1177
+ maxDeliveries?: number | undefined;
1178
+ /**
1179
+ * Delay in seconds before retrying failed executions (OPTIONAL) Behavior when not specified depends on the server's default configuration.
1180
+ */
1181
+ retryAfterSeconds?: number | undefined;
1182
+ /**
1183
+ * Initial delay in seconds before first execution attempt (OPTIONAL) Must be 0 or greater. Use 0 for no initial delay. Behavior when not specified depends on the server's default configuration.
1184
+ */
1185
+ initialDelaySeconds?: number | undefined;
1186
+ };
1187
+
1139
1188
  export type Functions = {
1140
1189
  architecture?: Architecture | undefined;
1141
1190
  memory?: number | undefined;
@@ -1143,6 +1192,7 @@ export type Functions = {
1143
1192
  runtime?: string | undefined;
1144
1193
  includeFiles?: string | undefined;
1145
1194
  excludeFiles?: string | undefined;
1195
+ experimentalTriggers?: Array<ExperimentalTriggers> | undefined;
1146
1196
  };
1147
1197
 
1148
1198
  export type Routes3 = {
@@ -1308,6 +1358,52 @@ export type RoutesMitigate = {
1308
1358
  action: RoutesAction;
1309
1359
  };
1310
1360
 
1361
+ export const RoutesType = {
1362
+ RequestHeaders: "request.headers",
1363
+ RequestQuery: "request.query",
1364
+ ResponseHeaders: "response.headers",
1365
+ } as const;
1366
+ export type RoutesType = ClosedEnum<typeof RoutesType>;
1367
+
1368
+ export const CreateDeploymentRoutesOp = {
1369
+ Append: "append",
1370
+ Set: "set",
1371
+ Delete: "delete",
1372
+ } as const;
1373
+ export type CreateDeploymentRoutesOp = ClosedEnum<
1374
+ typeof CreateDeploymentRoutesOp
1375
+ >;
1376
+
1377
+ export type KeyEq = string | number;
1378
+
1379
+ export type Key2 = {
1380
+ eq?: string | number | undefined;
1381
+ neq?: string | undefined;
1382
+ inc?: Array<string> | undefined;
1383
+ ninc?: Array<string> | undefined;
1384
+ pre?: string | undefined;
1385
+ suf?: string | undefined;
1386
+ gt?: number | undefined;
1387
+ gte?: number | undefined;
1388
+ lt?: number | undefined;
1389
+ lte?: number | undefined;
1390
+ };
1391
+
1392
+ export type Key = Key2 | string;
1393
+
1394
+ export type RoutesTarget = {
1395
+ key: Key2 | string;
1396
+ };
1397
+
1398
+ export type Args = string | Array<string>;
1399
+
1400
+ export type Transforms = {
1401
+ type: RoutesType;
1402
+ op: CreateDeploymentRoutesOp;
1403
+ target: RoutesTarget;
1404
+ args?: string | Array<string> | undefined;
1405
+ };
1406
+
1311
1407
  export type Locale = {
1312
1408
  redirect?: { [k: string]: string } | undefined;
1313
1409
  cookie?: string | undefined;
@@ -1327,6 +1423,7 @@ export type Routes1 = {
1327
1423
  has?: Array<Has1 | Has2> | undefined;
1328
1424
  missing?: Array<Missing1 | Missing2> | undefined;
1329
1425
  mitigate?: RoutesMitigate | undefined;
1426
+ transforms?: Array<Transforms> | undefined;
1330
1427
  locale?: Locale | undefined;
1331
1428
  /**
1332
1429
  * A middleware key within the `output` key under the build result. Overrides a `middleware` definition.
@@ -1349,6 +1446,29 @@ export type CreateDeploymentCrons = {
1349
1446
  path: string;
1350
1447
  };
1351
1448
 
1449
+ export const CreateDeploymentState = {
1450
+ Succeeded: "succeeded",
1451
+ Failed: "failed",
1452
+ Pending: "pending",
1453
+ } as const;
1454
+ export type CreateDeploymentState = ClosedEnum<typeof CreateDeploymentState>;
1455
+
1456
+ /**
1457
+ * Condensed check data. Retrieve individual check and check run data using api-checks v2 routes.
1458
+ */
1459
+ export type DeploymentAlias = {
1460
+ state: CreateDeploymentState;
1461
+ startedAt: number;
1462
+ completedAt?: number | undefined;
1463
+ };
1464
+
1465
+ export type CreateDeploymentChecks = {
1466
+ /**
1467
+ * Condensed check data. Retrieve individual check and check run data using api-checks v2 routes.
1468
+ */
1469
+ deploymentAlias: DeploymentAlias;
1470
+ };
1471
+
1352
1472
  /**
1353
1473
  * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment.
1354
1474
  */
@@ -1385,6 +1505,14 @@ export type CreateDeploymentMicrofrontends2 = {
1385
1505
  * The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together.
1386
1506
  */
1387
1507
  groupIds: Array<string>;
1508
+ /**
1509
+ * Whether the MicrofrontendsAlias team flag should be considered enabled for this deployment or not. This is used to ensure that we don't accidentally switch an existing branch alias to a microfrontends branch alias.
1510
+ */
1511
+ microfrontendsAliasEnabled?: boolean | undefined;
1512
+ /**
1513
+ * Whether this deployment, if a preview deployment on the production branch, should get the -env-preview alias instead of a normal branch alias. This is used to always generate a microfrontends fallback on the preview branch.
1514
+ */
1515
+ previewEnvAliasEnabled?: boolean | undefined;
1388
1516
  };
1389
1517
 
1390
1518
  export type CreateDeploymentMicrofrontends1 = {
@@ -1404,35 +1532,20 @@ export type CreateDeploymentMicrofrontends1 = {
1404
1532
  * The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together.
1405
1533
  */
1406
1534
  groupIds: Array<string>;
1535
+ /**
1536
+ * Whether the MicrofrontendsAlias team flag should be considered enabled for this deployment or not. This is used to ensure that we don't accidentally switch an existing branch alias to a microfrontends branch alias.
1537
+ */
1538
+ microfrontendsAliasEnabled?: boolean | undefined;
1539
+ /**
1540
+ * Whether this deployment, if a preview deployment on the production branch, should get the -env-preview alias instead of a normal branch alias. This is used to always generate a microfrontends fallback on the preview branch.
1541
+ */
1542
+ previewEnvAliasEnabled?: boolean | undefined;
1407
1543
  };
1408
1544
 
1409
1545
  export type CreateDeploymentMicrofrontends =
1410
1546
  | CreateDeploymentMicrofrontends2
1411
1547
  | CreateDeploymentMicrofrontends1;
1412
1548
 
1413
- export const CreateDeploymentState = {
1414
- Succeeded: "succeeded",
1415
- Failed: "failed",
1416
- Pending: "pending",
1417
- } as const;
1418
- export type CreateDeploymentState = ClosedEnum<typeof CreateDeploymentState>;
1419
-
1420
- /**
1421
- * Condensed check data. Retrieve individual check and check run data using api-checks v2 routes.
1422
- */
1423
- export type DeploymentAlias = {
1424
- state: CreateDeploymentState;
1425
- startedAt: number;
1426
- completedAt?: number | undefined;
1427
- };
1428
-
1429
- export type CreateDeploymentChecks = {
1430
- /**
1431
- * Condensed check data. Retrieve individual check and check run data using api-checks v2 routes.
1432
- */
1433
- deploymentAlias: DeploymentAlias;
1434
- };
1435
-
1436
1549
  export const CreateDeploymentGitRepoDeploymentsType = {
1437
1550
  Bitbucket: "bitbucket",
1438
1551
  } as const;
@@ -1605,12 +1718,12 @@ export type CreateDeploymentResponseBody = {
1605
1718
  readyState: ReadyState;
1606
1719
  source?: CreateDeploymentSource | undefined;
1607
1720
  target?: CreateDeploymentTarget | null | undefined;
1721
+ errorMessage?: string | null | undefined;
1608
1722
  /**
1609
1723
  * Since November 2023 this field defines a set of regions that we will deploy the lambda to passively Lambdas will be deployed to these regions but only invoked if all of the primary `regions` are marked as out of service
1610
1724
  */
1611
1725
  passiveRegions?: Array<string> | undefined;
1612
1726
  regions: Array<string>;
1613
- errorMessage?: string | null | undefined;
1614
1727
  aliasWarning?: AliasWarning | null | undefined;
1615
1728
  aliasError?: AliasError | null | undefined;
1616
1729
  aliasFinal?: string | null | undefined;
@@ -1646,11 +1759,11 @@ export type CreateDeploymentResponseBody = {
1646
1759
  functions?: { [k: string]: Functions } | null | undefined;
1647
1760
  routes: Array<Routes3 | Routes1 | Routes2> | null;
1648
1761
  crons?: Array<CreateDeploymentCrons> | undefined;
1762
+ checks?: CreateDeploymentChecks | undefined;
1649
1763
  microfrontends?:
1650
1764
  | CreateDeploymentMicrofrontends2
1651
1765
  | CreateDeploymentMicrofrontends1
1652
1766
  | undefined;
1653
- checks?: CreateDeploymentChecks | undefined;
1654
1767
  connectBuildsEnabled?: boolean | undefined;
1655
1768
  connectConfigurationId?: string | undefined;
1656
1769
  createdIn: string;
@@ -1888,6 +2001,7 @@ export const GitMetadata$inboundSchema: z.ZodType<
1888
2001
  > = z.object({
1889
2002
  remoteUrl: z.string().optional(),
1890
2003
  commitAuthorName: z.string().optional(),
2004
+ commitAuthorEmail: z.string().optional(),
1891
2005
  commitMessage: z.string().optional(),
1892
2006
  commitRef: z.string().optional(),
1893
2007
  commitSha: z.string().optional(),
@@ -1898,6 +2012,7 @@ export const GitMetadata$inboundSchema: z.ZodType<
1898
2012
  export type GitMetadata$Outbound = {
1899
2013
  remoteUrl?: string | undefined;
1900
2014
  commitAuthorName?: string | undefined;
2015
+ commitAuthorEmail?: string | undefined;
1901
2016
  commitMessage?: string | undefined;
1902
2017
  commitRef?: string | undefined;
1903
2018
  commitSha?: string | undefined;
@@ -1912,6 +2027,7 @@ export const GitMetadata$outboundSchema: z.ZodType<
1912
2027
  > = z.object({
1913
2028
  remoteUrl: z.string().optional(),
1914
2029
  commitAuthorName: z.string().optional(),
2030
+ commitAuthorEmail: z.string().optional(),
1915
2031
  commitMessage: z.string().optional(),
1916
2032
  commitRef: z.string().optional(),
1917
2033
  commitSha: z.string().optional(),
@@ -6237,6 +6353,96 @@ export namespace Architecture$ {
6237
6353
  export const outboundSchema = Architecture$outboundSchema;
6238
6354
  }
6239
6355
 
6356
+ /** @internal */
6357
+ export const CreateDeploymentDeploymentsType$inboundSchema: z.ZodNativeEnum<
6358
+ typeof CreateDeploymentDeploymentsType
6359
+ > = z.nativeEnum(CreateDeploymentDeploymentsType);
6360
+
6361
+ /** @internal */
6362
+ export const CreateDeploymentDeploymentsType$outboundSchema: z.ZodNativeEnum<
6363
+ typeof CreateDeploymentDeploymentsType
6364
+ > = CreateDeploymentDeploymentsType$inboundSchema;
6365
+
6366
+ /**
6367
+ * @internal
6368
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6369
+ */
6370
+ export namespace CreateDeploymentDeploymentsType$ {
6371
+ /** @deprecated use `CreateDeploymentDeploymentsType$inboundSchema` instead. */
6372
+ export const inboundSchema = CreateDeploymentDeploymentsType$inboundSchema;
6373
+ /** @deprecated use `CreateDeploymentDeploymentsType$outboundSchema` instead. */
6374
+ export const outboundSchema = CreateDeploymentDeploymentsType$outboundSchema;
6375
+ }
6376
+
6377
+ /** @internal */
6378
+ export const ExperimentalTriggers$inboundSchema: z.ZodType<
6379
+ ExperimentalTriggers,
6380
+ z.ZodTypeDef,
6381
+ unknown
6382
+ > = z.object({
6383
+ type: CreateDeploymentDeploymentsType$inboundSchema,
6384
+ topic: z.string(),
6385
+ consumer: z.string(),
6386
+ maxDeliveries: z.number().optional(),
6387
+ retryAfterSeconds: z.number().optional(),
6388
+ initialDelaySeconds: z.number().optional(),
6389
+ });
6390
+
6391
+ /** @internal */
6392
+ export type ExperimentalTriggers$Outbound = {
6393
+ type: string;
6394
+ topic: string;
6395
+ consumer: string;
6396
+ maxDeliveries?: number | undefined;
6397
+ retryAfterSeconds?: number | undefined;
6398
+ initialDelaySeconds?: number | undefined;
6399
+ };
6400
+
6401
+ /** @internal */
6402
+ export const ExperimentalTriggers$outboundSchema: z.ZodType<
6403
+ ExperimentalTriggers$Outbound,
6404
+ z.ZodTypeDef,
6405
+ ExperimentalTriggers
6406
+ > = z.object({
6407
+ type: CreateDeploymentDeploymentsType$outboundSchema,
6408
+ topic: z.string(),
6409
+ consumer: z.string(),
6410
+ maxDeliveries: z.number().optional(),
6411
+ retryAfterSeconds: z.number().optional(),
6412
+ initialDelaySeconds: z.number().optional(),
6413
+ });
6414
+
6415
+ /**
6416
+ * @internal
6417
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6418
+ */
6419
+ export namespace ExperimentalTriggers$ {
6420
+ /** @deprecated use `ExperimentalTriggers$inboundSchema` instead. */
6421
+ export const inboundSchema = ExperimentalTriggers$inboundSchema;
6422
+ /** @deprecated use `ExperimentalTriggers$outboundSchema` instead. */
6423
+ export const outboundSchema = ExperimentalTriggers$outboundSchema;
6424
+ /** @deprecated use `ExperimentalTriggers$Outbound` instead. */
6425
+ export type Outbound = ExperimentalTriggers$Outbound;
6426
+ }
6427
+
6428
+ export function experimentalTriggersToJSON(
6429
+ experimentalTriggers: ExperimentalTriggers,
6430
+ ): string {
6431
+ return JSON.stringify(
6432
+ ExperimentalTriggers$outboundSchema.parse(experimentalTriggers),
6433
+ );
6434
+ }
6435
+
6436
+ export function experimentalTriggersFromJSON(
6437
+ jsonString: string,
6438
+ ): SafeParseResult<ExperimentalTriggers, SDKValidationError> {
6439
+ return safeParse(
6440
+ jsonString,
6441
+ (x) => ExperimentalTriggers$inboundSchema.parse(JSON.parse(x)),
6442
+ `Failed to parse 'ExperimentalTriggers' from JSON`,
6443
+ );
6444
+ }
6445
+
6240
6446
  /** @internal */
6241
6447
  export const Functions$inboundSchema: z.ZodType<
6242
6448
  Functions,
@@ -6249,6 +6455,9 @@ export const Functions$inboundSchema: z.ZodType<
6249
6455
  runtime: z.string().optional(),
6250
6456
  includeFiles: z.string().optional(),
6251
6457
  excludeFiles: z.string().optional(),
6458
+ experimentalTriggers: z.array(
6459
+ z.lazy(() => ExperimentalTriggers$inboundSchema),
6460
+ ).optional(),
6252
6461
  });
6253
6462
 
6254
6463
  /** @internal */
@@ -6259,6 +6468,7 @@ export type Functions$Outbound = {
6259
6468
  runtime?: string | undefined;
6260
6469
  includeFiles?: string | undefined;
6261
6470
  excludeFiles?: string | undefined;
6471
+ experimentalTriggers?: Array<ExperimentalTriggers$Outbound> | undefined;
6262
6472
  };
6263
6473
 
6264
6474
  /** @internal */
@@ -6273,6 +6483,9 @@ export const Functions$outboundSchema: z.ZodType<
6273
6483
  runtime: z.string().optional(),
6274
6484
  includeFiles: z.string().optional(),
6275
6485
  excludeFiles: z.string().optional(),
6486
+ experimentalTriggers: z.array(
6487
+ z.lazy(() => ExperimentalTriggers$outboundSchema),
6488
+ ).optional(),
6276
6489
  });
6277
6490
 
6278
6491
  /**
@@ -7668,102 +7881,442 @@ export function routesMitigateFromJSON(
7668
7881
  }
7669
7882
 
7670
7883
  /** @internal */
7671
- export const Locale$inboundSchema: z.ZodType<Locale, z.ZodTypeDef, unknown> = z
7672
- .object({
7673
- redirect: z.record(z.string()).optional(),
7674
- cookie: z.string().optional(),
7675
- });
7884
+ export const RoutesType$inboundSchema: z.ZodNativeEnum<typeof RoutesType> = z
7885
+ .nativeEnum(RoutesType);
7676
7886
 
7677
7887
  /** @internal */
7678
- export type Locale$Outbound = {
7679
- redirect?: { [k: string]: string } | undefined;
7680
- cookie?: string | undefined;
7681
- };
7888
+ export const RoutesType$outboundSchema: z.ZodNativeEnum<typeof RoutesType> =
7889
+ RoutesType$inboundSchema;
7890
+
7891
+ /**
7892
+ * @internal
7893
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7894
+ */
7895
+ export namespace RoutesType$ {
7896
+ /** @deprecated use `RoutesType$inboundSchema` instead. */
7897
+ export const inboundSchema = RoutesType$inboundSchema;
7898
+ /** @deprecated use `RoutesType$outboundSchema` instead. */
7899
+ export const outboundSchema = RoutesType$outboundSchema;
7900
+ }
7682
7901
 
7683
7902
  /** @internal */
7684
- export const Locale$outboundSchema: z.ZodType<
7685
- Locale$Outbound,
7903
+ export const CreateDeploymentRoutesOp$inboundSchema: z.ZodNativeEnum<
7904
+ typeof CreateDeploymentRoutesOp
7905
+ > = z.nativeEnum(CreateDeploymentRoutesOp);
7906
+
7907
+ /** @internal */
7908
+ export const CreateDeploymentRoutesOp$outboundSchema: z.ZodNativeEnum<
7909
+ typeof CreateDeploymentRoutesOp
7910
+ > = CreateDeploymentRoutesOp$inboundSchema;
7911
+
7912
+ /**
7913
+ * @internal
7914
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7915
+ */
7916
+ export namespace CreateDeploymentRoutesOp$ {
7917
+ /** @deprecated use `CreateDeploymentRoutesOp$inboundSchema` instead. */
7918
+ export const inboundSchema = CreateDeploymentRoutesOp$inboundSchema;
7919
+ /** @deprecated use `CreateDeploymentRoutesOp$outboundSchema` instead. */
7920
+ export const outboundSchema = CreateDeploymentRoutesOp$outboundSchema;
7921
+ }
7922
+
7923
+ /** @internal */
7924
+ export const KeyEq$inboundSchema: z.ZodType<KeyEq, z.ZodTypeDef, unknown> = z
7925
+ .union([z.string(), z.number()]);
7926
+
7927
+ /** @internal */
7928
+ export type KeyEq$Outbound = string | number;
7929
+
7930
+ /** @internal */
7931
+ export const KeyEq$outboundSchema: z.ZodType<
7932
+ KeyEq$Outbound,
7686
7933
  z.ZodTypeDef,
7687
- Locale
7688
- > = z.object({
7689
- redirect: z.record(z.string()).optional(),
7690
- cookie: z.string().optional(),
7691
- });
7934
+ KeyEq
7935
+ > = z.union([z.string(), z.number()]);
7692
7936
 
7693
7937
  /**
7694
7938
  * @internal
7695
7939
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7696
7940
  */
7697
- export namespace Locale$ {
7698
- /** @deprecated use `Locale$inboundSchema` instead. */
7699
- export const inboundSchema = Locale$inboundSchema;
7700
- /** @deprecated use `Locale$outboundSchema` instead. */
7701
- export const outboundSchema = Locale$outboundSchema;
7702
- /** @deprecated use `Locale$Outbound` instead. */
7703
- export type Outbound = Locale$Outbound;
7941
+ export namespace KeyEq$ {
7942
+ /** @deprecated use `KeyEq$inboundSchema` instead. */
7943
+ export const inboundSchema = KeyEq$inboundSchema;
7944
+ /** @deprecated use `KeyEq$outboundSchema` instead. */
7945
+ export const outboundSchema = KeyEq$outboundSchema;
7946
+ /** @deprecated use `KeyEq$Outbound` instead. */
7947
+ export type Outbound = KeyEq$Outbound;
7704
7948
  }
7705
7949
 
7706
- export function localeToJSON(locale: Locale): string {
7707
- return JSON.stringify(Locale$outboundSchema.parse(locale));
7950
+ export function keyEqToJSON(keyEq: KeyEq): string {
7951
+ return JSON.stringify(KeyEq$outboundSchema.parse(keyEq));
7708
7952
  }
7709
7953
 
7710
- export function localeFromJSON(
7954
+ export function keyEqFromJSON(
7711
7955
  jsonString: string,
7712
- ): SafeParseResult<Locale, SDKValidationError> {
7956
+ ): SafeParseResult<KeyEq, SDKValidationError> {
7713
7957
  return safeParse(
7714
7958
  jsonString,
7715
- (x) => Locale$inboundSchema.parse(JSON.parse(x)),
7716
- `Failed to parse 'Locale' from JSON`,
7959
+ (x) => KeyEq$inboundSchema.parse(JSON.parse(x)),
7960
+ `Failed to parse 'KeyEq' from JSON`,
7717
7961
  );
7718
7962
  }
7719
7963
 
7720
7964
  /** @internal */
7721
- export const Routes1$inboundSchema: z.ZodType<Routes1, z.ZodTypeDef, unknown> =
7722
- z.object({
7723
- src: z.string(),
7724
- dest: z.string().optional(),
7725
- headers: z.record(z.string()).optional(),
7726
- methods: z.array(z.string()).optional(),
7727
- continue: z.boolean().optional(),
7728
- override: z.boolean().optional(),
7729
- caseSensitive: z.boolean().optional(),
7730
- check: z.boolean().optional(),
7731
- important: z.boolean().optional(),
7732
- status: z.number().optional(),
7733
- has: z.array(
7734
- z.union([
7735
- z.lazy(() => Has1$inboundSchema),
7736
- z.lazy(() => Has2$inboundSchema),
7737
- ]),
7738
- ).optional(),
7739
- missing: z.array(
7740
- z.union([
7741
- z.lazy(() => Missing1$inboundSchema),
7742
- z.lazy(() => Missing2$inboundSchema),
7743
- ]),
7744
- ).optional(),
7745
- mitigate: z.lazy(() => RoutesMitigate$inboundSchema).optional(),
7746
- locale: z.lazy(() => Locale$inboundSchema).optional(),
7747
- middlewarePath: z.string().optional(),
7748
- middlewareRawSrc: z.array(z.string()).optional(),
7749
- middleware: z.number().optional(),
7965
+ export const Key2$inboundSchema: z.ZodType<Key2, z.ZodTypeDef, unknown> = z
7966
+ .object({
7967
+ eq: z.union([z.string(), z.number()]).optional(),
7968
+ neq: z.string().optional(),
7969
+ inc: z.array(z.string()).optional(),
7970
+ ninc: z.array(z.string()).optional(),
7971
+ pre: z.string().optional(),
7972
+ suf: z.string().optional(),
7973
+ gt: z.number().optional(),
7974
+ gte: z.number().optional(),
7975
+ lt: z.number().optional(),
7976
+ lte: z.number().optional(),
7750
7977
  });
7751
7978
 
7752
7979
  /** @internal */
7753
- export type Routes1$Outbound = {
7754
- src: string;
7755
- dest?: string | undefined;
7756
- headers?: { [k: string]: string } | undefined;
7757
- methods?: Array<string> | undefined;
7758
- continue?: boolean | undefined;
7759
- override?: boolean | undefined;
7760
- caseSensitive?: boolean | undefined;
7761
- check?: boolean | undefined;
7762
- important?: boolean | undefined;
7980
+ export type Key2$Outbound = {
7981
+ eq?: string | number | undefined;
7982
+ neq?: string | undefined;
7983
+ inc?: Array<string> | undefined;
7984
+ ninc?: Array<string> | undefined;
7985
+ pre?: string | undefined;
7986
+ suf?: string | undefined;
7987
+ gt?: number | undefined;
7988
+ gte?: number | undefined;
7989
+ lt?: number | undefined;
7990
+ lte?: number | undefined;
7991
+ };
7992
+
7993
+ /** @internal */
7994
+ export const Key2$outboundSchema: z.ZodType<Key2$Outbound, z.ZodTypeDef, Key2> =
7995
+ z.object({
7996
+ eq: z.union([z.string(), z.number()]).optional(),
7997
+ neq: z.string().optional(),
7998
+ inc: z.array(z.string()).optional(),
7999
+ ninc: z.array(z.string()).optional(),
8000
+ pre: z.string().optional(),
8001
+ suf: z.string().optional(),
8002
+ gt: z.number().optional(),
8003
+ gte: z.number().optional(),
8004
+ lt: z.number().optional(),
8005
+ lte: z.number().optional(),
8006
+ });
8007
+
8008
+ /**
8009
+ * @internal
8010
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8011
+ */
8012
+ export namespace Key2$ {
8013
+ /** @deprecated use `Key2$inboundSchema` instead. */
8014
+ export const inboundSchema = Key2$inboundSchema;
8015
+ /** @deprecated use `Key2$outboundSchema` instead. */
8016
+ export const outboundSchema = Key2$outboundSchema;
8017
+ /** @deprecated use `Key2$Outbound` instead. */
8018
+ export type Outbound = Key2$Outbound;
8019
+ }
8020
+
8021
+ export function key2ToJSON(key2: Key2): string {
8022
+ return JSON.stringify(Key2$outboundSchema.parse(key2));
8023
+ }
8024
+
8025
+ export function key2FromJSON(
8026
+ jsonString: string,
8027
+ ): SafeParseResult<Key2, SDKValidationError> {
8028
+ return safeParse(
8029
+ jsonString,
8030
+ (x) => Key2$inboundSchema.parse(JSON.parse(x)),
8031
+ `Failed to parse 'Key2' from JSON`,
8032
+ );
8033
+ }
8034
+
8035
+ /** @internal */
8036
+ export const Key$inboundSchema: z.ZodType<Key, z.ZodTypeDef, unknown> = z.union(
8037
+ [z.lazy(() => Key2$inboundSchema), z.string()],
8038
+ );
8039
+
8040
+ /** @internal */
8041
+ export type Key$Outbound = Key2$Outbound | string;
8042
+
8043
+ /** @internal */
8044
+ export const Key$outboundSchema: z.ZodType<Key$Outbound, z.ZodTypeDef, Key> = z
8045
+ .union([z.lazy(() => Key2$outboundSchema), z.string()]);
8046
+
8047
+ /**
8048
+ * @internal
8049
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8050
+ */
8051
+ export namespace Key$ {
8052
+ /** @deprecated use `Key$inboundSchema` instead. */
8053
+ export const inboundSchema = Key$inboundSchema;
8054
+ /** @deprecated use `Key$outboundSchema` instead. */
8055
+ export const outboundSchema = Key$outboundSchema;
8056
+ /** @deprecated use `Key$Outbound` instead. */
8057
+ export type Outbound = Key$Outbound;
8058
+ }
8059
+
8060
+ export function keyToJSON(key: Key): string {
8061
+ return JSON.stringify(Key$outboundSchema.parse(key));
8062
+ }
8063
+
8064
+ export function keyFromJSON(
8065
+ jsonString: string,
8066
+ ): SafeParseResult<Key, SDKValidationError> {
8067
+ return safeParse(
8068
+ jsonString,
8069
+ (x) => Key$inboundSchema.parse(JSON.parse(x)),
8070
+ `Failed to parse 'Key' from JSON`,
8071
+ );
8072
+ }
8073
+
8074
+ /** @internal */
8075
+ export const RoutesTarget$inboundSchema: z.ZodType<
8076
+ RoutesTarget,
8077
+ z.ZodTypeDef,
8078
+ unknown
8079
+ > = z.object({
8080
+ key: z.union([z.lazy(() => Key2$inboundSchema), z.string()]),
8081
+ });
8082
+
8083
+ /** @internal */
8084
+ export type RoutesTarget$Outbound = {
8085
+ key: Key2$Outbound | string;
8086
+ };
8087
+
8088
+ /** @internal */
8089
+ export const RoutesTarget$outboundSchema: z.ZodType<
8090
+ RoutesTarget$Outbound,
8091
+ z.ZodTypeDef,
8092
+ RoutesTarget
8093
+ > = z.object({
8094
+ key: z.union([z.lazy(() => Key2$outboundSchema), z.string()]),
8095
+ });
8096
+
8097
+ /**
8098
+ * @internal
8099
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8100
+ */
8101
+ export namespace RoutesTarget$ {
8102
+ /** @deprecated use `RoutesTarget$inboundSchema` instead. */
8103
+ export const inboundSchema = RoutesTarget$inboundSchema;
8104
+ /** @deprecated use `RoutesTarget$outboundSchema` instead. */
8105
+ export const outboundSchema = RoutesTarget$outboundSchema;
8106
+ /** @deprecated use `RoutesTarget$Outbound` instead. */
8107
+ export type Outbound = RoutesTarget$Outbound;
8108
+ }
8109
+
8110
+ export function routesTargetToJSON(routesTarget: RoutesTarget): string {
8111
+ return JSON.stringify(RoutesTarget$outboundSchema.parse(routesTarget));
8112
+ }
8113
+
8114
+ export function routesTargetFromJSON(
8115
+ jsonString: string,
8116
+ ): SafeParseResult<RoutesTarget, SDKValidationError> {
8117
+ return safeParse(
8118
+ jsonString,
8119
+ (x) => RoutesTarget$inboundSchema.parse(JSON.parse(x)),
8120
+ `Failed to parse 'RoutesTarget' from JSON`,
8121
+ );
8122
+ }
8123
+
8124
+ /** @internal */
8125
+ export const Args$inboundSchema: z.ZodType<Args, z.ZodTypeDef, unknown> = z
8126
+ .union([z.string(), z.array(z.string())]);
8127
+
8128
+ /** @internal */
8129
+ export type Args$Outbound = string | Array<string>;
8130
+
8131
+ /** @internal */
8132
+ export const Args$outboundSchema: z.ZodType<Args$Outbound, z.ZodTypeDef, Args> =
8133
+ z.union([z.string(), z.array(z.string())]);
8134
+
8135
+ /**
8136
+ * @internal
8137
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8138
+ */
8139
+ export namespace Args$ {
8140
+ /** @deprecated use `Args$inboundSchema` instead. */
8141
+ export const inboundSchema = Args$inboundSchema;
8142
+ /** @deprecated use `Args$outboundSchema` instead. */
8143
+ export const outboundSchema = Args$outboundSchema;
8144
+ /** @deprecated use `Args$Outbound` instead. */
8145
+ export type Outbound = Args$Outbound;
8146
+ }
8147
+
8148
+ export function argsToJSON(args: Args): string {
8149
+ return JSON.stringify(Args$outboundSchema.parse(args));
8150
+ }
8151
+
8152
+ export function argsFromJSON(
8153
+ jsonString: string,
8154
+ ): SafeParseResult<Args, SDKValidationError> {
8155
+ return safeParse(
8156
+ jsonString,
8157
+ (x) => Args$inboundSchema.parse(JSON.parse(x)),
8158
+ `Failed to parse 'Args' from JSON`,
8159
+ );
8160
+ }
8161
+
8162
+ /** @internal */
8163
+ export const Transforms$inboundSchema: z.ZodType<
8164
+ Transforms,
8165
+ z.ZodTypeDef,
8166
+ unknown
8167
+ > = z.object({
8168
+ type: RoutesType$inboundSchema,
8169
+ op: CreateDeploymentRoutesOp$inboundSchema,
8170
+ target: z.lazy(() => RoutesTarget$inboundSchema),
8171
+ args: z.union([z.string(), z.array(z.string())]).optional(),
8172
+ });
8173
+
8174
+ /** @internal */
8175
+ export type Transforms$Outbound = {
8176
+ type: string;
8177
+ op: string;
8178
+ target: RoutesTarget$Outbound;
8179
+ args?: string | Array<string> | undefined;
8180
+ };
8181
+
8182
+ /** @internal */
8183
+ export const Transforms$outboundSchema: z.ZodType<
8184
+ Transforms$Outbound,
8185
+ z.ZodTypeDef,
8186
+ Transforms
8187
+ > = z.object({
8188
+ type: RoutesType$outboundSchema,
8189
+ op: CreateDeploymentRoutesOp$outboundSchema,
8190
+ target: z.lazy(() => RoutesTarget$outboundSchema),
8191
+ args: z.union([z.string(), z.array(z.string())]).optional(),
8192
+ });
8193
+
8194
+ /**
8195
+ * @internal
8196
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8197
+ */
8198
+ export namespace Transforms$ {
8199
+ /** @deprecated use `Transforms$inboundSchema` instead. */
8200
+ export const inboundSchema = Transforms$inboundSchema;
8201
+ /** @deprecated use `Transforms$outboundSchema` instead. */
8202
+ export const outboundSchema = Transforms$outboundSchema;
8203
+ /** @deprecated use `Transforms$Outbound` instead. */
8204
+ export type Outbound = Transforms$Outbound;
8205
+ }
8206
+
8207
+ export function transformsToJSON(transforms: Transforms): string {
8208
+ return JSON.stringify(Transforms$outboundSchema.parse(transforms));
8209
+ }
8210
+
8211
+ export function transformsFromJSON(
8212
+ jsonString: string,
8213
+ ): SafeParseResult<Transforms, SDKValidationError> {
8214
+ return safeParse(
8215
+ jsonString,
8216
+ (x) => Transforms$inboundSchema.parse(JSON.parse(x)),
8217
+ `Failed to parse 'Transforms' from JSON`,
8218
+ );
8219
+ }
8220
+
8221
+ /** @internal */
8222
+ export const Locale$inboundSchema: z.ZodType<Locale, z.ZodTypeDef, unknown> = z
8223
+ .object({
8224
+ redirect: z.record(z.string()).optional(),
8225
+ cookie: z.string().optional(),
8226
+ });
8227
+
8228
+ /** @internal */
8229
+ export type Locale$Outbound = {
8230
+ redirect?: { [k: string]: string } | undefined;
8231
+ cookie?: string | undefined;
8232
+ };
8233
+
8234
+ /** @internal */
8235
+ export const Locale$outboundSchema: z.ZodType<
8236
+ Locale$Outbound,
8237
+ z.ZodTypeDef,
8238
+ Locale
8239
+ > = z.object({
8240
+ redirect: z.record(z.string()).optional(),
8241
+ cookie: z.string().optional(),
8242
+ });
8243
+
8244
+ /**
8245
+ * @internal
8246
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8247
+ */
8248
+ export namespace Locale$ {
8249
+ /** @deprecated use `Locale$inboundSchema` instead. */
8250
+ export const inboundSchema = Locale$inboundSchema;
8251
+ /** @deprecated use `Locale$outboundSchema` instead. */
8252
+ export const outboundSchema = Locale$outboundSchema;
8253
+ /** @deprecated use `Locale$Outbound` instead. */
8254
+ export type Outbound = Locale$Outbound;
8255
+ }
8256
+
8257
+ export function localeToJSON(locale: Locale): string {
8258
+ return JSON.stringify(Locale$outboundSchema.parse(locale));
8259
+ }
8260
+
8261
+ export function localeFromJSON(
8262
+ jsonString: string,
8263
+ ): SafeParseResult<Locale, SDKValidationError> {
8264
+ return safeParse(
8265
+ jsonString,
8266
+ (x) => Locale$inboundSchema.parse(JSON.parse(x)),
8267
+ `Failed to parse 'Locale' from JSON`,
8268
+ );
8269
+ }
8270
+
8271
+ /** @internal */
8272
+ export const Routes1$inboundSchema: z.ZodType<Routes1, z.ZodTypeDef, unknown> =
8273
+ z.object({
8274
+ src: z.string(),
8275
+ dest: z.string().optional(),
8276
+ headers: z.record(z.string()).optional(),
8277
+ methods: z.array(z.string()).optional(),
8278
+ continue: z.boolean().optional(),
8279
+ override: z.boolean().optional(),
8280
+ caseSensitive: z.boolean().optional(),
8281
+ check: z.boolean().optional(),
8282
+ important: z.boolean().optional(),
8283
+ status: z.number().optional(),
8284
+ has: z.array(
8285
+ z.union([
8286
+ z.lazy(() => Has1$inboundSchema),
8287
+ z.lazy(() => Has2$inboundSchema),
8288
+ ]),
8289
+ ).optional(),
8290
+ missing: z.array(
8291
+ z.union([
8292
+ z.lazy(() => Missing1$inboundSchema),
8293
+ z.lazy(() => Missing2$inboundSchema),
8294
+ ]),
8295
+ ).optional(),
8296
+ mitigate: z.lazy(() => RoutesMitigate$inboundSchema).optional(),
8297
+ transforms: z.array(z.lazy(() => Transforms$inboundSchema)).optional(),
8298
+ locale: z.lazy(() => Locale$inboundSchema).optional(),
8299
+ middlewarePath: z.string().optional(),
8300
+ middlewareRawSrc: z.array(z.string()).optional(),
8301
+ middleware: z.number().optional(),
8302
+ });
8303
+
8304
+ /** @internal */
8305
+ export type Routes1$Outbound = {
8306
+ src: string;
8307
+ dest?: string | undefined;
8308
+ headers?: { [k: string]: string } | undefined;
8309
+ methods?: Array<string> | undefined;
8310
+ continue?: boolean | undefined;
8311
+ override?: boolean | undefined;
8312
+ caseSensitive?: boolean | undefined;
8313
+ check?: boolean | undefined;
8314
+ important?: boolean | undefined;
7763
8315
  status?: number | undefined;
7764
8316
  has?: Array<Has1$Outbound | Has2$Outbound> | undefined;
7765
8317
  missing?: Array<Missing1$Outbound | Missing2$Outbound> | undefined;
7766
8318
  mitigate?: RoutesMitigate$Outbound | undefined;
8319
+ transforms?: Array<Transforms$Outbound> | undefined;
7767
8320
  locale?: Locale$Outbound | undefined;
7768
8321
  middlewarePath?: string | undefined;
7769
8322
  middlewareRawSrc?: Array<string> | undefined;
@@ -7799,6 +8352,7 @@ export const Routes1$outboundSchema: z.ZodType<
7799
8352
  ]),
7800
8353
  ).optional(),
7801
8354
  mitigate: z.lazy(() => RoutesMitigate$outboundSchema).optional(),
8355
+ transforms: z.array(z.lazy(() => Transforms$outboundSchema)).optional(),
7802
8356
  locale: z.lazy(() => Locale$outboundSchema).optional(),
7803
8357
  middlewarePath: z.string().optional(),
7804
8358
  middlewareRawSrc: z.array(z.string()).optional(),
@@ -7847,97 +8401,238 @@ export type Routes$Outbound =
7847
8401
  | Routes2$Outbound;
7848
8402
 
7849
8403
  /** @internal */
7850
- export const Routes$outboundSchema: z.ZodType<
7851
- Routes$Outbound,
8404
+ export const Routes$outboundSchema: z.ZodType<
8405
+ Routes$Outbound,
8406
+ z.ZodTypeDef,
8407
+ Routes
8408
+ > = z.union([
8409
+ z.lazy(() => Routes3$outboundSchema),
8410
+ z.lazy(() => Routes1$outboundSchema),
8411
+ z.lazy(() => Routes2$outboundSchema),
8412
+ ]);
8413
+
8414
+ /**
8415
+ * @internal
8416
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8417
+ */
8418
+ export namespace Routes$ {
8419
+ /** @deprecated use `Routes$inboundSchema` instead. */
8420
+ export const inboundSchema = Routes$inboundSchema;
8421
+ /** @deprecated use `Routes$outboundSchema` instead. */
8422
+ export const outboundSchema = Routes$outboundSchema;
8423
+ /** @deprecated use `Routes$Outbound` instead. */
8424
+ export type Outbound = Routes$Outbound;
8425
+ }
8426
+
8427
+ export function routesToJSON(routes: Routes): string {
8428
+ return JSON.stringify(Routes$outboundSchema.parse(routes));
8429
+ }
8430
+
8431
+ export function routesFromJSON(
8432
+ jsonString: string,
8433
+ ): SafeParseResult<Routes, SDKValidationError> {
8434
+ return safeParse(
8435
+ jsonString,
8436
+ (x) => Routes$inboundSchema.parse(JSON.parse(x)),
8437
+ `Failed to parse 'Routes' from JSON`,
8438
+ );
8439
+ }
8440
+
8441
+ /** @internal */
8442
+ export const CreateDeploymentCrons$inboundSchema: z.ZodType<
8443
+ CreateDeploymentCrons,
8444
+ z.ZodTypeDef,
8445
+ unknown
8446
+ > = z.object({
8447
+ schedule: z.string(),
8448
+ path: z.string(),
8449
+ });
8450
+
8451
+ /** @internal */
8452
+ export type CreateDeploymentCrons$Outbound = {
8453
+ schedule: string;
8454
+ path: string;
8455
+ };
8456
+
8457
+ /** @internal */
8458
+ export const CreateDeploymentCrons$outboundSchema: z.ZodType<
8459
+ CreateDeploymentCrons$Outbound,
8460
+ z.ZodTypeDef,
8461
+ CreateDeploymentCrons
8462
+ > = z.object({
8463
+ schedule: z.string(),
8464
+ path: z.string(),
8465
+ });
8466
+
8467
+ /**
8468
+ * @internal
8469
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8470
+ */
8471
+ export namespace CreateDeploymentCrons$ {
8472
+ /** @deprecated use `CreateDeploymentCrons$inboundSchema` instead. */
8473
+ export const inboundSchema = CreateDeploymentCrons$inboundSchema;
8474
+ /** @deprecated use `CreateDeploymentCrons$outboundSchema` instead. */
8475
+ export const outboundSchema = CreateDeploymentCrons$outboundSchema;
8476
+ /** @deprecated use `CreateDeploymentCrons$Outbound` instead. */
8477
+ export type Outbound = CreateDeploymentCrons$Outbound;
8478
+ }
8479
+
8480
+ export function createDeploymentCronsToJSON(
8481
+ createDeploymentCrons: CreateDeploymentCrons,
8482
+ ): string {
8483
+ return JSON.stringify(
8484
+ CreateDeploymentCrons$outboundSchema.parse(createDeploymentCrons),
8485
+ );
8486
+ }
8487
+
8488
+ export function createDeploymentCronsFromJSON(
8489
+ jsonString: string,
8490
+ ): SafeParseResult<CreateDeploymentCrons, SDKValidationError> {
8491
+ return safeParse(
8492
+ jsonString,
8493
+ (x) => CreateDeploymentCrons$inboundSchema.parse(JSON.parse(x)),
8494
+ `Failed to parse 'CreateDeploymentCrons' from JSON`,
8495
+ );
8496
+ }
8497
+
8498
+ /** @internal */
8499
+ export const CreateDeploymentState$inboundSchema: z.ZodNativeEnum<
8500
+ typeof CreateDeploymentState
8501
+ > = z.nativeEnum(CreateDeploymentState);
8502
+
8503
+ /** @internal */
8504
+ export const CreateDeploymentState$outboundSchema: z.ZodNativeEnum<
8505
+ typeof CreateDeploymentState
8506
+ > = CreateDeploymentState$inboundSchema;
8507
+
8508
+ /**
8509
+ * @internal
8510
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8511
+ */
8512
+ export namespace CreateDeploymentState$ {
8513
+ /** @deprecated use `CreateDeploymentState$inboundSchema` instead. */
8514
+ export const inboundSchema = CreateDeploymentState$inboundSchema;
8515
+ /** @deprecated use `CreateDeploymentState$outboundSchema` instead. */
8516
+ export const outboundSchema = CreateDeploymentState$outboundSchema;
8517
+ }
8518
+
8519
+ /** @internal */
8520
+ export const DeploymentAlias$inboundSchema: z.ZodType<
8521
+ DeploymentAlias,
8522
+ z.ZodTypeDef,
8523
+ unknown
8524
+ > = z.object({
8525
+ state: CreateDeploymentState$inboundSchema,
8526
+ startedAt: z.number(),
8527
+ completedAt: z.number().optional(),
8528
+ });
8529
+
8530
+ /** @internal */
8531
+ export type DeploymentAlias$Outbound = {
8532
+ state: string;
8533
+ startedAt: number;
8534
+ completedAt?: number | undefined;
8535
+ };
8536
+
8537
+ /** @internal */
8538
+ export const DeploymentAlias$outboundSchema: z.ZodType<
8539
+ DeploymentAlias$Outbound,
7852
8540
  z.ZodTypeDef,
7853
- Routes
7854
- > = z.union([
7855
- z.lazy(() => Routes3$outboundSchema),
7856
- z.lazy(() => Routes1$outboundSchema),
7857
- z.lazy(() => Routes2$outboundSchema),
7858
- ]);
8541
+ DeploymentAlias
8542
+ > = z.object({
8543
+ state: CreateDeploymentState$outboundSchema,
8544
+ startedAt: z.number(),
8545
+ completedAt: z.number().optional(),
8546
+ });
7859
8547
 
7860
8548
  /**
7861
8549
  * @internal
7862
8550
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7863
8551
  */
7864
- export namespace Routes$ {
7865
- /** @deprecated use `Routes$inboundSchema` instead. */
7866
- export const inboundSchema = Routes$inboundSchema;
7867
- /** @deprecated use `Routes$outboundSchema` instead. */
7868
- export const outboundSchema = Routes$outboundSchema;
7869
- /** @deprecated use `Routes$Outbound` instead. */
7870
- export type Outbound = Routes$Outbound;
8552
+ export namespace DeploymentAlias$ {
8553
+ /** @deprecated use `DeploymentAlias$inboundSchema` instead. */
8554
+ export const inboundSchema = DeploymentAlias$inboundSchema;
8555
+ /** @deprecated use `DeploymentAlias$outboundSchema` instead. */
8556
+ export const outboundSchema = DeploymentAlias$outboundSchema;
8557
+ /** @deprecated use `DeploymentAlias$Outbound` instead. */
8558
+ export type Outbound = DeploymentAlias$Outbound;
7871
8559
  }
7872
8560
 
7873
- export function routesToJSON(routes: Routes): string {
7874
- return JSON.stringify(Routes$outboundSchema.parse(routes));
8561
+ export function deploymentAliasToJSON(
8562
+ deploymentAlias: DeploymentAlias,
8563
+ ): string {
8564
+ return JSON.stringify(DeploymentAlias$outboundSchema.parse(deploymentAlias));
7875
8565
  }
7876
8566
 
7877
- export function routesFromJSON(
8567
+ export function deploymentAliasFromJSON(
7878
8568
  jsonString: string,
7879
- ): SafeParseResult<Routes, SDKValidationError> {
8569
+ ): SafeParseResult<DeploymentAlias, SDKValidationError> {
7880
8570
  return safeParse(
7881
8571
  jsonString,
7882
- (x) => Routes$inboundSchema.parse(JSON.parse(x)),
7883
- `Failed to parse 'Routes' from JSON`,
8572
+ (x) => DeploymentAlias$inboundSchema.parse(JSON.parse(x)),
8573
+ `Failed to parse 'DeploymentAlias' from JSON`,
7884
8574
  );
7885
8575
  }
7886
8576
 
7887
8577
  /** @internal */
7888
- export const CreateDeploymentCrons$inboundSchema: z.ZodType<
7889
- CreateDeploymentCrons,
8578
+ export const CreateDeploymentChecks$inboundSchema: z.ZodType<
8579
+ CreateDeploymentChecks,
7890
8580
  z.ZodTypeDef,
7891
8581
  unknown
7892
8582
  > = z.object({
7893
- schedule: z.string(),
7894
- path: z.string(),
8583
+ "deployment-alias": z.lazy(() => DeploymentAlias$inboundSchema),
8584
+ }).transform((v) => {
8585
+ return remap$(v, {
8586
+ "deployment-alias": "deploymentAlias",
8587
+ });
7895
8588
  });
7896
8589
 
7897
8590
  /** @internal */
7898
- export type CreateDeploymentCrons$Outbound = {
7899
- schedule: string;
7900
- path: string;
8591
+ export type CreateDeploymentChecks$Outbound = {
8592
+ "deployment-alias": DeploymentAlias$Outbound;
7901
8593
  };
7902
8594
 
7903
8595
  /** @internal */
7904
- export const CreateDeploymentCrons$outboundSchema: z.ZodType<
7905
- CreateDeploymentCrons$Outbound,
8596
+ export const CreateDeploymentChecks$outboundSchema: z.ZodType<
8597
+ CreateDeploymentChecks$Outbound,
7906
8598
  z.ZodTypeDef,
7907
- CreateDeploymentCrons
8599
+ CreateDeploymentChecks
7908
8600
  > = z.object({
7909
- schedule: z.string(),
7910
- path: z.string(),
8601
+ deploymentAlias: z.lazy(() => DeploymentAlias$outboundSchema),
8602
+ }).transform((v) => {
8603
+ return remap$(v, {
8604
+ deploymentAlias: "deployment-alias",
8605
+ });
7911
8606
  });
7912
8607
 
7913
8608
  /**
7914
8609
  * @internal
7915
8610
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7916
8611
  */
7917
- export namespace CreateDeploymentCrons$ {
7918
- /** @deprecated use `CreateDeploymentCrons$inboundSchema` instead. */
7919
- export const inboundSchema = CreateDeploymentCrons$inboundSchema;
7920
- /** @deprecated use `CreateDeploymentCrons$outboundSchema` instead. */
7921
- export const outboundSchema = CreateDeploymentCrons$outboundSchema;
7922
- /** @deprecated use `CreateDeploymentCrons$Outbound` instead. */
7923
- export type Outbound = CreateDeploymentCrons$Outbound;
8612
+ export namespace CreateDeploymentChecks$ {
8613
+ /** @deprecated use `CreateDeploymentChecks$inboundSchema` instead. */
8614
+ export const inboundSchema = CreateDeploymentChecks$inboundSchema;
8615
+ /** @deprecated use `CreateDeploymentChecks$outboundSchema` instead. */
8616
+ export const outboundSchema = CreateDeploymentChecks$outboundSchema;
8617
+ /** @deprecated use `CreateDeploymentChecks$Outbound` instead. */
8618
+ export type Outbound = CreateDeploymentChecks$Outbound;
7924
8619
  }
7925
8620
 
7926
- export function createDeploymentCronsToJSON(
7927
- createDeploymentCrons: CreateDeploymentCrons,
8621
+ export function createDeploymentChecksToJSON(
8622
+ createDeploymentChecks: CreateDeploymentChecks,
7928
8623
  ): string {
7929
8624
  return JSON.stringify(
7930
- CreateDeploymentCrons$outboundSchema.parse(createDeploymentCrons),
8625
+ CreateDeploymentChecks$outboundSchema.parse(createDeploymentChecks),
7931
8626
  );
7932
8627
  }
7933
8628
 
7934
- export function createDeploymentCronsFromJSON(
8629
+ export function createDeploymentChecksFromJSON(
7935
8630
  jsonString: string,
7936
- ): SafeParseResult<CreateDeploymentCrons, SDKValidationError> {
8631
+ ): SafeParseResult<CreateDeploymentChecks, SDKValidationError> {
7937
8632
  return safeParse(
7938
8633
  jsonString,
7939
- (x) => CreateDeploymentCrons$inboundSchema.parse(JSON.parse(x)),
7940
- `Failed to parse 'CreateDeploymentCrons' from JSON`,
8634
+ (x) => CreateDeploymentChecks$inboundSchema.parse(JSON.parse(x)),
8635
+ `Failed to parse 'CreateDeploymentChecks' from JSON`,
7941
8636
  );
7942
8637
  }
7943
8638
 
@@ -8027,6 +8722,8 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
8027
8722
  defaultAppProjectName: z.string(),
8028
8723
  defaultRoute: z.string().optional(),
8029
8724
  groupIds: z.array(z.string()),
8725
+ microfrontendsAliasEnabled: z.boolean().optional(),
8726
+ previewEnvAliasEnabled: z.boolean().optional(),
8030
8727
  });
8031
8728
 
8032
8729
  /** @internal */
@@ -8038,6 +8735,8 @@ export type CreateDeploymentMicrofrontends2$Outbound = {
8038
8735
  defaultAppProjectName: string;
8039
8736
  defaultRoute?: string | undefined;
8040
8737
  groupIds: Array<string>;
8738
+ microfrontendsAliasEnabled?: boolean | undefined;
8739
+ previewEnvAliasEnabled?: boolean | undefined;
8041
8740
  };
8042
8741
 
8043
8742
  /** @internal */
@@ -8053,6 +8752,8 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType<
8053
8752
  defaultAppProjectName: z.string(),
8054
8753
  defaultRoute: z.string().optional(),
8055
8754
  groupIds: z.array(z.string()),
8755
+ microfrontendsAliasEnabled: z.boolean().optional(),
8756
+ previewEnvAliasEnabled: z.boolean().optional(),
8056
8757
  });
8057
8758
 
8058
8759
  /**
@@ -8098,6 +8799,8 @@ export const CreateDeploymentMicrofrontends1$inboundSchema: z.ZodType<
8098
8799
  defaultAppProjectName: z.string(),
8099
8800
  defaultRoute: z.string().optional(),
8100
8801
  groupIds: z.array(z.string()),
8802
+ microfrontendsAliasEnabled: z.boolean().optional(),
8803
+ previewEnvAliasEnabled: z.boolean().optional(),
8101
8804
  });
8102
8805
 
8103
8806
  /** @internal */
@@ -8106,6 +8809,8 @@ export type CreateDeploymentMicrofrontends1$Outbound = {
8106
8809
  defaultAppProjectName: string;
8107
8810
  defaultRoute?: string | undefined;
8108
8811
  groupIds: Array<string>;
8812
+ microfrontendsAliasEnabled?: boolean | undefined;
8813
+ previewEnvAliasEnabled?: boolean | undefined;
8109
8814
  };
8110
8815
 
8111
8816
  /** @internal */
@@ -8118,6 +8823,8 @@ export const CreateDeploymentMicrofrontends1$outboundSchema: z.ZodType<
8118
8823
  defaultAppProjectName: z.string(),
8119
8824
  defaultRoute: z.string().optional(),
8120
8825
  groupIds: z.array(z.string()),
8826
+ microfrontendsAliasEnabled: z.boolean().optional(),
8827
+ previewEnvAliasEnabled: z.boolean().optional(),
8121
8828
  });
8122
8829
 
8123
8830
  /**
@@ -8211,147 +8918,6 @@ export function createDeploymentMicrofrontendsFromJSON(
8211
8918
  );
8212
8919
  }
8213
8920
 
8214
- /** @internal */
8215
- export const CreateDeploymentState$inboundSchema: z.ZodNativeEnum<
8216
- typeof CreateDeploymentState
8217
- > = z.nativeEnum(CreateDeploymentState);
8218
-
8219
- /** @internal */
8220
- export const CreateDeploymentState$outboundSchema: z.ZodNativeEnum<
8221
- typeof CreateDeploymentState
8222
- > = CreateDeploymentState$inboundSchema;
8223
-
8224
- /**
8225
- * @internal
8226
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8227
- */
8228
- export namespace CreateDeploymentState$ {
8229
- /** @deprecated use `CreateDeploymentState$inboundSchema` instead. */
8230
- export const inboundSchema = CreateDeploymentState$inboundSchema;
8231
- /** @deprecated use `CreateDeploymentState$outboundSchema` instead. */
8232
- export const outboundSchema = CreateDeploymentState$outboundSchema;
8233
- }
8234
-
8235
- /** @internal */
8236
- export const DeploymentAlias$inboundSchema: z.ZodType<
8237
- DeploymentAlias,
8238
- z.ZodTypeDef,
8239
- unknown
8240
- > = z.object({
8241
- state: CreateDeploymentState$inboundSchema,
8242
- startedAt: z.number(),
8243
- completedAt: z.number().optional(),
8244
- });
8245
-
8246
- /** @internal */
8247
- export type DeploymentAlias$Outbound = {
8248
- state: string;
8249
- startedAt: number;
8250
- completedAt?: number | undefined;
8251
- };
8252
-
8253
- /** @internal */
8254
- export const DeploymentAlias$outboundSchema: z.ZodType<
8255
- DeploymentAlias$Outbound,
8256
- z.ZodTypeDef,
8257
- DeploymentAlias
8258
- > = z.object({
8259
- state: CreateDeploymentState$outboundSchema,
8260
- startedAt: z.number(),
8261
- completedAt: z.number().optional(),
8262
- });
8263
-
8264
- /**
8265
- * @internal
8266
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8267
- */
8268
- export namespace DeploymentAlias$ {
8269
- /** @deprecated use `DeploymentAlias$inboundSchema` instead. */
8270
- export const inboundSchema = DeploymentAlias$inboundSchema;
8271
- /** @deprecated use `DeploymentAlias$outboundSchema` instead. */
8272
- export const outboundSchema = DeploymentAlias$outboundSchema;
8273
- /** @deprecated use `DeploymentAlias$Outbound` instead. */
8274
- export type Outbound = DeploymentAlias$Outbound;
8275
- }
8276
-
8277
- export function deploymentAliasToJSON(
8278
- deploymentAlias: DeploymentAlias,
8279
- ): string {
8280
- return JSON.stringify(DeploymentAlias$outboundSchema.parse(deploymentAlias));
8281
- }
8282
-
8283
- export function deploymentAliasFromJSON(
8284
- jsonString: string,
8285
- ): SafeParseResult<DeploymentAlias, SDKValidationError> {
8286
- return safeParse(
8287
- jsonString,
8288
- (x) => DeploymentAlias$inboundSchema.parse(JSON.parse(x)),
8289
- `Failed to parse 'DeploymentAlias' from JSON`,
8290
- );
8291
- }
8292
-
8293
- /** @internal */
8294
- export const CreateDeploymentChecks$inboundSchema: z.ZodType<
8295
- CreateDeploymentChecks,
8296
- z.ZodTypeDef,
8297
- unknown
8298
- > = z.object({
8299
- "deployment-alias": z.lazy(() => DeploymentAlias$inboundSchema),
8300
- }).transform((v) => {
8301
- return remap$(v, {
8302
- "deployment-alias": "deploymentAlias",
8303
- });
8304
- });
8305
-
8306
- /** @internal */
8307
- export type CreateDeploymentChecks$Outbound = {
8308
- "deployment-alias": DeploymentAlias$Outbound;
8309
- };
8310
-
8311
- /** @internal */
8312
- export const CreateDeploymentChecks$outboundSchema: z.ZodType<
8313
- CreateDeploymentChecks$Outbound,
8314
- z.ZodTypeDef,
8315
- CreateDeploymentChecks
8316
- > = z.object({
8317
- deploymentAlias: z.lazy(() => DeploymentAlias$outboundSchema),
8318
- }).transform((v) => {
8319
- return remap$(v, {
8320
- deploymentAlias: "deployment-alias",
8321
- });
8322
- });
8323
-
8324
- /**
8325
- * @internal
8326
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8327
- */
8328
- export namespace CreateDeploymentChecks$ {
8329
- /** @deprecated use `CreateDeploymentChecks$inboundSchema` instead. */
8330
- export const inboundSchema = CreateDeploymentChecks$inboundSchema;
8331
- /** @deprecated use `CreateDeploymentChecks$outboundSchema` instead. */
8332
- export const outboundSchema = CreateDeploymentChecks$outboundSchema;
8333
- /** @deprecated use `CreateDeploymentChecks$Outbound` instead. */
8334
- export type Outbound = CreateDeploymentChecks$Outbound;
8335
- }
8336
-
8337
- export function createDeploymentChecksToJSON(
8338
- createDeploymentChecks: CreateDeploymentChecks,
8339
- ): string {
8340
- return JSON.stringify(
8341
- CreateDeploymentChecks$outboundSchema.parse(createDeploymentChecks),
8342
- );
8343
- }
8344
-
8345
- export function createDeploymentChecksFromJSON(
8346
- jsonString: string,
8347
- ): SafeParseResult<CreateDeploymentChecks, SDKValidationError> {
8348
- return safeParse(
8349
- jsonString,
8350
- (x) => CreateDeploymentChecks$inboundSchema.parse(JSON.parse(x)),
8351
- `Failed to parse 'CreateDeploymentChecks' from JSON`,
8352
- );
8353
- }
8354
-
8355
8921
  /** @internal */
8356
8922
  export const CreateDeploymentGitRepoDeploymentsType$inboundSchema:
8357
8923
  z.ZodNativeEnum<typeof CreateDeploymentGitRepoDeploymentsType> = z.nativeEnum(
@@ -9069,9 +9635,9 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType<
9069
9635
  readyState: ReadyState$inboundSchema,
9070
9636
  source: CreateDeploymentSource$inboundSchema.optional(),
9071
9637
  target: z.nullable(CreateDeploymentTarget$inboundSchema).optional(),
9638
+ errorMessage: z.nullable(z.string()).optional(),
9072
9639
  passiveRegions: z.array(z.string()).optional(),
9073
9640
  regions: z.array(z.string()),
9074
- errorMessage: z.nullable(z.string()).optional(),
9075
9641
  aliasWarning: z.nullable(z.lazy(() => AliasWarning$inboundSchema)).optional(),
9076
9642
  aliasError: z.nullable(z.lazy(() => AliasError$inboundSchema)).optional(),
9077
9643
  aliasFinal: z.nullable(z.string()).optional(),
@@ -9107,11 +9673,11 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType<
9107
9673
  ])),
9108
9674
  ),
9109
9675
  crons: z.array(z.lazy(() => CreateDeploymentCrons$inboundSchema)).optional(),
9676
+ checks: z.lazy(() => CreateDeploymentChecks$inboundSchema).optional(),
9110
9677
  microfrontends: z.union([
9111
9678
  z.lazy(() => CreateDeploymentMicrofrontends2$inboundSchema),
9112
9679
  z.lazy(() => CreateDeploymentMicrofrontends1$inboundSchema),
9113
9680
  ]).optional(),
9114
- checks: z.lazy(() => CreateDeploymentChecks$inboundSchema).optional(),
9115
9681
  connectBuildsEnabled: z.boolean().optional(),
9116
9682
  connectConfigurationId: z.string().optional(),
9117
9683
  createdIn: z.string(),
@@ -9192,9 +9758,9 @@ export type CreateDeploymentResponseBody$Outbound = {
9192
9758
  readyState: string;
9193
9759
  source?: string | undefined;
9194
9760
  target?: string | null | undefined;
9761
+ errorMessage?: string | null | undefined;
9195
9762
  passiveRegions?: Array<string> | undefined;
9196
9763
  regions: Array<string>;
9197
- errorMessage?: string | null | undefined;
9198
9764
  aliasWarning?: AliasWarning$Outbound | null | undefined;
9199
9765
  aliasError?: AliasError$Outbound | null | undefined;
9200
9766
  aliasFinal?: string | null | undefined;
@@ -9221,11 +9787,11 @@ export type CreateDeploymentResponseBody$Outbound = {
9221
9787
  functions?: { [k: string]: Functions$Outbound } | null | undefined;
9222
9788
  routes: Array<Routes3$Outbound | Routes1$Outbound | Routes2$Outbound> | null;
9223
9789
  crons?: Array<CreateDeploymentCrons$Outbound> | undefined;
9790
+ checks?: CreateDeploymentChecks$Outbound | undefined;
9224
9791
  microfrontends?:
9225
9792
  | CreateDeploymentMicrofrontends2$Outbound
9226
9793
  | CreateDeploymentMicrofrontends1$Outbound
9227
9794
  | undefined;
9228
- checks?: CreateDeploymentChecks$Outbound | undefined;
9229
9795
  connectBuildsEnabled?: boolean | undefined;
9230
9796
  connectConfigurationId?: string | undefined;
9231
9797
  createdIn: string;
@@ -9306,9 +9872,9 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType<
9306
9872
  readyState: ReadyState$outboundSchema,
9307
9873
  source: CreateDeploymentSource$outboundSchema.optional(),
9308
9874
  target: z.nullable(CreateDeploymentTarget$outboundSchema).optional(),
9875
+ errorMessage: z.nullable(z.string()).optional(),
9309
9876
  passiveRegions: z.array(z.string()).optional(),
9310
9877
  regions: z.array(z.string()),
9311
- errorMessage: z.nullable(z.string()).optional(),
9312
9878
  aliasWarning: z.nullable(z.lazy(() => AliasWarning$outboundSchema))
9313
9879
  .optional(),
9314
9880
  aliasError: z.nullable(z.lazy(() => AliasError$outboundSchema)).optional(),
@@ -9345,11 +9911,11 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType<
9345
9911
  ])),
9346
9912
  ),
9347
9913
  crons: z.array(z.lazy(() => CreateDeploymentCrons$outboundSchema)).optional(),
9914
+ checks: z.lazy(() => CreateDeploymentChecks$outboundSchema).optional(),
9348
9915
  microfrontends: z.union([
9349
9916
  z.lazy(() => CreateDeploymentMicrofrontends2$outboundSchema),
9350
9917
  z.lazy(() => CreateDeploymentMicrofrontends1$outboundSchema),
9351
9918
  ]).optional(),
9352
- checks: z.lazy(() => CreateDeploymentChecks$outboundSchema).optional(),
9353
9919
  connectBuildsEnabled: z.boolean().optional(),
9354
9920
  connectConfigurationId: z.string().optional(),
9355
9921
  createdIn: z.string(),