@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.4

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 (230) hide show
  1. package/lib/credentials.d.ts +21 -0
  2. package/lib/credentials.d.ts.map +1 -0
  3. package/lib/credentials.js +40 -0
  4. package/lib/credentials.js.map +1 -0
  5. package/lib/errors.d.ts +80 -0
  6. package/lib/errors.d.ts.map +1 -0
  7. package/lib/errors.js +50 -0
  8. package/lib/errors.js.map +1 -0
  9. package/lib/index.d.ts +15 -0
  10. package/lib/index.d.ts.map +1 -0
  11. package/lib/index.js +15 -0
  12. package/lib/index.js.map +1 -0
  13. package/lib/protocol.d.ts +18 -0
  14. package/lib/protocol.d.ts.map +1 -0
  15. package/lib/protocol.js +69 -0
  16. package/lib/protocol.js.map +1 -0
  17. package/lib/retry.d.ts +54 -0
  18. package/lib/retry.d.ts.map +1 -0
  19. package/lib/retry.js +47 -0
  20. package/lib/retry.js.map +1 -0
  21. package/lib/services/access_groups.d.ts +459 -0
  22. package/lib/services/access_groups.d.ts.map +1 -0
  23. package/lib/services/access_groups.js +453 -0
  24. package/lib/services/access_groups.js.map +1 -0
  25. package/lib/services/ai_gateway.d.ts +124 -0
  26. package/lib/services/ai_gateway.d.ts.map +1 -0
  27. package/lib/services/ai_gateway.js +126 -0
  28. package/lib/services/ai_gateway.js.map +1 -0
  29. package/lib/services/aliases.d.ts +591 -0
  30. package/lib/services/aliases.d.ts.map +1 -0
  31. package/lib/services/aliases.js +508 -0
  32. package/lib/services/aliases.js.map +1 -0
  33. package/lib/services/artifacts.d.ts +228 -0
  34. package/lib/services/artifacts.d.ts.map +1 -0
  35. package/lib/services/artifacts.js +216 -0
  36. package/lib/services/artifacts.js.map +1 -0
  37. package/lib/services/authentication.d.ts +373 -0
  38. package/lib/services/authentication.d.ts.map +1 -0
  39. package/lib/services/authentication.js +310 -0
  40. package/lib/services/authentication.js.map +1 -0
  41. package/lib/services/billing.d.ts +792 -0
  42. package/lib/services/billing.d.ts.map +1 -0
  43. package/lib/services/billing.js +616 -0
  44. package/lib/services/billing.js.map +1 -0
  45. package/lib/services/bulk_redirects.d.ts +308 -0
  46. package/lib/services/bulk_redirects.d.ts.map +1 -0
  47. package/lib/services/bulk_redirects.js +306 -0
  48. package/lib/services/bulk_redirects.js.map +1 -0
  49. package/lib/services/certs.d.ts +171 -0
  50. package/lib/services/certs.d.ts.map +1 -0
  51. package/lib/services/certs.js +165 -0
  52. package/lib/services/certs.js.map +1 -0
  53. package/lib/services/checks_v2.d.ts +1162 -0
  54. package/lib/services/checks_v2.d.ts.map +1 -0
  55. package/lib/services/checks_v2.js +1252 -0
  56. package/lib/services/checks_v2.js.map +1 -0
  57. package/lib/services/connect.d.ts +1034 -0
  58. package/lib/services/connect.d.ts.map +1 -0
  59. package/lib/services/connect.js +993 -0
  60. package/lib/services/connect.js.map +1 -0
  61. package/lib/services/deployments.d.ts +9111 -0
  62. package/lib/services/deployments.d.ts.map +1 -0
  63. package/lib/services/deployments.js +8664 -0
  64. package/lib/services/deployments.js.map +1 -0
  65. package/lib/services/dns.d.ts +279 -0
  66. package/lib/services/dns.d.ts.map +1 -0
  67. package/lib/services/dns.js +282 -0
  68. package/lib/services/dns.js.map +1 -0
  69. package/lib/services/domains.d.ts +539 -0
  70. package/lib/services/domains.d.ts.map +1 -0
  71. package/lib/services/domains.js +464 -0
  72. package/lib/services/domains.js.map +1 -0
  73. package/lib/services/domains_registrar.d.ts +798 -0
  74. package/lib/services/domains_registrar.d.ts.map +1 -0
  75. package/lib/services/domains_registrar.js +968 -0
  76. package/lib/services/domains_registrar.js.map +1 -0
  77. package/lib/services/drains.d.ts +2263 -0
  78. package/lib/services/drains.d.ts.map +1 -0
  79. package/lib/services/drains.js +2406 -0
  80. package/lib/services/drains.js.map +1 -0
  81. package/lib/services/edge_cache.d.ts +125 -0
  82. package/lib/services/edge_cache.d.ts.map +1 -0
  83. package/lib/services/edge_cache.js +140 -0
  84. package/lib/services/edge_cache.js.map +1 -0
  85. package/lib/services/environment.d.ts +1020 -0
  86. package/lib/services/environment.d.ts.map +1 -0
  87. package/lib/services/environment.js +842 -0
  88. package/lib/services/environment.js.map +1 -0
  89. package/lib/services/feature_flags.d.ts +3109 -0
  90. package/lib/services/feature_flags.d.ts.map +1 -0
  91. package/lib/services/feature_flags.js +3074 -0
  92. package/lib/services/feature_flags.js.map +1 -0
  93. package/lib/services/global_config.d.ts +618 -0
  94. package/lib/services/global_config.d.ts.map +1 -0
  95. package/lib/services/global_config.js +716 -0
  96. package/lib/services/global_config.js.map +1 -0
  97. package/lib/services/index.d.ts +39 -0
  98. package/lib/services/index.d.ts.map +1 -0
  99. package/lib/services/index.js +40 -0
  100. package/lib/services/index.js.map +1 -0
  101. package/lib/services/integrations.d.ts +2987 -0
  102. package/lib/services/integrations.d.ts.map +1 -0
  103. package/lib/services/integrations.js +2903 -0
  104. package/lib/services/integrations.js.map +1 -0
  105. package/lib/services/log_drains.d.ts +848 -0
  106. package/lib/services/log_drains.d.ts.map +1 -0
  107. package/lib/services/log_drains.js +866 -0
  108. package/lib/services/log_drains.js.map +1 -0
  109. package/lib/services/logs.d.ts +40 -0
  110. package/lib/services/logs.d.ts.map +1 -0
  111. package/lib/services/logs.js +43 -0
  112. package/lib/services/logs.js.map +1 -0
  113. package/lib/services/marketplace.d.ts +991 -0
  114. package/lib/services/marketplace.d.ts.map +1 -0
  115. package/lib/services/marketplace.js +1044 -0
  116. package/lib/services/marketplace.js.map +1 -0
  117. package/lib/services/microfrontends.d.ts +3210 -0
  118. package/lib/services/microfrontends.d.ts.map +1 -0
  119. package/lib/services/microfrontends.js +3300 -0
  120. package/lib/services/microfrontends.js.map +1 -0
  121. package/lib/services/networking.d.ts +239 -0
  122. package/lib/services/networking.d.ts.map +1 -0
  123. package/lib/services/networking.js +224 -0
  124. package/lib/services/networking.js.map +1 -0
  125. package/lib/services/observability.d.ts +168 -0
  126. package/lib/services/observability.d.ts.map +1 -0
  127. package/lib/services/observability.js +191 -0
  128. package/lib/services/observability.js.map +1 -0
  129. package/lib/services/project_members.d.ts +142 -0
  130. package/lib/services/project_members.d.ts.map +1 -0
  131. package/lib/services/project_members.js +139 -0
  132. package/lib/services/project_members.js.map +1 -0
  133. package/lib/services/project_routes.d.ts +1990 -0
  134. package/lib/services/project_routes.d.ts.map +1 -0
  135. package/lib/services/project_routes.js +2026 -0
  136. package/lib/services/project_routes.js.map +1 -0
  137. package/lib/services/projects.d.ts +23449 -0
  138. package/lib/services/projects.d.ts.map +1 -0
  139. package/lib/services/projects.js +23570 -0
  140. package/lib/services/projects.js.map +1 -0
  141. package/lib/services/rolling_release.d.ts +764 -0
  142. package/lib/services/rolling_release.d.ts.map +1 -0
  143. package/lib/services/rolling_release.js +630 -0
  144. package/lib/services/rolling_release.js.map +1 -0
  145. package/lib/services/sandboxes.d.ts +2183 -0
  146. package/lib/services/sandboxes.d.ts.map +1 -0
  147. package/lib/services/sandboxes.js +1756 -0
  148. package/lib/services/sandboxes.js.map +1 -0
  149. package/lib/services/security.d.ts +3932 -0
  150. package/lib/services/security.d.ts.map +1 -0
  151. package/lib/services/security.js +4411 -0
  152. package/lib/services/security.js.map +1 -0
  153. package/lib/services/storage.d.ts +251 -0
  154. package/lib/services/storage.d.ts.map +1 -0
  155. package/lib/services/storage.js +270 -0
  156. package/lib/services/storage.js.map +1 -0
  157. package/lib/services/teams.d.ts +1577 -0
  158. package/lib/services/teams.d.ts.map +1 -0
  159. package/lib/services/teams.js +1359 -0
  160. package/lib/services/teams.js.map +1 -0
  161. package/lib/services/user.d.ts +7972 -0
  162. package/lib/services/user.d.ts.map +1 -0
  163. package/lib/services/user.js +7093 -0
  164. package/lib/services/user.js.map +1 -0
  165. package/lib/services/vcr.d.ts +793 -0
  166. package/lib/services/vcr.d.ts.map +1 -0
  167. package/lib/services/vcr.js +882 -0
  168. package/lib/services/vcr.js.map +1 -0
  169. package/lib/services/web_analytics.d.ts +694 -0
  170. package/lib/services/web_analytics.d.ts.map +1 -0
  171. package/lib/services/web_analytics.js +695 -0
  172. package/lib/services/web_analytics.js.map +1 -0
  173. package/lib/services/webhooks.d.ts +207 -0
  174. package/lib/services/webhooks.d.ts.map +1 -0
  175. package/lib/services/webhooks.js +171 -0
  176. package/lib/services/webhooks.js.map +1 -0
  177. package/lib/traits.d.ts +10 -0
  178. package/lib/traits.d.ts.map +1 -0
  179. package/lib/traits.js +11 -0
  180. package/lib/traits.js.map +1 -0
  181. package/package.json +77 -7
  182. package/src/credentials.ts +70 -0
  183. package/src/errors.ts +93 -0
  184. package/src/index.ts +18 -0
  185. package/src/protocol.ts +98 -0
  186. package/src/retry.ts +78 -0
  187. package/src/services/access_groups.ts +1165 -0
  188. package/src/services/ai_gateway.ts +272 -0
  189. package/src/services/aliases.ts +1323 -0
  190. package/src/services/artifacts.ts +542 -0
  191. package/src/services/authentication.ts +829 -0
  192. package/src/services/billing.ts +1776 -0
  193. package/src/services/bulk_redirects.ts +748 -0
  194. package/src/services/certs.ts +377 -0
  195. package/src/services/checks_v2.ts +3136 -0
  196. package/src/services/connect.ts +2607 -0
  197. package/src/services/deployments.ts +23682 -0
  198. package/src/services/dns.ts +718 -0
  199. package/src/services/domains.ts +1209 -0
  200. package/src/services/domains_registrar.ts +2290 -0
  201. package/src/services/drains.ts +5989 -0
  202. package/src/services/edge_cache.ts +303 -0
  203. package/src/services/environment.ts +2388 -0
  204. package/src/services/feature_flags.ts +8302 -0
  205. package/src/services/global_config.ts +1668 -0
  206. package/src/services/index.ts +39 -0
  207. package/src/services/integrations.ts +8846 -0
  208. package/src/services/log_drains.ts +2413 -0
  209. package/src/services/logs.ts +78 -0
  210. package/src/services/marketplace.ts +2626 -0
  211. package/src/services/microfrontends.ts +9650 -0
  212. package/src/services/networking.ts +530 -0
  213. package/src/services/observability.ts +436 -0
  214. package/src/services/project_members.ts +328 -0
  215. package/src/services/project_routes.ts +5259 -0
  216. package/src/services/projects.ts +67377 -0
  217. package/src/services/rolling_release.ts +1869 -0
  218. package/src/services/sandboxes.ts +5259 -0
  219. package/src/services/security.ts +12408 -0
  220. package/src/services/storage.ts +849 -0
  221. package/src/services/teams.ts +3995 -0
  222. package/src/services/user.ts +21687 -0
  223. package/src/services/vcr.ts +2165 -0
  224. package/src/services/web_analytics.ts +1570 -0
  225. package/src/services/webhooks.ts +1073 -0
  226. package/src/traits.ts +44 -0
  227. package/README.md +0 -15
  228. package/bun.lock +0 -26
  229. package/index.ts +0 -1
  230. package/tsconfig.json +0 -29
@@ -0,0 +1,1323 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.ts";
7
+ import {
8
+ VercelProtocol,
9
+ type VercelOpError,
10
+ type VercelOpContext,
11
+ } from "../protocol.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { VercelOpError, VercelOpContext };
15
+
16
+ export class BadRequest
17
+ extends /*@__PURE__*/ T.applyErrorMatchers(
18
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
19
+ code: S.Number,
20
+ message: S.String,
21
+ }).pipe(C.withBadRequestError),
22
+ [{ status: 400 }],
23
+ ) {}
24
+
25
+ export class Conflict
26
+ extends /*@__PURE__*/ T.applyErrorMatchers(
27
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
28
+ code: S.Number,
29
+ message: S.String,
30
+ }).pipe(C.withConflictError),
31
+ [{ status: 409 }],
32
+ ) {}
33
+
34
+ export class Forbidden
35
+ extends /*@__PURE__*/ T.applyErrorMatchers(
36
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
37
+ code: S.Number,
38
+ message: S.String,
39
+ }).pipe(C.withAuthError),
40
+ [{ status: 403 }],
41
+ ) {}
42
+
43
+ export class NotFound
44
+ extends /*@__PURE__*/ T.applyErrorMatchers(
45
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
46
+ code: S.Number,
47
+ message: S.String,
48
+ }).pipe(C.withBadRequestError),
49
+ [{ status: 404 }],
50
+ ) {}
51
+
52
+ export class PaymentRequired
53
+ extends /*@__PURE__*/ T.applyErrorMatchers(
54
+ /*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
55
+ code: S.Number,
56
+ message: S.String,
57
+ }).pipe(C.withQuotaError),
58
+ [{ status: 402 }],
59
+ ) {}
60
+
61
+ export interface AssignAliasRequest {
62
+ /** The deployment or alias ID or URL to assign from */
63
+ id: string;
64
+ /** The Team identifier to perform the request on behalf of. */
65
+ teamId?: string;
66
+ /** The Team slug to perform the request on behalf of. */
67
+ slug?: string;
68
+ /** The alias we want to assign to the deployment defined in the URL */
69
+ alias?: string;
70
+ /** The redirect property will take precedence over the deployment id from the URL and consists of a hostname (like test.com) to which the alias should redirect using status code 307 */
71
+ redirect?: string | null;
72
+ }
73
+ export const AssignAliasRequest = /*@__PURE__*/ S.suspend(() =>
74
+ S.Struct({
75
+ id: S.String.pipe(T.Label()),
76
+ teamId: S.optional(S.String.pipe(T.Query())),
77
+ slug: S.optional(S.String.pipe(T.Query())),
78
+ alias: S.optional(S.String),
79
+ redirect: S.optional(S.NullOr(S.String)),
80
+ }).pipe(
81
+ T.Http({ method: "POST", uri: "/v2/deployments/{id}/aliases", code: 200 }),
82
+ ),
83
+ ).annotate({
84
+ identifier: "AssignAliasRequest",
85
+ }) as any as S.Schema<AssignAliasRequest>;
86
+
87
+ export interface AssignAliasResponse {
88
+ /** The unique identifier of the alias */
89
+ uid: string;
90
+ /** The assigned alias name */
91
+ alias: string;
92
+ /** The date when the alias was created */
93
+ created: string;
94
+ /** The unique identifier of the previously aliased deployment, only received when the alias was used before */
95
+ oldDeploymentId?: string | null;
96
+ }
97
+ export const AssignAliasResponse = /*@__PURE__*/ S.suspend(() =>
98
+ S.Struct({
99
+ uid: S.String,
100
+ alias: S.String,
101
+ created: S.String,
102
+ oldDeploymentId: S.optional(S.NullOr(S.String)),
103
+ }),
104
+ ).annotate({
105
+ identifier: "AssignAliasResponse",
106
+ }) as any as S.Schema<AssignAliasResponse>;
107
+
108
+ export interface DeleteAliasRequest {
109
+ /** The ID or alias that will be removed */
110
+ aliasId: string;
111
+ /** The Team identifier to perform the request on behalf of. */
112
+ teamId?: string;
113
+ /** The Team slug to perform the request on behalf of. */
114
+ slug?: string;
115
+ }
116
+ export const DeleteAliasRequest = /*@__PURE__*/ S.suspend(() =>
117
+ S.Struct({
118
+ aliasId: S.String.pipe(T.Label()),
119
+ teamId: S.optional(S.String.pipe(T.Query())),
120
+ slug: S.optional(S.String.pipe(T.Query())),
121
+ }).pipe(
122
+ T.Http({ method: "DELETE", uri: "/v2/aliases/{aliasId}", code: 200 }),
123
+ ),
124
+ ).annotate({
125
+ identifier: "DeleteAliasRequest",
126
+ }) as any as S.Schema<DeleteAliasRequest>;
127
+
128
+ export type DeleteAliasResponseStatus = "SUCCESS";
129
+ export const DeleteAliasResponseStatus = /*@__PURE__*/ S.String;
130
+
131
+ export interface DeleteAliasResponse {
132
+ status: DeleteAliasResponseStatus;
133
+ }
134
+ export const DeleteAliasResponse = /*@__PURE__*/ S.suspend(() =>
135
+ S.Struct({
136
+ status: DeleteAliasResponseStatus,
137
+ }),
138
+ ).annotate({
139
+ identifier: "DeleteAliasResponse",
140
+ }) as any as S.Schema<DeleteAliasResponse>;
141
+
142
+ export interface GetAliasRequest {
143
+ /** The alias or alias ID to be retrieved */
144
+ idOrAlias: string;
145
+ /** Get the alias only if it was created after the provided timestamp */
146
+ from?: number;
147
+ /** Get the alias only if it is assigned to the provided project ID */
148
+ projectId?: string;
149
+ /** Get the alias only if it was created after this JavaScript timestamp */
150
+ since?: number;
151
+ /** Get the alias only if it was created before this JavaScript timestamp */
152
+ until?: number;
153
+ /** The Team identifier to perform the request on behalf of. */
154
+ teamId?: string;
155
+ /** The Team slug to perform the request on behalf of. */
156
+ slug?: string;
157
+ }
158
+ export const GetAliasRequest = /*@__PURE__*/ S.suspend(() =>
159
+ S.Struct({
160
+ idOrAlias: S.String.pipe(T.Label()),
161
+ from: S.optional(S.Number.pipe(T.Query())),
162
+ projectId: S.optional(S.String.pipe(T.Query())),
163
+ since: S.optional(S.Number.pipe(T.Query())),
164
+ until: S.optional(S.Number.pipe(T.Query())),
165
+ teamId: S.optional(S.String.pipe(T.Query())),
166
+ slug: S.optional(S.String.pipe(T.Query())),
167
+ }).pipe(T.Http({ method: "GET", uri: "/v4/aliases/{idOrAlias}", code: 200 })),
168
+ ).annotate({
169
+ identifier: "GetAliasRequest",
170
+ }) as any as S.Schema<GetAliasRequest>;
171
+
172
+ /** Information of the user who created the alias */
173
+ export interface GetAliasResponseCreator {
174
+ /** ID of the user who created the alias */
175
+ uid: string;
176
+ /** Email of the user who created the alias */
177
+ email: string;
178
+ /** Username of the user who created the alias */
179
+ username: string;
180
+ }
181
+ export const GetAliasResponseCreator = /*@__PURE__*/ S.suspend(() =>
182
+ S.Struct({
183
+ uid: S.String,
184
+ email: S.String,
185
+ username: S.String,
186
+ }),
187
+ ).annotate({
188
+ identifier: "GetAliasResponseCreator",
189
+ }) as any as S.Schema<GetAliasResponseCreator>;
190
+
191
+ /** A map with the deployment ID, URL and metadata */
192
+ export interface GetAliasResponseDeployment {
193
+ /** The deployment unique identifier */
194
+ id: string;
195
+ /** The deployment unique URL */
196
+ url: string;
197
+ /** The deployment metadata */
198
+ meta?: string;
199
+ }
200
+ export const GetAliasResponseDeployment = /*@__PURE__*/ S.suspend(() =>
201
+ S.Struct({
202
+ id: S.String,
203
+ url: S.String,
204
+ meta: S.optional(S.String),
205
+ }),
206
+ ).annotate({
207
+ identifier: "GetAliasResponseDeployment",
208
+ }) as any as S.Schema<GetAliasResponseDeployment>;
209
+
210
+ /** Status code to be used on redirect */
211
+ export type GetAliasResponseRedirectStatusCode = 301 | 302 | 307 | 308;
212
+ export const GetAliasResponseRedirectStatusCode = /*@__PURE__*/ S.Number;
213
+
214
+ export type GetAliasResponseProtectionBypassValueCase0Scope = "shareable-link";
215
+ export const GetAliasResponseProtectionBypassValueCase0Scope =
216
+ /*@__PURE__*/ S.String;
217
+
218
+ /** The protection bypass for the alias */
219
+ export interface GetAliasResponseProtectionBypassValueCase0 {
220
+ createdAt: number;
221
+ createdBy: string;
222
+ scope: GetAliasResponseProtectionBypassValueCase0Scope;
223
+ expires?: number;
224
+ }
225
+ export const GetAliasResponseProtectionBypassValueCase0 =
226
+ /*@__PURE__*/ S.suspend(() =>
227
+ S.Struct({
228
+ createdAt: S.Number,
229
+ createdBy: S.String,
230
+ scope: GetAliasResponseProtectionBypassValueCase0Scope,
231
+ expires: S.optional(S.Number),
232
+ }),
233
+ ).annotate({
234
+ identifier: "GetAliasResponseProtectionBypassValueCase0",
235
+ }) as any as S.Schema<GetAliasResponseProtectionBypassValueCase0>;
236
+
237
+ export type GetAliasResponseProtectionBypassValueCase1Access =
238
+ | "granted"
239
+ | "requested";
240
+ export const GetAliasResponseProtectionBypassValueCase1Access =
241
+ /*@__PURE__*/ S.String;
242
+
243
+ export type GetAliasResponseProtectionBypassValueCase1Scope = "user";
244
+ export const GetAliasResponseProtectionBypassValueCase1Scope =
245
+ /*@__PURE__*/ S.String;
246
+
247
+ /** The protection bypass for the alias */
248
+ export interface GetAliasResponseProtectionBypassValueCase1 {
249
+ createdAt: number;
250
+ lastUpdatedAt: number;
251
+ lastUpdatedBy: string;
252
+ access: GetAliasResponseProtectionBypassValueCase1Access;
253
+ scope: GetAliasResponseProtectionBypassValueCase1Scope;
254
+ }
255
+ export const GetAliasResponseProtectionBypassValueCase1 =
256
+ /*@__PURE__*/ S.suspend(() =>
257
+ S.Struct({
258
+ createdAt: S.Number,
259
+ lastUpdatedAt: S.Number,
260
+ lastUpdatedBy: S.String,
261
+ access: GetAliasResponseProtectionBypassValueCase1Access,
262
+ scope: GetAliasResponseProtectionBypassValueCase1Scope,
263
+ }),
264
+ ).annotate({
265
+ identifier: "GetAliasResponseProtectionBypassValueCase1",
266
+ }) as any as S.Schema<GetAliasResponseProtectionBypassValueCase1>;
267
+
268
+ export type GetAliasResponseProtectionBypassValueCase2Scope =
269
+ "alias-protection-override";
270
+ export const GetAliasResponseProtectionBypassValueCase2Scope =
271
+ /*@__PURE__*/ S.String;
272
+
273
+ /** The protection bypass for the alias */
274
+ export interface GetAliasResponseProtectionBypassValueCase2 {
275
+ createdAt: number;
276
+ createdBy: string;
277
+ scope: GetAliasResponseProtectionBypassValueCase2Scope;
278
+ }
279
+ export const GetAliasResponseProtectionBypassValueCase2 =
280
+ /*@__PURE__*/ S.suspend(() =>
281
+ S.Struct({
282
+ createdAt: S.Number,
283
+ createdBy: S.String,
284
+ scope: GetAliasResponseProtectionBypassValueCase2Scope,
285
+ }),
286
+ ).annotate({
287
+ identifier: "GetAliasResponseProtectionBypassValueCase2",
288
+ }) as any as S.Schema<GetAliasResponseProtectionBypassValueCase2>;
289
+
290
+ export type GetAliasResponseProtectionBypassValueCase3Scope = "email_invite";
291
+ export const GetAliasResponseProtectionBypassValueCase3Scope =
292
+ /*@__PURE__*/ S.String;
293
+
294
+ /** The protection bypass for the alias */
295
+ export interface GetAliasResponseProtectionBypassValueCase3 {
296
+ createdAt: number;
297
+ lastUpdatedAt: number;
298
+ lastUpdatedBy: string;
299
+ scope: GetAliasResponseProtectionBypassValueCase3Scope;
300
+ }
301
+ export const GetAliasResponseProtectionBypassValueCase3 =
302
+ /*@__PURE__*/ S.suspend(() =>
303
+ S.Struct({
304
+ createdAt: S.Number,
305
+ lastUpdatedAt: S.Number,
306
+ lastUpdatedBy: S.String,
307
+ scope: GetAliasResponseProtectionBypassValueCase3Scope,
308
+ }),
309
+ ).annotate({
310
+ identifier: "GetAliasResponseProtectionBypassValueCase3",
311
+ }) as any as S.Schema<GetAliasResponseProtectionBypassValueCase3>;
312
+
313
+ export type GetAliasResponseProtectionBypassValue =
314
+ | GetAliasResponseProtectionBypassValueCase0
315
+ | GetAliasResponseProtectionBypassValueCase1
316
+ | GetAliasResponseProtectionBypassValueCase2
317
+ | GetAliasResponseProtectionBypassValueCase3;
318
+ export const GetAliasResponseProtectionBypassValue =
319
+ /*@__PURE__*/ S.Unknown as any as S.Schema<GetAliasResponseProtectionBypassValue>;
320
+
321
+ /** The protection bypass for the alias */
322
+ export type GetAliasResponseProtectionBypassMap = {
323
+ [key: string]: GetAliasResponseProtectionBypassValue | undefined;
324
+ };
325
+ export const GetAliasResponseProtectionBypassMap = /*@__PURE__*/ S.Record(
326
+ S.String,
327
+ GetAliasResponseProtectionBypassValue,
328
+ ) as any as S.Schema<GetAliasResponseProtectionBypassMap>;
329
+
330
+ export interface GetAliasResponseMicrofrontendsDefaultApp {
331
+ projectId: string;
332
+ }
333
+ export const GetAliasResponseMicrofrontendsDefaultApp = /*@__PURE__*/ S.suspend(
334
+ () =>
335
+ S.Struct({
336
+ projectId: S.String,
337
+ }),
338
+ ).annotate({
339
+ identifier: "GetAliasResponseMicrofrontendsDefaultApp",
340
+ }) as any as S.Schema<GetAliasResponseMicrofrontendsDefaultApp>;
341
+
342
+ /** A list of the deployment routing information for each project. */
343
+ export interface GetAliasResponseMicrofrontendsApplicationsCase0Item {
344
+ /** 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. */
345
+ fallbackHost: string;
346
+ /** The project ID of the microfrontends application. */
347
+ projectId: string;
348
+ }
349
+ export const GetAliasResponseMicrofrontendsApplicationsCase0Item =
350
+ /*@__PURE__*/ S.suspend(() =>
351
+ S.Struct({
352
+ fallbackHost: S.String,
353
+ projectId: S.String,
354
+ }),
355
+ ).annotate({
356
+ identifier: "GetAliasResponseMicrofrontendsApplicationsCase0Item",
357
+ }) as any as S.Schema<GetAliasResponseMicrofrontendsApplicationsCase0Item>;
358
+
359
+ /** A list of the deployment routing information for each project. */
360
+ export type GetAliasResponseMicrofrontendsApplicationsCase0List =
361
+ Array<GetAliasResponseMicrofrontendsApplicationsCase0Item>;
362
+ export const GetAliasResponseMicrofrontendsApplicationsCase0List =
363
+ /*@__PURE__*/ S.Array(
364
+ GetAliasResponseMicrofrontendsApplicationsCase0Item,
365
+ ) as any as S.Schema<GetAliasResponseMicrofrontendsApplicationsCase0List>;
366
+
367
+ /** A list of the deployment routing information for each project. */
368
+ export interface GetAliasResponseMicrofrontendsApplicationsCase1Item {
369
+ /** This is always set. For branch aliases, it's used as the fallback if there is no deployment for the branch. */
370
+ fallbackHost: string;
371
+ /** 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. */
372
+ branchAlias: string;
373
+ /** The project ID of the microfrontends application. */
374
+ projectId: string;
375
+ }
376
+ export const GetAliasResponseMicrofrontendsApplicationsCase1Item =
377
+ /*@__PURE__*/ S.suspend(() =>
378
+ S.Struct({
379
+ fallbackHost: S.String,
380
+ branchAlias: S.String,
381
+ projectId: S.String,
382
+ }),
383
+ ).annotate({
384
+ identifier: "GetAliasResponseMicrofrontendsApplicationsCase1Item",
385
+ }) as any as S.Schema<GetAliasResponseMicrofrontendsApplicationsCase1Item>;
386
+
387
+ /** A list of the deployment routing information for each project. */
388
+ export type GetAliasResponseMicrofrontendsApplicationsCase1List =
389
+ Array<GetAliasResponseMicrofrontendsApplicationsCase1Item>;
390
+ export const GetAliasResponseMicrofrontendsApplicationsCase1List =
391
+ /*@__PURE__*/ S.Array(
392
+ GetAliasResponseMicrofrontendsApplicationsCase1Item,
393
+ ) as any as S.Schema<GetAliasResponseMicrofrontendsApplicationsCase1List>;
394
+
395
+ /** A list of the deployment routing information for each project. */
396
+ export interface GetAliasResponseMicrofrontendsApplicationsCase2Item {
397
+ /** 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. */
398
+ deploymentId?: string;
399
+ /** 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. */
400
+ branchDeploymentId?: string;
401
+ /** 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. */
402
+ fallbackDeploymentId?: string;
403
+ /** Temporary for backwards compatibility. Can remove when metadata change is released */
404
+ fallbackHost?: string;
405
+ branchAlias?: string;
406
+ /** The project ID of the microfrontends application. */
407
+ projectId: string;
408
+ }
409
+ export const GetAliasResponseMicrofrontendsApplicationsCase2Item =
410
+ /*@__PURE__*/ S.suspend(() =>
411
+ S.Struct({
412
+ deploymentId: S.optional(S.String),
413
+ branchDeploymentId: S.optional(S.String),
414
+ fallbackDeploymentId: S.optional(S.String),
415
+ fallbackHost: S.optional(S.String),
416
+ branchAlias: S.optional(S.String),
417
+ projectId: S.String,
418
+ }),
419
+ ).annotate({
420
+ identifier: "GetAliasResponseMicrofrontendsApplicationsCase2Item",
421
+ }) as any as S.Schema<GetAliasResponseMicrofrontendsApplicationsCase2Item>;
422
+
423
+ /** A list of the deployment routing information for each project. */
424
+ export type GetAliasResponseMicrofrontendsApplicationsCase2List =
425
+ Array<GetAliasResponseMicrofrontendsApplicationsCase2Item>;
426
+ export const GetAliasResponseMicrofrontendsApplicationsCase2List =
427
+ /*@__PURE__*/ S.Array(
428
+ GetAliasResponseMicrofrontendsApplicationsCase2Item,
429
+ ) as any as S.Schema<GetAliasResponseMicrofrontendsApplicationsCase2List>;
430
+
431
+ export type GetAliasResponseMicrofrontendsApplications =
432
+ | GetAliasResponseMicrofrontendsApplicationsCase0List
433
+ | GetAliasResponseMicrofrontendsApplicationsCase1List
434
+ | GetAliasResponseMicrofrontendsApplicationsCase2List;
435
+ export const GetAliasResponseMicrofrontendsApplications =
436
+ /*@__PURE__*/ S.Unknown as any as S.Schema<GetAliasResponseMicrofrontendsApplications>;
437
+
438
+ /** The microfrontends for the alias including the routing configuration */
439
+ export interface GetAliasResponseMicrofrontends {
440
+ defaultApp: GetAliasResponseMicrofrontendsDefaultApp;
441
+ applications: GetAliasResponseMicrofrontendsApplications;
442
+ }
443
+ export const GetAliasResponseMicrofrontends = /*@__PURE__*/ S.suspend(() =>
444
+ S.Struct({
445
+ defaultApp: GetAliasResponseMicrofrontendsDefaultApp,
446
+ applications: GetAliasResponseMicrofrontendsApplications,
447
+ }),
448
+ ).annotate({
449
+ identifier: "GetAliasResponseMicrofrontends",
450
+ }) as any as S.Schema<GetAliasResponseMicrofrontends>;
451
+
452
+ export interface GetAliasResponse {
453
+ /** The alias name, it could be a `.vercel.app` subdomain or a custom domain */
454
+ alias: string;
455
+ /** The date when the alias was created */
456
+ created: string;
457
+ /** The date when the alias was created in milliseconds since the UNIX epoch */
458
+ createdAt?: number | null;
459
+ /** Information of the user who created the alias */
460
+ creator?: GetAliasResponseCreator;
461
+ /** The date when the alias was deleted in milliseconds since the UNIX epoch */
462
+ deletedAt?: number | null;
463
+ /** A map with the deployment ID, URL and metadata */
464
+ deployment?: GetAliasResponseDeployment;
465
+ /** The deployment ID */
466
+ deploymentId: string | null;
467
+ /** The unique identifier of the project */
468
+ projectId: string | null;
469
+ /** Target destination domain for redirect when the alias is a redirect */
470
+ redirect?: string | null;
471
+ /** Status code to be used on redirect */
472
+ redirectStatusCode?: GetAliasResponseRedirectStatusCode | null;
473
+ /** The unique identifier of the alias */
474
+ uid: string;
475
+ /** The date when the alias was updated in milliseconds since the UNIX epoch */
476
+ updatedAt?: number | null;
477
+ /** The protection bypass for the alias */
478
+ protectionBypass?: GetAliasResponseProtectionBypassMap;
479
+ /** The microfrontends for the alias including the routing configuration */
480
+ microfrontends?: GetAliasResponseMicrofrontends;
481
+ }
482
+ export const GetAliasResponse = /*@__PURE__*/ S.suspend(() =>
483
+ S.Struct({
484
+ alias: S.String,
485
+ created: S.String,
486
+ createdAt: S.optional(S.NullOr(S.Number)),
487
+ creator: S.optional(GetAliasResponseCreator),
488
+ deletedAt: S.optional(S.NullOr(S.Number)),
489
+ deployment: S.optional(GetAliasResponseDeployment),
490
+ deploymentId: S.NullOr(S.String),
491
+ projectId: S.NullOr(S.String),
492
+ redirect: S.optional(S.NullOr(S.String)),
493
+ redirectStatusCode: S.optional(
494
+ S.NullOr(GetAliasResponseRedirectStatusCode),
495
+ ),
496
+ uid: S.String,
497
+ updatedAt: S.optional(S.NullOr(S.Number)),
498
+ protectionBypass: S.optional(GetAliasResponseProtectionBypassMap),
499
+ microfrontends: S.optional(GetAliasResponseMicrofrontends),
500
+ }),
501
+ ).annotate({
502
+ identifier: "GetAliasResponse",
503
+ }) as any as S.Schema<GetAliasResponse>;
504
+
505
+ export type ListAliasesRequestDomainCase0List = Array<string>;
506
+ export const ListAliasesRequestDomainCase0List = /*@__PURE__*/ S.Array(
507
+ S.String,
508
+ ) as any as S.Schema<ListAliasesRequestDomainCase0List>;
509
+
510
+ /** Get only aliases of the given domain name */
511
+ export type ListAliasesRequestDomain =
512
+ | ListAliasesRequestDomainCase0List
513
+ | string;
514
+ export const ListAliasesRequestDomain =
515
+ /*@__PURE__*/ S.Unknown as any as S.Schema<ListAliasesRequestDomain>;
516
+
517
+ export interface ListAliasesRequest {
518
+ /** Get only aliases of the given domain name */
519
+ domain?: ListAliasesRequestDomain;
520
+ /** Get only aliases created after the provided timestamp */
521
+ from?: number;
522
+ /** Maximum number of aliases to list from a request */
523
+ limit?: number;
524
+ /** Filter aliases from the given `projectId` */
525
+ projectId?: string;
526
+ /** Get aliases created after this JavaScript timestamp */
527
+ since?: number;
528
+ /** Get aliases created before this JavaScript timestamp */
529
+ until?: number;
530
+ /** Get aliases that would be rolled back for the given deployment */
531
+ rollbackDeploymentId?: string;
532
+ /** The Team identifier to perform the request on behalf of. */
533
+ teamId?: string;
534
+ /** The Team slug to perform the request on behalf of. */
535
+ slug?: string;
536
+ }
537
+ export const ListAliasesRequest = /*@__PURE__*/ S.suspend(() =>
538
+ S.Struct({
539
+ domain: S.optional(ListAliasesRequestDomain.pipe(T.Query())),
540
+ from: S.optional(S.Number.pipe(T.Query())),
541
+ limit: S.optional(S.Number.pipe(T.Query())),
542
+ projectId: S.optional(S.String.pipe(T.Query())),
543
+ since: S.optional(S.Number.pipe(T.Query())),
544
+ until: S.optional(S.Number.pipe(T.Query())),
545
+ rollbackDeploymentId: S.optional(S.String.pipe(T.Query())),
546
+ teamId: S.optional(S.String.pipe(T.Query())),
547
+ slug: S.optional(S.String.pipe(T.Query())),
548
+ }).pipe(T.Http({ method: "GET", uri: "/v4/aliases", code: 200 })),
549
+ ).annotate({
550
+ identifier: "ListAliasesRequest",
551
+ }) as any as S.Schema<ListAliasesRequest>;
552
+
553
+ /** Information of the user who created the alias */
554
+ export type ListAliasesResponseAliasesItemCreator = GetAliasResponseCreator;
555
+ export const ListAliasesResponseAliasesItemCreator = GetAliasResponseCreator;
556
+
557
+ /** A map with the deployment ID, URL and metadata */
558
+ export type ListAliasesResponseAliasesItemDeployment =
559
+ GetAliasResponseDeployment;
560
+ export const ListAliasesResponseAliasesItemDeployment =
561
+ GetAliasResponseDeployment;
562
+
563
+ /** Status code to be used on redirect */
564
+ export type ListAliasesResponseAliasesItemRedirectStatusCode =
565
+ | 301
566
+ | 302
567
+ | 307
568
+ | 308;
569
+ export const ListAliasesResponseAliasesItemRedirectStatusCode =
570
+ /*@__PURE__*/ S.Number;
571
+
572
+ export type ListAliasesResponseAliasesItemProtectionBypassValueCase0Scope =
573
+ "shareable-link";
574
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase0Scope =
575
+ /*@__PURE__*/ S.String;
576
+
577
+ /** The protection bypass for the alias */
578
+ export interface ListAliasesResponseAliasesItemProtectionBypassValueCase0 {
579
+ createdAt: number;
580
+ createdBy: string;
581
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase0Scope;
582
+ expires?: number;
583
+ }
584
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase0 =
585
+ /*@__PURE__*/ S.suspend(() =>
586
+ S.Struct({
587
+ createdAt: S.Number,
588
+ createdBy: S.String,
589
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase0Scope,
590
+ expires: S.optional(S.Number),
591
+ }),
592
+ ).annotate({
593
+ identifier: "ListAliasesResponseAliasesItemProtectionBypassValueCase0",
594
+ }) as any as S.Schema<ListAliasesResponseAliasesItemProtectionBypassValueCase0>;
595
+
596
+ export type ListAliasesResponseAliasesItemProtectionBypassValueCase1Access =
597
+ | "granted"
598
+ | "requested";
599
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase1Access =
600
+ /*@__PURE__*/ S.String;
601
+
602
+ export type ListAliasesResponseAliasesItemProtectionBypassValueCase1Scope =
603
+ "user";
604
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase1Scope =
605
+ /*@__PURE__*/ S.String;
606
+
607
+ /** The protection bypass for the alias */
608
+ export interface ListAliasesResponseAliasesItemProtectionBypassValueCase1 {
609
+ createdAt: number;
610
+ lastUpdatedAt: number;
611
+ lastUpdatedBy: string;
612
+ access: ListAliasesResponseAliasesItemProtectionBypassValueCase1Access;
613
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase1Scope;
614
+ }
615
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase1 =
616
+ /*@__PURE__*/ S.suspend(() =>
617
+ S.Struct({
618
+ createdAt: S.Number,
619
+ lastUpdatedAt: S.Number,
620
+ lastUpdatedBy: S.String,
621
+ access: ListAliasesResponseAliasesItemProtectionBypassValueCase1Access,
622
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase1Scope,
623
+ }),
624
+ ).annotate({
625
+ identifier: "ListAliasesResponseAliasesItemProtectionBypassValueCase1",
626
+ }) as any as S.Schema<ListAliasesResponseAliasesItemProtectionBypassValueCase1>;
627
+
628
+ export type ListAliasesResponseAliasesItemProtectionBypassValueCase2Scope =
629
+ "alias-protection-override";
630
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase2Scope =
631
+ /*@__PURE__*/ S.String;
632
+
633
+ /** The protection bypass for the alias */
634
+ export interface ListAliasesResponseAliasesItemProtectionBypassValueCase2 {
635
+ createdAt: number;
636
+ createdBy: string;
637
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase2Scope;
638
+ }
639
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase2 =
640
+ /*@__PURE__*/ S.suspend(() =>
641
+ S.Struct({
642
+ createdAt: S.Number,
643
+ createdBy: S.String,
644
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase2Scope,
645
+ }),
646
+ ).annotate({
647
+ identifier: "ListAliasesResponseAliasesItemProtectionBypassValueCase2",
648
+ }) as any as S.Schema<ListAliasesResponseAliasesItemProtectionBypassValueCase2>;
649
+
650
+ export type ListAliasesResponseAliasesItemProtectionBypassValueCase3Scope =
651
+ "email_invite";
652
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase3Scope =
653
+ /*@__PURE__*/ S.String;
654
+
655
+ /** The protection bypass for the alias */
656
+ export interface ListAliasesResponseAliasesItemProtectionBypassValueCase3 {
657
+ createdAt: number;
658
+ lastUpdatedAt: number;
659
+ lastUpdatedBy: string;
660
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase3Scope;
661
+ }
662
+ export const ListAliasesResponseAliasesItemProtectionBypassValueCase3 =
663
+ /*@__PURE__*/ S.suspend(() =>
664
+ S.Struct({
665
+ createdAt: S.Number,
666
+ lastUpdatedAt: S.Number,
667
+ lastUpdatedBy: S.String,
668
+ scope: ListAliasesResponseAliasesItemProtectionBypassValueCase3Scope,
669
+ }),
670
+ ).annotate({
671
+ identifier: "ListAliasesResponseAliasesItemProtectionBypassValueCase3",
672
+ }) as any as S.Schema<ListAliasesResponseAliasesItemProtectionBypassValueCase3>;
673
+
674
+ export type ListAliasesResponseAliasesItemProtectionBypassValue =
675
+ | ListAliasesResponseAliasesItemProtectionBypassValueCase0
676
+ | ListAliasesResponseAliasesItemProtectionBypassValueCase1
677
+ | ListAliasesResponseAliasesItemProtectionBypassValueCase2
678
+ | ListAliasesResponseAliasesItemProtectionBypassValueCase3;
679
+ export const ListAliasesResponseAliasesItemProtectionBypassValue =
680
+ /*@__PURE__*/ S.Unknown as any as S.Schema<ListAliasesResponseAliasesItemProtectionBypassValue>;
681
+
682
+ /** The protection bypass for the alias */
683
+ export type ListAliasesResponseAliasesItemProtectionBypassMap = {
684
+ [key: string]:
685
+ | ListAliasesResponseAliasesItemProtectionBypassValue
686
+ | undefined;
687
+ };
688
+ export const ListAliasesResponseAliasesItemProtectionBypassMap =
689
+ /*@__PURE__*/ S.Record(
690
+ S.String,
691
+ ListAliasesResponseAliasesItemProtectionBypassValue,
692
+ ) as any as S.Schema<ListAliasesResponseAliasesItemProtectionBypassMap>;
693
+
694
+ export type ListAliasesResponseAliasesItemMicrofrontendsDefaultApp =
695
+ GetAliasResponseMicrofrontendsDefaultApp;
696
+ export const ListAliasesResponseAliasesItemMicrofrontendsDefaultApp =
697
+ GetAliasResponseMicrofrontendsDefaultApp;
698
+
699
+ /** A list of the deployment routing information for each project. */
700
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase0Item =
701
+ GetAliasResponseMicrofrontendsApplicationsCase0Item;
702
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase0Item =
703
+ GetAliasResponseMicrofrontendsApplicationsCase0Item;
704
+
705
+ /** A list of the deployment routing information for each project. */
706
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase0List =
707
+ Array<GetAliasResponseMicrofrontendsApplicationsCase0Item>;
708
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase0List =
709
+ /*@__PURE__*/ S.Array(
710
+ GetAliasResponseMicrofrontendsApplicationsCase0Item,
711
+ ) as any as S.Schema<ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase0List>;
712
+
713
+ /** A list of the deployment routing information for each project. */
714
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase1Item =
715
+ GetAliasResponseMicrofrontendsApplicationsCase1Item;
716
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase1Item =
717
+ GetAliasResponseMicrofrontendsApplicationsCase1Item;
718
+
719
+ /** A list of the deployment routing information for each project. */
720
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase1List =
721
+ Array<GetAliasResponseMicrofrontendsApplicationsCase1Item>;
722
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase1List =
723
+ /*@__PURE__*/ S.Array(
724
+ GetAliasResponseMicrofrontendsApplicationsCase1Item,
725
+ ) as any as S.Schema<ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase1List>;
726
+
727
+ /** A list of the deployment routing information for each project. */
728
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase2Item =
729
+ GetAliasResponseMicrofrontendsApplicationsCase2Item;
730
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase2Item =
731
+ GetAliasResponseMicrofrontendsApplicationsCase2Item;
732
+
733
+ /** A list of the deployment routing information for each project. */
734
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase2List =
735
+ Array<GetAliasResponseMicrofrontendsApplicationsCase2Item>;
736
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase2List =
737
+ /*@__PURE__*/ S.Array(
738
+ GetAliasResponseMicrofrontendsApplicationsCase2Item,
739
+ ) as any as S.Schema<ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase2List>;
740
+
741
+ export type ListAliasesResponseAliasesItemMicrofrontendsApplications =
742
+ | ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase0List
743
+ | ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase1List
744
+ | ListAliasesResponseAliasesItemMicrofrontendsApplicationsCase2List;
745
+ export const ListAliasesResponseAliasesItemMicrofrontendsApplications =
746
+ /*@__PURE__*/ S.Unknown as any as S.Schema<ListAliasesResponseAliasesItemMicrofrontendsApplications>;
747
+
748
+ /** The microfrontends for the alias including the routing configuration */
749
+ export interface ListAliasesResponseAliasesItemMicrofrontends {
750
+ defaultApp: GetAliasResponseMicrofrontendsDefaultApp;
751
+ applications: ListAliasesResponseAliasesItemMicrofrontendsApplications;
752
+ }
753
+ export const ListAliasesResponseAliasesItemMicrofrontends =
754
+ /*@__PURE__*/ S.suspend(() =>
755
+ S.Struct({
756
+ defaultApp: GetAliasResponseMicrofrontendsDefaultApp,
757
+ applications: ListAliasesResponseAliasesItemMicrofrontendsApplications,
758
+ }),
759
+ ).annotate({
760
+ identifier: "ListAliasesResponseAliasesItemMicrofrontends",
761
+ }) as any as S.Schema<ListAliasesResponseAliasesItemMicrofrontends>;
762
+
763
+ export interface ListAliasesResponseAliasesItem {
764
+ /** The alias name, it could be a `.vercel.app` subdomain or a custom domain */
765
+ alias: string;
766
+ /** The date when the alias was created */
767
+ created: string;
768
+ /** The date when the alias was created in milliseconds since the UNIX epoch */
769
+ createdAt?: number;
770
+ /** Information of the user who created the alias */
771
+ creator?: GetAliasResponseCreator;
772
+ /** The date when the alias was deleted in milliseconds since the UNIX epoch */
773
+ deletedAt?: number | null;
774
+ /** A map with the deployment ID, URL and metadata */
775
+ deployment?: GetAliasResponseDeployment;
776
+ /** The deployment ID */
777
+ deploymentId: string | null;
778
+ /** The unique identifier of the project */
779
+ projectId: string | null;
780
+ /** Target destination domain for redirect when the alias is a redirect */
781
+ redirect?: string | null;
782
+ /** Status code to be used on redirect */
783
+ redirectStatusCode?: ListAliasesResponseAliasesItemRedirectStatusCode | null;
784
+ /** The unique identifier of the alias */
785
+ uid: string;
786
+ /** The date when the alias was updated in milliseconds since the UNIX epoch */
787
+ updatedAt?: number;
788
+ /** The protection bypass for the alias */
789
+ protectionBypass?: ListAliasesResponseAliasesItemProtectionBypassMap;
790
+ /** The microfrontends for the alias including the routing configuration */
791
+ microfrontends?: ListAliasesResponseAliasesItemMicrofrontends;
792
+ }
793
+ export const ListAliasesResponseAliasesItem = /*@__PURE__*/ S.suspend(() =>
794
+ S.Struct({
795
+ alias: S.String,
796
+ created: S.String,
797
+ createdAt: S.optional(S.Number),
798
+ creator: S.optional(GetAliasResponseCreator),
799
+ deletedAt: S.optional(S.NullOr(S.Number)),
800
+ deployment: S.optional(GetAliasResponseDeployment),
801
+ deploymentId: S.NullOr(S.String),
802
+ projectId: S.NullOr(S.String),
803
+ redirect: S.optional(S.NullOr(S.String)),
804
+ redirectStatusCode: S.optional(
805
+ S.NullOr(ListAliasesResponseAliasesItemRedirectStatusCode),
806
+ ),
807
+ uid: S.String,
808
+ updatedAt: S.optional(S.Number),
809
+ protectionBypass: S.optional(
810
+ ListAliasesResponseAliasesItemProtectionBypassMap,
811
+ ),
812
+ microfrontends: S.optional(ListAliasesResponseAliasesItemMicrofrontends),
813
+ }),
814
+ ).annotate({
815
+ identifier: "ListAliasesResponseAliasesItem",
816
+ }) as any as S.Schema<ListAliasesResponseAliasesItem>;
817
+
818
+ export type ListAliasesResponseAliasesList =
819
+ Array<ListAliasesResponseAliasesItem>;
820
+ export const ListAliasesResponseAliasesList = /*@__PURE__*/ S.Array(
821
+ ListAliasesResponseAliasesItem,
822
+ ) as any as S.Schema<ListAliasesResponseAliasesList>;
823
+
824
+ /** This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data. */
825
+ export interface Pagination {
826
+ /** Amount of items in the current page. */
827
+ count: number;
828
+ /** Timestamp that must be used to request the next page. */
829
+ next: number | null;
830
+ /** Timestamp that must be used to request the previous page. */
831
+ prev: number | null;
832
+ }
833
+ export const Pagination = /*@__PURE__*/ S.suspend(() =>
834
+ S.Struct({
835
+ count: S.Number,
836
+ next: S.NullOr(S.Number),
837
+ prev: S.NullOr(S.Number),
838
+ }),
839
+ ).annotate({ identifier: "Pagination" }) as any as S.Schema<Pagination>;
840
+
841
+ export interface ListAliasesResponse {
842
+ aliases: ListAliasesResponseAliasesList;
843
+ pagination: Pagination;
844
+ }
845
+ export const ListAliasesResponse = /*@__PURE__*/ S.suspend(() =>
846
+ S.Struct({
847
+ aliases: ListAliasesResponseAliasesList,
848
+ pagination: Pagination,
849
+ }),
850
+ ).annotate({
851
+ identifier: "ListAliasesResponse",
852
+ }) as any as S.Schema<ListAliasesResponse>;
853
+
854
+ export interface ListDeploymentAliasesRequest {
855
+ /** The ID of the deployment the aliases should be listed for */
856
+ id: string;
857
+ /** The Team identifier to perform the request on behalf of. */
858
+ teamId?: string;
859
+ /** The Team slug to perform the request on behalf of. */
860
+ slug?: string;
861
+ }
862
+ export const ListDeploymentAliasesRequest = /*@__PURE__*/ S.suspend(() =>
863
+ S.Struct({
864
+ id: S.String.pipe(T.Label()),
865
+ teamId: S.optional(S.String.pipe(T.Query())),
866
+ slug: S.optional(S.String.pipe(T.Query())),
867
+ }).pipe(
868
+ T.Http({ method: "GET", uri: "/v2/deployments/{id}/aliases", code: 200 }),
869
+ ),
870
+ ).annotate({
871
+ identifier: "ListDeploymentAliasesRequest",
872
+ }) as any as S.Schema<ListDeploymentAliasesRequest>;
873
+
874
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0Scope =
875
+ "shareable-link";
876
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0Scope =
877
+ /*@__PURE__*/ S.String;
878
+
879
+ /** The protection bypass for the alias */
880
+ export interface ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0 {
881
+ createdAt: number;
882
+ createdBy: string;
883
+ scope: ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0Scope;
884
+ expires?: number;
885
+ }
886
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0 =
887
+ /*@__PURE__*/ S.suspend(() =>
888
+ S.Struct({
889
+ createdAt: S.Number,
890
+ createdBy: S.String,
891
+ scope:
892
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0Scope,
893
+ expires: S.optional(S.Number),
894
+ }),
895
+ ).annotate({
896
+ identifier:
897
+ "ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0",
898
+ }) as any as S.Schema<ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0>;
899
+
900
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Access =
901
+ "granted" | "requested";
902
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Access =
903
+ /*@__PURE__*/ S.String;
904
+
905
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Scope =
906
+ "user";
907
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Scope =
908
+ /*@__PURE__*/ S.String;
909
+
910
+ /** The protection bypass for the alias */
911
+ export interface ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1 {
912
+ createdAt: number;
913
+ lastUpdatedAt: number;
914
+ lastUpdatedBy: string;
915
+ access: ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Access;
916
+ scope: ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Scope;
917
+ }
918
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1 =
919
+ /*@__PURE__*/ S.suspend(() =>
920
+ S.Struct({
921
+ createdAt: S.Number,
922
+ lastUpdatedAt: S.Number,
923
+ lastUpdatedBy: S.String,
924
+ access:
925
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Access,
926
+ scope:
927
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1Scope,
928
+ }),
929
+ ).annotate({
930
+ identifier:
931
+ "ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1",
932
+ }) as any as S.Schema<ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1>;
933
+
934
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2Scope =
935
+ "alias-protection-override";
936
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2Scope =
937
+ /*@__PURE__*/ S.String;
938
+
939
+ /** The protection bypass for the alias */
940
+ export interface ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2 {
941
+ createdAt: number;
942
+ createdBy: string;
943
+ scope: ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2Scope;
944
+ }
945
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2 =
946
+ /*@__PURE__*/ S.suspend(() =>
947
+ S.Struct({
948
+ createdAt: S.Number,
949
+ createdBy: S.String,
950
+ scope:
951
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2Scope,
952
+ }),
953
+ ).annotate({
954
+ identifier:
955
+ "ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2",
956
+ }) as any as S.Schema<ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2>;
957
+
958
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3Scope =
959
+ "email_invite";
960
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3Scope =
961
+ /*@__PURE__*/ S.String;
962
+
963
+ /** The protection bypass for the alias */
964
+ export interface ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3 {
965
+ createdAt: number;
966
+ lastUpdatedAt: number;
967
+ lastUpdatedBy: string;
968
+ scope: ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3Scope;
969
+ }
970
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3 =
971
+ /*@__PURE__*/ S.suspend(() =>
972
+ S.Struct({
973
+ createdAt: S.Number,
974
+ lastUpdatedAt: S.Number,
975
+ lastUpdatedBy: S.String,
976
+ scope:
977
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3Scope,
978
+ }),
979
+ ).annotate({
980
+ identifier:
981
+ "ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3",
982
+ }) as any as S.Schema<ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3>;
983
+
984
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassValue =
985
+ | ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase0
986
+ | ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase1
987
+ | ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase2
988
+ | ListDeploymentAliasesResponseAliasesItemProtectionBypassValueCase3;
989
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassValue =
990
+ /*@__PURE__*/ S.Unknown as any as S.Schema<ListDeploymentAliasesResponseAliasesItemProtectionBypassValue>;
991
+
992
+ /** The protection bypass for the alias */
993
+ export type ListDeploymentAliasesResponseAliasesItemProtectionBypassMap = {
994
+ [key: string]:
995
+ | ListDeploymentAliasesResponseAliasesItemProtectionBypassValue
996
+ | undefined;
997
+ };
998
+ export const ListDeploymentAliasesResponseAliasesItemProtectionBypassMap =
999
+ /*@__PURE__*/ S.Record(
1000
+ S.String,
1001
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassValue,
1002
+ ) as any as S.Schema<ListDeploymentAliasesResponseAliasesItemProtectionBypassMap>;
1003
+
1004
+ /** A list of the aliases assigned to the deployment */
1005
+ export interface ListDeploymentAliasesResponseAliasesItem {
1006
+ /** The unique identifier of the alias */
1007
+ uid: string;
1008
+ /** The alias name, it could be a `.vercel.app` subdomain or a custom domain */
1009
+ alias: string;
1010
+ /** The date when the alias was created */
1011
+ created: string;
1012
+ /** Target destination domain for redirect when the alias is a redirect */
1013
+ redirect?: string | null;
1014
+ /** The protection bypass for the alias */
1015
+ protectionBypass?: ListDeploymentAliasesResponseAliasesItemProtectionBypassMap;
1016
+ }
1017
+ export const ListDeploymentAliasesResponseAliasesItem = /*@__PURE__*/ S.suspend(
1018
+ () =>
1019
+ S.Struct({
1020
+ uid: S.String,
1021
+ alias: S.String,
1022
+ created: S.String,
1023
+ redirect: S.optional(S.NullOr(S.String)),
1024
+ protectionBypass: S.optional(
1025
+ ListDeploymentAliasesResponseAliasesItemProtectionBypassMap,
1026
+ ),
1027
+ }),
1028
+ ).annotate({
1029
+ identifier: "ListDeploymentAliasesResponseAliasesItem",
1030
+ }) as any as S.Schema<ListDeploymentAliasesResponseAliasesItem>;
1031
+
1032
+ /** A list of the aliases assigned to the deployment */
1033
+ export type ListDeploymentAliasesResponseAliasesList =
1034
+ Array<ListDeploymentAliasesResponseAliasesItem>;
1035
+ export const ListDeploymentAliasesResponseAliasesList = /*@__PURE__*/ S.Array(
1036
+ ListDeploymentAliasesResponseAliasesItem,
1037
+ ) as any as S.Schema<ListDeploymentAliasesResponseAliasesList>;
1038
+
1039
+ export interface ListDeploymentAliasesResponse {
1040
+ /** A list of the aliases assigned to the deployment */
1041
+ aliases: ListDeploymentAliasesResponseAliasesList;
1042
+ }
1043
+ export const ListDeploymentAliasesResponse = /*@__PURE__*/ S.suspend(() =>
1044
+ S.Struct({
1045
+ aliases: ListDeploymentAliasesResponseAliasesList,
1046
+ }),
1047
+ ).annotate({
1048
+ identifier: "ListDeploymentAliasesResponse",
1049
+ }) as any as S.Schema<ListDeploymentAliasesResponse>;
1050
+
1051
+ /** Optional instructions for revoking and regenerating a shareable link */
1052
+ export interface PatchUrlProtectionBypassRequestBodyCase0Revoke {
1053
+ /** Sharebale link to revoked */
1054
+ secret: string | Redacted.Redacted<string>;
1055
+ /** Whether or not a new shareable link should be created after the provided secret is revoked */
1056
+ regenerate: boolean;
1057
+ }
1058
+ export const PatchUrlProtectionBypassRequestBodyCase0Revoke =
1059
+ /*@__PURE__*/ S.suspend(() =>
1060
+ S.Struct({
1061
+ secret: S.String.pipe(T.SensitiveValue({})),
1062
+ regenerate: S.Boolean,
1063
+ }),
1064
+ ).annotate({
1065
+ identifier: "PatchUrlProtectionBypassRequestBodyCase0Revoke",
1066
+ }) as any as S.Schema<PatchUrlProtectionBypassRequestBodyCase0Revoke>;
1067
+
1068
+ export interface PatchUrlProtectionBypassRequestBodyCase0 {
1069
+ /** Optional time the shareable link is valid for in seconds. If not provided, the shareable link will never expire. */
1070
+ ttl?: number;
1071
+ /** Optional instructions for revoking and regenerating a shareable link */
1072
+ revoke?: PatchUrlProtectionBypassRequestBodyCase0Revoke;
1073
+ }
1074
+ export const PatchUrlProtectionBypassRequestBodyCase0 = /*@__PURE__*/ S.suspend(
1075
+ () =>
1076
+ S.Struct({
1077
+ ttl: S.optional(S.Number),
1078
+ revoke: S.optional(PatchUrlProtectionBypassRequestBodyCase0Revoke),
1079
+ }),
1080
+ ).annotate({
1081
+ identifier: "PatchUrlProtectionBypassRequestBodyCase0",
1082
+ }) as any as S.Schema<PatchUrlProtectionBypassRequestBodyCase0>;
1083
+
1084
+ /** Invitation status for the user scoped bypass. */
1085
+ export type PatchUrlProtectionBypassRequestBodyCase1ScopeAccess =
1086
+ | "denied"
1087
+ | "granted";
1088
+ export const PatchUrlProtectionBypassRequestBodyCase1ScopeAccess =
1089
+ /*@__PURE__*/ S.String;
1090
+
1091
+ /** Instructions for creating a user scoped protection bypass */
1092
+ export interface PatchUrlProtectionBypassRequestBodyCase1Scope {
1093
+ /** Specified user id for the scoped bypass. */
1094
+ userId?: string;
1095
+ /** Specified email for the scoped bypass. */
1096
+ email?: string;
1097
+ /** Invitation status for the user scoped bypass. */
1098
+ access: PatchUrlProtectionBypassRequestBodyCase1ScopeAccess | (string & {});
1099
+ }
1100
+ export const PatchUrlProtectionBypassRequestBodyCase1Scope =
1101
+ /*@__PURE__*/ S.suspend(() =>
1102
+ S.Struct({
1103
+ userId: S.optional(S.String),
1104
+ email: S.optional(S.String),
1105
+ access: PatchUrlProtectionBypassRequestBodyCase1ScopeAccess,
1106
+ }),
1107
+ ).annotate({
1108
+ identifier: "PatchUrlProtectionBypassRequestBodyCase1Scope",
1109
+ }) as any as S.Schema<PatchUrlProtectionBypassRequestBodyCase1Scope>;
1110
+
1111
+ export interface PatchUrlProtectionBypassRequestBodyCase1 {
1112
+ /** Instructions for creating a user scoped protection bypass */
1113
+ scope: PatchUrlProtectionBypassRequestBodyCase1Scope;
1114
+ }
1115
+ export const PatchUrlProtectionBypassRequestBodyCase1 = /*@__PURE__*/ S.suspend(
1116
+ () =>
1117
+ S.Struct({
1118
+ scope: PatchUrlProtectionBypassRequestBodyCase1Scope,
1119
+ }),
1120
+ ).annotate({
1121
+ identifier: "PatchUrlProtectionBypassRequestBodyCase1",
1122
+ }) as any as S.Schema<PatchUrlProtectionBypassRequestBodyCase1>;
1123
+
1124
+ export type PatchUrlProtectionBypassRequestBodyCase2OverrideScope =
1125
+ "alias-protection-override";
1126
+ export const PatchUrlProtectionBypassRequestBodyCase2OverrideScope =
1127
+ /*@__PURE__*/ S.String;
1128
+
1129
+ export type PatchUrlProtectionBypassRequestBodyCase2OverrideAction =
1130
+ | "create"
1131
+ | "revoke";
1132
+ export const PatchUrlProtectionBypassRequestBodyCase2OverrideAction =
1133
+ /*@__PURE__*/ S.String;
1134
+
1135
+ export interface PatchUrlProtectionBypassRequestBodyCase2Override {
1136
+ scope: PatchUrlProtectionBypassRequestBodyCase2OverrideScope | (string & {});
1137
+ action:
1138
+ | PatchUrlProtectionBypassRequestBodyCase2OverrideAction
1139
+ | (string & {});
1140
+ }
1141
+ export const PatchUrlProtectionBypassRequestBodyCase2Override =
1142
+ /*@__PURE__*/ S.suspend(() =>
1143
+ S.Struct({
1144
+ scope: PatchUrlProtectionBypassRequestBodyCase2OverrideScope,
1145
+ action: PatchUrlProtectionBypassRequestBodyCase2OverrideAction,
1146
+ }),
1147
+ ).annotate({
1148
+ identifier: "PatchUrlProtectionBypassRequestBodyCase2Override",
1149
+ }) as any as S.Schema<PatchUrlProtectionBypassRequestBodyCase2Override>;
1150
+
1151
+ export interface PatchUrlProtectionBypassRequestBodyCase2 {
1152
+ override: PatchUrlProtectionBypassRequestBodyCase2Override;
1153
+ }
1154
+ export const PatchUrlProtectionBypassRequestBodyCase2 = /*@__PURE__*/ S.suspend(
1155
+ () =>
1156
+ S.Struct({
1157
+ override: PatchUrlProtectionBypassRequestBodyCase2Override,
1158
+ }),
1159
+ ).annotate({
1160
+ identifier: "PatchUrlProtectionBypassRequestBodyCase2",
1161
+ }) as any as S.Schema<PatchUrlProtectionBypassRequestBodyCase2>;
1162
+
1163
+ export type PatchUrlProtectionBypassRequestBody =
1164
+ | PatchUrlProtectionBypassRequestBodyCase0
1165
+ | PatchUrlProtectionBypassRequestBodyCase1
1166
+ | PatchUrlProtectionBypassRequestBodyCase2;
1167
+ export const PatchUrlProtectionBypassRequestBody =
1168
+ /*@__PURE__*/ S.Unknown as any as S.Schema<PatchUrlProtectionBypassRequestBody>;
1169
+
1170
+ export interface PatchUrlProtectionBypassRequest {
1171
+ /** The alias or deployment ID */
1172
+ id: string;
1173
+ /** The Team identifier to perform the request on behalf of. */
1174
+ teamId?: string;
1175
+ /** The Team slug to perform the request on behalf of. */
1176
+ slug?: string;
1177
+ body?: PatchUrlProtectionBypassRequestBody;
1178
+ }
1179
+ export const PatchUrlProtectionBypassRequest = /*@__PURE__*/ S.suspend(() =>
1180
+ S.Struct({
1181
+ id: S.String.pipe(T.Label()),
1182
+ teamId: S.optional(S.String.pipe(T.Query())),
1183
+ slug: S.optional(S.String.pipe(T.Query())),
1184
+ body: S.optional(PatchUrlProtectionBypassRequestBody.pipe(T.HttpBody())),
1185
+ }).pipe(
1186
+ T.Http({
1187
+ method: "PATCH",
1188
+ uri: "/aliases/{id}/protection-bypass",
1189
+ code: 200,
1190
+ }),
1191
+ ),
1192
+ ).annotate({
1193
+ identifier: "PatchUrlProtectionBypassRequest",
1194
+ }) as any as S.Schema<PatchUrlProtectionBypassRequest>;
1195
+
1196
+ export type PatchUrlProtectionBypassResponseBodyMap = {
1197
+ [key: string]: unknown | undefined;
1198
+ };
1199
+ export const PatchUrlProtectionBypassResponseBodyMap = /*@__PURE__*/ S.Record(
1200
+ S.String,
1201
+ S.Unknown,
1202
+ ) as any as S.Schema<PatchUrlProtectionBypassResponseBodyMap>;
1203
+
1204
+ export type PatchUrlProtectionBypassResponse =
1205
+ PatchUrlProtectionBypassResponseBodyMap;
1206
+ export const PatchUrlProtectionBypassResponse = /*@__PURE__*/ S.suspend(() =>
1207
+ PatchUrlProtectionBypassResponseBodyMap.pipe(T.RawResponseRoot()),
1208
+ ).annotate({
1209
+ identifier: "PatchUrlProtectionBypassResponse",
1210
+ }) as any as S.Schema<PatchUrlProtectionBypassResponse>;
1211
+
1212
+ export type AssignAliasError =
1213
+ | BadRequest
1214
+ | PaymentRequired
1215
+ | Forbidden
1216
+ | NotFound
1217
+ | Conflict
1218
+ | VercelOpError;
1219
+ /** Assign an Alias Creates a new alias for the deployment resolved from the given deployment or alias ID or URL. The authenticated user or team must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one. */
1220
+ export const assignAlias: API.OperationMethod<
1221
+ AssignAliasRequest,
1222
+ AssignAliasResponse,
1223
+ AssignAliasError,
1224
+ VercelOpContext
1225
+ > = /*@__PURE__*/ API.make(() => ({
1226
+ input: AssignAliasRequest,
1227
+ output: AssignAliasResponse,
1228
+ errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
1229
+ protocol: VercelProtocol,
1230
+ retry: Retry.Retry,
1231
+ }));
1232
+
1233
+ export type DeleteAliasError =
1234
+ | BadRequest
1235
+ | Forbidden
1236
+ | NotFound
1237
+ | VercelOpError;
1238
+ /** Delete an Alias Delete an Alias with the specified ID. */
1239
+ export const deleteAlias: API.OperationMethod<
1240
+ DeleteAliasRequest,
1241
+ DeleteAliasResponse,
1242
+ DeleteAliasError,
1243
+ VercelOpContext
1244
+ > = /*@__PURE__*/ API.make(() => ({
1245
+ input: DeleteAliasRequest,
1246
+ output: DeleteAliasResponse,
1247
+ errors: [BadRequest, Forbidden, NotFound],
1248
+ protocol: VercelProtocol,
1249
+ retry: Retry.Retry,
1250
+ }));
1251
+
1252
+ export type GetAliasError = BadRequest | Forbidden | NotFound | VercelOpError;
1253
+ /** Get an Alias Retrieves an Alias for the given host name or alias ID. */
1254
+ export const getAlias: API.OperationMethod<
1255
+ GetAliasRequest,
1256
+ GetAliasResponse,
1257
+ GetAliasError,
1258
+ VercelOpContext
1259
+ > = /*@__PURE__*/ API.make(() => ({
1260
+ input: GetAliasRequest,
1261
+ output: GetAliasResponse,
1262
+ errors: [BadRequest, Forbidden, NotFound],
1263
+ protocol: VercelProtocol,
1264
+ retry: Retry.Retry,
1265
+ }));
1266
+
1267
+ export type ListAliasesError =
1268
+ | BadRequest
1269
+ | Forbidden
1270
+ | NotFound
1271
+ | VercelOpError;
1272
+ /** List aliases Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases. */
1273
+ export const listAliases: API.OperationMethod<
1274
+ ListAliasesRequest,
1275
+ ListAliasesResponse,
1276
+ ListAliasesError,
1277
+ VercelOpContext
1278
+ > = /*@__PURE__*/ API.make(() => ({
1279
+ input: ListAliasesRequest,
1280
+ output: ListAliasesResponse,
1281
+ errors: [BadRequest, Forbidden, NotFound],
1282
+ protocol: VercelProtocol,
1283
+ retry: Retry.Retry,
1284
+ }));
1285
+
1286
+ export type ListDeploymentAliasesError =
1287
+ | BadRequest
1288
+ | Forbidden
1289
+ | NotFound
1290
+ | VercelOpError;
1291
+ /** List Deployment Aliases Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment. */
1292
+ export const listDeploymentAliases: API.OperationMethod<
1293
+ ListDeploymentAliasesRequest,
1294
+ ListDeploymentAliasesResponse,
1295
+ ListDeploymentAliasesError,
1296
+ VercelOpContext
1297
+ > = /*@__PURE__*/ API.make(() => ({
1298
+ input: ListDeploymentAliasesRequest,
1299
+ output: ListDeploymentAliasesResponse,
1300
+ errors: [BadRequest, Forbidden, NotFound],
1301
+ protocol: VercelProtocol,
1302
+ retry: Retry.Retry,
1303
+ }));
1304
+
1305
+ export type PatchUrlProtectionBypassError =
1306
+ | BadRequest
1307
+ | Forbidden
1308
+ | NotFound
1309
+ | Conflict
1310
+ | VercelOpError;
1311
+ /** Update the protection bypass for a URL Update the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). Used as shareable links and user scoped access for Vercel Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode). */
1312
+ export const patchUrlProtectionBypass: API.OperationMethod<
1313
+ PatchUrlProtectionBypassRequest,
1314
+ PatchUrlProtectionBypassResponse,
1315
+ PatchUrlProtectionBypassError,
1316
+ VercelOpContext
1317
+ > = /*@__PURE__*/ API.make(() => ({
1318
+ input: PatchUrlProtectionBypassRequest,
1319
+ output: PatchUrlProtectionBypassResponse,
1320
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
1321
+ protocol: VercelProtocol,
1322
+ retry: Retry.Retry,
1323
+ }));