@distilled.cloud/porkbun 0.0.0 → 1.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +37 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +47 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +9 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +58 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/porkbun.d.ts +2082 -0
- package/lib/services/porkbun.d.ts.map +1 -0
- package/lib/services/porkbun.js +2232 -0
- package/lib/services/porkbun.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +73 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +31 -0
- package/src/pagination.ts +8 -0
- package/src/protocol.ts +83 -0
- package/src/retry.ts +54 -0
- package/src/services/index.ts +2 -0
- package/src/services/porkbun.ts +5320 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,2232 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-porkbun). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
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
|
+
import { UnknownPorkbunError } from "../errors.js";
|
|
9
|
+
import * as Retry from "../retry.js";
|
|
10
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
11
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
12
|
+
code: S.Number,
|
|
13
|
+
message: S.String,
|
|
14
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
15
|
+
}
|
|
16
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
21
|
+
}
|
|
22
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
27
|
+
}
|
|
28
|
+
export const ApikeyRequestRequestCodeChallengeMethod = S.String;
|
|
29
|
+
export const ApikeyRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
+
name: S.optional(S.String),
|
|
31
|
+
codeChallenge: S.optional(S.String),
|
|
32
|
+
codeChallengeMethod: S.optional(ApikeyRequestRequestCodeChallengeMethod),
|
|
33
|
+
sandbox: S.optional(S.Boolean),
|
|
34
|
+
returnUrl: S.optional(S.String),
|
|
35
|
+
}).pipe(T.Http({ method: "POST", uri: "/apikey/request", code: 200 }))).annotate({
|
|
36
|
+
identifier: "ApikeyRequestRequest",
|
|
37
|
+
});
|
|
38
|
+
export const ApikeyRequestResponseDeliveryMode = S.String;
|
|
39
|
+
export const ApikeyRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
|
+
status: S.optional(S.String),
|
|
41
|
+
requestToken: S.String,
|
|
42
|
+
authUrl: S.optional(S.String),
|
|
43
|
+
expiration: S.optional(S.String),
|
|
44
|
+
deliveryMode: S.optional(ApikeyRequestResponseDeliveryMode),
|
|
45
|
+
message: S.optional(S.String),
|
|
46
|
+
})).annotate({
|
|
47
|
+
identifier: "ApikeyRequestResponse",
|
|
48
|
+
});
|
|
49
|
+
export const CreateAccountInviteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
+
email: S.optional(S.String),
|
|
51
|
+
returnUrl: S.optional(S.String),
|
|
52
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/invite", code: 200 }))).annotate({
|
|
53
|
+
identifier: "CreateAccountInviteRequest",
|
|
54
|
+
});
|
|
55
|
+
export const CreateAccountInviteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
56
|
+
status: S.String,
|
|
57
|
+
inviteToken: S.String,
|
|
58
|
+
inviteUrl: S.String,
|
|
59
|
+
expires: S.String,
|
|
60
|
+
})).annotate({
|
|
61
|
+
identifier: "CreateAccountInviteResponse",
|
|
62
|
+
});
|
|
63
|
+
export const CreateDnsRequestType = S.String;
|
|
64
|
+
export const CreateDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
+
domain: S.String.pipe(T.Label()),
|
|
66
|
+
name: S.optional(S.String),
|
|
67
|
+
type: CreateDnsRequestType,
|
|
68
|
+
content: S.String,
|
|
69
|
+
ttl: S.optional(S.Number),
|
|
70
|
+
prio: S.optional(S.Number),
|
|
71
|
+
notes: S.optional(S.String),
|
|
72
|
+
dryRun: S.optional(S.Boolean),
|
|
73
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/create/{domain}", code: 200 }))).annotate({
|
|
74
|
+
identifier: "CreateDnsRequest",
|
|
75
|
+
});
|
|
76
|
+
export const CreateDnsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
|
+
status: S.optional(S.String),
|
|
78
|
+
id: S.optional(S.String),
|
|
79
|
+
})).annotate({
|
|
80
|
+
identifier: "CreateDnsResponse",
|
|
81
|
+
});
|
|
82
|
+
export const CreateDomainRequestAgreeToTerms = S.String;
|
|
83
|
+
export const CreateDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
|
+
domain: S.String.pipe(T.Label()),
|
|
85
|
+
cost: S.Number,
|
|
86
|
+
agreeToTerms: CreateDomainRequestAgreeToTerms,
|
|
87
|
+
whoisPrivacy: S.optional(S.Boolean),
|
|
88
|
+
dryRun: S.optional(S.Boolean),
|
|
89
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/create/{domain}", code: 200 }))).annotate({
|
|
90
|
+
identifier: "CreateDomainRequest",
|
|
91
|
+
});
|
|
92
|
+
export const CreateDomainResponseLimitsAttempts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
|
+
TTL: S.optional(S.Number),
|
|
94
|
+
limit: S.optional(S.Number),
|
|
95
|
+
used: S.optional(S.Number),
|
|
96
|
+
naturalLanguage: S.optional(S.String),
|
|
97
|
+
})).annotate({
|
|
98
|
+
identifier: "CreateDomainResponseLimitsAttempts",
|
|
99
|
+
});
|
|
100
|
+
export const CreateDomainResponseLimitsSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
101
|
+
TTL: S.optional(S.Number),
|
|
102
|
+
limit: S.optional(S.Number),
|
|
103
|
+
used: S.optional(S.Number),
|
|
104
|
+
naturalLanguage: S.optional(S.String),
|
|
105
|
+
})).annotate({
|
|
106
|
+
identifier: "CreateDomainResponseLimitsSuccess",
|
|
107
|
+
});
|
|
108
|
+
export const CreateDomainResponseLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
109
|
+
attempts: S.optional(CreateDomainResponseLimitsAttempts),
|
|
110
|
+
success: S.optional(CreateDomainResponseLimitsSuccess),
|
|
111
|
+
})).annotate({
|
|
112
|
+
identifier: "CreateDomainResponseLimits",
|
|
113
|
+
});
|
|
114
|
+
export const CreateDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
115
|
+
status: S.String,
|
|
116
|
+
domain: S.String,
|
|
117
|
+
cost: S.optional(S.Number),
|
|
118
|
+
orderId: S.Number,
|
|
119
|
+
limits: S.optional(CreateDomainResponseLimits),
|
|
120
|
+
balance: S.optional(S.Number),
|
|
121
|
+
ttlRemaining: S.optional(S.Number),
|
|
122
|
+
requestId: S.optional(S.String),
|
|
123
|
+
})).annotate({
|
|
124
|
+
identifier: "CreateDomainResponse",
|
|
125
|
+
});
|
|
126
|
+
export const DryRunPreviewResponseOperation = S.String;
|
|
127
|
+
export const DryRunPreviewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
|
+
status: S.String,
|
|
129
|
+
dryRun: S.Boolean,
|
|
130
|
+
wouldSucceed: S.Boolean,
|
|
131
|
+
operation: DryRunPreviewResponseOperation,
|
|
132
|
+
domain: S.String,
|
|
133
|
+
tld: S.optional(S.String),
|
|
134
|
+
available: S.optional(S.String),
|
|
135
|
+
premium: S.optional(S.Boolean),
|
|
136
|
+
duration: S.optional(S.Number),
|
|
137
|
+
cost: S.Number,
|
|
138
|
+
costDisplay: S.optional(S.String),
|
|
139
|
+
balance: S.optional(S.Number),
|
|
140
|
+
sufficientFunds: S.optional(S.Boolean),
|
|
141
|
+
monthlySpendLimit: S.optional(S.Number),
|
|
142
|
+
monthlySpendSoFar: S.optional(S.Number),
|
|
143
|
+
withinMonthlySpendLimit: S.optional(S.Boolean),
|
|
144
|
+
message: S.optional(S.String),
|
|
145
|
+
requestId: S.optional(S.String),
|
|
146
|
+
})).annotate({
|
|
147
|
+
identifier: "DryRunPreviewResponse",
|
|
148
|
+
});
|
|
149
|
+
export const CreateDomainResponseBody = S.Unknown;
|
|
150
|
+
export const CreateDomainResponse2 = /*@__PURE__*/ S.suspend(() => CreateDomainResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
151
|
+
identifier: "CreateDomainResponse2",
|
|
152
|
+
});
|
|
153
|
+
export const CreateHostingRequestSku = S.String;
|
|
154
|
+
export const CreateHostingRequestAgreeToTerms = S.String;
|
|
155
|
+
export const CreateHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
|
+
domain: S.String.pipe(T.Label()),
|
|
157
|
+
sku: CreateHostingRequestSku,
|
|
158
|
+
acknowledgedCost: S.Number,
|
|
159
|
+
agreeToTerms: CreateHostingRequestAgreeToTerms,
|
|
160
|
+
agreeToNameserverChange: S.optional(S.Boolean),
|
|
161
|
+
dryRun: S.optional(S.Boolean),
|
|
162
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/create/{domain}", code: 200 }))).annotate({
|
|
163
|
+
identifier: "CreateHostingRequest",
|
|
164
|
+
});
|
|
165
|
+
export const CreateHostingResponseHostingStatus = S.String;
|
|
166
|
+
export const CreateHostingResponseHosting = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
+
domain: S.optional(S.String),
|
|
168
|
+
product: S.optional(S.String),
|
|
169
|
+
plan: S.optional(S.String),
|
|
170
|
+
server: S.optional(S.String),
|
|
171
|
+
status: S.optional(CreateHostingResponseHostingStatus),
|
|
172
|
+
trial: S.optional(S.Boolean),
|
|
173
|
+
trialEndsAt: S.optional(S.NullOr(S.String)),
|
|
174
|
+
autoRenew: S.optional(S.Boolean),
|
|
175
|
+
sku: S.optional(S.String),
|
|
176
|
+
})).annotate({
|
|
177
|
+
identifier: "CreateHostingResponseHosting",
|
|
178
|
+
});
|
|
179
|
+
export const CreateHostingResponseCost = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
+
amount: S.optional(S.Number),
|
|
181
|
+
formatted: S.optional(S.String),
|
|
182
|
+
interval: S.optional(S.String),
|
|
183
|
+
})).annotate({
|
|
184
|
+
identifier: "CreateHostingResponseCost",
|
|
185
|
+
});
|
|
186
|
+
export const CreateHostingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
187
|
+
status: S.optional(S.String),
|
|
188
|
+
orderId: S.optional(S.Number),
|
|
189
|
+
hosting: S.optional(CreateHostingResponseHosting),
|
|
190
|
+
charged: S.optional(S.Number),
|
|
191
|
+
cost: S.optional(CreateHostingResponseCost),
|
|
192
|
+
message: S.optional(S.String),
|
|
193
|
+
})).annotate({
|
|
194
|
+
identifier: "CreateHostingResponse",
|
|
195
|
+
});
|
|
196
|
+
export const CreateWebhookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
197
|
+
export const CreateWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
+
url: S.String,
|
|
199
|
+
events: S.optional(CreateWebhookRequestEventsList),
|
|
200
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/create", code: 200 }))).annotate({
|
|
201
|
+
identifier: "CreateWebhookRequest",
|
|
202
|
+
});
|
|
203
|
+
export const WebhookEndpointEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
204
|
+
export const WebhookEndpointStatus = S.String;
|
|
205
|
+
export const WebhookEndpoint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
206
|
+
id: S.optional(S.Number),
|
|
207
|
+
url: S.optional(S.String),
|
|
208
|
+
secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
209
|
+
events: S.optional(WebhookEndpointEventsList),
|
|
210
|
+
status: S.optional(WebhookEndpointStatus),
|
|
211
|
+
consecutiveFailures: S.optional(S.Number),
|
|
212
|
+
lastSuccessDate: S.optional(S.NullOr(S.String)),
|
|
213
|
+
lastFailureDate: S.optional(S.NullOr(S.String)),
|
|
214
|
+
lastError: S.optional(S.NullOr(S.String)),
|
|
215
|
+
createDate: S.optional(S.String),
|
|
216
|
+
})).annotate({
|
|
217
|
+
identifier: "WebhookEndpoint",
|
|
218
|
+
});
|
|
219
|
+
export const WebhookEndpointResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
220
|
+
status: S.optional(S.String),
|
|
221
|
+
endpoint: S.optional(WebhookEndpoint),
|
|
222
|
+
})).annotate({
|
|
223
|
+
identifier: "WebhookEndpointResponse",
|
|
224
|
+
});
|
|
225
|
+
export const DeleteDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
226
|
+
domain: S.String.pipe(T.Label()),
|
|
227
|
+
id: S.String.pipe(T.Label()),
|
|
228
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/delete/{domain}/{id}", code: 200 }))).annotate({
|
|
229
|
+
identifier: "DeleteDnsRequest",
|
|
230
|
+
});
|
|
231
|
+
export const BasicResponseStatus = S.String;
|
|
232
|
+
export const BasicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
233
|
+
status: BasicResponseStatus,
|
|
234
|
+
message: S.optional(S.String),
|
|
235
|
+
code: S.optional(S.String),
|
|
236
|
+
})).annotate({ identifier: "BasicResponse" });
|
|
237
|
+
export const DeleteHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
238
|
+
domain: S.String.pipe(T.Label()),
|
|
239
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/delete/{domain}", code: 200 }))).annotate({
|
|
240
|
+
identifier: "DeleteHostingRequest",
|
|
241
|
+
});
|
|
242
|
+
export const DeleteWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
+
id: S.Number,
|
|
244
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/delete", code: 200 }))).annotate({
|
|
245
|
+
identifier: "DeleteWebhookRequest",
|
|
246
|
+
});
|
|
247
|
+
export const DeleteWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
+
status: S.optional(S.String),
|
|
249
|
+
message: S.optional(S.String),
|
|
250
|
+
})).annotate({
|
|
251
|
+
identifier: "DeleteWebhookResponse",
|
|
252
|
+
});
|
|
253
|
+
export const DeployHostingRequestFilesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
+
path: S.optional(S.String),
|
|
255
|
+
content: S.optional(S.String),
|
|
256
|
+
})).annotate({
|
|
257
|
+
identifier: "DeployHostingRequestFilesItem",
|
|
258
|
+
});
|
|
259
|
+
export const DeployHostingRequestFilesList = /*@__PURE__*/ S.Array(DeployHostingRequestFilesItem);
|
|
260
|
+
export const DeployHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
261
|
+
domain: S.String.pipe(T.Label()),
|
|
262
|
+
files: DeployHostingRequestFilesList,
|
|
263
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/deploy/{domain}", code: 200 }))).annotate({
|
|
264
|
+
identifier: "DeployHostingRequest",
|
|
265
|
+
});
|
|
266
|
+
export const DeployHostingResponseDeployedList = /*@__PURE__*/ S.Array(S.String);
|
|
267
|
+
export const DeployHostingResponseSkippedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
|
+
path: S.optional(S.String),
|
|
269
|
+
reason: S.optional(S.String),
|
|
270
|
+
})).annotate({
|
|
271
|
+
identifier: "DeployHostingResponseSkippedItem",
|
|
272
|
+
});
|
|
273
|
+
export const DeployHostingResponseSkippedList = /*@__PURE__*/ S.Array(DeployHostingResponseSkippedItem);
|
|
274
|
+
export const DeployHostingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
275
|
+
status: S.optional(S.String),
|
|
276
|
+
deployed: S.optional(DeployHostingResponseDeployedList),
|
|
277
|
+
skipped: S.optional(DeployHostingResponseSkippedList),
|
|
278
|
+
})).annotate({
|
|
279
|
+
identifier: "DeployHostingResponse",
|
|
280
|
+
});
|
|
281
|
+
export const DnsCreateDnssecRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
+
domain: S.String.pipe(T.Label()),
|
|
283
|
+
keyTag: S.String,
|
|
284
|
+
alg: S.String,
|
|
285
|
+
digestType: S.String,
|
|
286
|
+
digest: S.String,
|
|
287
|
+
maxSigLife: S.optional(S.String),
|
|
288
|
+
keyDataFlags: S.optional(S.String),
|
|
289
|
+
keyDataProtocol: S.optional(S.String),
|
|
290
|
+
keyDataAlgo: S.optional(S.String),
|
|
291
|
+
keyDataPubKey: S.optional(S.String),
|
|
292
|
+
}).pipe(T.Http({
|
|
293
|
+
method: "POST",
|
|
294
|
+
uri: "/dns/createDnssecRecord/{domain}",
|
|
295
|
+
code: 200,
|
|
296
|
+
}))).annotate({
|
|
297
|
+
identifier: "DnsCreateDnssecRecordRequest",
|
|
298
|
+
});
|
|
299
|
+
export const DnsDeleteByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
300
|
+
domain: S.String.pipe(T.Label()),
|
|
301
|
+
type: S.String.pipe(T.Label()),
|
|
302
|
+
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({
|
|
308
|
+
identifier: "DnsDeleteByNameTypeRequest",
|
|
309
|
+
});
|
|
310
|
+
export const DnsDeleteDnssecRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
311
|
+
domain: S.String.pipe(T.Label()),
|
|
312
|
+
keytag: S.String.pipe(T.Label()),
|
|
313
|
+
}).pipe(T.Http({
|
|
314
|
+
method: "POST",
|
|
315
|
+
uri: "/dns/deleteDnssecRecord/{domain}/{keytag}",
|
|
316
|
+
code: 200,
|
|
317
|
+
}))).annotate({
|
|
318
|
+
identifier: "DnsDeleteDnssecRecordRequest",
|
|
319
|
+
});
|
|
320
|
+
export const DnsEditByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
domain: S.String.pipe(T.Label()),
|
|
322
|
+
type: S.String.pipe(T.Label()),
|
|
323
|
+
subdomain: S.String.pipe(T.Label()),
|
|
324
|
+
content: S.String,
|
|
325
|
+
ttl: S.optional(S.Number),
|
|
326
|
+
prio: S.optional(S.Number),
|
|
327
|
+
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
|
+
});
|
|
335
|
+
export const DnsGetDnssecRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
336
|
+
domain: S.String.pipe(T.Label()),
|
|
337
|
+
}).pipe(T.Http({
|
|
338
|
+
method: "POST",
|
|
339
|
+
uri: "/dns/getDnssecRecords/{domain}",
|
|
340
|
+
code: 200,
|
|
341
|
+
}))).annotate({
|
|
342
|
+
identifier: "DnsGetDnssecRecordsRequest",
|
|
343
|
+
});
|
|
344
|
+
export const DnsGetDnssecRecordsResponseRecordsValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
345
|
+
keyTag: S.optional(S.String),
|
|
346
|
+
alg: S.optional(S.String),
|
|
347
|
+
digestType: S.optional(S.String),
|
|
348
|
+
digest: S.optional(S.String),
|
|
349
|
+
pubKey: S.optional(S.String),
|
|
350
|
+
})).annotate({
|
|
351
|
+
identifier: "DnsGetDnssecRecordsResponseRecordsValue",
|
|
352
|
+
});
|
|
353
|
+
export const DnsGetDnssecRecordsResponseRecordsMap = /*@__PURE__*/ S.Record(S.String, DnsGetDnssecRecordsResponseRecordsValue);
|
|
354
|
+
export const DnsGetDnssecRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
355
|
+
status: S.optional(S.String),
|
|
356
|
+
records: S.optional(DnsGetDnssecRecordsResponseRecordsMap),
|
|
357
|
+
})).annotate({
|
|
358
|
+
identifier: "DnsGetDnssecRecordsResponse",
|
|
359
|
+
});
|
|
360
|
+
export const DnsRetrieveByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
361
|
+
domain: S.String.pipe(T.Label()),
|
|
362
|
+
id: S.String.pipe(T.Label()),
|
|
363
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/retrieve/{domain}/{id}", code: 200 }))).annotate({
|
|
364
|
+
identifier: "DnsRetrieveByIdRequest",
|
|
365
|
+
});
|
|
366
|
+
export const DnsRecordsResponseCloudflare = S.String;
|
|
367
|
+
export const DnsRecordsResponseRecordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
+
id: S.optional(S.String),
|
|
369
|
+
name: S.optional(S.String),
|
|
370
|
+
type: S.optional(S.String),
|
|
371
|
+
content: S.optional(S.String),
|
|
372
|
+
ttl: S.optional(S.String),
|
|
373
|
+
prio: S.optional(S.NullOr(S.String)),
|
|
374
|
+
notes: S.optional(S.NullOr(S.String)),
|
|
375
|
+
})).annotate({
|
|
376
|
+
identifier: "DnsRecordsResponseRecordsItem",
|
|
377
|
+
});
|
|
378
|
+
export const DnsRecordsResponseRecordsList = /*@__PURE__*/ S.Array(DnsRecordsResponseRecordsItem);
|
|
379
|
+
export const DnsRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
380
|
+
status: S.String,
|
|
381
|
+
cloudflare: S.optional(DnsRecordsResponseCloudflare),
|
|
382
|
+
records: DnsRecordsResponseRecordsList,
|
|
383
|
+
})).annotate({
|
|
384
|
+
identifier: "DnsRecordsResponse",
|
|
385
|
+
});
|
|
386
|
+
export const DnsRetrieveByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
387
|
+
domain: S.String.pipe(T.Label()),
|
|
388
|
+
type: S.String.pipe(T.Label()),
|
|
389
|
+
subdomain: S.String.pipe(T.Label()),
|
|
390
|
+
}).pipe(T.Http({
|
|
391
|
+
method: "POST",
|
|
392
|
+
uri: "/dns/retrieveByNameType/{domain}/{type}/{subdomain}",
|
|
393
|
+
code: 200,
|
|
394
|
+
}))).annotate({
|
|
395
|
+
identifier: "DnsRetrieveByNameTypeRequest",
|
|
396
|
+
});
|
|
397
|
+
export const DomainAddUrlForwardRequestType = S.String;
|
|
398
|
+
export const DomainAddUrlForwardRequestRedirectType = S.String;
|
|
399
|
+
export const DomainAddUrlForwardRequestIncludePath = S.String;
|
|
400
|
+
export const DomainAddUrlForwardRequestWildcard = S.String;
|
|
401
|
+
export const DomainAddUrlForwardRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
402
|
+
domain: S.String.pipe(T.Label()),
|
|
403
|
+
subdomain: S.optional(S.String),
|
|
404
|
+
location: S.String,
|
|
405
|
+
type: DomainAddUrlForwardRequestType,
|
|
406
|
+
redirectType: S.optional(DomainAddUrlForwardRequestRedirectType),
|
|
407
|
+
includePath: DomainAddUrlForwardRequestIncludePath,
|
|
408
|
+
wildcard: DomainAddUrlForwardRequestWildcard,
|
|
409
|
+
}).pipe(T.Http({
|
|
410
|
+
method: "POST",
|
|
411
|
+
uri: "/domain/addUrlForward/{domain}",
|
|
412
|
+
code: 200,
|
|
413
|
+
}))).annotate({
|
|
414
|
+
identifier: "DomainAddUrlForwardRequest",
|
|
415
|
+
});
|
|
416
|
+
export const DomainCheckDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
417
|
+
domain: S.String.pipe(T.Label()),
|
|
418
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/checkDomain/{domain}", code: 200 }))).annotate({
|
|
419
|
+
identifier: "DomainCheckDomainRequest",
|
|
420
|
+
});
|
|
421
|
+
export const CheckDomainResponseResponseAvail = S.String;
|
|
422
|
+
export const CheckDomainResponseResponseFirstYearPromo = S.String;
|
|
423
|
+
export const CheckDomainResponseResponsePremium = S.String;
|
|
424
|
+
export const CheckDomainResponseResponseAdditionalRenewal =
|
|
425
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
426
|
+
type: S.optional(S.String),
|
|
427
|
+
price: S.optional(S.String),
|
|
428
|
+
regularPrice: S.optional(S.String),
|
|
429
|
+
})).annotate({
|
|
430
|
+
identifier: "CheckDomainResponseResponseAdditionalRenewal",
|
|
431
|
+
});
|
|
432
|
+
export const CheckDomainResponseResponseAdditionalTransfer = CheckDomainResponseResponseAdditionalRenewal;
|
|
433
|
+
export const CheckDomainResponseResponseAdditional = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
|
+
renewal: S.optional(CheckDomainResponseResponseAdditionalRenewal),
|
|
435
|
+
transfer: S.optional(CheckDomainResponseResponseAdditionalRenewal),
|
|
436
|
+
})).annotate({
|
|
437
|
+
identifier: "CheckDomainResponseResponseAdditional",
|
|
438
|
+
});
|
|
439
|
+
export const CheckDomainResponseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
440
|
+
avail: S.optional(CheckDomainResponseResponseAvail),
|
|
441
|
+
type: S.optional(S.String),
|
|
442
|
+
price: S.optional(S.String),
|
|
443
|
+
firstYearPromo: S.optional(CheckDomainResponseResponseFirstYearPromo),
|
|
444
|
+
regularPrice: S.optional(S.String),
|
|
445
|
+
premium: S.optional(CheckDomainResponseResponsePremium),
|
|
446
|
+
minDuration: S.optional(S.Number),
|
|
447
|
+
additional: S.optional(CheckDomainResponseResponseAdditional),
|
|
448
|
+
})).annotate({
|
|
449
|
+
identifier: "CheckDomainResponseResponse",
|
|
450
|
+
});
|
|
451
|
+
export const CheckDomainResponseLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
452
|
+
TTL: S.optional(S.Number),
|
|
453
|
+
limit: S.optional(S.Number),
|
|
454
|
+
used: S.optional(S.Number),
|
|
455
|
+
naturalLanguage: S.optional(S.String),
|
|
456
|
+
})).annotate({
|
|
457
|
+
identifier: "CheckDomainResponseLimits",
|
|
458
|
+
});
|
|
459
|
+
export const CheckDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
460
|
+
status: S.String,
|
|
461
|
+
response: CheckDomainResponseResponse,
|
|
462
|
+
limits: S.optional(CheckDomainResponseLimits),
|
|
463
|
+
ttlRemaining: S.optional(S.Number),
|
|
464
|
+
})).annotate({
|
|
465
|
+
identifier: "CheckDomainResponse",
|
|
466
|
+
});
|
|
467
|
+
export const DomainCreateGlueRequestIpsList = /*@__PURE__*/ S.Array(S.String);
|
|
468
|
+
export const DomainCreateGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
|
+
domain: S.String.pipe(T.Label()),
|
|
470
|
+
subdomain: S.String.pipe(T.Label()),
|
|
471
|
+
ips: DomainCreateGlueRequestIpsList,
|
|
472
|
+
}).pipe(T.Http({
|
|
473
|
+
method: "POST",
|
|
474
|
+
uri: "/domain/createGlue/{domain}/{subdomain}",
|
|
475
|
+
code: 200,
|
|
476
|
+
}))).annotate({
|
|
477
|
+
identifier: "DomainCreateGlueRequest",
|
|
478
|
+
});
|
|
479
|
+
export const DomainDeleteGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
480
|
+
domain: S.String.pipe(T.Label()),
|
|
481
|
+
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
|
+
});
|
|
489
|
+
export const DomainDeleteUrlForwardRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
490
|
+
domain: S.String.pipe(T.Label()),
|
|
491
|
+
id: S.String.pipe(T.Label()),
|
|
492
|
+
}).pipe(T.Http({
|
|
493
|
+
method: "POST",
|
|
494
|
+
uri: "/domain/deleteUrlForward/{domain}/{id}",
|
|
495
|
+
code: 200,
|
|
496
|
+
}))).annotate({
|
|
497
|
+
identifier: "DomainDeleteUrlForwardRequest",
|
|
498
|
+
});
|
|
499
|
+
export const DomainGetContactsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
500
|
+
domain: S.String.pipe(T.Label()),
|
|
501
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getContacts/{domain}", code: 200 }))).annotate({
|
|
502
|
+
identifier: "DomainGetContactsRequest",
|
|
503
|
+
});
|
|
504
|
+
export const DomainContact = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
505
|
+
firstName: S.optional(S.String),
|
|
506
|
+
lastName: S.optional(S.String),
|
|
507
|
+
organization: S.optional(S.String),
|
|
508
|
+
address1: S.optional(S.String),
|
|
509
|
+
address2: S.optional(S.String),
|
|
510
|
+
address3: S.optional(S.String),
|
|
511
|
+
city: S.optional(S.String),
|
|
512
|
+
state: S.optional(S.String),
|
|
513
|
+
postalCode: S.optional(S.String),
|
|
514
|
+
country: S.optional(S.String),
|
|
515
|
+
phone: S.optional(S.String),
|
|
516
|
+
phoneCountryCode: S.optional(S.String),
|
|
517
|
+
fax: S.optional(S.String),
|
|
518
|
+
email: S.optional(S.String),
|
|
519
|
+
})).annotate({ identifier: "DomainContact" });
|
|
520
|
+
export const DomainGetContactsResponseContacts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
521
|
+
registrant: S.optional(DomainContact),
|
|
522
|
+
admin: S.optional(DomainContact),
|
|
523
|
+
tech: S.optional(DomainContact),
|
|
524
|
+
billing: S.optional(DomainContact),
|
|
525
|
+
})).annotate({
|
|
526
|
+
identifier: "DomainGetContactsResponseContacts",
|
|
527
|
+
});
|
|
528
|
+
export const DomainGetContactsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
529
|
+
status: S.optional(S.String),
|
|
530
|
+
contacts: S.optional(DomainGetContactsResponseContacts),
|
|
531
|
+
})).annotate({
|
|
532
|
+
identifier: "DomainGetContactsResponse",
|
|
533
|
+
});
|
|
534
|
+
export const DomainGetGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
535
|
+
domain: S.String.pipe(T.Label()),
|
|
536
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/getGlue/{domain}", code: 200 }))).annotate({
|
|
537
|
+
identifier: "DomainGetGlueRequest",
|
|
538
|
+
});
|
|
539
|
+
export const DomainGetGlueResponseHostsItemList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
540
|
+
export const DomainGetGlueResponseHostsList = /*@__PURE__*/ S.Array(DomainGetGlueResponseHostsItemList);
|
|
541
|
+
export const DomainGetGlueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
542
|
+
status: S.optional(S.String),
|
|
543
|
+
hosts: S.optional(DomainGetGlueResponseHostsList),
|
|
544
|
+
})).annotate({
|
|
545
|
+
identifier: "DomainGetGlueResponse",
|
|
546
|
+
});
|
|
547
|
+
export const DomainGetNsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
548
|
+
domain: S.String.pipe(T.Label()),
|
|
549
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/getNs/{domain}", code: 200 }))).annotate({
|
|
550
|
+
identifier: "DomainGetNsRequest",
|
|
551
|
+
});
|
|
552
|
+
export const DomainGetNsResponseNsList = /*@__PURE__*/ S.Array(S.String);
|
|
553
|
+
export const DomainGetNsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
554
|
+
status: S.optional(S.String),
|
|
555
|
+
ns: S.optional(DomainGetNsResponseNsList),
|
|
556
|
+
})).annotate({
|
|
557
|
+
identifier: "DomainGetNsResponse",
|
|
558
|
+
});
|
|
559
|
+
export const DomainGetRegistrationRequirementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
|
+
tld: S.String.pipe(T.Label()),
|
|
561
|
+
}).pipe(T.Http({
|
|
562
|
+
method: "GET",
|
|
563
|
+
uri: "/domain/getRegistrationRequirements/{tld}",
|
|
564
|
+
code: 200,
|
|
565
|
+
}))).annotate({
|
|
566
|
+
identifier: "DomainGetRegistrationRequirementsRequest",
|
|
567
|
+
});
|
|
568
|
+
export const DomainGetRegistrationRequirementsResponse =
|
|
569
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
570
|
+
status: S.optional(S.String),
|
|
571
|
+
tld: S.optional(S.String),
|
|
572
|
+
apiRegisterable: S.optional(S.Boolean),
|
|
573
|
+
registrationDurationYears: S.optional(S.Number),
|
|
574
|
+
maxRegistrationYears: S.optional(S.NullOr(S.Number)),
|
|
575
|
+
whoisPrivacySupported: S.optional(S.Boolean),
|
|
576
|
+
requiresValidatedAddress: S.optional(S.Boolean),
|
|
577
|
+
registrantOnly: S.optional(S.Boolean),
|
|
578
|
+
requestSchema: S.optional(S.Unknown),
|
|
579
|
+
registryRequirements: S.optional(S.NullOr(S.Unknown)),
|
|
580
|
+
notApiRegisterableReason: S.optional(S.String),
|
|
581
|
+
})).annotate({
|
|
582
|
+
identifier: "DomainGetRegistrationRequirementsResponse",
|
|
583
|
+
});
|
|
584
|
+
export const DomainGetUrlForwardingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
585
|
+
domain: S.String.pipe(T.Label()),
|
|
586
|
+
}).pipe(T.Http({
|
|
587
|
+
method: "POST",
|
|
588
|
+
uri: "/domain/getUrlForwarding/{domain}",
|
|
589
|
+
code: 200,
|
|
590
|
+
}))).annotate({
|
|
591
|
+
identifier: "DomainGetUrlForwardingRequest",
|
|
592
|
+
});
|
|
593
|
+
export const GetUrlForwardingResponseForwardsItemType = S.String;
|
|
594
|
+
export const GetUrlForwardingResponseForwardsItemRedirectType = S.String;
|
|
595
|
+
export const GetUrlForwardingResponseForwardsItemIncludePath = S.String;
|
|
596
|
+
export const GetUrlForwardingResponseForwardsItemWildcard = S.String;
|
|
597
|
+
export const GetUrlForwardingResponseForwardsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
598
|
+
id: S.optional(S.String),
|
|
599
|
+
subdomain: S.optional(S.String),
|
|
600
|
+
location: S.optional(S.String),
|
|
601
|
+
type: S.optional(GetUrlForwardingResponseForwardsItemType),
|
|
602
|
+
redirectType: S.optional(GetUrlForwardingResponseForwardsItemRedirectType),
|
|
603
|
+
includePath: S.optional(GetUrlForwardingResponseForwardsItemIncludePath),
|
|
604
|
+
wildcard: S.optional(GetUrlForwardingResponseForwardsItemWildcard),
|
|
605
|
+
})).annotate({
|
|
606
|
+
identifier: "GetUrlForwardingResponseForwardsItem",
|
|
607
|
+
});
|
|
608
|
+
export const GetUrlForwardingResponseForwardsList = /*@__PURE__*/ S.Array(GetUrlForwardingResponseForwardsItem);
|
|
609
|
+
export const GetUrlForwardingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
610
|
+
status: S.String,
|
|
611
|
+
forwards: GetUrlForwardingResponseForwardsList,
|
|
612
|
+
})).annotate({
|
|
613
|
+
identifier: "GetUrlForwardingResponse",
|
|
614
|
+
});
|
|
615
|
+
export const DomainUpdateAutoRenewRequestStatus = S.String;
|
|
616
|
+
export const DomainUpdateAutoRenewRequestDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
617
|
+
export const DomainUpdateAutoRenewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
618
|
+
domain: S.String.pipe(T.Label()),
|
|
619
|
+
status: DomainUpdateAutoRenewRequestStatus,
|
|
620
|
+
domains: S.optional(DomainUpdateAutoRenewRequestDomainsList),
|
|
621
|
+
}).pipe(T.Http({
|
|
622
|
+
method: "POST",
|
|
623
|
+
uri: "/domain/updateAutoRenew/{domain}",
|
|
624
|
+
code: 200,
|
|
625
|
+
}))).annotate({
|
|
626
|
+
identifier: "DomainUpdateAutoRenewRequest",
|
|
627
|
+
});
|
|
628
|
+
export const DomainUpdateAutoRenewResponseResultsValue =
|
|
629
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
630
|
+
status: S.optional(S.String),
|
|
631
|
+
message: S.optional(S.String),
|
|
632
|
+
})).annotate({
|
|
633
|
+
identifier: "DomainUpdateAutoRenewResponseResultsValue",
|
|
634
|
+
});
|
|
635
|
+
export const DomainUpdateAutoRenewResponseResultsMap = /*@__PURE__*/ S.Record(S.String, DomainUpdateAutoRenewResponseResultsValue);
|
|
636
|
+
export const DomainUpdateAutoRenewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
637
|
+
status: S.optional(S.String),
|
|
638
|
+
results: S.optional(DomainUpdateAutoRenewResponseResultsMap),
|
|
639
|
+
})).annotate({
|
|
640
|
+
identifier: "DomainUpdateAutoRenewResponse",
|
|
641
|
+
});
|
|
642
|
+
export const DomainUpdateContactsRequestContacts = DomainGetContactsResponseContacts;
|
|
643
|
+
export const DomainUpdateContactsRequestAddressValidationChoice = S.String;
|
|
644
|
+
export const DomainUpdateContactsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
645
|
+
domain: S.String.pipe(T.Label()),
|
|
646
|
+
contacts: S.optional(DomainGetContactsResponseContacts),
|
|
647
|
+
contact: S.optional(DomainContact),
|
|
648
|
+
dryRun: S.optional(S.Boolean),
|
|
649
|
+
addressValidationChoice: S.optional(DomainUpdateContactsRequestAddressValidationChoice),
|
|
650
|
+
}).pipe(T.Http({
|
|
651
|
+
method: "POST",
|
|
652
|
+
uri: "/domain/updateContacts/{domain}",
|
|
653
|
+
code: 200,
|
|
654
|
+
}))).annotate({
|
|
655
|
+
identifier: "DomainUpdateContactsRequest",
|
|
656
|
+
});
|
|
657
|
+
export const DomainUpdateContactsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
658
|
+
status: S.optional(S.String),
|
|
659
|
+
message: S.optional(S.String),
|
|
660
|
+
registrantChanged: S.optional(S.Boolean),
|
|
661
|
+
})).annotate({
|
|
662
|
+
identifier: "DomainUpdateContactsResponse",
|
|
663
|
+
});
|
|
664
|
+
export const DomainUpdateGlueRequestIpsList = /*@__PURE__*/ S.Array(S.String);
|
|
665
|
+
export const DomainUpdateGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
666
|
+
domain: S.String.pipe(T.Label()),
|
|
667
|
+
subdomain: S.String.pipe(T.Label()),
|
|
668
|
+
ips: DomainUpdateGlueRequestIpsList,
|
|
669
|
+
}).pipe(T.Http({
|
|
670
|
+
method: "POST",
|
|
671
|
+
uri: "/domain/updateGlue/{domain}/{subdomain}",
|
|
672
|
+
code: 200,
|
|
673
|
+
}))).annotate({
|
|
674
|
+
identifier: "DomainUpdateGlueRequest",
|
|
675
|
+
});
|
|
676
|
+
export const DomainUpdateNsRequestNsList = /*@__PURE__*/ S.Array(S.String);
|
|
677
|
+
export const DomainUpdateNsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
678
|
+
domain: S.String.pipe(T.Label()),
|
|
679
|
+
ns: DomainUpdateNsRequestNsList,
|
|
680
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/updateNs/{domain}", code: 200 }))).annotate({
|
|
681
|
+
identifier: "DomainUpdateNsRequest",
|
|
682
|
+
});
|
|
683
|
+
export const EditDnsRequestType = S.String;
|
|
684
|
+
export const EditDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
685
|
+
domain: S.String.pipe(T.Label()),
|
|
686
|
+
id: S.String.pipe(T.Label()),
|
|
687
|
+
name: S.optional(S.String),
|
|
688
|
+
type: EditDnsRequestType,
|
|
689
|
+
content: S.String,
|
|
690
|
+
ttl: S.optional(S.Number),
|
|
691
|
+
prio: S.optional(S.Number),
|
|
692
|
+
notes: S.optional(S.String),
|
|
693
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/edit/{domain}/{id}", code: 200 }))).annotate({ identifier: "EditDnsRequest" });
|
|
694
|
+
export const EmailSetPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
|
+
emailAddress: S.String,
|
|
696
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
697
|
+
}).pipe(T.Http({ method: "POST", uri: "/email/setPassword", code: 200 }))).annotate({
|
|
698
|
+
identifier: "EmailSetPasswordRequest",
|
|
699
|
+
});
|
|
700
|
+
export const GetAccountInviteStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
701
|
+
token: S.String.pipe(T.Query()),
|
|
702
|
+
}).pipe(T.Http({ method: "GET", uri: "/account/inviteStatus", code: 200 }))).annotate({
|
|
703
|
+
identifier: "GetAccountInviteStatusRequest",
|
|
704
|
+
});
|
|
705
|
+
export const GetAccountInviteStatusResponseInviteStatus = S.String;
|
|
706
|
+
export const GetAccountInviteStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
707
|
+
status: S.String,
|
|
708
|
+
inviteStatus: GetAccountInviteStatusResponseInviteStatus,
|
|
709
|
+
newAccountId: S.optional(S.Number),
|
|
710
|
+
})).annotate({
|
|
711
|
+
identifier: "GetAccountInviteStatusResponse",
|
|
712
|
+
});
|
|
713
|
+
export const GetApikeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
714
|
+
requestToken: S.String,
|
|
715
|
+
codeVerifier: S.optional(S.String),
|
|
716
|
+
}).pipe(T.Http({ method: "POST", uri: "/apikey/retrieve", code: 200 }))).annotate({
|
|
717
|
+
identifier: "GetApikeyRequest",
|
|
718
|
+
});
|
|
719
|
+
export const GetApikeyResponseStatus = S.String;
|
|
720
|
+
export const GetApikeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
721
|
+
status: S.optional(GetApikeyResponseStatus),
|
|
722
|
+
apikey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
723
|
+
secretapikey: S.optional(S.String),
|
|
724
|
+
message: S.optional(S.String),
|
|
725
|
+
code: S.optional(S.String),
|
|
726
|
+
})).annotate({
|
|
727
|
+
identifier: "GetApikeyResponse",
|
|
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
|
+
});
|
|
732
|
+
export const ApiSettingsResponseStatus = S.String;
|
|
733
|
+
export const ApiSettingsResponseSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
734
|
+
monthlySpendLimit: S.optional(S.NullOr(S.Number)),
|
|
735
|
+
lowBalanceAlert: S.optional(S.NullOr(S.Number)),
|
|
736
|
+
autoTopup: S.optional(S.Boolean),
|
|
737
|
+
topupThreshold: S.optional(S.NullOr(S.Number)),
|
|
738
|
+
topupAmount: S.optional(S.NullOr(S.Number)),
|
|
739
|
+
})).annotate({
|
|
740
|
+
identifier: "ApiSettingsResponseSettings",
|
|
741
|
+
});
|
|
742
|
+
export const ApiSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
743
|
+
status: S.optional(ApiSettingsResponseStatus),
|
|
744
|
+
settings: S.optional(ApiSettingsResponseSettings),
|
|
745
|
+
monthlySpend: S.optional(S.Number),
|
|
746
|
+
})).annotate({
|
|
747
|
+
identifier: "ApiSettingsResponse",
|
|
748
|
+
});
|
|
749
|
+
export const GetBalanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/account/balance", code: 200 }))).annotate({
|
|
750
|
+
identifier: "GetBalanceRequest",
|
|
751
|
+
});
|
|
752
|
+
export const BalanceResponseStatus = S.String;
|
|
753
|
+
export const BalanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
754
|
+
status: S.optional(BalanceResponseStatus),
|
|
755
|
+
balance: S.optional(S.Number),
|
|
756
|
+
display: S.optional(S.String),
|
|
757
|
+
})).annotate({
|
|
758
|
+
identifier: "BalanceResponse",
|
|
759
|
+
});
|
|
760
|
+
export const GetDnsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
761
|
+
domain: S.String.pipe(T.Label()),
|
|
762
|
+
}).pipe(T.Http({ method: "POST", uri: "/dns/retrieve/{domain}", code: 200 }))).annotate({ identifier: "GetDnsRequest" });
|
|
763
|
+
export const GetDnsRecordByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
764
|
+
domain: S.String.pipe(T.Label()),
|
|
765
|
+
id: S.String.pipe(T.Label()),
|
|
766
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/retrieve/{domain}/{id}", code: 200 }))).annotate({
|
|
767
|
+
identifier: "GetDnsRecordByIdRequest",
|
|
768
|
+
});
|
|
769
|
+
export const GetDnsRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
770
|
+
domain: S.String.pipe(T.Label()),
|
|
771
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/retrieve/{domain}", code: 200 }))).annotate({
|
|
772
|
+
identifier: "GetDnsRecordsRequest",
|
|
773
|
+
});
|
|
774
|
+
export const GetDnsRecordsByNameTypeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
775
|
+
domain: S.String.pipe(T.Label()),
|
|
776
|
+
type: S.String.pipe(T.Label()),
|
|
777
|
+
subdomain: S.String.pipe(T.Label()),
|
|
778
|
+
}).pipe(T.Http({
|
|
779
|
+
method: "GET",
|
|
780
|
+
uri: "/dns/retrieveByNameType/{domain}/{type}/{subdomain}",
|
|
781
|
+
code: 200,
|
|
782
|
+
}))).annotate({
|
|
783
|
+
identifier: "GetDnsRecordsByNameTypeRequest",
|
|
784
|
+
});
|
|
785
|
+
export const GetDnssecRecordsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
786
|
+
domain: S.String.pipe(T.Label()),
|
|
787
|
+
}).pipe(T.Http({ method: "GET", uri: "/dns/getDnssecRecords/{domain}", code: 200 }))).annotate({
|
|
788
|
+
identifier: "GetDnssecRecordsRequest",
|
|
789
|
+
});
|
|
790
|
+
export const GetDnssecRecordsResponseRecordsValue = DnsGetDnssecRecordsResponseRecordsValue;
|
|
791
|
+
export const GetDnssecRecordsResponseRecordsMap = /*@__PURE__*/ S.Record(S.String, DnsGetDnssecRecordsResponseRecordsValue);
|
|
792
|
+
export const GetDnssecRecordsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
793
|
+
status: S.optional(S.String),
|
|
794
|
+
records: S.optional(GetDnssecRecordsResponseRecordsMap),
|
|
795
|
+
})).annotate({
|
|
796
|
+
identifier: "GetDnssecRecordsResponse",
|
|
797
|
+
});
|
|
798
|
+
export const GetDomainRequestIncludeLabels = S.String;
|
|
799
|
+
export const GetDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
800
|
+
domain: S.String.pipe(T.Label()),
|
|
801
|
+
includeLabels: S.optional(GetDomainRequestIncludeLabels.pipe(T.Query())),
|
|
802
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/get/{domain}", code: 200 }))).annotate({
|
|
803
|
+
identifier: "GetDomainRequest",
|
|
804
|
+
});
|
|
805
|
+
export const GetDomainResponseDomain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
806
|
+
domain: S.optional(S.String),
|
|
807
|
+
status: S.optional(S.String),
|
|
808
|
+
tld: S.optional(S.String),
|
|
809
|
+
createDate: S.optional(S.String),
|
|
810
|
+
expireDate: S.optional(S.String),
|
|
811
|
+
securityLock: S.optional(S.Number),
|
|
812
|
+
whoisPrivacy: S.optional(S.Number),
|
|
813
|
+
autoRenew: S.optional(S.Number),
|
|
814
|
+
apiAccess: S.optional(S.Number),
|
|
815
|
+
notLocal: S.optional(S.Number),
|
|
816
|
+
})).annotate({
|
|
817
|
+
identifier: "GetDomainResponseDomain",
|
|
818
|
+
});
|
|
819
|
+
export const GetDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
820
|
+
status: S.optional(S.String),
|
|
821
|
+
domain: S.optional(GetDomainResponseDomain),
|
|
822
|
+
})).annotate({
|
|
823
|
+
identifier: "GetDomainResponse",
|
|
824
|
+
});
|
|
825
|
+
export const GetDomainGlueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
826
|
+
domain: S.String.pipe(T.Label()),
|
|
827
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getGlue/{domain}", code: 200 }))).annotate({
|
|
828
|
+
identifier: "GetDomainGlueRequest",
|
|
829
|
+
});
|
|
830
|
+
export const GetDomainGlueResponseHostsItemList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
831
|
+
export const GetDomainGlueResponseHostsList = /*@__PURE__*/ S.Array(GetDomainGlueResponseHostsItemList);
|
|
832
|
+
export const GetDomainGlueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
833
|
+
status: S.optional(S.String),
|
|
834
|
+
hosts: S.optional(GetDomainGlueResponseHostsList),
|
|
835
|
+
})).annotate({
|
|
836
|
+
identifier: "GetDomainGlueResponse",
|
|
837
|
+
});
|
|
838
|
+
export const GetDomainNsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
839
|
+
domain: S.String.pipe(T.Label()),
|
|
840
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getNs/{domain}", code: 200 }))).annotate({
|
|
841
|
+
identifier: "GetDomainNsRequest",
|
|
842
|
+
});
|
|
843
|
+
export const GetDomainNsResponseNsList = /*@__PURE__*/ S.Array(S.String);
|
|
844
|
+
export const GetDomainNsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
845
|
+
status: S.optional(S.String),
|
|
846
|
+
ns: S.optional(GetDomainNsResponseNsList),
|
|
847
|
+
})).annotate({
|
|
848
|
+
identifier: "GetDomainNsResponse",
|
|
849
|
+
});
|
|
850
|
+
export const GetDomainsRequestIncludeLabels = S.String;
|
|
851
|
+
export const GetDomainsRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
852
|
+
export const GetDomainsRequestAutoRenew = S.String;
|
|
853
|
+
export const GetDomainsRequestApiAccess = S.String;
|
|
854
|
+
export const GetDomainsRequestSortName = S.String;
|
|
855
|
+
export const GetDomainsRequestSortDirection = S.String;
|
|
856
|
+
export const GetDomainsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
857
|
+
start: S.optional(S.Number.pipe(T.Query())),
|
|
858
|
+
includeLabels: S.optional(GetDomainsRequestIncludeLabels.pipe(T.Query())),
|
|
859
|
+
domain: S.optional(S.String.pipe(T.Query())),
|
|
860
|
+
nameContains: S.optional(S.String.pipe(T.Query())),
|
|
861
|
+
expiringWithinDays: S.optional(S.Number.pipe(T.Query())),
|
|
862
|
+
tlds: S.optional(GetDomainsRequestTldsList.pipe(T.Query())),
|
|
863
|
+
autoRenew: S.optional(GetDomainsRequestAutoRenew.pipe(T.Query())),
|
|
864
|
+
apiAccess: S.optional(GetDomainsRequestApiAccess.pipe(T.Query())),
|
|
865
|
+
sortName: S.optional(GetDomainsRequestSortName.pipe(T.Query())),
|
|
866
|
+
sortDirection: S.optional(GetDomainsRequestSortDirection.pipe(T.Query())),
|
|
867
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/listAll", code: 200 }))).annotate({
|
|
868
|
+
identifier: "GetDomainsRequest",
|
|
869
|
+
});
|
|
870
|
+
export const DomainListAllResponseDomainsItemLabelsItem =
|
|
871
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
872
|
+
id: S.optional(S.String),
|
|
873
|
+
title: S.optional(S.String),
|
|
874
|
+
color: S.optional(S.String),
|
|
875
|
+
})).annotate({
|
|
876
|
+
identifier: "DomainListAllResponseDomainsItemLabelsItem",
|
|
877
|
+
});
|
|
878
|
+
export const DomainListAllResponseDomainsItemLabelsList = /*@__PURE__*/ S.Array(DomainListAllResponseDomainsItemLabelsItem);
|
|
879
|
+
export const DomainListAllResponseDomainsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
880
|
+
domain: S.optional(S.String),
|
|
881
|
+
status: S.optional(S.String),
|
|
882
|
+
tld: S.optional(S.String),
|
|
883
|
+
createDate: S.optional(S.String),
|
|
884
|
+
expireDate: S.optional(S.String),
|
|
885
|
+
securityLock: S.optional(S.Number),
|
|
886
|
+
whoisPrivacy: S.optional(S.Number),
|
|
887
|
+
autoRenew: S.optional(S.Number),
|
|
888
|
+
apiAccess: S.optional(S.Number),
|
|
889
|
+
notLocal: S.optional(S.Number),
|
|
890
|
+
labels: S.optional(DomainListAllResponseDomainsItemLabelsList),
|
|
891
|
+
})).annotate({
|
|
892
|
+
identifier: "DomainListAllResponseDomainsItem",
|
|
893
|
+
});
|
|
894
|
+
export const DomainListAllResponseDomainsList = /*@__PURE__*/ S.Array(DomainListAllResponseDomainsItem);
|
|
895
|
+
export const DomainListAllResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
896
|
+
status: S.String,
|
|
897
|
+
count: S.optional(S.Number),
|
|
898
|
+
domains: DomainListAllResponseDomainsList,
|
|
899
|
+
})).annotate({
|
|
900
|
+
identifier: "DomainListAllResponse",
|
|
901
|
+
});
|
|
902
|
+
export const GetDomainUrlForwardingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
903
|
+
domain: S.String.pipe(T.Label()),
|
|
904
|
+
}).pipe(T.Http({
|
|
905
|
+
method: "GET",
|
|
906
|
+
uri: "/domain/getUrlForwarding/{domain}",
|
|
907
|
+
code: 200,
|
|
908
|
+
}))).annotate({
|
|
909
|
+
identifier: "GetDomainUrlForwardingRequest",
|
|
910
|
+
});
|
|
911
|
+
export const GetHostingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
912
|
+
domain: S.String.pipe(T.Label()),
|
|
913
|
+
}).pipe(T.Http({ method: "GET", uri: "/hosting/get/{domain}", code: 200 }))).annotate({
|
|
914
|
+
identifier: "GetHostingRequest",
|
|
915
|
+
});
|
|
916
|
+
export const GetHostingResponseHosting = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
917
|
+
domain: S.optional(S.String),
|
|
918
|
+
product: S.optional(S.String),
|
|
919
|
+
status: S.optional(S.String),
|
|
920
|
+
plan: S.optional(S.String),
|
|
921
|
+
server: S.optional(S.String),
|
|
922
|
+
isTrial: S.optional(S.Boolean),
|
|
923
|
+
autoRenew: S.optional(S.Boolean),
|
|
924
|
+
expireDate: S.optional(S.String),
|
|
925
|
+
pendingRetire: S.optional(S.Boolean),
|
|
926
|
+
cost: S.optional(S.Unknown),
|
|
927
|
+
})).annotate({
|
|
928
|
+
identifier: "GetHostingResponseHosting",
|
|
929
|
+
});
|
|
930
|
+
export const GetHostingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
931
|
+
status: S.optional(S.String),
|
|
932
|
+
hosting: S.optional(S.NullOr(GetHostingResponseHosting)),
|
|
933
|
+
})).annotate({
|
|
934
|
+
identifier: "GetHostingResponse",
|
|
935
|
+
});
|
|
936
|
+
export const GetIpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/ip", code: 200 }))).annotate({ identifier: "GetIpRequest" });
|
|
937
|
+
export const IpResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
938
|
+
status: S.String,
|
|
939
|
+
yourIp: S.String,
|
|
940
|
+
xForwardedFor: S.optional(S.String),
|
|
941
|
+
})).annotate({ identifier: "IpResponse" });
|
|
942
|
+
export const GetPingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/ping", code: 200 }))).annotate({ identifier: "GetPingRequest" });
|
|
943
|
+
export const GetPingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
944
|
+
status: S.String,
|
|
945
|
+
yourIp: S.String,
|
|
946
|
+
xForwardedFor: S.optional(S.String),
|
|
947
|
+
credentialsValid: S.optional(S.Boolean),
|
|
948
|
+
})).annotate({
|
|
949
|
+
identifier: "GetPingResponse",
|
|
950
|
+
});
|
|
951
|
+
export const GetPricingRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
952
|
+
export const GetPricingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
953
|
+
tlds: S.optional(GetPricingRequestTldsList),
|
|
954
|
+
}).pipe(T.Http({ method: "POST", uri: "/pricing/get", code: 200 }))).annotate({
|
|
955
|
+
identifier: "GetPricingRequest",
|
|
956
|
+
});
|
|
957
|
+
export const GetPricingResponsePricingValueCouponsValueFirstYearOnly = S.String;
|
|
958
|
+
export const GetPricingResponsePricingValueCouponsValue =
|
|
959
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
960
|
+
code: S.optional(S.String),
|
|
961
|
+
max_per_user: S.optional(S.Number),
|
|
962
|
+
first_year_only: S.optional(GetPricingResponsePricingValueCouponsValueFirstYearOnly),
|
|
963
|
+
type: S.optional(S.String),
|
|
964
|
+
amount: S.optional(S.Number),
|
|
965
|
+
})).annotate({
|
|
966
|
+
identifier: "GetPricingResponsePricingValueCouponsValue",
|
|
967
|
+
});
|
|
968
|
+
export const GetPricingResponsePricingValueCouponsMap = /*@__PURE__*/ S.Record(S.String, GetPricingResponsePricingValueCouponsValue);
|
|
969
|
+
export const GetPricingResponsePricingValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
970
|
+
registration: S.optional(S.String),
|
|
971
|
+
renewal: S.optional(S.String),
|
|
972
|
+
transfer: S.optional(S.String),
|
|
973
|
+
specialType: S.optional(S.String),
|
|
974
|
+
coupons: S.optional(GetPricingResponsePricingValueCouponsMap),
|
|
975
|
+
})).annotate({
|
|
976
|
+
identifier: "GetPricingResponsePricingValue",
|
|
977
|
+
});
|
|
978
|
+
export const GetPricingResponsePricingMap = /*@__PURE__*/ S.Record(S.String, GetPricingResponsePricingValue);
|
|
979
|
+
export const GetPricingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
980
|
+
status: S.optional(S.String),
|
|
981
|
+
pricing: S.optional(GetPricingResponsePricingMap),
|
|
982
|
+
})).annotate({
|
|
983
|
+
identifier: "GetPricingResponse",
|
|
984
|
+
});
|
|
985
|
+
export const GetPricingGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/pricing/get", code: 200 }))).annotate({
|
|
986
|
+
identifier: "GetPricingGetRequest",
|
|
987
|
+
});
|
|
988
|
+
export const GetPricingGetResponsePricingValueCouponsValueFirstYearOnly = S.String;
|
|
989
|
+
export const GetPricingGetResponsePricingValueCouponsValue =
|
|
990
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
991
|
+
code: S.optional(S.String),
|
|
992
|
+
max_per_user: S.optional(S.Number),
|
|
993
|
+
first_year_only: S.optional(GetPricingGetResponsePricingValueCouponsValueFirstYearOnly),
|
|
994
|
+
type: S.optional(S.String),
|
|
995
|
+
amount: S.optional(S.Number),
|
|
996
|
+
})).annotate({
|
|
997
|
+
identifier: "GetPricingGetResponsePricingValueCouponsValue",
|
|
998
|
+
});
|
|
999
|
+
export const GetPricingGetResponsePricingValueCouponsMap =
|
|
1000
|
+
/*@__PURE__*/ S.Record(S.String, GetPricingGetResponsePricingValueCouponsValue);
|
|
1001
|
+
export const GetPricingGetResponsePricingValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1002
|
+
registration: S.optional(S.String),
|
|
1003
|
+
renewal: S.optional(S.String),
|
|
1004
|
+
transfer: S.optional(S.String),
|
|
1005
|
+
specialType: S.optional(S.String),
|
|
1006
|
+
coupons: S.optional(GetPricingGetResponsePricingValueCouponsMap),
|
|
1007
|
+
})).annotate({
|
|
1008
|
+
identifier: "GetPricingGetResponsePricingValue",
|
|
1009
|
+
});
|
|
1010
|
+
export const GetPricingGetResponsePricingMap = /*@__PURE__*/ S.Record(S.String, GetPricingGetResponsePricingValue);
|
|
1011
|
+
export const GetPricingGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1012
|
+
status: S.optional(S.String),
|
|
1013
|
+
pricing: S.optional(GetPricingGetResponsePricingMap),
|
|
1014
|
+
})).annotate({
|
|
1015
|
+
identifier: "GetPricingGetResponse",
|
|
1016
|
+
});
|
|
1017
|
+
export const GetSslRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1018
|
+
domain: S.String.pipe(T.Label()),
|
|
1019
|
+
}).pipe(T.Http({ method: "POST", uri: "/ssl/retrieve/{domain}", code: 200 }))).annotate({ identifier: "GetSslRequest" });
|
|
1020
|
+
export const GetSslResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1021
|
+
status: S.optional(S.String),
|
|
1022
|
+
certificatechain: S.optional(S.String),
|
|
1023
|
+
privatekey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1024
|
+
publickey: S.optional(S.String),
|
|
1025
|
+
})).annotate({ identifier: "GetSslResponse" });
|
|
1026
|
+
export const GetSslRetrieveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1027
|
+
domain: S.String.pipe(T.Label()),
|
|
1028
|
+
}).pipe(T.Http({ method: "GET", uri: "/ssl/retrieve/{domain}", code: 200 }))).annotate({
|
|
1029
|
+
identifier: "GetSslRetrieveRequest",
|
|
1030
|
+
});
|
|
1031
|
+
export const GetSslRetrieveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
+
status: S.optional(S.String),
|
|
1033
|
+
certificatechain: S.optional(S.String),
|
|
1034
|
+
privatekey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1035
|
+
publickey: S.optional(S.String),
|
|
1036
|
+
})).annotate({
|
|
1037
|
+
identifier: "GetSslRetrieveResponse",
|
|
1038
|
+
});
|
|
1039
|
+
export const GetTransferGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1040
|
+
domain: S.String.pipe(T.Label()),
|
|
1041
|
+
}).pipe(T.Http({ method: "GET", uri: "/domain/getTransfer/{domain}", code: 200 }))).annotate({
|
|
1042
|
+
identifier: "GetTransferGetRequest",
|
|
1043
|
+
});
|
|
1044
|
+
export const GetTransferResponseStatus = S.String;
|
|
1045
|
+
export const GetTransferResponseTransferStatus = S.String;
|
|
1046
|
+
export const GetTransferResponseTransfer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1047
|
+
domain: S.optional(S.String),
|
|
1048
|
+
status: S.optional(GetTransferResponseTransferStatus),
|
|
1049
|
+
statusDescription: S.optional(S.String),
|
|
1050
|
+
transferDate: S.optional(S.String),
|
|
1051
|
+
orderId: S.optional(S.Number),
|
|
1052
|
+
})).annotate({
|
|
1053
|
+
identifier: "GetTransferResponseTransfer",
|
|
1054
|
+
});
|
|
1055
|
+
export const GetTransferResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1056
|
+
status: S.optional(GetTransferResponseStatus),
|
|
1057
|
+
transfer: S.optional(GetTransferResponseTransfer),
|
|
1058
|
+
})).annotate({
|
|
1059
|
+
identifier: "GetTransferResponse",
|
|
1060
|
+
});
|
|
1061
|
+
export const GetWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1062
|
+
id: S.Number.pipe(T.Label()),
|
|
1063
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhook/get/{id}", code: 200 }))).annotate({
|
|
1064
|
+
identifier: "GetWebhookRequest",
|
|
1065
|
+
});
|
|
1066
|
+
export const HostingCreateWpCredentialsRequestRole = S.String;
|
|
1067
|
+
export const HostingCreateWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1068
|
+
domain: S.String.pipe(T.Label()),
|
|
1069
|
+
role: S.optional(HostingCreateWpCredentialsRequestRole),
|
|
1070
|
+
acknowledgeFullAccess: S.optional(S.Boolean),
|
|
1071
|
+
name: S.optional(S.String),
|
|
1072
|
+
dryRun: S.optional(S.Boolean),
|
|
1073
|
+
}).pipe(T.Http({
|
|
1074
|
+
method: "POST",
|
|
1075
|
+
uri: "/hosting/createWpCredentials/{domain}",
|
|
1076
|
+
code: 200,
|
|
1077
|
+
}))).annotate({
|
|
1078
|
+
identifier: "HostingCreateWpCredentialsRequest",
|
|
1079
|
+
});
|
|
1080
|
+
export const HostingCreateWpCredentialsResponseCredentials =
|
|
1081
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1082
|
+
username: S.optional(S.String),
|
|
1083
|
+
applicationPassword: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1084
|
+
role: S.optional(S.String),
|
|
1085
|
+
name: S.optional(S.String),
|
|
1086
|
+
restUrl: S.optional(S.String),
|
|
1087
|
+
authorization: S.optional(S.String),
|
|
1088
|
+
})).annotate({
|
|
1089
|
+
identifier: "HostingCreateWpCredentialsResponseCredentials",
|
|
1090
|
+
});
|
|
1091
|
+
export const HostingCreateWpCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1092
|
+
status: S.optional(S.String),
|
|
1093
|
+
credentials: S.optional(HostingCreateWpCredentialsResponseCredentials),
|
|
1094
|
+
message: S.optional(S.String),
|
|
1095
|
+
})).annotate({
|
|
1096
|
+
identifier: "HostingCreateWpCredentialsResponse",
|
|
1097
|
+
});
|
|
1098
|
+
export const HostingDeleteFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1099
|
+
domain: S.String.pipe(T.Label()),
|
|
1100
|
+
path: S.String,
|
|
1101
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/deleteFile/{domain}", code: 200 }))).annotate({
|
|
1102
|
+
identifier: "HostingDeleteFileRequest",
|
|
1103
|
+
});
|
|
1104
|
+
export const HostingDeleteFileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1105
|
+
status: S.optional(S.String),
|
|
1106
|
+
deleted: S.optional(S.String),
|
|
1107
|
+
})).annotate({
|
|
1108
|
+
identifier: "HostingDeleteFileResponse",
|
|
1109
|
+
});
|
|
1110
|
+
export const HostingDeleteWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1111
|
+
domain: S.String.pipe(T.Label()),
|
|
1112
|
+
uuid: S.optional(S.String),
|
|
1113
|
+
all: S.optional(S.Boolean),
|
|
1114
|
+
wpUser: S.optional(S.String),
|
|
1115
|
+
dryRun: S.optional(S.Boolean),
|
|
1116
|
+
}).pipe(T.Http({
|
|
1117
|
+
method: "POST",
|
|
1118
|
+
uri: "/hosting/deleteWpCredentials/{domain}",
|
|
1119
|
+
code: 200,
|
|
1120
|
+
}))).annotate({
|
|
1121
|
+
identifier: "HostingDeleteWpCredentialsRequest",
|
|
1122
|
+
});
|
|
1123
|
+
export const HostingDeleteWpCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1124
|
+
status: S.optional(S.String),
|
|
1125
|
+
revoked: S.optional(S.String),
|
|
1126
|
+
message: S.optional(S.String),
|
|
1127
|
+
})).annotate({
|
|
1128
|
+
identifier: "HostingDeleteWpCredentialsResponse",
|
|
1129
|
+
});
|
|
1130
|
+
export const HostingFilesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1131
|
+
domain: S.String.pipe(T.Label()),
|
|
1132
|
+
}).pipe(T.Http({ method: "GET", uri: "/hosting/files/{domain}", code: 200 }))).annotate({
|
|
1133
|
+
identifier: "HostingFilesRequest",
|
|
1134
|
+
});
|
|
1135
|
+
export const HostingFilesResponseFilesList = /*@__PURE__*/ S.Array(S.String);
|
|
1136
|
+
export const HostingFilesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1137
|
+
status: S.optional(S.String),
|
|
1138
|
+
path: S.optional(S.String),
|
|
1139
|
+
files: S.optional(HostingFilesResponseFilesList),
|
|
1140
|
+
})).annotate({
|
|
1141
|
+
identifier: "HostingFilesResponse",
|
|
1142
|
+
});
|
|
1143
|
+
export const HostingGetWpCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1144
|
+
domain: S.String.pipe(T.Label()),
|
|
1145
|
+
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({
|
|
1151
|
+
identifier: "HostingGetWpCredentialsRequest",
|
|
1152
|
+
});
|
|
1153
|
+
export const HostingGetWpCredentialsResponseCredentialsList =
|
|
1154
|
+
/*@__PURE__*/ S.Array(S.Unknown);
|
|
1155
|
+
export const HostingGetWpCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1156
|
+
status: S.optional(S.String),
|
|
1157
|
+
wpUser: S.optional(S.String),
|
|
1158
|
+
credentials: S.optional(HostingGetWpCredentialsResponseCredentialsList),
|
|
1159
|
+
})).annotate({
|
|
1160
|
+
identifier: "HostingGetWpCredentialsResponse",
|
|
1161
|
+
});
|
|
1162
|
+
export const HostingMakeDirRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1163
|
+
domain: S.String.pipe(T.Label()),
|
|
1164
|
+
path: S.String,
|
|
1165
|
+
}).pipe(T.Http({ method: "POST", uri: "/hosting/makeDir/{domain}", code: 200 }))).annotate({
|
|
1166
|
+
identifier: "HostingMakeDirRequest",
|
|
1167
|
+
});
|
|
1168
|
+
export const HostingMakeDirResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1169
|
+
status: S.optional(S.String),
|
|
1170
|
+
created: S.optional(S.String),
|
|
1171
|
+
})).annotate({
|
|
1172
|
+
identifier: "HostingMakeDirResponse",
|
|
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
|
+
});
|
|
1177
|
+
export const HostingPlansResponsePlansItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1178
|
+
product: S.optional(S.String),
|
|
1179
|
+
plan: S.optional(S.String),
|
|
1180
|
+
sku: S.optional(S.String),
|
|
1181
|
+
interval: S.optional(S.String),
|
|
1182
|
+
price: S.optional(S.Number),
|
|
1183
|
+
priceFormatted: S.optional(S.String),
|
|
1184
|
+
trialDays: S.optional(S.Number),
|
|
1185
|
+
name: S.optional(S.String),
|
|
1186
|
+
features: S.optional(S.Unknown),
|
|
1187
|
+
})).annotate({
|
|
1188
|
+
identifier: "HostingPlansResponsePlansItem",
|
|
1189
|
+
});
|
|
1190
|
+
export const HostingPlansResponsePlansList = /*@__PURE__*/ S.Array(HostingPlansResponsePlansItem);
|
|
1191
|
+
export const HostingPlansResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1192
|
+
status: S.optional(S.String),
|
|
1193
|
+
plans: S.optional(HostingPlansResponsePlansList),
|
|
1194
|
+
})).annotate({
|
|
1195
|
+
identifier: "HostingPlansResponse",
|
|
1196
|
+
});
|
|
1197
|
+
export const ListDomainsRequestIncludeLabels = S.String;
|
|
1198
|
+
export const ListDomainsRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
1199
|
+
export const ListDomainsRequestAutoRenew = S.String;
|
|
1200
|
+
export const ListDomainsRequestApiAccess = S.String;
|
|
1201
|
+
export const ListDomainsRequestSortName = S.String;
|
|
1202
|
+
export const ListDomainsRequestSortDirection = S.String;
|
|
1203
|
+
export const ListDomainsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1204
|
+
start: S.optional(S.Number),
|
|
1205
|
+
includeLabels: S.optional(ListDomainsRequestIncludeLabels),
|
|
1206
|
+
domain: S.optional(S.String),
|
|
1207
|
+
nameContains: S.optional(S.String),
|
|
1208
|
+
expiringWithinDays: S.optional(S.Number),
|
|
1209
|
+
tlds: S.optional(ListDomainsRequestTldsList),
|
|
1210
|
+
autoRenew: S.optional(ListDomainsRequestAutoRenew),
|
|
1211
|
+
apiAccess: S.optional(ListDomainsRequestApiAccess),
|
|
1212
|
+
sortName: S.optional(ListDomainsRequestSortName),
|
|
1213
|
+
sortDirection: S.optional(ListDomainsRequestSortDirection),
|
|
1214
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/listAll", code: 200 }))).annotate({
|
|
1215
|
+
identifier: "ListDomainsRequest",
|
|
1216
|
+
});
|
|
1217
|
+
export const ListMarketplaceListingsRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
1218
|
+
export const ListMarketplaceListingsRequestSortName = S.String;
|
|
1219
|
+
export const ListMarketplaceListingsRequestSortDirection = S.String;
|
|
1220
|
+
export const ListMarketplaceListingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1221
|
+
start: S.optional(S.Number),
|
|
1222
|
+
limit: S.optional(S.Number),
|
|
1223
|
+
query: S.optional(S.String),
|
|
1224
|
+
tlds: S.optional(ListMarketplaceListingsRequestTldsList),
|
|
1225
|
+
sldLengthMin: S.optional(S.Number),
|
|
1226
|
+
sldLengthMax: S.optional(S.Number),
|
|
1227
|
+
sortName: S.optional(ListMarketplaceListingsRequestSortName),
|
|
1228
|
+
sortDirection: S.optional(ListMarketplaceListingsRequestSortDirection),
|
|
1229
|
+
}).pipe(T.Http({ method: "POST", uri: "/marketplace/getAll", code: 200 }))).annotate({
|
|
1230
|
+
identifier: "ListMarketplaceListingsRequest",
|
|
1231
|
+
});
|
|
1232
|
+
export const ListMarketplaceListingsResponseDomainsItem =
|
|
1233
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1234
|
+
create_date: S.optional(S.String),
|
|
1235
|
+
domain: S.optional(S.String),
|
|
1236
|
+
tld: S.optional(S.String),
|
|
1237
|
+
sld_length: S.optional(S.Number),
|
|
1238
|
+
price: S.optional(S.Number),
|
|
1239
|
+
})).annotate({
|
|
1240
|
+
identifier: "ListMarketplaceListingsResponseDomainsItem",
|
|
1241
|
+
});
|
|
1242
|
+
export const ListMarketplaceListingsResponseDomainsList = /*@__PURE__*/ S.Array(ListMarketplaceListingsResponseDomainsItem);
|
|
1243
|
+
export const ListMarketplaceListingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1244
|
+
status: S.optional(S.String),
|
|
1245
|
+
count: S.optional(S.Number),
|
|
1246
|
+
filtered: S.optional(S.Boolean),
|
|
1247
|
+
domains: S.optional(ListMarketplaceListingsResponseDomainsList),
|
|
1248
|
+
})).annotate({
|
|
1249
|
+
identifier: "ListMarketplaceListingsResponse",
|
|
1250
|
+
});
|
|
1251
|
+
export const ListMarketplaceListingsGetRequestTldsList = /*@__PURE__*/ S.Array(S.String);
|
|
1252
|
+
export const ListMarketplaceListingsGetRequestSortName = S.String;
|
|
1253
|
+
export const ListMarketplaceListingsGetRequestSortDirection = S.String;
|
|
1254
|
+
export const ListMarketplaceListingsGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1255
|
+
query: S.optional(S.String.pipe(T.Query())),
|
|
1256
|
+
tlds: S.optional(ListMarketplaceListingsGetRequestTldsList.pipe(T.Query())),
|
|
1257
|
+
sldLengthMin: S.optional(S.Number.pipe(T.Query())),
|
|
1258
|
+
sldLengthMax: S.optional(S.Number.pipe(T.Query())),
|
|
1259
|
+
sortName: S.optional(ListMarketplaceListingsGetRequestSortName.pipe(T.Query())),
|
|
1260
|
+
sortDirection: S.optional(ListMarketplaceListingsGetRequestSortDirection.pipe(T.Query())),
|
|
1261
|
+
start: S.optional(S.Number.pipe(T.Query())),
|
|
1262
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1263
|
+
}).pipe(T.Http({ method: "GET", uri: "/marketplace/getAll", code: 200 }))).annotate({
|
|
1264
|
+
identifier: "ListMarketplaceListingsGetRequest",
|
|
1265
|
+
});
|
|
1266
|
+
export const ListMarketplaceListingsGetResponseDomainsItem =
|
|
1267
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1268
|
+
create_date: S.optional(S.String),
|
|
1269
|
+
domain: S.optional(S.String),
|
|
1270
|
+
tld: S.optional(S.String),
|
|
1271
|
+
sld_length: S.optional(S.Number),
|
|
1272
|
+
price: S.optional(S.Number),
|
|
1273
|
+
})).annotate({
|
|
1274
|
+
identifier: "ListMarketplaceListingsGetResponseDomainsItem",
|
|
1275
|
+
});
|
|
1276
|
+
export const ListMarketplaceListingsGetResponseDomainsList =
|
|
1277
|
+
/*@__PURE__*/ S.Array(ListMarketplaceListingsGetResponseDomainsItem);
|
|
1278
|
+
export const ListMarketplaceListingsGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1279
|
+
status: S.optional(S.String),
|
|
1280
|
+
count: S.optional(S.Number),
|
|
1281
|
+
filtered: S.optional(S.Boolean),
|
|
1282
|
+
domains: S.optional(ListMarketplaceListingsGetResponseDomainsList),
|
|
1283
|
+
})).annotate({
|
|
1284
|
+
identifier: "ListMarketplaceListingsGetResponse",
|
|
1285
|
+
});
|
|
1286
|
+
export const ListTransfersGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/domain/listTransfers", code: 200 }))).annotate({
|
|
1287
|
+
identifier: "ListTransfersGetRequest",
|
|
1288
|
+
});
|
|
1289
|
+
export const ListTransfersResponseStatus = S.String;
|
|
1290
|
+
export const ListTransfersResponseTransfersItemStatus = S.String;
|
|
1291
|
+
export const ListTransfersResponseTransfersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1292
|
+
domain: S.optional(S.String),
|
|
1293
|
+
status: S.optional(ListTransfersResponseTransfersItemStatus),
|
|
1294
|
+
statusDescription: S.optional(S.String),
|
|
1295
|
+
transferDate: S.optional(S.String),
|
|
1296
|
+
orderId: S.optional(S.Number),
|
|
1297
|
+
})).annotate({
|
|
1298
|
+
identifier: "ListTransfersResponseTransfersItem",
|
|
1299
|
+
});
|
|
1300
|
+
export const ListTransfersResponseTransfersList = /*@__PURE__*/ S.Array(ListTransfersResponseTransfersItem);
|
|
1301
|
+
export const ListTransfersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1302
|
+
status: S.optional(ListTransfersResponseStatus),
|
|
1303
|
+
transfers: S.optional(ListTransfersResponseTransfersList),
|
|
1304
|
+
})).annotate({
|
|
1305
|
+
identifier: "ListTransfersResponse",
|
|
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
|
+
});
|
|
1310
|
+
export const WebhookListResponseEndpointsList = /*@__PURE__*/ S.Array(WebhookEndpoint);
|
|
1311
|
+
export const WebhookListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1312
|
+
status: S.optional(S.String),
|
|
1313
|
+
endpoints: S.optional(WebhookListResponseEndpointsList),
|
|
1314
|
+
})).annotate({
|
|
1315
|
+
identifier: "WebhookListResponse",
|
|
1316
|
+
});
|
|
1317
|
+
export const MockDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/mock", code: 200 }))).annotate({
|
|
1318
|
+
identifier: "MockDirectoryRequest",
|
|
1319
|
+
});
|
|
1320
|
+
export const MockDirectoryResponseEndpointsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1321
|
+
method: S.optional(S.String),
|
|
1322
|
+
path: S.optional(S.String),
|
|
1323
|
+
summary: S.optional(S.String),
|
|
1324
|
+
mockUrl: S.optional(S.String),
|
|
1325
|
+
})).annotate({
|
|
1326
|
+
identifier: "MockDirectoryResponseEndpointsItem",
|
|
1327
|
+
});
|
|
1328
|
+
export const MockDirectoryResponseEndpointsList = /*@__PURE__*/ S.Array(MockDirectoryResponseEndpointsItem);
|
|
1329
|
+
export const MockDirectoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1330
|
+
status: S.optional(S.String),
|
|
1331
|
+
mock: S.optional(S.Boolean),
|
|
1332
|
+
count: S.optional(S.Number),
|
|
1333
|
+
endpoints: S.optional(MockDirectoryResponseEndpointsList),
|
|
1334
|
+
})).annotate({
|
|
1335
|
+
identifier: "MockDirectoryResponse",
|
|
1336
|
+
});
|
|
1337
|
+
export const MockEndpointRequestStatus = S.String;
|
|
1338
|
+
export const MockEndpointRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1339
|
+
path: S.String.pipe(T.Label()),
|
|
1340
|
+
status: S.optional(MockEndpointRequestStatus.pipe(T.Query())),
|
|
1341
|
+
}).pipe(T.Http({ method: "GET", uri: "/mock/{path}", code: 200 }))).annotate({
|
|
1342
|
+
identifier: "MockEndpointRequest",
|
|
1343
|
+
});
|
|
1344
|
+
export const MockEndpointResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1345
|
+
identifier: "MockEndpointResponse",
|
|
1346
|
+
});
|
|
1347
|
+
export const PingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/ping", code: 200 }))).annotate({ identifier: "PingRequest" });
|
|
1348
|
+
export const PingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1349
|
+
status: S.String,
|
|
1350
|
+
yourIp: S.String,
|
|
1351
|
+
xForwardedFor: S.optional(S.String),
|
|
1352
|
+
credentialsValid: S.optional(S.Boolean),
|
|
1353
|
+
})).annotate({ identifier: "PingResponse" });
|
|
1354
|
+
export const PostIpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/ip", code: 200 }))).annotate({ identifier: "PostIpRequest" });
|
|
1355
|
+
export const RenewDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1356
|
+
domain: S.String.pipe(T.Label()),
|
|
1357
|
+
cost: S.Number,
|
|
1358
|
+
dryRun: S.optional(S.Boolean),
|
|
1359
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/renew/{domain}", code: 200 }))).annotate({
|
|
1360
|
+
identifier: "RenewDomainRequest",
|
|
1361
|
+
});
|
|
1362
|
+
export const RenewDomainResponseLimitsAttempts = CreateDomainResponseLimitsAttempts;
|
|
1363
|
+
export const RenewDomainResponseLimitsSuccess = CreateDomainResponseLimitsSuccess;
|
|
1364
|
+
export const RenewDomainResponseLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1365
|
+
attempts: S.optional(CreateDomainResponseLimitsAttempts),
|
|
1366
|
+
success: S.optional(CreateDomainResponseLimitsSuccess),
|
|
1367
|
+
})).annotate({
|
|
1368
|
+
identifier: "RenewDomainResponseLimits",
|
|
1369
|
+
});
|
|
1370
|
+
export const RenewDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1371
|
+
status: S.String,
|
|
1372
|
+
domain: S.String,
|
|
1373
|
+
expirationDate: S.optional(S.String),
|
|
1374
|
+
cost: S.optional(S.Number),
|
|
1375
|
+
orderId: S.Number,
|
|
1376
|
+
limits: S.optional(RenewDomainResponseLimits),
|
|
1377
|
+
balance: S.optional(S.Number),
|
|
1378
|
+
ttlRemaining: S.optional(S.Number),
|
|
1379
|
+
requestId: S.optional(S.String),
|
|
1380
|
+
})).annotate({
|
|
1381
|
+
identifier: "RenewDomainResponse",
|
|
1382
|
+
});
|
|
1383
|
+
export const RenewDomainResponseBody = S.Unknown;
|
|
1384
|
+
export const RenewDomainResponse2 = /*@__PURE__*/ S.suspend(() => RenewDomainResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
1385
|
+
identifier: "RenewDomainResponse2",
|
|
1386
|
+
});
|
|
1387
|
+
export const ResendWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1388
|
+
id: S.Number,
|
|
1389
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/resend", code: 200 }))).annotate({
|
|
1390
|
+
identifier: "ResendWebhookRequest",
|
|
1391
|
+
});
|
|
1392
|
+
export const WebhookDeliveryStatus = S.String;
|
|
1393
|
+
export const WebhookDelivery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1394
|
+
id: S.optional(S.Number),
|
|
1395
|
+
endpointId: S.optional(S.Number),
|
|
1396
|
+
eventType: S.optional(S.String),
|
|
1397
|
+
eventId: S.optional(S.String),
|
|
1398
|
+
status: S.optional(WebhookDeliveryStatus),
|
|
1399
|
+
attempts: S.optional(S.Number),
|
|
1400
|
+
maxAttempts: S.optional(S.Number),
|
|
1401
|
+
httpStatus: S.optional(S.NullOr(S.Number)),
|
|
1402
|
+
lastError: S.optional(S.NullOr(S.String)),
|
|
1403
|
+
nextAttemptAt: S.optional(S.String),
|
|
1404
|
+
createDate: S.optional(S.String),
|
|
1405
|
+
deliveredDate: S.optional(S.NullOr(S.String)),
|
|
1406
|
+
payload: S.optional(S.Unknown),
|
|
1407
|
+
})).annotate({
|
|
1408
|
+
identifier: "WebhookDelivery",
|
|
1409
|
+
});
|
|
1410
|
+
export const WebhookResendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1411
|
+
status: S.optional(S.String),
|
|
1412
|
+
delivery: S.optional(WebhookDelivery),
|
|
1413
|
+
message: S.optional(S.String),
|
|
1414
|
+
})).annotate({
|
|
1415
|
+
identifier: "WebhookResendResponse",
|
|
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
|
+
});
|
|
1420
|
+
export const ResetSandboxResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1421
|
+
status: S.optional(S.String),
|
|
1422
|
+
message: S.optional(S.String),
|
|
1423
|
+
domainsCleared: S.optional(S.Number),
|
|
1424
|
+
balance: S.optional(S.Number),
|
|
1425
|
+
sandbox: S.optional(S.Boolean),
|
|
1426
|
+
})).annotate({
|
|
1427
|
+
identifier: "ResetSandboxResponse",
|
|
1428
|
+
});
|
|
1429
|
+
export const SandboxTopupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1430
|
+
amount: S.optional(S.Number),
|
|
1431
|
+
}).pipe(T.Http({ method: "POST", uri: "/sandbox/topup", code: 200 }))).annotate({
|
|
1432
|
+
identifier: "SandboxTopupRequest",
|
|
1433
|
+
});
|
|
1434
|
+
export const SandboxTopupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1435
|
+
status: S.optional(S.String),
|
|
1436
|
+
granted: S.optional(S.Number),
|
|
1437
|
+
balance: S.optional(S.Number),
|
|
1438
|
+
display: S.optional(S.String),
|
|
1439
|
+
sandbox: S.optional(S.Boolean),
|
|
1440
|
+
})).annotate({
|
|
1441
|
+
identifier: "SandboxTopupResponse",
|
|
1442
|
+
});
|
|
1443
|
+
export const SandboxTriggerWebhookRequestEventType = S.String;
|
|
1444
|
+
export const SandboxTriggerWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1445
|
+
eventType: SandboxTriggerWebhookRequestEventType,
|
|
1446
|
+
domain: S.optional(S.String),
|
|
1447
|
+
}).pipe(T.Http({ method: "POST", uri: "/sandbox/triggerWebhook", code: 200 }))).annotate({
|
|
1448
|
+
identifier: "SandboxTriggerWebhookRequest",
|
|
1449
|
+
});
|
|
1450
|
+
export const SandboxTriggerWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1451
|
+
status: S.optional(S.String),
|
|
1452
|
+
event: S.optional(S.String),
|
|
1453
|
+
data: S.optional(S.Unknown),
|
|
1454
|
+
endpointsRegistered: S.optional(S.Number),
|
|
1455
|
+
message: S.optional(S.String),
|
|
1456
|
+
sandbox: S.optional(S.Boolean),
|
|
1457
|
+
})).annotate({
|
|
1458
|
+
identifier: "SandboxTriggerWebhookResponse",
|
|
1459
|
+
});
|
|
1460
|
+
export const TestWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1461
|
+
id: S.Number,
|
|
1462
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/test", code: 200 }))).annotate({
|
|
1463
|
+
identifier: "TestWebhookRequest",
|
|
1464
|
+
});
|
|
1465
|
+
export const WebhookTestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1466
|
+
status: S.optional(S.String),
|
|
1467
|
+
eventId: S.optional(S.String),
|
|
1468
|
+
message: S.optional(S.String),
|
|
1469
|
+
})).annotate({
|
|
1470
|
+
identifier: "WebhookTestResponse",
|
|
1471
|
+
});
|
|
1472
|
+
export const TransferDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1473
|
+
domain: S.String.pipe(T.Label()),
|
|
1474
|
+
authCode: S.String,
|
|
1475
|
+
cost: S.Number,
|
|
1476
|
+
dryRun: S.optional(S.Boolean),
|
|
1477
|
+
}).pipe(T.Http({ method: "POST", uri: "/domain/transfer/{domain}", code: 200 }))).annotate({
|
|
1478
|
+
identifier: "TransferDomainRequest",
|
|
1479
|
+
});
|
|
1480
|
+
export const TransferDomainResponseStatus = S.String;
|
|
1481
|
+
export const TransferDomainResponseLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1482
|
+
attempts: S.optional(S.Unknown),
|
|
1483
|
+
success: S.optional(S.Unknown),
|
|
1484
|
+
})).annotate({
|
|
1485
|
+
identifier: "TransferDomainResponseLimits",
|
|
1486
|
+
});
|
|
1487
|
+
export const TransferDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1488
|
+
status: S.optional(TransferDomainResponseStatus),
|
|
1489
|
+
domain: S.optional(S.String),
|
|
1490
|
+
orderId: S.optional(S.Number),
|
|
1491
|
+
transferId: S.optional(S.Number),
|
|
1492
|
+
message: S.optional(S.String),
|
|
1493
|
+
balance: S.optional(S.Number),
|
|
1494
|
+
ttlRemaining: S.optional(S.Number),
|
|
1495
|
+
limits: S.optional(TransferDomainResponseLimits),
|
|
1496
|
+
requestId: S.optional(S.String),
|
|
1497
|
+
})).annotate({
|
|
1498
|
+
identifier: "TransferDomainResponse",
|
|
1499
|
+
});
|
|
1500
|
+
export const TransferDomainResponseBody = S.Unknown;
|
|
1501
|
+
export const TransferDomainResponse2 = /*@__PURE__*/ S.suspend(() => TransferDomainResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
1502
|
+
identifier: "TransferDomainResponse2",
|
|
1503
|
+
});
|
|
1504
|
+
export const UpdateWebhookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
1505
|
+
export const UpdateWebhookRequestStatus = S.String;
|
|
1506
|
+
export const UpdateWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1507
|
+
id: S.Number,
|
|
1508
|
+
url: S.optional(S.String),
|
|
1509
|
+
events: S.optional(UpdateWebhookRequestEventsList),
|
|
1510
|
+
status: S.optional(UpdateWebhookRequestStatus),
|
|
1511
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/update", code: 200 }))).annotate({
|
|
1512
|
+
identifier: "UpdateWebhookRequest",
|
|
1513
|
+
});
|
|
1514
|
+
export const WebhookDeliveriesRequestStatus = S.String;
|
|
1515
|
+
export const WebhookDeliveriesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1516
|
+
endpointId: S.optional(S.Number.pipe(T.Query())),
|
|
1517
|
+
status: S.optional(WebhookDeliveriesRequestStatus.pipe(T.Query())),
|
|
1518
|
+
start: S.optional(S.Number.pipe(T.Query())),
|
|
1519
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1520
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhook/deliveries", code: 200 }))).annotate({
|
|
1521
|
+
identifier: "WebhookDeliveriesRequest",
|
|
1522
|
+
});
|
|
1523
|
+
export const WebhookDeliveryListResponseDeliveriesList = /*@__PURE__*/ S.Array(WebhookDelivery);
|
|
1524
|
+
export const WebhookDeliveryListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1525
|
+
status: S.optional(S.String),
|
|
1526
|
+
deliveries: S.optional(WebhookDeliveryListResponseDeliveriesList),
|
|
1527
|
+
total: S.optional(S.Number),
|
|
1528
|
+
start: S.optional(S.Number),
|
|
1529
|
+
limit: S.optional(S.Number),
|
|
1530
|
+
message: S.optional(S.String),
|
|
1531
|
+
})).annotate({
|
|
1532
|
+
identifier: "WebhookDeliveryListResponse",
|
|
1533
|
+
});
|
|
1534
|
+
export const WebhookDeliveryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1535
|
+
id: S.Number.pipe(T.Label()),
|
|
1536
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhook/delivery/{id}", code: 200 }))).annotate({
|
|
1537
|
+
identifier: "WebhookDeliveryRequest",
|
|
1538
|
+
});
|
|
1539
|
+
export const WebhookDeliveryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1540
|
+
status: S.optional(S.String),
|
|
1541
|
+
delivery: S.optional(WebhookDelivery),
|
|
1542
|
+
})).annotate({
|
|
1543
|
+
identifier: "WebhookDeliveryResponse",
|
|
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
|
+
});
|
|
1548
|
+
export const WebhookEventTypesResponseEventTypesList = /*@__PURE__*/ S.Array(S.String);
|
|
1549
|
+
export const WebhookEventTypesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1550
|
+
status: S.optional(S.String),
|
|
1551
|
+
eventTypes: S.optional(WebhookEventTypesResponseEventTypesList),
|
|
1552
|
+
})).annotate({
|
|
1553
|
+
identifier: "WebhookEventTypesResponse",
|
|
1554
|
+
});
|
|
1555
|
+
export const WebhookRotateSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1556
|
+
id: S.Number,
|
|
1557
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhook/rotateSecret", code: 200 }))).annotate({
|
|
1558
|
+
identifier: "WebhookRotateSecretRequest",
|
|
1559
|
+
});
|
|
1560
|
+
/** 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
|
+
export const apikeyRequest = /*@__PURE__*/ API.make(() => ({
|
|
1562
|
+
input: ApikeyRequestRequest,
|
|
1563
|
+
output: ApikeyRequestResponse,
|
|
1564
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1565
|
+
protocol: PorkbunProtocol,
|
|
1566
|
+
retry: Retry.Retry,
|
|
1567
|
+
}));
|
|
1568
|
+
/** 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
|
+
export const createAccountInvite = /*@__PURE__*/ API.make(() => ({
|
|
1570
|
+
input: CreateAccountInviteRequest,
|
|
1571
|
+
output: CreateAccountInviteResponse,
|
|
1572
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1573
|
+
protocol: PorkbunProtocol,
|
|
1574
|
+
retry: Retry.Retry,
|
|
1575
|
+
}));
|
|
1576
|
+
/** Create DNS record Create a new DNS record for a domain. The record ID is returned in the response. */
|
|
1577
|
+
export const createDns = /*@__PURE__*/ API.make(() => ({
|
|
1578
|
+
input: CreateDnsRequest,
|
|
1579
|
+
output: CreateDnsResponse,
|
|
1580
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1581
|
+
protocol: PorkbunProtocol,
|
|
1582
|
+
retry: Retry.Retry,
|
|
1583
|
+
}));
|
|
1584
|
+
/** Register a domain Register a domain using account credit. Requirements: - Account email and phone must be verified - Account must have sufficient credit - `agreeToTerms` must be `'yes'` or `'1'` - `cost` must equal the current price for the domain's minimum registration duration (in pennies) - Account must have placed at least one previous domain registration - Premium domains cannot be registered via API 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 10 seconds per account) - Success limit (default: 50 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. 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
|
+
export const createDomain = /*@__PURE__*/ API.make(() => ({
|
|
1586
|
+
input: CreateDomainRequest,
|
|
1587
|
+
output: CreateDomainResponse2,
|
|
1588
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1589
|
+
protocol: PorkbunProtocol,
|
|
1590
|
+
retry: Retry.Retry,
|
|
1591
|
+
}));
|
|
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). */
|
|
1593
|
+
export const createHosting = /*@__PURE__*/ API.make(() => ({
|
|
1594
|
+
input: CreateHostingRequest,
|
|
1595
|
+
output: CreateHostingResponse,
|
|
1596
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1597
|
+
protocol: PorkbunProtocol,
|
|
1598
|
+
retry: Retry.Retry,
|
|
1599
|
+
}));
|
|
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. */
|
|
1601
|
+
export const createWebhook = /*@__PURE__*/ API.make(() => ({
|
|
1602
|
+
input: CreateWebhookRequest,
|
|
1603
|
+
output: WebhookEndpointResponse,
|
|
1604
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1605
|
+
protocol: PorkbunProtocol,
|
|
1606
|
+
retry: Retry.Retry,
|
|
1607
|
+
}));
|
|
1608
|
+
/** Delete DNS record by ID Delete a specific DNS record. SOA and default Porkbun NS records cannot be deleted. */
|
|
1609
|
+
export const deleteDns = /*@__PURE__*/ API.make(() => ({
|
|
1610
|
+
input: DeleteDnsRequest,
|
|
1611
|
+
output: BasicResponse,
|
|
1612
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1613
|
+
protocol: PorkbunProtocol,
|
|
1614
|
+
retry: Retry.Retry,
|
|
1615
|
+
}));
|
|
1616
|
+
/** Deprovision hosting (either product) **Applies to:** Both products. Deprovision (cancel) Secure Static Hosting for a domain; teardown is scheduled and completed by Porkbun. Note: the domain has already used its one free trial, so provisioning it again later will be charged (no second free trial). */
|
|
1617
|
+
export const deleteHosting = /*@__PURE__*/ API.make(() => ({
|
|
1618
|
+
input: DeleteHostingRequest,
|
|
1619
|
+
output: BasicResponse,
|
|
1620
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1621
|
+
protocol: PorkbunProtocol,
|
|
1622
|
+
retry: Retry.Retry,
|
|
1623
|
+
}));
|
|
1624
|
+
/** Delete a webhook endpoint Delete a webhook endpoint by id. Deliveries stop immediately. */
|
|
1625
|
+
export const deleteWebhook = /*@__PURE__*/ API.make(() => ({
|
|
1626
|
+
input: DeleteWebhookRequest,
|
|
1627
|
+
output: DeleteWebhookResponse,
|
|
1628
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
1629
|
+
protocol: PorkbunProtocol,
|
|
1630
|
+
retry: Retry.Retry,
|
|
1631
|
+
}));
|
|
1632
|
+
/** Upload site files (static hosting only) **Applies to:** Secure Static Hosting only — a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`; manage its content through WordPress instead. Upload static files to the domain's Secure Static Hosting space. Send `files` as an array of `{ path, content }` where `content` is base64. Total payload ≤ 10 MB per request (split larger sites across calls). Only static-web file types are accepted (html/css/js/images/fonts/…); server-executable types are rejected. Hosting must be ACTIVE. A file’s `path` may include directories (e.g. `assets/css/style.css`); any missing parent directories are created automatically. Paths are sanitized (no traversal/control chars) and the filename extension must be an allowed static-web type. */
|
|
1633
|
+
export const deployHosting = /*@__PURE__*/ API.make(() => ({
|
|
1634
|
+
input: DeployHostingRequest,
|
|
1635
|
+
output: DeployHostingResponse,
|
|
1636
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1637
|
+
protocol: PorkbunProtocol,
|
|
1638
|
+
retry: Retry.Retry,
|
|
1639
|
+
}));
|
|
1640
|
+
/** 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. */
|
|
1641
|
+
export const dnsCreateDnssecRecord = /*@__PURE__*/ API.make(() => ({
|
|
1642
|
+
input: DnsCreateDnssecRecordRequest,
|
|
1643
|
+
output: BasicResponse,
|
|
1644
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1645
|
+
protocol: PorkbunProtocol,
|
|
1646
|
+
retry: Retry.Retry,
|
|
1647
|
+
}));
|
|
1648
|
+
/** Delete DNS records by name and type Delete all DNS records matching the given subdomain and type. SOA and NS records cannot be deleted with this method (use delete by ID instead). */
|
|
1649
|
+
export const dnsDeleteByNameType = /*@__PURE__*/ API.make(() => ({
|
|
1650
|
+
input: DnsDeleteByNameTypeRequest,
|
|
1651
|
+
output: BasicResponse,
|
|
1652
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1653
|
+
protocol: PorkbunProtocol,
|
|
1654
|
+
retry: Retry.Retry,
|
|
1655
|
+
}));
|
|
1656
|
+
/** Delete DNSSEC record Delete a DNSSEC record from the registry by key tag. Note: most registries delete all records matching the key data, not only the record with the specified key tag. */
|
|
1657
|
+
export const dnsDeleteDnssecRecord = /*@__PURE__*/ API.make(() => ({
|
|
1658
|
+
input: DnsDeleteDnssecRecordRequest,
|
|
1659
|
+
output: BasicResponse,
|
|
1660
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1661
|
+
protocol: PorkbunProtocol,
|
|
1662
|
+
retry: Retry.Retry,
|
|
1663
|
+
}));
|
|
1664
|
+
/** 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
|
+
export const dnsEditByNameType = /*@__PURE__*/ API.make(() => ({
|
|
1666
|
+
input: DnsEditByNameTypeRequest,
|
|
1667
|
+
output: BasicResponse,
|
|
1668
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1669
|
+
protocol: PorkbunProtocol,
|
|
1670
|
+
retry: Retry.Retry,
|
|
1671
|
+
}));
|
|
1672
|
+
/** Get DNSSEC records Retrieve DNSSEC records associated with the domain at the registry. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1673
|
+
export const dnsGetDnssecRecords = /*@__PURE__*/ API.make(() => ({
|
|
1674
|
+
input: DnsGetDnssecRecordsRequest,
|
|
1675
|
+
output: DnsGetDnssecRecordsResponse,
|
|
1676
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1677
|
+
protocol: PorkbunProtocol,
|
|
1678
|
+
retry: Retry.Retry,
|
|
1679
|
+
}));
|
|
1680
|
+
/** 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
|
+
export const dnsRetrieveById = /*@__PURE__*/ API.make(() => ({
|
|
1682
|
+
input: DnsRetrieveByIdRequest,
|
|
1683
|
+
output: DnsRecordsResponse,
|
|
1684
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1685
|
+
protocol: PorkbunProtocol,
|
|
1686
|
+
retry: Retry.Retry,
|
|
1687
|
+
}));
|
|
1688
|
+
/** Retrieve DNS records by name and type Retrieve all DNS records for a domain that match a specific subdomain and record type. Omit `subdomain` (or leave the path segment empty) to query the root domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1689
|
+
export const dnsRetrieveByNameType = /*@__PURE__*/ API.make(() => ({
|
|
1690
|
+
input: DnsRetrieveByNameTypeRequest,
|
|
1691
|
+
output: DnsRecordsResponse,
|
|
1692
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1693
|
+
protocol: PorkbunProtocol,
|
|
1694
|
+
retry: Retry.Retry,
|
|
1695
|
+
}));
|
|
1696
|
+
/** Add URL forward Add a URL forward for a domain or subdomain. */
|
|
1697
|
+
export const domainAddUrlForward = /*@__PURE__*/ API.make(() => ({
|
|
1698
|
+
input: DomainAddUrlForwardRequest,
|
|
1699
|
+
output: BasicResponse,
|
|
1700
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1701
|
+
protocol: PorkbunProtocol,
|
|
1702
|
+
retry: Retry.Retry,
|
|
1703
|
+
}));
|
|
1704
|
+
/** 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 1 check per 10 seconds per account. Rate limit usage is returned in the `limits` field of the response. */
|
|
1705
|
+
export const domainCheckDomain = /*@__PURE__*/ API.make(() => ({
|
|
1706
|
+
input: DomainCheckDomainRequest,
|
|
1707
|
+
output: CheckDomainResponse,
|
|
1708
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1709
|
+
protocol: PorkbunProtocol,
|
|
1710
|
+
retry: Retry.Retry,
|
|
1711
|
+
}));
|
|
1712
|
+
/** Create glue record Create a glue record (host object) for a nameserver hostname under the domain. Use this when you want to host a nameserver at a subdomain of the domain itself (e.g. ns1.example.com). */
|
|
1713
|
+
export const domainCreateGlue = /*@__PURE__*/ API.make(() => ({
|
|
1714
|
+
input: DomainCreateGlueRequest,
|
|
1715
|
+
output: BasicResponse,
|
|
1716
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1717
|
+
protocol: PorkbunProtocol,
|
|
1718
|
+
retry: Retry.Retry,
|
|
1719
|
+
}));
|
|
1720
|
+
/** Delete glue record Delete a glue record (host object) for a subdomain. */
|
|
1721
|
+
export const domainDeleteGlue = /*@__PURE__*/ API.make(() => ({
|
|
1722
|
+
input: DomainDeleteGlueRequest,
|
|
1723
|
+
output: BasicResponse,
|
|
1724
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1725
|
+
protocol: PorkbunProtocol,
|
|
1726
|
+
retry: Retry.Retry,
|
|
1727
|
+
}));
|
|
1728
|
+
/** Delete URL forward Delete a specific URL forward by ID. */
|
|
1729
|
+
export const domainDeleteUrlForward = /*@__PURE__*/ API.make(() => ({
|
|
1730
|
+
input: DomainDeleteUrlForwardRequest,
|
|
1731
|
+
output: BasicResponse,
|
|
1732
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1733
|
+
protocol: PorkbunProtocol,
|
|
1734
|
+
retry: Retry.Retry,
|
|
1735
|
+
}));
|
|
1736
|
+
/** Get domain contacts Return the domain's four contacts (registrant, admin, tech, billing) with their current field values. Also available via POST. */
|
|
1737
|
+
export const domainGetContacts = /*@__PURE__*/ API.make(() => ({
|
|
1738
|
+
input: DomainGetContactsRequest,
|
|
1739
|
+
output: DomainGetContactsResponse,
|
|
1740
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1741
|
+
protocol: PorkbunProtocol,
|
|
1742
|
+
retry: Retry.Retry,
|
|
1743
|
+
}));
|
|
1744
|
+
/** Get glue records Retrieve all glue records (host objects) registered under the domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1745
|
+
export const domainGetGlue = /*@__PURE__*/ API.make(() => ({
|
|
1746
|
+
input: DomainGetGlueRequest,
|
|
1747
|
+
output: DomainGetGlueResponse,
|
|
1748
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1749
|
+
protocol: PorkbunProtocol,
|
|
1750
|
+
retry: Retry.Retry,
|
|
1751
|
+
}));
|
|
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). */
|
|
1753
|
+
export const domainGetNs = /*@__PURE__*/ API.make(() => ({
|
|
1754
|
+
input: DomainGetNsRequest,
|
|
1755
|
+
output: DomainGetNsResponse,
|
|
1756
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1757
|
+
protocol: PorkbunProtocol,
|
|
1758
|
+
retry: Retry.Retry,
|
|
1759
|
+
}));
|
|
1760
|
+
/** Get TLD registration requirements (JSON Schema) Machine-readable registration requirements for a TLD. Returns whether the TLD is registerable via the API (`apiRegisterable`), the `/domain/create` request body as a JSON Schema, the fixed registration term, WHOIS-privacy/validated-address/registrant-only flags, and — for TLDs with registry eligibility rules (e.g. .us nexus, .ca legal type) — a second JSON Schema (`registryRequirements`) enumerating those fields with allowed values and labels. Call this before /domain/create to know upfront whether and how a TLD can be registered. Read-only; GET (header auth) or POST (body or header auth). */
|
|
1761
|
+
export const domainGetRegistrationRequirements = /*@__PURE__*/ API.make(() => ({
|
|
1762
|
+
input: DomainGetRegistrationRequirementsRequest,
|
|
1763
|
+
output: DomainGetRegistrationRequirementsResponse,
|
|
1764
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1765
|
+
protocol: PorkbunProtocol,
|
|
1766
|
+
retry: Retry.Retry,
|
|
1767
|
+
}));
|
|
1768
|
+
/** 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
|
+
export const domainGetUrlForwarding = /*@__PURE__*/ API.make(() => ({
|
|
1770
|
+
input: DomainGetUrlForwardingRequest,
|
|
1771
|
+
output: GetUrlForwardingResponse,
|
|
1772
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1773
|
+
protocol: PorkbunProtocol,
|
|
1774
|
+
retry: Retry.Retry,
|
|
1775
|
+
}));
|
|
1776
|
+
/** 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
|
+
export const domainUpdateAutoRenew = /*@__PURE__*/ API.make(() => ({
|
|
1778
|
+
input: DomainUpdateAutoRenewRequest,
|
|
1779
|
+
output: DomainUpdateAutoRenewResponse,
|
|
1780
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1781
|
+
protocol: PorkbunProtocol,
|
|
1782
|
+
retry: Retry.Retry,
|
|
1783
|
+
}));
|
|
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. */
|
|
1785
|
+
export const domainUpdateContacts = /*@__PURE__*/ API.make(() => ({
|
|
1786
|
+
input: DomainUpdateContactsRequest,
|
|
1787
|
+
output: DomainUpdateContactsResponse,
|
|
1788
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1789
|
+
protocol: PorkbunProtocol,
|
|
1790
|
+
retry: Retry.Retry,
|
|
1791
|
+
}));
|
|
1792
|
+
/** Update glue record Update the IP addresses of a glue record. All existing IP addresses are replaced with the supplied list. */
|
|
1793
|
+
export const domainUpdateGlue = /*@__PURE__*/ API.make(() => ({
|
|
1794
|
+
input: DomainUpdateGlueRequest,
|
|
1795
|
+
output: BasicResponse,
|
|
1796
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1797
|
+
protocol: PorkbunProtocol,
|
|
1798
|
+
retry: Retry.Retry,
|
|
1799
|
+
}));
|
|
1800
|
+
/** Update nameservers Update the nameservers for the domain at the registry. */
|
|
1801
|
+
export const domainUpdateNs = /*@__PURE__*/ API.make(() => ({
|
|
1802
|
+
input: DomainUpdateNsRequest,
|
|
1803
|
+
output: BasicResponse,
|
|
1804
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1805
|
+
protocol: PorkbunProtocol,
|
|
1806
|
+
retry: Retry.Retry,
|
|
1807
|
+
}));
|
|
1808
|
+
/** Edit DNS record by ID Edit a specific DNS record by its numeric ID. SOA and default Porkbun NS records cannot be edited. */
|
|
1809
|
+
export const editDns = /*@__PURE__*/ API.make(() => ({
|
|
1810
|
+
input: EditDnsRequest,
|
|
1811
|
+
output: BasicResponse,
|
|
1812
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1813
|
+
protocol: PorkbunProtocol,
|
|
1814
|
+
retry: Retry.Retry,
|
|
1815
|
+
}));
|
|
1816
|
+
/** Set email hosting password Set the password for an email hosting account associated with a domain managed by your API key. */
|
|
1817
|
+
export const emailSetPassword = /*@__PURE__*/ API.make(() => ({
|
|
1818
|
+
input: EmailSetPasswordRequest,
|
|
1819
|
+
output: BasicResponse,
|
|
1820
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1821
|
+
protocol: PorkbunProtocol,
|
|
1822
|
+
retry: Retry.Retry,
|
|
1823
|
+
}));
|
|
1824
|
+
/** Check account invite status Returns the current status of a registration invite created by your API key. - `PENDING` — the invite URL has not yet been used - `ACCEPTED` — the user completed registration; `newAccountId` contains their account ID - `EXPIRED` — the invite was not used within 48 hours or was canceled You can only query invites created by your own API key. Pass credentials via `X-API-Key` and `X-Secret-API-Key` headers. */
|
|
1825
|
+
export const getAccountInviteStatus = /*@__PURE__*/ API.make(() => ({
|
|
1826
|
+
input: GetAccountInviteStatusRequest,
|
|
1827
|
+
output: GetAccountInviteStatusResponse,
|
|
1828
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1829
|
+
protocol: PorkbunProtocol,
|
|
1830
|
+
retry: Retry.Retry,
|
|
1831
|
+
}));
|
|
1832
|
+
/** Poll for API key approval Poll to check whether the account holder has approved an API key authorization request. Returns `status: PENDING` while awaiting approval. On approval, returns the public API key. For a **PKCE** request (one created with a codeChallenge), pass the matching codeVerifier here to receive BOTH keys once (secretapikey is included in that single response and never again); the secret must be claimed within 10 minutes of approval or the request expires (`REQUEST_EXPIRED`) and a new one is needed. For a **legacy** request the secret API key is never transmitted via this endpoint — it is displayed in the user's browser and must be pasted into the application. **Rate limit:** 120 requests per IP per 3600 seconds. */
|
|
1833
|
+
export const getApikey = /*@__PURE__*/ API.make(() => ({
|
|
1834
|
+
input: GetApikeyRequest,
|
|
1835
|
+
output: GetApikeyResponse,
|
|
1836
|
+
errors: [BadRequest, Forbidden, UnknownPorkbunError],
|
|
1837
|
+
protocol: PorkbunProtocol,
|
|
1838
|
+
retry: Retry.Retry,
|
|
1839
|
+
}));
|
|
1840
|
+
/** Get API spend settings Returns the account's API spend control settings and current month's spend total. All amounts are in cents. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
|
|
1841
|
+
export const getApiSettings = /*@__PURE__*/ API.make(() => ({
|
|
1842
|
+
input: GetApiSettingsRequest,
|
|
1843
|
+
output: ApiSettingsResponse,
|
|
1844
|
+
errors: [UnknownPorkbunError],
|
|
1845
|
+
protocol: PorkbunProtocol,
|
|
1846
|
+
retry: Retry.Retry,
|
|
1847
|
+
}));
|
|
1848
|
+
/** 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
|
+
export const getBalance = /*@__PURE__*/ API.make(() => ({
|
|
1850
|
+
input: GetBalanceRequest,
|
|
1851
|
+
output: BalanceResponse,
|
|
1852
|
+
errors: [UnknownPorkbunError],
|
|
1853
|
+
protocol: PorkbunProtocol,
|
|
1854
|
+
retry: Retry.Retry,
|
|
1855
|
+
}));
|
|
1856
|
+
/** 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
|
+
export const getDns = /*@__PURE__*/ API.make(() => ({
|
|
1858
|
+
input: GetDnsRequest,
|
|
1859
|
+
output: DnsRecordsResponse,
|
|
1860
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1861
|
+
protocol: PorkbunProtocol,
|
|
1862
|
+
retry: Retry.Retry,
|
|
1863
|
+
}));
|
|
1864
|
+
/** 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). */
|
|
1865
|
+
export const getDnsRecordById = /*@__PURE__*/ API.make(() => ({
|
|
1866
|
+
input: GetDnsRecordByIdRequest,
|
|
1867
|
+
output: DnsRecordsResponse,
|
|
1868
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1869
|
+
protocol: PorkbunProtocol,
|
|
1870
|
+
retry: Retry.Retry,
|
|
1871
|
+
}));
|
|
1872
|
+
/** 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). */
|
|
1873
|
+
export const getDnsRecords = /*@__PURE__*/ API.make(() => ({
|
|
1874
|
+
input: GetDnsRecordsRequest,
|
|
1875
|
+
output: DnsRecordsResponse,
|
|
1876
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1877
|
+
protocol: PorkbunProtocol,
|
|
1878
|
+
retry: Retry.Retry,
|
|
1879
|
+
}));
|
|
1880
|
+
/** Retrieve DNS records by name and type Retrieve all DNS records for a domain that match a specific subdomain and record type. Omit `subdomain` (or leave the path segment empty) to query the root domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1881
|
+
export const getDnsRecordsByNameType = /*@__PURE__*/ API.make(() => ({
|
|
1882
|
+
input: GetDnsRecordsByNameTypeRequest,
|
|
1883
|
+
output: DnsRecordsResponse,
|
|
1884
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1885
|
+
protocol: PorkbunProtocol,
|
|
1886
|
+
retry: Retry.Retry,
|
|
1887
|
+
}));
|
|
1888
|
+
/** Get DNSSEC records Retrieve DNSSEC records associated with the domain at the registry. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1889
|
+
export const getDnssecRecords = /*@__PURE__*/ API.make(() => ({
|
|
1890
|
+
input: GetDnssecRecordsRequest,
|
|
1891
|
+
output: GetDnssecRecordsResponse,
|
|
1892
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1893
|
+
protocol: PorkbunProtocol,
|
|
1894
|
+
retry: Retry.Retry,
|
|
1895
|
+
}));
|
|
1896
|
+
/** Get a single domain Get the metadata for a single domain in the authenticated account. Returns the same per-domain shape as `listAll` items but as a single object. Returns HTTP 404 with code `DOMAIN_NOT_FOUND` if the domain isn't in the account. */
|
|
1897
|
+
export const getDomain = /*@__PURE__*/ API.make(() => ({
|
|
1898
|
+
input: GetDomainRequest,
|
|
1899
|
+
output: GetDomainResponse,
|
|
1900
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
1901
|
+
protocol: PorkbunProtocol,
|
|
1902
|
+
retry: Retry.Retry,
|
|
1903
|
+
}));
|
|
1904
|
+
/** Get glue records Retrieve all glue records (host objects) registered under the domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1905
|
+
export const getDomainGlue = /*@__PURE__*/ API.make(() => ({
|
|
1906
|
+
input: GetDomainGlueRequest,
|
|
1907
|
+
output: GetDomainGlueResponse,
|
|
1908
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1909
|
+
protocol: PorkbunProtocol,
|
|
1910
|
+
retry: Retry.Retry,
|
|
1911
|
+
}));
|
|
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). */
|
|
1913
|
+
export const getDomainNs = /*@__PURE__*/ API.make(() => ({
|
|
1914
|
+
input: GetDomainNsRequest,
|
|
1915
|
+
output: GetDomainNsResponse,
|
|
1916
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1917
|
+
protocol: PorkbunProtocol,
|
|
1918
|
+
retry: Retry.Retry,
|
|
1919
|
+
}));
|
|
1920
|
+
/** 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`. */
|
|
1921
|
+
export const getDomains = /*@__PURE__*/ API.make(() => ({
|
|
1922
|
+
input: GetDomainsRequest,
|
|
1923
|
+
output: DomainListAllResponse,
|
|
1924
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1925
|
+
protocol: PorkbunProtocol,
|
|
1926
|
+
retry: Retry.Retry,
|
|
1927
|
+
}));
|
|
1928
|
+
/** List URL forwards Retrieve all active URL forwards for a domain. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1929
|
+
export const getDomainUrlForwarding = /*@__PURE__*/ API.make(() => ({
|
|
1930
|
+
input: GetDomainUrlForwardingRequest,
|
|
1931
|
+
output: GetUrlForwardingResponse,
|
|
1932
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1933
|
+
protocol: PorkbunProtocol,
|
|
1934
|
+
retry: Retry.Retry,
|
|
1935
|
+
}));
|
|
1936
|
+
/** Get hosting status (either product) **Applies to:** Both products. Return the Secure Static Hosting status for a domain (plan, server, trial, expiry, auto-renew), or `hosting: null` if none. Also available via POST. */
|
|
1937
|
+
export const getHosting = /*@__PURE__*/ API.make(() => ({
|
|
1938
|
+
input: GetHostingRequest,
|
|
1939
|
+
output: GetHostingResponse,
|
|
1940
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1941
|
+
protocol: PorkbunProtocol,
|
|
1942
|
+
retry: Retry.Retry,
|
|
1943
|
+
}));
|
|
1944
|
+
/** 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 = /*@__PURE__*/ API.make(() => ({
|
|
1946
|
+
input: GetIpRequest,
|
|
1947
|
+
output: IpResponse,
|
|
1948
|
+
errors: [UnknownPorkbunError],
|
|
1949
|
+
protocol: PorkbunProtocol,
|
|
1950
|
+
retry: Retry.Retry,
|
|
1951
|
+
}));
|
|
1952
|
+
/** 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. */
|
|
1953
|
+
export const getPing = /*@__PURE__*/ API.make(() => ({
|
|
1954
|
+
input: GetPingRequest,
|
|
1955
|
+
output: GetPingResponse,
|
|
1956
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1957
|
+
protocol: PorkbunProtocol,
|
|
1958
|
+
retry: Retry.Retry,
|
|
1959
|
+
}));
|
|
1960
|
+
/** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs. Does not require authentication. Prices are in US dollars. */
|
|
1961
|
+
export const getPricing = /*@__PURE__*/ API.make(() => ({
|
|
1962
|
+
input: GetPricingRequest,
|
|
1963
|
+
output: GetPricingResponse,
|
|
1964
|
+
errors: [UnknownPorkbunError],
|
|
1965
|
+
protocol: PorkbunProtocol,
|
|
1966
|
+
retry: Retry.Retry,
|
|
1967
|
+
}));
|
|
1968
|
+
/** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs. Does not require authentication. Prices are in US dollars. This GET form returns pricing for all TLDs. To filter by specific TLDs, use `POST /pricing/get` with a `tlds` array in the request body. */
|
|
1969
|
+
export const getPricingGet = /*@__PURE__*/ API.make(() => ({
|
|
1970
|
+
input: GetPricingGetRequest,
|
|
1971
|
+
output: GetPricingGetResponse,
|
|
1972
|
+
errors: [UnknownPorkbunError],
|
|
1973
|
+
protocol: PorkbunProtocol,
|
|
1974
|
+
retry: Retry.Retry,
|
|
1975
|
+
}));
|
|
1976
|
+
/** Retrieve SSL bundle Retrieve the Let's Encrypt SSL certificate bundle for a domain. The certificate must already be issued (status HAVECERT). Token-based access is not supported for this endpoint. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1977
|
+
export const getSsl = /*@__PURE__*/ API.make(() => ({
|
|
1978
|
+
input: GetSslRequest,
|
|
1979
|
+
output: GetSslResponse,
|
|
1980
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1981
|
+
protocol: PorkbunProtocol,
|
|
1982
|
+
retry: Retry.Retry,
|
|
1983
|
+
}));
|
|
1984
|
+
/** Retrieve SSL bundle Retrieve the Let's Encrypt SSL certificate bundle for a domain. The certificate must already be issued (status HAVECERT). Token-based access is not supported for this endpoint. Supports both GET (with header auth) and POST (with body or header auth). */
|
|
1985
|
+
export const getSslRetrieve = /*@__PURE__*/ API.make(() => ({
|
|
1986
|
+
input: GetSslRetrieveRequest,
|
|
1987
|
+
output: GetSslRetrieveResponse,
|
|
1988
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
1989
|
+
protocol: PorkbunProtocol,
|
|
1990
|
+
retry: Retry.Retry,
|
|
1991
|
+
}));
|
|
1992
|
+
/** Get transfer status Returns the most recent transfer record for the specified domain in your account. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
|
|
1993
|
+
export const getTransferGet = /*@__PURE__*/ API.make(() => ({
|
|
1994
|
+
input: GetTransferGetRequest,
|
|
1995
|
+
output: GetTransferResponse,
|
|
1996
|
+
errors: [UnknownPorkbunError],
|
|
1997
|
+
protocol: PorkbunProtocol,
|
|
1998
|
+
retry: Retry.Retry,
|
|
1999
|
+
}));
|
|
2000
|
+
/** Get a webhook endpoint Fetch a single webhook endpoint by id, including its signing secret and delivery health. Read-only; supports GET (header auth) or POST (body or header auth). */
|
|
2001
|
+
export const getWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2002
|
+
input: GetWebhookRequest,
|
|
2003
|
+
output: WebhookEndpointResponse,
|
|
2004
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2005
|
+
protocol: PorkbunProtocol,
|
|
2006
|
+
retry: Retry.Retry,
|
|
2007
|
+
}));
|
|
2008
|
+
/** Mint WordPress REST API credentials (WordPress only) **Applies to:** Cloud for WordPress only. Creates a WordPress **Application Password** so an agent or integration can drive the site over the WP REST API at `https://{domain}/wp-json/` using HTTP Basic auth. The password is returned **once** — WordPress stores only a hash. Defaults to a dedicated least-privilege `porkbun-agent` user with the `editor` role (created on first use), which can manage content but not install code. `role: "administrator"` grants full site control **including plugin installation (arbitrary code execution on the site)** and therefore requires `acknowledgeFullAccess: true`. Revoke any time via `/hosting/deleteWpCredentials/{domain}` or in wp-admin under Users → Profile. Requires the site to be provisioned and ACTIVE (poll `/hosting/get/{domain}`). Free **preview** sites (the $0 parked plan) are excluded — they return `PREVIEW_SITE_NOT_SUPPORTED`; upgrade to a paid plan first. Works on any Cloud for WordPress site in the account regardless of whether it was provisioned via the API or the website, including sites migrated onto WP Cloud from the legacy WordPress product. For `role: "administrator"` the site's actual administrator account is looked up rather than assumed, so a renamed admin user is handled. **Rate limit:** 20 mints per account per hour (`dryRun` calls are free). */
|
|
2009
|
+
export const hostingCreateWpCredentials = /*@__PURE__*/ API.make(() => ({
|
|
2010
|
+
input: HostingCreateWpCredentialsRequest,
|
|
2011
|
+
output: HostingCreateWpCredentialsResponse,
|
|
2012
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2013
|
+
protocol: PorkbunProtocol,
|
|
2014
|
+
retry: Retry.Retry,
|
|
2015
|
+
}));
|
|
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 (or empty directory) at `path` in the domain's hosting space. */
|
|
2017
|
+
export const hostingDeleteFile = /*@__PURE__*/ API.make(() => ({
|
|
2018
|
+
input: HostingDeleteFileRequest,
|
|
2019
|
+
output: HostingDeleteFileResponse,
|
|
2020
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2021
|
+
protocol: PorkbunProtocol,
|
|
2022
|
+
retry: Retry.Retry,
|
|
2023
|
+
}));
|
|
2024
|
+
/** Revoke WordPress application passwords (WordPress only) **Applies to:** Cloud for WordPress only. Revokes an application password by `uuid` (from `/hosting/getWpCredentials`), or every one for the user with `all: true`. Any integration using it stops authenticating immediately. Free preview sites are excluded (`PREVIEW_SITE_NOT_SUPPORTED`). */
|
|
2025
|
+
export const hostingDeleteWpCredentials = /*@__PURE__*/ API.make(() => ({
|
|
2026
|
+
input: HostingDeleteWpCredentialsRequest,
|
|
2027
|
+
output: HostingDeleteWpCredentialsResponse,
|
|
2028
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2029
|
+
protocol: PorkbunProtocol,
|
|
2030
|
+
retry: Retry.Retry,
|
|
2031
|
+
}));
|
|
2032
|
+
/** List site files (static hosting only) **Applies to:** Secure Static Hosting only — a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`. List file/directory names under an optional `path` in the domain's hosting space. Also available via POST (send `path` in the body). */
|
|
2033
|
+
export const hostingFiles = /*@__PURE__*/ API.make(() => ({
|
|
2034
|
+
input: HostingFilesRequest,
|
|
2035
|
+
output: HostingFilesResponse,
|
|
2036
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2037
|
+
protocol: PorkbunProtocol,
|
|
2038
|
+
retry: Retry.Retry,
|
|
2039
|
+
}));
|
|
2040
|
+
/** List WordPress application passwords (WordPress only) **Applies to:** Cloud for WordPress only. Lists the application passwords on the site (uuid, name, created, last used) so you can audit or pick one to revoke. Metadata only — WordPress stores just a hash, so a password can never be re-read. Optional `wpUser` (defaults to the dedicated `porkbun-agent` user). Free preview sites are excluded (`PREVIEW_SITE_NOT_SUPPORTED`). */
|
|
2041
|
+
export const hostingGetWpCredentials = /*@__PURE__*/ API.make(() => ({
|
|
2042
|
+
input: HostingGetWpCredentialsRequest,
|
|
2043
|
+
output: HostingGetWpCredentialsResponse,
|
|
2044
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2045
|
+
protocol: PorkbunProtocol,
|
|
2046
|
+
retry: Retry.Retry,
|
|
2047
|
+
}));
|
|
2048
|
+
/** Create a directory (static hosting only) **Applies to:** Secure Static Hosting only — a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`. Create a directory (and any missing parent directories) at `path` in the domain’s hosting space. Deploy already auto-creates directories in a file’s path, so use this to stand up an empty directory explicitly. Path is sanitized segment-by-segment (no traversal / control chars). */
|
|
2049
|
+
export const hostingMakeDir = /*@__PURE__*/ API.make(() => ({
|
|
2050
|
+
input: HostingMakeDirRequest,
|
|
2051
|
+
output: HostingMakeDirResponse,
|
|
2052
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2053
|
+
protocol: PorkbunProtocol,
|
|
2054
|
+
retry: Retry.Retry,
|
|
2055
|
+
}));
|
|
2056
|
+
/** List provisionable hosting plans (static + WordPress) **Applies to:** Both products. List the hosting plans that can be provisioned via the API, with price, interval, trial length, and features. Pass a row's `plan` to `/hosting/create` and its `price` (cents) as `acknowledgedCost`. Currently Secure Static Hosting; more products are added over time. Also available via POST. Includes both Secure Static Hosting and Cloud for WordPress (managed WordPress) plans; the `product` field distinguishes them. */
|
|
2057
|
+
export const hostingPlans = /*@__PURE__*/ API.make(() => ({
|
|
2058
|
+
input: HostingPlansRequest,
|
|
2059
|
+
output: HostingPlansResponse,
|
|
2060
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2061
|
+
protocol: PorkbunProtocol,
|
|
2062
|
+
retry: Retry.Retry,
|
|
2063
|
+
}));
|
|
2064
|
+
/** 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
|
+
export const listDomains = /*@__PURE__*/ API.make(() => ({
|
|
2066
|
+
input: ListDomainsRequest,
|
|
2067
|
+
output: DomainListAllResponse,
|
|
2068
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2069
|
+
protocol: PorkbunProtocol,
|
|
2070
|
+
retry: Retry.Retry,
|
|
2071
|
+
}));
|
|
2072
|
+
/** 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
|
+
export const listMarketplaceListings = /*@__PURE__*/ API.make(() => ({
|
|
2074
|
+
input: ListMarketplaceListingsRequest,
|
|
2075
|
+
output: ListMarketplaceListingsResponse,
|
|
2076
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2077
|
+
protocol: PorkbunProtocol,
|
|
2078
|
+
retry: Retry.Retry,
|
|
2079
|
+
}));
|
|
2080
|
+
/** List marketplace domains GET form of `/marketplace/getAll` for read-friendly filtering and URL-shareable searches. Authenticate via `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. All filter params are optional and mirror the POST body. For multi-value `tlds`, use bracket syntax: `?tlds[]=com&tlds[]=io`. See the POST documentation for the full filtering semantics (unfiltered pagination vs filtered mode, `+include` / `-exclude` query prefixes, sort options). */
|
|
2081
|
+
export const listMarketplaceListingsGet = /*@__PURE__*/ API.make(() => ({
|
|
2082
|
+
input: ListMarketplaceListingsGetRequest,
|
|
2083
|
+
output: ListMarketplaceListingsGetResponse,
|
|
2084
|
+
errors: [UnknownPorkbunError],
|
|
2085
|
+
protocol: PorkbunProtocol,
|
|
2086
|
+
retry: Retry.Retry,
|
|
2087
|
+
}));
|
|
2088
|
+
/** List active transfers Returns all active inbound domain transfers for your account (excludes completed and canceled transfers). Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
|
|
2089
|
+
export const listTransfersGet = /*@__PURE__*/ API.make(() => ({
|
|
2090
|
+
input: ListTransfersGetRequest,
|
|
2091
|
+
output: ListTransfersResponse,
|
|
2092
|
+
errors: [UnknownPorkbunError],
|
|
2093
|
+
protocol: PorkbunProtocol,
|
|
2094
|
+
retry: Retry.Retry,
|
|
2095
|
+
}));
|
|
2096
|
+
/** List webhook endpoints List all webhook endpoints registered on the authenticated account, including each endpoint's signing secret and delivery health. Read-only; supports GET (header auth) or POST (body or header auth). */
|
|
2097
|
+
export const listWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2098
|
+
input: ListWebhookRequest,
|
|
2099
|
+
output: WebhookListResponse,
|
|
2100
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2101
|
+
protocol: PorkbunProtocol,
|
|
2102
|
+
retry: Retry.Retry,
|
|
2103
|
+
}));
|
|
2104
|
+
/** Mock server: list mockable endpoints Credential-free. Returns a directory of every endpoint that can be mocked, each with a ready-to-call mock URL. */
|
|
2105
|
+
export const mockDirectory = /*@__PURE__*/ API.make(() => ({
|
|
2106
|
+
input: MockDirectoryRequest,
|
|
2107
|
+
output: MockDirectoryResponse,
|
|
2108
|
+
errors: [UnknownPorkbunError],
|
|
2109
|
+
protocol: PorkbunProtocol,
|
|
2110
|
+
retry: Retry.Retry,
|
|
2111
|
+
}));
|
|
2112
|
+
/** Mock server: example response for an endpoint Credential-free. Mirror any real endpoint path after `/mock` (e.g. `/mock/domain/listAll`, `/mock/dns/create/example.com`) to get a schema-accurate example success response. Append `?status=error` for the error-response shape. Touches no datastore; signalled by the `X-Porkbun-Mock: true` header. */
|
|
2113
|
+
export const mockEndpoint = /*@__PURE__*/ API.make(() => ({
|
|
2114
|
+
input: MockEndpointRequest,
|
|
2115
|
+
output: MockEndpointResponse,
|
|
2116
|
+
errors: [UnknownPorkbunError],
|
|
2117
|
+
protocol: PorkbunProtocol,
|
|
2118
|
+
retry: Retry.Retry,
|
|
2119
|
+
}));
|
|
2120
|
+
/** 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 = /*@__PURE__*/ API.make(() => ({
|
|
2122
|
+
input: PingRequest,
|
|
2123
|
+
output: PingResponse,
|
|
2124
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2125
|
+
protocol: PorkbunProtocol,
|
|
2126
|
+
retry: Retry.Retry,
|
|
2127
|
+
}));
|
|
2128
|
+
/** 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 = /*@__PURE__*/ API.make(() => ({
|
|
2130
|
+
input: PostIpRequest,
|
|
2131
|
+
output: IpResponse,
|
|
2132
|
+
errors: [UnknownPorkbunError],
|
|
2133
|
+
protocol: PorkbunProtocol,
|
|
2134
|
+
retry: Retry.Retry,
|
|
2135
|
+
}));
|
|
2136
|
+
/** Renew a domain Renew a domain using account credit. Requirements: - Domain must be in your account and active - Domain must be opted in to API access - Account email and phone must be verified - Account must have sufficient credit - `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 10 seconds per account) - Success limit (default: 50 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" } ``` */
|
|
2137
|
+
export const renewDomain = /*@__PURE__*/ API.make(() => ({
|
|
2138
|
+
input: RenewDomainRequest,
|
|
2139
|
+
output: RenewDomainResponse2,
|
|
2140
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2141
|
+
protocol: PorkbunProtocol,
|
|
2142
|
+
retry: Retry.Retry,
|
|
2143
|
+
}));
|
|
2144
|
+
/** Resend a delivery Re-queue a past delivery to its endpoint. Clones it into a fresh attempt reusing the ORIGINAL event id (so consumers that dedupe on X-Porkbun-Webhook-Id treat it as the same event). The endpoint must still exist and be ACTIVE. The original delivery row is left intact as history. */
|
|
2145
|
+
export const resendWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2146
|
+
input: ResendWebhookRequest,
|
|
2147
|
+
output: WebhookResendResponse,
|
|
2148
|
+
errors: [BadRequest, NotFound, UnknownPorkbunError],
|
|
2149
|
+
protocol: PorkbunProtocol,
|
|
2150
|
+
retry: Retry.Retry,
|
|
2151
|
+
}));
|
|
2152
|
+
/** Sandbox: reset to a clean slate Sandbox only (requires a `pk1_sb_` key). Wipes the sandbox account's simulated state (domains, DNS, orders, credit) and re-grants $1000 fake credit. */
|
|
2153
|
+
export const resetSandbox = /*@__PURE__*/ API.make(() => ({
|
|
2154
|
+
input: ResetSandboxRequest,
|
|
2155
|
+
output: ResetSandboxResponse,
|
|
2156
|
+
errors: [UnknownPorkbunError],
|
|
2157
|
+
protocol: PorkbunProtocol,
|
|
2158
|
+
retry: Retry.Retry,
|
|
2159
|
+
}));
|
|
2160
|
+
/** 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
|
+
export const sandboxTopup = /*@__PURE__*/ API.make(() => ({
|
|
2162
|
+
input: SandboxTopupRequest,
|
|
2163
|
+
output: SandboxTopupResponse,
|
|
2164
|
+
errors: [UnknownPorkbunError],
|
|
2165
|
+
protocol: PorkbunProtocol,
|
|
2166
|
+
retry: Retry.Retry,
|
|
2167
|
+
}));
|
|
2168
|
+
/** Sandbox: fire a sample webhook event Sandbox only (requires a `pk1_sb_` key). Enqueues a signed sample webhook event to your registered endpoints so you can test your handler and signature verification for any event type on demand — including cron-driven events like `domain.expiring` that don't result from a single API call. Register an endpoint first with `POST /webhook/create`. */
|
|
2169
|
+
export const sandboxTriggerWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2170
|
+
input: SandboxTriggerWebhookRequest,
|
|
2171
|
+
output: SandboxTriggerWebhookResponse,
|
|
2172
|
+
errors: [UnknownPorkbunError],
|
|
2173
|
+
protocol: PorkbunProtocol,
|
|
2174
|
+
retry: Retry.Retry,
|
|
2175
|
+
}));
|
|
2176
|
+
/** 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
|
+
export const testWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2178
|
+
input: TestWebhookRequest,
|
|
2179
|
+
output: WebhookTestResponse,
|
|
2180
|
+
errors: [BadRequest, NotFound, UnknownPorkbunError],
|
|
2181
|
+
protocol: PorkbunProtocol,
|
|
2182
|
+
retry: Retry.Retry,
|
|
2183
|
+
}));
|
|
2184
|
+
/** Initiate a domain transfer Initiates an inbound domain transfer to Porkbun using account credit. 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. - 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. ## 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" } ``` */
|
|
2185
|
+
export const transferDomain = /*@__PURE__*/ API.make(() => ({
|
|
2186
|
+
input: TransferDomainRequest,
|
|
2187
|
+
output: TransferDomainResponse2,
|
|
2188
|
+
errors: [UnknownPorkbunError],
|
|
2189
|
+
protocol: PorkbunProtocol,
|
|
2190
|
+
retry: Retry.Retry,
|
|
2191
|
+
}));
|
|
2192
|
+
/** 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). */
|
|
2193
|
+
export const updateWebhook = /*@__PURE__*/ API.make(() => ({
|
|
2194
|
+
input: UpdateWebhookRequest,
|
|
2195
|
+
output: WebhookEndpointResponse,
|
|
2196
|
+
errors: [BadRequest, NotFound, UnknownPorkbunError],
|
|
2197
|
+
protocol: PorkbunProtocol,
|
|
2198
|
+
retry: Retry.Retry,
|
|
2199
|
+
}));
|
|
2200
|
+
/** List webhook deliveries List recent delivery attempts across the account (newest first), optionally filtered by endpoint or status. The bulky payload is omitted — use GET /webhook/delivery/{id} for it. History is retained about 30 days. Read-only; supports GET (header auth) or POST (body or header auth). */
|
|
2201
|
+
export const webhookDeliveries = /*@__PURE__*/ API.make(() => ({
|
|
2202
|
+
input: WebhookDeliveriesRequest,
|
|
2203
|
+
output: WebhookDeliveryListResponse,
|
|
2204
|
+
errors: [BadRequest, NotFound, UnknownPorkbunError],
|
|
2205
|
+
protocol: PorkbunProtocol,
|
|
2206
|
+
retry: Retry.Retry,
|
|
2207
|
+
}));
|
|
2208
|
+
/** Get a webhook delivery Fetch a single delivery including the full event payload that was (or will be) sent and its delivery status. Read-only; supports GET (header auth) or POST (body or header auth). */
|
|
2209
|
+
export const webhookDelivery2 = /*@__PURE__*/ API.make(() => ({
|
|
2210
|
+
input: WebhookDeliveryRequest,
|
|
2211
|
+
output: WebhookDeliveryResponse,
|
|
2212
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2213
|
+
protocol: PorkbunProtocol,
|
|
2214
|
+
retry: Retry.Retry,
|
|
2215
|
+
}));
|
|
2216
|
+
/** List subscribable event types Return the catalog of event types a webhook endpoint can subscribe to. Read-only; supports GET (header auth) or POST (body or header auth). */
|
|
2217
|
+
export const webhookEventTypes = /*@__PURE__*/ API.make(() => ({
|
|
2218
|
+
input: WebhookEventTypesRequest,
|
|
2219
|
+
output: WebhookEventTypesResponse,
|
|
2220
|
+
errors: [BadRequest, UnknownPorkbunError],
|
|
2221
|
+
protocol: PorkbunProtocol,
|
|
2222
|
+
retry: Retry.Retry,
|
|
2223
|
+
}));
|
|
2224
|
+
/** Rotate the signing secret Generate a new signing secret for an endpoint and return the endpoint with the new secret. Deliveries are signed with the new secret immediately, so update your verifier as part of the same operation. */
|
|
2225
|
+
export const webhookRotateSecret = /*@__PURE__*/ API.make(() => ({
|
|
2226
|
+
input: WebhookRotateSecretRequest,
|
|
2227
|
+
output: WebhookEndpointResponse,
|
|
2228
|
+
errors: [NotFound, UnknownPorkbunError],
|
|
2229
|
+
protocol: PorkbunProtocol,
|
|
2230
|
+
retry: Retry.Retry,
|
|
2231
|
+
}));
|
|
2232
|
+
//# sourceMappingURL=porkbun.js.map
|