@ai-matrx/records 0.24.0 → 0.27.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 +97 -0
- package/dist/core/index.cjs +491 -8
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +110 -3
- package/dist/core/index.d.ts +110 -3
- package/dist/core/index.js +491 -8
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +350 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +737 -15
- package/dist/index.d.ts +737 -15
- package/dist/index.js +350 -8
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +491 -8
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +831 -15
- package/dist/react/index.d.ts +831 -15
- package/dist/react/index.js +491 -8
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -70,6 +70,9 @@ declare const PARITY_FIELD_TYPES: readonly [{
|
|
|
70
70
|
}];
|
|
71
71
|
/** The node kinds `custom.rule_eval` evaluates, and the lane that owns each. */
|
|
72
72
|
declare const RULE_NODE_KINDS: readonly [{
|
|
73
|
+
readonly node: "actor_at_least";
|
|
74
|
+
readonly evaluated_by: "PIPELINES";
|
|
75
|
+
}, {
|
|
73
76
|
readonly node: "add";
|
|
74
77
|
readonly evaluated_by: "W1-RULE";
|
|
75
78
|
}, {
|
|
@@ -129,6 +132,12 @@ declare const RULE_NODE_KINDS: readonly [{
|
|
|
129
132
|
}, {
|
|
130
133
|
readonly node: "present";
|
|
131
134
|
readonly evaluated_by: "W1-RULE";
|
|
135
|
+
}, {
|
|
136
|
+
readonly node: "previous";
|
|
137
|
+
readonly evaluated_by: "PIPELINES";
|
|
138
|
+
}, {
|
|
139
|
+
readonly node: "stage_count";
|
|
140
|
+
readonly evaluated_by: "PIPELINES";
|
|
132
141
|
}, {
|
|
133
142
|
readonly node: "sub";
|
|
134
143
|
readonly evaluated_by: "W1-RULE";
|
|
@@ -207,26 +216,66 @@ declare const STORE_DOORS: readonly [{
|
|
|
207
216
|
readonly args: "";
|
|
208
217
|
readonly returns: "text[]";
|
|
209
218
|
readonly security: "invoker";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "agg_cadence_normalize";
|
|
221
|
+
readonly args: "p_cadence text";
|
|
222
|
+
readonly returns: "text";
|
|
223
|
+
readonly security: "invoker";
|
|
210
224
|
}, {
|
|
211
225
|
readonly name: "agg_deliver";
|
|
212
|
-
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";
|
|
226
|
+
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";
|
|
213
227
|
readonly returns: "uuid";
|
|
214
228
|
readonly security: "invoker";
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "agg_deliver_quietly";
|
|
231
|
+
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";
|
|
232
|
+
readonly returns: "uuid";
|
|
233
|
+
readonly security: "invoker";
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "agg_digest_assemble";
|
|
236
|
+
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";
|
|
237
|
+
readonly returns: "jsonb";
|
|
238
|
+
readonly security: "invoker";
|
|
239
|
+
}, {
|
|
240
|
+
readonly name: "agg_digest_due_at";
|
|
241
|
+
readonly args: "p_cadence text, p_schedule text, p_quiet jsonb, p_after timestamp with time zone";
|
|
242
|
+
readonly returns: "timestamp with time zone";
|
|
243
|
+
readonly security: "invoker";
|
|
215
244
|
}, {
|
|
216
245
|
readonly name: "agg_digest_run";
|
|
217
246
|
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";
|
|
218
247
|
readonly returns: "integer";
|
|
219
248
|
readonly security: "invoker";
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "agg_digest_tick";
|
|
251
|
+
readonly args: "";
|
|
252
|
+
readonly returns: "integer";
|
|
253
|
+
readonly security: "invoker";
|
|
220
254
|
}, {
|
|
221
255
|
readonly name: "agg_explain";
|
|
222
256
|
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";
|
|
223
257
|
readonly returns: "jsonb";
|
|
224
258
|
readonly security: "definer";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "agg_last_digest_at";
|
|
261
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
262
|
+
readonly returns: "timestamp with time zone";
|
|
263
|
+
readonly security: "invoker";
|
|
225
264
|
}, {
|
|
226
265
|
readonly name: "agg_operations";
|
|
227
266
|
readonly args: "";
|
|
228
267
|
readonly returns: "text[]";
|
|
229
268
|
readonly security: "invoker";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "agg_quiet_until";
|
|
271
|
+
readonly args: "p_quiet jsonb, p_at timestamp with time zone";
|
|
272
|
+
readonly returns: "timestamp with time zone";
|
|
273
|
+
readonly security: "invoker";
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "agg_record_name";
|
|
276
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_state jsonb DEFAULT NULL::jsonb";
|
|
277
|
+
readonly returns: "text";
|
|
278
|
+
readonly security: "invoker";
|
|
230
279
|
}, {
|
|
231
280
|
readonly name: "agg_sql";
|
|
232
281
|
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";
|
|
@@ -242,10 +291,20 @@ declare const STORE_DOORS: readonly [{
|
|
|
242
291
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_changed_field_ids jsonb DEFAULT '[]'::jsonb";
|
|
243
292
|
readonly returns: "integer";
|
|
244
293
|
readonly security: "invoker";
|
|
294
|
+
}, {
|
|
295
|
+
readonly name: "agg_subscription_fire_entered";
|
|
296
|
+
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";
|
|
297
|
+
readonly returns: "integer";
|
|
298
|
+
readonly security: "invoker";
|
|
299
|
+
}, {
|
|
300
|
+
readonly name: "agg_subscription_tick";
|
|
301
|
+
readonly args: "p_window interval DEFAULT '00:15:00'::interval";
|
|
302
|
+
readonly returns: "integer";
|
|
303
|
+
readonly security: "invoker";
|
|
245
304
|
}, {
|
|
246
305
|
readonly name: "agg_subscriptions";
|
|
247
306
|
readonly args: "p_organization_id uuid, p_saved_view_id uuid DEFAULT NULL::uuid, p_cadence text DEFAULT NULL::text";
|
|
248
|
-
readonly returns: "TABLE(rule_id uuid, saved_view_id uuid, cadence text, schedule text, channel text, recipient_user_id uuid, event_key text, name text)";
|
|
307
|
+
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)";
|
|
249
308
|
readonly security: "invoker";
|
|
250
309
|
}, {
|
|
251
310
|
readonly name: "agg_value_sql";
|
|
@@ -257,6 +316,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
257
316
|
readonly args: "p_organization_id uuid, p_saved_view_id uuid, p_record_id uuid";
|
|
258
317
|
readonly returns: "boolean";
|
|
259
318
|
readonly security: "invoker";
|
|
319
|
+
}, {
|
|
320
|
+
readonly name: "agg_view_admits_state";
|
|
321
|
+
readonly args: "p_definition jsonb, p_state jsonb";
|
|
322
|
+
readonly returns: "boolean";
|
|
323
|
+
readonly security: "invoker";
|
|
260
324
|
}, {
|
|
261
325
|
readonly name: "anon_capture";
|
|
262
326
|
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";
|
|
@@ -357,6 +421,51 @@ declare const STORE_DOORS: readonly [{
|
|
|
357
421
|
readonly args: "p_organization_id uuid, p_door text";
|
|
358
422
|
readonly returns: "void";
|
|
359
423
|
readonly security: "invoker";
|
|
424
|
+
}, {
|
|
425
|
+
readonly name: "booking_cancel";
|
|
426
|
+
readonly args: "p_booking_ref text, p_origin text DEFAULT NULL::text";
|
|
427
|
+
readonly returns: "TABLE(booking_ref text, record_id uuid, slot_key text, state text, message text)";
|
|
428
|
+
readonly security: "definer";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "booking_confirm";
|
|
431
|
+
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";
|
|
432
|
+
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)";
|
|
433
|
+
readonly security: "definer";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "booking_declare";
|
|
436
|
+
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";
|
|
437
|
+
readonly returns: "jsonb";
|
|
438
|
+
readonly security: "definer";
|
|
439
|
+
}, {
|
|
440
|
+
readonly name: "booking_hold";
|
|
441
|
+
readonly args: "p_form_id uuid, p_slot_key text, p_origin text, p_bucket text, p_client_key text DEFAULT NULL::text";
|
|
442
|
+
readonly returns: "TABLE(hold_id uuid, slot_key text, expires_at timestamp with time zone, member_user_id uuid, state text, message text)";
|
|
443
|
+
readonly security: "definer";
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "booking_manage";
|
|
446
|
+
readonly args: "p_booking_ref text, p_days integer DEFAULT NULL::integer";
|
|
447
|
+
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)";
|
|
448
|
+
readonly security: "definer";
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "booking_notify";
|
|
451
|
+
readonly args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid, p_event text, p_when text";
|
|
452
|
+
readonly returns: "uuid";
|
|
453
|
+
readonly security: "invoker";
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "booking_public";
|
|
456
|
+
readonly args: "p_form_id uuid, p_days integer DEFAULT NULL::integer";
|
|
457
|
+
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)";
|
|
458
|
+
readonly security: "definer";
|
|
459
|
+
}, {
|
|
460
|
+
readonly name: "booking_reschedule";
|
|
461
|
+
readonly args: "p_booking_ref text, p_slot_key text, p_origin text, p_bucket text DEFAULT NULL::text";
|
|
462
|
+
readonly returns: "TABLE(booking_ref text, record_id uuid, slot_key text, slot_at timestamp with time zone, state text, message text)";
|
|
463
|
+
readonly security: "definer";
|
|
464
|
+
}, {
|
|
465
|
+
readonly name: "bookings";
|
|
466
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
467
|
+
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)";
|
|
468
|
+
readonly security: "definer";
|
|
360
469
|
}, {
|
|
361
470
|
readonly name: "bump_epoch";
|
|
362
471
|
readonly args: "p_entity_type text, p_entity_id uuid, p_organization_id uuid DEFAULT NULL::uuid";
|
|
@@ -372,6 +481,31 @@ declare const STORE_DOORS: readonly [{
|
|
|
372
481
|
readonly args: "";
|
|
373
482
|
readonly returns: "name";
|
|
374
483
|
readonly security: "invoker";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "capture_open";
|
|
486
|
+
readonly args: "p_organization_id uuid, p_sheet_id uuid";
|
|
487
|
+
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)";
|
|
488
|
+
readonly security: "definer";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "capture_publish";
|
|
491
|
+
readonly args: "p_organization_id uuid, p_sheet_id uuid, p_open boolean DEFAULT true";
|
|
492
|
+
readonly returns: "timestamp with time zone";
|
|
493
|
+
readonly security: "definer";
|
|
494
|
+
}, {
|
|
495
|
+
readonly name: "capture_sheet_declare";
|
|
496
|
+
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";
|
|
497
|
+
readonly returns: "uuid";
|
|
498
|
+
readonly security: "definer";
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "capture_sheets";
|
|
501
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
502
|
+
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)";
|
|
503
|
+
readonly security: "definer";
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "capture_submit";
|
|
506
|
+
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";
|
|
507
|
+
readonly returns: "TABLE(record_id uuid, state text, message text, replay boolean, file_ids uuid[])";
|
|
508
|
+
readonly security: "definer";
|
|
375
509
|
}, {
|
|
376
510
|
readonly name: "carry_unchanged_value_stamps";
|
|
377
511
|
readonly args: "p_old jsonb, p_new jsonb";
|
|
@@ -922,6 +1056,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
922
1056
|
readonly args: "p_organization_id uuid, p_token text, p_record_id uuid, p_patch jsonb";
|
|
923
1057
|
readonly returns: "jsonb";
|
|
924
1058
|
readonly security: "invoker";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly name: "export_ceiling";
|
|
1061
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
1062
|
+
readonly returns: "integer";
|
|
1063
|
+
readonly security: "definer";
|
|
925
1064
|
}, {
|
|
926
1065
|
readonly name: "export_records";
|
|
927
1066
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000";
|
|
@@ -1057,6 +1196,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
1057
1196
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb";
|
|
1058
1197
|
readonly returns: "jsonb";
|
|
1059
1198
|
readonly security: "invoker";
|
|
1199
|
+
}, {
|
|
1200
|
+
readonly name: "freshness_verdict";
|
|
1201
|
+
readonly args: "p_written_at timestamp with time zone, p_ceiling_seconds numeric";
|
|
1202
|
+
readonly returns: "jsonb";
|
|
1203
|
+
readonly security: "definer";
|
|
1060
1204
|
}, {
|
|
1061
1205
|
readonly name: "guard_refusals_are_complete";
|
|
1062
1206
|
readonly args: "";
|
|
@@ -1502,6 +1646,21 @@ declare const STORE_DOORS: readonly [{
|
|
|
1502
1646
|
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
1503
1647
|
readonly returns: "boolean";
|
|
1504
1648
|
readonly security: "invoker";
|
|
1649
|
+
}, {
|
|
1650
|
+
readonly name: "page_ceiling";
|
|
1651
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
1652
|
+
readonly returns: "integer";
|
|
1653
|
+
readonly security: "definer";
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly name: "page_contract";
|
|
1656
|
+
readonly args: "p_organization_id uuid";
|
|
1657
|
+
readonly returns: "jsonb";
|
|
1658
|
+
readonly security: "definer";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly name: "page_size";
|
|
1661
|
+
readonly args: "p_organization_id uuid, p_door text, p_limit integer, p_default integer DEFAULT NULL::integer, p_ceiling integer DEFAULT NULL::integer";
|
|
1662
|
+
readonly returns: "integer";
|
|
1663
|
+
readonly security: "definer";
|
|
1505
1664
|
}, {
|
|
1506
1665
|
readonly name: "parity_field_types";
|
|
1507
1666
|
readonly args: "";
|
|
@@ -1532,6 +1691,31 @@ declare const STORE_DOORS: readonly [{
|
|
|
1532
1691
|
readonly args: "p_new jsonb, p_old jsonb, p_agent_keys text[]";
|
|
1533
1692
|
readonly returns: "jsonb";
|
|
1534
1693
|
readonly security: "invoker";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly name: "pipeline_board";
|
|
1696
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_measure text DEFAULT NULL::text";
|
|
1697
|
+
readonly returns: "TABLE(stage_key text, stage_label text, stage_position integer, cards bigint, total numeric, wip_limit integer, over_limit boolean)";
|
|
1698
|
+
readonly security: "definer";
|
|
1699
|
+
}, {
|
|
1700
|
+
readonly name: "pipeline_declare";
|
|
1701
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
1702
|
+
readonly returns: "jsonb";
|
|
1703
|
+
readonly security: "definer";
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly name: "pipeline_move";
|
|
1706
|
+
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";
|
|
1707
|
+
readonly returns: "jsonb";
|
|
1708
|
+
readonly security: "definer";
|
|
1709
|
+
}, {
|
|
1710
|
+
readonly name: "pipeline_read";
|
|
1711
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1712
|
+
readonly returns: "jsonb";
|
|
1713
|
+
readonly security: "definer";
|
|
1714
|
+
}, {
|
|
1715
|
+
readonly name: "pipeline_transition_refusal";
|
|
1716
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_to text";
|
|
1717
|
+
readonly returns: "jsonb";
|
|
1718
|
+
readonly security: "definer";
|
|
1535
1719
|
}, {
|
|
1536
1720
|
readonly name: "portal_admits";
|
|
1537
1721
|
readonly args: "p_organization_id uuid, p_user_id uuid DEFAULT NULL::uuid";
|
|
@@ -1667,6 +1851,21 @@ declare const STORE_DOORS: readonly [{
|
|
|
1667
1851
|
readonly args: "";
|
|
1668
1852
|
readonly returns: "integer";
|
|
1669
1853
|
readonly security: "invoker";
|
|
1854
|
+
}, {
|
|
1855
|
+
readonly name: "provenance_prune";
|
|
1856
|
+
readonly args: "p_organization_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true, p_limit integer DEFAULT 200000";
|
|
1857
|
+
readonly returns: "jsonb";
|
|
1858
|
+
readonly security: "definer";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly name: "provenance_retention_days";
|
|
1861
|
+
readonly args: "p_organization_id uuid";
|
|
1862
|
+
readonly returns: "integer";
|
|
1863
|
+
readonly security: "definer";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly name: "provenance_write";
|
|
1866
|
+
readonly args: "p_organization_id uuid, p_conversation_id uuid, p_turn_id text, p_rows jsonb";
|
|
1867
|
+
readonly returns: "integer";
|
|
1868
|
+
readonly security: "definer";
|
|
1670
1869
|
}, {
|
|
1671
1870
|
readonly name: "query_access_ids";
|
|
1672
1871
|
readonly args: "p_organization_id uuid, p_required text DEFAULT 'viewer'::text";
|
|
@@ -2167,6 +2366,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
2167
2366
|
readonly args: "p_bytes bytea";
|
|
2168
2367
|
readonly returns: "text";
|
|
2169
2368
|
readonly security: "invoker";
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly name: "silent_page_doors";
|
|
2371
|
+
readonly args: "";
|
|
2372
|
+
readonly returns: "TABLE(door text, why text)";
|
|
2373
|
+
readonly security: "definer";
|
|
2170
2374
|
}, {
|
|
2171
2375
|
readonly name: "size_refusal";
|
|
2172
2376
|
readonly args: "p_organization_id uuid, p_data jsonb";
|
|
@@ -2202,15 +2406,25 @@ declare const STORE_DOORS: readonly [{
|
|
|
2202
2406
|
readonly args: "p_organization_id uuid";
|
|
2203
2407
|
readonly returns: "text[]";
|
|
2204
2408
|
readonly security: "definer";
|
|
2409
|
+
}, {
|
|
2410
|
+
readonly name: "subscription_declare";
|
|
2411
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
2412
|
+
readonly returns: "uuid";
|
|
2413
|
+
readonly security: "definer";
|
|
2205
2414
|
}, {
|
|
2206
2415
|
readonly name: "subscription_mute";
|
|
2207
2416
|
readonly args: "p_organization_id uuid, p_rule_id uuid, p_muted boolean DEFAULT true";
|
|
2208
2417
|
readonly returns: "boolean";
|
|
2209
2418
|
readonly security: "definer";
|
|
2419
|
+
}, {
|
|
2420
|
+
readonly name: "subscription_preview";
|
|
2421
|
+
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
2422
|
+
readonly returns: "jsonb";
|
|
2423
|
+
readonly security: "definer";
|
|
2210
2424
|
}, {
|
|
2211
2425
|
readonly name: "subscriptions";
|
|
2212
2426
|
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
2213
|
-
readonly returns: "TABLE(rule_id uuid, name text, table_id uuid, saved_view_id uuid, cadence text, schedule text, channel text, recipient_user_id uuid, event_key text, muted boolean, mine boolean, i_may_mute boolean)";
|
|
2427
|
+
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)";
|
|
2214
2428
|
readonly security: "definer";
|
|
2215
2429
|
}, {
|
|
2216
2430
|
readonly name: "table_capacity";
|
|
@@ -2262,6 +2476,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
2262
2476
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_use text, p_record_type text DEFAULT NULL::text";
|
|
2263
2477
|
readonly returns: "SETOF custom.record";
|
|
2264
2478
|
readonly security: "invoker";
|
|
2479
|
+
}, {
|
|
2480
|
+
readonly name: "table_stage_field";
|
|
2481
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
2482
|
+
readonly returns: "text";
|
|
2483
|
+
readonly security: "definer";
|
|
2265
2484
|
}, {
|
|
2266
2485
|
readonly name: "table_storage";
|
|
2267
2486
|
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
@@ -2663,6 +2882,10 @@ declare const STORE_KNOBS: readonly [{
|
|
|
2663
2882
|
readonly key: "entity_types_guard";
|
|
2664
2883
|
readonly value: "false";
|
|
2665
2884
|
readonly type: "boolean";
|
|
2885
|
+
}, {
|
|
2886
|
+
readonly key: "export_rows_ceiling";
|
|
2887
|
+
readonly value: "100000";
|
|
2888
|
+
readonly type: "integer";
|
|
2666
2889
|
}, {
|
|
2667
2890
|
readonly key: "external_principal_enabled";
|
|
2668
2891
|
readonly value: "false";
|
|
@@ -2687,6 +2910,14 @@ declare const STORE_KNOBS: readonly [{
|
|
|
2687
2910
|
readonly key: "member_default_visibility";
|
|
2688
2911
|
readonly value: "\"all_records\"";
|
|
2689
2912
|
readonly type: "enum";
|
|
2913
|
+
}, {
|
|
2914
|
+
readonly key: "page_size_ceiling";
|
|
2915
|
+
readonly value: "1000";
|
|
2916
|
+
readonly type: "integer";
|
|
2917
|
+
}, {
|
|
2918
|
+
readonly key: "provenance_retention_days";
|
|
2919
|
+
readonly value: "30";
|
|
2920
|
+
readonly type: "number";
|
|
2690
2921
|
}, {
|
|
2691
2922
|
readonly key: "records_tool_default";
|
|
2692
2923
|
readonly value: "true";
|
|
@@ -2749,7 +2980,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
|
|
|
2749
2980
|
readonly raised_by: "context_resolve";
|
|
2750
2981
|
}, {
|
|
2751
2982
|
readonly code: "22004";
|
|
2752
|
-
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,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,portal_declare,portal_invite,portal_principal_bind,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,relation_carry,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,table_declare,value_restore,work_approval_decide,work_approval_request,work_template_declare";
|
|
2983
|
+
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,relation_carry,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_declare,value_restore,work_approval_decide,work_approval_request,work_template_declare";
|
|
2753
2984
|
}, {
|
|
2754
2985
|
readonly code: "22007";
|
|
2755
2986
|
readonly raised_by: "dashboard_window_sql";
|
|
@@ -2758,22 +2989,22 @@ declare const STORE_REFUSAL_CODES: readonly [{
|
|
|
2758
2989
|
readonly raised_by: "rule_eval";
|
|
2759
2990
|
}, {
|
|
2760
2991
|
readonly code: "22023";
|
|
2761
|
-
readonly raised_by: "_entity_custom_fields_guard,_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,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_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,migrate_merge,migrate_reclass,my_levels,organization_clear,pin_agent_cells,portal_declare,query_by_coordinates,query_rollup,record_update,relation_carry,rule_eval,rule_members,share_grant,share_lane_set,sign_request_create,sign_request_sign,table_rules,visibility_as_of,work_approval_request,work_list,work_slot_hold";
|
|
2992
|
+
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_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,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";
|
|
2762
2993
|
}, {
|
|
2763
2994
|
readonly code: "23503";
|
|
2764
|
-
readonly raised_by: "_checklist_instantiate,_containment_guard,_field_document_for,_record_rule_uses,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,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,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,work_set_state,work_take_assignment,work_template_instantiate";
|
|
2995
|
+
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,work_set_state,work_take_assignment,work_template_instantiate";
|
|
2765
2996
|
}, {
|
|
2766
2997
|
readonly code: "23505";
|
|
2767
2998
|
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";
|
|
2768
2999
|
}, {
|
|
2769
3000
|
readonly code: "23514";
|
|
2770
|
-
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,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,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
|
|
3001
|
+
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,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
|
|
2771
3002
|
}, {
|
|
2772
3003
|
readonly code: "40001";
|
|
2773
3004
|
readonly raised_by: "has_visibility_at";
|
|
2774
3005
|
}, {
|
|
2775
3006
|
readonly code: "42501";
|
|
2776
|
-
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,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,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
|
|
3007
|
+
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";
|
|
2777
3008
|
}, {
|
|
2778
3009
|
readonly code: "42703";
|
|
2779
3010
|
readonly raised_by: "entity_table,portal_declare";
|
|
@@ -2788,7 +3019,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
|
|
|
2788
3019
|
readonly raised_by: "record_update";
|
|
2789
3020
|
}];
|
|
2790
3021
|
/** `platform.entity_types` — the registered tokens a Table or relation may name. */
|
|
2791
|
-
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", "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"];
|
|
3022
|
+
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"];
|
|
2792
3023
|
type StoreRefusalCode = (typeof STORE_REFUSAL_CODES)[number]["code"];
|
|
2793
3024
|
type StoreDoorName = (typeof STORE_DOORS)[number]["name"];
|
|
2794
3025
|
type EntityToken = (typeof ENTITY_TOKENS)[number];
|
|
@@ -3389,9 +3620,21 @@ interface FieldPatch {
|
|
|
3389
3620
|
/** …or the one word every other caller reaches for (see `NewFieldDeclaration`). */
|
|
3390
3621
|
type?: FieldTypeWord;
|
|
3391
3622
|
/**
|
|
3392
|
-
* FLD-2. The shape of the value
|
|
3393
|
-
*
|
|
3394
|
-
*
|
|
3623
|
+
* FLD-2. The shape of the value — one, or several.
|
|
3624
|
+
*
|
|
3625
|
+
* This comment used to say that a patch moving `multi` ALONE changed nothing
|
|
3626
|
+
* and that the behaviour word had to be sent with it. That was true, and it
|
|
3627
|
+
* was a description of a silent failure rather than a contract: the door
|
|
3628
|
+
* answered "saved" and the column still held one. `custom.field_update` has
|
|
3629
|
+
* had a real settings arm for it since 2026-09-20 (matrx-frontend
|
|
3630
|
+
* `migrations/campaign/fix7b_field_multi_arm.sql`), which also moves a
|
|
3631
|
+
* relation's `relation_max` beside it — `custom.validate_values` counts links
|
|
3632
|
+
* against that number, so moving `multi` without it would tick a box and
|
|
3633
|
+
* still refuse the second record.
|
|
3634
|
+
*
|
|
3635
|
+
* A CHOICE LIST IS THE ONE EXCEPTION, and it is refused by name rather than
|
|
3636
|
+
* ignored: for `select` / `multi_select`, "one answer or several" IS the
|
|
3637
|
+
* parity type, so send the type instead.
|
|
3395
3638
|
*/
|
|
3396
3639
|
multi?: boolean;
|
|
3397
3640
|
/** REL / FLD-11: re-point the column. The old edges are withdrawn by the door. */
|
|
@@ -3565,6 +3808,139 @@ interface EntityFieldRights {
|
|
|
3565
3808
|
may_fill_in: boolean;
|
|
3566
3809
|
}
|
|
3567
3810
|
|
|
3811
|
+
/** One stage of a board: the KEY the store keeps, and the LABEL a person reads. */
|
|
3812
|
+
interface PipelineStage {
|
|
3813
|
+
/** The option's stable key — what a cell holds, and what a move is written with. */
|
|
3814
|
+
key: string;
|
|
3815
|
+
/** What the column heading says. Renaming a stage rewrites no record. */
|
|
3816
|
+
label: string;
|
|
3817
|
+
/** A retired choice can still be READ on a record that holds it; it cannot be picked anew. */
|
|
3818
|
+
retired: boolean;
|
|
3819
|
+
}
|
|
3820
|
+
/** What each Rule of a pipeline is about. Closed, and the store is the authority. */
|
|
3821
|
+
declare const PIPELINE_RULE_KINDS: readonly ["moves", "requires", "who", "limit", "entry"];
|
|
3822
|
+
type PipelineRuleKind = (typeof PIPELINE_RULE_KINDS)[number];
|
|
3823
|
+
/**
|
|
3824
|
+
* One transition Rule, as `custom.pipeline_read` hands it back — WITH the sentence it says
|
|
3825
|
+
* when it refuses, because a screen that knows a rule exists but not what it refuses in
|
|
3826
|
+
* cannot warn anybody before they drag.
|
|
3827
|
+
*/
|
|
3828
|
+
interface PipelineRule {
|
|
3829
|
+
id: Uuid;
|
|
3830
|
+
name: string;
|
|
3831
|
+
/** The exact words a person is shown when this Rule stops a move. */
|
|
3832
|
+
message: string;
|
|
3833
|
+
kind: PipelineRuleKind | null;
|
|
3834
|
+
/** The stage this Rule is about; `null` on the one Rule about the moves themselves. */
|
|
3835
|
+
stage: string | null;
|
|
3836
|
+
uses: string[];
|
|
3837
|
+
/** What happens when a card ARRIVES in this stage — assign, notify, start a checklist. */
|
|
3838
|
+
on_entry: Record<string, unknown> | null;
|
|
3839
|
+
version: number;
|
|
3840
|
+
}
|
|
3841
|
+
/** The whole board's definition, from `custom.pipeline_read`. */
|
|
3842
|
+
interface Pipeline {
|
|
3843
|
+
is_pipeline: boolean;
|
|
3844
|
+
/** Present, and it says what would make a board exist, when `is_pipeline` is false. */
|
|
3845
|
+
why?: string;
|
|
3846
|
+
table_id?: Uuid;
|
|
3847
|
+
/** The Field KEY that holds the stage — the twin of a Table's `type_field`. */
|
|
3848
|
+
stage_field?: string;
|
|
3849
|
+
field_id?: Uuid;
|
|
3850
|
+
/** What that column is called, e.g. "Stage". */
|
|
3851
|
+
stage_label?: string;
|
|
3852
|
+
/** In the order they were declared, which is the order the board draws them. */
|
|
3853
|
+
stages?: PipelineStage[];
|
|
3854
|
+
rules?: PipelineRule[];
|
|
3855
|
+
}
|
|
3856
|
+
/** One column of the board, with the store's own numbers over what this person may see. */
|
|
3857
|
+
interface PipelineColumn {
|
|
3858
|
+
stage_key: string;
|
|
3859
|
+
stage_label: string;
|
|
3860
|
+
/** 1-based, the declared order. */
|
|
3861
|
+
stage_position: number;
|
|
3862
|
+
cards: number;
|
|
3863
|
+
/** The total of the chosen measure, or null when no measure was asked for. */
|
|
3864
|
+
total: number | null;
|
|
3865
|
+
/** How many cards this column takes at once, or null when it takes any number. */
|
|
3866
|
+
wip_limit: number | null;
|
|
3867
|
+
/** True when the column already holds MORE than its limit — a state a board must show. */
|
|
3868
|
+
over_limit: boolean;
|
|
3869
|
+
}
|
|
3870
|
+
/** One column this stage demands before a card may land in it. */
|
|
3871
|
+
interface PipelineMissingField {
|
|
3872
|
+
field_id: Uuid;
|
|
3873
|
+
key: string;
|
|
3874
|
+
/** What the column is called, so a screen can ASK for it rather than only refuse. */
|
|
3875
|
+
label: string;
|
|
3876
|
+
}
|
|
3877
|
+
/**
|
|
3878
|
+
* Whether a card may go to a column, answered BEFORE the finger lets go — by the same
|
|
3879
|
+
* Rules, through the same evaluator, on the document the move WOULD produce.
|
|
3880
|
+
*
|
|
3881
|
+
* A board greys a column, and snaps a card back, from this. It never decides for itself.
|
|
3882
|
+
*/
|
|
3883
|
+
interface PipelineVerdict {
|
|
3884
|
+
allowed: boolean;
|
|
3885
|
+
is_pipeline: boolean;
|
|
3886
|
+
/** The stage key the move was asked about. */
|
|
3887
|
+
to?: string;
|
|
3888
|
+
/** The store's own sentence — shown verbatim, never paraphrased by a screen. */
|
|
3889
|
+
why: string;
|
|
3890
|
+
rule?: string;
|
|
3891
|
+
rule_id?: Uuid;
|
|
3892
|
+
rule_version?: number;
|
|
3893
|
+
kind?: PipelineRuleKind;
|
|
3894
|
+
/**
|
|
3895
|
+
* When a stage demands columns that are empty, exactly which ones — so the screen can
|
|
3896
|
+
* prompt for them on entry instead of sending the person away to find them.
|
|
3897
|
+
*/
|
|
3898
|
+
missing?: PipelineMissingField[];
|
|
3899
|
+
}
|
|
3900
|
+
/** What `custom.pipeline_declare` says it made or changed. */
|
|
3901
|
+
interface PipelineDeclared {
|
|
3902
|
+
table_id: Uuid;
|
|
3903
|
+
stage_field: string;
|
|
3904
|
+
field_id: Uuid;
|
|
3905
|
+
stages: string[];
|
|
3906
|
+
rules: Record<string, Uuid>;
|
|
3907
|
+
/** Plain sentences naming each thing this declaration wrote. */
|
|
3908
|
+
said: string[];
|
|
3909
|
+
}
|
|
3910
|
+
/** The declaration a person (or an agent) writes. Everything is optional but the stages. */
|
|
3911
|
+
interface PipelineSpec {
|
|
3912
|
+
stage_field: {
|
|
3913
|
+
key: string;
|
|
3914
|
+
label?: string;
|
|
3915
|
+
options?: string[];
|
|
3916
|
+
sort?: number;
|
|
3917
|
+
};
|
|
3918
|
+
transitions?: {
|
|
3919
|
+
from: string;
|
|
3920
|
+
to: string;
|
|
3921
|
+
}[];
|
|
3922
|
+
/** Stage name → the column keys that must be filled in to land there. */
|
|
3923
|
+
requires?: Record<string, string[]>;
|
|
3924
|
+
/** Stage name → the rung somebody needs on the record to move a card INTO it. */
|
|
3925
|
+
who?: Record<string, "viewer" | "commenter" | "editor" | "admin">;
|
|
3926
|
+
/** Stage name → how many cards may sit there at once. The mover is not counted. */
|
|
3927
|
+
limits?: Record<string, number>;
|
|
3928
|
+
/** Stage name → what happens when a card arrives: assign, notify, start a checklist. */
|
|
3929
|
+
on_entry?: Record<string, Record<string, unknown>>;
|
|
3930
|
+
moves_message?: string;
|
|
3931
|
+
requires_messages?: Record<string, string>;
|
|
3932
|
+
}
|
|
3933
|
+
/**
|
|
3934
|
+
* THE ONE PLACE A SCREEN DECIDES WHETHER A CARD LOOKS DRAGGABLE — and it decides on the
|
|
3935
|
+
* PERSON, not on the rules. Whether a particular move is allowed is
|
|
3936
|
+
* `pipelineTransitionRefusal`, which is the store's answer; whether this person may move
|
|
3937
|
+
* anything at all is their level on the record, which the read door already told us.
|
|
3938
|
+
*
|
|
3939
|
+
* Absent rather than dead: a viewer's card carries no drag handle at all, instead of one
|
|
3940
|
+
* that looks live and snaps back every time.
|
|
3941
|
+
*/
|
|
3942
|
+
declare function mayDrag(level: string | null | undefined): boolean;
|
|
3943
|
+
|
|
3568
3944
|
/**
|
|
3569
3945
|
* A rule expression as `custom.rule_eval` ACTUALLY evaluates it — read off the
|
|
3570
3946
|
* door's own body, not invented here. A leaf is the node's name carrying its
|
|
@@ -4227,6 +4603,254 @@ interface EnrichDeclared {
|
|
|
4227
4603
|
says: string;
|
|
4228
4604
|
}
|
|
4229
4605
|
|
|
4606
|
+
/** One question, as the sheet words it. */
|
|
4607
|
+
interface CaptureQuestion {
|
|
4608
|
+
field: string;
|
|
4609
|
+
ask: string;
|
|
4610
|
+
help?: string | null;
|
|
4611
|
+
required: boolean;
|
|
4612
|
+
}
|
|
4613
|
+
/** One Field, as the phone needs it to draw a control and validate offline. */
|
|
4614
|
+
interface CaptureField {
|
|
4615
|
+
id: Uuid;
|
|
4616
|
+
key: string;
|
|
4617
|
+
label?: string | null;
|
|
4618
|
+
type?: string | null;
|
|
4619
|
+
unit?: string | null;
|
|
4620
|
+
format?: string | null;
|
|
4621
|
+
multi?: boolean | null;
|
|
4622
|
+
required: boolean;
|
|
4623
|
+
/** `attachment` is what makes the phone open a camera instead of a text box. */
|
|
4624
|
+
parity_type?: string | null;
|
|
4625
|
+
[k: string]: unknown;
|
|
4626
|
+
}
|
|
4627
|
+
/**
|
|
4628
|
+
* Everything the phone loads ONCE and then runs with no network.
|
|
4629
|
+
*
|
|
4630
|
+
* `state` is one of `open`, `not open yet`, `closed`, `read only`. `may_capture` is the
|
|
4631
|
+
* honest label for the screen and never the access decision — `custom.capture_submit`
|
|
4632
|
+
* asks `custom.has_visibility` for `editor` itself, before it admits the sheet exists.
|
|
4633
|
+
*/
|
|
4634
|
+
interface CaptureSheetFace {
|
|
4635
|
+
sheet_id: Uuid;
|
|
4636
|
+
organization_id: Uuid;
|
|
4637
|
+
table_id: Uuid;
|
|
4638
|
+
title: string;
|
|
4639
|
+
presentation: {
|
|
4640
|
+
intro?: string | null;
|
|
4641
|
+
flow?: string | null;
|
|
4642
|
+
thank_you?: {
|
|
4643
|
+
title?: string;
|
|
4644
|
+
body?: string;
|
|
4645
|
+
} | null;
|
|
4646
|
+
questions?: CaptureQuestion[];
|
|
4647
|
+
[k: string]: unknown;
|
|
4648
|
+
};
|
|
4649
|
+
fields: CaptureField[];
|
|
4650
|
+
state: string;
|
|
4651
|
+
may_capture: boolean;
|
|
4652
|
+
message: string | null;
|
|
4653
|
+
}
|
|
4654
|
+
/** A sheet in the foreman's list, with what has come in through it. */
|
|
4655
|
+
interface CaptureSheetSummary {
|
|
4656
|
+
sheet_id: Uuid;
|
|
4657
|
+
table_id: Uuid;
|
|
4658
|
+
title: string;
|
|
4659
|
+
slug: string;
|
|
4660
|
+
state: string;
|
|
4661
|
+
opened_at: string | null;
|
|
4662
|
+
captures: number;
|
|
4663
|
+
replays: number;
|
|
4664
|
+
last_capture_at: string | null;
|
|
4665
|
+
presentation: Record<string, unknown>;
|
|
4666
|
+
}
|
|
4667
|
+
/** A file reference the app has already put in the platform's one byte store. */
|
|
4668
|
+
interface CaptureFileRef {
|
|
4669
|
+
field: string;
|
|
4670
|
+
name: string;
|
|
4671
|
+
mime_type?: string | null;
|
|
4672
|
+
size_bytes?: number | null;
|
|
4673
|
+
duration_ms?: number | null;
|
|
4674
|
+
/** The `files.files` id. The File record made from this points at it. */
|
|
4675
|
+
file_id?: string | null;
|
|
4676
|
+
url?: string | null;
|
|
4677
|
+
}
|
|
4678
|
+
/** What one capture became. `replay: true` means it had already arrived. */
|
|
4679
|
+
interface CaptureOutcome {
|
|
4680
|
+
record_id: Uuid | null;
|
|
4681
|
+
state: string;
|
|
4682
|
+
message: string | null;
|
|
4683
|
+
replay: boolean;
|
|
4684
|
+
file_ids: Uuid[] | null;
|
|
4685
|
+
}
|
|
4686
|
+
|
|
4687
|
+
/** One file waiting to go up, with its bytes until they have. */
|
|
4688
|
+
interface QueuedCaptureFile {
|
|
4689
|
+
field: string;
|
|
4690
|
+
name: string;
|
|
4691
|
+
mime_type: string;
|
|
4692
|
+
size_bytes: number;
|
|
4693
|
+
duration_ms?: number | null | undefined;
|
|
4694
|
+
/** The bytes. Dropped once `uploaded` is set, so the queue does not hold them twice. */
|
|
4695
|
+
blob?: Blob | null | undefined;
|
|
4696
|
+
/** Set once the platform's byte store has them. */
|
|
4697
|
+
uploaded?: {
|
|
4698
|
+
file_id?: string | null | undefined;
|
|
4699
|
+
url?: string | null | undefined;
|
|
4700
|
+
} | null | undefined;
|
|
4701
|
+
}
|
|
4702
|
+
/** `waiting` → `sending` → `landed`, or `refused` when the door has decided. */
|
|
4703
|
+
type QueuedCaptureState = "waiting" | "sending" | "landed" | "refused";
|
|
4704
|
+
interface QueuedCapture {
|
|
4705
|
+
/** Minted on the phone when the capture was taken. The row's key AND the door's. */
|
|
4706
|
+
client_key: string;
|
|
4707
|
+
organization_id: string;
|
|
4708
|
+
sheet_id: string;
|
|
4709
|
+
sheet_title?: string | undefined;
|
|
4710
|
+
answers: Record<string, unknown>;
|
|
4711
|
+
files: QueuedCaptureFile[];
|
|
4712
|
+
device: string | null;
|
|
4713
|
+
/** The moment the PHONE took it — never the moment the signal came back. */
|
|
4714
|
+
captured_at: string;
|
|
4715
|
+
location: Record<string, unknown> | null;
|
|
4716
|
+
state: QueuedCaptureState;
|
|
4717
|
+
attempts: number;
|
|
4718
|
+
/** The door's own words, or the network's. Always something a person can act on. */
|
|
4719
|
+
last_error: string | null;
|
|
4720
|
+
record_id: string | null;
|
|
4721
|
+
replayed: boolean;
|
|
4722
|
+
queued_at: string;
|
|
4723
|
+
landed_at: string | null;
|
|
4724
|
+
}
|
|
4725
|
+
interface CaptureQueueCounts {
|
|
4726
|
+
waiting: number;
|
|
4727
|
+
sending: number;
|
|
4728
|
+
refused: number;
|
|
4729
|
+
landed: number;
|
|
4730
|
+
}
|
|
4731
|
+
/** What one pass of `sync` did, item by item. Never a single boolean. */
|
|
4732
|
+
interface CaptureSyncReport {
|
|
4733
|
+
attempted: number;
|
|
4734
|
+
landed: number;
|
|
4735
|
+
replayed: number;
|
|
4736
|
+
refused: number;
|
|
4737
|
+
deferred: number;
|
|
4738
|
+
outcomes: Array<{
|
|
4739
|
+
client_key: string;
|
|
4740
|
+
state: QueuedCaptureState;
|
|
4741
|
+
record_id: string | null;
|
|
4742
|
+
replay: boolean;
|
|
4743
|
+
says: string | null;
|
|
4744
|
+
}>;
|
|
4745
|
+
/** Set when the pass stopped early because the network went away again. */
|
|
4746
|
+
stopped_because?: string;
|
|
4747
|
+
}
|
|
4748
|
+
/** The two calls the queue makes on the outside world. Injected, so this file is headless. */
|
|
4749
|
+
interface CaptureQueuePorts {
|
|
4750
|
+
/** Put the bytes in the platform's ONE byte store and answer with the reference. */
|
|
4751
|
+
uploadFile(file: QueuedCaptureFile, item: QueuedCapture): Promise<{
|
|
4752
|
+
file_id?: string | null;
|
|
4753
|
+
url?: string | null;
|
|
4754
|
+
}>;
|
|
4755
|
+
/** `client.captureSubmit`. */
|
|
4756
|
+
submit(args: {
|
|
4757
|
+
sheet_id: string;
|
|
4758
|
+
client_key: string;
|
|
4759
|
+
answers: Record<string, unknown>;
|
|
4760
|
+
files: CaptureFileRef[];
|
|
4761
|
+
device?: string | null;
|
|
4762
|
+
captured_at?: string | null;
|
|
4763
|
+
location?: Record<string, unknown> | null;
|
|
4764
|
+
}): Promise<{
|
|
4765
|
+
ok: boolean;
|
|
4766
|
+
data?: CaptureOutcome | null;
|
|
4767
|
+
error?: {
|
|
4768
|
+
message?: string;
|
|
4769
|
+
code?: string;
|
|
4770
|
+
} | null;
|
|
4771
|
+
}>;
|
|
4772
|
+
}
|
|
4773
|
+
/** The smallest store the queue needs. IndexedDB in a browser, a Map in a test. */
|
|
4774
|
+
interface CaptureQueueStore {
|
|
4775
|
+
all(): Promise<QueuedCapture[]>;
|
|
4776
|
+
put(item: QueuedCapture): Promise<void>;
|
|
4777
|
+
remove(clientKey: string): Promise<void>;
|
|
4778
|
+
meta(key: string): Promise<string | null>;
|
|
4779
|
+
setMeta(key: string, value: string): Promise<void>;
|
|
4780
|
+
}
|
|
4781
|
+
/**
|
|
4782
|
+
* THE TWO REFUSALS WORTH REPEATING, and they are the package's own list, not a guess.
|
|
4783
|
+
* `results.ts` says it in as many words: `stale_read` (40001) and `timed_out` (57014) are
|
|
4784
|
+
* "the only two refusals in this list worth repeating"; `store_limit` (53400) is the third
|
|
4785
|
+
* — the store ran out of something and the same call works in a quieter moment.
|
|
4786
|
+
*
|
|
4787
|
+
* EVERYTHING ELSE THE DOOR NAMES IS A DECISION. This was the other way round until a real
|
|
4788
|
+
* browser ran it (2026-09-20): the check listed SQLSTATEs, and `RecordsClient` hands back
|
|
4789
|
+
* its own WORD — `invalid_argument`, `door` — with the sqlstate beside it. So a capture the
|
|
4790
|
+
* store had refused by name was filed as a hiccup and queued again forever, which is the
|
|
4791
|
+
* exact silent hole this file's decision 4 exists to prevent. The unit suite passed because
|
|
4792
|
+
* it fed the check SQLSTATEs: it was testing the assumption, not the client.
|
|
4793
|
+
*/
|
|
4794
|
+
declare const REFUSALS_WORTH_REPEATING: ReadonlySet<string>;
|
|
4795
|
+
/**
|
|
4796
|
+
* Did the door DECIDE, or did the attempt merely fail? A failure with no code at all is a
|
|
4797
|
+
* network failure and waits; a refusal the store named is a decision and stays.
|
|
4798
|
+
*/
|
|
4799
|
+
declare function isDecided(error: {
|
|
4800
|
+
code?: string | null;
|
|
4801
|
+
sqlstate?: string | null;
|
|
4802
|
+
} | null | undefined): boolean;
|
|
4803
|
+
/**
|
|
4804
|
+
* A key that is unique on a phone that has been offline for a day and has never spoken to
|
|
4805
|
+
* a server. `crypto.randomUUID` where it exists; otherwise random bytes, and only then the
|
|
4806
|
+
* clock — because two captures in the same millisecond on two phones is exactly the case
|
|
4807
|
+
* that must not collide.
|
|
4808
|
+
*/
|
|
4809
|
+
declare function mintClientKey(): string;
|
|
4810
|
+
/** The IndexedDB store. Returns null where there is no IndexedDB at all. */
|
|
4811
|
+
declare function indexedDbStore(name?: string): CaptureQueueStore | null;
|
|
4812
|
+
/** The in-memory store — for a test, and for a browser with storage switched off. */
|
|
4813
|
+
declare function memoryStore(): CaptureQueueStore;
|
|
4814
|
+
interface CaptureQueueOptions {
|
|
4815
|
+
ports: CaptureQueuePorts;
|
|
4816
|
+
store?: CaptureQueueStore | null;
|
|
4817
|
+
/** Watch `online` and drain when the signal comes back. Default true in a browser. */
|
|
4818
|
+
autoSync?: boolean;
|
|
4819
|
+
/** Told when anything changes, so a badge can say how many are waiting. */
|
|
4820
|
+
onChange?: (counts: CaptureQueueCounts, items: QueuedCapture[]) => void;
|
|
4821
|
+
now?: () => Date;
|
|
4822
|
+
}
|
|
4823
|
+
interface CaptureQueue {
|
|
4824
|
+
/** Write one capture to disk. Returns its client key; the network is not asked here. */
|
|
4825
|
+
enqueue(input: {
|
|
4826
|
+
organization_id: string;
|
|
4827
|
+
sheet_id: string;
|
|
4828
|
+
sheet_title?: string;
|
|
4829
|
+
answers: Record<string, unknown>;
|
|
4830
|
+
files?: Array<Omit<QueuedCaptureFile, "uploaded">>;
|
|
4831
|
+
device?: string | null;
|
|
4832
|
+
captured_at?: string | null;
|
|
4833
|
+
location?: Record<string, unknown> | null;
|
|
4834
|
+
client_key?: string;
|
|
4835
|
+
}): Promise<string>;
|
|
4836
|
+
list(): Promise<QueuedCapture[]>;
|
|
4837
|
+
counts(): Promise<CaptureQueueCounts>;
|
|
4838
|
+
/** Send everything waiting, oldest first, one at a time. Safe to call at any moment. */
|
|
4839
|
+
sync(): Promise<CaptureSyncReport>;
|
|
4840
|
+
/** Try one refused item again — after the person has fixed what the door named. */
|
|
4841
|
+
retry(clientKey: string, patch?: {
|
|
4842
|
+
answers?: Record<string, unknown>;
|
|
4843
|
+
}): Promise<void>;
|
|
4844
|
+
/** Throw one away. The only thing that ever removes a capture nobody sent. */
|
|
4845
|
+
discard(clientKey: string): Promise<void>;
|
|
4846
|
+
/** Forget what has already landed. Never touches anything still waiting. */
|
|
4847
|
+
clearLanded(): Promise<number>;
|
|
4848
|
+
lastSyncedAt(): Promise<string | null>;
|
|
4849
|
+
isOnline(): boolean;
|
|
4850
|
+
dispose(): void;
|
|
4851
|
+
}
|
|
4852
|
+
declare function openCaptureQueue(opts: CaptureQueueOptions): CaptureQueue;
|
|
4853
|
+
|
|
4230
4854
|
/** VAL-8's whole vocabulary. There is no fourth word. */
|
|
4231
4855
|
type HistoryActorKind = "user" | "agent" | "system";
|
|
4232
4856
|
/**
|
|
@@ -4455,8 +5079,31 @@ interface DocSignatureRow {
|
|
|
4455
5079
|
document_version: number;
|
|
4456
5080
|
}
|
|
4457
5081
|
|
|
4458
|
-
/**
|
|
4459
|
-
|
|
5082
|
+
/**
|
|
5083
|
+
* HOW OFTEN. `instant` fires the moment a record ENTERS the view; the other three
|
|
5084
|
+
* are summaries, assembled by the store at that cadence and sent as ONE message
|
|
5085
|
+
* naming what entered, left and changed since the last one.
|
|
5086
|
+
*
|
|
5087
|
+
* `immediate` and `digest` — the two words this store wrote before 2026-09-20 —
|
|
5088
|
+
* are still accepted everywhere and normalised by `custom.agg_cadence_normalize`
|
|
5089
|
+
* to `instant` and `daily`, so a Rule written then and a Rule written by the
|
|
5090
|
+
* picker now mean the same thing to the same runner.
|
|
5091
|
+
*/
|
|
5092
|
+
type SubscriptionCadence = "instant" | "hourly" | "daily" | "weekly";
|
|
5093
|
+
/**
|
|
5094
|
+
* THE HOURS NOT TO BE TOLD IN. A send inside them is not dropped — the store moves
|
|
5095
|
+
* it to the moment they end through the notification system's own `next_attempt_at`,
|
|
5096
|
+
* so there is still one sender and one retry policy and nothing disappears because
|
|
5097
|
+
* of the clock.
|
|
5098
|
+
*/
|
|
5099
|
+
interface QuietHours {
|
|
5100
|
+
/** "22:00" */
|
|
5101
|
+
start: string;
|
|
5102
|
+
/** "07:00" — earlier than `start` means the block crosses midnight, which is the ordinary case. */
|
|
5103
|
+
end: string;
|
|
5104
|
+
/** An IANA zone name, e.g. "America/Chicago". Left out, UTC. */
|
|
5105
|
+
tz?: string;
|
|
5106
|
+
}
|
|
4460
5107
|
/** One subscription, exactly as `custom.agg_subscriptions` reports it. */
|
|
4461
5108
|
interface Subscription {
|
|
4462
5109
|
rule_id: Uuid;
|
|
@@ -4488,6 +5135,81 @@ interface MySubscription extends Subscription {
|
|
|
4488
5135
|
mine: boolean;
|
|
4489
5136
|
/** I may switch it off: mine, or I hold admin on the Table it watches. */
|
|
4490
5137
|
i_may_mute: boolean;
|
|
5138
|
+
/** The hours it will not tell me in. Null means any time. */
|
|
5139
|
+
quiet_hours: QuietHours | null;
|
|
5140
|
+
/** When this last told me anything at all. Null means it never has. */
|
|
5141
|
+
last_sent_at: string | null;
|
|
5142
|
+
/**
|
|
5143
|
+
* When the next summary is due — computed by the SAME store functions the runner
|
|
5144
|
+
* uses, so this and the moment it actually fires cannot drift. Null for `instant`,
|
|
5145
|
+
* which has no due time, and null for a muted one, because saying "next Monday"
|
|
5146
|
+
* beside a switch that is off is a screen that lies.
|
|
5147
|
+
*/
|
|
5148
|
+
next_digest_at: string | null;
|
|
5149
|
+
}
|
|
5150
|
+
/**
|
|
5151
|
+
* THE SUMMARY THIS SUBSCRIPTION WOULD SEND RIGHT NOW — `custom.subscription_preview`.
|
|
5152
|
+
*
|
|
5153
|
+
* It assembles and returns: nothing is delivered, nothing is recorded and the
|
|
5154
|
+
* watermark does not move, so "show me one now" never costs somebody a text and
|
|
5155
|
+
* never robs the real Monday summary of a week of news.
|
|
5156
|
+
*/
|
|
5157
|
+
interface DigestPreview {
|
|
5158
|
+
rule_id: Uuid;
|
|
5159
|
+
name: string;
|
|
5160
|
+
cadence: string;
|
|
5161
|
+
schedule: string | null;
|
|
5162
|
+
quiet_hours: QuietHours | null;
|
|
5163
|
+
channel: string;
|
|
5164
|
+
recipient_user_id: Uuid | null;
|
|
5165
|
+
muted: boolean;
|
|
5166
|
+
table_id: Uuid | null;
|
|
5167
|
+
saved_view_id: Uuid | null;
|
|
5168
|
+
window_start: string;
|
|
5169
|
+
window_end: string;
|
|
5170
|
+
entered: Array<{
|
|
5171
|
+
record_id: Uuid;
|
|
5172
|
+
name: string;
|
|
5173
|
+
}>;
|
|
5174
|
+
left: Array<{
|
|
5175
|
+
record_id: Uuid;
|
|
5176
|
+
name: string;
|
|
5177
|
+
}>;
|
|
5178
|
+
changed: Array<{
|
|
5179
|
+
record_id: Uuid;
|
|
5180
|
+
name: string;
|
|
5181
|
+
}>;
|
|
5182
|
+
counts: {
|
|
5183
|
+
entered: number;
|
|
5184
|
+
left: number;
|
|
5185
|
+
changed: number;
|
|
5186
|
+
in_view: number | null;
|
|
5187
|
+
};
|
|
5188
|
+
/** The grid, filtered by the very view this subscription is over. */
|
|
5189
|
+
link: string | null;
|
|
5190
|
+
subject: string;
|
|
5191
|
+
body: string;
|
|
5192
|
+
/**
|
|
5193
|
+
* NOTHING FAILS SILENTLY. A subscription that cannot produce a summary — nobody to
|
|
5194
|
+
* tell, no view, a view somebody deleted — says which piece is missing, in the
|
|
5195
|
+
* sentence a person reads, instead of returning an empty summary that looks calm.
|
|
5196
|
+
*/
|
|
5197
|
+
incomplete: string | null;
|
|
5198
|
+
}
|
|
5199
|
+
/** What `custom.subscription_declare` is asked for. The store refuses the rest BY NAME. */
|
|
5200
|
+
interface SubscriptionSpec {
|
|
5201
|
+
name: string;
|
|
5202
|
+
saved_view_id: Uuid;
|
|
5203
|
+
cadence: SubscriptionCadence;
|
|
5204
|
+
/** "monday 08:00", "09:30". Meaningless for `instant`. */
|
|
5205
|
+
schedule?: string | null;
|
|
5206
|
+
channel?: "in_app" | "email" | "sms";
|
|
5207
|
+
quiet_hours?: QuietHours | null;
|
|
5208
|
+
/** Left out, the person setting it up — "tell ME". */
|
|
5209
|
+
recipient_user_id?: Uuid | null;
|
|
5210
|
+
event_key?: string;
|
|
5211
|
+
/** Re-state an existing subscription rather than making a second one. */
|
|
5212
|
+
rule_id?: Uuid | null;
|
|
4491
5213
|
}
|
|
4492
5214
|
/** The `subscription` block a Rule record carries. Written through `record_write`. */
|
|
4493
5215
|
interface SubscriptionBlock {
|
|
@@ -5687,6 +6409,37 @@ interface RecordsClient {
|
|
|
5687
6409
|
fieldKernelId(): Promise<RecordsResult<Uuid>>;
|
|
5688
6410
|
ruleKernelId(): Promise<RecordsResult<Uuid>>;
|
|
5689
6411
|
/** Every record the Rule says is a member. A saved view's list is this, not a filter a screen ran. */
|
|
6412
|
+
/** PRODUCTS row 7 — the whole board: its stage column, its stages in the declared
|
|
6413
|
+
* order, and every Rule WITH the sentence it says when it refuses. */
|
|
6414
|
+
pipelineRead(args: {
|
|
6415
|
+
table_id: Uuid;
|
|
6416
|
+
}): Promise<RecordsResult<Pipeline>>;
|
|
6417
|
+
/** The store's own count and total per column, over what this person may see. */
|
|
6418
|
+
pipelineBoard(args: {
|
|
6419
|
+
table_id: Uuid;
|
|
6420
|
+
measure?: string | null;
|
|
6421
|
+
}): Promise<RecordsResult<PipelineColumn[]>>;
|
|
6422
|
+
/** Whether this card may go to that column — asked BEFORE the finger lets go. */
|
|
6423
|
+
pipelineTransitionRefusal(args: {
|
|
6424
|
+
record_id: Uuid;
|
|
6425
|
+
to: string;
|
|
6426
|
+
}): Promise<RecordsResult<PipelineVerdict>>;
|
|
6427
|
+
/** Move a record to a stage. An ORDINARY record write, judged by the same Rules. */
|
|
6428
|
+
pipelineMove(args: {
|
|
6429
|
+
record_id: Uuid;
|
|
6430
|
+
to: string;
|
|
6431
|
+
also?: Record<string, unknown>;
|
|
6432
|
+
expected_version?: number | null;
|
|
6433
|
+
}): Promise<RecordsResult<unknown>>;
|
|
6434
|
+
/** Declare (or re-state) a pipeline: the stage column and its transition Rules. */
|
|
6435
|
+
pipelineDeclare(args: {
|
|
6436
|
+
table_id: Uuid;
|
|
6437
|
+
spec: PipelineSpec;
|
|
6438
|
+
}): Promise<RecordsResult<PipelineDeclared>>;
|
|
6439
|
+
/** Which column of this table holds its stage, or null when it is not a board. */
|
|
6440
|
+
tableStageField(args: {
|
|
6441
|
+
table_id: Uuid;
|
|
6442
|
+
}): Promise<RecordsResult<string | null>>;
|
|
5690
6443
|
ruleMembers(args: {
|
|
5691
6444
|
rule_id: Uuid;
|
|
5692
6445
|
}): Promise<RecordsResult<StoredRecord[]>>;
|
|
@@ -5908,6 +6661,50 @@ interface RecordsClient {
|
|
|
5908
6661
|
filter?: Record<string, AggregateFilter>;
|
|
5909
6662
|
limit?: number;
|
|
5910
6663
|
}): Promise<RecordsResult<StuckRow[]>>;
|
|
6664
|
+
/**
|
|
6665
|
+
* Declare or re-state a crew capture sheet over a Table. Admin on the Table.
|
|
6666
|
+
* Closed to the crew until `capturePublish`, like every publishing act here.
|
|
6667
|
+
*/
|
|
6668
|
+
captureSheetDeclare(args: {
|
|
6669
|
+
table_id: Uuid;
|
|
6670
|
+
title: string;
|
|
6671
|
+
questions: Array<Record<string, unknown>>;
|
|
6672
|
+
presentation?: Record<string, unknown> | null;
|
|
6673
|
+
sheet_id?: Uuid | null;
|
|
6674
|
+
notify_rule_id?: Uuid | null;
|
|
6675
|
+
}): Promise<RecordsResult<Uuid>>;
|
|
6676
|
+
/** Open the sheet to the crew, or close it. Admin on the Table. */
|
|
6677
|
+
capturePublish(args: {
|
|
6678
|
+
sheet_id: Uuid;
|
|
6679
|
+
open?: boolean;
|
|
6680
|
+
}): Promise<RecordsResult<string | null>>;
|
|
6681
|
+
/** The crew sheets of this organization, with what has come in through each. */
|
|
6682
|
+
captureSheets(args?: {
|
|
6683
|
+
table_id?: Uuid | null;
|
|
6684
|
+
}): Promise<RecordsResult<CaptureSheetSummary[]>>;
|
|
6685
|
+
/**
|
|
6686
|
+
* Everything a phone needs to run one sheet OFFLINE — the questions, the Fields
|
|
6687
|
+
* with their ids and parity types, and an honest `may_capture` with a sentence.
|
|
6688
|
+
* Load it once on a signal; it is the last network call before the walk.
|
|
6689
|
+
*/
|
|
6690
|
+
captureOpen(args: {
|
|
6691
|
+
sheet_id: Uuid;
|
|
6692
|
+
}): Promise<RecordsResult<CaptureSheetFace | null>>;
|
|
6693
|
+
/**
|
|
6694
|
+
* One capture: the answers, the file references, the device, the moment the phone
|
|
6695
|
+
* took it and the place. Idempotent on `client_key`, which the PHONE mints when
|
|
6696
|
+
* the capture is taken, offline, before its first attempt — send the same key on
|
|
6697
|
+
* every retry and the answer comes back `replay: true` with the first record's id.
|
|
6698
|
+
*/
|
|
6699
|
+
captureSubmit(args: {
|
|
6700
|
+
sheet_id: Uuid;
|
|
6701
|
+
client_key: string;
|
|
6702
|
+
answers: Record<string, unknown>;
|
|
6703
|
+
files?: CaptureFileRef[];
|
|
6704
|
+
device?: string | null;
|
|
6705
|
+
captured_at?: string | null;
|
|
6706
|
+
location?: Record<string, unknown> | null;
|
|
6707
|
+
}): Promise<RecordsResult<CaptureOutcome | null>>;
|
|
5911
6708
|
/** Every agent-owned column, with how many cells are filled, stale or pinned, and what it has cost. */
|
|
5912
6709
|
enrichments(args?: {
|
|
5913
6710
|
table_id?: Uuid | null;
|
|
@@ -6026,6 +6823,25 @@ interface RecordsClient {
|
|
|
6026
6823
|
rule_id: Uuid;
|
|
6027
6824
|
muted: boolean;
|
|
6028
6825
|
}): Promise<RecordsResult<boolean>>;
|
|
6826
|
+
/**
|
|
6827
|
+
* WRITE ONE. The store refuses a cadence no runner acts on, a channel this
|
|
6828
|
+
* platform does not send on and quiet hours nobody can parse — by name — then
|
|
6829
|
+
* declares the Rule through `rule_declare`, because a Rule written as a record
|
|
6830
|
+
* carries `data_class = 'record'` and every reader that goes looking for a Rule
|
|
6831
|
+
* steps straight past it (REC-72).
|
|
6832
|
+
*/
|
|
6833
|
+
subscriptionDeclare(args: {
|
|
6834
|
+
table_id: Uuid;
|
|
6835
|
+
spec: SubscriptionSpec;
|
|
6836
|
+
}): Promise<RecordsResult<Uuid>>;
|
|
6837
|
+
/**
|
|
6838
|
+
* SHOW ME ONE NOW. The summary this subscription would send at this moment, with
|
|
6839
|
+
* what entered, left and changed NAMED. It assembles only: nothing is delivered,
|
|
6840
|
+
* nothing is recorded and the watermark does not move.
|
|
6841
|
+
*/
|
|
6842
|
+
subscriptionPreview(args: {
|
|
6843
|
+
rule_id: Uuid;
|
|
6844
|
+
}): Promise<RecordsResult<DigestPreview>>;
|
|
6029
6845
|
docTemplateSave(args: {
|
|
6030
6846
|
table_id: Uuid;
|
|
6031
6847
|
name: string;
|
|
@@ -6753,4 +7569,4 @@ declare function useFieldMutation(): UseFieldMutation;
|
|
|
6753
7569
|
*/
|
|
6754
7570
|
declare function useMergeField(key: string | null, state?: Record<string, unknown>): MergeFieldResolution | null;
|
|
6755
7571
|
|
|
6756
|
-
export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceOption, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PredictedRefusal, type ProvenancePointer, type PublishBinding, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationFlavor, type RelationProperties, type RelationTarget, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordsOptions, type UseRecordsState, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordMutation, useRecords, useRecordsActor, useRecordsClient, useTable, useTables };
|
|
7572
|
+
export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceOption, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineMissingField, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PredictedRefusal, type ProvenancePointer, type PublishBinding, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationFlavor, type RelationProperties, type RelationTarget, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordsOptions, type UseRecordsState, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordMutation, useRecords, useRecordsActor, useRecordsClient, useTable, useTables };
|