/* tslint:disable */ /* eslint-disable */ /** * This file was automatically generated by Payload. * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config, * and re-run `payload generate:types` to regenerate this file. */ /** * Supported timezones in IANA format. * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "supportedTimezones". */ export type SupportedTimezones = | 'Pacific/Midway' | 'Pacific/Niue' | 'Pacific/Honolulu' | 'Pacific/Rarotonga' | 'America/Anchorage' | 'Pacific/Gambier' | 'America/Los_Angeles' | 'America/Tijuana' | 'America/Denver' | 'America/Phoenix' | 'America/Chicago' | 'America/Guatemala' | 'America/New_York' | 'America/Bogota' | 'America/Caracas' | 'America/Santiago' | 'America/Buenos_Aires' | 'America/Sao_Paulo' | 'Atlantic/South_Georgia' | 'Atlantic/Azores' | 'Atlantic/Cape_Verde' | 'Europe/London' | 'Europe/Berlin' | 'Africa/Lagos' | 'Europe/Athens' | 'Africa/Cairo' | 'Europe/Moscow' | 'Asia/Riyadh' | 'Asia/Dubai' | 'Asia/Baku' | 'Asia/Karachi' | 'Asia/Tashkent' | 'Asia/Calcutta' | 'Asia/Dhaka' | 'Asia/Almaty' | 'Asia/Jakarta' | 'Asia/Bangkok' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Tokyo' | 'Asia/Seoul' | 'Australia/Brisbane' | 'Australia/Sydney' | 'Pacific/Guam' | 'Pacific/Noumea' | 'Pacific/Auckland' | 'Pacific/Fiji'; export interface Config { auth: { users: UserAuthOperations; apikeys: ApikeyAuthOperations; }; blocks: {}; collections: { functions: Function; workflows: Workflow; agents: Agent; services: Service; queues: Queue; tasks: Task; goals: Goal; plans: Plan; waitlist: Waitlist; nouns: Noun; verbs: Verb; databases: Database; resources: Resource; chatResources: ChatResource; relationships: Relationship; integrationCategories: IntegrationCategory; integrations: Integration; connectAccounts: ConnectAccount; connections: Connection; integrationTriggers: IntegrationTrigger; integrationActions: IntegrationAction; triggers: Trigger; searches: Search; actions: Action; experiments: Experiment; experimentMetrics: ExperimentMetric; models: Model; providers: Provider; labs: Lab; prompts: Prompt; settings: Setting; files: File; types: Type; modules: Module; packages: Package; deployments: Deployment; benchmarks: Benchmark; evals: Eval; evalRuns: EvalRun; evalResults: EvalResult; datasets: Dataset; events: Event; errors: Error; generations: Generation; generationBatches: GenerationBatch; traces: Trace; kpis: Kpi; organizations: Organization; billingPlans: BillingPlan; subscriptions: Subscription; usage: Usage; config: SyncConfig; projects: Project; domains: Domain; users: User; roles: Role; tags: Tag; webhooks: Webhook; apikeys: Apikey; oauthClients: OauthClient; oauthCodes: OauthCode; oauthTokens: OauthToken; 'payload-jobs': PayloadJob; 'payload-locked-documents': PayloadLockedDocument; 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; collectionsJoins: { queues: { tasks: 'tasks'; }; tasks: { subtasks: 'tasks'; dependents: 'tasks'; }; nouns: { resources: 'resources'; }; resources: { subjectOf: 'relationships'; }; relationships: { object: 'resources'; }; generationBatches: { generations: 'generations'; }; kpis: { goals: 'goals'; }; projects: { domains: 'domains'; }; }; collectionsSelect: { functions: FunctionsSelect | FunctionsSelect; workflows: WorkflowsSelect | WorkflowsSelect; agents: AgentsSelect | AgentsSelect; services: ServicesSelect | ServicesSelect; queues: QueuesSelect | QueuesSelect; tasks: TasksSelect | TasksSelect; goals: GoalsSelect | GoalsSelect; plans: PlansSelect | PlansSelect; waitlist: WaitlistSelect | WaitlistSelect; nouns: NounsSelect | NounsSelect; verbs: VerbsSelect | VerbsSelect; databases: DatabasesSelect | DatabasesSelect; resources: ResourcesSelect | ResourcesSelect; chatResources: ChatResourcesSelect | ChatResourcesSelect; relationships: RelationshipsSelect | RelationshipsSelect; integrationCategories: IntegrationCategoriesSelect | IntegrationCategoriesSelect; integrations: IntegrationsSelect | IntegrationsSelect; connectAccounts: ConnectAccountsSelect | ConnectAccountsSelect; connections: ConnectionsSelect | ConnectionsSelect; integrationTriggers: IntegrationTriggersSelect | IntegrationTriggersSelect; integrationActions: IntegrationActionsSelect | IntegrationActionsSelect; triggers: TriggersSelect | TriggersSelect; searches: SearchesSelect | SearchesSelect; actions: ActionsSelect | ActionsSelect; experiments: ExperimentsSelect | ExperimentsSelect; experimentMetrics: ExperimentMetricsSelect | ExperimentMetricsSelect; models: ModelsSelect | ModelsSelect; providers: ProvidersSelect | ProvidersSelect; labs: LabsSelect | LabsSelect; prompts: PromptsSelect | PromptsSelect; settings: SettingsSelect | SettingsSelect; files: FilesSelect | FilesSelect; types: TypesSelect | TypesSelect; modules: ModulesSelect | ModulesSelect; packages: PackagesSelect | PackagesSelect; deployments: DeploymentsSelect | DeploymentsSelect; benchmarks: BenchmarksSelect | BenchmarksSelect; evals: EvalsSelect | EvalsSelect; evalRuns: EvalRunsSelect | EvalRunsSelect; evalResults: EvalResultsSelect | EvalResultsSelect; datasets: DatasetsSelect | DatasetsSelect; events: EventsSelect | EventsSelect; errors: ErrorsSelect | ErrorsSelect; generations: GenerationsSelect | GenerationsSelect; generationBatches: GenerationBatchesSelect | GenerationBatchesSelect; traces: TracesSelect | TracesSelect; kpis: KpisSelect | KpisSelect; organizations: OrganizationsSelect | OrganizationsSelect; billingPlans: BillingPlansSelect | BillingPlansSelect; subscriptions: SubscriptionsSelect | SubscriptionsSelect; usage: UsageSelect | UsageSelect; config: ConfigSelect | ConfigSelect; projects: ProjectsSelect | ProjectsSelect; domains: DomainsSelect | DomainsSelect; users: UsersSelect | UsersSelect; roles: RolesSelect | RolesSelect; tags: TagsSelect | TagsSelect; webhooks: WebhooksSelect | WebhooksSelect; apikeys: ApikeysSelect | ApikeysSelect; oauthClients: OauthClientsSelect | OauthClientsSelect; oauthCodes: OauthCodesSelect | OauthCodesSelect; oauthTokens: OauthTokensSelect | OauthTokensSelect; 'payload-jobs': PayloadJobsSelect | PayloadJobsSelect; 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; 'payload-migrations': PayloadMigrationsSelect | PayloadMigrationsSelect; }; db: { defaultIDType: string; }; globals: {}; globalsSelect: {}; locale: null; user: | (User & { collection: 'users'; }) | (Apikey & { collection: 'apikeys'; }); jobs: { tasks: { createRecord: TaskCreateRecord; executeFunction: TaskExecuteFunction; generateCode: TaskGenerateCode; requestHumanFeedback: TaskRequestHumanFeedback; monitorHumanFeedbackTask: TaskMonitorHumanFeedbackTask; executeAgentFunction: TaskExecuteAgentFunction; updateSlackMessage: TaskUpdateSlackMessage; processBatchOpenAI: TaskProcessBatchOpenAI; processBatchAnthropic: TaskProcessBatchAnthropic; processBatchGoogleVertexAI: TaskProcessBatchGoogleVertexAI; processBatchParasail: TaskProcessBatchParasail; processBatchCloudflare: TaskProcessBatchCloudflare; processBatchGroq: TaskProcessBatchGroq; createGenerationBatch: TaskCreateGenerationBatch; generateFunctionExamples: TaskGenerateFunctionExamples; executeCodeFunction: TaskExecuteCodeFunction; processCodeFunctionWrapper: TaskProcessCodeFunctionWrapper; processCodeFunction: TaskProcessCodeFunction; deployWorker: TaskDeployWorker; generateResourceEmbedding: TaskGenerateResourceEmbedding; generateThingEmbedding: TaskGenerateThingEmbedding; searchThings: TaskSearchThings; hybridSearchThings: TaskHybridSearchThings; generateEmbedding: TaskGenerateEmbedding; inflectNouns: TaskInflectNouns; conjugateVerbs: TaskConjugateVerbs; analyzeFunction: TaskAnalyzeFunction; deliverWebhook: TaskDeliverWebhook; initiateComposioConnection: TaskInitiateComposioConnection; processDomain: TaskProcessDomain; postGithubComment: TaskPostGithubComment; githubFileOperations: TaskGithubFileOperations; saveExecutionResults: TaskSaveExecutionResults; researchTask: TaskResearchTask; sendResearchResultsToSlack: TaskSendResearchResultsToSlack; handleLinearWebhook: TaskHandleLinearWebhook; syncTaskToLinear: TaskSyncTaskToLinear; deleteLinearIssue: TaskDeleteLinearIssue; checkServiceHealth: TaskCheckServiceHealth; discoverServices: TaskDiscoverServices; inline: { input: unknown; output: unknown; }; }; workflows: { handleGithubEvent: WorkflowHandleGithubEvent; handleStripeEvent: WorkflowHandleStripeEvent; recordUsageEvent: WorkflowRecordUsageEvent; }; }; } export interface UserAuthOperations { forgotPassword: { email: string; password: string; }; login: { email: string; password: string; }; registerFirstUser: { email: string; password: string; }; unlock: { email: string; password: string; }; } export interface ApikeyAuthOperations { forgotPassword: { email: string; password: string; }; login: { email: string; password: string; }; registerFirstUser: { email: string; password: string; }; unlock: { email: string; password: string; }; } /** * Reusable AI capabilities with typed inputs and outputs * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "functions". */ export interface Function { id: string; tenant?: (string | null) | Project; name: string; type?: ('Generation' | 'Code' | 'Human' | 'Agent') | null; /** * Make this function available to other users */ public?: boolean | null; /** * Original function this was cloned from */ clonedFrom?: (string | null) | Function; /** * Monetization settings for this function */ pricing?: { /** * Enable monetization for this function */ isMonetized?: boolean | null; /** * Billing model for this function */ billingModel?: ('payPerUse' | 'prepaid' | 'postpaid' | 'subscription') | null; /** * Price per use in USD cents (platform fee is 30% above LLM costs) */ pricePerUse?: number | null; /** * Unit of measurement for consumption */ consumptionUnit?: ('tokens' | 'requests' | 'compute_ms') | null; /** * Price per consumption unit in USD cents */ consumptionRate?: number | null; /** * Subscription plan for this function */ billingPlan?: (string | null) | BillingPlan; /** * Stripe Product ID (auto-generated) */ stripeProductId?: string | null; /** * Stripe Price ID (auto-generated) */ stripePriceId?: string | null; }; format?: ('Object' | 'ObjectArray' | 'Text' | 'TextArray' | 'Markdown' | 'Code' | 'Video') | null; schemaYaml?: string | null; shape?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; code?: string | null; prompt?: (string | null) | Prompt; role?: string | null; user?: (string | null) | User; agent?: (string | null) | Agent; /** * Example arguments for this function */ examples?: (string | Resource)[] | null; /** * Goals to which this function contributes */ goals?: (string | Goal)[] | null; updatedAt: string; createdAt: string; } /** * Manages projects and their associated domains * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "projects". */ export interface Project { id: string; name?: string | null; domain?: string | null; domains?: { docs?: (string | Domain)[]; hasNextPage?: boolean; totalDocs?: number; }; /** * Goals associated with this project */ goals?: (string | Goal)[] | null; updatedAt: string; createdAt: string; } /** * Manages domain connections and DNS configuration * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "domains". */ export interface Domain { id: string; name: string; domain: string; project: string | Project; status?: ('pending' | 'active' | 'error') | null; hostnames?: | { hostname?: string | null; id?: string | null; }[] | null; vercelId?: string | null; cloudflareId?: string | null; errorMessage?: string | null; updatedAt: string; createdAt: string; } /** * Manages objectives and key results for tracking progress * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "goals". */ export interface Goal { id: string; tenant?: (string | null) | Project; title: string; /** * The objective of this goal */ objective: string; keyResults: { description: string; value: number; kpiRelationship?: (string | null) | Kpi; id?: string | null; }[]; updatedAt: string; createdAt: string; } /** * Manages key performance indicators for tracking business metrics * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "kpis". */ export interface Kpi { id: string; tenant?: (string | null) | Project; name: string; /** * Current value of the KPI */ value?: number | null; /** * Target value of the KPI */ target?: number | null; /** * Unit of measurement (e.g., $, %, users) */ unit?: string | null; /** * Format for displaying the KPI value */ format?: ('number' | 'currency' | 'percentage') | null; /** * Detailed description of what this KPI measures */ description?: string | null; /** * The project or tenant this KPI belongs to */ project?: (string | null) | Project; goals?: { docs?: (string | Goal)[]; hasNextPage?: boolean; totalDocs?: number; }; updatedAt: string; createdAt: string; } /** * Define pricing plans for the platform * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "billingPlans". */ export interface BillingPlan { id: string; /** * Name of the billing plan */ name: string; /** * Description of the billing plan */ description?: string | null; /** * Type of billing model */ billingType: 'prepaid' | 'postpaid' | 'subscription'; /** * Amount in cents */ amount: number; currency: 'usd' | 'eur' | 'gbp'; /** * Billing interval for subscriptions */ interval?: ('month' | 'year') | null; /** * Number of credits included (for pre-paid plans) */ credits?: number | null; /** * Stripe Product ID (auto-generated) */ stripeProductId?: string | null; /** * Stripe Price ID (auto-generated) */ stripePriceId?: string | null; /** * Whether this plan is active and available for purchase */ isActive?: boolean | null; updatedAt: string; createdAt: string; } /** * Manages prompt templates for AI model interactions * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "prompts". */ export interface Prompt { id: string; tenant?: (string | null) | Project; name?: string | null; system?: string | null; modelName?: string | null; messages?: | { role: 'system' | 'user' | 'assistant' | 'tool'; contentString?: string | null; contentArray?: | { type: 'text' | 'image' | 'file' | 'tool_call' | 'tool_result' | 'reasoning' | 'redacted_reasoning'; text?: string | null; imageString?: string | null; imageFile?: (string | null) | File; dataString?: string | null; dataFile?: (string | null) | File; filename?: string | null; mimeType?: string | null; signature?: string | null; data?: string | null; toolCallId?: string | null; toolName?: string | null; args?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; result?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; isError?: boolean | null; id?: string | null; }[] | null; id?: string | null; }[] | null; questions?: | { question?: string | null; id?: string | null; }[] | null; role?: string | null; instructions?: | { instruction?: string | null; id?: string | null; }[] | null; context?: string | null; examples?: | { title?: string | null; example: string; id?: string | null; }[] | null; paramJsonSchema?: string | null; maxSteps?: number | null; jsonSchema?: string | null; tools?: | { tool?: string | null; id?: string | null; }[] | null; toolsOnly?: boolean | null; text?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "files". */ export interface File { id: string; updatedAt: string; createdAt: string; url?: string | null; thumbnailURL?: string | null; filename: string; mimeType: string; filesize?: number | null; width?: number | null; height?: number | null; focalX?: number | null; focalY?: number | null; sizes?: { thumbnail?: { url?: string | null; width?: number | null; height?: number | null; mimeType?: string | null; filesize?: number | null; filename?: string | null; }; card?: { url?: string | null; width?: number | null; height?: number | null; mimeType?: string | null; filesize?: number | null; filename?: string | null; }; tablet?: { url?: string | null; width?: number | null; height?: number | null; mimeType?: string | null; filesize?: number | null; filename?: string | null; }; }; } /** * Manages user accounts and their associated roles * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "users". */ export interface User { id: string; name: string; image?: string | null; role: 'user' | 'admin' | 'superAdmin'; emailVerified: boolean; /** * User roles for permissions and access control */ roles?: (string | Role)[] | null; tenants?: | { tenant: string | Project; id?: string | null; }[] | null; updatedAt: string; createdAt: string; enableAPIKey?: boolean | null; apiKey?: string | null; apiKeyIndex?: string | null; email: string; resetPasswordToken?: string | null; resetPasswordExpiration?: string | null; salt?: string | null; hash?: string | null; loginAttempts?: number | null; lockUntil?: string | null; password?: string | null; } /** * Manages user roles and permissions within the system * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "roles". */ export interface Role { id: string; name: string; /** * Grant super admin privileges to users with this role */ superAdmin?: boolean | null; updatedAt: string; createdAt: string; } /** * Autonomous AI agents that can perform tasks using functions and workflows * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "agents". */ export interface Agent { id: string; tenant?: (string | null) | Project; name?: string | null; /** * Make this agent available to other users */ public?: boolean | null; /** * Original agent this was cloned from */ clonedFrom?: (string | null) | Agent; /** * Monetization settings for this agent */ pricing?: { /** * Enable monetization for this agent */ isMonetized?: boolean | null; /** * Billing model for this agent */ billingModel?: ('payPerUse' | 'prepaid' | 'postpaid' | 'subscription') | null; /** * Price per use in USD cents (platform fee is 30% above LLM costs) */ pricePerUse?: number | null; /** * Unit of measurement for consumption */ consumptionUnit?: ('tokens' | 'requests' | 'compute_ms') | null; /** * Price per consumption unit in USD cents */ consumptionRate?: number | null; /** * Subscription plan for this agent */ billingPlan?: (string | null) | BillingPlan; /** * Stripe Product ID (auto-generated) */ stripeProductId?: string | null; /** * Stripe Price ID (auto-generated) */ stripePriceId?: string | null; }; /** * Goals to which this agent contributes */ goals?: (string | Goal)[] | null; updatedAt: string; createdAt: string; } /** * Structured data resources with embeddings for semantic search * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "resources". */ export interface Resource { id: string; tenant?: (string | null) | Project; name?: string | null; sqid?: string | null; hash?: string | null; type?: (string | null) | Noun; yaml?: string | null; data?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; embedding?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; subjectOf?: { docs?: (string | Relationship)[]; hasNextPage?: boolean; totalDocs?: number; }; objectOf?: (string | Relationship)[] | null; content?: string | null; updatedAt: string; createdAt: string; } /** * Defines semantic noun entities with their various grammatical forms * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "nouns". */ export interface Noun { id: string; tenant?: (string | null) | Project; name?: string | null; /** * Singular form like User */ singular?: string | null; /** * Plural form like Users */ plural?: string | null; /** * Possessive form like User's */ possessive?: string | null; /** * Plural possessive form like Users' */ pluralPossessive?: string | null; /** * Related verb like Use */ verb?: string | null; /** * Third person singular present tense like Uses */ act?: string | null; /** * Gerund like Using */ activity?: string | null; /** * Past tense like Used */ event?: string | null; /** * Display order in admin interface */ order?: number | null; /** * Admin group for organizing collections */ group?: string | null; type?: (string | Noun)[] | null; resources?: { docs?: (string | Resource)[]; hasNextPage?: boolean; totalDocs?: number; }; updatedAt: string; createdAt: string; } /** * Defines semantic relationships between resources using subject-verb-object patterns * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "relationships". */ export interface Relationship { id: string; subject?: (string | null) | Resource; verb?: (string | null) | Verb; object?: { docs?: (string | Resource)[]; hasNextPage?: boolean; totalDocs?: number; }; hash?: string | null; updatedAt: string; createdAt: string; } /** * Defines action verbs and their conjugations for semantic relationships * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "verbs". */ export interface Verb { id: string; tenant?: (string | null) | Project; /** * Active tense like Create */ action?: string | null; /** * Third person singular present tense like Creates */ act?: string | null; /** * Gerund like Creating */ activity?: string | null; /** * Past tense like Created */ event?: string | null; /** * Subject like Creator */ subject?: string | null; /** * Object like Creation */ object?: string | null; /** * Opposite like Destroy */ inverse?: string | null; /** * Third person singular present tense like Destroys */ inverseAct?: string | null; /** * Gerund like Destroying */ inverseActivity?: string | null; /** * Past tense like Destroyed */ inverseEvent?: string | null; /** * Subject like Destroyer */ inverseSubject?: string | null; /** * Object like Destruction */ inverseObject?: string | null; updatedAt: string; createdAt: string; } /** * Orchestrates functions into reusable business processes * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "workflows". */ export interface Workflow { id: string; tenant?: (string | null) | Project; name?: string | null; type?: string | null; code?: string | null; functions?: (string | null) | Function; module?: (string | null) | Module; package?: (string | null) | Package; deployment?: (string | null) | Deployment; /** * Goals this workflow contributes to */ goals?: (string | Goal)[] | null; /** * Make this workflow available to other users */ public?: boolean | null; /** * Original workflow this was cloned from */ clonedFrom?: (string | null) | Workflow; /** * Monetization settings for this workflow */ pricing?: { /** * Enable monetization for this workflow */ isMonetized?: boolean | null; /** * Billing model for this workflow */ billingModel?: ('payPerUse' | 'prepaid' | 'postpaid' | 'subscription') | null; /** * Price per use in USD cents (platform fee is 30% above LLM costs) */ pricePerUse?: number | null; /** * Unit of measurement for consumption */ consumptionUnit?: ('tokens' | 'requests' | 'compute_ms') | null; /** * Price per consumption unit in USD cents */ consumptionRate?: number | null; /** * Subscription plan for this workflow */ billingPlan?: (string | null) | BillingPlan; /** * Stripe Product ID (auto-generated) */ stripeProductId?: string | null; /** * Stripe Price ID (auto-generated) */ stripePriceId?: string | null; }; updatedAt: string; createdAt: string; } /** * Manages code modules that can be imported and used in functions * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "modules". */ export interface Module { id: string; tenant?: (string | null) | Project; name?: string | null; updatedAt: string; createdAt: string; } /** * Defines packages for publishing to NPM with included collections * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "packages". */ export interface Package { id: string; tenant?: (string | null) | Project; name?: string | null; /** * The package.json content for publishing to NPM */ package?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Collections to include in this package */ collections?: | { /** * Collection slug to include */ items?: string | null; id?: string | null; }[] | null; updatedAt: string; createdAt: string; } /** * Manages deployments of code to production environments * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "deployments". */ export interface Deployment { id: string; tenant?: (string | null) | Project; name?: string | null; updatedAt: string; createdAt: string; } /** * Services-as-Software with billing capabilities * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "services". */ export interface Service { id: string; name: string; status: 'active' | 'inactive' | 'degraded'; description?: string | null; endpoint: string; version?: string | null; /** * Business objective this service aims to achieve */ objective: { description: string; }; /** * Key results for measuring service success */ keyResults?: | { description: string; target?: number | null; currentValue?: number | null; unit?: string | null; dueDate?: string | null; id?: string | null; }[] | null; /** * Service pricing configuration */ pricing: { /** * Pricing model for this service */ model: 'cost_based' | 'margin_based' | 'activity_based' | 'outcome_based'; /** * Base cost in USD */ costBase?: number | null; /** * Fixed costs in USD */ fixedCosts?: number | null; /** * Variable costs in USD */ variableCosts?: number | null; /** * Margin percentage (0-100) */ marginPercentage?: number | null; /** * Billable activities with rates */ activities?: | { name: string; description?: string | null; rate: number; id?: string | null; }[] | null; /** * Billable outcomes with targets and prices */ outcomes?: | { metric: string; description?: string | null; targetValue: number; price: number; unit?: string | null; id?: string | null; }[] | null; }; /** * Service implementation details */ implementation: { type: 'function' | 'workflow' | 'agent'; id: string; version?: string | null; configuration?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; /** * Additional metadata for the service */ metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Manages work queues for task assignment and processing * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "queues". */ export interface Queue { id: string; tenant?: (string | null) | Project; name: string; role: string | Role; tasks?: { docs?: (string | Task)[]; hasNextPage?: boolean; totalDocs?: number; }; updatedAt: string; createdAt: string; } /** * Manages work items and assignments within the platform * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "tasks". */ export interface Task { id: string; tenant?: (string | null) | Project; title: string; status?: ('backlog' | 'todo' | 'in_progress' | 'review' | 'done') | null; queue?: (string | null) | Queue; assigned?: | ( | { relationTo: 'users'; value: string | User; } | { relationTo: 'roles'; value: string | Role; } | { relationTo: 'agents'; value: string | Agent; } )[] | null; parent?: (string | null) | Task; description?: string | null; subtasks?: { docs?: (string | Task)[]; hasNextPage?: boolean; totalDocs?: number; }; dependentOn?: (string | Task)[] | null; dependents?: { docs?: (string | Task)[]; hasNextPage?: boolean; totalDocs?: number; }; metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; linearMetadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Strategic plans with actionable steps to achieve goals * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "plans". */ export interface Plan { id: string; name: string; description?: string | null; status?: ('draft' | 'active' | 'completed' | 'archived') | null; startDate?: string | null; endDate?: string | null; owner?: (string | null) | User; goals?: (string | Goal)[] | null; tags?: (string | Tag)[] | null; priority?: ('low' | 'medium' | 'high' | 'critical') | null; steps?: | { name: string; description?: string | null; order?: number | null; duration?: number | null; assignee?: (string | null) | User; status?: ('not_started' | 'in_progress' | 'completed' | 'blocked') | null; id?: string | null; }[] | null; updatedAt: string; createdAt: string; } /** * Manages tags for categorizing and organizing content * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "tags". */ export interface Tag { id: string; updatedAt: string; createdAt: string; } /** * Manages waitlist email submissions * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "waitlist". */ export interface Waitlist { id: string; email: string; domain: string; createdAt: string; status?: ('pending' | 'contacted' | 'converted') | null; notes?: string | null; updatedAt: string; } /** * Manages database connections and configurations * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "databases". */ export interface Database { id: string; tenant?: (string | null) | Project; name: string; domain: string; type: 'Integrated' | 'Dedicated' | 'Self_Hosted'; schemaEnforcement: 'flexible' | 'enforced'; databaseType?: ('Mongo' | 'Postgres' | 'Sqlite') | null; regions?: | ( | 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'eu-west-1' | 'ap-northeast-1' | 'ap-southeast-1' | 'eu-central-1' | 'ap-south-1' ) | null; nouns?: (string | Noun)[] | null; updatedAt: string; createdAt: string; } /** * User-generated chat content and messages * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "chatResources". */ export interface ChatResource { id: string; tenant?: (string | null) | Project; title: string; user: string | User; resourceType: 'chat' | 'message' | 'document' | 'suggestion'; content?: string | null; parts?: | { type?: ('text' | 'image' | 'code' | 'file') | null; content?: string | null; metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; id?: string | null; }[] | null; parent?: (string | null) | ChatResource; metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; visibility?: ('private' | 'public') | null; votes?: | { user?: (string | null) | User; type?: ('up' | 'down') | null; createdAt?: string | null; id?: string | null; }[] | null; kind?: ('text' | 'code' | 'image') | null; updatedAt: string; createdAt: string; } /** * Organizes integrations into logical categories for easier discovery * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrationCategories". */ export interface IntegrationCategory { id: string; tenant?: (string | null) | Project; category?: string | null; updatedAt: string; createdAt: string; } /** * Manages external service integrations and their configurations * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrations". */ export interface Integration { tenant?: (string | null) | Project; id: string; name?: string | null; provider?: ('composio' | 'linear') | null; updatedAt: string; createdAt: string; } /** * Store Stripe Connect account information * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "connectAccounts". */ export interface ConnectAccount { id: string; tenant?: (string | null) | Project; /** * Name of the connection */ name: string; /** * User who created this connection */ user?: (string | null) | User; /** * Integration this connection is for */ integration?: (string | null) | Integration; /** * Project associated with this Connect account */ project: string | Project; /** * Stripe Connect Account ID */ stripeAccountId: string; /** * Type of Stripe Connect account */ accountType: 'standard' | 'express' | 'custom'; /** * Current status of the Connect account */ status: 'pending' | 'active' | 'restricted' | 'rejected'; /** * Whether charges are enabled for this account */ chargesEnabled?: boolean | null; /** * Whether payouts are enabled for this account */ payoutsEnabled?: boolean | null; /** * Platform fee percentage for this account */ platformFeePercent?: number | null; /** * Additional metadata from Stripe */ metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Manages connections to external services and APIs * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "connections". */ export interface Connection { id: string; tenant?: (string | null) | Project; name?: string | null; user: string | User; integration: string | Integration; status?: ('active' | 'inactive' | 'pending') | null; metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Defines events from external systems that can trigger workflows * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrationTriggers". */ export interface IntegrationTrigger { id: string; tenant?: (string | null) | Project; displayName?: string | null; description?: string | null; appKey?: string | null; appName?: string | null; appId?: string | null; logo?: string | null; payload?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; config?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Defines actions that can be performed through external integrations * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrationActions". */ export interface IntegrationAction { id: string; tenant?: (string | null) | Project; displayName?: string | null; description?: string | null; appKey?: string | null; appName?: string | null; appId?: string | null; version?: string | null; parameters?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; response?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Defines event triggers that can initiate workflows and actions * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "triggers". */ export interface Trigger { id: string; tenant?: (string | null) | Project; name?: string | null; payload?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; config?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Records and manages search queries and their results * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "searches". */ export interface Search { id: string; tenant?: (string | null) | Project; name?: string | null; query?: string | null; searchType?: ('text' | 'vector' | 'hybrid') | null; results?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; embedding?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Records of actions performed within the system * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "actions". */ export interface Action { id: string; name?: string | null; description?: string | null; functionId?: (string | null) | Function; verbId?: (string | null) | Verb; parameters?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; result?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Feature flags and A/B testing experiments with real-world user feedback metrics * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "experiments". */ export interface Experiment { id: string; tenant?: (string | null) | Project; /** * Unique name for the experiment (used as the feature flag key) */ name: string; /** * Description of what this experiment is testing */ description?: string | null; /** * Current status of the experiment */ status: 'draft' | 'active' | 'paused' | 'completed'; /** * Feature flag provider to use for this experiment */ provider: 'vercel' | 'internal'; /** * Different variations to test in this experiment */ variants: { id: string | null; /** * Description of this variant */ description?: string | null; /** * Whether this is the control/baseline variant */ isControl?: boolean | null; /** * Configuration values for this variant */ config: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }[]; /** * Metrics to track for this experiment */ metrics?: | { /** * Name of the metric (e.g., click_through_rate, conversion_rate) */ name: string; /** * Description of what this metric measures */ description?: string | null; /** * Whether higher values for this metric are better */ higherIsBetter?: boolean | null; /** * Whether this is a primary metric for the experiment */ primary?: boolean | null; id?: string | null; }[] | null; /** * How traffic is allocated between variants */ trafficAllocation: { /** * Type of traffic allocation */ type: 'percentage' | 'user' | 'session'; /** * Allocation values for each variant (e.g., {"control": 50, "variant-a": 25, "variant-b": 25}) */ values: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; /** * Targeting rules for this experiment (optional) */ targeting?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Duration of the experiment */ duration?: { /** * When the experiment starts */ startDate?: string | null; /** * When the experiment ends */ endDate?: string | null; }; /** * Aggregated results of the experiment (updated periodically) */ results?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Metrics collected from real-world user feedback for experiments * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "experimentMetrics". */ export interface ExperimentMetric { id: string; /** * The experiment this metric is associated with */ experimentId: string | Experiment; /** * The variant ID this metric is for */ variantId: string; /** * User ID associated with this metric (if available) */ userId?: string | null; /** * Session ID associated with this metric (if available) */ sessionId?: string | null; /** * Name of the metric (e.g., click_through_rate, conversion_rate) */ metricName: string; /** * Numeric value of the metric */ value: number; /** * When this metric was recorded */ timestamp?: string | null; /** * Additional metadata for this metric (e.g., browser, device, page) */ metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Defines AI models with their capabilities and pricing information * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "models". */ export interface Model { tenant?: (string | null) | Project; name: string; id: string; provider: string | Provider; lab?: (string | null) | Lab; description?: string | null; context_length?: number | null; pricing?: { prompt?: number | null; completion?: number | null; }; capabilities?: | { capability?: string | null; id?: string | null; }[] | null; modelUrl?: string | null; imageUrl?: string | null; updatedAt: string; createdAt: string; } /** * Defines AI service providers and their connection details * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "providers". */ export interface Provider { name: string; id: string; description?: string | null; website?: string | null; logoUrl?: string | null; updatedAt: string; createdAt: string; } /** * Defines research labs and their experimental AI capabilities * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "labs". */ export interface Lab { name: string; id: string; description?: string | null; website?: string | null; logoUrl?: string | null; updatedAt: string; createdAt: string; } /** * Manages configuration settings for experiments and features * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "settings". */ export interface Setting { id: string; tenant?: (string | null) | Project; name?: string | null; settings?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Defines TypeScript type definitions used throughout the system * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "types". */ export interface Type { id: string; tenant?: (string | null) | Project; name?: string | null; hash?: string | null; type?: string | null; json?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; schema?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Tracks performance benchmarks for AI functions and models * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "benchmarks". */ export interface Benchmark { id: string; tenant?: (string | null) | Project; name?: string | null; updatedAt: string; createdAt: string; } /** * Defines evaluation tests for measuring AI function performance * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "evals". */ export interface Eval { id: string; tenant?: (string | null) | Project; name: string; description?: string | null; /** * Input data for the evaluation test */ input?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Expected output data for comparison */ expected?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Tags for categorizing and filtering tests */ tags?: | { tag?: string | null; id?: string | null; }[] | null; updatedAt: string; createdAt: string; } /** * Records of evaluation test runs and their results * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "evalRuns". */ export interface EvalRun { id: string; tenant?: (string | null) | Project; name: string; description?: string | null; /** * References to evaluation tests included in this run */ testIds?: | { test: string | Eval; id?: string | null; }[] | null; /** * References to evaluation results for this run */ results?: | { result?: (string | null) | EvalResult; id?: string | null; }[] | null; /** * When the evaluation run started */ startedAt?: string | null; /** * When the evaluation run completed */ completedAt?: string | null; updatedAt: string; createdAt: string; } /** * Stores detailed results from evaluation test runs * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "evalResults". */ export interface EvalResult { id: string; tenant?: (string | null) | Project; name: string; /** * Reference to the evaluation test this result is for */ testId: string | Eval; /** * Output data from running the test */ output?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Overall score for this evaluation result (0-1) */ score?: number | null; /** * Detailed metrics for this evaluation result */ metrics?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Duration of the test execution in milliseconds */ duration?: number | null; /** * Error message if the test execution failed */ error?: string | null; updatedAt: string; createdAt: string; } /** * Manages datasets used for training and evaluating AI models * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "datasets". */ export interface Dataset { id: string; tenant?: (string | null) | Project; name?: string | null; updatedAt: string; createdAt: string; } /** * Records of all significant occurrences within the platform * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "events". */ export interface Event { id: string; tenant?: (string | null) | Project; type?: string | null; source?: string | null; subject?: (string | null) | Resource; data?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; trigger?: (string | null) | Trigger; search?: (string | null) | Search; function?: (string | null) | Function; workflow?: (string | null) | Workflow; agent?: (string | null) | Agent; generations?: (string | Generation)[] | null; updatedAt: string; createdAt: string; } /** * Records of AI model generation requests and responses * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "generations". */ export interface Generation { id: string; tenant?: (string | null) | Project; settings?: (string | null) | Resource; request?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; response?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; error?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; status?: ('success' | 'error') | null; duration?: number | null; processingMode?: ('realtime' | 'batch') | null; batch?: (string | null) | GenerationBatch; updatedAt: string; createdAt: string; } /** * Batches * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "generationBatches". */ export interface GenerationBatch { id: string; name: string; provider: 'openai' | 'anthropic' | 'google' | 'parasail' | 'cloudflare' | 'groq'; status?: ('queued' | 'processing' | 'completed' | 'failed') | null; /** * Provider-specific batch configuration */ batchConfig?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * ID of the batch job in the provider system */ providerBatchId?: string | null; generations?: { docs?: (string | Generation)[]; hasNextPage?: boolean; totalDocs?: number; }; startedAt?: string | null; completedAt?: string | null; updatedAt: string; createdAt: string; } /** * Records system errors and exceptions for debugging * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "errors". */ export interface Error { id: string; tenant?: (string | null) | Project; message: string; /** * Error stack trace */ stack?: string | null; /** * Error digest for identifying specific errors */ digest?: string | null; /** * URL where the error occurred */ url?: string | null; /** * Source of the error (client/server/etc) */ source?: string | null; updatedAt: string; createdAt: string; } /** * Tracks execution paths and performance metrics for debugging * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "traces". */ export interface Trace { id: string; tenant?: (string | null) | Project; name?: string | null; updatedAt: string; createdAt: string; } /** * Organizations that can be Stripe customers * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "organizations". */ export interface Organization { id: string; /** * Name of the organization */ name: string; /** * Primary user associated with this organization */ user: string | User; /** * Stripe Customer ID */ stripeCustomerId?: string | null; /** * Email address used for this organization */ email?: string | null; /** * Additional billing details from Stripe */ billingDetails?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Default payment method ID */ defaultPaymentMethod?: string | null; /** * Users who are members of this organization */ members?: | { user: string | User; role: 'admin' | 'member' | 'viewer'; id?: string | null; }[] | null; /** * Additional metadata from Stripe */ metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Track active subscriptions * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "subscriptions". */ export interface Subscription { id: string; /** * Stripe customer for this subscription */ organization: string | Organization; /** * Billing plan for this subscription */ plan: string | BillingPlan; /** * Current status of the subscription */ status: 'active' | 'past_due' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'trialing' | 'unpaid'; /** * Stripe Subscription ID */ stripeSubscriptionId: string; /** * Start of the current billing period */ periodStart?: string | null; /** * End of the current billing period */ periodEnd?: string | null; /** * Whether the subscription will be canceled at the end of the current period */ cancelAtPeriodEnd?: boolean | null; /** * Additional metadata from Stripe */ metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Record consumption for usage-based billing * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "usage". */ export interface Usage { id: string; /** * Stripe customer for this usage record */ organization: string | Organization; /** * Type of resource being used */ resourceType: 'function' | 'workflow' | 'agent'; /** * ID of the resource being used */ resourceId: string; /** * Amount of usage (tokens, requests, compute time, etc.) */ quantity: number; /** * Unit of measurement for the usage */ unit: 'tokens' | 'requests' | 'compute_ms' | 'credits'; /** * Cost in cents for this usage (if applicable) */ cost?: number | null; /** * When this usage occurred */ timestamp: string; /** * Stripe Usage Record ID (if applicable) */ stripeUsageRecordId?: string | null; /** * Additional metadata about this usage */ metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * Configuration for .ai folder synchronization * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "config". */ export interface SyncConfig { id: string; /** * Relative path within .ai folder */ path: string; /** * SHA-256 hash of file content to detect changes */ contentHash: string; /** * Project this configuration belongs to */ project: string | Project; /** * Timestamp of last successful sync */ lastSyncedAt: string; /** * Timestamp when file was last modified locally */ lastModifiedLocally?: string | null; /** * Timestamp when file was last modified in the database */ lastModifiedRemotely?: string | null; /** * Timestamp when file was last modified in GitHub */ lastModifiedGithub?: string | null; /** * Current sync status of the file */ syncStatus: 'synced' | 'conflict' | 'pending'; /** * Additional metadata for the file */ data?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Sync configuration settings */ syncConfig: { /** * Source of truth for synchronization */ syncMode: 'database' | 'local' | 'github'; /** * GitHub repository settings */ github?: { /** * GitHub repository in owner/repo format */ repository?: string | null; /** * Branch to sync with */ branch?: string | null; /** * Create PRs for changes instead of direct commits */ createPRs?: boolean | null; /** * Template for PR descriptions */ prTemplate?: string | null; }; /** * File patterns to track for synchronization */ trackFiles?: | { /** * File pattern (e.g., *.json, *.ts, schemas/*) */ pattern?: string | null; id?: string | null; }[] | null; }; updatedAt: string; createdAt: string; } /** * Manages webhook endpoints for event notifications * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "webhooks". */ export interface Webhook { id: string; name?: string | null; url: string; filters?: | { /** * Use Noun.Verb format (e.g., Listing.Created) or wildcards (e.g., Listing.* or *.Created) */ pattern: string; id?: string | null; }[] | null; enabled?: boolean | null; secret?: string | null; updatedAt: string; createdAt: string; } /** * Manages API keys for authentication and access control * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "apikeys". */ export interface Apikey { id: string; name: string; type: 'api' | 'llm'; user?: (string | null) | User; organization?: (string | null) | Organization; email?: string | null; description?: string | null; hash?: string | null; label?: string | null; url?: string | null; /** * Domains of authorized Cloudflare Workers */ cfWorkerDomains?: | { domain: string; id?: string | null; }[] | null; updatedAt: string; createdAt: string; enableAPIKey?: boolean | null; apiKey?: string | null; apiKeyIndex?: string | null; } /** * Manages OAuth client applications and their credentials * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "oauthClients". */ export interface OauthClient { id: string; name: string; clientId: string; clientSecret: string; redirectURLs: { url: string; id?: string | null; }[]; disabled?: boolean | null; createdBy?: (string | null) | User; updatedAt: string; createdAt: string; } /** * Manages OAuth authorization codes for authentication flows * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "oauthCodes". */ export interface OauthCode { id: string; code: string; provider: string; redirectUri: string; userId: string | User; expiresAt: string; used?: boolean | null; updatedAt: string; createdAt: string; } /** * Manages OAuth access tokens for authenticated users * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "oauthTokens". */ export interface OauthToken { id: string; token: string; provider: string; userId: string | User; clientId: string; expiresAt: string; scope?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-jobs". */ export interface PayloadJob { id: string; /** * Input data provided to the job */ input?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; taskStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; completedAt?: string | null; totalTried?: number | null; /** * If hasError is true this job will not be retried */ hasError?: boolean | null; /** * If hasError is true, this is the error that caused it */ error?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; /** * Task execution log */ log?: | { executedAt: string; completedAt: string; taskSlug: | 'inline' | 'createRecord' | 'executeFunction' | 'generateCode' | 'requestHumanFeedback' | 'monitorHumanFeedbackTask' | 'executeAgentFunction' | 'updateSlackMessage' | 'processBatchOpenAI' | 'processBatchAnthropic' | 'processBatchGoogleVertexAI' | 'processBatchParasail' | 'processBatchCloudflare' | 'processBatchGroq' | 'createGenerationBatch' | 'generateFunctionExamples' | 'executeCodeFunction' | 'processCodeFunctionWrapper' | 'processCodeFunction' | 'deployWorker' | 'generateResourceEmbedding' | 'generateThingEmbedding' | 'searchThings' | 'hybridSearchThings' | 'generateEmbedding' | 'inflectNouns' | 'conjugateVerbs' | 'analyzeFunction' | 'deliverWebhook' | 'initiateComposioConnection' | 'processDomain' | 'postGithubComment' | 'githubFileOperations' | 'saveExecutionResults' | 'researchTask' | 'sendResearchResultsToSlack' | 'handleLinearWebhook' | 'syncTaskToLinear' | 'deleteLinearIssue' | 'checkServiceHealth' | 'discoverServices'; taskID: string; input?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; output?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; state: 'failed' | 'succeeded'; error?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; parent?: { taskSlug?: | ( | 'inline' | 'createRecord' | 'executeFunction' | 'generateCode' | 'requestHumanFeedback' | 'monitorHumanFeedbackTask' | 'executeAgentFunction' | 'updateSlackMessage' | 'processBatchOpenAI' | 'processBatchAnthropic' | 'processBatchGoogleVertexAI' | 'processBatchParasail' | 'processBatchCloudflare' | 'processBatchGroq' | 'createGenerationBatch' | 'generateFunctionExamples' | 'executeCodeFunction' | 'processCodeFunctionWrapper' | 'processCodeFunction' | 'deployWorker' | 'generateResourceEmbedding' | 'generateThingEmbedding' | 'searchThings' | 'hybridSearchThings' | 'generateEmbedding' | 'inflectNouns' | 'conjugateVerbs' | 'analyzeFunction' | 'deliverWebhook' | 'initiateComposioConnection' | 'processDomain' | 'postGithubComment' | 'githubFileOperations' | 'saveExecutionResults' | 'researchTask' | 'sendResearchResultsToSlack' | 'handleLinearWebhook' | 'syncTaskToLinear' | 'deleteLinearIssue' | 'checkServiceHealth' | 'discoverServices' ) | null; taskID?: string | null; }; id?: string | null; }[] | null; workflowSlug?: ('handleGithubEvent' | 'handleStripeEvent' | 'recordUsageEvent') | null; taskSlug?: | ( | 'inline' | 'createRecord' | 'executeFunction' | 'generateCode' | 'requestHumanFeedback' | 'monitorHumanFeedbackTask' | 'executeAgentFunction' | 'updateSlackMessage' | 'processBatchOpenAI' | 'processBatchAnthropic' | 'processBatchGoogleVertexAI' | 'processBatchParasail' | 'processBatchCloudflare' | 'processBatchGroq' | 'createGenerationBatch' | 'generateFunctionExamples' | 'executeCodeFunction' | 'processCodeFunctionWrapper' | 'processCodeFunction' | 'deployWorker' | 'generateResourceEmbedding' | 'generateThingEmbedding' | 'searchThings' | 'hybridSearchThings' | 'generateEmbedding' | 'inflectNouns' | 'conjugateVerbs' | 'analyzeFunction' | 'deliverWebhook' | 'initiateComposioConnection' | 'processDomain' | 'postGithubComment' | 'githubFileOperations' | 'saveExecutionResults' | 'researchTask' | 'sendResearchResultsToSlack' | 'handleLinearWebhook' | 'syncTaskToLinear' | 'deleteLinearIssue' | 'checkServiceHealth' | 'discoverServices' ) | null; queue?: string | null; waitUntil?: string | null; processing?: boolean | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-locked-documents". */ export interface PayloadLockedDocument { id: string; document?: | ({ relationTo: 'functions'; value: string | Function; } | null) | ({ relationTo: 'workflows'; value: string | Workflow; } | null) | ({ relationTo: 'agents'; value: string | Agent; } | null) | ({ relationTo: 'services'; value: string | Service; } | null) | ({ relationTo: 'queues'; value: string | Queue; } | null) | ({ relationTo: 'tasks'; value: string | Task; } | null) | ({ relationTo: 'goals'; value: string | Goal; } | null) | ({ relationTo: 'plans'; value: string | Plan; } | null) | ({ relationTo: 'waitlist'; value: string | Waitlist; } | null) | ({ relationTo: 'nouns'; value: string | Noun; } | null) | ({ relationTo: 'verbs'; value: string | Verb; } | null) | ({ relationTo: 'databases'; value: string | Database; } | null) | ({ relationTo: 'resources'; value: string | Resource; } | null) | ({ relationTo: 'chatResources'; value: string | ChatResource; } | null) | ({ relationTo: 'relationships'; value: string | Relationship; } | null) | ({ relationTo: 'integrationCategories'; value: string | IntegrationCategory; } | null) | ({ relationTo: 'integrations'; value: string | Integration; } | null) | ({ relationTo: 'connectAccounts'; value: string | ConnectAccount; } | null) | ({ relationTo: 'connections'; value: string | Connection; } | null) | ({ relationTo: 'integrationTriggers'; value: string | IntegrationTrigger; } | null) | ({ relationTo: 'integrationActions'; value: string | IntegrationAction; } | null) | ({ relationTo: 'triggers'; value: string | Trigger; } | null) | ({ relationTo: 'searches'; value: string | Search; } | null) | ({ relationTo: 'actions'; value: string | Action; } | null) | ({ relationTo: 'experiments'; value: string | Experiment; } | null) | ({ relationTo: 'experimentMetrics'; value: string | ExperimentMetric; } | null) | ({ relationTo: 'models'; value: string | Model; } | null) | ({ relationTo: 'providers'; value: string | Provider; } | null) | ({ relationTo: 'labs'; value: string | Lab; } | null) | ({ relationTo: 'prompts'; value: string | Prompt; } | null) | ({ relationTo: 'settings'; value: string | Setting; } | null) | ({ relationTo: 'files'; value: string | File; } | null) | ({ relationTo: 'types'; value: string | Type; } | null) | ({ relationTo: 'modules'; value: string | Module; } | null) | ({ relationTo: 'packages'; value: string | Package; } | null) | ({ relationTo: 'deployments'; value: string | Deployment; } | null) | ({ relationTo: 'benchmarks'; value: string | Benchmark; } | null) | ({ relationTo: 'evals'; value: string | Eval; } | null) | ({ relationTo: 'evalRuns'; value: string | EvalRun; } | null) | ({ relationTo: 'evalResults'; value: string | EvalResult; } | null) | ({ relationTo: 'datasets'; value: string | Dataset; } | null) | ({ relationTo: 'events'; value: string | Event; } | null) | ({ relationTo: 'errors'; value: string | Error; } | null) | ({ relationTo: 'generations'; value: string | Generation; } | null) | ({ relationTo: 'generationBatches'; value: string | GenerationBatch; } | null) | ({ relationTo: 'traces'; value: string | Trace; } | null) | ({ relationTo: 'kpis'; value: string | Kpi; } | null) | ({ relationTo: 'organizations'; value: string | Organization; } | null) | ({ relationTo: 'billingPlans'; value: string | BillingPlan; } | null) | ({ relationTo: 'subscriptions'; value: string | Subscription; } | null) | ({ relationTo: 'usage'; value: string | Usage; } | null) | ({ relationTo: 'config'; value: string | SyncConfig; } | null) | ({ relationTo: 'projects'; value: string | Project; } | null) | ({ relationTo: 'domains'; value: string | Domain; } | null) | ({ relationTo: 'users'; value: string | User; } | null) | ({ relationTo: 'roles'; value: string | Role; } | null) | ({ relationTo: 'tags'; value: string | Tag; } | null) | ({ relationTo: 'webhooks'; value: string | Webhook; } | null) | ({ relationTo: 'apikeys'; value: string | Apikey; } | null) | ({ relationTo: 'oauthClients'; value: string | OauthClient; } | null) | ({ relationTo: 'oauthCodes'; value: string | OauthCode; } | null) | ({ relationTo: 'oauthTokens'; value: string | OauthToken; } | null) | ({ relationTo: 'payload-jobs'; value: string | PayloadJob; } | null); globalSlug?: string | null; user: | { relationTo: 'users'; value: string | User; } | { relationTo: 'apikeys'; value: string | Apikey; }; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-preferences". */ export interface PayloadPreference { id: string; user: | { relationTo: 'users'; value: string | User; } | { relationTo: 'apikeys'; value: string | Apikey; }; key?: string | null; value?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-migrations". */ export interface PayloadMigration { id: string; name?: string | null; batch?: number | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "functions_select". */ export interface FunctionsSelect { tenant?: T; name?: T; type?: T; public?: T; clonedFrom?: T; pricing?: | T | { isMonetized?: T; billingModel?: T; pricePerUse?: T; consumptionUnit?: T; consumptionRate?: T; billingPlan?: T; stripeProductId?: T; stripePriceId?: T; }; format?: T; schemaYaml?: T; shape?: T; code?: T; prompt?: T; role?: T; user?: T; agent?: T; examples?: T; goals?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "workflows_select". */ export interface WorkflowsSelect { tenant?: T; name?: T; type?: T; code?: T; functions?: T; module?: T; package?: T; deployment?: T; goals?: T; public?: T; clonedFrom?: T; pricing?: | T | { isMonetized?: T; billingModel?: T; pricePerUse?: T; consumptionUnit?: T; consumptionRate?: T; billingPlan?: T; stripeProductId?: T; stripePriceId?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "agents_select". */ export interface AgentsSelect { tenant?: T; name?: T; public?: T; clonedFrom?: T; pricing?: | T | { isMonetized?: T; billingModel?: T; pricePerUse?: T; consumptionUnit?: T; consumptionRate?: T; billingPlan?: T; stripeProductId?: T; stripePriceId?: T; }; goals?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "services_select". */ export interface ServicesSelect { name?: T; status?: T; description?: T; endpoint?: T; version?: T; objective?: | T | { description?: T; }; keyResults?: | T | { description?: T; target?: T; currentValue?: T; unit?: T; dueDate?: T; id?: T; }; pricing?: | T | { model?: T; costBase?: T; fixedCosts?: T; variableCosts?: T; marginPercentage?: T; activities?: | T | { name?: T; description?: T; rate?: T; id?: T; }; outcomes?: | T | { metric?: T; description?: T; targetValue?: T; price?: T; unit?: T; id?: T; }; }; implementation?: | T | { type?: T; id?: T; version?: T; configuration?: T; }; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "queues_select". */ export interface QueuesSelect { tenant?: T; name?: T; role?: T; tasks?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "tasks_select". */ export interface TasksSelect { tenant?: T; title?: T; status?: T; queue?: T; assigned?: T; parent?: T; description?: T; subtasks?: T; dependentOn?: T; dependents?: T; metadata?: T; linearMetadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "goals_select". */ export interface GoalsSelect { tenant?: T; title?: T; objective?: T; keyResults?: | T | { description?: T; value?: T; kpiRelationship?: T; id?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "plans_select". */ export interface PlansSelect { name?: T; description?: T; status?: T; startDate?: T; endDate?: T; owner?: T; goals?: T; tags?: T; priority?: T; steps?: | T | { name?: T; description?: T; order?: T; duration?: T; assignee?: T; status?: T; id?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "waitlist_select". */ export interface WaitlistSelect { email?: T; domain?: T; createdAt?: T; status?: T; notes?: T; updatedAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "nouns_select". */ export interface NounsSelect { tenant?: T; name?: T; singular?: T; plural?: T; possessive?: T; pluralPossessive?: T; verb?: T; act?: T; activity?: T; event?: T; order?: T; group?: T; type?: T; resources?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "verbs_select". */ export interface VerbsSelect { tenant?: T; action?: T; act?: T; activity?: T; event?: T; subject?: T; object?: T; inverse?: T; inverseAct?: T; inverseActivity?: T; inverseEvent?: T; inverseSubject?: T; inverseObject?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "databases_select". */ export interface DatabasesSelect { tenant?: T; name?: T; domain?: T; type?: T; schemaEnforcement?: T; databaseType?: T; regions?: T; nouns?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "resources_select". */ export interface ResourcesSelect { tenant?: T; name?: T; sqid?: T; hash?: T; type?: T; yaml?: T; data?: T; embedding?: T; subjectOf?: T; objectOf?: T; content?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "chatResources_select". */ export interface ChatResourcesSelect { tenant?: T; title?: T; user?: T; resourceType?: T; content?: T; parts?: | T | { type?: T; content?: T; metadata?: T; id?: T; }; parent?: T; metadata?: T; visibility?: T; votes?: | T | { user?: T; type?: T; createdAt?: T; id?: T; }; kind?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "relationships_select". */ export interface RelationshipsSelect { subject?: T; verb?: T; object?: T; hash?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrationCategories_select". */ export interface IntegrationCategoriesSelect { tenant?: T; category?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrations_select". */ export interface IntegrationsSelect { tenant?: T; id?: T; name?: T; provider?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "connectAccounts_select". */ export interface ConnectAccountsSelect { tenant?: T; name?: T; user?: T; integration?: T; project?: T; stripeAccountId?: T; accountType?: T; status?: T; chargesEnabled?: T; payoutsEnabled?: T; platformFeePercent?: T; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "connections_select". */ export interface ConnectionsSelect { tenant?: T; name?: T; user?: T; integration?: T; status?: T; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrationTriggers_select". */ export interface IntegrationTriggersSelect { tenant?: T; displayName?: T; description?: T; appKey?: T; appName?: T; appId?: T; logo?: T; payload?: T; config?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "integrationActions_select". */ export interface IntegrationActionsSelect { tenant?: T; displayName?: T; description?: T; appKey?: T; appName?: T; appId?: T; version?: T; parameters?: T; response?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "triggers_select". */ export interface TriggersSelect { tenant?: T; name?: T; payload?: T; config?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "searches_select". */ export interface SearchesSelect { tenant?: T; name?: T; query?: T; searchType?: T; results?: T; embedding?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "actions_select". */ export interface ActionsSelect { name?: T; description?: T; functionId?: T; verbId?: T; parameters?: T; result?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "experiments_select". */ export interface ExperimentsSelect { tenant?: T; name?: T; description?: T; status?: T; provider?: T; variants?: | T | { id?: T; description?: T; isControl?: T; config?: T; }; metrics?: | T | { name?: T; description?: T; higherIsBetter?: T; primary?: T; id?: T; }; trafficAllocation?: | T | { type?: T; values?: T; }; targeting?: T; duration?: | T | { startDate?: T; endDate?: T; }; results?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "experimentMetrics_select". */ export interface ExperimentMetricsSelect { experimentId?: T; variantId?: T; userId?: T; sessionId?: T; metricName?: T; value?: T; timestamp?: T; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "models_select". */ export interface ModelsSelect { tenant?: T; name?: T; id?: T; provider?: T; lab?: T; description?: T; context_length?: T; pricing?: | T | { prompt?: T; completion?: T; }; capabilities?: | T | { capability?: T; id?: T; }; modelUrl?: T; imageUrl?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "providers_select". */ export interface ProvidersSelect { name?: T; id?: T; description?: T; website?: T; logoUrl?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "labs_select". */ export interface LabsSelect { name?: T; id?: T; description?: T; website?: T; logoUrl?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "prompts_select". */ export interface PromptsSelect { tenant?: T; name?: T; system?: T; modelName?: T; messages?: | T | { role?: T; contentString?: T; contentArray?: | T | { type?: T; text?: T; imageString?: T; imageFile?: T; dataString?: T; dataFile?: T; filename?: T; mimeType?: T; signature?: T; data?: T; toolCallId?: T; toolName?: T; args?: T; result?: T; isError?: T; id?: T; }; id?: T; }; questions?: | T | { question?: T; id?: T; }; role?: T; instructions?: | T | { instruction?: T; id?: T; }; context?: T; examples?: | T | { title?: T; example?: T; id?: T; }; paramJsonSchema?: T; maxSteps?: T; jsonSchema?: T; tools?: | T | { tool?: T; id?: T; }; toolsOnly?: T; text?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "settings_select". */ export interface SettingsSelect { tenant?: T; name?: T; settings?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "files_select". */ export interface FilesSelect { updatedAt?: T; createdAt?: T; url?: T; thumbnailURL?: T; filename?: T; mimeType?: T; filesize?: T; width?: T; height?: T; focalX?: T; focalY?: T; sizes?: | T | { thumbnail?: | T | { url?: T; width?: T; height?: T; mimeType?: T; filesize?: T; filename?: T; }; card?: | T | { url?: T; width?: T; height?: T; mimeType?: T; filesize?: T; filename?: T; }; tablet?: | T | { url?: T; width?: T; height?: T; mimeType?: T; filesize?: T; filename?: T; }; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "types_select". */ export interface TypesSelect { tenant?: T; name?: T; hash?: T; type?: T; json?: T; schema?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "modules_select". */ export interface ModulesSelect { tenant?: T; name?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "packages_select". */ export interface PackagesSelect { tenant?: T; name?: T; package?: T; collections?: | T | { items?: T; id?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "deployments_select". */ export interface DeploymentsSelect { tenant?: T; name?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "benchmarks_select". */ export interface BenchmarksSelect { tenant?: T; name?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "evals_select". */ export interface EvalsSelect { tenant?: T; name?: T; description?: T; input?: T; expected?: T; tags?: | T | { tag?: T; id?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "evalRuns_select". */ export interface EvalRunsSelect { tenant?: T; name?: T; description?: T; testIds?: | T | { test?: T; id?: T; }; results?: | T | { result?: T; id?: T; }; startedAt?: T; completedAt?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "evalResults_select". */ export interface EvalResultsSelect { tenant?: T; name?: T; testId?: T; output?: T; score?: T; metrics?: T; duration?: T; error?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "datasets_select". */ export interface DatasetsSelect { tenant?: T; name?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "events_select". */ export interface EventsSelect { tenant?: T; type?: T; source?: T; subject?: T; data?: T; metadata?: T; trigger?: T; search?: T; function?: T; workflow?: T; agent?: T; generations?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "errors_select". */ export interface ErrorsSelect { tenant?: T; message?: T; stack?: T; digest?: T; url?: T; source?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "generations_select". */ export interface GenerationsSelect { tenant?: T; settings?: T; request?: T; response?: T; error?: T; status?: T; duration?: T; processingMode?: T; batch?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "generationBatches_select". */ export interface GenerationBatchesSelect { name?: T; provider?: T; status?: T; batchConfig?: T; providerBatchId?: T; generations?: T; startedAt?: T; completedAt?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "traces_select". */ export interface TracesSelect { tenant?: T; name?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "kpis_select". */ export interface KpisSelect { tenant?: T; name?: T; value?: T; target?: T; unit?: T; format?: T; description?: T; project?: T; goals?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "organizations_select". */ export interface OrganizationsSelect { name?: T; user?: T; stripeCustomerId?: T; email?: T; billingDetails?: T; defaultPaymentMethod?: T; members?: | T | { user?: T; role?: T; id?: T; }; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "billingPlans_select". */ export interface BillingPlansSelect { name?: T; description?: T; billingType?: T; amount?: T; currency?: T; interval?: T; credits?: T; stripeProductId?: T; stripePriceId?: T; isActive?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "subscriptions_select". */ export interface SubscriptionsSelect { organization?: T; plan?: T; status?: T; stripeSubscriptionId?: T; periodStart?: T; periodEnd?: T; cancelAtPeriodEnd?: T; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "usage_select". */ export interface UsageSelect { organization?: T; resourceType?: T; resourceId?: T; quantity?: T; unit?: T; cost?: T; timestamp?: T; stripeUsageRecordId?: T; metadata?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "config_select". */ export interface ConfigSelect { path?: T; contentHash?: T; project?: T; lastSyncedAt?: T; lastModifiedLocally?: T; lastModifiedRemotely?: T; lastModifiedGithub?: T; syncStatus?: T; data?: T; syncConfig?: | T | { syncMode?: T; github?: | T | { repository?: T; branch?: T; createPRs?: T; prTemplate?: T; }; trackFiles?: | T | { pattern?: T; id?: T; }; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "projects_select". */ export interface ProjectsSelect { name?: T; domain?: T; domains?: T; goals?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "domains_select". */ export interface DomainsSelect { name?: T; domain?: T; project?: T; status?: T; hostnames?: | T | { hostname?: T; id?: T; }; vercelId?: T; cloudflareId?: T; errorMessage?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "users_select". */ export interface UsersSelect { name?: T; image?: T; role?: T; emailVerified?: T; roles?: T; tenants?: | T | { tenant?: T; id?: T; }; updatedAt?: T; createdAt?: T; enableAPIKey?: T; apiKey?: T; apiKeyIndex?: T; email?: T; resetPasswordToken?: T; resetPasswordExpiration?: T; salt?: T; hash?: T; loginAttempts?: T; lockUntil?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "roles_select". */ export interface RolesSelect { name?: T; superAdmin?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "tags_select". */ export interface TagsSelect { id?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "webhooks_select". */ export interface WebhooksSelect { name?: T; url?: T; filters?: | T | { pattern?: T; id?: T; }; enabled?: T; secret?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "apikeys_select". */ export interface ApikeysSelect { name?: T; type?: T; user?: T; organization?: T; email?: T; description?: T; hash?: T; label?: T; url?: T; cfWorkerDomains?: | T | { domain?: T; id?: T; }; updatedAt?: T; createdAt?: T; enableAPIKey?: T; apiKey?: T; apiKeyIndex?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "oauthClients_select". */ export interface OauthClientsSelect { name?: T; clientId?: T; clientSecret?: T; redirectURLs?: | T | { url?: T; id?: T; }; disabled?: T; createdBy?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "oauthCodes_select". */ export interface OauthCodesSelect { code?: T; provider?: T; redirectUri?: T; userId?: T; expiresAt?: T; used?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "oauthTokens_select". */ export interface OauthTokensSelect { token?: T; provider?: T; userId?: T; clientId?: T; expiresAt?: T; scope?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-jobs_select". */ export interface PayloadJobsSelect { input?: T; taskStatus?: T; completedAt?: T; totalTried?: T; hasError?: T; error?: T; log?: | T | { executedAt?: T; completedAt?: T; taskSlug?: T; taskID?: T; input?: T; output?: T; state?: T; error?: T; parent?: | T | { taskSlug?: T; taskID?: T; }; id?: T; }; workflowSlug?: T; taskSlug?: T; queue?: T; waitUntil?: T; processing?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-locked-documents_select". */ export interface PayloadLockedDocumentsSelect { document?: T; globalSlug?: T; user?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-preferences_select". */ export interface PayloadPreferencesSelect { user?: T; key?: T; value?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-migrations_select". */ export interface PayloadMigrationsSelect { name?: T; batch?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskCreateRecord". */ export interface TaskCreateRecord { input: { collection: string; data: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { record: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskExecuteFunction". */ export interface TaskExecuteFunction { input: { functionName: string; args: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; project?: string | null; schema?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; settings?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; timeout?: number | null; seeds?: number | null; callback?: string | null; }; output: { output?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; reasoning?: string | null; generationHash?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskGenerateCode". */ export interface TaskGenerateCode { input: { prompt: string; settings?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { raw?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; code?: string | null; parsed?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskRequestHumanFeedback". */ export interface TaskRequestHumanFeedback { input: { taskId?: string | null; title: string; description: string; options?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; freeText?: boolean | null; platform?: ('slack' | 'teams' | 'discord') | null; userId?: string | null; roleId?: string | null; timeout?: number | null; }; output: { taskId?: string | null; status?: string | null; response?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; messageId?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskMonitorHumanFeedbackTask". */ export interface TaskMonitorHumanFeedbackTask { input: { taskId: string; functionName: string; timeout?: number | null; callback?: string | null; }; output: { status?: string | null; taskId?: string | null; response?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; nextCheck?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskExecuteAgentFunction". */ export interface TaskExecuteAgentFunction { input: { agentId: string; prompt: string; context?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; taskId: string; options?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { status?: string | null; taskId?: string | null; response?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskUpdateSlackMessage". */ export interface TaskUpdateSlackMessage { input: { response_url: string; blocks: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; text?: string | null; replace_original?: boolean | null; delete_original?: boolean | null; }; output: { result?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessBatchOpenAI". */ export interface TaskProcessBatchOpenAI { input: { batchId: string; checkStatus?: boolean | null; }; output: { status?: string | null; error?: string | null; batchStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessBatchAnthropic". */ export interface TaskProcessBatchAnthropic { input: { batchId: string; checkStatus?: boolean | null; }; output: { status?: string | null; error?: string | null; batchStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessBatchGoogleVertexAI". */ export interface TaskProcessBatchGoogleVertexAI { input: { batchId: string; checkStatus?: boolean | null; }; output: { status?: string | null; error?: string | null; batchStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessBatchParasail". */ export interface TaskProcessBatchParasail { input: { batchId: string; checkStatus?: boolean | null; }; output: { status?: string | null; error?: string | null; batchStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessBatchCloudflare". */ export interface TaskProcessBatchCloudflare { input: { batchId: string; checkStatus?: boolean | null; }; output: { status?: string | null; error?: string | null; batchStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessBatchGroq". */ export interface TaskProcessBatchGroq { input: { batchId: string; checkStatus?: boolean | null; }; output: { status?: string | null; error?: string | null; batchStatus?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskCreateGenerationBatch". */ export interface TaskCreateGenerationBatch { input: { name: string; provider: string; batchConfig: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; generations?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { success?: boolean | null; batchId?: string | null; jobId?: string | null; error?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskGenerateFunctionExamples". */ export interface TaskGenerateFunctionExamples { input: { functionId: string; count?: number | null; force?: boolean | null; }; output: { success?: boolean | null; message?: string | null; examples?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; error?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskExecuteCodeFunction". */ export interface TaskExecuteCodeFunction { input: { code: string; args?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; timeout?: number | null; memoryLimit?: number | null; }; output: { result?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; logs?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; error?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessCodeFunctionWrapper". */ export interface TaskProcessCodeFunctionWrapper { input: { functionId: string; }; output: { function?: string | null; taskId?: string | null; success?: boolean | null; error?: string | null; message?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessCodeFunction". */ export interface TaskProcessCodeFunction { input: { functionId: string; }; output: { function?: string | null; moduleId?: string | null; packageId?: string | null; success?: boolean | null; error?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskDeployWorker". */ export interface TaskDeployWorker { input: { worker: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; options?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { result?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; deployment?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskGenerateResourceEmbedding". */ export interface TaskGenerateResourceEmbedding { input: { id: string; }; output: { resource?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskGenerateThingEmbedding". */ export interface TaskGenerateThingEmbedding { input: { id: string; }; output: { thing?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskSearchThings". */ export interface TaskSearchThings { input: { query: string; limit?: number | null; }; output: { results?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskHybridSearchThings". */ export interface TaskHybridSearchThings { input: { query: string; limit?: number | null; }; output: { results?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskGenerateEmbedding". */ export interface TaskGenerateEmbedding { input: { text: string; }; output: { embedding?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskInflectNouns". */ export interface TaskInflectNouns { input: { noun: string; }; output: { singular?: string | null; plural?: string | null; possessive?: string | null; pluralPossessive?: string | null; verb?: string | null; act?: string | null; activity?: string | null; event?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskConjugateVerbs". */ export interface TaskConjugateVerbs { input: { verb: string; }; output: { act?: string | null; activity?: string | null; event?: string | null; subject?: string | null; object?: string | null; inverse?: string | null; inverseAct?: string | null; inverseActivity?: string | null; inverseEvent?: string | null; inverseSubject?: string | null; inverseObject?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskAnalyzeFunction". */ export interface TaskAnalyzeFunction { input: { name: string; schema?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { type?: string | null; format?: string | null; verb?: string | null; subject?: string | null; object?: string | null; examples?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; verbForms?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; nounForms?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; confidence?: number | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskDeliverWebhook". */ export interface TaskDeliverWebhook { input: { event: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; webhookId: string; }; output: { status?: string | null; message?: string | null; statusCode?: number | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskInitiateComposioConnection". */ export interface TaskInitiateComposioConnection { input: { integrationId: string; userId: string; taskId?: string | null; redirectUrl?: string | null; metadata?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { connection?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; authorization_url?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskProcessDomain". */ export interface TaskProcessDomain { input: { domainId: string; operation: string; domain?: string | null; vercelId?: string | null; cloudflareId?: string | null; }; output: {}; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskPostGithubComment". */ export interface TaskPostGithubComment { input: { issueNumber: number; repository: string; researchResults: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output?: unknown; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskGithubFileOperations". */ export interface TaskGithubFileOperations { input: { repository: string; branch?: string | null; path: string; content?: string | null; message?: string | null; operation: string; prTitle?: string | null; prBody?: string | null; }; output: { data?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; error?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskSaveExecutionResults". */ export interface TaskSaveExecutionResults { input: { prompt?: string | null; object?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; functionName?: string | null; args?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; settings?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; argsDoc?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; functionDoc?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; reasoning?: string | null; generation?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; generationLatency?: number | null; headers?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; seeds?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; callback?: string | null; isTextFunction?: string | null; latency?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; generationHash?: string | null; }; output: { success?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskResearchTask". */ export interface TaskResearchTask { input: { topic: string; depth?: number | null; sources?: | { sourceUrl?: string | null; }[] | null; format?: string | null; taskId: string; callback?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { summary?: string | null; findings?: | { finding?: string | null; }[] | null; sources?: | { sourceUrl?: string | null; }[] | null; confidence?: number | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskSendResearchResultsToSlack". */ export interface TaskSendResearchResultsToSlack { input: { channel: string; threadTs?: string | null; responseTs: string; results: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; query: string; }; output: { result?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskHandleLinearWebhook". */ export interface TaskHandleLinearWebhook { input: { payload: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output?: unknown; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskSyncTaskToLinear". */ export interface TaskSyncTaskToLinear { input: { data: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; originalDoc?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { status?: string | null; message?: string | null; linearIssueId?: string | null; linearIssueUrl?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskDeleteLinearIssue". */ export interface TaskDeleteLinearIssue { input: { data: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; originalDoc?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { status?: string | null; message?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskCheckServiceHealth". */ export interface TaskCheckServiceHealth { input: { id: string; timeout?: number | null; }; output: { status?: string | null; responseTime?: number | null; message?: string | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "TaskDiscoverServices". */ export interface TaskDiscoverServices { input: { query?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; output: { services?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "WorkflowHandleGithubEvent". */ export interface WorkflowHandleGithubEvent { input: { payload: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "WorkflowHandleStripeEvent". */ export interface WorkflowHandleStripeEvent { input: { event: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "WorkflowRecordUsageEvent". */ export interface WorkflowRecordUsageEvent { input: { result: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; user: string; apiKey: string; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "auth". */ export interface Auth { [k: string]: unknown; } declare module 'payload' { export interface GeneratedTypes extends Config {} }