/* eslint-disable */ /** * Generated `api` utility. * * THIS CODE IS AUTOMATICALLY GENERATED. * * To regenerate, run `npx convex dev`. * @module */ import type * as actions_syncGmail from "../actions/syncGmail.js"; import type * as agent from "../agent.js"; import type * as auth_Phone from "../auth/Phone.js"; import type * as auth from "../auth.js"; import type * as email_index from "../email/index.js"; import type * as email_templates_subscriptionEmail from "../email/templates/subscriptionEmail.js"; import type * as emailSearch from "../emailSearch.js"; import type * as env from "../env.js"; import type * as gmail from "../gmail.js"; import type * as gmailSync from "../gmailSync.js"; import type * as gmailSyncMutations from "../gmailSyncMutations.js"; import type * as helpers_gemini from "../helpers/gemini.js"; import type * as helpers_gmailApi from "../helpers/gmailApi.js"; import type * as helpers_gmailContent from "../helpers/gmailContent.js"; import type * as helpers_gmailSyncService from "../helpers/gmailSyncService.js"; import type * as helpers_gmailTypes from "../helpers/gmailTypes.js"; import type * as helpers_memoryService from "../helpers/memoryService.js"; import type * as helpers_pineconeService from "../helpers/pineconeService.js"; import type * as honcho from "../honcho.js"; import type * as http from "../http.js"; import type * as init from "../init.js"; import type * as memory from "../memory.js"; import type * as messages from "../messages.js"; import type * as messagesActions from "../messagesActions.js"; import type * as migrations from "../migrations.js"; import type * as oauth from "../oauth.js"; import type * as phoneAuth from "../phoneAuth.js"; import type * as prompt_conversation from "../prompt/conversation.js"; import type * as sms_factory from "../sms/factory.js"; import type * as sms_providers_twilio from "../sms/providers/twilio.js"; import type * as sms_types from "../sms/types.js"; import type * as sms_utils from "../sms/utils.js"; import type * as sms_webhook from "../sms/webhook.js"; import type * as subscriptions from "../subscriptions.js"; import type * as surgeVerify from "../surgeVerify.js"; import type * as testEnv from "../testEnv.js"; import type * as testLocal from "../testLocal.js"; import type * as users from "../users.js"; import type * as utils_validators from "../utils/validators.js"; import type * as web from "../web.js"; import type { ApiFromModules, FilterApi, FunctionReference, } from "convex/server"; /** * A utility for referencing Convex functions in your app's API. * * Usage: * ```js * const myFunctionReference = api.myModule.myFunction; * ``` */ declare const fullApi: ApiFromModules<{ "actions/syncGmail": typeof actions_syncGmail; agent: typeof agent; "auth/Phone": typeof auth_Phone; auth: typeof auth; "email/index": typeof email_index; "email/templates/subscriptionEmail": typeof email_templates_subscriptionEmail; emailSearch: typeof emailSearch; env: typeof env; gmail: typeof gmail; gmailSync: typeof gmailSync; gmailSyncMutations: typeof gmailSyncMutations; "helpers/gemini": typeof helpers_gemini; "helpers/gmailApi": typeof helpers_gmailApi; "helpers/gmailContent": typeof helpers_gmailContent; "helpers/gmailSyncService": typeof helpers_gmailSyncService; "helpers/gmailTypes": typeof helpers_gmailTypes; "helpers/memoryService": typeof helpers_memoryService; "helpers/pineconeService": typeof helpers_pineconeService; honcho: typeof honcho; http: typeof http; init: typeof init; memory: typeof memory; messages: typeof messages; messagesActions: typeof messagesActions; migrations: typeof migrations; oauth: typeof oauth; phoneAuth: typeof phoneAuth; "prompt/conversation": typeof prompt_conversation; "sms/factory": typeof sms_factory; "sms/providers/twilio": typeof sms_providers_twilio; "sms/types": typeof sms_types; "sms/utils": typeof sms_utils; "sms/webhook": typeof sms_webhook; subscriptions: typeof subscriptions; surgeVerify: typeof surgeVerify; testEnv: typeof testEnv; testLocal: typeof testLocal; users: typeof users; "utils/validators": typeof utils_validators; web: typeof web; }>; declare const fullApiWithMounts: typeof fullApi; export declare const api: FilterApi< typeof fullApiWithMounts, FunctionReference >; export declare const internal: FilterApi< typeof fullApiWithMounts, FunctionReference >; export declare const components: { polar: { lib: { createProduct: FunctionReference< "mutation", "internal", { product: { createdAt: string; description: string | null; id: string; isArchived: boolean; isRecurring: boolean; medias: Array<{ checksumEtag: string | null; checksumSha256Base64: string | null; checksumSha256Hex: string | null; createdAt: string; id: string; isUploaded: boolean; lastModifiedAt: string | null; mimeType: string; name: string; organizationId: string; path: string; publicUrl: string; service?: string; size: number; sizeReadable: string; storageVersion: string | null; version: string | null; }>; modifiedAt: string | null; name: string; organizationId: string; prices: Array<{ amountType?: string; createdAt: string; id: string; isArchived: boolean; modifiedAt: string | null; priceAmount?: number; priceCurrency?: string; productId: string; recurringInterval?: "month" | "year" | null; type?: string; }>; recurringInterval?: "month" | "year" | null; }; }, any >; createSubscription: FunctionReference< "mutation", "internal", { subscription: { amount: number | null; cancelAtPeriodEnd: boolean; checkoutId: string | null; createdAt: string; currency: string | null; currentPeriodEnd: string | null; currentPeriodStart: string; customerId: string; endedAt: string | null; id: string; metadata: Record; modifiedAt: string | null; priceId: string; productId: string; recurringInterval: "month" | "year" | null; startedAt: string | null; status: string; }; }, any >; getCurrentSubscription: FunctionReference< "query", "internal", { userId: string }, { amount: number | null; cancelAtPeriodEnd: boolean; checkoutId: string | null; createdAt: string; currency: string | null; currentPeriodEnd: string | null; currentPeriodStart: string; customerId: string; endedAt: string | null; id: string; metadata: Record; modifiedAt: string | null; priceId: string; product: { createdAt: string; description: string | null; id: string; isArchived: boolean; isRecurring: boolean; medias: Array<{ checksumEtag: string | null; checksumSha256Base64: string | null; checksumSha256Hex: string | null; createdAt: string; id: string; isUploaded: boolean; lastModifiedAt: string | null; mimeType: string; name: string; organizationId: string; path: string; publicUrl: string; service?: string; size: number; sizeReadable: string; storageVersion: string | null; version: string | null; }>; modifiedAt: string | null; name: string; organizationId: string; prices: Array<{ amountType?: string; createdAt: string; id: string; isArchived: boolean; modifiedAt: string | null; priceAmount?: number; priceCurrency?: string; productId: string; recurringInterval?: "month" | "year" | null; type?: string; }>; recurringInterval?: "month" | "year" | null; }; productId: string; recurringInterval: "month" | "year" | null; startedAt: string | null; status: string; } | null >; getCustomerByUserId: FunctionReference< "query", "internal", { userId: string }, { id: string; userId: string } | null >; getProduct: FunctionReference< "query", "internal", { id: string }, { createdAt: string; description: string | null; id: string; isArchived: boolean; isRecurring: boolean; medias: Array<{ checksumEtag: string | null; checksumSha256Base64: string | null; checksumSha256Hex: string | null; createdAt: string; id: string; isUploaded: boolean; lastModifiedAt: string | null; mimeType: string; name: string; organizationId: string; path: string; publicUrl: string; service?: string; size: number; sizeReadable: string; storageVersion: string | null; version: string | null; }>; modifiedAt: string | null; name: string; organizationId: string; prices: Array<{ amountType?: string; createdAt: string; id: string; isArchived: boolean; modifiedAt: string | null; priceAmount?: number; priceCurrency?: string; productId: string; recurringInterval?: "month" | "year" | null; type?: string; }>; recurringInterval?: "month" | "year" | null; } | null >; getSubscription: FunctionReference< "query", "internal", { id: string }, { amount: number | null; cancelAtPeriodEnd: boolean; checkoutId: string | null; createdAt: string; currency: string | null; currentPeriodEnd: string | null; currentPeriodStart: string; customerId: string; endedAt: string | null; id: string; metadata: Record; modifiedAt: string | null; priceId: string; productId: string; recurringInterval: "month" | "year" | null; startedAt: string | null; status: string; } | null >; insertCustomer: FunctionReference< "mutation", "internal", { id: string; userId: string }, string >; listCustomerSubscriptions: FunctionReference< "query", "internal", { customerId: string }, Array<{ amount: number | null; cancelAtPeriodEnd: boolean; checkoutId: string | null; createdAt: string; currency: string | null; currentPeriodEnd: string | null; currentPeriodStart: string; customerId: string; endedAt: string | null; id: string; metadata: Record; modifiedAt: string | null; priceId: string; productId: string; recurringInterval: "month" | "year" | null; startedAt: string | null; status: string; }> >; listProducts: FunctionReference< "query", "internal", { includeArchived?: boolean }, Array<{ createdAt: string; description: string | null; id: string; isArchived: boolean; isRecurring: boolean; medias: Array<{ checksumEtag: string | null; checksumSha256Base64: string | null; checksumSha256Hex: string | null; createdAt: string; id: string; isUploaded: boolean; lastModifiedAt: string | null; mimeType: string; name: string; organizationId: string; path: string; publicUrl: string; service?: string; size: number; sizeReadable: string; storageVersion: string | null; version: string | null; }>; modifiedAt: string | null; name: string; organizationId: string; priceAmount?: number; prices: Array<{ amountType?: string; createdAt: string; id: string; isArchived: boolean; modifiedAt: string | null; priceAmount?: number; priceCurrency?: string; productId: string; recurringInterval?: "month" | "year" | null; type?: string; }>; recurringInterval?: "month" | "year" | null; }> >; listUserSubscriptions: FunctionReference< "query", "internal", { userId: string }, Array<{ amount: number | null; cancelAtPeriodEnd: boolean; checkoutId: string | null; createdAt: string; currency: string | null; currentPeriodEnd: string | null; currentPeriodStart: string; customerId: string; endedAt: string | null; id: string; metadata: Record; modifiedAt: string | null; priceId: string; product: { createdAt: string; description: string | null; id: string; isArchived: boolean; isRecurring: boolean; medias: Array<{ checksumEtag: string | null; checksumSha256Base64: string | null; checksumSha256Hex: string | null; createdAt: string; id: string; isUploaded: boolean; lastModifiedAt: string | null; mimeType: string; name: string; organizationId: string; path: string; publicUrl: string; service?: string; size: number; sizeReadable: string; storageVersion: string | null; version: string | null; }>; modifiedAt: string | null; name: string; organizationId: string; prices: Array<{ amountType?: string; createdAt: string; id: string; isArchived: boolean; modifiedAt: string | null; priceAmount?: number; priceCurrency?: string; productId: string; recurringInterval?: "month" | "year" | null; type?: string; }>; recurringInterval?: "month" | "year" | null; } | null; productId: string; recurringInterval: "month" | "year" | null; startedAt: string | null; status: string; }> >; updateProduct: FunctionReference< "mutation", "internal", { product: { createdAt: string; description: string | null; id: string; isArchived: boolean; isRecurring: boolean; medias: Array<{ checksumEtag: string | null; checksumSha256Base64: string | null; checksumSha256Hex: string | null; createdAt: string; id: string; isUploaded: boolean; lastModifiedAt: string | null; mimeType: string; name: string; organizationId: string; path: string; publicUrl: string; service?: string; size: number; sizeReadable: string; storageVersion: string | null; version: string | null; }>; modifiedAt: string | null; name: string; organizationId: string; prices: Array<{ amountType?: string; createdAt: string; id: string; isArchived: boolean; modifiedAt: string | null; priceAmount?: number; priceCurrency?: string; productId: string; recurringInterval?: "month" | "year" | null; type?: string; }>; recurringInterval?: "month" | "year" | null; }; }, any >; updateSubscription: FunctionReference< "mutation", "internal", { subscription: { amount: number | null; cancelAtPeriodEnd: boolean; checkoutId: string | null; createdAt: string; currency: string | null; currentPeriodEnd: string | null; currentPeriodStart: string; customerId: string; endedAt: string | null; id: string; metadata: Record; modifiedAt: string | null; priceId: string; productId: string; recurringInterval: "month" | "year" | null; startedAt: string | null; status: string; }; }, any >; upsertCustomer: FunctionReference< "mutation", "internal", { customerId: string; userId: string }, string >; }; }; migrations: { lib: { cancel: FunctionReference< "mutation", "internal", { name: string }, { batchSize?: number; cursor?: string | null; error?: string; isDone: boolean; latestEnd?: number; latestStart: number; name: string; next?: Array; processed: number; state: "inProgress" | "success" | "failed" | "canceled" | "unknown"; } >; cancelAll: FunctionReference< "mutation", "internal", { sinceTs?: number }, Array<{ batchSize?: number; cursor?: string | null; error?: string; isDone: boolean; latestEnd?: number; latestStart: number; name: string; next?: Array; processed: number; state: "inProgress" | "success" | "failed" | "canceled" | "unknown"; }> >; clearAll: FunctionReference< "mutation", "internal", { before?: number }, null >; getStatus: FunctionReference< "query", "internal", { limit?: number; names?: Array }, Array<{ batchSize?: number; cursor?: string | null; error?: string; isDone: boolean; latestEnd?: number; latestStart: number; name: string; next?: Array; processed: number; state: "inProgress" | "success" | "failed" | "canceled" | "unknown"; }> >; migrate: FunctionReference< "mutation", "internal", { batchSize?: number; cursor?: string | null; dryRun: boolean; fnHandle: string; name: string; next?: Array<{ fnHandle: string; name: string }>; }, { batchSize?: number; cursor?: string | null; error?: string; isDone: boolean; latestEnd?: number; latestStart: number; name: string; next?: Array; processed: number; state: "inProgress" | "success" | "failed" | "canceled" | "unknown"; } >; }; }; };