@namefi/api-client 0.0.0-pre.2 → 0.0.0-pre.3

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/dist/index.cjs ADDED
@@ -0,0 +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=T;//# sourceMappingURL=index.cjs.map
3
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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":"4FAEA,IAAA,CAAA,CAAA,MAAA,CAAA,cAAA,CAAA,IAAA,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P,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"]}