@vrplatform/kysely 1.3.45-stage.4321 → 1.3.45-stage.43213460407

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 (325) hide show
  1. package/build/.data.tar +2 -2
  2. package/build/main/camel-case/index.d.ts +4 -4
  3. package/build/main/camel-case/index.js +3 -2
  4. package/build/main/camel-case/index.js.map +1 -1
  5. package/build/main/connect-handoff.d.ts +12 -0
  6. package/build/main/connect-handoff.js +73 -0
  7. package/build/main/connect-handoff.js.map +1 -0
  8. package/build/main/control-plane/index.d.ts +382 -14
  9. package/build/main/control-plane/index.js +71 -0
  10. package/build/main/control-plane/index.js.map +1 -1
  11. package/build/main/domain.d.ts +4 -0
  12. package/build/main/domain.js +3 -0
  13. package/build/main/domain.js.map +1 -0
  14. package/build/main/error.d.ts +2 -1
  15. package/build/main/error.js +2 -1
  16. package/build/main/error.js.map +1 -1
  17. package/build/main/index.d.ts +55 -15
  18. package/build/main/index.js +492 -66
  19. package/build/main/index.js.map +1 -1
  20. package/build/main/isomorphic.d.ts +6 -6
  21. package/build/main/isomorphic.js +4 -8
  22. package/build/main/isomorphic.js.map +1 -1
  23. package/build/main/local/digest.d.ts +3 -3
  24. package/build/main/local/digest.js.map +1 -1
  25. package/build/main/local/generate.js +15 -13
  26. package/build/main/local/generate.js.map +1 -1
  27. package/build/main/local/index.d.ts +5 -1
  28. package/build/main/local/index.js +346 -12
  29. package/build/main/local/index.js.map +1 -1
  30. package/build/main/local/prune-pulled-schema.js +4 -1
  31. package/build/main/local/prune-pulled-schema.js.map +1 -1
  32. package/build/main/migration-source.d.ts +4 -0
  33. package/build/main/migration-source.js +45 -0
  34. package/build/main/migration-source.js.map +1 -0
  35. package/build/main/migration.d.ts +7 -0
  36. package/build/main/migration.js +11 -0
  37. package/build/main/migration.js.map +1 -0
  38. package/build/main/pganalyze-comment-plugin/comment-transformer.js +3 -1
  39. package/build/main/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
  40. package/build/main/pganalyze-comment-plugin/index.js.map +1 -1
  41. package/build/main/plugins.d.ts +2 -2
  42. package/build/main/plugins.js.map +1 -1
  43. package/build/main/postgres-error.d.ts +9 -0
  44. package/build/main/postgres-error.js +28 -0
  45. package/build/main/postgres-error.js.map +1 -0
  46. package/build/main/query/index.d.ts +1 -0
  47. package/build/main/query/index.js +1 -0
  48. package/build/main/query/index.js.map +1 -1
  49. package/build/main/query/listing/status.d.ts +2 -12
  50. package/build/main/query/listing/status.js +35 -20
  51. package/build/main/query/listing/status.js.map +1 -1
  52. package/build/main/query/tenant/billing-partner.d.ts +4 -0
  53. package/build/main/query/tenant/billing-partner.js +8 -0
  54. package/build/main/query/tenant/billing-partner.js.map +1 -0
  55. package/build/main/query/tenant/feature-enabled.d.ts +6 -0
  56. package/build/main/query/tenant/feature-enabled.js +30 -0
  57. package/build/main/query/tenant/feature-enabled.js.map +1 -0
  58. package/build/main/query/tenant/index.d.ts +4 -0
  59. package/build/main/query/tenant/index.js +21 -0
  60. package/build/main/query/tenant/index.js.map +1 -0
  61. package/build/main/query/tenant/status.d.ts +9 -0
  62. package/build/main/query/tenant/status.js +32 -0
  63. package/build/main/query/tenant/status.js.map +1 -0
  64. package/build/main/query/tenant/where-uuid-in.d.ts +2 -0
  65. package/build/main/query/tenant/where-uuid-in.js +14 -0
  66. package/build/main/query/tenant/where-uuid-in.js.map +1 -0
  67. package/build/main/regional.d.ts +31 -4
  68. package/build/main/regional.js +69 -8
  69. package/build/main/regional.js.map +1 -1
  70. package/build/main/test/index.d.ts +21 -11
  71. package/build/main/test/index.js +31 -26
  72. package/build/main/test/index.js.map +1 -1
  73. package/build/main/transaction.d.ts +3 -3
  74. package/build/main/transaction.js.map +1 -1
  75. package/build/main/v1.generated.d.ts +1266 -90
  76. package/build/main/v1.generated.js.map +1 -1
  77. package/build/migrations-v2/0000000000000-baseline.ts +5 -0
  78. package/build/migrations-v2/0000000000001-public-audit-events-v2.ts +137 -0
  79. package/build/migrations-v2/0000000000002-audit-recovery-watermarks.ts +30 -0
  80. package/build/migrations-v2/0000000000003-audit-effect-recovery-watermark.ts +13 -0
  81. package/build/migrations-v2/0000000000004-audit-event-projected-at.ts +15 -0
  82. package/build/migrations-v2/0000000000005-audit-recovery-indexes.ts +63 -0
  83. package/build/migrations-v2/0000000000006-audit-action-public-event-projected-at.ts +22 -0
  84. package/build/migrations-v2/0000000000007-audit-action-public-event-projected-at-backfill.ts +35 -0
  85. package/build/migrations-v2/0000000000008-global-user-attribution.ts +33 -0
  86. package/build/migrations-v2/0000000000008-team-issue-rule-state.ts +52 -0
  87. package/build/migrations-v2/0000000000009-reservation-issue-projections.ts +45 -0
  88. package/build/migrations-v2/0000000000010-bank-rule-application-bank-record-delete-cascade.ts +26 -0
  89. package/build/migrations-v2/0000000000011-guest-balance-journal-entry-lookup-index.ts +25 -0
  90. package/build/migrations-v2/0000000000012-trial-free-analytics-billing-status.ts +72 -0
  91. package/build/migrations-v2/0000000000013-ui-permission-bundles.ts +45 -0
  92. package/build/migrations-v2/0000000000014-ui-permission-bundle-top-up.ts +32 -0
  93. package/build/migrations-v2/0000000000015-durable-flow-events.ts +163 -0
  94. package/build/migrations-v2/0000000000016-billing-listing-facts.ts +539 -0
  95. package/build/migrations-v2/0000000000016-managed-team-access.ts +34 -0
  96. package/build/migrations-v2/0000000000017-drop-trial-until.ts +42 -0
  97. package/build/migrations-v2/0000000000017-webhook-secret-reencryption-failures.ts +18 -0
  98. package/build/migrations-v2/0000000000018-accounting-integrity-monitoring.ts +276 -0
  99. package/build/migrations-v2/0000000000018-durable-flow-event-sensitive-input.ts +28 -0
  100. package/build/migrations-v2/0000000000019-accounting-integrity-run-shards.ts +26 -0
  101. package/build/migrations-v2/0000000000019-asynchronous-operations.ts +736 -0
  102. package/build/migrations-v2/0000000000020-accounting-integrity-case-classification.ts +52 -0
  103. package/build/migrations-v2/0000000000021-payment-line-classification-monitor-indexes.ts +31 -0
  104. package/build/migrations-v2/0000000000022-accounting-integrity-controlled-repairs.ts +281 -0
  105. package/build/migrations-v2/0000000000023-line-classification-usage.ts +325 -0
  106. package/build/migrations-v2/0000000000024-tenant-region-migration.ts +108 -0
  107. package/build/migrations-v2/0000000000025-partner-ach-denial-default.ts +30 -0
  108. package/build/migrations-v2/0000000000026-line-classification-usage-capture.ts +399 -0
  109. package/build/migrations-v2/0000000000027-payout-replacement-chain.ts +27 -0
  110. package/build/migrations-v2/0000000000028-accounting-integrity-operator-workflow.ts +108 -0
  111. package/build/migrations-v2/0000000000029-accounting-integrity-definition-artifacts.ts +40 -0
  112. package/build/migrations-v2/0000000000030-accounting-integrity-review-metadata-compatibility.ts +49 -0
  113. package/build/migrations-v2/0000000000031-ui-permission-role-simplification.ts +70 -0
  114. package/build/migrations-v2/0000000000032-tenant-delete-ownership-cascades.ts +44 -0
  115. package/build/migrations-v2/0000000000033-plaid-connect-session-telemetry.ts +31 -0
  116. package/build/migrations-v2/0000000000033-reservation-issue-seed-bucket-index.ts +19 -0
  117. package/build/migrations-v2/0000000000034-retire-recent-classification-indexes.ts +29 -0
  118. package/build/migrations-v2/0000000000035-core-change-autovacuum.ts +24 -0
  119. package/build/migrations-v2/0000000000036-journal-entry-inactive-reason-constraint.ts +33 -0
  120. package/build/migrations-v2/0000000000037-journal-entry-inactive-reasons.ts +19 -0
  121. package/build/{migrations/0000000000023-journal-entry-currency-mismatch-reason.ts → migrations-v2/0000000000038-journal-entry-group-inactive-reason.ts} +4 -4
  122. package/build/migrations-v2/0000000000039-reservation-guest-breakdown.ts +19 -0
  123. package/build/migrations-v2/0000000000040-csv-import-source-identity-index.ts +23 -0
  124. package/build/migrations-v2/0000000000041-payment-returns.ts +38 -0
  125. package/build/migrations-v2/0000000000042-operation-resource-types.ts +609 -0
  126. package/build/migrations-v2/0000000000043-reservation-journal-freshness.ts +149 -0
  127. package/build/migrations-v2/0000000000044-reservation-journal-freshness-backfill.ts +254 -0
  128. package/build/migrations-v2/0000000000045-reservation-journal-freshness-revision-repair.ts +83 -0
  129. package/build/migrations-v2/0000000000046-materialized-reservation-journal-operations.ts +709 -0
  130. package/build/migrations-v2/0000000000047-public-audit-completion.ts +77 -0
  131. package/build/migrations-v2/0000000000048-reservation-journal-full-refresh-repair.ts +136 -0
  132. package/build/migrations-v2/0000000000049-queued-journal-operation-failures.ts +60 -0
  133. package/build/migrations-v2/0000000000050-connection-oauth-state.ts +43 -0
  134. package/build/migrations-v2/0000000000051-owner-statement-email-delivery.ts +134 -0
  135. package/build/migrations-v2/0000000000052-fee-journal-lock-skip-operations.ts +59 -0
  136. package/build/migrations-v2/0000000000053-fee-journal-lock-skip-null-attempt.ts +44 -0
  137. package/build/migrations-v2/0000000000054-journal-refresh-issue-codes.ts +16 -0
  138. package/build/migrations-v2/0000000000055-tenant-billing-subscription.ts +8 -0
  139. package/build/migrations-v2/0000000000056-journal-operation-failure-precedence.ts +306 -0
  140. package/build/migrations-v2/0000000000057-journal-invalidation-failure-code.ts +28 -0
  141. package/build/migrations-v2/0000000000058-journal-invalidation-locked-failure.ts +16 -0
  142. package/build/migrations-v2/0000000000059-billing-active-listing-cross-region-partner.ts +135 -0
  143. package/build/migrations-v2/0000000000060-accounting-integrity-change-driven.ts +99 -0
  144. package/build/migrations-v2/0000000000061-tenant-pending-onboarding-status.ts +37 -0
  145. package/build/migrations-v2/0000000000062-statement-payout-operations.ts +16 -0
  146. package/build/migrations-v2/0000000000063-missing-account-assignments-issue-code.ts +13 -0
  147. package/build/migrations-v2/0000000000064-journal-invalidation-source-lookup-index.ts +26 -0
  148. package/build/migrations-v2/0000000000065-hasura-connection-event-credentials.ts +42 -0
  149. package/build/migrations-v2/0000000000066-recurring-fee-listing-subscription-match-by.ts +51 -0
  150. package/build/migrations-v2/0000000000067-connection-credential-metadata.ts +60 -0
  151. package/build/migrations-v2/0000000000068-connection-credential-version.ts +34 -0
  152. package/build/migrations-v2/0000000000069-owner-statement-contact-email-delivery.ts +84 -0
  153. package/build/migrations-v2/0000000000070-payment-writer-compatibility.ts +69 -0
  154. package/build/migrations-v2/0000000000071-payments.ts +532 -0
  155. package/build/migrations-v2/0000000000072-journal-entry-payment-index.ts +21 -0
  156. package/build/migrations-v2/0000000000073-batch-invalidation-operation-registration.ts +74 -0
  157. package/build/migrations-v2/0000000000074-owner-statement-email-history.ts +34 -0
  158. package/build/migrations-v2/0000000000075-tenant-deletion-lookup-indexes.ts +46 -0
  159. package/build/migrations-v2/0000000000076-tenant-onboarding-not-null.ts +23 -0
  160. package/build/migrations-v2/0000000000077-payment-writer-statement-attachment.ts +92 -0
  161. package/build/migrations-v2/0000000000078-trigger-timeout-indexes.ts +44 -0
  162. package/build/migrations-v2/0000000000079-core-change-tenant-statistics.ts +26 -0
  163. package/build/migrations-v2/0000000000080-drop-legacy-tracking-event.ts +60 -0
  164. package/build/migrations-v2/0000000000081-recurring-fee-planner-operation-status.ts +35 -0
  165. package/build/migrations-v2/0000000000082-reservation-search-trigram-indexes.ts +54 -0
  166. package/build/migrations-v2/0000000000083-journal-entry-deposit-lookup-index.ts +31 -0
  167. package/build/migrations-v2/0000000000084-journal-entry-reservation-revenue-indexes.ts +57 -0
  168. package/build/migrations-v2/0000000000085-owner-statement-link-email-template.ts +23 -0
  169. package/build/migrations-v2/0000000000086-contact-payment-setup.ts +72 -0
  170. package/build/migrations-v2/0000000000087-address-delete-fk-indexes.ts +30 -0
  171. package/build/migrations-v2/0000000000088-owner-statement-email-switch.ts +76 -0
  172. package/build/migrations-v2/0000000000089-contact-bank-details-requested-at.ts +21 -0
  173. package/build/migrations-v2/0000000000090-contact-bank-account-api-key.ts +22 -0
  174. package/build/migrations-v2/0000000000091-contact-bank-details-request.ts +78 -0
  175. package/build/migrations-v2/0000000000092-payment-provider-reference.ts +22 -0
  176. package/build/migrations-v2/0000000000093-payment-reversal-offline-undo.ts +18 -0
  177. package/build/migrations-v2/0000000000094-reservation-status-checkout-index.ts +37 -0
  178. package/build/migrations-v2/0000000000095-payment-batches.ts +196 -0
  179. package/build/migrations-v2/0000000000096-guide-ongoing-tasks-issue-codes.ts +26 -0
  180. package/build/migrations-v2/0000000000097-reservation-line-mapping-suggestions.ts +53 -0
  181. package/build/migrations-v2/0000000000098-cancelled-reservation-balances-issue-code.ts +13 -0
  182. package/build/migrations-v2/0000000000099-contact-bank-account-request-source.ts +28 -0
  183. package/build/migrations-v2/0000000000100-drop-regional-feature-flags.ts +105 -0
  184. package/build/migrations-v2/0000000000101-bank-record-match-source.ts +45 -0
  185. package/build/migrations-v2/0000000000102-owner-statement-email-one-template.ts +63 -0
  186. package/build/migrations-v2/0000000000103-reservation-line-mapping-update-operation.ts +10 -0
  187. package/build/migrations-v2/0000000000104-export-job-payment-batch-pdf.ts +12 -0
  188. package/build/migrations-v2/0000000000105-drop-regional-token.ts +60 -0
  189. package/build/migrations-v2/0000000000106-incremental-audit-action-source.ts +158 -0
  190. package/build/migrations-v2/0000000000107-audit-mutation-transaction-insert-index.ts +44 -0
  191. package/build/migrations-v2/0000000000108-reservation-stay-type.ts +24 -0
  192. package/build/migrations-v2/0000000000109-long-term-liabilities-category-order.ts +21 -0
  193. package/build/migrations-v2/0000000000110-pms-sync-failures-issue-code.ts +13 -0
  194. package/build/migrations-v2/0000000000110-reservation-line-type-taxable.ts +21 -0
  195. package/build/migrations-v2/0000000000111-reservation-line-type-suggestion-taxable.ts +20 -0
  196. package/build/migrations-v2/0000000000112-contact-payment-method-outside-default.ts +44 -0
  197. package/build/migrations-v2/0000000000113-merchant-fee-reference-assignment.ts +25 -0
  198. package/build/migrations-v2/0000000000114-recurring-fee-nights-filter.ts +32 -0
  199. package/build/migrations-v2/0000000000115-bank-records-with-suggested-rule-issue-code.ts +13 -0
  200. package/build/migrations-v2/0000000000116-guest-review.ts +45 -0
  201. package/build/migrations-v2/0000000000117-ramp-external-funding-accounts.ts +91 -0
  202. package/build/migrations-v2/0000000000118-pm-payout-assignment.ts +25 -0
  203. package/build/migrations-v2/0000000000119-chart-of-accounts-classifications.ts +46 -0
  204. package/build/migrations-v2/0000000000120-feedback.ts +41 -0
  205. package/build/migrations-v2/0000000000121-source-owner-block-calendar-index.ts +43 -0
  206. package/build/migrations-v2/0000000000122-recurring-fee-stay-types-filter.ts +20 -0
  207. package/build/migrations-v2/0000000000123-reservation-owner-stay-type-index.ts +40 -0
  208. package/build/migrations-v2/0000000000124-remove-tenant-test-and-billable-columns.ts +63 -0
  209. package/build/migrations-v2/0000000000125-ramp-application.ts +56 -0
  210. package/build/migrations-v2/0000000000126-advanced-deposits-update-operation.ts +10 -0
  211. package/build/migrations-v2/0000000000127-contact-1099-tax-details.ts +46 -0
  212. package/build/module/camel-case/index.d.ts +4 -4
  213. package/build/module/camel-case/index.js +4 -3
  214. package/build/module/camel-case/index.js.map +1 -1
  215. package/build/module/connect-handoff.d.ts +12 -0
  216. package/build/module/connect-handoff.js +70 -0
  217. package/build/module/connect-handoff.js.map +1 -0
  218. package/build/module/control-plane/index.d.ts +382 -14
  219. package/build/module/control-plane/index.js +58 -1
  220. package/build/module/control-plane/index.js.map +1 -1
  221. package/build/module/domain.d.ts +4 -0
  222. package/build/module/domain.js +2 -0
  223. package/build/module/domain.js.map +1 -0
  224. package/build/module/error.d.ts +2 -1
  225. package/build/module/error.js +3 -1
  226. package/build/module/error.js.map +1 -1
  227. package/build/module/index.d.ts +55 -15
  228. package/build/module/index.js +490 -64
  229. package/build/module/index.js.map +1 -1
  230. package/build/module/isomorphic.d.ts +6 -6
  231. package/build/module/isomorphic.js +2 -7
  232. package/build/module/isomorphic.js.map +1 -1
  233. package/build/module/local/digest.d.ts +3 -3
  234. package/build/module/local/digest.js.map +1 -1
  235. package/build/module/local/generate.js +15 -13
  236. package/build/module/local/generate.js.map +1 -1
  237. package/build/module/local/index.d.ts +5 -1
  238. package/build/module/local/index.js +347 -13
  239. package/build/module/local/index.js.map +1 -1
  240. package/build/module/local/prune-pulled-schema.js +4 -1
  241. package/build/module/local/prune-pulled-schema.js.map +1 -1
  242. package/build/module/migration-source.d.ts +4 -0
  243. package/build/module/migration-source.js +42 -0
  244. package/build/module/migration-source.js.map +1 -0
  245. package/build/module/migration.d.ts +7 -0
  246. package/build/module/migration.js +8 -0
  247. package/build/module/migration.js.map +1 -0
  248. package/build/module/pganalyze-comment-plugin/comment-transformer.js +3 -1
  249. package/build/module/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
  250. package/build/module/plugins.d.ts +2 -2
  251. package/build/module/plugins.js.map +1 -1
  252. package/build/module/postgres-error.d.ts +9 -0
  253. package/build/module/postgres-error.js +24 -0
  254. package/build/module/postgres-error.js.map +1 -0
  255. package/build/module/query/index.d.ts +1 -0
  256. package/build/module/query/index.js +1 -0
  257. package/build/module/query/index.js.map +1 -1
  258. package/build/module/query/listing/status.d.ts +2 -12
  259. package/build/module/query/listing/status.js +35 -18
  260. package/build/module/query/listing/status.js.map +1 -1
  261. package/build/module/query/tenant/billing-partner.d.ts +4 -0
  262. package/build/module/query/tenant/billing-partner.js +5 -0
  263. package/build/module/query/tenant/billing-partner.js.map +1 -0
  264. package/build/module/query/tenant/feature-enabled.d.ts +6 -0
  265. package/build/module/query/tenant/feature-enabled.js +27 -0
  266. package/build/module/query/tenant/feature-enabled.js.map +1 -0
  267. package/build/module/query/tenant/index.d.ts +4 -0
  268. package/build/module/query/tenant/index.js +5 -0
  269. package/build/module/query/tenant/index.js.map +1 -0
  270. package/build/module/query/tenant/status.d.ts +9 -0
  271. package/build/module/query/tenant/status.js +28 -0
  272. package/build/module/query/tenant/status.js.map +1 -0
  273. package/build/module/query/tenant/where-uuid-in.d.ts +2 -0
  274. package/build/module/query/tenant/where-uuid-in.js +11 -0
  275. package/build/module/query/tenant/where-uuid-in.js.map +1 -0
  276. package/build/module/regional.d.ts +31 -4
  277. package/build/module/regional.js +68 -8
  278. package/build/module/regional.js.map +1 -1
  279. package/build/module/test/index.d.ts +21 -11
  280. package/build/module/test/index.js +31 -26
  281. package/build/module/test/index.js.map +1 -1
  282. package/build/module/transaction.d.ts +3 -3
  283. package/build/module/transaction.js.map +1 -1
  284. package/build/module/v1.generated.d.ts +1266 -90
  285. package/build/module/v1.generated.js.map +1 -1
  286. package/package.json +19 -16
  287. package/build/migrations/0000000000001-init.ts +0 -5
  288. package/build/migrations/0000000000009-drop-store-schema.ts +0 -14
  289. package/build/migrations/0000000000010-bank-rules.ts +0 -190
  290. package/build/migrations/0000000000011-bank-rule-line-adjustments.ts +0 -65
  291. package/build/migrations/0000000000012-bank-rule-conditions.ts +0 -45
  292. package/build/migrations/0000000000013-bank-rule-name-unique.ts +0 -15
  293. package/build/migrations/0000000000014-bank-rule-drop-legacy-conditions.ts +0 -41
  294. package/build/migrations/0000000000015-booking-channel-logo-dev-provider.ts +0 -70
  295. package/build/migrations/0000000000016-owner-statement-draft-status.ts +0 -22
  296. package/build/migrations/0000000000017-tenant-migration-markers.ts +0 -18
  297. package/build/migrations/0000000000018-security-deposits-payable-category.ts +0 -63
  298. package/build/migrations/0000000000019-tenant-app-settings.ts +0 -76
  299. package/build/migrations/0000000000020-operating-opening-trial-balance.ts +0 -36
  300. package/build/migrations/0000000000021-audit-foreign-key-indexes.ts +0 -77
  301. package/build/migrations/0000000000022-opening-trial-balance-combined-columns.ts +0 -30
  302. package/build/migrations/0000000000024-listing-parent.ts +0 -37
  303. package/build/migrations/0000000000025-journal-entry-parent-listing.ts +0 -26
  304. package/build/migrations/0000000000026-booking-channel-logo-slots.ts +0 -89
  305. package/build/migrations/0000000000027-list-browse-performance-indexes.ts +0 -52
  306. package/build/migrations/0000000000028-flow-setting-status-jsonb.ts +0 -20
  307. package/build/migrations/0000000000029-tenant-slug.ts +0 -328
  308. package/build/migrations/0000000000030-pms-accounting-windows.ts +0 -50
  309. package/build/migrations/0000000000031-owner-statement-projection-listing-revision.ts +0 -20
  310. package/build/migrations/0000000000032-flow-event-listening.ts +0 -28
  311. package/build/migrations/0000000000033-opening-trial-balance-transaction.ts +0 -272
  312. package/build/migrations/0000000000034-historic-general-ledger.ts +0 -24
  313. package/build/migrations/0000000000035-tenant-regional-placement.ts +0 -37
  314. package/build/migrations/0000000000036-control-plane-projection-events.ts +0 -43
  315. package/build/migrations/0000000000037-tenant-guide-onboarding.ts +0 -21
  316. package/build/migrations/0000000000038-tracking-event-analytics-sink.ts +0 -31
  317. package/build/migrations/0000000000039-crunchy-region.ts +0 -86
  318. package/build/migrations/0000000000040-hostaway-region.ts +0 -72
  319. package/build/migrations/0000000000041-audit-tenant-fk.ts +0 -66
  320. package/build/migrations/0000000000042-ramp-staging-connect-params.ts +0 -35
  321. package/build/migrations/0000000000043-gl-pms-accounting-window-guard.ts +0 -125
  322. package/build/migrations/0000000000044-tenant-cross-region-fks.ts +0 -45
  323. package/build/migrations/0000000000045-cloudflare-region-env.ts +0 -100
  324. package/build/migrations/0000000000046-control-plane-outbox-alias.ts +0 -46
  325. package/build/migrations/0000000000047-ramp-contact-last-4-digits.ts +0 -16
@@ -3,14 +3,85 @@
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 AccountingBankAccountHolderType = "business" | "individual";
7
+ export type AccountingAccountConnectionMatchSource = "auto" | "manual";
8
+ export type AccountingAccountConnectionMatchStatus = "ambiguous" | "entityMismatch" | "matched" | "noMatch" | "unmapped";
9
+ export type AccountingAccountConnectionRole = "feed" | "funding";
10
+ export type AccountingBankAccountKind = "checking" | "savings";
11
+ export type AccountingBankDetailsRequestDelivery = "failed" | "queued" | "sent" | "skipped";
12
+ export type AccountingBankRecordMatchSource = "autoRule" | "manual" | "rule" | "suggestion";
13
+ export type AccountingCheckFormat = "standard" | "voucher";
14
+ export type AccountingCheckPrintMode = "plainPaper" | "preprinted";
15
+ export type AccountingContactPaymentMethod = "check" | "nachaAch" | "outside" | "rampAch";
16
+ export type AccountingContactTaxIdType = "ein" | "ssn";
17
+ export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "historicalLedger" | "inactiveAccount" | "listingInactive" | "listingOwnershipPeriodNotFound" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unbalancedGroupInactiveLeg" | "unknownInactiveReason";
7
18
  export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
19
+ export type AccountingNachaBankProfile = "bmo" | "generic" | "hancockWhitney" | "regions";
20
+ export type AccountingNachaSecCode = "CCD" | "PPD";
21
+ export type AccountingPaymentBatchType = "check" | "nacha";
22
+ export type AccountingPaymentCommandKind = "cancel" | "refresh" | "submit";
23
+ export type AccountingPaymentCommandOutcome = "accepted" | "conflictingEvidence" | "rejected" | "unknown";
24
+ export type AccountingPaymentIssue = "accountingConfiguration" | "allocationOutOfRange" | "amountMismatch" | "conflictingEvidence" | "currencyMismatch" | "overpayment" | "recipientMismatch" | "unknownOutcome" | "unknownStatus" | "unlinkedMovement" | "unmappedFundingAccount";
25
+ export type AccountingPaymentMethod = "ach" | "cash" | "check" | "other" | "wire";
26
+ export type AccountingPaymentObservationOrigin = "provider" | "review";
27
+ export type AccountingPaymentOrigin = "provider" | "vrp";
28
+ export type AccountingPaymentProvider = "ramp";
29
+ export type AccountingPaymentResourceType = "bill" | "payment" | "transfer";
30
+ export type AccountingPaymentReversalKind = "bankUnmatch" | "offlineReversal" | "offlineUndo" | "providerReturn";
31
+ export type AccountingPaymentStatus = "canceled" | "failed" | "pending" | "processing" | "scheduled" | "submitting" | "succeeded";
32
+ export type AccountingReservationJournalInvalidationFailure = "journal_configuration_invalid" | "journal_locked";
33
+ export type AccountingReservationLineMappingSuggestionSource = "llm" | "rule";
8
34
  export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
9
- export type AuditActionActorType = "automation" | "sync" | "system" | "user";
35
+ export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
36
+ export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
37
+ export type AuditActionActorType = "api_key" | "automation" | "sync" | "system" | "user";
38
+ export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
10
39
  export type AuditEffectAttemptStatus = "completed" | "failed" | "running" | "skipped_locked";
11
40
  export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "failed" | "pending" | "running";
12
41
  export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
42
+ export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
43
+ export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
44
+ export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
45
+ 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";
46
+ export type CoreAsyncOperationResultStatus = "completed" | "failed" | "queued";
47
+ export type CoreCsvOperationResultKind = "import" | "preview";
48
+ export type CoreCsvOperationResultStatus = "completed" | "failed" | "processing" | "queued";
49
+ export type CoreEmailDeliveryFailureCode = "inactive_recipient" | "invalid_provider_response" | "missing_email" | "notifications_disabled" | "postmark_not_configured" | "provider_rejected" | "task_failed" | "transport_failed" | "unsubscribed";
50
+ export type CoreEmailDeliveryStatus = "accepted" | "canceled" | "failed" | "queued" | "rejected" | "retrying" | "sending" | "skipped";
51
+ export type CoreEmailNotificationStatus = "canceled" | "completed" | "failed" | "processing" | "queued";
52
+ export type CoreEmailNotificationTrigger = "link_replacement" | "publish" | "resend";
53
+ export type CoreExportJobFormat = "csv" | "pdf" | "zip";
54
+ 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-payment-batch-pdf" | "api/export-route" | "api/export-trust-reconciliation-pdf";
55
+ export type CoreFlowEventOperationAction = "abandon" | "replay";
56
+ export type CoreFlowEventStatus = "canceled" | "dead" | "pending" | "processing" | "succeeded";
57
+ export type CoreOperationPublicIdFormat = "action" | "legacy";
58
+ export type CoreOperationResourceRole = "result" | "source" | "target";
59
+ export type CoreOperationResourceType = "bank-rule" | "connection" | "contact" | "file" | "flow" | "listing" | "recurring-fee" | "recurring-transaction-template" | "reservation" | "statement" | "team" | "transaction" | "webhook";
60
+ export type CoreOperationSourceType = "audit-action" | "export-job" | "sync" | "webhook-delivery";
61
+ export type CoreOperationStatus = "completed" | "failed" | "queued" | "running";
62
+ export type CoreOperationType = "ach-verification" | "advanced-deposits-update" | "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" | "reservation-line-mapping-update" | "statement-payout" | "statement-payout-preview" | "team-delete" | "team-demo-data" | "team-duplicate" | "team-initialize" | "transaction-journal-refresh" | "vri-statement-import" | "vri-team-migration" | "webhook-test";
13
63
  export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
64
+ export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
65
+ export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
66
+ export type HealthAccountingIntegrityConfidence = "probable" | "proven" | "unknown";
67
+ export type HealthAccountingIntegrityDeliveryChannel = "sentry" | "slack";
68
+ export type HealthAccountingIntegrityDeliveryStatus = "dead_letter" | "delivered" | "failed" | "pending" | "processing" | "suppressed";
69
+ export type HealthAccountingIntegrityDirtyRecordType = "reservation" | "transaction";
70
+ export type HealthAccountingIntegrityRepairPlanStatus = "active" | "canceled" | "completed" | "draft" | "failed" | "paused";
71
+ export type HealthAccountingIntegrityRepairScopeType = "case" | "tenant";
72
+ export type HealthAccountingIntegrityRepairStageStatus = "applying" | "approved" | "canceled" | "dry_run_passed" | "failed" | "paused" | "planned" | "verified" | "verifying";
73
+ export type HealthAccountingIntegrityRepairTargetStatus = "applied" | "applying" | "canceled" | "failed" | "paused" | "pending" | "verified" | "verifying";
74
+ export type HealthAccountingIntegrityRepairTransitionType = "approval_granted" | "approval_invalidated" | "canceled" | "completed" | "dry_run_passed" | "failed" | "paused" | "plan_activated" | "plan_created" | "stage_applying" | "stage_verified" | "target_applied" | "target_applying" | "target_verified" | "target_verifying";
75
+ export type HealthAccountingIntegrityResolutionClassification = "code_fix" | "configuration" | "data_repair" | "expected" | "false_positive" | "monitor_fix" | "unknown";
76
+ export type HealthAccountingIntegrityReviewStatus = "confirmed_issue" | "expected" | "false_positive" | "unreviewed";
77
+ export type HealthAccountingIntegrityRunStatus = "completed" | "failed" | "running" | "skipped";
78
+ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" | "warning";
79
+ export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
80
+ export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
81
+ export type HealthTenantIssueCategory = "criticalToSystem" | "criticalToUser";
82
+ export type HealthTenantIssueCode = "bankRecordsWithSuggestedMatch" | "bankRecordsWithSuggestedRule" | "brokenConnections" | "cancelledReservationBalances" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "departedReservationBalanceMismatch" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "journalConfigurationInvalid" | "journalLocked" | "journalUnbalanced" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "listingsNeedSetup" | "missingAccountAssignments" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "pmsSyncFailures" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unassignedGuestDeposits" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unmappedReservationLineTypes" | "unmatchedBankDeposits" | "unmatchedBankExpenses" | "unpaidReservations" | "unreconciledBankTransactions";
83
+ export type HealthTenantIssueSeverity = "error" | "warning";
84
+ export type HealthTenantIssueStatus = "open" | "resolved";
14
85
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
15
86
  export type Json = JsonValue;
16
87
  export type JsonArray = JsonValue[];
@@ -20,9 +91,24 @@ export type JsonObject = {
20
91
  export type JsonPrimitive = boolean | number | string | null;
21
92
  export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
22
93
  export type Numeric = ColumnType<string, number | string, number | string>;
94
+ export type PublicFeedbackKind = "bug" | "feedback" | "question";
23
95
  export type PublicFlowType = "pull" | "push";
96
+ export type PublicGuestReviewChannel = "airbnb" | "bookingCom" | "vrbo";
97
+ export type PublicPlaidConnectMode = "create" | "replace" | "update";
98
+ export type PublicPlaidConnectStatus = "awaitingConfiguration" | "completed" | "configuring" | "credentialsStored" | "discoveringAccounts" | "exchangeOutcomeUnknown" | "exchanging" | "expired" | "failed" | "pendingLink";
99
+ export type PublicRampApplicationEnvironment = "demo" | "production";
100
+ export type PublicRampApplicationStatus = "approved" | "followUpsRequired" | "inReview" | "invited" | "rejected" | "started" | "withdrawn";
24
101
  export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
102
+ export type PublicRecurringFeeListingSubscriptionMatchBy = "bookedDate" | "stayDate";
103
+ export type PublicReservationStayType = "guest" | "owner" | "ownerGuest";
25
104
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
105
+ export type WebhookApiVersion = "2026-07-01";
106
+ export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
107
+ 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";
108
+ export type WebhookResourceType = "auditEvent" | "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
109
+ export type WebhookSubscriptionEventType = "audit.event.changed" | "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed";
110
+ export type WebhookSubscriptionScope = "managedTeams" | "self";
111
+ export type WebhookSubscriptionStatus = "active" | "disabled" | "pending";
26
112
  export interface AccountingAccount {
27
113
  bankingCategory: string | null;
28
114
  bankingCurrency: string | null;
@@ -36,8 +122,6 @@ export interface AccountingAccount {
36
122
  createdAt: Generated<Timestamp | null>;
37
123
  id: Generated<string>;
38
124
  offsetAccountId: string | null;
39
- openingTrialBalanceCombinedCentTotal: Generated<Int8>;
40
- openingTrialBalanceUpdatedAt: Timestamp | null;
41
125
  status: Generated<string>;
42
126
  tenantId: string | null;
43
127
  title: string;
@@ -72,33 +156,23 @@ export interface AccountingAccountCategory {
72
156
  export interface AccountingAccountClassification {
73
157
  name: string;
74
158
  }
75
- export interface AccountingAccountReservationLineType {
76
- accountId: string | null;
77
- bookingChannel: string | null;
78
- createdAt: Generated<Timestamp>;
79
- id: Generated<string>;
80
- lineType: string;
81
- revenueRecognition: string | null;
82
- status: Generated<string | null>;
83
- tenantId: string;
84
- updatedAt: Generated<Timestamp>;
85
- }
86
- export interface AccountingAccountReservationRevRec {
87
- name: string;
88
- }
89
- export interface AccountingAccountType {
90
- name: string;
91
- }
92
- export interface AccountingBankAccount {
159
+ export interface AccountingAccountConnection {
93
160
  accountId: string | null;
94
161
  category: Generated<string | null>;
95
162
  connectionId: string | null;
96
163
  createdAt: Generated<Timestamp>;
97
164
  currency: string | null;
165
+ fundingEntityRef: string | null;
98
166
  holderName: string | null;
99
167
  id: Generated<string>;
100
168
  lastDigits: string | null;
169
+ matchCandidateAccountIds: Generated<string[]>;
170
+ matchedAt: Timestamp | null;
171
+ matchSource: AccountingAccountConnectionMatchSource | null;
172
+ matchStatus: AccountingAccountConnectionMatchStatus | null;
101
173
  name: string | null;
174
+ persistentRef: string | null;
175
+ role: Generated<AccountingAccountConnectionRole>;
102
176
  sourceId: string | null;
103
177
  startDate: Timestamp | null;
104
178
  /**
@@ -111,6 +185,61 @@ export interface AccountingBankAccount {
111
185
  uniqueRef: string | null;
112
186
  updatedAt: Generated<Timestamp>;
113
187
  }
188
+ export interface AccountingAccountPaymentFileSetting {
189
+ accountId: string;
190
+ accountKind: AccountingBankAccountKind | null;
191
+ accountNumber: string | null;
192
+ bankName: string | null;
193
+ checkEnabled: Generated<boolean>;
194
+ checkFormat: AccountingCheckFormat | null;
195
+ checkNextNumber: number | null;
196
+ checkOffsetX: Generated<number>;
197
+ checkOffsetY: Generated<number>;
198
+ checkPrintMode: AccountingCheckPrintMode | null;
199
+ companyAddress: Json | null;
200
+ companyName: string | null;
201
+ createdAt: Generated<Timestamp>;
202
+ nachaAcceptCanadian: Generated<boolean>;
203
+ nachaBankProfile: AccountingNachaBankProfile | null;
204
+ nachaCompanyId: string | null;
205
+ nachaCompanyName: string | null;
206
+ nachaDiscretionaryData: string | null;
207
+ nachaEnabled: Generated<boolean>;
208
+ nachaEntryDescription: string | null;
209
+ nachaImmediateDestination: string | null;
210
+ nachaImmediateDestinationName: string | null;
211
+ nachaImmediateOrigin: string | null;
212
+ nachaImmediateOriginName: string | null;
213
+ nachaOffsetEntry: Generated<boolean>;
214
+ nachaTestFileAt: Timestamp | null;
215
+ nachaTestFileValid: boolean | null;
216
+ routingNumber: string | null;
217
+ tenantId: string;
218
+ updatedAt: Generated<Timestamp>;
219
+ updatedByUserId: string | null;
220
+ }
221
+ export interface AccountingAccountReservationLineType {
222
+ accountId: string | null;
223
+ bookingChannel: string | null;
224
+ createdAt: Generated<Timestamp>;
225
+ id: Generated<string>;
226
+ isSuggestion: Generated<boolean>;
227
+ lineType: string;
228
+ revenueRecognition: string | null;
229
+ status: Generated<string | null>;
230
+ suggestionReason: string | null;
231
+ suggestionSource: AccountingReservationLineMappingSuggestionSource | null;
232
+ suggestionTaxable: boolean | null;
233
+ taxable: Generated<boolean>;
234
+ tenantId: string;
235
+ updatedAt: Generated<Timestamp>;
236
+ }
237
+ export interface AccountingAccountReservationRevRec {
238
+ name: string;
239
+ }
240
+ export interface AccountingAccountType {
241
+ name: string;
242
+ }
114
243
  export interface AccountingBankAccountCategory {
115
244
  name: string;
116
245
  }
@@ -118,8 +247,8 @@ export interface AccountingBankAccountType {
118
247
  name: string;
119
248
  }
120
249
  export interface AccountingBankRecord {
250
+ accountConnectionId: string | null;
121
251
  accountId: string | null;
122
- bankAccountId: string | null;
123
252
  calculatedCentBalance: number | null;
124
253
  calculatedCentTotalCorrection: number | null;
125
254
  centBalance: number | null;
@@ -139,8 +268,10 @@ export interface AccountingBankRecord {
139
268
  }
140
269
  export interface AccountingBankRecordTransactionPayment {
141
270
  bankRecordId: string;
271
+ bankRuleId: string | null;
142
272
  createdAt: Generated<Timestamp>;
143
273
  id: Generated<string>;
274
+ matchSource: AccountingBankRecordMatchSource | null;
144
275
  tenantId: string | null;
145
276
  transactionId: string;
146
277
  updatedAt: Generated<Timestamp>;
@@ -229,6 +360,8 @@ export interface AccountingBankRuleMode {
229
360
  }
230
361
  export interface AccountingContact {
231
362
  addressData: Json | null;
363
+ addressEditedAt: Timestamp | null;
364
+ bankDetailsRequestedAt: Timestamp | null;
232
365
  /**
233
366
  * When NULL, the type is "individual"
234
367
  */
@@ -236,9 +369,11 @@ export interface AccountingContact {
236
369
  connectionId: string | null;
237
370
  createdAt: Generated<Timestamp>;
238
371
  defaultAccountId: string | null;
372
+ defaultPaymentMethod: Generated<AccountingContactPaymentMethod | null>;
239
373
  email: string | null;
240
374
  firstName: string | null;
241
375
  id: Generated<string>;
376
+ is1099Exempt: Generated<boolean>;
242
377
  is1099PostalDelivery: Generated<boolean>;
243
378
  name: string;
244
379
  phone: string | null;
@@ -248,8 +383,11 @@ export interface AccountingContact {
248
383
  */
249
384
  shortRef: string | null;
250
385
  sourceId: string | null;
386
+ statementEmailEnabled: boolean | null;
387
+ statementEmailUnsubscribedAt: Timestamp | null;
251
388
  status: string | null;
252
389
  taxId: string | null;
390
+ taxIdType: AccountingContactTaxIdType | null;
253
391
  tenantId: string;
254
392
  /**
255
393
  * owner OR vendor
@@ -258,6 +396,34 @@ export interface AccountingContact {
258
396
  uniqueRef: string | null;
259
397
  updatedAt: Generated<Timestamp>;
260
398
  }
399
+ export interface AccountingContactBankDetailsRequest {
400
+ contactId: string;
401
+ createdAt: Generated<Timestamp>;
402
+ delivery: Generated<AccountingBankDetailsRequestDelivery>;
403
+ id: Generated<string>;
404
+ linkExpiresAt: Timestamp | null;
405
+ openedAt: Timestamp | null;
406
+ recipientEmail: string | null;
407
+ requestedAt: Timestamp;
408
+ requestedByUserId: string | null;
409
+ sentAt: Timestamp | null;
410
+ tenantId: string;
411
+ updatedAt: Generated<Timestamp>;
412
+ }
413
+ export interface AccountingContactBankAccount {
414
+ accountKind: AccountingBankAccountKind;
415
+ accountNumber: string;
416
+ contactId: string;
417
+ createdAt: Generated<Timestamp>;
418
+ holderName: string;
419
+ holderType: AccountingBankAccountHolderType;
420
+ routingNumber: string;
421
+ tenantId: string;
422
+ updatedAt: Generated<Timestamp>;
423
+ updatedByApiTokenId: string | null;
424
+ updatedByBankDetailsRequestId: string | null;
425
+ updatedByUserId: string | null;
426
+ }
261
427
  export interface AccountingContactCompanyType {
262
428
  name: string;
263
429
  }
@@ -283,6 +449,7 @@ export interface AccountingJournalEntry {
283
449
  listingOwnershipPeriodId: string | null;
284
450
  parentListingId: string | null;
285
451
  party: string | null;
452
+ paymentId: string | null;
286
453
  recurringFeeId: string | null;
287
454
  recurringFeeListingSubscriptionId: string | null;
288
455
  reservationId: string | null;
@@ -318,6 +485,12 @@ export interface AccountingOwnerStatementProjection {
318
485
  tenantId: string;
319
486
  variant: string;
320
487
  }
488
+ export interface AccountingOwnerStatementProjectionListingRevision {
489
+ listingId: string;
490
+ revision: Generated<Int8>;
491
+ tenantId: string;
492
+ updatedAt: Generated<Timestamp>;
493
+ }
321
494
  export interface AccountingOwnerStatementProjectionRevision {
322
495
  revision: Generated<Int8>;
323
496
  tenantId: string;
@@ -329,6 +502,155 @@ export interface AccountingPaidStatus {
329
502
  export interface AccountingParty {
330
503
  name: string;
331
504
  }
505
+ export interface AccountingPayment {
506
+ accountId: string | null;
507
+ amount: number;
508
+ bankRecordId: string | null;
509
+ closureConfirmedAt: Timestamp | null;
510
+ closureRequestedAt: Timestamp | null;
511
+ connectionId: string | null;
512
+ contactId: string | null;
513
+ createdAt: Generated<Timestamp>;
514
+ currency: string;
515
+ destinationRef: string | null;
516
+ fundingAccountConnectionId: string | null;
517
+ fundingAccountRef: string | null;
518
+ fundingCurrency: string | null;
519
+ fundingDebited: number | null;
520
+ fundingEntityRef: string | null;
521
+ fundingRefunded: number | null;
522
+ id: Generated<string>;
523
+ idempotencyKey: string;
524
+ initiatedAt: Timestamp | null;
525
+ isHistoricalCopy: Generated<boolean>;
526
+ issue: AccountingPaymentIssue | null;
527
+ method: AccountingPaymentMethod;
528
+ observedAt: Timestamp | null;
529
+ operationId: string | null;
530
+ origin: Generated<AccountingPaymentOrigin>;
531
+ postingDate: Timestamp | null;
532
+ provider: AccountingPaymentProvider | null;
533
+ providerBillRef: string | null;
534
+ providerMethod: string | null;
535
+ providerPaymentRef: string | null;
536
+ providerReference: string | null;
537
+ providerStatus: string | null;
538
+ providerUpdatedAt: Timestamp | null;
539
+ recipientRef: string | null;
540
+ reference: string | null;
541
+ replacesPaymentId: string | null;
542
+ requestedDate: Timestamp | null;
543
+ requestFingerprint: string;
544
+ scheduledAt: Timestamp | null;
545
+ settledAt: Timestamp | null;
546
+ status: Generated<AccountingPaymentStatus>;
547
+ tenantId: string;
548
+ terminalAt: Timestamp | null;
549
+ transactionId: string;
550
+ updatedAt: Generated<Timestamp>;
551
+ }
552
+ export interface AccountingPaymentAllocation {
553
+ amount: number;
554
+ createdAt: Generated<Timestamp>;
555
+ id: Generated<string>;
556
+ paymentId: string;
557
+ tenantId: string;
558
+ transactionLineId: string;
559
+ }
560
+ export interface AccountingPaymentBatch {
561
+ accountId: string;
562
+ createdAt: Generated<Timestamp>;
563
+ createdByUserId: string | null;
564
+ currency: string;
565
+ effectiveDate: Timestamp;
566
+ fileContent: string | null;
567
+ fileUpdatedAt: Timestamp | null;
568
+ id: Generated<string>;
569
+ idempotencyKey: string;
570
+ settings: Json;
571
+ tenantId: string;
572
+ type: AccountingPaymentBatchType;
573
+ updatedAt: Generated<Timestamp>;
574
+ voidedAt: Timestamp | null;
575
+ }
576
+ export interface AccountingPaymentBatchItem {
577
+ accountId: string;
578
+ accountKind: AccountingBankAccountKind | null;
579
+ accountNumber: string | null;
580
+ amount: number;
581
+ batchId: string;
582
+ checkNumber: number | null;
583
+ contactId: string;
584
+ createdAt: Generated<Timestamp>;
585
+ id: Generated<string>;
586
+ memo: string | null;
587
+ payeeAddress: Json | null;
588
+ payeeName: string;
589
+ routingNumber: string | null;
590
+ secCode: AccountingNachaSecCode | null;
591
+ stub: Json;
592
+ tenantId: string;
593
+ traceNumber: string | null;
594
+ voidedAt: Timestamp | null;
595
+ }
596
+ export interface AccountingPaymentBatchPayment {
597
+ createdAt: Generated<Timestamp>;
598
+ itemId: string;
599
+ paymentId: string;
600
+ tenantId: string;
601
+ }
602
+ export interface AccountingPaymentCommand {
603
+ createdAt: Generated<Timestamp>;
604
+ fingerprint: string;
605
+ id: string;
606
+ idempotencyKey: string;
607
+ kind: AccountingPaymentCommandKind;
608
+ outcome: AccountingPaymentCommandOutcome | null;
609
+ outcomeAt: Timestamp | null;
610
+ paymentId: string;
611
+ providerFailureCode: string | null;
612
+ tenantId: string;
613
+ }
614
+ export interface AccountingPaymentObservation {
615
+ connectionId: string;
616
+ createdAt: Generated<Timestamp>;
617
+ eventKey: string;
618
+ externalId: string;
619
+ fingerprint: string;
620
+ fundingCurrency: string | null;
621
+ fundingDebited: number | null;
622
+ fundingRefunded: number | null;
623
+ id: Generated<string>;
624
+ issue: AccountingPaymentIssue | null;
625
+ observedAt: Timestamp;
626
+ origin: Generated<AccountingPaymentObservationOrigin>;
627
+ paidAmount: number | null;
628
+ paymentId: string | null;
629
+ providerBillRef: string | null;
630
+ providerPaymentRef: string | null;
631
+ providerStatus: string | null;
632
+ providerUpdatedAt: Timestamp | null;
633
+ resourceType: AccountingPaymentResourceType;
634
+ returnedAt: Timestamp | null;
635
+ settledAt: Timestamp | null;
636
+ snapshot: Json | null;
637
+ sourceId: string | null;
638
+ status: AccountingPaymentStatus | null;
639
+ tenantId: string;
640
+ terminalAt: Timestamp | null;
641
+ }
642
+ export interface AccountingPaymentReversal {
643
+ createdAt: Generated<Timestamp>;
644
+ effectiveAt: Timestamp;
645
+ id: Generated<string>;
646
+ idempotencyKey: string;
647
+ kind: AccountingPaymentReversalKind;
648
+ paymentId: string;
649
+ postingDate: Timestamp | null;
650
+ reason: string | null;
651
+ requestFingerprint: string;
652
+ tenantId: string;
653
+ }
332
654
  export interface AccountingRate {
333
655
  accountId: string | null;
334
656
  basisPoints: number;
@@ -349,6 +671,45 @@ export interface AccountingRate {
349
671
  export interface AccountingRateType {
350
672
  name: string;
351
673
  }
674
+ export interface AccountingReservationJournalFreshnessControl {
675
+ createdAt: Generated<Timestamp>;
676
+ guardsEnabledAt: Timestamp | null;
677
+ tenantId: string;
678
+ updatedAt: Generated<Timestamp>;
679
+ }
680
+ export interface AccountingReservationJournalInvalidation {
681
+ actionId: string | null;
682
+ appliedAt: Timestamp | null;
683
+ coveredByEffectId: string | null;
684
+ createdAt: Generated<Timestamp>;
685
+ effectId: string | null;
686
+ failureCode: AccountingReservationJournalInvalidationFailure | null;
687
+ id: Generated<string>;
688
+ reservationId: string;
689
+ revision: Int8;
690
+ sourceResourceId: string | null;
691
+ sourceResourceType: CoreOperationResourceType | null;
692
+ tenantId: string;
693
+ }
694
+ export interface AccountingReservationJournalState {
695
+ appliedRevision: Generated<Int8>;
696
+ calculatedAt: Timestamp | null;
697
+ createdAt: Generated<Timestamp>;
698
+ desiredRevision: Generated<Int8>;
699
+ reservationId: string;
700
+ staleSince: Timestamp | null;
701
+ tenantId: string;
702
+ updatedAt: Generated<Timestamp>;
703
+ }
704
+ export interface AccountingReservationJournalStatementImpact {
705
+ createdAt: Generated<Timestamp>;
706
+ currency: string;
707
+ invalidationId: string;
708
+ listingId: string;
709
+ listingOwnershipPeriodId: string;
710
+ month: Timestamp;
711
+ tenantId: string;
712
+ }
352
713
  export interface AccountingTaxBehavior {
353
714
  name: string;
354
715
  }
@@ -371,9 +732,12 @@ export interface AccountingTransaction {
371
732
  matchStatus: Generated<string | null>;
372
733
  paidAt: Timestamp | null;
373
734
  paidStatus: Generated<string | null>;
735
+ recreatedFromTransactionId: string | null;
374
736
  recurringFeeId: string | null;
375
737
  recurringPattern: Json | null;
376
738
  recurringTemplateId: string | null;
739
+ returnedFromTransactionId: string | null;
740
+ returnEffectiveAt: Timestamp | null;
377
741
  /**
378
742
  * Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
379
743
  */
@@ -384,6 +748,7 @@ export interface AccountingTransaction {
384
748
  type: string;
385
749
  uniqueRef: string | null;
386
750
  updatedAt: Generated<Timestamp>;
751
+ webhookVersion: Generated<Int8>;
387
752
  }
388
753
  export interface AccountingTransactionAttachment {
389
754
  byteSize: number;
@@ -432,7 +797,13 @@ export interface AccountingTransactionType {
432
797
  }
433
798
  export interface AuditAction {
434
799
  actionType: string;
800
+ actorEmail: string | null;
435
801
  actorId: string | null;
802
+ actorLabel: string | null;
803
+ actorName: string | null;
804
+ actorOrganizationId: string | null;
805
+ actorOrganizationName: string | null;
806
+ actorOrganizationType: AuditActorOrganizationType | null;
436
807
  actorType: AuditActionActorType;
437
808
  apiVersion: string;
438
809
  createdAt: Generated<Timestamp>;
@@ -440,14 +811,17 @@ export interface AuditAction {
440
811
  message: string | null;
441
812
  parentActionId: string | null;
442
813
  payload: Json | null;
814
+ publicEventProjectedAt: Timestamp | null;
443
815
  requestId: string | null;
444
816
  rootEntityId: string | null;
445
817
  rootEntityType: string | null;
446
818
  source: string | null;
819
+ sourceType: AuditSourceType | null;
447
820
  tenantId: string;
448
821
  traceId: string | null;
449
822
  }
450
823
  export interface AuditEffect {
824
+ accountingRelevant: Generated<boolean>;
451
825
  actionId: string;
452
826
  claimedAt: Timestamp | null;
453
827
  claimedBy: string | null;
@@ -485,8 +859,16 @@ export interface AuditEffectAttempt {
485
859
  workerId: string | null;
486
860
  }
487
861
  export interface AuditJournalDelta {
862
+ accountCategoryIdAfter: string | null;
863
+ accountCategoryIdBefore: string | null;
864
+ accountCategoryNameAfter: string | null;
865
+ accountCategoryNameBefore: string | null;
866
+ accountClassificationAfter: string | null;
867
+ accountClassificationBefore: string | null;
488
868
  accountIdAfter: string | null;
489
869
  accountIdBefore: string | null;
870
+ accountNameAfter: string | null;
871
+ accountNameBefore: string | null;
490
872
  actionId: string;
491
873
  apiVersion: string;
492
874
  attachedToOwnerStatementIdAfter: string | null;
@@ -495,10 +877,14 @@ export interface AuditJournalDelta {
495
877
  centTotalBefore: Int8 | null;
496
878
  changedAt: Generated<Timestamp>;
497
879
  changedFields: Generated<string[]>;
880
+ currencyAfter: string | null;
881
+ currencyBefore: string | null;
498
882
  diffJson: Json | null;
499
883
  effectId: string | null;
500
884
  id: Generated<string>;
501
885
  journalEntryId: string;
886
+ ledgerAfter: string | null;
887
+ ledgerBefore: string | null;
502
888
  listingOwnershipPeriodIdAfter: string | null;
503
889
  listingOwnershipPeriodIdBefore: string | null;
504
890
  mutationId: string | null;
@@ -514,21 +900,120 @@ export interface AuditJournalDelta {
514
900
  txnAtBefore: Timestamp | null;
515
901
  }
516
902
  export interface AuditMutation {
903
+ accountingRelevant: Generated<boolean>;
517
904
  actionId: string;
905
+ captureOrder: Generated<Int8 | null>;
518
906
  changeRecord: Json;
519
907
  createdAt: Generated<Timestamp>;
520
908
  effectId: string | null;
521
909
  id: Generated<string>;
522
910
  op: string;
911
+ publicChanges: Generated<Json>;
912
+ publicOutcome: Json | null;
523
913
  rootEntityId: string | null;
524
914
  rootEntityType: string | null;
525
915
  subjectId: string;
526
916
  subjectType: string;
527
917
  tenantId: string;
528
918
  }
919
+ export interface AuditPublicEvent {
920
+ accountingStatus: AuditPublicEventAccountingStatus;
921
+ actionCode: string;
922
+ actionId: string;
923
+ actionSummary: string;
924
+ actorEmail: string | null;
925
+ actorId: string | null;
926
+ actorLabel: string | null;
927
+ actorName: string | null;
928
+ actorOrganizationId: string | null;
929
+ actorOrganizationName: string | null;
930
+ actorOrganizationType: AuditActorOrganizationType | null;
931
+ actorType: AuditActionActorType;
932
+ affectedAccountIds: Generated<string[]>;
933
+ attemptedEntityChanges: Generated<Json>;
934
+ blockedBy: Generated<Json>;
935
+ changedEntityTypes: Generated<string[]>;
936
+ changedPaths: Generated<string[]>;
937
+ entityChanges: Generated<Json>;
938
+ entityName: string | null;
939
+ entityUniqueRef: string | null;
940
+ hasChanges: Generated<boolean>;
941
+ id: Generated<string>;
942
+ netEffect: Generated<Json>;
943
+ occurredAt: Timestamp;
944
+ operation: AuditPublicEventOperation;
945
+ projectedAt: Generated<Timestamp>;
946
+ projectionFingerprint: string;
947
+ projectionVersion: Generated<number>;
948
+ recovery: Generated<Json>;
949
+ requestId: string | null;
950
+ revision: Generated<number>;
951
+ rootEntityId: string;
952
+ rootEntityType: string;
953
+ sourceType: AuditSourceType;
954
+ teamName: string;
955
+ teamUniqueRef: string | null;
956
+ tenantId: string;
957
+ updatedAt: Generated<Timestamp>;
958
+ }
959
+ export interface AuditPublicEventEntryChange {
960
+ accountIdAfter: string | null;
961
+ accountIdBefore: string | null;
962
+ afterSnapshot: Json | null;
963
+ beforeSnapshot: Json | null;
964
+ causedBy: Json | null;
965
+ changedAt: Timestamp;
966
+ changedFields: Generated<string[]>;
967
+ eventId: string;
968
+ eventRevision: number;
969
+ id: string;
970
+ journalEntryId: string;
971
+ operation: AuditJournalDeltaOperation;
972
+ tenantId: string;
973
+ }
974
+ export interface AuditPublicEventProjectionState {
975
+ cutoverAt: Generated<Timestamp>;
976
+ lastRecoveredAt: Timestamp | null;
977
+ retainedFrom: Timestamp | null;
978
+ singleton: Generated<boolean>;
979
+ }
980
+ export interface BillingListingFact {
981
+ activeListings: number;
982
+ billingPartnerId: string | null;
983
+ dataRegion: string;
984
+ effectiveAt: Timestamp;
985
+ id: Generated<string>;
986
+ reconciliation: Generated<boolean>;
987
+ recordedAt: Generated<Timestamp>;
988
+ sourceId: string;
989
+ sourceRevision: Int8 | null;
990
+ sourceType: BillingListingFactSourceType;
991
+ tenantId: string;
992
+ tenantName: string;
993
+ }
994
+ export interface BillingListingFactReadiness {
995
+ availableFrom: Timestamp | null;
996
+ legacyGapCount: number | null;
997
+ legacyImportedRows: number | null;
998
+ parityConfirmed: Generated<boolean>;
999
+ readyAt: Timestamp | null;
1000
+ singleton: Generated<boolean>;
1001
+ verifiedMonth: Timestamp | null;
1002
+ }
529
1003
  export interface CoreActiveStatus {
530
1004
  name: string;
531
1005
  }
1006
+ export interface CoreAsyncOperationResult {
1007
+ checkpoint: Json | null;
1008
+ createdAt: Generated<Timestamp>;
1009
+ errorMessage: string | null;
1010
+ operationId: string;
1011
+ result: Json | null;
1012
+ status: Generated<CoreAsyncOperationResultStatus>;
1013
+ tenantId: string;
1014
+ type: CoreOperationType;
1015
+ updatedAt: Generated<Timestamp>;
1016
+ }
532
1017
  export interface CoreChange {
533
1018
  automationId: string | null;
534
1019
  changeData: Json | null;
@@ -580,6 +1065,66 @@ export interface CoreChangeSyncType {
580
1065
  export interface CoreChangeType {
581
1066
  name: string;
582
1067
  }
1068
+ export interface CoreCsvOperationResult {
1069
+ connectionId: string;
1070
+ createdAt: Generated<Timestamp>;
1071
+ errorMessage: string | null;
1072
+ kind: CoreCsvOperationResultKind;
1073
+ result: Json | null;
1074
+ status: Generated<CoreCsvOperationResultStatus>;
1075
+ syncId: string;
1076
+ tenantId: string;
1077
+ updatedAt: Generated<Timestamp>;
1078
+ }
1079
+ export interface CoreEmailDelivery {
1080
+ attemptCount: Generated<number>;
1081
+ contactId: string | null;
1082
+ createdAt: Generated<Timestamp>;
1083
+ failureCode: CoreEmailDeliveryFailureCode | null;
1084
+ finishedAt: Timestamp | null;
1085
+ httpStatus: number | null;
1086
+ id: Generated<string>;
1087
+ lastAttemptAt: Timestamp | null;
1088
+ notificationId: string;
1089
+ postmarkErrorCode: number | null;
1090
+ postmarkMessageId: string | null;
1091
+ recipientEmail: string | null;
1092
+ status: Generated<CoreEmailDeliveryStatus>;
1093
+ submittedAt: Timestamp | null;
1094
+ tenantId: string;
1095
+ triggerRunId: string | null;
1096
+ updatedAt: Generated<Timestamp>;
1097
+ userId: string | null;
1098
+ }
1099
+ export interface CoreEmailNotification {
1100
+ createdAt: Generated<Timestamp>;
1101
+ finishedAt: Timestamp | null;
1102
+ id: string;
1103
+ ownerStatementId: string;
1104
+ recipientsResolvedAt: Timestamp | null;
1105
+ requestedByUserId: string | null;
1106
+ startedAt: Timestamp | null;
1107
+ status: Generated<CoreEmailNotificationStatus>;
1108
+ tenantId: string;
1109
+ trigger: CoreEmailNotificationTrigger | null;
1110
+ triggerRunId: string | null;
1111
+ updatedAt: Generated<Timestamp>;
1112
+ }
1113
+ export interface CoreExportJob {
1114
+ createdAt: Generated<Timestamp>;
1115
+ errorMessage: string | null;
1116
+ fileId: string;
1117
+ filename: string;
1118
+ finishedAt: Timestamp | null;
1119
+ format: CoreExportJobFormat;
1120
+ id: string;
1121
+ payload: Json;
1122
+ startedAt: Timestamp | null;
1123
+ status: Generated<CoreOperationStatus>;
1124
+ taskId: CoreExportJobTaskId;
1125
+ tenantId: string;
1126
+ updatedAt: Generated<Timestamp>;
1127
+ }
583
1128
  export interface CoreFlow {
584
1129
  appId: string;
585
1130
  description: string | null;
@@ -596,6 +1141,64 @@ export interface CoreFlow {
596
1141
  uniqueRef: string;
597
1142
  useGlobalMapping: Generated<boolean>;
598
1143
  }
1144
+ export interface CoreFlowEvent {
1145
+ attempts: Generated<number>;
1146
+ availableAt: Generated<Timestamp>;
1147
+ claimedAt: Timestamp | null;
1148
+ claimedBy: string | null;
1149
+ completedAt: Timestamp | null;
1150
+ createdAt: Generated<Timestamp>;
1151
+ data: Generated<Json>;
1152
+ entityId: string;
1153
+ entityType: string;
1154
+ eventType: string;
1155
+ id: Generated<string>;
1156
+ lastErrorCode: string | null;
1157
+ lastErrorDetails: Json | null;
1158
+ maxAttempts: Generated<number>;
1159
+ requiresSensitiveInput: Generated<boolean>;
1160
+ status: Generated<CoreFlowEventStatus>;
1161
+ syncId: string | null;
1162
+ targetConnectionId: string | null;
1163
+ targetFlowId: string | null;
1164
+ tenantId: string;
1165
+ updatedAt: Generated<Timestamp>;
1166
+ }
1167
+ export interface CoreFlowEventDelivery {
1168
+ attempts: Generated<number>;
1169
+ availableAt: Generated<Timestamp>;
1170
+ claimedAt: Timestamp | null;
1171
+ claimedBy: string | null;
1172
+ completedAt: Timestamp | null;
1173
+ connectionId: string;
1174
+ createdAt: Generated<Timestamp>;
1175
+ eventId: string;
1176
+ flowId: string;
1177
+ id: Generated<string>;
1178
+ lastErrorCode: string | null;
1179
+ lastErrorDetails: Json | null;
1180
+ maxAttempts: Generated<number>;
1181
+ status: Generated<CoreFlowEventStatus>;
1182
+ tenantId: string;
1183
+ triggerRunId: string | null;
1184
+ updatedAt: Generated<Timestamp>;
1185
+ }
1186
+ export interface CoreFlowEventOperation {
1187
+ action: CoreFlowEventOperationAction;
1188
+ actor: string;
1189
+ createdAt: Generated<Timestamp>;
1190
+ eventId: string;
1191
+ id: Generated<string>;
1192
+ previousStatus: CoreFlowEventStatus;
1193
+ reasonCode: string;
1194
+ }
1195
+ export interface CoreFlowEventSecret {
1196
+ createdAt: Generated<Timestamp>;
1197
+ encryptedPayload: string;
1198
+ encryptionKeyId: string;
1199
+ eventId: string;
1200
+ expiresAt: Timestamp;
1201
+ }
599
1202
  export interface CoreFlowMapping {
600
1203
  accountId: string | null;
601
1204
  bookingChannelId: string | null;
@@ -634,6 +1237,56 @@ export interface CoreIssueMessageOverwrite {
634
1237
  pattern: string;
635
1238
  updatedAt: Generated<Timestamp | null>;
636
1239
  }
1240
+ export interface CoreOperation {
1241
+ createdAt: Generated<Timestamp>;
1242
+ failureCode: string | null;
1243
+ failureMessage: string | null;
1244
+ finishedAt: Timestamp | null;
1245
+ id: Generated<string>;
1246
+ initiatedByUserId: string | null;
1247
+ publicIdFormat: Generated<CoreOperationPublicIdFormat>;
1248
+ retainUntil: Timestamp | null;
1249
+ sourceVersion: Generated<Int8>;
1250
+ startedAt: Timestamp | null;
1251
+ status: Generated<CoreOperationStatus>;
1252
+ tenantId: string;
1253
+ type: CoreOperationType;
1254
+ updatedAt: Generated<Timestamp>;
1255
+ }
1256
+ export interface CoreOperationBackfill {
1257
+ completedAt: Timestamp | null;
1258
+ createdAt: Generated<Timestamp>;
1259
+ name: string;
1260
+ updatedAt: Generated<Timestamp>;
1261
+ }
1262
+ export interface CoreOperationProjectionOutbox {
1263
+ attempts: Generated<number>;
1264
+ availableAt: Generated<Timestamp>;
1265
+ createdAt: Generated<Timestamp>;
1266
+ id: Generated<string>;
1267
+ lastError: string | null;
1268
+ operationId: string;
1269
+ publishedAt: Timestamp | null;
1270
+ sourceVersion: Int8;
1271
+ }
1272
+ export interface CoreOperationResource {
1273
+ createdAt: Generated<Timestamp>;
1274
+ isPrimary: Generated<boolean>;
1275
+ operationId: string;
1276
+ resourceId: string;
1277
+ resourceType: CoreOperationResourceType;
1278
+ role: CoreOperationResourceRole;
1279
+ }
1280
+ export interface CoreOperationSource {
1281
+ finishedAt: Timestamp | null;
1282
+ operationId: string;
1283
+ required: Generated<boolean>;
1284
+ sourceId: string;
1285
+ sourceType: CoreOperationSourceType;
1286
+ sourceVersion: Generated<Int8>;
1287
+ startedAt: Timestamp | null;
1288
+ status: Generated<CoreOperationStatus>;
1289
+ }
637
1290
  export interface CoreSync {
638
1291
  automationId: string | null;
639
1292
  connectionId: string | null;
@@ -651,6 +1304,7 @@ export interface CoreSync {
651
1304
  type: string;
652
1305
  updatedAt: Generated<Timestamp>;
653
1306
  userId: string | null;
1307
+ webhookVersion: Generated<Int8>;
654
1308
  }
655
1309
  export interface CoreSyncStatus {
656
1310
  name: string;
@@ -775,6 +1429,283 @@ export interface HdbCatalogHdbVersion {
775
1429
  upgradedOn: Timestamp;
776
1430
  version: string;
777
1431
  }
1432
+ export interface HealthAccountingIntegrityCase {
1433
+ actionability: HealthAccountingIntegrityActionability;
1434
+ actual: Json;
1435
+ assignedAt: Timestamp | null;
1436
+ assignedTo: string | null;
1437
+ caseKey: string;
1438
+ code: string;
1439
+ confidence: HealthAccountingIntegrityConfidence;
1440
+ contentHash: string;
1441
+ createdAt: Generated<Timestamp>;
1442
+ dataRegion: string;
1443
+ definitionVersion: number;
1444
+ evidence: Json;
1445
+ evidenceComplete: boolean;
1446
+ expected: Json;
1447
+ firstSeenAt: Timestamp;
1448
+ gitRevision: string;
1449
+ historicalIssueRefs: Json;
1450
+ id: Generated<string>;
1451
+ impact: Json;
1452
+ lastChangedAt: Timestamp;
1453
+ lastSeenAt: Timestamp;
1454
+ lockAssessment: Json;
1455
+ portalUrls: Json;
1456
+ repair: Json;
1457
+ resolutionClassification: HealthAccountingIntegrityResolutionClassification;
1458
+ resolvedAt: Timestamp | null;
1459
+ reviewedAt: Timestamp | null;
1460
+ reviewedBy: string | null;
1461
+ reviewRationale: string | null;
1462
+ reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
1463
+ rootCause: string;
1464
+ runId: string;
1465
+ severity: HealthAccountingIntegritySeverity;
1466
+ status: HealthAccountingIntegrityCaseStatus;
1467
+ tenantId: string;
1468
+ title: string;
1469
+ updatedAt: Generated<Timestamp>;
1470
+ urgency: HealthAccountingIntegrityUrgency;
1471
+ verification: Json;
1472
+ version: Generated<Int8>;
1473
+ }
1474
+ export interface HealthAccountingIntegrityComparisonFinding {
1475
+ caseKey: string;
1476
+ code: string;
1477
+ contentHash: string;
1478
+ createdAt: Generated<Timestamp>;
1479
+ dataRegion: string;
1480
+ firstSeenAt: Timestamp;
1481
+ id: Generated<string>;
1482
+ recordId: string;
1483
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1484
+ severity: HealthAccountingIntegritySeverity;
1485
+ tenantId: string;
1486
+ updatedAt: Generated<Timestamp>;
1487
+ }
1488
+ export interface HealthAccountingIntegrityDelivery {
1489
+ attempts: Generated<number>;
1490
+ caseId: string | null;
1491
+ channel: HealthAccountingIntegrityDeliveryChannel;
1492
+ claimedAt: Timestamp | null;
1493
+ claimId: string | null;
1494
+ createdAt: Generated<Timestamp>;
1495
+ dedupeKey: string;
1496
+ deliveredAt: Timestamp | null;
1497
+ eventType: string;
1498
+ id: Generated<string>;
1499
+ lastError: Json | null;
1500
+ nextAttemptAt: Generated<Timestamp>;
1501
+ payload: Json;
1502
+ result: Json | null;
1503
+ runId: string;
1504
+ status: Generated<HealthAccountingIntegrityDeliveryStatus>;
1505
+ updatedAt: Generated<Timestamp>;
1506
+ }
1507
+ export interface HealthAccountingIntegrityDirtyRecord {
1508
+ claimedUntil: Timestamp | null;
1509
+ claimToken: string | null;
1510
+ computedAt: Timestamp | null;
1511
+ computedVersion: Generated<Int8>;
1512
+ createdAt: Generated<Timestamp>;
1513
+ dirtyAt: Generated<Timestamp>;
1514
+ dirtyVersion: Generated<Int8>;
1515
+ recordId: string;
1516
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1517
+ tenantId: string;
1518
+ updatedAt: Generated<Timestamp>;
1519
+ }
1520
+ export interface HealthAccountingIntegrityOperatorEvent {
1521
+ actorId: string;
1522
+ caseId: string | null;
1523
+ caseVersion: Int8 | null;
1524
+ client: string;
1525
+ createdAt: Generated<Timestamp>;
1526
+ id: Generated<string>;
1527
+ idempotencyKey: string;
1528
+ payload: Json;
1529
+ planId: string | null;
1530
+ rationale: string | null;
1531
+ requestId: string;
1532
+ stageId: string | null;
1533
+ targetId: string | null;
1534
+ type: string;
1535
+ }
1536
+ export interface HealthAccountingIntegrityRepairPlan {
1537
+ canceledAt: Timestamp | null;
1538
+ code: string;
1539
+ completedAt: Timestamp | null;
1540
+ createdAt: Generated<Timestamp>;
1541
+ createdBy: string;
1542
+ dataRegion: string;
1543
+ environment: string;
1544
+ gitRevision: string;
1545
+ id: Generated<string>;
1546
+ linearRef: string | null;
1547
+ recipeVersion: number;
1548
+ status: Generated<HealthAccountingIntegrityRepairPlanStatus>;
1549
+ title: string;
1550
+ updatedAt: Generated<Timestamp>;
1551
+ }
1552
+ export interface HealthAccountingIntegrityRepairStage {
1553
+ applyResult: Json | null;
1554
+ approvalRef: string | null;
1555
+ approvedAt: Timestamp | null;
1556
+ approvedBy: string | null;
1557
+ completedAt: Timestamp | null;
1558
+ createdAt: Generated<Timestamp>;
1559
+ dryRunResult: Json | null;
1560
+ id: Generated<string>;
1561
+ limits: Json;
1562
+ manifest: Json;
1563
+ manifestHash: string;
1564
+ ordinal: number;
1565
+ planId: string;
1566
+ scopeType: HealthAccountingIntegrityRepairScopeType;
1567
+ startedAt: Timestamp | null;
1568
+ status: Generated<HealthAccountingIntegrityRepairStageStatus>;
1569
+ tenantId: string;
1570
+ updatedAt: Generated<Timestamp>;
1571
+ verificationResult: Json | null;
1572
+ }
1573
+ export interface HealthAccountingIntegrityRepairTarget {
1574
+ action: Json;
1575
+ applyResult: Json | null;
1576
+ auditActionId: string | null;
1577
+ beforeHash: string;
1578
+ beforeState: Json;
1579
+ caseContentHash: string;
1580
+ caseId: string;
1581
+ caseVersion: Int8;
1582
+ completedAt: Timestamp | null;
1583
+ createdAt: Generated<Timestamp>;
1584
+ effectPlan: Json;
1585
+ expectedResult: Json;
1586
+ id: Generated<string>;
1587
+ idempotencyKey: string;
1588
+ lockAssessment: Json;
1589
+ ordinal: number;
1590
+ stageId: string;
1591
+ startedAt: Timestamp | null;
1592
+ status: Generated<HealthAccountingIntegrityRepairTargetStatus>;
1593
+ targetKey: string;
1594
+ tenantId: string;
1595
+ updatedAt: Generated<Timestamp>;
1596
+ verificationResult: Json | null;
1597
+ }
1598
+ export interface HealthAccountingIntegrityRepairTransition {
1599
+ actor: string;
1600
+ createdAt: Generated<Timestamp>;
1601
+ id: Generated<string>;
1602
+ payload: Json;
1603
+ planId: string;
1604
+ stageId: string | null;
1605
+ targetId: string | null;
1606
+ type: HealthAccountingIntegrityRepairTransitionType;
1607
+ }
1608
+ export interface HealthAccountingIntegrityRun {
1609
+ caseCount: Generated<Int8>;
1610
+ changedCaseCount: Generated<Int8>;
1611
+ code: string;
1612
+ completedAt: Timestamp | null;
1613
+ createdAt: Generated<Timestamp>;
1614
+ dataRegion: string;
1615
+ definitionArtifactHash: string | null;
1616
+ definitionTemplateId: string | null;
1617
+ definitionTemplateVersion: number | null;
1618
+ definitionVersion: number;
1619
+ definitionVersionId: string | null;
1620
+ environment: string;
1621
+ error: Json | null;
1622
+ evaluationId: string;
1623
+ findingRowCount: Generated<Int8>;
1624
+ gitRevision: string;
1625
+ id: Generated<string>;
1626
+ openedCaseCount: Generated<Int8>;
1627
+ operatorDefinitionVersion: number | null;
1628
+ reopenedCaseCount: Generated<Int8>;
1629
+ resolvedCaseCount: Generated<Int8>;
1630
+ resolvesCases: Generated<boolean>;
1631
+ rowsScanned: Generated<Int8>;
1632
+ scopeTenantIds: string[] | null;
1633
+ shardKey: Generated<string>;
1634
+ startedAt: Timestamp;
1635
+ status: HealthAccountingIntegrityRunStatus;
1636
+ unchangedCaseCount: Generated<Int8>;
1637
+ updatedAt: Generated<Timestamp>;
1638
+ }
1639
+ export interface HealthAccountingIntegritySweepCursor {
1640
+ createdAt: Generated<Timestamp>;
1641
+ cycleStartedAt: Generated<Timestamp>;
1642
+ definitionsHash: string | null;
1643
+ lastCycleCompletedAt: Timestamp | null;
1644
+ lastRecordId: string | null;
1645
+ lastTenantId: string | null;
1646
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1647
+ updatedAt: Generated<Timestamp>;
1648
+ }
1649
+ export interface HealthAccountingIntegrityTransition {
1650
+ caseId: string;
1651
+ caseVersion: Int8;
1652
+ createdAt: Generated<Timestamp>;
1653
+ id: Generated<string>;
1654
+ payload: Json;
1655
+ runId: string;
1656
+ type: HealthAccountingIntegrityTransitionType;
1657
+ }
1658
+ export interface HealthReservationIssueSnapshot {
1659
+ computedAt: Timestamp | null;
1660
+ computedVersion: Generated<Int8>;
1661
+ createdAt: Generated<Timestamp>;
1662
+ dirtyAt: Generated<Timestamp>;
1663
+ dirtyVersion: Generated<Int8>;
1664
+ issues: Generated<Json>;
1665
+ reservationId: string;
1666
+ tenantId: string;
1667
+ updatedAt: Generated<Timestamp>;
1668
+ version: Generated<Int8>;
1669
+ }
1670
+ export interface HealthTenantIssue {
1671
+ affected: number;
1672
+ category: HealthTenantIssueCategory;
1673
+ code: HealthTenantIssueCode;
1674
+ contentHash: string;
1675
+ context: Json;
1676
+ createdAt: Generated<Timestamp>;
1677
+ firstSeenAt: Timestamp;
1678
+ id: Generated<string>;
1679
+ lastChangedAt: Timestamp;
1680
+ message: string;
1681
+ openedAt: Timestamp;
1682
+ resolvedAt: Timestamp | null;
1683
+ severity: HealthTenantIssueSeverity;
1684
+ snapshotVersion: Int8;
1685
+ status: HealthTenantIssueStatus;
1686
+ tenantId: string;
1687
+ updatedAt: Generated<Timestamp>;
1688
+ version: Int8;
1689
+ }
1690
+ export interface HealthTenantIssueRuleState {
1691
+ code: HealthTenantIssueCode;
1692
+ computedAt: Timestamp | null;
1693
+ computedVersion: Generated<Int8>;
1694
+ createdAt: Generated<Timestamp>;
1695
+ dirtyAt: Timestamp;
1696
+ dirtyVersion: Generated<Int8>;
1697
+ tenantId: string;
1698
+ updatedAt: Generated<Timestamp>;
1699
+ }
1700
+ export interface HealthTenantIssueSnapshot {
1701
+ computedAt: Timestamp | null;
1702
+ contentHash: string | null;
1703
+ createdAt: Generated<Timestamp>;
1704
+ dirtyAt: Generated<Timestamp>;
1705
+ tenantId: string;
1706
+ updatedAt: Generated<Timestamp>;
1707
+ version: Generated<Int8>;
1708
+ }
778
1709
  export interface PublicAccountCollection {
779
1710
  automationId: string | null;
780
1711
  connectionId: string;
@@ -922,7 +1853,9 @@ export interface PublicConnection {
922
1853
  appId: string;
923
1854
  backendVersion: number | null;
924
1855
  createdAt: Generated<Timestamp>;
1856
+ credentialMetadata: Json | null;
925
1857
  credentials: Generated<Json | null>;
1858
+ credentialVersion: Generated<Int8>;
926
1859
  disabled: Generated<boolean | null>;
927
1860
  fetchNext: Generated<Timestamp | null>;
928
1861
  fetchStatus: Generated<string>;
@@ -938,6 +1871,46 @@ export interface PublicConnection {
938
1871
  uniqueRef: string | null;
939
1872
  updatedAt: Generated<Timestamp | null>;
940
1873
  version: number | null;
1874
+ webhookVersion: Generated<Int8>;
1875
+ }
1876
+ export interface PublicConnectionOauthState {
1877
+ appId: string;
1878
+ connectionId: string | null;
1879
+ expiresAt: Timestamp;
1880
+ params: JsonObject;
1881
+ redirectUri: string;
1882
+ stateHash: string;
1883
+ tenantId: string;
1884
+ userId: string;
1885
+ }
1886
+ export interface PublicConnectionRoute {
1887
+ connectionId: string;
1888
+ createdAt: Generated<Timestamp>;
1889
+ tenantId: string;
1890
+ updatedAt: Generated<Timestamp>;
1891
+ }
1892
+ export interface PublicControlPlaneOutbox {
1893
+ aggregateId: string;
1894
+ aggregateType: string;
1895
+ attempts: Generated<number>;
1896
+ createdAt: Generated<Timestamp>;
1897
+ dataRegion: string | null;
1898
+ eventType: string;
1899
+ eventVersion: number;
1900
+ id: Generated<string>;
1901
+ lastError: string | null;
1902
+ payload: Generated<Json>;
1903
+ publishedAt: Timestamp | null;
1904
+ }
1905
+ export interface PublicControlPlaneProjectionEvent {
1906
+ aggregateId: string;
1907
+ aggregateType: string;
1908
+ appliedAt: Generated<Timestamp>;
1909
+ dataRegion: string;
1910
+ eventId: string;
1911
+ eventType: string;
1912
+ eventVersion: number;
1913
+ payload: Generated<Json>;
941
1914
  }
942
1915
  export interface PublicCurrency {
943
1916
  name: string;
@@ -958,42 +1931,21 @@ export interface PublicEmailTemplate {
958
1931
  export interface PublicEmailTemplateType {
959
1932
  name: string;
960
1933
  }
961
- export interface PublicFeature {
1934
+ export interface PublicFeedback {
1935
+ context: string | null;
962
1936
  createdAt: Generated<Timestamp>;
963
- description: string | null;
964
- id: Generated<string>;
965
- issueUrl: string | null;
966
- /**
967
- * user ids of user needed to approve this feature
968
- */
969
- requiredApprovals: Generated<Json | null>;
970
- status: Generated<string | null>;
971
- tenantId: string | null;
972
- title: string;
973
- updatedAt: Generated<Timestamp>;
974
- url: string | null;
975
- }
976
- export interface PublicFeatureApproval {
977
- createdAt: Generated<Timestamp>;
978
- featureId: string;
979
- id: Generated<string>;
980
- status: Generated<string | null>;
981
- updatedAt: Generated<Timestamp>;
982
- userId: string;
983
- }
984
- export interface PublicFeatureApprovalStatus {
985
- name: string;
986
- }
987
- export interface PublicFeatureEnabledTeam {
988
- createdAt: Generated<Timestamp>;
989
- featureId: string;
990
- id: Generated<string>;
991
- status: Generated<string | null>;
1937
+ description: string;
1938
+ errorReason: string | null;
1939
+ id: Generated<string>;
1940
+ kind: PublicFeedbackKind;
1941
+ linearIssueId: string | null;
1942
+ operationId: string | null;
1943
+ relatedRequest: string | null;
1944
+ reporterEmail: string | null;
1945
+ reporterUserId: string | null;
1946
+ route: string | null;
992
1947
  tenantId: string;
993
- updatedAt: Generated<Timestamp>;
994
- }
995
- export interface PublicFeatureStatus {
996
- name: string;
1948
+ title: string;
997
1949
  }
998
1950
  export interface PublicFileStorage {
999
1951
  connectionId: string | null;
@@ -1031,6 +1983,23 @@ export interface PublicFileStorageTag {
1031
1983
  uniqueRef: string;
1032
1984
  updatedAt: Generated<Timestamp>;
1033
1985
  }
1986
+ export interface PublicGuestReview {
1987
+ channel: PublicGuestReviewChannel;
1988
+ connectionId: string;
1989
+ createdAt: Generated<Timestamp>;
1990
+ hostReply: string | null;
1991
+ id: Generated<string>;
1992
+ isHidden: Generated<boolean>;
1993
+ negativeText: string | null;
1994
+ rating: Numeric;
1995
+ reservationId: string;
1996
+ reviewedAt: Timestamp;
1997
+ tenantId: string;
1998
+ text: string | null;
1999
+ title: string | null;
2000
+ uniqueRef: string;
2001
+ updatedAt: Generated<Timestamp>;
2002
+ }
1034
2003
  export interface PublicLatestDuplicateEmails {
1035
2004
  createdAt: Timestamp | null;
1036
2005
  email: string | null;
@@ -1038,6 +2007,36 @@ export interface PublicLatestDuplicateEmails {
1038
2007
  name: string | null;
1039
2008
  status: string | null;
1040
2009
  }
2010
+ export interface PublicLineClassificationUsage {
2011
+ appId: string | null;
2012
+ createdAt: Generated<Timestamp>;
2013
+ firstSeenAt: Generated<Timestamp>;
2014
+ kind: string;
2015
+ lastError: string | null;
2016
+ lastSeenAt: Generated<Timestamp>;
2017
+ mappingStatus: string | null;
2018
+ name: string;
2019
+ reportAttempts: Generated<number>;
2020
+ reportedRevision: Generated<number>;
2021
+ revision: Generated<number>;
2022
+ tenantId: string;
2023
+ updatedAt: Generated<Timestamp>;
2024
+ }
2025
+ export interface PublicLineClassificationUsageBackfill {
2026
+ completedAt: Timestamp | null;
2027
+ cursorId: string | null;
2028
+ source: string;
2029
+ updatedAt: Generated<Timestamp>;
2030
+ }
2031
+ export interface PublicLineClassificationUsageCapture {
2032
+ createdAt: Generated<Timestamp>;
2033
+ firstSeenAt: Timestamp | null;
2034
+ id: Generated<string>;
2035
+ kind: string;
2036
+ lastSeenAt: Timestamp | null;
2037
+ name: string;
2038
+ tenantId: string;
2039
+ }
1041
2040
  export interface PublicListing {
1042
2041
  address: string | null;
1043
2042
  addressCity: string | null;
@@ -1078,6 +2077,7 @@ export interface PublicListing {
1078
2077
  title: string | null;
1079
2078
  uniqueRef: string | null;
1080
2079
  updatedAt: Generated<Timestamp | null>;
2080
+ webhookVersion: Generated<Int8>;
1081
2081
  }
1082
2082
  export interface PublicListingCollection {
1083
2083
  createdAt: Generated<Timestamp>;
@@ -1192,6 +2192,7 @@ export interface PublicOwnerStatement {
1192
2192
  tenantId: string;
1193
2193
  uniqueRef: string | null;
1194
2194
  updatedAt: Generated<Timestamp>;
2195
+ webhookVersion: Generated<Int8>;
1195
2196
  }
1196
2197
  export interface PublicOwnerStatementLayout {
1197
2198
  automationId: string | null;
@@ -1349,6 +2350,49 @@ export interface PublicPaymentStatus {
1349
2350
  export interface PublicPaymentType {
1350
2351
  name: string;
1351
2352
  }
2353
+ export interface PublicPlaidConnectSession {
2354
+ connectionId: string | null;
2355
+ createdAt: Generated<Timestamp>;
2356
+ environment: string;
2357
+ errorCode: string | null;
2358
+ errorRetryable: boolean | null;
2359
+ exitedAt: Timestamp | null;
2360
+ exitErrorCode: string | null;
2361
+ exitErrorType: string | null;
2362
+ exitRequestId: string | null;
2363
+ exitView: string | null;
2364
+ expiresAt: Timestamp;
2365
+ id: Generated<string>;
2366
+ institutionId: string | null;
2367
+ institutionName: string | null;
2368
+ itemId: string | null;
2369
+ leaseExpiresAt: Timestamp | null;
2370
+ linkSessionId: string | null;
2371
+ mode: PublicPlaidConnectMode;
2372
+ result: Json | null;
2373
+ status: Generated<PublicPlaidConnectStatus>;
2374
+ syncId: string | null;
2375
+ tenantId: string;
2376
+ updatedAt: Generated<Timestamp>;
2377
+ }
2378
+ export interface PublicRampApplication {
2379
+ applicantEmail: string;
2380
+ applicantUserId: string | null;
2381
+ createdAt: Generated<Timestamp>;
2382
+ credentials: Json | null;
2383
+ environment: PublicRampApplicationEnvironment;
2384
+ id: Generated<string>;
2385
+ invitedAt: Generated<Timestamp>;
2386
+ rampApplicationId: string | null;
2387
+ stateNonce: string;
2388
+ status: Generated<PublicRampApplicationStatus>;
2389
+ statusUpdatedAt: Generated<Timestamp>;
2390
+ tenantId: string;
2391
+ updatedAt: Generated<Timestamp>;
2392
+ webhookId: string | null;
2393
+ webhookSecret: string | null;
2394
+ webhookToken: string | null;
2395
+ }
1352
2396
  export interface PublicRecurringFee {
1353
2397
  bookingChannelsFilter: string[] | null;
1354
2398
  createdAt: Generated<Timestamp>;
@@ -1360,10 +2404,13 @@ export interface PublicRecurringFee {
1360
2404
  formula: string | null;
1361
2405
  icon: string | null;
1362
2406
  id: Generated<string>;
2407
+ nightsFilterMax: number | null;
2408
+ nightsFilterMin: number | null;
1363
2409
  rateType: Generated<string | null>;
1364
2410
  revenueRecognition: string | null;
1365
2411
  status: Generated<string>;
1366
2412
  statusFilter: string | null;
2413
+ stayTypesFilter: ArrayType<PublicReservationStayType> | null;
1367
2414
  taxBehavior: string | null;
1368
2415
  taxRateId: string | null;
1369
2416
  tenantId: string;
@@ -1393,6 +2440,7 @@ export interface PublicRecurringFeeListingSubscription {
1393
2440
  endAt: Timestamp | null;
1394
2441
  id: Generated<string>;
1395
2442
  listingId: string;
2443
+ matchBy: Generated<PublicRecurringFeeListingSubscriptionMatchBy>;
1396
2444
  rate: number | null;
1397
2445
  rateType: Generated<string | null>;
1398
2446
  recurringFeeId: string;
@@ -1407,6 +2455,7 @@ export interface PublicRecurringFeeType {
1407
2455
  name: string;
1408
2456
  }
1409
2457
  export interface PublicReservation {
2458
+ adults: number | null;
1410
2459
  bookedAt: Generated<Timestamp | null>;
1411
2460
  bookerName: string | null;
1412
2461
  bookingPlatform: string | null;
@@ -1425,6 +2474,7 @@ export interface PublicReservation {
1425
2474
  channelId: string | null;
1426
2475
  checkIn: Timestamp | null;
1427
2476
  checkOut: Timestamp | null;
2477
+ children: number | null;
1428
2478
  confirmationCode: string | null;
1429
2479
  connectionId: string | null;
1430
2480
  createdAt: Generated<Timestamp | null>;
@@ -1457,12 +2507,14 @@ export interface PublicReservation {
1457
2507
  shortRef: string | null;
1458
2508
  sourceId: string | null;
1459
2509
  status: Generated<string | null>;
2510
+ stayType: Generated<PublicReservationStayType>;
1460
2511
  taxCentTotal: Int8 | null;
1461
2512
  tenantId: string | null;
1462
2513
  uniqueRef: string | null;
1463
2514
  uniqueRef2: string | null;
1464
2515
  updatedAt: Generated<Timestamp | null>;
1465
2516
  userdata: Generated<Json | null>;
2517
+ webhookVersion: Generated<Int8>;
1466
2518
  }
1467
2519
  export interface PublicReservationStatus {
1468
2520
  name: string;
@@ -1603,6 +2655,9 @@ export interface PublicTenant {
1603
2655
  addressCountry: string | null;
1604
2656
  addressLine1: string | null;
1605
2657
  addressPostcode: string | null;
2658
+ /**
2659
+ * JSON column for app-owned tenant settings exposed through APIs.
2660
+ */
1606
2661
  appSettings: Json | null;
1607
2662
  billingAddressData: Json | null;
1608
2663
  billingAddressId: string | null;
@@ -1610,10 +2665,10 @@ export interface PublicTenant {
1610
2665
  billingPartnerId: string | null;
1611
2666
  billingPaymentMethodType: string | null;
1612
2667
  billingPlan: string | null;
2668
+ billingSubscriptionId: string | null;
1613
2669
  billingSubscriptionStatus: string | null;
1614
2670
  booksClosedAt: Timestamp | null;
1615
2671
  calculatedBillingPartnerId: Generated<string | null>;
1616
- calculatedIsBillable: Generated<boolean | null>;
1617
2672
  calculatedStatus: Generated<string | null>;
1618
2673
  /**
1619
2674
  * Billing subscription is getting cancelled at date
@@ -1631,19 +2686,25 @@ export interface PublicTenant {
1631
2686
  defaultRevenueRecognition: string | null;
1632
2687
  email: string | null;
1633
2688
  featureFlags: Generated<Json | null>;
2689
+ /**
2690
+ * JSON column for explicit VRPilot onboarding guide state.
2691
+ */
1634
2692
  guideOnboarding: Json | null;
1635
2693
  historicalStatementsImportedAt: Timestamp | null;
1636
2694
  id: Generated<string>;
1637
2695
  intercomId: string | null;
1638
2696
  isActive: Generated<boolean | null>;
1639
2697
  isGeneralLedger: Generated<boolean | null>;
1640
- isOnboarding: Generated<boolean | null>;
1641
- isTest: Generated<boolean | null>;
2698
+ isOnboarding: Generated<boolean>;
1642
2699
  logo: string | null;
1643
2700
  longTermStayNights: number | null;
2701
+ migratedAt: Timestamp | null;
1644
2702
  migratedFromTenantId: string | null;
2703
+ migratedToRegion: string | null;
2704
+ migrationStatus: Generated<string>;
1645
2705
  name: string;
1646
2706
  ownerPortalShowDraftStatements: boolean | null;
2707
+ partnerDeniedPermissions: Generated<string[]>;
1647
2708
  partnerId: Generated<string | null>;
1648
2709
  /**
1649
2710
  * JSON column to hold team settings like "owner_portal_show_reservation_totals" or "owner_portal_show_draft_statements
@@ -1662,8 +2723,8 @@ export interface PublicTenant {
1662
2723
  supportEmail: string | null;
1663
2724
  supportPhone: string | null;
1664
2725
  svixEndpoints: boolean | null;
1665
- trialUntil: Timestamp | null;
1666
2726
  type: Generated<string | null>;
2727
+ uniqueRef: string | null;
1667
2728
  updatedAt: Generated<Timestamp | null>;
1668
2729
  website: string | null;
1669
2730
  }
@@ -1671,23 +2732,15 @@ export interface PublicTenantUser {
1671
2732
  createdAt: Generated<Timestamp | null>;
1672
2733
  id: Generated<string>;
1673
2734
  lastInvitedAt: Timestamp | null;
2735
+ managedTeamAccess: Generated<"all" | "assigned">;
1674
2736
  notificationPreferences: Generated<Json | null>;
2737
+ permissionBundles: Generated<string[]>;
1675
2738
  role: Generated<string | null>;
1676
2739
  status: Generated<string | null>;
1677
2740
  tenantId: string;
1678
2741
  updatedAt: Generated<Timestamp | null>;
1679
2742
  userId: string;
1680
2743
  }
1681
- export interface PublicToken {
1682
- createdAt: Generated<Timestamp>;
1683
- expiresAt: Timestamp | null;
1684
- id: Generated<string>;
1685
- nanoId: Generated<string>;
1686
- payload: Generated<Json>;
1687
- tenantId: string | null;
1688
- type: string | null;
1689
- userId: string | null;
1690
- }
1691
2744
  export interface PublicUser {
1692
2745
  address: string | null;
1693
2746
  addressCity: string | null;
@@ -1779,17 +2832,6 @@ export interface PublicWebhook {
1779
2832
  types2: string[] | null;
1780
2833
  url: string;
1781
2834
  }
1782
- export interface TrackingEvent {
1783
- createdAt: Generated<Timestamp>;
1784
- id: Generated<string>;
1785
- name: string;
1786
- packageName: string;
1787
- props: Json;
1788
- tenantId: string | null;
1789
- timestamp: Generated<Timestamp | null>;
1790
- trackedAt: Generated<Timestamp | null>;
1791
- userId: string | null;
1792
- }
1793
2835
  export interface TrackingIntercomConversation {
1794
2836
  answer: string;
1795
2837
  conversationId: Int8;
@@ -1846,6 +2888,79 @@ export interface TrackingMonitorConnection {
1846
2888
  export interface TrackingMonitorConnectionState {
1847
2889
  name: string;
1848
2890
  }
2891
+ export interface WebhookDelivery {
2892
+ apiVersion: WebhookApiVersion;
2893
+ attemptCount: Generated<number>;
2894
+ body: string;
2895
+ claimedAt: Timestamp | null;
2896
+ claimedBy: string | null;
2897
+ createdAt: Generated<Timestamp>;
2898
+ deliveredAt: Timestamp | null;
2899
+ eventType: WebhookEventType;
2900
+ failedAt: Timestamp | null;
2901
+ id: Generated<string>;
2902
+ lastErrorCode: string | null;
2903
+ nextAttemptAt: Generated<Timestamp>;
2904
+ resourceId: string | null;
2905
+ resourceType: WebhookResourceType | null;
2906
+ retryAttemptCount: Generated<number>;
2907
+ sourceEventKey: string;
2908
+ sourceTenantId: string | null;
2909
+ status: Generated<WebhookDeliveryStatus>;
2910
+ subscriptionId: string;
2911
+ subscriptionRevision: Int8;
2912
+ updatedAt: Generated<Timestamp>;
2913
+ }
2914
+ export interface WebhookDeliveryAttempt {
2915
+ attemptNumber: number;
2916
+ createdAt: Generated<Timestamp>;
2917
+ deliveryId: string;
2918
+ durationMs: number;
2919
+ errorClass: string | null;
2920
+ finishedAt: Timestamp;
2921
+ id: Generated<string>;
2922
+ responseExcerpt: string | null;
2923
+ responseStatus: number | null;
2924
+ startedAt: Timestamp;
2925
+ }
2926
+ export interface WebhookDeliveryAttemptSecret {
2927
+ deliveryAttemptId: string;
2928
+ position: string;
2929
+ subscriptionSecretId: string;
2930
+ }
2931
+ export interface WebhookRateLimit {
2932
+ key: string;
2933
+ ownerTenantId: string;
2934
+ requestCount: number;
2935
+ windowStartedAt: Timestamp;
2936
+ }
2937
+ export interface WebhookSubscription {
2938
+ apiVersion: WebhookApiVersion;
2939
+ createdAt: Generated<Timestamp>;
2940
+ description: string | null;
2941
+ disabledAt: Timestamp | null;
2942
+ eventTypes: ArrayType<WebhookSubscriptionEventType>;
2943
+ id: Generated<string>;
2944
+ ownerTenantId: string;
2945
+ revision: Generated<Int8>;
2946
+ scope: WebhookSubscriptionScope;
2947
+ status: Generated<WebhookSubscriptionStatus>;
2948
+ updatedAt: Generated<Timestamp>;
2949
+ url: string;
2950
+ verifiedAt: Timestamp | null;
2951
+ }
2952
+ export interface WebhookSubscriptionSecret {
2953
+ activeFrom: Generated<Timestamp>;
2954
+ createdAt: Generated<Timestamp>;
2955
+ encryptedSecret: string;
2956
+ encryptionKeyId: string;
2957
+ expiresAt: Timestamp | null;
2958
+ id: Generated<string>;
2959
+ reencryptionFailedAt: Timestamp | null;
2960
+ reencryptionFailureCode: string | null;
2961
+ revokedAt: Timestamp | null;
2962
+ subscriptionId: string;
2963
+ }
1849
2964
  export interface DB {
1850
2965
  "accounting.account": AccountingAccount;
1851
2966
  "accounting.accountAssignment": AccountingAccountAssignment;
@@ -1853,10 +2968,11 @@ export interface DB {
1853
2968
  "accounting.accountAssignmentType": AccountingAccountAssignmentType;
1854
2969
  "accounting.accountCategory": AccountingAccountCategory;
1855
2970
  "accounting.accountClassification": AccountingAccountClassification;
2971
+ "accounting.accountConnection": AccountingAccountConnection;
2972
+ "accounting.accountPaymentFileSetting": AccountingAccountPaymentFileSetting;
1856
2973
  "accounting.accountReservationLineType": AccountingAccountReservationLineType;
1857
2974
  "accounting.accountReservationRevRec": AccountingAccountReservationRevRec;
1858
2975
  "accounting.accountType": AccountingAccountType;
1859
- "accounting.bankAccount": AccountingBankAccount;
1860
2976
  "accounting.bankAccountCategory": AccountingBankAccountCategory;
1861
2977
  "accounting.bankAccountType": AccountingBankAccountType;
1862
2978
  "accounting.bankRecord": AccountingBankRecord;
@@ -1871,6 +2987,8 @@ export interface DB {
1871
2987
  "accounting.bankRuleMatchOperator": AccountingBankRuleMatchOperator;
1872
2988
  "accounting.bankRuleMode": AccountingBankRuleMode;
1873
2989
  "accounting.contact": AccountingContact;
2990
+ "accounting.contactBankAccount": AccountingContactBankAccount;
2991
+ "accounting.contactBankDetailsRequest": AccountingContactBankDetailsRequest;
1874
2992
  "accounting.contactCompanyType": AccountingContactCompanyType;
1875
2993
  "accounting.contactType": AccountingContactType;
1876
2994
  "accounting.journalEntry": AccountingJournalEntry;
@@ -1878,11 +2996,24 @@ export interface DB {
1878
2996
  "accounting.journalEntryTriggerType": AccountingJournalEntryTriggerType;
1879
2997
  "accounting.journalEntryType": AccountingJournalEntryType;
1880
2998
  "accounting.ownerStatementProjection": AccountingOwnerStatementProjection;
2999
+ "accounting.ownerStatementProjectionListingRevision": AccountingOwnerStatementProjectionListingRevision;
1881
3000
  "accounting.ownerStatementProjectionRevision": AccountingOwnerStatementProjectionRevision;
1882
3001
  "accounting.paidStatus": AccountingPaidStatus;
1883
3002
  "accounting.party": AccountingParty;
3003
+ "accounting.payment": AccountingPayment;
3004
+ "accounting.paymentAllocation": AccountingPaymentAllocation;
3005
+ "accounting.paymentBatch": AccountingPaymentBatch;
3006
+ "accounting.paymentBatchItem": AccountingPaymentBatchItem;
3007
+ "accounting.paymentBatchPayment": AccountingPaymentBatchPayment;
3008
+ "accounting.paymentCommand": AccountingPaymentCommand;
3009
+ "accounting.paymentObservation": AccountingPaymentObservation;
3010
+ "accounting.paymentReversal": AccountingPaymentReversal;
1884
3011
  "accounting.rate": AccountingRate;
1885
3012
  "accounting.rateType": AccountingRateType;
3013
+ "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
3014
+ "accounting.reservationJournalInvalidation": AccountingReservationJournalInvalidation;
3015
+ "accounting.reservationJournalState": AccountingReservationJournalState;
3016
+ "accounting.reservationJournalStatementImpact": AccountingReservationJournalStatementImpact;
1886
3017
  "accounting.taxBehavior": AccountingTaxBehavior;
1887
3018
  "accounting.transaction": AccountingTransaction;
1888
3019
  "accounting.transactionAttachment": AccountingTransactionAttachment;
@@ -1893,7 +3024,13 @@ export interface DB {
1893
3024
  "audit.effectAttempt": AuditEffectAttempt;
1894
3025
  "audit.journalDelta": AuditJournalDelta;
1895
3026
  "audit.mutation": AuditMutation;
3027
+ "audit.publicEvent": AuditPublicEvent;
3028
+ "audit.publicEventEntryChange": AuditPublicEventEntryChange;
3029
+ "audit.publicEventProjectionState": AuditPublicEventProjectionState;
3030
+ "billing.listingFact": BillingListingFact;
3031
+ "billing.listingFactReadiness": BillingListingFactReadiness;
1896
3032
  "core.activeStatus": CoreActiveStatus;
3033
+ "core.asyncOperationResult": CoreAsyncOperationResult;
1897
3034
  "core.change": CoreChange;
1898
3035
  "core.changeEntityType": CoreChangeEntityType;
1899
3036
  "core.changeLink": CoreChangeLink;
@@ -1901,10 +3038,23 @@ export interface DB {
1901
3038
  "core.changeStatus": CoreChangeStatus;
1902
3039
  "core.changeSyncType": CoreChangeSyncType;
1903
3040
  "core.changeType": CoreChangeType;
3041
+ "core.csvOperationResult": CoreCsvOperationResult;
3042
+ "core.emailDelivery": CoreEmailDelivery;
3043
+ "core.emailNotification": CoreEmailNotification;
3044
+ "core.exportJob": CoreExportJob;
1904
3045
  "core.flow": CoreFlow;
3046
+ "core.flowEvent": CoreFlowEvent;
3047
+ "core.flowEventDelivery": CoreFlowEventDelivery;
3048
+ "core.flowEventOperation": CoreFlowEventOperation;
3049
+ "core.flowEventSecret": CoreFlowEventSecret;
1905
3050
  "core.flowMapping": CoreFlowMapping;
1906
3051
  "core.flowSetting": CoreFlowSetting;
1907
3052
  "core.issueMessageOverwrite": CoreIssueMessageOverwrite;
3053
+ "core.operation": CoreOperation;
3054
+ "core.operationBackfill": CoreOperationBackfill;
3055
+ "core.operationProjectionOutbox": CoreOperationProjectionOutbox;
3056
+ "core.operationResource": CoreOperationResource;
3057
+ "core.operationSource": CoreOperationSource;
1908
3058
  "core.sync": CoreSync;
1909
3059
  "core.syncStatus": CoreSyncStatus;
1910
3060
  "core.syncSubtask": CoreSyncSubtask;
@@ -1921,6 +3071,22 @@ export interface DB {
1921
3071
  "hdbCatalog.hdbSchemaNotifications": HdbCatalogHdbSchemaNotifications;
1922
3072
  "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
1923
3073
  "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
3074
+ "health.accountingIntegrityCase": HealthAccountingIntegrityCase;
3075
+ "health.accountingIntegrityComparisonFinding": HealthAccountingIntegrityComparisonFinding;
3076
+ "health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
3077
+ "health.accountingIntegrityDirtyRecord": HealthAccountingIntegrityDirtyRecord;
3078
+ "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
3079
+ "health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
3080
+ "health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
3081
+ "health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
3082
+ "health.accountingIntegrityRepairTransition": HealthAccountingIntegrityRepairTransition;
3083
+ "health.accountingIntegrityRun": HealthAccountingIntegrityRun;
3084
+ "health.accountingIntegritySweepCursor": HealthAccountingIntegritySweepCursor;
3085
+ "health.accountingIntegrityTransition": HealthAccountingIntegrityTransition;
3086
+ "health.reservationIssueSnapshot": HealthReservationIssueSnapshot;
3087
+ "health.tenantIssue": HealthTenantIssue;
3088
+ "health.tenantIssueRuleState": HealthTenantIssueRuleState;
3089
+ "health.tenantIssueSnapshot": HealthTenantIssueSnapshot;
1924
3090
  "public.accountCollection": PublicAccountCollection;
1925
3091
  "public.accountCollectionType": PublicAccountCollectionType;
1926
3092
  "public.address": PublicAddress;
@@ -1932,19 +3098,23 @@ export interface DB {
1932
3098
  "public.bookingChannel": PublicBookingChannel;
1933
3099
  "public.bookingChannelIconCandidate": PublicBookingChannelIconCandidate;
1934
3100
  "public.connection": PublicConnection;
3101
+ "public.connectionOauthState": PublicConnectionOauthState;
3102
+ "public.connectionRoute": PublicConnectionRoute;
3103
+ "public.controlPlaneOutbox": PublicControlPlaneOutbox;
3104
+ "public.controlPlaneProjectionEvent": PublicControlPlaneProjectionEvent;
1935
3105
  "public.currency": PublicCurrency;
1936
3106
  "public.duplicateEmails": PublicDuplicateEmails;
1937
3107
  "public.emailTemplate": PublicEmailTemplate;
1938
3108
  "public.emailTemplateType": PublicEmailTemplateType;
1939
- "public.feature": PublicFeature;
1940
- "public.featureApproval": PublicFeatureApproval;
1941
- "public.featureApprovalStatus": PublicFeatureApprovalStatus;
1942
- "public.featureEnabledTeam": PublicFeatureEnabledTeam;
1943
- "public.featureStatus": PublicFeatureStatus;
3109
+ "public.feedback": PublicFeedback;
1944
3110
  "public.fileStorage": PublicFileStorage;
1945
3111
  "public.fileStorageSourceLink": PublicFileStorageSourceLink;
1946
3112
  "public.fileStorageTag": PublicFileStorageTag;
3113
+ "public.guestReview": PublicGuestReview;
1947
3114
  "public.latestDuplicateEmails": PublicLatestDuplicateEmails;
3115
+ "public.lineClassificationUsage": PublicLineClassificationUsage;
3116
+ "public.lineClassificationUsageBackfill": PublicLineClassificationUsageBackfill;
3117
+ "public.lineClassificationUsageCapture": PublicLineClassificationUsageCapture;
1948
3118
  "public.listing": PublicListing;
1949
3119
  "public.listingCollection": PublicListingCollection;
1950
3120
  "public.listingConnection": PublicListingConnection;
@@ -1970,6 +3140,8 @@ export interface DB {
1970
3140
  "public.paymentLineClassification": PublicPaymentLineClassification;
1971
3141
  "public.paymentStatus": PublicPaymentStatus;
1972
3142
  "public.paymentType": PublicPaymentType;
3143
+ "public.plaidConnectSession": PublicPlaidConnectSession;
3144
+ "public.rampApplication": PublicRampApplication;
1973
3145
  "public.recurringFee": PublicRecurringFee;
1974
3146
  "public.recurringFeeAccount": PublicRecurringFeeAccount;
1975
3147
  "public.recurringFeeAccountCondition": PublicRecurringFeeAccountCondition;
@@ -1986,7 +3158,6 @@ export interface DB {
1986
3158
  "public.taxStatementStatus": PublicTaxStatementStatus;
1987
3159
  "public.tenant": PublicTenant;
1988
3160
  "public.tenantUser": PublicTenantUser;
1989
- "public.token": PublicToken;
1990
3161
  "public.user": PublicUser;
1991
3162
  "public.userCompanyType": PublicUserCompanyType;
1992
3163
  "public.userCompanyUser": PublicUserCompanyUser;
@@ -1996,7 +3167,6 @@ export interface DB {
1996
3167
  "public.viewWebhookEvents": PublicViewWebhookEvents;
1997
3168
  "public.viewWebhookEventsGroupedByDate": PublicViewWebhookEventsGroupedByDate;
1998
3169
  "public.webhook": PublicWebhook;
1999
- "tracking.event": TrackingEvent;
2000
3170
  "tracking.intercomConversation": TrackingIntercomConversation;
2001
3171
  "tracking.intercomConversationUser": TrackingIntercomConversationUser;
2002
3172
  "tracking.intercomReport": TrackingIntercomReport;
@@ -2004,4 +3174,10 @@ export interface DB {
2004
3174
  "tracking.metricCache": TrackingMetricCache;
2005
3175
  "tracking.monitorConnection": TrackingMonitorConnection;
2006
3176
  "tracking.monitorConnectionState": TrackingMonitorConnectionState;
3177
+ "webhook.delivery": WebhookDelivery;
3178
+ "webhook.deliveryAttempt": WebhookDeliveryAttempt;
3179
+ "webhook.deliveryAttemptSecret": WebhookDeliveryAttemptSecret;
3180
+ "webhook.rateLimit": WebhookRateLimit;
3181
+ "webhook.subscription": WebhookSubscription;
3182
+ "webhook.subscriptionSecret": WebhookSubscriptionSecret;
2007
3183
  }