@vrplatform/kysely 1.3.45-1 → 1.3.45-1000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/build/.data.tar +2 -2
  2. package/build/main/control-plane/index.d.ts +137 -0
  3. package/build/main/control-plane/index.js.map +1 -1
  4. package/build/main/index.d.ts +20 -0
  5. package/build/main/index.js +180 -49
  6. package/build/main/index.js.map +1 -1
  7. package/build/main/local/generate.js +1 -0
  8. package/build/main/local/generate.js.map +1 -1
  9. package/build/main/local/index.js +126 -8
  10. package/build/main/local/index.js.map +1 -1
  11. package/build/main/postgres-error.d.ts +3 -3
  12. package/build/main/postgres-error.js +4 -3
  13. package/build/main/postgres-error.js.map +1 -1
  14. package/build/main/query/tenant/status.d.ts +1 -1
  15. package/build/main/query/tenant/status.js +4 -2
  16. package/build/main/query/tenant/status.js.map +1 -1
  17. package/build/main/regional.d.ts +1 -0
  18. package/build/main/regional.js +1 -0
  19. package/build/main/regional.js.map +1 -1
  20. package/build/main/test/index.d.ts +25 -2
  21. package/build/main/test/index.js +40 -8
  22. package/build/main/test/index.js.map +1 -1
  23. package/build/main/v1.generated.d.ts +385 -34
  24. package/build/main/v1.generated.js.map +1 -1
  25. package/build/migrations-v2/0000000000015-durable-flow-events.ts +163 -0
  26. package/build/migrations-v2/0000000000016-billing-listing-facts.ts +539 -0
  27. package/build/migrations-v2/0000000000017-webhook-secret-reencryption-failures.ts +18 -0
  28. package/build/migrations-v2/0000000000018-durable-flow-event-sensitive-input.ts +28 -0
  29. package/build/migrations-v2/0000000000019-asynchronous-operations.ts +736 -0
  30. package/build/migrations-v2/0000000000031-ui-permission-role-simplification.ts +70 -0
  31. package/build/migrations-v2/0000000000032-tenant-delete-ownership-cascades.ts +44 -0
  32. package/build/migrations-v2/0000000000033-plaid-connect-session-telemetry.ts +31 -0
  33. package/build/migrations-v2/0000000000033-reservation-issue-seed-bucket-index.ts +19 -0
  34. package/build/migrations-v2/0000000000034-retire-recent-classification-indexes.ts +29 -0
  35. package/build/migrations-v2/0000000000035-core-change-autovacuum.ts +24 -0
  36. package/build/migrations-v2/0000000000036-journal-entry-inactive-reason-constraint.ts +33 -0
  37. package/build/migrations-v2/0000000000037-journal-entry-inactive-reasons.ts +19 -0
  38. package/build/migrations-v2/0000000000038-journal-entry-group-inactive-reason.ts +14 -0
  39. package/build/migrations-v2/0000000000039-reservation-guest-breakdown.ts +19 -0
  40. package/build/migrations-v2/0000000000040-csv-import-source-identity-index.ts +23 -0
  41. package/build/migrations-v2/0000000000041-payment-returns.ts +38 -0
  42. package/build/migrations-v2/0000000000042-operation-resource-types.ts +609 -0
  43. package/build/migrations-v2/0000000000043-reservation-journal-freshness.ts +149 -0
  44. package/build/migrations-v2/0000000000044-reservation-journal-freshness-backfill.ts +254 -0
  45. package/build/migrations-v2/0000000000045-reservation-journal-freshness-revision-repair.ts +83 -0
  46. package/build/migrations-v2/0000000000046-materialized-reservation-journal-operations.ts +709 -0
  47. package/build/migrations-v2/0000000000047-public-audit-completion.ts +77 -0
  48. package/build/migrations-v2/0000000000048-reservation-journal-full-refresh-repair.ts +136 -0
  49. package/build/migrations-v2/0000000000049-queued-journal-operation-failures.ts +60 -0
  50. package/build/migrations-v2/0000000000050-connection-oauth-state.ts +43 -0
  51. package/build/migrations-v2/0000000000051-owner-statement-email-delivery.ts +134 -0
  52. package/build/migrations-v2/0000000000052-fee-journal-lock-skip-operations.ts +59 -0
  53. package/build/migrations-v2/0000000000053-fee-journal-lock-skip-null-attempt.ts +44 -0
  54. package/build/migrations-v2/0000000000054-journal-refresh-issue-codes.ts +16 -0
  55. package/build/migrations-v2/0000000000055-tenant-billing-subscription.ts +8 -0
  56. package/build/migrations-v2/0000000000056-journal-operation-failure-precedence.ts +306 -0
  57. package/build/migrations-v2/0000000000057-journal-invalidation-failure-code.ts +28 -0
  58. package/build/migrations-v2/0000000000058-journal-invalidation-locked-failure.ts +16 -0
  59. package/build/migrations-v2/0000000000059-billing-active-listing-cross-region-partner.ts +135 -0
  60. package/build/migrations-v2/0000000000060-accounting-integrity-change-driven.ts +99 -0
  61. package/build/module/control-plane/index.d.ts +137 -0
  62. package/build/module/control-plane/index.js.map +1 -1
  63. package/build/module/index.d.ts +20 -0
  64. package/build/module/index.js +177 -49
  65. package/build/module/index.js.map +1 -1
  66. package/build/module/local/generate.js +1 -0
  67. package/build/module/local/generate.js.map +1 -1
  68. package/build/module/local/index.js +126 -8
  69. package/build/module/local/index.js.map +1 -1
  70. package/build/module/postgres-error.d.ts +3 -3
  71. package/build/module/postgres-error.js +4 -3
  72. package/build/module/postgres-error.js.map +1 -1
  73. package/build/module/query/tenant/status.d.ts +1 -1
  74. package/build/module/query/tenant/status.js +4 -2
  75. package/build/module/query/tenant/status.js.map +1 -1
  76. package/build/module/regional.d.ts +1 -0
  77. package/build/module/regional.js +1 -0
  78. package/build/module/regional.js.map +1 -1
  79. package/build/module/test/index.d.ts +25 -2
  80. package/build/module/test/index.js +39 -8
  81. package/build/module/test/index.js.map +1 -1
  82. package/build/module/v1.generated.d.ts +385 -34
  83. package/build/module/v1.generated.js.map +1 -1
  84. package/package.json +9 -7
@@ -3,8 +3,9 @@
3
3
  * Please do not edit it manually.
4
4
  */
5
5
  import type { ColumnType } from "kysely";
6
- export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "inactiveAccount" | "listingInactive" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unknownInactiveReason";
6
+ export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "historicalLedger" | "inactiveAccount" | "listingInactive" | "listingOwnershipPeriodNotFound" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unbalancedGroupInactiveLeg" | "unknownInactiveReason";
7
7
  export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
8
+ export type AccountingReservationJournalInvalidationFailure = "journal_configuration_invalid" | "journal_locked";
8
9
  export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
9
10
  export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
10
11
  export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
@@ -14,11 +15,30 @@ export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "faile
14
15
  export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
15
16
  export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
16
17
  export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
17
- export type AuditSourceType = "api" | "automation" | "integration" | "portal" | "sync" | "system";
18
+ export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
19
+ export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
20
+ export type BillingListingFactSourceType = "baseline_backfill" | "daily_reconciliation" | "legacy_tracking_import" | "listing_delete" | "listing_insert" | "listing_update" | "ownership_delete" | "ownership_insert" | "ownership_update" | "tenant_delete" | "tenant_insert" | "tenant_update";
21
+ export type CoreAsyncOperationResultStatus = "completed" | "failed" | "queued";
22
+ export type CoreCsvOperationResultKind = "import" | "preview";
23
+ export type CoreCsvOperationResultStatus = "completed" | "failed" | "processing" | "queued";
24
+ export type CoreEmailDeliveryFailureCode = "inactive_recipient" | "invalid_provider_response" | "postmark_not_configured" | "provider_rejected" | "task_failed" | "transport_failed";
25
+ export type CoreEmailDeliveryStatus = "accepted" | "canceled" | "failed" | "queued" | "rejected" | "retrying" | "sending";
26
+ export type CoreEmailNotificationStatus = "canceled" | "completed" | "failed" | "processing" | "queued";
27
+ export type CoreExportJobFormat = "csv" | "pdf" | "zip";
28
+ export type CoreExportJobTaskId = "api/export-journal-entries-csv" | "api/export-manager-statement-pdf" | "api/export-owner-statement-combined-csv" | "api/export-owner-statement-pdf" | "api/export-owner-statement-pdf-batch-zip" | "api/export-owner-statement-summary-pdf" | "api/export-owner-statement-summary-pdf-batch-zip" | "api/export-route" | "api/export-trust-reconciliation-pdf";
29
+ export type CoreFlowEventOperationAction = "abandon" | "replay";
30
+ export type CoreFlowEventStatus = "canceled" | "dead" | "pending" | "processing" | "succeeded";
31
+ export type CoreOperationResourceRole = "result" | "source" | "target";
32
+ export type CoreOperationResourceType = "bank-rule" | "connection" | "contact" | "file" | "flow" | "listing" | "recurring-fee" | "recurring-transaction-template" | "reservation" | "statement" | "team" | "transaction" | "webhook";
33
+ export type CoreOperationPublicIdFormat = "action" | "legacy";
34
+ export type CoreOperationSourceType = "audit-action" | "export-job" | "sync" | "webhook-delivery";
35
+ export type CoreOperationStatus = "completed" | "failed" | "queued" | "running";
36
+ export type CoreOperationType = "ach-verification" | "bank-rule-run" | "calendar-block" | "calendar-unblock" | "connection-archive" | "connection-connect" | "connection-extract" | "connection-sync" | "csv-import" | "csv-import-preview" | "export" | "flow-run" | "historical-gl-import" | "historical-statement-import" | "listing-journal-refresh" | "plaid-initial-sync" | "pms-cutover" | "pms-cutover-preview" | "provider-payment" | "provider-payment-recovery" | "recurring-transaction-run" | "reservation-journal-refresh" | "team-delete" | "team-demo-data" | "team-duplicate" | "team-initialize" | "transaction-journal-refresh" | "vri-statement-import" | "vri-team-migration" | "webhook-test";
18
37
  export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
19
38
  export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
20
39
  export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
21
40
  export type HealthAccountingIntegrityConfidence = "probable" | "proven" | "unknown";
41
+ export type HealthAccountingIntegrityDirtyRecordType = "reservation" | "transaction";
22
42
  export type HealthAccountingIntegrityDeliveryChannel = "sentry" | "slack";
23
43
  export type HealthAccountingIntegrityDeliveryStatus = "dead_letter" | "delivered" | "failed" | "pending" | "processing" | "suppressed";
24
44
  export type HealthAccountingIntegrityRepairPlanStatus = "active" | "canceled" | "completed" | "draft" | "failed" | "paused";
@@ -33,7 +53,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
33
53
  export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
34
54
  export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
35
55
  export type HealthTenantIssueCategory = "criticalToSystem" | "criticalToUser";
36
- export type HealthTenantIssueCode = "brokenConnections" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unpaidReservations";
56
+ export type HealthTenantIssueCode = "brokenConnections" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "journalConfigurationInvalid" | "journalLocked" | "journalUnbalanced" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unpaidReservations";
37
57
  export type HealthTenantIssueSeverity = "error" | "warning";
38
58
  export type HealthTenantIssueStatus = "open" | "resolved";
39
59
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
@@ -52,9 +72,9 @@ export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
52
72
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
53
73
  export type WebhookApiVersion = "2026-07-01";
54
74
  export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
55
- export type WebhookEventType = "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed" | "webhook.test";
56
- export type WebhookResourceType = "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
57
- export type WebhookSubscriptionEventType = "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed";
75
+ export type WebhookEventType = "audit.event.changed" | "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed" | "webhook.test";
76
+ export type WebhookResourceType = "auditEvent" | "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
77
+ export type WebhookSubscriptionEventType = "audit.event.changed" | "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed";
58
78
  export type WebhookSubscriptionScope = "managedTeams" | "self";
59
79
  export type WebhookSubscriptionStatus = "active" | "disabled" | "pending";
60
80
  export interface AccountingAccount {
@@ -388,6 +408,45 @@ export interface AccountingRate {
388
408
  export interface AccountingRateType {
389
409
  name: string;
390
410
  }
411
+ export interface AccountingReservationJournalFreshnessControl {
412
+ createdAt: Generated<Timestamp>;
413
+ guardsEnabledAt: Timestamp | null;
414
+ tenantId: string;
415
+ updatedAt: Generated<Timestamp>;
416
+ }
417
+ export interface AccountingReservationJournalInvalidation {
418
+ actionId: string | null;
419
+ appliedAt: Timestamp | null;
420
+ coveredByEffectId: string | null;
421
+ createdAt: Generated<Timestamp>;
422
+ effectId: string | null;
423
+ failureCode: AccountingReservationJournalInvalidationFailure | null;
424
+ id: Generated<string>;
425
+ reservationId: string;
426
+ revision: Int8;
427
+ sourceResourceId: string | null;
428
+ sourceResourceType: CoreOperationResourceType | null;
429
+ tenantId: string;
430
+ }
431
+ export interface AccountingReservationJournalState {
432
+ appliedRevision: Generated<Int8>;
433
+ calculatedAt: Timestamp | null;
434
+ createdAt: Generated<Timestamp>;
435
+ desiredRevision: Generated<Int8>;
436
+ reservationId: string;
437
+ staleSince: Timestamp | null;
438
+ tenantId: string;
439
+ updatedAt: Generated<Timestamp>;
440
+ }
441
+ export interface AccountingReservationJournalStatementImpact {
442
+ createdAt: Generated<Timestamp>;
443
+ currency: string;
444
+ invalidationId: string;
445
+ listingId: string;
446
+ listingOwnershipPeriodId: string;
447
+ month: Timestamp;
448
+ tenantId: string;
449
+ }
391
450
  export interface AccountingTaxBehavior {
392
451
  name: string;
393
452
  }
@@ -410,10 +469,12 @@ export interface AccountingTransaction {
410
469
  matchStatus: Generated<string | null>;
411
470
  paidAt: Timestamp | null;
412
471
  paidStatus: Generated<string | null>;
472
+ recreatedFromTransactionId: string | null;
413
473
  recurringFeeId: string | null;
414
474
  recurringPattern: Json | null;
415
- recreatedFromTransactionId: string | null;
416
475
  recurringTemplateId: string | null;
476
+ returnedFromTransactionId: string | null;
477
+ returnEffectiveAt: Timestamp | null;
417
478
  /**
418
479
  * Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
419
480
  */
@@ -477,6 +538,9 @@ export interface AuditAction {
477
538
  actorId: string | null;
478
539
  actorLabel: string | null;
479
540
  actorName: string | null;
541
+ actorOrganizationId: string | null;
542
+ actorOrganizationName: string | null;
543
+ actorOrganizationType: AuditActorOrganizationType | null;
480
544
  actorType: AuditActionActorType;
481
545
  apiVersion: string;
482
546
  createdAt: Generated<Timestamp>;
@@ -582,6 +646,7 @@ export interface AuditMutation {
582
646
  id: Generated<string>;
583
647
  op: string;
584
648
  publicChanges: Generated<Json>;
649
+ publicOutcome: Json | null;
585
650
  rootEntityId: string | null;
586
651
  rootEntityType: string | null;
587
652
  subjectId: string;
@@ -597,8 +662,13 @@ export interface AuditPublicEvent {
597
662
  actorId: string | null;
598
663
  actorLabel: string | null;
599
664
  actorName: string | null;
665
+ actorOrganizationId: string | null;
666
+ actorOrganizationName: string | null;
667
+ actorOrganizationType: AuditActorOrganizationType | null;
600
668
  actorType: AuditActionActorType;
601
669
  affectedAccountIds: Generated<string[]>;
670
+ attemptedEntityChanges: Generated<Json>;
671
+ blockedBy: Generated<Json>;
602
672
  changedEntityTypes: Generated<string[]>;
603
673
  changedPaths: Generated<string[]>;
604
674
  entityChanges: Generated<Json>;
@@ -613,6 +683,7 @@ export interface AuditPublicEvent {
613
683
  projectionFingerprint: string;
614
684
  projectionVersion: Generated<number>;
615
685
  requestId: string | null;
686
+ recovery: Generated<Json>;
616
687
  revision: Generated<number>;
617
688
  rootEntityId: string;
618
689
  rootEntityType: string;
@@ -643,9 +714,42 @@ export interface AuditPublicEventProjectionState {
643
714
  retainedFrom: Timestamp | null;
644
715
  singleton: Generated<boolean>;
645
716
  }
717
+ export interface BillingListingFact {
718
+ activeListings: number;
719
+ billingPartnerId: string | null;
720
+ dataRegion: string;
721
+ effectiveAt: Timestamp;
722
+ id: Generated<string>;
723
+ reconciliation: Generated<boolean>;
724
+ recordedAt: Generated<Timestamp>;
725
+ sourceId: string;
726
+ sourceRevision: Int8 | null;
727
+ sourceType: BillingListingFactSourceType;
728
+ tenantId: string;
729
+ tenantName: string;
730
+ }
731
+ export interface BillingListingFactReadiness {
732
+ availableFrom: Timestamp | null;
733
+ legacyGapCount: number | null;
734
+ legacyImportedRows: number | null;
735
+ parityConfirmed: Generated<boolean>;
736
+ readyAt: Timestamp | null;
737
+ singleton: Generated<boolean>;
738
+ verifiedMonth: Timestamp | null;
739
+ }
646
740
  export interface CoreActiveStatus {
647
741
  name: string;
648
742
  }
743
+ export interface CoreAsyncOperationResult {
744
+ createdAt: Generated<Timestamp>;
745
+ errorMessage: string | null;
746
+ operationId: string;
747
+ result: Json | null;
748
+ status: Generated<CoreAsyncOperationResultStatus>;
749
+ tenantId: string;
750
+ type: CoreOperationType;
751
+ updatedAt: Generated<Timestamp>;
752
+ }
649
753
  export interface CoreChange {
650
754
  automationId: string | null;
651
755
  changeData: Json | null;
@@ -697,6 +801,62 @@ export interface CoreChangeSyncType {
697
801
  export interface CoreChangeType {
698
802
  name: string;
699
803
  }
804
+ export interface CoreCsvOperationResult {
805
+ connectionId: string;
806
+ createdAt: Generated<Timestamp>;
807
+ errorMessage: string | null;
808
+ kind: CoreCsvOperationResultKind;
809
+ result: Json | null;
810
+ status: Generated<CoreCsvOperationResultStatus>;
811
+ syncId: string;
812
+ tenantId: string;
813
+ updatedAt: Generated<Timestamp>;
814
+ }
815
+ export interface CoreEmailDelivery {
816
+ attemptCount: Generated<number>;
817
+ createdAt: Generated<Timestamp>;
818
+ failureCode: CoreEmailDeliveryFailureCode | null;
819
+ finishedAt: Timestamp | null;
820
+ httpStatus: number | null;
821
+ id: Generated<string>;
822
+ lastAttemptAt: Timestamp | null;
823
+ notificationId: string;
824
+ postmarkErrorCode: number | null;
825
+ postmarkMessageId: string | null;
826
+ status: Generated<CoreEmailDeliveryStatus>;
827
+ submittedAt: Timestamp | null;
828
+ tenantId: string;
829
+ triggerRunId: string | null;
830
+ updatedAt: Generated<Timestamp>;
831
+ userId: string;
832
+ }
833
+ export interface CoreEmailNotification {
834
+ createdAt: Generated<Timestamp>;
835
+ finishedAt: Timestamp | null;
836
+ id: string;
837
+ ownerStatementId: string;
838
+ recipientsResolvedAt: Timestamp | null;
839
+ startedAt: Timestamp | null;
840
+ status: Generated<CoreEmailNotificationStatus>;
841
+ tenantId: string;
842
+ triggerRunId: string | null;
843
+ updatedAt: Generated<Timestamp>;
844
+ }
845
+ export interface CoreExportJob {
846
+ createdAt: Generated<Timestamp>;
847
+ errorMessage: string | null;
848
+ fileId: string;
849
+ filename: string;
850
+ finishedAt: Timestamp | null;
851
+ format: CoreExportJobFormat;
852
+ id: string;
853
+ payload: Json;
854
+ startedAt: Timestamp | null;
855
+ status: Generated<CoreOperationStatus>;
856
+ taskId: CoreExportJobTaskId;
857
+ tenantId: string;
858
+ updatedAt: Generated<Timestamp>;
859
+ }
700
860
  export interface CoreFlow {
701
861
  appId: string;
702
862
  description: string | null;
@@ -713,6 +873,64 @@ export interface CoreFlow {
713
873
  uniqueRef: string;
714
874
  useGlobalMapping: Generated<boolean>;
715
875
  }
876
+ export interface CoreFlowEvent {
877
+ attempts: Generated<number>;
878
+ availableAt: Generated<Timestamp>;
879
+ claimedAt: Timestamp | null;
880
+ claimedBy: string | null;
881
+ completedAt: Timestamp | null;
882
+ createdAt: Generated<Timestamp>;
883
+ data: Generated<Json>;
884
+ entityId: string;
885
+ entityType: string;
886
+ eventType: string;
887
+ id: Generated<string>;
888
+ lastErrorCode: string | null;
889
+ lastErrorDetails: Json | null;
890
+ maxAttempts: Generated<number>;
891
+ requiresSensitiveInput: Generated<boolean>;
892
+ status: Generated<CoreFlowEventStatus>;
893
+ syncId: string | null;
894
+ targetConnectionId: string | null;
895
+ targetFlowId: string | null;
896
+ tenantId: string;
897
+ updatedAt: Generated<Timestamp>;
898
+ }
899
+ export interface CoreFlowEventDelivery {
900
+ attempts: Generated<number>;
901
+ availableAt: Generated<Timestamp>;
902
+ claimedAt: Timestamp | null;
903
+ claimedBy: string | null;
904
+ completedAt: Timestamp | null;
905
+ connectionId: string;
906
+ createdAt: Generated<Timestamp>;
907
+ eventId: string;
908
+ flowId: string;
909
+ id: Generated<string>;
910
+ lastErrorCode: string | null;
911
+ lastErrorDetails: Json | null;
912
+ maxAttempts: Generated<number>;
913
+ status: Generated<CoreFlowEventStatus>;
914
+ tenantId: string;
915
+ triggerRunId: string | null;
916
+ updatedAt: Generated<Timestamp>;
917
+ }
918
+ export interface CoreFlowEventOperation {
919
+ action: CoreFlowEventOperationAction;
920
+ actor: string;
921
+ createdAt: Generated<Timestamp>;
922
+ eventId: string;
923
+ id: Generated<string>;
924
+ previousStatus: CoreFlowEventStatus;
925
+ reasonCode: string;
926
+ }
927
+ export interface CoreFlowEventSecret {
928
+ createdAt: Generated<Timestamp>;
929
+ encryptedPayload: string;
930
+ encryptionKeyId: string;
931
+ eventId: string;
932
+ expiresAt: Timestamp;
933
+ }
716
934
  export interface CoreFlowMapping {
717
935
  accountId: string | null;
718
936
  bookingChannelId: string | null;
@@ -751,6 +969,56 @@ export interface CoreIssueMessageOverwrite {
751
969
  pattern: string;
752
970
  updatedAt: Generated<Timestamp | null>;
753
971
  }
972
+ export interface CoreOperation {
973
+ createdAt: Generated<Timestamp>;
974
+ failureCode: string | null;
975
+ failureMessage: string | null;
976
+ finishedAt: Timestamp | null;
977
+ id: Generated<string>;
978
+ initiatedByUserId: string | null;
979
+ publicIdFormat: Generated<CoreOperationPublicIdFormat>;
980
+ retainUntil: Timestamp | null;
981
+ sourceVersion: Generated<Int8>;
982
+ startedAt: Timestamp | null;
983
+ status: Generated<CoreOperationStatus>;
984
+ tenantId: string;
985
+ type: CoreOperationType;
986
+ updatedAt: Generated<Timestamp>;
987
+ }
988
+ export interface CoreOperationBackfill {
989
+ completedAt: Timestamp | null;
990
+ createdAt: Generated<Timestamp>;
991
+ name: string;
992
+ updatedAt: Generated<Timestamp>;
993
+ }
994
+ export interface CoreOperationProjectionOutbox {
995
+ attempts: Generated<number>;
996
+ availableAt: Generated<Timestamp>;
997
+ createdAt: Generated<Timestamp>;
998
+ id: Generated<string>;
999
+ lastError: string | null;
1000
+ operationId: string;
1001
+ publishedAt: Timestamp | null;
1002
+ sourceVersion: Int8;
1003
+ }
1004
+ export interface CoreOperationResource {
1005
+ createdAt: Generated<Timestamp>;
1006
+ isPrimary: Generated<boolean>;
1007
+ operationId: string;
1008
+ resourceId: string;
1009
+ resourceType: CoreOperationResourceType;
1010
+ role: CoreOperationResourceRole;
1011
+ }
1012
+ export interface CoreOperationSource {
1013
+ finishedAt: Timestamp | null;
1014
+ operationId: string;
1015
+ required: Generated<boolean>;
1016
+ sourceId: string;
1017
+ sourceType: CoreOperationSourceType;
1018
+ sourceVersion: Generated<Int8>;
1019
+ startedAt: Timestamp | null;
1020
+ status: Generated<CoreOperationStatus>;
1021
+ }
754
1022
  export interface CoreSync {
755
1023
  automationId: string | null;
756
1024
  connectionId: string | null;
@@ -920,10 +1188,10 @@ export interface HealthAccountingIntegrityCase {
920
1188
  repair: Json;
921
1189
  resolutionClassification: HealthAccountingIntegrityResolutionClassification;
922
1190
  resolvedAt: Timestamp | null;
923
- reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
924
- reviewRationale: string | null;
925
1191
  reviewedAt: Timestamp | null;
926
1192
  reviewedBy: string | null;
1193
+ reviewRationale: string | null;
1194
+ reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
927
1195
  rootCause: string;
928
1196
  runId: string;
929
1197
  severity: HealthAccountingIntegritySeverity;
@@ -935,21 +1203,19 @@ export interface HealthAccountingIntegrityCase {
935
1203
  verification: Json;
936
1204
  version: Generated<Int8>;
937
1205
  }
938
- export interface HealthAccountingIntegrityOperatorEvent {
939
- actorId: string;
940
- caseId: string | null;
941
- caseVersion: Int8 | null;
942
- client: string;
1206
+ export interface HealthAccountingIntegrityComparisonFinding {
1207
+ caseKey: string;
1208
+ code: string;
1209
+ contentHash: string;
943
1210
  createdAt: Generated<Timestamp>;
1211
+ dataRegion: string;
1212
+ firstSeenAt: Timestamp;
944
1213
  id: Generated<string>;
945
- idempotencyKey: string;
946
- payload: Json;
947
- planId: string | null;
948
- rationale: string | null;
949
- requestId: string;
950
- stageId: string | null;
951
- targetId: string | null;
952
- type: string;
1214
+ recordId: string;
1215
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1216
+ severity: HealthAccountingIntegritySeverity;
1217
+ tenantId: string;
1218
+ updatedAt: Generated<Timestamp>;
953
1219
  }
954
1220
  export interface HealthAccountingIntegrityDelivery {
955
1221
  attempts: Generated<number>;
@@ -970,6 +1236,35 @@ export interface HealthAccountingIntegrityDelivery {
970
1236
  status: Generated<HealthAccountingIntegrityDeliveryStatus>;
971
1237
  updatedAt: Generated<Timestamp>;
972
1238
  }
1239
+ export interface HealthAccountingIntegrityDirtyRecord {
1240
+ claimToken: string | null;
1241
+ claimedUntil: Timestamp | null;
1242
+ computedAt: Timestamp | null;
1243
+ computedVersion: Generated<Int8>;
1244
+ createdAt: Generated<Timestamp>;
1245
+ dirtyAt: Generated<Timestamp>;
1246
+ dirtyVersion: Generated<Int8>;
1247
+ recordId: string;
1248
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1249
+ tenantId: string;
1250
+ updatedAt: Generated<Timestamp>;
1251
+ }
1252
+ export interface HealthAccountingIntegrityOperatorEvent {
1253
+ actorId: string;
1254
+ caseId: string | null;
1255
+ caseVersion: Int8 | null;
1256
+ client: string;
1257
+ createdAt: Generated<Timestamp>;
1258
+ id: Generated<string>;
1259
+ idempotencyKey: string;
1260
+ payload: Json;
1261
+ planId: string | null;
1262
+ rationale: string | null;
1263
+ requestId: string;
1264
+ stageId: string | null;
1265
+ targetId: string | null;
1266
+ type: string;
1267
+ }
973
1268
  export interface HealthAccountingIntegrityRepairPlan {
974
1269
  canceledAt: Timestamp | null;
975
1270
  code: string;
@@ -1049,11 +1344,11 @@ export interface HealthAccountingIntegrityRun {
1049
1344
  completedAt: Timestamp | null;
1050
1345
  createdAt: Generated<Timestamp>;
1051
1346
  dataRegion: string;
1052
- definitionVersion: number;
1053
- definitionVersionId: string | null;
1054
1347
  definitionArtifactHash: string | null;
1055
1348
  definitionTemplateId: string | null;
1056
1349
  definitionTemplateVersion: number | null;
1350
+ definitionVersion: number;
1351
+ definitionVersionId: string | null;
1057
1352
  environment: string;
1058
1353
  error: Json | null;
1059
1354
  evaluationId: string;
@@ -1073,6 +1368,16 @@ export interface HealthAccountingIntegrityRun {
1073
1368
  unchangedCaseCount: Generated<Int8>;
1074
1369
  updatedAt: Generated<Timestamp>;
1075
1370
  }
1371
+ export interface HealthAccountingIntegritySweepCursor {
1372
+ createdAt: Generated<Timestamp>;
1373
+ cycleStartedAt: Generated<Timestamp>;
1374
+ definitionsHash: string | null;
1375
+ lastCycleCompletedAt: Timestamp | null;
1376
+ lastRecordId: string | null;
1377
+ lastTenantId: string | null;
1378
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1379
+ updatedAt: Generated<Timestamp>;
1380
+ }
1076
1381
  export interface HealthAccountingIntegrityTransition {
1077
1382
  caseId: string;
1078
1383
  caseVersion: Int8;
@@ -1426,15 +1731,6 @@ export interface PublicLatestDuplicateEmails {
1426
1731
  name: string | null;
1427
1732
  status: string | null;
1428
1733
  }
1429
- export interface PublicLineClassificationUsageCapture {
1430
- createdAt: Generated<Timestamp>;
1431
- firstSeenAt: Timestamp | null;
1432
- id: Generated<string>;
1433
- kind: string;
1434
- lastSeenAt: Timestamp | null;
1435
- name: string;
1436
- tenantId: string;
1437
- }
1438
1734
  export interface PublicLineClassificationUsage {
1439
1735
  appId: string | null;
1440
1736
  createdAt: Generated<Timestamp>;
@@ -1456,6 +1752,15 @@ export interface PublicLineClassificationUsageBackfill {
1456
1752
  source: string;
1457
1753
  updatedAt: Generated<Timestamp>;
1458
1754
  }
1755
+ export interface PublicLineClassificationUsageCapture {
1756
+ createdAt: Generated<Timestamp>;
1757
+ firstSeenAt: Timestamp | null;
1758
+ id: Generated<string>;
1759
+ kind: string;
1760
+ lastSeenAt: Timestamp | null;
1761
+ name: string;
1762
+ tenantId: string;
1763
+ }
1459
1764
  export interface PublicListing {
1460
1765
  address: string | null;
1461
1766
  addressCity: string | null;
@@ -1775,8 +2080,15 @@ export interface PublicPlaidConnectSession {
1775
2080
  environment: string;
1776
2081
  errorCode: string | null;
1777
2082
  errorRetryable: boolean | null;
2083
+ exitedAt: Timestamp | null;
2084
+ exitErrorCode: string | null;
2085
+ exitErrorType: string | null;
2086
+ exitRequestId: string | null;
2087
+ exitView: string | null;
1778
2088
  expiresAt: Timestamp;
1779
2089
  id: Generated<string>;
2090
+ institutionId: string | null;
2091
+ institutionName: string | null;
1780
2092
  itemId: string | null;
1781
2093
  leaseExpiresAt: Timestamp | null;
1782
2094
  linkSessionId: string | null;
@@ -1845,6 +2157,7 @@ export interface PublicRecurringFeeType {
1845
2157
  name: string;
1846
2158
  }
1847
2159
  export interface PublicReservation {
2160
+ adults: number | null;
1848
2161
  bookedAt: Generated<Timestamp | null>;
1849
2162
  bookerName: string | null;
1850
2163
  bookingPlatform: string | null;
@@ -1863,6 +2176,7 @@ export interface PublicReservation {
1863
2176
  channelId: string | null;
1864
2177
  checkIn: Timestamp | null;
1865
2178
  checkOut: Timestamp | null;
2179
+ children: number | null;
1866
2180
  confirmationCode: string | null;
1867
2181
  connectionId: string | null;
1868
2182
  createdAt: Generated<Timestamp | null>;
@@ -2049,6 +2363,7 @@ export interface PublicTenant {
2049
2363
  billingAddressData: Json | null;
2050
2364
  billingAddressId: string | null;
2051
2365
  billingCustomerId: string | null;
2366
+ billingSubscriptionId: string | null;
2052
2367
  billingPartnerId: string | null;
2053
2368
  billingPaymentMethodType: string | null;
2054
2369
  billingPlan: string | null;
@@ -2129,6 +2444,16 @@ export interface PublicTenantUser {
2129
2444
  updatedAt: Generated<Timestamp | null>;
2130
2445
  userId: string;
2131
2446
  }
2447
+ export interface PublicConnectionOauthState {
2448
+ appId: string;
2449
+ connectionId: string | null;
2450
+ expiresAt: Timestamp;
2451
+ params: JsonObject;
2452
+ redirectUri: string;
2453
+ stateHash: string;
2454
+ tenantId: string;
2455
+ userId: string;
2456
+ }
2132
2457
  export interface PublicToken {
2133
2458
  createdAt: Generated<Timestamp>;
2134
2459
  expiresAt: Timestamp | null;
@@ -2365,10 +2690,13 @@ export interface WebhookSubscriptionSecret {
2365
2690
  encryptionKeyId: string;
2366
2691
  expiresAt: Timestamp | null;
2367
2692
  id: Generated<string>;
2693
+ reencryptionFailedAt: Timestamp | null;
2694
+ reencryptionFailureCode: string | null;
2368
2695
  revokedAt: Timestamp | null;
2369
2696
  subscriptionId: string;
2370
2697
  }
2371
2698
  export interface DB {
2699
+ "public.connectionOauthState": PublicConnectionOauthState;
2372
2700
  "accounting.account": AccountingAccount;
2373
2701
  "accounting.accountAssignment": AccountingAccountAssignment;
2374
2702
  "accounting.accountAssignmentLineType": AccountingAccountAssignmentLineType;
@@ -2406,6 +2734,10 @@ export interface DB {
2406
2734
  "accounting.party": AccountingParty;
2407
2735
  "accounting.rate": AccountingRate;
2408
2736
  "accounting.rateType": AccountingRateType;
2737
+ "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
2738
+ "accounting.reservationJournalInvalidation": AccountingReservationJournalInvalidation;
2739
+ "accounting.reservationJournalState": AccountingReservationJournalState;
2740
+ "accounting.reservationJournalStatementImpact": AccountingReservationJournalStatementImpact;
2409
2741
  "accounting.taxBehavior": AccountingTaxBehavior;
2410
2742
  "accounting.transaction": AccountingTransaction;
2411
2743
  "accounting.transactionAttachment": AccountingTransactionAttachment;
@@ -2419,7 +2751,10 @@ export interface DB {
2419
2751
  "audit.publicEvent": AuditPublicEvent;
2420
2752
  "audit.publicEventEntryChange": AuditPublicEventEntryChange;
2421
2753
  "audit.publicEventProjectionState": AuditPublicEventProjectionState;
2754
+ "billing.listingFact": BillingListingFact;
2755
+ "billing.listingFactReadiness": BillingListingFactReadiness;
2422
2756
  "core.activeStatus": CoreActiveStatus;
2757
+ "core.asyncOperationResult": CoreAsyncOperationResult;
2423
2758
  "core.change": CoreChange;
2424
2759
  "core.changeEntityType": CoreChangeEntityType;
2425
2760
  "core.changeLink": CoreChangeLink;
@@ -2427,10 +2762,23 @@ export interface DB {
2427
2762
  "core.changeStatus": CoreChangeStatus;
2428
2763
  "core.changeSyncType": CoreChangeSyncType;
2429
2764
  "core.changeType": CoreChangeType;
2765
+ "core.csvOperationResult": CoreCsvOperationResult;
2766
+ "core.emailDelivery": CoreEmailDelivery;
2767
+ "core.emailNotification": CoreEmailNotification;
2768
+ "core.exportJob": CoreExportJob;
2430
2769
  "core.flow": CoreFlow;
2770
+ "core.flowEvent": CoreFlowEvent;
2771
+ "core.flowEventDelivery": CoreFlowEventDelivery;
2772
+ "core.flowEventOperation": CoreFlowEventOperation;
2773
+ "core.flowEventSecret": CoreFlowEventSecret;
2431
2774
  "core.flowMapping": CoreFlowMapping;
2432
2775
  "core.flowSetting": CoreFlowSetting;
2433
2776
  "core.issueMessageOverwrite": CoreIssueMessageOverwrite;
2777
+ "core.operation": CoreOperation;
2778
+ "core.operationBackfill": CoreOperationBackfill;
2779
+ "core.operationProjectionOutbox": CoreOperationProjectionOutbox;
2780
+ "core.operationResource": CoreOperationResource;
2781
+ "core.operationSource": CoreOperationSource;
2434
2782
  "core.sync": CoreSync;
2435
2783
  "core.syncStatus": CoreSyncStatus;
2436
2784
  "core.syncSubtask": CoreSyncSubtask;
@@ -2448,8 +2796,11 @@ export interface DB {
2448
2796
  "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
2449
2797
  "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
2450
2798
  "health.accountingIntegrityCase": HealthAccountingIntegrityCase;
2451
- "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2799
+ "health.accountingIntegrityComparisonFinding": HealthAccountingIntegrityComparisonFinding;
2452
2800
  "health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
2801
+ "health.accountingIntegrityDirtyRecord": HealthAccountingIntegrityDirtyRecord;
2802
+ "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2803
+ "health.accountingIntegritySweepCursor": HealthAccountingIntegritySweepCursor;
2453
2804
  "health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
2454
2805
  "health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
2455
2806
  "health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;