@vercel/sdk 1.10.0 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/bin/mcp-server.js +3601 -3879
  2. package/bin/mcp-server.js.map +59 -59
  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/funcs/aliasesGetAlias.d.ts +2 -2
  30. package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
  31. package/esm/funcs/aliasesGetAlias.js +3 -2
  32. package/esm/funcs/aliasesGetAlias.js.map +1 -1
  33. package/esm/funcs/checksRerequestCheck.js +1 -0
  34. package/esm/funcs/checksRerequestCheck.js.map +1 -1
  35. package/esm/funcs/domainsBuyDomain.js +2 -2
  36. package/esm/funcs/domainsBuyDomain.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/domainsPatchDomain.js +2 -2
  40. package/esm/funcs/domainsPatchDomain.js.map +1 -1
  41. package/esm/funcs/edgeConfigPatchEdgeConfigItems.js +2 -3
  42. package/esm/funcs/edgeConfigPatchEdgeConfigItems.js.map +1 -1
  43. package/esm/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js +2 -2
  44. package/esm/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js.map +1 -1
  45. package/esm/funcs/projectsAcceptProjectTransferRequest.js +2 -2
  46. package/esm/funcs/projectsAcceptProjectTransferRequest.js.map +1 -1
  47. package/esm/funcs/projectsCreateProject.js +2 -2
  48. package/esm/funcs/projectsCreateProject.js.map +1 -1
  49. package/esm/funcs/teamsPatchTeam.js +2 -2
  50. package/esm/funcs/teamsPatchTeam.js.map +1 -1
  51. package/esm/lib/config.d.ts +3 -3
  52. package/esm/lib/config.js +3 -3
  53. package/esm/mcp-server/mcp-server.js +1 -1
  54. package/esm/mcp-server/server.js +1 -1
  55. package/esm/models/acceptprojecttransferrequestop.d.ts +176 -2
  56. package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
  57. package/esm/models/acceptprojecttransferrequestop.js +176 -2
  58. package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
  59. package/esm/models/addbypassipop.d.ts +38 -38
  60. package/esm/models/addbypassipop.d.ts.map +1 -1
  61. package/esm/models/addbypassipop.js +44 -42
  62. package/esm/models/addbypassipop.js.map +1 -1
  63. package/esm/models/authtoken.d.ts +10 -4
  64. package/esm/models/authtoken.d.ts.map +1 -1
  65. package/esm/models/authtoken.js +6 -4
  66. package/esm/models/authtoken.js.map +1 -1
  67. package/esm/models/authuser.d.ts +54 -0
  68. package/esm/models/authuser.d.ts.map +1 -1
  69. package/esm/models/authuser.js +34 -0
  70. package/esm/models/authuser.js.map +1 -1
  71. package/esm/models/canceldeploymentop.d.ts +385 -148
  72. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  73. package/esm/models/canceldeploymentop.js +363 -148
  74. package/esm/models/canceldeploymentop.js.map +1 -1
  75. package/esm/models/createcustomenvironmentop.d.ts +3 -3
  76. package/esm/models/createcustomenvironmentop.js +1 -1
  77. package/esm/models/createcustomenvironmentop.js.map +1 -1
  78. package/esm/models/createdeploymentop.d.ts +604 -344
  79. package/esm/models/createdeploymentop.d.ts.map +1 -1
  80. package/esm/models/createdeploymentop.js +501 -274
  81. package/esm/models/createdeploymentop.js.map +1 -1
  82. package/esm/models/createlogdrainop.d.ts +2 -2
  83. package/esm/models/createlogdrainop.d.ts.map +1 -1
  84. package/esm/models/createlogdrainop.js +2 -2
  85. package/esm/models/createlogdrainop.js.map +1 -1
  86. package/esm/models/createprojectenvop.d.ts +6 -6
  87. package/esm/models/createprojectenvop.js +2 -2
  88. package/esm/models/createprojectenvop.js.map +1 -1
  89. package/esm/models/createprojectop.d.ts +378 -797
  90. package/esm/models/createprojectop.d.ts.map +1 -1
  91. package/esm/models/createprojectop.js +344 -718
  92. package/esm/models/createprojectop.js.map +1 -1
  93. package/esm/models/createwebhookop.d.ts +12 -0
  94. package/esm/models/createwebhookop.d.ts.map +1 -1
  95. package/esm/models/createwebhookop.js +4 -0
  96. package/esm/models/createwebhookop.js.map +1 -1
  97. package/esm/models/editprojectenvop.d.ts +3 -3
  98. package/esm/models/editprojectenvop.js +1 -1
  99. package/esm/models/editprojectenvop.js.map +1 -1
  100. package/esm/models/exchangessotokenop.d.ts +4 -4
  101. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  102. package/esm/models/exchangessotokenop.js +4 -4
  103. package/esm/models/exchangessotokenop.js.map +1 -1
  104. package/esm/models/filterprojectenvsop.d.ts +9 -9
  105. package/esm/models/filterprojectenvsop.js +3 -3
  106. package/esm/models/filterprojectenvsop.js.map +1 -1
  107. package/esm/models/getaliasop.d.ts +0 -555
  108. package/esm/models/getaliasop.d.ts.map +1 -1
  109. package/esm/models/getaliasop.js +0 -449
  110. package/esm/models/getaliasop.js.map +1 -1
  111. package/esm/models/getbypassipop.d.ts +55 -179
  112. package/esm/models/getbypassipop.d.ts.map +1 -1
  113. package/esm/models/getbypassipop.js +59 -221
  114. package/esm/models/getbypassipop.js.map +1 -1
  115. package/esm/models/getcustomenvironmentop.d.ts +3 -3
  116. package/esm/models/getcustomenvironmentop.js +1 -1
  117. package/esm/models/getcustomenvironmentop.js.map +1 -1
  118. package/esm/models/getdeploymentop.d.ts +847 -366
  119. package/esm/models/getdeploymentop.d.ts.map +1 -1
  120. package/esm/models/getdeploymentop.js +772 -332
  121. package/esm/models/getdeploymentop.js.map +1 -1
  122. package/esm/models/getdeploymentsop.d.ts +3 -0
  123. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  124. package/esm/models/getdeploymentsop.js +1 -0
  125. package/esm/models/getdeploymentsop.js.map +1 -1
  126. package/esm/models/getfirewallconfigop.d.ts +3 -0
  127. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  128. package/esm/models/getfirewallconfigop.js +1 -0
  129. package/esm/models/getfirewallconfigop.js.map +1 -1
  130. package/esm/models/getintegrationlogdrainsop.d.ts +2 -2
  131. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  132. package/esm/models/getintegrationlogdrainsop.js +4 -2
  133. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  134. package/esm/models/getprojectmembersop.d.ts +3 -0
  135. package/esm/models/getprojectmembersop.d.ts.map +1 -1
  136. package/esm/models/getprojectmembersop.js +1 -0
  137. package/esm/models/getprojectmembersop.js.map +1 -1
  138. package/esm/models/getprojectsop.d.ts +218 -643
  139. package/esm/models/getprojectsop.d.ts.map +1 -1
  140. package/esm/models/getprojectsop.js +197 -573
  141. package/esm/models/getprojectsop.js.map +1 -1
  142. package/esm/models/getrecordsop.d.ts +8 -0
  143. package/esm/models/getrecordsop.d.ts.map +1 -1
  144. package/esm/models/getrecordsop.js +8 -0
  145. package/esm/models/getrecordsop.js.map +1 -1
  146. package/esm/models/getteammembersop.d.ts +6 -0
  147. package/esm/models/getteammembersop.d.ts.map +1 -1
  148. package/esm/models/getteammembersop.js +2 -0
  149. package/esm/models/getteammembersop.js.map +1 -1
  150. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -3
  151. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +1 -1
  152. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  153. package/esm/models/getwebhookop.d.ts +6 -0
  154. package/esm/models/getwebhookop.d.ts.map +1 -1
  155. package/esm/models/getwebhookop.js +2 -0
  156. package/esm/models/getwebhookop.js.map +1 -1
  157. package/esm/models/getwebhooksop.d.ts +15 -0
  158. package/esm/models/getwebhooksop.d.ts.map +1 -1
  159. package/esm/models/getwebhooksop.js +5 -0
  160. package/esm/models/getwebhooksop.js.map +1 -1
  161. package/esm/models/inviteusertoteamop.d.ts +33 -0
  162. package/esm/models/inviteusertoteamop.d.ts.map +1 -1
  163. package/esm/models/inviteusertoteamop.js +11 -0
  164. package/esm/models/inviteusertoteamop.js.map +1 -1
  165. package/esm/models/listaccessgroupmembersop.d.ts +3 -0
  166. package/esm/models/listaccessgroupmembersop.d.ts.map +1 -1
  167. package/esm/models/listaccessgroupmembersop.js +1 -0
  168. package/esm/models/listaccessgroupmembersop.js.map +1 -1
  169. package/esm/models/listaliasesop.d.ts +141 -39
  170. package/esm/models/listaliasesop.d.ts.map +1 -1
  171. package/esm/models/listaliasesop.js +132 -35
  172. package/esm/models/listaliasesop.js.map +1 -1
  173. package/esm/models/listdeploymentaliasesop.d.ts +30 -30
  174. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  175. package/esm/models/listdeploymentaliasesop.js +34 -34
  176. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  177. package/esm/models/patchedgeconfigitemsop.d.ts +0 -4
  178. package/esm/models/patchedgeconfigitemsop.d.ts.map +1 -1
  179. package/esm/models/patchedgeconfigitemsop.js +0 -4
  180. package/esm/models/patchedgeconfigitemsop.js.map +1 -1
  181. package/esm/models/patchteamop.d.ts +185 -0
  182. package/esm/models/patchteamop.d.ts.map +1 -1
  183. package/esm/models/patchteamop.js +132 -0
  184. package/esm/models/patchteamop.js.map +1 -1
  185. package/esm/models/putfirewallconfigop.d.ts +3 -0
  186. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  187. package/esm/models/putfirewallconfigop.js +1 -0
  188. package/esm/models/putfirewallconfigop.js.map +1 -1
  189. package/esm/models/removecustomenvironmentop.d.ts +3 -3
  190. package/esm/models/removecustomenvironmentop.js +1 -1
  191. package/esm/models/removecustomenvironmentop.js.map +1 -1
  192. package/esm/models/removeprojectenvop.d.ts +9 -9
  193. package/esm/models/removeprojectenvop.js +3 -3
  194. package/esm/models/removeprojectenvop.js.map +1 -1
  195. package/esm/models/rerequestcheckop.d.ts +5 -0
  196. package/esm/models/rerequestcheckop.d.ts.map +1 -1
  197. package/esm/models/rerequestcheckop.js +2 -0
  198. package/esm/models/rerequestcheckop.js.map +1 -1
  199. package/esm/models/team.d.ts +142 -0
  200. package/esm/models/team.d.ts.map +1 -1
  201. package/esm/models/team.js +111 -0
  202. package/esm/models/team.js.map +1 -1
  203. package/esm/models/teamlimited.d.ts +15 -0
  204. package/esm/models/teamlimited.d.ts.map +1 -1
  205. package/esm/models/teamlimited.js +5 -0
  206. package/esm/models/teamlimited.js.map +1 -1
  207. package/esm/models/updatecustomenvironmentop.d.ts +3 -3
  208. package/esm/models/updatecustomenvironmentop.js +1 -1
  209. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  210. package/esm/models/updateprojectdatacacheop.d.ts +226 -651
  211. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  212. package/esm/models/updateprojectdatacacheop.js +209 -604
  213. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  214. package/esm/models/updateprojectop.d.ts +221 -643
  215. package/esm/models/updateprojectop.d.ts.map +1 -1
  216. package/esm/models/updateprojectop.js +198 -573
  217. package/esm/models/updateprojectop.js.map +1 -1
  218. package/esm/models/userevent.d.ts +1629 -1433
  219. package/esm/models/userevent.d.ts.map +1 -1
  220. package/esm/models/userevent.js +2023 -1841
  221. package/esm/models/userevent.js.map +1 -1
  222. package/esm/sdk/aliases.d.ts +2 -2
  223. package/esm/sdk/aliases.d.ts.map +1 -1
  224. package/examples/README.md +5 -0
  225. package/examples/package-lock.json +8 -7
  226. package/examples/projectsUpdateProject.example.ts +2 -0
  227. package/jsr.json +1 -1
  228. package/package.json +6 -8
  229. package/src/__tests__/aliases.test.ts +16 -16
  230. package/src/__tests__/security.test.ts +13 -1
  231. package/src/funcs/aliasesGetAlias.ts +5 -6
  232. package/src/funcs/checksRerequestCheck.ts +1 -0
  233. package/src/funcs/domainsBuyDomain.ts +2 -2
  234. package/src/funcs/domainsGetDomainConfig.ts +2 -2
  235. package/src/funcs/domainsPatchDomain.ts +2 -2
  236. package/src/funcs/edgeConfigPatchEdgeConfigItems.ts +2 -3
  237. package/src/funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.ts +2 -2
  238. package/src/funcs/projectsAcceptProjectTransferRequest.ts +2 -2
  239. package/src/funcs/projectsCreateProject.ts +2 -2
  240. package/src/funcs/teamsPatchTeam.ts +2 -2
  241. package/src/lib/config.ts +3 -3
  242. package/src/mcp-server/mcp-server.ts +1 -1
  243. package/src/mcp-server/server.ts +1 -1
  244. package/src/models/acceptprojecttransferrequestop.ts +449 -4
  245. package/src/models/addbypassipop.ts +69 -78
  246. package/src/models/authtoken.ts +10 -8
  247. package/src/models/authuser.ts +93 -0
  248. package/src/models/canceldeploymentop.ts +734 -295
  249. package/src/models/createcustomenvironmentop.ts +1 -1
  250. package/src/models/createdeploymentop.ts +1122 -641
  251. package/src/models/createlogdrainop.ts +4 -4
  252. package/src/models/createprojectenvop.ts +2 -2
  253. package/src/models/createprojectop.ts +734 -1475
  254. package/src/models/createwebhookop.ts +4 -0
  255. package/src/models/editprojectenvop.ts +1 -1
  256. package/src/models/exchangessotokenop.ts +8 -8
  257. package/src/models/filterprojectenvsop.ts +3 -3
  258. package/src/models/getaliasop.ts +0 -1042
  259. package/src/models/getbypassipop.ts +100 -404
  260. package/src/models/getcustomenvironmentop.ts +1 -1
  261. package/src/models/getdeploymentop.ts +1761 -780
  262. package/src/models/getdeploymentsop.ts +1 -0
  263. package/src/models/getfirewallconfigop.ts +1 -0
  264. package/src/models/getintegrationlogdrainsop.ts +6 -4
  265. package/src/models/getprojectmembersop.ts +1 -0
  266. package/src/models/getprojectsop.ts +612 -1335
  267. package/src/models/getrecordsop.ts +16 -0
  268. package/src/models/getteammembersop.ts +2 -0
  269. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
  270. package/src/models/getwebhookop.ts +2 -0
  271. package/src/models/getwebhooksop.ts +5 -0
  272. package/src/models/inviteusertoteamop.ts +11 -0
  273. package/src/models/listaccessgroupmembersop.ts +1 -0
  274. package/src/models/listaliasesop.ts +290 -74
  275. package/src/models/listdeploymentaliasesop.ts +58 -70
  276. package/src/models/patchedgeconfigitemsop.ts +0 -8
  277. package/src/models/patchteamop.ts +311 -0
  278. package/src/models/putfirewallconfigop.ts +1 -0
  279. package/src/models/removecustomenvironmentop.ts +1 -1
  280. package/src/models/removeprojectenvop.ts +3 -3
  281. package/src/models/rerequestcheckop.ts +7 -0
  282. package/src/models/team.ts +240 -0
  283. package/src/models/teamlimited.ts +5 -0
  284. package/src/models/updatecustomenvironmentop.ts +1 -1
  285. package/src/models/updateprojectdatacacheop.ts +684 -1411
  286. package/src/models/updateprojectop.ts +601 -1343
  287. package/src/models/userevent.ts +3615 -3202
  288. package/src/sdk/aliases.ts +2 -2
  289. package/temp/example.ts +11 -0
  290. package/vercel-spec.json +2337 -2625
@@ -4,7 +4,6 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../lib/schemas.js";
7
- import { ClosedEnum } from "../types/enums.js";
8
7
  import { Result as SafeParseResult } from "../types/fp.js";
9
8
  import { SDKValidationError } from "./sdkvalidationerror.js";
10
9
 
@@ -39,226 +38,6 @@ export type GetAliasRequest = {
39
38
  slug?: string | undefined;
40
39
  };
41
40
 
42
- /**
43
- * Information of the user who created the alias
44
- */
45
- export type GetAliasCreator = {
46
- /**
47
- * ID of the user who created the alias
48
- */
49
- uid: string;
50
- /**
51
- * Email of the user who created the alias
52
- */
53
- email: string;
54
- /**
55
- * Username of the user who created the alias
56
- */
57
- username: string;
58
- };
59
-
60
- /**
61
- * A map with the deployment ID, URL and metadata
62
- */
63
- export type GetAliasDeployment = {
64
- /**
65
- * The deployment unique identifier
66
- */
67
- id: string;
68
- /**
69
- * The deployment unique URL
70
- */
71
- url: string;
72
- /**
73
- * The deployment metadata
74
- */
75
- meta?: string | undefined;
76
- };
77
-
78
- export const GetAliasProtectionBypassAliasesResponse200Scope = {
79
- EmailInvite: "email_invite",
80
- } as const;
81
- export type GetAliasProtectionBypassAliasesResponse200Scope = ClosedEnum<
82
- typeof GetAliasProtectionBypassAliasesResponse200Scope
83
- >;
84
-
85
- /**
86
- * The protection bypass for the alias
87
- */
88
- export type ProtectionBypass4 = {
89
- createdAt: number;
90
- lastUpdatedAt: number;
91
- lastUpdatedBy: string;
92
- scope: GetAliasProtectionBypassAliasesResponse200Scope;
93
- };
94
-
95
- export const GetAliasProtectionBypassAliasesResponseScope = {
96
- AliasProtectionOverride: "alias-protection-override",
97
- } as const;
98
- export type GetAliasProtectionBypassAliasesResponseScope = ClosedEnum<
99
- typeof GetAliasProtectionBypassAliasesResponseScope
100
- >;
101
-
102
- /**
103
- * The protection bypass for the alias
104
- */
105
- export type ProtectionBypass3 = {
106
- createdAt: number;
107
- createdBy: string;
108
- scope: GetAliasProtectionBypassAliasesResponseScope;
109
- };
110
-
111
- export const ProtectionBypassAccess = {
112
- Requested: "requested",
113
- Granted: "granted",
114
- } as const;
115
- export type ProtectionBypassAccess = ClosedEnum<typeof ProtectionBypassAccess>;
116
-
117
- export const GetAliasProtectionBypassAliasesScope = {
118
- User: "user",
119
- } as const;
120
- export type GetAliasProtectionBypassAliasesScope = ClosedEnum<
121
- typeof GetAliasProtectionBypassAliasesScope
122
- >;
123
-
124
- /**
125
- * The protection bypass for the alias
126
- */
127
- export type GetAliasProtectionBypass2 = {
128
- createdAt: number;
129
- lastUpdatedAt: number;
130
- lastUpdatedBy: string;
131
- access: ProtectionBypassAccess;
132
- scope: GetAliasProtectionBypassAliasesScope;
133
- };
134
-
135
- export const GetAliasProtectionBypassScope = {
136
- ShareableLink: "shareable-link",
137
- } as const;
138
- export type GetAliasProtectionBypassScope = ClosedEnum<
139
- typeof GetAliasProtectionBypassScope
140
- >;
141
-
142
- /**
143
- * The protection bypass for the alias
144
- */
145
- export type GetAliasProtectionBypass1 = {
146
- createdAt: number;
147
- createdBy: string;
148
- scope: GetAliasProtectionBypassScope;
149
- };
150
-
151
- export type GetAliasProtectionBypass =
152
- | GetAliasProtectionBypass2
153
- | ProtectionBypass4
154
- | GetAliasProtectionBypass1
155
- | ProtectionBypass3;
156
-
157
- export type DefaultApp = {
158
- projectId: string;
159
- };
160
-
161
- /**
162
- * A list of the deployment routing information for each project.
163
- */
164
- export type Applications = {
165
- /**
166
- * The project ID that should use the below configuration.
167
- */
168
- projectId: string;
169
- /**
170
- * This is always set and is the fallback host to send the request to if there is no deployment ID.
171
- */
172
- fallbackHost: string;
173
- /**
174
- * This is only set if there are changes to the application. This is the deployment ID to use for requests to that application. If this is unset, requests will be sent to the `fallbackHost`.
175
- */
176
- deploymentId?: string | undefined;
177
- /**
178
- * This is used and set in the exact same way as `deploymentId`.
179
- */
180
- deploymentUrl?: string | undefined;
181
- };
182
-
183
- /**
184
- * The microfrontends for the alias including the routing configuration
185
- */
186
- export type GetAliasMicrofrontends = {
187
- defaultApp: DefaultApp;
188
- /**
189
- * A list of the deployment routing information for each project.
190
- */
191
- applications: Array<Applications>;
192
- };
193
-
194
- /**
195
- * The alias information
196
- */
197
- export type GetAliasResponseBody = {
198
- /**
199
- * The alias name, it could be a `.vercel.app` subdomain or a custom domain
200
- */
201
- alias: string;
202
- /**
203
- * The date when the alias was created
204
- */
205
- created: Date;
206
- /**
207
- * The date when the alias was created in milliseconds since the UNIX epoch
208
- */
209
- createdAt?: number | null | undefined;
210
- /**
211
- * Information of the user who created the alias
212
- */
213
- creator?: GetAliasCreator | undefined;
214
- /**
215
- * The date when the alias was deleted in milliseconds since the UNIX epoch
216
- */
217
- deletedAt?: number | null | undefined;
218
- /**
219
- * A map with the deployment ID, URL and metadata
220
- */
221
- deployment?: GetAliasDeployment | undefined;
222
- /**
223
- * The deployment ID
224
- */
225
- deploymentId: string | null;
226
- /**
227
- * The unique identifier of the project
228
- */
229
- projectId: string | null;
230
- /**
231
- * Target destination domain for redirect when the alias is a redirect
232
- */
233
- redirect?: string | null | undefined;
234
- /**
235
- * Status code to be used on redirect
236
- */
237
- redirectStatusCode?: number | null | undefined;
238
- /**
239
- * The unique identifier of the alias
240
- */
241
- uid: string;
242
- /**
243
- * The date when the alias was updated in milliseconds since the UNIX epoch
244
- */
245
- updatedAt?: number | null | undefined;
246
- /**
247
- * The protection bypass for the alias
248
- */
249
- protectionBypass?: {
250
- [k: string]:
251
- | GetAliasProtectionBypass2
252
- | ProtectionBypass4
253
- | GetAliasProtectionBypass1
254
- | ProtectionBypass3;
255
- } | undefined;
256
- /**
257
- * The microfrontends for the alias including the routing configuration
258
- */
259
- microfrontends?: GetAliasMicrofrontends | undefined;
260
- };
261
-
262
41
  /** @internal */
263
42
  export const GetAliasRequest$inboundSchema: z.ZodType<
264
43
  GetAliasRequest,
@@ -328,824 +107,3 @@ export function getAliasRequestFromJSON(
328
107
  `Failed to parse 'GetAliasRequest' from JSON`,
329
108
  );
330
109
  }
331
-
332
- /** @internal */
333
- export const GetAliasCreator$inboundSchema: z.ZodType<
334
- GetAliasCreator,
335
- z.ZodTypeDef,
336
- unknown
337
- > = z.object({
338
- uid: z.string(),
339
- email: z.string(),
340
- username: z.string(),
341
- });
342
-
343
- /** @internal */
344
- export type GetAliasCreator$Outbound = {
345
- uid: string;
346
- email: string;
347
- username: string;
348
- };
349
-
350
- /** @internal */
351
- export const GetAliasCreator$outboundSchema: z.ZodType<
352
- GetAliasCreator$Outbound,
353
- z.ZodTypeDef,
354
- GetAliasCreator
355
- > = z.object({
356
- uid: z.string(),
357
- email: z.string(),
358
- username: z.string(),
359
- });
360
-
361
- /**
362
- * @internal
363
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
364
- */
365
- export namespace GetAliasCreator$ {
366
- /** @deprecated use `GetAliasCreator$inboundSchema` instead. */
367
- export const inboundSchema = GetAliasCreator$inboundSchema;
368
- /** @deprecated use `GetAliasCreator$outboundSchema` instead. */
369
- export const outboundSchema = GetAliasCreator$outboundSchema;
370
- /** @deprecated use `GetAliasCreator$Outbound` instead. */
371
- export type Outbound = GetAliasCreator$Outbound;
372
- }
373
-
374
- export function getAliasCreatorToJSON(
375
- getAliasCreator: GetAliasCreator,
376
- ): string {
377
- return JSON.stringify(GetAliasCreator$outboundSchema.parse(getAliasCreator));
378
- }
379
-
380
- export function getAliasCreatorFromJSON(
381
- jsonString: string,
382
- ): SafeParseResult<GetAliasCreator, SDKValidationError> {
383
- return safeParse(
384
- jsonString,
385
- (x) => GetAliasCreator$inboundSchema.parse(JSON.parse(x)),
386
- `Failed to parse 'GetAliasCreator' from JSON`,
387
- );
388
- }
389
-
390
- /** @internal */
391
- export const GetAliasDeployment$inboundSchema: z.ZodType<
392
- GetAliasDeployment,
393
- z.ZodTypeDef,
394
- unknown
395
- > = z.object({
396
- id: z.string(),
397
- url: z.string(),
398
- meta: z.string().optional(),
399
- });
400
-
401
- /** @internal */
402
- export type GetAliasDeployment$Outbound = {
403
- id: string;
404
- url: string;
405
- meta?: string | undefined;
406
- };
407
-
408
- /** @internal */
409
- export const GetAliasDeployment$outboundSchema: z.ZodType<
410
- GetAliasDeployment$Outbound,
411
- z.ZodTypeDef,
412
- GetAliasDeployment
413
- > = z.object({
414
- id: z.string(),
415
- url: z.string(),
416
- meta: z.string().optional(),
417
- });
418
-
419
- /**
420
- * @internal
421
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
422
- */
423
- export namespace GetAliasDeployment$ {
424
- /** @deprecated use `GetAliasDeployment$inboundSchema` instead. */
425
- export const inboundSchema = GetAliasDeployment$inboundSchema;
426
- /** @deprecated use `GetAliasDeployment$outboundSchema` instead. */
427
- export const outboundSchema = GetAliasDeployment$outboundSchema;
428
- /** @deprecated use `GetAliasDeployment$Outbound` instead. */
429
- export type Outbound = GetAliasDeployment$Outbound;
430
- }
431
-
432
- export function getAliasDeploymentToJSON(
433
- getAliasDeployment: GetAliasDeployment,
434
- ): string {
435
- return JSON.stringify(
436
- GetAliasDeployment$outboundSchema.parse(getAliasDeployment),
437
- );
438
- }
439
-
440
- export function getAliasDeploymentFromJSON(
441
- jsonString: string,
442
- ): SafeParseResult<GetAliasDeployment, SDKValidationError> {
443
- return safeParse(
444
- jsonString,
445
- (x) => GetAliasDeployment$inboundSchema.parse(JSON.parse(x)),
446
- `Failed to parse 'GetAliasDeployment' from JSON`,
447
- );
448
- }
449
-
450
- /** @internal */
451
- export const GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema:
452
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> = z
453
- .nativeEnum(GetAliasProtectionBypassAliasesResponse200Scope);
454
-
455
- /** @internal */
456
- export const GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema:
457
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> =
458
- GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
459
-
460
- /**
461
- * @internal
462
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
463
- */
464
- export namespace GetAliasProtectionBypassAliasesResponse200Scope$ {
465
- /** @deprecated use `GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema` instead. */
466
- export const inboundSchema =
467
- GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
468
- /** @deprecated use `GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema` instead. */
469
- export const outboundSchema =
470
- GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema;
471
- }
472
-
473
- /** @internal */
474
- export const ProtectionBypass4$inboundSchema: z.ZodType<
475
- ProtectionBypass4,
476
- z.ZodTypeDef,
477
- unknown
478
- > = z.object({
479
- createdAt: z.number(),
480
- lastUpdatedAt: z.number(),
481
- lastUpdatedBy: z.string(),
482
- scope: GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema,
483
- });
484
-
485
- /** @internal */
486
- export type ProtectionBypass4$Outbound = {
487
- createdAt: number;
488
- lastUpdatedAt: number;
489
- lastUpdatedBy: string;
490
- scope: string;
491
- };
492
-
493
- /** @internal */
494
- export const ProtectionBypass4$outboundSchema: z.ZodType<
495
- ProtectionBypass4$Outbound,
496
- z.ZodTypeDef,
497
- ProtectionBypass4
498
- > = z.object({
499
- createdAt: z.number(),
500
- lastUpdatedAt: z.number(),
501
- lastUpdatedBy: z.string(),
502
- scope: GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema,
503
- });
504
-
505
- /**
506
- * @internal
507
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
508
- */
509
- export namespace ProtectionBypass4$ {
510
- /** @deprecated use `ProtectionBypass4$inboundSchema` instead. */
511
- export const inboundSchema = ProtectionBypass4$inboundSchema;
512
- /** @deprecated use `ProtectionBypass4$outboundSchema` instead. */
513
- export const outboundSchema = ProtectionBypass4$outboundSchema;
514
- /** @deprecated use `ProtectionBypass4$Outbound` instead. */
515
- export type Outbound = ProtectionBypass4$Outbound;
516
- }
517
-
518
- export function protectionBypass4ToJSON(
519
- protectionBypass4: ProtectionBypass4,
520
- ): string {
521
- return JSON.stringify(
522
- ProtectionBypass4$outboundSchema.parse(protectionBypass4),
523
- );
524
- }
525
-
526
- export function protectionBypass4FromJSON(
527
- jsonString: string,
528
- ): SafeParseResult<ProtectionBypass4, SDKValidationError> {
529
- return safeParse(
530
- jsonString,
531
- (x) => ProtectionBypass4$inboundSchema.parse(JSON.parse(x)),
532
- `Failed to parse 'ProtectionBypass4' from JSON`,
533
- );
534
- }
535
-
536
- /** @internal */
537
- export const GetAliasProtectionBypassAliasesResponseScope$inboundSchema:
538
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> = z
539
- .nativeEnum(GetAliasProtectionBypassAliasesResponseScope);
540
-
541
- /** @internal */
542
- export const GetAliasProtectionBypassAliasesResponseScope$outboundSchema:
543
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> =
544
- GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
545
-
546
- /**
547
- * @internal
548
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
549
- */
550
- export namespace GetAliasProtectionBypassAliasesResponseScope$ {
551
- /** @deprecated use `GetAliasProtectionBypassAliasesResponseScope$inboundSchema` instead. */
552
- export const inboundSchema =
553
- GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
554
- /** @deprecated use `GetAliasProtectionBypassAliasesResponseScope$outboundSchema` instead. */
555
- export const outboundSchema =
556
- GetAliasProtectionBypassAliasesResponseScope$outboundSchema;
557
- }
558
-
559
- /** @internal */
560
- export const ProtectionBypass3$inboundSchema: z.ZodType<
561
- ProtectionBypass3,
562
- z.ZodTypeDef,
563
- unknown
564
- > = z.object({
565
- createdAt: z.number(),
566
- createdBy: z.string(),
567
- scope: GetAliasProtectionBypassAliasesResponseScope$inboundSchema,
568
- });
569
-
570
- /** @internal */
571
- export type ProtectionBypass3$Outbound = {
572
- createdAt: number;
573
- createdBy: string;
574
- scope: string;
575
- };
576
-
577
- /** @internal */
578
- export const ProtectionBypass3$outboundSchema: z.ZodType<
579
- ProtectionBypass3$Outbound,
580
- z.ZodTypeDef,
581
- ProtectionBypass3
582
- > = z.object({
583
- createdAt: z.number(),
584
- createdBy: z.string(),
585
- scope: GetAliasProtectionBypassAliasesResponseScope$outboundSchema,
586
- });
587
-
588
- /**
589
- * @internal
590
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
591
- */
592
- export namespace ProtectionBypass3$ {
593
- /** @deprecated use `ProtectionBypass3$inboundSchema` instead. */
594
- export const inboundSchema = ProtectionBypass3$inboundSchema;
595
- /** @deprecated use `ProtectionBypass3$outboundSchema` instead. */
596
- export const outboundSchema = ProtectionBypass3$outboundSchema;
597
- /** @deprecated use `ProtectionBypass3$Outbound` instead. */
598
- export type Outbound = ProtectionBypass3$Outbound;
599
- }
600
-
601
- export function protectionBypass3ToJSON(
602
- protectionBypass3: ProtectionBypass3,
603
- ): string {
604
- return JSON.stringify(
605
- ProtectionBypass3$outboundSchema.parse(protectionBypass3),
606
- );
607
- }
608
-
609
- export function protectionBypass3FromJSON(
610
- jsonString: string,
611
- ): SafeParseResult<ProtectionBypass3, SDKValidationError> {
612
- return safeParse(
613
- jsonString,
614
- (x) => ProtectionBypass3$inboundSchema.parse(JSON.parse(x)),
615
- `Failed to parse 'ProtectionBypass3' from JSON`,
616
- );
617
- }
618
-
619
- /** @internal */
620
- export const ProtectionBypassAccess$inboundSchema: z.ZodNativeEnum<
621
- typeof ProtectionBypassAccess
622
- > = z.nativeEnum(ProtectionBypassAccess);
623
-
624
- /** @internal */
625
- export const ProtectionBypassAccess$outboundSchema: z.ZodNativeEnum<
626
- typeof ProtectionBypassAccess
627
- > = ProtectionBypassAccess$inboundSchema;
628
-
629
- /**
630
- * @internal
631
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
632
- */
633
- export namespace ProtectionBypassAccess$ {
634
- /** @deprecated use `ProtectionBypassAccess$inboundSchema` instead. */
635
- export const inboundSchema = ProtectionBypassAccess$inboundSchema;
636
- /** @deprecated use `ProtectionBypassAccess$outboundSchema` instead. */
637
- export const outboundSchema = ProtectionBypassAccess$outboundSchema;
638
- }
639
-
640
- /** @internal */
641
- export const GetAliasProtectionBypassAliasesScope$inboundSchema:
642
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> = z.nativeEnum(
643
- GetAliasProtectionBypassAliasesScope,
644
- );
645
-
646
- /** @internal */
647
- export const GetAliasProtectionBypassAliasesScope$outboundSchema:
648
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> =
649
- GetAliasProtectionBypassAliasesScope$inboundSchema;
650
-
651
- /**
652
- * @internal
653
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
654
- */
655
- export namespace GetAliasProtectionBypassAliasesScope$ {
656
- /** @deprecated use `GetAliasProtectionBypassAliasesScope$inboundSchema` instead. */
657
- export const inboundSchema =
658
- GetAliasProtectionBypassAliasesScope$inboundSchema;
659
- /** @deprecated use `GetAliasProtectionBypassAliasesScope$outboundSchema` instead. */
660
- export const outboundSchema =
661
- GetAliasProtectionBypassAliasesScope$outboundSchema;
662
- }
663
-
664
- /** @internal */
665
- export const GetAliasProtectionBypass2$inboundSchema: z.ZodType<
666
- GetAliasProtectionBypass2,
667
- z.ZodTypeDef,
668
- unknown
669
- > = z.object({
670
- createdAt: z.number(),
671
- lastUpdatedAt: z.number(),
672
- lastUpdatedBy: z.string(),
673
- access: ProtectionBypassAccess$inboundSchema,
674
- scope: GetAliasProtectionBypassAliasesScope$inboundSchema,
675
- });
676
-
677
- /** @internal */
678
- export type GetAliasProtectionBypass2$Outbound = {
679
- createdAt: number;
680
- lastUpdatedAt: number;
681
- lastUpdatedBy: string;
682
- access: string;
683
- scope: string;
684
- };
685
-
686
- /** @internal */
687
- export const GetAliasProtectionBypass2$outboundSchema: z.ZodType<
688
- GetAliasProtectionBypass2$Outbound,
689
- z.ZodTypeDef,
690
- GetAliasProtectionBypass2
691
- > = z.object({
692
- createdAt: z.number(),
693
- lastUpdatedAt: z.number(),
694
- lastUpdatedBy: z.string(),
695
- access: ProtectionBypassAccess$outboundSchema,
696
- scope: GetAliasProtectionBypassAliasesScope$outboundSchema,
697
- });
698
-
699
- /**
700
- * @internal
701
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
702
- */
703
- export namespace GetAliasProtectionBypass2$ {
704
- /** @deprecated use `GetAliasProtectionBypass2$inboundSchema` instead. */
705
- export const inboundSchema = GetAliasProtectionBypass2$inboundSchema;
706
- /** @deprecated use `GetAliasProtectionBypass2$outboundSchema` instead. */
707
- export const outboundSchema = GetAliasProtectionBypass2$outboundSchema;
708
- /** @deprecated use `GetAliasProtectionBypass2$Outbound` instead. */
709
- export type Outbound = GetAliasProtectionBypass2$Outbound;
710
- }
711
-
712
- export function getAliasProtectionBypass2ToJSON(
713
- getAliasProtectionBypass2: GetAliasProtectionBypass2,
714
- ): string {
715
- return JSON.stringify(
716
- GetAliasProtectionBypass2$outboundSchema.parse(getAliasProtectionBypass2),
717
- );
718
- }
719
-
720
- export function getAliasProtectionBypass2FromJSON(
721
- jsonString: string,
722
- ): SafeParseResult<GetAliasProtectionBypass2, SDKValidationError> {
723
- return safeParse(
724
- jsonString,
725
- (x) => GetAliasProtectionBypass2$inboundSchema.parse(JSON.parse(x)),
726
- `Failed to parse 'GetAliasProtectionBypass2' from JSON`,
727
- );
728
- }
729
-
730
- /** @internal */
731
- export const GetAliasProtectionBypassScope$inboundSchema: z.ZodNativeEnum<
732
- typeof GetAliasProtectionBypassScope
733
- > = z.nativeEnum(GetAliasProtectionBypassScope);
734
-
735
- /** @internal */
736
- export const GetAliasProtectionBypassScope$outboundSchema: z.ZodNativeEnum<
737
- typeof GetAliasProtectionBypassScope
738
- > = GetAliasProtectionBypassScope$inboundSchema;
739
-
740
- /**
741
- * @internal
742
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
743
- */
744
- export namespace GetAliasProtectionBypassScope$ {
745
- /** @deprecated use `GetAliasProtectionBypassScope$inboundSchema` instead. */
746
- export const inboundSchema = GetAliasProtectionBypassScope$inboundSchema;
747
- /** @deprecated use `GetAliasProtectionBypassScope$outboundSchema` instead. */
748
- export const outboundSchema = GetAliasProtectionBypassScope$outboundSchema;
749
- }
750
-
751
- /** @internal */
752
- export const GetAliasProtectionBypass1$inboundSchema: z.ZodType<
753
- GetAliasProtectionBypass1,
754
- z.ZodTypeDef,
755
- unknown
756
- > = z.object({
757
- createdAt: z.number(),
758
- createdBy: z.string(),
759
- scope: GetAliasProtectionBypassScope$inboundSchema,
760
- });
761
-
762
- /** @internal */
763
- export type GetAliasProtectionBypass1$Outbound = {
764
- createdAt: number;
765
- createdBy: string;
766
- scope: string;
767
- };
768
-
769
- /** @internal */
770
- export const GetAliasProtectionBypass1$outboundSchema: z.ZodType<
771
- GetAliasProtectionBypass1$Outbound,
772
- z.ZodTypeDef,
773
- GetAliasProtectionBypass1
774
- > = z.object({
775
- createdAt: z.number(),
776
- createdBy: z.string(),
777
- scope: GetAliasProtectionBypassScope$outboundSchema,
778
- });
779
-
780
- /**
781
- * @internal
782
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
783
- */
784
- export namespace GetAliasProtectionBypass1$ {
785
- /** @deprecated use `GetAliasProtectionBypass1$inboundSchema` instead. */
786
- export const inboundSchema = GetAliasProtectionBypass1$inboundSchema;
787
- /** @deprecated use `GetAliasProtectionBypass1$outboundSchema` instead. */
788
- export const outboundSchema = GetAliasProtectionBypass1$outboundSchema;
789
- /** @deprecated use `GetAliasProtectionBypass1$Outbound` instead. */
790
- export type Outbound = GetAliasProtectionBypass1$Outbound;
791
- }
792
-
793
- export function getAliasProtectionBypass1ToJSON(
794
- getAliasProtectionBypass1: GetAliasProtectionBypass1,
795
- ): string {
796
- return JSON.stringify(
797
- GetAliasProtectionBypass1$outboundSchema.parse(getAliasProtectionBypass1),
798
- );
799
- }
800
-
801
- export function getAliasProtectionBypass1FromJSON(
802
- jsonString: string,
803
- ): SafeParseResult<GetAliasProtectionBypass1, SDKValidationError> {
804
- return safeParse(
805
- jsonString,
806
- (x) => GetAliasProtectionBypass1$inboundSchema.parse(JSON.parse(x)),
807
- `Failed to parse 'GetAliasProtectionBypass1' from JSON`,
808
- );
809
- }
810
-
811
- /** @internal */
812
- export const GetAliasProtectionBypass$inboundSchema: z.ZodType<
813
- GetAliasProtectionBypass,
814
- z.ZodTypeDef,
815
- unknown
816
- > = z.union([
817
- z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
818
- z.lazy(() => ProtectionBypass4$inboundSchema),
819
- z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
820
- z.lazy(() => ProtectionBypass3$inboundSchema),
821
- ]);
822
-
823
- /** @internal */
824
- export type GetAliasProtectionBypass$Outbound =
825
- | GetAliasProtectionBypass2$Outbound
826
- | ProtectionBypass4$Outbound
827
- | GetAliasProtectionBypass1$Outbound
828
- | ProtectionBypass3$Outbound;
829
-
830
- /** @internal */
831
- export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
832
- GetAliasProtectionBypass$Outbound,
833
- z.ZodTypeDef,
834
- GetAliasProtectionBypass
835
- > = z.union([
836
- z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
837
- z.lazy(() => ProtectionBypass4$outboundSchema),
838
- z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
839
- z.lazy(() => ProtectionBypass3$outboundSchema),
840
- ]);
841
-
842
- /**
843
- * @internal
844
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
845
- */
846
- export namespace GetAliasProtectionBypass$ {
847
- /** @deprecated use `GetAliasProtectionBypass$inboundSchema` instead. */
848
- export const inboundSchema = GetAliasProtectionBypass$inboundSchema;
849
- /** @deprecated use `GetAliasProtectionBypass$outboundSchema` instead. */
850
- export const outboundSchema = GetAliasProtectionBypass$outboundSchema;
851
- /** @deprecated use `GetAliasProtectionBypass$Outbound` instead. */
852
- export type Outbound = GetAliasProtectionBypass$Outbound;
853
- }
854
-
855
- export function getAliasProtectionBypassToJSON(
856
- getAliasProtectionBypass: GetAliasProtectionBypass,
857
- ): string {
858
- return JSON.stringify(
859
- GetAliasProtectionBypass$outboundSchema.parse(getAliasProtectionBypass),
860
- );
861
- }
862
-
863
- export function getAliasProtectionBypassFromJSON(
864
- jsonString: string,
865
- ): SafeParseResult<GetAliasProtectionBypass, SDKValidationError> {
866
- return safeParse(
867
- jsonString,
868
- (x) => GetAliasProtectionBypass$inboundSchema.parse(JSON.parse(x)),
869
- `Failed to parse 'GetAliasProtectionBypass' from JSON`,
870
- );
871
- }
872
-
873
- /** @internal */
874
- export const DefaultApp$inboundSchema: z.ZodType<
875
- DefaultApp,
876
- z.ZodTypeDef,
877
- unknown
878
- > = z.object({
879
- projectId: z.string(),
880
- });
881
-
882
- /** @internal */
883
- export type DefaultApp$Outbound = {
884
- projectId: string;
885
- };
886
-
887
- /** @internal */
888
- export const DefaultApp$outboundSchema: z.ZodType<
889
- DefaultApp$Outbound,
890
- z.ZodTypeDef,
891
- DefaultApp
892
- > = z.object({
893
- projectId: z.string(),
894
- });
895
-
896
- /**
897
- * @internal
898
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
899
- */
900
- export namespace DefaultApp$ {
901
- /** @deprecated use `DefaultApp$inboundSchema` instead. */
902
- export const inboundSchema = DefaultApp$inboundSchema;
903
- /** @deprecated use `DefaultApp$outboundSchema` instead. */
904
- export const outboundSchema = DefaultApp$outboundSchema;
905
- /** @deprecated use `DefaultApp$Outbound` instead. */
906
- export type Outbound = DefaultApp$Outbound;
907
- }
908
-
909
- export function defaultAppToJSON(defaultApp: DefaultApp): string {
910
- return JSON.stringify(DefaultApp$outboundSchema.parse(defaultApp));
911
- }
912
-
913
- export function defaultAppFromJSON(
914
- jsonString: string,
915
- ): SafeParseResult<DefaultApp, SDKValidationError> {
916
- return safeParse(
917
- jsonString,
918
- (x) => DefaultApp$inboundSchema.parse(JSON.parse(x)),
919
- `Failed to parse 'DefaultApp' from JSON`,
920
- );
921
- }
922
-
923
- /** @internal */
924
- export const Applications$inboundSchema: z.ZodType<
925
- Applications,
926
- z.ZodTypeDef,
927
- unknown
928
- > = z.object({
929
- projectId: z.string(),
930
- fallbackHost: z.string(),
931
- deploymentId: z.string().optional(),
932
- deploymentUrl: z.string().optional(),
933
- });
934
-
935
- /** @internal */
936
- export type Applications$Outbound = {
937
- projectId: string;
938
- fallbackHost: string;
939
- deploymentId?: string | undefined;
940
- deploymentUrl?: string | undefined;
941
- };
942
-
943
- /** @internal */
944
- export const Applications$outboundSchema: z.ZodType<
945
- Applications$Outbound,
946
- z.ZodTypeDef,
947
- Applications
948
- > = z.object({
949
- projectId: z.string(),
950
- fallbackHost: z.string(),
951
- deploymentId: z.string().optional(),
952
- deploymentUrl: z.string().optional(),
953
- });
954
-
955
- /**
956
- * @internal
957
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
958
- */
959
- export namespace Applications$ {
960
- /** @deprecated use `Applications$inboundSchema` instead. */
961
- export const inboundSchema = Applications$inboundSchema;
962
- /** @deprecated use `Applications$outboundSchema` instead. */
963
- export const outboundSchema = Applications$outboundSchema;
964
- /** @deprecated use `Applications$Outbound` instead. */
965
- export type Outbound = Applications$Outbound;
966
- }
967
-
968
- export function applicationsToJSON(applications: Applications): string {
969
- return JSON.stringify(Applications$outboundSchema.parse(applications));
970
- }
971
-
972
- export function applicationsFromJSON(
973
- jsonString: string,
974
- ): SafeParseResult<Applications, SDKValidationError> {
975
- return safeParse(
976
- jsonString,
977
- (x) => Applications$inboundSchema.parse(JSON.parse(x)),
978
- `Failed to parse 'Applications' from JSON`,
979
- );
980
- }
981
-
982
- /** @internal */
983
- export const GetAliasMicrofrontends$inboundSchema: z.ZodType<
984
- GetAliasMicrofrontends,
985
- z.ZodTypeDef,
986
- unknown
987
- > = z.object({
988
- defaultApp: z.lazy(() => DefaultApp$inboundSchema),
989
- applications: z.array(z.lazy(() => Applications$inboundSchema)),
990
- });
991
-
992
- /** @internal */
993
- export type GetAliasMicrofrontends$Outbound = {
994
- defaultApp: DefaultApp$Outbound;
995
- applications: Array<Applications$Outbound>;
996
- };
997
-
998
- /** @internal */
999
- export const GetAliasMicrofrontends$outboundSchema: z.ZodType<
1000
- GetAliasMicrofrontends$Outbound,
1001
- z.ZodTypeDef,
1002
- GetAliasMicrofrontends
1003
- > = z.object({
1004
- defaultApp: z.lazy(() => DefaultApp$outboundSchema),
1005
- applications: z.array(z.lazy(() => Applications$outboundSchema)),
1006
- });
1007
-
1008
- /**
1009
- * @internal
1010
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1011
- */
1012
- export namespace GetAliasMicrofrontends$ {
1013
- /** @deprecated use `GetAliasMicrofrontends$inboundSchema` instead. */
1014
- export const inboundSchema = GetAliasMicrofrontends$inboundSchema;
1015
- /** @deprecated use `GetAliasMicrofrontends$outboundSchema` instead. */
1016
- export const outboundSchema = GetAliasMicrofrontends$outboundSchema;
1017
- /** @deprecated use `GetAliasMicrofrontends$Outbound` instead. */
1018
- export type Outbound = GetAliasMicrofrontends$Outbound;
1019
- }
1020
-
1021
- export function getAliasMicrofrontendsToJSON(
1022
- getAliasMicrofrontends: GetAliasMicrofrontends,
1023
- ): string {
1024
- return JSON.stringify(
1025
- GetAliasMicrofrontends$outboundSchema.parse(getAliasMicrofrontends),
1026
- );
1027
- }
1028
-
1029
- export function getAliasMicrofrontendsFromJSON(
1030
- jsonString: string,
1031
- ): SafeParseResult<GetAliasMicrofrontends, SDKValidationError> {
1032
- return safeParse(
1033
- jsonString,
1034
- (x) => GetAliasMicrofrontends$inboundSchema.parse(JSON.parse(x)),
1035
- `Failed to parse 'GetAliasMicrofrontends' from JSON`,
1036
- );
1037
- }
1038
-
1039
- /** @internal */
1040
- export const GetAliasResponseBody$inboundSchema: z.ZodType<
1041
- GetAliasResponseBody,
1042
- z.ZodTypeDef,
1043
- unknown
1044
- > = z.object({
1045
- alias: z.string(),
1046
- created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
1047
- createdAt: z.nullable(z.number()).optional(),
1048
- creator: z.lazy(() => GetAliasCreator$inboundSchema).optional(),
1049
- deletedAt: z.nullable(z.number()).optional(),
1050
- deployment: z.lazy(() => GetAliasDeployment$inboundSchema).optional(),
1051
- deploymentId: z.nullable(z.string()),
1052
- projectId: z.nullable(z.string()),
1053
- redirect: z.nullable(z.string()).optional(),
1054
- redirectStatusCode: z.nullable(z.number()).optional(),
1055
- uid: z.string(),
1056
- updatedAt: z.nullable(z.number()).optional(),
1057
- protectionBypass: z.record(
1058
- z.union([
1059
- z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
1060
- z.lazy(() => ProtectionBypass4$inboundSchema),
1061
- z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
1062
- z.lazy(() => ProtectionBypass3$inboundSchema),
1063
- ]),
1064
- ).optional(),
1065
- microfrontends: z.lazy(() => GetAliasMicrofrontends$inboundSchema).optional(),
1066
- });
1067
-
1068
- /** @internal */
1069
- export type GetAliasResponseBody$Outbound = {
1070
- alias: string;
1071
- created: string;
1072
- createdAt?: number | null | undefined;
1073
- creator?: GetAliasCreator$Outbound | undefined;
1074
- deletedAt?: number | null | undefined;
1075
- deployment?: GetAliasDeployment$Outbound | undefined;
1076
- deploymentId: string | null;
1077
- projectId: string | null;
1078
- redirect?: string | null | undefined;
1079
- redirectStatusCode?: number | null | undefined;
1080
- uid: string;
1081
- updatedAt?: number | null | undefined;
1082
- protectionBypass?: {
1083
- [k: string]:
1084
- | GetAliasProtectionBypass2$Outbound
1085
- | ProtectionBypass4$Outbound
1086
- | GetAliasProtectionBypass1$Outbound
1087
- | ProtectionBypass3$Outbound;
1088
- } | undefined;
1089
- microfrontends?: GetAliasMicrofrontends$Outbound | undefined;
1090
- };
1091
-
1092
- /** @internal */
1093
- export const GetAliasResponseBody$outboundSchema: z.ZodType<
1094
- GetAliasResponseBody$Outbound,
1095
- z.ZodTypeDef,
1096
- GetAliasResponseBody
1097
- > = z.object({
1098
- alias: z.string(),
1099
- created: z.date().transform(v => v.toISOString()),
1100
- createdAt: z.nullable(z.number()).optional(),
1101
- creator: z.lazy(() => GetAliasCreator$outboundSchema).optional(),
1102
- deletedAt: z.nullable(z.number()).optional(),
1103
- deployment: z.lazy(() => GetAliasDeployment$outboundSchema).optional(),
1104
- deploymentId: z.nullable(z.string()),
1105
- projectId: z.nullable(z.string()),
1106
- redirect: z.nullable(z.string()).optional(),
1107
- redirectStatusCode: z.nullable(z.number()).optional(),
1108
- uid: z.string(),
1109
- updatedAt: z.nullable(z.number()).optional(),
1110
- protectionBypass: z.record(
1111
- z.union([
1112
- z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
1113
- z.lazy(() => ProtectionBypass4$outboundSchema),
1114
- z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
1115
- z.lazy(() => ProtectionBypass3$outboundSchema),
1116
- ]),
1117
- ).optional(),
1118
- microfrontends: z.lazy(() => GetAliasMicrofrontends$outboundSchema)
1119
- .optional(),
1120
- });
1121
-
1122
- /**
1123
- * @internal
1124
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1125
- */
1126
- export namespace GetAliasResponseBody$ {
1127
- /** @deprecated use `GetAliasResponseBody$inboundSchema` instead. */
1128
- export const inboundSchema = GetAliasResponseBody$inboundSchema;
1129
- /** @deprecated use `GetAliasResponseBody$outboundSchema` instead. */
1130
- export const outboundSchema = GetAliasResponseBody$outboundSchema;
1131
- /** @deprecated use `GetAliasResponseBody$Outbound` instead. */
1132
- export type Outbound = GetAliasResponseBody$Outbound;
1133
- }
1134
-
1135
- export function getAliasResponseBodyToJSON(
1136
- getAliasResponseBody: GetAliasResponseBody,
1137
- ): string {
1138
- return JSON.stringify(
1139
- GetAliasResponseBody$outboundSchema.parse(getAliasResponseBody),
1140
- );
1141
- }
1142
-
1143
- export function getAliasResponseBodyFromJSON(
1144
- jsonString: string,
1145
- ): SafeParseResult<GetAliasResponseBody, SDKValidationError> {
1146
- return safeParse(
1147
- jsonString,
1148
- (x) => GetAliasResponseBody$inboundSchema.parse(JSON.parse(x)),
1149
- `Failed to parse 'GetAliasResponseBody' from JSON`,
1150
- );
1151
- }