export { A as ASSOCIATION_TARGET_TYPES, b as AssociationDirection, c as AssociationEdge, d as AssociationPickerProps, e as AssociationSourceEdge, f as AssociationTargetEdge, g as AssociationTargetType, h as AssociationsConfig, i as AssociationsDataSource, j as AssociationsEntry, k as AssociationsIdentity, l as AssociationsNotifier, m as AssociationsRpcError, n as AssociationsRpcErrorCode, o as AssociationsRpcOnlyDataSource, p as AssociationsRpcResult, q as AuthorDisplayInput, r as AuthorDisplayPort, C as CapturePickOpts, s as CapturePort, t as CaptureShownTo, u as CaptureUploadOpts, v as CaptureUploadResult, w as CategoriesEntry, x as CategoryDimension, y as CommentAgentAuthor, z as CommentAnchor, B as CommentAuthor, D as CommentsEntry, F as ComponentEntityToken, G as ENTITY_TYPE_TOKENS, H as EntityDoorProps, I as EntityDoorsPort, J as EntityOverlayEntry, K as EntityOverlayMap, L as EntityRefProps, a as EntityTypeMeta, E as EntityTypeToken, M as ErrorSink, N as ListedEntityToken, O as ModuleEntityToken, P as PartAnchor, Q as PgError, R as PickerOverrideMap, S as PlatformCategory, T as PlatformComment, U as REFERENCE_CATEGORY_DISPLAY, V as ReferencePickableEntityToken, W as SCHEMA_DISPLAY, X as ScopeableEntityToken, Y as UserEntityState, Z as UserStateKind, _ as WindowShellPort, $ as isAssociationTargetType, a0 as isAssociationsRpcErr, a1 as isEntityTypeToken, a2 as partKeyOf } from './ports-CUh7ujcL.cjs'; import 'react'; import '@ai-matrx/data/db'; declare const RECORD_STORE_NOUNS: { /** The canonical Table token (2026-10-07). */ readonly table: { readonly label: "Table"; }; /** Retired spelling of `table`: still READ (old stored references and Sources, older hosts), never written. */ readonly dataset: { readonly label: "Table"; }; /** The canonical Pick list token (2026-10-06). */ readonly pick_list: { readonly label: "Pick list"; }; /** Retired spellings of `pick_list`: still READ (old stored references, older hosts), never written. */ readonly structured_list: { readonly label: "Pick list"; }; readonly picklist: { readonly label: "Pick list"; }; }; /** The tokens a record-store noun was spelled with before it was renamed, mapped to today's. */ declare const RETIRED_RECORD_STORE_TOKENS: { readonly dataset: "table"; readonly structured_list: "pick_list"; readonly picklist: "pick_list"; }; /** Today's token for a record-store noun spelled any way it ever was; any other token is returned unchanged. */ declare function canonicalRecordStoreToken(token: string): string; type RecordStoreNounToken = keyof typeof RECORD_STORE_NOUNS; declare function isRecordStoreNounToken(token: string): token is RecordStoreNounToken; /** What a record-store token is called ("Table", "Pick list"), or null for any other token. */ declare function recordStoreNoun(token: string): string | null; /** Every registered label for (source → target); empty when the pair names none. */ declare function registeredEdgeLabels(sourceType: string, targetType: string): readonly string[]; /** * The label to write for (source → target): the pair's only label; or, when the * pair registers several, `preferred` if it is one of them; otherwise undefined * (the pair names none, or the caller must name which one). */ declare function registeredEdgeLabel(sourceType: string, targetType: string, preferred?: string | null): string | undefined; /** Is (source → target) a registered association pair? */ declare function isRegisteredPair(sourceType: string, targetType: string): boolean; /** Per-RPC Args/Returns for every demanded function, straight from the live DB. */ interface DemandedRpcSignatures { assoc_add: { Args: { p_label?: string; p_metadata?: unknown; p_org_id?: string; p_payload?: unknown; p_payload_kind?: string; p_position?: number; p_role?: string; p_source_id: string; p_source_type: string; p_target_id: string; p_target_type: string; }; Returns: string; }; assoc_remove: { Args: { p_role?: string; p_source_id: string; p_source_type: string; p_target_id: string; p_target_type: string; }; Returns: undefined; }; assoc_set_targets: { Args: { p_org_id?: string; p_role?: string; p_source_id: string; p_source_type: string; p_target_ids: string[]; p_target_type: string; }; Returns: undefined; }; assoc_remove_for_entity: { Args: { p_id: string; p_type: string; }; Returns: undefined; }; assoc_for_entity: { Args: { p_id: string; p_type: string; }; Returns: { created_at: string; direction: string; id: string; label: string; metadata: unknown; organization_id: string; other_id: string; other_type: string; position: number; role: string; }[]; }; assoc_for_targets: { Args: { p_target_ids: string[]; p_target_type: string; }; Returns: { created_at: string; id: string; label: string; metadata: unknown; organization_id: string; position: number; role: string; source_id: string; source_type: string; target_id: string; }[]; }; assoc_for_sources: { Args: { p_source_ids: string[]; p_source_type: string; p_target_type?: string; }; Returns: { created_at: string; id: string; label: string; metadata: unknown; organization_id: string; position: number; role: string; source_id: string; target_id: string; target_type: string; }[]; }; assoc_members_visible: { Args: { p_target_ids: string[]; p_target_type: string; }; Returns: { created_at: string; id: string; label: string; metadata: unknown; organization_id: string; position: number; role: string; source_id: string; source_type: string; target_id: string; }[]; }; conversation_file_add: { Args: { p_conversation_id: string; p_file_id: string; p_label?: string; p_metadata?: unknown; p_replace_metadata?: boolean; }; Returns: string; }; conversation_file_remove: { Args: { p_conversation_id: string; p_file_id: string; }; Returns: undefined; }; conversation_files: { Args: { p_conversation_id: string; }; Returns: { created_at: string; file_id: string; label: string; metadata: unknown; }[]; }; agent_resource_add: { Args: { p_agent_id: string; p_label?: string; p_metadata?: unknown; p_source_id: string; p_source_type: string; }; Returns: string; }; agent_resource_remove: { Args: { p_agent_id: string; p_source_id: string; p_source_type: string; }; Returns: undefined; }; cat_list: { Args: { p_dimension?: string; }; Returns: { color: string; dimension: string; icon: string; id: string; is_system: boolean; metadata: unknown; name: string; organization_id: string; parent_id: string; position: number; slug: string; }[]; }; cat_create: { Args: { p_color?: string; p_dimension: string; p_icon?: string; p_name: string; p_org_id: string; p_parent_id?: string; p_slug?: string; }; Returns: string; }; cat_update: { Args: { p_category_id: string; p_color?: string; p_icon?: string; p_name: string; p_position?: number; p_slug?: string; }; Returns: string; }; cat_reparent: { Args: { p_category_id: string; p_parent_id?: string; }; Returns: string; }; cat_delete: { Args: { p_category_id: string; }; Returns: string; }; ues_set: { Args: { p_entity_id: string; p_entity_type: string; p_is_favorite?: boolean; p_is_hidden?: boolean; p_is_pinned?: boolean; }; Returns: undefined; }; ues_list: { Args: { p_kind?: string; }; Returns: { entity_id: string; entity_type: string; is_favorite: boolean; is_hidden: boolean; is_pinned: boolean; last_viewed_at: string; updated_at: string; }[]; }; ues_get_bulk: { Args: { p_entity_ids: string[]; p_entity_type: string; }; Returns: { entity_id: string; is_favorite: boolean; is_hidden: boolean; is_pinned: boolean; last_viewed_at: string; }[]; }; ues_touch: { Args: { p_entity_id: string; p_entity_type: string; }; Returns: undefined; }; reference_search_candidates: { Args: { p_ids?: string[]; p_limit?: number; p_mine?: boolean; p_offset?: number; p_order?: string; p_organization_id?: string; p_search?: string; p_show_system_files?: boolean; p_token: string; }; Returns: { id: string; title: string; updated_at: string; }[]; }; entity_row_create: { Args: { p_organization_id: string; p_title: string; p_token: string; }; Returns: unknown; }; entity_row_rename: { Args: { p_id: string; p_title: string; p_token: string; }; Returns: unknown; }; cmt_list: { Args: { p_entity_id: string; p_entity_type: string; }; Returns: { anchor: unknown; author_agent_id: string; author_agent_name: string; author_avatar_url: string; author_display_name: string; author_email: string; body: string; client_request_id: string; created_at: string; created_by: string; created_by_tier: string; edited_at: string; entity_id: string; entity_type: string; id: string; organization_id: string; parent_id: string; resolved_at: string; resolved_by: string; suggested_text: string; updated_at: string; version: number; }[]; }; cmt_add: { Args: { p_anchor?: unknown; p_body: string; p_client_request_id?: string; p_entity_id: string; p_entity_type: string; p_org_id?: string; p_parent_id?: string; p_suggested_text?: string; }; Returns: string; }; cmt_edit: { Args: { p_body: string; p_expected_version?: number; p_id: string; }; Returns: number; }; cmt_delete: { Args: { p_id: string; }; Returns: undefined; }; } /** The name of any demanded RPC — the only strings the dataSource port accepts. */ type DemandedRpcName = keyof DemandedRpcSignatures; /** Every demanded RPC name, for iteration (the schema probe walks this). */ declare const DEMANDED_RPC_NAMES: readonly DemandedRpcName[]; /** Args type for one demanded RPC. */ type DemandedRpcArgs = DemandedRpcSignatures[N]["Args"]; /** Returns type for one demanded RPC. */ type DemandedRpcReturns = DemandedRpcSignatures[N]["Returns"]; export { DEMANDED_RPC_NAMES, RECORD_STORE_NOUNS, RETIRED_RECORD_STORE_TOKENS, canonicalRecordStoreToken, isRecordStoreNounToken, isRegisteredPair, recordStoreNoun, registeredEdgeLabel, registeredEdgeLabels }; export type { DemandedRpcArgs, DemandedRpcName, DemandedRpcReturns, DemandedRpcSignatures, RecordStoreNounToken };