@ai-matrx/records 0.58.4 → 0.58.6

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.
@@ -709,6 +709,11 @@ declare const STORE_DOORS: readonly [{
709
709
  readonly args: "p_organization_id uuid, p_table_id uuid, p_record_type text DEFAULT NULL::text";
710
710
  readonly returns: "SETOF custom.record";
711
711
  readonly security: "definer";
712
+ }, {
713
+ readonly name: "archive_event_of";
714
+ readonly args: "p_organization_id uuid, p_record_id uuid";
715
+ readonly returns: "history.migration_log";
716
+ readonly security: "definer";
712
717
  }, {
713
718
  readonly name: "assert_client_may_change";
714
719
  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";
@@ -1039,6 +1044,11 @@ declare const STORE_DOORS: readonly [{
1039
1044
  readonly args: "p_user_id uuid, p_record_ids uuid[], p_item_ids uuid[] DEFAULT NULL::uuid[], p_cells jsonb DEFAULT NULL::jsonb";
1040
1045
  readonly returns: "jsonb";
1041
1046
  readonly security: "definer";
1047
+ }, {
1048
+ readonly name: "context_policy_rank";
1049
+ readonly args: "p_policy text";
1050
+ readonly returns: "integer";
1051
+ readonly security: "invoker";
1042
1052
  }, {
1043
1053
  readonly name: "context_resolve";
1044
1054
  readonly args: "p_bindings jsonb";
@@ -1049,6 +1059,11 @@ declare const STORE_DOORS: readonly [{
1049
1059
  readonly args: "p_organization_id uuid, p_bindings jsonb, p_scope_slug text DEFAULT 'scopes'::text";
1050
1060
  readonly returns: "jsonb";
1051
1061
  readonly security: "definer";
1062
+ }, {
1063
+ readonly name: "context_tag_copy";
1064
+ readonly args: "p_organization_id uuid";
1065
+ readonly returns: "jsonb";
1066
+ readonly security: "definer";
1052
1067
  }, {
1053
1068
  readonly name: "conversation_scope";
1054
1069
  readonly args: "p_organization_id uuid, p_conversation_id uuid";
@@ -1514,11 +1529,26 @@ declare const STORE_DOORS: readonly [{
1514
1529
  readonly args: "p_organization_id uuid, p_source_id uuid, p_enabled boolean";
1515
1530
  readonly returns: "boolean";
1516
1531
  readonly security: "definer";
1532
+ }, {
1533
+ readonly name: "far_value";
1534
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_key text, p_reader jsonb";
1535
+ readonly returns: "jsonb";
1536
+ readonly security: "invoker";
1517
1537
  }, {
1518
1538
  readonly name: "field_behaviour";
1519
1539
  readonly args: "p_field_data jsonb";
1520
1540
  readonly returns: "text";
1521
1541
  readonly security: "invoker";
1542
+ }, {
1543
+ readonly name: "field_context_policy_floor";
1544
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid";
1545
+ readonly returns: "TABLE(context_policy text, reads jsonb)";
1546
+ readonly security: "definer";
1547
+ }, {
1548
+ readonly name: "field_cycle";
1549
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid";
1550
+ readonly returns: "text[]";
1551
+ readonly security: "definer";
1522
1552
  }, {
1523
1553
  readonly name: "field_declare";
1524
1554
  readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
@@ -1534,6 +1564,16 @@ declare const STORE_DOORS: readonly [{
1534
1564
  readonly args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0, p_record_id uuid DEFAULT NULL::uuid";
1535
1565
  readonly returns: "TABLE(record_id uuid, record_title text, version integer, occurred_at timestamp with time zone, operation_label text, actor jsonb, before jsonb, after jsonb)";
1536
1566
  readonly security: "definer";
1567
+ }, {
1568
+ readonly name: "field_input_closure";
1569
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid";
1570
+ readonly returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, depth integer)";
1571
+ readonly security: "definer";
1572
+ }, {
1573
+ readonly name: "field_inputs_of";
1574
+ readonly args: "p_organization_id uuid, p_field_data jsonb";
1575
+ readonly returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, how text)";
1576
+ readonly security: "definer";
1537
1577
  }, {
1538
1578
  readonly name: "field_kernel_id";
1539
1579
  readonly args: "";
@@ -1559,6 +1599,11 @@ declare const STORE_DOORS: readonly [{
1559
1599
  readonly args: "p_field_data jsonb";
1560
1600
  readonly returns: "TABLE(kind text, spec jsonb)";
1561
1601
  readonly security: "invoker";
1602
+ }, {
1603
+ readonly name: "field_sensitivity_floor";
1604
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid";
1605
+ readonly returns: "TABLE(sensitivity text, reads jsonb)";
1606
+ readonly security: "definer";
1562
1607
  }, {
1563
1608
  readonly name: "field_update";
1564
1609
  readonly args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb";
@@ -1789,6 +1834,36 @@ declare const STORE_DOORS: readonly [{
1789
1834
  readonly args: "p_organization_id uuid, p_inbound_id uuid, p_enabled boolean";
1790
1835
  readonly returns: "jsonb";
1791
1836
  readonly security: "definer";
1837
+ }, {
1838
+ readonly name: "inbox_clear";
1839
+ readonly args: "p_organization_id uuid, p_item_id uuid";
1840
+ readonly returns: "jsonb";
1841
+ readonly security: "definer";
1842
+ }, {
1843
+ readonly name: "inbox_counts";
1844
+ readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
1845
+ readonly returns: "TABLE(organization_id uuid, organization_name text, waiting integer, snoozed integer, cleared integer, overdue integer, oldest_waiting_at timestamp with time zone)";
1846
+ readonly security: "definer";
1847
+ }, {
1848
+ readonly name: "inbox_remind_tick";
1849
+ readonly args: "";
1850
+ readonly returns: "jsonb";
1851
+ readonly security: "invoker";
1852
+ }, {
1853
+ readonly name: "inbox_snooze";
1854
+ readonly args: "p_organization_id uuid, p_item_id uuid, p_until timestamp with time zone";
1855
+ readonly returns: "jsonb";
1856
+ readonly security: "definer";
1857
+ }, {
1858
+ readonly name: "inbox_unclear";
1859
+ readonly args: "p_organization_id uuid, p_item_id uuid";
1860
+ readonly returns: "jsonb";
1861
+ readonly security: "definer";
1862
+ }, {
1863
+ readonly name: "inbox_unsnooze";
1864
+ readonly args: "p_organization_id uuid, p_item_id uuid";
1865
+ readonly returns: "jsonb";
1866
+ readonly security: "definer";
1792
1867
  }, {
1793
1868
  readonly name: "index_payload";
1794
1869
  readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000";
@@ -2779,6 +2854,11 @@ declare const STORE_DOORS: readonly [{
2779
2854
  readonly args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb, p_expected_version integer DEFAULT NULL::integer";
2780
2855
  readonly returns: "integer";
2781
2856
  readonly security: "definer";
2857
+ }, {
2858
+ readonly name: "record_value_one";
2859
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_key text";
2860
+ readonly returns: "jsonb";
2861
+ readonly security: "invoker";
2782
2862
  }, {
2783
2863
  readonly name: "record_values";
2784
2864
  readonly args: "p_organization_id uuid, p_record_id uuid";
@@ -3034,6 +3114,11 @@ declare const STORE_DOORS: readonly [{
3034
3114
  readonly args: "p_organization_id uuid, p_item_id uuid, p_scope_id uuid, p_home_id uuid DEFAULT NULL::uuid";
3035
3115
  readonly returns: "uuid";
3036
3116
  readonly security: "definer";
3117
+ }, {
3118
+ readonly name: "sensitivity_rank";
3119
+ readonly args: "p_sensitivity text";
3120
+ readonly returns: "integer";
3121
+ readonly security: "invoker";
3037
3122
  }, {
3038
3123
  readonly name: "share_access";
3039
3124
  readonly args: "p_organization_id uuid, p_subject_id uuid";
@@ -3509,6 +3594,16 @@ declare const STORE_DOORS: readonly [{
3509
3594
  readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
3510
3595
  readonly returns: "uuid";
3511
3596
  readonly security: "definer";
3597
+ }, {
3598
+ readonly name: "view_keys";
3599
+ readonly args: "";
3600
+ readonly returns: "TABLE(path text, shape text, layouts text[], writer text, sentence text)";
3601
+ readonly security: "invoker";
3602
+ }, {
3603
+ readonly name: "view_keys_check";
3604
+ readonly args: "p_organization_id uuid, p_table_id uuid, p_set jsonb, p_old jsonb DEFAULT '{}'::jsonb";
3605
+ readonly returns: "jsonb";
3606
+ readonly security: "invoker";
3512
3607
  }, {
3513
3608
  readonly name: "view_record_order_set";
3514
3609
  readonly args: "p_organization_id uuid, p_view_id uuid, p_record_ids uuid[]";
@@ -3636,8 +3731,8 @@ declare const STORE_DOORS: readonly [{
3636
3731
  readonly security: "definer";
3637
3732
  }, {
3638
3733
  readonly name: "work_inbox";
3639
- readonly args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false";
3640
- readonly returns: "TABLE(item_id uuid, kind text, origin text, title text, subject_id uuid, subject_kind text, summary text, state text, due_on timestamp with time zone, due_state text, actionable boolean, requested_by uuid, requested_by_name text, at timestamp with time zone, table_id uuid, table_name text, decided_by uuid, decided_by_name text, decided_at timestamp with time zone, outcome text)";
3734
+ readonly args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false, p_view text DEFAULT 'inbox'::text";
3735
+ readonly returns: "TABLE(item_id uuid, kind text, origin text, title text, subject_id uuid, subject_kind text, summary text, state text, due_on timestamp with time zone, due_state text, actionable boolean, requested_by uuid, requested_by_name text, at timestamp with time zone, table_id uuid, table_name text, decided_by uuid, decided_by_name text, decided_at timestamp with time zone, outcome text, snoozed_until timestamp with time zone, cleared_at timestamp with time zone, snoozed_count integer, cleared_count integer)";
3641
3736
  readonly security: "definer";
3642
3737
  }, {
3643
3738
  readonly name: "work_instantiation_shape";
@@ -3759,6 +3854,10 @@ declare const STORE_KNOBS: readonly [{
3759
3854
  readonly key: "action_run_records_max";
3760
3855
  readonly value: "5000";
3761
3856
  readonly type: "integer";
3857
+ }, {
3858
+ readonly key: "agent_context_reads_the_copy";
3859
+ readonly value: "false";
3860
+ readonly type: "boolean";
3762
3861
  }, {
3763
3862
  readonly key: "agent_schema_changes";
3764
3863
  readonly value: "\"ask\"";
@@ -3919,6 +4018,10 @@ declare const STORE_KNOBS: readonly [{
3919
4018
  readonly key: "inbound_domain";
3920
4019
  readonly value: "\"inbound.matrxserver.com\"";
3921
4020
  readonly type: "string";
4021
+ }, {
4022
+ readonly key: "inbox_reminder_after_days";
4023
+ readonly value: "3";
4024
+ readonly type: "integer";
3922
4025
  }, {
3923
4026
  readonly key: "member_default_level";
3924
4027
  readonly value: "\"viewer\"";
@@ -4037,7 +4140,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
4037
4140
  readonly raised_by: "context_resolve";
4038
4141
  }, {
4039
4142
  readonly code: "22004";
4040
- readonly raised_by: "_entity_custom_fields_guard,_portal_config_judge,_share_write_person,_value_envelope,actor_word,agg_assert_key,agg_compare_windows,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,booking_declare,capture_submit,checklist_declare,context_resolve,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_submit,home_add,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_restore,migrate_choice_keys,migrate_purge,migrate_purge_hard,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,pipeline_gate_preview,portal_declare,portal_form_submit,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,record_write_graph,record_write_many,relation_carry,relation_halves_repair,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_archive,table_declare,table_move,table_share_outside_grant,table_share_outside_invite,value_restore,view_declare,work_approval_decide,work_approval_request,work_template_declare";
4143
+ readonly raised_by: "_entity_custom_fields_guard,_portal_config_judge,_share_write_person,_value_envelope,actor_word,agg_assert_key,agg_compare_windows,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,booking_declare,capture_submit,checklist_declare,context_resolve,context_tag_copy,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_submit,home_add,inbox_snooze,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_restore,migrate_choice_keys,migrate_purge,migrate_purge_hard,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,pipeline_gate_preview,portal_declare,portal_form_submit,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,record_write_graph,record_write_many,relation_carry,relation_halves_repair,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_archive,table_declare,table_move,table_share_outside_grant,table_share_outside_invite,value_restore,view_declare,work_approval_decide,work_approval_request,work_template_declare";
4041
4144
  }, {
4042
4145
  readonly code: "22007";
4043
4146
  readonly raised_by: "agg_parse_moment,dashboard_window_sql";
@@ -4046,7 +4149,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
4046
4149
  readonly raised_by: "formula_eval,rule_eval,rule_sql_op";
4047
4150
  }, {
4048
4151
  readonly code: "22023";
4049
- readonly raised_by: "_action_check,_booking_availability,_decorations_check,_entity_custom_fields_guard,_fx_date,_fx_num,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_portal_config_judge,_take_op_id,_value_envelope,_work_shape_guard,action_run,actor_word,agg_assert_key,agg_calendar,agg_compare_windows,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_run,dashboard_target_field_assert,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_reference_words,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,field_update,form_declare,form_draft_save,formula_eval,formula_parse,grid_layout_check,hub_changed_by,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,list_portals,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pin_agent_cells,pipeline_move,pipeline_move_many,portal_declare,portal_form_submit,provenance_write,query_by_coordinates,query_rollup,read_records_archived,read_records_in_view_order,record_filter_sql,record_update,record_write_graph,record_write_many,relation_carry,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_sql_op,scope_table_provision,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_from_example,table_move,table_rules,table_share_outside_grant,table_sync,table_webhook_declare,view_record_order_set,visibility_as_of,work_approval_request,work_decide_many,work_list,work_slot_hold";
4152
+ readonly raised_by: "_action_check,_booking_availability,_decorations_check,_entity_custom_fields_guard,_fx_date,_fx_num,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_portal_config_judge,_take_op_id,_value_envelope,_view_field_key,_view_key_value,_work_shape_guard,action_run,actor_word,agg_assert_key,agg_calendar,agg_compare_windows,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_run,dashboard_target_field_assert,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_reference_words,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,field_update,form_declare,form_draft_save,formula_eval,formula_parse,grid_layout_check,hub_changed_by,inbox_snooze,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,list_portals,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pin_agent_cells,pipeline_move,pipeline_move_many,portal_declare,portal_form_submit,provenance_write,query_by_coordinates,query_rollup,read_records_archived,read_records_in_view_order,record_filter_sql,record_update,record_write_graph,record_write_many,relation_carry,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_sql_op,scope_table_provision,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_from_example,table_move,table_rules,table_share_outside_grant,table_sync,table_webhook_declare,view_declare,view_keys_check,view_record_order_set,visibility_as_of,work_approval_request,work_decide_many,work_inbox,work_list,work_slot_hold";
4050
4153
  }, {
4051
4154
  readonly code: "23503";
4052
4155
  readonly raised_by: "_action_check,_booking_availability,_checklist_instantiate,_containment_guard,_decorations_check,_display_spec_for,_field_document_for,_field_type_parity_guard,_pipeline_stage_key,_record_rule_uses,action_declare,action_run,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,autonumber_backfill,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_draft_save,form_submit,grid_layout,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,read_records_in_view_order,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_run,sign_request_create,subscription_mute,subscription_preview,table_decorate,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,view_record_order_set,work_set_state,work_take_assignment,work_template_instantiate";
@@ -4055,16 +4158,19 @@ declare const STORE_REFUSAL_CODES: readonly [{
4055
4158
  readonly raised_by: "_portal_config_judge,_share_write_person,_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,sign_request_cancel,sign_request_create,table_share_outside_resend,work_approval_decide,work_slot_hold";
4056
4159
  }, {
4057
4160
  readonly code: "23514";
4058
- readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_display_spec_for,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_relation_halves_agree,_relation_kernel_targets,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_with_display,_work_shape_guard,_workdoors_approval_guard,action_run,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4161
+ readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_display_spec_for,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_relation_halves_agree,_relation_kernel_targets,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_with_display,_work_shape_guard,_workdoors_approval_guard,action_run,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4059
4162
  }, {
4060
4163
  readonly code: "40001";
4061
4164
  readonly raised_by: "has_visibility_at,table_move";
4062
4165
  }, {
4063
4166
  readonly code: "42501";
4064
- readonly raised_by: "_context_copy_fence,_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_portal_config_judge,_portal_principal_here,_rule_definition_write,_store_door,agent_table_claim,agg_fields_readable_assert,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_resolve,conversation_scope_bind,conversation_scope_unbind,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_draft_save,form_public_asks,form_submit,inbound_mail_land,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,migrate_purge,migrate_purge_hard,migrate_purge_hard_request,migrate_reclass,my_levels,organization_clear,organization_contents,portal_declare,portal_form,portal_form_submit,portal_invitation,portal_invite,portal_invite_accept,portal_principal_bind,promote_table,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_matching,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_move,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_webhook_declare,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
4167
+ readonly raised_by: "_context_copy_fence,_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_portal_config_judge,_portal_principal_here,_rule_definition_write,_store_door,agent_table_claim,agg_fields_readable_assert,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_resolve,conversation_scope_bind,conversation_scope_unbind,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_draft_save,form_public_asks,form_submit,inbound_mail_land,inbox_clear,inbox_snooze,inbox_unclear,inbox_unsnooze,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,migrate_purge,migrate_purge_hard,migrate_purge_hard_request,migrate_reclass,my_levels,organization_clear,organization_contents,portal_declare,portal_form,portal_form_submit,portal_invitation,portal_invite,portal_invite_accept,portal_principal_bind,promote_table,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_matching,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_move,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_webhook_declare,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
4065
4168
  }, {
4066
4169
  readonly code: "42703";
4067
4170
  readonly raised_by: "entity_table,portal_declare";
4171
+ }, {
4172
+ readonly code: "42P17";
4173
+ readonly raised_by: "_field_reads_what_it_reads,far_value";
4068
4174
  }, {
4069
4175
  readonly code: "53400";
4070
4176
  readonly raised_by: "anon_rate_take,delete_cascade_closure,enrich_due,enrich_land,promote_field";
@@ -4076,10 +4182,13 @@ declare const STORE_REFUSAL_CODES: readonly [{
4076
4182
  readonly raised_by: "record_delete";
4077
4183
  }, {
4078
4184
  readonly code: "55000";
4079
- readonly raised_by: "table_move,work_approval_decide,work_approval_request";
4185
+ readonly raised_by: "inbox_clear,inbox_snooze,table_move,work_approval_decide,work_approval_request";
4080
4186
  }, {
4081
4187
  readonly code: "P0001";
4082
4188
  readonly raised_by: "action_run";
4189
+ }, {
4190
+ readonly code: "P0002";
4191
+ readonly raised_by: "inbox_clear,inbox_snooze";
4083
4192
  }, {
4084
4193
  readonly code: "PT409";
4085
4194
  readonly raised_by: "record_update";
@@ -709,6 +709,11 @@ declare const STORE_DOORS: readonly [{
709
709
  readonly args: "p_organization_id uuid, p_table_id uuid, p_record_type text DEFAULT NULL::text";
710
710
  readonly returns: "SETOF custom.record";
711
711
  readonly security: "definer";
712
+ }, {
713
+ readonly name: "archive_event_of";
714
+ readonly args: "p_organization_id uuid, p_record_id uuid";
715
+ readonly returns: "history.migration_log";
716
+ readonly security: "definer";
712
717
  }, {
713
718
  readonly name: "assert_client_may_change";
714
719
  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";
@@ -1039,6 +1044,11 @@ declare const STORE_DOORS: readonly [{
1039
1044
  readonly args: "p_user_id uuid, p_record_ids uuid[], p_item_ids uuid[] DEFAULT NULL::uuid[], p_cells jsonb DEFAULT NULL::jsonb";
1040
1045
  readonly returns: "jsonb";
1041
1046
  readonly security: "definer";
1047
+ }, {
1048
+ readonly name: "context_policy_rank";
1049
+ readonly args: "p_policy text";
1050
+ readonly returns: "integer";
1051
+ readonly security: "invoker";
1042
1052
  }, {
1043
1053
  readonly name: "context_resolve";
1044
1054
  readonly args: "p_bindings jsonb";
@@ -1049,6 +1059,11 @@ declare const STORE_DOORS: readonly [{
1049
1059
  readonly args: "p_organization_id uuid, p_bindings jsonb, p_scope_slug text DEFAULT 'scopes'::text";
1050
1060
  readonly returns: "jsonb";
1051
1061
  readonly security: "definer";
1062
+ }, {
1063
+ readonly name: "context_tag_copy";
1064
+ readonly args: "p_organization_id uuid";
1065
+ readonly returns: "jsonb";
1066
+ readonly security: "definer";
1052
1067
  }, {
1053
1068
  readonly name: "conversation_scope";
1054
1069
  readonly args: "p_organization_id uuid, p_conversation_id uuid";
@@ -1514,11 +1529,26 @@ declare const STORE_DOORS: readonly [{
1514
1529
  readonly args: "p_organization_id uuid, p_source_id uuid, p_enabled boolean";
1515
1530
  readonly returns: "boolean";
1516
1531
  readonly security: "definer";
1532
+ }, {
1533
+ readonly name: "far_value";
1534
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_key text, p_reader jsonb";
1535
+ readonly returns: "jsonb";
1536
+ readonly security: "invoker";
1517
1537
  }, {
1518
1538
  readonly name: "field_behaviour";
1519
1539
  readonly args: "p_field_data jsonb";
1520
1540
  readonly returns: "text";
1521
1541
  readonly security: "invoker";
1542
+ }, {
1543
+ readonly name: "field_context_policy_floor";
1544
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid";
1545
+ readonly returns: "TABLE(context_policy text, reads jsonb)";
1546
+ readonly security: "definer";
1547
+ }, {
1548
+ readonly name: "field_cycle";
1549
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid";
1550
+ readonly returns: "text[]";
1551
+ readonly security: "definer";
1522
1552
  }, {
1523
1553
  readonly name: "field_declare";
1524
1554
  readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
@@ -1534,6 +1564,16 @@ declare const STORE_DOORS: readonly [{
1534
1564
  readonly args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0, p_record_id uuid DEFAULT NULL::uuid";
1535
1565
  readonly returns: "TABLE(record_id uuid, record_title text, version integer, occurred_at timestamp with time zone, operation_label text, actor jsonb, before jsonb, after jsonb)";
1536
1566
  readonly security: "definer";
1567
+ }, {
1568
+ readonly name: "field_input_closure";
1569
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid";
1570
+ readonly returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, depth integer)";
1571
+ readonly security: "definer";
1572
+ }, {
1573
+ readonly name: "field_inputs_of";
1574
+ readonly args: "p_organization_id uuid, p_field_data jsonb";
1575
+ readonly returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, how text)";
1576
+ readonly security: "definer";
1537
1577
  }, {
1538
1578
  readonly name: "field_kernel_id";
1539
1579
  readonly args: "";
@@ -1559,6 +1599,11 @@ declare const STORE_DOORS: readonly [{
1559
1599
  readonly args: "p_field_data jsonb";
1560
1600
  readonly returns: "TABLE(kind text, spec jsonb)";
1561
1601
  readonly security: "invoker";
1602
+ }, {
1603
+ readonly name: "field_sensitivity_floor";
1604
+ readonly args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid";
1605
+ readonly returns: "TABLE(sensitivity text, reads jsonb)";
1606
+ readonly security: "definer";
1562
1607
  }, {
1563
1608
  readonly name: "field_update";
1564
1609
  readonly args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb";
@@ -1789,6 +1834,36 @@ declare const STORE_DOORS: readonly [{
1789
1834
  readonly args: "p_organization_id uuid, p_inbound_id uuid, p_enabled boolean";
1790
1835
  readonly returns: "jsonb";
1791
1836
  readonly security: "definer";
1837
+ }, {
1838
+ readonly name: "inbox_clear";
1839
+ readonly args: "p_organization_id uuid, p_item_id uuid";
1840
+ readonly returns: "jsonb";
1841
+ readonly security: "definer";
1842
+ }, {
1843
+ readonly name: "inbox_counts";
1844
+ readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
1845
+ readonly returns: "TABLE(organization_id uuid, organization_name text, waiting integer, snoozed integer, cleared integer, overdue integer, oldest_waiting_at timestamp with time zone)";
1846
+ readonly security: "definer";
1847
+ }, {
1848
+ readonly name: "inbox_remind_tick";
1849
+ readonly args: "";
1850
+ readonly returns: "jsonb";
1851
+ readonly security: "invoker";
1852
+ }, {
1853
+ readonly name: "inbox_snooze";
1854
+ readonly args: "p_organization_id uuid, p_item_id uuid, p_until timestamp with time zone";
1855
+ readonly returns: "jsonb";
1856
+ readonly security: "definer";
1857
+ }, {
1858
+ readonly name: "inbox_unclear";
1859
+ readonly args: "p_organization_id uuid, p_item_id uuid";
1860
+ readonly returns: "jsonb";
1861
+ readonly security: "definer";
1862
+ }, {
1863
+ readonly name: "inbox_unsnooze";
1864
+ readonly args: "p_organization_id uuid, p_item_id uuid";
1865
+ readonly returns: "jsonb";
1866
+ readonly security: "definer";
1792
1867
  }, {
1793
1868
  readonly name: "index_payload";
1794
1869
  readonly args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000";
@@ -2779,6 +2854,11 @@ declare const STORE_DOORS: readonly [{
2779
2854
  readonly args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb, p_expected_version integer DEFAULT NULL::integer";
2780
2855
  readonly returns: "integer";
2781
2856
  readonly security: "definer";
2857
+ }, {
2858
+ readonly name: "record_value_one";
2859
+ readonly args: "p_organization_id uuid, p_record_id uuid, p_key text";
2860
+ readonly returns: "jsonb";
2861
+ readonly security: "invoker";
2782
2862
  }, {
2783
2863
  readonly name: "record_values";
2784
2864
  readonly args: "p_organization_id uuid, p_record_id uuid";
@@ -3034,6 +3114,11 @@ declare const STORE_DOORS: readonly [{
3034
3114
  readonly args: "p_organization_id uuid, p_item_id uuid, p_scope_id uuid, p_home_id uuid DEFAULT NULL::uuid";
3035
3115
  readonly returns: "uuid";
3036
3116
  readonly security: "definer";
3117
+ }, {
3118
+ readonly name: "sensitivity_rank";
3119
+ readonly args: "p_sensitivity text";
3120
+ readonly returns: "integer";
3121
+ readonly security: "invoker";
3037
3122
  }, {
3038
3123
  readonly name: "share_access";
3039
3124
  readonly args: "p_organization_id uuid, p_subject_id uuid";
@@ -3509,6 +3594,16 @@ declare const STORE_DOORS: readonly [{
3509
3594
  readonly args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb";
3510
3595
  readonly returns: "uuid";
3511
3596
  readonly security: "definer";
3597
+ }, {
3598
+ readonly name: "view_keys";
3599
+ readonly args: "";
3600
+ readonly returns: "TABLE(path text, shape text, layouts text[], writer text, sentence text)";
3601
+ readonly security: "invoker";
3602
+ }, {
3603
+ readonly name: "view_keys_check";
3604
+ readonly args: "p_organization_id uuid, p_table_id uuid, p_set jsonb, p_old jsonb DEFAULT '{}'::jsonb";
3605
+ readonly returns: "jsonb";
3606
+ readonly security: "invoker";
3512
3607
  }, {
3513
3608
  readonly name: "view_record_order_set";
3514
3609
  readonly args: "p_organization_id uuid, p_view_id uuid, p_record_ids uuid[]";
@@ -3636,8 +3731,8 @@ declare const STORE_DOORS: readonly [{
3636
3731
  readonly security: "definer";
3637
3732
  }, {
3638
3733
  readonly name: "work_inbox";
3639
- readonly args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false";
3640
- readonly returns: "TABLE(item_id uuid, kind text, origin text, title text, subject_id uuid, subject_kind text, summary text, state text, due_on timestamp with time zone, due_state text, actionable boolean, requested_by uuid, requested_by_name text, at timestamp with time zone, table_id uuid, table_name text, decided_by uuid, decided_by_name text, decided_at timestamp with time zone, outcome text)";
3734
+ readonly args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false, p_view text DEFAULT 'inbox'::text";
3735
+ readonly returns: "TABLE(item_id uuid, kind text, origin text, title text, subject_id uuid, subject_kind text, summary text, state text, due_on timestamp with time zone, due_state text, actionable boolean, requested_by uuid, requested_by_name text, at timestamp with time zone, table_id uuid, table_name text, decided_by uuid, decided_by_name text, decided_at timestamp with time zone, outcome text, snoozed_until timestamp with time zone, cleared_at timestamp with time zone, snoozed_count integer, cleared_count integer)";
3641
3736
  readonly security: "definer";
3642
3737
  }, {
3643
3738
  readonly name: "work_instantiation_shape";
@@ -3759,6 +3854,10 @@ declare const STORE_KNOBS: readonly [{
3759
3854
  readonly key: "action_run_records_max";
3760
3855
  readonly value: "5000";
3761
3856
  readonly type: "integer";
3857
+ }, {
3858
+ readonly key: "agent_context_reads_the_copy";
3859
+ readonly value: "false";
3860
+ readonly type: "boolean";
3762
3861
  }, {
3763
3862
  readonly key: "agent_schema_changes";
3764
3863
  readonly value: "\"ask\"";
@@ -3919,6 +4018,10 @@ declare const STORE_KNOBS: readonly [{
3919
4018
  readonly key: "inbound_domain";
3920
4019
  readonly value: "\"inbound.matrxserver.com\"";
3921
4020
  readonly type: "string";
4021
+ }, {
4022
+ readonly key: "inbox_reminder_after_days";
4023
+ readonly value: "3";
4024
+ readonly type: "integer";
3922
4025
  }, {
3923
4026
  readonly key: "member_default_level";
3924
4027
  readonly value: "\"viewer\"";
@@ -4037,7 +4140,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
4037
4140
  readonly raised_by: "context_resolve";
4038
4141
  }, {
4039
4142
  readonly code: "22004";
4040
- readonly raised_by: "_entity_custom_fields_guard,_portal_config_judge,_share_write_person,_value_envelope,actor_word,agg_assert_key,agg_compare_windows,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,booking_declare,capture_submit,checklist_declare,context_resolve,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_submit,home_add,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_restore,migrate_choice_keys,migrate_purge,migrate_purge_hard,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,pipeline_gate_preview,portal_declare,portal_form_submit,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,record_write_graph,record_write_many,relation_carry,relation_halves_repair,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_archive,table_declare,table_move,table_share_outside_grant,table_share_outside_invite,value_restore,view_declare,work_approval_decide,work_approval_request,work_template_declare";
4143
+ readonly raised_by: "_entity_custom_fields_guard,_portal_config_judge,_share_write_person,_value_envelope,actor_word,agg_assert_key,agg_compare_windows,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,booking_declare,capture_submit,checklist_declare,context_resolve,context_tag_copy,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_submit,home_add,inbox_snooze,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_restore,migrate_choice_keys,migrate_purge,migrate_purge_hard,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,pipeline_gate_preview,portal_declare,portal_form_submit,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,record_write_graph,record_write_many,relation_carry,relation_halves_repair,relation_own,rule_declare,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_archive,table_declare,table_move,table_share_outside_grant,table_share_outside_invite,value_restore,view_declare,work_approval_decide,work_approval_request,work_template_declare";
4041
4144
  }, {
4042
4145
  readonly code: "22007";
4043
4146
  readonly raised_by: "agg_parse_moment,dashboard_window_sql";
@@ -4046,7 +4149,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
4046
4149
  readonly raised_by: "formula_eval,rule_eval,rule_sql_op";
4047
4150
  }, {
4048
4151
  readonly code: "22023";
4049
- readonly raised_by: "_action_check,_booking_availability,_decorations_check,_entity_custom_fields_guard,_fx_date,_fx_num,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_portal_config_judge,_take_op_id,_value_envelope,_work_shape_guard,action_run,actor_word,agg_assert_key,agg_calendar,agg_compare_windows,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_run,dashboard_target_field_assert,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_reference_words,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,field_update,form_declare,form_draft_save,formula_eval,formula_parse,grid_layout_check,hub_changed_by,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,list_portals,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pin_agent_cells,pipeline_move,pipeline_move_many,portal_declare,portal_form_submit,provenance_write,query_by_coordinates,query_rollup,read_records_archived,read_records_in_view_order,record_filter_sql,record_update,record_write_graph,record_write_many,relation_carry,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_sql_op,scope_table_provision,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_from_example,table_move,table_rules,table_share_outside_grant,table_sync,table_webhook_declare,view_record_order_set,visibility_as_of,work_approval_request,work_decide_many,work_list,work_slot_hold";
4152
+ readonly raised_by: "_action_check,_booking_availability,_decorations_check,_entity_custom_fields_guard,_fx_date,_fx_num,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_portal_config_judge,_take_op_id,_value_envelope,_view_field_key,_view_key_value,_work_shape_guard,action_run,actor_word,agg_assert_key,agg_calendar,agg_compare_windows,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_run,dashboard_target_field_assert,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_reference_words,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,field_update,form_declare,form_draft_save,formula_eval,formula_parse,grid_layout_check,hub_changed_by,inbox_snooze,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,list_portals,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pin_agent_cells,pipeline_move,pipeline_move_many,portal_declare,portal_form_submit,provenance_write,query_by_coordinates,query_rollup,read_records_archived,read_records_in_view_order,record_filter_sql,record_update,record_write_graph,record_write_many,relation_carry,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_sql_op,scope_table_provision,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_from_example,table_move,table_rules,table_share_outside_grant,table_sync,table_webhook_declare,view_declare,view_keys_check,view_record_order_set,visibility_as_of,work_approval_request,work_decide_many,work_inbox,work_list,work_slot_hold";
4050
4153
  }, {
4051
4154
  readonly code: "23503";
4052
4155
  readonly raised_by: "_action_check,_booking_availability,_checklist_instantiate,_containment_guard,_decorations_check,_display_spec_for,_field_document_for,_field_type_parity_guard,_pipeline_stage_key,_record_rule_uses,action_declare,action_run,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,autonumber_backfill,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_draft_save,form_submit,grid_layout,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,read_records_in_view_order,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_run,sign_request_create,subscription_mute,subscription_preview,table_decorate,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,view_record_order_set,work_set_state,work_take_assignment,work_template_instantiate";
@@ -4055,16 +4158,19 @@ declare const STORE_REFUSAL_CODES: readonly [{
4055
4158
  readonly raised_by: "_portal_config_judge,_share_write_person,_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,sign_request_cancel,sign_request_create,table_share_outside_resend,work_approval_decide,work_slot_hold";
4056
4159
  }, {
4057
4160
  readonly code: "23514";
4058
- readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_display_spec_for,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_relation_halves_agree,_relation_kernel_targets,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_with_display,_work_shape_guard,_workdoors_approval_guard,action_run,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4161
+ readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_display_spec_for,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_relation_halves_agree,_relation_kernel_targets,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_with_display,_work_shape_guard,_workdoors_approval_guard,action_run,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4059
4162
  }, {
4060
4163
  readonly code: "40001";
4061
4164
  readonly raised_by: "has_visibility_at,table_move";
4062
4165
  }, {
4063
4166
  readonly code: "42501";
4064
- readonly raised_by: "_context_copy_fence,_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_portal_config_judge,_portal_principal_here,_rule_definition_write,_store_door,agent_table_claim,agg_fields_readable_assert,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_resolve,conversation_scope_bind,conversation_scope_unbind,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_draft_save,form_public_asks,form_submit,inbound_mail_land,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,migrate_purge,migrate_purge_hard,migrate_purge_hard_request,migrate_reclass,my_levels,organization_clear,organization_contents,portal_declare,portal_form,portal_form_submit,portal_invitation,portal_invite,portal_invite_accept,portal_principal_bind,promote_table,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_matching,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_move,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_webhook_declare,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
4167
+ readonly raised_by: "_context_copy_fence,_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_portal_config_judge,_portal_principal_here,_rule_definition_write,_store_door,agent_table_claim,agg_fields_readable_assert,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_resolve,conversation_scope_bind,conversation_scope_unbind,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_draft_save,form_public_asks,form_submit,inbound_mail_land,inbox_clear,inbox_snooze,inbox_unclear,inbox_unsnooze,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,migrate_purge,migrate_purge_hard,migrate_purge_hard_request,migrate_reclass,my_levels,organization_clear,organization_contents,portal_declare,portal_form,portal_form_submit,portal_invitation,portal_invite,portal_invite_accept,portal_principal_bind,promote_table,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_matching,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_move,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_webhook_declare,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person";
4065
4168
  }, {
4066
4169
  readonly code: "42703";
4067
4170
  readonly raised_by: "entity_table,portal_declare";
4171
+ }, {
4172
+ readonly code: "42P17";
4173
+ readonly raised_by: "_field_reads_what_it_reads,far_value";
4068
4174
  }, {
4069
4175
  readonly code: "53400";
4070
4176
  readonly raised_by: "anon_rate_take,delete_cascade_closure,enrich_due,enrich_land,promote_field";
@@ -4076,10 +4182,13 @@ declare const STORE_REFUSAL_CODES: readonly [{
4076
4182
  readonly raised_by: "record_delete";
4077
4183
  }, {
4078
4184
  readonly code: "55000";
4079
- readonly raised_by: "table_move,work_approval_decide,work_approval_request";
4185
+ readonly raised_by: "inbox_clear,inbox_snooze,table_move,work_approval_decide,work_approval_request";
4080
4186
  }, {
4081
4187
  readonly code: "P0001";
4082
4188
  readonly raised_by: "action_run";
4189
+ }, {
4190
+ readonly code: "P0002";
4191
+ readonly raised_by: "inbox_clear,inbox_snooze";
4083
4192
  }, {
4084
4193
  readonly code: "PT409";
4085
4194
  readonly raised_by: "record_update";