@tokenoftrust/storefront-runner 7.3.2 → 7.5.1

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 (420) hide show
  1. package/agency-kit/tools/lib/catalog-model/files.mjs +11 -4
  2. package/agency-kit/tools/lib/catalog-model/model.mjs +5 -1
  3. package/agency-kit/tools/lib/redirect-shadows.mjs +261 -0
  4. package/apps/storefront/astro.config.mjs +8 -2
  5. package/apps/storefront/package.json +1 -2
  6. package/apps/storefront/src/components/catalog/storefront/ProductCard.astro +20 -6
  7. package/apps/storefront/src/components/catalog/storefront/islands/ImageGallery.tsx +17 -6
  8. package/apps/storefront/src/components/compliance/storefront/islands/CheckoutComplianceGate.tsx +1 -32
  9. package/apps/storefront/src/config/compliance/rulesets.ts +1 -1
  10. package/apps/storefront/src/layouts/Layout.astro +17 -0
  11. package/apps/storefront/src/lib/access/auth/agentRoles.ts +20 -0
  12. package/apps/storefront/src/lib/access/auth/agentSessionGate.ts +32 -8
  13. package/apps/storefront/src/lib/access/auth/brokerAssertion.ts +16 -2
  14. package/apps/storefront/src/lib/access/auth/contactReaderAuthority.ts +39 -0
  15. package/apps/storefront/src/lib/access/auth/loginGate.ts +15 -17
  16. package/apps/storefront/src/lib/access/dashboard/staffAdmission.ts +5 -0
  17. package/apps/storefront/src/lib/access/dashboard/tenantSelection.ts +2 -0
  18. package/apps/storefront/src/lib/access/shared/capability.ts +14 -6
  19. package/apps/storefront/src/lib/access/shared/generated/capabilityCatalog.generated.ts +161 -0
  20. package/apps/storefront/src/lib/activity/activityScope.ts +36 -0
  21. package/apps/storefront/src/lib/activity/recordActivity.ts +23 -1
  22. package/apps/storefront/src/lib/activity/serverFanOut.ts +31 -0
  23. package/apps/storefront/src/lib/activity/store.ts +9 -3
  24. package/apps/storefront/src/lib/checkout/agent/checkoutProtocol.ts +196 -0
  25. package/apps/storefront/src/lib/checkout/agent/checkoutSession.ts +296 -0
  26. package/apps/storefront/src/lib/checkout/agent/webBotAuth.ts +347 -0
  27. package/apps/storefront/src/lib/checkout/commerce/cardCartForm.ts +2 -0
  28. package/apps/storefront/src/lib/checkout/commerce/cartSession.ts +109 -12
  29. package/apps/storefront/src/lib/checkout/commerce/checkoutHandoffRoute.ts +53 -25
  30. package/apps/storefront/src/lib/checkout/commerce/finalCartAuthorization.ts +48 -6
  31. package/apps/storefront/src/lib/checkout/proposal/cartProposal.ts +388 -0
  32. package/apps/storefront/src/lib/checkout/proposal/listMatcher.ts +149 -0
  33. package/apps/storefront/src/lib/checkout/proposal/proposalRoutes.ts +522 -0
  34. package/apps/storefront/src/lib/checkout/proposal/reviewHtml.ts +100 -0
  35. package/apps/storefront/src/lib/compliance/browser/checkoutVerificationFlow.ts +26 -2
  36. package/apps/storefront/src/lib/content/shared/redirects.ts +21 -4
  37. package/apps/storefront/src/lib/publication/shared/edgeCache.ts +5 -2
  38. package/apps/storefront/src/lib/publication/shared/previewAnnotations/renderDecorator.ts +15 -8
  39. package/apps/storefront/src/lib/publication/shared/runtimeEnv.ts +1 -1
  40. package/apps/storefront/src/middleware/controlPlane.ts +15 -1
  41. package/apps/storefront/src/middleware/index.ts +7 -3
  42. package/apps/storefront/src/middleware/renderChain.ts +46 -33
  43. package/apps/storefront/src/pages/api/cart-proposal/confirm.ts +12 -0
  44. package/apps/storefront/src/pages/api/cart-proposal/review.ts +26 -0
  45. package/apps/storefront/src/pages/api/commerce/checkout-sessions/[id].ts +9 -0
  46. package/apps/storefront/src/pages/api/commerce/checkout-sessions.ts +8 -0
  47. package/apps/storefront/src/pages/api/commerce/final-cart-authorization.ts +29 -6
  48. package/apps/storefront/src/pages/api/compliance/preflight.ts +25 -1
  49. package/apps/storefront/src/pages/products/[handle].astro +2 -15
  50. package/apps/storefront/tsconfig.astro.json +11 -0
  51. package/package.json +1 -1
  52. package/packages/public-runtime/src/activity/README.md +12 -0
  53. package/packages/public-runtime/src/activity/catalog.ts +7 -0
  54. package/packages/public-runtime/src/activity/event.ts +19 -0
  55. package/packages/public-runtime/src/activity/redaction.ts +31 -2
  56. package/packages/public-runtime/src/catalog-files.ts +3 -2
  57. package/packages/public-runtime/src/checkout-orders.ts +18 -19
  58. package/packages/public-runtime/src/checkout.ts +70 -0
  59. package/packages/public-runtime/src/compliance/evaluate.ts +60 -1
  60. package/packages/public-runtime/src/compliance/index.ts +1 -1
  61. package/packages/public-runtime/src/compliance/pact-report.ts +184 -3
  62. package/packages/public-runtime/src/compliance/profile.ts +268 -20
  63. package/packages/public-runtime/src/compliance/ruleset.ts +42 -0
  64. package/packages/public-runtime/src/customization-runtime.ts +1 -1
  65. package/packages/public-runtime/src/product.ts +9 -1
  66. package/packages/public-runtime/src/publication-content-redirects.ts +16 -3
  67. package/packages/public-runtime/tests/fixtures/compliance-decisions.golden.json +252 -52
  68. package/pnpm-lock.runner.yaml +0 -15
  69. package/scripts/tenant/materialize-tenant-content.mjs +3 -0
  70. package/scripts/tenant/validate.mjs +128 -0
  71. package/apps/storefront/dev-plugins/dev-publish.mjs +0 -55
  72. package/apps/storefront/drizzle.config.apps.ts +0 -13
  73. package/apps/storefront/integrations/preview-annotations-client-bundle.mjs +0 -80
  74. package/apps/storefront/migrations-apps/0000_fast_millenium_guard.sql +0 -129
  75. package/apps/storefront/migrations-apps/0001_woozy_lyja.sql +0 -22
  76. package/apps/storefront/migrations-apps/0002_good_switch.sql +0 -26
  77. package/apps/storefront/migrations-apps/0003_mute_marauders.sql +0 -12
  78. package/apps/storefront/migrations-apps/0004_deep_morph.sql +0 -36
  79. package/apps/storefront/migrations-apps/0005_common_mystique.sql +0 -23
  80. package/apps/storefront/migrations-apps/0006_broad_microchip.sql +0 -16
  81. package/apps/storefront/migrations-apps/0007_brave_outlaw_kid.sql +0 -15
  82. package/apps/storefront/migrations-apps/0008_blue_dazzler.sql +0 -11
  83. package/apps/storefront/migrations-apps/0009_bored_shinobi_shaw.sql +0 -15
  84. package/apps/storefront/migrations-apps/0010_ws4_verified_provider_measurement.sql +0 -35
  85. package/apps/storefront/migrations-apps/0011_dt_tracking_tenant_databases.sql +0 -23
  86. package/apps/storefront/migrations-apps/0012_test_destinations.sql +0 -29
  87. package/apps/storefront/migrations-apps/0013_publication_space_editorial.sql +0 -64
  88. package/apps/storefront/migrations-apps/0014_retire_candidate_ledger.sql +0 -12
  89. package/apps/storefront/migrations-apps/0015_merchant_calculation_settings.sql +0 -31
  90. package/apps/storefront/migrations-apps/0016_scrappy_commerce_contract.sql +0 -166
  91. package/apps/storefront/migrations-apps/0017_commerce_durable_projection.sql +0 -28
  92. package/apps/storefront/migrations-apps/0018_commerce_provider_cart_identity.sql +0 -13
  93. package/apps/storefront/migrations-apps/0019_commerce_source_authority.sql +0 -23
  94. package/apps/storefront/migrations-apps/0020_contact_messages.sql +0 -18
  95. package/apps/storefront/migrations-apps/0021_contact_vault.sql +0 -166
  96. package/apps/storefront/migrations-apps/0022_contact_vault_fields.sql +0 -342
  97. package/apps/storefront/migrations-apps/0023_principal_grant_contacts.sql +0 -15
  98. package/apps/storefront/migrations-apps/0024_order_contact_erasure_state.sql +0 -22
  99. package/apps/storefront/migrations-apps/0025_shipment_audit_order_lookup.sql +0 -2
  100. package/apps/storefront/migrations-apps/0026_fulfillment_assignment.sql +0 -44
  101. package/apps/storefront/migrations-apps/0027_app_contact_authority.sql +0 -70
  102. package/apps/storefront/migrations-apps/0028_app_jwk_and_candidates.sql +0 -133
  103. package/apps/storefront/migrations-apps/0029_inventory_locations_wms.sql +0 -38
  104. package/apps/storefront/migrations-apps/0030_assignment_split_shipments.sql +0 -149
  105. package/apps/storefront/migrations-apps/meta/0000_snapshot.json +0 -843
  106. package/apps/storefront/migrations-apps/meta/0001_snapshot.json +0 -990
  107. package/apps/storefront/migrations-apps/meta/0002_snapshot.json +0 -1160
  108. package/apps/storefront/migrations-apps/meta/0003_snapshot.json +0 -1235
  109. package/apps/storefront/migrations-apps/meta/0004_snapshot.json +0 -1474
  110. package/apps/storefront/migrations-apps/meta/0005_snapshot.json +0 -1617
  111. package/apps/storefront/migrations-apps/meta/0006_snapshot.json +0 -1716
  112. package/apps/storefront/migrations-apps/meta/0007_snapshot.json +0 -1812
  113. package/apps/storefront/migrations-apps/meta/0008_snapshot.json +0 -1881
  114. package/apps/storefront/migrations-apps/meta/0009_snapshot.json +0 -1979
  115. package/apps/storefront/migrations-apps/meta/_journal.json +0 -76
  116. package/apps/storefront/perf/README.md +0 -64
  117. package/apps/storefront/perf/assert-budgets.ts +0 -159
  118. package/apps/storefront/platform-reconcile-tenants.json +0 -3
  119. package/apps/storefront/playwright.config.ts +0 -23
  120. package/apps/storefront/public/js/dashboard-access-banner.js +0 -53
  121. package/apps/storefront/public/js/dashboard-apps.js +0 -183
  122. package/apps/storefront/public/js/dashboard-contact-capture.js +0 -52
  123. package/apps/storefront/public/js/dashboard-delegate.js +0 -167
  124. package/apps/storefront/public/js/dashboard-team.js +0 -356
  125. package/apps/storefront/public/js/dashboard-vendor-search.js +0 -115
  126. package/apps/storefront/src/components/content/storefront/AsyncStylesheet.astro +0 -26
  127. package/apps/storefront/src/components/integrations/storefront/WidgetFrame.astro +0 -34
  128. package/apps/storefront/src/config/adminTenantLookup.ts +0 -35
  129. package/apps/storefront/src/config/evidenceTenantRoster.ts +0 -25
  130. package/apps/storefront/src/config/staffProvisionProjection.ts +0 -24
  131. package/apps/storefront/src/config/storeName.ts +0 -34
  132. package/apps/storefront/src/lib/access/admin/README.md +0 -122
  133. package/apps/storefront/src/lib/access/admin/adminShell.ts +0 -281
  134. package/apps/storefront/src/lib/access/admin/envelope.ts +0 -9
  135. package/apps/storefront/src/lib/access/admin/viewmodels/settings.ts +0 -64
  136. package/apps/storefront/src/lib/access/auth/adminApiGuard.ts +0 -66
  137. package/apps/storefront/src/lib/access/auth/adminEntry.ts +0 -126
  138. package/apps/storefront/src/lib/access/auth/mcpClientAssertion.ts +0 -217
  139. package/apps/storefront/src/lib/access/auth/operatorSession.ts +0 -120
  140. package/apps/storefront/src/lib/access/dashboard/agentStoreEntry.ts +0 -253
  141. package/apps/storefront/src/lib/access/dashboard/delegateGate.ts +0 -130
  142. package/apps/storefront/src/lib/access/dashboard/staffStoreEntry.ts +0 -153
  143. package/apps/storefront/src/lib/access/dashboard/staffVendorAccess.ts +0 -474
  144. package/apps/storefront/src/lib/access/dashboard/vendorQuery.ts +0 -61
  145. package/apps/storefront/src/lib/access/fixtures/settings.ts +0 -67
  146. package/apps/storefront/src/lib/access/fixtures/tenants.ts +0 -29
  147. package/apps/storefront/src/lib/access/notifications/magicLinkInviteEmail.ts +0 -62
  148. package/apps/storefront/src/lib/access/shared/grantContactLookup.ts +0 -97
  149. package/apps/storefront/src/lib/access/shared/principalGrants.ts +0 -775
  150. package/apps/storefront/src/lib/activity/alerts.ts +0 -426
  151. package/apps/storefront/src/lib/activity/candidateSubmitLease.ts +0 -87
  152. package/apps/storefront/src/lib/activity/changeActorAttribution.ts +0 -181
  153. package/apps/storefront/src/lib/activity/evidence/evidenceReference.ts +0 -32
  154. package/apps/storefront/src/lib/activity/fixtures/evidence.ts +0 -99
  155. package/apps/storefront/src/lib/activity/query.ts +0 -403
  156. package/apps/storefront/src/lib/activity/uiActor.ts +0 -152
  157. package/apps/storefront/src/lib/admin/services/mock/index.ts +0 -12
  158. package/apps/storefront/src/lib/assets/addons/catalog.ts +0 -60
  159. package/apps/storefront/src/lib/assets/addons/storeEntitlements.ts +0 -260
  160. package/apps/storefront/src/lib/assets/durableAssetsRoute.ts +0 -65
  161. package/apps/storefront/src/lib/assets/durableR2.ts +0 -473
  162. package/apps/storefront/src/lib/assets/durableR2Bindings.ts +0 -33
  163. package/apps/storefront/src/lib/automation/admin/viewmodels/aiWorkflows.ts +0 -65
  164. package/apps/storefront/src/lib/automation/ai/approvalMode.ts +0 -20
  165. package/apps/storefront/src/lib/automation/ai/askEnvelope.ts +0 -47
  166. package/apps/storefront/src/lib/automation/ai/audit.ts +0 -12
  167. package/apps/storefront/src/lib/automation/ai/operationalRuns.ts +0 -155
  168. package/apps/storefront/src/lib/automation/ai/recommendation.ts +0 -20
  169. package/apps/storefront/src/lib/automation/fixtures/aiWorkflows.ts +0 -59
  170. package/apps/storefront/src/lib/catalog/admin/catalogSettingsClient.ts +0 -250
  171. package/apps/storefront/src/lib/catalog/admin/catalogSettingsFields.ts +0 -134
  172. package/apps/storefront/src/lib/catalog/admin/catalogSettingsPreview.ts +0 -37
  173. package/apps/storefront/src/lib/catalog/admin/catalogSettingsPricingView.ts +0 -39
  174. package/apps/storefront/src/lib/catalog/admin/catalogSettingsRuleView.ts +0 -44
  175. package/apps/storefront/src/lib/catalog/admin/catalogSettingsSkuView.ts +0 -21
  176. package/apps/storefront/src/lib/catalog/admin/catalogSettingsState.ts +0 -132
  177. package/apps/storefront/src/lib/catalog/admin/productSetupPhoto.ts +0 -23
  178. package/apps/storefront/src/lib/catalog/admin/productsTabClient.ts +0 -193
  179. package/apps/storefront/src/lib/catalog/admin/services/catalogProducts.ts +0 -32
  180. package/apps/storefront/src/lib/catalog/admin/viewmodels/catalogProducts.ts +0 -164
  181. package/apps/storefront/src/lib/catalog/admin/viewmodels/products.ts +0 -267
  182. package/apps/storefront/src/lib/catalog/fixtures/products.ts +0 -105
  183. package/apps/storefront/src/lib/catalog/tot/syncState.ts +0 -111
  184. package/apps/storefront/src/lib/checkout/admin/checkoutStyleInput.ts +0 -172
  185. package/apps/storefront/src/lib/checkout/admin/checkoutStyleTarget.ts +0 -65
  186. package/apps/storefront/src/lib/checkout/browser/checkoutExciseForm.ts +0 -152
  187. package/apps/storefront/src/lib/checkout/browser/checkoutRequirementsForm.ts +0 -72
  188. package/apps/storefront/src/lib/checkout/browser/checkoutStyleForm.ts +0 -110
  189. package/apps/storefront/src/lib/checkout/browser/settingDraftActions.ts +0 -367
  190. package/apps/storefront/src/lib/checkout/commerce/checkoutSettings.ts +0 -246
  191. package/apps/storefront/src/lib/checkout/fixtures/checkoutSettings.ts +0 -77
  192. package/apps/storefront/src/lib/content/blog/markdown.ts +0 -174
  193. package/apps/storefront/src/lib/content/chrome/examples/tokenoftrust.chrome-assignments.example.json +0 -6
  194. package/apps/storefront/src/lib/content/chrome/examples/tokenoftrust.chrome.example.json +0 -79
  195. package/apps/storefront/src/lib/content/index.ts +0 -27
  196. package/apps/storefront/src/lib/content/the-build/readingTime.ts +0 -35
  197. package/apps/storefront/src/lib/content/the-build/toc.ts +0 -95
  198. package/apps/storefront/src/lib/customers/admin/viewmodels/customers.ts +0 -56
  199. package/apps/storefront/src/lib/customers/contactVault/blindIndex.ts +0 -28
  200. package/apps/storefront/src/lib/customers/contactVault/contactAudit.ts +0 -149
  201. package/apps/storefront/src/lib/customers/contactVault/dataKeys.ts +0 -283
  202. package/apps/storefront/src/lib/customers/contactVault/fieldEnvelope.ts +0 -88
  203. package/apps/storefront/src/lib/customers/contactVault/isolateMetrics.ts +0 -37
  204. package/apps/storefront/src/lib/customers/contactVault/kms.ts +0 -292
  205. package/apps/storefront/src/lib/customers/contactVault/retention.ts +0 -302
  206. package/apps/storefront/src/lib/customers/contactVault/retentionPolicy.ts +0 -290
  207. package/apps/storefront/src/lib/customers/contactVault/zip3.ts +0 -24
  208. package/apps/storefront/src/lib/customers/fixtures/customers.ts +0 -86
  209. package/apps/storefront/src/lib/developer-experience/admin/memoizeByEnvelope.ts +0 -27
  210. package/apps/storefront/src/lib/developer-experience/admin/seed.ts +0 -54
  211. package/apps/storefront/src/lib/developer-experience/dev/activityIngestToken.ts +0 -85
  212. package/apps/storefront/src/lib/developer-experience/dev/activityStore.ts +0 -82
  213. package/apps/storefront/src/lib/developer-experience/dev/agentGrantAttestation.ts +0 -74
  214. package/apps/storefront/src/lib/developer-experience/dev/ai-widget-client.js +0 -308
  215. package/apps/storefront/src/lib/developer-experience/dev/apiBase.ts +0 -17
  216. package/apps/storefront/src/lib/developer-experience/dev/cliSignInCode.ts +0 -124
  217. package/apps/storefront/src/lib/developer-experience/dev/cockpit/ask.ts +0 -49
  218. package/apps/storefront/src/lib/developer-experience/dev/cockpit/clickToSource.ts +0 -71
  219. package/apps/storefront/src/lib/developer-experience/dev/cockpit/copyCommand.ts +0 -227
  220. package/apps/storefront/src/lib/developer-experience/dev/cockpit/files.ts +0 -249
  221. package/apps/storefront/src/lib/developer-experience/dev/cockpit/hostedActivity.ts +0 -500
  222. package/apps/storefront/src/lib/developer-experience/dev/cockpit/infoPopover.ts +0 -12
  223. package/apps/storefront/src/lib/developer-experience/dev/cockpit/mcpCopy.ts +0 -34
  224. package/apps/storefront/src/lib/developer-experience/dev/cockpit/monitor.ts +0 -107
  225. package/apps/storefront/src/lib/developer-experience/dev/cockpit/stepper.ts +0 -116
  226. package/apps/storefront/src/lib/developer-experience/dev/cockpit/themeToggle.ts +0 -23
  227. package/apps/storefront/src/lib/developer-experience/dev/livePreview.ts +0 -77
  228. package/apps/storefront/src/lib/developer-experience/dev/obstacleStore.ts +0 -214
  229. package/apps/storefront/src/lib/developer-experience/dev/previewStatus.ts +0 -87
  230. package/apps/storefront/src/lib/developer-experience/dev/rendezvousBroker.ts +0 -226
  231. package/apps/storefront/src/lib/developer-experience/dev/runtimeStore.ts +0 -291
  232. package/apps/storefront/src/lib/developer-experience/dev/storeStatus.ts +0 -142
  233. package/apps/storefront/src/lib/developer-experience/dev/subjectReissue.ts +0 -67
  234. package/apps/storefront/src/lib/developer-experience/fixtures/regulated-commerce-truth/index.ts +0 -540
  235. package/apps/storefront/src/lib/developer-experience/fixtures/ws3-readonly-clone-preflight/index.ts +0 -495
  236. package/apps/storefront/src/lib/engagement/contact/contactMessages.ts +0 -671
  237. package/apps/storefront/src/lib/engagement/contact/messagesTabClient.ts +0 -175
  238. package/apps/storefront/src/lib/engagement/contact/submission.ts +0 -112
  239. package/apps/storefront/src/lib/engagement/messaging/messagesClient.ts +0 -149
  240. package/apps/storefront/src/lib/engagement/newsletter/digest.ts +0 -117
  241. package/apps/storefront/src/lib/engagement/newsletter/resendClient.ts +0 -79
  242. package/apps/storefront/src/lib/engagement/newsletter/send.ts +0 -265
  243. package/apps/storefront/src/lib/engagement/social/golive.ts +0 -212
  244. package/apps/storefront/src/lib/engagement/social/notify.ts +0 -32
  245. package/apps/storefront/src/lib/engagement/social/tokenStore.ts +0 -171
  246. package/apps/storefront/src/lib/fulfillment/admin/commerceDesk.ts +0 -180
  247. package/apps/storefront/src/lib/fulfillment/admin/commerceDeskRouting.ts +0 -45
  248. package/apps/storefront/src/lib/fulfillment/admin/viewmodels/fulfillment.ts +0 -1071
  249. package/apps/storefront/src/lib/fulfillment/appShipmentEvidence.ts +0 -271
  250. package/apps/storefront/src/lib/fulfillment/carrierEvidence.ts +0 -105
  251. package/apps/storefront/src/lib/fulfillment/commerceProjection.ts +0 -157
  252. package/apps/storefront/src/lib/fulfillment/commerceReadback.ts +0 -60
  253. package/apps/storefront/src/lib/fulfillment/commerceRecovery.ts +0 -84
  254. package/apps/storefront/src/lib/fulfillment/commerceRuntime.ts +0 -41
  255. package/apps/storefront/src/lib/fulfillment/fulfillmentService.ts +0 -2842
  256. package/apps/storefront/src/lib/fulfillment/readiness.ts +0 -217
  257. package/apps/storefront/src/lib/fulfillment/splitShipments.ts +0 -388
  258. package/apps/storefront/src/lib/fulfillment/syntheticPreviewOrders.ts +0 -292
  259. package/apps/storefront/src/lib/integrations/apps/appContactAuthority.ts +0 -27
  260. package/apps/storefront/src/lib/integrations/apps/appContactConsents.ts +0 -118
  261. package/apps/storefront/src/lib/integrations/apps/appInstallEnv.ts +0 -28
  262. package/apps/storefront/src/lib/integrations/apps/gtmMigrationDraft.ts +0 -103
  263. package/apps/storefront/src/lib/integrations/apps/inventoryWrite.ts +0 -906
  264. package/apps/storefront/src/lib/integrations/apps/orders/customerHash.ts +0 -28
  265. package/apps/storefront/src/lib/integrations/apps/orders/idempotency.ts +0 -100
  266. package/apps/storefront/src/lib/integrations/apps/reports/salesVelocityReport.ts +0 -96
  267. package/apps/storefront/src/lib/integrations/apps/routeParams.ts +0 -45
  268. package/apps/storefront/src/lib/integrations/webhooks/cloudflareQueueDispatcher.ts +0 -82
  269. package/apps/storefront/src/lib/integrations/webhooks/commercePayloads.ts +0 -159
  270. package/apps/storefront/src/lib/integrations/webhooks/deliveryEngine.ts +0 -379
  271. package/apps/storefront/src/lib/integrations/webhooks/deliveryMapper.ts +0 -34
  272. package/apps/storefront/src/lib/integrations/webhooks/deliveryStore.ts +0 -903
  273. package/apps/storefront/src/lib/integrations/webhooks/dispatcher.ts +0 -168
  274. package/apps/storefront/src/lib/integrations/webhooks/emit.ts +0 -245
  275. package/apps/storefront/src/lib/integrations/webhooks/events.ts +0 -105
  276. package/apps/storefront/src/lib/integrations/webhooks/getDispatcher.ts +0 -77
  277. package/apps/storefront/src/lib/integrations/webhooks/orderFulfilledClaim.ts +0 -75
  278. package/apps/storefront/src/lib/measurement/admin/analyticsRegionPolicy.ts +0 -151
  279. package/apps/storefront/src/lib/measurement/admin/analyticsRegionsClient.ts +0 -84
  280. package/apps/storefront/src/lib/measurement/admin/consentSettingsClient.ts +0 -113
  281. package/apps/storefront/src/lib/measurement/analytics/index.ts +0 -44
  282. package/apps/storefront/src/lib/measurement/attribution/attributionService.ts +0 -206
  283. package/apps/storefront/src/lib/measurement/attribution/orderConversionD1.ts +0 -150
  284. package/apps/storefront/src/lib/measurement/attribution/verifiedProviderMeasurement.ts +0 -118
  285. package/apps/storefront/src/lib/measurement/tracking/interactionCollector.ts +0 -205
  286. package/apps/storefront/src/lib/measurement/tracking/pruneRollup.ts +0 -260
  287. package/apps/storefront/src/lib/measurement/tracking/tenantReadAccess.ts +0 -138
  288. package/apps/storefront/src/lib/measurement/tracking-writeback/rewriteTrackingIds.ts +0 -175
  289. package/apps/storefront/src/lib/measurement/tracking-writeback/writebackCandidate.ts +0 -110
  290. package/apps/storefront/src/lib/observability/diag/capture.ts +0 -162
  291. package/apps/storefront/src/lib/observability/diag/consoleLine.ts +0 -76
  292. package/apps/storefront/src/lib/observability/diag/debugConsole.ts +0 -118
  293. package/apps/storefront/src/lib/observability/diag/debugMode.ts +0 -163
  294. package/apps/storefront/src/lib/observability/diag/debugWindow.ts +0 -111
  295. package/apps/storefront/src/lib/observability/diag/redact.ts +0 -17
  296. package/apps/storefront/src/lib/observability/diag/reference.ts +0 -148
  297. package/apps/storefront/src/lib/observability/diag/referenceStore.ts +0 -113
  298. package/apps/storefront/src/lib/observability/diag/report.ts +0 -110
  299. package/apps/storefront/src/lib/observability/diag/serverResponseTime.ts +0 -91
  300. package/apps/storefront/src/lib/observability/diag/session.ts +0 -93
  301. package/apps/storefront/src/lib/observability/monitoring/manifest.ts +0 -301
  302. package/apps/storefront/src/lib/observability/performance/lighthouseReport.ts +0 -109
  303. package/apps/storefront/src/lib/observability/performance/rumAlert.ts +0 -179
  304. package/apps/storefront/src/lib/orders/admin/orderActions.ts +0 -556
  305. package/apps/storefront/src/lib/orders/admin/orderClient.ts +0 -248
  306. package/apps/storefront/src/lib/orders/admin/orderSource.ts +0 -410
  307. package/apps/storefront/src/lib/orders/admin/services/orders.ts +0 -922
  308. package/apps/storefront/src/lib/orders/admin/viewmodels/orders.ts +0 -135
  309. package/apps/storefront/src/lib/orders/data/commerceCallerConfig.ts +0 -37
  310. package/apps/storefront/src/lib/orders/data/ledgerContractOrders.ts +0 -148
  311. package/apps/storefront/src/lib/orders/data/orderForwardReceiver.ts +0 -532
  312. package/apps/storefront/src/lib/orders/data/orderMapper.ts +0 -454
  313. package/apps/storefront/src/lib/orders/data/ordersStore.ts +0 -623
  314. package/apps/storefront/src/lib/orders/data/sourceAuthorityContract.ts +0 -380
  315. package/apps/storefront/src/lib/orders/data/sourceAuthorityStore.ts +0 -830
  316. package/apps/storefront/src/lib/orders/fixtures/orders.ts +0 -186
  317. package/apps/storefront/src/lib/orders/providers/foxyOrderClient.ts +0 -207
  318. package/apps/storefront/src/lib/orders/vault/appRecipientRead.ts +0 -222
  319. package/apps/storefront/src/lib/orders/vault/contactIntake.ts +0 -63
  320. package/apps/storefront/src/lib/orders/vault/contactRoutes.ts +0 -110
  321. package/apps/storefront/src/lib/orders/vault/kmsEnv.ts +0 -11
  322. package/apps/storefront/src/lib/orders/vault/orderContact.ts +0 -96
  323. package/apps/storefront/src/lib/orders/vault/orderContactVault.ts +0 -1427
  324. package/apps/storefront/src/lib/orders/vault/vault-test-support.ts +0 -258
  325. package/apps/storefront/src/lib/publication/d1/schema-apps.ts +0 -808
  326. package/apps/storefront/src/lib/publication/notifications/candidateConflictEmail.ts +0 -80
  327. package/apps/storefront/src/lib/publication/servingMode.ts +0 -52
  328. package/apps/storefront/src/lib/publication/shared/previewAnnotations/moduleAsset.ts +0 -65
  329. package/apps/storefront/src/lib/publication/shared/routedApiParam.ts +0 -38
  330. package/apps/storefront/src/lib/reporting/admin/viewmodels/reporting.ts +0 -34
  331. package/apps/storefront/src/lib/reporting/fixtures/reporting.ts +0 -51
  332. package/apps/storefront/src/lib/subscriptions/admin/viewmodels/subscriptions.ts +0 -106
  333. package/apps/storefront/src/lib/subscriptions/fixtures/subscriptions.ts +0 -398
  334. package/apps/storefront/src/pages/api/admin/activity-alerts.ts +0 -58
  335. package/apps/storefront/src/pages/api/admin/commerce-readiness.ts +0 -172
  336. package/apps/storefront/src/pages/api/admin/fulfillment/batches.ts +0 -59
  337. package/apps/storefront/src/pages/api/admin/fulfillment/orders/[id]/address.ts +0 -66
  338. package/apps/storefront/src/pages/api/admin/fulfillment/orders/[id].ts +0 -118
  339. package/apps/storefront/src/pages/api/admin/fulfillment/orders/contact-search.ts +0 -26
  340. package/apps/storefront/src/pages/api/admin/fulfillment/orders/contacts.ts +0 -22
  341. package/apps/storefront/src/pages/api/admin/interaction-insights.ts +0 -101
  342. package/apps/storefront/src/pages/api/admin/orders/[id].ts +0 -63
  343. package/apps/storefront/src/pages/api/admin/orders.ts +0 -65
  344. package/apps/storefront/src/pages/api/contact.ts +0 -144
  345. package/apps/storefront/src/scheduled/contactVaultSweep.ts +0 -113
  346. package/apps/storefront/src/styles/admin.css +0 -1161
  347. package/apps/storefront/test/pipeline/fake-preview-services.ts +0 -288
  348. package/apps/storefront/test/pipeline/harness.ts +0 -209
  349. package/apps/storefront/test/pipeline/intake-worker.mjs +0 -14
  350. package/apps/storefront/test/pipeline/matrix-faults.ts +0 -366
  351. package/apps/storefront/test/pipeline/pipeline-host.ts +0 -418
  352. package/apps/storefront/test/pipeline/pool-config.cjs +0 -85
  353. package/apps/storefront/test/pipeline/publish-kinds.ts +0 -279
  354. package/apps/storefront/test/pipeline/synthetic-job.ts +0 -303
  355. package/apps/storefront/test/pipeline-faults/matrix-lib.ts +0 -696
  356. package/apps/storefront/vitest.config.cts +0 -44
  357. package/apps/storefront/vitest.faults.config.cts +0 -13
  358. package/apps/storefront/vitest.workers.config.cts +0 -7
  359. package/packages/feedback/fixtures/v1/expected-findings.json +0 -16
  360. package/packages/feedback/fixtures/v1/feedback-action/invalid/carries-transport-credential.json +0 -14
  361. package/packages/feedback/fixtures/v1/feedback-action/invalid/control-char-in-description.json +0 -13
  362. package/packages/feedback/fixtures/v1/feedback-action/invalid/legacy-schema-version.json +0 -13
  363. package/packages/feedback/fixtures/v1/feedback-action/invalid/page-path-with-query.json +0 -14
  364. package/packages/feedback/fixtures/v1/feedback-action/invalid/title-too-short.json +0 -13
  365. package/packages/feedback/fixtures/v1/feedback-action/valid/element-problem.json +0 -33
  366. package/packages/feedback/fixtures/v1/feedback-action/valid/page-comment.json +0 -20
  367. package/packages/feedback/fixtures/v1/feedback-action/valid/region-improvement.json +0 -24
  368. package/packages/feedback/fixtures/v1/feedback-action/valid/text-selection-feature.json +0 -30
  369. package/packages/feedback/fixtures/v1/submission-receipt/invalid/accepted-at-not-utc.json +0 -9
  370. package/packages/feedback/fixtures/v1/submission-receipt/invalid/bad-feedback-id.json +0 -9
  371. package/packages/feedback/fixtures/v1/submission-receipt/invalid/legacy-contract-version.json +0 -9
  372. package/packages/feedback/fixtures/v1/submission-receipt/invalid/missing-replayed.json +0 -8
  373. package/packages/feedback/fixtures/v1/submission-receipt/valid/accepted.json +0 -9
  374. package/packages/feedback/fixtures/v1/submission-receipt/valid/fractional-seconds.json +0 -9
  375. package/packages/feedback/fixtures/v1/submission-receipt/valid/replayed.json +0 -9
  376. package/packages/feedback/fixtures/v1/target-evidence/invalid/page-kind-claims-structure.json +0 -6
  377. package/packages/feedback/fixtures/v1/target-evidence/invalid/path-too-deep.json +0 -17
  378. package/packages/feedback/fixtures/v1/target-evidence/invalid/relative-region-out-of-range.json +0 -11
  379. package/packages/feedback/fixtures/v1/target-evidence/invalid/selector-uses-class.json +0 -7
  380. package/packages/feedback/fixtures/v1/target-evidence/invalid/source-precision-without-anchor.json +0 -6
  381. package/packages/feedback/fixtures/v1/target-evidence/valid/element-structure.json +0 -21
  382. package/packages/feedback/fixtures/v1/target-evidence/valid/host-iframe.json +0 -14
  383. package/packages/feedback/fixtures/v1/target-evidence/valid/source-anchor.json +0 -12
  384. package/packages/feedback/fixtures/v1/target-evidence/valid/text-selection.json +0 -26
  385. package/packages/feedback/package.json +0 -35
  386. package/packages/feedback/scripts/build-player.mjs +0 -28
  387. package/packages/feedback/src/index.ts +0 -1
  388. package/packages/feedback/src/primitives/composer.ts +0 -639
  389. package/packages/feedback/src/primitives/dialog.ts +0 -263
  390. package/packages/feedback/src/primitives/hostAdapter.ts +0 -116
  391. package/packages/feedback/src/primitives/index.ts +0 -10
  392. package/packages/feedback/src/primitives/launcher.ts +0 -200
  393. package/packages/feedback/src/primitives/picker.ts +0 -663
  394. package/packages/feedback/src/primitives/redaction.ts +0 -204
  395. package/packages/feedback/src/primitives/selection.ts +0 -49
  396. package/packages/feedback/src/primitives/shiftAccelerator.ts +0 -160
  397. package/packages/feedback/src/primitives/styles.ts +0 -77
  398. package/packages/feedback/src/primitives/surface.ts +0 -124
  399. package/packages/feedback/src/primitives/target.ts +0 -293
  400. package/packages/feedback/src/tour/canonical.ts +0 -27
  401. package/packages/feedback/src/tour/index.ts +0 -3
  402. package/packages/feedback/src/tour/player/browser.ts +0 -5
  403. package/packages/feedback/src/tour/player/host.ts +0 -12
  404. package/packages/feedback/src/tour/player/index.ts +0 -205
  405. package/packages/feedback/src/tour/player/manifest.ts +0 -76
  406. package/packages/feedback/src/tour/player/player.css +0 -130
  407. package/packages/feedback/src/tour/player/resolver.ts +0 -12
  408. package/packages/feedback/src/tour/player/surface.ts +0 -295
  409. package/packages/feedback/src/tour/player/types.ts +0 -8
  410. package/packages/feedback/src/tour/resolve/core.ts +0 -267
  411. package/packages/feedback/src/tour/resolve/dom.ts +0 -115
  412. package/packages/feedback/src/tour/resolve/index.ts +0 -29
  413. package/packages/feedback/src/tour/sanitize.ts +0 -76
  414. package/packages/feedback/src/tour/schema.ts +0 -362
  415. package/packages/feedback/src/v1/guards.ts +0 -335
  416. package/packages/feedback/src/v1/index.ts +0 -3
  417. package/packages/feedback/src/v1/protectedSurfaces.ts +0 -32
  418. package/packages/feedback/src/v1/types.ts +0 -177
  419. package/packages/feedback/tsconfig.json +0 -9
  420. package/packages/feedback/vitest.config.cts +0 -21
@@ -1,1881 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "32ab1171-8b55-45fd-ba2c-7aca0249a1cc",
5
- "prevId": "5a5fe337-901c-43c8-afcc-fe11d2c7b9fd",
6
- "tables": {
7
- "activity_events": {
8
- "name": "activity_events",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "tenant_id": {
18
- "name": "tenant_id",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "action": {
25
- "name": "action",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "actor_kind": {
32
- "name": "actor_kind",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": true,
36
- "autoincrement": false
37
- },
38
- "actor_id": {
39
- "name": "actor_id",
40
- "type": "text",
41
- "primaryKey": false,
42
- "notNull": true,
43
- "autoincrement": false
44
- },
45
- "actor_ref": {
46
- "name": "actor_ref",
47
- "type": "text",
48
- "primaryKey": false,
49
- "notNull": false,
50
- "autoincrement": false
51
- },
52
- "source": {
53
- "name": "source",
54
- "type": "text",
55
- "primaryKey": false,
56
- "notNull": true,
57
- "autoincrement": false
58
- },
59
- "status": {
60
- "name": "status",
61
- "type": "text",
62
- "primaryKey": false,
63
- "notNull": true,
64
- "autoincrement": false
65
- },
66
- "error_class": {
67
- "name": "error_class",
68
- "type": "text",
69
- "primaryKey": false,
70
- "notNull": false,
71
- "autoincrement": false
72
- },
73
- "duration_ms": {
74
- "name": "duration_ms",
75
- "type": "integer",
76
- "primaryKey": false,
77
- "notNull": false,
78
- "autoincrement": false
79
- },
80
- "change_id": {
81
- "name": "change_id",
82
- "type": "text",
83
- "primaryKey": false,
84
- "notNull": false,
85
- "autoincrement": false
86
- },
87
- "trace_id": {
88
- "name": "trace_id",
89
- "type": "text",
90
- "primaryKey": false,
91
- "notNull": false,
92
- "autoincrement": false
93
- },
94
- "payload": {
95
- "name": "payload",
96
- "type": "text",
97
- "primaryKey": false,
98
- "notNull": true,
99
- "autoincrement": false,
100
- "default": "'{}'"
101
- },
102
- "schema_version": {
103
- "name": "schema_version",
104
- "type": "integer",
105
- "primaryKey": false,
106
- "notNull": true,
107
- "autoincrement": false
108
- },
109
- "at": {
110
- "name": "at",
111
- "type": "text",
112
- "primaryKey": false,
113
- "notNull": true,
114
- "autoincrement": false
115
- },
116
- "ingested_at": {
117
- "name": "ingested_at",
118
- "type": "text",
119
- "primaryKey": false,
120
- "notNull": true,
121
- "autoincrement": false
122
- }
123
- },
124
- "indexes": {
125
- "idx_activity_tenant_at": {
126
- "name": "idx_activity_tenant_at",
127
- "columns": [
128
- "tenant_id",
129
- "at"
130
- ],
131
- "isUnique": false
132
- },
133
- "idx_activity_tenant_action": {
134
- "name": "idx_activity_tenant_action",
135
- "columns": [
136
- "tenant_id",
137
- "action"
138
- ],
139
- "isUnique": false
140
- },
141
- "idx_activity_change": {
142
- "name": "idx_activity_change",
143
- "columns": [
144
- "change_id"
145
- ],
146
- "isUnique": false
147
- }
148
- },
149
- "foreignKeys": {},
150
- "compositePrimaryKeys": {},
151
- "uniqueConstraints": {},
152
- "checkConstraints": {}
153
- },
154
- "app_attributions": {
155
- "name": "app_attributions",
156
- "columns": {
157
- "install_id": {
158
- "name": "install_id",
159
- "type": "text",
160
- "primaryKey": false,
161
- "notNull": true,
162
- "autoincrement": false
163
- },
164
- "attribution_id": {
165
- "name": "attribution_id",
166
- "type": "text",
167
- "primaryKey": false,
168
- "notNull": true,
169
- "autoincrement": false
170
- },
171
- "tenant_id": {
172
- "name": "tenant_id",
173
- "type": "text",
174
- "primaryKey": false,
175
- "notNull": true,
176
- "autoincrement": false
177
- },
178
- "order_id": {
179
- "name": "order_id",
180
- "type": "text",
181
- "primaryKey": false,
182
- "notNull": true,
183
- "autoincrement": false
184
- },
185
- "campaign": {
186
- "name": "campaign",
187
- "type": "text",
188
- "primaryKey": false,
189
- "notNull": false,
190
- "autoincrement": false
191
- },
192
- "referral_code": {
193
- "name": "referral_code",
194
- "type": "text",
195
- "primaryKey": false,
196
- "notNull": false,
197
- "autoincrement": false
198
- },
199
- "commission_amount": {
200
- "name": "commission_amount",
201
- "type": "real",
202
- "primaryKey": false,
203
- "notNull": false,
204
- "autoincrement": false
205
- },
206
- "commission_currency": {
207
- "name": "commission_currency",
208
- "type": "text",
209
- "primaryKey": false,
210
- "notNull": false,
211
- "autoincrement": false
212
- },
213
- "customer_hash": {
214
- "name": "customer_hash",
215
- "type": "text",
216
- "primaryKey": false,
217
- "notNull": false,
218
- "autoincrement": false
219
- },
220
- "recorded_at": {
221
- "name": "recorded_at",
222
- "type": "text",
223
- "primaryKey": false,
224
- "notNull": true,
225
- "autoincrement": false
226
- }
227
- },
228
- "indexes": {
229
- "idx_app_attributions_tenant_order": {
230
- "name": "idx_app_attributions_tenant_order",
231
- "columns": [
232
- "tenant_id",
233
- "order_id"
234
- ],
235
- "isUnique": false
236
- }
237
- },
238
- "foreignKeys": {},
239
- "compositePrimaryKeys": {
240
- "app_attributions_install_id_attribution_id_pk": {
241
- "columns": [
242
- "install_id",
243
- "attribution_id"
244
- ],
245
- "name": "app_attributions_install_id_attribution_id_pk"
246
- }
247
- },
248
- "uniqueConstraints": {},
249
- "checkConstraints": {}
250
- },
251
- "app_audit_log": {
252
- "name": "app_audit_log",
253
- "columns": {
254
- "id": {
255
- "name": "id",
256
- "type": "text",
257
- "primaryKey": true,
258
- "notNull": true,
259
- "autoincrement": false
260
- },
261
- "install_id": {
262
- "name": "install_id",
263
- "type": "text",
264
- "primaryKey": false,
265
- "notNull": true,
266
- "autoincrement": false
267
- },
268
- "tenant_id": {
269
- "name": "tenant_id",
270
- "type": "text",
271
- "primaryKey": false,
272
- "notNull": true,
273
- "autoincrement": false
274
- },
275
- "event": {
276
- "name": "event",
277
- "type": "text",
278
- "primaryKey": false,
279
- "notNull": true,
280
- "autoincrement": false
281
- },
282
- "actor": {
283
- "name": "actor",
284
- "type": "text",
285
- "primaryKey": false,
286
- "notNull": true,
287
- "autoincrement": false
288
- },
289
- "trace_id": {
290
- "name": "trace_id",
291
- "type": "text",
292
- "primaryKey": false,
293
- "notNull": false,
294
- "autoincrement": false
295
- },
296
- "detail": {
297
- "name": "detail",
298
- "type": "text",
299
- "primaryKey": false,
300
- "notNull": true,
301
- "autoincrement": false,
302
- "default": "'{}'"
303
- },
304
- "at": {
305
- "name": "at",
306
- "type": "text",
307
- "primaryKey": false,
308
- "notNull": true,
309
- "autoincrement": false
310
- }
311
- },
312
- "indexes": {
313
- "idx_app_audit_install": {
314
- "name": "idx_app_audit_install",
315
- "columns": [
316
- "install_id"
317
- ],
318
- "isUnique": false
319
- }
320
- },
321
- "foreignKeys": {},
322
- "compositePrimaryKeys": {},
323
- "uniqueConstraints": {},
324
- "checkConstraints": {}
325
- },
326
- "app_credentials": {
327
- "name": "app_credentials",
328
- "columns": {
329
- "install_id": {
330
- "name": "install_id",
331
- "type": "text",
332
- "primaryKey": true,
333
- "notNull": true,
334
- "autoincrement": false
335
- },
336
- "client_id": {
337
- "name": "client_id",
338
- "type": "text",
339
- "primaryKey": false,
340
- "notNull": true,
341
- "autoincrement": false
342
- },
343
- "secret_hash": {
344
- "name": "secret_hash",
345
- "type": "text",
346
- "primaryKey": false,
347
- "notNull": true,
348
- "autoincrement": false
349
- },
350
- "secret_created_at": {
351
- "name": "secret_created_at",
352
- "type": "text",
353
- "primaryKey": false,
354
- "notNull": true,
355
- "autoincrement": false
356
- },
357
- "rotated_at": {
358
- "name": "rotated_at",
359
- "type": "text",
360
- "primaryKey": false,
361
- "notNull": false,
362
- "autoincrement": false
363
- },
364
- "jwks_kid": {
365
- "name": "jwks_kid",
366
- "type": "text",
367
- "primaryKey": false,
368
- "notNull": true,
369
- "autoincrement": false
370
- }
371
- },
372
- "indexes": {
373
- "app_credentials_client_id_unique": {
374
- "name": "app_credentials_client_id_unique",
375
- "columns": [
376
- "client_id"
377
- ],
378
- "isUnique": true
379
- }
380
- },
381
- "foreignKeys": {},
382
- "compositePrimaryKeys": {},
383
- "uniqueConstraints": {},
384
- "checkConstraints": {}
385
- },
386
- "app_installs": {
387
- "name": "app_installs",
388
- "columns": {
389
- "install_id": {
390
- "name": "install_id",
391
- "type": "text",
392
- "primaryKey": true,
393
- "notNull": true,
394
- "autoincrement": false
395
- },
396
- "app_id": {
397
- "name": "app_id",
398
- "type": "text",
399
- "primaryKey": false,
400
- "notNull": true,
401
- "autoincrement": false
402
- },
403
- "app_version": {
404
- "name": "app_version",
405
- "type": "text",
406
- "primaryKey": false,
407
- "notNull": true,
408
- "autoincrement": false
409
- },
410
- "tenant_id": {
411
- "name": "tenant_id",
412
- "type": "text",
413
- "primaryKey": false,
414
- "notNull": true,
415
- "autoincrement": false
416
- },
417
- "env": {
418
- "name": "env",
419
- "type": "text",
420
- "primaryKey": false,
421
- "notNull": true,
422
- "autoincrement": false
423
- },
424
- "status": {
425
- "name": "status",
426
- "type": "text",
427
- "primaryKey": false,
428
- "notNull": true,
429
- "autoincrement": false,
430
- "default": "'active'"
431
- },
432
- "scopes": {
433
- "name": "scopes",
434
- "type": "text",
435
- "primaryKey": false,
436
- "notNull": true,
437
- "autoincrement": false,
438
- "default": "'[]'"
439
- },
440
- "manifest": {
441
- "name": "manifest",
442
- "type": "text",
443
- "primaryKey": false,
444
- "notNull": true,
445
- "autoincrement": false
446
- },
447
- "webhook_endpoint": {
448
- "name": "webhook_endpoint",
449
- "type": "text",
450
- "primaryKey": false,
451
- "notNull": false,
452
- "autoincrement": false
453
- },
454
- "widget_placements": {
455
- "name": "widget_placements",
456
- "type": "text",
457
- "primaryKey": false,
458
- "notNull": true,
459
- "autoincrement": false,
460
- "default": "'[]'"
461
- },
462
- "install_actor": {
463
- "name": "install_actor",
464
- "type": "text",
465
- "primaryKey": false,
466
- "notNull": true,
467
- "autoincrement": false
468
- },
469
- "created_at": {
470
- "name": "created_at",
471
- "type": "text",
472
- "primaryKey": false,
473
- "notNull": true,
474
- "autoincrement": false
475
- },
476
- "updated_at": {
477
- "name": "updated_at",
478
- "type": "text",
479
- "primaryKey": false,
480
- "notNull": true,
481
- "autoincrement": false
482
- }
483
- },
484
- "indexes": {
485
- "uq_app_installs_app_tenant_env": {
486
- "name": "uq_app_installs_app_tenant_env",
487
- "columns": [
488
- "app_id",
489
- "tenant_id",
490
- "env"
491
- ],
492
- "isUnique": true
493
- },
494
- "idx_app_installs_tenant": {
495
- "name": "idx_app_installs_tenant",
496
- "columns": [
497
- "tenant_id"
498
- ],
499
- "isUnique": false
500
- }
501
- },
502
- "foreignKeys": {},
503
- "compositePrimaryKeys": {},
504
- "uniqueConstraints": {},
505
- "checkConstraints": {}
506
- },
507
- "app_version_snapshots": {
508
- "name": "app_version_snapshots",
509
- "columns": {
510
- "id": {
511
- "name": "id",
512
- "type": "text",
513
- "primaryKey": true,
514
- "notNull": true,
515
- "autoincrement": false
516
- },
517
- "install_id": {
518
- "name": "install_id",
519
- "type": "text",
520
- "primaryKey": false,
521
- "notNull": true,
522
- "autoincrement": false
523
- },
524
- "tenant_id": {
525
- "name": "tenant_id",
526
- "type": "text",
527
- "primaryKey": false,
528
- "notNull": true,
529
- "autoincrement": false
530
- },
531
- "seq": {
532
- "name": "seq",
533
- "type": "integer",
534
- "primaryKey": false,
535
- "notNull": true,
536
- "autoincrement": false
537
- },
538
- "app_version": {
539
- "name": "app_version",
540
- "type": "text",
541
- "primaryKey": false,
542
- "notNull": true,
543
- "autoincrement": false
544
- },
545
- "facets": {
546
- "name": "facets",
547
- "type": "text",
548
- "primaryKey": false,
549
- "notNull": true,
550
- "autoincrement": false
551
- },
552
- "actor": {
553
- "name": "actor",
554
- "type": "text",
555
- "primaryKey": false,
556
- "notNull": true,
557
- "autoincrement": false
558
- },
559
- "note": {
560
- "name": "note",
561
- "type": "text",
562
- "primaryKey": false,
563
- "notNull": false,
564
- "autoincrement": false
565
- },
566
- "restored_from_seq": {
567
- "name": "restored_from_seq",
568
- "type": "integer",
569
- "primaryKey": false,
570
- "notNull": false,
571
- "autoincrement": false
572
- },
573
- "created_at": {
574
- "name": "created_at",
575
- "type": "text",
576
- "primaryKey": false,
577
- "notNull": true,
578
- "autoincrement": false
579
- }
580
- },
581
- "indexes": {
582
- "uq_app_version_snapshots_install_seq": {
583
- "name": "uq_app_version_snapshots_install_seq",
584
- "columns": [
585
- "install_id",
586
- "seq"
587
- ],
588
- "isUnique": true
589
- },
590
- "idx_app_version_snapshots_install": {
591
- "name": "idx_app_version_snapshots_install",
592
- "columns": [
593
- "install_id"
594
- ],
595
- "isUnique": false
596
- }
597
- },
598
- "foreignKeys": {},
599
- "compositePrimaryKeys": {},
600
- "uniqueConstraints": {},
601
- "checkConstraints": {}
602
- },
603
- "candidate_attempts": {
604
- "name": "candidate_attempts",
605
- "columns": {
606
- "id": {
607
- "name": "id",
608
- "type": "text",
609
- "primaryKey": true,
610
- "notNull": true,
611
- "autoincrement": false
612
- },
613
- "candidate_id": {
614
- "name": "candidate_id",
615
- "type": "text",
616
- "primaryKey": false,
617
- "notNull": true,
618
- "autoincrement": false
619
- },
620
- "tenant_id": {
621
- "name": "tenant_id",
622
- "type": "text",
623
- "primaryKey": false,
624
- "notNull": true,
625
- "autoincrement": false
626
- },
627
- "attempt_number": {
628
- "name": "attempt_number",
629
- "type": "integer",
630
- "primaryKey": false,
631
- "notNull": true,
632
- "autoincrement": false
633
- },
634
- "kind": {
635
- "name": "kind",
636
- "type": "text",
637
- "primaryKey": false,
638
- "notNull": true,
639
- "autoincrement": false
640
- },
641
- "status": {
642
- "name": "status",
643
- "type": "text",
644
- "primaryKey": false,
645
- "notNull": true,
646
- "autoincrement": false,
647
- "default": "'pending'"
648
- },
649
- "head_sha": {
650
- "name": "head_sha",
651
- "type": "text",
652
- "primaryKey": false,
653
- "notNull": false,
654
- "autoincrement": false
655
- },
656
- "detail": {
657
- "name": "detail",
658
- "type": "text",
659
- "primaryKey": false,
660
- "notNull": false,
661
- "autoincrement": false
662
- },
663
- "evidence": {
664
- "name": "evidence",
665
- "type": "text",
666
- "primaryKey": false,
667
- "notNull": false,
668
- "autoincrement": false
669
- },
670
- "started_at": {
671
- "name": "started_at",
672
- "type": "text",
673
- "primaryKey": false,
674
- "notNull": true,
675
- "autoincrement": false
676
- },
677
- "finished_at": {
678
- "name": "finished_at",
679
- "type": "text",
680
- "primaryKey": false,
681
- "notNull": false,
682
- "autoincrement": false
683
- }
684
- },
685
- "indexes": {
686
- "uq_candidate_attempts_candidate_number": {
687
- "name": "uq_candidate_attempts_candidate_number",
688
- "columns": [
689
- "candidate_id",
690
- "attempt_number"
691
- ],
692
- "isUnique": true
693
- },
694
- "idx_candidate_attempts_candidate": {
695
- "name": "idx_candidate_attempts_candidate",
696
- "columns": [
697
- "candidate_id"
698
- ],
699
- "isUnique": false
700
- },
701
- "idx_candidate_attempts_tenant": {
702
- "name": "idx_candidate_attempts_tenant",
703
- "columns": [
704
- "tenant_id"
705
- ],
706
- "isUnique": false
707
- }
708
- },
709
- "foreignKeys": {},
710
- "compositePrimaryKeys": {},
711
- "uniqueConstraints": {},
712
- "checkConstraints": {}
713
- },
714
- "candidate_submit_leases": {
715
- "name": "candidate_submit_leases",
716
- "columns": {
717
- "tenant_id": {
718
- "name": "tenant_id",
719
- "type": "text",
720
- "primaryKey": false,
721
- "notNull": true,
722
- "autoincrement": false
723
- },
724
- "change_id": {
725
- "name": "change_id",
726
- "type": "text",
727
- "primaryKey": false,
728
- "notNull": true,
729
- "autoincrement": false
730
- },
731
- "authorization_id": {
732
- "name": "authorization_id",
733
- "type": "text",
734
- "primaryKey": false,
735
- "notNull": true,
736
- "autoincrement": false
737
- },
738
- "status": {
739
- "name": "status",
740
- "type": "text",
741
- "primaryKey": false,
742
- "notNull": true,
743
- "autoincrement": false,
744
- "default": "'active'"
745
- },
746
- "acquired_at": {
747
- "name": "acquired_at",
748
- "type": "text",
749
- "primaryKey": false,
750
- "notNull": true,
751
- "autoincrement": false
752
- },
753
- "expires_at": {
754
- "name": "expires_at",
755
- "type": "text",
756
- "primaryKey": false,
757
- "notNull": true,
758
- "autoincrement": false
759
- }
760
- },
761
- "indexes": {
762
- "idx_candidate_submit_leases_expires": {
763
- "name": "idx_candidate_submit_leases_expires",
764
- "columns": [
765
- "expires_at"
766
- ],
767
- "isUnique": false
768
- }
769
- },
770
- "foreignKeys": {},
771
- "compositePrimaryKeys": {
772
- "candidate_submit_leases_tenant_id_change_id_pk": {
773
- "columns": [
774
- "tenant_id",
775
- "change_id"
776
- ],
777
- "name": "candidate_submit_leases_tenant_id_change_id_pk"
778
- }
779
- },
780
- "uniqueConstraints": {},
781
- "checkConstraints": {}
782
- },
783
- "candidates": {
784
- "name": "candidates",
785
- "columns": {
786
- "id": {
787
- "name": "id",
788
- "type": "text",
789
- "primaryKey": true,
790
- "notNull": true,
791
- "autoincrement": false
792
- },
793
- "tenant_id": {
794
- "name": "tenant_id",
795
- "type": "text",
796
- "primaryKey": false,
797
- "notNull": true,
798
- "autoincrement": false
799
- },
800
- "repository": {
801
- "name": "repository",
802
- "type": "text",
803
- "primaryKey": false,
804
- "notNull": true,
805
- "autoincrement": false
806
- },
807
- "pr_number": {
808
- "name": "pr_number",
809
- "type": "integer",
810
- "primaryKey": false,
811
- "notNull": true,
812
- "autoincrement": false
813
- },
814
- "change_id": {
815
- "name": "change_id",
816
- "type": "text",
817
- "primaryKey": false,
818
- "notNull": true,
819
- "autoincrement": false
820
- },
821
- "branch": {
822
- "name": "branch",
823
- "type": "text",
824
- "primaryKey": false,
825
- "notNull": false,
826
- "autoincrement": false
827
- },
828
- "title": {
829
- "name": "title",
830
- "type": "text",
831
- "primaryKey": false,
832
- "notNull": false,
833
- "autoincrement": false
834
- },
835
- "author": {
836
- "name": "author",
837
- "type": "text",
838
- "primaryKey": false,
839
- "notNull": false,
840
- "autoincrement": false
841
- },
842
- "status": {
843
- "name": "status",
844
- "type": "text",
845
- "primaryKey": false,
846
- "notNull": true,
847
- "autoincrement": false,
848
- "default": "'open'"
849
- },
850
- "head_sha": {
851
- "name": "head_sha",
852
- "type": "text",
853
- "primaryKey": false,
854
- "notNull": false,
855
- "autoincrement": false
856
- },
857
- "base_sha": {
858
- "name": "base_sha",
859
- "type": "text",
860
- "primaryKey": false,
861
- "notNull": false,
862
- "autoincrement": false
863
- },
864
- "created_at": {
865
- "name": "created_at",
866
- "type": "text",
867
- "primaryKey": false,
868
- "notNull": true,
869
- "autoincrement": false
870
- },
871
- "updated_at": {
872
- "name": "updated_at",
873
- "type": "text",
874
- "primaryKey": false,
875
- "notNull": true,
876
- "autoincrement": false
877
- }
878
- },
879
- "indexes": {
880
- "uq_candidates_tenant_repo_pr": {
881
- "name": "uq_candidates_tenant_repo_pr",
882
- "columns": [
883
- "tenant_id",
884
- "repository",
885
- "pr_number"
886
- ],
887
- "isUnique": true
888
- },
889
- "uq_candidates_tenant_change": {
890
- "name": "uq_candidates_tenant_change",
891
- "columns": [
892
- "tenant_id",
893
- "change_id"
894
- ],
895
- "isUnique": true
896
- },
897
- "idx_candidates_tenant_status": {
898
- "name": "idx_candidates_tenant_status",
899
- "columns": [
900
- "tenant_id",
901
- "status"
902
- ],
903
- "isUnique": false
904
- }
905
- },
906
- "foreignKeys": {},
907
- "compositePrimaryKeys": {},
908
- "uniqueConstraints": {},
909
- "checkConstraints": {}
910
- },
911
- "consent_cmp_demand": {
912
- "name": "consent_cmp_demand",
913
- "columns": {
914
- "id": {
915
- "name": "id",
916
- "type": "text",
917
- "primaryKey": true,
918
- "notNull": true,
919
- "autoincrement": false
920
- },
921
- "tenant_id": {
922
- "name": "tenant_id",
923
- "type": "text",
924
- "primaryKey": false,
925
- "notNull": true,
926
- "autoincrement": false
927
- },
928
- "adapter_id": {
929
- "name": "adapter_id",
930
- "type": "text",
931
- "primaryKey": false,
932
- "notNull": true,
933
- "autoincrement": false
934
- },
935
- "source": {
936
- "name": "source",
937
- "type": "text",
938
- "primaryKey": false,
939
- "notNull": false,
940
- "autoincrement": false
941
- },
942
- "at": {
943
- "name": "at",
944
- "type": "text",
945
- "primaryKey": false,
946
- "notNull": true,
947
- "autoincrement": false
948
- }
949
- },
950
- "indexes": {
951
- "uq_consent_cmp_demand_tenant_adapter": {
952
- "name": "uq_consent_cmp_demand_tenant_adapter",
953
- "columns": [
954
- "tenant_id",
955
- "adapter_id"
956
- ],
957
- "isUnique": true
958
- },
959
- "idx_consent_cmp_demand_adapter": {
960
- "name": "idx_consent_cmp_demand_adapter",
961
- "columns": [
962
- "adapter_id"
963
- ],
964
- "isUnique": false
965
- }
966
- },
967
- "foreignKeys": {},
968
- "compositePrimaryKeys": {},
969
- "uniqueConstraints": {},
970
- "checkConstraints": {}
971
- },
972
- "consent_config_revisions": {
973
- "name": "consent_config_revisions",
974
- "columns": {
975
- "id": {
976
- "name": "id",
977
- "type": "text",
978
- "primaryKey": true,
979
- "notNull": true,
980
- "autoincrement": false
981
- },
982
- "tenant_id": {
983
- "name": "tenant_id",
984
- "type": "text",
985
- "primaryKey": false,
986
- "notNull": true,
987
- "autoincrement": false
988
- },
989
- "revision": {
990
- "name": "revision",
991
- "type": "integer",
992
- "primaryKey": false,
993
- "notNull": true,
994
- "autoincrement": false
995
- },
996
- "config": {
997
- "name": "config",
998
- "type": "text",
999
- "primaryKey": false,
1000
- "notNull": true,
1001
- "autoincrement": false
1002
- },
1003
- "actor": {
1004
- "name": "actor",
1005
- "type": "text",
1006
- "primaryKey": false,
1007
- "notNull": true,
1008
- "autoincrement": false
1009
- },
1010
- "note": {
1011
- "name": "note",
1012
- "type": "text",
1013
- "primaryKey": false,
1014
- "notNull": false,
1015
- "autoincrement": false
1016
- },
1017
- "reverted_from": {
1018
- "name": "reverted_from",
1019
- "type": "integer",
1020
- "primaryKey": false,
1021
- "notNull": false,
1022
- "autoincrement": false
1023
- },
1024
- "created_at": {
1025
- "name": "created_at",
1026
- "type": "text",
1027
- "primaryKey": false,
1028
- "notNull": true,
1029
- "autoincrement": false
1030
- }
1031
- },
1032
- "indexes": {
1033
- "uq_consent_config_tenant_revision": {
1034
- "name": "uq_consent_config_tenant_revision",
1035
- "columns": [
1036
- "tenant_id",
1037
- "revision"
1038
- ],
1039
- "isUnique": true
1040
- },
1041
- "idx_consent_config_tenant": {
1042
- "name": "idx_consent_config_tenant",
1043
- "columns": [
1044
- "tenant_id"
1045
- ],
1046
- "isUnique": false
1047
- }
1048
- },
1049
- "foreignKeys": {},
1050
- "compositePrimaryKeys": {},
1051
- "uniqueConstraints": {},
1052
- "checkConstraints": {}
1053
- },
1054
- "correlation_replay": {
1055
- "name": "correlation_replay",
1056
- "columns": {
1057
- "jti": {
1058
- "name": "jti",
1059
- "type": "text",
1060
- "primaryKey": true,
1061
- "notNull": true,
1062
- "autoincrement": false
1063
- },
1064
- "expires_at": {
1065
- "name": "expires_at",
1066
- "type": "integer",
1067
- "primaryKey": false,
1068
- "notNull": true,
1069
- "autoincrement": false
1070
- },
1071
- "consumed_at": {
1072
- "name": "consumed_at",
1073
- "type": "text",
1074
- "primaryKey": false,
1075
- "notNull": true,
1076
- "autoincrement": false
1077
- }
1078
- },
1079
- "indexes": {},
1080
- "foreignKeys": {},
1081
- "compositePrimaryKeys": {},
1082
- "uniqueConstraints": {},
1083
- "checkConstraints": {}
1084
- },
1085
- "idempotency_keys": {
1086
- "name": "idempotency_keys",
1087
- "columns": {
1088
- "install_id": {
1089
- "name": "install_id",
1090
- "type": "text",
1091
- "primaryKey": false,
1092
- "notNull": true,
1093
- "autoincrement": false
1094
- },
1095
- "idempotency_key": {
1096
- "name": "idempotency_key",
1097
- "type": "text",
1098
- "primaryKey": false,
1099
- "notNull": true,
1100
- "autoincrement": false
1101
- },
1102
- "body_hash": {
1103
- "name": "body_hash",
1104
- "type": "text",
1105
- "primaryKey": false,
1106
- "notNull": true,
1107
- "autoincrement": false
1108
- },
1109
- "response_body": {
1110
- "name": "response_body",
1111
- "type": "text",
1112
- "primaryKey": false,
1113
- "notNull": true,
1114
- "autoincrement": false
1115
- },
1116
- "created_at": {
1117
- "name": "created_at",
1118
- "type": "text",
1119
- "primaryKey": false,
1120
- "notNull": true,
1121
- "autoincrement": false
1122
- }
1123
- },
1124
- "indexes": {},
1125
- "foreignKeys": {},
1126
- "compositePrimaryKeys": {
1127
- "idempotency_keys_install_id_idempotency_key_pk": {
1128
- "columns": [
1129
- "install_id",
1130
- "idempotency_key"
1131
- ],
1132
- "name": "idempotency_keys_install_id_idempotency_key_pk"
1133
- }
1134
- },
1135
- "uniqueConstraints": {},
1136
- "checkConstraints": {}
1137
- },
1138
- "newsletter_sends": {
1139
- "name": "newsletter_sends",
1140
- "columns": {
1141
- "tenant_id": {
1142
- "name": "tenant_id",
1143
- "type": "text",
1144
- "primaryKey": false,
1145
- "notNull": true,
1146
- "autoincrement": false
1147
- },
1148
- "collection": {
1149
- "name": "collection",
1150
- "type": "text",
1151
- "primaryKey": false,
1152
- "notNull": true,
1153
- "autoincrement": false
1154
- },
1155
- "digest_id": {
1156
- "name": "digest_id",
1157
- "type": "text",
1158
- "primaryKey": false,
1159
- "notNull": true,
1160
- "autoincrement": false
1161
- },
1162
- "post_slugs": {
1163
- "name": "post_slugs",
1164
- "type": "text",
1165
- "primaryKey": false,
1166
- "notNull": true,
1167
- "autoincrement": false,
1168
- "default": "'[]'"
1169
- },
1170
- "recipient_count": {
1171
- "name": "recipient_count",
1172
- "type": "integer",
1173
- "primaryKey": false,
1174
- "notNull": true,
1175
- "autoincrement": false,
1176
- "default": 0
1177
- },
1178
- "sent_at": {
1179
- "name": "sent_at",
1180
- "type": "text",
1181
- "primaryKey": false,
1182
- "notNull": true,
1183
- "autoincrement": false
1184
- }
1185
- },
1186
- "indexes": {},
1187
- "foreignKeys": {},
1188
- "compositePrimaryKeys": {
1189
- "newsletter_sends_tenant_id_collection_digest_id_pk": {
1190
- "columns": [
1191
- "tenant_id",
1192
- "collection",
1193
- "digest_id"
1194
- ],
1195
- "name": "newsletter_sends_tenant_id_collection_digest_id_pk"
1196
- }
1197
- },
1198
- "uniqueConstraints": {},
1199
- "checkConstraints": {}
1200
- },
1201
- "newsletter_subscribers": {
1202
- "name": "newsletter_subscribers",
1203
- "columns": {
1204
- "tenant_id": {
1205
- "name": "tenant_id",
1206
- "type": "text",
1207
- "primaryKey": false,
1208
- "notNull": true,
1209
- "autoincrement": false
1210
- },
1211
- "collection": {
1212
- "name": "collection",
1213
- "type": "text",
1214
- "primaryKey": false,
1215
- "notNull": true,
1216
- "autoincrement": false
1217
- },
1218
- "email": {
1219
- "name": "email",
1220
- "type": "text",
1221
- "primaryKey": false,
1222
- "notNull": true,
1223
- "autoincrement": false
1224
- },
1225
- "status": {
1226
- "name": "status",
1227
- "type": "text",
1228
- "primaryKey": false,
1229
- "notNull": true,
1230
- "autoincrement": false,
1231
- "default": "'pending'"
1232
- },
1233
- "token": {
1234
- "name": "token",
1235
- "type": "text",
1236
- "primaryKey": false,
1237
- "notNull": true,
1238
- "autoincrement": false
1239
- },
1240
- "consent_source": {
1241
- "name": "consent_source",
1242
- "type": "text",
1243
- "primaryKey": false,
1244
- "notNull": false,
1245
- "autoincrement": false
1246
- },
1247
- "consent_ip_hash": {
1248
- "name": "consent_ip_hash",
1249
- "type": "text",
1250
- "primaryKey": false,
1251
- "notNull": false,
1252
- "autoincrement": false
1253
- },
1254
- "subscribed_at": {
1255
- "name": "subscribed_at",
1256
- "type": "text",
1257
- "primaryKey": false,
1258
- "notNull": true,
1259
- "autoincrement": false
1260
- },
1261
- "confirmed_at": {
1262
- "name": "confirmed_at",
1263
- "type": "text",
1264
- "primaryKey": false,
1265
- "notNull": false,
1266
- "autoincrement": false
1267
- },
1268
- "unsubscribed_at": {
1269
- "name": "unsubscribed_at",
1270
- "type": "text",
1271
- "primaryKey": false,
1272
- "notNull": false,
1273
- "autoincrement": false
1274
- },
1275
- "last_sent_at": {
1276
- "name": "last_sent_at",
1277
- "type": "text",
1278
- "primaryKey": false,
1279
- "notNull": false,
1280
- "autoincrement": false
1281
- }
1282
- },
1283
- "indexes": {
1284
- "idx_newsletter_tenant_coll_status": {
1285
- "name": "idx_newsletter_tenant_coll_status",
1286
- "columns": [
1287
- "tenant_id",
1288
- "collection",
1289
- "status"
1290
- ],
1291
- "isUnique": false
1292
- }
1293
- },
1294
- "foreignKeys": {},
1295
- "compositePrimaryKeys": {
1296
- "newsletter_subscribers_tenant_id_collection_email_pk": {
1297
- "columns": [
1298
- "tenant_id",
1299
- "collection",
1300
- "email"
1301
- ],
1302
- "name": "newsletter_subscribers_tenant_id_collection_email_pk"
1303
- }
1304
- },
1305
- "uniqueConstraints": {},
1306
- "checkConstraints": {}
1307
- },
1308
- "order_attribution": {
1309
- "name": "order_attribution",
1310
- "columns": {
1311
- "tenant_id": {
1312
- "name": "tenant_id",
1313
- "type": "text",
1314
- "primaryKey": false,
1315
- "notNull": true,
1316
- "autoincrement": false
1317
- },
1318
- "external_order_id": {
1319
- "name": "external_order_id",
1320
- "type": "text",
1321
- "primaryKey": false,
1322
- "notNull": true,
1323
- "autoincrement": false
1324
- },
1325
- "attributed": {
1326
- "name": "attributed",
1327
- "type": "integer",
1328
- "primaryKey": false,
1329
- "notNull": true,
1330
- "autoincrement": false,
1331
- "default": 0
1332
- },
1333
- "correlation_id": {
1334
- "name": "correlation_id",
1335
- "type": "text",
1336
- "primaryKey": false,
1337
- "notNull": false,
1338
- "autoincrement": false
1339
- },
1340
- "correlation_expires_at": {
1341
- "name": "correlation_expires_at",
1342
- "type": "text",
1343
- "primaryKey": false,
1344
- "notNull": false,
1345
- "autoincrement": false
1346
- },
1347
- "reason": {
1348
- "name": "reason",
1349
- "type": "text",
1350
- "primaryKey": false,
1351
- "notNull": false,
1352
- "autoincrement": false
1353
- },
1354
- "recorded_at": {
1355
- "name": "recorded_at",
1356
- "type": "text",
1357
- "primaryKey": false,
1358
- "notNull": true,
1359
- "autoincrement": false
1360
- }
1361
- },
1362
- "indexes": {},
1363
- "foreignKeys": {},
1364
- "compositePrimaryKeys": {
1365
- "order_attribution_tenant_id_external_order_id_pk": {
1366
- "columns": [
1367
- "tenant_id",
1368
- "external_order_id"
1369
- ],
1370
- "name": "order_attribution_tenant_id_external_order_id_pk"
1371
- }
1372
- },
1373
- "uniqueConstraints": {},
1374
- "checkConstraints": {}
1375
- },
1376
- "orders": {
1377
- "name": "orders",
1378
- "columns": {
1379
- "tenant_id": {
1380
- "name": "tenant_id",
1381
- "type": "text",
1382
- "primaryKey": false,
1383
- "notNull": true,
1384
- "autoincrement": false
1385
- },
1386
- "external_order_id": {
1387
- "name": "external_order_id",
1388
- "type": "text",
1389
- "primaryKey": false,
1390
- "notNull": true,
1391
- "autoincrement": false
1392
- },
1393
- "env": {
1394
- "name": "env",
1395
- "type": "text",
1396
- "primaryKey": false,
1397
- "notNull": true,
1398
- "autoincrement": false
1399
- },
1400
- "status": {
1401
- "name": "status",
1402
- "type": "text",
1403
- "primaryKey": false,
1404
- "notNull": true,
1405
- "autoincrement": false
1406
- },
1407
- "currency": {
1408
- "name": "currency",
1409
- "type": "text",
1410
- "primaryKey": false,
1411
- "notNull": true,
1412
- "autoincrement": false
1413
- },
1414
- "total": {
1415
- "name": "total",
1416
- "type": "real",
1417
- "primaryKey": false,
1418
- "notNull": true,
1419
- "autoincrement": false,
1420
- "default": 0
1421
- },
1422
- "subtotal": {
1423
- "name": "subtotal",
1424
- "type": "real",
1425
- "primaryKey": false,
1426
- "notNull": false,
1427
- "autoincrement": false
1428
- },
1429
- "customer_hash": {
1430
- "name": "customer_hash",
1431
- "type": "text",
1432
- "primaryKey": false,
1433
- "notNull": false,
1434
- "autoincrement": false
1435
- },
1436
- "line_items": {
1437
- "name": "line_items",
1438
- "type": "text",
1439
- "primaryKey": false,
1440
- "notNull": true,
1441
- "autoincrement": false,
1442
- "default": "'[]'"
1443
- },
1444
- "created_at": {
1445
- "name": "created_at",
1446
- "type": "text",
1447
- "primaryKey": false,
1448
- "notNull": true,
1449
- "autoincrement": false
1450
- },
1451
- "updated_at": {
1452
- "name": "updated_at",
1453
- "type": "text",
1454
- "primaryKey": false,
1455
- "notNull": true,
1456
- "autoincrement": false
1457
- }
1458
- },
1459
- "indexes": {
1460
- "idx_orders_tenant": {
1461
- "name": "idx_orders_tenant",
1462
- "columns": [
1463
- "tenant_id"
1464
- ],
1465
- "isUnique": false
1466
- }
1467
- },
1468
- "foreignKeys": {},
1469
- "compositePrimaryKeys": {
1470
- "orders_tenant_id_external_order_id_pk": {
1471
- "columns": [
1472
- "tenant_id",
1473
- "external_order_id"
1474
- ],
1475
- "name": "orders_tenant_id_external_order_id_pk"
1476
- }
1477
- },
1478
- "uniqueConstraints": {},
1479
- "checkConstraints": {}
1480
- },
1481
- "social_tokens": {
1482
- "name": "social_tokens",
1483
- "columns": {
1484
- "tenant_id": {
1485
- "name": "tenant_id",
1486
- "type": "text",
1487
- "primaryKey": false,
1488
- "notNull": true,
1489
- "autoincrement": false
1490
- },
1491
- "network": {
1492
- "name": "network",
1493
- "type": "text",
1494
- "primaryKey": false,
1495
- "notNull": true,
1496
- "autoincrement": false
1497
- },
1498
- "ciphertext": {
1499
- "name": "ciphertext",
1500
- "type": "text",
1501
- "primaryKey": false,
1502
- "notNull": true,
1503
- "autoincrement": false
1504
- },
1505
- "iv": {
1506
- "name": "iv",
1507
- "type": "text",
1508
- "primaryKey": false,
1509
- "notNull": true,
1510
- "autoincrement": false
1511
- },
1512
- "expires_at": {
1513
- "name": "expires_at",
1514
- "type": "text",
1515
- "primaryKey": false,
1516
- "notNull": false,
1517
- "autoincrement": false
1518
- },
1519
- "created_at": {
1520
- "name": "created_at",
1521
- "type": "text",
1522
- "primaryKey": false,
1523
- "notNull": true,
1524
- "autoincrement": false
1525
- },
1526
- "updated_at": {
1527
- "name": "updated_at",
1528
- "type": "text",
1529
- "primaryKey": false,
1530
- "notNull": true,
1531
- "autoincrement": false
1532
- }
1533
- },
1534
- "indexes": {
1535
- "idx_social_tokens_tenant": {
1536
- "name": "idx_social_tokens_tenant",
1537
- "columns": [
1538
- "tenant_id"
1539
- ],
1540
- "isUnique": false
1541
- }
1542
- },
1543
- "foreignKeys": {},
1544
- "compositePrimaryKeys": {
1545
- "social_tokens_tenant_id_network_pk": {
1546
- "columns": [
1547
- "tenant_id",
1548
- "network"
1549
- ],
1550
- "name": "social_tokens_tenant_id_network_pk"
1551
- }
1552
- },
1553
- "uniqueConstraints": {},
1554
- "checkConstraints": {}
1555
- },
1556
- "webhook_deliveries": {
1557
- "name": "webhook_deliveries",
1558
- "columns": {
1559
- "delivery_id": {
1560
- "name": "delivery_id",
1561
- "type": "text",
1562
- "primaryKey": true,
1563
- "notNull": true,
1564
- "autoincrement": false
1565
- },
1566
- "event_id": {
1567
- "name": "event_id",
1568
- "type": "text",
1569
- "primaryKey": false,
1570
- "notNull": true,
1571
- "autoincrement": false
1572
- },
1573
- "install_id": {
1574
- "name": "install_id",
1575
- "type": "text",
1576
- "primaryKey": false,
1577
- "notNull": true,
1578
- "autoincrement": false
1579
- },
1580
- "tenant_id": {
1581
- "name": "tenant_id",
1582
- "type": "text",
1583
- "primaryKey": false,
1584
- "notNull": true,
1585
- "autoincrement": false
1586
- },
1587
- "topic": {
1588
- "name": "topic",
1589
- "type": "text",
1590
- "primaryKey": false,
1591
- "notNull": true,
1592
- "autoincrement": false
1593
- },
1594
- "state": {
1595
- "name": "state",
1596
- "type": "text",
1597
- "primaryKey": false,
1598
- "notNull": true,
1599
- "autoincrement": false,
1600
- "default": "'pending'"
1601
- },
1602
- "attempts": {
1603
- "name": "attempts",
1604
- "type": "integer",
1605
- "primaryKey": false,
1606
- "notNull": true,
1607
- "autoincrement": false,
1608
- "default": 0
1609
- },
1610
- "last_status": {
1611
- "name": "last_status",
1612
- "type": "integer",
1613
- "primaryKey": false,
1614
- "notNull": false,
1615
- "autoincrement": false
1616
- },
1617
- "last_error_class": {
1618
- "name": "last_error_class",
1619
- "type": "text",
1620
- "primaryKey": false,
1621
- "notNull": false,
1622
- "autoincrement": false
1623
- },
1624
- "last_trace_id": {
1625
- "name": "last_trace_id",
1626
- "type": "text",
1627
- "primaryKey": false,
1628
- "notNull": false,
1629
- "autoincrement": false
1630
- },
1631
- "next_attempt_at": {
1632
- "name": "next_attempt_at",
1633
- "type": "text",
1634
- "primaryKey": false,
1635
- "notNull": false,
1636
- "autoincrement": false
1637
- },
1638
- "created_at": {
1639
- "name": "created_at",
1640
- "type": "text",
1641
- "primaryKey": false,
1642
- "notNull": true,
1643
- "autoincrement": false
1644
- },
1645
- "updated_at": {
1646
- "name": "updated_at",
1647
- "type": "text",
1648
- "primaryKey": false,
1649
- "notNull": true,
1650
- "autoincrement": false
1651
- }
1652
- },
1653
- "indexes": {
1654
- "idx_webhook_deliveries_install": {
1655
- "name": "idx_webhook_deliveries_install",
1656
- "columns": [
1657
- "install_id"
1658
- ],
1659
- "isUnique": false
1660
- },
1661
- "idx_webhook_deliveries_due": {
1662
- "name": "idx_webhook_deliveries_due",
1663
- "columns": [
1664
- "state",
1665
- "next_attempt_at"
1666
- ],
1667
- "isUnique": false
1668
- }
1669
- },
1670
- "foreignKeys": {},
1671
- "compositePrimaryKeys": {},
1672
- "uniqueConstraints": {},
1673
- "checkConstraints": {}
1674
- },
1675
- "webhook_delivery_attempts": {
1676
- "name": "webhook_delivery_attempts",
1677
- "columns": {
1678
- "id": {
1679
- "name": "id",
1680
- "type": "text",
1681
- "primaryKey": true,
1682
- "notNull": true,
1683
- "autoincrement": false
1684
- },
1685
- "delivery_id": {
1686
- "name": "delivery_id",
1687
- "type": "text",
1688
- "primaryKey": false,
1689
- "notNull": true,
1690
- "autoincrement": false
1691
- },
1692
- "attempt_no": {
1693
- "name": "attempt_no",
1694
- "type": "integer",
1695
- "primaryKey": false,
1696
- "notNull": true,
1697
- "autoincrement": false
1698
- },
1699
- "started_at": {
1700
- "name": "started_at",
1701
- "type": "text",
1702
- "primaryKey": false,
1703
- "notNull": true,
1704
- "autoincrement": false
1705
- },
1706
- "duration_ms": {
1707
- "name": "duration_ms",
1708
- "type": "integer",
1709
- "primaryKey": false,
1710
- "notNull": false,
1711
- "autoincrement": false
1712
- },
1713
- "http_status": {
1714
- "name": "http_status",
1715
- "type": "integer",
1716
- "primaryKey": false,
1717
- "notNull": false,
1718
- "autoincrement": false
1719
- },
1720
- "error_class": {
1721
- "name": "error_class",
1722
- "type": "text",
1723
- "primaryKey": false,
1724
- "notNull": false,
1725
- "autoincrement": false
1726
- },
1727
- "trace_id": {
1728
- "name": "trace_id",
1729
- "type": "text",
1730
- "primaryKey": false,
1731
- "notNull": false,
1732
- "autoincrement": false
1733
- }
1734
- },
1735
- "indexes": {
1736
- "idx_webhook_delivery_attempts_delivery": {
1737
- "name": "idx_webhook_delivery_attempts_delivery",
1738
- "columns": [
1739
- "delivery_id"
1740
- ],
1741
- "isUnique": false
1742
- }
1743
- },
1744
- "foreignKeys": {},
1745
- "compositePrimaryKeys": {},
1746
- "uniqueConstraints": {},
1747
- "checkConstraints": {}
1748
- },
1749
- "webhook_events": {
1750
- "name": "webhook_events",
1751
- "columns": {
1752
- "id": {
1753
- "name": "id",
1754
- "type": "text",
1755
- "primaryKey": true,
1756
- "notNull": true,
1757
- "autoincrement": false
1758
- },
1759
- "tenant_id": {
1760
- "name": "tenant_id",
1761
- "type": "text",
1762
- "primaryKey": false,
1763
- "notNull": true,
1764
- "autoincrement": false
1765
- },
1766
- "topic": {
1767
- "name": "topic",
1768
- "type": "text",
1769
- "primaryKey": false,
1770
- "notNull": true,
1771
- "autoincrement": false
1772
- },
1773
- "dataschema_version": {
1774
- "name": "dataschema_version",
1775
- "type": "text",
1776
- "primaryKey": false,
1777
- "notNull": true,
1778
- "autoincrement": false
1779
- },
1780
- "payload": {
1781
- "name": "payload",
1782
- "type": "text",
1783
- "primaryKey": false,
1784
- "notNull": true,
1785
- "autoincrement": false
1786
- },
1787
- "created_at": {
1788
- "name": "created_at",
1789
- "type": "text",
1790
- "primaryKey": false,
1791
- "notNull": true,
1792
- "autoincrement": false
1793
- }
1794
- },
1795
- "indexes": {},
1796
- "foreignKeys": {},
1797
- "compositePrimaryKeys": {},
1798
- "uniqueConstraints": {},
1799
- "checkConstraints": {}
1800
- },
1801
- "webhook_install_health": {
1802
- "name": "webhook_install_health",
1803
- "columns": {
1804
- "install_id": {
1805
- "name": "install_id",
1806
- "type": "text",
1807
- "primaryKey": true,
1808
- "notNull": true,
1809
- "autoincrement": false
1810
- },
1811
- "last_success_at": {
1812
- "name": "last_success_at",
1813
- "type": "text",
1814
- "primaryKey": false,
1815
- "notNull": false,
1816
- "autoincrement": false
1817
- },
1818
- "failure_streak": {
1819
- "name": "failure_streak",
1820
- "type": "integer",
1821
- "primaryKey": false,
1822
- "notNull": true,
1823
- "autoincrement": false,
1824
- "default": 0
1825
- },
1826
- "dlq_count": {
1827
- "name": "dlq_count",
1828
- "type": "integer",
1829
- "primaryKey": false,
1830
- "notNull": true,
1831
- "autoincrement": false,
1832
- "default": 0
1833
- },
1834
- "last_status": {
1835
- "name": "last_status",
1836
- "type": "integer",
1837
- "primaryKey": false,
1838
- "notNull": false,
1839
- "autoincrement": false
1840
- },
1841
- "last_error_class": {
1842
- "name": "last_error_class",
1843
- "type": "text",
1844
- "primaryKey": false,
1845
- "notNull": false,
1846
- "autoincrement": false
1847
- },
1848
- "recent_trace_ids": {
1849
- "name": "recent_trace_ids",
1850
- "type": "text",
1851
- "primaryKey": false,
1852
- "notNull": true,
1853
- "autoincrement": false,
1854
- "default": "'[]'"
1855
- },
1856
- "updated_at": {
1857
- "name": "updated_at",
1858
- "type": "text",
1859
- "primaryKey": false,
1860
- "notNull": true,
1861
- "autoincrement": false
1862
- }
1863
- },
1864
- "indexes": {},
1865
- "foreignKeys": {},
1866
- "compositePrimaryKeys": {},
1867
- "uniqueConstraints": {},
1868
- "checkConstraints": {}
1869
- }
1870
- },
1871
- "views": {},
1872
- "enums": {},
1873
- "_meta": {
1874
- "schemas": {},
1875
- "tables": {},
1876
- "columns": {}
1877
- },
1878
- "internal": {
1879
- "indexes": {}
1880
- }
1881
- }