@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,843 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "63405d13-2199-40e7-95d0-8ff7edd4b18f",
5
- "prevId": "00000000-0000-0000-0000-000000000000",
6
- "tables": {
7
- "app_attributions": {
8
- "name": "app_attributions",
9
- "columns": {
10
- "install_id": {
11
- "name": "install_id",
12
- "type": "text",
13
- "primaryKey": false,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "attribution_id": {
18
- "name": "attribution_id",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "tenant_id": {
25
- "name": "tenant_id",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "order_id": {
32
- "name": "order_id",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": true,
36
- "autoincrement": false
37
- },
38
- "campaign": {
39
- "name": "campaign",
40
- "type": "text",
41
- "primaryKey": false,
42
- "notNull": false,
43
- "autoincrement": false
44
- },
45
- "referral_code": {
46
- "name": "referral_code",
47
- "type": "text",
48
- "primaryKey": false,
49
- "notNull": false,
50
- "autoincrement": false
51
- },
52
- "commission_amount": {
53
- "name": "commission_amount",
54
- "type": "real",
55
- "primaryKey": false,
56
- "notNull": false,
57
- "autoincrement": false
58
- },
59
- "commission_currency": {
60
- "name": "commission_currency",
61
- "type": "text",
62
- "primaryKey": false,
63
- "notNull": false,
64
- "autoincrement": false
65
- },
66
- "customer_hash": {
67
- "name": "customer_hash",
68
- "type": "text",
69
- "primaryKey": false,
70
- "notNull": false,
71
- "autoincrement": false
72
- },
73
- "recorded_at": {
74
- "name": "recorded_at",
75
- "type": "text",
76
- "primaryKey": false,
77
- "notNull": true,
78
- "autoincrement": false
79
- }
80
- },
81
- "indexes": {
82
- "idx_app_attributions_tenant_order": {
83
- "name": "idx_app_attributions_tenant_order",
84
- "columns": [
85
- "tenant_id",
86
- "order_id"
87
- ],
88
- "isUnique": false
89
- }
90
- },
91
- "foreignKeys": {},
92
- "compositePrimaryKeys": {
93
- "app_attributions_install_id_attribution_id_pk": {
94
- "columns": [
95
- "install_id",
96
- "attribution_id"
97
- ],
98
- "name": "app_attributions_install_id_attribution_id_pk"
99
- }
100
- },
101
- "uniqueConstraints": {},
102
- "checkConstraints": {}
103
- },
104
- "app_audit_log": {
105
- "name": "app_audit_log",
106
- "columns": {
107
- "id": {
108
- "name": "id",
109
- "type": "text",
110
- "primaryKey": true,
111
- "notNull": true,
112
- "autoincrement": false
113
- },
114
- "install_id": {
115
- "name": "install_id",
116
- "type": "text",
117
- "primaryKey": false,
118
- "notNull": true,
119
- "autoincrement": false
120
- },
121
- "tenant_id": {
122
- "name": "tenant_id",
123
- "type": "text",
124
- "primaryKey": false,
125
- "notNull": true,
126
- "autoincrement": false
127
- },
128
- "event": {
129
- "name": "event",
130
- "type": "text",
131
- "primaryKey": false,
132
- "notNull": true,
133
- "autoincrement": false
134
- },
135
- "actor": {
136
- "name": "actor",
137
- "type": "text",
138
- "primaryKey": false,
139
- "notNull": true,
140
- "autoincrement": false
141
- },
142
- "trace_id": {
143
- "name": "trace_id",
144
- "type": "text",
145
- "primaryKey": false,
146
- "notNull": false,
147
- "autoincrement": false
148
- },
149
- "detail": {
150
- "name": "detail",
151
- "type": "text",
152
- "primaryKey": false,
153
- "notNull": true,
154
- "autoincrement": false,
155
- "default": "'{}'"
156
- },
157
- "at": {
158
- "name": "at",
159
- "type": "text",
160
- "primaryKey": false,
161
- "notNull": true,
162
- "autoincrement": false
163
- }
164
- },
165
- "indexes": {
166
- "idx_app_audit_install": {
167
- "name": "idx_app_audit_install",
168
- "columns": [
169
- "install_id"
170
- ],
171
- "isUnique": false
172
- }
173
- },
174
- "foreignKeys": {},
175
- "compositePrimaryKeys": {},
176
- "uniqueConstraints": {},
177
- "checkConstraints": {}
178
- },
179
- "app_credentials": {
180
- "name": "app_credentials",
181
- "columns": {
182
- "install_id": {
183
- "name": "install_id",
184
- "type": "text",
185
- "primaryKey": true,
186
- "notNull": true,
187
- "autoincrement": false
188
- },
189
- "client_id": {
190
- "name": "client_id",
191
- "type": "text",
192
- "primaryKey": false,
193
- "notNull": true,
194
- "autoincrement": false
195
- },
196
- "secret_hash": {
197
- "name": "secret_hash",
198
- "type": "text",
199
- "primaryKey": false,
200
- "notNull": true,
201
- "autoincrement": false
202
- },
203
- "secret_created_at": {
204
- "name": "secret_created_at",
205
- "type": "text",
206
- "primaryKey": false,
207
- "notNull": true,
208
- "autoincrement": false
209
- },
210
- "rotated_at": {
211
- "name": "rotated_at",
212
- "type": "text",
213
- "primaryKey": false,
214
- "notNull": false,
215
- "autoincrement": false
216
- },
217
- "jwks_kid": {
218
- "name": "jwks_kid",
219
- "type": "text",
220
- "primaryKey": false,
221
- "notNull": true,
222
- "autoincrement": false
223
- }
224
- },
225
- "indexes": {
226
- "app_credentials_client_id_unique": {
227
- "name": "app_credentials_client_id_unique",
228
- "columns": [
229
- "client_id"
230
- ],
231
- "isUnique": true
232
- }
233
- },
234
- "foreignKeys": {},
235
- "compositePrimaryKeys": {},
236
- "uniqueConstraints": {},
237
- "checkConstraints": {}
238
- },
239
- "app_installs": {
240
- "name": "app_installs",
241
- "columns": {
242
- "install_id": {
243
- "name": "install_id",
244
- "type": "text",
245
- "primaryKey": true,
246
- "notNull": true,
247
- "autoincrement": false
248
- },
249
- "app_id": {
250
- "name": "app_id",
251
- "type": "text",
252
- "primaryKey": false,
253
- "notNull": true,
254
- "autoincrement": false
255
- },
256
- "app_version": {
257
- "name": "app_version",
258
- "type": "text",
259
- "primaryKey": false,
260
- "notNull": true,
261
- "autoincrement": false
262
- },
263
- "tenant_id": {
264
- "name": "tenant_id",
265
- "type": "text",
266
- "primaryKey": false,
267
- "notNull": true,
268
- "autoincrement": false
269
- },
270
- "env": {
271
- "name": "env",
272
- "type": "text",
273
- "primaryKey": false,
274
- "notNull": true,
275
- "autoincrement": false
276
- },
277
- "status": {
278
- "name": "status",
279
- "type": "text",
280
- "primaryKey": false,
281
- "notNull": true,
282
- "autoincrement": false,
283
- "default": "'active'"
284
- },
285
- "scopes": {
286
- "name": "scopes",
287
- "type": "text",
288
- "primaryKey": false,
289
- "notNull": true,
290
- "autoincrement": false,
291
- "default": "'[]'"
292
- },
293
- "manifest": {
294
- "name": "manifest",
295
- "type": "text",
296
- "primaryKey": false,
297
- "notNull": true,
298
- "autoincrement": false
299
- },
300
- "webhook_endpoint": {
301
- "name": "webhook_endpoint",
302
- "type": "text",
303
- "primaryKey": false,
304
- "notNull": false,
305
- "autoincrement": false
306
- },
307
- "widget_placements": {
308
- "name": "widget_placements",
309
- "type": "text",
310
- "primaryKey": false,
311
- "notNull": true,
312
- "autoincrement": false,
313
- "default": "'[]'"
314
- },
315
- "install_actor": {
316
- "name": "install_actor",
317
- "type": "text",
318
- "primaryKey": false,
319
- "notNull": true,
320
- "autoincrement": false
321
- },
322
- "created_at": {
323
- "name": "created_at",
324
- "type": "text",
325
- "primaryKey": false,
326
- "notNull": true,
327
- "autoincrement": false
328
- },
329
- "updated_at": {
330
- "name": "updated_at",
331
- "type": "text",
332
- "primaryKey": false,
333
- "notNull": true,
334
- "autoincrement": false
335
- }
336
- },
337
- "indexes": {
338
- "uq_app_installs_app_tenant_env": {
339
- "name": "uq_app_installs_app_tenant_env",
340
- "columns": [
341
- "app_id",
342
- "tenant_id",
343
- "env"
344
- ],
345
- "isUnique": true
346
- },
347
- "idx_app_installs_tenant": {
348
- "name": "idx_app_installs_tenant",
349
- "columns": [
350
- "tenant_id"
351
- ],
352
- "isUnique": false
353
- }
354
- },
355
- "foreignKeys": {},
356
- "compositePrimaryKeys": {},
357
- "uniqueConstraints": {},
358
- "checkConstraints": {}
359
- },
360
- "idempotency_keys": {
361
- "name": "idempotency_keys",
362
- "columns": {
363
- "install_id": {
364
- "name": "install_id",
365
- "type": "text",
366
- "primaryKey": false,
367
- "notNull": true,
368
- "autoincrement": false
369
- },
370
- "idempotency_key": {
371
- "name": "idempotency_key",
372
- "type": "text",
373
- "primaryKey": false,
374
- "notNull": true,
375
- "autoincrement": false
376
- },
377
- "body_hash": {
378
- "name": "body_hash",
379
- "type": "text",
380
- "primaryKey": false,
381
- "notNull": true,
382
- "autoincrement": false
383
- },
384
- "response_body": {
385
- "name": "response_body",
386
- "type": "text",
387
- "primaryKey": false,
388
- "notNull": true,
389
- "autoincrement": false
390
- },
391
- "created_at": {
392
- "name": "created_at",
393
- "type": "text",
394
- "primaryKey": false,
395
- "notNull": true,
396
- "autoincrement": false
397
- }
398
- },
399
- "indexes": {},
400
- "foreignKeys": {},
401
- "compositePrimaryKeys": {
402
- "idempotency_keys_install_id_idempotency_key_pk": {
403
- "columns": [
404
- "install_id",
405
- "idempotency_key"
406
- ],
407
- "name": "idempotency_keys_install_id_idempotency_key_pk"
408
- }
409
- },
410
- "uniqueConstraints": {},
411
- "checkConstraints": {}
412
- },
413
- "orders": {
414
- "name": "orders",
415
- "columns": {
416
- "tenant_id": {
417
- "name": "tenant_id",
418
- "type": "text",
419
- "primaryKey": false,
420
- "notNull": true,
421
- "autoincrement": false
422
- },
423
- "external_order_id": {
424
- "name": "external_order_id",
425
- "type": "text",
426
- "primaryKey": false,
427
- "notNull": true,
428
- "autoincrement": false
429
- },
430
- "env": {
431
- "name": "env",
432
- "type": "text",
433
- "primaryKey": false,
434
- "notNull": true,
435
- "autoincrement": false
436
- },
437
- "status": {
438
- "name": "status",
439
- "type": "text",
440
- "primaryKey": false,
441
- "notNull": true,
442
- "autoincrement": false
443
- },
444
- "currency": {
445
- "name": "currency",
446
- "type": "text",
447
- "primaryKey": false,
448
- "notNull": true,
449
- "autoincrement": false
450
- },
451
- "total": {
452
- "name": "total",
453
- "type": "real",
454
- "primaryKey": false,
455
- "notNull": true,
456
- "autoincrement": false,
457
- "default": 0
458
- },
459
- "subtotal": {
460
- "name": "subtotal",
461
- "type": "real",
462
- "primaryKey": false,
463
- "notNull": false,
464
- "autoincrement": false
465
- },
466
- "customer_hash": {
467
- "name": "customer_hash",
468
- "type": "text",
469
- "primaryKey": false,
470
- "notNull": false,
471
- "autoincrement": false
472
- },
473
- "line_items": {
474
- "name": "line_items",
475
- "type": "text",
476
- "primaryKey": false,
477
- "notNull": true,
478
- "autoincrement": false,
479
- "default": "'[]'"
480
- },
481
- "created_at": {
482
- "name": "created_at",
483
- "type": "text",
484
- "primaryKey": false,
485
- "notNull": true,
486
- "autoincrement": false
487
- },
488
- "updated_at": {
489
- "name": "updated_at",
490
- "type": "text",
491
- "primaryKey": false,
492
- "notNull": true,
493
- "autoincrement": false
494
- }
495
- },
496
- "indexes": {
497
- "idx_orders_tenant": {
498
- "name": "idx_orders_tenant",
499
- "columns": [
500
- "tenant_id"
501
- ],
502
- "isUnique": false
503
- }
504
- },
505
- "foreignKeys": {},
506
- "compositePrimaryKeys": {
507
- "orders_tenant_id_external_order_id_pk": {
508
- "columns": [
509
- "tenant_id",
510
- "external_order_id"
511
- ],
512
- "name": "orders_tenant_id_external_order_id_pk"
513
- }
514
- },
515
- "uniqueConstraints": {},
516
- "checkConstraints": {}
517
- },
518
- "webhook_deliveries": {
519
- "name": "webhook_deliveries",
520
- "columns": {
521
- "delivery_id": {
522
- "name": "delivery_id",
523
- "type": "text",
524
- "primaryKey": true,
525
- "notNull": true,
526
- "autoincrement": false
527
- },
528
- "event_id": {
529
- "name": "event_id",
530
- "type": "text",
531
- "primaryKey": false,
532
- "notNull": true,
533
- "autoincrement": false
534
- },
535
- "install_id": {
536
- "name": "install_id",
537
- "type": "text",
538
- "primaryKey": false,
539
- "notNull": true,
540
- "autoincrement": false
541
- },
542
- "tenant_id": {
543
- "name": "tenant_id",
544
- "type": "text",
545
- "primaryKey": false,
546
- "notNull": true,
547
- "autoincrement": false
548
- },
549
- "topic": {
550
- "name": "topic",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": true,
554
- "autoincrement": false
555
- },
556
- "state": {
557
- "name": "state",
558
- "type": "text",
559
- "primaryKey": false,
560
- "notNull": true,
561
- "autoincrement": false,
562
- "default": "'pending'"
563
- },
564
- "attempts": {
565
- "name": "attempts",
566
- "type": "integer",
567
- "primaryKey": false,
568
- "notNull": true,
569
- "autoincrement": false,
570
- "default": 0
571
- },
572
- "last_status": {
573
- "name": "last_status",
574
- "type": "integer",
575
- "primaryKey": false,
576
- "notNull": false,
577
- "autoincrement": false
578
- },
579
- "last_error_class": {
580
- "name": "last_error_class",
581
- "type": "text",
582
- "primaryKey": false,
583
- "notNull": false,
584
- "autoincrement": false
585
- },
586
- "last_trace_id": {
587
- "name": "last_trace_id",
588
- "type": "text",
589
- "primaryKey": false,
590
- "notNull": false,
591
- "autoincrement": false
592
- },
593
- "next_attempt_at": {
594
- "name": "next_attempt_at",
595
- "type": "text",
596
- "primaryKey": false,
597
- "notNull": false,
598
- "autoincrement": false
599
- },
600
- "created_at": {
601
- "name": "created_at",
602
- "type": "text",
603
- "primaryKey": false,
604
- "notNull": true,
605
- "autoincrement": false
606
- },
607
- "updated_at": {
608
- "name": "updated_at",
609
- "type": "text",
610
- "primaryKey": false,
611
- "notNull": true,
612
- "autoincrement": false
613
- }
614
- },
615
- "indexes": {
616
- "idx_webhook_deliveries_install": {
617
- "name": "idx_webhook_deliveries_install",
618
- "columns": [
619
- "install_id"
620
- ],
621
- "isUnique": false
622
- },
623
- "idx_webhook_deliveries_due": {
624
- "name": "idx_webhook_deliveries_due",
625
- "columns": [
626
- "state",
627
- "next_attempt_at"
628
- ],
629
- "isUnique": false
630
- }
631
- },
632
- "foreignKeys": {},
633
- "compositePrimaryKeys": {},
634
- "uniqueConstraints": {},
635
- "checkConstraints": {}
636
- },
637
- "webhook_delivery_attempts": {
638
- "name": "webhook_delivery_attempts",
639
- "columns": {
640
- "id": {
641
- "name": "id",
642
- "type": "text",
643
- "primaryKey": true,
644
- "notNull": true,
645
- "autoincrement": false
646
- },
647
- "delivery_id": {
648
- "name": "delivery_id",
649
- "type": "text",
650
- "primaryKey": false,
651
- "notNull": true,
652
- "autoincrement": false
653
- },
654
- "attempt_no": {
655
- "name": "attempt_no",
656
- "type": "integer",
657
- "primaryKey": false,
658
- "notNull": true,
659
- "autoincrement": false
660
- },
661
- "started_at": {
662
- "name": "started_at",
663
- "type": "text",
664
- "primaryKey": false,
665
- "notNull": true,
666
- "autoincrement": false
667
- },
668
- "duration_ms": {
669
- "name": "duration_ms",
670
- "type": "integer",
671
- "primaryKey": false,
672
- "notNull": false,
673
- "autoincrement": false
674
- },
675
- "http_status": {
676
- "name": "http_status",
677
- "type": "integer",
678
- "primaryKey": false,
679
- "notNull": false,
680
- "autoincrement": false
681
- },
682
- "error_class": {
683
- "name": "error_class",
684
- "type": "text",
685
- "primaryKey": false,
686
- "notNull": false,
687
- "autoincrement": false
688
- },
689
- "trace_id": {
690
- "name": "trace_id",
691
- "type": "text",
692
- "primaryKey": false,
693
- "notNull": false,
694
- "autoincrement": false
695
- }
696
- },
697
- "indexes": {
698
- "idx_webhook_delivery_attempts_delivery": {
699
- "name": "idx_webhook_delivery_attempts_delivery",
700
- "columns": [
701
- "delivery_id"
702
- ],
703
- "isUnique": false
704
- }
705
- },
706
- "foreignKeys": {},
707
- "compositePrimaryKeys": {},
708
- "uniqueConstraints": {},
709
- "checkConstraints": {}
710
- },
711
- "webhook_events": {
712
- "name": "webhook_events",
713
- "columns": {
714
- "id": {
715
- "name": "id",
716
- "type": "text",
717
- "primaryKey": true,
718
- "notNull": true,
719
- "autoincrement": false
720
- },
721
- "tenant_id": {
722
- "name": "tenant_id",
723
- "type": "text",
724
- "primaryKey": false,
725
- "notNull": true,
726
- "autoincrement": false
727
- },
728
- "topic": {
729
- "name": "topic",
730
- "type": "text",
731
- "primaryKey": false,
732
- "notNull": true,
733
- "autoincrement": false
734
- },
735
- "dataschema_version": {
736
- "name": "dataschema_version",
737
- "type": "text",
738
- "primaryKey": false,
739
- "notNull": true,
740
- "autoincrement": false
741
- },
742
- "payload": {
743
- "name": "payload",
744
- "type": "text",
745
- "primaryKey": false,
746
- "notNull": true,
747
- "autoincrement": false
748
- },
749
- "created_at": {
750
- "name": "created_at",
751
- "type": "text",
752
- "primaryKey": false,
753
- "notNull": true,
754
- "autoincrement": false
755
- }
756
- },
757
- "indexes": {},
758
- "foreignKeys": {},
759
- "compositePrimaryKeys": {},
760
- "uniqueConstraints": {},
761
- "checkConstraints": {}
762
- },
763
- "webhook_install_health": {
764
- "name": "webhook_install_health",
765
- "columns": {
766
- "install_id": {
767
- "name": "install_id",
768
- "type": "text",
769
- "primaryKey": true,
770
- "notNull": true,
771
- "autoincrement": false
772
- },
773
- "last_success_at": {
774
- "name": "last_success_at",
775
- "type": "text",
776
- "primaryKey": false,
777
- "notNull": false,
778
- "autoincrement": false
779
- },
780
- "failure_streak": {
781
- "name": "failure_streak",
782
- "type": "integer",
783
- "primaryKey": false,
784
- "notNull": true,
785
- "autoincrement": false,
786
- "default": 0
787
- },
788
- "dlq_count": {
789
- "name": "dlq_count",
790
- "type": "integer",
791
- "primaryKey": false,
792
- "notNull": true,
793
- "autoincrement": false,
794
- "default": 0
795
- },
796
- "last_status": {
797
- "name": "last_status",
798
- "type": "integer",
799
- "primaryKey": false,
800
- "notNull": false,
801
- "autoincrement": false
802
- },
803
- "last_error_class": {
804
- "name": "last_error_class",
805
- "type": "text",
806
- "primaryKey": false,
807
- "notNull": false,
808
- "autoincrement": false
809
- },
810
- "recent_trace_ids": {
811
- "name": "recent_trace_ids",
812
- "type": "text",
813
- "primaryKey": false,
814
- "notNull": true,
815
- "autoincrement": false,
816
- "default": "'[]'"
817
- },
818
- "updated_at": {
819
- "name": "updated_at",
820
- "type": "text",
821
- "primaryKey": false,
822
- "notNull": true,
823
- "autoincrement": false
824
- }
825
- },
826
- "indexes": {},
827
- "foreignKeys": {},
828
- "compositePrimaryKeys": {},
829
- "uniqueConstraints": {},
830
- "checkConstraints": {}
831
- }
832
- },
833
- "views": {},
834
- "enums": {},
835
- "_meta": {
836
- "schemas": {},
837
- "tables": {},
838
- "columns": {}
839
- },
840
- "internal": {
841
- "indexes": {}
842
- }
843
- }