bereach 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +71 -5
  2. package/esm/funcs/actions-connect-profile.d.ts +1 -1
  3. package/esm/funcs/actions-connect-profile.js +1 -1
  4. package/esm/funcs/actions-edit-profile.d.ts +18 -0
  5. package/esm/funcs/actions-edit-profile.d.ts.map +1 -0
  6. package/esm/funcs/actions-edit-profile.js +97 -0
  7. package/esm/funcs/actions-edit-profile.js.map +1 -0
  8. package/esm/funcs/chat-get-conversation-summary.d.ts +18 -0
  9. package/esm/funcs/chat-get-conversation-summary.d.ts.map +1 -0
  10. package/esm/funcs/chat-get-conversation-summary.js +100 -0
  11. package/esm/funcs/chat-get-conversation-summary.js.map +1 -0
  12. package/esm/funcs/chat-list-inbox.d.ts +1 -1
  13. package/esm/funcs/chat-list-inbox.js +1 -1
  14. package/esm/funcs/chat-save-conversation-summary.d.ts +18 -0
  15. package/esm/funcs/chat-save-conversation-summary.d.ts.map +1 -0
  16. package/esm/funcs/chat-save-conversation-summary.js +97 -0
  17. package/esm/funcs/chat-save-conversation-summary.js.map +1 -0
  18. package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
  19. package/esm/funcs/company-pages-get-analytics.js +1 -1
  20. package/esm/funcs/connectors-agent-snapshot.d.ts +18 -0
  21. package/esm/funcs/connectors-agent-snapshot.d.ts.map +1 -0
  22. package/esm/funcs/connectors-agent-snapshot.js +86 -0
  23. package/esm/funcs/connectors-agent-snapshot.js.map +1 -0
  24. package/esm/funcs/connectors-connector-heartbeat.d.ts +18 -0
  25. package/esm/funcs/connectors-connector-heartbeat.d.ts.map +1 -0
  26. package/esm/funcs/connectors-connector-heartbeat.js +99 -0
  27. package/esm/funcs/connectors-connector-heartbeat.js.map +1 -0
  28. package/esm/funcs/connectors-list-connectors.d.ts +18 -0
  29. package/esm/funcs/connectors-list-connectors.d.ts.map +1 -0
  30. package/esm/funcs/connectors-list-connectors.js +86 -0
  31. package/esm/funcs/connectors-list-connectors.js.map +1 -0
  32. package/esm/funcs/connectors-pull-task.d.ts +18 -0
  33. package/esm/funcs/connectors-pull-task.d.ts.map +1 -0
  34. package/esm/funcs/connectors-pull-task.js +86 -0
  35. package/esm/funcs/connectors-pull-task.js.map +1 -0
  36. package/esm/funcs/connectors-submit-task-result.d.ts +18 -0
  37. package/esm/funcs/connectors-submit-task-result.d.ts.map +1 -0
  38. package/esm/funcs/connectors-submit-task-result.js +103 -0
  39. package/esm/funcs/connectors-submit-task-result.js.map +1 -0
  40. package/esm/funcs/contacts-global-activities.d.ts +18 -0
  41. package/esm/funcs/contacts-global-activities.d.ts.map +1 -0
  42. package/esm/funcs/contacts-global-activities.js +105 -0
  43. package/esm/funcs/contacts-global-activities.js.map +1 -0
  44. package/esm/funcs/profile-create-api-token.d.ts +18 -0
  45. package/esm/funcs/profile-create-api-token.d.ts.map +1 -0
  46. package/esm/funcs/profile-create-api-token.js +99 -0
  47. package/esm/funcs/profile-create-api-token.js.map +1 -0
  48. package/esm/funcs/profile-delete-api-token.d.ts +18 -0
  49. package/esm/funcs/profile-delete-api-token.d.ts.map +1 -0
  50. package/esm/funcs/profile-delete-api-token.js +99 -0
  51. package/esm/funcs/profile-delete-api-token.js.map +1 -0
  52. package/esm/funcs/profile-get-api-token.d.ts +18 -0
  53. package/esm/funcs/profile-get-api-token.d.ts.map +1 -0
  54. package/esm/funcs/profile-get-api-token.js +100 -0
  55. package/esm/funcs/profile-get-api-token.js.map +1 -0
  56. package/esm/funcs/profile-get-my-activity.d.ts +18 -0
  57. package/esm/funcs/profile-get-my-activity.d.ts.map +1 -0
  58. package/esm/funcs/profile-get-my-activity.js +104 -0
  59. package/esm/funcs/profile-get-my-activity.js.map +1 -0
  60. package/esm/funcs/profile-get-settings.d.ts +18 -0
  61. package/esm/funcs/profile-get-settings.d.ts.map +1 -0
  62. package/esm/funcs/profile-get-settings.js +86 -0
  63. package/esm/funcs/profile-get-settings.js.map +1 -0
  64. package/esm/funcs/profile-patch-settings.d.ts +18 -0
  65. package/esm/funcs/profile-patch-settings.d.ts.map +1 -0
  66. package/esm/funcs/profile-patch-settings.js +97 -0
  67. package/esm/funcs/profile-patch-settings.js.map +1 -0
  68. package/esm/funcs/profile-revalidate-linkedin.d.ts +18 -0
  69. package/esm/funcs/profile-revalidate-linkedin.d.ts.map +1 -0
  70. package/esm/funcs/profile-revalidate-linkedin.js +86 -0
  71. package/esm/funcs/profile-revalidate-linkedin.js.map +1 -0
  72. package/esm/funcs/sales-nav-search.d.ts +1 -1
  73. package/esm/funcs/sales-nav-search.js +1 -1
  74. package/esm/funcs/scheduled-messages-review-drafts.d.ts +18 -0
  75. package/esm/funcs/scheduled-messages-review-drafts.d.ts.map +1 -0
  76. package/esm/funcs/scheduled-messages-review-drafts.js +97 -0
  77. package/esm/funcs/scheduled-messages-review-drafts.js.map +1 -0
  78. package/esm/funcs/scrapers-collect-comment-replies.d.ts +1 -1
  79. package/esm/funcs/scrapers-collect-comment-replies.js +1 -1
  80. package/esm/funcs/scrapers-collect-comments.d.ts +1 -1
  81. package/esm/funcs/scrapers-collect-comments.js +1 -1
  82. package/esm/funcs/scrapers-collect-likes.d.ts +1 -1
  83. package/esm/funcs/scrapers-collect-likes.js +1 -1
  84. package/esm/funcs/scrapers-visit-profile.d.ts +2 -0
  85. package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
  86. package/esm/funcs/scrapers-visit-profile.js +2 -0
  87. package/esm/funcs/scrapers-visit-profile.js.map +1 -1
  88. package/esm/funcs/search-people.d.ts +2 -2
  89. package/esm/funcs/search-people.js +2 -2
  90. package/esm/funcs/search-search.d.ts +1 -1
  91. package/esm/funcs/search-search.js +1 -1
  92. package/esm/funcs/settings-get-dm-polling-settings.d.ts +18 -0
  93. package/esm/funcs/settings-get-dm-polling-settings.d.ts.map +1 -0
  94. package/esm/funcs/settings-get-dm-polling-settings.js +86 -0
  95. package/esm/funcs/settings-get-dm-polling-settings.js.map +1 -0
  96. package/esm/funcs/settings-patch-dm-polling-settings.d.ts +18 -0
  97. package/esm/funcs/settings-patch-dm-polling-settings.d.ts.map +1 -0
  98. package/esm/funcs/settings-patch-dm-polling-settings.js +97 -0
  99. package/esm/funcs/settings-patch-dm-polling-settings.js.map +1 -0
  100. package/esm/funcs/tasks-cancel-chain.d.ts +18 -0
  101. package/esm/funcs/tasks-cancel-chain.d.ts.map +1 -0
  102. package/esm/funcs/tasks-cancel-chain.js +102 -0
  103. package/esm/funcs/tasks-cancel-chain.js.map +1 -0
  104. package/esm/funcs/tasks-cancel-task.d.ts +18 -0
  105. package/esm/funcs/tasks-cancel-task.d.ts.map +1 -0
  106. package/esm/funcs/tasks-cancel-task.js +102 -0
  107. package/esm/funcs/tasks-cancel-task.js.map +1 -0
  108. package/esm/funcs/tasks-events-feed.d.ts +18 -0
  109. package/esm/funcs/tasks-events-feed.d.ts.map +1 -0
  110. package/esm/funcs/tasks-events-feed.js +101 -0
  111. package/esm/funcs/tasks-events-feed.js.map +1 -0
  112. package/esm/funcs/tasks-list-tasks.d.ts +18 -0
  113. package/esm/funcs/tasks-list-tasks.d.ts.map +1 -0
  114. package/esm/funcs/tasks-list-tasks.js +104 -0
  115. package/esm/funcs/tasks-list-tasks.js.map +1 -0
  116. package/esm/funcs/workspace-create-workspace-invite.d.ts +18 -0
  117. package/esm/funcs/workspace-create-workspace-invite.d.ts.map +1 -0
  118. package/esm/funcs/workspace-create-workspace-invite.js +97 -0
  119. package/esm/funcs/workspace-create-workspace-invite.js.map +1 -0
  120. package/esm/funcs/workspace-delete-workspace-account.d.ts +18 -0
  121. package/esm/funcs/workspace-delete-workspace-account.d.ts.map +1 -0
  122. package/esm/funcs/workspace-delete-workspace-account.js +102 -0
  123. package/esm/funcs/workspace-delete-workspace-account.js.map +1 -0
  124. package/esm/funcs/workspace-delete-workspace-invite.d.ts +18 -0
  125. package/esm/funcs/workspace-delete-workspace-invite.d.ts.map +1 -0
  126. package/esm/funcs/workspace-delete-workspace-invite.js +97 -0
  127. package/esm/funcs/workspace-delete-workspace-invite.js.map +1 -0
  128. package/esm/funcs/workspace-upgrade-workspace-account.d.ts +18 -0
  129. package/esm/funcs/workspace-upgrade-workspace-account.d.ts.map +1 -0
  130. package/esm/funcs/workspace-upgrade-workspace-account.js +97 -0
  131. package/esm/funcs/workspace-upgrade-workspace-account.js.map +1 -0
  132. package/esm/hooks/hooks.d.ts.map +1 -1
  133. package/esm/hooks/hooks.js +0 -2
  134. package/esm/hooks/hooks.js.map +1 -1
  135. package/esm/lib/config.d.ts +5 -5
  136. package/esm/lib/config.d.ts.map +1 -1
  137. package/esm/lib/config.js +6 -6
  138. package/esm/lib/config.js.map +1 -1
  139. package/esm/lib/encodings.d.ts.map +1 -1
  140. package/esm/lib/encodings.js +20 -5
  141. package/esm/lib/encodings.js.map +1 -1
  142. package/esm/lib/security.d.ts +1 -1
  143. package/esm/lib/security.d.ts.map +1 -1
  144. package/esm/lib/security.js +19 -8
  145. package/esm/lib/security.js.map +1 -1
  146. package/esm/models/operations/{search-contacts-campaign.d.ts → archive-response.d.ts} +1174 -1151
  147. package/esm/models/operations/archive-response.d.ts.map +1 -0
  148. package/esm/models/operations/{search-contacts-campaign.js → archive-response.js} +456 -461
  149. package/esm/models/operations/archive-response.js.map +1 -0
  150. package/esm/models/operations/delete-workspace-invite-response.d.ts +1374 -0
  151. package/esm/models/operations/delete-workspace-invite-response.d.ts.map +1 -0
  152. package/esm/models/operations/delete-workspace-invite-response.js +901 -0
  153. package/esm/models/operations/delete-workspace-invite-response.js.map +1 -0
  154. package/esm/models/operations/{update-schedule-response.d.ts → get-by-url-campaign.d.ts} +1629 -1291
  155. package/esm/models/operations/get-by-url-campaign.d.ts.map +1 -0
  156. package/esm/models/operations/{update-schedule-response.js → get-by-url-campaign.js} +534 -341
  157. package/esm/models/operations/get-by-url-campaign.js.map +1 -0
  158. package/esm/models/operations/index.d.ts +4 -3
  159. package/esm/models/operations/index.d.ts.map +1 -1
  160. package/esm/models/operations/index.js +4 -3
  161. package/esm/models/operations/index.js.map +1 -1
  162. package/esm/models/operations/search-companies-response.d.ts +45 -12
  163. package/esm/models/operations/search-companies-response.d.ts.map +1 -1
  164. package/esm/models/operations/search-companies-response.js +10 -2
  165. package/esm/models/operations/search-companies-response.js.map +1 -1
  166. package/esm/models/operations/{update-account-response.d.ts → update-account-proxy-config-response.d.ts} +70 -38
  167. package/esm/models/operations/update-account-proxy-config-response.d.ts.map +1 -0
  168. package/esm/models/operations/{update-account-response.js → update-account-proxy-config-response.js} +27 -28
  169. package/esm/models/operations/update-account-proxy-config-response.js.map +1 -0
  170. package/esm/sdk/actions.d.ts +8 -1
  171. package/esm/sdk/actions.d.ts.map +1 -1
  172. package/esm/sdk/actions.js +11 -1
  173. package/esm/sdk/actions.js.map +1 -1
  174. package/esm/sdk/chat.d.ts +15 -1
  175. package/esm/sdk/chat.d.ts.map +1 -1
  176. package/esm/sdk/chat.js +21 -1
  177. package/esm/sdk/chat.js.map +1 -1
  178. package/esm/sdk/company-pages.d.ts +1 -1
  179. package/esm/sdk/company-pages.js +1 -1
  180. package/esm/sdk/connectors.d.ts +40 -0
  181. package/esm/sdk/connectors.d.ts.map +1 -0
  182. package/esm/sdk/connectors.js +58 -0
  183. package/esm/sdk/connectors.js.map +1 -0
  184. package/esm/sdk/contacts.d.ts +7 -0
  185. package/esm/sdk/contacts.d.ts.map +1 -1
  186. package/esm/sdk/contacts.js +10 -0
  187. package/esm/sdk/contacts.js.map +1 -1
  188. package/esm/sdk/profile.d.ts +49 -0
  189. package/esm/sdk/profile.d.ts.map +1 -1
  190. package/esm/sdk/profile.js +70 -0
  191. package/esm/sdk/profile.js.map +1 -1
  192. package/esm/sdk/sales-nav.d.ts +1 -1
  193. package/esm/sdk/sales-nav.js +1 -1
  194. package/esm/sdk/scheduled-messages.d.ts +7 -0
  195. package/esm/sdk/scheduled-messages.d.ts.map +1 -1
  196. package/esm/sdk/scheduled-messages.js +10 -0
  197. package/esm/sdk/scheduled-messages.js.map +1 -1
  198. package/esm/sdk/scrapers.d.ts +5 -3
  199. package/esm/sdk/scrapers.d.ts.map +1 -1
  200. package/esm/sdk/scrapers.js +5 -3
  201. package/esm/sdk/scrapers.js.map +1 -1
  202. package/esm/sdk/sdk.d.ts +12 -0
  203. package/esm/sdk/sdk.d.ts.map +1 -1
  204. package/esm/sdk/sdk.js +20 -0
  205. package/esm/sdk/sdk.js.map +1 -1
  206. package/esm/sdk/search.d.ts +3 -3
  207. package/esm/sdk/search.js +3 -3
  208. package/esm/sdk/settings.d.ts +19 -0
  209. package/esm/sdk/settings.d.ts.map +1 -0
  210. package/esm/sdk/settings.js +28 -0
  211. package/esm/sdk/settings.js.map +1 -0
  212. package/esm/sdk/tasks.d.ts +33 -0
  213. package/esm/sdk/tasks.d.ts.map +1 -0
  214. package/esm/sdk/tasks.js +48 -0
  215. package/esm/sdk/tasks.js.map +1 -0
  216. package/esm/sdk/workspace.d.ts +33 -0
  217. package/esm/sdk/workspace.d.ts.map +1 -0
  218. package/esm/sdk/workspace.js +48 -0
  219. package/esm/sdk/workspace.js.map +1 -0
  220. package/jsr.json +1 -1
  221. package/package.json +1 -1
  222. package/src/funcs/actions-connect-profile.ts +1 -1
  223. package/src/funcs/actions-edit-profile.ts +224 -0
  224. package/src/funcs/chat-get-conversation-summary.ts +229 -0
  225. package/src/funcs/chat-list-inbox.ts +1 -1
  226. package/src/funcs/chat-save-conversation-summary.ts +225 -0
  227. package/src/funcs/company-pages-get-analytics.ts +1 -1
  228. package/src/funcs/connectors-agent-snapshot.ts +205 -0
  229. package/src/funcs/connectors-connector-heartbeat.ts +230 -0
  230. package/src/funcs/connectors-list-connectors.ts +205 -0
  231. package/src/funcs/connectors-pull-task.ts +205 -0
  232. package/src/funcs/connectors-submit-task-result.ts +231 -0
  233. package/src/funcs/contacts-global-activities.ts +237 -0
  234. package/src/funcs/profile-create-api-token.ts +230 -0
  235. package/src/funcs/profile-delete-api-token.ts +230 -0
  236. package/src/funcs/profile-get-api-token.ts +229 -0
  237. package/src/funcs/profile-get-my-activity.ts +236 -0
  238. package/src/funcs/profile-get-settings.ts +205 -0
  239. package/src/funcs/profile-patch-settings.ts +224 -0
  240. package/src/funcs/profile-revalidate-linkedin.ts +205 -0
  241. package/src/funcs/sales-nav-search.ts +1 -1
  242. package/src/funcs/scheduled-messages-review-drafts.ts +224 -0
  243. package/src/funcs/scrapers-collect-comment-replies.ts +1 -1
  244. package/src/funcs/scrapers-collect-comments.ts +1 -1
  245. package/src/funcs/scrapers-collect-likes.ts +1 -1
  246. package/src/funcs/scrapers-visit-profile.ts +2 -0
  247. package/src/funcs/search-people.ts +2 -2
  248. package/src/funcs/search-search.ts +1 -1
  249. package/src/funcs/settings-get-dm-polling-settings.ts +205 -0
  250. package/src/funcs/settings-patch-dm-polling-settings.ts +225 -0
  251. package/src/funcs/tasks-cancel-chain.ts +229 -0
  252. package/src/funcs/tasks-cancel-task.ts +229 -0
  253. package/src/funcs/tasks-events-feed.ts +230 -0
  254. package/src/funcs/tasks-list-tasks.ts +233 -0
  255. package/src/funcs/workspace-create-workspace-invite.ts +225 -0
  256. package/src/funcs/workspace-delete-workspace-account.ts +230 -0
  257. package/src/funcs/workspace-delete-workspace-invite.ts +225 -0
  258. package/src/funcs/workspace-upgrade-workspace-account.ts +225 -0
  259. package/src/hooks/hooks.ts +0 -3
  260. package/src/lib/config.ts +6 -6
  261. package/src/lib/encodings.ts +23 -4
  262. package/src/lib/security.ts +14 -2
  263. package/src/models/operations/{search-contacts-campaign.ts → archive-response.ts} +2503 -2362
  264. package/src/models/operations/delete-workspace-invite-response.ts +2783 -0
  265. package/src/models/operations/{update-schedule-response.ts → get-by-url-campaign.ts} +3591 -2939
  266. package/src/models/operations/index.ts +4 -3
  267. package/src/models/operations/search-companies-response.ts +55 -14
  268. package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts} +112 -84
  269. package/src/sdk/actions.ts +19 -1
  270. package/src/sdk/chat.ts +37 -1
  271. package/src/sdk/company-pages.ts +1 -1
  272. package/src/sdk/connectors.ts +93 -0
  273. package/src/sdk/contacts.ts +18 -0
  274. package/src/sdk/profile.ts +122 -0
  275. package/src/sdk/sales-nav.ts +1 -1
  276. package/src/sdk/scheduled-messages.ts +18 -0
  277. package/src/sdk/scrapers.ts +5 -3
  278. package/src/sdk/sdk.ts +24 -0
  279. package/src/sdk/search.ts +3 -3
  280. package/src/sdk/settings.ts +43 -0
  281. package/src/sdk/tasks.ts +81 -0
  282. package/src/sdk/workspace.ts +81 -0
  283. package/esm/models/operations/search-contacts-campaign.d.ts.map +0 -1
  284. package/esm/models/operations/search-contacts-campaign.js.map +0 -1
  285. package/esm/models/operations/update-account-response.d.ts.map +0 -1
  286. package/esm/models/operations/update-account-response.js.map +0 -1
  287. package/esm/models/operations/update-schedule-response.d.ts.map +0 -1
  288. package/esm/models/operations/update-schedule-response.js.map +0 -1
@@ -3,10 +3,74 @@
3
3
  */
4
4
  import * as z from "zod/v4-mini";
5
5
  import { safeParse } from "../../lib/schemas.js";
6
- import * as openEnums from "../../types/enums.js";
7
6
  import * as types from "../../types/primitives.js";
8
7
  import { smartUnion } from "../../types/smart-union.js";
9
- import { SearchContactsCampaign$inboundSchema, } from "./search-contacts-campaign.js";
8
+ export const SyncAction = {
9
+ Message: "message",
10
+ Reply: "reply",
11
+ Like: "like",
12
+ Visit: "visit",
13
+ Connect: "connect",
14
+ };
15
+ /**
16
+ * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
17
+ */
18
+ export const UpsertSource = {
19
+ Likes: "likes",
20
+ Comments: "comments",
21
+ Reposts: "reposts",
22
+ Posts: "posts",
23
+ CompanyFollowers: "company_followers",
24
+ SearchResults: "search_results",
25
+ ManualImport: "manual_import",
26
+ EventAttendees: "event_attendees",
27
+ GroupMembers: "group_members",
28
+ EngagementScraping: "engagement_scraping",
29
+ ContentSearch: "content_search",
30
+ FollowersMining: "followers_mining",
31
+ PeopleSearch: "people_search",
32
+ JobSearch: "job_search",
33
+ CompanySearch: "company_search",
34
+ NetworkExpansion: "network_expansion",
35
+ BulkVisit: "bulk_visit",
36
+ };
37
+ /**
38
+ * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
39
+ */
40
+ export const UpsertLifecycleStage = {
41
+ Contact: "contact",
42
+ Lead: "lead",
43
+ Qualified: "qualified",
44
+ Approved: "approved",
45
+ Rejected: "rejected",
46
+ };
47
+ export const SearchContactsLifecycleStage = {
48
+ Contact: "contact",
49
+ Lead: "lead",
50
+ Qualified: "qualified",
51
+ Approved: "approved",
52
+ Rejected: "rejected",
53
+ };
54
+ export const SearchContactsOutreachStatus = {
55
+ None: "none",
56
+ ConnectionSent: "connection_sent",
57
+ Connected: "connected",
58
+ DmSent: "dm_sent",
59
+ FollowedUp: "followed_up",
60
+ Replied: "replied",
61
+ InConversation: "in_conversation",
62
+ MeetingBooked: "meeting_booked",
63
+ Converted: "converted",
64
+ NotInterested: "not_interested",
65
+ };
66
+ export const DoNotContact = {
67
+ True: "true",
68
+ False: "false",
69
+ };
70
+ export const HasProfileData = {
71
+ True: "true",
72
+ False: "false",
73
+ };
10
74
  /**
11
75
  * Promote to new stage (forward-only, except rejected)
12
76
  */
@@ -148,45 +212,471 @@ export const AddCampaignContactsLifecycleStage = {
148
212
  Approved: "approved",
149
213
  Rejected: "rejected",
150
214
  };
151
- export const QueryParamStatus = {
152
- Draft: "draft",
153
- Scheduled: "scheduled",
154
- Sending: "sending",
155
- Sent: "sent",
156
- Failed: "failed",
157
- Cancelled: "cancelled",
158
- };
159
- export const MessageStatus = {
160
- Draft: "draft",
161
- Scheduled: "scheduled",
162
- Sending: "sending",
163
- Sent: "sent",
164
- Failed: "failed",
165
- Cancelled: "cancelled",
166
- };
167
- /**
168
- * Default 'draft'
169
- */
170
- export const CreateStatusRequest = {
171
- Draft: "draft",
172
- Scheduled: "scheduled",
173
- };
174
- export const ScheduledMessageStatus = {
175
- Draft: "draft",
176
- Scheduled: "scheduled",
177
- Sending: "sending",
178
- Sent: "sent",
179
- Failed: "failed",
180
- Cancelled: "cancelled",
181
- };
182
- /**
183
- * Action to perform
184
- */
185
- export const UpdateScheduleAction = {
186
- Pause: "pause",
187
- Resume: "resume",
188
- Delete: "delete",
189
- };
215
+ /** @internal */
216
+ export const UnarchiveRequest$outboundSchema = z.object({
217
+ conversationUrn: z.string(),
218
+ });
219
+ export function unarchiveRequestToJSON(unarchiveRequest) {
220
+ return JSON.stringify(UnarchiveRequest$outboundSchema.parse(unarchiveRequest));
221
+ }
222
+ /** @internal */
223
+ export const UnarchiveResponse$inboundSchema = z.object({
224
+ success: types.literal(true),
225
+ creditsUsed: types.number(),
226
+ retryAfter: types.number(),
227
+ });
228
+ export function unarchiveResponseFromJSON(jsonString) {
229
+ return safeParse(jsonString, (x) => UnarchiveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnarchiveResponse' from JSON`);
230
+ }
231
+ /** @internal */
232
+ export const ListArchivedRequest$outboundSchema = z.object({
233
+ nextCursor: z.optional(z.string()),
234
+ });
235
+ export function listArchivedRequestToJSON(listArchivedRequest) {
236
+ return JSON.stringify(ListArchivedRequest$outboundSchema.parse(listArchivedRequest));
237
+ }
238
+ /** @internal */
239
+ export const ListArchivedParticipant$inboundSchema = z.object({
240
+ profileUrn: types.string(),
241
+ firstName: types.string(),
242
+ lastName: types.string(),
243
+ profileUrl: types.nullable(types.string()),
244
+ headline: types.nullable(types.string()),
245
+ profilePicture: types.nullable(types.string()),
246
+ publicIdentifier: types.nullable(types.string()),
247
+ });
248
+ export function listArchivedParticipantFromJSON(jsonString) {
249
+ return safeParse(jsonString, (x) => ListArchivedParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedParticipant' from JSON`);
250
+ }
251
+ /** @internal */
252
+ export const ListArchivedLastMessage$inboundSchema = z.object({
253
+ text: types.nullable(types.string()),
254
+ deliveredAt: types.number(),
255
+ senderProfileUrn: types.string(),
256
+ });
257
+ export function listArchivedLastMessageFromJSON(jsonString) {
258
+ return safeParse(jsonString, (x) => ListArchivedLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedLastMessage' from JSON`);
259
+ }
260
+ /** @internal */
261
+ export const ListArchivedConversation$inboundSchema = z.object({
262
+ conversationUrn: types.string(),
263
+ conversationUrl: types.string(),
264
+ lastActivityAt: types.number(),
265
+ createdAt: types.number(),
266
+ read: types.boolean(),
267
+ unreadCount: types.number(),
268
+ groupChat: types.boolean(),
269
+ participants: z.array(z.lazy(() => ListArchivedParticipant$inboundSchema)),
270
+ lastMessage: types.nullable(z.lazy(() => ListArchivedLastMessage$inboundSchema)),
271
+ });
272
+ export function listArchivedConversationFromJSON(jsonString) {
273
+ return safeParse(jsonString, (x) => ListArchivedConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversation' from JSON`);
274
+ }
275
+ /** @internal */
276
+ export const ListArchivedResponse$inboundSchema = z.object({
277
+ success: types.literal(true),
278
+ conversations: z.array(z.lazy(() => ListArchivedConversation$inboundSchema)),
279
+ nextCursor: types.nullable(types.string()),
280
+ creditsUsed: types.number(),
281
+ retryAfter: types.number(),
282
+ });
283
+ export function listArchivedResponseFromJSON(jsonString) {
284
+ return safeParse(jsonString, (x) => ListArchivedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedResponse' from JSON`);
285
+ }
286
+ /** @internal */
287
+ export const ReactRequest$outboundSchema = z.object({
288
+ messageUrn: z.string(),
289
+ emoji: z.string(),
290
+ conversationUrn: z.string(),
291
+ });
292
+ export function reactRequestToJSON(reactRequest) {
293
+ return JSON.stringify(ReactRequest$outboundSchema.parse(reactRequest));
294
+ }
295
+ /** @internal */
296
+ export const ReactResponse$inboundSchema = z.object({
297
+ success: types.literal(true),
298
+ creditsUsed: types.number(),
299
+ retryAfter: types.number(),
300
+ });
301
+ export function reactResponseFromJSON(jsonString) {
302
+ return safeParse(jsonString, (x) => ReactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReactResponse' from JSON`);
303
+ }
304
+ /** @internal */
305
+ export const UnreactRequest$outboundSchema = z.object({
306
+ messageUrn: z.string(),
307
+ emoji: z.string(),
308
+ conversationUrn: z.string(),
309
+ });
310
+ export function unreactRequestToJSON(unreactRequest) {
311
+ return JSON.stringify(UnreactRequest$outboundSchema.parse(unreactRequest));
312
+ }
313
+ /** @internal */
314
+ export const UnreactResponse$inboundSchema = z.object({
315
+ success: types.literal(true),
316
+ creditsUsed: types.number(),
317
+ retryAfter: types.number(),
318
+ });
319
+ export function unreactResponseFromJSON(jsonString) {
320
+ return safeParse(jsonString, (x) => UnreactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnreactResponse' from JSON`);
321
+ }
322
+ /** @internal */
323
+ export const SendTypingIndicatorRequest$outboundSchema = z.object({
324
+ conversationUrn: z.string(),
325
+ });
326
+ export function sendTypingIndicatorRequestToJSON(sendTypingIndicatorRequest) {
327
+ return JSON.stringify(SendTypingIndicatorRequest$outboundSchema.parse(sendTypingIndicatorRequest));
328
+ }
329
+ /** @internal */
330
+ export const SendTypingIndicatorResponse$inboundSchema = z.object({
331
+ success: types.literal(true),
332
+ creditsUsed: types.number(),
333
+ retryAfter: types.number(),
334
+ });
335
+ export function sendTypingIndicatorResponseFromJSON(jsonString) {
336
+ return safeParse(jsonString, (x) => SendTypingIndicatorResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendTypingIndicatorResponse' from JSON`);
337
+ }
338
+ /** @internal */
339
+ export const GetUnreadCountResponse$inboundSchema = z.object({
340
+ success: types.literal(true),
341
+ unreadCount: types.number(),
342
+ creditsUsed: types.number(),
343
+ retryAfter: types.number(),
344
+ });
345
+ export function getUnreadCountResponseFromJSON(jsonString) {
346
+ return safeParse(jsonString, (x) => GetUnreadCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUnreadCountResponse' from JSON`);
347
+ }
348
+ /** @internal */
349
+ export const GetConversationSummaryRequest$outboundSchema = z.object({
350
+ profile: z.string(),
351
+ });
352
+ export function getConversationSummaryRequestToJSON(getConversationSummaryRequest) {
353
+ return JSON.stringify(GetConversationSummaryRequest$outboundSchema.parse(getConversationSummaryRequest));
354
+ }
355
+ /** @internal */
356
+ export const GetConversationSummaryResponse$inboundSchema = z.object({
357
+ success: types.literal(true),
358
+ found: types.boolean(),
359
+ contactId: types.optional(types.string()),
360
+ summary: types.nullable(types.string()),
361
+ summarizedAt: z.optional(z.nullable(types.string())),
362
+ messageCount: z.optional(z.nullable(types.number())),
363
+ conversationUpdatedAt: z.optional(z.nullable(types.string())),
364
+ creditsUsed: types.number(),
365
+ retryAfter: types.number(),
366
+ });
367
+ export function getConversationSummaryResponseFromJSON(jsonString) {
368
+ return safeParse(jsonString, (x) => GetConversationSummaryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationSummaryResponse' from JSON`);
369
+ }
370
+ /** @internal */
371
+ export const SaveConversationSummaryRequest$outboundSchema = z.object({
372
+ profile: z.string(),
373
+ summary: z.string(),
374
+ });
375
+ export function saveConversationSummaryRequestToJSON(saveConversationSummaryRequest) {
376
+ return JSON.stringify(SaveConversationSummaryRequest$outboundSchema.parse(saveConversationSummaryRequest));
377
+ }
378
+ /** @internal */
379
+ export const SaveConversationSummaryResponse$inboundSchema = z.object({
380
+ success: types.literal(true),
381
+ contactId: types.string(),
382
+ summarizedAt: types.string(),
383
+ creditsUsed: types.number(),
384
+ retryAfter: types.number(),
385
+ });
386
+ export function saveConversationSummaryResponseFromJSON(jsonString) {
387
+ return safeParse(jsonString, (x) => SaveConversationSummaryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SaveConversationSummaryResponse' from JSON`);
388
+ }
389
+ /** @internal */
390
+ export const FilterRequest$outboundSchema = z.object({
391
+ campaignSlug: z.string(),
392
+ actionSlugs: z.string(),
393
+ });
394
+ export function filterRequestToJSON(filterRequest) {
395
+ return JSON.stringify(FilterRequest$outboundSchema.parse(filterRequest));
396
+ }
397
+ /** @internal */
398
+ export const CheckedSlug$inboundSchema = z
399
+ .object({
400
+ actionSlug: types.string(),
401
+ completed: types.boolean(),
402
+ });
403
+ export function checkedSlugFromJSON(jsonString) {
404
+ return safeParse(jsonString, (x) => CheckedSlug$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CheckedSlug' from JSON`);
405
+ }
406
+ /** @internal */
407
+ export const FilterResponse$inboundSchema = z.object({
408
+ filtered: types.boolean(),
409
+ checkedSlugs: z.array(z.lazy(() => CheckedSlug$inboundSchema)),
410
+ creditsUsed: types.number(),
411
+ retryAfter: types.number(),
412
+ });
413
+ export function filterResponseFromJSON(jsonString) {
414
+ return safeParse(jsonString, (x) => FilterResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterResponse' from JSON`);
415
+ }
416
+ /** @internal */
417
+ export const GetStatusRequestBody$outboundSchema = z.object({
418
+ profiles: z.array(z.string()),
419
+ });
420
+ export function getStatusRequestBodyToJSON(getStatusRequestBody) {
421
+ return JSON.stringify(GetStatusRequestBody$outboundSchema.parse(getStatusRequestBody));
422
+ }
423
+ /** @internal */
424
+ export const GetStatusRequest$outboundSchema = z.object({
425
+ campaignSlug: z.string(),
426
+ body: z.lazy(() => GetStatusRequestBody$outboundSchema),
427
+ });
428
+ export function getStatusRequestToJSON(getStatusRequest) {
429
+ return JSON.stringify(GetStatusRequest$outboundSchema.parse(getStatusRequest));
430
+ }
431
+ /** @internal */
432
+ export const GetStatusProfile$inboundSchema = z.object({
433
+ profile: types.string(),
434
+ message: types.boolean(),
435
+ reply: types.boolean(),
436
+ like: types.boolean(),
437
+ visit: types.boolean(),
438
+ connect: types.boolean(),
439
+ });
440
+ export function getStatusProfileFromJSON(jsonString) {
441
+ return safeParse(jsonString, (x) => GetStatusProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStatusProfile' from JSON`);
442
+ }
443
+ /** @internal */
444
+ export const GetStatusResponse$inboundSchema = z.object({
445
+ success: types.literal(true),
446
+ profiles: z.array(z.lazy(() => GetStatusProfile$inboundSchema)),
447
+ creditsUsed: types.number(),
448
+ retryAfter: types.number(),
449
+ });
450
+ export function getStatusResponseFromJSON(jsonString) {
451
+ return safeParse(jsonString, (x) => GetStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStatusResponse' from JSON`);
452
+ }
453
+ /** @internal */
454
+ export const SyncAction$outboundSchema = z
455
+ .enum(SyncAction);
456
+ /** @internal */
457
+ export const SyncProfile$outboundSchema = z.object({
458
+ profile: z.string(),
459
+ actions: z.array(SyncAction$outboundSchema),
460
+ });
461
+ export function syncProfileToJSON(syncProfile) {
462
+ return JSON.stringify(SyncProfile$outboundSchema.parse(syncProfile));
463
+ }
464
+ /** @internal */
465
+ export const SyncRequestBody$outboundSchema = z.object({
466
+ profiles: z.array(z.lazy(() => SyncProfile$outboundSchema)),
467
+ });
468
+ export function syncRequestBodyToJSON(syncRequestBody) {
469
+ return JSON.stringify(SyncRequestBody$outboundSchema.parse(syncRequestBody));
470
+ }
471
+ /** @internal */
472
+ export const SyncRequest$outboundSchema = z.object({
473
+ campaignSlug: z.string(),
474
+ body: z.lazy(() => SyncRequestBody$outboundSchema),
475
+ });
476
+ export function syncRequestToJSON(syncRequest) {
477
+ return JSON.stringify(SyncRequest$outboundSchema.parse(syncRequest));
478
+ }
479
+ /** @internal */
480
+ export const Synced$inboundSchema = z.object({
481
+ profile: types.string(),
482
+ actions: z.record(z.string(), types.boolean()),
483
+ });
484
+ export function syncedFromJSON(jsonString) {
485
+ return safeParse(jsonString, (x) => Synced$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Synced' from JSON`);
486
+ }
487
+ /** @internal */
488
+ export const SyncResponse$inboundSchema = z.object({
489
+ success: types.literal(true),
490
+ synced: z.array(z.lazy(() => Synced$inboundSchema)),
491
+ creditsUsed: types.number(),
492
+ retryAfter: types.number(),
493
+ });
494
+ export function syncResponseFromJSON(jsonString) {
495
+ return safeParse(jsonString, (x) => SyncResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SyncResponse' from JSON`);
496
+ }
497
+ /** @internal */
498
+ export const GetCampaignStatsRequest$outboundSchema = z.object({
499
+ campaignSlug: z.string(),
500
+ });
501
+ export function getCampaignStatsRequestToJSON(getCampaignStatsRequest) {
502
+ return JSON.stringify(GetCampaignStatsRequest$outboundSchema.parse(getCampaignStatsRequest));
503
+ }
504
+ /** @internal */
505
+ export const GetCampaignStatsResponse$inboundSchema = z.object({
506
+ success: types.literal(true),
507
+ stats: z.record(z.string(), types.number()),
508
+ totalProfiles: types.number(),
509
+ creditsUsed: types.number(),
510
+ retryAfter: types.number(),
511
+ });
512
+ export function getCampaignStatsResponseFromJSON(jsonString) {
513
+ return safeParse(jsonString, (x) => GetCampaignStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStatsResponse' from JSON`);
514
+ }
515
+ /** @internal */
516
+ export const GlobalActivitiesRequest$outboundSchema = z.object({
517
+ type: z.optional(z.string()),
518
+ campaignId: z.optional(z.string()),
519
+ from: z.optional(z.string()),
520
+ to: z.optional(z.string()),
521
+ limit: z._default(z.int(), 50),
522
+ offset: z._default(z.int(), 0),
523
+ });
524
+ export function globalActivitiesRequestToJSON(globalActivitiesRequest) {
525
+ return JSON.stringify(GlobalActivitiesRequest$outboundSchema.parse(globalActivitiesRequest));
526
+ }
527
+ /** @internal */
528
+ export const GlobalActivitiesActivity$inboundSchema = z.object({
529
+ id: types.string(),
530
+ type: types.string(),
531
+ content: types.nullable(types.string()),
532
+ metadata: types.nullable(z.any()),
533
+ success: types.nullable(types.boolean()),
534
+ error: types.nullable(types.string()),
535
+ createdAt: types.string(),
536
+ contactId: types.string(),
537
+ contactName: types.nullable(types.string()),
538
+ contactLinkedinUrl: types.nullable(types.string()),
539
+ });
540
+ export function globalActivitiesActivityFromJSON(jsonString) {
541
+ return safeParse(jsonString, (x) => GlobalActivitiesActivity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GlobalActivitiesActivity' from JSON`);
542
+ }
543
+ /** @internal */
544
+ export const GlobalActivitiesPagination$inboundSchema = z.object({
545
+ limit: types.number(),
546
+ offset: types.number(),
547
+ total: types.number(),
548
+ });
549
+ export function globalActivitiesPaginationFromJSON(jsonString) {
550
+ return safeParse(jsonString, (x) => GlobalActivitiesPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GlobalActivitiesPagination' from JSON`);
551
+ }
552
+ /** @internal */
553
+ export const GlobalActivitiesResponse$inboundSchema = z.object({
554
+ success: types.literal(true),
555
+ activities: z.array(z.lazy(() => GlobalActivitiesActivity$inboundSchema)),
556
+ pagination: z.lazy(() => GlobalActivitiesPagination$inboundSchema),
557
+ creditsUsed: types.number(),
558
+ retryAfter: types.number(),
559
+ });
560
+ export function globalActivitiesResponseFromJSON(jsonString) {
561
+ return safeParse(jsonString, (x) => GlobalActivitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GlobalActivitiesResponse' from JSON`);
562
+ }
563
+ /** @internal */
564
+ export const UpsertSource$outboundSchema = z
565
+ .enum(UpsertSource);
566
+ /** @internal */
567
+ export const UpsertLifecycleStage$outboundSchema = z.enum(UpsertLifecycleStage);
568
+ /** @internal */
569
+ export const UpsertContactRequest$outboundSchema = z.object({
570
+ linkedinUrl: z.string(),
571
+ profileUrn: z.optional(z.nullable(z.string())),
572
+ publicIdentifier: z.optional(z.nullable(z.string())),
573
+ name: z.string(),
574
+ source: z._default(UpsertSource$outboundSchema, "manual_import"),
575
+ sourceAngle: z.optional(z.string()),
576
+ lifecycleStage: z.optional(UpsertLifecycleStage$outboundSchema),
577
+ hotScore: z.optional(z.int()),
578
+ qualificationNotes: z.optional(z.string()),
579
+ notes: z.optional(z.string()),
580
+ });
581
+ export function upsertContactRequestToJSON(upsertContactRequest) {
582
+ return JSON.stringify(UpsertContactRequest$outboundSchema.parse(upsertContactRequest));
583
+ }
584
+ /** @internal */
585
+ export const UpsertRequest$outboundSchema = z.object({
586
+ contacts: z.array(z.lazy(() => UpsertContactRequest$outboundSchema)),
587
+ });
588
+ export function upsertRequestToJSON(upsertRequest) {
589
+ return JSON.stringify(UpsertRequest$outboundSchema.parse(upsertRequest));
590
+ }
591
+ /** @internal */
592
+ export const UpsertResults$inboundSchema = z.object({
593
+ created: types.number(),
594
+ updated: types.number(),
595
+ skipped: types.number(),
596
+ errors: z.array(types.string()),
597
+ });
598
+ export function upsertResultsFromJSON(jsonString) {
599
+ return safeParse(jsonString, (x) => UpsertResults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertResults' from JSON`);
600
+ }
601
+ /** @internal */
602
+ export const UpsertContactResponse$inboundSchema = z.object({
603
+ id: types.string(),
604
+ linkedinUrl: types.string(),
605
+ profileUrn: types.nullable(types.string()),
606
+ publicIdentifier: types.nullable(types.string()),
607
+ name: types.string(),
608
+ lifecycleStage: types.string(),
609
+ hotScore: types.number(),
610
+ qualificationNotes: types.nullable(types.string()),
611
+ notes: types.nullable(types.string()),
612
+ stageChangedAt: types.nullable(types.string()),
613
+ profileData: types.nullable(z.any()),
614
+ profileUpdatedAt: types.nullable(types.string()),
615
+ conversationData: types.nullable(z.any()),
616
+ conversationUpdatedAt: types.nullable(types.string()),
617
+ outreachStatus: types.string(),
618
+ lastContactedAt: types.nullable(types.string()),
619
+ lastRepliedAt: types.nullable(types.string()),
620
+ nextFollowUpAt: types.nullable(types.string()),
621
+ doNotContact: types.boolean(),
622
+ tags: z.array(types.string()),
623
+ createdAt: types.string(),
624
+ updatedAt: types.string(),
625
+ });
626
+ export function upsertContactResponseFromJSON(jsonString) {
627
+ return safeParse(jsonString, (x) => UpsertContactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertContactResponse' from JSON`);
628
+ }
629
+ /** @internal */
630
+ export const UpsertResponse$inboundSchema = z.object({
631
+ success: types.literal(true),
632
+ results: z.lazy(() => UpsertResults$inboundSchema),
633
+ contacts: z.array(z.lazy(() => UpsertContactResponse$inboundSchema)),
634
+ creditsUsed: types.number(),
635
+ retryAfter: types.number(),
636
+ });
637
+ export function upsertResponseFromJSON(jsonString) {
638
+ return safeParse(jsonString, (x) => UpsertResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertResponse' from JSON`);
639
+ }
640
+ /** @internal */
641
+ export const SearchContactsLifecycleStage$outboundSchema = z.enum(SearchContactsLifecycleStage);
642
+ /** @internal */
643
+ export const SearchContactsOutreachStatus$outboundSchema = z.enum(SearchContactsOutreachStatus);
644
+ /** @internal */
645
+ export const DoNotContact$outboundSchema = z
646
+ .enum(DoNotContact);
647
+ /** @internal */
648
+ export const HasProfileData$outboundSchema = z.enum(HasProfileData);
649
+ /** @internal */
650
+ export const SearchContactsRequest$outboundSchema = z.object({
651
+ linkedinUrl: z.optional(z.string()),
652
+ name: z.optional(z.string()),
653
+ lifecycleStage: z.optional(SearchContactsLifecycleStage$outboundSchema),
654
+ sortBy: z.optional(z.string()),
655
+ minHotScore: z.optional(z.int()),
656
+ outreachStatus: z.optional(SearchContactsOutreachStatus$outboundSchema),
657
+ tag: z.optional(z.string()),
658
+ followUpBefore: z.optional(z.string()),
659
+ doNotContact: z.optional(DoNotContact$outboundSchema),
660
+ hasProfileData: z.optional(HasProfileData$outboundSchema),
661
+ campaignId: z.optional(z.string()),
662
+ limit: z._default(z.int(), 50),
663
+ offset: z._default(z.int(), 0),
664
+ });
665
+ export function searchContactsRequestToJSON(searchContactsRequest) {
666
+ return JSON.stringify(SearchContactsRequest$outboundSchema.parse(searchContactsRequest));
667
+ }
668
+ /** @internal */
669
+ export const SearchContactsCampaign$inboundSchema = z.object({
670
+ campaignId: types.string(),
671
+ campaignName: types.string(),
672
+ campaignStatus: types.string(),
673
+ source: types.string(),
674
+ sourceAngle: types.nullable(types.string()),
675
+ addedAt: types.string(),
676
+ });
677
+ export function searchContactsCampaignFromJSON(jsonString) {
678
+ return safeParse(jsonString, (x) => SearchContactsCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchContactsCampaign' from JSON`);
679
+ }
190
680
  /** @internal */
191
681
  export const SearchContactsContact$inboundSchema = z.object({
192
682
  id: types.string(),
@@ -211,7 +701,7 @@ export const SearchContactsContact$inboundSchema = z.object({
211
701
  tags: z.array(types.string()),
212
702
  createdAt: types.string(),
213
703
  updatedAt: types.string(),
214
- campaigns: z.array(SearchContactsCampaign$inboundSchema),
704
+ campaigns: z.array(z.lazy(() => SearchContactsCampaign$inboundSchema)),
215
705
  });
216
706
  export function searchContactsContactFromJSON(jsonString) {
217
707
  return safeParse(jsonString, (x) => SearchContactsContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchContactsContact' from JSON`);
@@ -716,6 +1206,7 @@ export function deleteAgentStateRequestToJSON(deleteAgentStateRequest) {
716
1206
  /** @internal */
717
1207
  export const DeleteAgentStateResponse$inboundSchema = z.object({
718
1208
  success: types.literal(true),
1209
+ key: types.string(),
719
1210
  creditsUsed: types.number(),
720
1211
  retryAfter: types.number(),
721
1212
  });
@@ -1228,302 +1719,4 @@ export const GetByUrlCampaign$inboundSchema = z.object({
1228
1719
  export function getByUrlCampaignFromJSON(jsonString) {
1229
1720
  return safeParse(jsonString, (x) => GetByUrlCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlCampaign' from JSON`);
1230
1721
  }
1231
- /** @internal */
1232
- export const GetByUrlContact$inboundSchema = z.object({
1233
- id: types.string(),
1234
- linkedinUrl: types.string(),
1235
- profileUrn: types.nullable(types.string()),
1236
- publicIdentifier: types.nullable(types.string()),
1237
- name: types.string(),
1238
- lifecycleStage: types.string(),
1239
- hotScore: types.number(),
1240
- qualificationNotes: types.nullable(types.string()),
1241
- notes: types.nullable(types.string()),
1242
- stageChangedAt: types.nullable(types.string()),
1243
- profileData: types.nullable(z.any()),
1244
- profileUpdatedAt: types.nullable(types.string()),
1245
- conversationData: types.nullable(z.any()),
1246
- conversationUpdatedAt: types.nullable(types.string()),
1247
- outreachStatus: types.string(),
1248
- lastContactedAt: types.nullable(types.string()),
1249
- lastRepliedAt: types.nullable(types.string()),
1250
- nextFollowUpAt: types.nullable(types.string()),
1251
- doNotContact: types.boolean(),
1252
- tags: z.array(types.string()),
1253
- createdAt: types.string(),
1254
- updatedAt: types.string(),
1255
- activities: z.array(z.lazy(() => GetByUrlActivity$inboundSchema)),
1256
- campaigns: z.array(z.lazy(() => GetByUrlCampaign$inboundSchema)),
1257
- });
1258
- export function getByUrlContactFromJSON(jsonString) {
1259
- return safeParse(jsonString, (x) => GetByUrlContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlContact' from JSON`);
1260
- }
1261
- /** @internal */
1262
- export const GetByUrlResponse$inboundSchema = z.object({
1263
- success: types.literal(true),
1264
- contact: z.lazy(() => GetByUrlContact$inboundSchema),
1265
- creditsUsed: types.number(),
1266
- retryAfter: types.number(),
1267
- });
1268
- export function getByUrlResponseFromJSON(jsonString) {
1269
- return safeParse(jsonString, (x) => GetByUrlResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlResponse' from JSON`);
1270
- }
1271
- /** @internal */
1272
- export const QueryParamStatus$outboundSchema = z.enum(QueryParamStatus);
1273
- /** @internal */
1274
- export const ListMessagesRequest$outboundSchema = z.object({
1275
- status: z.optional(QueryParamStatus$outboundSchema),
1276
- contactId: z.optional(z.string()),
1277
- campaignSlug: z.optional(z.string()),
1278
- limit: z._default(z.int(), 50),
1279
- offset: z._default(z.int(), 0),
1280
- });
1281
- export function listMessagesRequestToJSON(listMessagesRequest) {
1282
- return JSON.stringify(ListMessagesRequest$outboundSchema.parse(listMessagesRequest));
1283
- }
1284
- /** @internal */
1285
- export const MessageStatus$inboundSchema = openEnums.inboundSchema(MessageStatus);
1286
- /** @internal */
1287
- export const ListMessagesMessage$inboundSchema = z.object({
1288
- id: types.string(),
1289
- contactId: types.string(),
1290
- contactName: z.optional(z.nullable(types.string())),
1291
- contactLinkedinUrl: z.optional(z.nullable(types.string())),
1292
- message: types.string(),
1293
- status: MessageStatus$inboundSchema,
1294
- scheduledSendAt: types.nullable(types.string()),
1295
- sentAt: types.nullable(types.string()),
1296
- campaignSlug: types.nullable(types.string()),
1297
- errorMessage: z.optional(z.nullable(types.string())),
1298
- createdAt: types.string(),
1299
- });
1300
- export function listMessagesMessageFromJSON(jsonString) {
1301
- return safeParse(jsonString, (x) => ListMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListMessagesMessage' from JSON`);
1302
- }
1303
- /** @internal */
1304
- export const ListMessagesResponse$inboundSchema = z.object({
1305
- success: types.literal(true),
1306
- messages: z.array(z.lazy(() => ListMessagesMessage$inboundSchema)),
1307
- total: types.number(),
1308
- limit: types.number(),
1309
- offset: types.number(),
1310
- creditsUsed: types.number(),
1311
- retryAfter: types.number(),
1312
- });
1313
- export function listMessagesResponseFromJSON(jsonString) {
1314
- return safeParse(jsonString, (x) => ListMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListMessagesResponse' from JSON`);
1315
- }
1316
- /** @internal */
1317
- export const CreateStatusRequest$outboundSchema = z.enum(CreateStatusRequest);
1318
- /** @internal */
1319
- export const CreateRequest$outboundSchema = z.object({
1320
- contactId: z.string(),
1321
- message: z.string(),
1322
- status: z.optional(CreateStatusRequest$outboundSchema),
1323
- scheduledSendAt: z.optional(z.string()),
1324
- campaignSlug: z.optional(z.string()),
1325
- });
1326
- export function createRequestToJSON(createRequest) {
1327
- return JSON.stringify(CreateRequest$outboundSchema.parse(createRequest));
1328
- }
1329
- /** @internal */
1330
- export const ScheduledMessageStatus$inboundSchema = openEnums.inboundSchema(ScheduledMessageStatus);
1331
- /** @internal */
1332
- export const ScheduledMessage$inboundSchema = z.object({
1333
- id: types.string(),
1334
- contactId: types.string(),
1335
- contactName: z.optional(z.nullable(types.string())),
1336
- contactLinkedinUrl: z.optional(z.nullable(types.string())),
1337
- message: types.string(),
1338
- status: ScheduledMessageStatus$inboundSchema,
1339
- scheduledSendAt: types.nullable(types.string()),
1340
- sentAt: types.nullable(types.string()),
1341
- campaignSlug: types.nullable(types.string()),
1342
- errorMessage: z.optional(z.nullable(types.string())),
1343
- createdAt: types.string(),
1344
- });
1345
- export function scheduledMessageFromJSON(jsonString) {
1346
- return safeParse(jsonString, (x) => ScheduledMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScheduledMessage' from JSON`);
1347
- }
1348
- /** @internal */
1349
- export const CreateResponse$inboundSchema = z.object({
1350
- success: types.literal(true),
1351
- scheduledMessage: z.lazy(() => ScheduledMessage$inboundSchema),
1352
- creditsUsed: types.number(),
1353
- retryAfter: types.number(),
1354
- });
1355
- export function createResponseFromJSON(jsonString) {
1356
- return safeParse(jsonString, (x) => CreateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResponse' from JSON`);
1357
- }
1358
- /** @internal */
1359
- export const BatchScheduleRequest$outboundSchema = z.object({
1360
- contactIds: z.optional(z.array(z.string())),
1361
- messageIds: z.optional(z.array(z.string())),
1362
- scheduledSendAt: z.string(),
1363
- editedMessages: z.optional(z.record(z.string(), z.string())),
1364
- });
1365
- export function batchScheduleRequestToJSON(batchScheduleRequest) {
1366
- return JSON.stringify(BatchScheduleRequest$outboundSchema.parse(batchScheduleRequest));
1367
- }
1368
- /** @internal */
1369
- export const BatchScheduleResponse$inboundSchema = z.object({
1370
- success: types.literal(true),
1371
- scheduled: types.number(),
1372
- scheduledSendAt: types.string(),
1373
- creditsUsed: types.number(),
1374
- retryAfter: types.number(),
1375
- });
1376
- export function batchScheduleResponseFromJSON(jsonString) {
1377
- return safeParse(jsonString, (x) => BatchScheduleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BatchScheduleResponse' from JSON`);
1378
- }
1379
- /** @internal */
1380
- export const CancelRequest$outboundSchema = z.object({
1381
- messageIds: z.optional(z.array(z.string())),
1382
- contactIds: z.optional(z.array(z.string())),
1383
- });
1384
- export function cancelRequestToJSON(cancelRequest) {
1385
- return JSON.stringify(CancelRequest$outboundSchema.parse(cancelRequest));
1386
- }
1387
- /** @internal */
1388
- export const CancelResponse$inboundSchema = z.object({
1389
- success: types.literal(true),
1390
- cancelled: types.number(),
1391
- creditsUsed: types.number(),
1392
- retryAfter: types.number(),
1393
- });
1394
- export function cancelResponseFromJSON(jsonString) {
1395
- return safeParse(jsonString, (x) => CancelResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelResponse' from JSON`);
1396
- }
1397
- /** @internal */
1398
- export const ListEntriesRequest$outboundSchema = z.object({
1399
- scope: z.optional(z.string()),
1400
- type: z.optional(z.string()),
1401
- });
1402
- export function listEntriesRequestToJSON(listEntriesRequest) {
1403
- return JSON.stringify(ListEntriesRequest$outboundSchema.parse(listEntriesRequest));
1404
- }
1405
- /** @internal */
1406
- export const ListEntriesEntry$inboundSchema = z.object({
1407
- id: types.string(),
1408
- type: types.string(),
1409
- label: types.nullable(types.string()),
1410
- content: types.string(),
1411
- scope: types.string(),
1412
- updatedAt: types.string(),
1413
- });
1414
- export function listEntriesEntryFromJSON(jsonString) {
1415
- return safeParse(jsonString, (x) => ListEntriesEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEntriesEntry' from JSON`);
1416
- }
1417
- /** @internal */
1418
- export const ListEntriesResponse$inboundSchema = z.object({
1419
- success: types.literal(true),
1420
- entries: z.array(z.lazy(() => ListEntriesEntry$inboundSchema)),
1421
- creditsUsed: types.number(),
1422
- retryAfter: types.number(),
1423
- });
1424
- export function listEntriesResponseFromJSON(jsonString) {
1425
- return safeParse(jsonString, (x) => ListEntriesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEntriesResponse' from JSON`);
1426
- }
1427
- /** @internal */
1428
- export const SetRequest$outboundSchema = z.object({
1429
- type: z.string(),
1430
- content: z.string(),
1431
- scope: z.optional(z.string()),
1432
- label: z.optional(z.string()),
1433
- });
1434
- export function setRequestToJSON(setRequest) {
1435
- return JSON.stringify(SetRequest$outboundSchema.parse(setRequest));
1436
- }
1437
- /** @internal */
1438
- export const SetEntry$inboundSchema = z
1439
- .object({
1440
- id: types.string(),
1441
- type: types.string(),
1442
- label: types.nullable(types.string()),
1443
- content: types.string(),
1444
- scope: types.string(),
1445
- updatedAt: types.string(),
1446
- });
1447
- export function setEntryFromJSON(jsonString) {
1448
- return safeParse(jsonString, (x) => SetEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetEntry' from JSON`);
1449
- }
1450
- /** @internal */
1451
- export const SetResponse$inboundSchema = z
1452
- .object({
1453
- success: types.literal(true),
1454
- entry: z.lazy(() => SetEntry$inboundSchema),
1455
- creditsUsed: types.number(),
1456
- retryAfter: types.number(),
1457
- });
1458
- export function setResponseFromJSON(jsonString) {
1459
- return safeParse(jsonString, (x) => SetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetResponse' from JSON`);
1460
- }
1461
- /** @internal */
1462
- export const DeleteRequest$outboundSchema = z.object({
1463
- type: z.string(),
1464
- scope: z.optional(z.string()),
1465
- });
1466
- export function deleteRequestToJSON(deleteRequest) {
1467
- return JSON.stringify(DeleteRequest$outboundSchema.parse(deleteRequest));
1468
- }
1469
- /** @internal */
1470
- export const DeleteResponse$inboundSchema = z.object({
1471
- success: types.literal(true),
1472
- creditsUsed: types.number(),
1473
- retryAfter: types.number(),
1474
- });
1475
- export function deleteResponseFromJSON(jsonString) {
1476
- return safeParse(jsonString, (x) => DeleteResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResponse' from JSON`);
1477
- }
1478
- /** @internal */
1479
- export const Schedule$inboundSchema = z
1480
- .object({
1481
- scheduleId: types.string(),
1482
- name: types.string(),
1483
- cron: types.nullable(types.string()),
1484
- isPaused: types.boolean(),
1485
- lastRun: types.nullable(types.string()),
1486
- nextRun: types.nullable(types.string()),
1487
- lastStatus: types.nullable(z.any()),
1488
- destination: types.string(),
1489
- });
1490
- export function scheduleFromJSON(jsonString) {
1491
- return safeParse(jsonString, (x) => Schedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schedule' from JSON`);
1492
- }
1493
- /** @internal */
1494
- export const ListSchedulesResponse$inboundSchema = z.object({
1495
- success: types.literal(true),
1496
- schedules: z.array(z.lazy(() => Schedule$inboundSchema)),
1497
- creditsUsed: types.number(),
1498
- retryAfter: types.number(),
1499
- });
1500
- export function listSchedulesResponseFromJSON(jsonString) {
1501
- return safeParse(jsonString, (x) => ListSchedulesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSchedulesResponse' from JSON`);
1502
- }
1503
- /** @internal */
1504
- export const UpdateScheduleAction$outboundSchema = z.enum(UpdateScheduleAction);
1505
- /** @internal */
1506
- export const UpdateScheduleRequestBody$outboundSchema = z.object({
1507
- action: UpdateScheduleAction$outboundSchema,
1508
- });
1509
- export function updateScheduleRequestBodyToJSON(updateScheduleRequestBody) {
1510
- return JSON.stringify(UpdateScheduleRequestBody$outboundSchema.parse(updateScheduleRequestBody));
1511
- }
1512
- /** @internal */
1513
- export const UpdateScheduleRequest$outboundSchema = z.object({
1514
- scheduleId: z.string(),
1515
- body: z.lazy(() => UpdateScheduleRequestBody$outboundSchema),
1516
- });
1517
- export function updateScheduleRequestToJSON(updateScheduleRequest) {
1518
- return JSON.stringify(UpdateScheduleRequest$outboundSchema.parse(updateScheduleRequest));
1519
- }
1520
- /** @internal */
1521
- export const UpdateScheduleResponse$inboundSchema = z.object({
1522
- success: types.literal(true),
1523
- creditsUsed: types.number(),
1524
- retryAfter: types.number(),
1525
- });
1526
- export function updateScheduleResponseFromJSON(jsonString) {
1527
- return safeParse(jsonString, (x) => UpdateScheduleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateScheduleResponse' from JSON`);
1528
- }
1529
- //# sourceMappingURL=update-schedule-response.js.map
1722
+ //# sourceMappingURL=get-by-url-campaign.js.map