@ai-matrx/records 0.24.0 → 0.26.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.
@@ -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";
227
+ readonly returns: "uuid";
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";
213
232
  readonly returns: "uuid";
214
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];
@@ -4227,6 +4458,254 @@ interface EnrichDeclared {
4227
4458
  says: string;
4228
4459
  }
4229
4460
 
4461
+ /** One question, as the sheet words it. */
4462
+ interface CaptureQuestion {
4463
+ field: string;
4464
+ ask: string;
4465
+ help?: string | null;
4466
+ required: boolean;
4467
+ }
4468
+ /** One Field, as the phone needs it to draw a control and validate offline. */
4469
+ interface CaptureField {
4470
+ id: Uuid;
4471
+ key: string;
4472
+ label?: string | null;
4473
+ type?: string | null;
4474
+ unit?: string | null;
4475
+ format?: string | null;
4476
+ multi?: boolean | null;
4477
+ required: boolean;
4478
+ /** `attachment` is what makes the phone open a camera instead of a text box. */
4479
+ parity_type?: string | null;
4480
+ [k: string]: unknown;
4481
+ }
4482
+ /**
4483
+ * Everything the phone loads ONCE and then runs with no network.
4484
+ *
4485
+ * `state` is one of `open`, `not open yet`, `closed`, `read only`. `may_capture` is the
4486
+ * honest label for the screen and never the access decision — `custom.capture_submit`
4487
+ * asks `custom.has_visibility` for `editor` itself, before it admits the sheet exists.
4488
+ */
4489
+ interface CaptureSheetFace {
4490
+ sheet_id: Uuid;
4491
+ organization_id: Uuid;
4492
+ table_id: Uuid;
4493
+ title: string;
4494
+ presentation: {
4495
+ intro?: string | null;
4496
+ flow?: string | null;
4497
+ thank_you?: {
4498
+ title?: string;
4499
+ body?: string;
4500
+ } | null;
4501
+ questions?: CaptureQuestion[];
4502
+ [k: string]: unknown;
4503
+ };
4504
+ fields: CaptureField[];
4505
+ state: string;
4506
+ may_capture: boolean;
4507
+ message: string | null;
4508
+ }
4509
+ /** A sheet in the foreman's list, with what has come in through it. */
4510
+ interface CaptureSheetSummary {
4511
+ sheet_id: Uuid;
4512
+ table_id: Uuid;
4513
+ title: string;
4514
+ slug: string;
4515
+ state: string;
4516
+ opened_at: string | null;
4517
+ captures: number;
4518
+ replays: number;
4519
+ last_capture_at: string | null;
4520
+ presentation: Record<string, unknown>;
4521
+ }
4522
+ /** A file reference the app has already put in the platform's one byte store. */
4523
+ interface CaptureFileRef {
4524
+ field: string;
4525
+ name: string;
4526
+ mime_type?: string | null;
4527
+ size_bytes?: number | null;
4528
+ duration_ms?: number | null;
4529
+ /** The `files.files` id. The File record made from this points at it. */
4530
+ file_id?: string | null;
4531
+ url?: string | null;
4532
+ }
4533
+ /** What one capture became. `replay: true` means it had already arrived. */
4534
+ interface CaptureOutcome {
4535
+ record_id: Uuid | null;
4536
+ state: string;
4537
+ message: string | null;
4538
+ replay: boolean;
4539
+ file_ids: Uuid[] | null;
4540
+ }
4541
+
4542
+ /** One file waiting to go up, with its bytes until they have. */
4543
+ interface QueuedCaptureFile {
4544
+ field: string;
4545
+ name: string;
4546
+ mime_type: string;
4547
+ size_bytes: number;
4548
+ duration_ms?: number | null | undefined;
4549
+ /** The bytes. Dropped once `uploaded` is set, so the queue does not hold them twice. */
4550
+ blob?: Blob | null | undefined;
4551
+ /** Set once the platform's byte store has them. */
4552
+ uploaded?: {
4553
+ file_id?: string | null | undefined;
4554
+ url?: string | null | undefined;
4555
+ } | null | undefined;
4556
+ }
4557
+ /** `waiting` → `sending` → `landed`, or `refused` when the door has decided. */
4558
+ type QueuedCaptureState = "waiting" | "sending" | "landed" | "refused";
4559
+ interface QueuedCapture {
4560
+ /** Minted on the phone when the capture was taken. The row's key AND the door's. */
4561
+ client_key: string;
4562
+ organization_id: string;
4563
+ sheet_id: string;
4564
+ sheet_title?: string | undefined;
4565
+ answers: Record<string, unknown>;
4566
+ files: QueuedCaptureFile[];
4567
+ device: string | null;
4568
+ /** The moment the PHONE took it — never the moment the signal came back. */
4569
+ captured_at: string;
4570
+ location: Record<string, unknown> | null;
4571
+ state: QueuedCaptureState;
4572
+ attempts: number;
4573
+ /** The door's own words, or the network's. Always something a person can act on. */
4574
+ last_error: string | null;
4575
+ record_id: string | null;
4576
+ replayed: boolean;
4577
+ queued_at: string;
4578
+ landed_at: string | null;
4579
+ }
4580
+ interface CaptureQueueCounts {
4581
+ waiting: number;
4582
+ sending: number;
4583
+ refused: number;
4584
+ landed: number;
4585
+ }
4586
+ /** What one pass of `sync` did, item by item. Never a single boolean. */
4587
+ interface CaptureSyncReport {
4588
+ attempted: number;
4589
+ landed: number;
4590
+ replayed: number;
4591
+ refused: number;
4592
+ deferred: number;
4593
+ outcomes: Array<{
4594
+ client_key: string;
4595
+ state: QueuedCaptureState;
4596
+ record_id: string | null;
4597
+ replay: boolean;
4598
+ says: string | null;
4599
+ }>;
4600
+ /** Set when the pass stopped early because the network went away again. */
4601
+ stopped_because?: string;
4602
+ }
4603
+ /** The two calls the queue makes on the outside world. Injected, so this file is headless. */
4604
+ interface CaptureQueuePorts {
4605
+ /** Put the bytes in the platform's ONE byte store and answer with the reference. */
4606
+ uploadFile(file: QueuedCaptureFile, item: QueuedCapture): Promise<{
4607
+ file_id?: string | null;
4608
+ url?: string | null;
4609
+ }>;
4610
+ /** `client.captureSubmit`. */
4611
+ submit(args: {
4612
+ sheet_id: string;
4613
+ client_key: string;
4614
+ answers: Record<string, unknown>;
4615
+ files: CaptureFileRef[];
4616
+ device?: string | null;
4617
+ captured_at?: string | null;
4618
+ location?: Record<string, unknown> | null;
4619
+ }): Promise<{
4620
+ ok: boolean;
4621
+ data?: CaptureOutcome | null;
4622
+ error?: {
4623
+ message?: string;
4624
+ code?: string;
4625
+ } | null;
4626
+ }>;
4627
+ }
4628
+ /** The smallest store the queue needs. IndexedDB in a browser, a Map in a test. */
4629
+ interface CaptureQueueStore {
4630
+ all(): Promise<QueuedCapture[]>;
4631
+ put(item: QueuedCapture): Promise<void>;
4632
+ remove(clientKey: string): Promise<void>;
4633
+ meta(key: string): Promise<string | null>;
4634
+ setMeta(key: string, value: string): Promise<void>;
4635
+ }
4636
+ /**
4637
+ * THE TWO REFUSALS WORTH REPEATING, and they are the package's own list, not a guess.
4638
+ * `results.ts` says it in as many words: `stale_read` (40001) and `timed_out` (57014) are
4639
+ * "the only two refusals in this list worth repeating"; `store_limit` (53400) is the third
4640
+ * — the store ran out of something and the same call works in a quieter moment.
4641
+ *
4642
+ * EVERYTHING ELSE THE DOOR NAMES IS A DECISION. This was the other way round until a real
4643
+ * browser ran it (2026-09-20): the check listed SQLSTATEs, and `RecordsClient` hands back
4644
+ * its own WORD — `invalid_argument`, `door` — with the sqlstate beside it. So a capture the
4645
+ * store had refused by name was filed as a hiccup and queued again forever, which is the
4646
+ * exact silent hole this file's decision 4 exists to prevent. The unit suite passed because
4647
+ * it fed the check SQLSTATEs: it was testing the assumption, not the client.
4648
+ */
4649
+ declare const REFUSALS_WORTH_REPEATING: ReadonlySet<string>;
4650
+ /**
4651
+ * Did the door DECIDE, or did the attempt merely fail? A failure with no code at all is a
4652
+ * network failure and waits; a refusal the store named is a decision and stays.
4653
+ */
4654
+ declare function isDecided(error: {
4655
+ code?: string | null;
4656
+ sqlstate?: string | null;
4657
+ } | null | undefined): boolean;
4658
+ /**
4659
+ * A key that is unique on a phone that has been offline for a day and has never spoken to
4660
+ * a server. `crypto.randomUUID` where it exists; otherwise random bytes, and only then the
4661
+ * clock — because two captures in the same millisecond on two phones is exactly the case
4662
+ * that must not collide.
4663
+ */
4664
+ declare function mintClientKey(): string;
4665
+ /** The IndexedDB store. Returns null where there is no IndexedDB at all. */
4666
+ declare function indexedDbStore(name?: string): CaptureQueueStore | null;
4667
+ /** The in-memory store — for a test, and for a browser with storage switched off. */
4668
+ declare function memoryStore(): CaptureQueueStore;
4669
+ interface CaptureQueueOptions {
4670
+ ports: CaptureQueuePorts;
4671
+ store?: CaptureQueueStore | null;
4672
+ /** Watch `online` and drain when the signal comes back. Default true in a browser. */
4673
+ autoSync?: boolean;
4674
+ /** Told when anything changes, so a badge can say how many are waiting. */
4675
+ onChange?: (counts: CaptureQueueCounts, items: QueuedCapture[]) => void;
4676
+ now?: () => Date;
4677
+ }
4678
+ interface CaptureQueue {
4679
+ /** Write one capture to disk. Returns its client key; the network is not asked here. */
4680
+ enqueue(input: {
4681
+ organization_id: string;
4682
+ sheet_id: string;
4683
+ sheet_title?: string;
4684
+ answers: Record<string, unknown>;
4685
+ files?: Array<Omit<QueuedCaptureFile, "uploaded">>;
4686
+ device?: string | null;
4687
+ captured_at?: string | null;
4688
+ location?: Record<string, unknown> | null;
4689
+ client_key?: string;
4690
+ }): Promise<string>;
4691
+ list(): Promise<QueuedCapture[]>;
4692
+ counts(): Promise<CaptureQueueCounts>;
4693
+ /** Send everything waiting, oldest first, one at a time. Safe to call at any moment. */
4694
+ sync(): Promise<CaptureSyncReport>;
4695
+ /** Try one refused item again — after the person has fixed what the door named. */
4696
+ retry(clientKey: string, patch?: {
4697
+ answers?: Record<string, unknown>;
4698
+ }): Promise<void>;
4699
+ /** Throw one away. The only thing that ever removes a capture nobody sent. */
4700
+ discard(clientKey: string): Promise<void>;
4701
+ /** Forget what has already landed. Never touches anything still waiting. */
4702
+ clearLanded(): Promise<number>;
4703
+ lastSyncedAt(): Promise<string | null>;
4704
+ isOnline(): boolean;
4705
+ dispose(): void;
4706
+ }
4707
+ declare function openCaptureQueue(opts: CaptureQueueOptions): CaptureQueue;
4708
+
4230
4709
  /** VAL-8's whole vocabulary. There is no fourth word. */
4231
4710
  type HistoryActorKind = "user" | "agent" | "system";
4232
4711
  /**
@@ -4455,8 +4934,31 @@ interface DocSignatureRow {
4455
4934
  document_version: number;
4456
4935
  }
4457
4936
 
4458
- /** `immediate` fires on the change; `digest` is collected and sent on a schedule. */
4459
- type SubscriptionCadence = "immediate" | "digest";
4937
+ /**
4938
+ * HOW OFTEN. `instant` fires the moment a record ENTERS the view; the other three
4939
+ * are summaries, assembled by the store at that cadence and sent as ONE message
4940
+ * naming what entered, left and changed since the last one.
4941
+ *
4942
+ * `immediate` and `digest` — the two words this store wrote before 2026-09-20 —
4943
+ * are still accepted everywhere and normalised by `custom.agg_cadence_normalize`
4944
+ * to `instant` and `daily`, so a Rule written then and a Rule written by the
4945
+ * picker now mean the same thing to the same runner.
4946
+ */
4947
+ type SubscriptionCadence = "instant" | "hourly" | "daily" | "weekly";
4948
+ /**
4949
+ * THE HOURS NOT TO BE TOLD IN. A send inside them is not dropped — the store moves
4950
+ * it to the moment they end through the notification system's own `next_attempt_at`,
4951
+ * so there is still one sender and one retry policy and nothing disappears because
4952
+ * of the clock.
4953
+ */
4954
+ interface QuietHours {
4955
+ /** "22:00" */
4956
+ start: string;
4957
+ /** "07:00" — earlier than `start` means the block crosses midnight, which is the ordinary case. */
4958
+ end: string;
4959
+ /** An IANA zone name, e.g. "America/Chicago". Left out, UTC. */
4960
+ tz?: string;
4961
+ }
4460
4962
  /** One subscription, exactly as `custom.agg_subscriptions` reports it. */
4461
4963
  interface Subscription {
4462
4964
  rule_id: Uuid;
@@ -4488,6 +4990,81 @@ interface MySubscription extends Subscription {
4488
4990
  mine: boolean;
4489
4991
  /** I may switch it off: mine, or I hold admin on the Table it watches. */
4490
4992
  i_may_mute: boolean;
4993
+ /** The hours it will not tell me in. Null means any time. */
4994
+ quiet_hours: QuietHours | null;
4995
+ /** When this last told me anything at all. Null means it never has. */
4996
+ last_sent_at: string | null;
4997
+ /**
4998
+ * When the next summary is due — computed by the SAME store functions the runner
4999
+ * uses, so this and the moment it actually fires cannot drift. Null for `instant`,
5000
+ * which has no due time, and null for a muted one, because saying "next Monday"
5001
+ * beside a switch that is off is a screen that lies.
5002
+ */
5003
+ next_digest_at: string | null;
5004
+ }
5005
+ /**
5006
+ * THE SUMMARY THIS SUBSCRIPTION WOULD SEND RIGHT NOW — `custom.subscription_preview`.
5007
+ *
5008
+ * It assembles and returns: nothing is delivered, nothing is recorded and the
5009
+ * watermark does not move, so "show me one now" never costs somebody a text and
5010
+ * never robs the real Monday summary of a week of news.
5011
+ */
5012
+ interface DigestPreview {
5013
+ rule_id: Uuid;
5014
+ name: string;
5015
+ cadence: string;
5016
+ schedule: string | null;
5017
+ quiet_hours: QuietHours | null;
5018
+ channel: string;
5019
+ recipient_user_id: Uuid | null;
5020
+ muted: boolean;
5021
+ table_id: Uuid | null;
5022
+ saved_view_id: Uuid | null;
5023
+ window_start: string;
5024
+ window_end: string;
5025
+ entered: Array<{
5026
+ record_id: Uuid;
5027
+ name: string;
5028
+ }>;
5029
+ left: Array<{
5030
+ record_id: Uuid;
5031
+ name: string;
5032
+ }>;
5033
+ changed: Array<{
5034
+ record_id: Uuid;
5035
+ name: string;
5036
+ }>;
5037
+ counts: {
5038
+ entered: number;
5039
+ left: number;
5040
+ changed: number;
5041
+ in_view: number | null;
5042
+ };
5043
+ /** The grid, filtered by the very view this subscription is over. */
5044
+ link: string | null;
5045
+ subject: string;
5046
+ body: string;
5047
+ /**
5048
+ * NOTHING FAILS SILENTLY. A subscription that cannot produce a summary — nobody to
5049
+ * tell, no view, a view somebody deleted — says which piece is missing, in the
5050
+ * sentence a person reads, instead of returning an empty summary that looks calm.
5051
+ */
5052
+ incomplete: string | null;
5053
+ }
5054
+ /** What `custom.subscription_declare` is asked for. The store refuses the rest BY NAME. */
5055
+ interface SubscriptionSpec {
5056
+ name: string;
5057
+ saved_view_id: Uuid;
5058
+ cadence: SubscriptionCadence;
5059
+ /** "monday 08:00", "09:30". Meaningless for `instant`. */
5060
+ schedule?: string | null;
5061
+ channel?: "in_app" | "email" | "sms";
5062
+ quiet_hours?: QuietHours | null;
5063
+ /** Left out, the person setting it up — "tell ME". */
5064
+ recipient_user_id?: Uuid | null;
5065
+ event_key?: string;
5066
+ /** Re-state an existing subscription rather than making a second one. */
5067
+ rule_id?: Uuid | null;
4491
5068
  }
4492
5069
  /** The `subscription` block a Rule record carries. Written through `record_write`. */
4493
5070
  interface SubscriptionBlock {
@@ -5908,6 +6485,50 @@ interface RecordsClient {
5908
6485
  filter?: Record<string, AggregateFilter>;
5909
6486
  limit?: number;
5910
6487
  }): Promise<RecordsResult<StuckRow[]>>;
6488
+ /**
6489
+ * Declare or re-state a crew capture sheet over a Table. Admin on the Table.
6490
+ * Closed to the crew until `capturePublish`, like every publishing act here.
6491
+ */
6492
+ captureSheetDeclare(args: {
6493
+ table_id: Uuid;
6494
+ title: string;
6495
+ questions: Array<Record<string, unknown>>;
6496
+ presentation?: Record<string, unknown> | null;
6497
+ sheet_id?: Uuid | null;
6498
+ notify_rule_id?: Uuid | null;
6499
+ }): Promise<RecordsResult<Uuid>>;
6500
+ /** Open the sheet to the crew, or close it. Admin on the Table. */
6501
+ capturePublish(args: {
6502
+ sheet_id: Uuid;
6503
+ open?: boolean;
6504
+ }): Promise<RecordsResult<string | null>>;
6505
+ /** The crew sheets of this organization, with what has come in through each. */
6506
+ captureSheets(args?: {
6507
+ table_id?: Uuid | null;
6508
+ }): Promise<RecordsResult<CaptureSheetSummary[]>>;
6509
+ /**
6510
+ * Everything a phone needs to run one sheet OFFLINE — the questions, the Fields
6511
+ * with their ids and parity types, and an honest `may_capture` with a sentence.
6512
+ * Load it once on a signal; it is the last network call before the walk.
6513
+ */
6514
+ captureOpen(args: {
6515
+ sheet_id: Uuid;
6516
+ }): Promise<RecordsResult<CaptureSheetFace | null>>;
6517
+ /**
6518
+ * One capture: the answers, the file references, the device, the moment the phone
6519
+ * took it and the place. Idempotent on `client_key`, which the PHONE mints when
6520
+ * the capture is taken, offline, before its first attempt — send the same key on
6521
+ * every retry and the answer comes back `replay: true` with the first record's id.
6522
+ */
6523
+ captureSubmit(args: {
6524
+ sheet_id: Uuid;
6525
+ client_key: string;
6526
+ answers: Record<string, unknown>;
6527
+ files?: CaptureFileRef[];
6528
+ device?: string | null;
6529
+ captured_at?: string | null;
6530
+ location?: Record<string, unknown> | null;
6531
+ }): Promise<RecordsResult<CaptureOutcome | null>>;
5911
6532
  /** Every agent-owned column, with how many cells are filled, stale or pinned, and what it has cost. */
5912
6533
  enrichments(args?: {
5913
6534
  table_id?: Uuid | null;
@@ -6026,6 +6647,25 @@ interface RecordsClient {
6026
6647
  rule_id: Uuid;
6027
6648
  muted: boolean;
6028
6649
  }): Promise<RecordsResult<boolean>>;
6650
+ /**
6651
+ * WRITE ONE. The store refuses a cadence no runner acts on, a channel this
6652
+ * platform does not send on and quiet hours nobody can parse — by name — then
6653
+ * declares the Rule through `rule_declare`, because a Rule written as a record
6654
+ * carries `data_class = 'record'` and every reader that goes looking for a Rule
6655
+ * steps straight past it (REC-72).
6656
+ */
6657
+ subscriptionDeclare(args: {
6658
+ table_id: Uuid;
6659
+ spec: SubscriptionSpec;
6660
+ }): Promise<RecordsResult<Uuid>>;
6661
+ /**
6662
+ * SHOW ME ONE NOW. The summary this subscription would send at this moment, with
6663
+ * what entered, left and changed NAMED. It assembles only: nothing is delivered,
6664
+ * nothing is recorded and the watermark does not move.
6665
+ */
6666
+ subscriptionPreview(args: {
6667
+ rule_id: Uuid;
6668
+ }): Promise<RecordsResult<DigestPreview>>;
6029
6669
  docTemplateSave(args: {
6030
6670
  table_id: Uuid;
6031
6671
  name: string;
@@ -6753,4 +7393,4 @@ declare function useFieldMutation(): UseFieldMutation;
6753
7393
  */
6754
7394
  declare function useMergeField(key: string | null, state?: Record<string, unknown>): MergeFieldResolution | null;
6755
7395
 
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 };
7396
+ 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, 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, 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, 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 };