import { Message } from "@bufbuild/protobuf"; import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; declare namespace resolve_pb_d_exports { export { ResolveAccountRequest, ResolveAccountRequestSchema, ResolveAccountResponse, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccount, ResolvedAccountSchema, ResolvedAccount_Kind, ResolvedAccount_KindSchema, file_auth_v1_resolve }; } /** * Describes the file auth/v1/resolve.proto. */ declare const file_auth_v1_resolve: GenFile; /** * ResolvedAccount represents a lightweight view of a destination account for * sharing or internal transfers. * * @generated from message auth.v1.ResolvedAccount */ type ResolvedAccount = Message<"auth.v1.ResolvedAccount"> & { /** * Smart-account address that would receive funds. This is the address that * will receive the transfer, whether it belongs to a root account or a * sub-account. * * @generated from field: string smart_account_address = 1; */ smartAccountAddress: string; /** * Category of account that owns this address. * * @generated from field: auth.v1.ResolvedAccount.Kind kind = 2; */ kind: ResolvedAccount_Kind; /** * Root account username for the result. For sub-account results, this is the * parent root account username. Empty means the root account has no username. * * @generated from field: string root_username = 3; */ rootUsername: string; /** * Optional sub-account label when kind is SUB. * * @generated from field: string subaccount_label = 4; */ subaccountLabel: string; /** * Target account identifier (opaque ID). For root results this is an account * ID; for sub-account results this is a sub-account ID. * * @generated from field: fixed64 account_id = 5; */ accountId: bigint; }; /** * Describes the message auth.v1.ResolvedAccount. * Use `create(ResolvedAccountSchema)` to create a new message. */ declare const ResolvedAccountSchema: GenMessage; /** * Category of account that owns the resolved smart-account address. * * @generated from enum auth.v1.ResolvedAccount.Kind */ declare enum ResolvedAccount_Kind { /** * Account kind was not provided. * * @generated from enum value: KIND_UNSPECIFIED = 0; */ KIND_UNSPECIFIED = 0, /** * Root account. * * @generated from enum value: ROOT = 1; */ ROOT = 1, /** * Sub-account. * * @generated from enum value: SUB = 2; */ SUB = 2 } /** * Describes the enum auth.v1.ResolvedAccount.Kind. */ declare const ResolvedAccount_KindSchema: GenEnum; /** * ResolveAccountRequest searches for a transfer or sharing destination by * username, account ID, or smart-account address. * * @generated from message auth.v1.ResolveAccountRequest */ type ResolveAccountRequest = Message<"auth.v1.ResolveAccountRequest"> & { /** * Free-form query typed by the user. Can be: * - a username, 3 to 64 characters using letters, digits, underscore, dot, or hyphen * - an opaque root account or sub-account ID * - an EVM smart-account address formatted as 0x plus 40 hex characters * Maximum length is 128 characters. * * @generated from field: string query = 1; */ query: string; /** * Optional hint for how to parse query. When unspecified, the service * auto-detects by query shape. * * @generated from field: auth.v1.ResolveHint hint = 2; */ hint: ResolveHint; /** * When true, allow matches on sub-accounts as well as root accounts. Use * this for internal transfer flows where the caller may want to resolve a * specific sub-account by its ID or smart-account address. Username * lookups remain root-only regardless of this flag. * * @generated from field: bool include_subaccounts = 3; */ includeSubaccounts: boolean; }; /** * Describes the message auth.v1.ResolveAccountRequest. * Use `create(ResolveAccountRequestSchema)` to create a new message. */ declare const ResolveAccountRequestSchema: GenMessage; /** * ResolveAccountResponse contains matching accounts. Username and root-only * smart-account lookups return at most 5 matches; smart-account lookups with * include_subaccounts may return at most 10 matches. * * @generated from message auth.v1.ResolveAccountResponse */ type ResolveAccountResponse = Message<"auth.v1.ResolveAccountResponse"> & { /** * Matching destination accounts. Empty means no account matched the query. * * @generated from field: repeated auth.v1.ResolvedAccount matches = 1; */ matches: ResolvedAccount[]; }; /** * Describes the message auth.v1.ResolveAccountResponse. * Use `create(ResolveAccountResponseSchema)` to create a new message. */ declare const ResolveAccountResponseSchema: GenMessage; /** * ResolveHint controls how ResolveAccount interprets the query. * * @generated from enum auth.v1.ResolveHint */ declare enum ResolveHint { /** * Auto-detect the query shape. EVM addresses are treated as smart-account * addresses, short Base58-looking values are tried as account IDs, and other * valid names are treated as usernames. * * @generated from enum value: RESOLVE_HINT_UNSPECIFIED = 0; */ RESOLVE_HINT_UNSPECIFIED = 0, /** * Treat query as a username. Username lookups resolve root accounts only. * * @generated from enum value: USERNAME = 1; */ USERNAME = 1, /** * Treat query as an opaque root account or sub-account ID. * * @generated from enum value: ID = 2; */ ID = 2, /** * Treat query as an EVM smart-account address. * * @generated from enum value: SMART_ACCOUNT = 3; */ SMART_ACCOUNT = 3 } /** * Describes the enum auth.v1.ResolveHint. */ declare const ResolveHintSchema: GenEnum; /** * ResolveService resolves authenticated account destinations for sharing and * transfer flows. * * @generated from service auth.v1.ResolveService */ declare const ResolveService: GenService<{ /** * Resolve an account by username, account ID, or smart-account address. * Use this before sharing or transferring so the caller can confirm the target. * * @generated from rpc auth.v1.ResolveService.ResolveAccount */ resolveAccount: { methodKind: "unary"; input: typeof ResolveAccountRequestSchema; output: typeof ResolveAccountResponseSchema; }; }>; //#endregion export { ResolveAccountRequest, ResolveAccountRequestSchema, ResolveAccountResponse, ResolveAccountResponseSchema, ResolveHint, ResolveHintSchema, ResolveService, ResolvedAccount, ResolvedAccountSchema, ResolvedAccount_Kind, ResolvedAccount_KindSchema, file_auth_v1_resolve, resolve_pb_d_exports }; //# sourceMappingURL=resolve_pb.d.ts.map