@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,1716 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "09f5e867-f86e-4fc8-852e-094d1bb658b7",
5
- "prevId": "2a3a3f8c-c126-43c0-b9fe-d14f79103321",
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
- "consent_cmp_demand": {
747
- "name": "consent_cmp_demand",
748
- "columns": {
749
- "id": {
750
- "name": "id",
751
- "type": "text",
752
- "primaryKey": true,
753
- "notNull": true,
754
- "autoincrement": false
755
- },
756
- "tenant_id": {
757
- "name": "tenant_id",
758
- "type": "text",
759
- "primaryKey": false,
760
- "notNull": true,
761
- "autoincrement": false
762
- },
763
- "adapter_id": {
764
- "name": "adapter_id",
765
- "type": "text",
766
- "primaryKey": false,
767
- "notNull": true,
768
- "autoincrement": false
769
- },
770
- "source": {
771
- "name": "source",
772
- "type": "text",
773
- "primaryKey": false,
774
- "notNull": false,
775
- "autoincrement": false
776
- },
777
- "at": {
778
- "name": "at",
779
- "type": "text",
780
- "primaryKey": false,
781
- "notNull": true,
782
- "autoincrement": false
783
- }
784
- },
785
- "indexes": {
786
- "uq_consent_cmp_demand_tenant_adapter": {
787
- "name": "uq_consent_cmp_demand_tenant_adapter",
788
- "columns": [
789
- "tenant_id",
790
- "adapter_id"
791
- ],
792
- "isUnique": true
793
- },
794
- "idx_consent_cmp_demand_adapter": {
795
- "name": "idx_consent_cmp_demand_adapter",
796
- "columns": [
797
- "adapter_id"
798
- ],
799
- "isUnique": false
800
- }
801
- },
802
- "foreignKeys": {},
803
- "compositePrimaryKeys": {},
804
- "uniqueConstraints": {},
805
- "checkConstraints": {}
806
- },
807
- "consent_config_revisions": {
808
- "name": "consent_config_revisions",
809
- "columns": {
810
- "id": {
811
- "name": "id",
812
- "type": "text",
813
- "primaryKey": true,
814
- "notNull": true,
815
- "autoincrement": false
816
- },
817
- "tenant_id": {
818
- "name": "tenant_id",
819
- "type": "text",
820
- "primaryKey": false,
821
- "notNull": true,
822
- "autoincrement": false
823
- },
824
- "revision": {
825
- "name": "revision",
826
- "type": "integer",
827
- "primaryKey": false,
828
- "notNull": true,
829
- "autoincrement": false
830
- },
831
- "config": {
832
- "name": "config",
833
- "type": "text",
834
- "primaryKey": false,
835
- "notNull": true,
836
- "autoincrement": false
837
- },
838
- "actor": {
839
- "name": "actor",
840
- "type": "text",
841
- "primaryKey": false,
842
- "notNull": true,
843
- "autoincrement": false
844
- },
845
- "note": {
846
- "name": "note",
847
- "type": "text",
848
- "primaryKey": false,
849
- "notNull": false,
850
- "autoincrement": false
851
- },
852
- "reverted_from": {
853
- "name": "reverted_from",
854
- "type": "integer",
855
- "primaryKey": false,
856
- "notNull": false,
857
- "autoincrement": false
858
- },
859
- "created_at": {
860
- "name": "created_at",
861
- "type": "text",
862
- "primaryKey": false,
863
- "notNull": true,
864
- "autoincrement": false
865
- }
866
- },
867
- "indexes": {
868
- "uq_consent_config_tenant_revision": {
869
- "name": "uq_consent_config_tenant_revision",
870
- "columns": [
871
- "tenant_id",
872
- "revision"
873
- ],
874
- "isUnique": true
875
- },
876
- "idx_consent_config_tenant": {
877
- "name": "idx_consent_config_tenant",
878
- "columns": [
879
- "tenant_id"
880
- ],
881
- "isUnique": false
882
- }
883
- },
884
- "foreignKeys": {},
885
- "compositePrimaryKeys": {},
886
- "uniqueConstraints": {},
887
- "checkConstraints": {}
888
- },
889
- "correlation_replay": {
890
- "name": "correlation_replay",
891
- "columns": {
892
- "jti": {
893
- "name": "jti",
894
- "type": "text",
895
- "primaryKey": true,
896
- "notNull": true,
897
- "autoincrement": false
898
- },
899
- "expires_at": {
900
- "name": "expires_at",
901
- "type": "integer",
902
- "primaryKey": false,
903
- "notNull": true,
904
- "autoincrement": false
905
- },
906
- "consumed_at": {
907
- "name": "consumed_at",
908
- "type": "text",
909
- "primaryKey": false,
910
- "notNull": true,
911
- "autoincrement": false
912
- }
913
- },
914
- "indexes": {},
915
- "foreignKeys": {},
916
- "compositePrimaryKeys": {},
917
- "uniqueConstraints": {},
918
- "checkConstraints": {}
919
- },
920
- "idempotency_keys": {
921
- "name": "idempotency_keys",
922
- "columns": {
923
- "install_id": {
924
- "name": "install_id",
925
- "type": "text",
926
- "primaryKey": false,
927
- "notNull": true,
928
- "autoincrement": false
929
- },
930
- "idempotency_key": {
931
- "name": "idempotency_key",
932
- "type": "text",
933
- "primaryKey": false,
934
- "notNull": true,
935
- "autoincrement": false
936
- },
937
- "body_hash": {
938
- "name": "body_hash",
939
- "type": "text",
940
- "primaryKey": false,
941
- "notNull": true,
942
- "autoincrement": false
943
- },
944
- "response_body": {
945
- "name": "response_body",
946
- "type": "text",
947
- "primaryKey": false,
948
- "notNull": true,
949
- "autoincrement": false
950
- },
951
- "created_at": {
952
- "name": "created_at",
953
- "type": "text",
954
- "primaryKey": false,
955
- "notNull": true,
956
- "autoincrement": false
957
- }
958
- },
959
- "indexes": {},
960
- "foreignKeys": {},
961
- "compositePrimaryKeys": {
962
- "idempotency_keys_install_id_idempotency_key_pk": {
963
- "columns": [
964
- "install_id",
965
- "idempotency_key"
966
- ],
967
- "name": "idempotency_keys_install_id_idempotency_key_pk"
968
- }
969
- },
970
- "uniqueConstraints": {},
971
- "checkConstraints": {}
972
- },
973
- "newsletter_sends": {
974
- "name": "newsletter_sends",
975
- "columns": {
976
- "tenant_id": {
977
- "name": "tenant_id",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": true,
981
- "autoincrement": false
982
- },
983
- "collection": {
984
- "name": "collection",
985
- "type": "text",
986
- "primaryKey": false,
987
- "notNull": true,
988
- "autoincrement": false
989
- },
990
- "digest_id": {
991
- "name": "digest_id",
992
- "type": "text",
993
- "primaryKey": false,
994
- "notNull": true,
995
- "autoincrement": false
996
- },
997
- "post_slugs": {
998
- "name": "post_slugs",
999
- "type": "text",
1000
- "primaryKey": false,
1001
- "notNull": true,
1002
- "autoincrement": false,
1003
- "default": "'[]'"
1004
- },
1005
- "recipient_count": {
1006
- "name": "recipient_count",
1007
- "type": "integer",
1008
- "primaryKey": false,
1009
- "notNull": true,
1010
- "autoincrement": false,
1011
- "default": 0
1012
- },
1013
- "sent_at": {
1014
- "name": "sent_at",
1015
- "type": "text",
1016
- "primaryKey": false,
1017
- "notNull": true,
1018
- "autoincrement": false
1019
- }
1020
- },
1021
- "indexes": {},
1022
- "foreignKeys": {},
1023
- "compositePrimaryKeys": {
1024
- "newsletter_sends_tenant_id_collection_digest_id_pk": {
1025
- "columns": [
1026
- "tenant_id",
1027
- "collection",
1028
- "digest_id"
1029
- ],
1030
- "name": "newsletter_sends_tenant_id_collection_digest_id_pk"
1031
- }
1032
- },
1033
- "uniqueConstraints": {},
1034
- "checkConstraints": {}
1035
- },
1036
- "newsletter_subscribers": {
1037
- "name": "newsletter_subscribers",
1038
- "columns": {
1039
- "tenant_id": {
1040
- "name": "tenant_id",
1041
- "type": "text",
1042
- "primaryKey": false,
1043
- "notNull": true,
1044
- "autoincrement": false
1045
- },
1046
- "collection": {
1047
- "name": "collection",
1048
- "type": "text",
1049
- "primaryKey": false,
1050
- "notNull": true,
1051
- "autoincrement": false
1052
- },
1053
- "email": {
1054
- "name": "email",
1055
- "type": "text",
1056
- "primaryKey": false,
1057
- "notNull": true,
1058
- "autoincrement": false
1059
- },
1060
- "status": {
1061
- "name": "status",
1062
- "type": "text",
1063
- "primaryKey": false,
1064
- "notNull": true,
1065
- "autoincrement": false,
1066
- "default": "'pending'"
1067
- },
1068
- "token": {
1069
- "name": "token",
1070
- "type": "text",
1071
- "primaryKey": false,
1072
- "notNull": true,
1073
- "autoincrement": false
1074
- },
1075
- "consent_source": {
1076
- "name": "consent_source",
1077
- "type": "text",
1078
- "primaryKey": false,
1079
- "notNull": false,
1080
- "autoincrement": false
1081
- },
1082
- "consent_ip_hash": {
1083
- "name": "consent_ip_hash",
1084
- "type": "text",
1085
- "primaryKey": false,
1086
- "notNull": false,
1087
- "autoincrement": false
1088
- },
1089
- "subscribed_at": {
1090
- "name": "subscribed_at",
1091
- "type": "text",
1092
- "primaryKey": false,
1093
- "notNull": true,
1094
- "autoincrement": false
1095
- },
1096
- "confirmed_at": {
1097
- "name": "confirmed_at",
1098
- "type": "text",
1099
- "primaryKey": false,
1100
- "notNull": false,
1101
- "autoincrement": false
1102
- },
1103
- "unsubscribed_at": {
1104
- "name": "unsubscribed_at",
1105
- "type": "text",
1106
- "primaryKey": false,
1107
- "notNull": false,
1108
- "autoincrement": false
1109
- },
1110
- "last_sent_at": {
1111
- "name": "last_sent_at",
1112
- "type": "text",
1113
- "primaryKey": false,
1114
- "notNull": false,
1115
- "autoincrement": false
1116
- }
1117
- },
1118
- "indexes": {
1119
- "idx_newsletter_tenant_coll_status": {
1120
- "name": "idx_newsletter_tenant_coll_status",
1121
- "columns": [
1122
- "tenant_id",
1123
- "collection",
1124
- "status"
1125
- ],
1126
- "isUnique": false
1127
- }
1128
- },
1129
- "foreignKeys": {},
1130
- "compositePrimaryKeys": {
1131
- "newsletter_subscribers_tenant_id_collection_email_pk": {
1132
- "columns": [
1133
- "tenant_id",
1134
- "collection",
1135
- "email"
1136
- ],
1137
- "name": "newsletter_subscribers_tenant_id_collection_email_pk"
1138
- }
1139
- },
1140
- "uniqueConstraints": {},
1141
- "checkConstraints": {}
1142
- },
1143
- "order_attribution": {
1144
- "name": "order_attribution",
1145
- "columns": {
1146
- "tenant_id": {
1147
- "name": "tenant_id",
1148
- "type": "text",
1149
- "primaryKey": false,
1150
- "notNull": true,
1151
- "autoincrement": false
1152
- },
1153
- "external_order_id": {
1154
- "name": "external_order_id",
1155
- "type": "text",
1156
- "primaryKey": false,
1157
- "notNull": true,
1158
- "autoincrement": false
1159
- },
1160
- "attributed": {
1161
- "name": "attributed",
1162
- "type": "integer",
1163
- "primaryKey": false,
1164
- "notNull": true,
1165
- "autoincrement": false,
1166
- "default": 0
1167
- },
1168
- "correlation_id": {
1169
- "name": "correlation_id",
1170
- "type": "text",
1171
- "primaryKey": false,
1172
- "notNull": false,
1173
- "autoincrement": false
1174
- },
1175
- "correlation_expires_at": {
1176
- "name": "correlation_expires_at",
1177
- "type": "text",
1178
- "primaryKey": false,
1179
- "notNull": false,
1180
- "autoincrement": false
1181
- },
1182
- "reason": {
1183
- "name": "reason",
1184
- "type": "text",
1185
- "primaryKey": false,
1186
- "notNull": false,
1187
- "autoincrement": false
1188
- },
1189
- "recorded_at": {
1190
- "name": "recorded_at",
1191
- "type": "text",
1192
- "primaryKey": false,
1193
- "notNull": true,
1194
- "autoincrement": false
1195
- }
1196
- },
1197
- "indexes": {},
1198
- "foreignKeys": {},
1199
- "compositePrimaryKeys": {
1200
- "order_attribution_tenant_id_external_order_id_pk": {
1201
- "columns": [
1202
- "tenant_id",
1203
- "external_order_id"
1204
- ],
1205
- "name": "order_attribution_tenant_id_external_order_id_pk"
1206
- }
1207
- },
1208
- "uniqueConstraints": {},
1209
- "checkConstraints": {}
1210
- },
1211
- "orders": {
1212
- "name": "orders",
1213
- "columns": {
1214
- "tenant_id": {
1215
- "name": "tenant_id",
1216
- "type": "text",
1217
- "primaryKey": false,
1218
- "notNull": true,
1219
- "autoincrement": false
1220
- },
1221
- "external_order_id": {
1222
- "name": "external_order_id",
1223
- "type": "text",
1224
- "primaryKey": false,
1225
- "notNull": true,
1226
- "autoincrement": false
1227
- },
1228
- "env": {
1229
- "name": "env",
1230
- "type": "text",
1231
- "primaryKey": false,
1232
- "notNull": true,
1233
- "autoincrement": false
1234
- },
1235
- "status": {
1236
- "name": "status",
1237
- "type": "text",
1238
- "primaryKey": false,
1239
- "notNull": true,
1240
- "autoincrement": false
1241
- },
1242
- "currency": {
1243
- "name": "currency",
1244
- "type": "text",
1245
- "primaryKey": false,
1246
- "notNull": true,
1247
- "autoincrement": false
1248
- },
1249
- "total": {
1250
- "name": "total",
1251
- "type": "real",
1252
- "primaryKey": false,
1253
- "notNull": true,
1254
- "autoincrement": false,
1255
- "default": 0
1256
- },
1257
- "subtotal": {
1258
- "name": "subtotal",
1259
- "type": "real",
1260
- "primaryKey": false,
1261
- "notNull": false,
1262
- "autoincrement": false
1263
- },
1264
- "customer_hash": {
1265
- "name": "customer_hash",
1266
- "type": "text",
1267
- "primaryKey": false,
1268
- "notNull": false,
1269
- "autoincrement": false
1270
- },
1271
- "line_items": {
1272
- "name": "line_items",
1273
- "type": "text",
1274
- "primaryKey": false,
1275
- "notNull": true,
1276
- "autoincrement": false,
1277
- "default": "'[]'"
1278
- },
1279
- "created_at": {
1280
- "name": "created_at",
1281
- "type": "text",
1282
- "primaryKey": false,
1283
- "notNull": true,
1284
- "autoincrement": false
1285
- },
1286
- "updated_at": {
1287
- "name": "updated_at",
1288
- "type": "text",
1289
- "primaryKey": false,
1290
- "notNull": true,
1291
- "autoincrement": false
1292
- }
1293
- },
1294
- "indexes": {
1295
- "idx_orders_tenant": {
1296
- "name": "idx_orders_tenant",
1297
- "columns": [
1298
- "tenant_id"
1299
- ],
1300
- "isUnique": false
1301
- }
1302
- },
1303
- "foreignKeys": {},
1304
- "compositePrimaryKeys": {
1305
- "orders_tenant_id_external_order_id_pk": {
1306
- "columns": [
1307
- "tenant_id",
1308
- "external_order_id"
1309
- ],
1310
- "name": "orders_tenant_id_external_order_id_pk"
1311
- }
1312
- },
1313
- "uniqueConstraints": {},
1314
- "checkConstraints": {}
1315
- },
1316
- "social_tokens": {
1317
- "name": "social_tokens",
1318
- "columns": {
1319
- "tenant_id": {
1320
- "name": "tenant_id",
1321
- "type": "text",
1322
- "primaryKey": false,
1323
- "notNull": true,
1324
- "autoincrement": false
1325
- },
1326
- "network": {
1327
- "name": "network",
1328
- "type": "text",
1329
- "primaryKey": false,
1330
- "notNull": true,
1331
- "autoincrement": false
1332
- },
1333
- "ciphertext": {
1334
- "name": "ciphertext",
1335
- "type": "text",
1336
- "primaryKey": false,
1337
- "notNull": true,
1338
- "autoincrement": false
1339
- },
1340
- "iv": {
1341
- "name": "iv",
1342
- "type": "text",
1343
- "primaryKey": false,
1344
- "notNull": true,
1345
- "autoincrement": false
1346
- },
1347
- "expires_at": {
1348
- "name": "expires_at",
1349
- "type": "text",
1350
- "primaryKey": false,
1351
- "notNull": false,
1352
- "autoincrement": false
1353
- },
1354
- "created_at": {
1355
- "name": "created_at",
1356
- "type": "text",
1357
- "primaryKey": false,
1358
- "notNull": true,
1359
- "autoincrement": false
1360
- },
1361
- "updated_at": {
1362
- "name": "updated_at",
1363
- "type": "text",
1364
- "primaryKey": false,
1365
- "notNull": true,
1366
- "autoincrement": false
1367
- }
1368
- },
1369
- "indexes": {
1370
- "idx_social_tokens_tenant": {
1371
- "name": "idx_social_tokens_tenant",
1372
- "columns": [
1373
- "tenant_id"
1374
- ],
1375
- "isUnique": false
1376
- }
1377
- },
1378
- "foreignKeys": {},
1379
- "compositePrimaryKeys": {
1380
- "social_tokens_tenant_id_network_pk": {
1381
- "columns": [
1382
- "tenant_id",
1383
- "network"
1384
- ],
1385
- "name": "social_tokens_tenant_id_network_pk"
1386
- }
1387
- },
1388
- "uniqueConstraints": {},
1389
- "checkConstraints": {}
1390
- },
1391
- "webhook_deliveries": {
1392
- "name": "webhook_deliveries",
1393
- "columns": {
1394
- "delivery_id": {
1395
- "name": "delivery_id",
1396
- "type": "text",
1397
- "primaryKey": true,
1398
- "notNull": true,
1399
- "autoincrement": false
1400
- },
1401
- "event_id": {
1402
- "name": "event_id",
1403
- "type": "text",
1404
- "primaryKey": false,
1405
- "notNull": true,
1406
- "autoincrement": false
1407
- },
1408
- "install_id": {
1409
- "name": "install_id",
1410
- "type": "text",
1411
- "primaryKey": false,
1412
- "notNull": true,
1413
- "autoincrement": false
1414
- },
1415
- "tenant_id": {
1416
- "name": "tenant_id",
1417
- "type": "text",
1418
- "primaryKey": false,
1419
- "notNull": true,
1420
- "autoincrement": false
1421
- },
1422
- "topic": {
1423
- "name": "topic",
1424
- "type": "text",
1425
- "primaryKey": false,
1426
- "notNull": true,
1427
- "autoincrement": false
1428
- },
1429
- "state": {
1430
- "name": "state",
1431
- "type": "text",
1432
- "primaryKey": false,
1433
- "notNull": true,
1434
- "autoincrement": false,
1435
- "default": "'pending'"
1436
- },
1437
- "attempts": {
1438
- "name": "attempts",
1439
- "type": "integer",
1440
- "primaryKey": false,
1441
- "notNull": true,
1442
- "autoincrement": false,
1443
- "default": 0
1444
- },
1445
- "last_status": {
1446
- "name": "last_status",
1447
- "type": "integer",
1448
- "primaryKey": false,
1449
- "notNull": false,
1450
- "autoincrement": false
1451
- },
1452
- "last_error_class": {
1453
- "name": "last_error_class",
1454
- "type": "text",
1455
- "primaryKey": false,
1456
- "notNull": false,
1457
- "autoincrement": false
1458
- },
1459
- "last_trace_id": {
1460
- "name": "last_trace_id",
1461
- "type": "text",
1462
- "primaryKey": false,
1463
- "notNull": false,
1464
- "autoincrement": false
1465
- },
1466
- "next_attempt_at": {
1467
- "name": "next_attempt_at",
1468
- "type": "text",
1469
- "primaryKey": false,
1470
- "notNull": false,
1471
- "autoincrement": false
1472
- },
1473
- "created_at": {
1474
- "name": "created_at",
1475
- "type": "text",
1476
- "primaryKey": false,
1477
- "notNull": true,
1478
- "autoincrement": false
1479
- },
1480
- "updated_at": {
1481
- "name": "updated_at",
1482
- "type": "text",
1483
- "primaryKey": false,
1484
- "notNull": true,
1485
- "autoincrement": false
1486
- }
1487
- },
1488
- "indexes": {
1489
- "idx_webhook_deliveries_install": {
1490
- "name": "idx_webhook_deliveries_install",
1491
- "columns": [
1492
- "install_id"
1493
- ],
1494
- "isUnique": false
1495
- },
1496
- "idx_webhook_deliveries_due": {
1497
- "name": "idx_webhook_deliveries_due",
1498
- "columns": [
1499
- "state",
1500
- "next_attempt_at"
1501
- ],
1502
- "isUnique": false
1503
- }
1504
- },
1505
- "foreignKeys": {},
1506
- "compositePrimaryKeys": {},
1507
- "uniqueConstraints": {},
1508
- "checkConstraints": {}
1509
- },
1510
- "webhook_delivery_attempts": {
1511
- "name": "webhook_delivery_attempts",
1512
- "columns": {
1513
- "id": {
1514
- "name": "id",
1515
- "type": "text",
1516
- "primaryKey": true,
1517
- "notNull": true,
1518
- "autoincrement": false
1519
- },
1520
- "delivery_id": {
1521
- "name": "delivery_id",
1522
- "type": "text",
1523
- "primaryKey": false,
1524
- "notNull": true,
1525
- "autoincrement": false
1526
- },
1527
- "attempt_no": {
1528
- "name": "attempt_no",
1529
- "type": "integer",
1530
- "primaryKey": false,
1531
- "notNull": true,
1532
- "autoincrement": false
1533
- },
1534
- "started_at": {
1535
- "name": "started_at",
1536
- "type": "text",
1537
- "primaryKey": false,
1538
- "notNull": true,
1539
- "autoincrement": false
1540
- },
1541
- "duration_ms": {
1542
- "name": "duration_ms",
1543
- "type": "integer",
1544
- "primaryKey": false,
1545
- "notNull": false,
1546
- "autoincrement": false
1547
- },
1548
- "http_status": {
1549
- "name": "http_status",
1550
- "type": "integer",
1551
- "primaryKey": false,
1552
- "notNull": false,
1553
- "autoincrement": false
1554
- },
1555
- "error_class": {
1556
- "name": "error_class",
1557
- "type": "text",
1558
- "primaryKey": false,
1559
- "notNull": false,
1560
- "autoincrement": false
1561
- },
1562
- "trace_id": {
1563
- "name": "trace_id",
1564
- "type": "text",
1565
- "primaryKey": false,
1566
- "notNull": false,
1567
- "autoincrement": false
1568
- }
1569
- },
1570
- "indexes": {
1571
- "idx_webhook_delivery_attempts_delivery": {
1572
- "name": "idx_webhook_delivery_attempts_delivery",
1573
- "columns": [
1574
- "delivery_id"
1575
- ],
1576
- "isUnique": false
1577
- }
1578
- },
1579
- "foreignKeys": {},
1580
- "compositePrimaryKeys": {},
1581
- "uniqueConstraints": {},
1582
- "checkConstraints": {}
1583
- },
1584
- "webhook_events": {
1585
- "name": "webhook_events",
1586
- "columns": {
1587
- "id": {
1588
- "name": "id",
1589
- "type": "text",
1590
- "primaryKey": true,
1591
- "notNull": true,
1592
- "autoincrement": false
1593
- },
1594
- "tenant_id": {
1595
- "name": "tenant_id",
1596
- "type": "text",
1597
- "primaryKey": false,
1598
- "notNull": true,
1599
- "autoincrement": false
1600
- },
1601
- "topic": {
1602
- "name": "topic",
1603
- "type": "text",
1604
- "primaryKey": false,
1605
- "notNull": true,
1606
- "autoincrement": false
1607
- },
1608
- "dataschema_version": {
1609
- "name": "dataschema_version",
1610
- "type": "text",
1611
- "primaryKey": false,
1612
- "notNull": true,
1613
- "autoincrement": false
1614
- },
1615
- "payload": {
1616
- "name": "payload",
1617
- "type": "text",
1618
- "primaryKey": false,
1619
- "notNull": true,
1620
- "autoincrement": false
1621
- },
1622
- "created_at": {
1623
- "name": "created_at",
1624
- "type": "text",
1625
- "primaryKey": false,
1626
- "notNull": true,
1627
- "autoincrement": false
1628
- }
1629
- },
1630
- "indexes": {},
1631
- "foreignKeys": {},
1632
- "compositePrimaryKeys": {},
1633
- "uniqueConstraints": {},
1634
- "checkConstraints": {}
1635
- },
1636
- "webhook_install_health": {
1637
- "name": "webhook_install_health",
1638
- "columns": {
1639
- "install_id": {
1640
- "name": "install_id",
1641
- "type": "text",
1642
- "primaryKey": true,
1643
- "notNull": true,
1644
- "autoincrement": false
1645
- },
1646
- "last_success_at": {
1647
- "name": "last_success_at",
1648
- "type": "text",
1649
- "primaryKey": false,
1650
- "notNull": false,
1651
- "autoincrement": false
1652
- },
1653
- "failure_streak": {
1654
- "name": "failure_streak",
1655
- "type": "integer",
1656
- "primaryKey": false,
1657
- "notNull": true,
1658
- "autoincrement": false,
1659
- "default": 0
1660
- },
1661
- "dlq_count": {
1662
- "name": "dlq_count",
1663
- "type": "integer",
1664
- "primaryKey": false,
1665
- "notNull": true,
1666
- "autoincrement": false,
1667
- "default": 0
1668
- },
1669
- "last_status": {
1670
- "name": "last_status",
1671
- "type": "integer",
1672
- "primaryKey": false,
1673
- "notNull": false,
1674
- "autoincrement": false
1675
- },
1676
- "last_error_class": {
1677
- "name": "last_error_class",
1678
- "type": "text",
1679
- "primaryKey": false,
1680
- "notNull": false,
1681
- "autoincrement": false
1682
- },
1683
- "recent_trace_ids": {
1684
- "name": "recent_trace_ids",
1685
- "type": "text",
1686
- "primaryKey": false,
1687
- "notNull": true,
1688
- "autoincrement": false,
1689
- "default": "'[]'"
1690
- },
1691
- "updated_at": {
1692
- "name": "updated_at",
1693
- "type": "text",
1694
- "primaryKey": false,
1695
- "notNull": true,
1696
- "autoincrement": false
1697
- }
1698
- },
1699
- "indexes": {},
1700
- "foreignKeys": {},
1701
- "compositePrimaryKeys": {},
1702
- "uniqueConstraints": {},
1703
- "checkConstraints": {}
1704
- }
1705
- },
1706
- "views": {},
1707
- "enums": {},
1708
- "_meta": {
1709
- "schemas": {},
1710
- "tables": {},
1711
- "columns": {}
1712
- },
1713
- "internal": {
1714
- "indexes": {}
1715
- }
1716
- }