@ai-matrx/records 0.5.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +133 -0
- package/dist/core/index.cjs +201 -46
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +47 -3
- package/dist/core/index.d.ts +47 -3
- package/dist/core/index.js +201 -46
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +144 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +451 -47
- package/dist/index.d.ts +451 -47
- package/dist/index.js +144 -46
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +263 -46
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +537 -47
- package/dist/react/index.d.ts +537 -47
- package/dist/react/index.js +263 -46
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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";
|
|
@@ -208,7 +218,7 @@ declare const STORE_DOORS: readonly [{
|
|
|
208
218
|
readonly name: "agg_explain";
|
|
209
219
|
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";
|
|
210
220
|
readonly returns: "jsonb";
|
|
211
|
-
readonly security: "
|
|
221
|
+
readonly security: "definer";
|
|
212
222
|
}, {
|
|
213
223
|
readonly name: "agg_operations";
|
|
214
224
|
readonly args: "";
|
|
@@ -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";
|
|
@@ -299,11 +314,26 @@ declare const STORE_DOORS: readonly [{
|
|
|
299
314
|
readonly args: "p_organization_id uuid, p_subject_id uuid, p_door text, p_required permission_level DEFAULT 'editor'::permission_level, p_subject_word text DEFAULT 'record'::text";
|
|
300
315
|
readonly returns: "void";
|
|
301
316
|
readonly security: "invoker";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "assert_client_may_open";
|
|
319
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_door text, p_required permission_level DEFAULT 'viewer'::permission_level, p_subject_word text DEFAULT 'record'::text";
|
|
320
|
+
readonly returns: "void";
|
|
321
|
+
readonly security: "invoker";
|
|
302
322
|
}, {
|
|
303
323
|
readonly name: "assert_client_may_reach";
|
|
304
324
|
readonly args: "p_organization_id uuid, p_door text";
|
|
305
325
|
readonly returns: "void";
|
|
306
326
|
readonly security: "invoker";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "assert_may_know_table";
|
|
329
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_door text";
|
|
330
|
+
readonly returns: "void";
|
|
331
|
+
readonly security: "invoker";
|
|
332
|
+
}, {
|
|
333
|
+
readonly name: "assert_organization_admin";
|
|
334
|
+
readonly args: "p_organization_id uuid, p_door text, p_what text";
|
|
335
|
+
readonly returns: "void";
|
|
336
|
+
readonly security: "invoker";
|
|
307
337
|
}, {
|
|
308
338
|
readonly name: "assert_organization_wall";
|
|
309
339
|
readonly args: "p_kind text, p_organization_id uuid, p_row jsonb";
|
|
@@ -329,6 +359,16 @@ declare const STORE_DOORS: readonly [{
|
|
|
329
359
|
readonly args: "";
|
|
330
360
|
readonly returns: "name";
|
|
331
361
|
readonly security: "invoker";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "carrying_edges_in";
|
|
364
|
+
readonly args: "p_organization_id uuid";
|
|
365
|
+
readonly returns: "TABLE(container_type text, container_id uuid, item_type text, item_id uuid, conveys_max permission_level)";
|
|
366
|
+
readonly security: "definer";
|
|
367
|
+
}, {
|
|
368
|
+
readonly name: "carrying_edges_of";
|
|
369
|
+
readonly args: "p_item_type text, p_item_id uuid";
|
|
370
|
+
readonly returns: "TABLE(container_type text, container_id uuid, conveys_max permission_level)";
|
|
371
|
+
readonly security: "definer";
|
|
332
372
|
}, {
|
|
333
373
|
readonly name: "client_write_grants";
|
|
334
374
|
readonly args: "";
|
|
@@ -359,11 +399,31 @@ declare const STORE_DOORS: readonly [{
|
|
|
359
399
|
readonly args: "p_data jsonb";
|
|
360
400
|
readonly returns: "uuid";
|
|
361
401
|
readonly security: "invoker";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "cross_organization_links_open";
|
|
404
|
+
readonly args: "p_source_organization_id uuid, p_target_organization_id uuid";
|
|
405
|
+
readonly returns: "boolean";
|
|
406
|
+
readonly security: "invoker";
|
|
362
407
|
}, {
|
|
363
408
|
readonly name: "custom_fields_tables";
|
|
364
409
|
readonly args: "";
|
|
365
410
|
readonly returns: "TABLE(token text, schema_name text, table_name text)";
|
|
366
411
|
readonly security: "invoker";
|
|
412
|
+
}, {
|
|
413
|
+
readonly name: "delete_cascade_closure";
|
|
414
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
415
|
+
readonly returns: "uuid[]";
|
|
416
|
+
readonly security: "invoker";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "delete_preview";
|
|
419
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
420
|
+
readonly returns: "jsonb";
|
|
421
|
+
readonly security: "definer";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "delete_rule";
|
|
424
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_apply boolean DEFAULT true";
|
|
425
|
+
readonly returns: "jsonb";
|
|
426
|
+
readonly security: "definer";
|
|
367
427
|
}, {
|
|
368
428
|
readonly name: "dependency_cycle";
|
|
369
429
|
readonly args: "p_organization_id uuid, p_row custom.record";
|
|
@@ -519,11 +579,21 @@ declare const STORE_DOORS: readonly [{
|
|
|
519
579
|
readonly args: "p_organization_id uuid, p_source_id uuid, p_enabled boolean";
|
|
520
580
|
readonly returns: "boolean";
|
|
521
581
|
readonly security: "definer";
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "field_behaviour";
|
|
584
|
+
readonly args: "p_field_data jsonb";
|
|
585
|
+
readonly returns: "text";
|
|
586
|
+
readonly security: "invoker";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "field_declare";
|
|
589
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
|
|
590
|
+
readonly returns: "uuid";
|
|
591
|
+
readonly security: "definer";
|
|
522
592
|
}, {
|
|
523
593
|
readonly name: "field_dependants";
|
|
524
594
|
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
525
595
|
readonly returns: "TABLE(kind text, dependant_id uuid, label text, how text)";
|
|
526
|
-
readonly security: "
|
|
596
|
+
readonly security: "definer";
|
|
527
597
|
}, {
|
|
528
598
|
readonly name: "field_kernel_id";
|
|
529
599
|
readonly args: "";
|
|
@@ -533,12 +603,27 @@ declare const STORE_DOORS: readonly [{
|
|
|
533
603
|
readonly name: "field_options";
|
|
534
604
|
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
535
605
|
readonly returns: "SETOF custom.record";
|
|
536
|
-
readonly security: "
|
|
606
|
+
readonly security: "definer";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "field_retire";
|
|
609
|
+
readonly args: "p_organization_id uuid, p_field_id uuid";
|
|
610
|
+
readonly returns: "boolean";
|
|
611
|
+
readonly security: "definer";
|
|
537
612
|
}, {
|
|
538
613
|
readonly name: "field_rules";
|
|
539
614
|
readonly args: "p_field_data jsonb";
|
|
540
615
|
readonly returns: "TABLE(kind text, spec jsonb)";
|
|
541
616
|
readonly security: "invoker";
|
|
617
|
+
}, {
|
|
618
|
+
readonly name: "field_update";
|
|
619
|
+
readonly args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb";
|
|
620
|
+
readonly returns: "uuid";
|
|
621
|
+
readonly security: "definer";
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "field_value_convert";
|
|
624
|
+
readonly args: "p_to jsonb, p_value jsonb";
|
|
625
|
+
readonly returns: "jsonb";
|
|
626
|
+
readonly security: "invoker";
|
|
542
627
|
}, {
|
|
543
628
|
readonly name: "file_kernel_id";
|
|
544
629
|
readonly args: "";
|
|
@@ -549,6 +634,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
549
634
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb";
|
|
550
635
|
readonly returns: "jsonb";
|
|
551
636
|
readonly security: "invoker";
|
|
637
|
+
}, {
|
|
638
|
+
readonly name: "guard_refusals_are_complete";
|
|
639
|
+
readonly args: "";
|
|
640
|
+
readonly returns: "TABLE(guard text, said text)";
|
|
641
|
+
readonly security: "invoker";
|
|
552
642
|
}, {
|
|
553
643
|
readonly name: "has_visibility";
|
|
554
644
|
readonly args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
@@ -564,11 +654,31 @@ declare const STORE_DOORS: readonly [{
|
|
|
564
654
|
readonly args: "p_field custom.record, p_action text DEFAULT 'read'::text";
|
|
565
655
|
readonly returns: "jsonb";
|
|
566
656
|
readonly security: "invoker";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "history_prune";
|
|
659
|
+
readonly args: "p_organization_id uuid, p_scope text DEFAULT 'values'::text, p_table_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true";
|
|
660
|
+
readonly returns: "jsonb";
|
|
661
|
+
readonly security: "definer";
|
|
662
|
+
}, {
|
|
663
|
+
readonly name: "history_retention";
|
|
664
|
+
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid";
|
|
665
|
+
readonly returns: "jsonb";
|
|
666
|
+
readonly security: "definer";
|
|
667
|
+
}, {
|
|
668
|
+
readonly name: "history_retention_floor_raise";
|
|
669
|
+
readonly args: "p_organization_id uuid, p_days integer";
|
|
670
|
+
readonly returns: "integer";
|
|
671
|
+
readonly security: "definer";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "history_retention_set";
|
|
674
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_days integer";
|
|
675
|
+
readonly returns: "integer";
|
|
676
|
+
readonly security: "definer";
|
|
567
677
|
}, {
|
|
568
678
|
readonly name: "home_add";
|
|
569
679
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_home_record_id uuid";
|
|
570
680
|
readonly returns: "uuid";
|
|
571
|
-
readonly security: "
|
|
681
|
+
readonly security: "definer";
|
|
572
682
|
}, {
|
|
573
683
|
readonly name: "home_relations";
|
|
574
684
|
readonly args: "";
|
|
@@ -626,7 +736,7 @@ declare const STORE_DOORS: readonly [{
|
|
|
626
736
|
readonly security: "definer";
|
|
627
737
|
}, {
|
|
628
738
|
readonly name: "io_export_csv";
|
|
629
|
-
readonly args: "p_organization_id uuid, p_table_id uuid, p_columns text[] DEFAULT NULL::text[], p_limit integer DEFAULT 10000, p_delimiter text DEFAULT
|
|
739
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_columns text[] DEFAULT NULL::text[], p_limit integer DEFAULT 10000, p_delimiter text DEFAULT chr(44), p_required text DEFAULT 'viewer'::text";
|
|
630
740
|
readonly returns: "text";
|
|
631
741
|
readonly security: "definer";
|
|
632
742
|
}, {
|
|
@@ -682,8 +792,13 @@ declare const STORE_DOORS: readonly [{
|
|
|
682
792
|
}, {
|
|
683
793
|
readonly name: "io_revisions";
|
|
684
794
|
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
685
|
-
readonly returns: "TABLE(version integer, changed_at timestamp with time zone, changed_by uuid, summary text)";
|
|
795
|
+
readonly returns: "TABLE(version integer, changed_at timestamp with time zone, changed_by uuid, summary text, operation text, changed_fields jsonb)";
|
|
686
796
|
readonly security: "definer";
|
|
797
|
+
}, {
|
|
798
|
+
readonly name: "is_a_retirement";
|
|
799
|
+
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";
|
|
800
|
+
readonly returns: "boolean";
|
|
801
|
+
readonly security: "invoker";
|
|
687
802
|
}, {
|
|
688
803
|
readonly name: "lookup_value";
|
|
689
804
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb";
|
|
@@ -708,52 +823,72 @@ declare const STORE_DOORS: readonly [{
|
|
|
708
823
|
readonly name: "migrate_delete";
|
|
709
824
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_note text DEFAULT NULL::text";
|
|
710
825
|
readonly returns: "jsonb";
|
|
711
|
-
readonly security: "
|
|
826
|
+
readonly security: "definer";
|
|
712
827
|
}, {
|
|
713
828
|
readonly name: "migrate_demote";
|
|
714
829
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text";
|
|
715
830
|
readonly returns: "jsonb";
|
|
716
|
-
readonly security: "
|
|
831
|
+
readonly security: "definer";
|
|
717
832
|
}, {
|
|
718
833
|
readonly name: "migrate_extract_parent";
|
|
719
834
|
readonly args: "p_organization_id uuid, p_id uuid, p_parent_table_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text";
|
|
720
835
|
readonly returns: "jsonb";
|
|
721
|
-
readonly security: "
|
|
836
|
+
readonly security: "definer";
|
|
722
837
|
}, {
|
|
723
838
|
readonly name: "migrate_merge";
|
|
724
839
|
readonly args: "p_organization_id uuid, p_winner_id uuid, p_loser_id uuid, p_note text DEFAULT NULL::text";
|
|
725
840
|
readonly returns: "jsonb";
|
|
726
|
-
readonly security: "
|
|
841
|
+
readonly security: "definer";
|
|
727
842
|
}, {
|
|
728
843
|
readonly name: "migrate_promote";
|
|
729
844
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text";
|
|
730
845
|
readonly returns: "jsonb";
|
|
731
|
-
readonly security: "
|
|
846
|
+
readonly security: "definer";
|
|
732
847
|
}, {
|
|
733
848
|
readonly name: "migrate_purge";
|
|
734
849
|
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true";
|
|
735
850
|
readonly returns: "jsonb";
|
|
736
|
-
readonly security: "
|
|
851
|
+
readonly security: "definer";
|
|
737
852
|
}, {
|
|
738
853
|
readonly name: "migrate_rename";
|
|
739
854
|
readonly args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text";
|
|
740
855
|
readonly returns: "jsonb";
|
|
741
|
-
readonly security: "
|
|
856
|
+
readonly security: "definer";
|
|
742
857
|
}, {
|
|
743
858
|
readonly name: "migrate_reparent";
|
|
744
859
|
readonly args: "p_organization_id uuid, p_id uuid, p_parent_id uuid, p_note text DEFAULT NULL::text";
|
|
745
860
|
readonly returns: "jsonb";
|
|
746
|
-
readonly security: "
|
|
861
|
+
readonly security: "definer";
|
|
747
862
|
}, {
|
|
748
863
|
readonly name: "migrate_retype";
|
|
749
864
|
readonly args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text";
|
|
750
865
|
readonly returns: "jsonb";
|
|
751
|
-
readonly security: "
|
|
866
|
+
readonly security: "definer";
|
|
752
867
|
}, {
|
|
753
868
|
readonly name: "migrate_split";
|
|
754
869
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_moved_keys text[], p_note text DEFAULT NULL::text";
|
|
755
870
|
readonly returns: "jsonb";
|
|
756
|
-
readonly security: "
|
|
871
|
+
readonly security: "definer";
|
|
872
|
+
}, {
|
|
873
|
+
readonly name: "migrate_undo";
|
|
874
|
+
readonly args: "p_organization_id uuid, p_log_id uuid";
|
|
875
|
+
readonly returns: "jsonb";
|
|
876
|
+
readonly security: "definer";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "migrations";
|
|
879
|
+
readonly args: "p_organization_id uuid, p_target_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100";
|
|
880
|
+
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)";
|
|
881
|
+
readonly security: "definer";
|
|
882
|
+
}, {
|
|
883
|
+
readonly name: "my_level";
|
|
884
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_type text DEFAULT 'record'::text";
|
|
885
|
+
readonly returns: "permission_level";
|
|
886
|
+
readonly security: "definer";
|
|
887
|
+
}, {
|
|
888
|
+
readonly name: "my_levels";
|
|
889
|
+
readonly args: "p_organization_id uuid, p_ids jsonb, p_type text DEFAULT 'record'::text";
|
|
890
|
+
readonly returns: "TABLE(id uuid, level permission_level)";
|
|
891
|
+
readonly security: "definer";
|
|
757
892
|
}, {
|
|
758
893
|
readonly name: "organization_kernel_id";
|
|
759
894
|
readonly args: "";
|
|
@@ -764,6 +899,16 @@ declare const STORE_DOORS: readonly [{
|
|
|
764
899
|
readonly args: "p_kind text, p_organization_id uuid, p_row jsonb";
|
|
765
900
|
readonly returns: "TABLE(site text, what text, ref_id uuid, openable boolean)";
|
|
766
901
|
readonly security: "invoker";
|
|
902
|
+
}, {
|
|
903
|
+
readonly name: "owning_table";
|
|
904
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
905
|
+
readonly returns: "uuid";
|
|
906
|
+
readonly security: "invoker";
|
|
907
|
+
}, {
|
|
908
|
+
readonly name: "owning_table_gone";
|
|
909
|
+
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
910
|
+
readonly returns: "boolean";
|
|
911
|
+
readonly security: "invoker";
|
|
767
912
|
}, {
|
|
768
913
|
readonly name: "parity_field_types";
|
|
769
914
|
readonly args: "";
|
|
@@ -863,17 +1008,17 @@ declare const STORE_DOORS: readonly [{
|
|
|
863
1008
|
readonly name: "query_across_homes";
|
|
864
1009
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_required text DEFAULT 'viewer'::text";
|
|
865
1010
|
readonly returns: "TABLE(record_id uuid, home_record_id uuid, data jsonb, created_at timestamp with time zone)";
|
|
866
|
-
readonly security: "
|
|
1011
|
+
readonly security: "definer";
|
|
867
1012
|
}, {
|
|
868
1013
|
readonly name: "query_by_coordinates";
|
|
869
1014
|
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_coordinates jsonb DEFAULT '[]'::jsonb, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_required text DEFAULT 'viewer'::text";
|
|
870
1015
|
readonly returns: "TABLE(record_id uuid, table_id uuid, data jsonb, coordinates_matched integer)";
|
|
871
|
-
readonly security: "
|
|
1016
|
+
readonly security: "definer";
|
|
872
1017
|
}, {
|
|
873
1018
|
readonly name: "query_can_see";
|
|
874
1019
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_required text DEFAULT 'viewer'::text";
|
|
875
1020
|
readonly returns: "boolean";
|
|
876
|
-
readonly security: "
|
|
1021
|
+
readonly security: "definer";
|
|
877
1022
|
}, {
|
|
878
1023
|
readonly name: "query_hot_paths";
|
|
879
1024
|
readonly args: "";
|
|
@@ -903,42 +1048,72 @@ declare const STORE_DOORS: readonly [{
|
|
|
903
1048
|
readonly name: "query_record_as_of";
|
|
904
1049
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_recorded_at timestamp with time zone DEFAULT NULL::timestamp with time zone, p_world_on date DEFAULT NULL::date, p_required text DEFAULT 'viewer'::text";
|
|
905
1050
|
readonly returns: "jsonb";
|
|
906
|
-
readonly security: "
|
|
1051
|
+
readonly security: "definer";
|
|
907
1052
|
}, {
|
|
908
1053
|
readonly name: "query_relation_edges";
|
|
909
1054
|
readonly args: "p_organization_id uuid, p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text";
|
|
910
1055
|
readonly returns: "TABLE(parent_id uuid, child_id uuid, role text, flavor text)";
|
|
911
|
-
readonly security: "
|
|
1056
|
+
readonly security: "definer";
|
|
912
1057
|
}, {
|
|
913
1058
|
readonly name: "query_rollup";
|
|
914
1059
|
readonly args: "p_organization_id uuid, p_roots uuid[], p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text, p_max_depth integer DEFAULT 33, p_required text DEFAULT 'viewer'::text";
|
|
915
1060
|
readonly returns: "TABLE(record_id uuid, depth integer)";
|
|
916
|
-
readonly security: "
|
|
1061
|
+
readonly security: "definer";
|
|
917
1062
|
}, {
|
|
918
1063
|
readonly name: "query_rollup_sum";
|
|
919
1064
|
readonly args: "p_organization_id uuid, p_roots uuid[], p_field_key text, p_flavor text DEFAULT NULL::text, p_role text DEFAULT NULL::text, p_max_depth integer DEFAULT 33, p_required text DEFAULT 'viewer'::text";
|
|
920
1065
|
readonly returns: "numeric";
|
|
921
|
-
readonly security: "
|
|
1066
|
+
readonly security: "definer";
|
|
922
1067
|
}, {
|
|
923
1068
|
readonly name: "query_table_as_of";
|
|
924
1069
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_recorded_at timestamp with time zone DEFAULT NULL::timestamp with time zone, p_world_on date DEFAULT NULL::date, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_required text DEFAULT 'viewer'::text";
|
|
925
1070
|
readonly returns: "TABLE(record_id uuid, data jsonb)";
|
|
926
|
-
readonly security: "
|
|
1071
|
+
readonly security: "definer";
|
|
927
1072
|
}, {
|
|
928
1073
|
readonly name: "query_table_homes";
|
|
929
1074
|
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
930
1075
|
readonly returns: "SETOF uuid";
|
|
931
|
-
readonly security: "
|
|
1076
|
+
readonly security: "definer";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly name: "query_visibility_parity";
|
|
1079
|
+
readonly args: "p_organization_id uuid";
|
|
1080
|
+
readonly returns: "TABLE(side text, container_type text, container_id uuid, item_type text, item_id uuid, stored_level permission_level, derived_level permission_level, reason text)";
|
|
1081
|
+
readonly security: "definer";
|
|
932
1082
|
}, {
|
|
933
1083
|
readonly name: "query_visible_ids";
|
|
934
1084
|
readonly args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_required text DEFAULT 'viewer'::text";
|
|
935
1085
|
readonly returns: "SETOF uuid";
|
|
936
|
-
readonly security: "
|
|
1086
|
+
readonly security: "definer";
|
|
937
1087
|
}, {
|
|
938
1088
|
readonly name: "reachable_from";
|
|
939
1089
|
readonly args: "p_organization_id uuid, p_roots uuid[]";
|
|
940
1090
|
readonly returns: "TABLE(record_id uuid, depth integer, via text)";
|
|
941
1091
|
readonly security: "invoker";
|
|
1092
|
+
}, {
|
|
1093
|
+
readonly name: "reaches_directly";
|
|
1094
|
+
readonly args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
1095
|
+
readonly returns: "boolean";
|
|
1096
|
+
readonly security: "definer";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "read_door_carried_ids";
|
|
1099
|
+
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";
|
|
1100
|
+
readonly returns: "record";
|
|
1101
|
+
readonly security: "definer";
|
|
1102
|
+
}, {
|
|
1103
|
+
readonly name: "read_door_granted_ids";
|
|
1104
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1105
|
+
readonly returns: "uuid[]";
|
|
1106
|
+
readonly security: "definer";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly name: "read_door_ladder_ceiling";
|
|
1109
|
+
readonly args: "";
|
|
1110
|
+
readonly returns: "integer";
|
|
1111
|
+
readonly security: "invoker";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly name: "read_door_parity";
|
|
1114
|
+
readonly args: "p_organization_id uuid, p_table_id uuid, p_user uuid, p_required permission_level, p_sample integer";
|
|
1115
|
+
readonly returns: "TABLE(record_id uuid, set_based boolean, per_row boolean, verdict text)";
|
|
1116
|
+
readonly security: "definer";
|
|
942
1117
|
}, {
|
|
943
1118
|
readonly name: "read_paths_outside_the_door";
|
|
944
1119
|
readonly args: "";
|
|
@@ -958,27 +1133,57 @@ declare const STORE_DOORS: readonly [{
|
|
|
958
1133
|
readonly name: "record_aggregate";
|
|
959
1134
|
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";
|
|
960
1135
|
readonly returns: "TABLE(groups jsonb, measures jsonb, row_count bigint)";
|
|
961
|
-
readonly security: "
|
|
1136
|
+
readonly security: "definer";
|
|
962
1137
|
}, {
|
|
963
1138
|
readonly name: "record_applicability";
|
|
964
1139
|
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
965
1140
|
readonly returns: "TABLE(rule_id uuid, rule_name text, rule_version integer, applies boolean, answer jsonb)";
|
|
966
1141
|
readonly security: "invoker";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly name: "record_as_of";
|
|
1144
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone";
|
|
1145
|
+
readonly returns: "TABLE(state jsonb, replayed boolean)";
|
|
1146
|
+
readonly security: "definer";
|
|
1147
|
+
}, {
|
|
1148
|
+
readonly name: "record_card";
|
|
1149
|
+
readonly args: "p_viewer uuid, p_organization_id uuid, p_record_id uuid";
|
|
1150
|
+
readonly returns: "jsonb";
|
|
1151
|
+
readonly security: "definer";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly name: "record_carrying_edges";
|
|
1154
|
+
readonly args: "p_id uuid, p_data_class text, p_data jsonb, p_deleted_at timestamp with time zone";
|
|
1155
|
+
readonly returns: "TABLE(container_id uuid, item_id uuid, edge_role text)";
|
|
1156
|
+
readonly security: "invoker";
|
|
967
1157
|
}, {
|
|
968
1158
|
readonly name: "record_delete";
|
|
969
1159
|
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
970
1160
|
readonly returns: "timestamp with time zone";
|
|
971
1161
|
readonly security: "definer";
|
|
1162
|
+
}, {
|
|
1163
|
+
readonly name: "record_relation_edges";
|
|
1164
|
+
readonly args: "p_organization_id uuid, p_id uuid, p_table_id uuid, p_data_class text, p_data jsonb, p_deleted_at timestamp with time zone";
|
|
1165
|
+
readonly returns: "TABLE(target_id uuid, edge_role text, field_id uuid, ord integer)";
|
|
1166
|
+
readonly security: "invoker";
|
|
972
1167
|
}, {
|
|
973
1168
|
readonly name: "record_reparent";
|
|
974
1169
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_parent_id uuid";
|
|
975
1170
|
readonly returns: "void";
|
|
976
|
-
readonly security: "
|
|
1171
|
+
readonly security: "definer";
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly name: "record_resolve";
|
|
1174
|
+
readonly args: "p_organization_id uuid, p_id uuid";
|
|
1175
|
+
readonly returns: "jsonb";
|
|
1176
|
+
readonly security: "definer";
|
|
977
1177
|
}, {
|
|
978
1178
|
readonly name: "record_restore";
|
|
979
1179
|
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
980
1180
|
readonly returns: "void";
|
|
981
1181
|
readonly security: "definer";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly name: "record_state_as_of";
|
|
1184
|
+
readonly args: "p_record_id uuid, p_at timestamp with time zone";
|
|
1185
|
+
readonly returns: "TABLE(state jsonb, replayed boolean)";
|
|
1186
|
+
readonly security: "definer";
|
|
982
1187
|
}, {
|
|
983
1188
|
readonly name: "record_update";
|
|
984
1189
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb, p_expected_version integer DEFAULT NULL::integer";
|
|
@@ -993,17 +1198,27 @@ declare const STORE_DOORS: readonly [{
|
|
|
993
1198
|
readonly name: "record_values_versioned";
|
|
994
1199
|
readonly args: "p_organization_id uuid, p_record_id uuid";
|
|
995
1200
|
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)";
|
|
996
|
-
readonly security: "
|
|
1201
|
+
readonly security: "definer";
|
|
997
1202
|
}, {
|
|
998
1203
|
readonly name: "record_write";
|
|
999
1204
|
readonly args: "p_organization_id uuid, p_table_id uuid, p_data jsonb";
|
|
1000
1205
|
readonly returns: "uuid";
|
|
1001
1206
|
readonly security: "definer";
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly name: "relation_carry";
|
|
1209
|
+
readonly args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid";
|
|
1210
|
+
readonly returns: "uuid";
|
|
1211
|
+
readonly security: "definer";
|
|
1002
1212
|
}, {
|
|
1003
1213
|
readonly name: "relation_own";
|
|
1004
1214
|
readonly args: "p_organization_id uuid, p_owner_id uuid, p_target_id uuid";
|
|
1005
1215
|
readonly returns: "uuid";
|
|
1006
|
-
readonly security: "
|
|
1216
|
+
readonly security: "definer";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly name: "relation_target_card";
|
|
1219
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_via_key text DEFAULT NULL::text";
|
|
1220
|
+
readonly returns: "TABLE(target_id uuid, target_organization_id uuid, is_foreign boolean, masked boolean, reader_level permission_level, card jsonb, why text)";
|
|
1221
|
+
readonly security: "definer";
|
|
1007
1222
|
}, {
|
|
1008
1223
|
readonly name: "relation_target_external";
|
|
1009
1224
|
readonly args: "p_connection_token text, p_external_table text, p_external_key text";
|
|
@@ -1018,7 +1233,12 @@ declare const STORE_DOORS: readonly [{
|
|
|
1018
1233
|
readonly name: "relation_targets";
|
|
1019
1234
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_via_key text";
|
|
1020
1235
|
readonly returns: "SETOF uuid";
|
|
1021
|
-
readonly security: "
|
|
1236
|
+
readonly security: "definer";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly name: "relation_uncarry";
|
|
1239
|
+
readonly args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid";
|
|
1240
|
+
readonly returns: "integer";
|
|
1241
|
+
readonly security: "definer";
|
|
1022
1242
|
}, {
|
|
1023
1243
|
readonly name: "reopen_declared_doors";
|
|
1024
1244
|
readonly args: "";
|
|
@@ -1119,6 +1339,56 @@ declare const STORE_DOORS: readonly [{
|
|
|
1119
1339
|
readonly args: "p_organization_id uuid, p_rule_id uuid";
|
|
1120
1340
|
readonly returns: "integer";
|
|
1121
1341
|
readonly security: "invoker";
|
|
1342
|
+
}, {
|
|
1343
|
+
readonly name: "said";
|
|
1344
|
+
readonly args: "p_value text, p_when_there_is_none text";
|
|
1345
|
+
readonly returns: "text";
|
|
1346
|
+
readonly security: "invoker";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly name: "share_access";
|
|
1349
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid";
|
|
1350
|
+
readonly returns: "TABLE(principal_kind text, principal_id uuid, principal_label text, level permission_level, reason text, reason_detail text, via_type text, via_id uuid, revocable boolean)";
|
|
1351
|
+
readonly security: "definer";
|
|
1352
|
+
}, {
|
|
1353
|
+
readonly name: "share_grant";
|
|
1354
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_principal_kind text, p_principal_id uuid, p_level permission_level DEFAULT 'viewer'::permission_level";
|
|
1355
|
+
readonly returns: "jsonb";
|
|
1356
|
+
readonly security: "definer";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly name: "share_lane_set";
|
|
1359
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_choice text, p_level permission_level DEFAULT NULL::permission_level";
|
|
1360
|
+
readonly returns: "jsonb";
|
|
1361
|
+
readonly security: "definer";
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly name: "share_lanes";
|
|
1364
|
+
readonly args: "";
|
|
1365
|
+
readonly returns: "TABLE(choice text, lane text, discoverable boolean, label text, means text)";
|
|
1366
|
+
readonly security: "definer";
|
|
1367
|
+
}, {
|
|
1368
|
+
readonly name: "share_levels";
|
|
1369
|
+
readonly args: "";
|
|
1370
|
+
readonly returns: "TABLE(level permission_level, ordinal integer, label text, means text)";
|
|
1371
|
+
readonly security: "definer";
|
|
1372
|
+
}, {
|
|
1373
|
+
readonly name: "share_people";
|
|
1374
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid DEFAULT NULL::uuid, p_query text DEFAULT NULL::text, p_limit integer DEFAULT 25";
|
|
1375
|
+
readonly returns: "TABLE(user_id uuid, email text, display_name text, membership text, already_at permission_level, already_why text)";
|
|
1376
|
+
readonly security: "definer";
|
|
1377
|
+
}, {
|
|
1378
|
+
readonly name: "share_revoke";
|
|
1379
|
+
readonly args: "p_organization_id uuid, p_subject_id uuid, p_principal_kind text, p_principal_id uuid";
|
|
1380
|
+
readonly returns: "jsonb";
|
|
1381
|
+
readonly security: "definer";
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly name: "share_subject_name";
|
|
1384
|
+
readonly args: "p_organization_id uuid, p_type text, p_id uuid";
|
|
1385
|
+
readonly returns: "text";
|
|
1386
|
+
readonly security: "definer";
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly name: "shared_only_disagreements";
|
|
1389
|
+
readonly args: "p_pretend text DEFAULT NULL::text";
|
|
1390
|
+
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)";
|
|
1391
|
+
readonly security: "invoker";
|
|
1122
1392
|
}, {
|
|
1123
1393
|
readonly name: "size_refusal";
|
|
1124
1394
|
readonly args: "p_organization_id uuid, p_data jsonb";
|
|
@@ -1154,11 +1424,26 @@ declare const STORE_DOORS: readonly [{
|
|
|
1154
1424
|
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1155
1425
|
readonly returns: "jsonb";
|
|
1156
1426
|
readonly security: "definer";
|
|
1427
|
+
}, {
|
|
1428
|
+
readonly name: "table_contents";
|
|
1429
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1430
|
+
readonly returns: "TABLE(record_id uuid, kind text, goes_at integer)";
|
|
1431
|
+
readonly security: "invoker";
|
|
1157
1432
|
}, {
|
|
1158
1433
|
readonly name: "table_declare";
|
|
1159
1434
|
readonly args: "p_organization_id uuid, p_spec jsonb";
|
|
1160
1435
|
readonly returns: "uuid";
|
|
1161
1436
|
readonly security: "definer";
|
|
1437
|
+
}, {
|
|
1438
|
+
readonly name: "table_has_a_visible_record";
|
|
1439
|
+
readonly args: "p_user uuid, p_organization_id uuid, p_table_id uuid";
|
|
1440
|
+
readonly returns: "boolean";
|
|
1441
|
+
readonly security: "definer";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly name: "table_is_live";
|
|
1444
|
+
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1445
|
+
readonly returns: "boolean";
|
|
1446
|
+
readonly security: "invoker";
|
|
1162
1447
|
}, {
|
|
1163
1448
|
readonly name: "table_kernel_id";
|
|
1164
1449
|
readonly args: "";
|
|
@@ -1188,11 +1473,16 @@ declare const STORE_DOORS: readonly [{
|
|
|
1188
1473
|
readonly name: "table_type_field";
|
|
1189
1474
|
readonly args: "p_organization_id uuid, p_table_id uuid";
|
|
1190
1475
|
readonly returns: "text";
|
|
1191
|
-
readonly security: "
|
|
1476
|
+
readonly security: "definer";
|
|
1192
1477
|
}, {
|
|
1193
1478
|
readonly name: "tables_at_home";
|
|
1194
1479
|
readonly args: "p_organization_id uuid, p_home_ids uuid[]";
|
|
1195
1480
|
readonly returns: "TABLE(table_id uuid, home_record_id uuid, kind text)";
|
|
1481
|
+
readonly security: "definer";
|
|
1482
|
+
}, {
|
|
1483
|
+
readonly name: "tables_described_without_asking";
|
|
1484
|
+
readonly args: "";
|
|
1485
|
+
readonly returns: "TABLE(function_name text, identity_args text, why text)";
|
|
1196
1486
|
readonly security: "invoker";
|
|
1197
1487
|
}, {
|
|
1198
1488
|
readonly name: "trg_associations_bump_visibility";
|
|
@@ -1238,7 +1528,7 @@ declare const STORE_DOORS: readonly [{
|
|
|
1238
1528
|
readonly name: "value_read";
|
|
1239
1529
|
readonly args: "p_organization_id uuid, p_record_id uuid, p_key text";
|
|
1240
1530
|
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)";
|
|
1241
|
-
readonly security: "
|
|
1531
|
+
readonly security: "definer";
|
|
1242
1532
|
}, {
|
|
1243
1533
|
readonly name: "value_versions";
|
|
1244
1534
|
readonly args: "p_old jsonb, p_new jsonb";
|
|
@@ -1249,6 +1539,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
1249
1539
|
readonly args: "p_item_type text, p_item_id uuid";
|
|
1250
1540
|
readonly returns: "TABLE(container_type text, container_id uuid, depth integer, max_level permission_level)";
|
|
1251
1541
|
readonly security: "definer";
|
|
1542
|
+
}, {
|
|
1543
|
+
readonly name: "visibility_as_of";
|
|
1544
|
+
readonly args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone";
|
|
1545
|
+
readonly returns: "TABLE(principal_kind text, principal_id uuid, level permission_level, through_kind text, through_id uuid, reason text, replayed boolean, held_from timestamp with time zone, held_to timestamp with time zone)";
|
|
1546
|
+
readonly security: "definer";
|
|
1252
1547
|
}, {
|
|
1253
1548
|
readonly name: "visibility_cache_rebuild";
|
|
1254
1549
|
readonly args: "";
|
|
@@ -1264,11 +1559,21 @@ declare const STORE_DOORS: readonly [{
|
|
|
1264
1559
|
readonly args: "p_container_type text, p_container_id uuid";
|
|
1265
1560
|
readonly returns: "integer";
|
|
1266
1561
|
readonly security: "definer";
|
|
1562
|
+
}, {
|
|
1563
|
+
readonly name: "visible_predicate_sql";
|
|
1564
|
+
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";
|
|
1565
|
+
readonly returns: "text";
|
|
1566
|
+
readonly security: "definer";
|
|
1267
1567
|
}, {
|
|
1268
1568
|
readonly name: "visible_record_ids";
|
|
1269
1569
|
readonly args: "p_user_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level";
|
|
1270
1570
|
readonly returns: "TABLE(id uuid)";
|
|
1271
1571
|
readonly security: "definer";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly name: "visible_set";
|
|
1574
|
+
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";
|
|
1575
|
+
readonly returns: "record";
|
|
1576
|
+
readonly security: "definer";
|
|
1272
1577
|
}, {
|
|
1273
1578
|
readonly name: "widget_kernel_id";
|
|
1274
1579
|
readonly args: "";
|
|
@@ -1368,15 +1673,15 @@ declare const STORE_DOORS: readonly [{
|
|
|
1368
1673
|
/** The campaign's own knobs, with the value the store resolves them to today. */
|
|
1369
1674
|
declare const STORE_KNOBS: readonly [{
|
|
1370
1675
|
readonly key: "accessible_entity_ids_guard";
|
|
1371
|
-
readonly value: "
|
|
1676
|
+
readonly value: "true";
|
|
1372
1677
|
readonly type: "boolean";
|
|
1373
1678
|
}, {
|
|
1374
1679
|
readonly key: "agent_schema_changes";
|
|
1375
|
-
readonly value: "\"
|
|
1680
|
+
readonly value: "\"ask\"";
|
|
1376
1681
|
readonly type: "string";
|
|
1377
1682
|
}, {
|
|
1378
1683
|
readonly key: "associations_guard";
|
|
1379
|
-
readonly value: "
|
|
1684
|
+
readonly value: "true";
|
|
1380
1685
|
readonly type: "boolean";
|
|
1381
1686
|
}, {
|
|
1382
1687
|
readonly key: "code_paths_enabled";
|
|
@@ -1418,6 +1723,10 @@ declare const STORE_KNOBS: readonly [{
|
|
|
1418
1723
|
readonly key: "containment_depth_ceiling";
|
|
1419
1724
|
readonly value: "16";
|
|
1420
1725
|
readonly type: "integer";
|
|
1726
|
+
}, {
|
|
1727
|
+
readonly key: "cross_organization_links";
|
|
1728
|
+
readonly value: "false";
|
|
1729
|
+
readonly type: "boolean";
|
|
1421
1730
|
}, {
|
|
1422
1731
|
readonly key: "document_max_bytes";
|
|
1423
1732
|
readonly value: "1048576";
|
|
@@ -1453,7 +1762,15 @@ declare const STORE_KNOBS: readonly [{
|
|
|
1453
1762
|
}, {
|
|
1454
1763
|
readonly key: "member_default_level";
|
|
1455
1764
|
readonly value: "\"viewer\"";
|
|
1456
|
-
readonly type: "
|
|
1765
|
+
readonly type: "enum";
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly key: "member_default_visibility";
|
|
1768
|
+
readonly value: "\"all_records\"";
|
|
1769
|
+
readonly type: "enum";
|
|
1770
|
+
}, {
|
|
1771
|
+
readonly key: "records_tool_default";
|
|
1772
|
+
readonly value: "true";
|
|
1773
|
+
readonly type: "boolean";
|
|
1457
1774
|
}, {
|
|
1458
1775
|
readonly key: "row_versions_guard";
|
|
1459
1776
|
readonly value: "false";
|
|
@@ -1503,43 +1820,46 @@ declare const STORE_KNOBS: readonly [{
|
|
|
1503
1820
|
*/
|
|
1504
1821
|
declare const STORE_REFUSAL_CODES: readonly [{
|
|
1505
1822
|
readonly code: "02000";
|
|
1506
|
-
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,read_record,record_delete,record_restore,record_update";
|
|
1823
|
+
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";
|
|
1507
1824
|
}, {
|
|
1508
1825
|
readonly code: "0A000";
|
|
1509
1826
|
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";
|
|
1510
1827
|
}, {
|
|
1511
1828
|
readonly code: "22004";
|
|
1512
|
-
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,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_restore,record_update,record_write,relation_own,table_declare,work_template_declare";
|
|
1829
|
+
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";
|
|
1513
1830
|
}, {
|
|
1514
1831
|
readonly code: "22012";
|
|
1515
1832
|
readonly raised_by: "rule_eval";
|
|
1516
1833
|
}, {
|
|
1517
1834
|
readonly code: "22023";
|
|
1518
|
-
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,rule_eval,rule_members,table_rules,work_slot_hold";
|
|
1835
|
+
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,my_levels,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";
|
|
1519
1836
|
}, {
|
|
1520
1837
|
readonly code: "23503";
|
|
1521
|
-
readonly raised_by: "_containment_guard,_record_rule_uses,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,doc_sign,doc_template_save,home_add,io_comment_write,io_import_rows,io_proposal_accept,
|
|
1838
|
+
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";
|
|
1522
1839
|
}, {
|
|
1523
1840
|
readonly code: "23505";
|
|
1524
|
-
readonly raised_by: "doc_sign,doc_signature_write,home_add,io_proposal_accept,work_slot_hold";
|
|
1841
|
+
readonly raised_by: "_unique_rule_holds,doc_sign,doc_signature_write,field_declare,home_add,io_proposal_accept,relation_carry,relation_own,share_grant,work_slot_hold";
|
|
1525
1842
|
}, {
|
|
1526
1843
|
readonly code: "23514";
|
|
1527
|
-
readonly raised_by: "_containment_guard,_dated_values_guard,_derived_fields,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_rule_shape_guard,_rule_topology_guard,_table_shape_guard,_value_envelope,_work_shape_guard,doc_sign,doc_signature_write,doc_template_save,home_add,validate_value_envelope,validate_values,work_slots_declare,work_take_assignment,work_template_instantiate";
|
|
1844
|
+
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,_resolve_choice_words,_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";
|
|
1528
1845
|
}, {
|
|
1529
1846
|
readonly code: "40001";
|
|
1530
1847
|
readonly raised_by: "has_visibility_at";
|
|
1531
1848
|
}, {
|
|
1532
1849
|
readonly code: "42501";
|
|
1533
|
-
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_reach,assert_store_door,external_write_through,io_comment_resolve,io_comment_write,io_restore,migrate_purge,promote_table,read_record,read_records";
|
|
1850
|
+
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,external_write_through,io_comment_resolve,io_comment_write,io_restore,migrate_purge,my_levels,promote_table,query_visibility_parity,read_record,read_records,share_grant,visibility_as_of";
|
|
1534
1851
|
}, {
|
|
1535
1852
|
readonly code: "53400";
|
|
1536
|
-
readonly raised_by: "anon_rate_take,promote_field";
|
|
1853
|
+
readonly raised_by: "anon_rate_take,delete_cascade_closure,promote_field";
|
|
1854
|
+
}, {
|
|
1855
|
+
readonly code: "54001";
|
|
1856
|
+
readonly raised_by: "record_delete";
|
|
1537
1857
|
}, {
|
|
1538
1858
|
readonly code: "PT409";
|
|
1539
1859
|
readonly raised_by: "record_update";
|
|
1540
1860
|
}];
|
|
1541
1861
|
/** `platform.entity_types` — the registered tokens a Table or relation may name. */
|
|
1542
|
-
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", "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", "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"];
|
|
1862
|
+
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"];
|
|
1543
1863
|
type StoreRefusalCode = (typeof STORE_REFUSAL_CODES)[number]["code"];
|
|
1544
1864
|
type StoreDoorName = (typeof STORE_DOORS)[number]["name"];
|
|
1545
1865
|
type EntityToken = (typeof ENTITY_TOKENS)[number];
|
|
@@ -1828,6 +2148,27 @@ interface RecordRead {
|
|
|
1828
2148
|
}>;
|
|
1829
2149
|
}
|
|
1830
2150
|
|
|
2151
|
+
/** `public.permission_level`, in the store's own order. */
|
|
2152
|
+
type PermissionLevel = "viewer" | "commenter" | "editor" | "admin";
|
|
2153
|
+
/** The order the store writes them in, lowest first. */
|
|
2154
|
+
declare const PERMISSION_LEVELS: readonly PermissionLevel[];
|
|
2155
|
+
/** Whether `held` is the same rung as `needed` or a higher one. Nothing held is never enough. */
|
|
2156
|
+
declare function atLeast(held: PermissionLevel | null | undefined, needed: PermissionLevel): boolean;
|
|
2157
|
+
/** A level word the store sent, or null when it sent something this package does not know. */
|
|
2158
|
+
declare function asPermissionLevel(word: unknown): PermissionLevel | null;
|
|
2159
|
+
/** The higher of two levels — what a person holds when two ways in both let them through. */
|
|
2160
|
+
declare function highestLevel(left: PermissionLevel | null | undefined, right: PermissionLevel | null | undefined): PermissionLevel | null;
|
|
2161
|
+
/**
|
|
2162
|
+
* What one subject's level is, as `custom.my_levels` answers it. `null` is an
|
|
2163
|
+
* ANSWER — "you hold nothing on this" — and never a missing row: a screen that
|
|
2164
|
+
* could not tell "no access" from "not asked yet" would draw one of them as the
|
|
2165
|
+
* other.
|
|
2166
|
+
*/
|
|
2167
|
+
interface MyLevel {
|
|
2168
|
+
id: string;
|
|
2169
|
+
level: PermissionLevel | null;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
1831
2172
|
/**
|
|
1832
2173
|
* REC-1. A Table declares its fields, exactly one Home, and the properties
|
|
1833
2174
|
* `display`, `ordered`, `heavy` | `light`, `retention` and `detail`.
|
|
@@ -2008,6 +2349,69 @@ interface TableProposal {
|
|
|
2008
2349
|
fields: Array<Omit<FieldProposal, "table_id" | "because">>;
|
|
2009
2350
|
because: string;
|
|
2010
2351
|
}
|
|
2352
|
+
/**
|
|
2353
|
+
* WHAT A PERSON SAYS WHEN THEY ADD A COLUMN — the argument of
|
|
2354
|
+
* `custom.field_declare`, and deliberately NOT a `Field`.
|
|
2355
|
+
*
|
|
2356
|
+
* A `Field` is what the store STORES: a behaviour from a closed set of five,
|
|
2357
|
+
* modifiers beside it, a format, a unit, a relation target, a relation maximum,
|
|
2358
|
+
* an on-delete word, a compute_on, and the attached Rules that make a format
|
|
2359
|
+
* enforceable. A person adding a column knows none of that. They know they want
|
|
2360
|
+
* a date, or a person, or a list with these three choices in it.
|
|
2361
|
+
*
|
|
2362
|
+
* Every client that tried to bridge that gap itself got it wrong — the field
|
|
2363
|
+
* panel picked "Person" and the store read a Formula — so the bridge is the
|
|
2364
|
+
* STORE's, once, and this is the shape it takes.
|
|
2365
|
+
*/
|
|
2366
|
+
interface NewFieldDeclaration {
|
|
2367
|
+
/** What a person reads on the column. The only thing that is always required. */
|
|
2368
|
+
label: string;
|
|
2369
|
+
/** One of the thirteen. Absent means one of the three plain behaviours below. */
|
|
2370
|
+
parity_type?: ParityFieldType;
|
|
2371
|
+
/** Plain text, a long text or a plain number — the three that carry no parity type. */
|
|
2372
|
+
plain?: "text" | "long_text" | "number";
|
|
2373
|
+
/** Derived from the label when absent, which is why the panel never asks for it. */
|
|
2374
|
+
key?: string;
|
|
2375
|
+
required?: boolean;
|
|
2376
|
+
multi?: boolean;
|
|
2377
|
+
dated?: boolean;
|
|
2378
|
+
sort?: number;
|
|
2379
|
+
sensitivity?: FieldSensitivity;
|
|
2380
|
+
context_policy?: ContextPolicy;
|
|
2381
|
+
rules?: FieldRule[];
|
|
2382
|
+
/** A choice list's choices, as words. The store keeps them as a Table (FLD-5 / FLD-6). */
|
|
2383
|
+
options?: string[];
|
|
2384
|
+
/** …or the Table they already come from, when a person picked an existing list. */
|
|
2385
|
+
options_table_id?: Uuid;
|
|
2386
|
+
/** The currency symbol or code a currency field's numbers are in (FLD-N-1). */
|
|
2387
|
+
unit?: string;
|
|
2388
|
+
/** A date field: a day, or a day and a time. */
|
|
2389
|
+
kind?: "date" | "datetime";
|
|
2390
|
+
/** A lookup or a rollup: the key of the relation Field on THIS table it travels along. */
|
|
2391
|
+
via?: string;
|
|
2392
|
+
/** A lookup: the key of the value it reads on the far side. */
|
|
2393
|
+
pick?: string;
|
|
2394
|
+
/** A rollup: what it works out, and of which far-side field (`count` needs none). */
|
|
2395
|
+
agg?: "sum" | "count" | "min" | "max" | "avg";
|
|
2396
|
+
of?: string;
|
|
2397
|
+
/** A formula: the expression, in the same shape a Rule uses (REC-15). */
|
|
2398
|
+
expr?: Record<string, unknown>;
|
|
2399
|
+
compute_on?: ComputeOn;
|
|
2400
|
+
relation_max?: number;
|
|
2401
|
+
}
|
|
2402
|
+
/** What `custom.field_update` accepts: a field's settings, never what it holds. */
|
|
2403
|
+
interface FieldPatch {
|
|
2404
|
+
label?: string;
|
|
2405
|
+
required?: boolean;
|
|
2406
|
+
dated?: boolean;
|
|
2407
|
+
sort?: number;
|
|
2408
|
+
sensitivity?: FieldSensitivity;
|
|
2409
|
+
context_policy?: ContextPolicy;
|
|
2410
|
+
unit?: string;
|
|
2411
|
+
rules?: FieldRule[];
|
|
2412
|
+
/** The choices of a choice list, rewritten. A choice still wanted keeps its id. */
|
|
2413
|
+
options?: string[];
|
|
2414
|
+
}
|
|
2011
2415
|
|
|
2012
2416
|
/**
|
|
2013
2417
|
* A rule expression as `custom.rule_eval` ACTUALLY evaluates it — read off the
|
|
@@ -2808,4 +3212,4 @@ interface RecordsConfig {
|
|
|
2808
3212
|
schema?: string;
|
|
2809
3213
|
}
|
|
2810
3214
|
|
|
2811
|
-
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 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, 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 };
|
|
3215
|
+
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 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 };
|