bereach 1.3.3 → 2.1.0-beta.3

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 (682) hide show
  1. package/README.md +142 -42
  2. package/esm/funcs/actions-connect-profile.d.ts +2 -2
  3. package/esm/funcs/actions-connect-profile.d.ts.map +1 -1
  4. package/esm/funcs/actions-connect-profile.js +4 -2
  5. package/esm/funcs/actions-connect-profile.js.map +1 -1
  6. package/esm/funcs/actions-follow-company.d.ts +1 -1
  7. package/esm/funcs/actions-follow-company.d.ts.map +1 -1
  8. package/esm/funcs/actions-follow-company.js +3 -1
  9. package/esm/funcs/actions-follow-company.js.map +1 -1
  10. package/esm/funcs/actions-list-sent-invitations.d.ts +1 -1
  11. package/esm/funcs/actions-list-sent-invitations.d.ts.map +1 -1
  12. package/esm/funcs/actions-list-sent-invitations.js +3 -1
  13. package/esm/funcs/actions-list-sent-invitations.js.map +1 -1
  14. package/esm/funcs/actions-send-message.d.ts +2 -2
  15. package/esm/funcs/actions-send-message.d.ts.map +1 -1
  16. package/esm/funcs/actions-send-message.js +4 -2
  17. package/esm/funcs/actions-send-message.js.map +1 -1
  18. package/esm/funcs/campaigns-filter.d.ts +1 -1
  19. package/esm/funcs/campaigns-filter.d.ts.map +1 -1
  20. package/esm/funcs/campaigns-filter.js +3 -1
  21. package/esm/funcs/campaigns-filter.js.map +1 -1
  22. package/esm/funcs/{campaigns-get-stats.d.ts → campaigns-get-campaign-stats.d.ts} +2 -2
  23. package/esm/funcs/campaigns-get-campaign-stats.d.ts.map +1 -0
  24. package/esm/funcs/{campaigns-get-stats.js → campaigns-get-campaign-stats.js} +8 -7
  25. package/esm/funcs/campaigns-get-campaign-stats.js.map +1 -0
  26. package/esm/funcs/campaigns-get-status.d.ts +1 -1
  27. package/esm/funcs/campaigns-get-status.d.ts.map +1 -1
  28. package/esm/funcs/campaigns-get-status.js +3 -1
  29. package/esm/funcs/campaigns-get-status.js.map +1 -1
  30. package/esm/funcs/campaigns-sync.d.ts +1 -1
  31. package/esm/funcs/campaigns-sync.d.ts.map +1 -1
  32. package/esm/funcs/campaigns-sync.js +3 -1
  33. package/esm/funcs/campaigns-sync.js.map +1 -1
  34. package/esm/funcs/chat-archive.d.ts +1 -1
  35. package/esm/funcs/chat-archive.d.ts.map +1 -1
  36. package/esm/funcs/chat-archive.js +3 -1
  37. package/esm/funcs/chat-archive.js.map +1 -1
  38. package/esm/funcs/chat-find-conversation.d.ts +2 -9
  39. package/esm/funcs/chat-find-conversation.d.ts.map +1 -1
  40. package/esm/funcs/chat-find-conversation.js +4 -9
  41. package/esm/funcs/chat-find-conversation.js.map +1 -1
  42. package/esm/funcs/chat-unreact.d.ts +1 -1
  43. package/esm/funcs/chat-unreact.d.ts.map +1 -1
  44. package/esm/funcs/chat-unreact.js +3 -1
  45. package/esm/funcs/chat-unreact.js.map +1 -1
  46. package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
  47. package/esm/funcs/company-pages-get-analytics.d.ts.map +1 -1
  48. package/esm/funcs/company-pages-get-analytics.js +3 -1
  49. package/esm/funcs/company-pages-get-analytics.js.map +1 -1
  50. package/esm/funcs/company-pages-get-permissions.d.ts +1 -1
  51. package/esm/funcs/company-pages-get-permissions.d.ts.map +1 -1
  52. package/esm/funcs/company-pages-get-permissions.js +3 -1
  53. package/esm/funcs/company-pages-get-permissions.js.map +1 -1
  54. package/esm/funcs/company-pages-get-posts.d.ts +1 -1
  55. package/esm/funcs/company-pages-get-posts.d.ts.map +1 -1
  56. package/esm/funcs/company-pages-get-posts.js +3 -1
  57. package/esm/funcs/company-pages-get-posts.js.map +1 -1
  58. package/esm/funcs/company-pages-list.d.ts +1 -1
  59. package/esm/funcs/company-pages-list.d.ts.map +1 -1
  60. package/esm/funcs/company-pages-list.js +3 -1
  61. package/esm/funcs/company-pages-list.js.map +1 -1
  62. package/esm/funcs/contacts-add-campaign-contacts.d.ts +18 -0
  63. package/esm/funcs/contacts-add-campaign-contacts.d.ts.map +1 -0
  64. package/esm/funcs/contacts-add-campaign-contacts.js +103 -0
  65. package/esm/funcs/contacts-add-campaign-contacts.js.map +1 -0
  66. package/esm/funcs/contacts-add-contact-activities.d.ts +18 -0
  67. package/esm/funcs/contacts-add-contact-activities.d.ts.map +1 -0
  68. package/esm/funcs/contacts-add-contact-activities.js +103 -0
  69. package/esm/funcs/contacts-add-contact-activities.js.map +1 -0
  70. package/esm/funcs/contacts-bulk-update-contacts.d.ts +18 -0
  71. package/esm/funcs/contacts-bulk-update-contacts.d.ts.map +1 -0
  72. package/esm/funcs/contacts-bulk-update-contacts.js +97 -0
  73. package/esm/funcs/contacts-bulk-update-contacts.js.map +1 -0
  74. package/esm/funcs/contacts-create-campaign.d.ts +18 -0
  75. package/esm/funcs/contacts-create-campaign.d.ts.map +1 -0
  76. package/esm/funcs/contacts-create-campaign.js +97 -0
  77. package/esm/funcs/contacts-create-campaign.js.map +1 -0
  78. package/esm/funcs/contacts-delete-agent-state.d.ts +18 -0
  79. package/esm/funcs/contacts-delete-agent-state.d.ts.map +1 -0
  80. package/esm/funcs/contacts-delete-agent-state.js +102 -0
  81. package/esm/funcs/contacts-delete-agent-state.js.map +1 -0
  82. package/esm/funcs/contacts-get-agent-state.d.ts +18 -0
  83. package/esm/funcs/contacts-get-agent-state.d.ts.map +1 -0
  84. package/esm/funcs/contacts-get-agent-state.js +102 -0
  85. package/esm/funcs/contacts-get-agent-state.js.map +1 -0
  86. package/esm/funcs/contacts-get-contact-by-url.d.ts +18 -0
  87. package/esm/funcs/contacts-get-contact-by-url.d.ts.map +1 -0
  88. package/esm/funcs/contacts-get-contact-by-url.js +100 -0
  89. package/esm/funcs/contacts-get-contact-by-url.js.map +1 -0
  90. package/esm/funcs/contacts-get-contact-stats.d.ts +18 -0
  91. package/esm/funcs/contacts-get-contact-stats.d.ts.map +1 -0
  92. package/esm/funcs/contacts-get-contact-stats.js +100 -0
  93. package/esm/funcs/contacts-get-contact-stats.js.map +1 -0
  94. package/esm/funcs/contacts-get-contact.d.ts +18 -0
  95. package/esm/funcs/contacts-get-contact.d.ts.map +1 -0
  96. package/esm/funcs/contacts-get-contact.js +102 -0
  97. package/esm/funcs/contacts-get-contact.js.map +1 -0
  98. package/esm/funcs/contacts-list-agent-states.d.ts +18 -0
  99. package/esm/funcs/contacts-list-agent-states.d.ts.map +1 -0
  100. package/esm/funcs/contacts-list-agent-states.js +86 -0
  101. package/esm/funcs/contacts-list-agent-states.js.map +1 -0
  102. package/esm/funcs/contacts-list-campaign-contacts.d.ts +18 -0
  103. package/esm/funcs/contacts-list-campaign-contacts.d.ts.map +1 -0
  104. package/esm/funcs/contacts-list-campaign-contacts.js +111 -0
  105. package/esm/funcs/contacts-list-campaign-contacts.js.map +1 -0
  106. package/esm/funcs/contacts-list-campaigns.d.ts +18 -0
  107. package/esm/funcs/contacts-list-campaigns.d.ts.map +1 -0
  108. package/esm/funcs/contacts-list-campaigns.js +103 -0
  109. package/esm/funcs/contacts-list-campaigns.js.map +1 -0
  110. package/esm/funcs/contacts-list-contact-activities.d.ts +18 -0
  111. package/esm/funcs/contacts-list-contact-activities.d.ts.map +1 -0
  112. package/esm/funcs/contacts-list-contact-activities.js +108 -0
  113. package/esm/funcs/contacts-list-contact-activities.js.map +1 -0
  114. package/esm/funcs/contacts-patch-agent-state.d.ts +18 -0
  115. package/esm/funcs/contacts-patch-agent-state.d.ts.map +1 -0
  116. package/esm/funcs/contacts-patch-agent-state.js +103 -0
  117. package/esm/funcs/contacts-patch-agent-state.js.map +1 -0
  118. package/esm/funcs/contacts-search-contacts.d.ts +18 -0
  119. package/esm/funcs/contacts-search-contacts.d.ts.map +1 -0
  120. package/esm/funcs/contacts-search-contacts.js +112 -0
  121. package/esm/funcs/contacts-search-contacts.js.map +1 -0
  122. package/esm/funcs/contacts-set-agent-state.d.ts +18 -0
  123. package/esm/funcs/contacts-set-agent-state.d.ts.map +1 -0
  124. package/esm/funcs/contacts-set-agent-state.js +103 -0
  125. package/esm/funcs/contacts-set-agent-state.js.map +1 -0
  126. package/esm/funcs/contacts-update-campaign.d.ts +18 -0
  127. package/esm/funcs/contacts-update-campaign.d.ts.map +1 -0
  128. package/esm/funcs/contacts-update-campaign.js +103 -0
  129. package/esm/funcs/contacts-update-campaign.js.map +1 -0
  130. package/esm/funcs/contacts-update-contact.d.ts +18 -0
  131. package/esm/funcs/contacts-update-contact.d.ts.map +1 -0
  132. package/esm/funcs/contacts-update-contact.js +103 -0
  133. package/esm/funcs/contacts-update-contact.js.map +1 -0
  134. package/esm/funcs/contacts-upsert.d.ts +3 -2
  135. package/esm/funcs/contacts-upsert.d.ts.map +1 -1
  136. package/esm/funcs/contacts-upsert.js +21 -3
  137. package/esm/funcs/contacts-upsert.js.map +1 -1
  138. package/esm/funcs/context-delete-context.d.ts +18 -0
  139. package/esm/funcs/context-delete-context.d.ts.map +1 -0
  140. package/esm/funcs/context-delete-context.js +101 -0
  141. package/esm/funcs/context-delete-context.js.map +1 -0
  142. package/esm/funcs/context-list-context.d.ts +18 -0
  143. package/esm/funcs/context-list-context.d.ts.map +1 -0
  144. package/esm/funcs/context-list-context.js +101 -0
  145. package/esm/funcs/context-list-context.js.map +1 -0
  146. package/esm/funcs/context-set-context.d.ts +18 -0
  147. package/esm/funcs/{campaigns-get-stats.d.ts.map → context-set-context.d.ts.map} +1 -1
  148. package/esm/funcs/context-set-context.js +97 -0
  149. package/esm/funcs/context-set-context.js.map +1 -0
  150. package/esm/funcs/cron-list-cron-schedules.d.ts +18 -0
  151. package/esm/funcs/cron-list-cron-schedules.d.ts.map +1 -0
  152. package/esm/funcs/cron-list-cron-schedules.js +86 -0
  153. package/esm/funcs/cron-list-cron-schedules.js.map +1 -0
  154. package/esm/funcs/cron-update-cron-schedule.d.ts +18 -0
  155. package/esm/funcs/{chat-search-conversations.d.ts.map → cron-update-cron-schedule.d.ts.map} +1 -1
  156. package/esm/funcs/cron-update-cron-schedule.js +103 -0
  157. package/esm/funcs/cron-update-cron-schedule.js.map +1 -0
  158. package/esm/funcs/linked-in-actions-create-comment.d.ts +1 -1
  159. package/esm/funcs/linked-in-actions-create-comment.d.ts.map +1 -1
  160. package/esm/funcs/linked-in-actions-create-comment.js +3 -1
  161. package/esm/funcs/linked-in-actions-create-comment.js.map +1 -1
  162. package/esm/funcs/linked-in-actions-decline-invitation.d.ts +1 -1
  163. package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +1 -1
  164. package/esm/funcs/linked-in-actions-decline-invitation.js +3 -1
  165. package/esm/funcs/linked-in-actions-decline-invitation.js.map +1 -1
  166. package/esm/funcs/linked-in-actions-like-comment.d.ts +1 -1
  167. package/esm/funcs/linked-in-actions-like-comment.d.ts.map +1 -1
  168. package/esm/funcs/linked-in-actions-like-comment.js +3 -1
  169. package/esm/funcs/linked-in-actions-like-comment.js.map +1 -1
  170. package/esm/funcs/linked-in-actions-publish-post.d.ts +1 -1
  171. package/esm/funcs/linked-in-actions-publish-post.d.ts.map +1 -1
  172. package/esm/funcs/linked-in-actions-publish-post.js +3 -1
  173. package/esm/funcs/linked-in-actions-publish-post.js.map +1 -1
  174. package/esm/funcs/linked-in-actions-save-post.d.ts +1 -1
  175. package/esm/funcs/linked-in-actions-save-post.d.ts.map +1 -1
  176. package/esm/funcs/linked-in-actions-save-post.js +3 -1
  177. package/esm/funcs/linked-in-actions-save-post.js.map +1 -1
  178. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +1 -1
  179. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts.map +1 -1
  180. package/esm/funcs/linked-in-actions-unfollow-profile.js +3 -1
  181. package/esm/funcs/linked-in-actions-unfollow-profile.js.map +1 -1
  182. package/esm/funcs/linked-in-chat-get-conversation-messages.d.ts +22 -0
  183. package/esm/funcs/linked-in-chat-get-conversation-messages.d.ts.map +1 -0
  184. package/esm/funcs/{linkedin-chat-get-messages.js → linked-in-chat-get-conversation-messages.js} +15 -9
  185. package/esm/funcs/linked-in-chat-get-conversation-messages.js.map +1 -0
  186. package/esm/funcs/{linkedin-chat-get-unread-count.d.ts → linked-in-chat-get-unread-count.d.ts} +2 -2
  187. package/esm/funcs/linked-in-chat-get-unread-count.d.ts.map +1 -0
  188. package/esm/funcs/{linkedin-chat-get-unread-count.js → linked-in-chat-get-unread-count.js} +8 -7
  189. package/esm/funcs/linked-in-chat-get-unread-count.js.map +1 -0
  190. package/esm/funcs/linked-in-chat-list-archived-conversations.d.ts +18 -0
  191. package/esm/funcs/linked-in-chat-list-archived-conversations.d.ts.map +1 -0
  192. package/esm/funcs/{linkedin-chat-list-archived.js → linked-in-chat-list-archived-conversations.js} +13 -10
  193. package/esm/funcs/linked-in-chat-list-archived-conversations.js.map +1 -0
  194. package/esm/funcs/linked-in-chat-list-starred-conversations.d.ts +18 -0
  195. package/esm/funcs/linked-in-chat-list-starred-conversations.d.ts.map +1 -0
  196. package/esm/funcs/{linked-in-chat-list-starred.js → linked-in-chat-list-starred-conversations.js} +13 -10
  197. package/esm/funcs/linked-in-chat-list-starred-conversations.js.map +1 -0
  198. package/esm/funcs/linked-in-chat-mark-seen.d.ts +1 -1
  199. package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +1 -1
  200. package/esm/funcs/linked-in-chat-mark-seen.js +3 -1
  201. package/esm/funcs/linked-in-chat-mark-seen.js.map +1 -1
  202. package/esm/funcs/linked-in-chat-search-linked-in-conversations.d.ts +18 -0
  203. package/esm/funcs/linked-in-chat-search-linked-in-conversations.d.ts.map +1 -0
  204. package/esm/funcs/{chat-search-conversations.js → linked-in-chat-search-linked-in-conversations.js} +14 -8
  205. package/esm/funcs/linked-in-chat-search-linked-in-conversations.js.map +1 -0
  206. package/esm/funcs/linked-in-chat-star.d.ts +1 -1
  207. package/esm/funcs/linked-in-chat-star.d.ts.map +1 -1
  208. package/esm/funcs/linked-in-chat-star.js +3 -1
  209. package/esm/funcs/linked-in-chat-star.js.map +1 -1
  210. package/esm/funcs/linked-in-chat-unarchive.d.ts +1 -1
  211. package/esm/funcs/linked-in-chat-unarchive.d.ts.map +1 -1
  212. package/esm/funcs/linked-in-chat-unarchive.js +3 -1
  213. package/esm/funcs/linked-in-chat-unarchive.js.map +1 -1
  214. package/esm/funcs/linked-in-chat-unstar.d.ts +1 -1
  215. package/esm/funcs/linked-in-chat-unstar.d.ts.map +1 -1
  216. package/esm/funcs/linked-in-chat-unstar.js +3 -1
  217. package/esm/funcs/linked-in-chat-unstar.js.map +1 -1
  218. package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts +2 -2
  219. package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +1 -1
  220. package/esm/funcs/linked-in-scrapers-collect-comment-replies.js +4 -2
  221. package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +1 -1
  222. package/esm/funcs/linked-in-scrapers-get-feed.d.ts +1 -1
  223. package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +1 -1
  224. package/esm/funcs/linked-in-scrapers-get-feed.js +3 -1
  225. package/esm/funcs/linked-in-scrapers-get-feed.js.map +1 -1
  226. package/esm/funcs/{linked-in-search-resolve-parameters.d.ts → linked-in-search-resolve-linked-in-search-parameters.d.ts} +6 -3
  227. package/esm/funcs/linked-in-search-resolve-linked-in-search-parameters.d.ts.map +1 -0
  228. package/esm/funcs/{linked-in-search-resolve-parameters.js → linked-in-search-resolve-linked-in-search-parameters.js} +18 -8
  229. package/esm/funcs/linked-in-search-resolve-linked-in-search-parameters.js.map +1 -0
  230. package/esm/funcs/linked-in-search-search-companies.d.ts +1 -1
  231. package/esm/funcs/linked-in-search-search-companies.d.ts.map +1 -1
  232. package/esm/funcs/linked-in-search-search-companies.js +3 -1
  233. package/esm/funcs/linked-in-search-search-companies.js.map +1 -1
  234. package/esm/funcs/linked-in-search-search.d.ts +1 -1
  235. package/esm/funcs/linked-in-search-search.d.ts.map +1 -1
  236. package/esm/funcs/linked-in-search-search.js +3 -1
  237. package/esm/funcs/linked-in-search-search.js.map +1 -1
  238. package/esm/funcs/linkedin-actions-accept-invitation.d.ts +1 -1
  239. package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +1 -1
  240. package/esm/funcs/linkedin-actions-accept-invitation.js +3 -1
  241. package/esm/funcs/linkedin-actions-accept-invitation.js.map +1 -1
  242. package/esm/funcs/linkedin-actions-edit-comment.d.ts +1 -1
  243. package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +1 -1
  244. package/esm/funcs/linkedin-actions-edit-comment.js +3 -1
  245. package/esm/funcs/linkedin-actions-edit-comment.js.map +1 -1
  246. package/esm/funcs/linkedin-actions-edit-post.d.ts +1 -1
  247. package/esm/funcs/linkedin-actions-edit-post.d.ts.map +1 -1
  248. package/esm/funcs/linkedin-actions-edit-post.js +3 -1
  249. package/esm/funcs/linkedin-actions-edit-post.js.map +1 -1
  250. package/esm/funcs/linkedin-actions-follow-profile.d.ts +1 -1
  251. package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +1 -1
  252. package/esm/funcs/linkedin-actions-follow-profile.js +3 -1
  253. package/esm/funcs/linkedin-actions-follow-profile.js.map +1 -1
  254. package/esm/funcs/linkedin-actions-like-post.d.ts +1 -1
  255. package/esm/funcs/linkedin-actions-like-post.d.ts.map +1 -1
  256. package/esm/funcs/linkedin-actions-like-post.js +3 -1
  257. package/esm/funcs/linkedin-actions-like-post.js.map +1 -1
  258. package/esm/funcs/linkedin-actions-list-invitations.d.ts +1 -1
  259. package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +1 -1
  260. package/esm/funcs/linkedin-actions-list-invitations.js +3 -1
  261. package/esm/funcs/linkedin-actions-list-invitations.js.map +1 -1
  262. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +1 -1
  263. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +1 -1
  264. package/esm/funcs/linkedin-actions-reply-to-comment.js +3 -1
  265. package/esm/funcs/linkedin-actions-reply-to-comment.js.map +1 -1
  266. package/esm/funcs/linkedin-actions-repost-post.d.ts +2 -2
  267. package/esm/funcs/linkedin-actions-repost-post.d.ts.map +1 -1
  268. package/esm/funcs/linkedin-actions-repost-post.js +4 -2
  269. package/esm/funcs/linkedin-actions-repost-post.js.map +1 -1
  270. package/esm/funcs/linkedin-actions-unfollow-company.d.ts +1 -1
  271. package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +1 -1
  272. package/esm/funcs/linkedin-actions-unfollow-company.js +3 -1
  273. package/esm/funcs/linkedin-actions-unfollow-company.js.map +1 -1
  274. package/esm/funcs/linkedin-actions-unlike-comment.d.ts +1 -1
  275. package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +1 -1
  276. package/esm/funcs/linkedin-actions-unlike-comment.js +3 -1
  277. package/esm/funcs/linkedin-actions-unlike-comment.js.map +1 -1
  278. package/esm/funcs/linkedin-actions-unlike-post.d.ts +1 -1
  279. package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +1 -1
  280. package/esm/funcs/linkedin-actions-unlike-post.js +3 -1
  281. package/esm/funcs/linkedin-actions-unlike-post.js.map +1 -1
  282. package/esm/funcs/linkedin-actions-unsave-post.d.ts +1 -1
  283. package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +1 -1
  284. package/esm/funcs/linkedin-actions-unsave-post.js +3 -1
  285. package/esm/funcs/linkedin-actions-unsave-post.js.map +1 -1
  286. package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts +1 -1
  287. package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +1 -1
  288. package/esm/funcs/linkedin-actions-withdraw-invitation.js +3 -1
  289. package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +1 -1
  290. package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts +2 -2
  291. package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts.map +1 -1
  292. package/esm/funcs/linkedin-chat-list-inbox-conversations.js +8 -4
  293. package/esm/funcs/linkedin-chat-list-inbox-conversations.js.map +1 -1
  294. package/esm/funcs/linkedin-chat-mark-all-read.d.ts +1 -1
  295. package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +1 -1
  296. package/esm/funcs/linkedin-chat-mark-all-read.js +3 -1
  297. package/esm/funcs/linkedin-chat-mark-all-read.js.map +1 -1
  298. package/esm/funcs/linkedin-chat-react.d.ts +1 -1
  299. package/esm/funcs/linkedin-chat-react.d.ts.map +1 -1
  300. package/esm/funcs/linkedin-chat-react.js +3 -1
  301. package/esm/funcs/linkedin-chat-react.js.map +1 -1
  302. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +1 -1
  303. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +1 -1
  304. package/esm/funcs/linkedin-chat-send-typing-indicator.js +3 -1
  305. package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +1 -1
  306. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +2 -2
  307. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +1 -1
  308. package/esm/funcs/linkedin-scrapers-collect-comments.js +4 -2
  309. package/esm/funcs/linkedin-scrapers-collect-comments.js.map +1 -1
  310. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts +1 -1
  311. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +1 -1
  312. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js +3 -1
  313. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js.map +1 -1
  314. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +2 -2
  315. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +1 -1
  316. package/esm/funcs/linkedin-scrapers-collect-likes.js +4 -2
  317. package/esm/funcs/linkedin-scrapers-collect-likes.js.map +1 -1
  318. package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts +1 -1
  319. package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +1 -1
  320. package/esm/funcs/linkedin-scrapers-list-saved-posts.js +3 -1
  321. package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +1 -1
  322. package/esm/funcs/linkedin-scrapers-visit-company.d.ts +1 -1
  323. package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +1 -1
  324. package/esm/funcs/linkedin-scrapers-visit-company.js +3 -1
  325. package/esm/funcs/linkedin-scrapers-visit-company.js.map +1 -1
  326. package/esm/funcs/linkedin-search-search-by-url.d.ts +1 -1
  327. package/esm/funcs/linkedin-search-search-by-url.d.ts.map +1 -1
  328. package/esm/funcs/linkedin-search-search-by-url.js +3 -1
  329. package/esm/funcs/linkedin-search-search-by-url.js.map +1 -1
  330. package/esm/funcs/linkedin-search-search-jobs.d.ts +1 -1
  331. package/esm/funcs/linkedin-search-search-jobs.d.ts.map +1 -1
  332. package/esm/funcs/linkedin-search-search-jobs.js +3 -1
  333. package/esm/funcs/linkedin-search-search-jobs.js.map +1 -1
  334. package/esm/funcs/linkedin-search-search-people.d.ts +1 -1
  335. package/esm/funcs/linkedin-search-search-people.d.ts.map +1 -1
  336. package/esm/funcs/linkedin-search-search-people.js +3 -1
  337. package/esm/funcs/linkedin-search-search-people.js.map +1 -1
  338. package/esm/funcs/linkedin-search-search-posts.d.ts +1 -1
  339. package/esm/funcs/linkedin-search-search-posts.d.ts.map +1 -1
  340. package/esm/funcs/linkedin-search-search-posts.js +3 -1
  341. package/esm/funcs/linkedin-search-search-posts.js.map +1 -1
  342. package/esm/funcs/profile-get-follower-analytics.d.ts +1 -1
  343. package/esm/funcs/profile-get-follower-analytics.d.ts.map +1 -1
  344. package/esm/funcs/profile-get-follower-analytics.js +3 -1
  345. package/esm/funcs/profile-get-follower-analytics.js.map +1 -1
  346. package/esm/funcs/profile-get-followers.d.ts +1 -1
  347. package/esm/funcs/profile-get-followers.d.ts.map +1 -1
  348. package/esm/funcs/profile-get-followers.js +3 -1
  349. package/esm/funcs/profile-get-followers.js.map +1 -1
  350. package/esm/funcs/profile-get-linked-in-connections.d.ts +18 -0
  351. package/esm/funcs/profile-get-linked-in-connections.d.ts.map +1 -0
  352. package/esm/funcs/profile-get-linked-in-connections.js +101 -0
  353. package/esm/funcs/profile-get-linked-in-connections.js.map +1 -0
  354. package/esm/funcs/{profile-get-credits.d.ts → profile-get-my-credits.d.ts} +2 -2
  355. package/esm/funcs/profile-get-my-credits.d.ts.map +1 -0
  356. package/esm/funcs/{profile-get-credits.js → profile-get-my-credits.js} +6 -4
  357. package/esm/funcs/profile-get-my-credits.js.map +1 -0
  358. package/esm/funcs/{profile-get-limits.d.ts → profile-get-my-limits.d.ts} +2 -2
  359. package/esm/funcs/{profile-list-accounts.d.ts.map → profile-get-my-limits.d.ts.map} +1 -1
  360. package/esm/funcs/{profile-get-limits.js → profile-get-my-limits.js} +6 -4
  361. package/esm/funcs/profile-get-my-limits.js.map +1 -0
  362. package/esm/funcs/{profile-get.d.ts → profile-get-my-linked-in-profile.d.ts} +2 -2
  363. package/esm/funcs/profile-get-my-linked-in-profile.d.ts.map +1 -0
  364. package/esm/funcs/{profile-get.js → profile-get-my-linked-in-profile.js} +6 -4
  365. package/esm/funcs/profile-get-my-linked-in-profile.js.map +1 -0
  366. package/esm/funcs/profile-get-post-analytics.d.ts +2 -2
  367. package/esm/funcs/profile-get-post-analytics.d.ts.map +1 -1
  368. package/esm/funcs/profile-get-post-analytics.js +4 -2
  369. package/esm/funcs/profile-get-post-analytics.js.map +1 -1
  370. package/esm/funcs/profile-get-posts.d.ts +1 -1
  371. package/esm/funcs/profile-get-posts.d.ts.map +1 -1
  372. package/esm/funcs/profile-get-posts.js +3 -1
  373. package/esm/funcs/profile-get-posts.js.map +1 -1
  374. package/esm/funcs/profile-get-profile-views.d.ts +1 -1
  375. package/esm/funcs/profile-get-profile-views.d.ts.map +1 -1
  376. package/esm/funcs/profile-get-profile-views.js +3 -1
  377. package/esm/funcs/profile-get-profile-views.js.map +1 -1
  378. package/esm/funcs/profile-get-search-appearances.d.ts +1 -1
  379. package/esm/funcs/profile-get-search-appearances.d.ts.map +1 -1
  380. package/esm/funcs/profile-get-search-appearances.js +3 -1
  381. package/esm/funcs/profile-get-search-appearances.js.map +1 -1
  382. package/esm/funcs/{profile-list-accounts.d.ts → profile-list-linked-in-accounts.d.ts} +2 -2
  383. package/esm/funcs/profile-list-linked-in-accounts.d.ts.map +1 -0
  384. package/esm/funcs/{profile-list-accounts.js → profile-list-linked-in-accounts.js} +6 -4
  385. package/esm/funcs/profile-list-linked-in-accounts.js.map +1 -0
  386. package/esm/funcs/profile-refresh.d.ts +1 -1
  387. package/esm/funcs/profile-refresh.d.ts.map +1 -1
  388. package/esm/funcs/profile-refresh.js +3 -1
  389. package/esm/funcs/profile-refresh.js.map +1 -1
  390. package/esm/funcs/profile-switch-linked-in-account.d.ts +18 -0
  391. package/esm/funcs/profile-switch-linked-in-account.d.ts.map +1 -0
  392. package/esm/funcs/profile-switch-linked-in-account.js +97 -0
  393. package/esm/funcs/profile-switch-linked-in-account.js.map +1 -0
  394. package/esm/funcs/profile-update-account.d.ts +1 -1
  395. package/esm/funcs/profile-update-account.d.ts.map +1 -1
  396. package/esm/funcs/profile-update-account.js +3 -1
  397. package/esm/funcs/profile-update-account.js.map +1 -1
  398. package/esm/funcs/sales-nav-search-people.d.ts +1 -1
  399. package/esm/funcs/sales-nav-search-people.d.ts.map +1 -1
  400. package/esm/funcs/sales-nav-search-people.js +3 -1
  401. package/esm/funcs/sales-nav-search-people.js.map +1 -1
  402. package/esm/funcs/sales-navigator-search-search-companies.d.ts +1 -1
  403. package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +1 -1
  404. package/esm/funcs/sales-navigator-search-search-companies.js +3 -1
  405. package/esm/funcs/sales-navigator-search-search-companies.js.map +1 -1
  406. package/esm/funcs/sales-navigator-search-search.d.ts +1 -1
  407. package/esm/funcs/sales-navigator-search-search.d.ts.map +1 -1
  408. package/esm/funcs/sales-navigator-search-search.js +3 -1
  409. package/esm/funcs/sales-navigator-search-search.js.map +1 -1
  410. package/esm/funcs/scheduled-messages-batch-schedule-messages.d.ts +18 -0
  411. package/esm/funcs/scheduled-messages-batch-schedule-messages.d.ts.map +1 -0
  412. package/esm/funcs/scheduled-messages-batch-schedule-messages.js +97 -0
  413. package/esm/funcs/scheduled-messages-batch-schedule-messages.js.map +1 -0
  414. package/esm/funcs/scheduled-messages-cancel-scheduled-messages.d.ts +18 -0
  415. package/esm/funcs/scheduled-messages-cancel-scheduled-messages.d.ts.map +1 -0
  416. package/esm/funcs/scheduled-messages-cancel-scheduled-messages.js +97 -0
  417. package/esm/funcs/scheduled-messages-cancel-scheduled-messages.js.map +1 -0
  418. package/esm/funcs/{chat-search-conversations.d.ts → scheduled-messages-create-scheduled-message.d.ts} +4 -4
  419. package/esm/funcs/scheduled-messages-create-scheduled-message.d.ts.map +1 -0
  420. package/esm/funcs/scheduled-messages-create-scheduled-message.js +97 -0
  421. package/esm/funcs/scheduled-messages-create-scheduled-message.js.map +1 -0
  422. package/esm/funcs/{linkedin-chat-list-archived.d.ts → scheduled-messages-list-scheduled-messages.d.ts} +4 -4
  423. package/esm/funcs/scheduled-messages-list-scheduled-messages.d.ts.map +1 -0
  424. package/esm/funcs/scheduled-messages-list-scheduled-messages.js +104 -0
  425. package/esm/funcs/scheduled-messages-list-scheduled-messages.js.map +1 -0
  426. package/esm/funcs/scrapers-collect-posts.d.ts +2 -2
  427. package/esm/funcs/scrapers-collect-posts.d.ts.map +1 -1
  428. package/esm/funcs/scrapers-collect-posts.js +4 -2
  429. package/esm/funcs/scrapers-collect-posts.js.map +1 -1
  430. package/esm/funcs/scrapers-visit-profile.d.ts +4 -2
  431. package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
  432. package/esm/funcs/scrapers-visit-profile.js +6 -2
  433. package/esm/funcs/scrapers-visit-profile.js.map +1 -1
  434. package/esm/lib/config.d.ts +4 -4
  435. package/esm/lib/config.d.ts.map +1 -1
  436. package/esm/lib/config.js +7 -3
  437. package/esm/lib/config.js.map +1 -1
  438. package/esm/models/errors/collect-linked-in-likes.d.ts +46 -0
  439. package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -1
  440. package/esm/models/errors/collect-linked-in-likes.js +66 -0
  441. package/esm/models/errors/collect-linked-in-likes.js.map +1 -1
  442. package/esm/models/operations/index.d.ts +4 -4
  443. package/esm/models/operations/index.d.ts.map +1 -1
  444. package/esm/models/operations/index.js +4 -4
  445. package/esm/models/operations/index.js.map +1 -1
  446. package/esm/models/operations/{scraping-weekly.d.ts → refresh-my-linked-in-profile-type.d.ts} +405 -620
  447. package/esm/models/operations/refresh-my-linked-in-profile-type.d.ts.map +1 -0
  448. package/esm/models/operations/{scraping-weekly.js → refresh-my-linked-in-profile-type.js} +270 -302
  449. package/esm/models/operations/refresh-my-linked-in-profile-type.js.map +1 -0
  450. package/esm/models/operations/{search-linked-in-by-url-type-post.d.ts → search-linked-in-jobs-experience-level.d.ts} +305 -255
  451. package/esm/models/operations/search-linked-in-jobs-experience-level.d.ts.map +1 -0
  452. package/esm/models/operations/{search-linked-in-by-url-type-post.js → search-linked-in-jobs-experience-level.js} +211 -178
  453. package/esm/models/operations/search-linked-in-jobs-experience-level.js.map +1 -0
  454. package/esm/models/operations/{get-campaign-stats-response.d.ts → update-contact-outreach-status.d.ts} +1520 -386
  455. package/esm/models/operations/update-contact-outreach-status.d.ts.map +1 -0
  456. package/esm/models/operations/{get-campaign-stats-response.js → update-contact-outreach-status.js} +923 -249
  457. package/esm/models/operations/update-contact-outreach-status.js.map +1 -0
  458. package/esm/models/operations/update-cron-schedule-response.d.ts +1820 -0
  459. package/esm/models/operations/update-cron-schedule-response.d.ts.map +1 -0
  460. package/esm/models/operations/update-cron-schedule-response.js +1194 -0
  461. package/esm/models/operations/update-cron-schedule-response.js.map +1 -0
  462. package/esm/sdk/actions.d.ts +2 -2
  463. package/esm/sdk/actions.js +2 -2
  464. package/esm/sdk/campaigns.d.ts +1 -1
  465. package/esm/sdk/campaigns.d.ts.map +1 -1
  466. package/esm/sdk/campaigns.js +3 -3
  467. package/esm/sdk/campaigns.js.map +1 -1
  468. package/esm/sdk/chat.d.ts +1 -15
  469. package/esm/sdk/chat.d.ts.map +1 -1
  470. package/esm/sdk/chat.js +1 -18
  471. package/esm/sdk/chat.js.map +1 -1
  472. package/esm/sdk/contacts.d.ts +127 -1
  473. package/esm/sdk/contacts.d.ts.map +1 -1
  474. package/esm/sdk/contacts.js +181 -1
  475. package/esm/sdk/contacts.js.map +1 -1
  476. package/esm/sdk/context.d.ts +26 -0
  477. package/esm/sdk/context.d.ts.map +1 -0
  478. package/esm/sdk/context.js +38 -0
  479. package/esm/sdk/context.js.map +1 -0
  480. package/esm/sdk/cron.d.ts +19 -0
  481. package/esm/sdk/cron.d.ts.map +1 -0
  482. package/esm/sdk/cron.js +28 -0
  483. package/esm/sdk/cron.js.map +1 -0
  484. package/esm/sdk/linked-in-chat-2.d.ts +39 -7
  485. package/esm/sdk/linked-in-chat-2.d.ts.map +1 -1
  486. package/esm/sdk/linked-in-chat-2.js +54 -10
  487. package/esm/sdk/linked-in-chat-2.js.map +1 -1
  488. package/esm/sdk/linked-in-scrapers-2.d.ts +1 -1
  489. package/esm/sdk/linked-in-scrapers-2.js +1 -1
  490. package/esm/sdk/linked-in-search-1.d.ts +5 -2
  491. package/esm/sdk/linked-in-search-1.d.ts.map +1 -1
  492. package/esm/sdk/linked-in-search-1.js +7 -4
  493. package/esm/sdk/linked-in-search-1.js.map +1 -1
  494. package/esm/sdk/linkedin-actions-1.d.ts +1 -1
  495. package/esm/sdk/linkedin-actions-1.js +1 -1
  496. package/esm/sdk/linkedin-chat-1.d.ts +2 -27
  497. package/esm/sdk/linkedin-chat-1.d.ts.map +1 -1
  498. package/esm/sdk/linkedin-chat-1.js +1 -35
  499. package/esm/sdk/linkedin-chat-1.js.map +1 -1
  500. package/esm/sdk/linkedin-scrapers-1.d.ts +2 -2
  501. package/esm/sdk/linkedin-scrapers-1.js +2 -2
  502. package/esm/sdk/profile.d.ts +19 -5
  503. package/esm/sdk/profile.d.ts.map +1 -1
  504. package/esm/sdk/profile.js +33 -13
  505. package/esm/sdk/profile.js.map +1 -1
  506. package/esm/sdk/scheduled-messages.d.ts +33 -0
  507. package/esm/sdk/scheduled-messages.d.ts.map +1 -0
  508. package/esm/sdk/scheduled-messages.js +48 -0
  509. package/esm/sdk/scheduled-messages.js.map +1 -0
  510. package/esm/sdk/scrapers.d.ts +4 -2
  511. package/esm/sdk/scrapers.d.ts.map +1 -1
  512. package/esm/sdk/scrapers.js +4 -2
  513. package/esm/sdk/scrapers.js.map +1 -1
  514. package/esm/sdk/sdk.d.ts +11 -2
  515. package/esm/sdk/sdk.d.ts.map +1 -1
  516. package/esm/sdk/sdk.js +19 -4
  517. package/esm/sdk/sdk.js.map +1 -1
  518. package/jsr.json +1 -1
  519. package/package.json +2 -4
  520. package/src/funcs/actions-connect-profile.ts +11 -1
  521. package/src/funcs/actions-follow-company.ts +10 -0
  522. package/src/funcs/actions-list-sent-invitations.ts +10 -0
  523. package/src/funcs/actions-send-message.ts +11 -1
  524. package/src/funcs/campaigns-filter.ts +10 -0
  525. package/src/funcs/{campaigns-get-stats.ts → campaigns-get-campaign-stats.ts} +14 -5
  526. package/src/funcs/campaigns-get-status.ts +10 -0
  527. package/src/funcs/campaigns-sync.ts +10 -0
  528. package/src/funcs/chat-archive.ts +10 -0
  529. package/src/funcs/chat-find-conversation.ts +11 -8
  530. package/src/funcs/chat-unreact.ts +10 -0
  531. package/src/funcs/company-pages-get-analytics.ts +10 -0
  532. package/src/funcs/company-pages-get-permissions.ts +10 -0
  533. package/src/funcs/company-pages-get-posts.ts +10 -0
  534. package/src/funcs/company-pages-list.ts +10 -0
  535. package/src/funcs/contacts-add-campaign-contacts.ts +233 -0
  536. package/src/funcs/contacts-add-contact-activities.ts +231 -0
  537. package/src/funcs/contacts-bulk-update-contacts.ts +225 -0
  538. package/src/funcs/contacts-create-campaign.ts +224 -0
  539. package/src/funcs/contacts-delete-agent-state.ts +230 -0
  540. package/src/funcs/contacts-get-agent-state.ts +229 -0
  541. package/src/funcs/contacts-get-contact-by-url.ts +228 -0
  542. package/src/funcs/contacts-get-contact-stats.ts +232 -0
  543. package/src/funcs/contacts-get-contact.ts +229 -0
  544. package/src/funcs/contacts-list-agent-states.ts +205 -0
  545. package/src/funcs/contacts-list-campaign-contacts.ts +242 -0
  546. package/src/funcs/contacts-list-campaigns.ts +235 -0
  547. package/src/funcs/contacts-list-contact-activities.ts +237 -0
  548. package/src/funcs/contacts-patch-agent-state.ts +230 -0
  549. package/src/funcs/contacts-search-contacts.ts +244 -0
  550. package/src/funcs/contacts-set-agent-state.ts +230 -0
  551. package/src/funcs/contacts-update-campaign.ts +230 -0
  552. package/src/funcs/contacts-update-contact.ts +230 -0
  553. package/src/funcs/contacts-upsert.ts +66 -3
  554. package/src/funcs/context-delete-context.ts +229 -0
  555. package/src/funcs/context-list-context.ts +230 -0
  556. package/src/funcs/context-set-context.ts +224 -0
  557. package/src/funcs/cron-list-cron-schedules.ts +205 -0
  558. package/src/funcs/cron-update-cron-schedule.ts +231 -0
  559. package/src/funcs/linked-in-actions-create-comment.ts +10 -0
  560. package/src/funcs/linked-in-actions-decline-invitation.ts +10 -0
  561. package/src/funcs/linked-in-actions-like-comment.ts +10 -0
  562. package/src/funcs/linked-in-actions-publish-post.ts +10 -0
  563. package/src/funcs/linked-in-actions-save-post.ts +10 -0
  564. package/src/funcs/linked-in-actions-unfollow-profile.ts +10 -0
  565. package/src/funcs/{linkedin-chat-get-messages.ts → linked-in-chat-get-conversation-messages.ts} +22 -7
  566. package/src/funcs/{linkedin-chat-get-unread-count.ts → linked-in-chat-get-unread-count.ts} +12 -6
  567. package/src/funcs/{linkedin-chat-list-archived.ts → linked-in-chat-list-archived-conversations.ts} +20 -8
  568. package/src/funcs/{linked-in-chat-list-starred.ts → linked-in-chat-list-starred-conversations.ts} +20 -8
  569. package/src/funcs/linked-in-chat-mark-seen.ts +10 -0
  570. package/src/funcs/{chat-search-conversations.ts → linked-in-chat-search-linked-in-conversations.ts} +21 -6
  571. package/src/funcs/linked-in-chat-star.ts +10 -0
  572. package/src/funcs/linked-in-chat-unarchive.ts +10 -0
  573. package/src/funcs/linked-in-chat-unstar.ts +10 -0
  574. package/src/funcs/linked-in-scrapers-collect-comment-replies.ts +11 -1
  575. package/src/funcs/linked-in-scrapers-get-feed.ts +10 -0
  576. package/src/funcs/{linked-in-search-resolve-parameters.ts → linked-in-search-resolve-linked-in-search-parameters.ts} +25 -6
  577. package/src/funcs/linked-in-search-search-companies.ts +10 -0
  578. package/src/funcs/linked-in-search-search.ts +10 -0
  579. package/src/funcs/linkedin-actions-accept-invitation.ts +10 -0
  580. package/src/funcs/linkedin-actions-edit-comment.ts +10 -0
  581. package/src/funcs/linkedin-actions-edit-post.ts +10 -0
  582. package/src/funcs/linkedin-actions-follow-profile.ts +10 -0
  583. package/src/funcs/linkedin-actions-like-post.ts +10 -0
  584. package/src/funcs/linkedin-actions-list-invitations.ts +10 -0
  585. package/src/funcs/linkedin-actions-reply-to-comment.ts +10 -0
  586. package/src/funcs/linkedin-actions-repost-post.ts +11 -1
  587. package/src/funcs/linkedin-actions-unfollow-company.ts +10 -0
  588. package/src/funcs/linkedin-actions-unlike-comment.ts +10 -0
  589. package/src/funcs/linkedin-actions-unlike-post.ts +10 -0
  590. package/src/funcs/linkedin-actions-unsave-post.ts +10 -0
  591. package/src/funcs/linkedin-actions-withdraw-invitation.ts +10 -0
  592. package/src/funcs/linkedin-chat-list-inbox-conversations.ts +20 -5
  593. package/src/funcs/linkedin-chat-mark-all-read.ts +10 -0
  594. package/src/funcs/linkedin-chat-react.ts +10 -0
  595. package/src/funcs/linkedin-chat-send-typing-indicator.ts +10 -0
  596. package/src/funcs/linkedin-scrapers-collect-comments.ts +11 -1
  597. package/src/funcs/linkedin-scrapers-collect-hashtag-posts.ts +10 -0
  598. package/src/funcs/linkedin-scrapers-collect-likes.ts +11 -1
  599. package/src/funcs/linkedin-scrapers-list-saved-posts.ts +10 -0
  600. package/src/funcs/linkedin-scrapers-visit-company.ts +10 -0
  601. package/src/funcs/linkedin-search-search-by-url.ts +10 -0
  602. package/src/funcs/linkedin-search-search-jobs.ts +10 -0
  603. package/src/funcs/linkedin-search-search-people.ts +10 -0
  604. package/src/funcs/linkedin-search-search-posts.ts +10 -0
  605. package/src/funcs/profile-get-follower-analytics.ts +10 -0
  606. package/src/funcs/profile-get-followers.ts +10 -0
  607. package/src/funcs/profile-get-linked-in-connections.ts +233 -0
  608. package/src/funcs/{profile-get-credits.ts → profile-get-my-credits.ts} +12 -2
  609. package/src/funcs/{profile-get-limits.ts → profile-get-my-limits.ts} +12 -2
  610. package/src/funcs/{profile-get.ts → profile-get-my-linked-in-profile.ts} +12 -2
  611. package/src/funcs/profile-get-post-analytics.ts +11 -1
  612. package/src/funcs/profile-get-posts.ts +10 -0
  613. package/src/funcs/profile-get-profile-views.ts +10 -0
  614. package/src/funcs/profile-get-search-appearances.ts +10 -0
  615. package/src/funcs/{profile-list-accounts.ts → profile-list-linked-in-accounts.ts} +12 -2
  616. package/src/funcs/profile-refresh.ts +10 -0
  617. package/src/funcs/profile-switch-linked-in-account.ts +225 -0
  618. package/src/funcs/profile-update-account.ts +10 -0
  619. package/src/funcs/sales-nav-search-people.ts +10 -0
  620. package/src/funcs/sales-navigator-search-search-companies.ts +10 -0
  621. package/src/funcs/sales-navigator-search-search.ts +10 -0
  622. package/src/funcs/scheduled-messages-batch-schedule-messages.ts +225 -0
  623. package/src/funcs/scheduled-messages-cancel-scheduled-messages.ts +225 -0
  624. package/src/funcs/scheduled-messages-create-scheduled-message.ts +225 -0
  625. package/src/funcs/scheduled-messages-list-scheduled-messages.ts +236 -0
  626. package/src/funcs/scrapers-collect-posts.ts +11 -1
  627. package/src/funcs/scrapers-visit-profile.ts +13 -1
  628. package/src/lib/config.ts +7 -3
  629. package/src/models/errors/collect-linked-in-likes.ts +108 -0
  630. package/src/models/operations/index.ts +4 -4
  631. package/src/models/operations/{scraping-weekly.ts → refresh-my-linked-in-profile-type.ts} +2106 -2363
  632. package/src/models/operations/{search-linked-in-by-url-type-post.ts → search-linked-in-jobs-experience-level.ts} +649 -536
  633. package/src/models/operations/{get-campaign-stats-response.ts → update-contact-outreach-status.ts} +3582 -1450
  634. package/src/models/operations/update-cron-schedule-response.ts +3771 -0
  635. package/src/sdk/actions.ts +2 -2
  636. package/src/sdk/campaigns.ts +3 -3
  637. package/src/sdk/chat.ts +1 -26
  638. package/src/sdk/contacts.ts +323 -1
  639. package/src/sdk/context.ts +63 -0
  640. package/src/sdk/cron.ts +43 -0
  641. package/src/sdk/linked-in-chat-2.ts +92 -18
  642. package/src/sdk/linked-in-scrapers-2.ts +1 -1
  643. package/src/sdk/linked-in-search-1.ts +7 -4
  644. package/src/sdk/linkedin-actions-1.ts +1 -1
  645. package/src/sdk/linkedin-chat-1.ts +2 -60
  646. package/src/sdk/linkedin-scrapers-1.ts +2 -2
  647. package/src/sdk/profile.ts +49 -13
  648. package/src/sdk/scheduled-messages.ts +81 -0
  649. package/src/sdk/scrapers.ts +4 -2
  650. package/src/sdk/sdk.ts +23 -5
  651. package/esm/funcs/campaigns-get-stats.js.map +0 -1
  652. package/esm/funcs/chat-search-conversations.js.map +0 -1
  653. package/esm/funcs/linked-in-chat-list-starred.d.ts +0 -18
  654. package/esm/funcs/linked-in-chat-list-starred.d.ts.map +0 -1
  655. package/esm/funcs/linked-in-chat-list-starred.js.map +0 -1
  656. package/esm/funcs/linked-in-search-resolve-parameters.d.ts.map +0 -1
  657. package/esm/funcs/linked-in-search-resolve-parameters.js.map +0 -1
  658. package/esm/funcs/linkedin-chat-get-messages.d.ts +0 -22
  659. package/esm/funcs/linkedin-chat-get-messages.d.ts.map +0 -1
  660. package/esm/funcs/linkedin-chat-get-messages.js.map +0 -1
  661. package/esm/funcs/linkedin-chat-get-unread-count.d.ts.map +0 -1
  662. package/esm/funcs/linkedin-chat-get-unread-count.js.map +0 -1
  663. package/esm/funcs/linkedin-chat-list-archived.d.ts.map +0 -1
  664. package/esm/funcs/linkedin-chat-list-archived.js.map +0 -1
  665. package/esm/funcs/profile-get-credits.d.ts.map +0 -1
  666. package/esm/funcs/profile-get-credits.js.map +0 -1
  667. package/esm/funcs/profile-get-limits.d.ts.map +0 -1
  668. package/esm/funcs/profile-get-limits.js.map +0 -1
  669. package/esm/funcs/profile-get.d.ts.map +0 -1
  670. package/esm/funcs/profile-get.js.map +0 -1
  671. package/esm/funcs/profile-list-accounts.js.map +0 -1
  672. package/esm/models/operations/get-campaign-stats-response.d.ts.map +0 -1
  673. package/esm/models/operations/get-campaign-stats-response.js.map +0 -1
  674. package/esm/models/operations/scraping-weekly.d.ts.map +0 -1
  675. package/esm/models/operations/scraping-weekly.js.map +0 -1
  676. package/esm/models/operations/search-linked-in-by-url-type-post.d.ts.map +0 -1
  677. package/esm/models/operations/search-linked-in-by-url-type-post.js.map +0 -1
  678. package/esm/models/operations/upsert-contacts.d.ts +0 -182
  679. package/esm/models/operations/upsert-contacts.d.ts.map +0 -1
  680. package/esm/models/operations/upsert-contacts.js +0 -116
  681. package/esm/models/operations/upsert-contacts.js.map +0 -1
  682. package/src/models/operations/upsert-contacts.ts +0 -305
@@ -0,0 +1,3771 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as types from "../../types/primitives.js";
11
+ import { smartUnion } from "../../types/smart-union.js";
12
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
13
+ import {
14
+ UpdateContactLifecycleStage,
15
+ UpdateContactLifecycleStage$outboundSchema,
16
+ UpdateContactOutreachStatus,
17
+ UpdateContactOutreachStatus$outboundSchema,
18
+ } from "./update-contact-outreach-status.js";
19
+
20
+ export type UpdateContactTags3 = {
21
+ set: Array<string>;
22
+ };
23
+
24
+ export type UpdateContactTags2 = {
25
+ add?: Array<string> | undefined;
26
+ remove: Array<string>;
27
+ };
28
+
29
+ export type UpdateContactTags1 = {
30
+ add: Array<string>;
31
+ remove?: Array<string> | undefined;
32
+ };
33
+
34
+ /**
35
+ * Add/remove/set tags
36
+ */
37
+ export type UpdateContactTagsUnion =
38
+ | UpdateContactTags1
39
+ | UpdateContactTags2
40
+ | UpdateContactTags3;
41
+
42
+ export type UpdateContactRequestBody = {
43
+ /**
44
+ * Promote to new stage (forward-only, except rejected)
45
+ */
46
+ lifecycleStage?: UpdateContactLifecycleStage | undefined;
47
+ hotScore?: number | undefined;
48
+ qualificationNotes?: string | undefined;
49
+ notes?: string | undefined;
50
+ /**
51
+ * Update contact name
52
+ */
53
+ name?: string | undefined;
54
+ /**
55
+ * Full LinkedIn profile snapshot (JSON)
56
+ */
57
+ profileData?: any | undefined;
58
+ /**
59
+ * When profileData was last refreshed
60
+ */
61
+ profileUpdatedAt?: Date | undefined;
62
+ /**
63
+ * DM history (JSON: historySummary + recentMessages)
64
+ */
65
+ conversationData?: any | undefined;
66
+ /**
67
+ * When conversationData was last synced
68
+ */
69
+ conversationUpdatedAt?: Date | undefined;
70
+ /**
71
+ * Manual outreach status override
72
+ */
73
+ outreachStatus?: UpdateContactOutreachStatus | undefined;
74
+ /**
75
+ * When agent should follow up (null to clear)
76
+ */
77
+ nextFollowUpAt?: Date | null | undefined;
78
+ /**
79
+ * Flag contact as do-not-contact
80
+ */
81
+ doNotContact?: boolean | undefined;
82
+ /**
83
+ * Add/remove/set tags
84
+ */
85
+ tags?:
86
+ | UpdateContactTags1
87
+ | UpdateContactTags2
88
+ | UpdateContactTags3
89
+ | undefined;
90
+ };
91
+
92
+ export type UpdateContactRequest = {
93
+ /**
94
+ * Contact ID
95
+ */
96
+ id: string;
97
+ body: UpdateContactRequestBody;
98
+ };
99
+
100
+ export type UpdateContactContact = {
101
+ id: string;
102
+ linkedinUrl: string;
103
+ /**
104
+ * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
105
+ */
106
+ profileUrn: string | null;
107
+ /**
108
+ * LinkedIn vanity slug (e.g. joshuaau)
109
+ */
110
+ publicIdentifier: string | null;
111
+ name: string;
112
+ lifecycleStage: string;
113
+ hotScore: number;
114
+ qualificationNotes: string | null;
115
+ notes: string | null;
116
+ stageChangedAt: string | null;
117
+ profileData: any | null;
118
+ profileUpdatedAt: string | null;
119
+ conversationData: any | null;
120
+ conversationUpdatedAt: string | null;
121
+ outreachStatus: string;
122
+ lastContactedAt: string | null;
123
+ lastRepliedAt: string | null;
124
+ nextFollowUpAt: string | null;
125
+ doNotContact: boolean;
126
+ tags: Array<string>;
127
+ createdAt: string;
128
+ updatedAt: string;
129
+ };
130
+
131
+ /**
132
+ * Updated contact
133
+ */
134
+ export type UpdateContactResponse = {
135
+ success: true;
136
+ contact: UpdateContactContact;
137
+ /**
138
+ * Credits consumed by this call (always 0 for contacts queries).
139
+ */
140
+ creditsUsed: number;
141
+ /**
142
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
143
+ */
144
+ retryAfter: number;
145
+ };
146
+
147
+ export type ListContactActivitiesRequest = {
148
+ /**
149
+ * Filter by activity type
150
+ */
151
+ type?: string | undefined;
152
+ limit?: number | undefined;
153
+ offset?: number | undefined;
154
+ /**
155
+ * Contact ID
156
+ */
157
+ id: string;
158
+ };
159
+
160
+ export type ListContactActivitiesActivity = {
161
+ id: string;
162
+ type: string;
163
+ content: string | null;
164
+ metadata: any | null;
165
+ createdAt: string;
166
+ };
167
+
168
+ export type ListContactActivitiesPagination = {
169
+ limit: number;
170
+ offset: number;
171
+ total: number;
172
+ };
173
+
174
+ /**
175
+ * Contact activities
176
+ */
177
+ export type ListContactActivitiesResponse = {
178
+ success: true;
179
+ activities: Array<ListContactActivitiesActivity>;
180
+ pagination: ListContactActivitiesPagination;
181
+ /**
182
+ * Credits consumed by this call (always 0 for contacts queries).
183
+ */
184
+ creditsUsed: number;
185
+ /**
186
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
187
+ */
188
+ retryAfter: number;
189
+ };
190
+
191
+ /**
192
+ * Activity type
193
+ */
194
+ export const AddContactActivitiesType = {
195
+ ConnectionRequest: "connection_request",
196
+ Message: "message",
197
+ FollowUp: "follow_up",
198
+ ReplyReceived: "reply_received",
199
+ ConnectionAccepted: "connection_accepted",
200
+ ProfileView: "profile_view",
201
+ EngagementObserved: "engagement_observed",
202
+ PostInteraction: "post_interaction",
203
+ SearchFound: "search_found",
204
+ Qualification: "qualification",
205
+ StageChange: "stage_change",
206
+ MessageReceived: "message_received",
207
+ UserInterest: "user_interest",
208
+ MeetingBooked: "meeting_booked",
209
+ MeetingCompleted: "meeting_completed",
210
+ MeetingCancelled: "meeting_cancelled",
211
+ DoNotContact: "do_not_contact",
212
+ } as const;
213
+ /**
214
+ * Activity type
215
+ */
216
+ export type AddContactActivitiesType = ClosedEnum<
217
+ typeof AddContactActivitiesType
218
+ >;
219
+
220
+ export type AddContactActivitiesActivity = {
221
+ /**
222
+ * Activity type
223
+ */
224
+ type: AddContactActivitiesType;
225
+ /**
226
+ * Human-readable description of what happened
227
+ */
228
+ content?: string | undefined;
229
+ /**
230
+ * Structured data: postUrl, postAuthor, angle, distance, etc.
231
+ */
232
+ metadata?: any | undefined;
233
+ };
234
+
235
+ export type AddContactActivitiesRequestBody = {
236
+ /**
237
+ * Activities to log
238
+ */
239
+ activities: Array<AddContactActivitiesActivity>;
240
+ };
241
+
242
+ export type AddContactActivitiesRequest = {
243
+ /**
244
+ * Contact ID
245
+ */
246
+ id: string;
247
+ body: AddContactActivitiesRequestBody;
248
+ };
249
+
250
+ /**
251
+ * Activities logged
252
+ */
253
+ export type AddContactActivitiesResponse = {
254
+ success: true;
255
+ created: number;
256
+ /**
257
+ * Credits consumed by this call (always 0 for contacts queries).
258
+ */
259
+ creditsUsed: number;
260
+ /**
261
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
262
+ */
263
+ retryAfter: number;
264
+ };
265
+
266
+ export const BulkUpdateContactsLifecycleStage = {
267
+ Contact: "contact",
268
+ Lead: "lead",
269
+ Qualified: "qualified",
270
+ Approved: "approved",
271
+ Rejected: "rejected",
272
+ } as const;
273
+ export type BulkUpdateContactsLifecycleStage = ClosedEnum<
274
+ typeof BulkUpdateContactsLifecycleStage
275
+ >;
276
+
277
+ export const BulkUpdateContactsOutreachStatus = {
278
+ None: "none",
279
+ ConnectionSent: "connection_sent",
280
+ Connected: "connected",
281
+ DmSent: "dm_sent",
282
+ FollowedUp: "followed_up",
283
+ Replied: "replied",
284
+ InConversation: "in_conversation",
285
+ MeetingBooked: "meeting_booked",
286
+ Converted: "converted",
287
+ NotInterested: "not_interested",
288
+ } as const;
289
+ export type BulkUpdateContactsOutreachStatus = ClosedEnum<
290
+ typeof BulkUpdateContactsOutreachStatus
291
+ >;
292
+
293
+ export type BulkUpdateContactsTags3 = {
294
+ set: Array<string>;
295
+ };
296
+
297
+ export type BulkUpdateContactsTags2 = {
298
+ add?: Array<string> | undefined;
299
+ remove: Array<string>;
300
+ };
301
+
302
+ export type BulkUpdateContactsTags1 = {
303
+ add: Array<string>;
304
+ remove?: Array<string> | undefined;
305
+ };
306
+
307
+ /**
308
+ * Tag operations: { add, remove } or { set }
309
+ */
310
+ export type BulkUpdateContactsTagsUnion =
311
+ | BulkUpdateContactsTags1
312
+ | BulkUpdateContactsTags2
313
+ | BulkUpdateContactsTags3;
314
+
315
+ /**
316
+ * Fields to update on all matching contacts
317
+ */
318
+ export type Update = {
319
+ lifecycleStage?: BulkUpdateContactsLifecycleStage | undefined;
320
+ hotScore?: number | undefined;
321
+ qualificationNotes?: string | undefined;
322
+ notes?: string | undefined;
323
+ outreachStatus?: BulkUpdateContactsOutreachStatus | undefined;
324
+ nextFollowUpAt?: Date | null | undefined;
325
+ doNotContact?: boolean | undefined;
326
+ /**
327
+ * Tag operations: { add, remove } or { set }
328
+ */
329
+ tags?:
330
+ | BulkUpdateContactsTags1
331
+ | BulkUpdateContactsTags2
332
+ | BulkUpdateContactsTags3
333
+ | undefined;
334
+ };
335
+
336
+ export type BulkUpdateContactsRequest = {
337
+ /**
338
+ * Contact IDs to update
339
+ */
340
+ contactIds: Array<string>;
341
+ /**
342
+ * Fields to update on all matching contacts
343
+ */
344
+ update: Update;
345
+ };
346
+
347
+ /**
348
+ * Bulk update results
349
+ */
350
+ export type BulkUpdateContactsResponse = {
351
+ success: true;
352
+ updated: number;
353
+ skipped: number;
354
+ errors: Array<string>;
355
+ /**
356
+ * Credits consumed by this call (always 0 for contacts queries).
357
+ */
358
+ creditsUsed: number;
359
+ /**
360
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
361
+ */
362
+ retryAfter: number;
363
+ };
364
+
365
+ export type GetContactStatsRequest = {
366
+ /**
367
+ * Filter stats by campaign
368
+ */
369
+ campaignId?: string | undefined;
370
+ };
371
+
372
+ export type Funnel = {
373
+ contact: number;
374
+ lead: number;
375
+ qualified: number;
376
+ approved: number;
377
+ rejected: number;
378
+ };
379
+
380
+ export type BySourceAngle = {
381
+ total: number;
382
+ contact: number;
383
+ lead: number;
384
+ qualified: number;
385
+ approved: number;
386
+ rejected: number;
387
+ };
388
+
389
+ export type ByCampaign = {
390
+ name: string;
391
+ total: number;
392
+ contact: number;
393
+ lead: number;
394
+ qualified: number;
395
+ approved: number;
396
+ rejected: number;
397
+ };
398
+
399
+ export type GetContactStatsDaily = {
400
+ date: string;
401
+ created: number;
402
+ };
403
+
404
+ /**
405
+ * Contact statistics
406
+ */
407
+ export type GetContactStatsResponse = {
408
+ success: true;
409
+ funnel: Funnel;
410
+ bySource: { [k: string]: number };
411
+ bySourceAngle: { [k: string]: BySourceAngle };
412
+ byCampaign: { [k: string]: ByCampaign };
413
+ daily: Array<GetContactStatsDaily>;
414
+ /**
415
+ * Credits consumed by this call (always 0 for contacts queries).
416
+ */
417
+ creditsUsed: number;
418
+ /**
419
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
420
+ */
421
+ retryAfter: number;
422
+ };
423
+
424
+ export type State = {
425
+ key: string;
426
+ /**
427
+ * Full state object
428
+ */
429
+ data: any;
430
+ updatedAt: string | null;
431
+ };
432
+
433
+ /**
434
+ * All state entries
435
+ */
436
+ export type ListAgentStatesResponse = {
437
+ success: true;
438
+ states: Array<State>;
439
+ /**
440
+ * Credits consumed by this call (always 0 for contacts queries).
441
+ */
442
+ creditsUsed: number;
443
+ /**
444
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
445
+ */
446
+ retryAfter: number;
447
+ };
448
+
449
+ export type GetAgentStateRequest = {
450
+ /**
451
+ * State key
452
+ */
453
+ key: string;
454
+ };
455
+
456
+ /**
457
+ * State entry
458
+ */
459
+ export type GetAgentStateResponse = {
460
+ success: true;
461
+ key: string;
462
+ /**
463
+ * Full state object
464
+ */
465
+ data: any;
466
+ updatedAt: string | null;
467
+ /**
468
+ * Credits consumed by this call (always 0 for contacts queries).
469
+ */
470
+ creditsUsed: number;
471
+ /**
472
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
473
+ */
474
+ retryAfter: number;
475
+ };
476
+
477
+ export type SetAgentStateRequestBody = {
478
+ /**
479
+ * Full state object to store
480
+ */
481
+ data: any;
482
+ };
483
+
484
+ export type SetAgentStateRequest = {
485
+ /**
486
+ * State key
487
+ */
488
+ key: string;
489
+ body: SetAgentStateRequestBody;
490
+ };
491
+
492
+ /**
493
+ * State saved
494
+ */
495
+ export type SetAgentStateResponse = {
496
+ success: true;
497
+ key: string;
498
+ /**
499
+ * Full state object
500
+ */
501
+ data: any;
502
+ updatedAt: string | null;
503
+ /**
504
+ * Credits consumed by this call (always 0 for contacts queries).
505
+ */
506
+ creditsUsed: number;
507
+ /**
508
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
509
+ */
510
+ retryAfter: number;
511
+ };
512
+
513
+ export type DeleteAgentStateRequest = {
514
+ /**
515
+ * State key
516
+ */
517
+ key: string;
518
+ };
519
+
520
+ /**
521
+ * State deleted
522
+ */
523
+ export type DeleteAgentStateResponse = {
524
+ success: true;
525
+ /**
526
+ * Credits consumed by this call (always 0 for contacts queries).
527
+ */
528
+ creditsUsed: number;
529
+ /**
530
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
531
+ */
532
+ retryAfter: number;
533
+ };
534
+
535
+ export type PatchAgentStateRequestBody = {
536
+ /**
537
+ * Partial state fields to merge
538
+ */
539
+ data: { [k: string]: any };
540
+ };
541
+
542
+ export type PatchAgentStateRequest = {
543
+ /**
544
+ * State key
545
+ */
546
+ key: string;
547
+ body: PatchAgentStateRequestBody;
548
+ };
549
+
550
+ /**
551
+ * State merged
552
+ */
553
+ export type PatchAgentStateResponse = {
554
+ success: true;
555
+ key: string;
556
+ /**
557
+ * Full state object
558
+ */
559
+ data: any;
560
+ updatedAt: string | null;
561
+ /**
562
+ * Credits consumed by this call (always 0 for contacts queries).
563
+ */
564
+ creditsUsed: number;
565
+ /**
566
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
567
+ */
568
+ retryAfter: number;
569
+ };
570
+
571
+ export const ListCampaignsType = {
572
+ Outreach: "outreach",
573
+ LeadGen: "lead_gen",
574
+ LeadMagnet: "lead_magnet",
575
+ } as const;
576
+ export type ListCampaignsType = ClosedEnum<typeof ListCampaignsType>;
577
+
578
+ export type ListCampaignsRequest = {
579
+ type?: ListCampaignsType | undefined;
580
+ status?: string | undefined;
581
+ limit?: number | undefined;
582
+ offset?: number | undefined;
583
+ };
584
+
585
+ export type ListCampaignsStageCounts = {
586
+ contact: number;
587
+ lead: number;
588
+ qualified: number;
589
+ approved: number;
590
+ rejected: number;
591
+ };
592
+
593
+ export type ListCampaignsCampaign = {
594
+ id: string;
595
+ name: string;
596
+ description: string | null;
597
+ context: string | null;
598
+ type: string;
599
+ status: string;
600
+ totalContacts: number;
601
+ stageCounts?: ListCampaignsStageCounts | undefined;
602
+ createdAt: string;
603
+ updatedAt: string;
604
+ };
605
+
606
+ export type ListCampaignsPagination = {
607
+ limit: number;
608
+ offset: number;
609
+ total: number;
610
+ };
611
+
612
+ /**
613
+ * Campaigns list
614
+ */
615
+ export type ListCampaignsResponse = {
616
+ success: true;
617
+ campaigns: Array<ListCampaignsCampaign>;
618
+ pagination: ListCampaignsPagination;
619
+ /**
620
+ * Credits consumed by this call (always 0 for contacts queries).
621
+ */
622
+ creditsUsed: number;
623
+ /**
624
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
625
+ */
626
+ retryAfter: number;
627
+ };
628
+
629
+ /**
630
+ * Campaign type
631
+ */
632
+ export const CreateCampaignType = {
633
+ Outreach: "outreach",
634
+ LeadGen: "lead_gen",
635
+ LeadMagnet: "lead_magnet",
636
+ } as const;
637
+ /**
638
+ * Campaign type
639
+ */
640
+ export type CreateCampaignType = ClosedEnum<typeof CreateCampaignType>;
641
+
642
+ export type CreateCampaignRequest = {
643
+ /**
644
+ * Campaign name (e.g., 'lg-engagement-competitor-openai')
645
+ */
646
+ name: string;
647
+ /**
648
+ * Optional campaign description
649
+ */
650
+ description?: string | undefined;
651
+ /**
652
+ * Full agent instructions in markdown
653
+ */
654
+ context?: string | undefined;
655
+ /**
656
+ * Campaign type
657
+ */
658
+ type?: CreateCampaignType | undefined;
659
+ };
660
+
661
+ export type CreateCampaignStageCounts = {
662
+ contact: number;
663
+ lead: number;
664
+ qualified: number;
665
+ approved: number;
666
+ rejected: number;
667
+ };
668
+
669
+ export type CreateCampaignCampaign = {
670
+ id: string;
671
+ name: string;
672
+ description: string | null;
673
+ context: string | null;
674
+ type: string;
675
+ status: string;
676
+ totalContacts: number;
677
+ stageCounts?: CreateCampaignStageCounts | undefined;
678
+ createdAt: string;
679
+ updatedAt: string;
680
+ };
681
+
682
+ /**
683
+ * Campaign created
684
+ */
685
+ export type CreateCampaignResponse = {
686
+ success: true;
687
+ campaign: CreateCampaignCampaign;
688
+ /**
689
+ * Credits consumed by this call (always 0 for contacts queries).
690
+ */
691
+ creditsUsed: number;
692
+ /**
693
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
694
+ */
695
+ retryAfter: number;
696
+ };
697
+
698
+ export const UpdateCampaignStatus = {
699
+ Draft: "draft",
700
+ Scheduled: "scheduled",
701
+ Running: "running",
702
+ Paused: "paused",
703
+ Completed: "completed",
704
+ Failed: "failed",
705
+ } as const;
706
+ export type UpdateCampaignStatus = ClosedEnum<typeof UpdateCampaignStatus>;
707
+
708
+ export type UpdateCampaignRequestBody = {
709
+ name?: string | undefined;
710
+ description?: string | undefined;
711
+ context?: string | undefined;
712
+ status?: UpdateCampaignStatus | undefined;
713
+ scheduledStartTime?: string | undefined;
714
+ scheduledStopTime?: string | undefined;
715
+ timezone?: string | undefined;
716
+ runDays?: Array<string> | undefined;
717
+ dailyActionLimit?: number | null | undefined;
718
+ };
719
+
720
+ export type UpdateCampaignRequest = {
721
+ /**
722
+ * Campaign ID
723
+ */
724
+ campaignId: string;
725
+ body: UpdateCampaignRequestBody;
726
+ };
727
+
728
+ export type UpdateCampaignStageCounts = {
729
+ contact: number;
730
+ lead: number;
731
+ qualified: number;
732
+ approved: number;
733
+ rejected: number;
734
+ };
735
+
736
+ export type UpdateCampaignCampaign = {
737
+ id: string;
738
+ name: string;
739
+ description: string | null;
740
+ context: string | null;
741
+ type: string;
742
+ status: string;
743
+ totalContacts: number;
744
+ stageCounts?: UpdateCampaignStageCounts | undefined;
745
+ createdAt: string;
746
+ updatedAt: string;
747
+ };
748
+
749
+ /**
750
+ * Campaign updated
751
+ */
752
+ export type UpdateCampaignResponse = {
753
+ success: true;
754
+ campaign: UpdateCampaignCampaign;
755
+ /**
756
+ * Credits consumed by this call (always 0 for contacts queries).
757
+ */
758
+ creditsUsed: number;
759
+ /**
760
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
761
+ */
762
+ retryAfter: number;
763
+ };
764
+
765
+ export const ListCampaignContactsLifecycleStage = {
766
+ Contact: "contact",
767
+ Lead: "lead",
768
+ Qualified: "qualified",
769
+ Approved: "approved",
770
+ Rejected: "rejected",
771
+ } as const;
772
+ export type ListCampaignContactsLifecycleStage = ClosedEnum<
773
+ typeof ListCampaignContactsLifecycleStage
774
+ >;
775
+
776
+ export type ListCampaignContactsRequest = {
777
+ lifecycleStage?: ListCampaignContactsLifecycleStage | undefined;
778
+ source?: string | undefined;
779
+ sourceAngle?: string | undefined;
780
+ minHotScore?: number | undefined;
781
+ limit?: number | undefined;
782
+ offset?: number | undefined;
783
+ /**
784
+ * Campaign ID
785
+ */
786
+ campaignId: string;
787
+ };
788
+
789
+ export type ListCampaignContactsContact = {
790
+ id: string;
791
+ linkedinUrl: string;
792
+ /**
793
+ * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
794
+ */
795
+ profileUrn: string | null;
796
+ /**
797
+ * LinkedIn vanity slug (e.g. joshuaau)
798
+ */
799
+ publicIdentifier: string | null;
800
+ name: string;
801
+ lifecycleStage: string;
802
+ hotScore: number;
803
+ qualificationNotes: string | null;
804
+ notes: string | null;
805
+ stageChangedAt: string | null;
806
+ profileData: any | null;
807
+ profileUpdatedAt: string | null;
808
+ conversationData: any | null;
809
+ conversationUpdatedAt: string | null;
810
+ outreachStatus: string;
811
+ lastContactedAt: string | null;
812
+ lastRepliedAt: string | null;
813
+ nextFollowUpAt: string | null;
814
+ doNotContact: boolean;
815
+ tags: Array<string>;
816
+ createdAt: string;
817
+ updatedAt: string;
818
+ source: string;
819
+ sourceAngle: string | null;
820
+ addedAt: string;
821
+ };
822
+
823
+ export type ListCampaignContactsPagination = {
824
+ limit: number;
825
+ offset: number;
826
+ total: number;
827
+ };
828
+
829
+ /**
830
+ * Campaign contacts
831
+ */
832
+ export type ListCampaignContactsResponse = {
833
+ success: true;
834
+ contacts: Array<ListCampaignContactsContact>;
835
+ pagination: ListCampaignContactsPagination;
836
+ /**
837
+ * Credits consumed by this call (always 0 for contacts queries).
838
+ */
839
+ creditsUsed: number;
840
+ /**
841
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
842
+ */
843
+ retryAfter: number;
844
+ };
845
+
846
+ /**
847
+ * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
848
+ */
849
+ export const AddCampaignContactsSource = {
850
+ Likes: "likes",
851
+ Comments: "comments",
852
+ Reposts: "reposts",
853
+ Posts: "posts",
854
+ CompanyFollowers: "company_followers",
855
+ SearchResults: "search_results",
856
+ ManualImport: "manual_import",
857
+ EventAttendees: "event_attendees",
858
+ GroupMembers: "group_members",
859
+ EngagementScraping: "engagement_scraping",
860
+ ContentSearch: "content_search",
861
+ FollowersMining: "followers_mining",
862
+ PeopleSearch: "people_search",
863
+ JobSearch: "job_search",
864
+ CompanySearch: "company_search",
865
+ NetworkExpansion: "network_expansion",
866
+ } as const;
867
+ /**
868
+ * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
869
+ */
870
+ export type AddCampaignContactsSource = ClosedEnum<
871
+ typeof AddCampaignContactsSource
872
+ >;
873
+
874
+ /**
875
+ * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
876
+ */
877
+ export const AddCampaignContactsLifecycleStage = {
878
+ Contact: "contact",
879
+ Lead: "lead",
880
+ Qualified: "qualified",
881
+ Approved: "approved",
882
+ Rejected: "rejected",
883
+ } as const;
884
+ /**
885
+ * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
886
+ */
887
+ export type AddCampaignContactsLifecycleStage = ClosedEnum<
888
+ typeof AddCampaignContactsLifecycleStage
889
+ >;
890
+
891
+ export type AddCampaignContactsContact = {
892
+ /**
893
+ * LinkedIn profile URL, URN, or bare vanity name
894
+ */
895
+ linkedinUrl: string;
896
+ /**
897
+ * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...). Improves dedup when provided alongside a vanity URL.
898
+ */
899
+ profileUrn?: string | null | undefined;
900
+ /**
901
+ * LinkedIn vanity slug (e.g. joshuaau). Improves dedup when provided alongside a URN.
902
+ */
903
+ publicIdentifier?: string | null | undefined;
904
+ /**
905
+ * Profile name
906
+ */
907
+ name: string;
908
+ /**
909
+ * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
910
+ */
911
+ source?: AddCampaignContactsSource | undefined;
912
+ /**
913
+ * Which lead-gen angle found this (e.g., 'vp-sales-france')
914
+ */
915
+ sourceAngle?: string | undefined;
916
+ /**
917
+ * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
918
+ */
919
+ lifecycleStage?: AddCampaignContactsLifecycleStage | undefined;
920
+ /**
921
+ * Contact quality score (0-100)
922
+ */
923
+ hotScore?: number | undefined;
924
+ /**
925
+ * Agent reasoning for qualification decision
926
+ */
927
+ qualificationNotes?: string | undefined;
928
+ notes?: string | undefined;
929
+ };
930
+
931
+ export type AddCampaignContactsRequestBody = {
932
+ /**
933
+ * Contacts to add (single or bulk)
934
+ */
935
+ contacts: Array<AddCampaignContactsContact>;
936
+ };
937
+
938
+ export type AddCampaignContactsRequest = {
939
+ /**
940
+ * Campaign ID
941
+ */
942
+ campaignId: string;
943
+ body: AddCampaignContactsRequestBody;
944
+ };
945
+
946
+ export type AddCampaignContactsResults = {
947
+ created: number;
948
+ skipped: number;
949
+ errors: Array<string>;
950
+ };
951
+
952
+ /**
953
+ * Contacts added
954
+ */
955
+ export type AddCampaignContactsResponse = {
956
+ success: true;
957
+ results: AddCampaignContactsResults;
958
+ /**
959
+ * Credits consumed by this call (always 0 for contacts queries).
960
+ */
961
+ creditsUsed: number;
962
+ /**
963
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
964
+ */
965
+ retryAfter: number;
966
+ };
967
+
968
+ export type GetContactByUrlRequest = {
969
+ /**
970
+ * LinkedIn profile URL to look up
971
+ */
972
+ linkedinUrl: string;
973
+ };
974
+
975
+ export type GetContactByUrlActivity = {
976
+ id: string;
977
+ type: string;
978
+ content: string | null;
979
+ metadata: any | null;
980
+ createdAt: string;
981
+ };
982
+
983
+ export type GetContactByUrlCampaign = {
984
+ campaignId: string;
985
+ campaignName: string;
986
+ campaignStatus: string;
987
+ source: string;
988
+ sourceAngle: string | null;
989
+ addedAt: string;
990
+ };
991
+
992
+ export type GetContactByUrlContact = {
993
+ id: string;
994
+ linkedinUrl: string;
995
+ /**
996
+ * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
997
+ */
998
+ profileUrn: string | null;
999
+ /**
1000
+ * LinkedIn vanity slug (e.g. joshuaau)
1001
+ */
1002
+ publicIdentifier: string | null;
1003
+ name: string;
1004
+ lifecycleStage: string;
1005
+ hotScore: number;
1006
+ qualificationNotes: string | null;
1007
+ notes: string | null;
1008
+ stageChangedAt: string | null;
1009
+ profileData: any | null;
1010
+ profileUpdatedAt: string | null;
1011
+ conversationData: any | null;
1012
+ conversationUpdatedAt: string | null;
1013
+ outreachStatus: string;
1014
+ lastContactedAt: string | null;
1015
+ lastRepliedAt: string | null;
1016
+ nextFollowUpAt: string | null;
1017
+ doNotContact: boolean;
1018
+ tags: Array<string>;
1019
+ createdAt: string;
1020
+ updatedAt: string;
1021
+ activities: Array<GetContactByUrlActivity>;
1022
+ campaigns: Array<GetContactByUrlCampaign>;
1023
+ };
1024
+
1025
+ /**
1026
+ * Contact found
1027
+ */
1028
+ export type GetContactByUrlResponse = {
1029
+ success: true;
1030
+ contact: GetContactByUrlContact;
1031
+ /**
1032
+ * Credits consumed by this call (always 0 for contacts queries).
1033
+ */
1034
+ creditsUsed: number;
1035
+ /**
1036
+ * Seconds to wait before next call of the same type (always 0 for contacts queries).
1037
+ */
1038
+ retryAfter: number;
1039
+ };
1040
+
1041
+ export const QueryParamStatus = {
1042
+ Draft: "draft",
1043
+ Scheduled: "scheduled",
1044
+ Sending: "sending",
1045
+ Sent: "sent",
1046
+ Failed: "failed",
1047
+ Cancelled: "cancelled",
1048
+ } as const;
1049
+ export type QueryParamStatus = ClosedEnum<typeof QueryParamStatus>;
1050
+
1051
+ export type ListScheduledMessagesRequest = {
1052
+ status?: QueryParamStatus | undefined;
1053
+ contactId?: string | undefined;
1054
+ campaignSlug?: string | undefined;
1055
+ limit?: number | undefined;
1056
+ offset?: number | undefined;
1057
+ };
1058
+
1059
+ export const ListScheduledMessagesStatusResponse = {
1060
+ Draft: "draft",
1061
+ Scheduled: "scheduled",
1062
+ Sending: "sending",
1063
+ Sent: "sent",
1064
+ Failed: "failed",
1065
+ Cancelled: "cancelled",
1066
+ } as const;
1067
+ export type ListScheduledMessagesStatusResponse = OpenEnum<
1068
+ typeof ListScheduledMessagesStatusResponse
1069
+ >;
1070
+
1071
+ export type ListScheduledMessagesMessage = {
1072
+ id: string;
1073
+ contactId: string;
1074
+ contactName: string | null;
1075
+ contactLinkedinUrl: string | null;
1076
+ message: string;
1077
+ status: ListScheduledMessagesStatusResponse;
1078
+ scheduledSendAt: string | null;
1079
+ sentAt: string | null;
1080
+ campaignSlug: string | null;
1081
+ createdAt: string;
1082
+ updatedAt: string;
1083
+ };
1084
+
1085
+ export type ListScheduledMessagesPagination = {
1086
+ limit: number;
1087
+ offset: number;
1088
+ total: number;
1089
+ };
1090
+
1091
+ /**
1092
+ * Messages list
1093
+ */
1094
+ export type ListScheduledMessagesResponse = {
1095
+ success: true;
1096
+ messages: Array<ListScheduledMessagesMessage>;
1097
+ pagination: ListScheduledMessagesPagination;
1098
+ /**
1099
+ * Credits consumed (always 0 for workspace operations).
1100
+ */
1101
+ creditsUsed: number;
1102
+ /**
1103
+ * Seconds to wait (always 0 for workspace operations).
1104
+ */
1105
+ retryAfter: number;
1106
+ };
1107
+
1108
+ /**
1109
+ * Default 'draft'
1110
+ */
1111
+ export const CreateScheduledMessageStatusRequest = {
1112
+ Draft: "draft",
1113
+ Scheduled: "scheduled",
1114
+ } as const;
1115
+ /**
1116
+ * Default 'draft'
1117
+ */
1118
+ export type CreateScheduledMessageStatusRequest = ClosedEnum<
1119
+ typeof CreateScheduledMessageStatusRequest
1120
+ >;
1121
+
1122
+ export type CreateScheduledMessageRequest = {
1123
+ /**
1124
+ * Internal contact ID
1125
+ */
1126
+ contactId: string;
1127
+ /**
1128
+ * DM text
1129
+ */
1130
+ message: string;
1131
+ /**
1132
+ * Default 'draft'
1133
+ */
1134
+ status?: CreateScheduledMessageStatusRequest | undefined;
1135
+ /**
1136
+ * ISO datetime for auto-send
1137
+ */
1138
+ scheduledSendAt?: string | undefined;
1139
+ campaignSlug?: string | undefined;
1140
+ };
1141
+
1142
+ export const CreateScheduledMessageStatusResponse = {
1143
+ Draft: "draft",
1144
+ Scheduled: "scheduled",
1145
+ Sending: "sending",
1146
+ Sent: "sent",
1147
+ Failed: "failed",
1148
+ Cancelled: "cancelled",
1149
+ } as const;
1150
+ export type CreateScheduledMessageStatusResponse = OpenEnum<
1151
+ typeof CreateScheduledMessageStatusResponse
1152
+ >;
1153
+
1154
+ export type CreateScheduledMessageMessage = {
1155
+ id: string;
1156
+ contactId: string;
1157
+ contactName: string | null;
1158
+ contactLinkedinUrl: string | null;
1159
+ message: string;
1160
+ status: CreateScheduledMessageStatusResponse;
1161
+ scheduledSendAt: string | null;
1162
+ sentAt: string | null;
1163
+ campaignSlug: string | null;
1164
+ createdAt: string;
1165
+ updatedAt: string;
1166
+ };
1167
+
1168
+ /**
1169
+ * Message created
1170
+ */
1171
+ export type CreateScheduledMessageResponse = {
1172
+ success: true;
1173
+ message: CreateScheduledMessageMessage;
1174
+ /**
1175
+ * Credits consumed (always 0 for workspace operations).
1176
+ */
1177
+ creditsUsed: number;
1178
+ /**
1179
+ * Seconds to wait (always 0 for workspace operations).
1180
+ */
1181
+ retryAfter: number;
1182
+ };
1183
+
1184
+ export type BatchScheduleMessagesRequest = {
1185
+ /**
1186
+ * Schedule all drafts for these contacts
1187
+ */
1188
+ contactIds?: Array<string> | undefined;
1189
+ /**
1190
+ * Schedule specific messages
1191
+ */
1192
+ messageIds?: Array<string> | undefined;
1193
+ /**
1194
+ * ISO datetime for sending
1195
+ */
1196
+ scheduledSendAt: string;
1197
+ };
1198
+
1199
+ /**
1200
+ * Messages scheduled
1201
+ */
1202
+ export type BatchScheduleMessagesResponse = {
1203
+ success: true;
1204
+ scheduled: number;
1205
+ /**
1206
+ * Credits consumed (always 0 for workspace operations).
1207
+ */
1208
+ creditsUsed: number;
1209
+ /**
1210
+ * Seconds to wait (always 0 for workspace operations).
1211
+ */
1212
+ retryAfter: number;
1213
+ };
1214
+
1215
+ export type CancelScheduledMessagesRequest = {
1216
+ /**
1217
+ * Cancel specific messages
1218
+ */
1219
+ messageIds?: Array<string> | undefined;
1220
+ /**
1221
+ * Cancel all pending for these contacts
1222
+ */
1223
+ contactIds?: Array<string> | undefined;
1224
+ };
1225
+
1226
+ /**
1227
+ * Messages cancelled
1228
+ */
1229
+ export type CancelScheduledMessagesResponse = {
1230
+ success: true;
1231
+ cancelled: number;
1232
+ /**
1233
+ * Credits consumed (always 0 for workspace operations).
1234
+ */
1235
+ creditsUsed: number;
1236
+ /**
1237
+ * Seconds to wait (always 0 for workspace operations).
1238
+ */
1239
+ retryAfter: number;
1240
+ };
1241
+
1242
+ export type ListContextRequest = {
1243
+ /**
1244
+ * Filter by scope (e.g. "campaign:abc", "user")
1245
+ */
1246
+ scope?: string | undefined;
1247
+ /**
1248
+ * Filter by type (e.g. "icp", "tone-voice")
1249
+ */
1250
+ type?: string | undefined;
1251
+ };
1252
+
1253
+ export type ListContextEntry = {
1254
+ type: string;
1255
+ label: string | null;
1256
+ content: string;
1257
+ scope: string;
1258
+ updatedAt: string;
1259
+ };
1260
+
1261
+ /**
1262
+ * Context entries
1263
+ */
1264
+ export type ListContextResponse = {
1265
+ success: true;
1266
+ entries: Array<ListContextEntry>;
1267
+ /**
1268
+ * Credits consumed (always 0 for workspace operations).
1269
+ */
1270
+ creditsUsed: number;
1271
+ /**
1272
+ * Seconds to wait (always 0 for workspace operations).
1273
+ */
1274
+ retryAfter: number;
1275
+ };
1276
+
1277
+ export type SetContextRequest = {
1278
+ /**
1279
+ * Context type: "user-profile", "product-pitch", "icp", "tone-voice", "playbook", or "custom:{slug}"
1280
+ */
1281
+ type: string;
1282
+ /**
1283
+ * Markdown content
1284
+ */
1285
+ content: string;
1286
+ /**
1287
+ * Defaults to "user"
1288
+ */
1289
+ scope?: string | undefined;
1290
+ /**
1291
+ * Display label
1292
+ */
1293
+ label?: string | undefined;
1294
+ };
1295
+
1296
+ export type SetContextEntry = {
1297
+ type: string;
1298
+ label: string | null;
1299
+ content: string;
1300
+ scope: string;
1301
+ updatedAt: string;
1302
+ };
1303
+
1304
+ /**
1305
+ * Context saved
1306
+ */
1307
+ export type SetContextResponse = {
1308
+ success: true;
1309
+ entry: SetContextEntry;
1310
+ /**
1311
+ * Credits consumed (always 0 for workspace operations).
1312
+ */
1313
+ creditsUsed: number;
1314
+ /**
1315
+ * Seconds to wait (always 0 for workspace operations).
1316
+ */
1317
+ retryAfter: number;
1318
+ };
1319
+
1320
+ export type DeleteContextRequest = {
1321
+ /**
1322
+ * Context type to delete
1323
+ */
1324
+ type: string;
1325
+ /**
1326
+ * Scope (defaults to "user")
1327
+ */
1328
+ scope?: string | undefined;
1329
+ };
1330
+
1331
+ /**
1332
+ * Context deleted
1333
+ */
1334
+ export type DeleteContextResponse = {
1335
+ success: true;
1336
+ /**
1337
+ * Credits consumed (always 0 for workspace operations).
1338
+ */
1339
+ creditsUsed: number;
1340
+ /**
1341
+ * Seconds to wait (always 0 for workspace operations).
1342
+ */
1343
+ retryAfter: number;
1344
+ };
1345
+
1346
+ export type Schedule = {
1347
+ scheduleId: string;
1348
+ type: string;
1349
+ state: string;
1350
+ cron: string | null;
1351
+ nextExecution: string | null;
1352
+ lastRunAt: string | null;
1353
+ lastRunStatus: string | null;
1354
+ };
1355
+
1356
+ /**
1357
+ * Cron schedules
1358
+ */
1359
+ export type ListCronSchedulesResponse = {
1360
+ success: true;
1361
+ schedules: Array<Schedule>;
1362
+ /**
1363
+ * Credits consumed (always 0 for workspace operations).
1364
+ */
1365
+ creditsUsed: number;
1366
+ /**
1367
+ * Seconds to wait (always 0 for workspace operations).
1368
+ */
1369
+ retryAfter: number;
1370
+ };
1371
+
1372
+ /**
1373
+ * Action to perform
1374
+ */
1375
+ export const UpdateCronScheduleAction = {
1376
+ Pause: "pause",
1377
+ Resume: "resume",
1378
+ Delete: "delete",
1379
+ } as const;
1380
+ /**
1381
+ * Action to perform
1382
+ */
1383
+ export type UpdateCronScheduleAction = ClosedEnum<
1384
+ typeof UpdateCronScheduleAction
1385
+ >;
1386
+
1387
+ export type UpdateCronScheduleRequestBody = {
1388
+ /**
1389
+ * Action to perform
1390
+ */
1391
+ action: UpdateCronScheduleAction;
1392
+ };
1393
+
1394
+ export type UpdateCronScheduleRequest = {
1395
+ /**
1396
+ * Schedule ID
1397
+ */
1398
+ scheduleId: string;
1399
+ body: UpdateCronScheduleRequestBody;
1400
+ };
1401
+
1402
+ /**
1403
+ * Schedule updated
1404
+ */
1405
+ export type UpdateCronScheduleResponse = {
1406
+ success: true;
1407
+ /**
1408
+ * Credits consumed (always 0 for workspace operations).
1409
+ */
1410
+ creditsUsed: number;
1411
+ /**
1412
+ * Seconds to wait (always 0 for workspace operations).
1413
+ */
1414
+ retryAfter: number;
1415
+ };
1416
+
1417
+ /** @internal */
1418
+ export type UpdateContactTags3$Outbound = {
1419
+ set: Array<string>;
1420
+ };
1421
+
1422
+ /** @internal */
1423
+ export const UpdateContactTags3$outboundSchema: z.ZodMiniType<
1424
+ UpdateContactTags3$Outbound,
1425
+ UpdateContactTags3
1426
+ > = z.object({
1427
+ set: z.array(z.string()),
1428
+ });
1429
+
1430
+ export function updateContactTags3ToJSON(
1431
+ updateContactTags3: UpdateContactTags3,
1432
+ ): string {
1433
+ return JSON.stringify(
1434
+ UpdateContactTags3$outboundSchema.parse(updateContactTags3),
1435
+ );
1436
+ }
1437
+
1438
+ /** @internal */
1439
+ export type UpdateContactTags2$Outbound = {
1440
+ add?: Array<string> | undefined;
1441
+ remove: Array<string>;
1442
+ };
1443
+
1444
+ /** @internal */
1445
+ export const UpdateContactTags2$outboundSchema: z.ZodMiniType<
1446
+ UpdateContactTags2$Outbound,
1447
+ UpdateContactTags2
1448
+ > = z.object({
1449
+ add: z.optional(z.array(z.string())),
1450
+ remove: z.array(z.string()),
1451
+ });
1452
+
1453
+ export function updateContactTags2ToJSON(
1454
+ updateContactTags2: UpdateContactTags2,
1455
+ ): string {
1456
+ return JSON.stringify(
1457
+ UpdateContactTags2$outboundSchema.parse(updateContactTags2),
1458
+ );
1459
+ }
1460
+
1461
+ /** @internal */
1462
+ export type UpdateContactTags1$Outbound = {
1463
+ add: Array<string>;
1464
+ remove?: Array<string> | undefined;
1465
+ };
1466
+
1467
+ /** @internal */
1468
+ export const UpdateContactTags1$outboundSchema: z.ZodMiniType<
1469
+ UpdateContactTags1$Outbound,
1470
+ UpdateContactTags1
1471
+ > = z.object({
1472
+ add: z.array(z.string()),
1473
+ remove: z.optional(z.array(z.string())),
1474
+ });
1475
+
1476
+ export function updateContactTags1ToJSON(
1477
+ updateContactTags1: UpdateContactTags1,
1478
+ ): string {
1479
+ return JSON.stringify(
1480
+ UpdateContactTags1$outboundSchema.parse(updateContactTags1),
1481
+ );
1482
+ }
1483
+
1484
+ /** @internal */
1485
+ export type UpdateContactTagsUnion$Outbound =
1486
+ | UpdateContactTags1$Outbound
1487
+ | UpdateContactTags2$Outbound
1488
+ | UpdateContactTags3$Outbound;
1489
+
1490
+ /** @internal */
1491
+ export const UpdateContactTagsUnion$outboundSchema: z.ZodMiniType<
1492
+ UpdateContactTagsUnion$Outbound,
1493
+ UpdateContactTagsUnion
1494
+ > = smartUnion([
1495
+ z.lazy(() => UpdateContactTags1$outboundSchema),
1496
+ z.lazy(() => UpdateContactTags2$outboundSchema),
1497
+ z.lazy(() => UpdateContactTags3$outboundSchema),
1498
+ ]);
1499
+
1500
+ export function updateContactTagsUnionToJSON(
1501
+ updateContactTagsUnion: UpdateContactTagsUnion,
1502
+ ): string {
1503
+ return JSON.stringify(
1504
+ UpdateContactTagsUnion$outboundSchema.parse(updateContactTagsUnion),
1505
+ );
1506
+ }
1507
+
1508
+ /** @internal */
1509
+ export type UpdateContactRequestBody$Outbound = {
1510
+ lifecycleStage?: string | undefined;
1511
+ hotScore?: number | undefined;
1512
+ qualificationNotes?: string | undefined;
1513
+ notes?: string | undefined;
1514
+ name?: string | undefined;
1515
+ profileData?: any | undefined;
1516
+ profileUpdatedAt?: string | undefined;
1517
+ conversationData?: any | undefined;
1518
+ conversationUpdatedAt?: string | undefined;
1519
+ outreachStatus?: string | undefined;
1520
+ nextFollowUpAt?: string | null | undefined;
1521
+ doNotContact?: boolean | undefined;
1522
+ tags?:
1523
+ | UpdateContactTags1$Outbound
1524
+ | UpdateContactTags2$Outbound
1525
+ | UpdateContactTags3$Outbound
1526
+ | undefined;
1527
+ };
1528
+
1529
+ /** @internal */
1530
+ export const UpdateContactRequestBody$outboundSchema: z.ZodMiniType<
1531
+ UpdateContactRequestBody$Outbound,
1532
+ UpdateContactRequestBody
1533
+ > = z.object({
1534
+ lifecycleStage: z.optional(UpdateContactLifecycleStage$outboundSchema),
1535
+ hotScore: z.optional(z.int()),
1536
+ qualificationNotes: z.optional(z.string()),
1537
+ notes: z.optional(z.string()),
1538
+ name: z.optional(z.string()),
1539
+ profileData: z.optional(z.any()),
1540
+ profileUpdatedAt: z.optional(
1541
+ z.pipe(z.date(), z.transform(v => v.toISOString())),
1542
+ ),
1543
+ conversationData: z.optional(z.any()),
1544
+ conversationUpdatedAt: z.optional(
1545
+ z.pipe(z.date(), z.transform(v => v.toISOString())),
1546
+ ),
1547
+ outreachStatus: z.optional(UpdateContactOutreachStatus$outboundSchema),
1548
+ nextFollowUpAt: z.optional(
1549
+ z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
1550
+ ),
1551
+ doNotContact: z.optional(z.boolean()),
1552
+ tags: z.optional(
1553
+ smartUnion([
1554
+ z.lazy(() => UpdateContactTags1$outboundSchema),
1555
+ z.lazy(() => UpdateContactTags2$outboundSchema),
1556
+ z.lazy(() => UpdateContactTags3$outboundSchema),
1557
+ ]),
1558
+ ),
1559
+ });
1560
+
1561
+ export function updateContactRequestBodyToJSON(
1562
+ updateContactRequestBody: UpdateContactRequestBody,
1563
+ ): string {
1564
+ return JSON.stringify(
1565
+ UpdateContactRequestBody$outboundSchema.parse(updateContactRequestBody),
1566
+ );
1567
+ }
1568
+
1569
+ /** @internal */
1570
+ export type UpdateContactRequest$Outbound = {
1571
+ id: string;
1572
+ body: UpdateContactRequestBody$Outbound;
1573
+ };
1574
+
1575
+ /** @internal */
1576
+ export const UpdateContactRequest$outboundSchema: z.ZodMiniType<
1577
+ UpdateContactRequest$Outbound,
1578
+ UpdateContactRequest
1579
+ > = z.object({
1580
+ id: z.string(),
1581
+ body: z.lazy(() => UpdateContactRequestBody$outboundSchema),
1582
+ });
1583
+
1584
+ export function updateContactRequestToJSON(
1585
+ updateContactRequest: UpdateContactRequest,
1586
+ ): string {
1587
+ return JSON.stringify(
1588
+ UpdateContactRequest$outboundSchema.parse(updateContactRequest),
1589
+ );
1590
+ }
1591
+
1592
+ /** @internal */
1593
+ export const UpdateContactContact$inboundSchema: z.ZodMiniType<
1594
+ UpdateContactContact,
1595
+ unknown
1596
+ > = z.object({
1597
+ id: types.string(),
1598
+ linkedinUrl: types.string(),
1599
+ profileUrn: types.nullable(types.string()),
1600
+ publicIdentifier: types.nullable(types.string()),
1601
+ name: types.string(),
1602
+ lifecycleStage: types.string(),
1603
+ hotScore: types.number(),
1604
+ qualificationNotes: types.nullable(types.string()),
1605
+ notes: types.nullable(types.string()),
1606
+ stageChangedAt: types.nullable(types.string()),
1607
+ profileData: types.nullable(z.any()),
1608
+ profileUpdatedAt: types.nullable(types.string()),
1609
+ conversationData: types.nullable(z.any()),
1610
+ conversationUpdatedAt: types.nullable(types.string()),
1611
+ outreachStatus: types.string(),
1612
+ lastContactedAt: types.nullable(types.string()),
1613
+ lastRepliedAt: types.nullable(types.string()),
1614
+ nextFollowUpAt: types.nullable(types.string()),
1615
+ doNotContact: types.boolean(),
1616
+ tags: z.array(types.string()),
1617
+ createdAt: types.string(),
1618
+ updatedAt: types.string(),
1619
+ });
1620
+
1621
+ export function updateContactContactFromJSON(
1622
+ jsonString: string,
1623
+ ): SafeParseResult<UpdateContactContact, SDKValidationError> {
1624
+ return safeParse(
1625
+ jsonString,
1626
+ (x) => UpdateContactContact$inboundSchema.parse(JSON.parse(x)),
1627
+ `Failed to parse 'UpdateContactContact' from JSON`,
1628
+ );
1629
+ }
1630
+
1631
+ /** @internal */
1632
+ export const UpdateContactResponse$inboundSchema: z.ZodMiniType<
1633
+ UpdateContactResponse,
1634
+ unknown
1635
+ > = z.object({
1636
+ success: types.literal(true),
1637
+ contact: z.lazy(() => UpdateContactContact$inboundSchema),
1638
+ creditsUsed: types.number(),
1639
+ retryAfter: types.number(),
1640
+ });
1641
+
1642
+ export function updateContactResponseFromJSON(
1643
+ jsonString: string,
1644
+ ): SafeParseResult<UpdateContactResponse, SDKValidationError> {
1645
+ return safeParse(
1646
+ jsonString,
1647
+ (x) => UpdateContactResponse$inboundSchema.parse(JSON.parse(x)),
1648
+ `Failed to parse 'UpdateContactResponse' from JSON`,
1649
+ );
1650
+ }
1651
+
1652
+ /** @internal */
1653
+ export type ListContactActivitiesRequest$Outbound = {
1654
+ type?: string | undefined;
1655
+ limit: number;
1656
+ offset: number;
1657
+ id: string;
1658
+ };
1659
+
1660
+ /** @internal */
1661
+ export const ListContactActivitiesRequest$outboundSchema: z.ZodMiniType<
1662
+ ListContactActivitiesRequest$Outbound,
1663
+ ListContactActivitiesRequest
1664
+ > = z.object({
1665
+ type: z.optional(z.string()),
1666
+ limit: z._default(z.int(), 50),
1667
+ offset: z._default(z.int(), 0),
1668
+ id: z.string(),
1669
+ });
1670
+
1671
+ export function listContactActivitiesRequestToJSON(
1672
+ listContactActivitiesRequest: ListContactActivitiesRequest,
1673
+ ): string {
1674
+ return JSON.stringify(
1675
+ ListContactActivitiesRequest$outboundSchema.parse(
1676
+ listContactActivitiesRequest,
1677
+ ),
1678
+ );
1679
+ }
1680
+
1681
+ /** @internal */
1682
+ export const ListContactActivitiesActivity$inboundSchema: z.ZodMiniType<
1683
+ ListContactActivitiesActivity,
1684
+ unknown
1685
+ > = z.object({
1686
+ id: types.string(),
1687
+ type: types.string(),
1688
+ content: types.nullable(types.string()),
1689
+ metadata: types.nullable(z.any()),
1690
+ createdAt: types.string(),
1691
+ });
1692
+
1693
+ export function listContactActivitiesActivityFromJSON(
1694
+ jsonString: string,
1695
+ ): SafeParseResult<ListContactActivitiesActivity, SDKValidationError> {
1696
+ return safeParse(
1697
+ jsonString,
1698
+ (x) => ListContactActivitiesActivity$inboundSchema.parse(JSON.parse(x)),
1699
+ `Failed to parse 'ListContactActivitiesActivity' from JSON`,
1700
+ );
1701
+ }
1702
+
1703
+ /** @internal */
1704
+ export const ListContactActivitiesPagination$inboundSchema: z.ZodMiniType<
1705
+ ListContactActivitiesPagination,
1706
+ unknown
1707
+ > = z.object({
1708
+ limit: types.number(),
1709
+ offset: types.number(),
1710
+ total: types.number(),
1711
+ });
1712
+
1713
+ export function listContactActivitiesPaginationFromJSON(
1714
+ jsonString: string,
1715
+ ): SafeParseResult<ListContactActivitiesPagination, SDKValidationError> {
1716
+ return safeParse(
1717
+ jsonString,
1718
+ (x) => ListContactActivitiesPagination$inboundSchema.parse(JSON.parse(x)),
1719
+ `Failed to parse 'ListContactActivitiesPagination' from JSON`,
1720
+ );
1721
+ }
1722
+
1723
+ /** @internal */
1724
+ export const ListContactActivitiesResponse$inboundSchema: z.ZodMiniType<
1725
+ ListContactActivitiesResponse,
1726
+ unknown
1727
+ > = z.object({
1728
+ success: types.literal(true),
1729
+ activities: z.array(
1730
+ z.lazy(() => ListContactActivitiesActivity$inboundSchema),
1731
+ ),
1732
+ pagination: z.lazy(() => ListContactActivitiesPagination$inboundSchema),
1733
+ creditsUsed: types.number(),
1734
+ retryAfter: types.number(),
1735
+ });
1736
+
1737
+ export function listContactActivitiesResponseFromJSON(
1738
+ jsonString: string,
1739
+ ): SafeParseResult<ListContactActivitiesResponse, SDKValidationError> {
1740
+ return safeParse(
1741
+ jsonString,
1742
+ (x) => ListContactActivitiesResponse$inboundSchema.parse(JSON.parse(x)),
1743
+ `Failed to parse 'ListContactActivitiesResponse' from JSON`,
1744
+ );
1745
+ }
1746
+
1747
+ /** @internal */
1748
+ export const AddContactActivitiesType$outboundSchema: z.ZodMiniEnum<
1749
+ typeof AddContactActivitiesType
1750
+ > = z.enum(AddContactActivitiesType);
1751
+
1752
+ /** @internal */
1753
+ export type AddContactActivitiesActivity$Outbound = {
1754
+ type: string;
1755
+ content?: string | undefined;
1756
+ metadata?: any | undefined;
1757
+ };
1758
+
1759
+ /** @internal */
1760
+ export const AddContactActivitiesActivity$outboundSchema: z.ZodMiniType<
1761
+ AddContactActivitiesActivity$Outbound,
1762
+ AddContactActivitiesActivity
1763
+ > = z.object({
1764
+ type: AddContactActivitiesType$outboundSchema,
1765
+ content: z.optional(z.string()),
1766
+ metadata: z.optional(z.any()),
1767
+ });
1768
+
1769
+ export function addContactActivitiesActivityToJSON(
1770
+ addContactActivitiesActivity: AddContactActivitiesActivity,
1771
+ ): string {
1772
+ return JSON.stringify(
1773
+ AddContactActivitiesActivity$outboundSchema.parse(
1774
+ addContactActivitiesActivity,
1775
+ ),
1776
+ );
1777
+ }
1778
+
1779
+ /** @internal */
1780
+ export type AddContactActivitiesRequestBody$Outbound = {
1781
+ activities: Array<AddContactActivitiesActivity$Outbound>;
1782
+ };
1783
+
1784
+ /** @internal */
1785
+ export const AddContactActivitiesRequestBody$outboundSchema: z.ZodMiniType<
1786
+ AddContactActivitiesRequestBody$Outbound,
1787
+ AddContactActivitiesRequestBody
1788
+ > = z.object({
1789
+ activities: z.array(
1790
+ z.lazy(() => AddContactActivitiesActivity$outboundSchema),
1791
+ ),
1792
+ });
1793
+
1794
+ export function addContactActivitiesRequestBodyToJSON(
1795
+ addContactActivitiesRequestBody: AddContactActivitiesRequestBody,
1796
+ ): string {
1797
+ return JSON.stringify(
1798
+ AddContactActivitiesRequestBody$outboundSchema.parse(
1799
+ addContactActivitiesRequestBody,
1800
+ ),
1801
+ );
1802
+ }
1803
+
1804
+ /** @internal */
1805
+ export type AddContactActivitiesRequest$Outbound = {
1806
+ id: string;
1807
+ body: AddContactActivitiesRequestBody$Outbound;
1808
+ };
1809
+
1810
+ /** @internal */
1811
+ export const AddContactActivitiesRequest$outboundSchema: z.ZodMiniType<
1812
+ AddContactActivitiesRequest$Outbound,
1813
+ AddContactActivitiesRequest
1814
+ > = z.object({
1815
+ id: z.string(),
1816
+ body: z.lazy(() => AddContactActivitiesRequestBody$outboundSchema),
1817
+ });
1818
+
1819
+ export function addContactActivitiesRequestToJSON(
1820
+ addContactActivitiesRequest: AddContactActivitiesRequest,
1821
+ ): string {
1822
+ return JSON.stringify(
1823
+ AddContactActivitiesRequest$outboundSchema.parse(
1824
+ addContactActivitiesRequest,
1825
+ ),
1826
+ );
1827
+ }
1828
+
1829
+ /** @internal */
1830
+ export const AddContactActivitiesResponse$inboundSchema: z.ZodMiniType<
1831
+ AddContactActivitiesResponse,
1832
+ unknown
1833
+ > = z.object({
1834
+ success: types.literal(true),
1835
+ created: types.number(),
1836
+ creditsUsed: types.number(),
1837
+ retryAfter: types.number(),
1838
+ });
1839
+
1840
+ export function addContactActivitiesResponseFromJSON(
1841
+ jsonString: string,
1842
+ ): SafeParseResult<AddContactActivitiesResponse, SDKValidationError> {
1843
+ return safeParse(
1844
+ jsonString,
1845
+ (x) => AddContactActivitiesResponse$inboundSchema.parse(JSON.parse(x)),
1846
+ `Failed to parse 'AddContactActivitiesResponse' from JSON`,
1847
+ );
1848
+ }
1849
+
1850
+ /** @internal */
1851
+ export const BulkUpdateContactsLifecycleStage$outboundSchema: z.ZodMiniEnum<
1852
+ typeof BulkUpdateContactsLifecycleStage
1853
+ > = z.enum(BulkUpdateContactsLifecycleStage);
1854
+
1855
+ /** @internal */
1856
+ export const BulkUpdateContactsOutreachStatus$outboundSchema: z.ZodMiniEnum<
1857
+ typeof BulkUpdateContactsOutreachStatus
1858
+ > = z.enum(BulkUpdateContactsOutreachStatus);
1859
+
1860
+ /** @internal */
1861
+ export type BulkUpdateContactsTags3$Outbound = {
1862
+ set: Array<string>;
1863
+ };
1864
+
1865
+ /** @internal */
1866
+ export const BulkUpdateContactsTags3$outboundSchema: z.ZodMiniType<
1867
+ BulkUpdateContactsTags3$Outbound,
1868
+ BulkUpdateContactsTags3
1869
+ > = z.object({
1870
+ set: z.array(z.string()),
1871
+ });
1872
+
1873
+ export function bulkUpdateContactsTags3ToJSON(
1874
+ bulkUpdateContactsTags3: BulkUpdateContactsTags3,
1875
+ ): string {
1876
+ return JSON.stringify(
1877
+ BulkUpdateContactsTags3$outboundSchema.parse(bulkUpdateContactsTags3),
1878
+ );
1879
+ }
1880
+
1881
+ /** @internal */
1882
+ export type BulkUpdateContactsTags2$Outbound = {
1883
+ add?: Array<string> | undefined;
1884
+ remove: Array<string>;
1885
+ };
1886
+
1887
+ /** @internal */
1888
+ export const BulkUpdateContactsTags2$outboundSchema: z.ZodMiniType<
1889
+ BulkUpdateContactsTags2$Outbound,
1890
+ BulkUpdateContactsTags2
1891
+ > = z.object({
1892
+ add: z.optional(z.array(z.string())),
1893
+ remove: z.array(z.string()),
1894
+ });
1895
+
1896
+ export function bulkUpdateContactsTags2ToJSON(
1897
+ bulkUpdateContactsTags2: BulkUpdateContactsTags2,
1898
+ ): string {
1899
+ return JSON.stringify(
1900
+ BulkUpdateContactsTags2$outboundSchema.parse(bulkUpdateContactsTags2),
1901
+ );
1902
+ }
1903
+
1904
+ /** @internal */
1905
+ export type BulkUpdateContactsTags1$Outbound = {
1906
+ add: Array<string>;
1907
+ remove?: Array<string> | undefined;
1908
+ };
1909
+
1910
+ /** @internal */
1911
+ export const BulkUpdateContactsTags1$outboundSchema: z.ZodMiniType<
1912
+ BulkUpdateContactsTags1$Outbound,
1913
+ BulkUpdateContactsTags1
1914
+ > = z.object({
1915
+ add: z.array(z.string()),
1916
+ remove: z.optional(z.array(z.string())),
1917
+ });
1918
+
1919
+ export function bulkUpdateContactsTags1ToJSON(
1920
+ bulkUpdateContactsTags1: BulkUpdateContactsTags1,
1921
+ ): string {
1922
+ return JSON.stringify(
1923
+ BulkUpdateContactsTags1$outboundSchema.parse(bulkUpdateContactsTags1),
1924
+ );
1925
+ }
1926
+
1927
+ /** @internal */
1928
+ export type BulkUpdateContactsTagsUnion$Outbound =
1929
+ | BulkUpdateContactsTags1$Outbound
1930
+ | BulkUpdateContactsTags2$Outbound
1931
+ | BulkUpdateContactsTags3$Outbound;
1932
+
1933
+ /** @internal */
1934
+ export const BulkUpdateContactsTagsUnion$outboundSchema: z.ZodMiniType<
1935
+ BulkUpdateContactsTagsUnion$Outbound,
1936
+ BulkUpdateContactsTagsUnion
1937
+ > = smartUnion([
1938
+ z.lazy(() => BulkUpdateContactsTags1$outboundSchema),
1939
+ z.lazy(() => BulkUpdateContactsTags2$outboundSchema),
1940
+ z.lazy(() => BulkUpdateContactsTags3$outboundSchema),
1941
+ ]);
1942
+
1943
+ export function bulkUpdateContactsTagsUnionToJSON(
1944
+ bulkUpdateContactsTagsUnion: BulkUpdateContactsTagsUnion,
1945
+ ): string {
1946
+ return JSON.stringify(
1947
+ BulkUpdateContactsTagsUnion$outboundSchema.parse(
1948
+ bulkUpdateContactsTagsUnion,
1949
+ ),
1950
+ );
1951
+ }
1952
+
1953
+ /** @internal */
1954
+ export type Update$Outbound = {
1955
+ lifecycleStage?: string | undefined;
1956
+ hotScore?: number | undefined;
1957
+ qualificationNotes?: string | undefined;
1958
+ notes?: string | undefined;
1959
+ outreachStatus?: string | undefined;
1960
+ nextFollowUpAt?: string | null | undefined;
1961
+ doNotContact?: boolean | undefined;
1962
+ tags?:
1963
+ | BulkUpdateContactsTags1$Outbound
1964
+ | BulkUpdateContactsTags2$Outbound
1965
+ | BulkUpdateContactsTags3$Outbound
1966
+ | undefined;
1967
+ };
1968
+
1969
+ /** @internal */
1970
+ export const Update$outboundSchema: z.ZodMiniType<Update$Outbound, Update> = z
1971
+ .object({
1972
+ lifecycleStage: z.optional(BulkUpdateContactsLifecycleStage$outboundSchema),
1973
+ hotScore: z.optional(z.int()),
1974
+ qualificationNotes: z.optional(z.string()),
1975
+ notes: z.optional(z.string()),
1976
+ outreachStatus: z.optional(BulkUpdateContactsOutreachStatus$outboundSchema),
1977
+ nextFollowUpAt: z.optional(
1978
+ z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
1979
+ ),
1980
+ doNotContact: z.optional(z.boolean()),
1981
+ tags: z.optional(
1982
+ smartUnion([
1983
+ z.lazy(() => BulkUpdateContactsTags1$outboundSchema),
1984
+ z.lazy(() => BulkUpdateContactsTags2$outboundSchema),
1985
+ z.lazy(() => BulkUpdateContactsTags3$outboundSchema),
1986
+ ]),
1987
+ ),
1988
+ });
1989
+
1990
+ export function updateToJSON(update: Update): string {
1991
+ return JSON.stringify(Update$outboundSchema.parse(update));
1992
+ }
1993
+
1994
+ /** @internal */
1995
+ export type BulkUpdateContactsRequest$Outbound = {
1996
+ contactIds: Array<string>;
1997
+ update: Update$Outbound;
1998
+ };
1999
+
2000
+ /** @internal */
2001
+ export const BulkUpdateContactsRequest$outboundSchema: z.ZodMiniType<
2002
+ BulkUpdateContactsRequest$Outbound,
2003
+ BulkUpdateContactsRequest
2004
+ > = z.object({
2005
+ contactIds: z.array(z.string()),
2006
+ update: z.lazy(() => Update$outboundSchema),
2007
+ });
2008
+
2009
+ export function bulkUpdateContactsRequestToJSON(
2010
+ bulkUpdateContactsRequest: BulkUpdateContactsRequest,
2011
+ ): string {
2012
+ return JSON.stringify(
2013
+ BulkUpdateContactsRequest$outboundSchema.parse(bulkUpdateContactsRequest),
2014
+ );
2015
+ }
2016
+
2017
+ /** @internal */
2018
+ export const BulkUpdateContactsResponse$inboundSchema: z.ZodMiniType<
2019
+ BulkUpdateContactsResponse,
2020
+ unknown
2021
+ > = z.object({
2022
+ success: types.literal(true),
2023
+ updated: types.number(),
2024
+ skipped: types.number(),
2025
+ errors: z.array(types.string()),
2026
+ creditsUsed: types.number(),
2027
+ retryAfter: types.number(),
2028
+ });
2029
+
2030
+ export function bulkUpdateContactsResponseFromJSON(
2031
+ jsonString: string,
2032
+ ): SafeParseResult<BulkUpdateContactsResponse, SDKValidationError> {
2033
+ return safeParse(
2034
+ jsonString,
2035
+ (x) => BulkUpdateContactsResponse$inboundSchema.parse(JSON.parse(x)),
2036
+ `Failed to parse 'BulkUpdateContactsResponse' from JSON`,
2037
+ );
2038
+ }
2039
+
2040
+ /** @internal */
2041
+ export type GetContactStatsRequest$Outbound = {
2042
+ campaignId?: string | undefined;
2043
+ };
2044
+
2045
+ /** @internal */
2046
+ export const GetContactStatsRequest$outboundSchema: z.ZodMiniType<
2047
+ GetContactStatsRequest$Outbound,
2048
+ GetContactStatsRequest
2049
+ > = z.object({
2050
+ campaignId: z.optional(z.string()),
2051
+ });
2052
+
2053
+ export function getContactStatsRequestToJSON(
2054
+ getContactStatsRequest: GetContactStatsRequest,
2055
+ ): string {
2056
+ return JSON.stringify(
2057
+ GetContactStatsRequest$outboundSchema.parse(getContactStatsRequest),
2058
+ );
2059
+ }
2060
+
2061
+ /** @internal */
2062
+ export const Funnel$inboundSchema: z.ZodMiniType<Funnel, unknown> = z.object({
2063
+ contact: types.number(),
2064
+ lead: types.number(),
2065
+ qualified: types.number(),
2066
+ approved: types.number(),
2067
+ rejected: types.number(),
2068
+ });
2069
+
2070
+ export function funnelFromJSON(
2071
+ jsonString: string,
2072
+ ): SafeParseResult<Funnel, SDKValidationError> {
2073
+ return safeParse(
2074
+ jsonString,
2075
+ (x) => Funnel$inboundSchema.parse(JSON.parse(x)),
2076
+ `Failed to parse 'Funnel' from JSON`,
2077
+ );
2078
+ }
2079
+
2080
+ /** @internal */
2081
+ export const BySourceAngle$inboundSchema: z.ZodMiniType<
2082
+ BySourceAngle,
2083
+ unknown
2084
+ > = z.object({
2085
+ total: types.number(),
2086
+ contact: types.number(),
2087
+ lead: types.number(),
2088
+ qualified: types.number(),
2089
+ approved: types.number(),
2090
+ rejected: types.number(),
2091
+ });
2092
+
2093
+ export function bySourceAngleFromJSON(
2094
+ jsonString: string,
2095
+ ): SafeParseResult<BySourceAngle, SDKValidationError> {
2096
+ return safeParse(
2097
+ jsonString,
2098
+ (x) => BySourceAngle$inboundSchema.parse(JSON.parse(x)),
2099
+ `Failed to parse 'BySourceAngle' from JSON`,
2100
+ );
2101
+ }
2102
+
2103
+ /** @internal */
2104
+ export const ByCampaign$inboundSchema: z.ZodMiniType<ByCampaign, unknown> = z
2105
+ .object({
2106
+ name: types.string(),
2107
+ total: types.number(),
2108
+ contact: types.number(),
2109
+ lead: types.number(),
2110
+ qualified: types.number(),
2111
+ approved: types.number(),
2112
+ rejected: types.number(),
2113
+ });
2114
+
2115
+ export function byCampaignFromJSON(
2116
+ jsonString: string,
2117
+ ): SafeParseResult<ByCampaign, SDKValidationError> {
2118
+ return safeParse(
2119
+ jsonString,
2120
+ (x) => ByCampaign$inboundSchema.parse(JSON.parse(x)),
2121
+ `Failed to parse 'ByCampaign' from JSON`,
2122
+ );
2123
+ }
2124
+
2125
+ /** @internal */
2126
+ export const GetContactStatsDaily$inboundSchema: z.ZodMiniType<
2127
+ GetContactStatsDaily,
2128
+ unknown
2129
+ > = z.object({
2130
+ date: types.string(),
2131
+ created: types.number(),
2132
+ });
2133
+
2134
+ export function getContactStatsDailyFromJSON(
2135
+ jsonString: string,
2136
+ ): SafeParseResult<GetContactStatsDaily, SDKValidationError> {
2137
+ return safeParse(
2138
+ jsonString,
2139
+ (x) => GetContactStatsDaily$inboundSchema.parse(JSON.parse(x)),
2140
+ `Failed to parse 'GetContactStatsDaily' from JSON`,
2141
+ );
2142
+ }
2143
+
2144
+ /** @internal */
2145
+ export const GetContactStatsResponse$inboundSchema: z.ZodMiniType<
2146
+ GetContactStatsResponse,
2147
+ unknown
2148
+ > = z.object({
2149
+ success: types.literal(true),
2150
+ funnel: z.lazy(() => Funnel$inboundSchema),
2151
+ bySource: z.record(z.string(), types.number()),
2152
+ bySourceAngle: z.record(
2153
+ z.string(),
2154
+ z.lazy(() => BySourceAngle$inboundSchema),
2155
+ ),
2156
+ byCampaign: z.record(z.string(), z.lazy(() => ByCampaign$inboundSchema)),
2157
+ daily: z.array(z.lazy(() => GetContactStatsDaily$inboundSchema)),
2158
+ creditsUsed: types.number(),
2159
+ retryAfter: types.number(),
2160
+ });
2161
+
2162
+ export function getContactStatsResponseFromJSON(
2163
+ jsonString: string,
2164
+ ): SafeParseResult<GetContactStatsResponse, SDKValidationError> {
2165
+ return safeParse(
2166
+ jsonString,
2167
+ (x) => GetContactStatsResponse$inboundSchema.parse(JSON.parse(x)),
2168
+ `Failed to parse 'GetContactStatsResponse' from JSON`,
2169
+ );
2170
+ }
2171
+
2172
+ /** @internal */
2173
+ export const State$inboundSchema: z.ZodMiniType<State, unknown> = z.object({
2174
+ key: types.string(),
2175
+ data: z.any(),
2176
+ updatedAt: types.nullable(types.string()),
2177
+ });
2178
+
2179
+ export function stateFromJSON(
2180
+ jsonString: string,
2181
+ ): SafeParseResult<State, SDKValidationError> {
2182
+ return safeParse(
2183
+ jsonString,
2184
+ (x) => State$inboundSchema.parse(JSON.parse(x)),
2185
+ `Failed to parse 'State' from JSON`,
2186
+ );
2187
+ }
2188
+
2189
+ /** @internal */
2190
+ export const ListAgentStatesResponse$inboundSchema: z.ZodMiniType<
2191
+ ListAgentStatesResponse,
2192
+ unknown
2193
+ > = z.object({
2194
+ success: types.literal(true),
2195
+ states: z.array(z.lazy(() => State$inboundSchema)),
2196
+ creditsUsed: types.number(),
2197
+ retryAfter: types.number(),
2198
+ });
2199
+
2200
+ export function listAgentStatesResponseFromJSON(
2201
+ jsonString: string,
2202
+ ): SafeParseResult<ListAgentStatesResponse, SDKValidationError> {
2203
+ return safeParse(
2204
+ jsonString,
2205
+ (x) => ListAgentStatesResponse$inboundSchema.parse(JSON.parse(x)),
2206
+ `Failed to parse 'ListAgentStatesResponse' from JSON`,
2207
+ );
2208
+ }
2209
+
2210
+ /** @internal */
2211
+ export type GetAgentStateRequest$Outbound = {
2212
+ key: string;
2213
+ };
2214
+
2215
+ /** @internal */
2216
+ export const GetAgentStateRequest$outboundSchema: z.ZodMiniType<
2217
+ GetAgentStateRequest$Outbound,
2218
+ GetAgentStateRequest
2219
+ > = z.object({
2220
+ key: z.string(),
2221
+ });
2222
+
2223
+ export function getAgentStateRequestToJSON(
2224
+ getAgentStateRequest: GetAgentStateRequest,
2225
+ ): string {
2226
+ return JSON.stringify(
2227
+ GetAgentStateRequest$outboundSchema.parse(getAgentStateRequest),
2228
+ );
2229
+ }
2230
+
2231
+ /** @internal */
2232
+ export const GetAgentStateResponse$inboundSchema: z.ZodMiniType<
2233
+ GetAgentStateResponse,
2234
+ unknown
2235
+ > = z.object({
2236
+ success: types.literal(true),
2237
+ key: types.string(),
2238
+ data: z.any(),
2239
+ updatedAt: types.nullable(types.string()),
2240
+ creditsUsed: types.number(),
2241
+ retryAfter: types.number(),
2242
+ });
2243
+
2244
+ export function getAgentStateResponseFromJSON(
2245
+ jsonString: string,
2246
+ ): SafeParseResult<GetAgentStateResponse, SDKValidationError> {
2247
+ return safeParse(
2248
+ jsonString,
2249
+ (x) => GetAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
2250
+ `Failed to parse 'GetAgentStateResponse' from JSON`,
2251
+ );
2252
+ }
2253
+
2254
+ /** @internal */
2255
+ export type SetAgentStateRequestBody$Outbound = {
2256
+ data: any;
2257
+ };
2258
+
2259
+ /** @internal */
2260
+ export const SetAgentStateRequestBody$outboundSchema: z.ZodMiniType<
2261
+ SetAgentStateRequestBody$Outbound,
2262
+ SetAgentStateRequestBody
2263
+ > = z.object({
2264
+ data: z.any(),
2265
+ });
2266
+
2267
+ export function setAgentStateRequestBodyToJSON(
2268
+ setAgentStateRequestBody: SetAgentStateRequestBody,
2269
+ ): string {
2270
+ return JSON.stringify(
2271
+ SetAgentStateRequestBody$outboundSchema.parse(setAgentStateRequestBody),
2272
+ );
2273
+ }
2274
+
2275
+ /** @internal */
2276
+ export type SetAgentStateRequest$Outbound = {
2277
+ key: string;
2278
+ body: SetAgentStateRequestBody$Outbound;
2279
+ };
2280
+
2281
+ /** @internal */
2282
+ export const SetAgentStateRequest$outboundSchema: z.ZodMiniType<
2283
+ SetAgentStateRequest$Outbound,
2284
+ SetAgentStateRequest
2285
+ > = z.object({
2286
+ key: z.string(),
2287
+ body: z.lazy(() => SetAgentStateRequestBody$outboundSchema),
2288
+ });
2289
+
2290
+ export function setAgentStateRequestToJSON(
2291
+ setAgentStateRequest: SetAgentStateRequest,
2292
+ ): string {
2293
+ return JSON.stringify(
2294
+ SetAgentStateRequest$outboundSchema.parse(setAgentStateRequest),
2295
+ );
2296
+ }
2297
+
2298
+ /** @internal */
2299
+ export const SetAgentStateResponse$inboundSchema: z.ZodMiniType<
2300
+ SetAgentStateResponse,
2301
+ unknown
2302
+ > = z.object({
2303
+ success: types.literal(true),
2304
+ key: types.string(),
2305
+ data: z.any(),
2306
+ updatedAt: types.nullable(types.string()),
2307
+ creditsUsed: types.number(),
2308
+ retryAfter: types.number(),
2309
+ });
2310
+
2311
+ export function setAgentStateResponseFromJSON(
2312
+ jsonString: string,
2313
+ ): SafeParseResult<SetAgentStateResponse, SDKValidationError> {
2314
+ return safeParse(
2315
+ jsonString,
2316
+ (x) => SetAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
2317
+ `Failed to parse 'SetAgentStateResponse' from JSON`,
2318
+ );
2319
+ }
2320
+
2321
+ /** @internal */
2322
+ export type DeleteAgentStateRequest$Outbound = {
2323
+ key: string;
2324
+ };
2325
+
2326
+ /** @internal */
2327
+ export const DeleteAgentStateRequest$outboundSchema: z.ZodMiniType<
2328
+ DeleteAgentStateRequest$Outbound,
2329
+ DeleteAgentStateRequest
2330
+ > = z.object({
2331
+ key: z.string(),
2332
+ });
2333
+
2334
+ export function deleteAgentStateRequestToJSON(
2335
+ deleteAgentStateRequest: DeleteAgentStateRequest,
2336
+ ): string {
2337
+ return JSON.stringify(
2338
+ DeleteAgentStateRequest$outboundSchema.parse(deleteAgentStateRequest),
2339
+ );
2340
+ }
2341
+
2342
+ /** @internal */
2343
+ export const DeleteAgentStateResponse$inboundSchema: z.ZodMiniType<
2344
+ DeleteAgentStateResponse,
2345
+ unknown
2346
+ > = z.object({
2347
+ success: types.literal(true),
2348
+ creditsUsed: types.number(),
2349
+ retryAfter: types.number(),
2350
+ });
2351
+
2352
+ export function deleteAgentStateResponseFromJSON(
2353
+ jsonString: string,
2354
+ ): SafeParseResult<DeleteAgentStateResponse, SDKValidationError> {
2355
+ return safeParse(
2356
+ jsonString,
2357
+ (x) => DeleteAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
2358
+ `Failed to parse 'DeleteAgentStateResponse' from JSON`,
2359
+ );
2360
+ }
2361
+
2362
+ /** @internal */
2363
+ export type PatchAgentStateRequestBody$Outbound = {
2364
+ data: { [k: string]: any };
2365
+ };
2366
+
2367
+ /** @internal */
2368
+ export const PatchAgentStateRequestBody$outboundSchema: z.ZodMiniType<
2369
+ PatchAgentStateRequestBody$Outbound,
2370
+ PatchAgentStateRequestBody
2371
+ > = z.object({
2372
+ data: z.record(z.string(), z.any()),
2373
+ });
2374
+
2375
+ export function patchAgentStateRequestBodyToJSON(
2376
+ patchAgentStateRequestBody: PatchAgentStateRequestBody,
2377
+ ): string {
2378
+ return JSON.stringify(
2379
+ PatchAgentStateRequestBody$outboundSchema.parse(patchAgentStateRequestBody),
2380
+ );
2381
+ }
2382
+
2383
+ /** @internal */
2384
+ export type PatchAgentStateRequest$Outbound = {
2385
+ key: string;
2386
+ body: PatchAgentStateRequestBody$Outbound;
2387
+ };
2388
+
2389
+ /** @internal */
2390
+ export const PatchAgentStateRequest$outboundSchema: z.ZodMiniType<
2391
+ PatchAgentStateRequest$Outbound,
2392
+ PatchAgentStateRequest
2393
+ > = z.object({
2394
+ key: z.string(),
2395
+ body: z.lazy(() => PatchAgentStateRequestBody$outboundSchema),
2396
+ });
2397
+
2398
+ export function patchAgentStateRequestToJSON(
2399
+ patchAgentStateRequest: PatchAgentStateRequest,
2400
+ ): string {
2401
+ return JSON.stringify(
2402
+ PatchAgentStateRequest$outboundSchema.parse(patchAgentStateRequest),
2403
+ );
2404
+ }
2405
+
2406
+ /** @internal */
2407
+ export const PatchAgentStateResponse$inboundSchema: z.ZodMiniType<
2408
+ PatchAgentStateResponse,
2409
+ unknown
2410
+ > = z.object({
2411
+ success: types.literal(true),
2412
+ key: types.string(),
2413
+ data: z.any(),
2414
+ updatedAt: types.nullable(types.string()),
2415
+ creditsUsed: types.number(),
2416
+ retryAfter: types.number(),
2417
+ });
2418
+
2419
+ export function patchAgentStateResponseFromJSON(
2420
+ jsonString: string,
2421
+ ): SafeParseResult<PatchAgentStateResponse, SDKValidationError> {
2422
+ return safeParse(
2423
+ jsonString,
2424
+ (x) => PatchAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
2425
+ `Failed to parse 'PatchAgentStateResponse' from JSON`,
2426
+ );
2427
+ }
2428
+
2429
+ /** @internal */
2430
+ export const ListCampaignsType$outboundSchema: z.ZodMiniEnum<
2431
+ typeof ListCampaignsType
2432
+ > = z.enum(ListCampaignsType);
2433
+
2434
+ /** @internal */
2435
+ export type ListCampaignsRequest$Outbound = {
2436
+ type?: string | undefined;
2437
+ status?: string | undefined;
2438
+ limit: number;
2439
+ offset: number;
2440
+ };
2441
+
2442
+ /** @internal */
2443
+ export const ListCampaignsRequest$outboundSchema: z.ZodMiniType<
2444
+ ListCampaignsRequest$Outbound,
2445
+ ListCampaignsRequest
2446
+ > = z.object({
2447
+ type: z.optional(ListCampaignsType$outboundSchema),
2448
+ status: z.optional(z.string()),
2449
+ limit: z._default(z.int(), 50),
2450
+ offset: z._default(z.int(), 0),
2451
+ });
2452
+
2453
+ export function listCampaignsRequestToJSON(
2454
+ listCampaignsRequest: ListCampaignsRequest,
2455
+ ): string {
2456
+ return JSON.stringify(
2457
+ ListCampaignsRequest$outboundSchema.parse(listCampaignsRequest),
2458
+ );
2459
+ }
2460
+
2461
+ /** @internal */
2462
+ export const ListCampaignsStageCounts$inboundSchema: z.ZodMiniType<
2463
+ ListCampaignsStageCounts,
2464
+ unknown
2465
+ > = z.object({
2466
+ contact: types.number(),
2467
+ lead: types.number(),
2468
+ qualified: types.number(),
2469
+ approved: types.number(),
2470
+ rejected: types.number(),
2471
+ });
2472
+
2473
+ export function listCampaignsStageCountsFromJSON(
2474
+ jsonString: string,
2475
+ ): SafeParseResult<ListCampaignsStageCounts, SDKValidationError> {
2476
+ return safeParse(
2477
+ jsonString,
2478
+ (x) => ListCampaignsStageCounts$inboundSchema.parse(JSON.parse(x)),
2479
+ `Failed to parse 'ListCampaignsStageCounts' from JSON`,
2480
+ );
2481
+ }
2482
+
2483
+ /** @internal */
2484
+ export const ListCampaignsCampaign$inboundSchema: z.ZodMiniType<
2485
+ ListCampaignsCampaign,
2486
+ unknown
2487
+ > = z.object({
2488
+ id: types.string(),
2489
+ name: types.string(),
2490
+ description: types.nullable(types.string()),
2491
+ context: types.nullable(types.string()),
2492
+ type: types.string(),
2493
+ status: types.string(),
2494
+ totalContacts: types.number(),
2495
+ stageCounts: types.optional(
2496
+ z.lazy(() => ListCampaignsStageCounts$inboundSchema),
2497
+ ),
2498
+ createdAt: types.string(),
2499
+ updatedAt: types.string(),
2500
+ });
2501
+
2502
+ export function listCampaignsCampaignFromJSON(
2503
+ jsonString: string,
2504
+ ): SafeParseResult<ListCampaignsCampaign, SDKValidationError> {
2505
+ return safeParse(
2506
+ jsonString,
2507
+ (x) => ListCampaignsCampaign$inboundSchema.parse(JSON.parse(x)),
2508
+ `Failed to parse 'ListCampaignsCampaign' from JSON`,
2509
+ );
2510
+ }
2511
+
2512
+ /** @internal */
2513
+ export const ListCampaignsPagination$inboundSchema: z.ZodMiniType<
2514
+ ListCampaignsPagination,
2515
+ unknown
2516
+ > = z.object({
2517
+ limit: types.number(),
2518
+ offset: types.number(),
2519
+ total: types.number(),
2520
+ });
2521
+
2522
+ export function listCampaignsPaginationFromJSON(
2523
+ jsonString: string,
2524
+ ): SafeParseResult<ListCampaignsPagination, SDKValidationError> {
2525
+ return safeParse(
2526
+ jsonString,
2527
+ (x) => ListCampaignsPagination$inboundSchema.parse(JSON.parse(x)),
2528
+ `Failed to parse 'ListCampaignsPagination' from JSON`,
2529
+ );
2530
+ }
2531
+
2532
+ /** @internal */
2533
+ export const ListCampaignsResponse$inboundSchema: z.ZodMiniType<
2534
+ ListCampaignsResponse,
2535
+ unknown
2536
+ > = z.object({
2537
+ success: types.literal(true),
2538
+ campaigns: z.array(z.lazy(() => ListCampaignsCampaign$inboundSchema)),
2539
+ pagination: z.lazy(() => ListCampaignsPagination$inboundSchema),
2540
+ creditsUsed: types.number(),
2541
+ retryAfter: types.number(),
2542
+ });
2543
+
2544
+ export function listCampaignsResponseFromJSON(
2545
+ jsonString: string,
2546
+ ): SafeParseResult<ListCampaignsResponse, SDKValidationError> {
2547
+ return safeParse(
2548
+ jsonString,
2549
+ (x) => ListCampaignsResponse$inboundSchema.parse(JSON.parse(x)),
2550
+ `Failed to parse 'ListCampaignsResponse' from JSON`,
2551
+ );
2552
+ }
2553
+
2554
+ /** @internal */
2555
+ export const CreateCampaignType$outboundSchema: z.ZodMiniEnum<
2556
+ typeof CreateCampaignType
2557
+ > = z.enum(CreateCampaignType);
2558
+
2559
+ /** @internal */
2560
+ export type CreateCampaignRequest$Outbound = {
2561
+ name: string;
2562
+ description?: string | undefined;
2563
+ context?: string | undefined;
2564
+ type: string;
2565
+ };
2566
+
2567
+ /** @internal */
2568
+ export const CreateCampaignRequest$outboundSchema: z.ZodMiniType<
2569
+ CreateCampaignRequest$Outbound,
2570
+ CreateCampaignRequest
2571
+ > = z.object({
2572
+ name: z.string(),
2573
+ description: z.optional(z.string()),
2574
+ context: z.optional(z.string()),
2575
+ type: z._default(CreateCampaignType$outboundSchema, "lead_gen"),
2576
+ });
2577
+
2578
+ export function createCampaignRequestToJSON(
2579
+ createCampaignRequest: CreateCampaignRequest,
2580
+ ): string {
2581
+ return JSON.stringify(
2582
+ CreateCampaignRequest$outboundSchema.parse(createCampaignRequest),
2583
+ );
2584
+ }
2585
+
2586
+ /** @internal */
2587
+ export const CreateCampaignStageCounts$inboundSchema: z.ZodMiniType<
2588
+ CreateCampaignStageCounts,
2589
+ unknown
2590
+ > = z.object({
2591
+ contact: types.number(),
2592
+ lead: types.number(),
2593
+ qualified: types.number(),
2594
+ approved: types.number(),
2595
+ rejected: types.number(),
2596
+ });
2597
+
2598
+ export function createCampaignStageCountsFromJSON(
2599
+ jsonString: string,
2600
+ ): SafeParseResult<CreateCampaignStageCounts, SDKValidationError> {
2601
+ return safeParse(
2602
+ jsonString,
2603
+ (x) => CreateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)),
2604
+ `Failed to parse 'CreateCampaignStageCounts' from JSON`,
2605
+ );
2606
+ }
2607
+
2608
+ /** @internal */
2609
+ export const CreateCampaignCampaign$inboundSchema: z.ZodMiniType<
2610
+ CreateCampaignCampaign,
2611
+ unknown
2612
+ > = z.object({
2613
+ id: types.string(),
2614
+ name: types.string(),
2615
+ description: types.nullable(types.string()),
2616
+ context: types.nullable(types.string()),
2617
+ type: types.string(),
2618
+ status: types.string(),
2619
+ totalContacts: types.number(),
2620
+ stageCounts: types.optional(
2621
+ z.lazy(() => CreateCampaignStageCounts$inboundSchema),
2622
+ ),
2623
+ createdAt: types.string(),
2624
+ updatedAt: types.string(),
2625
+ });
2626
+
2627
+ export function createCampaignCampaignFromJSON(
2628
+ jsonString: string,
2629
+ ): SafeParseResult<CreateCampaignCampaign, SDKValidationError> {
2630
+ return safeParse(
2631
+ jsonString,
2632
+ (x) => CreateCampaignCampaign$inboundSchema.parse(JSON.parse(x)),
2633
+ `Failed to parse 'CreateCampaignCampaign' from JSON`,
2634
+ );
2635
+ }
2636
+
2637
+ /** @internal */
2638
+ export const CreateCampaignResponse$inboundSchema: z.ZodMiniType<
2639
+ CreateCampaignResponse,
2640
+ unknown
2641
+ > = z.object({
2642
+ success: types.literal(true),
2643
+ campaign: z.lazy(() => CreateCampaignCampaign$inboundSchema),
2644
+ creditsUsed: types.number(),
2645
+ retryAfter: types.number(),
2646
+ });
2647
+
2648
+ export function createCampaignResponseFromJSON(
2649
+ jsonString: string,
2650
+ ): SafeParseResult<CreateCampaignResponse, SDKValidationError> {
2651
+ return safeParse(
2652
+ jsonString,
2653
+ (x) => CreateCampaignResponse$inboundSchema.parse(JSON.parse(x)),
2654
+ `Failed to parse 'CreateCampaignResponse' from JSON`,
2655
+ );
2656
+ }
2657
+
2658
+ /** @internal */
2659
+ export const UpdateCampaignStatus$outboundSchema: z.ZodMiniEnum<
2660
+ typeof UpdateCampaignStatus
2661
+ > = z.enum(UpdateCampaignStatus);
2662
+
2663
+ /** @internal */
2664
+ export type UpdateCampaignRequestBody$Outbound = {
2665
+ name?: string | undefined;
2666
+ description?: string | undefined;
2667
+ context?: string | undefined;
2668
+ status?: string | undefined;
2669
+ scheduledStartTime?: string | undefined;
2670
+ scheduledStopTime?: string | undefined;
2671
+ timezone?: string | undefined;
2672
+ runDays?: Array<string> | undefined;
2673
+ dailyActionLimit?: number | null | undefined;
2674
+ };
2675
+
2676
+ /** @internal */
2677
+ export const UpdateCampaignRequestBody$outboundSchema: z.ZodMiniType<
2678
+ UpdateCampaignRequestBody$Outbound,
2679
+ UpdateCampaignRequestBody
2680
+ > = z.object({
2681
+ name: z.optional(z.string()),
2682
+ description: z.optional(z.string()),
2683
+ context: z.optional(z.string()),
2684
+ status: z.optional(UpdateCampaignStatus$outboundSchema),
2685
+ scheduledStartTime: z.optional(z.string()),
2686
+ scheduledStopTime: z.optional(z.string()),
2687
+ timezone: z.optional(z.string()),
2688
+ runDays: z.optional(z.array(z.string())),
2689
+ dailyActionLimit: z.optional(z.nullable(z.int())),
2690
+ });
2691
+
2692
+ export function updateCampaignRequestBodyToJSON(
2693
+ updateCampaignRequestBody: UpdateCampaignRequestBody,
2694
+ ): string {
2695
+ return JSON.stringify(
2696
+ UpdateCampaignRequestBody$outboundSchema.parse(updateCampaignRequestBody),
2697
+ );
2698
+ }
2699
+
2700
+ /** @internal */
2701
+ export type UpdateCampaignRequest$Outbound = {
2702
+ campaignId: string;
2703
+ body: UpdateCampaignRequestBody$Outbound;
2704
+ };
2705
+
2706
+ /** @internal */
2707
+ export const UpdateCampaignRequest$outboundSchema: z.ZodMiniType<
2708
+ UpdateCampaignRequest$Outbound,
2709
+ UpdateCampaignRequest
2710
+ > = z.object({
2711
+ campaignId: z.string(),
2712
+ body: z.lazy(() => UpdateCampaignRequestBody$outboundSchema),
2713
+ });
2714
+
2715
+ export function updateCampaignRequestToJSON(
2716
+ updateCampaignRequest: UpdateCampaignRequest,
2717
+ ): string {
2718
+ return JSON.stringify(
2719
+ UpdateCampaignRequest$outboundSchema.parse(updateCampaignRequest),
2720
+ );
2721
+ }
2722
+
2723
+ /** @internal */
2724
+ export const UpdateCampaignStageCounts$inboundSchema: z.ZodMiniType<
2725
+ UpdateCampaignStageCounts,
2726
+ unknown
2727
+ > = z.object({
2728
+ contact: types.number(),
2729
+ lead: types.number(),
2730
+ qualified: types.number(),
2731
+ approved: types.number(),
2732
+ rejected: types.number(),
2733
+ });
2734
+
2735
+ export function updateCampaignStageCountsFromJSON(
2736
+ jsonString: string,
2737
+ ): SafeParseResult<UpdateCampaignStageCounts, SDKValidationError> {
2738
+ return safeParse(
2739
+ jsonString,
2740
+ (x) => UpdateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)),
2741
+ `Failed to parse 'UpdateCampaignStageCounts' from JSON`,
2742
+ );
2743
+ }
2744
+
2745
+ /** @internal */
2746
+ export const UpdateCampaignCampaign$inboundSchema: z.ZodMiniType<
2747
+ UpdateCampaignCampaign,
2748
+ unknown
2749
+ > = z.object({
2750
+ id: types.string(),
2751
+ name: types.string(),
2752
+ description: types.nullable(types.string()),
2753
+ context: types.nullable(types.string()),
2754
+ type: types.string(),
2755
+ status: types.string(),
2756
+ totalContacts: types.number(),
2757
+ stageCounts: types.optional(
2758
+ z.lazy(() => UpdateCampaignStageCounts$inboundSchema),
2759
+ ),
2760
+ createdAt: types.string(),
2761
+ updatedAt: types.string(),
2762
+ });
2763
+
2764
+ export function updateCampaignCampaignFromJSON(
2765
+ jsonString: string,
2766
+ ): SafeParseResult<UpdateCampaignCampaign, SDKValidationError> {
2767
+ return safeParse(
2768
+ jsonString,
2769
+ (x) => UpdateCampaignCampaign$inboundSchema.parse(JSON.parse(x)),
2770
+ `Failed to parse 'UpdateCampaignCampaign' from JSON`,
2771
+ );
2772
+ }
2773
+
2774
+ /** @internal */
2775
+ export const UpdateCampaignResponse$inboundSchema: z.ZodMiniType<
2776
+ UpdateCampaignResponse,
2777
+ unknown
2778
+ > = z.object({
2779
+ success: types.literal(true),
2780
+ campaign: z.lazy(() => UpdateCampaignCampaign$inboundSchema),
2781
+ creditsUsed: types.number(),
2782
+ retryAfter: types.number(),
2783
+ });
2784
+
2785
+ export function updateCampaignResponseFromJSON(
2786
+ jsonString: string,
2787
+ ): SafeParseResult<UpdateCampaignResponse, SDKValidationError> {
2788
+ return safeParse(
2789
+ jsonString,
2790
+ (x) => UpdateCampaignResponse$inboundSchema.parse(JSON.parse(x)),
2791
+ `Failed to parse 'UpdateCampaignResponse' from JSON`,
2792
+ );
2793
+ }
2794
+
2795
+ /** @internal */
2796
+ export const ListCampaignContactsLifecycleStage$outboundSchema: z.ZodMiniEnum<
2797
+ typeof ListCampaignContactsLifecycleStage
2798
+ > = z.enum(ListCampaignContactsLifecycleStage);
2799
+
2800
+ /** @internal */
2801
+ export type ListCampaignContactsRequest$Outbound = {
2802
+ lifecycleStage?: string | undefined;
2803
+ source?: string | undefined;
2804
+ sourceAngle?: string | undefined;
2805
+ minHotScore?: number | undefined;
2806
+ limit: number;
2807
+ offset: number;
2808
+ campaignId: string;
2809
+ };
2810
+
2811
+ /** @internal */
2812
+ export const ListCampaignContactsRequest$outboundSchema: z.ZodMiniType<
2813
+ ListCampaignContactsRequest$Outbound,
2814
+ ListCampaignContactsRequest
2815
+ > = z.object({
2816
+ lifecycleStage: z.optional(ListCampaignContactsLifecycleStage$outboundSchema),
2817
+ source: z.optional(z.string()),
2818
+ sourceAngle: z.optional(z.string()),
2819
+ minHotScore: z.optional(z.int()),
2820
+ limit: z._default(z.int(), 50),
2821
+ offset: z._default(z.int(), 0),
2822
+ campaignId: z.string(),
2823
+ });
2824
+
2825
+ export function listCampaignContactsRequestToJSON(
2826
+ listCampaignContactsRequest: ListCampaignContactsRequest,
2827
+ ): string {
2828
+ return JSON.stringify(
2829
+ ListCampaignContactsRequest$outboundSchema.parse(
2830
+ listCampaignContactsRequest,
2831
+ ),
2832
+ );
2833
+ }
2834
+
2835
+ /** @internal */
2836
+ export const ListCampaignContactsContact$inboundSchema: z.ZodMiniType<
2837
+ ListCampaignContactsContact,
2838
+ unknown
2839
+ > = z.object({
2840
+ id: types.string(),
2841
+ linkedinUrl: types.string(),
2842
+ profileUrn: types.nullable(types.string()),
2843
+ publicIdentifier: types.nullable(types.string()),
2844
+ name: types.string(),
2845
+ lifecycleStage: types.string(),
2846
+ hotScore: types.number(),
2847
+ qualificationNotes: types.nullable(types.string()),
2848
+ notes: types.nullable(types.string()),
2849
+ stageChangedAt: types.nullable(types.string()),
2850
+ profileData: types.nullable(z.any()),
2851
+ profileUpdatedAt: types.nullable(types.string()),
2852
+ conversationData: types.nullable(z.any()),
2853
+ conversationUpdatedAt: types.nullable(types.string()),
2854
+ outreachStatus: types.string(),
2855
+ lastContactedAt: types.nullable(types.string()),
2856
+ lastRepliedAt: types.nullable(types.string()),
2857
+ nextFollowUpAt: types.nullable(types.string()),
2858
+ doNotContact: types.boolean(),
2859
+ tags: z.array(types.string()),
2860
+ createdAt: types.string(),
2861
+ updatedAt: types.string(),
2862
+ source: types.string(),
2863
+ sourceAngle: types.nullable(types.string()),
2864
+ addedAt: types.string(),
2865
+ });
2866
+
2867
+ export function listCampaignContactsContactFromJSON(
2868
+ jsonString: string,
2869
+ ): SafeParseResult<ListCampaignContactsContact, SDKValidationError> {
2870
+ return safeParse(
2871
+ jsonString,
2872
+ (x) => ListCampaignContactsContact$inboundSchema.parse(JSON.parse(x)),
2873
+ `Failed to parse 'ListCampaignContactsContact' from JSON`,
2874
+ );
2875
+ }
2876
+
2877
+ /** @internal */
2878
+ export const ListCampaignContactsPagination$inboundSchema: z.ZodMiniType<
2879
+ ListCampaignContactsPagination,
2880
+ unknown
2881
+ > = z.object({
2882
+ limit: types.number(),
2883
+ offset: types.number(),
2884
+ total: types.number(),
2885
+ });
2886
+
2887
+ export function listCampaignContactsPaginationFromJSON(
2888
+ jsonString: string,
2889
+ ): SafeParseResult<ListCampaignContactsPagination, SDKValidationError> {
2890
+ return safeParse(
2891
+ jsonString,
2892
+ (x) => ListCampaignContactsPagination$inboundSchema.parse(JSON.parse(x)),
2893
+ `Failed to parse 'ListCampaignContactsPagination' from JSON`,
2894
+ );
2895
+ }
2896
+
2897
+ /** @internal */
2898
+ export const ListCampaignContactsResponse$inboundSchema: z.ZodMiniType<
2899
+ ListCampaignContactsResponse,
2900
+ unknown
2901
+ > = z.object({
2902
+ success: types.literal(true),
2903
+ contacts: z.array(z.lazy(() => ListCampaignContactsContact$inboundSchema)),
2904
+ pagination: z.lazy(() => ListCampaignContactsPagination$inboundSchema),
2905
+ creditsUsed: types.number(),
2906
+ retryAfter: types.number(),
2907
+ });
2908
+
2909
+ export function listCampaignContactsResponseFromJSON(
2910
+ jsonString: string,
2911
+ ): SafeParseResult<ListCampaignContactsResponse, SDKValidationError> {
2912
+ return safeParse(
2913
+ jsonString,
2914
+ (x) => ListCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)),
2915
+ `Failed to parse 'ListCampaignContactsResponse' from JSON`,
2916
+ );
2917
+ }
2918
+
2919
+ /** @internal */
2920
+ export const AddCampaignContactsSource$outboundSchema: z.ZodMiniEnum<
2921
+ typeof AddCampaignContactsSource
2922
+ > = z.enum(AddCampaignContactsSource);
2923
+
2924
+ /** @internal */
2925
+ export const AddCampaignContactsLifecycleStage$outboundSchema: z.ZodMiniEnum<
2926
+ typeof AddCampaignContactsLifecycleStage
2927
+ > = z.enum(AddCampaignContactsLifecycleStage);
2928
+
2929
+ /** @internal */
2930
+ export type AddCampaignContactsContact$Outbound = {
2931
+ linkedinUrl: string;
2932
+ profileUrn?: string | null | undefined;
2933
+ publicIdentifier?: string | null | undefined;
2934
+ name: string;
2935
+ source: string;
2936
+ sourceAngle?: string | undefined;
2937
+ lifecycleStage?: string | undefined;
2938
+ hotScore?: number | undefined;
2939
+ qualificationNotes?: string | undefined;
2940
+ notes?: string | undefined;
2941
+ };
2942
+
2943
+ /** @internal */
2944
+ export const AddCampaignContactsContact$outboundSchema: z.ZodMiniType<
2945
+ AddCampaignContactsContact$Outbound,
2946
+ AddCampaignContactsContact
2947
+ > = z.object({
2948
+ linkedinUrl: z.string(),
2949
+ profileUrn: z.optional(z.nullable(z.string())),
2950
+ publicIdentifier: z.optional(z.nullable(z.string())),
2951
+ name: z.string(),
2952
+ source: z._default(AddCampaignContactsSource$outboundSchema, "manual_import"),
2953
+ sourceAngle: z.optional(z.string()),
2954
+ lifecycleStage: z.optional(AddCampaignContactsLifecycleStage$outboundSchema),
2955
+ hotScore: z.optional(z.int()),
2956
+ qualificationNotes: z.optional(z.string()),
2957
+ notes: z.optional(z.string()),
2958
+ });
2959
+
2960
+ export function addCampaignContactsContactToJSON(
2961
+ addCampaignContactsContact: AddCampaignContactsContact,
2962
+ ): string {
2963
+ return JSON.stringify(
2964
+ AddCampaignContactsContact$outboundSchema.parse(addCampaignContactsContact),
2965
+ );
2966
+ }
2967
+
2968
+ /** @internal */
2969
+ export type AddCampaignContactsRequestBody$Outbound = {
2970
+ contacts: Array<AddCampaignContactsContact$Outbound>;
2971
+ };
2972
+
2973
+ /** @internal */
2974
+ export const AddCampaignContactsRequestBody$outboundSchema: z.ZodMiniType<
2975
+ AddCampaignContactsRequestBody$Outbound,
2976
+ AddCampaignContactsRequestBody
2977
+ > = z.object({
2978
+ contacts: z.array(z.lazy(() => AddCampaignContactsContact$outboundSchema)),
2979
+ });
2980
+
2981
+ export function addCampaignContactsRequestBodyToJSON(
2982
+ addCampaignContactsRequestBody: AddCampaignContactsRequestBody,
2983
+ ): string {
2984
+ return JSON.stringify(
2985
+ AddCampaignContactsRequestBody$outboundSchema.parse(
2986
+ addCampaignContactsRequestBody,
2987
+ ),
2988
+ );
2989
+ }
2990
+
2991
+ /** @internal */
2992
+ export type AddCampaignContactsRequest$Outbound = {
2993
+ campaignId: string;
2994
+ body: AddCampaignContactsRequestBody$Outbound;
2995
+ };
2996
+
2997
+ /** @internal */
2998
+ export const AddCampaignContactsRequest$outboundSchema: z.ZodMiniType<
2999
+ AddCampaignContactsRequest$Outbound,
3000
+ AddCampaignContactsRequest
3001
+ > = z.object({
3002
+ campaignId: z.string(),
3003
+ body: z.lazy(() => AddCampaignContactsRequestBody$outboundSchema),
3004
+ });
3005
+
3006
+ export function addCampaignContactsRequestToJSON(
3007
+ addCampaignContactsRequest: AddCampaignContactsRequest,
3008
+ ): string {
3009
+ return JSON.stringify(
3010
+ AddCampaignContactsRequest$outboundSchema.parse(addCampaignContactsRequest),
3011
+ );
3012
+ }
3013
+
3014
+ /** @internal */
3015
+ export const AddCampaignContactsResults$inboundSchema: z.ZodMiniType<
3016
+ AddCampaignContactsResults,
3017
+ unknown
3018
+ > = z.object({
3019
+ created: types.number(),
3020
+ skipped: types.number(),
3021
+ errors: z.array(types.string()),
3022
+ });
3023
+
3024
+ export function addCampaignContactsResultsFromJSON(
3025
+ jsonString: string,
3026
+ ): SafeParseResult<AddCampaignContactsResults, SDKValidationError> {
3027
+ return safeParse(
3028
+ jsonString,
3029
+ (x) => AddCampaignContactsResults$inboundSchema.parse(JSON.parse(x)),
3030
+ `Failed to parse 'AddCampaignContactsResults' from JSON`,
3031
+ );
3032
+ }
3033
+
3034
+ /** @internal */
3035
+ export const AddCampaignContactsResponse$inboundSchema: z.ZodMiniType<
3036
+ AddCampaignContactsResponse,
3037
+ unknown
3038
+ > = z.object({
3039
+ success: types.literal(true),
3040
+ results: z.lazy(() => AddCampaignContactsResults$inboundSchema),
3041
+ creditsUsed: types.number(),
3042
+ retryAfter: types.number(),
3043
+ });
3044
+
3045
+ export function addCampaignContactsResponseFromJSON(
3046
+ jsonString: string,
3047
+ ): SafeParseResult<AddCampaignContactsResponse, SDKValidationError> {
3048
+ return safeParse(
3049
+ jsonString,
3050
+ (x) => AddCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)),
3051
+ `Failed to parse 'AddCampaignContactsResponse' from JSON`,
3052
+ );
3053
+ }
3054
+
3055
+ /** @internal */
3056
+ export type GetContactByUrlRequest$Outbound = {
3057
+ linkedinUrl: string;
3058
+ };
3059
+
3060
+ /** @internal */
3061
+ export const GetContactByUrlRequest$outboundSchema: z.ZodMiniType<
3062
+ GetContactByUrlRequest$Outbound,
3063
+ GetContactByUrlRequest
3064
+ > = z.object({
3065
+ linkedinUrl: z.string(),
3066
+ });
3067
+
3068
+ export function getContactByUrlRequestToJSON(
3069
+ getContactByUrlRequest: GetContactByUrlRequest,
3070
+ ): string {
3071
+ return JSON.stringify(
3072
+ GetContactByUrlRequest$outboundSchema.parse(getContactByUrlRequest),
3073
+ );
3074
+ }
3075
+
3076
+ /** @internal */
3077
+ export const GetContactByUrlActivity$inboundSchema: z.ZodMiniType<
3078
+ GetContactByUrlActivity,
3079
+ unknown
3080
+ > = z.object({
3081
+ id: types.string(),
3082
+ type: types.string(),
3083
+ content: types.nullable(types.string()),
3084
+ metadata: types.nullable(z.any()),
3085
+ createdAt: types.string(),
3086
+ });
3087
+
3088
+ export function getContactByUrlActivityFromJSON(
3089
+ jsonString: string,
3090
+ ): SafeParseResult<GetContactByUrlActivity, SDKValidationError> {
3091
+ return safeParse(
3092
+ jsonString,
3093
+ (x) => GetContactByUrlActivity$inboundSchema.parse(JSON.parse(x)),
3094
+ `Failed to parse 'GetContactByUrlActivity' from JSON`,
3095
+ );
3096
+ }
3097
+
3098
+ /** @internal */
3099
+ export const GetContactByUrlCampaign$inboundSchema: z.ZodMiniType<
3100
+ GetContactByUrlCampaign,
3101
+ unknown
3102
+ > = z.object({
3103
+ campaignId: types.string(),
3104
+ campaignName: types.string(),
3105
+ campaignStatus: types.string(),
3106
+ source: types.string(),
3107
+ sourceAngle: types.nullable(types.string()),
3108
+ addedAt: types.string(),
3109
+ });
3110
+
3111
+ export function getContactByUrlCampaignFromJSON(
3112
+ jsonString: string,
3113
+ ): SafeParseResult<GetContactByUrlCampaign, SDKValidationError> {
3114
+ return safeParse(
3115
+ jsonString,
3116
+ (x) => GetContactByUrlCampaign$inboundSchema.parse(JSON.parse(x)),
3117
+ `Failed to parse 'GetContactByUrlCampaign' from JSON`,
3118
+ );
3119
+ }
3120
+
3121
+ /** @internal */
3122
+ export const GetContactByUrlContact$inboundSchema: z.ZodMiniType<
3123
+ GetContactByUrlContact,
3124
+ unknown
3125
+ > = z.object({
3126
+ id: types.string(),
3127
+ linkedinUrl: types.string(),
3128
+ profileUrn: types.nullable(types.string()),
3129
+ publicIdentifier: types.nullable(types.string()),
3130
+ name: types.string(),
3131
+ lifecycleStage: types.string(),
3132
+ hotScore: types.number(),
3133
+ qualificationNotes: types.nullable(types.string()),
3134
+ notes: types.nullable(types.string()),
3135
+ stageChangedAt: types.nullable(types.string()),
3136
+ profileData: types.nullable(z.any()),
3137
+ profileUpdatedAt: types.nullable(types.string()),
3138
+ conversationData: types.nullable(z.any()),
3139
+ conversationUpdatedAt: types.nullable(types.string()),
3140
+ outreachStatus: types.string(),
3141
+ lastContactedAt: types.nullable(types.string()),
3142
+ lastRepliedAt: types.nullable(types.string()),
3143
+ nextFollowUpAt: types.nullable(types.string()),
3144
+ doNotContact: types.boolean(),
3145
+ tags: z.array(types.string()),
3146
+ createdAt: types.string(),
3147
+ updatedAt: types.string(),
3148
+ activities: z.array(z.lazy(() => GetContactByUrlActivity$inboundSchema)),
3149
+ campaigns: z.array(z.lazy(() => GetContactByUrlCampaign$inboundSchema)),
3150
+ });
3151
+
3152
+ export function getContactByUrlContactFromJSON(
3153
+ jsonString: string,
3154
+ ): SafeParseResult<GetContactByUrlContact, SDKValidationError> {
3155
+ return safeParse(
3156
+ jsonString,
3157
+ (x) => GetContactByUrlContact$inboundSchema.parse(JSON.parse(x)),
3158
+ `Failed to parse 'GetContactByUrlContact' from JSON`,
3159
+ );
3160
+ }
3161
+
3162
+ /** @internal */
3163
+ export const GetContactByUrlResponse$inboundSchema: z.ZodMiniType<
3164
+ GetContactByUrlResponse,
3165
+ unknown
3166
+ > = z.object({
3167
+ success: types.literal(true),
3168
+ contact: z.lazy(() => GetContactByUrlContact$inboundSchema),
3169
+ creditsUsed: types.number(),
3170
+ retryAfter: types.number(),
3171
+ });
3172
+
3173
+ export function getContactByUrlResponseFromJSON(
3174
+ jsonString: string,
3175
+ ): SafeParseResult<GetContactByUrlResponse, SDKValidationError> {
3176
+ return safeParse(
3177
+ jsonString,
3178
+ (x) => GetContactByUrlResponse$inboundSchema.parse(JSON.parse(x)),
3179
+ `Failed to parse 'GetContactByUrlResponse' from JSON`,
3180
+ );
3181
+ }
3182
+
3183
+ /** @internal */
3184
+ export const QueryParamStatus$outboundSchema: z.ZodMiniEnum<
3185
+ typeof QueryParamStatus
3186
+ > = z.enum(QueryParamStatus);
3187
+
3188
+ /** @internal */
3189
+ export type ListScheduledMessagesRequest$Outbound = {
3190
+ status?: string | undefined;
3191
+ contactId?: string | undefined;
3192
+ campaignSlug?: string | undefined;
3193
+ limit: number;
3194
+ offset: number;
3195
+ };
3196
+
3197
+ /** @internal */
3198
+ export const ListScheduledMessagesRequest$outboundSchema: z.ZodMiniType<
3199
+ ListScheduledMessagesRequest$Outbound,
3200
+ ListScheduledMessagesRequest
3201
+ > = z.object({
3202
+ status: z.optional(QueryParamStatus$outboundSchema),
3203
+ contactId: z.optional(z.string()),
3204
+ campaignSlug: z.optional(z.string()),
3205
+ limit: z._default(z.int(), 50),
3206
+ offset: z._default(z.int(), 0),
3207
+ });
3208
+
3209
+ export function listScheduledMessagesRequestToJSON(
3210
+ listScheduledMessagesRequest: ListScheduledMessagesRequest,
3211
+ ): string {
3212
+ return JSON.stringify(
3213
+ ListScheduledMessagesRequest$outboundSchema.parse(
3214
+ listScheduledMessagesRequest,
3215
+ ),
3216
+ );
3217
+ }
3218
+
3219
+ /** @internal */
3220
+ export const ListScheduledMessagesStatusResponse$inboundSchema: z.ZodMiniType<
3221
+ ListScheduledMessagesStatusResponse,
3222
+ unknown
3223
+ > = openEnums.inboundSchema(ListScheduledMessagesStatusResponse);
3224
+
3225
+ /** @internal */
3226
+ export const ListScheduledMessagesMessage$inboundSchema: z.ZodMiniType<
3227
+ ListScheduledMessagesMessage,
3228
+ unknown
3229
+ > = z.object({
3230
+ id: types.string(),
3231
+ contactId: types.string(),
3232
+ contactName: types.nullable(types.string()),
3233
+ contactLinkedinUrl: types.nullable(types.string()),
3234
+ message: types.string(),
3235
+ status: ListScheduledMessagesStatusResponse$inboundSchema,
3236
+ scheduledSendAt: types.nullable(types.string()),
3237
+ sentAt: types.nullable(types.string()),
3238
+ campaignSlug: types.nullable(types.string()),
3239
+ createdAt: types.string(),
3240
+ updatedAt: types.string(),
3241
+ });
3242
+
3243
+ export function listScheduledMessagesMessageFromJSON(
3244
+ jsonString: string,
3245
+ ): SafeParseResult<ListScheduledMessagesMessage, SDKValidationError> {
3246
+ return safeParse(
3247
+ jsonString,
3248
+ (x) => ListScheduledMessagesMessage$inboundSchema.parse(JSON.parse(x)),
3249
+ `Failed to parse 'ListScheduledMessagesMessage' from JSON`,
3250
+ );
3251
+ }
3252
+
3253
+ /** @internal */
3254
+ export const ListScheduledMessagesPagination$inboundSchema: z.ZodMiniType<
3255
+ ListScheduledMessagesPagination,
3256
+ unknown
3257
+ > = z.object({
3258
+ limit: types.number(),
3259
+ offset: types.number(),
3260
+ total: types.number(),
3261
+ });
3262
+
3263
+ export function listScheduledMessagesPaginationFromJSON(
3264
+ jsonString: string,
3265
+ ): SafeParseResult<ListScheduledMessagesPagination, SDKValidationError> {
3266
+ return safeParse(
3267
+ jsonString,
3268
+ (x) => ListScheduledMessagesPagination$inboundSchema.parse(JSON.parse(x)),
3269
+ `Failed to parse 'ListScheduledMessagesPagination' from JSON`,
3270
+ );
3271
+ }
3272
+
3273
+ /** @internal */
3274
+ export const ListScheduledMessagesResponse$inboundSchema: z.ZodMiniType<
3275
+ ListScheduledMessagesResponse,
3276
+ unknown
3277
+ > = z.object({
3278
+ success: types.literal(true),
3279
+ messages: z.array(z.lazy(() => ListScheduledMessagesMessage$inboundSchema)),
3280
+ pagination: z.lazy(() => ListScheduledMessagesPagination$inboundSchema),
3281
+ creditsUsed: types.number(),
3282
+ retryAfter: types.number(),
3283
+ });
3284
+
3285
+ export function listScheduledMessagesResponseFromJSON(
3286
+ jsonString: string,
3287
+ ): SafeParseResult<ListScheduledMessagesResponse, SDKValidationError> {
3288
+ return safeParse(
3289
+ jsonString,
3290
+ (x) => ListScheduledMessagesResponse$inboundSchema.parse(JSON.parse(x)),
3291
+ `Failed to parse 'ListScheduledMessagesResponse' from JSON`,
3292
+ );
3293
+ }
3294
+
3295
+ /** @internal */
3296
+ export const CreateScheduledMessageStatusRequest$outboundSchema: z.ZodMiniEnum<
3297
+ typeof CreateScheduledMessageStatusRequest
3298
+ > = z.enum(CreateScheduledMessageStatusRequest);
3299
+
3300
+ /** @internal */
3301
+ export type CreateScheduledMessageRequest$Outbound = {
3302
+ contactId: string;
3303
+ message: string;
3304
+ status?: string | undefined;
3305
+ scheduledSendAt?: string | undefined;
3306
+ campaignSlug?: string | undefined;
3307
+ };
3308
+
3309
+ /** @internal */
3310
+ export const CreateScheduledMessageRequest$outboundSchema: z.ZodMiniType<
3311
+ CreateScheduledMessageRequest$Outbound,
3312
+ CreateScheduledMessageRequest
3313
+ > = z.object({
3314
+ contactId: z.string(),
3315
+ message: z.string(),
3316
+ status: z.optional(CreateScheduledMessageStatusRequest$outboundSchema),
3317
+ scheduledSendAt: z.optional(z.string()),
3318
+ campaignSlug: z.optional(z.string()),
3319
+ });
3320
+
3321
+ export function createScheduledMessageRequestToJSON(
3322
+ createScheduledMessageRequest: CreateScheduledMessageRequest,
3323
+ ): string {
3324
+ return JSON.stringify(
3325
+ CreateScheduledMessageRequest$outboundSchema.parse(
3326
+ createScheduledMessageRequest,
3327
+ ),
3328
+ );
3329
+ }
3330
+
3331
+ /** @internal */
3332
+ export const CreateScheduledMessageStatusResponse$inboundSchema: z.ZodMiniType<
3333
+ CreateScheduledMessageStatusResponse,
3334
+ unknown
3335
+ > = openEnums.inboundSchema(CreateScheduledMessageStatusResponse);
3336
+
3337
+ /** @internal */
3338
+ export const CreateScheduledMessageMessage$inboundSchema: z.ZodMiniType<
3339
+ CreateScheduledMessageMessage,
3340
+ unknown
3341
+ > = z.object({
3342
+ id: types.string(),
3343
+ contactId: types.string(),
3344
+ contactName: types.nullable(types.string()),
3345
+ contactLinkedinUrl: types.nullable(types.string()),
3346
+ message: types.string(),
3347
+ status: CreateScheduledMessageStatusResponse$inboundSchema,
3348
+ scheduledSendAt: types.nullable(types.string()),
3349
+ sentAt: types.nullable(types.string()),
3350
+ campaignSlug: types.nullable(types.string()),
3351
+ createdAt: types.string(),
3352
+ updatedAt: types.string(),
3353
+ });
3354
+
3355
+ export function createScheduledMessageMessageFromJSON(
3356
+ jsonString: string,
3357
+ ): SafeParseResult<CreateScheduledMessageMessage, SDKValidationError> {
3358
+ return safeParse(
3359
+ jsonString,
3360
+ (x) => CreateScheduledMessageMessage$inboundSchema.parse(JSON.parse(x)),
3361
+ `Failed to parse 'CreateScheduledMessageMessage' from JSON`,
3362
+ );
3363
+ }
3364
+
3365
+ /** @internal */
3366
+ export const CreateScheduledMessageResponse$inboundSchema: z.ZodMiniType<
3367
+ CreateScheduledMessageResponse,
3368
+ unknown
3369
+ > = z.object({
3370
+ success: types.literal(true),
3371
+ message: z.lazy(() => CreateScheduledMessageMessage$inboundSchema),
3372
+ creditsUsed: types.number(),
3373
+ retryAfter: types.number(),
3374
+ });
3375
+
3376
+ export function createScheduledMessageResponseFromJSON(
3377
+ jsonString: string,
3378
+ ): SafeParseResult<CreateScheduledMessageResponse, SDKValidationError> {
3379
+ return safeParse(
3380
+ jsonString,
3381
+ (x) => CreateScheduledMessageResponse$inboundSchema.parse(JSON.parse(x)),
3382
+ `Failed to parse 'CreateScheduledMessageResponse' from JSON`,
3383
+ );
3384
+ }
3385
+
3386
+ /** @internal */
3387
+ export type BatchScheduleMessagesRequest$Outbound = {
3388
+ contactIds?: Array<string> | undefined;
3389
+ messageIds?: Array<string> | undefined;
3390
+ scheduledSendAt: string;
3391
+ };
3392
+
3393
+ /** @internal */
3394
+ export const BatchScheduleMessagesRequest$outboundSchema: z.ZodMiniType<
3395
+ BatchScheduleMessagesRequest$Outbound,
3396
+ BatchScheduleMessagesRequest
3397
+ > = z.object({
3398
+ contactIds: z.optional(z.array(z.string())),
3399
+ messageIds: z.optional(z.array(z.string())),
3400
+ scheduledSendAt: z.string(),
3401
+ });
3402
+
3403
+ export function batchScheduleMessagesRequestToJSON(
3404
+ batchScheduleMessagesRequest: BatchScheduleMessagesRequest,
3405
+ ): string {
3406
+ return JSON.stringify(
3407
+ BatchScheduleMessagesRequest$outboundSchema.parse(
3408
+ batchScheduleMessagesRequest,
3409
+ ),
3410
+ );
3411
+ }
3412
+
3413
+ /** @internal */
3414
+ export const BatchScheduleMessagesResponse$inboundSchema: z.ZodMiniType<
3415
+ BatchScheduleMessagesResponse,
3416
+ unknown
3417
+ > = z.object({
3418
+ success: types.literal(true),
3419
+ scheduled: types.number(),
3420
+ creditsUsed: types.number(),
3421
+ retryAfter: types.number(),
3422
+ });
3423
+
3424
+ export function batchScheduleMessagesResponseFromJSON(
3425
+ jsonString: string,
3426
+ ): SafeParseResult<BatchScheduleMessagesResponse, SDKValidationError> {
3427
+ return safeParse(
3428
+ jsonString,
3429
+ (x) => BatchScheduleMessagesResponse$inboundSchema.parse(JSON.parse(x)),
3430
+ `Failed to parse 'BatchScheduleMessagesResponse' from JSON`,
3431
+ );
3432
+ }
3433
+
3434
+ /** @internal */
3435
+ export type CancelScheduledMessagesRequest$Outbound = {
3436
+ messageIds?: Array<string> | undefined;
3437
+ contactIds?: Array<string> | undefined;
3438
+ };
3439
+
3440
+ /** @internal */
3441
+ export const CancelScheduledMessagesRequest$outboundSchema: z.ZodMiniType<
3442
+ CancelScheduledMessagesRequest$Outbound,
3443
+ CancelScheduledMessagesRequest
3444
+ > = z.object({
3445
+ messageIds: z.optional(z.array(z.string())),
3446
+ contactIds: z.optional(z.array(z.string())),
3447
+ });
3448
+
3449
+ export function cancelScheduledMessagesRequestToJSON(
3450
+ cancelScheduledMessagesRequest: CancelScheduledMessagesRequest,
3451
+ ): string {
3452
+ return JSON.stringify(
3453
+ CancelScheduledMessagesRequest$outboundSchema.parse(
3454
+ cancelScheduledMessagesRequest,
3455
+ ),
3456
+ );
3457
+ }
3458
+
3459
+ /** @internal */
3460
+ export const CancelScheduledMessagesResponse$inboundSchema: z.ZodMiniType<
3461
+ CancelScheduledMessagesResponse,
3462
+ unknown
3463
+ > = z.object({
3464
+ success: types.literal(true),
3465
+ cancelled: types.number(),
3466
+ creditsUsed: types.number(),
3467
+ retryAfter: types.number(),
3468
+ });
3469
+
3470
+ export function cancelScheduledMessagesResponseFromJSON(
3471
+ jsonString: string,
3472
+ ): SafeParseResult<CancelScheduledMessagesResponse, SDKValidationError> {
3473
+ return safeParse(
3474
+ jsonString,
3475
+ (x) => CancelScheduledMessagesResponse$inboundSchema.parse(JSON.parse(x)),
3476
+ `Failed to parse 'CancelScheduledMessagesResponse' from JSON`,
3477
+ );
3478
+ }
3479
+
3480
+ /** @internal */
3481
+ export type ListContextRequest$Outbound = {
3482
+ scope?: string | undefined;
3483
+ type?: string | undefined;
3484
+ };
3485
+
3486
+ /** @internal */
3487
+ export const ListContextRequest$outboundSchema: z.ZodMiniType<
3488
+ ListContextRequest$Outbound,
3489
+ ListContextRequest
3490
+ > = z.object({
3491
+ scope: z.optional(z.string()),
3492
+ type: z.optional(z.string()),
3493
+ });
3494
+
3495
+ export function listContextRequestToJSON(
3496
+ listContextRequest: ListContextRequest,
3497
+ ): string {
3498
+ return JSON.stringify(
3499
+ ListContextRequest$outboundSchema.parse(listContextRequest),
3500
+ );
3501
+ }
3502
+
3503
+ /** @internal */
3504
+ export const ListContextEntry$inboundSchema: z.ZodMiniType<
3505
+ ListContextEntry,
3506
+ unknown
3507
+ > = z.object({
3508
+ type: types.string(),
3509
+ label: types.nullable(types.string()),
3510
+ content: types.string(),
3511
+ scope: types.string(),
3512
+ updatedAt: types.string(),
3513
+ });
3514
+
3515
+ export function listContextEntryFromJSON(
3516
+ jsonString: string,
3517
+ ): SafeParseResult<ListContextEntry, SDKValidationError> {
3518
+ return safeParse(
3519
+ jsonString,
3520
+ (x) => ListContextEntry$inboundSchema.parse(JSON.parse(x)),
3521
+ `Failed to parse 'ListContextEntry' from JSON`,
3522
+ );
3523
+ }
3524
+
3525
+ /** @internal */
3526
+ export const ListContextResponse$inboundSchema: z.ZodMiniType<
3527
+ ListContextResponse,
3528
+ unknown
3529
+ > = z.object({
3530
+ success: types.literal(true),
3531
+ entries: z.array(z.lazy(() => ListContextEntry$inboundSchema)),
3532
+ creditsUsed: types.number(),
3533
+ retryAfter: types.number(),
3534
+ });
3535
+
3536
+ export function listContextResponseFromJSON(
3537
+ jsonString: string,
3538
+ ): SafeParseResult<ListContextResponse, SDKValidationError> {
3539
+ return safeParse(
3540
+ jsonString,
3541
+ (x) => ListContextResponse$inboundSchema.parse(JSON.parse(x)),
3542
+ `Failed to parse 'ListContextResponse' from JSON`,
3543
+ );
3544
+ }
3545
+
3546
+ /** @internal */
3547
+ export type SetContextRequest$Outbound = {
3548
+ type: string;
3549
+ content: string;
3550
+ scope?: string | undefined;
3551
+ label?: string | undefined;
3552
+ };
3553
+
3554
+ /** @internal */
3555
+ export const SetContextRequest$outboundSchema: z.ZodMiniType<
3556
+ SetContextRequest$Outbound,
3557
+ SetContextRequest
3558
+ > = z.object({
3559
+ type: z.string(),
3560
+ content: z.string(),
3561
+ scope: z.optional(z.string()),
3562
+ label: z.optional(z.string()),
3563
+ });
3564
+
3565
+ export function setContextRequestToJSON(
3566
+ setContextRequest: SetContextRequest,
3567
+ ): string {
3568
+ return JSON.stringify(
3569
+ SetContextRequest$outboundSchema.parse(setContextRequest),
3570
+ );
3571
+ }
3572
+
3573
+ /** @internal */
3574
+ export const SetContextEntry$inboundSchema: z.ZodMiniType<
3575
+ SetContextEntry,
3576
+ unknown
3577
+ > = z.object({
3578
+ type: types.string(),
3579
+ label: types.nullable(types.string()),
3580
+ content: types.string(),
3581
+ scope: types.string(),
3582
+ updatedAt: types.string(),
3583
+ });
3584
+
3585
+ export function setContextEntryFromJSON(
3586
+ jsonString: string,
3587
+ ): SafeParseResult<SetContextEntry, SDKValidationError> {
3588
+ return safeParse(
3589
+ jsonString,
3590
+ (x) => SetContextEntry$inboundSchema.parse(JSON.parse(x)),
3591
+ `Failed to parse 'SetContextEntry' from JSON`,
3592
+ );
3593
+ }
3594
+
3595
+ /** @internal */
3596
+ export const SetContextResponse$inboundSchema: z.ZodMiniType<
3597
+ SetContextResponse,
3598
+ unknown
3599
+ > = z.object({
3600
+ success: types.literal(true),
3601
+ entry: z.lazy(() => SetContextEntry$inboundSchema),
3602
+ creditsUsed: types.number(),
3603
+ retryAfter: types.number(),
3604
+ });
3605
+
3606
+ export function setContextResponseFromJSON(
3607
+ jsonString: string,
3608
+ ): SafeParseResult<SetContextResponse, SDKValidationError> {
3609
+ return safeParse(
3610
+ jsonString,
3611
+ (x) => SetContextResponse$inboundSchema.parse(JSON.parse(x)),
3612
+ `Failed to parse 'SetContextResponse' from JSON`,
3613
+ );
3614
+ }
3615
+
3616
+ /** @internal */
3617
+ export type DeleteContextRequest$Outbound = {
3618
+ type: string;
3619
+ scope?: string | undefined;
3620
+ };
3621
+
3622
+ /** @internal */
3623
+ export const DeleteContextRequest$outboundSchema: z.ZodMiniType<
3624
+ DeleteContextRequest$Outbound,
3625
+ DeleteContextRequest
3626
+ > = z.object({
3627
+ type: z.string(),
3628
+ scope: z.optional(z.string()),
3629
+ });
3630
+
3631
+ export function deleteContextRequestToJSON(
3632
+ deleteContextRequest: DeleteContextRequest,
3633
+ ): string {
3634
+ return JSON.stringify(
3635
+ DeleteContextRequest$outboundSchema.parse(deleteContextRequest),
3636
+ );
3637
+ }
3638
+
3639
+ /** @internal */
3640
+ export const DeleteContextResponse$inboundSchema: z.ZodMiniType<
3641
+ DeleteContextResponse,
3642
+ unknown
3643
+ > = z.object({
3644
+ success: types.literal(true),
3645
+ creditsUsed: types.number(),
3646
+ retryAfter: types.number(),
3647
+ });
3648
+
3649
+ export function deleteContextResponseFromJSON(
3650
+ jsonString: string,
3651
+ ): SafeParseResult<DeleteContextResponse, SDKValidationError> {
3652
+ return safeParse(
3653
+ jsonString,
3654
+ (x) => DeleteContextResponse$inboundSchema.parse(JSON.parse(x)),
3655
+ `Failed to parse 'DeleteContextResponse' from JSON`,
3656
+ );
3657
+ }
3658
+
3659
+ /** @internal */
3660
+ export const Schedule$inboundSchema: z.ZodMiniType<Schedule, unknown> = z
3661
+ .object({
3662
+ scheduleId: types.string(),
3663
+ type: types.string(),
3664
+ state: types.string(),
3665
+ cron: types.nullable(types.string()),
3666
+ nextExecution: types.nullable(types.string()),
3667
+ lastRunAt: types.nullable(types.string()),
3668
+ lastRunStatus: types.nullable(types.string()),
3669
+ });
3670
+
3671
+ export function scheduleFromJSON(
3672
+ jsonString: string,
3673
+ ): SafeParseResult<Schedule, SDKValidationError> {
3674
+ return safeParse(
3675
+ jsonString,
3676
+ (x) => Schedule$inboundSchema.parse(JSON.parse(x)),
3677
+ `Failed to parse 'Schedule' from JSON`,
3678
+ );
3679
+ }
3680
+
3681
+ /** @internal */
3682
+ export const ListCronSchedulesResponse$inboundSchema: z.ZodMiniType<
3683
+ ListCronSchedulesResponse,
3684
+ unknown
3685
+ > = z.object({
3686
+ success: types.literal(true),
3687
+ schedules: z.array(z.lazy(() => Schedule$inboundSchema)),
3688
+ creditsUsed: types.number(),
3689
+ retryAfter: types.number(),
3690
+ });
3691
+
3692
+ export function listCronSchedulesResponseFromJSON(
3693
+ jsonString: string,
3694
+ ): SafeParseResult<ListCronSchedulesResponse, SDKValidationError> {
3695
+ return safeParse(
3696
+ jsonString,
3697
+ (x) => ListCronSchedulesResponse$inboundSchema.parse(JSON.parse(x)),
3698
+ `Failed to parse 'ListCronSchedulesResponse' from JSON`,
3699
+ );
3700
+ }
3701
+
3702
+ /** @internal */
3703
+ export const UpdateCronScheduleAction$outboundSchema: z.ZodMiniEnum<
3704
+ typeof UpdateCronScheduleAction
3705
+ > = z.enum(UpdateCronScheduleAction);
3706
+
3707
+ /** @internal */
3708
+ export type UpdateCronScheduleRequestBody$Outbound = {
3709
+ action: string;
3710
+ };
3711
+
3712
+ /** @internal */
3713
+ export const UpdateCronScheduleRequestBody$outboundSchema: z.ZodMiniType<
3714
+ UpdateCronScheduleRequestBody$Outbound,
3715
+ UpdateCronScheduleRequestBody
3716
+ > = z.object({
3717
+ action: UpdateCronScheduleAction$outboundSchema,
3718
+ });
3719
+
3720
+ export function updateCronScheduleRequestBodyToJSON(
3721
+ updateCronScheduleRequestBody: UpdateCronScheduleRequestBody,
3722
+ ): string {
3723
+ return JSON.stringify(
3724
+ UpdateCronScheduleRequestBody$outboundSchema.parse(
3725
+ updateCronScheduleRequestBody,
3726
+ ),
3727
+ );
3728
+ }
3729
+
3730
+ /** @internal */
3731
+ export type UpdateCronScheduleRequest$Outbound = {
3732
+ scheduleId: string;
3733
+ body: UpdateCronScheduleRequestBody$Outbound;
3734
+ };
3735
+
3736
+ /** @internal */
3737
+ export const UpdateCronScheduleRequest$outboundSchema: z.ZodMiniType<
3738
+ UpdateCronScheduleRequest$Outbound,
3739
+ UpdateCronScheduleRequest
3740
+ > = z.object({
3741
+ scheduleId: z.string(),
3742
+ body: z.lazy(() => UpdateCronScheduleRequestBody$outboundSchema),
3743
+ });
3744
+
3745
+ export function updateCronScheduleRequestToJSON(
3746
+ updateCronScheduleRequest: UpdateCronScheduleRequest,
3747
+ ): string {
3748
+ return JSON.stringify(
3749
+ UpdateCronScheduleRequest$outboundSchema.parse(updateCronScheduleRequest),
3750
+ );
3751
+ }
3752
+
3753
+ /** @internal */
3754
+ export const UpdateCronScheduleResponse$inboundSchema: z.ZodMiniType<
3755
+ UpdateCronScheduleResponse,
3756
+ unknown
3757
+ > = z.object({
3758
+ success: types.literal(true),
3759
+ creditsUsed: types.number(),
3760
+ retryAfter: types.number(),
3761
+ });
3762
+
3763
+ export function updateCronScheduleResponseFromJSON(
3764
+ jsonString: string,
3765
+ ): SafeParseResult<UpdateCronScheduleResponse, SDKValidationError> {
3766
+ return safeParse(
3767
+ jsonString,
3768
+ (x) => UpdateCronScheduleResponse$inboundSchema.parse(JSON.parse(x)),
3769
+ `Failed to parse 'UpdateCronScheduleResponse' from JSON`,
3770
+ );
3771
+ }