/** * Newsletter management SDK. * * Wire paths, methods, and public response/body shapes are sourced from * `@sylphx/contract`. This module only adapts the ergonomic SDK call shape * where callers pass booleans/numbers and the HTTP query contract carries * strings. */ import { type AddStepInput, type BulkDeleteSubscribersInput, type BulkDeleteSubscribersResult, type CreateSequenceInput, type DeleteSubscriberResult, type Enrollment, type EnrollmentStatus, type EnrollSubscriberInput, type ExportSubscribersQuery, type ExportSubscribersResult, type ListEnrollmentsQuery, type ListEnrollmentsResult, type ListSequencesQuery, type ListSequencesResult, type ListSubscribersQuery, type ListSubscribersResult, type NewsletterSuccessResult, type ReorderStepsInput, type ResendVerificationResult, type Sequence, type SequenceAnalytics, type SequenceTrigger, type SequenceWithSteps, type Step, type StepConfig, type StepType, type Subscriber, type SubscriberDetail, type SubscriberPreferences, type SubscriberSource, type SubscriberStatsResult, type TriggerConditions, type UpdateSequenceInput, type UpdateStepInput } from '@sylphx/contract'; import type { Client } from './client.js'; export type { AddStepInput, BulkDeleteSubscribersInput, BulkDeleteSubscribersResult, CreateSequenceInput, DeleteSubscriberResult, Enrollment, EnrollmentStatus, EnrollSubscriberInput, ExportSubscribersResult, ListEnrollmentsResult, ListSequencesResult, ListSubscribersResult, NewsletterSuccessResult, ReorderStepsInput, ResendVerificationResult, Sequence, SequenceAnalytics, SequenceTrigger, SequenceWithSteps, Step, StepConfig, StepType, Subscriber, SubscriberDetail, SubscriberPreferences, SubscriberSource, SubscriberStatsResult, TriggerConditions, UpdateSequenceInput, UpdateStepInput, }; export type SubscriberStats = SubscriberStatsResult; export type ListSubscribersOptions = Omit & { readonly verified?: boolean; readonly includeUnsubscribed?: boolean; readonly limit?: number; readonly offset?: number; }; export type ExportSubscribersOptions = Omit & { readonly verified?: boolean; readonly includeUnsubscribed?: boolean; }; export type ListSequencesOptions = Omit & { readonly includeInactive?: boolean; }; export type ListEnrollmentsOptions = Omit & { readonly limit?: number; readonly offset?: number; }; export declare const listSubscribers: (client: Client, options?: ListSubscribersOptions) => Promise; export declare const getSubscriber: (client: Client, email: string) => Promise; export declare const getPreferences: (client: Client, email: string) => Promise; export declare const exportSubscribers: (client: Client, options?: ExportSubscribersOptions) => Promise; export declare const subscriberStats: (client: Client) => Promise; export declare const deleteSubscriber: (client: Client, email: string) => Promise; export declare const bulkDeleteSubscribers: (client: Client, input: BulkDeleteSubscribersInput) => Promise; export declare const resendVerification: (client: Client, email: string) => Promise; export declare const listSequences: (client: Client, projectId: string, options?: ListSequencesOptions) => Promise; export declare const getSequence: (client: Client, sequenceId: string) => Promise; export declare const createSequence: (client: Client, input: CreateSequenceInput) => Promise; export declare const updateSequence: (client: Client, sequenceId: string, input: UpdateSequenceInput) => Promise; export declare const deleteSequence: (client: Client, sequenceId: string) => Promise; export declare const sequenceAnalytics: (client: Client, sequenceId: string) => Promise; export declare const addStep: (client: Client, input: AddStepInput) => Promise; export declare const updateStep: (client: Client, stepId: string, input: UpdateStepInput) => Promise; export declare const deleteStep: (client: Client, stepId: string) => Promise; export declare const reorderSteps: (client: Client, sequenceId: string, stepOrder: readonly string[]) => Promise; export declare const listEnrollments: (client: Client, sequenceId: string, options?: ListEnrollmentsOptions) => Promise; export declare const getEnrollment: (client: Client, enrollmentId: string) => Promise; export declare const enrollSubscriber: (client: Client, input: EnrollSubscriberInput) => Promise; export declare const cancelEnrollment: (client: Client, enrollmentId: string) => Promise; export declare const pauseEnrollment: (client: Client, enrollmentId: string) => Promise; export declare const resumeEnrollment: (client: Client, enrollmentId: string) => Promise; //# sourceMappingURL=newsletter.d.ts.map