@ai-matrx/records 0.30.0 → 0.37.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,7 +1,7 @@
1
- import { g as Timestamp, U as Uuid, h as RecordDocument, i as RecordRead, j as ReadRow, k as Field, l as StoredRecord, N as NewFieldDeclaration, m as FieldPatch, n as RecordRevision, o as ReadValue, p as FieldProposal, q as TableProposal } from '../field-D08d_e7R.cjs';
2
- export { A as ABSENCE_REASONS, r as ACTOR_VOCABULARY, s as AbsenceReason, t as Actor, u as COMPUTE_ON, v as CONTEXT_POLICIES, C as ComputeOn, e as ContextPolicy, D as DELIVERIES, w as Delivery, E as ENTITY_TOKENS, x as EntityToken, y as FIELD_SENSITIVITIES, z as FIELD_SOURCES, B as FRESHNESS, G as FieldBehavior, c as FieldRule, d as FieldSensitivity, b as FieldSource, F as FieldTypeWord, H as Freshness, I as HiddenFieldNotice, K as KERNEL_TABLES, J as KernelTableName, M as MERGE_FIELD_MODIFIERS, L as MERGE_FIELD_SEMANTIC_TYPES, P as MERGE_FIELD_SOURCES, Q as MergeFieldModifier, V as MergeFieldSemanticType, W as MergeFieldSource, X as ON_DELETE, Y as OVERRIDE_POLICIES, O as OnDelete, Z as OverridePolicy, _ as PARITY_FIELD_TYPES, $ as PER_VALUE_ACCESS_WORDS, a0 as ParityFieldType, a1 as ParityFieldTypeDescriptor, a2 as PerValueAccessWord, a3 as ProvenancePointer, a4 as RELATION_BINDINGS, a5 as RELATION_CARDINALITIES, a6 as RELATION_FLAVORS, a7 as RETIRED_ACTOR_WORDS, a8 as RULE_NODE_KINDS, a9 as RULE_USES, aa as RelationBinding, f as RelationCardinality, R as RelationFlavor, ab as RetiredActorWord, ac as RuleNodeKind, ad as RuleUse, ae as STORAGE_MODES, af as STORE_DOORS, ag as STORE_KNOBS, ah as STORE_REFUSAL_CODES, S as StorageMode, ai as StoreDoorName, aj as StoreRefusalCode, ak as TABLE_DISPLAYS, al as TABLE_ORIGINS, am as TABLE_TYPES, a as TableDisplay, an as TableOrigin, T as TableType, ao as VALUE_ALTERNATE_KEYS, ap as VALUE_ENVELOPE_KEYS, aq as ValueAlternate, ar as ValueAlternateKey, as as ValueEnvelope, at as ValueEnvelopeKey, au as ValueSource } from '../field-D08d_e7R.cjs';
3
- import { RelationCoordinate, RecordsConfig, RecordsResult, Table, TableCapacity, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, Pipeline, PipelineColumn, PipelineVerdict, PipelineSpec, PipelineDeclared, FormSummary, BookingSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
4
- export { AggregateOperation, AggregateWindow, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, CustomFieldTableType, DashboardBlockKind, DashboardBlockResult, DocSignatureCheck, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, ForbiddenEnvelopeWord, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, PERMISSION_LEVELS, PIPELINE_RULE_KINDS, PermissionLevel, PipelineMissingField, PipelineRule, PipelineRuleKind, PipelineStage, PortalPrincipal, PortalTableExposure, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationCarries, RelationProperties, RelationTarget, ResolutionTriple, Rule, RuleAnswer, RuleExpression, SubscriptionBlock, SubscriptionCadence, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.cjs';
1
+ import { g as Timestamp, U as Uuid, h as RecordDocument, i as RecordsResult, j as RecordRead, k as ReadRow, l as Field, m as StoredRecord, N as NewFieldDeclaration, n as FieldPatch, o as RecordRevision, p as ReadValue, q as FieldProposal, r as TableProposal, s as RecordsError, W as WriteConflict, P as PgError, t as StaleWriteDetail, u as PredictedRefusal } from '../field-CWBdZfFv.cjs';
2
+ export { A as ABSENCE_REASONS, v as ACTOR_VOCABULARY, w as AbsenceReason, x as Actor, y as COMPUTE_ON, z as CONTEXT_POLICIES, C as ComputeOn, e as ContextPolicy, D as DELIVERIES, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, H as FIELD_SENSITIVITIES, I as FIELD_SOURCES, J as FRESHNESS, K as FieldBehavior, c as FieldRule, d as FieldSensitivity, b as FieldSource, F as FieldTypeWord, L as ForbiddenEnvelopeWord, M as Freshness, Q as HiddenFieldNotice, V as KERNEL_TABLES, X as KernelTableName, Y as MERGE_FIELD_MODIFIERS, Z as MERGE_FIELD_SEMANTIC_TYPES, _ as MERGE_FIELD_SOURCES, $ as MergeFieldModifier, a0 as MergeFieldSemanticType, a1 as MergeFieldSource, a2 as ON_DELETE, a3 as OVERRIDE_POLICIES, O as OnDelete, a4 as OverridePolicy, a5 as PARITY_FIELD_TYPES, a6 as PER_VALUE_ACCESS_WORDS, a7 as ParityFieldType, a8 as ParityFieldTypeDescriptor, a9 as PerValueAccessWord, aa as ProvenancePointer, ab as RELATION_BINDINGS, ac as RELATION_CARDINALITIES, ad as RELATION_FLAVORS, ae as RETIRED_ACTOR_WORDS, af as RULE_NODE_KINDS, ag as RULE_USES, ah as RecordsErrorCode, ai as RelationBinding, f as RelationCardinality, R as RelationFlavor, aj as RetiredActorWord, ak as RuleNodeKind, al as RuleUse, am as STORAGE_MODES, an as STORE_DOORS, ao as STORE_KNOBS, ap as STORE_REFUSAL_CODES, S as StorageMode, aq as StoreDoorName, ar as StoreRefusalCode, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, a as TableDisplay, av as TableOrigin, T as TableType, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as err, aE as isRecordsErr, aF as ok } from '../field-CWBdZfFv.cjs';
3
+ import { RelationCoordinate, RecordsConfig, Table, TableCapacity, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, Pipeline, PipelineColumn, PipelineVerdict, PipelineMoveResult, PipelineSpec, PipelineDeclared, StageRuleOnFail, StageRuleEnforcement, StagePending, StagePendingOnBoard, PipelineGate, PipelineGatePreview, FormSummary, BookingSummary, BookingAvailability, BookingDeclared, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, SavedViewRow, SavedViewSpecIn, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, MyLevel, RecordsDataSource } from '../index.cjs';
4
+ export { AggregateOperation, AggregateWindow, BookingWindow, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, CustomFieldTableType, DashboardBlockKind, DashboardBlockResult, DocSignatureCheck, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, PERMISSION_LEVELS, PIPELINE_RULE_KINDS, PermissionLevel, PipelineMissingField, PipelineRule, PipelineRuleKind, PipelineStage, PortalPrincipal, PortalTableExposure, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationCarries, RelationProperties, RelationTarget, ResolutionTriple, Rule, RuleAnswer, RuleExpression, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, StageRuleWarning, SubscriptionBlock, SubscriptionCadence, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.cjs';
5
5
 
6
6
  /**
7
7
  * DOOR-8. As-of on EITHER clock, and they are different questions:
@@ -246,13 +246,20 @@ interface RecordsClient {
246
246
  record_id: Uuid;
247
247
  to: string;
248
248
  }): Promise<RecordsResult<PipelineVerdict>>;
249
- /** Move a record to a stage. An ORDINARY record write, judged by the same Rules. */
249
+ /**
250
+ * Move a record to a stage. An ORDINARY record write, judged by the same Rules.
251
+ *
252
+ * It answers an OBJECT on every path. A gate whose `on_fail` is `require_approval`
253
+ * comes back `applied: false` with the wait it filed — the record has NOT moved, and a
254
+ * screen that treated the call's success as the move's success would show the card in
255
+ * the wrong column while somebody is still deciding.
256
+ */
250
257
  pipelineMove(args: {
251
258
  record_id: Uuid;
252
259
  to: string;
253
260
  also?: Record<string, unknown>;
254
261
  expected_version?: number | null;
255
- }): Promise<RecordsResult<unknown>>;
262
+ }): Promise<RecordsResult<PipelineMoveResult>>;
256
263
  /** Declare (or re-state) a pipeline: the stage column and its transition Rules. */
257
264
  pipelineDeclare(args: {
258
265
  table_id: Uuid;
@@ -262,6 +269,39 @@ interface RecordsClient {
262
269
  tableStageField(args: {
263
270
  table_id: Uuid;
264
271
  }): Promise<RecordsResult<string | null>>;
272
+ /** The closed list of what a gate does when it says no — the store is the authority. */
273
+ stageRuleOnFailKinds(): Promise<RecordsResult<{
274
+ behaviour: StageRuleOnFail;
275
+ note: string;
276
+ }[]>>;
277
+ /** Whether this organization's gates refuse or warn. One opinion, asked once. */
278
+ stageRuleEnforcement(): Promise<RecordsResult<StageRuleEnforcement>>;
279
+ /** What is waiting on this card: approvals filed against its own stage column. */
280
+ recordStagePending(args: {
281
+ record_id: Uuid;
282
+ }): Promise<RecordsResult<StagePending[]>>;
283
+ /** The same question for a whole board, in ONE call — what a Kanban badges cards from. */
284
+ pipelinePending(args: {
285
+ table_id: Uuid;
286
+ }): Promise<RecordsResult<StagePendingOnBoard[]>>;
287
+ /**
288
+ * WHAT THIS GATE WOULD DO TO THIS BOARD TODAY — for a gate that has not been saved.
289
+ *
290
+ * The settings screen calls it on every edit of the condition, which is why it takes
291
+ * the gate rather than a rule id: no saved-rule door can answer about a rule that does
292
+ * not exist yet. The store compiles it with the same compiler `pipelineDeclare` uses,
293
+ * so the number here and the refusal at the door are the same rule — a preview with its
294
+ * own compiler would be wrong exactly at the edge of the condition, which is the only
295
+ * place anybody looks.
296
+ *
297
+ * A gate that does not say what it demands is REFUSED, not answered zero: "no cards
298
+ * would be stopped" beside a half-written rule is the sentence that gets it saved.
299
+ */
300
+ pipelineGatePreview(args: {
301
+ table_id: Uuid;
302
+ stage: string;
303
+ gate: PipelineGate | Record<string, unknown>;
304
+ }): Promise<RecordsResult<PipelineGatePreview>>;
265
305
  ruleMembers(args: {
266
306
  rule_id: Uuid;
267
307
  }): Promise<RecordsResult<StoredRecord[]>>;
@@ -302,6 +342,34 @@ interface RecordsClient {
302
342
  bookings(args?: {
303
343
  table_id?: Uuid | null;
304
344
  }): Promise<RecordsResult<BookingSummary[]>>;
345
+ /**
346
+ * CREATE OR RE-STATE ONE BOOKING PAGE over one Table. `admin` on the Table,
347
+ * because a booking page decides what a stranger may write into it and which
348
+ * hours of the organization's week are on offer.
349
+ *
350
+ * `slot`, `status` and `booked_with` are the store's to fill in: a question
351
+ * naming any of the three is refused BY NAME, so a page cannot be built that
352
+ * lets a visitor choose their own status. It does NOT publish — `anonPublish`
353
+ * is the one act that opens a public surface, for a booking page exactly as
354
+ * for a form.
355
+ *
356
+ * Until 2026-09-21 this door had no client method, so the ONLY way to a
357
+ * booking page was to ask an agent for one. The agent path is the faster one,
358
+ * never the only one.
359
+ */
360
+ bookingDeclare(args: {
361
+ table_id: Uuid;
362
+ title: string;
363
+ questions: unknown[];
364
+ availability?: Partial<BookingAvailability> | null;
365
+ presentation?: Record<string, unknown> | null;
366
+ submission_cap?: number | null;
367
+ quarantine_rule_id?: Uuid | null;
368
+ notify_rule_id?: Uuid | null;
369
+ form_id?: Uuid | null;
370
+ slug?: string | null;
371
+ home_id?: Uuid | null;
372
+ }): Promise<RecordsResult<BookingDeclared>>;
305
373
  /** Create or re-state one form. A question naming no Field of that Table is refused BY NAME. */
306
374
  formDeclare(args: {
307
375
  table_id: Uuid;
@@ -673,6 +741,23 @@ interface RecordsClient {
673
741
  subscriptionPreview(args: {
674
742
  rule_id: Uuid;
675
743
  }): Promise<RecordsResult<DigestPreview>>;
744
+ /**
745
+ * THE SAVED VIEWS OF A TABLE — what a subscription may be written over. Narrowed
746
+ * in SQL as the definer to Tables this caller can already open, so the list can
747
+ * never reveal a Table.
748
+ */
749
+ views(args?: {
750
+ table_id?: Uuid | null;
751
+ }): Promise<RecordsResult<SavedViewRow[]>>;
752
+ /**
753
+ * SAVE ONE VIEW. VIEWER on the Table, not editor: writing down a question about a
754
+ * Table is not changing it, and requiring editor would mean the people who read a
755
+ * Table could not subscribe to anything in it.
756
+ */
757
+ viewDeclare(args: {
758
+ table_id: Uuid;
759
+ spec: SavedViewSpecIn;
760
+ }): Promise<RecordsResult<Uuid>>;
676
761
  docTemplateSave(args: {
677
762
  table_id: Uuid;
678
763
  name: string;
@@ -1270,6 +1355,11 @@ declare const DOORS: {
1270
1355
  readonly pipelineTransitionRefusal: "pipeline_transition_refusal";
1271
1356
  readonly pipelineMove: "pipeline_move";
1272
1357
  readonly tableStageField: "table_stage_field";
1358
+ readonly stageRuleOnFailKinds: "stage_rule_on_fail_kinds";
1359
+ readonly stageRuleEnforcement: "stage_rule_enforcement";
1360
+ readonly recordStagePending: "record_stage_pending";
1361
+ readonly pipelinePending: "pipeline_pending";
1362
+ readonly pipelineGatePreview: "pipeline_gate_preview";
1273
1363
  readonly ruleMembers: "rule_members";
1274
1364
  readonly ruleMembership: "rule_membership";
1275
1365
  readonly ruleRun: "rule_run";
@@ -1277,6 +1367,7 @@ declare const DOORS: {
1277
1367
  readonly forms: "forms";
1278
1368
  readonly formDeclare: "form_declare";
1279
1369
  readonly bookings: "bookings";
1370
+ readonly bookingDeclare: "booking_declare";
1280
1371
  readonly importPlan: "io_import_plan";
1281
1372
  readonly importBegin: "io_import_begin";
1282
1373
  readonly importRows: "io_import_rows";
@@ -1333,6 +1424,8 @@ declare const DOORS: {
1333
1424
  readonly subscriptionMute: "subscription_mute";
1334
1425
  readonly subscriptionDeclare: "subscription_declare";
1335
1426
  readonly subscriptionPreview: "subscription_preview";
1427
+ readonly views: "views";
1428
+ readonly viewDeclare: "view_declare";
1336
1429
  readonly subscriptionCadences: "subscription_cadences";
1337
1430
  readonly docTemplateSave: "doc_template_save";
1338
1431
  readonly docRenderBody: "doc_render_body";
@@ -1522,4 +1615,4 @@ declare function parseCsv(text: string): string[][];
1522
1615
  declare function importCsv(text: string): ParsedImport;
1523
1616
  declare function importXlsx(bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
1524
1617
 
1525
- export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, BookingSummary, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, 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, Pipeline, PipelineColumn, PipelineDeclared, PipelineSpec, PipelineVerdict, 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, SubscriptionSpec, 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 };
1618
+ export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, BookingAvailability, BookingDeclared, BookingSummary, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, 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, Pipeline, PipelineColumn, PipelineDeclared, PipelineGate, PipelineGatePreview, PipelineMoveResult, PipelineSpec, PipelineVerdict, 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, SavedViewRow, SavedViewSpecIn, StagePending, StagePendingOnBoard, StageRuleEnforcement, StageRuleOnFail, StaleWriteDetail, StoredRecord, StuckRow, Subscription, SubscriptionSpec, 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,7 +1,7 @@
1
- import { g as Timestamp, U as Uuid, h as RecordDocument, i as RecordRead, j as ReadRow, k as Field, l as StoredRecord, N as NewFieldDeclaration, m as FieldPatch, n as RecordRevision, o as ReadValue, p as FieldProposal, q as TableProposal } from '../field-D08d_e7R.js';
2
- export { A as ABSENCE_REASONS, r as ACTOR_VOCABULARY, s as AbsenceReason, t as Actor, u as COMPUTE_ON, v as CONTEXT_POLICIES, C as ComputeOn, e as ContextPolicy, D as DELIVERIES, w as Delivery, E as ENTITY_TOKENS, x as EntityToken, y as FIELD_SENSITIVITIES, z as FIELD_SOURCES, B as FRESHNESS, G as FieldBehavior, c as FieldRule, d as FieldSensitivity, b as FieldSource, F as FieldTypeWord, H as Freshness, I as HiddenFieldNotice, K as KERNEL_TABLES, J as KernelTableName, M as MERGE_FIELD_MODIFIERS, L as MERGE_FIELD_SEMANTIC_TYPES, P as MERGE_FIELD_SOURCES, Q as MergeFieldModifier, V as MergeFieldSemanticType, W as MergeFieldSource, X as ON_DELETE, Y as OVERRIDE_POLICIES, O as OnDelete, Z as OverridePolicy, _ as PARITY_FIELD_TYPES, $ as PER_VALUE_ACCESS_WORDS, a0 as ParityFieldType, a1 as ParityFieldTypeDescriptor, a2 as PerValueAccessWord, a3 as ProvenancePointer, a4 as RELATION_BINDINGS, a5 as RELATION_CARDINALITIES, a6 as RELATION_FLAVORS, a7 as RETIRED_ACTOR_WORDS, a8 as RULE_NODE_KINDS, a9 as RULE_USES, aa as RelationBinding, f as RelationCardinality, R as RelationFlavor, ab as RetiredActorWord, ac as RuleNodeKind, ad as RuleUse, ae as STORAGE_MODES, af as STORE_DOORS, ag as STORE_KNOBS, ah as STORE_REFUSAL_CODES, S as StorageMode, ai as StoreDoorName, aj as StoreRefusalCode, ak as TABLE_DISPLAYS, al as TABLE_ORIGINS, am as TABLE_TYPES, a as TableDisplay, an as TableOrigin, T as TableType, ao as VALUE_ALTERNATE_KEYS, ap as VALUE_ENVELOPE_KEYS, aq as ValueAlternate, ar as ValueAlternateKey, as as ValueEnvelope, at as ValueEnvelopeKey, au as ValueSource } from '../field-D08d_e7R.js';
3
- import { RelationCoordinate, RecordsConfig, RecordsResult, Table, TableCapacity, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, Pipeline, PipelineColumn, PipelineVerdict, PipelineSpec, PipelineDeclared, FormSummary, BookingSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
4
- export { AggregateOperation, AggregateWindow, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, CustomFieldTableType, DashboardBlockKind, DashboardBlockResult, DocSignatureCheck, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, ForbiddenEnvelopeWord, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, PERMISSION_LEVELS, PIPELINE_RULE_KINDS, PermissionLevel, PipelineMissingField, PipelineRule, PipelineRuleKind, PipelineStage, PortalPrincipal, PortalTableExposure, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationCarries, RelationProperties, RelationTarget, ResolutionTriple, Rule, RuleAnswer, RuleExpression, SubscriptionBlock, SubscriptionCadence, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.js';
1
+ import { g as Timestamp, U as Uuid, h as RecordDocument, i as RecordsResult, j as RecordRead, k as ReadRow, l as Field, m as StoredRecord, N as NewFieldDeclaration, n as FieldPatch, o as RecordRevision, p as ReadValue, q as FieldProposal, r as TableProposal, s as RecordsError, W as WriteConflict, P as PgError, t as StaleWriteDetail, u as PredictedRefusal } from '../field-CWBdZfFv.js';
2
+ export { A as ABSENCE_REASONS, v as ACTOR_VOCABULARY, w as AbsenceReason, x as Actor, y as COMPUTE_ON, z as CONTEXT_POLICIES, C as ComputeOn, e as ContextPolicy, D as DELIVERIES, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, H as FIELD_SENSITIVITIES, I as FIELD_SOURCES, J as FRESHNESS, K as FieldBehavior, c as FieldRule, d as FieldSensitivity, b as FieldSource, F as FieldTypeWord, L as ForbiddenEnvelopeWord, M as Freshness, Q as HiddenFieldNotice, V as KERNEL_TABLES, X as KernelTableName, Y as MERGE_FIELD_MODIFIERS, Z as MERGE_FIELD_SEMANTIC_TYPES, _ as MERGE_FIELD_SOURCES, $ as MergeFieldModifier, a0 as MergeFieldSemanticType, a1 as MergeFieldSource, a2 as ON_DELETE, a3 as OVERRIDE_POLICIES, O as OnDelete, a4 as OverridePolicy, a5 as PARITY_FIELD_TYPES, a6 as PER_VALUE_ACCESS_WORDS, a7 as ParityFieldType, a8 as ParityFieldTypeDescriptor, a9 as PerValueAccessWord, aa as ProvenancePointer, ab as RELATION_BINDINGS, ac as RELATION_CARDINALITIES, ad as RELATION_FLAVORS, ae as RETIRED_ACTOR_WORDS, af as RULE_NODE_KINDS, ag as RULE_USES, ah as RecordsErrorCode, ai as RelationBinding, f as RelationCardinality, R as RelationFlavor, aj as RetiredActorWord, ak as RuleNodeKind, al as RuleUse, am as STORAGE_MODES, an as STORE_DOORS, ao as STORE_KNOBS, ap as STORE_REFUSAL_CODES, S as StorageMode, aq as StoreDoorName, ar as StoreRefusalCode, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, a as TableDisplay, av as TableOrigin, T as TableType, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as err, aE as isRecordsErr, aF as ok } from '../field-CWBdZfFv.js';
3
+ import { RelationCoordinate, RecordsConfig, Table, TableCapacity, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, Pipeline, PipelineColumn, PipelineVerdict, PipelineMoveResult, PipelineSpec, PipelineDeclared, StageRuleOnFail, StageRuleEnforcement, StagePending, StagePendingOnBoard, PipelineGate, PipelineGatePreview, FormSummary, BookingSummary, BookingAvailability, BookingDeclared, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, SavedViewRow, SavedViewSpecIn, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, MyLevel, RecordsDataSource } from '../index.js';
4
+ export { AggregateOperation, AggregateWindow, BookingWindow, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, CustomFieldTableType, DashboardBlockKind, DashboardBlockResult, DocSignatureCheck, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, PERMISSION_LEVELS, PIPELINE_RULE_KINDS, PermissionLevel, PipelineMissingField, PipelineRule, PipelineRuleKind, PipelineStage, PortalPrincipal, PortalTableExposure, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationCarries, RelationProperties, RelationTarget, ResolutionTriple, Rule, RuleAnswer, RuleExpression, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, StageRuleWarning, SubscriptionBlock, SubscriptionCadence, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.js';
5
5
 
6
6
  /**
7
7
  * DOOR-8. As-of on EITHER clock, and they are different questions:
@@ -246,13 +246,20 @@ interface RecordsClient {
246
246
  record_id: Uuid;
247
247
  to: string;
248
248
  }): Promise<RecordsResult<PipelineVerdict>>;
249
- /** Move a record to a stage. An ORDINARY record write, judged by the same Rules. */
249
+ /**
250
+ * Move a record to a stage. An ORDINARY record write, judged by the same Rules.
251
+ *
252
+ * It answers an OBJECT on every path. A gate whose `on_fail` is `require_approval`
253
+ * comes back `applied: false` with the wait it filed — the record has NOT moved, and a
254
+ * screen that treated the call's success as the move's success would show the card in
255
+ * the wrong column while somebody is still deciding.
256
+ */
250
257
  pipelineMove(args: {
251
258
  record_id: Uuid;
252
259
  to: string;
253
260
  also?: Record<string, unknown>;
254
261
  expected_version?: number | null;
255
- }): Promise<RecordsResult<unknown>>;
262
+ }): Promise<RecordsResult<PipelineMoveResult>>;
256
263
  /** Declare (or re-state) a pipeline: the stage column and its transition Rules. */
257
264
  pipelineDeclare(args: {
258
265
  table_id: Uuid;
@@ -262,6 +269,39 @@ interface RecordsClient {
262
269
  tableStageField(args: {
263
270
  table_id: Uuid;
264
271
  }): Promise<RecordsResult<string | null>>;
272
+ /** The closed list of what a gate does when it says no — the store is the authority. */
273
+ stageRuleOnFailKinds(): Promise<RecordsResult<{
274
+ behaviour: StageRuleOnFail;
275
+ note: string;
276
+ }[]>>;
277
+ /** Whether this organization's gates refuse or warn. One opinion, asked once. */
278
+ stageRuleEnforcement(): Promise<RecordsResult<StageRuleEnforcement>>;
279
+ /** What is waiting on this card: approvals filed against its own stage column. */
280
+ recordStagePending(args: {
281
+ record_id: Uuid;
282
+ }): Promise<RecordsResult<StagePending[]>>;
283
+ /** The same question for a whole board, in ONE call — what a Kanban badges cards from. */
284
+ pipelinePending(args: {
285
+ table_id: Uuid;
286
+ }): Promise<RecordsResult<StagePendingOnBoard[]>>;
287
+ /**
288
+ * WHAT THIS GATE WOULD DO TO THIS BOARD TODAY — for a gate that has not been saved.
289
+ *
290
+ * The settings screen calls it on every edit of the condition, which is why it takes
291
+ * the gate rather than a rule id: no saved-rule door can answer about a rule that does
292
+ * not exist yet. The store compiles it with the same compiler `pipelineDeclare` uses,
293
+ * so the number here and the refusal at the door are the same rule — a preview with its
294
+ * own compiler would be wrong exactly at the edge of the condition, which is the only
295
+ * place anybody looks.
296
+ *
297
+ * A gate that does not say what it demands is REFUSED, not answered zero: "no cards
298
+ * would be stopped" beside a half-written rule is the sentence that gets it saved.
299
+ */
300
+ pipelineGatePreview(args: {
301
+ table_id: Uuid;
302
+ stage: string;
303
+ gate: PipelineGate | Record<string, unknown>;
304
+ }): Promise<RecordsResult<PipelineGatePreview>>;
265
305
  ruleMembers(args: {
266
306
  rule_id: Uuid;
267
307
  }): Promise<RecordsResult<StoredRecord[]>>;
@@ -302,6 +342,34 @@ interface RecordsClient {
302
342
  bookings(args?: {
303
343
  table_id?: Uuid | null;
304
344
  }): Promise<RecordsResult<BookingSummary[]>>;
345
+ /**
346
+ * CREATE OR RE-STATE ONE BOOKING PAGE over one Table. `admin` on the Table,
347
+ * because a booking page decides what a stranger may write into it and which
348
+ * hours of the organization's week are on offer.
349
+ *
350
+ * `slot`, `status` and `booked_with` are the store's to fill in: a question
351
+ * naming any of the three is refused BY NAME, so a page cannot be built that
352
+ * lets a visitor choose their own status. It does NOT publish — `anonPublish`
353
+ * is the one act that opens a public surface, for a booking page exactly as
354
+ * for a form.
355
+ *
356
+ * Until 2026-09-21 this door had no client method, so the ONLY way to a
357
+ * booking page was to ask an agent for one. The agent path is the faster one,
358
+ * never the only one.
359
+ */
360
+ bookingDeclare(args: {
361
+ table_id: Uuid;
362
+ title: string;
363
+ questions: unknown[];
364
+ availability?: Partial<BookingAvailability> | null;
365
+ presentation?: Record<string, unknown> | null;
366
+ submission_cap?: number | null;
367
+ quarantine_rule_id?: Uuid | null;
368
+ notify_rule_id?: Uuid | null;
369
+ form_id?: Uuid | null;
370
+ slug?: string | null;
371
+ home_id?: Uuid | null;
372
+ }): Promise<RecordsResult<BookingDeclared>>;
305
373
  /** Create or re-state one form. A question naming no Field of that Table is refused BY NAME. */
306
374
  formDeclare(args: {
307
375
  table_id: Uuid;
@@ -673,6 +741,23 @@ interface RecordsClient {
673
741
  subscriptionPreview(args: {
674
742
  rule_id: Uuid;
675
743
  }): Promise<RecordsResult<DigestPreview>>;
744
+ /**
745
+ * THE SAVED VIEWS OF A TABLE — what a subscription may be written over. Narrowed
746
+ * in SQL as the definer to Tables this caller can already open, so the list can
747
+ * never reveal a Table.
748
+ */
749
+ views(args?: {
750
+ table_id?: Uuid | null;
751
+ }): Promise<RecordsResult<SavedViewRow[]>>;
752
+ /**
753
+ * SAVE ONE VIEW. VIEWER on the Table, not editor: writing down a question about a
754
+ * Table is not changing it, and requiring editor would mean the people who read a
755
+ * Table could not subscribe to anything in it.
756
+ */
757
+ viewDeclare(args: {
758
+ table_id: Uuid;
759
+ spec: SavedViewSpecIn;
760
+ }): Promise<RecordsResult<Uuid>>;
676
761
  docTemplateSave(args: {
677
762
  table_id: Uuid;
678
763
  name: string;
@@ -1270,6 +1355,11 @@ declare const DOORS: {
1270
1355
  readonly pipelineTransitionRefusal: "pipeline_transition_refusal";
1271
1356
  readonly pipelineMove: "pipeline_move";
1272
1357
  readonly tableStageField: "table_stage_field";
1358
+ readonly stageRuleOnFailKinds: "stage_rule_on_fail_kinds";
1359
+ readonly stageRuleEnforcement: "stage_rule_enforcement";
1360
+ readonly recordStagePending: "record_stage_pending";
1361
+ readonly pipelinePending: "pipeline_pending";
1362
+ readonly pipelineGatePreview: "pipeline_gate_preview";
1273
1363
  readonly ruleMembers: "rule_members";
1274
1364
  readonly ruleMembership: "rule_membership";
1275
1365
  readonly ruleRun: "rule_run";
@@ -1277,6 +1367,7 @@ declare const DOORS: {
1277
1367
  readonly forms: "forms";
1278
1368
  readonly formDeclare: "form_declare";
1279
1369
  readonly bookings: "bookings";
1370
+ readonly bookingDeclare: "booking_declare";
1280
1371
  readonly importPlan: "io_import_plan";
1281
1372
  readonly importBegin: "io_import_begin";
1282
1373
  readonly importRows: "io_import_rows";
@@ -1333,6 +1424,8 @@ declare const DOORS: {
1333
1424
  readonly subscriptionMute: "subscription_mute";
1334
1425
  readonly subscriptionDeclare: "subscription_declare";
1335
1426
  readonly subscriptionPreview: "subscription_preview";
1427
+ readonly views: "views";
1428
+ readonly viewDeclare: "view_declare";
1336
1429
  readonly subscriptionCadences: "subscription_cadences";
1337
1430
  readonly docTemplateSave: "doc_template_save";
1338
1431
  readonly docRenderBody: "doc_render_body";
@@ -1522,4 +1615,4 @@ declare function parseCsv(text: string): string[][];
1522
1615
  declare function importCsv(text: string): ParsedImport;
1523
1616
  declare function importXlsx(bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
1524
1617
 
1525
- export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, BookingSummary, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, 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, Pipeline, PipelineColumn, PipelineDeclared, PipelineSpec, PipelineVerdict, 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, SubscriptionSpec, 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 };
1618
+ export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, BookingAvailability, BookingDeclared, BookingSummary, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, 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, Pipeline, PipelineColumn, PipelineDeclared, PipelineGate, PipelineGatePreview, PipelineMoveResult, PipelineSpec, PipelineVerdict, 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, SavedViewRow, SavedViewSpecIn, StagePending, StagePendingOnBoard, StageRuleEnforcement, StageRuleOnFail, StaleWriteDetail, StoredRecord, StuckRow, Subscription, SubscriptionSpec, 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 };