@distilled.cloud/vercel 1.0.0-rc.7 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/services/access_groups.d.ts +1 -1
- package/lib/services/access_groups.d.ts.map +1 -1
- package/lib/services/access_groups.js +1 -1
- package/lib/services/access_groups.js.map +1 -1
- package/lib/services/ai_gateway.js +1 -1
- package/lib/services/ai_gateway.js.map +1 -1
- package/lib/services/aliases.d.ts +3 -3
- package/lib/services/aliases.d.ts.map +1 -1
- package/lib/services/aliases.js +4 -4
- package/lib/services/aliases.js.map +1 -1
- package/lib/services/api_ai_gateway.d.ts +275 -0
- package/lib/services/api_ai_gateway.d.ts.map +1 -0
- package/lib/services/api_ai_gateway.js +229 -0
- package/lib/services/api_ai_gateway.js.map +1 -0
- package/lib/services/artifacts.d.ts +1 -1
- package/lib/services/artifacts.d.ts.map +1 -1
- package/lib/services/artifacts.js +12 -12
- package/lib/services/artifacts.js.map +1 -1
- package/lib/services/authentication.js +1 -1
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/billing.d.ts +145 -7
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +121 -5
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bulk_redirects.d.ts +4 -4
- package/lib/services/bulk_redirects.d.ts.map +1 -1
- package/lib/services/bulk_redirects.js +4 -4
- package/lib/services/bulk_redirects.js.map +1 -1
- package/lib/services/certs.d.ts +9 -9
- package/lib/services/certs.d.ts.map +1 -1
- package/lib/services/certs.js +10 -12
- package/lib/services/certs.js.map +1 -1
- package/lib/services/checks_v2.d.ts +5 -0
- package/lib/services/checks_v2.d.ts.map +1 -1
- package/lib/services/checks_v2.js +6 -1
- package/lib/services/checks_v2.js.map +1 -1
- package/lib/services/connect.d.ts +1721 -527
- package/lib/services/connect.d.ts.map +1 -1
- package/lib/services/connect.js +1034 -414
- package/lib/services/connect.js.map +1 -1
- package/lib/services/deployments.d.ts +338 -30
- package/lib/services/deployments.d.ts.map +1 -1
- package/lib/services/deployments.js +335 -11
- package/lib/services/deployments.js.map +1 -1
- package/lib/services/dns.d.ts +13 -13
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +13 -14
- package/lib/services/dns.js.map +1 -1
- package/lib/services/domains.d.ts +55 -27
- package/lib/services/domains.d.ts.map +1 -1
- package/lib/services/domains.js +38 -25
- package/lib/services/domains.js.map +1 -1
- package/lib/services/domains_registrar.d.ts.map +1 -1
- package/lib/services/domains_registrar.js +1 -1
- package/lib/services/domains_registrar.js.map +1 -1
- package/lib/services/drains.d.ts +8 -8
- package/lib/services/drains.d.ts.map +1 -1
- package/lib/services/drains.js +1 -1
- package/lib/services/drains.js.map +1 -1
- package/lib/services/edge_cache.js +1 -1
- package/lib/services/edge_cache.js.map +1 -1
- package/lib/services/environment.d.ts +39 -39
- package/lib/services/environment.d.ts.map +1 -1
- package/lib/services/environment.js +35 -37
- package/lib/services/environment.js.map +1 -1
- package/lib/services/feature_flags.d.ts +93 -309
- package/lib/services/feature_flags.d.ts.map +1 -1
- package/lib/services/feature_flags.js +93 -303
- package/lib/services/feature_flags.js.map +1 -1
- package/lib/services/global_config.d.ts +40 -40
- package/lib/services/global_config.d.ts.map +1 -1
- package/lib/services/global_config.js +16 -14
- package/lib/services/global_config.js.map +1 -1
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/integrations.d.ts +44 -17
- package/lib/services/integrations.d.ts.map +1 -1
- package/lib/services/integrations.js +32 -7
- package/lib/services/integrations.js.map +1 -1
- package/lib/services/kms.d.ts +1095 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +982 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/log_drains.d.ts +4 -4
- package/lib/services/log_drains.d.ts.map +1 -1
- package/lib/services/log_drains.js +1 -1
- package/lib/services/log_drains.js.map +1 -1
- package/lib/services/logs.js +1 -1
- package/lib/services/logs.js.map +1 -1
- package/lib/services/marketplace.d.ts +95 -33
- package/lib/services/marketplace.d.ts.map +1 -1
- package/lib/services/marketplace.js +123 -31
- package/lib/services/marketplace.js.map +1 -1
- package/lib/services/microfrontends.d.ts +290 -250
- package/lib/services/microfrontends.d.ts.map +1 -1
- package/lib/services/microfrontends.js +281 -244
- package/lib/services/microfrontends.js.map +1 -1
- package/lib/services/misc.d.ts +192 -0
- package/lib/services/misc.d.ts.map +1 -0
- package/lib/services/misc.js +125 -0
- package/lib/services/misc.js.map +1 -0
- package/lib/services/networking.d.ts +123 -2
- package/lib/services/networking.d.ts.map +1 -1
- package/lib/services/networking.js +132 -2
- package/lib/services/networking.js.map +1 -1
- package/lib/services/observability.js +1 -1
- package/lib/services/observability.js.map +1 -1
- package/lib/services/project_members.js +1 -1
- package/lib/services/project_members.js.map +1 -1
- package/lib/services/project_routes.d.ts.map +1 -1
- package/lib/services/project_routes.js +1 -1
- package/lib/services/project_routes.js.map +1 -1
- package/lib/services/projects.d.ts +356 -116
- package/lib/services/projects.d.ts.map +1 -1
- package/lib/services/projects.js +260 -64
- package/lib/services/projects.js.map +1 -1
- package/lib/services/rolling_release.d.ts +2 -2
- package/lib/services/rolling_release.d.ts.map +1 -1
- package/lib/services/rolling_release.js +1 -1
- package/lib/services/rolling_release.js.map +1 -1
- package/lib/services/sandboxes.d.ts +1007 -410
- package/lib/services/sandboxes.d.ts.map +1 -1
- package/lib/services/sandboxes.js +732 -293
- package/lib/services/sandboxes.js.map +1 -1
- package/lib/services/security.d.ts +590 -275
- package/lib/services/security.d.ts.map +1 -1
- package/lib/services/security.js +562 -208
- package/lib/services/security.js.map +1 -1
- package/lib/services/storage.d.ts +69 -69
- package/lib/services/storage.d.ts.map +1 -1
- package/lib/services/storage.js +59 -59
- package/lib/services/storage.js.map +1 -1
- package/lib/services/teams.d.ts +351 -328
- package/lib/services/teams.d.ts.map +1 -1
- package/lib/services/teams.js +299 -284
- package/lib/services/teams.js.map +1 -1
- package/lib/services/user.d.ts +4237 -3650
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +3426 -2935
- package/lib/services/user.js.map +1 -1
- package/lib/services/vcr.d.ts +80 -122
- package/lib/services/vcr.d.ts.map +1 -1
- package/lib/services/vcr.js +89 -144
- package/lib/services/vcr.js.map +1 -1
- package/lib/services/web_analytics.d.ts +42 -10
- package/lib/services/web_analytics.d.ts.map +1 -1
- package/lib/services/web_analytics.js +39 -9
- package/lib/services/web_analytics.js.map +1 -1
- package/lib/services/webhooks.d.ts +13 -1
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +11 -1
- package/lib/services/webhooks.js.map +1 -1
- package/package.json +6 -5
- package/src/services/access_groups.ts +5 -2
- package/src/services/ai_gateway.ts +1 -1
- package/src/services/aliases.ts +9 -8
- package/src/services/api_ai_gateway.ts +607 -0
- package/src/services/artifacts.ts +13 -13
- package/src/services/authentication.ts +1 -1
- package/src/services/billing.ts +358 -26
- package/src/services/bulk_redirects.ts +10 -10
- package/src/services/certs.ts +20 -26
- package/src/services/checks_v2.ts +11 -1
- package/src/services/connect.ts +3330 -1121
- package/src/services/deployments.ts +1513 -429
- package/src/services/dns.ts +26 -27
- package/src/services/domains.ts +119 -63
- package/src/services/domains_registrar.ts +37 -37
- package/src/services/drains.ts +35 -18
- package/src/services/edge_cache.ts +1 -1
- package/src/services/environment.ts +99 -95
- package/src/services/feature_flags.ts +332 -884
- package/src/services/global_config.ts +59 -57
- package/src/services/index.ts +3 -0
- package/src/services/integrations.ts +870 -668
- package/src/services/kms.ts +2631 -0
- package/src/services/log_drains.ts +73 -41
- package/src/services/logs.ts +1 -1
- package/src/services/marketplace.ts +324 -96
- package/src/services/microfrontends.ts +1582 -1306
- package/src/services/misc.ts +364 -0
- package/src/services/networking.ts +339 -4
- package/src/services/observability.ts +1 -1
- package/src/services/project_members.ts +1 -1
- package/src/services/project_routes.ts +25 -16
- package/src/services/projects.ts +1987 -691
- package/src/services/rolling_release.ts +100 -96
- package/src/services/sandboxes.ts +3013 -1268
- package/src/services/security.ts +3433 -1845
- package/src/services/storage.ts +145 -141
- package/src/services/teams.ts +1061 -986
- package/src/services/user.ts +8490 -6901
- package/src/services/vcr.ts +349 -443
- package/src/services/web_analytics.ts +83 -13
- package/src/services/webhooks.ts +32 -1
package/src/services/dns.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
|
@@ -95,12 +95,12 @@ export const CreateRecordRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
95
95
|
}) as any as S.Schema<CreateRecordRequest>;
|
|
96
96
|
|
|
97
97
|
export interface CreateRecordResponseBodyCase0 {
|
|
98
|
-
uid
|
|
98
|
+
uid?: string;
|
|
99
99
|
updated: number;
|
|
100
100
|
}
|
|
101
101
|
export const CreateRecordResponseBodyCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
102
102
|
S.Struct({
|
|
103
|
-
uid: S.String,
|
|
103
|
+
uid: S.optional(S.String),
|
|
104
104
|
updated: S.Number,
|
|
105
105
|
}),
|
|
106
106
|
).annotate({
|
|
@@ -132,21 +132,21 @@ export const CreateRecordResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
132
132
|
identifier: "CreateRecordResponse",
|
|
133
133
|
}) as any as S.Schema<CreateRecordResponse>;
|
|
134
134
|
|
|
135
|
-
export interface
|
|
135
|
+
export interface GetDomainsRecordRequest {
|
|
136
136
|
/** The unique ID of the DNS record */
|
|
137
137
|
recordId: string;
|
|
138
138
|
}
|
|
139
|
-
export const
|
|
139
|
+
export const GetDomainsRecordRequest = /*@__PURE__*/ S.suspend(() =>
|
|
140
140
|
S.Struct({
|
|
141
141
|
recordId: S.String.pipe(T.Label()),
|
|
142
142
|
}).pipe(
|
|
143
143
|
T.Http({ method: "GET", uri: "/domains/records/{recordId}", code: 200 }),
|
|
144
144
|
),
|
|
145
145
|
).annotate({
|
|
146
|
-
identifier: "
|
|
147
|
-
}) as any as S.Schema<
|
|
146
|
+
identifier: "GetDomainsRecordRequest",
|
|
147
|
+
}) as any as S.Schema<GetDomainsRecordRequest>;
|
|
148
148
|
|
|
149
|
-
export type
|
|
149
|
+
export type GetDomainsRecordResponseType =
|
|
150
150
|
| "A"
|
|
151
151
|
| "AAAA"
|
|
152
152
|
| "ALIAS"
|
|
@@ -157,9 +157,9 @@ export type GetDomainsRecordsByRecordIdResponseType =
|
|
|
157
157
|
| "NS"
|
|
158
158
|
| "SRV"
|
|
159
159
|
| "TXT";
|
|
160
|
-
export const
|
|
160
|
+
export const GetDomainsRecordResponseType = /*@__PURE__*/ S.String;
|
|
161
161
|
|
|
162
|
-
export type
|
|
162
|
+
export type GetDomainsRecordResponseRecordType =
|
|
163
163
|
| "A"
|
|
164
164
|
| "AAAA"
|
|
165
165
|
| "ALIAS"
|
|
@@ -170,11 +170,10 @@ export type GetDomainsRecordsByRecordIdResponseRecordType =
|
|
|
170
170
|
| "NS"
|
|
171
171
|
| "SRV"
|
|
172
172
|
| "TXT";
|
|
173
|
-
export const
|
|
174
|
-
/*@__PURE__*/ S.String;
|
|
173
|
+
export const GetDomainsRecordResponseRecordType = /*@__PURE__*/ S.String;
|
|
175
174
|
|
|
176
|
-
export interface
|
|
177
|
-
type:
|
|
175
|
+
export interface GetDomainsRecordResponse {
|
|
176
|
+
type: GetDomainsRecordResponseType;
|
|
178
177
|
id: string;
|
|
179
178
|
name: string;
|
|
180
179
|
value: string;
|
|
@@ -182,12 +181,12 @@ export interface GetDomainsRecordsByRecordIdResponse {
|
|
|
182
181
|
domain: string;
|
|
183
182
|
ttl?: number;
|
|
184
183
|
comment?: string;
|
|
185
|
-
recordType:
|
|
184
|
+
recordType: GetDomainsRecordResponseRecordType;
|
|
186
185
|
createdAt?: number | null;
|
|
187
186
|
}
|
|
188
|
-
export const
|
|
187
|
+
export const GetDomainsRecordResponse = /*@__PURE__*/ S.suspend(() =>
|
|
189
188
|
S.Struct({
|
|
190
|
-
type:
|
|
189
|
+
type: GetDomainsRecordResponseType,
|
|
191
190
|
id: S.String,
|
|
192
191
|
name: S.String,
|
|
193
192
|
value: S.String,
|
|
@@ -195,12 +194,12 @@ export const GetDomainsRecordsByRecordIdResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
195
194
|
domain: S.String,
|
|
196
195
|
ttl: S.optional(S.Number),
|
|
197
196
|
comment: S.optional(S.String),
|
|
198
|
-
recordType:
|
|
197
|
+
recordType: GetDomainsRecordResponseRecordType,
|
|
199
198
|
createdAt: S.optional(S.NullOr(S.Number)),
|
|
200
199
|
}),
|
|
201
200
|
).annotate({
|
|
202
|
-
identifier: "
|
|
203
|
-
}) as any as S.Schema<
|
|
201
|
+
identifier: "GetDomainsRecordResponse",
|
|
202
|
+
}) as any as S.Schema<GetDomainsRecordResponse>;
|
|
204
203
|
|
|
205
204
|
export interface GetRecordsRequest {
|
|
206
205
|
domain: string;
|
|
@@ -625,19 +624,19 @@ export const createRecord: API.OperationMethod<
|
|
|
625
624
|
retry: Retry.Retry,
|
|
626
625
|
}));
|
|
627
626
|
|
|
628
|
-
export type
|
|
627
|
+
export type GetDomainsRecordError =
|
|
629
628
|
| BadRequest
|
|
630
629
|
| Forbidden
|
|
631
630
|
| NotFound
|
|
632
631
|
| VercelOpError;
|
|
633
|
-
export const
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
632
|
+
export const getDomainsRecord: API.OperationMethod<
|
|
633
|
+
GetDomainsRecordRequest,
|
|
634
|
+
GetDomainsRecordResponse,
|
|
635
|
+
GetDomainsRecordError,
|
|
637
636
|
VercelOpContext
|
|
638
637
|
> = /*@__PURE__*/ API.make(() => ({
|
|
639
|
-
input:
|
|
640
|
-
output:
|
|
638
|
+
input: GetDomainsRecordRequest,
|
|
639
|
+
output: GetDomainsRecordResponse,
|
|
641
640
|
errors: [BadRequest, Forbidden, NotFound],
|
|
642
641
|
protocol: VercelProtocol,
|
|
643
642
|
retry: Retry.Retry,
|
package/src/services/domains.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
|
@@ -121,6 +121,13 @@ export const ClaimDomainOwnershipResponseDomainCreator =
|
|
|
121
121
|
identifier: "ClaimDomainOwnershipResponseDomainCreator",
|
|
122
122
|
}) as any as S.Schema<ClaimDomainOwnershipResponseDomainCreator>;
|
|
123
123
|
|
|
124
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
125
|
+
export type ClaimDomainOwnershipResponseDomainEchMode =
|
|
126
|
+
| "auto"
|
|
127
|
+
| "disabled"
|
|
128
|
+
| "enabled";
|
|
129
|
+
export const ClaimDomainOwnershipResponseDomainEchMode = /*@__PURE__*/ S.String;
|
|
130
|
+
|
|
124
131
|
/** The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available. */
|
|
125
132
|
export type ClaimDomainOwnershipResponseDomainServiceType =
|
|
126
133
|
| "external"
|
|
@@ -142,6 +149,8 @@ export interface ClaimDomainOwnershipResponseDomain {
|
|
|
142
149
|
customNameservers?: ClaimDomainOwnershipResponseDomainCustomNameserversList;
|
|
143
150
|
/** An object containing information of the domain creator, including the user's id, username, and email. */
|
|
144
151
|
creator: ClaimDomainOwnershipResponseDomainCreator;
|
|
152
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
153
|
+
echMode: ClaimDomainOwnershipResponseDomainEchMode;
|
|
145
154
|
/** The domain name. */
|
|
146
155
|
name: string;
|
|
147
156
|
teamId: string | null;
|
|
@@ -172,6 +181,7 @@ export const ClaimDomainOwnershipResponseDomain = /*@__PURE__*/ S.suspend(() =>
|
|
|
172
181
|
ClaimDomainOwnershipResponseDomainCustomNameserversList,
|
|
173
182
|
),
|
|
174
183
|
creator: ClaimDomainOwnershipResponseDomainCreator,
|
|
184
|
+
echMode: ClaimDomainOwnershipResponseDomainEchMode,
|
|
175
185
|
name: S.String,
|
|
176
186
|
teamId: S.NullOr(S.String),
|
|
177
187
|
boughtAt: S.NullOr(S.Number),
|
|
@@ -245,6 +255,14 @@ export type CreateOrTransferDomainResponseDomainCreator =
|
|
|
245
255
|
export const CreateOrTransferDomainResponseDomainCreator =
|
|
246
256
|
ClaimDomainOwnershipResponseDomainCreator;
|
|
247
257
|
|
|
258
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
259
|
+
export type CreateOrTransferDomainResponseDomainEchMode =
|
|
260
|
+
| "auto"
|
|
261
|
+
| "disabled"
|
|
262
|
+
| "enabled";
|
|
263
|
+
export const CreateOrTransferDomainResponseDomainEchMode =
|
|
264
|
+
/*@__PURE__*/ S.String;
|
|
265
|
+
|
|
248
266
|
/** The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available. */
|
|
249
267
|
export type CreateOrTransferDomainResponseDomainServiceType =
|
|
250
268
|
| "external"
|
|
@@ -266,6 +284,8 @@ export interface CreateOrTransferDomainResponseDomain {
|
|
|
266
284
|
customNameservers?: CreateOrTransferDomainResponseDomainCustomNameserversList;
|
|
267
285
|
/** An object containing information of the domain creator, including the user's id, username, and email. */
|
|
268
286
|
creator: ClaimDomainOwnershipResponseDomainCreator;
|
|
287
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
288
|
+
echMode: CreateOrTransferDomainResponseDomainEchMode;
|
|
269
289
|
/** The domain name. */
|
|
270
290
|
name: string;
|
|
271
291
|
teamId: string | null;
|
|
@@ -297,6 +317,7 @@ export const CreateOrTransferDomainResponseDomain = /*@__PURE__*/ S.suspend(
|
|
|
297
317
|
CreateOrTransferDomainResponseDomainCustomNameserversList,
|
|
298
318
|
),
|
|
299
319
|
creator: ClaimDomainOwnershipResponseDomainCreator,
|
|
320
|
+
echMode: CreateOrTransferDomainResponseDomainEchMode,
|
|
300
321
|
name: S.String,
|
|
301
322
|
teamId: S.NullOr(S.String),
|
|
302
323
|
boughtAt: S.NullOr(S.Number),
|
|
@@ -396,6 +417,10 @@ export type GetDomainResponseDomainCreator =
|
|
|
396
417
|
export const GetDomainResponseDomainCreator =
|
|
397
418
|
ClaimDomainOwnershipResponseDomainCreator;
|
|
398
419
|
|
|
420
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
421
|
+
export type GetDomainResponseDomainEchMode = "auto" | "disabled" | "enabled";
|
|
422
|
+
export const GetDomainResponseDomainEchMode = /*@__PURE__*/ S.String;
|
|
423
|
+
|
|
399
424
|
/** The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available. */
|
|
400
425
|
export type GetDomainResponseDomainServiceType =
|
|
401
426
|
| "external"
|
|
@@ -417,6 +442,8 @@ export interface GetDomainResponseDomain {
|
|
|
417
442
|
customNameservers?: GetDomainResponseDomainCustomNameserversList;
|
|
418
443
|
/** An object containing information of the domain creator, including the user's id, username, and email. */
|
|
419
444
|
creator: ClaimDomainOwnershipResponseDomainCreator;
|
|
445
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
446
|
+
echMode: GetDomainResponseDomainEchMode;
|
|
420
447
|
/** The domain name. */
|
|
421
448
|
name: string;
|
|
422
449
|
teamId: string | null;
|
|
@@ -445,6 +472,7 @@ export const GetDomainResponseDomain = /*@__PURE__*/ S.suspend(() =>
|
|
|
445
472
|
intendedNameservers: GetDomainResponseDomainIntendedNameserversList,
|
|
446
473
|
customNameservers: S.optional(GetDomainResponseDomainCustomNameserversList),
|
|
447
474
|
creator: ClaimDomainOwnershipResponseDomainCreator,
|
|
475
|
+
echMode: GetDomainResponseDomainEchMode,
|
|
448
476
|
name: S.String,
|
|
449
477
|
teamId: S.NullOr(S.String),
|
|
450
478
|
boughtAt: S.NullOr(S.Number),
|
|
@@ -633,7 +661,10 @@ export const GetDomainProjectDomainsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
633
661
|
}) as any as S.Schema<GetDomainProjectDomainsRequest>;
|
|
634
662
|
|
|
635
663
|
export type GetDomainProjectDomainsResponseProjectDomainsItemRedirectStatusCode =
|
|
636
|
-
|
|
664
|
+
| 301
|
|
665
|
+
| 302
|
|
666
|
+
| 307
|
|
667
|
+
| 308;
|
|
637
668
|
export const GetDomainProjectDomainsResponseProjectDomainsItemRedirectStatusCode =
|
|
638
669
|
/*@__PURE__*/ S.Number;
|
|
639
670
|
|
|
@@ -794,6 +825,13 @@ export type GetDomainsResponseDomainsItemCreator =
|
|
|
794
825
|
export const GetDomainsResponseDomainsItemCreator =
|
|
795
826
|
ClaimDomainOwnershipResponseDomainCreator;
|
|
796
827
|
|
|
828
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
829
|
+
export type GetDomainsResponseDomainsItemEchMode =
|
|
830
|
+
| "auto"
|
|
831
|
+
| "disabled"
|
|
832
|
+
| "enabled";
|
|
833
|
+
export const GetDomainsResponseDomainsItemEchMode = /*@__PURE__*/ S.String;
|
|
834
|
+
|
|
797
835
|
/** The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available. */
|
|
798
836
|
export type GetDomainsResponseDomainsItemServiceType =
|
|
799
837
|
| "external"
|
|
@@ -814,6 +852,8 @@ export interface GetDomainsResponseDomainsItem {
|
|
|
814
852
|
customNameservers?: GetDomainsResponseDomainsItemCustomNameserversList;
|
|
815
853
|
/** An object containing information of the domain creator, including the user's id, username, and email. */
|
|
816
854
|
creator: ClaimDomainOwnershipResponseDomainCreator;
|
|
855
|
+
/** Whether the domain is enrolled in Encrypted Client Hello. `auto` leaves the decision to Vercel, `enabled` always enrolls, and `disabled` never enrolls and opts out of automatic enrollment. */
|
|
856
|
+
echMode: GetDomainsResponseDomainsItemEchMode;
|
|
817
857
|
/** The domain name. */
|
|
818
858
|
name: string;
|
|
819
859
|
teamId: string | null;
|
|
@@ -843,6 +883,7 @@ export const GetDomainsResponseDomainsItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
843
883
|
GetDomainsResponseDomainsItemCustomNameserversList,
|
|
844
884
|
),
|
|
845
885
|
creator: ClaimDomainOwnershipResponseDomainCreator,
|
|
886
|
+
echMode: GetDomainsResponseDomainsItemEchMode,
|
|
846
887
|
name: S.String,
|
|
847
888
|
teamId: S.NullOr(S.String),
|
|
848
889
|
boughtAt: S.NullOr(S.Number),
|
|
@@ -915,135 +956,150 @@ export const GetDomainVerificationRecordResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
915
956
|
}) as any as S.Schema<GetDomainVerificationRecordResponse>;
|
|
916
957
|
|
|
917
958
|
/** This field is deprecated. Please use PATCH /v1/registrar/domains/{domainName}/nameservers instead. */
|
|
918
|
-
export type
|
|
919
|
-
export const
|
|
959
|
+
export type UpdateDomainRequestBodyCase0CustomNameserversList = Array<string>;
|
|
960
|
+
export const UpdateDomainRequestBodyCase0CustomNameserversList =
|
|
920
961
|
/*@__PURE__*/ S.Array(
|
|
921
962
|
S.String,
|
|
922
|
-
) as any as S.Schema<
|
|
963
|
+
) as any as S.Schema<UpdateDomainRequestBodyCase0CustomNameserversList>;
|
|
964
|
+
|
|
965
|
+
/** Encrypted Client Hello enrollment. 'auto' leaves it to Vercel, 'disabled' never enrolls and opts out of automatic enrollment. */
|
|
966
|
+
export type UpdateDomainRequestBodyCase0EchMode = "auto" | "disabled";
|
|
967
|
+
export const UpdateDomainRequestBodyCase0EchMode = /*@__PURE__*/ S.String;
|
|
923
968
|
|
|
924
969
|
/** update */
|
|
925
|
-
export interface
|
|
970
|
+
export interface UpdateDomainRequestBodyCase0 {
|
|
926
971
|
op?: string;
|
|
927
972
|
/** This field is deprecated. Please use PATCH /v1/registrar/domains/{domainName}/auto-renew instead. */
|
|
928
973
|
renew?: boolean;
|
|
929
974
|
/** This field is deprecated. Please use PATCH /v1/registrar/domains/{domainName}/nameservers instead. */
|
|
930
|
-
customNameservers?:
|
|
975
|
+
customNameservers?: UpdateDomainRequestBodyCase0CustomNameserversList;
|
|
931
976
|
/** Specifies whether this is a DNS zone that intends to use Vercel's nameservers. */
|
|
932
977
|
zone?: boolean;
|
|
978
|
+
/** Encrypted Client Hello enrollment. 'auto' leaves it to Vercel, 'disabled' never enrolls and opts out of automatic enrollment. */
|
|
979
|
+
echMode?: UpdateDomainRequestBodyCase0EchMode | (string & {});
|
|
933
980
|
}
|
|
934
|
-
export const
|
|
981
|
+
export const UpdateDomainRequestBodyCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
935
982
|
S.Struct({
|
|
936
983
|
op: S.optional(S.String),
|
|
937
984
|
renew: S.optional(S.Boolean),
|
|
938
985
|
customNameservers: S.optional(
|
|
939
|
-
|
|
986
|
+
UpdateDomainRequestBodyCase0CustomNameserversList,
|
|
940
987
|
),
|
|
941
988
|
zone: S.optional(S.Boolean),
|
|
989
|
+
echMode: S.optional(UpdateDomainRequestBodyCase0EchMode),
|
|
942
990
|
}),
|
|
943
991
|
).annotate({
|
|
944
|
-
identifier: "
|
|
945
|
-
}) as any as S.Schema<
|
|
992
|
+
identifier: "UpdateDomainRequestBodyCase0",
|
|
993
|
+
}) as any as S.Schema<UpdateDomainRequestBodyCase0>;
|
|
946
994
|
|
|
947
995
|
/** move-out */
|
|
948
|
-
export interface
|
|
996
|
+
export interface UpdateDomainRequestBodyCase1 {
|
|
949
997
|
op?: string;
|
|
950
998
|
/** User or team to move domain to */
|
|
951
999
|
destination?: string;
|
|
952
1000
|
}
|
|
953
|
-
export const
|
|
1001
|
+
export const UpdateDomainRequestBodyCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
954
1002
|
S.Struct({
|
|
955
1003
|
op: S.optional(S.String),
|
|
956
1004
|
destination: S.optional(S.String),
|
|
957
1005
|
}),
|
|
958
1006
|
).annotate({
|
|
959
|
-
identifier: "
|
|
960
|
-
}) as any as S.Schema<
|
|
1007
|
+
identifier: "UpdateDomainRequestBodyCase1",
|
|
1008
|
+
}) as any as S.Schema<UpdateDomainRequestBodyCase1>;
|
|
961
1009
|
|
|
962
|
-
export type
|
|
963
|
-
|
|
|
964
|
-
|
|
|
965
|
-
export const
|
|
966
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<
|
|
1010
|
+
export type UpdateDomainRequestBody =
|
|
1011
|
+
| UpdateDomainRequestBodyCase0
|
|
1012
|
+
| UpdateDomainRequestBodyCase1;
|
|
1013
|
+
export const UpdateDomainRequestBody =
|
|
1014
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateDomainRequestBody>;
|
|
967
1015
|
|
|
968
|
-
export interface
|
|
1016
|
+
export interface UpdateDomainRequest {
|
|
969
1017
|
domain: string;
|
|
970
1018
|
/** The Team identifier to perform the request on behalf of. */
|
|
971
1019
|
teamId?: string;
|
|
972
1020
|
/** The Team slug to perform the request on behalf of. */
|
|
973
1021
|
slug?: string;
|
|
974
|
-
body:
|
|
1022
|
+
body: UpdateDomainRequestBody;
|
|
975
1023
|
}
|
|
976
|
-
export const
|
|
1024
|
+
export const UpdateDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
977
1025
|
S.Struct({
|
|
978
1026
|
domain: S.String.pipe(T.Label()),
|
|
979
1027
|
teamId: S.optional(S.String.pipe(T.Query())),
|
|
980
1028
|
slug: S.optional(S.String.pipe(T.Query())),
|
|
981
|
-
body:
|
|
1029
|
+
body: UpdateDomainRequestBody.pipe(T.HttpBody()),
|
|
982
1030
|
}).pipe(T.Http({ method: "PATCH", uri: "/v3/domains/{domain}", code: 200 })),
|
|
983
1031
|
).annotate({
|
|
984
|
-
identifier: "
|
|
985
|
-
}) as any as S.Schema<
|
|
1032
|
+
identifier: "UpdateDomainRequest",
|
|
1033
|
+
}) as any as S.Schema<UpdateDomainRequest>;
|
|
986
1034
|
|
|
987
|
-
export interface
|
|
1035
|
+
export interface UpdateDomainResponseBodyCase0 {
|
|
988
1036
|
moved: boolean;
|
|
989
1037
|
}
|
|
990
|
-
export const
|
|
1038
|
+
export const UpdateDomainResponseBodyCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
991
1039
|
S.Struct({
|
|
992
1040
|
moved: S.Boolean,
|
|
993
1041
|
}),
|
|
994
1042
|
).annotate({
|
|
995
|
-
identifier: "
|
|
996
|
-
}) as any as S.Schema<
|
|
1043
|
+
identifier: "UpdateDomainResponseBodyCase0",
|
|
1044
|
+
}) as any as S.Schema<UpdateDomainResponseBodyCase0>;
|
|
997
1045
|
|
|
998
|
-
export interface
|
|
1046
|
+
export interface UpdateDomainResponseBodyCase1 {
|
|
999
1047
|
moved: boolean;
|
|
1000
1048
|
token: string;
|
|
1001
1049
|
}
|
|
1002
|
-
export const
|
|
1050
|
+
export const UpdateDomainResponseBodyCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
1003
1051
|
S.Struct({
|
|
1004
1052
|
moved: S.Boolean,
|
|
1005
1053
|
token: S.String,
|
|
1006
1054
|
}),
|
|
1007
1055
|
).annotate({
|
|
1008
|
-
identifier: "
|
|
1009
|
-
}) as any as S.Schema<
|
|
1056
|
+
identifier: "UpdateDomainResponseBodyCase1",
|
|
1057
|
+
}) as any as S.Schema<UpdateDomainResponseBodyCase1>;
|
|
1010
1058
|
|
|
1011
|
-
export type
|
|
1012
|
-
export const
|
|
1059
|
+
export type UpdateDomainResponseBodyCase2CustomNameserversList = Array<string>;
|
|
1060
|
+
export const UpdateDomainResponseBodyCase2CustomNameserversList =
|
|
1013
1061
|
/*@__PURE__*/ S.Array(
|
|
1014
1062
|
S.String,
|
|
1015
|
-
) as any as S.Schema<
|
|
1063
|
+
) as any as S.Schema<UpdateDomainResponseBodyCase2CustomNameserversList>;
|
|
1064
|
+
|
|
1065
|
+
export type UpdateDomainResponseBodyCase2EchMode =
|
|
1066
|
+
| "auto"
|
|
1067
|
+
| "disabled"
|
|
1068
|
+
| "enabled";
|
|
1069
|
+
export const UpdateDomainResponseBodyCase2EchMode = /*@__PURE__*/ S.String;
|
|
1016
1070
|
|
|
1017
|
-
export interface
|
|
1071
|
+
export interface UpdateDomainResponseBodyCase2 {
|
|
1018
1072
|
renew?: boolean;
|
|
1019
|
-
customNameservers?:
|
|
1073
|
+
customNameservers?: UpdateDomainResponseBodyCase2CustomNameserversList;
|
|
1020
1074
|
zone?: boolean;
|
|
1075
|
+
echMode: UpdateDomainResponseBodyCase2EchMode;
|
|
1021
1076
|
}
|
|
1022
|
-
export const
|
|
1077
|
+
export const UpdateDomainResponseBodyCase2 = /*@__PURE__*/ S.suspend(() =>
|
|
1023
1078
|
S.Struct({
|
|
1024
1079
|
renew: S.optional(S.Boolean),
|
|
1025
1080
|
customNameservers: S.optional(
|
|
1026
|
-
|
|
1081
|
+
UpdateDomainResponseBodyCase2CustomNameserversList,
|
|
1027
1082
|
),
|
|
1028
1083
|
zone: S.optional(S.Boolean),
|
|
1084
|
+
echMode: UpdateDomainResponseBodyCase2EchMode,
|
|
1029
1085
|
}),
|
|
1030
1086
|
).annotate({
|
|
1031
|
-
identifier: "
|
|
1032
|
-
}) as any as S.Schema<
|
|
1033
|
-
|
|
1034
|
-
export type
|
|
1035
|
-
|
|
|
1036
|
-
|
|
|
1037
|
-
|
|
|
1038
|
-
export const
|
|
1039
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<
|
|
1040
|
-
|
|
1041
|
-
export type
|
|
1042
|
-
export const
|
|
1043
|
-
|
|
1087
|
+
identifier: "UpdateDomainResponseBodyCase2",
|
|
1088
|
+
}) as any as S.Schema<UpdateDomainResponseBodyCase2>;
|
|
1089
|
+
|
|
1090
|
+
export type UpdateDomainResponseBody =
|
|
1091
|
+
| UpdateDomainResponseBodyCase0
|
|
1092
|
+
| UpdateDomainResponseBodyCase1
|
|
1093
|
+
| UpdateDomainResponseBodyCase2;
|
|
1094
|
+
export const UpdateDomainResponseBody =
|
|
1095
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateDomainResponseBody>;
|
|
1096
|
+
|
|
1097
|
+
export type UpdateDomainResponse = UpdateDomainResponseBody;
|
|
1098
|
+
export const UpdateDomainResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1099
|
+
UpdateDomainResponseBody.pipe(T.RawResponseRoot()),
|
|
1044
1100
|
).annotate({
|
|
1045
|
-
identifier: "
|
|
1046
|
-
}) as any as S.Schema<
|
|
1101
|
+
identifier: "UpdateDomainResponse",
|
|
1102
|
+
}) as any as S.Schema<UpdateDomainResponse>;
|
|
1047
1103
|
|
|
1048
1104
|
export type ClaimDomainOwnershipError =
|
|
1049
1105
|
| BadRequest
|
|
@@ -1188,21 +1244,21 @@ export const getDomainVerificationRecord: API.OperationMethod<
|
|
|
1188
1244
|
retry: Retry.Retry,
|
|
1189
1245
|
}));
|
|
1190
1246
|
|
|
1191
|
-
export type
|
|
1247
|
+
export type UpdateDomainError =
|
|
1192
1248
|
| BadRequest
|
|
1193
1249
|
| Forbidden
|
|
1194
1250
|
| NotFound
|
|
1195
1251
|
| Conflict
|
|
1196
1252
|
| VercelOpError;
|
|
1197
1253
|
/** Update or move apex domain Update or move apex domain. Note: This endpoint is no longer used for updating auto-renew or nameservers. For this, please use the endpoints [Update auto-renew for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/update-auto-renew-for-a-domain) and [Update nameservers for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/update-nameservers-for-a-domain). */
|
|
1198
|
-
export const
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1254
|
+
export const updateDomain: API.OperationMethod<
|
|
1255
|
+
UpdateDomainRequest,
|
|
1256
|
+
UpdateDomainResponse,
|
|
1257
|
+
UpdateDomainError,
|
|
1202
1258
|
VercelOpContext
|
|
1203
1259
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1204
|
-
input:
|
|
1205
|
-
output:
|
|
1260
|
+
input: UpdateDomainRequest,
|
|
1261
|
+
output: UpdateDomainResponse,
|
|
1206
1262
|
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1207
1263
|
protocol: VercelProtocol,
|
|
1208
1264
|
retry: Retry.Retry,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
|
@@ -774,18 +774,18 @@ export const GetOrderResponseDomainsItemCase0ErrorCase0Case9Code =
|
|
|
774
774
|
/*@__PURE__*/ S.String;
|
|
775
775
|
|
|
776
776
|
export type GetOrderResponseDomainsItemCase0ErrorCase0Case9DetailsInvalidField =
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
777
|
+
| "firstName"
|
|
778
|
+
| "lastName"
|
|
779
|
+
| "email"
|
|
780
|
+
| "phone"
|
|
781
|
+
| "address1"
|
|
782
|
+
| "address2"
|
|
783
|
+
| "city"
|
|
784
|
+
| "state"
|
|
785
|
+
| "zip"
|
|
786
|
+
| "country"
|
|
787
|
+
| "companyName"
|
|
788
|
+
| "fax";
|
|
789
789
|
export const GetOrderResponseDomainsItemCase0ErrorCase0Case9DetailsInvalidField =
|
|
790
790
|
/*@__PURE__*/ S.String;
|
|
791
791
|
|
|
@@ -1067,18 +1067,18 @@ export const GetOrderResponseDomainsItemCase1ErrorCase0Case9Code =
|
|
|
1067
1067
|
/*@__PURE__*/ S.String;
|
|
1068
1068
|
|
|
1069
1069
|
export type GetOrderResponseDomainsItemCase1ErrorCase0Case9DetailsInvalidField =
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1070
|
+
| "firstName"
|
|
1071
|
+
| "lastName"
|
|
1072
|
+
| "email"
|
|
1073
|
+
| "phone"
|
|
1074
|
+
| "address1"
|
|
1075
|
+
| "address2"
|
|
1076
|
+
| "city"
|
|
1077
|
+
| "state"
|
|
1078
|
+
| "zip"
|
|
1079
|
+
| "country"
|
|
1080
|
+
| "companyName"
|
|
1081
|
+
| "fax";
|
|
1082
1082
|
export const GetOrderResponseDomainsItemCase1ErrorCase0Case9DetailsInvalidField =
|
|
1083
1083
|
/*@__PURE__*/ S.String;
|
|
1084
1084
|
|
|
@@ -1349,18 +1349,18 @@ export const GetOrderResponseDomainsItemCase2ErrorCase0Case9Code =
|
|
|
1349
1349
|
/*@__PURE__*/ S.String;
|
|
1350
1350
|
|
|
1351
1351
|
export type GetOrderResponseDomainsItemCase2ErrorCase0Case9DetailsInvalidField =
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1352
|
+
| "firstName"
|
|
1353
|
+
| "lastName"
|
|
1354
|
+
| "email"
|
|
1355
|
+
| "phone"
|
|
1356
|
+
| "address1"
|
|
1357
|
+
| "address2"
|
|
1358
|
+
| "city"
|
|
1359
|
+
| "state"
|
|
1360
|
+
| "zip"
|
|
1361
|
+
| "country"
|
|
1362
|
+
| "companyName"
|
|
1363
|
+
| "fax";
|
|
1364
1364
|
export const GetOrderResponseDomainsItemCase2ErrorCase0Case9DetailsInvalidField =
|
|
1365
1365
|
/*@__PURE__*/ S.String;
|
|
1366
1366
|
|