@distilled.cloud/porkbun 1.0.0-rc.14 → 1.0.0-rc.16

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.
@@ -1,42 +1,42 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
- import * as Redacted from "effect/Redacted";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
4
  import { type PorkbunOpError, type PorkbunOpContext } from "../protocol.ts";
5
5
  export type { PorkbunOpError, PorkbunOpContext };
6
- declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
6
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
7
7
  readonly code: any;
8
8
  readonly message: any;
9
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
9
+ }> & (new (...args: any[]) => {
10
10
  "@distilled.cloud/error/categories": {
11
11
  BadRequestError: true;
12
12
  };
13
13
  });
14
14
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
15
15
  }
16
- declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
16
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
17
17
  readonly code: any;
18
18
  readonly message: any;
19
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
19
+ }> & (new (...args: any[]) => {
20
20
  "@distilled.cloud/error/categories": {
21
21
  ConflictError: true;
22
22
  };
23
23
  });
24
24
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
25
25
  }
26
- declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
26
+ declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
27
27
  readonly code: any;
28
28
  readonly message: any;
29
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
29
+ }> & (new (...args: any[]) => {
30
30
  "@distilled.cloud/error/categories": {
31
31
  AuthError: true;
32
32
  };
33
33
  });
34
34
  export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
35
35
  }
36
- declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
36
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
37
37
  readonly code: any;
38
38
  readonly message: any;
39
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
39
+ }> & (new (...args: any[]) => {
40
40
  "@distilled.cloud/error/categories": {
41
41
  BadRequestError: true;
42
42
  };
@@ -47,7 +47,6 @@ export interface AccountVerifyPhoneConfirmRequest {
47
47
  /** The code the person received, exactly as texted. Case does not matter. */
48
48
  code: string;
49
49
  }
50
- export declare const AccountVerifyPhoneConfirmRequest: S.Schema<AccountVerifyPhoneConfirmRequest>;
51
50
  export interface AccountVerifyPhoneConfirmResponse {
52
51
  status?: string;
53
52
  verified?: boolean;
@@ -55,32 +54,27 @@ export interface AccountVerifyPhoneConfirmResponse {
55
54
  emailVerified?: boolean;
56
55
  message?: string;
57
56
  }
58
- export declare const AccountVerifyPhoneConfirmResponse: S.Schema<AccountVerifyPhoneConfirmResponse>;
59
57
  /** `call` reads the code out by voice, for when a text does not arrive. */
60
58
  export type AccountVerifyPhoneSendRequestChannel = "sms" | "call";
61
- export declare const AccountVerifyPhoneSendRequestChannel: any;
62
59
  export interface AccountVerifyPhoneSendRequest {
63
60
  /** `call` reads the code out by voice, for when a text does not arrive. */
64
61
  channel?: AccountVerifyPhoneSendRequestChannel | (string & {});
65
62
  dryRun?: boolean;
66
63
  }
67
- export declare const AccountVerifyPhoneSendRequest: S.Schema<AccountVerifyPhoneSendRequest>;
68
64
  export interface AccountVerifyPhoneSendResponse {
69
65
  status?: string;
70
66
  sent?: boolean;
71
67
  codeAlreadySent?: boolean;
72
68
  alreadyVerified?: boolean;
73
69
  channel?: string;
74
- /** The number, masked (`+1 ••• 42`). */
70
+ /** The number, masked (`+1 *** 42`). */
75
71
  sentTo?: string;
76
72
  expiresInMinutes?: number;
77
73
  retryAfterSeconds?: number;
78
74
  message?: string;
79
75
  }
80
- export declare const AccountVerifyPhoneSendResponse: S.Schema<AccountVerifyPhoneSendResponse>;
81
76
  /** PKCE challenge method. Only S256 is supported. */
82
77
  export type ApikeyRequestRequestCodeChallengeMethod = "S256";
83
- export declare const ApikeyRequestRequestCodeChallengeMethod: any;
84
78
  export interface ApikeyRequestRequest {
85
79
  /** 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." */
86
80
  name?: string;
@@ -88,15 +82,13 @@ export interface ApikeyRequestRequest {
88
82
  codeChallenge?: string;
89
83
  /** PKCE challenge method. Only S256 is supported. */
90
84
  codeChallengeMethod?: ApikeyRequestRequestCodeChallengeMethod | (string & {});
91
- /** 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). */
85
+ /** 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). */
92
86
  sandbox?: boolean;
93
- /** 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. */
87
+ /** 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. */
94
88
  returnUrl?: string;
95
89
  }
96
- export declare const ApikeyRequestRequest: S.Schema<ApikeyRequestRequest>;
97
90
  /** 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). */
98
91
  export type ApikeyRequestResponseDeliveryMode = "legacy" | "pkce";
99
- export declare const ApikeyRequestResponseDeliveryMode: any;
100
92
  export interface ApikeyRequestResponse {
101
93
  status?: string;
102
94
  /** Token used to poll `/apikey/retrieve` to check approval status. */
@@ -110,26 +102,20 @@ export interface ApikeyRequestResponse {
110
102
  /** Human-readable instructions */
111
103
  message?: string;
112
104
  }
113
- export declare const ApikeyRequestResponse: S.Schema<ApikeyRequestResponse>;
114
105
  /** Domains to check, e.g. ["example.com", "example.net"]. Duplicates are removed. */
115
106
  export type BulkDomainCheckDomainRequestDomainsList = Array<string>;
116
- export declare const BulkDomainCheckDomainRequestDomainsList: S.Schema<BulkDomainCheckDomainRequestDomainsList>;
117
107
  export interface BulkDomainCheckDomainRequest {
118
108
  /** Domains to check, e.g. ["example.com", "example.net"]. Duplicates are removed. */
119
109
  domains: BulkDomainCheckDomainRequestDomainsList;
120
110
  }
121
- export declare const BulkDomainCheckDomainRequest: S.Schema<BulkDomainCheckDomainRequest>;
122
111
  /** Keyed by domain name; each value has the same shape as the single-check `response` object */
123
112
  export type BulkDomainCheckDomainResponseDomainsMap = {
124
113
  [key: string]: unknown | undefined;
125
114
  };
126
- export declare const BulkDomainCheckDomainResponseDomainsMap: S.Schema<BulkDomainCheckDomainResponseDomainsMap>;
127
115
  /** The registry did not answer for these. NOT a statement of availability - retry them. */
128
116
  export type BulkDomainCheckDomainResponseUnresolvedList = Array<string>;
129
- export declare const BulkDomainCheckDomainResponseUnresolvedList: S.Schema<BulkDomainCheckDomainResponseUnresolvedList>;
130
117
  /** Entries that could not be checked, each with a reason */
131
118
  export type BulkDomainCheckDomainResponseInvalidList = Array<unknown>;
132
- export declare const BulkDomainCheckDomainResponseInvalidList: S.Schema<BulkDomainCheckDomainResponseInvalidList>;
133
119
  export interface BulkDomainCheckDomainResponse {
134
120
  status?: string;
135
121
  /** How many domains were answered */
@@ -143,10 +129,8 @@ export interface BulkDomainCheckDomainResponse {
143
129
  /** Bulk budget usage; `countedIn` is "domains" */
144
130
  limits?: unknown;
145
131
  }
146
- export declare const BulkDomainCheckDomainResponse: S.Schema<BulkDomainCheckDomainResponse>;
147
132
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
148
133
  export type CloseoutBuyRequestPayWith = "usdc";
149
- export declare const CloseoutBuyRequestPayWith: any;
150
134
  export interface CloseoutBuyRequest {
151
135
  domain: string;
152
136
  /** Exact totalPrice in integer US cents, from /closeout/get/{domain}. Use 0 only with dryRun to request a quote. */
@@ -158,7 +142,6 @@ export interface CloseoutBuyRequest {
158
142
  /** Validate and price without charging or claiming. */
159
143
  dryRun?: boolean;
160
144
  }
161
- export declare const CloseoutBuyRequest: S.Schema<CloseoutBuyRequest>;
162
145
  export interface CloseoutBuyResponse {
163
146
  status?: string;
164
147
  domain?: string;
@@ -169,16 +152,15 @@ export interface CloseoutBuyResponse {
169
152
  totalPrice?: number;
170
153
  message?: string;
171
154
  }
172
- export declare const CloseoutBuyResponse: S.Schema<CloseoutBuyResponse>;
173
155
  export interface CloudflareCreateRecordRequest {
174
156
  domain: string;
175
- /** A, AAAA, CNAME, TXT, MX, NS, PTR or SPF for a plain `content` value. Structured types (SRV, CAA, TLSA…) need `data` instead. */
157
+ /** A, AAAA, CNAME, TXT, MX, NS, PTR or SPF for a plain `content` value. Structured types (SRV, CAA, TLSA...) need `data` instead. */
176
158
  type: string;
177
159
  /** `@` for the apex, a bare label (`www`) is expanded, or a full hostname. */
178
160
  name?: string;
179
161
  /** The value the record points at. */
180
162
  content?: string;
181
- /** 1 = automatic (Cloudflare's default), otherwise 60–86400. */
163
+ /** 1 = automatic (Cloudflare's default), otherwise 60-86400. */
182
164
  ttl?: number;
183
165
  /** Required for MX; lower is preferred. */
184
166
  priority?: number;
@@ -186,33 +168,29 @@ export interface CloudflareCreateRecordRequest {
186
168
  proxied?: boolean;
187
169
  /** Free-text note stored on the record (100 chars). */
188
170
  comment?: string;
189
- /** Structured value for record types Cloudflare models as an object (SRV, CAA…), passed through as given. */
171
+ /** Structured value for record types Cloudflare models as an object (SRV, CAA...), passed through as given. */
190
172
  data?: unknown;
191
173
  dryRun?: boolean;
192
174
  }
193
- export declare const CloudflareCreateRecordRequest: S.Schema<CloudflareCreateRecordRequest>;
194
175
  export type CloudflareCreateRecordResponse = unknown;
195
- export declare const CloudflareCreateRecordResponse: S.Schema<CloudflareCreateRecordResponse>;
196
176
  export interface CloudflareDeleteRecordRequest {
197
177
  domain: string;
198
178
  /** Cloudflare record id from /cloudflare/getRecords. */
199
179
  recordId: string;
200
180
  dryRun?: boolean;
201
181
  }
202
- export declare const CloudflareDeleteRecordRequest: S.Schema<CloudflareDeleteRecordRequest>;
203
182
  export type CloudflareDeleteRecordResponse = unknown;
204
- export declare const CloudflareDeleteRecordResponse: S.Schema<CloudflareDeleteRecordResponse>;
205
183
  export interface CloudflareEditRecordRequest {
206
184
  domain: string;
207
185
  /** Cloudflare record id from /cloudflare/getRecords. */
208
186
  recordId: string;
209
- /** A, AAAA, CNAME, TXT, MX, NS, PTR or SPF for a plain `content` value. Structured types (SRV, CAA, TLSA…) need `data` instead. */
187
+ /** A, AAAA, CNAME, TXT, MX, NS, PTR or SPF for a plain `content` value. Structured types (SRV, CAA, TLSA...) need `data` instead. */
210
188
  type?: string;
211
189
  /** `@` for the apex, a bare label (`www`) is expanded, or a full hostname. */
212
190
  name?: string;
213
191
  /** The value the record points at. */
214
192
  content?: string;
215
- /** 1 = automatic (Cloudflare's default), otherwise 60–86400. */
193
+ /** 1 = automatic (Cloudflare's default), otherwise 60-86400. */
216
194
  ttl?: number;
217
195
  /** Required for MX; lower is preferred. */
218
196
  priority?: number;
@@ -220,55 +198,38 @@ export interface CloudflareEditRecordRequest {
220
198
  proxied?: boolean;
221
199
  /** Free-text note stored on the record (100 chars). */
222
200
  comment?: string;
223
- /** Structured value for record types Cloudflare models as an object (SRV, CAA…), passed through as given. */
201
+ /** Structured value for record types Cloudflare models as an object (SRV, CAA...), passed through as given. */
224
202
  data?: unknown;
225
203
  dryRun?: boolean;
226
204
  }
227
- export declare const CloudflareEditRecordRequest: S.Schema<CloudflareEditRecordRequest>;
228
205
  export type CloudflareEditRecordResponse = unknown;
229
- export declare const CloudflareEditRecordResponse: S.Schema<CloudflareEditRecordResponse>;
230
206
  export interface CloudflareGetConnectionRequest {
231
207
  }
232
- export declare const CloudflareGetConnectionRequest: S.Schema<CloudflareGetConnectionRequest>;
233
208
  export type CloudflareGetConnectionResponse = unknown;
234
- export declare const CloudflareGetConnectionResponse: S.Schema<CloudflareGetConnectionResponse>;
235
209
  export interface CloudflareGetQueueRequest {
236
210
  }
237
- export declare const CloudflareGetQueueRequest: S.Schema<CloudflareGetQueueRequest>;
238
211
  export type CloudflareGetQueueResponse = unknown;
239
- export declare const CloudflareGetQueueResponse: S.Schema<CloudflareGetQueueResponse>;
240
212
  export interface CloudflareGetRecordsRequest {
241
213
  domain: string;
242
214
  }
243
- export declare const CloudflareGetRecordsRequest: S.Schema<CloudflareGetRecordsRequest>;
244
215
  export type CloudflareGetRecordsResponse = unknown;
245
- export declare const CloudflareGetRecordsResponse: S.Schema<CloudflareGetRecordsResponse>;
246
216
  export interface CloudflareGetZoneRequest {
247
217
  domain: string;
248
218
  }
249
- export declare const CloudflareGetZoneRequest: S.Schema<CloudflareGetZoneRequest>;
250
219
  export type CloudflareGetZoneResponse = unknown;
251
- export declare const CloudflareGetZoneResponse: S.Schema<CloudflareGetZoneResponse>;
252
220
  export interface CloudflareGetZoneSettingsRequest {
253
221
  domain: string;
254
222
  }
255
- export declare const CloudflareGetZoneSettingsRequest: S.Schema<CloudflareGetZoneSettingsRequest>;
256
223
  export type CloudflareGetZoneSettingsResponse = unknown;
257
- export declare const CloudflareGetZoneSettingsResponse: S.Schema<CloudflareGetZoneSettingsResponse>;
258
224
  export interface CloudflareInventoryRequest {
259
225
  }
260
- export declare const CloudflareInventoryRequest: S.Schema<CloudflareInventoryRequest>;
261
226
  export type CloudflareInventoryResponse = unknown;
262
- export declare const CloudflareInventoryResponse: S.Schema<CloudflareInventoryResponse>;
263
227
  export interface CloudflareRollbackRequest {
264
228
  domain: string;
265
229
  }
266
- export declare const CloudflareRollbackRequest: S.Schema<CloudflareRollbackRequest>;
267
230
  export type CloudflareRollbackResponse = unknown;
268
- export declare const CloudflareRollbackResponse: S.Schema<CloudflareRollbackResponse>;
269
231
  /** Optional. Limit to these names; "@" = apex, bare labels are expanded. */
270
232
  export type CloudflareSetProxyRequestRecordsList = Array<string>;
271
- export declare const CloudflareSetProxyRequestRecordsList: S.Schema<CloudflareSetProxyRequestRecordsList>;
272
233
  export interface CloudflareSetProxyRequest {
273
234
  domain: string;
274
235
  /** true = proxy through Cloudflare (orange cloud); false = DNS-only (grey cloud). */
@@ -277,21 +238,13 @@ export interface CloudflareSetProxyRequest {
277
238
  records?: CloudflareSetProxyRequestRecordsList;
278
239
  dryRun?: boolean;
279
240
  }
280
- export declare const CloudflareSetProxyRequest: S.Schema<CloudflareSetProxyRequest>;
281
241
  export type CloudflareSetProxyResponse = unknown;
282
- export declare const CloudflareSetProxyResponse: S.Schema<CloudflareSetProxyResponse>;
283
242
  export type CloudflareSetZoneSettingsRequestSsl = "off" | "flexible" | "full" | "strict";
284
- export declare const CloudflareSetZoneSettingsRequestSsl: any;
285
243
  export type CloudflareSetZoneSettingsRequestAlwaysUseHttps = "on" | "off";
286
- export declare const CloudflareSetZoneSettingsRequestAlwaysUseHttps: any;
287
244
  export type CloudflareSetZoneSettingsRequestAutomaticHttpsRewrites = "on" | "off";
288
- export declare const CloudflareSetZoneSettingsRequestAutomaticHttpsRewrites: any;
289
245
  export type CloudflareSetZoneSettingsRequestMinTlsVersion = "1.0" | "1.1" | "1.2" | "1.3";
290
- export declare const CloudflareSetZoneSettingsRequestMinTlsVersion: any;
291
246
  export type CloudflareSetZoneSettingsRequestDevelopmentMode = "on" | "off";
292
- export declare const CloudflareSetZoneSettingsRequestDevelopmentMode: any;
293
247
  export type CloudflareSetZoneSettingsRequestCacheLevel = "aggressive" | "basic" | "simplified";
294
- export declare const CloudflareSetZoneSettingsRequestCacheLevel: any;
295
248
  export interface CloudflareSetZoneSettingsRequest {
296
249
  domain: string;
297
250
  ssl?: CloudflareSetZoneSettingsRequestSsl | (string & {});
@@ -302,41 +255,33 @@ export interface CloudflareSetZoneSettingsRequest {
302
255
  cache_level?: CloudflareSetZoneSettingsRequestCacheLevel | (string & {});
303
256
  dryRun?: boolean;
304
257
  }
305
- export declare const CloudflareSetZoneSettingsRequest: S.Schema<CloudflareSetZoneSettingsRequest>;
306
258
  export type CloudflareSetZoneSettingsResponse = unknown;
307
- export declare const CloudflareSetZoneSettingsResponse: S.Schema<CloudflareSetZoneSettingsResponse>;
308
259
  /** Domain names to move. A comma-separated string is also accepted. */
309
260
  export type ConnectCloudflareRequestDomainsList = Array<string>;
310
- export declare const ConnectCloudflareRequestDomainsList: S.Schema<ConnectCloudflareRequestDomainsList>;
311
261
  export interface ConnectCloudflareRequest {
312
262
  /** Domain names to move. A comma-separated string is also accepted. */
313
263
  domains: ConnectCloudflareRequestDomainsList;
314
264
  /** Validate and return per-domain verdicts without queueing. */
315
265
  dryRun?: boolean;
316
266
  }
317
- export declare const ConnectCloudflareRequest: S.Schema<ConnectCloudflareRequest>;
318
267
  export type ConnectCloudflareResponse = unknown;
319
- export declare const ConnectCloudflareResponse: S.Schema<ConnectCloudflareResponse>;
320
268
  export interface CreateAccountInviteRequest {
321
269
  /** Email address to pre-fill on the registration form (optional) */
322
270
  email?: string;
323
271
  /** 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. */
324
272
  returnUrl?: string;
325
273
  }
326
- export declare const CreateAccountInviteRequest: S.Schema<CreateAccountInviteRequest>;
327
274
  export interface CreateAccountInviteResponse {
328
275
  status: string;
329
- /** Opaque token — pass to `/account/inviteStatus` to track completion */
276
+ /** Opaque token -- pass to `/account/inviteStatus` to track completion */
330
277
  inviteToken: string;
331
278
  /** URL to send to the prospective user. Opens Porkbun's standard registration page. */
332
279
  inviteUrl: string;
333
280
  /** UTC datetime when the invite token expires (48 hours from creation) */
334
281
  expires: string;
335
282
  }
336
- export declare const CreateAccountInviteResponse: S.Schema<CreateAccountInviteResponse>;
337
283
  /** DNS record type */
338
284
  export type CreateDnsRequestType = "A" | "AAAA" | "MX" | "CNAME" | "ALIAS" | "TXT" | "NS" | "SRV" | "TLSA" | "CAA" | "SSHFP" | "HTTPS" | "SVCB";
339
- export declare const CreateDnsRequestType: any;
340
285
  export interface CreateDnsRequest {
341
286
  domain: string;
342
287
  /** Subdomain for the record (e.g. 'www', '*' for wildcard, blank for root). Do not include the domain name itself. */
@@ -351,33 +296,28 @@ export interface CreateDnsRequest {
351
296
  prio?: number;
352
297
  /** Optional notes to store with the record (not served in DNS) */
353
298
  notes?: string;
354
- /** If true, validate only — checks ownership/type/permissions and returns wouldSucceed without creating the record. */
299
+ /** If true, validate only -- checks ownership/type/permissions and returns wouldSucceed without creating the record. */
355
300
  dryRun?: boolean;
356
301
  }
357
- export declare const CreateDnsRequest: S.Schema<CreateDnsRequest>;
358
302
  /** Advisory, and present only when there is something to say. It never means the call failed. The one to handle: a DNS write is accepted and stored even when the domain is NOT delegated to our nameservers -- we keep the zone ready in case the delegation comes back -- so the write changed nothing that resolves, and this field says so. Show these to the user as written. */
359
303
  export type DnsWriteWarnings = Array<string>;
360
- export declare const DnsWriteWarnings: S.Schema<DnsWriteWarnings>;
361
304
  export interface CreateDnsResponse {
362
305
  status?: string;
363
306
  /** The numeric ID of the newly created record */
364
307
  id?: string;
365
308
  warnings?: DnsWriteWarnings;
366
309
  }
367
- export declare const CreateDnsResponse: S.Schema<CreateDnsResponse>;
368
310
  /** Must be 'yes' or '1' to confirm agreement to the Domain Name Registration Agreement, Product Terms of Service, Privacy Policy, and automatic renewal terms. */
369
311
  export type CreateDomainRequestAgreeToTerms = "yes" | "1";
370
- export declare const CreateDomainRequestAgreeToTerms: any;
371
312
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
372
313
  export type CreateDomainRequestPayWith = "usdc";
373
- export declare const CreateDomainRequestPayWith: any;
374
314
  export interface CreateDomainRequest {
375
315
  domain: string;
376
316
  /** 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. */
377
317
  cost: number;
378
318
  /** Must be 'yes' or '1' to confirm agreement to the Domain Name Registration Agreement, Product Terms of Service, Privacy Policy, and automatic renewal terms. */
379
319
  agreeToTerms: CreateDomainRequestAgreeToTerms | (string & {});
380
- /** 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). */
320
+ /** 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). */
381
321
  whoisPrivacy?: boolean;
382
322
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
383
323
  payWith?: CreateDomainRequestPayWith | (string & {});
@@ -386,7 +326,6 @@ export interface CreateDomainRequest {
386
326
  /** Optional. When true, runs all pre-flight validation (availability, pricing, cost match, eligibility, funds, monthly spend limit, including the $100 default when none is set) 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. */
387
327
  dryRun?: boolean;
388
328
  }
389
- export declare const CreateDomainRequest: S.Schema<CreateDomainRequest>;
390
329
  /** Create-attempt rate limit state */
391
330
  export interface CreateDomainResponseLimitsAttempts {
392
331
  /** Window in seconds */
@@ -397,7 +336,6 @@ export interface CreateDomainResponseLimitsAttempts {
397
336
  used?: number;
398
337
  naturalLanguage?: string;
399
338
  }
400
- export declare const CreateDomainResponseLimitsAttempts: S.Schema<CreateDomainResponseLimitsAttempts>;
401
339
  /** Successful-registration rate limit state */
402
340
  export interface CreateDomainResponseLimitsSuccess {
403
341
  /** Window in seconds */
@@ -408,7 +346,6 @@ export interface CreateDomainResponseLimitsSuccess {
408
346
  used?: number;
409
347
  naturalLanguage?: string;
410
348
  }
411
- export declare const CreateDomainResponseLimitsSuccess: S.Schema<CreateDomainResponseLimitsSuccess>;
412
349
  /** Current rate limit state for both attempt and success limits */
413
350
  export interface CreateDomainResponseLimits {
414
351
  /** Create-attempt rate limit state */
@@ -416,7 +353,6 @@ export interface CreateDomainResponseLimits {
416
353
  /** Successful-registration rate limit state */
417
354
  success?: CreateDomainResponseLimitsSuccess;
418
355
  }
419
- export declare const CreateDomainResponseLimits: S.Schema<CreateDomainResponseLimits>;
420
356
  export interface CreateDomainResponse {
421
357
  status: string;
422
358
  /** The registered domain name */
@@ -434,15 +370,13 @@ export interface CreateDomainResponse {
434
370
  /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
435
371
  requestId?: string;
436
372
  }
437
- export declare const CreateDomainResponse: S.Schema<CreateDomainResponse>;
438
373
  export type DryRunPreviewResponseOperation = "registration" | "renewal" | "transfer";
439
- export declare const DryRunPreviewResponseOperation: any;
440
374
  /** 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). */
441
375
  export interface DryRunPreviewResponse {
442
376
  status: string;
443
- /** Always true on a dry-run preview — distinguishes it from a real success response. */
377
+ /** Always true on a dry-run preview -- distinguishes it from a real success response. */
444
378
  dryRun: boolean;
445
- /** 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.) */
379
+ /** 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.) */
446
380
  wouldSucceed: boolean;
447
381
  operation: DryRunPreviewResponseOperation;
448
382
  domain: string;
@@ -472,27 +406,21 @@ export interface DryRunPreviewResponse {
472
406
  /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
473
407
  requestId?: string;
474
408
  }
475
- export declare const DryRunPreviewResponse: S.Schema<DryRunPreviewResponse>;
476
409
  export type CreateDomainResponseBody = CreateDomainResponse | DryRunPreviewResponse;
477
- export declare const CreateDomainResponseBody: S.Schema<CreateDomainResponseBody>;
478
410
  export type CreateDomainResponse2 = CreateDomainResponseBody;
479
- export declare const CreateDomainResponse2: S.Schema<CreateDomainResponse2>;
480
- /** 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). */
411
+ /** 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). */
481
412
  export type CreateHostingRequestSku = "PIXIESECURESTATICM2" | "PIXIESECURESTATICY2";
482
- export declare const CreateHostingRequestSku: any;
483
413
  export type CreateHostingRequestAgreeToTerms = "yes";
484
- export declare const CreateHostingRequestAgreeToTerms: any;
485
414
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
486
415
  export type CreateHostingRequestPayWith = "usdc";
487
- export declare const CreateHostingRequestPayWith: any;
488
416
  export interface CreateHostingRequest {
489
417
  domain: string;
490
- /** 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). */
418
+ /** 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). */
491
419
  sku: CreateHostingRequestSku | (string & {});
492
420
  /** 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. */
493
421
  acknowledgedCost: number;
494
422
  agreeToTerms: CreateHostingRequestAgreeToTerms | (string & {});
495
- /** Required (true) when the domain is not already on Porkbun nameservers — provisioning will switch them. */
423
+ /** Required (true) when the domain is not already on Porkbun nameservers -- provisioning will switch them. */
496
424
  agreeToNameserverChange?: boolean;
497
425
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
498
426
  payWith?: CreateHostingRequestPayWith | (string & {});
@@ -501,9 +429,7 @@ export interface CreateHostingRequest {
501
429
  /** Validate + preview without provisioning or charging. */
502
430
  dryRun?: boolean;
503
431
  }
504
- export declare const CreateHostingRequest: S.Schema<CreateHostingRequest>;
505
432
  export type CreateHostingResponseHostingStatus = "ACTIVE" | "PENDING";
506
- export declare const CreateHostingResponseHostingStatus: any;
507
433
  export interface CreateHostingResponseHosting {
508
434
  domain?: string;
509
435
  product?: string;
@@ -515,13 +441,11 @@ export interface CreateHostingResponseHosting {
515
441
  autoRenew?: boolean;
516
442
  sku?: string;
517
443
  }
518
- export declare const CreateHostingResponseHosting: S.Schema<CreateHostingResponseHosting>;
519
444
  export interface CreateHostingResponseCost {
520
445
  amount?: number;
521
446
  formatted?: string;
522
447
  interval?: string;
523
448
  }
524
- export declare const CreateHostingResponseCost: S.Schema<CreateHostingResponseCost>;
525
449
  export interface CreateHostingResponse {
526
450
  status?: string;
527
451
  orderId?: number;
@@ -531,23 +455,18 @@ export interface CreateHostingResponse {
531
455
  cost?: CreateHostingResponseCost;
532
456
  message?: string;
533
457
  }
534
- export declare const CreateHostingResponse: S.Schema<CreateHostingResponse>;
535
458
  /** Event types to subscribe to. Omit, or pass ["*"], for all events. Prefix wildcards like "dns.*" are allowed. */
536
459
  export type CreateWebhookRequestEventsList = Array<string>;
537
- export declare const CreateWebhookRequestEventsList: S.Schema<CreateWebhookRequestEventsList>;
538
460
  export interface CreateWebhookRequest {
539
- /** HTTPS endpoint that receives the signed POST. Port 443 only, and the hostname must resolve to a public internet address — private/loopback/reserved targets are refused. */
461
+ /** HTTPS endpoint that receives the signed POST. Port 443 only, and the hostname must resolve to a public internet address -- private/loopback/reserved targets are refused. */
540
462
  url: string;
541
463
  /** Event types to subscribe to. Omit, or pass ["*"], for all events. Prefix wildcards like "dns.*" are allowed. */
542
464
  events?: CreateWebhookRequestEventsList;
543
465
  }
544
- export declare const CreateWebhookRequest: S.Schema<CreateWebhookRequest>;
545
466
  /** Subscribed event types, or ["*"] for all. */
546
467
  export type WebhookEndpointEventsList = Array<string>;
547
- export declare const WebhookEndpointEventsList: S.Schema<WebhookEndpointEventsList>;
548
468
  /** ACTIVE or DISABLED. */
549
469
  export type WebhookEndpointStatus = "ACTIVE" | "DISABLED";
550
- export declare const WebhookEndpointStatus: any;
551
470
  export interface WebhookEndpoint {
552
471
  /** Numeric endpoint id. */
553
472
  id?: number;
@@ -570,20 +489,16 @@ export interface WebhookEndpoint {
570
489
  /** When the endpoint was created. */
571
490
  createDate?: string;
572
491
  }
573
- export declare const WebhookEndpoint: S.Schema<WebhookEndpoint>;
574
492
  export interface WebhookEndpointResponse {
575
493
  status?: string;
576
494
  endpoint?: WebhookEndpoint;
577
495
  }
578
- export declare const WebhookEndpointResponse: S.Schema<WebhookEndpointResponse>;
579
496
  export interface DeleteDnsRequest {
580
497
  domain: string;
581
498
  /** Numeric DNS record ID */
582
499
  id: string;
583
500
  }
584
- export declare const DeleteDnsRequest: S.Schema<DeleteDnsRequest>;
585
501
  export type BasicResponseStatus = "SUCCESS" | "ERROR";
586
- export declare const BasicResponseStatus: any;
587
502
  export interface BasicResponse {
588
503
  warnings?: DnsWriteWarnings;
589
504
  status: BasicResponseStatus;
@@ -592,54 +507,41 @@ export interface BasicResponse {
592
507
  /** Machine-readable error code. Present when status is ERROR. */
593
508
  code?: string;
594
509
  }
595
- export declare const BasicResponse: S.Schema<BasicResponse>;
596
510
  export interface DeleteHostingRequest {
597
511
  domain: string;
598
512
  }
599
- export declare const DeleteHostingRequest: S.Schema<DeleteHostingRequest>;
600
513
  export interface DeleteWebhookRequest {
601
514
  /** Endpoint id. */
602
515
  id: number;
603
516
  }
604
- export declare const DeleteWebhookRequest: S.Schema<DeleteWebhookRequest>;
605
517
  export interface DeleteWebhookResponse {
606
518
  status?: string;
607
519
  message?: string;
608
520
  }
609
- export declare const DeleteWebhookResponse: S.Schema<DeleteWebhookResponse>;
610
521
  export interface DeployHostingRequestFilesItem {
611
522
  path?: string;
612
523
  /** base64-encoded file contents */
613
524
  content?: string;
614
525
  }
615
- export declare const DeployHostingRequestFilesItem: S.Schema<DeployHostingRequestFilesItem>;
616
526
  export type DeployHostingRequestFilesList = Array<DeployHostingRequestFilesItem>;
617
- export declare const DeployHostingRequestFilesList: S.Schema<DeployHostingRequestFilesList>;
618
527
  export interface DeployHostingRequest {
619
528
  domain: string;
620
529
  files: DeployHostingRequestFilesList;
621
530
  }
622
- export declare const DeployHostingRequest: S.Schema<DeployHostingRequest>;
623
531
  export type DeployHostingResponseDeployedList = Array<string>;
624
- export declare const DeployHostingResponseDeployedList: S.Schema<DeployHostingResponseDeployedList>;
625
532
  export interface DeployHostingResponseSkippedItem {
626
533
  path?: string;
627
534
  reason?: string;
628
535
  }
629
- export declare const DeployHostingResponseSkippedItem: S.Schema<DeployHostingResponseSkippedItem>;
630
536
  export type DeployHostingResponseSkippedList = Array<DeployHostingResponseSkippedItem>;
631
- export declare const DeployHostingResponseSkippedList: S.Schema<DeployHostingResponseSkippedList>;
632
537
  export interface DeployHostingResponse {
633
538
  status?: string;
634
539
  deployed?: DeployHostingResponseDeployedList;
635
540
  skipped?: DeployHostingResponseSkippedList;
636
541
  }
637
- export declare const DeployHostingResponse: S.Schema<DeployHostingResponse>;
638
542
  export interface DisconnectCloudflareRequest {
639
543
  }
640
- export declare const DisconnectCloudflareRequest: S.Schema<DisconnectCloudflareRequest>;
641
544
  export type DisconnectCloudflareResponse = unknown;
642
- export declare const DisconnectCloudflareResponse: S.Schema<DisconnectCloudflareResponse>;
643
545
  export interface DnsCreateDnssecRecordRequest {
644
546
  domain: string;
645
547
  /** DNSSEC key tag */
@@ -661,9 +563,7 @@ export interface DnsCreateDnssecRecordRequest {
661
563
  /** Key data public key in base64 (optional) */
662
564
  keyDataPubKey?: string;
663
565
  }
664
- export declare const DnsCreateDnssecRecordRequest: S.Schema<DnsCreateDnssecRecordRequest>;
665
566
  export type DnsCreateDnssecRecordResponseStatus = "SUCCESS" | "ERROR";
666
- export declare const DnsCreateDnssecRecordResponseStatus: any;
667
567
  export interface DnsCreateDnssecRecordResponse {
668
568
  warnings?: DnsWriteWarnings;
669
569
  status: DnsCreateDnssecRecordResponseStatus;
@@ -672,32 +572,27 @@ export interface DnsCreateDnssecRecordResponse {
672
572
  /** Machine-readable error code. Present when status is ERROR. */
673
573
  code?: string;
674
574
  }
675
- export declare const DnsCreateDnssecRecordResponse: S.Schema<DnsCreateDnssecRecordResponse>;
676
575
  export interface DnsDeleteByNameTypeRequest {
677
576
  domain: string;
678
577
  type: string;
679
578
  /** Subdomain portion only. Omit or leave empty for root domain records. */
680
579
  subdomain: string;
681
580
  }
682
- export declare const DnsDeleteByNameTypeRequest: S.Schema<DnsDeleteByNameTypeRequest>;
683
581
  export interface DnsDeleteDnssecRecordRequest {
684
582
  domain: string;
685
583
  /** The DNSSEC key tag value */
686
584
  keytag: string;
687
585
  }
688
- export declare const DnsDeleteDnssecRecordRequest: S.Schema<DnsDeleteDnssecRecordRequest>;
689
586
  export interface DnsDiffRequest {
690
587
  domain: string;
691
588
  /** A restore point id from GET /dns/history/{domain}. */
692
589
  snapshotId: number;
693
590
  }
694
- export declare const DnsDiffRequest: S.Schema<DnsDiffRequest>;
695
591
  export interface DnsDiffResponseSnapshot {
696
592
  id?: number;
697
593
  takenAt?: string;
698
594
  reason?: string;
699
595
  }
700
- export declare const DnsDiffResponseSnapshot: S.Schema<DnsDiffResponseSnapshot>;
701
596
  export interface DnsHistoryRecord {
702
597
  /** Fully qualified. */
703
598
  name?: string;
@@ -707,13 +602,10 @@ export interface DnsHistoryRecord {
707
602
  ttl?: number;
708
603
  prio?: number | null;
709
604
  }
710
- export declare const DnsHistoryRecord: S.Schema<DnsHistoryRecord>;
711
605
  /** In the restore point, not live. A restore adds these back. */
712
606
  export type DnsDiffResponseMissingList = Array<DnsHistoryRecord>;
713
- export declare const DnsDiffResponseMissingList: S.Schema<DnsDiffResponseMissingList>;
714
607
  /** Live, not in the restore point. A restore leaves these alone unless prune is true. */
715
608
  export type DnsDiffResponseExtraList = Array<DnsHistoryRecord>;
716
- export declare const DnsDiffResponseExtraList: S.Schema<DnsDiffResponseExtraList>;
717
609
  export interface DnsDiffResponse {
718
610
  status?: string;
719
611
  domain?: string;
@@ -724,7 +616,6 @@ export interface DnsDiffResponse {
724
616
  extra?: DnsDiffResponseExtraList;
725
617
  inSync?: boolean;
726
618
  }
727
- export declare const DnsDiffResponse: S.Schema<DnsDiffResponse>;
728
619
  export interface DnsEditByNameTypeRequest {
729
620
  domain: string;
730
621
  type: string;
@@ -739,11 +630,9 @@ export interface DnsEditByNameTypeRequest {
739
630
  /** 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. */
740
631
  notes?: string;
741
632
  }
742
- export declare const DnsEditByNameTypeRequest: S.Schema<DnsEditByNameTypeRequest>;
743
633
  export interface DnsGetDnssecRecordsRequest {
744
634
  domain: string;
745
635
  }
746
- export declare const DnsGetDnssecRecordsRequest: S.Schema<DnsGetDnssecRecordsRequest>;
747
636
  export interface DnsGetDnssecRecordsResponseRecordsValue {
748
637
  keyTag?: string;
749
638
  alg?: string;
@@ -752,22 +641,18 @@ export interface DnsGetDnssecRecordsResponseRecordsValue {
752
641
  /** Present for key data records */
753
642
  pubKey?: string;
754
643
  }
755
- export declare const DnsGetDnssecRecordsResponseRecordsValue: S.Schema<DnsGetDnssecRecordsResponseRecordsValue>;
756
644
  /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
757
645
  export type DnsGetDnssecRecordsResponseRecordsMap = {
758
646
  [key: string]: DnsGetDnssecRecordsResponseRecordsValue | undefined;
759
647
  };
760
- export declare const DnsGetDnssecRecordsResponseRecordsMap: S.Schema<DnsGetDnssecRecordsResponseRecordsMap>;
761
648
  export interface DnsGetDnssecRecordsResponse {
762
649
  status?: string;
763
650
  /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
764
651
  records?: DnsGetDnssecRecordsResponseRecordsMap;
765
652
  }
766
- export declare const DnsGetDnssecRecordsResponse: S.Schema<DnsGetDnssecRecordsResponse>;
767
653
  export interface DnsHistoryRequest {
768
654
  domain: string;
769
655
  }
770
- export declare const DnsHistoryRequest: S.Schema<DnsHistoryRequest>;
771
656
  export interface DnsHistoryResponseRestorePointsItem {
772
657
  /** Pass this to /dns/diff and /dns/restore. */
773
658
  id?: number;
@@ -781,33 +666,25 @@ export interface DnsHistoryResponseRestorePointsItem {
781
666
  /** True when the live zone is identical to this point, so you can see where you are without diffing. */
782
667
  matchesLive?: boolean;
783
668
  }
784
- export declare const DnsHistoryResponseRestorePointsItem: S.Schema<DnsHistoryResponseRestorePointsItem>;
785
669
  /** Newest first, up to 50. */
786
670
  export type DnsHistoryResponseRestorePointsList = Array<DnsHistoryResponseRestorePointsItem>;
787
- export declare const DnsHistoryResponseRestorePointsList: S.Schema<DnsHistoryResponseRestorePointsList>;
788
671
  export interface DnsHistoryResponse {
789
672
  status?: string;
790
673
  domain?: string;
791
674
  /** Newest first, up to 50. */
792
675
  restorePoints?: DnsHistoryResponseRestorePointsList;
793
676
  }
794
- export declare const DnsHistoryResponse: S.Schema<DnsHistoryResponse>;
795
677
  export type DnsPreflightRequestIntent = "general" | "move-nameservers" | "transfer-out" | "enable-dnssec";
796
- export declare const DnsPreflightRequestIntent: any;
797
678
  export interface DnsPreflightRequest {
798
679
  domain: string;
799
680
  /** What you are about to do. One of general, move-nameservers, transfer-out, enable-dnssec. May also be sent in the request body. */
800
681
  intent?: DnsPreflightRequestIntent | (string & {});
801
682
  }
802
- export declare const DnsPreflightRequest: S.Schema<DnsPreflightRequest>;
803
683
  /** Check ids that will break something. Read these first. */
804
684
  export type DnsPreflightResponseBlockersList = Array<string>;
805
- export declare const DnsPreflightResponseBlockersList: S.Schema<DnsPreflightResponseBlockersList>;
806
685
  /** Will not break outright, but usually what the customer asks about next. */
807
686
  export type DnsPreflightResponseWarningsList = Array<string>;
808
- export declare const DnsPreflightResponseWarningsList: S.Schema<DnsPreflightResponseWarningsList>;
809
687
  export type DnsPreflightResponseChecksItemSeverity = "blocker" | "warning" | "info";
810
- export declare const DnsPreflightResponseChecksItemSeverity: any;
811
688
  export interface DnsPreflightResponseChecksItem {
812
689
  id?: string;
813
690
  severity?: DnsPreflightResponseChecksItemSeverity;
@@ -818,10 +695,8 @@ export interface DnsPreflightResponseChecksItem {
818
695
  /** What to do about it. Absent on checks that passed. */
819
696
  next_action?: string;
820
697
  }
821
- export declare const DnsPreflightResponseChecksItem: S.Schema<DnsPreflightResponseChecksItem>;
822
698
  /** Every check that ran, passing ones included, so a caller can show what was verified rather than only what failed. */
823
699
  export type DnsPreflightResponseChecksList = Array<DnsPreflightResponseChecksItem>;
824
- export declare const DnsPreflightResponseChecksList: S.Schema<DnsPreflightResponseChecksList>;
825
700
  export interface DnsPreflightResponse {
826
701
  status?: string;
827
702
  domain?: string;
@@ -835,16 +710,13 @@ export interface DnsPreflightResponse {
835
710
  /** Every check that ran, passing ones included, so a caller can show what was verified rather than only what failed. */
836
711
  checks?: DnsPreflightResponseChecksList;
837
712
  }
838
- export declare const DnsPreflightResponse: S.Schema<DnsPreflightResponse>;
839
713
  export interface DnsRetrieveByIdRequest {
840
714
  domain: string;
841
715
  /** Numeric DNS record ID */
842
716
  id: string;
843
717
  }
844
- export declare const DnsRetrieveByIdRequest: S.Schema<DnsRetrieveByIdRequest>;
845
718
  /** Whether Cloudflare proxy is enabled for this domain */
846
719
  export type DnsRecordsResponseCloudflare = "enabled" | "disabled";
847
- export declare const DnsRecordsResponseCloudflare: any;
848
720
  export interface DnsRecordsResponseRecordsItem {
849
721
  /** Numeric record ID */
850
722
  id?: string;
@@ -861,16 +733,13 @@ export interface DnsRecordsResponseRecordsItem {
861
733
  /** Optional notes attached to the record. Null if not set. */
862
734
  notes?: string | null;
863
735
  }
864
- export declare const DnsRecordsResponseRecordsItem: S.Schema<DnsRecordsResponseRecordsItem>;
865
736
  export type DnsRecordsResponseRecordsList = Array<DnsRecordsResponseRecordsItem>;
866
- export declare const DnsRecordsResponseRecordsList: S.Schema<DnsRecordsResponseRecordsList>;
867
737
  export interface DnsRecordsResponse {
868
738
  status: string;
869
739
  /** Whether Cloudflare proxy is enabled for this domain */
870
740
  cloudflare?: DnsRecordsResponseCloudflare;
871
741
  records: DnsRecordsResponseRecordsList;
872
742
  }
873
- export declare const DnsRecordsResponse: S.Schema<DnsRecordsResponse>;
874
743
  export interface DnsRetrieveByNameTypeRequest {
875
744
  domain: string;
876
745
  /** DNS record type (A, AAAA, CNAME, MX, TXT, etc.) */
@@ -878,11 +747,9 @@ export interface DnsRetrieveByNameTypeRequest {
878
747
  /** Subdomain portion only. Omit or leave empty for root domain records. */
879
748
  subdomain: string;
880
749
  }
881
- export declare const DnsRetrieveByNameTypeRequest: S.Schema<DnsRetrieveByNameTypeRequest>;
882
750
  export interface DnsScanRequest {
883
751
  domain: string;
884
752
  }
885
- export declare const DnsScanRequest: S.Schema<DnsScanRequest>;
886
753
  export interface DnsRecordInput {
887
754
  /** Subdomain prefix only, or empty string for the apex. `@` and a fully-qualified name are both accepted and normalised. */
888
755
  name?: string;
@@ -894,35 +761,28 @@ export interface DnsRecordInput {
894
761
  /** Priority, for MX and SRV. */
895
762
  prio?: number | null;
896
763
  }
897
- export declare const DnsRecordInput: S.Schema<DnsRecordInput>;
898
764
  export type DnsScanResponseRecordsList = Array<DnsRecordInput>;
899
- export declare const DnsScanResponseRecordsList: S.Schema<DnsScanResponseRecordsList>;
900
765
  export interface DnsScanResponse {
901
766
  status?: string;
902
767
  domain?: string;
903
768
  recordCount?: number;
904
769
  records?: DnsScanResponseRecordsList;
905
770
  }
906
- export declare const DnsScanResponse: S.Schema<DnsScanResponse>;
907
- /** 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`. */
771
+ /** 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`. */
908
772
  export type DomainAddUrlForwardRequestType = "temporary" | "permanent" | "masked";
909
- export declare const DomainAddUrlForwardRequestType: any;
910
773
  /** 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). */
911
774
  export type DomainAddUrlForwardRequestRedirectType = "301" | "302" | "307" | "masked";
912
- export declare const DomainAddUrlForwardRequestRedirectType: any;
913
775
  /** Whether to append the request URI path to the forwarding destination */
914
776
  export type DomainAddUrlForwardRequestIncludePath = "yes" | "no";
915
- export declare const DomainAddUrlForwardRequestIncludePath: any;
916
777
  /** Whether to also forward all subdomains of the forwarded subdomain */
917
778
  export type DomainAddUrlForwardRequestWildcard = "yes" | "no";
918
- export declare const DomainAddUrlForwardRequestWildcard: any;
919
779
  export interface DomainAddUrlForwardRequest {
920
780
  domain: string;
921
781
  /** Subdomain to forward (optional, leave blank or omit for root domain). Alphanumeric and hyphens only. */
922
782
  subdomain?: string;
923
783
  /** Destination URL to forward to */
924
784
  location: string;
925
- /** 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`. */
785
+ /** 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`. */
926
786
  type: DomainAddUrlForwardRequestType | (string & {});
927
787
  /** 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). */
928
788
  redirectType?: DomainAddUrlForwardRequestRedirectType | (string & {});
@@ -931,12 +791,10 @@ export interface DomainAddUrlForwardRequest {
931
791
  /** Whether to also forward all subdomains of the forwarded subdomain */
932
792
  wildcard: DomainAddUrlForwardRequestWildcard | (string & {});
933
793
  }
934
- export declare const DomainAddUrlForwardRequest: S.Schema<DomainAddUrlForwardRequest>;
935
794
  export interface DomainCancelTransferRequest {
936
795
  /** Domain name. */
937
796
  domain: string;
938
797
  }
939
- export declare const DomainCancelTransferRequest: S.Schema<DomainCancelTransferRequest>;
940
798
  export interface DomainCancelTransferResponse {
941
799
  status?: string;
942
800
  domain?: string;
@@ -951,34 +809,26 @@ export interface DomainCancelTransferResponse {
951
809
  orderId?: number;
952
810
  message?: string;
953
811
  }
954
- export declare const DomainCancelTransferResponse: S.Schema<DomainCancelTransferResponse>;
955
812
  export interface DomainCheckDomainRequest {
956
813
  domain: string;
957
814
  }
958
- export declare const DomainCheckDomainRequest: S.Schema<DomainCheckDomainRequest>;
959
815
  /** Whether the domain is available for registration */
960
816
  export type CheckDomainResponseResponseAvail = "yes" | "no";
961
- export declare const CheckDomainResponseResponseAvail: any;
962
817
  /** Whether the returned price is a first-year promotional price */
963
818
  export type CheckDomainResponseResponseFirstYearPromo = "yes" | "no";
964
- export declare const CheckDomainResponseResponseFirstYearPromo: any;
965
819
  /** Whether this is a premium domain */
966
820
  export type CheckDomainResponseResponsePremium = "yes" | "no";
967
- export declare const CheckDomainResponseResponsePremium: any;
968
821
  export interface CheckDomainResponseResponseAdditionalRenewal {
969
822
  type?: string;
970
823
  price?: string;
971
824
  regularPrice?: string;
972
825
  }
973
- export declare const CheckDomainResponseResponseAdditionalRenewal: S.Schema<CheckDomainResponseResponseAdditionalRenewal>;
974
826
  export type CheckDomainResponseResponseAdditionalTransfer = CheckDomainResponseResponseAdditionalRenewal;
975
- export declare const CheckDomainResponseResponseAdditionalTransfer: S.Schema<CheckDomainResponseResponseAdditionalRenewal>;
976
827
  /** Renewal and transfer pricing for this domain */
977
828
  export interface CheckDomainResponseResponseAdditional {
978
829
  renewal?: CheckDomainResponseResponseAdditionalRenewal;
979
830
  transfer?: CheckDomainResponseResponseAdditionalRenewal;
980
831
  }
981
- export declare const CheckDomainResponseResponseAdditional: S.Schema<CheckDomainResponseResponseAdditional>;
982
832
  export interface CheckDomainResponseResponse {
983
833
  /** Whether the domain is available for registration */
984
834
  avail?: CheckDomainResponseResponseAvail;
@@ -997,7 +847,6 @@ export interface CheckDomainResponseResponse {
997
847
  /** Renewal and transfer pricing for this domain */
998
848
  additional?: CheckDomainResponseResponseAdditional;
999
849
  }
1000
- export declare const CheckDomainResponseResponse: S.Schema<CheckDomainResponseResponse>;
1001
850
  /** Current rate limit usage for this account */
1002
851
  export interface CheckDomainResponseLimits {
1003
852
  /** Rate limit window in seconds */
@@ -1009,7 +858,6 @@ export interface CheckDomainResponseLimits {
1009
858
  /** Human-readable rate limit summary */
1010
859
  naturalLanguage?: string;
1011
860
  }
1012
- export declare const CheckDomainResponseLimits: S.Schema<CheckDomainResponseLimits>;
1013
861
  export interface CheckDomainResponse {
1014
862
  status: string;
1015
863
  response: CheckDomainResponseResponse;
@@ -1018,10 +866,8 @@ export interface CheckDomainResponse {
1018
866
  /** Seconds remaining until the rate limit window resets */
1019
867
  ttlRemaining?: number;
1020
868
  }
1021
- export declare const CheckDomainResponse: S.Schema<CheckDomainResponse>;
1022
869
  /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
1023
870
  export type DomainCreateGlueRequestIpsList = Array<string>;
1024
- export declare const DomainCreateGlueRequestIpsList: S.Schema<DomainCreateGlueRequestIpsList>;
1025
871
  export interface DomainCreateGlueRequest {
1026
872
  domain: string;
1027
873
  /** The subdomain portion only (e.g. 'ns1' for ns1.example.com) */
@@ -1029,22 +875,18 @@ export interface DomainCreateGlueRequest {
1029
875
  /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
1030
876
  ips: DomainCreateGlueRequestIpsList;
1031
877
  }
1032
- export declare const DomainCreateGlueRequest: S.Schema<DomainCreateGlueRequest>;
1033
878
  export interface DomainDeleteGlueRequest {
1034
879
  domain: string;
1035
880
  subdomain: string;
1036
881
  }
1037
- export declare const DomainDeleteGlueRequest: S.Schema<DomainDeleteGlueRequest>;
1038
882
  export interface DomainDeleteUrlForwardRequest {
1039
883
  domain: string;
1040
884
  /** URL forward record ID */
1041
885
  id: string;
1042
886
  }
1043
- export declare const DomainDeleteUrlForwardRequest: S.Schema<DomainDeleteUrlForwardRequest>;
1044
887
  export interface DomainGetContactsRequest {
1045
888
  domain: string;
1046
889
  }
1047
- export declare const DomainGetContactsRequest: S.Schema<DomainGetContactsRequest>;
1048
890
  /** 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. */
1049
891
  export interface DomainContact {
1050
892
  firstName?: string;
@@ -1066,51 +908,40 @@ export interface DomainContact {
1066
908
  fax?: string;
1067
909
  email?: string;
1068
910
  }
1069
- export declare const DomainContact: S.Schema<DomainContact>;
1070
911
  export interface DomainGetContactsResponseContacts {
1071
912
  registrant?: DomainContact;
1072
913
  admin?: DomainContact;
1073
914
  tech?: DomainContact;
1074
915
  billing?: DomainContact;
1075
916
  }
1076
- export declare const DomainGetContactsResponseContacts: S.Schema<DomainGetContactsResponseContacts>;
1077
917
  export interface DomainGetContactsResponse {
1078
918
  status?: string;
1079
919
  contacts?: DomainGetContactsResponseContacts;
1080
920
  }
1081
- export declare const DomainGetContactsResponse: S.Schema<DomainGetContactsResponse>;
1082
921
  export interface DomainGetGlueRequest {
1083
922
  domain: string;
1084
923
  }
1085
- export declare const DomainGetGlueRequest: S.Schema<DomainGetGlueRequest>;
1086
924
  /** Two-element array: [0] full hostname string, [1] IP addresses object */
1087
925
  export type DomainGetGlueResponseHostsItemList = Array<unknown>;
1088
- export declare const DomainGetGlueResponseHostsItemList: S.Schema<DomainGetGlueResponseHostsItemList>;
1089
926
  /** 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": []}]` */
1090
927
  export type DomainGetGlueResponseHostsList = Array<DomainGetGlueResponseHostsItemList>;
1091
- export declare const DomainGetGlueResponseHostsList: S.Schema<DomainGetGlueResponseHostsList>;
1092
928
  export interface DomainGetGlueResponse {
1093
929
  status?: string;
1094
930
  /** 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": []}]` */
1095
931
  hosts?: DomainGetGlueResponseHostsList;
1096
932
  }
1097
- export declare const DomainGetGlueResponse: S.Schema<DomainGetGlueResponse>;
1098
933
  export interface DomainGetNsRequest {
1099
934
  domain: string;
1100
935
  }
1101
- export declare const DomainGetNsRequest: S.Schema<DomainGetNsRequest>;
1102
936
  export type DomainGetNsResponseNsList = Array<string>;
1103
- export declare const DomainGetNsResponseNsList: S.Schema<DomainGetNsResponseNsList>;
1104
937
  export interface DomainGetNsResponse {
1105
938
  status?: string;
1106
939
  ns?: DomainGetNsResponseNsList;
1107
940
  }
1108
- export declare const DomainGetNsResponse: S.Schema<DomainGetNsResponse>;
1109
941
  export interface DomainGetRegistrationRequirementsRequest {
1110
942
  /** TLD without a leading dot, e.g. `com`, `us`, `ca`. */
1111
943
  tld: string;
1112
944
  }
1113
- export declare const DomainGetRegistrationRequirementsRequest: S.Schema<DomainGetRegistrationRequirementsRequest>;
1114
945
  export interface DomainGetRegistrationRequirementsResponse {
1115
946
  status?: string;
1116
947
  tld?: string;
@@ -1131,14 +962,11 @@ export interface DomainGetRegistrationRequirementsResponse {
1131
962
  /** Present only when apiRegisterable is false. */
1132
963
  notApiRegisterableReason?: string;
1133
964
  }
1134
- export declare const DomainGetRegistrationRequirementsResponse: S.Schema<DomainGetRegistrationRequirementsResponse>;
1135
965
  export interface DomainGetTransferSetupRequest {
1136
966
  /** Domain name. */
1137
967
  domain: string;
1138
968
  }
1139
- export declare const DomainGetTransferSetupRequest: S.Schema<DomainGetTransferSetupRequest>;
1140
969
  export type DomainGetTransferSetupResponsePorkbunNameserversList = Array<string>;
1141
- export declare const DomainGetTransferSetupResponsePorkbunNameserversList: S.Schema<DomainGetTransferSetupResponsePorkbunNameserversList>;
1142
970
  export interface DomainGetTransferSetupResponse {
1143
971
  status?: string;
1144
972
  domain?: string;
@@ -1151,21 +979,15 @@ export interface DomainGetTransferSetupResponse {
1151
979
  nextStep?: unknown;
1152
980
  porkbunNameservers?: DomainGetTransferSetupResponsePorkbunNameserversList;
1153
981
  }
1154
- export declare const DomainGetTransferSetupResponse: S.Schema<DomainGetTransferSetupResponse>;
1155
982
  export interface DomainGetUrlForwardingRequest {
1156
983
  domain: string;
1157
984
  }
1158
- export declare const DomainGetUrlForwardingRequest: S.Schema<DomainGetUrlForwardingRequest>;
1159
985
  /** Redirect kind: 'permanent' (HTTP 301), 'temporary' (HTTP 302 or 307), or 'masked' (URL masking). Use `redirectType` for the exact code. */
1160
986
  export type GetUrlForwardingResponseForwardsItemType = "permanent" | "temporary" | "masked";
1161
- export declare const GetUrlForwardingResponseForwardsItemType: any;
1162
987
  /** The exact stored redirect type. Distinguishes 302 from 307 (both report as 'temporary' in `type`); round-trips directly into addUrlForward's `redirectType`. */
1163
988
  export type GetUrlForwardingResponseForwardsItemRedirectType = "301" | "302" | "307" | "masked";
1164
- export declare const GetUrlForwardingResponseForwardsItemRedirectType: any;
1165
989
  export type GetUrlForwardingResponseForwardsItemIncludePath = "yes" | "no";
1166
- export declare const GetUrlForwardingResponseForwardsItemIncludePath: any;
1167
990
  export type GetUrlForwardingResponseForwardsItemWildcard = "yes" | "no";
1168
- export declare const GetUrlForwardingResponseForwardsItemWildcard: any;
1169
991
  export interface GetUrlForwardingResponseForwardsItem {
1170
992
  /** Numeric record ID */
1171
993
  id?: string;
@@ -1179,33 +1001,26 @@ export interface GetUrlForwardingResponseForwardsItem {
1179
1001
  includePath?: GetUrlForwardingResponseForwardsItemIncludePath;
1180
1002
  wildcard?: GetUrlForwardingResponseForwardsItemWildcard;
1181
1003
  }
1182
- export declare const GetUrlForwardingResponseForwardsItem: S.Schema<GetUrlForwardingResponseForwardsItem>;
1183
1004
  export type GetUrlForwardingResponseForwardsList = Array<GetUrlForwardingResponseForwardsItem>;
1184
- export declare const GetUrlForwardingResponseForwardsList: S.Schema<GetUrlForwardingResponseForwardsList>;
1185
1005
  export interface GetUrlForwardingResponse {
1186
1006
  status: string;
1187
1007
  forwards: GetUrlForwardingResponseForwardsList;
1188
1008
  }
1189
- export declare const GetUrlForwardingResponse: S.Schema<GetUrlForwardingResponse>;
1190
1009
  export interface DomainStartTransferRequest {
1191
1010
  /** Domain name. */
1192
1011
  domain: string;
1193
1012
  /** Release even though the zone is empty. Use only when the domain needs no DNS here. */
1194
1013
  force?: boolean;
1195
1014
  }
1196
- export declare const DomainStartTransferRequest: S.Schema<DomainStartTransferRequest>;
1197
1015
  export interface DomainStartTransferResponse {
1198
1016
  status?: string;
1199
1017
  domain?: string;
1200
1018
  message?: string;
1201
1019
  }
1202
- export declare const DomainStartTransferResponse: S.Schema<DomainStartTransferResponse>;
1203
1020
  /** Auto-renew status to set */
1204
1021
  export type DomainUpdateAutoRenewRequestStatus = "on" | "off";
1205
- export declare const DomainUpdateAutoRenewRequestStatus: any;
1206
1022
  /** Array of additional domain names to update. Combined with the domain in the URL path if provided. */
1207
1023
  export type DomainUpdateAutoRenewRequestDomainsList = Array<string>;
1208
- export declare const DomainUpdateAutoRenewRequestDomainsList: S.Schema<DomainUpdateAutoRenewRequestDomainsList>;
1209
1024
  export interface DomainUpdateAutoRenewRequest {
1210
1025
  /** Optional single domain in URL. Omit or use `/domain/updateAutoRenew/` (without trailing domain) when using the `domains` body array instead. */
1211
1026
  domain: string;
@@ -1214,29 +1029,23 @@ export interface DomainUpdateAutoRenewRequest {
1214
1029
  /** Array of additional domain names to update. Combined with the domain in the URL path if provided. */
1215
1030
  domains?: DomainUpdateAutoRenewRequestDomainsList;
1216
1031
  }
1217
- export declare const DomainUpdateAutoRenewRequest: S.Schema<DomainUpdateAutoRenewRequest>;
1218
1032
  export interface DomainUpdateAutoRenewResponseResultsValue {
1219
1033
  status?: string;
1220
1034
  message?: string;
1221
1035
  }
1222
- export declare const DomainUpdateAutoRenewResponseResultsValue: S.Schema<DomainUpdateAutoRenewResponseResultsValue>;
1223
1036
  /** Object keyed by domain name */
1224
1037
  export type DomainUpdateAutoRenewResponseResultsMap = {
1225
1038
  [key: string]: DomainUpdateAutoRenewResponseResultsValue | undefined;
1226
1039
  };
1227
- export declare const DomainUpdateAutoRenewResponseResultsMap: S.Schema<DomainUpdateAutoRenewResponseResultsMap>;
1228
1040
  export interface DomainUpdateAutoRenewResponse {
1229
1041
  status?: string;
1230
1042
  /** Object keyed by domain name */
1231
1043
  results?: DomainUpdateAutoRenewResponseResultsMap;
1232
1044
  }
1233
- export declare const DomainUpdateAutoRenewResponse: S.Schema<DomainUpdateAutoRenewResponse>;
1234
1045
  /** Any subset of roles to change; unspecified roles are left as-is. */
1235
1046
  export type DomainUpdateContactsRequestContacts = DomainGetContactsResponseContacts;
1236
- export declare const DomainUpdateContactsRequestContacts: S.Schema<DomainGetContactsResponseContacts>;
1237
1047
  /** 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). */
1238
1048
  export type DomainUpdateContactsRequestAddressValidationChoice = "accept_suggestion" | "use_as_entered";
1239
- export declare const DomainUpdateContactsRequestAddressValidationChoice: any;
1240
1049
  export interface DomainUpdateContactsRequest {
1241
1050
  domain: string;
1242
1051
  /** Any subset of roles to change; unspecified roles are left as-is. */
@@ -1248,39 +1057,32 @@ export interface DomainUpdateContactsRequest {
1248
1057
  /** 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). */
1249
1058
  addressValidationChoice?: DomainUpdateContactsRequestAddressValidationChoice | (string & {});
1250
1059
  }
1251
- export declare const DomainUpdateContactsRequest: S.Schema<DomainUpdateContactsRequest>;
1252
1060
  export interface DomainUpdateContactsResponse {
1253
1061
  status?: string;
1254
1062
  message?: string;
1255
1063
  registrantChanged?: boolean;
1256
1064
  }
1257
- export declare const DomainUpdateContactsResponse: S.Schema<DomainUpdateContactsResponse>;
1258
1065
  /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
1259
1066
  export type DomainUpdateGlueRequestIpsList = Array<string>;
1260
- export declare const DomainUpdateGlueRequestIpsList: S.Schema<DomainUpdateGlueRequestIpsList>;
1261
1067
  export interface DomainUpdateGlueRequest {
1262
1068
  domain: string;
1263
1069
  subdomain: string;
1264
1070
  /** Array of IP addresses (IPv4 and/or IPv6) to associate with the host record */
1265
1071
  ips: DomainUpdateGlueRequestIpsList;
1266
1072
  }
1267
- export declare const DomainUpdateGlueRequest: S.Schema<DomainUpdateGlueRequest>;
1268
1073
  /** Ordered array of nameserver hostnames */
1269
1074
  export type DomainUpdateNsRequestNsList = Array<string>;
1270
- export declare const DomainUpdateNsRequestNsList: S.Schema<DomainUpdateNsRequestNsList>;
1271
1075
  export interface DomainUpdateNsRequest {
1272
1076
  domain: string;
1273
1077
  /** Ordered array of nameserver hostnames */
1274
1078
  ns: DomainUpdateNsRequestNsList;
1275
1079
  }
1276
- export declare const DomainUpdateNsRequest: S.Schema<DomainUpdateNsRequest>;
1277
1080
  export interface DomainUpdateTransferAuthCodeRequest {
1278
1081
  /** Domain name. */
1279
1082
  domain: string;
1280
1083
  /** The replacement authorization code, exactly as the losing registrar issued it. Never interpolate this into a shell command. */
1281
1084
  authCode: string;
1282
1085
  }
1283
- export declare const DomainUpdateTransferAuthCodeRequest: S.Schema<DomainUpdateTransferAuthCodeRequest>;
1284
1086
  export interface DomainUpdateTransferAuthCodeResponse {
1285
1087
  status?: string;
1286
1088
  domain?: string;
@@ -1289,10 +1091,8 @@ export interface DomainUpdateTransferAuthCodeResponse {
1289
1091
  transferStatus?: string;
1290
1092
  message?: string;
1291
1093
  }
1292
- export declare const DomainUpdateTransferAuthCodeResponse: S.Schema<DomainUpdateTransferAuthCodeResponse>;
1293
1094
  /** DNS record type */
1294
1095
  export type EditDnsRequestType = "A" | "AAAA" | "MX" | "CNAME" | "ALIAS" | "TXT" | "NS" | "SRV" | "TLSA" | "CAA" | "SSHFP" | "HTTPS" | "SVCB";
1295
- export declare const EditDnsRequestType: any;
1296
1096
  export interface EditDnsRequest {
1297
1097
  domain: string;
1298
1098
  /** Numeric DNS record ID */
@@ -1310,22 +1110,18 @@ export interface EditDnsRequest {
1310
1110
  /** Notes (optional). Pass empty string to clear notes; omit or pass null to leave unchanged. */
1311
1111
  notes?: string;
1312
1112
  }
1313
- export declare const EditDnsRequest: S.Schema<EditDnsRequest>;
1314
1113
  export interface EmailSetPasswordRequest {
1315
1114
  /** The full email address (e.g. user@example.com) */
1316
1115
  emailAddress: string;
1317
1116
  /** The new password. Must pass Porkbun password validation rules. */
1318
1117
  password: string | Redacted.Redacted<string>;
1319
1118
  }
1320
- export declare const EmailSetPasswordRequest: S.Schema<EmailSetPasswordRequest>;
1321
1119
  export interface GetAccountInviteStatusRequest {
1322
1120
  /** The `inviteToken` returned by `/account/invite` */
1323
1121
  token: string;
1324
1122
  }
1325
- export declare const GetAccountInviteStatusRequest: S.Schema<GetAccountInviteStatusRequest>;
1326
1123
  /** Current state of the invite */
1327
1124
  export type GetAccountInviteStatusResponseInviteStatus = "PENDING" | "ACCEPTED" | "EXPIRED";
1328
- export declare const GetAccountInviteStatusResponseInviteStatus: any;
1329
1125
  export interface GetAccountInviteStatusResponse {
1330
1126
  status: string;
1331
1127
  /** Current state of the invite */
@@ -1333,16 +1129,13 @@ export interface GetAccountInviteStatusResponse {
1333
1129
  /** ID of the newly created account. Present only when `inviteStatus` is `ACCEPTED`. */
1334
1130
  newAccountId?: number;
1335
1131
  }
1336
- export declare const GetAccountInviteStatusResponse: S.Schema<GetAccountInviteStatusResponse>;
1337
1132
  export interface GetApikeyRequest {
1338
1133
  /** The token returned by /apikey/request. Must be a 64-character lowercase hex string. */
1339
1134
  requestToken: string;
1340
1135
  /** 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. */
1341
1136
  codeVerifier?: string;
1342
1137
  }
1343
- export declare const GetApikeyRequest: S.Schema<GetApikeyRequest>;
1344
1138
  export type GetApikeyResponseStatus = "SUCCESS" | "PENDING" | "ERROR";
1345
- export declare const GetApikeyResponseStatus: any;
1346
1139
  export interface GetApikeyResponse {
1347
1140
  status?: GetApikeyResponseStatus;
1348
1141
  /** The approved public API key. Present only when status is SUCCESS. */
@@ -1353,12 +1146,9 @@ export interface GetApikeyResponse {
1353
1146
  /** Machine-readable error code. Present when status is ERROR. */
1354
1147
  code?: string;
1355
1148
  }
1356
- export declare const GetApikeyResponse: S.Schema<GetApikeyResponse>;
1357
1149
  export interface GetApiSettingsRequest {
1358
1150
  }
1359
- export declare const GetApiSettingsRequest: S.Schema<GetApiSettingsRequest>;
1360
1151
  export type ApiSettingsResponseStatus = "SUCCESS" | "ERROR";
1361
- export declare const ApiSettingsResponseStatus: any;
1362
1152
  export interface ApiSettingsResponseSettings {
1363
1153
  /** The monthly spend limit the account holder set, in cents. `null` means none is set; `spendLimit` shows what is actually enforced. */
1364
1154
  monthlySpendLimit?: number | null;
@@ -1371,10 +1161,8 @@ export interface ApiSettingsResponseSettings {
1371
1161
  /** Amount to add during an auto top-up (cents). */
1372
1162
  topupAmount?: number | null;
1373
1163
  }
1374
- export declare const ApiSettingsResponseSettings: S.Schema<ApiSettingsResponseSettings>;
1375
1164
  /** `account`: the account holder's own limit. `default`: none set, so the $100 default applies. `none`: none set and the account bought over the API before the default existed (2026-10-03), so purchases are not capped. */
1376
1165
  export type ApiSettingsResponseSpendLimitSource = "account" | "default" | "none";
1377
- export declare const ApiSettingsResponseSpendLimitSource: any;
1378
1166
  /** The monthly cap on API purchases actually enforced (registrations, renewals, transfers, closeouts, paid hosting). */
1379
1167
  export interface ApiSettingsResponseSpendLimit {
1380
1168
  /** Cents. `null` means no cap. */
@@ -1386,9 +1174,7 @@ export interface ApiSettingsResponseSpendLimit {
1386
1174
  /** Cents left this month, or `null` with no cap. */
1387
1175
  remaining?: number | null;
1388
1176
  }
1389
- export declare const ApiSettingsResponseSpendLimit: S.Schema<ApiSettingsResponseSpendLimit>;
1390
1177
  export type ApiSettingsResponseTopupLimitSource = "account" | "default";
1391
- export declare const ApiSettingsResponseTopupLimitSource: any;
1392
1178
  /** The monthly cap on credit added over the API: card top-ups, auto top-ups set off by an API purchase, MPP and USDC together. */
1393
1179
  export interface ApiSettingsResponseTopupLimit {
1394
1180
  /** Cents: the monthly spend limit, or $100 when none is set. */
@@ -1397,7 +1183,6 @@ export interface ApiSettingsResponseTopupLimit {
1397
1183
  /** Credit added over the API this calendar month, in cents. */
1398
1184
  added?: number | null;
1399
1185
  }
1400
- export declare const ApiSettingsResponseTopupLimit: S.Schema<ApiSettingsResponseTopupLimit>;
1401
1186
  export interface ApiSettingsResponse {
1402
1187
  status?: ApiSettingsResponseStatus;
1403
1188
  settings?: ApiSettingsResponseSettings;
@@ -1408,13 +1193,10 @@ export interface ApiSettingsResponse {
1408
1193
  /** The monthly cap on credit added over the API: card top-ups, auto top-ups set off by an API purchase, MPP and USDC together. */
1409
1194
  topupLimit?: ApiSettingsResponseTopupLimit;
1410
1195
  }
1411
- export declare const ApiSettingsResponse: S.Schema<ApiSettingsResponse>;
1412
1196
  export interface GetAutoTopupRequest {
1413
1197
  }
1414
- export declare const GetAutoTopupRequest: S.Schema<GetAutoTopupRequest>;
1415
1198
  /** Advisory. Present when the settings cannot do anything as they stand, e.g. no payment method is saved. */
1416
1199
  export type AutoTopupResponseWarningsList = Array<string>;
1417
- export declare const AutoTopupResponseWarningsList: S.Schema<AutoTopupResponseWarningsList>;
1418
1200
  export interface AutoTopupResponse {
1419
1201
  status?: string;
1420
1202
  enabled?: boolean;
@@ -1437,12 +1219,9 @@ export interface AutoTopupResponse {
1437
1219
  /** Advisory. Present when the settings cannot do anything as they stand, e.g. no payment method is saved. */
1438
1220
  warnings?: AutoTopupResponseWarningsList;
1439
1221
  }
1440
- export declare const AutoTopupResponse: S.Schema<AutoTopupResponse>;
1441
1222
  export interface GetBalanceRequest {
1442
1223
  }
1443
- export declare const GetBalanceRequest: S.Schema<GetBalanceRequest>;
1444
1224
  export type BalanceResponseStatus = "SUCCESS" | "ERROR";
1445
- export declare const BalanceResponseStatus: any;
1446
1225
  export interface BalanceResponse {
1447
1226
  status?: BalanceResponseStatus;
1448
1227
  /** Available account credit balance in cents. */
@@ -1450,11 +1229,9 @@ export interface BalanceResponse {
1450
1229
  /** Human-readable balance string (e.g. `$12.34`). */
1451
1230
  display?: string;
1452
1231
  }
1453
- export declare const BalanceResponse: S.Schema<BalanceResponse>;
1454
1232
  export interface GetCloseoutRequest {
1455
1233
  domain: string;
1456
1234
  }
1457
- export declare const GetCloseoutRequest: S.Schema<GetCloseoutRequest>;
1458
1235
  export interface CloseoutItem {
1459
1236
  /** Provider id for this listing. */
1460
1237
  closeoutId?: number;
@@ -1462,7 +1239,7 @@ export interface CloseoutItem {
1462
1239
  tld?: string;
1463
1240
  /** Current closeout price, integer US cents. Descends on a schedule. */
1464
1241
  price?: number;
1465
- /** The provider's own renewal figure. Indicative only — the amount actually charged is `renewalPrice` from /closeout/get/{domain}, which uses Porkbun pricing. */
1242
+ /** The provider's own renewal figure. Indicative only -- the amount actually charged is `renewalPrice` from /closeout/get/{domain}, which uses Porkbun pricing. */
1466
1243
  providerRenewalPrice?: number | null;
1467
1244
  /** Porkbun's renewal or transfer price for the year included. Only returned by /closeout/get/{domain}. */
1468
1245
  renewalPrice?: number | null;
@@ -1486,33 +1263,26 @@ export interface CloseoutItem {
1486
1263
  /** How many other TLDs the same SLD is registered in. */
1487
1264
  otherTldCount?: number | null;
1488
1265
  }
1489
- export declare const CloseoutItem: S.Schema<CloseoutItem>;
1490
1266
  export interface GetCloseoutResponse {
1491
1267
  status?: string;
1492
1268
  available?: boolean;
1493
1269
  closeout?: CloseoutItem;
1494
1270
  }
1495
- export declare const GetCloseoutResponse: S.Schema<GetCloseoutResponse>;
1496
1271
  export interface GetCloudflareRequest {
1497
1272
  domain: string;
1498
1273
  }
1499
- export declare const GetCloudflareRequest: S.Schema<GetCloudflareRequest>;
1500
1274
  export type GetCloudflareResponse = unknown;
1501
- export declare const GetCloudflareResponse: S.Schema<GetCloudflareResponse>;
1502
1275
  export interface GetDnsRequest {
1503
1276
  domain: string;
1504
1277
  }
1505
- export declare const GetDnsRequest: S.Schema<GetDnsRequest>;
1506
1278
  export interface GetDnsRecordByIdRequest {
1507
1279
  domain: string;
1508
1280
  /** Numeric DNS record ID */
1509
1281
  id: string;
1510
1282
  }
1511
- export declare const GetDnsRecordByIdRequest: S.Schema<GetDnsRecordByIdRequest>;
1512
1283
  export interface GetDnsRecordsRequest {
1513
1284
  domain: string;
1514
1285
  }
1515
- export declare const GetDnsRecordsRequest: S.Schema<GetDnsRecordsRequest>;
1516
1286
  export interface GetDnsRecordsByNameTypeRequest {
1517
1287
  domain: string;
1518
1288
  /** DNS record type (A, AAAA, CNAME, MX, TXT, etc.) */
@@ -1520,33 +1290,26 @@ export interface GetDnsRecordsByNameTypeRequest {
1520
1290
  /** Subdomain portion only. Omit or leave empty for root domain records. */
1521
1291
  subdomain: string;
1522
1292
  }
1523
- export declare const GetDnsRecordsByNameTypeRequest: S.Schema<GetDnsRecordsByNameTypeRequest>;
1524
1293
  export interface GetDnssecRecordsRequest {
1525
1294
  domain: string;
1526
1295
  }
1527
- export declare const GetDnssecRecordsRequest: S.Schema<GetDnssecRecordsRequest>;
1528
1296
  export type GetDnssecRecordsResponseRecordsValue = DnsGetDnssecRecordsResponseRecordsValue;
1529
- export declare const GetDnssecRecordsResponseRecordsValue: S.Schema<DnsGetDnssecRecordsResponseRecordsValue>;
1530
1297
  /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
1531
1298
  export type GetDnssecRecordsResponseRecordsMap = {
1532
1299
  [key: string]: DnsGetDnssecRecordsResponseRecordsValue | undefined;
1533
1300
  };
1534
- export declare const GetDnssecRecordsResponseRecordsMap: S.Schema<GetDnssecRecordsResponseRecordsMap>;
1535
1301
  export interface GetDnssecRecordsResponse {
1536
1302
  status?: string;
1537
1303
  /** Object keyed by key tag value. Each value is an object containing the DNSSEC data fields. */
1538
1304
  records?: GetDnssecRecordsResponseRecordsMap;
1539
1305
  }
1540
- export declare const GetDnssecRecordsResponse: S.Schema<GetDnssecRecordsResponse>;
1541
1306
  export type GetDomainRequestIncludeLabels = "yes" | "no";
1542
- export declare const GetDomainRequestIncludeLabels: any;
1543
1307
  export interface GetDomainRequest {
1544
1308
  /** Fully qualified domain name in the authenticated account. */
1545
1309
  domain: string;
1546
1310
  /** Return label metadata. Defaults to no. */
1547
1311
  includeLabels?: GetDomainRequestIncludeLabels | (string & {});
1548
1312
  }
1549
- export declare const GetDomainRequest: S.Schema<GetDomainRequest>;
1550
1313
  export interface GetDomainResponseDomain {
1551
1314
  domain?: string;
1552
1315
  status?: string;
@@ -1559,51 +1322,36 @@ export interface GetDomainResponseDomain {
1559
1322
  apiAccess?: number;
1560
1323
  notLocal?: number;
1561
1324
  }
1562
- export declare const GetDomainResponseDomain: S.Schema<GetDomainResponseDomain>;
1563
1325
  export interface GetDomainResponse {
1564
1326
  status?: string;
1565
1327
  domain?: GetDomainResponseDomain;
1566
1328
  }
1567
- export declare const GetDomainResponse: S.Schema<GetDomainResponse>;
1568
1329
  export interface GetDomainGlueRequest {
1569
1330
  domain: string;
1570
1331
  }
1571
- export declare const GetDomainGlueRequest: S.Schema<GetDomainGlueRequest>;
1572
1332
  /** Two-element array: [0] full hostname string, [1] IP addresses object */
1573
1333
  export type GetDomainGlueResponseHostsItemList = Array<unknown>;
1574
- export declare const GetDomainGlueResponseHostsItemList: S.Schema<GetDomainGlueResponseHostsItemList>;
1575
1334
  /** 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": []}]` */
1576
1335
  export type GetDomainGlueResponseHostsList = Array<GetDomainGlueResponseHostsItemList>;
1577
- export declare const GetDomainGlueResponseHostsList: S.Schema<GetDomainGlueResponseHostsList>;
1578
1336
  export interface GetDomainGlueResponse {
1579
1337
  status?: string;
1580
1338
  /** 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": []}]` */
1581
1339
  hosts?: GetDomainGlueResponseHostsList;
1582
1340
  }
1583
- export declare const GetDomainGlueResponse: S.Schema<GetDomainGlueResponse>;
1584
1341
  export interface GetDomainNsRequest {
1585
1342
  domain: string;
1586
1343
  }
1587
- export declare const GetDomainNsRequest: S.Schema<GetDomainNsRequest>;
1588
1344
  export type GetDomainNsResponseNsList = Array<string>;
1589
- export declare const GetDomainNsResponseNsList: S.Schema<GetDomainNsResponseNsList>;
1590
1345
  export interface GetDomainNsResponse {
1591
1346
  status?: string;
1592
1347
  ns?: GetDomainNsResponseNsList;
1593
1348
  }
1594
- export declare const GetDomainNsResponse: S.Schema<GetDomainNsResponse>;
1595
1349
  export type GetDomainsRequestIncludeLabels = "yes" | "no";
1596
- export declare const GetDomainsRequestIncludeLabels: any;
1597
1350
  export type GetDomainsRequestTldsList = Array<string>;
1598
- export declare const GetDomainsRequestTldsList: S.Schema<GetDomainsRequestTldsList>;
1599
1351
  export type GetDomainsRequestAutoRenew = "yes" | "no";
1600
- export declare const GetDomainsRequestAutoRenew: any;
1601
1352
  export type GetDomainsRequestApiAccess = "yes" | "no";
1602
- export declare const GetDomainsRequestApiAccess: any;
1603
1353
  export type GetDomainsRequestSortName = "domain" | "tld" | "create_date" | "expire_date";
1604
- export declare const GetDomainsRequestSortName: any;
1605
1354
  export type GetDomainsRequestSortDirection = "asc" | "desc";
1606
- export declare const GetDomainsRequestSortDirection: any;
1607
1355
  export interface GetDomainsRequest {
1608
1356
  /** Zero-based offset for pagination. Returns up to 1000 domains per call. */
1609
1357
  start?: number;
@@ -1626,16 +1374,13 @@ export interface GetDomainsRequest {
1626
1374
  /** Sort direction. Default: asc. */
1627
1375
  sortDirection?: GetDomainsRequestSortDirection | (string & {});
1628
1376
  }
1629
- export declare const GetDomainsRequest: S.Schema<GetDomainsRequest>;
1630
1377
  export interface DomainListAllResponseDomainsItemLabelsItem {
1631
1378
  id?: string;
1632
1379
  title?: string;
1633
1380
  color?: string;
1634
1381
  }
1635
- export declare const DomainListAllResponseDomainsItemLabelsItem: S.Schema<DomainListAllResponseDomainsItemLabelsItem>;
1636
1382
  /** Only present when includeLabels=yes */
1637
1383
  export type DomainListAllResponseDomainsItemLabelsList = Array<DomainListAllResponseDomainsItemLabelsItem>;
1638
- export declare const DomainListAllResponseDomainsItemLabelsList: S.Schema<DomainListAllResponseDomainsItemLabelsList>;
1639
1384
  export interface DomainListAllResponseDomainsItem {
1640
1385
  domain?: string;
1641
1386
  /** Domain registration status (e.g. ACTIVE) */
@@ -1656,24 +1401,19 @@ export interface DomainListAllResponseDomainsItem {
1656
1401
  /** Only present when includeLabels=yes */
1657
1402
  labels?: DomainListAllResponseDomainsItemLabelsList;
1658
1403
  }
1659
- export declare const DomainListAllResponseDomainsItem: S.Schema<DomainListAllResponseDomainsItem>;
1660
1404
  export type DomainListAllResponseDomainsList = Array<DomainListAllResponseDomainsItem>;
1661
- export declare const DomainListAllResponseDomainsList: S.Schema<DomainListAllResponseDomainsList>;
1662
1405
  export interface DomainListAllResponse {
1663
1406
  status: string;
1664
1407
  /** Number of domains returned in this page. */
1665
1408
  count?: number;
1666
1409
  domains: DomainListAllResponseDomainsList;
1667
1410
  }
1668
- export declare const DomainListAllResponse: S.Schema<DomainListAllResponse>;
1669
1411
  export interface GetDomainUrlForwardingRequest {
1670
1412
  domain: string;
1671
1413
  }
1672
- export declare const GetDomainUrlForwardingRequest: S.Schema<GetDomainUrlForwardingRequest>;
1673
1414
  export interface GetHostingRequest {
1674
1415
  domain: string;
1675
1416
  }
1676
- export declare const GetHostingRequest: S.Schema<GetHostingRequest>;
1677
1417
  export interface GetHostingResponseHosting {
1678
1418
  domain?: string;
1679
1419
  product?: string;
@@ -1687,32 +1427,24 @@ export interface GetHostingResponseHosting {
1687
1427
  pendingRetire?: boolean;
1688
1428
  cost?: unknown;
1689
1429
  }
1690
- export declare const GetHostingResponseHosting: S.Schema<GetHostingResponseHosting>;
1691
1430
  export interface GetHostingResponse {
1692
1431
  status?: string;
1693
1432
  hosting?: GetHostingResponseHosting | null;
1694
1433
  }
1695
- export declare const GetHostingResponse: S.Schema<GetHostingResponse>;
1696
1434
  export interface GetInvoiceRequest {
1697
1435
  /** Invoice (order) ID, from `GET /account/invoices`. */
1698
1436
  orderId: number;
1699
1437
  }
1700
- export declare const GetInvoiceRequest: S.Schema<GetInvoiceRequest>;
1701
1438
  export type GetInvoiceResponseInvoiceState = "PAID" | "PARTIALLY_REFUNDED" | "REFUNDED" | "UNPAID";
1702
- export declare const GetInvoiceResponseInvoiceState: any;
1703
1439
  export interface GetInvoiceResponseInvoiceBillTo {
1704
1440
  company?: string | null;
1705
1441
  name?: string | null;
1706
1442
  address?: string | null;
1707
1443
  vat?: string | null;
1708
1444
  }
1709
- export declare const GetInvoiceResponseInvoiceBillTo: S.Schema<GetInvoiceResponseInvoiceBillTo>;
1710
1445
  export type GetInvoiceResponseInvoicePaymentMethodsList = Array<string>;
1711
- export declare const GetInvoiceResponseInvoicePaymentMethodsList: S.Schema<GetInvoiceResponseInvoicePaymentMethodsList>;
1712
1446
  export type GetInvoiceResponseInvoiceItemsItemStatus = "SUCCESS" | "NOT_PROCESSED" | "REFUNDED" | "REFUND" | "COUPON";
1713
- export declare const GetInvoiceResponseInvoiceItemsItemStatus: any;
1714
1447
  export type GetInvoiceResponseInvoiceItemsItemTagsList = Array<string>;
1715
- export declare const GetInvoiceResponseInvoiceItemsItemTagsList: S.Schema<GetInvoiceResponseInvoiceItemsItemTagsList>;
1716
1448
  export interface GetInvoiceResponseInvoiceItemsItem {
1717
1449
  domain?: string;
1718
1450
  product?: string;
@@ -1726,9 +1458,7 @@ export interface GetInvoiceResponseInvoiceItemsItem {
1726
1458
  discount_cents?: number;
1727
1459
  tags?: GetInvoiceResponseInvoiceItemsItemTagsList;
1728
1460
  }
1729
- export declare const GetInvoiceResponseInvoiceItemsItem: S.Schema<GetInvoiceResponseInvoiceItemsItem>;
1730
1461
  export type GetInvoiceResponseInvoiceItemsList = Array<GetInvoiceResponseInvoiceItemsItem>;
1731
- export declare const GetInvoiceResponseInvoiceItemsList: S.Schema<GetInvoiceResponseInvoiceItemsList>;
1732
1462
  export interface GetInvoiceResponseInvoice {
1733
1463
  id?: number;
1734
1464
  date?: string;
@@ -1748,17 +1478,14 @@ export interface GetInvoiceResponseInvoice {
1748
1478
  /** When downloadUrl stops working (ISO 8601). */
1749
1479
  downloadExpires?: string | null;
1750
1480
  }
1751
- export declare const GetInvoiceResponseInvoice: S.Schema<GetInvoiceResponseInvoice>;
1752
1481
  export interface GetInvoiceResponse {
1753
1482
  status?: string;
1754
1483
  invoice?: GetInvoiceResponseInvoice;
1755
1484
  }
1756
- export declare const GetInvoiceResponse: S.Schema<GetInvoiceResponse>;
1757
1485
  export interface GetInvoicePdfRequest {
1758
1486
  /** Invoice (order) ID, from `GET /account/invoices`. */
1759
1487
  orderId: number;
1760
1488
  }
1761
- export declare const GetInvoicePdfRequest: S.Schema<GetInvoicePdfRequest>;
1762
1489
  export interface GetInvoicePdfResponse {
1763
1490
  status?: string;
1764
1491
  filename?: string;
@@ -1770,10 +1497,8 @@ export interface GetInvoicePdfResponse {
1770
1497
  /** When downloadUrl stops working (ISO 8601). */
1771
1498
  downloadExpires?: string | null;
1772
1499
  }
1773
- export declare const GetInvoicePdfResponse: S.Schema<GetInvoicePdfResponse>;
1774
1500
  export interface GetIpRequest {
1775
1501
  }
1776
- export declare const GetIpRequest: S.Schema<GetIpRequest>;
1777
1502
  export interface IpResponse {
1778
1503
  status: string;
1779
1504
  /** The caller's public IP address */
@@ -1781,10 +1506,8 @@ export interface IpResponse {
1781
1506
  /** Raw value of the X-Forwarded-For header */
1782
1507
  xForwardedFor?: string;
1783
1508
  }
1784
- export declare const IpResponse: S.Schema<IpResponse>;
1785
1509
  export interface GetPingRequest {
1786
1510
  }
1787
- export declare const GetPingRequest: S.Schema<GetPingRequest>;
1788
1511
  export interface GetPingResponse {
1789
1512
  status: string;
1790
1513
  /** The caller's public IP address */
@@ -1794,24 +1517,18 @@ export interface GetPingResponse {
1794
1517
  /** Present and true when valid credentials were supplied */
1795
1518
  credentialsValid?: boolean;
1796
1519
  }
1797
- export declare const GetPingResponse: S.Schema<GetPingResponse>;
1798
1520
  export type GetPricingRequestTldsCase0List = Array<string>;
1799
- export declare const GetPricingRequestTldsCase0List: S.Schema<GetPricingRequestTldsCase0List>;
1800
1521
  /** Optional TLDs to price: an array, or a comma-separated string. If neither `tld` nor `tlds` is given (or both are empty), all supported TLDs are returned. */
1801
1522
  export type GetPricingRequestTlds = GetPricingRequestTldsCase0List | string;
1802
- export declare const GetPricingRequestTlds: S.Schema<GetPricingRequestTlds>;
1803
1523
  export interface GetPricingRequest {
1804
1524
  /** Optional single TLD to price, e.g. `io`. Combines with `tlds`. */
1805
1525
  tld?: string;
1806
1526
  /** Optional TLDs to price: an array, or a comma-separated string. If neither `tld` nor `tlds` is given (or both are empty), all supported TLDs are returned. */
1807
1527
  tlds?: GetPricingRequestTlds;
1808
1528
  }
1809
- export declare const GetPricingRequest: S.Schema<GetPricingRequest>;
1810
1529
  /** Present only when a filter named TLDs Porkbun does not sell: those names, as sent. They are not in `pricing`. */
1811
1530
  export type GetPricingResponseUnsupportedList = Array<string>;
1812
- export declare const GetPricingResponseUnsupportedList: S.Schema<GetPricingResponseUnsupportedList>;
1813
1531
  export type GetPricingResponsePricingValueCouponsValueFirstYearOnly = "yes" | "no";
1814
- export declare const GetPricingResponsePricingValueCouponsValueFirstYearOnly: any;
1815
1532
  export interface GetPricingResponsePricingValueCouponsValue {
1816
1533
  code?: string;
1817
1534
  max_per_user?: number;
@@ -1819,12 +1536,10 @@ export interface GetPricingResponsePricingValueCouponsValue {
1819
1536
  type?: string;
1820
1537
  amount?: number;
1821
1538
  }
1822
- export declare const GetPricingResponsePricingValueCouponsValue: S.Schema<GetPricingResponsePricingValueCouponsValue>;
1823
1539
  /** Active coupon codes for this TLD, keyed by product type */
1824
1540
  export type GetPricingResponsePricingValueCouponsMap = {
1825
1541
  [key: string]: GetPricingResponsePricingValueCouponsValue | undefined;
1826
1542
  };
1827
- export declare const GetPricingResponsePricingValueCouponsMap: S.Schema<GetPricingResponsePricingValueCouponsMap>;
1828
1543
  export interface GetPricingResponsePricingValue {
1829
1544
  registration?: string;
1830
1545
  renewal?: string;
@@ -1834,12 +1549,10 @@ export interface GetPricingResponsePricingValue {
1834
1549
  /** Active coupon codes for this TLD, keyed by product type */
1835
1550
  coupons?: GetPricingResponsePricingValueCouponsMap;
1836
1551
  }
1837
- export declare const GetPricingResponsePricingValue: S.Schema<GetPricingResponsePricingValue>;
1838
1552
  /** Object keyed by TLD string */
1839
1553
  export type GetPricingResponsePricingMap = {
1840
1554
  [key: string]: GetPricingResponsePricingValue | undefined;
1841
1555
  };
1842
- export declare const GetPricingResponsePricingMap: S.Schema<GetPricingResponsePricingMap>;
1843
1556
  export interface GetPricingResponse {
1844
1557
  status?: string;
1845
1558
  /** Present only when a filter named TLDs Porkbun does not sell: those names, as sent. They are not in `pricing`. */
@@ -1847,19 +1560,15 @@ export interface GetPricingResponse {
1847
1560
  /** Object keyed by TLD string */
1848
1561
  pricing?: GetPricingResponsePricingMap;
1849
1562
  }
1850
- export declare const GetPricingResponse: S.Schema<GetPricingResponse>;
1851
1563
  export interface GetPricingGetRequest {
1852
1564
  /** One TLD to price, e.g. `io`. */
1853
1565
  tld?: string;
1854
1566
  /** Comma-separated TLDs to price, e.g. `com,io,dev`. Omit (with `tld`) for every TLD. */
1855
1567
  tlds?: string;
1856
1568
  }
1857
- export declare const GetPricingGetRequest: S.Schema<GetPricingGetRequest>;
1858
1569
  /** Present only when a filter named TLDs Porkbun does not sell: those names, as sent. They are not in `pricing`. */
1859
1570
  export type GetPricingGetResponseUnsupportedList = Array<string>;
1860
- export declare const GetPricingGetResponseUnsupportedList: S.Schema<GetPricingGetResponseUnsupportedList>;
1861
1571
  export type GetPricingGetResponsePricingValueCouponsValueFirstYearOnly = "yes" | "no";
1862
- export declare const GetPricingGetResponsePricingValueCouponsValueFirstYearOnly: any;
1863
1572
  export interface GetPricingGetResponsePricingValueCouponsValue {
1864
1573
  code?: string;
1865
1574
  max_per_user?: number;
@@ -1867,12 +1576,10 @@ export interface GetPricingGetResponsePricingValueCouponsValue {
1867
1576
  type?: string;
1868
1577
  amount?: number;
1869
1578
  }
1870
- export declare const GetPricingGetResponsePricingValueCouponsValue: S.Schema<GetPricingGetResponsePricingValueCouponsValue>;
1871
1579
  /** Active coupon codes for this TLD, keyed by product type */
1872
1580
  export type GetPricingGetResponsePricingValueCouponsMap = {
1873
1581
  [key: string]: GetPricingGetResponsePricingValueCouponsValue | undefined;
1874
1582
  };
1875
- export declare const GetPricingGetResponsePricingValueCouponsMap: S.Schema<GetPricingGetResponsePricingValueCouponsMap>;
1876
1583
  export interface GetPricingGetResponsePricingValue {
1877
1584
  registration?: string;
1878
1585
  renewal?: string;
@@ -1882,12 +1589,10 @@ export interface GetPricingGetResponsePricingValue {
1882
1589
  /** Active coupon codes for this TLD, keyed by product type */
1883
1590
  coupons?: GetPricingGetResponsePricingValueCouponsMap;
1884
1591
  }
1885
- export declare const GetPricingGetResponsePricingValue: S.Schema<GetPricingGetResponsePricingValue>;
1886
1592
  /** Object keyed by TLD string */
1887
1593
  export type GetPricingGetResponsePricingMap = {
1888
1594
  [key: string]: GetPricingGetResponsePricingValue | undefined;
1889
1595
  };
1890
- export declare const GetPricingGetResponsePricingMap: S.Schema<GetPricingGetResponsePricingMap>;
1891
1596
  export interface GetPricingGetResponse {
1892
1597
  status?: string;
1893
1598
  /** Present only when a filter named TLDs Porkbun does not sell: those names, as sent. They are not in `pricing`. */
@@ -1895,11 +1600,9 @@ export interface GetPricingGetResponse {
1895
1600
  /** Object keyed by TLD string */
1896
1601
  pricing?: GetPricingGetResponsePricingMap;
1897
1602
  }
1898
- export declare const GetPricingGetResponse: S.Schema<GetPricingGetResponse>;
1899
1603
  export interface GetSslRequest {
1900
1604
  domain: string;
1901
1605
  }
1902
- export declare const GetSslRequest: S.Schema<GetSslRequest>;
1903
1606
  export interface GetSslResponse {
1904
1607
  status?: string;
1905
1608
  /** The full PEM-encoded certificate chain (certificate + intermediates) */
@@ -1909,11 +1612,9 @@ export interface GetSslResponse {
1909
1612
  /** The PEM-encoded public key */
1910
1613
  publickey?: string;
1911
1614
  }
1912
- export declare const GetSslResponse: S.Schema<GetSslResponse>;
1913
1615
  export interface GetSslRetrieveRequest {
1914
1616
  domain: string;
1915
1617
  }
1916
- export declare const GetSslRetrieveRequest: S.Schema<GetSslRetrieveRequest>;
1917
1618
  export interface GetSslRetrieveResponse {
1918
1619
  status?: string;
1919
1620
  /** The full PEM-encoded certificate chain (certificate + intermediates) */
@@ -1923,16 +1624,12 @@ export interface GetSslRetrieveResponse {
1923
1624
  /** The PEM-encoded public key */
1924
1625
  publickey?: string;
1925
1626
  }
1926
- export declare const GetSslRetrieveResponse: S.Schema<GetSslRetrieveResponse>;
1927
1627
  export interface GetTransferGetRequest {
1928
1628
  /** The domain name (e.g. `example.com`). */
1929
1629
  domain: string;
1930
1630
  }
1931
- export declare const GetTransferGetRequest: S.Schema<GetTransferGetRequest>;
1932
1631
  export type GetTransferResponseStatus = "SUCCESS" | "ERROR";
1933
- export declare const GetTransferResponseStatus: any;
1934
1632
  export type GetTransferResponseTransferStatus = "NEW" | "PENDINGAUTH" | "PENDINGSUBMIT" | "PENDINGTRANSFER" | "DONE" | "CANCELED" | "INIT";
1935
- export declare const GetTransferResponseTransferStatus: any;
1936
1633
  export interface GetTransferResponseTransfer {
1937
1634
  domain?: string;
1938
1635
  status?: GetTransferResponseTransferStatus;
@@ -1940,19 +1637,15 @@ export interface GetTransferResponseTransfer {
1940
1637
  transferDate?: string;
1941
1638
  orderId?: number;
1942
1639
  }
1943
- export declare const GetTransferResponseTransfer: S.Schema<GetTransferResponseTransfer>;
1944
1640
  export interface GetTransferResponse {
1945
1641
  status?: GetTransferResponseStatus;
1946
1642
  transfer?: GetTransferResponseTransfer;
1947
1643
  }
1948
- export declare const GetTransferResponse: S.Schema<GetTransferResponse>;
1949
1644
  export interface GetWebhookRequest {
1950
1645
  id: number;
1951
1646
  }
1952
- export declare const GetWebhookRequest: S.Schema<GetWebhookRequest>;
1953
1647
  /** Least privilege by default. `editor` = content only (recommended for agents). `administrator` = full control incl. plugin install; requires acknowledgeFullAccess. */
1954
1648
  export type HostingCreateWpCredentialsRequestRole = "editor" | "administrator";
1955
- export declare const HostingCreateWpCredentialsRequestRole: any;
1956
1649
  export interface HostingCreateWpCredentialsRequest {
1957
1650
  domain: string;
1958
1651
  /** Least privilege by default. `editor` = content only (recommended for agents). `administrator` = full control incl. plugin install; requires acknowledgeFullAccess. */
@@ -1964,7 +1657,6 @@ export interface HostingCreateWpCredentialsRequest {
1964
1657
  /** Validate without creating anything. */
1965
1658
  dryRun?: boolean;
1966
1659
  }
1967
- export declare const HostingCreateWpCredentialsRequest: S.Schema<HostingCreateWpCredentialsRequest>;
1968
1660
  export interface HostingCreateWpCredentialsResponseCredentials {
1969
1661
  username?: string;
1970
1662
  applicationPassword?: string | Redacted.Redacted<string>;
@@ -1974,25 +1666,21 @@ export interface HostingCreateWpCredentialsResponseCredentials {
1974
1666
  /** Ready-to-use HTTP Basic header value. */
1975
1667
  authorization?: string;
1976
1668
  }
1977
- export declare const HostingCreateWpCredentialsResponseCredentials: S.Schema<HostingCreateWpCredentialsResponseCredentials>;
1978
1669
  export interface HostingCreateWpCredentialsResponse {
1979
1670
  status?: string;
1980
1671
  credentials?: HostingCreateWpCredentialsResponseCredentials;
1981
1672
  message?: string;
1982
1673
  }
1983
- export declare const HostingCreateWpCredentialsResponse: S.Schema<HostingCreateWpCredentialsResponse>;
1984
1674
  export interface HostingDeleteFileRequest {
1985
1675
  domain: string;
1986
1676
  path: string;
1987
1677
  /** Delete a directory together with everything in it (up to 2,000 items per call; call again to continue). Without it, a non-empty directory returns HOSTING_DIR_NOT_EMPTY. */
1988
1678
  recursive?: boolean;
1989
1679
  }
1990
- export declare const HostingDeleteFileRequest: S.Schema<HostingDeleteFileRequest>;
1991
1680
  export interface HostingDeleteFileResponse {
1992
1681
  status?: string;
1993
1682
  deleted?: string;
1994
1683
  }
1995
- export declare const HostingDeleteFileResponse: S.Schema<HostingDeleteFileResponse>;
1996
1684
  export interface HostingDeleteWpCredentialsRequest {
1997
1685
  domain: string;
1998
1686
  /** The application password uuid to revoke. */
@@ -2002,51 +1690,40 @@ export interface HostingDeleteWpCredentialsRequest {
2002
1690
  wpUser?: string;
2003
1691
  dryRun?: boolean;
2004
1692
  }
2005
- export declare const HostingDeleteWpCredentialsRequest: S.Schema<HostingDeleteWpCredentialsRequest>;
2006
1693
  export interface HostingDeleteWpCredentialsResponse {
2007
1694
  status?: string;
2008
1695
  revoked?: string;
2009
1696
  message?: string;
2010
1697
  }
2011
- export declare const HostingDeleteWpCredentialsResponse: S.Schema<HostingDeleteWpCredentialsResponse>;
2012
1698
  export interface HostingFilesRequest {
2013
1699
  domain: string;
2014
1700
  }
2015
- export declare const HostingFilesRequest: S.Schema<HostingFilesRequest>;
2016
1701
  export type HostingFilesResponseFilesList = Array<string>;
2017
- export declare const HostingFilesResponseFilesList: S.Schema<HostingFilesResponseFilesList>;
2018
1702
  export interface HostingFilesResponse {
2019
1703
  status?: string;
2020
1704
  path?: string;
2021
1705
  files?: HostingFilesResponseFilesList;
2022
1706
  }
2023
- export declare const HostingFilesResponse: S.Schema<HostingFilesResponse>;
2024
1707
  export interface HostingGetWpCredentialsRequest {
2025
1708
  domain: string;
2026
1709
  wpUser?: string;
2027
1710
  }
2028
- export declare const HostingGetWpCredentialsRequest: S.Schema<HostingGetWpCredentialsRequest>;
2029
1711
  export type HostingGetWpCredentialsResponseCredentialsList = Array<unknown>;
2030
- export declare const HostingGetWpCredentialsResponseCredentialsList: S.Schema<HostingGetWpCredentialsResponseCredentialsList>;
2031
1712
  export interface HostingGetWpCredentialsResponse {
2032
1713
  status?: string;
2033
1714
  wpUser?: string;
2034
1715
  credentials?: HostingGetWpCredentialsResponseCredentialsList;
2035
1716
  }
2036
- export declare const HostingGetWpCredentialsResponse: S.Schema<HostingGetWpCredentialsResponse>;
2037
1717
  export interface HostingMakeDirRequest {
2038
1718
  domain: string;
2039
1719
  path: string;
2040
1720
  }
2041
- export declare const HostingMakeDirRequest: S.Schema<HostingMakeDirRequest>;
2042
1721
  export interface HostingMakeDirResponse {
2043
1722
  status?: string;
2044
1723
  created?: string;
2045
1724
  }
2046
- export declare const HostingMakeDirResponse: S.Schema<HostingMakeDirResponse>;
2047
1725
  export interface HostingPlansRequest {
2048
1726
  }
2049
- export declare const HostingPlansRequest: S.Schema<HostingPlansRequest>;
2050
1727
  export interface HostingPlansResponsePlansItem {
2051
1728
  product?: string;
2052
1729
  plan?: string;
@@ -2059,25 +1736,19 @@ export interface HostingPlansResponsePlansItem {
2059
1736
  name?: string;
2060
1737
  features?: unknown;
2061
1738
  }
2062
- export declare const HostingPlansResponsePlansItem: S.Schema<HostingPlansResponsePlansItem>;
2063
1739
  export type HostingPlansResponsePlansList = Array<HostingPlansResponsePlansItem>;
2064
- export declare const HostingPlansResponsePlansList: S.Schema<HostingPlansResponsePlansList>;
2065
1740
  export interface HostingPlansResponse {
2066
1741
  status?: string;
2067
1742
  plans?: HostingPlansResponsePlansList;
2068
1743
  }
2069
- export declare const HostingPlansResponse: S.Schema<HostingPlansResponse>;
2070
- /** Records to create. Omit to import what a scan discovers. NS and SOA entries are ignored — they describe the delegation, not the zone contents. */
1744
+ /** Records to create. Omit to import what a scan discovers. NS and SOA entries are ignored -- they describe the delegation, not the zone contents. */
2071
1745
  export type ImportDnsRequestRecordsList = Array<DnsRecordInput>;
2072
- export declare const ImportDnsRequestRecordsList: S.Schema<ImportDnsRequestRecordsList>;
2073
1746
  export interface ImportDnsRequest {
2074
1747
  domain: string;
2075
- /** Records to create. Omit to import what a scan discovers. NS and SOA entries are ignored — they describe the delegation, not the zone contents. */
1748
+ /** Records to create. Omit to import what a scan discovers. NS and SOA entries are ignored -- they describe the delegation, not the zone contents. */
2076
1749
  records?: ImportDnsRequestRecordsList;
2077
1750
  }
2078
- export declare const ImportDnsRequest: S.Schema<ImportDnsRequest>;
2079
1751
  export type ImportDnsResponseFailuresList = Array<unknown>;
2080
- export declare const ImportDnsResponseFailuresList: S.Schema<ImportDnsResponseFailuresList>;
2081
1752
  export interface ImportDnsResponse {
2082
1753
  status?: string;
2083
1754
  domain?: string;
@@ -2088,25 +1759,18 @@ export interface ImportDnsResponse {
2088
1759
  failures?: ImportDnsResponseFailuresList;
2089
1760
  warnings?: DnsWriteWarnings;
2090
1761
  }
2091
- export declare const ImportDnsResponse: S.Schema<ImportDnsResponse>;
2092
1762
  /** Return label metadata for each domain. Defaults to no. */
2093
1763
  export type ListDomainsRequestIncludeLabels = "yes" | "no";
2094
- export declare const ListDomainsRequestIncludeLabels: any;
2095
1764
  /** Limit to these TLDs (without leading dot). */
2096
1765
  export type ListDomainsRequestTldsList = Array<string>;
2097
- export declare const ListDomainsRequestTldsList: S.Schema<ListDomainsRequestTldsList>;
2098
1766
  /** Filter to domains with auto-renew on or off. */
2099
1767
  export type ListDomainsRequestAutoRenew = "yes" | "no";
2100
- export declare const ListDomainsRequestAutoRenew: any;
2101
1768
  /** Filter to domains opted in to API access (yes) or not (no). Useful for finding domains an API key can actually operate on. */
2102
1769
  export type ListDomainsRequestApiAccess = "yes" | "no";
2103
- export declare const ListDomainsRequestApiAccess: any;
2104
1770
  /** Field to sort by. Default: `expire_date` ascending. */
2105
1771
  export type ListDomainsRequestSortName = "domain" | "tld" | "create_date" | "expire_date";
2106
- export declare const ListDomainsRequestSortName: any;
2107
1772
  /** Sort direction. Default: asc. */
2108
1773
  export type ListDomainsRequestSortDirection = "asc" | "desc";
2109
- export declare const ListDomainsRequestSortDirection: any;
2110
1774
  export interface ListDomainsRequest {
2111
1775
  /** Zero-based offset for pagination (default: 0). Returns up to 1000 domains per call. */
2112
1776
  start?: number;
@@ -2129,7 +1793,6 @@ export interface ListDomainsRequest {
2129
1793
  /** Sort direction. Default: asc. */
2130
1794
  sortDirection?: ListDomainsRequestSortDirection | (string & {});
2131
1795
  }
2132
- export declare const ListDomainsRequest: S.Schema<ListDomainsRequest>;
2133
1796
  export interface ListInvoicesRequest {
2134
1797
  /** Only invoices from this year, e.g. 2026. */
2135
1798
  year?: number;
@@ -2137,12 +1800,9 @@ export interface ListInvoicesRequest {
2137
1800
  start?: number;
2138
1801
  limit?: number;
2139
1802
  }
2140
- export declare const ListInvoicesRequest: S.Schema<ListInvoicesRequest>;
2141
1803
  export type ListInvoicesResponseInvoicesItemState = "PAID" | "PARTIALLY_REFUNDED" | "REFUNDED" | "UNPAID";
2142
- export declare const ListInvoicesResponseInvoicesItemState: any;
2143
1804
  /** Up to 10 domains on the invoice. */
2144
1805
  export type ListInvoicesResponseInvoicesItemDomainsList = Array<string>;
2145
- export declare const ListInvoicesResponseInvoicesItemDomainsList: S.Schema<ListInvoicesResponseInvoicesItemDomainsList>;
2146
1806
  export interface ListInvoicesResponseInvoicesItem {
2147
1807
  id?: number;
2148
1808
  date?: string;
@@ -2155,12 +1815,9 @@ export interface ListInvoicesResponseInvoicesItem {
2155
1815
  /** The invoice page on porkbun.com (null on a sandbox key). */
2156
1816
  url?: string | null;
2157
1817
  }
2158
- export declare const ListInvoicesResponseInvoicesItem: S.Schema<ListInvoicesResponseInvoicesItem>;
2159
1818
  export type ListInvoicesResponseInvoicesList = Array<ListInvoicesResponseInvoicesItem>;
2160
- export declare const ListInvoicesResponseInvoicesList: S.Schema<ListInvoicesResponseInvoicesList>;
2161
1819
  /** Years that have invoices. */
2162
1820
  export type ListInvoicesResponseYearsList = Array<number>;
2163
- export declare const ListInvoicesResponseYearsList: S.Schema<ListInvoicesResponseYearsList>;
2164
1821
  export interface ListInvoicesResponse {
2165
1822
  status?: string;
2166
1823
  invoices?: ListInvoicesResponseInvoicesList;
@@ -2171,16 +1828,12 @@ export interface ListInvoicesResponse {
2171
1828
  /** Years that have invoices. */
2172
1829
  years?: ListInvoicesResponseYearsList;
2173
1830
  }
2174
- export declare const ListInvoicesResponse: S.Schema<ListInvoicesResponse>;
2175
1831
  /** Filter to listings under these TLDs (without the leading dot). */
2176
1832
  export type ListMarketplaceListingsRequestTldsList = Array<string>;
2177
- export declare const ListMarketplaceListingsRequestTldsList: S.Schema<ListMarketplaceListingsRequestTldsList>;
2178
1833
  /** Field to sort filtered results by. Default `sld_length` ascending when `query` is set, otherwise `create_date` descending. */
2179
1834
  export type ListMarketplaceListingsRequestSortName = "domain" | "tld" | "price" | "sld_length";
2180
- export declare const ListMarketplaceListingsRequestSortName: any;
2181
1835
  /** Sort direction. Defaults vary by `sortName`. */
2182
1836
  export type ListMarketplaceListingsRequestSortDirection = "asc" | "desc";
2183
- export declare const ListMarketplaceListingsRequestSortDirection: any;
2184
1837
  export interface ListMarketplaceListingsRequest {
2185
1838
  /** Pagination offset (unfiltered mode only). Default 0. */
2186
1839
  start?: number;
@@ -2199,7 +1852,6 @@ export interface ListMarketplaceListingsRequest {
2199
1852
  /** Sort direction. Defaults vary by `sortName`. */
2200
1853
  sortDirection?: ListMarketplaceListingsRequestSortDirection | (string & {});
2201
1854
  }
2202
- export declare const ListMarketplaceListingsRequest: S.Schema<ListMarketplaceListingsRequest>;
2203
1855
  export interface ListMarketplaceListingsResponseDomainsItem {
2204
1856
  /** Date the listing was created */
2205
1857
  create_date?: string;
@@ -2210,9 +1862,7 @@ export interface ListMarketplaceListingsResponseDomainsItem {
2210
1862
  /** Listing price in USD */
2211
1863
  price?: number;
2212
1864
  }
2213
- export declare const ListMarketplaceListingsResponseDomainsItem: S.Schema<ListMarketplaceListingsResponseDomainsItem>;
2214
1865
  export type ListMarketplaceListingsResponseDomainsList = Array<ListMarketplaceListingsResponseDomainsItem>;
2215
- export declare const ListMarketplaceListingsResponseDomainsList: S.Schema<ListMarketplaceListingsResponseDomainsList>;
2216
1866
  export interface ListMarketplaceListingsResponse {
2217
1867
  status?: string;
2218
1868
  /** Number of domains returned in this response */
@@ -2221,13 +1871,9 @@ export interface ListMarketplaceListingsResponse {
2221
1871
  filtered?: boolean;
2222
1872
  domains?: ListMarketplaceListingsResponseDomainsList;
2223
1873
  }
2224
- export declare const ListMarketplaceListingsResponse: S.Schema<ListMarketplaceListingsResponse>;
2225
1874
  export type ListMarketplaceListingsGetRequestTldsList = Array<string>;
2226
- export declare const ListMarketplaceListingsGetRequestTldsList: S.Schema<ListMarketplaceListingsGetRequestTldsList>;
2227
1875
  export type ListMarketplaceListingsGetRequestSortName = "domain" | "tld" | "price" | "sld_length";
2228
- export declare const ListMarketplaceListingsGetRequestSortName: any;
2229
1876
  export type ListMarketplaceListingsGetRequestSortDirection = "asc" | "desc";
2230
- export declare const ListMarketplaceListingsGetRequestSortDirection: any;
2231
1877
  export interface ListMarketplaceListingsGetRequest {
2232
1878
  /** SLD substring search. Multi-word; prefix a term with `-` to exclude. Example: `ai -test`. */
2233
1879
  query?: string;
@@ -2246,7 +1892,6 @@ export interface ListMarketplaceListingsGetRequest {
2246
1892
  /** Page size (unfiltered mode only). Default 1000, max 5000. */
2247
1893
  limit?: number;
2248
1894
  }
2249
- export declare const ListMarketplaceListingsGetRequest: S.Schema<ListMarketplaceListingsGetRequest>;
2250
1895
  export interface ListMarketplaceListingsGetResponseDomainsItem {
2251
1896
  create_date?: string;
2252
1897
  domain?: string;
@@ -2254,23 +1899,17 @@ export interface ListMarketplaceListingsGetResponseDomainsItem {
2254
1899
  sld_length?: number;
2255
1900
  price?: number;
2256
1901
  }
2257
- export declare const ListMarketplaceListingsGetResponseDomainsItem: S.Schema<ListMarketplaceListingsGetResponseDomainsItem>;
2258
1902
  export type ListMarketplaceListingsGetResponseDomainsList = Array<ListMarketplaceListingsGetResponseDomainsItem>;
2259
- export declare const ListMarketplaceListingsGetResponseDomainsList: S.Schema<ListMarketplaceListingsGetResponseDomainsList>;
2260
1903
  export interface ListMarketplaceListingsGetResponse {
2261
1904
  status?: string;
2262
1905
  count?: number;
2263
1906
  filtered?: boolean;
2264
1907
  domains?: ListMarketplaceListingsGetResponseDomainsList;
2265
1908
  }
2266
- export declare const ListMarketplaceListingsGetResponse: S.Schema<ListMarketplaceListingsGetResponse>;
2267
1909
  export interface ListTransfersGetRequest {
2268
1910
  }
2269
- export declare const ListTransfersGetRequest: S.Schema<ListTransfersGetRequest>;
2270
1911
  export type ListTransfersResponseStatus = "SUCCESS" | "ERROR";
2271
- export declare const ListTransfersResponseStatus: any;
2272
1912
  export type ListTransfersResponseTransfersItemStatus = "NEW" | "PENDINGAUTH" | "PENDINGSUBMIT" | "PENDINGTRANSFER" | "DONE" | "CANCELED" | "INIT";
2273
- export declare const ListTransfersResponseTransfersItemStatus: any;
2274
1913
  export interface ListTransfersResponseTransfersItem {
2275
1914
  domain?: string;
2276
1915
  status?: ListTransfersResponseTransfersItemStatus;
@@ -2278,57 +1917,43 @@ export interface ListTransfersResponseTransfersItem {
2278
1917
  transferDate?: string;
2279
1918
  orderId?: number;
2280
1919
  }
2281
- export declare const ListTransfersResponseTransfersItem: S.Schema<ListTransfersResponseTransfersItem>;
2282
1920
  export type ListTransfersResponseTransfersList = Array<ListTransfersResponseTransfersItem>;
2283
- export declare const ListTransfersResponseTransfersList: S.Schema<ListTransfersResponseTransfersList>;
2284
1921
  export interface ListTransfersResponse {
2285
1922
  status?: ListTransfersResponseStatus;
2286
1923
  transfers?: ListTransfersResponseTransfersList;
2287
1924
  }
2288
- export declare const ListTransfersResponse: S.Schema<ListTransfersResponse>;
2289
1925
  export interface ListWebhookRequest {
2290
1926
  }
2291
- export declare const ListWebhookRequest: S.Schema<ListWebhookRequest>;
2292
1927
  export type WebhookListResponseEndpointsList = Array<WebhookEndpoint>;
2293
- export declare const WebhookListResponseEndpointsList: S.Schema<WebhookListResponseEndpointsList>;
2294
1928
  export interface WebhookListResponse {
2295
1929
  status?: string;
2296
1930
  endpoints?: WebhookListResponseEndpointsList;
2297
1931
  }
2298
- export declare const WebhookListResponse: S.Schema<WebhookListResponse>;
2299
1932
  export interface MockDirectoryRequest {
2300
1933
  }
2301
- export declare const MockDirectoryRequest: S.Schema<MockDirectoryRequest>;
2302
1934
  export interface MockDirectoryResponseEndpointsItem {
2303
1935
  method?: string;
2304
1936
  path?: string;
2305
1937
  summary?: string;
2306
1938
  mockUrl?: string;
2307
1939
  }
2308
- export declare const MockDirectoryResponseEndpointsItem: S.Schema<MockDirectoryResponseEndpointsItem>;
2309
1940
  export type MockDirectoryResponseEndpointsList = Array<MockDirectoryResponseEndpointsItem>;
2310
- export declare const MockDirectoryResponseEndpointsList: S.Schema<MockDirectoryResponseEndpointsList>;
2311
1941
  export interface MockDirectoryResponse {
2312
1942
  status?: string;
2313
1943
  mock?: boolean;
2314
1944
  count?: number;
2315
1945
  endpoints?: MockDirectoryResponseEndpointsList;
2316
1946
  }
2317
- export declare const MockDirectoryResponse: S.Schema<MockDirectoryResponse>;
2318
1947
  export type MockEndpointRequestStatus = "error";
2319
- export declare const MockEndpointRequestStatus: any;
2320
1948
  export interface MockEndpointRequest {
2321
1949
  /** The real endpoint path to mock, e.g. `domain/listAll`. */
2322
1950
  path: string;
2323
1951
  /** Set to `error` to return the error-response shape. */
2324
1952
  status?: MockEndpointRequestStatus | (string & {});
2325
1953
  }
2326
- export declare const MockEndpointRequest: S.Schema<MockEndpointRequest>;
2327
1954
  export type MockEndpointResponse = unknown;
2328
- export declare const MockEndpointResponse: S.Schema<MockEndpointResponse>;
2329
1955
  export interface PingRequest {
2330
1956
  }
2331
- export declare const PingRequest: S.Schema<PingRequest>;
2332
1957
  export interface PingResponse {
2333
1958
  status: string;
2334
1959
  /** The caller's public IP address */
@@ -2338,19 +1963,14 @@ export interface PingResponse {
2338
1963
  /** Present and true when valid credentials were supplied */
2339
1964
  credentialsValid?: boolean;
2340
1965
  }
2341
- export declare const PingResponse: S.Schema<PingResponse>;
2342
1966
  export interface PostIpRequest {
2343
1967
  }
2344
- export declare const PostIpRequest: S.Schema<PostIpRequest>;
2345
1968
  export interface PreviewCloudflareRequest {
2346
1969
  domain: string;
2347
1970
  }
2348
- export declare const PreviewCloudflareRequest: S.Schema<PreviewCloudflareRequest>;
2349
1971
  export type PreviewCloudflareResponse = unknown;
2350
- export declare const PreviewCloudflareResponse: S.Schema<PreviewCloudflareResponse>;
2351
1972
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
2352
1973
  export type RenewDomainRequestPayWith = "usdc";
2353
- export declare const RenewDomainRequestPayWith: any;
2354
1974
  export interface RenewDomainRequest {
2355
1975
  domain: string;
2356
1976
  /** 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. */
@@ -2362,17 +1982,13 @@ export interface RenewDomainRequest {
2362
1982
  /** 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. */
2363
1983
  dryRun?: boolean;
2364
1984
  }
2365
- export declare const RenewDomainRequest: S.Schema<RenewDomainRequest>;
2366
1985
  export type RenewDomainResponseLimitsAttempts = CreateDomainResponseLimitsAttempts;
2367
- export declare const RenewDomainResponseLimitsAttempts: S.Schema<CreateDomainResponseLimitsAttempts>;
2368
1986
  export type RenewDomainResponseLimitsSuccess = CreateDomainResponseLimitsSuccess;
2369
- export declare const RenewDomainResponseLimitsSuccess: S.Schema<CreateDomainResponseLimitsSuccess>;
2370
1987
  /** Current rate limit state for both attempt and success limits */
2371
1988
  export interface RenewDomainResponseLimits {
2372
1989
  attempts?: CreateDomainResponseLimitsAttempts;
2373
1990
  success?: CreateDomainResponseLimitsSuccess;
2374
1991
  }
2375
- export declare const RenewDomainResponseLimits: S.Schema<RenewDomainResponseLimits>;
2376
1992
  export interface RenewDomainResponse {
2377
1993
  status: string;
2378
1994
  /** The renewed domain name */
@@ -2392,19 +2008,14 @@ export interface RenewDomainResponse {
2392
2008
  /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
2393
2009
  requestId?: string;
2394
2010
  }
2395
- export declare const RenewDomainResponse: S.Schema<RenewDomainResponse>;
2396
2011
  export type RenewDomainResponseBody = RenewDomainResponse | DryRunPreviewResponse;
2397
- export declare const RenewDomainResponseBody: S.Schema<RenewDomainResponseBody>;
2398
2012
  export type RenewDomainResponse2 = RenewDomainResponseBody;
2399
- export declare const RenewDomainResponse2: S.Schema<RenewDomainResponse2>;
2400
2013
  export interface ResendWebhookRequest {
2401
2014
  /** Endpoint id. */
2402
2015
  id: number;
2403
2016
  }
2404
- export declare const ResendWebhookRequest: S.Schema<ResendWebhookRequest>;
2405
2017
  /** PENDING (queued/awaiting retry), PROCESSING (in flight), DELIVERED (2xx), or FAILED (gave up after max attempts). */
2406
2018
  export type WebhookDeliveryStatus = "PENDING" | "PROCESSING" | "DELIVERED" | "FAILED";
2407
- export declare const WebhookDeliveryStatus: any;
2408
2019
  export interface WebhookDelivery {
2409
2020
  /** Delivery id. */
2410
2021
  id?: number;
@@ -2432,16 +2043,13 @@ export interface WebhookDelivery {
2432
2043
  /** The full event envelope that was sent. Present only on GET /webhook/delivery/{id}. */
2433
2044
  payload?: unknown;
2434
2045
  }
2435
- export declare const WebhookDelivery: S.Schema<WebhookDelivery>;
2436
2046
  export interface WebhookResendResponse {
2437
2047
  status?: string;
2438
2048
  delivery?: WebhookDelivery;
2439
2049
  message?: string;
2440
2050
  }
2441
- export declare const WebhookResendResponse: S.Schema<WebhookResendResponse>;
2442
2051
  export interface ResetSandboxRequest {
2443
2052
  }
2444
- export declare const ResetSandboxRequest: S.Schema<ResetSandboxRequest>;
2445
2053
  export interface ResetSandboxResponse {
2446
2054
  status?: string;
2447
2055
  message?: string;
@@ -2449,7 +2057,6 @@ export interface ResetSandboxResponse {
2449
2057
  balance?: number;
2450
2058
  sandbox?: boolean;
2451
2059
  }
2452
- export declare const ResetSandboxResponse: S.Schema<ResetSandboxResponse>;
2453
2060
  export interface RestoreDnsRequest {
2454
2061
  domain: string;
2455
2062
  /** The restore point to go back to, from GET /dns/history/{domain}. */
@@ -2459,16 +2066,13 @@ export interface RestoreDnsRequest {
2459
2066
  /** Report what would change without changing anything. */
2460
2067
  dryRun?: boolean;
2461
2068
  }
2462
- export declare const RestoreDnsRequest: S.Schema<RestoreDnsRequest>;
2463
2069
  export interface DnsRestoreResponseFailedItem {
2464
2070
  name?: string;
2465
2071
  type?: string;
2466
2072
  reason?: string;
2467
2073
  }
2468
- export declare const DnsRestoreResponseFailedItem: S.Schema<DnsRestoreResponseFailedItem>;
2469
2074
  /** Records that could not be recreated, with the reason. Parking and other masked types are managed elsewhere and cannot be restored this way. */
2470
2075
  export type DnsRestoreResponseFailedList = Array<DnsRestoreResponseFailedItem>;
2471
- export declare const DnsRestoreResponseFailedList: S.Schema<DnsRestoreResponseFailedList>;
2472
2076
  export interface DnsRestoreResponse {
2473
2077
  warnings?: DnsWriteWarnings;
2474
2078
  status?: string;
@@ -2484,18 +2088,14 @@ export interface DnsRestoreResponse {
2484
2088
  /** Records that could not be recreated, with the reason. Parking and other masked types are managed elsewhere and cannot be restored this way. */
2485
2089
  failed?: DnsRestoreResponseFailedList;
2486
2090
  }
2487
- export declare const DnsRestoreResponse: S.Schema<DnsRestoreResponse>;
2488
2091
  export interface RetryCloudflareRequest {
2489
2092
  domain: string;
2490
2093
  }
2491
- export declare const RetryCloudflareRequest: S.Schema<RetryCloudflareRequest>;
2492
2094
  export type RetryCloudflareResponse = unknown;
2493
- export declare const RetryCloudflareResponse: S.Schema<RetryCloudflareResponse>;
2494
2095
  export interface SandboxTopupRequest {
2495
2096
  /** Fake credit to add in US cents (default 100000; max 1000000). */
2496
2097
  amount?: number;
2497
2098
  }
2498
- export declare const SandboxTopupRequest: S.Schema<SandboxTopupRequest>;
2499
2099
  export interface SandboxTopupResponse {
2500
2100
  status?: string;
2501
2101
  granted?: number;
@@ -2503,17 +2103,14 @@ export interface SandboxTopupResponse {
2503
2103
  display?: string;
2504
2104
  sandbox?: boolean;
2505
2105
  }
2506
- export declare const SandboxTopupResponse: S.Schema<SandboxTopupResponse>;
2507
2106
  /** Event type to emit. */
2508
2107
  export type SandboxTriggerWebhookRequestEventType = "domain.registered" | "domain.renewed" | "domain.transfer.completed" | "domain.expiring" | "dns.record.created" | "dns.record.updated" | "dns.record.deleted";
2509
- export declare const SandboxTriggerWebhookRequestEventType: any;
2510
2108
  export interface SandboxTriggerWebhookRequest {
2511
2109
  /** Event type to emit. */
2512
2110
  eventType: SandboxTriggerWebhookRequestEventType | (string & {});
2513
2111
  /** Domain used in the sample payload (default example.com). */
2514
2112
  domain?: string;
2515
2113
  }
2516
- export declare const SandboxTriggerWebhookRequest: S.Schema<SandboxTriggerWebhookRequest>;
2517
2114
  export interface SandboxTriggerWebhookResponse {
2518
2115
  status?: string;
2519
2116
  event?: string;
@@ -2522,7 +2119,6 @@ export interface SandboxTriggerWebhookResponse {
2522
2119
  message?: string;
2523
2120
  sandbox?: boolean;
2524
2121
  }
2525
- export declare const SandboxTriggerWebhookResponse: S.Schema<SandboxTriggerWebhookResponse>;
2526
2122
  export interface SearchCloseoutRequest {
2527
2123
  /** Keyword match on the domain name. */
2528
2124
  query?: string;
@@ -2538,7 +2134,7 @@ export interface SearchCloseoutRequest {
2538
2134
  priceMin?: number;
2539
2135
  /** Maximum closeout price, integer US cents. */
2540
2136
  priceMax?: number;
2541
- /** One of: domain, endTime, price, revenue, visitors, inboundLinks, registrationDate. Ascending on registrationDate means oldest registration first, which is how you find aged names. Ascending on revenue, visitors or inboundLinks puts the domains with no recorded figure first (they return null) — use desc on those to see the highest values; the response carries a `warnings` entry reminding you. */
2137
+ /** One of: domain, endTime, price, revenue, visitors, inboundLinks, registrationDate. Ascending on registrationDate means oldest registration first, which is how you find aged names. Ascending on revenue, visitors or inboundLinks puts the domains with no recorded figure first (they return null) -- use desc on those to see the highest values; the response carries a `warnings` entry reminding you. */
2542
2138
  sortName?: string;
2543
2139
  /** `asc` or `desc`. */
2544
2140
  sortDirection?: string;
@@ -2547,9 +2143,7 @@ export interface SearchCloseoutRequest {
2547
2143
  /** Rows per page, 1-500. Default 100. */
2548
2144
  limit?: number;
2549
2145
  }
2550
- export declare const SearchCloseoutRequest: S.Schema<SearchCloseoutRequest>;
2551
2146
  export type SearchCloseoutResponseCloseoutsList = Array<CloseoutItem>;
2552
- export declare const SearchCloseoutResponseCloseoutsList: S.Schema<SearchCloseoutResponseCloseoutsList>;
2553
2147
  export interface SearchCloseoutResponse {
2554
2148
  status?: string;
2555
2149
  count?: number;
@@ -2559,7 +2153,6 @@ export interface SearchCloseoutResponse {
2559
2153
  limit?: number;
2560
2154
  closeouts?: SearchCloseoutResponseCloseoutsList;
2561
2155
  }
2562
- export declare const SearchCloseoutResponse: S.Schema<SearchCloseoutResponse>;
2563
2156
  export interface SetAutoTopupRequest {
2564
2157
  /** Turn auto top-up on or off. Omit to change only the amount. */
2565
2158
  enabled: boolean;
@@ -2570,26 +2163,22 @@ export interface SetAutoTopupRequest {
2570
2163
  /** Validate only; change nothing. */
2571
2164
  dryRun?: boolean;
2572
2165
  }
2573
- export declare const SetAutoTopupRequest: S.Schema<SetAutoTopupRequest>;
2574
2166
  export interface TestWebhookRequest {
2575
2167
  /** Endpoint id. */
2576
2168
  id: number;
2577
2169
  }
2578
- export declare const TestWebhookRequest: S.Schema<TestWebhookRequest>;
2579
2170
  export interface WebhookTestResponse {
2580
2171
  status?: string;
2581
2172
  /** UUID of the queued webhook.test event. */
2582
2173
  eventId?: string;
2583
2174
  message?: string;
2584
2175
  }
2585
- export declare const WebhookTestResponse: S.Schema<WebhookTestResponse>;
2586
2176
  export interface TopupAccountCreditRequest {
2587
- /** Optional one-off amount in integer US cents (500-50000). Omit to charge the amount the account has configured, which is the common case. A supplied amount does NOT change the stored setting — use it instead of rewriting the customer's configuration for a single charge. */
2177
+ /** Optional one-off amount in integer US cents (500-50000). Omit to charge the amount the account has configured, which is the common case. A supplied amount does NOT change the stored setting -- use it instead of rewriting the customer's configuration for a single charge. */
2588
2178
  amount?: number;
2589
2179
  /** Preview the charge without making it. */
2590
2180
  dryRun?: boolean;
2591
2181
  }
2592
- export declare const TopupAccountCreditRequest: S.Schema<TopupAccountCreditRequest>;
2593
2182
  export interface TopupAccountCreditResponse {
2594
2183
  status?: string;
2595
2184
  /** Amount charged, in cents. */
@@ -2608,14 +2197,12 @@ export interface TopupAccountCreditResponse {
2608
2197
  simulated?: boolean;
2609
2198
  message?: string;
2610
2199
  }
2611
- export declare const TopupAccountCreditResponse: S.Schema<TopupAccountCreditResponse>;
2612
2200
  export interface TopupCryptoRequest {
2613
2201
  /** Checkout amount in integer US cents, $1.00 to $500.00 (100 = $1.00). Credit is this less Coinbase's fee of about 1%. */
2614
2202
  amount: number;
2615
2203
  /** Check eligibility only; creates no checkout. */
2616
2204
  dryRun?: boolean;
2617
2205
  }
2618
- export declare const TopupCryptoRequest: S.Schema<TopupCryptoRequest>;
2619
2206
  export interface TopupCryptoResponse {
2620
2207
  status?: string;
2621
2208
  checkoutId?: string;
@@ -2633,13 +2220,10 @@ export interface TopupCryptoResponse {
2633
2220
  expiresAt?: string | null;
2634
2221
  message?: string;
2635
2222
  }
2636
- export declare const TopupCryptoResponse: S.Schema<TopupCryptoResponse>;
2637
2223
  export interface TopupCryptoStatusRequest {
2638
2224
  checkoutId: string;
2639
2225
  }
2640
- export declare const TopupCryptoStatusRequest: S.Schema<TopupCryptoStatusRequest>;
2641
2226
  export type TopupCryptoStatusResponseState = "ACTIVE" | "PROCESSING" | "COMPLETED" | "EXPIRED" | "FAILED" | "DEACTIVATED";
2642
- export declare const TopupCryptoStatusResponseState: any;
2643
2227
  export interface TopupCryptoStatusResponse {
2644
2228
  status?: string;
2645
2229
  checkoutId?: string;
@@ -2648,16 +2232,13 @@ export interface TopupCryptoStatusResponse {
2648
2232
  balance_cents?: number;
2649
2233
  balance?: string;
2650
2234
  }
2651
- export declare const TopupCryptoStatusResponse: S.Schema<TopupCryptoStatusResponse>;
2652
2235
  export interface TopupMppRequest {
2653
2236
  /** Credit to add, in integer US cents. */
2654
2237
  amount: number;
2655
2238
  /** Check eligibility and limits only. */
2656
2239
  dryRun?: boolean;
2657
2240
  }
2658
- export declare const TopupMppRequest: S.Schema<TopupMppRequest>;
2659
2241
  export type TopupMppResponseMethodsList = Array<string>;
2660
- export declare const TopupMppResponseMethodsList: S.Schema<TopupMppResponseMethodsList>;
2661
2242
  export interface TopupMppResponse {
2662
2243
  status?: string;
2663
2244
  amount_cents?: number;
@@ -2668,10 +2249,8 @@ export interface TopupMppResponse {
2668
2249
  methods?: TopupMppResponseMethodsList;
2669
2250
  message?: string;
2670
2251
  }
2671
- export declare const TopupMppResponse: S.Schema<TopupMppResponse>;
2672
2252
  /** Optional. `"usdc"` pays for this purchase directly in USDC on Base over x402 instead of from account credit. The first call answers HTTP 402 (`PAYMENT_REQUIRED`) with Coinbase's terms in the `PAYMENT-REQUIRED` header and charges nothing; an x402 client pays and repeats the same request with a `PAYMENT-SIGNATURE` header, and the purchase completes in that call. If it then fails, the payment stays on the account as account credit; it is not sent back to the wallet. If your wallet pays URLs itself instead, pay the 402's `x402Url` (or have a person pay `payUrl`) and repeat the request with `usdcCheckoutId`. See the guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 */
2673
2253
  export type TransferDomainRequestPayWith = "usdc";
2674
- export declare const TransferDomainRequestPayWith: any;
2675
2254
  export interface TransferDomainRequest {
2676
2255
  /** The domain name to transfer (e.g. `example.com`). */
2677
2256
  domain: string;
@@ -2688,14 +2267,11 @@ export interface TransferDomainRequest {
2688
2267
  /** 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. */
2689
2268
  dryRun?: boolean;
2690
2269
  }
2691
- export declare const TransferDomainRequest: S.Schema<TransferDomainRequest>;
2692
2270
  export type TransferDomainResponseStatus = "SUCCESS" | "ERROR";
2693
- export declare const TransferDomainResponseStatus: any;
2694
2271
  export interface TransferDomainResponseLimits {
2695
2272
  attempts?: unknown;
2696
2273
  success?: unknown;
2697
2274
  }
2698
- export declare const TransferDomainResponseLimits: S.Schema<TransferDomainResponseLimits>;
2699
2275
  export interface TransferDomainResponse {
2700
2276
  status?: TransferDomainResponseStatus;
2701
2277
  domain?: string;
@@ -2709,18 +2285,13 @@ export interface TransferDomainResponse {
2709
2285
  /** Per-request UUID (also in the X-Request-Id header). Present on every API response. */
2710
2286
  requestId?: string;
2711
2287
  }
2712
- export declare const TransferDomainResponse: S.Schema<TransferDomainResponse>;
2713
2288
  export type TransferDomainResponseBody = TransferDomainResponse | DryRunPreviewResponse;
2714
- export declare const TransferDomainResponseBody: S.Schema<TransferDomainResponseBody>;
2715
2289
  export type TransferDomainResponse2 = TransferDomainResponseBody;
2716
- export declare const TransferDomainResponse2: S.Schema<TransferDomainResponse2>;
2717
2290
  export interface TransferDomainPrepareRequest {
2718
2291
  /** Domain name. */
2719
2292
  domain: string;
2720
2293
  }
2721
- export declare const TransferDomainPrepareRequest: S.Schema<TransferDomainPrepareRequest>;
2722
2294
  export type TransferDomainPrepareResponsePorkbunNameserversList = Array<string>;
2723
- export declare const TransferDomainPrepareResponsePorkbunNameserversList: S.Schema<TransferDomainPrepareResponsePorkbunNameserversList>;
2724
2295
  export interface TransferDomainPrepareResponse {
2725
2296
  status?: string;
2726
2297
  domain?: string;
@@ -2729,26 +2300,21 @@ export interface TransferDomainPrepareResponse {
2729
2300
  message?: string;
2730
2301
  porkbunNameservers?: TransferDomainPrepareResponsePorkbunNameserversList;
2731
2302
  }
2732
- export declare const TransferDomainPrepareResponse: S.Schema<TransferDomainPrepareResponse>;
2733
2303
  /** Replacement event subscription list (optional). */
2734
2304
  export type UpdateWebhookRequestEventsList = Array<string>;
2735
- export declare const UpdateWebhookRequestEventsList: S.Schema<UpdateWebhookRequestEventsList>;
2736
2305
  /** Set ACTIVE to resume (also clears the failure counter) or DISABLED to pause (optional). */
2737
2306
  export type UpdateWebhookRequestStatus = "ACTIVE" | "DISABLED";
2738
- export declare const UpdateWebhookRequestStatus: any;
2739
2307
  export interface UpdateWebhookRequest {
2740
2308
  /** Endpoint id to update. */
2741
2309
  id: number;
2742
- /** HTTPS endpoint that receives the signed POST. Port 443 only, and the hostname must resolve to a public internet address — private/loopback/reserved targets are refused. */
2310
+ /** HTTPS endpoint that receives the signed POST. Port 443 only, and the hostname must resolve to a public internet address -- private/loopback/reserved targets are refused. */
2743
2311
  url?: string;
2744
2312
  /** Replacement event subscription list (optional). */
2745
2313
  events?: UpdateWebhookRequestEventsList;
2746
2314
  /** Set ACTIVE to resume (also clears the failure counter) or DISABLED to pause (optional). */
2747
2315
  status?: UpdateWebhookRequestStatus | (string & {});
2748
2316
  }
2749
- export declare const UpdateWebhookRequest: S.Schema<UpdateWebhookRequest>;
2750
2317
  export type WebhookDeliveriesRequestStatus = "PENDING" | "PROCESSING" | "DELIVERED" | "FAILED";
2751
- export declare const WebhookDeliveriesRequestStatus: any;
2752
2318
  export interface WebhookDeliveriesRequest {
2753
2319
  /** Only deliveries for this endpoint. */
2754
2320
  endpointId?: number;
@@ -2759,10 +2325,8 @@ export interface WebhookDeliveriesRequest {
2759
2325
  /** Page size, 1-200 (default 50). */
2760
2326
  limit?: number;
2761
2327
  }
2762
- export declare const WebhookDeliveriesRequest: S.Schema<WebhookDeliveriesRequest>;
2763
2328
  /** Newest first. The bulky `payload` field is omitted here. */
2764
2329
  export type WebhookDeliveryListResponseDeliveriesList = Array<WebhookDelivery>;
2765
- export declare const WebhookDeliveryListResponseDeliveriesList: S.Schema<WebhookDeliveryListResponseDeliveriesList>;
2766
2330
  export interface WebhookDeliveryListResponse {
2767
2331
  status?: string;
2768
2332
  /** Newest first. The bulky `payload` field is omitted here. */
@@ -2775,31 +2339,24 @@ export interface WebhookDeliveryListResponse {
2775
2339
  limit?: number;
2776
2340
  message?: string;
2777
2341
  }
2778
- export declare const WebhookDeliveryListResponse: S.Schema<WebhookDeliveryListResponse>;
2779
2342
  export interface WebhookDeliveryRequest {
2780
2343
  id: number;
2781
2344
  }
2782
- export declare const WebhookDeliveryRequest: S.Schema<WebhookDeliveryRequest>;
2783
2345
  export interface WebhookDeliveryResponse {
2784
2346
  status?: string;
2785
2347
  delivery?: WebhookDelivery;
2786
2348
  }
2787
- export declare const WebhookDeliveryResponse: S.Schema<WebhookDeliveryResponse>;
2788
2349
  export interface WebhookEventTypesRequest {
2789
2350
  }
2790
- export declare const WebhookEventTypesRequest: S.Schema<WebhookEventTypesRequest>;
2791
2351
  export type WebhookEventTypesResponseEventTypesList = Array<string>;
2792
- export declare const WebhookEventTypesResponseEventTypesList: S.Schema<WebhookEventTypesResponseEventTypesList>;
2793
2352
  export interface WebhookEventTypesResponse {
2794
2353
  status?: string;
2795
2354
  eventTypes?: WebhookEventTypesResponseEventTypesList;
2796
2355
  }
2797
- export declare const WebhookEventTypesResponse: S.Schema<WebhookEventTypesResponse>;
2798
2356
  export interface WebhookRotateSecretRequest {
2799
2357
  /** Endpoint id. */
2800
2358
  id: number;
2801
2359
  }
2802
- export declare const WebhookRotateSecretRequest: S.Schema<WebhookRotateSecretRequest>;
2803
2360
  export type AccountVerifyPhoneConfirmError = PorkbunOpError;
2804
2361
  /** Confirm the phone verification code Marks the account's phone number verified with the code from `POST /account/verifyPhone/send`. A wrong or expired code returns `PHONE_CODE_INVALID`; 10 wrong codes in an hour lock it for the hour (`PHONE_VERIFY_LIMIT`). The response says whether the email address is verified too, since purchases need both; the email is verified by the link in the verification email. */
2805
2362
  export declare const accountVerifyPhoneConfirm: API.OperationMethod<AccountVerifyPhoneConfirmRequest, AccountVerifyPhoneConfirmResponse, AccountVerifyPhoneConfirmError, PorkbunOpContext>;
@@ -2813,7 +2370,7 @@ export type BulkDomainCheckDomainError = BadRequest | PorkbunOpError;
2813
2370
  /** Check several domains at once Check availability and pricing for up to 25 domains in one call. Same endpoint as the single check, with a `domains` array in the body and no domain in the path. **Prefer this over looping the single check.** Checks are chunked per registry, so a batch is materially less work for us than the same names one at a time, and the budget reflects that: this draws on a separate allowance of **200 domains per 60 seconds** per account, against 10 checks per 10 seconds for the single form. Counting is per DOMAIN, not per request, so 25 domains spends 25 of the 200. **Sustained bulk checking.** An account that checks about 1,800 names over three hours while registering little of what it checks (fewer than one domain per 200 names over a day) is treated as scanning for the next 24 hours: its checks, single and bulk, on every API version, share a budget of 50 names per 5 minutes. Over it, the call is refused whole with `RATE_LIMIT_EXCEEDED`, `reason: "SUSTAINED_BULK_CHECKING"` and `retryAfter`; nothing is part-answered. Normal use, including checking a long list of candidate names once, is nowhere near this. Accounts that buy (100 or more registrations in a year) and affiliates sending orders are never treated as scanning, and a per-key limit from support overrides it. **Partial results are normal and must be read.** Three lists come back and they mean different things: - `domains` - answered, keyed by domain name, each value identical in shape to the single-check `response`. - `invalid` - entries that are not checkable at all (not a domain, unsupported TLD). One typo does not fail the call; the other names are still answered. - `unresolved` - the registry did not answer in time. These are **neither available nor taken**; treating them as unavailable is wrong. Retry them. Duplicates are removed before the budget is charged. If more than 25 remain, nothing is checked and `BULK_CHECK_TOO_MANY` is returned rather than a truncated answer. **Latency.** This is synchronous: one request, one complete answer, no polling. 25 domains across 25 different TLDs measures around 3 seconds, because the connection manager fans a batch that fits under every registry's cap out as a single command. A few registries cap low and **.de accepts one domain per command**, so a batch heavy in those becomes several sequential commands; if that would need more than 4, the call is refused with `BULK_CHECK_TOO_SLOW` rather than left to time out mid-response. */
2814
2371
  export declare const bulkDomainCheckDomain: API.OperationMethod<BulkDomainCheckDomainRequest, BulkDomainCheckDomainResponse, BulkDomainCheckDomainError, PorkbunOpContext>;
2815
2372
  export type CloseoutBuyError = BadRequest | Forbidden | NotFound | Conflict | PorkbunOpError;
2816
- /** Buy a closeout outright **Spends account credit, or pays directly in USDC with `"payWith": "usdc"` (HTTP 402, then repeat with `PAYMENT-SIGNATURE`; kept as account credit if the claim fails).** Counts toward the monthly API spend limit. Buys a closeout at its current price and claims the name with the provider in one call. Send `cost` as the exact `totalPrice` from `/closeout/get/{domain}`; any other value is refused with `COST_MISMATCH` so a caller can never be charged a price it did not name. `dryRun: true` with `cost: 0` returns a quote and charges nothing. Honours `Idempotency-Key`. **The domain does not arrive immediately.** Claiming reserves it; the provider then has to release it, which usually takes a few days. Poll `/domain/listAll` or subscribe to the `domain.registered` webhook rather than expecting it in your account when this returns. Every post-charge failure refunds automatically and says so via `refunded: true` — including losing the race to another buyer (`CLOSEOUT_UNAVAILABLE`) and the price moving between quote and claim (`COST_MISMATCH`). Closeouts are first-come at a fixed price, so a lost race is not worth retrying on the same name. Not available with a sandbox key (`SANDBOX_UNSUPPORTED`): the inventory provider has no test environment, so a purchase cannot be rehearsed without claiming a real name. Use `dryRun` against a live key instead — it validates and prices without charging. Eligibility is the same as registering a domain, plus verified email and phone. There is no account-age or prior-order requirement — a first-time customer can buy a closeout, which matters because listings are first-come and often gone within minutes. An account that support has blocked from auctions and closeouts (past-due invoices, or an auction terms violation) returns `CLOSEOUT_NOT_ELIGIBLE`, which is not retryable. */
2373
+ /** Buy a closeout outright **Spends account credit, or pays directly in USDC with `"payWith": "usdc"` (HTTP 402, then repeat with `PAYMENT-SIGNATURE`; kept as account credit if the claim fails).** Counts toward the monthly API spend limit. Buys a closeout at its current price and claims the name with the provider in one call. Send `cost` as the exact `totalPrice` from `/closeout/get/{domain}`; any other value is refused with `COST_MISMATCH` so a caller can never be charged a price it did not name. `dryRun: true` with `cost: 0` returns a quote and charges nothing. Honours `Idempotency-Key`. **The domain does not arrive immediately.** Claiming reserves it; the provider then has to release it, which usually takes a few days. Poll `/domain/listAll` or subscribe to the `domain.registered` webhook rather than expecting it in your account when this returns. Every post-charge failure refunds automatically and says so via `refunded: true` -- including losing the race to another buyer (`CLOSEOUT_UNAVAILABLE`) and the price moving between quote and claim (`COST_MISMATCH`). Closeouts are first-come at a fixed price, so a lost race is not worth retrying on the same name. Not available with a sandbox key (`SANDBOX_UNSUPPORTED`): the inventory provider has no test environment, so a purchase cannot be rehearsed without claiming a real name. Use `dryRun` against a live key instead -- it validates and prices without charging. Eligibility is the same as registering a domain, plus verified email and phone. There is no account-age or prior-order requirement -- a first-time customer can buy a closeout, which matters because listings are first-come and often gone within minutes. An account that support has blocked from auctions and closeouts (past-due invoices, or an auction terms violation) returns `CLOSEOUT_NOT_ELIGIBLE`, which is not retryable. */
2817
2374
  export declare const closeoutBuy: API.OperationMethod<CloseoutBuyRequest, CloseoutBuyResponse, CloseoutBuyError, PorkbunOpContext>;
2818
2375
  export type CloudflareCreateRecordError = PorkbunOpError;
2819
2376
  /** Create a DNS record in the domain's Cloudflare zone **This writes to the Cloudflare zone that actually answers for the domain**, unlike `/dns/*`, which manages Porkbun's nameservers and no longer affects resolution once a domain has moved. `name` accepts `@` for the apex or a bare label. MX requires `priority`. `proxied` applies to A/AAAA/CNAME only. Supports `dryRun`. */
@@ -2825,16 +2382,16 @@ export type CloudflareEditRecordError = PorkbunOpError;
2825
2382
  /** Update a DNS record in the domain's Cloudflare zone **This writes to the Cloudflare zone that actually answers for the domain**, unlike `/dns/*`, which manages Porkbun's nameservers and no longer affects resolution once a domain has moved. Partial update: fields you omit keep their current value. The response carries both the new record and the `previous` one. Supports `dryRun`. */
2826
2383
  export declare const cloudflareEditRecord: API.OperationMethod<CloudflareEditRecordRequest, CloudflareEditRecordResponse, CloudflareEditRecordError, PorkbunOpContext>;
2827
2384
  export type CloudflareGetConnectionError = PorkbunOpError;
2828
- /** Check the Cloudflare account connection (poll target) Whether this account has an active Cloudflare grant, and which Cloudflare account it points at. **This is the poll target for the connect flow.** Minting the grant is a human action: Cloudflare's consent screen has to be completed in a browser, and the authorization is bound to the Porkbun web session that started it, so it cannot be driven over the API. When `connected` is `false` the response carries a `connectUrl` — send the account owner there, then poll this endpoint until `connected` is `true`. Also available via POST. */
2385
+ /** Check the Cloudflare account connection (poll target) Whether this account has an active Cloudflare grant, and which Cloudflare account it points at. **This is the poll target for the connect flow.** Minting the grant is a human action: Cloudflare's consent screen has to be completed in a browser, and the authorization is bound to the Porkbun web session that started it, so it cannot be driven over the API. When `connected` is `false` the response carries a `connectUrl` -- send the account owner there, then poll this endpoint until `connected` is `true`. Also available via POST. */
2829
2386
  export declare const cloudflareGetConnection: API.OperationMethod<CloudflareGetConnectionRequest, CloudflareGetConnectionResponse, CloudflareGetConnectionError, PorkbunOpContext>;
2830
2387
  export type CloudflareGetQueueError = PorkbunOpError;
2831
- /** List every Cloudflare move for the account Every Cloudflare move this account has requested, with status and message. Queue rows are never deleted, so this doubles as the audit trail. Also available via POST. **Status values** (poll until one of the terminal ones): Poll on a sensible interval (a few seconds early on, then back off) — a zone typically leaves `queued` within seconds but can sit in `setup` or `activating` while Cloudflare provisions the zone and DNS propagates. */
2388
+ /** List every Cloudflare move for the account Every Cloudflare move this account has requested, with status and message. Queue rows are never deleted, so this doubles as the audit trail. Also available via POST. **Status values** (poll until one of the terminal ones): Poll on a sensible interval (a few seconds early on, then back off) -- a zone typically leaves `queued` within seconds but can sit in `setup` or `activating` while Cloudflare provisions the zone and DNS propagates. */
2832
2389
  export declare const cloudflareGetQueue: API.OperationMethod<CloudflareGetQueueRequest, CloudflareGetQueueResponse, CloudflareGetQueueError, PorkbunOpContext>;
2833
2390
  export type CloudflareGetRecordsError = PorkbunOpError;
2834
- /** List the domain's live DNS records at Cloudflare The domain's DNS records **as Cloudflare currently holds them**, each with its `proxied` flag and whether it is `proxiable` at all. Once a domain has moved, this is the authoritative record set — `/dns/retrieve` reads the Porkbun zone, which is no longer the one answering queries. Requires the move to have finished (`ZONE_NOT_READY` otherwise). Also available via POST. */
2391
+ /** List the domain's live DNS records at Cloudflare The domain's DNS records **as Cloudflare currently holds them**, each with its `proxied` flag and whether it is `proxiable` at all. Once a domain has moved, this is the authoritative record set -- `/dns/retrieve` reads the Porkbun zone, which is no longer the one answering queries. Requires the move to have finished (`ZONE_NOT_READY` otherwise). Also available via POST. */
2835
2392
  export declare const cloudflareGetRecords: API.OperationMethod<CloudflareGetRecordsRequest, CloudflareGetRecordsResponse, CloudflareGetRecordsError, PorkbunOpContext>;
2836
2393
  export type CloudflareGetZoneError = PorkbunOpError;
2837
- /** Get live zone state from Cloudflare (and detect nameserver drift) What **Cloudflare** says about the zone right now — status, paused, its nameservers, activation date — as opposed to what our queue row remembers. These drift: if the nameservers are repointed elsewhere after the move, our row still reads `done` while Cloudflare has stopped answering for the domain. The response includes the live public nameservers and a `nameserversDrifted` boolean so you don't have to diff them. Also available via POST. */
2394
+ /** Get live zone state from Cloudflare (and detect nameserver drift) What **Cloudflare** says about the zone right now -- status, paused, its nameservers, activation date -- as opposed to what our queue row remembers. These drift: if the nameservers are repointed elsewhere after the move, our row still reads `done` while Cloudflare has stopped answering for the domain. The response includes the live public nameservers and a `nameserversDrifted` boolean so you don't have to diff them. Also available via POST. */
2838
2395
  export declare const cloudflareGetZone: API.OperationMethod<CloudflareGetZoneRequest, CloudflareGetZoneResponse, CloudflareGetZoneError, PorkbunOpContext>;
2839
2396
  export type CloudflareGetZoneSettingsError = PorkbunOpError;
2840
2397
  /** Read the zone settings that matter after a move The Cloudflare zone settings worth caring about post-migration: `ssl`, `always_use_https`, `automatic_https_rewrites`, `min_tls_version`, `development_mode`, `cache_level`. The important one is **`ssl`**: `flexible` means Cloudflare fetches your origin over plain HTTP while visitors see a padlock, so the response warns when it is `off` or `flexible`. Also available via POST. If the account's Cloudflare authorization predates this feature it will not carry the `zone-settings.write` scope, and this returns `CLOUDFLARE_REAUTHORIZE_REQUIRED` with a `connectUrl`. Reconnecting is the same one-click browser flow and does not disturb domains already moved. */
@@ -2843,31 +2400,31 @@ export type CloudflareInventoryError = PorkbunOpError;
2843
2400
  /** List every domain with its Cloudflare eligibility Every domain in the account with a `state` (`eligible`, `warn`, `blocked`, `connected`, `inprogress`) and a human-readable `reason`. Read this **before** queueing to see what will be skipped and why. Works even with no Cloudflare connection yet, so an agent can plan while the owner is still authorizing. Also available via POST. */
2844
2401
  export declare const cloudflareInventory: API.OperationMethod<CloudflareInventoryRequest, CloudflareInventoryResponse, CloudflareInventoryError, PorkbunOpContext>;
2845
2402
  export type CloudflareRollbackError = PorkbunOpError;
2846
- /** Undo a completed move (restore Porkbun nameservers) Point the domain's nameservers back at Porkbun, restoring the DNS we still hold. The Cloudflare zone is deliberately left in place — deleting a zone in someone's own Cloudflare account is theirs to do. Fails with `ROLLBACK_FAILED` if we never moved the domain, it is already back on Porkbun nameservers, or it is being worked on right now. Supports `dryRun`. */
2403
+ /** Undo a completed move (restore Porkbun nameservers) Point the domain's nameservers back at Porkbun, restoring the DNS we still hold. The Cloudflare zone is deliberately left in place -- deleting a zone in someone's own Cloudflare account is theirs to do. Fails with `ROLLBACK_FAILED` if we never moved the domain, it is already back on Porkbun nameservers, or it is being worked on right now. Supports `dryRun`. */
2847
2404
  export declare const cloudflareRollback: API.OperationMethod<CloudflareRollbackRequest, CloudflareRollbackResponse, CloudflareRollbackError, PorkbunOpContext>;
2848
2405
  export type CloudflareSetProxyError = PorkbunOpError;
2849
- /** Turn the Cloudflare proxy (orange cloud) on or off Set `proxied` on the domain's Cloudflare DNS records. **The move itself always imports records DNS-only (grey cloud), on purpose** — changing how traffic is served at the same time as changing who serves DNS gives you two variables to debug at once. Proxying is therefore a separate, explicit step, best done after you've confirmed the site still works. Defaults to every proxiable record; pass `records` to target specific names (`"@"` means the apex, a bare label like `"www"` is expanded). Only A, AAAA and CNAME can be proxied — anything else is reported under `skipped` with a reason rather than failing the call. Records already in the requested state are skipped too. Proxying hides the origin IP, so if the zone's MX points at a hostname you are proxying, mail to it breaks; that case comes back in `warnings`. Supports `dryRun`. Rate limit: 60 changes per account per hour (these calls go to Cloudflare under Porkbun's OAuth client). */
2406
+ /** Turn the Cloudflare proxy (orange cloud) on or off Set `proxied` on the domain's Cloudflare DNS records. **The move itself always imports records DNS-only (grey cloud), on purpose** -- changing how traffic is served at the same time as changing who serves DNS gives you two variables to debug at once. Proxying is therefore a separate, explicit step, best done after you've confirmed the site still works. Defaults to every proxiable record; pass `records` to target specific names (`"@"` means the apex, a bare label like `"www"` is expanded). Only A, AAAA and CNAME can be proxied -- anything else is reported under `skipped` with a reason rather than failing the call. Records already in the requested state are skipped too. Proxying hides the origin IP, so if the zone's MX points at a hostname you are proxying, mail to it breaks; that case comes back in `warnings`. Supports `dryRun`. Rate limit: 60 changes per account per hour (these calls go to Cloudflare under Porkbun's OAuth client). */
2850
2407
  export declare const cloudflareSetProxy: API.OperationMethod<CloudflareSetProxyRequest, CloudflareSetProxyResponse, CloudflareSetProxyError, PorkbunOpContext>;
2851
2408
  export type CloudflareSetZoneSettingsError = PorkbunOpError;
2852
- /** Change zone settings (allowlisted) Set one or more of the allowlisted zone settings. This is an allowlist rather than a passthrough — Cloudflare exposes hundreds of settings and WAF/firewall/security controls are deliberately out of scope for this API. Prefer `ssl: "full"`; `flexible` is an invisible downgrade for visitors. Supports `dryRun`. Rate limit: shares the 60/hour Cloudflare-write budget. If the account's Cloudflare authorization predates this feature it will not carry the `zone-settings.write` scope, and this returns `CLOUDFLARE_REAUTHORIZE_REQUIRED` with a `connectUrl`. Reconnecting is the same one-click browser flow and does not disturb domains already moved. */
2409
+ /** Change zone settings (allowlisted) Set one or more of the allowlisted zone settings. This is an allowlist rather than a passthrough -- Cloudflare exposes hundreds of settings and WAF/firewall/security controls are deliberately out of scope for this API. Prefer `ssl: "full"`; `flexible` is an invisible downgrade for visitors. Supports `dryRun`. Rate limit: shares the 60/hour Cloudflare-write budget. If the account's Cloudflare authorization predates this feature it will not carry the `zone-settings.write` scope, and this returns `CLOUDFLARE_REAUTHORIZE_REQUIRED` with a `connectUrl`. Reconnecting is the same one-click browser flow and does not disturb domains already moved. */
2853
2410
  export declare const cloudflareSetZoneSettings: API.OperationMethod<CloudflareSetZoneSettingsRequest, CloudflareSetZoneSettingsResponse, CloudflareSetZoneSettingsError, PorkbunOpContext>;
2854
2411
  export type ConnectCloudflareError = PorkbunOpError;
2855
- /** Queue domains to move to the customer's Cloudflare account Queue one or many domains. For each one we create the zone in the customer's own Cloudflare account, copy across the DNS records we hold, and repoint the registry nameservers at Cloudflare. **Asynchronous.** Work runs on a background job over the next few minutes, so a successful call means *queued*, never *connected* — poll `/cloudflare/getQueue` or `/cloudflare/get/{domain}`. **`skipped` is a normal outcome, not an error.** DNSSEC live, custom nameservers, already connected, already in progress: each domain comes back under `queued`, `skipped` or `alreadyQueued` with its own reason. Read the reasons rather than treating a non-empty `skipped` as failure. Eligibility, ownership and nameserver state are re-checked immediately before each domain is acted on, so a domain accepted here can still be skipped later. Re-submitting a domain is safe: the queue row is the unit of truth and is updated in place. Supports `dryRun: true`, which returns the same per-domain verdicts without queueing anything. Requires an active Cloudflare connection (`CLOUDFLARE_NOT_CONNECTED` otherwise). Limits: 500 domains per call, 2000 domains per account per hour. After queueing, poll `/cloudflare/get/{domain}`: the row moves `queued` → `working` → `setup` → `activating` → `connected`. `setup` means Cloudflare has the zone but has not provisioned it yet, so the nameservers have deliberately not been touched. `activating` means the nameservers are already repointed and Cloudflare is confirming the zone, which can take a while as DNS propagates. */
2412
+ /** Queue domains to move to the customer's Cloudflare account Queue one or many domains. For each one we create the zone in the customer's own Cloudflare account, copy across the DNS records we hold, and repoint the registry nameservers at Cloudflare. **Asynchronous.** Work runs on a background job over the next few minutes, so a successful call means *queued*, never *connected* -- poll `/cloudflare/getQueue` or `/cloudflare/get/{domain}`. **`skipped` is a normal outcome, not an error.** DNSSEC live, custom nameservers, already connected, already in progress: each domain comes back under `queued`, `skipped` or `alreadyQueued` with its own reason. Read the reasons rather than treating a non-empty `skipped` as failure. Eligibility, ownership and nameserver state are re-checked immediately before each domain is acted on, so a domain accepted here can still be skipped later. Re-submitting a domain is safe: the queue row is the unit of truth and is updated in place. Supports `dryRun: true`, which returns the same per-domain verdicts without queueing anything. Requires an active Cloudflare connection (`CLOUDFLARE_NOT_CONNECTED` otherwise). Limits: 500 domains per call, 2000 domains per account per hour. After queueing, poll `/cloudflare/get/{domain}`: the row moves `queued` -> `working` -> `setup` -> `activating` -> `connected`. `setup` means Cloudflare has the zone but has not provisioned it yet, so the nameservers have deliberately not been touched. `activating` means the nameservers are already repointed and Cloudflare is confirming the zone, which can take a while as DNS propagates. */
2856
2413
  export declare const connectCloudflare: API.OperationMethod<ConnectCloudflareRequest, ConnectCloudflareResponse, ConnectCloudflareError, PorkbunOpContext>;
2857
2414
  export type CreateAccountInviteError = BadRequest | PorkbunOpError;
2858
- /** 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. */
2415
+ /** 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. */
2859
2416
  export declare const createAccountInvite: API.OperationMethod<CreateAccountInviteRequest, CreateAccountInviteResponse, CreateAccountInviteError, PorkbunOpContext>;
2860
2417
  export type CreateDnsError = BadRequest | PorkbunOpError;
2861
2418
  /** Create DNS record Create a new DNS record for a domain. The record ID is returned in the response. */
2862
2419
  export declare const createDns: API.OperationMethod<CreateDnsRequest, CreateDnsResponse, CreateDnsError, PorkbunOpContext>;
2863
2420
  export type CreateDomainError = BadRequest | PorkbunOpError;
2864
- /** Register a domain Register a domain, paid from account credit or directly in USDC. Requirements: - Account email and phone must be verified - Enough **prepaid credit** to cover the price, or `"payWith": "usdc"` to pay directly (see "Paying for it" below) - `agreeToTerms` must be `'yes'` or `'1'` - `cost` must equal the current price for the domain's minimum registration duration (in pennies) - Premium domains cannot be registered via API, and a single order cannot exceed $100 (`ORDER_TOO_LARGE`) ## Paying for it Two ways: from prepaid account credit (the default), or directly in USDC. **From account credit.** No card on file is charged at purchase time - the thing most first-time callers get wrong, because having a card saved is not enough; the balance has to be there before the call. - Read the balance with `GET /account/balance` (cents, plus a display string). - Add to it: `POST /account/topup` charges a saved card now (with the account holder's OK); `POST /account/topupMpp` returns a link an agent pays with the user's card from a Stripe Link agent wallet; `POST /account/topupCrypto` opens a USDC checkout an agent's wallet can pay over x402; or the account holder adds credit at https://porkbun.com/account/credit. - Turn on **auto top-up** at https://porkbun.com/account/api so a saved card refills the balance when it drops below a threshold. The hands-off option for an agent that registers on its own. - Rehearse with `dryRun: true`, which reports `cost`, `balance`, `sufficientFunds` and, when short, `shortfall`. A purchase attempted without enough credit returns `INSUFFICIENT_FUNDS` carrying `cost`, `balance`, `shortfall`, `topUpAvailable` and `usdcAmountToCover` in cents, and a message naming them. **Directly in USDC (x402).** Add `"payWith": "usdc"`. After every check passes, the call answers HTTP 402 `PAYMENT_REQUIRED` with Coinbase's x402 terms in the `PAYMENT-REQUIRED` header and charges nothing. An x402 client pays them and repeats the same request with a `PAYMENT-SIGNATURE` header, and the registration completes in that call, with the receipt in `PAYMENT-RESPONSE`. No credit is needed. If the registration fails after payment, the payment is not sent back to the wallet: it stays on the account as credit (`payment.keptAsCredit` and `balance_cents` in the error), ready to retry from credit. Guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 **Monthly limit.** Either way, purchases count toward the account's monthly API spend limit, $100 a month until the account holder sets their own at https://porkbun.com/account/api (`MONTHLY_SPEND_LIMIT_EXCEEDED`). Guide: https://porkbun.com/llms/guides/spend-limits Registrations are always for the registry-minimum duration (usually 1 year). **WHOIS privacy.** WHOIS privacy is automatically enabled on new registrations (when the TLD supports it). Pass the optional `whoisPrivacy` field to override this on a per-registration basis, or change the account-level default under Account Security Settings on porkbun.com/account. **Rate limits (both apply):** - Attempt limit (default: 1 attempt per second per account) - Success limit (default: 1000 successful registrations per 86400 seconds per account) Both limits are configurable per API key and their current values are returned in the `limits` field of the response. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT registering or charging — nothing is created. Send `cost: 0` with it to be quoted rather than having to match a price you do not know yet, and note that a dry run is answered even when the balance is too low: `wouldSucceed` comes back false with `shortfall` saying by how much. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "registration", "domain": "example.com", "tld": "com", "available": "available", "premium": false, "duration": 1, "cost": 973, "costDisplay": "$9.73", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this registration would succeed and cost $9.73. No order was created and no charge was made.", "requestId": "019e04fa-258d-7d11-aa86-4d5795c3fe8f" } ``` */
2421
+ /** Register a domain Register a domain, paid from account credit or directly in USDC. Requirements: - Account email and phone must be verified - Enough **prepaid credit** to cover the price, or `"payWith": "usdc"` to pay directly (see "Paying for it" below) - `agreeToTerms` must be `'yes'` or `'1'` - `cost` must equal the current price for the domain's minimum registration duration (in pennies) - Premium domains cannot be registered via API, and a single order cannot exceed $100 (`ORDER_TOO_LARGE`) ## Paying for it Two ways: from prepaid account credit (the default), or directly in USDC. **From account credit.** No card on file is charged at purchase time - the thing most first-time callers get wrong, because having a card saved is not enough; the balance has to be there before the call. - Read the balance with `GET /account/balance` (cents, plus a display string). - Add to it: `POST /account/topup` charges a saved card now (with the account holder's OK); `POST /account/topupMpp` returns a link an agent pays with the user's card from a Stripe Link agent wallet; `POST /account/topupCrypto` opens a USDC checkout an agent's wallet can pay over x402; or the account holder adds credit at https://porkbun.com/account/credit. - Turn on **auto top-up** at https://porkbun.com/account/api so a saved card refills the balance when it drops below a threshold. The hands-off option for an agent that registers on its own. - Rehearse with `dryRun: true`, which reports `cost`, `balance`, `sufficientFunds` and, when short, `shortfall`. A purchase attempted without enough credit returns `INSUFFICIENT_FUNDS` carrying `cost`, `balance`, `shortfall`, `topUpAvailable` and `usdcAmountToCover` in cents, and a message naming them. **Directly in USDC (x402).** Add `"payWith": "usdc"`. After every check passes, the call answers HTTP 402 `PAYMENT_REQUIRED` with Coinbase's x402 terms in the `PAYMENT-REQUIRED` header and charges nothing. An x402 client pays them and repeats the same request with a `PAYMENT-SIGNATURE` header, and the registration completes in that call, with the receipt in `PAYMENT-RESPONSE`. No credit is needed. If the registration fails after payment, the payment is not sent back to the wallet: it stays on the account as credit (`payment.keptAsCredit` and `balance_cents` in the error), ready to retry from credit. Guide: https://porkbun.com/llms/guides/pay-with-usdc-x402 **Monthly limit.** Either way, purchases count toward the account's monthly API spend limit, $100 a month until the account holder sets their own at https://porkbun.com/account/api (`MONTHLY_SPEND_LIMIT_EXCEEDED`). Guide: https://porkbun.com/llms/guides/spend-limits Registrations are always for the registry-minimum duration (usually 1 year). **WHOIS privacy.** WHOIS privacy is automatically enabled on new registrations (when the TLD supports it). Pass the optional `whoisPrivacy` field to override this on a per-registration basis, or change the account-level default under Account Security Settings on porkbun.com/account. **Rate limits (both apply):** - Attempt limit (default: 1 attempt per second per account) - Success limit (default: 1000 successful registrations per 86400 seconds per account) Both limits are configurable per API key and their current values are returned in the `limits` field of the response. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT registering or charging -- nothing is created. Send `cost: 0` with it to be quoted rather than having to match a price you do not know yet, and note that a dry run is answered even when the balance is too low: `wouldSucceed` comes back false with `shortfall` saying by how much. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "registration", "domain": "example.com", "tld": "com", "available": "available", "premium": false, "duration": 1, "cost": 973, "costDisplay": "$9.73", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this registration would succeed and cost $9.73. No order was created and no charge was made.", "requestId": "019e04fa-258d-7d11-aa86-4d5795c3fe8f" } ``` */
2865
2422
  export declare const createDomain: API.OperationMethod<CreateDomainRequest, CreateDomainResponse2, CreateDomainError, PorkbunOpContext>;
2866
2423
  export type CreateHostingError = BadRequest | PorkbunOpError;
2867
- /** Provision hosting — a static site or a WordPress site **Applies to:** Both products — the `sku` decides which. Provision hosting (Secure Static Hosting or Cloud for WordPress) for a domain in the account. The FIRST provision for a domain starts a **15-day free trial** ($0 now) that **auto-renews** at the plan price when the trial ends; a re-provision after deprovision is charged immediately, to account credit or directly in USDC with `"payWith": "usdc"` (HTTP 402, then repeat with `PAYMENT-SIGNATURE`; kept as account credit if provisioning fails), and counts toward the monthly API spend limit (one free trial per domain). Provisioning **switches the domain to Porkbun nameservers** if it isn't already — pass `agreeToNameserverChange: true` to allow that. Supports `dryRun`. Remote setup can be async: `status` may be `PENDING` — poll `/hosting/get` until `ACTIVE` before deploying. **Cloud for WordPress:** pass a `CLOUDWORDPRESS…` sku to provision a managed WordPress site instead of static hosting. The file endpoints (deploy/files/deleteFile/makeDir) do not apply — manage the site through WordPress, using `/hosting/createWpCredentials/{domain}` for REST API credentials. **Rate limit:** 10 provisions per account per hour (`dryRun` calls are free). */
2424
+ /** Provision hosting -- a static site or a WordPress site **Applies to:** Both products -- the `sku` decides which. Provision hosting (Secure Static Hosting or Cloud for WordPress) for a domain in the account. The FIRST provision for a domain starts a **15-day free trial** ($0 now) that **auto-renews** at the plan price when the trial ends; a re-provision after deprovision is charged immediately, to account credit or directly in USDC with `"payWith": "usdc"` (HTTP 402, then repeat with `PAYMENT-SIGNATURE`; kept as account credit if provisioning fails), and counts toward the monthly API spend limit (one free trial per domain). Provisioning **switches the domain to Porkbun nameservers** if it isn't already -- pass `agreeToNameserverChange: true` to allow that. Supports `dryRun`. Remote setup can be async: `status` may be `PENDING` -- poll `/hosting/get` until `ACTIVE` before deploying. **Cloud for WordPress:** pass a `CLOUDWORDPRESS...` sku to provision a managed WordPress site instead of static hosting. The file endpoints (deploy/files/deleteFile/makeDir) do not apply -- manage the site through WordPress, using `/hosting/createWpCredentials/{domain}` for REST API credentials. **Rate limit:** 10 provisions per account per hour (`dryRun` calls are free). */
2868
2425
  export declare const createHosting: API.OperationMethod<CreateHostingRequest, CreateHostingResponse, CreateHostingError, PorkbunOpContext>;
2869
2426
  export type CreateWebhookError = BadRequest | PorkbunOpError;
2870
- /** Create a webhook endpoint Register an HTTPS endpoint to receive signed event payloads. The response includes the generated `secret` — store it securely; it is the HMAC key used to verify the `X-Porkbun-Signature` header. Omit `events` (or pass `["*"]`) to subscribe to all event types. Maximum 20 endpoints per account. **URL requirements:** the endpoint must be an `https://` URL on the standard port 443, with a hostname that resolves to a public internet address. Private, loopback, link-local, CGNAT and other reserved ranges are refused (`INVALID_WEBHOOK_URL`) because Porkbun delivers from inside its own network. Credentials in the URL (`https://user:pass@host`) are also refused — authenticate the receiver by verifying the `X-Porkbun-Signature` HMAC instead. A hostname that does not resolve yet is accepted, so you can register the endpoint before the receiver is deployed, but delivery is re-checked against these rules immediately before each request. */
2427
+ /** Create a webhook endpoint Register an HTTPS endpoint to receive signed event payloads. The response includes the generated `secret` -- store it securely; it is the HMAC key used to verify the `X-Porkbun-Signature` header. Omit `events` (or pass `["*"]`) to subscribe to all event types. Maximum 20 endpoints per account. **URL requirements:** the endpoint must be an `https://` URL on the standard port 443, with a hostname that resolves to a public internet address. Private, loopback, link-local, CGNAT and other reserved ranges are refused (`INVALID_WEBHOOK_URL`) because Porkbun delivers from inside its own network. Credentials in the URL (`https://user:pass@host`) are also refused -- authenticate the receiver by verifying the `X-Porkbun-Signature` HMAC instead. A hostname that does not resolve yet is accepted, so you can register the endpoint before the receiver is deployed, but delivery is re-checked against these rules immediately before each request. */
2871
2428
  export declare const createWebhook: API.OperationMethod<CreateWebhookRequest, WebhookEndpointResponse, CreateWebhookError, PorkbunOpContext>;
2872
2429
  export type DeleteDnsError = BadRequest | PorkbunOpError;
2873
2430
  /** Delete DNS record by ID Delete a specific DNS record. SOA and default Porkbun NS records cannot be deleted. */
@@ -2879,13 +2436,13 @@ export type DeleteWebhookError = NotFound | PorkbunOpError;
2879
2436
  /** Delete a webhook endpoint Delete a webhook endpoint by id. Deliveries stop immediately. */
2880
2437
  export declare const deleteWebhook: API.OperationMethod<DeleteWebhookRequest, DeleteWebhookResponse, DeleteWebhookError, PorkbunOpContext>;
2881
2438
  export type DeployHostingError = BadRequest | PorkbunOpError;
2882
- /** 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. */
2439
+ /** 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. */
2883
2440
  export declare const deployHosting: API.OperationMethod<DeployHostingRequest, DeployHostingResponse, DeployHostingError, PorkbunOpContext>;
2884
2441
  export type DisconnectCloudflareError = PorkbunOpError;
2885
2442
  /** Remove the stored Cloudflare connection Revoke and forget this account's Cloudflare grant. Domains already moved stay on Cloudflare and keep resolving; this only stops us making further changes on the customer's behalf. Reconnecting requires the browser authorization again. Supports `dryRun`. */
2886
2443
  export declare const disconnectCloudflare: API.OperationMethod<DisconnectCloudflareRequest, DisconnectCloudflareResponse, DisconnectCloudflareError, PorkbunOpContext>;
2887
2444
  export type DnsCreateDnssecRecordError = BadRequest | PorkbunOpError;
2888
- /** Create DNSSEC record Create a DNSSEC DS or key record at the registry. DNSSEC requirements vary by registry — `keyTag`, `alg`, `digestType`, and `digest` are the minimum required fields. Key data fields are optional and will be omitted if not accepted by the registry. Algorithm and digest type are validated against the registry's own policy before the request is sent. Registries are retiring the values deprecated by RFC 9904/9905/9906 on different schedules, so what is accepted depends on the TLD: a value one registry has already dropped may still be accepted by another. A value the registry no longer accepts returns `DNSSEC_ALGORITHM_DEPRECATED`; one that still works but is being retired returns `status: SUCCESS` with a `warnings` array. Use algorithm 8 (RSA/SHA-256) or 13 (ECDSA/SHA-256) with digest type 2 (SHA-256) to be accepted everywhere. Existing DNSSEC records keep resolving regardless, and can always be deleted. */
2445
+ /** Create DNSSEC record Create a DNSSEC DS or key record at the registry. DNSSEC requirements vary by registry -- `keyTag`, `alg`, `digestType`, and `digest` are the minimum required fields. Key data fields are optional and will be omitted if not accepted by the registry. Algorithm and digest type are validated against the registry's own policy before the request is sent. Registries are retiring the values deprecated by RFC 9904/9905/9906 on different schedules, so what is accepted depends on the TLD: a value one registry has already dropped may still be accepted by another. A value the registry no longer accepts returns `DNSSEC_ALGORITHM_DEPRECATED`; one that still works but is being retired returns `status: SUCCESS` with a `warnings` array. Use algorithm 8 (RSA/SHA-256) or 13 (ECDSA/SHA-256) with digest type 2 (SHA-256) to be accepted everywhere. Existing DNSSEC records keep resolving regardless, and can always be deleted. */
2889
2446
  export declare const dnsCreateDnssecRecord: API.OperationMethod<DnsCreateDnssecRecordRequest, DnsCreateDnssecRecordResponse, DnsCreateDnssecRecordError, PorkbunOpContext>;
2890
2447
  export type DnsDeleteByNameTypeError = BadRequest | PorkbunOpError;
2891
2448
  /** 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). */
@@ -2915,7 +2472,7 @@ export type DnsRetrieveByNameTypeError = BadRequest | PorkbunOpError;
2915
2472
  /** 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). */
2916
2473
  export declare const dnsRetrieveByNameType: API.OperationMethod<DnsRetrieveByNameTypeRequest, DnsRecordsResponse, DnsRetrieveByNameTypeError, PorkbunOpContext>;
2917
2474
  export type DnsScanError = BadRequest | PorkbunOpError;
2918
- /** Discover the records a domain currently publishes Query a domain's **live authoritative nameservers** and return the records they answer with, writing nothing. This is what makes an inbound transfer non-destructive: a transfer moves only the delegation — EPP carries no zone data — so once the losing registrar stops answering for the zone, whatever it published is gone and unrecoverable. Run this **before** the nameservers move, then pass the result to `/dns/import/{domain}`. The scan probes a wide list of well-known names (apex, common subdomains, MX, DKIM selectors, provider verification hosts) and consolidates wildcards. It cannot enumerate a zone — DNS has no listing operation and AXFR is universally refused — so treat it as thorough but **not exhaustive**. If the old registrar exposes the zone through its own API, that is authoritative: read it with your own credentials (they never need to reach Porkbun) and POST those records to `/dns/import` instead. Metered separately at 20 calls per hour per account, because each call is roughly 90 DNS lookups. */
2475
+ /** Discover the records a domain currently publishes Query a domain's **live authoritative nameservers** and return the records they answer with, writing nothing. This is what makes an inbound transfer non-destructive: a transfer moves only the delegation -- EPP carries no zone data -- so once the losing registrar stops answering for the zone, whatever it published is gone and unrecoverable. Run this **before** the nameservers move, then pass the result to `/dns/import/{domain}`. The scan probes a wide list of well-known names (apex, common subdomains, MX, DKIM selectors, provider verification hosts) and consolidates wildcards. It cannot enumerate a zone -- DNS has no listing operation and AXFR is universally refused -- so treat it as thorough but **not exhaustive**. If the old registrar exposes the zone through its own API, that is authoritative: read it with your own credentials (they never need to reach Porkbun) and POST those records to `/dns/import` instead. Metered separately at 20 calls per hour per account, because each call is roughly 90 DNS lookups. */
2919
2476
  export declare const dnsScan: API.OperationMethod<DnsScanRequest, DnsScanResponse, DnsScanError, PorkbunOpContext>;
2920
2477
  export type DomainAddUrlForwardError = BadRequest | PorkbunOpError;
2921
2478
  /** Add URL forward Add a URL forward for a domain or subdomain. */
@@ -2942,10 +2499,10 @@ export type DomainGetGlueError = BadRequest | PorkbunOpError;
2942
2499
  /** 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). */
2943
2500
  export declare const domainGetGlue: API.OperationMethod<DomainGetGlueRequest, DomainGetGlueResponse, DomainGetGlueError, PorkbunOpContext>;
2944
2501
  export type DomainGetNsError = BadRequest | PorkbunOpError;
2945
- /** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). **Nameservers are an unordered set.** This reads live from the registry, and registries are free to return the set in any order — so the order here will often differ from the order you sent to `/domain/updateNs`. Order carries no meaning in DNS (an NS RRset is unordered, RFC 1034/2181) and is not preserved by the parent zone. Compare nameservers as a set; if you are writing a Terraform provider or similar, model this as a set, not an ordered list, or every plan will show phantom drift. */
2502
+ /** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). **Nameservers are an unordered set.** This reads live from the registry, and registries are free to return the set in any order -- so the order here will often differ from the order you sent to `/domain/updateNs`. Order carries no meaning in DNS (an NS RRset is unordered, RFC 1034/2181) and is not preserved by the parent zone. Compare nameservers as a set; if you are writing a Terraform provider or similar, model this as a set, not an ordered list, or every plan will show phantom drift. */
2946
2503
  export declare const domainGetNs: API.OperationMethod<DomainGetNsRequest, DomainGetNsResponse, DomainGetNsError, PorkbunOpContext>;
2947
2504
  export type DomainGetRegistrationRequirementsError = BadRequest | PorkbunOpError;
2948
- /** 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). */
2505
+ /** 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). */
2949
2506
  export declare const domainGetRegistrationRequirements: API.OperationMethod<DomainGetRegistrationRequirementsRequest, DomainGetRegistrationRequirementsResponse, DomainGetRegistrationRequirementsError, PorkbunOpContext>;
2950
2507
  export type DomainGetTransferSetupError = BadRequest | PorkbunOpError;
2951
2508
  /** State of an in-flight inbound transfer Where a pending inbound transfer is and what it is waiting on: whether it is held at `PENDINGDNS`, whether its DNS zone exists, how many records are in it, what the domain currently delegates to, and the next step to take. Use it to resume a no-downtime transfer without keeping state of your own. */
@@ -2954,22 +2511,22 @@ export type DomainGetUrlForwardingError = BadRequest | PorkbunOpError;
2954
2511
  /** List URL forwards Retrieve all active URL forwards for a domain. Supports both GET (with header auth) and POST (with body or header auth). */
2955
2512
  export declare const domainGetUrlForwarding: API.OperationMethod<DomainGetUrlForwardingRequest, GetUrlForwardingResponse, DomainGetUrlForwardingError, PorkbunOpContext>;
2956
2513
  export type DomainStartTransferError = BadRequest | PorkbunOpError;
2957
- /** Release a held transfer to the registry Release a transfer held at `PENDINGDNS` into the registry pipeline. Nothing releases a held transfer on a timer — this call is the only thing that does. Refuses with `TRANSFER_ZONE_EMPTY` if the zone has no records, which is the outage the hold exists to prevent. Pass `force: true` only if the domain genuinely needs no DNS at Porkbun. Supports `dryRun`. */
2514
+ /** Release a held transfer to the registry Release a transfer held at `PENDINGDNS` into the registry pipeline. Nothing releases a held transfer on a timer -- this call is the only thing that does. Refuses with `TRANSFER_ZONE_EMPTY` if the zone has no records, which is the outage the hold exists to prevent. Pass `force: true` only if the domain genuinely needs no DNS at Porkbun. Supports `dryRun`. */
2958
2515
  export declare const domainStartTransfer: API.OperationMethod<DomainStartTransferRequest, DomainStartTransferResponse, DomainStartTransferError, PorkbunOpContext>;
2959
2516
  export type DomainUpdateAutoRenewError = BadRequest | PorkbunOpError;
2960
2517
  /** 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. */
2961
2518
  export declare const domainUpdateAutoRenew: API.OperationMethod<DomainUpdateAutoRenewRequest, DomainUpdateAutoRenewResponse, DomainUpdateAutoRenewError, PorkbunOpContext>;
2962
2519
  export type DomainUpdateContactsError = BadRequest | PorkbunOpError;
2963
- /** Update domain contacts Edit the domain's contacts. Send a `contacts` object keyed by role (`registrant`, `admin`, `tech`, `billing`) containing ANY subset of roles — unspecified roles keep their current values — or a single `contact` object to apply to all four. Behaves like the website: on thick TLDs the change is pushed to the registry, and a **registrant** change (name/organization/email) triggers the same material-change record and new-owner notice/verification email (no 60-day transfer lock is imposed). Per-TLD extension data (e.g. .us nexus, .ca legalType) is preserved. Supports `dryRun`. **`state` is matched against the official list for the country**, the same list the website's dropdown is built from, so case, accents and short codes all work: `NEW JERSEY`, `new jersey` and `NJ` are all stored as `New Jersey`, and `MEXICO CITY` as `Mexico City`. This matters because some registries validate the field and compare it case sensitively — .mx refuses `NEW JERSEY` and requires `Ciudad de México` for Mexico City, which Porkbun substitutes for you. For a TLD whose registry validates the field (currently the .mx family) a state that matches nothing is refused up front with `INVALID_STATE`, and the response lists every accepted value for that country in `validStates` — better than the registry's own "Object does not exist". For every other TLD an unrecognised state is sent through unchanged rather than rewritten. If a registry then refuses it, the contact is NOT created and no contacts are changed; the error names the registry's complaint. **Address-validated TLDs.** On a **registrant** change for a TLD that requires a validated address (`.de`, `.nrw`, `.uk`/`.co.uk`/…, `.us`, `.ca`, `.nyc`, `.au`, `.eu`, `.in`/`.co.in`/…, `.nz`/`.co.nz`/…), the API runs Google Address Validation (per-account rate-limited + 24h cached). If the address needs correction the call returns `ADDRESS_VALIDATION_REQUIRED` with a `suggestedAddress` and `addressValidationStatus`; re-submit with `addressValidationChoice` = `accept_suggestion` (save the standardized address) or `use_as_entered` (keep yours — stays blocked if a real correction was offered). For `.de`, DENIC registry verification is then attempted automatically (address-fingerprint / email); if it still needs a proof-of-address document upload, that is completed at porkbun.com. **Still not supported via API:** a registrant name/organization change on a `.au` domain is an auDA paid ownership trade and returns `REGISTRANT_CHANGE_NOT_SUPPORTED` (do it at porkbun.com). Admin/tech/billing edits are unaffected everywhere. */
2520
+ /** Update domain contacts Edit the domain's contacts. Send a `contacts` object keyed by role (`registrant`, `admin`, `tech`, `billing`) containing ANY subset of roles -- unspecified roles keep their current values -- or a single `contact` object to apply to all four. Behaves like the website: on thick TLDs the change is pushed to the registry, and a **registrant** change (name/organization/email) triggers the same material-change record and new-owner notice/verification email (no 60-day transfer lock is imposed). Per-TLD extension data (e.g. .us nexus, .ca legalType) is preserved. Supports `dryRun`. **`state` is matched against the official list for the country**, the same list the website's dropdown is built from, so case, accents and short codes all work: `NEW JERSEY`, `new jersey` and `NJ` are all stored as `New Jersey`, and `MEXICO CITY` as `Mexico City`. This matters because some registries validate the field and compare it case sensitively -- .mx refuses `NEW JERSEY` and requires `Ciudad de México` for Mexico City, which Porkbun substitutes for you. For a TLD whose registry validates the field (currently the .mx family) a state that matches nothing is refused up front with `INVALID_STATE`, and the response lists every accepted value for that country in `validStates` -- better than the registry's own "Object does not exist". For every other TLD an unrecognised state is sent through unchanged rather than rewritten. If a registry then refuses it, the contact is NOT created and no contacts are changed; the error names the registry's complaint. **Address-validated TLDs.** On a **registrant** change for a TLD that requires a validated address (`.de`, `.nrw`, `.uk`/`.co.uk`/..., `.us`, `.ca`, `.nyc`, `.au`, `.eu`, `.in`/`.co.in`/..., `.nz`/`.co.nz`/...), the API runs Google Address Validation (per-account rate-limited + 24h cached). If the address needs correction the call returns `ADDRESS_VALIDATION_REQUIRED` with a `suggestedAddress` and `addressValidationStatus`; re-submit with `addressValidationChoice` = `accept_suggestion` (save the standardized address) or `use_as_entered` (keep yours -- stays blocked if a real correction was offered). For `.de`, DENIC registry verification is then attempted automatically (address-fingerprint / email); if it still needs a proof-of-address document upload, that is completed at porkbun.com. **Still not supported via API:** a registrant name/organization change on a `.au` domain is an auDA paid ownership trade and returns `REGISTRANT_CHANGE_NOT_SUPPORTED` (do it at porkbun.com). Admin/tech/billing edits are unaffected everywhere. */
2964
2521
  export declare const domainUpdateContacts: API.OperationMethod<DomainUpdateContactsRequest, DomainUpdateContactsResponse, DomainUpdateContactsError, PorkbunOpContext>;
2965
2522
  export type DomainUpdateGlueError = BadRequest | PorkbunOpError;
2966
2523
  /** Update glue record Update the IP addresses of a glue record. All existing IP addresses are replaced with the supplied list. */
2967
2524
  export declare const domainUpdateGlue: API.OperationMethod<DomainUpdateGlueRequest, BasicResponse, DomainUpdateGlueError, PorkbunOpContext>;
2968
2525
  export type DomainUpdateNsError = BadRequest | PorkbunOpError;
2969
- /** Update nameservers Update the nameservers for the domain at the registry. The list you send is applied as a set — the registry may store and return it in a different order, so do not expect `/domain/getNs` to echo your ordering back. See `/domain/getNs`. */
2526
+ /** Update nameservers Update the nameservers for the domain at the registry. The list you send is applied as a set -- the registry may store and return it in a different order, so do not expect `/domain/getNs` to echo your ordering back. See `/domain/getNs`. */
2970
2527
  export declare const domainUpdateNs: API.OperationMethod<DomainUpdateNsRequest, BasicResponse, DomainUpdateNsError, PorkbunOpContext>;
2971
2528
  export type DomainUpdateTransferAuthCodeError = BadRequest | PorkbunOpError;
2972
- /** Replace the auth code on a stuck transfer Replace the authorization code on an inbound transfer that stalled because the code was wrong, and re-queue it — instead of cancelling, refunding and re-submitting. The new code is validated against the registry before it is stored, so a bad code is rejected here (`INVALID_AUTH_CODE`) rather than failing again later. Only transfers in a repairable state qualify; anything else returns `TRANSFER_NOT_REPAIRABLE`. Supports `dryRun`. */
2529
+ /** Replace the auth code on a stuck transfer Replace the authorization code on an inbound transfer that stalled because the code was wrong, and re-queue it -- instead of cancelling, refunding and re-submitting. The new code is validated against the registry before it is stored, so a bad code is rejected here (`INVALID_AUTH_CODE`) rather than failing again later. Only transfers in a repairable state qualify; anything else returns `TRANSFER_NOT_REPAIRABLE`. Supports `dryRun`. */
2973
2530
  export declare const domainUpdateTransferAuthCode: API.OperationMethod<DomainUpdateTransferAuthCodeRequest, DomainUpdateTransferAuthCodeResponse, DomainUpdateTransferAuthCodeError, PorkbunOpContext>;
2974
2531
  export type EditDnsError = BadRequest | PorkbunOpError;
2975
2532
  /** Edit DNS record by ID Edit a specific DNS record by its numeric ID. Send only the fields you want to change: any field left out keeps its current value (send `"name": ""` to move the record to the apex). SOA and default Porkbun NS records cannot be edited. */
@@ -2978,25 +2535,25 @@ export type EmailSetPasswordError = BadRequest | PorkbunOpError;
2978
2535
  /** Set email hosting password Set the password for an email hosting account associated with a domain managed by your API key. */
2979
2536
  export declare const emailSetPassword: API.OperationMethod<EmailSetPasswordRequest, BasicResponse, EmailSetPasswordError, PorkbunOpContext>;
2980
2537
  export type GetAccountInviteStatusError = BadRequest | PorkbunOpError;
2981
- /** 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. */
2538
+ /** 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. */
2982
2539
  export declare const getAccountInviteStatus: API.OperationMethod<GetAccountInviteStatusRequest, GetAccountInviteStatusResponse, GetAccountInviteStatusError, PorkbunOpContext>;
2983
2540
  export type GetApikeyError = BadRequest | Forbidden | PorkbunOpError;
2984
- /** 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. */
2541
+ /** 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. */
2985
2542
  export declare const getApikey: API.OperationMethod<GetApikeyRequest, GetApikeyResponse, GetApikeyError, PorkbunOpContext>;
2986
2543
  export type GetApiSettingsError = PorkbunOpError;
2987
2544
  /** Get API spend settings Returns the account's API spend control settings, this month's spend, and the limits actually enforced: `spendLimit` on purchases and `topupLimit` on credit added over the API. The account holder sets the limit on the website (https://porkbun.com/account/api); it cannot be changed over the API. All amounts are in cents. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
2988
2545
  export declare const getApiSettings: API.OperationMethod<GetApiSettingsRequest, ApiSettingsResponse, GetApiSettingsError, PorkbunOpContext>;
2989
2546
  export type GetAutoTopupError = PorkbunOpError;
2990
- /** Read auto top-up settings What auto top-up is set to, whether a payment method is on file, and what `POST /account/topup` would charge right now (`effectiveAmount`). Auto top-up is how unattended work stops dead-ending on `INSUFFICIENT_FUNDS`: when an order drops the balance below `threshold`, Porkbun charges the saved payment method for `amount` and adds the credit. If `paymentMethodOnFile` is false the settings are inert and the response says so in `warnings` — a card can only be saved on the website, never over the API. */
2547
+ /** Read auto top-up settings What auto top-up is set to, whether a payment method is on file, and what `POST /account/topup` would charge right now (`effectiveAmount`). Auto top-up is how unattended work stops dead-ending on `INSUFFICIENT_FUNDS`: when an order drops the balance below `threshold`, Porkbun charges the saved payment method for `amount` and adds the credit. If `paymentMethodOnFile` is false the settings are inert and the response says so in `warnings` -- a card can only be saved on the website, never over the API. */
2991
2548
  export declare const getAutoTopup: API.OperationMethod<GetAutoTopupRequest, AutoTopupResponse, GetAutoTopupError, PorkbunOpContext>;
2992
2549
  export type GetBalanceError = PorkbunOpError;
2993
2550
  /** Get account balance Returns the available account credit balance. Authenticate using `X-API-Key` and `X-Secret-API-Key` headers, or `Authorization: Bearer <token>`. */
2994
2551
  export declare const getBalance: API.OperationMethod<GetBalanceRequest, BalanceResponse, GetBalanceError, PorkbunOpContext>;
2995
2552
  export type GetCloseoutError = NotFound | PorkbunOpError;
2996
- /** One closeout, with the binding total A single closeout plus `totalPrice` — the closeout price plus the registration year that comes with it. That total is what `/closeout/buy` will charge and what it expects back as `cost`. `localDomain` tells you which side of the pricing you are on: true means the name is already at Porkbun and is renewed, false means it is transferred in. `available` is false once somebody has claimed it. */
2553
+ /** One closeout, with the binding total A single closeout plus `totalPrice` -- the closeout price plus the registration year that comes with it. That total is what `/closeout/buy` will charge and what it expects back as `cost`. `localDomain` tells you which side of the pricing you are on: true means the name is already at Porkbun and is renewed, false means it is transferred in. `available` is false once somebody has claimed it. */
2997
2554
  export declare const getCloseout: API.OperationMethod<GetCloseoutRequest, GetCloseoutResponse, GetCloseoutError, PorkbunOpContext>;
2998
2555
  export type GetCloudflareError = PorkbunOpError;
2999
- /** Get the Cloudflare move status for one domain Status of a single domain's move, including the zone id once created and the nameservers we replaced (kept so the move can be undone). `NOT_QUEUED` if the domain has never been queued. Also available via POST. **Status values** (poll until one of the terminal ones): Poll on a sensible interval (a few seconds early on, then back off) — a zone typically leaves `queued` within seconds but can sit in `setup` or `activating` while Cloudflare provisions the zone and DNS propagates. */
2556
+ /** Get the Cloudflare move status for one domain Status of a single domain's move, including the zone id once created and the nameservers we replaced (kept so the move can be undone). `NOT_QUEUED` if the domain has never been queued. Also available via POST. **Status values** (poll until one of the terminal ones): Poll on a sensible interval (a few seconds early on, then back off) -- a zone typically leaves `queued` within seconds but can sit in `setup` or `activating` while Cloudflare provisions the zone and DNS propagates. */
3000
2557
  export declare const getCloudflare: API.OperationMethod<GetCloudflareRequest, GetCloudflareResponse, GetCloudflareError, PorkbunOpContext>;
3001
2558
  export type GetDnsError = BadRequest | PorkbunOpError;
3002
2559
  /** 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). */
@@ -3020,10 +2577,10 @@ export type GetDomainGlueError = BadRequest | PorkbunOpError;
3020
2577
  /** 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). */
3021
2578
  export declare const getDomainGlue: API.OperationMethod<GetDomainGlueRequest, GetDomainGlueResponse, GetDomainGlueError, PorkbunOpContext>;
3022
2579
  export type GetDomainNsError = BadRequest | PorkbunOpError;
3023
- /** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). **Nameservers are an unordered set.** This reads live from the registry, and registries are free to return the set in any order — so the order here will often differ from the order you sent to `/domain/updateNs`. Order carries no meaning in DNS (an NS RRset is unordered, RFC 1034/2181) and is not preserved by the parent zone. Compare nameservers as a set; if you are writing a Terraform provider or similar, model this as a set, not an ordered list, or every plan will show phantom drift. */
2580
+ /** Get nameservers Retrieve the authoritative nameservers listed at the registry for the domain. Supports both GET (with header auth) and POST (with body or header auth). **Nameservers are an unordered set.** This reads live from the registry, and registries are free to return the set in any order -- so the order here will often differ from the order you sent to `/domain/updateNs`. Order carries no meaning in DNS (an NS RRset is unordered, RFC 1034/2181) and is not preserved by the parent zone. Compare nameservers as a set; if you are writing a Terraform provider or similar, model this as a set, not an ordered list, or every plan will show phantom drift. */
3024
2581
  export declare const getDomainNs: API.OperationMethod<GetDomainNsRequest, GetDomainNsResponse, GetDomainNsError, PorkbunOpContext>;
3025
2582
  export type GetDomainsError = BadRequest | PorkbunOpError;
3026
- /** 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`. */
2583
+ /** 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`. */
3027
2584
  export declare const getDomains: API.OperationMethod<GetDomainsRequest, DomainListAllResponse, GetDomainsError, PorkbunOpContext>;
3028
2585
  export type GetDomainUrlForwardingError = BadRequest | PorkbunOpError;
3029
2586
  /** List URL forwards Retrieve all active URL forwards for a domain. Supports both GET (with header auth) and POST (with body or header auth). */
@@ -3041,13 +2598,13 @@ export type GetIpError = PorkbunOpError;
3041
2598
  /** 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. */
3042
2599
  export declare const getIp: API.OperationMethod<GetIpRequest, IpResponse, GetIpError, PorkbunOpContext>;
3043
2600
  export type GetPingError = BadRequest | PorkbunOpError;
3044
- /** 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. */
2601
+ /** 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. */
3045
2602
  export declare const getPing: API.OperationMethod<GetPingRequest, GetPingResponse, GetPingError, PorkbunOpContext>;
3046
2603
  export type GetPricingError = BadRequest | PorkbunOpError;
3047
- /** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs, or only the ones you ask for. Does not require authentication. Prices are in US dollars. Filter with `tld` (one TLD) and/or `tlds` (several). Names are case-insensitive, a leading dot is ignored, and IDN TLDs may be sent in Unicode or punycode (`みんな` or `xn--q9jyb4c`). A TLD Porkbun does not sell is left out of `pricing` and listed in `unsupported`; if none of the requested TLDs is sold the response is `INVALID_TLD` (HTTP 400). No filter returns every TLD. */
2604
+ /** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs, or only the ones you ask for. Does not require authentication. Prices are in US dollars. Filter with `tld` (one TLD) and/or `tlds` (several). Names are case-insensitive, a leading dot is ignored, and IDN TLDs may be sent in Unicode or punycode (`U+307FU+3093U+306A` or `xn--q9jyb4c`). A TLD Porkbun does not sell is left out of `pricing` and listed in `unsupported`; if none of the requested TLDs is sold the response is `INVALID_TLD` (HTTP 400). No filter returns every TLD. */
3048
2605
  export declare const getPricing: API.OperationMethod<GetPricingRequest, GetPricingResponse, GetPricingError, PorkbunOpContext>;
3049
2606
  export type GetPricingGetError = BadRequest | PorkbunOpError;
3050
- /** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs, or only the ones you ask for. Does not require authentication. Prices are in US dollars. Filter with `tld` (one TLD) and/or `tlds` (several). Names are case-insensitive, a leading dot is ignored, and IDN TLDs may be sent in Unicode or punycode (`みんな` or `xn--q9jyb4c`). A TLD Porkbun does not sell is left out of `pricing` and listed in `unsupported`; if none of the requested TLDs is sold the response is `INVALID_TLD` (HTTP 400). No filter returns every TLD. On GET, `tlds` is comma-separated: `?tlds=com,io,dev`. */
2607
+ /** Retrieve domain pricing (public) Retrieve default domain pricing information for all supported TLDs, or only the ones you ask for. Does not require authentication. Prices are in US dollars. Filter with `tld` (one TLD) and/or `tlds` (several). Names are case-insensitive, a leading dot is ignored, and IDN TLDs may be sent in Unicode or punycode (`U+307FU+3093U+306A` or `xn--q9jyb4c`). A TLD Porkbun does not sell is left out of `pricing` and listed in `unsupported`; if none of the requested TLDs is sold the response is `INVALID_TLD` (HTTP 400). No filter returns every TLD. On GET, `tlds` is comma-separated: `?tlds=com,io,dev`. */
3051
2608
  export declare const getPricingGet: API.OperationMethod<GetPricingGetRequest, GetPricingGetResponse, GetPricingGetError, PorkbunOpContext>;
3052
2609
  export type GetSslError = BadRequest | PorkbunOpError;
3053
2610
  /** 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). */
@@ -3062,31 +2619,31 @@ export type GetWebhookError = NotFound | PorkbunOpError;
3062
2619
  /** 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). */
3063
2620
  export declare const getWebhook: API.OperationMethod<GetWebhookRequest, WebhookEndpointResponse, GetWebhookError, PorkbunOpContext>;
3064
2621
  export type HostingCreateWpCredentialsError = BadRequest | PorkbunOpError;
3065
- /** 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). */
2622
+ /** 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). */
3066
2623
  export declare const hostingCreateWpCredentials: API.OperationMethod<HostingCreateWpCredentialsRequest, HostingCreateWpCredentialsResponse, HostingCreateWpCredentialsError, PorkbunOpContext>;
3067
2624
  export type HostingDeleteFileError = BadRequest | PorkbunOpError;
3068
- /** Delete a site file (static hosting only) **Applies to:** Secure Static Hosting only — a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`. Delete a file or directory at `path` in the domain's hosting space. Idempotent: a path that is already gone returns `SUCCESS` with `alreadyAbsent: true`. A directory that still has files returns `HOSTING_DIR_NOT_EMPTY` with its `contents`, unless `recursive: true` is sent, which deletes it with everything inside (the site root can never be deleted). */
2625
+ /** Delete a site file (static hosting only) **Applies to:** Secure Static Hosting only -- a WordPress site returns `NOT_SUPPORTED_FOR_PRODUCT`. Delete a file or directory at `path` in the domain's hosting space. Idempotent: a path that is already gone returns `SUCCESS` with `alreadyAbsent: true`. A directory that still has files returns `HOSTING_DIR_NOT_EMPTY` with its `contents`, unless `recursive: true` is sent, which deletes it with everything inside (the site root can never be deleted). */
3069
2626
  export declare const hostingDeleteFile: API.OperationMethod<HostingDeleteFileRequest, HostingDeleteFileResponse, HostingDeleteFileError, PorkbunOpContext>;
3070
2627
  export type HostingDeleteWpCredentialsError = BadRequest | PorkbunOpError;
3071
2628
  /** 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`). */
3072
2629
  export declare const hostingDeleteWpCredentials: API.OperationMethod<HostingDeleteWpCredentialsRequest, HostingDeleteWpCredentialsResponse, HostingDeleteWpCredentialsError, PorkbunOpContext>;
3073
2630
  export type HostingFilesError = BadRequest | PorkbunOpError;
3074
- /** 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). */
2631
+ /** 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). */
3075
2632
  export declare const hostingFiles: API.OperationMethod<HostingFilesRequest, HostingFilesResponse, HostingFilesError, PorkbunOpContext>;
3076
2633
  export type HostingGetWpCredentialsError = BadRequest | PorkbunOpError;
3077
- /** 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`). */
2634
+ /** 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`). */
3078
2635
  export declare const hostingGetWpCredentials: API.OperationMethod<HostingGetWpCredentialsRequest, HostingGetWpCredentialsResponse, HostingGetWpCredentialsError, PorkbunOpContext>;
3079
2636
  export type HostingMakeDirError = BadRequest | PorkbunOpError;
3080
- /** 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). */
2637
+ /** 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). */
3081
2638
  export declare const hostingMakeDir: API.OperationMethod<HostingMakeDirRequest, HostingMakeDirResponse, HostingMakeDirError, PorkbunOpContext>;
3082
2639
  export type HostingPlansError = BadRequest | PorkbunOpError;
3083
2640
  /** 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. */
3084
2641
  export declare const hostingPlans: API.OperationMethod<HostingPlansRequest, HostingPlansResponse, HostingPlansError, PorkbunOpContext>;
3085
2642
  export type ImportDnsError = BadRequest | PorkbunOpError;
3086
- /** Bulk-create DNS records (transfer restore) Create many records in one call, so a domain arriving from another registrar keeps resolving instead of going dark. Send `records` to import an exact list — the better path when the old registrar has an API you can read with your own credentials. Omit `records` entirely and whatever `/dns/scan/{domain}` can discover is imported instead. **Idempotent.** A record that already exists is counted in `skipped`, not `failed`, so this is safe to re-run and safe to use as a converge step. Records that fail individually are listed in `failures` while the rest still import; the call only errors outright if nothing was importable. Imported records do nothing until the domain actually points at the Porkbun nameservers — check `/domain/getNs/{domain}` and set them with `/domain/updateNs/{domain}`. Maximum 500 records per call. Supports `dryRun`. */
2643
+ /** Bulk-create DNS records (transfer restore) Create many records in one call, so a domain arriving from another registrar keeps resolving instead of going dark. Send `records` to import an exact list -- the better path when the old registrar has an API you can read with your own credentials. Omit `records` entirely and whatever `/dns/scan/{domain}` can discover is imported instead. **Idempotent.** A record that already exists is counted in `skipped`, not `failed`, so this is safe to re-run and safe to use as a converge step. Records that fail individually are listed in `failures` while the rest still import; the call only errors outright if nothing was importable. Imported records do nothing until the domain actually points at the Porkbun nameservers -- check `/domain/getNs/{domain}` and set them with `/domain/updateNs/{domain}`. Maximum 500 records per call. Supports `dryRun`. */
3087
2644
  export declare const importDns: API.OperationMethod<ImportDnsRequest, ImportDnsResponse, ImportDnsError, PorkbunOpContext>;
3088
2645
  export type ListDomainsError = BadRequest | PorkbunOpError;
3089
- /** 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`. */
2646
+ /** 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`. */
3090
2647
  export declare const listDomains: API.OperationMethod<ListDomainsRequest, DomainListAllResponse, ListDomainsError, PorkbunOpContext>;
3091
2648
  export type ListInvoicesError = PorkbunOpError;
3092
2649
  /** List invoices The account's invoices (one per order), newest first, like the orders page on porkbun.com. `total_cents` is what the customer was left paying: refunds are netted out, and `state` says whether the invoice is paid, refunded or partially refunded. Any of the account's API keys can read them. */
@@ -3110,7 +2667,7 @@ export type MockEndpointError = PorkbunOpError;
3110
2667
  /** 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. */
3111
2668
  export declare const mockEndpoint: API.OperationMethod<MockEndpointRequest, MockEndpointResponse, MockEndpointError, PorkbunOpContext>;
3112
2669
  export type PingError = BadRequest | PorkbunOpError;
3113
- /** 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. */
2670
+ /** 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. */
3114
2671
  export declare const ping: API.OperationMethod<PingRequest, PingResponse, PingError, PorkbunOpContext>;
3115
2672
  export type PostIpError = PorkbunOpError;
3116
2673
  /** 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. */
@@ -3119,7 +2676,7 @@ export type PreviewCloudflareError = PorkbunOpError;
3119
2676
  /** Preview exactly which records a move would copy Which DNS records we would create in Cloudflare for this domain, and which we would drop, **without queueing anything**. The honest answer to "what will this do to my DNS" before committing. Records are always created DNS-only (grey cloud); use `/cloudflare/setProxy` afterwards to turn the proxy on. Also available via POST. */
3120
2677
  export declare const previewCloudflare: API.OperationMethod<PreviewCloudflareRequest, PreviewCloudflareResponse, PreviewCloudflareError, PorkbunOpContext>;
3121
2678
  export type RenewDomainError = BadRequest | PorkbunOpError;
3122
- /** Renew a domain Renew a domain, paid from account credit or directly in USDC. Requirements: - Domain must be in your account and active - Domain must be opted in to API access - Account email and phone must be verified - Sufficient account credit, or `"payWith": "usdc"` to pay directly - `cost` must equal the current renewal price for the domain's minimum renewal duration (in pennies) - Domain must have been registered more than 30 days ago (checked against the domain's creation date) - Domain must not have been successfully renewed within the last 30 days - Premium renewals are not currently supported via API Renewals are always for the registry-minimum duration (usually 1 year). Use `/domain/checkDomain/{domain}` with `priceType=renewal` to get the current price before renewing. **Rate limits (both apply):** - Attempt limit (default: 1 attempt per second per account) - Success limit (default: 1000 successful renewals per 86400 seconds per account) Both limits are configurable per API key and their current values are returned in the `limits` field of the response. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT renewing or charging — nothing is created. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "renewal", "domain": "example.com", "tld": "com", "available": "unavailable", "premium": false, "duration": 1, "cost": 1099, "costDisplay": "$10.99", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this renewal would succeed and cost $10.99. No order was created and no charge was made.", "requestId": "019e04fa-3c11-7a02-9bd2-1f7c0e4a8b55" } ``` **Paying for it.** Two ways. **From prepaid account credit** (the default): no card on file is charged at purchase time, so the balance has to be there first. Read it with `GET /account/balance`; add to it with `POST /account/topup` (a saved card, with the account holder's OK), `POST /account/topupMpp` (the user's card from a Stripe Link agent wallet), `POST /account/topupCrypto` (USDC) or at https://porkbun.com/account/credit, and auto top-up at https://porkbun.com/account/api keeps it filled. Too little credit returns `INSUFFICIENT_FUNDS` with `cost`, `balance`, `shortfall` and `usdcAmountToCover` in cents. **Or directly in USDC:** add `"payWith": "usdc"` and an x402 client pays the HTTP 402 this returns (`PAYMENT_REQUIRED`, terms in the `PAYMENT-REQUIRED` header) and repeats the request with `PAYMENT-SIGNATURE`; no credit is needed, and if the purchase fails the payment stays on the account as credit (https://porkbun.com/llms/guides/pay-with-usdc-x402). Either way the account's monthly API spend limit applies ($100 a month until the account holder sets their own; `MONTHLY_SPEND_LIMIT_EXCEEDED`). `dryRun: true` reports cost and balance without charging, and `dryRun` with `cost: 0` returns a quote. */
2679
+ /** Renew a domain Renew a domain, paid from account credit or directly in USDC. Requirements: - Domain must be in your account and active - Domain must be opted in to API access - Account email and phone must be verified - Sufficient account credit, or `"payWith": "usdc"` to pay directly - `cost` must equal the current renewal price for the domain's minimum renewal duration (in pennies) - Domain must have been registered more than 30 days ago (checked against the domain's creation date) - Domain must not have been successfully renewed within the last 30 days - Premium renewals are not currently supported via API Renewals are always for the registry-minimum duration (usually 1 year). Use `/domain/checkDomain/{domain}` with `priceType=renewal` to get the current price before renewing. **Rate limits (both apply):** - Attempt limit (default: 1 attempt per second per account) - Success limit (default: 1000 successful renewals per 86400 seconds per account) Both limits are configurable per API key and their current values are returned in the `limits` field of the response. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT renewing or charging -- nothing is created. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "renewal", "domain": "example.com", "tld": "com", "available": "unavailable", "premium": false, "duration": 1, "cost": 1099, "costDisplay": "$10.99", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this renewal would succeed and cost $10.99. No order was created and no charge was made.", "requestId": "019e04fa-3c11-7a02-9bd2-1f7c0e4a8b55" } ``` **Paying for it.** Two ways. **From prepaid account credit** (the default): no card on file is charged at purchase time, so the balance has to be there first. Read it with `GET /account/balance`; add to it with `POST /account/topup` (a saved card, with the account holder's OK), `POST /account/topupMpp` (the user's card from a Stripe Link agent wallet), `POST /account/topupCrypto` (USDC) or at https://porkbun.com/account/credit, and auto top-up at https://porkbun.com/account/api keeps it filled. Too little credit returns `INSUFFICIENT_FUNDS` with `cost`, `balance`, `shortfall` and `usdcAmountToCover` in cents. **Or directly in USDC:** add `"payWith": "usdc"` and an x402 client pays the HTTP 402 this returns (`PAYMENT_REQUIRED`, terms in the `PAYMENT-REQUIRED` header) and repeats the request with `PAYMENT-SIGNATURE`; no credit is needed, and if the purchase fails the payment stays on the account as credit (https://porkbun.com/llms/guides/pay-with-usdc-x402). Either way the account's monthly API spend limit applies ($100 a month until the account holder sets their own; `MONTHLY_SPEND_LIMIT_EXCEEDED`). `dryRun: true` reports cost and balance without charging, and `dryRun` with `cost: 0` returns a quote. */
3123
2680
  export declare const renewDomain: API.OperationMethod<RenewDomainRequest, RenewDomainResponse2, RenewDomainError, PorkbunOpContext>;
3124
2681
  export type ResendWebhookError = BadRequest | NotFound | PorkbunOpError;
3125
2682
  /** 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. */
@@ -3137,19 +2694,19 @@ export type SandboxTopupError = PorkbunOpError;
3137
2694
  /** 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). */
3138
2695
  export declare const sandboxTopup: API.OperationMethod<SandboxTopupRequest, SandboxTopupResponse, SandboxTopupError, PorkbunOpContext>;
3139
2696
  export type SandboxTriggerWebhookError = PorkbunOpError;
3140
- /** 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`. */
2697
+ /** 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`. */
3141
2698
  export declare const sandboxTriggerWebhook: API.OperationMethod<SandboxTriggerWebhookRequest, SandboxTriggerWebhookResponse, SandboxTriggerWebhookError, PorkbunOpContext>;
3142
2699
  export type SearchCloseoutError = BadRequest | PorkbunOpError;
3143
- /** Search expired-domain closeouts Search the closeout inventory. Closeouts are expired domains that did not sell at auction and are now offered at a fixed, descending price — there is no bidding, the first buyer at the current price takes the name. Every filter is optional; with none you get the first page of the whole list plus `totalAvailable`. Page with `start`/`limit` until `start >= totalAvailable`. **`age` and `registrationDate` are on every row and both are sortable.** On the website the inventory is paginated by price tier and registration date is not shown, so finding aged names means walking several tier pages and then doing a WHOIS lookup per candidate. `sortName=registrationDate&sortDirection=asc` returns the oldest registrations first in one call. `price` is the closeout price alone. The binding total adds the renewal or transfer year you are also buying, and comes from `/closeout/get/{domain}` — it cannot be derived from search results, because a domain already at Porkbun is renewed while anything else is transferred in, and those are priced differently. */
2700
+ /** Search expired-domain closeouts Search the closeout inventory. Closeouts are expired domains that did not sell at auction and are now offered at a fixed, descending price -- there is no bidding, the first buyer at the current price takes the name. Every filter is optional; with none you get the first page of the whole list plus `totalAvailable`. Page with `start`/`limit` until `start >= totalAvailable`. **`age` and `registrationDate` are on every row and both are sortable.** On the website the inventory is paginated by price tier and registration date is not shown, so finding aged names means walking several tier pages and then doing a WHOIS lookup per candidate. `sortName=registrationDate&sortDirection=asc` returns the oldest registrations first in one call. `price` is the closeout price alone. The binding total adds the renewal or transfer year you are also buying, and comes from `/closeout/get/{domain}` -- it cannot be derived from search results, because a domain already at Porkbun is renewed while anything else is transferred in, and those are priced differently. */
3144
2701
  export declare const searchCloseout: API.OperationMethod<SearchCloseoutRequest, SearchCloseoutResponse, SearchCloseoutError, PorkbunOpContext>;
3145
2702
  export type SetAutoTopupError = BadRequest | PorkbunOpError;
3146
- /** Configure auto top-up Set the top-up amount, and/or switch auto top-up on or off. `amount` stands on its own. It is what a top-up adds, and `POST /account/topup` charges the same figure on demand, so setting it without automating anything is a normal call: `{"amount": 10000}`. `enabled: true` additionally makes it fire by itself and requires `threshold` (the balance, in integer US cents, below which a top-up happens) plus an amount — either in the same call or already on file. `enabled: false` stops it firing on a threshold and **keeps the amount**, because on-demand top-ups still use it. **`amount` set over the API is capped at $500** ($5 minimum), because that value is also what `POST /account/topup` charges — an API key free to set it to anything would be setting its own limit, which is not a limit. A larger amount set by the account holder at porkbun.com/account/api is honoured as-is. No card is touched here, and one cannot be added over the API. Supports `dryRun`. */
2703
+ /** Configure auto top-up Set the top-up amount, and/or switch auto top-up on or off. `amount` stands on its own. It is what a top-up adds, and `POST /account/topup` charges the same figure on demand, so setting it without automating anything is a normal call: `{"amount": 10000}`. `enabled: true` additionally makes it fire by itself and requires `threshold` (the balance, in integer US cents, below which a top-up happens) plus an amount -- either in the same call or already on file. `enabled: false` stops it firing on a threshold and **keeps the amount**, because on-demand top-ups still use it. **`amount` set over the API is capped at $500** ($5 minimum), because that value is also what `POST /account/topup` charges -- an API key free to set it to anything would be setting its own limit, which is not a limit. A larger amount set by the account holder at porkbun.com/account/api is honoured as-is. No card is touched here, and one cannot be added over the API. Supports `dryRun`. */
3147
2704
  export declare const setAutoTopup: API.OperationMethod<SetAutoTopupRequest, AutoTopupResponse, SetAutoTopupError, PorkbunOpContext>;
3148
2705
  export type TestWebhookError = BadRequest | NotFound | PorkbunOpError;
3149
2706
  /** 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). */
3150
2707
  export declare const testWebhook: API.OperationMethod<TestWebhookRequest, WebhookTestResponse, TestWebhookError, PorkbunOpContext>;
3151
2708
  export type TopupAccountCreditError = BadRequest | PorkbunOpError;
3152
- /** Top up account credit now **Charges the saved payment method** and adds the money to account credit immediately. The call that unblocks work already in progress: enabling auto top-up does nothing until the next order trips the threshold, which is no help to a caller holding an `INSUFFICIENT_FUNDS` response right now. **`amount` is optional.** Omitted, it charges the account's configured top-up amount, or $50 if the account has never set one — `amountSource` in the response says which of `configured`, `default` or `request` applied. Supplied, it charges that figure for this call only and leaves the stored setting alone, which is the point: an agent could always have written the amount to `/account/autoTopup` first, and making it do that turns a one-off charge into a silent edit of a setting the customer owns. The card itself can only be saved outside the API, and a supplied amount is held to the same 500–50000 cent range as one set through `/account/autoTopup`. On top of that the dollars are bounded by the month: the account's **monthly spend limit** caps top-ups as well as domain spend (it is the account saying how much the API may move, and a card charge is the API moving money), and an account that has never set one still gets a $100/month ceiling. Card, auto top-ups set off by an API purchase, MPP and USDC all count toward it — `monthlyCeiling` and `ceilingSource` on `GET /account/autoTopup` say which is in force. Top-ups are also limited to 5 per day and 20 per month (`TOPUP_LIMIT_EXCEEDED`), and every successful charge emails the account holder. Errors that matter: `NO_PAYMENT_METHOD` (nothing saved to charge — the account holder has to save a card or buy credit on the website), `CARD_DECLINED` (nothing was added; the card needs attention), `TOPUP_FAILED` (nothing was charged; retry once). With a sandbox key this grants simulated credit and charges nothing (`simulated: true`). Supports `dryRun`, which previews the amount and charges nothing in any environment. Honours `Idempotency-Key`. */
2709
+ /** Top up account credit now **Charges the saved payment method** and adds the money to account credit immediately. The call that unblocks work already in progress: enabling auto top-up does nothing until the next order trips the threshold, which is no help to a caller holding an `INSUFFICIENT_FUNDS` response right now. **`amount` is optional.** Omitted, it charges the account's configured top-up amount, or $50 if the account has never set one -- `amountSource` in the response says which of `configured`, `default` or `request` applied. Supplied, it charges that figure for this call only and leaves the stored setting alone, which is the point: an agent could always have written the amount to `/account/autoTopup` first, and making it do that turns a one-off charge into a silent edit of a setting the customer owns. The card itself can only be saved outside the API, and a supplied amount is held to the same 500-50000 cent range as one set through `/account/autoTopup`. On top of that the dollars are bounded by the month: the account's **monthly spend limit** caps top-ups as well as domain spend (it is the account saying how much the API may move, and a card charge is the API moving money), and an account that has never set one still gets a $100/month ceiling. Card, auto top-ups set off by an API purchase, MPP and USDC all count toward it -- `monthlyCeiling` and `ceilingSource` on `GET /account/autoTopup` say which is in force. Top-ups are also limited to 5 per day and 20 per month (`TOPUP_LIMIT_EXCEEDED`), and every successful charge emails the account holder. Errors that matter: `NO_PAYMENT_METHOD` (nothing saved to charge -- the account holder has to save a card or buy credit on the website), `CARD_DECLINED` (nothing was added; the card needs attention), `TOPUP_FAILED` (nothing was charged; retry once). With a sandbox key this grants simulated credit and charges nothing (`simulated: true`). Supports `dryRun`, which previews the amount and charges nothing in any environment. Honours `Idempotency-Key`. */
3153
2710
  export declare const topupAccountCredit: API.OperationMethod<TopupAccountCreditRequest, TopupAccountCreditResponse, TopupAccountCreditError, PorkbunOpContext>;
3154
2711
  export type TopupCryptoError = PorkbunOpError;
3155
2712
  /** Top up credit with USDC (x402) Opens a Coinbase checkout to add account credit with USDC on Base, the same as Use Crypto on porkbun.com. Nothing is charged by this call. Pay it either way: - `x402Url`: an AI agent with a wallet pays it directly over x402 (a gasless USDC transfer on Base, no page or person involved). This is how an agent gets past `INSUFFICIENT_FUNDS` on an account with no saved card. - `payUrl`: a Coinbase page where a person pays. Credit is added when the payment confirms (usually within a minute), less Coinbase's fee of about 1% (`estimatedFee_cents`, `estimatedCredit_cents`). To cover an `INSUFFICIENT_FUNDS` shortfall exactly, open the checkout for its `usdcAmountToCover`. Check `GET /account/topupCryptoStatus/{checkoutId}`. Payments are on-chain and cannot be reversed. Needs a verified email and phone and an account that is not bank-transfer-only (`CRYPTO_NOT_AVAILABLE` otherwise). Up to 10 checkouts per account per day. USDC counts toward the same monthly ceiling as card and MPP top-ups (the monthly spend limit, or $100 when none is set), checked when the checkout is opened, with unpaid checkouts from the last day counted as if paid (`TOPUP_LIMIT_EXCEEDED`). Not available on sandbox keys (`SANDBOX_UNSUPPORTED`; use `/sandbox/topup`). */
@@ -3161,16 +2718,16 @@ export type TopupMppError = PorkbunOpError;
3161
2718
  /** Top up credit with the user's card, paid by an agent (MPP) Returns a signed, single-use payment link (valid 15 minutes, bound to this account and amount) that an AI agent pays with the user's **card** over MPP, the Machine Payments Protocol (mpp.dev), using a Stripe Shared Payment Token from its agent wallet (Stripe's Link Agent Wallet). No card needs to be saved at Porkbun. Nothing is charged by this call. The agent's MPP client requests `payUrl` (POST) and gets HTTP `402` with a `WWW-Authenticate: Payment` challenge (`method="stripe"`, `intent="charge"`); its wallet mints a token for the user's card, the client retries with `Authorization: Payment <credential>`, and the credit is added at once: the response carries `credited_cents` and the new `balance_cents`, with a `Payment-Receipt` header. For example: `npx @stripe/link-cli mpp pay <payUrl> -X POST --context "..."`. Link refuses a `--context` shorter than 100 characters: it is what the user reads when approving the spend, so say what it is for and the dollar amount, worded fresh for each payment (Link can refuse an identical repeat). Same limits as card top-ups (`POST /account/topup`): $5-$500, the monthly ceiling, 5 a day and 20 a month (`TOPUP_LIMIT_EXCEEDED`). Not available on sandbox keys (`SANDBOX_UNSUPPORTED`). */
3162
2719
  export declare const topupMpp: API.OperationMethod<TopupMppRequest, TopupMppResponse, TopupMppError, PorkbunOpContext>;
3163
2720
  export type TransferDomainError = PorkbunOpError;
3164
- /** Initiate a domain transfer Initiates an inbound domain transfer to Porkbun, paid from account credit or directly in USDC. The transfer is processed asynchronously and typically takes 5–7 days to complete. **Requirements:** - Account email and phone must be verified. - Sufficient account credit to cover the transfer cost, or `"payWith": "usdc"` to pay directly. - Domain must not already be in your account. - No other active transfer for the same domain. - `.uk` and manage-only TLDs are not supported via API. - Premium domain transfers are not supported via API. - Some registries refuse registrant contacts on temporary or encrypted email providers and suspend domains that use one. `.in` and its second levels are the first; a transfer whose registrant contact uses one is refused with `REGISTRANT_EMAIL_NOT_ACCEPTED` before any charge. This is about the contact recorded on the domain, not about who hosts mail for it. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT initiating the transfer or charging — nothing is created. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "transfer", "domain": "example.com", "tld": "com", "available": "unavailable", "premium": false, "duration": 1, "cost": 999, "costDisplay": "$9.99", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this transfer would succeed and cost $9.99. No order was created and no charge was made.", "requestId": "019e04fa-5f22-7c93-8a41-2e9d0b3f6c77" } ``` **Paying for it.** Two ways. **From prepaid account credit** (the default): no card on file is charged at purchase time, so the balance has to be there first. Read it with `GET /account/balance`; add to it with `POST /account/topup` (a saved card, with the account holder's OK), `POST /account/topupMpp` (the user's card from a Stripe Link agent wallet), `POST /account/topupCrypto` (USDC) or at https://porkbun.com/account/credit, and auto top-up at https://porkbun.com/account/api keeps it filled. Too little credit returns `INSUFFICIENT_FUNDS` with `cost`, `balance`, `shortfall` and `usdcAmountToCover` in cents. **Or directly in USDC:** add `"payWith": "usdc"` and an x402 client pays the HTTP 402 this returns (`PAYMENT_REQUIRED`, terms in the `PAYMENT-REQUIRED` header) and repeats the request with `PAYMENT-SIGNATURE`; no credit is needed, and if the purchase fails the payment stays on the account as credit (https://porkbun.com/llms/guides/pay-with-usdc-x402). Either way the account's monthly API spend limit applies ($100 a month until the account holder sets their own; `MONTHLY_SPEND_LIMIT_EXCEEDED`). `dryRun: true` reports cost and balance without charging, and `dryRun` with `cost: 0` returns a quote. */
2721
+ /** Initiate a domain transfer Initiates an inbound domain transfer to Porkbun, paid from account credit or directly in USDC. The transfer is processed asynchronously and typically takes 5-7 days to complete. **Requirements:** - Account email and phone must be verified. - Sufficient account credit to cover the transfer cost, or `"payWith": "usdc"` to pay directly. - Domain must not already be in your account. - No other active transfer for the same domain. - `.uk` and manage-only TLDs are not supported via API. - Premium domain transfers are not supported via API. - Some registries refuse registrant contacts on temporary or encrypted email providers and suspend domains that use one. `.in` and its second levels are the first; a transfer whose registrant contact uses one is refused with `REGISTRANT_EMAIL_NOT_ACCEPTED` before any charge. This is about the contact recorded on the domain, not about who hosts mail for it. ## Dry run Add `dryRun: true` to validate everything and preview the cost WITHOUT initiating the transfer or charging -- nothing is created. Example response: ```json { "status": "SUCCESS", "dryRun": true, "wouldSucceed": true, "operation": "transfer", "domain": "example.com", "tld": "com", "available": "unavailable", "premium": false, "duration": 1, "cost": 999, "costDisplay": "$9.99", "balance": 5000, "sufficientFunds": true, "message": "Dry run: this transfer would succeed and cost $9.99. No order was created and no charge was made.", "requestId": "019e04fa-5f22-7c93-8a41-2e9d0b3f6c77" } ``` **Paying for it.** Two ways. **From prepaid account credit** (the default): no card on file is charged at purchase time, so the balance has to be there first. Read it with `GET /account/balance`; add to it with `POST /account/topup` (a saved card, with the account holder's OK), `POST /account/topupMpp` (the user's card from a Stripe Link agent wallet), `POST /account/topupCrypto` (USDC) or at https://porkbun.com/account/credit, and auto top-up at https://porkbun.com/account/api keeps it filled. Too little credit returns `INSUFFICIENT_FUNDS` with `cost`, `balance`, `shortfall` and `usdcAmountToCover` in cents. **Or directly in USDC:** add `"payWith": "usdc"` and an x402 client pays the HTTP 402 this returns (`PAYMENT_REQUIRED`, terms in the `PAYMENT-REQUIRED` header) and repeats the request with `PAYMENT-SIGNATURE`; no credit is needed, and if the purchase fails the payment stays on the account as credit (https://porkbun.com/llms/guides/pay-with-usdc-x402). Either way the account's monthly API spend limit applies ($100 a month until the account holder sets their own; `MONTHLY_SPEND_LIMIT_EXCEEDED`). `dryRun: true` reports cost and balance without charging, and `dryRun` with `cost: 0` returns a quote. */
3165
2722
  export declare const transferDomain: API.OperationMethod<TransferDomainRequest, TransferDomainResponse2, TransferDomainError, PorkbunOpContext>;
3166
2723
  export type TransferDomainPrepareError = BadRequest | PorkbunOpError;
3167
2724
  /** Create the DNS zone for a held transfer Create the Porkbun DNS zone for a domain whose inbound transfer is held at `PENDINGDNS`, so records can be added **before** the domain moves. The zone is created deliberately rather than as a side effect of the first record write. Returns the Porkbun nameservers to point the domain at. Then load the zone with `/dns/import/{domain}` (or the `/dns/*` endpoints) and release with `/domain/startTransfer/{domain}`. Supports `dryRun`. */
3168
2725
  export declare const transferDomainPrepare: API.OperationMethod<TransferDomainPrepareRequest, TransferDomainPrepareResponse, TransferDomainPrepareError, PorkbunOpContext>;
3169
2726
  export type UpdateWebhookError = BadRequest | NotFound | PorkbunOpError;
3170
- /** Update a webhook endpoint Update an endpoint's URL, event subscriptions, and/or status. Only the supplied fields change. Set `status` to `DISABLED` to pause deliveries or `ACTIVE` to resume (resuming also resets the consecutive-failure counter). **URL requirements:** the endpoint must be an `https://` URL on the standard port 443, with a hostname that resolves to a public internet address. Private, loopback, link-local, CGNAT and other reserved ranges are refused (`INVALID_WEBHOOK_URL`) because Porkbun delivers from inside its own network. Credentials in the URL (`https://user:pass@host`) are also refused — authenticate the receiver by verifying the `X-Porkbun-Signature` HMAC instead. A hostname that does not resolve yet is accepted, so you can register the endpoint before the receiver is deployed, but delivery is re-checked against these rules immediately before each request. */
2727
+ /** Update a webhook endpoint Update an endpoint's URL, event subscriptions, and/or status. Only the supplied fields change. Set `status` to `DISABLED` to pause deliveries or `ACTIVE` to resume (resuming also resets the consecutive-failure counter). **URL requirements:** the endpoint must be an `https://` URL on the standard port 443, with a hostname that resolves to a public internet address. Private, loopback, link-local, CGNAT and other reserved ranges are refused (`INVALID_WEBHOOK_URL`) because Porkbun delivers from inside its own network. Credentials in the URL (`https://user:pass@host`) are also refused -- authenticate the receiver by verifying the `X-Porkbun-Signature` HMAC instead. A hostname that does not resolve yet is accepted, so you can register the endpoint before the receiver is deployed, but delivery is re-checked against these rules immediately before each request. */
3171
2728
  export declare const updateWebhook: API.OperationMethod<UpdateWebhookRequest, WebhookEndpointResponse, UpdateWebhookError, PorkbunOpContext>;
3172
2729
  export type WebhookDeliveriesError = BadRequest | NotFound | PorkbunOpError;
3173
- /** 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). */
2730
+ /** 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). */
3174
2731
  export declare const webhookDeliveries: API.OperationMethod<WebhookDeliveriesRequest, WebhookDeliveryListResponse, WebhookDeliveriesError, PorkbunOpContext>;
3175
2732
  export type WebhookDelivery2Error = NotFound | PorkbunOpError;
3176
2733
  /** 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). */