@ai-matrx/records 0.76.19 → 0.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/app-table/index.cjs +84 -2
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +7 -7
- package/dist/app-table/index.d.ts +7 -7
- package/dist/app-table/index.js +84 -2
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-EaE4ta6p.d.cts → client-DZ3UcU4_.d.cts} +53 -5
- package/dist/{client-C8G7zUMQ.d.ts → client-ZIxyAOdh.d.ts} +53 -5
- package/dist/core/index.cjs +97 -8
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +21 -11
- package/dist/core/index.d.ts +21 -11
- package/dist/core/index.js +97 -8
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +85 -3
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +6 -6
- package/dist/data/index.d.ts +6 -6
- package/dist/data/index.js +85 -3
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-aoFu32Ca.d.cts → declareTable-BYZdFrt5.d.cts} +4 -4
- package/dist/{declareTable-3yW8GrJE.d.ts → declareTable-DGSJMqGx.d.ts} +4 -4
- package/dist/{field-DkB6Nods.d.cts → field-BTW7h7Wh.d.cts} +1 -1
- package/dist/{field-cWRPTM3U.d.ts → field-D7I9yck6.d.ts} +1 -1
- package/dist/index.cjs +30 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +30 -8
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +31 -0
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.d.cts +6 -6
- package/dist/memory/index.d.ts +6 -6
- package/dist/memory/index.js +31 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/{ports-C2_pOWrL.d.ts → ports-CaYEF1dG.d.ts} +1 -1
- package/dist/{ports-C83nhjoM.d.cts → ports-PpvsH1cQ.d.cts} +1 -1
- package/dist/react/index.cjs +98 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +324 -15
- package/dist/react/index.d.ts +324 -15
- package/dist/react/index.js +98 -9
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/dist/{record-DVtXK-6L.d.cts → record-B7iwye2k.d.cts} +75 -13
- package/dist/{record-DVtXK-6L.d.ts → record-B7iwye2k.d.ts} +75 -13
- package/dist/{subscription-DxtZgyFR.d.ts → subscription-BWaRPLyo.d.ts} +60 -2
- package/dist/{subscription-vpnl6GxJ.d.cts → subscription-Br30ZwIt.d.cts} +60 -2
- package/dist/{table-kind-BtguhnRV.d.cts → table-kind-Da21ZLdJ.d.ts} +146 -5
- package/dist/{table-kind-DzyRtFNa.d.ts → table-kind-HAQ6WNxZ.d.cts} +146 -5
- package/dist/templates/index.cjs +14 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +9 -9
- package/dist/templates/index.d.ts +9 -9
- package/dist/templates/index.js +14 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-y8GX3-QC.d.ts → types-DWZ5_3by.d.ts} +2 -2
- package/dist/{types-DWoJFBbr.d.cts → types-DYoWzHwJ.d.cts} +2 -2
- package/dist/{types-DqCWKOYh.d.ts → types-DrJLOqVi.d.ts} +2 -2
- package/dist/{types-X9P-cQd0.d.cts → types-LvxsZ6Zv.d.cts} +2 -2
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +5 -5
- package/dist/use-cases/index.d.ts +5 -5
- package/dist/use-cases/index.js.map +1 -1
- package/dist/{validate-CEE0ts9g.d.cts → validate-CRdXE73G.d.cts} +1 -1
- package/dist/{validate-d9QMYjBm.d.ts → validate-j0WQoC3C.d.ts} +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as
|
|
2
|
-
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, D as DashboardSummary,
|
|
3
|
-
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-
|
|
4
|
-
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-
|
|
5
|
-
import { a as RecordsConfig } from './ports-
|
|
1
|
+
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-HAQ6WNxZ.cjs';
|
|
2
|
+
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-Br30ZwIt.cjs';
|
|
3
|
+
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-BTW7h7Wh.cjs';
|
|
4
|
+
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-B7iwye2k.cjs';
|
|
5
|
+
import { a as RecordsConfig } from './ports-PpvsH1cQ.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -1072,6 +1072,21 @@ interface RecordsClient {
|
|
|
1072
1072
|
formLookOptions(args?: {
|
|
1073
1073
|
presentation?: Record<string, unknown> | null;
|
|
1074
1074
|
}): Promise<RecordsResult<FormLookOptions>>;
|
|
1075
|
+
/**
|
|
1076
|
+
* THE ROUTE THROUGH A DRAFT FORM (`custom.form_preview_route`, lane TYPEFORM-DUP): which questions
|
|
1077
|
+
* are asked given the answers so far (showIf AND logic jumps), the ending reached and the score —
|
|
1078
|
+
* the store's walk, the one the stranger's page and `custom.form_submit` read too.
|
|
1079
|
+
*/
|
|
1080
|
+
formPreviewRoute(args: {
|
|
1081
|
+
table_id: Uuid;
|
|
1082
|
+
questions: unknown[];
|
|
1083
|
+
endings?: unknown[] | null;
|
|
1084
|
+
values: Record<string, unknown>;
|
|
1085
|
+
}): Promise<RecordsResult<FormRoute>>;
|
|
1086
|
+
/** A form's results (`custom.form_results`): views, starts, completions, drop-off, answers. */
|
|
1087
|
+
formResults(args: {
|
|
1088
|
+
form_id: Uuid;
|
|
1089
|
+
}): Promise<RecordsResult<FormResults>>;
|
|
1075
1090
|
/**
|
|
1076
1091
|
* What the store makes of a file's columns, before anything is written.
|
|
1077
1092
|
* `columns` is `[{header, samples}]` — the first page of the file is plenty.
|
|
@@ -2374,6 +2389,39 @@ interface RecordsClient {
|
|
|
2374
2389
|
action_id: Uuid;
|
|
2375
2390
|
record_ids: Uuid[];
|
|
2376
2391
|
}): Promise<RecordsResult<ActionRunResult>>;
|
|
2392
|
+
/**
|
|
2393
|
+
* AUTOMATION-DOOR. Declare (or, with `automation_id`, replace) one automation on a Table — editor on the Table.
|
|
2394
|
+
* A spec the store refuses comes back as `data.ok === false` with `_errors`, one sentence per path.
|
|
2395
|
+
*/
|
|
2396
|
+
automationDeclare(args: {
|
|
2397
|
+
table_id: Uuid;
|
|
2398
|
+
spec: AutomationSpec;
|
|
2399
|
+
automation_id?: Uuid | null;
|
|
2400
|
+
}): Promise<RecordsResult<AutomationDeclared>>;
|
|
2401
|
+
/** AUTOMATION-DOOR. A Table's automations with their last run; archived ones only when asked. */
|
|
2402
|
+
automations(args: {
|
|
2403
|
+
table_id: Uuid;
|
|
2404
|
+
include_archived?: boolean;
|
|
2405
|
+
}): Promise<RecordsResult<AutomationList>>;
|
|
2406
|
+
/** AUTOMATION-DOOR. Archive one (it switches off and keeps its history). Editor on the Table. */
|
|
2407
|
+
automationArchive(args: {
|
|
2408
|
+
automation_id: Uuid;
|
|
2409
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2410
|
+
/** AUTOMATION-DOOR. Bring an archived one back (it stays off until `automationSetEnabled`). */
|
|
2411
|
+
automationRestore(args: {
|
|
2412
|
+
automation_id: Uuid;
|
|
2413
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2414
|
+
/** AUTOMATION-DOOR. Switch one on or off. */
|
|
2415
|
+
automationSetEnabled(args: {
|
|
2416
|
+
automation_id: Uuid;
|
|
2417
|
+
enabled: boolean;
|
|
2418
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2419
|
+
/** AUTOMATION-DOOR. Run history, newest first: status, the store's own sentence, every step. */
|
|
2420
|
+
automationRuns(args: {
|
|
2421
|
+
automation_id: Uuid;
|
|
2422
|
+
limit?: number;
|
|
2423
|
+
cursor?: string | null;
|
|
2424
|
+
}): Promise<RecordsResult<AutomationRuns>>;
|
|
2377
2425
|
/** G4. Send every change to this Table's records to an https webhook. Admin. The secret is shown once. */
|
|
2378
2426
|
tableWebhookDeclare(args: {
|
|
2379
2427
|
table_id: Uuid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as
|
|
2
|
-
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, D as DashboardSummary,
|
|
3
|
-
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-
|
|
4
|
-
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-
|
|
5
|
-
import { a as RecordsConfig } from './ports-
|
|
1
|
+
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-Da21ZLdJ.js';
|
|
2
|
+
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-BWaRPLyo.js';
|
|
3
|
+
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-D7I9yck6.js';
|
|
4
|
+
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-B7iwye2k.js';
|
|
5
|
+
import { a as RecordsConfig } from './ports-CaYEF1dG.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -1072,6 +1072,21 @@ interface RecordsClient {
|
|
|
1072
1072
|
formLookOptions(args?: {
|
|
1073
1073
|
presentation?: Record<string, unknown> | null;
|
|
1074
1074
|
}): Promise<RecordsResult<FormLookOptions>>;
|
|
1075
|
+
/**
|
|
1076
|
+
* THE ROUTE THROUGH A DRAFT FORM (`custom.form_preview_route`, lane TYPEFORM-DUP): which questions
|
|
1077
|
+
* are asked given the answers so far (showIf AND logic jumps), the ending reached and the score —
|
|
1078
|
+
* the store's walk, the one the stranger's page and `custom.form_submit` read too.
|
|
1079
|
+
*/
|
|
1080
|
+
formPreviewRoute(args: {
|
|
1081
|
+
table_id: Uuid;
|
|
1082
|
+
questions: unknown[];
|
|
1083
|
+
endings?: unknown[] | null;
|
|
1084
|
+
values: Record<string, unknown>;
|
|
1085
|
+
}): Promise<RecordsResult<FormRoute>>;
|
|
1086
|
+
/** A form's results (`custom.form_results`): views, starts, completions, drop-off, answers. */
|
|
1087
|
+
formResults(args: {
|
|
1088
|
+
form_id: Uuid;
|
|
1089
|
+
}): Promise<RecordsResult<FormResults>>;
|
|
1075
1090
|
/**
|
|
1076
1091
|
* What the store makes of a file's columns, before anything is written.
|
|
1077
1092
|
* `columns` is `[{header, samples}]` — the first page of the file is plenty.
|
|
@@ -2374,6 +2389,39 @@ interface RecordsClient {
|
|
|
2374
2389
|
action_id: Uuid;
|
|
2375
2390
|
record_ids: Uuid[];
|
|
2376
2391
|
}): Promise<RecordsResult<ActionRunResult>>;
|
|
2392
|
+
/**
|
|
2393
|
+
* AUTOMATION-DOOR. Declare (or, with `automation_id`, replace) one automation on a Table — editor on the Table.
|
|
2394
|
+
* A spec the store refuses comes back as `data.ok === false` with `_errors`, one sentence per path.
|
|
2395
|
+
*/
|
|
2396
|
+
automationDeclare(args: {
|
|
2397
|
+
table_id: Uuid;
|
|
2398
|
+
spec: AutomationSpec;
|
|
2399
|
+
automation_id?: Uuid | null;
|
|
2400
|
+
}): Promise<RecordsResult<AutomationDeclared>>;
|
|
2401
|
+
/** AUTOMATION-DOOR. A Table's automations with their last run; archived ones only when asked. */
|
|
2402
|
+
automations(args: {
|
|
2403
|
+
table_id: Uuid;
|
|
2404
|
+
include_archived?: boolean;
|
|
2405
|
+
}): Promise<RecordsResult<AutomationList>>;
|
|
2406
|
+
/** AUTOMATION-DOOR. Archive one (it switches off and keeps its history). Editor on the Table. */
|
|
2407
|
+
automationArchive(args: {
|
|
2408
|
+
automation_id: Uuid;
|
|
2409
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2410
|
+
/** AUTOMATION-DOOR. Bring an archived one back (it stays off until `automationSetEnabled`). */
|
|
2411
|
+
automationRestore(args: {
|
|
2412
|
+
automation_id: Uuid;
|
|
2413
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2414
|
+
/** AUTOMATION-DOOR. Switch one on or off. */
|
|
2415
|
+
automationSetEnabled(args: {
|
|
2416
|
+
automation_id: Uuid;
|
|
2417
|
+
enabled: boolean;
|
|
2418
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2419
|
+
/** AUTOMATION-DOOR. Run history, newest first: status, the store's own sentence, every step. */
|
|
2420
|
+
automationRuns(args: {
|
|
2421
|
+
automation_id: Uuid;
|
|
2422
|
+
limit?: number;
|
|
2423
|
+
cursor?: string | null;
|
|
2424
|
+
}): Promise<RecordsResult<AutomationRuns>>;
|
|
2377
2425
|
/** G4. Send every change to this Table's records to an https webhook. Admin. The secret is shown once. */
|
|
2378
2426
|
tableWebhookDeclare(args: {
|
|
2379
2427
|
table_id: Uuid;
|
package/dist/core/index.cjs
CHANGED
|
@@ -387,14 +387,16 @@ function sameDocument(a, b) {
|
|
|
387
387
|
var PERMISSION_LEVELS = [
|
|
388
388
|
"viewer",
|
|
389
389
|
"commenter",
|
|
390
|
+
"edit_content",
|
|
390
391
|
"editor",
|
|
391
392
|
"admin"
|
|
392
393
|
];
|
|
393
394
|
var ORDINAL = {
|
|
394
395
|
viewer: 1,
|
|
395
396
|
commenter: 2,
|
|
396
|
-
|
|
397
|
-
|
|
397
|
+
edit_content: 3,
|
|
398
|
+
editor: 4,
|
|
399
|
+
admin: 5
|
|
398
400
|
};
|
|
399
401
|
function atLeast(held, needed) {
|
|
400
402
|
if (!held) return false;
|
|
@@ -2664,6 +2666,12 @@ var STORE_DOORS = [
|
|
|
2664
2666
|
{ name: "assert_public_reader_names_a_public_table", args: "p_organization_id uuid, p_table_id uuid, p_door text", returns: "void", security: "definer" },
|
|
2665
2667
|
{ name: "assert_scope_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "definer" },
|
|
2666
2668
|
{ name: "assert_store_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
|
|
2669
|
+
{ name: "automation_archive", args: "p_organization_id uuid, p_automation_id uuid", returns: "jsonb", security: "definer" },
|
|
2670
|
+
{ name: "automation_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb, p_automation_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
2671
|
+
{ name: "automation_restore", args: "p_organization_id uuid, p_automation_id uuid", returns: "jsonb", security: "definer" },
|
|
2672
|
+
{ name: "automation_runs", args: "p_automation_id uuid, p_limit integer DEFAULT 50, p_cursor timestamp with time zone DEFAULT NULL::timestamp with time zone, p_organization_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
2673
|
+
{ name: "automation_set_enabled", args: "p_organization_id uuid, p_automation_id uuid, p_enabled boolean", returns: "jsonb", security: "definer" },
|
|
2674
|
+
{ name: "automations", args: "p_table_id uuid, p_organization_id uuid DEFAULT NULL::uuid, p_include_archived boolean DEFAULT false", returns: "jsonb", security: "definer" },
|
|
2667
2675
|
{ name: "autonumber_backfill", args: "p_organization_id uuid, p_field_id uuid", returns: "jsonb", security: "definer" },
|
|
2668
2676
|
{ name: "barcode_symbologies", args: "", returns: "text[]", security: "invoker" },
|
|
2669
2677
|
{ 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" },
|
|
@@ -2910,13 +2918,18 @@ var STORE_DOORS = [
|
|
|
2910
2918
|
{ name: "form_look_options", args: "p_organization_id uuid, p_presentation jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
|
|
2911
2919
|
{ name: "form_notify", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "uuid", security: "invoker" },
|
|
2912
2920
|
{ 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" },
|
|
2921
|
+
{ name: "form_preview_route", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_endings jsonb, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
2913
2922
|
{ 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" },
|
|
2914
2923
|
{ 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" },
|
|
2924
|
+
{ name: "form_public_route", args: "p_form_id uuid, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
2915
2925
|
{ name: "form_redirect_domains", args: "p_organization_id uuid", returns: "text[]", security: "invoker" },
|
|
2916
2926
|
{ name: "form_redirect_refusal", args: "p_organization_id uuid, p_url text", returns: "text", security: "invoker" },
|
|
2917
2927
|
{ name: "form_restore", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
2928
|
+
{ name: "form_results", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
2918
2929
|
{ name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
|
|
2919
2930
|
{ 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" },
|
|
2931
|
+
{ name: "form_theme_options", args: "", returns: "jsonb", security: "invoker" },
|
|
2932
|
+
{ name: "form_visit", args: "p_form_id uuid, p_visit text, p_event text, p_field text DEFAULT NULL::text", returns: "text", security: "definer" },
|
|
2920
2933
|
{ 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" },
|
|
2921
2934
|
{ name: "forms_archived", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100", returns: "TABLE(form_id uuid, table_id uuid, table_name text, kind text, title text, slug text, archived_at timestamp with time zone, archived_by uuid, table_archived boolean, can_restore boolean)", security: "definer" },
|
|
2922
2935
|
{ name: "formula_compile_sql", args: "p_organization_id uuid, p_expr jsonb, p_values_sql text", returns: "text", security: "invoker" },
|
|
@@ -3247,6 +3260,7 @@ var STORE_DOORS = [
|
|
|
3247
3260
|
{ name: "rollup_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb", returns: "jsonb", security: "invoker" },
|
|
3248
3261
|
{ name: "row_actions", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
3249
3262
|
{ name: "row_sits_in_a_personal_table", args: "p_type text, p_organization_id uuid, p_id uuid", returns: "boolean", security: "invoker" },
|
|
3263
|
+
{ name: "row_template_bodies", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(template_id uuid, body jsonb)", security: "definer" },
|
|
3250
3264
|
{ name: "row_template_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
3251
3265
|
{ name: "row_templates", args: "p_organization_id uuid, p_table_id uuid", returns: 'TABLE(template_id uuid, name text, table_id uuid, "values" jsonb, created_at timestamp with time zone, updated_at timestamp with time zone)', security: "definer" },
|
|
3252
3266
|
{ name: "rule_applies", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -3373,6 +3387,8 @@ var STORE_DOORS = [
|
|
|
3373
3387
|
{ name: "table_stage_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
3374
3388
|
{ name: "table_storage", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
3375
3389
|
{ name: "table_sync", args: "p_organization_id uuid, p_home_id uuid, p_spec jsonb", returns: "jsonb", security: "definer" },
|
|
3390
|
+
{ name: "table_template_declare", args: "p_org_id uuid, p_name text, p_description text, p_fields jsonb", returns: "uuid", security: "invoker" },
|
|
3391
|
+
{ name: "table_templates", args: "p_org_id uuid", returns: "jsonb", security: "definer" },
|
|
3376
3392
|
{ name: "table_transfer_owner", args: "p_table_id uuid, p_to_person uuid, p_reason text", returns: "jsonb", security: "definer" },
|
|
3377
3393
|
{ name: "table_type_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
3378
3394
|
{ name: "table_unique_rule_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -3539,8 +3555,6 @@ var STORE_KNOBS = [
|
|
|
3539
3555
|
{ key: "provenance_retention_days", value: "30", type: "number" },
|
|
3540
3556
|
{ key: "row_action_steps_max", value: "60", type: "integer" },
|
|
3541
3557
|
{ key: "row_actions_max", value: "24", type: "integer" },
|
|
3542
|
-
{ key: "sandbox_expanded_frame_height_px", value: "20000", type: "integer" },
|
|
3543
|
-
{ key: "sandbox_frame_height_px", value: "4000", type: "integer" },
|
|
3544
3558
|
{ key: "sandbox_message_bytes", value: "65536", type: "integer" },
|
|
3545
3559
|
{ key: "sandbox_org_components", value: "true", type: "boolean" },
|
|
3546
3560
|
{ key: "scope_members_admitted", value: "true", type: "boolean" },
|
|
@@ -3563,12 +3577,12 @@ var STORE_REFUSAL_CODES = [
|
|
|
3563
3577
|
{ code: "22004", raised_by: "_entity_change_file,_entity_custom_fields_guard,_io_outbox_claim,_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,assert_scope_door,booking_declare,capture_submit,checklist_declare,context_resolve,context_template_define,context_type_write,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,entity_field_protect_arman_explicitly_approved,entity_row_propose,entity_row_write,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_look_options,form_submit,home_add,inbox_snooze,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_outbox_release_claimed,io_outbox_subscribe,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_aggregate_as_of,record_delete,record_reparent,record_resolve,record_restore,record_update,record_upsert,record_write,record_write_graph,record_write_graph_superseding,record_write_many,relation_carry,relation_halves_repair,relation_own,row_template_declare,rule_declare,set_table_confidential_arman_explicitly_approved,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_archive,table_archive_deliberately,table_declare,table_duplicate,table_move,table_restore,table_share_outside_grant,table_share_outside_invite,template_declare,value_restore,view_declare,view_designate,view_look_read,view_look_set,whole_value_complete,work_approval_decide,work_approval_request,work_template_declare" },
|
|
3564
3578
|
{ code: "22007", raised_by: "_template_date,agg_parse_moment,dashboard_window_sql" },
|
|
3565
3579
|
{ code: "22012", raised_by: "formula_eval,rule_eval,rule_sql_op" },
|
|
3566
|
-
{ code: "22023", raised_by: "_action_check,_booking_availability,
|
|
3567
|
-
{ code: "23503", raised_by: "_action_check,_booking_availability,_checklist_instantiate,_containment_guard,_ctx_store_value,_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,migrate_purge_hard,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,read_records_in_view_order,read_records_page,record_applicability,record_reparent,record_write_graph_superseding,relation_carry,relation_own,resolve_first_match,row_template_declare,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_dimensions_set,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,view_designate,view_look_set,view_record_order_set,whole_value_complete,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
3580
|
+
{ code: "22023", raised_by: "_action_check,_automation_fire,_booking_availability,_ctx_reference_value_holds,_ctx_store_scope,_ctx_table_template_field_holds,_ctx_tree_part,_decorations_check,_entity_change_file,_entity_custom_fields_guard,_form_flow_judge,_form_look_judge,_fx_date,_fx_num,_fx_regex,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_portal_config_judge,_rule_eval_seated,_table_dimensions_check,_take_op_id,_template_bind,_value_envelope,_view_field_key,_view_key_value,_work_shape_guard,_write_via_mark,action_run,actor_word,agent_change_trust,agg_assert_key,agg_calendar,agg_compare_windows,agg_sql,anon_token_issue,booking_declare,containment_parent,context_scope_write,context_scopes,context_template_define,context_type_write,context_values,count_records_archived,dashboard_block_normalize,dashboard_run,dashboard_target_field_assert,dashboard_window_sql,data_home,data_home_changed_by,doc_render_body,doc_render_write,doc_signature_write,drill_resolve,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_back_links,entity_fields_across,entity_read_mask,entity_reference_rows,entity_reference_search,entity_reference_words,entity_row_write,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_access,field_history,field_update,form_declare,form_draft_save,form_visit,formula_eval,formula_parse,grid_layout_check,hub_changed_by,inbound_domain,inbox_snooze,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,list_portals,listed_predicate_sql,member_records_take_over,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pick_list_create,pin_agent_cells,pipeline_move,pipeline_move_many,portal_declare,portal_form_submit,provenance_write,publish_bind,query_by_coordinates,query_rollup,query_rollup_sum,read_records_archived,read_records_in_view_order,read_records_keyset,read_records_page,record_aggregate_as_of,record_change_many,record_filter_sql,record_row_controls_set,record_search_sql,record_update,record_upsert,record_write_graph,record_write_graph_superseding,record_write_many,records_search,relation_carry,relation_names_match,row_template_declare,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_archive_deliberately,table_ensure,table_find,table_from_example,table_move,table_row_defaults_set,table_rules,table_share_outside_grant,table_sync,table_template_declare,table_transfer_owner,table_webhook_declare,template_declare,template_from_tables,template_install_claim,template_install_note,template_upgrade,templates,view_declare,view_keys_check,view_look_set,view_record_order_set,visibility_as_of,where_lists_live,where_tables_live,work_approval_request,work_decide_many,work_inbox,work_list,work_slot_hold" },
|
|
3581
|
+
{ code: "23503", raised_by: "_action_check,_automation_fire,_automation_flip,_booking_availability,_checklist_instantiate,_containment_guard,_ctx_store_value,_decorations_check,_display_spec_for,_field_document_for,_field_type_parity_guard,_form_flow_judge,_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,automation_declare,automation_runs,automations,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_results,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,migrate_purge_hard,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,read_records_in_view_order,read_records_page,record_applicability,record_reparent,record_write_graph_superseding,relation_carry,relation_own,resolve_first_match,row_template_declare,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_dimensions_set,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,view_designate,view_look_set,view_record_order_set,whole_value_complete,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
3568
3582
|
{ code: "23505", raised_by: "_ctx_store_item,_ctx_store_scope,_ctx_store_type,_portal_config_judge,_share_write_person,_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,field_restore,field_update,form_restore,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,relation_restore,sign_request_cancel,sign_request_create,table_share_outside_resend,work_approval_decide,work_slot_hold" },
|
|
3569
|
-
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,
|
|
3583
|
+
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_ctx_scope_parent_holds,_ctx_store_item,_ctx_table_template_field_holds,_ctx_value_fits_its_scope,_dated_values_guard,_derived_fields,_display_format_check,_display_spec_for,_entity_choice_keys,_entity_custom_fields_guard,_field_choices_save,_field_class_guard,_field_default_fitted,_field_document_for,_field_kind_shape_ok,_field_shape_guard,_field_type_parity_guard,_kind_value_ok,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_record_source_key_is_record,_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,dashboard_restore,doc_sign,doc_signature_write,doc_template_restore,doc_template_save,entity_field_protect_arman_explicitly_approved,entity_field_retire,entity_field_update,entity_records_find,entity_table,entity_value_write,field_declare,field_restore,field_retire,field_update,field_update_rehoming_choices,form_restore,home_add,io_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_update_adding_choices,record_upsert,record_write_graph,record_write_graph_superseding,relation_carry,relation_halves_repair,relation_own,relation_restore,rollup_value,row_template_declare,rule_restore,sign_request_create,sign_request_sign,status_groups_keyed,status_groups_of,table_from_example,table_restore,template_upgrade,validate_value_envelope,validate_values,whole_value_complete,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate" },
|
|
3570
3584
|
{ code: "40001", raised_by: "has_visibility_at,table_move,whole_value_complete" },
|
|
3571
|
-
{ code: "42501", raised_by: "_agent_change_gate,_context_copy_fence,_copy_evaluation_note,_copy_evaluation_reimage,_copy_in_progress_guard,_doc_render_immutable,_doc_signature_immutable,_entity_change_file,_entity_custom_fields_guard,_field_definition_write,_field_write_door,_io_outbox_server_only,_not_a_member_refusal,_portal_config_judge,_portal_principal_here,_read_record_with,_rule_definition_write,_share_write_person,_store_door,_table_dimensions_infer,_table_duplicate_step,_table_shape_guard,_template_call,_value_envelope,_workdoors_approval_guard,agent_change_trust,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_may_know_table,assert_organization_admin,assert_scope_door,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_item_archive,context_item_restore,context_item_write,context_resolve,context_scope_archive,context_scope_restore,context_scope_write,context_tags_set,context_type_archive,context_type_restore,context_type_write,conversation_scope_bind,conversation_scope_unbind,count_records_archived,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_row_propose,entity_row_write,entity_value_write,external_write_through,field_restore,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,member_personal_tables,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,protected_matches,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_keyset,read_records_matching,read_records_page,record_delete,record_row_controls,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,reverse_links_many,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_archive_deliberately,table_copies_in_progress,table_duplicate,table_duplicate_continue,table_kind_facts,table_move,table_row_defaults_apply,table_row_defaults_set,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_sync,table_transfer_owner,table_webhook_declare,template_declare,template_install,template_upgrade,templates,view_declare,view_look_set,view_record_order_set,visibility_as_of,where_lists_live,where_tables_live,whole_value_complete,work_approval_decide,work_approval_read,work_approval_request,work_person" },
|
|
3585
|
+
{ code: "42501", raised_by: "_agent_change_gate,_context_copy_fence,_copy_evaluation_note,_copy_evaluation_reimage,_copy_in_progress_guard,_doc_render_immutable,_doc_signature_immutable,_entity_change_file,_entity_custom_fields_guard,_field_definition_write,_field_write_door,_io_outbox_server_only,_not_a_member_refusal,_portal_config_judge,_portal_principal_here,_read_record_with,_rule_definition_write,_share_write_person,_store_door,_table_dimensions_infer,_table_duplicate_step,_table_shape_guard,_template_call,_value_envelope,_workdoors_approval_guard,agent_change_trust,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_may_know_table,assert_organization_admin,assert_scope_door,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_item_archive,context_item_restore,context_item_write,context_resolve,context_scope_archive,context_scope_restore,context_scope_write,context_tags_set,context_type_archive,context_type_restore,context_type_write,conversation_scope_bind,conversation_scope_unbind,count_records_archived,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_row_propose,entity_row_write,entity_value_write,external_write_through,field_restore,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,member_personal_tables,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,protected_matches,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_keyset,read_records_matching,read_records_page,record_delete,record_row_controls,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,reverse_links_many,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_archive_deliberately,table_copies_in_progress,table_duplicate,table_duplicate_continue,table_kind_facts,table_move,table_row_defaults_apply,table_row_defaults_set,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_sync,table_templates,table_transfer_owner,table_webhook_declare,template_declare,template_install,template_upgrade,templates,view_declare,view_look_set,view_record_order_set,visibility_as_of,where_lists_live,where_tables_live,whole_value_complete,work_approval_decide,work_approval_read,work_approval_request,work_person" },
|
|
3572
3586
|
{ code: "42703", raised_by: "entity_table,portal_declare" },
|
|
3573
3587
|
{ code: "42883", raised_by: "_template_call" },
|
|
3574
3588
|
{ code: "42P17", raised_by: "_field_reads_what_it_reads,far_value" },
|
|
@@ -3589,6 +3603,7 @@ var ENTITY_TOKENS = [
|
|
|
3589
3603
|
"access_delta_run",
|
|
3590
3604
|
"access_request",
|
|
3591
3605
|
"account_addon",
|
|
3606
|
+
"account_closure",
|
|
3592
3607
|
"acquisition_block",
|
|
3593
3608
|
"activity",
|
|
3594
3609
|
"admin_audit_log",
|
|
@@ -3628,6 +3643,7 @@ var ENTITY_TOKENS = [
|
|
|
3628
3643
|
"ai_usage_hourly_watermark",
|
|
3629
3644
|
"analysis_result",
|
|
3630
3645
|
"anon_form",
|
|
3646
|
+
"anon_form_visit",
|
|
3631
3647
|
"anon_function_birth_grandfather",
|
|
3632
3648
|
"anon_hit",
|
|
3633
3649
|
"anon_inbound",
|
|
@@ -4230,6 +4246,7 @@ var ENTITY_TOKENS = [
|
|
|
4230
4246
|
"oauth_handoff_claim",
|
|
4231
4247
|
"opinion_clusters",
|
|
4232
4248
|
"opinions",
|
|
4249
|
+
"ops_auth_lock_watchdog_log",
|
|
4233
4250
|
"ops_check_item",
|
|
4234
4251
|
"ops_check_run",
|
|
4235
4252
|
"ops_db_host_sample",
|
|
@@ -4272,6 +4289,7 @@ var ENTITY_TOKENS = [
|
|
|
4272
4289
|
"pdf_redaction_audit",
|
|
4273
4290
|
"pdf_redaction_key_escrow",
|
|
4274
4291
|
"permission_grant",
|
|
4292
|
+
"personal_data_column",
|
|
4275
4293
|
"plan_cms_fill_item",
|
|
4276
4294
|
"plan_cms_fill_job",
|
|
4277
4295
|
"plan_entity",
|
|
@@ -4337,6 +4355,10 @@ var ENTITY_TOKENS = [
|
|
|
4337
4355
|
"provision_spec_grandfather",
|
|
4338
4356
|
"provision_vocabulary",
|
|
4339
4357
|
"provlock_recall_visits_all8u5",
|
|
4358
|
+
"public_compat_wrapper",
|
|
4359
|
+
"public_placement_baseline",
|
|
4360
|
+
"public_placement_domain",
|
|
4361
|
+
"public_restore_permit",
|
|
4340
4362
|
"purpose",
|
|
4341
4363
|
"quiz_session",
|
|
4342
4364
|
"rag_ingest_run",
|
|
@@ -5454,6 +5476,10 @@ var DOORS = {
|
|
|
5454
5476
|
* organization wall and the caller's own rung on the Table — never `rule_eval` from a browser.
|
|
5455
5477
|
*/
|
|
5456
5478
|
formPreviewAsks: "form_preview_asks",
|
|
5479
|
+
/** TYPEFORM-DUP: the owner's preview of the whole route — jumps, ending, score (`custom._form_route`). */
|
|
5480
|
+
formPreviewRoute: "form_preview_route",
|
|
5481
|
+
/** TYPEFORM-DUP: views, starts, completions, drop-off and answers per question. */
|
|
5482
|
+
formResults: "form_results",
|
|
5457
5483
|
formLookOptions: "form_look_options",
|
|
5458
5484
|
// PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
|
|
5459
5485
|
// `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
|
|
@@ -5771,6 +5797,13 @@ var DOORS = {
|
|
|
5771
5797
|
actionDeclare: "action_declare",
|
|
5772
5798
|
rowActions: "row_actions",
|
|
5773
5799
|
actionRun: "action_run",
|
|
5800
|
+
// AUTOMATION-DOOR (2026-10-07) — automations on a table. See ../automation.ts.
|
|
5801
|
+
automationDeclare: "automation_declare",
|
|
5802
|
+
automations: "automations",
|
|
5803
|
+
automationArchive: "automation_archive",
|
|
5804
|
+
automationRestore: "automation_restore",
|
|
5805
|
+
automationSetEnabled: "automation_set_enabled",
|
|
5806
|
+
automationRuns: "automation_runs",
|
|
5774
5807
|
tableWebhookDeclare: "table_webhook_declare",
|
|
5775
5808
|
tableWebhooks: "table_webhooks",
|
|
5776
5809
|
tableWebhookArchive: "table_webhook_archive",
|
|
@@ -7364,6 +7397,20 @@ function createRecordsClient(given) {
|
|
|
7364
7397
|
"formPreviewAsks"
|
|
7365
7398
|
);
|
|
7366
7399
|
},
|
|
7400
|
+
async formPreviewRoute({ table_id, questions, endings, values }) {
|
|
7401
|
+
return callDoor(
|
|
7402
|
+
DOORS.formPreviewRoute,
|
|
7403
|
+
{ p_organization_id: org, p_table_id: table_id, p_questions: questions, p_endings: endings ?? [], p_values: values },
|
|
7404
|
+
"formPreviewRoute"
|
|
7405
|
+
);
|
|
7406
|
+
},
|
|
7407
|
+
async formResults({ form_id }) {
|
|
7408
|
+
return callDoor(
|
|
7409
|
+
DOORS.formResults,
|
|
7410
|
+
{ p_organization_id: org, p_form_id: form_id },
|
|
7411
|
+
"formResults"
|
|
7412
|
+
);
|
|
7413
|
+
},
|
|
7367
7414
|
async formLookOptions(args) {
|
|
7368
7415
|
return callDoor(
|
|
7369
7416
|
DOORS.formLookOptions,
|
|
@@ -9040,6 +9087,48 @@ function createRecordsClient(given) {
|
|
|
9040
9087
|
}
|
|
9041
9088
|
return result;
|
|
9042
9089
|
},
|
|
9090
|
+
async automationDeclare({ table_id, spec, automation_id }) {
|
|
9091
|
+
return callDoor(
|
|
9092
|
+
DOORS.automationDeclare,
|
|
9093
|
+
{ p_organization_id: org, p_table_id: table_id, p_spec: spec, p_automation_id: automation_id ?? null },
|
|
9094
|
+
"automationDeclare"
|
|
9095
|
+
);
|
|
9096
|
+
},
|
|
9097
|
+
async automations({ table_id, include_archived }) {
|
|
9098
|
+
return callDoor(
|
|
9099
|
+
DOORS.automations,
|
|
9100
|
+
{ p_table_id: table_id, p_organization_id: org, p_include_archived: include_archived ?? false },
|
|
9101
|
+
"automations"
|
|
9102
|
+
);
|
|
9103
|
+
},
|
|
9104
|
+
async automationArchive({ automation_id }) {
|
|
9105
|
+
return callDoor(
|
|
9106
|
+
DOORS.automationArchive,
|
|
9107
|
+
{ p_organization_id: org, p_automation_id: automation_id },
|
|
9108
|
+
"automationArchive"
|
|
9109
|
+
);
|
|
9110
|
+
},
|
|
9111
|
+
async automationRestore({ automation_id }) {
|
|
9112
|
+
return callDoor(
|
|
9113
|
+
DOORS.automationRestore,
|
|
9114
|
+
{ p_organization_id: org, p_automation_id: automation_id },
|
|
9115
|
+
"automationRestore"
|
|
9116
|
+
);
|
|
9117
|
+
},
|
|
9118
|
+
async automationSetEnabled({ automation_id, enabled }) {
|
|
9119
|
+
return callDoor(
|
|
9120
|
+
DOORS.automationSetEnabled,
|
|
9121
|
+
{ p_organization_id: org, p_automation_id: automation_id, p_enabled: enabled },
|
|
9122
|
+
"automationSetEnabled"
|
|
9123
|
+
);
|
|
9124
|
+
},
|
|
9125
|
+
async automationRuns({ automation_id, limit, cursor }) {
|
|
9126
|
+
return callDoor(
|
|
9127
|
+
DOORS.automationRuns,
|
|
9128
|
+
{ p_automation_id: automation_id, p_limit: limit ?? 50, p_cursor: cursor ?? null, p_organization_id: org },
|
|
9129
|
+
"automationRuns"
|
|
9130
|
+
);
|
|
9131
|
+
},
|
|
9043
9132
|
async tableWebhookDeclare({ table_id, target_url, events, description }) {
|
|
9044
9133
|
return callDoor(
|
|
9045
9134
|
DOORS.tableWebhookDeclare,
|