@ai-matrx/records 0.3.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.
package/dist/index.cjs ADDED
@@ -0,0 +1,1481 @@
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/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ ABSENCE_REASONS: () => ABSENCE_REASONS,
24
+ ACTOR_VOCABULARY: () => ACTOR_VOCABULARY,
25
+ COMPUTE_ON: () => COMPUTE_ON,
26
+ CONTEXT_POLICIES: () => CONTEXT_POLICIES,
27
+ DELIVERIES: () => DELIVERIES,
28
+ ENTITY_TOKENS: () => ENTITY_TOKENS,
29
+ FIELD_SENSITIVITIES: () => FIELD_SENSITIVITIES,
30
+ FIELD_SOURCES: () => FIELD_SOURCES,
31
+ FRESHNESS: () => FRESHNESS,
32
+ KERNEL_TABLES: () => KERNEL_TABLES,
33
+ MERGE_FIELD_MODIFIERS: () => MERGE_FIELD_MODIFIERS,
34
+ MERGE_FIELD_SEMANTIC_TYPES: () => MERGE_FIELD_SEMANTIC_TYPES,
35
+ MERGE_FIELD_SOURCES: () => MERGE_FIELD_SOURCES,
36
+ ON_DELETE: () => ON_DELETE,
37
+ OVERRIDE_POLICIES: () => OVERRIDE_POLICIES,
38
+ PARITY_FIELD_TYPES: () => PARITY_FIELD_TYPES,
39
+ PER_VALUE_ACCESS_WORDS: () => PER_VALUE_ACCESS_WORDS,
40
+ RELATION_BINDINGS: () => RELATION_BINDINGS,
41
+ RELATION_CARDINALITIES: () => RELATION_CARDINALITIES,
42
+ RELATION_FLAVORS: () => RELATION_FLAVORS,
43
+ RETIRED_ACTOR_WORDS: () => RETIRED_ACTOR_WORDS,
44
+ RULE_NODE_KINDS: () => RULE_NODE_KINDS,
45
+ RULE_USES: () => RULE_USES,
46
+ STORAGE_MODES: () => STORAGE_MODES,
47
+ STORE_DOORS: () => STORE_DOORS,
48
+ STORE_KNOBS: () => STORE_KNOBS,
49
+ STORE_REFUSAL_CODES: () => STORE_REFUSAL_CODES,
50
+ TABLE_DISPLAYS: () => TABLE_DISPLAYS,
51
+ TABLE_ORIGINS: () => TABLE_ORIGINS,
52
+ TABLE_TYPES: () => TABLE_TYPES,
53
+ VALUE_ALTERNATE_KEYS: () => VALUE_ALTERNATE_KEYS,
54
+ VALUE_ENVELOPE_KEYS: () => VALUE_ENVELOPE_KEYS,
55
+ err: () => err,
56
+ isRecordsErr: () => isRecordsErr,
57
+ measureKey: () => measureKey,
58
+ ok: () => ok
59
+ });
60
+ module.exports = __toCommonJS(src_exports);
61
+
62
+ // src/vocabulary.ts
63
+ var TABLE_TYPES = [
64
+ "entity",
65
+ "detail",
66
+ "reference",
67
+ "ledger",
68
+ "restricted",
69
+ "system",
70
+ "deprecated"
71
+ ];
72
+ var TABLE_ORIGINS = ["standard", "custom"];
73
+ var RELATION_FLAVORS = ["owned", "referenced"];
74
+ var ON_DELETE = ["cascade", "set_null", "restrict"];
75
+ var RELATION_BINDINGS = ["live", "snapshot"];
76
+ var RELATION_CARDINALITIES = ["one", "many"];
77
+ var FIELD_SOURCES = ["manual", "formula", "agent", "synced"];
78
+ var COMPUTE_ON = ["read", "write"];
79
+ var FIELD_SENSITIVITIES = ["public", "internal", "confidential", "restricted"];
80
+ var DELIVERIES = ["inline", "on_demand", "auto"];
81
+ var CONTEXT_POLICIES = ["include", "summarize", "exclude", "on_request"];
82
+ var MERGE_FIELD_SOURCES = [
83
+ "literal",
84
+ "record",
85
+ "state",
86
+ "actor",
87
+ "platform",
88
+ "user_input",
89
+ "tool",
90
+ "derived"
91
+ ];
92
+ var MERGE_FIELD_SEMANTIC_TYPES = [
93
+ "value",
94
+ "reference",
95
+ "resolver",
96
+ "computed",
97
+ "collection"
98
+ ];
99
+ var MERGE_FIELD_MODIFIERS = [
100
+ "scoped",
101
+ "temporal",
102
+ "collection",
103
+ "live",
104
+ "fallback",
105
+ "formatted",
106
+ "required"
107
+ ];
108
+ var OVERRIDE_POLICIES = [
109
+ "must_supply",
110
+ "shown_overridable",
111
+ "shown_locked",
112
+ "server_fixed",
113
+ "derived"
114
+ ];
115
+ var FRESHNESS = ["live", "cached", "snapshot"];
116
+ var TABLE_DISPLAYS = ["list", "grid", "board", "calendar", "timeline"];
117
+
118
+ // src/aggregate.ts
119
+ function measureKey(measure) {
120
+ return measure.op === "count" ? "count" : `${measure.op}_${measure.key ?? ""}`;
121
+ }
122
+
123
+ // src/results.ts
124
+ function isRecordsErr(result) {
125
+ return result.ok === false;
126
+ }
127
+ var ok = (data) => ({ ok: true, data });
128
+ var err = (error) => ({ ok: false, error });
129
+
130
+ // src/store.generated.ts
131
+ var ACTOR_VOCABULARY = ["user", "agent", "system"];
132
+ var RETIRED_ACTOR_WORDS = { "ai": "agent", "code": "system", "human": "user" };
133
+ var ABSENCE_REASONS = ["never asked", "none", "refused", "conflicting"];
134
+ var VALUE_ENVELOPE_KEYS = ["ver", "src", "actor", "on_behalf_of", "at", "absent", "alternates", "dated"];
135
+ var VALUE_ALTERNATE_KEYS = ["value", "src", "rank"];
136
+ var STORAGE_MODES = ["light", "heavy"];
137
+ var RULE_USES = ["validate", "compute", "membership", "applicability"];
138
+ var PER_VALUE_ACCESS_WORDS = ["visibility", "access", "share", "acl", "permission", "permissions", "secret"];
139
+ var PARITY_FIELD_TYPES = [
140
+ { parity_type: "attachment", behavior: "relation", made_of: "REC-31: a File record reached through a relation, target the kernel `File` Table" },
141
+ { parity_type: "currency", behavior: "range", made_of: "FLD-N-1: a number whose UNIT is the currency and whose format is currency \u2014 on the Field, never in presentation" },
142
+ { parity_type: "datetime", behavior: "range", made_of: "a range of kind date or datetime \u2014 the dated modifier says the VALUES are dated, which is a different question" },
143
+ { parity_type: "email", behavior: "text", made_of: "text whose format is email" },
144
+ { parity_type: "formula", behavior: "formula", made_of: "FLD-9: a declared computation, on read or on write, evaluated by custom.rule_eval" },
145
+ { parity_type: "lookup", behavior: "formula", made_of: "a Value read THROUGH a relation \u2014 config.via names the relation field, config.pick the Value on the far side" },
146
+ { parity_type: "member", behavior: "relation", made_of: "a person: a relation whose target is the kernel `Person` Table" },
147
+ { parity_type: "multi_select", behavior: "list", made_of: "many choices from the same Table \u2014 the multi modifier, never a second behaviour" },
148
+ { parity_type: "percent", behavior: "range", made_of: "a number whose unit is % and whose format is percent" },
149
+ { parity_type: "phone", behavior: "text", made_of: "text whose format is phone" },
150
+ { parity_type: "rollup", behavior: "formula", made_of: "an aggregate ALONG a relation \u2014 config.via, config.of, config.agg; far-side ids are taken DISTINCT, so nothing is counted twice" },
151
+ { parity_type: "select", behavior: "list", made_of: "one choice from a Table shown as a list (FLD-5/FLD-6)" },
152
+ { parity_type: "url", behavior: "text", made_of: "text whose format is url, with the pattern Rule that makes the format enforceable" }
153
+ ];
154
+ var RULE_NODE_KINDS = [
155
+ { node: "add", evaluated_by: "W1-RULE" },
156
+ { node: "and", evaluated_by: "W1-RULE" },
157
+ { node: "concat", evaluated_by: "W1-RULE" },
158
+ { node: "const", evaluated_by: "W1-RULE" },
159
+ { node: "div", evaluated_by: "W1-RULE" },
160
+ { node: "eq", evaluated_by: "W1-RULE" },
161
+ { node: "field", evaluated_by: "W1-RULE" },
162
+ { node: "gt", evaluated_by: "W1-RULE" },
163
+ { node: "gte", evaluated_by: "W1-RULE" },
164
+ { node: "length", evaluated_by: "W1-RULE" },
165
+ { node: "lt", evaluated_by: "W1-RULE" },
166
+ { node: "lte", evaluated_by: "W1-RULE" },
167
+ { node: "matches", evaluated_by: "W1-RULE" },
168
+ { node: "merge_field", evaluated_by: "W5-MERGE-B" },
169
+ { node: "mul", evaluated_by: "W1-RULE" },
170
+ { node: "ne", evaluated_by: "W1-RULE" },
171
+ { node: "not", evaluated_by: "W1-RULE" },
172
+ { node: "or", evaluated_by: "W1-RULE" },
173
+ { node: "parent_field", evaluated_by: "W1-RULE-APPLY" },
174
+ { node: "present", evaluated_by: "W1-RULE" },
175
+ { node: "sub", evaluated_by: "W1-RULE" }
176
+ ];
177
+ var KERNEL_TABLES = [
178
+ { id: "11111111-0000-4000-8000-000000000002", name: "Field" },
179
+ { id: "11111111-0000-4000-8000-000000000006", name: "File" },
180
+ { id: "11111111-0000-4000-8000-000000000009", name: "Merge Field" },
181
+ { id: "11111111-0000-4000-8000-000000000004", name: "Organization" },
182
+ { id: "11111111-0000-4000-8000-000000000005", name: "Person" },
183
+ { id: "11111111-0000-4000-8000-000000000007", name: "Presentation" },
184
+ { id: "11111111-0000-4000-8000-000000000003", name: "Rule" },
185
+ { id: "11111111-0000-4000-8000-000000000001", name: "Table" },
186
+ { id: "11111111-0000-4000-8000-000000000008", name: "Widget" }
187
+ ];
188
+ var STORE_DOORS = [
189
+ { name: "absence_reasons", args: "", returns: "text[]", security: "invoker" },
190
+ { name: "actor_vocabulary", args: "", returns: "text[]", security: "invoker" },
191
+ { name: "actor_word", args: "p_declared text", returns: "text", security: "invoker" },
192
+ { name: "agent_context", args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 50", returns: "jsonb", security: "invoker" },
193
+ { name: "agg_assert_key", args: "p_key text", returns: "text", security: "invoker" },
194
+ { name: "agg_buckets", args: "", returns: "text[]", security: "invoker" },
195
+ { name: "agg_deliver", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid, p_channel text, p_recipient_user_id uuid, p_event_key text, p_subject text, p_body text, p_payload jsonb DEFAULT '{}'::jsonb", returns: "uuid", security: "invoker" },
196
+ { name: "agg_digest_run", args: "p_organization_id uuid, p_rule_id uuid DEFAULT NULL::uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "integer", security: "invoker" },
197
+ { name: "agg_explain", args: "p_organization_id uuid, p_table_id uuid, p_group_by jsonb DEFAULT '[]'::jsonb, p_measures jsonb DEFAULT '[]'::jsonb, p_bucket jsonb DEFAULT NULL::jsonb, p_filter jsonb DEFAULT '{}'::jsonb, p_required text DEFAULT 'viewer'::text", returns: "jsonb", security: "invoker" },
198
+ { name: "agg_operations", args: "", returns: "text[]", security: "invoker" },
199
+ { name: "agg_sql", args: "p_organization_id uuid, p_table_id uuid, p_group_by jsonb DEFAULT '[]'::jsonb, p_measures jsonb DEFAULT '[]'::jsonb, p_bucket jsonb DEFAULT NULL::jsonb, p_filter jsonb DEFAULT '{}'::jsonb, p_limit integer DEFAULT 200, p_required text DEFAULT 'viewer'::text", returns: "text", security: "invoker" },
200
+ { name: "agg_subscription_cadences", args: "", returns: "text[]", security: "invoker" },
201
+ { name: "agg_subscription_fire", args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_changed_field_ids jsonb DEFAULT '[]'::jsonb", returns: "integer", security: "invoker" },
202
+ { name: "agg_subscriptions", args: "p_organization_id uuid, p_saved_view_id uuid DEFAULT NULL::uuid, p_cadence text DEFAULT NULL::text", returns: "TABLE(rule_id uuid, saved_view_id uuid, cadence text, schedule text, channel text, recipient_user_id uuid, event_key text, name text)", security: "invoker" },
203
+ { name: "agg_value_sql", args: "p_key text", returns: "text", security: "invoker" },
204
+ { name: "agg_view_admits", args: "p_organization_id uuid, p_saved_view_id uuid, p_record_id uuid", returns: "boolean", security: "invoker" },
205
+ { name: "anon_capture", args: "p_organization_id uuid, p_client_key text, p_table_id uuid, p_payload jsonb, p_device text DEFAULT NULL::text, p_captured_at timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "uuid", security: "definer" },
206
+ { name: "anon_clear", args: "p_organization_id uuid, p_submission_id uuid", returns: "uuid", security: "definer" },
207
+ { name: "anon_inbound_land", args: "p_address text, p_secret text, p_payload jsonb, p_raw_payload jsonb DEFAULT '{}'::jsonb, p_client_key text DEFAULT NULL::text", returns: "uuid", security: "definer" },
208
+ { name: "anon_publish", args: "p_organization_id uuid, p_form_id uuid, p_published boolean DEFAULT true", returns: "timestamp with time zone", security: "definer" },
209
+ { name: "anon_rate_take", args: "p_organization_id uuid, p_form_id uuid, p_bucket text, p_token_id uuid DEFAULT NULL::uuid", returns: "integer", security: "definer" },
210
+ { name: "anon_token_issue", args: "p_organization_id uuid, p_mode text, p_allowed_origins jsonb, p_form_id uuid DEFAULT NULL::uuid, p_saved_view_id uuid DEFAULT NULL::uuid, p_record_id uuid DEFAULT NULL::uuid, p_expires_at timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "TABLE(token_id uuid, secret text)", security: "definer" },
211
+ { name: "anon_token_revoke", args: "p_organization_id uuid, p_token_id uuid", returns: "boolean", security: "definer" },
212
+ { name: "anon_token_verify", args: "p_secret text, p_origin text, p_required_mode text", returns: "TABLE(token_id uuid, organization_id uuid, form_id uuid, saved_view_id uuid, record_id uuid, mode text)", security: "definer" },
213
+ { name: "anon_write", args: "p_secret text, p_origin text, p_payload jsonb, p_client_key text DEFAULT NULL::text, p_raw_payload jsonb DEFAULT '{}'::jsonb", returns: "uuid", security: "definer" },
214
+ { name: "applicable_fields", args: "p_organization_id uuid, p_table_id uuid, p_record_type text DEFAULT NULL::text", returns: "SETOF custom.record", security: "definer" },
215
+ { name: "assert_client_may_reach", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
216
+ { name: "assert_organization_wall", args: "p_kind text, p_organization_id uuid, p_row jsonb", returns: "void", security: "invoker" },
217
+ { name: "assert_store_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
218
+ { name: "bump_epoch", args: "p_entity_type text, p_entity_id uuid, p_organization_id uuid DEFAULT NULL::uuid", returns: "bigint", security: "definer" },
219
+ { name: "cache_lookup", args: "p_container_type text, p_container_id uuid, p_item_type text, p_item_id uuid", returns: "permission_level", security: "definer" },
220
+ { name: "caller_role", args: "", returns: "name", security: "invoker" },
221
+ { name: "client_write_grants", args: "", returns: "TABLE(role_name text, object_name text, privilege text)", security: "invoker" },
222
+ { name: "computed_provenance", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(field_key text, field_id uuid, value jsonb, rule_id uuid, rule_version integer, computed_at timestamp with time zone)", security: "invoker" },
223
+ { name: "containment_chain", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(ancestor_id uuid, depth integer)", security: "invoker" },
224
+ { name: "containment_depth_ceiling", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "integer", security: "invoker" },
225
+ { name: "containment_edges", args: "p_organization_id uuid", returns: "TABLE(parent_id uuid, child_id uuid, via text)", security: "invoker" },
226
+ { name: "containment_parent", args: "p_data jsonb", returns: "uuid", security: "invoker" },
227
+ { name: "custom_fields_tables", args: "", returns: "TABLE(token text, schema_name text, table_name text)", security: "invoker" },
228
+ { name: "dependency_cycle", args: "p_organization_id uuid, p_row custom.record", returns: "text[]", security: "invoker" },
229
+ { name: "dependency_label", args: "p_organization_id uuid, p_node text", returns: "text", security: "invoker" },
230
+ { name: "derive_visibility", args: "p_container_type text, p_container_id uuid", returns: "TABLE(item_type text, item_id uuid, depth integer, max_level permission_level)", security: "definer" },
231
+ { name: "derived_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "invoker" },
232
+ { name: "derived_values", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
233
+ { name: "doc_content_hash", args: "p_body text", returns: "text", security: "invoker" },
234
+ { name: "doc_format_value", args: "p_field_data jsonb, p_value jsonb", returns: "text", security: "invoker" },
235
+ { name: "doc_render_body", args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid", returns: "text", security: "invoker" },
236
+ { name: "doc_render_document", args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid", returns: "uuid", security: "definer" },
237
+ { name: "doc_render_write", args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid, p_table_id uuid, p_template_version integer, p_body text, p_content_hash text", returns: "uuid", security: "definer" },
238
+ { name: "doc_sign", args: "p_organization_id uuid, p_render_id uuid, p_field_key text, p_signer_name text, p_signer_user_id uuid DEFAULT NULL::uuid", returns: "uuid", security: "definer" },
239
+ { name: "doc_signature_field_ok", args: "p_field_data jsonb", returns: "boolean", security: "invoker" },
240
+ { name: "doc_signature_intact", args: "p_organization_id uuid, p_signature_id uuid", returns: "jsonb", security: "invoker" },
241
+ { name: "doc_signature_write", args: "p_organization_id uuid, p_render_id uuid, p_record_id uuid, p_field_key text, p_signer_name text, p_signer_user_id uuid, p_document_hash text, p_document_version integer", returns: "uuid", security: "definer" },
242
+ { name: "doc_template_save", args: "p_organization_id uuid, p_table_id uuid, p_name text, p_body text, p_template_id uuid DEFAULT NULL::uuid", returns: "uuid", security: "definer" },
243
+ { name: "doc_token_pattern", args: "", returns: "text", security: "invoker" },
244
+ { name: "doc_tokens", args: "p_body text", returns: "TABLE(ordinal integer, raw text, field_id uuid)", security: "invoker" },
245
+ { name: "doc_unresolved_tokens", args: "p_organization_id uuid, p_table_id uuid, p_body text", returns: "TABLE(raw text, field_id uuid, why text)", security: "invoker" },
246
+ { name: "export_records", args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000", returns: "TABLE(id uuid, document jsonb)", security: "invoker" },
247
+ { name: "external_foreign_table_findings", args: "", returns: "SETOF text", security: "definer" },
248
+ { name: "external_history_event", args: "p_organization_id uuid, p_link_id uuid, p_operation text", returns: "bigint", security: "definer" },
249
+ { name: "external_rows", args: "p_organization_id uuid, p_source_id uuid", returns: "SETOF jsonb", security: "definer" },
250
+ { name: "external_source_declare", args: "p_organization_id uuid, p_tier text, p_connection_token text, p_external_schema text, p_external_table text, p_link_template text", returns: "uuid", security: "definer" },
251
+ { name: "external_stub_upsert", args: "p_organization_id uuid, p_source_id uuid, p_table_id uuid, p_external_key text, p_link_url text, p_cached_title text", returns: "uuid", security: "definer" },
252
+ { name: "external_tier_contract", args: "", returns: "jsonb", security: "definer" },
253
+ { name: "external_write_through", args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb", returns: "void", security: "definer" },
254
+ { name: "external_writes_set", args: "p_organization_id uuid, p_source_id uuid, p_enabled boolean", returns: "boolean", security: "definer" },
255
+ { name: "field_dependants", args: "p_organization_id uuid, p_field_id uuid", returns: "TABLE(kind text, dependant_id uuid, label text, how text)", security: "invoker" },
256
+ { name: "field_kernel_id", args: "", returns: "uuid", security: "invoker" },
257
+ { name: "field_options", args: "p_organization_id uuid, p_field_id uuid", returns: "SETOF custom.record", security: "invoker" },
258
+ { name: "field_rules", args: "p_field_data jsonb", returns: "TABLE(kind text, spec jsonb)", security: "invoker" },
259
+ { name: "file_kernel_id", args: "", returns: "uuid", security: "invoker" },
260
+ { name: "formula_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "invoker" },
261
+ { name: "has_visibility", args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level", returns: "boolean", security: "definer" },
262
+ { name: "has_visibility_at", args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level, p_organization_id uuid DEFAULT NULL::uuid, p_min_version bigint DEFAULT NULL::bigint", returns: "boolean", security: "definer" },
263
+ { name: "hidden_field_notice", args: "p_field custom.record, p_action text DEFAULT 'read'::text", returns: "jsonb", security: "invoker" },
264
+ { name: "home_add", args: "p_organization_id uuid, p_table_id uuid, p_home_record_id uuid", returns: "uuid", security: "invoker" },
265
+ { name: "home_relations", args: "", returns: "TABLE(table_id uuid, home_record_id uuid, organization_id uuid, relation_id uuid)", security: "invoker" },
266
+ { name: "index_payload", args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000", returns: "TABLE(id uuid, searchable text)", security: "invoker" },
267
+ { name: "intern_provenance", args: "p_data jsonb", returns: "jsonb", security: "invoker" },
268
+ { name: "io_changed_field_ids", args: "p_organization_id uuid, p_table_id uuid, p_old jsonb, p_new jsonb", returns: "jsonb", security: "invoker" },
269
+ { name: "io_changed_keys", args: "p_old jsonb, p_new jsonb", returns: "text[]", security: "invoker" },
270
+ { name: "io_comment_resolve", args: "p_organization_id uuid, p_comment_id uuid, p_resolved boolean DEFAULT true", returns: "boolean", security: "definer" },
271
+ { name: "io_comment_write", args: "p_organization_id uuid, p_record_id uuid, p_body text, p_anchor jsonb DEFAULT '{}'::jsonb, p_parent_comment_id uuid DEFAULT NULL::uuid", returns: "uuid", security: "definer" },
272
+ { name: "io_comments", args: "p_organization_id uuid, p_record_id uuid, p_include_resolved boolean DEFAULT false", returns: "TABLE(id uuid, body text, anchor jsonb, parent_comment_id uuid, created_by uuid, created_at timestamp with time zone, resolved_at timestamp with time zone, resolved_by uuid)", security: "definer" },
273
+ { name: "io_csv_escape", args: "p_value text, p_delimiter text DEFAULT ','::text", returns: "text", security: "invoker" },
274
+ { name: "io_csv_parse", args: "p_text text, p_delimiter text DEFAULT NULL::text", returns: "TABLE(row_number integer, cells text[])", security: "invoker" },
275
+ { name: "io_export", args: "p_organization_id uuid, p_table_id uuid, p_columns text[] DEFAULT NULL::text[], p_limit integer DEFAULT 10000, p_required text DEFAULT 'viewer'::text", returns: "jsonb", security: "definer" },
276
+ { name: "io_export_csv", args: "p_organization_id uuid, p_table_id uuid, p_columns text[] DEFAULT NULL::text[], p_limit integer DEFAULT 10000, p_delimiter text DEFAULT ','::text, p_required text DEFAULT 'viewer'::text", returns: "text", security: "definer" },
277
+ { name: "io_import_open", args: "p_organization_id uuid, p_table_id uuid, p_format text DEFAULT 'csv'::text, p_source_name text DEFAULT NULL::text, p_source_columns jsonb DEFAULT '[]'::jsonb", returns: "uuid", security: "definer" },
278
+ { name: "io_import_rows", args: "p_organization_id uuid, p_import_id uuid, p_rows jsonb, p_mapping jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
279
+ { name: "io_infer_type", args: "p_samples jsonb", returns: "text", security: "invoker" },
280
+ { name: "io_outbox_announce", args: "", returns: "trigger", security: "definer" },
281
+ { name: "io_outbox_drain", args: "p_organization_id uuid, p_consumer text, p_limit integer DEFAULT 100, p_event_key text DEFAULT 'records.changed'::text", returns: "TABLE(outbox_id uuid, record_id uuid, table_id uuid, operation text, changed_field_ids jsonb, actor jsonb, occurred_at timestamp with time zone)", security: "definer" },
282
+ { name: "io_outbox_release", args: "p_organization_id uuid, p_consumer text, p_older_than interval DEFAULT '00:15:00'::interval", returns: "integer", security: "definer" },
283
+ { name: "io_proposal_accept", args: "p_organization_id uuid, p_import_id uuid, p_column text, p_type text DEFAULT NULL::text, p_label text DEFAULT NULL::text", returns: "uuid", security: "definer" },
284
+ { name: "io_proposal_reject", args: "p_organization_id uuid, p_import_id uuid, p_column text", returns: "boolean", security: "definer" },
285
+ { name: "io_record_changed", args: "", returns: "trigger", security: "definer" },
286
+ { name: "io_restore", args: "p_organization_id uuid, p_record_id uuid, p_version integer", returns: "integer", security: "definer" },
287
+ { name: "io_revisions", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(version integer, changed_at timestamp with time zone, changed_by uuid, summary text)", security: "definer" },
288
+ { name: "lookup_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb", returns: "jsonb", security: "invoker" },
289
+ { name: "mask_document", args: "p_document jsonb, p_visible_keys text[], p_notices jsonb, p_by_id boolean DEFAULT false, p_key_ids jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
290
+ { name: "mask_document", args: "p_document jsonb, p_visible_keys text[], p_notices jsonb, p_by_id boolean DEFAULT false, p_key_ids jsonb DEFAULT '{}'::jsonb, p_declared_keys text[] DEFAULT NULL::text[]", returns: "jsonb", security: "invoker" },
291
+ { name: "merge_field_kernel_id", args: "", returns: "uuid", security: "invoker" },
292
+ { name: "migrate_delete", args: "p_organization_id uuid, p_record_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
293
+ { name: "migrate_demote", args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
294
+ { name: "migrate_extract_parent", args: "p_organization_id uuid, p_id uuid, p_parent_table_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
295
+ { name: "migrate_merge", args: "p_organization_id uuid, p_winner_id uuid, p_loser_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
296
+ { name: "migrate_promote", args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
297
+ { name: "migrate_purge", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true", returns: "jsonb", security: "invoker" },
298
+ { name: "migrate_rename", args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
299
+ { name: "migrate_reparent", args: "p_organization_id uuid, p_id uuid, p_parent_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
300
+ { name: "migrate_retype", args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
301
+ { name: "migrate_split", args: "p_organization_id uuid, p_record_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text", returns: "jsonb", security: "invoker" },
302
+ { name: "organization_references", args: "p_kind text, p_organization_id uuid, p_row jsonb", returns: "TABLE(site text, what text, ref_id uuid, openable boolean)", security: "invoker" },
303
+ { name: "parity_field_types", args: "", returns: "TABLE(parity_type text, behavior text, made_of text)", security: "invoker" },
304
+ { name: "parity_type", args: "p_field_data jsonb", returns: "text", security: "invoker" },
305
+ { name: "parity_values", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(field_key text, field_id uuid, parity_type text, behavior text, unit text, format text, value jsonb, value_version integer, actor text, written_at timestamp with time zone)", security: "invoker" },
306
+ { name: "per_value_access_words", args: "", returns: "text[]", security: "invoker" },
307
+ { name: "person_kernel_id", args: "", returns: "uuid", security: "invoker" },
308
+ { name: "promote_field", args: "p_organization_id uuid, p_table_id uuid, p_field_id uuid", returns: "jsonb", security: "invoker" },
309
+ { name: "promote_table", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
310
+ { name: "promoted_field_cap", args: "", returns: "integer", security: "invoker" },
311
+ { name: "promoted_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(field_id uuid, field_key text, parity_type text, is_unique boolean, value_path text, index_arm text, index_expr text, index_name text, indexable boolean, why_not text)", security: "invoker" },
312
+ { name: "promoted_index_arm", args: "p_field_data jsonb", returns: "text", security: "invoker" },
313
+ { name: "promoted_index_ddl", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(step integer, purpose text, statement text)", security: "invoker" },
314
+ { name: "promoted_index_expr", args: "p_field_data jsonb", returns: "text", security: "invoker" },
315
+ { name: "promoted_index_name", args: "p_table_id uuid, p_field_key text, p_unique boolean", returns: "text", security: "invoker" },
316
+ { name: "promoted_query_sql", args: "p_organization_id uuid, p_table_id uuid, p_field_key text", returns: "text", security: "invoker" },
317
+ { name: "promoted_read", args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_value text", returns: "SETOF uuid", security: "invoker" },
318
+ { name: "promoted_value_path", args: "p_field_data jsonb", returns: "text", security: "invoker" },
319
+ { name: "promotion_inline_ceiling", args: "", returns: "integer", security: "invoker" },
320
+ { name: "query_access_ids", args: "p_organization_id uuid, p_required text DEFAULT 'viewer'::text", returns: "uuid[]", security: "invoker" },
321
+ { name: "query_across_homes", args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_required text DEFAULT 'viewer'::text", returns: "TABLE(record_id uuid, home_record_id uuid, data jsonb, created_at timestamp with time zone)", security: "invoker" },
322
+ { name: "query_by_coordinates", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_coordinates jsonb DEFAULT '[]'::jsonb, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_required text DEFAULT 'viewer'::text", returns: "TABLE(record_id uuid, table_id uuid, data jsonb, coordinates_matched integer)", security: "invoker" },
323
+ { name: "query_can_see", args: "p_organization_id uuid, p_record_id uuid, p_required text DEFAULT 'viewer'::text", returns: "boolean", security: "invoker" },
324
+ { name: "query_hot_paths", args: "", returns: "TABLE(name text, statement text)", security: "invoker" },
325
+ { name: "query_hot_paths_prepared", args: "", returns: "TABLE(name text, prepared boolean, generic_plans bigint)", security: "invoker" },
326
+ { name: "query_is_store_owner", args: "", returns: "boolean", security: "invoker" },
327
+ { name: "query_prepare_hot", args: "", returns: "integer", security: "invoker" },
328
+ { name: "query_principal", args: "", returns: "uuid", security: "invoker" },
329
+ { name: "query_record_as_of", args: "p_organization_id uuid, p_record_id uuid, p_recorded_at timestamp with time zone DEFAULT NULL::timestamp with time zone, p_world_on date DEFAULT NULL::date, p_required text DEFAULT 'viewer'::text", returns: "jsonb", security: "invoker" },
330
+ { name: "query_relation_edges", args: "p_organization_id uuid, p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text", returns: "TABLE(parent_id uuid, child_id uuid, role text, flavor text)", security: "invoker" },
331
+ { name: "query_rollup", args: "p_organization_id uuid, p_roots uuid[], p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text, p_max_depth integer DEFAULT 33, p_required text DEFAULT 'viewer'::text", returns: "TABLE(record_id uuid, depth integer)", security: "invoker" },
332
+ { name: "query_rollup_sum", args: "p_organization_id uuid, p_roots uuid[], p_field_key text, p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text, p_max_depth integer DEFAULT 33, p_required text DEFAULT 'viewer'::text", returns: "numeric", security: "invoker" },
333
+ { name: "query_table_as_of", args: "p_organization_id uuid, p_table_id uuid, p_recorded_at timestamp with time zone DEFAULT NULL::timestamp with time zone, p_world_on date DEFAULT NULL::date, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_required text DEFAULT 'viewer'::text", returns: "TABLE(record_id uuid, data jsonb)", security: "invoker" },
334
+ { name: "query_table_homes", args: "p_organization_id uuid, p_table_id uuid", returns: "SETOF uuid", security: "invoker" },
335
+ { name: "query_visible_ids", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_required text DEFAULT 'viewer'::text", returns: "SETOF uuid", security: "invoker" },
336
+ { name: "reachable_from", args: "p_organization_id uuid, p_roots uuid[]", returns: "TABLE(record_id uuid, depth integer, via text)", security: "invoker" },
337
+ { name: "read_paths_outside_the_door", args: "", returns: "TABLE(object_name text, why text)", security: "invoker" },
338
+ { name: "read_record", args: "p_organization_id uuid, p_record_id uuid, p_by_id boolean DEFAULT false", returns: "jsonb", security: "definer" },
339
+ { name: "read_records", args: "p_organization_id uuid, p_table_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(id uuid, document jsonb, level permission_level)", security: "definer" },
340
+ { name: "record_aggregate", args: "p_organization_id uuid, p_table_id uuid, p_group_by jsonb DEFAULT '[]'::jsonb, p_measures jsonb DEFAULT '[]'::jsonb, p_bucket jsonb DEFAULT NULL::jsonb, p_filter jsonb DEFAULT '{}'::jsonb, p_limit integer DEFAULT 200, p_required text DEFAULT 'viewer'::text", returns: "TABLE(groups jsonb, measures jsonb, row_count bigint)", security: "invoker" },
341
+ { name: "record_applicability", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(rule_id uuid, rule_name text, rule_version integer, applies boolean, answer jsonb)", security: "invoker" },
342
+ { name: "record_delete", args: "p_organization_id uuid, p_record_id uuid", returns: "timestamp with time zone", security: "definer" },
343
+ { name: "record_reparent", args: "p_organization_id uuid, p_record_id uuid, p_parent_id uuid", returns: "void", security: "invoker" },
344
+ { name: "record_restore", args: "p_organization_id uuid, p_record_id uuid", returns: "void", security: "definer" },
345
+ { name: "record_update", args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb, p_expected_version integer DEFAULT NULL::integer", returns: "integer", security: "definer" },
346
+ { name: "record_values", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
347
+ { name: "record_values_versioned", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(field_key text, field_id uuid, value jsonb, value_version integer, source jsonb, absent_reason text, actor text, on_behalf_of text, written_at timestamp with time zone, alternates jsonb)", security: "invoker" },
348
+ { name: "record_write", args: "p_organization_id uuid, p_table_id uuid, p_data jsonb", returns: "uuid", security: "definer" },
349
+ { name: "relation_own", args: "p_organization_id uuid, p_owner_id uuid, p_target_id uuid", returns: "uuid", security: "invoker" },
350
+ { name: "relation_target_external", args: "p_connection_token text, p_external_table text, p_external_key text", returns: "jsonb", security: "definer" },
351
+ { name: "relation_target_ours", args: "p_entity_token text, p_row_id uuid", returns: "jsonb", security: "definer" },
352
+ { name: "relation_targets", args: "p_organization_id uuid, p_record_id uuid, p_via_key text", returns: "SETOF uuid", security: "invoker" },
353
+ { name: "reopen_declared_doors", args: "", returns: "TABLE(reopened text)", security: "definer" },
354
+ { name: "required_epoch", args: "p_container_type text, p_container_id uuid, p_item_type text, p_item_id uuid", returns: "bigint", security: "definer" },
355
+ { name: "resolve_first_match", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
356
+ { name: "resolve_id", args: "p_organization_id uuid, p_id uuid", returns: "uuid", security: "invoker" },
357
+ { name: "retired_actor_words", args: "", returns: "jsonb", security: "invoker" },
358
+ { name: "rollup_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb", returns: "jsonb", security: "invoker" },
359
+ { name: "rule_applies", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
360
+ { name: "rule_context", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
361
+ { name: "rule_dependency_edges", args: "p_organization_id uuid, p_row custom.record DEFAULT NULL::custom.record", returns: "TABLE(needs text, needed text)", security: "invoker" },
362
+ { name: "rule_eval", args: "p_organization_id uuid, p_expr jsonb, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
363
+ { name: "rule_field_key", args: "p_organization_id uuid, p_field_id uuid", returns: "text", security: "invoker" },
364
+ { name: "rule_field_label", args: "p_organization_id uuid, p_field_id uuid", returns: "text", security: "invoker" },
365
+ { name: "rule_kernel_id", args: "", returns: "uuid", security: "invoker" },
366
+ { name: "rule_members", args: "p_organization_id uuid, p_rule_id uuid", returns: "SETOF custom.record", security: "invoker" },
367
+ { name: "rule_membership", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
368
+ { name: "rule_node_kinds", args: "", returns: "TABLE(node text, evaluated_by text, note text)", security: "invoker" },
369
+ { name: "rule_run", args: "p_organization_id uuid, p_rule_id uuid, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
370
+ { name: "rule_truth", args: "p_answer jsonb", returns: "boolean", security: "invoker" },
371
+ { name: "rule_uses", args: "", returns: "text[]", security: "invoker" },
372
+ { name: "rule_version", args: "p_organization_id uuid, p_rule_id uuid", returns: "integer", security: "invoker" },
373
+ { name: "size_refusal", args: "p_organization_id uuid, p_data jsonb", returns: "text", security: "invoker" },
374
+ { name: "source_next_pointer", args: "p_sources jsonb", returns: "text", security: "invoker" },
375
+ { name: "source_pointer", args: "p_sources jsonb, p_source jsonb", returns: "text", security: "invoker" },
376
+ { name: "stamp_value_envelopes", args: "p_data jsonb, p_actor text, p_on_behalf_of text, p_at timestamp with time zone", returns: "jsonb", security: "invoker" },
377
+ { name: "storage_modes", args: "", returns: "text[]", security: "invoker" },
378
+ { name: "store_is_open", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "boolean", security: "invoker" },
379
+ { name: "table_capacity", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
380
+ { name: "table_declare", args: "p_organization_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
381
+ { name: "table_kernel_id", args: "", returns: "uuid", security: "invoker" },
382
+ { name: "table_record_ceiling", args: "", returns: "integer", security: "invoker" },
383
+ { name: "table_record_ceiling", args: "p_organization_id uuid", returns: "integer", security: "invoker" },
384
+ { name: "table_rules", args: "p_organization_id uuid, p_table_id uuid, p_use text, p_record_type text DEFAULT NULL::text", returns: "SETOF custom.record", security: "invoker" },
385
+ { name: "table_storage", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
386
+ { name: "table_type_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
387
+ { name: "tables_at_home", args: "p_organization_id uuid, p_home_ids uuid[]", returns: "TABLE(table_id uuid, home_record_id uuid, kind text)", security: "invoker" },
388
+ { name: "trg_associations_bump_visibility", args: "", returns: "trigger", security: "definer" },
389
+ { name: "validate_custom_fields", args: "p_token text, p_organization_id uuid, p_values jsonb", returns: "void", security: "invoker" },
390
+ { name: "validate_value_envelope", args: "p_organization_id uuid, p_fields custom.record[], p_data jsonb", returns: "void", security: "invoker" },
391
+ { name: "validate_values", args: "p_organization_id uuid, p_fields custom.record[], p_values jsonb, p_record_type text DEFAULT NULL::text", returns: "void", security: "invoker" },
392
+ { name: "value_alternate_keys", args: "", returns: "text[]", security: "invoker" },
393
+ { name: "value_envelope_keys", args: "", returns: "text[]", security: "invoker" },
394
+ { name: "value_envelope_ok", args: "p_data jsonb", returns: "boolean", security: "invoker" },
395
+ { name: "value_envelope_refusal", args: "p_data jsonb", returns: "text", security: "invoker" },
396
+ { name: "value_read", args: "p_organization_id uuid, p_record_id uuid, p_key text", returns: "TABLE(field_key text, field_id uuid, value jsonb, value_version integer, source jsonb, absent_reason text, actor text, on_behalf_of text, written_at timestamp with time zone, alternates jsonb)", security: "invoker" },
397
+ { name: "value_versions", args: "p_old jsonb, p_new jsonb", returns: "jsonb", security: "invoker" },
398
+ { name: "visibility_ancestors", args: "p_item_type text, p_item_id uuid", returns: "TABLE(container_type text, container_id uuid, depth integer, max_level permission_level)", security: "definer" },
399
+ { name: "visibility_cache_rebuild", args: "", returns: "integer", security: "definer" },
400
+ { name: "visibility_parity", args: "", returns: "TABLE(side text, container_type text, container_id uuid, item_type text, item_id uuid, stored_level permission_level, derived_level permission_level, reason text)", security: "definer" },
401
+ { name: "visibility_warm", args: "p_container_type text, p_container_id uuid", returns: "integer", security: "definer" },
402
+ { name: "visible_record_ids", args: "p_user_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level", returns: "TABLE(id uuid)", security: "definer" },
403
+ { name: "work_assignment_fields", args: "p_options_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(key text, label text, spec jsonb)", security: "invoker" },
404
+ { name: "work_has_assignment", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "invoker" },
405
+ { name: "work_instantiation_shape", args: "p_organization_id uuid, p_instantiation_id uuid", returns: "jsonb", security: "invoker" },
406
+ { name: "work_relation_kinds", args: "", returns: "TABLE(kind text, available boolean, why text)", security: "invoker" },
407
+ { name: "work_slot_expire", args: "p_organization_id uuid, p_table_id uuid", returns: "integer", security: "invoker" },
408
+ { name: "work_slot_hold", args: "p_organization_id uuid, p_table_id uuid, p_slot_key text, p_holder text, p_ttl interval DEFAULT '00:15:00'::interval", returns: "jsonb", security: "invoker" },
409
+ { name: "work_slot_holds", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(hold_id uuid, slot_key text, holder text, expires_at timestamp with time zone, expired boolean)", security: "invoker" },
410
+ { name: "work_slot_index_name", args: "p_table_id uuid", returns: "text", security: "invoker" },
411
+ { name: "work_slot_release", args: "p_organization_id uuid, p_hold_id uuid", returns: "boolean", security: "invoker" },
412
+ { name: "work_slots_declare", args: "p_organization_id uuid, p_name text, p_slug text, p_home_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "invoker" },
413
+ { name: "work_states", args: "", returns: "TABLE(sort integer, name text, terminal boolean, next text[])", security: "invoker" },
414
+ { name: "work_take_assignment", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
415
+ { name: "work_template_declare", args: "p_organization_id uuid, p_name text, p_graph jsonb", returns: "uuid", security: "invoker" },
416
+ { name: "work_template_instantiate", args: "p_organization_id uuid, p_template_id uuid, p_overrides jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
417
+ { name: "work_template_refusal", args: "p_graph jsonb", returns: "text", security: "invoker" },
418
+ { name: "work_template_shape", args: "p_organization_id uuid, p_template_id uuid", returns: "jsonb", security: "invoker" },
419
+ { name: "work_transition_refusal", args: "p_organization_id uuid, p_from_state_id uuid, p_to_state_id uuid", returns: "text", security: "invoker" },
420
+ { name: "work_whose_turn", args: "p_organization_id uuid, p_table_id uuid, p_include_finished boolean DEFAULT false", returns: "TABLE(record_id uuid, title text, assignee_id uuid, turn text, due_on timestamp with time zone, state text, status text, terminal boolean)", security: "invoker" }
421
+ ];
422
+ var STORE_KNOBS = [
423
+ { key: "accessible_entity_ids_guard", value: "false", type: "boolean" },
424
+ { key: "associations_guard", value: "false", type: "boolean" },
425
+ { key: "code_paths_enabled", value: "false", type: "boolean" },
426
+ { key: "containment_depth_ceiling", value: "16", type: "integer" },
427
+ { key: "document_max_bytes", value: "1048576", type: "integer" },
428
+ { key: "emergency_door_guard", value: "false", type: "boolean" },
429
+ { key: "emergency_door_sweep_enabled", value: "false", type: "boolean" },
430
+ { key: "entity_custom_fields_guard", value: "false", type: "boolean" },
431
+ { key: "entity_types_guard", value: "false", type: "boolean" },
432
+ { key: "external_principal_enabled", value: "false", type: "boolean" },
433
+ { key: "field_index_guard", value: "false", type: "boolean" },
434
+ { key: "field_sensitivity_levels", value: '{"edit": {"public": "editor", "internal": "editor", "restricted": "admin", "confidential": "admin"}, "read": {"public": "viewer", "internal": "viewer", "restricted": "admin", "confidential": "editor"}}', type: "json" },
435
+ { key: "member_default_level", value: '"viewer"', type: "string" },
436
+ { key: "row_versions_guard", value: "false", type: "boolean" },
437
+ { key: "sandbox_expanded_frame_height_px", value: "20000", type: "integer" },
438
+ { key: "sandbox_frame_height_px", value: "4000", type: "integer" },
439
+ { key: "sandbox_message_bytes", value: "65536", type: "integer" },
440
+ { key: "sandbox_org_components", value: "true", type: "boolean" },
441
+ { key: "signup_provisioning_guard", value: "false", type: "boolean" },
442
+ { key: "system_enabled", value: "false", type: "boolean" },
443
+ { key: "table_record_ceiling", value: "150000", type: "integer" },
444
+ { key: "value_max_bytes", value: "100000", type: "integer" },
445
+ { key: "world_publish_enabled", value: "false", type: "boolean" }
446
+ ];
447
+ var STORE_REFUSAL_CODES = [
448
+ { code: "02000", raised_by: "doc_render_body,doc_render_document,doc_sign,doc_signature_intact,doc_template_save,external_history_event,external_rows,external_stub_upsert,external_writes_set,migrate_delete,migrate_extract_parent,migrate_merge,migrate_rename,migrate_reparent,migrate_retype,migrate_split,read_record,record_delete,record_restore,record_update" },
449
+ { code: "0A000", raised_by: "external_rows,external_source_declare,external_write_through,promote_field,promoted_index_expr,promoted_query_sql,promoted_read,rule_eval,work_slots_declare" },
450
+ { code: "22004", raised_by: "_value_envelope,actor_word,agg_assert_key,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,doc_render_write,doc_sign,doc_signature_write,doc_template_save,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,home_add,io_comment_write,io_import_open,io_outbox_drain,io_restore,migrate_purge,migrate_split,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_restore,record_update,record_write,relation_own,table_declare,work_template_declare" },
451
+ { code: "22012", raised_by: "rule_eval" },
452
+ { code: "22023", raised_by: "_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,containment_parent,doc_render_body,doc_render_write,doc_signature_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,io_import_open,io_proposal_accept,migrate_merge,query_by_coordinates,query_rollup,record_update,rule_eval,rule_members,table_rules,work_slot_hold" },
453
+ { code: "23503", raised_by: "_containment_guard,_record_rule_uses,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,doc_sign,doc_template_save,home_add,io_comment_write,io_import_rows,io_proposal_accept,migrate_delete,migrate_demote,migrate_promote,promote_field,promote_table,record_applicability,record_reparent,relation_own,resolve_first_match,rule_applies,rule_eval,rule_members,rule_run,work_take_assignment,work_template_instantiate" },
454
+ { code: "23505", raised_by: "doc_sign,doc_signature_write,home_add,io_proposal_accept,work_slot_hold" },
455
+ { code: "23514", raised_by: "_containment_guard,_dated_values_guard,_derived_fields,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_rule_shape_guard,_rule_topology_guard,_table_shape_guard,_value_envelope,_work_shape_guard,doc_sign,doc_signature_write,doc_template_save,home_add,validate_value_envelope,validate_values,work_slots_declare,work_take_assignment,work_template_instantiate" },
456
+ { code: "40001", raised_by: "has_visibility_at" },
457
+ { code: "42501", raised_by: "_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_rule_definition_write,_store_door,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_reach,assert_store_door,external_write_through,io_comment_resolve,io_comment_write,io_restore,migrate_purge,promote_table,read_record,read_records" },
458
+ { code: "53400", raised_by: "anon_rate_take,promote_field" },
459
+ { code: "PT409", raised_by: "record_update" }
460
+ ];
461
+ var ENTITY_TOKENS = [
462
+ "access_delta_probe",
463
+ "access_delta_run",
464
+ "access_request",
465
+ "account_addon",
466
+ "acquisition_block",
467
+ "activity",
468
+ "admin_audit_log",
469
+ "admin_email_log",
470
+ "admin_markdown_sample",
471
+ "admin_user",
472
+ "admission_config",
473
+ "agent",
474
+ "agent_card",
475
+ "agent_definition_version",
476
+ "agent_drift_alert",
477
+ "agent_exemplar",
478
+ "agent_mandate_note",
479
+ "agent_prompt_remediation",
480
+ "agent_provision_legacy",
481
+ "agent_run",
482
+ "agent_run_stage",
483
+ "agent_schedule",
484
+ "agent_schedule_claim",
485
+ "agent_shortcut",
486
+ "agent_surface_binding",
487
+ "agent_template",
488
+ "agent_usage",
489
+ "agent_user_kv",
490
+ "ai_api",
491
+ "ai_endpoint",
492
+ "ai_model",
493
+ "ai_model_alias",
494
+ "ai_offering",
495
+ "ai_provider",
496
+ "ai_setting",
497
+ "analysis_result",
498
+ "anon_form",
499
+ "anon_function_birth_grandfather",
500
+ "anon_hit",
501
+ "anon_inbound",
502
+ "anon_replay",
503
+ "anon_submission",
504
+ "anon_token",
505
+ "api_field_warning",
506
+ "api_request_log",
507
+ "app",
508
+ "app_config",
509
+ "app_config_history",
510
+ "app_definition_version",
511
+ "app_error",
512
+ "app_execution",
513
+ "app_instance",
514
+ "app_log",
515
+ "app_log_muted_pattern",
516
+ "app_log_norm_exception",
517
+ "app_rate_limit",
518
+ "app_setting",
519
+ "app_sync_status",
520
+ "approach",
521
+ "artifact",
522
+ "assessment",
523
+ "assessment_item",
524
+ "assessment_result",
525
+ "assignment_session",
526
+ "assist",
527
+ "assist_producer_policy",
528
+ "assist_producer_policy_history",
529
+ "association_type",
530
+ "assurance_level",
531
+ "attempt",
532
+ "audit_broken_functions",
533
+ "audit_canonical_findings",
534
+ "audit_exemption",
535
+ "audit_function_deps",
536
+ "audit_function_runtime_probe",
537
+ "audit_m2m_candidates",
538
+ "audit_refresh_log",
539
+ "audit_stale_registry",
540
+ "audit_unregistered_candidates",
541
+ "bak_assoc_file_processed_document_20260812",
542
+ "bak_assoc_type_file_processed_document_20260812",
543
+ "bak_organization_name_dd043",
544
+ "base_entity_template",
545
+ "batch_cost_event",
546
+ "batch_provider_batch",
547
+ "batch_work_item",
548
+ "billing_capability",
549
+ "billing_capability_limit",
550
+ "billing_connect_account",
551
+ "billing_customer",
552
+ "billing_plan",
553
+ "billing_plan_limit",
554
+ "billing_price",
555
+ "billing_product",
556
+ "billing_spend_guardrail",
557
+ "billing_stripe_event",
558
+ "billing_subscription",
559
+ "billing_usage_ledger",
560
+ "billing_user_plan",
561
+ "browser_account_binding",
562
+ "browser_action_event",
563
+ "browser_authenticator_window",
564
+ "browser_capture",
565
+ "browser_control_request",
566
+ "browser_handoff",
567
+ "browser_login_attempt",
568
+ "browser_login_recipe",
569
+ "browser_profile",
570
+ "browser_profile_checkpoint",
571
+ "browser_run",
572
+ "browser_site_observation",
573
+ "browser_site_policy",
574
+ "browser_stream_ticket",
575
+ "build_lock",
576
+ "calendar_event",
577
+ "canvas_comment",
578
+ "canvas_comment_like",
579
+ "canvas_item",
580
+ "canvas_item_state",
581
+ "canvas_like",
582
+ "canvas_score",
583
+ "canvas_view",
584
+ "capture_window",
585
+ "carrying_rule",
586
+ "catalog_entries_history",
587
+ "catalog_entry",
588
+ "category",
589
+ "change_type_default",
590
+ "chat_user_usage_summary",
591
+ "citations",
592
+ "class_purchase",
593
+ "classifier_revision_ledger",
594
+ "client_callable_door",
595
+ "client_callable_door_retirement",
596
+ "client_excluded_column_unregistered",
597
+ "cmp_entry",
598
+ "cmp_feedback",
599
+ "code_file",
600
+ "code_folder",
601
+ "code_repository",
602
+ "coding_session",
603
+ "coding_session_entry",
604
+ "comment",
605
+ "commerce_asset_allocation",
606
+ "commerce_asset_grading",
607
+ "commerce_asset_identifier",
608
+ "commerce_asset_lot_event",
609
+ "commerce_asset_mandate_result",
610
+ "commerce_asset_price_factor",
611
+ "commerce_asset_reshoot_request",
612
+ "commerce_asset_review",
613
+ "commerce_asset_unknown",
614
+ "commerce_certified_printer",
615
+ "commerce_cloud_sync_connection",
616
+ "commerce_ebay_business_policy",
617
+ "commerce_ebay_category",
618
+ "commerce_ebay_category_aspect",
619
+ "commerce_ebay_category_tree",
620
+ "commerce_ebay_custom_policy",
621
+ "commerce_ebay_inventory_item",
622
+ "commerce_ebay_inventory_item_group",
623
+ "commerce_ebay_inventory_item_group_member",
624
+ "commerce_ebay_inventory_location",
625
+ "commerce_ebay_listing",
626
+ "commerce_ebay_marketplace_policy",
627
+ "commerce_ebay_media_asset",
628
+ "commerce_ebay_notification_destination",
629
+ "commerce_ebay_notification_event",
630
+ "commerce_ebay_notification_subscription",
631
+ "commerce_ebay_notification_topic",
632
+ "commerce_ebay_offer",
633
+ "commerce_ebay_order",
634
+ "commerce_ebay_order_line_item",
635
+ "commerce_ebay_shipping_fulfillment",
636
+ "commerce_ebay_store_category",
637
+ "commerce_human_correction",
638
+ "commerce_intake_artifact",
639
+ "commerce_intake_asset",
640
+ "commerce_intake_batch",
641
+ "commerce_label_batch",
642
+ "commerce_label_code",
643
+ "commerce_marketplace_account",
644
+ "commerce_marketplace_account_deletion_audit",
645
+ "commerce_marketplace_api_call",
646
+ "commerce_marketplace_rate_budget",
647
+ "commerce_marketplace_site",
648
+ "commerce_marketplace_sync_run",
649
+ "commerce_prediction_outcome",
650
+ "commerce_print_order",
651
+ "commerce_product",
652
+ "commerce_product_channel_ref",
653
+ "commerce_product_media",
654
+ "commerce_product_variant",
655
+ "commerce_recall_audit",
656
+ "comparison_set",
657
+ "component_group",
658
+ "contact_medium",
659
+ "contact_submission",
660
+ "content_certification",
661
+ "content_ir_kind",
662
+ "content_ir_kind_component",
663
+ "content_ir_kind_component_incident",
664
+ "content_ir_kind_conformance",
665
+ "content_ir_kind_edge",
666
+ "content_ir_kind_example",
667
+ "content_ir_kind_instance",
668
+ "content_ir_kind_surface",
669
+ "context_access_log",
670
+ "context_item",
671
+ "context_item_suggestion",
672
+ "context_item_value",
673
+ "context_value_refs",
674
+ "conversation",
675
+ "conversation_value",
676
+ "courts",
677
+ "credential_attachment",
678
+ "credential_item",
679
+ "credential_mutation_receipt",
680
+ "crm_address",
681
+ "crm_affiliation",
682
+ "crm_blocklist_entry",
683
+ "crm_contact_candidate",
684
+ "crm_deal",
685
+ "crm_deal_stage_event",
686
+ "crm_enrichment_call",
687
+ "crm_interaction",
688
+ "crm_merge_candidate",
689
+ "crm_outreach_list",
690
+ "crm_outreach_list_member",
691
+ "crm_party_merge",
692
+ "crm_registry_ingest_run",
693
+ "crm_registry_source",
694
+ "crm_saved_view",
695
+ "crm_sending_event",
696
+ "crm_sending_identity",
697
+ "crm_sending_identity_check",
698
+ "crm_sending_policy",
699
+ "custom_entity_definition",
700
+ "custom_field_definition",
701
+ "custom_field_target",
702
+ "custom_record",
703
+ "cx_agent_memory",
704
+ "cx_agent_plan",
705
+ "cx_agent_task",
706
+ "cx_code_edit",
707
+ "cx_code_message_file",
708
+ "cx_conversation_documents",
709
+ "cx_media",
710
+ "cx_observational_memory",
711
+ "cx_observational_memory_event",
712
+ "cx_pending_injection",
713
+ "cx_request",
714
+ "cx_request_snapshot",
715
+ "cx_tool_trace",
716
+ "cx_user_request",
717
+ "cx_user_todo",
718
+ "dashboard_saved_view",
719
+ "data_rights_event",
720
+ "data_store",
721
+ "data_store_members",
722
+ "dataset",
723
+ "dd171_containment_baseline",
724
+ "dd175_cast",
725
+ "dd175_component_lane_baseline",
726
+ "ddl_guard_log",
727
+ "deck_suggestion",
728
+ "definer_class_exemption",
729
+ "definer_client_grant_grandfather",
730
+ "definer_grant_baseline",
731
+ "deprecated_relation",
732
+ "derive_run",
733
+ "dev_login_audit",
734
+ "dict_entry",
735
+ "dict_provider_publication",
736
+ "dict_setting",
737
+ "dm_conversation",
738
+ "dm_message",
739
+ "dm_participant",
740
+ "doc_render",
741
+ "doc_signature",
742
+ "dockets",
743
+ "domain_classification",
744
+ "edge_payload_kind",
745
+ "egress_device",
746
+ "egress_pairing",
747
+ "egress_ticket",
748
+ "emails",
749
+ "embedding_cache",
750
+ "embeddings_google_gemini_2_1536",
751
+ "embeddings_oai_3_small_1536",
752
+ "embeddings_voyage_4_large_1024",
753
+ "embeddings_voyage_code_3_1024",
754
+ "endpoint_family_sweep_state",
755
+ "engine_owner_task",
756
+ "entity_grant",
757
+ "entity_relationship",
758
+ "entity_type",
759
+ "esign_campaign",
760
+ "esign_campaign_member",
761
+ "esign_consent_disclosure",
762
+ "esign_envelope",
763
+ "esign_envelope_certificate",
764
+ "esign_envelope_document",
765
+ "esign_envelope_event",
766
+ "esign_envelope_external_ref",
767
+ "esign_envelope_signer",
768
+ "esign_provider",
769
+ "esign_provider_binding",
770
+ "esign_signing_key",
771
+ "execution_event_cursor",
772
+ "extension_auth_code",
773
+ "external_link",
774
+ "external_source",
775
+ "extract_sweep_state",
776
+ "fc_card",
777
+ "fc_detail",
778
+ "fc_set",
779
+ "feature_doc",
780
+ "feature_knob",
781
+ "feedback_comments",
782
+ "feedback_user_messages",
783
+ "field_component",
784
+ "file",
785
+ "file_analysis",
786
+ "file_entities",
787
+ "file_overrides",
788
+ "file_page_annotations",
789
+ "file_pages",
790
+ "file_rag_job",
791
+ "file_version",
792
+ "files_account_tier",
793
+ "files_machine_written_prefix",
794
+ "files_sync_mapping",
795
+ "files_user_account",
796
+ "flashcard_data",
797
+ "flashcard_history",
798
+ "flashcard_review",
799
+ "flashcard_set",
800
+ "flashcard_sets",
801
+ "flexible_data",
802
+ "folder",
803
+ "function_contract",
804
+ "game_badge",
805
+ "game_result",
806
+ "game_room",
807
+ "global_execution",
808
+ "global_execution_checkpoint",
809
+ "global_execution_control",
810
+ "global_execution_event",
811
+ "global_meter_entry",
812
+ "global_origin",
813
+ "global_request",
814
+ "google_document",
815
+ "growth_loop_event",
816
+ "growth_loop_run",
817
+ "growth_loop_stage_run",
818
+ "guardian_link",
819
+ "guest_conversion_audit",
820
+ "guest_execution_log",
821
+ "guest_executions",
822
+ "guided_checklist_run",
823
+ "heatmap_save",
824
+ "hindsight_enrollment",
825
+ "hindsight_finding",
826
+ "hindsight_regression_case",
827
+ "hindsight_replay",
828
+ "hindsight_replay_step",
829
+ "hindsight_review",
830
+ "hr_access_audit",
831
+ "hr_access_role",
832
+ "hr_accommodation_request",
833
+ "hr_ai_evidence",
834
+ "hr_alert_routing_rule",
835
+ "hr_application",
836
+ "hr_approval_authority",
837
+ "hr_approval_delegation",
838
+ "hr_asset",
839
+ "hr_asset_assignment",
840
+ "hr_attendance_exception",
841
+ "hr_auto_close_rule",
842
+ "hr_availability",
843
+ "hr_background_check",
844
+ "hr_benefits_event",
845
+ "hr_calculation_snapshot",
846
+ "hr_candidate",
847
+ "hr_candidate_conversion",
848
+ "hr_candidate_message",
849
+ "hr_careers_portal",
850
+ "hr_checklist_item",
851
+ "hr_checklist_run",
852
+ "hr_checklist_template",
853
+ "hr_checklist_template_item",
854
+ "hr_compensation",
855
+ "hr_corrective_action",
856
+ "hr_course",
857
+ "hr_course_version",
858
+ "hr_credential",
859
+ "hr_crew",
860
+ "hr_deduction_code",
861
+ "hr_department",
862
+ "hr_derived_grant",
863
+ "hr_disposition_event",
864
+ "hr_earning_code",
865
+ "hr_eeo_response",
866
+ "hr_emergency_contact",
867
+ "hr_employee",
868
+ "hr_employee_private",
869
+ "hr_employer_profile",
870
+ "hr_employment",
871
+ "hr_employment_pin",
872
+ "hr_engagement",
873
+ "hr_establishment",
874
+ "hr_external_identity",
875
+ "hr_field_policy",
876
+ "hr_holiday",
877
+ "hr_holiday_calendar",
878
+ "hr_i9",
879
+ "hr_i9_document",
880
+ "hr_incident",
881
+ "hr_incident_party",
882
+ "hr_interview",
883
+ "hr_interview_kit",
884
+ "hr_job_title",
885
+ "hr_jurisdiction",
886
+ "hr_jurisdiction_rule",
887
+ "hr_jurisdiction_rule_class",
888
+ "hr_jurisdiction_rule_org_decision",
889
+ "hr_jurisdiction_rule_test",
890
+ "hr_kiosk_device",
891
+ "hr_kiosk_session",
892
+ "hr_labor_target",
893
+ "hr_leave_case",
894
+ "hr_leave_enrollment",
895
+ "hr_leave_ledger",
896
+ "hr_leave_policy",
897
+ "hr_leave_request",
898
+ "hr_legal_hold",
899
+ "hr_legal_hold_item",
900
+ "hr_location",
901
+ "hr_new_hire_report",
902
+ "hr_offer",
903
+ "hr_opening",
904
+ "hr_overtime_alert",
905
+ "hr_overtime_alert_rule",
906
+ "hr_overtime_preapproval",
907
+ "hr_pay_group",
908
+ "hr_pay_period",
909
+ "hr_pay_period_employment",
910
+ "hr_payroll_export",
911
+ "hr_payroll_export_line",
912
+ "hr_position_assignment",
913
+ "hr_posting",
914
+ "hr_posting_publication",
915
+ "hr_provider_binding",
916
+ "hr_provider_event",
917
+ "hr_provisioning_result",
918
+ "hr_punch",
919
+ "hr_recalculation_batch",
920
+ "hr_record_class",
921
+ "hr_records_request",
922
+ "hr_reference_check",
923
+ "hr_reporting_line",
924
+ "hr_requisition",
925
+ "hr_restricted_note",
926
+ "hr_retention_rule",
927
+ "hr_role_assignment",
928
+ "hr_schedule",
929
+ "hr_schedule_change",
930
+ "hr_schedule_guidance",
931
+ "hr_schedule_template",
932
+ "hr_schedule_template_shift",
933
+ "hr_scorecard",
934
+ "hr_separation",
935
+ "hr_shift",
936
+ "hr_shift_claim",
937
+ "hr_staffing_requirement",
938
+ "hr_survey",
939
+ "hr_survey_invitation",
940
+ "hr_survey_question",
941
+ "hr_survey_response",
942
+ "hr_tax_registration",
943
+ "hr_tax_withholding",
944
+ "hr_time_adjustment",
945
+ "hr_training_assignment",
946
+ "hr_training_attempt",
947
+ "hr_transcript_entry",
948
+ "hr_verification_letter_request",
949
+ "hr_work_interval",
950
+ "hr_workflow_binding",
951
+ "hr_workflow_decision",
952
+ "hr_workflow_definition",
953
+ "hr_workflow_event",
954
+ "hr_workflow_failure",
955
+ "hr_workflow_flow_type",
956
+ "hr_workflow_instance",
957
+ "hr_workflow_step",
958
+ "hr_workflow_step_definition",
959
+ "hr_workweek",
960
+ "html_extraction",
961
+ "iam_access_audit",
962
+ "iam_api_key",
963
+ "iam_emergency_door_request",
964
+ "idempotency",
965
+ "industry",
966
+ "industry_curator",
967
+ "infra_status",
968
+ "ingest_runs",
969
+ "integration_connection",
970
+ "integration_connection_resource",
971
+ "interview_decision_interview",
972
+ "interview_decision_question",
973
+ "interview_document_revision",
974
+ "interview_hole",
975
+ "interview_question",
976
+ "interview_session",
977
+ "interview_turn",
978
+ "invitation",
979
+ "invitation_code",
980
+ "invitation_request",
981
+ "io_comment",
982
+ "io_contract",
983
+ "io_import",
984
+ "io_outbox",
985
+ "item",
986
+ "item_mastery",
987
+ "judge_verdict",
988
+ "jurisdiction_policy",
989
+ "keyword_classification_queue",
990
+ "kg_alert",
991
+ "kg_chunk_entities",
992
+ "kg_chunks",
993
+ "kg_clusters",
994
+ "kg_edges",
995
+ "kg_entities",
996
+ "kg_entity_aliases",
997
+ "kg_suggestion_ack",
998
+ "kg_sweep_queue",
999
+ "kg_sweep_run",
1000
+ "kg_sweep_state",
1001
+ "kg_value_match",
1002
+ "knob_override",
1003
+ "knob_override_audit",
1004
+ "knob_rung_lock",
1005
+ "knob_scope_kind",
1006
+ "knob_write_door",
1007
+ "league_membership",
1008
+ "learn_doc",
1009
+ "library_doc",
1010
+ "lifecycle_archive",
1011
+ "lifecycle_archive_row",
1012
+ "lifecycle_audit",
1013
+ "lifecycle_entity_plan",
1014
+ "lifecycle_map_build",
1015
+ "lifecycle_reference_map",
1016
+ "lifecycle_run",
1017
+ "lifecycle_tier_ledger",
1018
+ "location",
1019
+ "mandate",
1020
+ "mandate_advance_batch_row",
1021
+ "mandate_binding",
1022
+ "mandate_binding_legacy",
1023
+ "mandate_legacy",
1024
+ "mandate_observation",
1025
+ "mandate_reference",
1026
+ "mandate_scan",
1027
+ "mandate_treatment",
1028
+ "marketing_initiative",
1029
+ "masterwork_corpus_item",
1030
+ "masterwork_run",
1031
+ "masterwork_run_kind",
1032
+ "masterwork_source",
1033
+ "math_course_structure",
1034
+ "math_problem",
1035
+ "matrx_action_ledger",
1036
+ "mcp_config",
1037
+ "mcp_server",
1038
+ "mcp_user_conn",
1039
+ "media_capture_handoff",
1040
+ "media_catalog_setting",
1041
+ "media_library_item",
1042
+ "media_selection_item",
1043
+ "media_selection_job",
1044
+ "media_source_library",
1045
+ "meet_call_invite",
1046
+ "meet_meeting",
1047
+ "meet_note",
1048
+ "meet_participant",
1049
+ "meet_recording",
1050
+ "meet_transcript_segment",
1051
+ "membership",
1052
+ "membership_grant",
1053
+ "merge_field_provenance",
1054
+ "message",
1055
+ "message_template",
1056
+ "meta_excluded_schema",
1057
+ "meta_table_stats_history",
1058
+ "metadata_reserved_keys",
1059
+ "microservice_project",
1060
+ "migration_log",
1061
+ "mtx_media_heal_queue",
1062
+ "mtx_public_url_guard",
1063
+ "ner_shadow",
1064
+ "note",
1065
+ "note_folder",
1066
+ "notification",
1067
+ "notification_channel_preference",
1068
+ "notification_event_override",
1069
+ "notification_event_type",
1070
+ "notification_preference",
1071
+ "notify_outsider_door_baseline",
1072
+ "oauth_handoff_claim",
1073
+ "opinion_clusters",
1074
+ "opinions",
1075
+ "ops_issue_class",
1076
+ "ops_issue_event",
1077
+ "ops_proof_check",
1078
+ "ops_proof_run",
1079
+ "ops_proof_scenario",
1080
+ "org_admin_audit",
1081
+ "org_change_policy",
1082
+ "org_context_ledger",
1083
+ "org_industries",
1084
+ "org_member_control",
1085
+ "org_module_config",
1086
+ "org_plan",
1087
+ "org_repair_0253_backup",
1088
+ "organization",
1089
+ "organization_preferences",
1090
+ "organization_visibility_version",
1091
+ "output_feedback",
1092
+ "outreach_acceptance",
1093
+ "page_extraction_job",
1094
+ "page_extraction_page_run",
1095
+ "page_extraction_results",
1096
+ "page_extraction_runs",
1097
+ "page_intent_queue",
1098
+ "page_mapping_queue",
1099
+ "part_config",
1100
+ "part_config_sub",
1101
+ "party",
1102
+ "party_contact_point",
1103
+ "path_drift_repair_2026_09",
1104
+ "pc_article",
1105
+ "pc_episode",
1106
+ "pc_show",
1107
+ "pc_studio_run",
1108
+ "pc_studio_run_asset",
1109
+ "pdf_consolidation_log",
1110
+ "pdf_redaction_audit",
1111
+ "pdf_redaction_key_escrow",
1112
+ "permission_grant",
1113
+ "plan_cms_fill_item",
1114
+ "plan_cms_fill_job",
1115
+ "plan_entity",
1116
+ "plan_node",
1117
+ "plan_node_artifact",
1118
+ "plan_node_step",
1119
+ "plan_profile",
1120
+ "platform_actor_session",
1121
+ "platform_actor_token",
1122
+ "platform_actor_token_event",
1123
+ "platform_continued_access",
1124
+ "platform_org_knob_override",
1125
+ "platform_outcome_event",
1126
+ "platform_outsider_consumer",
1127
+ "platform_reachability",
1128
+ "platform_reference_category",
1129
+ "platform_reference_declaration",
1130
+ "platform_repo",
1131
+ "platform_saved_view",
1132
+ "platform_schema",
1133
+ "platform_share_link",
1134
+ "platform_user_knob_override",
1135
+ "podcast_race",
1136
+ "policy_overlap_backup",
1137
+ "policy_overlap_probe",
1138
+ "processed_document",
1139
+ "processed_document_page",
1140
+ "product_capture_file",
1141
+ "product_capture_item",
1142
+ "product_capture_payload",
1143
+ "product_capture_product",
1144
+ "product_capture_question",
1145
+ "profile",
1146
+ "project",
1147
+ "prompt",
1148
+ "provider_account",
1149
+ "provider_account_credential",
1150
+ "provision",
1151
+ "provision_generate_target",
1152
+ "provision_grant",
1153
+ "provision_marker",
1154
+ "provision_rule_message",
1155
+ "provision_schema",
1156
+ "provision_shape_debt",
1157
+ "provision_spec",
1158
+ "provision_spec_grandfather",
1159
+ "provision_vocabulary",
1160
+ "purpose",
1161
+ "quiz_session",
1162
+ "rag_ingest_run",
1163
+ "rag_library_audit_log",
1164
+ "rate_limit_buckets",
1165
+ "recompute_queue",
1166
+ "record",
1167
+ "record_alias",
1168
+ "redaction_mapping",
1169
+ "research_analysis",
1170
+ "research_content",
1171
+ "research_context_bundle",
1172
+ "research_document",
1173
+ "research_intent",
1174
+ "research_keyword",
1175
+ "research_media",
1176
+ "research_source",
1177
+ "research_synthesis",
1178
+ "research_tag",
1179
+ "research_template",
1180
+ "research_topic",
1181
+ "retention_policy",
1182
+ "retrieval_audit",
1183
+ "review_queue",
1184
+ "route_manifest_entry",
1185
+ "row_version",
1186
+ "rulebook",
1187
+ "runtime_operation_stream",
1188
+ "runtime_operation_stream_batch",
1189
+ "sandbox_instance",
1190
+ "sch_agent_task",
1191
+ "sch_run",
1192
+ "sch_task",
1193
+ "sch_trigger",
1194
+ "schema_client_exposure",
1195
+ "schema_migration_ledger",
1196
+ "schema_migration_legacy",
1197
+ "schema_migration_slot_grandfather",
1198
+ "schema_templates",
1199
+ "scope",
1200
+ "scope_association_suggestion",
1201
+ "scope_dataset_instance",
1202
+ "scope_door_registry",
1203
+ "scope_item_value_suggestion",
1204
+ "scope_suggestion",
1205
+ "scope_type",
1206
+ "scrape_domain",
1207
+ "scrape_domain_settings",
1208
+ "scrape_failure_log",
1209
+ "scrape_parsed_page",
1210
+ "scrape_path_override",
1211
+ "scrape_path_pattern",
1212
+ "scrape_retry_queue",
1213
+ "seo_ai_capability",
1214
+ "seo_ai_visibility_citation",
1215
+ "seo_ai_visibility_claim",
1216
+ "seo_ai_visibility_panel",
1217
+ "seo_ai_visibility_response",
1218
+ "seo_ai_visibility_signal",
1219
+ "seo_backlink",
1220
+ "seo_backlink_change_event",
1221
+ "seo_backlink_dimension_snapshot",
1222
+ "seo_backlink_observation",
1223
+ "seo_backlink_snapshot",
1224
+ "seo_change_assessment",
1225
+ "seo_change_event",
1226
+ "seo_change_item",
1227
+ "seo_change_metric",
1228
+ "seo_change_set",
1229
+ "seo_change_theory",
1230
+ "seo_collection_run",
1231
+ "seo_competitor",
1232
+ "seo_competitor_observation",
1233
+ "seo_competitor_opportunity",
1234
+ "seo_coverage_mention",
1235
+ "seo_coverage_tracker",
1236
+ "seo_dimension_value_matcher",
1237
+ "seo_engine_schedule",
1238
+ "seo_geo_place",
1239
+ "seo_gsc_dig_rule",
1240
+ "seo_keyword",
1241
+ "seo_keyword_class_rule",
1242
+ "seo_keyword_edge",
1243
+ "seo_keyword_facet",
1244
+ "seo_keyword_market",
1245
+ "seo_keyword_market_observation",
1246
+ "seo_keyword_place",
1247
+ "seo_keyword_saved_view",
1248
+ "seo_keyword_topic",
1249
+ "seo_landscape_brief",
1250
+ "seo_link_gap_domain",
1251
+ "seo_link_gap_match",
1252
+ "seo_map_facet",
1253
+ "seo_map_facet_value",
1254
+ "seo_map_topic",
1255
+ "seo_page_measurement_health",
1256
+ "seo_page_performance",
1257
+ "seo_provider_call",
1258
+ "seo_provider_task",
1259
+ "seo_rank_observation",
1260
+ "seo_rank_target",
1261
+ "seo_raw_payload",
1262
+ "seo_referring_domain_profile",
1263
+ "seo_reputation_case",
1264
+ "seo_search_performance_daily",
1265
+ "seo_serp_mention",
1266
+ "seo_serp_opportunity",
1267
+ "seo_serp_result",
1268
+ "seo_serp_snapshot",
1269
+ "seo_site_geo_area",
1270
+ "seo_site_keyword_offering",
1271
+ "seo_site_keyword_value",
1272
+ "seo_site_offering_value",
1273
+ "seo_site_topic_value",
1274
+ "seo_site_value_combo",
1275
+ "seo_site_value_worth",
1276
+ "seo_site_vocabulary",
1277
+ "seo_source_request",
1278
+ "seo_starter_pack",
1279
+ "seo_starter_pack_item",
1280
+ "seo_story_angle",
1281
+ "seo_topic",
1282
+ "seo_topical_map",
1283
+ "seo_web_analytics_daily",
1284
+ "share_link",
1285
+ "shareable_resource_registry",
1286
+ "shared_canvas_item",
1287
+ "short_link",
1288
+ "shortcut_category",
1289
+ "skill",
1290
+ "skill_category",
1291
+ "skill_render_definition",
1292
+ "sms_consent",
1293
+ "sms_conversation",
1294
+ "sms_message",
1295
+ "sms_message_media",
1296
+ "sms_notification",
1297
+ "sms_notification_preference",
1298
+ "sms_phone_number",
1299
+ "sms_rate_limits",
1300
+ "sms_webhook_logs",
1301
+ "soft_delete_edge",
1302
+ "source_authority",
1303
+ "stage_dockets_966c18eca7",
1304
+ "stage_ref_kind",
1305
+ "stamped_write_table",
1306
+ "structure",
1307
+ "structured_list",
1308
+ "studio_cleaned_segments",
1309
+ "studio_concept_items",
1310
+ "studio_documents",
1311
+ "studio_module_segments",
1312
+ "studio_raw_segments",
1313
+ "studio_recording_chunks",
1314
+ "studio_recording_segments",
1315
+ "studio_run",
1316
+ "studio_session",
1317
+ "studio_session_settings",
1318
+ "study_attempt",
1319
+ "study_goal",
1320
+ "study_media",
1321
+ "study_plan",
1322
+ "study_plan_block",
1323
+ "study_plan_day",
1324
+ "study_reminder_context",
1325
+ "study_reminder_delivery",
1326
+ "study_session",
1327
+ "study_source_chunk",
1328
+ "study_streak",
1329
+ "study_structured_section",
1330
+ "superseded_policy",
1331
+ "surface",
1332
+ "system_announcement",
1333
+ "system_context_item",
1334
+ "system_error",
1335
+ "system_orgs",
1336
+ "system_personal_org_failure",
1337
+ "system_write_failure",
1338
+ "task",
1339
+ "task_user_state",
1340
+ "taxonomy_node",
1341
+ "template_context_items",
1342
+ "template_scope_types",
1343
+ "templates",
1344
+ "thread",
1345
+ "tool",
1346
+ "tool_binding",
1347
+ "tool_bundle",
1348
+ "tool_call",
1349
+ "tool_definition_version",
1350
+ "tool_executor",
1351
+ "tool_surface_defaults",
1352
+ "tool_test_sample",
1353
+ "tool_ui",
1354
+ "tool_ui_incident",
1355
+ "tool_ui_version",
1356
+ "topic_placement_queue",
1357
+ "transcript",
1358
+ "trigger_event",
1359
+ "udt_dataset_fields",
1360
+ "udt_dataset_row_versions",
1361
+ "udt_dataset_rows",
1362
+ "udt_dataset_template",
1363
+ "udt_dataset_template_fields",
1364
+ "udt_document",
1365
+ "udt_document_snapshot",
1366
+ "udt_structured_list_items",
1367
+ "udt_workbook_snapshot",
1368
+ "ui_client",
1369
+ "ui_surface_agent_pref",
1370
+ "ui_surface_agent_role",
1371
+ "ui_surface_client_tool",
1372
+ "ui_surface_config",
1373
+ "ui_surface_value",
1374
+ "ui_surface_write_target",
1375
+ "unsubscribe_token",
1376
+ "uploads_inflight",
1377
+ "user_achievement",
1378
+ "user_active_context",
1379
+ "user_analysis_preference",
1380
+ "user_bookmark",
1381
+ "user_email_preference",
1382
+ "user_entity_state",
1383
+ "user_feedback",
1384
+ "user_follows",
1385
+ "user_form_profile",
1386
+ "user_markdown_sample",
1387
+ "user_memory",
1388
+ "user_preference",
1389
+ "user_profile",
1390
+ "user_secret",
1391
+ "user_secret_audit",
1392
+ "user_secret_grant",
1393
+ "user_stat",
1394
+ "user_storage_usage",
1395
+ "user_surface_state",
1396
+ "visibility_cache",
1397
+ "visibility_epoch",
1398
+ "voice",
1399
+ "war_room",
1400
+ "wbx_capture",
1401
+ "wbx_demo",
1402
+ "wbx_guidance",
1403
+ "wbx_highlight",
1404
+ "wbx_pattern",
1405
+ "wbx_recipe",
1406
+ "wbx_screenshot",
1407
+ "wbx_seo_audit",
1408
+ "wc_claim",
1409
+ "wc_impairment_definition",
1410
+ "wc_injury",
1411
+ "wc_report",
1412
+ "web_analysis_item",
1413
+ "web_brand",
1414
+ "web_brand_asset",
1415
+ "web_brand_offering",
1416
+ "web_business_fact",
1417
+ "web_business_location",
1418
+ "web_channel_analytics_daily",
1419
+ "web_crawl_event",
1420
+ "web_crawl_preset",
1421
+ "web_crawl_schedule",
1422
+ "web_crawl_session",
1423
+ "web_crawl_url",
1424
+ "web_discovered_item",
1425
+ "web_finding",
1426
+ "web_gsc_page_stat",
1427
+ "web_link_edge",
1428
+ "web_listing_publisher",
1429
+ "web_location_listing",
1430
+ "web_offering_template",
1431
+ "web_page",
1432
+ "web_page_content",
1433
+ "web_page_evidence",
1434
+ "web_page_sitemap",
1435
+ "web_property",
1436
+ "web_provider",
1437
+ "web_result",
1438
+ "web_screenshot",
1439
+ "web_site",
1440
+ "web_site_endpoint_rule",
1441
+ "web_site_item_config",
1442
+ "web_site_offering",
1443
+ "web_sitemap",
1444
+ "web_snapshot",
1445
+ "web_tag_manager_snapshot",
1446
+ "web_youtube_video",
1447
+ "webhook_deliveries",
1448
+ "webhook_dispatch_state",
1449
+ "webhooks",
1450
+ "wf_node_data_slot",
1451
+ "work_claim",
1452
+ "work_item",
1453
+ "workbook",
1454
+ "worker_heartbeat",
1455
+ "workflow",
1456
+ "workflow_card",
1457
+ "workflow_checkpoint",
1458
+ "workflow_comparison",
1459
+ "workflow_definition_version",
1460
+ "workflow_idempotency",
1461
+ "workflow_job",
1462
+ "workflow_node_events",
1463
+ "workflow_node_outcome",
1464
+ "workflow_plan",
1465
+ "workflow_plan_event",
1466
+ "workflow_plan_sample",
1467
+ "workflow_recovery_audit",
1468
+ "workflow_run",
1469
+ "workflow_run_log",
1470
+ "workflow_runtime_surface",
1471
+ "workflow_template",
1472
+ "workflow_trigger",
1473
+ "workflow_trigger_fire",
1474
+ "workflow_work_item",
1475
+ "working_document",
1476
+ "write_guard_key",
1477
+ "youtube_quota_day",
1478
+ "youtube_search",
1479
+ "youtube_video"
1480
+ ];
1481
+ //# sourceMappingURL=index.cjs.map