import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Users extends APIResource { /** * Retrieve the complete profile information for the currently authenticated user, * including personal details, brand associations, and account preferences. */ retrieveMe(options?: RequestOptions): APIPromise; } /** * Response schema for the getMe endpoint - returns different structures based on * user onboarding status */ export type UserRetrieveMeResponse = UserRetrieveMeResponse.UnionMember0 | UserRetrieveMeResponse.Onboarded; export declare namespace UserRetrieveMeResponse { /** * Response when user is onboarded and associated with a brand */ interface UnionMember0 { /** * The brand information the user is associated with */ brand: UnionMember0.Brand; /** * The user's brand relationship information */ user: UnionMember0.User; /** * Whether this response is the result of accepting an invitation */ acceptedInvitation?: boolean; } namespace UnionMember0 { /** * The brand information the user is associated with */ interface Brand { /** * Unique identifier for the brand */ id: string; /** * ISO 8601 timestamp of when the brand was created */ createdAt: string; /** * Current credits balance */ credits: number; /** * The name of the brand */ name: string; /** * Status of the brand */ status: string; /** * ISO 8601 timestamp of when the brand was last updated */ updatedAt: string; /** * The billing email address for the brand */ billingEmail?: string; /** * ISO 3166-1 alpha-2 country code */ country?: string; /** * The primary goal of the brand's marketing efforts */ goal?: string; /** * The industry sector the brand operates in */ industry?: string; /** * Stripe customer ID for billing */ stripeCustomerId?: string; /** * Stripe payment method ID */ stripePaymentMethodId?: string; /** * The brand's official website URL */ website?: string; /** * How the brand heard about our platform */ whereHearUs?: string; } /** * The user's brand relationship information */ interface User { /** * Unique identifier for the brand user relationship */ id: string; /** * Unique identifier for the brand */ brandId: string; /** * ISO 8601 timestamp of when the user joined the brand */ joinedAt: string; /** * User's role within the brand */ role: string; /** * Status of the brand user */ status: string; /** * Unique identifier for the user */ userId: string; /** * Email address of the brand user */ email?: string; } } /** * Response when user is not onboarded and has no brand association */ interface Onboarded { /** * Indicates the user is not onboarded */ onboarded: boolean; } } export declare namespace Users { export { type UserRetrieveMeResponse as UserRetrieveMeResponse }; } //# sourceMappingURL=users.d.ts.map