@vrplatform/kysely 1.3.45-6564 → 1.3.45-784

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 (82) 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 +11 -0
  5. package/build/main/index.js +131 -26
  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 +109 -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 +23 -3
  21. package/build/main/test/index.js +35 -13
  22. package/build/main/test/index.js.map +1 -1
  23. package/build/main/v1.generated.d.ts +347 -37
  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/module/control-plane/index.d.ts +137 -0
  60. package/build/module/control-plane/index.js.map +1 -1
  61. package/build/module/index.d.ts +11 -0
  62. package/build/module/index.js +131 -26
  63. package/build/module/index.js.map +1 -1
  64. package/build/module/local/generate.js +1 -0
  65. package/build/module/local/generate.js.map +1 -1
  66. package/build/module/local/index.js +109 -8
  67. package/build/module/local/index.js.map +1 -1
  68. package/build/module/postgres-error.d.ts +3 -3
  69. package/build/module/postgres-error.js +4 -3
  70. package/build/module/postgres-error.js.map +1 -1
  71. package/build/module/query/tenant/status.d.ts +1 -1
  72. package/build/module/query/tenant/status.js +4 -2
  73. package/build/module/query/tenant/status.js.map +1 -1
  74. package/build/module/regional.d.ts +1 -0
  75. package/build/module/regional.js +1 -0
  76. package/build/module/regional.js.map +1 -1
  77. package/build/module/test/index.d.ts +23 -3
  78. package/build/module/test/index.js +34 -13
  79. package/build/module/test/index.js.map +1 -1
  80. package/build/module/v1.generated.d.ts +347 -37
  81. package/build/module/v1.generated.js.map +1 -1
  82. package/package.json +4 -2
@@ -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,7 +15,25 @@ 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";
@@ -33,7 +52,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
33
52
  export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
34
53
  export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
35
54
  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";
55
+ 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
56
  export type HealthTenantIssueSeverity = "error" | "warning";
38
57
  export type HealthTenantIssueStatus = "open" | "resolved";
39
58
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
@@ -52,9 +71,9 @@ export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
52
71
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
53
72
  export type WebhookApiVersion = "2026-07-01";
54
73
  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";
74
+ 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";
75
+ export type WebhookResourceType = "auditEvent" | "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
76
+ export type WebhookSubscriptionEventType = "audit.event.changed" | "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed";
58
77
  export type WebhookSubscriptionScope = "managedTeams" | "self";
59
78
  export type WebhookSubscriptionStatus = "active" | "disabled" | "pending";
60
79
  export interface AccountingAccount {
@@ -388,6 +407,45 @@ export interface AccountingRate {
388
407
  export interface AccountingRateType {
389
408
  name: string;
390
409
  }
410
+ export interface AccountingReservationJournalFreshnessControl {
411
+ createdAt: Generated<Timestamp>;
412
+ guardsEnabledAt: Timestamp | null;
413
+ tenantId: string;
414
+ updatedAt: Generated<Timestamp>;
415
+ }
416
+ export interface AccountingReservationJournalInvalidation {
417
+ actionId: string | null;
418
+ appliedAt: Timestamp | null;
419
+ coveredByEffectId: string | null;
420
+ createdAt: Generated<Timestamp>;
421
+ effectId: string | null;
422
+ failureCode: AccountingReservationJournalInvalidationFailure | null;
423
+ id: Generated<string>;
424
+ reservationId: string;
425
+ revision: Int8;
426
+ sourceResourceId: string | null;
427
+ sourceResourceType: CoreOperationResourceType | null;
428
+ tenantId: string;
429
+ }
430
+ export interface AccountingReservationJournalState {
431
+ appliedRevision: Generated<Int8>;
432
+ calculatedAt: Timestamp | null;
433
+ createdAt: Generated<Timestamp>;
434
+ desiredRevision: Generated<Int8>;
435
+ reservationId: string;
436
+ staleSince: Timestamp | null;
437
+ tenantId: string;
438
+ updatedAt: Generated<Timestamp>;
439
+ }
440
+ export interface AccountingReservationJournalStatementImpact {
441
+ createdAt: Generated<Timestamp>;
442
+ currency: string;
443
+ invalidationId: string;
444
+ listingId: string;
445
+ listingOwnershipPeriodId: string;
446
+ month: Timestamp;
447
+ tenantId: string;
448
+ }
391
449
  export interface AccountingTaxBehavior {
392
450
  name: string;
393
451
  }
@@ -410,10 +468,12 @@ export interface AccountingTransaction {
410
468
  matchStatus: Generated<string | null>;
411
469
  paidAt: Timestamp | null;
412
470
  paidStatus: Generated<string | null>;
471
+ recreatedFromTransactionId: string | null;
413
472
  recurringFeeId: string | null;
414
473
  recurringPattern: Json | null;
415
- recreatedFromTransactionId: string | null;
416
474
  recurringTemplateId: string | null;
475
+ returnedFromTransactionId: string | null;
476
+ returnEffectiveAt: Timestamp | null;
417
477
  /**
418
478
  * Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
419
479
  */
@@ -477,6 +537,9 @@ export interface AuditAction {
477
537
  actorId: string | null;
478
538
  actorLabel: string | null;
479
539
  actorName: string | null;
540
+ actorOrganizationId: string | null;
541
+ actorOrganizationName: string | null;
542
+ actorOrganizationType: AuditActorOrganizationType | null;
480
543
  actorType: AuditActionActorType;
481
544
  apiVersion: string;
482
545
  createdAt: Generated<Timestamp>;
@@ -582,6 +645,7 @@ export interface AuditMutation {
582
645
  id: Generated<string>;
583
646
  op: string;
584
647
  publicChanges: Generated<Json>;
648
+ publicOutcome: Json | null;
585
649
  rootEntityId: string | null;
586
650
  rootEntityType: string | null;
587
651
  subjectId: string;
@@ -597,8 +661,13 @@ export interface AuditPublicEvent {
597
661
  actorId: string | null;
598
662
  actorLabel: string | null;
599
663
  actorName: string | null;
664
+ actorOrganizationId: string | null;
665
+ actorOrganizationName: string | null;
666
+ actorOrganizationType: AuditActorOrganizationType | null;
600
667
  actorType: AuditActionActorType;
601
668
  affectedAccountIds: Generated<string[]>;
669
+ attemptedEntityChanges: Generated<Json>;
670
+ blockedBy: Generated<Json>;
602
671
  changedEntityTypes: Generated<string[]>;
603
672
  changedPaths: Generated<string[]>;
604
673
  entityChanges: Generated<Json>;
@@ -613,6 +682,7 @@ export interface AuditPublicEvent {
613
682
  projectionFingerprint: string;
614
683
  projectionVersion: Generated<number>;
615
684
  requestId: string | null;
685
+ recovery: Generated<Json>;
616
686
  revision: Generated<number>;
617
687
  rootEntityId: string;
618
688
  rootEntityType: string;
@@ -643,9 +713,42 @@ export interface AuditPublicEventProjectionState {
643
713
  retainedFrom: Timestamp | null;
644
714
  singleton: Generated<boolean>;
645
715
  }
716
+ export interface BillingListingFact {
717
+ activeListings: number;
718
+ billingPartnerId: string | null;
719
+ dataRegion: string;
720
+ effectiveAt: Timestamp;
721
+ id: Generated<string>;
722
+ reconciliation: Generated<boolean>;
723
+ recordedAt: Generated<Timestamp>;
724
+ sourceId: string;
725
+ sourceRevision: Int8 | null;
726
+ sourceType: BillingListingFactSourceType;
727
+ tenantId: string;
728
+ tenantName: string;
729
+ }
730
+ export interface BillingListingFactReadiness {
731
+ availableFrom: Timestamp | null;
732
+ legacyGapCount: number | null;
733
+ legacyImportedRows: number | null;
734
+ parityConfirmed: Generated<boolean>;
735
+ readyAt: Timestamp | null;
736
+ singleton: Generated<boolean>;
737
+ verifiedMonth: Timestamp | null;
738
+ }
646
739
  export interface CoreActiveStatus {
647
740
  name: string;
648
741
  }
742
+ export interface CoreAsyncOperationResult {
743
+ createdAt: Generated<Timestamp>;
744
+ errorMessage: string | null;
745
+ operationId: string;
746
+ result: Json | null;
747
+ status: Generated<CoreAsyncOperationResultStatus>;
748
+ tenantId: string;
749
+ type: CoreOperationType;
750
+ updatedAt: Generated<Timestamp>;
751
+ }
649
752
  export interface CoreChange {
650
753
  automationId: string | null;
651
754
  changeData: Json | null;
@@ -697,6 +800,62 @@ export interface CoreChangeSyncType {
697
800
  export interface CoreChangeType {
698
801
  name: string;
699
802
  }
803
+ export interface CoreCsvOperationResult {
804
+ connectionId: string;
805
+ createdAt: Generated<Timestamp>;
806
+ errorMessage: string | null;
807
+ kind: CoreCsvOperationResultKind;
808
+ result: Json | null;
809
+ status: Generated<CoreCsvOperationResultStatus>;
810
+ syncId: string;
811
+ tenantId: string;
812
+ updatedAt: Generated<Timestamp>;
813
+ }
814
+ export interface CoreEmailDelivery {
815
+ attemptCount: Generated<number>;
816
+ createdAt: Generated<Timestamp>;
817
+ failureCode: CoreEmailDeliveryFailureCode | null;
818
+ finishedAt: Timestamp | null;
819
+ httpStatus: number | null;
820
+ id: Generated<string>;
821
+ lastAttemptAt: Timestamp | null;
822
+ notificationId: string;
823
+ postmarkErrorCode: number | null;
824
+ postmarkMessageId: string | null;
825
+ status: Generated<CoreEmailDeliveryStatus>;
826
+ submittedAt: Timestamp | null;
827
+ tenantId: string;
828
+ triggerRunId: string | null;
829
+ updatedAt: Generated<Timestamp>;
830
+ userId: string;
831
+ }
832
+ export interface CoreEmailNotification {
833
+ createdAt: Generated<Timestamp>;
834
+ finishedAt: Timestamp | null;
835
+ id: string;
836
+ ownerStatementId: string;
837
+ recipientsResolvedAt: Timestamp | null;
838
+ startedAt: Timestamp | null;
839
+ status: Generated<CoreEmailNotificationStatus>;
840
+ tenantId: string;
841
+ triggerRunId: string | null;
842
+ updatedAt: Generated<Timestamp>;
843
+ }
844
+ export interface CoreExportJob {
845
+ createdAt: Generated<Timestamp>;
846
+ errorMessage: string | null;
847
+ fileId: string;
848
+ filename: string;
849
+ finishedAt: Timestamp | null;
850
+ format: CoreExportJobFormat;
851
+ id: string;
852
+ payload: Json;
853
+ startedAt: Timestamp | null;
854
+ status: Generated<CoreOperationStatus>;
855
+ taskId: CoreExportJobTaskId;
856
+ tenantId: string;
857
+ updatedAt: Generated<Timestamp>;
858
+ }
700
859
  export interface CoreFlow {
701
860
  appId: string;
702
861
  description: string | null;
@@ -713,6 +872,64 @@ export interface CoreFlow {
713
872
  uniqueRef: string;
714
873
  useGlobalMapping: Generated<boolean>;
715
874
  }
875
+ export interface CoreFlowEvent {
876
+ attempts: Generated<number>;
877
+ availableAt: Generated<Timestamp>;
878
+ claimedAt: Timestamp | null;
879
+ claimedBy: string | null;
880
+ completedAt: Timestamp | null;
881
+ createdAt: Generated<Timestamp>;
882
+ data: Generated<Json>;
883
+ entityId: string;
884
+ entityType: string;
885
+ eventType: string;
886
+ id: Generated<string>;
887
+ lastErrorCode: string | null;
888
+ lastErrorDetails: Json | null;
889
+ maxAttempts: Generated<number>;
890
+ requiresSensitiveInput: Generated<boolean>;
891
+ status: Generated<CoreFlowEventStatus>;
892
+ syncId: string | null;
893
+ targetConnectionId: string | null;
894
+ targetFlowId: string | null;
895
+ tenantId: string;
896
+ updatedAt: Generated<Timestamp>;
897
+ }
898
+ export interface CoreFlowEventDelivery {
899
+ attempts: Generated<number>;
900
+ availableAt: Generated<Timestamp>;
901
+ claimedAt: Timestamp | null;
902
+ claimedBy: string | null;
903
+ completedAt: Timestamp | null;
904
+ connectionId: string;
905
+ createdAt: Generated<Timestamp>;
906
+ eventId: string;
907
+ flowId: string;
908
+ id: Generated<string>;
909
+ lastErrorCode: string | null;
910
+ lastErrorDetails: Json | null;
911
+ maxAttempts: Generated<number>;
912
+ status: Generated<CoreFlowEventStatus>;
913
+ tenantId: string;
914
+ triggerRunId: string | null;
915
+ updatedAt: Generated<Timestamp>;
916
+ }
917
+ export interface CoreFlowEventOperation {
918
+ action: CoreFlowEventOperationAction;
919
+ actor: string;
920
+ createdAt: Generated<Timestamp>;
921
+ eventId: string;
922
+ id: Generated<string>;
923
+ previousStatus: CoreFlowEventStatus;
924
+ reasonCode: string;
925
+ }
926
+ export interface CoreFlowEventSecret {
927
+ createdAt: Generated<Timestamp>;
928
+ encryptedPayload: string;
929
+ encryptionKeyId: string;
930
+ eventId: string;
931
+ expiresAt: Timestamp;
932
+ }
716
933
  export interface CoreFlowMapping {
717
934
  accountId: string | null;
718
935
  bookingChannelId: string | null;
@@ -751,6 +968,56 @@ export interface CoreIssueMessageOverwrite {
751
968
  pattern: string;
752
969
  updatedAt: Generated<Timestamp | null>;
753
970
  }
971
+ export interface CoreOperation {
972
+ createdAt: Generated<Timestamp>;
973
+ failureCode: string | null;
974
+ failureMessage: string | null;
975
+ finishedAt: Timestamp | null;
976
+ id: Generated<string>;
977
+ initiatedByUserId: string | null;
978
+ publicIdFormat: Generated<CoreOperationPublicIdFormat>;
979
+ retainUntil: Timestamp | null;
980
+ sourceVersion: Generated<Int8>;
981
+ startedAt: Timestamp | null;
982
+ status: Generated<CoreOperationStatus>;
983
+ tenantId: string;
984
+ type: CoreOperationType;
985
+ updatedAt: Generated<Timestamp>;
986
+ }
987
+ export interface CoreOperationBackfill {
988
+ completedAt: Timestamp | null;
989
+ createdAt: Generated<Timestamp>;
990
+ name: string;
991
+ updatedAt: Generated<Timestamp>;
992
+ }
993
+ export interface CoreOperationProjectionOutbox {
994
+ attempts: Generated<number>;
995
+ availableAt: Generated<Timestamp>;
996
+ createdAt: Generated<Timestamp>;
997
+ id: Generated<string>;
998
+ lastError: string | null;
999
+ operationId: string;
1000
+ publishedAt: Timestamp | null;
1001
+ sourceVersion: Int8;
1002
+ }
1003
+ export interface CoreOperationResource {
1004
+ createdAt: Generated<Timestamp>;
1005
+ isPrimary: Generated<boolean>;
1006
+ operationId: string;
1007
+ resourceId: string;
1008
+ resourceType: CoreOperationResourceType;
1009
+ role: CoreOperationResourceRole;
1010
+ }
1011
+ export interface CoreOperationSource {
1012
+ finishedAt: Timestamp | null;
1013
+ operationId: string;
1014
+ required: Generated<boolean>;
1015
+ sourceId: string;
1016
+ sourceType: CoreOperationSourceType;
1017
+ sourceVersion: Generated<Int8>;
1018
+ startedAt: Timestamp | null;
1019
+ status: Generated<CoreOperationStatus>;
1020
+ }
754
1021
  export interface CoreSync {
755
1022
  automationId: string | null;
756
1023
  connectionId: string | null;
@@ -920,10 +1187,10 @@ export interface HealthAccountingIntegrityCase {
920
1187
  repair: Json;
921
1188
  resolutionClassification: HealthAccountingIntegrityResolutionClassification;
922
1189
  resolvedAt: Timestamp | null;
923
- reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
924
- reviewRationale: string | null;
925
1190
  reviewedAt: Timestamp | null;
926
1191
  reviewedBy: string | null;
1192
+ reviewRationale: string | null;
1193
+ reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
927
1194
  rootCause: string;
928
1195
  runId: string;
929
1196
  severity: HealthAccountingIntegritySeverity;
@@ -935,22 +1202,6 @@ export interface HealthAccountingIntegrityCase {
935
1202
  verification: Json;
936
1203
  version: Generated<Int8>;
937
1204
  }
938
- export interface HealthAccountingIntegrityOperatorEvent {
939
- actorId: string;
940
- caseId: string | null;
941
- caseVersion: Int8 | null;
942
- client: string;
943
- createdAt: Generated<Timestamp>;
944
- 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;
953
- }
954
1205
  export interface HealthAccountingIntegrityDelivery {
955
1206
  attempts: Generated<number>;
956
1207
  caseId: string | null;
@@ -970,6 +1221,22 @@ export interface HealthAccountingIntegrityDelivery {
970
1221
  status: Generated<HealthAccountingIntegrityDeliveryStatus>;
971
1222
  updatedAt: Generated<Timestamp>;
972
1223
  }
1224
+ export interface HealthAccountingIntegrityOperatorEvent {
1225
+ actorId: string;
1226
+ caseId: string | null;
1227
+ caseVersion: Int8 | null;
1228
+ client: string;
1229
+ createdAt: Generated<Timestamp>;
1230
+ id: Generated<string>;
1231
+ idempotencyKey: string;
1232
+ payload: Json;
1233
+ planId: string | null;
1234
+ rationale: string | null;
1235
+ requestId: string;
1236
+ stageId: string | null;
1237
+ targetId: string | null;
1238
+ type: string;
1239
+ }
973
1240
  export interface HealthAccountingIntegrityRepairPlan {
974
1241
  canceledAt: Timestamp | null;
975
1242
  code: string;
@@ -1049,11 +1316,11 @@ export interface HealthAccountingIntegrityRun {
1049
1316
  completedAt: Timestamp | null;
1050
1317
  createdAt: Generated<Timestamp>;
1051
1318
  dataRegion: string;
1052
- definitionVersion: number;
1053
- definitionVersionId: string | null;
1054
1319
  definitionArtifactHash: string | null;
1055
1320
  definitionTemplateId: string | null;
1056
1321
  definitionTemplateVersion: number | null;
1322
+ definitionVersion: number;
1323
+ definitionVersionId: string | null;
1057
1324
  environment: string;
1058
1325
  error: Json | null;
1059
1326
  evaluationId: string;
@@ -1426,15 +1693,6 @@ export interface PublicLatestDuplicateEmails {
1426
1693
  name: string | null;
1427
1694
  status: string | null;
1428
1695
  }
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
1696
  export interface PublicLineClassificationUsage {
1439
1697
  appId: string | null;
1440
1698
  createdAt: Generated<Timestamp>;
@@ -1456,6 +1714,15 @@ export interface PublicLineClassificationUsageBackfill {
1456
1714
  source: string;
1457
1715
  updatedAt: Generated<Timestamp>;
1458
1716
  }
1717
+ export interface PublicLineClassificationUsageCapture {
1718
+ createdAt: Generated<Timestamp>;
1719
+ firstSeenAt: Timestamp | null;
1720
+ id: Generated<string>;
1721
+ kind: string;
1722
+ lastSeenAt: Timestamp | null;
1723
+ name: string;
1724
+ tenantId: string;
1725
+ }
1459
1726
  export interface PublicListing {
1460
1727
  address: string | null;
1461
1728
  addressCity: string | null;
@@ -1775,8 +2042,15 @@ export interface PublicPlaidConnectSession {
1775
2042
  environment: string;
1776
2043
  errorCode: string | null;
1777
2044
  errorRetryable: boolean | null;
2045
+ exitedAt: Timestamp | null;
2046
+ exitErrorCode: string | null;
2047
+ exitErrorType: string | null;
2048
+ exitRequestId: string | null;
2049
+ exitView: string | null;
1778
2050
  expiresAt: Timestamp;
1779
2051
  id: Generated<string>;
2052
+ institutionId: string | null;
2053
+ institutionName: string | null;
1780
2054
  itemId: string | null;
1781
2055
  leaseExpiresAt: Timestamp | null;
1782
2056
  linkSessionId: string | null;
@@ -1845,6 +2119,7 @@ export interface PublicRecurringFeeType {
1845
2119
  name: string;
1846
2120
  }
1847
2121
  export interface PublicReservation {
2122
+ adults: number | null;
1848
2123
  bookedAt: Generated<Timestamp | null>;
1849
2124
  bookerName: string | null;
1850
2125
  bookingPlatform: string | null;
@@ -1863,6 +2138,7 @@ export interface PublicReservation {
1863
2138
  channelId: string | null;
1864
2139
  checkIn: Timestamp | null;
1865
2140
  checkOut: Timestamp | null;
2141
+ children: number | null;
1866
2142
  confirmationCode: string | null;
1867
2143
  connectionId: string | null;
1868
2144
  createdAt: Generated<Timestamp | null>;
@@ -2049,6 +2325,7 @@ export interface PublicTenant {
2049
2325
  billingAddressData: Json | null;
2050
2326
  billingAddressId: string | null;
2051
2327
  billingCustomerId: string | null;
2328
+ billingSubscriptionId: string | null;
2052
2329
  billingPartnerId: string | null;
2053
2330
  billingPaymentMethodType: string | null;
2054
2331
  billingPlan: string | null;
@@ -2129,6 +2406,16 @@ export interface PublicTenantUser {
2129
2406
  updatedAt: Generated<Timestamp | null>;
2130
2407
  userId: string;
2131
2408
  }
2409
+ export interface PublicConnectionOauthState {
2410
+ appId: string;
2411
+ connectionId: string | null;
2412
+ expiresAt: Timestamp;
2413
+ params: JsonObject;
2414
+ redirectUri: string;
2415
+ stateHash: string;
2416
+ tenantId: string;
2417
+ userId: string;
2418
+ }
2132
2419
  export interface PublicToken {
2133
2420
  createdAt: Generated<Timestamp>;
2134
2421
  expiresAt: Timestamp | null;
@@ -2365,10 +2652,13 @@ export interface WebhookSubscriptionSecret {
2365
2652
  encryptionKeyId: string;
2366
2653
  expiresAt: Timestamp | null;
2367
2654
  id: Generated<string>;
2655
+ reencryptionFailedAt: Timestamp | null;
2656
+ reencryptionFailureCode: string | null;
2368
2657
  revokedAt: Timestamp | null;
2369
2658
  subscriptionId: string;
2370
2659
  }
2371
2660
  export interface DB {
2661
+ "public.connectionOauthState": PublicConnectionOauthState;
2372
2662
  "accounting.account": AccountingAccount;
2373
2663
  "accounting.accountAssignment": AccountingAccountAssignment;
2374
2664
  "accounting.accountAssignmentLineType": AccountingAccountAssignmentLineType;
@@ -2406,6 +2696,10 @@ export interface DB {
2406
2696
  "accounting.party": AccountingParty;
2407
2697
  "accounting.rate": AccountingRate;
2408
2698
  "accounting.rateType": AccountingRateType;
2699
+ "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
2700
+ "accounting.reservationJournalInvalidation": AccountingReservationJournalInvalidation;
2701
+ "accounting.reservationJournalState": AccountingReservationJournalState;
2702
+ "accounting.reservationJournalStatementImpact": AccountingReservationJournalStatementImpact;
2409
2703
  "accounting.taxBehavior": AccountingTaxBehavior;
2410
2704
  "accounting.transaction": AccountingTransaction;
2411
2705
  "accounting.transactionAttachment": AccountingTransactionAttachment;
@@ -2419,7 +2713,10 @@ export interface DB {
2419
2713
  "audit.publicEvent": AuditPublicEvent;
2420
2714
  "audit.publicEventEntryChange": AuditPublicEventEntryChange;
2421
2715
  "audit.publicEventProjectionState": AuditPublicEventProjectionState;
2716
+ "billing.listingFact": BillingListingFact;
2717
+ "billing.listingFactReadiness": BillingListingFactReadiness;
2422
2718
  "core.activeStatus": CoreActiveStatus;
2719
+ "core.asyncOperationResult": CoreAsyncOperationResult;
2423
2720
  "core.change": CoreChange;
2424
2721
  "core.changeEntityType": CoreChangeEntityType;
2425
2722
  "core.changeLink": CoreChangeLink;
@@ -2427,10 +2724,23 @@ export interface DB {
2427
2724
  "core.changeStatus": CoreChangeStatus;
2428
2725
  "core.changeSyncType": CoreChangeSyncType;
2429
2726
  "core.changeType": CoreChangeType;
2727
+ "core.csvOperationResult": CoreCsvOperationResult;
2728
+ "core.emailDelivery": CoreEmailDelivery;
2729
+ "core.emailNotification": CoreEmailNotification;
2730
+ "core.exportJob": CoreExportJob;
2430
2731
  "core.flow": CoreFlow;
2732
+ "core.flowEvent": CoreFlowEvent;
2733
+ "core.flowEventDelivery": CoreFlowEventDelivery;
2734
+ "core.flowEventOperation": CoreFlowEventOperation;
2735
+ "core.flowEventSecret": CoreFlowEventSecret;
2431
2736
  "core.flowMapping": CoreFlowMapping;
2432
2737
  "core.flowSetting": CoreFlowSetting;
2433
2738
  "core.issueMessageOverwrite": CoreIssueMessageOverwrite;
2739
+ "core.operation": CoreOperation;
2740
+ "core.operationBackfill": CoreOperationBackfill;
2741
+ "core.operationProjectionOutbox": CoreOperationProjectionOutbox;
2742
+ "core.operationResource": CoreOperationResource;
2743
+ "core.operationSource": CoreOperationSource;
2434
2744
  "core.sync": CoreSync;
2435
2745
  "core.syncStatus": CoreSyncStatus;
2436
2746
  "core.syncSubtask": CoreSyncSubtask;
@@ -2448,8 +2758,8 @@ export interface DB {
2448
2758
  "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
2449
2759
  "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
2450
2760
  "health.accountingIntegrityCase": HealthAccountingIntegrityCase;
2451
- "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2452
2761
  "health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
2762
+ "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2453
2763
  "health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
2454
2764
  "health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
2455
2765
  "health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;