@ai-matrx/records 0.58.2 → 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.
- package/CHANGELOG.md +76 -13
- package/dist/core/index.cjs +178 -20
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +45 -5
- package/dist/core/index.d.ts +45 -5
- package/dist/core/index.js +178 -20
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +135 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -4
- package/dist/index.d.ts +69 -4
- package/dist/index.js +135 -19
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +178 -20
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +579 -24
- package/dist/react/index.d.ts +579 -24
- package/dist/react/index.js +178 -20
- package/dist/react/index.js.map +1 -1
- package/dist/{types-NKSc_jZq.d.cts → types-FXtEsU7W.d.cts} +478 -22
- package/dist/{types-NKSc_jZq.d.ts → types-FXtEsU7W.d.ts} +478 -22
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +2 -2
- package/dist/use-cases/index.d.ts +2 -2
- package/dist/use-cases/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -3215,6 +3215,10 @@ var BY_SQLSTATE = {
|
|
|
3215
3215
|
// refusal class rather than a person guessing one.
|
|
3216
3216
|
"22003": "invalid_argument",
|
|
3217
3217
|
"02000": "not_found",
|
|
3218
|
+
// P0002 — `custom.inbox_snooze` / `custom.inbox_clear` (lane S5-PRIME-2, 2026-09-24): "There is
|
|
3219
|
+
// nothing in your inbox with that id". An invented id, another person's item and another
|
|
3220
|
+
// organization's all answer it alike, so it reads exactly as 02000 does: not found.
|
|
3221
|
+
"P0002": "not_found",
|
|
3218
3222
|
"23503": "missing_reference",
|
|
3219
3223
|
"23505": "already_exists",
|
|
3220
3224
|
"0A000": "not_supported",
|
|
@@ -3237,6 +3241,18 @@ var BY_SQLSTATE = {
|
|
|
3237
3241
|
// than a write this reader has already seen, rather than returning something
|
|
3238
3242
|
// they just lost access to. It is retryable on a fresher connection, which is
|
|
3239
3243
|
// a different instruction from every other refusal here.
|
|
3244
|
+
// 55000 — `custom.table_move` (SC-1', 2026-09-24) refuses a move the table's present state
|
|
3245
|
+
// does not allow: a destination that cannot take it, a table something else holds, contents
|
|
3246
|
+
// that point at themselves in a circle. The store's own sentence names the reason and nothing
|
|
3247
|
+
// moves, so it reads as a refusal on the merits. Caught by the live-door census on records
|
|
3248
|
+
// 0.58.3's tag, the seventh time the census found a class before a person did.
|
|
3249
|
+
"55000": "refused_by_rule",
|
|
3250
|
+
// 42P17 — a worked-out column that would read itself round a circle (STORE-TAILS-3,
|
|
3251
|
+
// 2026-09-25): `custom._field_reads_what_it_reads` refuses the declaration or edit that would
|
|
3252
|
+
// close the circle, naming every column in it, and `custom.far_value` refuses a circle stored
|
|
3253
|
+
// before that rule when a lookup or rollup is worked out. Refused on its merits, in the store's
|
|
3254
|
+
// own sentence, nothing written — so it reads as 55000 does.
|
|
3255
|
+
"42P17": "refused_by_rule",
|
|
3240
3256
|
"40001": "stale_read",
|
|
3241
3257
|
// 57014 — the store cancelled the statement at its own timeout. Like
|
|
3242
3258
|
// `stale_read` and unlike every other refusal here, the call was never
|
|
@@ -3433,6 +3449,7 @@ var DECLARABLE_FIELD_KINDS = [
|
|
|
3433
3449
|
{ kind: "currency", behavior: "range", parity: true, made_of: "FLD-N-1: a number whose UNIT is the currency and whose format is currency \u2014 on the Field, never in presentation" },
|
|
3434
3450
|
{ kind: "datetime", behavior: "range", parity: true, made_of: "a range of kind date or datetime \u2014 the dated modifier says the VALUES are dated, which is a different question" },
|
|
3435
3451
|
{ kind: "email", behavior: "text", parity: true, made_of: "text whose format is email" },
|
|
3452
|
+
{ kind: "entity_reference", behavior: "relation", parity: false, made_of: "SC-R / P12: a relation whose target mode is any (REL-8), restricted by config.allowed_types to the platform kinds it may name (custom.entity_reference_kinds() \u2014 agents, notes, web sites, workbooks, datasets, conversations \u2026); each value is {token, id}, the edge a platform.associations row record \u2192 <token>. File and Person stay relations to their kernel Tables" },
|
|
3436
3453
|
{ kind: "formula", behavior: "formula", parity: true, made_of: "FLD-9: a declared computation, on read or on write, evaluated by custom.rule_eval" },
|
|
3437
3454
|
{ kind: "long_text", behavior: "text", parity: false, made_of: "behaviour text with format long and config.multiline, for several lines rather than one" },
|
|
3438
3455
|
{ kind: "lookup", behavior: "formula", parity: true, made_of: "a Value read THROUGH a relation \u2014 config.via names the relation field, config.pick the Value on the far side" },
|
|
@@ -3540,20 +3557,34 @@ var STORE_DOORS = [
|
|
|
3540
3557
|
{ name: "agent_context", args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 50", returns: "jsonb", security: "invoker" },
|
|
3541
3558
|
{ name: "agent_table_claim", args: "p_organization uuid, p_table uuid, p_conversation uuid DEFAULT NULL::uuid", returns: "void", security: "definer" },
|
|
3542
3559
|
{ name: "agg_assert_key", args: "p_key text", returns: "text", security: "invoker" },
|
|
3560
|
+
{ name: "agg_bucket_ordinal", args: "p_by text, p_window_from timestamp without time zone, p_at timestamp without time zone, p_week_start text", returns: "integer", security: "invoker" },
|
|
3543
3561
|
{ name: "agg_buckets", args: "", returns: "text[]", security: "invoker" },
|
|
3544
3562
|
{ name: "agg_cadence_normalize", args: "p_cadence text", returns: "text", security: "invoker" },
|
|
3563
|
+
{ name: "agg_calendar", args: "p_organization_id uuid", returns: "jsonb", security: "invoker" },
|
|
3564
|
+
{ name: "agg_compare_kinds", args: "", returns: "text[]", security: "invoker" },
|
|
3565
|
+
{ name: "agg_compare_windows", args: "p_organization_id uuid, p_compare jsonb, p_bucket jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "invoker" },
|
|
3545
3566
|
{ name: "agg_deliver", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid, p_channel text, p_recipient_user_id uuid, p_event_key text, p_subject text, p_body text, p_payload jsonb DEFAULT '{}'::jsonb, p_dedupe_suffix text DEFAULT NULL::text", returns: "uuid", security: "invoker" },
|
|
3546
3567
|
{ name: "agg_deliver_quietly", args: "p_organization_id uuid, p_rule_id uuid, p_subject_id uuid, p_channel text, p_recipient_user_id uuid, p_event_key text, p_subject text, p_body text, p_payload jsonb, p_quiet_hours jsonb, p_link text, p_dedupe_suffix text DEFAULT NULL::text", returns: "uuid", security: "invoker" },
|
|
3568
|
+
{ name: "agg_delta", args: "p_current jsonb, p_prior jsonb", returns: "jsonb", security: "invoker" },
|
|
3547
3569
|
{ name: "agg_digest_assemble", args: "p_organization_id uuid, p_rule_id uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone, p_until timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "jsonb", security: "invoker" },
|
|
3548
3570
|
{ name: "agg_digest_due_at", args: "p_cadence text, p_schedule text, p_quiet jsonb, p_after timestamp with time zone", returns: "timestamp with time zone", security: "invoker" },
|
|
3571
|
+
{ name: "agg_digest_judged_at", args: "p_organization_id uuid, p_rule_id uuid", returns: "timestamp with time zone", security: "invoker" },
|
|
3549
3572
|
{ name: "agg_digest_run", args: "p_organization_id uuid, p_rule_id uuid DEFAULT NULL::uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "integer", security: "invoker" },
|
|
3573
|
+
{ name: "agg_digest_run_at", args: "p_organization_id uuid, p_rule_id uuid, p_since timestamp with time zone, p_now timestamp with time zone", returns: "integer", security: "invoker" },
|
|
3550
3574
|
{ name: "agg_digest_tick", args: "", returns: "integer", security: "invoker" },
|
|
3575
|
+
{ name: "agg_digest_tick_at", args: "p_now timestamp with time zone, p_organization_id uuid DEFAULT NULL::uuid", returns: "integer", security: "invoker" },
|
|
3551
3576
|
{ name: "agg_explain", 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", returns: "jsonb", security: "definer" },
|
|
3577
|
+
{ name: "agg_fields_readable_assert", args: "p_organization_id uuid, p_table_id uuid, p_keys text[], p_required text DEFAULT 'viewer'::text", returns: "void", security: "invoker" },
|
|
3552
3578
|
{ name: "agg_last_digest_at", args: "p_organization_id uuid, p_rule_id uuid", returns: "timestamp with time zone", security: "invoker" },
|
|
3579
|
+
{ name: "agg_local_label", args: "p_local timestamp without time zone, p_tz text", returns: "text", security: "invoker" },
|
|
3580
|
+
{ name: "agg_moment_sql", args: "p_key text, p_tz text", returns: "text", security: "invoker" },
|
|
3553
3581
|
{ name: "agg_operations", args: "", returns: "text[]", security: "invoker" },
|
|
3582
|
+
{ name: "agg_parse_moment", args: "p_raw text, p_tz text, p_what text", returns: "timestamp with time zone", security: "invoker" },
|
|
3583
|
+
{ name: "agg_period_start", args: "p_local timestamp without time zone, p_by text, p_week_start text DEFAULT 'monday'::text", returns: "timestamp without time zone", security: "invoker" },
|
|
3584
|
+
{ name: "agg_period_step", args: "p_by text", returns: "interval", security: "invoker" },
|
|
3554
3585
|
{ name: "agg_quiet_until", args: "p_quiet jsonb, p_at timestamp with time zone", returns: "timestamp with time zone", security: "invoker" },
|
|
3555
3586
|
{ name: "agg_record_name", args: "p_organization_id uuid, p_record_id uuid, p_state jsonb DEFAULT NULL::jsonb", returns: "text", security: "invoker" },
|
|
3556
|
-
{ name: "agg_sql", 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", returns: "text", security: "invoker" },
|
|
3587
|
+
{ name: "agg_sql", 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, p_window jsonb DEFAULT NULL::jsonb", returns: "text", security: "invoker" },
|
|
3557
3588
|
{ name: "agg_subscription_cadences", args: "", returns: "text[]", security: "invoker" },
|
|
3558
3589
|
{ name: "agg_subscription_fire", args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_changed_field_ids jsonb DEFAULT '[]'::jsonb", returns: "integer", security: "invoker" },
|
|
3559
3590
|
{ name: "agg_subscription_fire_entered", args: "p_organization_id uuid, p_record_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_since timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "integer", security: "invoker" },
|
|
@@ -3562,6 +3593,7 @@ var STORE_DOORS = [
|
|
|
3562
3593
|
{ name: "agg_value_sql", args: "p_key text", returns: "text", security: "invoker" },
|
|
3563
3594
|
{ name: "agg_view_admits", args: "p_organization_id uuid, p_saved_view_id uuid, p_record_id uuid", returns: "boolean", security: "invoker" },
|
|
3564
3595
|
{ name: "agg_view_admits_state", args: "p_definition jsonb, p_state jsonb", returns: "boolean", security: "invoker" },
|
|
3596
|
+
{ name: "agg_zero", args: "p_measures jsonb", returns: "jsonb", security: "invoker" },
|
|
3565
3597
|
{ name: "anon_capture", args: "p_organization_id uuid, p_client_key text, p_table_id uuid, p_payload jsonb, p_device text DEFAULT NULL::text, p_captured_at timestamp with time zone DEFAULT NULL::timestamp with time zone", returns: "uuid", security: "definer" },
|
|
3566
3598
|
{ name: "anon_clear", args: "p_organization_id uuid, p_submission_id uuid", returns: "uuid", security: "definer" },
|
|
3567
3599
|
{ name: "anon_inbound_land", args: "p_address text, p_secret text, p_payload jsonb, p_raw_payload jsonb DEFAULT '{}'::jsonb, p_client_key text DEFAULT NULL::text", returns: "uuid", security: "definer" },
|
|
@@ -3573,6 +3605,7 @@ var STORE_DOORS = [
|
|
|
3573
3605
|
{ name: "anon_token_verify", args: "p_secret text, p_origin text, p_required_mode text", returns: "TABLE(token_id uuid, organization_id uuid, form_id uuid, saved_view_id uuid, record_id uuid, mode text)", security: "definer" },
|
|
3574
3606
|
{ name: "anon_write", args: "p_secret text, p_origin text, p_payload jsonb, p_client_key text DEFAULT NULL::text, p_raw_payload jsonb DEFAULT '{}'::jsonb", returns: "uuid", security: "definer" },
|
|
3575
3607
|
{ name: "applicable_fields", args: "p_organization_id uuid, p_table_id uuid, p_record_type text DEFAULT NULL::text", returns: "SETOF custom.record", security: "definer" },
|
|
3608
|
+
{ name: "archive_event_of", args: "p_organization_id uuid, p_record_id uuid", returns: "history.migration_log", security: "definer" },
|
|
3576
3609
|
{ name: "assert_client_may_change", 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", returns: "void", security: "invoker" },
|
|
3577
3610
|
{ name: "assert_client_may_open", 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", returns: "void", security: "invoker" },
|
|
3578
3611
|
{ name: "assert_client_may_reach", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
|
|
@@ -3638,7 +3671,11 @@ var STORE_DOORS = [
|
|
|
3638
3671
|
{ name: "containment_depth_ceiling", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "integer", security: "invoker" },
|
|
3639
3672
|
{ name: "containment_edges", args: "p_organization_id uuid", returns: "TABLE(parent_id uuid, child_id uuid, via text)", security: "invoker" },
|
|
3640
3673
|
{ name: "containment_parent", args: "p_data jsonb", returns: "uuid", security: "invoker" },
|
|
3674
|
+
{ name: "context_compare_facts", args: "p_user_id uuid, p_record_ids uuid[], p_item_ids uuid[] DEFAULT NULL::uuid[], p_cells jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "definer" },
|
|
3675
|
+
{ name: "context_policy_rank", args: "p_policy text", returns: "integer", security: "invoker" },
|
|
3676
|
+
{ name: "context_resolve", args: "p_bindings jsonb", returns: "jsonb", security: "definer" },
|
|
3641
3677
|
{ name: "context_resolve", args: "p_organization_id uuid, p_bindings jsonb, p_scope_slug text DEFAULT 'scopes'::text", returns: "jsonb", security: "definer" },
|
|
3678
|
+
{ name: "context_tag_copy", args: "p_organization_id uuid", returns: "jsonb", security: "definer" },
|
|
3642
3679
|
{ name: "conversation_scope", args: "p_organization_id uuid, p_conversation_id uuid", returns: "jsonb", security: "definer" },
|
|
3643
3680
|
{ name: "conversation_scope_bind", args: "p_organization_id uuid, p_conversation_id uuid, p_record_id uuid", returns: "jsonb", security: "definer" },
|
|
3644
3681
|
{ name: "conversation_scope_context", args: "p_organization_id uuid, p_conversation_id uuid, p_relations integer DEFAULT 12, p_history integer DEFAULT 15, p_siblings integer DEFAULT 8", returns: "jsonb", security: "definer" },
|
|
@@ -3652,8 +3689,9 @@ var STORE_DOORS = [
|
|
|
3652
3689
|
{ name: "dashboard_field_keys", args: "p_organization_id uuid, p_table_id uuid", returns: "text[]", security: "definer" },
|
|
3653
3690
|
{ name: "dashboard_kinds", args: "", returns: "text[]", security: "invoker" },
|
|
3654
3691
|
{ name: "dashboard_moment_sql", args: "p_key text", returns: "text", security: "invoker" },
|
|
3655
|
-
{ name: "dashboard_run", args: "p_organization_id uuid, p_dashboard_id uuid, p_filter jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
|
|
3692
|
+
{ name: "dashboard_run", args: "p_organization_id uuid, p_dashboard_id uuid, p_filter jsonb DEFAULT '{}'::jsonb, p_compare jsonb DEFAULT NULL::jsonb, p_grain text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
3656
3693
|
{ name: "dashboard_stuck", args: "p_organization_id uuid, p_table_id uuid, p_state_key text, p_days integer DEFAULT 14, p_filter jsonb DEFAULT '{}'::jsonb, p_limit integer DEFAULT 50, p_required text DEFAULT 'viewer'::text", returns: "TABLE(record_id uuid, title text, state text, last_changed_at timestamp with time zone, days_unchanged numeric, measured_from text)", security: "definer" },
|
|
3694
|
+
{ name: "dashboard_target_field_assert", args: "p_organization_id uuid, p_table_id uuid, p_field_key text", returns: "void", security: "invoker" },
|
|
3657
3695
|
{ name: "dashboard_window_sql", args: "p_key text, p_window jsonb", returns: "text", security: "invoker" },
|
|
3658
3696
|
{ name: "dashboards", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(dashboard_id uuid, table_id uuid, name text, blocks jsonb, presentation jsonb, block_count integer, version integer, created_at timestamp with time zone, updated_at timestamp with time zone)", security: "definer" },
|
|
3659
3697
|
{ name: "decoration_colors", args: "", returns: "text[]", security: "invoker" },
|
|
@@ -3715,6 +3753,10 @@ var STORE_DOORS = [
|
|
|
3715
3753
|
{ name: "entity_fields", args: "p_organization_id uuid, p_token text", returns: "SETOF custom.record", security: "definer" },
|
|
3716
3754
|
{ name: "entity_record_read", args: "p_organization_id uuid, p_token text, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
3717
3755
|
{ name: "entity_records_find", args: "p_organization_id uuid, p_token text, p_key text, p_value jsonb DEFAULT NULL::jsonb, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0", returns: "jsonb", security: "invoker" },
|
|
3756
|
+
{ name: "entity_reference_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
|
|
3757
|
+
{ name: "entity_reference_kinds", args: "", returns: "TABLE(token text, label text, category text)", security: "definer" },
|
|
3758
|
+
{ name: "entity_reference_render", args: "p_organization_id uuid, p_table_id uuid, p_doc jsonb", returns: "jsonb", security: "invoker" },
|
|
3759
|
+
{ name: "entity_reference_words", args: "p_organization_id uuid, p_refs jsonb", returns: "jsonb", security: "definer" },
|
|
3718
3760
|
{ name: "entity_table", args: "p_token text", returns: "TABLE(token text, schema_name text, table_name text, type text, title_column text, label text, has_organization boolean, has_deleted_at boolean)", security: "invoker" },
|
|
3719
3761
|
{ name: "entity_value_write", args: "p_organization_id uuid, p_token text, p_record_id uuid, p_patch jsonb", returns: "jsonb", security: "invoker" },
|
|
3720
3762
|
{ name: "export_ceiling", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "integer", security: "invoker" },
|
|
@@ -3727,22 +3769,35 @@ var STORE_DOORS = [
|
|
|
3727
3769
|
{ name: "external_tier_contract", args: "", returns: "jsonb", security: "definer" },
|
|
3728
3770
|
{ name: "external_write_through", args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb", returns: "void", security: "definer" },
|
|
3729
3771
|
{ name: "external_writes_set", args: "p_organization_id uuid, p_source_id uuid, p_enabled boolean", returns: "boolean", security: "definer" },
|
|
3772
|
+
{ name: "far_value", args: "p_organization_id uuid, p_record_id uuid, p_key text, p_reader jsonb", returns: "jsonb", security: "invoker" },
|
|
3730
3773
|
{ name: "field_behaviour", args: "p_field_data jsonb", returns: "text", security: "invoker" },
|
|
3774
|
+
{ name: "field_context_policy_floor", args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid", returns: "TABLE(context_policy text, reads jsonb)", security: "definer" },
|
|
3775
|
+
{ name: "field_cycle", args: "p_organization_id uuid, p_field_data jsonb, p_self uuid", returns: "text[]", security: "definer" },
|
|
3731
3776
|
{ name: "field_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
3732
3777
|
{ name: "field_dependants", args: "p_organization_id uuid, p_field_id uuid", returns: "TABLE(kind text, dependant_id uuid, label text, how text)", security: "definer" },
|
|
3733
3778
|
{ name: "field_history", 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", 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)", security: "definer" },
|
|
3779
|
+
{ name: "field_input_closure", args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid", returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, depth integer)", security: "definer" },
|
|
3780
|
+
{ name: "field_inputs_of", args: "p_organization_id uuid, p_field_data jsonb", returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, how text)", security: "definer" },
|
|
3734
3781
|
{ name: "field_kernel_id", args: "", returns: "uuid", security: "invoker" },
|
|
3735
3782
|
{ name: "field_kinds", args: "", returns: "TABLE(kind text, behavior text, parity boolean, made_of text)", security: "invoker" },
|
|
3736
3783
|
{ name: "field_options", args: "p_organization_id uuid, p_field_id uuid", returns: "SETOF custom.record", security: "definer" },
|
|
3737
3784
|
{ name: "field_retire", args: "p_organization_id uuid, p_field_id uuid", returns: "boolean", security: "definer" },
|
|
3738
3785
|
{ name: "field_rules", args: "p_field_data jsonb", returns: "TABLE(kind text, spec jsonb)", security: "invoker" },
|
|
3786
|
+
{ name: "field_sensitivity_floor", args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid", returns: "TABLE(sensitivity text, reads jsonb)", security: "definer" },
|
|
3739
3787
|
{ name: "field_update", args: "p_organization_id uuid, p_field_id uuid, p_patch jsonb", returns: "uuid", security: "definer" },
|
|
3740
3788
|
{ name: "field_value_convert", args: "p_to jsonb, p_value jsonb", returns: "jsonb", security: "invoker" },
|
|
3741
3789
|
{ name: "field_words", args: "p_organization_id uuid, p_field_id uuid, p_value jsonb", returns: "text", security: "invoker" },
|
|
3742
3790
|
{ name: "file_kernel_id", args: "", returns: "uuid", security: "invoker" },
|
|
3791
|
+
{ name: "filter_is_rule", args: "p_filter jsonb", returns: "boolean", security: "invoker" },
|
|
3743
3792
|
{ name: "form_declare", args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text", returns: "uuid", security: "definer" },
|
|
3793
|
+
{ name: "form_draft_read", args: "p_form_id uuid, p_secret text", returns: "TABLE(answers jsonb, saved_at timestamp with time zone, expires_at timestamp with time zone, state text, message text)", security: "definer" },
|
|
3794
|
+
{ name: "form_draft_save", args: "p_form_id uuid, p_answers jsonb, p_secret text DEFAULT NULL::text, p_bucket text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(draft_secret text, saved_at timestamp with time zone, expires_at timestamp with time zone, state text, message text)", security: "definer" },
|
|
3744
3795
|
{ name: "form_notify", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "uuid", security: "invoker" },
|
|
3796
|
+
{ name: "form_preview_asks", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_values jsonb", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
|
|
3745
3797
|
{ name: "form_public", args: "p_form_id uuid", returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, state text, message text)", security: "definer" },
|
|
3798
|
+
{ name: "form_public_asks", args: "p_form_id uuid, p_values jsonb, p_secret text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
|
|
3799
|
+
{ name: "form_redirect_domains", args: "p_organization_id uuid", returns: "text[]", security: "invoker" },
|
|
3800
|
+
{ name: "form_redirect_refusal", args: "p_organization_id uuid, p_url text", returns: "text", security: "invoker" },
|
|
3746
3801
|
{ name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
|
|
3747
3802
|
{ name: "form_submit", args: "p_form_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text", returns: "TABLE(submission_id uuid, record_id uuid, state text, message text)", security: "definer" },
|
|
3748
3803
|
{ name: "forms", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, submission_cap integer, responses bigint, in_table bigint, held bigint, rejected bigint, state text, quarantine_rule_id uuid, notify_rule_id uuid, presentation jsonb)", security: "definer" },
|
|
@@ -3775,6 +3830,12 @@ var STORE_DOORS = [
|
|
|
3775
3830
|
{ name: "inbound_mail_land", args: "p_address text, p_mail jsonb, p_secret text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
3776
3831
|
{ name: "inbound_mail_map", args: "p_organization_id uuid, p_table_id uuid, p_mail jsonb", returns: "jsonb", security: "invoker" },
|
|
3777
3832
|
{ name: "inbound_set", args: "p_organization_id uuid, p_inbound_id uuid, p_enabled boolean", returns: "jsonb", security: "definer" },
|
|
3833
|
+
{ name: "inbox_clear", args: "p_organization_id uuid, p_item_id uuid", returns: "jsonb", security: "definer" },
|
|
3834
|
+
{ name: "inbox_counts", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "TABLE(organization_id uuid, organization_name text, waiting integer, snoozed integer, cleared integer, overdue integer, oldest_waiting_at timestamp with time zone)", security: "definer" },
|
|
3835
|
+
{ name: "inbox_remind_tick", args: "", returns: "jsonb", security: "invoker" },
|
|
3836
|
+
{ name: "inbox_snooze", args: "p_organization_id uuid, p_item_id uuid, p_until timestamp with time zone", returns: "jsonb", security: "definer" },
|
|
3837
|
+
{ name: "inbox_unclear", args: "p_organization_id uuid, p_item_id uuid", returns: "jsonb", security: "definer" },
|
|
3838
|
+
{ name: "inbox_unsnooze", args: "p_organization_id uuid, p_item_id uuid", returns: "jsonb", security: "definer" },
|
|
3778
3839
|
{ name: "index_payload", args: "p_organization_id uuid, p_table_id uuid, p_limit integer DEFAULT 1000", returns: "TABLE(id uuid, searchable text)", security: "invoker" },
|
|
3779
3840
|
{ name: "intern_provenance", args: "p_data jsonb", returns: "jsonb", security: "invoker" },
|
|
3780
3841
|
{ name: "io_cell", args: "p_organization_id uuid, p_field jsonb, p_word text, p_date_order text DEFAULT 'mdy'::text", returns: "jsonb", security: "invoker" },
|
|
@@ -3850,6 +3911,7 @@ var STORE_DOORS = [
|
|
|
3850
3911
|
{ name: "my_levels", args: "p_organization_id uuid, p_ids jsonb, p_type text DEFAULT 'record'::text", returns: "TABLE(id uuid, level permission_level)", security: "definer" },
|
|
3851
3912
|
{ name: "organization_clear", args: "p_organization_id uuid, p_confirm text, p_and_destroy boolean DEFAULT false", returns: "jsonb", security: "definer" },
|
|
3852
3913
|
{ name: "organization_contents", args: "p_organization_id uuid", returns: "jsonb", security: "definer" },
|
|
3914
|
+
{ name: "organization_home_id", args: "p_organization_id uuid", returns: "uuid", security: "invoker" },
|
|
3853
3915
|
{ name: "organization_kernel_id", args: "", returns: "uuid", security: "invoker" },
|
|
3854
3916
|
{ name: "organization_references", args: "p_kind text, p_organization_id uuid, p_row jsonb", returns: "TABLE(site text, what text, ref_id uuid, openable boolean)", security: "invoker" },
|
|
3855
3917
|
{ name: "owning_table", args: "p_organization_id uuid, p_record_id uuid", returns: "uuid", security: "invoker" },
|
|
@@ -3867,18 +3929,24 @@ var STORE_DOORS = [
|
|
|
3867
3929
|
{ name: "phone_pattern", args: "", returns: "text", security: "invoker" },
|
|
3868
3930
|
{ name: "pin_agent_cells", args: "p_new jsonb, p_old jsonb, p_agent_keys text[]", returns: "jsonb", security: "invoker" },
|
|
3869
3931
|
{ name: "pipeline_board", args: "p_organization_id uuid, p_table_id uuid, p_measure text DEFAULT NULL::text", returns: "TABLE(stage_key text, stage_label text, stage_position integer, cards bigint, total numeric, wip_limit integer, over_limit boolean)", security: "definer" },
|
|
3932
|
+
{ name: "pipeline_board", args: "p_organization_id uuid, p_table_id uuid, p_measure text, p_filter jsonb", returns: "TABLE(stage_key text, stage_label text, stage_position integer, cards bigint, total numeric, wip_limit integer, over_limit boolean)", security: "definer" },
|
|
3870
3933
|
{ name: "pipeline_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "jsonb", security: "definer" },
|
|
3871
3934
|
{ name: "pipeline_gate_preview", args: "p_organization_id uuid, p_table_id uuid, p_stage text, p_gate jsonb", returns: "jsonb", security: "definer" },
|
|
3872
3935
|
{ name: "pipeline_move", args: "p_organization_id uuid, p_record_id uuid, p_to text, p_also jsonb DEFAULT '{}'::jsonb, p_expected_version integer DEFAULT NULL::integer", returns: "jsonb", security: "definer" },
|
|
3936
|
+
{ name: "pipeline_move_many", args: "p_organization_id uuid, p_moves jsonb", returns: "jsonb", security: "definer" },
|
|
3873
3937
|
{ name: "pipeline_pending", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
3874
3938
|
{ name: "pipeline_read", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
3875
3939
|
{ name: "pipeline_transition_refusal", args: "p_organization_id uuid, p_record_id uuid, p_to text", returns: "jsonb", security: "definer" },
|
|
3876
3940
|
{ name: "pipelines", args: "p_organization_id uuid", returns: "TABLE(table_id uuid, table_name text, stage_field text, stage_label text, stages integer, rules integer, broken text, updated_at timestamp with time zone, updated_by uuid)", security: "definer" },
|
|
3941
|
+
{ name: "plural_of", args: "p_word text", returns: "text", security: "invoker" },
|
|
3942
|
+
{ name: "portal_accents", args: "", returns: "text[]", security: "invoker" },
|
|
3877
3943
|
{ name: "portal_admits", args: "p_organization_id uuid, p_user_id uuid DEFAULT NULL::uuid", returns: "boolean", security: "definer" },
|
|
3878
3944
|
{ name: "portal_archive", args: "p_organization_id uuid, p_portal_id uuid, p_confirm_title text, p_reason text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
3879
3945
|
{ name: "portal_card", args: "p_organization_id uuid, p_portal_id uuid", returns: "jsonb", security: "definer" },
|
|
3880
|
-
{ name: "portal_declare", args: "p_organization_id uuid, p_title text, p_client_table_id uuid, p_tables jsonb, p_portal_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text, p_sign_in_method text DEFAULT 'magic_link'::text", returns: "uuid", security: "definer" },
|
|
3946
|
+
{ name: "portal_declare", args: "p_organization_id uuid, p_title text, p_client_table_id uuid, p_tables jsonb, p_portal_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text, p_sign_in_method text DEFAULT 'magic_link'::text, p_config jsonb DEFAULT NULL::jsonb", returns: "uuid", security: "definer" },
|
|
3881
3947
|
{ name: "portal_field_map", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(field_id uuid, field_key text, field_type text, points_at uuid)", security: "definer" },
|
|
3948
|
+
{ name: "portal_form", args: "p_organization_id uuid, p_portal_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
3949
|
+
{ name: "portal_form_submit", args: "p_organization_id uuid, p_portal_id uuid, p_form_id uuid, p_payload jsonb, p_client_key text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
3882
3950
|
{ name: "portal_invitation", args: "p_slug text, p_email text", returns: "jsonb", security: "definer" },
|
|
3883
3951
|
{ name: "portal_invite", args: "p_organization_id uuid, p_portal_id uuid, p_client_record_id uuid, p_email text, p_user_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
3884
3952
|
{ name: "portal_invite_accept", args: "p_token text", returns: "jsonb", security: "definer" },
|
|
@@ -3937,16 +4005,21 @@ var STORE_DOORS = [
|
|
|
3937
4005
|
{ name: "read_records", args: "p_organization_id uuid, p_table_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(id uuid, document jsonb, level permission_level)", security: "definer" },
|
|
3938
4006
|
{ name: "read_records_archived", args: "p_organization_id uuid, p_table_id uuid, p_lane text DEFAULT 'org'::text, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(id uuid, document jsonb, level permission_level, archived_at timestamp with time zone, archived_by uuid, archived_by_name text)", security: "definer" },
|
|
3939
4007
|
{ name: "read_records_by_ids", args: "p_organization_id uuid, p_table_id uuid, p_record_ids uuid[], p_by_id boolean DEFAULT false", returns: "TABLE(id uuid, document jsonb, level permission_level)", security: "definer" },
|
|
4008
|
+
{ name: "read_records_in_view_order", args: "p_organization_id uuid, p_view_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: 'TABLE(id uuid, document jsonb, level permission_level, "position" numeric)', security: "definer" },
|
|
3940
4009
|
{ name: "read_records_matching", args: "p_organization_id uuid, p_table_id uuid, p_filter jsonb DEFAULT '{}'::jsonb, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(id uuid, document jsonb, level permission_level)", security: "definer" },
|
|
3941
4010
|
{ name: "realtime_topic_admits", args: "p_topic text", returns: "boolean", security: "definer" },
|
|
3942
|
-
{ name: "record_aggregate", 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", returns: "TABLE(groups jsonb, measures jsonb, row_count bigint)", security: "definer" },
|
|
4011
|
+
{ name: "record_aggregate", 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, p_compare jsonb DEFAULT NULL::jsonb", returns: "TABLE(groups jsonb, measures jsonb, row_count bigint, prior_groups jsonb, prior_measures jsonb, prior_row_count bigint, delta jsonb, compare jsonb)", security: "definer" },
|
|
3943
4012
|
{ name: "record_applicability", args: "p_organization_id uuid, p_record_id uuid", returns: "TABLE(rule_id uuid, rule_name text, rule_version integer, applies boolean, answer jsonb)", security: "invoker" },
|
|
3944
4013
|
{ name: "record_archiver", args: "p_organization_id uuid, p_record_id uuid", returns: "uuid", security: "definer" },
|
|
3945
4014
|
{ name: "record_as_of", args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone", returns: "TABLE(state jsonb, replayed boolean)", security: "definer" },
|
|
3946
4015
|
{ name: "record_card", args: "p_viewer uuid, p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "definer" },
|
|
3947
4016
|
{ name: "record_carrying_edges", args: "p_id uuid, p_data_class text, p_data jsonb, p_deleted_at timestamp with time zone", returns: "TABLE(container_id uuid, item_id uuid, edge_role text)", security: "invoker" },
|
|
4017
|
+
{ name: "record_change_actions", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
3948
4018
|
{ name: "record_delete", args: "p_organization_id uuid, p_record_id uuid", returns: "timestamp with time zone", security: "definer" },
|
|
4019
|
+
{ name: "record_entity_edges", 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", returns: "TABLE(target_type text, target_id uuid, edge_role text, field_id uuid, ord integer)", security: "invoker" },
|
|
3949
4020
|
{ name: "record_filter_sql", args: "p_filter jsonb", returns: "text", security: "invoker" },
|
|
4021
|
+
{ name: "record_filter_sql", args: "p_organization_id uuid, p_table_id uuid, p_filter jsonb", returns: "text", security: "invoker" },
|
|
4022
|
+
{ name: "record_headers", args: "p_organization_id uuid, p_ids uuid[]", returns: "TABLE(id uuid, table_id uuid, created_at timestamp with time zone, updated_at timestamp with time zone, version integer, deleted_at timestamp with time zone, mine boolean, created_by uuid)", security: "definer" },
|
|
3950
4023
|
{ name: "record_history", args: "p_organization_id uuid, p_record_id uuid, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(version integer, occurred_at timestamp with time zone, operation text, operation_label text, actor jsonb, changes jsonb, migration_id uuid, undoable boolean)", security: "definer" },
|
|
3951
4024
|
{ name: "record_platform_keys", args: "", returns: "text[]", security: "invoker" },
|
|
3952
4025
|
{ name: "record_relation_edges", 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", returns: "TABLE(target_id uuid, edge_role text, field_id uuid, ord integer)", security: "invoker" },
|
|
@@ -3961,6 +4034,7 @@ var STORE_DOORS = [
|
|
|
3961
4034
|
{ name: "record_state_as_of", args: "p_record_id uuid, p_at timestamp with time zone", returns: "TABLE(state jsonb, replayed boolean)", security: "definer" },
|
|
3962
4035
|
{ name: "record_table", args: "p_organization_id uuid, p_record_id uuid", returns: "uuid", security: "definer" },
|
|
3963
4036
|
{ name: "record_update", args: "p_organization_id uuid, p_record_id uuid, p_patch jsonb, p_expected_version integer DEFAULT NULL::integer", returns: "integer", security: "definer" },
|
|
4037
|
+
{ name: "record_value_one", args: "p_organization_id uuid, p_record_id uuid, p_key text", returns: "jsonb", security: "invoker" },
|
|
3964
4038
|
{ name: "record_values", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
3965
4039
|
{ name: "record_values_of", args: "p_row custom.record", returns: "jsonb", security: "invoker" },
|
|
3966
4040
|
{ name: "record_values_versioned", args: "p_organization_id uuid, p_record_id uuid", 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)", security: "definer" },
|
|
@@ -3985,6 +4059,7 @@ var STORE_DOORS = [
|
|
|
3985
4059
|
{ name: "relation_words_many", args: "p_organization_id uuid, p_field_id uuid, p_record_ids uuid[]", returns: "TABLE(record_id uuid, words text)", security: "definer" },
|
|
3986
4060
|
{ name: "reopen_declared_doors", args: "", returns: "TABLE(reopened text)", security: "definer" },
|
|
3987
4061
|
{ name: "required_epoch", args: "p_container_type text, p_container_id uuid, p_item_type text, p_item_id uuid", returns: "bigint", security: "definer" },
|
|
4062
|
+
{ name: "resolve_context", args: "p_entity_type text, p_entity_id uuid, p_record_ids uuid[] DEFAULT NULL::uuid[], p_table_ids uuid[] DEFAULT NULL::uuid[]", returns: "jsonb", security: "definer" },
|
|
3988
4063
|
{ name: "resolve_first_match", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
3989
4064
|
{ name: "resolve_id", args: "p_organization_id uuid, p_id uuid", returns: "uuid", security: "invoker" },
|
|
3990
4065
|
{ name: "retired_actor_words", args: "", returns: "jsonb", security: "invoker" },
|
|
@@ -3997,15 +4072,21 @@ var STORE_DOORS = [
|
|
|
3997
4072
|
{ name: "rule_eval", args: "p_organization_id uuid, p_expr jsonb, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
|
|
3998
4073
|
{ name: "rule_field_key", args: "p_organization_id uuid, p_field_id uuid", returns: "text", security: "invoker" },
|
|
3999
4074
|
{ name: "rule_field_label", args: "p_organization_id uuid, p_field_id uuid", returns: "text", security: "invoker" },
|
|
4075
|
+
{ name: "rule_filter_node_sql", args: "p_organization_id uuid, p_table_id uuid, p_node jsonb, p_map jsonb, p_visible text[]", returns: "text", security: "invoker" },
|
|
4000
4076
|
{ name: "rule_kernel_id", args: "", returns: "uuid", security: "invoker" },
|
|
4001
4077
|
{ name: "rule_members", args: "p_organization_id uuid, p_rule_id uuid", returns: "SETOF custom.record", security: "invoker" },
|
|
4078
|
+
{ name: "rule_members_visible", args: "p_organization_id uuid, p_rule_id uuid, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(id uuid, document jsonb, level permission_level)", security: "definer" },
|
|
4002
4079
|
{ name: "rule_membership", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
4003
4080
|
{ name: "rule_node_kinds", args: "", returns: "TABLE(node text, evaluated_by text, note text)", security: "invoker" },
|
|
4004
4081
|
{ name: "rule_run", args: "p_organization_id uuid, p_rule_id uuid, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
|
|
4082
|
+
{ name: "rule_sql_op", args: "p_op text, p_a jsonb, p_b jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "invoker" },
|
|
4005
4083
|
{ name: "rule_truth", args: "p_answer jsonb", returns: "boolean", security: "invoker" },
|
|
4006
4084
|
{ name: "rule_uses", args: "", returns: "text[]", security: "invoker" },
|
|
4007
4085
|
{ name: "rule_version", args: "p_organization_id uuid, p_rule_id uuid", returns: "integer", security: "invoker" },
|
|
4008
4086
|
{ name: "said", args: "p_value text, p_when_there_is_none text", returns: "text", security: "invoker" },
|
|
4087
|
+
{ name: "scope_member_reaches", args: "p_user_id uuid, p_record_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level", returns: "boolean", security: "invoker" },
|
|
4088
|
+
{ name: "scope_table_provision", args: "p_organization_id uuid, p_item_id uuid, p_scope_id uuid, p_home_id uuid DEFAULT NULL::uuid", returns: "uuid", security: "definer" },
|
|
4089
|
+
{ name: "sensitivity_rank", args: "p_sensitivity text", returns: "integer", security: "invoker" },
|
|
4009
4090
|
{ name: "share_access", args: "p_organization_id uuid, p_subject_id uuid", 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)", security: "definer" },
|
|
4010
4091
|
{ name: "share_grant", 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", returns: "jsonb", security: "definer" },
|
|
4011
4092
|
{ name: "share_lane_set", args: "p_organization_id uuid, p_subject_id uuid, p_choice text, p_level permission_level DEFAULT NULL::permission_level", returns: "jsonb", security: "definer" },
|
|
@@ -4051,23 +4132,31 @@ var STORE_DOORS = [
|
|
|
4051
4132
|
{ name: "table_declare", args: "p_organization_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
4052
4133
|
{ name: "table_decorate", args: "p_organization_id uuid, p_table_id uuid, p_path text[], p_value jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "definer" },
|
|
4053
4134
|
{ name: "table_decorations", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
4054
|
-
{ name: "table_facts", args: "p_organization_id uuid", returns: "TABLE(table_id uuid, visibility text, mine boolean)", security: "definer" },
|
|
4135
|
+
{ name: "table_facts", args: "p_organization_id uuid", returns: "TABLE(table_id uuid, visibility text, mine boolean, kept_by_the_app boolean, kept_for text, offered_as_context boolean, keeper_group text, keeper_says text, used_in_kind text, used_in_id uuid, used_in_table_id uuid)", security: "definer" },
|
|
4055
4136
|
{ name: "table_from_example", args: "p_organization_id uuid, p_home_id uuid, p_example jsonb", returns: "jsonb", security: "definer" },
|
|
4056
4137
|
{ name: "table_has_a_visible_record", args: "p_user uuid, p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "definer" },
|
|
4138
|
+
{ name: "table_home", args: "p_table_id uuid, p_to_organization_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
4057
4139
|
{ name: "table_is_live", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "invoker" },
|
|
4058
4140
|
{ name: "table_is_options_table", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "invoker" },
|
|
4141
|
+
{ name: "table_kept_for_derived", args: "p_data jsonb, p_is_kernel boolean, p_is_options boolean", returns: "text", security: "invoker" },
|
|
4059
4142
|
{ name: "table_kernel_id", args: "", returns: "uuid", security: "invoker" },
|
|
4143
|
+
{ name: "table_list_everywhere", args: "p_organization_id uuid", returns: "jsonb", security: "definer" },
|
|
4144
|
+
{ name: "table_move", args: "p_table_id uuid, p_to_organization_id uuid, p_expected_version integer DEFAULT NULL::integer", returns: "jsonb", security: "definer" },
|
|
4145
|
+
{ name: "table_placement", args: "p_organization_id uuid, p_table_id uuid, p_data jsonb, p_is_kernel boolean DEFAULT false", returns: "jsonb", security: "invoker" },
|
|
4060
4146
|
{ name: "table_record_ceiling", args: "", returns: "integer", security: "invoker" },
|
|
4061
4147
|
{ name: "table_record_ceiling", args: "p_organization_id uuid", returns: "integer", security: "invoker" },
|
|
4148
|
+
{ name: "table_row_counts", args: "p_organization_id uuid, p_table_ids uuid[]", returns: "TABLE(table_id uuid, visible_rows bigint)", security: "definer" },
|
|
4062
4149
|
{ name: "table_rules", args: "p_organization_id uuid, p_table_id uuid, p_use text, p_record_type text DEFAULT NULL::text", returns: "SETOF custom.record", security: "invoker" },
|
|
4063
4150
|
{ name: "table_share_outside", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
4064
4151
|
{ name: "table_share_outside_accept", args: "p_token text", returns: "jsonb", security: "definer" },
|
|
4065
4152
|
{ name: "table_share_outside_for_me", args: "", returns: "TABLE(invitation_id uuid, organization_id uuid, organization text, table_id uuid, table_name text, level text, level_label text, token text, expires_at timestamp with time zone, say text)", security: "definer" },
|
|
4153
|
+
{ name: "table_share_outside_grant", args: "p_organization_id uuid, p_table_id uuid, p_person text, p_level permission_level DEFAULT 'viewer'::permission_level", returns: "jsonb", security: "definer" },
|
|
4066
4154
|
{ name: "table_share_outside_invite", args: "p_organization_id uuid, p_table_id uuid, p_email text, p_level permission_level DEFAULT 'viewer'::permission_level", returns: "jsonb", security: "definer" },
|
|
4067
4155
|
{ name: "table_share_outside_resend", args: "p_organization_id uuid, p_invitation_id uuid", returns: "jsonb", security: "definer" },
|
|
4068
4156
|
{ name: "table_share_outside_revoke", args: "p_organization_id uuid, p_invitation_id uuid", returns: "jsonb", security: "definer" },
|
|
4069
4157
|
{ name: "table_stage_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
4070
4158
|
{ name: "table_storage", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
4159
|
+
{ name: "table_sync", args: "p_organization_id uuid, p_home_id uuid, p_spec jsonb", returns: "jsonb", security: "definer" },
|
|
4071
4160
|
{ name: "table_type_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
4072
4161
|
{ name: "table_unique_rule_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
|
|
4073
4162
|
{ name: "table_webhook_archive", args: "p_organization_id uuid, p_webhook_id uuid", returns: "boolean", security: "definer" },
|
|
@@ -4080,6 +4169,7 @@ var STORE_DOORS = [
|
|
|
4080
4169
|
{ name: "tables_shared_with_me", args: "", returns: "TABLE(table_id uuid, organization_id uuid, organization text, table_name text, level text, level_label text, shared_at timestamp with time zone, opens boolean, say text)", security: "definer" },
|
|
4081
4170
|
{ name: "trg_associations_bump_visibility", args: "", returns: "trigger", security: "definer" },
|
|
4082
4171
|
{ name: "undeclared_keys", args: "p_organization_id uuid, p_table_id uuid, p_data jsonb", returns: "text[]", security: "invoker" },
|
|
4172
|
+
{ name: "unresolved_sources_of", args: "p_sources jsonb, p_visible text[], p_by_id boolean DEFAULT false, p_key_ids jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
|
|
4083
4173
|
{ name: "validate_custom_fields", args: "p_token text, p_organization_id uuid, p_values jsonb", returns: "void", security: "invoker" },
|
|
4084
4174
|
{ name: "validate_value_envelope", args: "p_organization_id uuid, p_fields custom.record[], p_data jsonb", returns: "void", security: "invoker" },
|
|
4085
4175
|
{ name: "validate_values", args: "p_organization_id uuid, p_fields custom.record[], p_values jsonb, p_record_type text DEFAULT NULL::text", returns: "void", security: "invoker" },
|
|
@@ -4092,6 +4182,9 @@ var STORE_DOORS = [
|
|
|
4092
4182
|
{ name: "value_restore", args: "p_organization_id uuid, p_record_id uuid, p_field_key text, p_version integer, p_author jsonb", returns: "jsonb", security: "definer" },
|
|
4093
4183
|
{ name: "value_versions", args: "p_old jsonb, p_new jsonb", returns: "jsonb", security: "invoker" },
|
|
4094
4184
|
{ name: "view_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
4185
|
+
{ name: "view_keys", args: "", returns: "TABLE(path text, shape text, layouts text[], writer text, sentence text)", security: "invoker" },
|
|
4186
|
+
{ name: "view_keys_check", args: "p_organization_id uuid, p_table_id uuid, p_set jsonb, p_old jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
|
|
4187
|
+
{ name: "view_record_order_set", args: "p_organization_id uuid, p_view_id uuid, p_record_ids uuid[]", returns: "jsonb", security: "definer" },
|
|
4095
4188
|
{ name: "views", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(view_id uuid, name text, table_id uuid, filters jsonb, definition jsonb, created_at timestamp with time zone)", security: "definer" },
|
|
4096
4189
|
{ name: "visibility_ancestors", args: "p_item_type text, p_item_id uuid", returns: "TABLE(container_type text, container_id uuid, depth integer, max_level permission_level)", security: "definer" },
|
|
4097
4190
|
{ name: "visibility_as_of", args: "p_organization_id uuid, p_record_id uuid, p_at timestamp with time zone", 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)", security: "definer" },
|
|
@@ -4111,10 +4204,12 @@ var STORE_DOORS = [
|
|
|
4111
4204
|
{ name: "work_approval_may_decide", args: "p_organization_id uuid, p_approval_id uuid", returns: "boolean", security: "definer" },
|
|
4112
4205
|
{ name: "work_approval_read", args: "p_organization_id uuid, p_approval_id uuid", returns: "jsonb", security: "definer" },
|
|
4113
4206
|
{ name: "work_approval_request", args: "p_organization_id uuid, p_subject_id uuid, p_change jsonb, p_note text DEFAULT NULL::text, p_approver_id uuid DEFAULT NULL::uuid, p_origin text DEFAULT 'person'::text, p_conversation_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
4207
|
+
{ name: "work_approval_withdrawal", args: "p_organization_id uuid, p_data jsonb", returns: "text", security: "invoker" },
|
|
4114
4208
|
{ name: "work_assign", args: "p_organization_id uuid, p_record_id uuid, p_assignee_user_id uuid, p_due_date timestamp with time zone DEFAULT NULL::timestamp with time zone, p_clear_due boolean DEFAULT false", returns: "jsonb", security: "definer" },
|
|
4115
4209
|
{ name: "work_assignment_fields", args: "p_options_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(key text, label text, spec jsonb)", security: "invoker" },
|
|
4210
|
+
{ name: "work_decide_many", args: "p_organization_id uuid, p_decisions jsonb", returns: "jsonb", security: "definer" },
|
|
4116
4211
|
{ name: "work_has_assignment", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "definer" },
|
|
4117
|
-
{ name: "work_inbox", args: "p_organization_id uuid, p_limit integer DEFAULT 50, p_offset integer DEFAULT 0, p_include_decided boolean DEFAULT false", 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)", security: "definer" },
|
|
4212
|
+
{ name: "work_inbox", 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", 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)", security: "definer" },
|
|
4118
4213
|
{ name: "work_instantiation_shape", args: "p_organization_id uuid, p_instantiation_id uuid", returns: "jsonb", security: "definer" },
|
|
4119
4214
|
{ name: "work_list", args: "p_organization_id uuid, p_flavour text DEFAULT 'mine'::text, p_include_finished boolean DEFAULT false, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0", returns: "TABLE(record_id uuid, table_id uuid, table_name text, title text, assignee_id uuid, assignee_name text, assignee_user_id uuid, due_on timestamp with time zone, due_state text, status text, terminal boolean, assigned_by uuid, updated_at timestamp with time zone)", security: "definer" },
|
|
4120
4215
|
{ name: "work_person", args: "p_organization_id uuid, p_user_id uuid, p_create boolean DEFAULT true", returns: "uuid", security: "definer" },
|
|
@@ -4141,8 +4236,10 @@ var STORE_DOORS = [
|
|
|
4141
4236
|
var STORE_KNOBS = [
|
|
4142
4237
|
{ key: "accessible_entity_ids_guard", value: "true", type: "boolean" },
|
|
4143
4238
|
{ key: "action_run_records_max", value: "5000", type: "integer" },
|
|
4239
|
+
{ key: "agent_context_reads_the_copy", value: "false", type: "boolean" },
|
|
4144
4240
|
{ key: "agent_schema_changes", value: '"ask"', type: "string" },
|
|
4145
4241
|
{ key: "associations_guard", value: "true", type: "boolean" },
|
|
4242
|
+
{ key: "batch_items_max", value: "500", type: "integer" },
|
|
4146
4243
|
{ key: "code_paths_enabled", value: "true", type: "boolean" },
|
|
4147
4244
|
{ key: "consumer_chat_seeding_enabled", value: "false", type: "boolean" },
|
|
4148
4245
|
{ key: "consumer_checkout_enabled", value: "false", type: "boolean" },
|
|
@@ -4154,6 +4251,7 @@ var STORE_KNOBS = [
|
|
|
4154
4251
|
{ key: "consumer_saved_ai_outputs_enabled", value: "false", type: "boolean" },
|
|
4155
4252
|
{ key: "consumer_scopes_enabled", value: "false", type: "boolean" },
|
|
4156
4253
|
{ key: "containment_depth_ceiling", value: "16", type: "integer" },
|
|
4254
|
+
{ key: "context_copy_following", value: "true", type: "boolean" },
|
|
4157
4255
|
{ key: "cross_organization_links", value: "false", type: "boolean" },
|
|
4158
4256
|
{ key: "decoration_rules_max", value: "50", type: "integer" },
|
|
4159
4257
|
{ key: "decorations_max_bytes", value: "262144", type: "integer" },
|
|
@@ -4170,11 +4268,16 @@ var STORE_KNOBS = [
|
|
|
4170
4268
|
{ key: "entity_types_guard", value: "false", type: "boolean" },
|
|
4171
4269
|
{ key: "example_rows_max", value: "500", type: "integer" },
|
|
4172
4270
|
{ key: "export_rows_ceiling", value: "100000", type: "integer" },
|
|
4173
|
-
{ key: "external_principal_enabled", value: "
|
|
4271
|
+
{ key: "external_principal_enabled", value: "true", type: "boolean" },
|
|
4174
4272
|
{ key: "field_index_guard", value: "false", type: "boolean" },
|
|
4175
4273
|
{ key: "field_sensitivity_levels", value: '{"edit": {"public": "editor", "internal": "editor", "restricted": "admin", "confidential": "admin"}, "read": {"public": "viewer", "internal": "viewer", "restricted": "admin", "confidential": "editor"}}', type: "json" },
|
|
4274
|
+
{ key: "form_draft_days", value: "30", type: "integer" },
|
|
4275
|
+
{ key: "form_draft_max_bytes", value: "65536", type: "integer" },
|
|
4276
|
+
{ key: "form_draft_saves_per_hour", value: "240", type: "integer" },
|
|
4277
|
+
{ key: "form_redirect_domains", value: "[]", type: "json" },
|
|
4176
4278
|
{ key: "grid_layout", value: '{"mode": "auto", "wrap": false, "row_height": "normal", "fit_max_columns": 8, "freeze_first_column": false}', type: "json" },
|
|
4177
4279
|
{ key: "inbound_domain", value: '"inbound.matrxserver.com"', type: "string" },
|
|
4280
|
+
{ key: "inbox_reminder_after_days", value: "3", type: "integer" },
|
|
4178
4281
|
{ key: "member_default_level", value: '"viewer"', type: "enum" },
|
|
4179
4282
|
{ key: "member_default_visibility", value: '"all_records"', type: "enum" },
|
|
4180
4283
|
{ key: "outside_invite_who", value: '"org_admins_and_table_owners"', type: "string" },
|
|
@@ -4188,32 +4291,40 @@ var STORE_KNOBS = [
|
|
|
4188
4291
|
{ key: "sandbox_frame_height_px", value: "4000", type: "integer" },
|
|
4189
4292
|
{ key: "sandbox_message_bytes", value: "65536", type: "integer" },
|
|
4190
4293
|
{ key: "sandbox_org_components", value: "true", type: "boolean" },
|
|
4294
|
+
{ key: "scope_members_admitted", value: "true", type: "boolean" },
|
|
4191
4295
|
{ key: "signup_provisioning_guard", value: "false", type: "boolean" },
|
|
4192
4296
|
{ key: "stage_rule_enforcement", value: '"refuse"', type: "enum" },
|
|
4193
4297
|
{ key: "system_enabled", value: "true", type: "boolean" },
|
|
4194
4298
|
{ key: "table_record_ceiling", value: "150000", type: "integer" },
|
|
4299
|
+
{ key: "table_sync_rows_max", value: "20000", type: "integer" },
|
|
4195
4300
|
{ key: "table_webhooks_max", value: "10", type: "integer" },
|
|
4301
|
+
{ key: "time_zone", value: '"UTC"', type: "string" },
|
|
4196
4302
|
{ key: "value_max_bytes", value: "100000", type: "integer" },
|
|
4303
|
+
{ key: "view_record_order_max", value: "20000", type: "integer" },
|
|
4304
|
+
{ key: "week_start", value: '"monday"', type: "enum" },
|
|
4197
4305
|
{ key: "world_publish_enabled", value: "false", type: "boolean" }
|
|
4198
4306
|
];
|
|
4199
4307
|
var STORE_REFUSAL_CODES = [
|
|
4200
|
-
{ code: "02000", raised_by: "_checklist_instantiate,_portal_invite_payload,_share_write_person,_table_share_invite_payload,checklist_declare,checklist_run,checklist_step_complete,checklist_step_refusal,checklist_template_shape,conversation_scope_bind,dashboard_delete,dashboard_run,doc_letterhead,doc_render_body,doc_render_document,doc_render_read,doc_sign,doc_signature_intact,doc_signature_read,doc_template_delete,doc_template_read,doc_template_save,enrich_pin,entity_field_retire,entity_field_update,entity_record_read,entity_value_write,external_history_event,external_rows,external_stub_upsert,external_writes_set,io_restore,migrate_delete,migrate_extract_parent,migrate_merge,migrate_reclass,migrate_rename,migrate_reparent,migrate_retype,migrate_split,migrate_undo,organization_clear,portal_archive,portal_card,portal_declare,portal_invite,portal_invite_accept,portal_preview,portal_principal_bind,portal_restore,portal_revoke,read_record,record_delete,record_restore,record_restore_preview,record_table,record_update,relation_halves_repair,relation_uncarry,share_access,share_grant,share_lane_set,share_people,share_revoke,sign_request_cancel,sign_request_create,sign_request_remind,sign_request_unchanged,table_archive,table_share_outside_accept,table_share_outside_invite,table_share_outside_resend,table_share_outside_revoke,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_assign,work_record_states,work_set_state" },
|
|
4201
|
-
{ code: "0A000", raised_by: "checklist_step_complete,external_rows,external_source_declare,external_write_through,promote_field,promoted_index_expr,promoted_query_sql,promoted_read,rule_eval,work_assign" },
|
|
4308
|
+
{ code: "02000", raised_by: "_checklist_instantiate,_portal_config_judge,_portal_invite_payload,_share_write_person,_table_share_invite_payload,checklist_declare,checklist_run,checklist_step_complete,checklist_step_refusal,checklist_template_shape,conversation_scope_bind,dashboard_delete,dashboard_run,doc_letterhead,doc_render_body,doc_render_document,doc_render_read,doc_sign,doc_signature_intact,doc_signature_read,doc_template_delete,doc_template_read,doc_template_save,enrich_pin,entity_field_retire,entity_field_update,entity_record_read,entity_value_write,external_history_event,external_rows,external_stub_upsert,external_writes_set,io_restore,migrate_delete,migrate_extract_parent,migrate_merge,migrate_reclass,migrate_rename,migrate_reparent,migrate_retype,migrate_split,migrate_undo,organization_clear,portal_archive,portal_card,portal_declare,portal_form,portal_form_submit,portal_invite,portal_invite_accept,portal_preview,portal_principal_bind,portal_restore,portal_revoke,read_record,record_delete,record_restore,record_restore_preview,record_table,record_update,relation_halves_repair,relation_uncarry,share_access,share_grant,share_lane_set,share_people,share_revoke,sign_request_cancel,sign_request_create,sign_request_remind,sign_request_unchanged,table_archive,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_share_outside_revoke,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_assign,work_record_states,work_set_state" },
|
|
4309
|
+
{ code: "0A000", raised_by: "checklist_step_complete,external_rows,external_source_declare,external_write_through,promote_field,promoted_index_expr,promoted_query_sql,promoted_read,rule_eval,rule_filter_node_sql,work_assign" },
|
|
4202
4310
|
{ code: "22003", raised_by: "context_resolve" },
|
|
4203
|
-
{ code: "22004", raised_by: "_entity_custom_fields_guard,_share_write_person,_value_envelope,actor_word,agg_assert_key,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,booking_declare,capture_submit,checklist_declare,context_resolve,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_submit,home_add,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_restore,migrate_choice_keys,migrate_purge,migrate_purge_hard,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,pipeline_gate_preview,portal_declare,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_delete,record_reparent,record_resolve,record_restore,record_update,record_write,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_share_outside_invite,value_restore,view_declare,work_approval_decide,work_approval_request,work_template_declare" },
|
|
4204
|
-
{ code: "22007", raised_by: "dashboard_window_sql" },
|
|
4205
|
-
{ code: "22012", raised_by: "formula_eval,rule_eval" },
|
|
4206
|
-
{ code: "22023", raised_by: "_action_check,_booking_availability,_decorations_check,_entity_custom_fields_guard,_fx_date,_fx_num,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_take_op_id,_value_envelope,_work_shape_guard,action_run,actor_word,agg_assert_key,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,field_update,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,portal_declare,provenance_write,query_by_coordinates,query_rollup,read_records_archived,record_update,record_write_graph,record_write_many,relation_carry,rule_eval,rule_members,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_from_example,table_rules,table_webhook_declare,visibility_as_of,work_approval_request,work_list,work_slot_hold" },
|
|
4207
|
-
{ code: "23503", 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_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,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_members,rule_run,sign_request_create,subscription_mute,subscription_preview,table_decorate,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
4208
|
-
{ code: "23505", raised_by: "_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" },
|
|
4209
|
-
{ code: "23514", 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" },
|
|
4210
|
-
{ code: "40001", raised_by: "has_visibility_at" },
|
|
4211
|
-
{ code: "42501", raised_by: "_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_rule_definition_write,_store_door,agent_table_claim,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,conversation_scope_bind,conversation_scope_unbind,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_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_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,share_grant,subscription_mute,subscription_preview,table_share_outside_accept,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" },
|
|
4311
|
+
{ code: "22004", 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" },
|
|
4312
|
+
{ code: "22007", raised_by: "agg_parse_moment,dashboard_window_sql" },
|
|
4313
|
+
{ code: "22012", raised_by: "formula_eval,rule_eval,rule_sql_op" },
|
|
4314
|
+
{ code: "22023", 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" },
|
|
4315
|
+
{ code: "23503", 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" },
|
|
4316
|
+
{ code: "23505", 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" },
|
|
4317
|
+
{ code: "23514", 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" },
|
|
4318
|
+
{ code: "40001", raised_by: "has_visibility_at,table_move" },
|
|
4319
|
+
{ code: "42501", 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" },
|
|
4212
4320
|
{ code: "42703", raised_by: "entity_table,portal_declare" },
|
|
4321
|
+
{ code: "42P17", raised_by: "_field_reads_what_it_reads,far_value" },
|
|
4213
4322
|
{ code: "53400", raised_by: "anon_rate_take,delete_cascade_closure,enrich_due,enrich_land,promote_field" },
|
|
4214
|
-
{ code: "54000", raised_by: "action_run,hub_changed_by,table_decorate,table_from_example,table_webhook_declare" },
|
|
4323
|
+
{ code: "54000", raised_by: "action_run,form_draft_save,hub_changed_by,pipeline_move_many,record_headers,table_decorate,table_from_example,table_row_counts,table_sync,table_webhook_declare,view_record_order_set,work_decide_many" },
|
|
4215
4324
|
{ code: "54001", raised_by: "record_delete" },
|
|
4325
|
+
{ code: "55000", raised_by: "inbox_clear,inbox_snooze,table_move,work_approval_decide,work_approval_request" },
|
|
4216
4326
|
{ code: "P0001", raised_by: "action_run" },
|
|
4327
|
+
{ code: "P0002", raised_by: "inbox_clear,inbox_snooze" },
|
|
4217
4328
|
{ code: "PT409", raised_by: "record_update" },
|
|
4218
4329
|
{ code: "PT428", raised_by: "_record_rule_uses" }
|
|
4219
4330
|
];
|
|
@@ -4501,6 +4612,8 @@ var ENTITY_TOKENS = [
|
|
|
4501
4612
|
"doc_render",
|
|
4502
4613
|
"doc_signature",
|
|
4503
4614
|
"dockets",
|
|
4615
|
+
"document",
|
|
4616
|
+
"document_version",
|
|
4504
4617
|
"domain_classification",
|
|
4505
4618
|
"edge_payload_kind",
|
|
4506
4619
|
"egress_device",
|
|
@@ -4815,6 +4928,7 @@ var ENTITY_TOKENS = [
|
|
|
4815
4928
|
"merge_field_provenance",
|
|
4816
4929
|
"message",
|
|
4817
4930
|
"message_template",
|
|
4931
|
+
"message_template_detail",
|
|
4818
4932
|
"meta_excluded_schema",
|
|
4819
4933
|
"meta_table_stats_history",
|
|
4820
4934
|
"metadata_reserved_keys",
|
|
@@ -5053,6 +5167,7 @@ var ENTITY_TOKENS = [
|
|
|
5053
5167
|
"shortcut_category",
|
|
5054
5168
|
"skill",
|
|
5055
5169
|
"skill_category",
|
|
5170
|
+
"skill_detail",
|
|
5056
5171
|
"skill_render_definition",
|
|
5057
5172
|
"sms_consent",
|
|
5058
5173
|
"sms_conversation",
|
|
@@ -5139,6 +5254,7 @@ var ENTITY_TOKENS = [
|
|
|
5139
5254
|
"ui_surface_config",
|
|
5140
5255
|
"ui_surface_value",
|
|
5141
5256
|
"ui_surface_write_target",
|
|
5257
|
+
"univer_payload",
|
|
5142
5258
|
"unsubscribe_token",
|
|
5143
5259
|
"uploads_inflight",
|
|
5144
5260
|
"user_achievement",
|
|
@@ -5793,6 +5909,12 @@ var DOORS = {
|
|
|
5793
5909
|
workApprovalDecide: "work_approval_decide",
|
|
5794
5910
|
/** Lane S4: many inbox decisions, one call, a verdict per item. */
|
|
5795
5911
|
workDecideMany: "work_decide_many",
|
|
5912
|
+
/** Lane S5-PRIME-2: one person's own inbox state — snooze, clear, and the counts. */
|
|
5913
|
+
inboxSnooze: "inbox_snooze",
|
|
5914
|
+
inboxUnsnooze: "inbox_unsnooze",
|
|
5915
|
+
inboxClear: "inbox_clear",
|
|
5916
|
+
inboxUnclear: "inbox_unclear",
|
|
5917
|
+
inboxCounts: "inbox_counts",
|
|
5796
5918
|
workApprovalRead: "work_approval_read",
|
|
5797
5919
|
// PRODUCTS row 13 — checklists and SOP runs.
|
|
5798
5920
|
checklistRefusal: "checklist_refusal",
|
|
@@ -7740,11 +7862,47 @@ function createRecordsClient(config) {
|
|
|
7740
7862
|
p_organization_id: org,
|
|
7741
7863
|
p_limit: args?.limit ?? 50,
|
|
7742
7864
|
p_offset: args?.offset ?? 0,
|
|
7743
|
-
p_include_decided: args?.includeDecided ?? false
|
|
7865
|
+
p_include_decided: args?.includeDecided ?? false,
|
|
7866
|
+
p_view: args?.view ?? "inbox"
|
|
7744
7867
|
},
|
|
7745
7868
|
"workInbox"
|
|
7746
7869
|
);
|
|
7747
7870
|
},
|
|
7871
|
+
async inboxSnooze({ item_id, until }) {
|
|
7872
|
+
return callDoor(
|
|
7873
|
+
DOORS.inboxSnooze,
|
|
7874
|
+
{ p_organization_id: org, p_item_id: item_id, p_until: until },
|
|
7875
|
+
"inboxSnooze"
|
|
7876
|
+
);
|
|
7877
|
+
},
|
|
7878
|
+
async inboxUnsnooze({ item_id }) {
|
|
7879
|
+
return callDoor(
|
|
7880
|
+
DOORS.inboxUnsnooze,
|
|
7881
|
+
{ p_organization_id: org, p_item_id: item_id },
|
|
7882
|
+
"inboxUnsnooze"
|
|
7883
|
+
);
|
|
7884
|
+
},
|
|
7885
|
+
async inboxClear({ item_id }) {
|
|
7886
|
+
return callDoor(
|
|
7887
|
+
DOORS.inboxClear,
|
|
7888
|
+
{ p_organization_id: org, p_item_id: item_id },
|
|
7889
|
+
"inboxClear"
|
|
7890
|
+
);
|
|
7891
|
+
},
|
|
7892
|
+
async inboxUnclear({ item_id }) {
|
|
7893
|
+
return callDoor(
|
|
7894
|
+
DOORS.inboxUnclear,
|
|
7895
|
+
{ p_organization_id: org, p_item_id: item_id },
|
|
7896
|
+
"inboxUnclear"
|
|
7897
|
+
);
|
|
7898
|
+
},
|
|
7899
|
+
async inboxCounts(args) {
|
|
7900
|
+
return callDoor(
|
|
7901
|
+
DOORS.inboxCounts,
|
|
7902
|
+
{ p_organization_id: args?.everyOrganization ? null : org },
|
|
7903
|
+
"inboxCounts"
|
|
7904
|
+
);
|
|
7905
|
+
},
|
|
7748
7906
|
async workList(args) {
|
|
7749
7907
|
return callDoor(
|
|
7750
7908
|
DOORS.workList,
|