import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Waitlist extends APIResource { /** * Step 1 of waitlist signup: Add email to waitlist. This endpoint does not require * authentication. If the email already exists, it returns the existing entry with * questionnaire completion status. The frontend can use this information to decide * whether to show the questionnaire form. * * @example * ```ts * const response = await client.waitlist.addEmail({ * email: 'user@example.com', * }); * ``` */ addEmail(body: WaitlistAddEmailParams, options?: RequestOptions): APIPromise; /** * Step 2 of waitlist signup: Complete the questionnaire with profile information. * This endpoint does not require authentication and accepts the waitlist ID from * step 1 to update the entry with additional profile data including company * details, role, industry, and use case. * * @example * ```ts * const response = * await client.waitlist.completeQuestionnaire( * '123e4567-e89b-12d3-a456-426614174000', * ); * ``` */ completeQuestionnaire(id: string, body?: WaitlistCompleteQuestionnaireParams | null | undefined, options?: RequestOptions): APIPromise; } /** * Response schema for step 1 - email signup */ export interface WaitlistAddEmailResponse { /** * Unique identifier for the waitlist entry */ id: string; /** * ISO 8601 timestamp of when the user joined the waitlist */ createdAt: string; /** * Email address that was added to the waitlist */ email: string; /** * Success message or instruction for next step */ message: string; /** * Position in the waitlist (starting from 1000) */ position: number; /** * Whether the questionnaire has been completed */ questionnaireCompleted: boolean; } /** * Response schema for step 2 - questionnaire completion */ export interface WaitlistCompleteQuestionnaireResponse { /** * Unique identifier for the waitlist entry */ id: string; /** * Email address associated with the waitlist entry */ email: string; /** * Success message confirming questionnaire completion */ message: string; /** * Position in the waitlist (starting from 1000) */ position: number; /** * Whether the questionnaire has been completed */ questionnaireCompleted: boolean; /** * ISO 8601 timestamp of when the questionnaire was completed */ updatedAt: string; } export interface WaitlistAddEmailParams { /** * Email address of the user joining the waitlist */ email: string; } export interface WaitlistCompleteQuestionnaireParams { /** * Company name */ company?: string; /** * Size of the company by employee count */ companySize?: '1-10' | '11-50' | '51-200' | '201-1000' | '1000+'; /** * User's first name */ firstName?: string; /** * How the user heard about us */ heardAboutUsIn?: 'linkedin' | 'twitter_x' | 'instagram' | 'tiktok' | 'reddit' | 'recommendation_from_colleague_or_friend' | 'email_newsletter' | 'influencers'; /** * Industry the company operates in */ industry?: 'technology' | 'healthcare' | 'finance' | 'retail' | 'food-beverage' | 'fashion' | 'travel' | 'education' | 'real-estate' | 'automotive' | 'fitness' | 'entertainment' | 'b2b-services' | 'other'; /** * Additional insights and answers to questionnaire questions */ insights?: Array; /** * User's last name */ lastName?: string; /** * User's role in their company */ role?: 'marketing-manager' | 'cmo' | 'founder' | 'agency-owner' | 'brand-manager' | 'influencer' | 'other'; } export declare namespace Waitlist { export { type WaitlistAddEmailResponse as WaitlistAddEmailResponse, type WaitlistCompleteQuestionnaireResponse as WaitlistCompleteQuestionnaireResponse, type WaitlistAddEmailParams as WaitlistAddEmailParams, type WaitlistCompleteQuestionnaireParams as WaitlistCompleteQuestionnaireParams, }; } //# sourceMappingURL=waitlist.d.ts.map