import { Message } from "@bufbuild/protobuf"; import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { Timestamp } from "@bufbuild/protobuf/wkt"; declare namespace profile_pb_d_exports { export { AccountIdentity, AccountIdentitySchema, ClaimGeneratedUsernameRequest, ClaimGeneratedUsernameRequestSchema, GenerateUsernameOptionsRequest, GenerateUsernameOptionsRequestSchema, GenerateUsernameOptionsResponse, GenerateUsernameOptionsResponseSchema, GetProfileRequest, GetProfileRequestSchema, GetUsernameHistoryRequest, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponse, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetail, ProfileErrorDetailSchema, ProfileService, UserProfile, UserProfilePatch, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntry, UsernameHistoryEntrySchema, file_auth_v1_profile }; } /** * Describes the file auth/v1/profile.proto. */ declare const file_auth_v1_profile: GenFile; /** * AccountIdentity is a lightweight identity view for a root account. * * @generated from message auth.v1.AccountIdentity */ type AccountIdentity = Message<"auth.v1.AccountIdentity"> & { /** * Root account identifier (opaque ID). * * @generated from field: fixed64 account_id = 1; */ accountId: bigint; /** * Current username for the root account (unique, case-insensitive). Empty * means no username set. * * @generated from field: string username = 2; */ username: string; /** * Avatar URL, if set. Maximum length is 256 characters. * * @generated from field: string avatar_url = 3; */ avatarUrl: string; /** * Root smart-account EVM address. Useful as a stable identity fallback. * * @generated from field: string root_smart_account_address = 4; */ rootSmartAccountAddress: string; }; /** * Describes the message auth.v1.AccountIdentity. * Use `create(AccountIdentitySchema)` to create a new message. */ declare const AccountIdentitySchema: GenMessage; /** * UserProfile is the caller's public profile and account metadata. * * @generated from message auth.v1.UserProfile */ type UserProfile = Message<"auth.v1.UserProfile"> & { /** * Public username for the root account. Usernames are unique * case-insensitively and use 3 to 32 letters, digits, underscores, dots, or * hyphens. Empty means no username is set. * * @generated from field: string username = 1; */ username: string; /** * Short public bio. Maximum length is 256 characters. * * @generated from field: string bio = 2; */ bio: string; /** * Public website URL, if set. Maximum length is 256 characters. * * @generated from field: string website = 3; */ website: string; /** * X/Twitter handle without "@". Maximum length is 15 characters. * * @generated from field: string twitter = 4; */ twitter: string; /** * Whether the X/Twitter handle for this account has been verified. * * @generated from field: bool twitter_verified = 8; */ twitterVerified: boolean; /** * Discord handle or username without "@". Maximum length is 64 characters. * * @generated from field: string discord = 9; */ discord: string; /** * Whether the Discord handle for this account has been verified. * * @generated from field: bool discord_verified = 10; */ discordVerified: boolean; /** * Avatar URL, if set. Maximum length is 256 characters. * * @generated from field: string avatar_url = 5; */ avatarUrl: string; /** * Account creation time in UTC. This is the canonical "member since" * timestamp. * * @generated from field: google.protobuf.Timestamp created_at = 12; */ createdAt?: Timestamp | undefined; /** * Next time in UTC when the username can be changed again. Omitted when no * cooldown applies. * * @generated from field: google.protobuf.Timestamp next_username_change_at = 6; */ nextUsernameChangeAt?: Timestamp | undefined; /** * Current VIP tier for this root account. A value of 0 is the base tier. * Read-only. * * @generated from field: int32 vip_tier = 7; */ vipTier: number; /** * Whether this account is currently allowed to claim/change a username. * * @generated from field: bool username_unlocked = 11; */ usernameUnlocked: boolean; /** * Whether the caller's root account accepted the terms required for restricted actions. * False when the required terms have not been accepted. * * @generated from field: bool current_terms_accepted = 13; */ currentTermsAccepted: boolean; }; /** * Describes the message auth.v1.UserProfile. * Use `create(UserProfileSchema)` to create a new message. */ declare const UserProfileSchema: GenMessage; /** * UserProfilePatch is a partial profile update. Fields are * optional/presence-aware: * - if a field is omitted, it is not modified * - if a field is present with an empty string, it is cleared * Username changes are subject to account eligibility, reserved-name checks, * uniqueness, and cooldown rules. Case-only username changes update display * casing without consuming the cooldown. * * @generated from message auth.v1.UserProfilePatch */ type UserProfilePatch = Message<"auth.v1.UserProfilePatch"> & { /** * Public username for the root account. Use an empty string to clear it. * Non-empty values must be 3 to 32 letters, digits, underscores, dots, or * hyphens. * * @generated from field: optional string username = 1; */ username?: string | undefined; /** * Short public bio. Use an empty string to clear it. Non-empty values must be * at most 256 characters and cannot contain "<" or ">". * * @generated from field: optional string bio = 2; */ bio?: string | undefined; /** * Public website URL. Use an empty string to clear it. Non-empty values must * be valid http(s) URLs up to 256 characters. * * @generated from field: optional string website = 3; */ website?: string | undefined; /** * X/Twitter handle without "@". Use an empty string to clear it. Non-empty * values must be 1 to 15 letters, digits, or underscores. * * @generated from field: optional string twitter = 4; */ twitter?: string | undefined; /** * Avatar URL. Use an empty string to clear it. Non-empty values must be valid * http(s) URLs up to 256 characters. * * @generated from field: optional string avatar_url = 5; */ avatarUrl?: string | undefined; }; /** * Describes the message auth.v1.UserProfilePatch. * Use `create(UserProfilePatchSchema)` to create a new message. */ declare const UserProfilePatchSchema: GenMessage; /** * GetProfileRequest fetches the authenticated caller's profile. * * @generated from message auth.v1.GetProfileRequest */ type GetProfileRequest = Message<"auth.v1.GetProfileRequest"> & {}; /** * Describes the message auth.v1.GetProfileRequest. * Use `create(GetProfileRequestSchema)` to create a new message. */ declare const GetProfileRequestSchema: GenMessage; /** * ProfileErrorDetail describes a profile validation failure returned by the API. * * @generated from message auth.v1.ProfileErrorDetail */ type ProfileErrorDetail = Message<"auth.v1.ProfileErrorDetail"> & { /** * Stable machine-readable profile error code. * * @generated from field: auth.v1.ProfileErrorCode code = 1; */ code: ProfileErrorCode; /** * Field name associated with the error, such as "bio", "website", "twitter", * or "avatar_url". * * @generated from field: string field = 2; */ field: string; /** * Human-friendly message for UI/debugging. * * @generated from field: string message = 3; */ message: string; }; /** * Describes the message auth.v1.ProfileErrorDetail. * Use `create(ProfileErrorDetailSchema)` to create a new message. */ declare const ProfileErrorDetailSchema: GenMessage; /** * UsernameHistoryEntry records a previous username claim for the caller. * * @generated from message auth.v1.UsernameHistoryEntry */ type UsernameHistoryEntry = Message<"auth.v1.UsernameHistoryEntry"> & { /** * Username value that was set. * * @generated from field: string username = 1; */ username: string; /** * Time in UTC when this username was set. * * @generated from field: google.protobuf.Timestamp set_at = 2; */ setAt?: Timestamp | undefined; }; /** * Describes the message auth.v1.UsernameHistoryEntry. * Use `create(UsernameHistoryEntrySchema)` to create a new message. */ declare const UsernameHistoryEntrySchema: GenMessage; /** * GetUsernameHistoryRequest fetches recent username changes for the * authenticated caller. * * @generated from message auth.v1.GetUsernameHistoryRequest */ type GetUsernameHistoryRequest = Message<"auth.v1.GetUsernameHistoryRequest"> & {}; /** * Describes the message auth.v1.GetUsernameHistoryRequest. * Use `create(GetUsernameHistoryRequestSchema)` to create a new message. */ declare const GetUsernameHistoryRequestSchema: GenMessage; /** * GetUsernameHistoryResponse contains the caller's recent username history, * newest first. At most 20 entries are returned. * * @generated from message auth.v1.GetUsernameHistoryResponse */ type GetUsernameHistoryResponse = Message<"auth.v1.GetUsernameHistoryResponse"> & { /** * Recent username history entries, newest first. * * @generated from field: repeated auth.v1.UsernameHistoryEntry history = 1; */ history: UsernameHistoryEntry[]; }; /** * Describes the message auth.v1.GetUsernameHistoryResponse. * Use `create(GetUsernameHistoryResponseSchema)` to create a new message. */ declare const GetUsernameHistoryResponseSchema: GenMessage; /** * GenerateUsernameOptionsRequest requests a fresh set of generated usernames. * * @generated from message auth.v1.GenerateUsernameOptionsRequest */ type GenerateUsernameOptionsRequest = Message<"auth.v1.GenerateUsernameOptionsRequest"> & {}; /** * Describes the message auth.v1.GenerateUsernameOptionsRequest. * Use `create(GenerateUsernameOptionsRequestSchema)` to create a new message. */ declare const GenerateUsernameOptionsRequestSchema: GenMessage; /** * GenerateUsernameOptionsResponse contains five generated usernames that the * caller may claim before the offer expires. * * @generated from message auth.v1.GenerateUsernameOptionsResponse */ type GenerateUsernameOptionsResponse = Message<"auth.v1.GenerateUsernameOptionsResponse"> & { /** * Five distinct generated usernames available when this offer was created. * * @generated from field: repeated string usernames = 1; */ usernames: string[]; /** * Opaque proof required to claim one of the returned usernames. * * @generated from field: string offer_token = 2; */ offerToken: string; /** * Time in UTC after which this offer can no longer be claimed. * * @generated from field: google.protobuf.Timestamp expires_at = 3; */ expiresAt?: Timestamp | undefined; }; /** * Describes the message auth.v1.GenerateUsernameOptionsResponse. * Use `create(GenerateUsernameOptionsResponseSchema)` to create a new message. */ declare const GenerateUsernameOptionsResponseSchema: GenMessage; /** * ClaimGeneratedUsernameRequest selects one username from a generated offer. * * @generated from message auth.v1.ClaimGeneratedUsernameRequest */ type ClaimGeneratedUsernameRequest = Message<"auth.v1.ClaimGeneratedUsernameRequest"> & { /** * Opaque proof returned with the generated username options. * * @generated from field: string offer_token = 1; */ offerToken: string; /** * Zero-based position in the five returned username options. * * @generated from field: uint32 option_index = 2; */ optionIndex: number; }; /** * Describes the message auth.v1.ClaimGeneratedUsernameRequest. * Use `create(ClaimGeneratedUsernameRequestSchema)` to create a new message. */ declare const ClaimGeneratedUsernameRequestSchema: GenMessage; /** * High-level error codes for profile domain errors (ProfileService). * * @generated from enum auth.v1.ProfileErrorCode */ declare enum ProfileErrorCode { /** * No profile error code specified. * * @generated from enum value: PROFILE_UNSPECIFIED = 0; */ PROFILE_UNSPECIFIED = 0, /** * Generic invalid field (format/characters). * * @generated from enum value: PROFILE_INVALID_FIELD = 1; */ PROFILE_INVALID_FIELD = 1, /** * Field exceeds configured max length. * * @generated from enum value: PROFILE_FIELD_TOO_LONG = 2; */ PROFILE_FIELD_TOO_LONG = 2, /** * URL is syntactically invalid. * * @generated from enum value: PROFILE_URL_INVALID = 3; */ PROFILE_URL_INVALID = 3, /** * URL scheme is not allowed (e.g., non-http(s)). * * @generated from enum value: PROFILE_URL_SCHEME_INVALID = 4; */ PROFILE_URL_SCHEME_INVALID = 4 } /** * Describes the enum auth.v1.ProfileErrorCode. */ declare const ProfileErrorCodeSchema: GenEnum; /** * ProfileService manages the authenticated caller's public profile. * * @generated from service auth.v1.ProfileService */ declare const ProfileService: GenService<{ /** * Get the caller's profile. * * @generated from rpc auth.v1.ProfileService.GetProfile */ getProfile: { methodKind: "unary"; input: typeof GetProfileRequestSchema; output: typeof UserProfileSchema; }; /** * Update the caller's mutable profile fields. Omitted fields are unchanged; * present empty strings clear optional text fields. * * @generated from rpc auth.v1.ProfileService.UpdateProfile */ updateProfile: { methodKind: "unary"; input: typeof UserProfilePatchSchema; output: typeof UserProfileSchema; }; /** * Get recent username history for the caller, newest first. Returns at most * 20 entries. * * @generated from rpc auth.v1.ProfileService.GetUsernameHistory */ getUsernameHistory: { methodKind: "unary"; input: typeof GetUsernameHistoryRequestSchema; output: typeof GetUsernameHistoryResponseSchema; }; /** * Generate five random username options for an account that has never * claimed a username. Calling this method again returns a fresh set. * * @generated from rpc auth.v1.ProfileService.GenerateUsernameOptions */ generateUsernameOptions: { methodKind: "unary"; input: typeof GenerateUsernameOptionsRequestSchema; output: typeof GenerateUsernameOptionsResponseSchema; }; /** * Claim one username by its position in a valid generated offer. The * selected value comes from the offer and cannot be supplied directly. * * @generated from rpc auth.v1.ProfileService.ClaimGeneratedUsername */ claimGeneratedUsername: { methodKind: "unary"; input: typeof ClaimGeneratedUsernameRequestSchema; output: typeof UserProfileSchema; }; }>; //#endregion export { AccountIdentity, AccountIdentitySchema, ClaimGeneratedUsernameRequest, ClaimGeneratedUsernameRequestSchema, GenerateUsernameOptionsRequest, GenerateUsernameOptionsRequestSchema, GenerateUsernameOptionsResponse, GenerateUsernameOptionsResponseSchema, GetProfileRequest, GetProfileRequestSchema, GetUsernameHistoryRequest, GetUsernameHistoryRequestSchema, GetUsernameHistoryResponse, GetUsernameHistoryResponseSchema, ProfileErrorCode, ProfileErrorCodeSchema, ProfileErrorDetail, ProfileErrorDetailSchema, ProfileService, UserProfile, UserProfilePatch, UserProfilePatchSchema, UserProfileSchema, UsernameHistoryEntry, UsernameHistoryEntrySchema, file_auth_v1_profile, profile_pb_d_exports }; //# sourceMappingURL=profile_pb.d.ts.map