@distilled.cloud/porkbun 1.0.0-rc.13 → 1.0.0-rc.15
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 +3 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +4 -4
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +2 -6
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/porkbun.d.ts +1134 -32
- package/lib/services/porkbun.d.ts.map +1 -1
- package/lib/services/porkbun.js +1225 -434
- package/lib/services/porkbun.js.map +1 -1
- package/package.json +12 -10
- package/src/credentials.ts +10 -12
- package/src/errors.ts +1 -1
- package/src/index.ts +2 -6
- package/src/protocol.ts +21 -30
- package/src/retry.ts +2 -8
- package/src/services/porkbun.ts +3044 -913
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -32
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -46
package/lib/services/porkbun.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
1
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-porkbun). Do not edit.
|
|
2
4
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
5
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as C from "@distilled.cloud/core/category";
|
|
6
|
-
import * as T from "../traits.js";
|
|
7
|
-
import { PorkbunProtocol, } from "../protocol.js";
|
|
8
6
|
import { UnknownPorkbunError } from "../errors.js";
|
|
7
|
+
import { PorkbunProtocol } from "../protocol.js";
|
|
9
8
|
import * as Retry from "../retry.js";
|
|
9
|
+
import * as T from "../traits.js";
|
|
10
10
|
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
11
11
|
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
12
12
|
code: S.Number,
|
|
13
13
|
message: S.String,
|
|
14
14
|
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
15
15
|
}
|
|
16
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
21
|
+
}
|
|
16
22
|
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
23
|
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
18
24
|
code: S.Number,
|
|
@@ -25,6 +31,40 @@ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
|
25
31
|
message: S.String,
|
|
26
32
|
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
27
33
|
}
|
|
34
|
+
export const AccountVerifyPhoneConfirmRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
+
code: S.String,
|
|
36
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/verifyPhone/confirm", code: 200 }))).annotate({
|
|
37
|
+
identifier: "AccountVerifyPhoneConfirmRequest",
|
|
38
|
+
});
|
|
39
|
+
export const AccountVerifyPhoneConfirmResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
|
+
status: S.optional(S.String),
|
|
41
|
+
verified: S.optional(S.Boolean),
|
|
42
|
+
alreadyVerified: S.optional(S.Boolean),
|
|
43
|
+
emailVerified: S.optional(S.Boolean),
|
|
44
|
+
message: S.optional(S.String),
|
|
45
|
+
})).annotate({
|
|
46
|
+
identifier: "AccountVerifyPhoneConfirmResponse",
|
|
47
|
+
});
|
|
48
|
+
export const AccountVerifyPhoneSendRequestChannel = S.String;
|
|
49
|
+
export const AccountVerifyPhoneSendRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
+
channel: S.optional(AccountVerifyPhoneSendRequestChannel),
|
|
51
|
+
dryRun: S.optional(S.Boolean),
|
|
52
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/verifyPhone/send", code: 200 }))).annotate({
|
|
53
|
+
identifier: "AccountVerifyPhoneSendRequest",
|
|
54
|
+
});
|
|
55
|
+
export const AccountVerifyPhoneSendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
56
|
+
status: S.optional(S.String),
|
|
57
|
+
sent: S.optional(S.Boolean),
|
|
58
|
+
codeAlreadySent: S.optional(S.Boolean),
|
|
59
|
+
alreadyVerified: S.optional(S.Boolean),
|
|
60
|
+
channel: S.optional(S.String),
|
|
61
|
+
sentTo: S.optional(S.String),
|
|
62
|
+
expiresInMinutes: S.optional(S.Number),
|
|
63
|
+
retryAfterSeconds: S.optional(S.Number),
|
|
64
|
+
message: S.optional(S.String),
|
|
65
|
+
})).annotate({
|
|
66
|
+
identifier: "AccountVerifyPhoneSendResponse",
|
|
67
|
+
});
|
|
28
68
|
export const ApikeyRequestRequestCodeChallengeMethod = S.String;
|
|
29
69
|
export const ApikeyRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
70
|
name: S.optional(S.String),
|
|
@@ -32,9 +72,7 @@ export const ApikeyRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
32
72
|
codeChallengeMethod: S.optional(ApikeyRequestRequestCodeChallengeMethod),
|
|
33
73
|
sandbox: S.optional(S.Boolean),
|
|
34
74
|
returnUrl: S.optional(S.String),
|
|
35
|
-
}).pipe(T.Http({ method: "POST", uri: "/apikey/request", code: 200 }))).annotate({
|
|
36
|
-
identifier: "ApikeyRequestRequest",
|
|
37
|
-
});
|
|
75
|
+
}).pipe(T.Http({ method: "POST", uri: "/apikey/request", code: 200 }))).annotate({ identifier: "ApikeyRequestRequest" });
|
|
38
76
|
export const ApikeyRequestResponseDeliveryMode = S.String;
|
|
39
77
|
export const ApikeyRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
78
|
status: S.optional(S.String),
|
|
@@ -43,8 +81,177 @@ export const ApikeyRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
43
81
|
expiration: S.optional(S.String),
|
|
44
82
|
deliveryMode: S.optional(ApikeyRequestResponseDeliveryMode),
|
|
45
83
|
message: S.optional(S.String),
|
|
84
|
+
})).annotate({ identifier: "ApikeyRequestResponse" });
|
|
85
|
+
export const BulkDomainCheckDomainRequestDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
86
|
+
export const BulkDomainCheckDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
+
domains: BulkDomainCheckDomainRequestDomainsList,
|
|
88
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/checkDomain", code: 200 }))).annotate({
|
|
89
|
+
identifier: "BulkDomainCheckDomainRequest",
|
|
90
|
+
});
|
|
91
|
+
export const BulkDomainCheckDomainResponseDomainsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
92
|
+
export const BulkDomainCheckDomainResponseUnresolvedList = /*@__PURE__*/ S.Array(S.String);
|
|
93
|
+
export const BulkDomainCheckDomainResponseInvalidList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
94
|
+
export const BulkDomainCheckDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
+
status: S.optional(S.String),
|
|
96
|
+
checked: S.optional(S.Number),
|
|
97
|
+
domains: S.optional(BulkDomainCheckDomainResponseDomainsMap),
|
|
98
|
+
unresolved: S.optional(BulkDomainCheckDomainResponseUnresolvedList),
|
|
99
|
+
invalid: S.optional(BulkDomainCheckDomainResponseInvalidList),
|
|
100
|
+
limits: S.optional(S.Unknown),
|
|
46
101
|
})).annotate({
|
|
47
|
-
identifier: "
|
|
102
|
+
identifier: "BulkDomainCheckDomainResponse",
|
|
103
|
+
});
|
|
104
|
+
export const CloseoutBuyRequestPayWith = S.String;
|
|
105
|
+
export const CloseoutBuyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
106
|
+
domain: S.String.pipe(T.Label()),
|
|
107
|
+
cost: S.Number,
|
|
108
|
+
payWith: S.optional(CloseoutBuyRequestPayWith),
|
|
109
|
+
usdcCheckoutId: S.optional(S.String),
|
|
110
|
+
dryRun: S.optional(S.Boolean),
|
|
111
|
+
}).pipe(T.Http({ method: "POST", uri: "/closeout/buy/{domain}", code: 200 }))).annotate({ identifier: "CloseoutBuyRequest" });
|
|
112
|
+
export const CloseoutBuyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
+
status: S.optional(S.String),
|
|
114
|
+
domain: S.optional(S.String),
|
|
115
|
+
orderId: S.optional(S.Number),
|
|
116
|
+
closeoutId: S.optional(S.Number),
|
|
117
|
+
closeoutPrice: S.optional(S.Number),
|
|
118
|
+
renewalPrice: S.optional(S.Number),
|
|
119
|
+
totalPrice: S.optional(S.Number),
|
|
120
|
+
message: S.optional(S.String),
|
|
121
|
+
})).annotate({ identifier: "CloseoutBuyResponse" });
|
|
122
|
+
export const CloudflareCreateRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
123
|
+
domain: S.String.pipe(T.Label()),
|
|
124
|
+
type: S.String,
|
|
125
|
+
name: S.optional(S.String),
|
|
126
|
+
content: S.optional(S.String),
|
|
127
|
+
ttl: S.optional(S.Number),
|
|
128
|
+
priority: S.optional(S.Number),
|
|
129
|
+
proxied: S.optional(S.Boolean),
|
|
130
|
+
comment: S.optional(S.String),
|
|
131
|
+
data: S.optional(S.Unknown),
|
|
132
|
+
dryRun: S.optional(S.Boolean),
|
|
133
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/createRecord/{domain}", code: 200 }))).annotate({
|
|
134
|
+
identifier: "CloudflareCreateRecordRequest",
|
|
135
|
+
});
|
|
136
|
+
export const CloudflareCreateRecordResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
137
|
+
identifier: "CloudflareCreateRecordResponse",
|
|
138
|
+
});
|
|
139
|
+
export const CloudflareDeleteRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
+
domain: S.String.pipe(T.Label()),
|
|
141
|
+
recordId: S.String.pipe(T.Label()),
|
|
142
|
+
dryRun: S.optional(S.Boolean),
|
|
143
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/deleteRecord/{domain}/{recordId}", code: 200 }))).annotate({
|
|
144
|
+
identifier: "CloudflareDeleteRecordRequest",
|
|
145
|
+
});
|
|
146
|
+
export const CloudflareDeleteRecordResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
147
|
+
identifier: "CloudflareDeleteRecordResponse",
|
|
148
|
+
});
|
|
149
|
+
export const CloudflareEditRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
+
domain: S.String.pipe(T.Label()),
|
|
151
|
+
recordId: S.String.pipe(T.Label()),
|
|
152
|
+
type: S.optional(S.String),
|
|
153
|
+
name: S.optional(S.String),
|
|
154
|
+
content: S.optional(S.String),
|
|
155
|
+
ttl: S.optional(S.Number),
|
|
156
|
+
priority: S.optional(S.Number),
|
|
157
|
+
proxied: S.optional(S.Boolean),
|
|
158
|
+
comment: S.optional(S.String),
|
|
159
|
+
data: S.optional(S.Unknown),
|
|
160
|
+
dryRun: S.optional(S.Boolean),
|
|
161
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/editRecord/{domain}/{recordId}", code: 200 }))).annotate({
|
|
162
|
+
identifier: "CloudflareEditRecordRequest",
|
|
163
|
+
});
|
|
164
|
+
export const CloudflareEditRecordResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
165
|
+
identifier: "CloudflareEditRecordResponse",
|
|
166
|
+
});
|
|
167
|
+
export const CloudflareGetConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/cloudflare/getConnection", code: 200 }))).annotate({
|
|
168
|
+
identifier: "CloudflareGetConnectionRequest",
|
|
169
|
+
});
|
|
170
|
+
export const CloudflareGetConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
171
|
+
identifier: "CloudflareGetConnectionResponse",
|
|
172
|
+
});
|
|
173
|
+
export const CloudflareGetQueueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/cloudflare/getQueue", code: 200 }))).annotate({
|
|
174
|
+
identifier: "CloudflareGetQueueRequest",
|
|
175
|
+
});
|
|
176
|
+
export const CloudflareGetQueueResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
177
|
+
identifier: "CloudflareGetQueueResponse",
|
|
178
|
+
});
|
|
179
|
+
export const CloudflareGetRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
+
domain: S.String.pipe(T.Label()),
|
|
181
|
+
}).pipe(T.Http({ method: "GET", uri: "/cloudflare/getRecords/{domain}", code: 200 }))).annotate({
|
|
182
|
+
identifier: "CloudflareGetRecordsRequest",
|
|
183
|
+
});
|
|
184
|
+
export const CloudflareGetRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
185
|
+
identifier: "CloudflareGetRecordsResponse",
|
|
186
|
+
});
|
|
187
|
+
export const CloudflareGetZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
188
|
+
domain: S.String.pipe(T.Label()),
|
|
189
|
+
}).pipe(T.Http({ method: "GET", uri: "/cloudflare/getZone/{domain}", code: 200 }))).annotate({ identifier: "CloudflareGetZoneRequest" });
|
|
190
|
+
export const CloudflareGetZoneResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
191
|
+
identifier: "CloudflareGetZoneResponse",
|
|
192
|
+
});
|
|
193
|
+
export const CloudflareGetZoneSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
194
|
+
domain: S.String.pipe(T.Label()),
|
|
195
|
+
}).pipe(T.Http({ method: "GET", uri: "/cloudflare/getZoneSettings/{domain}", code: 200 }))).annotate({
|
|
196
|
+
identifier: "CloudflareGetZoneSettingsRequest",
|
|
197
|
+
});
|
|
198
|
+
export const CloudflareGetZoneSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
199
|
+
identifier: "CloudflareGetZoneSettingsResponse",
|
|
200
|
+
});
|
|
201
|
+
export const CloudflareInventoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/cloudflare/inventory", code: 200 }))).annotate({
|
|
202
|
+
identifier: "CloudflareInventoryRequest",
|
|
203
|
+
});
|
|
204
|
+
export const CloudflareInventoryResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
205
|
+
identifier: "CloudflareInventoryResponse",
|
|
206
|
+
});
|
|
207
|
+
export const CloudflareRollbackRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
+
domain: S.String.pipe(T.Label()),
|
|
209
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/rollback/{domain}", code: 200 }))).annotate({
|
|
210
|
+
identifier: "CloudflareRollbackRequest",
|
|
211
|
+
});
|
|
212
|
+
export const CloudflareRollbackResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
213
|
+
identifier: "CloudflareRollbackResponse",
|
|
214
|
+
});
|
|
215
|
+
export const CloudflareSetProxyRequestRecordsList = /*@__PURE__*/ S.Array(S.String);
|
|
216
|
+
export const CloudflareSetProxyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
+
domain: S.String.pipe(T.Label()),
|
|
218
|
+
enabled: S.Boolean,
|
|
219
|
+
records: S.optional(CloudflareSetProxyRequestRecordsList),
|
|
220
|
+
dryRun: S.optional(S.Boolean),
|
|
221
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/setProxy/{domain}", code: 200 }))).annotate({
|
|
222
|
+
identifier: "CloudflareSetProxyRequest",
|
|
223
|
+
});
|
|
224
|
+
export const CloudflareSetProxyResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
225
|
+
identifier: "CloudflareSetProxyResponse",
|
|
226
|
+
});
|
|
227
|
+
export const CloudflareSetZoneSettingsRequestSsl = S.String;
|
|
228
|
+
export const CloudflareSetZoneSettingsRequestAlwaysUseHttps = S.String;
|
|
229
|
+
export const CloudflareSetZoneSettingsRequestAutomaticHttpsRewrites = S.String;
|
|
230
|
+
export const CloudflareSetZoneSettingsRequestMinTlsVersion = S.String;
|
|
231
|
+
export const CloudflareSetZoneSettingsRequestDevelopmentMode = S.String;
|
|
232
|
+
export const CloudflareSetZoneSettingsRequestCacheLevel = S.String;
|
|
233
|
+
export const CloudflareSetZoneSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
234
|
+
domain: S.String.pipe(T.Label()),
|
|
235
|
+
ssl: S.optional(CloudflareSetZoneSettingsRequestSsl),
|
|
236
|
+
always_use_https: S.optional(CloudflareSetZoneSettingsRequestAlwaysUseHttps),
|
|
237
|
+
automatic_https_rewrites: S.optional(CloudflareSetZoneSettingsRequestAutomaticHttpsRewrites),
|
|
238
|
+
min_tls_version: S.optional(CloudflareSetZoneSettingsRequestMinTlsVersion),
|
|
239
|
+
development_mode: S.optional(CloudflareSetZoneSettingsRequestDevelopmentMode),
|
|
240
|
+
cache_level: S.optional(CloudflareSetZoneSettingsRequestCacheLevel),
|
|
241
|
+
dryRun: S.optional(S.Boolean),
|
|
242
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/setZoneSettings/{domain}", code: 200 }))).annotate({
|
|
243
|
+
identifier: "CloudflareSetZoneSettingsRequest",
|
|
244
|
+
});
|
|
245
|
+
export const CloudflareSetZoneSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
246
|
+
identifier: "CloudflareSetZoneSettingsResponse",
|
|
247
|
+
});
|
|
248
|
+
export const ConnectCloudflareRequestDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
249
|
+
export const ConnectCloudflareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
250
|
+
domains: ConnectCloudflareRequestDomainsList,
|
|
251
|
+
dryRun: S.optional(S.Boolean),
|
|
252
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/connect", code: 200 }))).annotate({ identifier: "ConnectCloudflareRequest" });
|
|
253
|
+
export const ConnectCloudflareResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
254
|
+
identifier: "ConnectCloudflareResponse",
|
|
48
255
|
});
|
|
49
256
|
export const CreateAccountInviteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
257
|
email: S.optional(S.String),
|
|
@@ -70,25 +277,24 @@ export const CreateDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
70
277
|
prio: S.optional(S.Number),
|
|
71
278
|
notes: S.optional(S.String),
|
|
72
279
|
dryRun: S.optional(S.Boolean),
|
|
73
|
-
}).pipe(T.Http({ method: "POST", uri: "/dns/create/{domain}", code: 200 }))).annotate({
|
|
74
|
-
|
|
75
|
-
});
|
|
280
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/create/{domain}", code: 200 }))).annotate({ identifier: "CreateDnsRequest" });
|
|
281
|
+
export const DnsWriteWarnings = /*@__PURE__*/ S.Array(S.String);
|
|
76
282
|
export const CreateDnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
283
|
status: S.optional(S.String),
|
|
78
284
|
id: S.optional(S.String),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
});
|
|
285
|
+
warnings: S.optional(DnsWriteWarnings),
|
|
286
|
+
})).annotate({ identifier: "CreateDnsResponse" });
|
|
82
287
|
export const CreateDomainRequestAgreeToTerms = S.String;
|
|
288
|
+
export const CreateDomainRequestPayWith = S.String;
|
|
83
289
|
export const CreateDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
290
|
domain: S.String.pipe(T.Label()),
|
|
85
291
|
cost: S.Number,
|
|
86
292
|
agreeToTerms: CreateDomainRequestAgreeToTerms,
|
|
87
293
|
whoisPrivacy: S.optional(S.Boolean),
|
|
294
|
+
payWith: S.optional(CreateDomainRequestPayWith),
|
|
295
|
+
usdcCheckoutId: S.optional(S.String),
|
|
88
296
|
dryRun: S.optional(S.Boolean),
|
|
89
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/create/{domain}", code: 200 }))).annotate({
|
|
90
|
-
identifier: "CreateDomainRequest",
|
|
91
|
-
});
|
|
297
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/create/{domain}", code: 200 }))).annotate({ identifier: "CreateDomainRequest" });
|
|
92
298
|
export const CreateDomainResponseLimitsAttempts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
299
|
TTL: S.optional(S.Number),
|
|
94
300
|
limit: S.optional(S.Number),
|
|
@@ -120,9 +326,7 @@ export const CreateDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
120
326
|
balance: S.optional(S.Number),
|
|
121
327
|
ttlRemaining: S.optional(S.Number),
|
|
122
328
|
requestId: S.optional(S.String),
|
|
123
|
-
})).annotate({
|
|
124
|
-
identifier: "CreateDomainResponse",
|
|
125
|
-
});
|
|
329
|
+
})).annotate({ identifier: "CreateDomainResponse" });
|
|
126
330
|
export const DryRunPreviewResponseOperation = S.String;
|
|
127
331
|
export const DryRunPreviewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
332
|
status: S.String,
|
|
@@ -143,25 +347,22 @@ export const DryRunPreviewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
143
347
|
withinMonthlySpendLimit: S.optional(S.Boolean),
|
|
144
348
|
message: S.optional(S.String),
|
|
145
349
|
requestId: S.optional(S.String),
|
|
146
|
-
})).annotate({
|
|
147
|
-
identifier: "DryRunPreviewResponse",
|
|
148
|
-
});
|
|
350
|
+
})).annotate({ identifier: "DryRunPreviewResponse" });
|
|
149
351
|
export const CreateDomainResponseBody = S.Unknown;
|
|
150
|
-
export const CreateDomainResponse2 = /*@__PURE__*/ S.suspend(() => CreateDomainResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
151
|
-
identifier: "CreateDomainResponse2",
|
|
152
|
-
});
|
|
352
|
+
export const CreateDomainResponse2 = /*@__PURE__*/ S.suspend(() => CreateDomainResponseBody.pipe(T.RawResponseRoot())).annotate({ identifier: "CreateDomainResponse2" });
|
|
153
353
|
export const CreateHostingRequestSku = S.String;
|
|
154
354
|
export const CreateHostingRequestAgreeToTerms = S.String;
|
|
355
|
+
export const CreateHostingRequestPayWith = S.String;
|
|
155
356
|
export const CreateHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
357
|
domain: S.String.pipe(T.Label()),
|
|
157
358
|
sku: CreateHostingRequestSku,
|
|
158
359
|
acknowledgedCost: S.Number,
|
|
159
360
|
agreeToTerms: CreateHostingRequestAgreeToTerms,
|
|
160
361
|
agreeToNameserverChange: S.optional(S.Boolean),
|
|
362
|
+
payWith: S.optional(CreateHostingRequestPayWith),
|
|
363
|
+
usdcCheckoutId: S.optional(S.String),
|
|
161
364
|
dryRun: S.optional(S.Boolean),
|
|
162
|
-
}).pipe(T.Http({ method: "POST", uri: "/hosting/create/{domain}", code: 200 }))).annotate({
|
|
163
|
-
identifier: "CreateHostingRequest",
|
|
164
|
-
});
|
|
365
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/create/{domain}", code: 200 }))).annotate({ identifier: "CreateHostingRequest" });
|
|
165
366
|
export const CreateHostingResponseHostingStatus = S.String;
|
|
166
367
|
export const CreateHostingResponseHosting = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
368
|
domain: S.optional(S.String),
|
|
@@ -190,16 +391,12 @@ export const CreateHostingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
190
391
|
charged: S.optional(S.Number),
|
|
191
392
|
cost: S.optional(CreateHostingResponseCost),
|
|
192
393
|
message: S.optional(S.String),
|
|
193
|
-
})).annotate({
|
|
194
|
-
identifier: "CreateHostingResponse",
|
|
195
|
-
});
|
|
394
|
+
})).annotate({ identifier: "CreateHostingResponse" });
|
|
196
395
|
export const CreateWebhookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
197
396
|
export const CreateWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
397
|
url: S.String,
|
|
199
398
|
events: S.optional(CreateWebhookRequestEventsList),
|
|
200
|
-
}).pipe(T.Http({ method: "POST", uri: "/webhook/create", code: 200 }))).annotate({
|
|
201
|
-
identifier: "CreateWebhookRequest",
|
|
202
|
-
});
|
|
399
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/create", code: 200 }))).annotate({ identifier: "CreateWebhookRequest" });
|
|
203
400
|
export const WebhookEndpointEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
204
401
|
export const WebhookEndpointStatus = S.String;
|
|
205
402
|
export const WebhookEndpoint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -213,43 +410,32 @@ export const WebhookEndpoint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
213
410
|
lastFailureDate: S.optional(S.NullOr(S.String)),
|
|
214
411
|
lastError: S.optional(S.NullOr(S.String)),
|
|
215
412
|
createDate: S.optional(S.String),
|
|
216
|
-
})).annotate({
|
|
217
|
-
identifier: "WebhookEndpoint",
|
|
218
|
-
});
|
|
413
|
+
})).annotate({ identifier: "WebhookEndpoint" });
|
|
219
414
|
export const WebhookEndpointResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
220
415
|
status: S.optional(S.String),
|
|
221
416
|
endpoint: S.optional(WebhookEndpoint),
|
|
222
|
-
})).annotate({
|
|
223
|
-
identifier: "WebhookEndpointResponse",
|
|
224
|
-
});
|
|
417
|
+
})).annotate({ identifier: "WebhookEndpointResponse" });
|
|
225
418
|
export const DeleteDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
226
419
|
domain: S.String.pipe(T.Label()),
|
|
227
420
|
id: S.String.pipe(T.Label()),
|
|
228
|
-
}).pipe(T.Http({ method: "POST", uri: "/dns/delete/{domain}/{id}", code: 200 }))).annotate({
|
|
229
|
-
identifier: "DeleteDnsRequest",
|
|
230
|
-
});
|
|
421
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/delete/{domain}/{id}", code: 200 }))).annotate({ identifier: "DeleteDnsRequest" });
|
|
231
422
|
export const BasicResponseStatus = S.String;
|
|
232
423
|
export const BasicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
424
|
+
warnings: S.optional(DnsWriteWarnings),
|
|
233
425
|
status: BasicResponseStatus,
|
|
234
426
|
message: S.optional(S.String),
|
|
235
427
|
code: S.optional(S.String),
|
|
236
428
|
})).annotate({ identifier: "BasicResponse" });
|
|
237
429
|
export const DeleteHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
238
430
|
domain: S.String.pipe(T.Label()),
|
|
239
|
-
}).pipe(T.Http({ method: "POST", uri: "/hosting/delete/{domain}", code: 200 }))).annotate({
|
|
240
|
-
identifier: "DeleteHostingRequest",
|
|
241
|
-
});
|
|
431
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/delete/{domain}", code: 200 }))).annotate({ identifier: "DeleteHostingRequest" });
|
|
242
432
|
export const DeleteWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
433
|
id: S.Number,
|
|
244
|
-
}).pipe(T.Http({ method: "POST", uri: "/webhook/delete", code: 200 }))).annotate({
|
|
245
|
-
identifier: "DeleteWebhookRequest",
|
|
246
|
-
});
|
|
434
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/delete", code: 200 }))).annotate({ identifier: "DeleteWebhookRequest" });
|
|
247
435
|
export const DeleteWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
436
|
status: S.optional(S.String),
|
|
249
437
|
message: S.optional(S.String),
|
|
250
|
-
})).annotate({
|
|
251
|
-
identifier: "DeleteWebhookResponse",
|
|
252
|
-
});
|
|
438
|
+
})).annotate({ identifier: "DeleteWebhookResponse" });
|
|
253
439
|
export const DeployHostingRequestFilesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
440
|
path: S.optional(S.String),
|
|
255
441
|
content: S.optional(S.String),
|
|
@@ -260,9 +446,7 @@ export const DeployHostingRequestFilesList = /*@__PURE__*/ S.Array(DeployHosting
|
|
|
260
446
|
export const DeployHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
261
447
|
domain: S.String.pipe(T.Label()),
|
|
262
448
|
files: DeployHostingRequestFilesList,
|
|
263
|
-
}).pipe(T.Http({ method: "POST", uri: "/hosting/deploy/{domain}", code: 200 }))).annotate({
|
|
264
|
-
identifier: "DeployHostingRequest",
|
|
265
|
-
});
|
|
449
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/deploy/{domain}", code: 200 }))).annotate({ identifier: "DeployHostingRequest" });
|
|
266
450
|
export const DeployHostingResponseDeployedList = /*@__PURE__*/ S.Array(S.String);
|
|
267
451
|
export const DeployHostingResponseSkippedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
452
|
path: S.optional(S.String),
|
|
@@ -275,8 +459,12 @@ export const DeployHostingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
275
459
|
status: S.optional(S.String),
|
|
276
460
|
deployed: S.optional(DeployHostingResponseDeployedList),
|
|
277
461
|
skipped: S.optional(DeployHostingResponseSkippedList),
|
|
278
|
-
})).annotate({
|
|
279
|
-
|
|
462
|
+
})).annotate({ identifier: "DeployHostingResponse" });
|
|
463
|
+
export const DisconnectCloudflareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/cloudflare/disconnect", code: 200 }))).annotate({
|
|
464
|
+
identifier: "DisconnectCloudflareRequest",
|
|
465
|
+
});
|
|
466
|
+
export const DisconnectCloudflareResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
467
|
+
identifier: "DisconnectCloudflareResponse",
|
|
280
468
|
});
|
|
281
469
|
export const DnsCreateDnssecRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
470
|
domain: S.String.pipe(T.Label()),
|
|
@@ -289,34 +477,57 @@ export const DnsCreateDnssecRecordRequest = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
289
477
|
keyDataProtocol: S.optional(S.String),
|
|
290
478
|
keyDataAlgo: S.optional(S.String),
|
|
291
479
|
keyDataPubKey: S.optional(S.String),
|
|
292
|
-
}).pipe(T.Http({
|
|
293
|
-
method: "POST",
|
|
294
|
-
uri: "/dns/createDnssecRecord/{domain}",
|
|
295
|
-
code: 200,
|
|
296
|
-
}))).annotate({
|
|
480
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/createDnssecRecord/{domain}", code: 200 }))).annotate({
|
|
297
481
|
identifier: "DnsCreateDnssecRecordRequest",
|
|
298
482
|
});
|
|
483
|
+
export const DnsCreateDnssecRecordResponseStatus = S.String;
|
|
484
|
+
export const DnsCreateDnssecRecordResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
485
|
+
warnings: S.optional(DnsWriteWarnings),
|
|
486
|
+
status: DnsCreateDnssecRecordResponseStatus,
|
|
487
|
+
message: S.optional(S.String),
|
|
488
|
+
code: S.optional(S.String),
|
|
489
|
+
})).annotate({
|
|
490
|
+
identifier: "DnsCreateDnssecRecordResponse",
|
|
491
|
+
});
|
|
299
492
|
export const DnsDeleteByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
300
493
|
domain: S.String.pipe(T.Label()),
|
|
301
494
|
type: S.String.pipe(T.Label()),
|
|
302
495
|
subdomain: S.String.pipe(T.Label()),
|
|
303
|
-
}).pipe(T.Http({
|
|
304
|
-
method: "POST",
|
|
305
|
-
uri: "/dns/deleteByNameType/{domain}/{type}/{subdomain}",
|
|
306
|
-
code: 200,
|
|
307
|
-
}))).annotate({
|
|
496
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/deleteByNameType/{domain}/{type}/{subdomain}", code: 200 }))).annotate({
|
|
308
497
|
identifier: "DnsDeleteByNameTypeRequest",
|
|
309
498
|
});
|
|
310
499
|
export const DnsDeleteDnssecRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
311
500
|
domain: S.String.pipe(T.Label()),
|
|
312
501
|
keytag: S.String.pipe(T.Label()),
|
|
313
|
-
}).pipe(T.Http({
|
|
314
|
-
method: "POST",
|
|
315
|
-
uri: "/dns/deleteDnssecRecord/{domain}/{keytag}",
|
|
316
|
-
code: 200,
|
|
317
|
-
}))).annotate({
|
|
502
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/deleteDnssecRecord/{domain}/{keytag}", code: 200 }))).annotate({
|
|
318
503
|
identifier: "DnsDeleteDnssecRecordRequest",
|
|
319
504
|
});
|
|
505
|
+
export const DnsDiffRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
506
|
+
domain: S.String.pipe(T.Label()),
|
|
507
|
+
snapshotId: S.Number.pipe(T.Label()),
|
|
508
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/diff/{domain}/{snapshotId}", code: 200 }))).annotate({ identifier: "DnsDiffRequest" });
|
|
509
|
+
export const DnsDiffResponseSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
510
|
+
id: S.optional(S.Number),
|
|
511
|
+
takenAt: S.optional(S.String),
|
|
512
|
+
reason: S.optional(S.String),
|
|
513
|
+
})).annotate({ identifier: "DnsDiffResponseSnapshot" });
|
|
514
|
+
export const DnsHistoryRecord = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
515
|
+
name: S.optional(S.String),
|
|
516
|
+
type: S.optional(S.String),
|
|
517
|
+
content: S.optional(S.String),
|
|
518
|
+
ttl: S.optional(S.Number),
|
|
519
|
+
prio: S.optional(S.NullOr(S.Number)),
|
|
520
|
+
})).annotate({ identifier: "DnsHistoryRecord" });
|
|
521
|
+
export const DnsDiffResponseMissingList = /*@__PURE__*/ S.Array(DnsHistoryRecord);
|
|
522
|
+
export const DnsDiffResponseExtraList = /*@__PURE__*/ S.Array(DnsHistoryRecord);
|
|
523
|
+
export const DnsDiffResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
524
|
+
status: S.optional(S.String),
|
|
525
|
+
domain: S.optional(S.String),
|
|
526
|
+
snapshot: S.optional(DnsDiffResponseSnapshot),
|
|
527
|
+
missing: S.optional(DnsDiffResponseMissingList),
|
|
528
|
+
extra: S.optional(DnsDiffResponseExtraList),
|
|
529
|
+
inSync: S.optional(S.Boolean),
|
|
530
|
+
})).annotate({ identifier: "DnsDiffResponse" });
|
|
320
531
|
export const DnsEditByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
532
|
domain: S.String.pipe(T.Label()),
|
|
322
533
|
type: S.String.pipe(T.Label()),
|
|
@@ -325,20 +536,10 @@ export const DnsEditByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
325
536
|
ttl: S.optional(S.Number),
|
|
326
537
|
prio: S.optional(S.Number),
|
|
327
538
|
notes: S.optional(S.String),
|
|
328
|
-
}).pipe(T.Http({
|
|
329
|
-
method: "POST",
|
|
330
|
-
uri: "/dns/editByNameType/{domain}/{type}/{subdomain}",
|
|
331
|
-
code: 200,
|
|
332
|
-
}))).annotate({
|
|
333
|
-
identifier: "DnsEditByNameTypeRequest",
|
|
334
|
-
});
|
|
539
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/editByNameType/{domain}/{type}/{subdomain}", code: 200 }))).annotate({ identifier: "DnsEditByNameTypeRequest" });
|
|
335
540
|
export const DnsGetDnssecRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
336
541
|
domain: S.String.pipe(T.Label()),
|
|
337
|
-
}).pipe(T.Http({
|
|
338
|
-
method: "POST",
|
|
339
|
-
uri: "/dns/getDnssecRecords/{domain}",
|
|
340
|
-
code: 200,
|
|
341
|
-
}))).annotate({
|
|
542
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/getDnssecRecords/{domain}", code: 200 }))).annotate({
|
|
342
543
|
identifier: "DnsGetDnssecRecordsRequest",
|
|
343
544
|
});
|
|
344
545
|
export const DnsGetDnssecRecordsResponseRecordsValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -357,12 +558,57 @@ export const DnsGetDnssecRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
357
558
|
})).annotate({
|
|
358
559
|
identifier: "DnsGetDnssecRecordsResponse",
|
|
359
560
|
});
|
|
561
|
+
export const DnsHistoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
562
|
+
domain: S.String.pipe(T.Label()),
|
|
563
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/history/{domain}", code: 200 }))).annotate({ identifier: "DnsHistoryRequest" });
|
|
564
|
+
export const DnsHistoryResponseRestorePointsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
565
|
+
id: S.optional(S.Number),
|
|
566
|
+
takenAt: S.optional(S.String),
|
|
567
|
+
reason: S.optional(S.String),
|
|
568
|
+
source: S.optional(S.String),
|
|
569
|
+
recordCount: S.optional(S.Number),
|
|
570
|
+
matchesLive: S.optional(S.Boolean),
|
|
571
|
+
})).annotate({
|
|
572
|
+
identifier: "DnsHistoryResponseRestorePointsItem",
|
|
573
|
+
});
|
|
574
|
+
export const DnsHistoryResponseRestorePointsList = /*@__PURE__*/ S.Array(DnsHistoryResponseRestorePointsItem);
|
|
575
|
+
export const DnsHistoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
576
|
+
status: S.optional(S.String),
|
|
577
|
+
domain: S.optional(S.String),
|
|
578
|
+
restorePoints: S.optional(DnsHistoryResponseRestorePointsList),
|
|
579
|
+
})).annotate({ identifier: "DnsHistoryResponse" });
|
|
580
|
+
export const DnsPreflightRequestIntent = S.String;
|
|
581
|
+
export const DnsPreflightRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
582
|
+
domain: S.String.pipe(T.Label()),
|
|
583
|
+
intent: S.optional(DnsPreflightRequestIntent.pipe(T.Query())),
|
|
584
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/preflight/{domain}", code: 200 }))).annotate({ identifier: "DnsPreflightRequest" });
|
|
585
|
+
export const DnsPreflightResponseBlockersList = /*@__PURE__*/ S.Array(S.String);
|
|
586
|
+
export const DnsPreflightResponseWarningsList = /*@__PURE__*/ S.Array(S.String);
|
|
587
|
+
export const DnsPreflightResponseChecksItemSeverity = S.String;
|
|
588
|
+
export const DnsPreflightResponseChecksItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
589
|
+
id: S.optional(S.String),
|
|
590
|
+
severity: S.optional(DnsPreflightResponseChecksItemSeverity),
|
|
591
|
+
ok: S.optional(S.Boolean),
|
|
592
|
+
title: S.optional(S.String),
|
|
593
|
+
detail: S.optional(S.String),
|
|
594
|
+
next_action: S.optional(S.String),
|
|
595
|
+
})).annotate({
|
|
596
|
+
identifier: "DnsPreflightResponseChecksItem",
|
|
597
|
+
});
|
|
598
|
+
export const DnsPreflightResponseChecksList = /*@__PURE__*/ S.Array(DnsPreflightResponseChecksItem);
|
|
599
|
+
export const DnsPreflightResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
600
|
+
status: S.optional(S.String),
|
|
601
|
+
domain: S.optional(S.String),
|
|
602
|
+
intent: S.optional(S.String),
|
|
603
|
+
safe: S.optional(S.Boolean),
|
|
604
|
+
blockers: S.optional(DnsPreflightResponseBlockersList),
|
|
605
|
+
warnings: S.optional(DnsPreflightResponseWarningsList),
|
|
606
|
+
checks: S.optional(DnsPreflightResponseChecksList),
|
|
607
|
+
})).annotate({ identifier: "DnsPreflightResponse" });
|
|
360
608
|
export const DnsRetrieveByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
361
609
|
domain: S.String.pipe(T.Label()),
|
|
362
610
|
id: S.String.pipe(T.Label()),
|
|
363
|
-
}).pipe(T.Http({ method: "POST", uri: "/dns/retrieve/{domain}/{id}", code: 200 }))).annotate({
|
|
364
|
-
identifier: "DnsRetrieveByIdRequest",
|
|
365
|
-
});
|
|
611
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/retrieve/{domain}/{id}", code: 200 }))).annotate({ identifier: "DnsRetrieveByIdRequest" });
|
|
366
612
|
export const DnsRecordsResponseCloudflare = S.String;
|
|
367
613
|
export const DnsRecordsResponseRecordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
614
|
id: S.optional(S.String),
|
|
@@ -380,9 +626,7 @@ export const DnsRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
380
626
|
status: S.String,
|
|
381
627
|
cloudflare: S.optional(DnsRecordsResponseCloudflare),
|
|
382
628
|
records: DnsRecordsResponseRecordsList,
|
|
383
|
-
})).annotate({
|
|
384
|
-
identifier: "DnsRecordsResponse",
|
|
385
|
-
});
|
|
629
|
+
})).annotate({ identifier: "DnsRecordsResponse" });
|
|
386
630
|
export const DnsRetrieveByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
387
631
|
domain: S.String.pipe(T.Label()),
|
|
388
632
|
type: S.String.pipe(T.Label()),
|
|
@@ -394,6 +638,23 @@ export const DnsRetrieveByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
394
638
|
}))).annotate({
|
|
395
639
|
identifier: "DnsRetrieveByNameTypeRequest",
|
|
396
640
|
});
|
|
641
|
+
export const DnsScanRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
642
|
+
domain: S.String.pipe(T.Label()),
|
|
643
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/scan/{domain}", code: 200 }))).annotate({ identifier: "DnsScanRequest" });
|
|
644
|
+
export const DnsRecordInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
645
|
+
name: S.optional(S.String),
|
|
646
|
+
type: S.optional(S.String),
|
|
647
|
+
content: S.optional(S.String),
|
|
648
|
+
ttl: S.optional(S.Number),
|
|
649
|
+
prio: S.optional(S.NullOr(S.Number)),
|
|
650
|
+
})).annotate({ identifier: "DnsRecordInput" });
|
|
651
|
+
export const DnsScanResponseRecordsList = /*@__PURE__*/ S.Array(DnsRecordInput);
|
|
652
|
+
export const DnsScanResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
653
|
+
status: S.optional(S.String),
|
|
654
|
+
domain: S.optional(S.String),
|
|
655
|
+
recordCount: S.optional(S.Number),
|
|
656
|
+
records: S.optional(DnsScanResponseRecordsList),
|
|
657
|
+
})).annotate({ identifier: "DnsScanResponse" });
|
|
397
658
|
export const DomainAddUrlForwardRequestType = S.String;
|
|
398
659
|
export const DomainAddUrlForwardRequestRedirectType = S.String;
|
|
399
660
|
export const DomainAddUrlForwardRequestIncludePath = S.String;
|
|
@@ -406,23 +667,37 @@ export const DomainAddUrlForwardRequest = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
406
667
|
redirectType: S.optional(DomainAddUrlForwardRequestRedirectType),
|
|
407
668
|
includePath: DomainAddUrlForwardRequestIncludePath,
|
|
408
669
|
wildcard: DomainAddUrlForwardRequestWildcard,
|
|
409
|
-
}).pipe(T.Http({
|
|
410
|
-
method: "POST",
|
|
411
|
-
uri: "/domain/addUrlForward/{domain}",
|
|
412
|
-
code: 200,
|
|
413
|
-
}))).annotate({
|
|
670
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/addUrlForward/{domain}", code: 200 }))).annotate({
|
|
414
671
|
identifier: "DomainAddUrlForwardRequest",
|
|
415
672
|
});
|
|
416
|
-
export const
|
|
673
|
+
export const DomainCancelTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
417
674
|
domain: S.String.pipe(T.Label()),
|
|
418
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/
|
|
419
|
-
identifier: "
|
|
675
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/cancelTransfer/{domain}", code: 200 }))).annotate({
|
|
676
|
+
identifier: "DomainCancelTransferRequest",
|
|
420
677
|
});
|
|
678
|
+
export const DomainCancelTransferResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
679
|
+
status: S.optional(S.String),
|
|
680
|
+
domain: S.optional(S.String),
|
|
681
|
+
cancelled: S.optional(S.Boolean),
|
|
682
|
+
previousStatus: S.optional(S.String),
|
|
683
|
+
transferStatus: S.optional(S.String),
|
|
684
|
+
withdrawnAtRegistry: S.optional(S.Boolean),
|
|
685
|
+
registryResultCode: S.optional(S.String),
|
|
686
|
+
registryCode: S.optional(S.String),
|
|
687
|
+
refunded: S.optional(S.Boolean),
|
|
688
|
+
refundAmount: S.optional(S.Number),
|
|
689
|
+
orderId: S.optional(S.Number),
|
|
690
|
+
message: S.optional(S.String),
|
|
691
|
+
})).annotate({
|
|
692
|
+
identifier: "DomainCancelTransferResponse",
|
|
693
|
+
});
|
|
694
|
+
export const DomainCheckDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
|
+
domain: S.String.pipe(T.Label()),
|
|
696
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/checkDomain/{domain}", code: 200 }))).annotate({ identifier: "DomainCheckDomainRequest" });
|
|
421
697
|
export const CheckDomainResponseResponseAvail = S.String;
|
|
422
698
|
export const CheckDomainResponseResponseFirstYearPromo = S.String;
|
|
423
699
|
export const CheckDomainResponseResponsePremium = S.String;
|
|
424
|
-
export const CheckDomainResponseResponseAdditionalRenewal =
|
|
425
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
700
|
+
export const CheckDomainResponseResponseAdditionalRenewal = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
426
701
|
type: S.optional(S.String),
|
|
427
702
|
price: S.optional(S.String),
|
|
428
703
|
regularPrice: S.optional(S.String),
|
|
@@ -461,46 +736,26 @@ export const CheckDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
461
736
|
response: CheckDomainResponseResponse,
|
|
462
737
|
limits: S.optional(CheckDomainResponseLimits),
|
|
463
738
|
ttlRemaining: S.optional(S.Number),
|
|
464
|
-
})).annotate({
|
|
465
|
-
identifier: "CheckDomainResponse",
|
|
466
|
-
});
|
|
739
|
+
})).annotate({ identifier: "CheckDomainResponse" });
|
|
467
740
|
export const DomainCreateGlueRequestIpsList = /*@__PURE__*/ S.Array(S.String);
|
|
468
741
|
export const DomainCreateGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
742
|
domain: S.String.pipe(T.Label()),
|
|
470
743
|
subdomain: S.String.pipe(T.Label()),
|
|
471
744
|
ips: DomainCreateGlueRequestIpsList,
|
|
472
|
-
}).pipe(T.Http({
|
|
473
|
-
method: "POST",
|
|
474
|
-
uri: "/domain/createGlue/{domain}/{subdomain}",
|
|
475
|
-
code: 200,
|
|
476
|
-
}))).annotate({
|
|
477
|
-
identifier: "DomainCreateGlueRequest",
|
|
478
|
-
});
|
|
745
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/createGlue/{domain}/{subdomain}", code: 200 }))).annotate({ identifier: "DomainCreateGlueRequest" });
|
|
479
746
|
export const DomainDeleteGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
480
747
|
domain: S.String.pipe(T.Label()),
|
|
481
748
|
subdomain: S.String.pipe(T.Label()),
|
|
482
|
-
}).pipe(T.Http({
|
|
483
|
-
method: "POST",
|
|
484
|
-
uri: "/domain/deleteGlue/{domain}/{subdomain}",
|
|
485
|
-
code: 200,
|
|
486
|
-
}))).annotate({
|
|
487
|
-
identifier: "DomainDeleteGlueRequest",
|
|
488
|
-
});
|
|
749
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/deleteGlue/{domain}/{subdomain}", code: 200 }))).annotate({ identifier: "DomainDeleteGlueRequest" });
|
|
489
750
|
export const DomainDeleteUrlForwardRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
490
751
|
domain: S.String.pipe(T.Label()),
|
|
491
752
|
id: S.String.pipe(T.Label()),
|
|
492
|
-
}).pipe(T.Http({
|
|
493
|
-
method: "POST",
|
|
494
|
-
uri: "/domain/deleteUrlForward/{domain}/{id}",
|
|
495
|
-
code: 200,
|
|
496
|
-
}))).annotate({
|
|
753
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/deleteUrlForward/{domain}/{id}", code: 200 }))).annotate({
|
|
497
754
|
identifier: "DomainDeleteUrlForwardRequest",
|
|
498
755
|
});
|
|
499
756
|
export const DomainGetContactsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
500
757
|
domain: S.String.pipe(T.Label()),
|
|
501
|
-
}).pipe(T.Http({ method: "GET", uri: "/domain/getContacts/{domain}", code: 200 }))).annotate({
|
|
502
|
-
identifier: "DomainGetContactsRequest",
|
|
503
|
-
});
|
|
758
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getContacts/{domain}", code: 200 }))).annotate({ identifier: "DomainGetContactsRequest" });
|
|
504
759
|
export const DomainContact = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
505
760
|
firstName: S.optional(S.String),
|
|
506
761
|
lastName: S.optional(S.String),
|
|
@@ -533,40 +788,27 @@ export const DomainGetContactsResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
533
788
|
});
|
|
534
789
|
export const DomainGetGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
535
790
|
domain: S.String.pipe(T.Label()),
|
|
536
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/getGlue/{domain}", code: 200 }))).annotate({
|
|
537
|
-
identifier: "DomainGetGlueRequest",
|
|
538
|
-
});
|
|
791
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/getGlue/{domain}", code: 200 }))).annotate({ identifier: "DomainGetGlueRequest" });
|
|
539
792
|
export const DomainGetGlueResponseHostsItemList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
540
793
|
export const DomainGetGlueResponseHostsList = /*@__PURE__*/ S.Array(DomainGetGlueResponseHostsItemList);
|
|
541
794
|
export const DomainGetGlueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
542
795
|
status: S.optional(S.String),
|
|
543
796
|
hosts: S.optional(DomainGetGlueResponseHostsList),
|
|
544
|
-
})).annotate({
|
|
545
|
-
identifier: "DomainGetGlueResponse",
|
|
546
|
-
});
|
|
797
|
+
})).annotate({ identifier: "DomainGetGlueResponse" });
|
|
547
798
|
export const DomainGetNsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
548
799
|
domain: S.String.pipe(T.Label()),
|
|
549
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/getNs/{domain}", code: 200 }))).annotate({
|
|
550
|
-
identifier: "DomainGetNsRequest",
|
|
551
|
-
});
|
|
800
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/getNs/{domain}", code: 200 }))).annotate({ identifier: "DomainGetNsRequest" });
|
|
552
801
|
export const DomainGetNsResponseNsList = /*@__PURE__*/ S.Array(S.String);
|
|
553
802
|
export const DomainGetNsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
554
803
|
status: S.optional(S.String),
|
|
555
804
|
ns: S.optional(DomainGetNsResponseNsList),
|
|
556
|
-
})).annotate({
|
|
557
|
-
identifier: "DomainGetNsResponse",
|
|
558
|
-
});
|
|
805
|
+
})).annotate({ identifier: "DomainGetNsResponse" });
|
|
559
806
|
export const DomainGetRegistrationRequirementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
807
|
tld: S.String.pipe(T.Label()),
|
|
561
|
-
}).pipe(T.Http({
|
|
562
|
-
method: "GET",
|
|
563
|
-
uri: "/domain/getRegistrationRequirements/{tld}",
|
|
564
|
-
code: 200,
|
|
565
|
-
}))).annotate({
|
|
808
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getRegistrationRequirements/{tld}", code: 200 }))).annotate({
|
|
566
809
|
identifier: "DomainGetRegistrationRequirementsRequest",
|
|
567
810
|
});
|
|
568
|
-
export const DomainGetRegistrationRequirementsResponse =
|
|
569
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
811
|
+
export const DomainGetRegistrationRequirementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
570
812
|
status: S.optional(S.String),
|
|
571
813
|
tld: S.optional(S.String),
|
|
572
814
|
apiRegisterable: S.optional(S.Boolean),
|
|
@@ -581,13 +823,29 @@ export const DomainGetRegistrationRequirementsResponse =
|
|
|
581
823
|
})).annotate({
|
|
582
824
|
identifier: "DomainGetRegistrationRequirementsResponse",
|
|
583
825
|
});
|
|
826
|
+
export const DomainGetTransferSetupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
827
|
+
domain: S.String.pipe(T.Label()),
|
|
828
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getTransferSetup/{domain}", code: 200 }))).annotate({
|
|
829
|
+
identifier: "DomainGetTransferSetupRequest",
|
|
830
|
+
});
|
|
831
|
+
export const DomainGetTransferSetupResponsePorkbunNameserversList = /*@__PURE__*/ S.Array(S.String);
|
|
832
|
+
export const DomainGetTransferSetupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
833
|
+
status: S.optional(S.String),
|
|
834
|
+
domain: S.optional(S.String),
|
|
835
|
+
transfer: S.optional(S.Unknown),
|
|
836
|
+
held: S.optional(S.Number),
|
|
837
|
+
zoneReady: S.optional(S.Number),
|
|
838
|
+
recordCount: S.optional(S.Number),
|
|
839
|
+
delegation: S.optional(S.Unknown),
|
|
840
|
+
dnssec: S.optional(S.Number),
|
|
841
|
+
nextStep: S.optional(S.Unknown),
|
|
842
|
+
porkbunNameservers: S.optional(DomainGetTransferSetupResponsePorkbunNameserversList),
|
|
843
|
+
})).annotate({
|
|
844
|
+
identifier: "DomainGetTransferSetupResponse",
|
|
845
|
+
});
|
|
584
846
|
export const DomainGetUrlForwardingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
585
847
|
domain: S.String.pipe(T.Label()),
|
|
586
|
-
}).pipe(T.Http({
|
|
587
|
-
method: "POST",
|
|
588
|
-
uri: "/domain/getUrlForwarding/{domain}",
|
|
589
|
-
code: 200,
|
|
590
|
-
}))).annotate({
|
|
848
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/getUrlForwarding/{domain}", code: 200 }))).annotate({
|
|
591
849
|
identifier: "DomainGetUrlForwardingRequest",
|
|
592
850
|
});
|
|
593
851
|
export const GetUrlForwardingResponseForwardsItemType = S.String;
|
|
@@ -609,8 +867,19 @@ export const GetUrlForwardingResponseForwardsList = /*@__PURE__*/ S.Array(GetUrl
|
|
|
609
867
|
export const GetUrlForwardingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
610
868
|
status: S.String,
|
|
611
869
|
forwards: GetUrlForwardingResponseForwardsList,
|
|
870
|
+
})).annotate({ identifier: "GetUrlForwardingResponse" });
|
|
871
|
+
export const DomainStartTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
872
|
+
domain: S.String.pipe(T.Label()),
|
|
873
|
+
force: S.optional(S.Boolean),
|
|
874
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/startTransfer/{domain}", code: 200 }))).annotate({
|
|
875
|
+
identifier: "DomainStartTransferRequest",
|
|
876
|
+
});
|
|
877
|
+
export const DomainStartTransferResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
878
|
+
status: S.optional(S.String),
|
|
879
|
+
domain: S.optional(S.String),
|
|
880
|
+
message: S.optional(S.String),
|
|
612
881
|
})).annotate({
|
|
613
|
-
identifier: "
|
|
882
|
+
identifier: "DomainStartTransferResponse",
|
|
614
883
|
});
|
|
615
884
|
export const DomainUpdateAutoRenewRequestStatus = S.String;
|
|
616
885
|
export const DomainUpdateAutoRenewRequestDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -618,15 +887,10 @@ export const DomainUpdateAutoRenewRequest = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
618
887
|
domain: S.String.pipe(T.Label()),
|
|
619
888
|
status: DomainUpdateAutoRenewRequestStatus,
|
|
620
889
|
domains: S.optional(DomainUpdateAutoRenewRequestDomainsList),
|
|
621
|
-
}).pipe(T.Http({
|
|
622
|
-
method: "POST",
|
|
623
|
-
uri: "/domain/updateAutoRenew/{domain}",
|
|
624
|
-
code: 200,
|
|
625
|
-
}))).annotate({
|
|
890
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/updateAutoRenew/{domain}", code: 200 }))).annotate({
|
|
626
891
|
identifier: "DomainUpdateAutoRenewRequest",
|
|
627
892
|
});
|
|
628
|
-
export const DomainUpdateAutoRenewResponseResultsValue =
|
|
629
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
893
|
+
export const DomainUpdateAutoRenewResponseResultsValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
630
894
|
status: S.optional(S.String),
|
|
631
895
|
message: S.optional(S.String),
|
|
632
896
|
})).annotate({
|
|
@@ -647,11 +911,7 @@ export const DomainUpdateContactsRequest = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
647
911
|
contact: S.optional(DomainContact),
|
|
648
912
|
dryRun: S.optional(S.Boolean),
|
|
649
913
|
addressValidationChoice: S.optional(DomainUpdateContactsRequestAddressValidationChoice),
|
|
650
|
-
}).pipe(T.Http({
|
|
651
|
-
method: "POST",
|
|
652
|
-
uri: "/domain/updateContacts/{domain}",
|
|
653
|
-
code: 200,
|
|
654
|
-
}))).annotate({
|
|
914
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/updateContacts/{domain}", code: 200 }))).annotate({
|
|
655
915
|
identifier: "DomainUpdateContactsRequest",
|
|
656
916
|
});
|
|
657
917
|
export const DomainUpdateContactsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -666,27 +926,35 @@ export const DomainUpdateGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
666
926
|
domain: S.String.pipe(T.Label()),
|
|
667
927
|
subdomain: S.String.pipe(T.Label()),
|
|
668
928
|
ips: DomainUpdateGlueRequestIpsList,
|
|
669
|
-
}).pipe(T.Http({
|
|
670
|
-
method: "POST",
|
|
671
|
-
uri: "/domain/updateGlue/{domain}/{subdomain}",
|
|
672
|
-
code: 200,
|
|
673
|
-
}))).annotate({
|
|
674
|
-
identifier: "DomainUpdateGlueRequest",
|
|
675
|
-
});
|
|
929
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/updateGlue/{domain}/{subdomain}", code: 200 }))).annotate({ identifier: "DomainUpdateGlueRequest" });
|
|
676
930
|
export const DomainUpdateNsRequestNsList = /*@__PURE__*/ S.Array(S.String);
|
|
677
931
|
export const DomainUpdateNsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
678
932
|
domain: S.String.pipe(T.Label()),
|
|
679
933
|
ns: DomainUpdateNsRequestNsList,
|
|
680
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/updateNs/{domain}", code: 200 }))).annotate({
|
|
681
|
-
|
|
934
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/updateNs/{domain}", code: 200 }))).annotate({ identifier: "DomainUpdateNsRequest" });
|
|
935
|
+
export const DomainUpdateTransferAuthCodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
936
|
+
domain: S.String.pipe(T.Label()),
|
|
937
|
+
authCode: S.String,
|
|
938
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/updateTransferAuthCode/{domain}", code: 200 }))).annotate({
|
|
939
|
+
identifier: "DomainUpdateTransferAuthCodeRequest",
|
|
940
|
+
});
|
|
941
|
+
export const DomainUpdateTransferAuthCodeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
942
|
+
status: S.optional(S.String),
|
|
943
|
+
domain: S.optional(S.String),
|
|
944
|
+
authCodeValid: S.optional(S.Boolean),
|
|
945
|
+
previousStatus: S.optional(S.String),
|
|
946
|
+
transferStatus: S.optional(S.String),
|
|
947
|
+
message: S.optional(S.String),
|
|
948
|
+
})).annotate({
|
|
949
|
+
identifier: "DomainUpdateTransferAuthCodeResponse",
|
|
682
950
|
});
|
|
683
951
|
export const EditDnsRequestType = S.String;
|
|
684
952
|
export const EditDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
685
953
|
domain: S.String.pipe(T.Label()),
|
|
686
954
|
id: S.String.pipe(T.Label()),
|
|
687
955
|
name: S.optional(S.String),
|
|
688
|
-
type: EditDnsRequestType,
|
|
689
|
-
content: S.String,
|
|
956
|
+
type: S.optional(EditDnsRequestType),
|
|
957
|
+
content: S.optional(S.String),
|
|
690
958
|
ttl: S.optional(S.Number),
|
|
691
959
|
prio: S.optional(S.Number),
|
|
692
960
|
notes: S.optional(S.String),
|
|
@@ -694,9 +962,7 @@ export const EditDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
694
962
|
export const EmailSetPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
963
|
emailAddress: S.String,
|
|
696
964
|
password: S.String.pipe(T.SensitiveValue({})),
|
|
697
|
-
}).pipe(T.Http({ method: "POST", uri: "/email/setPassword", code: 200 }))).annotate({
|
|
698
|
-
identifier: "EmailSetPasswordRequest",
|
|
699
|
-
});
|
|
965
|
+
}).pipe(T.Http({ method: "POST", uri: "/email/setPassword", code: 200 }))).annotate({ identifier: "EmailSetPasswordRequest" });
|
|
700
966
|
export const GetAccountInviteStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
701
967
|
token: S.String.pipe(T.Query()),
|
|
702
968
|
}).pipe(T.Http({ method: "GET", uri: "/account/inviteStatus", code: 200 }))).annotate({
|
|
@@ -713,9 +979,7 @@ export const GetAccountInviteStatusResponse = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
713
979
|
export const GetApikeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
714
980
|
requestToken: S.String,
|
|
715
981
|
codeVerifier: S.optional(S.String),
|
|
716
|
-
}).pipe(T.Http({ method: "POST", uri: "/apikey/retrieve", code: 200 }))).annotate({
|
|
717
|
-
identifier: "GetApikeyRequest",
|
|
718
|
-
});
|
|
982
|
+
}).pipe(T.Http({ method: "POST", uri: "/apikey/retrieve", code: 200 }))).annotate({ identifier: "GetApikeyRequest" });
|
|
719
983
|
export const GetApikeyResponseStatus = S.String;
|
|
720
984
|
export const GetApikeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
721
985
|
status: S.optional(GetApikeyResponseStatus),
|
|
@@ -723,12 +987,8 @@ export const GetApikeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
723
987
|
secretapikey: S.optional(S.String),
|
|
724
988
|
message: S.optional(S.String),
|
|
725
989
|
code: S.optional(S.String),
|
|
726
|
-
})).annotate({
|
|
727
|
-
|
|
728
|
-
});
|
|
729
|
-
export const GetApiSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/account/apiSettings", code: 200 }))).annotate({
|
|
730
|
-
identifier: "GetApiSettingsRequest",
|
|
731
|
-
});
|
|
990
|
+
})).annotate({ identifier: "GetApikeyResponse" });
|
|
991
|
+
export const GetApiSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/account/apiSettings", code: 200 }))).annotate({ identifier: "GetApiSettingsRequest" });
|
|
732
992
|
export const ApiSettingsResponseStatus = S.String;
|
|
733
993
|
export const ApiSettingsResponseSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
734
994
|
monthlySpendLimit: S.optional(S.NullOr(S.Number)),
|
|
@@ -739,38 +999,96 @@ export const ApiSettingsResponseSettings = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
739
999
|
})).annotate({
|
|
740
1000
|
identifier: "ApiSettingsResponseSettings",
|
|
741
1001
|
});
|
|
1002
|
+
export const ApiSettingsResponseSpendLimitSource = S.String;
|
|
1003
|
+
export const ApiSettingsResponseSpendLimit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1004
|
+
limit: S.optional(S.NullOr(S.Number)),
|
|
1005
|
+
source: S.optional(ApiSettingsResponseSpendLimitSource),
|
|
1006
|
+
spent: S.optional(S.Number),
|
|
1007
|
+
remaining: S.optional(S.NullOr(S.Number)),
|
|
1008
|
+
})).annotate({
|
|
1009
|
+
identifier: "ApiSettingsResponseSpendLimit",
|
|
1010
|
+
});
|
|
1011
|
+
export const ApiSettingsResponseTopupLimitSource = S.String;
|
|
1012
|
+
export const ApiSettingsResponseTopupLimit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1013
|
+
limit: S.optional(S.Number),
|
|
1014
|
+
source: S.optional(ApiSettingsResponseTopupLimitSource),
|
|
1015
|
+
added: S.optional(S.NullOr(S.Number)),
|
|
1016
|
+
})).annotate({
|
|
1017
|
+
identifier: "ApiSettingsResponseTopupLimit",
|
|
1018
|
+
});
|
|
742
1019
|
export const ApiSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
743
1020
|
status: S.optional(ApiSettingsResponseStatus),
|
|
744
1021
|
settings: S.optional(ApiSettingsResponseSettings),
|
|
745
1022
|
monthlySpend: S.optional(S.Number),
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
});
|
|
749
|
-
export const
|
|
750
|
-
|
|
751
|
-
|
|
1023
|
+
spendLimit: S.optional(ApiSettingsResponseSpendLimit),
|
|
1024
|
+
topupLimit: S.optional(ApiSettingsResponseTopupLimit),
|
|
1025
|
+
})).annotate({ identifier: "ApiSettingsResponse" });
|
|
1026
|
+
export const GetAutoTopupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/account/autoTopup", code: 200 }))).annotate({ identifier: "GetAutoTopupRequest" });
|
|
1027
|
+
export const AutoTopupResponseWarningsList = /*@__PURE__*/ S.Array(S.String);
|
|
1028
|
+
export const AutoTopupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1029
|
+
status: S.optional(S.String),
|
|
1030
|
+
enabled: S.optional(S.Boolean),
|
|
1031
|
+
threshold: S.optional(S.NullOr(S.Number)),
|
|
1032
|
+
amount: S.optional(S.NullOr(S.Number)),
|
|
1033
|
+
effectiveAmount: S.optional(S.Number),
|
|
1034
|
+
defaultAmount: S.optional(S.Number),
|
|
1035
|
+
paymentMethodOnFile: S.optional(S.Boolean),
|
|
1036
|
+
balance: S.optional(S.Number),
|
|
1037
|
+
chargesToday: S.optional(S.Number),
|
|
1038
|
+
chargesThisMonth: S.optional(S.Number),
|
|
1039
|
+
maxChargesPerDay: S.optional(S.Number),
|
|
1040
|
+
maxChargesPerMonth: S.optional(S.Number),
|
|
1041
|
+
warnings: S.optional(AutoTopupResponseWarningsList),
|
|
1042
|
+
})).annotate({ identifier: "AutoTopupResponse" });
|
|
1043
|
+
export const GetBalanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/account/balance", code: 200 }))).annotate({ identifier: "GetBalanceRequest" });
|
|
752
1044
|
export const BalanceResponseStatus = S.String;
|
|
753
1045
|
export const BalanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
754
1046
|
status: S.optional(BalanceResponseStatus),
|
|
755
1047
|
balance: S.optional(S.Number),
|
|
756
1048
|
display: S.optional(S.String),
|
|
757
|
-
})).annotate({
|
|
758
|
-
|
|
759
|
-
|
|
1049
|
+
})).annotate({ identifier: "BalanceResponse" });
|
|
1050
|
+
export const GetCloseoutRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1051
|
+
domain: S.String.pipe(T.Label()),
|
|
1052
|
+
}).pipe(T.Http({ method: "GET", uri: "/closeout/get/{domain}", code: 200 }))).annotate({ identifier: "GetCloseoutRequest" });
|
|
1053
|
+
export const CloseoutItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1054
|
+
closeoutId: S.optional(S.Number),
|
|
1055
|
+
domain: S.optional(S.String),
|
|
1056
|
+
tld: S.optional(S.String),
|
|
1057
|
+
price: S.optional(S.Number),
|
|
1058
|
+
providerRenewalPrice: S.optional(S.NullOr(S.Number)),
|
|
1059
|
+
renewalPrice: S.optional(S.NullOr(S.Number)),
|
|
1060
|
+
totalPrice: S.optional(S.NullOr(S.Number)),
|
|
1061
|
+
localDomain: S.optional(S.NullOr(S.Boolean)),
|
|
1062
|
+
age: S.optional(S.NullOr(S.Number)),
|
|
1063
|
+
registrationDate: S.optional(S.NullOr(S.String)),
|
|
1064
|
+
endTime: S.optional(S.NullOr(S.String)),
|
|
1065
|
+
nameLength: S.optional(S.NullOr(S.Number)),
|
|
1066
|
+
isIdn: S.optional(S.Boolean),
|
|
1067
|
+
estibotAppraisal: S.optional(S.NullOr(S.Number)),
|
|
1068
|
+
monthlyVisitors: S.optional(S.NullOr(S.Number)),
|
|
1069
|
+
inboundLinks: S.optional(S.NullOr(S.Number)),
|
|
1070
|
+
expiredRevenue: S.optional(S.NullOr(S.Number)),
|
|
1071
|
+
otherTldCount: S.optional(S.NullOr(S.Number)),
|
|
1072
|
+
})).annotate({ identifier: "CloseoutItem" });
|
|
1073
|
+
export const GetCloseoutResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1074
|
+
status: S.optional(S.String),
|
|
1075
|
+
available: S.optional(S.Boolean),
|
|
1076
|
+
closeout: S.optional(CloseoutItem),
|
|
1077
|
+
})).annotate({ identifier: "GetCloseoutResponse" });
|
|
1078
|
+
export const GetCloudflareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1079
|
+
domain: S.String.pipe(T.Label()),
|
|
1080
|
+
}).pipe(T.Http({ method: "GET", uri: "/cloudflare/get/{domain}", code: 200 }))).annotate({ identifier: "GetCloudflareRequest" });
|
|
1081
|
+
export const GetCloudflareResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "GetCloudflareResponse" });
|
|
760
1082
|
export const GetDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
761
1083
|
domain: S.String.pipe(T.Label()),
|
|
762
1084
|
}).pipe(T.Http({ method: "POST", uri: "/dns/retrieve/{domain}", code: 200 }))).annotate({ identifier: "GetDnsRequest" });
|
|
763
1085
|
export const GetDnsRecordByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
764
1086
|
domain: S.String.pipe(T.Label()),
|
|
765
1087
|
id: S.String.pipe(T.Label()),
|
|
766
|
-
}).pipe(T.Http({ method: "GET", uri: "/dns/retrieve/{domain}/{id}", code: 200 }))).annotate({
|
|
767
|
-
identifier: "GetDnsRecordByIdRequest",
|
|
768
|
-
});
|
|
1088
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/retrieve/{domain}/{id}", code: 200 }))).annotate({ identifier: "GetDnsRecordByIdRequest" });
|
|
769
1089
|
export const GetDnsRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
770
1090
|
domain: S.String.pipe(T.Label()),
|
|
771
|
-
}).pipe(T.Http({ method: "GET", uri: "/dns/retrieve/{domain}", code: 200 }))).annotate({
|
|
772
|
-
identifier: "GetDnsRecordsRequest",
|
|
773
|
-
});
|
|
1091
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/retrieve/{domain}", code: 200 }))).annotate({ identifier: "GetDnsRecordsRequest" });
|
|
774
1092
|
export const GetDnsRecordsByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
775
1093
|
domain: S.String.pipe(T.Label()),
|
|
776
1094
|
type: S.String.pipe(T.Label()),
|
|
@@ -784,24 +1102,18 @@ export const GetDnsRecordsByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
784
1102
|
});
|
|
785
1103
|
export const GetDnssecRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
786
1104
|
domain: S.String.pipe(T.Label()),
|
|
787
|
-
}).pipe(T.Http({ method: "GET", uri: "/dns/getDnssecRecords/{domain}", code: 200 }))).annotate({
|
|
788
|
-
identifier: "GetDnssecRecordsRequest",
|
|
789
|
-
});
|
|
1105
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/getDnssecRecords/{domain}", code: 200 }))).annotate({ identifier: "GetDnssecRecordsRequest" });
|
|
790
1106
|
export const GetDnssecRecordsResponseRecordsValue = DnsGetDnssecRecordsResponseRecordsValue;
|
|
791
1107
|
export const GetDnssecRecordsResponseRecordsMap = /*@__PURE__*/ S.Record(S.String, DnsGetDnssecRecordsResponseRecordsValue);
|
|
792
1108
|
export const GetDnssecRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
793
1109
|
status: S.optional(S.String),
|
|
794
1110
|
records: S.optional(GetDnssecRecordsResponseRecordsMap),
|
|
795
|
-
})).annotate({
|
|
796
|
-
identifier: "GetDnssecRecordsResponse",
|
|
797
|
-
});
|
|
1111
|
+
})).annotate({ identifier: "GetDnssecRecordsResponse" });
|
|
798
1112
|
export const GetDomainRequestIncludeLabels = S.String;
|
|
799
1113
|
export const GetDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
800
1114
|
domain: S.String.pipe(T.Label()),
|
|
801
1115
|
includeLabels: S.optional(GetDomainRequestIncludeLabels.pipe(T.Query())),
|
|
802
|
-
}).pipe(T.Http({ method: "GET", uri: "/domain/get/{domain}", code: 200 }))).annotate({
|
|
803
|
-
identifier: "GetDomainRequest",
|
|
804
|
-
});
|
|
1116
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/get/{domain}", code: 200 }))).annotate({ identifier: "GetDomainRequest" });
|
|
805
1117
|
export const GetDomainResponseDomain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
806
1118
|
domain: S.optional(S.String),
|
|
807
1119
|
status: S.optional(S.String),
|
|
@@ -813,40 +1125,28 @@ export const GetDomainResponseDomain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
813
1125
|
autoRenew: S.optional(S.Number),
|
|
814
1126
|
apiAccess: S.optional(S.Number),
|
|
815
1127
|
notLocal: S.optional(S.Number),
|
|
816
|
-
})).annotate({
|
|
817
|
-
identifier: "GetDomainResponseDomain",
|
|
818
|
-
});
|
|
1128
|
+
})).annotate({ identifier: "GetDomainResponseDomain" });
|
|
819
1129
|
export const GetDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
820
1130
|
status: S.optional(S.String),
|
|
821
1131
|
domain: S.optional(GetDomainResponseDomain),
|
|
822
|
-
})).annotate({
|
|
823
|
-
identifier: "GetDomainResponse",
|
|
824
|
-
});
|
|
1132
|
+
})).annotate({ identifier: "GetDomainResponse" });
|
|
825
1133
|
export const GetDomainGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
826
1134
|
domain: S.String.pipe(T.Label()),
|
|
827
|
-
}).pipe(T.Http({ method: "GET", uri: "/domain/getGlue/{domain}", code: 200 }))).annotate({
|
|
828
|
-
identifier: "GetDomainGlueRequest",
|
|
829
|
-
});
|
|
1135
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getGlue/{domain}", code: 200 }))).annotate({ identifier: "GetDomainGlueRequest" });
|
|
830
1136
|
export const GetDomainGlueResponseHostsItemList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
831
1137
|
export const GetDomainGlueResponseHostsList = /*@__PURE__*/ S.Array(GetDomainGlueResponseHostsItemList);
|
|
832
1138
|
export const GetDomainGlueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
833
1139
|
status: S.optional(S.String),
|
|
834
1140
|
hosts: S.optional(GetDomainGlueResponseHostsList),
|
|
835
|
-
})).annotate({
|
|
836
|
-
identifier: "GetDomainGlueResponse",
|
|
837
|
-
});
|
|
1141
|
+
})).annotate({ identifier: "GetDomainGlueResponse" });
|
|
838
1142
|
export const GetDomainNsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
839
1143
|
domain: S.String.pipe(T.Label()),
|
|
840
|
-
}).pipe(T.Http({ method: "GET", uri: "/domain/getNs/{domain}", code: 200 }))).annotate({
|
|
841
|
-
identifier: "GetDomainNsRequest",
|
|
842
|
-
});
|
|
1144
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getNs/{domain}", code: 200 }))).annotate({ identifier: "GetDomainNsRequest" });
|
|
843
1145
|
export const GetDomainNsResponseNsList = /*@__PURE__*/ S.Array(S.String);
|
|
844
1146
|
export const GetDomainNsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
845
1147
|
status: S.optional(S.String),
|
|
846
1148
|
ns: S.optional(GetDomainNsResponseNsList),
|
|
847
|
-
})).annotate({
|
|
848
|
-
identifier: "GetDomainNsResponse",
|
|
849
|
-
});
|
|
1149
|
+
})).annotate({ identifier: "GetDomainNsResponse" });
|
|
850
1150
|
export const GetDomainsRequestIncludeLabels = S.String;
|
|
851
1151
|
export const GetDomainsRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
852
1152
|
export const GetDomainsRequestAutoRenew = S.String;
|
|
@@ -864,11 +1164,8 @@ export const GetDomainsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
864
1164
|
apiAccess: S.optional(GetDomainsRequestApiAccess.pipe(T.Query())),
|
|
865
1165
|
sortName: S.optional(GetDomainsRequestSortName.pipe(T.Query())),
|
|
866
1166
|
sortDirection: S.optional(GetDomainsRequestSortDirection.pipe(T.Query())),
|
|
867
|
-
}).pipe(T.Http({ method: "GET", uri: "/domain/listAll", code: 200 }))).annotate({
|
|
868
|
-
|
|
869
|
-
});
|
|
870
|
-
export const DomainListAllResponseDomainsItemLabelsItem =
|
|
871
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1167
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/listAll", code: 200 }))).annotate({ identifier: "GetDomainsRequest" });
|
|
1168
|
+
export const DomainListAllResponseDomainsItemLabelsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
872
1169
|
id: S.optional(S.String),
|
|
873
1170
|
title: S.optional(S.String),
|
|
874
1171
|
color: S.optional(S.String),
|
|
@@ -896,23 +1193,15 @@ export const DomainListAllResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
896
1193
|
status: S.String,
|
|
897
1194
|
count: S.optional(S.Number),
|
|
898
1195
|
domains: DomainListAllResponseDomainsList,
|
|
899
|
-
})).annotate({
|
|
900
|
-
identifier: "DomainListAllResponse",
|
|
901
|
-
});
|
|
1196
|
+
})).annotate({ identifier: "DomainListAllResponse" });
|
|
902
1197
|
export const GetDomainUrlForwardingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
903
1198
|
domain: S.String.pipe(T.Label()),
|
|
904
|
-
}).pipe(T.Http({
|
|
905
|
-
method: "GET",
|
|
906
|
-
uri: "/domain/getUrlForwarding/{domain}",
|
|
907
|
-
code: 200,
|
|
908
|
-
}))).annotate({
|
|
1199
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getUrlForwarding/{domain}", code: 200 }))).annotate({
|
|
909
1200
|
identifier: "GetDomainUrlForwardingRequest",
|
|
910
1201
|
});
|
|
911
1202
|
export const GetHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
912
1203
|
domain: S.String.pipe(T.Label()),
|
|
913
|
-
}).pipe(T.Http({ method: "GET", uri: "/hosting/get/{domain}", code: 200 }))).annotate({
|
|
914
|
-
identifier: "GetHostingRequest",
|
|
915
|
-
});
|
|
1204
|
+
}).pipe(T.Http({ method: "GET", uri: "/hosting/get/{domain}", code: 200 }))).annotate({ identifier: "GetHostingRequest" });
|
|
916
1205
|
export const GetHostingResponseHosting = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
917
1206
|
domain: S.optional(S.String),
|
|
918
1207
|
product: S.optional(S.String),
|
|
@@ -930,9 +1219,71 @@ export const GetHostingResponseHosting = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
930
1219
|
export const GetHostingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
931
1220
|
status: S.optional(S.String),
|
|
932
1221
|
hosting: S.optional(S.NullOr(GetHostingResponseHosting)),
|
|
1222
|
+
})).annotate({ identifier: "GetHostingResponse" });
|
|
1223
|
+
export const GetInvoiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1224
|
+
orderId: S.Number.pipe(T.Label()),
|
|
1225
|
+
}).pipe(T.Http({ method: "GET", uri: "/account/invoice/{orderId}", code: 200 }))).annotate({ identifier: "GetInvoiceRequest" });
|
|
1226
|
+
export const GetInvoiceResponseInvoiceState = S.String;
|
|
1227
|
+
export const GetInvoiceResponseInvoiceBillTo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1228
|
+
company: S.optional(S.NullOr(S.String)),
|
|
1229
|
+
name: S.optional(S.NullOr(S.String)),
|
|
1230
|
+
address: S.optional(S.NullOr(S.String)),
|
|
1231
|
+
vat: S.optional(S.NullOr(S.String)),
|
|
1232
|
+
})).annotate({
|
|
1233
|
+
identifier: "GetInvoiceResponseInvoiceBillTo",
|
|
1234
|
+
});
|
|
1235
|
+
export const GetInvoiceResponseInvoicePaymentMethodsList = /*@__PURE__*/ S.Array(S.String);
|
|
1236
|
+
export const GetInvoiceResponseInvoiceItemsItemStatus = S.String;
|
|
1237
|
+
export const GetInvoiceResponseInvoiceItemsItemTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1238
|
+
export const GetInvoiceResponseInvoiceItemsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1239
|
+
domain: S.optional(S.String),
|
|
1240
|
+
product: S.optional(S.String),
|
|
1241
|
+
type: S.optional(S.String),
|
|
1242
|
+
years: S.optional(S.NullOr(S.Number)),
|
|
1243
|
+
expires: S.optional(S.NullOr(S.String)),
|
|
1244
|
+
status: S.optional(GetInvoiceResponseInvoiceItemsItemStatus),
|
|
1245
|
+
price_cents: S.optional(S.Number),
|
|
1246
|
+
discount_cents: S.optional(S.Number),
|
|
1247
|
+
tags: S.optional(GetInvoiceResponseInvoiceItemsItemTagsList),
|
|
933
1248
|
})).annotate({
|
|
934
|
-
identifier: "
|
|
1249
|
+
identifier: "GetInvoiceResponseInvoiceItemsItem",
|
|
935
1250
|
});
|
|
1251
|
+
export const GetInvoiceResponseInvoiceItemsList = /*@__PURE__*/ S.Array(GetInvoiceResponseInvoiceItemsItem);
|
|
1252
|
+
export const GetInvoiceResponseInvoice = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1253
|
+
id: S.optional(S.Number),
|
|
1254
|
+
date: S.optional(S.String),
|
|
1255
|
+
state: S.optional(GetInvoiceResponseInvoiceState),
|
|
1256
|
+
billTo: S.optional(GetInvoiceResponseInvoiceBillTo),
|
|
1257
|
+
paymentMethods: S.optional(GetInvoiceResponseInvoicePaymentMethodsList),
|
|
1258
|
+
items: S.optional(GetInvoiceResponseInvoiceItemsList),
|
|
1259
|
+
gross_cents: S.optional(S.Number),
|
|
1260
|
+
refunded_cents: S.optional(S.Number),
|
|
1261
|
+
total_cents: S.optional(S.Number),
|
|
1262
|
+
total: S.optional(S.String),
|
|
1263
|
+
currency: S.optional(S.String),
|
|
1264
|
+
url: S.optional(S.NullOr(S.String)),
|
|
1265
|
+
pdfUrl: S.optional(S.NullOr(S.String)),
|
|
1266
|
+
downloadUrl: S.optional(S.NullOr(S.String)),
|
|
1267
|
+
downloadExpires: S.optional(S.NullOr(S.String)),
|
|
1268
|
+
})).annotate({
|
|
1269
|
+
identifier: "GetInvoiceResponseInvoice",
|
|
1270
|
+
});
|
|
1271
|
+
export const GetInvoiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1272
|
+
status: S.optional(S.String),
|
|
1273
|
+
invoice: S.optional(GetInvoiceResponseInvoice),
|
|
1274
|
+
})).annotate({ identifier: "GetInvoiceResponse" });
|
|
1275
|
+
export const GetInvoicePdfRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1276
|
+
orderId: S.Number.pipe(T.Label()),
|
|
1277
|
+
}).pipe(T.Http({ method: "GET", uri: "/account/invoicePdf/{orderId}", code: 200 }))).annotate({ identifier: "GetInvoicePdfRequest" });
|
|
1278
|
+
export const GetInvoicePdfResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1279
|
+
status: S.optional(S.String),
|
|
1280
|
+
filename: S.optional(S.String),
|
|
1281
|
+
contentType: S.optional(S.String),
|
|
1282
|
+
sizeBytes: S.optional(S.Number),
|
|
1283
|
+
contentBase64: S.optional(S.String),
|
|
1284
|
+
downloadUrl: S.optional(S.NullOr(S.String)),
|
|
1285
|
+
downloadExpires: S.optional(S.NullOr(S.String)),
|
|
1286
|
+
})).annotate({ identifier: "GetInvoicePdfResponse" });
|
|
936
1287
|
export const GetIpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/ip", code: 200 }))).annotate({ identifier: "GetIpRequest" });
|
|
937
1288
|
export const IpResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
938
1289
|
status: S.String,
|
|
@@ -945,18 +1296,16 @@ export const GetPingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
945
1296
|
yourIp: S.String,
|
|
946
1297
|
xForwardedFor: S.optional(S.String),
|
|
947
1298
|
credentialsValid: S.optional(S.Boolean),
|
|
948
|
-
})).annotate({
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
export const GetPricingRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
1299
|
+
})).annotate({ identifier: "GetPingResponse" });
|
|
1300
|
+
export const GetPricingRequestTldsCase0List = /*@__PURE__*/ S.Array(S.String);
|
|
1301
|
+
export const GetPricingRequestTlds = S.Unknown;
|
|
952
1302
|
export const GetPricingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1303
|
+
tld: S.optional(S.String),
|
|
1304
|
+
tlds: S.optional(GetPricingRequestTlds),
|
|
1305
|
+
}).pipe(T.Http({ method: "POST", uri: "/pricing/get", code: 200 }))).annotate({ identifier: "GetPricingRequest" });
|
|
1306
|
+
export const GetPricingResponseUnsupportedList = /*@__PURE__*/ S.Array(S.String);
|
|
957
1307
|
export const GetPricingResponsePricingValueCouponsValueFirstYearOnly = S.String;
|
|
958
|
-
export const GetPricingResponsePricingValueCouponsValue =
|
|
959
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1308
|
+
export const GetPricingResponsePricingValueCouponsValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
960
1309
|
code: S.optional(S.String),
|
|
961
1310
|
max_per_user: S.optional(S.Number),
|
|
962
1311
|
first_year_only: S.optional(GetPricingResponsePricingValueCouponsValueFirstYearOnly),
|
|
@@ -978,16 +1327,16 @@ export const GetPricingResponsePricingValue = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
978
1327
|
export const GetPricingResponsePricingMap = /*@__PURE__*/ S.Record(S.String, GetPricingResponsePricingValue);
|
|
979
1328
|
export const GetPricingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
980
1329
|
status: S.optional(S.String),
|
|
1330
|
+
unsupported: S.optional(GetPricingResponseUnsupportedList),
|
|
981
1331
|
pricing: S.optional(GetPricingResponsePricingMap),
|
|
982
|
-
})).annotate({
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1332
|
+
})).annotate({ identifier: "GetPricingResponse" });
|
|
1333
|
+
export const GetPricingGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1334
|
+
tld: S.optional(S.String.pipe(T.Query())),
|
|
1335
|
+
tlds: S.optional(S.String.pipe(T.Query())),
|
|
1336
|
+
}).pipe(T.Http({ method: "GET", uri: "/pricing/get", code: 200 }))).annotate({ identifier: "GetPricingGetRequest" });
|
|
1337
|
+
export const GetPricingGetResponseUnsupportedList = /*@__PURE__*/ S.Array(S.String);
|
|
988
1338
|
export const GetPricingGetResponsePricingValueCouponsValueFirstYearOnly = S.String;
|
|
989
|
-
export const GetPricingGetResponsePricingValueCouponsValue =
|
|
990
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1339
|
+
export const GetPricingGetResponsePricingValueCouponsValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
991
1340
|
code: S.optional(S.String),
|
|
992
1341
|
max_per_user: S.optional(S.Number),
|
|
993
1342
|
first_year_only: S.optional(GetPricingGetResponsePricingValueCouponsValueFirstYearOnly),
|
|
@@ -996,8 +1345,7 @@ export const GetPricingGetResponsePricingValueCouponsValue =
|
|
|
996
1345
|
})).annotate({
|
|
997
1346
|
identifier: "GetPricingGetResponsePricingValueCouponsValue",
|
|
998
1347
|
});
|
|
999
|
-
export const GetPricingGetResponsePricingValueCouponsMap =
|
|
1000
|
-
/*@__PURE__*/ S.Record(S.String, GetPricingGetResponsePricingValueCouponsValue);
|
|
1348
|
+
export const GetPricingGetResponsePricingValueCouponsMap = /*@__PURE__*/ S.Record(S.String, GetPricingGetResponsePricingValueCouponsValue);
|
|
1001
1349
|
export const GetPricingGetResponsePricingValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1002
1350
|
registration: S.optional(S.String),
|
|
1003
1351
|
renewal: S.optional(S.String),
|
|
@@ -1010,10 +1358,9 @@ export const GetPricingGetResponsePricingValue = /*@__PURE__*/ S.suspend(() => S
|
|
|
1010
1358
|
export const GetPricingGetResponsePricingMap = /*@__PURE__*/ S.Record(S.String, GetPricingGetResponsePricingValue);
|
|
1011
1359
|
export const GetPricingGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1012
1360
|
status: S.optional(S.String),
|
|
1361
|
+
unsupported: S.optional(GetPricingGetResponseUnsupportedList),
|
|
1013
1362
|
pricing: S.optional(GetPricingGetResponsePricingMap),
|
|
1014
|
-
})).annotate({
|
|
1015
|
-
identifier: "GetPricingGetResponse",
|
|
1016
|
-
});
|
|
1363
|
+
})).annotate({ identifier: "GetPricingGetResponse" });
|
|
1017
1364
|
export const GetSslRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1018
1365
|
domain: S.String.pipe(T.Label()),
|
|
1019
1366
|
}).pipe(T.Http({ method: "POST", uri: "/ssl/retrieve/{domain}", code: 200 }))).annotate({ identifier: "GetSslRequest" });
|
|
@@ -1025,22 +1372,16 @@ export const GetSslResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1025
1372
|
})).annotate({ identifier: "GetSslResponse" });
|
|
1026
1373
|
export const GetSslRetrieveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1027
1374
|
domain: S.String.pipe(T.Label()),
|
|
1028
|
-
}).pipe(T.Http({ method: "GET", uri: "/ssl/retrieve/{domain}", code: 200 }))).annotate({
|
|
1029
|
-
identifier: "GetSslRetrieveRequest",
|
|
1030
|
-
});
|
|
1375
|
+
}).pipe(T.Http({ method: "GET", uri: "/ssl/retrieve/{domain}", code: 200 }))).annotate({ identifier: "GetSslRetrieveRequest" });
|
|
1031
1376
|
export const GetSslRetrieveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
1377
|
status: S.optional(S.String),
|
|
1033
1378
|
certificatechain: S.optional(S.String),
|
|
1034
1379
|
privatekey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1035
1380
|
publickey: S.optional(S.String),
|
|
1036
|
-
})).annotate({
|
|
1037
|
-
identifier: "GetSslRetrieveResponse",
|
|
1038
|
-
});
|
|
1381
|
+
})).annotate({ identifier: "GetSslRetrieveResponse" });
|
|
1039
1382
|
export const GetTransferGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1040
1383
|
domain: S.String.pipe(T.Label()),
|
|
1041
|
-
}).pipe(T.Http({ method: "GET", uri: "/domain/getTransfer/{domain}", code: 200 }))).annotate({
|
|
1042
|
-
identifier: "GetTransferGetRequest",
|
|
1043
|
-
});
|
|
1384
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getTransfer/{domain}", code: 200 }))).annotate({ identifier: "GetTransferGetRequest" });
|
|
1044
1385
|
export const GetTransferResponseStatus = S.String;
|
|
1045
1386
|
export const GetTransferResponseTransferStatus = S.String;
|
|
1046
1387
|
export const GetTransferResponseTransfer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1055,14 +1396,10 @@ export const GetTransferResponseTransfer = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
1055
1396
|
export const GetTransferResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1056
1397
|
status: S.optional(GetTransferResponseStatus),
|
|
1057
1398
|
transfer: S.optional(GetTransferResponseTransfer),
|
|
1058
|
-
})).annotate({
|
|
1059
|
-
identifier: "GetTransferResponse",
|
|
1060
|
-
});
|
|
1399
|
+
})).annotate({ identifier: "GetTransferResponse" });
|
|
1061
1400
|
export const GetWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1062
1401
|
id: S.Number.pipe(T.Label()),
|
|
1063
|
-
}).pipe(T.Http({ method: "GET", uri: "/webhook/get/{id}", code: 200 }))).annotate({
|
|
1064
|
-
identifier: "GetWebhookRequest",
|
|
1065
|
-
});
|
|
1402
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhook/get/{id}", code: 200 }))).annotate({ identifier: "GetWebhookRequest" });
|
|
1066
1403
|
export const HostingCreateWpCredentialsRequestRole = S.String;
|
|
1067
1404
|
export const HostingCreateWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1068
1405
|
domain: S.String.pipe(T.Label()),
|
|
@@ -1070,15 +1407,10 @@ export const HostingCreateWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S
|
|
|
1070
1407
|
acknowledgeFullAccess: S.optional(S.Boolean),
|
|
1071
1408
|
name: S.optional(S.String),
|
|
1072
1409
|
dryRun: S.optional(S.Boolean),
|
|
1073
|
-
}).pipe(T.Http({
|
|
1074
|
-
method: "POST",
|
|
1075
|
-
uri: "/hosting/createWpCredentials/{domain}",
|
|
1076
|
-
code: 200,
|
|
1077
|
-
}))).annotate({
|
|
1410
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/createWpCredentials/{domain}", code: 200 }))).annotate({
|
|
1078
1411
|
identifier: "HostingCreateWpCredentialsRequest",
|
|
1079
1412
|
});
|
|
1080
|
-
export const HostingCreateWpCredentialsResponseCredentials =
|
|
1081
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1413
|
+
export const HostingCreateWpCredentialsResponseCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1082
1414
|
username: S.optional(S.String),
|
|
1083
1415
|
applicationPassword: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1084
1416
|
role: S.optional(S.String),
|
|
@@ -1098,9 +1430,8 @@ export const HostingCreateWpCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1098
1430
|
export const HostingDeleteFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1099
1431
|
domain: S.String.pipe(T.Label()),
|
|
1100
1432
|
path: S.String,
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
});
|
|
1433
|
+
recursive: S.optional(S.Boolean),
|
|
1434
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/deleteFile/{domain}", code: 200 }))).annotate({ identifier: "HostingDeleteFileRequest" });
|
|
1104
1435
|
export const HostingDeleteFileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1105
1436
|
status: S.optional(S.String),
|
|
1106
1437
|
deleted: S.optional(S.String),
|
|
@@ -1113,11 +1444,7 @@ export const HostingDeleteWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S
|
|
|
1113
1444
|
all: S.optional(S.Boolean),
|
|
1114
1445
|
wpUser: S.optional(S.String),
|
|
1115
1446
|
dryRun: S.optional(S.Boolean),
|
|
1116
|
-
}).pipe(T.Http({
|
|
1117
|
-
method: "POST",
|
|
1118
|
-
uri: "/hosting/deleteWpCredentials/{domain}",
|
|
1119
|
-
code: 200,
|
|
1120
|
-
}))).annotate({
|
|
1447
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/deleteWpCredentials/{domain}", code: 200 }))).annotate({
|
|
1121
1448
|
identifier: "HostingDeleteWpCredentialsRequest",
|
|
1122
1449
|
});
|
|
1123
1450
|
export const HostingDeleteWpCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1129,29 +1456,20 @@ export const HostingDeleteWpCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1129
1456
|
});
|
|
1130
1457
|
export const HostingFilesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1131
1458
|
domain: S.String.pipe(T.Label()),
|
|
1132
|
-
}).pipe(T.Http({ method: "GET", uri: "/hosting/files/{domain}", code: 200 }))).annotate({
|
|
1133
|
-
identifier: "HostingFilesRequest",
|
|
1134
|
-
});
|
|
1459
|
+
}).pipe(T.Http({ method: "GET", uri: "/hosting/files/{domain}", code: 200 }))).annotate({ identifier: "HostingFilesRequest" });
|
|
1135
1460
|
export const HostingFilesResponseFilesList = /*@__PURE__*/ S.Array(S.String);
|
|
1136
1461
|
export const HostingFilesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1137
1462
|
status: S.optional(S.String),
|
|
1138
1463
|
path: S.optional(S.String),
|
|
1139
1464
|
files: S.optional(HostingFilesResponseFilesList),
|
|
1140
|
-
})).annotate({
|
|
1141
|
-
identifier: "HostingFilesResponse",
|
|
1142
|
-
});
|
|
1465
|
+
})).annotate({ identifier: "HostingFilesResponse" });
|
|
1143
1466
|
export const HostingGetWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1144
1467
|
domain: S.String.pipe(T.Label()),
|
|
1145
1468
|
wpUser: S.optional(S.String.pipe(T.Query())),
|
|
1146
|
-
}).pipe(T.Http({
|
|
1147
|
-
method: "GET",
|
|
1148
|
-
uri: "/hosting/getWpCredentials/{domain}",
|
|
1149
|
-
code: 200,
|
|
1150
|
-
}))).annotate({
|
|
1469
|
+
}).pipe(T.Http({ method: "GET", uri: "/hosting/getWpCredentials/{domain}", code: 200 }))).annotate({
|
|
1151
1470
|
identifier: "HostingGetWpCredentialsRequest",
|
|
1152
1471
|
});
|
|
1153
|
-
export const HostingGetWpCredentialsResponseCredentialsList =
|
|
1154
|
-
/*@__PURE__*/ S.Array(S.Unknown);
|
|
1472
|
+
export const HostingGetWpCredentialsResponseCredentialsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1155
1473
|
export const HostingGetWpCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1156
1474
|
status: S.optional(S.String),
|
|
1157
1475
|
wpUser: S.optional(S.String),
|
|
@@ -1162,18 +1480,12 @@ export const HostingGetWpCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
1162
1480
|
export const HostingMakeDirRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1163
1481
|
domain: S.String.pipe(T.Label()),
|
|
1164
1482
|
path: S.String,
|
|
1165
|
-
}).pipe(T.Http({ method: "POST", uri: "/hosting/makeDir/{domain}", code: 200 }))).annotate({
|
|
1166
|
-
identifier: "HostingMakeDirRequest",
|
|
1167
|
-
});
|
|
1483
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/makeDir/{domain}", code: 200 }))).annotate({ identifier: "HostingMakeDirRequest" });
|
|
1168
1484
|
export const HostingMakeDirResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1169
1485
|
status: S.optional(S.String),
|
|
1170
1486
|
created: S.optional(S.String),
|
|
1171
|
-
})).annotate({
|
|
1172
|
-
|
|
1173
|
-
});
|
|
1174
|
-
export const HostingPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/hosting/plans", code: 200 }))).annotate({
|
|
1175
|
-
identifier: "HostingPlansRequest",
|
|
1176
|
-
});
|
|
1487
|
+
})).annotate({ identifier: "HostingMakeDirResponse" });
|
|
1488
|
+
export const HostingPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/hosting/plans", code: 200 }))).annotate({ identifier: "HostingPlansRequest" });
|
|
1177
1489
|
export const HostingPlansResponsePlansItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1178
1490
|
product: S.optional(S.String),
|
|
1179
1491
|
plan: S.optional(S.String),
|
|
@@ -1191,9 +1503,22 @@ export const HostingPlansResponsePlansList = /*@__PURE__*/ S.Array(HostingPlansR
|
|
|
1191
1503
|
export const HostingPlansResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1192
1504
|
status: S.optional(S.String),
|
|
1193
1505
|
plans: S.optional(HostingPlansResponsePlansList),
|
|
1194
|
-
})).annotate({
|
|
1195
|
-
|
|
1196
|
-
|
|
1506
|
+
})).annotate({ identifier: "HostingPlansResponse" });
|
|
1507
|
+
export const ImportDnsRequestRecordsList = /*@__PURE__*/ S.Array(DnsRecordInput);
|
|
1508
|
+
export const ImportDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1509
|
+
domain: S.String.pipe(T.Label()),
|
|
1510
|
+
records: S.optional(ImportDnsRequestRecordsList),
|
|
1511
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/import/{domain}", code: 200 }))).annotate({ identifier: "ImportDnsRequest" });
|
|
1512
|
+
export const ImportDnsResponseFailuresList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1513
|
+
export const ImportDnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1514
|
+
status: S.optional(S.String),
|
|
1515
|
+
domain: S.optional(S.String),
|
|
1516
|
+
created: S.optional(S.Number),
|
|
1517
|
+
skipped: S.optional(S.Number),
|
|
1518
|
+
failed: S.optional(S.Number),
|
|
1519
|
+
failures: S.optional(ImportDnsResponseFailuresList),
|
|
1520
|
+
warnings: S.optional(DnsWriteWarnings),
|
|
1521
|
+
})).annotate({ identifier: "ImportDnsResponse" });
|
|
1197
1522
|
export const ListDomainsRequestIncludeLabels = S.String;
|
|
1198
1523
|
export const ListDomainsRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
1199
1524
|
export const ListDomainsRequestAutoRenew = S.String;
|
|
@@ -1211,9 +1536,36 @@ export const ListDomainsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1211
1536
|
apiAccess: S.optional(ListDomainsRequestApiAccess),
|
|
1212
1537
|
sortName: S.optional(ListDomainsRequestSortName),
|
|
1213
1538
|
sortDirection: S.optional(ListDomainsRequestSortDirection),
|
|
1214
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/listAll", code: 200 }))).annotate({
|
|
1215
|
-
|
|
1216
|
-
|
|
1539
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/listAll", code: 200 }))).annotate({ identifier: "ListDomainsRequest" });
|
|
1540
|
+
export const ListInvoicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1541
|
+
year: S.optional(S.Number.pipe(T.Query())),
|
|
1542
|
+
start: S.optional(S.Number.pipe(T.Query())),
|
|
1543
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1544
|
+
}).pipe(T.Http({ method: "GET", uri: "/account/invoices", code: 200 }))).annotate({ identifier: "ListInvoicesRequest" });
|
|
1545
|
+
export const ListInvoicesResponseInvoicesItemState = S.String;
|
|
1546
|
+
export const ListInvoicesResponseInvoicesItemDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
1547
|
+
export const ListInvoicesResponseInvoicesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1548
|
+
id: S.optional(S.Number),
|
|
1549
|
+
date: S.optional(S.String),
|
|
1550
|
+
state: S.optional(ListInvoicesResponseInvoicesItemState),
|
|
1551
|
+
total_cents: S.optional(S.Number),
|
|
1552
|
+
total: S.optional(S.String),
|
|
1553
|
+
itemCount: S.optional(S.Number),
|
|
1554
|
+
domains: S.optional(ListInvoicesResponseInvoicesItemDomainsList),
|
|
1555
|
+
url: S.optional(S.NullOr(S.String)),
|
|
1556
|
+
})).annotate({
|
|
1557
|
+
identifier: "ListInvoicesResponseInvoicesItem",
|
|
1558
|
+
});
|
|
1559
|
+
export const ListInvoicesResponseInvoicesList = /*@__PURE__*/ S.Array(ListInvoicesResponseInvoicesItem);
|
|
1560
|
+
export const ListInvoicesResponseYearsList = /*@__PURE__*/ S.Array(S.Number);
|
|
1561
|
+
export const ListInvoicesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1562
|
+
status: S.optional(S.String),
|
|
1563
|
+
invoices: S.optional(ListInvoicesResponseInvoicesList),
|
|
1564
|
+
total: S.optional(S.Number),
|
|
1565
|
+
start: S.optional(S.Number),
|
|
1566
|
+
limit: S.optional(S.Number),
|
|
1567
|
+
years: S.optional(ListInvoicesResponseYearsList),
|
|
1568
|
+
})).annotate({ identifier: "ListInvoicesResponse" });
|
|
1217
1569
|
export const ListMarketplaceListingsRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
1218
1570
|
export const ListMarketplaceListingsRequestSortName = S.String;
|
|
1219
1571
|
export const ListMarketplaceListingsRequestSortDirection = S.String;
|
|
@@ -1229,8 +1581,7 @@ export const ListMarketplaceListingsRequest = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
1229
1581
|
}).pipe(T.Http({ method: "POST", uri: "/marketplace/getAll", code: 200 }))).annotate({
|
|
1230
1582
|
identifier: "ListMarketplaceListingsRequest",
|
|
1231
1583
|
});
|
|
1232
|
-
export const ListMarketplaceListingsResponseDomainsItem =
|
|
1233
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1584
|
+
export const ListMarketplaceListingsResponseDomainsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1234
1585
|
create_date: S.optional(S.String),
|
|
1235
1586
|
domain: S.optional(S.String),
|
|
1236
1587
|
tld: S.optional(S.String),
|
|
@@ -1263,8 +1614,7 @@ export const ListMarketplaceListingsGetRequest = /*@__PURE__*/ S.suspend(() => S
|
|
|
1263
1614
|
}).pipe(T.Http({ method: "GET", uri: "/marketplace/getAll", code: 200 }))).annotate({
|
|
1264
1615
|
identifier: "ListMarketplaceListingsGetRequest",
|
|
1265
1616
|
});
|
|
1266
|
-
export const ListMarketplaceListingsGetResponseDomainsItem =
|
|
1267
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1617
|
+
export const ListMarketplaceListingsGetResponseDomainsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1268
1618
|
create_date: S.optional(S.String),
|
|
1269
1619
|
domain: S.optional(S.String),
|
|
1270
1620
|
tld: S.optional(S.String),
|
|
@@ -1273,8 +1623,7 @@ export const ListMarketplaceListingsGetResponseDomainsItem =
|
|
|
1273
1623
|
})).annotate({
|
|
1274
1624
|
identifier: "ListMarketplaceListingsGetResponseDomainsItem",
|
|
1275
1625
|
});
|
|
1276
|
-
export const ListMarketplaceListingsGetResponseDomainsList =
|
|
1277
|
-
/*@__PURE__*/ S.Array(ListMarketplaceListingsGetResponseDomainsItem);
|
|
1626
|
+
export const ListMarketplaceListingsGetResponseDomainsList = /*@__PURE__*/ S.Array(ListMarketplaceListingsGetResponseDomainsItem);
|
|
1278
1627
|
export const ListMarketplaceListingsGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1279
1628
|
status: S.optional(S.String),
|
|
1280
1629
|
count: S.optional(S.Number),
|
|
@@ -1283,9 +1632,7 @@ export const ListMarketplaceListingsGetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1283
1632
|
})).annotate({
|
|
1284
1633
|
identifier: "ListMarketplaceListingsGetResponse",
|
|
1285
1634
|
});
|
|
1286
|
-
export const ListTransfersGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/domain/listTransfers", code: 200 }))).annotate({
|
|
1287
|
-
identifier: "ListTransfersGetRequest",
|
|
1288
|
-
});
|
|
1635
|
+
export const ListTransfersGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/domain/listTransfers", code: 200 }))).annotate({ identifier: "ListTransfersGetRequest" });
|
|
1289
1636
|
export const ListTransfersResponseStatus = S.String;
|
|
1290
1637
|
export const ListTransfersResponseTransfersItemStatus = S.String;
|
|
1291
1638
|
export const ListTransfersResponseTransfersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1301,22 +1648,14 @@ export const ListTransfersResponseTransfersList = /*@__PURE__*/ S.Array(ListTran
|
|
|
1301
1648
|
export const ListTransfersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1302
1649
|
status: S.optional(ListTransfersResponseStatus),
|
|
1303
1650
|
transfers: S.optional(ListTransfersResponseTransfersList),
|
|
1304
|
-
})).annotate({
|
|
1305
|
-
|
|
1306
|
-
});
|
|
1307
|
-
export const ListWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/webhook/list", code: 200 }))).annotate({
|
|
1308
|
-
identifier: "ListWebhookRequest",
|
|
1309
|
-
});
|
|
1651
|
+
})).annotate({ identifier: "ListTransfersResponse" });
|
|
1652
|
+
export const ListWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/webhook/list", code: 200 }))).annotate({ identifier: "ListWebhookRequest" });
|
|
1310
1653
|
export const WebhookListResponseEndpointsList = /*@__PURE__*/ S.Array(WebhookEndpoint);
|
|
1311
1654
|
export const WebhookListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1312
1655
|
status: S.optional(S.String),
|
|
1313
1656
|
endpoints: S.optional(WebhookListResponseEndpointsList),
|
|
1314
|
-
})).annotate({
|
|
1315
|
-
|
|
1316
|
-
});
|
|
1317
|
-
export const MockDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/mock", code: 200 }))).annotate({
|
|
1318
|
-
identifier: "MockDirectoryRequest",
|
|
1319
|
-
});
|
|
1657
|
+
})).annotate({ identifier: "WebhookListResponse" });
|
|
1658
|
+
export const MockDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/mock", code: 200 }))).annotate({ identifier: "MockDirectoryRequest" });
|
|
1320
1659
|
export const MockDirectoryResponseEndpointsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1321
1660
|
method: S.optional(S.String),
|
|
1322
1661
|
path: S.optional(S.String),
|
|
@@ -1331,19 +1670,13 @@ export const MockDirectoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1331
1670
|
mock: S.optional(S.Boolean),
|
|
1332
1671
|
count: S.optional(S.Number),
|
|
1333
1672
|
endpoints: S.optional(MockDirectoryResponseEndpointsList),
|
|
1334
|
-
})).annotate({
|
|
1335
|
-
identifier: "MockDirectoryResponse",
|
|
1336
|
-
});
|
|
1673
|
+
})).annotate({ identifier: "MockDirectoryResponse" });
|
|
1337
1674
|
export const MockEndpointRequestStatus = S.String;
|
|
1338
1675
|
export const MockEndpointRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1339
1676
|
path: S.String.pipe(T.Label()),
|
|
1340
1677
|
status: S.optional(MockEndpointRequestStatus.pipe(T.Query())),
|
|
1341
|
-
}).pipe(T.Http({ method: "GET", uri: "/mock/{path}", code: 200 }))).annotate({
|
|
1342
|
-
|
|
1343
|
-
});
|
|
1344
|
-
export const MockEndpointResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1345
|
-
identifier: "MockEndpointResponse",
|
|
1346
|
-
});
|
|
1678
|
+
}).pipe(T.Http({ method: "GET", uri: "/mock/{path}", code: 200 }))).annotate({ identifier: "MockEndpointRequest" });
|
|
1679
|
+
export const MockEndpointResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "MockEndpointResponse" });
|
|
1347
1680
|
export const PingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/ping", code: 200 }))).annotate({ identifier: "PingRequest" });
|
|
1348
1681
|
export const PingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1349
1682
|
status: S.String,
|
|
@@ -1352,13 +1685,20 @@ export const PingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1352
1685
|
credentialsValid: S.optional(S.Boolean),
|
|
1353
1686
|
})).annotate({ identifier: "PingResponse" });
|
|
1354
1687
|
export const PostIpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/ip", code: 200 }))).annotate({ identifier: "PostIpRequest" });
|
|
1688
|
+
export const PreviewCloudflareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1689
|
+
domain: S.String.pipe(T.Label()),
|
|
1690
|
+
}).pipe(T.Http({ method: "GET", uri: "/cloudflare/preview/{domain}", code: 200 }))).annotate({ identifier: "PreviewCloudflareRequest" });
|
|
1691
|
+
export const PreviewCloudflareResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1692
|
+
identifier: "PreviewCloudflareResponse",
|
|
1693
|
+
});
|
|
1694
|
+
export const RenewDomainRequestPayWith = S.String;
|
|
1355
1695
|
export const RenewDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1356
1696
|
domain: S.String.pipe(T.Label()),
|
|
1357
1697
|
cost: S.Number,
|
|
1698
|
+
payWith: S.optional(RenewDomainRequestPayWith),
|
|
1699
|
+
usdcCheckoutId: S.optional(S.String),
|
|
1358
1700
|
dryRun: S.optional(S.Boolean),
|
|
1359
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/renew/{domain}", code: 200 }))).annotate({
|
|
1360
|
-
identifier: "RenewDomainRequest",
|
|
1361
|
-
});
|
|
1701
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/renew/{domain}", code: 200 }))).annotate({ identifier: "RenewDomainRequest" });
|
|
1362
1702
|
export const RenewDomainResponseLimitsAttempts = CreateDomainResponseLimitsAttempts;
|
|
1363
1703
|
export const RenewDomainResponseLimitsSuccess = CreateDomainResponseLimitsSuccess;
|
|
1364
1704
|
export const RenewDomainResponseLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1377,18 +1717,12 @@ export const RenewDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1377
1717
|
balance: S.optional(S.Number),
|
|
1378
1718
|
ttlRemaining: S.optional(S.Number),
|
|
1379
1719
|
requestId: S.optional(S.String),
|
|
1380
|
-
})).annotate({
|
|
1381
|
-
identifier: "RenewDomainResponse",
|
|
1382
|
-
});
|
|
1720
|
+
})).annotate({ identifier: "RenewDomainResponse" });
|
|
1383
1721
|
export const RenewDomainResponseBody = S.Unknown;
|
|
1384
|
-
export const RenewDomainResponse2 = /*@__PURE__*/ S.suspend(() => RenewDomainResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
1385
|
-
identifier: "RenewDomainResponse2",
|
|
1386
|
-
});
|
|
1722
|
+
export const RenewDomainResponse2 = /*@__PURE__*/ S.suspend(() => RenewDomainResponseBody.pipe(T.RawResponseRoot())).annotate({ identifier: "RenewDomainResponse2" });
|
|
1387
1723
|
export const ResendWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1388
1724
|
id: S.Number,
|
|
1389
|
-
}).pipe(T.Http({ method: "POST", uri: "/webhook/resend", code: 200 }))).annotate({
|
|
1390
|
-
identifier: "ResendWebhookRequest",
|
|
1391
|
-
});
|
|
1725
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/resend", code: 200 }))).annotate({ identifier: "ResendWebhookRequest" });
|
|
1392
1726
|
export const WebhookDeliveryStatus = S.String;
|
|
1393
1727
|
export const WebhookDelivery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1394
1728
|
id: S.optional(S.Number),
|
|
@@ -1404,42 +1738,58 @@ export const WebhookDelivery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1404
1738
|
createDate: S.optional(S.String),
|
|
1405
1739
|
deliveredDate: S.optional(S.NullOr(S.String)),
|
|
1406
1740
|
payload: S.optional(S.Unknown),
|
|
1407
|
-
})).annotate({
|
|
1408
|
-
identifier: "WebhookDelivery",
|
|
1409
|
-
});
|
|
1741
|
+
})).annotate({ identifier: "WebhookDelivery" });
|
|
1410
1742
|
export const WebhookResendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1411
1743
|
status: S.optional(S.String),
|
|
1412
1744
|
delivery: S.optional(WebhookDelivery),
|
|
1413
1745
|
message: S.optional(S.String),
|
|
1414
|
-
})).annotate({
|
|
1415
|
-
|
|
1416
|
-
});
|
|
1417
|
-
export const ResetSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/sandbox/reset", code: 200 }))).annotate({
|
|
1418
|
-
identifier: "ResetSandboxRequest",
|
|
1419
|
-
});
|
|
1746
|
+
})).annotate({ identifier: "WebhookResendResponse" });
|
|
1747
|
+
export const ResetSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/sandbox/reset", code: 200 }))).annotate({ identifier: "ResetSandboxRequest" });
|
|
1420
1748
|
export const ResetSandboxResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1421
1749
|
status: S.optional(S.String),
|
|
1422
1750
|
message: S.optional(S.String),
|
|
1423
1751
|
domainsCleared: S.optional(S.Number),
|
|
1424
1752
|
balance: S.optional(S.Number),
|
|
1425
1753
|
sandbox: S.optional(S.Boolean),
|
|
1754
|
+
})).annotate({ identifier: "ResetSandboxResponse" });
|
|
1755
|
+
export const RestoreDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1756
|
+
domain: S.String.pipe(T.Label()),
|
|
1757
|
+
snapshotId: S.Number,
|
|
1758
|
+
prune: S.optional(S.Boolean),
|
|
1759
|
+
dryRun: S.optional(S.Boolean),
|
|
1760
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/restore/{domain}", code: 200 }))).annotate({ identifier: "RestoreDnsRequest" });
|
|
1761
|
+
export const DnsRestoreResponseFailedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1762
|
+
name: S.optional(S.String),
|
|
1763
|
+
type: S.optional(S.String),
|
|
1764
|
+
reason: S.optional(S.String),
|
|
1426
1765
|
})).annotate({
|
|
1427
|
-
identifier: "
|
|
1766
|
+
identifier: "DnsRestoreResponseFailedItem",
|
|
1428
1767
|
});
|
|
1768
|
+
export const DnsRestoreResponseFailedList = /*@__PURE__*/ S.Array(DnsRestoreResponseFailedItem);
|
|
1769
|
+
export const DnsRestoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1770
|
+
warnings: S.optional(DnsWriteWarnings),
|
|
1771
|
+
status: S.optional(S.String),
|
|
1772
|
+
domain: S.optional(S.String),
|
|
1773
|
+
restoredFrom: S.optional(S.Number),
|
|
1774
|
+
previousStateSavedAs: S.optional(S.NullOr(S.Number)),
|
|
1775
|
+
restored: S.optional(S.Number),
|
|
1776
|
+
removed: S.optional(S.Number),
|
|
1777
|
+
failed: S.optional(DnsRestoreResponseFailedList),
|
|
1778
|
+
})).annotate({ identifier: "DnsRestoreResponse" });
|
|
1779
|
+
export const RetryCloudflareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1780
|
+
domain: S.String.pipe(T.Label()),
|
|
1781
|
+
}).pipe(T.Http({ method: "POST", uri: "/cloudflare/retry/{domain}", code: 200 }))).annotate({ identifier: "RetryCloudflareRequest" });
|
|
1782
|
+
export const RetryCloudflareResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "RetryCloudflareResponse" });
|
|
1429
1783
|
export const SandboxTopupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1430
1784
|
amount: S.optional(S.Number),
|
|
1431
|
-
}).pipe(T.Http({ method: "POST", uri: "/sandbox/topup", code: 200 }))).annotate({
|
|
1432
|
-
identifier: "SandboxTopupRequest",
|
|
1433
|
-
});
|
|
1785
|
+
}).pipe(T.Http({ method: "POST", uri: "/sandbox/topup", code: 200 }))).annotate({ identifier: "SandboxTopupRequest" });
|
|
1434
1786
|
export const SandboxTopupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1435
1787
|
status: S.optional(S.String),
|
|
1436
1788
|
granted: S.optional(S.Number),
|
|
1437
1789
|
balance: S.optional(S.Number),
|
|
1438
1790
|
display: S.optional(S.String),
|
|
1439
1791
|
sandbox: S.optional(S.Boolean),
|
|
1440
|
-
})).annotate({
|
|
1441
|
-
identifier: "SandboxTopupResponse",
|
|
1442
|
-
});
|
|
1792
|
+
})).annotate({ identifier: "SandboxTopupResponse" });
|
|
1443
1793
|
export const SandboxTriggerWebhookRequestEventType = S.String;
|
|
1444
1794
|
export const SandboxTriggerWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1445
1795
|
eventType: SandboxTriggerWebhookRequestEventType,
|
|
@@ -1457,26 +1807,118 @@ export const SandboxTriggerWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
1457
1807
|
})).annotate({
|
|
1458
1808
|
identifier: "SandboxTriggerWebhookResponse",
|
|
1459
1809
|
});
|
|
1810
|
+
export const SearchCloseoutRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1811
|
+
query: S.optional(S.String.pipe(T.Query())),
|
|
1812
|
+
tld: S.optional(S.String.pipe(T.Query())),
|
|
1813
|
+
nameLength: S.optional(S.Number.pipe(T.Query())),
|
|
1814
|
+
ageMin: S.optional(S.Number.pipe(T.Query())),
|
|
1815
|
+
ageMax: S.optional(S.Number.pipe(T.Query())),
|
|
1816
|
+
priceMin: S.optional(S.Number.pipe(T.Query())),
|
|
1817
|
+
priceMax: S.optional(S.Number.pipe(T.Query())),
|
|
1818
|
+
sortName: S.optional(S.String.pipe(T.Query())),
|
|
1819
|
+
sortDirection: S.optional(S.String.pipe(T.Query())),
|
|
1820
|
+
start: S.optional(S.Number.pipe(T.Query())),
|
|
1821
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1822
|
+
}).pipe(T.Http({ method: "GET", uri: "/closeout/search", code: 200 }))).annotate({ identifier: "SearchCloseoutRequest" });
|
|
1823
|
+
export const SearchCloseoutResponseCloseoutsList = /*@__PURE__*/ S.Array(CloseoutItem);
|
|
1824
|
+
export const SearchCloseoutResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1825
|
+
status: S.optional(S.String),
|
|
1826
|
+
count: S.optional(S.Number),
|
|
1827
|
+
totalAvailable: S.optional(S.Number),
|
|
1828
|
+
start: S.optional(S.Number),
|
|
1829
|
+
limit: S.optional(S.Number),
|
|
1830
|
+
closeouts: S.optional(SearchCloseoutResponseCloseoutsList),
|
|
1831
|
+
})).annotate({ identifier: "SearchCloseoutResponse" });
|
|
1832
|
+
export const SetAutoTopupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1833
|
+
enabled: S.Boolean,
|
|
1834
|
+
threshold: S.optional(S.Number),
|
|
1835
|
+
amount: S.optional(S.Number),
|
|
1836
|
+
dryRun: S.optional(S.Boolean),
|
|
1837
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/autoTopup", code: 200 }))).annotate({ identifier: "SetAutoTopupRequest" });
|
|
1460
1838
|
export const TestWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1461
1839
|
id: S.Number,
|
|
1462
|
-
}).pipe(T.Http({ method: "POST", uri: "/webhook/test", code: 200 }))).annotate({
|
|
1463
|
-
identifier: "TestWebhookRequest",
|
|
1464
|
-
});
|
|
1840
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/test", code: 200 }))).annotate({ identifier: "TestWebhookRequest" });
|
|
1465
1841
|
export const WebhookTestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1466
1842
|
status: S.optional(S.String),
|
|
1467
1843
|
eventId: S.optional(S.String),
|
|
1468
1844
|
message: S.optional(S.String),
|
|
1845
|
+
})).annotate({ identifier: "WebhookTestResponse" });
|
|
1846
|
+
export const TopupAccountCreditRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1847
|
+
amount: S.optional(S.Number),
|
|
1848
|
+
dryRun: S.optional(S.Boolean),
|
|
1849
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/topup", code: 200 }))).annotate({
|
|
1850
|
+
identifier: "TopupAccountCreditRequest",
|
|
1851
|
+
});
|
|
1852
|
+
export const TopupAccountCreditResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1853
|
+
status: S.optional(S.String),
|
|
1854
|
+
charged: S.optional(S.Number),
|
|
1855
|
+
chargedDisplay: S.optional(S.String),
|
|
1856
|
+
balance: S.optional(S.Number),
|
|
1857
|
+
balanceDisplay: S.optional(S.String),
|
|
1858
|
+
orderId: S.optional(S.Number),
|
|
1859
|
+
usedDefaultAmount: S.optional(S.Boolean),
|
|
1860
|
+
chargesToday: S.optional(S.Number),
|
|
1861
|
+
chargesThisMonth: S.optional(S.Number),
|
|
1862
|
+
simulated: S.optional(S.Boolean),
|
|
1863
|
+
message: S.optional(S.String),
|
|
1469
1864
|
})).annotate({
|
|
1470
|
-
identifier: "
|
|
1865
|
+
identifier: "TopupAccountCreditResponse",
|
|
1471
1866
|
});
|
|
1867
|
+
export const TopupCryptoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1868
|
+
amount: S.Number,
|
|
1869
|
+
dryRun: S.optional(S.Boolean),
|
|
1870
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/topupCrypto", code: 200 }))).annotate({ identifier: "TopupCryptoRequest" });
|
|
1871
|
+
export const TopupCryptoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1872
|
+
status: S.optional(S.String),
|
|
1873
|
+
checkoutId: S.optional(S.String),
|
|
1874
|
+
amount_cents: S.optional(S.Number),
|
|
1875
|
+
estimatedFee_cents: S.optional(S.Number),
|
|
1876
|
+
estimatedCredit_cents: S.optional(S.Number),
|
|
1877
|
+
currency: S.optional(S.String),
|
|
1878
|
+
network: S.optional(S.String),
|
|
1879
|
+
payUrl: S.optional(S.String),
|
|
1880
|
+
x402Url: S.optional(S.NullOr(S.String)),
|
|
1881
|
+
expiresAt: S.optional(S.NullOr(S.String)),
|
|
1882
|
+
message: S.optional(S.String),
|
|
1883
|
+
})).annotate({ identifier: "TopupCryptoResponse" });
|
|
1884
|
+
export const TopupCryptoStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1885
|
+
checkoutId: S.String.pipe(T.Label()),
|
|
1886
|
+
}).pipe(T.Http({ method: "GET", uri: "/account/topupCryptoStatus/{checkoutId}", code: 200 }))).annotate({ identifier: "TopupCryptoStatusRequest" });
|
|
1887
|
+
export const TopupCryptoStatusResponseState = S.String;
|
|
1888
|
+
export const TopupCryptoStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1889
|
+
status: S.optional(S.String),
|
|
1890
|
+
checkoutId: S.optional(S.String),
|
|
1891
|
+
state: S.optional(TopupCryptoStatusResponseState),
|
|
1892
|
+
credited: S.optional(S.Boolean),
|
|
1893
|
+
balance_cents: S.optional(S.Number),
|
|
1894
|
+
balance: S.optional(S.String),
|
|
1895
|
+
})).annotate({
|
|
1896
|
+
identifier: "TopupCryptoStatusResponse",
|
|
1897
|
+
});
|
|
1898
|
+
export const TopupMppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1899
|
+
amount: S.Number,
|
|
1900
|
+
dryRun: S.optional(S.Boolean),
|
|
1901
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/topupMpp", code: 200 }))).annotate({ identifier: "TopupMppRequest" });
|
|
1902
|
+
export const TopupMppResponseMethodsList = /*@__PURE__*/ S.Array(S.String);
|
|
1903
|
+
export const TopupMppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1904
|
+
status: S.optional(S.String),
|
|
1905
|
+
amount_cents: S.optional(S.Number),
|
|
1906
|
+
payUrl: S.optional(S.String),
|
|
1907
|
+
expiresAt: S.optional(S.String),
|
|
1908
|
+
protocol: S.optional(S.String),
|
|
1909
|
+
methods: S.optional(TopupMppResponseMethodsList),
|
|
1910
|
+
message: S.optional(S.String),
|
|
1911
|
+
})).annotate({ identifier: "TopupMppResponse" });
|
|
1912
|
+
export const TransferDomainRequestPayWith = S.String;
|
|
1472
1913
|
export const TransferDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1473
1914
|
domain: S.String.pipe(T.Label()),
|
|
1474
1915
|
authCode: S.String,
|
|
1475
1916
|
cost: S.Number,
|
|
1917
|
+
holdForDnsSetup: S.optional(S.Boolean),
|
|
1918
|
+
payWith: S.optional(TransferDomainRequestPayWith),
|
|
1919
|
+
usdcCheckoutId: S.optional(S.String),
|
|
1476
1920
|
dryRun: S.optional(S.Boolean),
|
|
1477
|
-
}).pipe(T.Http({ method: "POST", uri: "/domain/transfer/{domain}", code: 200 }))).annotate({
|
|
1478
|
-
identifier: "TransferDomainRequest",
|
|
1479
|
-
});
|
|
1921
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/transfer/{domain}", code: 200 }))).annotate({ identifier: "TransferDomainRequest" });
|
|
1480
1922
|
export const TransferDomainResponseStatus = S.String;
|
|
1481
1923
|
export const TransferDomainResponseLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1482
1924
|
attempts: S.optional(S.Unknown),
|
|
@@ -1494,12 +1936,24 @@ export const TransferDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1494
1936
|
ttlRemaining: S.optional(S.Number),
|
|
1495
1937
|
limits: S.optional(TransferDomainResponseLimits),
|
|
1496
1938
|
requestId: S.optional(S.String),
|
|
1497
|
-
})).annotate({
|
|
1498
|
-
identifier: "TransferDomainResponse",
|
|
1499
|
-
});
|
|
1939
|
+
})).annotate({ identifier: "TransferDomainResponse" });
|
|
1500
1940
|
export const TransferDomainResponseBody = S.Unknown;
|
|
1501
|
-
export const TransferDomainResponse2 = /*@__PURE__*/ S.suspend(() => TransferDomainResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
1502
|
-
|
|
1941
|
+
export const TransferDomainResponse2 = /*@__PURE__*/ S.suspend(() => TransferDomainResponseBody.pipe(T.RawResponseRoot())).annotate({ identifier: "TransferDomainResponse2" });
|
|
1942
|
+
export const TransferDomainPrepareRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1943
|
+
domain: S.String.pipe(T.Label()),
|
|
1944
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/prepareTransfer/{domain}", code: 200 }))).annotate({
|
|
1945
|
+
identifier: "TransferDomainPrepareRequest",
|
|
1946
|
+
});
|
|
1947
|
+
export const TransferDomainPrepareResponsePorkbunNameserversList = /*@__PURE__*/ S.Array(S.String);
|
|
1948
|
+
export const TransferDomainPrepareResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1949
|
+
status: S.optional(S.String),
|
|
1950
|
+
domain: S.optional(S.String),
|
|
1951
|
+
zoneReady: S.optional(S.Boolean),
|
|
1952
|
+
recordCount: S.optional(S.Number),
|
|
1953
|
+
message: S.optional(S.String),
|
|
1954
|
+
porkbunNameservers: S.optional(TransferDomainPrepareResponsePorkbunNameserversList),
|
|
1955
|
+
})).annotate({
|
|
1956
|
+
identifier: "TransferDomainPrepareResponse",
|
|
1503
1957
|
});
|
|
1504
1958
|
export const UpdateWebhookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
1505
1959
|
export const UpdateWebhookRequestStatus = S.String;
|
|
@@ -1508,18 +1962,14 @@ export const UpdateWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1508
1962
|
url: S.optional(S.String),
|
|
1509
1963
|
events: S.optional(UpdateWebhookRequestEventsList),
|
|
1510
1964
|
status: S.optional(UpdateWebhookRequestStatus),
|
|
1511
|
-
}).pipe(T.Http({ method: "POST", uri: "/webhook/update", code: 200 }))).annotate({
|
|
1512
|
-
identifier: "UpdateWebhookRequest",
|
|
1513
|
-
});
|
|
1965
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/update", code: 200 }))).annotate({ identifier: "UpdateWebhookRequest" });
|
|
1514
1966
|
export const WebhookDeliveriesRequestStatus = S.String;
|
|
1515
1967
|
export const WebhookDeliveriesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1516
1968
|
endpointId: S.optional(S.Number.pipe(T.Query())),
|
|
1517
1969
|
status: S.optional(WebhookDeliveriesRequestStatus.pipe(T.Query())),
|
|
1518
1970
|
start: S.optional(S.Number.pipe(T.Query())),
|
|
1519
1971
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1520
|
-
}).pipe(T.Http({ method: "GET", uri: "/webhook/deliveries", code: 200 }))).annotate({
|
|
1521
|
-
identifier: "WebhookDeliveriesRequest",
|
|
1522
|
-
});
|
|
1972
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhook/deliveries", code: 200 }))).annotate({ identifier: "WebhookDeliveriesRequest" });
|
|
1523
1973
|
export const WebhookDeliveryListResponseDeliveriesList = /*@__PURE__*/ S.Array(WebhookDelivery);
|
|
1524
1974
|
export const WebhookDeliveryListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1525
1975
|
status: S.optional(S.String),
|
|
@@ -1533,18 +1983,12 @@ export const WebhookDeliveryListResponse = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
1533
1983
|
});
|
|
1534
1984
|
export const WebhookDeliveryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1535
1985
|
id: S.Number.pipe(T.Label()),
|
|
1536
|
-
}).pipe(T.Http({ method: "GET", uri: "/webhook/delivery/{id}", code: 200 }))).annotate({
|
|
1537
|
-
identifier: "WebhookDeliveryRequest",
|
|
1538
|
-
});
|
|
1986
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhook/delivery/{id}", code: 200 }))).annotate({ identifier: "WebhookDeliveryRequest" });
|
|
1539
1987
|
export const WebhookDeliveryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1540
1988
|
status: S.optional(S.String),
|
|
1541
1989
|
delivery: S.optional(WebhookDelivery),
|
|
1542
|
-
})).annotate({
|
|
1543
|
-
|
|
1544
|
-
});
|
|
1545
|
-
export const WebhookEventTypesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/webhook/eventTypes", code: 200 }))).annotate({
|
|
1546
|
-
identifier: "WebhookEventTypesRequest",
|
|
1547
|
-
});
|
|
1990
|
+
})).annotate({ identifier: "WebhookDeliveryResponse" });
|
|
1991
|
+
export const WebhookEventTypesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/webhook/eventTypes", code: 200 }))).annotate({ identifier: "WebhookEventTypesRequest" });
|
|
1548
1992
|
export const WebhookEventTypesResponseEventTypesList = /*@__PURE__*/ S.Array(S.String);
|
|
1549
1993
|
export const WebhookEventTypesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1550
1994
|
status: S.optional(S.String),
|
|
@@ -1557,6 +2001,22 @@ export const WebhookRotateSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
1557
2001
|
}).pipe(T.Http({ method: "POST", uri: "/webhook/rotateSecret", code: 200 }))).annotate({
|
|
1558
2002
|
identifier: "WebhookRotateSecretRequest",
|
|
1559
2003
|
});
|
|
2004
|
+
/** Confirm the phone verification code Marks the account's phone number verified with the code from `POST /account/verifyPhone/send`. A wrong or expired code returns `PHONE_CODE_INVALID`; 10 wrong codes in an hour lock it for the hour (`PHONE_VERIFY_LIMIT`). The response says whether the email address is verified too, since purchases need both; the email is verified by the link in the verification email. */
|
|
2005
|
+
export const accountVerifyPhoneConfirm = /*@__PURE__*/ API.make(() => ({
|
|
2006
|
+
input: AccountVerifyPhoneConfirmRequest,
|
|
2007
|
+
output: AccountVerifyPhoneConfirmResponse,
|
|
2008
|
+
errors: [UnknownPorkbunError],
|
|
2009
|
+
protocol: PorkbunProtocol,
|
|
2010
|
+
retry: Retry.Retry,
|
|
2011
|
+
}));
|
|
2012
|
+
/** Text a verification code to the account's phone Purchases and top-ups need a verified email address and phone number, and accounts are not asked to verify the phone at signup, so `VERIFICATION_REQUIRED` is often the first error a new account sees. This texts (or calls) a code to the phone number already on the account; ask the person for it and pass it to `POST /account/verifyPhone/confirm`. The number cannot be chosen or changed over the API. One live code at a time: a second request within 10 minutes returns `codeAlreadySent` instead of texting again (send `"channel": "call"` if the text never arrived). Up to 5 sends a day (`PHONE_VERIFY_LIMIT`). Numbers in countries where the website requires a CAPTCHA for phone verification, or accounts with no phone number, get `PHONE_VERIFY_UNAVAILABLE` and verify on the website. Already verified: `alreadyVerified: true`. Not available on sandbox keys. */
|
|
2013
|
+
export const accountVerifyPhoneSend = /*@__PURE__*/ API.make(() => ({
|
|
2014
|
+
input: AccountVerifyPhoneSendRequest,
|
|
2015
|
+
output: AccountVerifyPhoneSendResponse,
|
|
2016
|
+
errors: [UnknownPorkbunError],
|
|
2017
|
+
protocol: PorkbunProtocol,
|
|
2018
|
+
retry: Retry.Retry,
|
|
2019
|
+
}));
|
|
1560
2020
|
/** Initiate an API key authorization request Initiate an API key authorization flow. No credentials are required. Returns a `requestToken` and `authUrl` that the account holder must visit (while logged in to Porkbun in that browser) to approve the request. The `authUrl` is valid for **30 minutes** (long enough for a brand-new user to create an account and verify their email); if it lapses, call this endpoint again for a fresh token. After approval, call `/apikey/retrieve` to get the public API key. By default (legacy flow) the secret API key is shown only once, in the user's browser, and must be pasted into the application manually. To let an agent receive the secret without a browser copy, supply a PKCE `codeChallenge` (see the parameter below): the key is then minted lazily and BOTH keys are returned once from `/apikey/retrieve` to the caller presenting the matching `codeVerifier`. **Rate limit:** 20 requests per IP per 3600 seconds. SANDBOX: pass `sandbox: true` to skip approval and get a sandbox key pair back immediately (both `apikey` and `secretapikey` in the response, plus `sandbox: true`). */
|
|
1561
2021
|
export const apikeyRequest = /*@__PURE__*/ API.make(() => ({
|
|
1562
2022
|
input: ApikeyRequestRequest,
|
|
@@ -1565,6 +2025,126 @@ export const apikeyRequest = /*@__PURE__*/ API.make(() => ({
|
|
|
1565
2025
|
protocol: PorkbunProtocol,
|
|
1566
2026
|
retry: Retry.Retry,
|
|
1567
2027
|
}));
|
|
2028
|
+
/** Check several domains at once Check availability and pricing for up to 25 domains in one call. Same endpoint as the single check, with a `domains` array in the body and no domain in the path. **Prefer this over looping the single check.** Checks are chunked per registry, so a batch is materially less work for us than the same names one at a time, and the budget reflects that: this draws on a separate allowance of **200 domains per 60 seconds** per account, against 10 checks per 10 seconds for the single form. Counting is per DOMAIN, not per request, so 25 domains spends 25 of the 200. **Sustained bulk checking.** An account that checks about 1,800 names over three hours while registering little of what it checks (fewer than one domain per 200 names over a day) is treated as scanning for the next 24 hours: its checks, single and bulk, on every API version, share a budget of 50 names per 5 minutes. Over it, the call is refused whole with `RATE_LIMIT_EXCEEDED`, `reason: "SUSTAINED_BULK_CHECKING"` and `retryAfter`; nothing is part-answered. Normal use, including checking a long list of candidate names once, is nowhere near this. Accounts that buy (100 or more registrations in a year) and affiliates sending orders are never treated as scanning, and a per-key limit from support overrides it. **Partial results are normal and must be read.** Three lists come back and they mean different things: - `domains` - answered, keyed by domain name, each value identical in shape to the single-check `response`. - `invalid` - entries that are not checkable at all (not a domain, unsupported TLD). One typo does not fail the call; the other names are still answered. - `unresolved` - the registry did not answer in time. These are **neither available nor taken**; treating them as unavailable is wrong. Retry them. Duplicates are removed before the budget is charged. If more than 25 remain, nothing is checked and `BULK_CHECK_TOO_MANY` is returned rather than a truncated answer. **Latency.** This is synchronous: one request, one complete answer, no polling. 25 domains across 25 different TLDs measures around 3 seconds, because the connection manager fans a batch that fits under every registry's cap out as a single command. A few registries cap low and **.de accepts one domain per command**, so a batch heavy in those becomes several sequential commands; if that would need more than 4, the call is refused with `BULK_CHECK_TOO_SLOW` rather than left to time out mid-response. */
|
|
2029
|
+
export const bulkDomainCheckDomain = /*@__PURE__*/ API.make(() => ({
|
|
2030
|
+
input: BulkDomainCheckDomainRequest,
|
|
2031
|
+
output: BulkDomainCheckDomainResponse,
|
|
2032
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2033
|
+
protocol: PorkbunProtocol,
|
|
2034
|
+
retry: Retry.Retry,
|
|
2035
|
+
}));
|
|
2036
|
+
/** Buy a closeout outright **Spends account credit, or pays directly in USDC with `"payWith": "usdc"` (HTTP 402, then repeat with `PAYMENT-SIGNATURE`; kept as account credit if the claim fails).** Counts toward the monthly API spend limit. Buys a closeout at its current price and claims the name with the provider in one call. Send `cost` as the exact `totalPrice` from `/closeout/get/{domain}`; any other value is refused with `COST_MISMATCH` so a caller can never be charged a price it did not name. `dryRun: true` with `cost: 0` returns a quote and charges nothing. Honours `Idempotency-Key`. **The domain does not arrive immediately.** Claiming reserves it; the provider then has to release it, which usually takes a few days. Poll `/domain/listAll` or subscribe to the `domain.registered` webhook rather than expecting it in your account when this returns. Every post-charge failure refunds automatically and says so via `refunded: true` — including losing the race to another buyer (`CLOSEOUT_UNAVAILABLE`) and the price moving between quote and claim (`COST_MISMATCH`). Closeouts are first-come at a fixed price, so a lost race is not worth retrying on the same name. Not available with a sandbox key (`SANDBOX_UNSUPPORTED`): the inventory provider has no test environment, so a purchase cannot be rehearsed without claiming a real name. Use `dryRun` against a live key instead — it validates and prices without charging. Eligibility is the same as registering a domain, plus verified email and phone. There is no account-age or prior-order requirement — a first-time customer can buy a closeout, which matters because listings are first-come and often gone within minutes. An account that support has blocked from auctions and closeouts (past-due invoices, or an auction terms violation) returns `CLOSEOUT_NOT_ELIGIBLE`, which is not retryable. */
|
|
2037
|
+
export const closeoutBuy = /*@__PURE__*/ API.make(() => ({
|
|
2038
|
+
input: CloseoutBuyRequest,
|
|
2039
|
+
output: CloseoutBuyResponse,
|
|
2040
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownPorkbunError],
|
|
2041
|
+
protocol: PorkbunProtocol,
|
|
2042
|
+
retry: Retry.Retry,
|
|
2043
|
+
}));
|
|
2044
|
+
/** Create a DNS record in the domain's Cloudflare zone **This writes to the Cloudflare zone that actually answers for the domain**, unlike `/dns/*`, which manages Porkbun's nameservers and no longer affects resolution once a domain has moved. `name` accepts `@` for the apex or a bare label. MX requires `priority`. `proxied` applies to A/AAAA/CNAME only. Supports `dryRun`. */
|
|
2045
|
+
export const cloudflareCreateRecord = /*@__PURE__*/ API.make(() => ({
|
|
2046
|
+
input: CloudflareCreateRecordRequest,
|
|
2047
|
+
output: CloudflareCreateRecordResponse,
|
|
2048
|
+
errors: [UnknownPorkbunError],
|
|
2049
|
+
protocol: PorkbunProtocol,
|
|
2050
|
+
retry: Retry.Retry,
|
|
2051
|
+
}));
|
|
2052
|
+
/** Delete a DNS record from the domain's Cloudflare zone **This writes to the Cloudflare zone that actually answers for the domain**, unlike `/dns/*`, which manages Porkbun's nameservers and no longer affects resolution once a domain has moved. The record is read before deletion, so the response reports exactly what was removed and a bad id fails before anything is destroyed. Supports `dryRun`. */
|
|
2053
|
+
export const cloudflareDeleteRecord = /*@__PURE__*/ API.make(() => ({
|
|
2054
|
+
input: CloudflareDeleteRecordRequest,
|
|
2055
|
+
output: CloudflareDeleteRecordResponse,
|
|
2056
|
+
errors: [UnknownPorkbunError],
|
|
2057
|
+
protocol: PorkbunProtocol,
|
|
2058
|
+
retry: Retry.Retry,
|
|
2059
|
+
}));
|
|
2060
|
+
/** Update a DNS record in the domain's Cloudflare zone **This writes to the Cloudflare zone that actually answers for the domain**, unlike `/dns/*`, which manages Porkbun's nameservers and no longer affects resolution once a domain has moved. Partial update: fields you omit keep their current value. The response carries both the new record and the `previous` one. Supports `dryRun`. */
|
|
2061
|
+
export const cloudflareEditRecord = /*@__PURE__*/ API.make(() => ({
|
|
2062
|
+
input: CloudflareEditRecordRequest,
|
|
2063
|
+
output: CloudflareEditRecordResponse,
|
|
2064
|
+
errors: [UnknownPorkbunError],
|
|
2065
|
+
protocol: PorkbunProtocol,
|
|
2066
|
+
retry: Retry.Retry,
|
|
2067
|
+
}));
|
|
2068
|
+
/** Check the Cloudflare account connection (poll target) Whether this account has an active Cloudflare grant, and which Cloudflare account it points at. **This is the poll target for the connect flow.** Minting the grant is a human action: Cloudflare's consent screen has to be completed in a browser, and the authorization is bound to the Porkbun web session that started it, so it cannot be driven over the API. When `connected` is `false` the response carries a `connectUrl` — send the account owner there, then poll this endpoint until `connected` is `true`. Also available via POST. */
|
|
2069
|
+
export const cloudflareGetConnection = /*@__PURE__*/ API.make(() => ({
|
|
2070
|
+
input: CloudflareGetConnectionRequest,
|
|
2071
|
+
output: CloudflareGetConnectionResponse,
|
|
2072
|
+
errors: [UnknownPorkbunError],
|
|
2073
|
+
protocol: PorkbunProtocol,
|
|
2074
|
+
retry: Retry.Retry,
|
|
2075
|
+
}));
|
|
2076
|
+
/** List every Cloudflare move for the account Every Cloudflare move this account has requested, with status and message. Queue rows are never deleted, so this doubles as the audit trail. Also available via POST. **Status values** (poll until one of the terminal ones): Poll on a sensible interval (a few seconds early on, then back off) — a zone typically leaves `queued` within seconds but can sit in `setup` or `activating` while Cloudflare provisions the zone and DNS propagates. */
|
|
2077
|
+
export const cloudflareGetQueue = /*@__PURE__*/ API.make(() => ({
|
|
2078
|
+
input: CloudflareGetQueueRequest,
|
|
2079
|
+
output: CloudflareGetQueueResponse,
|
|
2080
|
+
errors: [UnknownPorkbunError],
|
|
2081
|
+
protocol: PorkbunProtocol,
|
|
2082
|
+
retry: Retry.Retry,
|
|
2083
|
+
}));
|
|
2084
|
+
/** List the domain's live DNS records at Cloudflare The domain's DNS records **as Cloudflare currently holds them**, each with its `proxied` flag and whether it is `proxiable` at all. Once a domain has moved, this is the authoritative record set — `/dns/retrieve` reads the Porkbun zone, which is no longer the one answering queries. Requires the move to have finished (`ZONE_NOT_READY` otherwise). Also available via POST. */
|
|
2085
|
+
export const cloudflareGetRecords = /*@__PURE__*/ API.make(() => ({
|
|
2086
|
+
input: CloudflareGetRecordsRequest,
|
|
2087
|
+
output: CloudflareGetRecordsResponse,
|
|
2088
|
+
errors: [UnknownPorkbunError],
|
|
2089
|
+
protocol: PorkbunProtocol,
|
|
2090
|
+
retry: Retry.Retry,
|
|
2091
|
+
}));
|
|
2092
|
+
/** Get live zone state from Cloudflare (and detect nameserver drift) What **Cloudflare** says about the zone right now — status, paused, its nameservers, activation date — as opposed to what our queue row remembers. These drift: if the nameservers are repointed elsewhere after the move, our row still reads `done` while Cloudflare has stopped answering for the domain. The response includes the live public nameservers and a `nameserversDrifted` boolean so you don't have to diff them. Also available via POST. */
|
|
2093
|
+
export const cloudflareGetZone = /*@__PURE__*/ API.make(() => ({
|
|
2094
|
+
input: CloudflareGetZoneRequest,
|
|
2095
|
+
output: CloudflareGetZoneResponse,
|
|
2096
|
+
errors: [UnknownPorkbunError],
|
|
2097
|
+
protocol: PorkbunProtocol,
|
|
2098
|
+
retry: Retry.Retry,
|
|
2099
|
+
}));
|
|
2100
|
+
/** Read the zone settings that matter after a move The Cloudflare zone settings worth caring about post-migration: `ssl`, `always_use_https`, `automatic_https_rewrites`, `min_tls_version`, `development_mode`, `cache_level`. The important one is **`ssl`**: `flexible` means Cloudflare fetches your origin over plain HTTP while visitors see a padlock, so the response warns when it is `off` or `flexible`. Also available via POST. If the account's Cloudflare authorization predates this feature it will not carry the `zone-settings.write` scope, and this returns `CLOUDFLARE_REAUTHORIZE_REQUIRED` with a `connectUrl`. Reconnecting is the same one-click browser flow and does not disturb domains already moved. */
|
|
2101
|
+
export const cloudflareGetZoneSettings = /*@__PURE__*/ API.make(() => ({
|
|
2102
|
+
input: CloudflareGetZoneSettingsRequest,
|
|
2103
|
+
output: CloudflareGetZoneSettingsResponse,
|
|
2104
|
+
errors: [UnknownPorkbunError],
|
|
2105
|
+
protocol: PorkbunProtocol,
|
|
2106
|
+
retry: Retry.Retry,
|
|
2107
|
+
}));
|
|
2108
|
+
/** List every domain with its Cloudflare eligibility Every domain in the account with a `state` (`eligible`, `warn`, `blocked`, `connected`, `inprogress`) and a human-readable `reason`. Read this **before** queueing to see what will be skipped and why. Works even with no Cloudflare connection yet, so an agent can plan while the owner is still authorizing. Also available via POST. */
|
|
2109
|
+
export const cloudflareInventory = /*@__PURE__*/ API.make(() => ({
|
|
2110
|
+
input: CloudflareInventoryRequest,
|
|
2111
|
+
output: CloudflareInventoryResponse,
|
|
2112
|
+
errors: [UnknownPorkbunError],
|
|
2113
|
+
protocol: PorkbunProtocol,
|
|
2114
|
+
retry: Retry.Retry,
|
|
2115
|
+
}));
|
|
2116
|
+
/** Undo a completed move (restore Porkbun nameservers) Point the domain's nameservers back at Porkbun, restoring the DNS we still hold. The Cloudflare zone is deliberately left in place — deleting a zone in someone's own Cloudflare account is theirs to do. Fails with `ROLLBACK_FAILED` if we never moved the domain, it is already back on Porkbun nameservers, or it is being worked on right now. Supports `dryRun`. */
|
|
2117
|
+
export const cloudflareRollback = /*@__PURE__*/ API.make(() => ({
|
|
2118
|
+
input: CloudflareRollbackRequest,
|
|
2119
|
+
output: CloudflareRollbackResponse,
|
|
2120
|
+
errors: [UnknownPorkbunError],
|
|
2121
|
+
protocol: PorkbunProtocol,
|
|
2122
|
+
retry: Retry.Retry,
|
|
2123
|
+
}));
|
|
2124
|
+
/** Turn the Cloudflare proxy (orange cloud) on or off Set `proxied` on the domain's Cloudflare DNS records. **The move itself always imports records DNS-only (grey cloud), on purpose** — changing how traffic is served at the same time as changing who serves DNS gives you two variables to debug at once. Proxying is therefore a separate, explicit step, best done after you've confirmed the site still works. Defaults to every proxiable record; pass `records` to target specific names (`"@"` means the apex, a bare label like `"www"` is expanded). Only A, AAAA and CNAME can be proxied — anything else is reported under `skipped` with a reason rather than failing the call. Records already in the requested state are skipped too. Proxying hides the origin IP, so if the zone's MX points at a hostname you are proxying, mail to it breaks; that case comes back in `warnings`. Supports `dryRun`. Rate limit: 60 changes per account per hour (these calls go to Cloudflare under Porkbun's OAuth client). */
|
|
2125
|
+
export const cloudflareSetProxy = /*@__PURE__*/ API.make(() => ({
|
|
2126
|
+
input: CloudflareSetProxyRequest,
|
|
2127
|
+
output: CloudflareSetProxyResponse,
|
|
2128
|
+
errors: [UnknownPorkbunError],
|
|
2129
|
+
protocol: PorkbunProtocol,
|
|
2130
|
+
retry: Retry.Retry,
|
|
2131
|
+
}));
|
|
2132
|
+
/** Change zone settings (allowlisted) Set one or more of the allowlisted zone settings. This is an allowlist rather than a passthrough — Cloudflare exposes hundreds of settings and WAF/firewall/security controls are deliberately out of scope for this API. Prefer `ssl: "full"`; `flexible` is an invisible downgrade for visitors. Supports `dryRun`. Rate limit: shares the 60/hour Cloudflare-write budget. If the account's Cloudflare authorization predates this feature it will not carry the `zone-settings.write` scope, and this returns `CLOUDFLARE_REAUTHORIZE_REQUIRED` with a `connectUrl`. Reconnecting is the same one-click browser flow and does not disturb domains already moved. */
|
|
2133
|
+
export const cloudflareSetZoneSettings = /*@__PURE__*/ API.make(() => ({
|
|
2134
|
+
input: CloudflareSetZoneSettingsRequest,
|
|
2135
|
+
output: CloudflareSetZoneSettingsResponse,
|
|
2136
|
+
errors: [UnknownPorkbunError],
|
|
2137
|
+
protocol: PorkbunProtocol,
|
|
2138
|
+
retry: Retry.Retry,
|
|
2139
|
+
}));
|
|
2140
|
+
/** Queue domains to move to the customer's Cloudflare account Queue one or many domains. For each one we create the zone in the customer's own Cloudflare account, copy across the DNS records we hold, and repoint the registry nameservers at Cloudflare. **Asynchronous.** Work runs on a background job over the next few minutes, so a successful call means *queued*, never *connected* — poll `/cloudflare/getQueue` or `/cloudflare/get/{domain}`. **`skipped` is a normal outcome, not an error.** DNSSEC live, custom nameservers, already connected, already in progress: each domain comes back under `queued`, `skipped` or `alreadyQueued` with its own reason. Read the reasons rather than treating a non-empty `skipped` as failure. Eligibility, ownership and nameserver state are re-checked immediately before each domain is acted on, so a domain accepted here can still be skipped later. Re-submitting a domain is safe: the queue row is the unit of truth and is updated in place. Supports `dryRun: true`, which returns the same per-domain verdicts without queueing anything. Requires an active Cloudflare connection (`CLOUDFLARE_NOT_CONNECTED` otherwise). Limits: 500 domains per call, 2000 domains per account per hour. After queueing, poll `/cloudflare/get/{domain}`: the row moves `queued` → `working` → `setup` → `activating` → `connected`. `setup` means Cloudflare has the zone but has not provisioned it yet, so the nameservers have deliberately not been touched. `activating` means the nameservers are already repointed and Cloudflare is confirming the zone, which can take a while as DNS propagates. */
|
|
2141
|
+
export const connectCloudflare = /*@__PURE__*/ API.make(() => ({
|
|
2142
|
+
input: ConnectCloudflareRequest,
|
|
2143
|
+
output: ConnectCloudflareResponse,
|
|
2144
|
+
errors: [UnknownPorkbunError],
|
|
2145
|
+
protocol: PorkbunProtocol,
|
|
2146
|
+
retry: Retry.Retry,
|
|
2147
|
+
}));
|
|
1568
2148
|
/** Create an account registration invite Generates a one-time invite token and URL that you send to a prospective user. When the user visits the URL they go through Porkbun's normal account creation flow — including CAPTCHA, address collection, and TOS acceptance — in the browser. The invite expires in 48 hours. Each token can only be used once. Optionally supply an `email` to pre-fill the email field on the registration form. Optionally supply a `returnUrl` (must be HTTPS) to redirect the user back to your platform after they complete registration. After sending the invite URL, poll `/account/inviteStatus` to check whether the account was created. */
|
|
1569
2149
|
export const createAccountInvite = /*@__PURE__*/ API.make(() => ({
|
|
1570
2150
|
input: CreateAccountInviteRequest,
|
|
@@ -1581,7 +2161,7 @@ export const createDns = /*@__PURE__*/ API.make(() => ({
|
|
|
1581
2161
|
protocol: PorkbunProtocol,
|
|
1582
2162
|
retry: Retry.Retry,
|
|
1583
2163
|
}));
|
|
1584
|
-
/** Register a domain Register a domain
|
|
2164
|
+
/** Register a domain Register a domain, paid from account credit or directly in USDC. Requirements: - Account email and phone must be verified - Enough **prepaid credit** to cover the price, or `"payWith": "usdc"` to pay directly (see "Paying for it" below) - `agreeToTerms` must be `'yes'` or `'1'` - `cost` must equal the current price for the domain's minimum registration duration (in pennies) - Premium domains cannot be registered via API, and a single order cannot exceed $100 (`ORDER_TOO_LARGE`) ## Paying for it Two ways: from prepaid account credit (the default), or directly in USDC. **From account credit.** No card on file is charged at purchase time - the thing most first-time callers get wrong, because having a card saved is not enough; the balance has to be there before the call. - Read the balance with `GET /account/balance` (cents, plus a display string). - Add to it: `POST /account/topup` charges a saved card now (with the account holder's OK); `POST /account/topupMpp` returns a link an agent pays with the user's card from a Stripe Link agent wallet; `POST /account/topupCrypto` opens a USDC checkout an agent's wallet can pay over x402; or the account holder adds credit at https://porkbun.com/account/credit. - Turn on **auto top-up** at https://porkbun.com/account/api so a saved card refills the balance when it drops below a threshold. The hands-off option for an agent that registers on its own. - Rehearse with `dryRun: true`, which reports `cost`, `balance`, `sufficientFunds` and, when short, `shortfall`. A purchase attempted without enough credit returns `INSUFFICIENT_FUNDS` carrying `cost`, `balance`, `shortfall`, `topUpAvailable` and `usdcAmountToCover` in cents, and a message naming them. **Directly in USDC (x402).** Add `"payWith": "usdc"`. After every check passes, the call answers HTTP 402 `PAYMENT_REQUIRED` with Coinbase's x402 terms in the `PAYMENT-REQUIRED` header and charges nothing. An x402 client pays them and repeats the same request with a `PAYMENT-SIGNATURE` header, and the registration completes in that call, with the receipt in `PAYMENT-RESPONSE`. No credit is needed. If the registration fails after payment, the payment is not sent back to the wallet: it stays on the account as credit (`payment.keptAsCredit` and `balance_cents` in the error), ready to retry from credit. Guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 **Monthly limit.** Either way, purchases count toward the account's monthly API spend limit, $100 a month until the account holder sets their own at https://porkbun.com/account/api (`MONTHLY_SPEND_LIMIT_EXCEEDED`). Guide: https://porkbun.com/llms/guides/spend-limits Registrations are always for the registry-minimum duration (usually 1 year). **WHOIS privacy.** WHOIS privacy is automatically enabled on new registrations (when the TLD supports it). Pass the optional `whoisPrivacy` field to override this on a per-registration basis, or change the account-level default under Account Security Settings on porkbun.com/account. **Rate limits (both apply):** - Attempt limit (default: 1 attempt per second per account) - Success limit (default: 1000 successful registrations per 86400 seconds per account) Both limits are configurable per API key and their current values are returned in the `limits` field of the response. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT registering or charging — nothing is created. Send `cost: 0` with it to be quoted rather than having to match a price you do not know yet, and note that a dry run is answered even when the balance is too low: `wouldSucceed` comes back false with `shortfall` saying by how much. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "registration", "domain": "example.com", "tld": "com", "available": "available", "premium": false, "duration": 1, "cost": 973, "costDisplay": "$9.73", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this registration would succeed and cost $9.73. No order was created and no charge was made.", "requestId": "019e04fa-258d-7d11-aa86-4d5795c3fe8f" } ``` */
|
|
1585
2165
|
export const createDomain = /*@__PURE__*/ API.make(() => ({
|
|
1586
2166
|
input: CreateDomainRequest,
|
|
1587
2167
|
output: CreateDomainResponse2,
|
|
@@ -1589,7 +2169,7 @@ export const createDomain = /*@__PURE__*/ API.make(() => ({
|
|
|
1589
2169
|
protocol: PorkbunProtocol,
|
|
1590
2170
|
retry: Retry.Retry,
|
|
1591
2171
|
}));
|
|
1592
|
-
/** Provision hosting — a static site or a WordPress site **Applies to:** Both products — the `sku` decides which. Provision hosting (Secure Static Hosting or Cloud for WordPress) for a domain in the account. The FIRST provision for a domain starts a **15-day free trial** ($0 now) that **auto-renews** at the plan price when the trial ends; a re-provision after deprovision is charged immediately to account credit (one free trial per domain). Provisioning **switches the domain to Porkbun nameservers** if it isn't already — pass `agreeToNameserverChange: true` to allow that. Supports `dryRun`. Remote setup can be async: `status` may be `PENDING` — poll `/hosting/get` until `ACTIVE` before deploying. **Cloud for WordPress:** pass a `CLOUDWORDPRESS…` sku to provision a managed WordPress site instead of static hosting. The file endpoints (deploy/files/deleteFile/makeDir) do not apply — manage the site through WordPress, using `/hosting/createWpCredentials/{domain}` for REST API credentials. **Rate limit:** 10 provisions per account per hour (`dryRun` calls are free). */
|
|
2172
|
+
/** Provision hosting — a static site or a WordPress site **Applies to:** Both products — the `sku` decides which. Provision hosting (Secure Static Hosting or Cloud for WordPress) for a domain in the account. The FIRST provision for a domain starts a **15-day free trial** ($0 now) that **auto-renews** at the plan price when the trial ends; a re-provision after deprovision is charged immediately, to account credit or directly in USDC with `"payWith": "usdc"` (HTTP 402, then repeat with `PAYMENT-SIGNATURE`; kept as account credit if provisioning fails), and counts toward the monthly API spend limit (one free trial per domain). Provisioning **switches the domain to Porkbun nameservers** if it isn't already — pass `agreeToNameserverChange: true` to allow that. Supports `dryRun`. Remote setup can be async: `status` may be `PENDING` — poll `/hosting/get` until `ACTIVE` before deploying. **Cloud for WordPress:** pass a `CLOUDWORDPRESS…` sku to provision a managed WordPress site instead of static hosting. The file endpoints (deploy/files/deleteFile/makeDir) do not apply — manage the site through WordPress, using `/hosting/createWpCredentials/{domain}` for REST API credentials. **Rate limit:** 10 provisions per account per hour (`dryRun` calls are free). */
|
|
1593
2173
|
export const createHosting = /*@__PURE__*/ API.make(() => ({
|
|
1594
2174
|
input: CreateHostingRequest,
|
|
1595
2175
|
output: CreateHostingResponse,
|
|
@@ -1597,7 +2177,7 @@ export const createHosting = /*@__PURE__*/ API.make(() => ({
|
|
|
1597
2177
|
protocol: PorkbunProtocol,
|
|
1598
2178
|
retry: Retry.Retry,
|
|
1599
2179
|
}));
|
|
1600
|
-
/** Create a webhook endpoint Register an HTTPS endpoint to receive signed event payloads. The response includes the generated `secret` — store it securely; it is the HMAC key used to verify the `X-Porkbun-Signature` header. Omit `events` (or pass `["*"]`) to subscribe to all event types. Maximum 20 endpoints per account. */
|
|
2180
|
+
/** Create a webhook endpoint Register an HTTPS endpoint to receive signed event payloads. The response includes the generated `secret` — store it securely; it is the HMAC key used to verify the `X-Porkbun-Signature` header. Omit `events` (or pass `["*"]`) to subscribe to all event types. Maximum 20 endpoints per account. **URL requirements:** the endpoint must be an `https://` URL on the standard port 443, with a hostname that resolves to a public internet address. Private, loopback, link-local, CGNAT and other reserved ranges are refused (`INVALID_WEBHOOK_URL`) because Porkbun delivers from inside its own network. Credentials in the URL (`https://user:pass@host`) are also refused — authenticate the receiver by verifying the `X-Porkbun-Signature` HMAC instead. A hostname that does not resolve yet is accepted, so you can register the endpoint before the receiver is deployed, but delivery is re-checked against these rules immediately before each request. */
|
|
1601
2181
|
export const createWebhook = /*@__PURE__*/ API.make(() => ({
|
|
1602
2182
|
input: CreateWebhookRequest,
|
|
1603
2183
|
output: WebhookEndpointResponse,
|
|
@@ -1637,10 +2217,18 @@ export const deployHosting = /*@__PURE__*/ API.make(() => ({
|
|
|
1637
2217
|
protocol: PorkbunProtocol,
|
|
1638
2218
|
retry: Retry.Retry,
|
|
1639
2219
|
}));
|
|
1640
|
-
/**
|
|
2220
|
+
/** Remove the stored Cloudflare connection Revoke and forget this account's Cloudflare grant. Domains already moved stay on Cloudflare and keep resolving; this only stops us making further changes on the customer's behalf. Reconnecting requires the browser authorization again. Supports `dryRun`. */
|
|
2221
|
+
export const disconnectCloudflare = /*@__PURE__*/ API.make(() => ({
|
|
2222
|
+
input: DisconnectCloudflareRequest,
|
|
2223
|
+
output: DisconnectCloudflareResponse,
|
|
2224
|
+
errors: [UnknownPorkbunError],
|
|
2225
|
+
protocol: PorkbunProtocol,
|
|
2226
|
+
retry: Retry.Retry,
|
|
2227
|
+
}));
|
|
2228
|
+
/** Create DNSSEC record Create a DNSSEC DS or key record at the registry. DNSSEC requirements vary by registry — `keyTag`, `alg`, `digestType`, and `digest` are the minimum required fields. Key data fields are optional and will be omitted if not accepted by the registry. Algorithm and digest type are validated against the registry's own policy before the request is sent. Registries are retiring the values deprecated by RFC 9904/9905/9906 on different schedules, so what is accepted depends on the TLD: a value one registry has already dropped may still be accepted by another. A value the registry no longer accepts returns `DNSSEC_ALGORITHM_DEPRECATED`; one that still works but is being retired returns `status: SUCCESS` with a `warnings` array. Use algorithm 8 (RSA/SHA-256) or 13 (ECDSA/SHA-256) with digest type 2 (SHA-256) to be accepted everywhere. Existing DNSSEC records keep resolving regardless, and can always be deleted. */
|
|
1641
2229
|
export const dnsCreateDnssecRecord = /*@__PURE__*/ API.make(() => ({
|
|
1642
2230
|
input: DnsCreateDnssecRecordRequest,
|
|
1643
|
-
output:
|
|
2231
|
+
output: DnsCreateDnssecRecordResponse,
|
|
1644
2232
|
errors: [BadRequest, UnknownPorkbunError],
|
|
1645
2233
|
protocol: PorkbunProtocol,
|
|
1646
2234
|
retry: Retry.Retry,
|
|
@@ -1661,6 +2249,14 @@ export const dnsDeleteDnssecRecord = /*@__PURE__*/ API.make(() => ({
|
|
|
1661
2249
|
protocol: PorkbunProtocol,
|
|
1662
2250
|
retry: Retry.Retry,
|
|
1663
2251
|
}));
|
|
2252
|
+
/** Compare a restore point with the live zone What changed between a restore point and the zone as it stands now. - `missing` -- in the restore point, not live. These are the records a restore would add back. - `extra` -- live, not in the restore point. A restore leaves these alone unless you pass `prune`. - `inSync` -- true when neither list has anything in it. Records are compared on **name, type, content and priority**, not on id: an id means nothing across a delete and re-create, and what anyone means by "the same record" is the data. SOA and NS are excluded from both lists because they are the zone's own scaffolding. For masked records (parking, `ALIAS`, `HTTPS`) the value shown is the one you configured, not the internal host it resolves to. */
|
|
2253
|
+
export const dnsDiff = /*@__PURE__*/ API.make(() => ({
|
|
2254
|
+
input: DnsDiffRequest,
|
|
2255
|
+
output: DnsDiffResponse,
|
|
2256
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2257
|
+
protocol: PorkbunProtocol,
|
|
2258
|
+
retry: Retry.Retry,
|
|
2259
|
+
}));
|
|
1664
2260
|
/** Edit DNS records by name and type Replace the content of all records matching the given subdomain and type. SOA and NS records cannot be edited with this method (use edit by ID instead). */
|
|
1665
2261
|
export const dnsEditByNameType = /*@__PURE__*/ API.make(() => ({
|
|
1666
2262
|
input: DnsEditByNameTypeRequest,
|
|
@@ -1677,6 +2273,22 @@ export const dnsGetDnssecRecords = /*@__PURE__*/ API.make(() => ({
|
|
|
1677
2273
|
protocol: PorkbunProtocol,
|
|
1678
2274
|
retry: Retry.Retry,
|
|
1679
2275
|
}));
|
|
2276
|
+
/** List restore points for a zone Every version of a zone we still hold, newest first. **DNS is the only part of a stack with no undo, and this is it.** If a record was deleted or edited by mistake, you do not have to know what it used to say -- ask for the restore points, diff one against the live zone, and put it back. Restore points are taken automatically: before the **first** write to a zone in each hour (so a session of edits costs one point, not one per record), before any bulk import or zone wipe, and before any restore. `recordCount` is the size of the zone **as it was at that moment**, not now. `matchesLive` tells you which point the zone currently sits on without diffing each one. Up to 50 are returned. */
|
|
2277
|
+
export const dnsHistory = /*@__PURE__*/ API.make(() => ({
|
|
2278
|
+
input: DnsHistoryRequest,
|
|
2279
|
+
output: DnsHistoryResponse,
|
|
2280
|
+
errors: [UnknownPorkbunError],
|
|
2281
|
+
protocol: PorkbunProtocol,
|
|
2282
|
+
retry: Retry.Retry,
|
|
2283
|
+
}));
|
|
2284
|
+
/** Check whether a change will break the domain Read-only. Answers the question of whether a change is about to break the domain, before you change delegation, transfer it out, or turn DNSSEC on. It changes nothing and spends nothing. **Every check here comes from an incident we actually had**, which is the point: these are the failures where a zone looks fine and stops working anyway, and nobody can say why afterwards. Each finding names the rule it comes from and carries a `next_action`, so it argues its case rather than asserting a verdict. Pass `intent` to scope it: `general` (default) runs everything applicable, `move-nameservers` adds the delegation checks, `transfer-out` adds the checks that matter when leaving, `enable-dnssec` the DNSSEC ones. Read `blockers` first -- those will break something. `warnings` will not break outright but are usually what the customer asks about next. `safe` is true only when both lists are empty. */
|
|
2285
|
+
export const dnsPreflight = /*@__PURE__*/ API.make(() => ({
|
|
2286
|
+
input: DnsPreflightRequest,
|
|
2287
|
+
output: DnsPreflightResponse,
|
|
2288
|
+
errors: [UnknownPorkbunError],
|
|
2289
|
+
protocol: PorkbunProtocol,
|
|
2290
|
+
retry: Retry.Retry,
|
|
2291
|
+
}));
|
|
1680
2292
|
/** Retrieve DNS record by ID Retrieve a specific DNS record by its numeric ID. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1681
2293
|
export const dnsRetrieveById = /*@__PURE__*/ API.make(() => ({
|
|
1682
2294
|
input: DnsRetrieveByIdRequest,
|
|
@@ -1693,6 +2305,14 @@ export const dnsRetrieveByNameType = /*@__PURE__*/ API.make(() => ({
|
|
|
1693
2305
|
protocol: PorkbunProtocol,
|
|
1694
2306
|
retry: Retry.Retry,
|
|
1695
2307
|
}));
|
|
2308
|
+
/** Discover the records a domain currently publishes Query a domain's **live authoritative nameservers** and return the records they answer with, writing nothing. This is what makes an inbound transfer non-destructive: a transfer moves only the delegation — EPP carries no zone data — so once the losing registrar stops answering for the zone, whatever it published is gone and unrecoverable. Run this **before** the nameservers move, then pass the result to `/dns/import/{domain}`. The scan probes a wide list of well-known names (apex, common subdomains, MX, DKIM selectors, provider verification hosts) and consolidates wildcards. It cannot enumerate a zone — DNS has no listing operation and AXFR is universally refused — so treat it as thorough but **not exhaustive**. If the old registrar exposes the zone through its own API, that is authoritative: read it with your own credentials (they never need to reach Porkbun) and POST those records to `/dns/import` instead. Metered separately at 20 calls per hour per account, because each call is roughly 90 DNS lookups. */
|
|
2309
|
+
export const dnsScan = /*@__PURE__*/ API.make(() => ({
|
|
2310
|
+
input: DnsScanRequest,
|
|
2311
|
+
output: DnsScanResponse,
|
|
2312
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2313
|
+
protocol: PorkbunProtocol,
|
|
2314
|
+
retry: Retry.Retry,
|
|
2315
|
+
}));
|
|
1696
2316
|
/** Add URL forward Add a URL forward for a domain or subdomain. */
|
|
1697
2317
|
export const domainAddUrlForward = /*@__PURE__*/ API.make(() => ({
|
|
1698
2318
|
input: DomainAddUrlForwardRequest,
|
|
@@ -1701,7 +2321,15 @@ export const domainAddUrlForward = /*@__PURE__*/ API.make(() => ({
|
|
|
1701
2321
|
protocol: PorkbunProtocol,
|
|
1702
2322
|
retry: Retry.Retry,
|
|
1703
2323
|
}));
|
|
1704
|
-
/**
|
|
2324
|
+
/** Cancel an inbound transfer and refund it Cancel a pending inbound transfer and refund the order. The sequence is deliberate: mark the transfer cancelled locally, withdraw it at the registry, **verify** the registry actually accepted the withdrawal, and only then refund. If the registry state cannot be confirmed the local row is restored and `TRANSFER_STATE_UNCONFIRMED` is returned rather than refunding a transfer that may still be live. The response reports `withdrawnAtRegistry`, `registryResultCode`, `refunded` and `refundAmount` so you can see exactly how far it got. Supports `dryRun`. */
|
|
2325
|
+
export const domainCancelTransfer = /*@__PURE__*/ API.make(() => ({
|
|
2326
|
+
input: DomainCancelTransferRequest,
|
|
2327
|
+
output: DomainCancelTransferResponse,
|
|
2328
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2329
|
+
protocol: PorkbunProtocol,
|
|
2330
|
+
retry: Retry.Retry,
|
|
2331
|
+
}));
|
|
2332
|
+
/** Check domain availability Check if a domain is available for registration and retrieve current pricing. Includes registration, renewal, and transfer prices. **Rate limit:** Configurable per API key. Default is 10 checks per 10 seconds per account (raised from 1 per 10 seconds in 3.29). The window is intentionally 10 seconds rather than 1, so a batch of candidate names can be checked back-to-back. `/domain/checkSingleDomain` draws on the same budget. Rate limit usage is returned in the `limits` field of the response. **Sustained bulk checking.** An account that checks about 1,800 names over three hours while registering little of what it checks (fewer than one domain per 200 names over a day) is treated as scanning for the next 24 hours: its checks, single and bulk, on every API version, share a budget of 50 names per 5 minutes. Over it, the call is refused whole with `RATE_LIMIT_EXCEEDED`, `reason: "SUSTAINED_BULK_CHECKING"` and `retryAfter`; nothing is part-answered. Normal use, including checking a long list of candidate names once, is nowhere near this. Accounts that buy (100 or more registrations in a year) and affiliates sending orders are never treated as scanning, and a per-key limit from support overrides it. */
|
|
1705
2333
|
export const domainCheckDomain = /*@__PURE__*/ API.make(() => ({
|
|
1706
2334
|
input: DomainCheckDomainRequest,
|
|
1707
2335
|
output: CheckDomainResponse,
|
|
@@ -1749,7 +2377,7 @@ export const domainGetGlue = /*@__PURE__*/ API.make(() => ({
|
|
|
1749
2377
|
protocol: PorkbunProtocol,
|
|
1750
2378
|
retry: Retry.Retry,
|
|
1751
2379
|
}));
|
|
1752
|
-
/** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
2380
|
+
/** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). **Nameservers are an unordered set.** This reads live from the registry, and registries are free to return the set in any order — so the order here will often differ from the order you sent to `/domain/updateNs`. Order carries no meaning in DNS (an NS RRset is unordered, RFC 1034/2181) and is not preserved by the parent zone. Compare nameservers as a set; if you are writing a Terraform provider or similar, model this as a set, not an ordered list, or every plan will show phantom drift. */
|
|
1753
2381
|
export const domainGetNs = /*@__PURE__*/ API.make(() => ({
|
|
1754
2382
|
input: DomainGetNsRequest,
|
|
1755
2383
|
output: DomainGetNsResponse,
|
|
@@ -1765,6 +2393,14 @@ export const domainGetRegistrationRequirements = /*@__PURE__*/ API.make(() => ({
|
|
|
1765
2393
|
protocol: PorkbunProtocol,
|
|
1766
2394
|
retry: Retry.Retry,
|
|
1767
2395
|
}));
|
|
2396
|
+
/** State of an in-flight inbound transfer Where a pending inbound transfer is and what it is waiting on: whether it is held at `PENDINGDNS`, whether its DNS zone exists, how many records are in it, what the domain currently delegates to, and the next step to take. Use it to resume a no-downtime transfer without keeping state of your own. */
|
|
2397
|
+
export const domainGetTransferSetup = /*@__PURE__*/ API.make(() => ({
|
|
2398
|
+
input: DomainGetTransferSetupRequest,
|
|
2399
|
+
output: DomainGetTransferSetupResponse,
|
|
2400
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2401
|
+
protocol: PorkbunProtocol,
|
|
2402
|
+
retry: Retry.Retry,
|
|
2403
|
+
}));
|
|
1768
2404
|
/** List URL forwards Retrieve all active URL forwards for a domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1769
2405
|
export const domainGetUrlForwarding = /*@__PURE__*/ API.make(() => ({
|
|
1770
2406
|
input: DomainGetUrlForwardingRequest,
|
|
@@ -1773,6 +2409,14 @@ export const domainGetUrlForwarding = /*@__PURE__*/ API.make(() => ({
|
|
|
1773
2409
|
protocol: PorkbunProtocol,
|
|
1774
2410
|
retry: Retry.Retry,
|
|
1775
2411
|
}));
|
|
2412
|
+
/** Release a held transfer to the registry Release a transfer held at `PENDINGDNS` into the registry pipeline. Nothing releases a held transfer on a timer — this call is the only thing that does. Refuses with `TRANSFER_ZONE_EMPTY` if the zone has no records, which is the outage the hold exists to prevent. Pass `force: true` only if the domain genuinely needs no DNS at Porkbun. Supports `dryRun`. */
|
|
2413
|
+
export const domainStartTransfer = /*@__PURE__*/ API.make(() => ({
|
|
2414
|
+
input: DomainStartTransferRequest,
|
|
2415
|
+
output: DomainStartTransferResponse,
|
|
2416
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2417
|
+
protocol: PorkbunProtocol,
|
|
2418
|
+
retry: Retry.Retry,
|
|
2419
|
+
}));
|
|
1776
2420
|
/** Update auto-renew setting Update the auto-renew setting for one or more domains. The domain can be passed in the URL path or in the `domains` array in the request body (or both). Both are combined and deduplicated. */
|
|
1777
2421
|
export const domainUpdateAutoRenew = /*@__PURE__*/ API.make(() => ({
|
|
1778
2422
|
input: DomainUpdateAutoRenewRequest,
|
|
@@ -1781,7 +2425,7 @@ export const domainUpdateAutoRenew = /*@__PURE__*/ API.make(() => ({
|
|
|
1781
2425
|
protocol: PorkbunProtocol,
|
|
1782
2426
|
retry: Retry.Retry,
|
|
1783
2427
|
}));
|
|
1784
|
-
/** Update domain contacts Edit the domain's contacts. Send a `contacts` object keyed by role (`registrant`, `admin`, `tech`, `billing`) containing ANY subset of roles — unspecified roles keep their current values — or a single `contact` object to apply to all four. Behaves like the website: on thick TLDs the change is pushed to the registry, and a **registrant** change (name/organization/email) triggers the same material-change record and new-owner notice/verification email (no 60-day transfer lock is imposed). Per-TLD extension data (e.g. .us nexus, .ca legalType) is preserved. Supports `dryRun`. **Address-validated TLDs.** On a **registrant** change for a TLD that requires a validated address (`.de`, `.nrw`, `.uk`/`.co.uk`/…, `.us`, `.ca`, `.nyc`, `.au`, `.eu`, `.in`/`.co.in`/…, `.nz`/`.co.nz`/…), the API runs Google Address Validation (per-account rate-limited + 24h cached). If the address needs correction the call returns `ADDRESS_VALIDATION_REQUIRED` with a `suggestedAddress` and `addressValidationStatus`; re-submit with `addressValidationChoice` = `accept_suggestion` (save the standardized address) or `use_as_entered` (keep yours — stays blocked if a real correction was offered). For `.de`, DENIC registry verification is then attempted automatically (address-fingerprint / email); if it still needs a proof-of-address document upload, that is completed at porkbun.com. **Still not supported via API:** a registrant name/organization change on a `.au` domain is an auDA paid ownership trade and returns `REGISTRANT_CHANGE_NOT_SUPPORTED` (do it at porkbun.com). Admin/tech/billing edits are unaffected everywhere. */
|
|
2428
|
+
/** Update domain contacts Edit the domain's contacts. Send a `contacts` object keyed by role (`registrant`, `admin`, `tech`, `billing`) containing ANY subset of roles — unspecified roles keep their current values — or a single `contact` object to apply to all four. Behaves like the website: on thick TLDs the change is pushed to the registry, and a **registrant** change (name/organization/email) triggers the same material-change record and new-owner notice/verification email (no 60-day transfer lock is imposed). Per-TLD extension data (e.g. .us nexus, .ca legalType) is preserved. Supports `dryRun`. **`state` is matched against the official list for the country**, the same list the website's dropdown is built from, so case, accents and short codes all work: `NEW JERSEY`, `new jersey` and `NJ` are all stored as `New Jersey`, and `MEXICO CITY` as `Mexico City`. This matters because some registries validate the field and compare it case sensitively — .mx refuses `NEW JERSEY` and requires `Ciudad de México` for Mexico City, which Porkbun substitutes for you. For a TLD whose registry validates the field (currently the .mx family) a state that matches nothing is refused up front with `INVALID_STATE`, and the response lists every accepted value for that country in `validStates` — better than the registry's own "Object does not exist". For every other TLD an unrecognised state is sent through unchanged rather than rewritten. If a registry then refuses it, the contact is NOT created and no contacts are changed; the error names the registry's complaint. **Address-validated TLDs.** On a **registrant** change for a TLD that requires a validated address (`.de`, `.nrw`, `.uk`/`.co.uk`/…, `.us`, `.ca`, `.nyc`, `.au`, `.eu`, `.in`/`.co.in`/…, `.nz`/`.co.nz`/…), the API runs Google Address Validation (per-account rate-limited + 24h cached). If the address needs correction the call returns `ADDRESS_VALIDATION_REQUIRED` with a `suggestedAddress` and `addressValidationStatus`; re-submit with `addressValidationChoice` = `accept_suggestion` (save the standardized address) or `use_as_entered` (keep yours — stays blocked if a real correction was offered). For `.de`, DENIC registry verification is then attempted automatically (address-fingerprint / email); if it still needs a proof-of-address document upload, that is completed at porkbun.com. **Still not supported via API:** a registrant name/organization change on a `.au` domain is an auDA paid ownership trade and returns `REGISTRANT_CHANGE_NOT_SUPPORTED` (do it at porkbun.com). Admin/tech/billing edits are unaffected everywhere. */
|
|
1785
2429
|
export const domainUpdateContacts = /*@__PURE__*/ API.make(() => ({
|
|
1786
2430
|
input: DomainUpdateContactsRequest,
|
|
1787
2431
|
output: DomainUpdateContactsResponse,
|
|
@@ -1797,7 +2441,7 @@ export const domainUpdateGlue = /*@__PURE__*/ API.make(() => ({
|
|
|
1797
2441
|
protocol: PorkbunProtocol,
|
|
1798
2442
|
retry: Retry.Retry,
|
|
1799
2443
|
}));
|
|
1800
|
-
/** Update nameservers Update the nameservers for the domain at the registry. */
|
|
2444
|
+
/** Update nameservers Update the nameservers for the domain at the registry. The list you send is applied as a set — the registry may store and return it in a different order, so do not expect `/domain/getNs` to echo your ordering back. See `/domain/getNs`. */
|
|
1801
2445
|
export const domainUpdateNs = /*@__PURE__*/ API.make(() => ({
|
|
1802
2446
|
input: DomainUpdateNsRequest,
|
|
1803
2447
|
output: BasicResponse,
|
|
@@ -1805,7 +2449,15 @@ export const domainUpdateNs = /*@__PURE__*/ API.make(() => ({
|
|
|
1805
2449
|
protocol: PorkbunProtocol,
|
|
1806
2450
|
retry: Retry.Retry,
|
|
1807
2451
|
}));
|
|
1808
|
-
/**
|
|
2452
|
+
/** Replace the auth code on a stuck transfer Replace the authorization code on an inbound transfer that stalled because the code was wrong, and re-queue it — instead of cancelling, refunding and re-submitting. The new code is validated against the registry before it is stored, so a bad code is rejected here (`INVALID_AUTH_CODE`) rather than failing again later. Only transfers in a repairable state qualify; anything else returns `TRANSFER_NOT_REPAIRABLE`. Supports `dryRun`. */
|
|
2453
|
+
export const domainUpdateTransferAuthCode = /*@__PURE__*/ API.make(() => ({
|
|
2454
|
+
input: DomainUpdateTransferAuthCodeRequest,
|
|
2455
|
+
output: DomainUpdateTransferAuthCodeResponse,
|
|
2456
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2457
|
+
protocol: PorkbunProtocol,
|
|
2458
|
+
retry: Retry.Retry,
|
|
2459
|
+
}));
|
|
2460
|
+
/** Edit DNS record by ID Edit a specific DNS record by its numeric ID. Send only the fields you want to change: any field left out keeps its current value (send `"name": ""` to move the record to the apex). SOA and default Porkbun NS records cannot be edited. */
|
|
1809
2461
|
export const editDns = /*@__PURE__*/ API.make(() => ({
|
|
1810
2462
|
input: EditDnsRequest,
|
|
1811
2463
|
output: BasicResponse,
|
|
@@ -1837,7 +2489,7 @@ export const getApikey = /*@__PURE__*/ API.make(() => ({
|
|
|
1837
2489
|
protocol: PorkbunProtocol,
|
|
1838
2490
|
retry: Retry.Retry,
|
|
1839
2491
|
}));
|
|
1840
|
-
/** Get API spend settings Returns the account's API spend control settings
|
|
2492
|
+
/** Get API spend settings Returns the account's API spend control settings, this month's spend, and the limits actually enforced: `spendLimit` on purchases and `topupLimit` on credit added over the API. The account holder sets the limit on the website (https://porkbun.com/account/api); it cannot be changed over the API. All amounts are in cents. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
|
|
1841
2493
|
export const getApiSettings = /*@__PURE__*/ API.make(() => ({
|
|
1842
2494
|
input: GetApiSettingsRequest,
|
|
1843
2495
|
output: ApiSettingsResponse,
|
|
@@ -1845,6 +2497,14 @@ export const getApiSettings = /*@__PURE__*/ API.make(() => ({
|
|
|
1845
2497
|
protocol: PorkbunProtocol,
|
|
1846
2498
|
retry: Retry.Retry,
|
|
1847
2499
|
}));
|
|
2500
|
+
/** Read auto top-up settings What auto top-up is set to, whether a payment method is on file, and what `POST /account/topup` would charge right now (`effectiveAmount`). Auto top-up is how unattended work stops dead-ending on `INSUFFICIENT_FUNDS`: when an order drops the balance below `threshold`, Porkbun charges the saved payment method for `amount` and adds the credit. If `paymentMethodOnFile` is false the settings are inert and the response says so in `warnings` — a card can only be saved on the website, never over the API. */
|
|
2501
|
+
export const getAutoTopup = /*@__PURE__*/ API.make(() => ({
|
|
2502
|
+
input: GetAutoTopupRequest,
|
|
2503
|
+
output: AutoTopupResponse,
|
|
2504
|
+
errors: [UnknownPorkbunError],
|
|
2505
|
+
protocol: PorkbunProtocol,
|
|
2506
|
+
retry: Retry.Retry,
|
|
2507
|
+
}));
|
|
1848
2508
|
/** Get account balance Returns the available account credit balance. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
|
|
1849
2509
|
export const getBalance = /*@__PURE__*/ API.make(() => ({
|
|
1850
2510
|
input: GetBalanceRequest,
|
|
@@ -1853,6 +2513,22 @@ export const getBalance = /*@__PURE__*/ API.make(() => ({
|
|
|
1853
2513
|
protocol: PorkbunProtocol,
|
|
1854
2514
|
retry: Retry.Retry,
|
|
1855
2515
|
}));
|
|
2516
|
+
/** One closeout, with the binding total A single closeout plus `totalPrice` — the closeout price plus the registration year that comes with it. That total is what `/closeout/buy` will charge and what it expects back as `cost`. `localDomain` tells you which side of the pricing you are on: true means the name is already at Porkbun and is renewed, false means it is transferred in. `available` is false once somebody has claimed it. */
|
|
2517
|
+
export const getCloseout = /*@__PURE__*/ API.make(() => ({
|
|
2518
|
+
input: GetCloseoutRequest,
|
|
2519
|
+
output: GetCloseoutResponse,
|
|
2520
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2521
|
+
protocol: PorkbunProtocol,
|
|
2522
|
+
retry: Retry.Retry,
|
|
2523
|
+
}));
|
|
2524
|
+
/** Get the Cloudflare move status for one domain Status of a single domain's move, including the zone id once created and the nameservers we replaced (kept so the move can be undone). `NOT_QUEUED` if the domain has never been queued. Also available via POST. **Status values** (poll until one of the terminal ones): Poll on a sensible interval (a few seconds early on, then back off) — a zone typically leaves `queued` within seconds but can sit in `setup` or `activating` while Cloudflare provisions the zone and DNS propagates. */
|
|
2525
|
+
export const getCloudflare = /*@__PURE__*/ API.make(() => ({
|
|
2526
|
+
input: GetCloudflareRequest,
|
|
2527
|
+
output: GetCloudflareResponse,
|
|
2528
|
+
errors: [UnknownPorkbunError],
|
|
2529
|
+
protocol: PorkbunProtocol,
|
|
2530
|
+
retry: Retry.Retry,
|
|
2531
|
+
}));
|
|
1856
2532
|
/** Retrieve all DNS records Retrieve all editable DNS records for a domain. SOA records and Porkbun default NS records are excluded. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1857
2533
|
export const getDns = /*@__PURE__*/ API.make(() => ({
|
|
1858
2534
|
input: GetDnsRequest,
|
|
@@ -1909,7 +2585,7 @@ export const getDomainGlue = /*@__PURE__*/ API.make(() => ({
|
|
|
1909
2585
|
protocol: PorkbunProtocol,
|
|
1910
2586
|
retry: Retry.Retry,
|
|
1911
2587
|
}));
|
|
1912
|
-
/** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
2588
|
+
/** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). **Nameservers are an unordered set.** This reads live from the registry, and registries are free to return the set in any order — so the order here will often differ from the order you sent to `/domain/updateNs`. Order carries no meaning in DNS (an NS RRset is unordered, RFC 1034/2181) and is not preserved by the parent zone. Compare nameservers as a set; if you are writing a Terraform provider or similar, model this as a set, not an ordered list, or every plan will show phantom drift. */
|
|
1913
2589
|
export const getDomainNs = /*@__PURE__*/ API.make(() => ({
|
|
1914
2590
|
input: GetDomainNsRequest,
|
|
1915
2591
|
output: GetDomainNsResponse,
|
|
@@ -1941,8 +2617,25 @@ export const getHosting = /*@__PURE__*/ API.make(() => ({
|
|
|
1941
2617
|
protocol: PorkbunProtocol,
|
|
1942
2618
|
retry: Retry.Retry,
|
|
1943
2619
|
}));
|
|
2620
|
+
/** Get an invoice One invoice as data: bill-to details, payment method (card brand and last four only), each line with its term and resulting domain expiry, and gross, refunded and net totals. The same figures as the PDF. */
|
|
2621
|
+
export const getInvoice = /*@__PURE__*/ API.make(() => ({
|
|
2622
|
+
input: GetInvoiceRequest,
|
|
2623
|
+
output: GetInvoiceResponse,
|
|
2624
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2625
|
+
protocol: PorkbunProtocol,
|
|
2626
|
+
retry: Retry.Retry,
|
|
2627
|
+
}));
|
|
2628
|
+
/** Download an invoice PDF The invoice as a PDF, base64-encoded in `contentBase64`: the same document as Download PDF on porkbun.com. Decode it and save it as `filename`. */
|
|
2629
|
+
export const getInvoicePdf = /*@__PURE__*/ API.make(() => ({
|
|
2630
|
+
input: GetInvoicePdfRequest,
|
|
2631
|
+
output: GetInvoicePdfResponse,
|
|
2632
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2633
|
+
protocol: PorkbunProtocol,
|
|
2634
|
+
retry: Retry.Retry,
|
|
2635
|
+
}));
|
|
1944
2636
|
/** Get caller IP address Returns the caller's public IP address. No credentials required. Use the `api-ipv4.porkbun.com` hostname if you need to force an IPv4 address. */
|
|
1945
|
-
export const getIp =
|
|
2637
|
+
export const getIp =
|
|
2638
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1946
2639
|
input: GetIpRequest,
|
|
1947
2640
|
output: IpResponse,
|
|
1948
2641
|
errors: [UnknownPorkbunError],
|
|
@@ -1957,19 +2650,19 @@ export const getPing = /*@__PURE__*/ API.make(() => ({
|
|
|
1957
2650
|
protocol: PorkbunProtocol,
|
|
1958
2651
|
retry: Retry.Retry,
|
|
1959
2652
|
}));
|
|
1960
|
-
/** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs. Does not require authentication. Prices are in US dollars. */
|
|
2653
|
+
/** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs, or only the ones you ask for. Does not require authentication. Prices are in US dollars. Filter with `tld` (one TLD) and/or `tlds` (several). Names are case-insensitive, a leading dot is ignored, and IDN TLDs may be sent in Unicode or punycode (`みんな` or `xn--q9jyb4c`). A TLD Porkbun does not sell is left out of `pricing` and listed in `unsupported`; if none of the requested TLDs is sold the response is `INVALID_TLD` (HTTP 400). No filter returns every TLD. */
|
|
1961
2654
|
export const getPricing = /*@__PURE__*/ API.make(() => ({
|
|
1962
2655
|
input: GetPricingRequest,
|
|
1963
2656
|
output: GetPricingResponse,
|
|
1964
|
-
errors: [UnknownPorkbunError],
|
|
2657
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1965
2658
|
protocol: PorkbunProtocol,
|
|
1966
2659
|
retry: Retry.Retry,
|
|
1967
2660
|
}));
|
|
1968
|
-
/** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs. Does not require authentication. Prices are in US dollars.
|
|
2661
|
+
/** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs, or only the ones you ask for. Does not require authentication. Prices are in US dollars. Filter with `tld` (one TLD) and/or `tlds` (several). Names are case-insensitive, a leading dot is ignored, and IDN TLDs may be sent in Unicode or punycode (`みんな` or `xn--q9jyb4c`). A TLD Porkbun does not sell is left out of `pricing` and listed in `unsupported`; if none of the requested TLDs is sold the response is `INVALID_TLD` (HTTP 400). No filter returns every TLD. On GET, `tlds` is comma-separated: `?tlds=com,io,dev`. */
|
|
1969
2662
|
export const getPricingGet = /*@__PURE__*/ API.make(() => ({
|
|
1970
2663
|
input: GetPricingGetRequest,
|
|
1971
2664
|
output: GetPricingGetResponse,
|
|
1972
|
-
errors: [UnknownPorkbunError],
|
|
2665
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1973
2666
|
protocol: PorkbunProtocol,
|
|
1974
2667
|
retry: Retry.Retry,
|
|
1975
2668
|
}));
|
|
@@ -2013,7 +2706,7 @@ export const hostingCreateWpCredentials = /*@__PURE__*/ API.make(() => ({
|
|
|
2013
2706
|
protocol: PorkbunProtocol,
|
|
2014
2707
|
retry: Retry.Retry,
|
|
2015
2708
|
}));
|
|
2016
|
-
/** Delete a site file (static hosting only) **Applies to:** Secure Static Hosting only — a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`. Delete a file
|
|
2709
|
+
/** Delete a site file (static hosting only) **Applies to:** Secure Static Hosting only — a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`. Delete a file or directory at `path` in the domain's hosting space. Idempotent: a path that is already gone returns `SUCCESS` with `alreadyAbsent: true`. A directory that still has files returns `HOSTING_DIR_NOT_EMPTY` with its `contents`, unless `recursive: true` is sent, which deletes it with everything inside (the site root can never be deleted). */
|
|
2017
2710
|
export const hostingDeleteFile = /*@__PURE__*/ API.make(() => ({
|
|
2018
2711
|
input: HostingDeleteFileRequest,
|
|
2019
2712
|
output: HostingDeleteFileResponse,
|
|
@@ -2061,6 +2754,14 @@ export const hostingPlans = /*@__PURE__*/ API.make(() => ({
|
|
|
2061
2754
|
protocol: PorkbunProtocol,
|
|
2062
2755
|
retry: Retry.Retry,
|
|
2063
2756
|
}));
|
|
2757
|
+
/** Bulk-create DNS records (transfer restore) Create many records in one call, so a domain arriving from another registrar keeps resolving instead of going dark. Send `records` to import an exact list — the better path when the old registrar has an API you can read with your own credentials. Omit `records` entirely and whatever `/dns/scan/{domain}` can discover is imported instead. **Idempotent.** A record that already exists is counted in `skipped`, not `failed`, so this is safe to re-run and safe to use as a converge step. Records that fail individually are listed in `failures` while the rest still import; the call only errors outright if nothing was importable. Imported records do nothing until the domain actually points at the Porkbun nameservers — check `/domain/getNs/{domain}` and set them with `/domain/updateNs/{domain}`. Maximum 500 records per call. Supports `dryRun`. */
|
|
2758
|
+
export const importDns = /*@__PURE__*/ API.make(() => ({
|
|
2759
|
+
input: ImportDnsRequest,
|
|
2760
|
+
output: ImportDnsResponse,
|
|
2761
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2762
|
+
protocol: PorkbunProtocol,
|
|
2763
|
+
retry: Retry.Retry,
|
|
2764
|
+
}));
|
|
2064
2765
|
/** List all domains Retrieve domains in the authenticated account. Results are returned in chunks of up to 1000 domains. Use `start` to paginate. **Filtering:** all filter parameters are optional. Combine them freely. - `domain` — exact match (returns 0 or 1) - `nameContains` — substring search - `tlds` — limit to these TLDs - `expiringWithinDays` — only domains expiring within N days - `autoRenew` — `yes` / `no` - `apiAccess` — `yes` / `no` (filter to domains the API key can operate on) - `sortName` — `domain` / `tld` / `create_date` / `expire_date` - `sortDirection` — `asc` / `desc` Supports both GET (with header auth) and POST (with body or header auth). For multi-value `tlds` on GET, use bracket syntax: `?tlds[]=com&tlds[]=io`. */
|
|
2065
2766
|
export const listDomains = /*@__PURE__*/ API.make(() => ({
|
|
2066
2767
|
input: ListDomainsRequest,
|
|
@@ -2069,6 +2770,14 @@ export const listDomains = /*@__PURE__*/ API.make(() => ({
|
|
|
2069
2770
|
protocol: PorkbunProtocol,
|
|
2070
2771
|
retry: Retry.Retry,
|
|
2071
2772
|
}));
|
|
2773
|
+
/** List invoices The account's invoices (one per order), newest first, like the orders page on porkbun.com. `total_cents` is what the customer was left paying: refunds are netted out, and `state` says whether the invoice is paid, refunded or partially refunded. Any of the account's API keys can read them. */
|
|
2774
|
+
export const listInvoices = /*@__PURE__*/ API.make(() => ({
|
|
2775
|
+
input: ListInvoicesRequest,
|
|
2776
|
+
output: ListInvoicesResponse,
|
|
2777
|
+
errors: [UnknownPorkbunError],
|
|
2778
|
+
protocol: PorkbunProtocol,
|
|
2779
|
+
retry: Retry.Retry,
|
|
2780
|
+
}));
|
|
2072
2781
|
/** List marketplace domains Retrieve domains listed on the Porkbun marketplace. Two modes: - **Unfiltered (default):** paginated raw listing, up to 5000 entries per call via `start` / `limit`. - **Filtered:** when any of `query`, `tlds`, `sldLengthMin`, `sldLengthMax`, or `sortName` is provided, results are filtered server-side. Filtered mode returns up to 1000 matching listings (matches the web UI's marketplace search). `query` supports `+include` and `-exclude` prefixes per word against the SLD (e.g. `+ai -test` matches SLDs containing 'ai' but not 'test'). Token-based access is not supported. */
|
|
2073
2782
|
export const listMarketplaceListings = /*@__PURE__*/ API.make(() => ({
|
|
2074
2783
|
input: ListMarketplaceListingsRequest,
|
|
@@ -2118,7 +2827,8 @@ export const mockEndpoint = /*@__PURE__*/ API.make(() => ({
|
|
|
2118
2827
|
retry: Retry.Retry,
|
|
2119
2828
|
}));
|
|
2120
2829
|
/** Test credentials and get caller IP Returns the caller's public IP address. Optionally validates API credentials. - **No credentials supplied** — returns IP only. - **Valid credentials supplied** — returns IP with `credentialsValid: true`. - **Invalid credentials supplied** — returns an error. Useful for agents and clients to verify their API key is working before making other calls. */
|
|
2121
|
-
export const ping =
|
|
2830
|
+
export const ping =
|
|
2831
|
+
/*@__PURE__*/ API.make(() => ({
|
|
2122
2832
|
input: PingRequest,
|
|
2123
2833
|
output: PingResponse,
|
|
2124
2834
|
errors: [BadRequest, UnknownPorkbunError],
|
|
@@ -2126,14 +2836,23 @@ export const ping = /*@__PURE__*/ API.make(() => ({
|
|
|
2126
2836
|
retry: Retry.Retry,
|
|
2127
2837
|
}));
|
|
2128
2838
|
/** Get caller IP address Returns the caller's public IP address. No credentials required. Use the `api-ipv4.porkbun.com` hostname if you need to force an IPv4 address. */
|
|
2129
|
-
export const postIp =
|
|
2839
|
+
export const postIp =
|
|
2840
|
+
/*@__PURE__*/ API.make(() => ({
|
|
2130
2841
|
input: PostIpRequest,
|
|
2131
2842
|
output: IpResponse,
|
|
2132
2843
|
errors: [UnknownPorkbunError],
|
|
2133
2844
|
protocol: PorkbunProtocol,
|
|
2134
2845
|
retry: Retry.Retry,
|
|
2135
2846
|
}));
|
|
2136
|
-
/**
|
|
2847
|
+
/** Preview exactly which records a move would copy Which DNS records we would create in Cloudflare for this domain, and which we would drop, **without queueing anything**. The honest answer to "what will this do to my DNS" before committing. Records are always created DNS-only (grey cloud); use `/cloudflare/setProxy` afterwards to turn the proxy on. Also available via POST. */
|
|
2848
|
+
export const previewCloudflare = /*@__PURE__*/ API.make(() => ({
|
|
2849
|
+
input: PreviewCloudflareRequest,
|
|
2850
|
+
output: PreviewCloudflareResponse,
|
|
2851
|
+
errors: [UnknownPorkbunError],
|
|
2852
|
+
protocol: PorkbunProtocol,
|
|
2853
|
+
retry: Retry.Retry,
|
|
2854
|
+
}));
|
|
2855
|
+
/** Renew a domain Renew a domain, paid from account credit or directly in USDC. Requirements: - Domain must be in your account and active - Domain must be opted in to API access - Account email and phone must be verified - Sufficient account credit, or `"payWith": "usdc"` to pay directly - `cost` must equal the current renewal price for the domain's minimum renewal duration (in pennies) - Domain must have been registered more than 30 days ago (checked against the domain's creation date) - Domain must not have been successfully renewed within the last 30 days - Premium renewals are not currently supported via API Renewals are always for the registry-minimum duration (usually 1 year). Use `/domain/checkDomain/{domain}` with `priceType=renewal` to get the current price before renewing. **Rate limits (both apply):** - Attempt limit (default: 1 attempt per second per account) - Success limit (default: 1000 successful renewals per 86400 seconds per account) Both limits are configurable per API key and their current values are returned in the `limits` field of the response. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT renewing or charging — nothing is created. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "renewal", "domain": "example.com", "tld": "com", "available": "unavailable", "premium": false, "duration": 1, "cost": 1099, "costDisplay": "$10.99", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this renewal would succeed and cost $10.99. No order was created and no charge was made.", "requestId": "019e04fa-3c11-7a02-9bd2-1f7c0e4a8b55" } ``` **Paying for it.** Two ways. **From prepaid account credit** (the default): no card on file is charged at purchase time, so the balance has to be there first. Read it with `GET /account/balance`; add to it with `POST /account/topup` (a saved card, with the account holder's OK), `POST /account/topupMpp` (the user's card from a Stripe Link agent wallet), `POST /account/topupCrypto` (USDC) or at https://porkbun.com/account/credit, and auto top-up at https://porkbun.com/account/api keeps it filled. Too little credit returns `INSUFFICIENT_FUNDS` with `cost`, `balance`, `shortfall` and `usdcAmountToCover` in cents. **Or directly in USDC:** add `"payWith": "usdc"` and an x402 client pays the HTTP 402 this returns (`PAYMENT_REQUIRED`, terms in the `PAYMENT-REQUIRED` header) and repeats the request with `PAYMENT-SIGNATURE`; no credit is needed, and if the purchase fails the payment stays on the account as credit (https://porkbun.com/llms/guides/pay-with-usdc-x402). Either way the account's monthly API spend limit applies ($100 a month until the account holder sets their own; `MONTHLY_SPEND_LIMIT_EXCEEDED`). `dryRun: true` reports cost and balance without charging, and `dryRun` with `cost: 0` returns a quote. */
|
|
2137
2856
|
export const renewDomain = /*@__PURE__*/ API.make(() => ({
|
|
2138
2857
|
input: RenewDomainRequest,
|
|
2139
2858
|
output: RenewDomainResponse2,
|
|
@@ -2157,6 +2876,22 @@ export const resetSandbox = /*@__PURE__*/ API.make(() => ({
|
|
|
2157
2876
|
protocol: PorkbunProtocol,
|
|
2158
2877
|
retry: Retry.Retry,
|
|
2159
2878
|
}));
|
|
2879
|
+
/** Restore a zone to a previous state Put a zone back to a restore point. **What it does by default:** adds back every record in the restore point that is not live now. It does **not** remove records you have added since -- pass `prune: true` for that. "Restore my records" usually means "put back what I lost", not "delete everything I have done since", so the destructive half is opt-in. **This is itself reversible.** The zone's current state is snapshotted before anything changes and the new point's id comes back as `previousStateSavedAs`, so an unwanted restore is undone by restoring that. **Read `failed`.** Parking records and other masked types (`ALIAS`, `HTTPS`) are managed by another part of the platform and cannot be recreated this way. They come back named in `failed` rather than being counted as restored, so `restored` is a true count. SOA and NS are never touched. Supports `dryRun: true`, which reports exactly what would be added and removed and changes nothing. */
|
|
2880
|
+
export const restoreDns = /*@__PURE__*/ API.make(() => ({
|
|
2881
|
+
input: RestoreDnsRequest,
|
|
2882
|
+
output: DnsRestoreResponse,
|
|
2883
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2884
|
+
protocol: PorkbunProtocol,
|
|
2885
|
+
retry: Retry.Retry,
|
|
2886
|
+
}));
|
|
2887
|
+
/** Retry a failed or skipped domain Put a domain that failed or was skipped back in the queue. Fails with `RETRY_FAILED` if it is already connected, already in progress, or no longer in the account. Supports `dryRun`. */
|
|
2888
|
+
export const retryCloudflare = /*@__PURE__*/ API.make(() => ({
|
|
2889
|
+
input: RetryCloudflareRequest,
|
|
2890
|
+
output: RetryCloudflareResponse,
|
|
2891
|
+
errors: [UnknownPorkbunError],
|
|
2892
|
+
protocol: PorkbunProtocol,
|
|
2893
|
+
retry: Retry.Retry,
|
|
2894
|
+
}));
|
|
2160
2895
|
/** Sandbox: add fake credit Sandbox only (requires a `pk1_sb_` key). Grants fake account credit so paid operations can keep being exercised after funds run out. Optional `amount` in US cents (default 100000 = $1000, capped 1,000,000). */
|
|
2161
2896
|
export const sandboxTopup = /*@__PURE__*/ API.make(() => ({
|
|
2162
2897
|
input: SandboxTopupRequest,
|
|
@@ -2173,6 +2908,22 @@ export const sandboxTriggerWebhook = /*@__PURE__*/ API.make(() => ({
|
|
|
2173
2908
|
protocol: PorkbunProtocol,
|
|
2174
2909
|
retry: Retry.Retry,
|
|
2175
2910
|
}));
|
|
2911
|
+
/** Search expired-domain closeouts Search the closeout inventory. Closeouts are expired domains that did not sell at auction and are now offered at a fixed, descending price — there is no bidding, the first buyer at the current price takes the name. Every filter is optional; with none you get the first page of the whole list plus `totalAvailable`. Page with `start`/`limit` until `start >= totalAvailable`. **`age` and `registrationDate` are on every row and both are sortable.** On the website the inventory is paginated by price tier and registration date is not shown, so finding aged names means walking several tier pages and then doing a WHOIS lookup per candidate. `sortName=registrationDate&sortDirection=asc` returns the oldest registrations first in one call. `price` is the closeout price alone. The binding total adds the renewal or transfer year you are also buying, and comes from `/closeout/get/{domain}` — it cannot be derived from search results, because a domain already at Porkbun is renewed while anything else is transferred in, and those are priced differently. */
|
|
2912
|
+
export const searchCloseout = /*@__PURE__*/ API.make(() => ({
|
|
2913
|
+
input: SearchCloseoutRequest,
|
|
2914
|
+
output: SearchCloseoutResponse,
|
|
2915
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2916
|
+
protocol: PorkbunProtocol,
|
|
2917
|
+
retry: Retry.Retry,
|
|
2918
|
+
}));
|
|
2919
|
+
/** Configure auto top-up Set the top-up amount, and/or switch auto top-up on or off. `amount` stands on its own. It is what a top-up adds, and `POST /account/topup` charges the same figure on demand, so setting it without automating anything is a normal call: `{"amount": 10000}`. `enabled: true` additionally makes it fire by itself and requires `threshold` (the balance, in integer US cents, below which a top-up happens) plus an amount — either in the same call or already on file. `enabled: false` stops it firing on a threshold and **keeps the amount**, because on-demand top-ups still use it. **`amount` set over the API is capped at $500** ($5 minimum), because that value is also what `POST /account/topup` charges — an API key free to set it to anything would be setting its own limit, which is not a limit. A larger amount set by the account holder at porkbun.com/account/api is honoured as-is. No card is touched here, and one cannot be added over the API. Supports `dryRun`. */
|
|
2920
|
+
export const setAutoTopup = /*@__PURE__*/ API.make(() => ({
|
|
2921
|
+
input: SetAutoTopupRequest,
|
|
2922
|
+
output: AutoTopupResponse,
|
|
2923
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2924
|
+
protocol: PorkbunProtocol,
|
|
2925
|
+
retry: Retry.Retry,
|
|
2926
|
+
}));
|
|
2176
2927
|
/** Send a test event Enqueue a `webhook.test` event to the endpoint so you can confirm reachability and that your signature verification works. The endpoint must be ACTIVE. Delivery is asynchronous (usually within a minute). */
|
|
2177
2928
|
export const testWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2178
2929
|
input: TestWebhookRequest,
|
|
@@ -2181,7 +2932,39 @@ export const testWebhook = /*@__PURE__*/ API.make(() => ({
|
|
|
2181
2932
|
protocol: PorkbunProtocol,
|
|
2182
2933
|
retry: Retry.Retry,
|
|
2183
2934
|
}));
|
|
2184
|
-
/**
|
|
2935
|
+
/** Top up account credit now **Charges the saved payment method** and adds the money to account credit immediately. The call that unblocks work already in progress: enabling auto top-up does nothing until the next order trips the threshold, which is no help to a caller holding an `INSUFFICIENT_FUNDS` response right now. **`amount` is optional.** Omitted, it charges the account's configured top-up amount, or $50 if the account has never set one — `amountSource` in the response says which of `configured`, `default` or `request` applied. Supplied, it charges that figure for this call only and leaves the stored setting alone, which is the point: an agent could always have written the amount to `/account/autoTopup` first, and making it do that turns a one-off charge into a silent edit of a setting the customer owns. The card itself can only be saved outside the API, and a supplied amount is held to the same 500–50000 cent range as one set through `/account/autoTopup`. On top of that the dollars are bounded by the month: the account's **monthly spend limit** caps top-ups as well as domain spend (it is the account saying how much the API may move, and a card charge is the API moving money), and an account that has never set one still gets a $100/month ceiling. Card, auto top-ups set off by an API purchase, MPP and USDC all count toward it — `monthlyCeiling` and `ceilingSource` on `GET /account/autoTopup` say which is in force. Top-ups are also limited to 5 per day and 20 per month (`TOPUP_LIMIT_EXCEEDED`), and every successful charge emails the account holder. Errors that matter: `NO_PAYMENT_METHOD` (nothing saved to charge — the account holder has to save a card or buy credit on the website), `CARD_DECLINED` (nothing was added; the card needs attention), `TOPUP_FAILED` (nothing was charged; retry once). With a sandbox key this grants simulated credit and charges nothing (`simulated: true`). Supports `dryRun`, which previews the amount and charges nothing in any environment. Honours `Idempotency-Key`. */
|
|
2936
|
+
export const topupAccountCredit = /*@__PURE__*/ API.make(() => ({
|
|
2937
|
+
input: TopupAccountCreditRequest,
|
|
2938
|
+
output: TopupAccountCreditResponse,
|
|
2939
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2940
|
+
protocol: PorkbunProtocol,
|
|
2941
|
+
retry: Retry.Retry,
|
|
2942
|
+
}));
|
|
2943
|
+
/** Top up credit with USDC (x402) Opens a Coinbase checkout to add account credit with USDC on Base, the same as Use Crypto on porkbun.com. Nothing is charged by this call. Pay it either way: - `x402Url`: an AI agent with a wallet pays it directly over x402 (a gasless USDC transfer on Base, no page or person involved). This is how an agent gets past `INSUFFICIENT_FUNDS` on an account with no saved card. - `payUrl`: a Coinbase page where a person pays. Credit is added when the payment confirms (usually within a minute), less Coinbase's fee of about 1% (`estimatedFee_cents`, `estimatedCredit_cents`). To cover an `INSUFFICIENT_FUNDS` shortfall exactly, open the checkout for its `usdcAmountToCover`. Check `GET /account/topupCryptoStatus/{checkoutId}`. Payments are on-chain and cannot be reversed. Needs a verified email and phone and an account that is not bank-transfer-only (`CRYPTO_NOT_AVAILABLE` otherwise). Up to 10 checkouts per account per day. USDC counts toward the same monthly ceiling as card and MPP top-ups (the monthly spend limit, or $100 when none is set), checked when the checkout is opened, with unpaid checkouts from the last day counted as if paid (`TOPUP_LIMIT_EXCEEDED`). Not available on sandbox keys (`SANDBOX_UNSUPPORTED`; use `/sandbox/topup`). */
|
|
2944
|
+
export const topupCrypto = /*@__PURE__*/ API.make(() => ({
|
|
2945
|
+
input: TopupCryptoRequest,
|
|
2946
|
+
output: TopupCryptoResponse,
|
|
2947
|
+
errors: [UnknownPorkbunError],
|
|
2948
|
+
protocol: PorkbunProtocol,
|
|
2949
|
+
retry: Retry.Retry,
|
|
2950
|
+
}));
|
|
2951
|
+
/** Status of a USDC top-up Whether a checkout from `POST /account/topupCrypto` has been paid and credited. `state`: ACTIVE (not paid), PROCESSING (paid, being credited), COMPLETED (credited), EXPIRED or FAILED. Returns the current balance too. */
|
|
2952
|
+
export const topupCryptoStatus = /*@__PURE__*/ API.make(() => ({
|
|
2953
|
+
input: TopupCryptoStatusRequest,
|
|
2954
|
+
output: TopupCryptoStatusResponse,
|
|
2955
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2956
|
+
protocol: PorkbunProtocol,
|
|
2957
|
+
retry: Retry.Retry,
|
|
2958
|
+
}));
|
|
2959
|
+
/** Top up credit with the user's card, paid by an agent (MPP) Returns a signed, single-use payment link (valid 15 minutes, bound to this account and amount) that an AI agent pays with the user's **card** over MPP, the Machine Payments Protocol (mpp.dev), using a Stripe Shared Payment Token from its agent wallet (Stripe's Link Agent Wallet). No card needs to be saved at Porkbun. Nothing is charged by this call. The agent's MPP client requests `payUrl` (POST) and gets HTTP `402` with a `WWW-Authenticate: Payment` challenge (`method="stripe"`, `intent="charge"`); its wallet mints a token for the user's card, the client retries with `Authorization: Payment <credential>`, and the credit is added at once: the response carries `credited_cents` and the new `balance_cents`, with a `Payment-Receipt` header. For example: `npx @stripe/link-cli mpp pay <payUrl> -X POST --context "..."`. Link refuses a `--context` shorter than 100 characters: it is what the user reads when approving the spend, so say what it is for and the dollar amount, worded fresh for each payment (Link can refuse an identical repeat). Same limits as card top-ups (`POST /account/topup`): $5-$500, the monthly ceiling, 5 a day and 20 a month (`TOPUP_LIMIT_EXCEEDED`). Not available on sandbox keys (`SANDBOX_UNSUPPORTED`). */
|
|
2960
|
+
export const topupMpp = /*@__PURE__*/ API.make(() => ({
|
|
2961
|
+
input: TopupMppRequest,
|
|
2962
|
+
output: TopupMppResponse,
|
|
2963
|
+
errors: [UnknownPorkbunError],
|
|
2964
|
+
protocol: PorkbunProtocol,
|
|
2965
|
+
retry: Retry.Retry,
|
|
2966
|
+
}));
|
|
2967
|
+
/** Initiate a domain transfer Initiates an inbound domain transfer to Porkbun, paid from account credit or directly in USDC. The transfer is processed asynchronously and typically takes 5–7 days to complete. **Requirements:** - Account email and phone must be verified. - Sufficient account credit to cover the transfer cost, or `"payWith": "usdc"` to pay directly. - Domain must not already be in your account. - No other active transfer for the same domain. - `.uk` and manage-only TLDs are not supported via API. - Premium domain transfers are not supported via API. - Some registries refuse registrant contacts on temporary or encrypted email providers and suspend domains that use one. `.in` and its second levels are the first; a transfer whose registrant contact uses one is refused with `REGISTRANT_EMAIL_NOT_ACCEPTED` before any charge. This is about the contact recorded on the domain, not about who hosts mail for it. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT initiating the transfer or charging — nothing is created. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "transfer", "domain": "example.com", "tld": "com", "available": "unavailable", "premium": false, "duration": 1, "cost": 999, "costDisplay": "$9.99", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this transfer would succeed and cost $9.99. No order was created and no charge was made.", "requestId": "019e04fa-5f22-7c93-8a41-2e9d0b3f6c77" } ``` **Paying for it.** Two ways. **From prepaid account credit** (the default): no card on file is charged at purchase time, so the balance has to be there first. Read it with `GET /account/balance`; add to it with `POST /account/topup` (a saved card, with the account holder's OK), `POST /account/topupMpp` (the user's card from a Stripe Link agent wallet), `POST /account/topupCrypto` (USDC) or at https://porkbun.com/account/credit, and auto top-up at https://porkbun.com/account/api keeps it filled. Too little credit returns `INSUFFICIENT_FUNDS` with `cost`, `balance`, `shortfall` and `usdcAmountToCover` in cents. **Or directly in USDC:** add `"payWith": "usdc"` and an x402 client pays the HTTP 402 this returns (`PAYMENT_REQUIRED`, terms in the `PAYMENT-REQUIRED` header) and repeats the request with `PAYMENT-SIGNATURE`; no credit is needed, and if the purchase fails the payment stays on the account as credit (https://porkbun.com/llms/guides/pay-with-usdc-x402). Either way the account's monthly API spend limit applies ($100 a month until the account holder sets their own; `MONTHLY_SPEND_LIMIT_EXCEEDED`). `dryRun: true` reports cost and balance without charging, and `dryRun` with `cost: 0` returns a quote. */
|
|
2185
2968
|
export const transferDomain = /*@__PURE__*/ API.make(() => ({
|
|
2186
2969
|
input: TransferDomainRequest,
|
|
2187
2970
|
output: TransferDomainResponse2,
|
|
@@ -2189,7 +2972,15 @@ export const transferDomain = /*@__PURE__*/ API.make(() => ({
|
|
|
2189
2972
|
protocol: PorkbunProtocol,
|
|
2190
2973
|
retry: Retry.Retry,
|
|
2191
2974
|
}));
|
|
2192
|
-
/**
|
|
2975
|
+
/** Create the DNS zone for a held transfer Create the Porkbun DNS zone for a domain whose inbound transfer is held at `PENDINGDNS`, so records can be added **before** the domain moves. The zone is created deliberately rather than as a side effect of the first record write. Returns the Porkbun nameservers to point the domain at. Then load the zone with `/dns/import/{domain}` (or the `/dns/*` endpoints) and release with `/domain/startTransfer/{domain}`. Supports `dryRun`. */
|
|
2976
|
+
export const transferDomainPrepare = /*@__PURE__*/ API.make(() => ({
|
|
2977
|
+
input: TransferDomainPrepareRequest,
|
|
2978
|
+
output: TransferDomainPrepareResponse,
|
|
2979
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2980
|
+
protocol: PorkbunProtocol,
|
|
2981
|
+
retry: Retry.Retry,
|
|
2982
|
+
}));
|
|
2983
|
+
/** Update a webhook endpoint Update an endpoint's URL, event subscriptions, and/or status. Only the supplied fields change. Set `status` to `DISABLED` to pause deliveries or `ACTIVE` to resume (resuming also resets the consecutive-failure counter). **URL requirements:** the endpoint must be an `https://` URL on the standard port 443, with a hostname that resolves to a public internet address. Private, loopback, link-local, CGNAT and other reserved ranges are refused (`INVALID_WEBHOOK_URL`) because Porkbun delivers from inside its own network. Credentials in the URL (`https://user:pass@host`) are also refused — authenticate the receiver by verifying the `X-Porkbun-Signature` HMAC instead. A hostname that does not resolve yet is accepted, so you can register the endpoint before the receiver is deployed, but delivery is re-checked against these rules immediately before each request. */
|
|
2193
2984
|
export const updateWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2194
2985
|
input: UpdateWebhookRequest,
|
|
2195
2986
|
output: WebhookEndpointResponse,
|