@ai-matrx/associations 0.2.0

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.
@@ -0,0 +1,3191 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/core/index.ts
21
+ var core_exports = {};
22
+ __export(core_exports, {
23
+ DEFAULT_ORG_COLUMN: () => DEFAULT_ORG_COLUMN,
24
+ DEFAULT_OWNER_COLUMN: () => DEFAULT_OWNER_COLUMN,
25
+ NON_CONTENT_SOURCE_TYPES: () => NON_CONTENT_SOURCE_TYPES,
26
+ SELF_TEST_MISSING_RPC: () => SELF_TEST_MISSING_RPC,
27
+ assertDemandedSchema: () => assertDemandedSchema,
28
+ associationsKey: () => associationsKey,
29
+ createAssociationGuards: () => createAssociationGuards,
30
+ createAssociationHelpers: () => createAssociationHelpers,
31
+ createAssociationsService: () => createAssociationsService,
32
+ createAssociationsStore: () => createAssociationsStore,
33
+ createCandidatesService: () => createCandidatesService,
34
+ createCategoriesService: () => createCategoriesService,
35
+ createEntityRegistry: () => createEntityRegistry,
36
+ createEntityRowsService: () => createEntityRowsService,
37
+ createFavoritesService: () => createFavoritesService,
38
+ createRpcResultHelpers: () => createRpcResultHelpers,
39
+ createTitlesService: () => createTitlesService,
40
+ entityTitleCacheKey: () => entityTitleCacheKey,
41
+ err: () => err,
42
+ firstError: () => firstError,
43
+ isContentRole: () => isContentRole,
44
+ isContentSourceEdge: () => isContentSourceEdge,
45
+ isMembershipMetadata: () => isMembershipMetadata,
46
+ isTransportFailure: () => isTransportFailure,
47
+ isUuid: () => isUuid,
48
+ ok: () => ok,
49
+ resolveEntityToken: () => resolveEntityToken
50
+ });
51
+ module.exports = __toCommonJS(core_exports);
52
+
53
+ // src/results.ts
54
+ function isAssociationsRpcErr(r) {
55
+ return r.ok === false;
56
+ }
57
+
58
+ // src/entity-types.generated.ts
59
+ var ENTITY_TYPE_METADATA = {
60
+ "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 },
61
+ "activity": { token: "activity", schema: "platform", table: "activity_log", label: "Activity Log Entry", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
62
+ "agent": { token: "agent", schema: "agent", table: "definition", label: "Agent", baseTier: 1, isComponent: false, isModule: true, isListed: true, scopeable: true, category: "Agents", referencePickable: true, titleColumn: "name", contentRole: "utility", referenceCategory: null },
63
+ "agent_card": { token: "agent_card", schema: "agent", table: "card", label: "Agent Card", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
64
+ "agent_definition_version": { token: "agent_definition_version", schema: "agent", table: "definition_version", label: "Agent Definition Version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Agents", referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
65
+ "agent_drift_alert": { token: "agent_drift_alert", schema: "agent", table: "drift_alert", label: "Agent Drift Alert", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Agents", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
66
+ "agent_exemplar": { token: "agent_exemplar", schema: "agent", table: "exemplar", label: "Agent Test Case", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
67
+ "agent_mandate_note": { token: "agent_mandate_note", schema: "agent", table: "mandate_note", label: "Mandate Note", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
68
+ "agent_prompt_remediation": { token: "agent_prompt_remediation", schema: "agent", table: "prompt_remediation", label: "Agent Prompt Remediation", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
69
+ "agent_run": { token: "agent_run", schema: "chat", table: "agent_run", label: "Agent Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
70
+ "agent_run_stage": { token: "agent_run_stage", schema: "chat", table: "agent_run_stage", label: "Agent Run Stage", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
71
+ "agent_shortcut": { token: "agent_shortcut", schema: "agent", table: "shortcut", label: "Agent Shortcut", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Agents", referencePickable: true, titleColumn: "label", contentRole: "utility", referenceCategory: null },
72
+ "agent_surface_binding": { token: "agent_surface_binding", schema: "platform", table: "associations", label: "Agent Surface Binding", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Agents", referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
73
+ "agent_template": { token: "agent_template", schema: "agent", table: "template", label: "Agent Template", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Agents", referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
74
+ "agent_usage": { token: "agent_usage", schema: "agent", table: "usage", label: "Agent Usage", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Agents", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
75
+ "ai_api": { token: "ai_api", schema: "ai", table: "api", label: "AI API", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
76
+ "ai_endpoint": { token: "ai_endpoint", schema: "ai", table: "endpoint", label: "AI Endpoint", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
77
+ "ai_model": { token: "ai_model", schema: "ai", table: "model_definition", label: "AI Model", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
78
+ "ai_model_alias": { token: "ai_model_alias", schema: "ai", table: "model_alias", label: "AI Model Alias", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
79
+ "ai_offering": { token: "ai_offering", schema: "ai", table: "offering", label: "AI Offering", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
80
+ "ai_provider": { token: "ai_provider", schema: "ai", table: "provider", label: "AI Provider", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
81
+ "ai_setting": { token: "ai_setting", schema: "ai", table: "setting", label: "AI Setting", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "key", contentRole: null, referenceCategory: null },
82
+ "app": { token: "app", schema: "app", table: "definition", label: "App", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Apps", referencePickable: true, titleColumn: "name", contentRole: "utility", referenceCategory: null },
83
+ "app_definition_version": { token: "app_definition_version", schema: "app", table: "definition_version", label: "App Definition Version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Apps", referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
84
+ "app_error": { token: "app_error", schema: "app", table: "error", label: "App Error", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Apps", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
85
+ "app_execution": { token: "app_execution", schema: "app", table: "execution", label: "App Execution", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Apps", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
86
+ "app_instance": { token: "app_instance", schema: "public", table: "app_instances", label: "App Instance", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
87
+ "app_log": { token: "app_log", schema: "ops", table: "app_log", label: "App Log", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
88
+ "app_rate_limit": { token: "app_rate_limit", schema: "app", table: "rate_limit", label: "App Rate Limit", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Apps", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
89
+ "app_setting": { token: "app_setting", schema: "public", table: "app_settings", label: "App Setting", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
90
+ "app_sync_status": { token: "app_sync_status", schema: "public", table: "app_sync_status", label: "App Sync Status", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
91
+ "approach": { token: "approach", schema: "platform", table: "approach", label: "Approach", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
92
+ "artifact": { token: "artifact", schema: "chat", table: "artifact", label: "Artifact", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
93
+ "assessment": { token: "assessment", schema: "education", table: "assessment", label: "Assessment", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
94
+ "assessment_item": { token: "assessment_item", schema: "education", table: "assessment_item", label: "Assessment Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
95
+ "assessment_result": { token: "assessment_result", schema: "education", table: "assessment_result", label: "Assessment Result", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
96
+ "assist": { token: "assist", schema: "platform", table: "assists", label: "Assist", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: "platform", referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
97
+ "batch_cost_event": { token: "batch_cost_event", schema: "batch", table: "cost_event", label: "Batch Cost Event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
98
+ "batch_provider_batch": { token: "batch_provider_batch", schema: "batch", table: "provider_batch", label: "Provider Batch", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
99
+ "batch_work_item": { token: "batch_work_item", schema: "batch", table: "work_item", label: "Batch Work Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
100
+ "browser_account_binding": { token: "browser_account_binding", schema: "browser", table: "account_binding", label: "Browser Account Binding", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
101
+ "browser_action_event": { token: "browser_action_event", schema: "browser", table: "action_event", label: "Browser Action Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
102
+ "browser_authenticator_window": { token: "browser_authenticator_window", schema: "browser", table: "authenticator_window", label: "Browser Authenticator Window", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
103
+ "browser_capture": { token: "browser_capture", schema: "browser", table: "capture", label: "Browser Capture", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
104
+ "browser_control_request": { token: "browser_control_request", schema: "browser", table: "control_request", label: "Browser Control Request", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
105
+ "browser_handoff": { token: "browser_handoff", schema: "browser", table: "handoff", label: "Browser Handoff", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
106
+ "browser_login_attempt": { token: "browser_login_attempt", schema: "browser", table: "login_attempt", label: "Browser Login Attempt", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
107
+ "browser_login_recipe": { token: "browser_login_recipe", schema: "browser", table: "login_recipe", label: "Browser Login Recipe", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
108
+ "browser_profile": { token: "browser_profile", schema: "browser", table: "profile", label: "Cloud Browser Profile", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
109
+ "browser_profile_checkpoint": { token: "browser_profile_checkpoint", schema: "browser", table: "profile_checkpoint", label: "Browser Profile Checkpoint", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
110
+ "browser_run": { token: "browser_run", schema: "browser", table: "run", label: "Cloud Browser Run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
111
+ "browser_site_observation": { token: "browser_site_observation", schema: "browser", table: "site_observation", label: "Browser Site Observation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
112
+ "browser_site_policy": { token: "browser_site_policy", schema: "browser", table: "site_policy", label: "Browser Site Policy", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
113
+ "browser_stream_ticket": { token: "browser_stream_ticket", schema: "browser", table: "stream_ticket", label: "Browser Stream Ticket", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
114
+ "canvas_comment": { token: "canvas_comment", schema: "canvas", table: "canvas_comments", label: "Canvas Comment", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
115
+ "canvas_comment_like": { token: "canvas_comment_like", schema: "canvas", table: "canvas_comment_likes", label: "Canvas Comment Like", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
116
+ "canvas_item": { token: "canvas_item", schema: "canvas", table: "canvas_items", label: "Canvas Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
117
+ "canvas_item_state": { token: "canvas_item_state", schema: "canvas", table: "canvas_item_state", label: "Canvas Item State", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
118
+ "canvas_like": { token: "canvas_like", schema: "canvas", table: "canvas_likes", label: "Canvas Like", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
119
+ "canvas_score": { token: "canvas_score", schema: "canvas", table: "canvas_scores", label: "Canvas Score", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
120
+ "canvas_view": { token: "canvas_view", schema: "canvas", table: "canvas_views", label: "Canvas View", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
121
+ "category": { token: "category", schema: "platform", table: "categories", label: "Category", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
122
+ "cmp_entry": { token: "cmp_entry", schema: "agent", table: "cmp_comparison_entries", label: "Comparison Entry", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
123
+ "cmp_feedback": { token: "cmp_feedback", schema: "agent", table: "cmp_response_feedback", label: "Comparison Response Feedback", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
124
+ "code_file": { token: "code_file", schema: "code", table: "code_files", label: "Code File", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "source", referenceCategory: null },
125
+ "code_folder": { token: "code_folder", schema: "code", table: "code_file_folders", label: "Code Folder", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "container", referenceCategory: null },
126
+ "code_repository": { token: "code_repository", schema: "code", table: "code_repositories", label: "Code Repository", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "container", referenceCategory: null },
127
+ "coding_session": { token: "coding_session", schema: "chat", table: "coding_session", label: "Coding Session", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
128
+ "coding_session_entry": { token: "coding_session_entry", schema: "chat", table: "coding_session_entry", label: "Coding Session Entry", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
129
+ "comment": { token: "comment", schema: "platform", table: "comments", label: "Comment", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
130
+ "commerce_asset_allocation": { token: "commerce_asset_allocation", schema: "commerce", table: "asset_allocation", label: "Asset Allocation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
131
+ "commerce_asset_grading": { token: "commerce_asset_grading", schema: "commerce", table: "asset_grading", label: "Asset Grading", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
132
+ "commerce_asset_identifier": { token: "commerce_asset_identifier", schema: "commerce", table: "asset_identifier", label: "Asset Identifier", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
133
+ "commerce_asset_lot_event": { token: "commerce_asset_lot_event", schema: "commerce", table: "asset_lot_event", label: "Asset Lot Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
134
+ "commerce_asset_mandate_result": { token: "commerce_asset_mandate_result", schema: "commerce", table: "asset_mandate_result", label: "Asset Mandate Result", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
135
+ "commerce_asset_price_factor": { token: "commerce_asset_price_factor", schema: "commerce", table: "asset_price_factor", label: "Asset Price Factor", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
136
+ "commerce_asset_reshoot_request": { token: "commerce_asset_reshoot_request", schema: "commerce", table: "asset_reshoot_request", label: "Asset Reshoot Request", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
137
+ "commerce_asset_review": { token: "commerce_asset_review", schema: "commerce", table: "asset_review", label: "Asset Review", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
138
+ "commerce_asset_unknown": { token: "commerce_asset_unknown", schema: "commerce", table: "asset_unknown", label: "Asset Unknown", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
139
+ "commerce_cloud_sync_connection": { token: "commerce_cloud_sync_connection", schema: "commerce", table: "cloud_sync_connection", label: "Cloud Sync Connection", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
140
+ "commerce_ebay_business_policy": { token: "commerce_ebay_business_policy", schema: "commerce", table: "ebay_business_policy", label: "eBay Business Policy", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
141
+ "commerce_ebay_category": { token: "commerce_ebay_category", schema: "commerce", table: "ebay_category", label: "eBay Category", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
142
+ "commerce_ebay_category_aspect": { token: "commerce_ebay_category_aspect", schema: "commerce", table: "ebay_category_aspect", label: "eBay Category Aspect", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
143
+ "commerce_ebay_category_tree": { token: "commerce_ebay_category_tree", schema: "commerce", table: "ebay_category_tree", label: "eBay Category Tree", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
144
+ "commerce_ebay_custom_policy": { token: "commerce_ebay_custom_policy", schema: "commerce", table: "ebay_custom_policy", label: "eBay Custom Policy", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
145
+ "commerce_ebay_inventory_item": { token: "commerce_ebay_inventory_item", schema: "commerce", table: "ebay_inventory_item", label: "eBay Inventory Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
146
+ "commerce_ebay_inventory_item_group": { token: "commerce_ebay_inventory_item_group", schema: "commerce", table: "ebay_inventory_item_group", label: "eBay Inventory Item Group", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
147
+ "commerce_ebay_inventory_item_group_member": { token: "commerce_ebay_inventory_item_group_member", schema: "commerce", table: "ebay_inventory_item_group_member", label: "eBay Inventory Item Group Member", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
148
+ "commerce_ebay_inventory_location": { token: "commerce_ebay_inventory_location", schema: "commerce", table: "ebay_inventory_location", label: "eBay Inventory Location", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
149
+ "commerce_ebay_listing": { token: "commerce_ebay_listing", schema: "commerce", table: "ebay_listing", label: "eBay Listing", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
150
+ "commerce_ebay_marketplace_policy": { token: "commerce_ebay_marketplace_policy", schema: "commerce", table: "ebay_marketplace_policy", label: "eBay Marketplace Policy", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
151
+ "commerce_ebay_media_asset": { token: "commerce_ebay_media_asset", schema: "commerce", table: "ebay_media_asset", label: "eBay Media Asset", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
152
+ "commerce_ebay_notification_destination": { token: "commerce_ebay_notification_destination", schema: "commerce", table: "ebay_notification_destination", label: "eBay Notification Destination", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
153
+ "commerce_ebay_notification_event": { token: "commerce_ebay_notification_event", schema: "commerce", table: "ebay_notification_event", label: "eBay Notification Event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
154
+ "commerce_ebay_notification_subscription": { token: "commerce_ebay_notification_subscription", schema: "commerce", table: "ebay_notification_subscription", label: "eBay Notification Subscription", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
155
+ "commerce_ebay_notification_topic": { token: "commerce_ebay_notification_topic", schema: "commerce", table: "ebay_notification_topic", label: "eBay Notification Topic", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
156
+ "commerce_ebay_offer": { token: "commerce_ebay_offer", schema: "commerce", table: "ebay_offer", label: "eBay Offer", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
157
+ "commerce_ebay_order": { token: "commerce_ebay_order", schema: "commerce", table: "ebay_order", label: "eBay Order", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
158
+ "commerce_ebay_order_line_item": { token: "commerce_ebay_order_line_item", schema: "commerce", table: "ebay_order_line_item", label: "eBay Order Line Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
159
+ "commerce_ebay_shipping_fulfillment": { token: "commerce_ebay_shipping_fulfillment", schema: "commerce", table: "ebay_shipping_fulfillment", label: "eBay Shipping Fulfillment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
160
+ "commerce_ebay_store_category": { token: "commerce_ebay_store_category", schema: "commerce", table: "ebay_store_category", label: "eBay Store Category", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
161
+ "commerce_human_correction": { token: "commerce_human_correction", schema: "commerce", table: "human_correction", label: "Human Correction", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
162
+ "commerce_intake_artifact": { token: "commerce_intake_artifact", schema: "commerce", table: "intake_artifact", label: "Intake Artifact", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
163
+ "commerce_intake_asset": { token: "commerce_intake_asset", schema: "commerce", table: "intake_asset", label: "Intake Asset", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
164
+ "commerce_intake_batch": { token: "commerce_intake_batch", schema: "commerce", table: "intake_batch", label: "Intake Batch", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
165
+ "commerce_label_batch": { token: "commerce_label_batch", schema: "commerce", table: "label_batch", label: "Label Batch", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
166
+ "commerce_label_code": { token: "commerce_label_code", schema: "commerce", table: "label_code", label: "Label Code", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
167
+ "commerce_marketplace_account": { token: "commerce_marketplace_account", schema: "commerce", table: "marketplace_account", label: "Marketplace Account", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
168
+ "commerce_marketplace_account_deletion_audit": { token: "commerce_marketplace_account_deletion_audit", schema: "commerce", table: "marketplace_account_deletion_audit", label: "Marketplace Account Deletion Audit", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
169
+ "commerce_marketplace_api_call": { token: "commerce_marketplace_api_call", schema: "commerce", table: "marketplace_api_call", label: "Marketplace API Call", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
170
+ "commerce_marketplace_rate_budget": { token: "commerce_marketplace_rate_budget", schema: "commerce", table: "marketplace_rate_budget", label: "Marketplace Rate Budget", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
171
+ "commerce_marketplace_site": { token: "commerce_marketplace_site", schema: "commerce", table: "marketplace_site", label: "Marketplace Site", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
172
+ "commerce_marketplace_sync_run": { token: "commerce_marketplace_sync_run", schema: "commerce", table: "marketplace_sync_run", label: "Marketplace Sync Run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
173
+ "commerce_prediction_outcome": { token: "commerce_prediction_outcome", schema: "commerce", table: "prediction_outcome", label: "Prediction Outcome", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
174
+ "commerce_product": { token: "commerce_product", schema: "commerce", table: "product", label: "Product", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
175
+ "commerce_product_channel_ref": { token: "commerce_product_channel_ref", schema: "commerce", table: "product_channel_ref", label: "Product Channel Reference", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
176
+ "commerce_product_media": { token: "commerce_product_media", schema: "commerce", table: "product_media", label: "Product Media", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
177
+ "commerce_product_variant": { token: "commerce_product_variant", schema: "commerce", table: "product_variant", label: "Product Variant", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
178
+ "commerce_recall_audit": { token: "commerce_recall_audit", schema: "commerce", table: "recall_audit", label: "Recall Audit", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
179
+ "comparison_set": { token: "comparison_set", schema: "agent", table: "cmp_comparison_sets", label: "Comparison Set", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
180
+ "contact_medium": { token: "contact_medium", schema: "crm", table: "contact_medium", label: "Contact Medium", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "display_value", contentRole: "utility", referenceCategory: null },
181
+ "contact_submission": { token: "contact_submission", schema: "communication", table: "contact_submissions", label: "Contact Submission", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
182
+ "content_ir_kind": { token: "content_ir_kind", schema: "content_ir", table: "kind_definition", label: "Content-IR Kind", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
183
+ "content_ir_kind_component": { token: "content_ir_kind_component", schema: "content_ir", table: "kind_component", label: "Kind Component", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
184
+ "content_ir_kind_component_incident": { token: "content_ir_kind_component_incident", schema: "content_ir", table: "kind_component_incident", label: "Kind Component Incident", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
185
+ "content_ir_kind_conformance": { token: "content_ir_kind_conformance", schema: "content_ir", table: "kind_conformance", label: "Shape Conformance", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
186
+ "content_ir_kind_edge": { token: "content_ir_kind_edge", schema: "content_ir", table: "kind_edge", label: "Content-IR Kind Edge", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
187
+ "content_ir_kind_example": { token: "content_ir_kind_example", schema: "content_ir", table: "kind_example", label: "Kind Example", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
188
+ "content_ir_kind_instance": { token: "content_ir_kind_instance", schema: "content_ir", table: "kind_instance", label: "Saved Result", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
189
+ "content_ir_kind_surface": { token: "content_ir_kind_surface", schema: "content_ir", table: "kind_surface", label: "Kind Surface", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
190
+ "context_item": { token: "context_item", schema: "context", table: "context_items", label: "Context Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
191
+ "context_item_suggestion": { token: "context_item_suggestion", schema: "rag", table: "context_item_suggestions", label: "Context Item Suggestion", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
192
+ "conversation": { token: "conversation", schema: "chat", table: "conversation", label: "Conversation", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Outputs", referencePickable: true, titleColumn: "title", contentRole: "destination", referenceCategory: null },
193
+ "conversation_value": { token: "conversation_value", schema: "chat", table: "conversation_value", label: "Conversation Value", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: null, referencePickable: false, titleColumn: "key", contentRole: null, referenceCategory: null },
194
+ "crm_address": { token: "crm_address", schema: "crm", table: "address", label: "Address", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
195
+ "crm_affiliation": { token: "crm_affiliation", schema: "crm", table: "affiliation", label: "Affiliation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
196
+ "crm_blocklist_entry": { token: "crm_blocklist_entry", schema: "crm", table: "blocklist_entry", label: "Blocklist Entry", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
197
+ "crm_contact_candidate": { token: "crm_contact_candidate", schema: "crm", table: "contact_candidate", label: "Contact Candidate", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
198
+ "crm_deal": { token: "crm_deal", schema: "crm", table: "deal", label: "Deal", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "source", referenceCategory: null },
199
+ "crm_deal_stage_event": { token: "crm_deal_stage_event", schema: "crm", table: "deal_stage_event", label: "Deal Stage Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
200
+ "crm_enrichment_call": { token: "crm_enrichment_call", schema: "crm", table: "enrichment_call", label: "Enrichment Call", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
201
+ "crm_interaction": { token: "crm_interaction", schema: "crm", table: "interaction", label: "Interaction", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "subject", contentRole: null, referenceCategory: null },
202
+ "crm_merge_candidate": { token: "crm_merge_candidate", schema: "crm", table: "merge_candidate", label: "Merge Candidate", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
203
+ "crm_outreach_list": { token: "crm_outreach_list", schema: "crm", table: "outreach_list", label: "Outreach List", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "container", referenceCategory: null },
204
+ "crm_outreach_list_member": { token: "crm_outreach_list_member", schema: "crm", table: "outreach_list_member", label: "Outreach List Member", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
205
+ "crm_party_merge": { token: "crm_party_merge", schema: "crm", table: "party_merge", label: "Party Merge", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
206
+ "crm_registry_ingest_run": { token: "crm_registry_ingest_run", schema: "crm", table: "registry_ingest_run", label: "Registry Ingest Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
207
+ "crm_registry_source": { token: "crm_registry_source", schema: "crm", table: "registry_source", label: "Registry Source", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
208
+ "crm_saved_view": { token: "crm_saved_view", schema: "crm", table: "saved_view", label: "Smart View", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
209
+ "crm_sending_event": { token: "crm_sending_event", schema: "crm", table: "sending_event", label: "Sending Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "subject", contentRole: null, referenceCategory: null },
210
+ "crm_sending_identity": { token: "crm_sending_identity", schema: "crm", table: "sending_identity", label: "Sending Identity", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
211
+ "crm_sending_identity_check": { token: "crm_sending_identity_check", schema: "crm", table: "sending_identity_check", label: "Sending Check", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "check_kind", contentRole: null, referenceCategory: null },
212
+ "crm_sending_policy": { token: "crm_sending_policy", schema: "crm", table: "sending_policy", label: "Sending Policy", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
213
+ "custom_entity_definition": { token: "custom_entity_definition", schema: "platform", table: "custom_entity_definition", label: "Custom Object", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
214
+ "custom_field_definition": { token: "custom_field_definition", schema: "platform", table: "custom_field_definition", label: "Custom Field", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
215
+ "custom_field_target": { token: "custom_field_target", schema: "platform", table: "custom_field_target", label: "Custom Field Target", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
216
+ "custom_record": { token: "custom_record", schema: "platform", table: "custom_record", label: "Custom Record", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
217
+ "cx_agent_memory": { token: "cx_agent_memory", schema: "chat", table: "agent_memory", label: "Agent Memory", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: true, titleColumn: "key", contentRole: null, referenceCategory: null },
218
+ "cx_agent_plan": { token: "cx_agent_plan", schema: "chat", table: "agent_plan", label: "Agent Plan", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
219
+ "cx_agent_task": { token: "cx_agent_task", schema: "chat", table: "agent_task", label: "Agent Task", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
220
+ "cx_code_edit": { token: "cx_code_edit", schema: "chat", table: "code_edit", label: "Code Edit", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
221
+ "cx_code_message_file": { token: "cx_code_message_file", schema: "chat", table: "code_message_file", label: "Code Message File", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
222
+ "cx_media": { token: "cx_media", schema: "chat", table: "media", label: "Media", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
223
+ "cx_observational_memory": { token: "cx_observational_memory", schema: "chat", table: "observational_memory", label: "Observational Memory", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
224
+ "cx_observational_memory_event": { token: "cx_observational_memory_event", schema: "chat", table: "observational_memory_event", label: "Observational Memory Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
225
+ "cx_pending_injection": { token: "cx_pending_injection", schema: "chat", table: "pending_injection", label: "Pending Injection", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
226
+ "cx_request": { token: "cx_request", schema: "chat", table: "request", label: "Conversation Request", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
227
+ "cx_request_snapshot": { token: "cx_request_snapshot", schema: "chat", table: "request_snapshot", label: "Request Snapshot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
228
+ "cx_tool_trace": { token: "cx_tool_trace", schema: "chat", table: "tool_trace", label: "Tool Trace", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
229
+ "cx_user_request": { token: "cx_user_request", schema: "chat", table: "user_request", label: "User Request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
230
+ "cx_user_todo": { token: "cx_user_todo", schema: "chat", table: "user_todo", label: "User Todo", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
231
+ "data_store": { token: "data_store", schema: "rag", table: "data_stores", label: "Data Store", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "source", referenceCategory: null },
232
+ "dataset": { token: "dataset", schema: "workbench", table: "udt_datasets", label: "Dataset", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "description", contentRole: "hybrid", referenceCategory: null },
233
+ "derive_run": { token: "derive_run", schema: "docproc", table: "derive_runs", label: "Derive Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
234
+ "dict_setting": { token: "dict_setting", schema: "dictionary", table: "dict_settings", label: "Dict Setting", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
235
+ "dm_conversation": { token: "dm_conversation", schema: "communication", table: "dm_conversations", label: "Direct Conversation", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
236
+ "dm_message": { token: "dm_message", schema: "communication", table: "dm_messages", label: "Direct Message", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
237
+ "dm_participant": { token: "dm_participant", schema: "communication", table: "dm_conversation_participants", label: "DM Conversation Participant", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
238
+ "domain_classification": { token: "domain_classification", schema: "platform", table: "domain_classification", label: "Domain Classification", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
239
+ "esign_campaign": { token: "esign_campaign", schema: "esign", table: "campaign", label: "Signature campaign", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
240
+ "esign_campaign_member": { token: "esign_campaign_member", schema: "esign", table: "campaign_member", label: "Campaign member", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
241
+ "esign_consent_disclosure": { token: "esign_consent_disclosure", schema: "esign", table: "consent_disclosure", label: "E-sign consent disclosure", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
242
+ "esign_envelope": { token: "esign_envelope", schema: "esign", table: "envelope", label: "Signature envelope", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
243
+ "esign_envelope_certificate": { token: "esign_envelope_certificate", schema: "esign", table: "envelope_certificate", label: "Completion certificate", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
244
+ "esign_envelope_document": { token: "esign_envelope_document", schema: "esign", table: "envelope_document", label: "Envelope document", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
245
+ "esign_envelope_event": { token: "esign_envelope_event", schema: "esign", table: "envelope_event", label: "Envelope event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
246
+ "esign_envelope_external_ref": { token: "esign_envelope_external_ref", schema: "esign", table: "envelope_external_ref", label: "Envelope external reference", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
247
+ "esign_envelope_signer": { token: "esign_envelope_signer", schema: "esign", table: "envelope_signer", label: "Envelope signer", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
248
+ "esign_provider": { token: "esign_provider", schema: "esign", table: "provider", label: "E-sign provider", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
249
+ "esign_provider_binding": { token: "esign_provider_binding", schema: "esign", table: "provider_binding", label: "E-sign provider binding", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
250
+ "esign_signing_key": { token: "esign_signing_key", schema: "esign", table: "signing_key", label: "E-sign certificate signing key", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
251
+ "fc_card": { token: "fc_card", schema: "education", table: "fc_card", label: "Flashcard", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
252
+ "fc_detail": { token: "fc_detail", schema: "education", table: "fc_detail", label: "Flashcard Detail", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
253
+ "fc_set": { token: "fc_set", schema: "education", table: "fc_set", label: "Flashcard Set", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
254
+ "feature_doc": { token: "feature_doc", schema: "admin", table: "feature_docs", label: "Feature Doc", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "documentation", referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
255
+ "file": { token: "file", schema: "files", table: "files", label: "File", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Sources", referencePickable: true, titleColumn: "file_name", contentRole: "source", referenceCategory: null },
256
+ "file_analysis": { token: "file_analysis", schema: "files", table: "analysis", label: "File Analysis", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
257
+ "file_entities": { token: "file_entities", schema: "files", table: "entities", label: "Extracted Term", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
258
+ "file_overrides": { token: "file_overrides", schema: "files", table: "overrides", label: "File Override", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
259
+ "file_page_annotations": { token: "file_page_annotations", schema: "files", table: "page_annotations", label: "Page Annotation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
260
+ "file_pages": { token: "file_pages", schema: "files", table: "pages", label: "File Page", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
261
+ "file_version": { token: "file_version", schema: "files", table: "file_versions", label: "File Version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: "Sources", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
262
+ "flexible_data": { token: "flexible_data", schema: "platform", table: "flexible_data", label: "Flexible Data", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
263
+ "folder": { token: "folder", schema: "files", table: "folders", label: "Folder", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Sources", referencePickable: true, titleColumn: "folder_name", contentRole: "source", referenceCategory: null },
264
+ "game_badge": { token: "game_badge", schema: "education", table: "game_badge", label: "Game Badge", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
265
+ "game_result": { token: "game_result", schema: "education", table: "game_result", label: "Game Result", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
266
+ "game_room": { token: "game_room", schema: "education", table: "game_room", label: "Game Room", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
267
+ "global_execution": { token: "global_execution", schema: "runtime", table: "global_execution", label: "Runtime Execution", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
268
+ "global_execution_checkpoint": { token: "global_execution_checkpoint", schema: "runtime", table: "global_execution_checkpoint", label: "Runtime Checkpoint", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
269
+ "global_execution_event": { token: "global_execution_event", schema: "runtime", table: "global_execution_event", label: "Runtime Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
270
+ "global_meter_entry": { token: "global_meter_entry", schema: "runtime", table: "global_meter_entry", label: "Runtime Meter Entry", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
271
+ "global_origin": { token: "global_origin", schema: "runtime", table: "global_origin", label: "Runtime Origin", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
272
+ "global_request": { token: "global_request", schema: "runtime", table: "global_request", label: "Runtime Request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
273
+ "growth_loop_event": { token: "growth_loop_event", schema: "growth", table: "loop_event", label: "Growth Loop Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
274
+ "growth_loop_run": { token: "growth_loop_run", schema: "growth", table: "loop_run", label: "Growth Loop Run", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
275
+ "growth_loop_stage_run": { token: "growth_loop_stage_run", schema: "growth", table: "loop_stage_run", label: "Growth Loop Stage Run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
276
+ "guided_checklist_run": { token: "guided_checklist_run", schema: "platform", table: "guided_checklist_run", label: "Guided Checklist Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
277
+ "heatmap_save": { token: "heatmap_save", schema: "workbench", table: "heatmap_saves", label: "Heatmap Save", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
278
+ "hindsight_enrollment": { token: "hindsight_enrollment", schema: "hindsight", table: "enrollment", label: "Hindsight Enrollment", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "display_name", contentRole: null, referenceCategory: null },
279
+ "hindsight_finding": { token: "hindsight_finding", schema: "hindsight", table: "finding", label: "Hindsight Finding", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
280
+ "hindsight_regression_case": { token: "hindsight_regression_case", schema: "hindsight", table: "regression_case", label: "Regression Case", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
281
+ "hindsight_replay": { token: "hindsight_replay", schema: "hindsight", table: "replay", label: "Hindsight Replay", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
282
+ "hindsight_replay_step": { token: "hindsight_replay_step", schema: "hindsight", table: "replay_step", label: "Wire Replay Step", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
283
+ "hindsight_review": { token: "hindsight_review", schema: "hindsight", table: "review", label: "Hindsight Review", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
284
+ "hr_access_audit": { token: "hr_access_audit", schema: "hr", table: "access_audit", label: "Access audit", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
285
+ "hr_access_role": { token: "hr_access_role", schema: "hr", table: "access_role", label: "HR access role", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
286
+ "hr_accommodation_request": { token: "hr_accommodation_request", schema: "hr", table: "accommodation_request", label: "Accommodation request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
287
+ "hr_ai_evidence": { token: "hr_ai_evidence", schema: "hr", table: "ai_evidence", label: "AI evidence", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
288
+ "hr_alert_routing_rule": { token: "hr_alert_routing_rule", schema: "hr", table: "alert_routing_rule", label: "Alert routing rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
289
+ "hr_application": { token: "hr_application", schema: "hr", table: "application", label: "Application", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
290
+ "hr_approval_authority": { token: "hr_approval_authority", schema: "hr", table: "approval_authority", label: "Approval authority", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
291
+ "hr_approval_delegation": { token: "hr_approval_delegation", schema: "hr", table: "approval_delegation", label: "Approval delegation", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
292
+ "hr_asset": { token: "hr_asset", schema: "hr", table: "asset", label: "Asset", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
293
+ "hr_asset_assignment": { token: "hr_asset_assignment", schema: "hr", table: "asset_assignment", label: "Asset assignment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
294
+ "hr_attendance_exception": { token: "hr_attendance_exception", schema: "hr", table: "attendance_exception", label: "Attendance exception", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
295
+ "hr_auto_close_rule": { token: "hr_auto_close_rule", schema: "hr", table: "auto_close_rule", label: "Auto-close rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
296
+ "hr_availability": { token: "hr_availability", schema: "hr", table: "availability", label: "Availability", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
297
+ "hr_background_check": { token: "hr_background_check", schema: "hr", table: "background_check", label: "Background check", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
298
+ "hr_benefits_event": { token: "hr_benefits_event", schema: "hr", table: "benefits_event", label: "Benefits event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
299
+ "hr_calculation_snapshot": { token: "hr_calculation_snapshot", schema: "hr", table: "calculation_snapshot", label: "Calculation snapshot", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
300
+ "hr_candidate": { token: "hr_candidate", schema: "hr", table: "candidate", label: "Candidate", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "preferred_name", contentRole: null, referenceCategory: null },
301
+ "hr_candidate_conversion": { token: "hr_candidate_conversion", schema: "hr", table: "candidate_conversion", label: "Candidate conversion", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
302
+ "hr_candidate_message": { token: "hr_candidate_message", schema: "hr", table: "candidate_message", label: "Candidate message", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
303
+ "hr_careers_portal": { token: "hr_careers_portal", schema: "hr", table: "careers_portal", label: "Careers portal", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
304
+ "hr_checklist_item": { token: "hr_checklist_item", schema: "hr", table: "checklist_item", label: "Checklist item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
305
+ "hr_checklist_run": { token: "hr_checklist_run", schema: "hr", table: "checklist_run", label: "Checklist run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
306
+ "hr_checklist_template": { token: "hr_checklist_template", schema: "hr", table: "checklist_template", label: "Checklist template", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
307
+ "hr_checklist_template_item": { token: "hr_checklist_template_item", schema: "hr", table: "checklist_template_item", label: "Checklist template item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
308
+ "hr_compensation": { token: "hr_compensation", schema: "hr", table: "compensation", label: "Compensation record", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
309
+ "hr_corrective_action": { token: "hr_corrective_action", schema: "hr", table: "corrective_action", label: "Corrective action", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
310
+ "hr_course": { token: "hr_course", schema: "hr", table: "course", label: "Course", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
311
+ "hr_course_version": { token: "hr_course_version", schema: "hr", table: "course_version", label: "Course version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
312
+ "hr_credential": { token: "hr_credential", schema: "hr", table: "credential", label: "Credential", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
313
+ "hr_crew": { token: "hr_crew", schema: "hr", table: "crew", label: "Crew", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
314
+ "hr_deduction_code": { token: "hr_deduction_code", schema: "hr", table: "deduction_code", label: "Deduction code", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
315
+ "hr_department": { token: "hr_department", schema: "hr", table: "department", label: "Department", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
316
+ "hr_derived_grant": { token: "hr_derived_grant", schema: "hr", table: "derived_grant", label: "Derived grant", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
317
+ "hr_disposition_event": { token: "hr_disposition_event", schema: "hr", table: "disposition_event", label: "Disposition event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
318
+ "hr_earning_code": { token: "hr_earning_code", schema: "hr", table: "earning_code", label: "Earning code", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
319
+ "hr_eeo_response": { token: "hr_eeo_response", schema: "hr", table: "eeo_response", label: "EEO self-identification response", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
320
+ "hr_emergency_contact": { token: "hr_emergency_contact", schema: "hr", table: "emergency_contact", label: "Emergency contact", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
321
+ "hr_employee": { token: "hr_employee", schema: "hr", table: "employee", label: "Employee", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: "container", referenceCategory: null },
322
+ "hr_employee_private": { token: "hr_employee_private", schema: "hr", table: "employee_private", label: "Employee private record", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
323
+ "hr_employer_profile": { token: "hr_employer_profile", schema: "hr", table: "employer_profile", label: "Employer profile", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "legal_name", contentRole: null, referenceCategory: null },
324
+ "hr_employment": { token: "hr_employment", schema: "hr", table: "employment", label: "Employment spell", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
325
+ "hr_employment_pin": { token: "hr_employment_pin", schema: "hr", table: "employment_pin", label: "Employment PIN", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
326
+ "hr_engagement": { token: "hr_engagement", schema: "hr", table: "engagement", label: "Engagement", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
327
+ "hr_establishment": { token: "hr_establishment", schema: "hr", table: "establishment", label: "Establishment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
328
+ "hr_external_identity": { token: "hr_external_identity", schema: "hr", table: "external_identity", label: "External identity", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
329
+ "hr_field_policy": { token: "hr_field_policy", schema: "hr", table: "field_policy", label: "Self-service field policy", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
330
+ "hr_holiday": { token: "hr_holiday", schema: "hr", table: "holiday", label: "Holiday", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
331
+ "hr_holiday_calendar": { token: "hr_holiday_calendar", schema: "hr", table: "holiday_calendar", label: "Holiday calendar", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
332
+ "hr_i9": { token: "hr_i9", schema: "hr", table: "i9", label: "Form I-9", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
333
+ "hr_i9_document": { token: "hr_i9_document", schema: "hr", table: "i9_document", label: "I-9 document", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
334
+ "hr_incident": { token: "hr_incident", schema: "hr", table: "incident", label: "Incident", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
335
+ "hr_incident_party": { token: "hr_incident_party", schema: "hr", table: "incident_party", label: "Incident party", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
336
+ "hr_interview": { token: "hr_interview", schema: "hr", table: "interview", label: "Interview", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
337
+ "hr_interview_kit": { token: "hr_interview_kit", schema: "hr", table: "interview_kit", label: "Interview kit", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
338
+ "hr_job_title": { token: "hr_job_title", schema: "hr", table: "job_title", label: "Job title", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
339
+ "hr_jurisdiction": { token: "hr_jurisdiction", schema: "hr", table: "jurisdiction", label: "Jurisdiction", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
340
+ "hr_jurisdiction_rule": { token: "hr_jurisdiction_rule", schema: "hr", table: "jurisdiction_rule", label: "Jurisdiction rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
341
+ "hr_jurisdiction_rule_class": { token: "hr_jurisdiction_rule_class", schema: "hr", table: "jurisdiction_rule_class", label: "Jurisdiction rule class", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
342
+ "hr_jurisdiction_rule_org_decision": { token: "hr_jurisdiction_rule_org_decision", schema: "hr", table: "jurisdiction_rule_org_decision", label: "Jurisdiction rule org decision", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
343
+ "hr_jurisdiction_rule_test": { token: "hr_jurisdiction_rule_test", schema: "hr", table: "jurisdiction_rule_test", label: "Jurisdiction rule fixture", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
344
+ "hr_kiosk_device": { token: "hr_kiosk_device", schema: "hr", table: "kiosk_device", label: "Kiosk device", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
345
+ "hr_kiosk_session": { token: "hr_kiosk_session", schema: "hr", table: "kiosk_session", label: "Kiosk session", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
346
+ "hr_labor_target": { token: "hr_labor_target", schema: "hr", table: "labor_target", label: "Labor target", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
347
+ "hr_leave_case": { token: "hr_leave_case", schema: "hr", table: "leave_case", label: "Leave case", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
348
+ "hr_leave_enrollment": { token: "hr_leave_enrollment", schema: "hr", table: "leave_enrollment", label: "Leave enrollment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
349
+ "hr_leave_ledger": { token: "hr_leave_ledger", schema: "hr", table: "leave_ledger", label: "Leave ledger entry", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
350
+ "hr_leave_policy": { token: "hr_leave_policy", schema: "hr", table: "leave_policy", label: "Leave policy", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
351
+ "hr_leave_request": { token: "hr_leave_request", schema: "hr", table: "leave_request", label: "Leave request", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
352
+ "hr_legal_hold": { token: "hr_legal_hold", schema: "hr", table: "legal_hold", label: "Legal hold", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "matter_name", contentRole: null, referenceCategory: null },
353
+ "hr_legal_hold_item": { token: "hr_legal_hold_item", schema: "hr", table: "legal_hold_item", label: "Legal hold item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
354
+ "hr_location": { token: "hr_location", schema: "hr", table: "location", label: "Location", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
355
+ "hr_new_hire_report": { token: "hr_new_hire_report", schema: "hr", table: "new_hire_report", label: "New hire report", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
356
+ "hr_offer": { token: "hr_offer", schema: "hr", table: "offer", label: "Offer", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
357
+ "hr_opening": { token: "hr_opening", schema: "hr", table: "opening", label: "Opening", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
358
+ "hr_overtime_alert": { token: "hr_overtime_alert", schema: "hr", table: "overtime_alert", label: "Overtime alert", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
359
+ "hr_overtime_alert_rule": { token: "hr_overtime_alert_rule", schema: "hr", table: "overtime_alert_rule", label: "Overtime alert rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
360
+ "hr_overtime_preapproval": { token: "hr_overtime_preapproval", schema: "hr", table: "overtime_preapproval", label: "Overtime pre-approval", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
361
+ "hr_pay_group": { token: "hr_pay_group", schema: "hr", table: "pay_group", label: "Pay group", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
362
+ "hr_pay_period": { token: "hr_pay_period", schema: "hr", table: "pay_period", label: "Pay period", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
363
+ "hr_pay_period_employment": { token: "hr_pay_period_employment", schema: "hr", table: "pay_period_employment", label: "Pay period timesheet", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
364
+ "hr_payroll_export": { token: "hr_payroll_export", schema: "hr", table: "payroll_export", label: "Payroll export", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
365
+ "hr_payroll_export_line": { token: "hr_payroll_export_line", schema: "hr", table: "payroll_export_line", label: "Payroll export line", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
366
+ "hr_position_assignment": { token: "hr_position_assignment", schema: "hr", table: "position_assignment", label: "Position assignment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
367
+ "hr_posting": { token: "hr_posting", schema: "hr", table: "posting", label: "Job posting", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
368
+ "hr_posting_publication": { token: "hr_posting_publication", schema: "hr", table: "posting_publication", label: "Posting publication", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
369
+ "hr_provider_binding": { token: "hr_provider_binding", schema: "hr", table: "provider_binding", label: "Provider binding", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
370
+ "hr_provider_event": { token: "hr_provider_event", schema: "hr", table: "provider_event", label: "Provider seam event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
371
+ "hr_provisioning_result": { token: "hr_provisioning_result", schema: "hr", table: "provisioning_result", label: "Provisioning result", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
372
+ "hr_punch": { token: "hr_punch", schema: "hr", table: "punch", label: "Punch", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
373
+ "hr_recalculation_batch": { token: "hr_recalculation_batch", schema: "hr", table: "recalculation_batch", label: "Recalculation batch", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
374
+ "hr_record_class": { token: "hr_record_class", schema: "hr", table: "record_class", label: "Record class", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
375
+ "hr_records_request": { token: "hr_records_request", schema: "hr", table: "records_request", label: "Records request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
376
+ "hr_reference_check": { token: "hr_reference_check", schema: "hr", table: "reference_check", label: "Reference check", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
377
+ "hr_reporting_line": { token: "hr_reporting_line", schema: "hr", table: "reporting_line", label: "Reporting line", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
378
+ "hr_requisition": { token: "hr_requisition", schema: "hr", table: "requisition", label: "Requisition", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "requisition_number", contentRole: null, referenceCategory: null },
379
+ "hr_restricted_note": { token: "hr_restricted_note", schema: "hr", table: "restricted_note", label: "Restricted note", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
380
+ "hr_retention_rule": { token: "hr_retention_rule", schema: "hr", table: "retention_rule", label: "Retention rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
381
+ "hr_role_assignment": { token: "hr_role_assignment", schema: "hr", table: "role_assignment", label: "HR role assignment", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
382
+ "hr_schedule": { token: "hr_schedule", schema: "hr", table: "schedule", label: "Schedule", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
383
+ "hr_schedule_change": { token: "hr_schedule_change", schema: "hr", table: "schedule_change", label: "Schedule change", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
384
+ "hr_schedule_guidance": { token: "hr_schedule_guidance", schema: "hr", table: "schedule_guidance", label: "Schedule guidance", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
385
+ "hr_schedule_template": { token: "hr_schedule_template", schema: "hr", table: "schedule_template", label: "Schedule template", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
386
+ "hr_schedule_template_shift": { token: "hr_schedule_template_shift", schema: "hr", table: "schedule_template_shift", label: "Schedule template shift", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
387
+ "hr_scorecard": { token: "hr_scorecard", schema: "hr", table: "scorecard", label: "Scorecard", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
388
+ "hr_separation": { token: "hr_separation", schema: "hr", table: "separation", label: "Separation", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
389
+ "hr_shift": { token: "hr_shift", schema: "hr", table: "shift", label: "Shift", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
390
+ "hr_shift_claim": { token: "hr_shift_claim", schema: "hr", table: "shift_claim", label: "Shift claim", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
391
+ "hr_staffing_requirement": { token: "hr_staffing_requirement", schema: "hr", table: "staffing_requirement", label: "Staffing requirement", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
392
+ "hr_survey": { token: "hr_survey", schema: "hr", table: "survey", label: "Survey", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
393
+ "hr_survey_invitation": { token: "hr_survey_invitation", schema: "hr", table: "survey_invitation", label: "Survey invitation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
394
+ "hr_survey_question": { token: "hr_survey_question", schema: "hr", table: "survey_question", label: "Survey question", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
395
+ "hr_survey_response": { token: "hr_survey_response", schema: "hr", table: "survey_response", label: "Survey response", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
396
+ "hr_tax_registration": { token: "hr_tax_registration", schema: "hr", table: "tax_registration", label: "Tax registration", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
397
+ "hr_tax_withholding": { token: "hr_tax_withholding", schema: "hr", table: "tax_withholding", label: "Tax withholding certificate", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
398
+ "hr_time_adjustment": { token: "hr_time_adjustment", schema: "hr", table: "time_adjustment", label: "Time adjustment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
399
+ "hr_training_assignment": { token: "hr_training_assignment", schema: "hr", table: "training_assignment", label: "Training assignment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
400
+ "hr_training_attempt": { token: "hr_training_attempt", schema: "hr", table: "training_attempt", label: "Training attempt", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
401
+ "hr_transcript_entry": { token: "hr_transcript_entry", schema: "hr", table: "transcript_entry", label: "Transcript entry", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
402
+ "hr_verification_letter_request": { token: "hr_verification_letter_request", schema: "hr", table: "verification_letter_request", label: "Verification letter request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
403
+ "hr_work_interval": { token: "hr_work_interval", schema: "hr", table: "work_interval", label: "Work interval", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
404
+ "hr_workflow_binding": { token: "hr_workflow_binding", schema: "hr", table: "workflow_binding", label: "HR Workflow Binding", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
405
+ "hr_workflow_decision": { token: "hr_workflow_decision", schema: "hr", table: "workflow_decision", label: "HR Workflow Decision", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
406
+ "hr_workflow_definition": { token: "hr_workflow_definition", schema: "hr", table: "workflow_definition", label: "HR Workflow Definition", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
407
+ "hr_workflow_event": { token: "hr_workflow_event", schema: "hr", table: "workflow_event", label: "HR Workflow Event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
408
+ "hr_workflow_failure": { token: "hr_workflow_failure", schema: "hr", table: "workflow_failure", label: "HR Workflow Failure", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
409
+ "hr_workflow_flow_type": { token: "hr_workflow_flow_type", schema: "hr", table: "workflow_flow_type", label: "HR Workflow Flow Type", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
410
+ "hr_workflow_instance": { token: "hr_workflow_instance", schema: "hr", table: "workflow_instance", label: "HR Workflow Instance", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
411
+ "hr_workflow_step": { token: "hr_workflow_step", schema: "hr", table: "workflow_step", label: "HR Workflow Step", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
412
+ "hr_workflow_step_definition": { token: "hr_workflow_step_definition", schema: "hr", table: "workflow_step_definition", label: "HR Workflow Step Definition", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
413
+ "hr_workweek": { token: "hr_workweek", schema: "hr", table: "workweek", label: "Workweek", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
414
+ "iam_api_key": { token: "iam_api_key", schema: "iam", table: "api_keys", label: "API Key", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
415
+ "industry_curator": { token: "industry_curator", schema: "iam", table: "industry_curators", label: "Industry Curator", baseTier: 2, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
416
+ "interview_document_revision": { token: "interview_document_revision", schema: "interview", table: "document_revision", label: "Interview Document Revision", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
417
+ "interview_hole": { token: "interview_hole", schema: "interview", table: "hole", label: "Interview Adversary Hole", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
418
+ "interview_question": { token: "interview_question", schema: "interview", table: "question", label: "Interview Open Question", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
419
+ "interview_session": { token: "interview_session", schema: "interview", table: "session", label: "Vision Interview Session", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
420
+ "interview_turn": { token: "interview_turn", schema: "interview", table: "turn", label: "Interview Turn", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
421
+ "invitation": { token: "invitation", schema: "iam", table: "invitations", label: "Invitation", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
422
+ "invitation_code": { token: "invitation_code", schema: "users", table: "invitation_codes", label: "Invitation Code", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
423
+ "invitation_request": { token: "invitation_request", schema: "users", table: "invitation_requests", label: "Invitation Request", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
424
+ "item_mastery": { token: "item_mastery", schema: "education", table: "item_mastery", label: "Item Mastery", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
425
+ "judge_verdict": { token: "judge_verdict", schema: "platform", table: "judge_verdict", label: "Judge Verdict", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
426
+ "kg_alert": { token: "kg_alert", schema: "rag", table: "kg_alerts", label: "KG Alert", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
427
+ "kg_suggestion_ack": { token: "kg_suggestion_ack", schema: "rag", table: "kg_suggestion_ack", label: "KG Suggestion Ack", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
428
+ "kg_sweep_queue": { token: "kg_sweep_queue", schema: "rag", table: "kg_sweep_queue", label: "KG Sweep Queue", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
429
+ "kg_sweep_run": { token: "kg_sweep_run", schema: "rag", table: "kg_sweep_run", label: "KG Sweep Run", baseTier: 3, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
430
+ "kg_sweep_state": { token: "kg_sweep_state", schema: "rag", table: "kg_sweep_state", label: "KG Sweep State", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
431
+ "kg_value_match": { token: "kg_value_match", schema: "rag", table: "kg_value_matches", label: "KG Value Match", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
432
+ "league_membership": { token: "league_membership", schema: "education", table: "league_membership", label: "League Membership", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
433
+ "learn_doc": { token: "learn_doc", schema: "education", table: "learn_doc", label: "Study Guide", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
434
+ "library_doc": { token: "library_doc", schema: "rag", table: "library_docs", label: "Library Document", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
435
+ "mandate": { token: "mandate", schema: "mandate", table: "definition", label: "Mandate Definition (new)", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
436
+ "mandate_binding": { token: "mandate_binding", schema: "mandate", table: "binding", label: "Mandate Binding (new)", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
437
+ "mandate_treatment": { token: "mandate_treatment", schema: "mandate", table: "treatment", label: "Mandate Treatment (new)", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
438
+ "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 },
439
+ "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 },
440
+ "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 },
441
+ "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 },
442
+ "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 },
443
+ "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 },
444
+ "ner_shadow": { token: "ner_shadow", schema: "rag", table: "ner_canonicalizer_shadow", label: "NER Shadow", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
445
+ "note": { token: "note", schema: "workbench", table: "notes", label: "Note", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Sources & Outputs", referencePickable: true, titleColumn: "label", contentRole: "hybrid", referenceCategory: null },
446
+ "note_folder": { token: "note_folder", schema: "workbench", table: "note_folders", label: "Note Folder", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
447
+ "notification": { token: "notification", schema: "communication", table: "notification", label: "Notification", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
448
+ "notification_channel_preference": { token: "notification_channel_preference", schema: "communication", table: "notification_channel_preference", label: "Notification Channel Preference", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
449
+ "notification_event_override": { token: "notification_event_override", schema: "communication", table: "notification_event_override", label: "Notification Event Override", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
450
+ "notification_event_type": { token: "notification_event_type", schema: "communication", table: "notification_event_type", label: "Notification Event Type", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
451
+ "notification_preference": { token: "notification_preference", schema: "communication", table: "notification_preference", label: "Notification Preference", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
452
+ "ops_issue_event": { token: "ops_issue_event", schema: "ops", table: "ops_issue_event", label: "Ops Issue Event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
453
+ "ops_proof_check": { token: "ops_proof_check", schema: "ops", table: "proof_check", label: "Proof Check", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
454
+ "ops_proof_run": { token: "ops_proof_run", schema: "ops", table: "proof_run", label: "Proof Run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
455
+ "ops_proof_scenario": { token: "ops_proof_scenario", schema: "ops", table: "proof_scenario", label: "Proof Scenario", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
456
+ "organization": { token: "organization", schema: "iam", table: "organizations", label: "Organization", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "container", referenceCategory: null },
457
+ "output_feedback": { token: "output_feedback", schema: "platform", table: "output_feedback", label: "Output Feedback", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
458
+ "page_extraction_job": { token: "page_extraction_job", schema: "docproc", table: "page_extraction_jobs", label: "Extraction Dataset", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
459
+ "page_extraction_page_run": { token: "page_extraction_page_run", schema: "docproc", table: "page_extraction_page_runs", label: "Page Extraction Page Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
460
+ "party": { token: "party", schema: "crm", table: "party", label: "Entity", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: "source", referenceCategory: null },
461
+ "party_contact_point": { token: "party_contact_point", schema: "crm", table: "party_contact_point", label: "Contact Point", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
462
+ "pc_article": { token: "pc_article", schema: "podcast", table: "pc_articles", label: "Podcast Article", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
463
+ "pc_episode": { token: "pc_episode", schema: "podcast", table: "pc_episodes", label: "Podcast Episode", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
464
+ "pc_show": { token: "pc_show", schema: "podcast", table: "pc_shows", label: "Podcast Show", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
465
+ "pc_studio_run": { token: "pc_studio_run", schema: "podcast", table: "pc_studio_runs", label: "Podcast Studio Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
466
+ "pc_studio_run_asset": { token: "pc_studio_run_asset", schema: "podcast", table: "pc_studio_run_assets", label: "Podcast Studio Run Asset", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
467
+ "pdf_redaction_audit": { token: "pdf_redaction_audit", schema: "pdf", table: "pdf_redaction_audits", label: "PDF Redaction Audit", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
468
+ "plan_cms_fill_item": { token: "plan_cms_fill_item", schema: "plan", table: "cms_fill_item", label: "CMS Fill Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
469
+ "plan_cms_fill_job": { token: "plan_cms_fill_job", schema: "plan", table: "cms_fill_job", label: "CMS Fill Job", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
470
+ "plan_entity": { token: "plan_entity", schema: "plan", table: "entity", label: "Plan Entity", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
471
+ "plan_node": { token: "plan_node", schema: "plan", table: "node", label: "Plan Node", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
472
+ "plan_node_artifact": { token: "plan_node_artifact", schema: "plan", table: "node_artifact", label: "Plan Node Artifact", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
473
+ "plan_node_step": { token: "plan_node_step", schema: "plan", table: "node_step", label: "Plan Node Step", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
474
+ "plan_profile": { token: "plan_profile", schema: "plan", table: "profile", label: "Plan Vertical Profile", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "vertical", contentRole: null, referenceCategory: null },
475
+ "platform_actor_session": { token: "platform_actor_session", schema: "platform", table: "actor_session", label: "Actor session", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
476
+ "platform_actor_token": { token: "platform_actor_token", schema: "platform", table: "actor_token", label: "Actor token", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
477
+ "platform_actor_token_event": { token: "platform_actor_token_event", schema: "platform", table: "actor_token_event", label: "Actor token event", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
478
+ "platform_outcome_event": { token: "platform_outcome_event", schema: "platform", table: "outcome_event", label: "Outcome Event", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
479
+ "platform_outsider_consumer": { token: "platform_outsider_consumer", schema: "platform", table: "outsider_consumer", label: "Outsider consumer", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
480
+ "platform_saved_view": { token: "platform_saved_view", schema: "platform", table: "saved_view", label: "Saved view", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
481
+ "podcast_race": { token: "podcast_race", schema: "podcast", table: "pc_race", label: "Podcast Race Episode", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
482
+ "processed_document": { token: "processed_document", schema: "docproc", table: "processed_documents", label: "Processed document", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "source", referenceCategory: null },
483
+ "processed_document_page": { token: "processed_document_page", schema: "docproc", table: "processed_document_pages", label: "Processed document page", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
484
+ "product_capture_file": { token: "product_capture_file", schema: "workbench", table: "product_capture_file", label: "Product Capture File", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
485
+ "product_capture_item": { token: "product_capture_item", schema: "workbench", table: "product_capture_item", label: "Product Capture Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
486
+ "product_capture_payload": { token: "product_capture_payload", schema: "workbench", table: "product_capture_payload", label: "Product Capture Payload", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
487
+ "product_capture_product": { token: "product_capture_product", schema: "workbench", table: "product_capture_product", label: "Product Capture Product", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
488
+ "product_capture_question": { token: "product_capture_question", schema: "workbench", table: "product_capture_question", label: "Product Capture Question", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
489
+ "project": { token: "project", schema: "workspace", table: "projects", label: "Project", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Workspaces", referencePickable: true, titleColumn: "name", contentRole: "container", referenceCategory: null },
490
+ "provision": { token: "provision", schema: "mandate", table: "provision", label: "Mandate Provision (new)", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
491
+ "purpose": { token: "purpose", schema: "platform", table: "purpose", label: "Purpose", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
492
+ "quiz_session": { token: "quiz_session", schema: "education", table: "quiz_sessions", label: "Quiz Session", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: "destination", referenceCategory: null },
493
+ "rag_ingest_run": { token: "rag_ingest_run", schema: "rag", table: "ingest_run", label: "Ingest Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
494
+ "redaction_mapping": { token: "redaction_mapping", schema: "pdf", table: "redaction_mapping", label: "Redaction Mapping", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
495
+ "research_analysis": { token: "research_analysis", schema: "research", table: "rs_analysis", label: "Research Analysis", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
496
+ "research_content": { token: "research_content", schema: "research", table: "rs_content", label: "Research Content", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
497
+ "research_context_bundle": { token: "research_context_bundle", schema: "research", table: "rs_context_bundle", label: "Research Context Bundle", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: "research", referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
498
+ "research_document": { token: "research_document", schema: "research", table: "rs_document", label: "Research Document", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
499
+ "research_keyword": { token: "research_keyword", schema: "research", table: "rs_keyword", label: "Research Keyword", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
500
+ "research_media": { token: "research_media", schema: "research", table: "rs_media", label: "Research Media", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
501
+ "research_source": { token: "research_source", schema: "research", table: "rs_source", label: "Research Source", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
502
+ "research_synthesis": { token: "research_synthesis", schema: "research", table: "rs_synthesis", label: "Research Synthesis", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
503
+ "research_tag": { token: "research_tag", schema: "research", table: "rs_tag", label: "Research Tag", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
504
+ "research_template": { token: "research_template", schema: "research", table: "rs_template", label: "Research Template", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
505
+ "research_topic": { token: "research_topic", schema: "research", table: "rs_topic", label: "Research Topic", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
506
+ "rulebook": { token: "rulebook", schema: "platform", table: "rulebook", label: "Rulebook", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: "Knowledge", referencePickable: true, titleColumn: "name", contentRole: "source", referenceCategory: null },
507
+ "sandbox_instance": { token: "sandbox_instance", schema: "public", table: "sandbox_instances", label: "Sandbox Instance", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
508
+ "sch_agent_task": { token: "sch_agent_task", schema: "scheduler", table: "sch_agent_task", label: "Agent Task Config", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
509
+ "sch_run": { token: "sch_run", schema: "scheduler", table: "sch_run", label: "Task Run", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
510
+ "sch_task": { token: "sch_task", schema: "scheduler", table: "sch_task", label: "Scheduled Task", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
511
+ "sch_trigger": { token: "sch_trigger", schema: "scheduler", table: "sch_trigger", label: "Task Trigger", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
512
+ "scope": { token: "scope", schema: "context", table: "scopes", label: "Scope", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: "container", referenceCategory: null },
513
+ "scope_association_suggestion": { token: "scope_association_suggestion", schema: "rag", table: "scope_association_suggestions", label: "Scope Association Suggestion", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
514
+ "scope_item_value_suggestion": { token: "scope_item_value_suggestion", schema: "rag", table: "scope_item_value_suggestions", label: "Scope Item Value Suggestion", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
515
+ "scope_suggestion": { token: "scope_suggestion", schema: "rag", table: "scope_suggestions", label: "Scope Suggestion", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
516
+ "scope_type": { token: "scope_type", schema: "context", table: "scope_types", label: "Scope Type", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "slug", contentRole: "container", referenceCategory: null },
517
+ "seo_ai_visibility_citation": { token: "seo_ai_visibility_citation", schema: "seo", table: "ai_visibility_citation", label: "AI Visibility Citation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
518
+ "seo_ai_visibility_claim": { token: "seo_ai_visibility_claim", schema: "seo", table: "ai_visibility_claim", label: "AI Visibility Claim", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
519
+ "seo_ai_visibility_panel": { token: "seo_ai_visibility_panel", schema: "seo", table: "ai_visibility_panel", label: "AI Visibility Panel", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
520
+ "seo_ai_visibility_response": { token: "seo_ai_visibility_response", schema: "seo", table: "ai_visibility_response", label: "AI Visibility Response", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
521
+ "seo_ai_visibility_signal": { token: "seo_ai_visibility_signal", schema: "seo", table: "ai_visibility_signal", label: "AI Visibility Signal", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
522
+ "seo_backlink": { token: "seo_backlink", schema: "seo", table: "backlink", label: "SEO Backlink", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
523
+ "seo_backlink_change_event": { token: "seo_backlink_change_event", schema: "seo", table: "backlink_change_event", label: "Backlink Change Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
524
+ "seo_backlink_dimension_snapshot": { token: "seo_backlink_dimension_snapshot", schema: "seo", table: "backlink_dimension_snapshot", label: "Backlink Dimension Snapshot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
525
+ "seo_backlink_observation": { token: "seo_backlink_observation", schema: "seo", table: "backlink_observation", label: "Backlink Observation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
526
+ "seo_backlink_snapshot": { token: "seo_backlink_snapshot", schema: "seo", table: "backlink_snapshot", label: "Backlink Snapshot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
527
+ "seo_change_assessment": { token: "seo_change_assessment", schema: "seo", table: "change_assessment", label: "SEO Change Assessment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
528
+ "seo_change_event": { token: "seo_change_event", schema: "seo", table: "change_event", label: "SEO Change Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
529
+ "seo_change_item": { token: "seo_change_item", schema: "seo", table: "change_item", label: "SEO Change Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
530
+ "seo_change_metric": { token: "seo_change_metric", schema: "seo", table: "change_metric", label: "SEO Change Metric", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
531
+ "seo_change_set": { token: "seo_change_set", schema: "seo", table: "change_set", label: "SEO Change", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: "title", contentRole: "source", referenceCategory: null },
532
+ "seo_change_theory": { token: "seo_change_theory", schema: "seo", table: "change_theory", label: "SEO Change Theory", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
533
+ "seo_collection_run": { token: "seo_collection_run", schema: "seo", table: "collection_run", label: "SEO Collection Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
534
+ "seo_competitor": { token: "seo_competitor", schema: "seo", table: "competitor", label: "SEO Competitor", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
535
+ "seo_competitor_observation": { token: "seo_competitor_observation", schema: "seo", table: "competitor_observation", label: "Competitor Observation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
536
+ "seo_competitor_opportunity": { token: "seo_competitor_opportunity", schema: "seo", table: "competitor_opportunity", label: "Competitor Opportunity", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
537
+ "seo_coverage_mention": { token: "seo_coverage_mention", schema: "seo", table: "coverage_mention", label: "Coverage Mention", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
538
+ "seo_coverage_tracker": { token: "seo_coverage_tracker", schema: "seo", table: "coverage_tracker", label: "Coverage Tracker", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
539
+ "seo_dimension_value_matcher": { token: "seo_dimension_value_matcher", schema: "seo", table: "dimension_value_matcher", label: "Dimension Value Matcher", baseTier: 1, isComponent: true, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
540
+ "seo_engine_schedule": { token: "seo_engine_schedule", schema: "seo", table: "engine_schedule", label: "SEO Engine Schedule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
541
+ "seo_geo_place": { token: "seo_geo_place", schema: "seo", table: "geo_place", label: "Geo Place", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
542
+ "seo_gsc_dig_rule": { token: "seo_gsc_dig_rule", schema: "seo", table: "gsc_dig_rule", label: "GSC Dig Rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
543
+ "seo_keyword": { token: "seo_keyword", schema: "seo", table: "keyword", label: "SEO Keyword", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: "phrase", contentRole: null, referenceCategory: null },
544
+ "seo_keyword_class_rule": { token: "seo_keyword_class_rule", schema: "seo", table: "keyword_class_rule", label: "Keyword Class Rule", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
545
+ "seo_keyword_edge": { token: "seo_keyword_edge", schema: "seo", table: "keyword_edge", label: "Keyword Edge", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
546
+ "seo_keyword_facet": { token: "seo_keyword_facet", schema: "seo", table: "keyword_facet", label: "Keyword Facet", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
547
+ "seo_keyword_market": { token: "seo_keyword_market", schema: "seo", table: "keyword_market", label: "Keyword Market Data", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
548
+ "seo_keyword_market_observation": { token: "seo_keyword_market_observation", schema: "seo", table: "keyword_market_observation", label: "Keyword Market Observation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
549
+ "seo_keyword_place": { token: "seo_keyword_place", schema: "seo", table: "keyword_place", label: "Keyword Place", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
550
+ "seo_keyword_saved_view": { token: "seo_keyword_saved_view", schema: "seo", table: "keyword_saved_view", label: "Keyword Saved View", baseTier: 1, isComponent: true, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
551
+ "seo_keyword_topic": { token: "seo_keyword_topic", schema: "seo", table: "keyword_topic", label: "Keyword Topic Assignment", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
552
+ "seo_landscape_brief": { token: "seo_landscape_brief", schema: "seo", table: "landscape_brief", label: "Competitive Landscape Brief", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
553
+ "seo_link_gap_domain": { token: "seo_link_gap_domain", schema: "seo", table: "link_gap_domain", label: "Link Gap Domain", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
554
+ "seo_link_gap_match": { token: "seo_link_gap_match", schema: "seo", table: "link_gap_match", label: "Link Gap Match", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
555
+ "seo_page_measurement_health": { token: "seo_page_measurement_health", schema: "seo", table: "page_measurement_health", label: "Page Measurement Health", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
556
+ "seo_page_performance": { token: "seo_page_performance", schema: "seo", table: "page_performance", label: "Page Performance", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
557
+ "seo_provider_call": { token: "seo_provider_call", schema: "seo", table: "provider_call", label: "SEO Provider Call", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
558
+ "seo_provider_task": { token: "seo_provider_task", schema: "seo", table: "provider_task", label: "SEO Provider Task", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
559
+ "seo_rank_observation": { token: "seo_rank_observation", schema: "seo", table: "rank_observation", label: "Rank Observation", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
560
+ "seo_rank_target": { token: "seo_rank_target", schema: "seo", table: "rank_target", label: "SEO Rank Target", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
561
+ "seo_raw_payload": { token: "seo_raw_payload", schema: "seo", table: "raw_payload", label: "SEO Raw Payload", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
562
+ "seo_referring_domain_profile": { token: "seo_referring_domain_profile", schema: "seo", table: "referring_domain_profile", label: "Referring Domain Profile", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
563
+ "seo_reputation_case": { token: "seo_reputation_case", schema: "seo", table: "reputation_case", label: "Reputation Case", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
564
+ "seo_search_performance_daily": { token: "seo_search_performance_daily", schema: "seo", table: "search_performance_daily", label: "Search Performance Daily", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
565
+ "seo_serp_mention": { token: "seo_serp_mention", schema: "seo", table: "serp_mention", label: "SERP Prospect Mention", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
566
+ "seo_serp_opportunity": { token: "seo_serp_opportunity", schema: "seo", table: "serp_opportunity", label: "SERP Prospect Opportunity", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
567
+ "seo_serp_result": { token: "seo_serp_result", schema: "seo", table: "serp_result", label: "SERP Result", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
568
+ "seo_serp_snapshot": { token: "seo_serp_snapshot", schema: "seo", table: "serp_snapshot", label: "SERP Snapshot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
569
+ "seo_site_geo_area": { token: "seo_site_geo_area", schema: "seo", table: "site_geo_area", label: "Site Geo Area", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
570
+ "seo_site_keyword_offering": { token: "seo_site_keyword_offering", schema: "seo", table: "site_keyword_offering", label: "Site Keyword Offering", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
571
+ "seo_site_keyword_value": { token: "seo_site_keyword_value", schema: "seo", table: "site_keyword_value", label: "Site Keyword Value", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
572
+ "seo_site_offering_value": { token: "seo_site_offering_value", schema: "seo", table: "site_offering_value", label: "Site Offering Value", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
573
+ "seo_site_topic_value": { token: "seo_site_topic_value", schema: "seo", table: "site_topic_value", label: "Site Topic Value", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
574
+ "seo_site_value_combo": { token: "seo_site_value_combo", schema: "seo", table: "site_value_combo", label: "Site Value Combination", baseTier: 1, isComponent: true, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
575
+ "seo_site_value_worth": { token: "seo_site_value_worth", schema: "seo", table: "site_value_worth", label: "Site Value Worth", baseTier: 1, isComponent: true, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
576
+ "seo_site_vocabulary": { token: "seo_site_vocabulary", schema: "seo", table: "site_vocabulary", label: "Site Vocabulary", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
577
+ "seo_source_request": { token: "seo_source_request", schema: "seo", table: "source_request", label: "SEO Source Request", baseTier: 2, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
578
+ "seo_starter_pack": { token: "seo_starter_pack", schema: "seo", table: "starter_pack", label: "SEO Industry Starter Pack", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
579
+ "seo_starter_pack_item": { token: "seo_starter_pack_item", schema: "seo", table: "starter_pack_item", label: "SEO Starter Pack Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
580
+ "seo_story_angle": { token: "seo_story_angle", schema: "seo", table: "story_angle", label: "SEO Story Angle", baseTier: 2, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
581
+ "seo_topic": { token: "seo_topic", schema: "seo", table: "topic", label: "SEO Topic", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "seo", referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
582
+ "seo_web_analytics_daily": { token: "seo_web_analytics_daily", schema: "seo", table: "web_analytics_daily", label: "Web Analytics Daily", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "marketing", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
583
+ "shared_canvas_item": { token: "shared_canvas_item", schema: "canvas", table: "shared_canvas_items", label: "Shared Canvas Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
584
+ "skill": { token: "skill", schema: "skill", table: "definition", label: "Skill", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Skills", referencePickable: true, titleColumn: "label", contentRole: "utility", referenceCategory: null },
585
+ "skill_render_definition": { token: "skill_render_definition", schema: "skill", table: "render_definition", label: "Skill Render Definition", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Skills", referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
586
+ "sms_consent": { token: "sms_consent", schema: "communication", table: "sms_consent", label: "SMS Consent", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
587
+ "sms_conversation": { token: "sms_conversation", schema: "communication", table: "sms_conversations", label: "SMS Conversation", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
588
+ "sms_message": { token: "sms_message", schema: "communication", table: "sms_messages", label: "SMS Message", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
589
+ "sms_message_media": { token: "sms_message_media", schema: "communication", table: "sms_media", label: "SMS Media", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "file_name", contentRole: null, referenceCategory: null },
590
+ "sms_notification": { token: "sms_notification", schema: "communication", table: "sms_notifications", label: "SMS Notification", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
591
+ "sms_notification_preference": { token: "sms_notification_preference", schema: "communication", table: "sms_notification_preferences", label: "SMS Notification Preference", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
592
+ "sms_phone_number": { token: "sms_phone_number", schema: "communication", table: "sms_phone_numbers", label: "SMS Phone Number", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
593
+ "structured_list": { token: "structured_list", schema: "workbench", table: "udt_structured_lists", label: "Structured List", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "list_name", contentRole: "hybrid", referenceCategory: null },
594
+ "studio_documents": { token: "studio_documents", schema: "transcripts", table: "studio_documents", label: "Studio Document", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
595
+ "studio_recording_chunks": { token: "studio_recording_chunks", schema: "transcripts", table: "studio_recording_chunks", label: "Studio Recording Chunk", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
596
+ "studio_recording_segments": { token: "studio_recording_segments", schema: "transcripts", table: "studio_recording_segments", label: "Studio Recording Segment", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
597
+ "studio_run": { token: "studio_run", schema: "transcripts", table: "studio_runs", label: "Studio Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
598
+ "studio_session": { token: "studio_session", schema: "transcripts", table: "studio_sessions", label: "Audio Session", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: "source", referenceCategory: null },
599
+ "studio_session_settings": { token: "studio_session_settings", schema: "transcripts", table: "studio_session_settings", label: "Studio Session Settings", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
600
+ "study_attempt": { token: "study_attempt", schema: "education", table: "study_attempt", label: "Study Attempt", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
601
+ "study_goal": { token: "study_goal", schema: "education", table: "study_goal", label: "Study Goal", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
602
+ "study_media": { token: "study_media", schema: "education", table: "study_media", label: "Study Media", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
603
+ "study_plan": { token: "study_plan", schema: "education", table: "study_plan", label: "Study Plan", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
604
+ "study_plan_block": { token: "study_plan_block", schema: "education", table: "study_plan_block", label: "Study Plan Block", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
605
+ "study_plan_day": { token: "study_plan_day", schema: "education", table: "study_plan_day", label: "Study Plan Day", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
606
+ "study_reminder_context": { token: "study_reminder_context", schema: "education", table: "study_reminder_context", label: "Study Reminder Context", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
607
+ "study_reminder_delivery": { token: "study_reminder_delivery", schema: "education", table: "study_reminder_delivery", label: "Study Reminder Delivery", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
608
+ "study_session": { token: "study_session", schema: "education", table: "study_session", label: "Study Session", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
609
+ "surface": { token: "surface", schema: "ui", table: "ui_surface", label: "UI Surface", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
610
+ "system_context_item": { token: "system_context_item", schema: "context", table: "system_context_item", label: "System Context Item", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
611
+ "system_error": { token: "system_error", schema: "ops", table: "system_error", label: "System Error", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
612
+ "system_personal_org_failure": { token: "system_personal_org_failure", schema: "iam", table: "system_personal_org_failures", label: "System Personal Org Failure", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
613
+ "system_write_failure": { token: "system_write_failure", schema: "ops", table: "system_write_failure", label: "System Write Failure", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
614
+ "task": { token: "task", schema: "workspace", table: "tasks", label: "Task", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Workspaces", referencePickable: true, titleColumn: "title", contentRole: "container", referenceCategory: null },
615
+ "thread": { token: "thread", schema: "workspace", table: "threads", label: "Thread", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
616
+ "tool": { token: "tool", schema: "tool", table: "definition", label: "Tool", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
617
+ "tool_bundle": { token: "tool_bundle", schema: "tool", table: "bundle", label: "Tool Bundle", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
618
+ "tool_call": { token: "tool_call", schema: "chat", table: "tool_call", label: "Tool Call", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
619
+ "tool_definition_version": { token: "tool_definition_version", schema: "tool", table: "definition_version", label: "Tool Definition Version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
620
+ "tool_test_sample": { token: "tool_test_sample", schema: "tool", table: "test_sample", label: "Tool Test Sample", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
621
+ "tool_ui": { token: "tool_ui", schema: "tool", table: "ui", label: "Tool UI", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: false, titleColumn: "display_name", contentRole: null, referenceCategory: null },
622
+ "tool_ui_incident": { token: "tool_ui_incident", schema: "tool", table: "ui_incident", label: "Tool UI Incident", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
623
+ "tool_ui_version": { token: "tool_ui_version", schema: "tool", table: "ui_version", label: "Tool UI Version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: "Tools", referencePickable: false, titleColumn: "display_name", contentRole: null, referenceCategory: null },
624
+ "transcript": { token: "transcript", schema: "transcripts", table: "transcripts", label: "Transcript", baseTier: 1, isComponent: false, isModule: true, isListed: false, scopeable: true, category: "Sources", referencePickable: true, titleColumn: "title", contentRole: "source", referenceCategory: null },
625
+ "udt_dataset_fields": { token: "udt_dataset_fields", schema: "workbench", table: "udt_dataset_fields", label: "Dataset Field", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "display_name", contentRole: null, referenceCategory: null },
626
+ "udt_dataset_rows": { token: "udt_dataset_rows", schema: "workbench", table: "udt_dataset_rows", label: "Dataset Row", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
627
+ "udt_document": { token: "udt_document", schema: "workbench", table: "udt_documents", label: "Document", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "document_name", contentRole: "hybrid", referenceCategory: null },
628
+ "udt_structured_list_items": { token: "udt_structured_list_items", schema: "workbench", table: "udt_structured_list_items", label: "Structured List Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
629
+ "ui_surface_agent_pref": { token: "ui_surface_agent_pref", schema: "ui", table: "ui_surface_agent_pref", label: "UI Surface Agent Pref", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
630
+ "ui_surface_config": { token: "ui_surface_config", schema: "ui", table: "ui_surface_config", label: "UI Surface Config", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
631
+ "user_achievement": { token: "user_achievement", schema: "users", table: "user_achievements", label: "User Achievement", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
632
+ "user_analysis_preference": { token: "user_analysis_preference", schema: "users", table: "user_analysis_preferences", label: "User Analysis Preference", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
633
+ "user_bookmark": { token: "user_bookmark", schema: "users", table: "user_bookmarks", label: "User Bookmark", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
634
+ "user_email_preference": { token: "user_email_preference", schema: "users", table: "user_email_preferences", label: "User Email Preference", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
635
+ "user_feedback": { token: "user_feedback", schema: "users", table: "user_feedback", label: "User Feedback", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
636
+ "user_form_profile": { token: "user_form_profile", schema: "users", table: "user_form_profile", label: "User Form Profile", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
637
+ "user_markdown_sample": { token: "user_markdown_sample", schema: "users", table: "user_markdown_samples", label: "User Markdown Sample", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
638
+ "user_memory": { token: "user_memory", schema: "users", table: "user_memory", label: "User Memory", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
639
+ "user_preference": { token: "user_preference", schema: "users", table: "user_preferences", label: "User Preference", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
640
+ "user_profile": { token: "user_profile", schema: "users", table: "profiles", label: "User Profile", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "display_name", contentRole: null, referenceCategory: null },
641
+ "user_stat": { token: "user_stat", schema: "users", table: "user_stats", label: "User Stats", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
642
+ "user_surface_state": { token: "user_surface_state", schema: "users", table: "user_surface_state", label: "User Surface State", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
643
+ "voice": { token: "voice", schema: "ai", table: "voices", label: "Voice", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
644
+ "war_room": { token: "war_room", schema: "workspace", table: "war_rooms", label: "War Room", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
645
+ "wbx_capture": { token: "wbx_capture", schema: "extend", table: "wbx_capture", label: "Extension Web Capture", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "title", contentRole: null, referenceCategory: null },
646
+ "wbx_guidance": { token: "wbx_guidance", schema: "extend", table: "wbx_guidance", label: "Extension Guidance", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
647
+ "wbx_highlight": { token: "wbx_highlight", schema: "extend", table: "wbx_highlight", label: "Extension Highlight", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
648
+ "wbx_pattern": { token: "wbx_pattern", schema: "extend", table: "wbx_pattern", label: "Extension Scrape Pattern", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
649
+ "wbx_screenshot": { token: "wbx_screenshot", schema: "extend", table: "wbx_screenshot", label: "Extension Screenshot", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
650
+ "wbx_seo_audit": { token: "wbx_seo_audit", schema: "extend", table: "wbx_seo_audit", label: "Extension SEO Audit", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
651
+ "wc_claim": { token: "wc_claim", schema: "legal", table: "wc_claim", label: "WC Claim", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
652
+ "wc_impairment_definition": { token: "wc_impairment_definition", schema: "legal", table: "wc_impairment_definition", label: "WC Impairment Definition", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
653
+ "wc_injury": { token: "wc_injury", schema: "legal", table: "wc_injury", label: "WC Injury", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
654
+ "wc_report": { token: "wc_report", schema: "legal", table: "wc_report", label: "WC Report", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
655
+ "web_analysis_item": { token: "web_analysis_item", schema: "web", table: "analysis_item", label: "Analysis Item", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
656
+ "web_brand": { token: "web_brand", schema: "web", table: "brand", label: "Brand", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
657
+ "web_brand_asset": { token: "web_brand_asset", schema: "web", table: "brand_asset", label: "Brand Asset", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: null, referenceCategory: null },
658
+ "web_brand_offering": { token: "web_brand_offering", schema: "web", table: "brand_offering", label: "Brand Offering", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
659
+ "web_business_fact": { token: "web_business_fact", schema: "web", table: "business_fact", label: "Business Fact", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "label", contentRole: null, referenceCategory: null },
660
+ "web_business_location": { token: "web_business_location", schema: "web", table: "business_location", label: "Business Location", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
661
+ "web_crawl_event": { token: "web_crawl_event", schema: "web", table: "crawl_event", label: "Web Crawl Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
662
+ "web_crawl_preset": { token: "web_crawl_preset", schema: "web", table: "crawl_preset", label: "Web Crawl Preset", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
663
+ "web_crawl_schedule": { token: "web_crawl_schedule", schema: "web", table: "crawl_schedule", label: "Web Crawl Schedule", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
664
+ "web_crawl_session": { token: "web_crawl_session", schema: "web", table: "crawl_session", label: "Crawl Session", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
665
+ "web_crawl_url": { token: "web_crawl_url", schema: "web", table: "crawl_url", label: "Web Crawl URL", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
666
+ "web_discovered_item": { token: "web_discovered_item", schema: "web", table: "discovered_item", label: "Discovered Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
667
+ "web_finding": { token: "web_finding", schema: "web", table: "finding", label: "Finding", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
668
+ "web_gsc_page_stat": { token: "web_gsc_page_stat", schema: "web", table: "gsc_page_stat", label: "GSC Page Stat", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
669
+ "web_link_edge": { token: "web_link_edge", schema: "web", table: "link_edge", label: "Link Edge", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
670
+ "web_listing_publisher": { token: "web_listing_publisher", schema: "web", table: "listing_publisher", label: "Listing Publisher", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
671
+ "web_location_listing": { token: "web_location_listing", schema: "web", table: "location_listing", label: "Location Listing", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
672
+ "web_offering_template": { token: "web_offering_template", schema: "web", table: "offering_template", label: "Offering Template", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
673
+ "web_page": { token: "web_page", schema: "web", table: "page", label: "Canonical Page", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "url", contentRole: "source", referenceCategory: null },
674
+ "web_page_content": { token: "web_page_content", schema: "web", table: "page_content", label: "Page Draft Content", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
675
+ "web_page_evidence": { token: "web_page_evidence", schema: "web", table: "page_evidence", label: "Web Page Evidence", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
676
+ "web_page_sitemap": { token: "web_page_sitemap", schema: "web", table: "page_sitemap", label: "Page Sitemap Membership", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
677
+ "web_property": { token: "web_property", schema: "web", table: "property", label: "Brand Property", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "display_name", contentRole: null, referenceCategory: null },
678
+ "web_provider": { token: "web_provider", schema: "web", table: "provider", label: "Provider", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "label", contentRole: null, referenceCategory: null },
679
+ "web_result": { token: "web_result", schema: "web", table: "analysis_result", label: "Analysis Result", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
680
+ "web_screenshot": { token: "web_screenshot", schema: "web", table: "screenshot", label: "Screenshot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
681
+ "web_site": { token: "web_site", schema: "web", table: "site", label: "Site", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
682
+ "web_site_endpoint_rule": { token: "web_site_endpoint_rule", schema: "web", table: "site_endpoint_rule", label: "Site Endpoint Rule", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "path_prefix", contentRole: null, referenceCategory: null },
683
+ "web_site_item_config": { token: "web_site_item_config", schema: "web", table: "site_item_config", label: "Site Item Config", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
684
+ "web_site_offering": { token: "web_site_offering", schema: "web", table: "site_offering", label: "Site Offering", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
685
+ "web_sitemap": { token: "web_sitemap", schema: "web", table: "sitemap", label: "Sitemap", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "url", contentRole: null, referenceCategory: null },
686
+ "web_snapshot": { token: "web_snapshot", schema: "web", table: "snapshot", label: "Snapshot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
687
+ "wf_node_data_slot": { token: "wf_node_data_slot", schema: "workflow", table: "node_data_slot", label: "Workflow Node Data Slot", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
688
+ "work_item": { token: "work_item", schema: "runtime", table: "work_item", label: "Runtime Work Item", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
689
+ "workbook": { token: "workbook", schema: "workbench", table: "udt_workbooks", label: "Workbook", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: true, titleColumn: "description", contentRole: "hybrid", referenceCategory: null },
690
+ "workflow": { token: "workflow", schema: "workflow", table: "definition", label: "Workflow", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: "utility", referenceCategory: null },
691
+ "workflow_card": { token: "workflow_card", schema: "workflow", table: "card", label: "Workflow Card", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
692
+ "workflow_checkpoint": { token: "workflow_checkpoint", schema: "workflow", table: "checkpoint", label: "Workflow Checkpoint", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
693
+ "workflow_definition_version": { token: "workflow_definition_version", schema: "workflow", table: "definition_version", label: "Workflow Definition Version", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "name", contentRole: null, referenceCategory: null },
694
+ "workflow_idempotency": { token: "workflow_idempotency", schema: "workflow", table: "idempotency", label: "Workflow Idempotency", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
695
+ "workflow_job": { token: "workflow_job", schema: "workflow", table: "job", label: "Workflow Job", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
696
+ "workflow_node_events": { token: "workflow_node_events", schema: "workflow", table: "node_events", label: "Workflow Node Events", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
697
+ "workflow_node_outcome": { token: "workflow_node_outcome", schema: "workflow", table: "node_outcome", label: "Workflow Node Outcome", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
698
+ "workflow_plan": { token: "workflow_plan", schema: "workflow", table: "plan", label: "Workflow Plan", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
699
+ "workflow_plan_event": { token: "workflow_plan_event", schema: "workflow", table: "plan_event", label: "Workflow Plan Event", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
700
+ "workflow_plan_sample": { token: "workflow_plan_sample", schema: "workflow", table: "plan_sample", label: "Workflow Plan Sample", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: false, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
701
+ "workflow_recovery_audit": { token: "workflow_recovery_audit", schema: "workflow", table: "recovery_audit", label: "Workflow Recovery Audit", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
702
+ "workflow_run": { token: "workflow_run", schema: "workflow", table: "run", label: "Workflow Run", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
703
+ "workflow_run_log": { token: "workflow_run_log", schema: "workflow", table: "run_log", label: "Workflow Run Log", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
704
+ "workflow_runtime_surface": { token: "workflow_runtime_surface", schema: "workflow", table: "runtime_surface", label: "Run Surface", baseTier: 1, isComponent: false, isModule: false, isListed: true, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
705
+ "workflow_template": { token: "workflow_template", schema: "workflow", table: "template", label: "Workflow Template", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
706
+ "workflow_trigger": { token: "workflow_trigger", schema: "workflow", table: "trigger", label: "Workflow Trigger", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: true, titleColumn: "name", contentRole: null, referenceCategory: null },
707
+ "workflow_trigger_fire": { token: "workflow_trigger_fire", schema: "workflow", table: "trigger_fire", label: "Workflow Trigger Fire", baseTier: 1, isComponent: true, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
708
+ "working_document": { token: "working_document", schema: "workbench", table: "working_documents", label: "Working Documents", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: false, category: "Conversations", referencePickable: true, titleColumn: "title", contentRole: "destination", referenceCategory: null },
709
+ "youtube_search": { token: "youtube_search", schema: "research", table: "youtube_search", label: "YouTube Search", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: null, contentRole: null, referenceCategory: null },
710
+ "youtube_video": { token: "youtube_video", schema: "research", table: "youtube_video", label: "YouTube Video", baseTier: 1, isComponent: false, isModule: false, isListed: false, scopeable: true, category: null, referencePickable: false, titleColumn: "title", contentRole: "source", referenceCategory: null }
711
+ };
712
+ var ENTITY_TYPE_TOKENS = [
713
+ "access_request",
714
+ "activity",
715
+ "agent",
716
+ "agent_card",
717
+ "agent_definition_version",
718
+ "agent_drift_alert",
719
+ "agent_exemplar",
720
+ "agent_mandate_note",
721
+ "agent_prompt_remediation",
722
+ "agent_run",
723
+ "agent_run_stage",
724
+ "agent_shortcut",
725
+ "agent_surface_binding",
726
+ "agent_template",
727
+ "agent_usage",
728
+ "ai_api",
729
+ "ai_endpoint",
730
+ "ai_model",
731
+ "ai_model_alias",
732
+ "ai_offering",
733
+ "ai_provider",
734
+ "ai_setting",
735
+ "app",
736
+ "app_definition_version",
737
+ "app_error",
738
+ "app_execution",
739
+ "app_instance",
740
+ "app_log",
741
+ "app_rate_limit",
742
+ "app_setting",
743
+ "app_sync_status",
744
+ "approach",
745
+ "artifact",
746
+ "assessment",
747
+ "assessment_item",
748
+ "assessment_result",
749
+ "assist",
750
+ "batch_cost_event",
751
+ "batch_provider_batch",
752
+ "batch_work_item",
753
+ "browser_account_binding",
754
+ "browser_action_event",
755
+ "browser_authenticator_window",
756
+ "browser_capture",
757
+ "browser_control_request",
758
+ "browser_handoff",
759
+ "browser_login_attempt",
760
+ "browser_login_recipe",
761
+ "browser_profile",
762
+ "browser_profile_checkpoint",
763
+ "browser_run",
764
+ "browser_site_observation",
765
+ "browser_site_policy",
766
+ "browser_stream_ticket",
767
+ "canvas_comment",
768
+ "canvas_comment_like",
769
+ "canvas_item",
770
+ "canvas_item_state",
771
+ "canvas_like",
772
+ "canvas_score",
773
+ "canvas_view",
774
+ "category",
775
+ "cmp_entry",
776
+ "cmp_feedback",
777
+ "code_file",
778
+ "code_folder",
779
+ "code_repository",
780
+ "coding_session",
781
+ "coding_session_entry",
782
+ "comment",
783
+ "commerce_asset_allocation",
784
+ "commerce_asset_grading",
785
+ "commerce_asset_identifier",
786
+ "commerce_asset_lot_event",
787
+ "commerce_asset_mandate_result",
788
+ "commerce_asset_price_factor",
789
+ "commerce_asset_reshoot_request",
790
+ "commerce_asset_review",
791
+ "commerce_asset_unknown",
792
+ "commerce_cloud_sync_connection",
793
+ "commerce_ebay_business_policy",
794
+ "commerce_ebay_category",
795
+ "commerce_ebay_category_aspect",
796
+ "commerce_ebay_category_tree",
797
+ "commerce_ebay_custom_policy",
798
+ "commerce_ebay_inventory_item",
799
+ "commerce_ebay_inventory_item_group",
800
+ "commerce_ebay_inventory_item_group_member",
801
+ "commerce_ebay_inventory_location",
802
+ "commerce_ebay_listing",
803
+ "commerce_ebay_marketplace_policy",
804
+ "commerce_ebay_media_asset",
805
+ "commerce_ebay_notification_destination",
806
+ "commerce_ebay_notification_event",
807
+ "commerce_ebay_notification_subscription",
808
+ "commerce_ebay_notification_topic",
809
+ "commerce_ebay_offer",
810
+ "commerce_ebay_order",
811
+ "commerce_ebay_order_line_item",
812
+ "commerce_ebay_shipping_fulfillment",
813
+ "commerce_ebay_store_category",
814
+ "commerce_human_correction",
815
+ "commerce_intake_artifact",
816
+ "commerce_intake_asset",
817
+ "commerce_intake_batch",
818
+ "commerce_label_batch",
819
+ "commerce_label_code",
820
+ "commerce_marketplace_account",
821
+ "commerce_marketplace_account_deletion_audit",
822
+ "commerce_marketplace_api_call",
823
+ "commerce_marketplace_rate_budget",
824
+ "commerce_marketplace_site",
825
+ "commerce_marketplace_sync_run",
826
+ "commerce_prediction_outcome",
827
+ "commerce_product",
828
+ "commerce_product_channel_ref",
829
+ "commerce_product_media",
830
+ "commerce_product_variant",
831
+ "commerce_recall_audit",
832
+ "comparison_set",
833
+ "contact_medium",
834
+ "contact_submission",
835
+ "content_ir_kind",
836
+ "content_ir_kind_component",
837
+ "content_ir_kind_component_incident",
838
+ "content_ir_kind_conformance",
839
+ "content_ir_kind_edge",
840
+ "content_ir_kind_example",
841
+ "content_ir_kind_instance",
842
+ "content_ir_kind_surface",
843
+ "context_item",
844
+ "context_item_suggestion",
845
+ "conversation",
846
+ "conversation_value",
847
+ "crm_address",
848
+ "crm_affiliation",
849
+ "crm_blocklist_entry",
850
+ "crm_contact_candidate",
851
+ "crm_deal",
852
+ "crm_deal_stage_event",
853
+ "crm_enrichment_call",
854
+ "crm_interaction",
855
+ "crm_merge_candidate",
856
+ "crm_outreach_list",
857
+ "crm_outreach_list_member",
858
+ "crm_party_merge",
859
+ "crm_registry_ingest_run",
860
+ "crm_registry_source",
861
+ "crm_saved_view",
862
+ "crm_sending_event",
863
+ "crm_sending_identity",
864
+ "crm_sending_identity_check",
865
+ "crm_sending_policy",
866
+ "custom_entity_definition",
867
+ "custom_field_definition",
868
+ "custom_field_target",
869
+ "custom_record",
870
+ "cx_agent_memory",
871
+ "cx_agent_plan",
872
+ "cx_agent_task",
873
+ "cx_code_edit",
874
+ "cx_code_message_file",
875
+ "cx_media",
876
+ "cx_observational_memory",
877
+ "cx_observational_memory_event",
878
+ "cx_pending_injection",
879
+ "cx_request",
880
+ "cx_request_snapshot",
881
+ "cx_tool_trace",
882
+ "cx_user_request",
883
+ "cx_user_todo",
884
+ "data_store",
885
+ "dataset",
886
+ "derive_run",
887
+ "dict_setting",
888
+ "dm_conversation",
889
+ "dm_message",
890
+ "dm_participant",
891
+ "domain_classification",
892
+ "esign_campaign",
893
+ "esign_campaign_member",
894
+ "esign_consent_disclosure",
895
+ "esign_envelope",
896
+ "esign_envelope_certificate",
897
+ "esign_envelope_document",
898
+ "esign_envelope_event",
899
+ "esign_envelope_external_ref",
900
+ "esign_envelope_signer",
901
+ "esign_provider",
902
+ "esign_provider_binding",
903
+ "esign_signing_key",
904
+ "fc_card",
905
+ "fc_detail",
906
+ "fc_set",
907
+ "feature_doc",
908
+ "file",
909
+ "file_analysis",
910
+ "file_entities",
911
+ "file_overrides",
912
+ "file_page_annotations",
913
+ "file_pages",
914
+ "file_version",
915
+ "flexible_data",
916
+ "folder",
917
+ "game_badge",
918
+ "game_result",
919
+ "game_room",
920
+ "global_execution",
921
+ "global_execution_checkpoint",
922
+ "global_execution_event",
923
+ "global_meter_entry",
924
+ "global_origin",
925
+ "global_request",
926
+ "growth_loop_event",
927
+ "growth_loop_run",
928
+ "growth_loop_stage_run",
929
+ "guided_checklist_run",
930
+ "heatmap_save",
931
+ "hindsight_enrollment",
932
+ "hindsight_finding",
933
+ "hindsight_regression_case",
934
+ "hindsight_replay",
935
+ "hindsight_replay_step",
936
+ "hindsight_review",
937
+ "hr_access_audit",
938
+ "hr_access_role",
939
+ "hr_accommodation_request",
940
+ "hr_ai_evidence",
941
+ "hr_alert_routing_rule",
942
+ "hr_application",
943
+ "hr_approval_authority",
944
+ "hr_approval_delegation",
945
+ "hr_asset",
946
+ "hr_asset_assignment",
947
+ "hr_attendance_exception",
948
+ "hr_auto_close_rule",
949
+ "hr_availability",
950
+ "hr_background_check",
951
+ "hr_benefits_event",
952
+ "hr_calculation_snapshot",
953
+ "hr_candidate",
954
+ "hr_candidate_conversion",
955
+ "hr_candidate_message",
956
+ "hr_careers_portal",
957
+ "hr_checklist_item",
958
+ "hr_checklist_run",
959
+ "hr_checklist_template",
960
+ "hr_checklist_template_item",
961
+ "hr_compensation",
962
+ "hr_corrective_action",
963
+ "hr_course",
964
+ "hr_course_version",
965
+ "hr_credential",
966
+ "hr_crew",
967
+ "hr_deduction_code",
968
+ "hr_department",
969
+ "hr_derived_grant",
970
+ "hr_disposition_event",
971
+ "hr_earning_code",
972
+ "hr_eeo_response",
973
+ "hr_emergency_contact",
974
+ "hr_employee",
975
+ "hr_employee_private",
976
+ "hr_employer_profile",
977
+ "hr_employment",
978
+ "hr_employment_pin",
979
+ "hr_engagement",
980
+ "hr_establishment",
981
+ "hr_external_identity",
982
+ "hr_field_policy",
983
+ "hr_holiday",
984
+ "hr_holiday_calendar",
985
+ "hr_i9",
986
+ "hr_i9_document",
987
+ "hr_incident",
988
+ "hr_incident_party",
989
+ "hr_interview",
990
+ "hr_interview_kit",
991
+ "hr_job_title",
992
+ "hr_jurisdiction",
993
+ "hr_jurisdiction_rule",
994
+ "hr_jurisdiction_rule_class",
995
+ "hr_jurisdiction_rule_org_decision",
996
+ "hr_jurisdiction_rule_test",
997
+ "hr_kiosk_device",
998
+ "hr_kiosk_session",
999
+ "hr_labor_target",
1000
+ "hr_leave_case",
1001
+ "hr_leave_enrollment",
1002
+ "hr_leave_ledger",
1003
+ "hr_leave_policy",
1004
+ "hr_leave_request",
1005
+ "hr_legal_hold",
1006
+ "hr_legal_hold_item",
1007
+ "hr_location",
1008
+ "hr_new_hire_report",
1009
+ "hr_offer",
1010
+ "hr_opening",
1011
+ "hr_overtime_alert",
1012
+ "hr_overtime_alert_rule",
1013
+ "hr_overtime_preapproval",
1014
+ "hr_pay_group",
1015
+ "hr_pay_period",
1016
+ "hr_pay_period_employment",
1017
+ "hr_payroll_export",
1018
+ "hr_payroll_export_line",
1019
+ "hr_position_assignment",
1020
+ "hr_posting",
1021
+ "hr_posting_publication",
1022
+ "hr_provider_binding",
1023
+ "hr_provider_event",
1024
+ "hr_provisioning_result",
1025
+ "hr_punch",
1026
+ "hr_recalculation_batch",
1027
+ "hr_record_class",
1028
+ "hr_records_request",
1029
+ "hr_reference_check",
1030
+ "hr_reporting_line",
1031
+ "hr_requisition",
1032
+ "hr_restricted_note",
1033
+ "hr_retention_rule",
1034
+ "hr_role_assignment",
1035
+ "hr_schedule",
1036
+ "hr_schedule_change",
1037
+ "hr_schedule_guidance",
1038
+ "hr_schedule_template",
1039
+ "hr_schedule_template_shift",
1040
+ "hr_scorecard",
1041
+ "hr_separation",
1042
+ "hr_shift",
1043
+ "hr_shift_claim",
1044
+ "hr_staffing_requirement",
1045
+ "hr_survey",
1046
+ "hr_survey_invitation",
1047
+ "hr_survey_question",
1048
+ "hr_survey_response",
1049
+ "hr_tax_registration",
1050
+ "hr_tax_withholding",
1051
+ "hr_time_adjustment",
1052
+ "hr_training_assignment",
1053
+ "hr_training_attempt",
1054
+ "hr_transcript_entry",
1055
+ "hr_verification_letter_request",
1056
+ "hr_work_interval",
1057
+ "hr_workflow_binding",
1058
+ "hr_workflow_decision",
1059
+ "hr_workflow_definition",
1060
+ "hr_workflow_event",
1061
+ "hr_workflow_failure",
1062
+ "hr_workflow_flow_type",
1063
+ "hr_workflow_instance",
1064
+ "hr_workflow_step",
1065
+ "hr_workflow_step_definition",
1066
+ "hr_workweek",
1067
+ "iam_api_key",
1068
+ "industry_curator",
1069
+ "interview_document_revision",
1070
+ "interview_hole",
1071
+ "interview_question",
1072
+ "interview_session",
1073
+ "interview_turn",
1074
+ "invitation",
1075
+ "invitation_code",
1076
+ "invitation_request",
1077
+ "item_mastery",
1078
+ "judge_verdict",
1079
+ "kg_alert",
1080
+ "kg_suggestion_ack",
1081
+ "kg_sweep_queue",
1082
+ "kg_sweep_run",
1083
+ "kg_sweep_state",
1084
+ "kg_value_match",
1085
+ "league_membership",
1086
+ "learn_doc",
1087
+ "library_doc",
1088
+ "mandate",
1089
+ "mandate_binding",
1090
+ "mandate_treatment",
1091
+ "marketing_initiative",
1092
+ "masterwork_corpus_item",
1093
+ "masterwork_run",
1094
+ "membership",
1095
+ "message",
1096
+ "message_template",
1097
+ "ner_shadow",
1098
+ "note",
1099
+ "note_folder",
1100
+ "notification",
1101
+ "notification_channel_preference",
1102
+ "notification_event_override",
1103
+ "notification_event_type",
1104
+ "notification_preference",
1105
+ "ops_issue_event",
1106
+ "ops_proof_check",
1107
+ "ops_proof_run",
1108
+ "ops_proof_scenario",
1109
+ "organization",
1110
+ "output_feedback",
1111
+ "page_extraction_job",
1112
+ "page_extraction_page_run",
1113
+ "party",
1114
+ "party_contact_point",
1115
+ "pc_article",
1116
+ "pc_episode",
1117
+ "pc_show",
1118
+ "pc_studio_run",
1119
+ "pc_studio_run_asset",
1120
+ "pdf_redaction_audit",
1121
+ "plan_cms_fill_item",
1122
+ "plan_cms_fill_job",
1123
+ "plan_entity",
1124
+ "plan_node",
1125
+ "plan_node_artifact",
1126
+ "plan_node_step",
1127
+ "plan_profile",
1128
+ "platform_actor_session",
1129
+ "platform_actor_token",
1130
+ "platform_actor_token_event",
1131
+ "platform_outcome_event",
1132
+ "platform_outsider_consumer",
1133
+ "platform_saved_view",
1134
+ "podcast_race",
1135
+ "processed_document",
1136
+ "processed_document_page",
1137
+ "product_capture_file",
1138
+ "product_capture_item",
1139
+ "product_capture_payload",
1140
+ "product_capture_product",
1141
+ "product_capture_question",
1142
+ "project",
1143
+ "provision",
1144
+ "purpose",
1145
+ "quiz_session",
1146
+ "rag_ingest_run",
1147
+ "redaction_mapping",
1148
+ "research_analysis",
1149
+ "research_content",
1150
+ "research_context_bundle",
1151
+ "research_document",
1152
+ "research_keyword",
1153
+ "research_media",
1154
+ "research_source",
1155
+ "research_synthesis",
1156
+ "research_tag",
1157
+ "research_template",
1158
+ "research_topic",
1159
+ "rulebook",
1160
+ "sandbox_instance",
1161
+ "sch_agent_task",
1162
+ "sch_run",
1163
+ "sch_task",
1164
+ "sch_trigger",
1165
+ "scope",
1166
+ "scope_association_suggestion",
1167
+ "scope_item_value_suggestion",
1168
+ "scope_suggestion",
1169
+ "scope_type",
1170
+ "seo_ai_visibility_citation",
1171
+ "seo_ai_visibility_claim",
1172
+ "seo_ai_visibility_panel",
1173
+ "seo_ai_visibility_response",
1174
+ "seo_ai_visibility_signal",
1175
+ "seo_backlink",
1176
+ "seo_backlink_change_event",
1177
+ "seo_backlink_dimension_snapshot",
1178
+ "seo_backlink_observation",
1179
+ "seo_backlink_snapshot",
1180
+ "seo_change_assessment",
1181
+ "seo_change_event",
1182
+ "seo_change_item",
1183
+ "seo_change_metric",
1184
+ "seo_change_set",
1185
+ "seo_change_theory",
1186
+ "seo_collection_run",
1187
+ "seo_competitor",
1188
+ "seo_competitor_observation",
1189
+ "seo_competitor_opportunity",
1190
+ "seo_coverage_mention",
1191
+ "seo_coverage_tracker",
1192
+ "seo_dimension_value_matcher",
1193
+ "seo_engine_schedule",
1194
+ "seo_geo_place",
1195
+ "seo_gsc_dig_rule",
1196
+ "seo_keyword",
1197
+ "seo_keyword_class_rule",
1198
+ "seo_keyword_edge",
1199
+ "seo_keyword_facet",
1200
+ "seo_keyword_market",
1201
+ "seo_keyword_market_observation",
1202
+ "seo_keyword_place",
1203
+ "seo_keyword_saved_view",
1204
+ "seo_keyword_topic",
1205
+ "seo_landscape_brief",
1206
+ "seo_link_gap_domain",
1207
+ "seo_link_gap_match",
1208
+ "seo_page_measurement_health",
1209
+ "seo_page_performance",
1210
+ "seo_provider_call",
1211
+ "seo_provider_task",
1212
+ "seo_rank_observation",
1213
+ "seo_rank_target",
1214
+ "seo_raw_payload",
1215
+ "seo_referring_domain_profile",
1216
+ "seo_reputation_case",
1217
+ "seo_search_performance_daily",
1218
+ "seo_serp_mention",
1219
+ "seo_serp_opportunity",
1220
+ "seo_serp_result",
1221
+ "seo_serp_snapshot",
1222
+ "seo_site_geo_area",
1223
+ "seo_site_keyword_offering",
1224
+ "seo_site_keyword_value",
1225
+ "seo_site_offering_value",
1226
+ "seo_site_topic_value",
1227
+ "seo_site_value_combo",
1228
+ "seo_site_value_worth",
1229
+ "seo_site_vocabulary",
1230
+ "seo_source_request",
1231
+ "seo_starter_pack",
1232
+ "seo_starter_pack_item",
1233
+ "seo_story_angle",
1234
+ "seo_topic",
1235
+ "seo_web_analytics_daily",
1236
+ "shared_canvas_item",
1237
+ "skill",
1238
+ "skill_render_definition",
1239
+ "sms_consent",
1240
+ "sms_conversation",
1241
+ "sms_message",
1242
+ "sms_message_media",
1243
+ "sms_notification",
1244
+ "sms_notification_preference",
1245
+ "sms_phone_number",
1246
+ "structured_list",
1247
+ "studio_documents",
1248
+ "studio_recording_chunks",
1249
+ "studio_recording_segments",
1250
+ "studio_run",
1251
+ "studio_session",
1252
+ "studio_session_settings",
1253
+ "study_attempt",
1254
+ "study_goal",
1255
+ "study_media",
1256
+ "study_plan",
1257
+ "study_plan_block",
1258
+ "study_plan_day",
1259
+ "study_reminder_context",
1260
+ "study_reminder_delivery",
1261
+ "study_session",
1262
+ "surface",
1263
+ "system_context_item",
1264
+ "system_error",
1265
+ "system_personal_org_failure",
1266
+ "system_write_failure",
1267
+ "task",
1268
+ "thread",
1269
+ "tool",
1270
+ "tool_bundle",
1271
+ "tool_call",
1272
+ "tool_definition_version",
1273
+ "tool_test_sample",
1274
+ "tool_ui",
1275
+ "tool_ui_incident",
1276
+ "tool_ui_version",
1277
+ "transcript",
1278
+ "udt_dataset_fields",
1279
+ "udt_dataset_rows",
1280
+ "udt_document",
1281
+ "udt_structured_list_items",
1282
+ "ui_surface_agent_pref",
1283
+ "ui_surface_config",
1284
+ "user_achievement",
1285
+ "user_analysis_preference",
1286
+ "user_bookmark",
1287
+ "user_email_preference",
1288
+ "user_feedback",
1289
+ "user_form_profile",
1290
+ "user_markdown_sample",
1291
+ "user_memory",
1292
+ "user_preference",
1293
+ "user_profile",
1294
+ "user_stat",
1295
+ "user_surface_state",
1296
+ "voice",
1297
+ "war_room",
1298
+ "wbx_capture",
1299
+ "wbx_guidance",
1300
+ "wbx_highlight",
1301
+ "wbx_pattern",
1302
+ "wbx_screenshot",
1303
+ "wbx_seo_audit",
1304
+ "wc_claim",
1305
+ "wc_impairment_definition",
1306
+ "wc_injury",
1307
+ "wc_report",
1308
+ "web_analysis_item",
1309
+ "web_brand",
1310
+ "web_brand_asset",
1311
+ "web_brand_offering",
1312
+ "web_business_fact",
1313
+ "web_business_location",
1314
+ "web_crawl_event",
1315
+ "web_crawl_preset",
1316
+ "web_crawl_schedule",
1317
+ "web_crawl_session",
1318
+ "web_crawl_url",
1319
+ "web_discovered_item",
1320
+ "web_finding",
1321
+ "web_gsc_page_stat",
1322
+ "web_link_edge",
1323
+ "web_listing_publisher",
1324
+ "web_location_listing",
1325
+ "web_offering_template",
1326
+ "web_page",
1327
+ "web_page_content",
1328
+ "web_page_evidence",
1329
+ "web_page_sitemap",
1330
+ "web_property",
1331
+ "web_provider",
1332
+ "web_result",
1333
+ "web_screenshot",
1334
+ "web_site",
1335
+ "web_site_endpoint_rule",
1336
+ "web_site_item_config",
1337
+ "web_site_offering",
1338
+ "web_sitemap",
1339
+ "web_snapshot",
1340
+ "wf_node_data_slot",
1341
+ "work_item",
1342
+ "workbook",
1343
+ "workflow",
1344
+ "workflow_card",
1345
+ "workflow_checkpoint",
1346
+ "workflow_definition_version",
1347
+ "workflow_idempotency",
1348
+ "workflow_job",
1349
+ "workflow_node_events",
1350
+ "workflow_node_outcome",
1351
+ "workflow_plan",
1352
+ "workflow_plan_event",
1353
+ "workflow_plan_sample",
1354
+ "workflow_recovery_audit",
1355
+ "workflow_run",
1356
+ "workflow_run_log",
1357
+ "workflow_runtime_surface",
1358
+ "workflow_template",
1359
+ "workflow_trigger",
1360
+ "workflow_trigger_fire",
1361
+ "working_document",
1362
+ "youtube_search",
1363
+ "youtube_video"
1364
+ ];
1365
+ var ENTITY_TYPE_TOKEN_SET = new Set(ENTITY_TYPE_TOKENS);
1366
+ function isEntityTypeToken(value) {
1367
+ return typeof value === "string" && ENTITY_TYPE_TOKEN_SET.has(value);
1368
+ }
1369
+
1370
+ // src/core/guards.ts
1371
+ var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1372
+ function isUuid(value) {
1373
+ return typeof value === "string" && UUID_RE.test(value);
1374
+ }
1375
+ function show(value) {
1376
+ if (typeof value === "string") return JSON.stringify(value);
1377
+ if (value === null || value === void 0) return String(value);
1378
+ return JSON.stringify(value);
1379
+ }
1380
+ var LEGACY_ENTITY_TOKEN_ALIASES = {
1381
+ cx_message: "message",
1382
+ // chat.message
1383
+ cx_conversation: "conversation",
1384
+ // chat.conversation
1385
+ user_file: "file",
1386
+ // files.files (mirrors war-room entityToSource)
1387
+ agent_app: "app",
1388
+ // app.definition
1389
+ // chat_block: a "block" is a slice of a chat message — the edge's id IS the
1390
+ // message id (metadata.block_index carries the slice), so it maps to message.
1391
+ chat_block: "message"
1392
+ };
1393
+ function firstError(...checks) {
1394
+ for (const c of checks) if (c) return c;
1395
+ return null;
1396
+ }
1397
+ function createAssociationGuards(errorSink) {
1398
+ function invalid(field, value, reason) {
1399
+ const message = `association ${field} ${reason} (got ${show(value)})`;
1400
+ errorSink({
1401
+ code: "invalid_argument",
1402
+ message: `[associations] invalid argument \u2014 ${message}`,
1403
+ context: { field }
1404
+ });
1405
+ return { code: "invalid_argument", message };
1406
+ }
1407
+ return {
1408
+ checkUuid(field, value) {
1409
+ return isUuid(value) ? null : invalid(field, value, "must be a UUID");
1410
+ },
1411
+ checkUuidArray(field, values) {
1412
+ for (let i = 0; i < values.length; i++) {
1413
+ if (!isUuid(values[i]))
1414
+ return invalid(`${field}[${i}]`, values[i], "must be a UUID");
1415
+ }
1416
+ return null;
1417
+ },
1418
+ checkToken(field, value) {
1419
+ if (typeof value !== "string" || value.length === 0)
1420
+ return invalid(field, value, "must be a non-empty entity-type token");
1421
+ if (!isEntityTypeToken(value))
1422
+ return invalid(
1423
+ field,
1424
+ value,
1425
+ "is not a registered entity type (platform.entity_types) \u2014 add it to the registry + upgrade @ai-matrx/associations, never guess a token"
1426
+ );
1427
+ return null;
1428
+ },
1429
+ normalizeEntityToken(value) {
1430
+ const canonical = LEGACY_ENTITY_TOKEN_ALIASES[value];
1431
+ if (canonical) {
1432
+ errorSink({
1433
+ code: "legacy_token_alias",
1434
+ message: `[associations] phantom entity token ${JSON.stringify(value)} mapped to canonical ${JSON.stringify(canonical)} \u2014 fix the callsite to emit the canonical token (FOUND_DEFECTS D27)`,
1435
+ context: { value, canonical }
1436
+ });
1437
+ return canonical;
1438
+ }
1439
+ return value;
1440
+ }
1441
+ };
1442
+ }
1443
+
1444
+ // src/core/rpcResult.ts
1445
+ function err(code, message, detail, hint) {
1446
+ const error = { code, message };
1447
+ if (detail !== void 0) error.detail = detail;
1448
+ if (hint !== void 0) error.hint = hint;
1449
+ return { ok: false, error };
1450
+ }
1451
+ function ok(data) {
1452
+ return { ok: true, data };
1453
+ }
1454
+ function isTransportFailure(e) {
1455
+ if (typeof navigator !== "undefined" && navigator.onLine === false) {
1456
+ return true;
1457
+ }
1458
+ if (e instanceof TypeError) return true;
1459
+ if (e && typeof e === "object") {
1460
+ const o = e;
1461
+ if (o.code || o.status) return false;
1462
+ const text = `${typeof o.name === "string" ? o.name : ""} ${typeof o.message === "string" ? o.message : ""}`.toLowerCase();
1463
+ return text.includes("failed to fetch") || text.includes("networkerror") || text.includes("network request failed") || text.includes("load failed") || // Safari's wording for the same condition
1464
+ text.includes("upstream connect error or disconnect/reset before headers");
1465
+ }
1466
+ return false;
1467
+ }
1468
+ function isPostgrestResultError(e) {
1469
+ if (!e || typeof e !== "object") return false;
1470
+ const value = e;
1471
+ return typeof value.code === "string" && typeof value.message === "string";
1472
+ }
1473
+ function readPgFields(e) {
1474
+ if (e && typeof e === "object") {
1475
+ const o = e;
1476
+ return {
1477
+ pgCode: typeof o.code === "string" && o.code ? o.code : null,
1478
+ // `Error` instances land here too — `message` is an own/inherited
1479
+ // string property either way, so one read covers both shapes.
1480
+ pgMessage: typeof o.message === "string" && o.message ? o.message : null,
1481
+ pgHint: typeof o.hint === "string" && o.hint ? o.hint : void 0
1482
+ };
1483
+ }
1484
+ return { pgCode: null, pgMessage: null, pgHint: void 0 };
1485
+ }
1486
+ function createRpcResultHelpers(errorSink) {
1487
+ function mapPgError(e) {
1488
+ const { pgCode, pgMessage, pgHint } = readPgFields(e);
1489
+ if (pgCode === "PGRST202") {
1490
+ const message = "demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 \u2014 function not found). This package DEMANDS the platform " + `schema (README \xA7 The demanded schema). ${pgMessage ?? ""}`.trim();
1491
+ errorSink({
1492
+ code: "demanded_schema_violation",
1493
+ message,
1494
+ context: { pgCode, detail: e }
1495
+ });
1496
+ const out2 = {
1497
+ code: "demanded_schema_violation",
1498
+ message,
1499
+ detail: e
1500
+ };
1501
+ if (pgHint !== void 0) out2.hint = pgHint;
1502
+ return out2;
1503
+ }
1504
+ if (isTransportFailure(e)) {
1505
+ errorSink({
1506
+ code: "transport_failure",
1507
+ message: "network unreachable (browser offline?)",
1508
+ context: { transient: true, detail: e }
1509
+ });
1510
+ } else if (!isPostgrestResultError(e)) {
1511
+ errorSink({
1512
+ code: "internal",
1513
+ message: pgMessage ?? "Unexpected error talking to the data source",
1514
+ context: { detail: e }
1515
+ });
1516
+ }
1517
+ if (pgCode === "PGRST116")
1518
+ return { code: "not_found", message: "Not found" };
1519
+ if (pgCode === "42501")
1520
+ return { code: "forbidden_org", message: "Permission denied" };
1521
+ if (pgCode === "PGRST301" || pgCode === "PGRST303")
1522
+ return { code: "unauthorized", message: "Your session expired" };
1523
+ if (pgCode === "57014") {
1524
+ const out2 = {
1525
+ code: "internal",
1526
+ message: "The database took too long to respond",
1527
+ detail: e
1528
+ };
1529
+ if (pgHint !== void 0) out2.hint = pgHint;
1530
+ return out2;
1531
+ }
1532
+ const out = {
1533
+ // A real message from PostgREST beats our generic string every time;
1534
+ // the generic one is the LAST resort, not the default.
1535
+ message: pgMessage ?? "Unexpected error talking to the data source",
1536
+ code: "internal",
1537
+ detail: e
1538
+ };
1539
+ if (pgHint !== void 0) out.hint = pgHint;
1540
+ return out;
1541
+ }
1542
+ function mapPgErrorPair(e) {
1543
+ const mapped = mapPgError(e);
1544
+ return [mapped.code, mapped.message, mapped.detail, mapped.hint];
1545
+ }
1546
+ return { ok, err, mapPgError, mapPgErrorPair };
1547
+ }
1548
+
1549
+ // src/core/registry.ts
1550
+ var DEFAULT_OWNER_COLUMN = "created_by";
1551
+ var DEFAULT_ORG_COLUMN = "organization_id";
1552
+ var CONTENT_ROLE_SET = /* @__PURE__ */ new Set([
1553
+ "utility",
1554
+ "source",
1555
+ "destination",
1556
+ "hybrid",
1557
+ "container"
1558
+ ]);
1559
+ function isContentRole(value) {
1560
+ return value !== null && CONTENT_ROLE_SET.has(value);
1561
+ }
1562
+ var TOKEN_ALIASES = {
1563
+ cld_file: "file"
1564
+ };
1565
+ function resolveEntityToken(raw) {
1566
+ return TOKEN_ALIASES[raw] ?? raw;
1567
+ }
1568
+ var TABLE_TO_TOKEN = (() => {
1569
+ const m = {};
1570
+ for (const token of Object.keys(ENTITY_TYPE_METADATA)) {
1571
+ const meta = ENTITY_TYPE_METADATA[token];
1572
+ const key = `${meta.schema}.${meta.table}`;
1573
+ if (!(key in m)) m[key] = token;
1574
+ }
1575
+ return m;
1576
+ })();
1577
+ var UNIQUE_TABLE_NAME_TO_TOKEN = (() => {
1578
+ const index = {};
1579
+ for (const token of Object.keys(
1580
+ ENTITY_TYPE_METADATA
1581
+ )) {
1582
+ const table = ENTITY_TYPE_METADATA[token].table;
1583
+ index[table] = table in index ? null : token;
1584
+ }
1585
+ return index;
1586
+ })();
1587
+ function createEntityRegistry(errorSink, initialOverlay) {
1588
+ const overlayByToken = {
1589
+ ...initialOverlay ?? {}
1590
+ };
1591
+ function getEntityInfo(token) {
1592
+ const meta = ENTITY_TYPE_METADATA[token];
1593
+ const overlay = overlayByToken[token];
1594
+ const labelPlural = overlay?.labelPlural ?? `${meta.label}s`;
1595
+ const titleColumn = meta.titleColumn;
1596
+ const contentRole = isContentRole(meta.contentRole) ? meta.contentRole : "destination";
1597
+ if (meta.contentRole !== null && !isContentRole(meta.contentRole)) {
1598
+ errorSink({
1599
+ code: "invalid_content_role",
1600
+ message: `[entityRegistry] "${token}" has invalid content_role "${meta.contentRole}" in platform.entity_types; using destination as a loud recovery.`,
1601
+ context: { token, contentRole: meta.contentRole }
1602
+ });
1603
+ }
1604
+ const ownerColumn = overlay?.ownerColumn === void 0 ? DEFAULT_OWNER_COLUMN : overlay.ownerColumn ?? "";
1605
+ const orgColumn = overlay?.orgColumn === void 0 ? DEFAULT_ORG_COLUMN : overlay.orgColumn ?? "";
1606
+ return {
1607
+ token,
1608
+ label: meta.label,
1609
+ labelPlural,
1610
+ schema: meta.schema,
1611
+ table: meta.table,
1612
+ titleColumn,
1613
+ ownerColumn,
1614
+ orgColumn,
1615
+ Icon: overlay?.Icon ?? null,
1616
+ hrefFor: overlay?.hrefFor ?? null,
1617
+ scopeable: meta.scopeable,
1618
+ category: meta.category,
1619
+ contentRole,
1620
+ listCandidates: overlay?.listCandidates ?? null,
1621
+ canListCandidates: titleColumn !== null || overlay?.listCandidates !== void 0
1622
+ };
1623
+ }
1624
+ return {
1625
+ registerEntityOverlay(overlay) {
1626
+ for (const key of Object.keys(overlay)) {
1627
+ const entry = overlay[key];
1628
+ if (!entry) continue;
1629
+ overlayByToken[key] = { ...overlayByToken[key], ...entry };
1630
+ }
1631
+ },
1632
+ getEntityInfo,
1633
+ tryGetEntityInfo(token) {
1634
+ const canonical = resolveEntityToken(token);
1635
+ return isEntityTypeToken(canonical) ? getEntityInfo(canonical) : null;
1636
+ },
1637
+ tryGetEntityInfoByTable(schema, table) {
1638
+ const token = TABLE_TO_TOKEN[`${schema}.${table}`];
1639
+ return token ? getEntityInfo(token) : null;
1640
+ },
1641
+ tryGetEntityInfoByUniqueTableName(table) {
1642
+ const token = UNIQUE_TABLE_NAME_TO_TOKEN[table];
1643
+ return token ? getEntityInfo(token) : null;
1644
+ },
1645
+ curatedTokens() {
1646
+ return Object.keys(ENTITY_TYPE_METADATA).filter(
1647
+ (t) => {
1648
+ const meta = ENTITY_TYPE_METADATA[t];
1649
+ const o = overlayByToken[t];
1650
+ return isContentRole(meta.contentRole) && (meta.titleColumn != null || o?.listCandidates !== void 0);
1651
+ }
1652
+ );
1653
+ },
1654
+ listableTokens() {
1655
+ return Object.keys(ENTITY_TYPE_METADATA).filter(
1656
+ (t) => {
1657
+ const meta = ENTITY_TYPE_METADATA[t];
1658
+ if (!meta.referencePickable) return false;
1659
+ const o = overlayByToken[t];
1660
+ const canList = meta.titleColumn != null || o?.listCandidates !== void 0;
1661
+ if (!canList) {
1662
+ errorSink({
1663
+ code: "unlistable_pickable_token",
1664
+ message: `[entityRegistry] "${t}" is reference_pickable in platform.entity_types but has NO title_column and no host candidate source \u2014 set its title_column in the registry or register a listCandidates override.`,
1665
+ context: { token: t }
1666
+ });
1667
+ }
1668
+ return canList;
1669
+ }
1670
+ );
1671
+ }
1672
+ };
1673
+ }
1674
+
1675
+ // src/core/associationsService.ts
1676
+ function toEdge(row) {
1677
+ return {
1678
+ id: row.id,
1679
+ // PG only ever emits 'outgoing' | 'incoming'; widen-then-narrow for TS.
1680
+ direction: row.direction === "incoming" ? "incoming" : "outgoing",
1681
+ otherType: row.other_type,
1682
+ otherId: row.other_id,
1683
+ role: row.role ?? null,
1684
+ label: row.label ?? null,
1685
+ position: row.position ?? null,
1686
+ metadata: row.metadata ?? {},
1687
+ orgId: row.organization_id ?? null,
1688
+ createdAt: row.created_at
1689
+ };
1690
+ }
1691
+ function toTargetEdge(row) {
1692
+ return {
1693
+ id: row.id,
1694
+ targetId: row.target_id,
1695
+ sourceType: row.source_type,
1696
+ sourceId: row.source_id,
1697
+ role: row.role ?? null,
1698
+ label: row.label ?? null,
1699
+ position: row.position ?? null,
1700
+ metadata: row.metadata ?? {},
1701
+ orgId: row.organization_id ?? null,
1702
+ createdAt: row.created_at
1703
+ };
1704
+ }
1705
+ function toSourceEdge(row) {
1706
+ return {
1707
+ id: row.id,
1708
+ sourceId: row.source_id,
1709
+ targetType: row.target_type,
1710
+ targetId: row.target_id,
1711
+ role: row.role ?? null,
1712
+ label: row.label ?? null,
1713
+ position: row.position ?? null,
1714
+ metadata: row.metadata ?? {},
1715
+ orgId: row.organization_id ?? null,
1716
+ createdAt: row.created_at
1717
+ };
1718
+ }
1719
+ function createAssociationsService(deps) {
1720
+ const { dataSource, identity, guards } = deps;
1721
+ const { ok: ok2, err: err2, mapPgError, mapPgErrorPair } = deps.rpc;
1722
+ const { checkToken, checkUuid, checkUuidArray, normalizeEntityToken } = guards;
1723
+ return {
1724
+ /**
1725
+ * All edges where `${type}:${id}` is either source ("outgoing") or target
1726
+ * ("incoming"), org-filtered by RLS inside the RPC. One round-trip.
1727
+ */
1728
+ async listForEntity(rawType, id) {
1729
+ try {
1730
+ identity.requireUserId();
1731
+ const type = normalizeEntityToken(rawType);
1732
+ const bad = firstError(checkToken("type", type), checkUuid("id", id));
1733
+ if (bad) return { ok: false, error: bad };
1734
+ const { data, error } = await dataSource.rpc("assoc_for_entity", {
1735
+ p_type: type,
1736
+ p_id: id
1737
+ });
1738
+ if (error) return err2(...mapPgErrorPair(error));
1739
+ const rows = Array.isArray(data) ? data : [];
1740
+ return ok2({ edges: rows.map(toEdge) });
1741
+ } catch (e) {
1742
+ return { ok: false, error: mapPgError(e) };
1743
+ }
1744
+ },
1745
+ /**
1746
+ * Viewer-aware file attachments for a conversation. Unlike the generic
1747
+ * org-filtered association reader, this follows the conversation's
1748
+ * canonical viewer grant, so an explicitly shared cross-org conversation
1749
+ * has the same attachment inventory in every client.
1750
+ */
1751
+ async listConversationFiles(conversationId) {
1752
+ try {
1753
+ identity.requireUserId();
1754
+ const bad = checkUuid("conversationId", conversationId);
1755
+ if (bad) return { ok: false, error: bad };
1756
+ const { data, error } = await dataSource.rpc("conversation_files", {
1757
+ p_conversation_id: conversationId
1758
+ });
1759
+ if (error) return err2(...mapPgErrorPair(error));
1760
+ const rows = Array.isArray(data) ? data : [];
1761
+ return ok2({
1762
+ files: rows.map((row) => ({
1763
+ fileId: row.file_id,
1764
+ label: row.label ?? null,
1765
+ metadata: row.metadata ?? {},
1766
+ createdAt: row.created_at
1767
+ }))
1768
+ });
1769
+ } catch (e) {
1770
+ return { ok: false, error: mapPgError(e) };
1771
+ }
1772
+ },
1773
+ /**
1774
+ * Every edge whose target is one of `targetIds` (all the same
1775
+ * `targetType`), org-filtered by RLS inside the RPC. The batch
1776
+ * counterpart of `listForEntity` — each row carries `targetId` so
1777
+ * callers can group results back by container.
1778
+ */
1779
+ async listForTargets(rawTargetType, targetIds) {
1780
+ try {
1781
+ identity.requireUserId();
1782
+ const targetType = normalizeEntityToken(rawTargetType);
1783
+ const ids = Array.from(new Set(targetIds));
1784
+ if (ids.length === 0) return ok2({ edges: [] });
1785
+ const bad = firstError(
1786
+ checkToken("targetType", targetType),
1787
+ checkUuidArray("targetIds", ids)
1788
+ );
1789
+ if (bad) return { ok: false, error: bad };
1790
+ const { data, error } = await dataSource.rpc("assoc_for_targets", {
1791
+ p_target_type: targetType,
1792
+ p_target_ids: ids
1793
+ });
1794
+ if (error) return err2(...mapPgErrorPair(error));
1795
+ const rows = Array.isArray(data) ? data : [];
1796
+ return ok2({ edges: rows.map(toTargetEdge) });
1797
+ } catch (e) {
1798
+ return { ok: false, error: mapPgError(e) };
1799
+ }
1800
+ },
1801
+ /**
1802
+ * Like `listForTargets`, but VISIBILITY-AWARE: an edge is returned when
1803
+ * the caller EITHER shares org access to it OR can VIEW its target via
1804
+ * the canonical row-level authorization truth `iam.has_access(target,
1805
+ * 'viewer')` — honoring `visibility='public'`/`'link'`, share grants,
1806
+ * container memberships, and reachability. A strict SUPERSET of
1807
+ * `listForTargets` access; a stranger with no grant on a private target
1808
+ * still gets nothing. Use for reading the members of a SHAREABLE
1809
+ * container; keep plain `listForTargets` for org-scoped tagging reads.
1810
+ */
1811
+ async listForTargetsVisible(rawTargetType, targetIds) {
1812
+ try {
1813
+ identity.requireUserId();
1814
+ const targetType = normalizeEntityToken(rawTargetType);
1815
+ const ids = Array.from(new Set(targetIds));
1816
+ if (ids.length === 0) return ok2({ edges: [] });
1817
+ const bad = firstError(
1818
+ checkToken("targetType", targetType),
1819
+ checkUuidArray("targetIds", ids)
1820
+ );
1821
+ if (bad) return { ok: false, error: bad };
1822
+ const { data, error } = await dataSource.rpc("assoc_members_visible", {
1823
+ p_target_type: targetType,
1824
+ p_target_ids: ids
1825
+ });
1826
+ if (error) return err2(...mapPgErrorPair(error));
1827
+ const rows = Array.isArray(data) ? data : [];
1828
+ return ok2({ edges: rows.map(toTargetEdge) });
1829
+ } catch (e) {
1830
+ return { ok: false, error: mapPgError(e) };
1831
+ }
1832
+ },
1833
+ /**
1834
+ * Every edge whose source is one of `sourceIds` (all the same
1835
+ * `sourceType`), org-filtered by RLS inside the RPC. Pass `targetType`
1836
+ * to push the target filter into the DB. Each row carries `sourceId` so
1837
+ * callers can group results back by source.
1838
+ */
1839
+ async listForSources(rawSourceType, sourceIds, rawTargetType) {
1840
+ try {
1841
+ identity.requireUserId();
1842
+ const sourceType = normalizeEntityToken(rawSourceType);
1843
+ const targetType = rawTargetType != null ? normalizeEntityToken(rawTargetType) : void 0;
1844
+ const ids = Array.from(new Set(sourceIds));
1845
+ if (ids.length === 0) return ok2({ edges: [] });
1846
+ const bad = firstError(
1847
+ checkToken("sourceType", sourceType),
1848
+ checkUuidArray("sourceIds", ids),
1849
+ targetType ? checkToken("targetType", targetType) : null
1850
+ );
1851
+ if (bad) return { ok: false, error: bad };
1852
+ const { data, error } = await dataSource.rpc("assoc_for_sources", {
1853
+ p_source_type: sourceType,
1854
+ p_source_ids: ids,
1855
+ ...targetType ? { p_target_type: targetType } : {}
1856
+ });
1857
+ if (error) return err2(...mapPgErrorPair(error));
1858
+ const rows = Array.isArray(data) ? data : [];
1859
+ return ok2({ edges: rows.map(toSourceEdge) });
1860
+ } catch (e) {
1861
+ return { ok: false, error: mapPgError(e) };
1862
+ }
1863
+ },
1864
+ /**
1865
+ * Attach `source` → `target`. Idempotent (ON CONFLICT). When `orgId` is
1866
+ * omitted the RPC resolves org from the endpoints; pass `orgId` for
1867
+ * targets that don't carry one. Returns the association id.
1868
+ */
1869
+ async add(args) {
1870
+ try {
1871
+ identity.requireUserId();
1872
+ const sourceType = normalizeEntityToken(args.sourceType);
1873
+ const targetType = normalizeEntityToken(args.targetType);
1874
+ const bad = firstError(
1875
+ checkToken("sourceType", sourceType),
1876
+ checkUuid("sourceId", args.sourceId),
1877
+ checkToken("targetType", targetType),
1878
+ checkUuid("targetId", args.targetId),
1879
+ args.orgId != null ? checkUuid("orgId", args.orgId) : null
1880
+ );
1881
+ if (bad) return { ok: false, error: bad };
1882
+ if (sourceType === "file" && targetType === "conversation") {
1883
+ if (args.role != null || args.position != null || args.payloadKind != null || args.payload != null) {
1884
+ return err2(
1885
+ "invalid_argument",
1886
+ "File conversation attachments support only the canonical role-less edge"
1887
+ );
1888
+ }
1889
+ const { data: data2, error: error2 } = await dataSource.rpc(
1890
+ "conversation_file_add",
1891
+ {
1892
+ p_conversation_id: args.targetId,
1893
+ p_file_id: args.sourceId,
1894
+ p_label: args.label,
1895
+ p_metadata: args.metadata ?? {},
1896
+ p_replace_metadata: args.replaceMetadata ?? false
1897
+ }
1898
+ );
1899
+ if (error2) return err2(...mapPgErrorPair(error2));
1900
+ if (!data2 || typeof data2 !== "string") {
1901
+ return err2(
1902
+ "internal",
1903
+ "conversation_file_add returned no association id"
1904
+ );
1905
+ }
1906
+ return ok2({ id: data2 });
1907
+ }
1908
+ if (args.replaceMetadata != null) {
1909
+ return err2(
1910
+ "invalid_argument",
1911
+ "replaceMetadata is supported only for file conversation attachments"
1912
+ );
1913
+ }
1914
+ const { data, error } = await dataSource.rpc("assoc_add", {
1915
+ p_source_type: sourceType,
1916
+ p_source_id: args.sourceId,
1917
+ p_target_type: targetType,
1918
+ p_target_id: args.targetId,
1919
+ p_org_id: args.orgId,
1920
+ p_label: args.label,
1921
+ p_metadata: args.metadata ?? {},
1922
+ p_role: args.role,
1923
+ p_position: args.position,
1924
+ p_payload_kind: args.payloadKind,
1925
+ p_payload: args.payload ?? void 0
1926
+ });
1927
+ if (error) return err2(...mapPgErrorPair(error));
1928
+ if (!data || typeof data !== "string") {
1929
+ return err2("internal", "assoc_add returned no association id");
1930
+ }
1931
+ return ok2({ id: data });
1932
+ } catch (e) {
1933
+ return { ok: false, error: mapPgError(e) };
1934
+ }
1935
+ },
1936
+ /**
1937
+ * Detach `source` → `target`. No-op if the edge doesn't exist. When
1938
+ * `role` is omitted only the role-less edge is removed (role IS NOT
1939
+ * DISTINCT FROM null); pass `role` to detach a specific typed edge.
1940
+ */
1941
+ async remove(args) {
1942
+ try {
1943
+ identity.requireUserId();
1944
+ const sourceType = normalizeEntityToken(args.sourceType);
1945
+ const targetType = normalizeEntityToken(args.targetType);
1946
+ const bad = firstError(
1947
+ checkToken("sourceType", sourceType),
1948
+ checkUuid("sourceId", args.sourceId),
1949
+ checkToken("targetType", targetType),
1950
+ checkUuid("targetId", args.targetId)
1951
+ );
1952
+ if (bad) return { ok: false, error: bad };
1953
+ if (sourceType === "file" && targetType === "conversation") {
1954
+ if (args.role != null) {
1955
+ return err2(
1956
+ "invalid_argument",
1957
+ "File conversation attachments support only the canonical role-less edge"
1958
+ );
1959
+ }
1960
+ const { error: error2 } = await dataSource.rpc("conversation_file_remove", {
1961
+ p_conversation_id: args.targetId,
1962
+ p_file_id: args.sourceId
1963
+ });
1964
+ if (error2) return err2(...mapPgErrorPair(error2));
1965
+ return ok2(null);
1966
+ }
1967
+ const { error } = await dataSource.rpc("assoc_remove", {
1968
+ p_source_type: sourceType,
1969
+ p_source_id: args.sourceId,
1970
+ p_target_type: targetType,
1971
+ p_target_id: args.targetId,
1972
+ p_role: args.role
1973
+ });
1974
+ if (error) return err2(...mapPgErrorPair(error));
1975
+ return ok2(null);
1976
+ } catch (e) {
1977
+ return { ok: false, error: mapPgError(e) };
1978
+ }
1979
+ },
1980
+ /**
1981
+ * Make the source's edges of `targetType` exactly equal `targetIds`
1982
+ * (adds missing, removes extras) in one transaction.
1983
+ */
1984
+ async setTargets(args) {
1985
+ try {
1986
+ identity.requireUserId();
1987
+ const sourceType = normalizeEntityToken(args.sourceType);
1988
+ const targetType = normalizeEntityToken(args.targetType);
1989
+ const target = Array.from(new Set(args.targetIds));
1990
+ const bad = firstError(
1991
+ checkToken("sourceType", sourceType),
1992
+ checkUuid("sourceId", args.sourceId),
1993
+ checkToken("targetType", targetType),
1994
+ checkUuidArray("targetIds", target),
1995
+ args.orgId != null ? checkUuid("orgId", args.orgId) : null
1996
+ );
1997
+ if (bad) return { ok: false, error: bad };
1998
+ const { error } = await dataSource.rpc("assoc_set_targets", {
1999
+ p_source_type: sourceType,
2000
+ p_source_id: args.sourceId,
2001
+ p_target_type: targetType,
2002
+ p_target_ids: target,
2003
+ p_org_id: args.orgId,
2004
+ p_role: args.role
2005
+ });
2006
+ if (error) return err2(...mapPgErrorPair(error));
2007
+ return ok2(null);
2008
+ } catch (e) {
2009
+ return { ok: false, error: mapPgError(e) };
2010
+ }
2011
+ },
2012
+ /**
2013
+ * Permanently attach a resource to an agent. The dedicated RPC enforces
2014
+ * the stronger authoring contract this containment edge requires: editor
2015
+ * access to both the agent and source resource. The stored edge is still
2016
+ * the canonical platform association (`role=agent_resource`).
2017
+ */
2018
+ async addAgentResource(args) {
2019
+ try {
2020
+ identity.requireUserId();
2021
+ const sourceType = normalizeEntityToken(args.sourceType);
2022
+ const bad = firstError(
2023
+ checkUuid("agentId", args.agentId),
2024
+ checkToken("sourceType", sourceType),
2025
+ checkUuid("sourceId", args.sourceId)
2026
+ );
2027
+ if (bad) return { ok: false, error: bad };
2028
+ const { data, error } = await dataSource.rpc("agent_resource_add", {
2029
+ p_agent_id: args.agentId,
2030
+ p_source_type: sourceType,
2031
+ p_source_id: args.sourceId,
2032
+ p_label: args.label,
2033
+ p_metadata: args.metadata ?? {}
2034
+ });
2035
+ if (error) return err2(...mapPgErrorPair(error));
2036
+ if (!data || typeof data !== "string") {
2037
+ return err2("internal", "agent_resource_add returned no association id");
2038
+ }
2039
+ return ok2({ id: data });
2040
+ } catch (e) {
2041
+ return { ok: false, error: mapPgError(e) };
2042
+ }
2043
+ },
2044
+ /** Remove one permanent Agent Resource edge. */
2045
+ async removeAgentResource(args) {
2046
+ try {
2047
+ identity.requireUserId();
2048
+ const sourceType = normalizeEntityToken(args.sourceType);
2049
+ const bad = firstError(
2050
+ checkUuid("agentId", args.agentId),
2051
+ checkToken("sourceType", sourceType),
2052
+ checkUuid("sourceId", args.sourceId)
2053
+ );
2054
+ if (bad) return { ok: false, error: bad };
2055
+ const { error } = await dataSource.rpc("agent_resource_remove", {
2056
+ p_agent_id: args.agentId,
2057
+ p_source_type: sourceType,
2058
+ p_source_id: args.sourceId
2059
+ });
2060
+ if (error) return err2(...mapPgErrorPair(error));
2061
+ return ok2(null);
2062
+ } catch (e) {
2063
+ return { ok: false, error: mapPgError(e) };
2064
+ }
2065
+ },
2066
+ /**
2067
+ * Remove every edge where `${type}:${id}` is the source OR the target,
2068
+ * org-filtered inside the RPC. The deletion counterpart of
2069
+ * `listForEntity` — call it when an entity is deleted so no edge is left
2070
+ * orphaned.
2071
+ */
2072
+ async removeForEntity(rawType, id) {
2073
+ try {
2074
+ identity.requireUserId();
2075
+ const type = normalizeEntityToken(rawType);
2076
+ const bad = firstError(checkToken("type", type), checkUuid("id", id));
2077
+ if (bad) return { ok: false, error: bad };
2078
+ const { error } = await dataSource.rpc("assoc_remove_for_entity", {
2079
+ p_type: type,
2080
+ p_id: id
2081
+ });
2082
+ if (error) return err2(...mapPgErrorPair(error));
2083
+ return ok2(null);
2084
+ } catch (e) {
2085
+ return { ok: false, error: mapPgError(e) };
2086
+ }
2087
+ }
2088
+ };
2089
+ }
2090
+
2091
+ // src/core/categoriesService.ts
2092
+ function toCategory(row) {
2093
+ return {
2094
+ id: row.id,
2095
+ orgId: row.organization_id ?? null,
2096
+ dimension: row.dimension,
2097
+ name: row.name,
2098
+ slug: row.slug ?? null,
2099
+ parentId: row.parent_id ?? null,
2100
+ isSystem: !!row.is_system,
2101
+ color: row.color ?? null,
2102
+ icon: row.icon ?? null,
2103
+ position: row.position ?? null,
2104
+ metadata: row.metadata && typeof row.metadata === "object" && !Array.isArray(row.metadata) ? row.metadata : null
2105
+ };
2106
+ }
2107
+ function createCategoriesService(deps) {
2108
+ const { dataSource, identity } = deps;
2109
+ const { ok: ok2, err: err2, mapPgError, mapPgErrorPair } = deps.rpc;
2110
+ return {
2111
+ /**
2112
+ * Every category visible to the caller (system + their orgs),
2113
+ * org-filtered by `iam.has_org_access` inside the RPC. Pass `dimension`
2114
+ * to scope to one facet (the common case). Ordered by dimension, then
2115
+ * `position`, then name.
2116
+ */
2117
+ async list(dimension) {
2118
+ try {
2119
+ identity.requireUserId();
2120
+ const { data, error } = await dataSource.rpc("cat_list", {
2121
+ p_dimension: dimension
2122
+ });
2123
+ if (error) return err2(...mapPgErrorPair(error));
2124
+ const rows = Array.isArray(data) ? data : [];
2125
+ return ok2({ categories: rows.map(toCategory) });
2126
+ } catch (e) {
2127
+ return { ok: false, error: mapPgError(e) };
2128
+ }
2129
+ },
2130
+ /**
2131
+ * Create an org-owned category in `dimension`. `orgId` is REQUIRED and
2132
+ * the RPC rejects callers without access to it (`cat_create` raises
2133
+ * 42501). The created row is always `is_system = false`; seeding
2134
+ * system/global categories is a migration concern, never a client write.
2135
+ */
2136
+ async create(args) {
2137
+ try {
2138
+ identity.requireUserId();
2139
+ const { data, error } = await dataSource.rpc("cat_create", {
2140
+ p_dimension: args.dimension,
2141
+ p_name: args.name,
2142
+ p_org_id: args.orgId,
2143
+ p_parent_id: args.parentId ?? void 0,
2144
+ p_color: args.color ?? void 0,
2145
+ p_icon: args.icon ?? void 0,
2146
+ p_slug: args.slug ?? void 0
2147
+ });
2148
+ if (error) return err2(...mapPgErrorPair(error));
2149
+ if (!data || typeof data !== "string") {
2150
+ return err2("internal", "cat_create returned no category id");
2151
+ }
2152
+ return ok2({ id: data });
2153
+ } catch (e) {
2154
+ return { ok: false, error: mapPgError(e) };
2155
+ }
2156
+ },
2157
+ /**
2158
+ * Replace the editable scalar fields of one category. The caller
2159
+ * supplies the complete desired state so nullable fields can be cleared
2160
+ * without a JSON patch or a second interpretation of `undefined`.
2161
+ */
2162
+ async update(args) {
2163
+ try {
2164
+ identity.requireUserId();
2165
+ const { data, error } = await dataSource.rpc("cat_update", {
2166
+ p_category_id: args.id,
2167
+ p_name: args.name,
2168
+ p_slug: args.slug ?? void 0,
2169
+ p_color: args.color ?? void 0,
2170
+ p_icon: args.icon ?? void 0,
2171
+ p_position: args.position ?? void 0
2172
+ });
2173
+ if (error) return err2(...mapPgErrorPair(error));
2174
+ if (!data || typeof data !== "string") {
2175
+ return err2("internal", "cat_update returned no category id");
2176
+ }
2177
+ return ok2({ id: data });
2178
+ } catch (e) {
2179
+ return { ok: false, error: mapPgError(e) };
2180
+ }
2181
+ },
2182
+ /** Move a category to the root or directly beneath one root category. */
2183
+ async reparent(args) {
2184
+ try {
2185
+ identity.requireUserId();
2186
+ const { data, error } = await dataSource.rpc("cat_reparent", {
2187
+ p_category_id: args.id,
2188
+ p_parent_id: args.parentId ?? void 0
2189
+ });
2190
+ if (error) return err2(...mapPgErrorPair(error));
2191
+ if (!data || typeof data !== "string") {
2192
+ return err2("internal", "cat_reparent returned no category id");
2193
+ }
2194
+ return ok2({ id: data });
2195
+ } catch (e) {
2196
+ return { ok: false, error: mapPgError(e) };
2197
+ }
2198
+ },
2199
+ /** Soft-delete a leaf category. Parents with live children are rejected. */
2200
+ async delete(id) {
2201
+ try {
2202
+ identity.requireUserId();
2203
+ const { data, error } = await dataSource.rpc("cat_delete", {
2204
+ p_category_id: id
2205
+ });
2206
+ if (error) return err2(...mapPgErrorPair(error));
2207
+ if (!data || typeof data !== "string") {
2208
+ return err2("internal", "cat_delete returned no category id");
2209
+ }
2210
+ return ok2({ id: data });
2211
+ } catch (e) {
2212
+ return { ok: false, error: mapPgError(e) };
2213
+ }
2214
+ }
2215
+ };
2216
+ }
2217
+
2218
+ // src/core/favoritesService.ts
2219
+ function toState(row) {
2220
+ return {
2221
+ entityType: row.entity_type,
2222
+ entityId: row.entity_id,
2223
+ isFavorite: row.is_favorite,
2224
+ isPinned: row.is_pinned,
2225
+ isHidden: row.is_hidden,
2226
+ lastViewedAt: row.last_viewed_at ?? null
2227
+ };
2228
+ }
2229
+ function createFavoritesService(deps) {
2230
+ const { dataSource, identity } = deps;
2231
+ const { ok: ok2, err: err2, mapPgError, mapPgErrorPair } = deps.rpc;
2232
+ const api = {
2233
+ /**
2234
+ * Upsert the caller's state row for one entity. An OMITTED flag is left
2235
+ * UNCHANGED (the RPC `coalesce`s null → existing), so you can flip just
2236
+ * `isFavorite` without clobbering `isPinned`/`isHidden`. Idempotent.
2237
+ */
2238
+ async setState(args) {
2239
+ try {
2240
+ identity.requireUserId();
2241
+ const { error } = await dataSource.rpc("ues_set", {
2242
+ p_entity_type: args.entityType,
2243
+ p_entity_id: args.entityId,
2244
+ p_is_favorite: args.isFavorite,
2245
+ p_is_pinned: args.isPinned,
2246
+ p_is_hidden: args.isHidden
2247
+ });
2248
+ if (error) return err2(...mapPgErrorPair(error));
2249
+ return ok2(null);
2250
+ } catch (e) {
2251
+ return { ok: false, error: mapPgError(e) };
2252
+ }
2253
+ },
2254
+ /** Convenience: flip ONLY the favorite flag (leaves pinned/hidden intact). */
2255
+ async setFavorite(entityType, entityId, isFavorite) {
2256
+ return api.setState({ entityType, entityId, isFavorite });
2257
+ },
2258
+ /** Convenience: flip ONLY the pinned flag. */
2259
+ async setPinned(entityType, entityId, isPinned) {
2260
+ return api.setState({ entityType, entityId, isPinned });
2261
+ },
2262
+ /** Convenience: flip ONLY the hidden flag. */
2263
+ async setHidden(entityType, entityId, isHidden) {
2264
+ return api.setState({ entityType, entityId, isHidden });
2265
+ },
2266
+ /**
2267
+ * Every state row the caller owns, optionally filtered to a single
2268
+ * dimension (`"favorite"` | `"pinned"` | `"hidden"`). Pass nothing for all.
2269
+ */
2270
+ async list(kind) {
2271
+ try {
2272
+ identity.requireUserId();
2273
+ const { data, error } = await dataSource.rpc("ues_list", {
2274
+ p_kind: kind
2275
+ });
2276
+ if (error) return err2(...mapPgErrorPair(error));
2277
+ const rows = Array.isArray(data) ? data : [];
2278
+ return ok2({ items: rows.map(toState) });
2279
+ } catch (e) {
2280
+ return { ok: false, error: mapPgError(e) };
2281
+ }
2282
+ },
2283
+ /**
2284
+ * Bulk-fetch the caller's flags for `entityIds` of one `entityType` —
2285
+ * the read a list view uses to paint its star column in one round-trip.
2286
+ * Only entities that HAVE a state row come back; absent ids mean "no
2287
+ * state yet".
2288
+ */
2289
+ async getBulk(entityType, entityIds) {
2290
+ try {
2291
+ identity.requireUserId();
2292
+ const ids = Array.from(new Set(entityIds));
2293
+ const { data, error } = await dataSource.rpc("ues_get_bulk", {
2294
+ p_entity_type: entityType,
2295
+ p_entity_ids: ids
2296
+ });
2297
+ if (error) return err2(...mapPgErrorPair(error));
2298
+ const rows = Array.isArray(data) ? data : [];
2299
+ return ok2({
2300
+ items: rows.map((r) => ({
2301
+ entityType,
2302
+ entityId: r.entity_id,
2303
+ isFavorite: r.is_favorite,
2304
+ isPinned: r.is_pinned,
2305
+ isHidden: r.is_hidden,
2306
+ lastViewedAt: r.last_viewed_at ?? null
2307
+ }))
2308
+ });
2309
+ } catch (e) {
2310
+ return { ok: false, error: mapPgError(e) };
2311
+ }
2312
+ },
2313
+ /** Stamp `last_viewed_at = now()` (creates the row if absent). */
2314
+ async touch(entityType, entityId) {
2315
+ try {
2316
+ identity.requireUserId();
2317
+ const { error } = await dataSource.rpc("ues_touch", {
2318
+ p_entity_type: entityType,
2319
+ p_entity_id: entityId
2320
+ });
2321
+ if (error) return err2(...mapPgErrorPair(error));
2322
+ return ok2(null);
2323
+ } catch (e) {
2324
+ return { ok: false, error: mapPgError(e) };
2325
+ }
2326
+ }
2327
+ };
2328
+ return api;
2329
+ }
2330
+
2331
+ // src/core/candidates.ts
2332
+ function createCandidatesService(deps) {
2333
+ const { dataSource, registry, errorSink } = deps;
2334
+ const callReferenceSearchCandidates = async (args) => {
2335
+ const { data, error } = await dataSource.rpc(
2336
+ "reference_search_candidates",
2337
+ args
2338
+ );
2339
+ if (error) return { data: null, error };
2340
+ return {
2341
+ data: Array.isArray(data) ? data : [],
2342
+ error: null
2343
+ };
2344
+ };
2345
+ async function listAssociationCandidates(args) {
2346
+ const { token, search, limit = 100 } = args;
2347
+ const info = registry.getEntityInfo(token);
2348
+ if (info.listCandidates) {
2349
+ try {
2350
+ return await info.listCandidates({
2351
+ ...search !== void 0 ? { search } : {},
2352
+ limit
2353
+ });
2354
+ } catch (e) {
2355
+ const msg = e instanceof Error ? e.message : "Failed to load candidates";
2356
+ errorSink({
2357
+ code: "candidate_override_failed",
2358
+ message: `[listAssociationCandidates] override failed for "${token}": ${msg}`,
2359
+ context: { token, detail: e }
2360
+ });
2361
+ return { ok: false, error: msg };
2362
+ }
2363
+ }
2364
+ if (!info.canListCandidates || !info.titleColumn) {
2365
+ const msg = `Entity "${token}" has no title column \u2014 set one in platform.entity_types (or register a listCandidates override) before listing candidates`;
2366
+ errorSink({
2367
+ code: "unlistable_token",
2368
+ message: `[listAssociationCandidates] ${msg}`,
2369
+ context: { token }
2370
+ });
2371
+ return { ok: false, error: msg };
2372
+ }
2373
+ const trimmedSearch = search?.trim() || void 0;
2374
+ const { data, error } = await callReferenceSearchCandidates({
2375
+ p_token: token,
2376
+ ...trimmedSearch !== void 0 ? { p_search: trimmedSearch } : {},
2377
+ p_limit: limit
2378
+ });
2379
+ if (error) {
2380
+ errorSink({
2381
+ code: "candidate_rpc_failed",
2382
+ message: `[listAssociationCandidates] candidate RPC failed for "${token}": ${error.message}`,
2383
+ context: { token, detail: error }
2384
+ });
2385
+ return { ok: false, error: error.message };
2386
+ }
2387
+ return {
2388
+ ok: true,
2389
+ data: data.map((row) => ({
2390
+ id: row.id,
2391
+ title: row.title?.trim() || "Untitled"
2392
+ }))
2393
+ };
2394
+ }
2395
+ async function searchCandidatesAcrossTokens(args) {
2396
+ const { tokens, search, ownerId, perTokenLimit = 5, concurrency = 6 } = args;
2397
+ const list = tokens ?? registry.curatedTokens();
2398
+ if (list.length === 0) return [];
2399
+ const out = [];
2400
+ let cursor = 0;
2401
+ async function worker() {
2402
+ while (cursor < list.length) {
2403
+ const token = list[cursor];
2404
+ cursor += 1;
2405
+ if (!token) continue;
2406
+ const res = await listAssociationCandidates({
2407
+ token,
2408
+ ownerId: ownerId ?? null,
2409
+ search,
2410
+ limit: perTokenLimit
2411
+ });
2412
+ if (res.ok) {
2413
+ for (const c of res.data) out.push({ ...c, token });
2414
+ }
2415
+ }
2416
+ }
2417
+ await Promise.all(
2418
+ Array.from({ length: Math.min(concurrency, list.length) }, worker)
2419
+ );
2420
+ const tokenOrder = new Map(list.map((t, i) => [t, i]));
2421
+ out.sort((a, b) => {
2422
+ const ta = tokenOrder.get(a.token) ?? 0;
2423
+ const tb = tokenOrder.get(b.token) ?? 0;
2424
+ if (ta !== tb) return ta - tb;
2425
+ return a.title.localeCompare(b.title);
2426
+ });
2427
+ return out;
2428
+ }
2429
+ return {
2430
+ callReferenceSearchCandidates,
2431
+ listAssociationCandidates,
2432
+ searchCandidatesAcrossTokens
2433
+ };
2434
+ }
2435
+
2436
+ // src/core/titles.ts
2437
+ var CHUNK = 200;
2438
+ function entityTitleCacheKey(token, id) {
2439
+ return `${token}:${id}`;
2440
+ }
2441
+ function createTitlesService(deps, candidates) {
2442
+ const { registry, errorSink } = deps;
2443
+ const titleCache = /* @__PURE__ */ new Map();
2444
+ return {
2445
+ get(token, id) {
2446
+ return titleCache.get(entityTitleCacheKey(token, id)) ?? null;
2447
+ },
2448
+ prime(token, id, title) {
2449
+ const trimmed = title.trim();
2450
+ if (trimmed) titleCache.set(entityTitleCacheKey(token, id), trimmed);
2451
+ },
2452
+ fallback(token) {
2453
+ const info = registry.tryGetEntityInfo(token);
2454
+ return `Untitled ${info?.label ?? token}`;
2455
+ },
2456
+ async fetch(token, ids) {
2457
+ const out = /* @__PURE__ */ new Map();
2458
+ if (ids.length === 0) return out;
2459
+ const info = registry.tryGetEntityInfo(token);
2460
+ const missing = [];
2461
+ for (const id of ids) {
2462
+ const cached = titleCache.get(entityTitleCacheKey(token, id));
2463
+ if (cached !== void 0) out.set(id, cached);
2464
+ else missing.push(id);
2465
+ }
2466
+ if (missing.length === 0 || !info?.titleColumn) return out;
2467
+ for (let index = 0; index < missing.length; index += CHUNK) {
2468
+ const chunk = missing.slice(index, index + CHUNK);
2469
+ const { data, error } = await candidates.callReferenceSearchCandidates({
2470
+ p_token: token,
2471
+ p_ids: chunk,
2472
+ p_limit: chunk.length
2473
+ });
2474
+ if (error) {
2475
+ errorSink({
2476
+ code: "title_rpc_failed",
2477
+ message: `[fetchEntityTitles] candidate RPC failed for "${token}": ${error.message}`,
2478
+ context: {
2479
+ token,
2480
+ chunkStart: index,
2481
+ chunkSize: chunk.length,
2482
+ detail: error
2483
+ }
2484
+ });
2485
+ continue;
2486
+ }
2487
+ for (const row of data) {
2488
+ const title = row.title?.trim();
2489
+ if (!title) continue;
2490
+ titleCache.set(entityTitleCacheKey(token, row.id), title);
2491
+ out.set(row.id, title);
2492
+ }
2493
+ }
2494
+ return out;
2495
+ }
2496
+ };
2497
+ }
2498
+
2499
+ // src/core/entityRows.ts
2500
+ function createEntityRowsService(deps, titles) {
2501
+ const { dataSource, identity, registry, errorSink } = deps;
2502
+ function tableFor(token, schema, table) {
2503
+ if (schema && schema !== "public") {
2504
+ if (!dataSource.schema) {
2505
+ const error = `dataSource has no schema() capability \u2014 entity-row writes for "${token}" (${schema}.${table}) need a table-capable dataSource (a real supabase-js client)`;
2506
+ errorSink({
2507
+ code: "datasource_missing_table_capability",
2508
+ message: `[entityRows] ${error}`,
2509
+ context: { token, schema, table }
2510
+ });
2511
+ return { ok: false, error };
2512
+ }
2513
+ return { ok: true, query: dataSource.schema(schema).from(table) };
2514
+ }
2515
+ if (!dataSource.from) {
2516
+ const error = `dataSource has no from() capability \u2014 entity-row writes for "${token}" need a table-capable dataSource (a real supabase-js client)`;
2517
+ errorSink({
2518
+ code: "datasource_missing_table_capability",
2519
+ message: `[entityRows] ${error}`,
2520
+ context: { token, schema, table }
2521
+ });
2522
+ return { ok: false, error };
2523
+ }
2524
+ return { ok: true, query: dataSource.from(table) };
2525
+ }
2526
+ function requireTitleColumn(token, op) {
2527
+ const info = registry.getEntityInfo(token);
2528
+ if (!info.titleColumn) {
2529
+ const error = `Entity "${token}" has no title_column in platform.entity_types \u2014 add one in the registry before ${op}`;
2530
+ errorSink({
2531
+ code: "missing_title_column",
2532
+ message: `[entityRows] ${error}`,
2533
+ context: { token }
2534
+ });
2535
+ return { ok: false, error };
2536
+ }
2537
+ return { ok: true, titleColumn: info.titleColumn };
2538
+ }
2539
+ return {
2540
+ /**
2541
+ * Insert one row of `token`'s backing table named `title`, owned by the
2542
+ * current user (when the table has an owner column). Returns the new
2543
+ * row's id + title. The caller wires associations afterwards — this
2544
+ * layer never writes edges.
2545
+ */
2546
+ async createEntityRow(token, args) {
2547
+ const gate = requireTitleColumn(token, "creating rows");
2548
+ if (!gate.ok) return gate;
2549
+ const info = registry.getEntityInfo(token);
2550
+ const title = args.title.trim();
2551
+ if (!title) return { ok: false, error: "Name is required" };
2552
+ try {
2553
+ const userId = identity.requireUserId();
2554
+ const table = tableFor(token, info.schema, info.table);
2555
+ if (!table.ok) return table;
2556
+ const row = {
2557
+ [gate.titleColumn]: title,
2558
+ ...info.ownerColumn ? { [info.ownerColumn]: userId } : {},
2559
+ ...info.orgColumn && args.orgId ? { [info.orgColumn]: args.orgId } : {},
2560
+ ...args.extraColumns ?? {}
2561
+ };
2562
+ const { data, error } = await table.query.insert(row).select("id").single();
2563
+ if (error) {
2564
+ errorSink({
2565
+ code: "entity_row_insert_failed",
2566
+ message: `[createEntityRow] insert failed for "${token}": ${error.message}`,
2567
+ context: { token, detail: error }
2568
+ });
2569
+ return { ok: false, error: error.message };
2570
+ }
2571
+ const id = String(data.id);
2572
+ titles.prime(token, id, title);
2573
+ return { ok: true, data: { id, title } };
2574
+ } catch (e) {
2575
+ const msg = e instanceof Error ? e.message : "Failed to create";
2576
+ errorSink({
2577
+ code: "entity_row_insert_failed",
2578
+ message: `[createEntityRow] exception for "${token}": ${msg}`,
2579
+ context: { token, detail: e }
2580
+ });
2581
+ return { ok: false, error: msg };
2582
+ }
2583
+ },
2584
+ /** Update the registry `titleColumn` of one row of `token`'s table. */
2585
+ async renameEntityRow(token, id, title) {
2586
+ const gate = requireTitleColumn(token, "renaming rows");
2587
+ if (!gate.ok) return gate;
2588
+ const info = registry.getEntityInfo(token);
2589
+ const trimmed = title.trim();
2590
+ if (!trimmed) return { ok: false, error: "Name is required" };
2591
+ try {
2592
+ const table = tableFor(token, info.schema, info.table);
2593
+ if (!table.ok) return table;
2594
+ const { error } = await table.query.update({ [gate.titleColumn]: trimmed }).eq("id", id);
2595
+ if (error) {
2596
+ errorSink({
2597
+ code: "entity_row_update_failed",
2598
+ message: `[renameEntityRow] update failed for "${token}": ${error.message}`,
2599
+ context: { token, id, detail: error }
2600
+ });
2601
+ return { ok: false, error: error.message };
2602
+ }
2603
+ titles.prime(token, id, trimmed);
2604
+ return { ok: true };
2605
+ } catch (e) {
2606
+ const msg = e instanceof Error ? e.message : "Failed to rename";
2607
+ errorSink({
2608
+ code: "entity_row_update_failed",
2609
+ message: `[renameEntityRow] exception for "${token}": ${msg}`,
2610
+ context: { token, id, detail: e }
2611
+ });
2612
+ return { ok: false, error: msg };
2613
+ }
2614
+ }
2615
+ };
2616
+ }
2617
+
2618
+ // src/core/helpers.ts
2619
+ function combine(failures, total) {
2620
+ const first = failures[0] ?? {
2621
+ code: "internal",
2622
+ message: "unknown failure"
2623
+ };
2624
+ return {
2625
+ code: failures.every((f) => f.code === first.code) ? first.code : "internal",
2626
+ message: `${failures.length}/${total} association edge(s) failed: ${first.message}`,
2627
+ detail: failures
2628
+ };
2629
+ }
2630
+ function errArgs(e) {
2631
+ return [e.code, e.message, e.detail];
2632
+ }
2633
+ function createAssociationHelpers(service) {
2634
+ async function linkEdges(edges) {
2635
+ if (edges.length === 0) return ok({ ids: [] });
2636
+ const results = await Promise.all(
2637
+ edges.map(
2638
+ (e) => service.add({
2639
+ sourceType: e.source.type,
2640
+ sourceId: e.source.id,
2641
+ targetType: e.target.type,
2642
+ targetId: e.target.id,
2643
+ ...e.orgId !== void 0 ? { orgId: e.orgId } : {},
2644
+ ...e.label !== void 0 ? { label: e.label } : {},
2645
+ ...e.metadata !== void 0 ? { metadata: e.metadata } : {},
2646
+ ...e.role !== void 0 ? { role: e.role } : {},
2647
+ ...e.position !== void 0 ? { position: e.position } : {}
2648
+ })
2649
+ )
2650
+ );
2651
+ const ids = [];
2652
+ const failures = [];
2653
+ for (const r of results) {
2654
+ if (isAssociationsRpcErr(r)) failures.push(r.error);
2655
+ else ids.push(r.data.id);
2656
+ }
2657
+ if (failures.length > 0)
2658
+ return err(...errArgs(combine(failures, edges.length)));
2659
+ return ok({ ids });
2660
+ }
2661
+ return {
2662
+ linkEdges,
2663
+ async linkOneToMany({ source, targets, attrs }) {
2664
+ return linkEdges(targets.map((target) => ({ source, target, ...attrs })));
2665
+ },
2666
+ async linkManyToOne({ sources, target, attrs }) {
2667
+ return linkEdges(sources.map((source) => ({ source, target, ...attrs })));
2668
+ },
2669
+ async replaceTargets(args) {
2670
+ return service.setTargets({
2671
+ sourceType: args.source.type,
2672
+ sourceId: args.source.id,
2673
+ targetType: args.targetType,
2674
+ targetIds: args.targetIds,
2675
+ ...args.orgId !== void 0 ? { orgId: args.orgId } : {},
2676
+ ...args.role !== void 0 ? { role: args.role } : {}
2677
+ });
2678
+ },
2679
+ async linkCreated(args) {
2680
+ return linkEdges(
2681
+ args.targets.map((target) => ({
2682
+ source: args.created,
2683
+ target,
2684
+ ...args.attrs
2685
+ }))
2686
+ );
2687
+ },
2688
+ async unlinkEdges(edges) {
2689
+ if (edges.length === 0) return ok(null);
2690
+ const results = await Promise.all(
2691
+ edges.map(
2692
+ (e) => service.remove({
2693
+ sourceType: e.source.type,
2694
+ sourceId: e.source.id,
2695
+ targetType: e.target.type,
2696
+ targetId: e.target.id,
2697
+ ...e.role !== void 0 ? { role: e.role } : {}
2698
+ })
2699
+ )
2700
+ );
2701
+ const failures = [];
2702
+ for (const r of results) if (isAssociationsRpcErr(r)) failures.push(r.error);
2703
+ if (failures.length > 0)
2704
+ return err(...errArgs(combine(failures, edges.length)));
2705
+ return ok(null);
2706
+ }
2707
+ };
2708
+ }
2709
+
2710
+ // src/core/store.ts
2711
+ function associationsKey(type, id) {
2712
+ return `${type}:${id}`;
2713
+ }
2714
+ var IDLE_ASSOCIATIONS = Object.freeze({
2715
+ status: "idle",
2716
+ edges: Object.freeze([]),
2717
+ fetchedAt: null,
2718
+ error: null
2719
+ });
2720
+ var IDLE_CATEGORIES = Object.freeze({
2721
+ status: "idle",
2722
+ categories: Object.freeze([]),
2723
+ fetchedAt: null,
2724
+ error: null
2725
+ });
2726
+ function createAssociationsStore(config) {
2727
+ if (!config || typeof config.dataSource?.rpc !== "function") {
2728
+ throw new Error(
2729
+ "@ai-matrx/associations: the REQUIRED dataSource port is missing (need an object with rpc(fn, args) \u2014 a supabase-js client satisfies it structurally). The package IS data operations; there is no degraded mode without one."
2730
+ );
2731
+ }
2732
+ if (typeof config.identity?.requireUserId !== "function") {
2733
+ throw new Error(
2734
+ "@ai-matrx/associations: the REQUIRED identity port is missing (need requireUserId(): string that THROWS when unauthenticated). Identity never comes from a store import."
2735
+ );
2736
+ }
2737
+ if (typeof config.errorSink !== "function") {
2738
+ throw new Error(
2739
+ "@ai-matrx/associations: the REQUIRED errorSink port is missing. Recovery layers must scream somewhere \u2014 bind a sink."
2740
+ );
2741
+ }
2742
+ const errorSink = config.errorSink;
2743
+ const registry = createEntityRegistry(errorSink, config.entityOverlay);
2744
+ const deps = {
2745
+ dataSource: config.dataSource,
2746
+ identity: config.identity,
2747
+ errorSink,
2748
+ guards: createAssociationGuards(errorSink),
2749
+ rpc: createRpcResultHelpers(errorSink),
2750
+ registry
2751
+ };
2752
+ const associations = createAssociationsService(deps);
2753
+ const categories = createCategoriesService(deps);
2754
+ const favorites = createFavoritesService(deps);
2755
+ const candidates = createCandidatesService(deps);
2756
+ const titles = createTitlesService(deps, candidates);
2757
+ const entityRows = createEntityRowsService(deps, titles);
2758
+ const helpers = createAssociationHelpers(associations);
2759
+ const assocByKey = /* @__PURE__ */ new Map();
2760
+ const assocSubs = /* @__PURE__ */ new Map();
2761
+ const assocInFlight = /* @__PURE__ */ new Map();
2762
+ const catByDim = /* @__PURE__ */ new Map();
2763
+ const catSubs = /* @__PURE__ */ new Map();
2764
+ const catInFlight = /* @__PURE__ */ new Map();
2765
+ function notifyAssoc(key) {
2766
+ const subs = assocSubs.get(key);
2767
+ if (subs) for (const cb of [...subs]) cb();
2768
+ }
2769
+ function notifyCat(dimension) {
2770
+ const subs = catSubs.get(dimension);
2771
+ if (subs) for (const cb of [...subs]) cb();
2772
+ }
2773
+ function setAssoc(key, entry) {
2774
+ assocByKey.set(key, entry);
2775
+ notifyAssoc(key);
2776
+ }
2777
+ function setCat(dimension, entry) {
2778
+ catByDim.set(dimension, entry);
2779
+ notifyCat(dimension);
2780
+ }
2781
+ async function load(type, id, opts = {}) {
2782
+ const force = opts.force ?? false;
2783
+ if (!type || !id) return;
2784
+ const key = associationsKey(type, id);
2785
+ const entry = assocByKey.get(key);
2786
+ if (!force && entry?.status === "ready") return;
2787
+ const pending = assocInFlight.get(key);
2788
+ if (!force && entry?.status === "loading" && pending) return pending;
2789
+ const prev = assocByKey.get(key);
2790
+ setAssoc(key, {
2791
+ status: "loading",
2792
+ edges: prev?.edges ?? [],
2793
+ fetchedAt: prev?.fetchedAt ?? null,
2794
+ // Retain the visible failure while a retry is pending — consumers use
2795
+ // status to disable/spin the same retry control.
2796
+ error: prev?.error ?? null
2797
+ });
2798
+ const promise = (async () => {
2799
+ try {
2800
+ const res = await associations.listForEntity(type, id);
2801
+ if (isAssociationsRpcErr(res)) {
2802
+ const before = assocByKey.get(key);
2803
+ setAssoc(key, {
2804
+ status: "error",
2805
+ edges: before?.edges ?? [],
2806
+ fetchedAt: before?.fetchedAt ?? null,
2807
+ error: res.error.message
2808
+ });
2809
+ } else {
2810
+ setAssoc(key, {
2811
+ status: "ready",
2812
+ edges: res.data.edges,
2813
+ fetchedAt: Date.now(),
2814
+ error: null
2815
+ });
2816
+ }
2817
+ } finally {
2818
+ assocInFlight.delete(key);
2819
+ }
2820
+ })();
2821
+ assocInFlight.set(key, promise);
2822
+ return promise;
2823
+ }
2824
+ async function reloadBoth(sourceType, sourceId, targetType, targetId) {
2825
+ await Promise.all([
2826
+ load(sourceType, sourceId, { force: true }),
2827
+ load(targetType, targetId, { force: true })
2828
+ ]);
2829
+ }
2830
+ async function loadCategories(dimension, opts = {}) {
2831
+ const force = opts.force ?? false;
2832
+ if (!dimension) return;
2833
+ const entry = catByDim.get(dimension);
2834
+ if (!force && entry?.status === "ready") return;
2835
+ const pending = catInFlight.get(dimension);
2836
+ if (!force && entry?.status === "loading" && pending) return pending;
2837
+ const prev = catByDim.get(dimension);
2838
+ setCat(dimension, {
2839
+ status: "loading",
2840
+ categories: prev?.categories ?? [],
2841
+ fetchedAt: prev?.fetchedAt ?? null,
2842
+ error: null
2843
+ });
2844
+ const promise = (async () => {
2845
+ try {
2846
+ const res = await categories.list(dimension);
2847
+ if (isAssociationsRpcErr(res)) {
2848
+ const before = catByDim.get(dimension);
2849
+ setCat(dimension, {
2850
+ status: "error",
2851
+ categories: before?.categories ?? [],
2852
+ fetchedAt: before?.fetchedAt ?? null,
2853
+ error: res.error.message
2854
+ });
2855
+ } else {
2856
+ setCat(dimension, {
2857
+ status: "ready",
2858
+ categories: res.data.categories,
2859
+ fetchedAt: Date.now(),
2860
+ error: null
2861
+ });
2862
+ }
2863
+ } finally {
2864
+ catInFlight.delete(dimension);
2865
+ }
2866
+ })();
2867
+ catInFlight.set(dimension, promise);
2868
+ return promise;
2869
+ }
2870
+ return {
2871
+ // ── associations ─────────────────────────────────────────────────────
2872
+ getEdges(type, id) {
2873
+ if (!type || !id) return IDLE_ASSOCIATIONS;
2874
+ return assocByKey.get(associationsKey(type, id)) ?? IDLE_ASSOCIATIONS;
2875
+ },
2876
+ load,
2877
+ subscribe(key, cb) {
2878
+ let subs = assocSubs.get(key);
2879
+ if (!subs) {
2880
+ subs = /* @__PURE__ */ new Set();
2881
+ assocSubs.set(key, subs);
2882
+ }
2883
+ subs.add(cb);
2884
+ return () => {
2885
+ subs.delete(cb);
2886
+ if (subs.size === 0) assocSubs.delete(key);
2887
+ };
2888
+ },
2889
+ async add(args) {
2890
+ const res = await associations.add(args);
2891
+ if (isAssociationsRpcErr(res)) {
2892
+ return { ok: false, error: res.error.message };
2893
+ }
2894
+ await reloadBoth(
2895
+ args.sourceType,
2896
+ args.sourceId,
2897
+ args.targetType,
2898
+ args.targetId
2899
+ );
2900
+ return { ok: true, id: res.data.id };
2901
+ },
2902
+ async remove(args) {
2903
+ const res = await associations.remove(args);
2904
+ if (isAssociationsRpcErr(res)) {
2905
+ return { ok: false, error: res.error.message };
2906
+ }
2907
+ await reloadBoth(
2908
+ args.sourceType,
2909
+ args.sourceId,
2910
+ args.targetType,
2911
+ args.targetId
2912
+ );
2913
+ return { ok: true };
2914
+ },
2915
+ /**
2916
+ * Reloads the SOURCE endpoint only — the one endpoint with a
2917
+ * deterministic post-state; each affected target reload would need the
2918
+ * full before/after diff, so callers displaying a specific target
2919
+ * refresh it via `load(..., { force: true })`.
2920
+ */
2921
+ async setTargets(args) {
2922
+ const res = await associations.setTargets(args);
2923
+ if (isAssociationsRpcErr(res)) {
2924
+ return { ok: false, error: res.error.message };
2925
+ }
2926
+ await load(args.sourceType, args.sourceId, { force: true });
2927
+ return { ok: true };
2928
+ },
2929
+ invalidate(type, id) {
2930
+ const key = associationsKey(type, id);
2931
+ if (assocByKey.delete(key)) notifyAssoc(key);
2932
+ },
2933
+ invalidateAll() {
2934
+ const assocKeys = [...assocByKey.keys()];
2935
+ assocByKey.clear();
2936
+ for (const key of assocKeys) notifyAssoc(key);
2937
+ const dims = [...catByDim.keys()];
2938
+ catByDim.clear();
2939
+ for (const dim of dims) notifyCat(dim);
2940
+ },
2941
+ // ── categories ───────────────────────────────────────────────────────
2942
+ getCategories(dimension) {
2943
+ if (!dimension) return IDLE_CATEGORIES;
2944
+ return catByDim.get(dimension) ?? IDLE_CATEGORIES;
2945
+ },
2946
+ loadCategories,
2947
+ subscribeCategories(dimension, cb) {
2948
+ let subs = catSubs.get(dimension);
2949
+ if (!subs) {
2950
+ subs = /* @__PURE__ */ new Set();
2951
+ catSubs.set(dimension, subs);
2952
+ }
2953
+ subs.add(cb);
2954
+ return () => {
2955
+ subs.delete(cb);
2956
+ if (subs.size === 0) catSubs.delete(dimension);
2957
+ };
2958
+ },
2959
+ async createCategory(args) {
2960
+ const res = await categories.create(args);
2961
+ if (isAssociationsRpcErr(res)) {
2962
+ return { ok: false, error: res.error.message };
2963
+ }
2964
+ const optimistic = {
2965
+ id: res.data.id,
2966
+ orgId: args.orgId,
2967
+ dimension: args.dimension,
2968
+ name: args.name,
2969
+ slug: args.slug ?? null,
2970
+ parentId: args.parentId ?? null,
2971
+ isSystem: false,
2972
+ color: args.color ?? null,
2973
+ icon: args.icon ?? null,
2974
+ metadata: null,
2975
+ position: null
2976
+ };
2977
+ const prev = catByDim.get(args.dimension);
2978
+ const existing = prev?.categories ?? [];
2979
+ if (!existing.some((c) => c.id === optimistic.id)) {
2980
+ setCat(args.dimension, {
2981
+ status: "ready",
2982
+ categories: [...existing, optimistic],
2983
+ fetchedAt: prev?.fetchedAt ?? Date.now(),
2984
+ error: null
2985
+ });
2986
+ }
2987
+ await loadCategories(args.dimension, { force: true });
2988
+ return { ok: true, id: res.data.id };
2989
+ },
2990
+ async updateCategory(args) {
2991
+ const res = await categories.update(args);
2992
+ if (isAssociationsRpcErr(res)) {
2993
+ return { ok: false, error: res.error.message };
2994
+ }
2995
+ await loadCategories(args.dimension, { force: true });
2996
+ return { ok: true, id: res.data.id };
2997
+ },
2998
+ async reparentCategory(args) {
2999
+ const res = await categories.reparent(args);
3000
+ if (isAssociationsRpcErr(res)) {
3001
+ return { ok: false, error: res.error.message };
3002
+ }
3003
+ await loadCategories(args.dimension, { force: true });
3004
+ return { ok: true, id: res.data.id };
3005
+ },
3006
+ async deleteCategory(args) {
3007
+ const res = await categories.delete(args.id);
3008
+ if (isAssociationsRpcErr(res)) {
3009
+ return { ok: false, error: res.error.message };
3010
+ }
3011
+ await loadCategories(args.dimension, { force: true });
3012
+ return { ok: true, id: res.data.id };
3013
+ },
3014
+ // ── seams ────────────────────────────────────────────────────────────
3015
+ titles,
3016
+ favorites,
3017
+ candidates,
3018
+ entityRows,
3019
+ helpers,
3020
+ registry,
3021
+ services: { associations, categories },
3022
+ registerEntityOverlay: registry.registerEntityOverlay
3023
+ };
3024
+ }
3025
+
3026
+ // src/demanded-rpcs.generated.ts
3027
+ var DEMANDED_RPC_NAMES = [
3028
+ "assoc_add",
3029
+ "assoc_remove",
3030
+ "assoc_set_targets",
3031
+ "assoc_remove_for_entity",
3032
+ "assoc_for_entity",
3033
+ "assoc_for_targets",
3034
+ "assoc_for_sources",
3035
+ "assoc_members_visible",
3036
+ "conversation_file_add",
3037
+ "conversation_file_remove",
3038
+ "conversation_files",
3039
+ "agent_resource_add",
3040
+ "agent_resource_remove",
3041
+ "cat_list",
3042
+ "cat_create",
3043
+ "cat_update",
3044
+ "cat_reparent",
3045
+ "cat_delete",
3046
+ "ues_set",
3047
+ "ues_list",
3048
+ "ues_get_bulk",
3049
+ "ues_touch",
3050
+ "reference_search_candidates"
3051
+ ];
3052
+
3053
+ // src/core/assertDemandedSchema.ts
3054
+ var BAD_UUID = "__not_a_uuid__";
3055
+ var SELF_TEST_MISSING_RPC = "assoc_probe_self_test_missing_fn";
3056
+ var PROBE_ARGS = {
3057
+ // edges — writes
3058
+ assoc_add: {
3059
+ p_source_type: "note",
3060
+ p_source_id: BAD_UUID,
3061
+ p_target_type: "task",
3062
+ p_target_id: BAD_UUID
3063
+ },
3064
+ assoc_remove: {
3065
+ p_source_type: "note",
3066
+ p_source_id: BAD_UUID,
3067
+ p_target_type: "task",
3068
+ p_target_id: BAD_UUID
3069
+ },
3070
+ assoc_set_targets: {
3071
+ p_source_type: "note",
3072
+ p_source_id: BAD_UUID,
3073
+ p_target_type: "task",
3074
+ p_target_ids: [BAD_UUID]
3075
+ },
3076
+ assoc_remove_for_entity: { p_type: "note", p_id: BAD_UUID },
3077
+ // edges — reads
3078
+ assoc_for_entity: { p_type: "note", p_id: BAD_UUID },
3079
+ assoc_for_targets: { p_target_type: "task", p_target_ids: [BAD_UUID] },
3080
+ assoc_for_sources: { p_source_type: "note", p_source_ids: [BAD_UUID] },
3081
+ assoc_members_visible: { p_target_type: "task", p_target_ids: [BAD_UUID] },
3082
+ // conversation files
3083
+ conversation_file_add: {
3084
+ p_conversation_id: BAD_UUID,
3085
+ p_file_id: BAD_UUID
3086
+ },
3087
+ conversation_file_remove: {
3088
+ p_conversation_id: BAD_UUID,
3089
+ p_file_id: BAD_UUID
3090
+ },
3091
+ conversation_files: { p_conversation_id: BAD_UUID },
3092
+ // agent resources
3093
+ agent_resource_add: {
3094
+ p_agent_id: BAD_UUID,
3095
+ p_source_type: "note",
3096
+ p_source_id: BAD_UUID
3097
+ },
3098
+ agent_resource_remove: {
3099
+ p_agent_id: BAD_UUID,
3100
+ p_source_type: "note",
3101
+ p_source_id: BAD_UUID
3102
+ },
3103
+ // categories
3104
+ cat_list: {},
3105
+ cat_create: { p_dimension: "", p_name: "", p_org_id: BAD_UUID },
3106
+ cat_update: { p_category_id: BAD_UUID, p_name: "__probe__" },
3107
+ cat_reparent: { p_category_id: BAD_UUID },
3108
+ cat_delete: { p_category_id: BAD_UUID },
3109
+ // favorites / recents
3110
+ ues_set: { p_entity_type: "__probe__", p_entity_id: BAD_UUID },
3111
+ ues_list: {},
3112
+ ues_get_bulk: { p_entity_type: "__probe__", p_entity_ids: [BAD_UUID] },
3113
+ ues_touch: { p_entity_type: "__probe__", p_entity_id: BAD_UUID },
3114
+ // candidates
3115
+ reference_search_candidates: { p_token: "__probe__", p_limit: 1 }
3116
+ };
3117
+ function isMissingFunctionError(error) {
3118
+ if (!error || typeof error !== "object") return false;
3119
+ return error.code === "PGRST202";
3120
+ }
3121
+ async function assertDemandedSchema(dataSource, options = {}) {
3122
+ const { selfTest = false, concurrency = 6, throwOnViolation = true } = options;
3123
+ const names = [...DEMANDED_RPC_NAMES];
3124
+ if (selfTest) names.push(SELF_TEST_MISSING_RPC);
3125
+ const missing = [];
3126
+ const unreachable = [];
3127
+ const answered = [];
3128
+ let cursor = 0;
3129
+ async function worker() {
3130
+ while (cursor < names.length) {
3131
+ const fn = names[cursor];
3132
+ cursor += 1;
3133
+ if (!fn) continue;
3134
+ const args = fn === SELF_TEST_MISSING_RPC ? {} : PROBE_ARGS[fn];
3135
+ try {
3136
+ const { error } = await dataSource.rpc(fn, args);
3137
+ if (error == null) answered.push(fn);
3138
+ else if (isMissingFunctionError(error)) missing.push(fn);
3139
+ else answered.push(fn);
3140
+ } catch (e) {
3141
+ unreachable.push({ fn, error: e });
3142
+ }
3143
+ }
3144
+ }
3145
+ await Promise.all(
3146
+ Array.from({ length: Math.min(concurrency, names.length) }, worker)
3147
+ );
3148
+ if (selfTest) {
3149
+ const selfTestMissing = missing.includes(SELF_TEST_MISSING_RPC);
3150
+ const idx = missing.indexOf(SELF_TEST_MISSING_RPC);
3151
+ if (idx >= 0) missing.splice(idx, 1);
3152
+ const answeredIdx = answered.indexOf(SELF_TEST_MISSING_RPC);
3153
+ if (answeredIdx >= 0) answered.splice(answeredIdx, 1);
3154
+ if (!selfTestMissing) {
3155
+ throw new Error(
3156
+ `assertDemandedSchema self-test FAILED: the fabricated function "${SELF_TEST_MISSING_RPC}" did not come back as missing (PGRST202). This probe cannot currently fail, so its green result proves nothing \u2014 the dataSource is swallowing or faking errors.`
3157
+ );
3158
+ }
3159
+ }
3160
+ if (unreachable.length > 0) {
3161
+ throw new Error(
3162
+ `assertDemandedSchema could not complete: ${unreachable.length} probe call(s) failed to reach the database (${unreachable.map((u) => u.fn).join(", ")}). This is NOT a schema verdict \u2014 fix connectivity and re-run.`
3163
+ );
3164
+ }
3165
+ const ok2 = missing.length === 0;
3166
+ const report = { ok: ok2, missing, unreachable, answered };
3167
+ if (!ok2 && throwOnViolation) {
3168
+ throw new Error(
3169
+ `DEMANDED SCHEMA VIOLATION: the database this dataSource points at cannot answer ${missing.length} demanded @ai-matrx/associations function(s): ${missing.join(", ")}. This package demands the AI Matrx platform schema (README \xA7 The demanded schema); a database without it is not this package's database.`
3170
+ );
3171
+ }
3172
+ return report;
3173
+ }
3174
+
3175
+ // src/core/edgeClassifier.ts
3176
+ var NON_CONTENT_SOURCE_TYPES = /* @__PURE__ */ new Set([
3177
+ "thread",
3178
+ "war_room",
3179
+ "scope",
3180
+ "scope_type",
3181
+ "organization"
3182
+ ]);
3183
+ function isMembershipMetadata(metadata) {
3184
+ return typeof metadata === "object" && metadata !== null && !Array.isArray(metadata) && metadata.membership === true;
3185
+ }
3186
+ function isContentSourceEdge(sourceType, metadata) {
3187
+ if (NON_CONTENT_SOURCE_TYPES.has(sourceType)) return false;
3188
+ if (isMembershipMetadata(metadata)) return false;
3189
+ return true;
3190
+ }
3191
+ //# sourceMappingURL=index.cjs.map