@ai-matrx/records 0.55.1 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/dist/core/index.cjs +2515 -9
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +103 -5
- package/dist/core/index.d.ts +103 -5
- package/dist/core/index.js +2522 -9
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +199 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +239 -4
- package/dist/index.d.ts +239 -4
- package/dist/index.js +189 -9
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +2525 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +955 -12
- package/dist/react/index.d.ts +955 -12
- package/dist/react/index.js +2521 -9
- package/dist/react/index.js.map +1 -1
- package/dist/{field-Dr7Ugek4.d.cts → types-DC2tYa4w.d.cts} +644 -11
- package/dist/{field-Dr7Ugek4.d.ts → types-DC2tYa4w.d.ts} +644 -11
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +3 -336
- package/dist/use-cases/index.d.ts +3 -336
- package/dist/use-cases/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/index.ts
|
|
@@ -65,6 +75,7 @@ __export(src_exports, {
|
|
|
65
75
|
TABLE_TYPES: () => TABLE_TYPES,
|
|
66
76
|
VALUE_ALTERNATE_KEYS: () => VALUE_ALTERNATE_KEYS,
|
|
67
77
|
VALUE_ENVELOPE_KEYS: () => VALUE_ENVELOPE_KEYS,
|
|
78
|
+
actionRefusals: () => actionRefusals,
|
|
68
79
|
archivedByLine: () => archivedByLine,
|
|
69
80
|
archivedWhen: () => archivedWhen,
|
|
70
81
|
asPermissionLevel: () => asPermissionLevel,
|
|
@@ -79,6 +90,8 @@ __export(src_exports, {
|
|
|
79
90
|
emptyArchiveLine: () => emptyArchiveLine,
|
|
80
91
|
emptyPortalArchiveLine: () => emptyPortalArchiveLine,
|
|
81
92
|
err: () => err,
|
|
93
|
+
exampleSpec: () => exampleSpec,
|
|
94
|
+
exportPageXlsx: () => exportPageXlsx,
|
|
82
95
|
fieldKindFor: () => fieldKindFor,
|
|
83
96
|
forgetAllOps: () => forgetAllOps,
|
|
84
97
|
highestLevel: () => highestLevel,
|
|
@@ -105,6 +118,7 @@ __export(src_exports, {
|
|
|
105
118
|
portalPath: () => portalPath,
|
|
106
119
|
portalTitleTypedBack: () => portalTitleTypedBack,
|
|
107
120
|
publicFormPath: () => publicFormPath,
|
|
121
|
+
recordChangeTrigger: () => recordChangeTrigger,
|
|
108
122
|
rememberedOpCount: () => rememberedOpCount,
|
|
109
123
|
sameDocument: () => sameDocument,
|
|
110
124
|
scopeChip: () => scopeChip,
|
|
@@ -339,6 +353,7 @@ function fieldKindFor(field, kernel) {
|
|
|
339
353
|
return "text";
|
|
340
354
|
}
|
|
341
355
|
}
|
|
356
|
+
var UUID_TEXT = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
342
357
|
var TRUE_WORDS = /* @__PURE__ */ new Set(["true", "yes", "y", "1", "\u2713", "x", "checked", "on"]);
|
|
343
358
|
var FALSE_WORDS = /* @__PURE__ */ new Set(["false", "no", "n", "0", "", "unchecked", "off"]);
|
|
344
359
|
function coercionLabel(field) {
|
|
@@ -430,11 +445,23 @@ function coerceTypedAnswer(field, raw, opts = {}) {
|
|
|
430
445
|
// id belongs, and every filter, colour and rollup built on that column
|
|
431
446
|
// would stop agreeing with it. So it is refused and the person is told
|
|
432
447
|
// which control does hold it.
|
|
448
|
+
//
|
|
449
|
+
// BUT AN ID IS AN IDENTITY (RELATION-TARGETS, 2026-09-23). A Person or File
|
|
450
|
+
// column holds the kernel Person / File record, and the store itself now
|
|
451
|
+
// turns the id a writer actually holds — a member's user id, an uploaded
|
|
452
|
+
// file's id, or the record's own id — into that record at every write door
|
|
453
|
+
// (`custom.relation_kernel_record`), refusing anything else in its own
|
|
454
|
+
// words ("… names someone who is not a member of …"). So an import column
|
|
455
|
+
// of member ids, or an agent handing over the file it just uploaded, is a
|
|
456
|
+
// value and not a refusal; the store, not this mirror, decides whether the
|
|
457
|
+
// id is somebody here.
|
|
433
458
|
case "member":
|
|
459
|
+
if (UUID_TEXT.test(text)) return { value: text.toLowerCase() };
|
|
434
460
|
return {
|
|
435
461
|
refusal: `${label} names a person in this organization, so it is chosen rather than typed. Open it and pick them.`
|
|
436
462
|
};
|
|
437
463
|
case "attachment":
|
|
464
|
+
if (UUID_TEXT.test(text)) return { value: text.toLowerCase() };
|
|
438
465
|
return {
|
|
439
466
|
refusal: `${label} holds a file, which cannot arrive as typed-in text. Open it and attach the file.`
|
|
440
467
|
};
|
|
@@ -539,6 +566,89 @@ function stableFilterKey(filter) {
|
|
|
539
566
|
return `{${parts.join(",")}}`;
|
|
540
567
|
}
|
|
541
568
|
|
|
569
|
+
// src/grid.ts
|
|
570
|
+
function actionRefusals(error) {
|
|
571
|
+
return Array.isArray(error.detail) ? error.detail : [];
|
|
572
|
+
}
|
|
573
|
+
function exampleSpec(useCase) {
|
|
574
|
+
return {
|
|
575
|
+
business: useCase.business.name,
|
|
576
|
+
tables: useCase.tables.map((t) => ({
|
|
577
|
+
token: t.token,
|
|
578
|
+
name: t.name,
|
|
579
|
+
labelSingular: t.labelSingular,
|
|
580
|
+
labelPlural: t.labelPlural,
|
|
581
|
+
type: t.type,
|
|
582
|
+
display: t.display,
|
|
583
|
+
weight: t.weight,
|
|
584
|
+
ordered: t.ordered,
|
|
585
|
+
titleField: t.titleField,
|
|
586
|
+
describes: t.describes,
|
|
587
|
+
fields: t.fields.map((f) => ({
|
|
588
|
+
key: f.key,
|
|
589
|
+
label: f.label,
|
|
590
|
+
parityType: f.parityType,
|
|
591
|
+
multi: f.multi,
|
|
592
|
+
dated: f.dated,
|
|
593
|
+
required: f.required,
|
|
594
|
+
unit: f.unit ?? void 0,
|
|
595
|
+
rules: f.rules,
|
|
596
|
+
choices: f.choices,
|
|
597
|
+
source: f.source,
|
|
598
|
+
computeOn: f.computeOn,
|
|
599
|
+
relationTarget: f.relationTarget,
|
|
600
|
+
relationMax: f.relationMax,
|
|
601
|
+
sensitivity: f.sensitivity,
|
|
602
|
+
contextPolicy: f.contextPolicy
|
|
603
|
+
})),
|
|
604
|
+
rows: t.rows
|
|
605
|
+
}))
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
function exportCellText(value) {
|
|
609
|
+
if (value === null || value === void 0) return "";
|
|
610
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value;
|
|
611
|
+
return JSON.stringify(value);
|
|
612
|
+
}
|
|
613
|
+
async function exportPageXlsx(page, labels = {}, sheetLabel = "Records") {
|
|
614
|
+
const XLSX = await import("xlsx");
|
|
615
|
+
const header = page.columns.map((c) => labels[c] ?? c);
|
|
616
|
+
const body = page.rows.map((row) => page.columns.map((c) => exportCellText(row[c])));
|
|
617
|
+
const workbook = XLSX.utils.book_new();
|
|
618
|
+
const name = sheetLabel.replace(/[\\/?*[\]:]/g, " ").trim().slice(0, 31) || "Records";
|
|
619
|
+
XLSX.utils.book_append_sheet(workbook, XLSX.utils.aoa_to_sheet([header, ...body]), name);
|
|
620
|
+
const withheld = Object.entries(page.withheld ?? {});
|
|
621
|
+
if (withheld.length > 0) {
|
|
622
|
+
XLSX.utils.book_append_sheet(
|
|
623
|
+
workbook,
|
|
624
|
+
XLSX.utils.aoa_to_sheet([
|
|
625
|
+
["Column", "Why it is empty in this export"],
|
|
626
|
+
...withheld.map(([k, v]) => [labels[k] ?? k, typeof v === "string" ? v : JSON.stringify(v)])
|
|
627
|
+
]),
|
|
628
|
+
"Withheld columns"
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
if (page.page?.next !== null && page.page?.next !== void 0) {
|
|
632
|
+
XLSX.utils.book_append_sheet(
|
|
633
|
+
workbook,
|
|
634
|
+
XLSX.utils.aoa_to_sheet([[
|
|
635
|
+
`This file holds the first ${page.page.returned} rows. The table has more; export again from row ${page.page.next + 1}.`
|
|
636
|
+
]]),
|
|
637
|
+
"More rows"
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
return XLSX.write(workbook, { type: "array", bookType: "xlsx", compression: true });
|
|
641
|
+
}
|
|
642
|
+
function recordChangeTrigger(tableId, options = {}) {
|
|
643
|
+
return {
|
|
644
|
+
type: "event",
|
|
645
|
+
entity_type: `custom_record:${tableId}`,
|
|
646
|
+
table_id: tableId,
|
|
647
|
+
...options.actions && options.actions.length > 0 ? { actions: options.actions } : {},
|
|
648
|
+
...options.changedFields && options.changedFields.length > 0 ? { changed_fields: options.changedFields } : {}
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
542
652
|
// src/capture-queue.ts
|
|
543
653
|
var DB_NAME = "matrx-capture";
|
|
544
654
|
var DB_VERSION = 1;
|
|
@@ -919,6 +1029,48 @@ var RULE_NODE_KINDS = [
|
|
|
919
1029
|
{ node: "div", evaluated_by: "W1-RULE" },
|
|
920
1030
|
{ node: "eq", evaluated_by: "W1-RULE" },
|
|
921
1031
|
{ node: "field", evaluated_by: "W1-RULE" },
|
|
1032
|
+
{ node: "fx.abs", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1033
|
+
{ node: "fx.add", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1034
|
+
{ node: "fx.and", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1035
|
+
{ node: "fx.autonumber", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1036
|
+
{ node: "fx.average", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1037
|
+
{ node: "fx.blank", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1038
|
+
{ node: "fx.concatenate", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1039
|
+
{ node: "fx.contains", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1040
|
+
{ node: "fx.created_time", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1041
|
+
{ node: "fx.dateadd", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1042
|
+
{ node: "fx.datediff", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1043
|
+
{ node: "fx.day", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1044
|
+
{ node: "fx.div", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1045
|
+
{ node: "fx.eq", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1046
|
+
{ node: "fx.gt", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1047
|
+
{ node: "fx.gte", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1048
|
+
{ node: "fx.if", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1049
|
+
{ node: "fx.isblank", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1050
|
+
{ node: "fx.left", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1051
|
+
{ node: "fx.len", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1052
|
+
{ node: "fx.lower", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1053
|
+
{ node: "fx.lt", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1054
|
+
{ node: "fx.lte", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1055
|
+
{ node: "fx.max", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1056
|
+
{ node: "fx.min", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1057
|
+
{ node: "fx.mod", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1058
|
+
{ node: "fx.modified_time", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1059
|
+
{ node: "fx.month", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1060
|
+
{ node: "fx.mul", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1061
|
+
{ node: "fx.ne", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1062
|
+
{ node: "fx.neg", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1063
|
+
{ node: "fx.not", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1064
|
+
{ node: "fx.now", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1065
|
+
{ node: "fx.or", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1066
|
+
{ node: "fx.right", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1067
|
+
{ node: "fx.round", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1068
|
+
{ node: "fx.sub", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1069
|
+
{ node: "fx.sum", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1070
|
+
{ node: "fx.today", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1071
|
+
{ node: "fx.trim", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1072
|
+
{ node: "fx.upper", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
1073
|
+
{ node: "fx.year", evaluated_by: "GRID-PRIMITIVES G3 (custom.formula_eval)" },
|
|
922
1074
|
{ node: "gt", evaluated_by: "W1-RULE" },
|
|
923
1075
|
{ node: "gte", evaluated_by: "W1-RULE" },
|
|
924
1076
|
{ node: "length", evaluated_by: "W1-RULE" },
|
|
@@ -950,6 +1102,8 @@ var KERNEL_TABLES = [
|
|
|
950
1102
|
];
|
|
951
1103
|
var STORE_DOORS = [
|
|
952
1104
|
{ name: "absence_reasons", args: "", returns: "text[]", security: "invoker" },
|
|
1105
|
+
{ name: "action_declare", args: "p_organization_id uuid, p_table_id uuid, p_actions jsonb", returns: "jsonb", security: "definer" },
|
|
1106
|
+
{ name: "action_run", args: "p_organization_id uuid, p_action_id uuid, p_record_ids uuid[]", returns: "jsonb", security: "definer" },
|
|
953
1107
|
{ name: "actor_vocabulary", args: "", returns: "text[]", security: "invoker" },
|
|
954
1108
|
{ name: "actor_word", args: "p_declared text", returns: "text", security: "invoker" },
|
|
955
1109
|
{ name: "addressed_cap", args: "p_user_id uuid, p_type text, p_id uuid, p_organization_id uuid DEFAULT NULL::uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "permission_level", security: "definer" },
|
|
@@ -1001,6 +1155,7 @@ var STORE_DOORS = [
|
|
|
1001
1155
|
{ name: "assert_organization_admin", args: "p_organization_id uuid, p_door text, p_what text", returns: "void", security: "invoker" },
|
|
1002
1156
|
{ name: "assert_organization_wall", args: "p_kind text, p_organization_id uuid, p_row jsonb", returns: "void", security: "invoker" },
|
|
1003
1157
|
{ name: "assert_store_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
|
|
1158
|
+
{ name: "autonumber_backfill", args: "p_organization_id uuid, p_field_id uuid", returns: "jsonb", security: "definer" },
|
|
1004
1159
|
{ name: "booking_cancel", args: "p_booking_ref text, p_origin text DEFAULT NULL::text", returns: "TABLE(booking_ref text, record_id uuid, slot_key text, state text, message text)", security: "definer" },
|
|
1005
1160
|
{ name: "booking_confirm", args: "p_form_id uuid, p_hold_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text", returns: "TABLE(booking_ref text, record_id uuid, submission_id uuid, slot_key text, slot_at timestamp with time zone, state text, message text)", security: "definer" },
|
|
1006
1161
|
{ name: "booking_declare", args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_availability jsonb DEFAULT '{}'::jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text, p_home_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
@@ -1073,6 +1228,8 @@ var STORE_DOORS = [
|
|
|
1073
1228
|
{ 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" },
|
|
1074
1229
|
{ name: "dashboard_window_sql", args: "p_key text, p_window jsonb", returns: "text", security: "invoker" },
|
|
1075
1230
|
{ 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" },
|
|
1231
|
+
{ name: "decoration_colors", args: "", returns: "text[]", security: "invoker" },
|
|
1232
|
+
{ name: "decoration_rule_ops", args: "", returns: "TABLE(op text, takes_value boolean, label text)", security: "invoker" },
|
|
1076
1233
|
{ name: "delete_cascade_closure", args: "p_organization_id uuid, p_record_id uuid", returns: "uuid[]", security: "invoker" },
|
|
1077
1234
|
{ name: "delete_preview", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "definer" },
|
|
1078
1235
|
{ name: "delete_rule", args: "p_organization_id uuid, p_record_id uuid, p_apply boolean DEFAULT true", returns: "jsonb", security: "definer" },
|
|
@@ -1082,6 +1239,7 @@ var STORE_DOORS = [
|
|
|
1082
1239
|
{ name: "derived_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "invoker" },
|
|
1083
1240
|
{ name: "derived_values", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
1084
1241
|
{ name: "derived_values_of", args: "v_rec custom.record", returns: "jsonb", security: "invoker" },
|
|
1242
|
+
{ name: "display_format_ids", args: "", returns: "text[]", security: "invoker" },
|
|
1085
1243
|
{ name: "doc_content_hash", args: "p_body text", returns: "text", security: "invoker" },
|
|
1086
1244
|
{ name: "doc_format_value", args: "p_field_data jsonb, p_value jsonb", returns: "text", security: "invoker" },
|
|
1087
1245
|
{ name: "doc_letterhead", args: "p_organization_id uuid", returns: "jsonb", security: "definer" },
|
|
@@ -1160,8 +1318,13 @@ var STORE_DOORS = [
|
|
|
1160
1318
|
{ name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
|
|
1161
1319
|
{ 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" },
|
|
1162
1320
|
{ 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" },
|
|
1321
|
+
{ name: "formula_eval", args: "p_organization_id uuid, p_expr jsonb, p_values jsonb, p_context jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "invoker" },
|
|
1322
|
+
{ name: "formula_node_kinds", args: "", returns: "TABLE(node text, min_args integer, max_args integer, result text, signature text, says text)", security: "invoker" },
|
|
1323
|
+
{ name: "formula_parse", args: "p_organization_id uuid, p_table_id uuid, p_text text", returns: "jsonb", security: "definer" },
|
|
1163
1324
|
{ name: "formula_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb, p_values jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "invoker" },
|
|
1164
1325
|
{ name: "freshness_verdict", args: "p_written_at timestamp with time zone, p_ceiling_seconds numeric", returns: "jsonb", security: "definer" },
|
|
1326
|
+
{ name: "grid_layout", args: "p_organization_id uuid, p_table_id uuid, p_view_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
1327
|
+
{ name: "grid_layout_check", args: "p_layout jsonb, p_scope text DEFAULT 'view'::text", returns: "jsonb", security: "invoker" },
|
|
1165
1328
|
{ name: "guard_refusals_are_complete", args: "", returns: "TABLE(guard text, said text)", security: "invoker" },
|
|
1166
1329
|
{ name: "has_visibility", args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level", returns: "boolean", security: "definer" },
|
|
1167
1330
|
{ name: "has_visibility_at", args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level, p_organization_id uuid DEFAULT NULL::uuid, p_min_version bigint DEFAULT NULL::bigint", returns: "boolean", security: "definer" },
|
|
@@ -1177,6 +1340,7 @@ var STORE_DOORS = [
|
|
|
1177
1340
|
{ name: "history_retention_set", args: "p_organization_id uuid, p_table_id uuid, p_days integer", returns: "integer", security: "definer" },
|
|
1178
1341
|
{ name: "home_add", args: "p_organization_id uuid, p_table_id uuid, p_home_record_id uuid", returns: "uuid", security: "definer" },
|
|
1179
1342
|
{ name: "home_relations", args: "", returns: "TABLE(table_id uuid, home_record_id uuid, organization_id uuid, relation_id uuid)", security: "invoker" },
|
|
1343
|
+
{ name: "hub_changed_by", args: "p_organization_id uuid, p_kind text, p_ids uuid[]", returns: "TABLE(id uuid, at timestamp with time zone, who text)", security: "definer" },
|
|
1180
1344
|
{ name: "inbound_addresses", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
1181
1345
|
{ name: "inbound_declare", args: "p_organization_id uuid, p_table_id uuid, p_label text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
1182
1346
|
{ name: "inbound_domain", args: "p_organization_id uuid", returns: "text", security: "invoker" },
|
|
@@ -1245,6 +1409,7 @@ var STORE_DOORS = [
|
|
|
1245
1409
|
{ name: "migrate_promote", args: "p_organization_id uuid, p_table_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
1246
1410
|
{ name: "migrate_purge", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_dry_run boolean DEFAULT true", returns: "jsonb", security: "definer" },
|
|
1247
1411
|
{ name: "migrate_purge_hard", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_compliance_reason text DEFAULT NULL::text, p_chunk integer DEFAULT 200, p_dry_run boolean DEFAULT true", returns: "jsonb", security: "definer" },
|
|
1412
|
+
{ name: "migrate_purge_hard_request", args: "p_organization_id uuid, p_table_id uuid, p_compliance_reason text", returns: "void", security: "definer" },
|
|
1248
1413
|
{ name: "migrate_reclass", args: "p_organization_id uuid, p_id uuid, p_to text DEFAULT 'field'::text, p_note text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
1249
1414
|
{ name: "migrate_rename", args: "p_organization_id uuid, p_id uuid, p_to text, p_note text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
1250
1415
|
{ name: "migrate_reparent", args: "p_organization_id uuid, p_id uuid, p_parent_id uuid, p_note text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
@@ -1280,6 +1445,7 @@ var STORE_DOORS = [
|
|
|
1280
1445
|
{ name: "pipeline_pending", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
1281
1446
|
{ name: "pipeline_read", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
1282
1447
|
{ name: "pipeline_transition_refusal", args: "p_organization_id uuid, p_record_id uuid, p_to text", returns: "jsonb", security: "definer" },
|
|
1448
|
+
{ 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" },
|
|
1283
1449
|
{ name: "portal_admits", args: "p_organization_id uuid, p_user_id uuid DEFAULT NULL::uuid", returns: "boolean", security: "definer" },
|
|
1284
1450
|
{ 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" },
|
|
1285
1451
|
{ name: "portal_card", args: "p_organization_id uuid, p_portal_id uuid", returns: "jsonb", security: "definer" },
|
|
@@ -1377,12 +1543,16 @@ var STORE_DOORS = [
|
|
|
1377
1543
|
{ name: "refusals_claiming_a_level_never_asked", args: "", returns: "TABLE(function_name text, identity_args text, why text)", security: "invoker" },
|
|
1378
1544
|
{ name: "relation_carry", args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid", returns: "uuid", security: "definer" },
|
|
1379
1545
|
{ name: "relation_edges_withdraw", args: "p_organization_id uuid, p_field_ids uuid[], p_why text", returns: "integer", security: "definer" },
|
|
1546
|
+
{ name: "relation_halves_disagreements", args: "p_organization_id uuid DEFAULT NULL::uuid, p_record_id uuid DEFAULT NULL::uuid", returns: "TABLE(organization_id uuid, record_id uuid, field_key text, field_id uuid, target_id uuid, direction text, remedy text, why text)", security: "definer" },
|
|
1547
|
+
{ name: "relation_halves_repair", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "definer" },
|
|
1548
|
+
{ name: "relation_kernel_record", args: "p_organization_id uuid, p_kernel_table_id uuid, p_id uuid", returns: "uuid", security: "definer" },
|
|
1380
1549
|
{ name: "relation_own", args: "p_organization_id uuid, p_owner_id uuid, p_target_id uuid", returns: "uuid", security: "definer" },
|
|
1381
1550
|
{ name: "relation_target_card", args: "p_organization_id uuid, p_record_id uuid, p_via_key text DEFAULT NULL::text", returns: "TABLE(target_id uuid, target_organization_id uuid, is_foreign boolean, masked boolean, reader_level permission_level, card jsonb, why text)", security: "definer" },
|
|
1382
1551
|
{ name: "relation_target_external", args: "p_connection_token text, p_external_table text, p_external_key text", returns: "jsonb", security: "definer" },
|
|
1383
1552
|
{ name: "relation_target_ours", args: "p_entity_token text, p_row_id uuid", returns: "jsonb", security: "definer" },
|
|
1384
1553
|
{ name: "relation_targets", args: "p_organization_id uuid, p_record_id uuid, p_via_key text", returns: "SETOF uuid", security: "definer" },
|
|
1385
1554
|
{ name: "relation_uncarry", args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid", returns: "integer", security: "definer" },
|
|
1555
|
+
{ name: "relation_value_target_ok", args: "p_organization_id uuid, p_field_id uuid, p_field_data jsonb, p_target_id uuid", returns: "boolean", security: "invoker" },
|
|
1386
1556
|
{ name: "relation_words", args: "p_organization_id uuid, p_field_id uuid, p_value text", returns: "text", security: "definer" },
|
|
1387
1557
|
{ 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" },
|
|
1388
1558
|
{ name: "reopen_declared_doors", args: "", returns: "TABLE(reopened text)", security: "definer" },
|
|
@@ -1391,6 +1561,7 @@ var STORE_DOORS = [
|
|
|
1391
1561
|
{ name: "resolve_id", args: "p_organization_id uuid, p_id uuid", returns: "uuid", security: "invoker" },
|
|
1392
1562
|
{ name: "retired_actor_words", args: "", returns: "jsonb", security: "invoker" },
|
|
1393
1563
|
{ name: "rollup_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb", returns: "jsonb", security: "invoker" },
|
|
1564
|
+
{ name: "row_actions", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
1394
1565
|
{ name: "rule_applies", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
1395
1566
|
{ name: "rule_context", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
1396
1567
|
{ name: "rule_declare", args: "p_organization_id uuid, p_spec jsonb, p_rule_id uuid DEFAULT NULL::uuid", returns: "uuid", security: "definer" },
|
|
@@ -1416,6 +1587,7 @@ var STORE_DOORS = [
|
|
|
1416
1587
|
{ name: "share_revoke", args: "p_organization_id uuid, p_subject_id uuid, p_principal_kind text, p_principal_id uuid", returns: "jsonb", security: "definer" },
|
|
1417
1588
|
{ name: "share_subject_name", args: "p_organization_id uuid, p_type text, p_id uuid", returns: "text", security: "definer" },
|
|
1418
1589
|
{ name: "shared_only_disagreements", args: "p_pretend text DEFAULT NULL::text", returns: "TABLE(organization_id uuid, organization_name text, member_id uuid, record_id uuid, table_id uuid, ladder boolean, read_door boolean, rls_mirror boolean, why text)", security: "invoker" },
|
|
1590
|
+
{ name: "shares_outside", args: "p_organization_id uuid", returns: "TABLE(invitation_id uuid, table_id uuid, table_name text, email text, level text, level_label text, status text, joined boolean, expired boolean, invited_at timestamp with time zone, expires_at timestamp with time zone, say text)", security: "definer" },
|
|
1419
1591
|
{ name: "sign_request_cancel", args: "p_organization_id uuid, p_request_id uuid, p_reason text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
1420
1592
|
{ name: "sign_request_create", args: "p_organization_id uuid, p_render_id uuid, p_field_key text, p_signer_email text, p_signer_name text, p_expires_in interval DEFAULT '14 days'::interval", returns: "jsonb", security: "definer" },
|
|
1421
1593
|
{ name: "sign_request_decline", args: "p_token text, p_reason text DEFAULT NULL::text, p_ip text DEFAULT NULL::text, p_user_agent text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
@@ -1449,6 +1621,9 @@ var STORE_DOORS = [
|
|
|
1449
1621
|
{ name: "table_column_source", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
1450
1622
|
{ name: "table_contents", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(record_id uuid, kind text, goes_at integer)", security: "invoker" },
|
|
1451
1623
|
{ name: "table_declare", args: "p_organization_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
1624
|
+
{ 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" },
|
|
1625
|
+
{ name: "table_decorations", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
1626
|
+
{ name: "table_from_example", args: "p_organization_id uuid, p_home_id uuid, p_example jsonb", returns: "jsonb", security: "definer" },
|
|
1452
1627
|
{ name: "table_has_a_visible_record", args: "p_user uuid, p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "definer" },
|
|
1453
1628
|
{ name: "table_is_live", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "invoker" },
|
|
1454
1629
|
{ name: "table_is_options_table", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "invoker" },
|
|
@@ -1466,9 +1641,13 @@ var STORE_DOORS = [
|
|
|
1466
1641
|
{ name: "table_storage", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
1467
1642
|
{ name: "table_type_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
1468
1643
|
{ name: "table_unique_rule_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
|
|
1644
|
+
{ name: "table_webhook_archive", args: "p_organization_id uuid, p_webhook_id uuid", returns: "boolean", security: "definer" },
|
|
1645
|
+
{ name: "table_webhook_declare", args: "p_organization_id uuid, p_table_id uuid, p_target_url text, p_events text[] DEFAULT NULL::text[], p_description text DEFAULT NULL::text", returns: "jsonb", security: "definer" },
|
|
1646
|
+
{ name: "table_webhooks", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(webhook_id uuid, target_url text, description text, events text[], is_active boolean, last_attempt_at timestamp with time zone, last_success_at timestamp with time zone, consecutive_failures integer, owner_id uuid, created_at timestamp with time zone)", security: "definer" },
|
|
1469
1647
|
{ name: "table_work_kind", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
1470
1648
|
{ name: "tables_at_home", args: "p_organization_id uuid, p_home_ids uuid[]", returns: "TABLE(table_id uuid, home_record_id uuid, kind text)", security: "definer" },
|
|
1471
1649
|
{ name: "tables_described_without_asking", args: "", returns: "TABLE(function_name text, identity_args text, why text)", security: "invoker" },
|
|
1650
|
+
{ 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" },
|
|
1472
1651
|
{ name: "trg_associations_bump_visibility", args: "", returns: "trigger", security: "definer" },
|
|
1473
1652
|
{ name: "undeclared_keys", args: "p_organization_id uuid, p_table_id uuid, p_data jsonb", returns: "text[]", security: "invoker" },
|
|
1474
1653
|
{ name: "validate_custom_fields", args: "p_token text, p_organization_id uuid, p_values jsonb", returns: "void", security: "invoker" },
|
|
@@ -1530,9 +1709,10 @@ var STORE_DOORS = [
|
|
|
1530
1709
|
];
|
|
1531
1710
|
var STORE_KNOBS = [
|
|
1532
1711
|
{ key: "accessible_entity_ids_guard", value: "true", type: "boolean" },
|
|
1712
|
+
{ key: "action_run_records_max", value: "5000", type: "integer" },
|
|
1533
1713
|
{ key: "agent_schema_changes", value: '"ask"', type: "string" },
|
|
1534
1714
|
{ key: "associations_guard", value: "true", type: "boolean" },
|
|
1535
|
-
{ key: "code_paths_enabled", value: "
|
|
1715
|
+
{ key: "code_paths_enabled", value: "true", type: "boolean" },
|
|
1536
1716
|
{ key: "consumer_chat_seeding_enabled", value: "false", type: "boolean" },
|
|
1537
1717
|
{ key: "consumer_checkout_enabled", value: "false", type: "boolean" },
|
|
1538
1718
|
{ key: "consumer_context_enabled", value: "false", type: "boolean" },
|
|
@@ -1544,6 +1724,8 @@ var STORE_KNOBS = [
|
|
|
1544
1724
|
{ key: "consumer_scopes_enabled", value: "false", type: "boolean" },
|
|
1545
1725
|
{ key: "containment_depth_ceiling", value: "16", type: "integer" },
|
|
1546
1726
|
{ key: "cross_organization_links", value: "false", type: "boolean" },
|
|
1727
|
+
{ key: "decoration_rules_max", value: "50", type: "integer" },
|
|
1728
|
+
{ key: "decorations_max_bytes", value: "262144", type: "integer" },
|
|
1547
1729
|
{ key: "document_letterhead", value: "{}", type: "json" },
|
|
1548
1730
|
{ key: "document_max_bytes", value: "1048576", type: "integer" },
|
|
1549
1731
|
{ key: "emergency_door_guard", value: "false", type: "boolean" },
|
|
@@ -1555,10 +1737,12 @@ var STORE_KNOBS = [
|
|
|
1555
1737
|
{ key: "enrichment_sensitivity_ceiling", value: '"internal"', type: "string" },
|
|
1556
1738
|
{ key: "entity_custom_fields_guard", value: "false", type: "boolean" },
|
|
1557
1739
|
{ key: "entity_types_guard", value: "false", type: "boolean" },
|
|
1740
|
+
{ key: "example_rows_max", value: "500", type: "integer" },
|
|
1558
1741
|
{ key: "export_rows_ceiling", value: "100000", type: "integer" },
|
|
1559
1742
|
{ key: "external_principal_enabled", value: "false", type: "boolean" },
|
|
1560
1743
|
{ key: "field_index_guard", value: "false", type: "boolean" },
|
|
1561
1744
|
{ 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" },
|
|
1745
|
+
{ key: "grid_layout", value: '{"mode": "auto", "wrap": false, "row_height": "normal", "fit_max_columns": 8, "freeze_first_column": false}', type: "json" },
|
|
1562
1746
|
{ key: "inbound_domain", value: '"inbound.matrxserver.com"', type: "string" },
|
|
1563
1747
|
{ key: "member_default_level", value: '"viewer"', type: "enum" },
|
|
1564
1748
|
{ key: "member_default_visibility", value: '"all_records"', type: "enum" },
|
|
@@ -1566,6 +1750,8 @@ var STORE_KNOBS = [
|
|
|
1566
1750
|
{ key: "page_size_ceiling", value: "1000", type: "integer" },
|
|
1567
1751
|
{ key: "provenance_retention_days", value: "30", type: "number" },
|
|
1568
1752
|
{ key: "records_tool_default", value: "true", type: "boolean" },
|
|
1753
|
+
{ key: "row_action_steps_max", value: "60", type: "integer" },
|
|
1754
|
+
{ key: "row_actions_max", value: "24", type: "integer" },
|
|
1569
1755
|
{ key: "row_versions_guard", value: "false", type: "boolean" },
|
|
1570
1756
|
{ key: "sandbox_expanded_frame_height_px", value: "20000", type: "integer" },
|
|
1571
1757
|
{ key: "sandbox_frame_height_px", value: "4000", type: "integer" },
|
|
@@ -1573,27 +1759,30 @@ var STORE_KNOBS = [
|
|
|
1573
1759
|
{ key: "sandbox_org_components", value: "true", type: "boolean" },
|
|
1574
1760
|
{ key: "signup_provisioning_guard", value: "false", type: "boolean" },
|
|
1575
1761
|
{ key: "stage_rule_enforcement", value: '"refuse"', type: "enum" },
|
|
1576
|
-
{ key: "system_enabled", value: "
|
|
1762
|
+
{ key: "system_enabled", value: "true", type: "boolean" },
|
|
1577
1763
|
{ key: "table_record_ceiling", value: "150000", type: "integer" },
|
|
1764
|
+
{ key: "table_webhooks_max", value: "10", type: "integer" },
|
|
1578
1765
|
{ key: "value_max_bytes", value: "100000", type: "integer" },
|
|
1579
1766
|
{ key: "world_publish_enabled", value: "false", type: "boolean" }
|
|
1580
1767
|
];
|
|
1581
1768
|
var STORE_REFUSAL_CODES = [
|
|
1582
|
-
{ 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_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" },
|
|
1769
|
+
{ 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" },
|
|
1583
1770
|
{ 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" },
|
|
1584
1771
|
{ code: "22003", raised_by: "context_resolve" },
|
|
1585
|
-
{ 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_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" },
|
|
1772
|
+
{ 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" },
|
|
1586
1773
|
{ code: "22007", raised_by: "dashboard_window_sql" },
|
|
1587
|
-
{ code: "22012", raised_by: "rule_eval" },
|
|
1588
|
-
{ code: "22023", raised_by: "_booking_availability,_entity_custom_fields_guard,_take_op_id,_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,field_update,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_rules,visibility_as_of,work_approval_request,work_list,work_slot_hold" },
|
|
1589
|
-
{ code: "23503", raised_by: "_booking_availability,_checklist_instantiate,_containment_guard,_display_spec_for,_field_document_for,_field_type_parity_guard,_pipeline_stage_key,_record_rule_uses,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_submit,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_members,rule_run,sign_request_create,subscription_mute,subscription_preview,view_declare,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
1774
|
+
{ code: "22012", raised_by: "formula_eval,rule_eval" },
|
|
1775
|
+
{ 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" },
|
|
1776
|
+
{ 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" },
|
|
1590
1777
|
{ 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" },
|
|
1591
|
-
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_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,_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,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_own,sign_request_create,sign_request_sign,table_declare,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate" },
|
|
1778
|
+
{ 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" },
|
|
1592
1779
|
{ code: "40001", raised_by: "has_visibility_at" },
|
|
1593
|
-
{ 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_reclass,my_levels,organization_clear,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,share_grant,subscription_mute,subscription_preview,table_share_outside_accept,table_share_outside_invite,table_share_outside_resend,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person" },
|
|
1780
|
+
{ 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,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" },
|
|
1594
1781
|
{ code: "42703", raised_by: "entity_table,portal_declare" },
|
|
1595
1782
|
{ code: "53400", raised_by: "anon_rate_take,delete_cascade_closure,enrich_due,enrich_land,promote_field" },
|
|
1783
|
+
{ code: "54000", raised_by: "action_run,hub_changed_by,table_decorate,table_from_example,table_webhook_declare" },
|
|
1596
1784
|
{ code: "54001", raised_by: "record_delete" },
|
|
1785
|
+
{ code: "P0001", raised_by: "action_run" },
|
|
1597
1786
|
{ code: "PT409", raised_by: "record_update" },
|
|
1598
1787
|
{ code: "PT428", raised_by: "_record_rule_uses" }
|
|
1599
1788
|
];
|
|
@@ -1624,6 +1813,7 @@ var ENTITY_TOKENS = [
|
|
|
1624
1813
|
"agent_shortcut",
|
|
1625
1814
|
"agent_surface_binding",
|
|
1626
1815
|
"agent_template",
|
|
1816
|
+
"agent_term_list",
|
|
1627
1817
|
"agent_usage",
|
|
1628
1818
|
"agent_user_kv",
|
|
1629
1819
|
"ai_api",
|