@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.
- package/lib/credentials.d.ts +21 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +40 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +80 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +69 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +47 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/access_groups.d.ts +459 -0
- package/lib/services/access_groups.d.ts.map +1 -0
- package/lib/services/access_groups.js +453 -0
- package/lib/services/access_groups.js.map +1 -0
- package/lib/services/ai_gateway.d.ts +124 -0
- package/lib/services/ai_gateway.d.ts.map +1 -0
- package/lib/services/ai_gateway.js +126 -0
- package/lib/services/ai_gateway.js.map +1 -0
- package/lib/services/aliases.d.ts +591 -0
- package/lib/services/aliases.d.ts.map +1 -0
- package/lib/services/aliases.js +508 -0
- package/lib/services/aliases.js.map +1 -0
- package/lib/services/artifacts.d.ts +228 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +216 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/authentication.d.ts +373 -0
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +310 -0
- package/lib/services/authentication.js.map +1 -0
- package/lib/services/billing.d.ts +792 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +616 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bulk_redirects.d.ts +308 -0
- package/lib/services/bulk_redirects.d.ts.map +1 -0
- package/lib/services/bulk_redirects.js +306 -0
- package/lib/services/bulk_redirects.js.map +1 -0
- package/lib/services/certs.d.ts +171 -0
- package/lib/services/certs.d.ts.map +1 -0
- package/lib/services/certs.js +165 -0
- package/lib/services/certs.js.map +1 -0
- package/lib/services/checks_v2.d.ts +1162 -0
- package/lib/services/checks_v2.d.ts.map +1 -0
- package/lib/services/checks_v2.js +1252 -0
- package/lib/services/checks_v2.js.map +1 -0
- package/lib/services/connect.d.ts +1034 -0
- package/lib/services/connect.d.ts.map +1 -0
- package/lib/services/connect.js +993 -0
- package/lib/services/connect.js.map +1 -0
- package/lib/services/deployments.d.ts +9111 -0
- package/lib/services/deployments.d.ts.map +1 -0
- package/lib/services/deployments.js +8664 -0
- package/lib/services/deployments.js.map +1 -0
- package/lib/services/dns.d.ts +279 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +282 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/domains.d.ts +539 -0
- package/lib/services/domains.d.ts.map +1 -0
- package/lib/services/domains.js +464 -0
- package/lib/services/domains.js.map +1 -0
- package/lib/services/domains_registrar.d.ts +798 -0
- package/lib/services/domains_registrar.d.ts.map +1 -0
- package/lib/services/domains_registrar.js +968 -0
- package/lib/services/domains_registrar.js.map +1 -0
- package/lib/services/drains.d.ts +2263 -0
- package/lib/services/drains.d.ts.map +1 -0
- package/lib/services/drains.js +2406 -0
- package/lib/services/drains.js.map +1 -0
- package/lib/services/edge_cache.d.ts +125 -0
- package/lib/services/edge_cache.d.ts.map +1 -0
- package/lib/services/edge_cache.js +140 -0
- package/lib/services/edge_cache.js.map +1 -0
- package/lib/services/environment.d.ts +1020 -0
- package/lib/services/environment.d.ts.map +1 -0
- package/lib/services/environment.js +842 -0
- package/lib/services/environment.js.map +1 -0
- package/lib/services/feature_flags.d.ts +3109 -0
- package/lib/services/feature_flags.d.ts.map +1 -0
- package/lib/services/feature_flags.js +3074 -0
- package/lib/services/feature_flags.js.map +1 -0
- package/lib/services/global_config.d.ts +618 -0
- package/lib/services/global_config.d.ts.map +1 -0
- package/lib/services/global_config.js +716 -0
- package/lib/services/global_config.js.map +1 -0
- package/lib/services/index.d.ts +39 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +40 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/integrations.d.ts +2987 -0
- package/lib/services/integrations.d.ts.map +1 -0
- package/lib/services/integrations.js +2903 -0
- package/lib/services/integrations.js.map +1 -0
- package/lib/services/log_drains.d.ts +848 -0
- package/lib/services/log_drains.d.ts.map +1 -0
- package/lib/services/log_drains.js +866 -0
- package/lib/services/log_drains.js.map +1 -0
- package/lib/services/logs.d.ts +40 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +43 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/marketplace.d.ts +991 -0
- package/lib/services/marketplace.d.ts.map +1 -0
- package/lib/services/marketplace.js +1044 -0
- package/lib/services/marketplace.js.map +1 -0
- package/lib/services/microfrontends.d.ts +3210 -0
- package/lib/services/microfrontends.d.ts.map +1 -0
- package/lib/services/microfrontends.js +3300 -0
- package/lib/services/microfrontends.js.map +1 -0
- package/lib/services/networking.d.ts +239 -0
- package/lib/services/networking.d.ts.map +1 -0
- package/lib/services/networking.js +224 -0
- package/lib/services/networking.js.map +1 -0
- package/lib/services/observability.d.ts +168 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +191 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/project_members.d.ts +142 -0
- package/lib/services/project_members.d.ts.map +1 -0
- package/lib/services/project_members.js +139 -0
- package/lib/services/project_members.js.map +1 -0
- package/lib/services/project_routes.d.ts +1990 -0
- package/lib/services/project_routes.d.ts.map +1 -0
- package/lib/services/project_routes.js +2026 -0
- package/lib/services/project_routes.js.map +1 -0
- package/lib/services/projects.d.ts +23449 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +23570 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/rolling_release.d.ts +764 -0
- package/lib/services/rolling_release.d.ts.map +1 -0
- package/lib/services/rolling_release.js +630 -0
- package/lib/services/rolling_release.js.map +1 -0
- package/lib/services/sandboxes.d.ts +2183 -0
- package/lib/services/sandboxes.d.ts.map +1 -0
- package/lib/services/sandboxes.js +1756 -0
- package/lib/services/sandboxes.js.map +1 -0
- package/lib/services/security.d.ts +3932 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/security.js +4411 -0
- package/lib/services/security.js.map +1 -0
- package/lib/services/storage.d.ts +251 -0
- package/lib/services/storage.d.ts.map +1 -0
- package/lib/services/storage.js +270 -0
- package/lib/services/storage.js.map +1 -0
- package/lib/services/teams.d.ts +1577 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +1359 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/user.d.ts +7972 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +7093 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vcr.d.ts +793 -0
- package/lib/services/vcr.d.ts.map +1 -0
- package/lib/services/vcr.js +882 -0
- package/lib/services/vcr.js.map +1 -0
- package/lib/services/web_analytics.d.ts +694 -0
- package/lib/services/web_analytics.d.ts.map +1 -0
- package/lib/services/web_analytics.js +695 -0
- package/lib/services/web_analytics.js.map +1 -0
- package/lib/services/webhooks.d.ts +207 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +171 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -7
- package/src/credentials.ts +70 -0
- package/src/errors.ts +93 -0
- package/src/index.ts +18 -0
- package/src/protocol.ts +98 -0
- package/src/retry.ts +78 -0
- package/src/services/access_groups.ts +1165 -0
- package/src/services/ai_gateway.ts +272 -0
- package/src/services/aliases.ts +1323 -0
- package/src/services/artifacts.ts +542 -0
- package/src/services/authentication.ts +829 -0
- package/src/services/billing.ts +1776 -0
- package/src/services/bulk_redirects.ts +748 -0
- package/src/services/certs.ts +377 -0
- package/src/services/checks_v2.ts +3136 -0
- package/src/services/connect.ts +2607 -0
- package/src/services/deployments.ts +23682 -0
- package/src/services/dns.ts +718 -0
- package/src/services/domains.ts +1209 -0
- package/src/services/domains_registrar.ts +2290 -0
- package/src/services/drains.ts +5989 -0
- package/src/services/edge_cache.ts +303 -0
- package/src/services/environment.ts +2388 -0
- package/src/services/feature_flags.ts +8302 -0
- package/src/services/global_config.ts +1668 -0
- package/src/services/index.ts +39 -0
- package/src/services/integrations.ts +8846 -0
- package/src/services/log_drains.ts +2413 -0
- package/src/services/logs.ts +78 -0
- package/src/services/marketplace.ts +2626 -0
- package/src/services/microfrontends.ts +9650 -0
- package/src/services/networking.ts +530 -0
- package/src/services/observability.ts +436 -0
- package/src/services/project_members.ts +328 -0
- package/src/services/project_routes.ts +5259 -0
- package/src/services/projects.ts +67377 -0
- package/src/services/rolling_release.ts +1869 -0
- package/src/services/sandboxes.ts +5259 -0
- package/src/services/security.ts +12408 -0
- package/src/services/storage.ts +849 -0
- package/src/services/teams.ts +3995 -0
- package/src/services/user.ts +21687 -0
- package/src/services/vcr.ts +2165 -0
- package/src/services/web_analytics.ts +1570 -0
- package/src/services/webhooks.ts +1073 -0
- package/src/traits.ts +44 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,530 @@
|
|
|
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 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 = /*@__PURE__*/ 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
|
+
/** The single contiguous CIDR block from which all egress (NAT gateway) IP addresses are allocated. Present only for networks created with the egress CIDR block feature enabled. Customers can allowlist this range instead of individual egress IPs so it keeps working when AZs are added. */
|
|
162
|
+
egressCidrBlock?: string;
|
|
163
|
+
/** Metadata about any AWS Route53 Hosted Zones associated with the Network. */
|
|
164
|
+
hostedZones?: NetworkHostedZones;
|
|
165
|
+
/** The unique identifier of the Network. */
|
|
166
|
+
id: string;
|
|
167
|
+
/** The name of the network. */
|
|
168
|
+
name: string;
|
|
169
|
+
/** Metadata about any AWS Route53 Hosted Zones associated with the Network. */
|
|
170
|
+
peeringConnections?: NetworkHostedZones;
|
|
171
|
+
/** Metadata about any projects associated with the Network. */
|
|
172
|
+
projects?: NetworkProjects;
|
|
173
|
+
/** The Vercel region in which the Network exists. */
|
|
174
|
+
region?: string;
|
|
175
|
+
/** The status of the Network. */
|
|
176
|
+
status: NetworkStatus;
|
|
177
|
+
/** The unique identifier of the Team that owns the Network. */
|
|
178
|
+
teamId: string;
|
|
179
|
+
/** The ID of the VPC which hosts the network. */
|
|
180
|
+
vpcId?: string;
|
|
181
|
+
}
|
|
182
|
+
export const Network = /*@__PURE__*/ S.suspend(() =>
|
|
183
|
+
S.Struct({
|
|
184
|
+
awsAccountId: S.String,
|
|
185
|
+
awsAvailabilityZoneIds: S.optional(NetworkAwsAvailabilityZoneIdsList),
|
|
186
|
+
awsRegion: S.String,
|
|
187
|
+
cidr: S.String,
|
|
188
|
+
createdAt: S.Number,
|
|
189
|
+
egressIpAddresses: S.optional(NetworkEgressIpAddressesList),
|
|
190
|
+
egressCidrBlock: S.optional(S.String),
|
|
191
|
+
hostedZones: S.optional(NetworkHostedZones),
|
|
192
|
+
id: S.String,
|
|
193
|
+
name: S.String,
|
|
194
|
+
peeringConnections: S.optional(NetworkHostedZones),
|
|
195
|
+
projects: S.optional(NetworkProjects),
|
|
196
|
+
region: S.optional(S.String),
|
|
197
|
+
status: NetworkStatus,
|
|
198
|
+
teamId: S.String,
|
|
199
|
+
vpcId: S.optional(S.String),
|
|
200
|
+
}),
|
|
201
|
+
).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
|
|
202
|
+
|
|
203
|
+
export interface DeleteNetworkRequest {
|
|
204
|
+
/** The ID of the network to delete */
|
|
205
|
+
networkId: string;
|
|
206
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
207
|
+
teamId?: string;
|
|
208
|
+
/** The Team slug to perform the request on behalf of. */
|
|
209
|
+
slug?: string;
|
|
210
|
+
}
|
|
211
|
+
export const DeleteNetworkRequest = /*@__PURE__*/ S.suspend(() =>
|
|
212
|
+
S.Struct({
|
|
213
|
+
networkId: S.String.pipe(T.Label()),
|
|
214
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
215
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
216
|
+
}).pipe(
|
|
217
|
+
T.Http({
|
|
218
|
+
method: "DELETE",
|
|
219
|
+
uri: "/v1/connect/networks/{networkId}",
|
|
220
|
+
code: 200,
|
|
221
|
+
}),
|
|
222
|
+
),
|
|
223
|
+
).annotate({
|
|
224
|
+
identifier: "DeleteNetworkRequest",
|
|
225
|
+
}) as any as S.Schema<DeleteNetworkRequest>;
|
|
226
|
+
|
|
227
|
+
export interface DeleteNetworkResponse {}
|
|
228
|
+
export const DeleteNetworkResponse = /*@__PURE__*/ S.suspend(() =>
|
|
229
|
+
S.Struct({}),
|
|
230
|
+
).annotate({
|
|
231
|
+
identifier: "DeleteNetworkResponse",
|
|
232
|
+
}) as any as S.Schema<DeleteNetworkResponse>;
|
|
233
|
+
|
|
234
|
+
export interface ListNetworksRequest {
|
|
235
|
+
/** Whether to include Hosted Zones in the response */
|
|
236
|
+
includeHostedZones?: boolean;
|
|
237
|
+
/** Whether to include VPC Peering connections in the response */
|
|
238
|
+
includePeeringConnections?: boolean;
|
|
239
|
+
/** Whether to include projects in the response */
|
|
240
|
+
includeProjects?: boolean;
|
|
241
|
+
/** The query to use as a filter for returned networks */
|
|
242
|
+
search?: string;
|
|
243
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
244
|
+
teamId?: string;
|
|
245
|
+
/** The Team slug to perform the request on behalf of. */
|
|
246
|
+
slug?: string;
|
|
247
|
+
}
|
|
248
|
+
export const ListNetworksRequest = /*@__PURE__*/ S.suspend(() =>
|
|
249
|
+
S.Struct({
|
|
250
|
+
includeHostedZones: S.optional(S.Boolean.pipe(T.Query())),
|
|
251
|
+
includePeeringConnections: S.optional(S.Boolean.pipe(T.Query())),
|
|
252
|
+
includeProjects: S.optional(S.Boolean.pipe(T.Query())),
|
|
253
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
254
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
255
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
256
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/connect/networks", code: 200 })),
|
|
257
|
+
).annotate({
|
|
258
|
+
identifier: "ListNetworksRequest",
|
|
259
|
+
}) as any as S.Schema<ListNetworksRequest>;
|
|
260
|
+
|
|
261
|
+
export type ListNetworksResponseBodyList = Array<Network>;
|
|
262
|
+
export const ListNetworksResponseBodyList = /*@__PURE__*/ S.Array(
|
|
263
|
+
Network,
|
|
264
|
+
) as any as S.Schema<ListNetworksResponseBodyList>;
|
|
265
|
+
|
|
266
|
+
export type ListNetworksResponse = ListNetworksResponseBodyList;
|
|
267
|
+
export const ListNetworksResponse = /*@__PURE__*/ S.suspend(() =>
|
|
268
|
+
ListNetworksResponseBodyList.pipe(T.RawResponseRoot()),
|
|
269
|
+
).annotate({
|
|
270
|
+
identifier: "ListNetworksResponse",
|
|
271
|
+
}) as any as S.Schema<ListNetworksResponse>;
|
|
272
|
+
|
|
273
|
+
export interface ReadNetworkRequest {
|
|
274
|
+
/** The unique identifier of the Secure Compute network */
|
|
275
|
+
networkId: string;
|
|
276
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
277
|
+
teamId?: string;
|
|
278
|
+
/** The Team slug to perform the request on behalf of. */
|
|
279
|
+
slug?: string;
|
|
280
|
+
}
|
|
281
|
+
export const ReadNetworkRequest = /*@__PURE__*/ S.suspend(() =>
|
|
282
|
+
S.Struct({
|
|
283
|
+
networkId: S.String.pipe(T.Label()),
|
|
284
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
285
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
286
|
+
}).pipe(
|
|
287
|
+
T.Http({
|
|
288
|
+
method: "GET",
|
|
289
|
+
uri: "/v1/connect/networks/{networkId}",
|
|
290
|
+
code: 200,
|
|
291
|
+
}),
|
|
292
|
+
),
|
|
293
|
+
).annotate({
|
|
294
|
+
identifier: "ReadNetworkRequest",
|
|
295
|
+
}) as any as S.Schema<ReadNetworkRequest>;
|
|
296
|
+
|
|
297
|
+
export interface UpdateNetworkRequest {
|
|
298
|
+
/** The unique identifier of the Secure Compute network */
|
|
299
|
+
networkId: string;
|
|
300
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
301
|
+
teamId?: string;
|
|
302
|
+
/** The Team slug to perform the request on behalf of. */
|
|
303
|
+
slug?: string;
|
|
304
|
+
/** The name of the Secure Compute network */
|
|
305
|
+
name: string;
|
|
306
|
+
}
|
|
307
|
+
export const UpdateNetworkRequest = /*@__PURE__*/ S.suspend(() =>
|
|
308
|
+
S.Struct({
|
|
309
|
+
networkId: S.String.pipe(T.Label()),
|
|
310
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
311
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
312
|
+
name: S.String,
|
|
313
|
+
}).pipe(
|
|
314
|
+
T.Http({
|
|
315
|
+
method: "PATCH",
|
|
316
|
+
uri: "/v1/connect/networks/{networkId}",
|
|
317
|
+
code: 200,
|
|
318
|
+
}),
|
|
319
|
+
),
|
|
320
|
+
).annotate({
|
|
321
|
+
identifier: "UpdateNetworkRequest",
|
|
322
|
+
}) as any as S.Schema<UpdateNetworkRequest>;
|
|
323
|
+
|
|
324
|
+
export type UpdateStaticIpsRequestRegionsList = Array<string>;
|
|
325
|
+
export const UpdateStaticIpsRequestRegionsList = /*@__PURE__*/ S.Array(
|
|
326
|
+
S.String,
|
|
327
|
+
) as any as S.Schema<UpdateStaticIpsRequestRegionsList>;
|
|
328
|
+
|
|
329
|
+
export interface UpdateStaticIpsRequest {
|
|
330
|
+
/** The unique project identifier or the project name */
|
|
331
|
+
idOrName: string;
|
|
332
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
333
|
+
teamId?: string;
|
|
334
|
+
/** The Team slug to perform the request on behalf of. */
|
|
335
|
+
slug?: string;
|
|
336
|
+
/** Whether to use Static IPs for builds. */
|
|
337
|
+
builds?: boolean;
|
|
338
|
+
regions?: UpdateStaticIpsRequestRegionsList;
|
|
339
|
+
}
|
|
340
|
+
export const UpdateStaticIpsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
341
|
+
S.Struct({
|
|
342
|
+
idOrName: S.String.pipe(T.Label()),
|
|
343
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
344
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
345
|
+
builds: S.optional(S.Boolean),
|
|
346
|
+
regions: S.optional(UpdateStaticIpsRequestRegionsList),
|
|
347
|
+
}).pipe(
|
|
348
|
+
T.Http({
|
|
349
|
+
method: "PATCH",
|
|
350
|
+
uri: "/v1/projects/{idOrName}/shared-connect-links",
|
|
351
|
+
code: 200,
|
|
352
|
+
}),
|
|
353
|
+
),
|
|
354
|
+
).annotate({
|
|
355
|
+
identifier: "UpdateStaticIpsRequest",
|
|
356
|
+
}) as any as S.Schema<UpdateStaticIpsRequest>;
|
|
357
|
+
|
|
358
|
+
export type UpdateStaticIpsResponseBodyItemEnvIdCase1 =
|
|
359
|
+
| "preview"
|
|
360
|
+
| "production";
|
|
361
|
+
export const UpdateStaticIpsResponseBodyItemEnvIdCase1 = /*@__PURE__*/ S.String;
|
|
362
|
+
|
|
363
|
+
export type UpdateStaticIpsResponseBodyItemEnvId =
|
|
364
|
+
| string
|
|
365
|
+
| UpdateStaticIpsResponseBodyItemEnvIdCase1;
|
|
366
|
+
export const UpdateStaticIpsResponseBodyItemEnvId =
|
|
367
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateStaticIpsResponseBodyItemEnvId>;
|
|
368
|
+
|
|
369
|
+
export type UpdateStaticIpsResponseBodyItemAwsSubnetIdsList = Array<string>;
|
|
370
|
+
export const UpdateStaticIpsResponseBodyItemAwsSubnetIdsList =
|
|
371
|
+
/*@__PURE__*/ S.Array(
|
|
372
|
+
S.String,
|
|
373
|
+
) as any as S.Schema<UpdateStaticIpsResponseBodyItemAwsSubnetIdsList>;
|
|
374
|
+
|
|
375
|
+
export interface UpdateStaticIpsResponseBodyItemAws {
|
|
376
|
+
subnetIds: UpdateStaticIpsResponseBodyItemAwsSubnetIdsList;
|
|
377
|
+
securityGroupId?: string;
|
|
378
|
+
}
|
|
379
|
+
export const UpdateStaticIpsResponseBodyItemAws = /*@__PURE__*/ S.suspend(() =>
|
|
380
|
+
S.Struct({
|
|
381
|
+
subnetIds: UpdateStaticIpsResponseBodyItemAwsSubnetIdsList,
|
|
382
|
+
securityGroupId: S.optional(S.String),
|
|
383
|
+
}),
|
|
384
|
+
).annotate({
|
|
385
|
+
identifier: "UpdateStaticIpsResponseBodyItemAws",
|
|
386
|
+
}) as any as S.Schema<UpdateStaticIpsResponseBodyItemAws>;
|
|
387
|
+
|
|
388
|
+
export interface UpdateStaticIpsResponseBodyItem {
|
|
389
|
+
envId: UpdateStaticIpsResponseBodyItemEnvId;
|
|
390
|
+
connectConfigurationId: string;
|
|
391
|
+
dc?: string;
|
|
392
|
+
passive: boolean;
|
|
393
|
+
buildsEnabled: boolean;
|
|
394
|
+
aws?: UpdateStaticIpsResponseBodyItemAws;
|
|
395
|
+
createdAt: number;
|
|
396
|
+
updatedAt: number;
|
|
397
|
+
}
|
|
398
|
+
export const UpdateStaticIpsResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
399
|
+
S.Struct({
|
|
400
|
+
envId: UpdateStaticIpsResponseBodyItemEnvId,
|
|
401
|
+
connectConfigurationId: S.String,
|
|
402
|
+
dc: S.optional(S.String),
|
|
403
|
+
passive: S.Boolean,
|
|
404
|
+
buildsEnabled: S.Boolean,
|
|
405
|
+
aws: S.optional(UpdateStaticIpsResponseBodyItemAws),
|
|
406
|
+
createdAt: S.Number,
|
|
407
|
+
updatedAt: S.Number,
|
|
408
|
+
}),
|
|
409
|
+
).annotate({
|
|
410
|
+
identifier: "UpdateStaticIpsResponseBodyItem",
|
|
411
|
+
}) as any as S.Schema<UpdateStaticIpsResponseBodyItem>;
|
|
412
|
+
|
|
413
|
+
export type UpdateStaticIpsResponseBodyList =
|
|
414
|
+
Array<UpdateStaticIpsResponseBodyItem>;
|
|
415
|
+
export const UpdateStaticIpsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
416
|
+
UpdateStaticIpsResponseBodyItem,
|
|
417
|
+
) as any as S.Schema<UpdateStaticIpsResponseBodyList>;
|
|
418
|
+
|
|
419
|
+
export type UpdateStaticIpsResponse = UpdateStaticIpsResponseBodyList;
|
|
420
|
+
export const UpdateStaticIpsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
421
|
+
UpdateStaticIpsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
422
|
+
).annotate({
|
|
423
|
+
identifier: "UpdateStaticIpsResponse",
|
|
424
|
+
}) as any as S.Schema<UpdateStaticIpsResponse>;
|
|
425
|
+
|
|
426
|
+
export type CreateNetworkError =
|
|
427
|
+
| BadRequest
|
|
428
|
+
| PaymentRequired
|
|
429
|
+
| Forbidden
|
|
430
|
+
| Conflict
|
|
431
|
+
| VercelOpError;
|
|
432
|
+
/** Create a Secure Compute network Allows to create a Secure Compute network. */
|
|
433
|
+
export const createNetwork: API.OperationMethod<
|
|
434
|
+
CreateNetworkRequest,
|
|
435
|
+
Network,
|
|
436
|
+
CreateNetworkError,
|
|
437
|
+
VercelOpContext
|
|
438
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
439
|
+
input: CreateNetworkRequest,
|
|
440
|
+
output: Network,
|
|
441
|
+
errors: [BadRequest, PaymentRequired, Forbidden, Conflict],
|
|
442
|
+
protocol: VercelProtocol,
|
|
443
|
+
retry: Retry.Retry,
|
|
444
|
+
}));
|
|
445
|
+
|
|
446
|
+
export type DeleteNetworkError =
|
|
447
|
+
| BadRequest
|
|
448
|
+
| PaymentRequired
|
|
449
|
+
| Forbidden
|
|
450
|
+
| Conflict
|
|
451
|
+
| VercelOpError;
|
|
452
|
+
/** Delete a Secure Compute network Allows to delete a Secure Compute network. */
|
|
453
|
+
export const deleteNetwork: API.OperationMethod<
|
|
454
|
+
DeleteNetworkRequest,
|
|
455
|
+
DeleteNetworkResponse,
|
|
456
|
+
DeleteNetworkError,
|
|
457
|
+
VercelOpContext
|
|
458
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
459
|
+
input: DeleteNetworkRequest,
|
|
460
|
+
output: DeleteNetworkResponse,
|
|
461
|
+
errors: [BadRequest, PaymentRequired, Forbidden, Conflict],
|
|
462
|
+
protocol: VercelProtocol,
|
|
463
|
+
retry: Retry.Retry,
|
|
464
|
+
}));
|
|
465
|
+
|
|
466
|
+
export type ListNetworksError = BadRequest | Forbidden | VercelOpError;
|
|
467
|
+
/** List Secure Compute networks Allows to list Secure Compute networks. */
|
|
468
|
+
export const listNetworks: API.OperationMethod<
|
|
469
|
+
ListNetworksRequest,
|
|
470
|
+
ListNetworksResponse,
|
|
471
|
+
ListNetworksError,
|
|
472
|
+
VercelOpContext
|
|
473
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
474
|
+
input: ListNetworksRequest,
|
|
475
|
+
output: ListNetworksResponse,
|
|
476
|
+
errors: [BadRequest, Forbidden],
|
|
477
|
+
protocol: VercelProtocol,
|
|
478
|
+
retry: Retry.Retry,
|
|
479
|
+
}));
|
|
480
|
+
|
|
481
|
+
export type ReadNetworkError = BadRequest | Forbidden | VercelOpError;
|
|
482
|
+
/** Read a Secure Compute network Allows to read a Secure Compute network. */
|
|
483
|
+
export const readNetwork: API.OperationMethod<
|
|
484
|
+
ReadNetworkRequest,
|
|
485
|
+
Network,
|
|
486
|
+
ReadNetworkError,
|
|
487
|
+
VercelOpContext
|
|
488
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
489
|
+
input: ReadNetworkRequest,
|
|
490
|
+
output: Network,
|
|
491
|
+
errors: [BadRequest, Forbidden],
|
|
492
|
+
protocol: VercelProtocol,
|
|
493
|
+
retry: Retry.Retry,
|
|
494
|
+
}));
|
|
495
|
+
|
|
496
|
+
export type UpdateNetworkError = BadRequest | Forbidden | VercelOpError;
|
|
497
|
+
/** Update a Secure Compute network Allows to update a Secure Compute network. */
|
|
498
|
+
export const updateNetwork: API.OperationMethod<
|
|
499
|
+
UpdateNetworkRequest,
|
|
500
|
+
Network,
|
|
501
|
+
UpdateNetworkError,
|
|
502
|
+
VercelOpContext
|
|
503
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
504
|
+
input: UpdateNetworkRequest,
|
|
505
|
+
output: Network,
|
|
506
|
+
errors: [BadRequest, Forbidden],
|
|
507
|
+
protocol: VercelProtocol,
|
|
508
|
+
retry: Retry.Retry,
|
|
509
|
+
}));
|
|
510
|
+
|
|
511
|
+
export type UpdateStaticIpsError =
|
|
512
|
+
| BadRequest
|
|
513
|
+
| PaymentRequired
|
|
514
|
+
| Forbidden
|
|
515
|
+
| NotFound
|
|
516
|
+
| Conflict
|
|
517
|
+
| VercelOpError;
|
|
518
|
+
/** Configures Static IPs for a project Allows configuring Static IPs for a project */
|
|
519
|
+
export const updateStaticIps: API.OperationMethod<
|
|
520
|
+
UpdateStaticIpsRequest,
|
|
521
|
+
UpdateStaticIpsResponse,
|
|
522
|
+
UpdateStaticIpsError,
|
|
523
|
+
VercelOpContext
|
|
524
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
525
|
+
input: UpdateStaticIpsRequest,
|
|
526
|
+
output: UpdateStaticIpsResponse,
|
|
527
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
|
|
528
|
+
protocol: VercelProtocol,
|
|
529
|
+
retry: Retry.Retry,
|
|
530
|
+
}));
|