{"openapi":"3.0.0","paths":{"/health":{"get":{"description":"The indexer cursor per chain, or 503 when the database is unreachable.","operationId":"HealthController_health","parameters":[],"responses":{"200":{"description":""}},"summary":"Service health","tags":["Health"]}},"/api/v1/activations":{"get":{"description":"Every activation generation, newest first, with features. Whitelist addresses and reservation entries are not inlined; fetch one activation for them.","operationId":"ActivationsController_list","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":200,"default":50,"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"minimum":0,"maximum":100000,"default":0,"type":"number"}}],"responses":{"200":{"description":"Activations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivationDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List activations","tags":["Activations"]}},"/api/v1/activations/label/{label}":{"get":{"description":"Every generation (version) of a parent name, newest version first. The first entry is the current one and the only one with whitelist addresses and reservation entries inlined.","operationId":"ActivationsController_byLabel","parameters":[{"name":"label","required":true,"in":"path","description":"2LD label, with or without .eth","schema":{"type":"string"}}],"responses":{"200":{"description":"Activations, empty when the name was never activated","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivationDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Activation history of a name","tags":["Activations"]}},"/api/v1/activations/owner/{owner}":{"get":{"description":"Activations made by an address, newest first, up to 200. The owner is the registry admin recorded at activation time. Whitelist addresses and reservation entries are not inlined.","operationId":"ActivationsController_byOwner","parameters":[{"name":"owner","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Activations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivationDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Activations by owner","tags":["Activations"]}},"/api/v1/activations/{id}":{"get":{"description":"One activation with its list inputs.","operationId":"ActivationsController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The activation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Activation by id","tags":["Activations"]}},"/api/v1/subnames/label/{label}":{"get":{"description":"Subnames minted through the issuer under a 2LD, newest first.","operationId":"SubnamesController_byLabel","parameters":[{"name":"label","required":true,"in":"path","description":"2LD label, with or without .eth","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":500,"default":100,"type":"number"}}],"responses":{"200":{"description":"Subnames","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubnameDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Subnames under a name","tags":["Subnames"]}},"/api/v1/subnames/owner/{owner}":{"get":{"description":"Subnames minted to an address, newest first, up to 200. The owner is recorded at mint.","operationId":"SubnamesController_byOwner","parameters":[{"name":"owner","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Subnames","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubnameDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Subnames by owner","tags":["Subnames"]}},"/api/v1/whitelist":{"post":{"description":"Builds the Merkle tree over the addresses (checksummed, deduped) and stores the inputs under its root. The first upload for a root wins; the response carries the stored mode.","operationId":"WhitelistController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhitelistBody"}}}},"responses":{"200":{"description":"The root to configure on WhitelistFeature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhitelistCreated"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create a whitelist root","tags":["Whitelist"]}},"/api/v1/whitelist/{root}/proof":{"get":{"description":"`whitelisted` is false when the address is not on the list; `claim` is the mint extraData slice.","operationId":"WhitelistController_proof","parameters":[{"name":"root","required":true,"in":"path","schema":{"type":"string"}},{"name":"address","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Proof and claim","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhitelistProof"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Membership proof for a minter","tags":["Whitelist"]}},"/api/v1/whitelist/{root}":{"get":{"description":"The mode and addresses behind a root.","operationId":"WhitelistController_inputs","parameters":[{"name":"root","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Mode and addresses behind the root","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhitelistInputs"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Stored whitelist inputs","tags":["Whitelist"]}},"/api/v1/reservation":{"post":{"description":"Builds the sorted-range Merkle tree over the reserved labels and stores the inputs under its root, sorted with prices normalized. Duplicate labels are rejected.","operationId":"ReservationController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationBody"}}}},"responses":{"200":{"description":"The root to configure on ReservationFeature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationCreated"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create a reservation root","tags":["Reservation"]}},"/api/v1/reservation/{root}/proof":{"get":{"description":"Served for any label: a gap proof for unreserved ones, since a reservation feature denies mints without a proof.","operationId":"ReservationController_proof","parameters":[{"name":"root","required":true,"in":"path","schema":{"type":"string"}},{"name":"label","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Proof and claim","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationProof"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Reservation proof for a label","tags":["Reservation"]}},"/api/v1/reservation/{root}":{"get":{"description":"The entries behind a root.","operationId":"ReservationController_inputs","parameters":[{"name":"root","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Entries behind the root","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationInputs"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Stored reservation inputs","tags":["Reservation"]}},"/api/v1/mint/quote":{"get":{"description":"For each parent: the label's subregistry status, the manager's quoteMint with the minter's whitelist and reservation claims attached, and, when mintable, the amount, balance and allowance for every supported token. Send `extraData` unchanged in the register request.","operationId":"MintController_quote","parameters":[{"name":"parents","required":true,"in":"query","description":"Comma-separated 2LD labels, with or without .eth, e.g. `nick,degen.eth`","schema":{"example":"arti","type":"array","items":{"type":"string"}}},{"name":"label","required":true,"in":"query","schema":{"example":"alice","type":"string"}},{"name":"minter","required":true,"in":"query","description":"The wallet that will send the mint; whitelist proofs and balances are for it","schema":{"type":"string"}},{"name":"duration","required":false,"in":"query","description":"Seconds; ignored by non-expiring activations","schema":{"default":31536000,"type":"number"}}],"responses":{"200":{"description":"One quote per distinct parent, in request order","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MintQuoteDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Quote a subname mint under one or more parents","tags":["Mint"]}},"/api/v1/widgets":{"post":{"description":"The SIWE signer becomes the widget owner.","operationId":"WidgetsController_create","parameters":[{"name":"x-siwe-token","in":"header","description":"base64(siweMessage).base64(signature)","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetBody"}}}},"responses":{"200":{"description":"The new widget id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetCreated"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, expired or invalid SIWE token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create a widget","tags":["Widgets"]}},"/api/v1/widgets/{widgetId}":{"put":{"description":"Owner only.","operationId":"WidgetsController_update","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"example":"wg-1a2b3c4d5e6f","type":"string"}},{"name":"x-siwe-token","in":"header","description":"base64(siweMessage).base64(signature)","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetBody"}}}},"responses":{"200":{"description":"The updated widget","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, expired or invalid SIWE token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Replace a widget's configuration","tags":["Widgets"]},"delete":{"description":"Owner only. Drops its open counts too.","operationId":"WidgetsController_remove","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"example":"wg-1a2b3c4d5e6f","type":"string"}},{"name":"x-siwe-token","in":"header","description":"base64(siweMessage).base64(signature)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, expired or invalid SIWE token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Delete a widget","tags":["Widgets"]},"get":{"description":"Public; the embedded widget loads its configuration here.","operationId":"WidgetsController_byId","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"example":"wg-1a2b3c4d5e6f","type":"string"}}],"responses":{"200":{"description":"The widget","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Widget by id","tags":["Widgets"]}},"/api/v1/widgets/owner/{owner}":{"get":{"description":"Newest first, up to 200.","operationId":"WidgetsController_byOwner","parameters":[{"name":"owner","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Widgets","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Widgets by owner","tags":["Widgets"]}},"/api/v1/widgets/{widgetId}/stats":{"get":{"description":"Owner only. An installation is a distinct Origin host the widget was opened on.","operationId":"WidgetsController_stats","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"example":"wg-1a2b3c4d5e6f","type":"string"}},{"name":"x-siwe-token","in":"header","description":"base64(siweMessage).base64(signature)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Open counts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetStats"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, expired or invalid SIWE token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Widget opens and installations","tags":["Widgets"]}},"/api/v1/widgets/{widgetId}/opens":{"post":{"description":"Called by the embedded widget on load. The host comes from the browser's Origin header; requests without one, or for an unknown widget, are accepted and ignored.","operationId":"WidgetsController_open","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"example":"wg-1a2b3c4d5e6f","type":"string"}},{"name":"origin","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"Recorded or ignored"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Record a widget open","tags":["Widgets"]}},"/api/v1/widgets/{widgetId}/names":{"get":{"description":"The widget's parent names resolved to their current, active activations: the selected names in order for SINGLE and SELECTED, the owner's activations for OWNED, every activation for ALL_NAMES (newest first). Up to 200.","operationId":"WidgetsController_names","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"example":"wg-1a2b3c4d5e6f","type":"string"}}],"responses":{"200":{"description":"Mintable parent names","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetNameDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Names the widget offers","tags":["Widgets"]}}},"info":{"title":"Namespace manager","description":"Read API over indexed Namespace activations and subnames on Sepolia, plus the whitelist and reservation Merkle proof service. Integers wider than 53 bits are decimal strings.","version":"v1","contact":{},"license":{"name":"ISC","url":"https://opensource.org/license/isc-license-txt"}},"tags":[{"name":"Activations","description":"Names activated on the ActivationManager"},{"name":"Subnames","description":"Subnames minted and renewed through the SubnameIssuer"},{"name":"Whitelist","description":"Whitelist Merkle roots and minter proofs"},{"name":"Reservation","description":"Reservation Merkle roots and label proofs"},{"name":"Mint","description":"Live mint quotes with proofs, prices and the minter's balances"},{"name":"Widgets","description":"Embeddable mint widget configurations and open counts"},{"name":"Health","description":"Service and indexer status"}],"servers":[{"url":"/"}],"components":{"schemas":{"ErrorResponse":{"type":"object","properties":{"error":{"type":"string","example":"invalid request"},"issues":{"example":["entries.0.priceUsd: priceUsd must be a plain decimal"],"type":"array","items":{"type":"string"}}},"required":["error"]},"PaymentReceiverDto":{"type":"object","properties":{"to":{"type":"string"},"bps":{"type":"number"}},"required":["to","bps"]},"FeatureDto":{"type":"object","properties":{"id":{"type":"string","description":"`${activationId}-${module}`"},"activationId":{"type":"string"},"index":{"type":"number"},"type":{"type":"string","example":"whitelist"},"module":{"type":"string"},"config":{"type":"object","description":"Decoded, feature-specific config, null when the configuring call could not be decoded. Whitelist and reservation configs carry `addresses` / `entries` only on single-activation responses.","nullable":true}},"required":["id","activationId","index","type","module","config"]},"ActivationDto":{"type":"object","properties":{"id":{"type":"string","description":"activationId"},"parent":{"type":"string","description":"keccak256 of the 2LD label"},"label":{"type":"string"},"owner":{"type":"string","description":"The registry admin who activated"},"version":{"type":"string"},"basePrice":{"type":"string","description":"USD, 12 decimals"},"expiration":{"type":"string","enum":["Expirable","NonExpirable"]},"subnamePermissions":{"type":"object"},"resolver":{"type":"string","description":"Zero address leaves the choice to the buyer, then the platform default"},"paymentType":{"type":"string","enum":["default","split","custom"]},"paymentModule":{"type":"string","nullable":true},"paymentReceivers":{"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/PaymentReceiverDto"}},"active":{"type":"boolean"},"blockNumber":{"type":"string"},"timestamp":{"type":"string"},"txHash":{"type":"string"},"features":{"type":"array","items":{"$ref":"#/components/schemas/FeatureDto"}}},"required":["id","parent","label","owner","version","basePrice","expiration","subnamePermissions","resolver","paymentType","paymentModule","paymentReceivers","active","blockNumber","timestamp","txHash","features"]},"SubnameDto":{"type":"object","properties":{"id":{"type":"string","description":"`${parent}-${label}`"},"parent":{"type":"string"},"label":{"type":"string"},"owner":{"type":"string"},"tokenId":{"type":"string"},"usdPrice":{"type":"string","description":"USD, 12 decimals"},"paymentToken":{"type":"string","description":"Zero address for native ETH"},"payment":{"type":"string","description":"Token amount paid, in the token's own decimals"},"expiry":{"type":"string","description":"uint64 max when permanent"},"renewedAt":{"type":"string","nullable":true},"blockNumber":{"type":"string"},"timestamp":{"type":"string"},"txHash":{"type":"string"}},"required":["id","parent","label","owner","tokenId","usdPrice","paymentToken","payment","expiry","renewedAt","blockNumber","timestamp","txHash"]},"CreateWhitelistBody":{"type":"object","properties":{"mode":{"type":"string","enum":["Gate","Free"],"default":"Gate"},"addresses":{"maxItems":10000,"type":"array","items":{"type":"string"}}},"required":["addresses"]},"WhitelistCreated":{"type":"object","properties":{"root":{"type":"string"},"mode":{"type":"string","enum":["Gate","Free"]},"count":{"type":"number"}},"required":["root","mode","count"]},"WhitelistProof":{"type":"object","properties":{"mode":{"type":"string","enum":["Gate","Free"]},"whitelisted":{"type":"boolean"},"proof":{"type":"array","items":{"type":"string"}},"claim":{"type":"string","description":"abi.encode(bytes32[] proof), the WhitelistFeature claim for extraData"}},"required":["mode","whitelisted","proof","claim"]},"WhitelistInputs":{"type":"object","properties":{"mode":{"type":"string","enum":["Gate","Free"]},"addresses":{"type":"array","items":{"type":"string"}}},"required":["mode","addresses"]},"ReservationEntryDto":{"type":"object","properties":{"label":{"type":"string","example":"premium"},"kind":{"type":"string","enum":["Blocked","Priced"]},"priceUsd":{"type":"string","description":"USD amount for Priced entries, e.g. \"25\" or \"9.99\""}},"required":["label","kind"]},"CreateReservationBody":{"type":"object","properties":{"entries":{"maxItems":10000,"type":"array","items":{"$ref":"#/components/schemas/ReservationEntryDto"}}},"required":["entries"]},"ReservationCreated":{"type":"object","properties":{"root":{"type":"string"},"count":{"type":"number"}},"required":["root","count"]},"ReservationLeafDto":{"type":"object","properties":{"value":{"type":"string"},"nextValue":{"type":"string"},"kind":{"type":"number"},"price":{"type":"string","description":"USD, 12 decimals, decimal string"}},"required":["value","nextValue","kind","price"]},"ReservationProof":{"type":"object","properties":{"reserved":{"type":"boolean","description":"True only when the label is a reserved entry, not a gap"},"kind":{"type":"string","enum":["None","Blocked","Priced"]},"priceUsd":{"type":"string","nullable":true},"leaf":{"$ref":"#/components/schemas/ReservationLeafDto"},"proof":{"type":"array","items":{"type":"string"}},"claim":{"type":"string","description":"abi.encode(Leaf, bytes32[] proof), the ReservationFeature claim for extraData"}},"required":["reserved","kind","priceUsd","leaf","proof","claim"]},"ReservationInputs":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/ReservationEntryDto"}}},"required":["entries"]},"PaymentOptionDto":{"type":"object","properties":{"symbol":{"type":"string","example":"USDC"},"token":{"type":"string","description":"Zero address for native ETH"},"decimals":{"type":"number"},"amount":{"type":"string","description":"Token units the issuer will charge, decimal string"},"balance":{"type":"string","description":"Minter balance, decimal string"},"allowance":{"type":"string","nullable":true,"description":"Minter allowance to the issuer; null for ETH"}},"required":["symbol","token","decimals","amount","balance","allowance"]},"MintQuoteDto":{"type":"object","properties":{"name":{"type":"string","example":"alice.arti.eth"},"parentLabel":{"type":"string"},"label":{"type":"string"},"activated":{"type":"boolean","description":"False when the parent has never been activated"},"status":{"type":"string","enum":["available","reserved","registered"],"nullable":true,"description":"Subregistry status of the label"},"canMint":{"type":"boolean","description":"quoteMint result; a registered label can still quote true"},"denied":{"type":"string","nullable":true,"example":"MinterNotAllowed","description":"Types.DeniedReason name when canMint is false"},"expiration":{"type":"string","enum":["Expirable","NonExpirable"],"nullable":true},"duration":{"type":"string","description":"Seconds the quote was priced for"},"priceUsd":{"type":"string","description":"USD, 12 decimals, decimal string; for the whole duration"},"extraData":{"type":"string","description":"Pass as the register request's extraData"},"payments":{"description":"Supported settlement tokens; empty unless mintable","type":"array","items":{"$ref":"#/components/schemas/PaymentOptionDto"}}},"required":["name","parentLabel","label","activated","status","canMint","denied","expiration","duration","priceUsd","extraData","payments"]},"WidgetBody":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"widgetType":{"type":"string","enum":["ALL_NAMES","SELECTED","OWNED","SINGLE"]},"selectedNames":{"maxItems":100,"description":"Full names, e.g. `nick.eth`. Exactly one for SINGLE, at least one for SELECTED.","type":"array","items":{"type":"string"}},"logo":{"type":"string","description":"https URL","maxLength":2048},"showRegisterEns":{"type":"boolean","default":false}},"required":["name","widgetType"]},"WidgetCreated":{"type":"object","properties":{"widgetId":{"type":"string"}},"required":["widgetId"]},"WidgetDto":{"type":"object","properties":{"widgetId":{"type":"string","example":"wg-1a2b3c4d5e6f"},"widgetType":{"type":"string","enum":["ALL_NAMES","SELECTED","OWNED","SINGLE"]},"widgetOwner":{"type":"string","description":"The SIWE signer that created the widget, lowercase"},"name":{"type":"string"},"selectedNames":{"type":"array","items":{"type":"string"}},"logo":{"type":"string","nullable":true},"showRegisterEns":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["widgetId","widgetType","widgetOwner","name","selectedNames","logo","showRegisterEns","createdAt","updatedAt"]},"WidgetHostStats":{"type":"object","properties":{"host":{"type":"string","description":"Origin host the widget was opened on"},"opens":{"type":"number"},"firstSeen":{"type":"string","example":"2026-10-30"},"lastSeen":{"type":"string","example":"2026-10-30"}},"required":["host","opens","firstSeen","lastSeen"]},"WidgetDayStats":{"type":"object","properties":{"day":{"type":"string","example":"2026-10-30"},"opens":{"type":"number"}},"required":["day","opens"]},"WidgetStats":{"type":"object","properties":{"totalOpens":{"type":"number"},"installations":{"description":"Every host the widget was opened on, most opens first","type":"array","items":{"$ref":"#/components/schemas/WidgetHostStats"}},"daily":{"description":"Opens per day over the last 30 days, days with none omitted","type":"array","items":{"$ref":"#/components/schemas/WidgetDayStats"}}},"required":["totalOpens","installations","daily"]},"WidgetNameDto":{"type":"object","properties":{"name":{"type":"string","example":"nick.eth"},"label":{"type":"string","example":"nick"},"expiration":{"type":"string","enum":["Expirable","NonExpirable"]},"basePrice":{"type":"string","description":"USD, 12 decimals, per year for Expirable"}},"required":["name","label","expiration","basePrice"]}}}}