@ai-matrx/associations 0.7.6 → 0.8.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.
@@ -74,8 +74,6 @@ interface EntityRegistry {
74
74
  /** Build the merge engine over the host overlay (empty overlay is legal). */
75
75
  declare function createEntityRegistry(errorSink: ErrorSink, initialOverlay?: EntityOverlayMap): EntityRegistry;
76
76
 
77
- /** True when `value` is a syntactically valid UUID string. */
78
- declare function isUuid(value: unknown): value is string;
79
77
  /** Return the first failing check, or null if all pass. Pure. */
80
78
  declare function firstError(...checks: (AssociationsRpcError | null)[]): AssociationsRpcError | null;
81
79
  interface AssociationGuards {
@@ -753,4 +751,4 @@ declare function buildCategoryHierarchy(categories: PlatformCategory[]): Categor
753
751
  */
754
752
  declare function createDefaultErrorSink(): ErrorSink;
755
753
 
756
- 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, isUuid, ok, resolveEntityToken };
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 };
@@ -74,8 +74,6 @@ interface EntityRegistry {
74
74
  /** Build the merge engine over the host overlay (empty overlay is legal). */
75
75
  declare function createEntityRegistry(errorSink: ErrorSink, initialOverlay?: EntityOverlayMap): EntityRegistry;
76
76
 
77
- /** True when `value` is a syntactically valid UUID string. */
78
- declare function isUuid(value: unknown): value is string;
79
77
  /** Return the first failing check, or null if all pass. Pure. */
80
78
  declare function firstError(...checks: (AssociationsRpcError | null)[]): AssociationsRpcError | null;
81
79
  interface AssociationGuards {
@@ -753,4 +751,4 @@ declare function buildCategoryHierarchy(categories: PlatformCategory[]): Categor
753
751
  */
754
752
  declare function createDefaultErrorSink(): ErrorSink;
755
753
 
756
- 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, isUuid, ok, resolveEntityToken };
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 };
@@ -21,6 +21,9 @@ function createDefaultErrorSink() {
21
21
  };
22
22
  }
23
23
 
24
+ // src/core/guards.ts
25
+ import { isUuidShape } from "@ai-matrx/kit/uuid";
26
+
24
27
  // src/entity-types.generated.ts
25
28
  var ENTITY_TYPE_METADATA = {
26
29
  "access_request": { token: "access_request", schema: "iam", table: "access_requests", label: "Access Request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "System", referencePickable: false, titleColumn: null, contentRole: "utility", referenceCategory: null },
@@ -406,6 +409,12 @@ var ENTITY_TYPE_METADATA = {
406
409
  "marketing_initiative": { token: "marketing_initiative", schema: "marketing", table: "initiative", label: "Initiative", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "container", referenceCategory: null },
407
410
  "masterwork_corpus_item": { token: "masterwork_corpus_item", schema: "platform", table: "masterwork_corpus_item", label: "Masterwork Corpus Piece", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
408
411
  "masterwork_run": { token: "masterwork_run", schema: "platform", table: "masterwork_run", label: "Masterwork Run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Masterwork", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
412
+ "meet_call_invite": { token: "meet_call_invite", schema: "communication", table: "meet_call_invites", label: "Call Invite", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
413
+ "meet_meeting": { token: "meet_meeting", schema: "communication", table: "meet_meetings", label: "Meeting", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
414
+ "meet_note": { token: "meet_note", schema: "communication", table: "meet_notes", label: "Meeting Note", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
415
+ "meet_participant": { token: "meet_participant", schema: "communication", table: "meet_participants", label: "Meeting Participant", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
416
+ "meet_recording": { token: "meet_recording", schema: "communication", table: "meet_recordings", label: "Meeting Recording", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
417
+ "meet_transcript_segment": { token: "meet_transcript_segment", schema: "communication", table: "meet_transcript_segments", label: "Meeting Transcript Segment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
409
418
  "membership": { token: "membership", schema: "iam", table: "memberships", label: "Membership", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
410
419
  "message": { token: "message", schema: "chat", table: "message", label: "Message", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
411
420
  "message_template": { token: "message_template", schema: "agent", table: "message_template", label: "Message Template", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: "utility", referenceCategory: null },
@@ -1065,6 +1074,12 @@ var ENTITY_TYPE_TOKENS = [
1065
1074
  "marketing_initiative",
1066
1075
  "masterwork_corpus_item",
1067
1076
  "masterwork_run",
1077
+ "meet_call_invite",
1078
+ "meet_meeting",
1079
+ "meet_note",
1080
+ "meet_participant",
1081
+ "meet_recording",
1082
+ "meet_transcript_segment",
1068
1083
  "membership",
1069
1084
  "message",
1070
1085
  "message_template",
@@ -1346,10 +1361,6 @@ function isEntityTypeToken(value) {
1346
1361
  }
1347
1362
 
1348
1363
  // src/core/guards.ts
1349
- var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1350
- function isUuid(value) {
1351
- return typeof value === "string" && UUID_RE.test(value);
1352
- }
1353
1364
  function show(value) {
1354
1365
  if (typeof value === "string") return JSON.stringify(value);
1355
1366
  if (value === null || value === void 0) return String(value);
@@ -1384,11 +1395,11 @@ function createAssociationGuards(errorSink) {
1384
1395
  }
1385
1396
  return {
1386
1397
  checkUuid(field, value) {
1387
- return isUuid(value) ? null : invalid(field, value, "must be a UUID");
1398
+ return isUuidShape(value) ? null : invalid(field, value, "must be a UUID");
1388
1399
  },
1389
1400
  checkUuidArray(field, values) {
1390
1401
  for (let i = 0; i < values.length; i++) {
1391
- if (!isUuid(values[i]))
1402
+ if (!isUuidShape(values[i]))
1392
1403
  return invalid(`${field}[${i}]`, values[i], "must be a UUID");
1393
1404
  }
1394
1405
  return null;
@@ -3496,7 +3507,6 @@ export {
3496
3507
  isContentSourceEdge,
3497
3508
  isMembershipMetadata,
3498
3509
  isTransportFailure,
3499
- isUuid,
3500
3510
  ok,
3501
3511
  resolveEntityToken
3502
3512
  };