@vercel/sdk 1.17.7 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/bin/mcp-server.js +1735 -4032
  2. package/bin/mcp-server.js.map +47 -47
  3. package/esm/__tests__/checks.test.js +1 -1
  4. package/esm/__tests__/checks.test.js.map +1 -1
  5. package/esm/__tests__/domains.test.js +3 -4
  6. package/esm/__tests__/domains.test.js.map +1 -1
  7. package/esm/__tests__/edgeconfig.test.js +6 -6
  8. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  9. package/esm/__tests__/rollingrelease.test.js +2 -1
  10. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  11. package/esm/__tests__/security.test.js +1 -11
  12. package/esm/__tests__/security.test.js.map +1 -1
  13. package/esm/lib/config.d.ts +3 -3
  14. package/esm/lib/config.js +3 -3
  15. package/esm/lib/encodings.d.ts +1 -0
  16. package/esm/lib/encodings.d.ts.map +1 -1
  17. package/esm/lib/encodings.js +12 -1
  18. package/esm/lib/encodings.js.map +1 -1
  19. package/esm/mcp-server/mcp-server.js +1 -1
  20. package/esm/mcp-server/server.js +1 -1
  21. package/esm/models/authtoken.d.ts +8 -24
  22. package/esm/models/authtoken.d.ts.map +1 -1
  23. package/esm/models/authtoken.js +8 -23
  24. package/esm/models/authtoken.js.map +1 -1
  25. package/esm/models/buydomainsop.d.ts +6 -2
  26. package/esm/models/buydomainsop.d.ts.map +1 -1
  27. package/esm/models/buydomainsop.js +8 -2
  28. package/esm/models/buydomainsop.js.map +1 -1
  29. package/esm/models/buysingledomainop.d.ts +6 -2
  30. package/esm/models/buysingledomainop.d.ts.map +1 -1
  31. package/esm/models/buysingledomainop.js +8 -2
  32. package/esm/models/buysingledomainop.js.map +1 -1
  33. package/esm/models/canceldeploymentop.d.ts +70 -62
  34. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  35. package/esm/models/canceldeploymentop.js +38 -58
  36. package/esm/models/canceldeploymentop.js.map +1 -1
  37. package/esm/models/createdeploymentop.d.ts +70 -62
  38. package/esm/models/createdeploymentop.d.ts.map +1 -1
  39. package/esm/models/createdeploymentop.js +38 -59
  40. package/esm/models/createdeploymentop.js.map +1 -1
  41. package/esm/models/createdrainop.d.ts +72 -248
  42. package/esm/models/createdrainop.d.ts.map +1 -1
  43. package/esm/models/createdrainop.js +72 -229
  44. package/esm/models/createdrainop.js.map +1 -1
  45. package/esm/models/createedgeconfigop.d.ts +4 -21
  46. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  47. package/esm/models/createedgeconfigop.js +4 -19
  48. package/esm/models/createedgeconfigop.js.map +1 -1
  49. package/esm/models/createeventop.d.ts +8 -25
  50. package/esm/models/createeventop.d.ts.map +1 -1
  51. package/esm/models/createeventop.js +8 -23
  52. package/esm/models/createeventop.js.map +1 -1
  53. package/esm/models/createlogdrainop.d.ts +8 -24
  54. package/esm/models/createlogdrainop.d.ts.map +1 -1
  55. package/esm/models/createlogdrainop.js +8 -22
  56. package/esm/models/createlogdrainop.js.map +1 -1
  57. package/esm/models/createprojectenvop.d.ts +68 -308
  58. package/esm/models/createprojectenvop.d.ts.map +1 -1
  59. package/esm/models/createprojectenvop.js +68 -281
  60. package/esm/models/createprojectenvop.js.map +1 -1
  61. package/esm/models/createprojectop.d.ts +76 -332
  62. package/esm/models/createprojectop.d.ts.map +1 -1
  63. package/esm/models/createprojectop.js +84 -316
  64. package/esm/models/createprojectop.js.map +1 -1
  65. package/esm/models/editprojectenvop.d.ts +34 -154
  66. package/esm/models/editprojectenvop.d.ts.map +1 -1
  67. package/esm/models/editprojectenvop.js +34 -141
  68. package/esm/models/editprojectenvop.js.map +1 -1
  69. package/esm/models/filterprojectenvsop.d.ts +102 -462
  70. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  71. package/esm/models/filterprojectenvsop.js +102 -419
  72. package/esm/models/filterprojectenvsop.js.map +1 -1
  73. package/esm/models/forbidden.d.ts +3 -12
  74. package/esm/models/forbidden.d.ts.map +1 -1
  75. package/esm/models/forbidden.js +2 -9
  76. package/esm/models/forbidden.js.map +1 -1
  77. package/esm/models/getaliasop.d.ts +12 -44
  78. package/esm/models/getaliasop.d.ts.map +1 -1
  79. package/esm/models/getaliasop.js +16 -46
  80. package/esm/models/getaliasop.js.map +1 -1
  81. package/esm/models/getalllogdrainsop.d.ts +72 -248
  82. package/esm/models/getalllogdrainsop.d.ts.map +1 -1
  83. package/esm/models/getalllogdrainsop.js +72 -236
  84. package/esm/models/getalllogdrainsop.js.map +1 -1
  85. package/esm/models/getconfigurationop.d.ts +4 -20
  86. package/esm/models/getconfigurationop.d.ts.map +1 -1
  87. package/esm/models/getconfigurationop.js +4 -18
  88. package/esm/models/getconfigurationop.js.map +1 -1
  89. package/esm/models/getdeploymentop.d.ts +70 -62
  90. package/esm/models/getdeploymentop.d.ts.map +1 -1
  91. package/esm/models/getdeploymentop.js +38 -58
  92. package/esm/models/getdeploymentop.js.map +1 -1
  93. package/esm/models/getdomainauthcodeop.d.ts +6 -2
  94. package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
  95. package/esm/models/getdomainauthcodeop.js +8 -2
  96. package/esm/models/getdomainauthcodeop.js.map +1 -1
  97. package/esm/models/getdomaintransferinop.d.ts +6 -2
  98. package/esm/models/getdomaintransferinop.d.ts.map +1 -1
  99. package/esm/models/getdomaintransferinop.js +8 -2
  100. package/esm/models/getdomaintransferinop.js.map +1 -1
  101. package/esm/models/getdrainop.d.ts +72 -248
  102. package/esm/models/getdrainop.d.ts.map +1 -1
  103. package/esm/models/getdrainop.js +72 -227
  104. package/esm/models/getdrainop.js.map +1 -1
  105. package/esm/models/getdrainsop.d.ts +72 -248
  106. package/esm/models/getdrainsop.d.ts.map +1 -1
  107. package/esm/models/getdrainsop.js +72 -227
  108. package/esm/models/getdrainsop.js.map +1 -1
  109. package/esm/models/getedgeconfigop.d.ts +4 -21
  110. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  111. package/esm/models/getedgeconfigop.js +4 -18
  112. package/esm/models/getedgeconfigop.js.map +1 -1
  113. package/esm/models/getintegrationlogdrainsop.d.ts +8 -24
  114. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  115. package/esm/models/getintegrationlogdrainsop.js +8 -23
  116. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  117. package/esm/models/getorderop.d.ts +48 -172
  118. package/esm/models/getorderop.d.ts.map +1 -1
  119. package/esm/models/getorderop.js +50 -159
  120. package/esm/models/getorderop.js.map +1 -1
  121. package/esm/models/getprojectenvop.d.ts +102 -462
  122. package/esm/models/getprojectenvop.d.ts.map +1 -1
  123. package/esm/models/getprojectenvop.js +102 -419
  124. package/esm/models/getprojectenvop.js.map +1 -1
  125. package/esm/models/getprojectsop.d.ts +76 -332
  126. package/esm/models/getprojectsop.d.ts.map +1 -1
  127. package/esm/models/getprojectsop.js +84 -313
  128. package/esm/models/getprojectsop.js.map +1 -1
  129. package/esm/models/getrollingreleasebillingstatusop.d.ts +10 -42
  130. package/esm/models/getrollingreleasebillingstatusop.d.ts.map +1 -1
  131. package/esm/models/getrollingreleasebillingstatusop.js +10 -39
  132. package/esm/models/getrollingreleasebillingstatusop.js.map +1 -1
  133. package/esm/models/listaliasesop.d.ts +12 -44
  134. package/esm/models/listaliasesop.d.ts.map +1 -1
  135. package/esm/models/listaliasesop.js +16 -47
  136. package/esm/models/listaliasesop.js.map +1 -1
  137. package/esm/models/listdeploymentaliasesop.d.ts +12 -44
  138. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  139. package/esm/models/listdeploymentaliasesop.js +16 -46
  140. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  141. package/esm/models/removeprojectenvop.d.ts +102 -462
  142. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  143. package/esm/models/removeprojectenvop.js +102 -420
  144. package/esm/models/removeprojectenvop.js.map +1 -1
  145. package/esm/models/renewdomainop.d.ts +6 -2
  146. package/esm/models/renewdomainop.d.ts.map +1 -1
  147. package/esm/models/renewdomainop.js +8 -2
  148. package/esm/models/renewdomainop.js.map +1 -1
  149. package/esm/models/transferindomainop.d.ts +6 -2
  150. package/esm/models/transferindomainop.d.ts.map +1 -1
  151. package/esm/models/transferindomainop.js +8 -2
  152. package/esm/models/transferindomainop.js.map +1 -1
  153. package/esm/models/updatedomainautorenewop.d.ts +6 -2
  154. package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
  155. package/esm/models/updatedomainautorenewop.js +8 -2
  156. package/esm/models/updatedomainautorenewop.js.map +1 -1
  157. package/esm/models/updatedomainnameserversop.d.ts +6 -2
  158. package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
  159. package/esm/models/updatedomainnameserversop.js +8 -2
  160. package/esm/models/updatedomainnameserversop.js.map +1 -1
  161. package/esm/models/updatedrainop.d.ts +72 -248
  162. package/esm/models/updatedrainop.d.ts.map +1 -1
  163. package/esm/models/updatedrainop.js +72 -229
  164. package/esm/models/updatedrainop.js.map +1 -1
  165. package/esm/models/updateedgeconfigop.d.ts +4 -21
  166. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  167. package/esm/models/updateedgeconfigop.js +4 -18
  168. package/esm/models/updateedgeconfigop.js.map +1 -1
  169. package/esm/models/updateprojectdatacacheop.d.ts +76 -332
  170. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  171. package/esm/models/updateprojectdatacacheop.js +84 -318
  172. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  173. package/esm/models/updateprojectop.d.ts +76 -332
  174. package/esm/models/updateprojectop.d.ts.map +1 -1
  175. package/esm/models/updateprojectop.js +84 -316
  176. package/esm/models/updateprojectop.js.map +1 -1
  177. package/esm/models/updateprojectprotectionbypassop.d.ts +4 -21
  178. package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
  179. package/esm/models/updateprojectprotectionbypassop.js +4 -19
  180. package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
  181. package/esm/models/userevent.d.ts +54 -14
  182. package/esm/models/userevent.d.ts.map +1 -1
  183. package/esm/models/userevent.js +26 -13
  184. package/esm/models/userevent.js.map +1 -1
  185. package/esm/types/unrecognized.d.ts +7 -1
  186. package/esm/types/unrecognized.d.ts.map +1 -1
  187. package/esm/types/unrecognized.js +9 -1
  188. package/esm/types/unrecognized.js.map +1 -1
  189. package/examples/package-lock.json +1 -1
  190. package/jsr.json +1 -1
  191. package/package.json +1 -1
  192. package/src/__tests__/checks.test.ts +1 -1
  193. package/src/__tests__/domains.test.ts +3 -4
  194. package/src/__tests__/edgeconfig.test.ts +6 -6
  195. package/src/__tests__/rollingrelease.test.ts +2 -1
  196. package/src/__tests__/security.test.ts +1 -11
  197. package/src/lib/config.ts +3 -3
  198. package/src/lib/encodings.ts +17 -3
  199. package/src/mcp-server/mcp-server.ts +1 -1
  200. package/src/mcp-server/server.ts +1 -1
  201. package/src/models/authtoken.ts +16 -42
  202. package/src/models/buydomainsop.ts +14 -4
  203. package/src/models/buysingledomainop.ts +14 -4
  204. package/src/models/canceldeploymentop.ts +140 -127
  205. package/src/models/createdeploymentop.ts +149 -118
  206. package/src/models/createdrainop.ts +154 -511
  207. package/src/models/createedgeconfigop.ts +8 -37
  208. package/src/models/createeventop.ts +16 -43
  209. package/src/models/createlogdrainop.ts +18 -50
  210. package/src/models/createprojectenvop.ts +136 -875
  211. package/src/models/createprojectop.ts +172 -803
  212. package/src/models/editprojectenvop.ts +68 -417
  213. package/src/models/filterprojectenvsop.ts +210 -1337
  214. package/src/models/forbidden.ts +5 -20
  215. package/src/models/getaliasop.ts +36 -101
  216. package/src/models/getalllogdrainsop.ts +160 -551
  217. package/src/models/getconfigurationop.ts +8 -38
  218. package/src/models/getdeploymentop.ts +144 -124
  219. package/src/models/getdomainauthcodeop.ts +14 -4
  220. package/src/models/getdomaintransferinop.ts +14 -4
  221. package/src/models/getdrainop.ts +156 -531
  222. package/src/models/getdrainsop.ts +155 -535
  223. package/src/models/getedgeconfigop.ts +8 -41
  224. package/src/models/getintegrationlogdrainsop.ts +19 -44
  225. package/src/models/getorderop.ts +99 -408
  226. package/src/models/getprojectenvop.ts +208 -1337
  227. package/src/models/getprojectsop.ts +172 -802
  228. package/src/models/getrollingreleasebillingstatusop.ts +20 -100
  229. package/src/models/listaliasesop.ts +36 -100
  230. package/src/models/listdeploymentaliasesop.ts +36 -111
  231. package/src/models/removeprojectenvop.ts +208 -1335
  232. package/src/models/renewdomainop.ts +14 -4
  233. package/src/models/transferindomainop.ts +14 -4
  234. package/src/models/updatedomainautorenewop.ts +14 -4
  235. package/src/models/updatedomainnameserversop.ts +14 -4
  236. package/src/models/updatedrainop.ts +162 -542
  237. package/src/models/updateedgeconfigop.ts +8 -42
  238. package/src/models/updateprojectdatacacheop.ts +167 -781
  239. package/src/models/updateprojectop.ts +172 -803
  240. package/src/models/updateprojectprotectionbypassop.ts +8 -44
  241. package/src/models/userevent.ts +111 -29
  242. package/src/types/unrecognized.ts +9 -1
  243. package/tsconfig.json +0 -1
@@ -3,23 +3,17 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { ClosedEnum } from "../types/enums.js";
7
6
  import { VercelError } from "./vercelerror.js";
8
7
 
9
- export const ForbiddenCode = {
10
- Forbidden: "forbidden",
11
- } as const;
12
- export type ForbiddenCode = ClosedEnum<typeof ForbiddenCode>;
13
-
14
8
  export type ForbiddenData = {
15
9
  status: number;
16
- code: ForbiddenCode;
10
+ code: "forbidden";
17
11
  message: string;
18
12
  };
19
13
 
20
14
  export class Forbidden extends VercelError {
21
15
  status: number;
22
- code: ForbiddenCode;
16
+ code: "forbidden";
23
17
 
24
18
  /** The original data that was passed to this error instance. */
25
19
  data$: ForbiddenData;
@@ -38,15 +32,6 @@ export class Forbidden extends VercelError {
38
32
  }
39
33
  }
40
34
 
41
- /** @internal */
42
- export const ForbiddenCode$inboundSchema: z.ZodNativeEnum<
43
- typeof ForbiddenCode
44
- > = z.nativeEnum(ForbiddenCode);
45
- /** @internal */
46
- export const ForbiddenCode$outboundSchema: z.ZodNativeEnum<
47
- typeof ForbiddenCode
48
- > = ForbiddenCode$inboundSchema;
49
-
50
35
  /** @internal */
51
36
  export const Forbidden$inboundSchema: z.ZodType<
52
37
  Forbidden,
@@ -54,7 +39,7 @@ export const Forbidden$inboundSchema: z.ZodType<
54
39
  unknown
55
40
  > = z.object({
56
41
  status: z.number(),
57
- code: ForbiddenCode$inboundSchema,
42
+ code: z.literal("forbidden"),
58
43
  message: z.string(),
59
44
  request$: z.instanceof(Request),
60
45
  response$: z.instanceof(Response),
@@ -71,7 +56,7 @@ export const Forbidden$inboundSchema: z.ZodType<
71
56
  /** @internal */
72
57
  export type Forbidden$Outbound = {
73
58
  status: number;
74
- code: string;
59
+ code: "forbidden";
75
60
  message: string;
76
61
  };
77
62
 
@@ -84,6 +69,6 @@ export const Forbidden$outboundSchema: z.ZodType<
84
69
  .transform(v => v.data$)
85
70
  .pipe(z.object({
86
71
  status: z.number(),
87
- code: ForbiddenCode$outboundSchema,
72
+ code: z.literal("forbidden"),
88
73
  message: z.string(),
89
74
  }));
@@ -75,13 +75,6 @@ export type GetAliasDeployment = {
75
75
  meta?: string | undefined;
76
76
  };
77
77
 
78
- export const GetAliasProtectionBypassAliasesResponse200Scope = {
79
- EmailInvite: "email_invite",
80
- } as const;
81
- export type GetAliasProtectionBypassAliasesResponse200Scope = ClosedEnum<
82
- typeof GetAliasProtectionBypassAliasesResponse200Scope
83
- >;
84
-
85
78
  /**
86
79
  * The protection bypass for the alias
87
80
  */
@@ -89,23 +82,16 @@ export type ProtectionBypass4 = {
89
82
  createdAt: number;
90
83
  lastUpdatedAt: number;
91
84
  lastUpdatedBy: string;
92
- scope: GetAliasProtectionBypassAliasesResponse200Scope;
85
+ scope: "email_invite";
93
86
  };
94
87
 
95
- export const GetAliasProtectionBypassAliasesResponseScope = {
96
- AliasProtectionOverride: "alias-protection-override",
97
- } as const;
98
- export type GetAliasProtectionBypassAliasesResponseScope = ClosedEnum<
99
- typeof GetAliasProtectionBypassAliasesResponseScope
100
- >;
101
-
102
88
  /**
103
89
  * The protection bypass for the alias
104
90
  */
105
91
  export type ProtectionBypass3 = {
106
92
  createdAt: number;
107
93
  createdBy: string;
108
- scope: GetAliasProtectionBypassAliasesResponseScope;
94
+ scope: "alias-protection-override";
109
95
  };
110
96
 
111
97
  export const ProtectionBypassAccess = {
@@ -114,13 +100,6 @@ export const ProtectionBypassAccess = {
114
100
  } as const;
115
101
  export type ProtectionBypassAccess = ClosedEnum<typeof ProtectionBypassAccess>;
116
102
 
117
- export const GetAliasProtectionBypassAliasesScope = {
118
- User: "user",
119
- } as const;
120
- export type GetAliasProtectionBypassAliasesScope = ClosedEnum<
121
- typeof GetAliasProtectionBypassAliasesScope
122
- >;
123
-
124
103
  /**
125
104
  * The protection bypass for the alias
126
105
  */
@@ -129,31 +108,24 @@ export type GetAliasProtectionBypass2 = {
129
108
  lastUpdatedAt: number;
130
109
  lastUpdatedBy: string;
131
110
  access: ProtectionBypassAccess;
132
- scope: GetAliasProtectionBypassAliasesScope;
111
+ scope: "user";
133
112
  };
134
113
 
135
- export const GetAliasProtectionBypassScope = {
136
- ShareableLink: "shareable-link",
137
- } as const;
138
- export type GetAliasProtectionBypassScope = ClosedEnum<
139
- typeof GetAliasProtectionBypassScope
140
- >;
141
-
142
114
  /**
143
115
  * The protection bypass for the alias
144
116
  */
145
117
  export type GetAliasProtectionBypass1 = {
146
118
  createdAt: number;
147
119
  createdBy: string;
148
- scope: GetAliasProtectionBypassScope;
120
+ scope: "shareable-link";
149
121
  expires?: number | undefined;
150
122
  };
151
123
 
152
124
  export type GetAliasProtectionBypass =
153
- | GetAliasProtectionBypass2
154
- | ProtectionBypass4
155
125
  | GetAliasProtectionBypass1
156
- | ProtectionBypass3;
126
+ | GetAliasProtectionBypass2
127
+ | ProtectionBypass3
128
+ | ProtectionBypass4;
157
129
 
158
130
  export type DefaultApp = {
159
131
  projectId: string;
@@ -288,10 +260,10 @@ export type GetAliasResponseBody = {
288
260
  */
289
261
  protectionBypass?: {
290
262
  [k: string]:
291
- | GetAliasProtectionBypass2
292
- | ProtectionBypass4
293
263
  | GetAliasProtectionBypass1
294
- | ProtectionBypass3;
264
+ | GetAliasProtectionBypass2
265
+ | ProtectionBypass3
266
+ | ProtectionBypass4;
295
267
  } | undefined;
296
268
  /**
297
269
  * The microfrontends for the alias including the routing configuration
@@ -442,15 +414,6 @@ export function getAliasDeploymentFromJSON(
442
414
  );
443
415
  }
444
416
 
445
- /** @internal */
446
- export const GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema:
447
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> = z
448
- .nativeEnum(GetAliasProtectionBypassAliasesResponse200Scope);
449
- /** @internal */
450
- export const GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema:
451
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponse200Scope> =
452
- GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema;
453
-
454
417
  /** @internal */
455
418
  export const ProtectionBypass4$inboundSchema: z.ZodType<
456
419
  ProtectionBypass4,
@@ -460,14 +423,14 @@ export const ProtectionBypass4$inboundSchema: z.ZodType<
460
423
  createdAt: z.number(),
461
424
  lastUpdatedAt: z.number(),
462
425
  lastUpdatedBy: z.string(),
463
- scope: GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema,
426
+ scope: z.literal("email_invite"),
464
427
  });
465
428
  /** @internal */
466
429
  export type ProtectionBypass4$Outbound = {
467
430
  createdAt: number;
468
431
  lastUpdatedAt: number;
469
432
  lastUpdatedBy: string;
470
- scope: string;
433
+ scope: "email_invite";
471
434
  };
472
435
 
473
436
  /** @internal */
@@ -479,7 +442,7 @@ export const ProtectionBypass4$outboundSchema: z.ZodType<
479
442
  createdAt: z.number(),
480
443
  lastUpdatedAt: z.number(),
481
444
  lastUpdatedBy: z.string(),
482
- scope: GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema,
445
+ scope: z.literal("email_invite"),
483
446
  });
484
447
 
485
448
  export function protectionBypass4ToJSON(
@@ -499,15 +462,6 @@ export function protectionBypass4FromJSON(
499
462
  );
500
463
  }
501
464
 
502
- /** @internal */
503
- export const GetAliasProtectionBypassAliasesResponseScope$inboundSchema:
504
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> = z
505
- .nativeEnum(GetAliasProtectionBypassAliasesResponseScope);
506
- /** @internal */
507
- export const GetAliasProtectionBypassAliasesResponseScope$outboundSchema:
508
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesResponseScope> =
509
- GetAliasProtectionBypassAliasesResponseScope$inboundSchema;
510
-
511
465
  /** @internal */
512
466
  export const ProtectionBypass3$inboundSchema: z.ZodType<
513
467
  ProtectionBypass3,
@@ -516,13 +470,13 @@ export const ProtectionBypass3$inboundSchema: z.ZodType<
516
470
  > = z.object({
517
471
  createdAt: z.number(),
518
472
  createdBy: z.string(),
519
- scope: GetAliasProtectionBypassAliasesResponseScope$inboundSchema,
473
+ scope: z.literal("alias-protection-override"),
520
474
  });
521
475
  /** @internal */
522
476
  export type ProtectionBypass3$Outbound = {
523
477
  createdAt: number;
524
478
  createdBy: string;
525
- scope: string;
479
+ scope: "alias-protection-override";
526
480
  };
527
481
 
528
482
  /** @internal */
@@ -533,7 +487,7 @@ export const ProtectionBypass3$outboundSchema: z.ZodType<
533
487
  > = z.object({
534
488
  createdAt: z.number(),
535
489
  createdBy: z.string(),
536
- scope: GetAliasProtectionBypassAliasesResponseScope$outboundSchema,
490
+ scope: z.literal("alias-protection-override"),
537
491
  });
538
492
 
539
493
  export function protectionBypass3ToJSON(
@@ -562,16 +516,6 @@ export const ProtectionBypassAccess$outboundSchema: z.ZodNativeEnum<
562
516
  typeof ProtectionBypassAccess
563
517
  > = ProtectionBypassAccess$inboundSchema;
564
518
 
565
- /** @internal */
566
- export const GetAliasProtectionBypassAliasesScope$inboundSchema:
567
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> = z.nativeEnum(
568
- GetAliasProtectionBypassAliasesScope,
569
- );
570
- /** @internal */
571
- export const GetAliasProtectionBypassAliasesScope$outboundSchema:
572
- z.ZodNativeEnum<typeof GetAliasProtectionBypassAliasesScope> =
573
- GetAliasProtectionBypassAliasesScope$inboundSchema;
574
-
575
519
  /** @internal */
576
520
  export const GetAliasProtectionBypass2$inboundSchema: z.ZodType<
577
521
  GetAliasProtectionBypass2,
@@ -582,7 +526,7 @@ export const GetAliasProtectionBypass2$inboundSchema: z.ZodType<
582
526
  lastUpdatedAt: z.number(),
583
527
  lastUpdatedBy: z.string(),
584
528
  access: ProtectionBypassAccess$inboundSchema,
585
- scope: GetAliasProtectionBypassAliasesScope$inboundSchema,
529
+ scope: z.literal("user"),
586
530
  });
587
531
  /** @internal */
588
532
  export type GetAliasProtectionBypass2$Outbound = {
@@ -590,7 +534,7 @@ export type GetAliasProtectionBypass2$Outbound = {
590
534
  lastUpdatedAt: number;
591
535
  lastUpdatedBy: string;
592
536
  access: string;
593
- scope: string;
537
+ scope: "user";
594
538
  };
595
539
 
596
540
  /** @internal */
@@ -603,7 +547,7 @@ export const GetAliasProtectionBypass2$outboundSchema: z.ZodType<
603
547
  lastUpdatedAt: z.number(),
604
548
  lastUpdatedBy: z.string(),
605
549
  access: ProtectionBypassAccess$outboundSchema,
606
- scope: GetAliasProtectionBypassAliasesScope$outboundSchema,
550
+ scope: z.literal("user"),
607
551
  });
608
552
 
609
553
  export function getAliasProtectionBypass2ToJSON(
@@ -623,15 +567,6 @@ export function getAliasProtectionBypass2FromJSON(
623
567
  );
624
568
  }
625
569
 
626
- /** @internal */
627
- export const GetAliasProtectionBypassScope$inboundSchema: z.ZodNativeEnum<
628
- typeof GetAliasProtectionBypassScope
629
- > = z.nativeEnum(GetAliasProtectionBypassScope);
630
- /** @internal */
631
- export const GetAliasProtectionBypassScope$outboundSchema: z.ZodNativeEnum<
632
- typeof GetAliasProtectionBypassScope
633
- > = GetAliasProtectionBypassScope$inboundSchema;
634
-
635
570
  /** @internal */
636
571
  export const GetAliasProtectionBypass1$inboundSchema: z.ZodType<
637
572
  GetAliasProtectionBypass1,
@@ -640,14 +575,14 @@ export const GetAliasProtectionBypass1$inboundSchema: z.ZodType<
640
575
  > = z.object({
641
576
  createdAt: z.number(),
642
577
  createdBy: z.string(),
643
- scope: GetAliasProtectionBypassScope$inboundSchema,
578
+ scope: z.literal("shareable-link"),
644
579
  expires: z.number().optional(),
645
580
  });
646
581
  /** @internal */
647
582
  export type GetAliasProtectionBypass1$Outbound = {
648
583
  createdAt: number;
649
584
  createdBy: string;
650
- scope: string;
585
+ scope: "shareable-link";
651
586
  expires?: number | undefined;
652
587
  };
653
588
 
@@ -659,7 +594,7 @@ export const GetAliasProtectionBypass1$outboundSchema: z.ZodType<
659
594
  > = z.object({
660
595
  createdAt: z.number(),
661
596
  createdBy: z.string(),
662
- scope: GetAliasProtectionBypassScope$outboundSchema,
597
+ scope: z.literal("shareable-link"),
663
598
  expires: z.number().optional(),
664
599
  });
665
600
 
@@ -686,17 +621,17 @@ export const GetAliasProtectionBypass$inboundSchema: z.ZodType<
686
621
  z.ZodTypeDef,
687
622
  unknown
688
623
  > = z.union([
689
- z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
690
- z.lazy(() => ProtectionBypass4$inboundSchema),
691
624
  z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
625
+ z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
692
626
  z.lazy(() => ProtectionBypass3$inboundSchema),
627
+ z.lazy(() => ProtectionBypass4$inboundSchema),
693
628
  ]);
694
629
  /** @internal */
695
630
  export type GetAliasProtectionBypass$Outbound =
696
- | GetAliasProtectionBypass2$Outbound
697
- | ProtectionBypass4$Outbound
698
631
  | GetAliasProtectionBypass1$Outbound
699
- | ProtectionBypass3$Outbound;
632
+ | GetAliasProtectionBypass2$Outbound
633
+ | ProtectionBypass3$Outbound
634
+ | ProtectionBypass4$Outbound;
700
635
 
701
636
  /** @internal */
702
637
  export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
@@ -704,10 +639,10 @@ export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
704
639
  z.ZodTypeDef,
705
640
  GetAliasProtectionBypass
706
641
  > = z.union([
707
- z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
708
- z.lazy(() => ProtectionBypass4$outboundSchema),
709
642
  z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
643
+ z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
710
644
  z.lazy(() => ProtectionBypass3$outboundSchema),
645
+ z.lazy(() => ProtectionBypass4$outboundSchema),
711
646
  ]);
712
647
 
713
648
  export function getAliasProtectionBypassToJSON(
@@ -1004,10 +939,10 @@ export const GetAliasResponseBody$inboundSchema: z.ZodType<
1004
939
  updatedAt: z.number().optional(),
1005
940
  protectionBypass: z.record(
1006
941
  z.union([
1007
- z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
1008
- z.lazy(() => ProtectionBypass4$inboundSchema),
1009
942
  z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
943
+ z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
1010
944
  z.lazy(() => ProtectionBypass3$inboundSchema),
945
+ z.lazy(() => ProtectionBypass4$inboundSchema),
1011
946
  ]),
1012
947
  ).optional(),
1013
948
  microfrontends: z.lazy(() => GetAliasMicrofrontends$inboundSchema).optional(),
@@ -1028,10 +963,10 @@ export type GetAliasResponseBody$Outbound = {
1028
963
  updatedAt?: number | undefined;
1029
964
  protectionBypass?: {
1030
965
  [k: string]:
1031
- | GetAliasProtectionBypass2$Outbound
1032
- | ProtectionBypass4$Outbound
1033
966
  | GetAliasProtectionBypass1$Outbound
1034
- | ProtectionBypass3$Outbound;
967
+ | GetAliasProtectionBypass2$Outbound
968
+ | ProtectionBypass3$Outbound
969
+ | ProtectionBypass4$Outbound;
1035
970
  } | undefined;
1036
971
  microfrontends?: GetAliasMicrofrontends$Outbound | undefined;
1037
972
  };
@@ -1056,10 +991,10 @@ export const GetAliasResponseBody$outboundSchema: z.ZodType<
1056
991
  updatedAt: z.number().optional(),
1057
992
  protectionBypass: z.record(
1058
993
  z.union([
1059
- z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
1060
- z.lazy(() => ProtectionBypass4$outboundSchema),
1061
994
  z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
995
+ z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
1062
996
  z.lazy(() => ProtectionBypass3$outboundSchema),
997
+ z.lazy(() => ProtectionBypass4$outboundSchema),
1063
998
  ]),
1064
999
  ).optional(),
1065
1000
  microfrontends: z.lazy(() => GetAliasMicrofrontends$outboundSchema)