@ai-matrx/records 0.98.7 → 0.98.9

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{table-kind-CboiMJuE.d.cts → client-9fzhCPD5.d.cts} +2771 -4
  3. package/dist/{table-kind-B4sdlvHf.d.ts → client-DcWZjmg2.d.ts} +2771 -4
  4. package/dist/core/index.cjs +154 -3
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +109 -18
  7. package/dist/core/index.d.ts +109 -18
  8. package/dist/core/index.js +154 -3
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +52 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +11 -12
  13. package/dist/data/index.d.ts +11 -12
  14. package/dist/data/index.js +52 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-BIuPJ3Vj.d.ts → declareTable-B6ic3leL.d.ts} +3 -4
  17. package/dist/{declareTable-d-HxRmF0.d.cts → declareTable-_GwN-ERY.d.cts} +3 -4
  18. package/dist/{doors-Bx3Shs3z.d.cts → doors-Dm5q9H8Y.d.cts} +1 -1
  19. package/dist/{doors-BTifsjNv.d.ts → doors-t-Oc2l9E.d.ts} +1 -1
  20. package/dist/entity/index.d.cts +7 -7
  21. package/dist/entity/index.d.ts +7 -7
  22. package/dist/{field-CJtssH3q.d.ts → field-BIRNApm1.d.ts} +2 -2
  23. package/dist/{field-DoVl2I9K.d.cts → field-BLy8drjM.d.cts} +2 -2
  24. package/dist/forms/index.d.cts +3 -3
  25. package/dist/forms/index.d.ts +3 -3
  26. package/dist/index.cjs +45 -0
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +30 -13
  29. package/dist/index.d.ts +30 -13
  30. package/dist/index.js +45 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/memory/index.d.cts +7 -7
  33. package/dist/memory/index.d.ts +7 -7
  34. package/dist/{objectOrganization-Crk9gJUM.d.ts → objectOrganization-D5Ytjah7.d.ts} +1 -1
  35. package/dist/{objectOrganization-CUa6jjhV.d.cts → objectOrganization-zgpoUAH1.d.cts} +1 -1
  36. package/dist/{port-CRP5g9l9.d.cts → port-B9glCG2h.d.cts} +3 -3
  37. package/dist/{port-CtnELAJQ.d.ts → port-C-p-_lAu.d.ts} +3 -3
  38. package/dist/{portal-DW5NGBT0.d.ts → portal-B9HCNPTc.d.ts} +2 -2
  39. package/dist/{portal-C4N9ByaY.d.cts → portal-C_LgvDeh.d.cts} +2 -2
  40. package/dist/{ports-WwHHNwge.d.ts → ports-BE_5jz-c.d.ts} +2 -2
  41. package/dist/{ports-YIh9jrCZ.d.cts → ports-BIdYUS-C.d.cts} +2 -2
  42. package/dist/questions/index.d.cts +9 -10
  43. package/dist/questions/index.d.ts +9 -10
  44. package/dist/react/index.cjs +97 -0
  45. package/dist/react/index.cjs.map +1 -1
  46. package/dist/react/index.d.cts +86 -1
  47. package/dist/react/index.d.ts +86 -1
  48. package/dist/react/index.js +97 -0
  49. package/dist/react/index.js.map +1 -1
  50. package/dist/realtime/index.d.cts +3 -3
  51. package/dist/realtime/index.d.ts +3 -3
  52. package/dist/{record-CxGK1OEK.d.cts → record-BrJNCmH1.d.cts} +1 -1
  53. package/dist/{record-CxGK1OEK.d.ts → record-BrJNCmH1.d.ts} +1 -1
  54. package/dist/{relation-Dh-lCkkh.d.ts → relation-BxGXLRaG.d.ts} +3 -3
  55. package/dist/{relation-DSGhM3tO.d.cts → relation-R10qQyQU.d.cts} +3 -3
  56. package/dist/{rule-DQpC7WqT.d.cts → rule-BGtYd6Pf.d.cts} +2 -2
  57. package/dist/{rule-xNwJF6Qo.d.ts → rule-BtjrE42J.d.ts} +2 -2
  58. package/dist/scopes/index.d.cts +3 -3
  59. package/dist/scopes/index.d.ts +3 -3
  60. package/dist/search/index.d.cts +1 -1
  61. package/dist/search/index.d.ts +1 -1
  62. package/dist/setup/index.cjs +52 -0
  63. package/dist/setup/index.cjs.map +1 -1
  64. package/dist/setup/index.d.cts +12 -13
  65. package/dist/setup/index.d.ts +12 -13
  66. package/dist/setup/index.js +52 -0
  67. package/dist/setup/index.js.map +1 -1
  68. package/dist/{subscription-BVCn1PVe.d.cts → subscription-BEM4B4dR.d.cts} +3 -3
  69. package/dist/{subscription-DQzPVKBR.d.ts → subscription-Ca15Z7Gu.d.ts} +3 -3
  70. package/dist/templates/index.d.cts +10 -10
  71. package/dist/templates/index.d.ts +10 -10
  72. package/dist/typed-table/index.cjs +52 -0
  73. package/dist/typed-table/index.cjs.map +1 -1
  74. package/dist/typed-table/index.d.cts +10 -11
  75. package/dist/typed-table/index.d.ts +10 -11
  76. package/dist/typed-table/index.js +52 -0
  77. package/dist/typed-table/index.js.map +1 -1
  78. package/dist/{types-3lM5f6b0.d.cts → types-5ql9_q-o.d.cts} +2 -2
  79. package/dist/{types-04kFNi3-.d.ts → types-BALEbMc8.d.ts} +2 -2
  80. package/dist/{types-DKJO83lQ.d.cts → types-BhnjvJ8U.d.cts} +2 -2
  81. package/dist/{types-SUAmeBId.d.ts → types-CURw95qc.d.ts} +2 -2
  82. package/dist/{types-DKeGkHpE.d.cts → types-DRMeL0uW.d.cts} +2 -2
  83. package/dist/{types-DJVccwh0.d.ts → types-_odOqLOe.d.ts} +2 -2
  84. package/dist/use-cases/index.d.cts +5 -5
  85. package/dist/use-cases/index.d.ts +5 -5
  86. package/dist/{validate-BIJtP2KB.d.cts → validate-Cdtk0y18.d.cts} +1 -1
  87. package/dist/{validate--y-pPc-c.d.ts → validate-ChibJPPI.d.ts} +1 -1
  88. package/dist/views/index.d.cts +9 -10
  89. package/dist/views/index.d.ts +9 -10
  90. package/package.json +2 -2
  91. package/dist/client-C1B-MNzb.d.ts +0 -2704
  92. package/dist/client-D2jAgJNn.d.cts +0 -2704
@@ -1,20 +1,19 @@
1
- import { a as RecordsError, R as RecordsResult, P as PgError, z as StaleWriteDetail, l as RecordDocument, B as PredictedRefusal, w as ReadValue, U as Uuid } from '../record-CxGK1OEK.cjs';
2
- export { E as ABSENCE_REASONS, G as ACTOR_VOCABULARY, I as AbsenceReason, A as Actor, J as COMPUTE_ON, K as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, L as DECLARABLE_FIELD_KINDS, M as DELIVERIES, D as DeclarableFieldKind, N as Delivery, Q as ENTITY_TOKENS, V as EntityToken, X as FIELD_SENSITIVITIES, Y as FIELD_SOURCES, Z as FRESHNESS, x as FieldBehavior, c as FieldSensitivity, F as FieldSource, _ as ForbiddenEnvelopeWord, $ as Freshness, H as HiddenFieldNotice, a0 as KERNEL_TABLES, a1 as KernelTableName, a2 as KeysetRow, a3 as MERGE_FIELD_MODIFIERS, a4 as MERGE_FIELD_SEMANTIC_TYPES, a5 as MERGE_FIELD_SOURCES, a6 as MergeFieldModifier, a7 as MergeFieldSemanticType, a8 as MergeFieldSource, a9 as ON_DELETE, aa as OVERRIDE_POLICIES, O as OnDelete, ab as OverridePolicy, ac as PARITY_FIELD_TYPES, ad as PER_VALUE_ACCESS_WORDS, y as ParityFieldType, ae as PerValueAccessWord, af as ProvenancePointer, ag as RELATION_BINDINGS, ah as RELATION_CARDINALITIES, ai as RELATION_FLAVORS, aj as RETIRED_ACTOR_WORDS, ak as RULE_NODE_KINDS, al as RULE_USES, q as ReadRow, m as RecordChange, n as RecordChangeResult, o as RecordGraphWritten, t as RecordKeysetPage, s as RecordPage, r as RecordPageSort, p as RecordRead, v as RecordRevision, k as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, am as RetiredActorWord, i as RuleNodeKind, j as RuleUse, an as STORAGE_MODES, ao as STORE_DOORS, ap as STORE_KNOBS, aq as STORE_REFUSAL_CODES, S as StorageMode, ar as StoreDoorName, as as StoreRefusalCode, u as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, h as Timestamp, ax as VALUE_ALTERNATE_KEYS, ay as VALUE_ENVELOPE_KEYS, az as ValueAlternate, aA as ValueAlternateKey, aB as ValueEnvelope, aC as ValueEnvelopeKey, aD as ValueSource, W as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from '../record-CxGK1OEK.cjs';
3
- import { o as TableKindFacts } from '../table-kind-CboiMJuE.cjs';
4
- export { bv as ARCHIVE_LANES, bw as ARCHIVE_LANE_LABEL, bx as ARCHIVE_LANE_MEANS, by as ActionRefusal, bc as ActionRunResult, bo as AdminTable, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, bz as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bA as AutomationAction, be as AutomationDeclared, bB as AutomationFilter, bg as AutomationFlipped, bC as AutomationItem, bD as AutomationLastRun, bf as AutomationList, bE as AutomationRun, bF as AutomationRunStatus, bh as AutomationRuns, bd as AutomationSpec, bG as AutomationStep, bH as AutomationTrigger, bI as AutomationValue, bJ as AutomationValues, bK as AutomationWeekday, bL as BUILT_KIND_WORD, bM as CHOICE_NUDGES, bN as CaptureField, ab as CaptureFileRef, ac as CaptureOutcome, bO as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bP as ChecklistRequirement, bQ as ChecklistRequirementKind, bR as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bS as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bT as ChecklistTrigger, bU as ChecklistTriggerKind, k as ChoiceCellBack, bV as ChoiceLike, C as ChoiceNudge, bW as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bX as CustomFieldTableType, bY as DEFAULT_ARCHIVE_LANE, bZ as DRILL_CHART_TOKENS, b_ as DRILL_DESCRIPTION_MAX, b$ as DRILL_DOORS, c0 as DRILL_SCHEMA, bn as DataHomeTable, c1 as DecorationColor, b6 as DecorationPath, c2 as DecorationRule, c3 as DecorationRuleOp, c4 as DecorationTarget, aq as DocRenderRow, c5 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c6 as DrillAdHocOp, al as DrillAnswer, c7 as DrillAnswerRow, c8 as DrillChartToken, c9 as DrillDeclaration, aj as DrillDefinition, ca as DrillDimension, cb as DrillFinding, cc as DrillGrain, cd as DrillHaving, ce as DrillLane, cf as DrillLevel, cg as DrillMeasure, ch as DrillMeasureOp, ci as DrillMeasureWhereValue, cj as DrillPath, ak as DrillQuestion, ck as DrillRecords, am as DrillRowsPage, ai as DrillSource, cl as DrillView, cm as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cn as EnrichSource, co as Enrichment, ad as EnrichmentSummary, cp as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, cq as EntityFieldValue, s as EntityFieldsAcross, cr as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cs as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, b9 as FormulaParse, ba as FormulaPreview, b8 as GridLayout, ct as GridLayoutMode, cu as GridRowHeight, cv as HistoryActor, cw as HistoryActorKind, cx as HistoryChange, cy as Home, Y as ImportBatchResult, cz as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cA as ImportOutcome, U as ImportPlan, V as ImportPolicy, cB as ImportProposal, _ as ImportReport, $ as ImportRun, a1 as InboundAddress, a0 as InboundDeclared, aT as InboxCounts, aS as InboxStateChange, bl as IoExportPage, M as MigrationUndone, N as NewEntityFieldDeclaration, bt as OutsideShareAnswer, cC as PIPELINE_RULE_KINDS, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cD as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cE as PipelineMoveManyResult, B as PipelineMoveResult, cF as PipelineMoveVerdict, cG as PipelineRule, cH as PipelineRuleKind, H as PipelineSpec, cI as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cJ as PublishBindingKind, cK as ROW_WEB_NOT_READY, cL as RecordChangeAction, cM as RecordComment, bi as RecordEvent, bs as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cN as RecordScopeComment, at as RecordScopeContext, cO as RecordScopeField, cP as RecordScopeHistoryEntry, cQ as RecordScopeRelation, cR as RecordScopeWithheld, R as RecordsMerged, cS as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cT as RetypeBehaviour, cU as RetypePreview, bb as RowAction, cV as RowActionStep, a7 as RowDefaultsApplied, cW as SHOWN_TO_LABEL, cX as SHOWN_TO_VALUES, cY as SHOWN_TO_WHO_MAY_CHANGE, cZ as STAGE_RULE_ENFORCEMENT, c_ as STAGE_RULE_ON_FAIL, c$ as ShownTo, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, d0 as StageRuleWarning, d1 as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, b7 as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, d2 as TableHomeDestination, d3 as TableLevel, d4 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bm as TableListEntry, h as TableMoved, d5 as TablePlacement, d6 as TablePlacementFact, q as TableReaderRule, d7 as TableRenderSchema, a as TableRestoreProgress, br as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d8 as TableSchemaMode, bq as TableSyncResult, d9 as TableSyncSource, bp as TableSyncSpec, bk as TableWebhook, bj as TableWebhookDeclared, da as TypedChoiceDecision, db as ViewLayout, bu as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, dc as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, dd as WorkDecideManyResult, de as WorkDecideVerdict, df as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, dg as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, dh as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, di as WorkTemplateNode, dj as WorkTemplateRelation, aN as WorkTurn, dk as actionRefusals, dl as archivedByLine, dm as archivedWhen, dn as asChoiceNudge, dp as choiceSlug, dq as choiceValuesOf, dr as choicesOf, ds as decideTypedChoice, dt as declareDrillDefinition, du as drillAnswerOf, dv as drillFindingKnob, dw as emptyArchiveLine, dx as exportPageXlsx, dy as fieldKindOf, dz as holdsARetiredChoice, dA as isArchiveLane, dB as isFoundation, dC as isShownTo, dD as isTableKind, dE as isTheChosen, dF as keptGroups, dG as keptOutOfSight, dH as keptTableHref, dI as levelHasShownTo, dJ as looksLikeAnId, dK as mayDrag, dL as moveConsequence, dM as moveInOrder, dN as offeredAsContext, dO as optionKey, dP as optionLabel, dQ as parseFieldDrift, dR as parseTableCopiesInProgress, dS as parseTableDuplicateProgress, dT as parseTableDuplicated, dU as parseTableHome, dV as parseTableMoved, dW as previewRetype, dX as previewRuleChange, dY as recordChangeTrigger, dZ as recordSourceKey, d_ as recordSourceTable, d$ as recordsUseSentence, e0 as rehomeSentence, e1 as removedChoicesInUse, e2 as ruleThatRefuses, e3 as rulesWithTopStar, e4 as sameDocument, e5 as scopeChip, e6 as sheetSyncSpec, e7 as tableIdOf, e8 as tableJsonSchema, e9 as tableKindMapping, ea as tableKindSlug, eb as tableRenderSchema, ec as valueConverts, ed as withRowCounts, ee as withTablePlacement } from '../table-kind-CboiMJuE.cjs';
5
- import { d as RecordsDataSource } from '../ports-YIh9jrCZ.cjs';
6
- export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from '../ports-YIh9jrCZ.cjs';
7
- import { F as Field } from '../field-DoVl2I9K.cjs';
8
- export { A as ADDRESS_PARTS, f as AGENT_WRITER_WORDS, g as AddressPart, h as AddressValue, i as BARCODE_SYMBOLOGIES, j as BUTTON_DOES, k as ButtonDoes, B as ButtonPressed, l as ButtonSettings, C as ChoiceOptions, m as CoerceOptions, n as Coerced, o as CoercedAnswers, p as CoercibleField, q as FIELD_KINDS, d as FieldDuplicated, r as FieldKind, s as FieldOptionEdit, c as FieldPatch, e as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, x as RelationDisplay, y as RelationNameIndex, z as RelationNameMatch, R as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from '../field-DoVl2I9K.cjs';
9
- export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
10
- export { a as BookingAvailability, b as BookingDeclared, B as BookingSummary, e as BookingWindow, d as FormResults, c as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from '../rule-DQpC7WqT.cjs';
11
- export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, l as PORTAL_ACCENTS, m as PORTAL_ARCHIVE_FILTERS, k as PortalAccent, b as PortalArchiveAnswer, a as PortalArchiveFilter, d as PortalCard, n as PortalConfig, e as PortalConfigInput, o as PortalFooterLink, g as PortalFormAnswer, p as PortalFormInput, q as PortalFormRef, f as PortalFormSpec, h as PortalInvitation, j as PortalPreviewRow, r as PortalPrincipal, i as PortalRevocation, s as PortalStage, t as PortalStyle, u as PortalStyleInput, P as PortalSummary, v as PortalTableExposure, c as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from '../portal-C4N9ByaY.cjs';
12
- export { A as AggregateBucket, g as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, b as AggregateFilter, t as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, u as AggregateWindow, f as DashboardBlock, D as DashboardBlockKind, v as DashboardBlockResult, h as DashboardRunResult, e as DashboardSummary, w as DashboardTarget, x as DashboardTargetBase, y as DashboardTargetOp, z as DashboardTargetResult, B as DashboardTotals, m as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, C as SavedViewColorBy, E as SavedViewDefinition, F as SavedViewLayout, n as SavedViewRow, o as SavedViewSpecIn, d as StoreFilter, i as StuckRow, k as Subscription, G as SubscriptionBlock, S as SubscriptionCadence, l as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from '../subscription-BVCn1PVe.cjs';
13
- export { g as EntityRef, E as EntityRefWithWords, h as EntityReferenceKind, i as REVERSE_LINKS_PAGE_MAX, j as REVERSE_LINKS_RECORDS_PER_CALL, k as Relation, l as RelationCarries, R as RelationCoordinate, b as RelationIcons, m as RelationProperties, n as RelationTarget, a as RelationWordsManyArgs, c as ReverseColumn, o as ReverseLink, e as ReverseLinks, f as ReverseLinksFieldsArgs, d as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from '../relation-DSGhM3tO.cjs';
14
- export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-CUa6jjhV.cjs';
15
- export { A as A_PERSONS_REFUSAL, a as AsOf, D as DEFAULT_PAGE_SIZE, P as PromotedPredicate, Q as QueryPlan, b as RecordQuery, R as RecordsClient, T as TableFact, c as TableLiveLocation, d as asWriteConflict, e as createRecordsClient, i as intersectIds, f as isAPersonsRefusal, p as planQuery, w as withTableFacts } from '../client-D2jAgJNn.cjs';
16
- export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-d-HxRmF0.cjs';
17
- import '../doors-Bx3Shs3z.cjs';
1
+ import { a as RecordsError, R as RecordsResult, P as PgError, q as StaleWriteDetail, n as RecordDocument, r as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-BrJNCmH1.cjs';
2
+ export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, M as Freshness, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, Z as MergeFieldModifier, _ as MergeFieldSemanticType, $ as MergeFieldSource, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a2 as OverridePolicy, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, h as Timestamp, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from '../record-BrJNCmH1.cjs';
3
+ import { a as TableKindFacts } from '../client-9fzhCPD5.cjs';
4
+ export { A as ARCHIVE_LANES, b as ARCHIVE_LANE_LABEL, c as ARCHIVE_LANE_MEANS, d as A_PERSONS_REFUSAL, e as ActionRefusal, f as ActionRunResult, g as AdminTable, h as AnonTokenBinding, i as ArchiveLane, j as ArchivedChecklistTemplate, k as ArchivedDoorRow, l as ArchivedForm, m as ArchivedRow, n as AsOf, o as AutomationAction, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRun, w as AutomationRunStatus, x as AutomationRuns, y as AutomationSpec, z as AutomationStep, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, J as CaptureFileRef, K as CaptureOutcome, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, af as DEFAULT_PAGE_SIZE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as Pipeline, bI as PipelineColumn, bJ as PipelineDeclared, bK as PipelineGate, bL as PipelineGatePreview, bM as PipelineMissingField, bN as PipelineMoveMany, bO as PipelineMoveManyItem, bP as PipelineMoveManyResult, bQ as PipelineMoveResult, bR as PipelineMoveVerdict, bS as PipelineRule, bT as PipelineRuleKind, bU as PipelineSpec, bV as PipelineStage, bW as PipelineVerdict, bX as PromotedPredicate, bY as PublishBinding, bZ as PublishBindingKind, b_ as QueryPlan, b$ as ROW_WEB_NOT_READY, c0 as RecordChangeAction, c1 as RecordComment, c2 as RecordEvent, c3 as RecordHeader, c4 as RecordHistoryEntry, c5 as RecordQuery, c6 as RecordRowControls, c7 as RecordScopeComment, c8 as RecordScopeContext, c9 as RecordScopeField, ca as RecordScopeHistoryEntry, cb as RecordScopeRelation, cc as RecordScopeWithheld, cd as RecordSplit, R as RecordsClient, ce as RecordsMerged, cf as RegisteredTable, cg as ResolvedPublishBinding, ch as ResolvedPublishBindingKind, ci as RestorePreview, cj as RestoreResult, ck as RetypeBehaviour, cl as RetypePreview, cm as RowAction, cn as RowActionStep, co as RowDefaultsApplied, cp as SHOWN_TO_LABEL, cq as SHOWN_TO_VALUES, cr as SHOWN_TO_WHO_MAY_CHANGE, cs as STAGE_RULE_ENFORCEMENT, ct as STAGE_RULE_ON_FAIL, cu as ShownTo, cv as StagePending, cw as StagePendingOnBoard, cx as StageRuleEnforcement, cy as StageRuleOnFail, cz as StageRuleWarning, cA as TABLE_KIND_PREFIX, cB as Table, T as TableArchiveProgress, cC as TableCapacity, cD as TableCopyInProgress, cE as TableDecorations, cF as TableDuplicateProgress, cG as TableDuplicated, cH as TableFact, cI as TableHome, cJ as TableHomeDestination, cK as TableLevel, cL as TableLevelApproval, cM as TableLevelFacts, cN as TableLevelSet, cO as TableListEntry, cP as TableLiveLocation, cQ as TableMoved, cR as TablePlacement, cS as TablePlacementFact, cT as TableReaderRule, cU as TableRenderSchema, cV as TableRestoreProgress, cW as TableRowCount, cX as TableRowDefaults, cY as TableRowDefaultsPatch, cZ as TableSchemaMode, c_ as TableSyncResult, c$ as TableSyncSource, d0 as TableSyncSpec, d1 as TableWebhook, d2 as TableWebhookDeclared, d3 as TypedChoiceDecision, d4 as ViewLayout, d5 as ViewOrderSet, d6 as WorkApprovalDecision, d7 as WorkApprovalFiled, d8 as WorkApprovalState, d9 as WorkApprover, da as WorkAssignment, db as WorkAssignmentField, dc as WorkChange, dd as WorkDecideMany, de as WorkDecideManyItem, df as WorkDecideManyResult, dg as WorkDecideVerdict, dh as WorkDueState, di as WorkGraph, dj as WorkInboxItem, dk as WorkInboxKind, dl as WorkInboxView, dm as WorkInstantiation, dn as WorkListFlavour, dp as WorkListItem, dq as WorkOrigin, dr as WorkRecordState, ds as WorkSlotHold, dt as WorkState, du as WorkTemplateNode, dv as WorkTemplateRelation, dw as WorkTurn, dx as actionRefusals, dy as archivedByLine, dz as archivedWhen, dA as asChoiceNudge, dB as asWriteConflict, dC as choiceSlug, dD as choiceValuesOf, dE as choicesOf, dF as createRecordsClient, dG as decideTypedChoice, dH as declareDrillDefinition, dI as drillAnswerOf, dJ as drillFindingKnob, dK as emptyArchiveLine, dL as exportPageXlsx, dM as fieldKindOf, dN as holdsARetiredChoice, dO as intersectIds, dP as isAPersonsRefusal, dQ as isArchiveLane, dR as isFoundation, dS as isShownTo, dT as isTableKind, dU as isTheChosen, dV as keptGroups, dW as keptOutOfSight, dX as keptTableHref, dY as levelHasShownTo, dZ as looksLikeAnId, d_ as mayDrag, d$ as moveConsequence, e0 as moveInOrder, e1 as offeredAsContext, e2 as optionKey, e3 as optionLabel, e4 as parseFieldDrift, e5 as parseTableCopiesInProgress, e6 as parseTableDuplicateProgress, e7 as parseTableDuplicated, e8 as parseTableHome, e9 as parseTableMoved, ea as planQuery, eb as previewRetype, ec as previewRuleChange, ed as recordChangeTrigger, ee as recordSourceKey, ef as recordSourceTable, eg as recordsUseSentence, eh as rehomeSentence, ei as removedChoicesInUse, ej as ruleThatRefuses, ek as rulesWithTopStar, el as sameDocument, em as scopeChip, en as sheetSyncSpec, eo as tableIdOf, ep as tableJsonSchema, eq as tableKindMapping, er as tableKindSlug, es as tableRenderSchema, et as valueConverts, eu as withRowCounts, ev as withTableFacts, ew as withTablePlacement } from '../client-9fzhCPD5.cjs';
5
+ import { d as RecordsDataSource } from '../ports-BIdYUS-C.cjs';
6
+ export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from '../ports-BIdYUS-C.cjs';
7
+ import { F as Field } from '../field-BLy8drjM.cjs';
8
+ export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, m as CoercibleField, n as FIELD_KINDS, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from '../field-BLy8drjM.cjs';
9
+ export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChooseAlternateArgs, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, chooseAlternate, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
10
+ export { B as BookingAvailability, a as BookingDeclared, b as BookingSummary, c as BookingWindow, d as FormResults, e as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from '../rule-BGtYd6Pf.cjs';
11
+ export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_ACCENTS, b as PORTAL_ARCHIVE_FILTERS, P as PortalAccent, c as PortalArchiveAnswer, d as PortalArchiveFilter, e as PortalCard, f as PortalConfig, g as PortalConfigInput, h as PortalFooterLink, i as PortalFormAnswer, j as PortalFormInput, k as PortalFormRef, l as PortalFormSpec, m as PortalInvitation, n as PortalPreviewRow, o as PortalPrincipal, p as PortalRevocation, q as PortalStage, r as PortalStyle, s as PortalStyleInput, t as PortalSummary, u as PortalTableExposure, v as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from '../portal-C_LgvDeh.cjs';
12
+ export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from '../subscription-BEM4B4dR.cjs';
13
+ export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from '../relation-R10qQyQU.cjs';
14
+ export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-zgpoUAH1.cjs';
15
+ export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-_GwN-ERY.cjs';
16
+ import '../doors-Dm5q9H8Y.cjs';
18
17
 
19
18
  declare function doorExists(name: string): boolean;
20
19
  /**
@@ -53,6 +52,9 @@ declare const DOORS: {
53
52
  readonly migrateRetype: "migrate_retype";
54
53
  readonly migrateMerge: "migrate_merge";
55
54
  readonly migrateUndo: "migrate_undo";
55
+ readonly migrateSplit: "migrate_split";
56
+ readonly migrateExtractParent: "migrate_extract_parent";
57
+ readonly migrations: "migrations";
56
58
  readonly recordValues: "record_values";
57
59
  readonly recordValuesVersioned: "record_values_versioned";
58
60
  readonly valueRead: "value_read";
@@ -578,6 +580,95 @@ declare function supabaseDataSource(client: object): RecordsDataSource;
578
580
  */
579
581
  declare function asRecordsDataSource(source: unknown): RecordsDataSource;
580
582
 
583
+ /** The schema every door of the record store lives in. The only place an app-facing string says it. */
584
+ declare const STORE_SCHEMA = "custom";
585
+ /** What a door refused with, as PostgREST gave it. */
586
+ interface StoreDoorError {
587
+ message: string;
588
+ code?: string | null;
589
+ hint?: string | null;
590
+ details?: string | null;
591
+ }
592
+ interface StoreDoorAnswer<T = unknown> {
593
+ data: T | null;
594
+ error: StoreDoorError | null;
595
+ }
596
+ /** The bare caller: the same `rpc(fn, args)` shape the hand-written layers declared. */
597
+ interface StoreCaller {
598
+ rpc(fn: string, args?: Record<string, unknown>): PromiseLike<{
599
+ data: unknown;
600
+ error: StoreDoorError | null;
601
+ }>;
602
+ }
603
+ /** The named doors an app calls most. Every member is a thin call over `rpc`; nothing is added to the answer. */
604
+ interface StoreDoors extends StoreCaller {
605
+ /** `custom.where_id_opens(p_id)` — which organization an object lives in. `data` is null when it is not given to the caller; the error is plain JSON (it streams to a browser as is). */
606
+ whereIdOpens(id: string): PromiseLike<{
607
+ data: unknown;
608
+ error: {
609
+ code: string | null;
610
+ message: string;
611
+ } | null;
612
+ }>;
613
+ /** `custom.table_kernel_id()` — the id of the store's Table kernel (a constant of the store). */
614
+ tableKernelId(): PromiseLike<StoreDoorAnswer<string>>;
615
+ /** `custom.read_records_by_ids` — the records of `ids` the caller may read in `tableId`, in `organizationId`. */
616
+ readRecordsByIds(organizationId: string, tableId: string, ids: readonly string[]): PromiseLike<StoreDoorAnswer>;
617
+ /** `custom.read_records_page` — one page; `args` are the door's own named arguments. */
618
+ readRecordsPage(args: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
619
+ /** `custom.record_table` — the table a record lives in. */
620
+ recordTable(organizationId: string, recordId: string): PromiseLike<StoreDoorAnswer<string>>;
621
+ /** `custom.applicable_fields` — the fields of a table. */
622
+ applicableFields(organizationId: string, tableId: string): PromiseLike<StoreDoorAnswer>;
623
+ /** `custom.field_declare` — declare one field on a table. */
624
+ fieldDeclare(organizationId: string, tableId: string, spec: Record<string, unknown>): PromiseLike<StoreDoorAnswer<string>>;
625
+ /** `custom.record_update` — patch a record's values. */
626
+ recordUpdate(organizationId: string, recordId: string, patch: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
627
+ /** `custom.entity_reference_words` — the labels of `{token,id}` refs, withheld when the caller may not open them. */
628
+ entityReferenceWords(organizationId: string, refs: ReadonlyArray<{
629
+ token: string;
630
+ id: string;
631
+ }>): PromiseLike<StoreDoorAnswer>;
632
+ /** `custom.templates` — the catalogue (one page of cards for `filter`). */
633
+ templates(filter: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
634
+ /** `custom.template_from_tables` — draft a template spec from existing tables. */
635
+ templateFromTables(args: {
636
+ organizationId: string;
637
+ tableIds: readonly string[];
638
+ includeRows: boolean;
639
+ rowsPerTable: number;
640
+ }): PromiseLike<StoreDoorAnswer>;
641
+ /** `custom.template_declare` — declare a template (`scope` is `"org"` for an organization's own). */
642
+ templateDeclare(scope: string, spec: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
643
+ /** `custom.template_keep` — keep a one-off template in the organization's own. */
644
+ templateKeep(templateId: string): PromiseLike<StoreDoorAnswer>;
645
+ /** `custom.template_archive` — archive (or, with `restore`, bring back) an organization's own template. */
646
+ templateArchive(templateId: string, restore?: boolean): PromiseLike<StoreDoorAnswer>;
647
+ /** `custom.template_install_claim` — the host step's lease on one install step. */
648
+ templateInstallClaim(args: {
649
+ organizationId: string;
650
+ installId: string;
651
+ kind: string;
652
+ label: string;
653
+ sourceId?: string | null;
654
+ leaseSeconds: number;
655
+ }): PromiseLike<StoreDoorAnswer>;
656
+ /** `custom.template_install_note` — record the thing a host step made. */
657
+ templateInstallNote(args: {
658
+ organizationId: string;
659
+ installId: string;
660
+ kind: string;
661
+ id: string;
662
+ label: string;
663
+ }): PromiseLike<StoreDoorAnswer>;
664
+ }
665
+ /**
666
+ * Bind a supabase-js client (browser, server session, anon, or service-role) to the store's
667
+ * doors. A client with no `schema()` is refused by name on every call (`data_source_unbound`), never
668
+ * a thrown `undefined is not a function` in a render.
669
+ */
670
+ declare function storeDoors(client: unknown): StoreDoors;
671
+
581
672
  /** The SQLSTATEs this package claims to understand. Exported for the guard. */
582
673
  declare const MAPPED_SQLSTATES: string[];
583
674
  /** Map a PostgREST/supabase-js failure into the package's refusal shape. */
@@ -763,4 +854,4 @@ declare function seededDataSource(index: Map<string, unknown>): {
763
854
  missed: () => boolean;
764
855
  };
765
856
 
766
- export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, StaleWriteDetail, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, archivedOrganizationId, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportMarkdown, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, mapThrownError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
857
+ export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, STORE_SCHEMA, StaleWriteDetail, type StoreCaller, type StoreDoorAnswer, type StoreDoorError, type StoreDoors, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, archivedOrganizationId, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportMarkdown, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, mapThrownError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, storeDoors, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
@@ -1,20 +1,19 @@
1
- import { a as RecordsError, R as RecordsResult, P as PgError, z as StaleWriteDetail, l as RecordDocument, B as PredictedRefusal, w as ReadValue, U as Uuid } from '../record-CxGK1OEK.js';
2
- export { E as ABSENCE_REASONS, G as ACTOR_VOCABULARY, I as AbsenceReason, A as Actor, J as COMPUTE_ON, K as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, L as DECLARABLE_FIELD_KINDS, M as DELIVERIES, D as DeclarableFieldKind, N as Delivery, Q as ENTITY_TOKENS, V as EntityToken, X as FIELD_SENSITIVITIES, Y as FIELD_SOURCES, Z as FRESHNESS, x as FieldBehavior, c as FieldSensitivity, F as FieldSource, _ as ForbiddenEnvelopeWord, $ as Freshness, H as HiddenFieldNotice, a0 as KERNEL_TABLES, a1 as KernelTableName, a2 as KeysetRow, a3 as MERGE_FIELD_MODIFIERS, a4 as MERGE_FIELD_SEMANTIC_TYPES, a5 as MERGE_FIELD_SOURCES, a6 as MergeFieldModifier, a7 as MergeFieldSemanticType, a8 as MergeFieldSource, a9 as ON_DELETE, aa as OVERRIDE_POLICIES, O as OnDelete, ab as OverridePolicy, ac as PARITY_FIELD_TYPES, ad as PER_VALUE_ACCESS_WORDS, y as ParityFieldType, ae as PerValueAccessWord, af as ProvenancePointer, ag as RELATION_BINDINGS, ah as RELATION_CARDINALITIES, ai as RELATION_FLAVORS, aj as RETIRED_ACTOR_WORDS, ak as RULE_NODE_KINDS, al as RULE_USES, q as ReadRow, m as RecordChange, n as RecordChangeResult, o as RecordGraphWritten, t as RecordKeysetPage, s as RecordPage, r as RecordPageSort, p as RecordRead, v as RecordRevision, k as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, am as RetiredActorWord, i as RuleNodeKind, j as RuleUse, an as STORAGE_MODES, ao as STORE_DOORS, ap as STORE_KNOBS, aq as STORE_REFUSAL_CODES, S as StorageMode, ar as StoreDoorName, as as StoreRefusalCode, u as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, h as Timestamp, ax as VALUE_ALTERNATE_KEYS, ay as VALUE_ENVELOPE_KEYS, az as ValueAlternate, aA as ValueAlternateKey, aB as ValueEnvelope, aC as ValueEnvelopeKey, aD as ValueSource, W as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from '../record-CxGK1OEK.js';
3
- import { o as TableKindFacts } from '../table-kind-B4sdlvHf.js';
4
- export { bv as ARCHIVE_LANES, bw as ARCHIVE_LANE_LABEL, bx as ARCHIVE_LANE_MEANS, by as ActionRefusal, bc as ActionRunResult, bo as AdminTable, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, bz as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bA as AutomationAction, be as AutomationDeclared, bB as AutomationFilter, bg as AutomationFlipped, bC as AutomationItem, bD as AutomationLastRun, bf as AutomationList, bE as AutomationRun, bF as AutomationRunStatus, bh as AutomationRuns, bd as AutomationSpec, bG as AutomationStep, bH as AutomationTrigger, bI as AutomationValue, bJ as AutomationValues, bK as AutomationWeekday, bL as BUILT_KIND_WORD, bM as CHOICE_NUDGES, bN as CaptureField, ab as CaptureFileRef, ac as CaptureOutcome, bO as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bP as ChecklistRequirement, bQ as ChecklistRequirementKind, bR as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bS as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bT as ChecklistTrigger, bU as ChecklistTriggerKind, k as ChoiceCellBack, bV as ChoiceLike, C as ChoiceNudge, bW as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bX as CustomFieldTableType, bY as DEFAULT_ARCHIVE_LANE, bZ as DRILL_CHART_TOKENS, b_ as DRILL_DESCRIPTION_MAX, b$ as DRILL_DOORS, c0 as DRILL_SCHEMA, bn as DataHomeTable, c1 as DecorationColor, b6 as DecorationPath, c2 as DecorationRule, c3 as DecorationRuleOp, c4 as DecorationTarget, aq as DocRenderRow, c5 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c6 as DrillAdHocOp, al as DrillAnswer, c7 as DrillAnswerRow, c8 as DrillChartToken, c9 as DrillDeclaration, aj as DrillDefinition, ca as DrillDimension, cb as DrillFinding, cc as DrillGrain, cd as DrillHaving, ce as DrillLane, cf as DrillLevel, cg as DrillMeasure, ch as DrillMeasureOp, ci as DrillMeasureWhereValue, cj as DrillPath, ak as DrillQuestion, ck as DrillRecords, am as DrillRowsPage, ai as DrillSource, cl as DrillView, cm as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cn as EnrichSource, co as Enrichment, ad as EnrichmentSummary, cp as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, cq as EntityFieldValue, s as EntityFieldsAcross, cr as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cs as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, b9 as FormulaParse, ba as FormulaPreview, b8 as GridLayout, ct as GridLayoutMode, cu as GridRowHeight, cv as HistoryActor, cw as HistoryActorKind, cx as HistoryChange, cy as Home, Y as ImportBatchResult, cz as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cA as ImportOutcome, U as ImportPlan, V as ImportPolicy, cB as ImportProposal, _ as ImportReport, $ as ImportRun, a1 as InboundAddress, a0 as InboundDeclared, aT as InboxCounts, aS as InboxStateChange, bl as IoExportPage, M as MigrationUndone, N as NewEntityFieldDeclaration, bt as OutsideShareAnswer, cC as PIPELINE_RULE_KINDS, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cD as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cE as PipelineMoveManyResult, B as PipelineMoveResult, cF as PipelineMoveVerdict, cG as PipelineRule, cH as PipelineRuleKind, H as PipelineSpec, cI as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cJ as PublishBindingKind, cK as ROW_WEB_NOT_READY, cL as RecordChangeAction, cM as RecordComment, bi as RecordEvent, bs as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cN as RecordScopeComment, at as RecordScopeContext, cO as RecordScopeField, cP as RecordScopeHistoryEntry, cQ as RecordScopeRelation, cR as RecordScopeWithheld, R as RecordsMerged, cS as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cT as RetypeBehaviour, cU as RetypePreview, bb as RowAction, cV as RowActionStep, a7 as RowDefaultsApplied, cW as SHOWN_TO_LABEL, cX as SHOWN_TO_VALUES, cY as SHOWN_TO_WHO_MAY_CHANGE, cZ as STAGE_RULE_ENFORCEMENT, c_ as STAGE_RULE_ON_FAIL, c$ as ShownTo, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, d0 as StageRuleWarning, d1 as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, b7 as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, d2 as TableHomeDestination, d3 as TableLevel, d4 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bm as TableListEntry, h as TableMoved, d5 as TablePlacement, d6 as TablePlacementFact, q as TableReaderRule, d7 as TableRenderSchema, a as TableRestoreProgress, br as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d8 as TableSchemaMode, bq as TableSyncResult, d9 as TableSyncSource, bp as TableSyncSpec, bk as TableWebhook, bj as TableWebhookDeclared, da as TypedChoiceDecision, db as ViewLayout, bu as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, dc as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, dd as WorkDecideManyResult, de as WorkDecideVerdict, df as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, dg as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, dh as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, di as WorkTemplateNode, dj as WorkTemplateRelation, aN as WorkTurn, dk as actionRefusals, dl as archivedByLine, dm as archivedWhen, dn as asChoiceNudge, dp as choiceSlug, dq as choiceValuesOf, dr as choicesOf, ds as decideTypedChoice, dt as declareDrillDefinition, du as drillAnswerOf, dv as drillFindingKnob, dw as emptyArchiveLine, dx as exportPageXlsx, dy as fieldKindOf, dz as holdsARetiredChoice, dA as isArchiveLane, dB as isFoundation, dC as isShownTo, dD as isTableKind, dE as isTheChosen, dF as keptGroups, dG as keptOutOfSight, dH as keptTableHref, dI as levelHasShownTo, dJ as looksLikeAnId, dK as mayDrag, dL as moveConsequence, dM as moveInOrder, dN as offeredAsContext, dO as optionKey, dP as optionLabel, dQ as parseFieldDrift, dR as parseTableCopiesInProgress, dS as parseTableDuplicateProgress, dT as parseTableDuplicated, dU as parseTableHome, dV as parseTableMoved, dW as previewRetype, dX as previewRuleChange, dY as recordChangeTrigger, dZ as recordSourceKey, d_ as recordSourceTable, d$ as recordsUseSentence, e0 as rehomeSentence, e1 as removedChoicesInUse, e2 as ruleThatRefuses, e3 as rulesWithTopStar, e4 as sameDocument, e5 as scopeChip, e6 as sheetSyncSpec, e7 as tableIdOf, e8 as tableJsonSchema, e9 as tableKindMapping, ea as tableKindSlug, eb as tableRenderSchema, ec as valueConverts, ed as withRowCounts, ee as withTablePlacement } from '../table-kind-B4sdlvHf.js';
5
- import { d as RecordsDataSource } from '../ports-WwHHNwge.js';
6
- export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from '../ports-WwHHNwge.js';
7
- import { F as Field } from '../field-CJtssH3q.js';
8
- export { A as ADDRESS_PARTS, f as AGENT_WRITER_WORDS, g as AddressPart, h as AddressValue, i as BARCODE_SYMBOLOGIES, j as BUTTON_DOES, k as ButtonDoes, B as ButtonPressed, l as ButtonSettings, C as ChoiceOptions, m as CoerceOptions, n as Coerced, o as CoercedAnswers, p as CoercibleField, q as FIELD_KINDS, d as FieldDuplicated, r as FieldKind, s as FieldOptionEdit, c as FieldPatch, e as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, x as RelationDisplay, y as RelationNameIndex, z as RelationNameMatch, R as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from '../field-CJtssH3q.js';
9
- export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
10
- export { a as BookingAvailability, b as BookingDeclared, B as BookingSummary, e as BookingWindow, d as FormResults, c as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from '../rule-xNwJF6Qo.js';
11
- export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, l as PORTAL_ACCENTS, m as PORTAL_ARCHIVE_FILTERS, k as PortalAccent, b as PortalArchiveAnswer, a as PortalArchiveFilter, d as PortalCard, n as PortalConfig, e as PortalConfigInput, o as PortalFooterLink, g as PortalFormAnswer, p as PortalFormInput, q as PortalFormRef, f as PortalFormSpec, h as PortalInvitation, j as PortalPreviewRow, r as PortalPrincipal, i as PortalRevocation, s as PortalStage, t as PortalStyle, u as PortalStyleInput, P as PortalSummary, v as PortalTableExposure, c as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from '../portal-DW5NGBT0.js';
12
- export { A as AggregateBucket, g as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, b as AggregateFilter, t as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, u as AggregateWindow, f as DashboardBlock, D as DashboardBlockKind, v as DashboardBlockResult, h as DashboardRunResult, e as DashboardSummary, w as DashboardTarget, x as DashboardTargetBase, y as DashboardTargetOp, z as DashboardTargetResult, B as DashboardTotals, m as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, C as SavedViewColorBy, E as SavedViewDefinition, F as SavedViewLayout, n as SavedViewRow, o as SavedViewSpecIn, d as StoreFilter, i as StuckRow, k as Subscription, G as SubscriptionBlock, S as SubscriptionCadence, l as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from '../subscription-DQzPVKBR.js';
13
- export { g as EntityRef, E as EntityRefWithWords, h as EntityReferenceKind, i as REVERSE_LINKS_PAGE_MAX, j as REVERSE_LINKS_RECORDS_PER_CALL, k as Relation, l as RelationCarries, R as RelationCoordinate, b as RelationIcons, m as RelationProperties, n as RelationTarget, a as RelationWordsManyArgs, c as ReverseColumn, o as ReverseLink, e as ReverseLinks, f as ReverseLinksFieldsArgs, d as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from '../relation-Dh-lCkkh.js';
14
- export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-Crk9gJUM.js';
15
- export { A as A_PERSONS_REFUSAL, a as AsOf, D as DEFAULT_PAGE_SIZE, P as PromotedPredicate, Q as QueryPlan, b as RecordQuery, R as RecordsClient, T as TableFact, c as TableLiveLocation, d as asWriteConflict, e as createRecordsClient, i as intersectIds, f as isAPersonsRefusal, p as planQuery, w as withTableFacts } from '../client-C1B-MNzb.js';
16
- export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-BIuPJ3Vj.js';
17
- import '../doors-BTifsjNv.js';
1
+ import { a as RecordsError, R as RecordsResult, P as PgError, q as StaleWriteDetail, n as RecordDocument, r as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-BrJNCmH1.js';
2
+ export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, M as Freshness, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, Z as MergeFieldModifier, _ as MergeFieldSemanticType, $ as MergeFieldSource, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a2 as OverridePolicy, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, h as Timestamp, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from '../record-BrJNCmH1.js';
3
+ import { a as TableKindFacts } from '../client-DcWZjmg2.js';
4
+ export { A as ARCHIVE_LANES, b as ARCHIVE_LANE_LABEL, c as ARCHIVE_LANE_MEANS, d as A_PERSONS_REFUSAL, e as ActionRefusal, f as ActionRunResult, g as AdminTable, h as AnonTokenBinding, i as ArchiveLane, j as ArchivedChecklistTemplate, k as ArchivedDoorRow, l as ArchivedForm, m as ArchivedRow, n as AsOf, o as AutomationAction, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRun, w as AutomationRunStatus, x as AutomationRuns, y as AutomationSpec, z as AutomationStep, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, J as CaptureFileRef, K as CaptureOutcome, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, af as DEFAULT_PAGE_SIZE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as Pipeline, bI as PipelineColumn, bJ as PipelineDeclared, bK as PipelineGate, bL as PipelineGatePreview, bM as PipelineMissingField, bN as PipelineMoveMany, bO as PipelineMoveManyItem, bP as PipelineMoveManyResult, bQ as PipelineMoveResult, bR as PipelineMoveVerdict, bS as PipelineRule, bT as PipelineRuleKind, bU as PipelineSpec, bV as PipelineStage, bW as PipelineVerdict, bX as PromotedPredicate, bY as PublishBinding, bZ as PublishBindingKind, b_ as QueryPlan, b$ as ROW_WEB_NOT_READY, c0 as RecordChangeAction, c1 as RecordComment, c2 as RecordEvent, c3 as RecordHeader, c4 as RecordHistoryEntry, c5 as RecordQuery, c6 as RecordRowControls, c7 as RecordScopeComment, c8 as RecordScopeContext, c9 as RecordScopeField, ca as RecordScopeHistoryEntry, cb as RecordScopeRelation, cc as RecordScopeWithheld, cd as RecordSplit, R as RecordsClient, ce as RecordsMerged, cf as RegisteredTable, cg as ResolvedPublishBinding, ch as ResolvedPublishBindingKind, ci as RestorePreview, cj as RestoreResult, ck as RetypeBehaviour, cl as RetypePreview, cm as RowAction, cn as RowActionStep, co as RowDefaultsApplied, cp as SHOWN_TO_LABEL, cq as SHOWN_TO_VALUES, cr as SHOWN_TO_WHO_MAY_CHANGE, cs as STAGE_RULE_ENFORCEMENT, ct as STAGE_RULE_ON_FAIL, cu as ShownTo, cv as StagePending, cw as StagePendingOnBoard, cx as StageRuleEnforcement, cy as StageRuleOnFail, cz as StageRuleWarning, cA as TABLE_KIND_PREFIX, cB as Table, T as TableArchiveProgress, cC as TableCapacity, cD as TableCopyInProgress, cE as TableDecorations, cF as TableDuplicateProgress, cG as TableDuplicated, cH as TableFact, cI as TableHome, cJ as TableHomeDestination, cK as TableLevel, cL as TableLevelApproval, cM as TableLevelFacts, cN as TableLevelSet, cO as TableListEntry, cP as TableLiveLocation, cQ as TableMoved, cR as TablePlacement, cS as TablePlacementFact, cT as TableReaderRule, cU as TableRenderSchema, cV as TableRestoreProgress, cW as TableRowCount, cX as TableRowDefaults, cY as TableRowDefaultsPatch, cZ as TableSchemaMode, c_ as TableSyncResult, c$ as TableSyncSource, d0 as TableSyncSpec, d1 as TableWebhook, d2 as TableWebhookDeclared, d3 as TypedChoiceDecision, d4 as ViewLayout, d5 as ViewOrderSet, d6 as WorkApprovalDecision, d7 as WorkApprovalFiled, d8 as WorkApprovalState, d9 as WorkApprover, da as WorkAssignment, db as WorkAssignmentField, dc as WorkChange, dd as WorkDecideMany, de as WorkDecideManyItem, df as WorkDecideManyResult, dg as WorkDecideVerdict, dh as WorkDueState, di as WorkGraph, dj as WorkInboxItem, dk as WorkInboxKind, dl as WorkInboxView, dm as WorkInstantiation, dn as WorkListFlavour, dp as WorkListItem, dq as WorkOrigin, dr as WorkRecordState, ds as WorkSlotHold, dt as WorkState, du as WorkTemplateNode, dv as WorkTemplateRelation, dw as WorkTurn, dx as actionRefusals, dy as archivedByLine, dz as archivedWhen, dA as asChoiceNudge, dB as asWriteConflict, dC as choiceSlug, dD as choiceValuesOf, dE as choicesOf, dF as createRecordsClient, dG as decideTypedChoice, dH as declareDrillDefinition, dI as drillAnswerOf, dJ as drillFindingKnob, dK as emptyArchiveLine, dL as exportPageXlsx, dM as fieldKindOf, dN as holdsARetiredChoice, dO as intersectIds, dP as isAPersonsRefusal, dQ as isArchiveLane, dR as isFoundation, dS as isShownTo, dT as isTableKind, dU as isTheChosen, dV as keptGroups, dW as keptOutOfSight, dX as keptTableHref, dY as levelHasShownTo, dZ as looksLikeAnId, d_ as mayDrag, d$ as moveConsequence, e0 as moveInOrder, e1 as offeredAsContext, e2 as optionKey, e3 as optionLabel, e4 as parseFieldDrift, e5 as parseTableCopiesInProgress, e6 as parseTableDuplicateProgress, e7 as parseTableDuplicated, e8 as parseTableHome, e9 as parseTableMoved, ea as planQuery, eb as previewRetype, ec as previewRuleChange, ed as recordChangeTrigger, ee as recordSourceKey, ef as recordSourceTable, eg as recordsUseSentence, eh as rehomeSentence, ei as removedChoicesInUse, ej as ruleThatRefuses, ek as rulesWithTopStar, el as sameDocument, em as scopeChip, en as sheetSyncSpec, eo as tableIdOf, ep as tableJsonSchema, eq as tableKindMapping, er as tableKindSlug, es as tableRenderSchema, et as valueConverts, eu as withRowCounts, ev as withTableFacts, ew as withTablePlacement } from '../client-DcWZjmg2.js';
5
+ import { d as RecordsDataSource } from '../ports-BE_5jz-c.js';
6
+ export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from '../ports-BE_5jz-c.js';
7
+ import { F as Field } from '../field-BIRNApm1.js';
8
+ export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, m as CoercibleField, n as FIELD_KINDS, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from '../field-BIRNApm1.js';
9
+ export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChooseAlternateArgs, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, chooseAlternate, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
10
+ export { B as BookingAvailability, a as BookingDeclared, b as BookingSummary, c as BookingWindow, d as FormResults, e as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from '../rule-BtjrE42J.js';
11
+ export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_ACCENTS, b as PORTAL_ARCHIVE_FILTERS, P as PortalAccent, c as PortalArchiveAnswer, d as PortalArchiveFilter, e as PortalCard, f as PortalConfig, g as PortalConfigInput, h as PortalFooterLink, i as PortalFormAnswer, j as PortalFormInput, k as PortalFormRef, l as PortalFormSpec, m as PortalInvitation, n as PortalPreviewRow, o as PortalPrincipal, p as PortalRevocation, q as PortalStage, r as PortalStyle, s as PortalStyleInput, t as PortalSummary, u as PortalTableExposure, v as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from '../portal-B9HCNPTc.js';
12
+ export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from '../subscription-Ca15Z7Gu.js';
13
+ export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from '../relation-BxGXLRaG.js';
14
+ export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-D5Ytjah7.js';
15
+ export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-B6ic3leL.js';
16
+ import '../doors-t-Oc2l9E.js';
18
17
 
19
18
  declare function doorExists(name: string): boolean;
20
19
  /**
@@ -53,6 +52,9 @@ declare const DOORS: {
53
52
  readonly migrateRetype: "migrate_retype";
54
53
  readonly migrateMerge: "migrate_merge";
55
54
  readonly migrateUndo: "migrate_undo";
55
+ readonly migrateSplit: "migrate_split";
56
+ readonly migrateExtractParent: "migrate_extract_parent";
57
+ readonly migrations: "migrations";
56
58
  readonly recordValues: "record_values";
57
59
  readonly recordValuesVersioned: "record_values_versioned";
58
60
  readonly valueRead: "value_read";
@@ -578,6 +580,95 @@ declare function supabaseDataSource(client: object): RecordsDataSource;
578
580
  */
579
581
  declare function asRecordsDataSource(source: unknown): RecordsDataSource;
580
582
 
583
+ /** The schema every door of the record store lives in. The only place an app-facing string says it. */
584
+ declare const STORE_SCHEMA = "custom";
585
+ /** What a door refused with, as PostgREST gave it. */
586
+ interface StoreDoorError {
587
+ message: string;
588
+ code?: string | null;
589
+ hint?: string | null;
590
+ details?: string | null;
591
+ }
592
+ interface StoreDoorAnswer<T = unknown> {
593
+ data: T | null;
594
+ error: StoreDoorError | null;
595
+ }
596
+ /** The bare caller: the same `rpc(fn, args)` shape the hand-written layers declared. */
597
+ interface StoreCaller {
598
+ rpc(fn: string, args?: Record<string, unknown>): PromiseLike<{
599
+ data: unknown;
600
+ error: StoreDoorError | null;
601
+ }>;
602
+ }
603
+ /** The named doors an app calls most. Every member is a thin call over `rpc`; nothing is added to the answer. */
604
+ interface StoreDoors extends StoreCaller {
605
+ /** `custom.where_id_opens(p_id)` — which organization an object lives in. `data` is null when it is not given to the caller; the error is plain JSON (it streams to a browser as is). */
606
+ whereIdOpens(id: string): PromiseLike<{
607
+ data: unknown;
608
+ error: {
609
+ code: string | null;
610
+ message: string;
611
+ } | null;
612
+ }>;
613
+ /** `custom.table_kernel_id()` — the id of the store's Table kernel (a constant of the store). */
614
+ tableKernelId(): PromiseLike<StoreDoorAnswer<string>>;
615
+ /** `custom.read_records_by_ids` — the records of `ids` the caller may read in `tableId`, in `organizationId`. */
616
+ readRecordsByIds(organizationId: string, tableId: string, ids: readonly string[]): PromiseLike<StoreDoorAnswer>;
617
+ /** `custom.read_records_page` — one page; `args` are the door's own named arguments. */
618
+ readRecordsPage(args: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
619
+ /** `custom.record_table` — the table a record lives in. */
620
+ recordTable(organizationId: string, recordId: string): PromiseLike<StoreDoorAnswer<string>>;
621
+ /** `custom.applicable_fields` — the fields of a table. */
622
+ applicableFields(organizationId: string, tableId: string): PromiseLike<StoreDoorAnswer>;
623
+ /** `custom.field_declare` — declare one field on a table. */
624
+ fieldDeclare(organizationId: string, tableId: string, spec: Record<string, unknown>): PromiseLike<StoreDoorAnswer<string>>;
625
+ /** `custom.record_update` — patch a record's values. */
626
+ recordUpdate(organizationId: string, recordId: string, patch: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
627
+ /** `custom.entity_reference_words` — the labels of `{token,id}` refs, withheld when the caller may not open them. */
628
+ entityReferenceWords(organizationId: string, refs: ReadonlyArray<{
629
+ token: string;
630
+ id: string;
631
+ }>): PromiseLike<StoreDoorAnswer>;
632
+ /** `custom.templates` — the catalogue (one page of cards for `filter`). */
633
+ templates(filter: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
634
+ /** `custom.template_from_tables` — draft a template spec from existing tables. */
635
+ templateFromTables(args: {
636
+ organizationId: string;
637
+ tableIds: readonly string[];
638
+ includeRows: boolean;
639
+ rowsPerTable: number;
640
+ }): PromiseLike<StoreDoorAnswer>;
641
+ /** `custom.template_declare` — declare a template (`scope` is `"org"` for an organization's own). */
642
+ templateDeclare(scope: string, spec: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
643
+ /** `custom.template_keep` — keep a one-off template in the organization's own. */
644
+ templateKeep(templateId: string): PromiseLike<StoreDoorAnswer>;
645
+ /** `custom.template_archive` — archive (or, with `restore`, bring back) an organization's own template. */
646
+ templateArchive(templateId: string, restore?: boolean): PromiseLike<StoreDoorAnswer>;
647
+ /** `custom.template_install_claim` — the host step's lease on one install step. */
648
+ templateInstallClaim(args: {
649
+ organizationId: string;
650
+ installId: string;
651
+ kind: string;
652
+ label: string;
653
+ sourceId?: string | null;
654
+ leaseSeconds: number;
655
+ }): PromiseLike<StoreDoorAnswer>;
656
+ /** `custom.template_install_note` — record the thing a host step made. */
657
+ templateInstallNote(args: {
658
+ organizationId: string;
659
+ installId: string;
660
+ kind: string;
661
+ id: string;
662
+ label: string;
663
+ }): PromiseLike<StoreDoorAnswer>;
664
+ }
665
+ /**
666
+ * Bind a supabase-js client (browser, server session, anon, or service-role) to the store's
667
+ * doors. A client with no `schema()` is refused by name on every call (`data_source_unbound`), never
668
+ * a thrown `undefined is not a function` in a render.
669
+ */
670
+ declare function storeDoors(client: unknown): StoreDoors;
671
+
581
672
  /** The SQLSTATEs this package claims to understand. Exported for the guard. */
582
673
  declare const MAPPED_SQLSTATES: string[];
583
674
  /** Map a PostgREST/supabase-js failure into the package's refusal shape. */
@@ -763,4 +854,4 @@ declare function seededDataSource(index: Map<string, unknown>): {
763
854
  missed: () => boolean;
764
855
  };
765
856
 
766
- export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, StaleWriteDetail, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, archivedOrganizationId, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportMarkdown, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, mapThrownError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
857
+ export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, STORE_SCHEMA, StaleWriteDetail, type StoreCaller, type StoreDoorAnswer, type StoreDoorError, type StoreDoors, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, archivedOrganizationId, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportMarkdown, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, mapThrownError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, storeDoors, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };