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