@oxygen-agent/cli 1.1014.1895 → 1.1014.2040

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 (351) hide show
  1. package/README.md +1 -1
  2. package/dist/auto-update.d.ts +1 -1
  3. package/dist/auto-update.js +3 -3
  4. package/dist/cli-install.d.ts +65 -0
  5. package/dist/cli-install.js +165 -0
  6. package/dist/command-families/tables/options.d.ts +1 -0
  7. package/dist/command-families/tables/register-automation.js +3 -1
  8. package/dist/commands/billing.js +1 -1
  9. package/dist/commands/managed-inboxes.js +6 -2
  10. package/dist/commands/observability.js +4 -4
  11. package/dist/commands/sequences.js +1 -1
  12. package/dist/commands/subscriptions.js +7 -5
  13. package/dist/commands/table-runs.js +10 -0
  14. package/dist/commands/tags.js +2 -2
  15. package/dist/commands/workflows.js +31 -10
  16. package/dist/http-client.d.ts +1 -1
  17. package/dist/http-client.js +1 -1
  18. package/dist/update.d.ts +4 -57
  19. package/dist/update.js +17 -163
  20. package/node_modules/@oxygen/formula/dist/cross-row-function.d.ts +13 -0
  21. package/node_modules/@oxygen/formula/dist/cross-row-function.js +1 -0
  22. package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.d.ts +2 -0
  23. package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.js +1 -0
  24. package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.d.ts +3 -0
  25. package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.js +3 -0
  26. package/node_modules/@oxygen/formula/dist/evaluate.d.ts +12 -1
  27. package/node_modules/@oxygen/formula/dist/evaluate.js +28 -3
  28. package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +2 -0
  29. package/node_modules/@oxygen/shared/dist/billing.d.ts +5 -1
  30. package/node_modules/@oxygen/shared/dist/billing.js +5 -1
  31. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.d.ts +30 -0
  32. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.js +33 -0
  33. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.d.ts +39 -0
  34. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.js +86 -0
  35. package/node_modules/@oxygen/shared/dist/capability-discovery-types.d.ts +93 -0
  36. package/node_modules/@oxygen/shared/dist/capability-discovery-types.js +1 -0
  37. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +12 -270
  38. package/node_modules/@oxygen/shared/dist/capability-discovery.js +124 -3713
  39. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.d.ts +2 -0
  40. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.js +5 -0
  41. package/node_modules/@oxygen/shared/dist/capability-intents/agents.d.ts +10 -0
  42. package/node_modules/@oxygen/shared/dist/capability-intents/agents.js +53 -0
  43. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.d.ts +2 -0
  44. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.js +25 -0
  45. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.d.ts +31 -0
  46. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.js +70 -0
  47. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.d.ts +2 -0
  48. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.js +85 -0
  49. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.d.ts +9 -0
  50. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.js +54 -0
  51. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.d.ts +2 -0
  52. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.js +28 -0
  53. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.d.ts +2 -0
  54. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.js +23 -0
  55. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.d.ts +43 -0
  56. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.js +90 -0
  57. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.d.ts +2 -0
  58. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.js +58 -0
  59. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.d.ts +2 -0
  60. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.js +14 -0
  61. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.d.ts +2 -0
  62. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.js +9 -0
  63. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.d.ts +365 -0
  64. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.js +90 -0
  65. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.d.ts +20 -0
  66. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.js +37 -0
  67. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.d.ts +2 -0
  68. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.js +43 -0
  69. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.d.ts +4 -0
  70. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.js +26 -0
  71. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.d.ts +2 -0
  72. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.js +42 -0
  73. package/node_modules/@oxygen/shared/dist/capability-intents/messages.d.ts +6 -0
  74. package/node_modules/@oxygen/shared/dist/capability-intents/messages.js +16 -0
  75. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.d.ts +2 -0
  76. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.js +68 -0
  77. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.d.ts +2 -0
  78. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.js +4 -0
  79. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.d.ts +6 -0
  80. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.js +23 -0
  81. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.d.ts +2 -0
  82. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.js +25 -0
  83. package/node_modules/@oxygen/shared/dist/capability-intents/posts.d.ts +1 -0
  84. package/node_modules/@oxygen/shared/dist/capability-intents/posts.js +12 -0
  85. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.d.ts +2 -0
  86. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.js +20 -0
  87. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.d.ts +86 -0
  88. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.js +135 -0
  89. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.d.ts +2 -0
  90. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.js +89 -0
  91. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.d.ts +7 -0
  92. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.js +85 -0
  93. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.d.ts +2 -0
  94. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.js +28 -0
  95. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.d.ts +7 -0
  96. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.js +73 -0
  97. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.d.ts +2 -0
  98. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.js +36 -0
  99. package/node_modules/@oxygen/shared/dist/capability-intents/records.d.ts +86 -0
  100. package/node_modules/@oxygen/shared/dist/capability-intents/records.js +240 -0
  101. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.d.ts +2 -0
  102. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.js +71 -0
  103. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.d.ts +27 -0
  104. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.js +67 -0
  105. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.d.ts +2 -0
  106. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.js +115 -0
  107. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.d.ts +71 -0
  108. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.js +150 -0
  109. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.d.ts +2 -0
  110. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.js +149 -0
  111. package/node_modules/@oxygen/shared/dist/capability-intents/signals.d.ts +42 -0
  112. package/node_modules/@oxygen/shared/dist/capability-intents/signals.js +42 -0
  113. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.d.ts +2 -0
  114. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.js +47 -0
  115. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.d.ts +60 -0
  116. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.js +94 -0
  117. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.d.ts +2 -0
  118. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.js +94 -0
  119. package/node_modules/@oxygen/shared/dist/capability-intents/tables.d.ts +196 -0
  120. package/node_modules/@oxygen/shared/dist/capability-intents/tables.js +394 -0
  121. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.d.ts +2 -0
  122. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.js +384 -0
  123. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.d.ts +2 -0
  124. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.js +5 -0
  125. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.d.ts +2 -0
  126. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.js +8 -0
  127. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.d.ts +2 -0
  128. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.js +20 -0
  129. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.d.ts +2 -0
  130. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.js +90 -0
  131. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.d.ts +59 -0
  132. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.js +121 -0
  133. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.d.ts +2 -0
  134. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.js +58 -0
  135. package/node_modules/@oxygen/shared/dist/capability-routes/ads.d.ts +2 -0
  136. package/node_modules/@oxygen/shared/dist/capability-routes/ads.js +17 -0
  137. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.d.ts +2 -0
  138. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.js +17 -0
  139. package/node_modules/@oxygen/shared/dist/capability-routes/agents.d.ts +2 -0
  140. package/node_modules/@oxygen/shared/dist/capability-routes/agents.js +17 -0
  141. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.d.ts +2 -0
  142. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.js +17 -0
  143. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.d.ts +2 -0
  144. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.js +39 -0
  145. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.d.ts +2 -0
  146. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.js +17 -0
  147. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.d.ts +2 -0
  148. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.js +17 -0
  149. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.d.ts +2 -0
  150. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.js +17 -0
  151. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.d.ts +2 -0
  152. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.js +28 -0
  153. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.d.ts +2 -0
  154. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.js +22 -0
  155. package/node_modules/@oxygen/shared/dist/capability-routes/geo.d.ts +2 -0
  156. package/node_modules/@oxygen/shared/dist/capability-routes/geo.js +13 -0
  157. package/node_modules/@oxygen/shared/dist/capability-routes/index.d.ts +2 -0
  158. package/node_modules/@oxygen/shared/dist/capability-routes/index.js +64 -0
  159. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.d.ts +2 -0
  160. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.js +17 -0
  161. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.d.ts +2 -0
  162. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.js +18 -0
  163. package/node_modules/@oxygen/shared/dist/capability-routes/messages.d.ts +2 -0
  164. package/node_modules/@oxygen/shared/dist/capability-routes/messages.js +21 -0
  165. package/node_modules/@oxygen/shared/dist/capability-routes/observability.d.ts +2 -0
  166. package/node_modules/@oxygen/shared/dist/capability-routes/observability.js +17 -0
  167. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.d.ts +2 -0
  168. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.js +23 -0
  169. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.d.ts +2 -0
  170. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.js +17 -0
  171. package/node_modules/@oxygen/shared/dist/capability-routes/posts.d.ts +2 -0
  172. package/node_modules/@oxygen/shared/dist/capability-routes/posts.js +17 -0
  173. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.d.ts +2 -0
  174. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.js +20 -0
  175. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.d.ts +2 -0
  176. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.js +17 -0
  177. package/node_modules/@oxygen/shared/dist/capability-routes/records.d.ts +2 -0
  178. package/node_modules/@oxygen/shared/dist/capability-routes/records.js +20 -0
  179. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.d.ts +2 -0
  180. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.js +42 -0
  181. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.d.ts +2 -0
  182. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.js +32 -0
  183. package/node_modules/@oxygen/shared/dist/capability-routes/signals.d.ts +2 -0
  184. package/node_modules/@oxygen/shared/dist/capability-routes/signals.js +17 -0
  185. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.d.ts +2 -0
  186. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.js +21 -0
  187. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.d.ts +2 -0
  188. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.js +17 -0
  189. package/node_modules/@oxygen/shared/dist/capability-routes/tables.d.ts +2 -0
  190. package/node_modules/@oxygen/shared/dist/capability-routes/tables.js +34 -0
  191. package/node_modules/@oxygen/shared/dist/capability-routes/tags.d.ts +2 -0
  192. package/node_modules/@oxygen/shared/dist/capability-routes/tags.js +17 -0
  193. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.d.ts +2 -0
  194. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.js +17 -0
  195. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.d.ts +2 -0
  196. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.js +17 -0
  197. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.d.ts +2 -0
  198. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.js +26 -0
  199. package/node_modules/@oxygen/shared/dist/cell-format.js +2 -2
  200. package/node_modules/@oxygen/shared/dist/collab.d.ts +1 -1
  201. package/node_modules/@oxygen/shared/dist/contracts/connectors.js +2 -0
  202. package/node_modules/@oxygen/shared/dist/contracts/customer-operations.d.ts +1 -1
  203. package/node_modules/@oxygen/shared/dist/contracts/geo.js +1 -1
  204. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.d.ts +1 -0
  205. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.js +1 -0
  206. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.d.ts +1 -0
  207. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.js +1 -0
  208. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.d.ts +2 -0
  209. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.js +2 -0
  210. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.d.ts +2 -0
  211. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.js +2 -0
  212. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.d.ts +1 -0
  213. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.js +1 -0
  214. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.d.ts +1 -0
  215. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.js +1 -0
  216. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.d.ts +2 -0
  217. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.js +26 -0
  218. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.d.ts +1 -0
  219. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.js +1 -0
  220. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.d.ts +2 -0
  221. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.js +2 -0
  222. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.d.ts +2 -0
  223. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.js +2 -0
  224. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.d.ts +1 -0
  225. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.js +1 -0
  226. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.d.ts +2 -0
  227. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.js +2 -0
  228. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.d.ts +1 -0
  229. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.js +1 -0
  230. package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +6 -0
  231. package/node_modules/@oxygen/shared/dist/contracts/operations.js +7 -15
  232. package/node_modules/@oxygen/shared/dist/contracts/sender-limits.js +1 -0
  233. package/node_modules/@oxygen/shared/dist/diagnostic-storage-lock.js +33 -22
  234. package/node_modules/@oxygen/shared/dist/diagnostics.js +11 -8
  235. package/node_modules/@oxygen/shared/dist/dnc-identities.js +1 -1
  236. package/node_modules/@oxygen/shared/dist/error-redaction.d.ts +1 -1
  237. package/node_modules/@oxygen/shared/dist/error-redaction.js +2 -2
  238. package/node_modules/@oxygen/shared/dist/esp-contract.d.ts +133 -0
  239. package/node_modules/@oxygen/shared/dist/esp-contract.js +121 -0
  240. package/node_modules/@oxygen/shared/dist/first-month-offer-window.d.ts +3 -0
  241. package/node_modules/@oxygen/shared/dist/first-month-offer.d.ts +15 -7
  242. package/node_modules/@oxygen/shared/dist/first-month-offer.js +23 -9
  243. package/node_modules/@oxygen/shared/dist/{geo.js → geo/geo.js} +2 -2
  244. package/node_modules/@oxygen/shared/dist/guided-activation.d.ts +2 -0
  245. package/node_modules/@oxygen/shared/dist/index.d.ts +6 -5
  246. package/node_modules/@oxygen/shared/dist/index.js +7 -5
  247. package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +1 -1
  248. package/node_modules/@oxygen/shared/dist/linkedin-connection-identity.js +1 -1
  249. package/node_modules/@oxygen/shared/dist/listed-website-platforms.d.ts +1 -1
  250. package/node_modules/@oxygen/shared/dist/listed-website-platforms.js +23 -1
  251. package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.js → mailboxes/sending-domain-rollout.js} +1 -1
  252. package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +1 -1
  253. package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +67 -0
  254. package/node_modules/@oxygen/shared/dist/onboarding-leads.js +78 -0
  255. package/node_modules/@oxygen/shared/dist/otlp-log-sink.js +20 -0
  256. package/node_modules/@oxygen/shared/dist/plan-capabilities.js +1 -1
  257. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +2 -2
  258. package/node_modules/@oxygen/shared/dist/plan-limits.js +6 -7
  259. package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.d.ts → posts/metrics-core.d.ts} +1 -1
  260. package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.d.ts → posts/metrics-linkedin.d.ts} +1 -1
  261. package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.js → posts/metrics-linkedin.js} +2 -2
  262. package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.d.ts → posts/metrics-series.d.ts} +1 -1
  263. package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.js → posts/metrics-series.js} +1 -1
  264. package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts} +1 -1
  265. package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.js → posts/metrics-x.js} +2 -2
  266. package/node_modules/@oxygen/shared/dist/{social-post-metrics.d.ts → posts/metrics.d.ts} +3 -3
  267. package/node_modules/@oxygen/shared/dist/{social-post-metrics.js → posts/metrics.js} +3 -3
  268. package/node_modules/@oxygen/shared/dist/recipient-provider.d.ts +2 -10
  269. package/node_modules/@oxygen/shared/dist/recipient-provider.js +1 -9
  270. package/node_modules/@oxygen/shared/dist/sending-domain-faults.d.ts +1 -1
  271. package/node_modules/@oxygen/shared/dist/sending-domain-faults.js +1 -1
  272. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.d.ts +2 -118
  273. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +2 -107
  274. package/node_modules/@oxygen/shared/dist/sequences.d.ts +0 -1
  275. package/node_modules/@oxygen/shared/dist/sequences.js +0 -2
  276. package/node_modules/@oxygen/shared/dist/{native-chat-discovery.d.ts → support/native-chat-discovery.d.ts} +1 -1
  277. package/node_modules/@oxygen/shared/dist/{native-chat-discovery.js → support/native-chat-discovery.js} +1 -1
  278. package/node_modules/@oxygen/shared/dist/suppression-entries.js +1 -1
  279. package/node_modules/@oxygen/shared/dist/table-field-types.d.ts +1 -1
  280. package/node_modules/@oxygen/shared/dist/table-field-types.js +2 -2
  281. package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js} +4 -4
  282. package/node_modules/@oxygen/shared/dist/{tags.d.ts → tags/tags.d.ts} +1 -1
  283. package/node_modules/@oxygen/shared/dist/{tags.js → tags/tags.js} +1 -1
  284. package/node_modules/@oxygen/shared/dist/tenant-migration-names.d.ts +5 -0
  285. package/node_modules/@oxygen/shared/dist/tenant-migration-names.js +8 -0
  286. package/node_modules/@oxygen/shared/dist/ugc-amplification-identity.js +1 -1
  287. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  288. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  289. package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.d.ts +6 -0
  290. package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.js +9 -2
  291. package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.d.ts +44 -0
  292. package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.js +90 -0
  293. package/node_modules/@oxygen/shared/dist/workspace-placement-view.d.ts +24 -0
  294. package/node_modules/@oxygen/shared/dist/workspace-placement-view.js +5 -4
  295. package/node_modules/@oxygen/shared/dist/workspace-placement.d.ts +4 -0
  296. package/node_modules/@oxygen/shared/dist/workspace-placement.js +7 -1
  297. package/node_modules/@oxygen/shared/package.json +0 -25
  298. package/node_modules/@oxygen/workflows/dist/cron.d.ts +42 -0
  299. package/node_modules/@oxygen/workflows/dist/cron.js +271 -0
  300. package/node_modules/@oxygen/workflows/dist/event-dispatch.d.ts +2 -1
  301. package/node_modules/@oxygen/workflows/dist/graph/condition.d.ts +3 -0
  302. package/node_modules/@oxygen/workflows/dist/graph/condition.js +19 -0
  303. package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +1 -2
  304. package/node_modules/@oxygen/workflows/dist/graph/expression.js +2 -19
  305. package/node_modules/@oxygen/workflows/dist/graph/lint.d.ts +1 -1
  306. package/node_modules/@oxygen/workflows/dist/graph/lint.js +4 -3
  307. package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +4 -3
  308. package/node_modules/@oxygen/workflows/dist/index.d.ts +9 -1043
  309. package/node_modules/@oxygen/workflows/dist/index.js +11 -2124
  310. package/node_modules/@oxygen/workflows/dist/manifest-builders.d.ts +73 -0
  311. package/node_modules/@oxygen/workflows/dist/manifest-builders.js +102 -0
  312. package/node_modules/@oxygen/workflows/dist/manifest-guards.d.ts +16 -0
  313. package/node_modules/@oxygen/workflows/dist/manifest-guards.js +34 -0
  314. package/node_modules/@oxygen/workflows/dist/manifest-hash.d.ts +47 -0
  315. package/node_modules/@oxygen/workflows/dist/manifest-hash.js +102 -0
  316. package/node_modules/@oxygen/workflows/dist/manifest-lint.d.ts +17 -0
  317. package/node_modules/@oxygen/workflows/dist/manifest-lint.js +474 -0
  318. package/node_modules/@oxygen/workflows/dist/manifest-types.d.ts +256 -0
  319. package/node_modules/@oxygen/workflows/dist/manifest-types.js +9 -0
  320. package/node_modules/@oxygen/workflows/dist/manifest-validation.d.ts +75 -0
  321. package/node_modules/@oxygen/workflows/dist/manifest-validation.js +903 -0
  322. package/node_modules/@oxygen/workflows/dist/pure-function.d.ts +17 -0
  323. package/node_modules/@oxygen/workflows/dist/pure-function.js +130 -0
  324. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.d.ts +1 -17
  325. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.js +1 -93
  326. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.d.ts +16 -0
  327. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.js +92 -0
  328. package/node_modules/@oxygen/workflows/dist/workflow-schemas.d.ts +545 -0
  329. package/node_modules/@oxygen/workflows/dist/workflow-schemas.js +135 -0
  330. package/node_modules/@oxygen/workflows/package.json +4 -0
  331. package/package.json +1 -1
  332. /package/node_modules/@oxygen/shared/dist/{geo.d.ts → geo/geo.d.ts} +0 -0
  333. /package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.d.ts → mailboxes/sending-domain-rollout.d.ts} +0 -0
  334. /package/node_modules/@oxygen/shared/dist/{attempt-provenance.d.ts → observability/attempt-provenance.d.ts} +0 -0
  335. /package/node_modules/@oxygen/shared/dist/{attempt-provenance.js → observability/attempt-provenance.js} +0 -0
  336. /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.d.ts → posts/linkedin-mentions.d.ts} +0 -0
  337. /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.js → posts/linkedin-mentions.js} +0 -0
  338. /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.d.ts → posts/linkedin-post-keywords.d.ts} +0 -0
  339. /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.js → posts/linkedin-post-keywords.js} +0 -0
  340. /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.d.ts → posts/linkedin-post-url.d.ts} +0 -0
  341. /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.js → posts/linkedin-post-url.js} +0 -0
  342. /package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.js → posts/metrics-core.js} +0 -0
  343. /package/node_modules/@oxygen/shared/dist/{native-chat.d.ts → support/native-chat.d.ts} +0 -0
  344. /package/node_modules/@oxygen/shared/dist/{native-chat.js → support/native-chat.js} +0 -0
  345. /package/node_modules/@oxygen/shared/dist/{plain-support-events.d.ts → support/plain-support-events.d.ts} +0 -0
  346. /package/node_modules/@oxygen/shared/dist/{plain-support-events.js → support/plain-support-events.js} +0 -0
  347. /package/node_modules/@oxygen/shared/dist/{column-output-fields.d.ts → tables/column-output-fields.d.ts} +0 -0
  348. /package/node_modules/@oxygen/shared/dist/{linkedin-url.d.ts → tables/linkedin-url.d.ts} +0 -0
  349. /package/node_modules/@oxygen/shared/dist/{linkedin-url.js → tables/linkedin-url.js} +0 -0
  350. /package/node_modules/@oxygen/shared/dist/{select-options.d.ts → tables/select-options.d.ts} +0 -0
  351. /package/node_modules/@oxygen/shared/dist/{select-options.js → tables/select-options.js} +0 -0
@@ -1,20 +1,5 @@
1
- /**
2
- * ESP (email service provider) MATCHING mode for a sequence (settings.esp_matching).
3
- * Deliverability lore: a send lands better when the SENDING mailbox and the
4
- * RECIPIENT sit on the same provider (Google→Google, Microsoft→Microsoft), so at
5
- * mailbox-pick the dispatcher can bias rotation toward a same-ESP mailbox.
6
- * - "off" — no ESP bias; rotation is pure LRU / domain-spread.
7
- * - "prefer" — (DEFAULT) pick a same-ESP mailbox when one is available, else
8
- * fall back to any sendable mailbox (never blocks a send). On by default
9
- * because it only ever improves deliverability and cannot starve sends.
10
- * - "strict" — require a same-ESP mailbox; when none is available the action is
11
- * DEFERRED with a visible skipped_reason rather than sent cross-provider.
12
- * Power-user setting, reachable via CLI/MCP; the web "Provider Matching"
13
- * checkbox toggles off↔prefer only.
14
- */
15
- export declare const ESP_MATCHING_MODES: readonly ["off", "prefer", "strict"];
16
- export type EspMatchingMode = (typeof ESP_MATCHING_MODES)[number];
17
- export declare const DEFAULT_ESP_MATCHING_MODE: EspMatchingMode;
1
+ import { type EspMatchingMode, type RecipientEsp, type EspRouteBucket, type EspRouteWeights, type ResolvedEspPolicy, type RecipientEspFamily } from "../esp-contract.js";
2
+ export { ESP_MATCHING_MODES, type EspMatchingMode, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, type RecipientEsp, ESP_ROUTE_BUCKETS, type EspRouteBucket, type EspRouteWeights, type EspSenderExclusion, type EspRoutingPolicy, type EspMatchingSetting, type ResolvedEspPolicy, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, type RecipientEspFamily, } from "../esp-contract.js";
18
3
  export declare function isEspMatchingMode(value: unknown): value is EspMatchingMode;
19
4
  /**
20
5
  * Validate settings.esp_matching before persistence. Absent/null is valid and
@@ -27,91 +12,6 @@ export declare function isEspMatchingMode(value: unknown): value is EspMatchingM
27
12
  * settings validator alongside the budget/prioritization checks.
28
13
  */
29
14
  export declare function validateEspMatchingSetting(value: unknown): void;
30
- /**
31
- * The MATCHABLE email-provider a recipient routes through — the narrow set ESP
32
- * matching can act on. Kept intentionally aligned with EMAIL_MAILBOX_PROVIDERS in
33
- * tenant-db so a mailbox's `provider` and a resolved recipient ESP compare
34
- * directly: we can only bias rotation toward a provider we can actually SEND
35
- * from, and the pool is Google/Microsoft only.
36
- *
37
- * This is deliberately NARROWER than RECIPIENT_ESP_FAMILIES (what we DISPLAY).
38
- * A domain behind Proofpoint has family "proofpoint" but may still be matchable
39
- * as "microsoft" — see resolveEspFamily.
40
- */
41
- export declare const RECIPIENT_ESPS: readonly ["google", "microsoft"];
42
- export type RecipientEsp = (typeof RECIPIENT_ESPS)[number];
43
- /**
44
- * WEIGHTED SENDER ROUTING — the object form of settings.esp_matching.
45
- *
46
- * The three scalar modes above answer one question ("bias toward the recipient's
47
- * own provider, yes or no"), and they bake in the assumption that same-provider
48
- * is always better. That assumption fails whenever one provider's senders are in
49
- * bad standing: a workspace whose Google-hosted domains are refused by Gmail
50
- * wants its Google-hosted RECIPIENTS served from Microsoft senders, which no
51
- * scalar mode can express. "off" does not express it either, because free
52
- * rotation still hands Google recipients a Google sender in proportion to the
53
- * pool.
54
- *
55
- * So the object form states the routing directly, as SEND SHARES per recipient
56
- * provider:
57
- *
58
- * { mode: "prefer",
59
- * routes: { google: { microsoft: 100 }, microsoft: { microsoft: 100 } },
60
- * exclude: [{ domain: "burned.example", from_recipients: ["google"] }] }
61
- *
62
- * `routes` is keyed by the RECIPIENT's resolved provider; the inner map is the
63
- * SENDER provider. Weights are relative shares, so { google: 3, microsoft: 1 }
64
- * and { google: 75, microsoft: 25 } are the same policy and nothing has to sum
65
- * to 100. An omitted weight is zero. A bucket whose entry is explicitly present
66
- * but carries no positive weight means "no opinion, rotate freely for this
67
- * recipient class"; a bucket the operator never mentioned keeps the historical
68
- * same-provider default, so editing Google routing cannot silently change how
69
- * Microsoft recipients are served.
70
- *
71
- * `exclude` is a hard never, not a preference: a sender domain listed here is
72
- * removed from the candidate pool for the named recipient buckets (all buckets
73
- * when `from_recipients` is absent) in EVERY mode, including "off", and it
74
- * survives the prefer-fallback. A deliverability guard that a matching toggle
75
- * could disarm would not be a guard.
76
- *
77
- * The scalar modes remain valid values and are read as policies, so there is one
78
- * routing code path rather than two: "prefer" becomes { mode: "prefer" } with no
79
- * routes, which resolves to the same-provider default and behaves exactly as it
80
- * did before.
81
- */
82
- export declare const ESP_ROUTE_BUCKETS: readonly ["google", "microsoft", "unknown"];
83
- /** The RECIPIENT side of a route: a matchable provider, or "unknown" when resolution failed. */
84
- export type EspRouteBucket = (typeof ESP_ROUTE_BUCKETS)[number];
85
- /** The SENDER side of a route: relative send shares per mailbox provider. */
86
- export type EspRouteWeights = Partial<Record<RecipientEsp, number>>;
87
- export type EspSenderExclusion = {
88
- domain: string;
89
- from_recipients?: EspRouteBucket[];
90
- };
91
- export type EspRoutingPolicy = {
92
- mode?: EspMatchingMode;
93
- routes?: Partial<Record<EspRouteBucket, EspRouteWeights>>;
94
- exclude?: EspSenderExclusion[];
95
- };
96
- /** settings.esp_matching accepts either the legacy scalar or the routing policy. */
97
- export type EspMatchingSetting = EspMatchingMode | EspRoutingPolicy;
98
- /**
99
- * A policy with every field present, which is what the dispatcher and the launch
100
- * preview consume. Produced only by espPolicyFromSetting so both surfaces answer
101
- * identically from the same stored value.
102
- */
103
- export type ResolvedEspPolicy = {
104
- mode: EspMatchingMode;
105
- routes: Partial<Record<EspRouteBucket, EspRouteWeights>>;
106
- exclude: Array<{
107
- domain: string;
108
- buckets: readonly EspRouteBucket[];
109
- }>;
110
- };
111
- /** Cap on settings.esp_matching.exclude — a routing policy, not a suppression list. */
112
- export declare const MAX_ESP_SENDER_EXCLUSIONS = 50;
113
- /** Upper bound on a single route weight; relative shares never need more. */
114
- export declare const MAX_ESP_ROUTE_WEIGHT = 1000000;
115
15
  export declare function isEspRouteBucket(value: unknown): value is EspRouteBucket;
116
16
  /**
117
17
  * A sending domain as the mailbox table stores it: lowercase, no leading "@".
@@ -161,22 +61,6 @@ export declare function espRouteCandidates(input: {
161
61
  * prefer-fallback — see the exclude contract above.
162
62
  */
163
63
  export declare function espExcludedSenderDomains(policy: ResolvedEspPolicy, bucket: EspRouteBucket): string[];
164
- /**
165
- * The DISPLAY taxonomy: the mail-infrastructure family a recipient domain sits
166
- * on. Wider than RecipientEsp because "everything that isn't Google or Microsoft"
167
- * is not one thing — a list that is 23% Proofpoint is a very different
168
- * deliverability problem from one that is 23% self-hosted, and collapsing both to
169
- * null (today's behavior) hides that. Split into three groups:
170
- *
171
- * - MAILBOX providers (google, microsoft) — imply a matchable ESP.
172
- * - GATEWAY vendors (proofpoint, mimecast, ...) — security filters that sit IN
173
- * FRONT of a mailbox provider. Their MX tells you the filter, NOT where the
174
- * mailbox lives; the SPF fallback is what sees behind them.
175
- * - OTHER mailbox hosts (zoho, yahoo, fastmail, ...) and self_hosted — real
176
- * destinations we simply cannot send as, so never matchable.
177
- */
178
- export declare const RECIPIENT_ESP_FAMILIES: readonly ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "zscaler", "trendmicro", "sophos", "zoho", "yahoo", "apple", "proton", "fastmail", "gmx", "amazon", "self_hosted"];
179
- export type RecipientEspFamily = (typeof RECIPIENT_ESP_FAMILIES)[number];
180
64
  export declare function isRecipientEspFamily(value: unknown): value is RecipientEspFamily;
181
65
  export declare function isEspGatewayFamily(family: RecipientEspFamily | null | undefined): boolean;
182
66
  /**
@@ -1,23 +1,7 @@
1
1
  import { OxygenError } from "../cli-result.js";
2
2
  import { hashVariantKey } from "../sequence-template.js";
3
- /**
4
- * ESP (email service provider) MATCHING mode for a sequence (settings.esp_matching).
5
- * Deliverability lore: a send lands better when the SENDING mailbox and the
6
- * RECIPIENT sit on the same provider (Google→Google, Microsoft→Microsoft), so at
7
- * mailbox-pick the dispatcher can bias rotation toward a same-ESP mailbox.
8
- * - "off" — no ESP bias; rotation is pure LRU / domain-spread.
9
- * - "prefer" — (DEFAULT) pick a same-ESP mailbox when one is available, else
10
- * fall back to any sendable mailbox (never blocks a send). On by default
11
- * because it only ever improves deliverability and cannot starve sends.
12
- * - "strict" — require a same-ESP mailbox; when none is available the action is
13
- * DEFERRED with a visible skipped_reason rather than sent cross-provider.
14
- * Power-user setting, reachable via CLI/MCP; the web "Provider Matching"
15
- * checkbox toggles off↔prefer only.
16
- */
17
- export const ESP_MATCHING_MODES = ["off", "prefer", "strict"];
18
- // Provider Matching is ON by default (prefer): a same-provider send lands better,
19
- // and prefer never blocks — an absent setting biases mailbox pick without risk.
20
- export const DEFAULT_ESP_MATCHING_MODE = "prefer";
3
+ import { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, } from "../esp-contract.js";
4
+ export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, } from "../esp-contract.js";
21
5
  export function isEspMatchingMode(value) {
22
6
  return typeof value === "string" && ESP_MATCHING_MODES.includes(value);
23
7
  }
@@ -118,62 +102,6 @@ function validateEspRoutingPolicy(record) {
118
102
  });
119
103
  }
120
104
  }
121
- /**
122
- * The MATCHABLE email-provider a recipient routes through — the narrow set ESP
123
- * matching can act on. Kept intentionally aligned with EMAIL_MAILBOX_PROVIDERS in
124
- * tenant-db so a mailbox's `provider` and a resolved recipient ESP compare
125
- * directly: we can only bias rotation toward a provider we can actually SEND
126
- * from, and the pool is Google/Microsoft only.
127
- *
128
- * This is deliberately NARROWER than RECIPIENT_ESP_FAMILIES (what we DISPLAY).
129
- * A domain behind Proofpoint has family "proofpoint" but may still be matchable
130
- * as "microsoft" — see resolveEspFamily.
131
- */
132
- export const RECIPIENT_ESPS = ["google", "microsoft"];
133
- /**
134
- * WEIGHTED SENDER ROUTING — the object form of settings.esp_matching.
135
- *
136
- * The three scalar modes above answer one question ("bias toward the recipient's
137
- * own provider, yes or no"), and they bake in the assumption that same-provider
138
- * is always better. That assumption fails whenever one provider's senders are in
139
- * bad standing: a workspace whose Google-hosted domains are refused by Gmail
140
- * wants its Google-hosted RECIPIENTS served from Microsoft senders, which no
141
- * scalar mode can express. "off" does not express it either, because free
142
- * rotation still hands Google recipients a Google sender in proportion to the
143
- * pool.
144
- *
145
- * So the object form states the routing directly, as SEND SHARES per recipient
146
- * provider:
147
- *
148
- * { mode: "prefer",
149
- * routes: { google: { microsoft: 100 }, microsoft: { microsoft: 100 } },
150
- * exclude: [{ domain: "burned.example", from_recipients: ["google"] }] }
151
- *
152
- * `routes` is keyed by the RECIPIENT's resolved provider; the inner map is the
153
- * SENDER provider. Weights are relative shares, so { google: 3, microsoft: 1 }
154
- * and { google: 75, microsoft: 25 } are the same policy and nothing has to sum
155
- * to 100. An omitted weight is zero. A bucket whose entry is explicitly present
156
- * but carries no positive weight means "no opinion, rotate freely for this
157
- * recipient class"; a bucket the operator never mentioned keeps the historical
158
- * same-provider default, so editing Google routing cannot silently change how
159
- * Microsoft recipients are served.
160
- *
161
- * `exclude` is a hard never, not a preference: a sender domain listed here is
162
- * removed from the candidate pool for the named recipient buckets (all buckets
163
- * when `from_recipients` is absent) in EVERY mode, including "off", and it
164
- * survives the prefer-fallback. A deliverability guard that a matching toggle
165
- * could disarm would not be a guard.
166
- *
167
- * The scalar modes remain valid values and are read as policies, so there is one
168
- * routing code path rather than two: "prefer" becomes { mode: "prefer" } with no
169
- * routes, which resolves to the same-provider default and behaves exactly as it
170
- * did before.
171
- */
172
- export const ESP_ROUTE_BUCKETS = ["google", "microsoft", "unknown"];
173
- /** Cap on settings.esp_matching.exclude — a routing policy, not a suppression list. */
174
- export const MAX_ESP_SENDER_EXCLUSIONS = 50;
175
- /** Upper bound on a single route weight; relative shares never need more. */
176
- export const MAX_ESP_ROUTE_WEIGHT = 1_000_000;
177
105
  export function isEspRouteBucket(value) {
178
106
  return typeof value === "string" && ESP_ROUTE_BUCKETS.includes(value);
179
107
  }
@@ -323,39 +251,6 @@ export function espExcludedSenderDomains(policy, bucket) {
323
251
  }
324
252
  return [...domains];
325
253
  }
326
- /**
327
- * The DISPLAY taxonomy: the mail-infrastructure family a recipient domain sits
328
- * on. Wider than RecipientEsp because "everything that isn't Google or Microsoft"
329
- * is not one thing — a list that is 23% Proofpoint is a very different
330
- * deliverability problem from one that is 23% self-hosted, and collapsing both to
331
- * null (today's behavior) hides that. Split into three groups:
332
- *
333
- * - MAILBOX providers (google, microsoft) — imply a matchable ESP.
334
- * - GATEWAY vendors (proofpoint, mimecast, ...) — security filters that sit IN
335
- * FRONT of a mailbox provider. Their MX tells you the filter, NOT where the
336
- * mailbox lives; the SPF fallback is what sees behind them.
337
- * - OTHER mailbox hosts (zoho, yahoo, fastmail, ...) and self_hosted — real
338
- * destinations we simply cannot send as, so never matchable.
339
- */
340
- export const RECIPIENT_ESP_FAMILIES = [
341
- "google",
342
- "microsoft",
343
- "proofpoint",
344
- "mimecast",
345
- "barracuda",
346
- "cisco",
347
- "zscaler",
348
- "trendmicro",
349
- "sophos",
350
- "zoho",
351
- "yahoo",
352
- "apple",
353
- "proton",
354
- "fastmail",
355
- "gmx",
356
- "amazon",
357
- "self_hosted",
358
- ];
359
254
  export function isRecipientEspFamily(value) {
360
255
  return typeof value === "string" && RECIPIENT_ESP_FAMILIES.includes(value);
361
256
  }
@@ -91,7 +91,6 @@ export declare const SEQUENCE_EMAIL_COLUMN_KEYS: readonly ["email", "email_addre
91
91
  export declare function recipientEmailFromRow(rowValues: Record<string, unknown> | null | undefined, emailColumnKey?: string | null): string | null;
92
92
  /** The `{{key}}` columns one template reads (the copy-provenance stamp keys its entries by them). */
93
93
  export { templateColumnKeys };
94
- export { ESP_MATCHING_MODES, type EspMatchingMode, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, type RecipientEsp, ESP_ROUTE_BUCKETS, type EspRouteBucket, type EspRouteWeights, type EspSenderExclusion, type EspRoutingPolicy, type EspMatchingSetting, type ResolvedEspPolicy, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, type RecipientEspFamily, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
95
94
  /**
96
95
  * row_values keys an enrollment's phone number may live under, in
97
96
  * send-precedence order, for WhatsApp sends. The enroll path resolves the FIRST
@@ -158,8 +158,6 @@ export function recipientEmailFromRow(rowValues, emailColumnKey) {
158
158
  }
159
159
  /** The `{{key}}` columns one template reads (the copy-provenance stamp keys its entries by them). */
160
160
  export { templateColumnKeys };
161
- // Existing Sequence imports retain the same ESP contract and function identities.
162
- export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
163
161
  /**
164
162
  * row_values keys an enrollment's phone number may live under, in
165
163
  * send-precedence order, for WhatsApp sends. The enroll path resolves the FIRST
@@ -1,4 +1,4 @@
1
- import type { CapabilityRouteMatch } from "./capability-discovery.js";
1
+ import type { CapabilityRouteMatch } from "../capability-discovery.js";
2
2
  export declare function nativeChatEnabled(env?: NodeJS.ProcessEnv): boolean;
3
3
  export declare function isNativeChatTool(name: string): boolean;
4
4
  /** The compiled support card includes the dev surface; hosted discovery projects it away when closed. */
@@ -1,4 +1,4 @@
1
- import { resolveDeployEnv } from "./deploy-env.js";
1
+ import { resolveDeployEnv } from "../deploy-env.js";
2
2
  export function nativeChatEnabled(env = process.env) {
3
3
  if (!/^(1|true|on)$/i.test(env.OXYGEN_NATIVE_CHAT_ENABLED?.trim() ?? ""))
4
4
  return false;
@@ -1,4 +1,4 @@
1
- import { looksLikeUrlIdentifier, normalizeLinkedinProfileUrl } from "./linkedin-url.js";
1
+ import { looksLikeUrlIdentifier, normalizeLinkedinProfileUrl } from "./tables/linkedin-url.js";
2
2
  /**
3
3
  * A LinkedIn member id as Unipile surfaces it (e.g. "ACoAADXaTD4B…"): the "AC"
4
4
  * prefix plus base64url payload. Anchored and length-bounded so a short word that
@@ -1,4 +1,4 @@
1
- import { type SelectOption } from "./select-options.js";
1
+ import { type SelectOption } from "./tables/select-options.js";
2
2
  export declare const TABLE_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "json", "markdown", "image", "select", "multi_select", "status"];
3
3
  export type TableFieldType = (typeof TABLE_FIELD_TYPES)[number];
4
4
  export type TableFieldDataType = "text" | "numeric" | "boolean" | "timestamptz" | "jsonb";
@@ -14,8 +14,8 @@
14
14
  // thing a person or an agent actually asks for.
15
15
  //
16
16
  // CLIENT-SAFE LEAF: the web picker imports it; keep runtime imports to
17
- // ./select-options.
18
- import { normalizeSelectOptions } from "./select-options.js";
17
+ // ./tables/select-options.
18
+ import { normalizeSelectOptions } from "./tables/select-options.js";
19
19
  export const TABLE_FIELD_TYPES = [
20
20
  "text",
21
21
  "number",
@@ -26,10 +26,10 @@
26
26
  * may contain a dot or a space. Such a field carries `referenceable: false` and
27
27
  * is display-only.
28
28
  */
29
- import { buildResearchCellSchema, isResearchEnvelopeSchema, researchEvidenceRequired, deriveResearchOutputContract, usesServerManagedResearchSchema, } from "./research-output-contract.js";
30
- import { isTemplateSafePath, parseJsonPath, readJsonPath } from "./json-path.js";
31
- import { isRecord } from "./type-guards.js";
32
- import { readString } from "./value-readers.js";
29
+ import { buildResearchCellSchema, isResearchEnvelopeSchema, researchEvidenceRequired, deriveResearchOutputContract, usesServerManagedResearchSchema, } from "../research-output-contract.js";
30
+ import { isTemplateSafePath, parseJsonPath, readJsonPath } from "../json-path.js";
31
+ import { isRecord } from "../type-guards.js";
32
+ import { readString } from "../value-readers.js";
33
33
  const MAX_FIELDS = 40;
34
34
  const MAX_SCHEMA_DEPTH = 5;
35
35
  const EMPTY_CONTRACT = {
@@ -1,4 +1,4 @@
1
- import type { TagColor } from "./select-options.js";
1
+ import type { TagColor } from "../tables/select-options.js";
2
2
  /** Primitive kinds that participate in the workspace tag union today. */
3
3
  export declare const TAG_KINDS: readonly ["knowledge_page", "publishing_post", "sequence", "table", "workflow", "recipe", "conversation", "mailbox", "sender", "record", "domain", "project", "sender_profile", "voice_number", "signal_type", "dashboard", "agent", "ad_search_collection"];
4
4
  export type TagKind = (typeof TAG_KINDS)[number];
@@ -10,7 +10,7 @@
10
10
  // `ox_context.workspace_tags`) OR CARRIED (some store's tags array holds it).
11
11
  // The registry is an ANNOTATION table — description, color override, pinned —
12
12
  // and never records which items carry a tag. Drift is legal in both directions.
13
- import { casePreservingTagWritesReady } from "./write-rollout.js";
13
+ import { casePreservingTagWritesReady } from "../write-rollout.js";
14
14
  /** Primitive kinds that participate in the workspace tag union today. */
15
15
  export const TAG_KINDS = [
16
16
  "knowledge_page",
@@ -0,0 +1,5 @@
1
+ /** Applied tenant-isolation markers stay recorded when a process bundles only static migrations. */
2
+ export declare const RLS_ROLLOUT_MIGRATION_NAME = "9999_rls_tenant_isolation.sql";
3
+ export declare const COMPOSITE_FK_MIGRATION_NAME = "9999_tenant_composite_fks.sql";
4
+ /** Exact generated entries; an unknown future 9999 tail remains a distinct schema frontier. */
5
+ export declare const CODE_GENERATED_MIGRATION_NAMES: ReadonlySet<string>;
@@ -0,0 +1,8 @@
1
+ /** Applied tenant-isolation markers stay recorded when a process bundles only static migrations. */
2
+ export const RLS_ROLLOUT_MIGRATION_NAME = "9999_rls_tenant_isolation.sql";
3
+ export const COMPOSITE_FK_MIGRATION_NAME = "9999_tenant_composite_fks.sql";
4
+ /** Exact generated entries; an unknown future 9999 tail remains a distinct schema frontier. */
5
+ export const CODE_GENERATED_MIGRATION_NAMES = new Set([
6
+ RLS_ROLLOUT_MIGRATION_NAME,
7
+ COMPOSITE_FK_MIGRATION_NAME,
8
+ ]);
@@ -1,4 +1,4 @@
1
- import { linkedinPostIdFromUrl, looksLikeUrlIdentifier } from "./linkedin-url.js";
1
+ import { linkedinPostIdFromUrl, looksLikeUrlIdentifier } from "./tables/linkedin-url.js";
2
2
  /** Provider aliases for the same public post must share one deduplication key. */
3
3
  export function normalizeLinkedInAmplificationTargetId(value) {
4
4
  const raw = value.trim();
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1014.1895";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1014.2040";
@@ -1,2 +1,2 @@
1
1
  // GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
2
- export const OXYGEN_BUILD_VERSION = "1.1014.1895";
2
+ export const OXYGEN_BUILD_VERSION = "1.1014.2040";
@@ -1,3 +1,4 @@
1
+ import { placementProviderDirections, placementScheduleSummary, type WorkspacePlacementSchedule } from "./workspace-placement-schedule.js";
1
2
  import { type WorkspacePlacementMailbox, type WorkspacePlacementPlan, type WorkspacePlacementVariant } from "./workspace-placement.js";
2
3
  import { type WorkspacePlacementView } from "./workspace-placement-view.js";
3
4
  export declare const MAX_BULK_PLACEMENT_MESSAGES = 20000;
@@ -11,6 +12,9 @@ export type BulkPlacementCoverage = Record<"google" | "microsoft", {
11
12
  planned: number;
12
13
  }>;
13
14
  export type WorkspacePlacementBulkPlan = {
15
+ provider_directions?: ReturnType<typeof placementProviderDirections>;
16
+ schedule_summary?: ReturnType<typeof placementScheduleSummary>;
17
+ scheduling?: WorkspacePlacementSchedule;
14
18
  request_id: string;
15
19
  organization_id: string;
16
20
  plan_hash: string;
@@ -40,6 +44,7 @@ export type WorkspacePlacementBulkPreview = Omit<WorkspacePlacementBulkPlan, "or
40
44
  receiver_provider: "google" | "microsoft";
41
45
  variant: string;
42
46
  subject: string;
47
+ scheduled_at?: string;
43
48
  body_text_characters: number;
44
49
  body_html_characters: number;
45
50
  }>;
@@ -60,6 +65,7 @@ export declare function bulkPlacementId(value: string): string;
60
65
  export declare function readBulkPlacementProviders(value: unknown): Array<"google" | "microsoft">;
61
66
  /** Own-account rotation, never a sender × receiver Cartesian product. */
62
67
  export declare function buildWorkspacePlacementBulkPlan(input: {
68
+ schedule?: boolean;
63
69
  requestId: string;
64
70
  organizationId: string;
65
71
  renderedAt: string;
@@ -1,3 +1,4 @@
1
+ import { WORKSPACE_PLACEMENT_SCHEDULE, planPlacementSlots, placementProviderDirections, placementScheduleSummary } from "./workspace-placement-schedule.js";
1
2
  import { createHash } from "node:crypto";
2
3
  import { CliHttpError } from "./cli-http-error.js";
3
4
  import { readWorkspacePlacementVariants, workspacePlacementId } from "./workspace-placement.js";
@@ -51,12 +52,18 @@ export function buildWorkspacePlacementBulkPlan(input) {
51
52
  probes.push({ id, sender, receiver, variant });
52
53
  coverage[provider].planned++;
53
54
  }
55
+ if (input.schedule) {
56
+ const slots = new Map(planPlacementSlots(probes, new Date(input.renderedAt)).map(s => [s.id, s]));
57
+ for (const p of probes)
58
+ p.scheduled_at = slots.get(p.id).scheduled_at;
59
+ }
60
+ const scheduling = input.schedule ? { scheduling: WORKSPACE_PLACEMENT_SCHEDULE } : {};
54
61
  const children = [];
55
62
  for (let offset = 0; offset < probes.length; offset += 50) {
56
- const child = { request_id: bulkPlacementId(`${organizationId}:${requestId}:child:${offset / 50}`), organization_id: organizationId, provider: "internal", billing_mode: "internal", credits: 0, allow_paused_probe: input.allowPausedProbe, receiver_scope: "workspace", rendered_at: input.renderedAt, rendering: input.rendering, probes: probes.slice(offset, offset + 50), excluded_self_sends: 0, message_count: Math.min(50, probes.length - offset) };
63
+ const child = { ...scheduling, request_id: bulkPlacementId(`${organizationId}:${requestId}:child:${offset / 50}`), organization_id: organizationId, provider: "internal", billing_mode: "internal", credits: 0, allow_paused_probe: input.allowPausedProbe, receiver_scope: "workspace", rendered_at: input.renderedAt, rendering: input.rendering, probes: probes.slice(offset, offset + 50), excluded_self_sends: 0, message_count: Math.min(50, probes.length - offset) };
57
64
  children.push({ ...child, plan_hash: createHash("sha256").update(JSON.stringify(child)).digest("hex") });
58
65
  }
59
- const plan = { request_id: requestId, organization_id: organizationId, rendered_at: input.renderedAt, message_count: count, child_count: children.length, sender_count: senders.length, receiver_providers: providers, skipped_senders: [...(input.skippedSenders ?? [])].sort((a, b) => a.id.localeCompare(b.id)), coverage, children };
66
+ const plan = { ...scheduling, ...(input.schedule ? { provider_directions: placementProviderDirections(probes), schedule_summary: placementScheduleSummary(probes.map(p => ({ scheduled_at: p.scheduled_at }))) } : {}), request_id: requestId, organization_id: organizationId, rendered_at: input.renderedAt, message_count: count, child_count: children.length, sender_count: senders.length, receiver_providers: providers, skipped_senders: [...(input.skippedSenders ?? [])].sort((a, b) => a.id.localeCompare(b.id)), coverage, children };
60
67
  return { ...plan, plan_hash: createHash("sha256").update(JSON.stringify(plan)).digest("hex") };
61
68
  }
62
69
  export function bulkPlacementSkippedPage(plan, cursor) {
@@ -0,0 +1,44 @@
1
+ /** Native workspace diagnostics have their own allowance; campaign caps are unchanged. */
2
+ export declare const WORKSPACE_PLACEMENT_SCHEDULE: {
3
+ readonly version: 1;
4
+ readonly daily_send_limit: 3;
5
+ readonly window_minutes: 30;
6
+ };
7
+ export type WorkspacePlacementSchedule = typeof WORKSPACE_PLACEMENT_SCHEDULE;
8
+ export type PlacementSlot = {
9
+ id: string;
10
+ mailbox_id: string;
11
+ scheduled_at: string;
12
+ spacing_ms: number;
13
+ };
14
+ export declare function placementUtcDay(at: number): number;
15
+ /** Deterministic estimate, also used under mailbox locks to reserve the actual schedule. */
16
+ export declare function planPlacementSlots(probes: Array<{
17
+ id: string;
18
+ sender: {
19
+ id: string;
20
+ };
21
+ }>, start: Date, occupied?: Array<{
22
+ mailbox_id: string;
23
+ at: string;
24
+ }>): PlacementSlot[];
25
+ export declare function placementScheduleSummary(slots: Array<{
26
+ scheduled_at: string;
27
+ }>): {
28
+ first_send_at: string | null;
29
+ estimated_last_send_at: string | null;
30
+ daily_batches: number;
31
+ };
32
+ export declare function placementProviderDirections(probes: Array<{
33
+ sender: {
34
+ provider: string;
35
+ };
36
+ receiver: {
37
+ provider: string;
38
+ };
39
+ }>): {
40
+ google_to_google: number;
41
+ google_to_microsoft: number;
42
+ microsoft_to_google: number;
43
+ microsoft_to_microsoft: number;
44
+ };
@@ -0,0 +1,90 @@
1
+ /** Native workspace diagnostics have their own allowance; campaign caps are unchanged. */
2
+ export const WORKSPACE_PLACEMENT_SCHEDULE = {
3
+ version: 1,
4
+ daily_send_limit: 3,
5
+ window_minutes: 30,
6
+ };
7
+ const DAY = 86_400_000;
8
+ const WINDOW = WORKSPACE_PLACEMENT_SCHEDULE.window_minutes * 60_000;
9
+ export function placementUtcDay(at) {
10
+ return Math.floor(at / DAY) * DAY;
11
+ }
12
+ /** Deterministic estimate, also used under mailbox locks to reserve the actual schedule. */
13
+ export function planPlacementSlots(probes, start, occupied = []) {
14
+ const groups = new Map();
15
+ for (const p of probes)
16
+ groups.set(p.sender.id, [...(groups.get(p.sender.id) ?? []), p.id]);
17
+ const result = [];
18
+ for (const [mailboxId, ids] of groups) {
19
+ const prior = occupied
20
+ .filter((s) => s.mailbox_id === mailboxId)
21
+ .map((s) => Date.parse(s.at));
22
+ let cursor = start.getTime();
23
+ while (ids.length) {
24
+ const day = placementUtcDay(cursor);
25
+ const used = prior.filter((at) => placementUtcDay(at) === day);
26
+ const count = Math.min(3 - used.length, ids.length);
27
+ if (count <= 0) {
28
+ cursor = day + DAY;
29
+ continue;
30
+ }
31
+ const first = Math.max(cursor, ...used.map((at) => at + WINDOW / 2));
32
+ const end = first + (count > 1 ? WINDOW : 0);
33
+ if (end >= day + DAY) {
34
+ cursor = day + DAY;
35
+ continue;
36
+ }
37
+ for (let i = 0; i < count; i++) {
38
+ const at = first + (count > 1 ? (i * WINDOW) / (count - 1) : 0);
39
+ result.push({
40
+ id: ids.shift(),
41
+ mailbox_id: mailboxId,
42
+ scheduled_at: new Date(at).toISOString(),
43
+ spacing_ms: count > 1 ? WINDOW / (count - 1) : WINDOW / 2,
44
+ });
45
+ prior.push(at);
46
+ }
47
+ cursor = day + DAY;
48
+ }
49
+ }
50
+ // A final day may contain one probe per mailbox. Stagger those distinct
51
+ // senders too: a multi-mailbox batch still spans the thirty-minute window.
52
+ const days = new Map();
53
+ for (const slot of result) {
54
+ const day = slot.scheduled_at.slice(0, 10);
55
+ days.set(day, [...(days.get(day) ?? []), slot]);
56
+ }
57
+ for (const slots of days.values()) {
58
+ if (slots.length < 2 ||
59
+ new Set(slots.map((s) => s.mailbox_id)).size !== slots.length)
60
+ continue;
61
+ const first = Math.max(...slots.map((s) => Date.parse(s.scheduled_at)));
62
+ if (first + WINDOW >= placementUtcDay(first) + DAY)
63
+ continue;
64
+ for (const [index, slot] of slots.entries())
65
+ slot.scheduled_at = new Date(first + (index * WINDOW) / (slots.length - 1)).toISOString();
66
+ }
67
+ return result;
68
+ }
69
+ export function placementScheduleSummary(slots) {
70
+ const times = slots.map((s) => s.scheduled_at).sort();
71
+ return {
72
+ first_send_at: times[0] ?? null,
73
+ estimated_last_send_at: times.at(-1) ?? null,
74
+ daily_batches: new Set(times.map((at) => at.slice(0, 10))).size,
75
+ };
76
+ }
77
+ export function placementProviderDirections(probes) {
78
+ const counts = {
79
+ google_to_google: 0,
80
+ google_to_microsoft: 0,
81
+ microsoft_to_google: 0,
82
+ microsoft_to_microsoft: 0,
83
+ };
84
+ for (const p of probes) {
85
+ const key = `${p.sender.provider}_to_${p.receiver.provider}`;
86
+ if (key in counts)
87
+ counts[key]++;
88
+ }
89
+ return counts;
90
+ }