outbound-sdk 0.0.0-stage → 0.2.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 (284) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -2
  3. package/dist/alerts/index.d.ts +2 -0
  4. package/dist/alerts/index.js +140 -0
  5. package/dist/alerts/plugin.d.ts +58 -0
  6. package/dist/audit/index.d.ts +33 -0
  7. package/dist/audit/index.js +60 -0
  8. package/dist/benchmarks/index.d.ts +29 -0
  9. package/dist/benchmarks/index.js +72 -0
  10. package/dist/budget/index.d.ts +21 -0
  11. package/dist/budget/index.js +71 -0
  12. package/dist/cache/index.d.ts +31 -0
  13. package/dist/cache/index.js +11 -0
  14. package/dist/cards/content.d.ts +43 -0
  15. package/dist/cards/copy-cards.d.ts +2 -0
  16. package/dist/cards/format.d.ts +39 -0
  17. package/dist/cards/index.d.ts +9 -0
  18. package/dist/cards/index.js +2070 -0
  19. package/dist/cards/notify-cards.d.ts +14 -0
  20. package/dist/cards/ops-cards.d.ts +2 -0
  21. package/dist/cards/parts.d.ts +22 -0
  22. package/dist/cards/people-cards.d.ts +2 -0
  23. package/dist/cards/render.d.ts +28 -0
  24. package/dist/cards/sender-cards.d.ts +2 -0
  25. package/dist/cards/slack-rich.d.ts +19 -0
  26. package/dist/cards/slack-text.d.ts +10 -0
  27. package/dist/cards/slack.d.ts +21 -0
  28. package/dist/cards/spec.d.ts +86 -0
  29. package/dist/cards/tool-cards.d.ts +4 -0
  30. package/dist/chunks/chunk-4O2HRTTI.js +75 -0
  31. package/dist/chunks/chunk-4PSO6JEK.js +357 -0
  32. package/dist/chunks/chunk-6CVZOUHB.js +152 -0
  33. package/dist/chunks/chunk-AFU5E5QB.js +714 -0
  34. package/dist/chunks/chunk-DJ2IUQEU.js +111 -0
  35. package/dist/chunks/chunk-E7JHLNLG.js +187 -0
  36. package/dist/chunks/chunk-FHKSLCVW.js +154 -0
  37. package/dist/chunks/chunk-FKH5N47I.js +40 -0
  38. package/dist/chunks/chunk-HZCTYL22.js +29 -0
  39. package/dist/chunks/chunk-IPUYZD4O.js +25 -0
  40. package/dist/chunks/chunk-IVH3NMQZ.js +61 -0
  41. package/dist/chunks/chunk-LVYG7XZJ.js +45 -0
  42. package/dist/chunks/chunk-NAKXLBA6.js +30 -0
  43. package/dist/chunks/chunk-NAWZ73QS.js +22 -0
  44. package/dist/chunks/chunk-PMSSUWD7.js +636 -0
  45. package/dist/chunks/chunk-PURHK3JU.js +432 -0
  46. package/dist/chunks/chunk-R3Y56YVF.js +43 -0
  47. package/dist/chunks/chunk-RCZ7ZZFU.js +92 -0
  48. package/dist/chunks/chunk-SBIZDCRY.js +106 -0
  49. package/dist/chunks/chunk-U2D34ARZ.js +41 -0
  50. package/dist/chunks/chunk-UAT3JSJZ.js +331 -0
  51. package/dist/chunks/chunk-VQSCHOBV.js +111 -0
  52. package/dist/chunks/chunk-XC6CZP73.js +80 -0
  53. package/dist/chunks/chunk-XNFESPZH.js +2307 -0
  54. package/dist/chunks/chunk-YOTW5ESM.js +118 -0
  55. package/dist/cli/bin.d.ts +2 -0
  56. package/dist/cli/bin.js +35 -0
  57. package/dist/cli/commands.d.ts +19 -0
  58. package/dist/cli/config.d.ts +22 -0
  59. package/dist/cli/index.d.ts +17 -0
  60. package/dist/cli/index.js +30 -0
  61. package/dist/cli/mcp.d.ts +14 -0
  62. package/dist/cli/stdio.d.ts +9 -0
  63. package/dist/clients/index.d.ts +2 -0
  64. package/dist/clients/index.js +117 -0
  65. package/dist/clients/plugin.d.ts +42 -0
  66. package/dist/combine/account.d.ts +4 -0
  67. package/dist/combine/adapter.d.ts +9 -0
  68. package/dist/combine/index.d.ts +2 -0
  69. package/dist/combine/index.js +420 -0
  70. package/dist/combine/route.d.ts +24 -0
  71. package/dist/exporter/index.d.ts +29 -0
  72. package/dist/exporter/index.js +77 -0
  73. package/dist/failover/index.d.ts +11 -0
  74. package/dist/failover/index.js +45 -0
  75. package/dist/fixtures/index.d.ts +27 -0
  76. package/dist/fixtures/index.js +260 -0
  77. package/dist/fixtures/scrub.d.ts +5 -0
  78. package/dist/heyreach/account.d.ts +11 -0
  79. package/dist/heyreach/adapter.d.ts +5 -0
  80. package/dist/heyreach/capabilities.d.ts +70 -0
  81. package/dist/heyreach/client.d.ts +18 -0
  82. package/dist/heyreach/inbox.d.ts +7 -0
  83. package/dist/heyreach/index.d.ts +25 -0
  84. package/dist/heyreach/index.js +1931 -0
  85. package/dist/heyreach/leads.d.ts +4 -0
  86. package/dist/heyreach/lookup.d.ts +15 -0
  87. package/dist/heyreach/map-account.d.ts +31 -0
  88. package/dist/heyreach/map-sequence.d.ts +5 -0
  89. package/dist/heyreach/map-stats.d.ts +13 -0
  90. package/dist/heyreach/map.d.ts +37 -0
  91. package/dist/heyreach/native-organization.d.ts +128 -0
  92. package/dist/heyreach/native-voice.d.ts +106 -0
  93. package/dist/heyreach/native.d.ts +496 -0
  94. package/dist/heyreach/paging.d.ts +7 -0
  95. package/dist/heyreach/webhooks.d.ts +3 -0
  96. package/dist/identity/index.d.ts +3 -0
  97. package/dist/identity/index.js +159 -0
  98. package/dist/identity/keys.d.ts +9 -0
  99. package/dist/identity/plugin.d.ts +34 -0
  100. package/dist/index.d.ts +33 -0
  101. package/dist/index.js +131 -0
  102. package/dist/insights/copy/copy-audit.d.ts +55 -0
  103. package/dist/insights/copy/copy-checks.d.ts +44 -0
  104. package/dist/insights/copy/copy-reuse.d.ts +59 -0
  105. package/dist/insights/copy/index.d.ts +67 -0
  106. package/dist/insights/copy/reply-timing.d.ts +63 -0
  107. package/dist/insights/copy/shared.d.ts +53 -0
  108. package/dist/insights/copy/step-funnel.d.ts +66 -0
  109. package/dist/insights/copy/variant-test.d.ts +64 -0
  110. package/dist/insights/define.d.ts +98 -0
  111. package/dist/insights/index.d.ts +10 -0
  112. package/dist/insights/index.js +4937 -0
  113. package/dist/insights/ops/anomalies.d.ts +80 -0
  114. package/dist/insights/ops/campaign-diagnosis.d.ts +39 -0
  115. package/dist/insights/ops/campaign-ranking.d.ts +56 -0
  116. package/dist/insights/ops/channel-mix.d.ts +44 -0
  117. package/dist/insights/ops/client-report.d.ts +76 -0
  118. package/dist/insights/ops/diagnosis-checks.d.ts +48 -0
  119. package/dist/insights/ops/index.d.ts +135 -0
  120. package/dist/insights/ops/period-comparison.d.ts +86 -0
  121. package/dist/insights/ops/pipeline-forecast.d.ts +44 -0
  122. package/dist/insights/ops/shared.d.ts +155 -0
  123. package/dist/insights/ops/tag-rollup.d.ts +32 -0
  124. package/dist/insights/people/account-summary.d.ts +68 -0
  125. package/dist/insights/people/dropped-replies.d.ts +51 -0
  126. package/dist/insights/people/find.d.ts +18 -0
  127. package/dist/insights/people/hot-leads.d.ts +67 -0
  128. package/dist/insights/people/index.d.ts +88 -0
  129. package/dist/insights/people/lead-collisions.d.ts +43 -0
  130. package/dist/insights/people/person-summary.d.ts +46 -0
  131. package/dist/insights/people/personalization-gaps.d.ts +60 -0
  132. package/dist/insights/people/read.d.ts +40 -0
  133. package/dist/insights/people/suppression-check.d.ts +53 -0
  134. package/dist/insights/plugin.d.ts +40 -0
  135. package/dist/insights/registry.d.ts +335 -0
  136. package/dist/insights/senders/bounce-watch.d.ts +70 -0
  137. package/dist/insights/senders/domain-health.d.ts +69 -0
  138. package/dist/insights/senders/index.d.ts +74 -0
  139. package/dist/insights/senders/read.d.ts +37 -0
  140. package/dist/insights/senders/sender-capacity.d.ts +67 -0
  141. package/dist/insights/senders/sender-load.d.ts +52 -0
  142. package/dist/insights/senders/settings-audit.d.ts +48 -0
  143. package/dist/insights/senders/warmup-readiness.d.ts +39 -0
  144. package/dist/insights/stats.d.ts +45 -0
  145. package/dist/insights/tools.d.ts +16 -0
  146. package/dist/insights/types.d.ts +4 -0
  147. package/dist/instantly/adapter-account.d.ts +5 -0
  148. package/dist/instantly/adapter-mail.d.ts +3 -0
  149. package/dist/instantly/adapter.d.ts +7 -0
  150. package/dist/instantly/capabilities.d.ts +85 -0
  151. package/dist/instantly/client.d.ts +24 -0
  152. package/dist/instantly/index.d.ts +27 -0
  153. package/dist/instantly/index.js +2627 -0
  154. package/dist/instantly/map-account.d.ts +38 -0
  155. package/dist/instantly/map-lead.d.ts +18 -0
  156. package/dist/instantly/map-stats.d.ts +25 -0
  157. package/dist/instantly/map.d.ts +22 -0
  158. package/dist/instantly/native-agents-sales.d.ts +161 -0
  159. package/dist/instantly/native-agents.d.ts +156 -0
  160. package/dist/instantly/native-campaigns.d.ts +101 -0
  161. package/dist/instantly/native-leads.d.ts +93 -0
  162. package/dist/instantly/native-params.d.ts +7 -0
  163. package/dist/instantly/native-search.d.ts +82 -0
  164. package/dist/instantly/native-senders.d.ts +182 -0
  165. package/dist/instantly/native-supersearch.d.ts +149 -0
  166. package/dist/instantly/native-workspace.d.ts +170 -0
  167. package/dist/instantly/native.d.ts +1081 -0
  168. package/dist/instantly/pages.d.ts +29 -0
  169. package/dist/instantly/stats.d.ts +5 -0
  170. package/dist/instantly/webhooks.d.ts +3 -0
  171. package/dist/internal/adapter.d.ts +211 -0
  172. package/dist/internal/capabilities.d.ts +104 -0
  173. package/dist/internal/client.d.ts +15 -0
  174. package/dist/internal/concurrency.d.ts +8 -0
  175. package/dist/internal/cursor.d.ts +10 -0
  176. package/dist/internal/engine/budget.d.ts +44 -0
  177. package/dist/internal/engine/engine.d.ts +45 -0
  178. package/dist/internal/engine/rate-store.d.ts +25 -0
  179. package/dist/internal/engine/request.d.ts +34 -0
  180. package/dist/internal/engine/retry.d.ts +21 -0
  181. package/dist/internal/engine/runtime.d.ts +13 -0
  182. package/dist/internal/entities-account.d.ts +205 -0
  183. package/dist/internal/entities.d.ts +493 -0
  184. package/dist/internal/env.d.ts +4 -0
  185. package/dist/internal/errors.d.ts +62 -0
  186. package/dist/internal/fields.d.ts +462 -0
  187. package/dist/internal/hooks.d.ts +55 -0
  188. package/dist/internal/json.d.ts +49 -0
  189. package/dist/internal/lead-fields.d.ts +21 -0
  190. package/dist/internal/lead-status.d.ts +13 -0
  191. package/dist/internal/limits.d.ts +34 -0
  192. package/dist/internal/metrics.d.ts +64 -0
  193. package/dist/internal/native.d.ts +81 -0
  194. package/dist/internal/outbound/api.d.ts +292 -0
  195. package/dist/internal/outbound/collections.d.ts +31 -0
  196. package/dist/internal/outbound/core.d.ts +36 -0
  197. package/dist/internal/outbound/create.d.ts +16 -0
  198. package/dist/internal/outbound/handles.d.ts +7 -0
  199. package/dist/internal/outbound/native.d.ts +4 -0
  200. package/dist/internal/outbound/operation-shared.d.ts +28 -0
  201. package/dist/internal/outbound/operations-account.d.ts +41 -0
  202. package/dist/internal/outbound/operations.d.ts +42 -0
  203. package/dist/internal/outbound/outbound.d.ts +67 -0
  204. package/dist/internal/outbound/plugins.d.ts +40 -0
  205. package/dist/internal/outbound/raw.d.ts +9 -0
  206. package/dist/internal/outbound/specs-account.d.ts +20 -0
  207. package/dist/internal/outbound/specs.d.ts +14 -0
  208. package/dist/internal/outbound/stats.d.ts +7 -0
  209. package/dist/internal/outbound/validate.d.ts +5 -0
  210. package/dist/internal/outbound/walker.d.ts +22 -0
  211. package/dist/internal/page.d.ts +14 -0
  212. package/dist/internal/record.d.ts +36 -0
  213. package/dist/internal/records.d.ts +7 -0
  214. package/dist/internal/redact.d.ts +18 -0
  215. package/dist/internal/ref.d.ts +16 -0
  216. package/dist/internal/sequence.d.ts +14 -0
  217. package/dist/internal/sha256.d.ts +6 -0
  218. package/dist/internal/text.d.ts +11 -0
  219. package/dist/internal/url.d.ts +9 -0
  220. package/dist/loader/index.d.ts +24 -0
  221. package/dist/loader/index.js +16 -0
  222. package/dist/memory/account-reads.d.ts +5 -0
  223. package/dist/memory/account.d.ts +81 -0
  224. package/dist/memory/adapter.d.ts +16 -0
  225. package/dist/memory/data.d.ts +137 -0
  226. package/dist/memory/demo.d.ts +7 -0
  227. package/dist/memory/index.d.ts +5 -0
  228. package/dist/memory/index.js +867 -0
  229. package/dist/memory/stats.d.ts +6 -0
  230. package/dist/memory/store.d.ts +18 -0
  231. package/dist/providers/index.d.ts +22 -0
  232. package/dist/providers/index.js +10 -0
  233. package/dist/reconcile/index.d.ts +2 -0
  234. package/dist/reconcile/index.js +72 -0
  235. package/dist/reconcile/plugin.d.ts +55 -0
  236. package/dist/redact/index.d.ts +2 -0
  237. package/dist/redact/index.js +197 -0
  238. package/dist/redact/plugin.d.ts +22 -0
  239. package/dist/redis/index.d.ts +41 -0
  240. package/dist/redis/index.js +114 -0
  241. package/dist/smartlead/account.d.ts +5 -0
  242. package/dist/smartlead/adapter.d.ts +5 -0
  243. package/dist/smartlead/capabilities.d.ts +87 -0
  244. package/dist/smartlead/client.d.ts +18 -0
  245. package/dist/smartlead/hmac.d.ts +7 -0
  246. package/dist/smartlead/index.d.ts +24 -0
  247. package/dist/smartlead/index.js +2329 -0
  248. package/dist/smartlead/leads.d.ts +9 -0
  249. package/dist/smartlead/lookup.d.ts +8 -0
  250. package/dist/smartlead/mail.d.ts +5 -0
  251. package/dist/smartlead/map-account.d.ts +34 -0
  252. package/dist/smartlead/map-messages.d.ts +31 -0
  253. package/dist/smartlead/map-stats.d.ts +36 -0
  254. package/dist/smartlead/map.d.ts +62 -0
  255. package/dist/smartlead/native-analytics.d.ts +242 -0
  256. package/dist/smartlead/native-campaigns.d.ts +211 -0
  257. package/dist/smartlead/native-inbox.d.ts +141 -0
  258. package/dist/smartlead/native-params.d.ts +12 -0
  259. package/dist/smartlead/native-services.d.ts +204 -0
  260. package/dist/smartlead/native.d.ts +785 -0
  261. package/dist/smartlead/shared.d.ts +29 -0
  262. package/dist/smartlead/stats.d.ts +5 -0
  263. package/dist/smartlead/webhooks.d.ts +3 -0
  264. package/dist/sync/index.d.ts +2 -0
  265. package/dist/sync/index.js +158 -0
  266. package/dist/sync/plugin.d.ts +58 -0
  267. package/dist/tools/account-tools.d.ts +21 -0
  268. package/dist/tools/ai-sdk.d.ts +8 -0
  269. package/dist/tools/ai-sdk.js +28 -0
  270. package/dist/tools/campaign-tools.d.ts +59 -0
  271. package/dist/tools/claude-agent.d.ts +18 -0
  272. package/dist/tools/claude-agent.js +42 -0
  273. package/dist/tools/index.d.ts +28 -0
  274. package/dist/tools/index.js +22 -0
  275. package/dist/tools/people-tools.d.ts +19 -0
  276. package/dist/tools/registry.d.ts +34 -0
  277. package/dist/tools/shared.d.ts +75 -0
  278. package/dist/tracing/index.d.ts +25 -0
  279. package/dist/tracing/index.js +69 -0
  280. package/dist/webhooks/index.d.ts +3 -0
  281. package/dist/webhooks/index.js +227 -0
  282. package/dist/webhooks/parse.d.ts +41 -0
  283. package/dist/webhooks/secret.d.ts +4 -0
  284. package/package.json +181 -4
@@ -0,0 +1,205 @@
1
+ import { z } from "zod";
2
+ import type { Campaign, Lead, Message, Reply, Sender, Sequence, Workspace } from "./entities.ts";
3
+ /** One window in which a campaign may send. */
4
+ export declare const sendingWindowSchema: z.ZodObject<{
5
+ days: z.ZodArray<z.ZodNumber>;
6
+ from: z.ZodNullable<z.ZodString>;
7
+ name: z.ZodNullable<z.ZodString>;
8
+ timezone: z.ZodNullable<z.ZodString>;
9
+ to: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ export type SendingWindow = z.infer<typeof sendingWindowSchema>;
12
+ /** How a campaign is set up to send. `sourceId` is the campaign's id. */
13
+ export declare const campaignSettingsSchema: z.ZodObject<{
14
+ campaignRef: z.ZodString;
15
+ dailyLimit: z.ZodNullable<z.ZodNumber>;
16
+ dailyNewLeads: z.ZodNullable<z.ZodNumber>;
17
+ endDate: z.ZodNullable<z.ZodISODate>;
18
+ gapMinutes: z.ZodNullable<z.ZodNumber>;
19
+ plainText: z.ZodNullable<z.ZodBoolean>;
20
+ schedule: z.ZodArray<z.ZodObject<{
21
+ days: z.ZodArray<z.ZodNumber>;
22
+ from: z.ZodNullable<z.ZodString>;
23
+ name: z.ZodNullable<z.ZodString>;
24
+ timezone: z.ZodNullable<z.ZodString>;
25
+ to: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>>;
27
+ startDate: z.ZodNullable<z.ZodISODate>;
28
+ stopOnAutoReply: z.ZodNullable<z.ZodBoolean>;
29
+ stopOnReply: z.ZodNullable<z.ZodBoolean>;
30
+ tracking: z.ZodObject<{
31
+ clicks: z.ZodNullable<z.ZodBoolean>;
32
+ opens: z.ZodNullable<z.ZodBoolean>;
33
+ }, z.core.$strip>;
34
+ provider: z.ZodString;
35
+ raw: z.ZodJSONSchema;
36
+ ref: z.ZodString;
37
+ schemaVersion: z.ZodLiteral<1>;
38
+ sourceId: z.ZodString;
39
+ workspaceId: z.ZodString;
40
+ }, z.core.$strip>;
41
+ export type CampaignSettings = z.infer<typeof campaignSettingsSchema>;
42
+ /**
43
+ * How far a campaign's leads have got, as counts of leads. `sourceId` is the
44
+ * campaign's id. Stats count messages and replies; this counts people.
45
+ */
46
+ export declare const campaignProgressSchema: z.ZodObject<{
47
+ blocked: z.ZodNullable<z.ZodNumber>;
48
+ campaignRef: z.ZodString;
49
+ completed: z.ZodNullable<z.ZodNumber>;
50
+ failed: z.ZodNullable<z.ZodNumber>;
51
+ inProgress: z.ZodNullable<z.ZodNumber>;
52
+ leads: z.ZodNullable<z.ZodNumber>;
53
+ notStarted: z.ZodNullable<z.ZodNumber>;
54
+ stopped: z.ZodNullable<z.ZodNumber>;
55
+ provider: z.ZodString;
56
+ raw: z.ZodJSONSchema;
57
+ ref: z.ZodString;
58
+ schemaVersion: z.ZodLiteral<1>;
59
+ sourceId: z.ZodString;
60
+ workspaceId: z.ZodString;
61
+ }, z.core.$strip>;
62
+ export type CampaignProgress = z.infer<typeof campaignProgressSchema>;
63
+ /** What the vendor knows about a sender's deliverability. `sourceId` is the sender's id. */
64
+ export declare const senderHealthSchema: z.ZodObject<{
65
+ blacklisted: z.ZodNullable<z.ZodBoolean>;
66
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
67
+ connected: z.ZodNullable<z.ZodBoolean>;
68
+ dns: z.ZodObject<{
69
+ dkim: z.ZodNullable<z.ZodBoolean>;
70
+ dmarc: z.ZodNullable<z.ZodBoolean>;
71
+ mx: z.ZodNullable<z.ZodBoolean>;
72
+ spf: z.ZodNullable<z.ZodBoolean>;
73
+ }, z.core.$strip>;
74
+ domain: z.ZodNullable<z.ZodString>;
75
+ issues: z.ZodArray<z.ZodString>;
76
+ senderRef: z.ZodString;
77
+ warmup: z.ZodNullable<z.ZodObject<{
78
+ inbox: z.ZodNullable<z.ZodNumber>;
79
+ received: z.ZodNullable<z.ZodNumber>;
80
+ score: z.ZodNullable<z.ZodNumber>;
81
+ sent: z.ZodNullable<z.ZodNumber>;
82
+ spam: z.ZodNullable<z.ZodNumber>;
83
+ }, z.core.$strip>>;
84
+ provider: z.ZodString;
85
+ raw: z.ZodJSONSchema;
86
+ ref: z.ZodString;
87
+ schemaVersion: z.ZodLiteral<1>;
88
+ sourceId: z.ZodString;
89
+ workspaceId: z.ZodString;
90
+ }, z.core.$strip>;
91
+ export type SenderHealth = z.infer<typeof senderHealthSchema>;
92
+ /** A saved list of leads or companies that campaigns draw from. */
93
+ export declare const leadListSchema: z.ZodObject<{
94
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
95
+ kind: z.ZodEnum<{
96
+ leads: "leads";
97
+ companies: "companies";
98
+ }>;
99
+ name: z.ZodString;
100
+ size: z.ZodNullable<z.ZodNumber>;
101
+ provider: z.ZodString;
102
+ raw: z.ZodJSONSchema;
103
+ ref: z.ZodString;
104
+ schemaVersion: z.ZodLiteral<1>;
105
+ sourceId: z.ZodString;
106
+ workspaceId: z.ZodString;
107
+ }, z.core.$strip>;
108
+ export type LeadList = z.infer<typeof leadListSchema>;
109
+ /** One address, domain or profile the account never contacts. */
110
+ export declare const blockEntrySchema: z.ZodObject<{
111
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
112
+ kind: z.ZodEnum<{
113
+ email: "email";
114
+ linkedin: "linkedin";
115
+ other: "other";
116
+ company: "company";
117
+ domain: "domain";
118
+ }>;
119
+ value: z.ZodString;
120
+ provider: z.ZodString;
121
+ raw: z.ZodJSONSchema;
122
+ ref: z.ZodString;
123
+ schemaVersion: z.ZodLiteral<1>;
124
+ sourceId: z.ZodString;
125
+ workspaceId: z.ZodString;
126
+ }, z.core.$strip>;
127
+ export type BlockEntry = z.infer<typeof blockEntrySchema>;
128
+ export declare const tagSchema: z.ZodObject<{
129
+ description: z.ZodNullable<z.ZodString>;
130
+ name: z.ZodString;
131
+ provider: z.ZodString;
132
+ raw: z.ZodJSONSchema;
133
+ ref: z.ZodString;
134
+ schemaVersion: z.ZodLiteral<1>;
135
+ sourceId: z.ZodString;
136
+ workspaceId: z.ZodString;
137
+ }, z.core.$strip>;
138
+ export type Tag = z.infer<typeof tagSchema>;
139
+ /**
140
+ * An inbox placement test: the vendor sends a campaign's email to seed
141
+ * mailboxes and reports where it landed. This is the test itself. Its
142
+ * results stay native, because one vendor reports them as a row per email
143
+ * and another as rates.
144
+ */
145
+ export declare const placementTestSchema: z.ZodObject<{
146
+ campaignRef: z.ZodNullable<z.ZodString>;
147
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
148
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
149
+ kind: z.ZodNullable<z.ZodEnum<{
150
+ automated: "automated";
151
+ one_time: "one_time";
152
+ }>>;
153
+ name: z.ZodString;
154
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
155
+ startsAt: z.ZodNullable<z.ZodISODateTime>;
156
+ status: z.ZodEnum<{
157
+ active: "active";
158
+ completed: "completed";
159
+ paused: "paused";
160
+ unknown: "unknown";
161
+ }>;
162
+ provider: z.ZodString;
163
+ raw: z.ZodJSONSchema;
164
+ ref: z.ZodString;
165
+ schemaVersion: z.ZodLiteral<1>;
166
+ sourceId: z.ZodString;
167
+ workspaceId: z.ZodString;
168
+ }, z.core.$strip>;
169
+ export type PlacementTest = z.infer<typeof placementTestSchema>;
170
+ /** A webhook registered with the vendor. */
171
+ export declare const webhookSubscriptionSchema: z.ZodObject<{
172
+ active: z.ZodNullable<z.ZodBoolean>;
173
+ campaignRefs: z.ZodArray<z.ZodString>;
174
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
175
+ eventTypes: z.ZodArray<z.ZodEnum<{
176
+ unknown: "unknown";
177
+ "campaign.status_changed": "campaign.status_changed";
178
+ "lead.status_changed": "lead.status_changed";
179
+ "lead.unsubscribed": "lead.unsubscribed";
180
+ "linkedin.connection_accepted": "linkedin.connection_accepted";
181
+ "linkedin.connection_sent": "linkedin.connection_sent";
182
+ "linkedin.message_received": "linkedin.message_received";
183
+ "linkedin.message_sent": "linkedin.message_sent";
184
+ "meeting.booked": "meeting.booked";
185
+ "message.bounced": "message.bounced";
186
+ "message.clicked": "message.clicked";
187
+ "message.opened": "message.opened";
188
+ "message.sent": "message.sent";
189
+ "reply.categorized": "reply.categorized";
190
+ "reply.received": "reply.received";
191
+ "sender.status_changed": "sender.status_changed";
192
+ }>>;
193
+ events: z.ZodArray<z.ZodString>;
194
+ name: z.ZodNullable<z.ZodString>;
195
+ url: z.ZodString;
196
+ provider: z.ZodString;
197
+ raw: z.ZodJSONSchema;
198
+ ref: z.ZodString;
199
+ schemaVersion: z.ZodLiteral<1>;
200
+ sourceId: z.ZodString;
201
+ workspaceId: z.ZodString;
202
+ }, z.core.$strip>;
203
+ export type WebhookSubscription = z.infer<typeof webhookSubscriptionSchema>;
204
+ /** Any record a list or get call returns. */
205
+ export type Entity = BlockEntry | Campaign | CampaignProgress | CampaignSettings | Lead | LeadList | Message | PlacementTest | Reply | Sender | SenderHealth | Sequence | Tag | WebhookSubscription | Workspace;
@@ -0,0 +1,493 @@
1
+ import { z } from "zod";
2
+ /** Bumped only for a breaking change to the shapes below. */
3
+ export declare const SCHEMA_VERSION: 1;
4
+ /** The fields every entity carries. */
5
+ export declare const baseFields: {
6
+ provider: z.ZodString;
7
+ raw: z.ZodJSONSchema;
8
+ ref: z.ZodString;
9
+ schemaVersion: z.ZodLiteral<1>;
10
+ sourceId: z.ZodString;
11
+ workspaceId: z.ZodString;
12
+ };
13
+ export declare const count: z.ZodNullable<z.ZodNumber>;
14
+ export declare const isoDateTime: z.ZodNullable<z.ZodISODateTime>;
15
+ export declare const channelSchema: z.ZodEnum<{
16
+ email: "email";
17
+ linkedin: "linkedin";
18
+ }>;
19
+ export type Channel = z.infer<typeof channelSchema>;
20
+ export declare const campaignStatusSchema: z.ZodEnum<{
21
+ active: "active";
22
+ archived: "archived";
23
+ completed: "completed";
24
+ draft: "draft";
25
+ paused: "paused";
26
+ unknown: "unknown";
27
+ }>;
28
+ export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
29
+ export declare const campaignSchema: z.ZodObject<{
30
+ channel: z.ZodEnum<{
31
+ email: "email";
32
+ linkedin: "linkedin";
33
+ }>;
34
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
35
+ name: z.ZodString;
36
+ status: z.ZodEnum<{
37
+ active: "active";
38
+ archived: "archived";
39
+ completed: "completed";
40
+ draft: "draft";
41
+ paused: "paused";
42
+ unknown: "unknown";
43
+ }>;
44
+ tags: z.ZodArray<z.ZodString>;
45
+ provider: z.ZodString;
46
+ raw: z.ZodJSONSchema;
47
+ ref: z.ZodString;
48
+ schemaVersion: z.ZodLiteral<1>;
49
+ sourceId: z.ZodString;
50
+ workspaceId: z.ZodString;
51
+ }, z.core.$strip>;
52
+ export type Campaign = z.infer<typeof campaignSchema>;
53
+ export declare const sequenceVariantSchema: z.ZodObject<{
54
+ body: z.ZodNullable<z.ZodString>;
55
+ contentHash: z.ZodString;
56
+ subject: z.ZodNullable<z.ZodString>;
57
+ variantKey: z.ZodString;
58
+ }, z.core.$strip>;
59
+ export type SequenceVariant = z.infer<typeof sequenceVariantSchema>;
60
+ export declare const sequenceStepSchema: z.ZodObject<{
61
+ action: z.ZodString;
62
+ branch: z.ZodNullable<z.ZodString>;
63
+ delayDays: z.ZodNullable<z.ZodNumber>;
64
+ index: z.ZodNumber;
65
+ parentIndex: z.ZodNullable<z.ZodNumber>;
66
+ variants: z.ZodArray<z.ZodObject<{
67
+ body: z.ZodNullable<z.ZodString>;
68
+ contentHash: z.ZodString;
69
+ subject: z.ZodNullable<z.ZodString>;
70
+ variantKey: z.ZodString;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>;
73
+ export type SequenceStep = z.infer<typeof sequenceStepSchema>;
74
+ export declare const sequenceSchema: z.ZodObject<{
75
+ campaignRef: z.ZodString;
76
+ kind: z.ZodEnum<{
77
+ main: "main";
78
+ subsequence: "subsequence";
79
+ }>;
80
+ name: z.ZodNullable<z.ZodString>;
81
+ steps: z.ZodArray<z.ZodObject<{
82
+ action: z.ZodString;
83
+ branch: z.ZodNullable<z.ZodString>;
84
+ delayDays: z.ZodNullable<z.ZodNumber>;
85
+ index: z.ZodNumber;
86
+ parentIndex: z.ZodNullable<z.ZodNumber>;
87
+ variants: z.ZodArray<z.ZodObject<{
88
+ body: z.ZodNullable<z.ZodString>;
89
+ contentHash: z.ZodString;
90
+ subject: z.ZodNullable<z.ZodString>;
91
+ variantKey: z.ZodString;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>>;
94
+ provider: z.ZodString;
95
+ raw: z.ZodJSONSchema;
96
+ ref: z.ZodString;
97
+ schemaVersion: z.ZodLiteral<1>;
98
+ sourceId: z.ZodString;
99
+ workspaceId: z.ZodString;
100
+ }, z.core.$strip>;
101
+ export type Sequence = z.infer<typeof sequenceSchema>;
102
+ export declare const senderStatusSchema: z.ZodEnum<{
103
+ error: "error";
104
+ active: "active";
105
+ paused: "paused";
106
+ unknown: "unknown";
107
+ disconnected: "disconnected";
108
+ }>;
109
+ export type SenderStatus = z.infer<typeof senderStatusSchema>;
110
+ export declare const mailProviderSchema: z.ZodEnum<{
111
+ google: "google";
112
+ microsoft: "microsoft";
113
+ other: "other";
114
+ smtp: "smtp";
115
+ }>;
116
+ export type MailProvider = z.infer<typeof mailProviderSchema>;
117
+ export declare const senderSchema: z.ZodObject<{
118
+ address: z.ZodNullable<z.ZodString>;
119
+ dailyLimit: z.ZodNullable<z.ZodNumber>;
120
+ kind: z.ZodEnum<{
121
+ linkedin: "linkedin";
122
+ mailbox: "mailbox";
123
+ }>;
124
+ linkedinUrl: z.ZodNullable<z.ZodString>;
125
+ mailProvider: z.ZodNullable<z.ZodEnum<{
126
+ google: "google";
127
+ microsoft: "microsoft";
128
+ other: "other";
129
+ smtp: "smtp";
130
+ }>>;
131
+ name: z.ZodNullable<z.ZodString>;
132
+ status: z.ZodEnum<{
133
+ error: "error";
134
+ active: "active";
135
+ paused: "paused";
136
+ unknown: "unknown";
137
+ disconnected: "disconnected";
138
+ }>;
139
+ tags: z.ZodArray<z.ZodString>;
140
+ warmup: z.ZodNullable<z.ZodObject<{
141
+ enabled: z.ZodNullable<z.ZodBoolean>;
142
+ score: z.ZodNullable<z.ZodNumber>;
143
+ }, z.core.$strip>>;
144
+ provider: z.ZodString;
145
+ raw: z.ZodJSONSchema;
146
+ ref: z.ZodString;
147
+ schemaVersion: z.ZodLiteral<1>;
148
+ sourceId: z.ZodString;
149
+ workspaceId: z.ZodString;
150
+ }, z.core.$strip>;
151
+ export type Sender = z.infer<typeof senderSchema>;
152
+ export declare const replyCategorySchema: z.ZodEnum<{
153
+ unknown: "unknown";
154
+ bounce: "bounce";
155
+ negative: "negative";
156
+ neutral: "neutral";
157
+ ooo: "ooo";
158
+ positive: "positive";
159
+ unsubscribe: "unsubscribe";
160
+ }>;
161
+ export type ReplyCategory = z.infer<typeof replyCategorySchema>;
162
+ export declare const leadStatusSchema: z.ZodEnum<{
163
+ active: "active";
164
+ completed: "completed";
165
+ paused: "paused";
166
+ unknown: "unknown";
167
+ bounced: "bounced";
168
+ replied: "replied";
169
+ unsubscribed: "unsubscribed";
170
+ }>;
171
+ export type LeadStatus = z.infer<typeof leadStatusSchema>;
172
+ /** Where a lead is in its sequence, whatever came back from it. */
173
+ export declare const leadProgressSchema: z.ZodEnum<{
174
+ active: "active";
175
+ completed: "completed";
176
+ paused: "paused";
177
+ unknown: "unknown";
178
+ }>;
179
+ export type LeadProgress = z.infer<typeof leadProgressSchema>;
180
+ /** What a lead did with the campaign's messages, as the vendor counts it. */
181
+ export declare const leadEngagementSchema: z.ZodObject<{
182
+ clicks: z.ZodNullable<z.ZodNumber>;
183
+ lastContactedAt: z.ZodNullable<z.ZodISODateTime>;
184
+ lastOpenedAt: z.ZodNullable<z.ZodISODateTime>;
185
+ lastRepliedAt: z.ZodNullable<z.ZodISODateTime>;
186
+ opens: z.ZodNullable<z.ZodNumber>;
187
+ replies: z.ZodNullable<z.ZodNumber>;
188
+ repliedStepIndex: z.ZodNullable<z.ZodNumber>;
189
+ stepIndex: z.ZodNullable<z.ZodNumber>;
190
+ }, z.core.$strip>;
191
+ export type LeadEngagement = z.infer<typeof leadEngagementSchema>;
192
+ export declare const leadSchema: z.ZodObject<{
193
+ bounced: z.ZodNullable<z.ZodBoolean>;
194
+ campaignRef: z.ZodNullable<z.ZodString>;
195
+ company: z.ZodNullable<z.ZodString>;
196
+ companyLinkedinUrl: z.ZodNullable<z.ZodString>;
197
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
198
+ custom: z.ZodRecord<z.ZodString, z.ZodString>;
199
+ email: z.ZodNullable<z.ZodString>;
200
+ engagement: z.ZodNullable<z.ZodObject<{
201
+ clicks: z.ZodNullable<z.ZodNumber>;
202
+ lastContactedAt: z.ZodNullable<z.ZodISODateTime>;
203
+ lastOpenedAt: z.ZodNullable<z.ZodISODateTime>;
204
+ lastRepliedAt: z.ZodNullable<z.ZodISODateTime>;
205
+ opens: z.ZodNullable<z.ZodNumber>;
206
+ replies: z.ZodNullable<z.ZodNumber>;
207
+ repliedStepIndex: z.ZodNullable<z.ZodNumber>;
208
+ stepIndex: z.ZodNullable<z.ZodNumber>;
209
+ }, z.core.$strip>>;
210
+ firstName: z.ZodNullable<z.ZodString>;
211
+ interest: z.ZodNullable<z.ZodString>;
212
+ interestCategory: z.ZodNullable<z.ZodEnum<{
213
+ unknown: "unknown";
214
+ bounce: "bounce";
215
+ negative: "negative";
216
+ neutral: "neutral";
217
+ ooo: "ooo";
218
+ positive: "positive";
219
+ unsubscribe: "unsubscribe";
220
+ }>>;
221
+ lastName: z.ZodNullable<z.ZodString>;
222
+ linkedinUrl: z.ZodNullable<z.ZodString>;
223
+ location: z.ZodNullable<z.ZodString>;
224
+ phone: z.ZodNullable<z.ZodString>;
225
+ progress: z.ZodEnum<{
226
+ active: "active";
227
+ completed: "completed";
228
+ paused: "paused";
229
+ unknown: "unknown";
230
+ }>;
231
+ replied: z.ZodNullable<z.ZodBoolean>;
232
+ status: z.ZodEnum<{
233
+ active: "active";
234
+ completed: "completed";
235
+ paused: "paused";
236
+ unknown: "unknown";
237
+ bounced: "bounced";
238
+ replied: "replied";
239
+ unsubscribed: "unsubscribed";
240
+ }>;
241
+ tags: z.ZodArray<z.ZodString>;
242
+ title: z.ZodNullable<z.ZodString>;
243
+ unsubscribed: z.ZodNullable<z.ZodBoolean>;
244
+ website: z.ZodNullable<z.ZodString>;
245
+ provider: z.ZodString;
246
+ raw: z.ZodJSONSchema;
247
+ ref: z.ZodString;
248
+ schemaVersion: z.ZodLiteral<1>;
249
+ sourceId: z.ZodString;
250
+ workspaceId: z.ZodString;
251
+ }, z.core.$strip>;
252
+ export type Lead = z.infer<typeof leadSchema>;
253
+ export declare const messageSchema: z.ZodObject<{
254
+ direction: z.ZodEnum<{
255
+ in: "in";
256
+ out: "out";
257
+ }>;
258
+ bodyHtml: z.ZodNullable<z.ZodString>;
259
+ bodyText: z.ZodNullable<z.ZodString>;
260
+ campaignRef: z.ZodNullable<z.ZodString>;
261
+ channel: z.ZodEnum<{
262
+ email: "email";
263
+ linkedin: "linkedin";
264
+ }>;
265
+ leadRef: z.ZodNullable<z.ZodString>;
266
+ senderRef: z.ZodNullable<z.ZodString>;
267
+ sentAt: z.ZodNullable<z.ZodISODateTime>;
268
+ stepIndex: z.ZodNullable<z.ZodNumber>;
269
+ subject: z.ZodNullable<z.ZodString>;
270
+ threadId: z.ZodNullable<z.ZodString>;
271
+ variantKey: z.ZodNullable<z.ZodString>;
272
+ provider: z.ZodString;
273
+ raw: z.ZodJSONSchema;
274
+ ref: z.ZodString;
275
+ schemaVersion: z.ZodLiteral<1>;
276
+ sourceId: z.ZodString;
277
+ workspaceId: z.ZodString;
278
+ }, z.core.$strip>;
279
+ export type Message = z.infer<typeof messageSchema>;
280
+ export declare const replySchema: z.ZodObject<{
281
+ category: z.ZodEnum<{
282
+ unknown: "unknown";
283
+ bounce: "bounce";
284
+ negative: "negative";
285
+ neutral: "neutral";
286
+ ooo: "ooo";
287
+ positive: "positive";
288
+ unsubscribe: "unsubscribe";
289
+ }>;
290
+ categorySource: z.ZodNullable<z.ZodEnum<{
291
+ vendor: "vendor";
292
+ lead: "lead";
293
+ rule: "rule";
294
+ }>>;
295
+ direction: z.ZodLiteral<"in">;
296
+ isAuto: z.ZodNullable<z.ZodBoolean>;
297
+ unread: z.ZodNullable<z.ZodBoolean>;
298
+ bodyHtml: z.ZodNullable<z.ZodString>;
299
+ bodyText: z.ZodNullable<z.ZodString>;
300
+ campaignRef: z.ZodNullable<z.ZodString>;
301
+ channel: z.ZodEnum<{
302
+ email: "email";
303
+ linkedin: "linkedin";
304
+ }>;
305
+ leadRef: z.ZodNullable<z.ZodString>;
306
+ senderRef: z.ZodNullable<z.ZodString>;
307
+ sentAt: z.ZodNullable<z.ZodISODateTime>;
308
+ stepIndex: z.ZodNullable<z.ZodNumber>;
309
+ subject: z.ZodNullable<z.ZodString>;
310
+ threadId: z.ZodNullable<z.ZodString>;
311
+ variantKey: z.ZodNullable<z.ZodString>;
312
+ provider: z.ZodString;
313
+ raw: z.ZodJSONSchema;
314
+ ref: z.ZodString;
315
+ schemaVersion: z.ZodLiteral<1>;
316
+ sourceId: z.ZodString;
317
+ workspaceId: z.ZodString;
318
+ }, z.core.$strip>;
319
+ export type Reply = z.infer<typeof replySchema>;
320
+ export declare const metricScopeSchema: z.ZodEnum<{
321
+ campaign: "campaign";
322
+ sender: "sender";
323
+ step: "step";
324
+ workspace: "workspace";
325
+ }>;
326
+ export type MetricScope = z.infer<typeof metricScopeSchema>;
327
+ export declare const evidenceSchema: z.ZodEnum<{
328
+ derived: "derived";
329
+ exact: "exact";
330
+ sampled: "sampled";
331
+ }>;
332
+ export type Evidence = z.infer<typeof evidenceSchema>;
333
+ /**
334
+ * Counts only. Rates are computed from these in `metrics.ts`, so every
335
+ * adapter and plugin agrees on what a reply rate is.
336
+ */
337
+ export declare const metricRowSchema: z.ZodObject<{
338
+ bounced: z.ZodNullable<z.ZodNumber>;
339
+ clicked: z.ZodNullable<z.ZodNumber>;
340
+ clickedTotal: z.ZodNullable<z.ZodNumber>;
341
+ connectionsAccepted: z.ZodNullable<z.ZodNumber>;
342
+ connectionsSent: z.ZodNullable<z.ZodNumber>;
343
+ contacted: z.ZodNullable<z.ZodNumber>;
344
+ contentHash: z.ZodNullable<z.ZodString>;
345
+ date: z.ZodNullable<z.ZodISODate>;
346
+ delivered: z.ZodNullable<z.ZodNumber>;
347
+ evidence: z.ZodEnum<{
348
+ derived: "derived";
349
+ exact: "exact";
350
+ sampled: "sampled";
351
+ }>;
352
+ inmailsSent: z.ZodNullable<z.ZodNumber>;
353
+ opened: z.ZodNullable<z.ZodNumber>;
354
+ openedTotal: z.ZodNullable<z.ZodNumber>;
355
+ positive: z.ZodNullable<z.ZodNumber>;
356
+ provider: z.ZodString;
357
+ replied: z.ZodNullable<z.ZodNumber>;
358
+ repliedAuto: z.ZodNullable<z.ZodNumber>;
359
+ schemaVersion: z.ZodLiteral<1>;
360
+ scope: z.ZodEnum<{
361
+ campaign: "campaign";
362
+ sender: "sender";
363
+ step: "step";
364
+ workspace: "workspace";
365
+ }>;
366
+ scopeRef: z.ZodString;
367
+ sent: z.ZodNullable<z.ZodNumber>;
368
+ stepIndex: z.ZodNullable<z.ZodNumber>;
369
+ timezone: z.ZodNullable<z.ZodString>;
370
+ unsubscribed: z.ZodNullable<z.ZodNumber>;
371
+ variantKey: z.ZodNullable<z.ZodString>;
372
+ workspaceId: z.ZodString;
373
+ }, z.core.$strip>;
374
+ export type MetricRow = z.infer<typeof metricRowSchema>;
375
+ export declare const workspaceSchema: z.ZodObject<{
376
+ name: z.ZodString;
377
+ provider: z.ZodString;
378
+ raw: z.ZodJSONSchema;
379
+ ref: z.ZodString;
380
+ schemaVersion: z.ZodLiteral<1>;
381
+ sourceId: z.ZodString;
382
+ workspaceId: z.ZodString;
383
+ }, z.core.$strip>;
384
+ export type Workspace = z.infer<typeof workspaceSchema>;
385
+ export declare const eventTypeSchema: z.ZodEnum<{
386
+ unknown: "unknown";
387
+ "campaign.status_changed": "campaign.status_changed";
388
+ "lead.status_changed": "lead.status_changed";
389
+ "lead.unsubscribed": "lead.unsubscribed";
390
+ "linkedin.connection_accepted": "linkedin.connection_accepted";
391
+ "linkedin.connection_sent": "linkedin.connection_sent";
392
+ "linkedin.message_received": "linkedin.message_received";
393
+ "linkedin.message_sent": "linkedin.message_sent";
394
+ "meeting.booked": "meeting.booked";
395
+ "message.bounced": "message.bounced";
396
+ "message.clicked": "message.clicked";
397
+ "message.opened": "message.opened";
398
+ "message.sent": "message.sent";
399
+ "reply.categorized": "reply.categorized";
400
+ "reply.received": "reply.received";
401
+ "sender.status_changed": "sender.status_changed";
402
+ }>;
403
+ export type EventType = z.infer<typeof eventTypeSchema>;
404
+ /**
405
+ * What an event says beyond its refs. The keys below mean the same on every
406
+ * vendor and are checked; a vendor's own extras ride along beside them. A key
407
+ * is absent when the vendor's payload does not carry it.
408
+ */
409
+ export declare const eventDataSchema: z.ZodObject<{
410
+ campaignName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ category: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
412
+ unknown: "unknown";
413
+ bounce: "bounce";
414
+ negative: "negative";
415
+ neutral: "neutral";
416
+ ooo: "ooo";
417
+ positive: "positive";
418
+ unsubscribe: "unsubscribe";
419
+ }>>>;
420
+ categoryName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
+ isAuto: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
422
+ isFirst: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
423
+ isInmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
424
+ isTest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
425
+ leadEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ senderEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
429
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ untracked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
432
+ variantKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ vendorEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ }, z.core.$catchall<z.ZodJSONSchema>>;
435
+ export type EventData = z.infer<typeof eventDataSchema>;
436
+ /** Every webhook and every sync diff becomes this one shape. */
437
+ export declare const outboundEventSchema: z.ZodObject<{
438
+ campaignRef: z.ZodNullable<z.ZodString>;
439
+ data: z.ZodObject<{
440
+ campaignName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ category: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
442
+ unknown: "unknown";
443
+ bounce: "bounce";
444
+ negative: "negative";
445
+ neutral: "neutral";
446
+ ooo: "ooo";
447
+ positive: "positive";
448
+ unsubscribe: "unsubscribe";
449
+ }>>>;
450
+ categoryName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ isAuto: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
452
+ isFirst: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
453
+ isInmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
454
+ isTest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
455
+ leadEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ senderEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
459
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ untracked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
462
+ variantKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ vendorEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
+ }, z.core.$catchall<z.ZodJSONSchema>>;
465
+ id: z.ZodString;
466
+ leadRef: z.ZodNullable<z.ZodString>;
467
+ messageRef: z.ZodNullable<z.ZodString>;
468
+ occurredAt: z.ZodNullable<z.ZodISODateTime>;
469
+ provider: z.ZodString;
470
+ raw: z.ZodJSONSchema;
471
+ schemaVersion: z.ZodLiteral<1>;
472
+ senderRef: z.ZodNullable<z.ZodString>;
473
+ type: z.ZodEnum<{
474
+ unknown: "unknown";
475
+ "campaign.status_changed": "campaign.status_changed";
476
+ "lead.status_changed": "lead.status_changed";
477
+ "lead.unsubscribed": "lead.unsubscribed";
478
+ "linkedin.connection_accepted": "linkedin.connection_accepted";
479
+ "linkedin.connection_sent": "linkedin.connection_sent";
480
+ "linkedin.message_received": "linkedin.message_received";
481
+ "linkedin.message_sent": "linkedin.message_sent";
482
+ "meeting.booked": "meeting.booked";
483
+ "message.bounced": "message.bounced";
484
+ "message.clicked": "message.clicked";
485
+ "message.opened": "message.opened";
486
+ "message.sent": "message.sent";
487
+ "reply.categorized": "reply.categorized";
488
+ "reply.received": "reply.received";
489
+ "sender.status_changed": "sender.status_changed";
490
+ }>;
491
+ workspaceId: z.ZodString;
492
+ }, z.core.$strip>;
493
+ export type OutboundEvent = z.infer<typeof outboundEventSchema>;