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

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 (246) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +21 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +40 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +80 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +50 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +15 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +15 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/protocol.d.ts +18 -0
  15. package/lib/protocol.d.ts.map +1 -0
  16. package/lib/protocol.js +69 -0
  17. package/lib/protocol.js.map +1 -0
  18. package/lib/retry.d.ts +54 -0
  19. package/lib/retry.d.ts.map +1 -0
  20. package/lib/retry.js +47 -0
  21. package/lib/retry.js.map +1 -0
  22. package/lib/services/access_groups.d.ts +459 -0
  23. package/lib/services/access_groups.d.ts.map +1 -0
  24. package/lib/services/access_groups.js +449 -0
  25. package/lib/services/access_groups.js.map +1 -0
  26. package/lib/services/ai_gateway.d.ts +122 -0
  27. package/lib/services/ai_gateway.d.ts.map +1 -0
  28. package/lib/services/ai_gateway.js +125 -0
  29. package/lib/services/ai_gateway.js.map +1 -0
  30. package/lib/services/aliases.d.ts +591 -0
  31. package/lib/services/aliases.d.ts.map +1 -0
  32. package/lib/services/aliases.js +482 -0
  33. package/lib/services/aliases.js.map +1 -0
  34. package/lib/services/api_ai_gateway.d.ts +275 -0
  35. package/lib/services/api_ai_gateway.d.ts.map +1 -0
  36. package/lib/services/api_ai_gateway.js +227 -0
  37. package/lib/services/api_ai_gateway.js.map +1 -0
  38. package/lib/services/artifacts.d.ts +228 -0
  39. package/lib/services/artifacts.d.ts.map +1 -0
  40. package/lib/services/artifacts.js +214 -0
  41. package/lib/services/artifacts.js.map +1 -0
  42. package/lib/services/authentication.d.ts +373 -0
  43. package/lib/services/authentication.d.ts.map +1 -0
  44. package/lib/services/authentication.js +304 -0
  45. package/lib/services/authentication.js.map +1 -0
  46. package/lib/services/billing.d.ts +930 -0
  47. package/lib/services/billing.d.ts.map +1 -0
  48. package/lib/services/billing.js +695 -0
  49. package/lib/services/billing.js.map +1 -0
  50. package/lib/services/bulk_redirects.d.ts +308 -0
  51. package/lib/services/bulk_redirects.d.ts.map +1 -0
  52. package/lib/services/bulk_redirects.js +302 -0
  53. package/lib/services/bulk_redirects.js.map +1 -0
  54. package/lib/services/certs.d.ts +171 -0
  55. package/lib/services/certs.d.ts.map +1 -0
  56. package/lib/services/certs.js +163 -0
  57. package/lib/services/certs.js.map +1 -0
  58. package/lib/services/checks_v2.d.ts +1167 -0
  59. package/lib/services/checks_v2.d.ts.map +1 -0
  60. package/lib/services/checks_v2.js +1141 -0
  61. package/lib/services/checks_v2.js.map +1 -0
  62. package/lib/services/connect.d.ts +2228 -0
  63. package/lib/services/connect.d.ts.map +1 -0
  64. package/lib/services/connect.js +1575 -0
  65. package/lib/services/connect.js.map +1 -0
  66. package/lib/services/deployments.d.ts +9419 -0
  67. package/lib/services/deployments.d.ts.map +1 -0
  68. package/lib/services/deployments.js +8248 -0
  69. package/lib/services/deployments.js.map +1 -0
  70. package/lib/services/dns.d.ts +279 -0
  71. package/lib/services/dns.d.ts.map +1 -0
  72. package/lib/services/dns.js +277 -0
  73. package/lib/services/dns.js.map +1 -0
  74. package/lib/services/domains.d.ts +564 -0
  75. package/lib/services/domains.d.ts.map +1 -0
  76. package/lib/services/domains.js +469 -0
  77. package/lib/services/domains.js.map +1 -0
  78. package/lib/services/domains_registrar.d.ts +798 -0
  79. package/lib/services/domains_registrar.d.ts.map +1 -0
  80. package/lib/services/domains_registrar.js +916 -0
  81. package/lib/services/domains_registrar.js.map +1 -0
  82. package/lib/services/drains.d.ts +2263 -0
  83. package/lib/services/drains.d.ts.map +1 -0
  84. package/lib/services/drains.js +2121 -0
  85. package/lib/services/drains.js.map +1 -0
  86. package/lib/services/edge_cache.d.ts +125 -0
  87. package/lib/services/edge_cache.d.ts.map +1 -0
  88. package/lib/services/edge_cache.js +138 -0
  89. package/lib/services/edge_cache.js.map +1 -0
  90. package/lib/services/environment.d.ts +1020 -0
  91. package/lib/services/environment.d.ts.map +1 -0
  92. package/lib/services/environment.js +805 -0
  93. package/lib/services/environment.js.map +1 -0
  94. package/lib/services/feature_flags.d.ts +2893 -0
  95. package/lib/services/feature_flags.d.ts.map +1 -0
  96. package/lib/services/feature_flags.js +2707 -0
  97. package/lib/services/feature_flags.js.map +1 -0
  98. package/lib/services/global_config.d.ts +618 -0
  99. package/lib/services/global_config.d.ts.map +1 -0
  100. package/lib/services/global_config.js +709 -0
  101. package/lib/services/global_config.js.map +1 -0
  102. package/lib/services/index.d.ts +42 -0
  103. package/lib/services/index.d.ts.map +1 -0
  104. package/lib/services/index.js +43 -0
  105. package/lib/services/index.js.map +1 -0
  106. package/lib/services/integrations.d.ts +3014 -0
  107. package/lib/services/integrations.d.ts.map +1 -0
  108. package/lib/services/integrations.js +2544 -0
  109. package/lib/services/integrations.js.map +1 -0
  110. package/lib/services/kms.d.ts +1095 -0
  111. package/lib/services/kms.d.ts.map +1 -0
  112. package/lib/services/kms.js +956 -0
  113. package/lib/services/kms.js.map +1 -0
  114. package/lib/services/log_drains.d.ts +848 -0
  115. package/lib/services/log_drains.d.ts.map +1 -0
  116. package/lib/services/log_drains.js +782 -0
  117. package/lib/services/log_drains.js.map +1 -0
  118. package/lib/services/logs.d.ts +40 -0
  119. package/lib/services/logs.d.ts.map +1 -0
  120. package/lib/services/logs.js +43 -0
  121. package/lib/services/logs.js.map +1 -0
  122. package/lib/services/marketplace.d.ts +1053 -0
  123. package/lib/services/marketplace.d.ts.map +1 -0
  124. package/lib/services/marketplace.js +1116 -0
  125. package/lib/services/marketplace.js.map +1 -0
  126. package/lib/services/microfrontends.d.ts +3250 -0
  127. package/lib/services/microfrontends.d.ts.map +1 -0
  128. package/lib/services/microfrontends.js +3154 -0
  129. package/lib/services/microfrontends.js.map +1 -0
  130. package/lib/services/misc.d.ts +192 -0
  131. package/lib/services/misc.d.ts.map +1 -0
  132. package/lib/services/misc.js +124 -0
  133. package/lib/services/misc.js.map +1 -0
  134. package/lib/services/networking.d.ts +360 -0
  135. package/lib/services/networking.d.ts.map +1 -0
  136. package/lib/services/networking.js +353 -0
  137. package/lib/services/networking.js.map +1 -0
  138. package/lib/services/observability.d.ts +168 -0
  139. package/lib/services/observability.d.ts.map +1 -0
  140. package/lib/services/observability.js +190 -0
  141. package/lib/services/observability.js.map +1 -0
  142. package/lib/services/project_members.d.ts +142 -0
  143. package/lib/services/project_members.d.ts.map +1 -0
  144. package/lib/services/project_members.js +135 -0
  145. package/lib/services/project_members.js.map +1 -0
  146. package/lib/services/project_routes.d.ts +1990 -0
  147. package/lib/services/project_routes.d.ts.map +1 -0
  148. package/lib/services/project_routes.js +1883 -0
  149. package/lib/services/project_routes.js.map +1 -0
  150. package/lib/services/projects.d.ts +23677 -0
  151. package/lib/services/projects.d.ts.map +1 -0
  152. package/lib/services/projects.js +22223 -0
  153. package/lib/services/projects.js.map +1 -0
  154. package/lib/services/rolling_release.d.ts +764 -0
  155. package/lib/services/rolling_release.d.ts.map +1 -0
  156. package/lib/services/rolling_release.js +583 -0
  157. package/lib/services/rolling_release.js.map +1 -0
  158. package/lib/services/sandboxes.d.ts +2777 -0
  159. package/lib/services/sandboxes.d.ts.map +1 -0
  160. package/lib/services/sandboxes.js +2142 -0
  161. package/lib/services/sandboxes.js.map +1 -0
  162. package/lib/services/security.d.ts +4247 -0
  163. package/lib/services/security.d.ts.map +1 -0
  164. package/lib/services/security.js +4377 -0
  165. package/lib/services/security.js.map +1 -0
  166. package/lib/services/storage.d.ts +251 -0
  167. package/lib/services/storage.d.ts.map +1 -0
  168. package/lib/services/storage.js +257 -0
  169. package/lib/services/storage.js.map +1 -0
  170. package/lib/services/teams.d.ts +1600 -0
  171. package/lib/services/teams.d.ts.map +1 -0
  172. package/lib/services/teams.js +1314 -0
  173. package/lib/services/teams.js.map +1 -0
  174. package/lib/services/user.d.ts +8559 -0
  175. package/lib/services/user.d.ts.map +1 -0
  176. package/lib/services/user.js +7407 -0
  177. package/lib/services/user.js.map +1 -0
  178. package/lib/services/vcr.d.ts +751 -0
  179. package/lib/services/vcr.d.ts.map +1 -0
  180. package/lib/services/vcr.js +826 -0
  181. package/lib/services/vcr.js.map +1 -0
  182. package/lib/services/web_analytics.d.ts +726 -0
  183. package/lib/services/web_analytics.d.ts.map +1 -0
  184. package/lib/services/web_analytics.js +707 -0
  185. package/lib/services/web_analytics.js.map +1 -0
  186. package/lib/services/webhooks.d.ts +219 -0
  187. package/lib/services/webhooks.d.ts.map +1 -0
  188. package/lib/services/webhooks.js +177 -0
  189. package/lib/services/webhooks.js.map +1 -0
  190. package/lib/traits.d.ts +10 -0
  191. package/lib/traits.d.ts.map +1 -0
  192. package/lib/traits.js +11 -0
  193. package/lib/traits.js.map +1 -0
  194. package/package.json +78 -7
  195. package/src/credentials.ts +70 -0
  196. package/src/errors.ts +93 -0
  197. package/src/index.ts +18 -0
  198. package/src/protocol.ts +98 -0
  199. package/src/retry.ts +78 -0
  200. package/src/services/access_groups.ts +1165 -0
  201. package/src/services/ai_gateway.ts +267 -0
  202. package/src/services/aliases.ts +1315 -0
  203. package/src/services/api_ai_gateway.ts +607 -0
  204. package/src/services/artifacts.ts +542 -0
  205. package/src/services/authentication.ts +827 -0
  206. package/src/services/billing.ts +2104 -0
  207. package/src/services/bulk_redirects.ts +748 -0
  208. package/src/services/certs.ts +371 -0
  209. package/src/services/checks_v2.ts +3084 -0
  210. package/src/services/connect.ts +4805 -0
  211. package/src/services/deployments.ts +24576 -0
  212. package/src/services/dns.ts +715 -0
  213. package/src/services/domains.ts +1257 -0
  214. package/src/services/domains_registrar.ts +2257 -0
  215. package/src/services/drains.ts +5828 -0
  216. package/src/services/edge_cache.ts +303 -0
  217. package/src/services/environment.ts +2379 -0
  218. package/src/services/feature_flags.ts +7722 -0
  219. package/src/services/global_config.ts +1668 -0
  220. package/src/services/index.ts +42 -0
  221. package/src/services/integrations.ts +9022 -0
  222. package/src/services/kms.ts +2614 -0
  223. package/src/services/log_drains.ts +2434 -0
  224. package/src/services/logs.ts +78 -0
  225. package/src/services/marketplace.ts +2849 -0
  226. package/src/services/microfrontends.ts +9921 -0
  227. package/src/services/misc.ts +364 -0
  228. package/src/services/networking.ts +865 -0
  229. package/src/services/observability.ts +435 -0
  230. package/src/services/project_members.ts +326 -0
  231. package/src/services/project_routes.ts +5229 -0
  232. package/src/services/projects.ts +68139 -0
  233. package/src/services/rolling_release.ts +1860 -0
  234. package/src/services/sandboxes.ts +6988 -0
  235. package/src/services/security.ts +13931 -0
  236. package/src/services/storage.ts +850 -0
  237. package/src/services/teams.ts +4055 -0
  238. package/src/services/user.ts +23195 -0
  239. package/src/services/vcr.ts +2070 -0
  240. package/src/services/web_analytics.ts +1638 -0
  241. package/src/services/webhooks.ts +1102 -0
  242. package/src/traits.ts +46 -0
  243. package/README.md +0 -15
  244. package/bun.lock +0 -26
  245. package/index.ts +0 -1
  246. package/tsconfig.json +0 -29
@@ -0,0 +1,865 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ VercelProtocol,
8
+ type VercelOpError,
9
+ type VercelOpContext,
10
+ } from "../protocol.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { VercelOpError, VercelOpContext };
14
+
15
+ export class BadRequest
16
+ extends /*@__PURE__*/ T.applyErrorMatchers(
17
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
18
+ code: S.Number,
19
+ message: S.String,
20
+ }).pipe(C.withBadRequestError),
21
+ [{ status: 400 }],
22
+ ) {}
23
+
24
+ export class Conflict
25
+ extends /*@__PURE__*/ T.applyErrorMatchers(
26
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
27
+ code: S.Number,
28
+ message: S.String,
29
+ }).pipe(C.withConflictError),
30
+ [{ status: 409 }],
31
+ ) {}
32
+
33
+ export class Forbidden
34
+ extends /*@__PURE__*/ T.applyErrorMatchers(
35
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
36
+ code: S.Number,
37
+ message: S.String,
38
+ }).pipe(C.withAuthError),
39
+ [{ status: 403 }],
40
+ ) {}
41
+
42
+ export class NotFound
43
+ extends /*@__PURE__*/ T.applyErrorMatchers(
44
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
45
+ code: S.Number,
46
+ message: S.String,
47
+ }).pipe(C.withBadRequestError),
48
+ [{ status: 404 }],
49
+ ) {}
50
+
51
+ export class PaymentRequired
52
+ extends /*@__PURE__*/ T.applyErrorMatchers(
53
+ /*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
54
+ code: S.Number,
55
+ message: S.String,
56
+ }).pipe(C.withQuotaError),
57
+ [{ status: 402 }],
58
+ ) {}
59
+
60
+ export type CreateNetworkRequestAwsAvailabilityZoneIdsList = Array<string>;
61
+ export const CreateNetworkRequestAwsAvailabilityZoneIdsList =
62
+ /*@__PURE__*/ S.Array(
63
+ S.String,
64
+ ) as any as S.Schema<CreateNetworkRequestAwsAvailabilityZoneIdsList>;
65
+
66
+ export interface CreateNetworkRequest {
67
+ /** The Team identifier to perform the request on behalf of. */
68
+ teamId?: string;
69
+ /** The Team slug to perform the request on behalf of. */
70
+ slug?: string;
71
+ awsAvailabilityZoneIds?: CreateNetworkRequestAwsAvailabilityZoneIdsList;
72
+ /** The CIDR block of the network */
73
+ cidr: string;
74
+ /** The name of the network */
75
+ name: string;
76
+ /** The region where the network will be created */
77
+ region: string;
78
+ }
79
+ export const CreateNetworkRequest = /*@__PURE__*/ S.suspend(() =>
80
+ S.Struct({
81
+ teamId: S.optional(S.String.pipe(T.Query())),
82
+ slug: S.optional(S.String.pipe(T.Query())),
83
+ awsAvailabilityZoneIds: S.optional(
84
+ CreateNetworkRequestAwsAvailabilityZoneIdsList,
85
+ ),
86
+ cidr: S.String,
87
+ name: S.String,
88
+ region: S.String,
89
+ }).pipe(T.Http({ method: "POST", uri: "/v1/connect/networks", code: 200 })),
90
+ ).annotate({
91
+ identifier: "CreateNetworkRequest",
92
+ }) as any as S.Schema<CreateNetworkRequest>;
93
+
94
+ /** The IDs of the AWS Availability Zones in which the network exists, if specified during creation. */
95
+ export type NetworkAwsAvailabilityZoneIdsList = Array<string>;
96
+ export const NetworkAwsAvailabilityZoneIdsList = /*@__PURE__*/ S.Array(
97
+ S.String,
98
+ ) as any as S.Schema<NetworkAwsAvailabilityZoneIdsList>;
99
+
100
+ export type NetworkEgressIpAddressesList = Array<string>;
101
+ export const NetworkEgressIpAddressesList = /*@__PURE__*/ S.Array(
102
+ S.String,
103
+ ) as any as S.Schema<NetworkEgressIpAddressesList>;
104
+
105
+ /** Metadata about any AWS Route53 Hosted Zones associated with the Network. */
106
+ export interface NetworkHostedZones {
107
+ /** The number of AWS Route53 Hosted Zones associated with the Network. */
108
+ count: number;
109
+ }
110
+ export const NetworkHostedZones = /*@__PURE__*/ S.suspend(() =>
111
+ S.Struct({
112
+ count: S.Number,
113
+ }),
114
+ ).annotate({
115
+ identifier: "NetworkHostedZones",
116
+ }) as any as S.Schema<NetworkHostedZones>;
117
+
118
+ /** Metadata about any AWS Route53 Hosted Zones associated with the Network. */
119
+ export type NetworkPeeringConnections = NetworkHostedZones;
120
+ export const NetworkPeeringConnections = NetworkHostedZones;
121
+
122
+ export type NetworkProjectsIdsList = Array<string>;
123
+ export const NetworkProjectsIdsList = /*@__PURE__*/ S.Array(
124
+ S.String,
125
+ ) as any as S.Schema<NetworkProjectsIdsList>;
126
+
127
+ /** Metadata about any projects associated with the Network. */
128
+ export interface NetworkProjects {
129
+ count: number;
130
+ ids: NetworkProjectsIdsList;
131
+ }
132
+ export const NetworkProjects = /*@__PURE__*/ S.suspend(() =>
133
+ S.Struct({
134
+ count: S.Number,
135
+ ids: NetworkProjectsIdsList,
136
+ }),
137
+ ).annotate({
138
+ identifier: "NetworkProjects",
139
+ }) as any as S.Schema<NetworkProjects>;
140
+
141
+ /** The status of the Network. */
142
+ export type NetworkStatus =
143
+ | "create_in_progress"
144
+ | "delete_in_progress"
145
+ | "error"
146
+ | "ready";
147
+ export const NetworkStatus = S.String;
148
+
149
+ export interface Network {
150
+ /** The ID of the AWS Account in which the network exists. */
151
+ awsAccountId: string;
152
+ /** The IDs of the AWS Availability Zones in which the network exists, if specified during creation. */
153
+ awsAvailabilityZoneIds?: NetworkAwsAvailabilityZoneIdsList;
154
+ /** The AWS Region in which the network exists. */
155
+ awsRegion: string;
156
+ /** The CIDR range of the Network. */
157
+ cidr: string;
158
+ /** The date at which the Network was created, represented as a UNIX timestamp since EPOCH. */
159
+ createdAt: number;
160
+ egressIpAddresses?: NetworkEgressIpAddressesList;
161
+ /** Metadata about any AWS Route53 Hosted Zones associated with the Network. */
162
+ hostedZones?: NetworkHostedZones;
163
+ /** The unique identifier of the Network. */
164
+ id: string;
165
+ /** The name of the network. */
166
+ name: string;
167
+ /** Metadata about any AWS Route53 Hosted Zones associated with the Network. */
168
+ peeringConnections?: NetworkHostedZones;
169
+ /** Metadata about any projects associated with the Network. */
170
+ projects?: NetworkProjects;
171
+ /** The Vercel region in which the Network exists. */
172
+ region?: string;
173
+ /** The status of the Network. */
174
+ status: NetworkStatus;
175
+ /** The unique identifier of the Team that owns the Network. */
176
+ teamId: string;
177
+ /** The ID of the VPC which hosts the network. */
178
+ vpcId?: string;
179
+ }
180
+ export const Network = /*@__PURE__*/ S.suspend(() =>
181
+ S.Struct({
182
+ awsAccountId: S.String,
183
+ awsAvailabilityZoneIds: S.optional(NetworkAwsAvailabilityZoneIdsList),
184
+ awsRegion: S.String,
185
+ cidr: S.String,
186
+ createdAt: S.Number,
187
+ egressIpAddresses: S.optional(NetworkEgressIpAddressesList),
188
+ hostedZones: S.optional(NetworkHostedZones),
189
+ id: S.String,
190
+ name: S.String,
191
+ peeringConnections: S.optional(NetworkHostedZones),
192
+ projects: S.optional(NetworkProjects),
193
+ region: S.optional(S.String),
194
+ status: NetworkStatus,
195
+ teamId: S.String,
196
+ vpcId: S.optional(S.String),
197
+ }),
198
+ ).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
199
+
200
+ export interface CreatePrivateLinkEndpointRequest {
201
+ /** The Team identifier to perform the request on behalf of. */
202
+ teamId?: string;
203
+ /** The Team slug to perform the request on behalf of. */
204
+ slug?: string;
205
+ /** The project ID to create the PrivateLink endpoint for. */
206
+ projectId: string;
207
+ /** The name of the PrivateLink endpoint, used as its label in the Vercel dashboard. */
208
+ name: string;
209
+ /** The Vercel region to provision the endpoint in. Advanced Networking must be enabled for the project in that region. The endpoint service itself may live in another AWS region. */
210
+ vercelRegion: string;
211
+ /** The name of the AWS VPC endpoint service to connect to. Its AWS region is read from the name; when that region differs from the one behind `vercelRegion`, the service must allow cross-region access. */
212
+ awsServiceName: string;
213
+ /** Whether to resolve the endpoint service through its private DNS names, which are then returned in `privateDnsNames`. Defaults to `false`, in which case the endpoint is reachable through the DNS names in `awsDnsEntries`. */
214
+ enablePrivateDns?: boolean;
215
+ }
216
+ export const CreatePrivateLinkEndpointRequest = /*@__PURE__*/ S.suspend(() =>
217
+ S.Struct({
218
+ teamId: S.optional(S.String.pipe(T.Query())),
219
+ slug: S.optional(S.String.pipe(T.Query())),
220
+ projectId: S.String,
221
+ name: S.String,
222
+ vercelRegion: S.String,
223
+ awsServiceName: S.String,
224
+ enablePrivateDns: S.optional(S.Boolean),
225
+ }).pipe(
226
+ T.Http({
227
+ method: "POST",
228
+ uri: "/v1/networking/privatelink/endpoints",
229
+ code: 200,
230
+ }),
231
+ ),
232
+ ).annotate({
233
+ identifier: "CreatePrivateLinkEndpointRequest",
234
+ }) as any as S.Schema<CreatePrivateLinkEndpointRequest>;
235
+
236
+ /** The regional DNS names assigned to the endpoint by AWS. Use these to reach the service when private DNS is not enabled. */
237
+ export type PrivateLinkEndpointAwsDnsEntriesList = Array<string>;
238
+ export const PrivateLinkEndpointAwsDnsEntriesList = /*@__PURE__*/ S.Array(
239
+ S.String,
240
+ ) as any as S.Schema<PrivateLinkEndpointAwsDnsEntriesList>;
241
+
242
+ /** The private DNS names of the endpoint service, populated when private DNS is enabled for the endpoint. */
243
+ export type PrivateLinkEndpointPrivateDnsNamesList = Array<string>;
244
+ export const PrivateLinkEndpointPrivateDnsNamesList = /*@__PURE__*/ S.Array(
245
+ S.String,
246
+ ) as any as S.Schema<PrivateLinkEndpointPrivateDnsNamesList>;
247
+
248
+ /** The current state of the endpoint. - `creating`: the endpoint is being created. - `pending-acceptance`: waiting for the endpoint service owner to accept the connection. Only occurs for services that require manual acceptance. - `provisioning`: the connection was accepted and AWS is finishing setup. - `available`: the endpoint is fully provisioned and ready to use. - `rejected`: the endpoint service owner rejected the connection. - `failed`: the endpoint could not be provisioned. - `deleting`: the endpoint is being deleted. */
249
+ export type PrivateLinkEndpointStatus =
250
+ | "available"
251
+ | "creating"
252
+ | "deleting"
253
+ | "failed"
254
+ | "pending-acceptance"
255
+ | "provisioning"
256
+ | "rejected";
257
+ export const PrivateLinkEndpointStatus = S.String;
258
+
259
+ /** A PrivateLink endpoint, which connects a project to an AWS VPC endpoint service in a single region so that traffic reaches the service over AWS PrivateLink rather than the public internet. */
260
+ export interface PrivateLinkEndpoint {
261
+ /** The unique identifier of the PrivateLink endpoint. */
262
+ endpointId: string;
263
+ /** The name of the PrivateLink endpoint, shown in the Vercel dashboard. */
264
+ name: string;
265
+ /** The identifier of the team that owns the PrivateLink endpoint. */
266
+ teamId: string;
267
+ /** The identifier of the project the PrivateLink endpoint belongs to. */
268
+ projectId: string;
269
+ /** The Vercel region the endpoint is provisioned in. */
270
+ vercelRegion: string;
271
+ /** The AWS VPC endpoint service the endpoint connects to. */
272
+ awsServiceName: string;
273
+ /** The identifier of the underlying AWS VPC endpoint. Absent until AWS has created the endpoint. */
274
+ vpcEndpointId?: string;
275
+ /** The regional DNS names assigned to the endpoint by AWS. Use these to reach the service when private DNS is not enabled. */
276
+ awsDnsEntries?: PrivateLinkEndpointAwsDnsEntriesList;
277
+ /** The private DNS names of the endpoint service, populated when private DNS is enabled for the endpoint. */
278
+ privateDnsNames?: PrivateLinkEndpointPrivateDnsNamesList;
279
+ /** The current state of the endpoint. - `creating`: the endpoint is being created. - `pending-acceptance`: waiting for the endpoint service owner to accept the connection. Only occurs for services that require manual acceptance. - `provisioning`: the connection was accepted and AWS is finishing setup. - `available`: the endpoint is fully provisioned and ready to use. - `rejected`: the endpoint service owner rejected the connection. - `failed`: the endpoint could not be provisioned. - `deleting`: the endpoint is being deleted. */
280
+ status: PrivateLinkEndpointStatus;
281
+ /** A human-readable explanation of why the endpoint could not be provisioned. Only set when `status` is `failed`, and absent for every other status including `rejected`, since AWS does not report a rejection reason. */
282
+ statusMessage?: string;
283
+ /** Timestamp in milliseconds since the UNIX epoch for when the endpoint was created. */
284
+ createdAt: number;
285
+ /** Timestamp in milliseconds since the UNIX epoch for when the endpoint was last updated. */
286
+ updatedAt: number;
287
+ }
288
+ export const PrivateLinkEndpoint = /*@__PURE__*/ S.suspend(() =>
289
+ S.Struct({
290
+ endpointId: S.String,
291
+ name: S.String,
292
+ teamId: S.String,
293
+ projectId: S.String,
294
+ vercelRegion: S.String,
295
+ awsServiceName: S.String,
296
+ vpcEndpointId: S.optional(S.String),
297
+ awsDnsEntries: S.optional(PrivateLinkEndpointAwsDnsEntriesList),
298
+ privateDnsNames: S.optional(PrivateLinkEndpointPrivateDnsNamesList),
299
+ status: PrivateLinkEndpointStatus,
300
+ statusMessage: S.optional(S.String),
301
+ createdAt: S.Number,
302
+ updatedAt: S.Number,
303
+ }),
304
+ ).annotate({
305
+ identifier: "PrivateLinkEndpoint",
306
+ }) as any as S.Schema<PrivateLinkEndpoint>;
307
+
308
+ export interface DeleteNetworkRequest {
309
+ /** The ID of the network to delete */
310
+ networkId: string;
311
+ /** The Team identifier to perform the request on behalf of. */
312
+ teamId?: string;
313
+ /** The Team slug to perform the request on behalf of. */
314
+ slug?: string;
315
+ }
316
+ export const DeleteNetworkRequest = /*@__PURE__*/ S.suspend(() =>
317
+ S.Struct({
318
+ networkId: S.String.pipe(T.Label()),
319
+ teamId: S.optional(S.String.pipe(T.Query())),
320
+ slug: S.optional(S.String.pipe(T.Query())),
321
+ }).pipe(
322
+ T.Http({
323
+ method: "DELETE",
324
+ uri: "/v1/connect/networks/{networkId}",
325
+ code: 200,
326
+ }),
327
+ ),
328
+ ).annotate({
329
+ identifier: "DeleteNetworkRequest",
330
+ }) as any as S.Schema<DeleteNetworkRequest>;
331
+
332
+ export interface DeleteNetworkResponse {}
333
+ export const DeleteNetworkResponse = /*@__PURE__*/ S.suspend(() =>
334
+ S.Struct({}),
335
+ ).annotate({
336
+ identifier: "DeleteNetworkResponse",
337
+ }) as any as S.Schema<DeleteNetworkResponse>;
338
+
339
+ export interface DeletePrivateLinkEndpointRequest {
340
+ /** The unique identifier of the PrivateLink endpoint. */
341
+ endpointId: string;
342
+ /** The project ID the PrivateLink endpoint belongs to. */
343
+ projectId: string;
344
+ /** The Team identifier to perform the request on behalf of. */
345
+ teamId?: string;
346
+ /** The Team slug to perform the request on behalf of. */
347
+ slug?: string;
348
+ }
349
+ export const DeletePrivateLinkEndpointRequest = /*@__PURE__*/ S.suspend(() =>
350
+ S.Struct({
351
+ endpointId: S.String.pipe(T.Label()),
352
+ projectId: S.String.pipe(T.Query()),
353
+ teamId: S.optional(S.String.pipe(T.Query())),
354
+ slug: S.optional(S.String.pipe(T.Query())),
355
+ }).pipe(
356
+ T.Http({
357
+ method: "DELETE",
358
+ uri: "/v1/networking/privatelink/endpoints/{endpointId}",
359
+ code: 200,
360
+ }),
361
+ ),
362
+ ).annotate({
363
+ identifier: "DeletePrivateLinkEndpointRequest",
364
+ }) as any as S.Schema<DeletePrivateLinkEndpointRequest>;
365
+
366
+ export type DeletePrivateLinkEndpointResponse = unknown;
367
+ export const DeletePrivateLinkEndpointResponse = /*@__PURE__*/ S.suspend(() =>
368
+ S.Unknown.pipe(T.RawResponseRoot()),
369
+ ).annotate({
370
+ identifier: "DeletePrivateLinkEndpointResponse",
371
+ }) as any as S.Schema<DeletePrivateLinkEndpointResponse>;
372
+
373
+ export interface ListNetworksRequest {
374
+ /** Whether to include Hosted Zones in the response */
375
+ includeHostedZones?: boolean;
376
+ /** Whether to include VPC Peering connections in the response */
377
+ includePeeringConnections?: boolean;
378
+ /** Whether to include projects in the response */
379
+ includeProjects?: boolean;
380
+ /** The query to use as a filter for returned networks */
381
+ search?: string;
382
+ /** The Team identifier to perform the request on behalf of. */
383
+ teamId?: string;
384
+ /** The Team slug to perform the request on behalf of. */
385
+ slug?: string;
386
+ }
387
+ export const ListNetworksRequest = /*@__PURE__*/ S.suspend(() =>
388
+ S.Struct({
389
+ includeHostedZones: S.optional(S.Boolean.pipe(T.Query())),
390
+ includePeeringConnections: S.optional(S.Boolean.pipe(T.Query())),
391
+ includeProjects: S.optional(S.Boolean.pipe(T.Query())),
392
+ search: S.optional(S.String.pipe(T.Query())),
393
+ teamId: S.optional(S.String.pipe(T.Query())),
394
+ slug: S.optional(S.String.pipe(T.Query())),
395
+ }).pipe(T.Http({ method: "GET", uri: "/v1/connect/networks", code: 200 })),
396
+ ).annotate({
397
+ identifier: "ListNetworksRequest",
398
+ }) as any as S.Schema<ListNetworksRequest>;
399
+
400
+ export type ListNetworksResponseBodyList = Array<Network>;
401
+ export const ListNetworksResponseBodyList = /*@__PURE__*/ S.Array(
402
+ Network,
403
+ ) as any as S.Schema<ListNetworksResponseBodyList>;
404
+
405
+ export type ListNetworksResponse = ListNetworksResponseBodyList;
406
+ export const ListNetworksResponse = /*@__PURE__*/ S.suspend(() =>
407
+ ListNetworksResponseBodyList.pipe(T.RawResponseRoot()),
408
+ ).annotate({
409
+ identifier: "ListNetworksResponse",
410
+ }) as any as S.Schema<ListNetworksResponse>;
411
+
412
+ export interface ListPrivateLinkEndpointsRequest {
413
+ /** The project ID to list PrivateLink endpoints for. */
414
+ projectId: string;
415
+ /** The Team identifier to perform the request on behalf of. */
416
+ teamId?: string;
417
+ /** The Team slug to perform the request on behalf of. */
418
+ slug?: string;
419
+ }
420
+ export const ListPrivateLinkEndpointsRequest = /*@__PURE__*/ S.suspend(() =>
421
+ S.Struct({
422
+ projectId: S.String.pipe(T.Query()),
423
+ teamId: S.optional(S.String.pipe(T.Query())),
424
+ slug: S.optional(S.String.pipe(T.Query())),
425
+ }).pipe(
426
+ T.Http({
427
+ method: "GET",
428
+ uri: "/v1/networking/privatelink/endpoints",
429
+ code: 200,
430
+ }),
431
+ ),
432
+ ).annotate({
433
+ identifier: "ListPrivateLinkEndpointsRequest",
434
+ }) as any as S.Schema<ListPrivateLinkEndpointsRequest>;
435
+
436
+ export type ListPrivateLinkEndpointsResponseBodyList =
437
+ Array<PrivateLinkEndpoint>;
438
+ export const ListPrivateLinkEndpointsResponseBodyList = /*@__PURE__*/ S.Array(
439
+ PrivateLinkEndpoint,
440
+ ) as any as S.Schema<ListPrivateLinkEndpointsResponseBodyList>;
441
+
442
+ export type ListPrivateLinkEndpointsResponse =
443
+ ListPrivateLinkEndpointsResponseBodyList;
444
+ export const ListPrivateLinkEndpointsResponse = /*@__PURE__*/ S.suspend(() =>
445
+ ListPrivateLinkEndpointsResponseBodyList.pipe(T.RawResponseRoot()),
446
+ ).annotate({
447
+ identifier: "ListPrivateLinkEndpointsResponse",
448
+ }) as any as S.Schema<ListPrivateLinkEndpointsResponse>;
449
+
450
+ export interface ReadNetworkRequest {
451
+ /** The unique identifier of the Secure Compute network */
452
+ networkId: string;
453
+ /** The Team identifier to perform the request on behalf of. */
454
+ teamId?: string;
455
+ /** The Team slug to perform the request on behalf of. */
456
+ slug?: string;
457
+ }
458
+ export const ReadNetworkRequest = /*@__PURE__*/ S.suspend(() =>
459
+ S.Struct({
460
+ networkId: S.String.pipe(T.Label()),
461
+ teamId: S.optional(S.String.pipe(T.Query())),
462
+ slug: S.optional(S.String.pipe(T.Query())),
463
+ }).pipe(
464
+ T.Http({
465
+ method: "GET",
466
+ uri: "/v1/connect/networks/{networkId}",
467
+ code: 200,
468
+ }),
469
+ ),
470
+ ).annotate({
471
+ identifier: "ReadNetworkRequest",
472
+ }) as any as S.Schema<ReadNetworkRequest>;
473
+
474
+ export interface ReadPrivateLinkEndpointRequest {
475
+ /** The unique identifier of the PrivateLink endpoint. */
476
+ endpointId: string;
477
+ /** The project ID the PrivateLink endpoint belongs to. */
478
+ projectId: string;
479
+ /** The Team identifier to perform the request on behalf of. */
480
+ teamId?: string;
481
+ /** The Team slug to perform the request on behalf of. */
482
+ slug?: string;
483
+ }
484
+ export const ReadPrivateLinkEndpointRequest = /*@__PURE__*/ S.suspend(() =>
485
+ S.Struct({
486
+ endpointId: S.String.pipe(T.Label()),
487
+ projectId: S.String.pipe(T.Query()),
488
+ teamId: S.optional(S.String.pipe(T.Query())),
489
+ slug: S.optional(S.String.pipe(T.Query())),
490
+ }).pipe(
491
+ T.Http({
492
+ method: "GET",
493
+ uri: "/v1/networking/privatelink/endpoints/{endpointId}",
494
+ code: 200,
495
+ }),
496
+ ),
497
+ ).annotate({
498
+ identifier: "ReadPrivateLinkEndpointRequest",
499
+ }) as any as S.Schema<ReadPrivateLinkEndpointRequest>;
500
+
501
+ export interface UpdateNetworkRequest {
502
+ /** The unique identifier of the Secure Compute network */
503
+ networkId: string;
504
+ /** The Team identifier to perform the request on behalf of. */
505
+ teamId?: string;
506
+ /** The Team slug to perform the request on behalf of. */
507
+ slug?: string;
508
+ /** The name of the Secure Compute network */
509
+ name: string;
510
+ }
511
+ export const UpdateNetworkRequest = /*@__PURE__*/ S.suspend(() =>
512
+ S.Struct({
513
+ networkId: S.String.pipe(T.Label()),
514
+ teamId: S.optional(S.String.pipe(T.Query())),
515
+ slug: S.optional(S.String.pipe(T.Query())),
516
+ name: S.String,
517
+ }).pipe(
518
+ T.Http({
519
+ method: "PATCH",
520
+ uri: "/v1/connect/networks/{networkId}",
521
+ code: 200,
522
+ }),
523
+ ),
524
+ ).annotate({
525
+ identifier: "UpdateNetworkRequest",
526
+ }) as any as S.Schema<UpdateNetworkRequest>;
527
+
528
+ export interface UpdatePrivateLinkEndpointRequest {
529
+ /** The unique identifier of the PrivateLink endpoint. */
530
+ endpointId: string;
531
+ /** The project ID the PrivateLink endpoint belongs to. */
532
+ projectId: string;
533
+ /** The Team identifier to perform the request on behalf of. */
534
+ teamId?: string;
535
+ /** The Team slug to perform the request on behalf of. */
536
+ slug?: string;
537
+ /** A new name for the PrivateLink endpoint. When omitted, the current name is kept. */
538
+ name?: string;
539
+ /** When `true`, resolves the endpoint service through its private DNS names, which are then returned in `privateDnsNames`. When `false`, clears them. When omitted, the current setting is kept. At least one of `name` or `enablePrivateDns` must be provided. */
540
+ enablePrivateDns?: boolean;
541
+ }
542
+ export const UpdatePrivateLinkEndpointRequest = /*@__PURE__*/ S.suspend(() =>
543
+ S.Struct({
544
+ endpointId: S.String.pipe(T.Label()),
545
+ projectId: S.String.pipe(T.Query()),
546
+ teamId: S.optional(S.String.pipe(T.Query())),
547
+ slug: S.optional(S.String.pipe(T.Query())),
548
+ name: S.optional(S.String),
549
+ enablePrivateDns: S.optional(S.Boolean),
550
+ }).pipe(
551
+ T.Http({
552
+ method: "PATCH",
553
+ uri: "/v1/networking/privatelink/endpoints/{endpointId}",
554
+ code: 200,
555
+ }),
556
+ ),
557
+ ).annotate({
558
+ identifier: "UpdatePrivateLinkEndpointRequest",
559
+ }) as any as S.Schema<UpdatePrivateLinkEndpointRequest>;
560
+
561
+ export type UpdateStaticIpsRequestRegionsList = Array<string>;
562
+ export const UpdateStaticIpsRequestRegionsList = /*@__PURE__*/ S.Array(
563
+ S.String,
564
+ ) as any as S.Schema<UpdateStaticIpsRequestRegionsList>;
565
+
566
+ export interface UpdateStaticIpsRequest {
567
+ /** The unique project identifier or the project name */
568
+ idOrName: string;
569
+ /** The Team identifier to perform the request on behalf of. */
570
+ teamId?: string;
571
+ /** The Team slug to perform the request on behalf of. */
572
+ slug?: string;
573
+ /** Whether to use Static IPs for builds. */
574
+ builds?: boolean;
575
+ regions?: UpdateStaticIpsRequestRegionsList;
576
+ }
577
+ export const UpdateStaticIpsRequest = /*@__PURE__*/ S.suspend(() =>
578
+ S.Struct({
579
+ idOrName: S.String.pipe(T.Label()),
580
+ teamId: S.optional(S.String.pipe(T.Query())),
581
+ slug: S.optional(S.String.pipe(T.Query())),
582
+ builds: S.optional(S.Boolean),
583
+ regions: S.optional(UpdateStaticIpsRequestRegionsList),
584
+ }).pipe(
585
+ T.Http({
586
+ method: "PATCH",
587
+ uri: "/v1/projects/{idOrName}/shared-connect-links",
588
+ code: 200,
589
+ }),
590
+ ),
591
+ ).annotate({
592
+ identifier: "UpdateStaticIpsRequest",
593
+ }) as any as S.Schema<UpdateStaticIpsRequest>;
594
+
595
+ export type UpdateStaticIpsResponseBodyItemEnvIdCase1 =
596
+ | "preview"
597
+ | "production";
598
+ export const UpdateStaticIpsResponseBodyItemEnvIdCase1 = S.String;
599
+
600
+ export type UpdateStaticIpsResponseBodyItemEnvId =
601
+ | string
602
+ | UpdateStaticIpsResponseBodyItemEnvIdCase1;
603
+ export const UpdateStaticIpsResponseBodyItemEnvId =
604
+ S.Unknown as any as S.Schema<UpdateStaticIpsResponseBodyItemEnvId>;
605
+
606
+ export type UpdateStaticIpsResponseBodyItemAwsSubnetIdsList = Array<string>;
607
+ export const UpdateStaticIpsResponseBodyItemAwsSubnetIdsList =
608
+ /*@__PURE__*/ S.Array(
609
+ S.String,
610
+ ) as any as S.Schema<UpdateStaticIpsResponseBodyItemAwsSubnetIdsList>;
611
+
612
+ export interface UpdateStaticIpsResponseBodyItemAws {
613
+ subnetIds: UpdateStaticIpsResponseBodyItemAwsSubnetIdsList;
614
+ securityGroupId?: string;
615
+ }
616
+ export const UpdateStaticIpsResponseBodyItemAws = /*@__PURE__*/ S.suspend(() =>
617
+ S.Struct({
618
+ subnetIds: UpdateStaticIpsResponseBodyItemAwsSubnetIdsList,
619
+ securityGroupId: S.optional(S.String),
620
+ }),
621
+ ).annotate({
622
+ identifier: "UpdateStaticIpsResponseBodyItemAws",
623
+ }) as any as S.Schema<UpdateStaticIpsResponseBodyItemAws>;
624
+
625
+ export interface UpdateStaticIpsResponseBodyItem {
626
+ envId: UpdateStaticIpsResponseBodyItemEnvId;
627
+ connectConfigurationId: string;
628
+ dc?: string;
629
+ passive: boolean;
630
+ buildsEnabled: boolean;
631
+ aws?: UpdateStaticIpsResponseBodyItemAws;
632
+ createdAt: number;
633
+ updatedAt: number;
634
+ }
635
+ export const UpdateStaticIpsResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
636
+ S.Struct({
637
+ envId: UpdateStaticIpsResponseBodyItemEnvId,
638
+ connectConfigurationId: S.String,
639
+ dc: S.optional(S.String),
640
+ passive: S.Boolean,
641
+ buildsEnabled: S.Boolean,
642
+ aws: S.optional(UpdateStaticIpsResponseBodyItemAws),
643
+ createdAt: S.Number,
644
+ updatedAt: S.Number,
645
+ }),
646
+ ).annotate({
647
+ identifier: "UpdateStaticIpsResponseBodyItem",
648
+ }) as any as S.Schema<UpdateStaticIpsResponseBodyItem>;
649
+
650
+ export type UpdateStaticIpsResponseBodyList =
651
+ Array<UpdateStaticIpsResponseBodyItem>;
652
+ export const UpdateStaticIpsResponseBodyList = /*@__PURE__*/ S.Array(
653
+ UpdateStaticIpsResponseBodyItem,
654
+ ) as any as S.Schema<UpdateStaticIpsResponseBodyList>;
655
+
656
+ export type UpdateStaticIpsResponse = UpdateStaticIpsResponseBodyList;
657
+ export const UpdateStaticIpsResponse = /*@__PURE__*/ S.suspend(() =>
658
+ UpdateStaticIpsResponseBodyList.pipe(T.RawResponseRoot()),
659
+ ).annotate({
660
+ identifier: "UpdateStaticIpsResponse",
661
+ }) as any as S.Schema<UpdateStaticIpsResponse>;
662
+
663
+ export type CreateNetworkError =
664
+ | BadRequest
665
+ | PaymentRequired
666
+ | Forbidden
667
+ | Conflict
668
+ | VercelOpError;
669
+ /** Create a Secure Compute network Allows to create a Secure Compute network. */
670
+ export const createNetwork: API.OperationMethod<
671
+ CreateNetworkRequest,
672
+ Network,
673
+ CreateNetworkError,
674
+ VercelOpContext
675
+ > = /*@__PURE__*/ API.make(() => ({
676
+ input: CreateNetworkRequest,
677
+ output: Network,
678
+ errors: [BadRequest, PaymentRequired, Forbidden, Conflict],
679
+ protocol: VercelProtocol,
680
+ retry: Retry.Retry,
681
+ }));
682
+
683
+ export type CreatePrivateLinkEndpointError =
684
+ | BadRequest
685
+ | Forbidden
686
+ | NotFound
687
+ | Conflict
688
+ | VercelOpError;
689
+ /** Create a PrivateLink endpoint Creates a PrivateLink endpoint for a project. */
690
+ export const createPrivateLinkEndpoint: API.OperationMethod<
691
+ CreatePrivateLinkEndpointRequest,
692
+ PrivateLinkEndpoint,
693
+ CreatePrivateLinkEndpointError,
694
+ VercelOpContext
695
+ > = /*@__PURE__*/ API.make(() => ({
696
+ input: CreatePrivateLinkEndpointRequest,
697
+ output: PrivateLinkEndpoint,
698
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
699
+ protocol: VercelProtocol,
700
+ retry: Retry.Retry,
701
+ }));
702
+
703
+ export type DeleteNetworkError =
704
+ | BadRequest
705
+ | PaymentRequired
706
+ | Forbidden
707
+ | Conflict
708
+ | VercelOpError;
709
+ /** Delete a Secure Compute network Allows to delete a Secure Compute network. */
710
+ export const deleteNetwork: API.OperationMethod<
711
+ DeleteNetworkRequest,
712
+ DeleteNetworkResponse,
713
+ DeleteNetworkError,
714
+ VercelOpContext
715
+ > = /*@__PURE__*/ API.make(() => ({
716
+ input: DeleteNetworkRequest,
717
+ output: DeleteNetworkResponse,
718
+ errors: [BadRequest, PaymentRequired, Forbidden, Conflict],
719
+ protocol: VercelProtocol,
720
+ retry: Retry.Retry,
721
+ }));
722
+
723
+ export type DeletePrivateLinkEndpointError =
724
+ | BadRequest
725
+ | Forbidden
726
+ | NotFound
727
+ | Conflict
728
+ | VercelOpError;
729
+ /** Delete a PrivateLink endpoint Deletes a PrivateLink endpoint. */
730
+ export const deletePrivateLinkEndpoint: API.OperationMethod<
731
+ DeletePrivateLinkEndpointRequest,
732
+ DeletePrivateLinkEndpointResponse,
733
+ DeletePrivateLinkEndpointError,
734
+ VercelOpContext
735
+ > = /*@__PURE__*/ API.make(() => ({
736
+ input: DeletePrivateLinkEndpointRequest,
737
+ output: DeletePrivateLinkEndpointResponse,
738
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
739
+ protocol: VercelProtocol,
740
+ retry: Retry.Retry,
741
+ }));
742
+
743
+ export type ListNetworksError = BadRequest | Forbidden | VercelOpError;
744
+ /** List Secure Compute networks Allows to list Secure Compute networks. */
745
+ export const listNetworks: API.OperationMethod<
746
+ ListNetworksRequest,
747
+ ListNetworksResponse,
748
+ ListNetworksError,
749
+ VercelOpContext
750
+ > = /*@__PURE__*/ API.make(() => ({
751
+ input: ListNetworksRequest,
752
+ output: ListNetworksResponse,
753
+ errors: [BadRequest, Forbidden],
754
+ protocol: VercelProtocol,
755
+ retry: Retry.Retry,
756
+ }));
757
+
758
+ export type ListPrivateLinkEndpointsError =
759
+ | BadRequest
760
+ | Forbidden
761
+ | NotFound
762
+ | VercelOpError;
763
+ /** List PrivateLink endpoints Lists all PrivateLink endpoints for a project. */
764
+ export const listPrivateLinkEndpoints: API.OperationMethod<
765
+ ListPrivateLinkEndpointsRequest,
766
+ ListPrivateLinkEndpointsResponse,
767
+ ListPrivateLinkEndpointsError,
768
+ VercelOpContext
769
+ > = /*@__PURE__*/ API.make(() => ({
770
+ input: ListPrivateLinkEndpointsRequest,
771
+ output: ListPrivateLinkEndpointsResponse,
772
+ errors: [BadRequest, Forbidden, NotFound],
773
+ protocol: VercelProtocol,
774
+ retry: Retry.Retry,
775
+ }));
776
+
777
+ export type ReadNetworkError = BadRequest | Forbidden | VercelOpError;
778
+ /** Read a Secure Compute network Allows to read a Secure Compute network. */
779
+ export const readNetwork: API.OperationMethod<
780
+ ReadNetworkRequest,
781
+ Network,
782
+ ReadNetworkError,
783
+ VercelOpContext
784
+ > = /*@__PURE__*/ API.make(() => ({
785
+ input: ReadNetworkRequest,
786
+ output: Network,
787
+ errors: [BadRequest, Forbidden],
788
+ protocol: VercelProtocol,
789
+ retry: Retry.Retry,
790
+ }));
791
+
792
+ export type ReadPrivateLinkEndpointError =
793
+ | BadRequest
794
+ | Forbidden
795
+ | NotFound
796
+ | VercelOpError;
797
+ /** Read a PrivateLink endpoint Reads a single PrivateLink endpoint. */
798
+ export const readPrivateLinkEndpoint: API.OperationMethod<
799
+ ReadPrivateLinkEndpointRequest,
800
+ PrivateLinkEndpoint,
801
+ ReadPrivateLinkEndpointError,
802
+ VercelOpContext
803
+ > = /*@__PURE__*/ API.make(() => ({
804
+ input: ReadPrivateLinkEndpointRequest,
805
+ output: PrivateLinkEndpoint,
806
+ errors: [BadRequest, Forbidden, NotFound],
807
+ protocol: VercelProtocol,
808
+ retry: Retry.Retry,
809
+ }));
810
+
811
+ export type UpdateNetworkError = BadRequest | Forbidden | VercelOpError;
812
+ /** Update a Secure Compute network Allows to update a Secure Compute network. */
813
+ export const updateNetwork: API.OperationMethod<
814
+ UpdateNetworkRequest,
815
+ Network,
816
+ UpdateNetworkError,
817
+ VercelOpContext
818
+ > = /*@__PURE__*/ API.make(() => ({
819
+ input: UpdateNetworkRequest,
820
+ output: Network,
821
+ errors: [BadRequest, Forbidden],
822
+ protocol: VercelProtocol,
823
+ retry: Retry.Retry,
824
+ }));
825
+
826
+ export type UpdatePrivateLinkEndpointError =
827
+ | BadRequest
828
+ | Forbidden
829
+ | NotFound
830
+ | Conflict
831
+ | VercelOpError;
832
+ /** Update a PrivateLink endpoint Updates a PrivateLink endpoint (name, privateDns). */
833
+ export const updatePrivateLinkEndpoint: API.OperationMethod<
834
+ UpdatePrivateLinkEndpointRequest,
835
+ PrivateLinkEndpoint,
836
+ UpdatePrivateLinkEndpointError,
837
+ VercelOpContext
838
+ > = /*@__PURE__*/ API.make(() => ({
839
+ input: UpdatePrivateLinkEndpointRequest,
840
+ output: PrivateLinkEndpoint,
841
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
842
+ protocol: VercelProtocol,
843
+ retry: Retry.Retry,
844
+ }));
845
+
846
+ export type UpdateStaticIpsError =
847
+ | BadRequest
848
+ | PaymentRequired
849
+ | Forbidden
850
+ | NotFound
851
+ | Conflict
852
+ | VercelOpError;
853
+ /** Configures Static IPs for a project Allows configuring Static IPs for a project */
854
+ export const updateStaticIps: API.OperationMethod<
855
+ UpdateStaticIpsRequest,
856
+ UpdateStaticIpsResponse,
857
+ UpdateStaticIpsError,
858
+ VercelOpContext
859
+ > = /*@__PURE__*/ API.make(() => ({
860
+ input: UpdateStaticIpsRequest,
861
+ output: UpdateStaticIpsResponse,
862
+ errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
863
+ protocol: VercelProtocol,
864
+ retry: Retry.Retry,
865
+ }));