@distilled.cloud/porkbun 0.0.0 → 1.0.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +37 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +47 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +36 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +26 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +24 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +28 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +9 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +9 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +58 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +32 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +32 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/index.d.ts +2 -0
  27. package/lib/services/index.d.ts.map +1 -0
  28. package/lib/services/index.js +3 -0
  29. package/lib/services/index.js.map +1 -0
  30. package/lib/services/porkbun.d.ts +2082 -0
  31. package/lib/services/porkbun.d.ts.map +1 -0
  32. package/lib/services/porkbun.js +2244 -0
  33. package/lib/services/porkbun.js.map +1 -0
  34. package/lib/traits.d.ts +11 -0
  35. package/lib/traits.d.ts.map +1 -0
  36. package/lib/traits.js +11 -0
  37. package/lib/traits.js.map +1 -0
  38. package/package.json +77 -6
  39. package/src/credentials.ts +73 -0
  40. package/src/errors.ts +50 -0
  41. package/src/index.ts +31 -0
  42. package/src/pagination.ts +8 -0
  43. package/src/protocol.ts +83 -0
  44. package/src/retry.ts +54 -0
  45. package/src/services/index.ts +2 -0
  46. package/src/services/porkbun.ts +5328 -0
  47. package/src/traits.ts +44 -0
@@ -0,0 +1,2082 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as Redacted from "effect/Redacted";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import { type PorkbunOpError, type PorkbunOpContext } from "../protocol.ts";
5
+ export type { PorkbunOpError, PorkbunOpContext };
6
+ declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
7
+ readonly code: any;
8
+ readonly message: any;
9
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ BadRequestError: true;
12
+ };
13
+ });
14
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
15
+ }
16
+ declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
17
+ readonly code: any;
18
+ readonly message: any;
19
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
20
+ "@distilled.cloud/error/categories": {
21
+ AuthError: true;
22
+ };
23
+ });
24
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
25
+ }
26
+ declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
27
+ readonly code: any;
28
+ readonly message: any;
29
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
30
+ "@distilled.cloud/error/categories": {
31
+ BadRequestError: true;
32
+ };
33
+ });
34
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
35
+ }
36
+ /** PKCE challenge method. Only S256 is supported. */
37
+ export type ApikeyRequestRequestCodeChallengeMethod = "S256";
38
+ export declare const ApikeyRequestRequestCodeChallengeMethod: any;
39
+ export interface ApikeyRequestRequest {
40
+ /** Human-readable name for the application/integration requesting access. Optional but strongly recommended: it is shown to the account holder on the approval screen so they know what they're granting access to. If omitted, the approval page shows "No application name was provided." */
41
+ name?: string;
42
+ /** Optional PKCE (RFC 7636) binding. base64url(SHA-256(codeVerifier)), 43 unpadded chars. When present, the request uses lazy-mint delivery: after approval the account holder copies nothing, and /apikey/retrieve returns BOTH the public and secret keys once to the caller that presents the matching codeVerifier. Omit for the legacy flow (secret shown only in the browser). */
43
+ codeChallenge?: string;
44
+ /** PKCE challenge method. Only S256 is supported. */
45
+ codeChallengeMethod?: ApikeyRequestRequestCodeChallengeMethod | (string & {});
46
+ /** If true, skip the approval flow and immediately return a throwaway SANDBOX key pair (public `pk1_sb_`, secret `sk1_sb_`) for a fresh test account seeded with $1000 fake credit. Use it as apikey/secretapikey against the same base URL to run the whole API in the isolated sandbox — no real registry actions, DNS changes, or charges. Rate-limited (20/IP/hour). */
47
+ sandbox?: boolean;
48
+ /** Optional app-return redirect for native/mobile apps. Requires codeChallenge (PKCE). Must be an HTTPS URL your app claims as a Universal Link / App Link (custom URI schemes are rejected — another app could hijack them). After the account holder approves in the system browser, Porkbun redirects here with `?status=approved&requestToken=<token>` (or `status=denied`) so control returns to your app; it then calls /apikey/retrieve with its codeVerifier to receive the keys. The key is NEVER placed in the redirect — only the request token and status. */
49
+ returnUrl?: string;
50
+ }
51
+ export declare const ApikeyRequestRequest: S.Schema<ApikeyRequestRequest>;
52
+ /** Which delivery flow this request uses. 'pkce' when a codeChallenge was supplied (the secret is returned once via /apikey/retrieve to the verifier holder); 'legacy' otherwise (the secret is shown only in the browser). */
53
+ export type ApikeyRequestResponseDeliveryMode = "legacy" | "pkce";
54
+ export declare const ApikeyRequestResponseDeliveryMode: any;
55
+ export interface ApikeyRequestResponse {
56
+ status?: string;
57
+ /** Token used to poll `/apikey/retrieve` to check approval status. */
58
+ requestToken: string;
59
+ /** URL the account holder must visit to approve the request */
60
+ authUrl?: string;
61
+ /** ISO datetime when this request expires (30 minutes from creation) */
62
+ expiration?: string;
63
+ /** Which delivery flow this request uses. 'pkce' when a codeChallenge was supplied (the secret is returned once via /apikey/retrieve to the verifier holder); 'legacy' otherwise (the secret is shown only in the browser). */
64
+ deliveryMode?: ApikeyRequestResponseDeliveryMode;
65
+ /** Human-readable instructions */
66
+ message?: string;
67
+ }
68
+ export declare const ApikeyRequestResponse: S.Schema<ApikeyRequestResponse>;
69
+ export interface CreateAccountInviteRequest {
70
+ /** Email address to pre-fill on the registration form (optional) */
71
+ email?: string;
72
+ /** HTTPS URL to redirect the user to after successful registration (optional). Use this to send users back to your platform after they complete account creation. */
73
+ returnUrl?: string;
74
+ }
75
+ export declare const CreateAccountInviteRequest: S.Schema<CreateAccountInviteRequest>;
76
+ export interface CreateAccountInviteResponse {
77
+ status: string;
78
+ /** Opaque token — pass to `/account/inviteStatus` to track completion */
79
+ inviteToken: string;
80
+ /** URL to send to the prospective user. Opens Porkbun's standard registration page. */
81
+ inviteUrl: string;
82
+ /** UTC datetime when the invite token expires (48 hours from creation) */
83
+ expires: string;
84
+ }
85
+ export declare const CreateAccountInviteResponse: S.Schema<CreateAccountInviteResponse>;
86
+ /** DNS record type */
87
+ export type CreateDnsRequestType = "A" | "AAAA" | "MX" | "CNAME" | "ALIAS" | "TXT" | "NS" | "SRV" | "TLSA" | "CAA" | "SSHFP" | "HTTPS" | "SVCB";
88
+ export declare const CreateDnsRequestType: any;
89
+ export interface CreateDnsRequest {
90
+ domain: string;
91
+ /** Subdomain for the record (e.g. 'www', '*' for wildcard, blank for root). Do not include the domain name itself. */
92
+ name?: string;
93
+ /** DNS record type */
94
+ type: CreateDnsRequestType | (string & {});
95
+ /** The record value */
96
+ content: string;
97
+ /** Time to live in seconds. Minimum is determined by account settings (typically 600). Defaults to the account minimum if omitted or 0. */
98
+ ttl?: number;
99
+ /** Priority for MX and SRV records. Defaults to 0 if omitted. */
100
+ prio?: number;
101
+ /** Optional notes to store with the record (not served in DNS) */
102
+ notes?: string;
103
+ /** If true, validate only — checks ownership/type/permissions and returns wouldSucceed without creating the record. */
104
+ dryRun?: boolean;
105
+ }
106
+ export declare const CreateDnsRequest: S.Schema<CreateDnsRequest>;
107
+ export interface CreateDnsResponse {
108
+ status?: string;
109
+ /** The numeric ID of the newly created record */
110
+ id?: string;
111
+ }
112
+ export declare const CreateDnsResponse: S.Schema<CreateDnsResponse>;
113
+ /** Must be 'yes' or '1' to confirm agreement to the Domain Name Registration Agreement, Product Terms of Service, Privacy Policy, and automatic renewal terms. */
114
+ export type CreateDomainRequestAgreeToTerms = "yes" | "1";
115
+ export declare const CreateDomainRequestAgreeToTerms: any;
116
+ export interface CreateDomainRequest {
117
+ domain: string;
118
+ /** The registration cost in pennies (USD cents). Must exactly equal the total price for the domain at its minimum registration duration. Obtain this from /domain/checkDomain first. */
119
+ cost: number;
120
+ /** Must be 'yes' or '1' to confirm agreement to the Domain Name Registration Agreement, Product Terms of Service, Privacy Policy, and automatic renewal terms. */
121
+ agreeToTerms: CreateDomainRequestAgreeToTerms | (string & {});
122
+ /** Optional. Override WHOIS privacy for this registration. When omitted, the account-level default is used (set under Account Security Settings on porkbun.com/account — defaults to enabled). Pass `true` to force-enable privacy or `false` to register with public contact info. Strings `"on"`/`"off"`, `"true"`/`"false"`, `"yes"`/`"no"`, `"1"`/`"0"` are also accepted. Has no effect on TLDs that don't support WHOIS privacy (privacy stays off regardless). */
123
+ whoisPrivacy?: boolean;
124
+ /** Optional. When true, runs all pre-flight validation (availability, pricing, cost match, eligibility, funds, spend limit) and returns a preview with `dryRun: true` and `wouldSucceed` WITHOUT creating an order or charging. Nothing is registered and the rate-limit budget is not consumed. Use it to safely confirm an operation before committing. */
125
+ dryRun?: boolean;
126
+ }
127
+ export declare const CreateDomainRequest: S.Schema<CreateDomainRequest>;
128
+ /** Create-attempt rate limit state */
129
+ export interface CreateDomainResponseLimitsAttempts {
130
+ /** Window in seconds */
131
+ TTL?: number;
132
+ /** Max attempts allowed */
133
+ limit?: number;
134
+ /** Attempts used */
135
+ used?: number;
136
+ naturalLanguage?: string;
137
+ }
138
+ export declare const CreateDomainResponseLimitsAttempts: S.Schema<CreateDomainResponseLimitsAttempts>;
139
+ /** Successful-registration rate limit state */
140
+ export interface CreateDomainResponseLimitsSuccess {
141
+ /** Window in seconds */
142
+ TTL?: number;
143
+ /** Max successes allowed */
144
+ limit?: number;
145
+ /** Successes used */
146
+ used?: number;
147
+ naturalLanguage?: string;
148
+ }
149
+ export declare const CreateDomainResponseLimitsSuccess: S.Schema<CreateDomainResponseLimitsSuccess>;
150
+ /** Current rate limit state for both attempt and success limits */
151
+ export interface CreateDomainResponseLimits {
152
+ /** Create-attempt rate limit state */
153
+ attempts?: CreateDomainResponseLimitsAttempts;
154
+ /** Successful-registration rate limit state */
155
+ success?: CreateDomainResponseLimitsSuccess;
156
+ }
157
+ export declare const CreateDomainResponseLimits: S.Schema<CreateDomainResponseLimits>;
158
+ export interface CreateDomainResponse {
159
+ status: string;
160
+ /** The registered domain name */
161
+ domain: string;
162
+ /** The total amount charged in pennies */
163
+ cost?: number;
164
+ /** Internal Porkbun order ID */
165
+ orderId: number;
166
+ /** Current rate limit state for both attempt and success limits */
167
+ limits?: CreateDomainResponseLimits;
168
+ /** Remaining account credit balance in pennies after the charge */
169
+ balance?: number;
170
+ /** Seconds until the success rate limit window resets */
171
+ ttlRemaining?: number;
172
+ /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
173
+ requestId?: string;
174
+ }
175
+ export declare const CreateDomainResponse: S.Schema<CreateDomainResponse>;
176
+ export type DryRunPreviewResponseOperation = "registration" | "renewal" | "transfer";
177
+ export declare const DryRunPreviewResponseOperation: any;
178
+ /** Returned (HTTP 200) by /domain/create, /domain/renew, and /domain/transfer when the request includes `dryRun: true`. All validation has run but nothing was created or charged. All money amounts are in pennies (USD cents). */
179
+ export interface DryRunPreviewResponse {
180
+ status: string;
181
+ /** Always true on a dry-run preview — distinguishes it from a real success response. */
182
+ dryRun: boolean;
183
+ /** True if the operation would complete given current funds and spend-limit state. (Hard validation failures — unavailable, bad price, ineligible — return a normal error response instead of a preview.) */
184
+ wouldSucceed: boolean;
185
+ operation: DryRunPreviewResponseOperation;
186
+ domain: string;
187
+ tld?: string;
188
+ /** Availability as reported by the registry check (e.g. `available` / `unavailable`). */
189
+ available?: string;
190
+ /** Whether the domain is a premium/aftermarket name. */
191
+ premium?: boolean;
192
+ /** Term in years that would be purchased. */
193
+ duration?: number;
194
+ /** Total cost in pennies that would be charged. */
195
+ cost: number;
196
+ /** Human-readable cost. */
197
+ costDisplay?: string;
198
+ /** Current account credit balance in pennies. */
199
+ balance?: number;
200
+ /** Whether the balance covers the cost. */
201
+ sufficientFunds?: boolean;
202
+ /** The account's monthly API spend cap in pennies. Present only if a cap is configured. */
203
+ monthlySpendLimit?: number;
204
+ /** API spend so far this calendar month in pennies. Present only if a cap is configured. */
205
+ monthlySpendSoFar?: number;
206
+ /** Whether this cost stays within the monthly cap. Present only if a cap is configured. */
207
+ withinMonthlySpendLimit?: boolean;
208
+ /** Human-readable summary of the preview outcome. */
209
+ message?: string;
210
+ /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
211
+ requestId?: string;
212
+ }
213
+ export declare const DryRunPreviewResponse: S.Schema<DryRunPreviewResponse>;
214
+ export type CreateDomainResponseBody = CreateDomainResponse | DryRunPreviewResponse;
215
+ export declare const CreateDomainResponseBody: S.Schema<CreateDomainResponseBody>;
216
+ export type CreateDomainResponse2 = CreateDomainResponseBody;
217
+ export declare const CreateDomainResponse2: S.Schema<CreateDomainResponse2>;
218
+ /** The hosting plan SKU to provision. Discover the provisionable SKUs (and each one’s price/interval/trial) via GET /hosting/plans, then pass the row’s `sku`. Currently Secure Static Hosting: PIXIESECURESTATICM2 ($3.00/mo) or PIXIESECURESTATICY2 ($30.00/yr). */
219
+ export type CreateHostingRequestSku = "PIXIESECURESTATICM2" | "PIXIESECURESTATICY2";
220
+ export declare const CreateHostingRequestSku: any;
221
+ export type CreateHostingRequestAgreeToTerms = "yes";
222
+ export declare const CreateHostingRequestAgreeToTerms: any;
223
+ export interface CreateHostingRequest {
224
+ domain: string;
225
+ /** The hosting plan SKU to provision. Discover the provisionable SKUs (and each one’s price/interval/trial) via GET /hosting/plans, then pass the row’s `sku`. Currently Secure Static Hosting: PIXIESECURESTATICM2 ($3.00/mo) or PIXIESECURESTATICY2 ($30.00/yr). */
226
+ sku: CreateHostingRequestSku | (string & {});
227
+ /** Echo the plan price in cents (300 monthly / 3000 yearly) to confirm the account holder understands the auto-renew / charge. Mismatch returns COST_ACKNOWLEDGMENT_REQUIRED. */
228
+ acknowledgedCost: number;
229
+ agreeToTerms: CreateHostingRequestAgreeToTerms | (string & {});
230
+ /** Required (true) when the domain is not already on Porkbun nameservers — provisioning will switch them. */
231
+ agreeToNameserverChange?: boolean;
232
+ /** Validate + preview without provisioning or charging. */
233
+ dryRun?: boolean;
234
+ }
235
+ export declare const CreateHostingRequest: S.Schema<CreateHostingRequest>;
236
+ export type CreateHostingResponseHostingStatus = "ACTIVE" | "PENDING";
237
+ export declare const CreateHostingResponseHostingStatus: any;
238
+ export interface CreateHostingResponseHosting {
239
+ domain?: string;
240
+ product?: string;
241
+ plan?: string;
242
+ server?: string;
243
+ status?: CreateHostingResponseHostingStatus;
244
+ trial?: boolean;
245
+ trialEndsAt?: string | null;
246
+ autoRenew?: boolean;
247
+ sku?: string;
248
+ }
249
+ export declare const CreateHostingResponseHosting: S.Schema<CreateHostingResponseHosting>;
250
+ export interface CreateHostingResponseCost {
251
+ amount?: number;
252
+ formatted?: string;
253
+ interval?: string;
254
+ }
255
+ export declare const CreateHostingResponseCost: S.Schema<CreateHostingResponseCost>;
256
+ export interface CreateHostingResponse {
257
+ status?: string;
258
+ orderId?: number;
259
+ hosting?: CreateHostingResponseHosting;
260
+ /** Cents captured now (0 on the free trial). */
261
+ charged?: number;
262
+ cost?: CreateHostingResponseCost;
263
+ message?: string;
264
+ }
265
+ export declare const CreateHostingResponse: S.Schema<CreateHostingResponse>;
266
+ /** Event types to subscribe to. Omit, or pass ["*"], for all events. Prefix wildcards like "dns.*" are allowed. */
267
+ export type CreateWebhookRequestEventsList = Array<string>;
268
+ export declare const CreateWebhookRequestEventsList: S.Schema<CreateWebhookRequestEventsList>;
269
+ export interface CreateWebhookRequest {
270
+ /** HTTPS URL to deliver events to. */
271
+ url: string;
272
+ /** Event types to subscribe to. Omit, or pass ["*"], for all events. Prefix wildcards like "dns.*" are allowed. */
273
+ events?: CreateWebhookRequestEventsList;
274
+ }
275
+ export declare const CreateWebhookRequest: S.Schema<CreateWebhookRequest>;
276
+ /** Subscribed event types, or ["*"] for all. */
277
+ export type WebhookEndpointEventsList = Array<string>;
278
+ export declare const WebhookEndpointEventsList: S.Schema<WebhookEndpointEventsList>;
279
+ /** ACTIVE or DISABLED. */
280
+ export type WebhookEndpointStatus = "ACTIVE" | "DISABLED";
281
+ export declare const WebhookEndpointStatus: any;
282
+ export interface WebhookEndpoint {
283
+ /** Numeric endpoint id. */
284
+ id?: number;
285
+ /** Destination HTTPS URL. */
286
+ url?: string;
287
+ /** Signing secret used to verify the X-Porkbun-Signature header (HMAC-SHA256 key). Returned only to the authenticated owner. */
288
+ secret?: string | Redacted.Redacted<string>;
289
+ /** Subscribed event types, or ["*"] for all. */
290
+ events?: WebhookEndpointEventsList;
291
+ /** ACTIVE or DISABLED. */
292
+ status?: WebhookEndpointStatus;
293
+ /** Consecutive failed deliveries; reset to 0 on the next success or on re-enable. The endpoint auto-disables at 20. */
294
+ consecutiveFailures?: number;
295
+ /** Timestamp of the last successful delivery, or null. */
296
+ lastSuccessDate?: string | null;
297
+ /** Timestamp of the last failed delivery, or null. */
298
+ lastFailureDate?: string | null;
299
+ /** Last delivery error, or null. */
300
+ lastError?: string | null;
301
+ /** When the endpoint was created. */
302
+ createDate?: string;
303
+ }
304
+ export declare const WebhookEndpoint: S.Schema<WebhookEndpoint>;
305
+ export interface WebhookEndpointResponse {
306
+ status?: string;
307
+ endpoint?: WebhookEndpoint;
308
+ }
309
+ export declare const WebhookEndpointResponse: S.Schema<WebhookEndpointResponse>;
310
+ export interface DeleteDnsRequest {
311
+ domain: string;
312
+ /** Numeric DNS record ID */
313
+ id: string;
314
+ }
315
+ export declare const DeleteDnsRequest: S.Schema<DeleteDnsRequest>;
316
+ export type BasicResponseStatus = "SUCCESS" | "ERROR";
317
+ export declare const BasicResponseStatus: any;
318
+ export interface BasicResponse {
319
+ status: BasicResponseStatus;
320
+ /** Human-readable message. Present on ERROR, sometimes on SUCCESS. */
321
+ message?: string;
322
+ /** Machine-readable error code. Present when status is ERROR. */
323
+ code?: string;
324
+ }
325
+ export declare const BasicResponse: S.Schema<BasicResponse>;
326
+ export interface DeleteHostingRequest {
327
+ domain: string;
328
+ }
329
+ export declare const DeleteHostingRequest: S.Schema<DeleteHostingRequest>;
330
+ export interface DeleteWebhookRequest {
331
+ /** Endpoint id. */
332
+ id: number;
333
+ }
334
+ export declare const DeleteWebhookRequest: S.Schema<DeleteWebhookRequest>;
335
+ export interface DeleteWebhookResponse {
336
+ status?: string;
337
+ message?: string;
338
+ }
339
+ export declare const DeleteWebhookResponse: S.Schema<DeleteWebhookResponse>;
340
+ export interface DeployHostingRequestFilesItem {
341
+ path?: string;
342
+ /** base64-encoded file contents */
343
+ content?: string;
344
+ }
345
+ export declare const DeployHostingRequestFilesItem: S.Schema<DeployHostingRequestFilesItem>;
346
+ export type DeployHostingRequestFilesList = Array<DeployHostingRequestFilesItem>;
347
+ export declare const DeployHostingRequestFilesList: S.Schema<DeployHostingRequestFilesList>;
348
+ export interface DeployHostingRequest {
349
+ domain: string;
350
+ files: DeployHostingRequestFilesList;
351
+ }
352
+ export declare const DeployHostingRequest: S.Schema<DeployHostingRequest>;
353
+ export type DeployHostingResponseDeployedList = Array<string>;
354
+ export declare const DeployHostingResponseDeployedList: S.Schema<DeployHostingResponseDeployedList>;
355
+ export interface DeployHostingResponseSkippedItem {
356
+ path?: string;
357
+ reason?: string;
358
+ }
359
+ export declare const DeployHostingResponseSkippedItem: S.Schema<DeployHostingResponseSkippedItem>;
360
+ export type DeployHostingResponseSkippedList = Array<DeployHostingResponseSkippedItem>;
361
+ export declare const DeployHostingResponseSkippedList: S.Schema<DeployHostingResponseSkippedList>;
362
+ export interface DeployHostingResponse {
363
+ status?: string;
364
+ deployed?: DeployHostingResponseDeployedList;
365
+ skipped?: DeployHostingResponseSkippedList;
366
+ }
367
+ export declare const DeployHostingResponse: S.Schema<DeployHostingResponse>;
368
+ export interface DnsCreateDnssecRecordRequest {
369
+ domain: string;
370
+ /** DNSSEC key tag */
371
+ keyTag: string;
372
+ /** DS Data algorithm number (e.g. 13 for ECDSA P-256 SHA-256) */
373
+ alg: string;
374
+ /** Digest type number (e.g. 2 for SHA-256) */
375
+ digestType: string;
376
+ /** Hex-encoded digest value */
377
+ digest: string;
378
+ /** Maximum signature lifetime in seconds (optional, registry-specific) */
379
+ maxSigLife?: string;
380
+ /** Key data flags (optional, used when submitting full key data) */
381
+ keyDataFlags?: string;
382
+ /** Key data protocol (optional) */
383
+ keyDataProtocol?: string;
384
+ /** Key data algorithm (optional) */
385
+ keyDataAlgo?: string;
386
+ /** Key data public key in base64 (optional) */
387
+ keyDataPubKey?: string;
388
+ }
389
+ export declare const DnsCreateDnssecRecordRequest: S.Schema<DnsCreateDnssecRecordRequest>;
390
+ export interface DnsDeleteByNameTypeRequest {
391
+ domain: string;
392
+ type: string;
393
+ /** Subdomain portion only. Omit or leave empty for root domain records. */
394
+ subdomain: string;
395
+ }
396
+ export declare const DnsDeleteByNameTypeRequest: S.Schema<DnsDeleteByNameTypeRequest>;
397
+ export interface DnsDeleteDnssecRecordRequest {
398
+ domain: string;
399
+ /** The DNSSEC key tag value */
400
+ keytag: string;
401
+ }
402
+ export declare const DnsDeleteDnssecRecordRequest: S.Schema<DnsDeleteDnssecRecordRequest>;
403
+ export interface DnsEditByNameTypeRequest {
404
+ domain: string;
405
+ type: string;
406
+ /** Subdomain portion only. Omit or leave empty for root domain records. */
407
+ subdomain: string;
408
+ /** New record value to set on all matching records */
409
+ content: string;
410
+ /** Time to live in seconds (optional) */
411
+ ttl?: number;
412
+ /** Priority (optional) */
413
+ prio?: number;
414
+ /** Notes to store with the record (not served in DNS). Pass an empty string to clear existing notes; pass null or omit this field to leave notes unchanged. */
415
+ notes?: string;
416
+ }
417
+ export declare const DnsEditByNameTypeRequest: S.Schema<DnsEditByNameTypeRequest>;
418
+ export interface DnsGetDnssecRecordsRequest {
419
+ domain: string;
420
+ }
421
+ export declare const DnsGetDnssecRecordsRequest: S.Schema<DnsGetDnssecRecordsRequest>;
422
+ export interface DnsGetDnssecRecordsResponseRecordsValue {
423
+ keyTag?: string;
424
+ alg?: string;
425
+ digestType?: string;
426
+ digest?: string;
427
+ /** Present for key data records */
428
+ pubKey?: string;
429
+ }
430
+ export declare const DnsGetDnssecRecordsResponseRecordsValue: S.Schema<DnsGetDnssecRecordsResponseRecordsValue>;
431
+ /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
432
+ export type DnsGetDnssecRecordsResponseRecordsMap = {
433
+ [key: string]: DnsGetDnssecRecordsResponseRecordsValue | undefined;
434
+ };
435
+ export declare const DnsGetDnssecRecordsResponseRecordsMap: S.Schema<DnsGetDnssecRecordsResponseRecordsMap>;
436
+ export interface DnsGetDnssecRecordsResponse {
437
+ status?: string;
438
+ /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
439
+ records?: DnsGetDnssecRecordsResponseRecordsMap;
440
+ }
441
+ export declare const DnsGetDnssecRecordsResponse: S.Schema<DnsGetDnssecRecordsResponse>;
442
+ export interface DnsRetrieveByIdRequest {
443
+ domain: string;
444
+ /** Numeric DNS record ID */
445
+ id: string;
446
+ }
447
+ export declare const DnsRetrieveByIdRequest: S.Schema<DnsRetrieveByIdRequest>;
448
+ /** Whether Cloudflare proxy is enabled for this domain */
449
+ export type DnsRecordsResponseCloudflare = "enabled" | "disabled";
450
+ export declare const DnsRecordsResponseCloudflare: any;
451
+ export interface DnsRecordsResponseRecordsItem {
452
+ /** Numeric record ID */
453
+ id?: string;
454
+ /** Fully-qualified record name */
455
+ name?: string;
456
+ /** DNS record type */
457
+ type?: string;
458
+ /** Record value */
459
+ content?: string;
460
+ /** Time to live in seconds */
461
+ ttl?: string;
462
+ /** Priority (used for MX, SRV records). Null if not applicable. */
463
+ prio?: string | null;
464
+ /** Optional notes attached to the record. Null if not set. */
465
+ notes?: string | null;
466
+ }
467
+ export declare const DnsRecordsResponseRecordsItem: S.Schema<DnsRecordsResponseRecordsItem>;
468
+ export type DnsRecordsResponseRecordsList = Array<DnsRecordsResponseRecordsItem>;
469
+ export declare const DnsRecordsResponseRecordsList: S.Schema<DnsRecordsResponseRecordsList>;
470
+ export interface DnsRecordsResponse {
471
+ status: string;
472
+ /** Whether Cloudflare proxy is enabled for this domain */
473
+ cloudflare?: DnsRecordsResponseCloudflare;
474
+ records: DnsRecordsResponseRecordsList;
475
+ }
476
+ export declare const DnsRecordsResponse: S.Schema<DnsRecordsResponse>;
477
+ export interface DnsRetrieveByNameTypeRequest {
478
+ domain: string;
479
+ /** DNS record type (A, AAAA, CNAME, MX, TXT, etc.) */
480
+ type: string;
481
+ /** Subdomain portion only. Omit or leave empty for root domain records. */
482
+ subdomain: string;
483
+ }
484
+ export declare const DnsRetrieveByNameTypeRequest: S.Schema<DnsRetrieveByNameTypeRequest>;
485
+ /** Redirect kind. 'permanent' = HTTP 301; 'temporary' = HTTP 302 (default); 'masked' = loads the destination in a frame (URL masking). For a precise code — including a 307 temporary redirect — use `redirectType`. */
486
+ export type DomainAddUrlForwardRequestType = "temporary" | "permanent" | "masked";
487
+ export declare const DomainAddUrlForwardRequestType: any;
488
+ /** Optional. The exact redirect type; takes precedence over `type` when supplied. 301 = permanent, 302 or 307 = temporary (this is how you request 307), masked = URL masking. Omit to derive from `type` (temporary->302, permanent->301). */
489
+ export type DomainAddUrlForwardRequestRedirectType = "301" | "302" | "307" | "masked";
490
+ export declare const DomainAddUrlForwardRequestRedirectType: any;
491
+ /** Whether to append the request URI path to the forwarding destination */
492
+ export type DomainAddUrlForwardRequestIncludePath = "yes" | "no";
493
+ export declare const DomainAddUrlForwardRequestIncludePath: any;
494
+ /** Whether to also forward all subdomains of the forwarded subdomain */
495
+ export type DomainAddUrlForwardRequestWildcard = "yes" | "no";
496
+ export declare const DomainAddUrlForwardRequestWildcard: any;
497
+ export interface DomainAddUrlForwardRequest {
498
+ domain: string;
499
+ /** Subdomain to forward (optional, leave blank or omit for root domain). Alphanumeric and hyphens only. */
500
+ subdomain?: string;
501
+ /** Destination URL to forward to */
502
+ location: string;
503
+ /** Redirect kind. 'permanent' = HTTP 301; 'temporary' = HTTP 302 (default); 'masked' = loads the destination in a frame (URL masking). For a precise code — including a 307 temporary redirect — use `redirectType`. */
504
+ type: DomainAddUrlForwardRequestType | (string & {});
505
+ /** Optional. The exact redirect type; takes precedence over `type` when supplied. 301 = permanent, 302 or 307 = temporary (this is how you request 307), masked = URL masking. Omit to derive from `type` (temporary->302, permanent->301). */
506
+ redirectType?: DomainAddUrlForwardRequestRedirectType | (string & {});
507
+ /** Whether to append the request URI path to the forwarding destination */
508
+ includePath: DomainAddUrlForwardRequestIncludePath | (string & {});
509
+ /** Whether to also forward all subdomains of the forwarded subdomain */
510
+ wildcard: DomainAddUrlForwardRequestWildcard | (string & {});
511
+ }
512
+ export declare const DomainAddUrlForwardRequest: S.Schema<DomainAddUrlForwardRequest>;
513
+ export interface DomainCheckDomainRequest {
514
+ domain: string;
515
+ }
516
+ export declare const DomainCheckDomainRequest: S.Schema<DomainCheckDomainRequest>;
517
+ /** Whether the domain is available for registration */
518
+ export type CheckDomainResponseResponseAvail = "yes" | "no";
519
+ export declare const CheckDomainResponseResponseAvail: any;
520
+ /** Whether the returned price is a first-year promotional price */
521
+ export type CheckDomainResponseResponseFirstYearPromo = "yes" | "no";
522
+ export declare const CheckDomainResponseResponseFirstYearPromo: any;
523
+ /** Whether this is a premium domain */
524
+ export type CheckDomainResponseResponsePremium = "yes" | "no";
525
+ export declare const CheckDomainResponseResponsePremium: any;
526
+ export interface CheckDomainResponseResponseAdditionalRenewal {
527
+ type?: string;
528
+ price?: string;
529
+ regularPrice?: string;
530
+ }
531
+ export declare const CheckDomainResponseResponseAdditionalRenewal: S.Schema<CheckDomainResponseResponseAdditionalRenewal>;
532
+ export type CheckDomainResponseResponseAdditionalTransfer = CheckDomainResponseResponseAdditionalRenewal;
533
+ export declare const CheckDomainResponseResponseAdditionalTransfer: S.Schema<CheckDomainResponseResponseAdditionalRenewal>;
534
+ /** Renewal and transfer pricing for this domain */
535
+ export interface CheckDomainResponseResponseAdditional {
536
+ renewal?: CheckDomainResponseResponseAdditionalRenewal;
537
+ transfer?: CheckDomainResponseResponseAdditionalRenewal;
538
+ }
539
+ export declare const CheckDomainResponseResponseAdditional: S.Schema<CheckDomainResponseResponseAdditional>;
540
+ export interface CheckDomainResponseResponse {
541
+ /** Whether the domain is available for registration */
542
+ avail?: CheckDomainResponseResponseAvail;
543
+ /** The price type (always 'registration' for the primary price) */
544
+ type?: string;
545
+ /** Registration price per year in USD */
546
+ price?: string;
547
+ /** Whether the returned price is a first-year promotional price */
548
+ firstYearPromo?: CheckDomainResponseResponseFirstYearPromo;
549
+ /** Standard (non-promo) registration price in USD */
550
+ regularPrice?: string;
551
+ /** Whether this is a premium domain */
552
+ premium?: CheckDomainResponseResponsePremium;
553
+ /** Minimum registration duration in years required by the registry */
554
+ minDuration?: number;
555
+ /** Renewal and transfer pricing for this domain */
556
+ additional?: CheckDomainResponseResponseAdditional;
557
+ }
558
+ export declare const CheckDomainResponseResponse: S.Schema<CheckDomainResponseResponse>;
559
+ /** Current rate limit usage for this account */
560
+ export interface CheckDomainResponseLimits {
561
+ /** Rate limit window in seconds */
562
+ TTL?: number;
563
+ /** Maximum checks allowed in the window */
564
+ limit?: number;
565
+ /** Number of checks used so far in the current window */
566
+ used?: number;
567
+ /** Human-readable rate limit summary */
568
+ naturalLanguage?: string;
569
+ }
570
+ export declare const CheckDomainResponseLimits: S.Schema<CheckDomainResponseLimits>;
571
+ export interface CheckDomainResponse {
572
+ status: string;
573
+ response: CheckDomainResponseResponse;
574
+ /** Current rate limit usage for this account */
575
+ limits?: CheckDomainResponseLimits;
576
+ /** Seconds remaining until the rate limit window resets */
577
+ ttlRemaining?: number;
578
+ }
579
+ export declare const CheckDomainResponse: S.Schema<CheckDomainResponse>;
580
+ /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
581
+ export type DomainCreateGlueRequestIpsList = Array<string>;
582
+ export declare const DomainCreateGlueRequestIpsList: S.Schema<DomainCreateGlueRequestIpsList>;
583
+ export interface DomainCreateGlueRequest {
584
+ domain: string;
585
+ /** The subdomain portion only (e.g. 'ns1' for ns1.example.com) */
586
+ subdomain: string;
587
+ /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
588
+ ips: DomainCreateGlueRequestIpsList;
589
+ }
590
+ export declare const DomainCreateGlueRequest: S.Schema<DomainCreateGlueRequest>;
591
+ export interface DomainDeleteGlueRequest {
592
+ domain: string;
593
+ subdomain: string;
594
+ }
595
+ export declare const DomainDeleteGlueRequest: S.Schema<DomainDeleteGlueRequest>;
596
+ export interface DomainDeleteUrlForwardRequest {
597
+ domain: string;
598
+ /** URL forward record ID */
599
+ id: string;
600
+ }
601
+ export declare const DomainDeleteUrlForwardRequest: S.Schema<DomainDeleteUrlForwardRequest>;
602
+ export interface DomainGetContactsRequest {
603
+ domain: string;
604
+ }
605
+ export declare const DomainGetContactsRequest: S.Schema<DomainGetContactsRequest>;
606
+ /** A domain contact. On update, a provided role requires firstName, address1, city, postalCode, country, phone, phoneCountryCode, and email. Country is an ISO 3166-1 alpha-2 code; phoneCountryCode is the numeric calling code (e.g. "1", "44"). state may be empty where not applicable. */
607
+ export interface DomainContact {
608
+ firstName?: string;
609
+ lastName?: string;
610
+ organization?: string;
611
+ address1?: string;
612
+ address2?: string;
613
+ address3?: string;
614
+ city?: string;
615
+ /** State/province; may be empty where not applicable. */
616
+ state?: string;
617
+ postalCode?: string;
618
+ /** ISO 3166-1 alpha-2 country code. */
619
+ country?: string;
620
+ /** National phone number, digits only. */
621
+ phone?: string;
622
+ /** Numeric international calling code. */
623
+ phoneCountryCode?: string;
624
+ fax?: string;
625
+ email?: string;
626
+ }
627
+ export declare const DomainContact: S.Schema<DomainContact>;
628
+ export interface DomainGetContactsResponseContacts {
629
+ registrant?: DomainContact;
630
+ admin?: DomainContact;
631
+ tech?: DomainContact;
632
+ billing?: DomainContact;
633
+ }
634
+ export declare const DomainGetContactsResponseContacts: S.Schema<DomainGetContactsResponseContacts>;
635
+ export interface DomainGetContactsResponse {
636
+ status?: string;
637
+ contacts?: DomainGetContactsResponseContacts;
638
+ }
639
+ export declare const DomainGetContactsResponse: S.Schema<DomainGetContactsResponse>;
640
+ export interface DomainGetGlueRequest {
641
+ domain: string;
642
+ }
643
+ export declare const DomainGetGlueRequest: S.Schema<DomainGetGlueRequest>;
644
+ /** Two-element array: [0] full hostname string, [1] IP addresses object */
645
+ export type DomainGetGlueResponseHostsItemList = Array<unknown>;
646
+ export declare const DomainGetGlueResponseHostsItemList: S.Schema<DomainGetGlueResponseHostsItemList>;
647
+ /** Array of [hostname, ipAddresses] tuples. Each element is a two-item array: index 0 is the full hostname (string), index 1 is an object with `v4` (array of IPv4 strings) and `v6` (array of IPv6 strings). Example: `["ns1.example.com", {"v4": ["1.2.3.4"], "v6": []}]` */
648
+ export type DomainGetGlueResponseHostsList = Array<DomainGetGlueResponseHostsItemList>;
649
+ export declare const DomainGetGlueResponseHostsList: S.Schema<DomainGetGlueResponseHostsList>;
650
+ export interface DomainGetGlueResponse {
651
+ status?: string;
652
+ /** Array of [hostname, ipAddresses] tuples. Each element is a two-item array: index 0 is the full hostname (string), index 1 is an object with `v4` (array of IPv4 strings) and `v6` (array of IPv6 strings). Example: `["ns1.example.com", {"v4": ["1.2.3.4"], "v6": []}]` */
653
+ hosts?: DomainGetGlueResponseHostsList;
654
+ }
655
+ export declare const DomainGetGlueResponse: S.Schema<DomainGetGlueResponse>;
656
+ export interface DomainGetNsRequest {
657
+ domain: string;
658
+ }
659
+ export declare const DomainGetNsRequest: S.Schema<DomainGetNsRequest>;
660
+ export type DomainGetNsResponseNsList = Array<string>;
661
+ export declare const DomainGetNsResponseNsList: S.Schema<DomainGetNsResponseNsList>;
662
+ export interface DomainGetNsResponse {
663
+ status?: string;
664
+ ns?: DomainGetNsResponseNsList;
665
+ }
666
+ export declare const DomainGetNsResponse: S.Schema<DomainGetNsResponse>;
667
+ export interface DomainGetRegistrationRequirementsRequest {
668
+ /** TLD without a leading dot, e.g. `com`, `us`, `ca`. */
669
+ tld: string;
670
+ }
671
+ export declare const DomainGetRegistrationRequirementsRequest: S.Schema<DomainGetRegistrationRequirementsRequest>;
672
+ export interface DomainGetRegistrationRequirementsResponse {
673
+ status?: string;
674
+ tld?: string;
675
+ /** Whether this TLD can be registered via the API. False for TLDs with registry eligibility requirements the API cannot submit (register those on the website). */
676
+ apiRegisterable?: boolean;
677
+ /** Fixed registration term the API uses for this TLD. */
678
+ registrationDurationYears?: number;
679
+ /** Maximum years the registry allows, or null if unspecified. */
680
+ maxRegistrationYears?: number | null;
681
+ whoisPrivacySupported?: boolean;
682
+ requiresValidatedAddress?: boolean;
683
+ /** TLD uses only the registrant contact (no admin/tech/billing). */
684
+ registrantOnly?: boolean;
685
+ /** JSON Schema (Draft 2020-12) for the /domain/create request body this TLD accepts (cost, agreeToTerms, whoisPrivacy, credentials), including the fixed registration term. */
686
+ requestSchema?: unknown;
687
+ /** JSON Schema of extra registry/eligibility fields the TLD requires (e.g. .us purpose+category, .ca legal type) with enums and human labels, plus an x-policyNote. Null when the TLD has no structured extra data. These fields are documented for eligibility; they are not accepted by /domain/create today. */
688
+ registryRequirements?: unknown | null;
689
+ /** Present only when apiRegisterable is false. */
690
+ notApiRegisterableReason?: string;
691
+ }
692
+ export declare const DomainGetRegistrationRequirementsResponse: S.Schema<DomainGetRegistrationRequirementsResponse>;
693
+ export interface DomainGetUrlForwardingRequest {
694
+ domain: string;
695
+ }
696
+ export declare const DomainGetUrlForwardingRequest: S.Schema<DomainGetUrlForwardingRequest>;
697
+ /** Redirect kind: 'permanent' (HTTP 301), 'temporary' (HTTP 302 or 307), or 'masked' (URL masking). Use `redirectType` for the exact code. */
698
+ export type GetUrlForwardingResponseForwardsItemType = "permanent" | "temporary" | "masked";
699
+ export declare const GetUrlForwardingResponseForwardsItemType: any;
700
+ /** The exact stored redirect type. Distinguishes 302 from 307 (both report as 'temporary' in `type`); round-trips directly into addUrlForward's `redirectType`. */
701
+ export type GetUrlForwardingResponseForwardsItemRedirectType = "301" | "302" | "307" | "masked";
702
+ export declare const GetUrlForwardingResponseForwardsItemRedirectType: any;
703
+ export type GetUrlForwardingResponseForwardsItemIncludePath = "yes" | "no";
704
+ export declare const GetUrlForwardingResponseForwardsItemIncludePath: any;
705
+ export type GetUrlForwardingResponseForwardsItemWildcard = "yes" | "no";
706
+ export declare const GetUrlForwardingResponseForwardsItemWildcard: any;
707
+ export interface GetUrlForwardingResponseForwardsItem {
708
+ /** Numeric record ID */
709
+ id?: string;
710
+ /** Subdomain portion (empty string for root) */
711
+ subdomain?: string;
712
+ location?: string;
713
+ /** Redirect kind: 'permanent' (HTTP 301), 'temporary' (HTTP 302 or 307), or 'masked' (URL masking). Use `redirectType` for the exact code. */
714
+ type?: GetUrlForwardingResponseForwardsItemType;
715
+ /** The exact stored redirect type. Distinguishes 302 from 307 (both report as 'temporary' in `type`); round-trips directly into addUrlForward's `redirectType`. */
716
+ redirectType?: GetUrlForwardingResponseForwardsItemRedirectType;
717
+ includePath?: GetUrlForwardingResponseForwardsItemIncludePath;
718
+ wildcard?: GetUrlForwardingResponseForwardsItemWildcard;
719
+ }
720
+ export declare const GetUrlForwardingResponseForwardsItem: S.Schema<GetUrlForwardingResponseForwardsItem>;
721
+ export type GetUrlForwardingResponseForwardsList = Array<GetUrlForwardingResponseForwardsItem>;
722
+ export declare const GetUrlForwardingResponseForwardsList: S.Schema<GetUrlForwardingResponseForwardsList>;
723
+ export interface GetUrlForwardingResponse {
724
+ status: string;
725
+ forwards: GetUrlForwardingResponseForwardsList;
726
+ }
727
+ export declare const GetUrlForwardingResponse: S.Schema<GetUrlForwardingResponse>;
728
+ /** Auto-renew status to set */
729
+ export type DomainUpdateAutoRenewRequestStatus = "on" | "off";
730
+ export declare const DomainUpdateAutoRenewRequestStatus: any;
731
+ /** Array of additional domain names to update. Combined with the domain in the URL path if provided. */
732
+ export type DomainUpdateAutoRenewRequestDomainsList = Array<string>;
733
+ export declare const DomainUpdateAutoRenewRequestDomainsList: S.Schema<DomainUpdateAutoRenewRequestDomainsList>;
734
+ export interface DomainUpdateAutoRenewRequest {
735
+ /** Optional single domain in URL. Omit or use `/domain/updateAutoRenew/` (without trailing domain) when using the `domains` body array instead. */
736
+ domain: string;
737
+ /** Auto-renew status to set */
738
+ status: DomainUpdateAutoRenewRequestStatus | (string & {});
739
+ /** Array of additional domain names to update. Combined with the domain in the URL path if provided. */
740
+ domains?: DomainUpdateAutoRenewRequestDomainsList;
741
+ }
742
+ export declare const DomainUpdateAutoRenewRequest: S.Schema<DomainUpdateAutoRenewRequest>;
743
+ export interface DomainUpdateAutoRenewResponseResultsValue {
744
+ status?: string;
745
+ message?: string;
746
+ }
747
+ export declare const DomainUpdateAutoRenewResponseResultsValue: S.Schema<DomainUpdateAutoRenewResponseResultsValue>;
748
+ /** Object keyed by domain name */
749
+ export type DomainUpdateAutoRenewResponseResultsMap = {
750
+ [key: string]: DomainUpdateAutoRenewResponseResultsValue | undefined;
751
+ };
752
+ export declare const DomainUpdateAutoRenewResponseResultsMap: S.Schema<DomainUpdateAutoRenewResponseResultsMap>;
753
+ export interface DomainUpdateAutoRenewResponse {
754
+ status?: string;
755
+ /** Object keyed by domain name */
756
+ results?: DomainUpdateAutoRenewResponseResultsMap;
757
+ }
758
+ export declare const DomainUpdateAutoRenewResponse: S.Schema<DomainUpdateAutoRenewResponse>;
759
+ /** Any subset of roles to change; unspecified roles are left as-is. */
760
+ export type DomainUpdateContactsRequestContacts = DomainGetContactsResponseContacts;
761
+ export declare const DomainUpdateContactsRequestContacts: S.Schema<DomainGetContactsResponseContacts>;
762
+ /** Only for a registrant change on an address-validated TLD after an ADDRESS_VALIDATION_REQUIRED response. 'accept_suggestion' saves the standardized suggestedAddress; 'use_as_entered' keeps the submitted address (rejected if a real correction was offered). */
763
+ export type DomainUpdateContactsRequestAddressValidationChoice = "accept_suggestion" | "use_as_entered";
764
+ export declare const DomainUpdateContactsRequestAddressValidationChoice: any;
765
+ export interface DomainUpdateContactsRequest {
766
+ domain: string;
767
+ /** Any subset of roles to change; unspecified roles are left as-is. */
768
+ contacts?: DomainGetContactsResponseContacts;
769
+ /** A single contact applied to all four roles. Use this OR `contacts`, not both. */
770
+ contact?: DomainContact;
771
+ /** Validate and report wouldSucceed without applying the change. */
772
+ dryRun?: boolean;
773
+ /** Only for a registrant change on an address-validated TLD after an ADDRESS_VALIDATION_REQUIRED response. 'accept_suggestion' saves the standardized suggestedAddress; 'use_as_entered' keeps the submitted address (rejected if a real correction was offered). */
774
+ addressValidationChoice?: DomainUpdateContactsRequestAddressValidationChoice | (string & {});
775
+ }
776
+ export declare const DomainUpdateContactsRequest: S.Schema<DomainUpdateContactsRequest>;
777
+ export interface DomainUpdateContactsResponse {
778
+ status?: string;
779
+ message?: string;
780
+ registrantChanged?: boolean;
781
+ }
782
+ export declare const DomainUpdateContactsResponse: S.Schema<DomainUpdateContactsResponse>;
783
+ /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
784
+ export type DomainUpdateGlueRequestIpsList = Array<string>;
785
+ export declare const DomainUpdateGlueRequestIpsList: S.Schema<DomainUpdateGlueRequestIpsList>;
786
+ export interface DomainUpdateGlueRequest {
787
+ domain: string;
788
+ subdomain: string;
789
+ /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
790
+ ips: DomainUpdateGlueRequestIpsList;
791
+ }
792
+ export declare const DomainUpdateGlueRequest: S.Schema<DomainUpdateGlueRequest>;
793
+ /** Ordered array of nameserver hostnames */
794
+ export type DomainUpdateNsRequestNsList = Array<string>;
795
+ export declare const DomainUpdateNsRequestNsList: S.Schema<DomainUpdateNsRequestNsList>;
796
+ export interface DomainUpdateNsRequest {
797
+ domain: string;
798
+ /** Ordered array of nameserver hostnames */
799
+ ns: DomainUpdateNsRequestNsList;
800
+ }
801
+ export declare const DomainUpdateNsRequest: S.Schema<DomainUpdateNsRequest>;
802
+ /** DNS record type */
803
+ export type EditDnsRequestType = "A" | "AAAA" | "MX" | "CNAME" | "ALIAS" | "TXT" | "NS" | "SRV" | "TLSA" | "CAA" | "SSHFP" | "HTTPS" | "SVCB";
804
+ export declare const EditDnsRequestType: any;
805
+ export interface EditDnsRequest {
806
+ domain: string;
807
+ /** Numeric DNS record ID */
808
+ id: string;
809
+ /** Subdomain for the record. Do not include the domain name itself. */
810
+ name?: string;
811
+ /** DNS record type */
812
+ type: EditDnsRequestType | (string & {});
813
+ /** The record value */
814
+ content: string;
815
+ /** Time to live in seconds (optional) */
816
+ ttl?: number;
817
+ /** Priority for MX/SRV records (optional) */
818
+ prio?: number;
819
+ /** Notes (optional). Pass empty string to clear notes; omit or pass null to leave unchanged. */
820
+ notes?: string;
821
+ }
822
+ export declare const EditDnsRequest: S.Schema<EditDnsRequest>;
823
+ export interface EmailSetPasswordRequest {
824
+ /** The full email address (e.g. user@example.com) */
825
+ emailAddress: string;
826
+ /** The new password. Must pass Porkbun password validation rules. */
827
+ password: string | Redacted.Redacted<string>;
828
+ }
829
+ export declare const EmailSetPasswordRequest: S.Schema<EmailSetPasswordRequest>;
830
+ export interface GetAccountInviteStatusRequest {
831
+ /** The `inviteToken` returned by `/account/invite` */
832
+ token: string;
833
+ }
834
+ export declare const GetAccountInviteStatusRequest: S.Schema<GetAccountInviteStatusRequest>;
835
+ /** Current state of the invite */
836
+ export type GetAccountInviteStatusResponseInviteStatus = "PENDING" | "ACCEPTED" | "EXPIRED";
837
+ export declare const GetAccountInviteStatusResponseInviteStatus: any;
838
+ export interface GetAccountInviteStatusResponse {
839
+ status: string;
840
+ /** Current state of the invite */
841
+ inviteStatus: GetAccountInviteStatusResponseInviteStatus;
842
+ /** ID of the newly created account. Present only when `inviteStatus` is `ACCEPTED`. */
843
+ newAccountId?: number;
844
+ }
845
+ export declare const GetAccountInviteStatusResponse: S.Schema<GetAccountInviteStatusResponse>;
846
+ export interface GetApikeyRequest {
847
+ /** The token returned by /apikey/request. Must be a 64-character lowercase hex string. */
848
+ requestToken: string;
849
+ /** PKCE verifier (RFC 7636). Required only when the request was created with a codeChallenge. The high-entropy secret whose base64url(SHA-256(codeVerifier)) equals that challenge. When it matches, this response includes the secret key (secretapikey) once. */
850
+ codeVerifier?: string;
851
+ }
852
+ export declare const GetApikeyRequest: S.Schema<GetApikeyRequest>;
853
+ export type GetApikeyResponseStatus = "SUCCESS" | "PENDING" | "ERROR";
854
+ export declare const GetApikeyResponseStatus: any;
855
+ export interface GetApikeyResponse {
856
+ status?: GetApikeyResponseStatus;
857
+ /** The approved public API key. Present only when status is SUCCESS. */
858
+ apikey?: string | Redacted.Redacted<string>;
859
+ /** The secret API key. Returned ONLY for a PKCE request, exactly once, on the retrieve that presents a valid codeVerifier. Never returned for legacy requests, and never again after the first successful claim (later calls return apikey only, with code SECRET_ALREADY_CLAIMED). Store it immediately. */
860
+ secretapikey?: string;
861
+ message?: string;
862
+ /** Machine-readable error code. Present when status is ERROR. */
863
+ code?: string;
864
+ }
865
+ export declare const GetApikeyResponse: S.Schema<GetApikeyResponse>;
866
+ export interface GetApiSettingsRequest {
867
+ }
868
+ export declare const GetApiSettingsRequest: S.Schema<GetApiSettingsRequest>;
869
+ export type ApiSettingsResponseStatus = "SUCCESS" | "ERROR";
870
+ export declare const ApiSettingsResponseStatus: any;
871
+ export interface ApiSettingsResponseSettings {
872
+ /** Maximum API spend per calendar month in cents. `null` means no limit. */
873
+ monthlySpendLimit?: number | null;
874
+ /** Send an alert email when balance drops below this amount (cents). `null` = disabled. */
875
+ lowBalanceAlert?: number | null;
876
+ /** Whether automatic balance top-up is enabled. */
877
+ autoTopup?: boolean;
878
+ /** Trigger auto top-up when balance falls below this amount (cents). `null` = disabled. */
879
+ topupThreshold?: number | null;
880
+ /** Amount to add during an auto top-up (cents). */
881
+ topupAmount?: number | null;
882
+ }
883
+ export declare const ApiSettingsResponseSettings: S.Schema<ApiSettingsResponseSettings>;
884
+ export interface ApiSettingsResponse {
885
+ status?: ApiSettingsResponseStatus;
886
+ settings?: ApiSettingsResponseSettings;
887
+ /** Total API spend in the current calendar month, in cents. */
888
+ monthlySpend?: number;
889
+ }
890
+ export declare const ApiSettingsResponse: S.Schema<ApiSettingsResponse>;
891
+ export interface GetBalanceRequest {
892
+ }
893
+ export declare const GetBalanceRequest: S.Schema<GetBalanceRequest>;
894
+ export type BalanceResponseStatus = "SUCCESS" | "ERROR";
895
+ export declare const BalanceResponseStatus: any;
896
+ export interface BalanceResponse {
897
+ status?: BalanceResponseStatus;
898
+ /** Available account credit balance in cents. */
899
+ balance?: number;
900
+ /** Human-readable balance string (e.g. `$12.34`). */
901
+ display?: string;
902
+ }
903
+ export declare const BalanceResponse: S.Schema<BalanceResponse>;
904
+ export interface GetDnsRequest {
905
+ domain: string;
906
+ }
907
+ export declare const GetDnsRequest: S.Schema<GetDnsRequest>;
908
+ export interface GetDnsRecordByIdRequest {
909
+ domain: string;
910
+ /** Numeric DNS record ID */
911
+ id: string;
912
+ }
913
+ export declare const GetDnsRecordByIdRequest: S.Schema<GetDnsRecordByIdRequest>;
914
+ export interface GetDnsRecordsRequest {
915
+ domain: string;
916
+ }
917
+ export declare const GetDnsRecordsRequest: S.Schema<GetDnsRecordsRequest>;
918
+ export interface GetDnsRecordsByNameTypeRequest {
919
+ domain: string;
920
+ /** DNS record type (A, AAAA, CNAME, MX, TXT, etc.) */
921
+ type: string;
922
+ /** Subdomain portion only. Omit or leave empty for root domain records. */
923
+ subdomain: string;
924
+ }
925
+ export declare const GetDnsRecordsByNameTypeRequest: S.Schema<GetDnsRecordsByNameTypeRequest>;
926
+ export interface GetDnssecRecordsRequest {
927
+ domain: string;
928
+ }
929
+ export declare const GetDnssecRecordsRequest: S.Schema<GetDnssecRecordsRequest>;
930
+ export type GetDnssecRecordsResponseRecordsValue = DnsGetDnssecRecordsResponseRecordsValue;
931
+ export declare const GetDnssecRecordsResponseRecordsValue: S.Schema<DnsGetDnssecRecordsResponseRecordsValue>;
932
+ /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
933
+ export type GetDnssecRecordsResponseRecordsMap = {
934
+ [key: string]: DnsGetDnssecRecordsResponseRecordsValue | undefined;
935
+ };
936
+ export declare const GetDnssecRecordsResponseRecordsMap: S.Schema<GetDnssecRecordsResponseRecordsMap>;
937
+ export interface GetDnssecRecordsResponse {
938
+ status?: string;
939
+ /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
940
+ records?: GetDnssecRecordsResponseRecordsMap;
941
+ }
942
+ export declare const GetDnssecRecordsResponse: S.Schema<GetDnssecRecordsResponse>;
943
+ export type GetDomainRequestIncludeLabels = "yes" | "no";
944
+ export declare const GetDomainRequestIncludeLabels: any;
945
+ export interface GetDomainRequest {
946
+ /** Fully qualified domain name in the authenticated account. */
947
+ domain: string;
948
+ /** Return label metadata. Defaults to no. */
949
+ includeLabels?: GetDomainRequestIncludeLabels | (string & {});
950
+ }
951
+ export declare const GetDomainRequest: S.Schema<GetDomainRequest>;
952
+ export interface GetDomainResponseDomain {
953
+ domain?: string;
954
+ status?: string;
955
+ tld?: string;
956
+ createDate?: string;
957
+ expireDate?: string;
958
+ securityLock?: number;
959
+ whoisPrivacy?: number;
960
+ autoRenew?: number;
961
+ apiAccess?: number;
962
+ notLocal?: number;
963
+ }
964
+ export declare const GetDomainResponseDomain: S.Schema<GetDomainResponseDomain>;
965
+ export interface GetDomainResponse {
966
+ status?: string;
967
+ domain?: GetDomainResponseDomain;
968
+ }
969
+ export declare const GetDomainResponse: S.Schema<GetDomainResponse>;
970
+ export interface GetDomainGlueRequest {
971
+ domain: string;
972
+ }
973
+ export declare const GetDomainGlueRequest: S.Schema<GetDomainGlueRequest>;
974
+ /** Two-element array: [0] full hostname string, [1] IP addresses object */
975
+ export type GetDomainGlueResponseHostsItemList = Array<unknown>;
976
+ export declare const GetDomainGlueResponseHostsItemList: S.Schema<GetDomainGlueResponseHostsItemList>;
977
+ /** Array of [hostname, ipAddresses] tuples. Each element is a two-item array: index 0 is the full hostname (string), index 1 is an object with `v4` (array of IPv4 strings) and `v6` (array of IPv6 strings). Example: `["ns1.example.com", {"v4": ["1.2.3.4"], "v6": []}]` */
978
+ export type GetDomainGlueResponseHostsList = Array<GetDomainGlueResponseHostsItemList>;
979
+ export declare const GetDomainGlueResponseHostsList: S.Schema<GetDomainGlueResponseHostsList>;
980
+ export interface GetDomainGlueResponse {
981
+ status?: string;
982
+ /** Array of [hostname, ipAddresses] tuples. Each element is a two-item array: index 0 is the full hostname (string), index 1 is an object with `v4` (array of IPv4 strings) and `v6` (array of IPv6 strings). Example: `["ns1.example.com", {"v4": ["1.2.3.4"], "v6": []}]` */
983
+ hosts?: GetDomainGlueResponseHostsList;
984
+ }
985
+ export declare const GetDomainGlueResponse: S.Schema<GetDomainGlueResponse>;
986
+ export interface GetDomainNsRequest {
987
+ domain: string;
988
+ }
989
+ export declare const GetDomainNsRequest: S.Schema<GetDomainNsRequest>;
990
+ export type GetDomainNsResponseNsList = Array<string>;
991
+ export declare const GetDomainNsResponseNsList: S.Schema<GetDomainNsResponseNsList>;
992
+ export interface GetDomainNsResponse {
993
+ status?: string;
994
+ ns?: GetDomainNsResponseNsList;
995
+ }
996
+ export declare const GetDomainNsResponse: S.Schema<GetDomainNsResponse>;
997
+ export type GetDomainsRequestIncludeLabels = "yes" | "no";
998
+ export declare const GetDomainsRequestIncludeLabels: any;
999
+ export type GetDomainsRequestTldsList = Array<string>;
1000
+ export declare const GetDomainsRequestTldsList: S.Schema<GetDomainsRequestTldsList>;
1001
+ export type GetDomainsRequestAutoRenew = "yes" | "no";
1002
+ export declare const GetDomainsRequestAutoRenew: any;
1003
+ export type GetDomainsRequestApiAccess = "yes" | "no";
1004
+ export declare const GetDomainsRequestApiAccess: any;
1005
+ export type GetDomainsRequestSortName = "domain" | "tld" | "create_date" | "expire_date";
1006
+ export declare const GetDomainsRequestSortName: any;
1007
+ export type GetDomainsRequestSortDirection = "asc" | "desc";
1008
+ export declare const GetDomainsRequestSortDirection: any;
1009
+ export interface GetDomainsRequest {
1010
+ /** Zero-based offset for pagination. Returns up to 1000 domains per call. */
1011
+ start?: number;
1012
+ /** Return label metadata for each domain. Defaults to no. */
1013
+ includeLabels?: GetDomainsRequestIncludeLabels | (string & {});
1014
+ /** Exact domain name match. Returns 0 or 1 result. */
1015
+ domain?: string;
1016
+ /** Substring match against the full domain name. Case-insensitive. */
1017
+ nameContains?: string;
1018
+ /** Filter to domains expiring within this many days. */
1019
+ expiringWithinDays?: number;
1020
+ /** Limit to these TLDs (no leading dot). Use bracket form: `?tlds[]=com&tlds[]=io`. */
1021
+ tlds?: GetDomainsRequestTldsList;
1022
+ /** Filter to domains with auto-renew on or off. */
1023
+ autoRenew?: GetDomainsRequestAutoRenew | (string & {});
1024
+ /** Filter to domains opted in to API access. */
1025
+ apiAccess?: GetDomainsRequestApiAccess | (string & {});
1026
+ /** Field to sort by. Default: `expire_date` ascending. */
1027
+ sortName?: GetDomainsRequestSortName | (string & {});
1028
+ /** Sort direction. Default: asc. */
1029
+ sortDirection?: GetDomainsRequestSortDirection | (string & {});
1030
+ }
1031
+ export declare const GetDomainsRequest: S.Schema<GetDomainsRequest>;
1032
+ export interface DomainListAllResponseDomainsItemLabelsItem {
1033
+ id?: string;
1034
+ title?: string;
1035
+ color?: string;
1036
+ }
1037
+ export declare const DomainListAllResponseDomainsItemLabelsItem: S.Schema<DomainListAllResponseDomainsItemLabelsItem>;
1038
+ /** Only present when includeLabels=yes */
1039
+ export type DomainListAllResponseDomainsItemLabelsList = Array<DomainListAllResponseDomainsItemLabelsItem>;
1040
+ export declare const DomainListAllResponseDomainsItemLabelsList: S.Schema<DomainListAllResponseDomainsItemLabelsList>;
1041
+ export interface DomainListAllResponseDomainsItem {
1042
+ domain?: string;
1043
+ /** Domain registration status (e.g. ACTIVE) */
1044
+ status?: string;
1045
+ tld?: string;
1046
+ createDate?: string;
1047
+ expireDate?: string;
1048
+ /** 1 if transfer lock is enabled, 0 otherwise */
1049
+ securityLock?: number;
1050
+ /** 1 if WHOIS privacy is enabled, 0 otherwise */
1051
+ whoisPrivacy?: number;
1052
+ /** 1 if auto-renew is enabled, 0 otherwise */
1053
+ autoRenew?: number;
1054
+ /** 1 if the domain is opted in to API access, 0 otherwise. Per-domain API access can be toggled at porkbun.com/account or globally via the `Opt In All Domains` setting. */
1055
+ apiAccess?: number;
1056
+ /** 1 if the domain is externally managed (not authoritative), 0 otherwise */
1057
+ notLocal?: number;
1058
+ /** Only present when includeLabels=yes */
1059
+ labels?: DomainListAllResponseDomainsItemLabelsList;
1060
+ }
1061
+ export declare const DomainListAllResponseDomainsItem: S.Schema<DomainListAllResponseDomainsItem>;
1062
+ export type DomainListAllResponseDomainsList = Array<DomainListAllResponseDomainsItem>;
1063
+ export declare const DomainListAllResponseDomainsList: S.Schema<DomainListAllResponseDomainsList>;
1064
+ export interface DomainListAllResponse {
1065
+ status: string;
1066
+ /** Number of domains returned in this page. */
1067
+ count?: number;
1068
+ domains: DomainListAllResponseDomainsList;
1069
+ }
1070
+ export declare const DomainListAllResponse: S.Schema<DomainListAllResponse>;
1071
+ export interface GetDomainUrlForwardingRequest {
1072
+ domain: string;
1073
+ }
1074
+ export declare const GetDomainUrlForwardingRequest: S.Schema<GetDomainUrlForwardingRequest>;
1075
+ export interface GetHostingRequest {
1076
+ domain: string;
1077
+ }
1078
+ export declare const GetHostingRequest: S.Schema<GetHostingRequest>;
1079
+ export interface GetHostingResponseHosting {
1080
+ domain?: string;
1081
+ product?: string;
1082
+ status?: string;
1083
+ plan?: string;
1084
+ server?: string;
1085
+ isTrial?: boolean;
1086
+ autoRenew?: boolean;
1087
+ expireDate?: string;
1088
+ /** True when a deprovision (retire) is queued/underway. Poll this endpoint until hosting is null for teardown completion. */
1089
+ pendingRetire?: boolean;
1090
+ cost?: unknown;
1091
+ }
1092
+ export declare const GetHostingResponseHosting: S.Schema<GetHostingResponseHosting>;
1093
+ export interface GetHostingResponse {
1094
+ status?: string;
1095
+ hosting?: GetHostingResponseHosting | null;
1096
+ }
1097
+ export declare const GetHostingResponse: S.Schema<GetHostingResponse>;
1098
+ export interface GetIpRequest {
1099
+ }
1100
+ export declare const GetIpRequest: S.Schema<GetIpRequest>;
1101
+ export interface IpResponse {
1102
+ status: string;
1103
+ /** The caller's public IP address */
1104
+ yourIp: string;
1105
+ /** Raw value of the X-Forwarded-For header */
1106
+ xForwardedFor?: string;
1107
+ }
1108
+ export declare const IpResponse: S.Schema<IpResponse>;
1109
+ export interface GetPingRequest {
1110
+ }
1111
+ export declare const GetPingRequest: S.Schema<GetPingRequest>;
1112
+ export interface GetPingResponse {
1113
+ status: string;
1114
+ /** The caller's public IP address */
1115
+ yourIp: string;
1116
+ /** Raw value of the X-Forwarded-For header */
1117
+ xForwardedFor?: string;
1118
+ /** Present and true when valid credentials were supplied */
1119
+ credentialsValid?: boolean;
1120
+ }
1121
+ export declare const GetPingResponse: S.Schema<GetPingResponse>;
1122
+ /** Optional array of TLDs to filter results. If omitted, all supported TLDs are returned. */
1123
+ export type GetPricingRequestTldsList = Array<string>;
1124
+ export declare const GetPricingRequestTldsList: S.Schema<GetPricingRequestTldsList>;
1125
+ export interface GetPricingRequest {
1126
+ /** Optional array of TLDs to filter results. If omitted, all supported TLDs are returned. */
1127
+ tlds?: GetPricingRequestTldsList;
1128
+ }
1129
+ export declare const GetPricingRequest: S.Schema<GetPricingRequest>;
1130
+ export type GetPricingResponsePricingValueCouponsValueFirstYearOnly = "yes" | "no";
1131
+ export declare const GetPricingResponsePricingValueCouponsValueFirstYearOnly: any;
1132
+ export interface GetPricingResponsePricingValueCouponsValue {
1133
+ code?: string;
1134
+ max_per_user?: number;
1135
+ first_year_only?: GetPricingResponsePricingValueCouponsValueFirstYearOnly;
1136
+ type?: string;
1137
+ amount?: number;
1138
+ }
1139
+ export declare const GetPricingResponsePricingValueCouponsValue: S.Schema<GetPricingResponsePricingValueCouponsValue>;
1140
+ /** Active coupon codes for this TLD, keyed by product type */
1141
+ export type GetPricingResponsePricingValueCouponsMap = {
1142
+ [key: string]: GetPricingResponsePricingValueCouponsValue | undefined;
1143
+ };
1144
+ export declare const GetPricingResponsePricingValueCouponsMap: S.Schema<GetPricingResponsePricingValueCouponsMap>;
1145
+ export interface GetPricingResponsePricingValue {
1146
+ registration?: string;
1147
+ renewal?: string;
1148
+ transfer?: string;
1149
+ /** Present only for special TLDs (e.g. 'handshake') */
1150
+ specialType?: string;
1151
+ /** Active coupon codes for this TLD, keyed by product type */
1152
+ coupons?: GetPricingResponsePricingValueCouponsMap;
1153
+ }
1154
+ export declare const GetPricingResponsePricingValue: S.Schema<GetPricingResponsePricingValue>;
1155
+ /** Object keyed by TLD string */
1156
+ export type GetPricingResponsePricingMap = {
1157
+ [key: string]: GetPricingResponsePricingValue | undefined;
1158
+ };
1159
+ export declare const GetPricingResponsePricingMap: S.Schema<GetPricingResponsePricingMap>;
1160
+ export interface GetPricingResponse {
1161
+ status?: string;
1162
+ /** Object keyed by TLD string */
1163
+ pricing?: GetPricingResponsePricingMap;
1164
+ }
1165
+ export declare const GetPricingResponse: S.Schema<GetPricingResponse>;
1166
+ export interface GetPricingGetRequest {
1167
+ }
1168
+ export declare const GetPricingGetRequest: S.Schema<GetPricingGetRequest>;
1169
+ export type GetPricingGetResponsePricingValueCouponsValueFirstYearOnly = "yes" | "no";
1170
+ export declare const GetPricingGetResponsePricingValueCouponsValueFirstYearOnly: any;
1171
+ export interface GetPricingGetResponsePricingValueCouponsValue {
1172
+ code?: string;
1173
+ max_per_user?: number;
1174
+ first_year_only?: GetPricingGetResponsePricingValueCouponsValueFirstYearOnly;
1175
+ type?: string;
1176
+ amount?: number;
1177
+ }
1178
+ export declare const GetPricingGetResponsePricingValueCouponsValue: S.Schema<GetPricingGetResponsePricingValueCouponsValue>;
1179
+ /** Active coupon codes for this TLD, keyed by product type */
1180
+ export type GetPricingGetResponsePricingValueCouponsMap = {
1181
+ [key: string]: GetPricingGetResponsePricingValueCouponsValue | undefined;
1182
+ };
1183
+ export declare const GetPricingGetResponsePricingValueCouponsMap: S.Schema<GetPricingGetResponsePricingValueCouponsMap>;
1184
+ export interface GetPricingGetResponsePricingValue {
1185
+ registration?: string;
1186
+ renewal?: string;
1187
+ transfer?: string;
1188
+ /** Present only for special TLDs (e.g. 'handshake') */
1189
+ specialType?: string;
1190
+ /** Active coupon codes for this TLD, keyed by product type */
1191
+ coupons?: GetPricingGetResponsePricingValueCouponsMap;
1192
+ }
1193
+ export declare const GetPricingGetResponsePricingValue: S.Schema<GetPricingGetResponsePricingValue>;
1194
+ /** Object keyed by TLD string */
1195
+ export type GetPricingGetResponsePricingMap = {
1196
+ [key: string]: GetPricingGetResponsePricingValue | undefined;
1197
+ };
1198
+ export declare const GetPricingGetResponsePricingMap: S.Schema<GetPricingGetResponsePricingMap>;
1199
+ export interface GetPricingGetResponse {
1200
+ status?: string;
1201
+ /** Object keyed by TLD string */
1202
+ pricing?: GetPricingGetResponsePricingMap;
1203
+ }
1204
+ export declare const GetPricingGetResponse: S.Schema<GetPricingGetResponse>;
1205
+ export interface GetSslRequest {
1206
+ domain: string;
1207
+ }
1208
+ export declare const GetSslRequest: S.Schema<GetSslRequest>;
1209
+ export interface GetSslResponse {
1210
+ status?: string;
1211
+ /** The full PEM-encoded certificate chain (certificate + intermediates) */
1212
+ certificatechain?: string;
1213
+ /** The PEM-encoded private key */
1214
+ privatekey?: string | Redacted.Redacted<string>;
1215
+ /** The PEM-encoded public key */
1216
+ publickey?: string;
1217
+ }
1218
+ export declare const GetSslResponse: S.Schema<GetSslResponse>;
1219
+ export interface GetSslRetrieveRequest {
1220
+ domain: string;
1221
+ }
1222
+ export declare const GetSslRetrieveRequest: S.Schema<GetSslRetrieveRequest>;
1223
+ export interface GetSslRetrieveResponse {
1224
+ status?: string;
1225
+ /** The full PEM-encoded certificate chain (certificate + intermediates) */
1226
+ certificatechain?: string;
1227
+ /** The PEM-encoded private key */
1228
+ privatekey?: string | Redacted.Redacted<string>;
1229
+ /** The PEM-encoded public key */
1230
+ publickey?: string;
1231
+ }
1232
+ export declare const GetSslRetrieveResponse: S.Schema<GetSslRetrieveResponse>;
1233
+ export interface GetTransferGetRequest {
1234
+ /** The domain name (e.g. `example.com`). */
1235
+ domain: string;
1236
+ }
1237
+ export declare const GetTransferGetRequest: S.Schema<GetTransferGetRequest>;
1238
+ export type GetTransferResponseStatus = "SUCCESS" | "ERROR";
1239
+ export declare const GetTransferResponseStatus: any;
1240
+ export type GetTransferResponseTransferStatus = "NEW" | "PENDINGAUTH" | "PENDINGSUBMIT" | "PENDINGTRANSFER" | "DONE" | "CANCELED" | "INIT";
1241
+ export declare const GetTransferResponseTransferStatus: any;
1242
+ export interface GetTransferResponseTransfer {
1243
+ domain?: string;
1244
+ status?: GetTransferResponseTransferStatus;
1245
+ statusDescription?: string;
1246
+ transferDate?: string;
1247
+ orderId?: number;
1248
+ }
1249
+ export declare const GetTransferResponseTransfer: S.Schema<GetTransferResponseTransfer>;
1250
+ export interface GetTransferResponse {
1251
+ status?: GetTransferResponseStatus;
1252
+ transfer?: GetTransferResponseTransfer;
1253
+ }
1254
+ export declare const GetTransferResponse: S.Schema<GetTransferResponse>;
1255
+ export interface GetWebhookRequest {
1256
+ id: number;
1257
+ }
1258
+ export declare const GetWebhookRequest: S.Schema<GetWebhookRequest>;
1259
+ /** Least privilege by default. `editor` = content only (recommended for agents). `administrator` = full control incl. plugin install; requires acknowledgeFullAccess. */
1260
+ export type HostingCreateWpCredentialsRequestRole = "editor" | "administrator";
1261
+ export declare const HostingCreateWpCredentialsRequestRole: any;
1262
+ export interface HostingCreateWpCredentialsRequest {
1263
+ domain: string;
1264
+ /** Least privilege by default. `editor` = content only (recommended for agents). `administrator` = full control incl. plugin install; requires acknowledgeFullAccess. */
1265
+ role?: HostingCreateWpCredentialsRequestRole | (string & {});
1266
+ /** Required when role=administrator: confirms you understand the credential can run arbitrary code on the site. */
1267
+ acknowledgeFullAccess?: boolean;
1268
+ /** Label shown in wp-admin (sanitized to letters, digits and dashes). */
1269
+ name?: string;
1270
+ /** Validate without creating anything. */
1271
+ dryRun?: boolean;
1272
+ }
1273
+ export declare const HostingCreateWpCredentialsRequest: S.Schema<HostingCreateWpCredentialsRequest>;
1274
+ export interface HostingCreateWpCredentialsResponseCredentials {
1275
+ username?: string;
1276
+ applicationPassword?: string | Redacted.Redacted<string>;
1277
+ role?: string;
1278
+ name?: string;
1279
+ restUrl?: string;
1280
+ /** Ready-to-use HTTP Basic header value. */
1281
+ authorization?: string;
1282
+ }
1283
+ export declare const HostingCreateWpCredentialsResponseCredentials: S.Schema<HostingCreateWpCredentialsResponseCredentials>;
1284
+ export interface HostingCreateWpCredentialsResponse {
1285
+ status?: string;
1286
+ credentials?: HostingCreateWpCredentialsResponseCredentials;
1287
+ message?: string;
1288
+ }
1289
+ export declare const HostingCreateWpCredentialsResponse: S.Schema<HostingCreateWpCredentialsResponse>;
1290
+ export interface HostingDeleteFileRequest {
1291
+ domain: string;
1292
+ path: string;
1293
+ }
1294
+ export declare const HostingDeleteFileRequest: S.Schema<HostingDeleteFileRequest>;
1295
+ export interface HostingDeleteFileResponse {
1296
+ status?: string;
1297
+ deleted?: string;
1298
+ }
1299
+ export declare const HostingDeleteFileResponse: S.Schema<HostingDeleteFileResponse>;
1300
+ export interface HostingDeleteWpCredentialsRequest {
1301
+ domain: string;
1302
+ /** The application password uuid to revoke. */
1303
+ uuid?: string;
1304
+ /** Revoke every application password for the user. */
1305
+ all?: boolean;
1306
+ wpUser?: string;
1307
+ dryRun?: boolean;
1308
+ }
1309
+ export declare const HostingDeleteWpCredentialsRequest: S.Schema<HostingDeleteWpCredentialsRequest>;
1310
+ export interface HostingDeleteWpCredentialsResponse {
1311
+ status?: string;
1312
+ revoked?: string;
1313
+ message?: string;
1314
+ }
1315
+ export declare const HostingDeleteWpCredentialsResponse: S.Schema<HostingDeleteWpCredentialsResponse>;
1316
+ export interface HostingFilesRequest {
1317
+ domain: string;
1318
+ }
1319
+ export declare const HostingFilesRequest: S.Schema<HostingFilesRequest>;
1320
+ export type HostingFilesResponseFilesList = Array<string>;
1321
+ export declare const HostingFilesResponseFilesList: S.Schema<HostingFilesResponseFilesList>;
1322
+ export interface HostingFilesResponse {
1323
+ status?: string;
1324
+ path?: string;
1325
+ files?: HostingFilesResponseFilesList;
1326
+ }
1327
+ export declare const HostingFilesResponse: S.Schema<HostingFilesResponse>;
1328
+ export interface HostingGetWpCredentialsRequest {
1329
+ domain: string;
1330
+ wpUser?: string;
1331
+ }
1332
+ export declare const HostingGetWpCredentialsRequest: S.Schema<HostingGetWpCredentialsRequest>;
1333
+ export type HostingGetWpCredentialsResponseCredentialsList = Array<unknown>;
1334
+ export declare const HostingGetWpCredentialsResponseCredentialsList: S.Schema<HostingGetWpCredentialsResponseCredentialsList>;
1335
+ export interface HostingGetWpCredentialsResponse {
1336
+ status?: string;
1337
+ wpUser?: string;
1338
+ credentials?: HostingGetWpCredentialsResponseCredentialsList;
1339
+ }
1340
+ export declare const HostingGetWpCredentialsResponse: S.Schema<HostingGetWpCredentialsResponse>;
1341
+ export interface HostingMakeDirRequest {
1342
+ domain: string;
1343
+ path: string;
1344
+ }
1345
+ export declare const HostingMakeDirRequest: S.Schema<HostingMakeDirRequest>;
1346
+ export interface HostingMakeDirResponse {
1347
+ status?: string;
1348
+ created?: string;
1349
+ }
1350
+ export declare const HostingMakeDirResponse: S.Schema<HostingMakeDirResponse>;
1351
+ export interface HostingPlansRequest {
1352
+ }
1353
+ export declare const HostingPlansRequest: S.Schema<HostingPlansRequest>;
1354
+ export interface HostingPlansResponsePlansItem {
1355
+ product?: string;
1356
+ plan?: string;
1357
+ sku?: string;
1358
+ interval?: string;
1359
+ /** Price in cents; pass as acknowledgedCost to /hosting/create. */
1360
+ price?: number;
1361
+ priceFormatted?: string;
1362
+ trialDays?: number;
1363
+ name?: string;
1364
+ features?: unknown;
1365
+ }
1366
+ export declare const HostingPlansResponsePlansItem: S.Schema<HostingPlansResponsePlansItem>;
1367
+ export type HostingPlansResponsePlansList = Array<HostingPlansResponsePlansItem>;
1368
+ export declare const HostingPlansResponsePlansList: S.Schema<HostingPlansResponsePlansList>;
1369
+ export interface HostingPlansResponse {
1370
+ status?: string;
1371
+ plans?: HostingPlansResponsePlansList;
1372
+ }
1373
+ export declare const HostingPlansResponse: S.Schema<HostingPlansResponse>;
1374
+ /** Return label metadata for each domain. Defaults to no. */
1375
+ export type ListDomainsRequestIncludeLabels = "yes" | "no";
1376
+ export declare const ListDomainsRequestIncludeLabels: any;
1377
+ /** Limit to these TLDs (without leading dot). */
1378
+ export type ListDomainsRequestTldsList = Array<string>;
1379
+ export declare const ListDomainsRequestTldsList: S.Schema<ListDomainsRequestTldsList>;
1380
+ /** Filter to domains with auto-renew on or off. */
1381
+ export type ListDomainsRequestAutoRenew = "yes" | "no";
1382
+ export declare const ListDomainsRequestAutoRenew: any;
1383
+ /** Filter to domains opted in to API access (yes) or not (no). Useful for finding domains an API key can actually operate on. */
1384
+ export type ListDomainsRequestApiAccess = "yes" | "no";
1385
+ export declare const ListDomainsRequestApiAccess: any;
1386
+ /** Field to sort by. Default: `expire_date` ascending. */
1387
+ export type ListDomainsRequestSortName = "domain" | "tld" | "create_date" | "expire_date";
1388
+ export declare const ListDomainsRequestSortName: any;
1389
+ /** Sort direction. Default: asc. */
1390
+ export type ListDomainsRequestSortDirection = "asc" | "desc";
1391
+ export declare const ListDomainsRequestSortDirection: any;
1392
+ export interface ListDomainsRequest {
1393
+ /** Zero-based offset for pagination (default: 0). Returns up to 1000 domains per call. */
1394
+ start?: number;
1395
+ /** Return label metadata for each domain. Defaults to no. */
1396
+ includeLabels?: ListDomainsRequestIncludeLabels | (string & {});
1397
+ /** Exact domain name match. Returns 0 or 1 result. Useful as an alternative to `/domain/get/{domain}`. */
1398
+ domain?: string;
1399
+ /** Substring match against the full domain name. Case-insensitive. */
1400
+ nameContains?: string;
1401
+ /** Filter to domains expiring within this many days (relative to now). */
1402
+ expiringWithinDays?: number;
1403
+ /** Limit to these TLDs (without leading dot). */
1404
+ tlds?: ListDomainsRequestTldsList;
1405
+ /** Filter to domains with auto-renew on or off. */
1406
+ autoRenew?: ListDomainsRequestAutoRenew | (string & {});
1407
+ /** Filter to domains opted in to API access (yes) or not (no). Useful for finding domains an API key can actually operate on. */
1408
+ apiAccess?: ListDomainsRequestApiAccess | (string & {});
1409
+ /** Field to sort by. Default: `expire_date` ascending. */
1410
+ sortName?: ListDomainsRequestSortName | (string & {});
1411
+ /** Sort direction. Default: asc. */
1412
+ sortDirection?: ListDomainsRequestSortDirection | (string & {});
1413
+ }
1414
+ export declare const ListDomainsRequest: S.Schema<ListDomainsRequest>;
1415
+ /** Filter to listings under these TLDs (without the leading dot). */
1416
+ export type ListMarketplaceListingsRequestTldsList = Array<string>;
1417
+ export declare const ListMarketplaceListingsRequestTldsList: S.Schema<ListMarketplaceListingsRequestTldsList>;
1418
+ /** Field to sort filtered results by. Default `sld_length` ascending when `query` is set, otherwise `create_date` descending. */
1419
+ export type ListMarketplaceListingsRequestSortName = "domain" | "tld" | "price" | "sld_length";
1420
+ export declare const ListMarketplaceListingsRequestSortName: any;
1421
+ /** Sort direction. Defaults vary by `sortName`. */
1422
+ export type ListMarketplaceListingsRequestSortDirection = "asc" | "desc";
1423
+ export declare const ListMarketplaceListingsRequestSortDirection: any;
1424
+ export interface ListMarketplaceListingsRequest {
1425
+ /** Pagination offset (unfiltered mode only). Default 0. */
1426
+ start?: number;
1427
+ /** Number of domains to return (unfiltered mode only). Default 1000, max 5000. */
1428
+ limit?: number;
1429
+ /** Search string. Each space-separated term filters by SLD substring. Prefix a term with `-` to exclude it. */
1430
+ query?: string;
1431
+ /** Filter to listings under these TLDs (without the leading dot). */
1432
+ tlds?: ListMarketplaceListingsRequestTldsList;
1433
+ /** Filter to listings whose SLD has at least this many characters. */
1434
+ sldLengthMin?: number;
1435
+ /** Filter to listings whose SLD has at most this many characters. */
1436
+ sldLengthMax?: number;
1437
+ /** Field to sort filtered results by. Default `sld_length` ascending when `query` is set, otherwise `create_date` descending. */
1438
+ sortName?: ListMarketplaceListingsRequestSortName | (string & {});
1439
+ /** Sort direction. Defaults vary by `sortName`. */
1440
+ sortDirection?: ListMarketplaceListingsRequestSortDirection | (string & {});
1441
+ }
1442
+ export declare const ListMarketplaceListingsRequest: S.Schema<ListMarketplaceListingsRequest>;
1443
+ export interface ListMarketplaceListingsResponseDomainsItem {
1444
+ /** Date the listing was created */
1445
+ create_date?: string;
1446
+ domain?: string;
1447
+ tld?: string;
1448
+ /** Character length of the SLD (the part of the domain before the TLD) */
1449
+ sld_length?: number;
1450
+ /** Listing price in USD */
1451
+ price?: number;
1452
+ }
1453
+ export declare const ListMarketplaceListingsResponseDomainsItem: S.Schema<ListMarketplaceListingsResponseDomainsItem>;
1454
+ export type ListMarketplaceListingsResponseDomainsList = Array<ListMarketplaceListingsResponseDomainsItem>;
1455
+ export declare const ListMarketplaceListingsResponseDomainsList: S.Schema<ListMarketplaceListingsResponseDomainsList>;
1456
+ export interface ListMarketplaceListingsResponse {
1457
+ status?: string;
1458
+ /** Number of domains returned in this response */
1459
+ count?: number;
1460
+ /** True when one or more filter parameters were applied (query, tlds, sldLengthMin/Max, sortName). */
1461
+ filtered?: boolean;
1462
+ domains?: ListMarketplaceListingsResponseDomainsList;
1463
+ }
1464
+ export declare const ListMarketplaceListingsResponse: S.Schema<ListMarketplaceListingsResponse>;
1465
+ export type ListMarketplaceListingsGetRequestTldsList = Array<string>;
1466
+ export declare const ListMarketplaceListingsGetRequestTldsList: S.Schema<ListMarketplaceListingsGetRequestTldsList>;
1467
+ export type ListMarketplaceListingsGetRequestSortName = "domain" | "tld" | "price" | "sld_length";
1468
+ export declare const ListMarketplaceListingsGetRequestSortName: any;
1469
+ export type ListMarketplaceListingsGetRequestSortDirection = "asc" | "desc";
1470
+ export declare const ListMarketplaceListingsGetRequestSortDirection: any;
1471
+ export interface ListMarketplaceListingsGetRequest {
1472
+ /** SLD substring search. Multi-word; prefix a term with `-` to exclude. Example: `ai -test`. */
1473
+ query?: string;
1474
+ /** Filter to listings under these TLDs (without leading dot). Use bracket form: `?tlds[]=com&tlds[]=io`. */
1475
+ tlds?: ListMarketplaceListingsGetRequestTldsList;
1476
+ /** Minimum SLD character length. */
1477
+ sldLengthMin?: number;
1478
+ /** Maximum SLD character length. */
1479
+ sldLengthMax?: number;
1480
+ /** Field to sort filtered results by. */
1481
+ sortName?: ListMarketplaceListingsGetRequestSortName | (string & {});
1482
+ /** Sort direction. */
1483
+ sortDirection?: ListMarketplaceListingsGetRequestSortDirection | (string & {});
1484
+ /** Pagination offset (unfiltered mode only). */
1485
+ start?: number;
1486
+ /** Page size (unfiltered mode only). Default 1000, max 5000. */
1487
+ limit?: number;
1488
+ }
1489
+ export declare const ListMarketplaceListingsGetRequest: S.Schema<ListMarketplaceListingsGetRequest>;
1490
+ export interface ListMarketplaceListingsGetResponseDomainsItem {
1491
+ create_date?: string;
1492
+ domain?: string;
1493
+ tld?: string;
1494
+ sld_length?: number;
1495
+ price?: number;
1496
+ }
1497
+ export declare const ListMarketplaceListingsGetResponseDomainsItem: S.Schema<ListMarketplaceListingsGetResponseDomainsItem>;
1498
+ export type ListMarketplaceListingsGetResponseDomainsList = Array<ListMarketplaceListingsGetResponseDomainsItem>;
1499
+ export declare const ListMarketplaceListingsGetResponseDomainsList: S.Schema<ListMarketplaceListingsGetResponseDomainsList>;
1500
+ export interface ListMarketplaceListingsGetResponse {
1501
+ status?: string;
1502
+ count?: number;
1503
+ filtered?: boolean;
1504
+ domains?: ListMarketplaceListingsGetResponseDomainsList;
1505
+ }
1506
+ export declare const ListMarketplaceListingsGetResponse: S.Schema<ListMarketplaceListingsGetResponse>;
1507
+ export interface ListTransfersGetRequest {
1508
+ }
1509
+ export declare const ListTransfersGetRequest: S.Schema<ListTransfersGetRequest>;
1510
+ export type ListTransfersResponseStatus = "SUCCESS" | "ERROR";
1511
+ export declare const ListTransfersResponseStatus: any;
1512
+ export type ListTransfersResponseTransfersItemStatus = "NEW" | "PENDINGAUTH" | "PENDINGSUBMIT" | "PENDINGTRANSFER" | "DONE" | "CANCELED" | "INIT";
1513
+ export declare const ListTransfersResponseTransfersItemStatus: any;
1514
+ export interface ListTransfersResponseTransfersItem {
1515
+ domain?: string;
1516
+ status?: ListTransfersResponseTransfersItemStatus;
1517
+ statusDescription?: string;
1518
+ transferDate?: string;
1519
+ orderId?: number;
1520
+ }
1521
+ export declare const ListTransfersResponseTransfersItem: S.Schema<ListTransfersResponseTransfersItem>;
1522
+ export type ListTransfersResponseTransfersList = Array<ListTransfersResponseTransfersItem>;
1523
+ export declare const ListTransfersResponseTransfersList: S.Schema<ListTransfersResponseTransfersList>;
1524
+ export interface ListTransfersResponse {
1525
+ status?: ListTransfersResponseStatus;
1526
+ transfers?: ListTransfersResponseTransfersList;
1527
+ }
1528
+ export declare const ListTransfersResponse: S.Schema<ListTransfersResponse>;
1529
+ export interface ListWebhookRequest {
1530
+ }
1531
+ export declare const ListWebhookRequest: S.Schema<ListWebhookRequest>;
1532
+ export type WebhookListResponseEndpointsList = Array<WebhookEndpoint>;
1533
+ export declare const WebhookListResponseEndpointsList: S.Schema<WebhookListResponseEndpointsList>;
1534
+ export interface WebhookListResponse {
1535
+ status?: string;
1536
+ endpoints?: WebhookListResponseEndpointsList;
1537
+ }
1538
+ export declare const WebhookListResponse: S.Schema<WebhookListResponse>;
1539
+ export interface MockDirectoryRequest {
1540
+ }
1541
+ export declare const MockDirectoryRequest: S.Schema<MockDirectoryRequest>;
1542
+ export interface MockDirectoryResponseEndpointsItem {
1543
+ method?: string;
1544
+ path?: string;
1545
+ summary?: string;
1546
+ mockUrl?: string;
1547
+ }
1548
+ export declare const MockDirectoryResponseEndpointsItem: S.Schema<MockDirectoryResponseEndpointsItem>;
1549
+ export type MockDirectoryResponseEndpointsList = Array<MockDirectoryResponseEndpointsItem>;
1550
+ export declare const MockDirectoryResponseEndpointsList: S.Schema<MockDirectoryResponseEndpointsList>;
1551
+ export interface MockDirectoryResponse {
1552
+ status?: string;
1553
+ mock?: boolean;
1554
+ count?: number;
1555
+ endpoints?: MockDirectoryResponseEndpointsList;
1556
+ }
1557
+ export declare const MockDirectoryResponse: S.Schema<MockDirectoryResponse>;
1558
+ export type MockEndpointRequestStatus = "error";
1559
+ export declare const MockEndpointRequestStatus: any;
1560
+ export interface MockEndpointRequest {
1561
+ /** The real endpoint path to mock, e.g. `domain/listAll`. */
1562
+ path: string;
1563
+ /** Set to `error` to return the error-response shape. */
1564
+ status?: MockEndpointRequestStatus | (string & {});
1565
+ }
1566
+ export declare const MockEndpointRequest: S.Schema<MockEndpointRequest>;
1567
+ export type MockEndpointResponse = unknown;
1568
+ export declare const MockEndpointResponse: S.Schema<MockEndpointResponse>;
1569
+ export interface PingRequest {
1570
+ }
1571
+ export declare const PingRequest: S.Schema<PingRequest>;
1572
+ export interface PingResponse {
1573
+ status: string;
1574
+ /** The caller's public IP address */
1575
+ yourIp: string;
1576
+ /** Raw value of the X-Forwarded-For header */
1577
+ xForwardedFor?: string;
1578
+ /** Present and true when valid credentials were supplied */
1579
+ credentialsValid?: boolean;
1580
+ }
1581
+ export declare const PingResponse: S.Schema<PingResponse>;
1582
+ export interface PostIpRequest {
1583
+ }
1584
+ export declare const PostIpRequest: S.Schema<PostIpRequest>;
1585
+ export interface RenewDomainRequest {
1586
+ domain: string;
1587
+ /** The renewal cost in pennies (USD cents). Must exactly equal the total price for the domain at its minimum renewal duration. Obtain this from /domain/checkDomain first. */
1588
+ cost: number;
1589
+ /** Optional. When true, runs all pre-flight validation and returns a preview with `dryRun: true` and `wouldSucceed` WITHOUT renewing or charging. Nothing changes and the rate-limit budget is not consumed. */
1590
+ dryRun?: boolean;
1591
+ }
1592
+ export declare const RenewDomainRequest: S.Schema<RenewDomainRequest>;
1593
+ export type RenewDomainResponseLimitsAttempts = CreateDomainResponseLimitsAttempts;
1594
+ export declare const RenewDomainResponseLimitsAttempts: S.Schema<CreateDomainResponseLimitsAttempts>;
1595
+ export type RenewDomainResponseLimitsSuccess = CreateDomainResponseLimitsSuccess;
1596
+ export declare const RenewDomainResponseLimitsSuccess: S.Schema<CreateDomainResponseLimitsSuccess>;
1597
+ /** Current rate limit state for both attempt and success limits */
1598
+ export interface RenewDomainResponseLimits {
1599
+ attempts?: CreateDomainResponseLimitsAttempts;
1600
+ success?: CreateDomainResponseLimitsSuccess;
1601
+ }
1602
+ export declare const RenewDomainResponseLimits: S.Schema<RenewDomainResponseLimits>;
1603
+ export interface RenewDomainResponse {
1604
+ status: string;
1605
+ /** The renewed domain name */
1606
+ domain: string;
1607
+ /** The new expiration date returned by the registry */
1608
+ expirationDate?: string;
1609
+ /** The total amount charged in pennies */
1610
+ cost?: number;
1611
+ /** Internal Porkbun order ID */
1612
+ orderId: number;
1613
+ /** Current rate limit state for both attempt and success limits */
1614
+ limits?: RenewDomainResponseLimits;
1615
+ /** Remaining account credit balance in pennies after the charge */
1616
+ balance?: number;
1617
+ /** Seconds until the success rate limit window resets */
1618
+ ttlRemaining?: number;
1619
+ /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
1620
+ requestId?: string;
1621
+ }
1622
+ export declare const RenewDomainResponse: S.Schema<RenewDomainResponse>;
1623
+ export type RenewDomainResponseBody = RenewDomainResponse | DryRunPreviewResponse;
1624
+ export declare const RenewDomainResponseBody: S.Schema<RenewDomainResponseBody>;
1625
+ export type RenewDomainResponse2 = RenewDomainResponseBody;
1626
+ export declare const RenewDomainResponse2: S.Schema<RenewDomainResponse2>;
1627
+ export interface ResendWebhookRequest {
1628
+ /** Endpoint id. */
1629
+ id: number;
1630
+ }
1631
+ export declare const ResendWebhookRequest: S.Schema<ResendWebhookRequest>;
1632
+ /** PENDING (queued/awaiting retry), PROCESSING (in flight), DELIVERED (2xx), or FAILED (gave up after max attempts). */
1633
+ export type WebhookDeliveryStatus = "PENDING" | "PROCESSING" | "DELIVERED" | "FAILED";
1634
+ export declare const WebhookDeliveryStatus: any;
1635
+ export interface WebhookDelivery {
1636
+ /** Delivery id. */
1637
+ id?: number;
1638
+ /** Endpoint this delivery targets. */
1639
+ endpointId?: number;
1640
+ eventType?: string;
1641
+ /** UUIDv7 of the event; sent as X-Porkbun-Webhook-Id. Stable across resends. */
1642
+ eventId?: string;
1643
+ /** PENDING (queued/awaiting retry), PROCESSING (in flight), DELIVERED (2xx), or FAILED (gave up after max attempts). */
1644
+ status?: WebhookDeliveryStatus;
1645
+ /** Delivery attempts made so far. */
1646
+ attempts?: number;
1647
+ /** Attempt cap before the delivery is marked FAILED. */
1648
+ maxAttempts?: number;
1649
+ /** HTTP status from the last attempt, or null if not yet attempted / connection error. */
1650
+ httpStatus?: number | null;
1651
+ /** Last delivery error, or null. */
1652
+ lastError?: string | null;
1653
+ /** When the next attempt is scheduled (for PENDING rows). */
1654
+ nextAttemptAt?: string;
1655
+ /** When the delivery was queued. */
1656
+ createDate?: string;
1657
+ /** When it was successfully delivered, or null. */
1658
+ deliveredDate?: string | null;
1659
+ /** The full event envelope that was sent. Present only on GET /webhook/delivery/{id}. */
1660
+ payload?: unknown;
1661
+ }
1662
+ export declare const WebhookDelivery: S.Schema<WebhookDelivery>;
1663
+ export interface WebhookResendResponse {
1664
+ status?: string;
1665
+ delivery?: WebhookDelivery;
1666
+ message?: string;
1667
+ }
1668
+ export declare const WebhookResendResponse: S.Schema<WebhookResendResponse>;
1669
+ export interface ResetSandboxRequest {
1670
+ }
1671
+ export declare const ResetSandboxRequest: S.Schema<ResetSandboxRequest>;
1672
+ export interface ResetSandboxResponse {
1673
+ status?: string;
1674
+ message?: string;
1675
+ domainsCleared?: number;
1676
+ balance?: number;
1677
+ sandbox?: boolean;
1678
+ }
1679
+ export declare const ResetSandboxResponse: S.Schema<ResetSandboxResponse>;
1680
+ export interface SandboxTopupRequest {
1681
+ /** Fake credit to add in US cents (default 100000; max 1000000). */
1682
+ amount?: number;
1683
+ }
1684
+ export declare const SandboxTopupRequest: S.Schema<SandboxTopupRequest>;
1685
+ export interface SandboxTopupResponse {
1686
+ status?: string;
1687
+ granted?: number;
1688
+ balance?: number;
1689
+ display?: string;
1690
+ sandbox?: boolean;
1691
+ }
1692
+ export declare const SandboxTopupResponse: S.Schema<SandboxTopupResponse>;
1693
+ /** Event type to emit. */
1694
+ export type SandboxTriggerWebhookRequestEventType = "domain.registered" | "domain.renewed" | "domain.transfer.completed" | "domain.expiring" | "dns.record.created" | "dns.record.updated" | "dns.record.deleted";
1695
+ export declare const SandboxTriggerWebhookRequestEventType: any;
1696
+ export interface SandboxTriggerWebhookRequest {
1697
+ /** Event type to emit. */
1698
+ eventType: SandboxTriggerWebhookRequestEventType | (string & {});
1699
+ /** Domain used in the sample payload (default example.com). */
1700
+ domain?: string;
1701
+ }
1702
+ export declare const SandboxTriggerWebhookRequest: S.Schema<SandboxTriggerWebhookRequest>;
1703
+ export interface SandboxTriggerWebhookResponse {
1704
+ status?: string;
1705
+ event?: string;
1706
+ data?: unknown;
1707
+ endpointsRegistered?: number;
1708
+ message?: string;
1709
+ sandbox?: boolean;
1710
+ }
1711
+ export declare const SandboxTriggerWebhookResponse: S.Schema<SandboxTriggerWebhookResponse>;
1712
+ export interface TestWebhookRequest {
1713
+ /** Endpoint id. */
1714
+ id: number;
1715
+ }
1716
+ export declare const TestWebhookRequest: S.Schema<TestWebhookRequest>;
1717
+ export interface WebhookTestResponse {
1718
+ status?: string;
1719
+ /** UUID of the queued webhook.test event. */
1720
+ eventId?: string;
1721
+ message?: string;
1722
+ }
1723
+ export declare const WebhookTestResponse: S.Schema<WebhookTestResponse>;
1724
+ export interface TransferDomainRequest {
1725
+ /** The domain name to transfer (e.g. `example.com`). */
1726
+ domain: string;
1727
+ /** The EPP auth code for the domain. */
1728
+ authCode: string;
1729
+ /** The transfer cost in cents as returned by the pricing API. Must match exactly. */
1730
+ cost: number;
1731
+ /** Optional. When true, runs all pre-flight validation and returns a preview with `dryRun: true` and `wouldSucceed` WITHOUT initiating the transfer or charging. Nothing changes and the rate-limit budget is not consumed. */
1732
+ dryRun?: boolean;
1733
+ }
1734
+ export declare const TransferDomainRequest: S.Schema<TransferDomainRequest>;
1735
+ export type TransferDomainResponseStatus = "SUCCESS" | "ERROR";
1736
+ export declare const TransferDomainResponseStatus: any;
1737
+ export interface TransferDomainResponseLimits {
1738
+ attempts?: unknown;
1739
+ success?: unknown;
1740
+ }
1741
+ export declare const TransferDomainResponseLimits: S.Schema<TransferDomainResponseLimits>;
1742
+ export interface TransferDomainResponse {
1743
+ status?: TransferDomainResponseStatus;
1744
+ domain?: string;
1745
+ orderId?: number;
1746
+ transferId?: number;
1747
+ message?: string;
1748
+ /** Remaining account credit balance in cents. */
1749
+ balance?: number;
1750
+ ttlRemaining?: number;
1751
+ limits?: TransferDomainResponseLimits;
1752
+ /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
1753
+ requestId?: string;
1754
+ }
1755
+ export declare const TransferDomainResponse: S.Schema<TransferDomainResponse>;
1756
+ export type TransferDomainResponseBody = TransferDomainResponse | DryRunPreviewResponse;
1757
+ export declare const TransferDomainResponseBody: S.Schema<TransferDomainResponseBody>;
1758
+ export type TransferDomainResponse2 = TransferDomainResponseBody;
1759
+ export declare const TransferDomainResponse2: S.Schema<TransferDomainResponse2>;
1760
+ /** Replacement event subscription list (optional). */
1761
+ export type UpdateWebhookRequestEventsList = Array<string>;
1762
+ export declare const UpdateWebhookRequestEventsList: S.Schema<UpdateWebhookRequestEventsList>;
1763
+ /** Set ACTIVE to resume (also clears the failure counter) or DISABLED to pause (optional). */
1764
+ export type UpdateWebhookRequestStatus = "ACTIVE" | "DISABLED";
1765
+ export declare const UpdateWebhookRequestStatus: any;
1766
+ export interface UpdateWebhookRequest {
1767
+ /** Endpoint id to update. */
1768
+ id: number;
1769
+ /** New HTTPS URL (optional). */
1770
+ url?: string;
1771
+ /** Replacement event subscription list (optional). */
1772
+ events?: UpdateWebhookRequestEventsList;
1773
+ /** Set ACTIVE to resume (also clears the failure counter) or DISABLED to pause (optional). */
1774
+ status?: UpdateWebhookRequestStatus | (string & {});
1775
+ }
1776
+ export declare const UpdateWebhookRequest: S.Schema<UpdateWebhookRequest>;
1777
+ export type WebhookDeliveriesRequestStatus = "PENDING" | "PROCESSING" | "DELIVERED" | "FAILED";
1778
+ export declare const WebhookDeliveriesRequestStatus: any;
1779
+ export interface WebhookDeliveriesRequest {
1780
+ /** Only deliveries for this endpoint. */
1781
+ endpointId?: number;
1782
+ /** Filter by delivery status. */
1783
+ status?: WebhookDeliveriesRequestStatus | (string & {});
1784
+ /** Pagination offset (default 0). */
1785
+ start?: number;
1786
+ /** Page size, 1-200 (default 50). */
1787
+ limit?: number;
1788
+ }
1789
+ export declare const WebhookDeliveriesRequest: S.Schema<WebhookDeliveriesRequest>;
1790
+ /** Newest first. The bulky `payload` field is omitted here. */
1791
+ export type WebhookDeliveryListResponseDeliveriesList = Array<WebhookDelivery>;
1792
+ export declare const WebhookDeliveryListResponseDeliveriesList: S.Schema<WebhookDeliveryListResponseDeliveriesList>;
1793
+ export interface WebhookDeliveryListResponse {
1794
+ status?: string;
1795
+ /** Newest first. The bulky `payload` field is omitted here. */
1796
+ deliveries?: WebhookDeliveryListResponseDeliveriesList;
1797
+ /** Total matching deliveries (for pagination). */
1798
+ total?: number;
1799
+ /** Offset of this page. */
1800
+ start?: number;
1801
+ /** Page size used. */
1802
+ limit?: number;
1803
+ message?: string;
1804
+ }
1805
+ export declare const WebhookDeliveryListResponse: S.Schema<WebhookDeliveryListResponse>;
1806
+ export interface WebhookDeliveryRequest {
1807
+ id: number;
1808
+ }
1809
+ export declare const WebhookDeliveryRequest: S.Schema<WebhookDeliveryRequest>;
1810
+ export interface WebhookDeliveryResponse {
1811
+ status?: string;
1812
+ delivery?: WebhookDelivery;
1813
+ }
1814
+ export declare const WebhookDeliveryResponse: S.Schema<WebhookDeliveryResponse>;
1815
+ export interface WebhookEventTypesRequest {
1816
+ }
1817
+ export declare const WebhookEventTypesRequest: S.Schema<WebhookEventTypesRequest>;
1818
+ export type WebhookEventTypesResponseEventTypesList = Array<string>;
1819
+ export declare const WebhookEventTypesResponseEventTypesList: S.Schema<WebhookEventTypesResponseEventTypesList>;
1820
+ export interface WebhookEventTypesResponse {
1821
+ status?: string;
1822
+ eventTypes?: WebhookEventTypesResponseEventTypesList;
1823
+ }
1824
+ export declare const WebhookEventTypesResponse: S.Schema<WebhookEventTypesResponse>;
1825
+ export interface WebhookRotateSecretRequest {
1826
+ /** Endpoint id. */
1827
+ id: number;
1828
+ }
1829
+ export declare const WebhookRotateSecretRequest: S.Schema<WebhookRotateSecretRequest>;
1830
+ export type ApikeyRequestError = BadRequest | PorkbunOpError;
1831
+ /** 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`). */
1832
+ export declare const apikeyRequest: API.OperationMethod<ApikeyRequestRequest, ApikeyRequestResponse, ApikeyRequestError, PorkbunOpContext>;
1833
+ export type CreateAccountInviteError = BadRequest | PorkbunOpError;
1834
+ /** 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. */
1835
+ export declare const createAccountInvite: API.OperationMethod<CreateAccountInviteRequest, CreateAccountInviteResponse, CreateAccountInviteError, PorkbunOpContext>;
1836
+ export type CreateDnsError = BadRequest | PorkbunOpError;
1837
+ /** Create DNS record Create a new DNS record for a domain. The record ID is returned in the response. */
1838
+ export declare const createDns: API.OperationMethod<CreateDnsRequest, CreateDnsResponse, CreateDnsError, PorkbunOpContext>;
1839
+ export type CreateDomainError = BadRequest | PorkbunOpError;
1840
+ /** 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" } ``` */
1841
+ export declare const createDomain: API.OperationMethod<CreateDomainRequest, CreateDomainResponse2, CreateDomainError, PorkbunOpContext>;
1842
+ export type CreateHostingError = BadRequest | PorkbunOpError;
1843
+ /** 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). */
1844
+ export declare const createHosting: API.OperationMethod<CreateHostingRequest, CreateHostingResponse, CreateHostingError, PorkbunOpContext>;
1845
+ export type CreateWebhookError = BadRequest | PorkbunOpError;
1846
+ /** 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. */
1847
+ export declare const createWebhook: API.OperationMethod<CreateWebhookRequest, WebhookEndpointResponse, CreateWebhookError, PorkbunOpContext>;
1848
+ export type DeleteDnsError = BadRequest | PorkbunOpError;
1849
+ /** Delete DNS record by ID Delete a specific DNS record. SOA and default Porkbun NS records cannot be deleted. */
1850
+ export declare const deleteDns: API.OperationMethod<DeleteDnsRequest, BasicResponse, DeleteDnsError, PorkbunOpContext>;
1851
+ export type DeleteHostingError = BadRequest | PorkbunOpError;
1852
+ /** 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). */
1853
+ export declare const deleteHosting: API.OperationMethod<DeleteHostingRequest, BasicResponse, DeleteHostingError, PorkbunOpContext>;
1854
+ export type DeleteWebhookError = NotFound | PorkbunOpError;
1855
+ /** Delete a webhook endpoint Delete a webhook endpoint by id. Deliveries stop immediately. */
1856
+ export declare const deleteWebhook: API.OperationMethod<DeleteWebhookRequest, DeleteWebhookResponse, DeleteWebhookError, PorkbunOpContext>;
1857
+ export type DeployHostingError = BadRequest | PorkbunOpError;
1858
+ /** 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. */
1859
+ export declare const deployHosting: API.OperationMethod<DeployHostingRequest, DeployHostingResponse, DeployHostingError, PorkbunOpContext>;
1860
+ export type DnsCreateDnssecRecordError = BadRequest | PorkbunOpError;
1861
+ /** 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. */
1862
+ export declare const dnsCreateDnssecRecord: API.OperationMethod<DnsCreateDnssecRecordRequest, BasicResponse, DnsCreateDnssecRecordError, PorkbunOpContext>;
1863
+ export type DnsDeleteByNameTypeError = BadRequest | PorkbunOpError;
1864
+ /** 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). */
1865
+ export declare const dnsDeleteByNameType: API.OperationMethod<DnsDeleteByNameTypeRequest, BasicResponse, DnsDeleteByNameTypeError, PorkbunOpContext>;
1866
+ export type DnsDeleteDnssecRecordError = BadRequest | PorkbunOpError;
1867
+ /** 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. */
1868
+ export declare const dnsDeleteDnssecRecord: API.OperationMethod<DnsDeleteDnssecRecordRequest, BasicResponse, DnsDeleteDnssecRecordError, PorkbunOpContext>;
1869
+ export type DnsEditByNameTypeError = BadRequest | PorkbunOpError;
1870
+ /** 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). */
1871
+ export declare const dnsEditByNameType: API.OperationMethod<DnsEditByNameTypeRequest, BasicResponse, DnsEditByNameTypeError, PorkbunOpContext>;
1872
+ export type DnsGetDnssecRecordsError = BadRequest | PorkbunOpError;
1873
+ /** 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). */
1874
+ export declare const dnsGetDnssecRecords: API.OperationMethod<DnsGetDnssecRecordsRequest, DnsGetDnssecRecordsResponse, DnsGetDnssecRecordsError, PorkbunOpContext>;
1875
+ export type DnsRetrieveByIdError = BadRequest | PorkbunOpError;
1876
+ /** 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). */
1877
+ export declare const dnsRetrieveById: API.OperationMethod<DnsRetrieveByIdRequest, DnsRecordsResponse, DnsRetrieveByIdError, PorkbunOpContext>;
1878
+ export type DnsRetrieveByNameTypeError = BadRequest | PorkbunOpError;
1879
+ /** 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). */
1880
+ export declare const dnsRetrieveByNameType: API.OperationMethod<DnsRetrieveByNameTypeRequest, DnsRecordsResponse, DnsRetrieveByNameTypeError, PorkbunOpContext>;
1881
+ export type DomainAddUrlForwardError = BadRequest | PorkbunOpError;
1882
+ /** Add URL forward Add a URL forward for a domain or subdomain. */
1883
+ export declare const domainAddUrlForward: API.OperationMethod<DomainAddUrlForwardRequest, BasicResponse, DomainAddUrlForwardError, PorkbunOpContext>;
1884
+ export type DomainCheckDomainError = BadRequest | PorkbunOpError;
1885
+ /** 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. */
1886
+ export declare const domainCheckDomain: API.OperationMethod<DomainCheckDomainRequest, CheckDomainResponse, DomainCheckDomainError, PorkbunOpContext>;
1887
+ export type DomainCreateGlueError = BadRequest | PorkbunOpError;
1888
+ /** 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). */
1889
+ export declare const domainCreateGlue: API.OperationMethod<DomainCreateGlueRequest, BasicResponse, DomainCreateGlueError, PorkbunOpContext>;
1890
+ export type DomainDeleteGlueError = BadRequest | PorkbunOpError;
1891
+ /** Delete glue record Delete a glue record (host object) for a subdomain. */
1892
+ export declare const domainDeleteGlue: API.OperationMethod<DomainDeleteGlueRequest, BasicResponse, DomainDeleteGlueError, PorkbunOpContext>;
1893
+ export type DomainDeleteUrlForwardError = BadRequest | PorkbunOpError;
1894
+ /** Delete URL forward Delete a specific URL forward by ID. */
1895
+ export declare const domainDeleteUrlForward: API.OperationMethod<DomainDeleteUrlForwardRequest, BasicResponse, DomainDeleteUrlForwardError, PorkbunOpContext>;
1896
+ export type DomainGetContactsError = BadRequest | PorkbunOpError;
1897
+ /** Get domain contacts Return the domain's four contacts (registrant, admin, tech, billing) with their current field values. Also available via POST. */
1898
+ export declare const domainGetContacts: API.OperationMethod<DomainGetContactsRequest, DomainGetContactsResponse, DomainGetContactsError, PorkbunOpContext>;
1899
+ export type DomainGetGlueError = BadRequest | PorkbunOpError;
1900
+ /** 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). */
1901
+ export declare const domainGetGlue: API.OperationMethod<DomainGetGlueRequest, DomainGetGlueResponse, DomainGetGlueError, PorkbunOpContext>;
1902
+ export type DomainGetNsError = BadRequest | PorkbunOpError;
1903
+ /** 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). */
1904
+ export declare const domainGetNs: API.OperationMethod<DomainGetNsRequest, DomainGetNsResponse, DomainGetNsError, PorkbunOpContext>;
1905
+ export type DomainGetRegistrationRequirementsError = BadRequest | PorkbunOpError;
1906
+ /** 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). */
1907
+ export declare const domainGetRegistrationRequirements: API.OperationMethod<DomainGetRegistrationRequirementsRequest, DomainGetRegistrationRequirementsResponse, DomainGetRegistrationRequirementsError, PorkbunOpContext>;
1908
+ export type DomainGetUrlForwardingError = BadRequest | PorkbunOpError;
1909
+ /** List URL forwards Retrieve all active URL forwards for a domain. Supports both GET (with header auth) and POST (with body or header auth). */
1910
+ export declare const domainGetUrlForwarding: API.OperationMethod<DomainGetUrlForwardingRequest, GetUrlForwardingResponse, DomainGetUrlForwardingError, PorkbunOpContext>;
1911
+ export type DomainUpdateAutoRenewError = BadRequest | PorkbunOpError;
1912
+ /** 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. */
1913
+ export declare const domainUpdateAutoRenew: API.OperationMethod<DomainUpdateAutoRenewRequest, DomainUpdateAutoRenewResponse, DomainUpdateAutoRenewError, PorkbunOpContext>;
1914
+ export type DomainUpdateContactsError = BadRequest | PorkbunOpError;
1915
+ /** 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. */
1916
+ export declare const domainUpdateContacts: API.OperationMethod<DomainUpdateContactsRequest, DomainUpdateContactsResponse, DomainUpdateContactsError, PorkbunOpContext>;
1917
+ export type DomainUpdateGlueError = BadRequest | PorkbunOpError;
1918
+ /** Update glue record Update the IP addresses of a glue record. All existing IP addresses are replaced with the supplied list. */
1919
+ export declare const domainUpdateGlue: API.OperationMethod<DomainUpdateGlueRequest, BasicResponse, DomainUpdateGlueError, PorkbunOpContext>;
1920
+ export type DomainUpdateNsError = BadRequest | PorkbunOpError;
1921
+ /** Update nameservers Update the nameservers for the domain at the registry. */
1922
+ export declare const domainUpdateNs: API.OperationMethod<DomainUpdateNsRequest, BasicResponse, DomainUpdateNsError, PorkbunOpContext>;
1923
+ export type EditDnsError = BadRequest | PorkbunOpError;
1924
+ /** Edit DNS record by ID Edit a specific DNS record by its numeric ID. SOA and default Porkbun NS records cannot be edited. */
1925
+ export declare const editDns: API.OperationMethod<EditDnsRequest, BasicResponse, EditDnsError, PorkbunOpContext>;
1926
+ export type EmailSetPasswordError = BadRequest | PorkbunOpError;
1927
+ /** Set email hosting password Set the password for an email hosting account associated with a domain managed by your API key. */
1928
+ export declare const emailSetPassword: API.OperationMethod<EmailSetPasswordRequest, BasicResponse, EmailSetPasswordError, PorkbunOpContext>;
1929
+ export type GetAccountInviteStatusError = BadRequest | PorkbunOpError;
1930
+ /** 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. */
1931
+ export declare const getAccountInviteStatus: API.OperationMethod<GetAccountInviteStatusRequest, GetAccountInviteStatusResponse, GetAccountInviteStatusError, PorkbunOpContext>;
1932
+ export type GetApikeyError = BadRequest | Forbidden | PorkbunOpError;
1933
+ /** 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. */
1934
+ export declare const getApikey: API.OperationMethod<GetApikeyRequest, GetApikeyResponse, GetApikeyError, PorkbunOpContext>;
1935
+ export type GetApiSettingsError = PorkbunOpError;
1936
+ /** 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>`. */
1937
+ export declare const getApiSettings: API.OperationMethod<GetApiSettingsRequest, ApiSettingsResponse, GetApiSettingsError, PorkbunOpContext>;
1938
+ export type GetBalanceError = PorkbunOpError;
1939
+ /** Get account balance Returns the available account credit balance. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
1940
+ export declare const getBalance: API.OperationMethod<GetBalanceRequest, BalanceResponse, GetBalanceError, PorkbunOpContext>;
1941
+ export type GetDnsError = BadRequest | PorkbunOpError;
1942
+ /** 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). */
1943
+ export declare const getDns: API.OperationMethod<GetDnsRequest, DnsRecordsResponse, GetDnsError, PorkbunOpContext>;
1944
+ export type GetDnsRecordByIdError = BadRequest | PorkbunOpError;
1945
+ /** 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). */
1946
+ export declare const getDnsRecordById: API.OperationMethod<GetDnsRecordByIdRequest, DnsRecordsResponse, GetDnsRecordByIdError, PorkbunOpContext>;
1947
+ export type GetDnsRecordsError = BadRequest | PorkbunOpError;
1948
+ /** 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). */
1949
+ export declare const getDnsRecords: API.OperationMethod<GetDnsRecordsRequest, DnsRecordsResponse, GetDnsRecordsError, PorkbunOpContext>;
1950
+ export type GetDnsRecordsByNameTypeError = BadRequest | PorkbunOpError;
1951
+ /** 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). */
1952
+ export declare const getDnsRecordsByNameType: API.OperationMethod<GetDnsRecordsByNameTypeRequest, DnsRecordsResponse, GetDnsRecordsByNameTypeError, PorkbunOpContext>;
1953
+ export type GetDnssecRecordsError = BadRequest | PorkbunOpError;
1954
+ /** 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). */
1955
+ export declare const getDnssecRecords: API.OperationMethod<GetDnssecRecordsRequest, GetDnssecRecordsResponse, GetDnssecRecordsError, PorkbunOpContext>;
1956
+ export type GetDomainError = NotFound | PorkbunOpError;
1957
+ /** 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. */
1958
+ export declare const getDomain: API.OperationMethod<GetDomainRequest, GetDomainResponse, GetDomainError, PorkbunOpContext>;
1959
+ export type GetDomainGlueError = BadRequest | PorkbunOpError;
1960
+ /** 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). */
1961
+ export declare const getDomainGlue: API.OperationMethod<GetDomainGlueRequest, GetDomainGlueResponse, GetDomainGlueError, PorkbunOpContext>;
1962
+ export type GetDomainNsError = BadRequest | PorkbunOpError;
1963
+ /** 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). */
1964
+ export declare const getDomainNs: API.OperationMethod<GetDomainNsRequest, GetDomainNsResponse, GetDomainNsError, PorkbunOpContext>;
1965
+ export type GetDomainsError = BadRequest | PorkbunOpError;
1966
+ /** 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`. */
1967
+ export declare const getDomains: API.OperationMethod<GetDomainsRequest, DomainListAllResponse, GetDomainsError, PorkbunOpContext>;
1968
+ export type GetDomainUrlForwardingError = BadRequest | PorkbunOpError;
1969
+ /** List URL forwards Retrieve all active URL forwards for a domain. Supports both GET (with header auth) and POST (with body or header auth). */
1970
+ export declare const getDomainUrlForwarding: API.OperationMethod<GetDomainUrlForwardingRequest, GetUrlForwardingResponse, GetDomainUrlForwardingError, PorkbunOpContext>;
1971
+ export type GetHostingError = BadRequest | PorkbunOpError;
1972
+ /** 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. */
1973
+ export declare const getHosting: API.OperationMethod<GetHostingRequest, GetHostingResponse, GetHostingError, PorkbunOpContext>;
1974
+ export type GetIpError = PorkbunOpError;
1975
+ /** 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. */
1976
+ export declare const getIp: API.OperationMethod<GetIpRequest, IpResponse, GetIpError, PorkbunOpContext>;
1977
+ export type GetPingError = BadRequest | PorkbunOpError;
1978
+ /** 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. */
1979
+ export declare const getPing: API.OperationMethod<GetPingRequest, GetPingResponse, GetPingError, PorkbunOpContext>;
1980
+ export type GetPricingError = PorkbunOpError;
1981
+ /** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs. Does not require authentication. Prices are in US dollars. */
1982
+ export declare const getPricing: API.OperationMethod<GetPricingRequest, GetPricingResponse, GetPricingError, PorkbunOpContext>;
1983
+ export type GetPricingGetError = PorkbunOpError;
1984
+ /** 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. */
1985
+ export declare const getPricingGet: API.OperationMethod<GetPricingGetRequest, GetPricingGetResponse, GetPricingGetError, PorkbunOpContext>;
1986
+ export type GetSslError = BadRequest | PorkbunOpError;
1987
+ /** 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). */
1988
+ export declare const getSsl: API.OperationMethod<GetSslRequest, GetSslResponse, GetSslError, PorkbunOpContext>;
1989
+ export type GetSslRetrieveError = BadRequest | PorkbunOpError;
1990
+ /** 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). */
1991
+ export declare const getSslRetrieve: API.OperationMethod<GetSslRetrieveRequest, GetSslRetrieveResponse, GetSslRetrieveError, PorkbunOpContext>;
1992
+ export type GetTransferGetError = PorkbunOpError;
1993
+ /** 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>`. */
1994
+ export declare const getTransferGet: API.OperationMethod<GetTransferGetRequest, GetTransferResponse, GetTransferGetError, PorkbunOpContext>;
1995
+ export type GetWebhookError = NotFound | PorkbunOpError;
1996
+ /** 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). */
1997
+ export declare const getWebhook: API.OperationMethod<GetWebhookRequest, WebhookEndpointResponse, GetWebhookError, PorkbunOpContext>;
1998
+ export type HostingCreateWpCredentialsError = BadRequest | PorkbunOpError;
1999
+ /** 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). */
2000
+ export declare const hostingCreateWpCredentials: API.OperationMethod<HostingCreateWpCredentialsRequest, HostingCreateWpCredentialsResponse, HostingCreateWpCredentialsError, PorkbunOpContext>;
2001
+ export type HostingDeleteFileError = BadRequest | PorkbunOpError;
2002
+ /** 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. */
2003
+ export declare const hostingDeleteFile: API.OperationMethod<HostingDeleteFileRequest, HostingDeleteFileResponse, HostingDeleteFileError, PorkbunOpContext>;
2004
+ export type HostingDeleteWpCredentialsError = BadRequest | PorkbunOpError;
2005
+ /** 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`). */
2006
+ export declare const hostingDeleteWpCredentials: API.OperationMethod<HostingDeleteWpCredentialsRequest, HostingDeleteWpCredentialsResponse, HostingDeleteWpCredentialsError, PorkbunOpContext>;
2007
+ export type HostingFilesError = BadRequest | PorkbunOpError;
2008
+ /** 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). */
2009
+ export declare const hostingFiles: API.OperationMethod<HostingFilesRequest, HostingFilesResponse, HostingFilesError, PorkbunOpContext>;
2010
+ export type HostingGetWpCredentialsError = BadRequest | PorkbunOpError;
2011
+ /** 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`). */
2012
+ export declare const hostingGetWpCredentials: API.OperationMethod<HostingGetWpCredentialsRequest, HostingGetWpCredentialsResponse, HostingGetWpCredentialsError, PorkbunOpContext>;
2013
+ export type HostingMakeDirError = BadRequest | PorkbunOpError;
2014
+ /** 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). */
2015
+ export declare const hostingMakeDir: API.OperationMethod<HostingMakeDirRequest, HostingMakeDirResponse, HostingMakeDirError, PorkbunOpContext>;
2016
+ export type HostingPlansError = BadRequest | PorkbunOpError;
2017
+ /** 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. */
2018
+ export declare const hostingPlans: API.OperationMethod<HostingPlansRequest, HostingPlansResponse, HostingPlansError, PorkbunOpContext>;
2019
+ export type ListDomainsError = BadRequest | PorkbunOpError;
2020
+ /** 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`. */
2021
+ export declare const listDomains: API.OperationMethod<ListDomainsRequest, DomainListAllResponse, ListDomainsError, PorkbunOpContext>;
2022
+ export type ListMarketplaceListingsError = BadRequest | PorkbunOpError;
2023
+ /** 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. */
2024
+ export declare const listMarketplaceListings: API.OperationMethod<ListMarketplaceListingsRequest, ListMarketplaceListingsResponse, ListMarketplaceListingsError, PorkbunOpContext>;
2025
+ export type ListMarketplaceListingsGetError = PorkbunOpError;
2026
+ /** 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). */
2027
+ export declare const listMarketplaceListingsGet: API.OperationMethod<ListMarketplaceListingsGetRequest, ListMarketplaceListingsGetResponse, ListMarketplaceListingsGetError, PorkbunOpContext>;
2028
+ export type ListTransfersGetError = PorkbunOpError;
2029
+ /** 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>`. */
2030
+ export declare const listTransfersGet: API.OperationMethod<ListTransfersGetRequest, ListTransfersResponse, ListTransfersGetError, PorkbunOpContext>;
2031
+ export type ListWebhookError = BadRequest | PorkbunOpError;
2032
+ /** 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). */
2033
+ export declare const listWebhook: API.OperationMethod<ListWebhookRequest, WebhookListResponse, ListWebhookError, PorkbunOpContext>;
2034
+ export type MockDirectoryError = PorkbunOpError;
2035
+ /** 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. */
2036
+ export declare const mockDirectory: API.OperationMethod<MockDirectoryRequest, MockDirectoryResponse, MockDirectoryError, PorkbunOpContext>;
2037
+ export type MockEndpointError = PorkbunOpError;
2038
+ /** 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. */
2039
+ export declare const mockEndpoint: API.OperationMethod<MockEndpointRequest, MockEndpointResponse, MockEndpointError, PorkbunOpContext>;
2040
+ export type PingError = BadRequest | PorkbunOpError;
2041
+ /** 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. */
2042
+ export declare const ping: API.OperationMethod<PingRequest, PingResponse, PingError, PorkbunOpContext>;
2043
+ export type PostIpError = PorkbunOpError;
2044
+ /** 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. */
2045
+ export declare const postIp: API.OperationMethod<PostIpRequest, IpResponse, PostIpError, PorkbunOpContext>;
2046
+ export type RenewDomainError = BadRequest | PorkbunOpError;
2047
+ /** 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" } ``` */
2048
+ export declare const renewDomain: API.OperationMethod<RenewDomainRequest, RenewDomainResponse2, RenewDomainError, PorkbunOpContext>;
2049
+ export type ResendWebhookError = BadRequest | NotFound | PorkbunOpError;
2050
+ /** 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. */
2051
+ export declare const resendWebhook: API.OperationMethod<ResendWebhookRequest, WebhookResendResponse, ResendWebhookError, PorkbunOpContext>;
2052
+ export type ResetSandboxError = PorkbunOpError;
2053
+ /** 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. */
2054
+ export declare const resetSandbox: API.OperationMethod<ResetSandboxRequest, ResetSandboxResponse, ResetSandboxError, PorkbunOpContext>;
2055
+ export type SandboxTopupError = PorkbunOpError;
2056
+ /** 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). */
2057
+ export declare const sandboxTopup: API.OperationMethod<SandboxTopupRequest, SandboxTopupResponse, SandboxTopupError, PorkbunOpContext>;
2058
+ export type SandboxTriggerWebhookError = PorkbunOpError;
2059
+ /** 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`. */
2060
+ export declare const sandboxTriggerWebhook: API.OperationMethod<SandboxTriggerWebhookRequest, SandboxTriggerWebhookResponse, SandboxTriggerWebhookError, PorkbunOpContext>;
2061
+ export type TestWebhookError = BadRequest | NotFound | PorkbunOpError;
2062
+ /** 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). */
2063
+ export declare const testWebhook: API.OperationMethod<TestWebhookRequest, WebhookTestResponse, TestWebhookError, PorkbunOpContext>;
2064
+ export type TransferDomainError = PorkbunOpError;
2065
+ /** 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" } ``` */
2066
+ export declare const transferDomain: API.OperationMethod<TransferDomainRequest, TransferDomainResponse2, TransferDomainError, PorkbunOpContext>;
2067
+ export type UpdateWebhookError = BadRequest | NotFound | PorkbunOpError;
2068
+ /** 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). */
2069
+ export declare const updateWebhook: API.OperationMethod<UpdateWebhookRequest, WebhookEndpointResponse, UpdateWebhookError, PorkbunOpContext>;
2070
+ export type WebhookDeliveriesError = BadRequest | NotFound | PorkbunOpError;
2071
+ /** 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). */
2072
+ export declare const webhookDeliveries: API.OperationMethod<WebhookDeliveriesRequest, WebhookDeliveryListResponse, WebhookDeliveriesError, PorkbunOpContext>;
2073
+ export type WebhookDelivery2Error = NotFound | PorkbunOpError;
2074
+ /** 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). */
2075
+ export declare const webhookDelivery2: API.OperationMethod<WebhookDeliveryRequest, WebhookDeliveryResponse, WebhookDelivery2Error, PorkbunOpContext>;
2076
+ export type WebhookEventTypesError = BadRequest | PorkbunOpError;
2077
+ /** 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). */
2078
+ export declare const webhookEventTypes: API.OperationMethod<WebhookEventTypesRequest, WebhookEventTypesResponse, WebhookEventTypesError, PorkbunOpContext>;
2079
+ export type WebhookRotateSecretError = NotFound | PorkbunOpError;
2080
+ /** 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. */
2081
+ export declare const webhookRotateSecret: API.OperationMethod<WebhookRotateSecretRequest, WebhookEndpointResponse, WebhookRotateSecretError, PorkbunOpContext>;
2082
+ //# sourceMappingURL=porkbun.d.ts.map