@ai-matrx/associations 0.8.11 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -679,42 +679,6 @@ interface AssociationsStore {
679
679
  */
680
680
  declare function createAssociationsStore(config: AssociationsConfig): AssociationsStore;
681
681
 
682
- /** The name the self-test probes; MUST NOT exist in any schema. */
683
- declare const SELF_TEST_MISSING_RPC = "assoc_probe_self_test_missing_fn";
684
- interface DemandedSchemaReport {
685
- ok: boolean;
686
- /** Demanded functions the database cannot answer (PGRST202). */
687
- missing: string[];
688
- /** Functions the probe could not reach (transport/unknown failure). */
689
- unreachable: {
690
- fn: string;
691
- error: unknown;
692
- }[];
693
- /** Functions that answered (success or any non-PGRST202 refusal). */
694
- answered: string[];
695
- }
696
- interface AssertDemandedSchemaOptions {
697
- /**
698
- * Also probe a fabricated function name and REQUIRE it to come back
699
- * missing — proves the probe can fail (the falsifiability rule).
700
- */
701
- selfTest?: boolean;
702
- /** Max in-flight probe calls (default 6). */
703
- concurrency?: number;
704
- /**
705
- * Return the report instead of throwing on violation (for surfaces that
706
- * render the report). The self-test failure ALWAYS throws.
707
- */
708
- throwOnViolation?: boolean;
709
- }
710
- /**
711
- * Probe every demanded RPC against `dataSource`. Throws an `Error` naming
712
- * every missing function when the database violates the demanded schema
713
- * (unless `throwOnViolation: false`), and ALWAYS throws when the probe
714
- * itself cannot be trusted (unreachable database, failed self-test).
715
- */
716
- declare function assertDemandedSchema(dataSource: AssociationsDataSource, options?: AssertDemandedSchemaOptions): Promise<DemandedSchemaReport>;
717
-
718
682
  /** Source tokens that are structure, never container content. */
719
683
  declare const NON_CONTENT_SOURCE_TYPES: ReadonlySet<string>;
720
684
  /** True when edge metadata marks a container-membership edge. */
@@ -751,4 +715,4 @@ declare function buildCategoryHierarchy(categories: PlatformCategory[]): Categor
751
715
  */
752
716
  declare function createDefaultErrorSink(): ErrorSink;
753
717
 
754
- export { type AddAssociationArgs, type AddCommentArgs, type AssertDemandedSchemaOptions, type AssociationGuards, type AssociationHelpersApi, type AssociationWriteResult, type AssociationsServiceApi, type AssociationsStore, type CandidateRecord, type CandidatesResult, type CandidatesServiceApi, type CategoriesServiceApi, type CategoryHierarchy, type CategoryHierarchyItem, type CategoryMutationResult, type CommentMutationResult, type CommentsServiceApi, type ContainerRef, type ContentRole, type ConversationFileLink, type CoreDeps, type CreateEntityRowArgs, DEFAULT_ORG_COLUMN, DEFAULT_OWNER_COLUMN, type DemandedSchemaReport, type EdgeAttrs, type EdgeSpec, type EntityInfo, type EntityRef, type EntityRegistry, type EntityRowResult, type EntityRowsServiceApi, type FavoritesServiceApi, type ListCandidatesArgs, NON_CONTENT_SOURCE_TYPES, type PgErrorMapper, type RpcResultHelpers, SELF_TEST_MISSING_RPC, type SearchAcrossTokensArgs, type TitlesServiceApi, type UniversalCandidate, assertDemandedSchema, associationsKey, buildCategoryHierarchy, createAssociationGuards, createAssociationHelpers, createAssociationsService, createAssociationsStore, createCandidatesService, createCategoriesService, createCommentsService, createDefaultErrorSink, createEntityRegistry, createEntityRowsService, createFavoritesService, createRpcResultHelpers, createTitlesService, entityTitleCacheKey, err, firstError, isContentRole, isContentSourceEdge, isMembershipMetadata, isTransportFailure, ok, resolveEntityToken };
718
+ export { type AddAssociationArgs, type AddCommentArgs, type AssociationGuards, type AssociationHelpersApi, type AssociationWriteResult, type AssociationsServiceApi, type AssociationsStore, type CandidateRecord, type CandidatesResult, type CandidatesServiceApi, type CategoriesServiceApi, type CategoryHierarchy, type CategoryHierarchyItem, type CategoryMutationResult, type CommentMutationResult, type CommentsServiceApi, type ContainerRef, type ContentRole, type ConversationFileLink, type CoreDeps, type CreateEntityRowArgs, DEFAULT_ORG_COLUMN, DEFAULT_OWNER_COLUMN, type EdgeAttrs, type EdgeSpec, type EntityInfo, type EntityRef, type EntityRegistry, type EntityRowResult, type EntityRowsServiceApi, type FavoritesServiceApi, type ListCandidatesArgs, NON_CONTENT_SOURCE_TYPES, type PgErrorMapper, type RpcResultHelpers, type SearchAcrossTokensArgs, type TitlesServiceApi, type UniversalCandidate, associationsKey, buildCategoryHierarchy, createAssociationGuards, createAssociationHelpers, createAssociationsService, createAssociationsStore, createCandidatesService, createCategoriesService, createCommentsService, createDefaultErrorSink, createEntityRegistry, createEntityRowsService, createFavoritesService, createRpcResultHelpers, createTitlesService, entityTitleCacheKey, err, firstError, isContentRole, isContentSourceEdge, isMembershipMetadata, isTransportFailure, ok, resolveEntityToken };
@@ -679,42 +679,6 @@ interface AssociationsStore {
679
679
  */
680
680
  declare function createAssociationsStore(config: AssociationsConfig): AssociationsStore;
681
681
 
682
- /** The name the self-test probes; MUST NOT exist in any schema. */
683
- declare const SELF_TEST_MISSING_RPC = "assoc_probe_self_test_missing_fn";
684
- interface DemandedSchemaReport {
685
- ok: boolean;
686
- /** Demanded functions the database cannot answer (PGRST202). */
687
- missing: string[];
688
- /** Functions the probe could not reach (transport/unknown failure). */
689
- unreachable: {
690
- fn: string;
691
- error: unknown;
692
- }[];
693
- /** Functions that answered (success or any non-PGRST202 refusal). */
694
- answered: string[];
695
- }
696
- interface AssertDemandedSchemaOptions {
697
- /**
698
- * Also probe a fabricated function name and REQUIRE it to come back
699
- * missing — proves the probe can fail (the falsifiability rule).
700
- */
701
- selfTest?: boolean;
702
- /** Max in-flight probe calls (default 6). */
703
- concurrency?: number;
704
- /**
705
- * Return the report instead of throwing on violation (for surfaces that
706
- * render the report). The self-test failure ALWAYS throws.
707
- */
708
- throwOnViolation?: boolean;
709
- }
710
- /**
711
- * Probe every demanded RPC against `dataSource`. Throws an `Error` naming
712
- * every missing function when the database violates the demanded schema
713
- * (unless `throwOnViolation: false`), and ALWAYS throws when the probe
714
- * itself cannot be trusted (unreachable database, failed self-test).
715
- */
716
- declare function assertDemandedSchema(dataSource: AssociationsDataSource, options?: AssertDemandedSchemaOptions): Promise<DemandedSchemaReport>;
717
-
718
682
  /** Source tokens that are structure, never container content. */
719
683
  declare const NON_CONTENT_SOURCE_TYPES: ReadonlySet<string>;
720
684
  /** True when edge metadata marks a container-membership edge. */
@@ -751,4 +715,4 @@ declare function buildCategoryHierarchy(categories: PlatformCategory[]): Categor
751
715
  */
752
716
  declare function createDefaultErrorSink(): ErrorSink;
753
717
 
754
- export { type AddAssociationArgs, type AddCommentArgs, type AssertDemandedSchemaOptions, type AssociationGuards, type AssociationHelpersApi, type AssociationWriteResult, type AssociationsServiceApi, type AssociationsStore, type CandidateRecord, type CandidatesResult, type CandidatesServiceApi, type CategoriesServiceApi, type CategoryHierarchy, type CategoryHierarchyItem, type CategoryMutationResult, type CommentMutationResult, type CommentsServiceApi, type ContainerRef, type ContentRole, type ConversationFileLink, type CoreDeps, type CreateEntityRowArgs, DEFAULT_ORG_COLUMN, DEFAULT_OWNER_COLUMN, type DemandedSchemaReport, type EdgeAttrs, type EdgeSpec, type EntityInfo, type EntityRef, type EntityRegistry, type EntityRowResult, type EntityRowsServiceApi, type FavoritesServiceApi, type ListCandidatesArgs, NON_CONTENT_SOURCE_TYPES, type PgErrorMapper, type RpcResultHelpers, SELF_TEST_MISSING_RPC, type SearchAcrossTokensArgs, type TitlesServiceApi, type UniversalCandidate, assertDemandedSchema, associationsKey, buildCategoryHierarchy, createAssociationGuards, createAssociationHelpers, createAssociationsService, createAssociationsStore, createCandidatesService, createCategoriesService, createCommentsService, createDefaultErrorSink, createEntityRegistry, createEntityRowsService, createFavoritesService, createRpcResultHelpers, createTitlesService, entityTitleCacheKey, err, firstError, isContentRole, isContentSourceEdge, isMembershipMetadata, isTransportFailure, ok, resolveEntityToken };
718
+ export { type AddAssociationArgs, type AddCommentArgs, type AssociationGuards, type AssociationHelpersApi, type AssociationWriteResult, type AssociationsServiceApi, type AssociationsStore, type CandidateRecord, type CandidatesResult, type CandidatesServiceApi, type CategoriesServiceApi, type CategoryHierarchy, type CategoryHierarchyItem, type CategoryMutationResult, type CommentMutationResult, type CommentsServiceApi, type ContainerRef, type ContentRole, type ConversationFileLink, type CoreDeps, type CreateEntityRowArgs, DEFAULT_ORG_COLUMN, DEFAULT_OWNER_COLUMN, type EdgeAttrs, type EdgeSpec, type EntityInfo, type EntityRef, type EntityRegistry, type EntityRowResult, type EntityRowsServiceApi, type FavoritesServiceApi, type ListCandidatesArgs, NON_CONTENT_SOURCE_TYPES, type PgErrorMapper, type RpcResultHelpers, type SearchAcrossTokensArgs, type TitlesServiceApi, type UniversalCandidate, associationsKey, buildCategoryHierarchy, createAssociationGuards, createAssociationHelpers, createAssociationsService, createAssociationsStore, createCandidatesService, createCategoriesService, createCommentsService, createDefaultErrorSink, createEntityRegistry, createEntityRowsService, createFavoritesService, createRpcResultHelpers, createTitlesService, entityTitleCacheKey, err, firstError, isContentRole, isContentSourceEdge, isMembershipMetadata, isTransportFailure, ok, resolveEntityToken };