@tokenoftrust/storefront-runner 7.3.1 → 7.5.0

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 (414) 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 +147 -0
  13. package/apps/storefront/src/lib/access/auth/brokerAssertion.ts +67 -1
  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/auth/session.ts +79 -0
  17. package/apps/storefront/src/lib/access/dashboard/staffAdmission.ts +5 -0
  18. package/apps/storefront/src/lib/access/dashboard/tenantSelection.ts +2 -0
  19. package/apps/storefront/src/lib/access/shared/capability.ts +14 -6
  20. package/apps/storefront/src/lib/access/shared/generated/capabilityCatalog.generated.ts +161 -0
  21. package/apps/storefront/src/lib/activity/activityScope.ts +36 -0
  22. package/apps/storefront/src/lib/activity/recordActivity.ts +23 -1
  23. package/apps/storefront/src/lib/activity/serverFanOut.ts +31 -0
  24. package/apps/storefront/src/lib/activity/store.ts +9 -3
  25. package/apps/storefront/src/lib/checkout/commerce/cardCartForm.ts +2 -0
  26. package/apps/storefront/src/lib/checkout/commerce/cartSession.ts +109 -12
  27. package/apps/storefront/src/lib/checkout/commerce/checkoutHandoffRoute.ts +53 -25
  28. package/apps/storefront/src/lib/checkout/commerce/finalCartAuthorization.ts +48 -6
  29. package/apps/storefront/src/lib/checkout/proposal/cartProposal.ts +388 -0
  30. package/apps/storefront/src/lib/checkout/proposal/listMatcher.ts +149 -0
  31. package/apps/storefront/src/lib/checkout/proposal/proposalRoutes.ts +447 -0
  32. package/apps/storefront/src/lib/checkout/proposal/reviewHtml.ts +100 -0
  33. package/apps/storefront/src/lib/compliance/browser/checkoutVerificationFlow.ts +26 -2
  34. package/apps/storefront/src/lib/content/shared/redirects.ts +21 -4
  35. package/apps/storefront/src/lib/publication/shared/edgeCache.ts +5 -2
  36. package/apps/storefront/src/lib/publication/shared/previewAnnotations/renderDecorator.ts +15 -8
  37. package/apps/storefront/src/lib/publication/shared/runtimeEnv.ts +1 -1
  38. package/apps/storefront/src/middleware/controlPlane.ts +15 -1
  39. package/apps/storefront/src/middleware/index.ts +40 -1
  40. package/apps/storefront/src/middleware/renderChain.ts +46 -33
  41. package/apps/storefront/src/pages/api/cart-proposal/confirm.ts +12 -0
  42. package/apps/storefront/src/pages/api/cart-proposal/review.ts +26 -0
  43. package/apps/storefront/src/pages/api/commerce/final-cart-authorization.ts +29 -6
  44. package/apps/storefront/src/pages/api/compliance/preflight.ts +25 -1
  45. package/apps/storefront/src/pages/products/[handle].astro +2 -15
  46. package/apps/storefront/tsconfig.astro.json +11 -0
  47. package/package.json +1 -1
  48. package/packages/public-runtime/src/activity/README.md +12 -0
  49. package/packages/public-runtime/src/activity/catalog.ts +7 -0
  50. package/packages/public-runtime/src/activity/event.ts +19 -0
  51. package/packages/public-runtime/src/activity/redaction.ts +31 -2
  52. package/packages/public-runtime/src/catalog-files.ts +3 -2
  53. package/packages/public-runtime/src/checkout-orders.ts +18 -19
  54. package/packages/public-runtime/src/checkout.ts +70 -0
  55. package/packages/public-runtime/src/compliance/evaluate.ts +60 -1
  56. package/packages/public-runtime/src/compliance/index.ts +1 -1
  57. package/packages/public-runtime/src/compliance/pact-report.ts +184 -3
  58. package/packages/public-runtime/src/compliance/profile.ts +268 -20
  59. package/packages/public-runtime/src/compliance/ruleset.ts +42 -0
  60. package/packages/public-runtime/src/customization-runtime.ts +1 -1
  61. package/packages/public-runtime/src/product.ts +9 -1
  62. package/packages/public-runtime/src/publication-content-redirects.ts +16 -3
  63. package/packages/public-runtime/tests/fixtures/compliance-decisions.golden.json +252 -52
  64. package/pnpm-lock.runner.yaml +0 -15
  65. package/scripts/tenant/materialize-tenant-content.mjs +3 -0
  66. package/scripts/tenant/validate.mjs +128 -0
  67. package/apps/storefront/dev-plugins/dev-publish.mjs +0 -55
  68. package/apps/storefront/drizzle.config.apps.ts +0 -13
  69. package/apps/storefront/integrations/preview-annotations-client-bundle.mjs +0 -80
  70. package/apps/storefront/migrations-apps/0000_fast_millenium_guard.sql +0 -129
  71. package/apps/storefront/migrations-apps/0001_woozy_lyja.sql +0 -22
  72. package/apps/storefront/migrations-apps/0002_good_switch.sql +0 -26
  73. package/apps/storefront/migrations-apps/0003_mute_marauders.sql +0 -12
  74. package/apps/storefront/migrations-apps/0004_deep_morph.sql +0 -36
  75. package/apps/storefront/migrations-apps/0005_common_mystique.sql +0 -23
  76. package/apps/storefront/migrations-apps/0006_broad_microchip.sql +0 -16
  77. package/apps/storefront/migrations-apps/0007_brave_outlaw_kid.sql +0 -15
  78. package/apps/storefront/migrations-apps/0008_blue_dazzler.sql +0 -11
  79. package/apps/storefront/migrations-apps/0009_bored_shinobi_shaw.sql +0 -15
  80. package/apps/storefront/migrations-apps/0010_ws4_verified_provider_measurement.sql +0 -35
  81. package/apps/storefront/migrations-apps/0011_dt_tracking_tenant_databases.sql +0 -23
  82. package/apps/storefront/migrations-apps/0012_test_destinations.sql +0 -29
  83. package/apps/storefront/migrations-apps/0013_publication_space_editorial.sql +0 -64
  84. package/apps/storefront/migrations-apps/0014_retire_candidate_ledger.sql +0 -12
  85. package/apps/storefront/migrations-apps/0015_merchant_calculation_settings.sql +0 -31
  86. package/apps/storefront/migrations-apps/0016_scrappy_commerce_contract.sql +0 -166
  87. package/apps/storefront/migrations-apps/0017_commerce_durable_projection.sql +0 -28
  88. package/apps/storefront/migrations-apps/0018_commerce_provider_cart_identity.sql +0 -13
  89. package/apps/storefront/migrations-apps/0019_commerce_source_authority.sql +0 -23
  90. package/apps/storefront/migrations-apps/0020_contact_messages.sql +0 -18
  91. package/apps/storefront/migrations-apps/0021_contact_vault.sql +0 -166
  92. package/apps/storefront/migrations-apps/0022_contact_vault_fields.sql +0 -342
  93. package/apps/storefront/migrations-apps/0023_principal_grant_contacts.sql +0 -15
  94. package/apps/storefront/migrations-apps/0024_order_contact_erasure_state.sql +0 -22
  95. package/apps/storefront/migrations-apps/0025_shipment_audit_order_lookup.sql +0 -2
  96. package/apps/storefront/migrations-apps/0026_fulfillment_assignment.sql +0 -44
  97. package/apps/storefront/migrations-apps/0027_app_contact_authority.sql +0 -70
  98. package/apps/storefront/migrations-apps/0028_app_jwk_and_candidates.sql +0 -133
  99. package/apps/storefront/migrations-apps/0029_inventory_locations_wms.sql +0 -38
  100. package/apps/storefront/migrations-apps/0030_assignment_split_shipments.sql +0 -149
  101. package/apps/storefront/migrations-apps/meta/0000_snapshot.json +0 -843
  102. package/apps/storefront/migrations-apps/meta/0001_snapshot.json +0 -990
  103. package/apps/storefront/migrations-apps/meta/0002_snapshot.json +0 -1160
  104. package/apps/storefront/migrations-apps/meta/0003_snapshot.json +0 -1235
  105. package/apps/storefront/migrations-apps/meta/0004_snapshot.json +0 -1474
  106. package/apps/storefront/migrations-apps/meta/0005_snapshot.json +0 -1617
  107. package/apps/storefront/migrations-apps/meta/0006_snapshot.json +0 -1716
  108. package/apps/storefront/migrations-apps/meta/0007_snapshot.json +0 -1812
  109. package/apps/storefront/migrations-apps/meta/0008_snapshot.json +0 -1881
  110. package/apps/storefront/migrations-apps/meta/0009_snapshot.json +0 -1979
  111. package/apps/storefront/migrations-apps/meta/_journal.json +0 -76
  112. package/apps/storefront/perf/README.md +0 -64
  113. package/apps/storefront/perf/assert-budgets.ts +0 -159
  114. package/apps/storefront/platform-reconcile-tenants.json +0 -3
  115. package/apps/storefront/playwright.config.ts +0 -23
  116. package/apps/storefront/public/js/dashboard-access-banner.js +0 -53
  117. package/apps/storefront/public/js/dashboard-apps.js +0 -183
  118. package/apps/storefront/public/js/dashboard-contact-capture.js +0 -52
  119. package/apps/storefront/public/js/dashboard-delegate.js +0 -167
  120. package/apps/storefront/public/js/dashboard-team.js +0 -356
  121. package/apps/storefront/public/js/dashboard-vendor-search.js +0 -115
  122. package/apps/storefront/src/components/content/storefront/AsyncStylesheet.astro +0 -26
  123. package/apps/storefront/src/components/integrations/storefront/WidgetFrame.astro +0 -34
  124. package/apps/storefront/src/config/adminTenantLookup.ts +0 -35
  125. package/apps/storefront/src/config/evidenceTenantRoster.ts +0 -25
  126. package/apps/storefront/src/config/staffProvisionProjection.ts +0 -24
  127. package/apps/storefront/src/config/storeName.ts +0 -34
  128. package/apps/storefront/src/lib/access/admin/README.md +0 -122
  129. package/apps/storefront/src/lib/access/admin/adminShell.ts +0 -281
  130. package/apps/storefront/src/lib/access/admin/envelope.ts +0 -9
  131. package/apps/storefront/src/lib/access/admin/viewmodels/settings.ts +0 -64
  132. package/apps/storefront/src/lib/access/auth/adminApiGuard.ts +0 -66
  133. package/apps/storefront/src/lib/access/auth/adminEntry.ts +0 -126
  134. package/apps/storefront/src/lib/access/auth/mcpClientAssertion.ts +0 -217
  135. package/apps/storefront/src/lib/access/auth/operatorSession.ts +0 -120
  136. package/apps/storefront/src/lib/access/dashboard/delegateGate.ts +0 -130
  137. package/apps/storefront/src/lib/access/dashboard/staffStoreEntry.ts +0 -150
  138. package/apps/storefront/src/lib/access/dashboard/staffVendorAccess.ts +0 -452
  139. package/apps/storefront/src/lib/access/dashboard/vendorQuery.ts +0 -61
  140. package/apps/storefront/src/lib/access/fixtures/settings.ts +0 -67
  141. package/apps/storefront/src/lib/access/fixtures/tenants.ts +0 -29
  142. package/apps/storefront/src/lib/access/notifications/magicLinkInviteEmail.ts +0 -62
  143. package/apps/storefront/src/lib/access/shared/grantContactLookup.ts +0 -97
  144. package/apps/storefront/src/lib/access/shared/principalGrants.ts +0 -775
  145. package/apps/storefront/src/lib/activity/alerts.ts +0 -426
  146. package/apps/storefront/src/lib/activity/candidateSubmitLease.ts +0 -87
  147. package/apps/storefront/src/lib/activity/changeActorAttribution.ts +0 -181
  148. package/apps/storefront/src/lib/activity/evidence/evidenceReference.ts +0 -32
  149. package/apps/storefront/src/lib/activity/fixtures/evidence.ts +0 -99
  150. package/apps/storefront/src/lib/activity/query.ts +0 -403
  151. package/apps/storefront/src/lib/activity/uiActor.ts +0 -152
  152. package/apps/storefront/src/lib/admin/services/mock/index.ts +0 -12
  153. package/apps/storefront/src/lib/assets/addons/catalog.ts +0 -60
  154. package/apps/storefront/src/lib/assets/addons/storeEntitlements.ts +0 -260
  155. package/apps/storefront/src/lib/assets/durableAssetsRoute.ts +0 -65
  156. package/apps/storefront/src/lib/assets/durableR2.ts +0 -473
  157. package/apps/storefront/src/lib/assets/durableR2Bindings.ts +0 -33
  158. package/apps/storefront/src/lib/automation/admin/viewmodels/aiWorkflows.ts +0 -65
  159. package/apps/storefront/src/lib/automation/ai/approvalMode.ts +0 -20
  160. package/apps/storefront/src/lib/automation/ai/askEnvelope.ts +0 -47
  161. package/apps/storefront/src/lib/automation/ai/audit.ts +0 -12
  162. package/apps/storefront/src/lib/automation/ai/operationalRuns.ts +0 -155
  163. package/apps/storefront/src/lib/automation/ai/recommendation.ts +0 -20
  164. package/apps/storefront/src/lib/automation/fixtures/aiWorkflows.ts +0 -59
  165. package/apps/storefront/src/lib/catalog/admin/catalogSettingsClient.ts +0 -250
  166. package/apps/storefront/src/lib/catalog/admin/catalogSettingsFields.ts +0 -134
  167. package/apps/storefront/src/lib/catalog/admin/catalogSettingsPreview.ts +0 -37
  168. package/apps/storefront/src/lib/catalog/admin/catalogSettingsPricingView.ts +0 -39
  169. package/apps/storefront/src/lib/catalog/admin/catalogSettingsRuleView.ts +0 -44
  170. package/apps/storefront/src/lib/catalog/admin/catalogSettingsSkuView.ts +0 -21
  171. package/apps/storefront/src/lib/catalog/admin/catalogSettingsState.ts +0 -132
  172. package/apps/storefront/src/lib/catalog/admin/productSetupPhoto.ts +0 -23
  173. package/apps/storefront/src/lib/catalog/admin/productsTabClient.ts +0 -193
  174. package/apps/storefront/src/lib/catalog/admin/services/catalogProducts.ts +0 -32
  175. package/apps/storefront/src/lib/catalog/admin/viewmodels/catalogProducts.ts +0 -164
  176. package/apps/storefront/src/lib/catalog/admin/viewmodels/products.ts +0 -267
  177. package/apps/storefront/src/lib/catalog/fixtures/products.ts +0 -105
  178. package/apps/storefront/src/lib/catalog/tot/syncState.ts +0 -111
  179. package/apps/storefront/src/lib/checkout/admin/checkoutStyleInput.ts +0 -172
  180. package/apps/storefront/src/lib/checkout/admin/checkoutStyleTarget.ts +0 -65
  181. package/apps/storefront/src/lib/checkout/browser/checkoutExciseForm.ts +0 -152
  182. package/apps/storefront/src/lib/checkout/browser/checkoutRequirementsForm.ts +0 -72
  183. package/apps/storefront/src/lib/checkout/browser/checkoutStyleForm.ts +0 -110
  184. package/apps/storefront/src/lib/checkout/browser/settingDraftActions.ts +0 -367
  185. package/apps/storefront/src/lib/checkout/commerce/checkoutSettings.ts +0 -246
  186. package/apps/storefront/src/lib/checkout/fixtures/checkoutSettings.ts +0 -77
  187. package/apps/storefront/src/lib/content/blog/markdown.ts +0 -174
  188. package/apps/storefront/src/lib/content/chrome/examples/tokenoftrust.chrome-assignments.example.json +0 -6
  189. package/apps/storefront/src/lib/content/chrome/examples/tokenoftrust.chrome.example.json +0 -79
  190. package/apps/storefront/src/lib/content/index.ts +0 -27
  191. package/apps/storefront/src/lib/content/the-build/readingTime.ts +0 -35
  192. package/apps/storefront/src/lib/content/the-build/toc.ts +0 -95
  193. package/apps/storefront/src/lib/customers/admin/viewmodels/customers.ts +0 -56
  194. package/apps/storefront/src/lib/customers/contactVault/blindIndex.ts +0 -28
  195. package/apps/storefront/src/lib/customers/contactVault/contactAudit.ts +0 -149
  196. package/apps/storefront/src/lib/customers/contactVault/dataKeys.ts +0 -283
  197. package/apps/storefront/src/lib/customers/contactVault/fieldEnvelope.ts +0 -88
  198. package/apps/storefront/src/lib/customers/contactVault/isolateMetrics.ts +0 -37
  199. package/apps/storefront/src/lib/customers/contactVault/kms.ts +0 -292
  200. package/apps/storefront/src/lib/customers/contactVault/retention.ts +0 -302
  201. package/apps/storefront/src/lib/customers/contactVault/retentionPolicy.ts +0 -290
  202. package/apps/storefront/src/lib/customers/contactVault/zip3.ts +0 -24
  203. package/apps/storefront/src/lib/customers/fixtures/customers.ts +0 -86
  204. package/apps/storefront/src/lib/developer-experience/admin/memoizeByEnvelope.ts +0 -27
  205. package/apps/storefront/src/lib/developer-experience/admin/seed.ts +0 -54
  206. package/apps/storefront/src/lib/developer-experience/dev/activityIngestToken.ts +0 -85
  207. package/apps/storefront/src/lib/developer-experience/dev/activityStore.ts +0 -82
  208. package/apps/storefront/src/lib/developer-experience/dev/ai-widget-client.js +0 -308
  209. package/apps/storefront/src/lib/developer-experience/dev/apiBase.ts +0 -17
  210. package/apps/storefront/src/lib/developer-experience/dev/cliSignInCode.ts +0 -124
  211. package/apps/storefront/src/lib/developer-experience/dev/cockpit/ask.ts +0 -49
  212. package/apps/storefront/src/lib/developer-experience/dev/cockpit/clickToSource.ts +0 -71
  213. package/apps/storefront/src/lib/developer-experience/dev/cockpit/copyCommand.ts +0 -227
  214. package/apps/storefront/src/lib/developer-experience/dev/cockpit/files.ts +0 -249
  215. package/apps/storefront/src/lib/developer-experience/dev/cockpit/hostedActivity.ts +0 -500
  216. package/apps/storefront/src/lib/developer-experience/dev/cockpit/infoPopover.ts +0 -12
  217. package/apps/storefront/src/lib/developer-experience/dev/cockpit/mcpCopy.ts +0 -34
  218. package/apps/storefront/src/lib/developer-experience/dev/cockpit/monitor.ts +0 -107
  219. package/apps/storefront/src/lib/developer-experience/dev/cockpit/stepper.ts +0 -116
  220. package/apps/storefront/src/lib/developer-experience/dev/cockpit/themeToggle.ts +0 -23
  221. package/apps/storefront/src/lib/developer-experience/dev/livePreview.ts +0 -77
  222. package/apps/storefront/src/lib/developer-experience/dev/obstacleStore.ts +0 -214
  223. package/apps/storefront/src/lib/developer-experience/dev/previewStatus.ts +0 -87
  224. package/apps/storefront/src/lib/developer-experience/dev/rendezvousBroker.ts +0 -226
  225. package/apps/storefront/src/lib/developer-experience/dev/runtimeStore.ts +0 -291
  226. package/apps/storefront/src/lib/developer-experience/dev/storeStatus.ts +0 -142
  227. package/apps/storefront/src/lib/developer-experience/dev/subjectReissue.ts +0 -67
  228. package/apps/storefront/src/lib/developer-experience/fixtures/regulated-commerce-truth/index.ts +0 -540
  229. package/apps/storefront/src/lib/developer-experience/fixtures/ws3-readonly-clone-preflight/index.ts +0 -495
  230. package/apps/storefront/src/lib/engagement/contact/contactMessages.ts +0 -671
  231. package/apps/storefront/src/lib/engagement/contact/messagesTabClient.ts +0 -175
  232. package/apps/storefront/src/lib/engagement/contact/submission.ts +0 -112
  233. package/apps/storefront/src/lib/engagement/messaging/messagesClient.ts +0 -149
  234. package/apps/storefront/src/lib/engagement/newsletter/digest.ts +0 -117
  235. package/apps/storefront/src/lib/engagement/newsletter/resendClient.ts +0 -79
  236. package/apps/storefront/src/lib/engagement/newsletter/send.ts +0 -265
  237. package/apps/storefront/src/lib/engagement/social/golive.ts +0 -212
  238. package/apps/storefront/src/lib/engagement/social/notify.ts +0 -32
  239. package/apps/storefront/src/lib/engagement/social/tokenStore.ts +0 -171
  240. package/apps/storefront/src/lib/fulfillment/admin/commerceDesk.ts +0 -180
  241. package/apps/storefront/src/lib/fulfillment/admin/commerceDeskRouting.ts +0 -45
  242. package/apps/storefront/src/lib/fulfillment/admin/viewmodels/fulfillment.ts +0 -1071
  243. package/apps/storefront/src/lib/fulfillment/appShipmentEvidence.ts +0 -271
  244. package/apps/storefront/src/lib/fulfillment/carrierEvidence.ts +0 -105
  245. package/apps/storefront/src/lib/fulfillment/commerceProjection.ts +0 -157
  246. package/apps/storefront/src/lib/fulfillment/commerceReadback.ts +0 -60
  247. package/apps/storefront/src/lib/fulfillment/commerceRecovery.ts +0 -84
  248. package/apps/storefront/src/lib/fulfillment/commerceRuntime.ts +0 -41
  249. package/apps/storefront/src/lib/fulfillment/fulfillmentService.ts +0 -2842
  250. package/apps/storefront/src/lib/fulfillment/readiness.ts +0 -217
  251. package/apps/storefront/src/lib/fulfillment/splitShipments.ts +0 -388
  252. package/apps/storefront/src/lib/fulfillment/syntheticPreviewOrders.ts +0 -292
  253. package/apps/storefront/src/lib/integrations/apps/appContactAuthority.ts +0 -27
  254. package/apps/storefront/src/lib/integrations/apps/appContactConsents.ts +0 -118
  255. package/apps/storefront/src/lib/integrations/apps/appInstallEnv.ts +0 -28
  256. package/apps/storefront/src/lib/integrations/apps/gtmMigrationDraft.ts +0 -103
  257. package/apps/storefront/src/lib/integrations/apps/inventoryWrite.ts +0 -906
  258. package/apps/storefront/src/lib/integrations/apps/orders/customerHash.ts +0 -28
  259. package/apps/storefront/src/lib/integrations/apps/orders/idempotency.ts +0 -100
  260. package/apps/storefront/src/lib/integrations/apps/reports/salesVelocityReport.ts +0 -96
  261. package/apps/storefront/src/lib/integrations/apps/routeParams.ts +0 -45
  262. package/apps/storefront/src/lib/integrations/webhooks/cloudflareQueueDispatcher.ts +0 -82
  263. package/apps/storefront/src/lib/integrations/webhooks/commercePayloads.ts +0 -159
  264. package/apps/storefront/src/lib/integrations/webhooks/deliveryEngine.ts +0 -379
  265. package/apps/storefront/src/lib/integrations/webhooks/deliveryMapper.ts +0 -34
  266. package/apps/storefront/src/lib/integrations/webhooks/deliveryStore.ts +0 -903
  267. package/apps/storefront/src/lib/integrations/webhooks/dispatcher.ts +0 -168
  268. package/apps/storefront/src/lib/integrations/webhooks/emit.ts +0 -245
  269. package/apps/storefront/src/lib/integrations/webhooks/events.ts +0 -105
  270. package/apps/storefront/src/lib/integrations/webhooks/getDispatcher.ts +0 -77
  271. package/apps/storefront/src/lib/integrations/webhooks/orderFulfilledClaim.ts +0 -75
  272. package/apps/storefront/src/lib/measurement/admin/analyticsRegionPolicy.ts +0 -151
  273. package/apps/storefront/src/lib/measurement/admin/analyticsRegionsClient.ts +0 -84
  274. package/apps/storefront/src/lib/measurement/admin/consentSettingsClient.ts +0 -113
  275. package/apps/storefront/src/lib/measurement/analytics/index.ts +0 -44
  276. package/apps/storefront/src/lib/measurement/attribution/attributionService.ts +0 -206
  277. package/apps/storefront/src/lib/measurement/attribution/orderConversionD1.ts +0 -150
  278. package/apps/storefront/src/lib/measurement/attribution/verifiedProviderMeasurement.ts +0 -118
  279. package/apps/storefront/src/lib/measurement/tracking/interactionCollector.ts +0 -205
  280. package/apps/storefront/src/lib/measurement/tracking/pruneRollup.ts +0 -260
  281. package/apps/storefront/src/lib/measurement/tracking/tenantReadAccess.ts +0 -138
  282. package/apps/storefront/src/lib/measurement/tracking-writeback/rewriteTrackingIds.ts +0 -175
  283. package/apps/storefront/src/lib/measurement/tracking-writeback/writebackCandidate.ts +0 -110
  284. package/apps/storefront/src/lib/observability/diag/capture.ts +0 -162
  285. package/apps/storefront/src/lib/observability/diag/consoleLine.ts +0 -76
  286. package/apps/storefront/src/lib/observability/diag/debugConsole.ts +0 -118
  287. package/apps/storefront/src/lib/observability/diag/debugMode.ts +0 -163
  288. package/apps/storefront/src/lib/observability/diag/debugWindow.ts +0 -111
  289. package/apps/storefront/src/lib/observability/diag/redact.ts +0 -17
  290. package/apps/storefront/src/lib/observability/diag/reference.ts +0 -148
  291. package/apps/storefront/src/lib/observability/diag/referenceStore.ts +0 -113
  292. package/apps/storefront/src/lib/observability/diag/report.ts +0 -110
  293. package/apps/storefront/src/lib/observability/diag/serverResponseTime.ts +0 -91
  294. package/apps/storefront/src/lib/observability/diag/session.ts +0 -93
  295. package/apps/storefront/src/lib/observability/monitoring/manifest.ts +0 -301
  296. package/apps/storefront/src/lib/observability/performance/lighthouseReport.ts +0 -109
  297. package/apps/storefront/src/lib/observability/performance/rumAlert.ts +0 -179
  298. package/apps/storefront/src/lib/orders/admin/orderActions.ts +0 -556
  299. package/apps/storefront/src/lib/orders/admin/orderClient.ts +0 -248
  300. package/apps/storefront/src/lib/orders/admin/orderSource.ts +0 -410
  301. package/apps/storefront/src/lib/orders/admin/services/orders.ts +0 -922
  302. package/apps/storefront/src/lib/orders/admin/viewmodels/orders.ts +0 -135
  303. package/apps/storefront/src/lib/orders/data/commerceCallerConfig.ts +0 -37
  304. package/apps/storefront/src/lib/orders/data/ledgerContractOrders.ts +0 -148
  305. package/apps/storefront/src/lib/orders/data/orderForwardReceiver.ts +0 -532
  306. package/apps/storefront/src/lib/orders/data/orderMapper.ts +0 -454
  307. package/apps/storefront/src/lib/orders/data/ordersStore.ts +0 -623
  308. package/apps/storefront/src/lib/orders/data/sourceAuthorityContract.ts +0 -380
  309. package/apps/storefront/src/lib/orders/data/sourceAuthorityStore.ts +0 -830
  310. package/apps/storefront/src/lib/orders/fixtures/orders.ts +0 -186
  311. package/apps/storefront/src/lib/orders/providers/foxyOrderClient.ts +0 -207
  312. package/apps/storefront/src/lib/orders/vault/appRecipientRead.ts +0 -222
  313. package/apps/storefront/src/lib/orders/vault/contactIntake.ts +0 -63
  314. package/apps/storefront/src/lib/orders/vault/contactRoutes.ts +0 -110
  315. package/apps/storefront/src/lib/orders/vault/kmsEnv.ts +0 -11
  316. package/apps/storefront/src/lib/orders/vault/orderContact.ts +0 -96
  317. package/apps/storefront/src/lib/orders/vault/orderContactVault.ts +0 -1427
  318. package/apps/storefront/src/lib/orders/vault/vault-test-support.ts +0 -258
  319. package/apps/storefront/src/lib/publication/d1/schema-apps.ts +0 -808
  320. package/apps/storefront/src/lib/publication/notifications/candidateConflictEmail.ts +0 -80
  321. package/apps/storefront/src/lib/publication/servingMode.ts +0 -52
  322. package/apps/storefront/src/lib/publication/shared/previewAnnotations/moduleAsset.ts +0 -65
  323. package/apps/storefront/src/lib/publication/shared/routedApiParam.ts +0 -38
  324. package/apps/storefront/src/lib/reporting/admin/viewmodels/reporting.ts +0 -34
  325. package/apps/storefront/src/lib/reporting/fixtures/reporting.ts +0 -51
  326. package/apps/storefront/src/lib/subscriptions/admin/viewmodels/subscriptions.ts +0 -106
  327. package/apps/storefront/src/lib/subscriptions/fixtures/subscriptions.ts +0 -398
  328. package/apps/storefront/src/pages/api/admin/activity-alerts.ts +0 -58
  329. package/apps/storefront/src/pages/api/admin/commerce-readiness.ts +0 -172
  330. package/apps/storefront/src/pages/api/admin/fulfillment/batches.ts +0 -59
  331. package/apps/storefront/src/pages/api/admin/fulfillment/orders/[id]/address.ts +0 -66
  332. package/apps/storefront/src/pages/api/admin/fulfillment/orders/[id].ts +0 -118
  333. package/apps/storefront/src/pages/api/admin/fulfillment/orders/contact-search.ts +0 -26
  334. package/apps/storefront/src/pages/api/admin/fulfillment/orders/contacts.ts +0 -22
  335. package/apps/storefront/src/pages/api/admin/interaction-insights.ts +0 -101
  336. package/apps/storefront/src/pages/api/admin/orders/[id].ts +0 -63
  337. package/apps/storefront/src/pages/api/admin/orders.ts +0 -65
  338. package/apps/storefront/src/pages/api/contact.ts +0 -144
  339. package/apps/storefront/src/scheduled/contactVaultSweep.ts +0 -113
  340. package/apps/storefront/src/styles/admin.css +0 -1161
  341. package/apps/storefront/test/pipeline/fake-preview-services.ts +0 -288
  342. package/apps/storefront/test/pipeline/harness.ts +0 -209
  343. package/apps/storefront/test/pipeline/intake-worker.mjs +0 -14
  344. package/apps/storefront/test/pipeline/matrix-faults.ts +0 -366
  345. package/apps/storefront/test/pipeline/pipeline-host.ts +0 -418
  346. package/apps/storefront/test/pipeline/pool-config.cjs +0 -85
  347. package/apps/storefront/test/pipeline/publish-kinds.ts +0 -279
  348. package/apps/storefront/test/pipeline/synthetic-job.ts +0 -303
  349. package/apps/storefront/test/pipeline-faults/matrix-lib.ts +0 -696
  350. package/apps/storefront/vitest.config.cts +0 -44
  351. package/apps/storefront/vitest.faults.config.cts +0 -13
  352. package/apps/storefront/vitest.workers.config.cts +0 -7
  353. package/packages/feedback/fixtures/v1/expected-findings.json +0 -16
  354. package/packages/feedback/fixtures/v1/feedback-action/invalid/carries-transport-credential.json +0 -14
  355. package/packages/feedback/fixtures/v1/feedback-action/invalid/control-char-in-description.json +0 -13
  356. package/packages/feedback/fixtures/v1/feedback-action/invalid/legacy-schema-version.json +0 -13
  357. package/packages/feedback/fixtures/v1/feedback-action/invalid/page-path-with-query.json +0 -14
  358. package/packages/feedback/fixtures/v1/feedback-action/invalid/title-too-short.json +0 -13
  359. package/packages/feedback/fixtures/v1/feedback-action/valid/element-problem.json +0 -33
  360. package/packages/feedback/fixtures/v1/feedback-action/valid/page-comment.json +0 -20
  361. package/packages/feedback/fixtures/v1/feedback-action/valid/region-improvement.json +0 -24
  362. package/packages/feedback/fixtures/v1/feedback-action/valid/text-selection-feature.json +0 -30
  363. package/packages/feedback/fixtures/v1/submission-receipt/invalid/accepted-at-not-utc.json +0 -9
  364. package/packages/feedback/fixtures/v1/submission-receipt/invalid/bad-feedback-id.json +0 -9
  365. package/packages/feedback/fixtures/v1/submission-receipt/invalid/legacy-contract-version.json +0 -9
  366. package/packages/feedback/fixtures/v1/submission-receipt/invalid/missing-replayed.json +0 -8
  367. package/packages/feedback/fixtures/v1/submission-receipt/valid/accepted.json +0 -9
  368. package/packages/feedback/fixtures/v1/submission-receipt/valid/fractional-seconds.json +0 -9
  369. package/packages/feedback/fixtures/v1/submission-receipt/valid/replayed.json +0 -9
  370. package/packages/feedback/fixtures/v1/target-evidence/invalid/page-kind-claims-structure.json +0 -6
  371. package/packages/feedback/fixtures/v1/target-evidence/invalid/path-too-deep.json +0 -17
  372. package/packages/feedback/fixtures/v1/target-evidence/invalid/relative-region-out-of-range.json +0 -11
  373. package/packages/feedback/fixtures/v1/target-evidence/invalid/selector-uses-class.json +0 -7
  374. package/packages/feedback/fixtures/v1/target-evidence/invalid/source-precision-without-anchor.json +0 -6
  375. package/packages/feedback/fixtures/v1/target-evidence/valid/element-structure.json +0 -21
  376. package/packages/feedback/fixtures/v1/target-evidence/valid/host-iframe.json +0 -14
  377. package/packages/feedback/fixtures/v1/target-evidence/valid/source-anchor.json +0 -12
  378. package/packages/feedback/fixtures/v1/target-evidence/valid/text-selection.json +0 -26
  379. package/packages/feedback/package.json +0 -35
  380. package/packages/feedback/scripts/build-player.mjs +0 -28
  381. package/packages/feedback/src/index.ts +0 -1
  382. package/packages/feedback/src/primitives/composer.ts +0 -639
  383. package/packages/feedback/src/primitives/dialog.ts +0 -263
  384. package/packages/feedback/src/primitives/hostAdapter.ts +0 -116
  385. package/packages/feedback/src/primitives/index.ts +0 -10
  386. package/packages/feedback/src/primitives/launcher.ts +0 -200
  387. package/packages/feedback/src/primitives/picker.ts +0 -663
  388. package/packages/feedback/src/primitives/redaction.ts +0 -204
  389. package/packages/feedback/src/primitives/selection.ts +0 -49
  390. package/packages/feedback/src/primitives/shiftAccelerator.ts +0 -160
  391. package/packages/feedback/src/primitives/styles.ts +0 -77
  392. package/packages/feedback/src/primitives/surface.ts +0 -124
  393. package/packages/feedback/src/primitives/target.ts +0 -293
  394. package/packages/feedback/src/tour/canonical.ts +0 -27
  395. package/packages/feedback/src/tour/index.ts +0 -3
  396. package/packages/feedback/src/tour/player/browser.ts +0 -5
  397. package/packages/feedback/src/tour/player/host.ts +0 -12
  398. package/packages/feedback/src/tour/player/index.ts +0 -205
  399. package/packages/feedback/src/tour/player/manifest.ts +0 -76
  400. package/packages/feedback/src/tour/player/player.css +0 -130
  401. package/packages/feedback/src/tour/player/resolver.ts +0 -12
  402. package/packages/feedback/src/tour/player/surface.ts +0 -295
  403. package/packages/feedback/src/tour/player/types.ts +0 -8
  404. package/packages/feedback/src/tour/resolve/core.ts +0 -267
  405. package/packages/feedback/src/tour/resolve/dom.ts +0 -115
  406. package/packages/feedback/src/tour/resolve/index.ts +0 -29
  407. package/packages/feedback/src/tour/sanitize.ts +0 -76
  408. package/packages/feedback/src/tour/schema.ts +0 -362
  409. package/packages/feedback/src/v1/guards.ts +0 -335
  410. package/packages/feedback/src/v1/index.ts +0 -3
  411. package/packages/feedback/src/v1/protectedSurfaces.ts +0 -32
  412. package/packages/feedback/src/v1/types.ts +0 -177
  413. package/packages/feedback/tsconfig.json +0 -9
  414. package/packages/feedback/vitest.config.cts +0 -21
@@ -1,1474 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "acf2cadd-ff2f-4930-ab74-985d6e296dbe",
5
- "prevId": "a288811d-ba42-4652-9dbc-3b3cc1223816",
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
- "candidate_attempts": {
508
- "name": "candidate_attempts",
509
- "columns": {
510
- "id": {
511
- "name": "id",
512
- "type": "text",
513
- "primaryKey": true,
514
- "notNull": true,
515
- "autoincrement": false
516
- },
517
- "candidate_id": {
518
- "name": "candidate_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
- "attempt_number": {
532
- "name": "attempt_number",
533
- "type": "integer",
534
- "primaryKey": false,
535
- "notNull": true,
536
- "autoincrement": false
537
- },
538
- "kind": {
539
- "name": "kind",
540
- "type": "text",
541
- "primaryKey": false,
542
- "notNull": true,
543
- "autoincrement": false
544
- },
545
- "status": {
546
- "name": "status",
547
- "type": "text",
548
- "primaryKey": false,
549
- "notNull": true,
550
- "autoincrement": false,
551
- "default": "'pending'"
552
- },
553
- "head_sha": {
554
- "name": "head_sha",
555
- "type": "text",
556
- "primaryKey": false,
557
- "notNull": false,
558
- "autoincrement": false
559
- },
560
- "detail": {
561
- "name": "detail",
562
- "type": "text",
563
- "primaryKey": false,
564
- "notNull": false,
565
- "autoincrement": false
566
- },
567
- "evidence": {
568
- "name": "evidence",
569
- "type": "text",
570
- "primaryKey": false,
571
- "notNull": false,
572
- "autoincrement": false
573
- },
574
- "started_at": {
575
- "name": "started_at",
576
- "type": "text",
577
- "primaryKey": false,
578
- "notNull": true,
579
- "autoincrement": false
580
- },
581
- "finished_at": {
582
- "name": "finished_at",
583
- "type": "text",
584
- "primaryKey": false,
585
- "notNull": false,
586
- "autoincrement": false
587
- }
588
- },
589
- "indexes": {
590
- "uq_candidate_attempts_candidate_number": {
591
- "name": "uq_candidate_attempts_candidate_number",
592
- "columns": [
593
- "candidate_id",
594
- "attempt_number"
595
- ],
596
- "isUnique": true
597
- },
598
- "idx_candidate_attempts_candidate": {
599
- "name": "idx_candidate_attempts_candidate",
600
- "columns": [
601
- "candidate_id"
602
- ],
603
- "isUnique": false
604
- },
605
- "idx_candidate_attempts_tenant": {
606
- "name": "idx_candidate_attempts_tenant",
607
- "columns": [
608
- "tenant_id"
609
- ],
610
- "isUnique": false
611
- }
612
- },
613
- "foreignKeys": {},
614
- "compositePrimaryKeys": {},
615
- "uniqueConstraints": {},
616
- "checkConstraints": {}
617
- },
618
- "candidates": {
619
- "name": "candidates",
620
- "columns": {
621
- "id": {
622
- "name": "id",
623
- "type": "text",
624
- "primaryKey": true,
625
- "notNull": true,
626
- "autoincrement": false
627
- },
628
- "tenant_id": {
629
- "name": "tenant_id",
630
- "type": "text",
631
- "primaryKey": false,
632
- "notNull": true,
633
- "autoincrement": false
634
- },
635
- "repository": {
636
- "name": "repository",
637
- "type": "text",
638
- "primaryKey": false,
639
- "notNull": true,
640
- "autoincrement": false
641
- },
642
- "pr_number": {
643
- "name": "pr_number",
644
- "type": "integer",
645
- "primaryKey": false,
646
- "notNull": true,
647
- "autoincrement": false
648
- },
649
- "change_id": {
650
- "name": "change_id",
651
- "type": "text",
652
- "primaryKey": false,
653
- "notNull": true,
654
- "autoincrement": false
655
- },
656
- "branch": {
657
- "name": "branch",
658
- "type": "text",
659
- "primaryKey": false,
660
- "notNull": false,
661
- "autoincrement": false
662
- },
663
- "title": {
664
- "name": "title",
665
- "type": "text",
666
- "primaryKey": false,
667
- "notNull": false,
668
- "autoincrement": false
669
- },
670
- "author": {
671
- "name": "author",
672
- "type": "text",
673
- "primaryKey": false,
674
- "notNull": false,
675
- "autoincrement": false
676
- },
677
- "status": {
678
- "name": "status",
679
- "type": "text",
680
- "primaryKey": false,
681
- "notNull": true,
682
- "autoincrement": false,
683
- "default": "'open'"
684
- },
685
- "head_sha": {
686
- "name": "head_sha",
687
- "type": "text",
688
- "primaryKey": false,
689
- "notNull": false,
690
- "autoincrement": false
691
- },
692
- "base_sha": {
693
- "name": "base_sha",
694
- "type": "text",
695
- "primaryKey": false,
696
- "notNull": false,
697
- "autoincrement": false
698
- },
699
- "created_at": {
700
- "name": "created_at",
701
- "type": "text",
702
- "primaryKey": false,
703
- "notNull": true,
704
- "autoincrement": false
705
- },
706
- "updated_at": {
707
- "name": "updated_at",
708
- "type": "text",
709
- "primaryKey": false,
710
- "notNull": true,
711
- "autoincrement": false
712
- }
713
- },
714
- "indexes": {
715
- "uq_candidates_tenant_repo_pr": {
716
- "name": "uq_candidates_tenant_repo_pr",
717
- "columns": [
718
- "tenant_id",
719
- "repository",
720
- "pr_number"
721
- ],
722
- "isUnique": true
723
- },
724
- "uq_candidates_tenant_change": {
725
- "name": "uq_candidates_tenant_change",
726
- "columns": [
727
- "tenant_id",
728
- "change_id"
729
- ],
730
- "isUnique": true
731
- },
732
- "idx_candidates_tenant_status": {
733
- "name": "idx_candidates_tenant_status",
734
- "columns": [
735
- "tenant_id",
736
- "status"
737
- ],
738
- "isUnique": false
739
- }
740
- },
741
- "foreignKeys": {},
742
- "compositePrimaryKeys": {},
743
- "uniqueConstraints": {},
744
- "checkConstraints": {}
745
- },
746
- "idempotency_keys": {
747
- "name": "idempotency_keys",
748
- "columns": {
749
- "install_id": {
750
- "name": "install_id",
751
- "type": "text",
752
- "primaryKey": false,
753
- "notNull": true,
754
- "autoincrement": false
755
- },
756
- "idempotency_key": {
757
- "name": "idempotency_key",
758
- "type": "text",
759
- "primaryKey": false,
760
- "notNull": true,
761
- "autoincrement": false
762
- },
763
- "body_hash": {
764
- "name": "body_hash",
765
- "type": "text",
766
- "primaryKey": false,
767
- "notNull": true,
768
- "autoincrement": false
769
- },
770
- "response_body": {
771
- "name": "response_body",
772
- "type": "text",
773
- "primaryKey": false,
774
- "notNull": true,
775
- "autoincrement": false
776
- },
777
- "created_at": {
778
- "name": "created_at",
779
- "type": "text",
780
- "primaryKey": false,
781
- "notNull": true,
782
- "autoincrement": false
783
- }
784
- },
785
- "indexes": {},
786
- "foreignKeys": {},
787
- "compositePrimaryKeys": {
788
- "idempotency_keys_install_id_idempotency_key_pk": {
789
- "columns": [
790
- "install_id",
791
- "idempotency_key"
792
- ],
793
- "name": "idempotency_keys_install_id_idempotency_key_pk"
794
- }
795
- },
796
- "uniqueConstraints": {},
797
- "checkConstraints": {}
798
- },
799
- "newsletter_sends": {
800
- "name": "newsletter_sends",
801
- "columns": {
802
- "tenant_id": {
803
- "name": "tenant_id",
804
- "type": "text",
805
- "primaryKey": false,
806
- "notNull": true,
807
- "autoincrement": false
808
- },
809
- "collection": {
810
- "name": "collection",
811
- "type": "text",
812
- "primaryKey": false,
813
- "notNull": true,
814
- "autoincrement": false
815
- },
816
- "digest_id": {
817
- "name": "digest_id",
818
- "type": "text",
819
- "primaryKey": false,
820
- "notNull": true,
821
- "autoincrement": false
822
- },
823
- "post_slugs": {
824
- "name": "post_slugs",
825
- "type": "text",
826
- "primaryKey": false,
827
- "notNull": true,
828
- "autoincrement": false,
829
- "default": "'[]'"
830
- },
831
- "recipient_count": {
832
- "name": "recipient_count",
833
- "type": "integer",
834
- "primaryKey": false,
835
- "notNull": true,
836
- "autoincrement": false,
837
- "default": 0
838
- },
839
- "sent_at": {
840
- "name": "sent_at",
841
- "type": "text",
842
- "primaryKey": false,
843
- "notNull": true,
844
- "autoincrement": false
845
- }
846
- },
847
- "indexes": {},
848
- "foreignKeys": {},
849
- "compositePrimaryKeys": {
850
- "newsletter_sends_tenant_id_collection_digest_id_pk": {
851
- "columns": [
852
- "tenant_id",
853
- "collection",
854
- "digest_id"
855
- ],
856
- "name": "newsletter_sends_tenant_id_collection_digest_id_pk"
857
- }
858
- },
859
- "uniqueConstraints": {},
860
- "checkConstraints": {}
861
- },
862
- "newsletter_subscribers": {
863
- "name": "newsletter_subscribers",
864
- "columns": {
865
- "tenant_id": {
866
- "name": "tenant_id",
867
- "type": "text",
868
- "primaryKey": false,
869
- "notNull": true,
870
- "autoincrement": false
871
- },
872
- "collection": {
873
- "name": "collection",
874
- "type": "text",
875
- "primaryKey": false,
876
- "notNull": true,
877
- "autoincrement": false
878
- },
879
- "email": {
880
- "name": "email",
881
- "type": "text",
882
- "primaryKey": false,
883
- "notNull": true,
884
- "autoincrement": false
885
- },
886
- "status": {
887
- "name": "status",
888
- "type": "text",
889
- "primaryKey": false,
890
- "notNull": true,
891
- "autoincrement": false,
892
- "default": "'pending'"
893
- },
894
- "token": {
895
- "name": "token",
896
- "type": "text",
897
- "primaryKey": false,
898
- "notNull": true,
899
- "autoincrement": false
900
- },
901
- "consent_source": {
902
- "name": "consent_source",
903
- "type": "text",
904
- "primaryKey": false,
905
- "notNull": false,
906
- "autoincrement": false
907
- },
908
- "consent_ip_hash": {
909
- "name": "consent_ip_hash",
910
- "type": "text",
911
- "primaryKey": false,
912
- "notNull": false,
913
- "autoincrement": false
914
- },
915
- "subscribed_at": {
916
- "name": "subscribed_at",
917
- "type": "text",
918
- "primaryKey": false,
919
- "notNull": true,
920
- "autoincrement": false
921
- },
922
- "confirmed_at": {
923
- "name": "confirmed_at",
924
- "type": "text",
925
- "primaryKey": false,
926
- "notNull": false,
927
- "autoincrement": false
928
- },
929
- "unsubscribed_at": {
930
- "name": "unsubscribed_at",
931
- "type": "text",
932
- "primaryKey": false,
933
- "notNull": false,
934
- "autoincrement": false
935
- },
936
- "last_sent_at": {
937
- "name": "last_sent_at",
938
- "type": "text",
939
- "primaryKey": false,
940
- "notNull": false,
941
- "autoincrement": false
942
- }
943
- },
944
- "indexes": {
945
- "idx_newsletter_tenant_coll_status": {
946
- "name": "idx_newsletter_tenant_coll_status",
947
- "columns": [
948
- "tenant_id",
949
- "collection",
950
- "status"
951
- ],
952
- "isUnique": false
953
- }
954
- },
955
- "foreignKeys": {},
956
- "compositePrimaryKeys": {
957
- "newsletter_subscribers_tenant_id_collection_email_pk": {
958
- "columns": [
959
- "tenant_id",
960
- "collection",
961
- "email"
962
- ],
963
- "name": "newsletter_subscribers_tenant_id_collection_email_pk"
964
- }
965
- },
966
- "uniqueConstraints": {},
967
- "checkConstraints": {}
968
- },
969
- "orders": {
970
- "name": "orders",
971
- "columns": {
972
- "tenant_id": {
973
- "name": "tenant_id",
974
- "type": "text",
975
- "primaryKey": false,
976
- "notNull": true,
977
- "autoincrement": false
978
- },
979
- "external_order_id": {
980
- "name": "external_order_id",
981
- "type": "text",
982
- "primaryKey": false,
983
- "notNull": true,
984
- "autoincrement": false
985
- },
986
- "env": {
987
- "name": "env",
988
- "type": "text",
989
- "primaryKey": false,
990
- "notNull": true,
991
- "autoincrement": false
992
- },
993
- "status": {
994
- "name": "status",
995
- "type": "text",
996
- "primaryKey": false,
997
- "notNull": true,
998
- "autoincrement": false
999
- },
1000
- "currency": {
1001
- "name": "currency",
1002
- "type": "text",
1003
- "primaryKey": false,
1004
- "notNull": true,
1005
- "autoincrement": false
1006
- },
1007
- "total": {
1008
- "name": "total",
1009
- "type": "real",
1010
- "primaryKey": false,
1011
- "notNull": true,
1012
- "autoincrement": false,
1013
- "default": 0
1014
- },
1015
- "subtotal": {
1016
- "name": "subtotal",
1017
- "type": "real",
1018
- "primaryKey": false,
1019
- "notNull": false,
1020
- "autoincrement": false
1021
- },
1022
- "customer_hash": {
1023
- "name": "customer_hash",
1024
- "type": "text",
1025
- "primaryKey": false,
1026
- "notNull": false,
1027
- "autoincrement": false
1028
- },
1029
- "line_items": {
1030
- "name": "line_items",
1031
- "type": "text",
1032
- "primaryKey": false,
1033
- "notNull": true,
1034
- "autoincrement": false,
1035
- "default": "'[]'"
1036
- },
1037
- "created_at": {
1038
- "name": "created_at",
1039
- "type": "text",
1040
- "primaryKey": false,
1041
- "notNull": true,
1042
- "autoincrement": false
1043
- },
1044
- "updated_at": {
1045
- "name": "updated_at",
1046
- "type": "text",
1047
- "primaryKey": false,
1048
- "notNull": true,
1049
- "autoincrement": false
1050
- }
1051
- },
1052
- "indexes": {
1053
- "idx_orders_tenant": {
1054
- "name": "idx_orders_tenant",
1055
- "columns": [
1056
- "tenant_id"
1057
- ],
1058
- "isUnique": false
1059
- }
1060
- },
1061
- "foreignKeys": {},
1062
- "compositePrimaryKeys": {
1063
- "orders_tenant_id_external_order_id_pk": {
1064
- "columns": [
1065
- "tenant_id",
1066
- "external_order_id"
1067
- ],
1068
- "name": "orders_tenant_id_external_order_id_pk"
1069
- }
1070
- },
1071
- "uniqueConstraints": {},
1072
- "checkConstraints": {}
1073
- },
1074
- "social_tokens": {
1075
- "name": "social_tokens",
1076
- "columns": {
1077
- "tenant_id": {
1078
- "name": "tenant_id",
1079
- "type": "text",
1080
- "primaryKey": false,
1081
- "notNull": true,
1082
- "autoincrement": false
1083
- },
1084
- "network": {
1085
- "name": "network",
1086
- "type": "text",
1087
- "primaryKey": false,
1088
- "notNull": true,
1089
- "autoincrement": false
1090
- },
1091
- "ciphertext": {
1092
- "name": "ciphertext",
1093
- "type": "text",
1094
- "primaryKey": false,
1095
- "notNull": true,
1096
- "autoincrement": false
1097
- },
1098
- "iv": {
1099
- "name": "iv",
1100
- "type": "text",
1101
- "primaryKey": false,
1102
- "notNull": true,
1103
- "autoincrement": false
1104
- },
1105
- "expires_at": {
1106
- "name": "expires_at",
1107
- "type": "text",
1108
- "primaryKey": false,
1109
- "notNull": false,
1110
- "autoincrement": false
1111
- },
1112
- "created_at": {
1113
- "name": "created_at",
1114
- "type": "text",
1115
- "primaryKey": false,
1116
- "notNull": true,
1117
- "autoincrement": false
1118
- },
1119
- "updated_at": {
1120
- "name": "updated_at",
1121
- "type": "text",
1122
- "primaryKey": false,
1123
- "notNull": true,
1124
- "autoincrement": false
1125
- }
1126
- },
1127
- "indexes": {
1128
- "idx_social_tokens_tenant": {
1129
- "name": "idx_social_tokens_tenant",
1130
- "columns": [
1131
- "tenant_id"
1132
- ],
1133
- "isUnique": false
1134
- }
1135
- },
1136
- "foreignKeys": {},
1137
- "compositePrimaryKeys": {
1138
- "social_tokens_tenant_id_network_pk": {
1139
- "columns": [
1140
- "tenant_id",
1141
- "network"
1142
- ],
1143
- "name": "social_tokens_tenant_id_network_pk"
1144
- }
1145
- },
1146
- "uniqueConstraints": {},
1147
- "checkConstraints": {}
1148
- },
1149
- "webhook_deliveries": {
1150
- "name": "webhook_deliveries",
1151
- "columns": {
1152
- "delivery_id": {
1153
- "name": "delivery_id",
1154
- "type": "text",
1155
- "primaryKey": true,
1156
- "notNull": true,
1157
- "autoincrement": false
1158
- },
1159
- "event_id": {
1160
- "name": "event_id",
1161
- "type": "text",
1162
- "primaryKey": false,
1163
- "notNull": true,
1164
- "autoincrement": false
1165
- },
1166
- "install_id": {
1167
- "name": "install_id",
1168
- "type": "text",
1169
- "primaryKey": false,
1170
- "notNull": true,
1171
- "autoincrement": false
1172
- },
1173
- "tenant_id": {
1174
- "name": "tenant_id",
1175
- "type": "text",
1176
- "primaryKey": false,
1177
- "notNull": true,
1178
- "autoincrement": false
1179
- },
1180
- "topic": {
1181
- "name": "topic",
1182
- "type": "text",
1183
- "primaryKey": false,
1184
- "notNull": true,
1185
- "autoincrement": false
1186
- },
1187
- "state": {
1188
- "name": "state",
1189
- "type": "text",
1190
- "primaryKey": false,
1191
- "notNull": true,
1192
- "autoincrement": false,
1193
- "default": "'pending'"
1194
- },
1195
- "attempts": {
1196
- "name": "attempts",
1197
- "type": "integer",
1198
- "primaryKey": false,
1199
- "notNull": true,
1200
- "autoincrement": false,
1201
- "default": 0
1202
- },
1203
- "last_status": {
1204
- "name": "last_status",
1205
- "type": "integer",
1206
- "primaryKey": false,
1207
- "notNull": false,
1208
- "autoincrement": false
1209
- },
1210
- "last_error_class": {
1211
- "name": "last_error_class",
1212
- "type": "text",
1213
- "primaryKey": false,
1214
- "notNull": false,
1215
- "autoincrement": false
1216
- },
1217
- "last_trace_id": {
1218
- "name": "last_trace_id",
1219
- "type": "text",
1220
- "primaryKey": false,
1221
- "notNull": false,
1222
- "autoincrement": false
1223
- },
1224
- "next_attempt_at": {
1225
- "name": "next_attempt_at",
1226
- "type": "text",
1227
- "primaryKey": false,
1228
- "notNull": false,
1229
- "autoincrement": false
1230
- },
1231
- "created_at": {
1232
- "name": "created_at",
1233
- "type": "text",
1234
- "primaryKey": false,
1235
- "notNull": true,
1236
- "autoincrement": false
1237
- },
1238
- "updated_at": {
1239
- "name": "updated_at",
1240
- "type": "text",
1241
- "primaryKey": false,
1242
- "notNull": true,
1243
- "autoincrement": false
1244
- }
1245
- },
1246
- "indexes": {
1247
- "idx_webhook_deliveries_install": {
1248
- "name": "idx_webhook_deliveries_install",
1249
- "columns": [
1250
- "install_id"
1251
- ],
1252
- "isUnique": false
1253
- },
1254
- "idx_webhook_deliveries_due": {
1255
- "name": "idx_webhook_deliveries_due",
1256
- "columns": [
1257
- "state",
1258
- "next_attempt_at"
1259
- ],
1260
- "isUnique": false
1261
- }
1262
- },
1263
- "foreignKeys": {},
1264
- "compositePrimaryKeys": {},
1265
- "uniqueConstraints": {},
1266
- "checkConstraints": {}
1267
- },
1268
- "webhook_delivery_attempts": {
1269
- "name": "webhook_delivery_attempts",
1270
- "columns": {
1271
- "id": {
1272
- "name": "id",
1273
- "type": "text",
1274
- "primaryKey": true,
1275
- "notNull": true,
1276
- "autoincrement": false
1277
- },
1278
- "delivery_id": {
1279
- "name": "delivery_id",
1280
- "type": "text",
1281
- "primaryKey": false,
1282
- "notNull": true,
1283
- "autoincrement": false
1284
- },
1285
- "attempt_no": {
1286
- "name": "attempt_no",
1287
- "type": "integer",
1288
- "primaryKey": false,
1289
- "notNull": true,
1290
- "autoincrement": false
1291
- },
1292
- "started_at": {
1293
- "name": "started_at",
1294
- "type": "text",
1295
- "primaryKey": false,
1296
- "notNull": true,
1297
- "autoincrement": false
1298
- },
1299
- "duration_ms": {
1300
- "name": "duration_ms",
1301
- "type": "integer",
1302
- "primaryKey": false,
1303
- "notNull": false,
1304
- "autoincrement": false
1305
- },
1306
- "http_status": {
1307
- "name": "http_status",
1308
- "type": "integer",
1309
- "primaryKey": false,
1310
- "notNull": false,
1311
- "autoincrement": false
1312
- },
1313
- "error_class": {
1314
- "name": "error_class",
1315
- "type": "text",
1316
- "primaryKey": false,
1317
- "notNull": false,
1318
- "autoincrement": false
1319
- },
1320
- "trace_id": {
1321
- "name": "trace_id",
1322
- "type": "text",
1323
- "primaryKey": false,
1324
- "notNull": false,
1325
- "autoincrement": false
1326
- }
1327
- },
1328
- "indexes": {
1329
- "idx_webhook_delivery_attempts_delivery": {
1330
- "name": "idx_webhook_delivery_attempts_delivery",
1331
- "columns": [
1332
- "delivery_id"
1333
- ],
1334
- "isUnique": false
1335
- }
1336
- },
1337
- "foreignKeys": {},
1338
- "compositePrimaryKeys": {},
1339
- "uniqueConstraints": {},
1340
- "checkConstraints": {}
1341
- },
1342
- "webhook_events": {
1343
- "name": "webhook_events",
1344
- "columns": {
1345
- "id": {
1346
- "name": "id",
1347
- "type": "text",
1348
- "primaryKey": true,
1349
- "notNull": true,
1350
- "autoincrement": false
1351
- },
1352
- "tenant_id": {
1353
- "name": "tenant_id",
1354
- "type": "text",
1355
- "primaryKey": false,
1356
- "notNull": true,
1357
- "autoincrement": false
1358
- },
1359
- "topic": {
1360
- "name": "topic",
1361
- "type": "text",
1362
- "primaryKey": false,
1363
- "notNull": true,
1364
- "autoincrement": false
1365
- },
1366
- "dataschema_version": {
1367
- "name": "dataschema_version",
1368
- "type": "text",
1369
- "primaryKey": false,
1370
- "notNull": true,
1371
- "autoincrement": false
1372
- },
1373
- "payload": {
1374
- "name": "payload",
1375
- "type": "text",
1376
- "primaryKey": false,
1377
- "notNull": true,
1378
- "autoincrement": false
1379
- },
1380
- "created_at": {
1381
- "name": "created_at",
1382
- "type": "text",
1383
- "primaryKey": false,
1384
- "notNull": true,
1385
- "autoincrement": false
1386
- }
1387
- },
1388
- "indexes": {},
1389
- "foreignKeys": {},
1390
- "compositePrimaryKeys": {},
1391
- "uniqueConstraints": {},
1392
- "checkConstraints": {}
1393
- },
1394
- "webhook_install_health": {
1395
- "name": "webhook_install_health",
1396
- "columns": {
1397
- "install_id": {
1398
- "name": "install_id",
1399
- "type": "text",
1400
- "primaryKey": true,
1401
- "notNull": true,
1402
- "autoincrement": false
1403
- },
1404
- "last_success_at": {
1405
- "name": "last_success_at",
1406
- "type": "text",
1407
- "primaryKey": false,
1408
- "notNull": false,
1409
- "autoincrement": false
1410
- },
1411
- "failure_streak": {
1412
- "name": "failure_streak",
1413
- "type": "integer",
1414
- "primaryKey": false,
1415
- "notNull": true,
1416
- "autoincrement": false,
1417
- "default": 0
1418
- },
1419
- "dlq_count": {
1420
- "name": "dlq_count",
1421
- "type": "integer",
1422
- "primaryKey": false,
1423
- "notNull": true,
1424
- "autoincrement": false,
1425
- "default": 0
1426
- },
1427
- "last_status": {
1428
- "name": "last_status",
1429
- "type": "integer",
1430
- "primaryKey": false,
1431
- "notNull": false,
1432
- "autoincrement": false
1433
- },
1434
- "last_error_class": {
1435
- "name": "last_error_class",
1436
- "type": "text",
1437
- "primaryKey": false,
1438
- "notNull": false,
1439
- "autoincrement": false
1440
- },
1441
- "recent_trace_ids": {
1442
- "name": "recent_trace_ids",
1443
- "type": "text",
1444
- "primaryKey": false,
1445
- "notNull": true,
1446
- "autoincrement": false,
1447
- "default": "'[]'"
1448
- },
1449
- "updated_at": {
1450
- "name": "updated_at",
1451
- "type": "text",
1452
- "primaryKey": false,
1453
- "notNull": true,
1454
- "autoincrement": false
1455
- }
1456
- },
1457
- "indexes": {},
1458
- "foreignKeys": {},
1459
- "compositePrimaryKeys": {},
1460
- "uniqueConstraints": {},
1461
- "checkConstraints": {}
1462
- }
1463
- },
1464
- "views": {},
1465
- "enums": {},
1466
- "_meta": {
1467
- "schemas": {},
1468
- "tables": {},
1469
- "columns": {}
1470
- },
1471
- "internal": {
1472
- "indexes": {}
1473
- }
1474
- }