@ai-matrx/records 0.6.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -179,11 +179,21 @@ declare const STORE_DOORS: readonly [{
179
179
  readonly args: "p_declared text";
180
180
  readonly returns: "text";
181
181
  readonly security: "invoker";
182
+ }, {
183
+ readonly name: "agent_change_approval";
184
+ readonly args: "p_organization uuid, p_conversation uuid DEFAULT NULL::uuid, p_table uuid DEFAULT NULL::uuid";
185
+ readonly returns: "jsonb";
186
+ readonly security: "definer";
182
187
  }, {
183
188
  readonly name: "agent_context";
184
189
  readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 50";
185
190
  readonly returns: "jsonb";
186
191
  readonly security: "invoker";
192
+ }, {
193
+ readonly name: "agent_table_claim";
194
+ readonly args: "p_organization uuid, p_table uuid, p_conversation uuid DEFAULT NULL::uuid";
195
+ readonly returns: "void";
196
+ readonly security: "definer";
187
197
  }, {
188
198
  readonly name: "agg_assert_key";
189
199
  readonly args: "p_key text";
@@ -269,6 +279,11 @@ declare const STORE_DOORS: readonly [{
269
279
  readonly args: "p_organization_id uuid, p_form_id uuid, p_bucket text, p_token_id uuid DEFAULT NULL::uuid";
270
280
  readonly returns: "integer";
271
281
  readonly security: "definer";
282
+ }, {
283
+ readonly name: "anon_submissions";
284
+ readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_state text DEFAULT NULL::text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0";
285
+ readonly returns: "TABLE(id uuid, form_id uuid, inbound_id uuid, table_id uuid, source text, state text, payload jsonb, raw_payload jsonb, client_key text, record_id uuid, remote_origin text, rejection_reason text, created_at timestamp with time zone, cleared_at timestamp with time zone)";
286
+ readonly security: "definer";
272
287
  }, {
273
288
  readonly name: "anon_token_issue";
274
289
  readonly args: "p_organization_id uuid, p_mode text, p_allowed_origins jsonb, p_form_id uuid DEFAULT NULL::uuid, p_saved_view_id uuid DEFAULT NULL::uuid, p_record_id uuid DEFAULT NULL::uuid, p_expires_at timestamp with time zone DEFAULT NULL::timestamp with time zone";
@@ -309,6 +324,16 @@ declare const STORE_DOORS: readonly [{
309
324
  readonly args: "p_organization_id uuid, p_door text";
310
325
  readonly returns: "void";
311
326
  readonly security: "invoker";
327
+ }, {
328
+ readonly name: "assert_entity_door";
329
+ readonly args: "p_organization_id uuid, p_door text";
330
+ readonly returns: "void";
331
+ readonly security: "definer";
332
+ }, {
333
+ readonly name: "assert_entity_is_organization_scoped";
334
+ readonly args: "p_token text, p_label text, p_scoped boolean";
335
+ readonly returns: "void";
336
+ readonly security: "invoker";
312
337
  }, {
313
338
  readonly name: "assert_may_know_table";
314
339
  readonly args: "p_organization_id uuid, p_table_id uuid, p_door text";
@@ -344,6 +369,16 @@ declare const STORE_DOORS: readonly [{
344
369
  readonly args: "";
345
370
  readonly returns: "name";
346
371
  readonly security: "invoker";
372
+ }, {
373
+ readonly name: "carrying_edges_in";
374
+ readonly args: "p_organization_id uuid";
375
+ readonly returns: "TABLE(container_type text, container_id uuid, item_type text, item_id uuid, conveys_max permission_level)";
376
+ readonly security: "definer";
377
+ }, {
378
+ readonly name: "carrying_edges_of";
379
+ readonly args: "p_item_type text, p_item_id uuid";
380
+ readonly returns: "TABLE(container_type text, container_id uuid, conveys_max permission_level)";
381
+ readonly security: "definer";
347
382
  }, {
348
383
  readonly name: "client_write_grants";
349
384
  readonly args: "";
@@ -389,6 +424,11 @@ declare const STORE_DOORS: readonly [{
389
424
  readonly args: "p_organization_id uuid, p_record_id uuid";
390
425
  readonly returns: "uuid[]";
391
426
  readonly security: "invoker";
427
+ }, {
428
+ readonly name: "delete_preview";
429
+ readonly args: "p_organization_id uuid, p_record_id uuid";
430
+ readonly returns: "jsonb";
431
+ readonly security: "definer";
392
432
  }, {
393
433
  readonly name: "delete_rule";
394
434
  readonly args: "p_organization_id uuid, p_record_id uuid, p_apply boolean DEFAULT true";
@@ -439,6 +479,11 @@ declare const STORE_DOORS: readonly [{
439
479
  readonly args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid";
440
480
  readonly returns: "uuid";
441
481
  readonly security: "definer";
482
+ }, {
483
+ readonly name: "doc_render_read";
484
+ readonly args: "p_organization_id uuid, p_render_id uuid";
485
+ readonly returns: "jsonb";
486
+ readonly security: "definer";
442
487
  }, {
443
488
  readonly name: "doc_render_write";
444
489
  readonly args: "p_organization_id uuid, p_template_id uuid, p_record_id uuid, p_table_id uuid, p_template_version integer, p_body text, p_content_hash text";
@@ -459,11 +504,21 @@ declare const STORE_DOORS: readonly [{
459
504
  readonly args: "p_organization_id uuid, p_signature_id uuid";
460
505
  readonly returns: "jsonb";
461
506
  readonly security: "invoker";
507
+ }, {
508
+ readonly name: "doc_signature_read";
509
+ readonly args: "p_organization_id uuid, p_signature_id uuid";
510
+ readonly returns: "jsonb";
511
+ readonly security: "definer";
462
512
  }, {
463
513
  readonly name: "doc_signature_write";
464
514
  readonly args: "p_organization_id uuid, p_render_id uuid, p_record_id uuid, p_field_key text, p_signer_name text, p_signer_user_id uuid, p_document_hash text, p_document_version integer";
465
515
  readonly returns: "uuid";
466
516
  readonly security: "definer";
517
+ }, {
518
+ readonly name: "doc_template_read";
519
+ readonly args: "p_organization_id uuid, p_template_id uuid";
520
+ readonly returns: "jsonb";
521
+ readonly security: "definer";
467
522
  }, {
468
523
  readonly name: "doc_template_save";
469
524
  readonly args: "p_organization_id uuid, p_table_id uuid, p_name text, p_body text, p_template_id uuid DEFAULT NULL::uuid";
@@ -504,6 +559,51 @@ declare const STORE_DOORS: readonly [{
504
559
  readonly args: "p_user_id uuid, p_organization_id uuid, p_id uuid, p_type text DEFAULT 'record'::text";
505
560
  readonly returns: "permission_level";
506
561
  readonly security: "definer";
562
+ }, {
563
+ readonly name: "entity_field_declare";
564
+ readonly args: "p_organization_id uuid, p_token text, p_spec jsonb";
565
+ readonly returns: "uuid";
566
+ readonly security: "definer";
567
+ }, {
568
+ readonly name: "entity_field_retire";
569
+ readonly args: "p_organization_id uuid, p_field_id uuid";
570
+ readonly returns: "uuid";
571
+ readonly security: "definer";
572
+ }, {
573
+ readonly name: "entity_field_rights";
574
+ readonly args: "p_organization_id uuid, p_token text";
575
+ readonly returns: "jsonb";
576
+ readonly security: "definer";
577
+ }, {
578
+ readonly name: "entity_field_update";
579
+ readonly args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb";
580
+ readonly returns: "uuid";
581
+ readonly security: "definer";
582
+ }, {
583
+ readonly name: "entity_fields";
584
+ readonly args: "p_organization_id uuid, p_token text";
585
+ readonly returns: "SETOF custom.record";
586
+ readonly security: "definer";
587
+ }, {
588
+ readonly name: "entity_record_read";
589
+ readonly args: "p_organization_id uuid, p_token text, p_record_id uuid";
590
+ readonly returns: "jsonb";
591
+ readonly security: "invoker";
592
+ }, {
593
+ readonly name: "entity_records_find";
594
+ readonly args: "p_organization_id uuid, p_token text, p_key text, p_value jsonb DEFAULT NULL::jsonb, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0";
595
+ readonly returns: "jsonb";
596
+ readonly security: "invoker";
597
+ }, {
598
+ readonly name: "entity_table";
599
+ readonly args: "p_token text";
600
+ readonly returns: "TABLE(token text, schema_name text, table_name text, type text, title_column text, label text, has_organization boolean, has_deleted_at boolean)";
601
+ readonly security: "invoker";
602
+ }, {
603
+ readonly name: "entity_value_write";
604
+ readonly args: "p_organization_id uuid, p_token text, p_record_id uuid, p_patch jsonb";
605
+ readonly returns: "jsonb";
606
+ readonly security: "invoker";
507
607
  }, {
508
608
  readonly name: "export_records";
509
609
  readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000";
@@ -563,7 +663,7 @@ declare const STORE_DOORS: readonly [{
563
663
  readonly name: "field_dependants";
564
664
  readonly args: "p_organization_id uuid, p_field_id uuid";
565
665
  readonly returns: "TABLE(kind text, dependant_id uuid, label text, how text)";
566
- readonly security: "invoker";
666
+ readonly security: "definer";
567
667
  }, {
568
668
  readonly name: "field_kernel_id";
569
669
  readonly args: "";
@@ -599,11 +699,46 @@ declare const STORE_DOORS: readonly [{
599
699
  readonly args: "";
600
700
  readonly returns: "uuid";
601
701
  readonly security: "invoker";
702
+ }, {
703
+ readonly name: "form_declare";
704
+ readonly args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text";
705
+ readonly returns: "uuid";
706
+ readonly security: "definer";
707
+ }, {
708
+ readonly name: "form_notify";
709
+ readonly args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid";
710
+ readonly returns: "uuid";
711
+ readonly security: "invoker";
712
+ }, {
713
+ readonly name: "form_public";
714
+ readonly args: "p_form_id uuid";
715
+ readonly returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, state text, message text)";
716
+ readonly security: "definer";
717
+ }, {
718
+ readonly name: "form_slug";
719
+ readonly args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid";
720
+ readonly returns: "text";
721
+ readonly security: "invoker";
722
+ }, {
723
+ readonly name: "form_submit";
724
+ readonly args: "p_form_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text";
725
+ readonly returns: "TABLE(submission_id uuid, record_id uuid, state text, message text)";
726
+ readonly security: "definer";
727
+ }, {
728
+ readonly name: "forms";
729
+ readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
730
+ readonly returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, submission_cap integer, responses bigint, in_table bigint, held bigint, rejected bigint, state text, quarantine_rule_id uuid, notify_rule_id uuid, presentation jsonb)";
731
+ readonly security: "definer";
602
732
  }, {
603
733
  readonly name: "formula_value";
604
734
  readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb";
605
735
  readonly returns: "jsonb";
606
736
  readonly security: "invoker";
737
+ }, {
738
+ readonly name: "guard_refusals_are_complete";
739
+ readonly args: "";
740
+ readonly returns: "TABLE(guard text, said text)";
741
+ readonly security: "invoker";
607
742
  }, {
608
743
  readonly name: "has_visibility";
609
744
  readonly args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
@@ -759,6 +894,11 @@ declare const STORE_DOORS: readonly [{
759
894
  readonly args: "p_organization_id uuid, p_record_id uuid";
760
895
  readonly returns: "TABLE(version integer, changed_at timestamp with time zone, changed_by uuid, summary text, operation text, changed_fields jsonb)";
761
896
  readonly security: "definer";
897
+ }, {
898
+ readonly name: "is_a_retirement";
899
+ readonly args: "p_old_deleted timestamp with time zone, p_new_deleted timestamp with time zone, p_old_data jsonb, p_new_data jsonb, p_old_table uuid, p_new_table uuid, p_old_org uuid, p_new_org uuid, p_old_class text, p_new_class text";
900
+ readonly returns: "boolean";
901
+ readonly security: "invoker";
762
902
  }, {
763
903
  readonly name: "lookup_value";
764
904
  readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb";
@@ -823,7 +963,7 @@ declare const STORE_DOORS: readonly [{
823
963
  readonly name: "migrate_retype";
824
964
  readonly args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text";
825
965
  readonly returns: "jsonb";
826
- readonly security: "invoker";
966
+ readonly security: "definer";
827
967
  }, {
828
968
  readonly name: "migrate_split";
829
969
  readonly args: "p_organization_id uuid, p_record_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text";
@@ -834,6 +974,31 @@ declare const STORE_DOORS: readonly [{
834
974
  readonly args: "p_organization_id uuid, p_log_id uuid";
835
975
  readonly returns: "jsonb";
836
976
  readonly security: "definer";
977
+ }, {
978
+ readonly name: "migrations";
979
+ readonly args: "p_organization_id uuid, p_target_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100";
980
+ readonly returns: "TABLE(id uuid, verb text, target_kind text, target_id uuid, note text, applied_at timestamp with time zone, applied_by uuid, undone_at timestamp with time zone)";
981
+ readonly security: "definer";
982
+ }, {
983
+ readonly name: "my_level";
984
+ readonly args: "p_organization_id uuid, p_id uuid, p_type text DEFAULT 'record'::text";
985
+ readonly returns: "permission_level";
986
+ readonly security: "definer";
987
+ }, {
988
+ readonly name: "my_levels";
989
+ readonly args: "p_organization_id uuid, p_ids jsonb, p_type text DEFAULT 'record'::text";
990
+ readonly returns: "TABLE(id uuid, level permission_level)";
991
+ readonly security: "definer";
992
+ }, {
993
+ readonly name: "organization_clear";
994
+ readonly args: "p_organization_id uuid, p_confirm text, p_and_destroy boolean DEFAULT false";
995
+ readonly returns: "jsonb";
996
+ readonly security: "definer";
997
+ }, {
998
+ readonly name: "organization_contents";
999
+ readonly args: "p_organization_id uuid";
1000
+ readonly returns: "jsonb";
1001
+ readonly security: "definer";
837
1002
  }, {
838
1003
  readonly name: "organization_kernel_id";
839
1004
  readonly args: "";
@@ -1034,6 +1199,31 @@ declare const STORE_DOORS: readonly [{
1034
1199
  readonly args: "p_organization_id uuid, p_roots uuid[]";
1035
1200
  readonly returns: "TABLE(record_id uuid, depth integer, via text)";
1036
1201
  readonly security: "invoker";
1202
+ }, {
1203
+ readonly name: "reaches_directly";
1204
+ readonly args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
1205
+ readonly returns: "boolean";
1206
+ readonly security: "definer";
1207
+ }, {
1208
+ readonly name: "read_door_carried_ids";
1209
+ readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level, OUT o_ids uuid[], OUT o_containers integer";
1210
+ readonly returns: "record";
1211
+ readonly security: "definer";
1212
+ }, {
1213
+ readonly name: "read_door_granted_ids";
1214
+ readonly args: "p_organization_id uuid, p_table_id uuid";
1215
+ readonly returns: "uuid[]";
1216
+ readonly security: "definer";
1217
+ }, {
1218
+ readonly name: "read_door_ladder_ceiling";
1219
+ readonly args: "";
1220
+ readonly returns: "integer";
1221
+ readonly security: "invoker";
1222
+ }, {
1223
+ readonly name: "read_door_parity";
1224
+ readonly args: "p_organization_id uuid, p_table_id uuid, p_user uuid, p_required permission_level, p_sample integer";
1225
+ readonly returns: "TABLE(record_id uuid, set_based boolean, per_row boolean, verdict text)";
1226
+ readonly security: "definer";
1037
1227
  }, {
1038
1228
  readonly name: "read_paths_outside_the_door";
1039
1229
  readonly args: "";
@@ -1059,6 +1249,11 @@ declare const STORE_DOORS: readonly [{
1059
1249
  readonly args: "p_organization_id uuid, p_record_id uuid";
1060
1250
  readonly returns: "TABLE(rule_id uuid, rule_name text, rule_version integer, applies boolean, answer jsonb)";
1061
1251
  readonly security: "invoker";
1252
+ }, {
1253
+ readonly name: "record_as_of";
1254
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone";
1255
+ readonly returns: "TABLE(state jsonb, replayed boolean)";
1256
+ readonly security: "definer";
1062
1257
  }, {
1063
1258
  readonly name: "record_card";
1064
1259
  readonly args: "p_viewer uuid, p_organization_id uuid, p_record_id uuid";
@@ -1124,6 +1319,11 @@ declare const STORE_DOORS: readonly [{
1124
1319
  readonly args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid";
1125
1320
  readonly returns: "uuid";
1126
1321
  readonly security: "definer";
1322
+ }, {
1323
+ readonly name: "relation_edges_withdraw";
1324
+ readonly args: "p_organization_id uuid, p_field_ids uuid[], p_why text";
1325
+ readonly returns: "integer";
1326
+ readonly security: "definer";
1127
1327
  }, {
1128
1328
  readonly name: "relation_own";
1129
1329
  readonly args: "p_organization_id uuid, p_owner_id uuid, p_target_id uuid";
@@ -1194,6 +1394,11 @@ declare const STORE_DOORS: readonly [{
1194
1394
  readonly args: "p_organization_id uuid, p_record_id uuid";
1195
1395
  readonly returns: "jsonb";
1196
1396
  readonly security: "invoker";
1397
+ }, {
1398
+ readonly name: "rule_declare";
1399
+ readonly args: "p_organization_id uuid, p_spec jsonb, p_rule_id uuid DEFAULT NULL::uuid";
1400
+ readonly returns: "uuid";
1401
+ readonly security: "definer";
1197
1402
  }, {
1198
1403
  readonly name: "rule_dependency_edges";
1199
1404
  readonly args: "p_organization_id uuid, p_row custom.record DEFAULT NULL::custom.record";
@@ -1254,6 +1459,11 @@ declare const STORE_DOORS: readonly [{
1254
1459
  readonly args: "p_organization_id uuid, p_rule_id uuid";
1255
1460
  readonly returns: "integer";
1256
1461
  readonly security: "invoker";
1462
+ }, {
1463
+ readonly name: "said";
1464
+ readonly args: "p_value text, p_when_there_is_none text";
1465
+ readonly returns: "text";
1466
+ readonly security: "invoker";
1257
1467
  }, {
1258
1468
  readonly name: "share_access";
1259
1469
  readonly args: "p_organization_id uuid, p_subject_id uuid";
@@ -1294,6 +1504,11 @@ declare const STORE_DOORS: readonly [{
1294
1504
  readonly args: "p_organization_id uuid, p_type text, p_id uuid";
1295
1505
  readonly returns: "text";
1296
1506
  readonly security: "definer";
1507
+ }, {
1508
+ readonly name: "shared_only_disagreements";
1509
+ readonly args: "p_pretend text DEFAULT NULL::text";
1510
+ readonly returns: "TABLE(organization_id uuid, organization_name text, member_id uuid, record_id uuid, table_id uuid, ladder boolean, read_door boolean, rls_mirror boolean, why text)";
1511
+ readonly security: "invoker";
1297
1512
  }, {
1298
1513
  readonly name: "size_refusal";
1299
1514
  readonly args: "p_organization_id uuid, p_data jsonb";
@@ -1339,6 +1554,11 @@ declare const STORE_DOORS: readonly [{
1339
1554
  readonly args: "p_organization_id uuid, p_spec jsonb";
1340
1555
  readonly returns: "uuid";
1341
1556
  readonly security: "definer";
1557
+ }, {
1558
+ readonly name: "table_has_a_visible_record";
1559
+ readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid";
1560
+ readonly returns: "boolean";
1561
+ readonly security: "definer";
1342
1562
  }, {
1343
1563
  readonly name: "table_is_live";
1344
1564
  readonly args: "p_organization_id uuid, p_table_id uuid";
@@ -1373,7 +1593,7 @@ declare const STORE_DOORS: readonly [{
1373
1593
  readonly name: "table_type_field";
1374
1594
  readonly args: "p_organization_id uuid, p_table_id uuid";
1375
1595
  readonly returns: "text";
1376
- readonly security: "invoker";
1596
+ readonly security: "definer";
1377
1597
  }, {
1378
1598
  readonly name: "tables_at_home";
1379
1599
  readonly args: "p_organization_id uuid, p_home_ids uuid[]";
@@ -1428,7 +1648,7 @@ declare const STORE_DOORS: readonly [{
1428
1648
  readonly name: "value_read";
1429
1649
  readonly args: "p_organization_id uuid, p_record_id uuid, p_key text";
1430
1650
  readonly returns: "TABLE(field_key text, field_id uuid, value jsonb, value_version integer, source jsonb, absent_reason text, actor text, on_behalf_of text, written_at timestamp with time zone, alternates jsonb)";
1431
- readonly security: "invoker";
1651
+ readonly security: "definer";
1432
1652
  }, {
1433
1653
  readonly name: "value_versions";
1434
1654
  readonly args: "p_old jsonb, p_new jsonb";
@@ -1459,16 +1679,56 @@ declare const STORE_DOORS: readonly [{
1459
1679
  readonly args: "p_container_type text, p_container_id uuid";
1460
1680
  readonly returns: "integer";
1461
1681
  readonly security: "definer";
1682
+ }, {
1683
+ readonly name: "visible_predicate_sql";
1684
+ readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level, p_alias text DEFAULT 'r'::text";
1685
+ readonly returns: "text";
1686
+ readonly security: "definer";
1462
1687
  }, {
1463
1688
  readonly name: "visible_record_ids";
1464
1689
  readonly args: "p_user_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
1465
1690
  readonly returns: "TABLE(id uuid)";
1466
1691
  readonly security: "definer";
1692
+ }, {
1693
+ readonly name: "visible_set";
1694
+ readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level, OUT o_all_visible boolean, OUT o_true_visibility platform.visibility[], OUT o_granted_all uuid[], OUT o_granted_visible uuid[], OUT o_carried_visible uuid[], OUT o_ladder_calls integer, OUT o_fallback boolean, OUT o_note text";
1695
+ readonly returns: "record";
1696
+ readonly security: "definer";
1467
1697
  }, {
1468
1698
  readonly name: "widget_kernel_id";
1469
1699
  readonly args: "";
1470
1700
  readonly returns: "uuid";
1471
1701
  readonly security: "invoker";
1702
+ }, {
1703
+ readonly name: "work_approval_approvers";
1704
+ readonly args: "p_organization_id uuid, p_subject_id uuid, p_approver_id uuid DEFAULT NULL::uuid";
1705
+ readonly returns: "TABLE(user_id uuid, name text, why text)";
1706
+ readonly security: "definer";
1707
+ }, {
1708
+ readonly name: "work_approval_decide";
1709
+ readonly args: "p_organization_id uuid, p_approval_id uuid, p_approve boolean, p_note text DEFAULT NULL::text";
1710
+ readonly returns: "jsonb";
1711
+ readonly security: "definer";
1712
+ }, {
1713
+ readonly name: "work_approval_may_decide";
1714
+ readonly args: "p_organization_id uuid, p_approval_id uuid";
1715
+ readonly returns: "boolean";
1716
+ readonly security: "definer";
1717
+ }, {
1718
+ readonly name: "work_approval_read";
1719
+ readonly args: "p_organization_id uuid, p_approval_id uuid";
1720
+ readonly returns: "jsonb";
1721
+ readonly security: "definer";
1722
+ }, {
1723
+ readonly name: "work_approval_request";
1724
+ readonly args: "p_organization_id uuid, p_subject_id uuid, p_change jsonb, p_note text DEFAULT NULL::text, p_approver_id uuid DEFAULT NULL::uuid, p_origin text DEFAULT 'person'::text, p_conversation_id uuid DEFAULT NULL::uuid";
1725
+ readonly returns: "jsonb";
1726
+ readonly security: "definer";
1727
+ }, {
1728
+ readonly name: "work_assign";
1729
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_assignee_user_id uuid, p_due_date timestamp with time zone DEFAULT NULL::timestamp with time zone, p_clear_due boolean DEFAULT false";
1730
+ readonly returns: "jsonb";
1731
+ readonly security: "definer";
1472
1732
  }, {
1473
1733
  readonly name: "work_assignment_fields";
1474
1734
  readonly args: "p_options_table_id uuid DEFAULT NULL::uuid";
@@ -1478,32 +1738,57 @@ declare const STORE_DOORS: readonly [{
1478
1738
  readonly name: "work_has_assignment";
1479
1739
  readonly args: "p_organization_id uuid, p_table_id uuid";
1480
1740
  readonly returns: "boolean";
1481
- readonly security: "invoker";
1741
+ readonly security: "definer";
1742
+ }, {
1743
+ readonly name: "work_inbox";
1744
+ readonly args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false";
1745
+ readonly returns: "TABLE(item_id uuid, kind text, origin text, title text, subject_id uuid, subject_kind text, summary text, state text, due_on timestamp with time zone, due_state text, actionable boolean, requested_by uuid, requested_by_name text, at timestamp with time zone)";
1746
+ readonly security: "definer";
1482
1747
  }, {
1483
1748
  readonly name: "work_instantiation_shape";
1484
1749
  readonly args: "p_organization_id uuid, p_instantiation_id uuid";
1485
1750
  readonly returns: "jsonb";
1486
- readonly security: "invoker";
1751
+ readonly security: "definer";
1752
+ }, {
1753
+ readonly name: "work_list";
1754
+ readonly args: "p_organization_id uuid, p_flavour text DEFAULT 'mine'::text, p_include_finished boolean DEFAULT false, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0";
1755
+ readonly returns: "TABLE(record_id uuid, table_id uuid, table_name text, title text, assignee_id uuid, assignee_name text, assignee_user_id uuid, due_on timestamp with time zone, due_state text, status text, terminal boolean, assigned_by uuid, updated_at timestamp with time zone)";
1756
+ readonly security: "definer";
1757
+ }, {
1758
+ readonly name: "work_person";
1759
+ readonly args: "p_organization_id uuid, p_user_id uuid, p_create boolean DEFAULT true";
1760
+ readonly returns: "uuid";
1761
+ readonly security: "definer";
1762
+ }, {
1763
+ readonly name: "work_record_states";
1764
+ readonly args: "p_organization_id uuid, p_record_id uuid";
1765
+ readonly returns: "TABLE(state_id uuid, name text, sort integer, terminal boolean, is_current boolean, allowed boolean, refusal text)";
1766
+ readonly security: "definer";
1487
1767
  }, {
1488
1768
  readonly name: "work_relation_kinds";
1489
1769
  readonly args: "";
1490
1770
  readonly returns: "TABLE(kind text, available boolean, why text)";
1491
1771
  readonly security: "invoker";
1772
+ }, {
1773
+ readonly name: "work_set_state";
1774
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_state_id uuid";
1775
+ readonly returns: "jsonb";
1776
+ readonly security: "definer";
1492
1777
  }, {
1493
1778
  readonly name: "work_slot_expire";
1494
1779
  readonly args: "p_organization_id uuid, p_table_id uuid";
1495
1780
  readonly returns: "integer";
1496
- readonly security: "invoker";
1781
+ readonly security: "definer";
1497
1782
  }, {
1498
1783
  readonly name: "work_slot_hold";
1499
1784
  readonly args: "p_organization_id uuid, p_table_id uuid, p_slot_key text, p_holder text, p_ttl interval DEFAULT '00:15:00'::interval";
1500
1785
  readonly returns: "jsonb";
1501
- readonly security: "invoker";
1786
+ readonly security: "definer";
1502
1787
  }, {
1503
1788
  readonly name: "work_slot_holds";
1504
1789
  readonly args: "p_organization_id uuid, p_table_id uuid";
1505
1790
  readonly returns: "TABLE(hold_id uuid, slot_key text, holder text, expires_at timestamp with time zone, expired boolean)";
1506
- readonly security: "invoker";
1791
+ readonly security: "definer";
1507
1792
  }, {
1508
1793
  readonly name: "work_slot_index_name";
1509
1794
  readonly args: "p_table_id uuid";
@@ -1513,12 +1798,12 @@ declare const STORE_DOORS: readonly [{
1513
1798
  readonly name: "work_slot_release";
1514
1799
  readonly args: "p_organization_id uuid, p_hold_id uuid";
1515
1800
  readonly returns: "boolean";
1516
- readonly security: "invoker";
1801
+ readonly security: "definer";
1517
1802
  }, {
1518
1803
  readonly name: "work_slots_declare";
1519
1804
  readonly args: "p_organization_id uuid, p_name text, p_slug text, p_home_id uuid DEFAULT NULL::uuid";
1520
1805
  readonly returns: "jsonb";
1521
- readonly security: "invoker";
1806
+ readonly security: "definer";
1522
1807
  }, {
1523
1808
  readonly name: "work_states";
1524
1809
  readonly args: "";
@@ -1528,17 +1813,17 @@ declare const STORE_DOORS: readonly [{
1528
1813
  readonly name: "work_take_assignment";
1529
1814
  readonly args: "p_organization_id uuid, p_table_id uuid";
1530
1815
  readonly returns: "jsonb";
1531
- readonly security: "invoker";
1816
+ readonly security: "definer";
1532
1817
  }, {
1533
1818
  readonly name: "work_template_declare";
1534
1819
  readonly args: "p_organization_id uuid, p_name text, p_graph jsonb";
1535
1820
  readonly returns: "uuid";
1536
- readonly security: "invoker";
1821
+ readonly security: "definer";
1537
1822
  }, {
1538
1823
  readonly name: "work_template_instantiate";
1539
1824
  readonly args: "p_organization_id uuid, p_template_id uuid, p_overrides jsonb DEFAULT '{}'::jsonb";
1540
1825
  readonly returns: "jsonb";
1541
- readonly security: "invoker";
1826
+ readonly security: "definer";
1542
1827
  }, {
1543
1828
  readonly name: "work_template_refusal";
1544
1829
  readonly args: "p_graph jsonb";
@@ -1548,30 +1833,35 @@ declare const STORE_DOORS: readonly [{
1548
1833
  readonly name: "work_template_shape";
1549
1834
  readonly args: "p_organization_id uuid, p_template_id uuid";
1550
1835
  readonly returns: "jsonb";
1551
- readonly security: "invoker";
1836
+ readonly security: "definer";
1837
+ }, {
1838
+ readonly name: "work_templates";
1839
+ readonly args: "p_organization_id uuid, p_limit integer DEFAULT 100";
1840
+ readonly returns: "TABLE(template_id uuid, name text, nodes integer, relations integer, created_at timestamp with time zone)";
1841
+ readonly security: "definer";
1552
1842
  }, {
1553
1843
  readonly name: "work_transition_refusal";
1554
1844
  readonly args: "p_organization_id uuid, p_from_state_id uuid, p_to_state_id uuid";
1555
1845
  readonly returns: "text";
1556
- readonly security: "invoker";
1846
+ readonly security: "definer";
1557
1847
  }, {
1558
1848
  readonly name: "work_whose_turn";
1559
1849
  readonly args: "p_organization_id uuid, p_table_id uuid, p_include_finished boolean DEFAULT false";
1560
1850
  readonly returns: "TABLE(record_id uuid, title text, assignee_id uuid, turn text, due_on timestamp with time zone, state text, status text, terminal boolean)";
1561
- readonly security: "invoker";
1851
+ readonly security: "definer";
1562
1852
  }];
1563
1853
  /** The campaign's own knobs, with the value the store resolves them to today. */
1564
1854
  declare const STORE_KNOBS: readonly [{
1565
1855
  readonly key: "accessible_entity_ids_guard";
1566
- readonly value: "false";
1856
+ readonly value: "true";
1567
1857
  readonly type: "boolean";
1568
1858
  }, {
1569
1859
  readonly key: "agent_schema_changes";
1570
- readonly value: "\"propose\"";
1860
+ readonly value: "\"ask\"";
1571
1861
  readonly type: "string";
1572
1862
  }, {
1573
1863
  readonly key: "associations_guard";
1574
- readonly value: "false";
1864
+ readonly value: "true";
1575
1865
  readonly type: "boolean";
1576
1866
  }, {
1577
1867
  readonly key: "code_paths_enabled";
@@ -1652,7 +1942,7 @@ declare const STORE_KNOBS: readonly [{
1652
1942
  }, {
1653
1943
  readonly key: "member_default_level";
1654
1944
  readonly value: "\"viewer\"";
1655
- readonly type: "string";
1945
+ readonly type: "enum";
1656
1946
  }, {
1657
1947
  readonly key: "member_default_visibility";
1658
1948
  readonly value: "\"all_records\"";
@@ -1710,34 +2000,37 @@ declare const STORE_KNOBS: readonly [{
1710
2000
  */
1711
2001
  declare const STORE_REFUSAL_CODES: readonly [{
1712
2002
  readonly code: "02000";
1713
- readonly raised_by: "doc_render_body,doc_render_document,doc_sign,doc_signature_intact,doc_template_save,external_history_event,external_rows,external_stub_upsert,external_writes_set,migrate_delete,migrate_extract_parent,migrate_merge,migrate_rename,migrate_reparent,migrate_retype,migrate_split,migrate_undo,read_record,record_delete,record_restore,record_update,relation_uncarry,share_access,share_grant,share_lane_set,share_people,share_revoke,visibility_as_of";
2003
+ readonly raised_by: "doc_render_body,doc_render_document,doc_render_read,doc_sign,doc_signature_intact,doc_signature_read,doc_template_read,doc_template_save,entity_field_retire,entity_field_update,entity_record_read,entity_value_write,external_history_event,external_rows,external_stub_upsert,external_writes_set,migrate_delete,migrate_extract_parent,migrate_merge,migrate_rename,migrate_reparent,migrate_retype,migrate_split,migrate_undo,organization_clear,read_record,record_delete,record_restore,record_update,relation_uncarry,share_access,share_grant,share_lane_set,share_people,share_revoke,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_assign,work_record_states,work_set_state";
1714
2004
  }, {
1715
2005
  readonly code: "0A000";
1716
- readonly raised_by: "external_rows,external_source_declare,external_write_through,promote_field,promoted_index_expr,promoted_query_sql,promoted_read,rule_eval,work_slots_declare";
2006
+ readonly raised_by: "external_rows,external_source_declare,external_write_through,promote_field,promoted_index_expr,promoted_query_sql,promoted_read,rule_eval,work_assign,work_slots_declare";
1717
2007
  }, {
1718
2008
  readonly code: "22004";
1719
- readonly raised_by: "_value_envelope,actor_word,agg_assert_key,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,doc_render_write,doc_sign,doc_signature_write,doc_template_save,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,home_add,io_comment_write,io_import_open,io_outbox_drain,io_restore,migrate_purge,migrate_split,migrate_undo,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,relation_carry,relation_own,share_grant,table_declare,work_template_declare";
2009
+ 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,doc_render_write,doc_sign,doc_signature_write,doc_template_save,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,form_declare,form_submit,home_add,io_comment_write,io_import_open,io_outbox_drain,io_restore,migrate_purge,migrate_split,migrate_undo,organization_clear,organization_contents,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,table_declare,work_approval_decide,work_approval_request,work_template_declare";
1720
2010
  }, {
1721
2011
  readonly code: "22012";
1722
2012
  readonly raised_by: "rule_eval";
1723
2013
  }, {
1724
2014
  readonly code: "22023";
1725
- readonly raised_by: "_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,containment_parent,doc_render_body,doc_render_write,doc_signature_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,io_import_open,io_proposal_accept,migrate_merge,query_by_coordinates,query_rollup,record_update,relation_carry,rule_eval,rule_members,share_grant,share_lane_set,table_rules,visibility_as_of,work_slot_hold";
2015
+ readonly raised_by: "_entity_custom_fields_guard,_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,containment_parent,doc_render_body,doc_render_write,doc_signature_write,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,io_import_open,io_proposal_accept,migrate_merge,my_levels,organization_clear,query_by_coordinates,query_rollup,record_update,relation_carry,rule_eval,rule_members,share_grant,share_lane_set,table_rules,visibility_as_of,work_approval_request,work_list,work_slot_hold";
1726
2016
  }, {
1727
2017
  readonly code: "23503";
1728
- readonly raised_by: "_containment_guard,_record_rule_uses,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,delete_rule,doc_sign,doc_template_save,home_add,io_comment_write,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_eval,rule_members,rule_run,work_take_assignment,work_template_instantiate";
2018
+ readonly raised_by: "_containment_guard,_field_document_for,_record_rule_uses,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,delete_rule,doc_sign,doc_template_save,form_declare,form_submit,home_add,io_comment_write,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,work_set_state,work_take_assignment,work_template_instantiate";
1729
2019
  }, {
1730
2020
  readonly code: "23505";
1731
- readonly raised_by: "doc_sign,doc_signature_write,field_declare,home_add,io_proposal_accept,relation_carry,relation_own,share_grant,work_slot_hold";
2021
+ readonly raised_by: "_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,io_proposal_accept,relation_carry,relation_own,share_grant,work_approval_decide,work_slot_hold";
1732
2022
  }, {
1733
2023
  readonly code: "23514";
1734
- readonly raised_by: "_containment_guard,_dated_values_guard,_derived_fields,_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,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_shape_guard,_value_envelope,_work_shape_guard,doc_sign,doc_signature_write,doc_template_save,field_declare,field_retire,field_update,home_add,migrate_merge,relation_carry,relation_own,validate_value_envelope,validate_values,work_slots_declare,work_take_assignment,work_template_instantiate";
2024
+ readonly raised_by: "_containment_guard,_dated_values_guard,_derived_fields,_entity_custom_fields_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,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,migrate_merge,relation_carry,relation_own,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
1735
2025
  }, {
1736
2026
  readonly code: "40001";
1737
2027
  readonly raised_by: "has_visibility_at";
1738
2028
  }, {
1739
2029
  readonly code: "42501";
1740
- 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_organization_admin,assert_store_door,external_write_through,io_comment_resolve,io_comment_write,io_restore,migrate_purge,promote_table,query_visibility_parity,read_record,read_records,share_grant,visibility_as_of";
2030
+ 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,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_submit,io_comment_resolve,io_comment_write,io_restore,migrate_purge,my_levels,organization_clear,promote_table,query_visibility_parity,read_record,read_records,share_grant,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
2031
+ }, {
2032
+ readonly code: "42703";
2033
+ readonly raised_by: "entity_table";
1741
2034
  }, {
1742
2035
  readonly code: "53400";
1743
2036
  readonly raised_by: "anon_rate_take,delete_cascade_closure,promote_field";
@@ -2038,6 +2331,27 @@ interface RecordRead {
2038
2331
  }>;
2039
2332
  }
2040
2333
 
2334
+ /** `public.permission_level`, in the store's own order. */
2335
+ type PermissionLevel = "viewer" | "commenter" | "editor" | "admin";
2336
+ /** The order the store writes them in, lowest first. */
2337
+ declare const PERMISSION_LEVELS: readonly PermissionLevel[];
2338
+ /** Whether `held` is the same rung as `needed` or a higher one. Nothing held is never enough. */
2339
+ declare function atLeast(held: PermissionLevel | null | undefined, needed: PermissionLevel): boolean;
2340
+ /** A level word the store sent, or null when it sent something this package does not know. */
2341
+ declare function asPermissionLevel(word: unknown): PermissionLevel | null;
2342
+ /** The higher of two levels — what a person holds when two ways in both let them through. */
2343
+ declare function highestLevel(left: PermissionLevel | null | undefined, right: PermissionLevel | null | undefined): PermissionLevel | null;
2344
+ /**
2345
+ * What one subject's level is, as `custom.my_levels` answers it. `null` is an
2346
+ * ANSWER — "you hold nothing on this" — and never a missing row: a screen that
2347
+ * could not tell "no access" from "not asked yet" would draw one of them as the
2348
+ * other.
2349
+ */
2350
+ interface MyLevel {
2351
+ id: string;
2352
+ level: PermissionLevel | null;
2353
+ }
2354
+
2041
2355
  /**
2042
2356
  * REC-1. A Table declares its fields, exactly one Home, and the properties
2043
2357
  * `display`, `ordered`, `heavy` | `light`, `retention` and `detail`.
@@ -2349,6 +2663,37 @@ interface RuleAnswer {
2349
2663
  applies: boolean;
2350
2664
  answer: unknown;
2351
2665
  }
2666
+ /** One form as `custom.forms` reports it to its owner. */
2667
+ interface FormSummary {
2668
+ form_id: string;
2669
+ table_id: string;
2670
+ title: string | null;
2671
+ slug: string;
2672
+ published_at: string | null;
2673
+ closed_at: string | null;
2674
+ submission_cap: number | null;
2675
+ /** Every answer that arrived, rejected ones excluded from `in_table` and `held`. */
2676
+ responses: number;
2677
+ /** Answers that became records — the only number that means "it is in the table". */
2678
+ in_table: number;
2679
+ /** Answers waiting for a person, because the form's accept Rule did not clear them. */
2680
+ held: number;
2681
+ /** Answers the accept Rule or the decoy turned away. */
2682
+ rejected: number;
2683
+ /** draft · open · closed · full — the store's own word, never derived on a screen. */
2684
+ state: "draft" | "open" | "closed" | "full";
2685
+ quarantine_rule_id: string | null;
2686
+ notify_rule_id: string | null;
2687
+ presentation: Record<string, unknown>;
2688
+ }
2689
+ /**
2690
+ * THE PUBLIC LINK, and the one place its shape is written down.
2691
+ *
2692
+ * The form's own id IS the capability — 122 bits of UUIDv4, exactly as
2693
+ * Typeform's form id in `/to/<id>` is and as an unguessable meeting slug is
2694
+ * here. There is no second secret to keep, and revoking it is closing the form.
2695
+ */
2696
+ declare function publicFormPath(formId: string): string;
2352
2697
 
2353
2698
  /** The measures the store offers. Asked of `custom.agg_operations()` at run time too. */
2354
2699
  type AggregateOperation = "count" | "sum" | "avg" | "min" | "max";
@@ -3081,4 +3426,4 @@ interface RecordsConfig {
3081
3426
  schema?: string;
3082
3427
  }
3083
3428
 
3084
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, type ComputeOn, type ContextPolicy, DELIVERIES, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type ForbiddenEnvelopeWord, type Freshness, type HiddenFieldNotice, type Home, 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 NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PER_VALUE_ACCESS_WORDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PgError, 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 RecordDocument, type RecordRead, type RecordRevision, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, 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 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 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 Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkAssignmentField, type WorkGraph, type WorkInstantiation, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, err, isRecordsErr, measureKey, ok };
3429
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, type ComputeOn, type ContextPolicy, DELIVERIES, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type Home, 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 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 PredictedRefusal, type ProvenancePointer, type PublishBinding, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordDocument, type RecordRead, type RecordRevision, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, 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 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 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 Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkAssignmentField, type WorkGraph, type WorkInstantiation, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, err, highestLevel, isRecordsErr, measureKey, ok, publicFormPath };