@ai-matrx/records 0.84.0 → 0.84.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.
@@ -15174,6 +15174,29 @@ declare function useSeededAnswer<T>(key: string | null, run: (client: RecordsCli
15174
15174
  ok: false;
15175
15175
  error: RecordsError;
15176
15176
  }>): T | undefined;
15177
+ /**
15178
+ * `useSeededAnswer`, with when the server asked (epoch ms). A screen that starts from the answer keeps
15179
+ * that moment: while the answer is that young, a records client REBUILT underneath it (the active
15180
+ * organization resolving, a token refresh) is not a new question — the screen's question did not change —
15181
+ * so it reads nothing (lane SEED-ENTITY, charts asking again 4-7 s in).
15182
+ */
15183
+ declare function useSeededAnswerAt<T>(key: string | null, run: (client: RecordsClient) => Promise<{
15184
+ ok: true;
15185
+ data: T;
15186
+ } | {
15187
+ ok: false;
15188
+ error: RecordsError;
15189
+ }>): {
15190
+ data: T;
15191
+ at: number;
15192
+ } | undefined;
15193
+ /**
15194
+ * A TILE'S NUMBER FROM THE SERVER'S SEED (lane SEED-ENTITY): the rows of `custom.record_aggregate`
15195
+ * for `spec` over `tableId`, when the page seed holds that exact question (`askTileSeed`, records-ui
15196
+ * `/first-page`); else `undefined` and the tile reads for itself. Asks through `client.recordAggregate`,
15197
+ * so the arguments are exactly the ones the tile's own read sends.
15198
+ */
15199
+ declare function useSeededAggregate(tableId: Uuid | null, spec: Omit<Parameters<RecordsClient["recordAggregate"]>[0], "table_id">): AggregateRow[] | undefined;
15177
15200
  /** One Table's declaration. */
15178
15201
  declare function useTable(tableId: Uuid | null): Async<Table | null>;
15179
15202
  /** Every Table this person can see in this organization. */
@@ -15548,6 +15571,19 @@ interface SeedStore {
15548
15571
  ok: false;
15549
15572
  error: RecordsError;
15550
15573
  }>, config: RecordsConfig): Promise<SeedOutcome<T>>;
15574
+ /**
15575
+ * The same, for a reader that holds no records client (the entity engine): `run` is handed a data
15576
+ * source that answers from the seed only. A miss anywhere in the run is "not seeded".
15577
+ */
15578
+ runSource<T>(slot: string, run: (source: RecordsDataSource) => Promise<{
15579
+ ok: true;
15580
+ data: T;
15581
+ } | {
15582
+ ok: false;
15583
+ error: unknown;
15584
+ }>): Promise<SeedOutcome<T>>;
15585
+ /** Epoch ms the server asked. */
15586
+ at: number;
15551
15587
  }
15552
15588
  interface RecordsSeedProviderProps {
15553
15589
  /** What the server asked for this page as the person (`recordingDataSource(...).seed()`), or null. */
@@ -15556,6 +15592,24 @@ interface RecordsSeedProviderProps {
15556
15592
  }
15557
15593
  /** Mount above a server-rendered records screen. A null seed is no seed: every hook asks for itself. */
15558
15594
  declare function RecordsSeedProvider({ seed, children }: RecordsSeedProviderProps): react.FunctionComponentElement<react.ProviderProps<SeedStore | null>>;
15595
+ /**
15596
+ * A READER WITHOUT A RECORDS CLIENT, AGAINST THE PAGE SEED (lane SEED-ENTITY): under a live
15597
+ * `<RecordsSeedProvider>`, `run` is asked of a data source that answers from the seed only —
15598
+ * suspending on the server and while hydrating, never touching the network. Its answer (and when the
15599
+ * server asked) is returned for the reader to start from; a miss, or no seed, answers `undefined` and
15600
+ * the reader asks for itself. Always suspends while the seed is live (React matches awaited promises
15601
+ * by order), so call it unconditionally.
15602
+ */
15603
+ declare function useSeededSource<T>(key: string | null, run: (source: RecordsDataSource) => Promise<{
15604
+ ok: true;
15605
+ data: T;
15606
+ } | {
15607
+ ok: false;
15608
+ error: unknown;
15609
+ }>): {
15610
+ data: T;
15611
+ at: number;
15612
+ } | undefined;
15559
15613
 
15560
15614
  /** How long an entry outlives its last reader, so a remount or an Undo costs nothing. */
15561
15615
  declare const RECORDS_CACHE_GRACE_MS = 30000;
@@ -16008,4 +16062,4 @@ interface ArchiveDeliberatelyArgs {
16008
16062
  }
16009
16063
  declare function archiveAppTableDeliberately(client: RecordsClient, args: ArchiveDeliberatelyArgs): Promise<RecordsResult<TableArchiveProgress>>;
16010
16064
 
16011
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, ADDRESS_PARTS, AGENT_WRITER_WORDS, APP_ROWS_CEILING, ARCHIVE_LANES, ARCHIVE_LANE_LABEL, ARCHIVE_LANE_MEANS, type AbsenceReason, type ActionRefusal, type ActionRunResult, type Actor, type AddressPart, type AddressValue, type AggregateBucket, type AggregateCompare, type AggregateCompareKind, type AggregateCompareWindows, type AggregateDelta, type AggregateFilter, type AggregateGroupValue, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, type AnyAppTableDef, type AnyStoreTable, type AppField, type AppFields, type AppRows, type AppTableChecked, type AppTableDef, type AppTableEnsured, type AppTableGraduation, type AppTableInput, type AppTableOrgOptions, type AppTableScope, type AppTableStatus, type AppUpsertOptions, type ArchiveDeliberatelyArgs, type ArchiveLane, type ArchivedChecklistTemplate, type ArchivedDoorRow, type ArchivedForm, type ArchivedRow, type AutomationAction, type AutomationDeclared, type AutomationFilter, type AutomationFlipped, type AutomationItem, type AutomationLastRun, type AutomationList, type AutomationRun, type AutomationRunStatus, type AutomationRuns, type AutomationSpec, type AutomationStep, type AutomationTrigger, type AutomationValue, type AutomationValues, BARCODE_SYMBOLOGIES, BUILT_KIND_WORD, type BookingAvailability, type BookingDeclared, type BookingSummary, type BookingWindow, CHOICE_NUDGES, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceCellBack, type ChoiceLike, type ChoiceNudge, type ChoiceOption, type ChoiceOptions, type ChoiceRehome, type ChoiceUsage, type ChoicesRehomed, type CoerceOptions, type Coerced, type CoercedAnswers, type CoercibleField, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DECLARABLE_FIELD_KINDS, DEFAULT_ARCHIVE_LANE, DEFAULT_PORTAL_ARCHIVE_FILTER, DELIVERIES, DRILL_CHART_TOKENS, DRILL_DESCRIPTION_MAX, DRILL_DOORS, DRILL_SCHEMA, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type DashboardTarget, type DashboardTargetBase, type DashboardTargetOp, type DashboardTargetResult, type DashboardTotals, type DataHomeTable, type DeclarableFieldKind, type DecorationColor, type DecorationPath, type DecorationRule, type DecorationRuleOp, type DecorationTarget, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, type DrillAdHocOp, type DrillAnswer, type DrillAnswerRow, type DrillChartToken, type DrillDeclaration, type DrillDefinition, type DrillDimension, type DrillFinding, type DrillGrain, type DrillHaving, type DrillLane, type DrillLevel, type DrillMeasure, type DrillMeasureOp, type DrillMeasureWhereValue, type DrillPath, type DrillQuestion, type DrillRecords, type DrillRowsPage, type DrillSource, type DrillView, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityBackLinkItem, type EntityBackLinks, type EntityFieldRights, type EntityFieldValue, type EntityFieldsAcross, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityRef, type EntityRefWithWords, type EntityReferenceKind, type EntityReferenceRead, type EntityRowWritten, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_KINDS, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldDrift, type FieldDriftAspect, type FieldDuplicated, type FieldHistoryEntry, type FieldKind, type FieldOptionEdit, type FieldOptions, type FieldPatch, type FieldProposal, type FieldRetyped, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormArchiveAnswer, type FormLookOptions, type FormResults, type FormRoute, type FormSummary, type FormulaParse, type Freshness, GRADUATION_BASE_COLUMNS, type GraduatedRelation, type GraduatedRow, type GridLayout, type GridLayoutMode, type GridRowHeight, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportColumnsDeclared, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, type InboxCounts, type InboxStateChange, type InsertOf, type IoExportPage, KERNEL_TABLES, type KernelTableName, type KernelTargets, type KeysetRow, type ListTableRowsOptions, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MigrationUndone, type MissingBehavior, type MyLevel, type MySubscription, NEWER_FIELD_KINDS, NOT_A_MEMBER_WORDS, type NewEntityFieldDeclaration, type NewFieldDeclaration, type NewerFieldKind, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OutsideShareAnswer, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, PORTAL_ACCENTS, PORTAL_ARCHIVE_FILTERS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PersonStamp, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineGate, type PipelineGatePreview, type PipelineMissingField, type PipelineMoveMany, type PipelineMoveManyItem, type PipelineMoveManyResult, type PipelineMoveResult, type PipelineMoveVerdict, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalAccent, type PortalArchiveAnswer, type PortalArchiveFilter, type PortalCard, type PortalConfig, type PortalConfigInput, type PortalFooterLink, type PortalFormAnswer, type PortalFormInput, type PortalFormRef, type PortalFormSpec, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalStage, type PortalStyle, type PortalStyleInput, type PortalSummary, type PortalTableExposure, type PortalTableRef, type PredictedRefusal, type ProvenancePointer, type PublicPicture, type PublishBinding, type PublishBindingKind, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, RECORDS_CACHE_GRACE_MS, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, REVERSE_LINKS_PAGE_MAX, REVERSE_LINKS_RECORDS_PER_CALL, ROW_WEB_NOT_READY, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordChange, type RecordChangeAction, type RecordChangeResult, type RecordComment, type RecordDocument, type RecordEvent, type RecordFilter, type RecordGraphWritten, type RecordHeader, type RecordHistoryEntry, type RecordKeysetPage, type RecordPage, type RecordPageData, type RecordPageSort, type RecordRead, type RecordRevision, type RecordRowControls, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsChangeSink, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsHoldScope, type RecordsMerged, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, RecordsSeedProvider, type RecordsSeedProviderProps, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationDisplay, type RelationFlavor, type RelationIcons, type RelationNameIndex, type RelationNameMatch, type RelationNamesAnswer, type RelationProperties, type RelationTarget, type RelationWordsManyArgs, type ResolutionTriple, type ResolvedPublishBinding, type ResolvedPublishBindingKind, type RestorePreview, type RestoreResult, type RetiredActorWord, type RetypeBehaviour, type RetypePreview, type ReverseColumn, type ReverseLink, type ReverseLinks, type ReverseLinksManyArgs, type RowAction, type RowActionStep, type RowDefaultsApplied, type RowOf, type RowTemplateRow, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, SEED_FRESH_MS, SHOWN_TO_LABEL, SHOWN_TO_VALUES, SHOWN_TO_WHO_MAY_CHANGE, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, STATUS_GROUPS, STATUS_GROUP_WORDS, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, STORE_ROWS_CEILING, SYSTEM_WRITER_WORDS, type SavedViewColorBy, type SavedViewDefinition, type SavedViewLayout, type SavedViewRow, type SavedViewSpecIn, type ShownTo, type SourceArchived, type StagePending, type StagePendingOnBoard, type StageRuleEnforcement, type StageRuleOnFail, type StageRuleWarning, type StaleWriteDetail, type StatusGroup, type StorageMode, type StoreDoorName, type StoreFilter, type StoreInsertOf, type StoreRefusalCode, type StoreRowOf, type StoreRowSnapshot, type StoreTable, type StoreTableColumn, type StoreTableRows, type StoreTableSort, type StoreTableWhere, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_KIND_PREFIX, TABLE_ORIGINS, TABLE_TYPES, TO_ASSOCIATION, TO_CUSTOM_FIELDS, type Table, type TableArchiveProgress, type TableCapacity, type TableCopyInProgress, type TableDecorations, type TableDisplay, type TableDuplicateProgress, type TableDuplicated, type TableHome, type TableHomeDestination, type TableKindFacts, type TableListEntry, type TableMoved, type TableOrigin, type TablePlacement, type TablePlacementFact, type TableProposal, type TableRenderSchema, type TableRestoreProgress, type TableRowCount, type TableRowDefaults, type TableRowDefaultsPatch, type TableSchemaMode, type TableSyncResult, type TableSyncSource, type TableSyncSpec, type TableType, type TableWebhook, type TableWebhookDeclared, type Timestamp, type TypedChoiceDecision, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, type UniqueKeys, type UseAppTable, type UseAppTableOptions, type UseEntityBackLinks, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordOptions, type UseRecordPageOptions, type UseRecordPageState, type UseRecordsOptions, type UseRecordsState, type UseStoreTable, type UseTableArchive, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type ViewLayout, type ViewOrderSet, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprovalState, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDecideMany, type WorkDecideManyItem, type WorkDecideManyResult, type WorkDecideVerdict, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInboxView, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, actionRefusals, addressFromText, addressMapUrl, addressText, allowsOtherValues, archiveAppTableDeliberately, archiveTableRow, archivedByLine, archivedWhen, asChoiceNudge, asPermissionLevel, atLeast, bookingPath, callersTimeZone, checkAppTable, choiceSlug, choiceValuesOf, choicesOf, coerceTypedAnswer, coerceTypedAnswers, coercionLabel, decideTypedChoice, declareDrillDefinition, defineAppTable, drillAnswerOf, drillFindingKnob, durationText, emptyArchiveLine, emptyPortalArchiveLine, ensureAppTable, entityReferenceKinds, entityReferenceKindsOf, entityReferenceSearch, entityReferenceWords, entityRefsOf, entityRefsToWrite, err, exportPageXlsx, f, fieldKindFor, fieldKindOf, forgetAllOps, graduatedRow, graduationProblems, hasQuietHours, highestLevel, holdsARetiredChoice, indexedDbStore, isAddressValue, isArchiveLane, isDecided, isEntityReferenceConfig, isFoundation, isOwnOp, isPersonStamp, isPortalAccent, isPortalArchiveFilter, isRecordsErr, isRuleFilter, isShownTo, isTableKind, isTheChosen, keptGroups, keptOutOfSight, keptTableHref, liftWithheld, listAppRows, listTableRows, localeDateOrder, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, mintOpId, moveConsequence, moveInOrder, newerKindExportWords, newerKindOf, newerKindWords, offeredAsContext, ok, openCaptureQueue, optionKey, optionLabel, parseFieldDrift, parseTableCopiesInProgress, parseTableDuplicateProgress, parseTableDuplicated, parseTableHome, parseTableMoved, personStampText, portalArchiveConsequence, portalConfirmLine, portalPath, portalTitleTypedBack, previewRetype, previewRuleChange, publicFormPath, rankTypedMatches, ratingMaxOf, readTypedDate, readTypedDuration, readTypedNumber, readTypedTime, recordChangeTrigger, recordSourceKey, recordSourceTable, recordsCacheCounters, recordsUseSentence, rehomeSentence, relationNameIndexOf, relationNameKey, relationNamesIn, rememberedOpCount, removeAppRow, removedChoicesInUse, richTextPlain, rowFromDocument, ruleThatRefuses, rulesWithTopStar, safeLinkHref, sameDocument, scopeChip, sha256Hex, sheetSyncSpec, sourceArchivedOf, splitListCell, stableFilterKey, statusGroupOf, storeTable, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema, tableShapeChanged, twoDigitYear, typedDateText, typedMatchScore, typedTimeText, updateTableRow, upsertAppRow, useAppTable, useEntityBackLinks, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityReferenceKinds, useEntityReferenceSearch, useEntityReferenceWords, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordChangeRevision, useRecordMutation, useRecordPage, useRecords, useRecordsActor, useRecordsClient, useRecordsHold, useReverseColumns, useReverseLinks, useRowActions, useSeededAnswer, useStoreTable, useTable, useTableArchive, useTables, valueConverts, withCallersClock, withRowCounts, withTablePlacement, writeTableRow };
16065
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, ADDRESS_PARTS, AGENT_WRITER_WORDS, APP_ROWS_CEILING, ARCHIVE_LANES, ARCHIVE_LANE_LABEL, ARCHIVE_LANE_MEANS, type AbsenceReason, type ActionRefusal, type ActionRunResult, type Actor, type AddressPart, type AddressValue, type AggregateBucket, type AggregateCompare, type AggregateCompareKind, type AggregateCompareWindows, type AggregateDelta, type AggregateFilter, type AggregateGroupValue, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, type AnyAppTableDef, type AnyStoreTable, type AppField, type AppFields, type AppRows, type AppTableChecked, type AppTableDef, type AppTableEnsured, type AppTableGraduation, type AppTableInput, type AppTableOrgOptions, type AppTableScope, type AppTableStatus, type AppUpsertOptions, type ArchiveDeliberatelyArgs, type ArchiveLane, type ArchivedChecklistTemplate, type ArchivedDoorRow, type ArchivedForm, type ArchivedRow, type AutomationAction, type AutomationDeclared, type AutomationFilter, type AutomationFlipped, type AutomationItem, type AutomationLastRun, type AutomationList, type AutomationRun, type AutomationRunStatus, type AutomationRuns, type AutomationSpec, type AutomationStep, type AutomationTrigger, type AutomationValue, type AutomationValues, BARCODE_SYMBOLOGIES, BUILT_KIND_WORD, type BookingAvailability, type BookingDeclared, type BookingSummary, type BookingWindow, CHOICE_NUDGES, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceCellBack, type ChoiceLike, type ChoiceNudge, type ChoiceOption, type ChoiceOptions, type ChoiceRehome, type ChoiceUsage, type ChoicesRehomed, type CoerceOptions, type Coerced, type CoercedAnswers, type CoercibleField, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DECLARABLE_FIELD_KINDS, DEFAULT_ARCHIVE_LANE, DEFAULT_PORTAL_ARCHIVE_FILTER, DELIVERIES, DRILL_CHART_TOKENS, DRILL_DESCRIPTION_MAX, DRILL_DOORS, DRILL_SCHEMA, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type DashboardTarget, type DashboardTargetBase, type DashboardTargetOp, type DashboardTargetResult, type DashboardTotals, type DataHomeTable, type DeclarableFieldKind, type DecorationColor, type DecorationPath, type DecorationRule, type DecorationRuleOp, type DecorationTarget, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, type DrillAdHocOp, type DrillAnswer, type DrillAnswerRow, type DrillChartToken, type DrillDeclaration, type DrillDefinition, type DrillDimension, type DrillFinding, type DrillGrain, type DrillHaving, type DrillLane, type DrillLevel, type DrillMeasure, type DrillMeasureOp, type DrillMeasureWhereValue, type DrillPath, type DrillQuestion, type DrillRecords, type DrillRowsPage, type DrillSource, type DrillView, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityBackLinkItem, type EntityBackLinks, type EntityFieldRights, type EntityFieldValue, type EntityFieldsAcross, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityRef, type EntityRefWithWords, type EntityReferenceKind, type EntityReferenceRead, type EntityRowWritten, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_KINDS, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldDrift, type FieldDriftAspect, type FieldDuplicated, type FieldHistoryEntry, type FieldKind, type FieldOptionEdit, type FieldOptions, type FieldPatch, type FieldProposal, type FieldRetyped, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormArchiveAnswer, type FormLookOptions, type FormResults, type FormRoute, type FormSummary, type FormulaParse, type Freshness, GRADUATION_BASE_COLUMNS, type GraduatedRelation, type GraduatedRow, type GridLayout, type GridLayoutMode, type GridRowHeight, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportColumnsDeclared, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, type InboxCounts, type InboxStateChange, type InsertOf, type IoExportPage, KERNEL_TABLES, type KernelTableName, type KernelTargets, type KeysetRow, type ListTableRowsOptions, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MigrationUndone, type MissingBehavior, type MyLevel, type MySubscription, NEWER_FIELD_KINDS, NOT_A_MEMBER_WORDS, type NewEntityFieldDeclaration, type NewFieldDeclaration, type NewerFieldKind, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OutsideShareAnswer, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, PORTAL_ACCENTS, PORTAL_ARCHIVE_FILTERS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PersonStamp, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineGate, type PipelineGatePreview, type PipelineMissingField, type PipelineMoveMany, type PipelineMoveManyItem, type PipelineMoveManyResult, type PipelineMoveResult, type PipelineMoveVerdict, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalAccent, type PortalArchiveAnswer, type PortalArchiveFilter, type PortalCard, type PortalConfig, type PortalConfigInput, type PortalFooterLink, type PortalFormAnswer, type PortalFormInput, type PortalFormRef, type PortalFormSpec, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalStage, type PortalStyle, type PortalStyleInput, type PortalSummary, type PortalTableExposure, type PortalTableRef, type PredictedRefusal, type ProvenancePointer, type PublicPicture, type PublishBinding, type PublishBindingKind, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, RECORDS_CACHE_GRACE_MS, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, REVERSE_LINKS_PAGE_MAX, REVERSE_LINKS_RECORDS_PER_CALL, ROW_WEB_NOT_READY, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordChange, type RecordChangeAction, type RecordChangeResult, type RecordComment, type RecordDocument, type RecordEvent, type RecordFilter, type RecordGraphWritten, type RecordHeader, type RecordHistoryEntry, type RecordKeysetPage, type RecordPage, type RecordPageData, type RecordPageSort, type RecordRead, type RecordRevision, type RecordRowControls, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsChangeSink, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsHoldScope, type RecordsMerged, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, RecordsSeedProvider, type RecordsSeedProviderProps, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationDisplay, type RelationFlavor, type RelationIcons, type RelationNameIndex, type RelationNameMatch, type RelationNamesAnswer, type RelationProperties, type RelationTarget, type RelationWordsManyArgs, type ResolutionTriple, type ResolvedPublishBinding, type ResolvedPublishBindingKind, type RestorePreview, type RestoreResult, type RetiredActorWord, type RetypeBehaviour, type RetypePreview, type ReverseColumn, type ReverseLink, type ReverseLinks, type ReverseLinksManyArgs, type RowAction, type RowActionStep, type RowDefaultsApplied, type RowOf, type RowTemplateRow, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, SEED_FRESH_MS, SHOWN_TO_LABEL, SHOWN_TO_VALUES, SHOWN_TO_WHO_MAY_CHANGE, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, STATUS_GROUPS, STATUS_GROUP_WORDS, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, STORE_ROWS_CEILING, SYSTEM_WRITER_WORDS, type SavedViewColorBy, type SavedViewDefinition, type SavedViewLayout, type SavedViewRow, type SavedViewSpecIn, type ShownTo, type SourceArchived, type StagePending, type StagePendingOnBoard, type StageRuleEnforcement, type StageRuleOnFail, type StageRuleWarning, type StaleWriteDetail, type StatusGroup, type StorageMode, type StoreDoorName, type StoreFilter, type StoreInsertOf, type StoreRefusalCode, type StoreRowOf, type StoreRowSnapshot, type StoreTable, type StoreTableColumn, type StoreTableRows, type StoreTableSort, type StoreTableWhere, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_KIND_PREFIX, TABLE_ORIGINS, TABLE_TYPES, TO_ASSOCIATION, TO_CUSTOM_FIELDS, type Table, type TableArchiveProgress, type TableCapacity, type TableCopyInProgress, type TableDecorations, type TableDisplay, type TableDuplicateProgress, type TableDuplicated, type TableHome, type TableHomeDestination, type TableKindFacts, type TableListEntry, type TableMoved, type TableOrigin, type TablePlacement, type TablePlacementFact, type TableProposal, type TableRenderSchema, type TableRestoreProgress, type TableRowCount, type TableRowDefaults, type TableRowDefaultsPatch, type TableSchemaMode, type TableSyncResult, type TableSyncSource, type TableSyncSpec, type TableType, type TableWebhook, type TableWebhookDeclared, type Timestamp, type TypedChoiceDecision, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, type UniqueKeys, type UseAppTable, type UseAppTableOptions, type UseEntityBackLinks, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordOptions, type UseRecordPageOptions, type UseRecordPageState, type UseRecordsOptions, type UseRecordsState, type UseStoreTable, type UseTableArchive, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type ViewLayout, type ViewOrderSet, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprovalState, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDecideMany, type WorkDecideManyItem, type WorkDecideManyResult, type WorkDecideVerdict, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInboxView, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, actionRefusals, addressFromText, addressMapUrl, addressText, allowsOtherValues, archiveAppTableDeliberately, archiveTableRow, archivedByLine, archivedWhen, asChoiceNudge, asPermissionLevel, atLeast, bookingPath, callersTimeZone, checkAppTable, choiceSlug, choiceValuesOf, choicesOf, coerceTypedAnswer, coerceTypedAnswers, coercionLabel, decideTypedChoice, declareDrillDefinition, defineAppTable, drillAnswerOf, drillFindingKnob, durationText, emptyArchiveLine, emptyPortalArchiveLine, ensureAppTable, entityReferenceKinds, entityReferenceKindsOf, entityReferenceSearch, entityReferenceWords, entityRefsOf, entityRefsToWrite, err, exportPageXlsx, f, fieldKindFor, fieldKindOf, forgetAllOps, graduatedRow, graduationProblems, hasQuietHours, highestLevel, holdsARetiredChoice, indexedDbStore, isAddressValue, isArchiveLane, isDecided, isEntityReferenceConfig, isFoundation, isOwnOp, isPersonStamp, isPortalAccent, isPortalArchiveFilter, isRecordsErr, isRuleFilter, isShownTo, isTableKind, isTheChosen, keptGroups, keptOutOfSight, keptTableHref, liftWithheld, listAppRows, listTableRows, localeDateOrder, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, mintOpId, moveConsequence, moveInOrder, newerKindExportWords, newerKindOf, newerKindWords, offeredAsContext, ok, openCaptureQueue, optionKey, optionLabel, parseFieldDrift, parseTableCopiesInProgress, parseTableDuplicateProgress, parseTableDuplicated, parseTableHome, parseTableMoved, personStampText, portalArchiveConsequence, portalConfirmLine, portalPath, portalTitleTypedBack, previewRetype, previewRuleChange, publicFormPath, rankTypedMatches, ratingMaxOf, readTypedDate, readTypedDuration, readTypedNumber, readTypedTime, recordChangeTrigger, recordSourceKey, recordSourceTable, recordsCacheCounters, recordsUseSentence, rehomeSentence, relationNameIndexOf, relationNameKey, relationNamesIn, rememberedOpCount, removeAppRow, removedChoicesInUse, richTextPlain, rowFromDocument, ruleThatRefuses, rulesWithTopStar, safeLinkHref, sameDocument, scopeChip, sha256Hex, sheetSyncSpec, sourceArchivedOf, splitListCell, stableFilterKey, statusGroupOf, storeTable, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema, tableShapeChanged, twoDigitYear, typedDateText, typedMatchScore, typedTimeText, updateTableRow, upsertAppRow, useAppTable, useEntityBackLinks, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityReferenceKinds, useEntityReferenceSearch, useEntityReferenceWords, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordChangeRevision, useRecordMutation, useRecordPage, useRecords, useRecordsActor, useRecordsClient, useRecordsHold, useReverseColumns, useReverseLinks, useRowActions, useSeededAggregate, useSeededAnswer, useSeededAnswerAt, useSeededSource, useStoreTable, useTable, useTableArchive, useTables, valueConverts, withCallersClock, withRowCounts, withTablePlacement, writeTableRow };
@@ -15174,6 +15174,29 @@ declare function useSeededAnswer<T>(key: string | null, run: (client: RecordsCli
15174
15174
  ok: false;
15175
15175
  error: RecordsError;
15176
15176
  }>): T | undefined;
15177
+ /**
15178
+ * `useSeededAnswer`, with when the server asked (epoch ms). A screen that starts from the answer keeps
15179
+ * that moment: while the answer is that young, a records client REBUILT underneath it (the active
15180
+ * organization resolving, a token refresh) is not a new question — the screen's question did not change —
15181
+ * so it reads nothing (lane SEED-ENTITY, charts asking again 4-7 s in).
15182
+ */
15183
+ declare function useSeededAnswerAt<T>(key: string | null, run: (client: RecordsClient) => Promise<{
15184
+ ok: true;
15185
+ data: T;
15186
+ } | {
15187
+ ok: false;
15188
+ error: RecordsError;
15189
+ }>): {
15190
+ data: T;
15191
+ at: number;
15192
+ } | undefined;
15193
+ /**
15194
+ * A TILE'S NUMBER FROM THE SERVER'S SEED (lane SEED-ENTITY): the rows of `custom.record_aggregate`
15195
+ * for `spec` over `tableId`, when the page seed holds that exact question (`askTileSeed`, records-ui
15196
+ * `/first-page`); else `undefined` and the tile reads for itself. Asks through `client.recordAggregate`,
15197
+ * so the arguments are exactly the ones the tile's own read sends.
15198
+ */
15199
+ declare function useSeededAggregate(tableId: Uuid | null, spec: Omit<Parameters<RecordsClient["recordAggregate"]>[0], "table_id">): AggregateRow[] | undefined;
15177
15200
  /** One Table's declaration. */
15178
15201
  declare function useTable(tableId: Uuid | null): Async<Table | null>;
15179
15202
  /** Every Table this person can see in this organization. */
@@ -15548,6 +15571,19 @@ interface SeedStore {
15548
15571
  ok: false;
15549
15572
  error: RecordsError;
15550
15573
  }>, config: RecordsConfig): Promise<SeedOutcome<T>>;
15574
+ /**
15575
+ * The same, for a reader that holds no records client (the entity engine): `run` is handed a data
15576
+ * source that answers from the seed only. A miss anywhere in the run is "not seeded".
15577
+ */
15578
+ runSource<T>(slot: string, run: (source: RecordsDataSource) => Promise<{
15579
+ ok: true;
15580
+ data: T;
15581
+ } | {
15582
+ ok: false;
15583
+ error: unknown;
15584
+ }>): Promise<SeedOutcome<T>>;
15585
+ /** Epoch ms the server asked. */
15586
+ at: number;
15551
15587
  }
15552
15588
  interface RecordsSeedProviderProps {
15553
15589
  /** What the server asked for this page as the person (`recordingDataSource(...).seed()`), or null. */
@@ -15556,6 +15592,24 @@ interface RecordsSeedProviderProps {
15556
15592
  }
15557
15593
  /** Mount above a server-rendered records screen. A null seed is no seed: every hook asks for itself. */
15558
15594
  declare function RecordsSeedProvider({ seed, children }: RecordsSeedProviderProps): react.FunctionComponentElement<react.ProviderProps<SeedStore | null>>;
15595
+ /**
15596
+ * A READER WITHOUT A RECORDS CLIENT, AGAINST THE PAGE SEED (lane SEED-ENTITY): under a live
15597
+ * `<RecordsSeedProvider>`, `run` is asked of a data source that answers from the seed only —
15598
+ * suspending on the server and while hydrating, never touching the network. Its answer (and when the
15599
+ * server asked) is returned for the reader to start from; a miss, or no seed, answers `undefined` and
15600
+ * the reader asks for itself. Always suspends while the seed is live (React matches awaited promises
15601
+ * by order), so call it unconditionally.
15602
+ */
15603
+ declare function useSeededSource<T>(key: string | null, run: (source: RecordsDataSource) => Promise<{
15604
+ ok: true;
15605
+ data: T;
15606
+ } | {
15607
+ ok: false;
15608
+ error: unknown;
15609
+ }>): {
15610
+ data: T;
15611
+ at: number;
15612
+ } | undefined;
15559
15613
 
15560
15614
  /** How long an entry outlives its last reader, so a remount or an Undo costs nothing. */
15561
15615
  declare const RECORDS_CACHE_GRACE_MS = 30000;
@@ -16008,4 +16062,4 @@ interface ArchiveDeliberatelyArgs {
16008
16062
  }
16009
16063
  declare function archiveAppTableDeliberately(client: RecordsClient, args: ArchiveDeliberatelyArgs): Promise<RecordsResult<TableArchiveProgress>>;
16010
16064
 
16011
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, ADDRESS_PARTS, AGENT_WRITER_WORDS, APP_ROWS_CEILING, ARCHIVE_LANES, ARCHIVE_LANE_LABEL, ARCHIVE_LANE_MEANS, type AbsenceReason, type ActionRefusal, type ActionRunResult, type Actor, type AddressPart, type AddressValue, type AggregateBucket, type AggregateCompare, type AggregateCompareKind, type AggregateCompareWindows, type AggregateDelta, type AggregateFilter, type AggregateGroupValue, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, type AnyAppTableDef, type AnyStoreTable, type AppField, type AppFields, type AppRows, type AppTableChecked, type AppTableDef, type AppTableEnsured, type AppTableGraduation, type AppTableInput, type AppTableOrgOptions, type AppTableScope, type AppTableStatus, type AppUpsertOptions, type ArchiveDeliberatelyArgs, type ArchiveLane, type ArchivedChecklistTemplate, type ArchivedDoorRow, type ArchivedForm, type ArchivedRow, type AutomationAction, type AutomationDeclared, type AutomationFilter, type AutomationFlipped, type AutomationItem, type AutomationLastRun, type AutomationList, type AutomationRun, type AutomationRunStatus, type AutomationRuns, type AutomationSpec, type AutomationStep, type AutomationTrigger, type AutomationValue, type AutomationValues, BARCODE_SYMBOLOGIES, BUILT_KIND_WORD, type BookingAvailability, type BookingDeclared, type BookingSummary, type BookingWindow, CHOICE_NUDGES, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceCellBack, type ChoiceLike, type ChoiceNudge, type ChoiceOption, type ChoiceOptions, type ChoiceRehome, type ChoiceUsage, type ChoicesRehomed, type CoerceOptions, type Coerced, type CoercedAnswers, type CoercibleField, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DECLARABLE_FIELD_KINDS, DEFAULT_ARCHIVE_LANE, DEFAULT_PORTAL_ARCHIVE_FILTER, DELIVERIES, DRILL_CHART_TOKENS, DRILL_DESCRIPTION_MAX, DRILL_DOORS, DRILL_SCHEMA, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type DashboardTarget, type DashboardTargetBase, type DashboardTargetOp, type DashboardTargetResult, type DashboardTotals, type DataHomeTable, type DeclarableFieldKind, type DecorationColor, type DecorationPath, type DecorationRule, type DecorationRuleOp, type DecorationTarget, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, type DrillAdHocOp, type DrillAnswer, type DrillAnswerRow, type DrillChartToken, type DrillDeclaration, type DrillDefinition, type DrillDimension, type DrillFinding, type DrillGrain, type DrillHaving, type DrillLane, type DrillLevel, type DrillMeasure, type DrillMeasureOp, type DrillMeasureWhereValue, type DrillPath, type DrillQuestion, type DrillRecords, type DrillRowsPage, type DrillSource, type DrillView, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityBackLinkItem, type EntityBackLinks, type EntityFieldRights, type EntityFieldValue, type EntityFieldsAcross, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityRef, type EntityRefWithWords, type EntityReferenceKind, type EntityReferenceRead, type EntityRowWritten, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_KINDS, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldDrift, type FieldDriftAspect, type FieldDuplicated, type FieldHistoryEntry, type FieldKind, type FieldOptionEdit, type FieldOptions, type FieldPatch, type FieldProposal, type FieldRetyped, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormArchiveAnswer, type FormLookOptions, type FormResults, type FormRoute, type FormSummary, type FormulaParse, type Freshness, GRADUATION_BASE_COLUMNS, type GraduatedRelation, type GraduatedRow, type GridLayout, type GridLayoutMode, type GridRowHeight, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportColumnsDeclared, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, type InboxCounts, type InboxStateChange, type InsertOf, type IoExportPage, KERNEL_TABLES, type KernelTableName, type KernelTargets, type KeysetRow, type ListTableRowsOptions, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MigrationUndone, type MissingBehavior, type MyLevel, type MySubscription, NEWER_FIELD_KINDS, NOT_A_MEMBER_WORDS, type NewEntityFieldDeclaration, type NewFieldDeclaration, type NewerFieldKind, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OutsideShareAnswer, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, PORTAL_ACCENTS, PORTAL_ARCHIVE_FILTERS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PersonStamp, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineGate, type PipelineGatePreview, type PipelineMissingField, type PipelineMoveMany, type PipelineMoveManyItem, type PipelineMoveManyResult, type PipelineMoveResult, type PipelineMoveVerdict, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalAccent, type PortalArchiveAnswer, type PortalArchiveFilter, type PortalCard, type PortalConfig, type PortalConfigInput, type PortalFooterLink, type PortalFormAnswer, type PortalFormInput, type PortalFormRef, type PortalFormSpec, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalStage, type PortalStyle, type PortalStyleInput, type PortalSummary, type PortalTableExposure, type PortalTableRef, type PredictedRefusal, type ProvenancePointer, type PublicPicture, type PublishBinding, type PublishBindingKind, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, RECORDS_CACHE_GRACE_MS, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, REVERSE_LINKS_PAGE_MAX, REVERSE_LINKS_RECORDS_PER_CALL, ROW_WEB_NOT_READY, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordChange, type RecordChangeAction, type RecordChangeResult, type RecordComment, type RecordDocument, type RecordEvent, type RecordFilter, type RecordGraphWritten, type RecordHeader, type RecordHistoryEntry, type RecordKeysetPage, type RecordPage, type RecordPageData, type RecordPageSort, type RecordRead, type RecordRevision, type RecordRowControls, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsChangeSink, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsHoldScope, type RecordsMerged, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, RecordsSeedProvider, type RecordsSeedProviderProps, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationDisplay, type RelationFlavor, type RelationIcons, type RelationNameIndex, type RelationNameMatch, type RelationNamesAnswer, type RelationProperties, type RelationTarget, type RelationWordsManyArgs, type ResolutionTriple, type ResolvedPublishBinding, type ResolvedPublishBindingKind, type RestorePreview, type RestoreResult, type RetiredActorWord, type RetypeBehaviour, type RetypePreview, type ReverseColumn, type ReverseLink, type ReverseLinks, type ReverseLinksManyArgs, type RowAction, type RowActionStep, type RowDefaultsApplied, type RowOf, type RowTemplateRow, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, SEED_FRESH_MS, SHOWN_TO_LABEL, SHOWN_TO_VALUES, SHOWN_TO_WHO_MAY_CHANGE, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, STATUS_GROUPS, STATUS_GROUP_WORDS, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, STORE_ROWS_CEILING, SYSTEM_WRITER_WORDS, type SavedViewColorBy, type SavedViewDefinition, type SavedViewLayout, type SavedViewRow, type SavedViewSpecIn, type ShownTo, type SourceArchived, type StagePending, type StagePendingOnBoard, type StageRuleEnforcement, type StageRuleOnFail, type StageRuleWarning, type StaleWriteDetail, type StatusGroup, type StorageMode, type StoreDoorName, type StoreFilter, type StoreInsertOf, type StoreRefusalCode, type StoreRowOf, type StoreRowSnapshot, type StoreTable, type StoreTableColumn, type StoreTableRows, type StoreTableSort, type StoreTableWhere, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_KIND_PREFIX, TABLE_ORIGINS, TABLE_TYPES, TO_ASSOCIATION, TO_CUSTOM_FIELDS, type Table, type TableArchiveProgress, type TableCapacity, type TableCopyInProgress, type TableDecorations, type TableDisplay, type TableDuplicateProgress, type TableDuplicated, type TableHome, type TableHomeDestination, type TableKindFacts, type TableListEntry, type TableMoved, type TableOrigin, type TablePlacement, type TablePlacementFact, type TableProposal, type TableRenderSchema, type TableRestoreProgress, type TableRowCount, type TableRowDefaults, type TableRowDefaultsPatch, type TableSchemaMode, type TableSyncResult, type TableSyncSource, type TableSyncSpec, type TableType, type TableWebhook, type TableWebhookDeclared, type Timestamp, type TypedChoiceDecision, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, type UniqueKeys, type UseAppTable, type UseAppTableOptions, type UseEntityBackLinks, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordOptions, type UseRecordPageOptions, type UseRecordPageState, type UseRecordsOptions, type UseRecordsState, type UseStoreTable, type UseTableArchive, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type ViewLayout, type ViewOrderSet, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprovalState, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDecideMany, type WorkDecideManyItem, type WorkDecideManyResult, type WorkDecideVerdict, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInboxView, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, actionRefusals, addressFromText, addressMapUrl, addressText, allowsOtherValues, archiveAppTableDeliberately, archiveTableRow, archivedByLine, archivedWhen, asChoiceNudge, asPermissionLevel, atLeast, bookingPath, callersTimeZone, checkAppTable, choiceSlug, choiceValuesOf, choicesOf, coerceTypedAnswer, coerceTypedAnswers, coercionLabel, decideTypedChoice, declareDrillDefinition, defineAppTable, drillAnswerOf, drillFindingKnob, durationText, emptyArchiveLine, emptyPortalArchiveLine, ensureAppTable, entityReferenceKinds, entityReferenceKindsOf, entityReferenceSearch, entityReferenceWords, entityRefsOf, entityRefsToWrite, err, exportPageXlsx, f, fieldKindFor, fieldKindOf, forgetAllOps, graduatedRow, graduationProblems, hasQuietHours, highestLevel, holdsARetiredChoice, indexedDbStore, isAddressValue, isArchiveLane, isDecided, isEntityReferenceConfig, isFoundation, isOwnOp, isPersonStamp, isPortalAccent, isPortalArchiveFilter, isRecordsErr, isRuleFilter, isShownTo, isTableKind, isTheChosen, keptGroups, keptOutOfSight, keptTableHref, liftWithheld, listAppRows, listTableRows, localeDateOrder, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, mintOpId, moveConsequence, moveInOrder, newerKindExportWords, newerKindOf, newerKindWords, offeredAsContext, ok, openCaptureQueue, optionKey, optionLabel, parseFieldDrift, parseTableCopiesInProgress, parseTableDuplicateProgress, parseTableDuplicated, parseTableHome, parseTableMoved, personStampText, portalArchiveConsequence, portalConfirmLine, portalPath, portalTitleTypedBack, previewRetype, previewRuleChange, publicFormPath, rankTypedMatches, ratingMaxOf, readTypedDate, readTypedDuration, readTypedNumber, readTypedTime, recordChangeTrigger, recordSourceKey, recordSourceTable, recordsCacheCounters, recordsUseSentence, rehomeSentence, relationNameIndexOf, relationNameKey, relationNamesIn, rememberedOpCount, removeAppRow, removedChoicesInUse, richTextPlain, rowFromDocument, ruleThatRefuses, rulesWithTopStar, safeLinkHref, sameDocument, scopeChip, sha256Hex, sheetSyncSpec, sourceArchivedOf, splitListCell, stableFilterKey, statusGroupOf, storeTable, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema, tableShapeChanged, twoDigitYear, typedDateText, typedMatchScore, typedTimeText, updateTableRow, upsertAppRow, useAppTable, useEntityBackLinks, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityReferenceKinds, useEntityReferenceSearch, useEntityReferenceWords, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordChangeRevision, useRecordMutation, useRecordPage, useRecords, useRecordsActor, useRecordsClient, useRecordsHold, useReverseColumns, useReverseLinks, useRowActions, useSeededAnswer, useStoreTable, useTable, useTableArchive, useTables, valueConverts, withCallersClock, withRowCounts, withTablePlacement, writeTableRow };
16065
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, ADDRESS_PARTS, AGENT_WRITER_WORDS, APP_ROWS_CEILING, ARCHIVE_LANES, ARCHIVE_LANE_LABEL, ARCHIVE_LANE_MEANS, type AbsenceReason, type ActionRefusal, type ActionRunResult, type Actor, type AddressPart, type AddressValue, type AggregateBucket, type AggregateCompare, type AggregateCompareKind, type AggregateCompareWindows, type AggregateDelta, type AggregateFilter, type AggregateGroupValue, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, type AnyAppTableDef, type AnyStoreTable, type AppField, type AppFields, type AppRows, type AppTableChecked, type AppTableDef, type AppTableEnsured, type AppTableGraduation, type AppTableInput, type AppTableOrgOptions, type AppTableScope, type AppTableStatus, type AppUpsertOptions, type ArchiveDeliberatelyArgs, type ArchiveLane, type ArchivedChecklistTemplate, type ArchivedDoorRow, type ArchivedForm, type ArchivedRow, type AutomationAction, type AutomationDeclared, type AutomationFilter, type AutomationFlipped, type AutomationItem, type AutomationLastRun, type AutomationList, type AutomationRun, type AutomationRunStatus, type AutomationRuns, type AutomationSpec, type AutomationStep, type AutomationTrigger, type AutomationValue, type AutomationValues, BARCODE_SYMBOLOGIES, BUILT_KIND_WORD, type BookingAvailability, type BookingDeclared, type BookingSummary, type BookingWindow, CHOICE_NUDGES, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceCellBack, type ChoiceLike, type ChoiceNudge, type ChoiceOption, type ChoiceOptions, type ChoiceRehome, type ChoiceUsage, type ChoicesRehomed, type CoerceOptions, type Coerced, type CoercedAnswers, type CoercibleField, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DECLARABLE_FIELD_KINDS, DEFAULT_ARCHIVE_LANE, DEFAULT_PORTAL_ARCHIVE_FILTER, DELIVERIES, DRILL_CHART_TOKENS, DRILL_DESCRIPTION_MAX, DRILL_DOORS, DRILL_SCHEMA, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type DashboardTarget, type DashboardTargetBase, type DashboardTargetOp, type DashboardTargetResult, type DashboardTotals, type DataHomeTable, type DeclarableFieldKind, type DecorationColor, type DecorationPath, type DecorationRule, type DecorationRuleOp, type DecorationTarget, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, type DrillAdHocOp, type DrillAnswer, type DrillAnswerRow, type DrillChartToken, type DrillDeclaration, type DrillDefinition, type DrillDimension, type DrillFinding, type DrillGrain, type DrillHaving, type DrillLane, type DrillLevel, type DrillMeasure, type DrillMeasureOp, type DrillMeasureWhereValue, type DrillPath, type DrillQuestion, type DrillRecords, type DrillRowsPage, type DrillSource, type DrillView, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityBackLinkItem, type EntityBackLinks, type EntityFieldRights, type EntityFieldValue, type EntityFieldsAcross, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityRef, type EntityRefWithWords, type EntityReferenceKind, type EntityReferenceRead, type EntityRowWritten, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_KINDS, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldDrift, type FieldDriftAspect, type FieldDuplicated, type FieldHistoryEntry, type FieldKind, type FieldOptionEdit, type FieldOptions, type FieldPatch, type FieldProposal, type FieldRetyped, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormArchiveAnswer, type FormLookOptions, type FormResults, type FormRoute, type FormSummary, type FormulaParse, type Freshness, GRADUATION_BASE_COLUMNS, type GraduatedRelation, type GraduatedRow, type GridLayout, type GridLayoutMode, type GridRowHeight, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportColumnsDeclared, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, type InboxCounts, type InboxStateChange, type InsertOf, type IoExportPage, KERNEL_TABLES, type KernelTableName, type KernelTargets, type KeysetRow, type ListTableRowsOptions, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MigrationUndone, type MissingBehavior, type MyLevel, type MySubscription, NEWER_FIELD_KINDS, NOT_A_MEMBER_WORDS, type NewEntityFieldDeclaration, type NewFieldDeclaration, type NewerFieldKind, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OutsideShareAnswer, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, PORTAL_ACCENTS, PORTAL_ARCHIVE_FILTERS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PersonStamp, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineGate, type PipelineGatePreview, type PipelineMissingField, type PipelineMoveMany, type PipelineMoveManyItem, type PipelineMoveManyResult, type PipelineMoveResult, type PipelineMoveVerdict, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalAccent, type PortalArchiveAnswer, type PortalArchiveFilter, type PortalCard, type PortalConfig, type PortalConfigInput, type PortalFooterLink, type PortalFormAnswer, type PortalFormInput, type PortalFormRef, type PortalFormSpec, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalStage, type PortalStyle, type PortalStyleInput, type PortalSummary, type PortalTableExposure, type PortalTableRef, type PredictedRefusal, type ProvenancePointer, type PublicPicture, type PublishBinding, type PublishBindingKind, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, RECORDS_CACHE_GRACE_MS, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, REVERSE_LINKS_PAGE_MAX, REVERSE_LINKS_RECORDS_PER_CALL, ROW_WEB_NOT_READY, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordChange, type RecordChangeAction, type RecordChangeResult, type RecordComment, type RecordDocument, type RecordEvent, type RecordFilter, type RecordGraphWritten, type RecordHeader, type RecordHistoryEntry, type RecordKeysetPage, type RecordPage, type RecordPageData, type RecordPageSort, type RecordRead, type RecordRevision, type RecordRowControls, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsChangeSink, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsHoldScope, type RecordsMerged, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, RecordsSeedProvider, type RecordsSeedProviderProps, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationDisplay, type RelationFlavor, type RelationIcons, type RelationNameIndex, type RelationNameMatch, type RelationNamesAnswer, type RelationProperties, type RelationTarget, type RelationWordsManyArgs, type ResolutionTriple, type ResolvedPublishBinding, type ResolvedPublishBindingKind, type RestorePreview, type RestoreResult, type RetiredActorWord, type RetypeBehaviour, type RetypePreview, type ReverseColumn, type ReverseLink, type ReverseLinks, type ReverseLinksManyArgs, type RowAction, type RowActionStep, type RowDefaultsApplied, type RowOf, type RowTemplateRow, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, SEED_FRESH_MS, SHOWN_TO_LABEL, SHOWN_TO_VALUES, SHOWN_TO_WHO_MAY_CHANGE, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, STATUS_GROUPS, STATUS_GROUP_WORDS, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, STORE_ROWS_CEILING, SYSTEM_WRITER_WORDS, type SavedViewColorBy, type SavedViewDefinition, type SavedViewLayout, type SavedViewRow, type SavedViewSpecIn, type ShownTo, type SourceArchived, type StagePending, type StagePendingOnBoard, type StageRuleEnforcement, type StageRuleOnFail, type StageRuleWarning, type StaleWriteDetail, type StatusGroup, type StorageMode, type StoreDoorName, type StoreFilter, type StoreInsertOf, type StoreRefusalCode, type StoreRowOf, type StoreRowSnapshot, type StoreTable, type StoreTableColumn, type StoreTableRows, type StoreTableSort, type StoreTableWhere, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_KIND_PREFIX, TABLE_ORIGINS, TABLE_TYPES, TO_ASSOCIATION, TO_CUSTOM_FIELDS, type Table, type TableArchiveProgress, type TableCapacity, type TableCopyInProgress, type TableDecorations, type TableDisplay, type TableDuplicateProgress, type TableDuplicated, type TableHome, type TableHomeDestination, type TableKindFacts, type TableListEntry, type TableMoved, type TableOrigin, type TablePlacement, type TablePlacementFact, type TableProposal, type TableRenderSchema, type TableRestoreProgress, type TableRowCount, type TableRowDefaults, type TableRowDefaultsPatch, type TableSchemaMode, type TableSyncResult, type TableSyncSource, type TableSyncSpec, type TableType, type TableWebhook, type TableWebhookDeclared, type Timestamp, type TypedChoiceDecision, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, type UniqueKeys, type UseAppTable, type UseAppTableOptions, type UseEntityBackLinks, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordOptions, type UseRecordPageOptions, type UseRecordPageState, type UseRecordsOptions, type UseRecordsState, type UseStoreTable, type UseTableArchive, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type ViewLayout, type ViewOrderSet, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprovalState, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDecideMany, type WorkDecideManyItem, type WorkDecideManyResult, type WorkDecideVerdict, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInboxView, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, actionRefusals, addressFromText, addressMapUrl, addressText, allowsOtherValues, archiveAppTableDeliberately, archiveTableRow, archivedByLine, archivedWhen, asChoiceNudge, asPermissionLevel, atLeast, bookingPath, callersTimeZone, checkAppTable, choiceSlug, choiceValuesOf, choicesOf, coerceTypedAnswer, coerceTypedAnswers, coercionLabel, decideTypedChoice, declareDrillDefinition, defineAppTable, drillAnswerOf, drillFindingKnob, durationText, emptyArchiveLine, emptyPortalArchiveLine, ensureAppTable, entityReferenceKinds, entityReferenceKindsOf, entityReferenceSearch, entityReferenceWords, entityRefsOf, entityRefsToWrite, err, exportPageXlsx, f, fieldKindFor, fieldKindOf, forgetAllOps, graduatedRow, graduationProblems, hasQuietHours, highestLevel, holdsARetiredChoice, indexedDbStore, isAddressValue, isArchiveLane, isDecided, isEntityReferenceConfig, isFoundation, isOwnOp, isPersonStamp, isPortalAccent, isPortalArchiveFilter, isRecordsErr, isRuleFilter, isShownTo, isTableKind, isTheChosen, keptGroups, keptOutOfSight, keptTableHref, liftWithheld, listAppRows, listTableRows, localeDateOrder, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, mintOpId, moveConsequence, moveInOrder, newerKindExportWords, newerKindOf, newerKindWords, offeredAsContext, ok, openCaptureQueue, optionKey, optionLabel, parseFieldDrift, parseTableCopiesInProgress, parseTableDuplicateProgress, parseTableDuplicated, parseTableHome, parseTableMoved, personStampText, portalArchiveConsequence, portalConfirmLine, portalPath, portalTitleTypedBack, previewRetype, previewRuleChange, publicFormPath, rankTypedMatches, ratingMaxOf, readTypedDate, readTypedDuration, readTypedNumber, readTypedTime, recordChangeTrigger, recordSourceKey, recordSourceTable, recordsCacheCounters, recordsUseSentence, rehomeSentence, relationNameIndexOf, relationNameKey, relationNamesIn, rememberedOpCount, removeAppRow, removedChoicesInUse, richTextPlain, rowFromDocument, ruleThatRefuses, rulesWithTopStar, safeLinkHref, sameDocument, scopeChip, sha256Hex, sheetSyncSpec, sourceArchivedOf, splitListCell, stableFilterKey, statusGroupOf, storeTable, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema, tableShapeChanged, twoDigitYear, typedDateText, typedMatchScore, typedTimeText, updateTableRow, upsertAppRow, useAppTable, useEntityBackLinks, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityReferenceKinds, useEntityReferenceSearch, useEntityReferenceWords, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordChangeRevision, useRecordMutation, useRecordPage, useRecords, useRecordsActor, useRecordsClient, useRecordsHold, useReverseColumns, useReverseLinks, useRowActions, useSeededAggregate, useSeededAnswer, useSeededAnswerAt, useSeededSource, useStoreTable, useTable, useTableArchive, useTables, valueConverts, withCallersClock, withRowCounts, withTablePlacement, writeTableRow };
@@ -34,6 +34,29 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
34
34
  function primeRecordPageBundle(input) {
35
35
  primeTablePageBundle({ organizationId: input.organizationId, tableId: `record:${input.recordId}`, answer: input.answer });
36
36
  }
37
+ var DOOR_REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-door-answers");
38
+ function doorRegistry() {
39
+ const g = globalThis;
40
+ return g[DOOR_REGISTRY] ??= /* @__PURE__ */ new Map();
41
+ }
42
+ var PRIMED_DOOR_TTL_MS = 1e4;
43
+ function primeDoorAnswer(key, data, at) {
44
+ doorRegistry().set(key, { data, at });
45
+ }
46
+ function takePrimedDoorAnswer(key) {
47
+ const registry2 = doorRegistry();
48
+ const held = registry2.get(key);
49
+ if (!held) return null;
50
+ if (Date.now() - held.at < PRIMED_DOOR_TTL_MS) return { data: held.data };
51
+ registry2.delete(key);
52
+ return null;
53
+ }
54
+ function dropPrimedDoorAnswers() {
55
+ doorRegistry().clear();
56
+ }
57
+ function isWritingDoor(door) {
58
+ return /(_declare|_set(_|$)|_update|_write|_delete|_restore|_archive|_upsert|_reparent|_change|_duplicate|_move|_decide|_run$|_submit|_publish|_import_|_start$|_complete|_sign$|_add$|_retire|_propose|_promote|_land$|_pin$|_mute|_snooze|_unsnooze|_clear|_unclear|_revoke|_issue|_bind|_unbind|_apply|_backfill|_sync$|_decorate|_designate|_ensure|^migrate_|^home_add|^capture_|^claim_|^record_stage|^anon_|^io_import_|^io_comment_resolve|^enrich_(declare|land|pin)|^field_(declare|duplicate|propose|restore|retire|update)|^table_(declare|ensure|from_example|move|sync)|^value_restore|^relation_own)/.test(door);
59
+ }
37
60
 
38
61
  // src/core/recordChanges.ts
39
62
  var listeners = /* @__PURE__ */ new Set();
@@ -4231,7 +4254,16 @@ function createRecordsClient(given) {
4231
4254
  bundleAsked.delete(tableId);
4232
4255
  for (const key of [...bundleParts.keys()]) if (key.includes(tableId)) bundleParts.delete(key);
4233
4256
  }
4257
+ function primedFor(door, args) {
4258
+ if (isWritingDoor(door)) {
4259
+ dropPrimedDoorAnswers();
4260
+ return null;
4261
+ }
4262
+ return takePrimedDoorAnswer(`${door}|${canonicalArgs(args)}`);
4263
+ }
4234
4264
  async function callDoor(door, args, where) {
4265
+ const primed = primedFor(door, args);
4266
+ if (primed) return ok(primed.data);
4235
4267
  const bundled = await fromBundle(door, args);
4236
4268
  if (bundled) return ok(bundled.data);
4237
4269
  if (!doorReady(config, door)) {
@@ -4256,6 +4288,8 @@ function createRecordsClient(given) {
4256
4288
  }
4257
4289
  async function owedDoor(door, args, where) {
4258
4290
  if (doorExists(door)) return callDoor(door, args, where);
4291
+ const primed = primedFor(door, args);
4292
+ if (primed) return ok(primed.data);
4259
4293
  const response = await config.dataSource.rpc(door, args, { schema });
4260
4294
  if (response.error) {
4261
4295
  const code = response.error.code;
@@ -4321,6 +4355,8 @@ function createRecordsClient(given) {
4321
4355
  return ok(response.data);
4322
4356
  }
4323
4357
  async function drillDoor(door, args, where) {
4358
+ const primed = primedFor(door, args);
4359
+ if (primed) return ok(primed.data);
4324
4360
  const response = await config.dataSource.rpc(door, args, { schema: DRILL_SCHEMA });
4325
4361
  if (response.error) {
4326
4362
  const refusal3 = mapPgError(response.error, where);
@@ -7576,7 +7612,7 @@ function useRecordsActor() {
7576
7612
  }
7577
7613
 
7578
7614
  // src/react/hooks.ts
7579
- import { use, useCallback, useEffect as useEffect3, useId, useMemo as useMemo2, useRef as useRef2, useState, useSyncExternalStore } from "react";
7615
+ import { use as use2, useCallback, useEffect as useEffect3, useId, useMemo as useMemo2, useRef as useRef2, useState, useSyncExternalStore } from "react";
7580
7616
 
7581
7617
  // src/react/dataCache.ts
7582
7618
  var RECORDS_CACHE_GRACE_MS = 3e4;
@@ -7766,7 +7802,7 @@ function recordsCacheCounters() {
7766
7802
  }
7767
7803
 
7768
7804
  // src/react/seed.tsx
7769
- import { createContext as createContext2, createElement as createElement2, useContext as useContext2, useEffect } from "react";
7805
+ import { createContext as createContext2, createElement as createElement2, use, useContext as useContext2, useEffect } from "react";
7770
7806
 
7771
7807
  // src/core/seed.ts
7772
7808
  var BUNDLE_DOORS = /* @__PURE__ */ new Set(["table_page_bundle", "record_page_bundle"]);
@@ -7832,8 +7868,22 @@ function storeFor(seed) {
7832
7868
  if (held) return held;
7833
7869
  const index = seedIndex(seed);
7834
7870
  const runs = /* @__PURE__ */ new Map();
7871
+ const sourceRuns = /* @__PURE__ */ new Map();
7835
7872
  const store = {
7836
7873
  live: true,
7874
+ at: seed.at,
7875
+ runSource(slot, run) {
7876
+ const asked = sourceRuns.get(slot);
7877
+ if (asked) return asked;
7878
+ const { source, missed } = seededDataSource(index);
7879
+ const stale = typeof seed.at !== "number" || Date.now() - seed.at > SEED_FRESH_MS;
7880
+ const outcome = Promise.resolve().then(() => run(source)).then(
7881
+ (answer) => answer.ok && !missed() ? { seeded: true, data: answer.data, stale } : { seeded: false },
7882
+ () => ({ seeded: false })
7883
+ );
7884
+ sourceRuns.set(slot, outcome);
7885
+ return outcome;
7886
+ },
7837
7887
  run(slot, run, config) {
7838
7888
  const asked = runs.get(slot);
7839
7889
  if (asked) return asked;
@@ -7851,6 +7901,7 @@ function storeFor(seed) {
7851
7901
  };
7852
7902
  stores.set(seed, store);
7853
7903
  if (typeof window !== "undefined") {
7904
+ for (const [key, data] of index) primeDoorAnswer(key, data, typeof seed.at === "number" ? seed.at : Date.now());
7854
7905
  for (const a of seed.answers) {
7855
7906
  const org = a.args["p_organization_id"];
7856
7907
  if (typeof org !== "string") continue;
@@ -7876,6 +7927,12 @@ function useSeedStore() {
7876
7927
  const store = useContext2(SeedContext);
7877
7928
  return store && store.live ? store : null;
7878
7929
  }
7930
+ function useSeededSource(key, run) {
7931
+ const store = useSeedStore();
7932
+ if (!store || key === null) return void 0;
7933
+ const outcome = use(store.runSource(key, run));
7934
+ return outcome.seeded ? { data: outcome.data, at: store.at } : void 0;
7935
+ }
7879
7936
 
7880
7937
  // src/react/hold.tsx
7881
7938
  import { createContext as createContext3, createElement as createElement3, useContext as useContext3, useEffect as useEffect2 } from "react";
@@ -7929,7 +7986,7 @@ function useAsync(run, key, live) {
7929
7986
  entry.client = client;
7930
7987
  const seed = useSeedStore();
7931
7988
  if (seed) {
7932
- const outcome = use(seed.run(`${identityOf(client)}|${key}`, run, client.config));
7989
+ const outcome = use2(seed.run(`${identityOf(client)}|${key}`, run, client.config));
7933
7990
  if (outcome.seeded && entry.snapshot.data === null && !entry.snapshot.error) seedEntry(entry, outcome.data, outcome.stale);
7934
7991
  }
7935
7992
  const snapshot = useSyncExternalStore(entry.subscribe, entry.getSnapshot, entry.getSnapshot);
@@ -7948,11 +8005,20 @@ function useAsync(run, key, live) {
7948
8005
  return { ...shown, reload, setData };
7949
8006
  }
7950
8007
  function useSeededAnswer(key, run) {
8008
+ return useSeededAnswerAt(key, run)?.data;
8009
+ }
8010
+ function useSeededAnswerAt(key, run) {
7951
8011
  const client = useRecordsClient();
7952
8012
  const seed = useSeedStore();
7953
8013
  if (!seed || key === null) return void 0;
7954
- const outcome = use(seed.run(`${identityOf(client)}|own:${key}`, run, client.config));
7955
- return outcome.seeded ? outcome.data : void 0;
8014
+ const outcome = use2(seed.run(`${identityOf(client)}|own:${key}`, run, client.config));
8015
+ return outcome.seeded ? { data: outcome.data, at: seed.at } : void 0;
8016
+ }
8017
+ function useSeededAggregate(tableId, spec) {
8018
+ return useSeededAnswer(
8019
+ tableId ? `aggregate:${tableId}:${JSON.stringify(spec)}` : null,
8020
+ (client) => client.recordAggregate({ table_id: tableId, ...spec })
8021
+ );
7956
8022
  }
7957
8023
  function serverEntry(run, client) {
7958
8024
  const entry = {
@@ -10724,7 +10790,7 @@ function useLive(alias, scope) {
10724
10790
  return acquireLive(qc, port, events, portKey, alias);
10725
10791
  }, [qc, port, events, portKey, alias]);
10726
10792
  }
10727
- function useDataRows(alias, query = {}, scope) {
10793
+ function useDataRows(alias, query = {}, scope, seed) {
10728
10794
  const { port, portKey } = useDataPort(scope);
10729
10795
  const qc = useRecordsQueryClient();
10730
10796
  useLive(alias, scope);
@@ -10735,7 +10801,8 @@ function useDataRows(alias, query = {}, scope) {
10735
10801
  queryFn: async ({ pageParam }) => unwrap(await port.list(alias, query, pageParam ?? void 0)),
10736
10802
  initialPageParam: null,
10737
10803
  getNextPageParam: (last) => last.cursor ?? void 0,
10738
- retry: retryable
10804
+ retry: retryable,
10805
+ ...seed ? { initialData: { pages: [seed.data], pageParams: [null] }, initialDataUpdatedAt: seed.at } : {}
10739
10806
  },
10740
10807
  qc
10741
10808
  );
@@ -12596,7 +12663,10 @@ export {
12596
12663
  useReverseColumns,
12597
12664
  useReverseLinks,
12598
12665
  useRowActions,
12666
+ useSeededAggregate,
12599
12667
  useSeededAnswer,
12668
+ useSeededAnswerAt,
12669
+ useSeededSource,
12600
12670
  useStoreTable,
12601
12671
  useTable,
12602
12672
  useTableArchive,