@vercel/sdk 1.10.3 → 1.10.5

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 (237) hide show
  1. package/README.md +4 -2
  2. package/bin/mcp-server.js +5742 -1519
  3. package/bin/mcp-server.js.map +44 -41
  4. package/docs/sdks/aliases/README.md +1 -1
  5. package/docs/sdks/integrations/README.md +81 -0
  6. package/docs/sdks/projects/README.md +6 -0
  7. package/docs/sdks/teams/README.md +0 -2
  8. package/esm/__tests__/accessgroups.test.js +6 -0
  9. package/esm/__tests__/accessgroups.test.js.map +1 -1
  10. package/esm/__tests__/aliases.test.js +1 -20
  11. package/esm/__tests__/aliases.test.js.map +1 -1
  12. package/esm/__tests__/deployments.test.js +2 -2
  13. package/esm/__tests__/deployments.test.js.map +1 -1
  14. package/esm/__tests__/domains.test.js +6 -0
  15. package/esm/__tests__/domains.test.js.map +1 -1
  16. package/esm/__tests__/edgeconfig.test.js +18 -0
  17. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  18. package/esm/__tests__/integrations.test.js +25 -0
  19. package/esm/__tests__/integrations.test.js.map +1 -1
  20. package/esm/__tests__/rollingrelease.test.js +2 -6
  21. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  22. package/esm/funcs/aliasesGetAlias.d.ts +2 -2
  23. package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
  24. package/esm/funcs/aliasesGetAlias.js +2 -2
  25. package/esm/funcs/aliasesGetAlias.js.map +1 -1
  26. package/esm/funcs/integrationsGetConfigurationProducts.d.ts +20 -0
  27. package/esm/funcs/integrationsGetConfigurationProducts.d.ts.map +1 -0
  28. package/esm/funcs/integrationsGetConfigurationProducts.js +94 -0
  29. package/esm/funcs/integrationsGetConfigurationProducts.js.map +1 -0
  30. package/esm/funcs/projectsCreateProject.d.ts +3 -1
  31. package/esm/funcs/projectsCreateProject.d.ts.map +1 -1
  32. package/esm/funcs/projectsCreateProject.js +16 -2
  33. package/esm/funcs/projectsCreateProject.js.map +1 -1
  34. package/esm/funcs/projectsCreateProjectEnv.d.ts +3 -1
  35. package/esm/funcs/projectsCreateProjectEnv.d.ts.map +1 -1
  36. package/esm/funcs/projectsCreateProjectEnv.js +15 -2
  37. package/esm/funcs/projectsCreateProjectEnv.js.map +1 -1
  38. package/esm/funcs/projectsEditProjectEnv.d.ts +3 -1
  39. package/esm/funcs/projectsEditProjectEnv.d.ts.map +1 -1
  40. package/esm/funcs/projectsEditProjectEnv.js +4 -2
  41. package/esm/funcs/projectsEditProjectEnv.js.map +1 -1
  42. package/esm/lib/config.d.ts +3 -3
  43. package/esm/lib/config.js +3 -3
  44. package/esm/lib/security.d.ts.map +1 -1
  45. package/esm/lib/security.js.map +1 -1
  46. package/esm/mcp-server/mcp-server.js +1 -1
  47. package/esm/mcp-server/server.d.ts.map +1 -1
  48. package/esm/mcp-server/server.js +3 -1
  49. package/esm/mcp-server/server.js.map +1 -1
  50. package/esm/mcp-server/tools/integrationsGetConfigurationProducts.d.ts +7 -0
  51. package/esm/mcp-server/tools/integrationsGetConfigurationProducts.d.ts.map +1 -0
  52. package/esm/mcp-server/tools/integrationsGetConfigurationProducts.js +28 -0
  53. package/esm/mcp-server/tools/integrationsGetConfigurationProducts.js.map +1 -0
  54. package/esm/models/canceldeploymentop.d.ts +10 -4
  55. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  56. package/esm/models/canceldeploymentop.js +6 -4
  57. package/esm/models/canceldeploymentop.js.map +1 -1
  58. package/esm/models/createaccessgroupop.d.ts +24 -0
  59. package/esm/models/createaccessgroupop.d.ts.map +1 -1
  60. package/esm/models/createaccessgroupop.js +20 -0
  61. package/esm/models/createaccessgroupop.js.map +1 -1
  62. package/esm/models/createdeploymentop.d.ts +31 -19
  63. package/esm/models/createdeploymentop.d.ts.map +1 -1
  64. package/esm/models/createdeploymentop.js +23 -19
  65. package/esm/models/createdeploymentop.js.map +1 -1
  66. package/esm/models/createedgeconfigop.d.ts +17 -12
  67. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  68. package/esm/models/createedgeconfigop.js +14 -12
  69. package/esm/models/createedgeconfigop.js.map +1 -1
  70. package/esm/models/createprojectenvop.d.ts +12 -12
  71. package/esm/models/createprojectenvop.d.ts.map +1 -1
  72. package/esm/models/createprojectenvop.js +12 -12
  73. package/esm/models/createprojectenvop.js.map +1 -1
  74. package/esm/models/createprojectop.d.ts +81 -62
  75. package/esm/models/createprojectop.d.ts.map +1 -1
  76. package/esm/models/createprojectop.js +74 -68
  77. package/esm/models/createprojectop.js.map +1 -1
  78. package/esm/models/filterprojectenvsop.d.ts +20 -20
  79. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  80. package/esm/models/filterprojectenvsop.js +20 -24
  81. package/esm/models/filterprojectenvsop.js.map +1 -1
  82. package/esm/models/getaliasop.d.ts +656 -0
  83. package/esm/models/getaliasop.d.ts.map +1 -1
  84. package/esm/models/getaliasop.js +548 -0
  85. package/esm/models/getaliasop.js.map +1 -1
  86. package/esm/models/getconfigurationproductsop.d.ts +6435 -0
  87. package/esm/models/getconfigurationproductsop.d.ts.map +1 -0
  88. package/esm/models/getconfigurationproductsop.js +7314 -0
  89. package/esm/models/getconfigurationproductsop.js.map +1 -0
  90. package/esm/models/getconfigurationsop.d.ts +15 -15
  91. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  92. package/esm/models/getconfigurationsop.js +15 -15
  93. package/esm/models/getconfigurationsop.js.map +1 -1
  94. package/esm/models/getdeploymentop.d.ts +66 -60
  95. package/esm/models/getdeploymentop.d.ts.map +1 -1
  96. package/esm/models/getdeploymentop.js +54 -52
  97. package/esm/models/getdeploymentop.js.map +1 -1
  98. package/esm/models/getdeploymentsop.d.ts +49 -0
  99. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  100. package/esm/models/getdeploymentsop.js +29 -0
  101. package/esm/models/getdeploymentsop.js.map +1 -1
  102. package/esm/models/getdomainconfigop.d.ts +24 -12
  103. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  104. package/esm/models/getdomainconfigop.js +24 -16
  105. package/esm/models/getdomainconfigop.js.map +1 -1
  106. package/esm/models/getedgeconfigop.d.ts +17 -12
  107. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  108. package/esm/models/getedgeconfigop.js +14 -12
  109. package/esm/models/getedgeconfigop.js.map +1 -1
  110. package/esm/models/getfirewallconfigop.d.ts +6 -0
  111. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  112. package/esm/models/getfirewallconfigop.js +2 -0
  113. package/esm/models/getfirewallconfigop.js.map +1 -1
  114. package/esm/models/getprojectmembersop.d.ts +8 -8
  115. package/esm/models/getprojectmembersop.d.ts.map +1 -1
  116. package/esm/models/getprojectmembersop.js +12 -12
  117. package/esm/models/getprojectmembersop.js.map +1 -1
  118. package/esm/models/getprojectsop.d.ts +70 -62
  119. package/esm/models/getprojectsop.d.ts.map +1 -1
  120. package/esm/models/getprojectsop.js +70 -68
  121. package/esm/models/getprojectsop.js.map +1 -1
  122. package/esm/models/getteammembersop.d.ts +4 -4
  123. package/esm/models/getteammembersop.d.ts.map +1 -1
  124. package/esm/models/getteammembersop.js +4 -4
  125. package/esm/models/getteammembersop.js.map +1 -1
  126. package/esm/models/getwebhooksop.d.ts +6 -0
  127. package/esm/models/getwebhooksop.d.ts.map +1 -1
  128. package/esm/models/getwebhooksop.js +2 -0
  129. package/esm/models/getwebhooksop.js.map +1 -1
  130. package/esm/models/inviteusertoteamop.d.ts +32 -223
  131. package/esm/models/inviteusertoteamop.d.ts.map +1 -1
  132. package/esm/models/inviteusertoteamop.js +42 -182
  133. package/esm/models/inviteusertoteamop.js.map +1 -1
  134. package/esm/models/listaliasesop.d.ts +68 -66
  135. package/esm/models/listaliasesop.d.ts.map +1 -1
  136. package/esm/models/listaliasesop.js +80 -78
  137. package/esm/models/listaliasesop.js.map +1 -1
  138. package/esm/models/listdeploymentaliasesop.d.ts +32 -30
  139. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  140. package/esm/models/listdeploymentaliasesop.js +36 -34
  141. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  142. package/esm/models/patchurlprotectionbypassop.d.ts +5 -0
  143. package/esm/models/patchurlprotectionbypassop.d.ts.map +1 -1
  144. package/esm/models/patchurlprotectionbypassop.js +2 -0
  145. package/esm/models/patchurlprotectionbypassop.js.map +1 -1
  146. package/esm/models/putfirewallconfigop.d.ts +9 -0
  147. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  148. package/esm/models/putfirewallconfigop.js +3 -0
  149. package/esm/models/putfirewallconfigop.js.map +1 -1
  150. package/esm/models/team.d.ts +23 -0
  151. package/esm/models/team.d.ts.map +1 -1
  152. package/esm/models/team.js +23 -0
  153. package/esm/models/team.js.map +1 -1
  154. package/esm/models/updateaccessgroupop.d.ts +2 -2
  155. package/esm/models/updateaccessgroupop.d.ts.map +1 -1
  156. package/esm/models/updateaccessgroupop.js +2 -3
  157. package/esm/models/updateaccessgroupop.js.map +1 -1
  158. package/esm/models/updateedgeconfigop.d.ts +17 -12
  159. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  160. package/esm/models/updateedgeconfigop.js +14 -12
  161. package/esm/models/updateedgeconfigop.js.map +1 -1
  162. package/esm/models/updatefirewallconfigop.d.ts +78 -4
  163. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  164. package/esm/models/updatefirewallconfigop.js +50 -4
  165. package/esm/models/updatefirewallconfigop.js.map +1 -1
  166. package/esm/models/updateprojectdatacacheop.d.ts +70 -62
  167. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  168. package/esm/models/updateprojectdatacacheop.js +70 -70
  169. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  170. package/esm/models/updateprojectop.d.ts +76 -62
  171. package/esm/models/updateprojectop.d.ts.map +1 -1
  172. package/esm/models/updateprojectop.js +72 -68
  173. package/esm/models/updateprojectop.js.map +1 -1
  174. package/esm/models/userevent.d.ts +56 -56
  175. package/esm/models/userevent.d.ts.map +1 -1
  176. package/esm/models/userevent.js +56 -62
  177. package/esm/models/userevent.js.map +1 -1
  178. package/esm/sdk/aliases.d.ts +2 -2
  179. package/esm/sdk/aliases.d.ts.map +1 -1
  180. package/esm/sdk/integrations.d.ts +8 -0
  181. package/esm/sdk/integrations.d.ts.map +1 -1
  182. package/esm/sdk/integrations.js +10 -0
  183. package/esm/sdk/integrations.js.map +1 -1
  184. package/examples/package-lock.json +1 -1
  185. package/jsr.json +1 -1
  186. package/package.json +1 -1
  187. package/src/__tests__/accessgroups.test.ts +6 -0
  188. package/src/__tests__/aliases.test.ts +1 -20
  189. package/src/__tests__/deployments.test.ts +2 -2
  190. package/src/__tests__/domains.test.ts +6 -0
  191. package/src/__tests__/edgeconfig.test.ts +18 -0
  192. package/src/__tests__/integrations.test.ts +28 -0
  193. package/src/__tests__/rollingrelease.test.ts +2 -6
  194. package/src/funcs/aliasesGetAlias.ts +6 -4
  195. package/src/funcs/integrationsGetConfigurationProducts.ts +207 -0
  196. package/src/funcs/projectsCreateProject.ts +30 -2
  197. package/src/funcs/projectsCreateProjectEnv.ts +29 -2
  198. package/src/funcs/projectsEditProjectEnv.ts +18 -2
  199. package/src/lib/config.ts +3 -3
  200. package/src/lib/security.ts +4 -1
  201. package/src/mcp-server/mcp-server.ts +1 -1
  202. package/src/mcp-server/server.ts +3 -1
  203. package/src/mcp-server/tools/integrationsGetConfigurationProducts.ts +39 -0
  204. package/src/models/canceldeploymentop.ts +10 -8
  205. package/src/models/createaccessgroupop.ts +32 -0
  206. package/src/models/createdeploymentop.ts +73 -47
  207. package/src/models/createedgeconfigop.ts +31 -24
  208. package/src/models/createprojectenvop.ts +24 -24
  209. package/src/models/createprojectop.ts +149 -136
  210. package/src/models/filterprojectenvsop.ts +42 -46
  211. package/src/models/getaliasop.ts +1266 -0
  212. package/src/models/getconfigurationproductsop.ts +16739 -0
  213. package/src/models/getconfigurationsop.ts +28 -24
  214. package/src/models/getdeploymentop.ts +91 -89
  215. package/src/models/getdeploymentsop.ts +57 -0
  216. package/src/models/getdomainconfigop.ts +48 -28
  217. package/src/models/getedgeconfigop.ts +31 -24
  218. package/src/models/getfirewallconfigop.ts +2 -0
  219. package/src/models/getprojectmembersop.ts +16 -19
  220. package/src/models/getprojectsop.ts +140 -136
  221. package/src/models/getteammembersop.ts +8 -8
  222. package/src/models/getwebhooksop.ts +2 -0
  223. package/src/models/inviteusertoteamop.ts +69 -330
  224. package/src/models/listaliasesop.ts +147 -124
  225. package/src/models/listdeploymentaliasesop.ts +74 -58
  226. package/src/models/patchurlprotectionbypassop.ts +7 -0
  227. package/src/models/putfirewallconfigop.ts +3 -0
  228. package/src/models/team.ts +54 -0
  229. package/src/models/updateaccessgroupop.ts +4 -5
  230. package/src/models/updateedgeconfigop.ts +31 -24
  231. package/src/models/updatefirewallconfigop.ts +73 -8
  232. package/src/models/updateprojectdatacacheop.ts +137 -135
  233. package/src/models/updateprojectop.ts +142 -136
  234. package/src/models/userevent.ts +112 -124
  235. package/src/sdk/aliases.ts +2 -2
  236. package/src/sdk/integrations.ts +22 -0
  237. package/vercel-spec.json +3704 -586
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
7
8
  import { Result as SafeParseResult } from "../types/fp.js";
8
9
  import { SDKValidationError } from "./sdkvalidationerror.js";
9
10
 
@@ -38,6 +39,266 @@ export type GetAliasRequest = {
38
39
  slug?: string | undefined;
39
40
  };
40
41
 
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
+ expires?: number | undefined;
150
+ };
151
+
152
+ export type GetAliasProtectionBypass =
153
+ | GetAliasProtectionBypass2
154
+ | ProtectionBypass4
155
+ | GetAliasProtectionBypass1
156
+ | ProtectionBypass3;
157
+
158
+ export type DefaultApp = {
159
+ projectId: string;
160
+ };
161
+
162
+ /**
163
+ * A list of the deployment routing information for each project.
164
+ */
165
+ export type Applications3 = {
166
+ /**
167
+ * This is the deployment for the same commit, it could be a cancelled deployment. The proxy will fallback to the branchDeploymentId and then the fallbackDeploymentId.
168
+ */
169
+ deploymentId?: string | undefined;
170
+ /**
171
+ * This is the latest non-cancelled deployment of the branch alias at the time the commit alias was created. It is possible there is no deployment for the branch, or this was set before the deployment was canceled, in which case this will point to a cancelled deployment, in either case the proxy will fallback to the fallbackDeploymentId.
172
+ */
173
+ branchDeploymentId?: string | undefined;
174
+ /**
175
+ * This is the deployment of the fallback host at the time the commit alias was created. It is possible for this to be a deleted deployment, in which case the proxy will show that the deployment is deleted. It will not use the fallbackHost, as a future deployment on the fallback host could be invalid for this deployment, and it could lead to confusion / incorrect behavior for the commit alias.
176
+ */
177
+ fallbackDeploymentId?: string | undefined;
178
+ /**
179
+ * Temporary for backwards compatibility. Can remove when metadata change is released
180
+ */
181
+ fallbackHost?: string | undefined;
182
+ branchAlias?: string | undefined;
183
+ /**
184
+ * The project ID of the microfrontends application.
185
+ */
186
+ projectId: string;
187
+ };
188
+
189
+ /**
190
+ * A list of the deployment routing information for each project.
191
+ */
192
+ export type Applications2 = {
193
+ /**
194
+ * This is always set. For branch aliases, it's used as the fallback if there is no deployment for the branch.
195
+ */
196
+ fallbackHost: string;
197
+ /**
198
+ * Could point to a branch without a deployment if the project was never deployed. The proxy will fallback to the fallbackHost if there is no deployment.
199
+ */
200
+ branchAlias: string;
201
+ /**
202
+ * The project ID of the microfrontends application.
203
+ */
204
+ projectId: string;
205
+ };
206
+
207
+ /**
208
+ * A list of the deployment routing information for each project.
209
+ */
210
+ export type Applications1 = {
211
+ /**
212
+ * This is always set. In production it is used as a pointer to each apps production deployment. For pre-production, it's used as the fallback if there is no deployment for the branch.
213
+ */
214
+ fallbackHost: string;
215
+ /**
216
+ * The project ID of the microfrontends application.
217
+ */
218
+ projectId: string;
219
+ };
220
+
221
+ export type Applications =
222
+ | Array<Applications1>
223
+ | Array<Applications2>
224
+ | Array<Applications3>;
225
+
226
+ /**
227
+ * The microfrontends for the alias including the routing configuration
228
+ */
229
+ export type GetAliasMicrofrontends = {
230
+ defaultApp: DefaultApp;
231
+ applications:
232
+ | Array<Applications1>
233
+ | Array<Applications2>
234
+ | Array<Applications3>;
235
+ };
236
+
237
+ export type GetAliasResponseBody = {
238
+ /**
239
+ * The alias name, it could be a `.vercel.app` subdomain or a custom domain
240
+ */
241
+ alias: string;
242
+ /**
243
+ * The date when the alias was created
244
+ */
245
+ created: Date;
246
+ /**
247
+ * The date when the alias was created in milliseconds since the UNIX epoch
248
+ */
249
+ createdAt?: number | undefined;
250
+ /**
251
+ * Information of the user who created the alias
252
+ */
253
+ creator?: GetAliasCreator | undefined;
254
+ /**
255
+ * The date when the alias was deleted in milliseconds since the UNIX epoch
256
+ */
257
+ deletedAt?: number | undefined;
258
+ /**
259
+ * A map with the deployment ID, URL and metadata
260
+ */
261
+ deployment?: GetAliasDeployment | undefined;
262
+ /**
263
+ * The deployment ID
264
+ */
265
+ deploymentId: string | null;
266
+ /**
267
+ * The unique identifier of the project
268
+ */
269
+ projectId: string | null;
270
+ /**
271
+ * Target destination domain for redirect when the alias is a redirect
272
+ */
273
+ redirect?: string | null | undefined;
274
+ /**
275
+ * Status code to be used on redirect
276
+ */
277
+ redirectStatusCode?: number | null | undefined;
278
+ /**
279
+ * The unique identifier of the alias
280
+ */
281
+ uid: string;
282
+ /**
283
+ * The date when the alias was updated in milliseconds since the UNIX epoch
284
+ */
285
+ updatedAt?: number | undefined;
286
+ /**
287
+ * The protection bypass for the alias
288
+ */
289
+ protectionBypass?: {
290
+ [k: string]:
291
+ | GetAliasProtectionBypass2
292
+ | ProtectionBypass4
293
+ | GetAliasProtectionBypass1
294
+ | ProtectionBypass3;
295
+ } | undefined;
296
+ /**
297
+ * The microfrontends for the alias including the routing configuration
298
+ */
299
+ microfrontends?: GetAliasMicrofrontends | undefined;
300
+ };
301
+
41
302
  /** @internal */
42
303
  export const GetAliasRequest$inboundSchema: z.ZodType<
43
304
  GetAliasRequest,
@@ -107,3 +368,1008 @@ export function getAliasRequestFromJSON(
107
368
  `Failed to parse 'GetAliasRequest' from JSON`,
108
369
  );
109
370
  }
371
+
372
+ /** @internal */
373
+ export const GetAliasCreator$inboundSchema: z.ZodType<
374
+ GetAliasCreator,
375
+ z.ZodTypeDef,
376
+ unknown
377
+ > = z.object({
378
+ uid: z.string(),
379
+ email: z.string(),
380
+ username: z.string(),
381
+ });
382
+
383
+ /** @internal */
384
+ export type GetAliasCreator$Outbound = {
385
+ uid: string;
386
+ email: string;
387
+ username: string;
388
+ };
389
+
390
+ /** @internal */
391
+ export const GetAliasCreator$outboundSchema: z.ZodType<
392
+ GetAliasCreator$Outbound,
393
+ z.ZodTypeDef,
394
+ GetAliasCreator
395
+ > = z.object({
396
+ uid: z.string(),
397
+ email: z.string(),
398
+ username: z.string(),
399
+ });
400
+
401
+ /**
402
+ * @internal
403
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
404
+ */
405
+ export namespace GetAliasCreator$ {
406
+ /** @deprecated use `GetAliasCreator$inboundSchema` instead. */
407
+ export const inboundSchema = GetAliasCreator$inboundSchema;
408
+ /** @deprecated use `GetAliasCreator$outboundSchema` instead. */
409
+ export const outboundSchema = GetAliasCreator$outboundSchema;
410
+ /** @deprecated use `GetAliasCreator$Outbound` instead. */
411
+ export type Outbound = GetAliasCreator$Outbound;
412
+ }
413
+
414
+ export function getAliasCreatorToJSON(
415
+ getAliasCreator: GetAliasCreator,
416
+ ): string {
417
+ return JSON.stringify(GetAliasCreator$outboundSchema.parse(getAliasCreator));
418
+ }
419
+
420
+ export function getAliasCreatorFromJSON(
421
+ jsonString: string,
422
+ ): SafeParseResult<GetAliasCreator, SDKValidationError> {
423
+ return safeParse(
424
+ jsonString,
425
+ (x) => GetAliasCreator$inboundSchema.parse(JSON.parse(x)),
426
+ `Failed to parse 'GetAliasCreator' from JSON`,
427
+ );
428
+ }
429
+
430
+ /** @internal */
431
+ export const GetAliasDeployment$inboundSchema: z.ZodType<
432
+ GetAliasDeployment,
433
+ z.ZodTypeDef,
434
+ unknown
435
+ > = z.object({
436
+ id: z.string(),
437
+ url: z.string(),
438
+ meta: z.string().optional(),
439
+ });
440
+
441
+ /** @internal */
442
+ export type GetAliasDeployment$Outbound = {
443
+ id: string;
444
+ url: string;
445
+ meta?: string | undefined;
446
+ };
447
+
448
+ /** @internal */
449
+ export const GetAliasDeployment$outboundSchema: z.ZodType<
450
+ GetAliasDeployment$Outbound,
451
+ z.ZodTypeDef,
452
+ GetAliasDeployment
453
+ > = z.object({
454
+ id: z.string(),
455
+ url: z.string(),
456
+ meta: z.string().optional(),
457
+ });
458
+
459
+ /**
460
+ * @internal
461
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
462
+ */
463
+ export namespace GetAliasDeployment$ {
464
+ /** @deprecated use `GetAliasDeployment$inboundSchema` instead. */
465
+ export const inboundSchema = GetAliasDeployment$inboundSchema;
466
+ /** @deprecated use `GetAliasDeployment$outboundSchema` instead. */
467
+ export const outboundSchema = GetAliasDeployment$outboundSchema;
468
+ /** @deprecated use `GetAliasDeployment$Outbound` instead. */
469
+ export type Outbound = GetAliasDeployment$Outbound;
470
+ }
471
+
472
+ export function getAliasDeploymentToJSON(
473
+ getAliasDeployment: GetAliasDeployment,
474
+ ): string {
475
+ return JSON.stringify(
476
+ GetAliasDeployment$outboundSchema.parse(getAliasDeployment),
477
+ );
478
+ }
479
+
480
+ export function getAliasDeploymentFromJSON(
481
+ jsonString: string,
482
+ ): SafeParseResult<GetAliasDeployment, SDKValidationError> {
483
+ return safeParse(
484
+ jsonString,
485
+ (x) => GetAliasDeployment$inboundSchema.parse(JSON.parse(x)),
486
+ `Failed to parse 'GetAliasDeployment' from JSON`,
487
+ );
488
+ }
489
+
490
+ /** @internal */
491
+ export const GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema:
492
+ z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> = z
493
+ .nativeEnum(GetAliasProtectionBypassAliasesResponse200Scope);
494
+
495
+ /** @internal */
496
+ export const GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema:
497
+ z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> =
498
+ GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
499
+
500
+ /**
501
+ * @internal
502
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
503
+ */
504
+ export namespace GetAliasProtectionBypassAliasesResponse200Scope$ {
505
+ /** @deprecated use `GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema` instead. */
506
+ export const inboundSchema =
507
+ GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
508
+ /** @deprecated use `GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema` instead. */
509
+ export const outboundSchema =
510
+ GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema;
511
+ }
512
+
513
+ /** @internal */
514
+ export const ProtectionBypass4$inboundSchema: z.ZodType<
515
+ ProtectionBypass4,
516
+ z.ZodTypeDef,
517
+ unknown
518
+ > = z.object({
519
+ createdAt: z.number(),
520
+ lastUpdatedAt: z.number(),
521
+ lastUpdatedBy: z.string(),
522
+ scope: GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema,
523
+ });
524
+
525
+ /** @internal */
526
+ export type ProtectionBypass4$Outbound = {
527
+ createdAt: number;
528
+ lastUpdatedAt: number;
529
+ lastUpdatedBy: string;
530
+ scope: string;
531
+ };
532
+
533
+ /** @internal */
534
+ export const ProtectionBypass4$outboundSchema: z.ZodType<
535
+ ProtectionBypass4$Outbound,
536
+ z.ZodTypeDef,
537
+ ProtectionBypass4
538
+ > = z.object({
539
+ createdAt: z.number(),
540
+ lastUpdatedAt: z.number(),
541
+ lastUpdatedBy: z.string(),
542
+ scope: GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema,
543
+ });
544
+
545
+ /**
546
+ * @internal
547
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
548
+ */
549
+ export namespace ProtectionBypass4$ {
550
+ /** @deprecated use `ProtectionBypass4$inboundSchema` instead. */
551
+ export const inboundSchema = ProtectionBypass4$inboundSchema;
552
+ /** @deprecated use `ProtectionBypass4$outboundSchema` instead. */
553
+ export const outboundSchema = ProtectionBypass4$outboundSchema;
554
+ /** @deprecated use `ProtectionBypass4$Outbound` instead. */
555
+ export type Outbound = ProtectionBypass4$Outbound;
556
+ }
557
+
558
+ export function protectionBypass4ToJSON(
559
+ protectionBypass4: ProtectionBypass4,
560
+ ): string {
561
+ return JSON.stringify(
562
+ ProtectionBypass4$outboundSchema.parse(protectionBypass4),
563
+ );
564
+ }
565
+
566
+ export function protectionBypass4FromJSON(
567
+ jsonString: string,
568
+ ): SafeParseResult<ProtectionBypass4, SDKValidationError> {
569
+ return safeParse(
570
+ jsonString,
571
+ (x) => ProtectionBypass4$inboundSchema.parse(JSON.parse(x)),
572
+ `Failed to parse 'ProtectionBypass4' from JSON`,
573
+ );
574
+ }
575
+
576
+ /** @internal */
577
+ export const GetAliasProtectionBypassAliasesResponseScope$inboundSchema:
578
+ z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> = z
579
+ .nativeEnum(GetAliasProtectionBypassAliasesResponseScope);
580
+
581
+ /** @internal */
582
+ export const GetAliasProtectionBypassAliasesResponseScope$outboundSchema:
583
+ z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> =
584
+ GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
585
+
586
+ /**
587
+ * @internal
588
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
589
+ */
590
+ export namespace GetAliasProtectionBypassAliasesResponseScope$ {
591
+ /** @deprecated use `GetAliasProtectionBypassAliasesResponseScope$inboundSchema` instead. */
592
+ export const inboundSchema =
593
+ GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
594
+ /** @deprecated use `GetAliasProtectionBypassAliasesResponseScope$outboundSchema` instead. */
595
+ export const outboundSchema =
596
+ GetAliasProtectionBypassAliasesResponseScope$outboundSchema;
597
+ }
598
+
599
+ /** @internal */
600
+ export const ProtectionBypass3$inboundSchema: z.ZodType<
601
+ ProtectionBypass3,
602
+ z.ZodTypeDef,
603
+ unknown
604
+ > = z.object({
605
+ createdAt: z.number(),
606
+ createdBy: z.string(),
607
+ scope: GetAliasProtectionBypassAliasesResponseScope$inboundSchema,
608
+ });
609
+
610
+ /** @internal */
611
+ export type ProtectionBypass3$Outbound = {
612
+ createdAt: number;
613
+ createdBy: string;
614
+ scope: string;
615
+ };
616
+
617
+ /** @internal */
618
+ export const ProtectionBypass3$outboundSchema: z.ZodType<
619
+ ProtectionBypass3$Outbound,
620
+ z.ZodTypeDef,
621
+ ProtectionBypass3
622
+ > = z.object({
623
+ createdAt: z.number(),
624
+ createdBy: z.string(),
625
+ scope: GetAliasProtectionBypassAliasesResponseScope$outboundSchema,
626
+ });
627
+
628
+ /**
629
+ * @internal
630
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
631
+ */
632
+ export namespace ProtectionBypass3$ {
633
+ /** @deprecated use `ProtectionBypass3$inboundSchema` instead. */
634
+ export const inboundSchema = ProtectionBypass3$inboundSchema;
635
+ /** @deprecated use `ProtectionBypass3$outboundSchema` instead. */
636
+ export const outboundSchema = ProtectionBypass3$outboundSchema;
637
+ /** @deprecated use `ProtectionBypass3$Outbound` instead. */
638
+ export type Outbound = ProtectionBypass3$Outbound;
639
+ }
640
+
641
+ export function protectionBypass3ToJSON(
642
+ protectionBypass3: ProtectionBypass3,
643
+ ): string {
644
+ return JSON.stringify(
645
+ ProtectionBypass3$outboundSchema.parse(protectionBypass3),
646
+ );
647
+ }
648
+
649
+ export function protectionBypass3FromJSON(
650
+ jsonString: string,
651
+ ): SafeParseResult<ProtectionBypass3, SDKValidationError> {
652
+ return safeParse(
653
+ jsonString,
654
+ (x) => ProtectionBypass3$inboundSchema.parse(JSON.parse(x)),
655
+ `Failed to parse 'ProtectionBypass3' from JSON`,
656
+ );
657
+ }
658
+
659
+ /** @internal */
660
+ export const ProtectionBypassAccess$inboundSchema: z.ZodNativeEnum<
661
+ typeof ProtectionBypassAccess
662
+ > = z.nativeEnum(ProtectionBypassAccess);
663
+
664
+ /** @internal */
665
+ export const ProtectionBypassAccess$outboundSchema: z.ZodNativeEnum<
666
+ typeof ProtectionBypassAccess
667
+ > = ProtectionBypassAccess$inboundSchema;
668
+
669
+ /**
670
+ * @internal
671
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
672
+ */
673
+ export namespace ProtectionBypassAccess$ {
674
+ /** @deprecated use `ProtectionBypassAccess$inboundSchema` instead. */
675
+ export const inboundSchema = ProtectionBypassAccess$inboundSchema;
676
+ /** @deprecated use `ProtectionBypassAccess$outboundSchema` instead. */
677
+ export const outboundSchema = ProtectionBypassAccess$outboundSchema;
678
+ }
679
+
680
+ /** @internal */
681
+ export const GetAliasProtectionBypassAliasesScope$inboundSchema:
682
+ z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> = z.nativeEnum(
683
+ GetAliasProtectionBypassAliasesScope,
684
+ );
685
+
686
+ /** @internal */
687
+ export const GetAliasProtectionBypassAliasesScope$outboundSchema:
688
+ z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> =
689
+ GetAliasProtectionBypassAliasesScope$inboundSchema;
690
+
691
+ /**
692
+ * @internal
693
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
694
+ */
695
+ export namespace GetAliasProtectionBypassAliasesScope$ {
696
+ /** @deprecated use `GetAliasProtectionBypassAliasesScope$inboundSchema` instead. */
697
+ export const inboundSchema =
698
+ GetAliasProtectionBypassAliasesScope$inboundSchema;
699
+ /** @deprecated use `GetAliasProtectionBypassAliasesScope$outboundSchema` instead. */
700
+ export const outboundSchema =
701
+ GetAliasProtectionBypassAliasesScope$outboundSchema;
702
+ }
703
+
704
+ /** @internal */
705
+ export const GetAliasProtectionBypass2$inboundSchema: z.ZodType<
706
+ GetAliasProtectionBypass2,
707
+ z.ZodTypeDef,
708
+ unknown
709
+ > = z.object({
710
+ createdAt: z.number(),
711
+ lastUpdatedAt: z.number(),
712
+ lastUpdatedBy: z.string(),
713
+ access: ProtectionBypassAccess$inboundSchema,
714
+ scope: GetAliasProtectionBypassAliasesScope$inboundSchema,
715
+ });
716
+
717
+ /** @internal */
718
+ export type GetAliasProtectionBypass2$Outbound = {
719
+ createdAt: number;
720
+ lastUpdatedAt: number;
721
+ lastUpdatedBy: string;
722
+ access: string;
723
+ scope: string;
724
+ };
725
+
726
+ /** @internal */
727
+ export const GetAliasProtectionBypass2$outboundSchema: z.ZodType<
728
+ GetAliasProtectionBypass2$Outbound,
729
+ z.ZodTypeDef,
730
+ GetAliasProtectionBypass2
731
+ > = z.object({
732
+ createdAt: z.number(),
733
+ lastUpdatedAt: z.number(),
734
+ lastUpdatedBy: z.string(),
735
+ access: ProtectionBypassAccess$outboundSchema,
736
+ scope: GetAliasProtectionBypassAliasesScope$outboundSchema,
737
+ });
738
+
739
+ /**
740
+ * @internal
741
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
742
+ */
743
+ export namespace GetAliasProtectionBypass2$ {
744
+ /** @deprecated use `GetAliasProtectionBypass2$inboundSchema` instead. */
745
+ export const inboundSchema = GetAliasProtectionBypass2$inboundSchema;
746
+ /** @deprecated use `GetAliasProtectionBypass2$outboundSchema` instead. */
747
+ export const outboundSchema = GetAliasProtectionBypass2$outboundSchema;
748
+ /** @deprecated use `GetAliasProtectionBypass2$Outbound` instead. */
749
+ export type Outbound = GetAliasProtectionBypass2$Outbound;
750
+ }
751
+
752
+ export function getAliasProtectionBypass2ToJSON(
753
+ getAliasProtectionBypass2: GetAliasProtectionBypass2,
754
+ ): string {
755
+ return JSON.stringify(
756
+ GetAliasProtectionBypass2$outboundSchema.parse(getAliasProtectionBypass2),
757
+ );
758
+ }
759
+
760
+ export function getAliasProtectionBypass2FromJSON(
761
+ jsonString: string,
762
+ ): SafeParseResult<GetAliasProtectionBypass2, SDKValidationError> {
763
+ return safeParse(
764
+ jsonString,
765
+ (x) => GetAliasProtectionBypass2$inboundSchema.parse(JSON.parse(x)),
766
+ `Failed to parse 'GetAliasProtectionBypass2' from JSON`,
767
+ );
768
+ }
769
+
770
+ /** @internal */
771
+ export const GetAliasProtectionBypassScope$inboundSchema: z.ZodNativeEnum<
772
+ typeof GetAliasProtectionBypassScope
773
+ > = z.nativeEnum(GetAliasProtectionBypassScope);
774
+
775
+ /** @internal */
776
+ export const GetAliasProtectionBypassScope$outboundSchema: z.ZodNativeEnum<
777
+ typeof GetAliasProtectionBypassScope
778
+ > = GetAliasProtectionBypassScope$inboundSchema;
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 GetAliasProtectionBypassScope$ {
785
+ /** @deprecated use `GetAliasProtectionBypassScope$inboundSchema` instead. */
786
+ export const inboundSchema = GetAliasProtectionBypassScope$inboundSchema;
787
+ /** @deprecated use `GetAliasProtectionBypassScope$outboundSchema` instead. */
788
+ export const outboundSchema = GetAliasProtectionBypassScope$outboundSchema;
789
+ }
790
+
791
+ /** @internal */
792
+ export const GetAliasProtectionBypass1$inboundSchema: z.ZodType<
793
+ GetAliasProtectionBypass1,
794
+ z.ZodTypeDef,
795
+ unknown
796
+ > = z.object({
797
+ createdAt: z.number(),
798
+ createdBy: z.string(),
799
+ scope: GetAliasProtectionBypassScope$inboundSchema,
800
+ expires: z.number().optional(),
801
+ });
802
+
803
+ /** @internal */
804
+ export type GetAliasProtectionBypass1$Outbound = {
805
+ createdAt: number;
806
+ createdBy: string;
807
+ scope: string;
808
+ expires?: number | undefined;
809
+ };
810
+
811
+ /** @internal */
812
+ export const GetAliasProtectionBypass1$outboundSchema: z.ZodType<
813
+ GetAliasProtectionBypass1$Outbound,
814
+ z.ZodTypeDef,
815
+ GetAliasProtectionBypass1
816
+ > = z.object({
817
+ createdAt: z.number(),
818
+ createdBy: z.string(),
819
+ scope: GetAliasProtectionBypassScope$outboundSchema,
820
+ expires: z.number().optional(),
821
+ });
822
+
823
+ /**
824
+ * @internal
825
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
826
+ */
827
+ export namespace GetAliasProtectionBypass1$ {
828
+ /** @deprecated use `GetAliasProtectionBypass1$inboundSchema` instead. */
829
+ export const inboundSchema = GetAliasProtectionBypass1$inboundSchema;
830
+ /** @deprecated use `GetAliasProtectionBypass1$outboundSchema` instead. */
831
+ export const outboundSchema = GetAliasProtectionBypass1$outboundSchema;
832
+ /** @deprecated use `GetAliasProtectionBypass1$Outbound` instead. */
833
+ export type Outbound = GetAliasProtectionBypass1$Outbound;
834
+ }
835
+
836
+ export function getAliasProtectionBypass1ToJSON(
837
+ getAliasProtectionBypass1: GetAliasProtectionBypass1,
838
+ ): string {
839
+ return JSON.stringify(
840
+ GetAliasProtectionBypass1$outboundSchema.parse(getAliasProtectionBypass1),
841
+ );
842
+ }
843
+
844
+ export function getAliasProtectionBypass1FromJSON(
845
+ jsonString: string,
846
+ ): SafeParseResult<GetAliasProtectionBypass1, SDKValidationError> {
847
+ return safeParse(
848
+ jsonString,
849
+ (x) => GetAliasProtectionBypass1$inboundSchema.parse(JSON.parse(x)),
850
+ `Failed to parse 'GetAliasProtectionBypass1' from JSON`,
851
+ );
852
+ }
853
+
854
+ /** @internal */
855
+ export const GetAliasProtectionBypass$inboundSchema: z.ZodType<
856
+ GetAliasProtectionBypass,
857
+ z.ZodTypeDef,
858
+ unknown
859
+ > = z.union([
860
+ z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
861
+ z.lazy(() => ProtectionBypass4$inboundSchema),
862
+ z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
863
+ z.lazy(() => ProtectionBypass3$inboundSchema),
864
+ ]);
865
+
866
+ /** @internal */
867
+ export type GetAliasProtectionBypass$Outbound =
868
+ | GetAliasProtectionBypass2$Outbound
869
+ | ProtectionBypass4$Outbound
870
+ | GetAliasProtectionBypass1$Outbound
871
+ | ProtectionBypass3$Outbound;
872
+
873
+ /** @internal */
874
+ export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
875
+ GetAliasProtectionBypass$Outbound,
876
+ z.ZodTypeDef,
877
+ GetAliasProtectionBypass
878
+ > = z.union([
879
+ z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
880
+ z.lazy(() => ProtectionBypass4$outboundSchema),
881
+ z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
882
+ z.lazy(() => ProtectionBypass3$outboundSchema),
883
+ ]);
884
+
885
+ /**
886
+ * @internal
887
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
888
+ */
889
+ export namespace GetAliasProtectionBypass$ {
890
+ /** @deprecated use `GetAliasProtectionBypass$inboundSchema` instead. */
891
+ export const inboundSchema = GetAliasProtectionBypass$inboundSchema;
892
+ /** @deprecated use `GetAliasProtectionBypass$outboundSchema` instead. */
893
+ export const outboundSchema = GetAliasProtectionBypass$outboundSchema;
894
+ /** @deprecated use `GetAliasProtectionBypass$Outbound` instead. */
895
+ export type Outbound = GetAliasProtectionBypass$Outbound;
896
+ }
897
+
898
+ export function getAliasProtectionBypassToJSON(
899
+ getAliasProtectionBypass: GetAliasProtectionBypass,
900
+ ): string {
901
+ return JSON.stringify(
902
+ GetAliasProtectionBypass$outboundSchema.parse(getAliasProtectionBypass),
903
+ );
904
+ }
905
+
906
+ export function getAliasProtectionBypassFromJSON(
907
+ jsonString: string,
908
+ ): SafeParseResult<GetAliasProtectionBypass, SDKValidationError> {
909
+ return safeParse(
910
+ jsonString,
911
+ (x) => GetAliasProtectionBypass$inboundSchema.parse(JSON.parse(x)),
912
+ `Failed to parse 'GetAliasProtectionBypass' from JSON`,
913
+ );
914
+ }
915
+
916
+ /** @internal */
917
+ export const DefaultApp$inboundSchema: z.ZodType<
918
+ DefaultApp,
919
+ z.ZodTypeDef,
920
+ unknown
921
+ > = z.object({
922
+ projectId: z.string(),
923
+ });
924
+
925
+ /** @internal */
926
+ export type DefaultApp$Outbound = {
927
+ projectId: string;
928
+ };
929
+
930
+ /** @internal */
931
+ export const DefaultApp$outboundSchema: z.ZodType<
932
+ DefaultApp$Outbound,
933
+ z.ZodTypeDef,
934
+ DefaultApp
935
+ > = z.object({
936
+ projectId: z.string(),
937
+ });
938
+
939
+ /**
940
+ * @internal
941
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
942
+ */
943
+ export namespace DefaultApp$ {
944
+ /** @deprecated use `DefaultApp$inboundSchema` instead. */
945
+ export const inboundSchema = DefaultApp$inboundSchema;
946
+ /** @deprecated use `DefaultApp$outboundSchema` instead. */
947
+ export const outboundSchema = DefaultApp$outboundSchema;
948
+ /** @deprecated use `DefaultApp$Outbound` instead. */
949
+ export type Outbound = DefaultApp$Outbound;
950
+ }
951
+
952
+ export function defaultAppToJSON(defaultApp: DefaultApp): string {
953
+ return JSON.stringify(DefaultApp$outboundSchema.parse(defaultApp));
954
+ }
955
+
956
+ export function defaultAppFromJSON(
957
+ jsonString: string,
958
+ ): SafeParseResult<DefaultApp, SDKValidationError> {
959
+ return safeParse(
960
+ jsonString,
961
+ (x) => DefaultApp$inboundSchema.parse(JSON.parse(x)),
962
+ `Failed to parse 'DefaultApp' from JSON`,
963
+ );
964
+ }
965
+
966
+ /** @internal */
967
+ export const Applications3$inboundSchema: z.ZodType<
968
+ Applications3,
969
+ z.ZodTypeDef,
970
+ unknown
971
+ > = z.object({
972
+ deploymentId: z.string().optional(),
973
+ branchDeploymentId: z.string().optional(),
974
+ fallbackDeploymentId: z.string().optional(),
975
+ fallbackHost: z.string().optional(),
976
+ branchAlias: z.string().optional(),
977
+ projectId: z.string(),
978
+ });
979
+
980
+ /** @internal */
981
+ export type Applications3$Outbound = {
982
+ deploymentId?: string | undefined;
983
+ branchDeploymentId?: string | undefined;
984
+ fallbackDeploymentId?: string | undefined;
985
+ fallbackHost?: string | undefined;
986
+ branchAlias?: string | undefined;
987
+ projectId: string;
988
+ };
989
+
990
+ /** @internal */
991
+ export const Applications3$outboundSchema: z.ZodType<
992
+ Applications3$Outbound,
993
+ z.ZodTypeDef,
994
+ Applications3
995
+ > = z.object({
996
+ deploymentId: z.string().optional(),
997
+ branchDeploymentId: z.string().optional(),
998
+ fallbackDeploymentId: z.string().optional(),
999
+ fallbackHost: z.string().optional(),
1000
+ branchAlias: z.string().optional(),
1001
+ projectId: z.string(),
1002
+ });
1003
+
1004
+ /**
1005
+ * @internal
1006
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1007
+ */
1008
+ export namespace Applications3$ {
1009
+ /** @deprecated use `Applications3$inboundSchema` instead. */
1010
+ export const inboundSchema = Applications3$inboundSchema;
1011
+ /** @deprecated use `Applications3$outboundSchema` instead. */
1012
+ export const outboundSchema = Applications3$outboundSchema;
1013
+ /** @deprecated use `Applications3$Outbound` instead. */
1014
+ export type Outbound = Applications3$Outbound;
1015
+ }
1016
+
1017
+ export function applications3ToJSON(applications3: Applications3): string {
1018
+ return JSON.stringify(Applications3$outboundSchema.parse(applications3));
1019
+ }
1020
+
1021
+ export function applications3FromJSON(
1022
+ jsonString: string,
1023
+ ): SafeParseResult<Applications3, SDKValidationError> {
1024
+ return safeParse(
1025
+ jsonString,
1026
+ (x) => Applications3$inboundSchema.parse(JSON.parse(x)),
1027
+ `Failed to parse 'Applications3' from JSON`,
1028
+ );
1029
+ }
1030
+
1031
+ /** @internal */
1032
+ export const Applications2$inboundSchema: z.ZodType<
1033
+ Applications2,
1034
+ z.ZodTypeDef,
1035
+ unknown
1036
+ > = z.object({
1037
+ fallbackHost: z.string(),
1038
+ branchAlias: z.string(),
1039
+ projectId: z.string(),
1040
+ });
1041
+
1042
+ /** @internal */
1043
+ export type Applications2$Outbound = {
1044
+ fallbackHost: string;
1045
+ branchAlias: string;
1046
+ projectId: string;
1047
+ };
1048
+
1049
+ /** @internal */
1050
+ export const Applications2$outboundSchema: z.ZodType<
1051
+ Applications2$Outbound,
1052
+ z.ZodTypeDef,
1053
+ Applications2
1054
+ > = z.object({
1055
+ fallbackHost: z.string(),
1056
+ branchAlias: z.string(),
1057
+ projectId: z.string(),
1058
+ });
1059
+
1060
+ /**
1061
+ * @internal
1062
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1063
+ */
1064
+ export namespace Applications2$ {
1065
+ /** @deprecated use `Applications2$inboundSchema` instead. */
1066
+ export const inboundSchema = Applications2$inboundSchema;
1067
+ /** @deprecated use `Applications2$outboundSchema` instead. */
1068
+ export const outboundSchema = Applications2$outboundSchema;
1069
+ /** @deprecated use `Applications2$Outbound` instead. */
1070
+ export type Outbound = Applications2$Outbound;
1071
+ }
1072
+
1073
+ export function applications2ToJSON(applications2: Applications2): string {
1074
+ return JSON.stringify(Applications2$outboundSchema.parse(applications2));
1075
+ }
1076
+
1077
+ export function applications2FromJSON(
1078
+ jsonString: string,
1079
+ ): SafeParseResult<Applications2, SDKValidationError> {
1080
+ return safeParse(
1081
+ jsonString,
1082
+ (x) => Applications2$inboundSchema.parse(JSON.parse(x)),
1083
+ `Failed to parse 'Applications2' from JSON`,
1084
+ );
1085
+ }
1086
+
1087
+ /** @internal */
1088
+ export const Applications1$inboundSchema: z.ZodType<
1089
+ Applications1,
1090
+ z.ZodTypeDef,
1091
+ unknown
1092
+ > = z.object({
1093
+ fallbackHost: z.string(),
1094
+ projectId: z.string(),
1095
+ });
1096
+
1097
+ /** @internal */
1098
+ export type Applications1$Outbound = {
1099
+ fallbackHost: string;
1100
+ projectId: string;
1101
+ };
1102
+
1103
+ /** @internal */
1104
+ export const Applications1$outboundSchema: z.ZodType<
1105
+ Applications1$Outbound,
1106
+ z.ZodTypeDef,
1107
+ Applications1
1108
+ > = z.object({
1109
+ fallbackHost: z.string(),
1110
+ projectId: z.string(),
1111
+ });
1112
+
1113
+ /**
1114
+ * @internal
1115
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1116
+ */
1117
+ export namespace Applications1$ {
1118
+ /** @deprecated use `Applications1$inboundSchema` instead. */
1119
+ export const inboundSchema = Applications1$inboundSchema;
1120
+ /** @deprecated use `Applications1$outboundSchema` instead. */
1121
+ export const outboundSchema = Applications1$outboundSchema;
1122
+ /** @deprecated use `Applications1$Outbound` instead. */
1123
+ export type Outbound = Applications1$Outbound;
1124
+ }
1125
+
1126
+ export function applications1ToJSON(applications1: Applications1): string {
1127
+ return JSON.stringify(Applications1$outboundSchema.parse(applications1));
1128
+ }
1129
+
1130
+ export function applications1FromJSON(
1131
+ jsonString: string,
1132
+ ): SafeParseResult<Applications1, SDKValidationError> {
1133
+ return safeParse(
1134
+ jsonString,
1135
+ (x) => Applications1$inboundSchema.parse(JSON.parse(x)),
1136
+ `Failed to parse 'Applications1' from JSON`,
1137
+ );
1138
+ }
1139
+
1140
+ /** @internal */
1141
+ export const Applications$inboundSchema: z.ZodType<
1142
+ Applications,
1143
+ z.ZodTypeDef,
1144
+ unknown
1145
+ > = z.union([
1146
+ z.array(z.lazy(() => Applications1$inboundSchema)),
1147
+ z.array(z.lazy(() => Applications2$inboundSchema)),
1148
+ z.array(z.lazy(() => Applications3$inboundSchema)),
1149
+ ]);
1150
+
1151
+ /** @internal */
1152
+ export type Applications$Outbound =
1153
+ | Array<Applications1$Outbound>
1154
+ | Array<Applications2$Outbound>
1155
+ | Array<Applications3$Outbound>;
1156
+
1157
+ /** @internal */
1158
+ export const Applications$outboundSchema: z.ZodType<
1159
+ Applications$Outbound,
1160
+ z.ZodTypeDef,
1161
+ Applications
1162
+ > = z.union([
1163
+ z.array(z.lazy(() => Applications1$outboundSchema)),
1164
+ z.array(z.lazy(() => Applications2$outboundSchema)),
1165
+ z.array(z.lazy(() => Applications3$outboundSchema)),
1166
+ ]);
1167
+
1168
+ /**
1169
+ * @internal
1170
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1171
+ */
1172
+ export namespace Applications$ {
1173
+ /** @deprecated use `Applications$inboundSchema` instead. */
1174
+ export const inboundSchema = Applications$inboundSchema;
1175
+ /** @deprecated use `Applications$outboundSchema` instead. */
1176
+ export const outboundSchema = Applications$outboundSchema;
1177
+ /** @deprecated use `Applications$Outbound` instead. */
1178
+ export type Outbound = Applications$Outbound;
1179
+ }
1180
+
1181
+ export function applicationsToJSON(applications: Applications): string {
1182
+ return JSON.stringify(Applications$outboundSchema.parse(applications));
1183
+ }
1184
+
1185
+ export function applicationsFromJSON(
1186
+ jsonString: string,
1187
+ ): SafeParseResult<Applications, SDKValidationError> {
1188
+ return safeParse(
1189
+ jsonString,
1190
+ (x) => Applications$inboundSchema.parse(JSON.parse(x)),
1191
+ `Failed to parse 'Applications' from JSON`,
1192
+ );
1193
+ }
1194
+
1195
+ /** @internal */
1196
+ export const GetAliasMicrofrontends$inboundSchema: z.ZodType<
1197
+ GetAliasMicrofrontends,
1198
+ z.ZodTypeDef,
1199
+ unknown
1200
+ > = z.object({
1201
+ defaultApp: z.lazy(() => DefaultApp$inboundSchema),
1202
+ applications: z.union([
1203
+ z.array(z.lazy(() => Applications1$inboundSchema)),
1204
+ z.array(z.lazy(() => Applications2$inboundSchema)),
1205
+ z.array(z.lazy(() => Applications3$inboundSchema)),
1206
+ ]),
1207
+ });
1208
+
1209
+ /** @internal */
1210
+ export type GetAliasMicrofrontends$Outbound = {
1211
+ defaultApp: DefaultApp$Outbound;
1212
+ applications:
1213
+ | Array<Applications1$Outbound>
1214
+ | Array<Applications2$Outbound>
1215
+ | Array<Applications3$Outbound>;
1216
+ };
1217
+
1218
+ /** @internal */
1219
+ export const GetAliasMicrofrontends$outboundSchema: z.ZodType<
1220
+ GetAliasMicrofrontends$Outbound,
1221
+ z.ZodTypeDef,
1222
+ GetAliasMicrofrontends
1223
+ > = z.object({
1224
+ defaultApp: z.lazy(() => DefaultApp$outboundSchema),
1225
+ applications: z.union([
1226
+ z.array(z.lazy(() => Applications1$outboundSchema)),
1227
+ z.array(z.lazy(() => Applications2$outboundSchema)),
1228
+ z.array(z.lazy(() => Applications3$outboundSchema)),
1229
+ ]),
1230
+ });
1231
+
1232
+ /**
1233
+ * @internal
1234
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1235
+ */
1236
+ export namespace GetAliasMicrofrontends$ {
1237
+ /** @deprecated use `GetAliasMicrofrontends$inboundSchema` instead. */
1238
+ export const inboundSchema = GetAliasMicrofrontends$inboundSchema;
1239
+ /** @deprecated use `GetAliasMicrofrontends$outboundSchema` instead. */
1240
+ export const outboundSchema = GetAliasMicrofrontends$outboundSchema;
1241
+ /** @deprecated use `GetAliasMicrofrontends$Outbound` instead. */
1242
+ export type Outbound = GetAliasMicrofrontends$Outbound;
1243
+ }
1244
+
1245
+ export function getAliasMicrofrontendsToJSON(
1246
+ getAliasMicrofrontends: GetAliasMicrofrontends,
1247
+ ): string {
1248
+ return JSON.stringify(
1249
+ GetAliasMicrofrontends$outboundSchema.parse(getAliasMicrofrontends),
1250
+ );
1251
+ }
1252
+
1253
+ export function getAliasMicrofrontendsFromJSON(
1254
+ jsonString: string,
1255
+ ): SafeParseResult<GetAliasMicrofrontends, SDKValidationError> {
1256
+ return safeParse(
1257
+ jsonString,
1258
+ (x) => GetAliasMicrofrontends$inboundSchema.parse(JSON.parse(x)),
1259
+ `Failed to parse 'GetAliasMicrofrontends' from JSON`,
1260
+ );
1261
+ }
1262
+
1263
+ /** @internal */
1264
+ export const GetAliasResponseBody$inboundSchema: z.ZodType<
1265
+ GetAliasResponseBody,
1266
+ z.ZodTypeDef,
1267
+ unknown
1268
+ > = z.object({
1269
+ alias: z.string(),
1270
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
1271
+ createdAt: z.number().optional(),
1272
+ creator: z.lazy(() => GetAliasCreator$inboundSchema).optional(),
1273
+ deletedAt: z.number().optional(),
1274
+ deployment: z.lazy(() => GetAliasDeployment$inboundSchema).optional(),
1275
+ deploymentId: z.nullable(z.string()),
1276
+ projectId: z.nullable(z.string()),
1277
+ redirect: z.nullable(z.string()).optional(),
1278
+ redirectStatusCode: z.nullable(z.number()).optional(),
1279
+ uid: z.string(),
1280
+ updatedAt: z.number().optional(),
1281
+ protectionBypass: z.record(
1282
+ z.union([
1283
+ z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
1284
+ z.lazy(() => ProtectionBypass4$inboundSchema),
1285
+ z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
1286
+ z.lazy(() => ProtectionBypass3$inboundSchema),
1287
+ ]),
1288
+ ).optional(),
1289
+ microfrontends: z.lazy(() => GetAliasMicrofrontends$inboundSchema).optional(),
1290
+ });
1291
+
1292
+ /** @internal */
1293
+ export type GetAliasResponseBody$Outbound = {
1294
+ alias: string;
1295
+ created: string;
1296
+ createdAt?: number | undefined;
1297
+ creator?: GetAliasCreator$Outbound | undefined;
1298
+ deletedAt?: number | undefined;
1299
+ deployment?: GetAliasDeployment$Outbound | undefined;
1300
+ deploymentId: string | null;
1301
+ projectId: string | null;
1302
+ redirect?: string | null | undefined;
1303
+ redirectStatusCode?: number | null | undefined;
1304
+ uid: string;
1305
+ updatedAt?: number | undefined;
1306
+ protectionBypass?: {
1307
+ [k: string]:
1308
+ | GetAliasProtectionBypass2$Outbound
1309
+ | ProtectionBypass4$Outbound
1310
+ | GetAliasProtectionBypass1$Outbound
1311
+ | ProtectionBypass3$Outbound;
1312
+ } | undefined;
1313
+ microfrontends?: GetAliasMicrofrontends$Outbound | undefined;
1314
+ };
1315
+
1316
+ /** @internal */
1317
+ export const GetAliasResponseBody$outboundSchema: z.ZodType<
1318
+ GetAliasResponseBody$Outbound,
1319
+ z.ZodTypeDef,
1320
+ GetAliasResponseBody
1321
+ > = z.object({
1322
+ alias: z.string(),
1323
+ created: z.date().transform(v => v.toISOString()),
1324
+ createdAt: z.number().optional(),
1325
+ creator: z.lazy(() => GetAliasCreator$outboundSchema).optional(),
1326
+ deletedAt: z.number().optional(),
1327
+ deployment: z.lazy(() => GetAliasDeployment$outboundSchema).optional(),
1328
+ deploymentId: z.nullable(z.string()),
1329
+ projectId: z.nullable(z.string()),
1330
+ redirect: z.nullable(z.string()).optional(),
1331
+ redirectStatusCode: z.nullable(z.number()).optional(),
1332
+ uid: z.string(),
1333
+ updatedAt: z.number().optional(),
1334
+ protectionBypass: z.record(
1335
+ z.union([
1336
+ z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
1337
+ z.lazy(() => ProtectionBypass4$outboundSchema),
1338
+ z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
1339
+ z.lazy(() => ProtectionBypass3$outboundSchema),
1340
+ ]),
1341
+ ).optional(),
1342
+ microfrontends: z.lazy(() => GetAliasMicrofrontends$outboundSchema)
1343
+ .optional(),
1344
+ });
1345
+
1346
+ /**
1347
+ * @internal
1348
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1349
+ */
1350
+ export namespace GetAliasResponseBody$ {
1351
+ /** @deprecated use `GetAliasResponseBody$inboundSchema` instead. */
1352
+ export const inboundSchema = GetAliasResponseBody$inboundSchema;
1353
+ /** @deprecated use `GetAliasResponseBody$outboundSchema` instead. */
1354
+ export const outboundSchema = GetAliasResponseBody$outboundSchema;
1355
+ /** @deprecated use `GetAliasResponseBody$Outbound` instead. */
1356
+ export type Outbound = GetAliasResponseBody$Outbound;
1357
+ }
1358
+
1359
+ export function getAliasResponseBodyToJSON(
1360
+ getAliasResponseBody: GetAliasResponseBody,
1361
+ ): string {
1362
+ return JSON.stringify(
1363
+ GetAliasResponseBody$outboundSchema.parse(getAliasResponseBody),
1364
+ );
1365
+ }
1366
+
1367
+ export function getAliasResponseBodyFromJSON(
1368
+ jsonString: string,
1369
+ ): SafeParseResult<GetAliasResponseBody, SDKValidationError> {
1370
+ return safeParse(
1371
+ jsonString,
1372
+ (x) => GetAliasResponseBody$inboundSchema.parse(JSON.parse(x)),
1373
+ `Failed to parse 'GetAliasResponseBody' from JSON`,
1374
+ );
1375
+ }