@vercel/sdk 1.8.1 → 1.8.3
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/README.md +32 -36
- package/bin/mcp-server.js +1976 -2433
- package/bin/mcp-server.js.map +23 -35
- package/docs/sdks/domains/README.md +88 -0
- package/docs/sdks/vercel/README.md +0 -372
- package/esm/__tests__/teams.test.js +2 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +11 -201
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/domainsCreateOrTransferDomain.d.ts +20 -0
- package/esm/funcs/domainsCreateOrTransferDomain.d.ts.map +1 -0
- package/esm/funcs/{postDomains.js → domainsCreateOrTransferDomain.js} +27 -13
- package/esm/funcs/domainsCreateOrTransferDomain.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/security.d.ts +2 -2
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -11
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.d.ts +7 -0
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.js +28 -0
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.js.map +1 -0
- package/esm/models/canceldeploymentop.d.ts +26 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +22 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +26 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +23 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createortransferdomainop.d.ts +388 -0
- package/esm/models/createortransferdomainop.d.ts.map +1 -0
- package/esm/models/createortransferdomainop.js +310 -0
- package/esm/models/createortransferdomainop.js.map +1 -0
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +9 -9
- package/esm/models/createprojectop.js +3 -3
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createrecordop.d.ts +43 -43
- package/esm/models/createrecordop.d.ts.map +1 -1
- package/esm/models/createrecordop.js +51 -51
- package/esm/models/createrecordop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +61 -0
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +53 -0
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +50 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +42 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdomainop.d.ts +8 -8
- package/esm/models/getdomainop.d.ts.map +1 -1
- package/esm/models/getdomainop.js +13 -12
- package/esm/models/getdomainop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +128 -128
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +132 -132
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/team.d.ts +5 -44
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +2 -42
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +9 -9
- package/esm/models/updateprojectop.js +3 -3
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/sdk/domains.d.ts +8 -0
- package/esm/sdk/domains.d.ts.map +1 -1
- package/esm/sdk/domains.js +10 -0
- package/esm/sdk/domains.js.map +1 -1
- package/esm/sdk/sdk.d.ts +1 -12
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -21
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/teams.test.ts +2 -2
- package/src/__tests__/vercel.test.ts +17 -219
- package/src/funcs/{postDomains.ts → domainsCreateOrTransferDomain.ts} +38 -22
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -11
- package/src/mcp-server/tools/domainsCreateOrTransferDomain.ts +37 -0
- package/src/models/canceldeploymentop.ts +36 -0
- package/src/models/createdeploymentop.ts +32 -0
- package/src/models/createortransferdomainop.ts +779 -0
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +3 -3
- package/src/models/createrecordop.ts +84 -96
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/getconfigurationop.ts +105 -0
- package/src/models/getdeploymentop.ts +67 -0
- package/src/models/getdomainop.ts +14 -16
- package/src/models/getprojectsop.ts +260 -260
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/team.ts +7 -83
- package/src/models/updateprojectop.ts +3 -3
- package/src/sdk/domains.ts +22 -0
- package/src/sdk/sdk.ts +1 -71
- package/vercel-spec.json +420 -660
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.d.ts +0 -13
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.d.ts.map +0 -1
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.js +0 -82
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.js.map +0 -1
- package/esm/funcs/getProjectsProjectIdLogsPresets.d.ts +0 -14
- package/esm/funcs/getProjectsProjectIdLogsPresets.d.ts.map +0 -1
- package/esm/funcs/getProjectsProjectIdLogsPresets.js +0 -79
- package/esm/funcs/getProjectsProjectIdLogsPresets.js.map +0 -1
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.d.ts +0 -15
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.d.ts.map +0 -1
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.js +0 -84
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.js.map +0 -1
- package/esm/funcs/postDomains.d.ts +0 -14
- package/esm/funcs/postDomains.d.ts.map +0 -1
- package/esm/funcs/postDomains.js.map +0 -1
- package/esm/funcs/postProjectsProjectIdLogsPresets.d.ts +0 -14
- package/esm/funcs/postProjectsProjectIdLogsPresets.d.ts.map +0 -1
- package/esm/funcs/postProjectsProjectIdLogsPresets.js +0 -79
- package/esm/funcs/postProjectsProjectIdLogsPresets.js.map +0 -1
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.d.ts +0 -7
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.d.ts.map +0 -1
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.js +0 -25
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.js.map +0 -1
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.d.ts +0 -7
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.d.ts.map +0 -1
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.js +0 -26
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.js.map +0 -1
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.d.ts +0 -7
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.d.ts.map +0 -1
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.js +0 -26
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.js.map +0 -1
- package/esm/mcp-server/tools/postDomains.d.ts +0 -7
- package/esm/mcp-server/tools/postDomains.d.ts.map +0 -1
- package/esm/mcp-server/tools/postDomains.js +0 -26
- package/esm/mcp-server/tools/postDomains.js.map +0 -1
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.d.ts +0 -7
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.d.ts.map +0 -1
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.js +0 -26
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.js.map +0 -1
- package/esm/models/deleteprojectsprojectidlogspresetsidop.d.ts +0 -37
- package/esm/models/deleteprojectsprojectidlogspresetsidop.d.ts.map +0 -1
- package/esm/models/deleteprojectsprojectidlogspresetsidop.js +0 -33
- package/esm/models/deleteprojectsprojectidlogspresetsidop.js.map +0 -1
- package/esm/models/getprojectsprojectidlogspresetsop.d.ts +0 -29
- package/esm/models/getprojectsprojectidlogspresetsop.d.ts.map +0 -1
- package/esm/models/getprojectsprojectidlogspresetsop.js +0 -31
- package/esm/models/getprojectsprojectidlogspresetsop.js.map +0 -1
- package/esm/models/patchprojectsprojectidlogspresetsidop.d.ts +0 -67
- package/esm/models/patchprojectsprojectidlogspresetsidop.d.ts.map +0 -1
- package/esm/models/patchprojectsprojectidlogspresetsidop.js +0 -69
- package/esm/models/patchprojectsprojectidlogspresetsidop.js.map +0 -1
- package/esm/models/postdomainsop.d.ts +0 -353
- package/esm/models/postdomainsop.d.ts.map +0 -1
- package/esm/models/postdomainsop.js +0 -265
- package/esm/models/postdomainsop.js.map +0 -1
- package/esm/models/postprojectsprojectidlogspresetsop.d.ts +0 -95
- package/esm/models/postprojectsprojectidlogspresetsop.d.ts.map +0 -1
- package/esm/models/postprojectsprojectidlogspresetsop.js +0 -90
- package/esm/models/postprojectsprojectidlogspresetsop.js.map +0 -1
- package/src/funcs/deleteProjectsProjectIdLogsPresetsId.ts +0 -185
- package/src/funcs/getProjectsProjectIdLogsPresets.ts +0 -180
- package/src/funcs/patchProjectsProjectIdLogsPresetsId.ts +0 -194
- package/src/funcs/postProjectsProjectIdLogsPresets.ts +0 -180
- package/src/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.ts +0 -35
- package/src/mcp-server/tools/getProjectsProjectIdLogsPresets.ts +0 -36
- package/src/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.ts +0 -37
- package/src/mcp-server/tools/postDomains.ts +0 -35
- package/src/mcp-server/tools/postProjectsProjectIdLogsPresets.ts +0 -37
- package/src/models/deleteprojectsprojectidlogspresetsidop.ts +0 -89
- package/src/models/getprojectsprojectidlogspresetsop.ts +0 -72
- package/src/models/patchprojectsprojectidlogspresetsidop.ts +0 -180
- package/src/models/postdomainsop.ts +0 -637
- package/src/models/postprojectsprojectidlogspresetsop.ts +0 -217
|
@@ -1,637 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* transfer-in
|
|
13
|
-
*/
|
|
14
|
-
export type RequestBody3 = {
|
|
15
|
-
/**
|
|
16
|
-
* The domain name you want to add.
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
/**
|
|
20
|
-
* The domain operation to perform. It can be either `add` or `transfer-in`.
|
|
21
|
-
*/
|
|
22
|
-
method: string;
|
|
23
|
-
/**
|
|
24
|
-
* The authorization code assigned to the domain.
|
|
25
|
-
*/
|
|
26
|
-
authCode?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The price you expect to be charged for the required 1 year renewal.
|
|
29
|
-
*/
|
|
30
|
-
expectedPrice?: number | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* move-in
|
|
35
|
-
*/
|
|
36
|
-
export type RequestBody2 = {
|
|
37
|
-
/**
|
|
38
|
-
* The domain name you want to add.
|
|
39
|
-
*/
|
|
40
|
-
name: string;
|
|
41
|
-
/**
|
|
42
|
-
* The domain operation to perform. It can be either `add` or `transfer-in`.
|
|
43
|
-
*/
|
|
44
|
-
method: string;
|
|
45
|
-
/**
|
|
46
|
-
* The move-in token from Move Requested email.
|
|
47
|
-
*/
|
|
48
|
-
token?: string | undefined;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* add
|
|
53
|
-
*/
|
|
54
|
-
export type RequestBody1 = {
|
|
55
|
-
/**
|
|
56
|
-
* The domain name you want to add.
|
|
57
|
-
*/
|
|
58
|
-
name: string;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the domain has the Vercel Edge Network enabled or not.
|
|
61
|
-
*/
|
|
62
|
-
cdnEnabled?: boolean | undefined;
|
|
63
|
-
zone?: boolean | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* The domain operation to perform. It can be either `add` or `transfer-in`.
|
|
66
|
-
*/
|
|
67
|
-
method?: string | undefined;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type PostDomainsRequestBody = RequestBody2 | RequestBody1 | RequestBody3;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* An object containing information of the domain creator, including the user's id, username, and email.
|
|
74
|
-
*/
|
|
75
|
-
export type PostDomainsCreator = {
|
|
76
|
-
username: string;
|
|
77
|
-
email: string;
|
|
78
|
-
customerId?: string | null | undefined;
|
|
79
|
-
isDomainReseller?: boolean | undefined;
|
|
80
|
-
id: string;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* 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.
|
|
85
|
-
*/
|
|
86
|
-
export const ServiceType = {
|
|
87
|
-
ZeitWorld: "zeit.world",
|
|
88
|
-
External: "external",
|
|
89
|
-
Na: "na",
|
|
90
|
-
} as const;
|
|
91
|
-
/**
|
|
92
|
-
* 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.
|
|
93
|
-
*/
|
|
94
|
-
export type ServiceType = ClosedEnum<typeof ServiceType>;
|
|
95
|
-
|
|
96
|
-
export type PostDomainsDomain = {
|
|
97
|
-
/**
|
|
98
|
-
* If the domain has the ownership verified.
|
|
99
|
-
*/
|
|
100
|
-
verified: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* A list of the current nameservers of the domain.
|
|
103
|
-
*/
|
|
104
|
-
nameservers: Array<string>;
|
|
105
|
-
/**
|
|
106
|
-
* A list of the intended nameservers for the domain to point to Vercel DNS.
|
|
107
|
-
*/
|
|
108
|
-
intendedNameservers: Array<string>;
|
|
109
|
-
/**
|
|
110
|
-
* A list of custom nameservers for the domain to point to. Only applies to domains purchased with Vercel.
|
|
111
|
-
*/
|
|
112
|
-
customNameservers?: Array<string> | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* An object containing information of the domain creator, including the user's id, username, and email.
|
|
115
|
-
*/
|
|
116
|
-
creator: PostDomainsCreator;
|
|
117
|
-
/**
|
|
118
|
-
* The domain name.
|
|
119
|
-
*/
|
|
120
|
-
name: string;
|
|
121
|
-
/**
|
|
122
|
-
* If it was purchased through Vercel, the timestamp in milliseconds when it was purchased.
|
|
123
|
-
*/
|
|
124
|
-
boughtAt: number | null;
|
|
125
|
-
/**
|
|
126
|
-
* Timestamp in milliseconds when the domain was created in the registry.
|
|
127
|
-
*/
|
|
128
|
-
createdAt: number;
|
|
129
|
-
/**
|
|
130
|
-
* Timestamp in milliseconds at which the domain is set to expire. `null` if not bought with Vercel.
|
|
131
|
-
*/
|
|
132
|
-
expiresAt: number | null;
|
|
133
|
-
/**
|
|
134
|
-
* The unique identifier of the domain.
|
|
135
|
-
*/
|
|
136
|
-
id: string;
|
|
137
|
-
/**
|
|
138
|
-
* Timestamp in milliseconds at which the domain was ordered.
|
|
139
|
-
*/
|
|
140
|
-
orderedAt?: number | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Indicates whether the domain is set to automatically renew.
|
|
143
|
-
*/
|
|
144
|
-
renew?: boolean | undefined;
|
|
145
|
-
/**
|
|
146
|
-
* 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.
|
|
147
|
-
*/
|
|
148
|
-
serviceType: ServiceType;
|
|
149
|
-
/**
|
|
150
|
-
* Timestamp in milliseconds at which the domain was successfully transferred into Vercel. `null` if the transfer is still processing or was never transferred in.
|
|
151
|
-
*/
|
|
152
|
-
transferredAt?: number | null | undefined;
|
|
153
|
-
/**
|
|
154
|
-
* If transferred into Vercel, timestamp in milliseconds when the domain transfer was initiated.
|
|
155
|
-
*/
|
|
156
|
-
transferStartedAt?: number | undefined;
|
|
157
|
-
userId: string;
|
|
158
|
-
teamId: string | null;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export type PostDomainsResponseBody = {
|
|
162
|
-
domain: PostDomainsDomain;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/** @internal */
|
|
166
|
-
export const RequestBody3$inboundSchema: z.ZodType<
|
|
167
|
-
RequestBody3,
|
|
168
|
-
z.ZodTypeDef,
|
|
169
|
-
unknown
|
|
170
|
-
> = z.object({
|
|
171
|
-
name: z.string(),
|
|
172
|
-
method: z.string(),
|
|
173
|
-
authCode: z.string().optional(),
|
|
174
|
-
expectedPrice: z.number().optional(),
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
/** @internal */
|
|
178
|
-
export type RequestBody3$Outbound = {
|
|
179
|
-
name: string;
|
|
180
|
-
method: string;
|
|
181
|
-
authCode?: string | undefined;
|
|
182
|
-
expectedPrice?: number | undefined;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
/** @internal */
|
|
186
|
-
export const RequestBody3$outboundSchema: z.ZodType<
|
|
187
|
-
RequestBody3$Outbound,
|
|
188
|
-
z.ZodTypeDef,
|
|
189
|
-
RequestBody3
|
|
190
|
-
> = z.object({
|
|
191
|
-
name: z.string(),
|
|
192
|
-
method: z.string(),
|
|
193
|
-
authCode: z.string().optional(),
|
|
194
|
-
expectedPrice: z.number().optional(),
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @internal
|
|
199
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
200
|
-
*/
|
|
201
|
-
export namespace RequestBody3$ {
|
|
202
|
-
/** @deprecated use `RequestBody3$inboundSchema` instead. */
|
|
203
|
-
export const inboundSchema = RequestBody3$inboundSchema;
|
|
204
|
-
/** @deprecated use `RequestBody3$outboundSchema` instead. */
|
|
205
|
-
export const outboundSchema = RequestBody3$outboundSchema;
|
|
206
|
-
/** @deprecated use `RequestBody3$Outbound` instead. */
|
|
207
|
-
export type Outbound = RequestBody3$Outbound;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export function requestBody3ToJSON(requestBody3: RequestBody3): string {
|
|
211
|
-
return JSON.stringify(RequestBody3$outboundSchema.parse(requestBody3));
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export function requestBody3FromJSON(
|
|
215
|
-
jsonString: string,
|
|
216
|
-
): SafeParseResult<RequestBody3, SDKValidationError> {
|
|
217
|
-
return safeParse(
|
|
218
|
-
jsonString,
|
|
219
|
-
(x) => RequestBody3$inboundSchema.parse(JSON.parse(x)),
|
|
220
|
-
`Failed to parse 'RequestBody3' from JSON`,
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const RequestBody2$inboundSchema: z.ZodType<
|
|
226
|
-
RequestBody2,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
unknown
|
|
229
|
-
> = z.object({
|
|
230
|
-
name: z.string(),
|
|
231
|
-
method: z.string(),
|
|
232
|
-
token: z.string().optional(),
|
|
233
|
-
});
|
|
234
|
-
|
|
235
|
-
/** @internal */
|
|
236
|
-
export type RequestBody2$Outbound = {
|
|
237
|
-
name: string;
|
|
238
|
-
method: string;
|
|
239
|
-
token?: string | undefined;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/** @internal */
|
|
243
|
-
export const RequestBody2$outboundSchema: z.ZodType<
|
|
244
|
-
RequestBody2$Outbound,
|
|
245
|
-
z.ZodTypeDef,
|
|
246
|
-
RequestBody2
|
|
247
|
-
> = z.object({
|
|
248
|
-
name: z.string(),
|
|
249
|
-
method: z.string(),
|
|
250
|
-
token: z.string().optional(),
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* @internal
|
|
255
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
256
|
-
*/
|
|
257
|
-
export namespace RequestBody2$ {
|
|
258
|
-
/** @deprecated use `RequestBody2$inboundSchema` instead. */
|
|
259
|
-
export const inboundSchema = RequestBody2$inboundSchema;
|
|
260
|
-
/** @deprecated use `RequestBody2$outboundSchema` instead. */
|
|
261
|
-
export const outboundSchema = RequestBody2$outboundSchema;
|
|
262
|
-
/** @deprecated use `RequestBody2$Outbound` instead. */
|
|
263
|
-
export type Outbound = RequestBody2$Outbound;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
267
|
-
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export function requestBody2FromJSON(
|
|
271
|
-
jsonString: string,
|
|
272
|
-
): SafeParseResult<RequestBody2, SDKValidationError> {
|
|
273
|
-
return safeParse(
|
|
274
|
-
jsonString,
|
|
275
|
-
(x) => RequestBody2$inboundSchema.parse(JSON.parse(x)),
|
|
276
|
-
`Failed to parse 'RequestBody2' from JSON`,
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/** @internal */
|
|
281
|
-
export const RequestBody1$inboundSchema: z.ZodType<
|
|
282
|
-
RequestBody1,
|
|
283
|
-
z.ZodTypeDef,
|
|
284
|
-
unknown
|
|
285
|
-
> = z.object({
|
|
286
|
-
name: z.string(),
|
|
287
|
-
cdnEnabled: z.boolean().optional(),
|
|
288
|
-
zone: z.boolean().optional(),
|
|
289
|
-
method: z.string().optional(),
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
/** @internal */
|
|
293
|
-
export type RequestBody1$Outbound = {
|
|
294
|
-
name: string;
|
|
295
|
-
cdnEnabled?: boolean | undefined;
|
|
296
|
-
zone?: boolean | undefined;
|
|
297
|
-
method?: string | undefined;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
/** @internal */
|
|
301
|
-
export const RequestBody1$outboundSchema: z.ZodType<
|
|
302
|
-
RequestBody1$Outbound,
|
|
303
|
-
z.ZodTypeDef,
|
|
304
|
-
RequestBody1
|
|
305
|
-
> = z.object({
|
|
306
|
-
name: z.string(),
|
|
307
|
-
cdnEnabled: z.boolean().optional(),
|
|
308
|
-
zone: z.boolean().optional(),
|
|
309
|
-
method: z.string().optional(),
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
315
|
-
*/
|
|
316
|
-
export namespace RequestBody1$ {
|
|
317
|
-
/** @deprecated use `RequestBody1$inboundSchema` instead. */
|
|
318
|
-
export const inboundSchema = RequestBody1$inboundSchema;
|
|
319
|
-
/** @deprecated use `RequestBody1$outboundSchema` instead. */
|
|
320
|
-
export const outboundSchema = RequestBody1$outboundSchema;
|
|
321
|
-
/** @deprecated use `RequestBody1$Outbound` instead. */
|
|
322
|
-
export type Outbound = RequestBody1$Outbound;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
326
|
-
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export function requestBody1FromJSON(
|
|
330
|
-
jsonString: string,
|
|
331
|
-
): SafeParseResult<RequestBody1, SDKValidationError> {
|
|
332
|
-
return safeParse(
|
|
333
|
-
jsonString,
|
|
334
|
-
(x) => RequestBody1$inboundSchema.parse(JSON.parse(x)),
|
|
335
|
-
`Failed to parse 'RequestBody1' from JSON`,
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/** @internal */
|
|
340
|
-
export const PostDomainsRequestBody$inboundSchema: z.ZodType<
|
|
341
|
-
PostDomainsRequestBody,
|
|
342
|
-
z.ZodTypeDef,
|
|
343
|
-
unknown
|
|
344
|
-
> = z.union([
|
|
345
|
-
z.lazy(() => RequestBody2$inboundSchema),
|
|
346
|
-
z.lazy(() => RequestBody1$inboundSchema),
|
|
347
|
-
z.lazy(() => RequestBody3$inboundSchema),
|
|
348
|
-
]);
|
|
349
|
-
|
|
350
|
-
/** @internal */
|
|
351
|
-
export type PostDomainsRequestBody$Outbound =
|
|
352
|
-
| RequestBody2$Outbound
|
|
353
|
-
| RequestBody1$Outbound
|
|
354
|
-
| RequestBody3$Outbound;
|
|
355
|
-
|
|
356
|
-
/** @internal */
|
|
357
|
-
export const PostDomainsRequestBody$outboundSchema: z.ZodType<
|
|
358
|
-
PostDomainsRequestBody$Outbound,
|
|
359
|
-
z.ZodTypeDef,
|
|
360
|
-
PostDomainsRequestBody
|
|
361
|
-
> = z.union([
|
|
362
|
-
z.lazy(() => RequestBody2$outboundSchema),
|
|
363
|
-
z.lazy(() => RequestBody1$outboundSchema),
|
|
364
|
-
z.lazy(() => RequestBody3$outboundSchema),
|
|
365
|
-
]);
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
370
|
-
*/
|
|
371
|
-
export namespace PostDomainsRequestBody$ {
|
|
372
|
-
/** @deprecated use `PostDomainsRequestBody$inboundSchema` instead. */
|
|
373
|
-
export const inboundSchema = PostDomainsRequestBody$inboundSchema;
|
|
374
|
-
/** @deprecated use `PostDomainsRequestBody$outboundSchema` instead. */
|
|
375
|
-
export const outboundSchema = PostDomainsRequestBody$outboundSchema;
|
|
376
|
-
/** @deprecated use `PostDomainsRequestBody$Outbound` instead. */
|
|
377
|
-
export type Outbound = PostDomainsRequestBody$Outbound;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
export function postDomainsRequestBodyToJSON(
|
|
381
|
-
postDomainsRequestBody: PostDomainsRequestBody,
|
|
382
|
-
): string {
|
|
383
|
-
return JSON.stringify(
|
|
384
|
-
PostDomainsRequestBody$outboundSchema.parse(postDomainsRequestBody),
|
|
385
|
-
);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export function postDomainsRequestBodyFromJSON(
|
|
389
|
-
jsonString: string,
|
|
390
|
-
): SafeParseResult<PostDomainsRequestBody, SDKValidationError> {
|
|
391
|
-
return safeParse(
|
|
392
|
-
jsonString,
|
|
393
|
-
(x) => PostDomainsRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
394
|
-
`Failed to parse 'PostDomainsRequestBody' from JSON`,
|
|
395
|
-
);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/** @internal */
|
|
399
|
-
export const PostDomainsCreator$inboundSchema: z.ZodType<
|
|
400
|
-
PostDomainsCreator,
|
|
401
|
-
z.ZodTypeDef,
|
|
402
|
-
unknown
|
|
403
|
-
> = z.object({
|
|
404
|
-
username: z.string(),
|
|
405
|
-
email: z.string(),
|
|
406
|
-
customerId: z.nullable(z.string()).optional(),
|
|
407
|
-
isDomainReseller: z.boolean().optional(),
|
|
408
|
-
id: z.string(),
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
/** @internal */
|
|
412
|
-
export type PostDomainsCreator$Outbound = {
|
|
413
|
-
username: string;
|
|
414
|
-
email: string;
|
|
415
|
-
customerId?: string | null | undefined;
|
|
416
|
-
isDomainReseller?: boolean | undefined;
|
|
417
|
-
id: string;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
/** @internal */
|
|
421
|
-
export const PostDomainsCreator$outboundSchema: z.ZodType<
|
|
422
|
-
PostDomainsCreator$Outbound,
|
|
423
|
-
z.ZodTypeDef,
|
|
424
|
-
PostDomainsCreator
|
|
425
|
-
> = z.object({
|
|
426
|
-
username: z.string(),
|
|
427
|
-
email: z.string(),
|
|
428
|
-
customerId: z.nullable(z.string()).optional(),
|
|
429
|
-
isDomainReseller: z.boolean().optional(),
|
|
430
|
-
id: z.string(),
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* @internal
|
|
435
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
436
|
-
*/
|
|
437
|
-
export namespace PostDomainsCreator$ {
|
|
438
|
-
/** @deprecated use `PostDomainsCreator$inboundSchema` instead. */
|
|
439
|
-
export const inboundSchema = PostDomainsCreator$inboundSchema;
|
|
440
|
-
/** @deprecated use `PostDomainsCreator$outboundSchema` instead. */
|
|
441
|
-
export const outboundSchema = PostDomainsCreator$outboundSchema;
|
|
442
|
-
/** @deprecated use `PostDomainsCreator$Outbound` instead. */
|
|
443
|
-
export type Outbound = PostDomainsCreator$Outbound;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export function postDomainsCreatorToJSON(
|
|
447
|
-
postDomainsCreator: PostDomainsCreator,
|
|
448
|
-
): string {
|
|
449
|
-
return JSON.stringify(
|
|
450
|
-
PostDomainsCreator$outboundSchema.parse(postDomainsCreator),
|
|
451
|
-
);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
export function postDomainsCreatorFromJSON(
|
|
455
|
-
jsonString: string,
|
|
456
|
-
): SafeParseResult<PostDomainsCreator, SDKValidationError> {
|
|
457
|
-
return safeParse(
|
|
458
|
-
jsonString,
|
|
459
|
-
(x) => PostDomainsCreator$inboundSchema.parse(JSON.parse(x)),
|
|
460
|
-
`Failed to parse 'PostDomainsCreator' from JSON`,
|
|
461
|
-
);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/** @internal */
|
|
465
|
-
export const ServiceType$inboundSchema: z.ZodNativeEnum<typeof ServiceType> = z
|
|
466
|
-
.nativeEnum(ServiceType);
|
|
467
|
-
|
|
468
|
-
/** @internal */
|
|
469
|
-
export const ServiceType$outboundSchema: z.ZodNativeEnum<typeof ServiceType> =
|
|
470
|
-
ServiceType$inboundSchema;
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* @internal
|
|
474
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
475
|
-
*/
|
|
476
|
-
export namespace ServiceType$ {
|
|
477
|
-
/** @deprecated use `ServiceType$inboundSchema` instead. */
|
|
478
|
-
export const inboundSchema = ServiceType$inboundSchema;
|
|
479
|
-
/** @deprecated use `ServiceType$outboundSchema` instead. */
|
|
480
|
-
export const outboundSchema = ServiceType$outboundSchema;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
/** @internal */
|
|
484
|
-
export const PostDomainsDomain$inboundSchema: z.ZodType<
|
|
485
|
-
PostDomainsDomain,
|
|
486
|
-
z.ZodTypeDef,
|
|
487
|
-
unknown
|
|
488
|
-
> = z.object({
|
|
489
|
-
verified: z.boolean(),
|
|
490
|
-
nameservers: z.array(z.string()),
|
|
491
|
-
intendedNameservers: z.array(z.string()),
|
|
492
|
-
customNameservers: z.array(z.string()).optional(),
|
|
493
|
-
creator: z.lazy(() => PostDomainsCreator$inboundSchema),
|
|
494
|
-
name: z.string(),
|
|
495
|
-
boughtAt: z.nullable(z.number()),
|
|
496
|
-
createdAt: z.number(),
|
|
497
|
-
expiresAt: z.nullable(z.number()),
|
|
498
|
-
id: z.string(),
|
|
499
|
-
orderedAt: z.number().optional(),
|
|
500
|
-
renew: z.boolean().optional(),
|
|
501
|
-
serviceType: ServiceType$inboundSchema,
|
|
502
|
-
transferredAt: z.nullable(z.number()).optional(),
|
|
503
|
-
transferStartedAt: z.number().optional(),
|
|
504
|
-
userId: z.string(),
|
|
505
|
-
teamId: z.nullable(z.string()),
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
/** @internal */
|
|
509
|
-
export type PostDomainsDomain$Outbound = {
|
|
510
|
-
verified: boolean;
|
|
511
|
-
nameservers: Array<string>;
|
|
512
|
-
intendedNameservers: Array<string>;
|
|
513
|
-
customNameservers?: Array<string> | undefined;
|
|
514
|
-
creator: PostDomainsCreator$Outbound;
|
|
515
|
-
name: string;
|
|
516
|
-
boughtAt: number | null;
|
|
517
|
-
createdAt: number;
|
|
518
|
-
expiresAt: number | null;
|
|
519
|
-
id: string;
|
|
520
|
-
orderedAt?: number | undefined;
|
|
521
|
-
renew?: boolean | undefined;
|
|
522
|
-
serviceType: string;
|
|
523
|
-
transferredAt?: number | null | undefined;
|
|
524
|
-
transferStartedAt?: number | undefined;
|
|
525
|
-
userId: string;
|
|
526
|
-
teamId: string | null;
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
/** @internal */
|
|
530
|
-
export const PostDomainsDomain$outboundSchema: z.ZodType<
|
|
531
|
-
PostDomainsDomain$Outbound,
|
|
532
|
-
z.ZodTypeDef,
|
|
533
|
-
PostDomainsDomain
|
|
534
|
-
> = z.object({
|
|
535
|
-
verified: z.boolean(),
|
|
536
|
-
nameservers: z.array(z.string()),
|
|
537
|
-
intendedNameservers: z.array(z.string()),
|
|
538
|
-
customNameservers: z.array(z.string()).optional(),
|
|
539
|
-
creator: z.lazy(() => PostDomainsCreator$outboundSchema),
|
|
540
|
-
name: z.string(),
|
|
541
|
-
boughtAt: z.nullable(z.number()),
|
|
542
|
-
createdAt: z.number(),
|
|
543
|
-
expiresAt: z.nullable(z.number()),
|
|
544
|
-
id: z.string(),
|
|
545
|
-
orderedAt: z.number().optional(),
|
|
546
|
-
renew: z.boolean().optional(),
|
|
547
|
-
serviceType: ServiceType$outboundSchema,
|
|
548
|
-
transferredAt: z.nullable(z.number()).optional(),
|
|
549
|
-
transferStartedAt: z.number().optional(),
|
|
550
|
-
userId: z.string(),
|
|
551
|
-
teamId: z.nullable(z.string()),
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* @internal
|
|
556
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
557
|
-
*/
|
|
558
|
-
export namespace PostDomainsDomain$ {
|
|
559
|
-
/** @deprecated use `PostDomainsDomain$inboundSchema` instead. */
|
|
560
|
-
export const inboundSchema = PostDomainsDomain$inboundSchema;
|
|
561
|
-
/** @deprecated use `PostDomainsDomain$outboundSchema` instead. */
|
|
562
|
-
export const outboundSchema = PostDomainsDomain$outboundSchema;
|
|
563
|
-
/** @deprecated use `PostDomainsDomain$Outbound` instead. */
|
|
564
|
-
export type Outbound = PostDomainsDomain$Outbound;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
export function postDomainsDomainToJSON(
|
|
568
|
-
postDomainsDomain: PostDomainsDomain,
|
|
569
|
-
): string {
|
|
570
|
-
return JSON.stringify(
|
|
571
|
-
PostDomainsDomain$outboundSchema.parse(postDomainsDomain),
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
export function postDomainsDomainFromJSON(
|
|
576
|
-
jsonString: string,
|
|
577
|
-
): SafeParseResult<PostDomainsDomain, SDKValidationError> {
|
|
578
|
-
return safeParse(
|
|
579
|
-
jsonString,
|
|
580
|
-
(x) => PostDomainsDomain$inboundSchema.parse(JSON.parse(x)),
|
|
581
|
-
`Failed to parse 'PostDomainsDomain' from JSON`,
|
|
582
|
-
);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
/** @internal */
|
|
586
|
-
export const PostDomainsResponseBody$inboundSchema: z.ZodType<
|
|
587
|
-
PostDomainsResponseBody,
|
|
588
|
-
z.ZodTypeDef,
|
|
589
|
-
unknown
|
|
590
|
-
> = z.object({
|
|
591
|
-
domain: z.lazy(() => PostDomainsDomain$inboundSchema),
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
/** @internal */
|
|
595
|
-
export type PostDomainsResponseBody$Outbound = {
|
|
596
|
-
domain: PostDomainsDomain$Outbound;
|
|
597
|
-
};
|
|
598
|
-
|
|
599
|
-
/** @internal */
|
|
600
|
-
export const PostDomainsResponseBody$outboundSchema: z.ZodType<
|
|
601
|
-
PostDomainsResponseBody$Outbound,
|
|
602
|
-
z.ZodTypeDef,
|
|
603
|
-
PostDomainsResponseBody
|
|
604
|
-
> = z.object({
|
|
605
|
-
domain: z.lazy(() => PostDomainsDomain$outboundSchema),
|
|
606
|
-
});
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* @internal
|
|
610
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
611
|
-
*/
|
|
612
|
-
export namespace PostDomainsResponseBody$ {
|
|
613
|
-
/** @deprecated use `PostDomainsResponseBody$inboundSchema` instead. */
|
|
614
|
-
export const inboundSchema = PostDomainsResponseBody$inboundSchema;
|
|
615
|
-
/** @deprecated use `PostDomainsResponseBody$outboundSchema` instead. */
|
|
616
|
-
export const outboundSchema = PostDomainsResponseBody$outboundSchema;
|
|
617
|
-
/** @deprecated use `PostDomainsResponseBody$Outbound` instead. */
|
|
618
|
-
export type Outbound = PostDomainsResponseBody$Outbound;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
export function postDomainsResponseBodyToJSON(
|
|
622
|
-
postDomainsResponseBody: PostDomainsResponseBody,
|
|
623
|
-
): string {
|
|
624
|
-
return JSON.stringify(
|
|
625
|
-
PostDomainsResponseBody$outboundSchema.parse(postDomainsResponseBody),
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export function postDomainsResponseBodyFromJSON(
|
|
630
|
-
jsonString: string,
|
|
631
|
-
): SafeParseResult<PostDomainsResponseBody, SDKValidationError> {
|
|
632
|
-
return safeParse(
|
|
633
|
-
jsonString,
|
|
634
|
-
(x) => PostDomainsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
635
|
-
`Failed to parse 'PostDomainsResponseBody' from JSON`,
|
|
636
|
-
);
|
|
637
|
-
}
|