import z from 'zod'; export declare const zSubscriptionStatus: z.ZodEnum<["Pending", "Active", "Canceled"]>; export declare const subscriptionUpgrade: z.ZodObject<{ productId: z.ZodString; priceId: z.ZodString; botId: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>; export declare const subscription: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; stripeCustomerId: z.ZodString; stripeSubscriptionId: z.ZodString; stripeProductId: z.ZodString; stripePriceId: z.ZodString; status: z.ZodEnum<["Pending", "Active", "Canceled"]>; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>; export type Subscription = z.infer; export type SubscriptionUpgrade = z.infer; export interface SubscriptionService { create(request: CreateSubscriptionRequest): Promise; stageUpgrade(request: StageUpgradeSubscriptionRequest): Promise; upgrade(request: UpgradeSubscriptionRequest): Promise; finalizeUpgrade(request: FinalizeUpgradeSubscriptionRequest): Promise; syncUpgrade(request: SyncSubscriptionUpgradeRequest): Promise; latest(request: LatestSubscriptionRequest): Promise; get(request: GetSubscriptionRequest): Promise; list(request: ListSubscriptionsRequest): Promise; superSetUsageLimits(request: SuperSetSubscriptionUsageLimitsRequest): Promise; } /** ****************************************************************************** * Create Subscription ******************************************************************************* */ export declare const createSubscriptionParams: z.ZodObject<{ stripeCustomerId: z.ZodString; stripeSubscriptionId: z.ZodNullable; stripeProductId: z.ZodNullable; stripePriceId: z.ZodNullable; status: z.ZodEnum<["Pending", "Active", "Canceled"]>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeProductId: string | null; stripePriceId: string | null; }, { status: "Pending" | "Canceled" | "Active"; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeProductId: string | null; stripePriceId: string | null; }>; export declare const createSubscriptionRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ stripeCustomerId: z.ZodString; stripeSubscriptionId: z.ZodNullable; stripeProductId: z.ZodNullable; stripePriceId: z.ZodNullable; status: z.ZodEnum<["Pending", "Active", "Canceled"]>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeProductId: string | null; stripePriceId: string | null; }, { status: "Pending" | "Canceled" | "Active"; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeProductId: string | null; stripePriceId: string | null; }>; }, "strip", z.ZodTypeAny, { params: { status: "Pending" | "Canceled" | "Active"; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeProductId: string | null; stripePriceId: string | null; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { status: "Pending" | "Canceled" | "Active"; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeProductId: string | null; stripePriceId: string | null; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const createSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }>; export type CreateSubscriptionParams = z.infer; export type CreateSubscriptionRequest = z.infer; export type CreateSubscriptionResponse = z.infer; /** ****************************************************************************** * Stage Upgrade Subscription ******************************************************************************* */ export declare const stageUpgradeSubscriptionParams: z.ZodObject<{ botId: z.ZodNullable; sourceIds: z.ZodNullable>; usage: z.ZodOptional; documents: z.ZodOptional; syncs: z.ZodOptional; }, "strip", z.ZodTypeAny, { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; }, { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { botId: string | null; sourceIds: string[] | null; usage?: { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; } | undefined; }, { botId: string | null; sourceIds: string[] | null; usage?: { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; } | undefined; }>; export declare const stageUpgradeSubscriptionRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ botId: z.ZodNullable; sourceIds: z.ZodNullable>; usage: z.ZodOptional; documents: z.ZodOptional; syncs: z.ZodOptional; }, "strip", z.ZodTypeAny, { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; }, { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { botId: string | null; sourceIds: string[] | null; usage?: { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; } | undefined; }, { botId: string | null; sourceIds: string[] | null; usage?: { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { params: { botId: string | null; sourceIds: string[] | null; usage?: { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; } | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { botId: string | null; sourceIds: string[] | null; usage?: { credits?: number | undefined; documents?: number | undefined; syncs?: number | undefined; } | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const stageUpgradeSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }>; export type StageUpgradeSubscriptionParams = z.infer; export type StageUpgradeSubscriptionRequest = z.infer; export type StageUpgradeSubscriptionResponse = z.infer; /** ****************************************************************************** * Upgrade Subscription ******************************************************************************* */ export declare const uprgadeSubscriptionParams: z.ZodObject<{ productId: z.ZodString; priceId: z.ZodString; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; }, { productId: string; priceId: string; }>; export declare const uprgadeSubscriptionRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ productId: z.ZodString; priceId: z.ZodString; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; }, { productId: string; priceId: string; }>; }, "strip", z.ZodTypeAny, { params: { productId: string; priceId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { productId: string; priceId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const uprgadeSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; sessionUrl: z.ZodOptional>; redirectUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; sessionUrl?: string | null | undefined; redirectUrl?: string | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; sessionUrl?: string | null | undefined; redirectUrl?: string | null | undefined; }>; export type UpgradeSubscriptionParams = z.infer; export type UpgradeSubscriptionRequest = z.infer; export type UpgradeSubscriptionResponse = z.infer; /** ****************************************************************************** * Finalize Subscription ******************************************************************************* */ export declare const finalizeUpgradeSubscriptionParams: z.ZodObject<{ stripeSubscriptionId: z.ZodString; }, "strip", z.ZodTypeAny, { stripeSubscriptionId: string; }, { stripeSubscriptionId: string; }>; export declare const finalizeUpgradeSubscriptionRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ stripeSubscriptionId: z.ZodString; }, "strip", z.ZodTypeAny, { stripeSubscriptionId: string; }, { stripeSubscriptionId: string; }>; }, "strip", z.ZodTypeAny, { params: { stripeSubscriptionId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { stripeSubscriptionId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const finalizeUpgradeSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }>; export type FinalizeUpgradeSubscriptionParams = z.infer; export type FinalizeUpgradeSubscriptionRequest = z.infer; export type FinalizeUpgradeSubscriptionResponse = z.infer; /** ****************************************************************************** * Sync Subscription Upgrade ******************************************************************************* */ export declare const syncSubscriptionUpgradeParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const syncSubscriptionUpgradeRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; }, "strip", z.ZodTypeAny, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const syncSubscriptionUpgradeResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }>; export type SyncSubscriptionUpgradeParams = z.infer; export type SyncSubscriptionUpgradeRequest = z.infer; export type SyncSubscriptionUpgradeResponse = z.infer; /** ****************************************************************************** * Update Latest Subscription ******************************************************************************* */ export declare const updateLatestSubscriptionParams: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; stripeCustomerId: z.ZodString; stripeSubscriptionId: z.ZodString; stripeProductId: z.ZodString; stripePriceId: z.ZodString; status: z.ZodEnum<["Pending", "Active", "Canceled"]>; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>; export declare const updateLatestSubscriptionRequest: z.ZodObject<{ params: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; stripeCustomerId: z.ZodString; stripeSubscriptionId: z.ZodString; stripeProductId: z.ZodString; stripePriceId: z.ZodString; status: z.ZodEnum<["Pending", "Active", "Canceled"]>; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>; }, "strip", z.ZodTypeAny, { params: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }; }, { params: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }; }>; export declare const updateLatestSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }>; export type UpdateLatestSubscriptionParams = z.infer; export type UpdateLatestSubscriptionRequest = z.infer; export type UpdateLatestSubscriptionResponse = z.infer; /** ****************************************************************************** * Get Latest Subscription ******************************************************************************* */ export declare const latestSubscriptionParams: z.ZodObject<{ organizationId: z.ZodOptional; }, "strip", z.ZodTypeAny, { organizationId?: string | undefined; }, { organizationId?: string | undefined; }>; export declare const latestSubscriptionRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ organizationId: z.ZodOptional; }, "strip", z.ZodTypeAny, { organizationId?: string | undefined; }, { organizationId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { organizationId?: string | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { organizationId?: string | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const latestSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; }>; export type LatestSubscriptionParams = z.infer; export type LatestSubscriptionRequest = z.infer; export type LatestSubscriptionResponse = z.infer; /** ****************************************************************************** * Get Subscription ******************************************************************************* */ export declare const getSubscriptionParams: z.ZodObject<{ subscriptionId: z.ZodString; }, "strip", z.ZodTypeAny, { subscriptionId: string; }, { subscriptionId: string; }>; export declare const getSubscriptionRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ subscriptionId: z.ZodString; }, "strip", z.ZodTypeAny, { subscriptionId: string; }, { subscriptionId: string; }>; }, "strip", z.ZodTypeAny, { params: { subscriptionId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { subscriptionId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const getSubscriptionResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | null | undefined; }>; export type GetSubscriptionParams = z.infer; export type GetSubscriptionRequest = z.infer; export type GetSubscriptionResponse = z.infer; /** ****************************************************************************** * List Subscriptions ******************************************************************************* */ export declare const listSubscriptionsParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const listSubscriptionsRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; }, "strip", z.ZodTypeAny, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const listSubscriptionsResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscriptions: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscriptions?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscriptions?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }[] | undefined; }>; export type ListSubscriptionsParams = z.infer; export type ListSubscriptionsRequest = z.infer; export type ListSubscriptionsResponse = z.infer; /** ****************************************************************************** * Super Set Subscription Usage Limits ******************************************************************************* */ export declare const superSetSubscriptionUsageLimitsParams: z.ZodObject<{ usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; resetCurrentUsage: z.ZodBoolean; }, "strip", z.ZodTypeAny, { usageLimits: { credits: number; documents: number; syncs: number; }; resetCurrentUsage: boolean; }, { usageLimits: { credits: number; documents: number; syncs: number; }; resetCurrentUsage: boolean; }>; export declare const superSetSubscriptionUsageLimitsRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; resetCurrentUsage: z.ZodBoolean; }, "strip", z.ZodTypeAny, { usageLimits: { credits: number; documents: number; syncs: number; }; resetCurrentUsage: boolean; }, { usageLimits: { credits: number; documents: number; syncs: number; }; resetCurrentUsage: boolean; }>; }, "strip", z.ZodTypeAny, { params: { usageLimits: { credits: number; documents: number; syncs: number; }; resetCurrentUsage: boolean; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { usageLimits: { credits: number; documents: number; syncs: number; }; resetCurrentUsage: boolean; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const superSetSubscriptionUsageLimitsResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; subscription: z.ZodOptional; upgrade: z.ZodNullable; sourceIds: z.ZodNullable>; }, "strip", z.ZodTypeAny, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }, { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; }>>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }, { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; }>>; invoice: z.ZodOptional; stripeInvoiceId: z.ZodNullable; stripeProductId: z.ZodNullable; stripePriceId: z.ZodNullable; status: z.ZodEnum<["Pending", "Fulfilled", "Canceled", "Failed"]>; usage: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; usageLimits: z.ZodObject<{ credits: z.ZodNumber; documents: z.ZodNumber; syncs: z.ZodNumber; }, "strip", z.ZodTypeAny, { credits: number; documents: number; syncs: number; }, { credits: number; documents: number; syncs: number; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Pending" | "Fulfilled" | "Canceled" | "Failed"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; subscriptionId: string; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeInvoiceId: string | null; stripeProductId: string | null; stripePriceId: string | null; usage: { credits: number; documents: number; syncs: number; }; usageLimits: { credits: number; documents: number; syncs: number; }; }, { status: "Pending" | "Fulfilled" | "Canceled" | "Failed"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; subscriptionId: string; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeInvoiceId: string | null; stripeProductId: string | null; stripePriceId: string | null; usage: { credits: number; documents: number; syncs: number; }; usageLimits: { credits: number; documents: number; syncs: number; }; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; invoice?: { status: "Pending" | "Fulfilled" | "Canceled" | "Failed"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; subscriptionId: string; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeInvoiceId: string | null; stripeProductId: string | null; stripePriceId: string | null; usage: { credits: number; documents: number; syncs: number; }; usageLimits: { credits: number; documents: number; syncs: number; }; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; subscription?: { status: "Pending" | "Canceled" | "Active"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; stripeCustomerId: string; stripeSubscriptionId: string; stripeProductId: string; stripePriceId: string; usageLimits: { credits: number; documents: number; syncs: number; }; upgrade: { productId: string; priceId: string; botId: string | null; sourceIds: string[] | null; } | null; } | undefined; invoice?: { status: "Pending" | "Fulfilled" | "Canceled" | "Failed"; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; subscriptionId: string; stripeCustomerId: string; stripeSubscriptionId: string | null; stripeInvoiceId: string | null; stripeProductId: string | null; stripePriceId: string | null; usage: { credits: number; documents: number; syncs: number; }; usageLimits: { credits: number; documents: number; syncs: number; }; } | undefined; }>; export type SuperSetSubscriptionUsageLimitsParams = z.infer; export type SuperSetSubscriptionUsageLimitsRequest = z.infer; export type SuperSetSubscriptionUsageLimitsResponse = z.infer;