@namefi/api-client 0.0.0-pre.4 → 0.0.0-pre.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +166 -60
- package/dist/index.d.ts +166 -60
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var client=require('@orpc/client'),fetch=require('@orpc/openapi-client/fetch');var m=Object.defineProperty;var r=(o,t)=>m(o,"name",{value:t,configurable:true});var i={dnsRecords:{getRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}},route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}}},createDnsRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}},route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}}},updateRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}},route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}}},deleteRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}},route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}}},updateRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}},route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}}},createRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}},route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}}},deleteRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}},route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}}},parkDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}},route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}}},isDomainParked:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}},route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}}}},user:{getDomains:{"~orpc":{errorMap:{},meta:{route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}},route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}}},getUserCart:{"~orpc":{errorMap:{},meta:{route:{path:"/user/cart",method:"GET",tags:["user","cart"],operationId:"getUserCart",summary:"Get user cart",description:"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item."}},route:{path:"/user/cart",method:"GET",tags:["user","cart"],operationId:"getUserCart",summary:"Get user cart",description:"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item."}}},getUserOrders:{"~orpc":{errorMap:{},meta:{route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}},route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}}}},orders:{getOrder:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}},route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}}},getOrderItems:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}},route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}}},registerDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}},route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}}},getOrderPaymentMethodsDetails:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}},route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}}}},balance:{getBalance:{"~orpc":{errorMap:{},meta:{route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}},route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}}}},search:{checkAvailability:{"~orpc":{errorMap:{},meta:{route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}},route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}}},getSuggestions:{"~orpc":{errorMap:{},meta:{route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}},route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}}}}};function T({authentication:o,logger:t,baseUrl:n="https://backend.astra.namefi.io"}){let{apiKey:d}=o,a=t?typeof t=="object"?t:{info:r((...e)=>console.log(...e),"info"),error:r((...e)=>console.error(...e),"error")}:void 0,s=new URL(n);s.pathname="/"+[...s.pathname.split("/").filter(Boolean),"v-next"].join("/");let c=new fetch.OpenAPILink(i,{url:s.toString(),headers:r(()=>({"x-api-key":d}),"headers"),fetch:r((e,p)=>globalThis.fetch(e,{...p,credentials:"include"}),"fetch"),interceptors:[client.onError(e=>{a?.error(e);}),client.onFinish(e=>{a?.info("Request finished");}),client.onStart(e=>{a?.info("Request started");}),client.onSuccess(e=>{a?.info("Request succeeded");})]});return client.createORPCClient(c)}r(T,"createNamefiClient");
|
|
2
|
-
exports.createNamefiClient=
|
|
1
|
+
'use strict';var client=require('@orpc/client'),fetch=require('@orpc/openapi-client/fetch');var m=Object.defineProperty;var r=(o,t)=>m(o,"name",{value:t,configurable:true});var i={dnsRecords:{getRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}},route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}}},createDnsRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}},route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}}},updateRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}},route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}}},deleteRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}},route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}}},updateRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}},route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}}},createRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}},route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}}},deleteRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}},route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}}},parkDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}},route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}}},isDomainParked:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}},route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}}}},user:{getDomains:{"~orpc":{errorMap:{},meta:{route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}},route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}}},requestNfscFaucet:{"~orpc":{errorMap:{},meta:{route:{path:"/user/faucet",method:"POST",tags:["user","balance"],operationId:"requestNfscFaucet",summary:"Request NFSC faucet",description:"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address."}},route:{path:"/user/faucet",method:"POST",tags:["user","balance"],operationId:"requestNfscFaucet",summary:"Request NFSC faucet",description:"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address."}}},getUserOrders:{"~orpc":{errorMap:{},meta:{route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}},route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}}}},orders:{getOrder:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}},route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}}},getOrderItems:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}},route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}}},registerDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}},route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}}},registerWithRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/register-domain/records",method:"POST",tags:["orders"],operationId:"registerWithRecords",summary:"Instant register domain with records",description:"Purchase a single domain instantly and apply DNS records after processing."}},route:{path:"/orders/register-domain/records",method:"POST",tags:["orders"],operationId:"registerWithRecords",summary:"Instant register domain with records",description:"Purchase a single domain instantly and apply DNS records after processing."}}},getOrderPaymentMethodsDetails:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}},route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}}}},balance:{getBalance:{"~orpc":{errorMap:{},meta:{route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}},route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}}}},search:{checkAvailability:{"~orpc":{errorMap:{},meta:{route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}},route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}}},getSuggestions:{"~orpc":{errorMap:{},meta:{route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}},route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}}}}};function v({authentication:o,logger:t,baseUrl:n="https://backend.astra.namefi.io"}){let{apiKey:d}=o,a=t?typeof t=="object"?t:{info:r((...e)=>console.log(...e),"info"),error:r((...e)=>console.error(...e),"error")}:void 0,s=new URL(n);s.pathname="/"+[...s.pathname.split("/").filter(Boolean),"v-next"].join("/");let c=new fetch.OpenAPILink(i,{url:s.toString(),headers:r(()=>({"x-api-key":d}),"headers"),fetch:r((e,p)=>globalThis.fetch(e,{...p,credentials:"include"}),"fetch"),interceptors:[client.onError(e=>{a?.error(e);}),client.onFinish(e=>{a?.info("Request finished");}),client.onStart(e=>{a?.info("Request started");}),client.onSuccess(e=>{a?.info("Request succeeded");})]});return client.createORPCClient(c)}r(v,"createNamefiClient");
|
|
2
|
+
exports.createNamefiClient=v;//# sourceMappingURL=index.cjs.map
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../contract.json"],"names":["contract_default","createNamefiClient","authentication","logger","baseUrl","apiKey","_logger","__name","args","url","link","OpenAPILink","request","init","onError","error","onFinish","response","onStart","onSuccess","createORPCClient"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C,CACH,CAAA,WAAA,CAAa,SACf,CAAC,CAJI,CAAA,OAAA,CAAA,CAMP,YAAc,CAAA,CACZC,cAASC,CAAAA,CAAAA,EAAU,CACjBT,CAAAA,EAAS,KAAMS,CAAAA,CAAK,EACtB,CAAC,CACDC,CAAAA,eAAAA,CAAUC,GAAa,CACrBX,CAAAA,EAAS,IAAK,CAAA,kBAAkB,EAClC,CAAC,CACDY,CAAAA,cAAAA,CAASN,CAAY,EAAA,CACnBN,CAAS,EAAA,IAAA,CAAK,iBAAiB,EACjC,CAAC,CAAA,CACDa,iBAAWF,CAAa,EAAA,CACtBX,CAAS,EAAA,IAAA,CAAK,mBAAmB,EACnC,CAAC,CACH,CACF,CAAC,CAKD,CAAA,OAFEc,uBAAiBV,CAAAA,CAAI,CAGzB,CAlDgBH,EAAAN,CAAA,CAAA,oBAAA,CAAA","file":"index.cjs","sourcesContent":["import type { JsonifiedClient } from '@orpc/openapi-client';\nimport type { ContractRouterClient } from '@orpc/contract';\nimport {\n createORPCClient,\n onError,\n onFinish,\n onStart,\n onSuccess,\n} from '@orpc/client';\nimport { OpenAPILink } from '@orpc/openapi-client/fetch';\nimport contract from '../contract.json';\nimport type { orpcRouter as router } from '@namefi-astra/backend/openapi';\n\ntype CreateNamefiClientOptions = {\n authentication: {\n apiKey: string;\n type: 'API_KEY';\n };\n logger:\n | {\n info: (...args: any[]) => void;\n error: (...args: any[]) => void;\n }\n | boolean\n | undefined;\n baseUrl?: string;\n};\n\nexport function createNamefiClient({\n authentication,\n logger,\n baseUrl = 'https://backend.astra.namefi.io',\n}: CreateNamefiClientOptions) {\n const { apiKey } = authentication;\n const _logger = logger\n ? typeof logger === 'object'\n ? logger\n : {\n info: (...args: any[]) => console.log(...args),\n error: (...args: any[]) => console.error(...args),\n }\n : undefined;\n\n const url = new URL(baseUrl);\n url.pathname =\n '/' + [...url.pathname.split('/').filter(Boolean), 'v-next'].join('/');\n\n const link = new OpenAPILink(contract as unknown as typeof router, {\n url: url.toString(),\n headers: () => ({\n 'x-api-key': apiKey,\n }),\n fetch: (request, init) => {\n return globalThis.fetch(request, {\n ...init,\n credentials: 'include', // Include cookies for cross-origin requests\n });\n },\n interceptors: [\n onError((error) => {\n _logger?.error(error);\n }),\n onFinish((response) => {\n _logger?.info('Request finished');\n }),\n onStart((request) => {\n _logger?.info('Request started');\n }),\n onSuccess((response) => {\n _logger?.info('Request succeeded');\n }),\n ],\n });\n\n const client: JsonifiedClient<ContractRouterClient<typeof router>> =\n createORPCClient(link);\n\n return client;\n}\n","{\n \"dnsRecords\": {\n \"getRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n }\n },\n \"createDnsRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n }\n },\n \"updateRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n }\n },\n \"deleteRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n }\n },\n \"updateRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n }\n },\n \"createRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n }\n },\n \"deleteRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n }\n },\n \"parkDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n }\n },\n \"isDomainParked\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n }\n }\n },\n \"user\": {\n \"getDomains\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n },\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n }\n },\n \"getUserCart\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/cart\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"cart\"],\n \"operationId\": \"getUserCart\",\n \"summary\": \"Get user cart\",\n \"description\": \"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item.\"\n }\n },\n \"route\": {\n \"path\": \"/user/cart\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"cart\"],\n \"operationId\": \"getUserCart\",\n \"summary\": \"Get user cart\",\n \"description\": \"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item.\"\n }\n }\n },\n \"getUserOrders\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n }\n }\n },\n \"orders\": {\n \"getOrder\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n }\n },\n \"getOrderItems\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n }\n },\n \"registerDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n }\n },\n \"getOrderPaymentMethodsDetails\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n }\n }\n },\n \"balance\": {\n \"getBalance\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n },\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n }\n }\n },\n \"search\": {\n \"checkAvailability\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n },\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n }\n },\n \"getSuggestions\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n },\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n }\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../contract.json"],"names":["contract_default","createNamefiClient","authentication","logger","baseUrl","apiKey","_logger","__name","args","url","link","OpenAPILink","request","init","onError","error","onFinish","response","onStart","onSuccess","createORPCClient"],"mappings":"4FAEA,IAAA,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AAA,CAAYX,CAAsC,CAAA,CACjE,GAAKS,CAAAA,CAAAA,CAAI,QAAS,EAAA,CAClB,QAASF,CAAA,CAAA,KAAO,CACd,WAAA,CAAaF,CACf,CAAA,CAAA,CAFS,SAGT,CAAA,CAAA,KAAA,CAAOE,CAAA,CAAA,CAACK,CAASC,CAAAA,CAAAA,GACR,UAAW,CAAA,KAAA,CAAMD,CAAS,CAAA,CAC/B,GAAGC,CACH,CAAA,WAAA,CAAa,SACf,CAAC,CAJI,CAAA,OAAA,CAAA,CAMP,YAAc,CAAA,CACZC,eAASC,CAAU,EAAA,CACjBT,CAAS,EAAA,KAAA,CAAMS,CAAK,EACtB,CAAC,CAAA,CACDC,gBAAUC,CAAa,EAAA,CACrBX,CAAS,EAAA,IAAA,CAAK,kBAAkB,EAClC,CAAC,CAAA,CACDY,cAASN,CAAAA,CAAAA,EAAY,CACnBN,CAAAA,EAAS,IAAK,CAAA,iBAAiB,EACjC,CAAC,EACDa,gBAAWF,CAAAA,CAAAA,EAAa,CACtBX,CAAAA,EAAS,IAAK,CAAA,mBAAmB,EACnC,CAAC,CACH,CACF,CAAC,CAKD,CAAA,OAFEc,uBAAiBV,CAAAA,CAAI,CAGzB,CAlDgBH,EAAAN,CAAA,CAAA,oBAAA,CAAA","file":"index.cjs","sourcesContent":["import type { JsonifiedClient } from '@orpc/openapi-client';\nimport type { ContractRouterClient } from '@orpc/contract';\nimport {\n createORPCClient,\n onError,\n onFinish,\n onStart,\n onSuccess,\n} from '@orpc/client';\nimport { OpenAPILink } from '@orpc/openapi-client/fetch';\nimport contract from '../contract.json';\nimport type { orpcRouter as router } from '@namefi-astra/backend/openapi';\n\ntype CreateNamefiClientOptions = {\n authentication: {\n apiKey: string;\n type: 'API_KEY';\n };\n logger:\n | {\n info: (...args: any[]) => void;\n error: (...args: any[]) => void;\n }\n | boolean\n | undefined;\n baseUrl?: string;\n};\n\nexport function createNamefiClient({\n authentication,\n logger,\n baseUrl = 'https://backend.astra.namefi.io',\n}: CreateNamefiClientOptions) {\n const { apiKey } = authentication;\n const _logger = logger\n ? typeof logger === 'object'\n ? logger\n : {\n info: (...args: any[]) => console.log(...args),\n error: (...args: any[]) => console.error(...args),\n }\n : undefined;\n\n const url = new URL(baseUrl);\n url.pathname =\n '/' + [...url.pathname.split('/').filter(Boolean), 'v-next'].join('/');\n\n const link = new OpenAPILink(contract as unknown as typeof router, {\n url: url.toString(),\n headers: () => ({\n 'x-api-key': apiKey,\n }),\n fetch: (request, init) => {\n return globalThis.fetch(request, {\n ...init,\n credentials: 'include', // Include cookies for cross-origin requests\n });\n },\n interceptors: [\n onError((error) => {\n _logger?.error(error);\n }),\n onFinish((response) => {\n _logger?.info('Request finished');\n }),\n onStart((request) => {\n _logger?.info('Request started');\n }),\n onSuccess((response) => {\n _logger?.info('Request succeeded');\n }),\n ],\n });\n\n const client: JsonifiedClient<ContractRouterClient<typeof router>> =\n createORPCClient(link);\n\n return client;\n}\n","{\n \"dnsRecords\": {\n \"getRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n }\n },\n \"createDnsRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n }\n },\n \"updateRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n }\n },\n \"deleteRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n }\n },\n \"updateRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n }\n },\n \"createRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n }\n },\n \"deleteRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n }\n },\n \"parkDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n }\n },\n \"isDomainParked\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n }\n }\n },\n \"user\": {\n \"getDomains\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n },\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n }\n },\n \"requestNfscFaucet\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/faucet\",\n \"method\": \"POST\",\n \"tags\": [\"user\", \"balance\"],\n \"operationId\": \"requestNfscFaucet\",\n \"summary\": \"Request NFSC faucet\",\n \"description\": \"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address.\"\n }\n },\n \"route\": {\n \"path\": \"/user/faucet\",\n \"method\": \"POST\",\n \"tags\": [\"user\", \"balance\"],\n \"operationId\": \"requestNfscFaucet\",\n \"summary\": \"Request NFSC faucet\",\n \"description\": \"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address.\"\n }\n }\n },\n \"getUserOrders\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n }\n }\n },\n \"orders\": {\n \"getOrder\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n }\n },\n \"getOrderItems\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n }\n },\n \"registerDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n }\n },\n \"registerWithRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/register-domain/records\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerWithRecords\",\n \"summary\": \"Instant register domain with records\",\n \"description\": \"Purchase a single domain instantly and apply DNS records after processing.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/register-domain/records\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerWithRecords\",\n \"summary\": \"Instant register domain with records\",\n \"description\": \"Purchase a single domain instantly and apply DNS records after processing.\"\n }\n }\n },\n \"getOrderPaymentMethodsDetails\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n }\n }\n },\n \"balance\": {\n \"getBalance\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n },\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n }\n }\n },\n \"search\": {\n \"checkAvailability\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n },\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n }\n },\n \"getSuggestions\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n },\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n }\n }\n }\n}\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -225,61 +225,14 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
225
225
|
ensRecord: string | null;
|
|
226
226
|
};
|
|
227
227
|
}[], Error>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
encryptionKeyId: string | null;
|
|
237
|
-
encryptedEppAuthorizationCode: string | null;
|
|
238
|
-
createdAt: string;
|
|
239
|
-
updatedAt: string;
|
|
240
|
-
claims: {
|
|
241
|
-
groupOrCampaignKey: string;
|
|
242
|
-
claimsAvailable: number;
|
|
243
|
-
exactMatchClaims: {
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatedAt: string;
|
|
246
|
-
userId: string;
|
|
247
|
-
groupOrCampaignKey: string;
|
|
248
|
-
reason: string | null;
|
|
249
|
-
expirationDate: string | null;
|
|
250
|
-
orderItemId: string | null;
|
|
251
|
-
claimingStatus: "IDLE" | "CLAIMING" | "CLAIMED";
|
|
252
|
-
claimedAt: string | null;
|
|
253
|
-
metadata: any;
|
|
254
|
-
id: string;
|
|
255
|
-
exactDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
256
|
-
parentDomain?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
257
|
-
claimedDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
258
|
-
}[];
|
|
259
|
-
parentMatchClaims: {
|
|
260
|
-
createdAt: string;
|
|
261
|
-
updatedAt: string;
|
|
262
|
-
userId: string;
|
|
263
|
-
groupOrCampaignKey: string;
|
|
264
|
-
reason: string | null;
|
|
265
|
-
expirationDate: string | null;
|
|
266
|
-
orderItemId: string | null;
|
|
267
|
-
claimingStatus: "IDLE" | "CLAIMING" | "CLAIMED";
|
|
268
|
-
claimedAt: string | null;
|
|
269
|
-
metadata: any;
|
|
270
|
-
id: string;
|
|
271
|
-
exactDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
272
|
-
parentDomain?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
273
|
-
claimedDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
274
|
-
}[];
|
|
275
|
-
}[];
|
|
276
|
-
metadata?: {
|
|
277
|
-
[x: string]: unknown;
|
|
278
|
-
freeClaim?: boolean | undefined;
|
|
279
|
-
groupOrCampaignKey?: string | undefined;
|
|
280
|
-
claimId?: string | undefined;
|
|
281
|
-
} | null | undefined;
|
|
282
|
-
}[], Error>;
|
|
228
|
+
requestNfscFaucet: _orpc_client.Client<Record<never, never>, {
|
|
229
|
+
walletAddress?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
status: "started";
|
|
232
|
+
workflowId: string;
|
|
233
|
+
walletAddress: `0x${string}` & zod.$brand<"ChecksumWalletAddress">;
|
|
234
|
+
nextEligibleAt: string;
|
|
235
|
+
}, Error>;
|
|
283
236
|
getUserOrders: _orpc_client.Client<Record<never, never>, void, {
|
|
284
237
|
id: string;
|
|
285
238
|
orderId: string;
|
|
@@ -290,7 +243,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
290
243
|
registrar: string;
|
|
291
244
|
encryptionKeyId: string | null;
|
|
292
245
|
encryptedEppAuthorizationCode: string | null;
|
|
293
|
-
status: "
|
|
246
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
294
247
|
createdAt: string;
|
|
295
248
|
updatedAt: string;
|
|
296
249
|
metadata?: {
|
|
@@ -302,6 +255,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
302
255
|
txHash: string;
|
|
303
256
|
recordedAt: string;
|
|
304
257
|
} | undefined;
|
|
258
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
305
259
|
} | null | undefined;
|
|
306
260
|
}[], Error>;
|
|
307
261
|
};
|
|
@@ -310,13 +264,15 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
310
264
|
orderId: string;
|
|
311
265
|
}, {
|
|
312
266
|
order: {
|
|
267
|
+
startedAt: string | null;
|
|
268
|
+
finishedAt: string | null;
|
|
313
269
|
createdAt: string;
|
|
314
270
|
updatedAt: string;
|
|
315
271
|
nftWalletAddress: string | null;
|
|
316
272
|
nftChainId: number | null;
|
|
317
273
|
amountInUSDCents: number;
|
|
318
274
|
userId: string;
|
|
319
|
-
status: "
|
|
275
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED";
|
|
320
276
|
id: string;
|
|
321
277
|
metadata?: {
|
|
322
278
|
[x: string]: unknown;
|
|
@@ -326,12 +282,15 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
326
282
|
recordedAt: string;
|
|
327
283
|
};
|
|
328
284
|
} | undefined;
|
|
285
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
329
286
|
freeClaim?: boolean | undefined;
|
|
330
287
|
groupOrCampaignKey?: string | undefined;
|
|
331
288
|
claimId?: string | undefined;
|
|
332
289
|
} | null | undefined;
|
|
333
290
|
};
|
|
334
291
|
items: {
|
|
292
|
+
startedAt: string | null;
|
|
293
|
+
finishedAt: string | null;
|
|
335
294
|
createdAt: string;
|
|
336
295
|
updatedAt: string;
|
|
337
296
|
durationInYears: number;
|
|
@@ -339,7 +298,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
339
298
|
registrar: string;
|
|
340
299
|
encryptionKeyId: string | null;
|
|
341
300
|
encryptedEppAuthorizationCode: string | null;
|
|
342
|
-
status: "
|
|
301
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
343
302
|
amountInUSDCents: number;
|
|
344
303
|
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
345
304
|
orderId: string;
|
|
@@ -353,9 +312,34 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
353
312
|
txHash: string;
|
|
354
313
|
recordedAt: string;
|
|
355
314
|
} | undefined;
|
|
315
|
+
postProcessOrderItem?: {
|
|
316
|
+
[x: string]: unknown;
|
|
317
|
+
actions: {
|
|
318
|
+
scope: "dns-records";
|
|
319
|
+
action: "set" | "add";
|
|
320
|
+
records: {
|
|
321
|
+
name: string;
|
|
322
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
323
|
+
rdata: string;
|
|
324
|
+
ttl?: number | undefined;
|
|
325
|
+
}[];
|
|
326
|
+
}[];
|
|
327
|
+
} | undefined;
|
|
328
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
329
|
+
failureDetails?: {
|
|
330
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
331
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
332
|
+
recordedAt: string;
|
|
333
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
334
|
+
actorId?: string | undefined;
|
|
335
|
+
timeoutMs?: number | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
356
338
|
} | null | undefined;
|
|
357
339
|
}[];
|
|
358
340
|
payments: {
|
|
341
|
+
startedAt: string | null;
|
|
342
|
+
finishedAt: string | null;
|
|
359
343
|
createdAt: string;
|
|
360
344
|
updatedAt: string;
|
|
361
345
|
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "REFUND_REQUESTED" | "REQUIRES_CAPTURE";
|
|
@@ -369,6 +353,9 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
369
353
|
stripePaymentDetails: {
|
|
370
354
|
paymentMethodId?: string | undefined;
|
|
371
355
|
} | null;
|
|
356
|
+
metadata: {
|
|
357
|
+
[x: string]: never;
|
|
358
|
+
} | null;
|
|
372
359
|
amountInUSDCents: number;
|
|
373
360
|
id: string;
|
|
374
361
|
}[];
|
|
@@ -385,6 +372,8 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
385
372
|
};
|
|
386
373
|
}, Error>;
|
|
387
374
|
getOrderItems: _orpc_client.Client<Record<never, never>, void, {
|
|
375
|
+
startedAt: string | null;
|
|
376
|
+
finishedAt: string | null;
|
|
388
377
|
createdAt: string;
|
|
389
378
|
updatedAt: string;
|
|
390
379
|
durationInYears: number;
|
|
@@ -392,7 +381,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
392
381
|
registrar: string;
|
|
393
382
|
encryptionKeyId: string | null;
|
|
394
383
|
encryptedEppAuthorizationCode: string | null;
|
|
395
|
-
status: "
|
|
384
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
396
385
|
amountInUSDCents: number;
|
|
397
386
|
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
398
387
|
orderId: string;
|
|
@@ -406,6 +395,29 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
406
395
|
txHash: string;
|
|
407
396
|
recordedAt: string;
|
|
408
397
|
} | undefined;
|
|
398
|
+
postProcessOrderItem?: {
|
|
399
|
+
[x: string]: unknown;
|
|
400
|
+
actions: {
|
|
401
|
+
scope: "dns-records";
|
|
402
|
+
action: "set" | "add";
|
|
403
|
+
records: {
|
|
404
|
+
name: string;
|
|
405
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
406
|
+
rdata: string;
|
|
407
|
+
ttl?: number | undefined;
|
|
408
|
+
}[];
|
|
409
|
+
}[];
|
|
410
|
+
} | undefined;
|
|
411
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
412
|
+
failureDetails?: {
|
|
413
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
414
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
415
|
+
recordedAt: string;
|
|
416
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
417
|
+
actorId?: string | undefined;
|
|
418
|
+
timeoutMs?: number | undefined;
|
|
419
|
+
} | undefined;
|
|
420
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
409
421
|
} | null | undefined;
|
|
410
422
|
}[], Error>;
|
|
411
423
|
registerDomain: _orpc_client.Client<Record<never, never>, {
|
|
@@ -422,6 +434,77 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
422
434
|
nftWalletAddress: string | null;
|
|
423
435
|
nftChainId: number | null;
|
|
424
436
|
items: {
|
|
437
|
+
startedAt: string | null;
|
|
438
|
+
finishedAt: string | null;
|
|
439
|
+
createdAt: string;
|
|
440
|
+
updatedAt: string;
|
|
441
|
+
durationInYears: number;
|
|
442
|
+
type: "REGISTER" | "IMPORT" | "RENEW";
|
|
443
|
+
registrar: string;
|
|
444
|
+
encryptionKeyId: string | null;
|
|
445
|
+
encryptedEppAuthorizationCode: string | null;
|
|
446
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
447
|
+
amountInUSDCents: number;
|
|
448
|
+
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
449
|
+
orderId: string;
|
|
450
|
+
id: string;
|
|
451
|
+
metadata?: {
|
|
452
|
+
[x: string]: unknown;
|
|
453
|
+
freeClaim?: boolean | undefined;
|
|
454
|
+
groupOrCampaignKey?: string | undefined;
|
|
455
|
+
claimId?: string | undefined;
|
|
456
|
+
mintTransaction?: {
|
|
457
|
+
txHash: string;
|
|
458
|
+
recordedAt: string;
|
|
459
|
+
} | undefined;
|
|
460
|
+
postProcessOrderItem?: {
|
|
461
|
+
[x: string]: unknown;
|
|
462
|
+
actions: {
|
|
463
|
+
scope: "dns-records";
|
|
464
|
+
action: "set" | "add";
|
|
465
|
+
records: {
|
|
466
|
+
name: string;
|
|
467
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
468
|
+
rdata: string;
|
|
469
|
+
ttl?: number | undefined;
|
|
470
|
+
}[];
|
|
471
|
+
}[];
|
|
472
|
+
} | undefined;
|
|
473
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
474
|
+
failureDetails?: {
|
|
475
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
476
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
477
|
+
recordedAt: string;
|
|
478
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
479
|
+
actorId?: string | undefined;
|
|
480
|
+
timeoutMs?: number | undefined;
|
|
481
|
+
} | undefined;
|
|
482
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
}[];
|
|
485
|
+
}, Error>;
|
|
486
|
+
registerWithRecords: _orpc_client.Client<Record<never, never>, {
|
|
487
|
+
normalizedDomainName: string;
|
|
488
|
+
durationInYears?: number | undefined;
|
|
489
|
+
records?: {
|
|
490
|
+
name: string;
|
|
491
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
492
|
+
rdata: string;
|
|
493
|
+
ttl?: number | undefined;
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
nftReceivinggWallet?: {
|
|
496
|
+
walletAddress: string;
|
|
497
|
+
chainId: number;
|
|
498
|
+
} | undefined;
|
|
499
|
+
}, {
|
|
500
|
+
id: string;
|
|
501
|
+
userId: string;
|
|
502
|
+
amountInUSDCents: number;
|
|
503
|
+
nftWalletAddress: string | null;
|
|
504
|
+
nftChainId: number | null;
|
|
505
|
+
items: {
|
|
506
|
+
startedAt: string | null;
|
|
507
|
+
finishedAt: string | null;
|
|
425
508
|
createdAt: string;
|
|
426
509
|
updatedAt: string;
|
|
427
510
|
durationInYears: number;
|
|
@@ -429,7 +512,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
429
512
|
registrar: string;
|
|
430
513
|
encryptionKeyId: string | null;
|
|
431
514
|
encryptedEppAuthorizationCode: string | null;
|
|
432
|
-
status: "
|
|
515
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
433
516
|
amountInUSDCents: number;
|
|
434
517
|
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
435
518
|
orderId: string;
|
|
@@ -443,6 +526,29 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
443
526
|
txHash: string;
|
|
444
527
|
recordedAt: string;
|
|
445
528
|
} | undefined;
|
|
529
|
+
postProcessOrderItem?: {
|
|
530
|
+
[x: string]: unknown;
|
|
531
|
+
actions: {
|
|
532
|
+
scope: "dns-records";
|
|
533
|
+
action: "set" | "add";
|
|
534
|
+
records: {
|
|
535
|
+
name: string;
|
|
536
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
537
|
+
rdata: string;
|
|
538
|
+
ttl?: number | undefined;
|
|
539
|
+
}[];
|
|
540
|
+
}[];
|
|
541
|
+
} | undefined;
|
|
542
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
543
|
+
failureDetails?: {
|
|
544
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
545
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
546
|
+
recordedAt: string;
|
|
547
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
548
|
+
actorId?: string | undefined;
|
|
549
|
+
timeoutMs?: number | undefined;
|
|
550
|
+
} | undefined;
|
|
551
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
446
552
|
} | undefined;
|
|
447
553
|
}[];
|
|
448
554
|
}, Error>;
|
package/dist/index.d.ts
CHANGED
|
@@ -225,61 +225,14 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
225
225
|
ensRecord: string | null;
|
|
226
226
|
};
|
|
227
227
|
}[], Error>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
encryptionKeyId: string | null;
|
|
237
|
-
encryptedEppAuthorizationCode: string | null;
|
|
238
|
-
createdAt: string;
|
|
239
|
-
updatedAt: string;
|
|
240
|
-
claims: {
|
|
241
|
-
groupOrCampaignKey: string;
|
|
242
|
-
claimsAvailable: number;
|
|
243
|
-
exactMatchClaims: {
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatedAt: string;
|
|
246
|
-
userId: string;
|
|
247
|
-
groupOrCampaignKey: string;
|
|
248
|
-
reason: string | null;
|
|
249
|
-
expirationDate: string | null;
|
|
250
|
-
orderItemId: string | null;
|
|
251
|
-
claimingStatus: "IDLE" | "CLAIMING" | "CLAIMED";
|
|
252
|
-
claimedAt: string | null;
|
|
253
|
-
metadata: any;
|
|
254
|
-
id: string;
|
|
255
|
-
exactDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
256
|
-
parentDomain?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
257
|
-
claimedDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
258
|
-
}[];
|
|
259
|
-
parentMatchClaims: {
|
|
260
|
-
createdAt: string;
|
|
261
|
-
updatedAt: string;
|
|
262
|
-
userId: string;
|
|
263
|
-
groupOrCampaignKey: string;
|
|
264
|
-
reason: string | null;
|
|
265
|
-
expirationDate: string | null;
|
|
266
|
-
orderItemId: string | null;
|
|
267
|
-
claimingStatus: "IDLE" | "CLAIMING" | "CLAIMED";
|
|
268
|
-
claimedAt: string | null;
|
|
269
|
-
metadata: any;
|
|
270
|
-
id: string;
|
|
271
|
-
exactDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
272
|
-
parentDomain?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
273
|
-
claimedDomainName?: (string & zod.$brand<"NamefiNormalizedDomain">) | null | undefined;
|
|
274
|
-
}[];
|
|
275
|
-
}[];
|
|
276
|
-
metadata?: {
|
|
277
|
-
[x: string]: unknown;
|
|
278
|
-
freeClaim?: boolean | undefined;
|
|
279
|
-
groupOrCampaignKey?: string | undefined;
|
|
280
|
-
claimId?: string | undefined;
|
|
281
|
-
} | null | undefined;
|
|
282
|
-
}[], Error>;
|
|
228
|
+
requestNfscFaucet: _orpc_client.Client<Record<never, never>, {
|
|
229
|
+
walletAddress?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
status: "started";
|
|
232
|
+
workflowId: string;
|
|
233
|
+
walletAddress: `0x${string}` & zod.$brand<"ChecksumWalletAddress">;
|
|
234
|
+
nextEligibleAt: string;
|
|
235
|
+
}, Error>;
|
|
283
236
|
getUserOrders: _orpc_client.Client<Record<never, never>, void, {
|
|
284
237
|
id: string;
|
|
285
238
|
orderId: string;
|
|
@@ -290,7 +243,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
290
243
|
registrar: string;
|
|
291
244
|
encryptionKeyId: string | null;
|
|
292
245
|
encryptedEppAuthorizationCode: string | null;
|
|
293
|
-
status: "
|
|
246
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
294
247
|
createdAt: string;
|
|
295
248
|
updatedAt: string;
|
|
296
249
|
metadata?: {
|
|
@@ -302,6 +255,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
302
255
|
txHash: string;
|
|
303
256
|
recordedAt: string;
|
|
304
257
|
} | undefined;
|
|
258
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
305
259
|
} | null | undefined;
|
|
306
260
|
}[], Error>;
|
|
307
261
|
};
|
|
@@ -310,13 +264,15 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
310
264
|
orderId: string;
|
|
311
265
|
}, {
|
|
312
266
|
order: {
|
|
267
|
+
startedAt: string | null;
|
|
268
|
+
finishedAt: string | null;
|
|
313
269
|
createdAt: string;
|
|
314
270
|
updatedAt: string;
|
|
315
271
|
nftWalletAddress: string | null;
|
|
316
272
|
nftChainId: number | null;
|
|
317
273
|
amountInUSDCents: number;
|
|
318
274
|
userId: string;
|
|
319
|
-
status: "
|
|
275
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED";
|
|
320
276
|
id: string;
|
|
321
277
|
metadata?: {
|
|
322
278
|
[x: string]: unknown;
|
|
@@ -326,12 +282,15 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
326
282
|
recordedAt: string;
|
|
327
283
|
};
|
|
328
284
|
} | undefined;
|
|
285
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
329
286
|
freeClaim?: boolean | undefined;
|
|
330
287
|
groupOrCampaignKey?: string | undefined;
|
|
331
288
|
claimId?: string | undefined;
|
|
332
289
|
} | null | undefined;
|
|
333
290
|
};
|
|
334
291
|
items: {
|
|
292
|
+
startedAt: string | null;
|
|
293
|
+
finishedAt: string | null;
|
|
335
294
|
createdAt: string;
|
|
336
295
|
updatedAt: string;
|
|
337
296
|
durationInYears: number;
|
|
@@ -339,7 +298,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
339
298
|
registrar: string;
|
|
340
299
|
encryptionKeyId: string | null;
|
|
341
300
|
encryptedEppAuthorizationCode: string | null;
|
|
342
|
-
status: "
|
|
301
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
343
302
|
amountInUSDCents: number;
|
|
344
303
|
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
345
304
|
orderId: string;
|
|
@@ -353,9 +312,34 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
353
312
|
txHash: string;
|
|
354
313
|
recordedAt: string;
|
|
355
314
|
} | undefined;
|
|
315
|
+
postProcessOrderItem?: {
|
|
316
|
+
[x: string]: unknown;
|
|
317
|
+
actions: {
|
|
318
|
+
scope: "dns-records";
|
|
319
|
+
action: "set" | "add";
|
|
320
|
+
records: {
|
|
321
|
+
name: string;
|
|
322
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
323
|
+
rdata: string;
|
|
324
|
+
ttl?: number | undefined;
|
|
325
|
+
}[];
|
|
326
|
+
}[];
|
|
327
|
+
} | undefined;
|
|
328
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
329
|
+
failureDetails?: {
|
|
330
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
331
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
332
|
+
recordedAt: string;
|
|
333
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
334
|
+
actorId?: string | undefined;
|
|
335
|
+
timeoutMs?: number | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
356
338
|
} | null | undefined;
|
|
357
339
|
}[];
|
|
358
340
|
payments: {
|
|
341
|
+
startedAt: string | null;
|
|
342
|
+
finishedAt: string | null;
|
|
359
343
|
createdAt: string;
|
|
360
344
|
updatedAt: string;
|
|
361
345
|
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "REFUND_REQUESTED" | "REQUIRES_CAPTURE";
|
|
@@ -369,6 +353,9 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
369
353
|
stripePaymentDetails: {
|
|
370
354
|
paymentMethodId?: string | undefined;
|
|
371
355
|
} | null;
|
|
356
|
+
metadata: {
|
|
357
|
+
[x: string]: never;
|
|
358
|
+
} | null;
|
|
372
359
|
amountInUSDCents: number;
|
|
373
360
|
id: string;
|
|
374
361
|
}[];
|
|
@@ -385,6 +372,8 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
385
372
|
};
|
|
386
373
|
}, Error>;
|
|
387
374
|
getOrderItems: _orpc_client.Client<Record<never, never>, void, {
|
|
375
|
+
startedAt: string | null;
|
|
376
|
+
finishedAt: string | null;
|
|
388
377
|
createdAt: string;
|
|
389
378
|
updatedAt: string;
|
|
390
379
|
durationInYears: number;
|
|
@@ -392,7 +381,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
392
381
|
registrar: string;
|
|
393
382
|
encryptionKeyId: string | null;
|
|
394
383
|
encryptedEppAuthorizationCode: string | null;
|
|
395
|
-
status: "
|
|
384
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
396
385
|
amountInUSDCents: number;
|
|
397
386
|
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
398
387
|
orderId: string;
|
|
@@ -406,6 +395,29 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
406
395
|
txHash: string;
|
|
407
396
|
recordedAt: string;
|
|
408
397
|
} | undefined;
|
|
398
|
+
postProcessOrderItem?: {
|
|
399
|
+
[x: string]: unknown;
|
|
400
|
+
actions: {
|
|
401
|
+
scope: "dns-records";
|
|
402
|
+
action: "set" | "add";
|
|
403
|
+
records: {
|
|
404
|
+
name: string;
|
|
405
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
406
|
+
rdata: string;
|
|
407
|
+
ttl?: number | undefined;
|
|
408
|
+
}[];
|
|
409
|
+
}[];
|
|
410
|
+
} | undefined;
|
|
411
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
412
|
+
failureDetails?: {
|
|
413
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
414
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
415
|
+
recordedAt: string;
|
|
416
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
417
|
+
actorId?: string | undefined;
|
|
418
|
+
timeoutMs?: number | undefined;
|
|
419
|
+
} | undefined;
|
|
420
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
409
421
|
} | null | undefined;
|
|
410
422
|
}[], Error>;
|
|
411
423
|
registerDomain: _orpc_client.Client<Record<never, never>, {
|
|
@@ -422,6 +434,77 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
422
434
|
nftWalletAddress: string | null;
|
|
423
435
|
nftChainId: number | null;
|
|
424
436
|
items: {
|
|
437
|
+
startedAt: string | null;
|
|
438
|
+
finishedAt: string | null;
|
|
439
|
+
createdAt: string;
|
|
440
|
+
updatedAt: string;
|
|
441
|
+
durationInYears: number;
|
|
442
|
+
type: "REGISTER" | "IMPORT" | "RENEW";
|
|
443
|
+
registrar: string;
|
|
444
|
+
encryptionKeyId: string | null;
|
|
445
|
+
encryptedEppAuthorizationCode: string | null;
|
|
446
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
447
|
+
amountInUSDCents: number;
|
|
448
|
+
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
449
|
+
orderId: string;
|
|
450
|
+
id: string;
|
|
451
|
+
metadata?: {
|
|
452
|
+
[x: string]: unknown;
|
|
453
|
+
freeClaim?: boolean | undefined;
|
|
454
|
+
groupOrCampaignKey?: string | undefined;
|
|
455
|
+
claimId?: string | undefined;
|
|
456
|
+
mintTransaction?: {
|
|
457
|
+
txHash: string;
|
|
458
|
+
recordedAt: string;
|
|
459
|
+
} | undefined;
|
|
460
|
+
postProcessOrderItem?: {
|
|
461
|
+
[x: string]: unknown;
|
|
462
|
+
actions: {
|
|
463
|
+
scope: "dns-records";
|
|
464
|
+
action: "set" | "add";
|
|
465
|
+
records: {
|
|
466
|
+
name: string;
|
|
467
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
468
|
+
rdata: string;
|
|
469
|
+
ttl?: number | undefined;
|
|
470
|
+
}[];
|
|
471
|
+
}[];
|
|
472
|
+
} | undefined;
|
|
473
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
474
|
+
failureDetails?: {
|
|
475
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
476
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
477
|
+
recordedAt: string;
|
|
478
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
479
|
+
actorId?: string | undefined;
|
|
480
|
+
timeoutMs?: number | undefined;
|
|
481
|
+
} | undefined;
|
|
482
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
}[];
|
|
485
|
+
}, Error>;
|
|
486
|
+
registerWithRecords: _orpc_client.Client<Record<never, never>, {
|
|
487
|
+
normalizedDomainName: string;
|
|
488
|
+
durationInYears?: number | undefined;
|
|
489
|
+
records?: {
|
|
490
|
+
name: string;
|
|
491
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
492
|
+
rdata: string;
|
|
493
|
+
ttl?: number | undefined;
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
nftReceivinggWallet?: {
|
|
496
|
+
walletAddress: string;
|
|
497
|
+
chainId: number;
|
|
498
|
+
} | undefined;
|
|
499
|
+
}, {
|
|
500
|
+
id: string;
|
|
501
|
+
userId: string;
|
|
502
|
+
amountInUSDCents: number;
|
|
503
|
+
nftWalletAddress: string | null;
|
|
504
|
+
nftChainId: number | null;
|
|
505
|
+
items: {
|
|
506
|
+
startedAt: string | null;
|
|
507
|
+
finishedAt: string | null;
|
|
425
508
|
createdAt: string;
|
|
426
509
|
updatedAt: string;
|
|
427
510
|
durationInYears: number;
|
|
@@ -429,7 +512,7 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
429
512
|
registrar: string;
|
|
430
513
|
encryptionKeyId: string | null;
|
|
431
514
|
encryptedEppAuthorizationCode: string | null;
|
|
432
|
-
status: "
|
|
515
|
+
status: "CREATED" | "PROCESSING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "PARTIALLY_COMPLETED" | null;
|
|
433
516
|
amountInUSDCents: number;
|
|
434
517
|
normalizedDomainName: string & zod.$brand<"NamefiNormalizedDomain">;
|
|
435
518
|
orderId: string;
|
|
@@ -443,6 +526,29 @@ declare function createNamefiClient({ authentication, logger, baseUrl, }: Create
|
|
|
443
526
|
txHash: string;
|
|
444
527
|
recordedAt: string;
|
|
445
528
|
} | undefined;
|
|
529
|
+
postProcessOrderItem?: {
|
|
530
|
+
[x: string]: unknown;
|
|
531
|
+
actions: {
|
|
532
|
+
scope: "dns-records";
|
|
533
|
+
action: "set" | "add";
|
|
534
|
+
records: {
|
|
535
|
+
name: string;
|
|
536
|
+
type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | "DS" | "TLSA" | "SSHFP" | "HTTPS" | "SVCB" | "NAPTR" | "SPF";
|
|
537
|
+
rdata: string;
|
|
538
|
+
ttl?: number | undefined;
|
|
539
|
+
}[];
|
|
540
|
+
}[];
|
|
541
|
+
} | undefined;
|
|
542
|
+
requiredAction?: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED" | undefined;
|
|
543
|
+
failureDetails?: {
|
|
544
|
+
requiredAction: "EPP_UNLOCK_REQUIRED" | "EPP_AUTH_CODE_UPDATE_REQUIRED" | "UNDETERMINED";
|
|
545
|
+
resolution: "TIMEOUT" | "USER_SIGNAL";
|
|
546
|
+
recordedAt: string;
|
|
547
|
+
actor?: "USER" | "ADMIN" | undefined;
|
|
548
|
+
actorId?: string | undefined;
|
|
549
|
+
timeoutMs?: number | undefined;
|
|
550
|
+
} | undefined;
|
|
551
|
+
backfilled_started_finished_at?: boolean | undefined;
|
|
446
552
|
} | undefined;
|
|
447
553
|
}[];
|
|
448
554
|
}, Error>;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {onError,onFinish,onStart,onSuccess,createORPCClient}from'@orpc/client';import {OpenAPILink}from'@orpc/openapi-client/fetch';var m=Object.defineProperty;var r=(o,t)=>m(o,"name",{value:t,configurable:true});var i={dnsRecords:{getRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}},route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}}},createDnsRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}},route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}}},updateRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}},route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}}},deleteRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}},route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}}},updateRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}},route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}}},createRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}},route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}}},deleteRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}},route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}}},parkDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}},route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}}},isDomainParked:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}},route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}}}},user:{getDomains:{"~orpc":{errorMap:{},meta:{route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}},route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}}},getUserCart:{"~orpc":{errorMap:{},meta:{route:{path:"/user/cart",method:"GET",tags:["user","cart"],operationId:"getUserCart",summary:"Get user cart",description:"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item."}},route:{path:"/user/cart",method:"GET",tags:["user","cart"],operationId:"getUserCart",summary:"Get user cart",description:"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item."}}},getUserOrders:{"~orpc":{errorMap:{},meta:{route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}},route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}}}},orders:{getOrder:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}},route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}}},getOrderItems:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}},route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}}},registerDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}},route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}}},getOrderPaymentMethodsDetails:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}},route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}}}},balance:{getBalance:{"~orpc":{errorMap:{},meta:{route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}},route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}}}},search:{checkAvailability:{"~orpc":{errorMap:{},meta:{route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}},route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}}},getSuggestions:{"~orpc":{errorMap:{},meta:{route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}},route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}}}}};function k({authentication:o,logger:t,baseUrl:n="https://backend.astra.namefi.io"}){let{apiKey:d}=o,a=t?typeof t=="object"?t:{info:r((...e)=>console.log(...e),"info"),error:r((...e)=>console.error(...e),"error")}:void 0,s=new URL(n);s.pathname="/"+[...s.pathname.split("/").filter(Boolean),"v-next"].join("/");let c=new OpenAPILink(i,{url:s.toString(),headers:r(()=>({"x-api-key":d}),"headers"),fetch:r((e,p)=>globalThis.fetch(e,{...p,credentials:"include"}),"fetch"),interceptors:[onError(e=>{a?.error(e);}),onFinish(e=>{a?.info("Request finished");}),onStart(e=>{a?.info("Request started");}),onSuccess(e=>{a?.info("Request succeeded");})]});return createORPCClient(c)}r(k,"createNamefiClient");
|
|
1
|
+
import {onError,onFinish,onStart,onSuccess,createORPCClient}from'@orpc/client';import {OpenAPILink}from'@orpc/openapi-client/fetch';var m=Object.defineProperty;var r=(o,t)=>m(o,"name",{value:t,configurable:true});var i={dnsRecords:{getRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}},route:{path:"/dns/records",method:"GET",tags:["dns"],operationId:"getDnsRecords",summary:"Get DNS records",description:"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types."}}},createDnsRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}},route:{path:"/dns/records",method:"POST",tags:["dns"],operationId:"createDnsRecord",summary:"Create DNS record",description:"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation."}}},updateRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}},route:{path:"/dns/records/{id}",method:"PUT",tags:["dns"],operationId:"updateDnsRecord",summary:"Update DNS record",description:"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules."}}},deleteRecord:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}},route:{path:"/dns/records/{id}",method:"DELETE",tags:["dns"],operationId:"deleteDnsRecord",summary:"Delete DNS record",description:"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity."}}},updateRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}},route:{path:"/dns/records/batch",method:"PUT",tags:["dns"],operationId:"batchUpdateDnsRecords",summary:"Batch update DNS records",description:"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together."}}},createRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}},route:{path:"/dns/records/batch",method:"POST",tags:["dns"],operationId:"batchCreateDnsRecords",summary:"Batch create DNS records",description:"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules."}}},deleteRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}},route:{path:"/dns/records/batch",method:"DELETE",tags:["dns"],operationId:"batchDeleteDnsRecords",summary:"Batch delete DNS records",description:"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion."}}},parkDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}},route:{path:"/dns/park",method:"POST",tags:["dns"],operationId:"parkDomain",summary:"Park domain",description:"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records."}}},isDomainParked:{"~orpc":{errorMap:{},meta:{route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}},route:{path:"/dns/parked",method:"GET",tags:["dns"],operationId:"isDomainParked",summary:"Check if domain is parked",description:"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise."}}}},user:{getDomains:{"~orpc":{errorMap:{},meta:{route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}},route:{path:"/user/domains",method:"GET",tags:["user"],operationId:"getUserDomains",summary:"Get user domains",description:"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates."}}},requestNfscFaucet:{"~orpc":{errorMap:{},meta:{route:{path:"/user/faucet",method:"POST",tags:["user","balance"],operationId:"requestNfscFaucet",summary:"Request NFSC faucet",description:"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address."}},route:{path:"/user/faucet",method:"POST",tags:["user","balance"],operationId:"requestNfscFaucet",summary:"Request NFSC faucet",description:"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address."}}},getUserOrders:{"~orpc":{errorMap:{},meta:{route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}},route:{path:"/user/orders",method:"GET",tags:["user","orders"],operationId:"getUserOrders",summary:"Get user orders",description:"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order."}}}},orders:{getOrder:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}},route:{path:"/orders/{orderId}",method:"GET",tags:["orders"],operationId:"getOrder",summary:"Get order details",description:"Retrieve detailed information about an order including items, payments, and user details. User must own the order."}}},getOrderItems:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}},route:{path:"/orders/items",method:"GET",tags:["orders"],operationId:"getOrderItems",summary:"Get user order items",description:"Retrieve all order items for the current user, sorted by creation date in descending order."}}},registerDomain:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}},route:{path:"/orders/register-domain",method:"POST",tags:["orders"],operationId:"registerDomain",summary:"Instant Register domain",description:"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow."}}},registerWithRecords:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/register-domain/records",method:"POST",tags:["orders"],operationId:"registerWithRecords",summary:"Instant register domain with records",description:"Purchase a single domain instantly and apply DNS records after processing."}},route:{path:"/orders/register-domain/records",method:"POST",tags:["orders"],operationId:"registerWithRecords",summary:"Instant register domain with records",description:"Purchase a single domain instantly and apply DNS records after processing."}}},getOrderPaymentMethodsDetails:{"~orpc":{errorMap:{},meta:{route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}},route:{path:"/orders/{orderId}/payment-methods",method:"GET",tags:["orders"],operationId:"getOrderPaymentMethodsDetails",summary:"Get order payment methods",description:"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments."}}}},balance:{getBalance:{"~orpc":{errorMap:{},meta:{route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}},route:{path:"/balance",method:"GET",tags:["balance"],operationId:"getBalance",summary:"Get NFSC balance",description:"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts."}}}},search:{checkAvailability:{"~orpc":{errorMap:{},meta:{route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}},route:{path:"/search/availability",method:"GET",tags:["search"],operationId:"checkAvailability",summary:"Check domain availability",description:"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints."}}},getSuggestions:{"~orpc":{errorMap:{},meta:{route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}},route:{path:"/search/suggestions",method:"GET",tags:["search"],operationId:"getSuggestions",summary:"Get domain suggestions",description:"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions."}}}}};function k({authentication:o,logger:t,baseUrl:n="https://backend.astra.namefi.io"}){let{apiKey:d}=o,a=t?typeof t=="object"?t:{info:r((...e)=>console.log(...e),"info"),error:r((...e)=>console.error(...e),"error")}:void 0,s=new URL(n);s.pathname="/"+[...s.pathname.split("/").filter(Boolean),"v-next"].join("/");let c=new OpenAPILink(i,{url:s.toString(),headers:r(()=>({"x-api-key":d}),"headers"),fetch:r((e,p)=>globalThis.fetch(e,{...p,credentials:"include"}),"fetch"),interceptors:[onError(e=>{a?.error(e);}),onFinish(e=>{a?.info("Request finished");}),onStart(e=>{a?.info("Request started");}),onSuccess(e=>{a?.info("Request succeeded");})]});return createORPCClient(c)}r(k,"createNamefiClient");
|
|
2
2
|
export{k as createNamefiClient};//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../contract.json"],"names":["contract_default","createNamefiClient","authentication","logger","baseUrl","apiKey","_logger","__name","args","url","link","OpenAPILink","request","init","onError","error","onFinish","response","onStart","onSuccess","createORPCClient"],"mappings":"oIAEA,IAAA,CAAA,CAAA,MAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,YAAA,CAAA,IAAA,CAAA,CAAA,CCFA,IAAAA,CAAA,CAAA,CACE,UAAc,CAAA,CACZ,UAAc,CAAA,CACZ,OAAS,CAAA,CACP,QAAY,CAAA,EACZ,CAAA,IAAA,CAAQ,CACN,KAAS,CAAA,CACP,IAAQ,CAAA,cAAA,CACR,MAAU,CAAA,KAAA,CACV,IAAQ,CAAA,CAAC,KAAK,CAAA,CACd,WAAe,CAAA,eAAA,CACf,OAAW,CAAA,iBAAA,CACX,WAAe,CAAA,kJACjB,CACF,CAAA,CACA,KAAS,CAAA,CACP,IAAQ,CAAA,cAAA,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":["import type { JsonifiedClient } from '@orpc/openapi-client';\nimport type { ContractRouterClient } from '@orpc/contract';\nimport {\n createORPCClient,\n onError,\n onFinish,\n onStart,\n onSuccess,\n} from '@orpc/client';\nimport { OpenAPILink } from '@orpc/openapi-client/fetch';\nimport contract from '../contract.json';\nimport type { orpcRouter as router } from '@namefi-astra/backend/openapi';\n\ntype CreateNamefiClientOptions = {\n authentication: {\n apiKey: string;\n type: 'API_KEY';\n };\n logger:\n | {\n info: (...args: any[]) => void;\n error: (...args: any[]) => void;\n }\n | boolean\n | undefined;\n baseUrl?: string;\n};\n\nexport function createNamefiClient({\n authentication,\n logger,\n baseUrl = 'https://backend.astra.namefi.io',\n}: CreateNamefiClientOptions) {\n const { apiKey } = authentication;\n const _logger = logger\n ? typeof logger === 'object'\n ? logger\n : {\n info: (...args: any[]) => console.log(...args),\n error: (...args: any[]) => console.error(...args),\n }\n : undefined;\n\n const url = new URL(baseUrl);\n url.pathname =\n '/' + [...url.pathname.split('/').filter(Boolean), 'v-next'].join('/');\n\n const link = new OpenAPILink(contract as unknown as typeof router, {\n url: url.toString(),\n headers: () => ({\n 'x-api-key': apiKey,\n }),\n fetch: (request, init) => {\n return globalThis.fetch(request, {\n ...init,\n credentials: 'include', // Include cookies for cross-origin requests\n });\n },\n interceptors: [\n onError((error) => {\n _logger?.error(error);\n }),\n onFinish((response) => {\n _logger?.info('Request finished');\n }),\n onStart((request) => {\n _logger?.info('Request started');\n }),\n onSuccess((response) => {\n _logger?.info('Request succeeded');\n }),\n ],\n });\n\n const client: JsonifiedClient<ContractRouterClient<typeof router>> =\n createORPCClient(link);\n\n return client;\n}\n","{\n \"dnsRecords\": {\n \"getRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n }\n },\n \"createDnsRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n }\n },\n \"updateRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n }\n },\n \"deleteRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n }\n },\n \"updateRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n }\n },\n \"createRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n }\n },\n \"deleteRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n }\n },\n \"parkDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n }\n },\n \"isDomainParked\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n }\n }\n },\n \"user\": {\n \"getDomains\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n },\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n }\n },\n \"getUserCart\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/cart\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"cart\"],\n \"operationId\": \"getUserCart\",\n \"summary\": \"Get user cart\",\n \"description\": \"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item.\"\n }\n },\n \"route\": {\n \"path\": \"/user/cart\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"cart\"],\n \"operationId\": \"getUserCart\",\n \"summary\": \"Get user cart\",\n \"description\": \"Retrieve all items in the current user's shopping cart. Includes free claim eligibility information for each item.\"\n }\n }\n },\n \"getUserOrders\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n }\n }\n },\n \"orders\": {\n \"getOrder\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n }\n },\n \"getOrderItems\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n }\n },\n \"registerDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n }\n },\n \"getOrderPaymentMethodsDetails\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n }\n }\n },\n \"balance\": {\n \"getBalance\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n },\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n }\n }\n },\n \"search\": {\n \"checkAvailability\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n },\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n }\n },\n \"getSuggestions\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n },\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n }\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../contract.json"],"names":["contract_default","createNamefiClient","authentication","logger","baseUrl","apiKey","_logger","__name","args","url","link","OpenAPILink","request","init","onError","error","onFinish","response","onStart","onSuccess","createORPCClient"],"mappings":"oIAEA,IAAA,CAAA,CAAA,MAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,YAAA,CAAA,IAAA,CAAA,CAAA,CCFA,IAAAA,CAAAA,CAAA,CACE,UAAA,CAAc,CACZ,UAAA,CAAc,CACZ,OAAA,CAAS,CACP,QAAA,CAAY,EAAC,CACb,IAAQ,CAAA,CACN,MAAS,CACP,IAAA,CAAQ,cACR,CAAA,MAAA,CAAU,KACV,CAAA,IAAA,CAAQ,CAAC,KAAK,CACd,CAAA,WAAA,CAAe,eACf,CAAA,OAAA,CAAW,iBACX,CAAA,WAAA,CAAe,kJACjB,CACF,EACA,KAAS,CAAA,CACP,IAAQ,CAAA,cAAA,CACR,MAAU,CAAA,KAAA,CACV,IAAQ,CAA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AA,EAAS,IAAK,CAAA,iBAAiB,EACjC,CAAC,EACDa,SAAWF,CAAAA,CAAAA,EAAa,CACtBX,CAAAA,EAAS,IAAK,CAAA,mBAAmB,EACnC,CAAC,CACH,CACF,CAAC,CAKD,CAAA,OAFEc,gBAAiBV,CAAAA,CAAI,CAGzB,CAlDgBH,EAAAN,CAAA,CAAA,oBAAA,CAAA","file":"index.js","sourcesContent":["import type { JsonifiedClient } from '@orpc/openapi-client';\nimport type { ContractRouterClient } from '@orpc/contract';\nimport {\n createORPCClient,\n onError,\n onFinish,\n onStart,\n onSuccess,\n} from '@orpc/client';\nimport { OpenAPILink } from '@orpc/openapi-client/fetch';\nimport contract from '../contract.json';\nimport type { orpcRouter as router } from '@namefi-astra/backend/openapi';\n\ntype CreateNamefiClientOptions = {\n authentication: {\n apiKey: string;\n type: 'API_KEY';\n };\n logger:\n | {\n info: (...args: any[]) => void;\n error: (...args: any[]) => void;\n }\n | boolean\n | undefined;\n baseUrl?: string;\n};\n\nexport function createNamefiClient({\n authentication,\n logger,\n baseUrl = 'https://backend.astra.namefi.io',\n}: CreateNamefiClientOptions) {\n const { apiKey } = authentication;\n const _logger = logger\n ? typeof logger === 'object'\n ? logger\n : {\n info: (...args: any[]) => console.log(...args),\n error: (...args: any[]) => console.error(...args),\n }\n : undefined;\n\n const url = new URL(baseUrl);\n url.pathname =\n '/' + [...url.pathname.split('/').filter(Boolean), 'v-next'].join('/');\n\n const link = new OpenAPILink(contract as unknown as typeof router, {\n url: url.toString(),\n headers: () => ({\n 'x-api-key': apiKey,\n }),\n fetch: (request, init) => {\n return globalThis.fetch(request, {\n ...init,\n credentials: 'include', // Include cookies for cross-origin requests\n });\n },\n interceptors: [\n onError((error) => {\n _logger?.error(error);\n }),\n onFinish((response) => {\n _logger?.info('Request finished');\n }),\n onStart((request) => {\n _logger?.info('Request started');\n }),\n onSuccess((response) => {\n _logger?.info('Request succeeded');\n }),\n ],\n });\n\n const client: JsonifiedClient<ContractRouterClient<typeof router>> =\n createORPCClient(link);\n\n return client;\n}\n","{\n \"dnsRecords\": {\n \"getRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"getDnsRecords\",\n \"summary\": \"Get DNS records\",\n \"description\": \"Retrieve all DNS records for a specified domain zone. Returns an array of DNS records including A, AAAA, CNAME, MX, TXT, and other record types.\"\n }\n }\n },\n \"createDnsRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"createDnsRecord\",\n \"summary\": \"Create DNS record\",\n \"description\": \"Create a new DNS record for a domain. Requires domain ownership. The record will be validated against DNS zone rules before creation.\"\n }\n }\n },\n \"updateRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"updateDnsRecord\",\n \"summary\": \"Update DNS record\",\n \"description\": \"Update an existing DNS record by its ID. Requires domain ownership. The updated record will be validated against DNS zone rules.\"\n }\n }\n },\n \"deleteRecord\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/{id}\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"deleteDnsRecord\",\n \"summary\": \"Delete DNS record\",\n \"description\": \"Delete a DNS record by its ID. Requires domain ownership. The deletion will be validated to ensure zone integrity.\"\n }\n }\n },\n \"updateRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"PUT\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchUpdateDnsRecords\",\n \"summary\": \"Batch update DNS records\",\n \"description\": \"Update multiple DNS records in a single transaction. Requires domain ownership. All records must belong to the same zone and will be validated together.\"\n }\n }\n },\n \"createRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchCreateDnsRecords\",\n \"summary\": \"Batch create DNS records\",\n \"description\": \"Create multiple DNS records in a single transaction. Requires domain ownership. All records will be validated together against DNS zone rules.\"\n }\n }\n },\n \"deleteRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/records/batch\",\n \"method\": \"DELETE\",\n \"tags\": [\"dns\"],\n \"operationId\": \"batchDeleteDnsRecords\",\n \"summary\": \"Batch delete DNS records\",\n \"description\": \"Delete multiple DNS records by their IDs in a single transaction. Requires domain ownership. The zone will be validated after deletion.\"\n }\n }\n },\n \"parkDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/park\",\n \"method\": \"POST\",\n \"tags\": [\"dns\"],\n \"operationId\": \"parkDomain\",\n \"summary\": \"Park domain\",\n \"description\": \"Park a domain by setting up default parking DNS records (A and AAAA records pointing to the parking server). Optionally override existing conflicting records.\"\n }\n }\n },\n \"isDomainParked\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n },\n \"route\": {\n \"path\": \"/dns/parked\",\n \"method\": \"GET\",\n \"tags\": [\"dns\"],\n \"operationId\": \"isDomainParked\",\n \"summary\": \"Check if domain is parked\",\n \"description\": \"Check whether a domain has the standard parking DNS records configured. Returns true if the domain is parked, false otherwise.\"\n }\n }\n }\n },\n \"user\": {\n \"getDomains\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n },\n \"route\": {\n \"path\": \"/user/domains\",\n \"method\": \"GET\",\n \"tags\": [\"user\"],\n \"operationId\": \"getUserDomains\",\n \"summary\": \"Get user domains\",\n \"description\": \"Retrieve all domains owned by the current user. Returns domain details including DNS status, nameservers, and expiration dates.\"\n }\n }\n },\n \"requestNfscFaucet\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/faucet\",\n \"method\": \"POST\",\n \"tags\": [\"user\", \"balance\"],\n \"operationId\": \"requestNfscFaucet\",\n \"summary\": \"Request NFSC faucet\",\n \"description\": \"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address.\"\n }\n },\n \"route\": {\n \"path\": \"/user/faucet\",\n \"method\": \"POST\",\n \"tags\": [\"user\", \"balance\"],\n \"operationId\": \"requestNfscFaucet\",\n \"summary\": \"Request NFSC faucet\",\n \"description\": \"Request NFSC test tokens on Sepolia. Rate limited by user and wallet address.\"\n }\n }\n },\n \"getUserOrders\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/user/orders\",\n \"method\": \"GET\",\n \"tags\": [\"user\", \"orders\"],\n \"operationId\": \"getUserOrders\",\n \"summary\": \"Get user orders\",\n \"description\": \"Retrieve all order items for the current user. Returns order items sorted by creation date in descending order.\"\n }\n }\n }\n },\n \"orders\": {\n \"getOrder\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrder\",\n \"summary\": \"Get order details\",\n \"description\": \"Retrieve detailed information about an order including items, payments, and user details. User must own the order.\"\n }\n }\n },\n \"getOrderItems\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/items\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderItems\",\n \"summary\": \"Get user order items\",\n \"description\": \"Retrieve all order items for the current user, sorted by creation date in descending order.\"\n }\n }\n },\n \"registerDomain\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/register-domain\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerDomain\",\n \"summary\": \"Instant Register domain\",\n \"description\": \"Purchase a single domain instantly without adding to cart. Validates domain availability, creates payments and order, then starts the order processing workflow.\"\n }\n }\n },\n \"registerWithRecords\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/register-domain/records\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerWithRecords\",\n \"summary\": \"Instant register domain with records\",\n \"description\": \"Purchase a single domain instantly and apply DNS records after processing.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/register-domain/records\",\n \"method\": \"POST\",\n \"tags\": [\"orders\"],\n \"operationId\": \"registerWithRecords\",\n \"summary\": \"Instant register domain with records\",\n \"description\": \"Purchase a single domain instantly and apply DNS records after processing.\"\n }\n }\n },\n \"getOrderPaymentMethodsDetails\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n },\n \"route\": {\n \"path\": \"/orders/{orderId}/payment-methods\",\n \"method\": \"GET\",\n \"tags\": [\"orders\"],\n \"operationId\": \"getOrderPaymentMethodsDetails\",\n \"summary\": \"Get order payment methods\",\n \"description\": \"Retrieve payment method details for an order, including card info for Stripe payments and wallet addresses for on-chain payments.\"\n }\n }\n }\n },\n \"balance\": {\n \"getBalance\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n },\n \"route\": {\n \"path\": \"/balance\",\n \"method\": \"GET\",\n \"tags\": [\"balance\"],\n \"operationId\": \"getBalance\",\n \"summary\": \"Get NFSC balance\",\n \"description\": \"Retrieve NFSC (Namefi Stable Coin) balance across all supported blockchain chains for the authenticated user's linked wallet addresses. Returns both raw contract values and human-readable USD amounts.\"\n }\n }\n }\n },\n \"search\": {\n \"checkAvailability\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n },\n \"route\": {\n \"path\": \"/search/availability\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"checkAvailability\",\n \"summary\": \"Check domain availability\",\n \"description\": \"Check if a domain is available for registration. Returns availability status, pricing details, current owner (if any), and registration constraints.\"\n }\n }\n },\n \"getSuggestions\": {\n \"~orpc\": {\n \"errorMap\": {},\n \"meta\": {\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n },\n \"route\": {\n \"path\": \"/search/suggestions\",\n \"method\": \"GET\",\n \"tags\": [\"search\"],\n \"operationId\": \"getSuggestions\",\n \"summary\": \"Get domain suggestions\",\n \"description\": \"Generate domain suggestions based on a search query. Supports pagination and optional parent domain filtering for third-level domain suggestions.\"\n }\n }\n }\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
"author": "Namefi <dev-team@namefi.io>",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "API client for Namefi",
|
|
6
|
-
"version": "0.0.0-pre.
|
|
6
|
+
"version": "0.0.0-pre.5",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
8
|
+
"files": ["dist"],
|
|
11
9
|
"dependencies": {
|
|
12
10
|
"@orpc/client": "^1.13.2",
|
|
13
11
|
"@orpc/contract": "^1.13.2",
|