/** * Catapult REST Endpoints * OpenAPI Specification of catapult-rest * * The version of the OpenAPI document: 1.0.5 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { AliasDTO } from './AliasDTO'; import type { NamespaceRegistrationTypeEnum } from './NamespaceRegistrationTypeEnum'; /** * State information describing a namespace and its alias configuration. * @export * @interface NamespaceDTO */ export interface NamespaceDTO { /** * Version of the on-chain state serialization format. Incremented when the storage * schema of the entity changes (e.g. new fields are added), allowing the node to * deserialize entries written under earlier formats. * * @type {number} * @memberof NamespaceDTO */ version: number; /** * * @type {NamespaceRegistrationTypeEnum} * @memberof NamespaceDTO */ registrationType: NamespaceRegistrationTypeEnum; /** * Number of levels present in the namespace path. * This matches how many namespace IDs are defined across `level0`, `level1`, and `level2`. * * @type {number} * @memberof NamespaceDTO */ depth: number; /** * Unique [namespace](https://docs.symbol.dev/concepts/namespaces.html) identifier. * A 64-bit unsigned integer derived from the namespace name and its parent namespace ID, * encoded as a 16-character hexadecimal string. * * @type {string} * @memberof NamespaceDTO */ level0: string; /** * Unique [namespace](https://docs.symbol.dev/concepts/namespaces.html) identifier. * A 64-bit unsigned integer derived from the namespace name and its parent namespace ID, * encoded as a 16-character hexadecimal string. * * @type {string} * @memberof NamespaceDTO */ level1?: string; /** * Unique [namespace](https://docs.symbol.dev/concepts/namespaces.html) identifier. * A 64-bit unsigned integer derived from the namespace name and its parent namespace ID, * encoded as a 16-character hexadecimal string. * * @type {string} * @memberof NamespaceDTO */ level2?: string; /** * * @type {AliasDTO} * @memberof NamespaceDTO */ alias: AliasDTO; /** * Unique [namespace](https://docs.symbol.dev/concepts/namespaces.html) identifier. * A 64-bit unsigned integer derived from the namespace name and its parent namespace ID, * encoded as a 16-character hexadecimal string. * * @type {string} * @memberof NamespaceDTO */ parentId: string; /** * Address encoded as a 48-character hexadecimal string (24 bytes). * The REST API returns addresses in this format. For Base32-encoded addresses (39 chars) see `Address`. * * @type {string} * @memberof NamespaceDTO */ ownerAddress: string; /** * Height of a block in the blockchain. Starts at 1 and increments by one per block. * Represented as a string to preserve precision, since the value is an unsigned 64-bit integer. * * @type {string} * @memberof NamespaceDTO */ startHeight: string; /** * Height of a block in the blockchain. Starts at 1 and increments by one per block. * Represented as a string to preserve precision, since the value is an unsigned 64-bit integer. * * @type {string} * @memberof NamespaceDTO */ endHeight: string; } /** * Check if a given object implements the NamespaceDTO interface. */ export declare function instanceOfNamespaceDTO(value: Record): value is NamespaceDTO; export declare function NamespaceDTOFromJSON(json: any): NamespaceDTO; export declare function NamespaceDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamespaceDTO; export declare function NamespaceDTOToJSON(json: any): NamespaceDTO; export declare function NamespaceDTOToJSONTyped(value?: NamespaceDTO | null, ignoreDiscriminator?: boolean): any;