import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Brands extends APIResource { /** * Create a new brand profile with complete business information including * industry, goals, and contact details. This endpoint also establishes the initial * brand-user relationship. * * @example * ```ts * const brand = await client.brands.create({ * brandGoal: 'ads_ceiling', * country: 'US', * industry: 'Advertising', * name: 'Acme Corporation', * whereHearUs: 'linkedin', * }); * ``` */ create(body: BrandCreateParams, options?: RequestOptions): APIPromise; /** * Retrieve the complete brand profile information for the authenticated user, * including business details, preferences, and account status. * * @example * ```ts * const brand = await client.brands.retrieve(); * ``` */ retrieve(options?: RequestOptions): APIPromise; /** * Update brand profile information including business details, voice guidelines, * and preferences. All fields are optional - only provided fields will be updated. * * @example * ```ts * const brand = await client.brands.update(); * ``` */ update(body?: BrandUpdateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Get brand overview containing key metrics such as total active campaigns, * current credits balance, and total active deals. Supports optional date range * filtering with startDate and endDate query parameters. If no dates are provided, * returns all-time metrics. * * @example * ```ts * const response = await client.brands.getOverview(); * ``` */ getOverview(options?: RequestOptions): APIPromise; } /** * Response schema for creating a new brand during user onboarding, including user * profile, brand details and associated users */ export interface BrandCreateResponse { /** * Complete brand information including profile details and account status */ brand: BrandCreateResponse.Brand; /** * List of users associated with the brand */ brandUsers: Array; /** * User profile information (created during onboarding if new) */ user: BrandCreateResponse.User; } export declare namespace BrandCreateResponse { /** * Complete brand information including profile details and account status */ interface Brand { /** * Unique identifier for the brand */ id: string; /** * The billing email address for the brand */ billingEmail: string | null; /** * The primary goal of the brand's marketing efforts */ brandGoal: string; /** * ISO 3166-1 alpha-2 country code */ country: string; /** * ISO 8601 timestamp of when the brand was created */ createdAt: string; /** * Current credits balance in the smallest currency unit (e.g., cents) */ credits: number; /** * The industry sector the brand operates in */ industry: string; /** * The name of the brand */ name: string; /** * ISO 8601 timestamp of when the brand was last updated */ updatedAt: string; /** * Brand voice and tone guidelines for content creation */ voiceGuidelines: string | null; /** * The brand's official website URL */ website: string | null; /** * How the brand heard about our platform */ whereHearUs: string; } /** * Brand user information including profile and permissions */ interface BrandUser { /** * Unique identifier for the brand user */ id: string; /** * ISO 8601 timestamp of when the user was created */ createdAt: string; /** * Email address of the brand user */ email: string; /** * Whether the user account is active */ isActive: boolean; /** * Role of the user within the brand */ role: string; } /** * User profile information (created during onboarding if new) */ interface User { /** * Unique identifier for the user */ id: string; /** * ISO 8601 timestamp of when the user was created */ createdAt: string; /** * Email address of the user */ email: string; } } /** * Response schema for retrieving a single brand's details */ export interface BrandRetrieveResponse { /** * Unique identifier for the brand */ id: string; /** * The billing email address for the brand */ billingEmail: string | null; /** * The primary goal of the brand's marketing efforts */ brandGoal: string; /** * ISO 3166-1 alpha-2 country code */ country: string; /** * ISO 8601 timestamp of when the brand was created */ createdAt: string; /** * Current credits balance in the smallest currency unit (e.g., cents) */ credits: number; /** * The industry sector the brand operates in */ industry: string; /** * The name of the brand */ name: string; /** * ISO 8601 timestamp of when the brand was last updated */ updatedAt: string; /** * Brand voice and tone guidelines for content creation */ voiceGuidelines: string | null; /** * The brand's official website URL */ website: string | null; /** * How the brand heard about our platform */ whereHearUs: string; } /** * Response schema for updating a brand's details */ export interface BrandUpdateResponse { /** * Unique identifier for the brand */ id: string; /** * The billing email address for the brand */ billingEmail: string | null; /** * The primary goal of the brand's marketing efforts */ brandGoal: string; /** * ISO 3166-1 alpha-2 country code */ country: string; /** * ISO 8601 timestamp of when the brand was created */ createdAt: string; /** * Current credits balance in the smallest currency unit (e.g., cents) */ credits: number; /** * The industry sector the brand operates in */ industry: string; /** * The name of the brand */ name: string; /** * ISO 8601 timestamp of when the brand was last updated */ updatedAt: string; /** * Brand voice and tone guidelines for content creation */ voiceGuidelines: string | null; /** * The brand's official website URL */ website: string | null; /** * How the brand heard about our platform */ whereHearUs: string; } /** * Brand overview containing key metrics for dashboard display */ export interface BrandGetOverviewResponse { /** * Average cost per mille (CPM) across all campaigns */ averageCpm: number | null; /** * Current credits balance in the smallest currency unit (e.g., cents) */ credits: number; /** * Total number of active campaigns for the brand */ totalActiveCampaigns: number; /** * Total number of active deals across all campaigns */ totalActiveDeals: number; /** * Total clicks across all campaigns */ totalClicks: number; /** * Total number of creators (leads) across all campaigns */ totalCreators: number; /** * Total number of deliverables across all campaigns */ totalDeliverables: number; /** * Total spend across all campaigns in cents */ totalSpend: number; /** * Total views across all campaigns */ totalViews: number; } export interface BrandCreateParams { /** * The primary goal of the brand's marketing efforts. */ brandGoal: 'ads_ceiling' | 'profitable_campaigns' | 'automate_influencer_ops' | 'other'; /** * The country code of the brand's headquarters. Must be a valid ISO 3166-1 alpha-2 * country code. */ country: string; /** * The industry sector the brand operates in. */ industry: 'Advertising' | 'Aerospace' | 'Agriculture' | 'Automotive' | 'Beauty & Cosmetics' | 'Biotechnology' | 'Construction' | 'Consumer Electronics' | 'Consumer Goods' | 'Cybersecurity' | 'Design & Creative' | 'E-commerce' | 'Education' | 'Energy & Utilities' | 'Entertainment' | 'Fashion & Apparel' | 'Finance' | 'Fitness & Wellness' | 'Food & Beverage' | 'Gaming' | 'Government' | 'Healthcare' | 'Hospitality' | 'Insurance' | 'Legal' | 'Logistics & Transportation' | 'Manufacturing' | 'Marketing' | 'Media & Publishing' | 'Music' | 'Non-Profit' | 'Oil & Gas' | 'Pharmaceutical' | 'Professional Services' | 'Real Estate' | 'Retail' | 'Software & SaaS' | 'Sports' | 'Telecommunications' | 'Travel & Tourism' | 'Venture Capital' | 'Other'; /** * The name of the brand. Must be between 2 and 100 characters. */ name: string; /** * How the brand heard about our platform. */ whereHearUs: 'linkedin' | 'instagram' | 'tiktok' | 'twitter' | 'email' | 'friend_recommendation' | 'search_engine' | 'other'; /** * The billing email address for the brand. Must be a valid email format. */ billingEmail?: string; /** * The brand's official website URL. */ website?: string; } export interface BrandUpdateParams { /** * The updated billing email address for the brand. */ billingEmail?: string; /** * The updated primary goal of the brand's marketing efforts. */ brandGoal?: 'ads_ceiling' | 'profitable_campaigns' | 'automate_influencer_ops' | 'other'; /** * The updated country code of the brand's headquarters. */ country?: string; /** * The updated industry sector the brand operates in. */ industry?: 'Advertising' | 'Aerospace' | 'Agriculture' | 'Automotive' | 'Beauty & Cosmetics' | 'Biotechnology' | 'Construction' | 'Consumer Electronics' | 'Consumer Goods' | 'Cybersecurity' | 'Design & Creative' | 'E-commerce' | 'Education' | 'Energy & Utilities' | 'Entertainment' | 'Fashion & Apparel' | 'Finance' | 'Fitness & Wellness' | 'Food & Beverage' | 'Gaming' | 'Government' | 'Healthcare' | 'Hospitality' | 'Insurance' | 'Legal' | 'Logistics & Transportation' | 'Manufacturing' | 'Marketing' | 'Media & Publishing' | 'Music' | 'Non-Profit' | 'Oil & Gas' | 'Pharmaceutical' | 'Professional Services' | 'Real Estate' | 'Retail' | 'Software & SaaS' | 'Sports' | 'Telecommunications' | 'Travel & Tourism' | 'Venture Capital' | 'Other'; /** * The updated name of the brand. Must be between 2 and 100 characters. */ name?: string; /** * Brand voice and tone guidelines for content creation. Maximum 2600 characters. */ voiceGuidelines?: string; /** * The updated brand's official website URL. */ website?: string; /** * How the brand heard about our platform. */ whereHearUs?: 'linkedin' | 'instagram' | 'tiktok' | 'twitter' | 'email' | 'friend_recommendation' | 'search_engine' | 'other'; } export declare namespace Brands { export { type BrandCreateResponse as BrandCreateResponse, type BrandRetrieveResponse as BrandRetrieveResponse, type BrandUpdateResponse as BrandUpdateResponse, type BrandGetOverviewResponse as BrandGetOverviewResponse, type BrandCreateParams as BrandCreateParams, type BrandUpdateParams as BrandUpdateParams, }; } //# sourceMappingURL=brands.d.mts.map