/** * GraphQL types for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ export interface StringFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; lessThan?: string; lessThanOrEqualTo?: string; greaterThan?: string; greaterThanOrEqualTo?: string; includes?: string; notIncludes?: string; includesInsensitive?: string; notIncludesInsensitive?: string; startsWith?: string; notStartsWith?: string; startsWithInsensitive?: string; notStartsWithInsensitive?: string; endsWith?: string; notEndsWith?: string; endsWithInsensitive?: string; notEndsWithInsensitive?: string; like?: string; notLike?: string; likeInsensitive?: string; notLikeInsensitive?: string; } export interface IntFilter { isNull?: boolean; equalTo?: number; notEqualTo?: number; distinctFrom?: number; notDistinctFrom?: number; in?: number[]; notIn?: number[]; lessThan?: number; lessThanOrEqualTo?: number; greaterThan?: number; greaterThanOrEqualTo?: number; } export interface FloatFilter { isNull?: boolean; equalTo?: number; notEqualTo?: number; distinctFrom?: number; notDistinctFrom?: number; in?: number[]; notIn?: number[]; lessThan?: number; lessThanOrEqualTo?: number; greaterThan?: number; greaterThanOrEqualTo?: number; } export interface BooleanFilter { isNull?: boolean; equalTo?: boolean; notEqualTo?: boolean; } export interface UUIDFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; } export interface DatetimeFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; lessThan?: string; lessThanOrEqualTo?: string; greaterThan?: string; greaterThanOrEqualTo?: string; } export interface DateFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; lessThan?: string; lessThanOrEqualTo?: string; greaterThan?: string; greaterThanOrEqualTo?: string; } export interface JSONFilter { isNull?: boolean; equalTo?: Record; notEqualTo?: Record; distinctFrom?: Record; notDistinctFrom?: Record; contains?: Record; containedBy?: Record; containsKey?: string; containsAllKeys?: string[]; containsAnyKeys?: string[]; } export interface BigIntFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; lessThan?: string; lessThanOrEqualTo?: string; greaterThan?: string; greaterThanOrEqualTo?: string; } export interface BigFloatFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; lessThan?: string; lessThanOrEqualTo?: string; greaterThan?: string; greaterThanOrEqualTo?: string; } export interface BitStringFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; } export interface InternetAddressFilter { isNull?: boolean; equalTo?: string; notEqualTo?: string; distinctFrom?: string; notDistinctFrom?: string; in?: string[]; notIn?: string[]; lessThan?: string; lessThanOrEqualTo?: string; greaterThan?: string; greaterThanOrEqualTo?: string; contains?: string; containsOrEqualTo?: string; containedBy?: string; containedByOrEqualTo?: string; containsOrContainedBy?: string; } export interface FullTextFilter { matches?: string; } export interface VectorFilter { isNull?: boolean; equalTo?: number[]; notEqualTo?: number[]; distinctFrom?: number[]; notDistinctFrom?: number[]; } export interface StringListFilter { isNull?: boolean; equalTo?: string[]; notEqualTo?: string[]; distinctFrom?: string[]; notDistinctFrom?: string[]; lessThan?: string[]; lessThanOrEqualTo?: string[]; greaterThan?: string[]; greaterThanOrEqualTo?: string[]; contains?: string[]; containedBy?: string[]; overlaps?: string[]; anyEqualTo?: string; anyNotEqualTo?: string; anyLessThan?: string; anyLessThanOrEqualTo?: string; anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } export interface IntListFilter { isNull?: boolean; equalTo?: number[]; notEqualTo?: number[]; distinctFrom?: number[]; notDistinctFrom?: number[]; lessThan?: number[]; lessThanOrEqualTo?: number[]; greaterThan?: number[]; greaterThanOrEqualTo?: number[]; contains?: number[]; containedBy?: number[]; overlaps?: number[]; anyEqualTo?: number; anyNotEqualTo?: number; anyLessThan?: number; anyLessThanOrEqualTo?: number; anyGreaterThan?: number; anyGreaterThanOrEqualTo?: number; } export interface UUIDListFilter { isNull?: boolean; equalTo?: string[]; notEqualTo?: string[]; distinctFrom?: string[]; notDistinctFrom?: string[]; lessThan?: string[]; lessThanOrEqualTo?: string[]; greaterThan?: string[]; greaterThanOrEqualTo?: string[]; contains?: string[]; containedBy?: string[]; overlaps?: string[]; anyEqualTo?: string; anyNotEqualTo?: string; anyLessThan?: string; anyLessThanOrEqualTo?: string; anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } /** Agent instance registry (human-managed or ephemeral sub-agents) */ export interface Agent { /** Per-instance config overrides (model, temperature, tools) */ config?: Record | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; /** If true, agent is deleted when its spawning thread is deleted */ isEphemeral?: boolean | null; /** Display name for this agent instance */ name?: string | null; /** Human who owns/manages this agent */ ownerId?: string | null; /** Parent agent (for sub-agent delegation hierarchy) */ parentId?: string | null; /** Persona template this agent was created from */ personaId?: string | null; /** Agent lifecycle status: active, paused, terminated */ status?: string | null; /** System prompt override (NULL = inherit from persona) */ systemPrompt?: string | null; updatedAt?: string | null; } /** Message within an agent thread with TextPart/ToolPart jsonb parts */ export interface AgentMessage { /** User who authored this message */ actorId?: string | null; /** Agent that authored this message (NULL for human messages) */ agentId?: string | null; /** Who authored this message: user or assistant */ authorRole?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; /** LLM model that generated this response */ model?: string | null; /** Message content: TextPart and ToolPart array */ parts?: Record | null; /** Foreign key to agent_thread */ threadId?: string | null; updatedAt?: string | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ export interface AgentPersona { /** Model preferences, temperature, tool access, constraints */ config?: Record | null; createdAt?: string | null; createdBy?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this persona role */ description?: string | null; id: string; /** Whether this persona is available for use */ isActive?: boolean | null; /** Display name for this persona */ name?: string | null; /** Slugs of agent_resource entries to link when spawning */ resources?: string[] | null; /** Unique human-readable identifier for this persona */ slug?: string | null; /** Default system prompt for agents using this persona */ systemPrompt?: string | null; updatedAt?: string | null; updatedBy?: string | null; } /** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ export interface AgentPlan { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Overall goal or context for this plan */ description?: string | null; id: string; /** User who owns this plan */ ownerId?: string | null; /** Plan lifecycle: draft, active, completed, failed, cancelled */ status?: string | null; /** Foreign key to agent_thread */ threadId?: string | null; /** Human-readable plan name */ title?: string | null; updatedAt?: string | null; } /** Shared system prompt templates for agent conversations */ export interface AgentPrompt { /** The system prompt template content */ content?: string | null; createdAt?: string | null; createdBy?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** What this prompt template is for */ description?: string | null; id: string; /** Whether this is the default prompt for the entity/app */ isDefault?: boolean | null; /** Variables, tags, category metadata */ metadata?: Record | null; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name?: string | null; updatedAt?: string | null; updatedBy?: string | null; } export interface AgentResourceChunk { agentResourceId?: string | null; body?: string | null; chunkIndex?: number | null; createdAt?: string | null; embedding?: number[] | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; id: string; metadata?: Record | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; updatedAt?: string | null; } /** Unified skills and knowledge resources for agent retrieval */ export interface AgentResource { /** Timestamp when this record was archived, NULL if active */ archivedAt?: string | null; /** Full content (instructions for skills, reference text for knowledge) */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this resource */ description?: string | null; /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; id: string; /** Whether this resource is active and retrievable */ isActive?: boolean | null; /** Whether this record has been archived by the user */ isArchived?: boolean | null; /** Keywords for deterministic retrieval routing */ keywords?: string[] | null; /** Resource type: skill, knowledge, or convention */ kind?: string | null; /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ kindTrgmSimilarity?: number | null; /** Structured metadata: category, version, author, custom attributes */ metadata?: Record | null; search?: string | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ searchTsvRank?: number | null; /** Unique human-readable identifier for portable references */ slug?: string | null; /** Resource name or title */ title?: string | null; /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ titleTrgmSimilarity?: number | null; updatedAt?: string | null; updatedBy?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { /** User who authored this task */ actorId?: string | null; /** Reviewer feedback or reason for the decision */ approvalFeedback?: string | null; /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ approvalStatus?: string | null; /** Timestamp of the approval or rejection decision */ approvedAt?: string | null; /** User who approved or rejected this task */ approvedBy?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Natural-language description of the work to do */ description?: string | null; /** Error message captured when the task failed */ error?: string | null; id: string; /** Position within the plan (for ordered task lists) */ orderIndex?: number | null; /** Foreign key to agent_plan */ planId?: string | null; /** Whether this task is an approval gate requiring human decision */ requiresApproval?: boolean | null; /** Who created the task: agent or user */ source?: string | null; /** Current status of this task */ status?: string | null; updatedAt?: string | null; } /** Top-level AI/LLM conversation thread */ export interface AgentThread { /** Agent instance assigned to this thread */ agentId?: string | null; /** Timestamp when this record was archived, NULL if active */ archivedAt?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; /** Whether this record has been archived by the user */ isArchived?: boolean | null; /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ mode?: string | null; /** LLM model id this thread is bound to */ model?: string | null; /** User who owns this thread */ ownerId?: string | null; /** Parent thread that spawned this sub-conversation */ parentThreadId?: string | null; /** Optional FK to a shared prompt template */ promptTemplateId?: string | null; /** Current status of this thread */ status?: string | null; /** System prompt active for this thread */ systemPrompt?: string | null; /** User-defined labels for organizing and filtering threads */ tags?: string[] | null; /** Human-readable conversation title */ title?: string | null; updatedAt?: string | null; } export interface ConnectionResult { nodes: T[]; totalCount: number; pageInfo: PageInfo; } export interface PageInfo { hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; } export interface AgentRelations { parent?: Agent | null; persona?: AgentPersona | null; agentMessages?: ConnectionResult; agentThreads?: ConnectionResult; childAgents?: ConnectionResult; } export interface AgentMessageRelations { agent?: Agent | null; thread?: AgentThread | null; } export interface AgentPersonaRelations { agentsByPersonaId?: ConnectionResult; } export interface AgentPlanRelations { thread?: AgentThread | null; agentTasksByPlanId?: ConnectionResult; } export interface AgentPromptRelations { agentThreadsByPromptTemplateId?: ConnectionResult; } export interface AgentResourceChunkRelations { agentResource?: AgentResource | null; } export interface AgentResourceRelations { agentResourceChunks?: ConnectionResult; } export interface AgentTaskRelations { plan?: AgentPlan | null; } export interface AgentThreadRelations { agent?: Agent | null; parentThread?: AgentThread | null; promptTemplate?: AgentPrompt | null; agentMessagesByThreadId?: ConnectionResult; agentPlansByThreadId?: ConnectionResult; agentThreadsByParentThreadId?: ConnectionResult; } export type AgentWithRelations = Agent & AgentRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; export type AgentPersonaWithRelations = AgentPersona & AgentPersonaRelations; export type AgentPlanWithRelations = AgentPlan & AgentPlanRelations; export type AgentPromptWithRelations = AgentPrompt & AgentPromptRelations; export type AgentResourceChunkWithRelations = AgentResourceChunk & AgentResourceChunkRelations; export type AgentResourceWithRelations = AgentResource & AgentResourceRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; export type AgentSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; id?: boolean; isEphemeral?: boolean; name?: boolean; ownerId?: boolean; parentId?: boolean; personaId?: boolean; status?: boolean; systemPrompt?: boolean; updatedAt?: boolean; parent?: { select: AgentSelect; }; persona?: { select: AgentPersonaSelect; }; agentMessages?: { select: AgentMessageSelect; first?: number; filter?: AgentMessageFilter; orderBy?: AgentMessageOrderBy[]; }; agentThreads?: { select: AgentThreadSelect; first?: number; filter?: AgentThreadFilter; orderBy?: AgentThreadOrderBy[]; }; childAgents?: { select: AgentSelect; first?: number; filter?: AgentFilter; orderBy?: AgentOrderBy[]; }; }; export type AgentMessageSelect = { actorId?: boolean; agentId?: boolean; authorRole?: boolean; createdAt?: boolean; databaseId?: boolean; id?: boolean; model?: boolean; parts?: boolean; threadId?: boolean; updatedAt?: boolean; agent?: { select: AgentSelect; }; thread?: { select: AgentThreadSelect; }; }; export type AgentPersonaSelect = { config?: boolean; createdAt?: boolean; createdBy?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; isActive?: boolean; name?: boolean; resources?: boolean; slug?: boolean; systemPrompt?: boolean; updatedAt?: boolean; updatedBy?: boolean; agentsByPersonaId?: { select: AgentSelect; first?: number; filter?: AgentFilter; orderBy?: AgentOrderBy[]; }; }; export type AgentPlanSelect = { createdAt?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; ownerId?: boolean; status?: boolean; threadId?: boolean; title?: boolean; updatedAt?: boolean; thread?: { select: AgentThreadSelect; }; agentTasksByPlanId?: { select: AgentTaskSelect; first?: number; filter?: AgentTaskFilter; orderBy?: AgentTaskOrderBy[]; }; }; export type AgentPromptSelect = { content?: boolean; createdAt?: boolean; createdBy?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; isDefault?: boolean; metadata?: boolean; name?: boolean; updatedAt?: boolean; updatedBy?: boolean; agentThreadsByPromptTemplateId?: { select: AgentThreadSelect; first?: number; filter?: AgentThreadFilter; orderBy?: AgentThreadOrderBy[]; }; }; export type AgentResourceChunkSelect = { agentResourceId?: boolean; body?: boolean; chunkIndex?: boolean; createdAt?: boolean; embedding?: boolean; embeddingVectorDistance?: boolean; id?: boolean; metadata?: boolean; searchScore?: boolean; updatedAt?: boolean; agentResource?: { select: AgentResourceSelect; }; }; export type AgentResourceSelect = { archivedAt?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; databaseId?: boolean; description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; isActive?: boolean; isArchived?: boolean; keywords?: boolean; kind?: boolean; kindTrgmSimilarity?: boolean; metadata?: boolean; search?: boolean; searchScore?: boolean; searchTsvRank?: boolean; slug?: boolean; title?: boolean; titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; agentResourceChunks?: { select: AgentResourceChunkSelect; first?: number; filter?: AgentResourceChunkFilter; orderBy?: AgentResourceChunkOrderBy[]; }; }; export type AgentTaskSelect = { actorId?: boolean; approvalFeedback?: boolean; approvalStatus?: boolean; approvedAt?: boolean; approvedBy?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; error?: boolean; id?: boolean; orderIndex?: boolean; planId?: boolean; requiresApproval?: boolean; source?: boolean; status?: boolean; updatedAt?: boolean; plan?: { select: AgentPlanSelect; }; }; export type AgentThreadSelect = { agentId?: boolean; archivedAt?: boolean; createdAt?: boolean; databaseId?: boolean; id?: boolean; isArchived?: boolean; mode?: boolean; model?: boolean; ownerId?: boolean; parentThreadId?: boolean; promptTemplateId?: boolean; status?: boolean; systemPrompt?: boolean; tags?: boolean; title?: boolean; updatedAt?: boolean; agent?: { select: AgentSelect; }; parentThread?: { select: AgentThreadSelect; }; promptTemplate?: { select: AgentPromptSelect; }; agentMessagesByThreadId?: { select: AgentMessageSelect; first?: number; filter?: AgentMessageFilter; orderBy?: AgentMessageOrderBy[]; }; agentPlansByThreadId?: { select: AgentPlanSelect; first?: number; filter?: AgentPlanFilter; orderBy?: AgentPlanOrderBy[]; }; agentThreadsByParentThreadId?: { select: AgentThreadSelect; first?: number; filter?: AgentThreadFilter; orderBy?: AgentThreadOrderBy[]; }; }; export interface AgentFilter { /** Filter by the object’s `agentMessages` relation. */ agentMessages?: AgentToManyAgentMessageFilter; /** `agentMessages` exist. */ agentMessagesExist?: boolean; /** Filter by the object’s `agentThreads` relation. */ agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentFilter[]; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: boolean; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isEphemeral` field. */ isEphemeral?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: AgentFilter; /** Checks for any expressions in this list. */ or?: AgentFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `parent` relation. */ parent?: AgentFilter; /** A related `parent` exists. */ parentExists?: boolean; /** Filter by the object’s `parentId` field. */ parentId?: UUIDFilter; /** Filter by the object’s `persona` relation. */ persona?: AgentPersonaFilter; /** A related `persona` exists. */ personaExists?: boolean; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } export interface AgentMessageFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `agent` relation. */ agent?: AgentFilter; /** A related `agent` exists. */ agentExists?: boolean; /** Filter by the object’s `agentId` field. */ agentId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AgentMessageFilter[]; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ not?: AgentMessageFilter; /** Checks for any expressions in this list. */ or?: AgentMessageFilter[]; /** Filter by the object’s `parts` field. */ parts?: JSONFilter; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } export interface AgentPersonaFilter { /** Filter by the object’s `agentsByPersonaId` relation. */ agentsByPersonaId?: AgentPersonaToManyAgentFilter; /** `agentsByPersonaId` exist. */ agentsByPersonaIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentPersonaFilter[]; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: AgentPersonaFilter; /** Checks for any expressions in this list. */ or?: AgentPersonaFilter[]; /** Filter by the object’s `resources` field. */ resources?: StringListFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; } export interface AgentPlanFilter { /** Filter by the object’s `agentTasksByPlanId` relation. */ agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; /** `agentTasksByPlanId` exist. */ agentTasksByPlanIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentPlanFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ not?: AgentPlanFilter; /** Checks for any expressions in this list. */ or?: AgentPlanFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } export interface AgentPromptFilter { /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; /** `agentThreadsByPromptTemplateId` exist. */ agentThreadsByPromptTemplateIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentPromptFilter[]; /** Filter by the object’s `content` field. */ content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isDefault` field. */ isDefault?: BooleanFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: AgentPromptFilter; /** Checks for any expressions in this list. */ or?: AgentPromptFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; } export interface AgentResourceChunkFilter { /** Filter by the object’s `agentResource` relation. */ agentResource?: AgentResourceFilter; /** Filter by the object’s `agentResourceId` field. */ agentResourceId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AgentResourceChunkFilter[]; /** Filter by the object’s `body` field. */ body?: StringFilter; /** Filter by the object’s `chunkIndex` field. */ chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ not?: AgentResourceChunkFilter; /** Checks for any expressions in this list. */ or?: AgentResourceChunkFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } export interface AgentResourceFilter { /** Filter by the object’s `agentResourceChunks` relation. */ agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; /** `agentResourceChunks` exist. */ agentResourceChunksExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentResourceFilter[]; /** Filter by the object’s `archivedAt` field. */ archivedAt?: DatetimeFilter; /** Filter by the object’s `body` field. */ body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; /** Filter by the object’s `isArchived` field. */ isArchived?: BooleanFilter; /** Filter by the object’s `keywords` field. */ keywords?: StringListFilter; /** Filter by the object’s `kind` field. */ kind?: StringTrgmFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ not?: AgentResourceFilter; /** Checks for any expressions in this list. */ or?: AgentResourceFilter[]; /** Filter by the object’s `search` field. */ search?: FullTextFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `title` field. */ title?: StringTrgmFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ trgmTitle?: TrgmSearchInput; /** TSV search on the `search` column. */ tsvSearch?: string; /** * Composite unified search. Provide a search string and it will be dispatched to * all text-compatible search algorithms (tsvector, BM25, pg_trgm) * simultaneously. When the LLM plugin is active, pgvector also participates via * auto-embedding. Rows matching ANY algorithm are returned. All matching score * fields are populated. */ unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } export interface AgentTaskFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AgentTaskFilter[]; /** Filter by the object’s `approvalFeedback` field. */ approvalFeedback?: StringFilter; /** Filter by the object’s `approvalStatus` field. */ approvalStatus?: StringFilter; /** Filter by the object’s `approvedAt` field. */ approvedAt?: DatetimeFilter; /** Filter by the object’s `approvedBy` field. */ approvedBy?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ not?: AgentTaskFilter; /** Checks for any expressions in this list. */ or?: AgentTaskFilter[]; /** Filter by the object’s `orderIndex` field. */ orderIndex?: IntFilter; /** Filter by the object’s `plan` relation. */ plan?: AgentPlanFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; /** Filter by the object’s `requiresApproval` field. */ requiresApproval?: BooleanFilter; /** Filter by the object’s `source` field. */ source?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } export interface AgentThreadFilter { /** Filter by the object’s `agent` relation. */ agent?: AgentFilter; /** A related `agent` exists. */ agentExists?: boolean; /** Filter by the object’s `agentId` field. */ agentId?: UUIDFilter; /** Filter by the object’s `agentMessagesByThreadId` relation. */ agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; /** `agentMessagesByThreadId` exist. */ agentMessagesByThreadIdExist?: boolean; /** Filter by the object’s `agentPlansByThreadId` relation. */ agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; /** `agentPlansByThreadId` exist. */ agentPlansByThreadIdExist?: boolean; /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; /** `agentThreadsByParentThreadId` exist. */ agentThreadsByParentThreadIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentThreadFilter[]; /** Filter by the object’s `archivedAt` field. */ archivedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isArchived` field. */ isArchived?: BooleanFilter; /** Filter by the object’s `mode` field. */ mode?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ not?: AgentThreadFilter; /** Checks for any expressions in this list. */ or?: AgentThreadFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `parentThread` relation. */ parentThread?: AgentThreadFilter; /** A related `parentThread` exists. */ parentThreadExists?: boolean; /** Filter by the object’s `parentThreadId` field. */ parentThreadId?: UUIDFilter; /** Filter by the object’s `promptTemplate` relation. */ promptTemplate?: AgentPromptFilter; /** A related `promptTemplate` exists. */ promptTemplateExists?: boolean; /** Filter by the object’s `promptTemplateId` field. */ promptTemplateId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } export type AgentOrderBy = 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_EPHEMERAL_ASC' | 'IS_EPHEMERAL_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AgentMessageOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'NATURAL' | 'PARTS_ASC' | 'PARTS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AgentPersonaOrderBy = 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC'; export type AgentPlanOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AgentPromptOrderBy = 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_DEFAULT_ASC' | 'IS_DEFAULT_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC'; export type AgentResourceChunkOrderBy = 'AGENT_RESOURCE_ID_ASC' | 'AGENT_RESOURCE_ID_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' | 'CHUNK_INDEX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AgentResourceOrderBy = 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'BODY_TRGM_SIMILARITY_ASC' | 'BODY_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESCRIPTION_TRGM_SIMILARITY_ASC' | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'KEYWORDS_ASC' | 'KEYWORDS_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'KIND_TRGM_SIMILARITY_ASC' | 'KIND_TRGM_SIMILARITY_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_ASC' | 'SEARCH_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'TITLE_TRGM_SIMILARITY_ASC' | 'TITLE_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC'; export type AgentTaskOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'APPROVAL_FEEDBACK_ASC' | 'APPROVAL_FEEDBACK_DESC' | 'APPROVAL_STATUS_ASC' | 'APPROVAL_STATUS_DESC' | 'APPROVED_AT_ASC' | 'APPROVED_AT_DESC' | 'APPROVED_BY_ASC' | 'APPROVED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'ORDER_INDEX_ASC' | 'ORDER_INDEX_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REQUIRES_APPROVAL_ASC' | 'REQUIRES_APPROVAL_DESC' | 'SOURCE_ASC' | 'SOURCE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AgentThreadOrderBy = 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PARENT_THREAD_ID_ASC' | 'PARENT_THREAD_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROMPT_TEMPLATE_ID_ASC' | 'PROMPT_TEMPLATE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export interface CreateAgentInput { clientMutationId?: string; agent: { config?: Record; databaseId: string; isEphemeral?: boolean; name: string; ownerId?: string; parentId?: string; personaId?: string; status?: string; systemPrompt?: string; }; } export interface AgentPatch { config?: Record | null; databaseId?: string | null; isEphemeral?: boolean | null; name?: string | null; ownerId?: string | null; parentId?: string | null; personaId?: string | null; status?: string | null; systemPrompt?: string | null; } export interface UpdateAgentInput { clientMutationId?: string; id: string; agentPatch: AgentPatch; } export interface DeleteAgentInput { clientMutationId?: string; id: string; } export interface CreateAgentMessageInput { clientMutationId?: string; agentMessage: { actorId?: string; agentId?: string; authorRole: string; databaseId: string; model?: string; parts?: Record; threadId: string; }; } export interface AgentMessagePatch { actorId?: string | null; agentId?: string | null; authorRole?: string | null; databaseId?: string | null; model?: string | null; parts?: Record | null; threadId?: string | null; } export interface UpdateAgentMessageInput { clientMutationId?: string; id: string; agentMessagePatch: AgentMessagePatch; } export interface DeleteAgentMessageInput { clientMutationId?: string; id: string; } export interface CreateAgentPersonaInput { clientMutationId?: string; agentPersona: { config?: Record; createdBy?: string; databaseId: string; description?: string; isActive?: boolean; name: string; resources?: string[]; slug: string; systemPrompt?: string; updatedBy?: string; }; } export interface AgentPersonaPatch { config?: Record | null; createdBy?: string | null; databaseId?: string | null; description?: string | null; isActive?: boolean | null; name?: string | null; resources?: string[] | null; slug?: string | null; systemPrompt?: string | null; updatedBy?: string | null; } export interface UpdateAgentPersonaInput { clientMutationId?: string; id: string; agentPersonaPatch: AgentPersonaPatch; } export interface DeleteAgentPersonaInput { clientMutationId?: string; id: string; } export interface CreateAgentPlanInput { clientMutationId?: string; agentPlan: { databaseId: string; description?: string; ownerId?: string; status?: string; threadId: string; title: string; }; } export interface AgentPlanPatch { databaseId?: string | null; description?: string | null; ownerId?: string | null; status?: string | null; threadId?: string | null; title?: string | null; } export interface UpdateAgentPlanInput { clientMutationId?: string; id: string; agentPlanPatch: AgentPlanPatch; } export interface DeleteAgentPlanInput { clientMutationId?: string; id: string; } export interface CreateAgentPromptInput { clientMutationId?: string; agentPrompt: { content: string; createdBy?: string; databaseId: string; description?: string; isDefault?: boolean; metadata?: Record; name: string; updatedBy?: string; }; } export interface AgentPromptPatch { content?: string | null; createdBy?: string | null; databaseId?: string | null; description?: string | null; isDefault?: boolean | null; metadata?: Record | null; name?: string | null; updatedBy?: string | null; } export interface UpdateAgentPromptInput { clientMutationId?: string; id: string; agentPromptPatch: AgentPromptPatch; } export interface DeleteAgentPromptInput { clientMutationId?: string; id: string; } export interface CreateAgentResourceChunkInput { clientMutationId?: string; agentResourceChunk: { agentResourceId: string; body: string; chunkIndex?: number; embedding?: number[]; embeddingText?: string; metadata?: Record; }; } export interface AgentResourceChunkPatch { agentResourceId?: string | null; body?: string | null; chunkIndex?: number | null; embedding?: number[] | null; embeddingText?: string | null; metadata?: Record | null; } export interface UpdateAgentResourceChunkInput { clientMutationId?: string; id: string; agentResourceChunkPatch: AgentResourceChunkPatch; } export interface DeleteAgentResourceChunkInput { clientMutationId?: string; id: string; } export interface CreateAgentResourceInput { clientMutationId?: string; agentResource: { archivedAt?: string; body: string; createdBy?: string; databaseId: string; description?: string; embedding?: number[]; embeddingText?: string; isActive?: boolean; isArchived?: boolean; keywords?: string[]; kind?: string; metadata?: Record; slug: string; title: string; updatedBy?: string; }; } export interface AgentResourcePatch { archivedAt?: string | null; body?: string | null; createdBy?: string | null; databaseId?: string | null; description?: string | null; embedding?: number[] | null; embeddingText?: string | null; isActive?: boolean | null; isArchived?: boolean | null; keywords?: string[] | null; kind?: string | null; metadata?: Record | null; slug?: string | null; title?: string | null; updatedBy?: string | null; } export interface UpdateAgentResourceInput { clientMutationId?: string; id: string; agentResourcePatch: AgentResourcePatch; } export interface DeleteAgentResourceInput { clientMutationId?: string; id: string; } export interface CreateAgentTaskInput { clientMutationId?: string; agentTask: { actorId?: string; approvalFeedback?: string; approvalStatus?: string; approvedAt?: string; approvedBy?: string; databaseId: string; description: string; error?: string; orderIndex?: number; planId: string; requiresApproval?: boolean; source?: string; status?: string; }; } export interface AgentTaskPatch { actorId?: string | null; approvalFeedback?: string | null; approvalStatus?: string | null; approvedAt?: string | null; approvedBy?: string | null; databaseId?: string | null; description?: string | null; error?: string | null; orderIndex?: number | null; planId?: string | null; requiresApproval?: boolean | null; source?: string | null; status?: string | null; } export interface UpdateAgentTaskInput { clientMutationId?: string; id: string; agentTaskPatch: AgentTaskPatch; } export interface DeleteAgentTaskInput { clientMutationId?: string; id: string; } export interface CreateAgentThreadInput { clientMutationId?: string; agentThread: { agentId?: string; archivedAt?: string; databaseId: string; isArchived?: boolean; mode?: string; model?: string; ownerId?: string; parentThreadId?: string; promptTemplateId?: string; status?: string; systemPrompt?: string; tags?: string[]; title?: string; }; } export interface AgentThreadPatch { agentId?: string | null; archivedAt?: string | null; databaseId?: string | null; isArchived?: boolean | null; mode?: string | null; model?: string | null; ownerId?: string | null; parentThreadId?: string | null; promptTemplateId?: string | null; status?: string | null; systemPrompt?: string | null; tags?: string[] | null; title?: string | null; } export interface UpdateAgentThreadInput { clientMutationId?: string; id: string; agentThreadPatch: AgentThreadPatch; } export interface DeleteAgentThreadInput { clientMutationId?: string; id: string; } export declare const connectionFieldsMap: Record>; export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; /** * Owner entity ID for entity-scoped bucket provisioning. * Omit for app-level (database-wide) storage. */ ownerId?: string; } /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentMessageFilter { /** Filters to entities where every related entity matches. */ every?: AgentMessageFilter; /** Filters to entities where no related entity matches. */ none?: AgentMessageFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentMessageFilter; } /** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentThreadFilter { /** Filters to entities where every related entity matches. */ every?: AgentThreadFilter; /** Filters to entities where no related entity matches. */ none?: AgentThreadFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentThreadFilter; } /** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentFilter { /** Filters to entities where every related entity matches. */ every?: AgentFilter; /** Filters to entities where no related entity matches. */ none?: AgentFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentFilter; } /** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPersonaToManyAgentFilter { /** Filters to entities where every related entity matches. */ every?: AgentFilter; /** Filters to entities where no related entity matches. */ none?: AgentFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentFilter; } /** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPlanToManyAgentTaskFilter { /** Filters to entities where every related entity matches. */ every?: AgentTaskFilter; /** Filters to entities where no related entity matches. */ none?: AgentTaskFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentTaskFilter; } /** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPromptToManyAgentThreadFilter { /** Filters to entities where every related entity matches. */ every?: AgentThreadFilter; /** Filters to entities where no related entity matches. */ none?: AgentThreadFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentThreadFilter; } /** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ export interface VectorNearbyInput { /** Maximum distance threshold. Only rows within this distance are returned. */ distance?: number; /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ vector: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { /** Filters to entities where every related entity matches. */ every?: AgentResourceChunkFilter; /** Filters to entities where no related entity matches. */ none?: AgentResourceChunkFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentResourceChunkFilter; } /** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ export interface StringTrgmFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ distinctFromInsensitive?: string; /** Ends with the specified string (case-sensitive). */ endsWith?: string; /** Ends with the specified string (case-insensitive). */ endsWithInsensitive?: string; /** Equal to the specified value. */ equalTo?: string; /** Equal to the specified value (case-insensitive). */ equalToInsensitive?: string; /** Greater than the specified value. */ greaterThan?: string; /** Greater than the specified value (case-insensitive). */ greaterThanInsensitive?: string; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: string; /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; /** Included in the specified list. */ in?: string[]; /** Included in the specified list (case-insensitive). */ inInsensitive?: string[]; /** Contains the specified string (case-sensitive). */ includes?: string; /** Contains the specified string (case-insensitive). */ includesInsensitive?: string; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: string; /** Less than the specified value (case-insensitive). */ lessThanInsensitive?: string; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: string; /** Less than or equal to the specified value (case-insensitive). */ lessThanOrEqualToInsensitive?: string; /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ like?: string; /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ likeInsensitive?: string; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: string; /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ notDistinctFromInsensitive?: string; /** Does not end with the specified string (case-sensitive). */ notEndsWith?: string; /** Does not end with the specified string (case-insensitive). */ notEndsWithInsensitive?: string; /** Not equal to the specified value. */ notEqualTo?: string; /** Not equal to the specified value (case-insensitive). */ notEqualToInsensitive?: string; /** Not included in the specified list. */ notIn?: string[]; /** Not included in the specified list (case-insensitive). */ notInInsensitive?: string[]; /** Does not contain the specified string (case-sensitive). */ notIncludes?: string; /** Does not contain the specified string (case-insensitive). */ notIncludesInsensitive?: string; /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ notLike?: string; /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ notLikeInsensitive?: string; /** Does not start with the specified string (case-sensitive). */ notStartsWith?: string; /** Does not start with the specified string (case-insensitive). */ notStartsWithInsensitive?: string; /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ similarTo?: TrgmSearchInput; /** Starts with the specified string (case-sensitive). */ startsWith?: string; /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: string; /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ wordSimilarTo?: TrgmSearchInput; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ value: string; } /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ export interface AgentThreadToManyAgentMessageFilter { /** Filters to entities where every related entity matches. */ every?: AgentMessageFilter; /** Filters to entities where no related entity matches. */ none?: AgentMessageFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentMessageFilter; } /** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ export interface AgentThreadToManyAgentPlanFilter { /** Filters to entities where every related entity matches. */ every?: AgentPlanFilter; /** Filters to entities where no related entity matches. */ none?: AgentPlanFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentPlanFilter; } /** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ export interface AgentThreadToManyAgentThreadFilter { /** Filters to entities where every related entity matches. */ every?: AgentThreadFilter; /** Filters to entities where no related entity matches. */ none?: AgentThreadFilter; /** Filters to entities where at least one related entity matches. */ some?: AgentThreadFilter; } /** An input for mutations affecting `Agent` */ export interface AgentInput { /** Per-instance config overrides (model, temperature, tools) */ config?: Record; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** If true, agent is deleted when its spawning thread is deleted */ isEphemeral?: boolean; /** Display name for this agent instance */ name: string; /** Human who owns/manages this agent */ ownerId?: string; /** Parent agent (for sub-agent delegation hierarchy) */ parentId?: string; /** Persona template this agent was created from */ personaId?: string; /** Agent lifecycle status: active, paused, terminated */ status?: string; /** System prompt override (NULL = inherit from persona) */ systemPrompt?: string; updatedAt?: string; } /** An input for mutations affecting `AgentMessage` */ export interface AgentMessageInput { /** User who authored this message */ actorId?: string; /** Agent that authored this message (NULL for human messages) */ agentId?: string; /** Who authored this message: user or assistant */ authorRole: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** LLM model that generated this response */ model?: string; /** Message content: TextPart and ToolPart array */ parts?: Record; /** Foreign key to agent_thread */ threadId: string; updatedAt?: string; } /** An input for mutations affecting `AgentPersona` */ export interface AgentPersonaInput { /** Model preferences, temperature, tool access, constraints */ config?: Record; createdAt?: string; createdBy?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Brief description of this persona role */ description?: string; id?: string; /** Whether this persona is available for use */ isActive?: boolean; /** Display name for this persona */ name: string; /** Slugs of agent_resource entries to link when spawning */ resources?: string[]; /** Unique human-readable identifier for this persona */ slug: string; /** Default system prompt for agents using this persona */ systemPrompt?: string; updatedAt?: string; updatedBy?: string; } /** An input for mutations affecting `AgentPlan` */ export interface AgentPlanInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Overall goal or context for this plan */ description?: string; id?: string; /** User who owns this plan */ ownerId?: string; /** Plan lifecycle: draft, active, completed, failed, cancelled */ status?: string; /** Foreign key to agent_thread */ threadId: string; /** Human-readable plan name */ title: string; updatedAt?: string; } /** An input for mutations affecting `AgentPrompt` */ export interface AgentPromptInput { /** The system prompt template content */ content: string; createdAt?: string; createdBy?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** What this prompt template is for */ description?: string; id?: string; /** Whether this is the default prompt for the entity/app */ isDefault?: boolean; /** Variables, tags, category metadata */ metadata?: Record; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name: string; updatedAt?: string; updatedBy?: string; } /** An input for mutations affecting `AgentResourceChunk` */ export interface AgentResourceChunkInput { agentResourceId: string; body: string; chunkIndex?: number; createdAt?: string; embedding?: number[]; /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; updatedAt?: string; } /** An input for mutations affecting `AgentResource` */ export interface AgentResourceInput { /** Timestamp when this record was archived, NULL if active */ archivedAt?: string; /** Full content (instructions for skills, reference text for knowledge) */ body: string; createdAt?: string; createdBy?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Brief description of this resource */ description?: string; embedding?: number[]; /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ isActive?: boolean; /** Whether this record has been archived by the user */ isArchived?: boolean; /** Keywords for deterministic retrieval routing */ keywords?: string[]; /** Resource type: skill, knowledge, or convention */ kind?: string; /** Structured metadata: category, version, author, custom attributes */ metadata?: Record; /** Unique human-readable identifier for portable references */ slug: string; /** Resource name or title */ title: string; updatedAt?: string; updatedBy?: string; } /** An input for mutations affecting `AgentTask` */ export interface AgentTaskInput { /** User who authored this task */ actorId?: string; /** Reviewer feedback or reason for the decision */ approvalFeedback?: string; /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ approvalStatus?: string; /** Timestamp of the approval or rejection decision */ approvedAt?: string; /** User who approved or rejected this task */ approvedBy?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Natural-language description of the work to do */ description: string; /** Error message captured when the task failed */ error?: string; id?: string; /** Position within the plan (for ordered task lists) */ orderIndex?: number; /** Foreign key to agent_plan */ planId: string; /** Whether this task is an approval gate requiring human decision */ requiresApproval?: boolean; /** Who created the task: agent or user */ source?: string; /** Current status of this task */ status?: string; updatedAt?: string; } /** An input for mutations affecting `AgentThread` */ export interface AgentThreadInput { /** Agent instance assigned to this thread */ agentId?: string; /** Timestamp when this record was archived, NULL if active */ archivedAt?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** Whether this record has been archived by the user */ isArchived?: boolean; /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ mode?: string; /** LLM model id this thread is bound to */ model?: string; /** User who owns this thread */ ownerId?: string; /** Parent thread that spawned this sub-conversation */ parentThreadId?: string; /** Optional FK to a shared prompt template */ promptTemplateId?: string; /** Current status of this thread */ status?: string; /** System prompt active for this thread */ systemPrompt?: string; /** User-defined labels for organizing and filtering threads */ tags?: string[]; /** Human-readable conversation title */ title?: string; updatedAt?: string; } /** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ export interface AgentMessageFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `agent` relation. */ agent?: AgentFilter; /** A related `agent` exists. */ agentExists?: boolean; /** Filter by the object’s `agentId` field. */ agentId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AgentMessageFilter[]; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ not?: AgentMessageFilter; /** Checks for any expressions in this list. */ or?: AgentMessageFilter[]; /** Filter by the object’s `parts` field. */ parts?: JSONFilter; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ export interface AgentThreadFilter { /** Filter by the object’s `agent` relation. */ agent?: AgentFilter; /** A related `agent` exists. */ agentExists?: boolean; /** Filter by the object’s `agentId` field. */ agentId?: UUIDFilter; /** Filter by the object’s `agentMessagesByThreadId` relation. */ agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; /** `agentMessagesByThreadId` exist. */ agentMessagesByThreadIdExist?: boolean; /** Filter by the object’s `agentPlansByThreadId` relation. */ agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; /** `agentPlansByThreadId` exist. */ agentPlansByThreadIdExist?: boolean; /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; /** `agentThreadsByParentThreadId` exist. */ agentThreadsByParentThreadIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentThreadFilter[]; /** Filter by the object’s `archivedAt` field. */ archivedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isArchived` field. */ isArchived?: BooleanFilter; /** Filter by the object’s `mode` field. */ mode?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ not?: AgentThreadFilter; /** Checks for any expressions in this list. */ or?: AgentThreadFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `parentThread` relation. */ parentThread?: AgentThreadFilter; /** A related `parentThread` exists. */ parentThreadExists?: boolean; /** Filter by the object’s `parentThreadId` field. */ parentThreadId?: UUIDFilter; /** Filter by the object’s `promptTemplate` relation. */ promptTemplate?: AgentPromptFilter; /** A related `promptTemplate` exists. */ promptTemplateExists?: boolean; /** Filter by the object’s `promptTemplateId` field. */ promptTemplateId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentFilter { /** Filter by the object’s `agentMessages` relation. */ agentMessages?: AgentToManyAgentMessageFilter; /** `agentMessages` exist. */ agentMessagesExist?: boolean; /** Filter by the object’s `agentThreads` relation. */ agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentFilter[]; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: boolean; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isEphemeral` field. */ isEphemeral?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: AgentFilter; /** Checks for any expressions in this list. */ or?: AgentFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `parent` relation. */ parent?: AgentFilter; /** A related `parent` exists. */ parentExists?: boolean; /** Filter by the object’s `parentId` field. */ parentId?: UUIDFilter; /** Filter by the object’s `persona` relation. */ persona?: AgentPersonaFilter; /** A related `persona` exists. */ personaExists?: boolean; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ export interface AgentTaskFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AgentTaskFilter[]; /** Filter by the object’s `approvalFeedback` field. */ approvalFeedback?: StringFilter; /** Filter by the object’s `approvalStatus` field. */ approvalStatus?: StringFilter; /** Filter by the object’s `approvedAt` field. */ approvedAt?: DatetimeFilter; /** Filter by the object’s `approvedBy` field. */ approvedBy?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ not?: AgentTaskFilter; /** Checks for any expressions in this list. */ or?: AgentTaskFilter[]; /** Filter by the object’s `orderIndex` field. */ orderIndex?: IntFilter; /** Filter by the object’s `plan` relation. */ plan?: AgentPlanFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; /** Filter by the object’s `requiresApproval` field. */ requiresApproval?: BooleanFilter; /** Filter by the object’s `source` field. */ source?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** Similarity metric for vector search */ export type VectorMetric = 'COSINE' | 'IP' | 'L2'; /** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceChunkFilter { /** Filter by the object’s `agentResource` relation. */ agentResource?: AgentResourceFilter; /** Filter by the object’s `agentResourceId` field. */ agentResourceId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AgentResourceChunkFilter[]; /** Filter by the object’s `body` field. */ body?: StringFilter; /** Filter by the object’s `chunkIndex` field. */ chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ not?: AgentResourceChunkFilter; /** Checks for any expressions in this list. */ or?: AgentResourceChunkFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPlanFilter { /** Filter by the object’s `agentTasksByPlanId` relation. */ agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; /** `agentTasksByPlanId` exist. */ agentTasksByPlanIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentPlanFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ not?: AgentPlanFilter; /** Checks for any expressions in this list. */ or?: AgentPlanFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Equal to the specified value. */ equalTo?: string; /** Greater than the specified value. */ greaterThan?: string; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: string; /** Included in the specified list. */ in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: string; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: string; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: string; /** Not equal to the specified value. */ notEqualTo?: string; /** Not included in the specified list. */ notIn?: string[]; } /** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ export interface StringFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ distinctFromInsensitive?: string; /** Ends with the specified string (case-sensitive). */ endsWith?: string; /** Ends with the specified string (case-insensitive). */ endsWithInsensitive?: string; /** Equal to the specified value. */ equalTo?: string; /** Equal to the specified value (case-insensitive). */ equalToInsensitive?: string; /** Greater than the specified value. */ greaterThan?: string; /** Greater than the specified value (case-insensitive). */ greaterThanInsensitive?: string; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: string; /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; /** Included in the specified list. */ in?: string[]; /** Included in the specified list (case-insensitive). */ inInsensitive?: string[]; /** Contains the specified string (case-sensitive). */ includes?: string; /** Contains the specified string (case-insensitive). */ includesInsensitive?: string; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: string; /** Less than the specified value (case-insensitive). */ lessThanInsensitive?: string; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: string; /** Less than or equal to the specified value (case-insensitive). */ lessThanOrEqualToInsensitive?: string; /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ like?: string; /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ likeInsensitive?: string; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: string; /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ notDistinctFromInsensitive?: string; /** Does not end with the specified string (case-sensitive). */ notEndsWith?: string; /** Does not end with the specified string (case-insensitive). */ notEndsWithInsensitive?: string; /** Not equal to the specified value. */ notEqualTo?: string; /** Not equal to the specified value (case-insensitive). */ notEqualToInsensitive?: string; /** Not included in the specified list. */ notIn?: string[]; /** Not included in the specified list (case-insensitive). */ notInInsensitive?: string[]; /** Does not contain the specified string (case-sensitive). */ notIncludes?: string; /** Does not contain the specified string (case-insensitive). */ notIncludesInsensitive?: string; /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ notLike?: string; /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ notLikeInsensitive?: string; /** Does not start with the specified string (case-sensitive). */ notStartsWith?: string; /** Does not start with the specified string (case-insensitive). */ notStartsWithInsensitive?: string; /** Starts with the specified string (case-sensitive). */ startsWith?: string; /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: string; } /** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ export interface DatetimeFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Equal to the specified value. */ equalTo?: string; /** Greater than the specified value. */ greaterThan?: string; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: string; /** Included in the specified list. */ in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: string; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: string; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: string; /** Not equal to the specified value. */ notEqualTo?: string; /** Not included in the specified list. */ notIn?: string[]; } /** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ export interface JSONFilter { /** Contained by the specified JSON. */ containedBy?: Record; /** Contains the specified JSON. */ contains?: Record; /** Contains all of the specified keys. */ containsAllKeys?: string[]; /** Contains any of the specified keys. */ containsAnyKeys?: string[]; /** Contains the specified key. */ containsKey?: string; /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: Record; /** Equal to the specified value. */ equalTo?: Record; /** Greater than the specified value. */ greaterThan?: Record; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: Record; /** Included in the specified list. */ in?: Record[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: Record; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: Record; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: Record; /** Not equal to the specified value. */ notEqualTo?: Record; /** Not included in the specified list. */ notIn?: Record[]; } /** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ export interface BooleanFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: boolean; /** Equal to the specified value. */ equalTo?: boolean; /** Greater than the specified value. */ greaterThan?: boolean; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: boolean; /** Included in the specified list. */ in?: boolean[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: boolean; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: boolean; /** Not equal to the specified value. */ notEqualTo?: boolean; /** Not included in the specified list. */ notIn?: boolean[]; } /** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPromptFilter { /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; /** `agentThreadsByPromptTemplateId` exist. */ agentThreadsByPromptTemplateIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentPromptFilter[]; /** Filter by the object’s `content` field. */ content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isDefault` field. */ isDefault?: BooleanFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: AgentPromptFilter; /** Checks for any expressions in this list. */ or?: AgentPromptFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; } /** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ export interface StringListFilter { /** Any array item is equal to the specified value. */ anyEqualTo?: string; /** Any array item is greater than the specified value. */ anyGreaterThan?: string; /** Any array item is greater than or equal to the specified value. */ anyGreaterThanOrEqualTo?: string; /** Any array item is less than the specified value. */ anyLessThan?: string; /** Any array item is less than or equal to the specified value. */ anyLessThanOrEqualTo?: string; /** Any array item is not equal to the specified value. */ anyNotEqualTo?: string; /** Contained by the specified list of values. */ containedBy?: string[]; /** Contains the specified list of values. */ contains?: string[]; /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string[]; /** Equal to the specified value. */ equalTo?: string[]; /** Greater than the specified value. */ greaterThan?: string[]; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: string[]; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: string[]; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: string[]; /** Not equal to the specified value. */ notEqualTo?: string[]; /** Overlaps the specified list of values. */ overlaps?: string[]; } /** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPersonaFilter { /** Filter by the object’s `agentsByPersonaId` relation. */ agentsByPersonaId?: AgentPersonaToManyAgentFilter; /** `agentsByPersonaId` exist. */ agentsByPersonaIdExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentPersonaFilter[]; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: AgentPersonaFilter; /** Checks for any expressions in this list. */ or?: AgentPersonaFilter[]; /** Filter by the object’s `resources` field. */ resources?: StringListFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; } /** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ export interface IntFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: number; /** Equal to the specified value. */ equalTo?: number; /** Greater than the specified value. */ greaterThan?: number; /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: number; /** Included in the specified list. */ in?: number[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ lessThan?: number; /** Less than or equal to the specified value. */ lessThanOrEqualTo?: number; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: number; /** Not equal to the specified value. */ notEqualTo?: number; /** Not included in the specified list. */ notIn?: number[]; } /** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceFilter { /** Filter by the object’s `agentResourceChunks` relation. */ agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; /** `agentResourceChunks` exist. */ agentResourceChunksExist?: boolean; /** Checks for all expressions in this list. */ and?: AgentResourceFilter[]; /** Filter by the object’s `archivedAt` field. */ archivedAt?: DatetimeFilter; /** Filter by the object’s `body` field. */ body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; /** Filter by the object’s `isArchived` field. */ isArchived?: BooleanFilter; /** Filter by the object’s `keywords` field. */ keywords?: StringListFilter; /** Filter by the object’s `kind` field. */ kind?: StringTrgmFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ not?: AgentResourceFilter; /** Checks for any expressions in this list. */ or?: AgentResourceFilter[]; /** Filter by the object’s `search` field. */ search?: FullTextFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `title` field. */ title?: StringTrgmFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ trgmTitle?: TrgmSearchInput; /** TSV search on the `search` column. */ tsvSearch?: string; /** * Composite unified search. Provide a search string and it will be dispatched to * all text-compatible search algorithms (tsvector, BM25, pg_trgm) * simultaneously. When the LLM plugin is active, pgvector also participates via * auto-embedding. Rows matching ANY algorithm are returned. All matching score * fields are populated. */ unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } /** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ export interface VectorFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: number[]; /** Equal to the specified value. */ equalTo?: number[]; /** Included in the specified list. */ in?: number[][]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: number[]; /** Not equal to the specified value. */ notEqualTo?: number[]; /** Not included in the specified list. */ notIn?: number[][]; } /** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ export interface FullTextFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Equal to the specified value. */ equalTo?: string; /** Included in the specified list. */ in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Performs a full text search on the field. */ matches?: string; /** Equal to the specified value, treating null like an ordinary value. */ notDistinctFrom?: string; /** Not equal to the specified value. */ notEqualTo?: string; /** Not included in the specified list. */ notIn?: string[]; } export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; /** The S3 bucket name that was provisioned */ bucketName: string; /** The S3 endpoint (null for AWS S3 default) */ endpoint?: string | null; /** Error message if provisioning failed */ error?: string | null; /** The storage provider used */ provider: string; /** Whether provisioning succeeded */ success: boolean; } export type ProvisionBucketPayloadSelect = { accessType?: boolean; bucketName?: boolean; endpoint?: boolean; error?: boolean; provider?: boolean; success?: boolean; }; export interface CreateAgentPayload { /** The `Agent` that was created by this mutation. */ agent?: Agent | null; agentEdge?: AgentEdge | null; clientMutationId?: string | null; } export type CreateAgentPayloadSelect = { agent?: { select: AgentSelect; }; agentEdge?: { select: AgentEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentPayload { /** The `Agent` that was updated by this mutation. */ agent?: Agent | null; agentEdge?: AgentEdge | null; clientMutationId?: string | null; } export type UpdateAgentPayloadSelect = { agent?: { select: AgentSelect; }; agentEdge?: { select: AgentEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentPayload { /** The `Agent` that was deleted by this mutation. */ agent?: Agent | null; agentEdge?: AgentEdge | null; clientMutationId?: string | null; } export type DeleteAgentPayloadSelect = { agent?: { select: AgentSelect; }; agentEdge?: { select: AgentEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentMessagePayload { /** The `AgentMessage` that was created by this mutation. */ agentMessage?: AgentMessage | null; agentMessageEdge?: AgentMessageEdge | null; clientMutationId?: string | null; } export type CreateAgentMessagePayloadSelect = { agentMessage?: { select: AgentMessageSelect; }; agentMessageEdge?: { select: AgentMessageEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentMessagePayload { /** The `AgentMessage` that was updated by this mutation. */ agentMessage?: AgentMessage | null; agentMessageEdge?: AgentMessageEdge | null; clientMutationId?: string | null; } export type UpdateAgentMessagePayloadSelect = { agentMessage?: { select: AgentMessageSelect; }; agentMessageEdge?: { select: AgentMessageEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentMessagePayload { /** The `AgentMessage` that was deleted by this mutation. */ agentMessage?: AgentMessage | null; agentMessageEdge?: AgentMessageEdge | null; clientMutationId?: string | null; } export type DeleteAgentMessagePayloadSelect = { agentMessage?: { select: AgentMessageSelect; }; agentMessageEdge?: { select: AgentMessageEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentPersonaPayload { /** The `AgentPersona` that was created by this mutation. */ agentPersona?: AgentPersona | null; agentPersonaEdge?: AgentPersonaEdge | null; clientMutationId?: string | null; } export type CreateAgentPersonaPayloadSelect = { agentPersona?: { select: AgentPersonaSelect; }; agentPersonaEdge?: { select: AgentPersonaEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentPersonaPayload { /** The `AgentPersona` that was updated by this mutation. */ agentPersona?: AgentPersona | null; agentPersonaEdge?: AgentPersonaEdge | null; clientMutationId?: string | null; } export type UpdateAgentPersonaPayloadSelect = { agentPersona?: { select: AgentPersonaSelect; }; agentPersonaEdge?: { select: AgentPersonaEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentPersonaPayload { /** The `AgentPersona` that was deleted by this mutation. */ agentPersona?: AgentPersona | null; agentPersonaEdge?: AgentPersonaEdge | null; clientMutationId?: string | null; } export type DeleteAgentPersonaPayloadSelect = { agentPersona?: { select: AgentPersonaSelect; }; agentPersonaEdge?: { select: AgentPersonaEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentPlanPayload { /** The `AgentPlan` that was created by this mutation. */ agentPlan?: AgentPlan | null; agentPlanEdge?: AgentPlanEdge | null; clientMutationId?: string | null; } export type CreateAgentPlanPayloadSelect = { agentPlan?: { select: AgentPlanSelect; }; agentPlanEdge?: { select: AgentPlanEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentPlanPayload { /** The `AgentPlan` that was updated by this mutation. */ agentPlan?: AgentPlan | null; agentPlanEdge?: AgentPlanEdge | null; clientMutationId?: string | null; } export type UpdateAgentPlanPayloadSelect = { agentPlan?: { select: AgentPlanSelect; }; agentPlanEdge?: { select: AgentPlanEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentPlanPayload { /** The `AgentPlan` that was deleted by this mutation. */ agentPlan?: AgentPlan | null; agentPlanEdge?: AgentPlanEdge | null; clientMutationId?: string | null; } export type DeleteAgentPlanPayloadSelect = { agentPlan?: { select: AgentPlanSelect; }; agentPlanEdge?: { select: AgentPlanEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentPromptPayload { /** The `AgentPrompt` that was created by this mutation. */ agentPrompt?: AgentPrompt | null; agentPromptEdge?: AgentPromptEdge | null; clientMutationId?: string | null; } export type CreateAgentPromptPayloadSelect = { agentPrompt?: { select: AgentPromptSelect; }; agentPromptEdge?: { select: AgentPromptEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentPromptPayload { /** The `AgentPrompt` that was updated by this mutation. */ agentPrompt?: AgentPrompt | null; agentPromptEdge?: AgentPromptEdge | null; clientMutationId?: string | null; } export type UpdateAgentPromptPayloadSelect = { agentPrompt?: { select: AgentPromptSelect; }; agentPromptEdge?: { select: AgentPromptEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentPromptPayload { /** The `AgentPrompt` that was deleted by this mutation. */ agentPrompt?: AgentPrompt | null; agentPromptEdge?: AgentPromptEdge | null; clientMutationId?: string | null; } export type DeleteAgentPromptPayloadSelect = { agentPrompt?: { select: AgentPromptSelect; }; agentPromptEdge?: { select: AgentPromptEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentResourceChunkPayload { /** The `AgentResourceChunk` that was created by this mutation. */ agentResourceChunk?: AgentResourceChunk | null; agentResourceChunkEdge?: AgentResourceChunkEdge | null; clientMutationId?: string | null; } export type CreateAgentResourceChunkPayloadSelect = { agentResourceChunk?: { select: AgentResourceChunkSelect; }; agentResourceChunkEdge?: { select: AgentResourceChunkEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentResourceChunkPayload { /** The `AgentResourceChunk` that was updated by this mutation. */ agentResourceChunk?: AgentResourceChunk | null; agentResourceChunkEdge?: AgentResourceChunkEdge | null; clientMutationId?: string | null; } export type UpdateAgentResourceChunkPayloadSelect = { agentResourceChunk?: { select: AgentResourceChunkSelect; }; agentResourceChunkEdge?: { select: AgentResourceChunkEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentResourceChunkPayload { /** The `AgentResourceChunk` that was deleted by this mutation. */ agentResourceChunk?: AgentResourceChunk | null; agentResourceChunkEdge?: AgentResourceChunkEdge | null; clientMutationId?: string | null; } export type DeleteAgentResourceChunkPayloadSelect = { agentResourceChunk?: { select: AgentResourceChunkSelect; }; agentResourceChunkEdge?: { select: AgentResourceChunkEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentResourcePayload { /** The `AgentResource` that was created by this mutation. */ agentResource?: AgentResource | null; agentResourceEdge?: AgentResourceEdge | null; clientMutationId?: string | null; } export type CreateAgentResourcePayloadSelect = { agentResource?: { select: AgentResourceSelect; }; agentResourceEdge?: { select: AgentResourceEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentResourcePayload { /** The `AgentResource` that was updated by this mutation. */ agentResource?: AgentResource | null; agentResourceEdge?: AgentResourceEdge | null; clientMutationId?: string | null; } export type UpdateAgentResourcePayloadSelect = { agentResource?: { select: AgentResourceSelect; }; agentResourceEdge?: { select: AgentResourceEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentResourcePayload { /** The `AgentResource` that was deleted by this mutation. */ agentResource?: AgentResource | null; agentResourceEdge?: AgentResourceEdge | null; clientMutationId?: string | null; } export type DeleteAgentResourcePayloadSelect = { agentResource?: { select: AgentResourceSelect; }; agentResourceEdge?: { select: AgentResourceEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentTaskPayload { /** The `AgentTask` that was created by this mutation. */ agentTask?: AgentTask | null; agentTaskEdge?: AgentTaskEdge | null; clientMutationId?: string | null; } export type CreateAgentTaskPayloadSelect = { agentTask?: { select: AgentTaskSelect; }; agentTaskEdge?: { select: AgentTaskEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentTaskPayload { /** The `AgentTask` that was updated by this mutation. */ agentTask?: AgentTask | null; agentTaskEdge?: AgentTaskEdge | null; clientMutationId?: string | null; } export type UpdateAgentTaskPayloadSelect = { agentTask?: { select: AgentTaskSelect; }; agentTaskEdge?: { select: AgentTaskEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentTaskPayload { /** The `AgentTask` that was deleted by this mutation. */ agentTask?: AgentTask | null; agentTaskEdge?: AgentTaskEdge | null; clientMutationId?: string | null; } export type DeleteAgentTaskPayloadSelect = { agentTask?: { select: AgentTaskSelect; }; agentTaskEdge?: { select: AgentTaskEdgeSelect; }; clientMutationId?: boolean; }; export interface CreateAgentThreadPayload { /** The `AgentThread` that was created by this mutation. */ agentThread?: AgentThread | null; agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } export type CreateAgentThreadPayloadSelect = { agentThread?: { select: AgentThreadSelect; }; agentThreadEdge?: { select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; export interface UpdateAgentThreadPayload { /** The `AgentThread` that was updated by this mutation. */ agentThread?: AgentThread | null; agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } export type UpdateAgentThreadPayloadSelect = { agentThread?: { select: AgentThreadSelect; }; agentThreadEdge?: { select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; export interface DeleteAgentThreadPayload { /** The `AgentThread` that was deleted by this mutation. */ agentThread?: AgentThread | null; agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } export type DeleteAgentThreadPayloadSelect = { agentThread?: { select: AgentThreadSelect; }; agentThreadEdge?: { select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; /** A `Agent` edge in the connection. */ export interface AgentEdge { cursor?: string | null; /** The `Agent` at the end of the edge. */ node?: Agent | null; } export type AgentEdgeSelect = { cursor?: boolean; node?: { select: AgentSelect; }; }; /** A `AgentMessage` edge in the connection. */ export interface AgentMessageEdge { cursor?: string | null; /** The `AgentMessage` at the end of the edge. */ node?: AgentMessage | null; } export type AgentMessageEdgeSelect = { cursor?: boolean; node?: { select: AgentMessageSelect; }; }; /** A `AgentPersona` edge in the connection. */ export interface AgentPersonaEdge { cursor?: string | null; /** The `AgentPersona` at the end of the edge. */ node?: AgentPersona | null; } export type AgentPersonaEdgeSelect = { cursor?: boolean; node?: { select: AgentPersonaSelect; }; }; /** A `AgentPlan` edge in the connection. */ export interface AgentPlanEdge { cursor?: string | null; /** The `AgentPlan` at the end of the edge. */ node?: AgentPlan | null; } export type AgentPlanEdgeSelect = { cursor?: boolean; node?: { select: AgentPlanSelect; }; }; /** A `AgentPrompt` edge in the connection. */ export interface AgentPromptEdge { cursor?: string | null; /** The `AgentPrompt` at the end of the edge. */ node?: AgentPrompt | null; } export type AgentPromptEdgeSelect = { cursor?: boolean; node?: { select: AgentPromptSelect; }; }; /** A `AgentResourceChunk` edge in the connection. */ export interface AgentResourceChunkEdge { cursor?: string | null; /** The `AgentResourceChunk` at the end of the edge. */ node?: AgentResourceChunk | null; } export type AgentResourceChunkEdgeSelect = { cursor?: boolean; node?: { select: AgentResourceChunkSelect; }; }; /** A `AgentResource` edge in the connection. */ export interface AgentResourceEdge { cursor?: string | null; /** The `AgentResource` at the end of the edge. */ node?: AgentResource | null; } export type AgentResourceEdgeSelect = { cursor?: boolean; node?: { select: AgentResourceSelect; }; }; /** A `AgentTask` edge in the connection. */ export interface AgentTaskEdge { cursor?: string | null; /** The `AgentTask` at the end of the edge. */ node?: AgentTask | null; } export type AgentTaskEdgeSelect = { cursor?: boolean; node?: { select: AgentTaskSelect; }; }; /** A `AgentThread` edge in the connection. */ export interface AgentThreadEdge { cursor?: string | null; /** The `AgentThread` at the end of the edge. */ node?: AgentThread | null; } export type AgentThreadEdgeSelect = { cursor?: boolean; node?: { select: AgentThreadSelect; }; };