@ai-matrx/records 0.17.0 → 0.20.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.
@@ -1,5 +1,5 @@
1
- import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, FormSummary, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
2
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PortalPrincipal, PortalTableExposure, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath } from '../index.cjs';
1
+ import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, FormSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
2
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PortalPrincipal, PortalTableExposure, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.cjs';
3
3
 
4
4
  /**
5
5
  * DOOR-8. As-of on EITHER clock, and they are different questions:
@@ -272,6 +272,95 @@ interface RecordsClient {
272
272
  form_id?: Uuid | null;
273
273
  slug?: string | null;
274
274
  }): Promise<RecordsResult<Uuid>>;
275
+ /**
276
+ * What the store makes of a file's columns, before anything is written.
277
+ * `columns` is `[{header, samples}]` — the first page of the file is plenty.
278
+ */
279
+ importPlan(args: {
280
+ table_id: Uuid;
281
+ columns: Array<{
282
+ header: string;
283
+ samples: unknown[];
284
+ }>;
285
+ }): Promise<RecordsResult<ImportPlan>>;
286
+ /**
287
+ * Open a run. `file_hash` is the run's IDENTITY: the same bytes into the same
288
+ * table a second time answer the FIRST run with `already: true` and write
289
+ * nothing, so a re-import doubles nothing. `force` re-opens deliberately.
290
+ */
291
+ importBegin(args: {
292
+ table_id: Uuid;
293
+ format?: "csv" | "xlsx";
294
+ source_name?: string | null;
295
+ source_columns?: unknown[];
296
+ file_hash?: string | null;
297
+ policy?: ImportPolicy;
298
+ /** A Field key. A row whose value for it is already here is a duplicate. */
299
+ dedupe_key?: string | null;
300
+ file_bytes?: number | null;
301
+ force?: boolean;
302
+ }): Promise<RecordsResult<ImportOpened>>;
303
+ /**
304
+ * One BATCH of rows. Every row is written through the ONE write door inside
305
+ * its own subtransaction, so a refused row leaves nothing behind and never
306
+ * costs the rows before it. Send a few hundred at a time.
307
+ */
308
+ importRows(args: {
309
+ import_id: Uuid;
310
+ rows: Array<Record<string, unknown>>;
311
+ /** Header -> Field key. A header that already spells a key needs no entry. */
312
+ mapping?: Record<string, string>;
313
+ }): Promise<RecordsResult<ImportBatchResult>>;
314
+ /**
315
+ * Close the run and decide the columns the file had and the table did not:
316
+ * `propose` (the ONE approvals inbox, and the only choice a non-admin has),
317
+ * `create` (an admin adds them outright) or `ignore`.
318
+ */
319
+ importFinish(args: {
320
+ import_id: Uuid;
321
+ unmapped?: "propose" | "create" | "ignore";
322
+ }): Promise<RecordsResult<ImportFinished>>;
323
+ /** The refused rows, or the ones already here, WITH the source row on each. */
324
+ importReport(args: {
325
+ import_id: Uuid;
326
+ state?: "refused" | "duplicate";
327
+ limit?: number;
328
+ offset?: number;
329
+ }): Promise<RecordsResult<ImportReport>>;
330
+ /** This organization's import runs, newest first. How you find yesterday's. */
331
+ imports(args?: {
332
+ table_id?: Uuid | null;
333
+ limit?: number;
334
+ }): Promise<RecordsResult<ImportRun[]>>;
335
+ /**
336
+ * Forget the RECEIPT for a file so the same bytes can be imported again
337
+ * deliberately. Never touches the records that import wrote.
338
+ */
339
+ importForget(args: {
340
+ import_id: Uuid;
341
+ }): Promise<RecordsResult<boolean>>;
342
+ /**
343
+ * Give a table its own address. The answer carries `mail_route`: the one
344
+ * sentence saying what has to exist in DNS before anything arrives. Show it
345
+ * wherever the address is shown — an address that silently swallows mail is
346
+ * the failure this whole door is against.
347
+ */
348
+ inboundDeclare(args: {
349
+ table_id: Uuid;
350
+ label?: string | null;
351
+ }): Promise<RecordsResult<InboundDeclared>>;
352
+ inboundAddresses(args?: {
353
+ table_id?: Uuid | null;
354
+ }): Promise<RecordsResult<InboundAddress[]>>;
355
+ inboundSet(args: {
356
+ inbound_id: Uuid;
357
+ enabled: boolean;
358
+ }): Promise<RecordsResult<{
359
+ inbound_id: Uuid;
360
+ address: string;
361
+ enabled: boolean;
362
+ message: string;
363
+ }>>;
275
364
  /** Every portal over this organization the caller may know about, with its numbers. */
276
365
  portals(): Promise<RecordsResult<PortalSummary[]>>;
277
366
  /** ONE portal in full: what it shows, and who it was opened to. */
@@ -496,6 +585,115 @@ interface RecordsClient {
496
585
  revisions(args: {
497
586
  record_id: Uuid;
498
587
  }): Promise<RecordsResult<RecordRevision[]>>;
588
+ /**
589
+ * PRODUCTS row 4. One record's version list, newest first: who (a person, or
590
+ * an agent AND the person it acted for), when, the operation in the word
591
+ * somebody used, and every field that moved with its before, its after, the
592
+ * Rule version that produced a derived value and its source pointer. Viewer
593
+ * on the record — reading how something got to be the way it is is reading.
594
+ */
595
+ recordHistory(args: {
596
+ record_id: Uuid;
597
+ limit?: number;
598
+ offset?: number;
599
+ }): Promise<RecordsResult<RecordHistoryEntry[]>>;
600
+ /**
601
+ * AGT-N-9 — EVERYTHING A CHAT OPENED ON THIS RECORD MAY KNOW, IN ONE ROUND TRIP.
602
+ *
603
+ * The Fields with their `(record, field, value version)` triples, the relations one hop
604
+ * out, the history, the comments and the Table's other records — assembled INSIDE the
605
+ * database, every piece through the read door, under this person's own field-level
606
+ * security. A Field the store masks comes back in `withheld` with the store's own
607
+ * sentence and no value; a Field the organization keeps out of conversations comes back
608
+ * there too, saying which of the two it is.
609
+ */
610
+ recordScopeContext(args: {
611
+ record_id: Uuid;
612
+ relations?: number;
613
+ history?: number;
614
+ siblings?: number;
615
+ }): Promise<RecordsResult<RecordScopeContext>>;
616
+ /** What is this conversation about? */
617
+ conversationScope(args: {
618
+ conversation_id: Uuid;
619
+ }): Promise<RecordsResult<ConversationScope>>;
620
+ /** Point a conversation at one record. Refused unless this person may open it. */
621
+ conversationScopeBind(args: {
622
+ conversation_id: Uuid;
623
+ record_id: Uuid;
624
+ }): Promise<RecordsResult<ConversationScope>>;
625
+ /** This conversation is no longer about a particular record. */
626
+ conversationScopeUnbind(args: {
627
+ conversation_id: Uuid;
628
+ }): Promise<RecordsResult<ConversationScope>>;
629
+ /** The binding AND the context of a bound conversation, in one round trip. */
630
+ conversationScopeContext(args: {
631
+ conversation_id: Uuid;
632
+ relations?: number;
633
+ history?: number;
634
+ siblings?: number;
635
+ }): Promise<RecordsResult<ConversationScopeContext>>;
636
+ /**
637
+ * "Who changed the price on ANY record?" One column's history across a whole
638
+ * Table, narrowed to the records this person may see by a predicate in the
639
+ * same statement. A column that names no Field is refused BY NAME, never
640
+ * answered empty.
641
+ */
642
+ fieldHistory(args: {
643
+ table_id: Uuid;
644
+ field_key: string;
645
+ limit?: number;
646
+ offset?: number;
647
+ record_id?: Uuid;
648
+ }): Promise<RecordsResult<FieldHistoryEntry[]>>;
649
+ /**
650
+ * WHAT A RESTORE WOULD CHANGE, BEFORE IT DOES. Editor on the record: this is
651
+ * the first half of an act, and somebody who may not perform it is not shown
652
+ * its preview. Pass `field_key` for one column.
653
+ */
654
+ restorePreview(args: {
655
+ record_id: Uuid;
656
+ version: number;
657
+ field_key?: string;
658
+ }): Promise<RecordsResult<RestorePreview>>;
659
+ /** Put the whole record back to a version, as a NEW version. Editor. */
660
+ restoreVersion(args: {
661
+ record_id: Uuid;
662
+ version: number;
663
+ }): Promise<RecordsResult<RestoreResult>>;
664
+ /** Put ONE column back to what it said at a version, as a NEW version (HIS-N-2). Editor. */
665
+ valueRestore(args: {
666
+ record_id: Uuid;
667
+ field_key: string;
668
+ version: number;
669
+ }): Promise<RecordsResult<RestoreResult>>;
670
+ /**
671
+ * SCR-18. The record's comment thread with everybody named, plus what THIS
672
+ * person may do in it — decided by the store, in the same call, so a screen
673
+ * never draws a composer the write door will refuse.
674
+ */
675
+ commentThread(args: {
676
+ record_id: Uuid;
677
+ include_resolved?: boolean;
678
+ }): Promise<RecordsResult<CommentThreadRead>>;
679
+ /**
680
+ * Write a comment at the `commenter` rung, optionally naming people. A
681
+ * mention is a reference and not a regex over the body: the ids come from the
682
+ * picker and the store refuses one who is not in the organization, or who
683
+ * cannot open the record — because that notification would be a dead end.
684
+ */
685
+ commentWrite(args: {
686
+ record_id: Uuid;
687
+ body: string;
688
+ field_key?: string;
689
+ parent_comment_id?: Uuid;
690
+ mentions?: Uuid[];
691
+ }): Promise<RecordsResult<CommentWritten>>;
692
+ /** Resolve (or re-open) a thread. `commenter` — resolution is not a delete. */
693
+ commentResolve(args: {
694
+ comment_id: Uuid;
695
+ resolved?: boolean;
696
+ }): Promise<RecordsResult<boolean>>;
499
697
  /**
500
698
  * Every value of one record WITH its envelope — its own version, who wrote
501
699
  * it, who they were acting for and when. The timeline IS the record (REC-19);
@@ -859,6 +1057,17 @@ declare const DOORS: {
859
1057
  readonly ruleEval: "rule_eval";
860
1058
  readonly forms: "forms";
861
1059
  readonly formDeclare: "form_declare";
1060
+ readonly importPlan: "io_import_plan";
1061
+ readonly importBegin: "io_import_begin";
1062
+ readonly importRows: "io_import_rows";
1063
+ readonly importFinish: "io_import_finish";
1064
+ readonly importReport: "io_import_report";
1065
+ readonly imports: "io_imports";
1066
+ readonly importForget: "io_import_forget";
1067
+ readonly inferColumn: "io_infer_column";
1068
+ readonly inboundDeclare: "inbound_declare";
1069
+ readonly inboundAddresses: "inbound_addresses";
1070
+ readonly inboundSet: "inbound_set";
862
1071
  readonly portals: "portals";
863
1072
  readonly portalCard: "portal_card";
864
1073
  readonly portalDeclare: "portal_declare";
@@ -870,6 +1079,19 @@ declare const DOORS: {
870
1079
  readonly dashboardRun: "dashboard_run";
871
1080
  readonly dashboardStuck: "dashboard_stuck";
872
1081
  readonly dashboardDelete: "dashboard_delete";
1082
+ readonly recordHistory: "record_history";
1083
+ readonly fieldHistory: "field_history";
1084
+ readonly restorePreview: "record_restore_preview";
1085
+ readonly restoreVersion: "record_restore_version";
1086
+ readonly valueRestore: "value_restore";
1087
+ readonly recordScopeContext: "record_scope_context";
1088
+ readonly conversationScope: "conversation_scope";
1089
+ readonly conversationScopeBind: "conversation_scope_bind";
1090
+ readonly conversationScopeUnbind: "conversation_scope_unbind";
1091
+ readonly conversationScopeContext: "conversation_scope_context";
1092
+ readonly commentThread: "comment_thread";
1093
+ readonly commentWrite: "comment_write";
1094
+ readonly commentResolve: "io_comment_resolve";
873
1095
  readonly recordAggregate: "record_aggregate";
874
1096
  readonly aggOperations: "agg_operations";
875
1097
  readonly aggBuckets: "agg_buckets";
@@ -1047,4 +1269,4 @@ declare function parseCsv(text: string): string[][];
1047
1269
  declare function importCsv(fields: Field[], text: string): ParsedImport;
1048
1270
  declare function importXlsx(fields: Field[], bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
1049
1271
 
1050
- export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldPatch, FieldProposal, FormSummary, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, StuckRow, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
1272
+ export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldHistoryEntry, FieldPatch, FieldProposal, FormSummary, ImportBatchResult, ImportFinished, ImportOpened, ImportPlan, ImportPolicy, ImportReport, ImportRun, InboundAddress, InboundDeclared, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, RecordHistoryEntry, type RecordQuery, RecordRead, RecordRevision, RecordScopeContext, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, RestorePreview, RestoreResult, StaleWriteDetail, StoredRecord, StuckRow, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
@@ -1,5 +1,5 @@
1
- import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, FormSummary, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
2
- export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PortalPrincipal, PortalTableExposure, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath } from '../index.js';
1
+ import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, FormSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
2
+ export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PortalPrincipal, PortalTableExposure, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.js';
3
3
 
4
4
  /**
5
5
  * DOOR-8. As-of on EITHER clock, and they are different questions:
@@ -272,6 +272,95 @@ interface RecordsClient {
272
272
  form_id?: Uuid | null;
273
273
  slug?: string | null;
274
274
  }): Promise<RecordsResult<Uuid>>;
275
+ /**
276
+ * What the store makes of a file's columns, before anything is written.
277
+ * `columns` is `[{header, samples}]` — the first page of the file is plenty.
278
+ */
279
+ importPlan(args: {
280
+ table_id: Uuid;
281
+ columns: Array<{
282
+ header: string;
283
+ samples: unknown[];
284
+ }>;
285
+ }): Promise<RecordsResult<ImportPlan>>;
286
+ /**
287
+ * Open a run. `file_hash` is the run's IDENTITY: the same bytes into the same
288
+ * table a second time answer the FIRST run with `already: true` and write
289
+ * nothing, so a re-import doubles nothing. `force` re-opens deliberately.
290
+ */
291
+ importBegin(args: {
292
+ table_id: Uuid;
293
+ format?: "csv" | "xlsx";
294
+ source_name?: string | null;
295
+ source_columns?: unknown[];
296
+ file_hash?: string | null;
297
+ policy?: ImportPolicy;
298
+ /** A Field key. A row whose value for it is already here is a duplicate. */
299
+ dedupe_key?: string | null;
300
+ file_bytes?: number | null;
301
+ force?: boolean;
302
+ }): Promise<RecordsResult<ImportOpened>>;
303
+ /**
304
+ * One BATCH of rows. Every row is written through the ONE write door inside
305
+ * its own subtransaction, so a refused row leaves nothing behind and never
306
+ * costs the rows before it. Send a few hundred at a time.
307
+ */
308
+ importRows(args: {
309
+ import_id: Uuid;
310
+ rows: Array<Record<string, unknown>>;
311
+ /** Header -> Field key. A header that already spells a key needs no entry. */
312
+ mapping?: Record<string, string>;
313
+ }): Promise<RecordsResult<ImportBatchResult>>;
314
+ /**
315
+ * Close the run and decide the columns the file had and the table did not:
316
+ * `propose` (the ONE approvals inbox, and the only choice a non-admin has),
317
+ * `create` (an admin adds them outright) or `ignore`.
318
+ */
319
+ importFinish(args: {
320
+ import_id: Uuid;
321
+ unmapped?: "propose" | "create" | "ignore";
322
+ }): Promise<RecordsResult<ImportFinished>>;
323
+ /** The refused rows, or the ones already here, WITH the source row on each. */
324
+ importReport(args: {
325
+ import_id: Uuid;
326
+ state?: "refused" | "duplicate";
327
+ limit?: number;
328
+ offset?: number;
329
+ }): Promise<RecordsResult<ImportReport>>;
330
+ /** This organization's import runs, newest first. How you find yesterday's. */
331
+ imports(args?: {
332
+ table_id?: Uuid | null;
333
+ limit?: number;
334
+ }): Promise<RecordsResult<ImportRun[]>>;
335
+ /**
336
+ * Forget the RECEIPT for a file so the same bytes can be imported again
337
+ * deliberately. Never touches the records that import wrote.
338
+ */
339
+ importForget(args: {
340
+ import_id: Uuid;
341
+ }): Promise<RecordsResult<boolean>>;
342
+ /**
343
+ * Give a table its own address. The answer carries `mail_route`: the one
344
+ * sentence saying what has to exist in DNS before anything arrives. Show it
345
+ * wherever the address is shown — an address that silently swallows mail is
346
+ * the failure this whole door is against.
347
+ */
348
+ inboundDeclare(args: {
349
+ table_id: Uuid;
350
+ label?: string | null;
351
+ }): Promise<RecordsResult<InboundDeclared>>;
352
+ inboundAddresses(args?: {
353
+ table_id?: Uuid | null;
354
+ }): Promise<RecordsResult<InboundAddress[]>>;
355
+ inboundSet(args: {
356
+ inbound_id: Uuid;
357
+ enabled: boolean;
358
+ }): Promise<RecordsResult<{
359
+ inbound_id: Uuid;
360
+ address: string;
361
+ enabled: boolean;
362
+ message: string;
363
+ }>>;
275
364
  /** Every portal over this organization the caller may know about, with its numbers. */
276
365
  portals(): Promise<RecordsResult<PortalSummary[]>>;
277
366
  /** ONE portal in full: what it shows, and who it was opened to. */
@@ -496,6 +585,115 @@ interface RecordsClient {
496
585
  revisions(args: {
497
586
  record_id: Uuid;
498
587
  }): Promise<RecordsResult<RecordRevision[]>>;
588
+ /**
589
+ * PRODUCTS row 4. One record's version list, newest first: who (a person, or
590
+ * an agent AND the person it acted for), when, the operation in the word
591
+ * somebody used, and every field that moved with its before, its after, the
592
+ * Rule version that produced a derived value and its source pointer. Viewer
593
+ * on the record — reading how something got to be the way it is is reading.
594
+ */
595
+ recordHistory(args: {
596
+ record_id: Uuid;
597
+ limit?: number;
598
+ offset?: number;
599
+ }): Promise<RecordsResult<RecordHistoryEntry[]>>;
600
+ /**
601
+ * AGT-N-9 — EVERYTHING A CHAT OPENED ON THIS RECORD MAY KNOW, IN ONE ROUND TRIP.
602
+ *
603
+ * The Fields with their `(record, field, value version)` triples, the relations one hop
604
+ * out, the history, the comments and the Table's other records — assembled INSIDE the
605
+ * database, every piece through the read door, under this person's own field-level
606
+ * security. A Field the store masks comes back in `withheld` with the store's own
607
+ * sentence and no value; a Field the organization keeps out of conversations comes back
608
+ * there too, saying which of the two it is.
609
+ */
610
+ recordScopeContext(args: {
611
+ record_id: Uuid;
612
+ relations?: number;
613
+ history?: number;
614
+ siblings?: number;
615
+ }): Promise<RecordsResult<RecordScopeContext>>;
616
+ /** What is this conversation about? */
617
+ conversationScope(args: {
618
+ conversation_id: Uuid;
619
+ }): Promise<RecordsResult<ConversationScope>>;
620
+ /** Point a conversation at one record. Refused unless this person may open it. */
621
+ conversationScopeBind(args: {
622
+ conversation_id: Uuid;
623
+ record_id: Uuid;
624
+ }): Promise<RecordsResult<ConversationScope>>;
625
+ /** This conversation is no longer about a particular record. */
626
+ conversationScopeUnbind(args: {
627
+ conversation_id: Uuid;
628
+ }): Promise<RecordsResult<ConversationScope>>;
629
+ /** The binding AND the context of a bound conversation, in one round trip. */
630
+ conversationScopeContext(args: {
631
+ conversation_id: Uuid;
632
+ relations?: number;
633
+ history?: number;
634
+ siblings?: number;
635
+ }): Promise<RecordsResult<ConversationScopeContext>>;
636
+ /**
637
+ * "Who changed the price on ANY record?" One column's history across a whole
638
+ * Table, narrowed to the records this person may see by a predicate in the
639
+ * same statement. A column that names no Field is refused BY NAME, never
640
+ * answered empty.
641
+ */
642
+ fieldHistory(args: {
643
+ table_id: Uuid;
644
+ field_key: string;
645
+ limit?: number;
646
+ offset?: number;
647
+ record_id?: Uuid;
648
+ }): Promise<RecordsResult<FieldHistoryEntry[]>>;
649
+ /**
650
+ * WHAT A RESTORE WOULD CHANGE, BEFORE IT DOES. Editor on the record: this is
651
+ * the first half of an act, and somebody who may not perform it is not shown
652
+ * its preview. Pass `field_key` for one column.
653
+ */
654
+ restorePreview(args: {
655
+ record_id: Uuid;
656
+ version: number;
657
+ field_key?: string;
658
+ }): Promise<RecordsResult<RestorePreview>>;
659
+ /** Put the whole record back to a version, as a NEW version. Editor. */
660
+ restoreVersion(args: {
661
+ record_id: Uuid;
662
+ version: number;
663
+ }): Promise<RecordsResult<RestoreResult>>;
664
+ /** Put ONE column back to what it said at a version, as a NEW version (HIS-N-2). Editor. */
665
+ valueRestore(args: {
666
+ record_id: Uuid;
667
+ field_key: string;
668
+ version: number;
669
+ }): Promise<RecordsResult<RestoreResult>>;
670
+ /**
671
+ * SCR-18. The record's comment thread with everybody named, plus what THIS
672
+ * person may do in it — decided by the store, in the same call, so a screen
673
+ * never draws a composer the write door will refuse.
674
+ */
675
+ commentThread(args: {
676
+ record_id: Uuid;
677
+ include_resolved?: boolean;
678
+ }): Promise<RecordsResult<CommentThreadRead>>;
679
+ /**
680
+ * Write a comment at the `commenter` rung, optionally naming people. A
681
+ * mention is a reference and not a regex over the body: the ids come from the
682
+ * picker and the store refuses one who is not in the organization, or who
683
+ * cannot open the record — because that notification would be a dead end.
684
+ */
685
+ commentWrite(args: {
686
+ record_id: Uuid;
687
+ body: string;
688
+ field_key?: string;
689
+ parent_comment_id?: Uuid;
690
+ mentions?: Uuid[];
691
+ }): Promise<RecordsResult<CommentWritten>>;
692
+ /** Resolve (or re-open) a thread. `commenter` — resolution is not a delete. */
693
+ commentResolve(args: {
694
+ comment_id: Uuid;
695
+ resolved?: boolean;
696
+ }): Promise<RecordsResult<boolean>>;
499
697
  /**
500
698
  * Every value of one record WITH its envelope — its own version, who wrote
501
699
  * it, who they were acting for and when. The timeline IS the record (REC-19);
@@ -859,6 +1057,17 @@ declare const DOORS: {
859
1057
  readonly ruleEval: "rule_eval";
860
1058
  readonly forms: "forms";
861
1059
  readonly formDeclare: "form_declare";
1060
+ readonly importPlan: "io_import_plan";
1061
+ readonly importBegin: "io_import_begin";
1062
+ readonly importRows: "io_import_rows";
1063
+ readonly importFinish: "io_import_finish";
1064
+ readonly importReport: "io_import_report";
1065
+ readonly imports: "io_imports";
1066
+ readonly importForget: "io_import_forget";
1067
+ readonly inferColumn: "io_infer_column";
1068
+ readonly inboundDeclare: "inbound_declare";
1069
+ readonly inboundAddresses: "inbound_addresses";
1070
+ readonly inboundSet: "inbound_set";
862
1071
  readonly portals: "portals";
863
1072
  readonly portalCard: "portal_card";
864
1073
  readonly portalDeclare: "portal_declare";
@@ -870,6 +1079,19 @@ declare const DOORS: {
870
1079
  readonly dashboardRun: "dashboard_run";
871
1080
  readonly dashboardStuck: "dashboard_stuck";
872
1081
  readonly dashboardDelete: "dashboard_delete";
1082
+ readonly recordHistory: "record_history";
1083
+ readonly fieldHistory: "field_history";
1084
+ readonly restorePreview: "record_restore_preview";
1085
+ readonly restoreVersion: "record_restore_version";
1086
+ readonly valueRestore: "value_restore";
1087
+ readonly recordScopeContext: "record_scope_context";
1088
+ readonly conversationScope: "conversation_scope";
1089
+ readonly conversationScopeBind: "conversation_scope_bind";
1090
+ readonly conversationScopeUnbind: "conversation_scope_unbind";
1091
+ readonly conversationScopeContext: "conversation_scope_context";
1092
+ readonly commentThread: "comment_thread";
1093
+ readonly commentWrite: "comment_write";
1094
+ readonly commentResolve: "io_comment_resolve";
873
1095
  readonly recordAggregate: "record_aggregate";
874
1096
  readonly aggOperations: "agg_operations";
875
1097
  readonly aggBuckets: "agg_buckets";
@@ -1047,4 +1269,4 @@ declare function parseCsv(text: string): string[][];
1047
1269
  declare function importCsv(fields: Field[], text: string): ParsedImport;
1048
1270
  declare function importXlsx(fields: Field[], bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
1049
1271
 
1050
- export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldPatch, FieldProposal, FormSummary, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, StuckRow, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
1272
+ export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldHistoryEntry, FieldPatch, FieldProposal, FormSummary, ImportBatchResult, ImportFinished, ImportOpened, ImportPlan, ImportPolicy, ImportReport, ImportRun, InboundAddress, InboundDeclared, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, RecordHistoryEntry, type RecordQuery, RecordRead, RecordRevision, RecordScopeContext, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, RestorePreview, RestoreResult, StaleWriteDetail, StoredRecord, StuckRow, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };