@ai-matrx/records 0.28.0 → 0.30.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/CHANGELOG.md +28 -0
- package/dist/core/index.cjs +18 -7
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -2
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +18 -7
- package/dist/core/index.js.map +1 -1
- package/dist/field-D08d_e7R.d.cts +3600 -0
- package/dist/field-D08d_e7R.d.ts +3600 -0
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3545
- package/dist/index.d.ts +3 -3545
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +18 -7
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +61 -7
- package/dist/react/index.d.ts +61 -7
- package/dist/react/index.js +18 -7
- package/dist/react/index.js.map +1 -1
- package/dist/use-cases/index.cjs +2715 -0
- package/dist/use-cases/index.cjs.map +1 -0
- package/dist/use-cases/index.d.cts +447 -0
- package/dist/use-cases/index.d.ts +447 -0
- package/dist/use-cases/index.js +2699 -0
- package/dist/use-cases/index.js.map +1 -0
- package/package.json +11 -1
|
@@ -0,0 +1,3600 @@
|
|
|
1
|
+
declare const ACTOR_VOCABULARY: readonly ["user", "agent", "system"];
|
|
2
|
+
/** The three words the store still accepts and rewrites, and what each becomes. */
|
|
3
|
+
declare const RETIRED_ACTOR_WORDS: {
|
|
4
|
+
readonly ai: "agent";
|
|
5
|
+
readonly code: "system";
|
|
6
|
+
readonly human: "user";
|
|
7
|
+
};
|
|
8
|
+
declare const ABSENCE_REASONS: readonly ["never asked", "none", "refused", "conflicting"];
|
|
9
|
+
declare const VALUE_ENVELOPE_KEYS: readonly ["ver", "src", "actor", "on_behalf_of", "at", "absent", "alternates", "dated", "pinned"];
|
|
10
|
+
declare const VALUE_ALTERNATE_KEYS: readonly ["value", "src", "rank"];
|
|
11
|
+
declare const STORAGE_MODES: readonly ["light", "heavy"];
|
|
12
|
+
declare const RULE_USES: readonly ["validate", "compute", "membership", "applicability"];
|
|
13
|
+
declare const PER_VALUE_ACCESS_WORDS: readonly ["visibility", "access", "share", "acl", "permission", "permissions", "secret"];
|
|
14
|
+
/** FLD-11's parity floor, each with the behaviour it is MADE OF (FLD-1). */
|
|
15
|
+
declare const PARITY_FIELD_TYPES: readonly [{
|
|
16
|
+
readonly parity_type: "attachment";
|
|
17
|
+
readonly behavior: "relation";
|
|
18
|
+
readonly made_of: "REC-31: a File record reached through a relation, target the kernel `File` Table";
|
|
19
|
+
}, {
|
|
20
|
+
readonly parity_type: "checkbox";
|
|
21
|
+
readonly behavior: "boolean";
|
|
22
|
+
readonly made_of: "a ticked or unticked answer, stored as a REAL boolean — and a record that never answered holds neither, so filters and group-by see three states, not two";
|
|
23
|
+
}, {
|
|
24
|
+
readonly parity_type: "currency";
|
|
25
|
+
readonly behavior: "range";
|
|
26
|
+
readonly made_of: "FLD-N-1: a number whose UNIT is the currency and whose format is currency — on the Field, never in presentation";
|
|
27
|
+
}, {
|
|
28
|
+
readonly parity_type: "datetime";
|
|
29
|
+
readonly behavior: "range";
|
|
30
|
+
readonly made_of: "a range of kind date or datetime — the dated modifier says the VALUES are dated, which is a different question";
|
|
31
|
+
}, {
|
|
32
|
+
readonly parity_type: "email";
|
|
33
|
+
readonly behavior: "text";
|
|
34
|
+
readonly made_of: "text whose format is email";
|
|
35
|
+
}, {
|
|
36
|
+
readonly parity_type: "formula";
|
|
37
|
+
readonly behavior: "formula";
|
|
38
|
+
readonly made_of: "FLD-9: a declared computation, on read or on write, evaluated by custom.rule_eval";
|
|
39
|
+
}, {
|
|
40
|
+
readonly parity_type: "lookup";
|
|
41
|
+
readonly behavior: "formula";
|
|
42
|
+
readonly made_of: "a Value read THROUGH a relation — config.via names the relation field, config.pick the Value on the far side";
|
|
43
|
+
}, {
|
|
44
|
+
readonly parity_type: "member";
|
|
45
|
+
readonly behavior: "relation";
|
|
46
|
+
readonly made_of: "a person: a relation whose target is the kernel `Person` Table";
|
|
47
|
+
}, {
|
|
48
|
+
readonly parity_type: "multi_select";
|
|
49
|
+
readonly behavior: "list";
|
|
50
|
+
readonly made_of: "many choices from the same Table — the multi modifier, never a second behaviour";
|
|
51
|
+
}, {
|
|
52
|
+
readonly parity_type: "percent";
|
|
53
|
+
readonly behavior: "range";
|
|
54
|
+
readonly made_of: "a number whose unit is % and whose format is percent";
|
|
55
|
+
}, {
|
|
56
|
+
readonly parity_type: "phone";
|
|
57
|
+
readonly behavior: "text";
|
|
58
|
+
readonly made_of: "text whose format is phone";
|
|
59
|
+
}, {
|
|
60
|
+
readonly parity_type: "rollup";
|
|
61
|
+
readonly behavior: "formula";
|
|
62
|
+
readonly made_of: "an aggregate ALONG a relation — config.via, config.of, config.agg; far-side ids are taken DISTINCT, so nothing is counted twice";
|
|
63
|
+
}, {
|
|
64
|
+
readonly parity_type: "select";
|
|
65
|
+
readonly behavior: "list";
|
|
66
|
+
readonly made_of: "one choice from a Table shown as a list (FLD-5/FLD-6)";
|
|
67
|
+
}, {
|
|
68
|
+
readonly parity_type: "url";
|
|
69
|
+
readonly behavior: "text";
|
|
70
|
+
readonly made_of: "text whose format is url, with the pattern Rule that makes the format enforceable";
|
|
71
|
+
}];
|
|
72
|
+
/** The node kinds `custom.rule_eval` evaluates, and the lane that owns each. */
|
|
73
|
+
declare const RULE_NODE_KINDS: readonly [{
|
|
74
|
+
readonly node: "actor_at_least";
|
|
75
|
+
readonly evaluated_by: "PIPELINES";
|
|
76
|
+
}, {
|
|
77
|
+
readonly node: "add";
|
|
78
|
+
readonly evaluated_by: "W1-RULE";
|
|
79
|
+
}, {
|
|
80
|
+
readonly node: "and";
|
|
81
|
+
readonly evaluated_by: "W1-RULE";
|
|
82
|
+
}, {
|
|
83
|
+
readonly node: "concat";
|
|
84
|
+
readonly evaluated_by: "W1-RULE";
|
|
85
|
+
}, {
|
|
86
|
+
readonly node: "const";
|
|
87
|
+
readonly evaluated_by: "W1-RULE";
|
|
88
|
+
}, {
|
|
89
|
+
readonly node: "div";
|
|
90
|
+
readonly evaluated_by: "W1-RULE";
|
|
91
|
+
}, {
|
|
92
|
+
readonly node: "eq";
|
|
93
|
+
readonly evaluated_by: "W1-RULE";
|
|
94
|
+
}, {
|
|
95
|
+
readonly node: "field";
|
|
96
|
+
readonly evaluated_by: "W1-RULE";
|
|
97
|
+
}, {
|
|
98
|
+
readonly node: "gt";
|
|
99
|
+
readonly evaluated_by: "W1-RULE";
|
|
100
|
+
}, {
|
|
101
|
+
readonly node: "gte";
|
|
102
|
+
readonly evaluated_by: "W1-RULE";
|
|
103
|
+
}, {
|
|
104
|
+
readonly node: "length";
|
|
105
|
+
readonly evaluated_by: "W1-RULE";
|
|
106
|
+
}, {
|
|
107
|
+
readonly node: "lt";
|
|
108
|
+
readonly evaluated_by: "W1-RULE";
|
|
109
|
+
}, {
|
|
110
|
+
readonly node: "lte";
|
|
111
|
+
readonly evaluated_by: "W1-RULE";
|
|
112
|
+
}, {
|
|
113
|
+
readonly node: "matches";
|
|
114
|
+
readonly evaluated_by: "W1-RULE";
|
|
115
|
+
}, {
|
|
116
|
+
readonly node: "merge_field";
|
|
117
|
+
readonly evaluated_by: "W5-MERGE-B";
|
|
118
|
+
}, {
|
|
119
|
+
readonly node: "mul";
|
|
120
|
+
readonly evaluated_by: "W1-RULE";
|
|
121
|
+
}, {
|
|
122
|
+
readonly node: "ne";
|
|
123
|
+
readonly evaluated_by: "W1-RULE";
|
|
124
|
+
}, {
|
|
125
|
+
readonly node: "not";
|
|
126
|
+
readonly evaluated_by: "W1-RULE";
|
|
127
|
+
}, {
|
|
128
|
+
readonly node: "or";
|
|
129
|
+
readonly evaluated_by: "W1-RULE";
|
|
130
|
+
}, {
|
|
131
|
+
readonly node: "parent_field";
|
|
132
|
+
readonly evaluated_by: "W1-RULE-APPLY";
|
|
133
|
+
}, {
|
|
134
|
+
readonly node: "present";
|
|
135
|
+
readonly evaluated_by: "W1-RULE";
|
|
136
|
+
}, {
|
|
137
|
+
readonly node: "previous";
|
|
138
|
+
readonly evaluated_by: "PIPELINES";
|
|
139
|
+
}, {
|
|
140
|
+
readonly node: "stage_count";
|
|
141
|
+
readonly evaluated_by: "PIPELINES";
|
|
142
|
+
}, {
|
|
143
|
+
readonly node: "sub";
|
|
144
|
+
readonly evaluated_by: "W1-RULE";
|
|
145
|
+
}];
|
|
146
|
+
/** REC-27. The kernel, by name and by id, as the store holds it. */
|
|
147
|
+
declare const KERNEL_TABLES: readonly [{
|
|
148
|
+
readonly id: "11111111-0000-4000-8000-000000000002";
|
|
149
|
+
readonly name: "Field";
|
|
150
|
+
}, {
|
|
151
|
+
readonly id: "11111111-0000-4000-8000-000000000006";
|
|
152
|
+
readonly name: "File";
|
|
153
|
+
}, {
|
|
154
|
+
readonly id: "11111111-0000-4000-8000-000000000009";
|
|
155
|
+
readonly name: "Merge Field";
|
|
156
|
+
}, {
|
|
157
|
+
readonly id: "11111111-0000-4000-8000-000000000004";
|
|
158
|
+
readonly name: "Organization";
|
|
159
|
+
}, {
|
|
160
|
+
readonly id: "11111111-0000-4000-8000-000000000005";
|
|
161
|
+
readonly name: "Person";
|
|
162
|
+
}, {
|
|
163
|
+
readonly id: "11111111-0000-4000-8000-000000000007";
|
|
164
|
+
readonly name: "Presentation";
|
|
165
|
+
}, {
|
|
166
|
+
readonly id: "11111111-0000-4000-8000-000000000003";
|
|
167
|
+
readonly name: "Rule";
|
|
168
|
+
}, {
|
|
169
|
+
readonly id: "11111111-0000-4000-8000-000000000001";
|
|
170
|
+
readonly name: "Table";
|
|
171
|
+
}, {
|
|
172
|
+
readonly id: "11111111-0000-4000-8000-000000000008";
|
|
173
|
+
readonly name: "Widget";
|
|
174
|
+
}];
|
|
175
|
+
/**
|
|
176
|
+
* Every door the store actually has, with the argument list and the result the
|
|
177
|
+
* catalogue reports. A client call whose door is not in this list is answered
|
|
178
|
+
* `door_absent` by name — never a guess, never a silent no-op.
|
|
179
|
+
*/
|
|
180
|
+
declare const STORE_DOORS: readonly [{
|
|
181
|
+
readonly name: "absence_reasons";
|
|
182
|
+
readonly args: "";
|
|
183
|
+
readonly returns: "text[]";
|
|
184
|
+
readonly security: "invoker";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "actor_vocabulary";
|
|
187
|
+
readonly args: "";
|
|
188
|
+
readonly returns: "text[]";
|
|
189
|
+
readonly security: "invoker";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "actor_word";
|
|
192
|
+
readonly args: "p_declared text";
|
|
193
|
+
readonly returns: "text";
|
|
194
|
+
readonly security: "invoker";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "addressed_cap";
|
|
197
|
+
readonly args: "p_user_id uuid, p_type text, p_id uuid, p_organization_id uuid DEFAULT NULL::uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
198
|
+
readonly returns: "permission_level";
|
|
199
|
+
readonly security: "definer";
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "addressed_cap_specific";
|
|
202
|
+
readonly args: "p_user_id uuid, p_type text, p_id uuid, p_organization_id uuid DEFAULT NULL::uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
203
|
+
readonly returns: "permission_level";
|
|
204
|
+
readonly security: "definer";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "agent_change_approval";
|
|
207
|
+
readonly args: "p_organization uuid, p_conversation uuid DEFAULT NULL::uuid, p_table uuid DEFAULT NULL::uuid";
|
|
208
|
+
readonly returns: "jsonb";
|
|
209
|
+
readonly security: "definer";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "agent_context";
|
|
212
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 50";
|
|
213
|
+
readonly returns: "jsonb";
|
|
214
|
+
readonly security: "invoker";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "agent_table_claim";
|
|
217
|
+
readonly args: "p_organization uuid, p_table uuid, p_conversation uuid DEFAULT NULL::uuid";
|
|
218
|
+
readonly returns: "void";
|
|
219
|
+
readonly security: "definer";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "agg_assert_key";
|
|
222
|
+
readonly args: "p_key text";
|
|
223
|
+
readonly returns: "text";
|
|
224
|
+
readonly security: "invoker";
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "agg_buckets";
|
|
227
|
+
readonly args: "";
|
|
228
|
+
readonly returns: "text[]";
|
|
229
|
+
readonly security: "invoker";
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "agg_cadence_normalize";
|
|
232
|
+
readonly args: "p_cadence text";
|
|
233
|
+
readonly returns: "text";
|
|
234
|
+
readonly security: "invoker";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "agg_deliver";
|
|
237
|
+
readonly 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, p_dedupe_suffix text DEFAULT NULL::text";
|
|
238
|
+
readonly returns: "uuid";
|
|
239
|
+
readonly security: "invoker";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "agg_deliver_quietly";
|
|
242
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid, p_subject_id uuid, p_channel text, p_recipient_user_id uuid, p_event_key text, p_subject text, p_body text, p_payload jsonb, p_quiet_hours jsonb, p_link text, p_dedupe_suffix text DEFAULT NULL::text";
|
|
243
|
+
readonly returns: "uuid";
|
|
244
|
+
readonly security: "invoker";
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "agg_digest_assemble";
|
|
247
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone, p_until timestamp with time zone DEFAULT NULL::timestamp with time zone";
|
|
248
|
+
readonly returns: "jsonb";
|
|
249
|
+
readonly security: "invoker";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "agg_digest_due_at";
|
|
252
|
+
readonly args: "p_cadence text, p_schedule text, p_quiet jsonb, p_after timestamp with time zone";
|
|
253
|
+
readonly returns: "timestamp with time zone";
|
|
254
|
+
readonly security: "invoker";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "agg_digest_run";
|
|
257
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid DEFAULT NULL::uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone";
|
|
258
|
+
readonly returns: "integer";
|
|
259
|
+
readonly security: "invoker";
|
|
260
|
+
}, {
|
|
261
|
+
readonly name: "agg_digest_tick";
|
|
262
|
+
readonly args: "";
|
|
263
|
+
readonly returns: "integer";
|
|
264
|
+
readonly security: "invoker";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "agg_explain";
|
|
267
|
+
readonly 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";
|
|
268
|
+
readonly returns: "jsonb";
|
|
269
|
+
readonly security: "definer";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "agg_last_digest_at";
|
|
272
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
273
|
+
readonly returns: "timestamp with time zone";
|
|
274
|
+
readonly security: "invoker";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "agg_operations";
|
|
277
|
+
readonly args: "";
|
|
278
|
+
readonly returns: "text[]";
|
|
279
|
+
readonly security: "invoker";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "agg_quiet_until";
|
|
282
|
+
readonly args: "p_quiet jsonb, p_at timestamp with time zone";
|
|
283
|
+
readonly returns: "timestamp with time zone";
|
|
284
|
+
readonly security: "invoker";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "agg_record_name";
|
|
287
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_state jsonb DEFAULT NULL::jsonb";
|
|
288
|
+
readonly returns: "text";
|
|
289
|
+
readonly security: "invoker";
|
|
290
|
+
}, {
|
|
291
|
+
readonly name: "agg_sql";
|
|
292
|
+
readonly 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";
|
|
293
|
+
readonly returns: "text";
|
|
294
|
+
readonly security: "invoker";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "agg_subscription_cadences";
|
|
297
|
+
readonly args: "";
|
|
298
|
+
readonly returns: "text[]";
|
|
299
|
+
readonly security: "invoker";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "agg_subscription_fire";
|
|
302
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_changed_field_ids jsonb DEFAULT '[]'::jsonb";
|
|
303
|
+
readonly returns: "integer";
|
|
304
|
+
readonly security: "invoker";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "agg_subscription_fire_entered";
|
|
307
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone";
|
|
308
|
+
readonly returns: "integer";
|
|
309
|
+
readonly security: "invoker";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "agg_subscription_tick";
|
|
312
|
+
readonly args: "p_window interval DEFAULT '00:15:00'::interval";
|
|
313
|
+
readonly returns: "integer";
|
|
314
|
+
readonly security: "invoker";
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "agg_subscriptions";
|
|
317
|
+
readonly args: "p_organization_id uuid, p_saved_view_id uuid DEFAULT NULL::uuid, p_cadence text DEFAULT NULL::text";
|
|
318
|
+
readonly returns: "TABLE(rule_id uuid, saved_view_id uuid, table_id uuid, cadence text, schedule text, quiet_hours jsonb, channel text, recipient_user_id uuid, event_key text, name text)";
|
|
319
|
+
readonly security: "invoker";
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "agg_value_sql";
|
|
322
|
+
readonly args: "p_key text";
|
|
323
|
+
readonly returns: "text";
|
|
324
|
+
readonly security: "invoker";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "agg_view_admits";
|
|
327
|
+
readonly args: "p_organization_id uuid, p_saved_view_id uuid, p_record_id uuid";
|
|
328
|
+
readonly returns: "boolean";
|
|
329
|
+
readonly security: "invoker";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "agg_view_admits_state";
|
|
332
|
+
readonly args: "p_definition jsonb, p_state jsonb";
|
|
333
|
+
readonly returns: "boolean";
|
|
334
|
+
readonly security: "invoker";
|
|
335
|
+
}, {
|
|
336
|
+
readonly name: "anon_capture";
|
|
337
|
+
readonly 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";
|
|
338
|
+
readonly returns: "uuid";
|
|
339
|
+
readonly security: "definer";
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "anon_clear";
|
|
342
|
+
readonly args: "p_organization_id uuid, p_submission_id uuid";
|
|
343
|
+
readonly returns: "uuid";
|
|
344
|
+
readonly security: "definer";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "anon_inbound_land";
|
|
347
|
+
readonly args: "p_address text, p_secret text, p_payload jsonb, p_raw_payload jsonb DEFAULT '{}'::jsonb, p_client_key text DEFAULT NULL::text";
|
|
348
|
+
readonly returns: "uuid";
|
|
349
|
+
readonly security: "definer";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "anon_publish";
|
|
352
|
+
readonly args: "p_organization_id uuid, p_form_id uuid, p_published boolean DEFAULT true";
|
|
353
|
+
readonly returns: "timestamp with time zone";
|
|
354
|
+
readonly security: "definer";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "anon_rate_take";
|
|
357
|
+
readonly args: "p_organization_id uuid, p_form_id uuid, p_bucket text, p_token_id uuid DEFAULT NULL::uuid";
|
|
358
|
+
readonly returns: "integer";
|
|
359
|
+
readonly security: "definer";
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "anon_submissions";
|
|
362
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_state text DEFAULT NULL::text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0";
|
|
363
|
+
readonly returns: "TABLE(id uuid, form_id uuid, inbound_id uuid, table_id uuid, source text, state text, payload jsonb, raw_payload jsonb, client_key text, record_id uuid, remote_origin text, rejection_reason text, created_at timestamp with time zone, cleared_at timestamp with time zone)";
|
|
364
|
+
readonly security: "definer";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "anon_token_issue";
|
|
367
|
+
readonly 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";
|
|
368
|
+
readonly returns: "TABLE(token_id uuid, secret text)";
|
|
369
|
+
readonly security: "definer";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "anon_token_revoke";
|
|
372
|
+
readonly args: "p_organization_id uuid, p_token_id uuid";
|
|
373
|
+
readonly returns: "boolean";
|
|
374
|
+
readonly security: "definer";
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "anon_token_verify";
|
|
377
|
+
readonly args: "p_secret text, p_origin text, p_required_mode text";
|
|
378
|
+
readonly returns: "TABLE(token_id uuid, organization_id uuid, form_id uuid, saved_view_id uuid, record_id uuid, mode text)";
|
|
379
|
+
readonly security: "definer";
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "anon_write";
|
|
382
|
+
readonly args: "p_secret text, p_origin text, p_payload jsonb, p_client_key text DEFAULT NULL::text, p_raw_payload jsonb DEFAULT '{}'::jsonb";
|
|
383
|
+
readonly returns: "uuid";
|
|
384
|
+
readonly security: "definer";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "applicable_fields";
|
|
387
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_record_type text DEFAULT NULL::text";
|
|
388
|
+
readonly returns: "SETOF custom.record";
|
|
389
|
+
readonly security: "definer";
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "assert_client_may_change";
|
|
392
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_door text, p_required permission_level DEFAULT 'editor'::permission_level, p_subject_word text DEFAULT 'record'::text";
|
|
393
|
+
readonly returns: "void";
|
|
394
|
+
readonly security: "invoker";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "assert_client_may_open";
|
|
397
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_door text, p_required permission_level DEFAULT 'viewer'::permission_level, p_subject_word text DEFAULT 'record'::text";
|
|
398
|
+
readonly returns: "void";
|
|
399
|
+
readonly security: "invoker";
|
|
400
|
+
}, {
|
|
401
|
+
readonly name: "assert_client_may_reach";
|
|
402
|
+
readonly args: "p_organization_id uuid, p_door text";
|
|
403
|
+
readonly returns: "void";
|
|
404
|
+
readonly security: "invoker";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "assert_entity_door";
|
|
407
|
+
readonly args: "p_organization_id uuid, p_door text";
|
|
408
|
+
readonly returns: "void";
|
|
409
|
+
readonly security: "definer";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "assert_entity_is_organization_scoped";
|
|
412
|
+
readonly args: "p_token text, p_label text, p_scoped boolean";
|
|
413
|
+
readonly returns: "void";
|
|
414
|
+
readonly security: "invoker";
|
|
415
|
+
}, {
|
|
416
|
+
readonly name: "assert_may_know_table";
|
|
417
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_door text";
|
|
418
|
+
readonly returns: "void";
|
|
419
|
+
readonly security: "invoker";
|
|
420
|
+
}, {
|
|
421
|
+
readonly name: "assert_organization_admin";
|
|
422
|
+
readonly args: "p_organization_id uuid, p_door text, p_what text";
|
|
423
|
+
readonly returns: "void";
|
|
424
|
+
readonly security: "invoker";
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "assert_organization_wall";
|
|
427
|
+
readonly args: "p_kind text, p_organization_id uuid, p_row jsonb";
|
|
428
|
+
readonly returns: "void";
|
|
429
|
+
readonly security: "invoker";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "assert_store_door";
|
|
432
|
+
readonly args: "p_organization_id uuid, p_door text";
|
|
433
|
+
readonly returns: "void";
|
|
434
|
+
readonly security: "invoker";
|
|
435
|
+
}, {
|
|
436
|
+
readonly name: "booking_cancel";
|
|
437
|
+
readonly args: "p_booking_ref text, p_origin text DEFAULT NULL::text";
|
|
438
|
+
readonly returns: "TABLE(booking_ref text, record_id uuid, slot_key text, state text, message text)";
|
|
439
|
+
readonly security: "definer";
|
|
440
|
+
}, {
|
|
441
|
+
readonly name: "booking_confirm";
|
|
442
|
+
readonly args: "p_form_id uuid, p_hold_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text";
|
|
443
|
+
readonly returns: "TABLE(booking_ref text, record_id uuid, submission_id uuid, slot_key text, slot_at timestamp with time zone, state text, message text)";
|
|
444
|
+
readonly security: "definer";
|
|
445
|
+
}, {
|
|
446
|
+
readonly name: "booking_declare";
|
|
447
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_availability jsonb DEFAULT '{}'::jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text, p_home_id uuid DEFAULT NULL::uuid";
|
|
448
|
+
readonly returns: "jsonb";
|
|
449
|
+
readonly security: "definer";
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "booking_hold";
|
|
452
|
+
readonly args: "p_form_id uuid, p_slot_key text, p_origin text, p_bucket text, p_client_key text DEFAULT NULL::text";
|
|
453
|
+
readonly returns: "TABLE(hold_id uuid, slot_key text, expires_at timestamp with time zone, member_user_id uuid, state text, message text)";
|
|
454
|
+
readonly security: "definer";
|
|
455
|
+
}, {
|
|
456
|
+
readonly name: "booking_manage";
|
|
457
|
+
readonly args: "p_booking_ref text, p_days integer DEFAULT NULL::integer";
|
|
458
|
+
readonly returns: "TABLE(booking_ref text, form_id uuid, title text, slot_key text, slot_at timestamp with time zone, status text, slots jsonb, availability jsonb, state text, message text)";
|
|
459
|
+
readonly security: "definer";
|
|
460
|
+
}, {
|
|
461
|
+
readonly name: "booking_notify";
|
|
462
|
+
readonly args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid, p_event text, p_when text";
|
|
463
|
+
readonly returns: "uuid";
|
|
464
|
+
readonly security: "invoker";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "booking_public";
|
|
467
|
+
readonly args: "p_form_id uuid, p_days integer DEFAULT NULL::integer";
|
|
468
|
+
readonly returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, availability jsonb, slots jsonb, state text, message text)";
|
|
469
|
+
readonly security: "definer";
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "booking_reschedule";
|
|
472
|
+
readonly args: "p_booking_ref text, p_slot_key text, p_origin text, p_bucket text DEFAULT NULL::text";
|
|
473
|
+
readonly returns: "TABLE(booking_ref text, record_id uuid, slot_key text, slot_at timestamp with time zone, state text, message text)";
|
|
474
|
+
readonly security: "definer";
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "bookings";
|
|
477
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
478
|
+
readonly returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, slot_minutes integer, timezone text, slot_table_id uuid, booked bigint, cancelled bigint, upcoming bigint, held bigint, next_at timestamp with time zone, state text)";
|
|
479
|
+
readonly security: "definer";
|
|
480
|
+
}, {
|
|
481
|
+
readonly name: "bump_epoch";
|
|
482
|
+
readonly args: "p_entity_type text, p_entity_id uuid, p_organization_id uuid DEFAULT NULL::uuid";
|
|
483
|
+
readonly returns: "bigint";
|
|
484
|
+
readonly security: "definer";
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "cache_lookup";
|
|
487
|
+
readonly args: "p_container_type text, p_container_id uuid, p_item_type text, p_item_id uuid";
|
|
488
|
+
readonly returns: "permission_level";
|
|
489
|
+
readonly security: "definer";
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "caller_role";
|
|
492
|
+
readonly args: "";
|
|
493
|
+
readonly returns: "name";
|
|
494
|
+
readonly security: "invoker";
|
|
495
|
+
}, {
|
|
496
|
+
readonly name: "capture_open";
|
|
497
|
+
readonly args: "p_organization_id uuid, p_sheet_id uuid";
|
|
498
|
+
readonly returns: "TABLE(sheet_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, state text, may_capture boolean, message text)";
|
|
499
|
+
readonly security: "definer";
|
|
500
|
+
}, {
|
|
501
|
+
readonly name: "capture_publish";
|
|
502
|
+
readonly args: "p_organization_id uuid, p_sheet_id uuid, p_open boolean DEFAULT true";
|
|
503
|
+
readonly returns: "timestamp with time zone";
|
|
504
|
+
readonly security: "definer";
|
|
505
|
+
}, {
|
|
506
|
+
readonly name: "capture_sheet_declare";
|
|
507
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_sheet_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid";
|
|
508
|
+
readonly returns: "uuid";
|
|
509
|
+
readonly security: "definer";
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "capture_sheets";
|
|
512
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
513
|
+
readonly returns: "TABLE(sheet_id uuid, table_id uuid, title text, slug text, state text, opened_at timestamp with time zone, captures bigint, replays bigint, last_capture_at timestamp with time zone, presentation jsonb)";
|
|
514
|
+
readonly security: "definer";
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "capture_submit";
|
|
517
|
+
readonly args: "p_organization_id uuid, p_sheet_id uuid, p_client_key text, p_payload jsonb, p_files jsonb DEFAULT '[]'::jsonb, p_device text DEFAULT NULL::text, p_captured_at timestamp with time zone DEFAULT NULL::timestamp with time zone, p_location jsonb DEFAULT NULL::jsonb";
|
|
518
|
+
readonly returns: "TABLE(record_id uuid, state text, message text, replay boolean, file_ids uuid[])";
|
|
519
|
+
readonly security: "definer";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "carry_unchanged_value_stamps";
|
|
522
|
+
readonly args: "p_old jsonb, p_new jsonb";
|
|
523
|
+
readonly returns: "jsonb";
|
|
524
|
+
readonly security: "invoker";
|
|
525
|
+
}, {
|
|
526
|
+
readonly name: "carrying_edges_in";
|
|
527
|
+
readonly args: "p_organization_id uuid";
|
|
528
|
+
readonly returns: "TABLE(container_type text, container_id uuid, item_type text, item_id uuid, conveys_max permission_level)";
|
|
529
|
+
readonly security: "definer";
|
|
530
|
+
}, {
|
|
531
|
+
readonly name: "carrying_edges_of";
|
|
532
|
+
readonly args: "p_item_type text, p_item_id uuid";
|
|
533
|
+
readonly returns: "TABLE(container_type text, container_id uuid, conveys_max permission_level)";
|
|
534
|
+
readonly security: "definer";
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "checklist_declare";
|
|
537
|
+
readonly args: "p_organization_id uuid, p_spec jsonb, p_template_id uuid DEFAULT NULL::uuid";
|
|
538
|
+
readonly returns: "jsonb";
|
|
539
|
+
readonly security: "definer";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "checklist_refusal";
|
|
542
|
+
readonly args: "p_spec jsonb";
|
|
543
|
+
readonly returns: "text";
|
|
544
|
+
readonly security: "invoker";
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "checklist_run";
|
|
547
|
+
readonly args: "p_organization_id uuid, p_run_id uuid";
|
|
548
|
+
readonly returns: "TABLE(step_id uuid, step_order integer, ref text, title text, role text, assignee_name text, assignee_user_id uuid, due_on timestamp with time zone, due_state text, status text, finished boolean, requires text, requires_key text, requires_label text, requires_id uuid, evidence jsonb, blocked_by text[], may_complete boolean, refusal text)";
|
|
549
|
+
readonly security: "definer";
|
|
550
|
+
}, {
|
|
551
|
+
readonly name: "checklist_runs";
|
|
552
|
+
readonly args: "p_organization_id uuid, p_about_table_id uuid DEFAULT NULL::uuid, p_about_record_id uuid DEFAULT NULL::uuid, p_include_closed boolean DEFAULT true, p_limit integer DEFAULT 100";
|
|
553
|
+
readonly returns: "TABLE(run_id uuid, name text, template_id uuid, template text, about_record_id uuid, about text, about_table_id uuid, started_at timestamp with time zone, started_by uuid, origin text, step_count integer, done integer, overdue integer, next_step text, next_due timestamp with time zone, closed_at timestamp with time zone)";
|
|
554
|
+
readonly security: "definer";
|
|
555
|
+
}, {
|
|
556
|
+
readonly name: "checklist_start";
|
|
557
|
+
readonly args: "p_organization_id uuid, p_template_id uuid, p_about_record_id uuid DEFAULT NULL::uuid, p_roles jsonb DEFAULT '{}'::jsonb, p_starting_at timestamp with time zone DEFAULT NULL::timestamp with time zone";
|
|
558
|
+
readonly returns: "jsonb";
|
|
559
|
+
readonly security: "definer";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "checklist_step_complete";
|
|
562
|
+
readonly args: "p_organization_id uuid, p_step_id uuid, p_evidence jsonb DEFAULT '{}'::jsonb";
|
|
563
|
+
readonly returns: "jsonb";
|
|
564
|
+
readonly security: "definer";
|
|
565
|
+
}, {
|
|
566
|
+
readonly name: "checklist_step_refusal";
|
|
567
|
+
readonly args: "p_organization_id uuid, p_step_id uuid";
|
|
568
|
+
readonly returns: "text";
|
|
569
|
+
readonly security: "definer";
|
|
570
|
+
}, {
|
|
571
|
+
readonly name: "checklist_steps_table";
|
|
572
|
+
readonly args: "p_organization_id uuid";
|
|
573
|
+
readonly returns: "uuid";
|
|
574
|
+
readonly security: "definer";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "checklist_template_shape";
|
|
577
|
+
readonly args: "p_organization_id uuid, p_template_id uuid";
|
|
578
|
+
readonly returns: "jsonb";
|
|
579
|
+
readonly security: "definer";
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "checklist_templates";
|
|
582
|
+
readonly args: "p_organization_id uuid, p_about_table_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100";
|
|
583
|
+
readonly returns: "TABLE(template_id uuid, name text, about_table_id uuid, about_table text, steps integer, roles integer, trigger_kind text, trigger_status text, open_runs integer, total_runs integer, updated_at timestamp with time zone)";
|
|
584
|
+
readonly security: "definer";
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "choice_census";
|
|
587
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
588
|
+
readonly returns: "jsonb";
|
|
589
|
+
readonly security: "definer";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "choice_field_map";
|
|
592
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
593
|
+
readonly returns: "jsonb";
|
|
594
|
+
readonly security: "invoker";
|
|
595
|
+
}, {
|
|
596
|
+
readonly name: "choice_filter_normalize";
|
|
597
|
+
readonly args: "p_map jsonb, p_filter jsonb";
|
|
598
|
+
readonly returns: "jsonb";
|
|
599
|
+
readonly security: "invoker";
|
|
600
|
+
}, {
|
|
601
|
+
readonly name: "choice_key_for";
|
|
602
|
+
readonly args: "p_organization_id uuid, p_options_table_id uuid, p_title text, p_exclude uuid DEFAULT NULL::uuid";
|
|
603
|
+
readonly returns: "text";
|
|
604
|
+
readonly security: "invoker";
|
|
605
|
+
}, {
|
|
606
|
+
readonly name: "choice_key_of";
|
|
607
|
+
readonly args: "p_field jsonb, p_token text";
|
|
608
|
+
readonly returns: "text";
|
|
609
|
+
readonly security: "invoker";
|
|
610
|
+
}, {
|
|
611
|
+
readonly name: "choice_options";
|
|
612
|
+
readonly args: "p_organization_id uuid, p_options_table_id uuid";
|
|
613
|
+
readonly returns: "jsonb";
|
|
614
|
+
readonly security: "invoker";
|
|
615
|
+
}, {
|
|
616
|
+
readonly name: "choice_render";
|
|
617
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_doc jsonb";
|
|
618
|
+
readonly returns: "jsonb";
|
|
619
|
+
readonly security: "invoker";
|
|
620
|
+
}, {
|
|
621
|
+
readonly name: "choice_render_groups";
|
|
622
|
+
readonly args: "p_map jsonb, p_groups jsonb";
|
|
623
|
+
readonly returns: "jsonb";
|
|
624
|
+
readonly security: "invoker";
|
|
625
|
+
}, {
|
|
626
|
+
readonly name: "choice_render_note";
|
|
627
|
+
readonly args: "p_field jsonb, p_value jsonb";
|
|
628
|
+
readonly returns: "jsonb";
|
|
629
|
+
readonly security: "invoker";
|
|
630
|
+
}, {
|
|
631
|
+
readonly name: "choice_render_value";
|
|
632
|
+
readonly args: "p_field jsonb, p_value jsonb";
|
|
633
|
+
readonly returns: "jsonb";
|
|
634
|
+
readonly security: "invoker";
|
|
635
|
+
}, {
|
|
636
|
+
readonly name: "choice_slug";
|
|
637
|
+
readonly args: "p_word text";
|
|
638
|
+
readonly returns: "text";
|
|
639
|
+
readonly security: "invoker";
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "choice_synonyms";
|
|
642
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_token text";
|
|
643
|
+
readonly returns: "text[]";
|
|
644
|
+
readonly security: "invoker";
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "choice_synonyms_in";
|
|
647
|
+
readonly args: "p_map jsonb, p_token text";
|
|
648
|
+
readonly returns: "text[]";
|
|
649
|
+
readonly security: "invoker";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "choice_words";
|
|
652
|
+
readonly args: "p_field jsonb";
|
|
653
|
+
readonly returns: "text";
|
|
654
|
+
readonly security: "invoker";
|
|
655
|
+
}, {
|
|
656
|
+
readonly name: "client_write_grants";
|
|
657
|
+
readonly args: "";
|
|
658
|
+
readonly returns: "TABLE(role_name text, object_name text, privilege text)";
|
|
659
|
+
readonly security: "invoker";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "comment_mention_deliver";
|
|
662
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid, p_comment_id uuid, p_recipient uuid, p_author_name text, p_record_title text, p_body text";
|
|
663
|
+
readonly returns: "uuid";
|
|
664
|
+
readonly security: "definer";
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "comment_thread";
|
|
667
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_include_resolved boolean DEFAULT false";
|
|
668
|
+
readonly returns: "jsonb";
|
|
669
|
+
readonly security: "definer";
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "comment_write";
|
|
672
|
+
readonly 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, p_mentions uuid[] DEFAULT NULL::uuid[]";
|
|
673
|
+
readonly returns: "jsonb";
|
|
674
|
+
readonly security: "definer";
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "computed_provenance";
|
|
677
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
678
|
+
readonly returns: "TABLE(field_key text, field_id uuid, value jsonb, rule_id uuid, rule_version integer, computed_at timestamp with time zone)";
|
|
679
|
+
readonly security: "invoker";
|
|
680
|
+
}, {
|
|
681
|
+
readonly name: "containment_chain";
|
|
682
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
683
|
+
readonly returns: "TABLE(ancestor_id uuid, depth integer)";
|
|
684
|
+
readonly security: "invoker";
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "containment_depth_ceiling";
|
|
687
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
688
|
+
readonly returns: "integer";
|
|
689
|
+
readonly security: "invoker";
|
|
690
|
+
}, {
|
|
691
|
+
readonly name: "containment_edges";
|
|
692
|
+
readonly args: "p_organization_id uuid";
|
|
693
|
+
readonly returns: "TABLE(parent_id uuid, child_id uuid, via text)";
|
|
694
|
+
readonly security: "invoker";
|
|
695
|
+
}, {
|
|
696
|
+
readonly name: "containment_parent";
|
|
697
|
+
readonly args: "p_data jsonb";
|
|
698
|
+
readonly returns: "uuid";
|
|
699
|
+
readonly security: "invoker";
|
|
700
|
+
}, {
|
|
701
|
+
readonly name: "context_resolve";
|
|
702
|
+
readonly args: "p_organization_id uuid, p_bindings jsonb, p_scope_slug text DEFAULT 'scopes'::text";
|
|
703
|
+
readonly returns: "jsonb";
|
|
704
|
+
readonly security: "definer";
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "conversation_scope";
|
|
707
|
+
readonly args: "p_organization_id uuid, p_conversation_id uuid";
|
|
708
|
+
readonly returns: "jsonb";
|
|
709
|
+
readonly security: "definer";
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "conversation_scope_bind";
|
|
712
|
+
readonly args: "p_organization_id uuid, p_conversation_id uuid, p_record_id uuid";
|
|
713
|
+
readonly returns: "jsonb";
|
|
714
|
+
readonly security: "definer";
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "conversation_scope_context";
|
|
717
|
+
readonly args: "p_organization_id uuid, p_conversation_id uuid, p_relations integer DEFAULT 12, p_history integer DEFAULT 15, p_siblings integer DEFAULT 8";
|
|
718
|
+
readonly returns: "jsonb";
|
|
719
|
+
readonly security: "definer";
|
|
720
|
+
}, {
|
|
721
|
+
readonly name: "conversation_scope_unbind";
|
|
722
|
+
readonly args: "p_organization_id uuid, p_conversation_id uuid";
|
|
723
|
+
readonly returns: "jsonb";
|
|
724
|
+
readonly security: "definer";
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "cross_organization_links_open";
|
|
727
|
+
readonly args: "p_source_organization_id uuid, p_target_organization_id uuid";
|
|
728
|
+
readonly returns: "boolean";
|
|
729
|
+
readonly security: "invoker";
|
|
730
|
+
}, {
|
|
731
|
+
readonly name: "custom_fields_tables";
|
|
732
|
+
readonly args: "";
|
|
733
|
+
readonly returns: "TABLE(token text, schema_name text, table_name text)";
|
|
734
|
+
readonly security: "invoker";
|
|
735
|
+
}, {
|
|
736
|
+
readonly name: "dashboard_block_normalize";
|
|
737
|
+
readonly args: "p_organization_id uuid, p_subject_table_id uuid, p_block jsonb";
|
|
738
|
+
readonly returns: "jsonb";
|
|
739
|
+
readonly security: "definer";
|
|
740
|
+
}, {
|
|
741
|
+
readonly name: "dashboard_class";
|
|
742
|
+
readonly args: "";
|
|
743
|
+
readonly returns: "text";
|
|
744
|
+
readonly security: "invoker";
|
|
745
|
+
}, {
|
|
746
|
+
readonly name: "dashboard_declare";
|
|
747
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_name text, p_blocks jsonb DEFAULT '[]'::jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_dashboard_id uuid DEFAULT NULL::uuid";
|
|
748
|
+
readonly returns: "uuid";
|
|
749
|
+
readonly security: "definer";
|
|
750
|
+
}, {
|
|
751
|
+
readonly name: "dashboard_delete";
|
|
752
|
+
readonly args: "p_organization_id uuid, p_dashboard_id uuid";
|
|
753
|
+
readonly returns: "boolean";
|
|
754
|
+
readonly security: "definer";
|
|
755
|
+
}, {
|
|
756
|
+
readonly name: "dashboard_field_keys";
|
|
757
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
758
|
+
readonly returns: "text[]";
|
|
759
|
+
readonly security: "definer";
|
|
760
|
+
}, {
|
|
761
|
+
readonly name: "dashboard_kinds";
|
|
762
|
+
readonly args: "";
|
|
763
|
+
readonly returns: "text[]";
|
|
764
|
+
readonly security: "invoker";
|
|
765
|
+
}, {
|
|
766
|
+
readonly name: "dashboard_moment_sql";
|
|
767
|
+
readonly args: "p_key text";
|
|
768
|
+
readonly returns: "text";
|
|
769
|
+
readonly security: "invoker";
|
|
770
|
+
}, {
|
|
771
|
+
readonly name: "dashboard_run";
|
|
772
|
+
readonly args: "p_organization_id uuid, p_dashboard_id uuid, p_filter jsonb DEFAULT '{}'::jsonb";
|
|
773
|
+
readonly returns: "jsonb";
|
|
774
|
+
readonly security: "definer";
|
|
775
|
+
}, {
|
|
776
|
+
readonly name: "dashboard_stuck";
|
|
777
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_state_key text, p_days integer DEFAULT 14, p_filter jsonb DEFAULT '{}'::jsonb, p_limit integer DEFAULT 50, p_required text DEFAULT 'viewer'::text";
|
|
778
|
+
readonly returns: "TABLE(record_id uuid, title text, state text, last_changed_at timestamp with time zone, days_unchanged numeric, measured_from text)";
|
|
779
|
+
readonly security: "definer";
|
|
780
|
+
}, {
|
|
781
|
+
readonly name: "dashboard_window_sql";
|
|
782
|
+
readonly args: "p_key text, p_window jsonb";
|
|
783
|
+
readonly returns: "text";
|
|
784
|
+
readonly security: "invoker";
|
|
785
|
+
}, {
|
|
786
|
+
readonly name: "dashboards";
|
|
787
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
788
|
+
readonly returns: "TABLE(dashboard_id uuid, table_id uuid, name text, blocks jsonb, presentation jsonb, block_count integer, version integer, created_at timestamp with time zone, updated_at timestamp with time zone)";
|
|
789
|
+
readonly security: "definer";
|
|
790
|
+
}, {
|
|
791
|
+
readonly name: "delete_cascade_closure";
|
|
792
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
793
|
+
readonly returns: "uuid[]";
|
|
794
|
+
readonly security: "invoker";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "delete_preview";
|
|
797
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
798
|
+
readonly returns: "jsonb";
|
|
799
|
+
readonly security: "definer";
|
|
800
|
+
}, {
|
|
801
|
+
readonly name: "delete_rule";
|
|
802
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_apply boolean DEFAULT true";
|
|
803
|
+
readonly returns: "jsonb";
|
|
804
|
+
readonly security: "definer";
|
|
805
|
+
}, {
|
|
806
|
+
readonly name: "dependency_cycle";
|
|
807
|
+
readonly args: "p_organization_id uuid, p_row custom.record";
|
|
808
|
+
readonly returns: "text[]";
|
|
809
|
+
readonly security: "invoker";
|
|
810
|
+
}, {
|
|
811
|
+
readonly name: "dependency_label";
|
|
812
|
+
readonly args: "p_organization_id uuid, p_node text";
|
|
813
|
+
readonly returns: "text";
|
|
814
|
+
readonly security: "invoker";
|
|
815
|
+
}, {
|
|
816
|
+
readonly name: "derive_visibility";
|
|
817
|
+
readonly args: "p_container_type text, p_container_id uuid";
|
|
818
|
+
readonly returns: "TABLE(item_type text, item_id uuid, depth integer, max_level permission_level)";
|
|
819
|
+
readonly security: "definer";
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "derived_value";
|
|
822
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb";
|
|
823
|
+
readonly returns: "jsonb";
|
|
824
|
+
readonly security: "invoker";
|
|
825
|
+
}, {
|
|
826
|
+
readonly name: "derived_values";
|
|
827
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
828
|
+
readonly returns: "jsonb";
|
|
829
|
+
readonly security: "invoker";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "doc_content_hash";
|
|
832
|
+
readonly args: "p_body text";
|
|
833
|
+
readonly returns: "text";
|
|
834
|
+
readonly security: "invoker";
|
|
835
|
+
}, {
|
|
836
|
+
readonly name: "doc_format_value";
|
|
837
|
+
readonly args: "p_field_data jsonb, p_value jsonb";
|
|
838
|
+
readonly returns: "text";
|
|
839
|
+
readonly security: "invoker";
|
|
840
|
+
}, {
|
|
841
|
+
readonly name: "doc_letterhead";
|
|
842
|
+
readonly args: "p_organization_id uuid";
|
|
843
|
+
readonly returns: "jsonb";
|
|
844
|
+
readonly security: "definer";
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "doc_name_token_pattern";
|
|
847
|
+
readonly args: "";
|
|
848
|
+
readonly returns: "text";
|
|
849
|
+
readonly security: "invoker";
|
|
850
|
+
}, {
|
|
851
|
+
readonly name: "doc_name_tokens";
|
|
852
|
+
readonly args: "p_body text";
|
|
853
|
+
readonly returns: "TABLE(ordinal integer, raw text)";
|
|
854
|
+
readonly security: "invoker";
|
|
855
|
+
}, {
|
|
856
|
+
readonly name: "doc_render_body";
|
|
857
|
+
readonly args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid";
|
|
858
|
+
readonly returns: "text";
|
|
859
|
+
readonly security: "invoker";
|
|
860
|
+
}, {
|
|
861
|
+
readonly name: "doc_render_document";
|
|
862
|
+
readonly args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid";
|
|
863
|
+
readonly returns: "uuid";
|
|
864
|
+
readonly security: "definer";
|
|
865
|
+
}, {
|
|
866
|
+
readonly name: "doc_render_read";
|
|
867
|
+
readonly args: "p_organization_id uuid, p_render_id uuid";
|
|
868
|
+
readonly returns: "jsonb";
|
|
869
|
+
readonly security: "definer";
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "doc_render_write";
|
|
872
|
+
readonly 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";
|
|
873
|
+
readonly returns: "uuid";
|
|
874
|
+
readonly security: "definer";
|
|
875
|
+
}, {
|
|
876
|
+
readonly name: "doc_renders";
|
|
877
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
878
|
+
readonly returns: "TABLE(render_id uuid, template_id uuid, record_id uuid, table_id uuid, template_version integer, body text, content_hash text, rendered_at timestamp with time zone)";
|
|
879
|
+
readonly security: "definer";
|
|
880
|
+
}, {
|
|
881
|
+
readonly name: "doc_sign";
|
|
882
|
+
readonly 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";
|
|
883
|
+
readonly returns: "uuid";
|
|
884
|
+
readonly security: "definer";
|
|
885
|
+
}, {
|
|
886
|
+
readonly name: "doc_signature_field_ok";
|
|
887
|
+
readonly args: "p_field_data jsonb";
|
|
888
|
+
readonly returns: "boolean";
|
|
889
|
+
readonly security: "invoker";
|
|
890
|
+
}, {
|
|
891
|
+
readonly name: "doc_signature_intact";
|
|
892
|
+
readonly args: "p_organization_id uuid, p_signature_id uuid";
|
|
893
|
+
readonly returns: "jsonb";
|
|
894
|
+
readonly security: "invoker";
|
|
895
|
+
}, {
|
|
896
|
+
readonly name: "doc_signature_read";
|
|
897
|
+
readonly args: "p_organization_id uuid, p_signature_id uuid";
|
|
898
|
+
readonly returns: "jsonb";
|
|
899
|
+
readonly security: "definer";
|
|
900
|
+
}, {
|
|
901
|
+
readonly name: "doc_signature_write";
|
|
902
|
+
readonly 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";
|
|
903
|
+
readonly returns: "uuid";
|
|
904
|
+
readonly security: "definer";
|
|
905
|
+
}, {
|
|
906
|
+
readonly name: "doc_signatures";
|
|
907
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
908
|
+
readonly returns: "TABLE(signature_id uuid, render_id uuid, record_id uuid, field_key text, signer_name text, signer_user_id uuid, signed_at timestamp with time zone, document_hash text, document_version integer)";
|
|
909
|
+
readonly security: "definer";
|
|
910
|
+
}, {
|
|
911
|
+
readonly name: "doc_template_delete";
|
|
912
|
+
readonly args: "p_organization_id uuid, p_template_id uuid";
|
|
913
|
+
readonly returns: "boolean";
|
|
914
|
+
readonly security: "definer";
|
|
915
|
+
}, {
|
|
916
|
+
readonly name: "doc_template_read";
|
|
917
|
+
readonly args: "p_organization_id uuid, p_template_id uuid";
|
|
918
|
+
readonly returns: "jsonb";
|
|
919
|
+
readonly security: "definer";
|
|
920
|
+
}, {
|
|
921
|
+
readonly name: "doc_template_save";
|
|
922
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_name text, p_body text, p_template_id uuid DEFAULT NULL::uuid";
|
|
923
|
+
readonly returns: "uuid";
|
|
924
|
+
readonly security: "definer";
|
|
925
|
+
}, {
|
|
926
|
+
readonly name: "doc_templates";
|
|
927
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
928
|
+
readonly returns: "TABLE(template_id uuid, renders_table_id uuid, name text, body text, template_version integer, token_count bigint, updated_at timestamp with time zone)";
|
|
929
|
+
readonly security: "definer";
|
|
930
|
+
}, {
|
|
931
|
+
readonly name: "doc_token_pattern";
|
|
932
|
+
readonly args: "";
|
|
933
|
+
readonly returns: "text";
|
|
934
|
+
readonly security: "invoker";
|
|
935
|
+
}, {
|
|
936
|
+
readonly name: "doc_tokens";
|
|
937
|
+
readonly args: "p_body text";
|
|
938
|
+
readonly returns: "TABLE(ordinal integer, raw text, field_id uuid)";
|
|
939
|
+
readonly security: "invoker";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "doc_unresolved_tokens";
|
|
942
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_body text";
|
|
943
|
+
readonly returns: "TABLE(raw text, field_id uuid, why text)";
|
|
944
|
+
readonly security: "invoker";
|
|
945
|
+
}, {
|
|
946
|
+
readonly name: "doors_not_deciding_the_caller";
|
|
947
|
+
readonly args: "";
|
|
948
|
+
readonly returns: "TABLE(function_name text, identity_args text)";
|
|
949
|
+
readonly security: "invoker";
|
|
950
|
+
}, {
|
|
951
|
+
readonly name: "doors_not_deciding_the_record";
|
|
952
|
+
readonly args: "";
|
|
953
|
+
readonly returns: "TABLE(function_name text, identity_args text, why text)";
|
|
954
|
+
readonly security: "invoker";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "doors_not_masking_fields";
|
|
957
|
+
readonly args: "";
|
|
958
|
+
readonly returns: "TABLE(function_name text, identity_args text, why text)";
|
|
959
|
+
readonly security: "invoker";
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "doors_not_on_one_ladder";
|
|
962
|
+
readonly args: "";
|
|
963
|
+
readonly returns: "TABLE(function_name text, identity_args text, why text)";
|
|
964
|
+
readonly security: "invoker";
|
|
965
|
+
}, {
|
|
966
|
+
readonly name: "effective_level";
|
|
967
|
+
readonly args: "p_user_id uuid, p_organization_id uuid, p_id uuid, p_type text DEFAULT 'record'::text";
|
|
968
|
+
readonly returns: "permission_level";
|
|
969
|
+
readonly security: "definer";
|
|
970
|
+
}, {
|
|
971
|
+
readonly name: "enrich_cells";
|
|
972
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_field_keys text[] DEFAULT NULL::text[], p_record_ids uuid[] DEFAULT NULL::uuid[]";
|
|
973
|
+
readonly returns: "TABLE(record_id uuid, field_key text, agent_owned boolean, value jsonb, value_version integer, actor text, on_behalf_of text, written_at timestamp with time zone, source jsonb, absent_reason text, alternates jsonb, pinned boolean, stale boolean, due_at timestamp with time zone)";
|
|
974
|
+
readonly security: "definer";
|
|
975
|
+
}, {
|
|
976
|
+
readonly name: "enrich_declare";
|
|
977
|
+
readonly args: "p_organization_id uuid, p_field_id uuid, p_spec jsonb";
|
|
978
|
+
readonly returns: "jsonb";
|
|
979
|
+
readonly security: "definer";
|
|
980
|
+
}, {
|
|
981
|
+
readonly name: "enrich_due";
|
|
982
|
+
readonly args: "p_organization_id uuid, p_field_id uuid, p_limit integer DEFAULT 50, p_include_fresh boolean DEFAULT false";
|
|
983
|
+
readonly returns: "TABLE(record_id uuid, title text, inputs jsonb, current_value jsonb, written_at timestamp with time zone, reason text, trimmed_to integer)";
|
|
984
|
+
readonly security: "definer";
|
|
985
|
+
}, {
|
|
986
|
+
readonly name: "enrich_land";
|
|
987
|
+
readonly args: "p_organization_id uuid, p_field_id uuid, p_results jsonb, p_run jsonb DEFAULT '{}'::jsonb";
|
|
988
|
+
readonly returns: "jsonb";
|
|
989
|
+
readonly security: "definer";
|
|
990
|
+
}, {
|
|
991
|
+
readonly name: "enrich_normalize";
|
|
992
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_spec jsonb";
|
|
993
|
+
readonly returns: "jsonb";
|
|
994
|
+
readonly security: "definer";
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "enrich_pin";
|
|
997
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_key text, p_pinned boolean DEFAULT true";
|
|
998
|
+
readonly returns: "jsonb";
|
|
999
|
+
readonly security: "definer";
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly name: "enrich_run_class";
|
|
1002
|
+
readonly args: "";
|
|
1003
|
+
readonly returns: "text";
|
|
1004
|
+
readonly security: "invoker";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly name: "enrich_runs";
|
|
1007
|
+
readonly args: "p_organization_id uuid, p_field_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 50";
|
|
1008
|
+
readonly returns: "TABLE(run_id uuid, field_id uuid, field_key text, model text, trigger_word text, rows_seen integer, rows_written integer, rows_absent integer, rows_below_floor integer, rows_pinned integer, rows_refused integer, cost_cents numeric, cost_per_row_cents numeric, ran_at timestamp with time zone)";
|
|
1009
|
+
readonly security: "definer";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly name: "enrich_sensitivity_rank";
|
|
1012
|
+
readonly args: "p_word text";
|
|
1013
|
+
readonly returns: "integer";
|
|
1014
|
+
readonly security: "invoker";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly name: "enrich_triggers";
|
|
1017
|
+
readonly args: "";
|
|
1018
|
+
readonly returns: "text[]";
|
|
1019
|
+
readonly security: "invoker";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly name: "enrichments";
|
|
1022
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
1023
|
+
readonly returns: "TABLE(field_id uuid, table_id uuid, field_key text, label text, enrichment jsonb, enabled boolean, review_interval_days integer, rows_total integer, rows_filled integer, rows_stale integer, rows_pinned integer, rows_absent integer, runs integer, cost_cents numeric, cost_per_row_cents numeric, last_run_at timestamp with time zone, last_run jsonb)";
|
|
1024
|
+
readonly security: "definer";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly name: "entity_field_declare";
|
|
1027
|
+
readonly args: "p_organization_id uuid, p_token text, p_spec jsonb";
|
|
1028
|
+
readonly returns: "uuid";
|
|
1029
|
+
readonly security: "definer";
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly name: "entity_field_retire";
|
|
1032
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
1033
|
+
readonly returns: "uuid";
|
|
1034
|
+
readonly security: "definer";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly name: "entity_field_rights";
|
|
1037
|
+
readonly args: "p_organization_id uuid, p_token text";
|
|
1038
|
+
readonly returns: "jsonb";
|
|
1039
|
+
readonly security: "definer";
|
|
1040
|
+
}, {
|
|
1041
|
+
readonly name: "entity_field_update";
|
|
1042
|
+
readonly args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb";
|
|
1043
|
+
readonly returns: "uuid";
|
|
1044
|
+
readonly security: "definer";
|
|
1045
|
+
}, {
|
|
1046
|
+
readonly name: "entity_fields";
|
|
1047
|
+
readonly args: "p_organization_id uuid, p_token text";
|
|
1048
|
+
readonly returns: "SETOF custom.record";
|
|
1049
|
+
readonly security: "definer";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly name: "entity_record_read";
|
|
1052
|
+
readonly args: "p_organization_id uuid, p_token text, p_record_id uuid";
|
|
1053
|
+
readonly returns: "jsonb";
|
|
1054
|
+
readonly security: "invoker";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly name: "entity_records_find";
|
|
1057
|
+
readonly args: "p_organization_id uuid, p_token text, p_key text, p_value jsonb DEFAULT NULL::jsonb, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0";
|
|
1058
|
+
readonly returns: "jsonb";
|
|
1059
|
+
readonly security: "invoker";
|
|
1060
|
+
}, {
|
|
1061
|
+
readonly name: "entity_table";
|
|
1062
|
+
readonly args: "p_token text";
|
|
1063
|
+
readonly returns: "TABLE(token text, schema_name text, table_name text, type text, title_column text, label text, has_organization boolean, has_deleted_at boolean)";
|
|
1064
|
+
readonly security: "invoker";
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly name: "entity_value_write";
|
|
1067
|
+
readonly args: "p_organization_id uuid, p_token text, p_record_id uuid, p_patch jsonb";
|
|
1068
|
+
readonly returns: "jsonb";
|
|
1069
|
+
readonly security: "invoker";
|
|
1070
|
+
}, {
|
|
1071
|
+
readonly name: "export_ceiling";
|
|
1072
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
1073
|
+
readonly returns: "integer";
|
|
1074
|
+
readonly security: "invoker";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly name: "export_records";
|
|
1077
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000";
|
|
1078
|
+
readonly returns: "TABLE(id uuid, document jsonb)";
|
|
1079
|
+
readonly security: "invoker";
|
|
1080
|
+
}, {
|
|
1081
|
+
readonly name: "external_foreign_table_findings";
|
|
1082
|
+
readonly args: "";
|
|
1083
|
+
readonly returns: "SETOF text";
|
|
1084
|
+
readonly security: "definer";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "external_history_event";
|
|
1087
|
+
readonly args: "p_organization_id uuid, p_link_id uuid, p_operation text";
|
|
1088
|
+
readonly returns: "bigint";
|
|
1089
|
+
readonly security: "definer";
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly name: "external_rows";
|
|
1092
|
+
readonly args: "p_organization_id uuid, p_source_id uuid";
|
|
1093
|
+
readonly returns: "SETOF jsonb";
|
|
1094
|
+
readonly security: "definer";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly name: "external_source_declare";
|
|
1097
|
+
readonly args: "p_organization_id uuid, p_tier text, p_connection_token text, p_external_schema text, p_external_table text, p_link_template text";
|
|
1098
|
+
readonly returns: "uuid";
|
|
1099
|
+
readonly security: "definer";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly name: "external_stub_upsert";
|
|
1102
|
+
readonly 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";
|
|
1103
|
+
readonly returns: "uuid";
|
|
1104
|
+
readonly security: "definer";
|
|
1105
|
+
}, {
|
|
1106
|
+
readonly name: "external_tier_contract";
|
|
1107
|
+
readonly args: "";
|
|
1108
|
+
readonly returns: "jsonb";
|
|
1109
|
+
readonly security: "definer";
|
|
1110
|
+
}, {
|
|
1111
|
+
readonly name: "external_write_through";
|
|
1112
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb";
|
|
1113
|
+
readonly returns: "void";
|
|
1114
|
+
readonly security: "definer";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly name: "external_writes_set";
|
|
1117
|
+
readonly args: "p_organization_id uuid, p_source_id uuid, p_enabled boolean";
|
|
1118
|
+
readonly returns: "boolean";
|
|
1119
|
+
readonly security: "definer";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly name: "field_behaviour";
|
|
1122
|
+
readonly args: "p_field_data jsonb";
|
|
1123
|
+
readonly returns: "text";
|
|
1124
|
+
readonly security: "invoker";
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly name: "field_declare";
|
|
1127
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
1128
|
+
readonly returns: "uuid";
|
|
1129
|
+
readonly security: "definer";
|
|
1130
|
+
}, {
|
|
1131
|
+
readonly name: "field_dependants";
|
|
1132
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
1133
|
+
readonly returns: "TABLE(kind text, dependant_id uuid, label text, how text)";
|
|
1134
|
+
readonly security: "definer";
|
|
1135
|
+
}, {
|
|
1136
|
+
readonly name: "field_history";
|
|
1137
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0, p_record_id uuid DEFAULT NULL::uuid";
|
|
1138
|
+
readonly returns: "TABLE(record_id uuid, record_title text, version integer, occurred_at timestamp with time zone, operation_label text, actor jsonb, before jsonb, after jsonb)";
|
|
1139
|
+
readonly security: "definer";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly name: "field_kernel_id";
|
|
1142
|
+
readonly args: "";
|
|
1143
|
+
readonly returns: "uuid";
|
|
1144
|
+
readonly security: "invoker";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly name: "field_options";
|
|
1147
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
1148
|
+
readonly returns: "SETOF custom.record";
|
|
1149
|
+
readonly security: "definer";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly name: "field_retire";
|
|
1152
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
1153
|
+
readonly returns: "boolean";
|
|
1154
|
+
readonly security: "definer";
|
|
1155
|
+
}, {
|
|
1156
|
+
readonly name: "field_rules";
|
|
1157
|
+
readonly args: "p_field_data jsonb";
|
|
1158
|
+
readonly returns: "TABLE(kind text, spec jsonb)";
|
|
1159
|
+
readonly security: "invoker";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly name: "field_update";
|
|
1162
|
+
readonly args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb";
|
|
1163
|
+
readonly returns: "uuid";
|
|
1164
|
+
readonly security: "definer";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly name: "field_value_convert";
|
|
1167
|
+
readonly args: "p_to jsonb, p_value jsonb";
|
|
1168
|
+
readonly returns: "jsonb";
|
|
1169
|
+
readonly security: "invoker";
|
|
1170
|
+
}, {
|
|
1171
|
+
readonly name: "file_kernel_id";
|
|
1172
|
+
readonly args: "";
|
|
1173
|
+
readonly returns: "uuid";
|
|
1174
|
+
readonly security: "invoker";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "form_declare";
|
|
1177
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text";
|
|
1178
|
+
readonly returns: "uuid";
|
|
1179
|
+
readonly security: "definer";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly name: "form_notify";
|
|
1182
|
+
readonly args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid";
|
|
1183
|
+
readonly returns: "uuid";
|
|
1184
|
+
readonly security: "invoker";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly name: "form_public";
|
|
1187
|
+
readonly args: "p_form_id uuid";
|
|
1188
|
+
readonly returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, state text, message text)";
|
|
1189
|
+
readonly security: "definer";
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly name: "form_slug";
|
|
1192
|
+
readonly args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid";
|
|
1193
|
+
readonly returns: "text";
|
|
1194
|
+
readonly security: "invoker";
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly name: "form_submit";
|
|
1197
|
+
readonly args: "p_form_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text";
|
|
1198
|
+
readonly returns: "TABLE(submission_id uuid, record_id uuid, state text, message text)";
|
|
1199
|
+
readonly security: "definer";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly name: "forms";
|
|
1202
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
1203
|
+
readonly returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, submission_cap integer, responses bigint, in_table bigint, held bigint, rejected bigint, state text, quarantine_rule_id uuid, notify_rule_id uuid, presentation jsonb)";
|
|
1204
|
+
readonly security: "definer";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly name: "formula_value";
|
|
1207
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb";
|
|
1208
|
+
readonly returns: "jsonb";
|
|
1209
|
+
readonly security: "invoker";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly name: "freshness_verdict";
|
|
1212
|
+
readonly args: "p_written_at timestamp with time zone, p_ceiling_seconds numeric";
|
|
1213
|
+
readonly returns: "jsonb";
|
|
1214
|
+
readonly security: "definer";
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly name: "guard_refusals_are_complete";
|
|
1217
|
+
readonly args: "";
|
|
1218
|
+
readonly returns: "TABLE(guard text, said text)";
|
|
1219
|
+
readonly security: "invoker";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly name: "has_visibility";
|
|
1222
|
+
readonly args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
1223
|
+
readonly returns: "boolean";
|
|
1224
|
+
readonly security: "definer";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly name: "has_visibility_at";
|
|
1227
|
+
readonly 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";
|
|
1228
|
+
readonly returns: "boolean";
|
|
1229
|
+
readonly security: "definer";
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly name: "hidden_field_notice";
|
|
1232
|
+
readonly args: "p_field custom.record, p_action text DEFAULT 'read'::text";
|
|
1233
|
+
readonly returns: "jsonb";
|
|
1234
|
+
readonly security: "invoker";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly name: "history_actor";
|
|
1237
|
+
readonly args: "p_tier text, p_document jsonb, p_actor_id uuid, p_people jsonb";
|
|
1238
|
+
readonly returns: "jsonb";
|
|
1239
|
+
readonly security: "invoker";
|
|
1240
|
+
}, {
|
|
1241
|
+
readonly name: "history_changes";
|
|
1242
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_old jsonb, p_new jsonb";
|
|
1243
|
+
readonly returns: "jsonb";
|
|
1244
|
+
readonly security: "invoker";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly name: "history_people";
|
|
1247
|
+
readonly args: "p_organization_id uuid, p_ids uuid[]";
|
|
1248
|
+
readonly returns: "jsonb";
|
|
1249
|
+
readonly security: "definer";
|
|
1250
|
+
}, {
|
|
1251
|
+
readonly name: "history_prune";
|
|
1252
|
+
readonly args: "p_organization_id uuid, p_scope text DEFAULT 'values'::text, p_table_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true";
|
|
1253
|
+
readonly returns: "jsonb";
|
|
1254
|
+
readonly security: "definer";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly name: "history_restore_body";
|
|
1257
|
+
readonly args: "p_current jsonb, p_target jsonb, p_field_key text DEFAULT NULL::text";
|
|
1258
|
+
readonly returns: "jsonb";
|
|
1259
|
+
readonly security: "invoker";
|
|
1260
|
+
}, {
|
|
1261
|
+
readonly name: "history_restore_body";
|
|
1262
|
+
readonly args: "p_current jsonb, p_target jsonb, p_field_key text, p_author jsonb";
|
|
1263
|
+
readonly returns: "jsonb";
|
|
1264
|
+
readonly security: "invoker";
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly name: "history_retention";
|
|
1267
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
1268
|
+
readonly returns: "jsonb";
|
|
1269
|
+
readonly security: "definer";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly name: "history_retention_floor_raise";
|
|
1272
|
+
readonly args: "p_organization_id uuid, p_days integer";
|
|
1273
|
+
readonly returns: "integer";
|
|
1274
|
+
readonly security: "definer";
|
|
1275
|
+
}, {
|
|
1276
|
+
readonly name: "history_retention_set";
|
|
1277
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_days integer";
|
|
1278
|
+
readonly returns: "integer";
|
|
1279
|
+
readonly security: "definer";
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly name: "home_add";
|
|
1282
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_home_record_id uuid";
|
|
1283
|
+
readonly returns: "uuid";
|
|
1284
|
+
readonly security: "definer";
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly name: "home_relations";
|
|
1287
|
+
readonly args: "";
|
|
1288
|
+
readonly returns: "TABLE(table_id uuid, home_record_id uuid, organization_id uuid, relation_id uuid)";
|
|
1289
|
+
readonly security: "invoker";
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly name: "inbound_addresses";
|
|
1292
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
1293
|
+
readonly returns: "jsonb";
|
|
1294
|
+
readonly security: "definer";
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly name: "inbound_declare";
|
|
1297
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_label text DEFAULT NULL::text";
|
|
1298
|
+
readonly returns: "jsonb";
|
|
1299
|
+
readonly security: "definer";
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly name: "inbound_domain";
|
|
1302
|
+
readonly args: "p_organization_id uuid";
|
|
1303
|
+
readonly returns: "text";
|
|
1304
|
+
readonly security: "invoker";
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly name: "inbound_mail_land";
|
|
1307
|
+
readonly args: "p_address text, p_mail jsonb, p_secret text DEFAULT NULL::text";
|
|
1308
|
+
readonly returns: "jsonb";
|
|
1309
|
+
readonly security: "definer";
|
|
1310
|
+
}, {
|
|
1311
|
+
readonly name: "inbound_mail_map";
|
|
1312
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_mail jsonb";
|
|
1313
|
+
readonly returns: "jsonb";
|
|
1314
|
+
readonly security: "invoker";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "inbound_set";
|
|
1317
|
+
readonly args: "p_organization_id uuid, p_inbound_id uuid, p_enabled boolean";
|
|
1318
|
+
readonly returns: "jsonb";
|
|
1319
|
+
readonly security: "definer";
|
|
1320
|
+
}, {
|
|
1321
|
+
readonly name: "index_payload";
|
|
1322
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000";
|
|
1323
|
+
readonly returns: "TABLE(id uuid, searchable text)";
|
|
1324
|
+
readonly security: "invoker";
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly name: "intern_provenance";
|
|
1327
|
+
readonly args: "p_data jsonb";
|
|
1328
|
+
readonly returns: "jsonb";
|
|
1329
|
+
readonly security: "invoker";
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly name: "io_cell";
|
|
1332
|
+
readonly args: "p_organization_id uuid, p_field jsonb, p_word text, p_date_order text DEFAULT 'mdy'::text";
|
|
1333
|
+
readonly returns: "jsonb";
|
|
1334
|
+
readonly security: "invoker";
|
|
1335
|
+
}, {
|
|
1336
|
+
readonly name: "io_changed_field_ids";
|
|
1337
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_old jsonb, p_new jsonb";
|
|
1338
|
+
readonly returns: "jsonb";
|
|
1339
|
+
readonly security: "invoker";
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly name: "io_changed_keys";
|
|
1342
|
+
readonly args: "p_old jsonb, p_new jsonb";
|
|
1343
|
+
readonly returns: "text[]";
|
|
1344
|
+
readonly security: "invoker";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly name: "io_comment_resolve";
|
|
1347
|
+
readonly args: "p_organization_id uuid, p_comment_id uuid, p_resolved boolean DEFAULT true";
|
|
1348
|
+
readonly returns: "boolean";
|
|
1349
|
+
readonly security: "definer";
|
|
1350
|
+
}, {
|
|
1351
|
+
readonly name: "io_comment_write";
|
|
1352
|
+
readonly 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";
|
|
1353
|
+
readonly returns: "uuid";
|
|
1354
|
+
readonly security: "definer";
|
|
1355
|
+
}, {
|
|
1356
|
+
readonly name: "io_comments";
|
|
1357
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_include_resolved boolean DEFAULT false";
|
|
1358
|
+
readonly 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)";
|
|
1359
|
+
readonly security: "definer";
|
|
1360
|
+
}, {
|
|
1361
|
+
readonly name: "io_csv_escape";
|
|
1362
|
+
readonly args: "p_value text, p_delimiter text DEFAULT ','::text";
|
|
1363
|
+
readonly returns: "text";
|
|
1364
|
+
readonly security: "invoker";
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly name: "io_csv_parse";
|
|
1367
|
+
readonly args: "p_text text, p_delimiter text DEFAULT NULL::text";
|
|
1368
|
+
readonly returns: "TABLE(row_number integer, cells text[])";
|
|
1369
|
+
readonly security: "invoker";
|
|
1370
|
+
}, {
|
|
1371
|
+
readonly name: "io_export";
|
|
1372
|
+
readonly 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";
|
|
1373
|
+
readonly returns: "jsonb";
|
|
1374
|
+
readonly security: "definer";
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly name: "io_export_csv";
|
|
1377
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_columns text[] DEFAULT NULL::text[], p_limit integer DEFAULT 10000, p_delimiter text DEFAULT chr(44), p_required text DEFAULT 'viewer'::text";
|
|
1378
|
+
readonly returns: "text";
|
|
1379
|
+
readonly security: "definer";
|
|
1380
|
+
}, {
|
|
1381
|
+
readonly name: "io_import_begin";
|
|
1382
|
+
readonly 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, p_file_hash text DEFAULT NULL::text, p_policy jsonb DEFAULT '{}'::jsonb, p_dedupe_key text DEFAULT NULL::text, p_file_bytes bigint DEFAULT NULL::bigint, p_force boolean DEFAULT false";
|
|
1383
|
+
readonly returns: "jsonb";
|
|
1384
|
+
readonly security: "definer";
|
|
1385
|
+
}, {
|
|
1386
|
+
readonly name: "io_import_finish";
|
|
1387
|
+
readonly args: "p_organization_id uuid, p_import_id uuid, p_unmapped text DEFAULT NULL::text";
|
|
1388
|
+
readonly returns: "jsonb";
|
|
1389
|
+
readonly security: "definer";
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly name: "io_import_forget";
|
|
1392
|
+
readonly args: "p_organization_id uuid, p_import_id uuid";
|
|
1393
|
+
readonly returns: "boolean";
|
|
1394
|
+
readonly security: "definer";
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly name: "io_import_open";
|
|
1397
|
+
readonly 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";
|
|
1398
|
+
readonly returns: "uuid";
|
|
1399
|
+
readonly security: "definer";
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly name: "io_import_plan";
|
|
1402
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_columns jsonb DEFAULT '[]'::jsonb";
|
|
1403
|
+
readonly returns: "jsonb";
|
|
1404
|
+
readonly security: "definer";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly name: "io_import_report";
|
|
1407
|
+
readonly args: "p_organization_id uuid, p_import_id uuid, p_state text DEFAULT NULL::text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0";
|
|
1408
|
+
readonly returns: "jsonb";
|
|
1409
|
+
readonly security: "definer";
|
|
1410
|
+
}, {
|
|
1411
|
+
readonly name: "io_import_rows";
|
|
1412
|
+
readonly args: "p_organization_id uuid, p_import_id uuid, p_rows jsonb, p_mapping jsonb DEFAULT '{}'::jsonb";
|
|
1413
|
+
readonly returns: "jsonb";
|
|
1414
|
+
readonly security: "definer";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly name: "io_imports";
|
|
1417
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 25";
|
|
1418
|
+
readonly returns: "jsonb";
|
|
1419
|
+
readonly security: "definer";
|
|
1420
|
+
}, {
|
|
1421
|
+
readonly name: "io_infer_column";
|
|
1422
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_header text, p_samples jsonb DEFAULT '[]'::jsonb";
|
|
1423
|
+
readonly returns: "jsonb";
|
|
1424
|
+
readonly security: "definer";
|
|
1425
|
+
}, {
|
|
1426
|
+
readonly name: "io_infer_type";
|
|
1427
|
+
readonly args: "p_samples jsonb";
|
|
1428
|
+
readonly returns: "text";
|
|
1429
|
+
readonly security: "invoker";
|
|
1430
|
+
}, {
|
|
1431
|
+
readonly name: "io_money_unit";
|
|
1432
|
+
readonly args: "p_word text";
|
|
1433
|
+
readonly returns: "text";
|
|
1434
|
+
readonly security: "invoker";
|
|
1435
|
+
}, {
|
|
1436
|
+
readonly name: "io_outbox_announce";
|
|
1437
|
+
readonly args: "";
|
|
1438
|
+
readonly returns: "trigger";
|
|
1439
|
+
readonly security: "definer";
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly name: "io_outbox_drain";
|
|
1442
|
+
readonly args: "p_organization_id uuid, p_consumer text, p_limit integer DEFAULT 100, p_event_key text DEFAULT 'records.changed'::text";
|
|
1443
|
+
readonly 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)";
|
|
1444
|
+
readonly security: "definer";
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly name: "io_outbox_release";
|
|
1447
|
+
readonly args: "p_organization_id uuid, p_consumer text, p_older_than interval DEFAULT '00:15:00'::interval";
|
|
1448
|
+
readonly returns: "integer";
|
|
1449
|
+
readonly security: "definer";
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly name: "io_proposal_accept";
|
|
1452
|
+
readonly args: "p_organization_id uuid, p_import_id uuid, p_column text, p_type text DEFAULT NULL::text, p_label text DEFAULT NULL::text";
|
|
1453
|
+
readonly returns: "uuid";
|
|
1454
|
+
readonly security: "definer";
|
|
1455
|
+
}, {
|
|
1456
|
+
readonly name: "io_proposal_reject";
|
|
1457
|
+
readonly args: "p_organization_id uuid, p_import_id uuid, p_column text";
|
|
1458
|
+
readonly returns: "boolean";
|
|
1459
|
+
readonly security: "definer";
|
|
1460
|
+
}, {
|
|
1461
|
+
readonly name: "io_proposal_spec";
|
|
1462
|
+
readonly args: "p_proposal jsonb";
|
|
1463
|
+
readonly returns: "jsonb";
|
|
1464
|
+
readonly security: "invoker";
|
|
1465
|
+
}, {
|
|
1466
|
+
readonly name: "io_record_changed";
|
|
1467
|
+
readonly args: "";
|
|
1468
|
+
readonly returns: "trigger";
|
|
1469
|
+
readonly security: "definer";
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly name: "io_record_changed_stmt_delete";
|
|
1472
|
+
readonly args: "";
|
|
1473
|
+
readonly returns: "trigger";
|
|
1474
|
+
readonly security: "definer";
|
|
1475
|
+
}, {
|
|
1476
|
+
readonly name: "io_record_changed_stmt_insert";
|
|
1477
|
+
readonly args: "";
|
|
1478
|
+
readonly returns: "trigger";
|
|
1479
|
+
readonly security: "definer";
|
|
1480
|
+
}, {
|
|
1481
|
+
readonly name: "io_record_changed_stmt_update";
|
|
1482
|
+
readonly args: "";
|
|
1483
|
+
readonly returns: "trigger";
|
|
1484
|
+
readonly security: "definer";
|
|
1485
|
+
}, {
|
|
1486
|
+
readonly name: "io_relation_candidate";
|
|
1487
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_words text[]";
|
|
1488
|
+
readonly returns: "uuid";
|
|
1489
|
+
readonly security: "invoker";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly name: "io_restore";
|
|
1492
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_version integer";
|
|
1493
|
+
readonly returns: "integer";
|
|
1494
|
+
readonly security: "definer";
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly name: "io_restore";
|
|
1497
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_version integer, p_author jsonb";
|
|
1498
|
+
readonly returns: "integer";
|
|
1499
|
+
readonly security: "definer";
|
|
1500
|
+
}, {
|
|
1501
|
+
readonly name: "io_revisions";
|
|
1502
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
1503
|
+
readonly returns: "TABLE(version integer, changed_at timestamp with time zone, changed_by uuid, summary text, operation text, changed_fields jsonb)";
|
|
1504
|
+
readonly security: "definer";
|
|
1505
|
+
}, {
|
|
1506
|
+
readonly name: "io_sample_words";
|
|
1507
|
+
readonly args: "p_samples jsonb";
|
|
1508
|
+
readonly returns: "TABLE(word text)";
|
|
1509
|
+
readonly security: "invoker";
|
|
1510
|
+
}, {
|
|
1511
|
+
readonly name: "io_value_shape";
|
|
1512
|
+
readonly args: "p_envelope jsonb";
|
|
1513
|
+
readonly returns: "jsonb";
|
|
1514
|
+
readonly security: "invoker";
|
|
1515
|
+
}, {
|
|
1516
|
+
readonly name: "is_a_retirement";
|
|
1517
|
+
readonly args: "p_old_deleted timestamp with time zone, p_new_deleted timestamp with time zone, p_old_data jsonb, p_new_data jsonb, p_old_table uuid, p_new_table uuid, p_old_org uuid, p_new_org uuid, p_old_class text, p_new_class text";
|
|
1518
|
+
readonly returns: "boolean";
|
|
1519
|
+
readonly security: "invoker";
|
|
1520
|
+
}, {
|
|
1521
|
+
readonly name: "ladder_replanners";
|
|
1522
|
+
readonly args: "p_roots text[] DEFAULT ARRAY['custom.has_visibility'::text, 'custom.effective_level'::text, 'custom.reaches_directly'::text, 'custom.visible_set'::text]";
|
|
1523
|
+
readonly returns: "TABLE(fn text, lang text, why text, remedy text)";
|
|
1524
|
+
readonly security: "definer";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly name: "level_floor";
|
|
1527
|
+
readonly args: "";
|
|
1528
|
+
readonly returns: "permission_level";
|
|
1529
|
+
readonly security: "definer";
|
|
1530
|
+
}, {
|
|
1531
|
+
readonly name: "levels_raised_by_a_less_specific_rung";
|
|
1532
|
+
readonly args: "";
|
|
1533
|
+
readonly returns: "TABLE(organization_id uuid, organization_name text, member_id uuid, member_email text, record_id uuid, addressed_level permission_level, answered_level permission_level)";
|
|
1534
|
+
readonly security: "definer";
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly name: "list_door_disagreements";
|
|
1537
|
+
readonly args: "p_pretend text DEFAULT NULL::text, p_only_organization uuid DEFAULT NULL::uuid, p_sample integer DEFAULT 200";
|
|
1538
|
+
readonly returns: "TABLE(organization_id uuid, organization_name text, member_id uuid, table_id uuid, record_id uuid, door text, why text)";
|
|
1539
|
+
readonly security: "invoker";
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly name: "list_door_disagreements";
|
|
1542
|
+
readonly args: "p_pretend text, p_only_organization uuid, p_sample integer, p_exhaustive boolean";
|
|
1543
|
+
readonly returns: "TABLE(organization_id uuid, organization_name text, member_id uuid, table_id uuid, record_id uuid, door text, why text)";
|
|
1544
|
+
readonly security: "invoker";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly name: "lookup_value";
|
|
1547
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb";
|
|
1548
|
+
readonly returns: "jsonb";
|
|
1549
|
+
readonly security: "invoker";
|
|
1550
|
+
}, {
|
|
1551
|
+
readonly name: "mask_document";
|
|
1552
|
+
readonly args: "p_document jsonb, p_visible_keys text[], p_notices jsonb, p_by_id boolean DEFAULT false, p_key_ids jsonb DEFAULT '{}'::jsonb";
|
|
1553
|
+
readonly returns: "jsonb";
|
|
1554
|
+
readonly security: "invoker";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly name: "mask_document";
|
|
1557
|
+
readonly 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[]";
|
|
1558
|
+
readonly returns: "jsonb";
|
|
1559
|
+
readonly security: "invoker";
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly name: "mask_says_withheld";
|
|
1562
|
+
readonly args: "p_mask jsonb, p_key text";
|
|
1563
|
+
readonly returns: "boolean";
|
|
1564
|
+
readonly security: "invoker";
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly name: "merge_field_kernel_id";
|
|
1567
|
+
readonly args: "";
|
|
1568
|
+
readonly returns: "uuid";
|
|
1569
|
+
readonly security: "invoker";
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly name: "migrate_choice_keys";
|
|
1572
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_dry_run boolean DEFAULT false";
|
|
1573
|
+
readonly returns: "jsonb";
|
|
1574
|
+
readonly security: "definer";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly name: "migrate_delete";
|
|
1577
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_note text DEFAULT NULL::text";
|
|
1578
|
+
readonly returns: "jsonb";
|
|
1579
|
+
readonly security: "definer";
|
|
1580
|
+
}, {
|
|
1581
|
+
readonly name: "migrate_demote";
|
|
1582
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text";
|
|
1583
|
+
readonly returns: "jsonb";
|
|
1584
|
+
readonly security: "definer";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly name: "migrate_extract_parent";
|
|
1587
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_parent_table_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text";
|
|
1588
|
+
readonly returns: "jsonb";
|
|
1589
|
+
readonly security: "definer";
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly name: "migrate_merge";
|
|
1592
|
+
readonly args: "p_organization_id uuid, p_winner_id uuid, p_loser_id uuid, p_note text DEFAULT NULL::text";
|
|
1593
|
+
readonly returns: "jsonb";
|
|
1594
|
+
readonly security: "definer";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly name: "migrate_promote";
|
|
1597
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text";
|
|
1598
|
+
readonly returns: "jsonb";
|
|
1599
|
+
readonly security: "definer";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly name: "migrate_purge";
|
|
1602
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true";
|
|
1603
|
+
readonly returns: "jsonb";
|
|
1604
|
+
readonly security: "definer";
|
|
1605
|
+
}, {
|
|
1606
|
+
readonly name: "migrate_reclass";
|
|
1607
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_to text DEFAULT 'field'::text, p_note text DEFAULT NULL::text";
|
|
1608
|
+
readonly returns: "jsonb";
|
|
1609
|
+
readonly security: "definer";
|
|
1610
|
+
}, {
|
|
1611
|
+
readonly name: "migrate_rename";
|
|
1612
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text";
|
|
1613
|
+
readonly returns: "jsonb";
|
|
1614
|
+
readonly security: "definer";
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly name: "migrate_reparent";
|
|
1617
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_parent_id uuid, p_note text DEFAULT NULL::text";
|
|
1618
|
+
readonly returns: "jsonb";
|
|
1619
|
+
readonly security: "definer";
|
|
1620
|
+
}, {
|
|
1621
|
+
readonly name: "migrate_retype";
|
|
1622
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text";
|
|
1623
|
+
readonly returns: "jsonb";
|
|
1624
|
+
readonly security: "definer";
|
|
1625
|
+
}, {
|
|
1626
|
+
readonly name: "migrate_split";
|
|
1627
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text";
|
|
1628
|
+
readonly returns: "jsonb";
|
|
1629
|
+
readonly security: "definer";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "migrate_undo";
|
|
1632
|
+
readonly args: "p_organization_id uuid, p_log_id uuid";
|
|
1633
|
+
readonly returns: "jsonb";
|
|
1634
|
+
readonly security: "definer";
|
|
1635
|
+
}, {
|
|
1636
|
+
readonly name: "migrations";
|
|
1637
|
+
readonly args: "p_organization_id uuid, p_target_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100";
|
|
1638
|
+
readonly returns: "TABLE(id uuid, verb text, target_kind text, target_id uuid, note text, applied_at timestamp with time zone, applied_by uuid, undone_at timestamp with time zone)";
|
|
1639
|
+
readonly security: "definer";
|
|
1640
|
+
}, {
|
|
1641
|
+
readonly name: "mirror_asks_the_whole_database";
|
|
1642
|
+
readonly args: "";
|
|
1643
|
+
readonly returns: "TABLE(schema_name text, table_name text, policy_name text, why text)";
|
|
1644
|
+
readonly security: "invoker";
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly name: "my_level";
|
|
1647
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_type text DEFAULT 'record'::text";
|
|
1648
|
+
readonly returns: "permission_level";
|
|
1649
|
+
readonly security: "definer";
|
|
1650
|
+
}, {
|
|
1651
|
+
readonly name: "my_levels";
|
|
1652
|
+
readonly args: "p_organization_id uuid, p_ids jsonb, p_type text DEFAULT 'record'::text";
|
|
1653
|
+
readonly returns: "TABLE(id uuid, level permission_level)";
|
|
1654
|
+
readonly security: "definer";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly name: "organization_clear";
|
|
1657
|
+
readonly args: "p_organization_id uuid, p_confirm text, p_and_destroy boolean DEFAULT false";
|
|
1658
|
+
readonly returns: "jsonb";
|
|
1659
|
+
readonly security: "definer";
|
|
1660
|
+
}, {
|
|
1661
|
+
readonly name: "organization_contents";
|
|
1662
|
+
readonly args: "p_organization_id uuid";
|
|
1663
|
+
readonly returns: "jsonb";
|
|
1664
|
+
readonly security: "definer";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly name: "organization_kernel_id";
|
|
1667
|
+
readonly args: "";
|
|
1668
|
+
readonly returns: "uuid";
|
|
1669
|
+
readonly security: "invoker";
|
|
1670
|
+
}, {
|
|
1671
|
+
readonly name: "organization_references";
|
|
1672
|
+
readonly args: "p_kind text, p_organization_id uuid, p_row jsonb";
|
|
1673
|
+
readonly returns: "TABLE(site text, what text, ref_id uuid, openable boolean)";
|
|
1674
|
+
readonly security: "invoker";
|
|
1675
|
+
}, {
|
|
1676
|
+
readonly name: "owning_table";
|
|
1677
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
1678
|
+
readonly returns: "uuid";
|
|
1679
|
+
readonly security: "invoker";
|
|
1680
|
+
}, {
|
|
1681
|
+
readonly name: "owning_table_gone";
|
|
1682
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
1683
|
+
readonly returns: "boolean";
|
|
1684
|
+
readonly security: "invoker";
|
|
1685
|
+
}, {
|
|
1686
|
+
readonly name: "page_ceiling";
|
|
1687
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
1688
|
+
readonly returns: "integer";
|
|
1689
|
+
readonly security: "invoker";
|
|
1690
|
+
}, {
|
|
1691
|
+
readonly name: "page_contract";
|
|
1692
|
+
readonly args: "p_organization_id uuid";
|
|
1693
|
+
readonly returns: "jsonb";
|
|
1694
|
+
readonly security: "definer";
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly name: "page_size";
|
|
1697
|
+
readonly args: "p_organization_id uuid, p_door text, p_limit integer, p_default integer DEFAULT NULL::integer, p_ceiling integer DEFAULT NULL::integer";
|
|
1698
|
+
readonly returns: "integer";
|
|
1699
|
+
readonly security: "invoker";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly name: "parity_field_types";
|
|
1702
|
+
readonly args: "";
|
|
1703
|
+
readonly returns: "TABLE(parity_type text, behavior text, made_of text)";
|
|
1704
|
+
readonly security: "invoker";
|
|
1705
|
+
}, {
|
|
1706
|
+
readonly name: "parity_type";
|
|
1707
|
+
readonly args: "p_field_data jsonb";
|
|
1708
|
+
readonly returns: "text";
|
|
1709
|
+
readonly security: "invoker";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly name: "parity_values";
|
|
1712
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
1713
|
+
readonly 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)";
|
|
1714
|
+
readonly security: "invoker";
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly name: "per_value_access_words";
|
|
1717
|
+
readonly args: "";
|
|
1718
|
+
readonly returns: "text[]";
|
|
1719
|
+
readonly security: "invoker";
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly name: "person_kernel_id";
|
|
1722
|
+
readonly args: "";
|
|
1723
|
+
readonly returns: "uuid";
|
|
1724
|
+
readonly security: "invoker";
|
|
1725
|
+
}, {
|
|
1726
|
+
readonly name: "pin_agent_cells";
|
|
1727
|
+
readonly args: "p_new jsonb, p_old jsonb, p_agent_keys text[]";
|
|
1728
|
+
readonly returns: "jsonb";
|
|
1729
|
+
readonly security: "invoker";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly name: "pipeline_board";
|
|
1732
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_measure text DEFAULT NULL::text";
|
|
1733
|
+
readonly returns: "TABLE(stage_key text, stage_label text, stage_position integer, cards bigint, total numeric, wip_limit integer, over_limit boolean)";
|
|
1734
|
+
readonly security: "definer";
|
|
1735
|
+
}, {
|
|
1736
|
+
readonly name: "pipeline_declare";
|
|
1737
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
1738
|
+
readonly returns: "jsonb";
|
|
1739
|
+
readonly security: "definer";
|
|
1740
|
+
}, {
|
|
1741
|
+
readonly name: "pipeline_move";
|
|
1742
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_to text, p_also jsonb DEFAULT '{}'::jsonb, p_expected_version integer DEFAULT NULL::integer";
|
|
1743
|
+
readonly returns: "jsonb";
|
|
1744
|
+
readonly security: "definer";
|
|
1745
|
+
}, {
|
|
1746
|
+
readonly name: "pipeline_read";
|
|
1747
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1748
|
+
readonly returns: "jsonb";
|
|
1749
|
+
readonly security: "definer";
|
|
1750
|
+
}, {
|
|
1751
|
+
readonly name: "pipeline_transition_refusal";
|
|
1752
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_to text";
|
|
1753
|
+
readonly returns: "jsonb";
|
|
1754
|
+
readonly security: "definer";
|
|
1755
|
+
}, {
|
|
1756
|
+
readonly name: "portal_admits";
|
|
1757
|
+
readonly args: "p_organization_id uuid, p_user_id uuid DEFAULT NULL::uuid";
|
|
1758
|
+
readonly returns: "boolean";
|
|
1759
|
+
readonly security: "definer";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly name: "portal_card";
|
|
1762
|
+
readonly args: "p_organization_id uuid, p_portal_id uuid";
|
|
1763
|
+
readonly returns: "jsonb";
|
|
1764
|
+
readonly security: "definer";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly name: "portal_declare";
|
|
1767
|
+
readonly args: "p_organization_id uuid, p_title text, p_client_table_id uuid, p_tables jsonb, p_portal_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text, p_sign_in_method text DEFAULT 'magic_link'::text";
|
|
1768
|
+
readonly returns: "uuid";
|
|
1769
|
+
readonly security: "definer";
|
|
1770
|
+
}, {
|
|
1771
|
+
readonly name: "portal_field_map";
|
|
1772
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1773
|
+
readonly returns: "TABLE(field_id uuid, field_key text, field_type text, points_at uuid)";
|
|
1774
|
+
readonly security: "definer";
|
|
1775
|
+
}, {
|
|
1776
|
+
readonly name: "portal_invitation";
|
|
1777
|
+
readonly args: "p_slug text, p_email text";
|
|
1778
|
+
readonly returns: "jsonb";
|
|
1779
|
+
readonly security: "definer";
|
|
1780
|
+
}, {
|
|
1781
|
+
readonly name: "portal_invite";
|
|
1782
|
+
readonly args: "p_organization_id uuid, p_portal_id uuid, p_client_record_id uuid, p_email text, p_user_id uuid DEFAULT NULL::uuid";
|
|
1783
|
+
readonly returns: "jsonb";
|
|
1784
|
+
readonly security: "definer";
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly name: "portal_me";
|
|
1787
|
+
readonly args: "";
|
|
1788
|
+
readonly returns: "jsonb";
|
|
1789
|
+
readonly security: "definer";
|
|
1790
|
+
}, {
|
|
1791
|
+
readonly name: "portal_preview";
|
|
1792
|
+
readonly args: "p_organization_id uuid, p_portal_id uuid, p_principal_id uuid, p_table_id uuid";
|
|
1793
|
+
readonly returns: "TABLE(record_id uuid, title text)";
|
|
1794
|
+
readonly security: "definer";
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly name: "portal_principal_bind";
|
|
1797
|
+
readonly args: "p_organization_id uuid, p_principal_id uuid, p_user_id uuid";
|
|
1798
|
+
readonly returns: "jsonb";
|
|
1799
|
+
readonly security: "definer";
|
|
1800
|
+
}, {
|
|
1801
|
+
readonly name: "portal_public";
|
|
1802
|
+
readonly args: "p_slug text";
|
|
1803
|
+
readonly returns: "jsonb";
|
|
1804
|
+
readonly security: "definer";
|
|
1805
|
+
}, {
|
|
1806
|
+
readonly name: "portal_record_title";
|
|
1807
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
1808
|
+
readonly returns: "text";
|
|
1809
|
+
readonly security: "definer";
|
|
1810
|
+
}, {
|
|
1811
|
+
readonly name: "portal_revoke";
|
|
1812
|
+
readonly args: "p_organization_id uuid, p_portal_id uuid, p_principal_id uuid";
|
|
1813
|
+
readonly returns: "jsonb";
|
|
1814
|
+
readonly security: "definer";
|
|
1815
|
+
}, {
|
|
1816
|
+
readonly name: "portal_slug";
|
|
1817
|
+
readonly args: "p_organization_id uuid, p_title text, p_portal_id uuid DEFAULT NULL::uuid";
|
|
1818
|
+
readonly returns: "text";
|
|
1819
|
+
readonly security: "definer";
|
|
1820
|
+
}, {
|
|
1821
|
+
readonly name: "portals";
|
|
1822
|
+
readonly args: "p_organization_id uuid";
|
|
1823
|
+
readonly returns: "TABLE(portal_id uuid, title text, slug text, client_table_id uuid, client_table text, is_active boolean, tables integer, invited integer, signed_in integer, sign_in_method text, opened_at timestamp with time zone)";
|
|
1824
|
+
readonly security: "definer";
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly name: "presentation_kernel_id";
|
|
1827
|
+
readonly args: "";
|
|
1828
|
+
readonly returns: "uuid";
|
|
1829
|
+
readonly security: "invoker";
|
|
1830
|
+
}, {
|
|
1831
|
+
readonly name: "promote_field";
|
|
1832
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_field_id uuid";
|
|
1833
|
+
readonly returns: "jsonb";
|
|
1834
|
+
readonly security: "invoker";
|
|
1835
|
+
}, {
|
|
1836
|
+
readonly name: "promote_table";
|
|
1837
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1838
|
+
readonly returns: "jsonb";
|
|
1839
|
+
readonly security: "definer";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly name: "promoted_field_cap";
|
|
1842
|
+
readonly args: "";
|
|
1843
|
+
readonly returns: "integer";
|
|
1844
|
+
readonly security: "invoker";
|
|
1845
|
+
}, {
|
|
1846
|
+
readonly name: "promoted_fields";
|
|
1847
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1848
|
+
readonly 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)";
|
|
1849
|
+
readonly security: "invoker";
|
|
1850
|
+
}, {
|
|
1851
|
+
readonly name: "promoted_index_arm";
|
|
1852
|
+
readonly args: "p_field_data jsonb";
|
|
1853
|
+
readonly returns: "text";
|
|
1854
|
+
readonly security: "invoker";
|
|
1855
|
+
}, {
|
|
1856
|
+
readonly name: "promoted_index_ddl";
|
|
1857
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1858
|
+
readonly returns: "TABLE(step integer, purpose text, statement text)";
|
|
1859
|
+
readonly security: "invoker";
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly name: "promoted_index_expr";
|
|
1862
|
+
readonly args: "p_field_data jsonb";
|
|
1863
|
+
readonly returns: "text";
|
|
1864
|
+
readonly security: "invoker";
|
|
1865
|
+
}, {
|
|
1866
|
+
readonly name: "promoted_index_name";
|
|
1867
|
+
readonly args: "p_table_id uuid, p_field_key text, p_unique boolean";
|
|
1868
|
+
readonly returns: "text";
|
|
1869
|
+
readonly security: "invoker";
|
|
1870
|
+
}, {
|
|
1871
|
+
readonly name: "promoted_query_sql";
|
|
1872
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_field_key text";
|
|
1873
|
+
readonly returns: "text";
|
|
1874
|
+
readonly security: "invoker";
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly name: "promoted_read";
|
|
1877
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_value text";
|
|
1878
|
+
readonly returns: "SETOF uuid";
|
|
1879
|
+
readonly security: "invoker";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly name: "promoted_value_path";
|
|
1882
|
+
readonly args: "p_field_data jsonb";
|
|
1883
|
+
readonly returns: "text";
|
|
1884
|
+
readonly security: "invoker";
|
|
1885
|
+
}, {
|
|
1886
|
+
readonly name: "promotion_inline_ceiling";
|
|
1887
|
+
readonly args: "";
|
|
1888
|
+
readonly returns: "integer";
|
|
1889
|
+
readonly security: "invoker";
|
|
1890
|
+
}, {
|
|
1891
|
+
readonly name: "provenance_prune";
|
|
1892
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true, p_limit integer DEFAULT 200000";
|
|
1893
|
+
readonly returns: "jsonb";
|
|
1894
|
+
readonly security: "definer";
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly name: "provenance_retention_days";
|
|
1897
|
+
readonly args: "p_organization_id uuid";
|
|
1898
|
+
readonly returns: "integer";
|
|
1899
|
+
readonly security: "definer";
|
|
1900
|
+
}, {
|
|
1901
|
+
readonly name: "provenance_write";
|
|
1902
|
+
readonly args: "p_organization_id uuid, p_conversation_id uuid, p_turn_id text, p_rows jsonb";
|
|
1903
|
+
readonly returns: "integer";
|
|
1904
|
+
readonly security: "definer";
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly name: "query_access_ids";
|
|
1907
|
+
readonly args: "p_organization_id uuid, p_required text DEFAULT 'viewer'::text";
|
|
1908
|
+
readonly returns: "uuid[]";
|
|
1909
|
+
readonly security: "invoker";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly name: "query_across_homes";
|
|
1912
|
+
readonly 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";
|
|
1913
|
+
readonly returns: "TABLE(record_id uuid, home_record_id uuid, data jsonb, created_at timestamp with time zone)";
|
|
1914
|
+
readonly security: "definer";
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly name: "query_by_coordinates";
|
|
1917
|
+
readonly 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";
|
|
1918
|
+
readonly returns: "TABLE(record_id uuid, table_id uuid, data jsonb, coordinates_matched integer)";
|
|
1919
|
+
readonly security: "definer";
|
|
1920
|
+
}, {
|
|
1921
|
+
readonly name: "query_can_see";
|
|
1922
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_required text DEFAULT 'viewer'::text";
|
|
1923
|
+
readonly returns: "boolean";
|
|
1924
|
+
readonly security: "definer";
|
|
1925
|
+
}, {
|
|
1926
|
+
readonly name: "query_hot_paths";
|
|
1927
|
+
readonly args: "";
|
|
1928
|
+
readonly returns: "TABLE(name text, statement text)";
|
|
1929
|
+
readonly security: "invoker";
|
|
1930
|
+
}, {
|
|
1931
|
+
readonly name: "query_hot_paths_prepared";
|
|
1932
|
+
readonly args: "";
|
|
1933
|
+
readonly returns: "TABLE(name text, prepared boolean, generic_plans bigint)";
|
|
1934
|
+
readonly security: "invoker";
|
|
1935
|
+
}, {
|
|
1936
|
+
readonly name: "query_is_store_owner";
|
|
1937
|
+
readonly args: "";
|
|
1938
|
+
readonly returns: "boolean";
|
|
1939
|
+
readonly security: "invoker";
|
|
1940
|
+
}, {
|
|
1941
|
+
readonly name: "query_prepare_hot";
|
|
1942
|
+
readonly args: "";
|
|
1943
|
+
readonly returns: "integer";
|
|
1944
|
+
readonly security: "invoker";
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly name: "query_principal";
|
|
1947
|
+
readonly args: "";
|
|
1948
|
+
readonly returns: "uuid";
|
|
1949
|
+
readonly security: "invoker";
|
|
1950
|
+
}, {
|
|
1951
|
+
readonly name: "query_record_as_of";
|
|
1952
|
+
readonly 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";
|
|
1953
|
+
readonly returns: "jsonb";
|
|
1954
|
+
readonly security: "definer";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly name: "query_relation_edges";
|
|
1957
|
+
readonly args: "p_organization_id uuid, p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text";
|
|
1958
|
+
readonly returns: "TABLE(parent_id uuid, child_id uuid, role text, flavor text)";
|
|
1959
|
+
readonly security: "definer";
|
|
1960
|
+
}, {
|
|
1961
|
+
readonly name: "query_rollup";
|
|
1962
|
+
readonly 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";
|
|
1963
|
+
readonly returns: "TABLE(record_id uuid, depth integer)";
|
|
1964
|
+
readonly security: "definer";
|
|
1965
|
+
}, {
|
|
1966
|
+
readonly name: "query_rollup_sum";
|
|
1967
|
+
readonly 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";
|
|
1968
|
+
readonly returns: "numeric";
|
|
1969
|
+
readonly security: "definer";
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly name: "query_table_as_of";
|
|
1972
|
+
readonly 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";
|
|
1973
|
+
readonly returns: "TABLE(record_id uuid, data jsonb)";
|
|
1974
|
+
readonly security: "definer";
|
|
1975
|
+
}, {
|
|
1976
|
+
readonly name: "query_table_homes";
|
|
1977
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1978
|
+
readonly returns: "SETOF uuid";
|
|
1979
|
+
readonly security: "definer";
|
|
1980
|
+
}, {
|
|
1981
|
+
readonly name: "query_visibility_parity";
|
|
1982
|
+
readonly args: "p_organization_id uuid";
|
|
1983
|
+
readonly 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)";
|
|
1984
|
+
readonly security: "definer";
|
|
1985
|
+
}, {
|
|
1986
|
+
readonly name: "query_visible_ids";
|
|
1987
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_required text DEFAULT 'viewer'::text";
|
|
1988
|
+
readonly returns: "SETOF uuid";
|
|
1989
|
+
readonly security: "definer";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly name: "reachable_from";
|
|
1992
|
+
readonly args: "p_organization_id uuid, p_roots uuid[]";
|
|
1993
|
+
readonly returns: "TABLE(record_id uuid, depth integer, via text)";
|
|
1994
|
+
readonly security: "invoker";
|
|
1995
|
+
}, {
|
|
1996
|
+
readonly name: "reaches_directly";
|
|
1997
|
+
readonly args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
1998
|
+
readonly returns: "boolean";
|
|
1999
|
+
readonly security: "definer";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly name: "read_door_carried_ids";
|
|
2002
|
+
readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level, OUT o_ids uuid[], OUT o_containers integer";
|
|
2003
|
+
readonly returns: "record";
|
|
2004
|
+
readonly security: "definer";
|
|
2005
|
+
}, {
|
|
2006
|
+
readonly name: "read_door_granted_ids";
|
|
2007
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2008
|
+
readonly returns: "uuid[]";
|
|
2009
|
+
readonly security: "definer";
|
|
2010
|
+
}, {
|
|
2011
|
+
readonly name: "read_door_ladder_ceiling";
|
|
2012
|
+
readonly args: "";
|
|
2013
|
+
readonly returns: "integer";
|
|
2014
|
+
readonly security: "invoker";
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly name: "read_door_parity";
|
|
2017
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_user uuid, p_required permission_level, p_sample integer";
|
|
2018
|
+
readonly returns: "TABLE(record_id uuid, set_based boolean, per_row boolean, verdict text)";
|
|
2019
|
+
readonly security: "definer";
|
|
2020
|
+
}, {
|
|
2021
|
+
readonly name: "read_mask";
|
|
2022
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_action text DEFAULT 'read'::text";
|
|
2023
|
+
readonly returns: "jsonb";
|
|
2024
|
+
readonly security: "definer";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly name: "read_paths_outside_the_door";
|
|
2027
|
+
readonly args: "";
|
|
2028
|
+
readonly returns: "TABLE(object_name text, why text)";
|
|
2029
|
+
readonly security: "invoker";
|
|
2030
|
+
}, {
|
|
2031
|
+
readonly name: "read_record";
|
|
2032
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_by_id boolean DEFAULT false";
|
|
2033
|
+
readonly returns: "jsonb";
|
|
2034
|
+
readonly security: "definer";
|
|
2035
|
+
}, {
|
|
2036
|
+
readonly name: "read_records";
|
|
2037
|
+
readonly 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";
|
|
2038
|
+
readonly returns: "TABLE(id uuid, document jsonb, level permission_level)";
|
|
2039
|
+
readonly security: "definer";
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly name: "record_aggregate";
|
|
2042
|
+
readonly 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";
|
|
2043
|
+
readonly returns: "TABLE(groups jsonb, measures jsonb, row_count bigint)";
|
|
2044
|
+
readonly security: "definer";
|
|
2045
|
+
}, {
|
|
2046
|
+
readonly name: "record_applicability";
|
|
2047
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2048
|
+
readonly returns: "TABLE(rule_id uuid, rule_name text, rule_version integer, applies boolean, answer jsonb)";
|
|
2049
|
+
readonly security: "invoker";
|
|
2050
|
+
}, {
|
|
2051
|
+
readonly name: "record_as_of";
|
|
2052
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone";
|
|
2053
|
+
readonly returns: "TABLE(state jsonb, replayed boolean)";
|
|
2054
|
+
readonly security: "definer";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly name: "record_card";
|
|
2057
|
+
readonly args: "p_viewer uuid, p_organization_id uuid, p_record_id uuid";
|
|
2058
|
+
readonly returns: "jsonb";
|
|
2059
|
+
readonly security: "definer";
|
|
2060
|
+
}, {
|
|
2061
|
+
readonly name: "record_carrying_edges";
|
|
2062
|
+
readonly args: "p_id uuid, p_data_class text, p_data jsonb, p_deleted_at timestamp with time zone";
|
|
2063
|
+
readonly returns: "TABLE(container_id uuid, item_id uuid, edge_role text)";
|
|
2064
|
+
readonly security: "invoker";
|
|
2065
|
+
}, {
|
|
2066
|
+
readonly name: "record_delete";
|
|
2067
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2068
|
+
readonly returns: "timestamp with time zone";
|
|
2069
|
+
readonly security: "definer";
|
|
2070
|
+
}, {
|
|
2071
|
+
readonly name: "record_history";
|
|
2072
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0";
|
|
2073
|
+
readonly returns: "TABLE(version integer, occurred_at timestamp with time zone, operation text, operation_label text, actor jsonb, changes jsonb, migration_id uuid, undoable boolean)";
|
|
2074
|
+
readonly security: "definer";
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly name: "record_relation_edges";
|
|
2077
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_table_id uuid, p_data_class text, p_data jsonb, p_deleted_at timestamp with time zone";
|
|
2078
|
+
readonly returns: "TABLE(target_id uuid, edge_role text, field_id uuid, ord integer)";
|
|
2079
|
+
readonly security: "invoker";
|
|
2080
|
+
}, {
|
|
2081
|
+
readonly name: "record_reparent";
|
|
2082
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_parent_id uuid";
|
|
2083
|
+
readonly returns: "void";
|
|
2084
|
+
readonly security: "definer";
|
|
2085
|
+
}, {
|
|
2086
|
+
readonly name: "record_resolve";
|
|
2087
|
+
readonly args: "p_organization_id uuid, p_id uuid";
|
|
2088
|
+
readonly returns: "jsonb";
|
|
2089
|
+
readonly security: "definer";
|
|
2090
|
+
}, {
|
|
2091
|
+
readonly name: "record_restore";
|
|
2092
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2093
|
+
readonly returns: "void";
|
|
2094
|
+
readonly security: "definer";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly name: "record_restore_preview";
|
|
2097
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_version integer, p_field_key text DEFAULT NULL::text";
|
|
2098
|
+
readonly returns: "jsonb";
|
|
2099
|
+
readonly security: "definer";
|
|
2100
|
+
}, {
|
|
2101
|
+
readonly name: "record_restore_version";
|
|
2102
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_version integer";
|
|
2103
|
+
readonly returns: "jsonb";
|
|
2104
|
+
readonly security: "definer";
|
|
2105
|
+
}, {
|
|
2106
|
+
readonly name: "record_restore_version";
|
|
2107
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_version integer, p_author jsonb";
|
|
2108
|
+
readonly returns: "jsonb";
|
|
2109
|
+
readonly security: "definer";
|
|
2110
|
+
}, {
|
|
2111
|
+
readonly name: "record_scope_context";
|
|
2112
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_relations integer DEFAULT 12, p_history integer DEFAULT 15, p_siblings integer DEFAULT 8";
|
|
2113
|
+
readonly returns: "jsonb";
|
|
2114
|
+
readonly security: "definer";
|
|
2115
|
+
}, {
|
|
2116
|
+
readonly name: "record_state_as_of";
|
|
2117
|
+
readonly args: "p_record_id uuid, p_at timestamp with time zone";
|
|
2118
|
+
readonly returns: "TABLE(state jsonb, replayed boolean)";
|
|
2119
|
+
readonly security: "definer";
|
|
2120
|
+
}, {
|
|
2121
|
+
readonly name: "record_table";
|
|
2122
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2123
|
+
readonly returns: "uuid";
|
|
2124
|
+
readonly security: "definer";
|
|
2125
|
+
}, {
|
|
2126
|
+
readonly name: "record_update";
|
|
2127
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb, p_expected_version integer DEFAULT NULL::integer";
|
|
2128
|
+
readonly returns: "integer";
|
|
2129
|
+
readonly security: "definer";
|
|
2130
|
+
}, {
|
|
2131
|
+
readonly name: "record_values";
|
|
2132
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2133
|
+
readonly returns: "jsonb";
|
|
2134
|
+
readonly security: "invoker";
|
|
2135
|
+
}, {
|
|
2136
|
+
readonly name: "record_values_versioned";
|
|
2137
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2138
|
+
readonly 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)";
|
|
2139
|
+
readonly security: "definer";
|
|
2140
|
+
}, {
|
|
2141
|
+
readonly name: "record_write";
|
|
2142
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_data jsonb";
|
|
2143
|
+
readonly returns: "uuid";
|
|
2144
|
+
readonly security: "definer";
|
|
2145
|
+
}, {
|
|
2146
|
+
readonly name: "record_write_many";
|
|
2147
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_rows jsonb[], p_ids uuid[] DEFAULT NULL::uuid[]";
|
|
2148
|
+
readonly returns: "uuid[]";
|
|
2149
|
+
readonly security: "definer";
|
|
2150
|
+
}, {
|
|
2151
|
+
readonly name: "refusals_claiming_a_level_never_asked";
|
|
2152
|
+
readonly args: "";
|
|
2153
|
+
readonly returns: "TABLE(function_name text, identity_args text, why text)";
|
|
2154
|
+
readonly security: "invoker";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly name: "relation_carry";
|
|
2157
|
+
readonly args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid";
|
|
2158
|
+
readonly returns: "uuid";
|
|
2159
|
+
readonly security: "definer";
|
|
2160
|
+
}, {
|
|
2161
|
+
readonly name: "relation_edges_withdraw";
|
|
2162
|
+
readonly args: "p_organization_id uuid, p_field_ids uuid[], p_why text";
|
|
2163
|
+
readonly returns: "integer";
|
|
2164
|
+
readonly security: "definer";
|
|
2165
|
+
}, {
|
|
2166
|
+
readonly name: "relation_own";
|
|
2167
|
+
readonly args: "p_organization_id uuid, p_owner_id uuid, p_target_id uuid";
|
|
2168
|
+
readonly returns: "uuid";
|
|
2169
|
+
readonly security: "definer";
|
|
2170
|
+
}, {
|
|
2171
|
+
readonly name: "relation_target_card";
|
|
2172
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_via_key text DEFAULT NULL::text";
|
|
2173
|
+
readonly returns: "TABLE(target_id uuid, target_organization_id uuid, is_foreign boolean, masked boolean, reader_level permission_level, card jsonb, why text)";
|
|
2174
|
+
readonly security: "definer";
|
|
2175
|
+
}, {
|
|
2176
|
+
readonly name: "relation_target_external";
|
|
2177
|
+
readonly args: "p_connection_token text, p_external_table text, p_external_key text";
|
|
2178
|
+
readonly returns: "jsonb";
|
|
2179
|
+
readonly security: "definer";
|
|
2180
|
+
}, {
|
|
2181
|
+
readonly name: "relation_target_ours";
|
|
2182
|
+
readonly args: "p_entity_token text, p_row_id uuid";
|
|
2183
|
+
readonly returns: "jsonb";
|
|
2184
|
+
readonly security: "definer";
|
|
2185
|
+
}, {
|
|
2186
|
+
readonly name: "relation_targets";
|
|
2187
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_via_key text";
|
|
2188
|
+
readonly returns: "SETOF uuid";
|
|
2189
|
+
readonly security: "definer";
|
|
2190
|
+
}, {
|
|
2191
|
+
readonly name: "relation_uncarry";
|
|
2192
|
+
readonly args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid";
|
|
2193
|
+
readonly returns: "integer";
|
|
2194
|
+
readonly security: "definer";
|
|
2195
|
+
}, {
|
|
2196
|
+
readonly name: "reopen_declared_doors";
|
|
2197
|
+
readonly args: "";
|
|
2198
|
+
readonly returns: "TABLE(reopened text)";
|
|
2199
|
+
readonly security: "definer";
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly name: "required_epoch";
|
|
2202
|
+
readonly args: "p_container_type text, p_container_id uuid, p_item_type text, p_item_id uuid";
|
|
2203
|
+
readonly returns: "bigint";
|
|
2204
|
+
readonly security: "definer";
|
|
2205
|
+
}, {
|
|
2206
|
+
readonly name: "resolve_first_match";
|
|
2207
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2208
|
+
readonly returns: "jsonb";
|
|
2209
|
+
readonly security: "invoker";
|
|
2210
|
+
}, {
|
|
2211
|
+
readonly name: "resolve_id";
|
|
2212
|
+
readonly args: "p_organization_id uuid, p_id uuid";
|
|
2213
|
+
readonly returns: "uuid";
|
|
2214
|
+
readonly security: "invoker";
|
|
2215
|
+
}, {
|
|
2216
|
+
readonly name: "retired_actor_words";
|
|
2217
|
+
readonly args: "";
|
|
2218
|
+
readonly returns: "jsonb";
|
|
2219
|
+
readonly security: "invoker";
|
|
2220
|
+
}, {
|
|
2221
|
+
readonly name: "rollup_value";
|
|
2222
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb";
|
|
2223
|
+
readonly returns: "jsonb";
|
|
2224
|
+
readonly security: "invoker";
|
|
2225
|
+
}, {
|
|
2226
|
+
readonly name: "rule_applies";
|
|
2227
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid";
|
|
2228
|
+
readonly returns: "jsonb";
|
|
2229
|
+
readonly security: "invoker";
|
|
2230
|
+
}, {
|
|
2231
|
+
readonly name: "rule_context";
|
|
2232
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2233
|
+
readonly returns: "jsonb";
|
|
2234
|
+
readonly security: "invoker";
|
|
2235
|
+
}, {
|
|
2236
|
+
readonly name: "rule_declare";
|
|
2237
|
+
readonly args: "p_organization_id uuid, p_spec jsonb, p_rule_id uuid DEFAULT NULL::uuid";
|
|
2238
|
+
readonly returns: "uuid";
|
|
2239
|
+
readonly security: "definer";
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly name: "rule_dependency_edges";
|
|
2242
|
+
readonly args: "p_organization_id uuid, p_row custom.record DEFAULT NULL::custom.record";
|
|
2243
|
+
readonly returns: "TABLE(needs text, needed text)";
|
|
2244
|
+
readonly security: "invoker";
|
|
2245
|
+
}, {
|
|
2246
|
+
readonly name: "rule_eval";
|
|
2247
|
+
readonly args: "p_organization_id uuid, p_expr jsonb, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb";
|
|
2248
|
+
readonly returns: "jsonb";
|
|
2249
|
+
readonly security: "invoker";
|
|
2250
|
+
}, {
|
|
2251
|
+
readonly name: "rule_field_key";
|
|
2252
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
2253
|
+
readonly returns: "text";
|
|
2254
|
+
readonly security: "invoker";
|
|
2255
|
+
}, {
|
|
2256
|
+
readonly name: "rule_field_label";
|
|
2257
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
2258
|
+
readonly returns: "text";
|
|
2259
|
+
readonly security: "invoker";
|
|
2260
|
+
}, {
|
|
2261
|
+
readonly name: "rule_kernel_id";
|
|
2262
|
+
readonly args: "";
|
|
2263
|
+
readonly returns: "uuid";
|
|
2264
|
+
readonly security: "invoker";
|
|
2265
|
+
}, {
|
|
2266
|
+
readonly name: "rule_members";
|
|
2267
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
2268
|
+
readonly returns: "SETOF custom.record";
|
|
2269
|
+
readonly security: "invoker";
|
|
2270
|
+
}, {
|
|
2271
|
+
readonly name: "rule_membership";
|
|
2272
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid";
|
|
2273
|
+
readonly returns: "jsonb";
|
|
2274
|
+
readonly security: "invoker";
|
|
2275
|
+
}, {
|
|
2276
|
+
readonly name: "rule_node_kinds";
|
|
2277
|
+
readonly args: "";
|
|
2278
|
+
readonly returns: "TABLE(node text, evaluated_by text, note text)";
|
|
2279
|
+
readonly security: "invoker";
|
|
2280
|
+
}, {
|
|
2281
|
+
readonly name: "rule_run";
|
|
2282
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb";
|
|
2283
|
+
readonly returns: "jsonb";
|
|
2284
|
+
readonly security: "invoker";
|
|
2285
|
+
}, {
|
|
2286
|
+
readonly name: "rule_truth";
|
|
2287
|
+
readonly args: "p_answer jsonb";
|
|
2288
|
+
readonly returns: "boolean";
|
|
2289
|
+
readonly security: "invoker";
|
|
2290
|
+
}, {
|
|
2291
|
+
readonly name: "rule_uses";
|
|
2292
|
+
readonly args: "";
|
|
2293
|
+
readonly returns: "text[]";
|
|
2294
|
+
readonly security: "invoker";
|
|
2295
|
+
}, {
|
|
2296
|
+
readonly name: "rule_version";
|
|
2297
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
2298
|
+
readonly returns: "integer";
|
|
2299
|
+
readonly security: "invoker";
|
|
2300
|
+
}, {
|
|
2301
|
+
readonly name: "said";
|
|
2302
|
+
readonly args: "p_value text, p_when_there_is_none text";
|
|
2303
|
+
readonly returns: "text";
|
|
2304
|
+
readonly security: "invoker";
|
|
2305
|
+
}, {
|
|
2306
|
+
readonly name: "share_access";
|
|
2307
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid";
|
|
2308
|
+
readonly returns: "TABLE(principal_kind text, principal_id uuid, principal_label text, level permission_level, reason text, reason_detail text, via_type text, via_id uuid, revocable boolean)";
|
|
2309
|
+
readonly security: "definer";
|
|
2310
|
+
}, {
|
|
2311
|
+
readonly name: "share_grant";
|
|
2312
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_principal_kind text, p_principal_id uuid, p_level permission_level DEFAULT 'viewer'::permission_level";
|
|
2313
|
+
readonly returns: "jsonb";
|
|
2314
|
+
readonly security: "definer";
|
|
2315
|
+
}, {
|
|
2316
|
+
readonly name: "share_lane_set";
|
|
2317
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_choice text, p_level permission_level DEFAULT NULL::permission_level";
|
|
2318
|
+
readonly returns: "jsonb";
|
|
2319
|
+
readonly security: "definer";
|
|
2320
|
+
}, {
|
|
2321
|
+
readonly name: "share_lanes";
|
|
2322
|
+
readonly args: "";
|
|
2323
|
+
readonly returns: "TABLE(choice text, lane text, discoverable boolean, label text, means text)";
|
|
2324
|
+
readonly security: "definer";
|
|
2325
|
+
}, {
|
|
2326
|
+
readonly name: "share_levels";
|
|
2327
|
+
readonly args: "";
|
|
2328
|
+
readonly returns: "TABLE(level permission_level, ordinal integer, label text, means text)";
|
|
2329
|
+
readonly security: "definer";
|
|
2330
|
+
}, {
|
|
2331
|
+
readonly name: "share_people";
|
|
2332
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid DEFAULT NULL::uuid, p_query text DEFAULT NULL::text, p_limit integer DEFAULT 25";
|
|
2333
|
+
readonly returns: "TABLE(user_id uuid, email text, display_name text, membership text, already_at permission_level, already_why text)";
|
|
2334
|
+
readonly security: "definer";
|
|
2335
|
+
}, {
|
|
2336
|
+
readonly name: "share_revoke";
|
|
2337
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_principal_kind text, p_principal_id uuid";
|
|
2338
|
+
readonly returns: "jsonb";
|
|
2339
|
+
readonly security: "definer";
|
|
2340
|
+
}, {
|
|
2341
|
+
readonly name: "share_subject_name";
|
|
2342
|
+
readonly args: "p_organization_id uuid, p_type text, p_id uuid";
|
|
2343
|
+
readonly returns: "text";
|
|
2344
|
+
readonly security: "definer";
|
|
2345
|
+
}, {
|
|
2346
|
+
readonly name: "shared_only_disagreements";
|
|
2347
|
+
readonly args: "p_pretend text DEFAULT NULL::text";
|
|
2348
|
+
readonly returns: "TABLE(organization_id uuid, organization_name text, member_id uuid, record_id uuid, table_id uuid, ladder boolean, read_door boolean, rls_mirror boolean, why text)";
|
|
2349
|
+
readonly security: "invoker";
|
|
2350
|
+
}, {
|
|
2351
|
+
readonly name: "sign_request_cancel";
|
|
2352
|
+
readonly args: "p_organization_id uuid, p_request_id uuid, p_reason text DEFAULT NULL::text";
|
|
2353
|
+
readonly returns: "jsonb";
|
|
2354
|
+
readonly security: "definer";
|
|
2355
|
+
}, {
|
|
2356
|
+
readonly name: "sign_request_create";
|
|
2357
|
+
readonly args: "p_organization_id uuid, p_render_id uuid, p_field_key text, p_signer_email text, p_signer_name text, p_expires_in interval DEFAULT '14 days'::interval";
|
|
2358
|
+
readonly returns: "jsonb";
|
|
2359
|
+
readonly security: "definer";
|
|
2360
|
+
}, {
|
|
2361
|
+
readonly name: "sign_request_decline";
|
|
2362
|
+
readonly args: "p_token text, p_reason text DEFAULT NULL::text, p_ip text DEFAULT NULL::text, p_user_agent text DEFAULT NULL::text";
|
|
2363
|
+
readonly returns: "jsonb";
|
|
2364
|
+
readonly security: "definer";
|
|
2365
|
+
}, {
|
|
2366
|
+
readonly name: "sign_request_public";
|
|
2367
|
+
readonly args: "p_token text, p_origin text DEFAULT NULL::text";
|
|
2368
|
+
readonly returns: "jsonb";
|
|
2369
|
+
readonly security: "definer";
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly name: "sign_request_remind";
|
|
2372
|
+
readonly args: "p_organization_id uuid, p_request_id uuid";
|
|
2373
|
+
readonly returns: "jsonb";
|
|
2374
|
+
readonly security: "definer";
|
|
2375
|
+
}, {
|
|
2376
|
+
readonly name: "sign_request_sentence";
|
|
2377
|
+
readonly args: "p_data jsonb";
|
|
2378
|
+
readonly returns: "text";
|
|
2379
|
+
readonly security: "invoker";
|
|
2380
|
+
}, {
|
|
2381
|
+
readonly name: "sign_request_sign";
|
|
2382
|
+
readonly args: "p_token text, p_signed_name text, p_mark text, p_image text DEFAULT NULL::text, p_ip text DEFAULT NULL::text, p_user_agent text DEFAULT NULL::text, p_origin text DEFAULT NULL::text";
|
|
2383
|
+
readonly returns: "jsonb";
|
|
2384
|
+
readonly security: "definer";
|
|
2385
|
+
}, {
|
|
2386
|
+
readonly name: "sign_request_state";
|
|
2387
|
+
readonly args: "p_data jsonb";
|
|
2388
|
+
readonly returns: "text";
|
|
2389
|
+
readonly security: "invoker";
|
|
2390
|
+
}, {
|
|
2391
|
+
readonly name: "sign_request_unchanged";
|
|
2392
|
+
readonly args: "p_organization_id uuid, p_request_id uuid";
|
|
2393
|
+
readonly returns: "boolean";
|
|
2394
|
+
readonly security: "definer";
|
|
2395
|
+
}, {
|
|
2396
|
+
readonly name: "sign_requests";
|
|
2397
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2398
|
+
readonly returns: "TABLE(request_id uuid, render_id uuid, record_id uuid, field_key text, document_title text, signer_name text, signer_email text, signer_has_account boolean, state text, sentence text, document_version integer, document_hash text, sent_at timestamp with time zone, expires_at timestamp with time zone, viewed_at timestamp with time zone, signed_at timestamp with time zone, declined_at timestamp with time zone, invalidated_at timestamp with time zone, signature_id uuid, signature_mark text, reminder_count integer)";
|
|
2399
|
+
readonly security: "definer";
|
|
2400
|
+
}, {
|
|
2401
|
+
readonly name: "sign_token_decode";
|
|
2402
|
+
readonly args: "p_token text";
|
|
2403
|
+
readonly returns: "bytea";
|
|
2404
|
+
readonly security: "invoker";
|
|
2405
|
+
}, {
|
|
2406
|
+
readonly name: "sign_token_encode";
|
|
2407
|
+
readonly args: "p_bytes bytea";
|
|
2408
|
+
readonly returns: "text";
|
|
2409
|
+
readonly security: "invoker";
|
|
2410
|
+
}, {
|
|
2411
|
+
readonly name: "silent_page_doors";
|
|
2412
|
+
readonly args: "";
|
|
2413
|
+
readonly returns: "TABLE(door text, why text)";
|
|
2414
|
+
readonly security: "definer";
|
|
2415
|
+
}, {
|
|
2416
|
+
readonly name: "size_refusal";
|
|
2417
|
+
readonly args: "p_organization_id uuid, p_data jsonb";
|
|
2418
|
+
readonly returns: "text";
|
|
2419
|
+
readonly security: "invoker";
|
|
2420
|
+
}, {
|
|
2421
|
+
readonly name: "source_next_pointer";
|
|
2422
|
+
readonly args: "p_sources jsonb";
|
|
2423
|
+
readonly returns: "text";
|
|
2424
|
+
readonly security: "invoker";
|
|
2425
|
+
}, {
|
|
2426
|
+
readonly name: "source_pointer";
|
|
2427
|
+
readonly args: "p_sources jsonb, p_source jsonb";
|
|
2428
|
+
readonly returns: "text";
|
|
2429
|
+
readonly security: "invoker";
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly name: "stamp_value_envelopes";
|
|
2432
|
+
readonly args: "p_data jsonb, p_actor text, p_on_behalf_of text, p_at timestamp with time zone";
|
|
2433
|
+
readonly returns: "jsonb";
|
|
2434
|
+
readonly security: "invoker";
|
|
2435
|
+
}, {
|
|
2436
|
+
readonly name: "storage_modes";
|
|
2437
|
+
readonly args: "";
|
|
2438
|
+
readonly returns: "text[]";
|
|
2439
|
+
readonly security: "invoker";
|
|
2440
|
+
}, {
|
|
2441
|
+
readonly name: "store_is_open";
|
|
2442
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
2443
|
+
readonly returns: "boolean";
|
|
2444
|
+
readonly security: "invoker";
|
|
2445
|
+
}, {
|
|
2446
|
+
readonly name: "subscription_cadences";
|
|
2447
|
+
readonly args: "p_organization_id uuid";
|
|
2448
|
+
readonly returns: "text[]";
|
|
2449
|
+
readonly security: "definer";
|
|
2450
|
+
}, {
|
|
2451
|
+
readonly name: "subscription_declare";
|
|
2452
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
2453
|
+
readonly returns: "uuid";
|
|
2454
|
+
readonly security: "definer";
|
|
2455
|
+
}, {
|
|
2456
|
+
readonly name: "subscription_mute";
|
|
2457
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid, p_muted boolean DEFAULT true";
|
|
2458
|
+
readonly returns: "boolean";
|
|
2459
|
+
readonly security: "definer";
|
|
2460
|
+
}, {
|
|
2461
|
+
readonly name: "subscription_preview";
|
|
2462
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
2463
|
+
readonly returns: "jsonb";
|
|
2464
|
+
readonly security: "definer";
|
|
2465
|
+
}, {
|
|
2466
|
+
readonly name: "subscriptions";
|
|
2467
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
2468
|
+
readonly returns: "TABLE(rule_id uuid, name text, table_id uuid, saved_view_id uuid, cadence text, schedule text, quiet_hours jsonb, channel text, recipient_user_id uuid, event_key text, muted boolean, mine boolean, i_may_mute boolean, last_sent_at timestamp with time zone, next_digest_at timestamp with time zone)";
|
|
2469
|
+
readonly security: "definer";
|
|
2470
|
+
}, {
|
|
2471
|
+
readonly name: "table_capacity";
|
|
2472
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2473
|
+
readonly returns: "jsonb";
|
|
2474
|
+
readonly security: "definer";
|
|
2475
|
+
}, {
|
|
2476
|
+
readonly name: "table_carries_its_rows";
|
|
2477
|
+
readonly args: "p_user_id uuid, p_table_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
2478
|
+
readonly returns: "boolean";
|
|
2479
|
+
readonly security: "definer";
|
|
2480
|
+
}, {
|
|
2481
|
+
readonly name: "table_contents";
|
|
2482
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2483
|
+
readonly returns: "TABLE(record_id uuid, kind text, goes_at integer)";
|
|
2484
|
+
readonly security: "invoker";
|
|
2485
|
+
}, {
|
|
2486
|
+
readonly name: "table_declare";
|
|
2487
|
+
readonly args: "p_organization_id uuid, p_spec jsonb";
|
|
2488
|
+
readonly returns: "uuid";
|
|
2489
|
+
readonly security: "definer";
|
|
2490
|
+
}, {
|
|
2491
|
+
readonly name: "table_has_a_visible_record";
|
|
2492
|
+
readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid";
|
|
2493
|
+
readonly returns: "boolean";
|
|
2494
|
+
readonly security: "definer";
|
|
2495
|
+
}, {
|
|
2496
|
+
readonly name: "table_is_live";
|
|
2497
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2498
|
+
readonly returns: "boolean";
|
|
2499
|
+
readonly security: "invoker";
|
|
2500
|
+
}, {
|
|
2501
|
+
readonly name: "table_kernel_id";
|
|
2502
|
+
readonly args: "";
|
|
2503
|
+
readonly returns: "uuid";
|
|
2504
|
+
readonly security: "invoker";
|
|
2505
|
+
}, {
|
|
2506
|
+
readonly name: "table_record_ceiling";
|
|
2507
|
+
readonly args: "";
|
|
2508
|
+
readonly returns: "integer";
|
|
2509
|
+
readonly security: "invoker";
|
|
2510
|
+
}, {
|
|
2511
|
+
readonly name: "table_record_ceiling";
|
|
2512
|
+
readonly args: "p_organization_id uuid";
|
|
2513
|
+
readonly returns: "integer";
|
|
2514
|
+
readonly security: "invoker";
|
|
2515
|
+
}, {
|
|
2516
|
+
readonly name: "table_rules";
|
|
2517
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_use text, p_record_type text DEFAULT NULL::text";
|
|
2518
|
+
readonly returns: "SETOF custom.record";
|
|
2519
|
+
readonly security: "invoker";
|
|
2520
|
+
}, {
|
|
2521
|
+
readonly name: "table_stage_field";
|
|
2522
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2523
|
+
readonly returns: "text";
|
|
2524
|
+
readonly security: "definer";
|
|
2525
|
+
}, {
|
|
2526
|
+
readonly name: "table_storage";
|
|
2527
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2528
|
+
readonly returns: "text";
|
|
2529
|
+
readonly security: "invoker";
|
|
2530
|
+
}, {
|
|
2531
|
+
readonly name: "table_type_field";
|
|
2532
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2533
|
+
readonly returns: "text";
|
|
2534
|
+
readonly security: "definer";
|
|
2535
|
+
}, {
|
|
2536
|
+
readonly name: "tables_at_home";
|
|
2537
|
+
readonly args: "p_organization_id uuid, p_home_ids uuid[]";
|
|
2538
|
+
readonly returns: "TABLE(table_id uuid, home_record_id uuid, kind text)";
|
|
2539
|
+
readonly security: "definer";
|
|
2540
|
+
}, {
|
|
2541
|
+
readonly name: "tables_described_without_asking";
|
|
2542
|
+
readonly args: "";
|
|
2543
|
+
readonly returns: "TABLE(function_name text, identity_args text, why text)";
|
|
2544
|
+
readonly security: "invoker";
|
|
2545
|
+
}, {
|
|
2546
|
+
readonly name: "trg_associations_bump_visibility";
|
|
2547
|
+
readonly args: "";
|
|
2548
|
+
readonly returns: "trigger";
|
|
2549
|
+
readonly security: "definer";
|
|
2550
|
+
}, {
|
|
2551
|
+
readonly name: "validate_custom_fields";
|
|
2552
|
+
readonly args: "p_token text, p_organization_id uuid, p_values jsonb";
|
|
2553
|
+
readonly returns: "void";
|
|
2554
|
+
readonly security: "invoker";
|
|
2555
|
+
}, {
|
|
2556
|
+
readonly name: "validate_value_envelope";
|
|
2557
|
+
readonly args: "p_organization_id uuid, p_fields custom.record[], p_data jsonb";
|
|
2558
|
+
readonly returns: "void";
|
|
2559
|
+
readonly security: "invoker";
|
|
2560
|
+
}, {
|
|
2561
|
+
readonly name: "validate_values";
|
|
2562
|
+
readonly args: "p_organization_id uuid, p_fields custom.record[], p_values jsonb, p_record_type text DEFAULT NULL::text";
|
|
2563
|
+
readonly returns: "void";
|
|
2564
|
+
readonly security: "invoker";
|
|
2565
|
+
}, {
|
|
2566
|
+
readonly name: "value_alternate_keys";
|
|
2567
|
+
readonly args: "";
|
|
2568
|
+
readonly returns: "text[]";
|
|
2569
|
+
readonly security: "invoker";
|
|
2570
|
+
}, {
|
|
2571
|
+
readonly name: "value_envelope_keys";
|
|
2572
|
+
readonly args: "";
|
|
2573
|
+
readonly returns: "text[]";
|
|
2574
|
+
readonly security: "invoker";
|
|
2575
|
+
}, {
|
|
2576
|
+
readonly name: "value_envelope_ok";
|
|
2577
|
+
readonly args: "p_data jsonb";
|
|
2578
|
+
readonly returns: "boolean";
|
|
2579
|
+
readonly security: "invoker";
|
|
2580
|
+
}, {
|
|
2581
|
+
readonly name: "value_envelope_refusal";
|
|
2582
|
+
readonly args: "p_data jsonb";
|
|
2583
|
+
readonly returns: "text";
|
|
2584
|
+
readonly security: "invoker";
|
|
2585
|
+
}, {
|
|
2586
|
+
readonly name: "value_read";
|
|
2587
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_key text";
|
|
2588
|
+
readonly 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)";
|
|
2589
|
+
readonly security: "definer";
|
|
2590
|
+
}, {
|
|
2591
|
+
readonly name: "value_restore";
|
|
2592
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_key text, p_version integer";
|
|
2593
|
+
readonly returns: "jsonb";
|
|
2594
|
+
readonly security: "definer";
|
|
2595
|
+
}, {
|
|
2596
|
+
readonly name: "value_restore";
|
|
2597
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_key text, p_version integer, p_author jsonb";
|
|
2598
|
+
readonly returns: "jsonb";
|
|
2599
|
+
readonly security: "definer";
|
|
2600
|
+
}, {
|
|
2601
|
+
readonly name: "value_versions";
|
|
2602
|
+
readonly args: "p_old jsonb, p_new jsonb";
|
|
2603
|
+
readonly returns: "jsonb";
|
|
2604
|
+
readonly security: "invoker";
|
|
2605
|
+
}, {
|
|
2606
|
+
readonly name: "view_declare";
|
|
2607
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
2608
|
+
readonly returns: "uuid";
|
|
2609
|
+
readonly security: "definer";
|
|
2610
|
+
}, {
|
|
2611
|
+
readonly name: "views";
|
|
2612
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
2613
|
+
readonly returns: "TABLE(view_id uuid, name text, table_id uuid, filters jsonb, definition jsonb, created_at timestamp with time zone)";
|
|
2614
|
+
readonly security: "definer";
|
|
2615
|
+
}, {
|
|
2616
|
+
readonly name: "visibility_ancestors";
|
|
2617
|
+
readonly args: "p_item_type text, p_item_id uuid";
|
|
2618
|
+
readonly returns: "TABLE(container_type text, container_id uuid, depth integer, max_level permission_level)";
|
|
2619
|
+
readonly security: "definer";
|
|
2620
|
+
}, {
|
|
2621
|
+
readonly name: "visibility_as_of";
|
|
2622
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone";
|
|
2623
|
+
readonly returns: "TABLE(principal_kind text, principal_id uuid, level permission_level, through_kind text, through_id uuid, reason text, replayed boolean, held_from timestamp with time zone, held_to timestamp with time zone)";
|
|
2624
|
+
readonly security: "definer";
|
|
2625
|
+
}, {
|
|
2626
|
+
readonly name: "visibility_cache_rebuild";
|
|
2627
|
+
readonly args: "";
|
|
2628
|
+
readonly returns: "integer";
|
|
2629
|
+
readonly security: "definer";
|
|
2630
|
+
}, {
|
|
2631
|
+
readonly name: "visibility_parity";
|
|
2632
|
+
readonly args: "";
|
|
2633
|
+
readonly 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)";
|
|
2634
|
+
readonly security: "definer";
|
|
2635
|
+
}, {
|
|
2636
|
+
readonly name: "visibility_warm";
|
|
2637
|
+
readonly args: "p_container_type text, p_container_id uuid";
|
|
2638
|
+
readonly returns: "integer";
|
|
2639
|
+
readonly security: "definer";
|
|
2640
|
+
}, {
|
|
2641
|
+
readonly name: "visible_predicate_sql";
|
|
2642
|
+
readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level, p_alias text DEFAULT 'r'::text";
|
|
2643
|
+
readonly returns: "text";
|
|
2644
|
+
readonly security: "definer";
|
|
2645
|
+
}, {
|
|
2646
|
+
readonly name: "visible_record_ids";
|
|
2647
|
+
readonly args: "p_user_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
2648
|
+
readonly returns: "TABLE(id uuid)";
|
|
2649
|
+
readonly security: "definer";
|
|
2650
|
+
}, {
|
|
2651
|
+
readonly name: "visible_set";
|
|
2652
|
+
readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level, OUT o_all_visible boolean, OUT o_true_visibility platform.visibility[], OUT o_granted_all uuid[], OUT o_granted_visible uuid[], OUT o_carried_visible uuid[], OUT o_ladder_calls integer, OUT o_fallback boolean, OUT o_note text";
|
|
2653
|
+
readonly returns: "record";
|
|
2654
|
+
readonly security: "definer";
|
|
2655
|
+
}, {
|
|
2656
|
+
readonly name: "widget_kernel_id";
|
|
2657
|
+
readonly args: "";
|
|
2658
|
+
readonly returns: "uuid";
|
|
2659
|
+
readonly security: "invoker";
|
|
2660
|
+
}, {
|
|
2661
|
+
readonly name: "withheld_marker";
|
|
2662
|
+
readonly args: "p_mask jsonb, p_key text";
|
|
2663
|
+
readonly returns: "jsonb";
|
|
2664
|
+
readonly security: "invoker";
|
|
2665
|
+
}, {
|
|
2666
|
+
readonly name: "withheld_sentence";
|
|
2667
|
+
readonly args: "p_mask jsonb, p_key text";
|
|
2668
|
+
readonly returns: "text";
|
|
2669
|
+
readonly security: "invoker";
|
|
2670
|
+
}, {
|
|
2671
|
+
readonly name: "work_approval_approvers";
|
|
2672
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_approver_id uuid DEFAULT NULL::uuid";
|
|
2673
|
+
readonly returns: "TABLE(user_id uuid, name text, why text)";
|
|
2674
|
+
readonly security: "definer";
|
|
2675
|
+
}, {
|
|
2676
|
+
readonly name: "work_approval_decide";
|
|
2677
|
+
readonly args: "p_organization_id uuid, p_approval_id uuid, p_approve boolean, p_note text DEFAULT NULL::text";
|
|
2678
|
+
readonly returns: "jsonb";
|
|
2679
|
+
readonly security: "definer";
|
|
2680
|
+
}, {
|
|
2681
|
+
readonly name: "work_approval_kinds";
|
|
2682
|
+
readonly args: "";
|
|
2683
|
+
readonly returns: "text[]";
|
|
2684
|
+
readonly security: "invoker";
|
|
2685
|
+
}, {
|
|
2686
|
+
readonly name: "work_approval_may_decide";
|
|
2687
|
+
readonly args: "p_organization_id uuid, p_approval_id uuid";
|
|
2688
|
+
readonly returns: "boolean";
|
|
2689
|
+
readonly security: "definer";
|
|
2690
|
+
}, {
|
|
2691
|
+
readonly name: "work_approval_read";
|
|
2692
|
+
readonly args: "p_organization_id uuid, p_approval_id uuid";
|
|
2693
|
+
readonly returns: "jsonb";
|
|
2694
|
+
readonly security: "definer";
|
|
2695
|
+
}, {
|
|
2696
|
+
readonly name: "work_approval_request";
|
|
2697
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_change jsonb, p_note text DEFAULT NULL::text, p_approver_id uuid DEFAULT NULL::uuid, p_origin text DEFAULT 'person'::text, p_conversation_id uuid DEFAULT NULL::uuid";
|
|
2698
|
+
readonly returns: "jsonb";
|
|
2699
|
+
readonly security: "definer";
|
|
2700
|
+
}, {
|
|
2701
|
+
readonly name: "work_assign";
|
|
2702
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_assignee_user_id uuid, p_due_date timestamp with time zone DEFAULT NULL::timestamp with time zone, p_clear_due boolean DEFAULT false";
|
|
2703
|
+
readonly returns: "jsonb";
|
|
2704
|
+
readonly security: "definer";
|
|
2705
|
+
}, {
|
|
2706
|
+
readonly name: "work_assignment_fields";
|
|
2707
|
+
readonly args: "p_options_table_id uuid DEFAULT NULL::uuid";
|
|
2708
|
+
readonly returns: "TABLE(key text, label text, spec jsonb)";
|
|
2709
|
+
readonly security: "invoker";
|
|
2710
|
+
}, {
|
|
2711
|
+
readonly name: "work_has_assignment";
|
|
2712
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2713
|
+
readonly returns: "boolean";
|
|
2714
|
+
readonly security: "definer";
|
|
2715
|
+
}, {
|
|
2716
|
+
readonly name: "work_inbox";
|
|
2717
|
+
readonly args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false";
|
|
2718
|
+
readonly returns: "TABLE(item_id uuid, kind text, origin text, title text, subject_id uuid, subject_kind text, summary text, state text, due_on timestamp with time zone, due_state text, actionable boolean, requested_by uuid, requested_by_name text, at timestamp with time zone)";
|
|
2719
|
+
readonly security: "definer";
|
|
2720
|
+
}, {
|
|
2721
|
+
readonly name: "work_instantiation_shape";
|
|
2722
|
+
readonly args: "p_organization_id uuid, p_instantiation_id uuid";
|
|
2723
|
+
readonly returns: "jsonb";
|
|
2724
|
+
readonly security: "definer";
|
|
2725
|
+
}, {
|
|
2726
|
+
readonly name: "work_list";
|
|
2727
|
+
readonly args: "p_organization_id uuid, p_flavour text DEFAULT 'mine'::text, p_include_finished boolean DEFAULT false, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0";
|
|
2728
|
+
readonly returns: "TABLE(record_id uuid, table_id uuid, table_name text, title text, assignee_id uuid, assignee_name text, assignee_user_id uuid, due_on timestamp with time zone, due_state text, status text, terminal boolean, assigned_by uuid, updated_at timestamp with time zone)";
|
|
2729
|
+
readonly security: "definer";
|
|
2730
|
+
}, {
|
|
2731
|
+
readonly name: "work_person";
|
|
2732
|
+
readonly args: "p_organization_id uuid, p_user_id uuid, p_create boolean DEFAULT true";
|
|
2733
|
+
readonly returns: "uuid";
|
|
2734
|
+
readonly security: "definer";
|
|
2735
|
+
}, {
|
|
2736
|
+
readonly name: "work_record_states";
|
|
2737
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
2738
|
+
readonly returns: "TABLE(state_id uuid, name text, sort integer, terminal boolean, is_current boolean, allowed boolean, refusal text)";
|
|
2739
|
+
readonly security: "definer";
|
|
2740
|
+
}, {
|
|
2741
|
+
readonly name: "work_relation_kinds";
|
|
2742
|
+
readonly args: "";
|
|
2743
|
+
readonly returns: "TABLE(kind text, available boolean, why text)";
|
|
2744
|
+
readonly security: "invoker";
|
|
2745
|
+
}, {
|
|
2746
|
+
readonly name: "work_set_state";
|
|
2747
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_state_id uuid";
|
|
2748
|
+
readonly returns: "jsonb";
|
|
2749
|
+
readonly security: "definer";
|
|
2750
|
+
}, {
|
|
2751
|
+
readonly name: "work_slot_expire";
|
|
2752
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2753
|
+
readonly returns: "integer";
|
|
2754
|
+
readonly security: "definer";
|
|
2755
|
+
}, {
|
|
2756
|
+
readonly name: "work_slot_hold";
|
|
2757
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_slot_key text, p_holder text, p_ttl interval DEFAULT '00:15:00'::interval";
|
|
2758
|
+
readonly returns: "jsonb";
|
|
2759
|
+
readonly security: "definer";
|
|
2760
|
+
}, {
|
|
2761
|
+
readonly name: "work_slot_holds";
|
|
2762
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2763
|
+
readonly returns: "TABLE(hold_id uuid, slot_key text, holder text, expires_at timestamp with time zone, expired boolean)";
|
|
2764
|
+
readonly security: "definer";
|
|
2765
|
+
}, {
|
|
2766
|
+
readonly name: "work_slot_index_name";
|
|
2767
|
+
readonly args: "p_table_id uuid";
|
|
2768
|
+
readonly returns: "text";
|
|
2769
|
+
readonly security: "invoker";
|
|
2770
|
+
}, {
|
|
2771
|
+
readonly name: "work_slot_release";
|
|
2772
|
+
readonly args: "p_organization_id uuid, p_hold_id uuid";
|
|
2773
|
+
readonly returns: "boolean";
|
|
2774
|
+
readonly security: "definer";
|
|
2775
|
+
}, {
|
|
2776
|
+
readonly name: "work_slots_declare";
|
|
2777
|
+
readonly args: "p_organization_id uuid, p_name text, p_slug text, p_home_id uuid DEFAULT NULL::uuid";
|
|
2778
|
+
readonly returns: "jsonb";
|
|
2779
|
+
readonly security: "definer";
|
|
2780
|
+
}, {
|
|
2781
|
+
readonly name: "work_state_id";
|
|
2782
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_value text";
|
|
2783
|
+
readonly returns: "uuid";
|
|
2784
|
+
readonly security: "invoker";
|
|
2785
|
+
}, {
|
|
2786
|
+
readonly name: "work_states";
|
|
2787
|
+
readonly args: "";
|
|
2788
|
+
readonly returns: "TABLE(sort integer, name text, terminal boolean, next text[])";
|
|
2789
|
+
readonly security: "invoker";
|
|
2790
|
+
}, {
|
|
2791
|
+
readonly name: "work_take_assignment";
|
|
2792
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2793
|
+
readonly returns: "jsonb";
|
|
2794
|
+
readonly security: "definer";
|
|
2795
|
+
}, {
|
|
2796
|
+
readonly name: "work_template_declare";
|
|
2797
|
+
readonly args: "p_organization_id uuid, p_name text, p_graph jsonb";
|
|
2798
|
+
readonly returns: "uuid";
|
|
2799
|
+
readonly security: "definer";
|
|
2800
|
+
}, {
|
|
2801
|
+
readonly name: "work_template_instantiate";
|
|
2802
|
+
readonly args: "p_organization_id uuid, p_template_id uuid, p_overrides jsonb DEFAULT '{}'::jsonb";
|
|
2803
|
+
readonly returns: "jsonb";
|
|
2804
|
+
readonly security: "definer";
|
|
2805
|
+
}, {
|
|
2806
|
+
readonly name: "work_template_refusal";
|
|
2807
|
+
readonly args: "p_graph jsonb";
|
|
2808
|
+
readonly returns: "text";
|
|
2809
|
+
readonly security: "invoker";
|
|
2810
|
+
}, {
|
|
2811
|
+
readonly name: "work_template_shape";
|
|
2812
|
+
readonly args: "p_organization_id uuid, p_template_id uuid";
|
|
2813
|
+
readonly returns: "jsonb";
|
|
2814
|
+
readonly security: "definer";
|
|
2815
|
+
}, {
|
|
2816
|
+
readonly name: "work_templates";
|
|
2817
|
+
readonly args: "p_organization_id uuid, p_limit integer DEFAULT 100";
|
|
2818
|
+
readonly returns: "TABLE(template_id uuid, name text, nodes integer, relations integer, created_at timestamp with time zone)";
|
|
2819
|
+
readonly security: "definer";
|
|
2820
|
+
}, {
|
|
2821
|
+
readonly name: "work_transition_refusal";
|
|
2822
|
+
readonly args: "p_organization_id uuid, p_from_state_id uuid, p_to_state_id uuid";
|
|
2823
|
+
readonly returns: "text";
|
|
2824
|
+
readonly security: "definer";
|
|
2825
|
+
}, {
|
|
2826
|
+
readonly name: "work_whose_turn";
|
|
2827
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_include_finished boolean DEFAULT false";
|
|
2828
|
+
readonly returns: "TABLE(record_id uuid, title text, assignee_id uuid, turn text, due_on timestamp with time zone, state text, status text, terminal boolean)";
|
|
2829
|
+
readonly security: "definer";
|
|
2830
|
+
}];
|
|
2831
|
+
/** The campaign's own knobs, with the value the store resolves them to today. */
|
|
2832
|
+
declare const STORE_KNOBS: readonly [{
|
|
2833
|
+
readonly key: "accessible_entity_ids_guard";
|
|
2834
|
+
readonly value: "true";
|
|
2835
|
+
readonly type: "boolean";
|
|
2836
|
+
}, {
|
|
2837
|
+
readonly key: "agent_schema_changes";
|
|
2838
|
+
readonly value: "\"ask\"";
|
|
2839
|
+
readonly type: "string";
|
|
2840
|
+
}, {
|
|
2841
|
+
readonly key: "associations_guard";
|
|
2842
|
+
readonly value: "true";
|
|
2843
|
+
readonly type: "boolean";
|
|
2844
|
+
}, {
|
|
2845
|
+
readonly key: "code_paths_enabled";
|
|
2846
|
+
readonly value: "false";
|
|
2847
|
+
readonly type: "boolean";
|
|
2848
|
+
}, {
|
|
2849
|
+
readonly key: "consumer_chat_seeding_enabled";
|
|
2850
|
+
readonly value: "false";
|
|
2851
|
+
readonly type: "boolean";
|
|
2852
|
+
}, {
|
|
2853
|
+
readonly key: "consumer_checkout_enabled";
|
|
2854
|
+
readonly value: "false";
|
|
2855
|
+
readonly type: "boolean";
|
|
2856
|
+
}, {
|
|
2857
|
+
readonly key: "consumer_context_enabled";
|
|
2858
|
+
readonly value: "false";
|
|
2859
|
+
readonly type: "boolean";
|
|
2860
|
+
}, {
|
|
2861
|
+
readonly key: "consumer_education_enabled";
|
|
2862
|
+
readonly value: "false";
|
|
2863
|
+
readonly type: "boolean";
|
|
2864
|
+
}, {
|
|
2865
|
+
readonly key: "consumer_extension_enabled";
|
|
2866
|
+
readonly value: "false";
|
|
2867
|
+
readonly type: "boolean";
|
|
2868
|
+
}, {
|
|
2869
|
+
readonly key: "consumer_grid_enabled";
|
|
2870
|
+
readonly value: "false";
|
|
2871
|
+
readonly type: "boolean";
|
|
2872
|
+
}, {
|
|
2873
|
+
readonly key: "consumer_retirement_enabled";
|
|
2874
|
+
readonly value: "false";
|
|
2875
|
+
readonly type: "boolean";
|
|
2876
|
+
}, {
|
|
2877
|
+
readonly key: "consumer_saved_ai_outputs_enabled";
|
|
2878
|
+
readonly value: "false";
|
|
2879
|
+
readonly type: "boolean";
|
|
2880
|
+
}, {
|
|
2881
|
+
readonly key: "consumer_scopes_enabled";
|
|
2882
|
+
readonly value: "false";
|
|
2883
|
+
readonly type: "boolean";
|
|
2884
|
+
}, {
|
|
2885
|
+
readonly key: "containment_depth_ceiling";
|
|
2886
|
+
readonly value: "16";
|
|
2887
|
+
readonly type: "integer";
|
|
2888
|
+
}, {
|
|
2889
|
+
readonly key: "cross_organization_links";
|
|
2890
|
+
readonly value: "false";
|
|
2891
|
+
readonly type: "boolean";
|
|
2892
|
+
}, {
|
|
2893
|
+
readonly key: "document_letterhead";
|
|
2894
|
+
readonly value: "{}";
|
|
2895
|
+
readonly type: "json";
|
|
2896
|
+
}, {
|
|
2897
|
+
readonly key: "document_max_bytes";
|
|
2898
|
+
readonly value: "1048576";
|
|
2899
|
+
readonly type: "integer";
|
|
2900
|
+
}, {
|
|
2901
|
+
readonly key: "emergency_door_guard";
|
|
2902
|
+
readonly value: "false";
|
|
2903
|
+
readonly type: "boolean";
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly key: "emergency_door_sweep_enabled";
|
|
2906
|
+
readonly value: "false";
|
|
2907
|
+
readonly type: "boolean";
|
|
2908
|
+
}, {
|
|
2909
|
+
readonly key: "enrichment_batch_ceiling";
|
|
2910
|
+
readonly value: "200";
|
|
2911
|
+
readonly type: "integer";
|
|
2912
|
+
}, {
|
|
2913
|
+
readonly key: "enrichment_confidence_floor";
|
|
2914
|
+
readonly value: "0.6";
|
|
2915
|
+
readonly type: "number";
|
|
2916
|
+
}, {
|
|
2917
|
+
readonly key: "enrichment_cost_cap_cents";
|
|
2918
|
+
readonly value: "2000";
|
|
2919
|
+
readonly type: "integer";
|
|
2920
|
+
}, {
|
|
2921
|
+
readonly key: "enrichment_model";
|
|
2922
|
+
readonly value: "\"claude-fable-5-latest\"";
|
|
2923
|
+
readonly type: "string";
|
|
2924
|
+
}, {
|
|
2925
|
+
readonly key: "enrichment_sensitivity_ceiling";
|
|
2926
|
+
readonly value: "\"internal\"";
|
|
2927
|
+
readonly type: "string";
|
|
2928
|
+
}, {
|
|
2929
|
+
readonly key: "entity_custom_fields_guard";
|
|
2930
|
+
readonly value: "false";
|
|
2931
|
+
readonly type: "boolean";
|
|
2932
|
+
}, {
|
|
2933
|
+
readonly key: "entity_types_guard";
|
|
2934
|
+
readonly value: "false";
|
|
2935
|
+
readonly type: "boolean";
|
|
2936
|
+
}, {
|
|
2937
|
+
readonly key: "export_rows_ceiling";
|
|
2938
|
+
readonly value: "100000";
|
|
2939
|
+
readonly type: "integer";
|
|
2940
|
+
}, {
|
|
2941
|
+
readonly key: "external_principal_enabled";
|
|
2942
|
+
readonly value: "false";
|
|
2943
|
+
readonly type: "boolean";
|
|
2944
|
+
}, {
|
|
2945
|
+
readonly key: "field_index_guard";
|
|
2946
|
+
readonly value: "false";
|
|
2947
|
+
readonly type: "boolean";
|
|
2948
|
+
}, {
|
|
2949
|
+
readonly key: "field_sensitivity_levels";
|
|
2950
|
+
readonly value: "{\"edit\": {\"public\": \"editor\", \"internal\": \"editor\", \"restricted\": \"admin\", \"confidential\": \"admin\"}, \"read\": {\"public\": \"viewer\", \"internal\": \"viewer\", \"restricted\": \"admin\", \"confidential\": \"editor\"}}";
|
|
2951
|
+
readonly type: "json";
|
|
2952
|
+
}, {
|
|
2953
|
+
readonly key: "inbound_domain";
|
|
2954
|
+
readonly value: "\"inbound.matrxserver.com\"";
|
|
2955
|
+
readonly type: "string";
|
|
2956
|
+
}, {
|
|
2957
|
+
readonly key: "member_default_level";
|
|
2958
|
+
readonly value: "\"viewer\"";
|
|
2959
|
+
readonly type: "enum";
|
|
2960
|
+
}, {
|
|
2961
|
+
readonly key: "member_default_visibility";
|
|
2962
|
+
readonly value: "\"all_records\"";
|
|
2963
|
+
readonly type: "enum";
|
|
2964
|
+
}, {
|
|
2965
|
+
readonly key: "page_size_ceiling";
|
|
2966
|
+
readonly value: "1000";
|
|
2967
|
+
readonly type: "integer";
|
|
2968
|
+
}, {
|
|
2969
|
+
readonly key: "provenance_retention_days";
|
|
2970
|
+
readonly value: "30";
|
|
2971
|
+
readonly type: "number";
|
|
2972
|
+
}, {
|
|
2973
|
+
readonly key: "records_tool_default";
|
|
2974
|
+
readonly value: "true";
|
|
2975
|
+
readonly type: "boolean";
|
|
2976
|
+
}, {
|
|
2977
|
+
readonly key: "row_versions_guard";
|
|
2978
|
+
readonly value: "false";
|
|
2979
|
+
readonly type: "boolean";
|
|
2980
|
+
}, {
|
|
2981
|
+
readonly key: "sandbox_expanded_frame_height_px";
|
|
2982
|
+
readonly value: "20000";
|
|
2983
|
+
readonly type: "integer";
|
|
2984
|
+
}, {
|
|
2985
|
+
readonly key: "sandbox_frame_height_px";
|
|
2986
|
+
readonly value: "4000";
|
|
2987
|
+
readonly type: "integer";
|
|
2988
|
+
}, {
|
|
2989
|
+
readonly key: "sandbox_message_bytes";
|
|
2990
|
+
readonly value: "65536";
|
|
2991
|
+
readonly type: "integer";
|
|
2992
|
+
}, {
|
|
2993
|
+
readonly key: "sandbox_org_components";
|
|
2994
|
+
readonly value: "true";
|
|
2995
|
+
readonly type: "boolean";
|
|
2996
|
+
}, {
|
|
2997
|
+
readonly key: "signup_provisioning_guard";
|
|
2998
|
+
readonly value: "false";
|
|
2999
|
+
readonly type: "boolean";
|
|
3000
|
+
}, {
|
|
3001
|
+
readonly key: "system_enabled";
|
|
3002
|
+
readonly value: "false";
|
|
3003
|
+
readonly type: "boolean";
|
|
3004
|
+
}, {
|
|
3005
|
+
readonly key: "table_record_ceiling";
|
|
3006
|
+
readonly value: "150000";
|
|
3007
|
+
readonly type: "integer";
|
|
3008
|
+
}, {
|
|
3009
|
+
readonly key: "value_max_bytes";
|
|
3010
|
+
readonly value: "100000";
|
|
3011
|
+
readonly type: "integer";
|
|
3012
|
+
}, {
|
|
3013
|
+
readonly key: "world_publish_enabled";
|
|
3014
|
+
readonly value: "false";
|
|
3015
|
+
readonly type: "boolean";
|
|
3016
|
+
}];
|
|
3017
|
+
/**
|
|
3018
|
+
* Every SQLSTATE the store's own function bodies raise, with the functions that
|
|
3019
|
+
* raise it. This is the list the client's refusal mapper is checked against: a
|
|
3020
|
+
* code the store can raise and the package cannot name is a hole, and the
|
|
3021
|
+
* real-door suite says so by name.
|
|
3022
|
+
*/
|
|
3023
|
+
declare const STORE_REFUSAL_CODES: readonly [{
|
|
3024
|
+
readonly code: "02000";
|
|
3025
|
+
readonly raised_by: "_checklist_instantiate,checklist_declare,checklist_run,checklist_step_complete,checklist_step_refusal,checklist_template_shape,conversation_scope_bind,dashboard_delete,dashboard_run,doc_letterhead,doc_render_body,doc_render_document,doc_render_read,doc_sign,doc_signature_intact,doc_signature_read,doc_template_delete,doc_template_read,doc_template_save,enrich_pin,entity_field_retire,entity_field_update,entity_record_read,entity_value_write,external_history_event,external_rows,external_stub_upsert,external_writes_set,io_restore,migrate_delete,migrate_extract_parent,migrate_merge,migrate_reclass,migrate_rename,migrate_reparent,migrate_retype,migrate_split,migrate_undo,organization_clear,portal_card,portal_declare,portal_invite,portal_preview,portal_principal_bind,portal_revoke,read_record,record_delete,record_restore,record_restore_preview,record_table,record_update,relation_uncarry,share_access,share_grant,share_lane_set,share_people,share_revoke,sign_request_cancel,sign_request_create,sign_request_remind,sign_request_unchanged,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_assign,work_record_states,work_set_state";
|
|
3026
|
+
}, {
|
|
3027
|
+
readonly code: "0A000";
|
|
3028
|
+
readonly raised_by: "checklist_step_complete,external_rows,external_source_declare,external_write_through,promote_field,promoted_index_expr,promoted_query_sql,promoted_read,rule_eval,work_assign";
|
|
3029
|
+
}, {
|
|
3030
|
+
readonly code: "22003";
|
|
3031
|
+
readonly raised_by: "context_resolve";
|
|
3032
|
+
}, {
|
|
3033
|
+
readonly code: "22004";
|
|
3034
|
+
readonly raised_by: "_entity_custom_fields_guard,_value_envelope,actor_word,agg_assert_key,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,booking_declare,capture_submit,checklist_declare,context_resolve,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_submit,home_add,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_restore,migrate_choice_keys,migrate_purge,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,portal_declare,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,record_write_many,relation_carry,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_declare,value_restore,view_declare,work_approval_decide,work_approval_request,work_template_declare";
|
|
3035
|
+
}, {
|
|
3036
|
+
readonly code: "22007";
|
|
3037
|
+
readonly raised_by: "dashboard_window_sql";
|
|
3038
|
+
}, {
|
|
3039
|
+
readonly code: "22012";
|
|
3040
|
+
readonly raised_by: "rule_eval";
|
|
3041
|
+
}, {
|
|
3042
|
+
readonly code: "22023";
|
|
3043
|
+
readonly raised_by: "_booking_availability,_entity_custom_fields_guard,_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pin_agent_cells,pipeline_move,portal_declare,provenance_write,query_by_coordinates,query_rollup,record_update,record_write_many,relation_carry,rule_eval,rule_members,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_rules,visibility_as_of,work_approval_request,work_list,work_slot_hold";
|
|
3044
|
+
}, {
|
|
3045
|
+
readonly code: "23503";
|
|
3046
|
+
readonly raised_by: "_booking_availability,_checklist_instantiate,_containment_guard,_field_document_for,_pipeline_stage_key,_record_rule_uses,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_submit,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_members,rule_run,sign_request_create,subscription_mute,subscription_preview,view_declare,work_set_state,work_take_assignment,work_template_instantiate";
|
|
3047
|
+
}, {
|
|
3048
|
+
readonly code: "23505";
|
|
3049
|
+
readonly raised_by: "_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,share_grant,sign_request_cancel,sign_request_create,work_approval_decide,work_slot_hold";
|
|
3050
|
+
}, {
|
|
3051
|
+
readonly code: "23514";
|
|
3052
|
+
readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_shape_guard,_value_envelope,_work_shape_guard,_workdoors_approval_guard,assert_entity_is_organization_scoped,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_import_rows,migrate_merge,relation_carry,relation_own,sign_request_create,sign_request_sign,table_declare,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
|
|
3053
|
+
}, {
|
|
3054
|
+
readonly code: "40001";
|
|
3055
|
+
readonly raised_by: "has_visibility_at";
|
|
3056
|
+
}, {
|
|
3057
|
+
readonly code: "42501";
|
|
3058
|
+
readonly 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_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,conversation_scope_bind,conversation_scope_unbind,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_submit,inbound_mail_land,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,migrate_purge,migrate_reclass,my_levels,organization_clear,portal_declare,portal_invitation,portal_invite,portal_principal_bind,promote_table,query_visibility_parity,read_record,read_records,record_table,share_grant,subscription_mute,subscription_preview,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
|
|
3059
|
+
}, {
|
|
3060
|
+
readonly code: "42703";
|
|
3061
|
+
readonly raised_by: "entity_table,portal_declare";
|
|
3062
|
+
}, {
|
|
3063
|
+
readonly code: "53400";
|
|
3064
|
+
readonly raised_by: "anon_rate_take,delete_cascade_closure,enrich_due,enrich_land,promote_field";
|
|
3065
|
+
}, {
|
|
3066
|
+
readonly code: "54001";
|
|
3067
|
+
readonly raised_by: "record_delete";
|
|
3068
|
+
}, {
|
|
3069
|
+
readonly code: "PT409";
|
|
3070
|
+
readonly raised_by: "record_update";
|
|
3071
|
+
}];
|
|
3072
|
+
/** `platform.entity_types` — the registered tokens a Table or relation may name. */
|
|
3073
|
+
declare const ENTITY_TOKENS: readonly ["access_delta_probe", "access_delta_run", "access_request", "account_addon", "acquisition_block", "activity", "admin_audit_log", "admin_email_log", "admin_markdown_sample", "admin_user", "admission_config", "agent", "agent_card", "agent_definition_version", "agent_drift_alert", "agent_exemplar", "agent_mandate_note", "agent_prompt_remediation", "agent_provision_legacy", "agent_run", "agent_run_stage", "agent_schedule", "agent_schedule_claim", "agent_shortcut", "agent_surface_binding", "agent_template", "agent_usage", "agent_user_kv", "ai_api", "ai_endpoint", "ai_model", "ai_model_alias", "ai_offering", "ai_provider", "ai_setting", "analysis_result", "anon_form", "anon_function_birth_grandfather", "anon_hit", "anon_inbound", "anon_replay", "anon_submission", "anon_token", "api_field_warning", "api_request_log", "app", "app_config", "app_config_history", "app_definition_version", "app_error", "app_execution", "app_instance", "app_log", "app_log_muted_pattern", "app_log_norm_exception", "app_rate_limit", "app_setting", "app_sync_status", "approach", "artifact", "assessment", "assessment_item", "assessment_result", "assignment_session", "assist", "assist_producer_policy", "assist_producer_policy_history", "association_type", "assurance_level", "attempt", "audit_broken_functions", "audit_canonical_findings", "audit_exemption", "audit_function_deps", "audit_function_runtime_probe", "audit_m2m_candidates", "audit_refresh_log", "audit_stale_registry", "audit_unregistered_candidates", "bak_assoc_file_processed_document_20260812", "bak_assoc_type_file_processed_document_20260812", "bak_organization_name_dd043", "base_entity_template", "batch_cost_event", "batch_provider_batch", "batch_work_item", "billing_capability", "billing_capability_limit", "billing_connect_account", "billing_customer", "billing_plan", "billing_plan_limit", "billing_price", "billing_product", "billing_spend_guardrail", "billing_stripe_event", "billing_subscription", "billing_usage_ledger", "billing_user_plan", "browser_account_binding", "browser_action_event", "browser_authenticator_window", "browser_capture", "browser_control_request", "browser_handoff", "browser_login_attempt", "browser_login_recipe", "browser_profile", "browser_profile_checkpoint", "browser_run", "browser_site_observation", "browser_site_policy", "browser_stream_ticket", "build_lock", "calendar_event", "canvas_comment", "canvas_comment_like", "canvas_item", "canvas_item_state", "canvas_like", "canvas_score", "canvas_view", "capture_window", "carrying_rule", "catalog_entries_history", "catalog_entry", "category", "change_type_default", "chat_user_usage_summary", "citations", "class_purchase", "classifier_revision_ledger", "client_callable_door", "client_callable_door_retirement", "client_excluded_column_unregistered", "cmp_entry", "cmp_feedback", "code_file", "code_folder", "code_repository", "coding_session", "coding_session_entry", "comment", "commerce_asset_allocation", "commerce_asset_grading", "commerce_asset_identifier", "commerce_asset_lot_event", "commerce_asset_mandate_result", "commerce_asset_price_factor", "commerce_asset_reshoot_request", "commerce_asset_review", "commerce_asset_unknown", "commerce_certified_printer", "commerce_cloud_sync_connection", "commerce_ebay_business_policy", "commerce_ebay_category", "commerce_ebay_category_aspect", "commerce_ebay_category_tree", "commerce_ebay_custom_policy", "commerce_ebay_inventory_item", "commerce_ebay_inventory_item_group", "commerce_ebay_inventory_item_group_member", "commerce_ebay_inventory_location", "commerce_ebay_listing", "commerce_ebay_marketplace_policy", "commerce_ebay_media_asset", "commerce_ebay_notification_destination", "commerce_ebay_notification_event", "commerce_ebay_notification_subscription", "commerce_ebay_notification_topic", "commerce_ebay_offer", "commerce_ebay_order", "commerce_ebay_order_line_item", "commerce_ebay_shipping_fulfillment", "commerce_ebay_store_category", "commerce_human_correction", "commerce_intake_artifact", "commerce_intake_asset", "commerce_intake_batch", "commerce_label_batch", "commerce_label_code", "commerce_marketplace_account", "commerce_marketplace_account_deletion_audit", "commerce_marketplace_api_call", "commerce_marketplace_rate_budget", "commerce_marketplace_site", "commerce_marketplace_sync_run", "commerce_prediction_outcome", "commerce_print_order", "commerce_product", "commerce_product_channel_ref", "commerce_product_media", "commerce_product_variant", "commerce_recall_audit", "comparison_set", "component_group", "contact_medium", "contact_submission", "content_certification", "content_ir_kind", "content_ir_kind_component", "content_ir_kind_component_incident", "content_ir_kind_conformance", "content_ir_kind_edge", "content_ir_kind_example", "content_ir_kind_instance", "content_ir_kind_surface", "content_lane", "context_access_log", "context_item", "context_item_suggestion", "context_item_value", "context_value_refs", "conversation", "conversation_value", "courts", "credential_attachment", "credential_item", "credential_mutation_receipt", "crm_address", "crm_affiliation", "crm_blocklist_entry", "crm_contact_candidate", "crm_deal", "crm_deal_stage_event", "crm_enrichment_call", "crm_interaction", "crm_merge_candidate", "crm_outreach_list", "crm_outreach_list_member", "crm_party_merge", "crm_registry_ingest_run", "crm_registry_source", "crm_saved_view", "crm_sending_event", "crm_sending_identity", "crm_sending_identity_check", "crm_sending_policy", "custom_entity_definition", "custom_field_definition", "custom_field_target", "custom_record", "cx_agent_memory", "cx_agent_plan", "cx_agent_task", "cx_code_edit", "cx_code_message_file", "cx_conversation_documents", "cx_media", "cx_observational_memory", "cx_observational_memory_event", "cx_pending_injection", "cx_request", "cx_request_snapshot", "cx_tool_trace", "cx_user_request", "cx_user_todo", "dashboard_saved_view", "data_rights_event", "data_store", "data_store_members", "dataset", "dd171_containment_baseline", "dd175_cast", "dd175_component_lane_baseline", "ddl_guard_log", "deck_suggestion", "definer_class_exemption", "definer_client_grant_grandfather", "definer_grant_baseline", "deprecated_relation", "derive_run", "dev_login_audit", "dict_entry", "dict_provider_publication", "dict_setting", "dm_conversation", "dm_message", "dm_participant", "doc_render", "doc_signature", "dockets", "domain_classification", "edge_payload_kind", "egress_device", "egress_pairing", "egress_ticket", "emails", "embedding_cache", "embeddings_google_gemini_2_1536", "embeddings_oai_3_small_1536", "embeddings_voyage_4_large_1024", "embeddings_voyage_code_3_1024", "endpoint_family_sweep_state", "engine_owner_task", "entity_grant", "entity_relationship", "entity_type", "esign_campaign", "esign_campaign_member", "esign_consent_disclosure", "esign_envelope", "esign_envelope_certificate", "esign_envelope_document", "esign_envelope_event", "esign_envelope_external_ref", "esign_envelope_signer", "esign_provider", "esign_provider_binding", "esign_signing_key", "execution_event_cursor", "extension_auth_code", "external_link", "external_source", "extract_sweep_state", "fc_card", "fc_detail", "fc_set", "feature_doc", "feature_knob", "feedback_comments", "feedback_user_messages", "field_component", "file", "file_analysis", "file_entities", "file_overrides", "file_page_annotations", "file_pages", "file_rag_job", "file_version", "files_account_tier", "files_machine_written_prefix", "files_sync_mapping", "files_user_account", "flashcard_data", "flashcard_history", "flashcard_review", "flashcard_set", "flashcard_sets", "flexible_data", "folder", "function_contract", "game_badge", "game_result", "game_room", "global_execution", "global_execution_checkpoint", "global_execution_control", "global_execution_event", "global_meter_entry", "global_origin", "global_request", "google_document", "growth_loop_event", "growth_loop_run", "growth_loop_stage_run", "guardian_link", "guest_conversion_audit", "guest_execution_log", "guest_executions", "guided_checklist_run", "heatmap_save", "hindsight_enrollment", "hindsight_finding", "hindsight_regression_case", "hindsight_replay", "hindsight_replay_step", "hindsight_review", "hr_access_audit", "hr_access_role", "hr_accommodation_request", "hr_ai_evidence", "hr_alert_routing_rule", "hr_application", "hr_approval_authority", "hr_approval_delegation", "hr_asset", "hr_asset_assignment", "hr_attendance_exception", "hr_auto_close_rule", "hr_availability", "hr_background_check", "hr_benefits_event", "hr_calculation_snapshot", "hr_candidate", "hr_candidate_conversion", "hr_candidate_message", "hr_careers_portal", "hr_checklist_item", "hr_checklist_run", "hr_checklist_template", "hr_checklist_template_item", "hr_compensation", "hr_corrective_action", "hr_course", "hr_course_version", "hr_credential", "hr_crew", "hr_deduction_code", "hr_department", "hr_derived_grant", "hr_disposition_event", "hr_earning_code", "hr_eeo_response", "hr_emergency_contact", "hr_employee", "hr_employee_private", "hr_employer_profile", "hr_employment", "hr_employment_pin", "hr_engagement", "hr_establishment", "hr_external_identity", "hr_field_policy", "hr_holiday", "hr_holiday_calendar", "hr_i9", "hr_i9_document", "hr_incident", "hr_incident_party", "hr_interview", "hr_interview_kit", "hr_job_title", "hr_jurisdiction", "hr_jurisdiction_rule", "hr_jurisdiction_rule_class", "hr_jurisdiction_rule_org_decision", "hr_jurisdiction_rule_test", "hr_kiosk_device", "hr_kiosk_session", "hr_labor_target", "hr_leave_case", "hr_leave_enrollment", "hr_leave_ledger", "hr_leave_policy", "hr_leave_request", "hr_legal_hold", "hr_legal_hold_item", "hr_location", "hr_new_hire_report", "hr_offer", "hr_opening", "hr_overtime_alert", "hr_overtime_alert_rule", "hr_overtime_preapproval", "hr_pay_group", "hr_pay_period", "hr_pay_period_employment", "hr_payroll_export", "hr_payroll_export_line", "hr_position_assignment", "hr_posting", "hr_posting_publication", "hr_provider_binding", "hr_provider_event", "hr_provisioning_result", "hr_punch", "hr_recalculation_batch", "hr_record_class", "hr_records_request", "hr_reference_check", "hr_reporting_line", "hr_requisition", "hr_restricted_note", "hr_retention_rule", "hr_role_assignment", "hr_schedule", "hr_schedule_change", "hr_schedule_guidance", "hr_schedule_template", "hr_schedule_template_shift", "hr_scorecard", "hr_separation", "hr_shift", "hr_shift_claim", "hr_staffing_requirement", "hr_survey", "hr_survey_invitation", "hr_survey_question", "hr_survey_response", "hr_tax_registration", "hr_tax_withholding", "hr_time_adjustment", "hr_training_assignment", "hr_training_attempt", "hr_transcript_entry", "hr_verification_letter_request", "hr_work_interval", "hr_workflow_binding", "hr_workflow_decision", "hr_workflow_definition", "hr_workflow_event", "hr_workflow_failure", "hr_workflow_flow_type", "hr_workflow_instance", "hr_workflow_step", "hr_workflow_step_definition", "hr_workweek", "html_extraction", "iam_access_audit", "iam_api_key", "iam_emergency_door_request", "idempotency", "industry", "industry_curator", "infra_status", "ingest_runs", "integration_connection", "integration_connection_resource", "interview_decision_interview", "interview_decision_question", "interview_document_revision", "interview_hole", "interview_question", "interview_session", "interview_turn", "invitation", "invitation_code", "invitation_request", "io_comment", "io_contract", "io_import", "io_outbox", "item", "item_mastery", "judge_verdict", "jurisdiction_policy", "keyword_classification_queue", "kg_alert", "kg_chunk_entities", "kg_chunks", "kg_clusters", "kg_edges", "kg_entities", "kg_entity_aliases", "kg_suggestion_ack", "kg_sweep_queue", "kg_sweep_run", "kg_sweep_state", "kg_value_match", "knob_override", "knob_override_audit", "knob_rung_lock", "knob_scope_kind", "knob_write_door", "league_membership", "learn_doc", "library_doc", "lifecycle_archive", "lifecycle_archive_row", "lifecycle_audit", "lifecycle_entity_plan", "lifecycle_map_build", "lifecycle_reference_map", "lifecycle_run", "lifecycle_tier_ledger", "location", "mandate", "mandate_advance_batch_row", "mandate_binding", "mandate_binding_legacy", "mandate_legacy", "mandate_observation", "mandate_reference", "mandate_scan", "mandate_treatment", "marketing_initiative", "masterwork_corpus_item", "masterwork_run", "masterwork_run_kind", "masterwork_source", "math_course_structure", "math_problem", "matrx_action_ledger", "mcp_config", "mcp_server", "mcp_user_conn", "media_capture_handoff", "media_catalog_setting", "media_library_item", "media_selection_item", "media_selection_job", "media_source_library", "meet_call_invite", "meet_meeting", "meet_note", "meet_participant", "meet_recording", "meet_transcript_segment", "membership", "membership_grant", "merge_field_provenance", "message", "message_template", "meta_excluded_schema", "meta_table_stats_history", "metadata_reserved_keys", "microservice_project", "migration_log", "mtx_media_heal_queue", "mtx_public_url_guard", "ner_shadow", "note", "note_folder", "notification", "notification_channel_preference", "notification_event_override", "notification_event_type", "notification_preference", "notification_submission", "notify_outsider_door_baseline", "oauth_handoff_claim", "opinion_clusters", "opinions", "ops_issue_class", "ops_issue_event", "ops_proof_check", "ops_proof_run", "ops_proof_scenario", "org_admin_audit", "org_change_policy", "org_context_ledger", "org_industries", "org_member_control", "org_module_config", "org_plan", "org_repair_0253_backup", "organization", "organization_preferences", "organization_visibility_version", "output_feedback", "outreach_acceptance", "page_extraction_job", "page_extraction_page_run", "page_extraction_results", "page_extraction_runs", "page_intent_queue", "page_mapping_queue", "part_config", "part_config_sub", "party", "party_contact_point", "passkey_credential", "path_drift_repair_2026_09", "pc_article", "pc_episode", "pc_show", "pc_studio_run", "pc_studio_run_asset", "pdf_consolidation_log", "pdf_redaction_audit", "pdf_redaction_key_escrow", "permission_grant", "plan_cms_fill_item", "plan_cms_fill_job", "plan_entity", "plan_node", "plan_node_artifact", "plan_node_step", "plan_profile", "platform_actor_session", "platform_actor_token", "platform_actor_token_event", "platform_continued_access", "platform_org_knob_override", "platform_outcome_event", "platform_outsider_consumer", "platform_reachability", "platform_reference_category", "platform_reference_declaration", "platform_repo", "platform_saved_view", "platform_schema", "platform_share_link", "platform_user_knob_override", "podcast_race", "policy_overlap_backup", "policy_overlap_probe", "processed_document", "processed_document_page", "product_capture_file", "product_capture_item", "product_capture_payload", "product_capture_product", "product_capture_question", "profile", "project", "prompt", "provider_account", "provider_account_credential", "provision", "provision_generate_target", "provision_grant", "provision_marker", "provision_rule_message", "provision_schema", "provision_shape_debt", "provision_spec", "provision_spec_grandfather", "provision_vocabulary", "purpose", "quiz_session", "rag_ingest_run", "rag_library_audit_log", "rate_limit_buckets", "recompute_queue", "record", "record_alias", "redaction_mapping", "research_analysis", "research_content", "research_context_bundle", "research_document", "research_intent", "research_keyword", "research_media", "research_source", "research_synthesis", "research_tag", "research_template", "research_topic", "retention_policy", "retrieval_audit", "review_queue", "route_manifest_entry", "row_version", "rulebook", "runtime_operation_stream", "runtime_operation_stream_batch", "sandbox_instance", "sch_agent_task", "sch_run", "sch_task", "sch_trigger", "schema_client_exposure", "schema_migration_ledger", "schema_migration_legacy", "schema_migration_slot_grandfather", "schema_templates", "scope", "scope_association_suggestion", "scope_dataset_instance", "scope_door_registry", "scope_item_value_suggestion", "scope_suggestion", "scope_type", "scrape_domain", "scrape_domain_settings", "scrape_failure_log", "scrape_parsed_page", "scrape_path_override", "scrape_path_pattern", "scrape_retry_queue", "seo_ai_capability", "seo_ai_visibility_citation", "seo_ai_visibility_claim", "seo_ai_visibility_panel", "seo_ai_visibility_response", "seo_ai_visibility_signal", "seo_backlink", "seo_backlink_change_event", "seo_backlink_dimension_snapshot", "seo_backlink_observation", "seo_backlink_snapshot", "seo_change_assessment", "seo_change_event", "seo_change_item", "seo_change_metric", "seo_change_set", "seo_change_theory", "seo_collection_run", "seo_competitor", "seo_competitor_observation", "seo_competitor_opportunity", "seo_coverage_mention", "seo_coverage_tracker", "seo_dimension_value_matcher", "seo_engine_schedule", "seo_geo_place", "seo_gsc_dig_rule", "seo_keyword", "seo_keyword_class_rule", "seo_keyword_edge", "seo_keyword_facet", "seo_keyword_market", "seo_keyword_market_observation", "seo_keyword_place", "seo_keyword_saved_view", "seo_keyword_topic", "seo_landscape_brief", "seo_link_gap_domain", "seo_link_gap_match", "seo_map_facet", "seo_map_facet_value", "seo_map_topic", "seo_page_measurement_health", "seo_page_performance", "seo_provider_call", "seo_provider_task", "seo_rank_observation", "seo_rank_target", "seo_raw_payload", "seo_referring_domain_profile", "seo_reputation_case", "seo_search_performance_daily", "seo_serp_mention", "seo_serp_opportunity", "seo_serp_result", "seo_serp_snapshot", "seo_site_geo_area", "seo_site_keyword_offering", "seo_site_keyword_value", "seo_site_offering_value", "seo_site_topic_value", "seo_site_value_combo", "seo_site_value_worth", "seo_site_vocabulary", "seo_source_request", "seo_starter_pack", "seo_starter_pack_item", "seo_story_angle", "seo_topic", "seo_topical_map", "seo_web_analytics_daily", "share_link", "shareable_resource_registry", "shared_canvas_item", "short_link", "shortcut_category", "skill", "skill_category", "skill_render_definition", "sms_consent", "sms_conversation", "sms_message", "sms_message_media", "sms_notification", "sms_notification_preference", "sms_phone_number", "sms_rate_limits", "sms_webhook_logs", "soft_delete_edge", "source_authority", "stage_dockets_966c18eca7", "stage_ref_kind", "stamped_write_table", "structure", "structured_list", "studio_cleaned_segments", "studio_concept_items", "studio_documents", "studio_module_segments", "studio_raw_segments", "studio_recording_chunks", "studio_recording_segments", "studio_run", "studio_session", "studio_session_settings", "study_attempt", "study_goal", "study_media", "study_plan", "study_plan_block", "study_plan_day", "study_reminder_context", "study_reminder_delivery", "study_session", "study_source_chunk", "study_streak", "study_structured_section", "superseded_policy", "surface", "system_announcement", "system_context_item", "system_error", "system_orgs", "system_personal_org_failure", "system_write_failure", "task", "task_user_state", "taxonomy_node", "template_context_items", "template_scope_types", "templates", "thread", "tool", "tool_binding", "tool_bundle", "tool_call", "tool_definition_version", "tool_executor", "tool_surface_defaults", "tool_test_sample", "tool_ui", "tool_ui_incident", "tool_ui_version", "topic_placement_queue", "transcript", "trigger_event", "udt_dataset_fields", "udt_dataset_row_versions", "udt_dataset_rows", "udt_dataset_template", "udt_dataset_template_fields", "udt_document", "udt_document_snapshot", "udt_structured_list_items", "udt_workbook_snapshot", "ui_client", "ui_surface_agent_pref", "ui_surface_agent_role", "ui_surface_client_tool", "ui_surface_config", "ui_surface_value", "ui_surface_write_target", "unsubscribe_token", "uploads_inflight", "user_achievement", "user_active_context", "user_analysis_preference", "user_bookmark", "user_email_preference", "user_entity_state", "user_feedback", "user_follows", "user_form_profile", "user_markdown_sample", "user_memory", "user_preference", "user_profile", "user_secret", "user_secret_audit", "user_secret_grant", "user_stat", "user_storage_usage", "user_surface_state", "visibility_cache", "visibility_epoch", "voice", "war_room", "wbx_capture", "wbx_demo", "wbx_guidance", "wbx_highlight", "wbx_pattern", "wbx_recipe", "wbx_screenshot", "wbx_seo_audit", "wc_claim", "wc_impairment_definition", "wc_injury", "wc_report", "web_analysis_item", "web_brand", "web_brand_asset", "web_brand_offering", "web_business_fact", "web_business_location", "web_channel_analytics_daily", "web_crawl_event", "web_crawl_preset", "web_crawl_schedule", "web_crawl_session", "web_crawl_url", "web_discovered_item", "web_finding", "web_gsc_page_stat", "web_link_edge", "web_listing_publisher", "web_location_listing", "web_offering_template", "web_page", "web_page_content", "web_page_evidence", "web_page_sitemap", "web_property", "web_provider", "web_result", "web_screenshot", "web_site", "web_site_endpoint_rule", "web_site_item_config", "web_site_offering", "web_sitemap", "web_snapshot", "web_tag_manager_snapshot", "web_youtube_video", "webhook_deliveries", "webhook_dispatch_state", "webhooks", "wf_node_data_slot", "work_claim", "work_item", "workbook", "worker_heartbeat", "workflow", "workflow_card", "workflow_checkpoint", "workflow_comparison", "workflow_definition_version", "workflow_idempotency", "workflow_job", "workflow_node_events", "workflow_node_outcome", "workflow_plan", "workflow_plan_event", "workflow_plan_sample", "workflow_recovery_audit", "workflow_run", "workflow_run_log", "workflow_runtime_surface", "workflow_template", "workflow_trigger", "workflow_trigger_fire", "workflow_work_item", "working_document", "write_guard_key", "youtube_quota_day", "youtube_search", "youtube_video"];
|
|
3074
|
+
type StoreRefusalCode = (typeof STORE_REFUSAL_CODES)[number]["code"];
|
|
3075
|
+
type StoreDoorName = (typeof STORE_DOORS)[number]["name"];
|
|
3076
|
+
type EntityToken = (typeof ENTITY_TOKENS)[number];
|
|
3077
|
+
type KernelTableName = (typeof KERNEL_TABLES)[number]["name"];
|
|
3078
|
+
|
|
3079
|
+
/**
|
|
3080
|
+
* VAL-8. Who wrote a value. `user`, `agent`, `system` — enforced by every write
|
|
3081
|
+
* door, and the three retired words (`human`, `ai`, `code`) are translated by
|
|
3082
|
+
* the store's own `custom.actor_word`, never by a caller.
|
|
3083
|
+
*/
|
|
3084
|
+
type Actor = (typeof ACTOR_VOCABULARY)[number];
|
|
3085
|
+
/** The words the store still accepts and rewrites, mapped to what they become. */
|
|
3086
|
+
type RetiredActorWord = keyof typeof RETIRED_ACTOR_WORDS;
|
|
3087
|
+
/**
|
|
3088
|
+
* VAL-2. Why a value is missing. A value is never blank for an unexplained
|
|
3089
|
+
* reason: it either holds something or it says one of these four words.
|
|
3090
|
+
*/
|
|
3091
|
+
type AbsenceReason = (typeof ABSENCE_REASONS)[number];
|
|
3092
|
+
/** The closed key set of one value envelope (VAL-1 … VAL-4). */
|
|
3093
|
+
type ValueEnvelopeKey = (typeof VALUE_ENVELOPE_KEYS)[number];
|
|
3094
|
+
/** The closed key set of one ranked alternate (VAL-3). */
|
|
3095
|
+
type ValueAlternateKey = (typeof VALUE_ALTERNATE_KEYS)[number];
|
|
3096
|
+
/**
|
|
3097
|
+
* REC-4. `heavy` is indexed storage with Rules on write; `light` is
|
|
3098
|
+
* whole-document storage with Rules on read. Per Table, one store.
|
|
3099
|
+
*/
|
|
3100
|
+
type StorageMode = (typeof STORAGE_MODES)[number];
|
|
3101
|
+
/** REC-15. One Rule object, four uses. */
|
|
3102
|
+
type RuleUse = (typeof RULE_USES)[number];
|
|
3103
|
+
/**
|
|
3104
|
+
* VAL-5 / VAL-6. The words that may NOT appear inside a value envelope:
|
|
3105
|
+
* visibility and access belong to a Field and to a Record, never to a value.
|
|
3106
|
+
* The store refuses each of them by name and so does this package's mirror.
|
|
3107
|
+
*/
|
|
3108
|
+
type PerValueAccessWord = (typeof PER_VALUE_ACCESS_WORDS)[number];
|
|
3109
|
+
/** FLD-11. The parity floor: the field type a person picks in the UI. */
|
|
3110
|
+
type ParityFieldType = (typeof PARITY_FIELD_TYPES)[number]["parity_type"];
|
|
3111
|
+
/** FLD-1. The five behaviours a Field can have. One, exactly, and closed. */
|
|
3112
|
+
type FieldBehavior = (typeof PARITY_FIELD_TYPES)[number]["behavior"];
|
|
3113
|
+
/** The node kinds `custom.rule_eval` evaluates. */
|
|
3114
|
+
type RuleNodeKind = (typeof RULE_NODE_KINDS)[number]["node"];
|
|
3115
|
+
/**
|
|
3116
|
+
* REC-32. The seven table types, closed. The parenthesised names are the
|
|
3117
|
+
* retired ones the doctrine records; never coin an eighth.
|
|
3118
|
+
*/
|
|
3119
|
+
declare const TABLE_TYPES: readonly ["entity", "detail", "reference", "ledger", "restricted", "system", "deprecated"];
|
|
3120
|
+
type TableType = (typeof TABLE_TYPES)[number];
|
|
3121
|
+
/** REC-33. The two origins. A table we ship in schema `custom` is `standard`. */
|
|
3122
|
+
declare const TABLE_ORIGINS: readonly ["standard", "custom"];
|
|
3123
|
+
type TableOrigin = (typeof TABLE_ORIGINS)[number];
|
|
3124
|
+
/** REL-1. Ownership is one fact, stored once, read from the field's side. */
|
|
3125
|
+
declare const RELATION_FLAVORS: readonly ["owned", "referenced"];
|
|
3126
|
+
type RelationFlavor = (typeof RELATION_FLAVORS)[number];
|
|
3127
|
+
/** REL-2. What happens to the far side, separate from flavour. */
|
|
3128
|
+
declare const ON_DELETE: readonly ["cascade", "set_null", "restrict"];
|
|
3129
|
+
type OnDelete = (typeof ON_DELETE)[number];
|
|
3130
|
+
/** REL-3. A snapshot is a frozen copy in the relation's payload, never a pointer. */
|
|
3131
|
+
declare const RELATION_BINDINGS: readonly ["live", "snapshot"];
|
|
3132
|
+
type RelationBinding = (typeof RELATION_BINDINGS)[number];
|
|
3133
|
+
/** REL-7. */
|
|
3134
|
+
declare const RELATION_CARDINALITIES: readonly ["one", "many"];
|
|
3135
|
+
type RelationCardinality = (typeof RELATION_CARDINALITIES)[number];
|
|
3136
|
+
/** FLD-7. Where a Field's values come from. */
|
|
3137
|
+
declare const FIELD_SOURCES: readonly ["manual", "formula", "agent", "synced"];
|
|
3138
|
+
type FieldSource = (typeof FIELD_SOURCES)[number];
|
|
3139
|
+
/** FLD-9. A Formula declares whether it computes on read or on write. */
|
|
3140
|
+
declare const COMPUTE_ON: readonly ["read", "write"];
|
|
3141
|
+
type ComputeOn = (typeof COMPUTE_ON)[number];
|
|
3142
|
+
/**
|
|
3143
|
+
* AGT-7 / FLD-12. A Field's sensitivity sets a ceiling a merge field can never
|
|
3144
|
+
* widen — and these are THE STORE'S four words, checked against its own guard.
|
|
3145
|
+
*
|
|
3146
|
+
* This list used to read `standard · sensitive · secret`, which the store has
|
|
3147
|
+
* never accepted: writing a Field with `sensitivity: "standard"` is refused
|
|
3148
|
+
* with "the field <name> has to say how sensitive its values are, and it says
|
|
3149
|
+
* standard". The knob `custom/field_sensitivity_levels` keys off these same
|
|
3150
|
+
* four words to decide which level may read and edit each one, so a package
|
|
3151
|
+
* carrying three different words could never have agreed with it. Corrected
|
|
3152
|
+
* against the live store, 2026-09-18.
|
|
3153
|
+
*/
|
|
3154
|
+
declare const FIELD_SENSITIVITIES: readonly ["public", "internal", "confidential", "restricted"];
|
|
3155
|
+
type FieldSensitivity = (typeof FIELD_SENSITIVITIES)[number];
|
|
3156
|
+
/** DYN-17 / §D. Which tier a MERGE FIELD's value is delivered in. */
|
|
3157
|
+
declare const DELIVERIES: readonly ["inline", "on_demand", "auto"];
|
|
3158
|
+
type Delivery = (typeof DELIVERIES)[number];
|
|
3159
|
+
/**
|
|
3160
|
+
* FLD-12. WHETHER AN AGENT MAY SEE A FIELD'S VALUES, and these are the STORE'S
|
|
3161
|
+
* four words — not the merge field's delivery tiers.
|
|
3162
|
+
*
|
|
3163
|
+
* `Field.context_policy` used to be typed as `Delivery` here, which is a
|
|
3164
|
+
* different question with a different vocabulary: writing a Field with
|
|
3165
|
+
* `context_policy: "inline"` is refused with "the field <name> has to say
|
|
3166
|
+
* whether an agent may see its values, and it says inline". Delivery is about
|
|
3167
|
+
* HOW MUCH of a value a merge field carries into a turn; this is about WHETHER
|
|
3168
|
+
* the value reaches an agent at all, and conflating them let a screen offer a
|
|
3169
|
+
* word the store has never accepted. Corrected against the live store,
|
|
3170
|
+
* 2026-09-18.
|
|
3171
|
+
*/
|
|
3172
|
+
declare const CONTEXT_POLICIES: readonly ["include", "summarize", "exclude", "on_request"];
|
|
3173
|
+
type ContextPolicy = (typeof CONTEXT_POLICIES)[number];
|
|
3174
|
+
/** DYN-3. The eight sources, closed. Relationships and rules are not sources. */
|
|
3175
|
+
declare const MERGE_FIELD_SOURCES: readonly ["literal", "record", "state", "actor", "platform", "user_input", "tool", "derived"];
|
|
3176
|
+
type MergeFieldSource = (typeof MERGE_FIELD_SOURCES)[number];
|
|
3177
|
+
/** DYN-4. What a merge field resolves INTO. The consumer never learns which. */
|
|
3178
|
+
declare const MERGE_FIELD_SEMANTIC_TYPES: readonly ["value", "reference", "resolver", "computed", "collection"];
|
|
3179
|
+
type MergeFieldSemanticType = (typeof MERGE_FIELD_SEMANTIC_TYPES)[number];
|
|
3180
|
+
/** DYNAMIC-VALUES §A. Any number of these; never fused into the source. */
|
|
3181
|
+
declare const MERGE_FIELD_MODIFIERS: readonly ["scoped", "temporal", "collection", "live", "fallback", "formatted", "required"];
|
|
3182
|
+
type MergeFieldModifier = (typeof MERGE_FIELD_MODIFIERS)[number];
|
|
3183
|
+
/** DYN-12. The five override policies. Exactly one, and it outranks the ladder. */
|
|
3184
|
+
declare const OVERRIDE_POLICIES: readonly ["must_supply", "shown_overridable", "shown_locked", "server_fixed", "derived"];
|
|
3185
|
+
type OverridePolicy = (typeof OVERRIDE_POLICIES)[number];
|
|
3186
|
+
/** DYNAMIC-VALUES §C. What a resolved merge field's freshness was. */
|
|
3187
|
+
declare const FRESHNESS: readonly ["live", "cached", "snapshot"];
|
|
3188
|
+
type Freshness = (typeof FRESHNESS)[number];
|
|
3189
|
+
/** REC-1. How a Table shows itself. */
|
|
3190
|
+
declare const TABLE_DISPLAYS: readonly ["list", "grid", "board", "calendar", "timeline"];
|
|
3191
|
+
type TableDisplay = (typeof TABLE_DISPLAYS)[number];
|
|
3192
|
+
|
|
3193
|
+
/** A `uuid` as the store writes it. */
|
|
3194
|
+
type Uuid = string;
|
|
3195
|
+
/** An ISO-8601 timestamp, as jsonb carries it. */
|
|
3196
|
+
type Timestamp = string;
|
|
3197
|
+
/**
|
|
3198
|
+
* VAL-1. WHERE a value came from, addressed by a pointer the STORE interns —
|
|
3199
|
+
* `s1`, `s2`, `s3`. A writer supplies the source itself and the store interns
|
|
3200
|
+
* it; a writer that invents a pointer is refused by name. Interned once per
|
|
3201
|
+
* save: two pointers holding the same description is the defect the word
|
|
3202
|
+
* "interned" exists to prevent, and the store refuses that too.
|
|
3203
|
+
*/
|
|
3204
|
+
type ProvenancePointer = string;
|
|
3205
|
+
/** The description a pointer resolves to. Free-shaped by design: the store checks that it is an object, and the organization decides what it says. */
|
|
3206
|
+
type ValueSource = Record<string, unknown>;
|
|
3207
|
+
/**
|
|
3208
|
+
* VAL-3 / VAL-4. Another candidate for the same value, with the source it came
|
|
3209
|
+
* from and the RANK — the order an organization trusts its sources in, never a
|
|
3210
|
+
* score or a confidence a machine invented. Ranks are whole, start at 1, and
|
|
3211
|
+
* two alternates never claim the same one. They live INSIDE this record's
|
|
3212
|
+
* document; there is never a row per value.
|
|
3213
|
+
*/
|
|
3214
|
+
interface ValueAlternate {
|
|
3215
|
+
value: unknown;
|
|
3216
|
+
/** A pointer this record's `_sources` block resolves. */
|
|
3217
|
+
src?: ProvenancePointer | null;
|
|
3218
|
+
rank: number;
|
|
3219
|
+
}
|
|
3220
|
+
/**
|
|
3221
|
+
* The value envelope. One per field key, in the record's `_values` block, with
|
|
3222
|
+
* the value itself sitting at the top level under the same key.
|
|
3223
|
+
*
|
|
3224
|
+
* The key set is CLOSED (`custom.value_envelope_keys()`). In particular it can
|
|
3225
|
+
* never carry visibility, access, share, acl, permission, permissions or
|
|
3226
|
+
* secret: VAL-5 puts those on the Field and on the Record, and VAL-6 says a
|
|
3227
|
+
* value that must be secret goes in a contained record with its own visibility.
|
|
3228
|
+
* The store refuses each of those words by name.
|
|
3229
|
+
*/
|
|
3230
|
+
interface ValueEnvelope {
|
|
3231
|
+
/** The per-value version, 1 or more. THE STORE WRITES IT — no caller sets it. */
|
|
3232
|
+
ver: number;
|
|
3233
|
+
/** A provenance pointer this record's `_sources` block resolves. */
|
|
3234
|
+
src?: ProvenancePointer | null;
|
|
3235
|
+
/** VAL-8. Who wrote it. */
|
|
3236
|
+
actor: Actor;
|
|
3237
|
+
/** Only an agent acts on behalf of a person; a person's id. */
|
|
3238
|
+
on_behalf_of?: Uuid | null;
|
|
3239
|
+
at?: Timestamp | null;
|
|
3240
|
+
/** VAL-2. Why it is missing. A value either holds something or says this. */
|
|
3241
|
+
absent?: AbsenceReason | null;
|
|
3242
|
+
alternates?: ValueAlternate[] | null;
|
|
3243
|
+
/**
|
|
3244
|
+
* FLD-2's `dated` modifier: the WORLD clock for this value — when it was true
|
|
3245
|
+
* of the world, which is a different question from when it was written. Added
|
|
3246
|
+
* to the store's closed key set after this package's first generation, and
|
|
3247
|
+
* caught by `pnpm check:store-registry` rather than by anybody noticing.
|
|
3248
|
+
*/
|
|
3249
|
+
dated?: string | null;
|
|
3250
|
+
}
|
|
3251
|
+
/**
|
|
3252
|
+
* The one jsonb document. Field keys sit at the top level; the store's own
|
|
3253
|
+
* blocks are underscore-prefixed and are never a writer's value.
|
|
3254
|
+
*/
|
|
3255
|
+
interface RecordDocument {
|
|
3256
|
+
/** The store's interned provenance table: pointer -> source. */
|
|
3257
|
+
_sources?: Record<ProvenancePointer, ValueSource>;
|
|
3258
|
+
/** The envelopes, keyed by field key. */
|
|
3259
|
+
_values?: Record<string, ValueEnvelope>;
|
|
3260
|
+
/** FLD-10. Which type of record this is, selecting the Fields and Rules that apply. */
|
|
3261
|
+
_type?: string;
|
|
3262
|
+
/** REC-7. Zero or one parent. Never two. */
|
|
3263
|
+
_parent?: Uuid | null;
|
|
3264
|
+
[fieldKey: string]: unknown;
|
|
3265
|
+
}
|
|
3266
|
+
/** `custom.record` as the store holds it — the row around the document. */
|
|
3267
|
+
interface StoredRecord {
|
|
3268
|
+
id: Uuid;
|
|
3269
|
+
organization_id: Uuid;
|
|
3270
|
+
table_id: Uuid | null;
|
|
3271
|
+
/** `record` for ordinary rows, `kernel` for the nine kernel Tables (REC-27). */
|
|
3272
|
+
data_class: string;
|
|
3273
|
+
data: RecordDocument;
|
|
3274
|
+
created_by: Uuid | null;
|
|
3275
|
+
updated_by: Uuid | null;
|
|
3276
|
+
created_at: Timestamp;
|
|
3277
|
+
updated_at: Timestamp;
|
|
3278
|
+
/** REC-23: soft, and reversible within `retention`. */
|
|
3279
|
+
deleted_at: Timestamp | null;
|
|
3280
|
+
/** The RECORD clock. `recordUpdate` writes against it (optimistic concurrency). */
|
|
3281
|
+
version: number;
|
|
3282
|
+
metadata: Record<string, unknown>;
|
|
3283
|
+
custom_fields: Record<string, unknown>;
|
|
3284
|
+
visibility: string;
|
|
3285
|
+
}
|
|
3286
|
+
/**
|
|
3287
|
+
* One value read back with everything the store knows about it — the shape
|
|
3288
|
+
* `custom.record_values_versioned` and `custom.value_read` answer in. This is
|
|
3289
|
+
* what a screen needs to explain a value (DYN-24) without a second query.
|
|
3290
|
+
*/
|
|
3291
|
+
interface ReadValue {
|
|
3292
|
+
field_key: string;
|
|
3293
|
+
field_id: Uuid | null;
|
|
3294
|
+
value: unknown;
|
|
3295
|
+
value_version: number | null;
|
|
3296
|
+
source: ValueSource | null;
|
|
3297
|
+
absent_reason: AbsenceReason | null;
|
|
3298
|
+
actor: Actor | null;
|
|
3299
|
+
on_behalf_of: Uuid | null;
|
|
3300
|
+
written_at: Timestamp | null;
|
|
3301
|
+
alternates: ValueAlternate[] | null;
|
|
3302
|
+
}
|
|
3303
|
+
/**
|
|
3304
|
+
* Why one field of a record came back empty — `custom.hidden_field_notice`, as
|
|
3305
|
+
* the read door attaches it under `_hidden`. It is the store's own sentence, so
|
|
3306
|
+
* a screen says "you need X to see this" instead of drawing a blank cell.
|
|
3307
|
+
*/
|
|
3308
|
+
interface HiddenFieldNotice {
|
|
3309
|
+
/** The field's sensitivity word. */
|
|
3310
|
+
reason: string | null;
|
|
3311
|
+
/** The level this person would need. */
|
|
3312
|
+
needs: string | null;
|
|
3313
|
+
/** The other way in — "a share of this one field with you". */
|
|
3314
|
+
or: string | null;
|
|
3315
|
+
}
|
|
3316
|
+
/**
|
|
3317
|
+
* One row as the read door `custom.read_records` answers it: the id, the
|
|
3318
|
+
* document the store decided this reader may see, and the reader's level on the
|
|
3319
|
+
* Table. A field this reader may not see is PRESENT and null, with its reason
|
|
3320
|
+
* in `hidden` — the masking is the store's, never this client's.
|
|
3321
|
+
*/
|
|
3322
|
+
interface ReadRow {
|
|
3323
|
+
id: Uuid;
|
|
3324
|
+
document: RecordDocument;
|
|
3325
|
+
/** `public.permission_level` — the caller's level on the Table. */
|
|
3326
|
+
level: string;
|
|
3327
|
+
hidden: Record<string, HiddenFieldNotice>;
|
|
3328
|
+
}
|
|
3329
|
+
/**
|
|
3330
|
+
* One revision of one record, as `custom.io_revisions` answers it, newest
|
|
3331
|
+
* first. `version` is the record's own version at that point — the number a
|
|
3332
|
+
* screen hands back as `expectedVersion` so the store, not the screen, decides
|
|
3333
|
+
* whether someone else got there first.
|
|
3334
|
+
*/
|
|
3335
|
+
interface RecordRevision {
|
|
3336
|
+
version: number;
|
|
3337
|
+
changed_at: string;
|
|
3338
|
+
changed_by: Uuid | null;
|
|
3339
|
+
summary: string | null;
|
|
3340
|
+
}
|
|
3341
|
+
/** A whole record as `recordRead` answers it, through `custom.read_record`. */
|
|
3342
|
+
interface RecordRead {
|
|
3343
|
+
record_id: Uuid;
|
|
3344
|
+
/** The masked document. A hidden field is present and null. */
|
|
3345
|
+
document: RecordDocument;
|
|
3346
|
+
/** Why each masked field is masked, in the store's words. */
|
|
3347
|
+
hidden: Record<string, HiddenFieldNotice>;
|
|
3348
|
+
/**
|
|
3349
|
+
* FLD-9 / REC-19. Which Rule version produced each computed value. Present
|
|
3350
|
+
* only where the store has computed provenance for this record.
|
|
3351
|
+
*/
|
|
3352
|
+
computed: Array<{
|
|
3353
|
+
field_key: string;
|
|
3354
|
+
field_id: Uuid;
|
|
3355
|
+
value: unknown;
|
|
3356
|
+
rule_id: Uuid;
|
|
3357
|
+
rule_version: number;
|
|
3358
|
+
computed_at: Timestamp;
|
|
3359
|
+
}>;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
/** FLD-3. A constraint attached to a Field. A Rule, never a behaviour. */
|
|
3363
|
+
interface FieldRule {
|
|
3364
|
+
kind: "min" | "max" | "length" | "pattern" | "equals_field" | "differs_from_field";
|
|
3365
|
+
value: string | number;
|
|
3366
|
+
/** FLD-10. Empty means "wherever the Field applies". */
|
|
3367
|
+
applies_to_types?: string[];
|
|
3368
|
+
}
|
|
3369
|
+
/**
|
|
3370
|
+
* `custom.field` — the ONE definitions table (FLD-8), organization-scoped, so
|
|
3371
|
+
* two organizations add different fields to the same standard table.
|
|
3372
|
+
*/
|
|
3373
|
+
interface Field {
|
|
3374
|
+
id: Uuid;
|
|
3375
|
+
organization_id: Uuid;
|
|
3376
|
+
/** Set when this Field extends a standard entity rather than a custom Table. */
|
|
3377
|
+
entity_definition_id: Uuid | null;
|
|
3378
|
+
/** The token of the Table this Field belongs to. */
|
|
3379
|
+
table_token: string | null;
|
|
3380
|
+
key: string;
|
|
3381
|
+
label: string;
|
|
3382
|
+
name: string | null;
|
|
3383
|
+
/** FLD-1. Exactly one of five. */
|
|
3384
|
+
type: FieldBehavior;
|
|
3385
|
+
/** FLD-2. The shape of the value, never a second behaviour. */
|
|
3386
|
+
multi: boolean;
|
|
3387
|
+
/** FLD-2. The values carry their own dates — the world clock, not History. */
|
|
3388
|
+
dated: boolean;
|
|
3389
|
+
/** FLD-3. Any number of attached validation Rules. */
|
|
3390
|
+
rules: FieldRule[];
|
|
3391
|
+
config: Record<string, unknown>;
|
|
3392
|
+
required: boolean;
|
|
3393
|
+
default: unknown;
|
|
3394
|
+
sort: number | null;
|
|
3395
|
+
/** The Table this relation points at. */
|
|
3396
|
+
relation_target: Uuid | null;
|
|
3397
|
+
relation_max: number | null;
|
|
3398
|
+
on_target_delete: OnDelete | null;
|
|
3399
|
+
/** REL-9. The reverse is visible from both ends and is NOT a second Field. */
|
|
3400
|
+
inverse_key: string | null;
|
|
3401
|
+
source: FieldSource;
|
|
3402
|
+
source_config: Record<string, unknown>;
|
|
3403
|
+
/** FLD-9. A Formula declares whether it computes on read or on write. */
|
|
3404
|
+
compute_on: ComputeOn | null;
|
|
3405
|
+
/** The unit, on the Field, because it changes the meaning. Never presentation. */
|
|
3406
|
+
unit: string | null;
|
|
3407
|
+
format: string | null;
|
|
3408
|
+
/** AGT-7. A ceiling a merge field's delivery can never widen. */
|
|
3409
|
+
sensitivity: FieldSensitivity | null;
|
|
3410
|
+
/** FLD-12. Whether an agent may see this Field's values: include · summarize · exclude · on_request. */
|
|
3411
|
+
context_policy: ContextPolicy | null;
|
|
3412
|
+
/** AGT-6. How often a `source = agent` Field is refilled. */
|
|
3413
|
+
review_interval_days: number | null;
|
|
3414
|
+
/**
|
|
3415
|
+
* §D says this is on the wrong object and moves to the merge field. It is
|
|
3416
|
+
* still carried here because the live column is, and the client reads what
|
|
3417
|
+
* the store holds — never what the plan wishes it held.
|
|
3418
|
+
*/
|
|
3419
|
+
depends_on: Uuid[] | null;
|
|
3420
|
+
/** FLD-10. Which record types this Field applies to. Empty means all of them. */
|
|
3421
|
+
applies_to_types: string[];
|
|
3422
|
+
/** FLD-5 / FLD-6. A list field's choices are the records of THIS Table. */
|
|
3423
|
+
options_table_id: Uuid | null;
|
|
3424
|
+
created_by: Uuid | null;
|
|
3425
|
+
updated_by: Uuid | null;
|
|
3426
|
+
created_at: Timestamp;
|
|
3427
|
+
updated_at: Timestamp;
|
|
3428
|
+
version: number;
|
|
3429
|
+
metadata: Record<string, unknown>;
|
|
3430
|
+
visibility: string;
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* FLD-11. What the person picked, and what the store says it is made of. The
|
|
3434
|
+
* list itself is generated from `custom.parity_field_types()`; this is its type.
|
|
3435
|
+
*/
|
|
3436
|
+
interface ParityFieldTypeDescriptor {
|
|
3437
|
+
parity_type: ParityFieldType;
|
|
3438
|
+
behavior: FieldBehavior;
|
|
3439
|
+
made_of: string;
|
|
3440
|
+
}
|
|
3441
|
+
/** AGT-8 / AGT-4. What an agent (or a person) proposes when a Field is missing. */
|
|
3442
|
+
interface FieldProposal {
|
|
3443
|
+
table_id: Uuid;
|
|
3444
|
+
key: string;
|
|
3445
|
+
label: string;
|
|
3446
|
+
type: FieldBehavior;
|
|
3447
|
+
multi?: boolean;
|
|
3448
|
+
required?: boolean;
|
|
3449
|
+
config?: Record<string, unknown>;
|
|
3450
|
+
relation_target?: Uuid;
|
|
3451
|
+
/** Why this Field should exist — what an approver reads before approving. */
|
|
3452
|
+
because: string;
|
|
3453
|
+
}
|
|
3454
|
+
/** AGT-8. What a table proposal looks like, same shape of question. */
|
|
3455
|
+
interface TableProposal {
|
|
3456
|
+
name: string;
|
|
3457
|
+
slug: string;
|
|
3458
|
+
title_field: string;
|
|
3459
|
+
fields: Array<Omit<FieldProposal, "table_id" | "because">>;
|
|
3460
|
+
because: string;
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* WHAT A PERSON SAYS WHEN THEY ADD A COLUMN — the argument of
|
|
3464
|
+
* `custom.field_declare`, and deliberately NOT a `Field`.
|
|
3465
|
+
*
|
|
3466
|
+
* A `Field` is what the store STORES: a behaviour from a closed set of five,
|
|
3467
|
+
* modifiers beside it, a format, a unit, a relation target, a relation maximum,
|
|
3468
|
+
* an on-delete word, a compute_on, and the attached Rules that make a format
|
|
3469
|
+
* enforceable. A person adding a column knows none of that. They know they want
|
|
3470
|
+
* a date, or a person, or a list with these three choices in it.
|
|
3471
|
+
*
|
|
3472
|
+
* Every client that tried to bridge that gap itself got it wrong — the field
|
|
3473
|
+
* panel picked "Person" and the store read a Formula — so the bridge is the
|
|
3474
|
+
* STORE's, once, and this is the shape it takes.
|
|
3475
|
+
*/
|
|
3476
|
+
interface NewFieldDeclaration {
|
|
3477
|
+
/** What a person reads on the column. The only thing that is always required. */
|
|
3478
|
+
label: string;
|
|
3479
|
+
/** One of the thirteen. Absent means one of the three plain behaviours below. */
|
|
3480
|
+
parity_type?: ParityFieldType;
|
|
3481
|
+
/** Plain text, a long text or a plain number — the three that carry no parity type. */
|
|
3482
|
+
plain?: "text" | "long_text" | "number";
|
|
3483
|
+
/**
|
|
3484
|
+
* THE ONE WORD EVERY OTHER CALLER REACHES FOR. An agent, a script, an import
|
|
3485
|
+
* and this package's own table-declaring path all say `type`, and until
|
|
3486
|
+
* 2026-09-20 `custom._field_document_for` threw it away — a `number` became a
|
|
3487
|
+
* text column in silence. It now resolves all three vocabularies, so this is
|
|
3488
|
+
* named here rather than left as a shape only the store knows about.
|
|
3489
|
+
*/
|
|
3490
|
+
type?: FieldTypeWord;
|
|
3491
|
+
/** Derived from the label when absent, which is why the panel never asks for it. */
|
|
3492
|
+
key?: string;
|
|
3493
|
+
required?: boolean;
|
|
3494
|
+
multi?: boolean;
|
|
3495
|
+
dated?: boolean;
|
|
3496
|
+
sort?: number;
|
|
3497
|
+
sensitivity?: FieldSensitivity;
|
|
3498
|
+
context_policy?: ContextPolicy;
|
|
3499
|
+
rules?: FieldRule[];
|
|
3500
|
+
/** A choice list's choices, as words. The store keeps them as a Table (FLD-5 / FLD-6). */
|
|
3501
|
+
options?: string[];
|
|
3502
|
+
/** …or the Table they already come from, when a person picked an existing list. */
|
|
3503
|
+
options_table_id?: Uuid;
|
|
3504
|
+
/** The currency symbol or code a currency field's numbers are in (FLD-N-1). */
|
|
3505
|
+
unit?: string;
|
|
3506
|
+
/** A date field: a day, or a day and a time. */
|
|
3507
|
+
kind?: "date" | "datetime";
|
|
3508
|
+
/** A lookup or a rollup: the key of the relation Field on THIS table it travels along. */
|
|
3509
|
+
via?: string;
|
|
3510
|
+
/** A lookup: the key of the value it reads on the far side. */
|
|
3511
|
+
pick?: string;
|
|
3512
|
+
/** A rollup: what it works out, and of which far-side field (`count` needs none). */
|
|
3513
|
+
agg?: "sum" | "count" | "min" | "max" | "avg";
|
|
3514
|
+
of?: string;
|
|
3515
|
+
/** A formula: the expression, in the same shape a Rule uses (REC-15). */
|
|
3516
|
+
expr?: Record<string, unknown>;
|
|
3517
|
+
compute_on?: ComputeOn;
|
|
3518
|
+
relation_max?: number;
|
|
3519
|
+
/**
|
|
3520
|
+
* REL / FLD-11. The Table this column points at, when it is neither a Person
|
|
3521
|
+
* (`member`) nor a File (`attachment`). The store has taken it since
|
|
3522
|
+
* 2026-09-20 and no client type named it, so a person with an Invoice table
|
|
3523
|
+
* and a Line table could not declare the link through this package at all.
|
|
3524
|
+
*/
|
|
3525
|
+
relation_target?: Uuid;
|
|
3526
|
+
/** REL-2. What happens to this record when the thing it points at goes. */
|
|
3527
|
+
on_target_delete?: OnDelete;
|
|
3528
|
+
/**
|
|
3529
|
+
* Presentation and behaviour settings the store carries verbatim — a long
|
|
3530
|
+
* text's `multiline`, a list's existing options table. The door has always
|
|
3531
|
+
* read it (`p_spec -> 'config'`) and this interface never offered it, so a
|
|
3532
|
+
* package-owned table could not declare its own multi-line column.
|
|
3533
|
+
*/
|
|
3534
|
+
config?: Record<string, unknown>;
|
|
3535
|
+
/** A text column that holds a signature (`custom.doc_sign` accepts no other). */
|
|
3536
|
+
format?: string;
|
|
3537
|
+
}
|
|
3538
|
+
/**
|
|
3539
|
+
* Every word `custom._field_document_for` resolves for `type`: one of the
|
|
3540
|
+
* thirteen, one of the five behaviours, or one of the plain synonyms a person
|
|
3541
|
+
* or an agent actually writes.
|
|
3542
|
+
*/
|
|
3543
|
+
type FieldTypeWord = ParityFieldType | FieldBehavior | "number" | "integer" | "decimal" | "float" | "long_text" | "string";
|
|
3544
|
+
/**
|
|
3545
|
+
* What `custom.field_update` accepts.
|
|
3546
|
+
*
|
|
3547
|
+
* THE SETTINGS **AND** THE BEHAVIOUR. The door has had a behaviour arm since
|
|
3548
|
+
* T12 — say `parity_type`, `plain` or `type` and every value of the column is
|
|
3549
|
+
* converted (or kept in `_retired` with its reason) by
|
|
3550
|
+
* `custom._field_type_converts_values`. This interface named only the settings,
|
|
3551
|
+
* so the one client that needed to move a field back onto the behaviour it is
|
|
3552
|
+
* written against had no door and reached for `custom.record_update` instead,
|
|
3553
|
+
* which writes the document under the guards rather than through them.
|
|
3554
|
+
*/
|
|
3555
|
+
interface FieldPatch {
|
|
3556
|
+
label?: string;
|
|
3557
|
+
required?: boolean;
|
|
3558
|
+
dated?: boolean;
|
|
3559
|
+
sort?: number;
|
|
3560
|
+
sensitivity?: FieldSensitivity;
|
|
3561
|
+
context_policy?: ContextPolicy;
|
|
3562
|
+
unit?: string;
|
|
3563
|
+
rules?: FieldRule[];
|
|
3564
|
+
/** The choices of a choice list, rewritten. A choice still wanted keeps its id. */
|
|
3565
|
+
options?: string[];
|
|
3566
|
+
/** One of the thirteen — a change of what this column HOLDS, not of a setting. */
|
|
3567
|
+
parity_type?: ParityFieldType;
|
|
3568
|
+
/** …or one of the three plain behaviours, …*/
|
|
3569
|
+
plain?: "text" | "long_text" | "number";
|
|
3570
|
+
/** …or the one word every other caller reaches for (see `NewFieldDeclaration`). */
|
|
3571
|
+
type?: FieldTypeWord;
|
|
3572
|
+
/**
|
|
3573
|
+
* FLD-2. The shape of the value — one, or several.
|
|
3574
|
+
*
|
|
3575
|
+
* This comment used to say that a patch moving `multi` ALONE changed nothing
|
|
3576
|
+
* and that the behaviour word had to be sent with it. That was true, and it
|
|
3577
|
+
* was a description of a silent failure rather than a contract: the door
|
|
3578
|
+
* answered "saved" and the column still held one. `custom.field_update` has
|
|
3579
|
+
* had a real settings arm for it since 2026-09-20 (matrx-frontend
|
|
3580
|
+
* `migrations/campaign/fix7b_field_multi_arm.sql`), which also moves a
|
|
3581
|
+
* relation's `relation_max` beside it — `custom.validate_values` counts links
|
|
3582
|
+
* against that number, so moving `multi` without it would tick a box and
|
|
3583
|
+
* still refuse the second record.
|
|
3584
|
+
*
|
|
3585
|
+
* A CHOICE LIST IS THE ONE EXCEPTION, and it is refused by name rather than
|
|
3586
|
+
* ignored: for `select` / `multi_select`, "one answer or several" IS the
|
|
3587
|
+
* parity type, so send the type instead.
|
|
3588
|
+
*/
|
|
3589
|
+
multi?: boolean;
|
|
3590
|
+
/** REL / FLD-11: re-point the column. The old edges are withdrawn by the door. */
|
|
3591
|
+
relation_target?: Uuid;
|
|
3592
|
+
on_target_delete?: OnDelete;
|
|
3593
|
+
/** SEAT-SUITES: whether the store builds an index for this column, and a unique one. */
|
|
3594
|
+
promoted?: boolean;
|
|
3595
|
+
unique?: boolean;
|
|
3596
|
+
/** §D / T7: which fields a worked-out column reads. */
|
|
3597
|
+
depends_on?: Uuid[];
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
export { PER_VALUE_ACCESS_WORDS as $, ABSENCE_REASONS as A, FRESHNESS as B, type ComputeOn as C, DELIVERIES as D, ENTITY_TOKENS as E, type FieldTypeWord as F, type FieldBehavior as G, type Freshness as H, type HiddenFieldNotice as I, type KernelTableName as J, KERNEL_TABLES as K, MERGE_FIELD_SEMANTIC_TYPES as L, MERGE_FIELD_MODIFIERS as M, type NewFieldDeclaration as N, type OnDelete as O, MERGE_FIELD_SOURCES as P, type MergeFieldModifier as Q, type RelationFlavor as R, type StorageMode as S, type TableType as T, type Uuid as U, type MergeFieldSemanticType as V, type MergeFieldSource as W, ON_DELETE as X, OVERRIDE_POLICIES as Y, type OverridePolicy as Z, PARITY_FIELD_TYPES as _, type TableDisplay as a, type ParityFieldType as a0, type ParityFieldTypeDescriptor as a1, type PerValueAccessWord as a2, type ProvenancePointer as a3, RELATION_BINDINGS as a4, RELATION_CARDINALITIES as a5, RELATION_FLAVORS as a6, RETIRED_ACTOR_WORDS as a7, RULE_NODE_KINDS as a8, RULE_USES as a9, type RelationBinding as aa, type RetiredActorWord as ab, type RuleNodeKind as ac, type RuleUse as ad, STORAGE_MODES as ae, STORE_DOORS as af, STORE_KNOBS as ag, STORE_REFUSAL_CODES as ah, type StoreDoorName as ai, type StoreRefusalCode as aj, TABLE_DISPLAYS as ak, TABLE_ORIGINS as al, TABLE_TYPES as am, type TableOrigin as an, VALUE_ALTERNATE_KEYS as ao, VALUE_ENVELOPE_KEYS as ap, type ValueAlternate as aq, type ValueAlternateKey as ar, type ValueEnvelope as as, type ValueEnvelopeKey as at, type ValueSource as au, type FieldSource as b, type FieldRule as c, type FieldSensitivity as d, type ContextPolicy as e, type RelationCardinality as f, type Timestamp as g, type RecordDocument as h, type RecordRead as i, type ReadRow as j, type Field as k, type StoredRecord as l, type FieldPatch as m, type RecordRevision as n, type ReadValue as o, type FieldProposal as p, type TableProposal as q, ACTOR_VOCABULARY as r, type AbsenceReason as s, type Actor as t, COMPUTE_ON as u, CONTEXT_POLICIES as v, type Delivery as w, type EntityToken as x, FIELD_SENSITIVITIES as y, FIELD_SOURCES as z };
|