@hogsend/engine 0.67.0 → 0.68.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 (738) hide show
  1. package/README.md +3 -2
  2. package/dist/account-links/__fixtures__/fake-fetch.d.ts +38 -0
  3. package/dist/account-links/__fixtures__/fake-fetch.d.ts.map +1 -0
  4. package/dist/account-links/battlenet.d.ts +36 -0
  5. package/dist/account-links/battlenet.d.ts.map +1 -0
  6. package/dist/account-links/epic.d.ts +36 -0
  7. package/dist/account-links/epic.d.ts.map +1 -0
  8. package/dist/account-links/index.d.ts +7 -0
  9. package/dist/account-links/index.d.ts.map +1 -0
  10. package/dist/account-links/riot.d.ts +35 -0
  11. package/dist/account-links/riot.d.ts.map +1 -0
  12. package/dist/account-links/steam.d.ts +35 -0
  13. package/dist/account-links/steam.d.ts.map +1 -0
  14. package/dist/account-links/twitch.d.ts +38 -0
  15. package/dist/account-links/twitch.d.ts.map +1 -0
  16. package/dist/account-links/xbox.d.ts +39 -0
  17. package/dist/account-links/xbox.d.ts.map +1 -0
  18. package/dist/app.d.ts +50 -0
  19. package/dist/app.d.ts.map +1 -0
  20. package/dist/buckets/bucket-access.d.ts +60 -0
  21. package/dist/buckets/bucket-access.d.ts.map +1 -0
  22. package/dist/buckets/bucket-reactions.d.ts +100 -0
  23. package/dist/buckets/bucket-reactions.d.ts.map +1 -0
  24. package/dist/buckets/check-membership.d.ts +105 -0
  25. package/dist/buckets/check-membership.d.ts.map +1 -0
  26. package/dist/buckets/define-bucket.d.ts +53 -0
  27. package/dist/buckets/define-bucket.d.ts.map +1 -0
  28. package/dist/buckets/membership-epoch.d.ts +74 -0
  29. package/dist/buckets/membership-epoch.d.ts.map +1 -0
  30. package/dist/buckets/registry-singleton.d.ts +6 -0
  31. package/dist/buckets/registry-singleton.d.ts.map +1 -0
  32. package/dist/buckets/registry.d.ts +59 -0
  33. package/dist/buckets/registry.d.ts.map +1 -0
  34. package/dist/campaigns/cohort-sql.d.ts +54 -0
  35. package/dist/campaigns/cohort-sql.d.ts.map +1 -0
  36. package/dist/campaigns/define-campaign.d.ts +105 -0
  37. package/dist/campaigns/define-campaign.d.ts.map +1 -0
  38. package/dist/campaigns/reconcile.d.ts +13 -0
  39. package/dist/campaigns/reconcile.d.ts.map +1 -0
  40. package/dist/campaigns/steps.d.ts +29 -0
  41. package/dist/campaigns/steps.d.ts.map +1 -0
  42. package/dist/cold-connect/index.d.ts +98 -0
  43. package/dist/cold-connect/index.d.ts.map +1 -0
  44. package/dist/cold-connect/page.d.ts +69 -0
  45. package/dist/cold-connect/page.d.ts.map +1 -0
  46. package/dist/cold-connect/throttle.d.ts +39 -0
  47. package/dist/cold-connect/throttle.d.ts.map +1 -0
  48. package/dist/cold-connect/token.d.ts +57 -0
  49. package/dist/cold-connect/token.d.ts.map +1 -0
  50. package/dist/connectors/action-registry-singleton.d.ts +21 -0
  51. package/dist/connectors/action-registry-singleton.d.ts.map +1 -0
  52. package/dist/connectors/define-action.d.ts +117 -0
  53. package/dist/connectors/define-action.d.ts.map +1 -0
  54. package/dist/connectors/define-connector.d.ts +172 -0
  55. package/dist/connectors/define-connector.d.ts.map +1 -0
  56. package/dist/connectors/presets/index.d.ts +17 -0
  57. package/dist/connectors/presets/index.d.ts.map +1 -0
  58. package/dist/connectors/registry-singleton.d.ts +34 -0
  59. package/dist/connectors/registry-singleton.d.ts.map +1 -0
  60. package/dist/connectors/runtime.d.ts +68 -0
  61. package/dist/connectors/runtime.d.ts.map +1 -0
  62. package/dist/container.d.ts +678 -0
  63. package/dist/container.d.ts.map +1 -0
  64. package/dist/destinations/define-destination.d.ts +96 -0
  65. package/dist/destinations/define-destination.d.ts.map +1 -0
  66. package/dist/destinations/presets/index.d.ts +42 -0
  67. package/dist/destinations/presets/index.d.ts.map +1 -0
  68. package/dist/destinations/presets/posthog.d.ts +12 -0
  69. package/dist/destinations/presets/posthog.d.ts.map +1 -0
  70. package/dist/destinations/presets/segment.d.ts +15 -0
  71. package/dist/destinations/presets/segment.d.ts.map +1 -0
  72. package/dist/destinations/presets/slack.d.ts +10 -0
  73. package/dist/destinations/presets/slack.d.ts.map +1 -0
  74. package/dist/destinations/presets/webhook.d.ts +14 -0
  75. package/dist/destinations/presets/webhook.d.ts.map +1 -0
  76. package/dist/destinations/registry-singleton.d.ts +44 -0
  77. package/dist/destinations/registry-singleton.d.ts.map +1 -0
  78. package/dist/env.d.ts +119 -0
  79. package/dist/env.d.ts.map +1 -0
  80. package/dist/flags/reconcile.d.ts +36 -0
  81. package/dist/flags/reconcile.d.ts.map +1 -0
  82. package/dist/index.d.ts +210 -0
  83. package/dist/index.d.ts.map +1 -0
  84. package/dist/journeys/authoring.d.ts +15 -0
  85. package/dist/journeys/authoring.d.ts.map +1 -0
  86. package/dist/journeys/client-defaults-singleton.d.ts +16 -0
  87. package/dist/journeys/client-defaults-singleton.d.ts.map +1 -0
  88. package/dist/journeys/constants.d.ts +32 -0
  89. package/dist/journeys/constants.d.ts.map +1 -0
  90. package/dist/journeys/define-journey.d.ts +33 -0
  91. package/dist/journeys/define-journey.d.ts.map +1 -0
  92. package/dist/journeys/durable-law-harness.d.ts +74 -0
  93. package/dist/journeys/durable-law-harness.d.ts.map +1 -0
  94. package/dist/journeys/errors.d.ts +13 -0
  95. package/dist/journeys/errors.d.ts.map +1 -0
  96. package/dist/journeys/execute-journey-run.d.ts +160 -0
  97. package/dist/journeys/execute-journey-run.d.ts.map +1 -0
  98. package/dist/journeys/graph/build-graph.d.ts +24 -0
  99. package/dist/journeys/graph/build-graph.d.ts.map +1 -0
  100. package/dist/journeys/group-scope.d.ts +56 -0
  101. package/dist/journeys/group-scope.d.ts.map +1 -0
  102. package/dist/journeys/journey-boundary.d.ts +264 -0
  103. package/dist/journeys/journey-boundary.d.ts.map +1 -0
  104. package/dist/journeys/journey-context.d.ts +60 -0
  105. package/dist/journeys/journey-context.d.ts.map +1 -0
  106. package/dist/journeys/journey-log.d.ts +42 -0
  107. package/dist/journeys/journey-log.d.ts.map +1 -0
  108. package/dist/journeys/journey-source-locations-singleton.d.ts +6 -0
  109. package/dist/journeys/journey-source-locations-singleton.d.ts.map +1 -0
  110. package/dist/journeys/journey-sources-singleton.d.ts +5 -0
  111. package/dist/journeys/journey-sources-singleton.d.ts.map +1 -0
  112. package/dist/journeys/journey-task-factory.d.ts +11 -0
  113. package/dist/journeys/journey-task-factory.d.ts.map +1 -0
  114. package/dist/journeys/journey-task-runtime.d.ts +2 -0
  115. package/dist/journeys/journey-task-runtime.d.ts.map +1 -0
  116. package/dist/journeys/journey-version.d.ts +71 -0
  117. package/dist/journeys/journey-version.d.ts.map +1 -0
  118. package/dist/journeys/record-once.d.ts +56 -0
  119. package/dist/journeys/record-once.d.ts.map +1 -0
  120. package/dist/journeys/registry-singleton.d.ts +6 -0
  121. package/dist/journeys/registry-singleton.d.ts.map +1 -0
  122. package/dist/journeys/registry.d.ts +59 -0
  123. package/dist/journeys/registry.d.ts.map +1 -0
  124. package/dist/journeys/with-durable-gate.d.ts +97 -0
  125. package/dist/journeys/with-durable-gate.d.ts.map +1 -0
  126. package/dist/lib/account-link-emit.d.ts +69 -0
  127. package/dist/lib/account-link-emit.d.ts.map +1 -0
  128. package/dist/lib/account-link-events.d.ts +128 -0
  129. package/dist/lib/account-link-events.d.ts.map +1 -0
  130. package/dist/lib/account-link-hooks.d.ts +32 -0
  131. package/dist/lib/account-link-hooks.d.ts.map +1 -0
  132. package/dist/lib/account-link-ingest.d.ts +78 -0
  133. package/dist/lib/account-link-ingest.d.ts.map +1 -0
  134. package/dist/lib/account-link-nonce.d.ts +29 -0
  135. package/dist/lib/account-link-nonce.d.ts.map +1 -0
  136. package/dist/lib/account-link-origins.d.ts +37 -0
  137. package/dist/lib/account-link-origins.d.ts.map +1 -0
  138. package/dist/lib/account-link-pkce.d.ts +48 -0
  139. package/dist/lib/account-link-pkce.d.ts.map +1 -0
  140. package/dist/lib/account-link-provider-registry.d.ts +35 -0
  141. package/dist/lib/account-link-provider-registry.d.ts.map +1 -0
  142. package/dist/lib/account-link-throttle.d.ts +76 -0
  143. package/dist/lib/account-link-throttle.d.ts.map +1 -0
  144. package/dist/lib/account-link-url.d.ts +41 -0
  145. package/dist/lib/account-link-url.d.ts.map +1 -0
  146. package/dist/lib/account-links-from-env.d.ts +62 -0
  147. package/dist/lib/account-links-from-env.d.ts.map +1 -0
  148. package/dist/lib/account-links.d.ts +353 -0
  149. package/dist/lib/account-links.d.ts.map +1 -0
  150. package/dist/lib/agent/config.d.ts +14 -0
  151. package/dist/lib/agent/config.d.ts.map +1 -0
  152. package/dist/lib/agent/proposals.d.ts +52 -0
  153. package/dist/lib/agent/proposals.d.ts.map +1 -0
  154. package/dist/lib/agent/provider.d.ts +9 -0
  155. package/dist/lib/agent/provider.d.ts.map +1 -0
  156. package/dist/lib/agent/risk.d.ts +24 -0
  157. package/dist/lib/agent/risk.d.ts.map +1 -0
  158. package/dist/lib/agent/system-prompt.d.ts +8 -0
  159. package/dist/lib/agent/system-prompt.d.ts.map +1 -0
  160. package/dist/lib/agent/tools.d.ts +258 -0
  161. package/dist/lib/agent/tools.d.ts.map +1 -0
  162. package/dist/lib/alerting.d.ts +7 -0
  163. package/dist/lib/alerting.d.ts.map +1 -0
  164. package/dist/lib/analytics-adapter.d.ts +24 -0
  165. package/dist/lib/analytics-adapter.d.ts.map +1 -0
  166. package/dist/lib/analytics-identity.d.ts +60 -0
  167. package/dist/lib/analytics-identity.d.ts.map +1 -0
  168. package/dist/lib/analytics-provider-registry.d.ts +20 -0
  169. package/dist/lib/analytics-provider-registry.d.ts.map +1 -0
  170. package/dist/lib/analytics-providers-from-env.d.ts +41 -0
  171. package/dist/lib/analytics-providers-from-env.d.ts.map +1 -0
  172. package/dist/lib/analytics-singleton.d.ts +10 -0
  173. package/dist/lib/analytics-singleton.d.ts.map +1 -0
  174. package/dist/lib/api-key-hash.d.ts +9 -0
  175. package/dist/lib/api-key-hash.d.ts.map +1 -0
  176. package/dist/lib/app-secret.d.ts +29 -0
  177. package/dist/lib/app-secret.d.ts.map +1 -0
  178. package/dist/lib/attachments.d.ts +53 -0
  179. package/dist/lib/attachments.d.ts.map +1 -0
  180. package/dist/lib/attribution-backfill.d.ts +48 -0
  181. package/dist/lib/attribution-backfill.d.ts.map +1 -0
  182. package/dist/lib/attribution.d.ts +44 -0
  183. package/dist/lib/attribution.d.ts.map +1 -0
  184. package/dist/lib/auth.d.ts +136 -0
  185. package/dist/lib/auth.d.ts.map +1 -0
  186. package/dist/lib/backfill.d.ts +41 -0
  187. package/dist/lib/backfill.d.ts.map +1 -0
  188. package/dist/lib/banner.d.ts +52 -0
  189. package/dist/lib/banner.d.ts.map +1 -0
  190. package/dist/lib/blueprint-lock.d.ts +19 -0
  191. package/dist/lib/blueprint-lock.d.ts.map +1 -0
  192. package/dist/lib/blueprints.d.ts +573 -0
  193. package/dist/lib/blueprints.d.ts.map +1 -0
  194. package/dist/lib/boot-api-key.d.ts +38 -0
  195. package/dist/lib/boot-api-key.d.ts.map +1 -0
  196. package/dist/lib/boot.d.ts +23 -0
  197. package/dist/lib/boot.d.ts.map +1 -0
  198. package/dist/lib/bootstrap-admin.d.ts +33 -0
  199. package/dist/lib/bootstrap-admin.d.ts.map +1 -0
  200. package/dist/lib/bot-prefetch.d.ts +21 -0
  201. package/dist/lib/bot-prefetch.d.ts.map +1 -0
  202. package/dist/lib/bucket-emit.d.ts +75 -0
  203. package/dist/lib/bucket-emit.d.ts.map +1 -0
  204. package/dist/lib/bucket-posthog-sync.d.ts +29 -0
  205. package/dist/lib/bucket-posthog-sync.d.ts.map +1 -0
  206. package/dist/lib/campaign-send-key.d.ts +31 -0
  207. package/dist/lib/campaign-send-key.d.ts.map +1 -0
  208. package/dist/lib/connector-actions.d.ts +83 -0
  209. package/dist/lib/connector-actions.d.ts.map +1 -0
  210. package/dist/lib/connector-heartbeat.d.ts +35 -0
  211. package/dist/lib/connector-heartbeat.d.ts.map +1 -0
  212. package/dist/lib/connector-link-codes.d.ts +105 -0
  213. package/dist/lib/connector-link-codes.d.ts.map +1 -0
  214. package/dist/lib/connector-state.d.ts +97 -0
  215. package/dist/lib/connector-state.d.ts.map +1 -0
  216. package/dist/lib/contacts.d.ts +622 -0
  217. package/dist/lib/contacts.d.ts.map +1 -0
  218. package/dist/lib/conversion-dispatch.d.ts +98 -0
  219. package/dist/lib/conversion-dispatch.d.ts.map +1 -0
  220. package/dist/lib/conversions.d.ts +75 -0
  221. package/dist/lib/conversions.d.ts.map +1 -0
  222. package/dist/lib/create-admin.d.ts +54 -0
  223. package/dist/lib/create-admin.d.ts.map +1 -0
  224. package/dist/lib/crm-deals.d.ts +66 -0
  225. package/dist/lib/crm-deals.d.ts.map +1 -0
  226. package/dist/lib/crm-ingest.d.ts +38 -0
  227. package/dist/lib/crm-ingest.d.ts.map +1 -0
  228. package/dist/lib/crm-provider-registry.d.ts +20 -0
  229. package/dist/lib/crm-provider-registry.d.ts.map +1 -0
  230. package/dist/lib/crm-registry-singleton.d.ts +18 -0
  231. package/dist/lib/crm-registry-singleton.d.ts.map +1 -0
  232. package/dist/lib/db.d.ts +3 -0
  233. package/dist/lib/db.d.ts.map +1 -0
  234. package/dist/lib/deal-money-events.d.ts +35 -0
  235. package/dist/lib/deal-money-events.d.ts.map +1 -0
  236. package/dist/lib/discord-gateway-heartbeat.d.ts +47 -0
  237. package/dist/lib/discord-gateway-heartbeat.d.ts.map +1 -0
  238. package/dist/lib/domain-status.d.ts +87 -0
  239. package/dist/lib/domain-status.d.ts.map +1 -0
  240. package/dist/lib/email-provider-registry.d.ts +30 -0
  241. package/dist/lib/email-provider-registry.d.ts.map +1 -0
  242. package/dist/lib/email-providers-from-env.d.ts +12 -0
  243. package/dist/lib/email-providers-from-env.d.ts.map +1 -0
  244. package/dist/lib/email-service-types.d.ts +189 -0
  245. package/dist/lib/email-service-types.d.ts.map +1 -0
  246. package/dist/lib/email-stats.d.ts +12 -0
  247. package/dist/lib/email-stats.d.ts.map +1 -0
  248. package/dist/lib/email.d.ts +73 -0
  249. package/dist/lib/email.d.ts.map +1 -0
  250. package/dist/lib/enrichment-ledger.d.ts +101 -0
  251. package/dist/lib/enrichment-ledger.d.ts.map +1 -0
  252. package/dist/lib/enrichment-provider-registry.d.ts +20 -0
  253. package/dist/lib/enrichment-provider-registry.d.ts.map +1 -0
  254. package/dist/lib/enrichment-providers-from-env.d.ts +13 -0
  255. package/dist/lib/enrichment-providers-from-env.d.ts.map +1 -0
  256. package/dist/lib/enrichment-registry-singleton.d.ts +9 -0
  257. package/dist/lib/enrichment-registry-singleton.d.ts.map +1 -0
  258. package/dist/lib/enrollment-guards.d.ts +28 -0
  259. package/dist/lib/enrollment-guards.d.ts.map +1 -0
  260. package/dist/lib/enrollment-policy.d.ts +25 -0
  261. package/dist/lib/enrollment-policy.d.ts.map +1 -0
  262. package/dist/lib/event-names.d.ts +27 -0
  263. package/dist/lib/event-names.d.ts.map +1 -0
  264. package/dist/lib/feed.d.ts +64 -0
  265. package/dist/lib/feed.d.ts.map +1 -0
  266. package/dist/lib/flags-registry.d.ts +23 -0
  267. package/dist/lib/flags-registry.d.ts.map +1 -0
  268. package/dist/lib/flags.d.ts +143 -0
  269. package/dist/lib/flags.d.ts.map +1 -0
  270. package/dist/lib/frequency-cap.d.ts +38 -0
  271. package/dist/lib/frequency-cap.d.ts.map +1 -0
  272. package/dist/lib/from-address.d.ts +15 -0
  273. package/dist/lib/from-address.d.ts.map +1 -0
  274. package/dist/lib/funnel-progress.d.ts +37 -0
  275. package/dist/lib/funnel-progress.d.ts.map +1 -0
  276. package/dist/lib/funnel-registry.d.ts +44 -0
  277. package/dist/lib/funnel-registry.d.ts.map +1 -0
  278. package/dist/lib/funnel-transitions.d.ts +63 -0
  279. package/dist/lib/funnel-transitions.d.ts.map +1 -0
  280. package/dist/lib/fx.d.ts +118 -0
  281. package/dist/lib/fx.d.ts.map +1 -0
  282. package/dist/lib/global-control-readout.d.ts +72 -0
  283. package/dist/lib/global-control-readout.d.ts.map +1 -0
  284. package/dist/lib/groups.d.ts +138 -0
  285. package/dist/lib/groups.d.ts.map +1 -0
  286. package/dist/lib/hatchet-duration.d.ts +14 -0
  287. package/dist/lib/hatchet-duration.d.ts.map +1 -0
  288. package/dist/lib/hatchet.d.ts +3 -0
  289. package/dist/lib/hatchet.d.ts.map +1 -0
  290. package/dist/lib/headers.d.ts +8 -0
  291. package/dist/lib/headers.d.ts.map +1 -0
  292. package/dist/lib/holdout.d.ts +36 -0
  293. package/dist/lib/holdout.d.ts.map +1 -0
  294. package/dist/lib/html.d.ts +5 -0
  295. package/dist/lib/html.d.ts.map +1 -0
  296. package/dist/lib/identity-service.d.ts +60 -0
  297. package/dist/lib/identity-service.d.ts.map +1 -0
  298. package/dist/lib/identity-token.d.ts +81 -0
  299. package/dist/lib/identity-token.d.ts.map +1 -0
  300. package/dist/lib/ingestion.d.ts +218 -0
  301. package/dist/lib/ingestion.d.ts.map +1 -0
  302. package/dist/lib/journey-lift.d.ts +56 -0
  303. package/dist/lib/journey-lift.d.ts.map +1 -0
  304. package/dist/lib/journey-suppress.d.ts +59 -0
  305. package/dist/lib/journey-suppress.d.ts.map +1 -0
  306. package/dist/lib/leader-lease.d.ts +36 -0
  307. package/dist/lib/leader-lease.d.ts.map +1 -0
  308. package/dist/lib/lift-stats.d.ts +46 -0
  309. package/dist/lib/lift-stats.d.ts.map +1 -0
  310. package/dist/lib/links.d.ts +186 -0
  311. package/dist/lib/links.d.ts.map +1 -0
  312. package/dist/lib/load-optional-plugin.d.ts +47 -0
  313. package/dist/lib/load-optional-plugin.d.ts.map +1 -0
  314. package/dist/lib/logger.d.ts +4 -0
  315. package/dist/lib/logger.d.ts.map +1 -0
  316. package/dist/lib/mailer.d.ts +43 -0
  317. package/dist/lib/mailer.d.ts.map +1 -0
  318. package/dist/lib/metrics-sql.d.ts +11 -0
  319. package/dist/lib/metrics-sql.d.ts.map +1 -0
  320. package/dist/lib/notifications.d.ts +17 -0
  321. package/dist/lib/notifications.d.ts.map +1 -0
  322. package/dist/lib/oauth-token-manager.d.ts +74 -0
  323. package/dist/lib/oauth-token-manager.d.ts.map +1 -0
  324. package/dist/lib/operator-settings.d.ts +33 -0
  325. package/dist/lib/operator-settings.d.ts.map +1 -0
  326. package/dist/lib/operator.d.ts +20 -0
  327. package/dist/lib/operator.d.ts.map +1 -0
  328. package/dist/lib/outbound-endpoint-cache.d.ts +25 -0
  329. package/dist/lib/outbound-endpoint-cache.d.ts.map +1 -0
  330. package/dist/lib/outbound.d.ts +687 -0
  331. package/dist/lib/outbound.d.ts.map +1 -0
  332. package/dist/lib/phone.d.ts +11 -0
  333. package/dist/lib/phone.d.ts.map +1 -0
  334. package/dist/lib/posthog-scopes.d.ts +30 -0
  335. package/dist/lib/posthog-scopes.d.ts.map +1 -0
  336. package/dist/lib/posthog.d.ts +16 -0
  337. package/dist/lib/posthog.d.ts.map +1 -0
  338. package/dist/lib/preferences.d.ts +72 -0
  339. package/dist/lib/preferences.d.ts.map +1 -0
  340. package/dist/lib/provider-credentials.d.ts +149 -0
  341. package/dist/lib/provider-credentials.d.ts.map +1 -0
  342. package/dist/lib/provision-posthog-loop.d.ts +100 -0
  343. package/dist/lib/provision-posthog-loop.d.ts.map +1 -0
  344. package/dist/lib/recipient-preferences.d.ts +29 -0
  345. package/dist/lib/recipient-preferences.d.ts.map +1 -0
  346. package/dist/lib/redis.d.ts +33 -0
  347. package/dist/lib/redis.d.ts.map +1 -0
  348. package/dist/lib/referral-intent.d.ts +99 -0
  349. package/dist/lib/referral-intent.d.ts.map +1 -0
  350. package/dist/lib/referral-link.d.ts +59 -0
  351. package/dist/lib/referral-link.d.ts.map +1 -0
  352. package/dist/lib/referral-registry.d.ts +37 -0
  353. package/dist/lib/referral-registry.d.ts.map +1 -0
  354. package/dist/lib/referral-report.d.ts +178 -0
  355. package/dist/lib/referral-report.d.ts.map +1 -0
  356. package/dist/lib/referral-runtime.d.ts +43 -0
  357. package/dist/lib/referral-runtime.d.ts.map +1 -0
  358. package/dist/lib/referrals.d.ts +184 -0
  359. package/dist/lib/referrals.d.ts.map +1 -0
  360. package/dist/lib/refine-chain.d.ts +236 -0
  361. package/dist/lib/refine-chain.d.ts.map +1 -0
  362. package/dist/lib/refine-traits.d.ts +78 -0
  363. package/dist/lib/refine-traits.d.ts.map +1 -0
  364. package/dist/lib/refine.d.ts +35 -0
  365. package/dist/lib/refine.d.ts.map +1 -0
  366. package/dist/lib/reset-email.d.ts +38 -0
  367. package/dist/lib/reset-email.d.ts.map +1 -0
  368. package/dist/lib/revenue.d.ts +61 -0
  369. package/dist/lib/revenue.d.ts.map +1 -0
  370. package/dist/lib/schemas.d.ts +9 -0
  371. package/dist/lib/schemas.d.ts.map +1 -0
  372. package/dist/lib/seed-posthog-destination.d.ts +22 -0
  373. package/dist/lib/seed-posthog-destination.d.ts.map +1 -0
  374. package/dist/lib/semantic-click.d.ts +58 -0
  375. package/dist/lib/semantic-click.d.ts.map +1 -0
  376. package/dist/lib/sending-domain-guidance.d.ts +40 -0
  377. package/dist/lib/sending-domain-guidance.d.ts.map +1 -0
  378. package/dist/lib/singleton.d.ts +24 -0
  379. package/dist/lib/singleton.d.ts.map +1 -0
  380. package/dist/lib/sms-frequency-cap.d.ts +16 -0
  381. package/dist/lib/sms-frequency-cap.d.ts.map +1 -0
  382. package/dist/lib/sms-inbound.d.ts +37 -0
  383. package/dist/lib/sms-inbound.d.ts.map +1 -0
  384. package/dist/lib/sms-link-tracking.d.ts +53 -0
  385. package/dist/lib/sms-link-tracking.d.ts.map +1 -0
  386. package/dist/lib/sms-mailer.d.ts +12 -0
  387. package/dist/lib/sms-mailer.d.ts.map +1 -0
  388. package/dist/lib/sms-provider-registry.d.ts +20 -0
  389. package/dist/lib/sms-provider-registry.d.ts.map +1 -0
  390. package/dist/lib/sms-providers-from-env.d.ts +4 -0
  391. package/dist/lib/sms-providers-from-env.d.ts.map +1 -0
  392. package/dist/lib/sms-service-types.d.ts +131 -0
  393. package/dist/lib/sms-service-types.d.ts.map +1 -0
  394. package/dist/lib/sms-tracked.d.ts +36 -0
  395. package/dist/lib/sms-tracked.d.ts.map +1 -0
  396. package/dist/lib/sms.d.ts +58 -0
  397. package/dist/lib/sms.d.ts.map +1 -0
  398. package/dist/lib/snippet.d.ts +32 -0
  399. package/dist/lib/snippet.d.ts.map +1 -0
  400. package/dist/lib/stable-stringify.d.ts +12 -0
  401. package/dist/lib/stable-stringify.d.ts.map +1 -0
  402. package/dist/lib/studio.d.ts +21 -0
  403. package/dist/lib/studio.d.ts.map +1 -0
  404. package/dist/lib/survey.d.ts +35 -0
  405. package/dist/lib/survey.d.ts.map +1 -0
  406. package/dist/lib/test-mode.d.ts +77 -0
  407. package/dist/lib/test-mode.d.ts.map +1 -0
  408. package/dist/lib/timezone.d.ts +55 -0
  409. package/dist/lib/timezone.d.ts.map +1 -0
  410. package/dist/lib/tracked.d.ts +95 -0
  411. package/dist/lib/tracked.d.ts.map +1 -0
  412. package/dist/lib/tracking-event-names.d.ts +7 -0
  413. package/dist/lib/tracking-event-names.d.ts.map +1 -0
  414. package/dist/lib/tracking-events.d.ts +232 -0
  415. package/dist/lib/tracking-events.d.ts.map +1 -0
  416. package/dist/lib/tracking.d.ts +47 -0
  417. package/dist/lib/tracking.d.ts.map +1 -0
  418. package/dist/lib/unconfigured-email-provider.d.ts +20 -0
  419. package/dist/lib/unconfigured-email-provider.d.ts.map +1 -0
  420. package/dist/lib/unique-violation.d.ts +22 -0
  421. package/dist/lib/unique-violation.d.ts.map +1 -0
  422. package/dist/lib/user-token.d.ts +44 -0
  423. package/dist/lib/user-token.d.ts.map +1 -0
  424. package/dist/lib/variant.d.ts +44 -0
  425. package/dist/lib/variant.d.ts.map +1 -0
  426. package/dist/lib/webhook-signing.d.ts +120 -0
  427. package/dist/lib/webhook-signing.d.ts.map +1 -0
  428. package/dist/lib/worker-heartbeat.d.ts +18 -0
  429. package/dist/lib/worker-heartbeat.d.ts.map +1 -0
  430. package/dist/lists/channels.d.ts +43 -0
  431. package/dist/lists/channels.d.ts.map +1 -0
  432. package/dist/lists/define-list.d.ts +76 -0
  433. package/dist/lists/define-list.d.ts.map +1 -0
  434. package/dist/lists/registry-singleton.d.ts +8 -0
  435. package/dist/lists/registry-singleton.d.ts.map +1 -0
  436. package/dist/lists/registry.d.ts +66 -0
  437. package/dist/lists/registry.d.ts.map +1 -0
  438. package/dist/lists/subscription.d.ts +10 -0
  439. package/dist/lists/subscription.d.ts.map +1 -0
  440. package/dist/mcp/authoring-guide.d.ts +33 -0
  441. package/dist/mcp/authoring-guide.d.ts.map +1 -0
  442. package/dist/mcp/blueprint-tools.d.ts +266 -0
  443. package/dist/mcp/blueprint-tools.d.ts.map +1 -0
  444. package/dist/middleware/api-key.d.ts +45 -0
  445. package/dist/middleware/api-key.d.ts.map +1 -0
  446. package/dist/middleware/audit.d.ts +3 -0
  447. package/dist/middleware/audit.d.ts.map +1 -0
  448. package/dist/middleware/error-handler.d.ts +4 -0
  449. package/dist/middleware/error-handler.d.ts.map +1 -0
  450. package/dist/middleware/publishable-key.d.ts +27 -0
  451. package/dist/middleware/publishable-key.d.ts.map +1 -0
  452. package/dist/middleware/rate-limit.d.ts +105 -0
  453. package/dist/middleware/rate-limit.d.ts.map +1 -0
  454. package/dist/middleware/request-logger.d.ts +4 -0
  455. package/dist/middleware/request-logger.d.ts.map +1 -0
  456. package/dist/middleware/require-admin.d.ts +3 -0
  457. package/dist/middleware/require-admin.d.ts.map +1 -0
  458. package/dist/routes/_shared.d.ts +52 -0
  459. package/dist/routes/_shared.d.ts.map +1 -0
  460. package/dist/routes/accounts/callback.d.ts +18 -0
  461. package/dist/routes/accounts/callback.d.ts.map +1 -0
  462. package/dist/routes/accounts/emit.d.ts +96 -0
  463. package/dist/routes/accounts/emit.d.ts.map +1 -0
  464. package/dist/routes/accounts/import-links.d.ts +4 -0
  465. package/dist/routes/accounts/import-links.d.ts.map +1 -0
  466. package/dist/routes/accounts/index.d.ts +39 -0
  467. package/dist/routes/accounts/index.d.ts.map +1 -0
  468. package/dist/routes/accounts/lookup.d.ts +6 -0
  469. package/dist/routes/accounts/lookup.d.ts.map +1 -0
  470. package/dist/routes/accounts/me.d.ts +5 -0
  471. package/dist/routes/accounts/me.d.ts.map +1 -0
  472. package/dist/routes/accounts/mint.d.ts +5 -0
  473. package/dist/routes/accounts/mint.d.ts.map +1 -0
  474. package/dist/routes/accounts/pages.d.ts +23 -0
  475. package/dist/routes/accounts/pages.d.ts.map +1 -0
  476. package/dist/routes/accounts/resolve.d.ts +33 -0
  477. package/dist/routes/accounts/resolve.d.ts.map +1 -0
  478. package/dist/routes/accounts/serialize.d.ts +57 -0
  479. package/dist/routes/accounts/serialize.d.ts.map +1 -0
  480. package/dist/routes/accounts/shared.d.ts +68 -0
  481. package/dist/routes/accounts/shared.d.ts.map +1 -0
  482. package/dist/routes/accounts/start.d.ts +16 -0
  483. package/dist/routes/accounts/start.d.ts.map +1 -0
  484. package/dist/routes/accounts/unlink.d.ts +36 -0
  485. package/dist/routes/accounts/unlink.d.ts.map +1 -0
  486. package/dist/routes/admin/agent.d.ts +4 -0
  487. package/dist/routes/admin/agent.d.ts.map +1 -0
  488. package/dist/routes/admin/alerts.d.ts +190 -0
  489. package/dist/routes/admin/alerts.d.ts.map +1 -0
  490. package/dist/routes/admin/analytics.d.ts +137 -0
  491. package/dist/routes/admin/analytics.d.ts.map +1 -0
  492. package/dist/routes/admin/api-keys.d.ts +158 -0
  493. package/dist/routes/admin/api-keys.d.ts.map +1 -0
  494. package/dist/routes/admin/attribution.d.ts +93 -0
  495. package/dist/routes/admin/attribution.d.ts.map +1 -0
  496. package/dist/routes/admin/audit-logs.d.ts +40 -0
  497. package/dist/routes/admin/audit-logs.d.ts.map +1 -0
  498. package/dist/routes/admin/blueprints.d.ts +4 -0
  499. package/dist/routes/admin/blueprints.d.ts.map +1 -0
  500. package/dist/routes/admin/buckets.d.ts +215 -0
  501. package/dist/routes/admin/buckets.d.ts.map +1 -0
  502. package/dist/routes/admin/bulk.d.ts +203 -0
  503. package/dist/routes/admin/bulk.d.ts.map +1 -0
  504. package/dist/routes/admin/campaigns.d.ts +198 -0
  505. package/dist/routes/admin/campaigns.d.ts.map +1 -0
  506. package/dist/routes/admin/connectors.d.ts +116 -0
  507. package/dist/routes/admin/connectors.d.ts.map +1 -0
  508. package/dist/routes/admin/contacts.d.ts +246 -0
  509. package/dist/routes/admin/contacts.d.ts.map +1 -0
  510. package/dist/routes/admin/conversions.d.ts +103 -0
  511. package/dist/routes/admin/conversions.d.ts.map +1 -0
  512. package/dist/routes/admin/deals.d.ts +136 -0
  513. package/dist/routes/admin/deals.d.ts.map +1 -0
  514. package/dist/routes/admin/dlq.d.ts +100 -0
  515. package/dist/routes/admin/dlq.d.ts.map +1 -0
  516. package/dist/routes/admin/domain.d.ts +314 -0
  517. package/dist/routes/admin/domain.d.ts.map +1 -0
  518. package/dist/routes/admin/emails.d.ts +127 -0
  519. package/dist/routes/admin/emails.d.ts.map +1 -0
  520. package/dist/routes/admin/events.d.ts +140 -0
  521. package/dist/routes/admin/events.d.ts.map +1 -0
  522. package/dist/routes/admin/flags.d.ts +719 -0
  523. package/dist/routes/admin/flags.d.ts.map +1 -0
  524. package/dist/routes/admin/funnels.d.ts +71 -0
  525. package/dist/routes/admin/funnels.d.ts.map +1 -0
  526. package/dist/routes/admin/groups.d.ts +169 -0
  527. package/dist/routes/admin/groups.d.ts.map +1 -0
  528. package/dist/routes/admin/identity.d.ts +72 -0
  529. package/dist/routes/admin/identity.d.ts.map +1 -0
  530. package/dist/routes/admin/impact-schemas.d.ts +48 -0
  531. package/dist/routes/admin/impact-schemas.d.ts.map +1 -0
  532. package/dist/routes/admin/impact.d.ts +316 -0
  533. package/dist/routes/admin/impact.d.ts.map +1 -0
  534. package/dist/routes/admin/index.d.ts +4 -0
  535. package/dist/routes/admin/index.d.ts.map +1 -0
  536. package/dist/routes/admin/journey-impact.d.ts +320 -0
  537. package/dist/routes/admin/journey-impact.d.ts.map +1 -0
  538. package/dist/routes/admin/journey-logs.d.ts +57 -0
  539. package/dist/routes/admin/journey-logs.d.ts.map +1 -0
  540. package/dist/routes/admin/journeys.d.ts +736 -0
  541. package/dist/routes/admin/journeys.d.ts.map +1 -0
  542. package/dist/routes/admin/links.d.ts +382 -0
  543. package/dist/routes/admin/links.d.ts.map +1 -0
  544. package/dist/routes/admin/lists.d.ts +22 -0
  545. package/dist/routes/admin/lists.d.ts.map +1 -0
  546. package/dist/routes/admin/maintenance.d.ts +72 -0
  547. package/dist/routes/admin/maintenance.d.ts.map +1 -0
  548. package/dist/routes/admin/metrics.d.ts +212 -0
  549. package/dist/routes/admin/metrics.d.ts.map +1 -0
  550. package/dist/routes/admin/open-editor.d.ts +36 -0
  551. package/dist/routes/admin/open-editor.d.ts.map +1 -0
  552. package/dist/routes/admin/preferences.d.ts +109 -0
  553. package/dist/routes/admin/preferences.d.ts.map +1 -0
  554. package/dist/routes/admin/provider-credentials.d.ts +108 -0
  555. package/dist/routes/admin/provider-credentials.d.ts.map +1 -0
  556. package/dist/routes/admin/readiness.d.ts +24 -0
  557. package/dist/routes/admin/readiness.d.ts.map +1 -0
  558. package/dist/routes/admin/referrals.d.ts +230 -0
  559. package/dist/routes/admin/referrals.d.ts.map +1 -0
  560. package/dist/routes/admin/reporting.d.ts +149 -0
  561. package/dist/routes/admin/reporting.d.ts.map +1 -0
  562. package/dist/routes/admin/settings.d.ts +80 -0
  563. package/dist/routes/admin/settings.d.ts.map +1 -0
  564. package/dist/routes/admin/suppressions.d.ts +90 -0
  565. package/dist/routes/admin/suppressions.d.ts.map +1 -0
  566. package/dist/routes/admin/targeting.d.ts +58 -0
  567. package/dist/routes/admin/targeting.d.ts.map +1 -0
  568. package/dist/routes/admin/templates.d.ts +197 -0
  569. package/dist/routes/admin/templates.d.ts.map +1 -0
  570. package/dist/routes/admin/timeline.d.ts +51 -0
  571. package/dist/routes/admin/timeline.d.ts.map +1 -0
  572. package/dist/routes/admin/webhooks.d.ts +250 -0
  573. package/dist/routes/admin/webhooks.d.ts.map +1 -0
  574. package/dist/routes/campaigns/index.d.ts +239 -0
  575. package/dist/routes/campaigns/index.d.ts.map +1 -0
  576. package/dist/routes/connectors/index.d.ts +16 -0
  577. package/dist/routes/connectors/index.d.ts.map +1 -0
  578. package/dist/routes/contacts/index.d.ts +187 -0
  579. package/dist/routes/contacts/index.d.ts.map +1 -0
  580. package/dist/routes/email/index.d.ts +4 -0
  581. package/dist/routes/email/index.d.ts.map +1 -0
  582. package/dist/routes/email/preferences.d.ts +17 -0
  583. package/dist/routes/email/preferences.d.ts.map +1 -0
  584. package/dist/routes/email/unsubscribe.d.ts +17 -0
  585. package/dist/routes/email/unsubscribe.d.ts.map +1 -0
  586. package/dist/routes/emails/index.d.ts +90 -0
  587. package/dist/routes/emails/index.d.ts.map +1 -0
  588. package/dist/routes/events/index.d.ts +116 -0
  589. package/dist/routes/events/index.d.ts.map +1 -0
  590. package/dist/routes/feed/index.d.ts +248 -0
  591. package/dist/routes/feed/index.d.ts.map +1 -0
  592. package/dist/routes/feed/recipient.d.ts +65 -0
  593. package/dist/routes/feed/recipient.d.ts.map +1 -0
  594. package/dist/routes/flags/index.d.ts +94 -0
  595. package/dist/routes/flags/index.d.ts.map +1 -0
  596. package/dist/routes/groups/index.d.ts +192 -0
  597. package/dist/routes/groups/index.d.ts.map +1 -0
  598. package/dist/routes/health.d.ts +57 -0
  599. package/dist/routes/health.d.ts.map +1 -0
  600. package/dist/routes/index.d.ts +8 -0
  601. package/dist/routes/index.d.ts.map +1 -0
  602. package/dist/routes/lists/index.d.ts +266 -0
  603. package/dist/routes/lists/index.d.ts.map +1 -0
  604. package/dist/routes/referrals/index.d.ts +22 -0
  605. package/dist/routes/referrals/index.d.ts.map +1 -0
  606. package/dist/routes/referrals/me.d.ts +4 -0
  607. package/dist/routes/referrals/me.d.ts.map +1 -0
  608. package/dist/routes/referrals/report.d.ts +5 -0
  609. package/dist/routes/referrals/report.d.ts.map +1 -0
  610. package/dist/routes/referrals/shared.d.ts +16 -0
  611. package/dist/routes/referrals/shared.d.ts.map +1 -0
  612. package/dist/routes/referrals/touch.d.ts +5 -0
  613. package/dist/routes/referrals/touch.d.ts.map +1 -0
  614. package/dist/routes/snippet.d.ts +12 -0
  615. package/dist/routes/snippet.d.ts.map +1 -0
  616. package/dist/routes/tracking/answer.d.ts +56 -0
  617. package/dist/routes/tracking/answer.d.ts.map +1 -0
  618. package/dist/routes/tracking/arrive.d.ts +32 -0
  619. package/dist/routes/tracking/arrive.d.ts.map +1 -0
  620. package/dist/routes/tracking/click-pipeline.d.ts +213 -0
  621. package/dist/routes/tracking/click-pipeline.d.ts.map +1 -0
  622. package/dist/routes/tracking/click.d.ts +26 -0
  623. package/dist/routes/tracking/click.d.ts.map +1 -0
  624. package/dist/routes/tracking/identify.d.ts +32 -0
  625. package/dist/routes/tracking/identify.d.ts.map +1 -0
  626. package/dist/routes/tracking/index.d.ts +4 -0
  627. package/dist/routes/tracking/index.d.ts.map +1 -0
  628. package/dist/routes/tracking/open.d.ts +17 -0
  629. package/dist/routes/tracking/open.d.ts.map +1 -0
  630. package/dist/routes/tracking/short.d.ts +17 -0
  631. package/dist/routes/tracking/short.d.ts.map +1 -0
  632. package/dist/routes/tracking/vanity.d.ts +17 -0
  633. package/dist/routes/tracking/vanity.d.ts.map +1 -0
  634. package/dist/routes/webhooks/crm-provider.d.ts +24 -0
  635. package/dist/routes/webhooks/crm-provider.d.ts.map +1 -0
  636. package/dist/routes/webhooks/email-provider.d.ts +21 -0
  637. package/dist/routes/webhooks/email-provider.d.ts.map +1 -0
  638. package/dist/routes/webhooks/index.d.ts +8 -0
  639. package/dist/routes/webhooks/index.d.ts.map +1 -0
  640. package/dist/routes/webhooks/resend.d.ts +35 -0
  641. package/dist/routes/webhooks/resend.d.ts.map +1 -0
  642. package/dist/routes/webhooks/sms-provider.d.ts +23 -0
  643. package/dist/routes/webhooks/sms-provider.d.ts.map +1 -0
  644. package/dist/routes/webhooks/sources.d.ts +12 -0
  645. package/dist/routes/webhooks/sources.d.ts.map +1 -0
  646. package/dist/sources/define-contact-source.d.ts +114 -0
  647. package/dist/sources/define-contact-source.d.ts.map +1 -0
  648. package/dist/sources/registry.d.ts +31 -0
  649. package/dist/sources/registry.d.ts.map +1 -0
  650. package/dist/sources/webhook-source.d.ts +53 -0
  651. package/dist/sources/webhook-source.d.ts.map +1 -0
  652. package/dist/testing.d.ts +10 -0
  653. package/dist/testing.d.ts.map +1 -0
  654. package/dist/webhook-sources/define-webhook-source.d.ts +60 -0
  655. package/dist/webhook-sources/define-webhook-source.d.ts.map +1 -0
  656. package/dist/webhook-sources/presets/clerk.d.ts +9 -0
  657. package/dist/webhook-sources/presets/clerk.d.ts.map +1 -0
  658. package/dist/webhook-sources/presets/index.d.ts +140 -0
  659. package/dist/webhook-sources/presets/index.d.ts.map +1 -0
  660. package/dist/webhook-sources/presets/intercom.d.ts +44 -0
  661. package/dist/webhook-sources/presets/intercom.d.ts.map +1 -0
  662. package/dist/webhook-sources/presets/segment.d.ts +16 -0
  663. package/dist/webhook-sources/presets/segment.d.ts.map +1 -0
  664. package/dist/webhook-sources/presets/stripe.d.ts +20 -0
  665. package/dist/webhook-sources/presets/stripe.d.ts.map +1 -0
  666. package/dist/webhook-sources/presets/supabase.d.ts +23 -0
  667. package/dist/webhook-sources/presets/supabase.d.ts.map +1 -0
  668. package/dist/webhook-sources/verify.d.ts +48 -0
  669. package/dist/webhook-sources/verify.d.ts.map +1 -0
  670. package/dist/worker.d.ts +37 -0
  671. package/dist/worker.d.ts.map +1 -0
  672. package/dist/workflows/backfill-contact-id.d.ts +202 -0
  673. package/dist/workflows/backfill-contact-id.d.ts.map +1 -0
  674. package/dist/workflows/bucket-backfill.d.ts +64 -0
  675. package/dist/workflows/bucket-backfill.d.ts.map +1 -0
  676. package/dist/workflows/bucket-reconcile.d.ts +73 -0
  677. package/dist/workflows/bucket-reconcile.d.ts.map +1 -0
  678. package/dist/workflows/check-alerts.d.ts +10 -0
  679. package/dist/workflows/check-alerts.d.ts.map +1 -0
  680. package/dist/workflows/confirm-semantic-click.d.ts +15 -0
  681. package/dist/workflows/confirm-semantic-click.d.ts.map +1 -0
  682. package/dist/workflows/crm-reconcile.d.ts +27 -0
  683. package/dist/workflows/crm-reconcile.d.ts.map +1 -0
  684. package/dist/workflows/deliver-webhook.d.ts +88 -0
  685. package/dist/workflows/deliver-webhook.d.ts.map +1 -0
  686. package/dist/workflows/dispatch-conversion.d.ts +14 -0
  687. package/dist/workflows/dispatch-conversion.d.ts.map +1 -0
  688. package/dist/workflows/identity-alias-backfill.d.ts +96 -0
  689. package/dist/workflows/identity-alias-backfill.d.ts.map +1 -0
  690. package/dist/workflows/impact-digest.d.ts +142 -0
  691. package/dist/workflows/impact-digest.d.ts.map +1 -0
  692. package/dist/workflows/import-contacts.d.ts +14 -0
  693. package/dist/workflows/import-contacts.d.ts.map +1 -0
  694. package/dist/workflows/import-suppressions.d.ts +55 -0
  695. package/dist/workflows/import-suppressions.d.ts.map +1 -0
  696. package/dist/workflows/journey-blueprint-interpreter.d.ts +73 -0
  697. package/dist/workflows/journey-blueprint-interpreter.d.ts.map +1 -0
  698. package/dist/workflows/send-campaign.d.ts +128 -0
  699. package/dist/workflows/send-campaign.d.ts.map +1 -0
  700. package/dist/workflows/send-email.d.ts +15 -0
  701. package/dist/workflows/send-email.d.ts.map +1 -0
  702. package/dist/workflows/send-feed.d.ts +37 -0
  703. package/dist/workflows/send-feed.d.ts.map +1 -0
  704. package/package.json +60 -22
  705. package/src/app.ts +9 -1
  706. package/src/buckets/check-membership.ts +54 -20
  707. package/src/env.ts +30 -0
  708. package/src/journeys/journey-log.ts +25 -8
  709. package/src/lib/contacts.ts +47 -1
  710. package/src/lib/email-service-types.ts +10 -0
  711. package/src/lib/ingestion.ts +30 -19
  712. package/src/lib/mailer-bounce-idempotency.test.ts +7 -2
  713. package/src/lib/mailer-replied.test.ts +7 -2
  714. package/src/lib/mailer.ts +1 -0
  715. package/src/lib/outbound-endpoint-cache.ts +83 -0
  716. package/src/lib/outbound.ts +56 -37
  717. package/src/lib/seed-posthog-destination.ts +5 -1
  718. package/src/lib/tracked.ts +11 -3
  719. package/src/lib/tracking-events.ts +20 -3
  720. package/src/middleware/api-key.ts +69 -60
  721. package/src/middleware/publishable-key.ts +11 -23
  722. package/src/middleware/rate-limit.ts +165 -3
  723. package/src/routes/admin/api-keys.ts +148 -0
  724. package/src/routes/admin/targeting.ts +6 -1
  725. package/src/routes/admin/webhooks.ts +4 -0
  726. package/src/routes/index.ts +67 -24
  727. package/src/workflows/backfill-contact-id.ts +3 -7
  728. package/src/workflows/bucket-backfill.ts +2 -2
  729. package/src/workflows/bucket-reconcile.ts +28 -12
  730. package/src/workflows/check-alerts.ts +3 -9
  731. package/src/workflows/crm-reconcile.ts +3 -2
  732. package/src/workflows/deliver-webhook.ts +21 -8
  733. package/src/workflows/dispatch-conversion.ts +2 -2
  734. package/src/workflows/identity-alias-backfill.ts +3 -2
  735. package/src/workflows/impact-digest.ts +2 -2
  736. package/src/workflows/import-contacts.ts +3 -4
  737. package/src/workflows/import-suppressions.ts +4 -5
  738. package/src/workflows/send-campaign.ts +10 -1
@@ -0,0 +1,719 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppEnv } from "../../app.js";
3
+ export declare const adminFlagsRouter: OpenAPIHono<AppEnv, {
4
+ "/": {
5
+ $get: {
6
+ input: {
7
+ query: {
8
+ includeArchived?: unknown;
9
+ };
10
+ };
11
+ output: {
12
+ flags: {
13
+ id: string;
14
+ key: string;
15
+ name: string;
16
+ description: string | null;
17
+ enabled: boolean;
18
+ type: string;
19
+ variants: {
20
+ key: string;
21
+ value: import("hono/utils/types").JSONValue;
22
+ weight: number;
23
+ }[];
24
+ defaultValue: import("hono/utils/types").JSONValue;
25
+ targeting: {
26
+ type: "property";
27
+ property: string;
28
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
29
+ value?: string | number | boolean | undefined;
30
+ }[] | {
31
+ type: "property";
32
+ property: string;
33
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
34
+ value?: string | number | boolean | undefined;
35
+ } | {
36
+ type: "event";
37
+ eventName: string;
38
+ check: "exists" | "not_exists" | "count";
39
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
40
+ value?: number | undefined;
41
+ within?: {
42
+ readonly hours?: number | undefined;
43
+ readonly minutes?: number | undefined;
44
+ readonly seconds?: number | undefined;
45
+ } | undefined;
46
+ } | {
47
+ type: "email_engagement";
48
+ templateKey?: string | undefined;
49
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
50
+ } | {
51
+ type: "bucket";
52
+ bucketId: string;
53
+ negate?: boolean | undefined;
54
+ } | {
55
+ type: "journey";
56
+ journeyId: string;
57
+ state: "active" | "completed";
58
+ negate?: boolean | undefined;
59
+ } | {
60
+ type: "deal";
61
+ predicate: "won" | "open" | "stage";
62
+ stage?: string | undefined;
63
+ negate?: boolean | undefined;
64
+ } | {
65
+ type: "composite";
66
+ operator: "and" | "or";
67
+ conditions: ({
68
+ type: "property";
69
+ property: string;
70
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
71
+ value?: string | number | boolean | undefined;
72
+ } | {
73
+ type: "event";
74
+ eventName: string;
75
+ check: "exists" | "not_exists" | "count";
76
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
77
+ value?: number | undefined;
78
+ within?: {
79
+ readonly hours?: number | undefined;
80
+ readonly minutes?: number | undefined;
81
+ readonly seconds?: number | undefined;
82
+ } | undefined;
83
+ } | {
84
+ type: "email_engagement";
85
+ templateKey?: string | undefined;
86
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
87
+ } | {
88
+ type: "bucket";
89
+ bucketId: string;
90
+ negate?: boolean | undefined;
91
+ } | {
92
+ type: "journey";
93
+ journeyId: string;
94
+ state: "active" | "completed";
95
+ negate?: boolean | undefined;
96
+ } | {
97
+ type: "deal";
98
+ predicate: "won" | "open" | "stage";
99
+ stage?: string | undefined;
100
+ negate?: boolean | undefined;
101
+ } | /*elided*/ any)[];
102
+ };
103
+ rollout: number;
104
+ conditionSets: {
105
+ description?: string | undefined;
106
+ targeting: {
107
+ type: "property";
108
+ property: string;
109
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
110
+ value?: string | number | boolean | undefined;
111
+ } | {
112
+ type: "property";
113
+ property: string;
114
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
115
+ value?: string | number | boolean | undefined;
116
+ }[] | {
117
+ type: "event";
118
+ eventName: string;
119
+ check: "exists" | "not_exists" | "count";
120
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
121
+ value?: number | undefined;
122
+ within?: {
123
+ readonly hours?: number | undefined;
124
+ readonly minutes?: number | undefined;
125
+ readonly seconds?: number | undefined;
126
+ } | undefined;
127
+ } | {
128
+ type: "email_engagement";
129
+ templateKey?: string | undefined;
130
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
131
+ } | {
132
+ type: "bucket";
133
+ bucketId: string;
134
+ negate?: boolean | undefined;
135
+ } | {
136
+ type: "journey";
137
+ journeyId: string;
138
+ state: "active" | "completed";
139
+ negate?: boolean | undefined;
140
+ } | {
141
+ type: "deal";
142
+ predicate: "won" | "open" | "stage";
143
+ stage?: string | undefined;
144
+ negate?: boolean | undefined;
145
+ } | {
146
+ type: "composite";
147
+ operator: "and" | "or";
148
+ conditions: ({
149
+ type: "property";
150
+ property: string;
151
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
152
+ value?: string | number | boolean | undefined;
153
+ } | {
154
+ type: "event";
155
+ eventName: string;
156
+ check: "exists" | "not_exists" | "count";
157
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
158
+ value?: number | undefined;
159
+ within?: {
160
+ readonly hours?: number | undefined;
161
+ readonly minutes?: number | undefined;
162
+ readonly seconds?: number | undefined;
163
+ } | undefined;
164
+ } | {
165
+ type: "email_engagement";
166
+ templateKey?: string | undefined;
167
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
168
+ } | {
169
+ type: "bucket";
170
+ bucketId: string;
171
+ negate?: boolean | undefined;
172
+ } | {
173
+ type: "journey";
174
+ journeyId: string;
175
+ state: "active" | "completed";
176
+ negate?: boolean | undefined;
177
+ } | {
178
+ type: "deal";
179
+ predicate: "won" | "open" | "stage";
180
+ stage?: string | undefined;
181
+ negate?: boolean | undefined;
182
+ } | /*elided*/ any)[];
183
+ };
184
+ rollout: number;
185
+ }[];
186
+ origin: string;
187
+ archivedAt: string | null;
188
+ createdAt: string;
189
+ updatedAt: string;
190
+ }[];
191
+ };
192
+ outputFormat: "json";
193
+ status: 200;
194
+ };
195
+ };
196
+ } & {
197
+ "/": {
198
+ $post: {
199
+ input: {
200
+ json: {
201
+ key: string;
202
+ name: string;
203
+ type: "boolean" | "multivariate";
204
+ description?: string | undefined;
205
+ enabled?: boolean | undefined;
206
+ variants?: {
207
+ key: string;
208
+ value: unknown;
209
+ weight: number;
210
+ }[] | undefined;
211
+ defaultValue?: unknown;
212
+ targeting?: unknown;
213
+ rollout?: number | undefined;
214
+ conditionSets?: unknown[] | undefined;
215
+ };
216
+ };
217
+ output: {
218
+ error: string;
219
+ };
220
+ outputFormat: "json";
221
+ status: 409;
222
+ } | {
223
+ input: {
224
+ json: {
225
+ key: string;
226
+ name: string;
227
+ type: "boolean" | "multivariate";
228
+ description?: string | undefined;
229
+ enabled?: boolean | undefined;
230
+ variants?: {
231
+ key: string;
232
+ value: unknown;
233
+ weight: number;
234
+ }[] | undefined;
235
+ defaultValue?: unknown;
236
+ targeting?: unknown;
237
+ rollout?: number | undefined;
238
+ conditionSets?: unknown[] | undefined;
239
+ };
240
+ };
241
+ output: {
242
+ flag: {
243
+ id: string;
244
+ key: string;
245
+ name: string;
246
+ description: string | null;
247
+ enabled: boolean;
248
+ type: string;
249
+ variants: {
250
+ key: string;
251
+ value: import("hono/utils/types").JSONValue;
252
+ weight: number;
253
+ }[];
254
+ defaultValue: import("hono/utils/types").JSONValue;
255
+ targeting: {
256
+ type: "property";
257
+ property: string;
258
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
259
+ value?: string | number | boolean | undefined;
260
+ }[] | {
261
+ type: "property";
262
+ property: string;
263
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
264
+ value?: string | number | boolean | undefined;
265
+ } | {
266
+ type: "event";
267
+ eventName: string;
268
+ check: "exists" | "not_exists" | "count";
269
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
270
+ value?: number | undefined;
271
+ within?: {
272
+ readonly hours?: number | undefined;
273
+ readonly minutes?: number | undefined;
274
+ readonly seconds?: number | undefined;
275
+ } | undefined;
276
+ } | {
277
+ type: "email_engagement";
278
+ templateKey?: string | undefined;
279
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
280
+ } | {
281
+ type: "bucket";
282
+ bucketId: string;
283
+ negate?: boolean | undefined;
284
+ } | {
285
+ type: "journey";
286
+ journeyId: string;
287
+ state: "active" | "completed";
288
+ negate?: boolean | undefined;
289
+ } | {
290
+ type: "deal";
291
+ predicate: "won" | "open" | "stage";
292
+ stage?: string | undefined;
293
+ negate?: boolean | undefined;
294
+ } | {
295
+ type: "composite";
296
+ operator: "and" | "or";
297
+ conditions: ({
298
+ type: "property";
299
+ property: string;
300
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
301
+ value?: string | number | boolean | undefined;
302
+ } | {
303
+ type: "event";
304
+ eventName: string;
305
+ check: "exists" | "not_exists" | "count";
306
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
307
+ value?: number | undefined;
308
+ within?: {
309
+ readonly hours?: number | undefined;
310
+ readonly minutes?: number | undefined;
311
+ readonly seconds?: number | undefined;
312
+ } | undefined;
313
+ } | {
314
+ type: "email_engagement";
315
+ templateKey?: string | undefined;
316
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
317
+ } | {
318
+ type: "bucket";
319
+ bucketId: string;
320
+ negate?: boolean | undefined;
321
+ } | {
322
+ type: "journey";
323
+ journeyId: string;
324
+ state: "active" | "completed";
325
+ negate?: boolean | undefined;
326
+ } | {
327
+ type: "deal";
328
+ predicate: "won" | "open" | "stage";
329
+ stage?: string | undefined;
330
+ negate?: boolean | undefined;
331
+ } | /*elided*/ any)[];
332
+ };
333
+ rollout: number;
334
+ conditionSets: {
335
+ description?: string | undefined;
336
+ targeting: {
337
+ type: "property";
338
+ property: string;
339
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
340
+ value?: string | number | boolean | undefined;
341
+ } | {
342
+ type: "property";
343
+ property: string;
344
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
345
+ value?: string | number | boolean | undefined;
346
+ }[] | {
347
+ type: "event";
348
+ eventName: string;
349
+ check: "exists" | "not_exists" | "count";
350
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
351
+ value?: number | undefined;
352
+ within?: {
353
+ readonly hours?: number | undefined;
354
+ readonly minutes?: number | undefined;
355
+ readonly seconds?: number | undefined;
356
+ } | undefined;
357
+ } | {
358
+ type: "email_engagement";
359
+ templateKey?: string | undefined;
360
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
361
+ } | {
362
+ type: "bucket";
363
+ bucketId: string;
364
+ negate?: boolean | undefined;
365
+ } | {
366
+ type: "journey";
367
+ journeyId: string;
368
+ state: "active" | "completed";
369
+ negate?: boolean | undefined;
370
+ } | {
371
+ type: "deal";
372
+ predicate: "won" | "open" | "stage";
373
+ stage?: string | undefined;
374
+ negate?: boolean | undefined;
375
+ } | {
376
+ type: "composite";
377
+ operator: "and" | "or";
378
+ conditions: ({
379
+ type: "property";
380
+ property: string;
381
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
382
+ value?: string | number | boolean | undefined;
383
+ } | {
384
+ type: "event";
385
+ eventName: string;
386
+ check: "exists" | "not_exists" | "count";
387
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
388
+ value?: number | undefined;
389
+ within?: {
390
+ readonly hours?: number | undefined;
391
+ readonly minutes?: number | undefined;
392
+ readonly seconds?: number | undefined;
393
+ } | undefined;
394
+ } | {
395
+ type: "email_engagement";
396
+ templateKey?: string | undefined;
397
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
398
+ } | {
399
+ type: "bucket";
400
+ bucketId: string;
401
+ negate?: boolean | undefined;
402
+ } | {
403
+ type: "journey";
404
+ journeyId: string;
405
+ state: "active" | "completed";
406
+ negate?: boolean | undefined;
407
+ } | {
408
+ type: "deal";
409
+ predicate: "won" | "open" | "stage";
410
+ stage?: string | undefined;
411
+ negate?: boolean | undefined;
412
+ } | /*elided*/ any)[];
413
+ };
414
+ rollout: number;
415
+ }[];
416
+ origin: string;
417
+ archivedAt: string | null;
418
+ createdAt: string;
419
+ updatedAt: string;
420
+ };
421
+ };
422
+ outputFormat: "json";
423
+ status: 201;
424
+ };
425
+ };
426
+ } & {
427
+ "/:id": {
428
+ $patch: {
429
+ input: {
430
+ param: {
431
+ id: string;
432
+ };
433
+ } & {
434
+ json: {
435
+ key?: string | undefined;
436
+ name?: string | undefined;
437
+ description?: string | undefined;
438
+ enabled?: boolean | undefined;
439
+ type?: "boolean" | "multivariate" | undefined;
440
+ variants?: {
441
+ key: string;
442
+ value: unknown;
443
+ weight: number;
444
+ }[] | undefined;
445
+ defaultValue?: unknown;
446
+ targeting?: unknown;
447
+ rollout?: number | undefined;
448
+ conditionSets?: unknown[] | undefined;
449
+ };
450
+ };
451
+ output: {
452
+ error: string;
453
+ };
454
+ outputFormat: "json";
455
+ status: 404;
456
+ } | {
457
+ input: {
458
+ param: {
459
+ id: string;
460
+ };
461
+ } & {
462
+ json: {
463
+ key?: string | undefined;
464
+ name?: string | undefined;
465
+ description?: string | undefined;
466
+ enabled?: boolean | undefined;
467
+ type?: "boolean" | "multivariate" | undefined;
468
+ variants?: {
469
+ key: string;
470
+ value: unknown;
471
+ weight: number;
472
+ }[] | undefined;
473
+ defaultValue?: unknown;
474
+ targeting?: unknown;
475
+ rollout?: number | undefined;
476
+ conditionSets?: unknown[] | undefined;
477
+ };
478
+ };
479
+ output: {
480
+ error: string;
481
+ };
482
+ outputFormat: "json";
483
+ status: 409;
484
+ } | {
485
+ input: {
486
+ param: {
487
+ id: string;
488
+ };
489
+ } & {
490
+ json: {
491
+ key?: string | undefined;
492
+ name?: string | undefined;
493
+ description?: string | undefined;
494
+ enabled?: boolean | undefined;
495
+ type?: "boolean" | "multivariate" | undefined;
496
+ variants?: {
497
+ key: string;
498
+ value: unknown;
499
+ weight: number;
500
+ }[] | undefined;
501
+ defaultValue?: unknown;
502
+ targeting?: unknown;
503
+ rollout?: number | undefined;
504
+ conditionSets?: unknown[] | undefined;
505
+ };
506
+ };
507
+ output: {
508
+ flag: {
509
+ id: string;
510
+ key: string;
511
+ name: string;
512
+ description: string | null;
513
+ enabled: boolean;
514
+ type: string;
515
+ variants: {
516
+ key: string;
517
+ value: import("hono/utils/types").JSONValue;
518
+ weight: number;
519
+ }[];
520
+ defaultValue: import("hono/utils/types").JSONValue;
521
+ targeting: {
522
+ type: "property";
523
+ property: string;
524
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
525
+ value?: string | number | boolean | undefined;
526
+ }[] | {
527
+ type: "property";
528
+ property: string;
529
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
530
+ value?: string | number | boolean | undefined;
531
+ } | {
532
+ type: "event";
533
+ eventName: string;
534
+ check: "exists" | "not_exists" | "count";
535
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
536
+ value?: number | undefined;
537
+ within?: {
538
+ readonly hours?: number | undefined;
539
+ readonly minutes?: number | undefined;
540
+ readonly seconds?: number | undefined;
541
+ } | undefined;
542
+ } | {
543
+ type: "email_engagement";
544
+ templateKey?: string | undefined;
545
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
546
+ } | {
547
+ type: "bucket";
548
+ bucketId: string;
549
+ negate?: boolean | undefined;
550
+ } | {
551
+ type: "journey";
552
+ journeyId: string;
553
+ state: "active" | "completed";
554
+ negate?: boolean | undefined;
555
+ } | {
556
+ type: "deal";
557
+ predicate: "won" | "open" | "stage";
558
+ stage?: string | undefined;
559
+ negate?: boolean | undefined;
560
+ } | {
561
+ type: "composite";
562
+ operator: "and" | "or";
563
+ conditions: ({
564
+ type: "property";
565
+ property: string;
566
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
567
+ value?: string | number | boolean | undefined;
568
+ } | {
569
+ type: "event";
570
+ eventName: string;
571
+ check: "exists" | "not_exists" | "count";
572
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
573
+ value?: number | undefined;
574
+ within?: {
575
+ readonly hours?: number | undefined;
576
+ readonly minutes?: number | undefined;
577
+ readonly seconds?: number | undefined;
578
+ } | undefined;
579
+ } | {
580
+ type: "email_engagement";
581
+ templateKey?: string | undefined;
582
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
583
+ } | {
584
+ type: "bucket";
585
+ bucketId: string;
586
+ negate?: boolean | undefined;
587
+ } | {
588
+ type: "journey";
589
+ journeyId: string;
590
+ state: "active" | "completed";
591
+ negate?: boolean | undefined;
592
+ } | {
593
+ type: "deal";
594
+ predicate: "won" | "open" | "stage";
595
+ stage?: string | undefined;
596
+ negate?: boolean | undefined;
597
+ } | /*elided*/ any)[];
598
+ };
599
+ rollout: number;
600
+ conditionSets: {
601
+ description?: string | undefined;
602
+ targeting: {
603
+ type: "property";
604
+ property: string;
605
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
606
+ value?: string | number | boolean | undefined;
607
+ } | {
608
+ type: "property";
609
+ property: string;
610
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
611
+ value?: string | number | boolean | undefined;
612
+ }[] | {
613
+ type: "event";
614
+ eventName: string;
615
+ check: "exists" | "not_exists" | "count";
616
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
617
+ value?: number | undefined;
618
+ within?: {
619
+ readonly hours?: number | undefined;
620
+ readonly minutes?: number | undefined;
621
+ readonly seconds?: number | undefined;
622
+ } | undefined;
623
+ } | {
624
+ type: "email_engagement";
625
+ templateKey?: string | undefined;
626
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
627
+ } | {
628
+ type: "bucket";
629
+ bucketId: string;
630
+ negate?: boolean | undefined;
631
+ } | {
632
+ type: "journey";
633
+ journeyId: string;
634
+ state: "active" | "completed";
635
+ negate?: boolean | undefined;
636
+ } | {
637
+ type: "deal";
638
+ predicate: "won" | "open" | "stage";
639
+ stage?: string | undefined;
640
+ negate?: boolean | undefined;
641
+ } | {
642
+ type: "composite";
643
+ operator: "and" | "or";
644
+ conditions: ({
645
+ type: "property";
646
+ property: string;
647
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | "contains";
648
+ value?: string | number | boolean | undefined;
649
+ } | {
650
+ type: "event";
651
+ eventName: string;
652
+ check: "exists" | "not_exists" | "count";
653
+ operator?: "gt" | "gte" | "lt" | "lte" | "eq" | undefined;
654
+ value?: number | undefined;
655
+ within?: {
656
+ readonly hours?: number | undefined;
657
+ readonly minutes?: number | undefined;
658
+ readonly seconds?: number | undefined;
659
+ } | undefined;
660
+ } | {
661
+ type: "email_engagement";
662
+ templateKey?: string | undefined;
663
+ check: "opened" | "clicked" | "not_opened" | "not_clicked";
664
+ } | {
665
+ type: "bucket";
666
+ bucketId: string;
667
+ negate?: boolean | undefined;
668
+ } | {
669
+ type: "journey";
670
+ journeyId: string;
671
+ state: "active" | "completed";
672
+ negate?: boolean | undefined;
673
+ } | {
674
+ type: "deal";
675
+ predicate: "won" | "open" | "stage";
676
+ stage?: string | undefined;
677
+ negate?: boolean | undefined;
678
+ } | /*elided*/ any)[];
679
+ };
680
+ rollout: number;
681
+ }[];
682
+ origin: string;
683
+ archivedAt: string | null;
684
+ createdAt: string;
685
+ updatedAt: string;
686
+ };
687
+ };
688
+ outputFormat: "json";
689
+ status: 200;
690
+ };
691
+ };
692
+ } & {
693
+ "/:id": {
694
+ $delete: {
695
+ input: {
696
+ param: {
697
+ id: string;
698
+ };
699
+ };
700
+ output: {
701
+ error: string;
702
+ };
703
+ outputFormat: "json";
704
+ status: 404;
705
+ } | {
706
+ input: {
707
+ param: {
708
+ id: string;
709
+ };
710
+ };
711
+ output: {
712
+ archived: boolean;
713
+ };
714
+ outputFormat: "json";
715
+ status: 200;
716
+ };
717
+ };
718
+ }, "/">;
719
+ //# sourceMappingURL=flags.d.ts.map