/** * Lead Scraping Service API * Vector Lead Scraping Service API - Manages Lead Scraping Jobs * * The version of the OpenAPI document: 1.0 * Contact: yoanyomba@vector.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { PlanTier } from './PlanTier'; import type { BillingMode } from './BillingMode'; import type { PaymentStatus } from './PaymentStatus'; import type { Interval } from './Interval'; /** * Key features: * - Stripe integration * - Usage-based billing * - Metered pricing * - Feature flags * * Database considerations: * - Syncs with Stripe webhooks * - Tracks usage for metered billing * - Maintains subscription lifecycle * @export * @interface Subscription */ export interface Subscription { /** * * @type {string} * @memberof Subscription */ id?: string; /** * * @type {string} * @memberof Subscription */ accountId?: string; /** * * @type {string} * @memberof Subscription */ workspaceId?: string; /** * * @type {string} * @memberof Subscription */ stripeCustomerId?: string; /** * * @type {string} * @memberof Subscription */ stripeSubscriptionId?: string; /** * * @type {string} * @memberof Subscription */ stripePriceId?: string; /** * * @type {string} * @memberof Subscription */ stripeProductId?: string; /** * * @type {PlanTier} * @memberof Subscription */ planTier?: PlanTier; /** * * @type {BillingMode} * @memberof Subscription */ billingMode?: BillingMode; /** * Jobs included in base price * @type {number} * @memberof Subscription */ includedJobs?: number; /** * * @type {number} * @memberof Subscription */ perJobRate?: number; /** * * @type {number} * @memberof Subscription */ maxConcurrentJobs?: number; /** * * @type {string} * @memberof Subscription */ includedStorage?: string; /** * * @type {number} * @memberof Subscription */ perGbRate?: number; /** * * @type {boolean} * @memberof Subscription */ advancedFilteringEnabled?: boolean; /** * * @type {boolean} * @memberof Subscription */ prioritySupportEnabled?: boolean; /** * * @type {boolean} * @memberof Subscription */ customExportsEnabled?: boolean; /** * * @type {boolean} * @memberof Subscription */ apiAccessEnabled?: boolean; /** * * @type {boolean} * @memberof Subscription */ customProxiesEnabled?: boolean; /** * * @type {boolean} * @memberof Subscription */ advancedAnalyticsEnabled?: boolean; /** * * @type {number} * @memberof Subscription */ retentionDays?: number; /** * * @type {number} * @memberof Subscription */ maxResultsPerJob?: number; /** * * @type {Date} * @memberof Subscription */ currentPeriodStart?: Date; /** * * @type {Date} * @memberof Subscription */ currentPeriodEnd?: Date; /** * * @type {number} * @memberof Subscription */ currentPeriodUsage?: number; /** * e.g., "usd" * @type {string} * @memberof Subscription */ currency?: string; /** * * @type {number} * @memberof Subscription */ basePrice?: number; /** * * @type {Interval} * @memberof Subscription */ billingInterval?: Interval; /** * * @type {boolean} * @memberof Subscription */ autoRenew?: boolean; /** * * @type {PaymentStatus} * @memberof Subscription */ paymentStatus?: PaymentStatus; /** * * @type {boolean} * @memberof Subscription */ isTrial?: boolean; /** * * @type {Date} * @memberof Subscription */ trialStart?: Date; /** * * @type {Date} * @memberof Subscription */ trialEnd?: Date; /** * * @type {Date} * @memberof Subscription */ createdAt?: Date; /** * * @type {Date} * @memberof Subscription */ updatedAt?: Date; /** * * @type {Date} * @memberof Subscription */ canceledAt?: Date; /** * * @type {Date} * @memberof Subscription */ endedAt?: Date; /** * * @type {boolean} * @memberof Subscription */ researchEnabled?: boolean; /** * * @type {number} * @memberof Subscription */ maxResearchRecords?: number; /** * * @type {number} * @memberof Subscription */ maxExaRequests?: number; /** * * @type {number} * @memberof Subscription */ contactDepth?: number; /** * * @type {string} * @memberof Subscription */ maxResearchSessionCostMicros?: string; /** * * @type {string} * @memberof Subscription */ monthlyResearchBudgetMicros?: string; /** * * @type {string} * @memberof Subscription */ currentPeriodResearchSpendMicros?: string; } /** * Check if a given object implements the Subscription interface. */ export declare function instanceOfSubscription(value: object): value is Subscription; export declare function SubscriptionFromJSON(json: any): Subscription; export declare function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subscription; export declare function SubscriptionToJSON(json: any): Subscription; export declare function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscriminator?: boolean): any;