@ai-matrx/associations 0.13.2 → 0.13.3

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.
@@ -849,6 +849,7 @@ var ENTITY_TYPE_METADATA = {
849
849
  "sms_webhook_logs": { token: "sms_webhook_logs", schema: "communication", table: "sms_webhook_logs", label: "Sms Webhook Logs", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
850
850
  "soft_delete_edge": { token: "soft_delete_edge", schema: "platform", table: "soft_delete_edge", label: "Soft Delete Edge", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
851
851
  "source_authority": { token: "source_authority", schema: "platform", table: "source_authority", label: "Source authority", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
852
+ "spatial_board": { token: "spatial_board", schema: "workspace", table: "spatial_boards", label: "Spatial Board", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
852
853
  "stage_ref_kind": { token: "stage_ref_kind", schema: "growth", table: "stage_ref_kind", label: "Stage reference kind", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
853
854
  "stamped_write_table": { token: "stamped_write_table", schema: "platform", table: "stamped_write_table", label: "Stamped Write Table", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
854
855
  "structure": { token: "structure", schema: "files", table: "structure", label: "Structure", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
@@ -1853,6 +1854,7 @@ var ENTITY_TYPE_TOKENS = [
1853
1854
  "sms_webhook_logs",
1854
1855
  "soft_delete_edge",
1855
1856
  "source_authority",
1857
+ "spatial_board",
1856
1858
  "stage_ref_kind",
1857
1859
  "stamped_write_table",
1858
1860
  "structure",
@@ -2339,6 +2341,50 @@ function createEntityRegistry(errorSink, initialOverlay) {
2339
2341
  };
2340
2342
  }
2341
2343
 
2344
+ // src/association-types.generated.ts
2345
+ var ASSOCIATION_TYPE_LABELS = {
2346
+ "artifact>processed_document": "source",
2347
+ "calendar_event>conversation": "conversation_attached_resource",
2348
+ "calendar_event>party": "attendee",
2349
+ "content_ir_kind_instance>content_ir_kind_instance": "part_of",
2350
+ "conversation>party": "produced_by",
2351
+ "fc_set>processed_document": "source",
2352
+ "file>hr_application": "evidence",
2353
+ "file>hr_employee": "personnel_document",
2354
+ "file>hr_employment": "evidence",
2355
+ "file>hr_incident": "evidence",
2356
+ "file>hr_leave_case": "evidence",
2357
+ "google_document>crm_deal": "attached_to",
2358
+ "google_document>party": "attached_to",
2359
+ "google_document>project": "attached_to",
2360
+ "google_document>task": "attached_to",
2361
+ "hr_candidate>party": "candidate_party",
2362
+ "hr_course>hr_job_title": "role_curriculum",
2363
+ "hr_credential>hr_job_title": "required_credential",
2364
+ "hr_employee>record": "scope_member",
2365
+ "hr_employee>scope": "scope_member",
2366
+ "integration_connection_resource>conversation": "conversation_attached_resource",
2367
+ "media_source_library>youtube_video": "catalogued_source",
2368
+ "message>content_ir_kind_instance": "produced_by",
2369
+ "note>calendar_event": "about",
2370
+ "note>hr_candidate": "hr_note",
2371
+ "note>hr_employee": "hr_note",
2372
+ "organization>seo_keyword": "keyword_library",
2373
+ "pc_episode>processed_document": "source",
2374
+ "processed_document>media_source_library": "catalogued_source",
2375
+ "processed_document>record": "about",
2376
+ "processed_document>research_topic": "research_source",
2377
+ "processed_document>scope": "about",
2378
+ "processed_document>web_site": "crawled_page",
2379
+ "quiz_session>processed_document": "source",
2380
+ "research_source>youtube_video": "Canonical YouTube video",
2381
+ "web_youtube_video>seo_map_topic": "covers",
2382
+ "youtube_video>transcript": "video_transcript"
2383
+ };
2384
+ function registeredEdgeLabel(sourceType, targetType) {
2385
+ return ASSOCIATION_TYPE_LABELS[`${sourceType}>${targetType}`];
2386
+ }
2387
+
2342
2388
  // src/core/associationsService.ts
2343
2389
  function toEdge(row) {
2344
2390
  return {
@@ -2584,7 +2630,7 @@ function createAssociationsService(deps) {
2584
2630
  p_target_type: targetType,
2585
2631
  p_target_id: args.targetId,
2586
2632
  p_org_id: args.orgId,
2587
- p_label: args.label,
2633
+ p_label: registeredEdgeLabel(sourceType, targetType) ?? args.label,
2588
2634
  p_metadata: args.metadata ?? {},
2589
2635
  p_role: args.role,
2590
2636
  p_position: args.position,