bereach 1.4.3 → 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} +1166 -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} +454 -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 +28 -12
  163. package/esm/models/operations/search-companies-response.d.ts.map +1 -1
  164. package/esm/models/operations/search-companies-response.js +6 -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} +66 -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} +26 -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} +2493 -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 +34 -14
  268. package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts} +107 -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
@@ -7,6 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import * as openEnums from "../../types/enums.js";
8
8
  import * as types from "../../types/primitives.js";
9
9
  import { smartUnion } from "../../types/smart-union.js";
10
+ import { UpdateAccountProxyConfigResponse$inboundSchema, } from "./update-account-proxy-config-response.js";
10
11
  export const RefreshType = {
11
12
  Activity: "activity",
12
13
  UgcPost: "ugcPost",
@@ -41,6 +42,17 @@ export const GetMyPostsMediaType = {
41
42
  export const SortType = {
42
43
  RecentlyAdded: "RECENTLY_ADDED",
43
44
  };
45
+ /**
46
+ * Type of activity to fetch
47
+ */
48
+ export const QueryParamTabType = {
49
+ Comments: "COMMENTS",
50
+ Reactions: "REACTIONS",
51
+ };
52
+ export const TabTypeResponse = {
53
+ Comments: "COMMENTS",
54
+ Reactions: "REACTIONS",
55
+ };
44
56
  export const FindConversationType = {
45
57
  Audio: "audio",
46
58
  SharedPost: "shared_post",
@@ -57,72 +69,31 @@ export const GetMessagesType = {
57
69
  File: "file",
58
70
  Unknown: "unknown",
59
71
  };
60
- export const SyncAction = {
61
- Message: "message",
62
- Reply: "reply",
63
- Like: "like",
64
- Visit: "visit",
65
- Connect: "connect",
66
- };
67
- /**
68
- * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
69
- */
70
- export const UpsertSource = {
71
- Likes: "likes",
72
- Comments: "comments",
73
- Reposts: "reposts",
74
- Posts: "posts",
75
- CompanyFollowers: "company_followers",
76
- SearchResults: "search_results",
77
- ManualImport: "manual_import",
78
- EventAttendees: "event_attendees",
79
- GroupMembers: "group_members",
80
- EngagementScraping: "engagement_scraping",
81
- ContentSearch: "content_search",
82
- FollowersMining: "followers_mining",
83
- PeopleSearch: "people_search",
84
- JobSearch: "job_search",
85
- CompanySearch: "company_search",
86
- NetworkExpansion: "network_expansion",
87
- BulkVisit: "bulk_visit",
88
- };
89
- /**
90
- * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
91
- */
92
- export const UpsertLifecycleStage = {
93
- Contact: "contact",
94
- Lead: "lead",
95
- Qualified: "qualified",
96
- Approved: "approved",
97
- Rejected: "rejected",
98
- };
99
- export const SearchContactsLifecycleStage = {
100
- Contact: "contact",
101
- Lead: "lead",
102
- Qualified: "qualified",
103
- Approved: "approved",
104
- Rejected: "rejected",
105
- };
106
- export const SearchContactsOutreachStatus = {
107
- None: "none",
108
- ConnectionSent: "connection_sent",
109
- Connected: "connected",
110
- DmSent: "dm_sent",
111
- FollowedUp: "followed_up",
112
- Replied: "replied",
113
- InConversation: "in_conversation",
114
- MeetingBooked: "meeting_booked",
115
- Converted: "converted",
116
- NotInterested: "not_interested",
117
- };
118
- export const DoNotContact = {
119
- True: "true",
120
- False: "false",
121
- };
122
- export const HasProfileData = {
123
- True: "true",
124
- False: "false",
125
- };
72
+ /** @internal */
73
+ export const UpdateAccountAccount$inboundSchema = z.object({
74
+ id: types.string(),
75
+ label: types.nullable(types.string()),
76
+ isDefault: types.boolean(),
77
+ linkedinProfileId: types.nullable(types.string()),
78
+ linkedinName: types.nullable(types.string()),
79
+ headline: types.nullable(types.string()),
80
+ profilePic: types.nullable(types.string()),
81
+ isValid: types.boolean(),
82
+ proxyConfig: types.nullable(UpdateAccountProxyConfigResponse$inboundSchema),
83
+ });
84
+ export function updateAccountAccountFromJSON(jsonString) {
85
+ return safeParse(jsonString, (x) => UpdateAccountAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAccountAccount' from JSON`);
86
+ }
87
+ /** @internal */
88
+ export const UpdateAccountResponse$inboundSchema = z.object({
89
+ success: types.literal(true),
90
+ account: z.lazy(() => UpdateAccountAccount$inboundSchema),
91
+ creditsUsed: types.number(),
92
+ retryAfter: types.number(),
93
+ });
94
+ export function updateAccountResponseFromJSON(jsonString) {
95
+ return safeParse(jsonString, (x) => UpdateAccountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAccountResponse' from JSON`);
96
+ }
126
97
  /** @internal */
127
98
  export const RefreshPositionStartDate$inboundSchema = z.object({
128
99
  month: types.nullable(types.number()),
@@ -143,10 +114,10 @@ export function refreshPositionEndDateFromJSON(jsonString) {
143
114
  export const RefreshPosition$inboundSchema = z.object({
144
115
  companyName: types.nullable(types.string()),
145
116
  title: types.nullable(types.string()),
146
- description: types.nullable(types.string()),
117
+ description: z.optional(z.nullable(types.string())),
147
118
  companyUrl: types.nullable(types.string()),
148
119
  companyLogo: types.nullable(types.string()),
149
- companyDescription: types.nullable(types.string()),
120
+ companyDescription: z.optional(z.nullable(types.string())),
150
121
  startDate: types.nullable(z.lazy(() => RefreshPositionStartDate$inboundSchema)),
151
122
  endDate: types.nullable(z.lazy(() => RefreshPositionEndDate$inboundSchema)),
152
123
  isCurrent: types.boolean(),
@@ -236,9 +207,12 @@ export const RefreshResponse$inboundSchema = z.object({
236
207
  positions: types.optional(z.array(z.lazy(() => RefreshPosition$inboundSchema))),
237
208
  educations: types.optional(z.array(z.lazy(() => RefreshEducation$inboundSchema))),
238
209
  connectionsCount: types.nullable(types.number()),
210
+ followersCount: z.optional(z.nullable(types.number())),
239
211
  location: types.nullable(z.lazy(() => RefreshLocation$inboundSchema)),
240
212
  isVerified: types.nullable(types.boolean()),
241
213
  lastPosts: types.optional(z.array(z.lazy(() => RefreshLastPost$inboundSchema))),
214
+ lastComments: types.optional(z.array(z.any())),
215
+ lastReactions: types.optional(z.array(z.any())),
242
216
  refreshed: types.literal(true),
243
217
  creditsUsed: types.number(),
244
218
  retryAfter: types.number(),
@@ -358,10 +332,10 @@ export function connectionRequestWeeklyFromJSON(jsonString) {
358
332
  }
359
333
  /** @internal */
360
334
  export const ConnectionRequest$inboundSchema = z.object({
361
- daily: z.lazy(() => ConnectionRequestDaily$inboundSchema),
335
+ daily: types.nullable(z.lazy(() => ConnectionRequestDaily$inboundSchema)),
362
336
  weekly: types.nullable(z.lazy(() => ConnectionRequestWeekly$inboundSchema)),
363
337
  minIntervalSeconds: types.number(),
364
- nextResetDaily: types.date(),
338
+ nextResetDaily: types.nullable(types.date()),
365
339
  nextResetWeekly: types.nullable(types.date()),
366
340
  });
367
341
  export function connectionRequestFromJSON(jsonString) {
@@ -387,10 +361,10 @@ export function messageWeeklyFromJSON(jsonString) {
387
361
  }
388
362
  /** @internal */
389
363
  export const GetLimitsMessage$inboundSchema = z.object({
390
- daily: z.lazy(() => MessageDaily$inboundSchema),
364
+ daily: types.nullable(z.lazy(() => MessageDaily$inboundSchema)),
391
365
  weekly: types.nullable(z.lazy(() => MessageWeekly$inboundSchema)),
392
366
  minIntervalSeconds: types.number(),
393
- nextResetDaily: types.date(),
367
+ nextResetDaily: types.nullable(types.date()),
394
368
  nextResetWeekly: types.nullable(types.date()),
395
369
  });
396
370
  export function getLimitsMessageFromJSON(jsonString) {
@@ -416,10 +390,10 @@ export function profileVisitWeeklyFromJSON(jsonString) {
416
390
  }
417
391
  /** @internal */
418
392
  export const ProfileVisit$inboundSchema = z.object({
419
- daily: z.lazy(() => ProfileVisitDaily$inboundSchema),
393
+ daily: types.nullable(z.lazy(() => ProfileVisitDaily$inboundSchema)),
420
394
  weekly: types.nullable(z.lazy(() => ProfileVisitWeekly$inboundSchema)),
421
395
  minIntervalSeconds: types.number(),
422
- nextResetDaily: types.date(),
396
+ nextResetDaily: types.nullable(types.date()),
423
397
  nextResetWeekly: types.nullable(types.date()),
424
398
  });
425
399
  export function profileVisitFromJSON(jsonString) {
@@ -446,25 +420,183 @@ export function scrapingWeeklyFromJSON(jsonString) {
446
420
  /** @internal */
447
421
  export const Scraping$inboundSchema = z
448
422
  .object({
449
- daily: z.lazy(() => ScrapingDaily$inboundSchema),
423
+ daily: types.nullable(z.lazy(() => ScrapingDaily$inboundSchema)),
450
424
  weekly: types.nullable(z.lazy(() => ScrapingWeekly$inboundSchema)),
451
425
  minIntervalSeconds: types.number(),
452
- nextResetDaily: types.date(),
426
+ nextResetDaily: types.nullable(types.date()),
453
427
  nextResetWeekly: types.nullable(types.date()),
454
428
  });
455
429
  export function scrapingFromJSON(jsonString) {
456
430
  return safeParse(jsonString, (x) => Scraping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scraping' from JSON`);
457
431
  }
458
432
  /** @internal */
433
+ export const PostDaily$inboundSchema = z
434
+ .object({
435
+ current: types.number(),
436
+ limit: types.number(),
437
+ remaining: types.number(),
438
+ });
439
+ export function postDailyFromJSON(jsonString) {
440
+ return safeParse(jsonString, (x) => PostDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostDaily' from JSON`);
441
+ }
442
+ /** @internal */
443
+ export const PostWeekly$inboundSchema = z
444
+ .object({
445
+ current: types.number(),
446
+ limit: types.number(),
447
+ remaining: types.number(),
448
+ });
449
+ export function postWeeklyFromJSON(jsonString) {
450
+ return safeParse(jsonString, (x) => PostWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostWeekly' from JSON`);
451
+ }
452
+ /** @internal */
453
+ export const GetLimitsPost$inboundSchema = z.object({
454
+ daily: types.nullable(z.lazy(() => PostDaily$inboundSchema)),
455
+ weekly: types.nullable(z.lazy(() => PostWeekly$inboundSchema)),
456
+ minIntervalSeconds: types.number(),
457
+ nextResetDaily: types.nullable(types.date()),
458
+ nextResetWeekly: types.nullable(types.date()),
459
+ });
460
+ export function getLimitsPostFromJSON(jsonString) {
461
+ return safeParse(jsonString, (x) => GetLimitsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLimitsPost' from JSON`);
462
+ }
463
+ /** @internal */
464
+ export const AcceptInvitationDaily2$inboundSchema = z.object({
465
+ current: types.number(),
466
+ limit: types.number(),
467
+ remaining: types.number(),
468
+ });
469
+ export function acceptInvitationDaily2FromJSON(jsonString) {
470
+ return safeParse(jsonString, (x) => AcceptInvitationDaily2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptInvitationDaily2' from JSON`);
471
+ }
472
+ /** @internal */
473
+ export const AcceptInvitationWeekly2$inboundSchema = z.object({
474
+ current: types.number(),
475
+ limit: types.number(),
476
+ remaining: types.number(),
477
+ });
478
+ export function acceptInvitationWeekly2FromJSON(jsonString) {
479
+ return safeParse(jsonString, (x) => AcceptInvitationWeekly2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptInvitationWeekly2' from JSON`);
480
+ }
481
+ /** @internal */
482
+ export const AcceptInvitation$inboundSchema = z.object({
483
+ daily: types.nullable(z.lazy(() => AcceptInvitationDaily2$inboundSchema)),
484
+ weekly: types.nullable(z.lazy(() => AcceptInvitationWeekly2$inboundSchema)),
485
+ minIntervalSeconds: types.number(),
486
+ nextResetDaily: types.nullable(types.date()),
487
+ nextResetWeekly: types.nullable(types.date()),
488
+ });
489
+ export function acceptInvitationFromJSON(jsonString) {
490
+ return safeParse(jsonString, (x) => AcceptInvitation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptInvitation' from JSON`);
491
+ }
492
+ /** @internal */
493
+ export const CommentPostDaily$inboundSchema = z.object({
494
+ current: types.number(),
495
+ limit: types.number(),
496
+ remaining: types.number(),
497
+ });
498
+ export function commentPostDailyFromJSON(jsonString) {
499
+ return safeParse(jsonString, (x) => CommentPostDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommentPostDaily' from JSON`);
500
+ }
501
+ /** @internal */
502
+ export const CommentPostWeekly$inboundSchema = z.object({
503
+ current: types.number(),
504
+ limit: types.number(),
505
+ remaining: types.number(),
506
+ });
507
+ export function commentPostWeeklyFromJSON(jsonString) {
508
+ return safeParse(jsonString, (x) => CommentPostWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommentPostWeekly' from JSON`);
509
+ }
510
+ /** @internal */
511
+ export const CommentPost$inboundSchema = z
512
+ .object({
513
+ daily: types.nullable(z.lazy(() => CommentPostDaily$inboundSchema)),
514
+ weekly: types.nullable(z.lazy(() => CommentPostWeekly$inboundSchema)),
515
+ minIntervalSeconds: types.number(),
516
+ nextResetDaily: types.nullable(types.date()),
517
+ nextResetWeekly: types.nullable(types.date()),
518
+ });
519
+ export function commentPostFromJSON(jsonString) {
520
+ return safeParse(jsonString, (x) => CommentPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommentPost' from JSON`);
521
+ }
522
+ /** @internal */
523
+ export const ReplyCommentDaily$inboundSchema = z.object({
524
+ current: types.number(),
525
+ limit: types.number(),
526
+ remaining: types.number(),
527
+ });
528
+ export function replyCommentDailyFromJSON(jsonString) {
529
+ return safeParse(jsonString, (x) => ReplyCommentDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyCommentDaily' from JSON`);
530
+ }
531
+ /** @internal */
532
+ export const ReplyCommentWeekly$inboundSchema = z.object({
533
+ current: types.number(),
534
+ limit: types.number(),
535
+ remaining: types.number(),
536
+ });
537
+ export function replyCommentWeeklyFromJSON(jsonString) {
538
+ return safeParse(jsonString, (x) => ReplyCommentWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyCommentWeekly' from JSON`);
539
+ }
540
+ /** @internal */
541
+ export const ReplyComment$inboundSchema = z.object({
542
+ daily: types.nullable(z.lazy(() => ReplyCommentDaily$inboundSchema)),
543
+ weekly: types.nullable(z.lazy(() => ReplyCommentWeekly$inboundSchema)),
544
+ minIntervalSeconds: types.number(),
545
+ nextResetDaily: types.nullable(types.date()),
546
+ nextResetWeekly: types.nullable(types.date()),
547
+ });
548
+ export function replyCommentFromJSON(jsonString) {
549
+ return safeParse(jsonString, (x) => ReplyComment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyComment' from JSON`);
550
+ }
551
+ /** @internal */
552
+ export const ChatSearchDaily$inboundSchema = z.object({
553
+ current: types.number(),
554
+ limit: types.number(),
555
+ remaining: types.number(),
556
+ });
557
+ export function chatSearchDailyFromJSON(jsonString) {
558
+ return safeParse(jsonString, (x) => ChatSearchDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatSearchDaily' from JSON`);
559
+ }
560
+ /** @internal */
561
+ export const ChatSearchWeekly$inboundSchema = z.object({
562
+ current: types.number(),
563
+ limit: types.number(),
564
+ remaining: types.number(),
565
+ });
566
+ export function chatSearchWeeklyFromJSON(jsonString) {
567
+ return safeParse(jsonString, (x) => ChatSearchWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatSearchWeekly' from JSON`);
568
+ }
569
+ /** @internal */
570
+ export const ChatSearch$inboundSchema = z
571
+ .object({
572
+ daily: types.nullable(z.lazy(() => ChatSearchDaily$inboundSchema)),
573
+ weekly: types.nullable(z.lazy(() => ChatSearchWeekly$inboundSchema)),
574
+ minIntervalSeconds: types.number(),
575
+ nextResetDaily: types.nullable(types.date()),
576
+ nextResetWeekly: types.nullable(types.date()),
577
+ });
578
+ export function chatSearchFromJSON(jsonString) {
579
+ return safeParse(jsonString, (x) => ChatSearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatSearch' from JSON`);
580
+ }
581
+ /** @internal */
459
582
  export const Limits$inboundSchema = z.pipe(z.object({
460
583
  connection_request: z.lazy(() => ConnectionRequest$inboundSchema),
461
584
  message: z.lazy(() => GetLimitsMessage$inboundSchema),
462
585
  profile_visit: z.lazy(() => ProfileVisit$inboundSchema),
463
586
  scraping: z.lazy(() => Scraping$inboundSchema),
587
+ post: types.optional(z.lazy(() => GetLimitsPost$inboundSchema)),
588
+ accept_invitation: types.optional(z.lazy(() => AcceptInvitation$inboundSchema)),
589
+ comment_post: types.optional(z.lazy(() => CommentPost$inboundSchema)),
590
+ reply_comment: types.optional(z.lazy(() => ReplyComment$inboundSchema)),
591
+ chat_search: types.optional(z.lazy(() => ChatSearch$inboundSchema)),
464
592
  }), z.transform((v) => {
465
593
  return remap$(v, {
466
594
  "connection_request": "connectionRequest",
467
595
  "profile_visit": "profileVisit",
596
+ "accept_invitation": "acceptInvitation",
597
+ "comment_post": "commentPost",
598
+ "reply_comment": "replyComment",
599
+ "chat_search": "chatSearch",
468
600
  });
469
601
  }));
470
602
  export function limitsFromJSON(jsonString) {
@@ -482,20 +614,20 @@ export function getLimitsResponseFromJSON(jsonString) {
482
614
  return safeParse(jsonString, (x) => GetLimitsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLimitsResponse' from JSON`);
483
615
  }
484
616
  /** @internal */
485
- export const Credits$inboundSchema = z.object({
617
+ export const GetCreditsCredits$inboundSchema = z.object({
486
618
  current: types.number(),
487
619
  limit: types.nullable(types.number()),
488
620
  remaining: types.nullable(types.number()),
489
621
  percentage: types.number(),
490
622
  isUnlimited: types.boolean(),
491
623
  });
492
- export function creditsFromJSON(jsonString) {
493
- return safeParse(jsonString, (x) => Credits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Credits' from JSON`);
624
+ export function getCreditsCreditsFromJSON(jsonString) {
625
+ return safeParse(jsonString, (x) => GetCreditsCredits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCreditsCredits' from JSON`);
494
626
  }
495
627
  /** @internal */
496
628
  export const GetCreditsResponse$inboundSchema = z.object({
497
629
  success: types.literal(true),
498
- credits: z.lazy(() => Credits$inboundSchema),
630
+ credits: z.lazy(() => GetCreditsCredits$inboundSchema),
499
631
  creditsUsed: types.number(),
500
632
  retryAfter: types.number(),
501
633
  });
@@ -545,7 +677,7 @@ export const Appearances$inboundSchema = z
545
677
  count: types.number(),
546
678
  keywords: z.array(z.any()),
547
679
  companies: z.array(z.any()),
548
- raw: z.any(),
680
+ raw: types.optional(z.any()),
549
681
  });
550
682
  export function appearancesFromJSON(jsonString) {
551
683
  return safeParse(jsonString, (x) => Appearances$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Appearances' from JSON`);
@@ -648,15 +780,20 @@ export function listConnectionsRequestToJSON(listConnectionsRequest) {
648
780
  return JSON.stringify(ListConnectionsRequest$outboundSchema.parse(listConnectionsRequest));
649
781
  }
650
782
  /** @internal */
783
+ export const ConnectedAt$inboundSchema = smartUnion([types.number(), types.string()]);
784
+ export function connectedAtFromJSON(jsonString) {
785
+ return safeParse(jsonString, (x) => ConnectedAt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectedAt' from JSON`);
786
+ }
787
+ /** @internal */
651
788
  export const Connection$inboundSchema = z
652
789
  .object({
653
790
  name: types.string(),
654
791
  headline: types.nullable(types.string()),
655
792
  profileUrl: types.nullable(types.string()),
656
- imageUrl: types.nullable(types.string()),
657
- publicIdentifier: types.nullable(types.string()),
658
793
  profileUrn: types.nullable(types.string()),
659
- connectedAt: types.nullable(types.string()),
794
+ publicIdentifier: types.nullable(types.string()),
795
+ profilePicture: types.nullable(types.string()),
796
+ connectedAt: types.nullable(smartUnion([types.number(), types.string()])),
660
797
  });
661
798
  export function connectionFromJSON(jsonString) {
662
799
  return safeParse(jsonString, (x) => Connection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Connection' from JSON`);
@@ -676,6 +813,233 @@ export function listConnectionsResponseFromJSON(jsonString) {
676
813
  return safeParse(jsonString, (x) => ListConnectionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListConnectionsResponse' from JSON`);
677
814
  }
678
815
  /** @internal */
816
+ export const QueryParamTabType$outboundSchema = z.enum(QueryParamTabType);
817
+ /** @internal */
818
+ export const GetMyActivityRequest$outboundSchema = z.object({
819
+ tabType: z._default(QueryParamTabType$outboundSchema, "COMMENTS"),
820
+ companyId: z.optional(z.string()),
821
+ count: z._default(z.int(), 20),
822
+ start: z._default(z.int(), 0),
823
+ paginationToken: z.optional(z.string()),
824
+ });
825
+ export function getMyActivityRequestToJSON(getMyActivityRequest) {
826
+ return JSON.stringify(GetMyActivityRequest$outboundSchema.parse(getMyActivityRequest));
827
+ }
828
+ /** @internal */
829
+ export const TabTypeResponse$inboundSchema = openEnums.inboundSchema(TabTypeResponse);
830
+ /** @internal */
831
+ export const GetMyActivityResponse$inboundSchema = z.object({
832
+ success: types.literal(true),
833
+ actor: types.string(),
834
+ tabType: TabTypeResponse$inboundSchema,
835
+ items: z.array(z.any()),
836
+ count: types.number(),
837
+ total: types.number(),
838
+ start: types.number(),
839
+ paginationToken: types.nullable(types.string()),
840
+ creditsUsed: types.number(),
841
+ retryAfter: types.number(),
842
+ });
843
+ export function getMyActivityResponseFromJSON(jsonString) {
844
+ return safeParse(jsonString, (x) => GetMyActivityResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyActivityResponse' from JSON`);
845
+ }
846
+ /** @internal */
847
+ export const User$inboundSchema = z.object({
848
+ id: types.string(),
849
+ name: types.nullable(types.string()),
850
+ email: types.nullable(types.string()),
851
+ image: types.nullable(types.string()),
852
+ phone: types.nullable(types.string()),
853
+ createdAt: types.string(),
854
+ });
855
+ export function userFromJSON(jsonString) {
856
+ return safeParse(jsonString, (x) => User$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'User' from JSON`);
857
+ }
858
+ /** @internal */
859
+ export const GetSettingsLocation$inboundSchema = z.object({
860
+ country: types.nullable(types.string()),
861
+ city: types.nullable(types.string()),
862
+ });
863
+ export function getSettingsLocationFromJSON(jsonString) {
864
+ return safeParse(jsonString, (x) => GetSettingsLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSettingsLocation' from JSON`);
865
+ }
866
+ /** @internal */
867
+ export const Proxy$inboundSchema = z.catchall(z.object({
868
+ enabled: types.boolean(),
869
+ }), z.any());
870
+ export function proxyFromJSON(jsonString) {
871
+ return safeParse(jsonString, (x) => Proxy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Proxy' from JSON`);
872
+ }
873
+ /** @internal */
874
+ export const AnthropicKey$inboundSchema = z.object({
875
+ isSet: types.boolean(),
876
+ partial: types.nullable(types.string()),
877
+ });
878
+ export function anthropicKeyFromJSON(jsonString) {
879
+ return safeParse(jsonString, (x) => AnthropicKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicKey' from JSON`);
880
+ }
881
+ /** @internal */
882
+ export const Subscription$inboundSchema = z.object({
883
+ plan: types.string(),
884
+ tier: types.string(),
885
+ proSeatsIncluded: types.number(),
886
+ proSeatsUsed: types.number(),
887
+ status: types.nullable(types.string()),
888
+ currentPeriodEnd: types.nullable(types.string()),
889
+ hasStripe: types.boolean(),
890
+ });
891
+ export function subscriptionFromJSON(jsonString) {
892
+ return safeParse(jsonString, (x) => Subscription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Subscription' from JSON`);
893
+ }
894
+ /** @internal */
895
+ export const GetSettingsCredits$inboundSchema = z.object({
896
+ current: types.number(),
897
+ limit: types.nullable(types.number()),
898
+ isUnlimited: types.boolean(),
899
+ });
900
+ export function getSettingsCreditsFromJSON(jsonString) {
901
+ return safeParse(jsonString, (x) => GetSettingsCredits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSettingsCredits' from JSON`);
902
+ }
903
+ /** @internal */
904
+ export const LinkedinAccountProxy$inboundSchema = z.catchall(z.object({
905
+ enabled: types.boolean(),
906
+ }), z.any());
907
+ export function linkedinAccountProxyFromJSON(jsonString) {
908
+ return safeParse(jsonString, (x) => LinkedinAccountProxy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LinkedinAccountProxy' from JSON`);
909
+ }
910
+ /** @internal */
911
+ export const ApiKey$inboundSchema = z.object({
912
+ partialKey: types.string(),
913
+ createdAt: types.string(),
914
+ });
915
+ export function apiKeyFromJSON(jsonString) {
916
+ return safeParse(jsonString, (x) => ApiKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApiKey' from JSON`);
917
+ }
918
+ /** @internal */
919
+ export const LinkedinAccount$inboundSchema = z.object({
920
+ id: types.string(),
921
+ label: types.nullable(types.string()),
922
+ isDefault: types.boolean(),
923
+ linkedinName: types.nullable(types.string()),
924
+ linkedinEmail: types.nullable(types.string()),
925
+ profilePic: types.nullable(types.string()),
926
+ profileUrl: types.nullable(types.string()),
927
+ headline: types.nullable(types.string()),
928
+ isValid: types.boolean(),
929
+ isActive: types.boolean(),
930
+ validationError: types.nullable(types.string()),
931
+ accountPlan: types.nullable(types.string()),
932
+ credits: z.lazy(() => GetSettingsCredits$inboundSchema),
933
+ proxy: z.lazy(() => LinkedinAccountProxy$inboundSchema),
934
+ apiKey: types.nullable(z.lazy(() => ApiKey$inboundSchema)),
935
+ createdAt: types.string(),
936
+ });
937
+ export function linkedinAccountFromJSON(jsonString) {
938
+ return safeParse(jsonString, (x) => LinkedinAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LinkedinAccount' from JSON`);
939
+ }
940
+ /** @internal */
941
+ export const PendingInvite$inboundSchema = z.object({
942
+ id: types.string(),
943
+ email: types.nullable(types.string()),
944
+ name: types.nullable(types.string()),
945
+ code: types.string(),
946
+ maxUses: types.number(),
947
+ useCount: types.number(),
948
+ expiresAt: types.nullable(types.string()),
949
+ createdAt: types.string(),
950
+ });
951
+ export function pendingInviteFromJSON(jsonString) {
952
+ return safeParse(jsonString, (x) => PendingInvite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendingInvite' from JSON`);
953
+ }
954
+ /** @internal */
955
+ export const GetSettingsResponse$inboundSchema = z.object({
956
+ success: types.literal(true),
957
+ user: z.lazy(() => User$inboundSchema),
958
+ location: z.lazy(() => GetSettingsLocation$inboundSchema),
959
+ proxy: z.lazy(() => Proxy$inboundSchema),
960
+ anthropicKey: z.lazy(() => AnthropicKey$inboundSchema),
961
+ subscription: z.lazy(() => Subscription$inboundSchema),
962
+ linkedinAccounts: z.array(z.lazy(() => LinkedinAccount$inboundSchema)),
963
+ pendingInvites: z.array(z.lazy(() => PendingInvite$inboundSchema)),
964
+ });
965
+ export function getSettingsResponseFromJSON(jsonString) {
966
+ return safeParse(jsonString, (x) => GetSettingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSettingsResponse' from JSON`);
967
+ }
968
+ /** @internal */
969
+ export const PatchSettingsRequest$outboundSchema = z.object({
970
+ country: z.optional(z.string()),
971
+ city: z.optional(z.string()),
972
+ phone: z.optional(z.nullable(z.string())),
973
+ anthropicKey: z.optional(z.nullable(z.string())),
974
+ });
975
+ export function patchSettingsRequestToJSON(patchSettingsRequest) {
976
+ return JSON.stringify(PatchSettingsRequest$outboundSchema.parse(patchSettingsRequest));
977
+ }
978
+ /** @internal */
979
+ export const PatchSettingsResponse$inboundSchema = z.object({
980
+ success: types.literal(true),
981
+ });
982
+ export function patchSettingsResponseFromJSON(jsonString) {
983
+ return safeParse(jsonString, (x) => PatchSettingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchSettingsResponse' from JSON`);
984
+ }
985
+ /** @internal */
986
+ export const RevalidateLinkedinResponse$inboundSchema = z.object({
987
+ success: types.literal(true),
988
+ message: types.string(),
989
+ wasInvalid: types.boolean(),
990
+ });
991
+ export function revalidateLinkedinResponseFromJSON(jsonString) {
992
+ return safeParse(jsonString, (x) => RevalidateLinkedinResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RevalidateLinkedinResponse' from JSON`);
993
+ }
994
+ /** @internal */
995
+ export const GetApiTokenRequest$outboundSchema = z.object({
996
+ accountId: z.optional(z.string()),
997
+ });
998
+ export function getApiTokenRequestToJSON(getApiTokenRequest) {
999
+ return JSON.stringify(GetApiTokenRequest$outboundSchema.parse(getApiTokenRequest));
1000
+ }
1001
+ /** @internal */
1002
+ export const GetApiTokenResponse$inboundSchema = z.object({
1003
+ token: types.nullable(types.string()),
1004
+ partialKey: types.optional(types.string()),
1005
+ createdAt: types.optional(types.string()),
1006
+ accountId: types.optional(types.string()),
1007
+ });
1008
+ export function getApiTokenResponseFromJSON(jsonString) {
1009
+ return safeParse(jsonString, (x) => GetApiTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetApiTokenResponse' from JSON`);
1010
+ }
1011
+ /** @internal */
1012
+ export const CreateApiTokenRequest$outboundSchema = z.object({
1013
+ accountId: z.optional(z.string()),
1014
+ });
1015
+ export function createApiTokenRequestToJSON(createApiTokenRequest) {
1016
+ return JSON.stringify(CreateApiTokenRequest$outboundSchema.parse(createApiTokenRequest));
1017
+ }
1018
+ /** @internal */
1019
+ export const CreateApiTokenResponse$inboundSchema = z.object({
1020
+ success: types.literal(true),
1021
+ token: types.string(),
1022
+ partialKey: types.string(),
1023
+ accountId: types.string(),
1024
+ });
1025
+ export function createApiTokenResponseFromJSON(jsonString) {
1026
+ return safeParse(jsonString, (x) => CreateApiTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateApiTokenResponse' from JSON`);
1027
+ }
1028
+ /** @internal */
1029
+ export const DeleteApiTokenRequest$outboundSchema = z.object({
1030
+ accountId: z.optional(z.string()),
1031
+ });
1032
+ export function deleteApiTokenRequestToJSON(deleteApiTokenRequest) {
1033
+ return JSON.stringify(DeleteApiTokenRequest$outboundSchema.parse(deleteApiTokenRequest));
1034
+ }
1035
+ /** @internal */
1036
+ export const DeleteApiTokenResponse$inboundSchema = z.object({
1037
+ success: types.literal(true),
1038
+ });
1039
+ export function deleteApiTokenResponseFromJSON(jsonString) {
1040
+ return safeParse(jsonString, (x) => DeleteApiTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteApiTokenResponse' from JSON`);
1041
+ }
1042
+ /** @internal */
679
1043
  export const Page$inboundSchema = z.object({
680
1044
  id: types.string(),
681
1045
  universalName: types.string(),
@@ -840,6 +1204,7 @@ export function getAnalyticsResponseFromJSON(jsonString) {
840
1204
  /** @internal */
841
1205
  export const ListInboxRequest$outboundSchema = z.object({
842
1206
  nextCursor: z.optional(z.string()),
1207
+ count: z.optional(z.int()),
843
1208
  });
844
1209
  export function listInboxRequestToJSON(listInboxRequest) {
845
1210
  return JSON.stringify(ListInboxRequest$outboundSchema.parse(listInboxRequest));
@@ -1001,6 +1366,7 @@ export const FindConversationMessage$inboundSchema = z.object({
1001
1366
  senderProfileUrn: types.string(),
1002
1367
  sender: z.lazy(() => FindConversationSender$inboundSchema),
1003
1368
  attachments: z.array(z.lazy(() => FindConversationAttachment$inboundSchema)),
1369
+ isOutbound: types.boolean(),
1004
1370
  });
1005
1371
  export function findConversationMessageFromJSON(jsonString) {
1006
1372
  return safeParse(jsonString, (x) => FindConversationMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindConversationMessage' from JSON`);
@@ -1011,6 +1377,8 @@ export const FindConversationResponse$inboundSchema = z.object({
1011
1377
  found: types.boolean(),
1012
1378
  conversation: types.nullable(z.lazy(() => FindConversationConversation$inboundSchema)),
1013
1379
  messages: types.nullable(z.array(z.lazy(() => FindConversationMessage$inboundSchema))),
1380
+ prevCursor: z.optional(z.nullable(types.number())),
1381
+ userProfileUrn: types.optional(types.string()),
1014
1382
  creditsUsed: types.number(),
1015
1383
  retryAfter: types.number(),
1016
1384
  });
@@ -1063,6 +1431,7 @@ export const GetMessagesMessage$inboundSchema = z.object({
1063
1431
  senderProfileUrn: types.string(),
1064
1432
  sender: z.lazy(() => GetMessagesSender$inboundSchema),
1065
1433
  attachments: z.array(z.lazy(() => GetMessagesAttachment$inboundSchema)),
1434
+ isOutbound: types.boolean(),
1066
1435
  });
1067
1436
  export function getMessagesMessageFromJSON(jsonString) {
1068
1437
  return safeParse(jsonString, (x) => GetMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMessagesMessage' from JSON`);
@@ -1211,380 +1580,4 @@ export const ArchiveResponse$inboundSchema = z.object({
1211
1580
  export function archiveResponseFromJSON(jsonString) {
1212
1581
  return safeParse(jsonString, (x) => ArchiveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArchiveResponse' from JSON`);
1213
1582
  }
1214
- /** @internal */
1215
- export const UnarchiveRequest$outboundSchema = z.object({
1216
- conversationUrn: z.string(),
1217
- });
1218
- export function unarchiveRequestToJSON(unarchiveRequest) {
1219
- return JSON.stringify(UnarchiveRequest$outboundSchema.parse(unarchiveRequest));
1220
- }
1221
- /** @internal */
1222
- export const UnarchiveResponse$inboundSchema = z.object({
1223
- success: types.literal(true),
1224
- creditsUsed: types.number(),
1225
- retryAfter: types.number(),
1226
- });
1227
- export function unarchiveResponseFromJSON(jsonString) {
1228
- return safeParse(jsonString, (x) => UnarchiveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnarchiveResponse' from JSON`);
1229
- }
1230
- /** @internal */
1231
- export const ListArchivedRequest$outboundSchema = z.object({
1232
- nextCursor: z.optional(z.string()),
1233
- });
1234
- export function listArchivedRequestToJSON(listArchivedRequest) {
1235
- return JSON.stringify(ListArchivedRequest$outboundSchema.parse(listArchivedRequest));
1236
- }
1237
- /** @internal */
1238
- export const ListArchivedParticipant$inboundSchema = z.object({
1239
- profileUrn: types.string(),
1240
- firstName: types.string(),
1241
- lastName: types.string(),
1242
- profileUrl: types.nullable(types.string()),
1243
- headline: types.nullable(types.string()),
1244
- profilePicture: types.nullable(types.string()),
1245
- publicIdentifier: types.nullable(types.string()),
1246
- });
1247
- export function listArchivedParticipantFromJSON(jsonString) {
1248
- return safeParse(jsonString, (x) => ListArchivedParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedParticipant' from JSON`);
1249
- }
1250
- /** @internal */
1251
- export const ListArchivedLastMessage$inboundSchema = z.object({
1252
- text: types.nullable(types.string()),
1253
- deliveredAt: types.number(),
1254
- senderProfileUrn: types.string(),
1255
- });
1256
- export function listArchivedLastMessageFromJSON(jsonString) {
1257
- return safeParse(jsonString, (x) => ListArchivedLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedLastMessage' from JSON`);
1258
- }
1259
- /** @internal */
1260
- export const ListArchivedConversation$inboundSchema = z.object({
1261
- conversationUrn: types.string(),
1262
- conversationUrl: types.string(),
1263
- lastActivityAt: types.number(),
1264
- createdAt: types.number(),
1265
- read: types.boolean(),
1266
- unreadCount: types.number(),
1267
- groupChat: types.boolean(),
1268
- participants: z.array(z.lazy(() => ListArchivedParticipant$inboundSchema)),
1269
- lastMessage: types.nullable(z.lazy(() => ListArchivedLastMessage$inboundSchema)),
1270
- });
1271
- export function listArchivedConversationFromJSON(jsonString) {
1272
- return safeParse(jsonString, (x) => ListArchivedConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversation' from JSON`);
1273
- }
1274
- /** @internal */
1275
- export const ListArchivedResponse$inboundSchema = z.object({
1276
- success: types.literal(true),
1277
- conversations: z.array(z.lazy(() => ListArchivedConversation$inboundSchema)),
1278
- nextCursor: types.nullable(types.string()),
1279
- creditsUsed: types.number(),
1280
- retryAfter: types.number(),
1281
- });
1282
- export function listArchivedResponseFromJSON(jsonString) {
1283
- return safeParse(jsonString, (x) => ListArchivedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedResponse' from JSON`);
1284
- }
1285
- /** @internal */
1286
- export const ReactRequest$outboundSchema = z.object({
1287
- messageUrn: z.string(),
1288
- emoji: z.string(),
1289
- conversationUrn: z.string(),
1290
- });
1291
- export function reactRequestToJSON(reactRequest) {
1292
- return JSON.stringify(ReactRequest$outboundSchema.parse(reactRequest));
1293
- }
1294
- /** @internal */
1295
- export const ReactResponse$inboundSchema = z.object({
1296
- success: types.literal(true),
1297
- creditsUsed: types.number(),
1298
- retryAfter: types.number(),
1299
- });
1300
- export function reactResponseFromJSON(jsonString) {
1301
- return safeParse(jsonString, (x) => ReactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReactResponse' from JSON`);
1302
- }
1303
- /** @internal */
1304
- export const UnreactRequest$outboundSchema = z.object({
1305
- messageUrn: z.string(),
1306
- emoji: z.string(),
1307
- conversationUrn: z.string(),
1308
- });
1309
- export function unreactRequestToJSON(unreactRequest) {
1310
- return JSON.stringify(UnreactRequest$outboundSchema.parse(unreactRequest));
1311
- }
1312
- /** @internal */
1313
- export const UnreactResponse$inboundSchema = z.object({
1314
- success: types.literal(true),
1315
- creditsUsed: types.number(),
1316
- retryAfter: types.number(),
1317
- });
1318
- export function unreactResponseFromJSON(jsonString) {
1319
- return safeParse(jsonString, (x) => UnreactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnreactResponse' from JSON`);
1320
- }
1321
- /** @internal */
1322
- export const SendTypingIndicatorRequest$outboundSchema = z.object({
1323
- conversationUrn: z.string(),
1324
- });
1325
- export function sendTypingIndicatorRequestToJSON(sendTypingIndicatorRequest) {
1326
- return JSON.stringify(SendTypingIndicatorRequest$outboundSchema.parse(sendTypingIndicatorRequest));
1327
- }
1328
- /** @internal */
1329
- export const SendTypingIndicatorResponse$inboundSchema = z.object({
1330
- success: types.literal(true),
1331
- creditsUsed: types.number(),
1332
- retryAfter: types.number(),
1333
- });
1334
- export function sendTypingIndicatorResponseFromJSON(jsonString) {
1335
- return safeParse(jsonString, (x) => SendTypingIndicatorResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendTypingIndicatorResponse' from JSON`);
1336
- }
1337
- /** @internal */
1338
- export const GetUnreadCountResponse$inboundSchema = z.object({
1339
- success: types.literal(true),
1340
- unreadCount: types.number(),
1341
- creditsUsed: types.number(),
1342
- retryAfter: types.number(),
1343
- });
1344
- export function getUnreadCountResponseFromJSON(jsonString) {
1345
- return safeParse(jsonString, (x) => GetUnreadCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUnreadCountResponse' from JSON`);
1346
- }
1347
- /** @internal */
1348
- export const FilterRequest$outboundSchema = z.object({
1349
- campaignSlug: z.string(),
1350
- actionSlugs: z.string(),
1351
- });
1352
- export function filterRequestToJSON(filterRequest) {
1353
- return JSON.stringify(FilterRequest$outboundSchema.parse(filterRequest));
1354
- }
1355
- /** @internal */
1356
- export const CheckedSlug$inboundSchema = z
1357
- .object({
1358
- actionSlug: types.string(),
1359
- completed: types.boolean(),
1360
- });
1361
- export function checkedSlugFromJSON(jsonString) {
1362
- return safeParse(jsonString, (x) => CheckedSlug$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CheckedSlug' from JSON`);
1363
- }
1364
- /** @internal */
1365
- export const FilterResponse$inboundSchema = z.object({
1366
- filtered: types.boolean(),
1367
- checkedSlugs: z.array(z.lazy(() => CheckedSlug$inboundSchema)),
1368
- creditsUsed: types.number(),
1369
- retryAfter: types.number(),
1370
- });
1371
- export function filterResponseFromJSON(jsonString) {
1372
- return safeParse(jsonString, (x) => FilterResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterResponse' from JSON`);
1373
- }
1374
- /** @internal */
1375
- export const GetStatusRequestBody$outboundSchema = z.object({
1376
- profiles: z.array(z.string()),
1377
- });
1378
- export function getStatusRequestBodyToJSON(getStatusRequestBody) {
1379
- return JSON.stringify(GetStatusRequestBody$outboundSchema.parse(getStatusRequestBody));
1380
- }
1381
- /** @internal */
1382
- export const GetStatusRequest$outboundSchema = z.object({
1383
- campaignSlug: z.string(),
1384
- body: z.lazy(() => GetStatusRequestBody$outboundSchema),
1385
- });
1386
- export function getStatusRequestToJSON(getStatusRequest) {
1387
- return JSON.stringify(GetStatusRequest$outboundSchema.parse(getStatusRequest));
1388
- }
1389
- /** @internal */
1390
- export const GetStatusProfile$inboundSchema = z.object({
1391
- profile: types.string(),
1392
- message: types.boolean(),
1393
- reply: types.boolean(),
1394
- like: types.boolean(),
1395
- visit: types.boolean(),
1396
- connect: types.boolean(),
1397
- });
1398
- export function getStatusProfileFromJSON(jsonString) {
1399
- return safeParse(jsonString, (x) => GetStatusProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStatusProfile' from JSON`);
1400
- }
1401
- /** @internal */
1402
- export const GetStatusResponse$inboundSchema = z.object({
1403
- success: types.literal(true),
1404
- profiles: z.array(z.lazy(() => GetStatusProfile$inboundSchema)),
1405
- creditsUsed: types.number(),
1406
- retryAfter: types.number(),
1407
- });
1408
- export function getStatusResponseFromJSON(jsonString) {
1409
- return safeParse(jsonString, (x) => GetStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStatusResponse' from JSON`);
1410
- }
1411
- /** @internal */
1412
- export const SyncAction$outboundSchema = z
1413
- .enum(SyncAction);
1414
- /** @internal */
1415
- export const SyncProfile$outboundSchema = z.object({
1416
- profile: z.string(),
1417
- actions: z.array(SyncAction$outboundSchema),
1418
- });
1419
- export function syncProfileToJSON(syncProfile) {
1420
- return JSON.stringify(SyncProfile$outboundSchema.parse(syncProfile));
1421
- }
1422
- /** @internal */
1423
- export const SyncRequestBody$outboundSchema = z.object({
1424
- profiles: z.array(z.lazy(() => SyncProfile$outboundSchema)),
1425
- });
1426
- export function syncRequestBodyToJSON(syncRequestBody) {
1427
- return JSON.stringify(SyncRequestBody$outboundSchema.parse(syncRequestBody));
1428
- }
1429
- /** @internal */
1430
- export const SyncRequest$outboundSchema = z.object({
1431
- campaignSlug: z.string(),
1432
- body: z.lazy(() => SyncRequestBody$outboundSchema),
1433
- });
1434
- export function syncRequestToJSON(syncRequest) {
1435
- return JSON.stringify(SyncRequest$outboundSchema.parse(syncRequest));
1436
- }
1437
- /** @internal */
1438
- export const Synced$inboundSchema = z.object({
1439
- profile: types.string(),
1440
- actions: z.record(z.string(), types.boolean()),
1441
- });
1442
- export function syncedFromJSON(jsonString) {
1443
- return safeParse(jsonString, (x) => Synced$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Synced' from JSON`);
1444
- }
1445
- /** @internal */
1446
- export const SyncResponse$inboundSchema = z.object({
1447
- success: types.literal(true),
1448
- synced: z.array(z.lazy(() => Synced$inboundSchema)),
1449
- creditsUsed: types.number(),
1450
- retryAfter: types.number(),
1451
- });
1452
- export function syncResponseFromJSON(jsonString) {
1453
- return safeParse(jsonString, (x) => SyncResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SyncResponse' from JSON`);
1454
- }
1455
- /** @internal */
1456
- export const GetCampaignStatsRequest$outboundSchema = z.object({
1457
- campaignSlug: z.string(),
1458
- });
1459
- export function getCampaignStatsRequestToJSON(getCampaignStatsRequest) {
1460
- return JSON.stringify(GetCampaignStatsRequest$outboundSchema.parse(getCampaignStatsRequest));
1461
- }
1462
- /** @internal */
1463
- export const GetCampaignStatsResponse$inboundSchema = z.object({
1464
- success: types.literal(true),
1465
- stats: z.record(z.string(), types.number()),
1466
- totalProfiles: types.number(),
1467
- creditsUsed: types.number(),
1468
- retryAfter: types.number(),
1469
- });
1470
- export function getCampaignStatsResponseFromJSON(jsonString) {
1471
- return safeParse(jsonString, (x) => GetCampaignStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStatsResponse' from JSON`);
1472
- }
1473
- /** @internal */
1474
- export const UpsertSource$outboundSchema = z
1475
- .enum(UpsertSource);
1476
- /** @internal */
1477
- export const UpsertLifecycleStage$outboundSchema = z.enum(UpsertLifecycleStage);
1478
- /** @internal */
1479
- export const UpsertContactRequest$outboundSchema = z.object({
1480
- linkedinUrl: z.string(),
1481
- profileUrn: z.optional(z.nullable(z.string())),
1482
- publicIdentifier: z.optional(z.nullable(z.string())),
1483
- name: z.string(),
1484
- source: z._default(UpsertSource$outboundSchema, "manual_import"),
1485
- sourceAngle: z.optional(z.string()),
1486
- lifecycleStage: z.optional(UpsertLifecycleStage$outboundSchema),
1487
- hotScore: z.optional(z.int()),
1488
- qualificationNotes: z.optional(z.string()),
1489
- notes: z.optional(z.string()),
1490
- });
1491
- export function upsertContactRequestToJSON(upsertContactRequest) {
1492
- return JSON.stringify(UpsertContactRequest$outboundSchema.parse(upsertContactRequest));
1493
- }
1494
- /** @internal */
1495
- export const UpsertRequest$outboundSchema = z.object({
1496
- contacts: z.array(z.lazy(() => UpsertContactRequest$outboundSchema)),
1497
- });
1498
- export function upsertRequestToJSON(upsertRequest) {
1499
- return JSON.stringify(UpsertRequest$outboundSchema.parse(upsertRequest));
1500
- }
1501
- /** @internal */
1502
- export const UpsertResults$inboundSchema = z.object({
1503
- created: types.number(),
1504
- updated: types.number(),
1505
- skipped: types.number(),
1506
- errors: z.array(types.string()),
1507
- });
1508
- export function upsertResultsFromJSON(jsonString) {
1509
- return safeParse(jsonString, (x) => UpsertResults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertResults' from JSON`);
1510
- }
1511
- /** @internal */
1512
- export const UpsertContactResponse$inboundSchema = z.object({
1513
- id: types.string(),
1514
- linkedinUrl: types.string(),
1515
- profileUrn: types.nullable(types.string()),
1516
- publicIdentifier: types.nullable(types.string()),
1517
- name: types.string(),
1518
- lifecycleStage: types.string(),
1519
- hotScore: types.number(),
1520
- qualificationNotes: types.nullable(types.string()),
1521
- notes: types.nullable(types.string()),
1522
- stageChangedAt: types.nullable(types.string()),
1523
- profileData: types.nullable(z.any()),
1524
- profileUpdatedAt: types.nullable(types.string()),
1525
- conversationData: types.nullable(z.any()),
1526
- conversationUpdatedAt: types.nullable(types.string()),
1527
- outreachStatus: types.string(),
1528
- lastContactedAt: types.nullable(types.string()),
1529
- lastRepliedAt: types.nullable(types.string()),
1530
- nextFollowUpAt: types.nullable(types.string()),
1531
- doNotContact: types.boolean(),
1532
- tags: z.array(types.string()),
1533
- createdAt: types.string(),
1534
- updatedAt: types.string(),
1535
- });
1536
- export function upsertContactResponseFromJSON(jsonString) {
1537
- return safeParse(jsonString, (x) => UpsertContactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertContactResponse' from JSON`);
1538
- }
1539
- /** @internal */
1540
- export const UpsertResponse$inboundSchema = z.object({
1541
- success: types.literal(true),
1542
- results: z.lazy(() => UpsertResults$inboundSchema),
1543
- contacts: z.array(z.lazy(() => UpsertContactResponse$inboundSchema)),
1544
- creditsUsed: types.number(),
1545
- retryAfter: types.number(),
1546
- });
1547
- export function upsertResponseFromJSON(jsonString) {
1548
- return safeParse(jsonString, (x) => UpsertResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertResponse' from JSON`);
1549
- }
1550
- /** @internal */
1551
- export const SearchContactsLifecycleStage$outboundSchema = z.enum(SearchContactsLifecycleStage);
1552
- /** @internal */
1553
- export const SearchContactsOutreachStatus$outboundSchema = z.enum(SearchContactsOutreachStatus);
1554
- /** @internal */
1555
- export const DoNotContact$outboundSchema = z
1556
- .enum(DoNotContact);
1557
- /** @internal */
1558
- export const HasProfileData$outboundSchema = z.enum(HasProfileData);
1559
- /** @internal */
1560
- export const SearchContactsRequest$outboundSchema = z.object({
1561
- linkedinUrl: z.optional(z.string()),
1562
- name: z.optional(z.string()),
1563
- lifecycleStage: z.optional(SearchContactsLifecycleStage$outboundSchema),
1564
- sortBy: z.optional(z.string()),
1565
- minHotScore: z.optional(z.int()),
1566
- outreachStatus: z.optional(SearchContactsOutreachStatus$outboundSchema),
1567
- tag: z.optional(z.string()),
1568
- followUpBefore: z.optional(z.string()),
1569
- doNotContact: z.optional(DoNotContact$outboundSchema),
1570
- hasProfileData: z.optional(HasProfileData$outboundSchema),
1571
- campaignId: z.optional(z.string()),
1572
- limit: z._default(z.int(), 50),
1573
- offset: z._default(z.int(), 0),
1574
- });
1575
- export function searchContactsRequestToJSON(searchContactsRequest) {
1576
- return JSON.stringify(SearchContactsRequest$outboundSchema.parse(searchContactsRequest));
1577
- }
1578
- /** @internal */
1579
- export const SearchContactsCampaign$inboundSchema = z.object({
1580
- campaignId: types.string(),
1581
- campaignName: types.string(),
1582
- campaignStatus: types.string(),
1583
- source: types.string(),
1584
- sourceAngle: types.nullable(types.string()),
1585
- addedAt: types.string(),
1586
- });
1587
- export function searchContactsCampaignFromJSON(jsonString) {
1588
- return safeParse(jsonString, (x) => SearchContactsCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchContactsCampaign' from JSON`);
1589
- }
1590
- //# sourceMappingURL=search-contacts-campaign.js.map
1583
+ //# sourceMappingURL=archive-response.js.map