@ai-matrx/records 0.21.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -4102,6 +4102,128 @@ interface DashboardRunResult {
4102
4102
  blocks: DashboardBlockResult[];
4103
4103
  }
4104
4104
 
4105
+ /** Where one agent-written value came from. Interned once per save (VAL-1). */
4106
+ interface EnrichSource {
4107
+ kind?: string;
4108
+ field_id?: Uuid;
4109
+ model?: string;
4110
+ model_version?: string | null;
4111
+ instruction?: string;
4112
+ /** What was actually read, with addresses. Never invented by the model. */
4113
+ read?: Array<{
4114
+ url?: string;
4115
+ title?: string;
4116
+ at?: string;
4117
+ }>;
4118
+ note?: string;
4119
+ confidence?: number;
4120
+ at?: string;
4121
+ }
4122
+ /** One candidate the model did not commit to, with its rank and its own source. */
4123
+ interface EnrichAlternate {
4124
+ value: unknown;
4125
+ rank: number;
4126
+ source?: EnrichSource | null;
4127
+ }
4128
+ /** One cell, as `custom.enrich_cells` answers it. The badge is drawn from exactly this. */
4129
+ interface EnrichCell {
4130
+ record_id: Uuid;
4131
+ field_key: string;
4132
+ /** Whether a model owns this column at all. False means: draw no badge. */
4133
+ agent_owned: boolean;
4134
+ value: unknown;
4135
+ value_version: number | null;
4136
+ /** `user`, `agent` or `system` — VAL-8's closed vocabulary. */
4137
+ actor: string | null;
4138
+ /** The person an agent acted for. Always set when `actor` is `agent`. */
4139
+ on_behalf_of: string | null;
4140
+ written_at: string | null;
4141
+ source: EnrichSource | null;
4142
+ /** One of: "never asked", "none", "refused", "conflicting" (VAL-2). */
4143
+ absent_reason: string | null;
4144
+ alternates: EnrichAlternate[] | null;
4145
+ /** A person holds this cell against the model until they hand it back. */
4146
+ pinned: boolean;
4147
+ /** Past its freshness date. The value is still there — stale marks it, never erases it. */
4148
+ stale: boolean;
4149
+ due_at: string | null;
4150
+ }
4151
+ /** The enrichment itself, as it is stored on the Field. */
4152
+ interface Enrichment {
4153
+ instruction: string;
4154
+ inputs: string[];
4155
+ web_search?: boolean;
4156
+ connected_source?: string | null;
4157
+ model: string;
4158
+ confidence_floor: number;
4159
+ write_policy: "auto" | "ask";
4160
+ cost_cap_cents?: number;
4161
+ review_interval_days?: number | null;
4162
+ enabled: boolean;
4163
+ enabled_by?: string | null;
4164
+ enabled_at?: string | null;
4165
+ declared_by?: string | null;
4166
+ declared_at?: string | null;
4167
+ }
4168
+ /** One agent-owned column, with its freshness census and its money. */
4169
+ interface EnrichmentSummary {
4170
+ field_id: Uuid;
4171
+ table_id: Uuid;
4172
+ field_key: string;
4173
+ label: string;
4174
+ enrichment: Enrichment;
4175
+ enabled: boolean;
4176
+ review_interval_days: number | null;
4177
+ rows_total: number;
4178
+ rows_filled: number;
4179
+ rows_stale: number;
4180
+ rows_pinned: number;
4181
+ rows_absent: number;
4182
+ runs: number;
4183
+ cost_cents: number;
4184
+ cost_per_row_cents: number | null;
4185
+ last_run_at: string | null;
4186
+ last_run: Record<string, unknown> | null;
4187
+ }
4188
+ /** One record that needs this column filled in, with what the instruction may read. */
4189
+ interface EnrichDueRow {
4190
+ record_id: Uuid;
4191
+ title: string;
4192
+ inputs: Record<string, unknown>;
4193
+ current_value: unknown;
4194
+ written_at: string | null;
4195
+ /** "never filled in", or "past its freshness date — written N days ago…". */
4196
+ reason: string;
4197
+ /** Set when the ask was larger than the organization's batch ceiling. */
4198
+ trimmed_to: number | null;
4199
+ }
4200
+ /** What one run did, and what it cost. */
4201
+ interface EnrichRun {
4202
+ run_id: Uuid;
4203
+ field_id: Uuid | null;
4204
+ field_key: string | null;
4205
+ model: string | null;
4206
+ trigger_word: string | null;
4207
+ rows_seen: number;
4208
+ rows_written: number;
4209
+ rows_absent: number;
4210
+ rows_below_floor: number;
4211
+ rows_pinned: number;
4212
+ rows_refused: number;
4213
+ cost_cents: number;
4214
+ cost_per_row_cents: number | null;
4215
+ ran_at: string;
4216
+ }
4217
+ /** What `custom.enrich_declare` answers. `says` is a sentence for a person. */
4218
+ interface EnrichDeclared {
4219
+ field_id: Uuid;
4220
+ table_id: Uuid;
4221
+ field_key: string;
4222
+ label: string;
4223
+ enrichment: Enrichment;
4224
+ says: string;
4225
+ }
4226
+
4105
4227
  /** VAL-8's whole vocabulary. There is no fourth word. */
4106
4228
  type HistoryActorKind = "user" | "agent" | "system";
4107
4229
  /**
@@ -5378,4 +5500,4 @@ interface ConversationScopeContext {
5378
5500
  /** `About: Acme Industrial` — the chip a bound chat wears. */
5379
5501
  declare function scopeChip(scope: ConversationScope): string;
5380
5502
 
5381
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, 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 ChoiceOption, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, 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 MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PredictedRefusal, type ProvenancePointer, type PublishBinding, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationFlavor, type RelationProperties, type RelationTarget, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip };
5503
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, 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 ChoiceOption, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, 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 MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PredictedRefusal, type ProvenancePointer, type PublishBinding, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationFlavor, type RelationProperties, type RelationTarget, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip };
package/dist/index.d.ts CHANGED
@@ -4102,6 +4102,128 @@ interface DashboardRunResult {
4102
4102
  blocks: DashboardBlockResult[];
4103
4103
  }
4104
4104
 
4105
+ /** Where one agent-written value came from. Interned once per save (VAL-1). */
4106
+ interface EnrichSource {
4107
+ kind?: string;
4108
+ field_id?: Uuid;
4109
+ model?: string;
4110
+ model_version?: string | null;
4111
+ instruction?: string;
4112
+ /** What was actually read, with addresses. Never invented by the model. */
4113
+ read?: Array<{
4114
+ url?: string;
4115
+ title?: string;
4116
+ at?: string;
4117
+ }>;
4118
+ note?: string;
4119
+ confidence?: number;
4120
+ at?: string;
4121
+ }
4122
+ /** One candidate the model did not commit to, with its rank and its own source. */
4123
+ interface EnrichAlternate {
4124
+ value: unknown;
4125
+ rank: number;
4126
+ source?: EnrichSource | null;
4127
+ }
4128
+ /** One cell, as `custom.enrich_cells` answers it. The badge is drawn from exactly this. */
4129
+ interface EnrichCell {
4130
+ record_id: Uuid;
4131
+ field_key: string;
4132
+ /** Whether a model owns this column at all. False means: draw no badge. */
4133
+ agent_owned: boolean;
4134
+ value: unknown;
4135
+ value_version: number | null;
4136
+ /** `user`, `agent` or `system` — VAL-8's closed vocabulary. */
4137
+ actor: string | null;
4138
+ /** The person an agent acted for. Always set when `actor` is `agent`. */
4139
+ on_behalf_of: string | null;
4140
+ written_at: string | null;
4141
+ source: EnrichSource | null;
4142
+ /** One of: "never asked", "none", "refused", "conflicting" (VAL-2). */
4143
+ absent_reason: string | null;
4144
+ alternates: EnrichAlternate[] | null;
4145
+ /** A person holds this cell against the model until they hand it back. */
4146
+ pinned: boolean;
4147
+ /** Past its freshness date. The value is still there — stale marks it, never erases it. */
4148
+ stale: boolean;
4149
+ due_at: string | null;
4150
+ }
4151
+ /** The enrichment itself, as it is stored on the Field. */
4152
+ interface Enrichment {
4153
+ instruction: string;
4154
+ inputs: string[];
4155
+ web_search?: boolean;
4156
+ connected_source?: string | null;
4157
+ model: string;
4158
+ confidence_floor: number;
4159
+ write_policy: "auto" | "ask";
4160
+ cost_cap_cents?: number;
4161
+ review_interval_days?: number | null;
4162
+ enabled: boolean;
4163
+ enabled_by?: string | null;
4164
+ enabled_at?: string | null;
4165
+ declared_by?: string | null;
4166
+ declared_at?: string | null;
4167
+ }
4168
+ /** One agent-owned column, with its freshness census and its money. */
4169
+ interface EnrichmentSummary {
4170
+ field_id: Uuid;
4171
+ table_id: Uuid;
4172
+ field_key: string;
4173
+ label: string;
4174
+ enrichment: Enrichment;
4175
+ enabled: boolean;
4176
+ review_interval_days: number | null;
4177
+ rows_total: number;
4178
+ rows_filled: number;
4179
+ rows_stale: number;
4180
+ rows_pinned: number;
4181
+ rows_absent: number;
4182
+ runs: number;
4183
+ cost_cents: number;
4184
+ cost_per_row_cents: number | null;
4185
+ last_run_at: string | null;
4186
+ last_run: Record<string, unknown> | null;
4187
+ }
4188
+ /** One record that needs this column filled in, with what the instruction may read. */
4189
+ interface EnrichDueRow {
4190
+ record_id: Uuid;
4191
+ title: string;
4192
+ inputs: Record<string, unknown>;
4193
+ current_value: unknown;
4194
+ written_at: string | null;
4195
+ /** "never filled in", or "past its freshness date — written N days ago…". */
4196
+ reason: string;
4197
+ /** Set when the ask was larger than the organization's batch ceiling. */
4198
+ trimmed_to: number | null;
4199
+ }
4200
+ /** What one run did, and what it cost. */
4201
+ interface EnrichRun {
4202
+ run_id: Uuid;
4203
+ field_id: Uuid | null;
4204
+ field_key: string | null;
4205
+ model: string | null;
4206
+ trigger_word: string | null;
4207
+ rows_seen: number;
4208
+ rows_written: number;
4209
+ rows_absent: number;
4210
+ rows_below_floor: number;
4211
+ rows_pinned: number;
4212
+ rows_refused: number;
4213
+ cost_cents: number;
4214
+ cost_per_row_cents: number | null;
4215
+ ran_at: string;
4216
+ }
4217
+ /** What `custom.enrich_declare` answers. `says` is a sentence for a person. */
4218
+ interface EnrichDeclared {
4219
+ field_id: Uuid;
4220
+ table_id: Uuid;
4221
+ field_key: string;
4222
+ label: string;
4223
+ enrichment: Enrichment;
4224
+ says: string;
4225
+ }
4226
+
4105
4227
  /** VAL-8's whole vocabulary. There is no fourth word. */
4106
4228
  type HistoryActorKind = "user" | "agent" | "system";
4107
4229
  /**
@@ -5378,4 +5500,4 @@ interface ConversationScopeContext {
5378
5500
  /** `About: Acme Industrial` — the chip a bound chat wears. */
5379
5501
  declare function scopeChip(scope: ConversationScope): string;
5380
5502
 
5381
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, 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 ChoiceOption, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, 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 MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PredictedRefusal, type ProvenancePointer, type PublishBinding, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationFlavor, type RelationProperties, type RelationTarget, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip };
5503
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, COMPUTE_ON, CONTEXT_POLICIES, 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 ChoiceOption, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type Delivery, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, 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 MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PredictedRefusal, type ProvenancePointer, type PublishBinding, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationFlavor, type RelationProperties, type RelationTarget, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip };
@@ -1954,6 +1954,22 @@ var DOORS = {
1954
1954
  dashboardRun: "dashboard_run",
1955
1955
  dashboardStuck: "dashboard_stuck",
1956
1956
  dashboardDelete: "dashboard_delete",
1957
+ // PRODUCTS row 10 — "fill in each company's industry and headcount, and keep
1958
+ // it fresh". An Enrichment is not an object of its own: it is a Field saying
1959
+ // `source = agent`, with its instruction, inputs, model, confidence floor and
1960
+ // freshness in `source_config` (AGT-6). `enrichCells` is the one a GRID calls —
1961
+ // the badge data for a whole page in one round trip, because a badge asked per
1962
+ // cell is fifty round trips to draw fifty badges. `enrichPin` is the half of
1963
+ // this product that decides whether anybody ever trusts it: the moment a
1964
+ // person types over an agent-owned cell the store pins it, and the next run
1965
+ // leaves it exactly as they left it.
1966
+ enrichments: "enrichments",
1967
+ enrichDeclare: "enrich_declare",
1968
+ enrichDue: "enrich_due",
1969
+ enrichCells: "enrich_cells",
1970
+ enrichLand: "enrich_land",
1971
+ enrichPin: "enrich_pin",
1972
+ enrichRuns: "enrich_runs",
1957
1973
  // PRODUCTS row 4 — "Who changed this price, and can I put it back?" The
1958
1974
  // history has been in the store since W3-HIST; until 2026-09-20 the only way
1959
1975
  // to ask for it was `io_revisions`, which answers a raw uuid for the author
@@ -2863,6 +2879,67 @@ function createRecordsClient(config) {
2863
2879
  "ruleEval"
2864
2880
  );
2865
2881
  },
2882
+ async enrichments(args) {
2883
+ return callDoor(
2884
+ DOORS.enrichments,
2885
+ { p_organization_id: org, p_table_id: args?.table_id ?? null },
2886
+ "enrichments"
2887
+ );
2888
+ },
2889
+ async enrichDeclare(args) {
2890
+ return callDoor(
2891
+ DOORS.enrichDeclare,
2892
+ { p_organization_id: org, p_field_id: args.field_id, p_spec: args.spec },
2893
+ "enrichDeclare"
2894
+ );
2895
+ },
2896
+ async enrichDue(args) {
2897
+ return callDoor(
2898
+ DOORS.enrichDue,
2899
+ {
2900
+ p_organization_id: org,
2901
+ p_field_id: args.field_id,
2902
+ p_limit: args.limit ?? 50,
2903
+ p_include_fresh: args.include_fresh ?? false
2904
+ },
2905
+ "enrichDue"
2906
+ );
2907
+ },
2908
+ async enrichCells(args) {
2909
+ return callDoor(
2910
+ DOORS.enrichCells,
2911
+ {
2912
+ p_organization_id: org,
2913
+ p_table_id: args.table_id,
2914
+ p_field_keys: args.field_keys ?? null,
2915
+ p_record_ids: args.record_ids ?? null
2916
+ },
2917
+ "enrichCells"
2918
+ );
2919
+ },
2920
+ async enrichPin(args) {
2921
+ return callDoor(
2922
+ DOORS.enrichPin,
2923
+ {
2924
+ p_organization_id: org,
2925
+ p_record_id: args.record_id,
2926
+ p_field_key: args.field_key,
2927
+ p_pinned: args.pinned ?? true
2928
+ },
2929
+ "enrichPin"
2930
+ );
2931
+ },
2932
+ async enrichRuns(args) {
2933
+ return callDoor(
2934
+ DOORS.enrichRuns,
2935
+ {
2936
+ p_organization_id: org,
2937
+ p_field_id: args?.field_id ?? null,
2938
+ p_limit: args?.limit ?? 50
2939
+ },
2940
+ "enrichRuns"
2941
+ );
2942
+ },
2866
2943
  async dashboards(args) {
2867
2944
  return callDoor(
2868
2945
  DOORS.dashboards,