import type { ActivityId, AdvisoryCallId, AdvisoryId, AgentId, AuditEventId, CheckpointId, ChunkId, ConnectorId, ConnectorInstanceId, CredentialId, DeliverableId, DocumentId, EnvironmentId, ExecutionContextId, GoalId, HandoffId, KnowledgeBaseId, KnowledgeBaseRef, LockId, MCPClientId, MCPServerId, MCPSessionId, MemoryId, MemoryStoreRef, MessageId, PlanId, PluginId, ProjectId, RecordId, SandboxId, SessionId, SubSessionId, SummaryId, TaskId, TenantId, ToolCallId, TopicId, TurnId, UserId, VaultRef, WorkspaceId } from '../types/ids/index.js'; export declare function generateProjectId(): ProjectId; export declare function generateTopicId(): TopicId; export declare function generateTurnId(): TurnId; /** The id of one session-log record (its `id` field). */ export declare function generateRecordId(): RecordId; export declare function generateMessageId(): MessageId; export declare function generateSessionId(): SessionId; export declare function generateGoalId(): GoalId; export declare function generateToolCallId(): ToolCallId; export declare function generateActivityId(): ActivityId; export declare function generateTaskId(): TaskId; export declare function generatePlanId(): PlanId; export declare function generateKnowledgeBaseId(): KnowledgeBaseId; export declare function generateDocumentId(): DocumentId; export declare function generateChunkId(): ChunkId; export declare function generateConnectorId(): ConnectorId; export declare function generateConnectorInstanceId(): ConnectorInstanceId; export declare function generateTenantId(): TenantId; export declare function generateCredentialId(): CredentialId; export declare function generateExecutionContextId(): ExecutionContextId; export declare function generateMCPServerId(): MCPServerId; export declare function generateMCPClientId(): MCPClientId; export declare function generateMCPSessionId(): MCPSessionId; export declare function generateEnvironmentId(): EnvironmentId; export declare function generateCheckpointId(): CheckpointId; export declare function generateAdvisoryId(): AdvisoryId; export declare function generateAdvisoryCallId(): AdvisoryCallId; export declare function generateAuditEventId(): AuditEventId; export declare function generateMemoryId(): MemoryId; export declare function generatePluginId(): PluginId; export declare function generateSandboxId(): SandboxId; export declare function generateWorkspaceId(): WorkspaceId; export declare function generateSubSessionId(): SubSessionId; export declare function generateSummaryId(): SummaryId; export declare function generateHandoffId(): HandoffId; export declare function generateDeliverableId(): DeliverableId; /** Entity kinds are supplied by a typed field or storage collection. */ export interface EntityIdByKind { turn: TurnId; record: RecordId; message: MessageId; session: SessionId; goal: GoalId; toolCall: ToolCallId; activity: ActivityId; task: TaskId; plan: PlanId; knowledgeBase: KnowledgeBaseId; document: DocumentId; chunk: ChunkId; connector: ConnectorId; connectorInstance: ConnectorInstanceId; tenant: TenantId; credential: CredentialId; executionContext: ExecutionContextId; mcpServer: MCPServerId; mcpClient: MCPClientId; mcpSession: MCPSessionId; environment: EnvironmentId; checkpoint: CheckpointId; lock: LockId; advisory: AdvisoryId; advisoryCall: AdvisoryCallId; memory: MemoryId; plugin: PluginId; sandbox: SandboxId; auditEvent: AuditEventId; user: UserId; agent: AgentId; memoryStoreRef: MemoryStoreRef; vaultRef: VaultRef; knowledgeBaseRef: KnowledgeBaseRef; project: ProjectId; topic: TopicId; subSession: SubSessionId; handoff: HandoffId; workspace: WorkspaceId; summary: SummaryId; deliverable: DeliverableId; } export type EntityIdKind = keyof EntityIdByKind; /** * Checks an id without throwing or rewriting it. UUIDs identify opaque * entities; the kind comes from the caller's field or collection. * This validates spelling, not existence, ownership, or access permission. */ export declare function isEntityId(value: unknown, kind: K): value is EntityIdByKind[K]; /** @deprecated Use the `as*Id` constructor of the same type; this family throws a plain Error and is removed in the next major. */ export declare function parseProjectId(raw: string): ProjectId; /** @deprecated Use the `as*Id` constructor of the same type; this family throws a plain Error and is removed in the next major. */ export declare function parseTurnId(raw: string): TurnId; /** @deprecated Use the `as*Id` constructor of the same type; this family throws a plain Error and is removed in the next major. */ export declare function parseConnectorInstanceId(raw: string): ConnectorInstanceId; /** @deprecated Use the `as*Id` constructor of the same type; this family throws a plain Error and is removed in the next major. */ export declare function parsePluginId(raw: string): PluginId; /** @deprecated Use the `as*Id` constructor of the same type; this family throws a plain Error and is removed in the next major. */ export declare function parseSandboxId(raw: string): SandboxId; /** A value that cannot represent an entity id because it is not a UUID. */ export declare class InvalidIdError extends Error { readonly value: string; /** The typed field or collection that required an identity. */ readonly expectedKind: EntityIdKind; constructor(value: string, /** The typed field or collection that required an identity. */ expectedKind: EntityIdKind); } type IdParser = (value: string) => T; export declare const asTurnId: IdParser; export declare const asRecordId: IdParser; export declare const asMessageId: IdParser; export declare const asSessionId: IdParser; export declare const asGoalId: IdParser; export declare const asToolCallId: IdParser; export declare const asActivityId: IdParser; export declare const asTaskId: IdParser; export declare const asPlanId: IdParser; export declare const asKnowledgeBaseId: IdParser; export declare const asDocumentId: IdParser; export declare const asChunkId: IdParser; export declare const asConnectorId: IdParser; export declare const asConnectorInstanceId: IdParser; export declare const asTenantId: IdParser; export declare const asCredentialId: IdParser; export declare const asExecutionContextId: IdParser; export declare const asMCPServerId: IdParser; export declare const asMCPClientId: IdParser; export declare const asMCPSessionId: IdParser; export declare const asEnvironmentId: IdParser; export declare const asCheckpointId: IdParser; export declare const asLockId: IdParser; export declare const asAdvisoryId: IdParser; export declare const asAdvisoryCallId: IdParser; export declare const asMemoryId: IdParser; export declare const asPluginId: IdParser; export declare const asSandboxId: IdParser; export declare const asAuditEventId: IdParser; export declare const asUserId: IdParser; /** * @deprecated Agents are named by their registry keys, which have no entity-id * spelling contract. Use the registry key as a string. See {@link AgentId}. * Removal is a later major. */ export declare const asAgentId: IdParser; export declare const asMemoryStoreRef: IdParser; export declare const asVaultRef: IdParser; export declare const asKnowledgeBaseRef: IdParser; export declare const asProjectId: IdParser; export declare const asTopicId: IdParser; export declare const asSubSessionId: IdParser; export declare const asHandoffId: IdParser; export declare const asWorkspaceId: IdParser; export declare const asSummaryId: IdParser; export declare const asDeliverableId: IdParser; export {}; //# sourceMappingURL=id.d.ts.map