bereach 0.1.1

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 (451) hide show
  1. package/FUNCTIONS.md +90 -0
  2. package/README.md +530 -0
  3. package/RUNTIMES.md +48 -0
  4. package/esm/core.d.ts +10 -0
  5. package/esm/core.d.ts.map +1 -0
  6. package/esm/core.js +13 -0
  7. package/esm/core.js.map +1 -0
  8. package/esm/funcs/campaigns-filter.d.ts +20 -0
  9. package/esm/funcs/campaigns-filter.d.ts.map +1 -0
  10. package/esm/funcs/campaigns-filter.js +106 -0
  11. package/esm/funcs/campaigns-filter.js.map +1 -0
  12. package/esm/funcs/campaigns-get-stats.d.ts +18 -0
  13. package/esm/funcs/campaigns-get-stats.d.ts.map +1 -0
  14. package/esm/funcs/campaigns-get-stats.js +101 -0
  15. package/esm/funcs/campaigns-get-stats.js.map +1 -0
  16. package/esm/funcs/campaigns-get-status.d.ts +18 -0
  17. package/esm/funcs/campaigns-get-status.d.ts.map +1 -0
  18. package/esm/funcs/campaigns-get-status.js +101 -0
  19. package/esm/funcs/campaigns-get-status.js.map +1 -0
  20. package/esm/funcs/campaigns-sync-actions.d.ts +18 -0
  21. package/esm/funcs/campaigns-sync-actions.d.ts.map +1 -0
  22. package/esm/funcs/campaigns-sync-actions.js +101 -0
  23. package/esm/funcs/campaigns-sync-actions.js.map +1 -0
  24. package/esm/funcs/linkedin-actions-accept-invitation.d.ts +18 -0
  25. package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +1 -0
  26. package/esm/funcs/linkedin-actions-accept-invitation.js +95 -0
  27. package/esm/funcs/linkedin-actions-accept-invitation.js.map +1 -0
  28. package/esm/funcs/linkedin-actions-connect-profile.d.ts +18 -0
  29. package/esm/funcs/linkedin-actions-connect-profile.d.ts.map +1 -0
  30. package/esm/funcs/linkedin-actions-connect-profile.js +95 -0
  31. package/esm/funcs/linkedin-actions-connect-profile.js.map +1 -0
  32. package/esm/funcs/linkedin-actions-like-comment.d.ts +18 -0
  33. package/esm/funcs/linkedin-actions-like-comment.d.ts.map +1 -0
  34. package/esm/funcs/linkedin-actions-like-comment.js +95 -0
  35. package/esm/funcs/linkedin-actions-like-comment.js.map +1 -0
  36. package/esm/funcs/linkedin-actions-list-invitations.d.ts +18 -0
  37. package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +1 -0
  38. package/esm/funcs/linkedin-actions-list-invitations.js +97 -0
  39. package/esm/funcs/linkedin-actions-list-invitations.js.map +1 -0
  40. package/esm/funcs/linkedin-actions-publish-post.d.ts +18 -0
  41. package/esm/funcs/linkedin-actions-publish-post.d.ts.map +1 -0
  42. package/esm/funcs/linkedin-actions-publish-post.js +95 -0
  43. package/esm/funcs/linkedin-actions-publish-post.js.map +1 -0
  44. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +18 -0
  45. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +1 -0
  46. package/esm/funcs/linkedin-actions-reply-to-comment.js +95 -0
  47. package/esm/funcs/linkedin-actions-reply-to-comment.js.map +1 -0
  48. package/esm/funcs/linkedin-actions-send-message.d.ts +18 -0
  49. package/esm/funcs/linkedin-actions-send-message.d.ts.map +1 -0
  50. package/esm/funcs/linkedin-actions-send-message.js +95 -0
  51. package/esm/funcs/linkedin-actions-send-message.js.map +1 -0
  52. package/esm/funcs/linkedin-chat-find-conversation.d.ts +25 -0
  53. package/esm/funcs/linkedin-chat-find-conversation.d.ts.map +1 -0
  54. package/esm/funcs/linkedin-chat-find-conversation.js +102 -0
  55. package/esm/funcs/linkedin-chat-find-conversation.js.map +1 -0
  56. package/esm/funcs/linkedin-chat-get-messages.d.ts +22 -0
  57. package/esm/funcs/linkedin-chat-get-messages.d.ts.map +1 -0
  58. package/esm/funcs/linkedin-chat-get-messages.js +99 -0
  59. package/esm/funcs/linkedin-chat-get-messages.js.map +1 -0
  60. package/esm/funcs/linkedin-chat-list-conversations.d.ts +18 -0
  61. package/esm/funcs/linkedin-chat-list-conversations.d.ts.map +1 -0
  62. package/esm/funcs/linkedin-chat-list-conversations.js +95 -0
  63. package/esm/funcs/linkedin-chat-list-conversations.js.map +1 -0
  64. package/esm/funcs/linkedin-chat-search-conversations.d.ts +18 -0
  65. package/esm/funcs/linkedin-chat-search-conversations.d.ts.map +1 -0
  66. package/esm/funcs/linkedin-chat-search-conversations.js +95 -0
  67. package/esm/funcs/linkedin-chat-search-conversations.js.map +1 -0
  68. package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts +18 -0
  69. package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts.map +1 -0
  70. package/esm/funcs/linkedin-scrapers-collect-comment-replies.js +95 -0
  71. package/esm/funcs/linkedin-scrapers-collect-comment-replies.js.map +1 -0
  72. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +18 -0
  73. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +1 -0
  74. package/esm/funcs/linkedin-scrapers-collect-comments.js +95 -0
  75. package/esm/funcs/linkedin-scrapers-collect-comments.js.map +1 -0
  76. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +18 -0
  77. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +1 -0
  78. package/esm/funcs/linkedin-scrapers-collect-likes.js +95 -0
  79. package/esm/funcs/linkedin-scrapers-collect-likes.js.map +1 -0
  80. package/esm/funcs/linkedin-scrapers-collect-posts.d.ts +18 -0
  81. package/esm/funcs/linkedin-scrapers-collect-posts.d.ts.map +1 -0
  82. package/esm/funcs/linkedin-scrapers-collect-posts.js +95 -0
  83. package/esm/funcs/linkedin-scrapers-collect-posts.js.map +1 -0
  84. package/esm/funcs/linkedin-scrapers-visit-company.d.ts +18 -0
  85. package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +1 -0
  86. package/esm/funcs/linkedin-scrapers-visit-company.js +95 -0
  87. package/esm/funcs/linkedin-scrapers-visit-company.js.map +1 -0
  88. package/esm/funcs/linkedin-scrapers-visit-profile.d.ts +18 -0
  89. package/esm/funcs/linkedin-scrapers-visit-profile.d.ts.map +1 -0
  90. package/esm/funcs/linkedin-scrapers-visit-profile.js +95 -0
  91. package/esm/funcs/linkedin-scrapers-visit-profile.js.map +1 -0
  92. package/esm/funcs/linkedin-search-resolve-parameters.d.ts +47 -0
  93. package/esm/funcs/linkedin-search-resolve-parameters.d.ts.map +1 -0
  94. package/esm/funcs/linkedin-search-resolve-parameters.js +124 -0
  95. package/esm/funcs/linkedin-search-resolve-parameters.js.map +1 -0
  96. package/esm/funcs/linkedin-search-search-by-url.d.ts +69 -0
  97. package/esm/funcs/linkedin-search-search-by-url.d.ts.map +1 -0
  98. package/esm/funcs/linkedin-search-search-by-url.js +146 -0
  99. package/esm/funcs/linkedin-search-search-by-url.js.map +1 -0
  100. package/esm/funcs/linkedin-search-search-companies.d.ts +75 -0
  101. package/esm/funcs/linkedin-search-search-companies.d.ts.map +1 -0
  102. package/esm/funcs/linkedin-search-search-companies.js +152 -0
  103. package/esm/funcs/linkedin-search-search-companies.js.map +1 -0
  104. package/esm/funcs/linkedin-search-search-jobs.d.ts +96 -0
  105. package/esm/funcs/linkedin-search-search-jobs.d.ts.map +1 -0
  106. package/esm/funcs/linkedin-search-search-jobs.js +173 -0
  107. package/esm/funcs/linkedin-search-search-jobs.js.map +1 -0
  108. package/esm/funcs/linkedin-search-search-people.d.ts +83 -0
  109. package/esm/funcs/linkedin-search-search-people.d.ts.map +1 -0
  110. package/esm/funcs/linkedin-search-search-people.js +160 -0
  111. package/esm/funcs/linkedin-search-search-people.js.map +1 -0
  112. package/esm/funcs/linkedin-search-search-posts.d.ts +71 -0
  113. package/esm/funcs/linkedin-search-search-posts.d.ts.map +1 -0
  114. package/esm/funcs/linkedin-search-search-posts.js +148 -0
  115. package/esm/funcs/linkedin-search-search-posts.js.map +1 -0
  116. package/esm/funcs/linkedin-search-unified-search.d.ts +55 -0
  117. package/esm/funcs/linkedin-search-unified-search.d.ts.map +1 -0
  118. package/esm/funcs/linkedin-search-unified-search.js +132 -0
  119. package/esm/funcs/linkedin-search-unified-search.js.map +1 -0
  120. package/esm/funcs/profile-get-credits.d.ts +18 -0
  121. package/esm/funcs/profile-get-credits.d.ts.map +1 -0
  122. package/esm/funcs/profile-get-credits.js +84 -0
  123. package/esm/funcs/profile-get-credits.js.map +1 -0
  124. package/esm/funcs/profile-get-followers.d.ts +18 -0
  125. package/esm/funcs/profile-get-followers.d.ts.map +1 -0
  126. package/esm/funcs/profile-get-followers.js +97 -0
  127. package/esm/funcs/profile-get-followers.js.map +1 -0
  128. package/esm/funcs/profile-get-limits.d.ts +18 -0
  129. package/esm/funcs/profile-get-limits.d.ts.map +1 -0
  130. package/esm/funcs/profile-get-limits.js +84 -0
  131. package/esm/funcs/profile-get-limits.js.map +1 -0
  132. package/esm/funcs/profile-get-linked-in-profile.d.ts +18 -0
  133. package/esm/funcs/profile-get-linked-in-profile.d.ts.map +1 -0
  134. package/esm/funcs/profile-get-linked-in-profile.js +84 -0
  135. package/esm/funcs/profile-get-linked-in-profile.js.map +1 -0
  136. package/esm/funcs/profile-get-posts.d.ts +18 -0
  137. package/esm/funcs/profile-get-posts.d.ts.map +1 -0
  138. package/esm/funcs/profile-get-posts.js +97 -0
  139. package/esm/funcs/profile-get-posts.js.map +1 -0
  140. package/esm/funcs/profile-refresh.d.ts +18 -0
  141. package/esm/funcs/profile-refresh.d.ts.map +1 -0
  142. package/esm/funcs/profile-refresh.js +84 -0
  143. package/esm/funcs/profile-refresh.js.map +1 -0
  144. package/esm/hooks/hooks.d.ts +25 -0
  145. package/esm/hooks/hooks.d.ts.map +1 -0
  146. package/esm/hooks/hooks.js +82 -0
  147. package/esm/hooks/hooks.js.map +1 -0
  148. package/esm/hooks/index.d.ts +3 -0
  149. package/esm/hooks/index.d.ts.map +1 -0
  150. package/esm/hooks/index.js +6 -0
  151. package/esm/hooks/index.js.map +1 -0
  152. package/esm/hooks/registration.d.ts +3 -0
  153. package/esm/hooks/registration.d.ts.map +1 -0
  154. package/esm/hooks/registration.js +12 -0
  155. package/esm/hooks/registration.js.map +1 -0
  156. package/esm/hooks/types.d.ts +76 -0
  157. package/esm/hooks/types.d.ts.map +1 -0
  158. package/esm/hooks/types.js +5 -0
  159. package/esm/hooks/types.js.map +1 -0
  160. package/esm/index.d.ts +6 -0
  161. package/esm/index.d.ts.map +1 -0
  162. package/esm/index.js +8 -0
  163. package/esm/index.js.map +1 -0
  164. package/esm/lib/base64.d.ts +10 -0
  165. package/esm/lib/base64.d.ts.map +1 -0
  166. package/esm/lib/base64.js +31 -0
  167. package/esm/lib/base64.js.map +1 -0
  168. package/esm/lib/config.d.ts +38 -0
  169. package/esm/lib/config.d.ts.map +1 -0
  170. package/esm/lib/config.js +34 -0
  171. package/esm/lib/config.js.map +1 -0
  172. package/esm/lib/dlv.d.ts +14 -0
  173. package/esm/lib/dlv.d.ts.map +1 -0
  174. package/esm/lib/dlv.js +46 -0
  175. package/esm/lib/dlv.js.map +1 -0
  176. package/esm/lib/encodings.d.ts +53 -0
  177. package/esm/lib/encodings.d.ts.map +1 -0
  178. package/esm/lib/encodings.js +370 -0
  179. package/esm/lib/encodings.js.map +1 -0
  180. package/esm/lib/env.d.ts +15 -0
  181. package/esm/lib/env.d.ts.map +1 -0
  182. package/esm/lib/env.js +44 -0
  183. package/esm/lib/env.js.map +1 -0
  184. package/esm/lib/files.d.ts +13 -0
  185. package/esm/lib/files.d.ts.map +1 -0
  186. package/esm/lib/files.js +73 -0
  187. package/esm/lib/files.js.map +1 -0
  188. package/esm/lib/http.d.ts +67 -0
  189. package/esm/lib/http.d.ts.map +1 -0
  190. package/esm/lib/http.js +209 -0
  191. package/esm/lib/http.js.map +1 -0
  192. package/esm/lib/is-plain-object.d.ts +2 -0
  193. package/esm/lib/is-plain-object.d.ts.map +1 -0
  194. package/esm/lib/is-plain-object.js +38 -0
  195. package/esm/lib/is-plain-object.js.map +1 -0
  196. package/esm/lib/logger.d.ts +6 -0
  197. package/esm/lib/logger.d.ts.map +1 -0
  198. package/esm/lib/logger.js +5 -0
  199. package/esm/lib/logger.js.map +1 -0
  200. package/esm/lib/matchers.d.ts +59 -0
  201. package/esm/lib/matchers.d.ts.map +1 -0
  202. package/esm/lib/matchers.js +202 -0
  203. package/esm/lib/matchers.js.map +1 -0
  204. package/esm/lib/primitives.d.ts +26 -0
  205. package/esm/lib/primitives.d.ts.map +1 -0
  206. package/esm/lib/primitives.js +103 -0
  207. package/esm/lib/primitives.js.map +1 -0
  208. package/esm/lib/retries.d.ts +38 -0
  209. package/esm/lib/retries.d.ts.map +1 -0
  210. package/esm/lib/retries.js +150 -0
  211. package/esm/lib/retries.js.map +1 -0
  212. package/esm/lib/schemas.d.ts +21 -0
  213. package/esm/lib/schemas.d.ts.map +1 -0
  214. package/esm/lib/schemas.js +57 -0
  215. package/esm/lib/schemas.js.map +1 -0
  216. package/esm/lib/sdks.d.ts +63 -0
  217. package/esm/lib/sdks.d.ts.map +1 -0
  218. package/esm/lib/sdks.js +258 -0
  219. package/esm/lib/sdks.js.map +1 -0
  220. package/esm/lib/security.d.ts +83 -0
  221. package/esm/lib/security.d.ts.map +1 -0
  222. package/esm/lib/security.js +138 -0
  223. package/esm/lib/security.js.map +1 -0
  224. package/esm/lib/url.d.ts +5 -0
  225. package/esm/lib/url.d.ts.map +1 -0
  226. package/esm/lib/url.js +22 -0
  227. package/esm/lib/url.js.map +1 -0
  228. package/esm/models/errors/bereach-default-error.d.ts +10 -0
  229. package/esm/models/errors/bereach-default-error.d.ts.map +1 -0
  230. package/esm/models/errors/bereach-default-error.js +30 -0
  231. package/esm/models/errors/bereach-default-error.js.map +1 -0
  232. package/esm/models/errors/bereach-error.d.ts +19 -0
  233. package/esm/models/errors/bereach-error.d.ts.map +1 -0
  234. package/esm/models/errors/bereach-error.js +26 -0
  235. package/esm/models/errors/bereach-error.js.map +1 -0
  236. package/esm/models/errors/collect-linked-in-likes.d.ts +211 -0
  237. package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -0
  238. package/esm/models/errors/collect-linked-in-likes.js +306 -0
  239. package/esm/models/errors/collect-linked-in-likes.js.map +1 -0
  240. package/esm/models/errors/http-client-errors.d.ts +44 -0
  241. package/esm/models/errors/http-client-errors.d.ts.map +1 -0
  242. package/esm/models/errors/http-client-errors.js +56 -0
  243. package/esm/models/errors/http-client-errors.js.map +1 -0
  244. package/esm/models/errors/index.d.ts +7 -0
  245. package/esm/models/errors/index.d.ts.map +1 -0
  246. package/esm/models/errors/index.js +10 -0
  247. package/esm/models/errors/index.js.map +1 -0
  248. package/esm/models/errors/response-validation-error.d.ts +26 -0
  249. package/esm/models/errors/response-validation-error.d.ts.map +1 -0
  250. package/esm/models/errors/response-validation-error.js +37 -0
  251. package/esm/models/errors/response-validation-error.js.map +1 -0
  252. package/esm/models/errors/sdk-validation-error.d.ts +21 -0
  253. package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
  254. package/esm/models/errors/sdk-validation-error.js +52 -0
  255. package/esm/models/errors/sdk-validation-error.js.map +1 -0
  256. package/esm/models/index.d.ts +2 -0
  257. package/esm/models/index.d.ts.map +1 -0
  258. package/esm/models/index.js +5 -0
  259. package/esm/models/index.js.map +1 -0
  260. package/esm/models/operations/get-campaign-stats-response.d.ts +1627 -0
  261. package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -0
  262. package/esm/models/operations/get-campaign-stats-response.js +1002 -0
  263. package/esm/models/operations/get-campaign-stats-response.js.map +1 -0
  264. package/esm/models/operations/index.d.ts +3 -0
  265. package/esm/models/operations/index.d.ts.map +1 -0
  266. package/esm/models/operations/index.js +6 -0
  267. package/esm/models/operations/index.js.map +1 -0
  268. package/esm/models/operations/send-linked-in-message-response.d.ts +2350 -0
  269. package/esm/models/operations/send-linked-in-message-response.d.ts.map +1 -0
  270. package/esm/models/operations/send-linked-in-message-response.js +1585 -0
  271. package/esm/models/operations/send-linked-in-message-response.js.map +1 -0
  272. package/esm/models/security.d.ts +12 -0
  273. package/esm/models/security.d.ts.map +1 -0
  274. package/esm/models/security.js +12 -0
  275. package/esm/models/security.js.map +1 -0
  276. package/esm/sdk/campaigns.d.ts +35 -0
  277. package/esm/sdk/campaigns.d.ts.map +1 -0
  278. package/esm/sdk/campaigns.js +50 -0
  279. package/esm/sdk/campaigns.js.map +1 -0
  280. package/esm/sdk/index.d.ts +2 -0
  281. package/esm/sdk/index.d.ts.map +1 -0
  282. package/esm/sdk/index.js +5 -0
  283. package/esm/sdk/index.js.map +1 -0
  284. package/esm/sdk/linkedin-actions.d.ts +54 -0
  285. package/esm/sdk/linkedin-actions.d.ts.map +1 -0
  286. package/esm/sdk/linkedin-actions.js +78 -0
  287. package/esm/sdk/linkedin-actions.js.map +1 -0
  288. package/esm/sdk/linkedin-chat.d.ts +44 -0
  289. package/esm/sdk/linkedin-chat.d.ts.map +1 -0
  290. package/esm/sdk/linkedin-chat.js +59 -0
  291. package/esm/sdk/linkedin-chat.js.map +1 -0
  292. package/esm/sdk/linkedin-scrapers.d.ts +47 -0
  293. package/esm/sdk/linkedin-scrapers.d.ts.map +1 -0
  294. package/esm/sdk/linkedin-scrapers.js +68 -0
  295. package/esm/sdk/linkedin-scrapers.js.map +1 -0
  296. package/esm/sdk/linkedin-search.d.ts +424 -0
  297. package/esm/sdk/linkedin-search.d.ts.map +1 -0
  298. package/esm/sdk/linkedin-search.js +448 -0
  299. package/esm/sdk/linkedin-search.js.map +1 -0
  300. package/esm/sdk/profile.d.ts +47 -0
  301. package/esm/sdk/profile.d.ts.map +1 -0
  302. package/esm/sdk/profile.js +68 -0
  303. package/esm/sdk/profile.js.map +1 -0
  304. package/esm/sdk/sdk.d.ts +22 -0
  305. package/esm/sdk/sdk.d.ts.map +1 -0
  306. package/esm/sdk/sdk.js +37 -0
  307. package/esm/sdk/sdk.js.map +1 -0
  308. package/esm/types/async.d.ts +23 -0
  309. package/esm/types/async.d.ts.map +1 -0
  310. package/esm/types/async.js +28 -0
  311. package/esm/types/async.js.map +1 -0
  312. package/esm/types/blobs.d.ts +4 -0
  313. package/esm/types/blobs.d.ts.map +1 -0
  314. package/esm/types/blobs.js +25 -0
  315. package/esm/types/blobs.js.map +1 -0
  316. package/esm/types/const-date-time.d.ts +3 -0
  317. package/esm/types/const-date-time.d.ts.map +1 -0
  318. package/esm/types/const-date-time.js +10 -0
  319. package/esm/types/const-date-time.js.map +1 -0
  320. package/esm/types/default-to-zero-value.d.ts +12 -0
  321. package/esm/types/default-to-zero-value.d.ts.map +1 -0
  322. package/esm/types/default-to-zero-value.js +31 -0
  323. package/esm/types/default-to-zero-value.js.map +1 -0
  324. package/esm/types/enums.d.ts +9 -0
  325. package/esm/types/enums.d.ts.map +1 -0
  326. package/esm/types/enums.js +27 -0
  327. package/esm/types/enums.js.map +1 -0
  328. package/esm/types/fp.d.ts +31 -0
  329. package/esm/types/fp.d.ts.map +1 -0
  330. package/esm/types/fp.js +31 -0
  331. package/esm/types/fp.js.map +1 -0
  332. package/esm/types/index.d.ts +10 -0
  333. package/esm/types/index.d.ts.map +1 -0
  334. package/esm/types/index.js +10 -0
  335. package/esm/types/index.js.map +1 -0
  336. package/esm/types/operations.d.ts +27 -0
  337. package/esm/types/operations.d.ts.map +1 -0
  338. package/esm/types/operations.js +77 -0
  339. package/esm/types/operations.js.map +1 -0
  340. package/esm/types/primitives.d.ts +11 -0
  341. package/esm/types/primitives.d.ts.map +1 -0
  342. package/esm/types/primitives.js +132 -0
  343. package/esm/types/primitives.js.map +1 -0
  344. package/esm/types/rfcdate.d.ts +21 -0
  345. package/esm/types/rfcdate.d.ts.map +1 -0
  346. package/esm/types/rfcdate.js +43 -0
  347. package/esm/types/rfcdate.js.map +1 -0
  348. package/esm/types/smart-union.d.ts +7 -0
  349. package/esm/types/smart-union.d.ts.map +1 -0
  350. package/esm/types/smart-union.js +117 -0
  351. package/esm/types/smart-union.js.map +1 -0
  352. package/esm/types/streams.d.ts +2 -0
  353. package/esm/types/streams.d.ts.map +1 -0
  354. package/esm/types/streams.js +15 -0
  355. package/esm/types/streams.js.map +1 -0
  356. package/esm/types/unrecognized.d.ts +16 -0
  357. package/esm/types/unrecognized.d.ts.map +1 -0
  358. package/esm/types/unrecognized.js +31 -0
  359. package/esm/types/unrecognized.js.map +1 -0
  360. package/examples/linkedinScrapersCollectLikes.example.ts +30 -0
  361. package/jsr.json +27 -0
  362. package/package.json +62 -0
  363. package/src/core.ts +13 -0
  364. package/src/funcs/campaigns-filter.ts +227 -0
  365. package/src/funcs/campaigns-get-stats.ts +222 -0
  366. package/src/funcs/campaigns-get-status.ts +222 -0
  367. package/src/funcs/campaigns-sync-actions.ts +222 -0
  368. package/src/funcs/linkedin-actions-accept-invitation.ts +215 -0
  369. package/src/funcs/linkedin-actions-connect-profile.ts +215 -0
  370. package/src/funcs/linkedin-actions-like-comment.ts +215 -0
  371. package/src/funcs/linkedin-actions-list-invitations.ts +220 -0
  372. package/src/funcs/linkedin-actions-publish-post.ts +215 -0
  373. package/src/funcs/linkedin-actions-reply-to-comment.ts +215 -0
  374. package/src/funcs/linkedin-actions-send-message.ts +215 -0
  375. package/src/funcs/linkedin-chat-find-conversation.ts +222 -0
  376. package/src/funcs/linkedin-chat-get-messages.ts +219 -0
  377. package/src/funcs/linkedin-chat-list-conversations.ts +215 -0
  378. package/src/funcs/linkedin-chat-search-conversations.ts +218 -0
  379. package/src/funcs/linkedin-scrapers-collect-comment-replies.ts +218 -0
  380. package/src/funcs/linkedin-scrapers-collect-comments.ts +215 -0
  381. package/src/funcs/linkedin-scrapers-collect-likes.ts +215 -0
  382. package/src/funcs/linkedin-scrapers-collect-posts.ts +215 -0
  383. package/src/funcs/linkedin-scrapers-visit-company.ts +215 -0
  384. package/src/funcs/linkedin-scrapers-visit-profile.ts +215 -0
  385. package/src/funcs/linkedin-search-resolve-parameters.ts +250 -0
  386. package/src/funcs/linkedin-search-search-by-url.ts +266 -0
  387. package/src/funcs/linkedin-search-search-companies.ts +272 -0
  388. package/src/funcs/linkedin-search-search-jobs.ts +293 -0
  389. package/src/funcs/linkedin-search-search-people.ts +280 -0
  390. package/src/funcs/linkedin-search-search-posts.ts +268 -0
  391. package/src/funcs/linkedin-search-unified-search.ts +251 -0
  392. package/src/funcs/profile-get-credits.ts +195 -0
  393. package/src/funcs/profile-get-followers.ts +220 -0
  394. package/src/funcs/profile-get-limits.ts +195 -0
  395. package/src/funcs/profile-get-linked-in-profile.ts +195 -0
  396. package/src/funcs/profile-get-posts.ts +220 -0
  397. package/src/funcs/profile-refresh.ts +195 -0
  398. package/src/hooks/hooks.ts +132 -0
  399. package/src/hooks/index.ts +6 -0
  400. package/src/hooks/registration.ts +14 -0
  401. package/src/hooks/types.ts +107 -0
  402. package/src/index.ts +9 -0
  403. package/src/lib/base64.ts +39 -0
  404. package/src/lib/config.ts +67 -0
  405. package/src/lib/dlv.ts +53 -0
  406. package/src/lib/encodings.ts +501 -0
  407. package/src/lib/env.ts +57 -0
  408. package/src/lib/files.ts +82 -0
  409. package/src/lib/http.ts +323 -0
  410. package/src/lib/is-plain-object.ts +43 -0
  411. package/src/lib/logger.ts +9 -0
  412. package/src/lib/matchers.ts +353 -0
  413. package/src/lib/primitives.ts +150 -0
  414. package/src/lib/retries.ts +218 -0
  415. package/src/lib/schemas.ts +94 -0
  416. package/src/lib/sdks.ts +406 -0
  417. package/src/lib/security.ts +263 -0
  418. package/src/lib/url.ts +33 -0
  419. package/src/models/errors/bereach-default-error.ts +40 -0
  420. package/src/models/errors/bereach-error.ts +35 -0
  421. package/src/models/errors/collect-linked-in-likes.ts +494 -0
  422. package/src/models/errors/http-client-errors.ts +62 -0
  423. package/src/models/errors/index.ts +10 -0
  424. package/src/models/errors/response-validation-error.ts +50 -0
  425. package/src/models/errors/sdk-validation-error.ts +54 -0
  426. package/src/models/index.ts +5 -0
  427. package/src/models/operations/get-campaign-stats-response.ts +3409 -0
  428. package/src/models/operations/index.ts +6 -0
  429. package/src/models/operations/send-linked-in-message-response.ts +4903 -0
  430. package/src/models/security.ts +26 -0
  431. package/src/sdk/campaigns.ts +83 -0
  432. package/src/sdk/index.ts +5 -0
  433. package/src/sdk/linkedin-actions.ts +135 -0
  434. package/src/sdk/linkedin-chat.ts +92 -0
  435. package/src/sdk/linkedin-scrapers.ts +117 -0
  436. package/src/sdk/linkedin-search.ts +505 -0
  437. package/src/sdk/profile.ts +109 -0
  438. package/src/sdk/sdk.ts +43 -0
  439. package/src/types/async.ts +68 -0
  440. package/src/types/blobs.ts +33 -0
  441. package/src/types/const-date-time.ts +15 -0
  442. package/src/types/default-to-zero-value.ts +33 -0
  443. package/src/types/enums.ts +45 -0
  444. package/src/types/fp.ts +50 -0
  445. package/src/types/index.ts +13 -0
  446. package/src/types/operations.ts +105 -0
  447. package/src/types/primitives.ts +168 -0
  448. package/src/types/rfcdate.ts +54 -0
  449. package/src/types/smart-union.ts +153 -0
  450. package/src/types/streams.ts +21 -0
  451. package/src/types/unrecognized.ts +35 -0
@@ -0,0 +1,4903 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as types from "../../types/primitives.js";
11
+ import { smartUnion } from "../../types/smart-union.js";
12
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
13
+
14
+ export type CollectLinkedInLikesRequest = {
15
+ /**
16
+ * LinkedIn post URL to inspect for reactions.
17
+ */
18
+ postUrl: string;
19
+ /**
20
+ * Pagination offset (multiples of 200).
21
+ */
22
+ start?: number | undefined;
23
+ /**
24
+ * Number of likes to fetch per page (0-200, default 200). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed).
25
+ */
26
+ count?: number | undefined;
27
+ };
28
+
29
+ export type CollectLinkedInLikesInternalServerErrorDetails =
30
+ | string
31
+ | Array<string>;
32
+
33
+ export type CollectLinkedInLikesInternalServerErrorError = {
34
+ code: string;
35
+ message: string;
36
+ docs?: string | undefined;
37
+ details?: string | Array<string> | undefined;
38
+ };
39
+
40
+ export const CollectLinkedInLikesCode = {
41
+ RateLimitExceeded: "rate_limit_exceeded",
42
+ } as const;
43
+ export type CollectLinkedInLikesCode = ClosedEnum<
44
+ typeof CollectLinkedInLikesCode
45
+ >;
46
+
47
+ /**
48
+ * Current and max daily usage (null if no daily cap).
49
+ */
50
+ export type CollectLinkedInLikesDaily = {
51
+ current: number;
52
+ limit: number;
53
+ };
54
+
55
+ /**
56
+ * Current and max weekly usage (null if no weekly cap).
57
+ */
58
+ export type CollectLinkedInLikesWeekly = {
59
+ current: number;
60
+ limit: number;
61
+ };
62
+
63
+ export type CollectLinkedInLikesTooManyRequestsError = {
64
+ code: CollectLinkedInLikesCode;
65
+ message: string;
66
+ docs?: string | undefined;
67
+ /**
68
+ * Seconds to wait before retrying.
69
+ */
70
+ retryAfter: number;
71
+ /**
72
+ * Current and max daily usage (null if no daily cap).
73
+ */
74
+ daily: CollectLinkedInLikesDaily | null;
75
+ /**
76
+ * Current and max weekly usage (null if no weekly cap).
77
+ */
78
+ weekly: CollectLinkedInLikesWeekly | null;
79
+ };
80
+
81
+ export type CollectLinkedInLikesUnprocessableEntityDetails =
82
+ | string
83
+ | Array<string>;
84
+
85
+ export type CollectLinkedInLikesUnprocessableEntityError = {
86
+ code: string;
87
+ message: string;
88
+ docs?: string | undefined;
89
+ details?: string | Array<string> | undefined;
90
+ };
91
+
92
+ export type CollectLinkedInLikesGoneDetails = string | Array<string>;
93
+
94
+ export type CollectLinkedInLikesGoneError = {
95
+ code: string;
96
+ message: string;
97
+ docs?: string | undefined;
98
+ details?: string | Array<string> | undefined;
99
+ };
100
+
101
+ export type CollectLinkedInLikesConflictDetails = string | Array<string>;
102
+
103
+ export type CollectLinkedInLikesConflictError = {
104
+ code: string;
105
+ message: string;
106
+ docs?: string | undefined;
107
+ details?: string | Array<string> | undefined;
108
+ };
109
+
110
+ export type CollectLinkedInLikesNotFoundDetails = string | Array<string>;
111
+
112
+ export type CollectLinkedInLikesNotFoundError = {
113
+ code: string;
114
+ message: string;
115
+ docs?: string | undefined;
116
+ details?: string | Array<string> | undefined;
117
+ };
118
+
119
+ export type CollectLinkedInLikesForbiddenDetails = string | Array<string>;
120
+
121
+ export type CollectLinkedInLikesForbiddenError = {
122
+ code: string;
123
+ message: string;
124
+ docs?: string | undefined;
125
+ details?: string | Array<string> | undefined;
126
+ };
127
+
128
+ export type CollectLinkedInLikesUnauthorizedDetails = string | Array<string>;
129
+
130
+ export type CollectLinkedInLikesUnauthorizedError = {
131
+ code: string;
132
+ message: string;
133
+ docs?: string | undefined;
134
+ details?: string | Array<string> | undefined;
135
+ };
136
+
137
+ export type CollectLinkedInLikesBadRequestDetails = string | Array<string>;
138
+
139
+ export type CollectLinkedInLikesBadRequestError = {
140
+ code: string;
141
+ message: string;
142
+ docs?: string | undefined;
143
+ details?: string | Array<string> | undefined;
144
+ };
145
+
146
+ export const CollectLinkedInLikesType = {
147
+ Like: "like",
148
+ } as const;
149
+ export type CollectLinkedInLikesType = ClosedEnum<
150
+ typeof CollectLinkedInLikesType
151
+ >;
152
+
153
+ export type CollectLinkedInLikesProfile = {
154
+ name: string;
155
+ headline?: string | null | undefined;
156
+ profileUrl?: string | null | undefined;
157
+ imageUrl?: string | null | undefined;
158
+ type: CollectLinkedInLikesType;
159
+ };
160
+
161
+ /**
162
+ * List of profiles who liked the post
163
+ */
164
+ export type CollectLinkedInLikesResponse = {
165
+ success: boolean;
166
+ profiles: Array<CollectLinkedInLikesProfile>;
167
+ count: number;
168
+ total: number;
169
+ start: number;
170
+ hasMore: boolean;
171
+ /**
172
+ * The total from your last call to this endpoint for the same post (null on first call). Compare with total to detect new likes without client-side tracking.
173
+ */
174
+ previousTotal: number | null;
175
+ /**
176
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
177
+ */
178
+ creditsUsed: number;
179
+ /**
180
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
181
+ */
182
+ retryAfter: number;
183
+ };
184
+
185
+ export type CollectLinkedInCommentsRequest = {
186
+ /**
187
+ * LinkedIn post URL to inspect for comments.
188
+ */
189
+ postUrl: string;
190
+ /**
191
+ * Pagination offset (multiples of 100).
192
+ */
193
+ start?: number | undefined;
194
+ /**
195
+ * Number of comments to fetch per page (0-100, default 100). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed — can call count=100 immediately after).
196
+ */
197
+ count?: number | undefined;
198
+ /**
199
+ * When provided, each profile in the response includes actionsCompleted (message/reply/like/visit/connect booleans) and knownDistance (cached memberDistance from recent visits, null if not cached). Enables campaign-aware scraping without manual cross-referencing.
200
+ */
201
+ campaignSlug?: string | undefined;
202
+ };
203
+
204
+ export const CollectLinkedInCommentsType = {
205
+ Comment: "comment",
206
+ } as const;
207
+ export type CollectLinkedInCommentsType = ClosedEnum<
208
+ typeof CollectLinkedInCommentsType
209
+ >;
210
+
211
+ /**
212
+ * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
213
+ */
214
+ export type CollectLinkedInCommentsActionsCompleted = {
215
+ message: boolean;
216
+ reply: boolean;
217
+ like: boolean;
218
+ visit: boolean;
219
+ connect: boolean;
220
+ };
221
+
222
+ export type CollectLinkedInCommentsProfile = {
223
+ name: string;
224
+ headline?: string | null | undefined;
225
+ profileUrl?: string | null | undefined;
226
+ imageUrl?: string | null | undefined;
227
+ type: CollectLinkedInCommentsType;
228
+ commentText?: string | undefined;
229
+ timestamp?: number | null | undefined;
230
+ isEdited?: boolean | undefined;
231
+ /**
232
+ * Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
233
+ */
234
+ commentUrn?: string | undefined;
235
+ /**
236
+ * SHA256 hash of commentUrn — use for dedup slugs only, not for building URNs.
237
+ */
238
+ commentHash?: string | undefined;
239
+ /**
240
+ * True if the commenter is the post author.
241
+ */
242
+ isPostAuthor?: boolean | undefined;
243
+ /**
244
+ * Number of replies to this comment.
245
+ */
246
+ repliesCount?: number | undefined;
247
+ /**
248
+ * True if the post author already replied to this comment.
249
+ */
250
+ hasReplyFromPostAuthor?: boolean | undefined;
251
+ postUrn?: string | undefined;
252
+ /**
253
+ * SHA256 hash of postUrn — use for dedup slugs only.
254
+ */
255
+ postHash?: string | undefined;
256
+ /**
257
+ * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
258
+ */
259
+ actionsCompleted?: CollectLinkedInCommentsActionsCompleted | undefined;
260
+ /**
261
+ * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). Only present when campaignSlug is provided. null if the profile has not been visited recently.
262
+ */
263
+ knownDistance?: number | null | undefined;
264
+ };
265
+
266
+ /**
267
+ * List of profiles who commented on the post
268
+ */
269
+ export type CollectLinkedInCommentsResponse = {
270
+ success: boolean;
271
+ profiles: Array<CollectLinkedInCommentsProfile>;
272
+ count: number;
273
+ total: number;
274
+ start: number;
275
+ hasMore: boolean;
276
+ /**
277
+ * The total from your last call to this endpoint for the same post (null on first call). Compare with total to detect new comments without client-side tracking.
278
+ */
279
+ previousTotal: number | null;
280
+ /**
281
+ * Number of returned profiles that already have a completed 'message' action in this campaign. Only present when campaignSlug is provided.
282
+ */
283
+ processedCount?: number | undefined;
284
+ /**
285
+ * Number of returned profiles that have NOT yet been messaged in this campaign. Only present when campaignSlug is provided.
286
+ */
287
+ newCount?: number | undefined;
288
+ /**
289
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
290
+ */
291
+ creditsUsed: number;
292
+ /**
293
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
294
+ */
295
+ retryAfter: number;
296
+ };
297
+
298
+ export type CollectLinkedInCommentRepliesRequest = {
299
+ /**
300
+ * Comment URN returned by the comments endpoint (e.g., 'urn:li:comment:(activity:123456,789)').
301
+ */
302
+ commentUrn: string;
303
+ /**
304
+ * Pagination offset (default 0).
305
+ */
306
+ start?: number | undefined;
307
+ /**
308
+ * Number of replies to fetch per page (0-100, default 100). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed).
309
+ */
310
+ count?: number | undefined;
311
+ };
312
+
313
+ export const CollectLinkedInCommentRepliesType = {
314
+ Comment: "comment",
315
+ } as const;
316
+ export type CollectLinkedInCommentRepliesType = ClosedEnum<
317
+ typeof CollectLinkedInCommentRepliesType
318
+ >;
319
+
320
+ /**
321
+ * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
322
+ */
323
+ export type CollectLinkedInCommentRepliesActionsCompleted = {
324
+ message: boolean;
325
+ reply: boolean;
326
+ like: boolean;
327
+ visit: boolean;
328
+ connect: boolean;
329
+ };
330
+
331
+ export type Reply = {
332
+ name: string;
333
+ headline?: string | null | undefined;
334
+ profileUrl?: string | null | undefined;
335
+ imageUrl?: string | null | undefined;
336
+ type: CollectLinkedInCommentRepliesType;
337
+ commentText?: string | undefined;
338
+ timestamp?: number | null | undefined;
339
+ isEdited?: boolean | undefined;
340
+ /**
341
+ * Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
342
+ */
343
+ commentUrn?: string | undefined;
344
+ /**
345
+ * SHA256 hash of commentUrn — use for dedup slugs only, not for building URNs.
346
+ */
347
+ commentHash?: string | undefined;
348
+ /**
349
+ * True if the commenter is the post author.
350
+ */
351
+ isPostAuthor?: boolean | undefined;
352
+ /**
353
+ * Number of replies to this comment.
354
+ */
355
+ repliesCount?: number | undefined;
356
+ /**
357
+ * True if the post author already replied to this comment.
358
+ */
359
+ hasReplyFromPostAuthor?: boolean | undefined;
360
+ postUrn?: string | undefined;
361
+ /**
362
+ * SHA256 hash of postUrn — use for dedup slugs only.
363
+ */
364
+ postHash?: string | undefined;
365
+ /**
366
+ * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
367
+ */
368
+ actionsCompleted?: CollectLinkedInCommentRepliesActionsCompleted | undefined;
369
+ /**
370
+ * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). Only present when campaignSlug is provided. null if the profile has not been visited recently.
371
+ */
372
+ knownDistance?: number | null | undefined;
373
+ };
374
+
375
+ /**
376
+ * List of replies to the comment
377
+ */
378
+ export type CollectLinkedInCommentRepliesResponse = {
379
+ success: boolean;
380
+ replies: Array<Reply>;
381
+ count: number;
382
+ total: number;
383
+ start: number;
384
+ hasMore: boolean;
385
+ parentCommentUrn: string;
386
+ /**
387
+ * The total from your last call to this endpoint for the same comment (null on first call). Compare with total to detect new replies without client-side tracking.
388
+ */
389
+ previousTotal: number | null;
390
+ /**
391
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
392
+ */
393
+ creditsUsed: number;
394
+ /**
395
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
396
+ */
397
+ retryAfter: number;
398
+ };
399
+
400
+ export type CollectLinkedInPostsRequest = {
401
+ /**
402
+ * LinkedIn profile URL to fetch posts from.
403
+ */
404
+ profileUrl: string;
405
+ /**
406
+ * Number of posts to fetch (0-100, default 20). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed).
407
+ */
408
+ count?: number | undefined;
409
+ /**
410
+ * Pagination offset (default 0).
411
+ */
412
+ start?: number | undefined;
413
+ /**
414
+ * Pagination token from a previous response to fetch the next page.
415
+ */
416
+ paginationToken?: string | undefined;
417
+ };
418
+
419
+ export const CollectLinkedInPostsType = {
420
+ Activity: "activity",
421
+ UgcPost: "ugcPost",
422
+ Share: "share",
423
+ } as const;
424
+ export type CollectLinkedInPostsType = OpenEnum<
425
+ typeof CollectLinkedInPostsType
426
+ >;
427
+
428
+ export type CollectLinkedInPostsPost = {
429
+ postUrl: string;
430
+ text: string;
431
+ date: number;
432
+ likesCount: number;
433
+ commentsCount: number;
434
+ sharesCount: number;
435
+ postUrn: string;
436
+ postId: string;
437
+ type: CollectLinkedInPostsType;
438
+ };
439
+
440
+ /**
441
+ * Paginated list of posts from the profile
442
+ */
443
+ export type CollectLinkedInPostsResponse = {
444
+ success: boolean;
445
+ posts: Array<CollectLinkedInPostsPost>;
446
+ count: number;
447
+ total: number;
448
+ start: number;
449
+ hasMore: boolean;
450
+ paginationToken: string | null;
451
+ /**
452
+ * The total from your last call to this endpoint for the same profile (null on first call). Compare with total to detect new posts without client-side tracking.
453
+ */
454
+ previousTotal: number | null;
455
+ /**
456
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
457
+ */
458
+ creditsUsed: number;
459
+ /**
460
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
461
+ */
462
+ retryAfter: number;
463
+ };
464
+
465
+ export type VisitLinkedInProfileRequest = {
466
+ /**
467
+ * LinkedIn profile URL (e.g., 'https://www.linkedin.com/in/username') or profile URN (e.g., 'urn:li:fsd_profile:ACoAABZ0Qo4B6pt58d4FVmts1F7TPi4D1-uL1fw')
468
+ */
469
+ profile: string;
470
+ /**
471
+ * Optional campaign identifier for tracking only. No dedup — visit always executes.
472
+ */
473
+ campaignSlug?: string | undefined;
474
+ /**
475
+ * Deprecated. Use campaignSlug only.
476
+ *
477
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
478
+ */
479
+ actionSlug?: string | undefined;
480
+ /**
481
+ * When true, fetches the last 5 posts from the profile (adds a random delay between requests). Defaults to false.
482
+ */
483
+ includePosts?: boolean | undefined;
484
+ };
485
+
486
+ /**
487
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
488
+ */
489
+ export const PendingConnection = {
490
+ Pending: "pending",
491
+ Failed: "failed",
492
+ None: "none",
493
+ } as const;
494
+ /**
495
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
496
+ */
497
+ export type PendingConnection = OpenEnum<typeof PendingConnection>;
498
+
499
+ export type VisitLinkedInProfilePositionStartDate = {
500
+ month: number | null;
501
+ year: number;
502
+ };
503
+
504
+ export type VisitLinkedInProfilePositionEndDate = {
505
+ month: number | null;
506
+ year: number;
507
+ };
508
+
509
+ export type VisitLinkedInProfilePosition = {
510
+ companyName: string | null;
511
+ title: string | null;
512
+ companyUrl: string | null;
513
+ companyLogo: string | null;
514
+ startDate: VisitLinkedInProfilePositionStartDate | null;
515
+ endDate: VisitLinkedInProfilePositionEndDate | null;
516
+ isCurrent: boolean;
517
+ };
518
+
519
+ export type VisitLinkedInProfileEducationStartDate = {
520
+ month: number | null;
521
+ year: number;
522
+ };
523
+
524
+ export type VisitLinkedInProfileEducationEndDate = {
525
+ month: number | null;
526
+ year: number;
527
+ };
528
+
529
+ export type VisitLinkedInProfileEducation = {
530
+ schoolName: string | null;
531
+ degreeName: string | null;
532
+ fieldOfStudy: string | null;
533
+ schoolUrl: string | null;
534
+ schoolLogo: string | null;
535
+ startDate: VisitLinkedInProfileEducationStartDate | null;
536
+ endDate: VisitLinkedInProfileEducationEndDate | null;
537
+ };
538
+
539
+ export const VisitLinkedInProfileType = {
540
+ Activity: "activity",
541
+ UgcPost: "ugcPost",
542
+ Share: "share",
543
+ } as const;
544
+ export type VisitLinkedInProfileType = OpenEnum<
545
+ typeof VisitLinkedInProfileType
546
+ >;
547
+
548
+ export type VisitLinkedInProfileLastPost = {
549
+ postUrl: string;
550
+ text: string;
551
+ date: number;
552
+ likesCount: number;
553
+ commentsCount: number;
554
+ sharesCount: number;
555
+ postUrn: string;
556
+ postId: string;
557
+ type: VisitLinkedInProfileType;
558
+ };
559
+
560
+ /**
561
+ * Profile contact data
562
+ */
563
+ export type VisitLinkedInProfileResponse = {
564
+ success: boolean;
565
+ firstName: string;
566
+ lastName: string;
567
+ headline: string | null;
568
+ publicIdentifier: string;
569
+ profileUrl: string;
570
+ /**
571
+ * LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAAA...'). Use this for matching against inbox participants.
572
+ */
573
+ profileUrn?: string | undefined;
574
+ imageUrl: string | null;
575
+ email?: string | null | undefined;
576
+ location?: string | null | undefined;
577
+ /**
578
+ * Current company name (from most recent position)
579
+ */
580
+ company?: string | null | undefined;
581
+ /**
582
+ * Current job title (from most recent position)
583
+ */
584
+ position?: string | null | undefined;
585
+ /**
586
+ * Connection degree: 0 (self), 1 (direct connection), 2+ (2nd degree, 3rd degree, etc.), or null if unknown
587
+ */
588
+ memberDistance?: number | null | undefined;
589
+ /**
590
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
591
+ */
592
+ pendingConnection: PendingConnection;
593
+ /**
594
+ * Work experience positions
595
+ */
596
+ positions?: Array<VisitLinkedInProfilePosition> | undefined;
597
+ /**
598
+ * Education entries
599
+ */
600
+ educations?: Array<VisitLinkedInProfileEducation> | undefined;
601
+ /**
602
+ * Last 5 posts from the profile (only present when includePosts is true)
603
+ */
604
+ lastPosts?: Array<VisitLinkedInProfileLastPost> | undefined;
605
+ /**
606
+ * true if this result was served from cache (0 credits). Distance-1 profiles are cached for 24h.
607
+ */
608
+ cached: boolean;
609
+ /**
610
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
611
+ */
612
+ creditsUsed: number;
613
+ /**
614
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
615
+ */
616
+ retryAfter: number;
617
+ };
618
+
619
+ export type VisitLinkedInCompanyRequest = {
620
+ /**
621
+ * LinkedIn company URL (e.g., 'https://www.linkedin.com/company/openai') or universal name (e.g., 'openai')
622
+ */
623
+ companyUrl: string;
624
+ /**
625
+ * Include workplace policy data such as hybrid/remote status and benefits. Costs 1 extra credit (extra API call).
626
+ */
627
+ includeWorkplacePolicy?: boolean | undefined;
628
+ };
629
+
630
+ /**
631
+ * Employee count range
632
+ */
633
+ export type EmployeeCountRange = {
634
+ start: number;
635
+ end: number | null;
636
+ };
637
+
638
+ export type Headquarter = {
639
+ country: string | null;
640
+ geographicArea: string | null;
641
+ city: string | null;
642
+ postalCode: string | null;
643
+ line1: string | null;
644
+ line2: string | null;
645
+ };
646
+
647
+ export type FoundedOn = {
648
+ year: number;
649
+ };
650
+
651
+ export type CallToAction = {
652
+ type: string;
653
+ url: string;
654
+ };
655
+
656
+ export type AffiliatedCompany = {
657
+ id: string;
658
+ universalName: string;
659
+ name: string;
660
+ url: string | null;
661
+ logoUrl: string | null;
662
+ followerCount: number | null;
663
+ industry: string | null;
664
+ };
665
+
666
+ export type SimilarCompany = {
667
+ id: string;
668
+ universalName: string;
669
+ name: string;
670
+ url: string | null;
671
+ logoUrl: string | null;
672
+ followerCount: number | null;
673
+ industry: string | null;
674
+ };
675
+
676
+ /**
677
+ * Workplace policy (only present when includeWorkplacePolicy=true)
678
+ */
679
+ export type WorkplacePolicy = {
680
+ title: string | null;
681
+ description: string | null;
682
+ timeAtOnsite: string | null;
683
+ benefits: Array<string>;
684
+ };
685
+
686
+ /**
687
+ * Company profile data
688
+ */
689
+ export type VisitLinkedInCompanyResponse = {
690
+ success: boolean;
691
+ /**
692
+ * LinkedIn numeric company ID
693
+ */
694
+ id: string;
695
+ /**
696
+ * Company URL slug
697
+ */
698
+ universalName: string;
699
+ name: string;
700
+ description: string | null;
701
+ /**
702
+ * LinkedIn company page URL
703
+ */
704
+ url: string;
705
+ /**
706
+ * External website URL
707
+ */
708
+ websiteUrl: string | null;
709
+ industry: string | null;
710
+ /**
711
+ * Exact employee count on LinkedIn
712
+ */
713
+ employeeCount: number | null;
714
+ /**
715
+ * Employee count range
716
+ */
717
+ employeeCountRange: EmployeeCountRange | null;
718
+ headquarter: Headquarter | null;
719
+ logoUrl: string | null;
720
+ coverImageUrl: string | null;
721
+ followerCount: number | null;
722
+ specialities: Array<string>;
723
+ tagline: string | null;
724
+ isVerified: boolean;
725
+ foundedOn: FoundedOn | null;
726
+ phone: string | null;
727
+ callToAction: CallToAction | null;
728
+ hashtags: Array<string>;
729
+ /**
730
+ * Showcase / affiliated pages
731
+ */
732
+ affiliatedCompanies: Array<AffiliatedCompany>;
733
+ /**
734
+ * Similar companies suggested by LinkedIn
735
+ */
736
+ similarCompanies: Array<SimilarCompany>;
737
+ /**
738
+ * Workplace policy (only present when includeWorkplacePolicy=true)
739
+ */
740
+ workplacePolicy?: WorkplacePolicy | null | undefined;
741
+ /**
742
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
743
+ */
744
+ creditsUsed: number;
745
+ /**
746
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
747
+ */
748
+ retryAfter: number;
749
+ };
750
+
751
+ /**
752
+ * Type of search to perform (required unless url is provided)
753
+ */
754
+ export const CategoryRequest = {
755
+ Posts: "posts",
756
+ People: "people",
757
+ Companies: "companies",
758
+ Jobs: "jobs",
759
+ } as const;
760
+ /**
761
+ * Type of search to perform (required unless url is provided)
762
+ */
763
+ export type CategoryRequest = ClosedEnum<typeof CategoryRequest>;
764
+
765
+ /**
766
+ * Sort order (posts & jobs)
767
+ */
768
+ export const SearchLinkedInSortBy = {
769
+ Relevance: "relevance",
770
+ Date: "date",
771
+ } as const;
772
+ /**
773
+ * Sort order (posts & jobs)
774
+ */
775
+ export type SearchLinkedInSortBy = ClosedEnum<typeof SearchLinkedInSortBy>;
776
+
777
+ /**
778
+ * Time filter (posts & jobs)
779
+ */
780
+ export const SearchLinkedInDatePosted = {
781
+ Past24h: "past-24h",
782
+ PastWeek: "past-week",
783
+ PastMonth: "past-month",
784
+ } as const;
785
+ /**
786
+ * Time filter (posts & jobs)
787
+ */
788
+ export type SearchLinkedInDatePosted = ClosedEnum<
789
+ typeof SearchLinkedInDatePosted
790
+ >;
791
+
792
+ /**
793
+ * Media type filter (posts only)
794
+ */
795
+ export const SearchLinkedInContentType = {
796
+ Images: "images",
797
+ Videos: "videos",
798
+ Documents: "documents",
799
+ } as const;
800
+ /**
801
+ * Media type filter (posts only)
802
+ */
803
+ export type SearchLinkedInContentType = ClosedEnum<
804
+ typeof SearchLinkedInContentType
805
+ >;
806
+
807
+ export const SearchLinkedInConnectionDegree = {
808
+ F: "F",
809
+ S: "S",
810
+ O: "O",
811
+ } as const;
812
+ export type SearchLinkedInConnectionDegree = ClosedEnum<
813
+ typeof SearchLinkedInConnectionDegree
814
+ >;
815
+
816
+ export const SearchLinkedInCompanySize = {
817
+ A: "A",
818
+ B: "B",
819
+ C: "C",
820
+ D: "D",
821
+ E: "E",
822
+ F: "F",
823
+ G: "G",
824
+ H: "H",
825
+ I: "I",
826
+ } as const;
827
+ export type SearchLinkedInCompanySize = ClosedEnum<
828
+ typeof SearchLinkedInCompanySize
829
+ >;
830
+
831
+ export const SearchLinkedInJobType = {
832
+ F: "F",
833
+ P: "P",
834
+ C: "C",
835
+ T: "T",
836
+ I: "I",
837
+ V: "V",
838
+ O: "O",
839
+ } as const;
840
+ export type SearchLinkedInJobType = ClosedEnum<typeof SearchLinkedInJobType>;
841
+
842
+ export const SearchLinkedInExperienceLevel = {
843
+ One: "1",
844
+ Two: "2",
845
+ Three: "3",
846
+ Four: "4",
847
+ Five: "5",
848
+ Six: "6",
849
+ } as const;
850
+ export type SearchLinkedInExperienceLevel = ClosedEnum<
851
+ typeof SearchLinkedInExperienceLevel
852
+ >;
853
+
854
+ export const SearchLinkedInWorkplaceType = {
855
+ One: "1",
856
+ Two: "2",
857
+ Three: "3",
858
+ } as const;
859
+ export type SearchLinkedInWorkplaceType = ClosedEnum<
860
+ typeof SearchLinkedInWorkplaceType
861
+ >;
862
+
863
+ export type SearchLinkedInRequest = {
864
+ /**
865
+ * Type of search to perform (required unless url is provided)
866
+ */
867
+ category?: CategoryRequest | undefined;
868
+ /**
869
+ * LinkedIn search URL — category and filters are extracted automatically. Explicit params override URL-derived ones.
870
+ */
871
+ url?: string | undefined;
872
+ /**
873
+ * Search keywords. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "outreach automation"), AND to require both terms, OR for alternatives (e.g. CEO OR founder), NOT to exclude (e.g. manager NOT assistant), and parentheses to group (e.g. (CEO OR CTO) AND SaaS). Operators must be UPPERCASE. Without quotes, multi-word queries are treated as AND by default which may return overly broad results — use exact phrases with quotes for precise matching.
874
+ */
875
+ keywords?: string | undefined;
876
+ /**
877
+ * Sort order (posts & jobs)
878
+ */
879
+ sortBy?: SearchLinkedInSortBy | undefined;
880
+ /**
881
+ * Time filter (posts & jobs)
882
+ */
883
+ datePosted?: SearchLinkedInDatePosted | undefined;
884
+ /**
885
+ * Media type filter (posts only)
886
+ */
887
+ contentType?: SearchLinkedInContentType | undefined;
888
+ /**
889
+ * Author industry IDs (posts only, resolve via /search/parameters)
890
+ */
891
+ authorIndustry?: Array<string> | undefined;
892
+ /**
893
+ * Author company IDs (posts only, resolve via /search/parameters)
894
+ */
895
+ authorCompany?: Array<string> | undefined;
896
+ /**
897
+ * Connection degree: F=1st, S=2nd, O=3rd+ (people only)
898
+ */
899
+ connectionDegree?: Array<SearchLinkedInConnectionDegree> | undefined;
900
+ /**
901
+ * First name filter (people only)
902
+ */
903
+ firstName?: string | undefined;
904
+ /**
905
+ * Last name filter (people only)
906
+ */
907
+ lastName?: string | undefined;
908
+ /**
909
+ * Job title filter, supports OR syntax (people only)
910
+ */
911
+ title?: string | undefined;
912
+ /**
913
+ * Profile URN to find connections of (people only)
914
+ */
915
+ connectionOf?: string | undefined;
916
+ /**
917
+ * Profile language codes e.g. ['en','fr'] (people only)
918
+ */
919
+ profileLanguage?: Array<string> | undefined;
920
+ /**
921
+ * School IDs (people only, resolve via /search/parameters)
922
+ */
923
+ school?: Array<string> | undefined;
924
+ /**
925
+ * Geo IDs (people, companies, jobs -- resolve via /search/parameters)
926
+ */
927
+ location?: Array<string> | undefined;
928
+ /**
929
+ * Industry IDs (people, companies -- resolve via /search/parameters)
930
+ */
931
+ industry?: Array<string> | undefined;
932
+ /**
933
+ * Current company IDs (people only, resolve via /search/parameters)
934
+ */
935
+ currentCompany?: Array<string> | undefined;
936
+ /**
937
+ * Past company IDs (people only, resolve via /search/parameters)
938
+ */
939
+ pastCompany?: Array<string> | undefined;
940
+ /**
941
+ * Company size: A=1-10, B=11-50, C=51-200, D=201-500, E=501-1K, F=1K-5K, G=5K-10K, H=10K+, I=self (companies only)
942
+ */
943
+ companySize?: Array<SearchLinkedInCompanySize> | undefined;
944
+ /**
945
+ * Job type: F=Full-time, P=Part-time, C=Contract, T=Temporary, I=Internship, V=Volunteer, O=Other (jobs only)
946
+ */
947
+ jobType?: Array<SearchLinkedInJobType> | undefined;
948
+ /**
949
+ * Experience level: 1=Internship, 2=Entry, 3=Associate, 4=Mid-Senior, 5=Director, 6=Executive (jobs only)
950
+ */
951
+ experienceLevel?: Array<SearchLinkedInExperienceLevel> | undefined;
952
+ /**
953
+ * Workplace type: 1=On-site, 2=Remote, 3=Hybrid (jobs only)
954
+ */
955
+ workplaceType?: Array<SearchLinkedInWorkplaceType> | undefined;
956
+ /**
957
+ * Pagination offset (default 0)
958
+ */
959
+ start?: number | undefined;
960
+ /**
961
+ * Results per page (default 10, max 50)
962
+ */
963
+ count?: number | undefined;
964
+ };
965
+
966
+ export const SearchLinkedInCategoryResponseBody = {
967
+ Posts: "posts",
968
+ People: "people",
969
+ Companies: "companies",
970
+ Jobs: "jobs",
971
+ } as const;
972
+ export type SearchLinkedInCategoryResponseBody = OpenEnum<
973
+ typeof SearchLinkedInCategoryResponseBody
974
+ >;
975
+
976
+ export const SearchLinkedInTypeJob = {
977
+ Job: "JOB",
978
+ } as const;
979
+ export type SearchLinkedInTypeJob = ClosedEnum<typeof SearchLinkedInTypeJob>;
980
+
981
+ export type SearchLinkedInItemsJob = {
982
+ type: SearchLinkedInTypeJob;
983
+ title: string;
984
+ company: string | null;
985
+ companyUrl: string | null;
986
+ companyLogo: string | null;
987
+ location: string | null;
988
+ workplaceType: string | null;
989
+ postedAt: string | null;
990
+ jobUrl: string;
991
+ listingId: string;
992
+ };
993
+
994
+ export const SearchLinkedInTypeCompany = {
995
+ Company: "COMPANY",
996
+ } as const;
997
+ export type SearchLinkedInTypeCompany = ClosedEnum<
998
+ typeof SearchLinkedInTypeCompany
999
+ >;
1000
+
1001
+ export type SearchLinkedInItemsCompany = {
1002
+ type: SearchLinkedInTypeCompany;
1003
+ name: string;
1004
+ profileUrl: string;
1005
+ summary: string | null;
1006
+ industry: string | null;
1007
+ location: string | null;
1008
+ followersCount: number | null;
1009
+ };
1010
+
1011
+ export const SearchLinkedInTypePeople = {
1012
+ People: "PEOPLE",
1013
+ } as const;
1014
+ export type SearchLinkedInTypePeople = ClosedEnum<
1015
+ typeof SearchLinkedInTypePeople
1016
+ >;
1017
+
1018
+ export const SearchLinkedInNetworkDistance = {
1019
+ Distance1: "DISTANCE_1",
1020
+ Distance2: "DISTANCE_2",
1021
+ Distance3: "DISTANCE_3",
1022
+ OutOfNetwork: "OUT_OF_NETWORK",
1023
+ } as const;
1024
+ export type SearchLinkedInNetworkDistance = OpenEnum<
1025
+ typeof SearchLinkedInNetworkDistance
1026
+ >;
1027
+
1028
+ export type SearchLinkedInCurrentPosition = {
1029
+ company: string | null;
1030
+ role: string | null;
1031
+ };
1032
+
1033
+ export type SearchLinkedInItemsPeople = {
1034
+ type: SearchLinkedInTypePeople;
1035
+ name: string;
1036
+ profileUrl: string;
1037
+ headline: string | null;
1038
+ location: string | null;
1039
+ profilePicture: string | null;
1040
+ networkDistance: SearchLinkedInNetworkDistance | null;
1041
+ currentPositions: Array<SearchLinkedInCurrentPosition>;
1042
+ };
1043
+
1044
+ export const SearchLinkedInTypePost = {
1045
+ Post: "POST",
1046
+ } as const;
1047
+ export type SearchLinkedInTypePost = ClosedEnum<typeof SearchLinkedInTypePost>;
1048
+
1049
+ export type SearchLinkedInAuthor = {
1050
+ name: string;
1051
+ profileUrl: string | null;
1052
+ headline: string | null;
1053
+ profilePicture: string | null;
1054
+ isCompany: boolean;
1055
+ };
1056
+
1057
+ export type SearchLinkedInItemsPost = {
1058
+ type: SearchLinkedInTypePost;
1059
+ postUrl: string;
1060
+ text: string;
1061
+ date: number;
1062
+ likesCount: number;
1063
+ commentsCount: number;
1064
+ sharesCount: number;
1065
+ postUrn: string;
1066
+ postId: string;
1067
+ author: SearchLinkedInAuthor;
1068
+ isRepost: boolean;
1069
+ };
1070
+
1071
+ export type SearchLinkedInItemsUnion =
1072
+ | Array<SearchLinkedInItemsPost>
1073
+ | Array<SearchLinkedInItemsPeople>
1074
+ | Array<SearchLinkedInItemsCompany>
1075
+ | Array<SearchLinkedInItemsJob>;
1076
+
1077
+ export type SearchLinkedInPaging = {
1078
+ start: number;
1079
+ count: number;
1080
+ total: number;
1081
+ };
1082
+
1083
+ /**
1084
+ * Search results for the specified category
1085
+ */
1086
+ export type SearchLinkedInResponse = {
1087
+ success: boolean;
1088
+ category: SearchLinkedInCategoryResponseBody;
1089
+ items:
1090
+ | Array<SearchLinkedInItemsPost>
1091
+ | Array<SearchLinkedInItemsPeople>
1092
+ | Array<SearchLinkedInItemsCompany>
1093
+ | Array<SearchLinkedInItemsJob>;
1094
+ paging: SearchLinkedInPaging;
1095
+ hasMore: boolean;
1096
+ /**
1097
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1098
+ */
1099
+ creditsUsed: number;
1100
+ /**
1101
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1102
+ */
1103
+ retryAfter: number;
1104
+ };
1105
+
1106
+ /**
1107
+ * Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
1108
+ */
1109
+ export const SearchLinkedInPostsSortBy = {
1110
+ Relevance: "relevance",
1111
+ Date: "date",
1112
+ } as const;
1113
+ /**
1114
+ * Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
1115
+ */
1116
+ export type SearchLinkedInPostsSortBy = ClosedEnum<
1117
+ typeof SearchLinkedInPostsSortBy
1118
+ >;
1119
+
1120
+ /**
1121
+ * Filter by publication date. Useful for finding recent discussions or trending topics.
1122
+ */
1123
+ export const SearchLinkedInPostsDatePosted = {
1124
+ Past24h: "past-24h",
1125
+ PastWeek: "past-week",
1126
+ PastMonth: "past-month",
1127
+ } as const;
1128
+ /**
1129
+ * Filter by publication date. Useful for finding recent discussions or trending topics.
1130
+ */
1131
+ export type SearchLinkedInPostsDatePosted = ClosedEnum<
1132
+ typeof SearchLinkedInPostsDatePosted
1133
+ >;
1134
+
1135
+ /**
1136
+ * Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
1137
+ */
1138
+ export const SearchLinkedInPostsContentType = {
1139
+ Images: "images",
1140
+ Videos: "videos",
1141
+ Documents: "documents",
1142
+ } as const;
1143
+ /**
1144
+ * Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
1145
+ */
1146
+ export type SearchLinkedInPostsContentType = ClosedEnum<
1147
+ typeof SearchLinkedInPostsContentType
1148
+ >;
1149
+
1150
+ export type SearchLinkedInPostsRequest = {
1151
+ /**
1152
+ * Search keywords (required). Searches across post text content. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "AI automation"), AND to require both terms, OR for alternatives (e.g. "growth hacking" OR "growth marketing"), NOT to exclude (e.g. outreach NOT webinar), and parentheses to group (e.g. (AI OR ML) AND "case study"). Operators must be UPPERCASE. Without quotes, multi-word queries are treated as AND by default which may return broad results.
1153
+ */
1154
+ keywords: string;
1155
+ /**
1156
+ * Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
1157
+ */
1158
+ url?: string | undefined;
1159
+ /**
1160
+ * Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
1161
+ */
1162
+ sortBy?: SearchLinkedInPostsSortBy | undefined;
1163
+ /**
1164
+ * Filter by publication date. Useful for finding recent discussions or trending topics.
1165
+ */
1166
+ datePosted?: SearchLinkedInPostsDatePosted | undefined;
1167
+ /**
1168
+ * Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
1169
+ */
1170
+ contentType?: SearchLinkedInPostsContentType | undefined;
1171
+ /**
1172
+ * Filter by the post author's industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'. Example: resolve 'Technology' to get industry IDs.
1173
+ */
1174
+ authorIndustry?: Array<string> | undefined;
1175
+ /**
1176
+ * Filter by the post author's company. Array of LinkedIn company IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='COMPANY'. Example: resolve 'Google' to get company ID '1441'.
1177
+ */
1178
+ authorCompany?: Array<string> | undefined;
1179
+ /**
1180
+ * Pagination offset (default 0). Use multiples of `count` to page through results. Example: start=0 for page 1, start=10 for page 2 (with count=10).
1181
+ */
1182
+ start?: number | undefined;
1183
+ /**
1184
+ * Results per page (default 10, max 50). Controls how many posts are returned per request.
1185
+ */
1186
+ count?: number | undefined;
1187
+ };
1188
+
1189
+ export const SearchLinkedInPostsCategory = {
1190
+ Posts: "posts",
1191
+ } as const;
1192
+ export type SearchLinkedInPostsCategory = ClosedEnum<
1193
+ typeof SearchLinkedInPostsCategory
1194
+ >;
1195
+
1196
+ export const SearchLinkedInPostsType = {
1197
+ Post: "POST",
1198
+ } as const;
1199
+ export type SearchLinkedInPostsType = ClosedEnum<
1200
+ typeof SearchLinkedInPostsType
1201
+ >;
1202
+
1203
+ export type SearchLinkedInPostsAuthor = {
1204
+ name: string;
1205
+ profileUrl: string | null;
1206
+ headline: string | null;
1207
+ profilePicture: string | null;
1208
+ isCompany: boolean;
1209
+ };
1210
+
1211
+ export type SearchLinkedInPostsItem = {
1212
+ type: SearchLinkedInPostsType;
1213
+ postUrl: string;
1214
+ text: string;
1215
+ date: number;
1216
+ likesCount: number;
1217
+ commentsCount: number;
1218
+ sharesCount: number;
1219
+ postUrn: string;
1220
+ postId: string;
1221
+ author: SearchLinkedInPostsAuthor;
1222
+ isRepost: boolean;
1223
+ };
1224
+
1225
+ export type SearchLinkedInPostsPaging = {
1226
+ start: number;
1227
+ count: number;
1228
+ total: number;
1229
+ };
1230
+
1231
+ /**
1232
+ * List of LinkedIn posts matching the search criteria
1233
+ */
1234
+ export type SearchLinkedInPostsResponse = {
1235
+ success: boolean;
1236
+ category: SearchLinkedInPostsCategory;
1237
+ items: Array<SearchLinkedInPostsItem>;
1238
+ paging: SearchLinkedInPostsPaging;
1239
+ hasMore: boolean;
1240
+ /**
1241
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1242
+ */
1243
+ creditsUsed: number;
1244
+ /**
1245
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1246
+ */
1247
+ retryAfter: number;
1248
+ };
1249
+
1250
+ export const SearchLinkedInPeopleConnectionDegree = {
1251
+ F: "F",
1252
+ S: "S",
1253
+ O: "O",
1254
+ } as const;
1255
+ export type SearchLinkedInPeopleConnectionDegree = ClosedEnum<
1256
+ typeof SearchLinkedInPeopleConnectionDegree
1257
+ >;
1258
+
1259
+ export type SearchLinkedInPeopleRequest = {
1260
+ /**
1261
+ * Search keywords. Matches against name, headline, company, skills, and bio. Optional — you can search by filters alone (e.g. all 2nd-degree connections in Paris). Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "product manager"), AND to require both terms, OR for alternatives (e.g. CEO OR founder OR CTO), NOT to exclude (e.g. manager NOT assistant), and parentheses to group (e.g. (CEO OR CTO) AND SaaS). Operators must be UPPERCASE.
1262
+ */
1263
+ keywords?: string | undefined;
1264
+ /**
1265
+ * Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
1266
+ */
1267
+ url?: string | undefined;
1268
+ /**
1269
+ * Filter by connection degree. 'F' = 1st degree (your direct connections), 'S' = 2nd degree (connections of connections), 'O' = 3rd+ degree and out of network. Accepts multiple values, e.g. ['F','S'] for 1st and 2nd degree.
1270
+ */
1271
+ connectionDegree?: Array<SearchLinkedInPeopleConnectionDegree> | undefined;
1272
+ /**
1273
+ * Filter by first name. Exact match (case-insensitive).
1274
+ */
1275
+ firstName?: string | undefined;
1276
+ /**
1277
+ * Filter by last name. Exact match (case-insensitive).
1278
+ */
1279
+ lastName?: string | undefined;
1280
+ /**
1281
+ * Filter by current job title. Matches against the person's current position title. Supports boolean OR syntax with '|' separator. Example: 'CEO|CTO|Founder' finds people with any of these titles.
1282
+ */
1283
+ title?: string | undefined;
1284
+ /**
1285
+ * Find connections of a specific person. Pass the person's LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAABZ0Qo4B...'). Returns people who are connected to this person.
1286
+ */
1287
+ connectionOf?: string | undefined;
1288
+ /**
1289
+ * Filter by LinkedIn profile language. Array of ISO 639-1 codes. Example: ['en'] for English profiles, ['en','fr'] for English or French profiles.
1290
+ */
1291
+ profileLanguage?: Array<string> | undefined;
1292
+ /**
1293
+ * Filter by school/university. Array of LinkedIn school IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='SCHOOL'. Example: resolve 'Harvard' to get school IDs.
1294
+ */
1295
+ school?: Array<string> | undefined;
1296
+ /**
1297
+ * Filter by geographic location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'. Example: resolve 'San Francisco' → '102277331'.
1298
+ */
1299
+ location?: Array<string> | undefined;
1300
+ /**
1301
+ * Filter by industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'.
1302
+ */
1303
+ industry?: Array<string> | undefined;
1304
+ /**
1305
+ * Filter by current employer. Array of LinkedIn company IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='COMPANY'. Example: resolve 'Google' → '1441'.
1306
+ */
1307
+ currentCompany?: Array<string> | undefined;
1308
+ /**
1309
+ * Filter by past employer. Array of LinkedIn company IDs. Finds people who previously worked at these companies.
1310
+ */
1311
+ pastCompany?: Array<string> | undefined;
1312
+ /**
1313
+ * Pagination offset (default 0). Use multiples of `count` to page through results.
1314
+ */
1315
+ start?: number | undefined;
1316
+ /**
1317
+ * Results per page (default 10, max 50).
1318
+ */
1319
+ count?: number | undefined;
1320
+ };
1321
+
1322
+ export const SearchLinkedInPeopleCategory = {
1323
+ People: "people",
1324
+ } as const;
1325
+ export type SearchLinkedInPeopleCategory = ClosedEnum<
1326
+ typeof SearchLinkedInPeopleCategory
1327
+ >;
1328
+
1329
+ export const SearchLinkedInPeopleType = {
1330
+ People: "PEOPLE",
1331
+ } as const;
1332
+ export type SearchLinkedInPeopleType = ClosedEnum<
1333
+ typeof SearchLinkedInPeopleType
1334
+ >;
1335
+
1336
+ export const SearchLinkedInPeopleNetworkDistance = {
1337
+ Distance1: "DISTANCE_1",
1338
+ Distance2: "DISTANCE_2",
1339
+ Distance3: "DISTANCE_3",
1340
+ OutOfNetwork: "OUT_OF_NETWORK",
1341
+ } as const;
1342
+ export type SearchLinkedInPeopleNetworkDistance = OpenEnum<
1343
+ typeof SearchLinkedInPeopleNetworkDistance
1344
+ >;
1345
+
1346
+ export type SearchLinkedInPeopleCurrentPosition = {
1347
+ company: string | null;
1348
+ role: string | null;
1349
+ };
1350
+
1351
+ export type SearchLinkedInPeopleItem = {
1352
+ type: SearchLinkedInPeopleType;
1353
+ name: string;
1354
+ profileUrl: string;
1355
+ headline: string | null;
1356
+ location: string | null;
1357
+ profilePicture: string | null;
1358
+ networkDistance: SearchLinkedInPeopleNetworkDistance | null;
1359
+ currentPositions: Array<SearchLinkedInPeopleCurrentPosition>;
1360
+ };
1361
+
1362
+ export type SearchLinkedInPeoplePaging = {
1363
+ start: number;
1364
+ count: number;
1365
+ total: number;
1366
+ };
1367
+
1368
+ /**
1369
+ * List of LinkedIn people matching the search criteria
1370
+ */
1371
+ export type SearchLinkedInPeopleResponse = {
1372
+ success: boolean;
1373
+ category: SearchLinkedInPeopleCategory;
1374
+ items: Array<SearchLinkedInPeopleItem>;
1375
+ paging: SearchLinkedInPeoplePaging;
1376
+ hasMore: boolean;
1377
+ /**
1378
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1379
+ */
1380
+ creditsUsed: number;
1381
+ /**
1382
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1383
+ */
1384
+ retryAfter: number;
1385
+ };
1386
+
1387
+ export const SearchLinkedInCompaniesCompanySize = {
1388
+ A: "A",
1389
+ B: "B",
1390
+ C: "C",
1391
+ D: "D",
1392
+ E: "E",
1393
+ F: "F",
1394
+ G: "G",
1395
+ H: "H",
1396
+ I: "I",
1397
+ } as const;
1398
+ export type SearchLinkedInCompaniesCompanySize = ClosedEnum<
1399
+ typeof SearchLinkedInCompaniesCompanySize
1400
+ >;
1401
+
1402
+ export type SearchLinkedInCompaniesRequest = {
1403
+ /**
1404
+ * Search keywords. Matches against company name, description, and specialties. Optional — you can search by filters alone. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "artificial intelligence"), AND to require both terms, OR for alternatives (e.g. SaaS OR "cloud computing"), NOT to exclude (e.g. consulting NOT staffing), and parentheses to group (e.g. (AI OR ML) AND healthcare). Operators must be UPPERCASE.
1405
+ */
1406
+ keywords?: string | undefined;
1407
+ /**
1408
+ * Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
1409
+ */
1410
+ url?: string | undefined;
1411
+ /**
1412
+ * Filter by company HQ location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'.
1413
+ */
1414
+ location?: Array<string> | undefined;
1415
+ /**
1416
+ * Filter by company industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'.
1417
+ */
1418
+ industry?: Array<string> | undefined;
1419
+ /**
1420
+ * Filter by employee count. Multiple values accepted (OR logic). Codes: A=1-10 employees, B=11-50, C=51-200, D=201-500, E=501-1,000, F=1,001-5,000, G=5,001-10,000, H=10,001+, I=Self-employed.
1421
+ */
1422
+ companySize?: Array<SearchLinkedInCompaniesCompanySize> | undefined;
1423
+ /**
1424
+ * Pagination offset (default 0). Use multiples of `count` to page through results.
1425
+ */
1426
+ start?: number | undefined;
1427
+ /**
1428
+ * Results per page (default 10, max 50).
1429
+ */
1430
+ count?: number | undefined;
1431
+ };
1432
+
1433
+ export const SearchLinkedInCompaniesCategory = {
1434
+ Companies: "companies",
1435
+ } as const;
1436
+ export type SearchLinkedInCompaniesCategory = ClosedEnum<
1437
+ typeof SearchLinkedInCompaniesCategory
1438
+ >;
1439
+
1440
+ export const SearchLinkedInCompaniesType = {
1441
+ Company: "COMPANY",
1442
+ } as const;
1443
+ export type SearchLinkedInCompaniesType = ClosedEnum<
1444
+ typeof SearchLinkedInCompaniesType
1445
+ >;
1446
+
1447
+ export type SearchLinkedInCompaniesItem = {
1448
+ type: SearchLinkedInCompaniesType;
1449
+ name: string;
1450
+ profileUrl: string;
1451
+ summary: string | null;
1452
+ industry: string | null;
1453
+ location: string | null;
1454
+ followersCount: number | null;
1455
+ };
1456
+
1457
+ export type SearchLinkedInCompaniesPaging = {
1458
+ start: number;
1459
+ count: number;
1460
+ total: number;
1461
+ };
1462
+
1463
+ /**
1464
+ * List of LinkedIn companies matching the search criteria
1465
+ */
1466
+ export type SearchLinkedInCompaniesResponse = {
1467
+ success: boolean;
1468
+ category: SearchLinkedInCompaniesCategory;
1469
+ items: Array<SearchLinkedInCompaniesItem>;
1470
+ paging: SearchLinkedInCompaniesPaging;
1471
+ hasMore: boolean;
1472
+ /**
1473
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1474
+ */
1475
+ creditsUsed: number;
1476
+ /**
1477
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1478
+ */
1479
+ retryAfter: number;
1480
+ };
1481
+
1482
+ /**
1483
+ * Filter by posting date. Useful for finding recently posted jobs.
1484
+ */
1485
+ export const SearchLinkedInJobsDatePosted = {
1486
+ Past24h: "past-24h",
1487
+ PastWeek: "past-week",
1488
+ PastMonth: "past-month",
1489
+ } as const;
1490
+ /**
1491
+ * Filter by posting date. Useful for finding recently posted jobs.
1492
+ */
1493
+ export type SearchLinkedInJobsDatePosted = ClosedEnum<
1494
+ typeof SearchLinkedInJobsDatePosted
1495
+ >;
1496
+
1497
+ /**
1498
+ * Sort order. 'relevance' (default) or 'date' (most recent first).
1499
+ */
1500
+ export const SearchLinkedInJobsSortBy = {
1501
+ Relevance: "relevance",
1502
+ Date: "date",
1503
+ } as const;
1504
+ /**
1505
+ * Sort order. 'relevance' (default) or 'date' (most recent first).
1506
+ */
1507
+ export type SearchLinkedInJobsSortBy = ClosedEnum<
1508
+ typeof SearchLinkedInJobsSortBy
1509
+ >;
1510
+
1511
+ export const SearchLinkedInJobsJobType = {
1512
+ F: "F",
1513
+ P: "P",
1514
+ C: "C",
1515
+ T: "T",
1516
+ I: "I",
1517
+ V: "V",
1518
+ O: "O",
1519
+ } as const;
1520
+ export type SearchLinkedInJobsJobType = ClosedEnum<
1521
+ typeof SearchLinkedInJobsJobType
1522
+ >;
1523
+
1524
+ export const SearchLinkedInJobsExperienceLevel = {
1525
+ One: "1",
1526
+ Two: "2",
1527
+ Three: "3",
1528
+ Four: "4",
1529
+ Five: "5",
1530
+ Six: "6",
1531
+ } as const;
1532
+ export type SearchLinkedInJobsExperienceLevel = ClosedEnum<
1533
+ typeof SearchLinkedInJobsExperienceLevel
1534
+ >;
1535
+
1536
+ export const SearchLinkedInJobsWorkplaceType = {
1537
+ One: "1",
1538
+ Two: "2",
1539
+ Three: "3",
1540
+ } as const;
1541
+ export type SearchLinkedInJobsWorkplaceType = ClosedEnum<
1542
+ typeof SearchLinkedInJobsWorkplaceType
1543
+ >;
1544
+
1545
+ export type SearchLinkedInJobsRequest = {
1546
+ /**
1547
+ * Search keywords. Matches against job title, company name, and description. Optional — you can search by filters alone. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "frontend engineer"), AND to require both terms, OR for alternatives (e.g. React OR Vue OR Angular), NOT to exclude (e.g. engineer NOT intern), and parentheses to group (e.g. (React OR Vue) AND "senior engineer"). Operators must be UPPERCASE.
1548
+ */
1549
+ keywords?: string | undefined;
1550
+ /**
1551
+ * Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
1552
+ */
1553
+ url?: string | undefined;
1554
+ /**
1555
+ * Filter by job location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'.
1556
+ */
1557
+ location?: Array<string> | undefined;
1558
+ /**
1559
+ * Filter by posting date. Useful for finding recently posted jobs.
1560
+ */
1561
+ datePosted?: SearchLinkedInJobsDatePosted | undefined;
1562
+ /**
1563
+ * Sort order. 'relevance' (default) or 'date' (most recent first).
1564
+ */
1565
+ sortBy?: SearchLinkedInJobsSortBy | undefined;
1566
+ /**
1567
+ * Filter by employment type. Multiple values accepted (OR logic). Codes: F=Full-time, P=Part-time, C=Contract, T=Temporary, I=Internship, V=Volunteer, O=Other.
1568
+ */
1569
+ jobType?: Array<SearchLinkedInJobsJobType> | undefined;
1570
+ /**
1571
+ * Filter by seniority. Multiple values accepted (OR logic). Codes: 1=Internship, 2=Entry level, 3=Associate, 4=Mid-Senior level, 5=Director, 6=Executive.
1572
+ */
1573
+ experienceLevel?: Array<SearchLinkedInJobsExperienceLevel> | undefined;
1574
+ /**
1575
+ * Filter by workplace type. Multiple values accepted (OR logic). Codes: 1=On-site, 2=Remote, 3=Hybrid.
1576
+ */
1577
+ workplaceType?: Array<SearchLinkedInJobsWorkplaceType> | undefined;
1578
+ /**
1579
+ * Pagination offset (default 0). Use multiples of `count` to page through results.
1580
+ */
1581
+ start?: number | undefined;
1582
+ /**
1583
+ * Results per page (default 10, max 50).
1584
+ */
1585
+ count?: number | undefined;
1586
+ };
1587
+
1588
+ export const SearchLinkedInJobsCategory = {
1589
+ Jobs: "jobs",
1590
+ } as const;
1591
+ export type SearchLinkedInJobsCategory = ClosedEnum<
1592
+ typeof SearchLinkedInJobsCategory
1593
+ >;
1594
+
1595
+ export const SearchLinkedInJobsType = {
1596
+ Job: "JOB",
1597
+ } as const;
1598
+ export type SearchLinkedInJobsType = ClosedEnum<typeof SearchLinkedInJobsType>;
1599
+
1600
+ export type SearchLinkedInJobsItem = {
1601
+ type: SearchLinkedInJobsType;
1602
+ title: string;
1603
+ company: string | null;
1604
+ companyUrl: string | null;
1605
+ companyLogo: string | null;
1606
+ location: string | null;
1607
+ workplaceType: string | null;
1608
+ postedAt: string | null;
1609
+ jobUrl: string;
1610
+ listingId: string;
1611
+ };
1612
+
1613
+ export type SearchLinkedInJobsPaging = {
1614
+ start: number;
1615
+ count: number;
1616
+ total: number;
1617
+ };
1618
+
1619
+ /**
1620
+ * List of LinkedIn job listings matching the search criteria
1621
+ */
1622
+ export type SearchLinkedInJobsResponse = {
1623
+ success: boolean;
1624
+ category: SearchLinkedInJobsCategory;
1625
+ items: Array<SearchLinkedInJobsItem>;
1626
+ paging: SearchLinkedInJobsPaging;
1627
+ hasMore: boolean;
1628
+ /**
1629
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1630
+ */
1631
+ creditsUsed: number;
1632
+ /**
1633
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1634
+ */
1635
+ retryAfter: number;
1636
+ };
1637
+
1638
+ export type SearchLinkedInByUrlRequest = {
1639
+ /**
1640
+ * A LinkedIn search URL. The endpoint automatically extracts the category, keywords, and all filters from the URL. Example: 'https://www.linkedin.com/search/results/people/?keywords=engineer&network=%5B%22S%22%5D'
1641
+ */
1642
+ url: string;
1643
+ /**
1644
+ * Override pagination offset. If not provided, uses the page from the URL (or defaults to 0).
1645
+ */
1646
+ start?: number | undefined;
1647
+ /**
1648
+ * Override results per page (default 10, max 50).
1649
+ */
1650
+ count?: number | undefined;
1651
+ };
1652
+
1653
+ export const SearchLinkedInByUrlCategory = {
1654
+ Posts: "posts",
1655
+ People: "people",
1656
+ Companies: "companies",
1657
+ Jobs: "jobs",
1658
+ } as const;
1659
+ export type SearchLinkedInByUrlCategory = OpenEnum<
1660
+ typeof SearchLinkedInByUrlCategory
1661
+ >;
1662
+
1663
+ export const SearchLinkedInByUrlTypeJob = {
1664
+ Job: "JOB",
1665
+ } as const;
1666
+ export type SearchLinkedInByUrlTypeJob = ClosedEnum<
1667
+ typeof SearchLinkedInByUrlTypeJob
1668
+ >;
1669
+
1670
+ export type SearchLinkedInByUrlItemsJob = {
1671
+ type: SearchLinkedInByUrlTypeJob;
1672
+ title: string;
1673
+ company: string | null;
1674
+ companyUrl: string | null;
1675
+ companyLogo: string | null;
1676
+ location: string | null;
1677
+ workplaceType: string | null;
1678
+ postedAt: string | null;
1679
+ jobUrl: string;
1680
+ listingId: string;
1681
+ };
1682
+
1683
+ export const SearchLinkedInByUrlTypeCompany = {
1684
+ Company: "COMPANY",
1685
+ } as const;
1686
+ export type SearchLinkedInByUrlTypeCompany = ClosedEnum<
1687
+ typeof SearchLinkedInByUrlTypeCompany
1688
+ >;
1689
+
1690
+ export type SearchLinkedInByUrlItemsCompany = {
1691
+ type: SearchLinkedInByUrlTypeCompany;
1692
+ name: string;
1693
+ profileUrl: string;
1694
+ summary: string | null;
1695
+ industry: string | null;
1696
+ location: string | null;
1697
+ followersCount: number | null;
1698
+ };
1699
+
1700
+ export const SearchLinkedInByUrlTypePeople = {
1701
+ People: "PEOPLE",
1702
+ } as const;
1703
+ export type SearchLinkedInByUrlTypePeople = ClosedEnum<
1704
+ typeof SearchLinkedInByUrlTypePeople
1705
+ >;
1706
+
1707
+ export const SearchLinkedInByUrlNetworkDistance = {
1708
+ Distance1: "DISTANCE_1",
1709
+ Distance2: "DISTANCE_2",
1710
+ Distance3: "DISTANCE_3",
1711
+ OutOfNetwork: "OUT_OF_NETWORK",
1712
+ } as const;
1713
+ export type SearchLinkedInByUrlNetworkDistance = OpenEnum<
1714
+ typeof SearchLinkedInByUrlNetworkDistance
1715
+ >;
1716
+
1717
+ export type SearchLinkedInByUrlCurrentPosition = {
1718
+ company: string | null;
1719
+ role: string | null;
1720
+ };
1721
+
1722
+ export type SearchLinkedInByUrlItemsPeople = {
1723
+ type: SearchLinkedInByUrlTypePeople;
1724
+ name: string;
1725
+ profileUrl: string;
1726
+ headline: string | null;
1727
+ location: string | null;
1728
+ profilePicture: string | null;
1729
+ networkDistance: SearchLinkedInByUrlNetworkDistance | null;
1730
+ currentPositions: Array<SearchLinkedInByUrlCurrentPosition>;
1731
+ };
1732
+
1733
+ export const SearchLinkedInByUrlTypePost = {
1734
+ Post: "POST",
1735
+ } as const;
1736
+ export type SearchLinkedInByUrlTypePost = ClosedEnum<
1737
+ typeof SearchLinkedInByUrlTypePost
1738
+ >;
1739
+
1740
+ export type SearchLinkedInByUrlAuthor = {
1741
+ name: string;
1742
+ profileUrl: string | null;
1743
+ headline: string | null;
1744
+ profilePicture: string | null;
1745
+ isCompany: boolean;
1746
+ };
1747
+
1748
+ export type SearchLinkedInByUrlItemsPost = {
1749
+ type: SearchLinkedInByUrlTypePost;
1750
+ postUrl: string;
1751
+ text: string;
1752
+ date: number;
1753
+ likesCount: number;
1754
+ commentsCount: number;
1755
+ sharesCount: number;
1756
+ postUrn: string;
1757
+ postId: string;
1758
+ author: SearchLinkedInByUrlAuthor;
1759
+ isRepost: boolean;
1760
+ };
1761
+
1762
+ export type SearchLinkedInByUrlItemsUnion =
1763
+ | Array<SearchLinkedInByUrlItemsPost>
1764
+ | Array<SearchLinkedInByUrlItemsPeople>
1765
+ | Array<SearchLinkedInByUrlItemsCompany>
1766
+ | Array<SearchLinkedInByUrlItemsJob>;
1767
+
1768
+ export type SearchLinkedInByUrlPaging = {
1769
+ start: number;
1770
+ count: number;
1771
+ total: number;
1772
+ };
1773
+
1774
+ /**
1775
+ * Search results parsed from the LinkedIn URL
1776
+ */
1777
+ export type SearchLinkedInByUrlResponse = {
1778
+ success: boolean;
1779
+ category: SearchLinkedInByUrlCategory;
1780
+ items:
1781
+ | Array<SearchLinkedInByUrlItemsPost>
1782
+ | Array<SearchLinkedInByUrlItemsPeople>
1783
+ | Array<SearchLinkedInByUrlItemsCompany>
1784
+ | Array<SearchLinkedInByUrlItemsJob>;
1785
+ paging: SearchLinkedInByUrlPaging;
1786
+ hasMore: boolean;
1787
+ /**
1788
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1789
+ */
1790
+ creditsUsed: number;
1791
+ /**
1792
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1793
+ */
1794
+ retryAfter: number;
1795
+ };
1796
+
1797
+ /**
1798
+ * Parameter type to resolve
1799
+ */
1800
+ export const ResolveLinkedInSearchParametersType = {
1801
+ Geo: "GEO",
1802
+ Company: "COMPANY",
1803
+ Industry: "INDUSTRY",
1804
+ School: "SCHOOL",
1805
+ Connections: "CONNECTIONS",
1806
+ People: "PEOPLE",
1807
+ } as const;
1808
+ /**
1809
+ * Parameter type to resolve
1810
+ */
1811
+ export type ResolveLinkedInSearchParametersType = ClosedEnum<
1812
+ typeof ResolveLinkedInSearchParametersType
1813
+ >;
1814
+
1815
+ export type ResolveLinkedInSearchParametersRequest = {
1816
+ /**
1817
+ * Parameter type to resolve
1818
+ */
1819
+ type: ResolveLinkedInSearchParametersType;
1820
+ /**
1821
+ * Text to resolve into LinkedIn IDs
1822
+ */
1823
+ keywords: string;
1824
+ /**
1825
+ * Max results (default 10, max 50)
1826
+ */
1827
+ limit?: number | undefined;
1828
+ };
1829
+
1830
+ export type ResolveLinkedInSearchParametersItem = {
1831
+ id: string;
1832
+ title: string;
1833
+ type: string;
1834
+ };
1835
+
1836
+ /**
1837
+ * Resolved search parameter items
1838
+ */
1839
+ export type ResolveLinkedInSearchParametersResponse = {
1840
+ success: boolean;
1841
+ items: Array<ResolveLinkedInSearchParametersItem>;
1842
+ count: number;
1843
+ /**
1844
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1845
+ */
1846
+ creditsUsed: number;
1847
+ /**
1848
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1849
+ */
1850
+ retryAfter: number;
1851
+ };
1852
+
1853
+ export type ConnectLinkedInProfileRequest = {
1854
+ /**
1855
+ * LinkedIn profile URL (e.g., 'https://www.linkedin.com/in/username') or profile URN (e.g., 'urn:li:fsd_profile:ACoAABZ0Qo4B6pt58d4FVmts1F7TPi4D1-uL1fw')
1856
+ */
1857
+ profile: string;
1858
+ /**
1859
+ * Campaign identifier for deduplication. Dedup by profile automatically.
1860
+ */
1861
+ campaignSlug?: string | undefined;
1862
+ /**
1863
+ * Deprecated. Use campaignSlug only.
1864
+ *
1865
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1866
+ */
1867
+ actionSlug?: string | undefined;
1868
+ };
1869
+
1870
+ /**
1871
+ * Connection request sent successfully
1872
+ */
1873
+ export type ConnectLinkedInProfileResponse = {
1874
+ success: boolean;
1875
+ message: string;
1876
+ /**
1877
+ * True if a connection request was already successfully sent to this profile this week
1878
+ */
1879
+ duplicate?: boolean | undefined;
1880
+ /**
1881
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1882
+ */
1883
+ creditsUsed: number;
1884
+ /**
1885
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1886
+ */
1887
+ retryAfter: number;
1888
+ };
1889
+
1890
+ export type ListLinkedInInvitationsRequest = {
1891
+ /**
1892
+ * Pagination offset (0-based)
1893
+ */
1894
+ start?: number | undefined;
1895
+ /**
1896
+ * Number of invitations to return (max 100)
1897
+ */
1898
+ count?: number | undefined;
1899
+ };
1900
+
1901
+ /**
1902
+ * Profile info of the person who sent the invitation
1903
+ */
1904
+ export type FromMember = {
1905
+ name?: string | null | undefined;
1906
+ headline?: string | null | undefined;
1907
+ profileUrl?: string | null | undefined;
1908
+ profilePicture?: string | null | undefined;
1909
+ };
1910
+
1911
+ export type Invitation = {
1912
+ /**
1913
+ * Invitation ID needed for accepting
1914
+ */
1915
+ invitationId: string;
1916
+ /**
1917
+ * Shared secret needed for accepting
1918
+ */
1919
+ sharedSecret: string;
1920
+ /**
1921
+ * Full invitation URN
1922
+ */
1923
+ entityUrn: string;
1924
+ /**
1925
+ * ISO 8601 timestamp when invitation was sent
1926
+ */
1927
+ sentAt?: string | null | undefined;
1928
+ /**
1929
+ * Custom message included with the invitation
1930
+ */
1931
+ message?: string | null | undefined;
1932
+ /**
1933
+ * Sender's profile ID (pass to accept endpoint)
1934
+ */
1935
+ senderProfileId?: string | null | undefined;
1936
+ /**
1937
+ * Sender's first name (pass to accept endpoint)
1938
+ */
1939
+ senderFirstName?: string | null | undefined;
1940
+ /**
1941
+ * Sender's last name (pass to accept endpoint)
1942
+ */
1943
+ senderLastName?: string | null | undefined;
1944
+ /**
1945
+ * Profile info of the person who sent the invitation
1946
+ */
1947
+ fromMember?: FromMember | null | undefined;
1948
+ };
1949
+
1950
+ /**
1951
+ * List of pending invitations
1952
+ */
1953
+ export type ListLinkedInInvitationsResponse = {
1954
+ success: boolean;
1955
+ invitations: Array<Invitation>;
1956
+ /**
1957
+ * Total number of pending invitations
1958
+ */
1959
+ total: number;
1960
+ start: number;
1961
+ count: number;
1962
+ /**
1963
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1964
+ */
1965
+ creditsUsed: number;
1966
+ /**
1967
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1968
+ */
1969
+ retryAfter: number;
1970
+ };
1971
+
1972
+ export type AcceptLinkedInInvitationRequest = {
1973
+ /**
1974
+ * Invitation ID (from the list invitations endpoint)
1975
+ */
1976
+ invitationId: string;
1977
+ /**
1978
+ * Shared secret / validation token (from the list invitations endpoint)
1979
+ */
1980
+ sharedSecret: string;
1981
+ /**
1982
+ * Sender's profile ID (from the list invitations endpoint, e.g. 'ACoAAB6pI5sB...'). Recommended for reliability.
1983
+ */
1984
+ senderProfileId?: string | undefined;
1985
+ /**
1986
+ * Sender's first name (from the list invitations endpoint). Recommended for reliability.
1987
+ */
1988
+ firstName?: string | undefined;
1989
+ /**
1990
+ * Sender's last name (from the list invitations endpoint). Recommended for reliability.
1991
+ */
1992
+ lastName?: string | undefined;
1993
+ };
1994
+
1995
+ /**
1996
+ * Invitation accepted successfully
1997
+ */
1998
+ export type AcceptLinkedInInvitationResponse = {
1999
+ success: boolean;
2000
+ message: string;
2001
+ /**
2002
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
2003
+ */
2004
+ creditsUsed: number;
2005
+ /**
2006
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
2007
+ */
2008
+ retryAfter: number;
2009
+ };
2010
+
2011
+ export type SendLinkedInMessageRequest = {
2012
+ /**
2013
+ * LinkedIn profile URL (e.g., 'https://www.linkedin.com/in/username') or profile URN (e.g., 'urn:li:member:123456')
2014
+ */
2015
+ profile: string;
2016
+ /**
2017
+ * Message content to send
2018
+ */
2019
+ message: string;
2020
+ /**
2021
+ * Campaign identifier for deduplication. Dedup by profile automatically.
2022
+ */
2023
+ campaignSlug?: string | undefined;
2024
+ /**
2025
+ * Deprecated. Use campaignSlug only.
2026
+ *
2027
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
2028
+ */
2029
+ actionSlug?: string | undefined;
2030
+ };
2031
+
2032
+ /**
2033
+ * Message sent successfully
2034
+ */
2035
+ export type SendLinkedInMessageResponse = {
2036
+ success: boolean;
2037
+ messageId: string;
2038
+ /**
2039
+ * True if this action was already executed for the given campaignSlug + target.
2040
+ */
2041
+ duplicate?: boolean | undefined;
2042
+ /**
2043
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
2044
+ */
2045
+ creditsUsed: number;
2046
+ /**
2047
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
2048
+ */
2049
+ retryAfter: number;
2050
+ };
2051
+
2052
+ /** @internal */
2053
+ export type CollectLinkedInLikesRequest$Outbound = {
2054
+ postUrl: string;
2055
+ start?: number | undefined;
2056
+ count?: number | undefined;
2057
+ };
2058
+
2059
+ /** @internal */
2060
+ export const CollectLinkedInLikesRequest$outboundSchema: z.ZodMiniType<
2061
+ CollectLinkedInLikesRequest$Outbound,
2062
+ CollectLinkedInLikesRequest
2063
+ > = z.object({
2064
+ postUrl: z.string(),
2065
+ start: z.optional(z.int()),
2066
+ count: z.optional(z.int()),
2067
+ });
2068
+
2069
+ export function collectLinkedInLikesRequestToJSON(
2070
+ collectLinkedInLikesRequest: CollectLinkedInLikesRequest,
2071
+ ): string {
2072
+ return JSON.stringify(
2073
+ CollectLinkedInLikesRequest$outboundSchema.parse(
2074
+ collectLinkedInLikesRequest,
2075
+ ),
2076
+ );
2077
+ }
2078
+
2079
+ /** @internal */
2080
+ export const CollectLinkedInLikesInternalServerErrorDetails$inboundSchema:
2081
+ z.ZodMiniType<CollectLinkedInLikesInternalServerErrorDetails, unknown> =
2082
+ smartUnion([types.string(), z.array(types.string())]);
2083
+
2084
+ export function collectLinkedInLikesInternalServerErrorDetailsFromJSON(
2085
+ jsonString: string,
2086
+ ): SafeParseResult<
2087
+ CollectLinkedInLikesInternalServerErrorDetails,
2088
+ SDKValidationError
2089
+ > {
2090
+ return safeParse(
2091
+ jsonString,
2092
+ (x) =>
2093
+ CollectLinkedInLikesInternalServerErrorDetails$inboundSchema.parse(
2094
+ JSON.parse(x),
2095
+ ),
2096
+ `Failed to parse 'CollectLinkedInLikesInternalServerErrorDetails' from JSON`,
2097
+ );
2098
+ }
2099
+
2100
+ /** @internal */
2101
+ export const CollectLinkedInLikesInternalServerErrorError$inboundSchema:
2102
+ z.ZodMiniType<CollectLinkedInLikesInternalServerErrorError, unknown> = z
2103
+ .object({
2104
+ code: types.string(),
2105
+ message: types.string(),
2106
+ docs: types.optional(types.string()),
2107
+ details: types.optional(
2108
+ smartUnion([types.string(), z.array(types.string())]),
2109
+ ),
2110
+ });
2111
+
2112
+ export function collectLinkedInLikesInternalServerErrorErrorFromJSON(
2113
+ jsonString: string,
2114
+ ): SafeParseResult<
2115
+ CollectLinkedInLikesInternalServerErrorError,
2116
+ SDKValidationError
2117
+ > {
2118
+ return safeParse(
2119
+ jsonString,
2120
+ (x) =>
2121
+ CollectLinkedInLikesInternalServerErrorError$inboundSchema.parse(
2122
+ JSON.parse(x),
2123
+ ),
2124
+ `Failed to parse 'CollectLinkedInLikesInternalServerErrorError' from JSON`,
2125
+ );
2126
+ }
2127
+
2128
+ /** @internal */
2129
+ export const CollectLinkedInLikesCode$inboundSchema: z.ZodMiniEnum<
2130
+ typeof CollectLinkedInLikesCode
2131
+ > = z.enum(CollectLinkedInLikesCode);
2132
+
2133
+ /** @internal */
2134
+ export const CollectLinkedInLikesDaily$inboundSchema: z.ZodMiniType<
2135
+ CollectLinkedInLikesDaily,
2136
+ unknown
2137
+ > = z.object({
2138
+ current: types.number(),
2139
+ limit: types.number(),
2140
+ });
2141
+
2142
+ export function collectLinkedInLikesDailyFromJSON(
2143
+ jsonString: string,
2144
+ ): SafeParseResult<CollectLinkedInLikesDaily, SDKValidationError> {
2145
+ return safeParse(
2146
+ jsonString,
2147
+ (x) => CollectLinkedInLikesDaily$inboundSchema.parse(JSON.parse(x)),
2148
+ `Failed to parse 'CollectLinkedInLikesDaily' from JSON`,
2149
+ );
2150
+ }
2151
+
2152
+ /** @internal */
2153
+ export const CollectLinkedInLikesWeekly$inboundSchema: z.ZodMiniType<
2154
+ CollectLinkedInLikesWeekly,
2155
+ unknown
2156
+ > = z.object({
2157
+ current: types.number(),
2158
+ limit: types.number(),
2159
+ });
2160
+
2161
+ export function collectLinkedInLikesWeeklyFromJSON(
2162
+ jsonString: string,
2163
+ ): SafeParseResult<CollectLinkedInLikesWeekly, SDKValidationError> {
2164
+ return safeParse(
2165
+ jsonString,
2166
+ (x) => CollectLinkedInLikesWeekly$inboundSchema.parse(JSON.parse(x)),
2167
+ `Failed to parse 'CollectLinkedInLikesWeekly' from JSON`,
2168
+ );
2169
+ }
2170
+
2171
+ /** @internal */
2172
+ export const CollectLinkedInLikesTooManyRequestsError$inboundSchema:
2173
+ z.ZodMiniType<CollectLinkedInLikesTooManyRequestsError, unknown> = z.object({
2174
+ code: CollectLinkedInLikesCode$inboundSchema,
2175
+ message: types.string(),
2176
+ docs: types.optional(types.string()),
2177
+ retryAfter: types.number(),
2178
+ daily: types.nullable(
2179
+ z.lazy(() => CollectLinkedInLikesDaily$inboundSchema),
2180
+ ),
2181
+ weekly: types.nullable(
2182
+ z.lazy(() => CollectLinkedInLikesWeekly$inboundSchema),
2183
+ ),
2184
+ });
2185
+
2186
+ export function collectLinkedInLikesTooManyRequestsErrorFromJSON(
2187
+ jsonString: string,
2188
+ ): SafeParseResult<
2189
+ CollectLinkedInLikesTooManyRequestsError,
2190
+ SDKValidationError
2191
+ > {
2192
+ return safeParse(
2193
+ jsonString,
2194
+ (x) =>
2195
+ CollectLinkedInLikesTooManyRequestsError$inboundSchema.parse(
2196
+ JSON.parse(x),
2197
+ ),
2198
+ `Failed to parse 'CollectLinkedInLikesTooManyRequestsError' from JSON`,
2199
+ );
2200
+ }
2201
+
2202
+ /** @internal */
2203
+ export const CollectLinkedInLikesUnprocessableEntityDetails$inboundSchema:
2204
+ z.ZodMiniType<CollectLinkedInLikesUnprocessableEntityDetails, unknown> =
2205
+ smartUnion([types.string(), z.array(types.string())]);
2206
+
2207
+ export function collectLinkedInLikesUnprocessableEntityDetailsFromJSON(
2208
+ jsonString: string,
2209
+ ): SafeParseResult<
2210
+ CollectLinkedInLikesUnprocessableEntityDetails,
2211
+ SDKValidationError
2212
+ > {
2213
+ return safeParse(
2214
+ jsonString,
2215
+ (x) =>
2216
+ CollectLinkedInLikesUnprocessableEntityDetails$inboundSchema.parse(
2217
+ JSON.parse(x),
2218
+ ),
2219
+ `Failed to parse 'CollectLinkedInLikesUnprocessableEntityDetails' from JSON`,
2220
+ );
2221
+ }
2222
+
2223
+ /** @internal */
2224
+ export const CollectLinkedInLikesUnprocessableEntityError$inboundSchema:
2225
+ z.ZodMiniType<CollectLinkedInLikesUnprocessableEntityError, unknown> = z
2226
+ .object({
2227
+ code: types.string(),
2228
+ message: types.string(),
2229
+ docs: types.optional(types.string()),
2230
+ details: types.optional(
2231
+ smartUnion([types.string(), z.array(types.string())]),
2232
+ ),
2233
+ });
2234
+
2235
+ export function collectLinkedInLikesUnprocessableEntityErrorFromJSON(
2236
+ jsonString: string,
2237
+ ): SafeParseResult<
2238
+ CollectLinkedInLikesUnprocessableEntityError,
2239
+ SDKValidationError
2240
+ > {
2241
+ return safeParse(
2242
+ jsonString,
2243
+ (x) =>
2244
+ CollectLinkedInLikesUnprocessableEntityError$inboundSchema.parse(
2245
+ JSON.parse(x),
2246
+ ),
2247
+ `Failed to parse 'CollectLinkedInLikesUnprocessableEntityError' from JSON`,
2248
+ );
2249
+ }
2250
+
2251
+ /** @internal */
2252
+ export const CollectLinkedInLikesGoneDetails$inboundSchema: z.ZodMiniType<
2253
+ CollectLinkedInLikesGoneDetails,
2254
+ unknown
2255
+ > = smartUnion([types.string(), z.array(types.string())]);
2256
+
2257
+ export function collectLinkedInLikesGoneDetailsFromJSON(
2258
+ jsonString: string,
2259
+ ): SafeParseResult<CollectLinkedInLikesGoneDetails, SDKValidationError> {
2260
+ return safeParse(
2261
+ jsonString,
2262
+ (x) => CollectLinkedInLikesGoneDetails$inboundSchema.parse(JSON.parse(x)),
2263
+ `Failed to parse 'CollectLinkedInLikesGoneDetails' from JSON`,
2264
+ );
2265
+ }
2266
+
2267
+ /** @internal */
2268
+ export const CollectLinkedInLikesGoneError$inboundSchema: z.ZodMiniType<
2269
+ CollectLinkedInLikesGoneError,
2270
+ unknown
2271
+ > = z.object({
2272
+ code: types.string(),
2273
+ message: types.string(),
2274
+ docs: types.optional(types.string()),
2275
+ details: types.optional(
2276
+ smartUnion([types.string(), z.array(types.string())]),
2277
+ ),
2278
+ });
2279
+
2280
+ export function collectLinkedInLikesGoneErrorFromJSON(
2281
+ jsonString: string,
2282
+ ): SafeParseResult<CollectLinkedInLikesGoneError, SDKValidationError> {
2283
+ return safeParse(
2284
+ jsonString,
2285
+ (x) => CollectLinkedInLikesGoneError$inboundSchema.parse(JSON.parse(x)),
2286
+ `Failed to parse 'CollectLinkedInLikesGoneError' from JSON`,
2287
+ );
2288
+ }
2289
+
2290
+ /** @internal */
2291
+ export const CollectLinkedInLikesConflictDetails$inboundSchema: z.ZodMiniType<
2292
+ CollectLinkedInLikesConflictDetails,
2293
+ unknown
2294
+ > = smartUnion([types.string(), z.array(types.string())]);
2295
+
2296
+ export function collectLinkedInLikesConflictDetailsFromJSON(
2297
+ jsonString: string,
2298
+ ): SafeParseResult<CollectLinkedInLikesConflictDetails, SDKValidationError> {
2299
+ return safeParse(
2300
+ jsonString,
2301
+ (x) =>
2302
+ CollectLinkedInLikesConflictDetails$inboundSchema.parse(JSON.parse(x)),
2303
+ `Failed to parse 'CollectLinkedInLikesConflictDetails' from JSON`,
2304
+ );
2305
+ }
2306
+
2307
+ /** @internal */
2308
+ export const CollectLinkedInLikesConflictError$inboundSchema: z.ZodMiniType<
2309
+ CollectLinkedInLikesConflictError,
2310
+ unknown
2311
+ > = z.object({
2312
+ code: types.string(),
2313
+ message: types.string(),
2314
+ docs: types.optional(types.string()),
2315
+ details: types.optional(
2316
+ smartUnion([types.string(), z.array(types.string())]),
2317
+ ),
2318
+ });
2319
+
2320
+ export function collectLinkedInLikesConflictErrorFromJSON(
2321
+ jsonString: string,
2322
+ ): SafeParseResult<CollectLinkedInLikesConflictError, SDKValidationError> {
2323
+ return safeParse(
2324
+ jsonString,
2325
+ (x) => CollectLinkedInLikesConflictError$inboundSchema.parse(JSON.parse(x)),
2326
+ `Failed to parse 'CollectLinkedInLikesConflictError' from JSON`,
2327
+ );
2328
+ }
2329
+
2330
+ /** @internal */
2331
+ export const CollectLinkedInLikesNotFoundDetails$inboundSchema: z.ZodMiniType<
2332
+ CollectLinkedInLikesNotFoundDetails,
2333
+ unknown
2334
+ > = smartUnion([types.string(), z.array(types.string())]);
2335
+
2336
+ export function collectLinkedInLikesNotFoundDetailsFromJSON(
2337
+ jsonString: string,
2338
+ ): SafeParseResult<CollectLinkedInLikesNotFoundDetails, SDKValidationError> {
2339
+ return safeParse(
2340
+ jsonString,
2341
+ (x) =>
2342
+ CollectLinkedInLikesNotFoundDetails$inboundSchema.parse(JSON.parse(x)),
2343
+ `Failed to parse 'CollectLinkedInLikesNotFoundDetails' from JSON`,
2344
+ );
2345
+ }
2346
+
2347
+ /** @internal */
2348
+ export const CollectLinkedInLikesNotFoundError$inboundSchema: z.ZodMiniType<
2349
+ CollectLinkedInLikesNotFoundError,
2350
+ unknown
2351
+ > = z.object({
2352
+ code: types.string(),
2353
+ message: types.string(),
2354
+ docs: types.optional(types.string()),
2355
+ details: types.optional(
2356
+ smartUnion([types.string(), z.array(types.string())]),
2357
+ ),
2358
+ });
2359
+
2360
+ export function collectLinkedInLikesNotFoundErrorFromJSON(
2361
+ jsonString: string,
2362
+ ): SafeParseResult<CollectLinkedInLikesNotFoundError, SDKValidationError> {
2363
+ return safeParse(
2364
+ jsonString,
2365
+ (x) => CollectLinkedInLikesNotFoundError$inboundSchema.parse(JSON.parse(x)),
2366
+ `Failed to parse 'CollectLinkedInLikesNotFoundError' from JSON`,
2367
+ );
2368
+ }
2369
+
2370
+ /** @internal */
2371
+ export const CollectLinkedInLikesForbiddenDetails$inboundSchema: z.ZodMiniType<
2372
+ CollectLinkedInLikesForbiddenDetails,
2373
+ unknown
2374
+ > = smartUnion([types.string(), z.array(types.string())]);
2375
+
2376
+ export function collectLinkedInLikesForbiddenDetailsFromJSON(
2377
+ jsonString: string,
2378
+ ): SafeParseResult<CollectLinkedInLikesForbiddenDetails, SDKValidationError> {
2379
+ return safeParse(
2380
+ jsonString,
2381
+ (x) =>
2382
+ CollectLinkedInLikesForbiddenDetails$inboundSchema.parse(JSON.parse(x)),
2383
+ `Failed to parse 'CollectLinkedInLikesForbiddenDetails' from JSON`,
2384
+ );
2385
+ }
2386
+
2387
+ /** @internal */
2388
+ export const CollectLinkedInLikesForbiddenError$inboundSchema: z.ZodMiniType<
2389
+ CollectLinkedInLikesForbiddenError,
2390
+ unknown
2391
+ > = z.object({
2392
+ code: types.string(),
2393
+ message: types.string(),
2394
+ docs: types.optional(types.string()),
2395
+ details: types.optional(
2396
+ smartUnion([types.string(), z.array(types.string())]),
2397
+ ),
2398
+ });
2399
+
2400
+ export function collectLinkedInLikesForbiddenErrorFromJSON(
2401
+ jsonString: string,
2402
+ ): SafeParseResult<CollectLinkedInLikesForbiddenError, SDKValidationError> {
2403
+ return safeParse(
2404
+ jsonString,
2405
+ (x) =>
2406
+ CollectLinkedInLikesForbiddenError$inboundSchema.parse(JSON.parse(x)),
2407
+ `Failed to parse 'CollectLinkedInLikesForbiddenError' from JSON`,
2408
+ );
2409
+ }
2410
+
2411
+ /** @internal */
2412
+ export const CollectLinkedInLikesUnauthorizedDetails$inboundSchema:
2413
+ z.ZodMiniType<CollectLinkedInLikesUnauthorizedDetails, unknown> = smartUnion([
2414
+ types.string(),
2415
+ z.array(types.string()),
2416
+ ]);
2417
+
2418
+ export function collectLinkedInLikesUnauthorizedDetailsFromJSON(
2419
+ jsonString: string,
2420
+ ): SafeParseResult<
2421
+ CollectLinkedInLikesUnauthorizedDetails,
2422
+ SDKValidationError
2423
+ > {
2424
+ return safeParse(
2425
+ jsonString,
2426
+ (x) =>
2427
+ CollectLinkedInLikesUnauthorizedDetails$inboundSchema.parse(
2428
+ JSON.parse(x),
2429
+ ),
2430
+ `Failed to parse 'CollectLinkedInLikesUnauthorizedDetails' from JSON`,
2431
+ );
2432
+ }
2433
+
2434
+ /** @internal */
2435
+ export const CollectLinkedInLikesUnauthorizedError$inboundSchema: z.ZodMiniType<
2436
+ CollectLinkedInLikesUnauthorizedError,
2437
+ unknown
2438
+ > = z.object({
2439
+ code: types.string(),
2440
+ message: types.string(),
2441
+ docs: types.optional(types.string()),
2442
+ details: types.optional(
2443
+ smartUnion([types.string(), z.array(types.string())]),
2444
+ ),
2445
+ });
2446
+
2447
+ export function collectLinkedInLikesUnauthorizedErrorFromJSON(
2448
+ jsonString: string,
2449
+ ): SafeParseResult<CollectLinkedInLikesUnauthorizedError, SDKValidationError> {
2450
+ return safeParse(
2451
+ jsonString,
2452
+ (x) =>
2453
+ CollectLinkedInLikesUnauthorizedError$inboundSchema.parse(JSON.parse(x)),
2454
+ `Failed to parse 'CollectLinkedInLikesUnauthorizedError' from JSON`,
2455
+ );
2456
+ }
2457
+
2458
+ /** @internal */
2459
+ export const CollectLinkedInLikesBadRequestDetails$inboundSchema: z.ZodMiniType<
2460
+ CollectLinkedInLikesBadRequestDetails,
2461
+ unknown
2462
+ > = smartUnion([types.string(), z.array(types.string())]);
2463
+
2464
+ export function collectLinkedInLikesBadRequestDetailsFromJSON(
2465
+ jsonString: string,
2466
+ ): SafeParseResult<CollectLinkedInLikesBadRequestDetails, SDKValidationError> {
2467
+ return safeParse(
2468
+ jsonString,
2469
+ (x) =>
2470
+ CollectLinkedInLikesBadRequestDetails$inboundSchema.parse(JSON.parse(x)),
2471
+ `Failed to parse 'CollectLinkedInLikesBadRequestDetails' from JSON`,
2472
+ );
2473
+ }
2474
+
2475
+ /** @internal */
2476
+ export const CollectLinkedInLikesBadRequestError$inboundSchema: z.ZodMiniType<
2477
+ CollectLinkedInLikesBadRequestError,
2478
+ unknown
2479
+ > = z.object({
2480
+ code: types.string(),
2481
+ message: types.string(),
2482
+ docs: types.optional(types.string()),
2483
+ details: types.optional(
2484
+ smartUnion([types.string(), z.array(types.string())]),
2485
+ ),
2486
+ });
2487
+
2488
+ export function collectLinkedInLikesBadRequestErrorFromJSON(
2489
+ jsonString: string,
2490
+ ): SafeParseResult<CollectLinkedInLikesBadRequestError, SDKValidationError> {
2491
+ return safeParse(
2492
+ jsonString,
2493
+ (x) =>
2494
+ CollectLinkedInLikesBadRequestError$inboundSchema.parse(JSON.parse(x)),
2495
+ `Failed to parse 'CollectLinkedInLikesBadRequestError' from JSON`,
2496
+ );
2497
+ }
2498
+
2499
+ /** @internal */
2500
+ export const CollectLinkedInLikesType$inboundSchema: z.ZodMiniEnum<
2501
+ typeof CollectLinkedInLikesType
2502
+ > = z.enum(CollectLinkedInLikesType);
2503
+
2504
+ /** @internal */
2505
+ export const CollectLinkedInLikesProfile$inboundSchema: z.ZodMiniType<
2506
+ CollectLinkedInLikesProfile,
2507
+ unknown
2508
+ > = z.object({
2509
+ name: types.string(),
2510
+ headline: z.optional(z.nullable(types.string())),
2511
+ profileUrl: z.optional(z.nullable(types.string())),
2512
+ imageUrl: z.optional(z.nullable(types.string())),
2513
+ type: CollectLinkedInLikesType$inboundSchema,
2514
+ });
2515
+
2516
+ export function collectLinkedInLikesProfileFromJSON(
2517
+ jsonString: string,
2518
+ ): SafeParseResult<CollectLinkedInLikesProfile, SDKValidationError> {
2519
+ return safeParse(
2520
+ jsonString,
2521
+ (x) => CollectLinkedInLikesProfile$inboundSchema.parse(JSON.parse(x)),
2522
+ `Failed to parse 'CollectLinkedInLikesProfile' from JSON`,
2523
+ );
2524
+ }
2525
+
2526
+ /** @internal */
2527
+ export const CollectLinkedInLikesResponse$inboundSchema: z.ZodMiniType<
2528
+ CollectLinkedInLikesResponse,
2529
+ unknown
2530
+ > = z.object({
2531
+ success: types.boolean(),
2532
+ profiles: z.array(z.lazy(() => CollectLinkedInLikesProfile$inboundSchema)),
2533
+ count: types.number(),
2534
+ total: types.number(),
2535
+ start: types.number(),
2536
+ hasMore: types.boolean(),
2537
+ previousTotal: types.nullable(types.number()),
2538
+ creditsUsed: types.number(),
2539
+ retryAfter: types.number(),
2540
+ });
2541
+
2542
+ export function collectLinkedInLikesResponseFromJSON(
2543
+ jsonString: string,
2544
+ ): SafeParseResult<CollectLinkedInLikesResponse, SDKValidationError> {
2545
+ return safeParse(
2546
+ jsonString,
2547
+ (x) => CollectLinkedInLikesResponse$inboundSchema.parse(JSON.parse(x)),
2548
+ `Failed to parse 'CollectLinkedInLikesResponse' from JSON`,
2549
+ );
2550
+ }
2551
+
2552
+ /** @internal */
2553
+ export type CollectLinkedInCommentsRequest$Outbound = {
2554
+ postUrl: string;
2555
+ start?: number | undefined;
2556
+ count?: number | undefined;
2557
+ campaignSlug?: string | undefined;
2558
+ };
2559
+
2560
+ /** @internal */
2561
+ export const CollectLinkedInCommentsRequest$outboundSchema: z.ZodMiniType<
2562
+ CollectLinkedInCommentsRequest$Outbound,
2563
+ CollectLinkedInCommentsRequest
2564
+ > = z.object({
2565
+ postUrl: z.string(),
2566
+ start: z.optional(z.int()),
2567
+ count: z.optional(z.int()),
2568
+ campaignSlug: z.optional(z.string()),
2569
+ });
2570
+
2571
+ export function collectLinkedInCommentsRequestToJSON(
2572
+ collectLinkedInCommentsRequest: CollectLinkedInCommentsRequest,
2573
+ ): string {
2574
+ return JSON.stringify(
2575
+ CollectLinkedInCommentsRequest$outboundSchema.parse(
2576
+ collectLinkedInCommentsRequest,
2577
+ ),
2578
+ );
2579
+ }
2580
+
2581
+ /** @internal */
2582
+ export const CollectLinkedInCommentsType$inboundSchema: z.ZodMiniEnum<
2583
+ typeof CollectLinkedInCommentsType
2584
+ > = z.enum(CollectLinkedInCommentsType);
2585
+
2586
+ /** @internal */
2587
+ export const CollectLinkedInCommentsActionsCompleted$inboundSchema:
2588
+ z.ZodMiniType<CollectLinkedInCommentsActionsCompleted, unknown> = z.object({
2589
+ message: types.boolean(),
2590
+ reply: types.boolean(),
2591
+ like: types.boolean(),
2592
+ visit: types.boolean(),
2593
+ connect: types.boolean(),
2594
+ });
2595
+
2596
+ export function collectLinkedInCommentsActionsCompletedFromJSON(
2597
+ jsonString: string,
2598
+ ): SafeParseResult<
2599
+ CollectLinkedInCommentsActionsCompleted,
2600
+ SDKValidationError
2601
+ > {
2602
+ return safeParse(
2603
+ jsonString,
2604
+ (x) =>
2605
+ CollectLinkedInCommentsActionsCompleted$inboundSchema.parse(
2606
+ JSON.parse(x),
2607
+ ),
2608
+ `Failed to parse 'CollectLinkedInCommentsActionsCompleted' from JSON`,
2609
+ );
2610
+ }
2611
+
2612
+ /** @internal */
2613
+ export const CollectLinkedInCommentsProfile$inboundSchema: z.ZodMiniType<
2614
+ CollectLinkedInCommentsProfile,
2615
+ unknown
2616
+ > = z.object({
2617
+ name: types.string(),
2618
+ headline: z.optional(z.nullable(types.string())),
2619
+ profileUrl: z.optional(z.nullable(types.string())),
2620
+ imageUrl: z.optional(z.nullable(types.string())),
2621
+ type: CollectLinkedInCommentsType$inboundSchema,
2622
+ commentText: types.optional(types.string()),
2623
+ timestamp: z.optional(z.nullable(types.number())),
2624
+ isEdited: types.optional(types.boolean()),
2625
+ commentUrn: types.optional(types.string()),
2626
+ commentHash: types.optional(types.string()),
2627
+ isPostAuthor: types.optional(types.boolean()),
2628
+ repliesCount: types.optional(types.number()),
2629
+ hasReplyFromPostAuthor: types.optional(types.boolean()),
2630
+ postUrn: types.optional(types.string()),
2631
+ postHash: types.optional(types.string()),
2632
+ actionsCompleted: types.optional(
2633
+ z.lazy(() => CollectLinkedInCommentsActionsCompleted$inboundSchema),
2634
+ ),
2635
+ knownDistance: z.optional(z.nullable(types.number())),
2636
+ });
2637
+
2638
+ export function collectLinkedInCommentsProfileFromJSON(
2639
+ jsonString: string,
2640
+ ): SafeParseResult<CollectLinkedInCommentsProfile, SDKValidationError> {
2641
+ return safeParse(
2642
+ jsonString,
2643
+ (x) => CollectLinkedInCommentsProfile$inboundSchema.parse(JSON.parse(x)),
2644
+ `Failed to parse 'CollectLinkedInCommentsProfile' from JSON`,
2645
+ );
2646
+ }
2647
+
2648
+ /** @internal */
2649
+ export const CollectLinkedInCommentsResponse$inboundSchema: z.ZodMiniType<
2650
+ CollectLinkedInCommentsResponse,
2651
+ unknown
2652
+ > = z.object({
2653
+ success: types.boolean(),
2654
+ profiles: z.array(z.lazy(() => CollectLinkedInCommentsProfile$inboundSchema)),
2655
+ count: types.number(),
2656
+ total: types.number(),
2657
+ start: types.number(),
2658
+ hasMore: types.boolean(),
2659
+ previousTotal: types.nullable(types.number()),
2660
+ processedCount: types.optional(types.number()),
2661
+ newCount: types.optional(types.number()),
2662
+ creditsUsed: types.number(),
2663
+ retryAfter: types.number(),
2664
+ });
2665
+
2666
+ export function collectLinkedInCommentsResponseFromJSON(
2667
+ jsonString: string,
2668
+ ): SafeParseResult<CollectLinkedInCommentsResponse, SDKValidationError> {
2669
+ return safeParse(
2670
+ jsonString,
2671
+ (x) => CollectLinkedInCommentsResponse$inboundSchema.parse(JSON.parse(x)),
2672
+ `Failed to parse 'CollectLinkedInCommentsResponse' from JSON`,
2673
+ );
2674
+ }
2675
+
2676
+ /** @internal */
2677
+ export type CollectLinkedInCommentRepliesRequest$Outbound = {
2678
+ commentUrn: string;
2679
+ start?: number | undefined;
2680
+ count?: number | undefined;
2681
+ };
2682
+
2683
+ /** @internal */
2684
+ export const CollectLinkedInCommentRepliesRequest$outboundSchema: z.ZodMiniType<
2685
+ CollectLinkedInCommentRepliesRequest$Outbound,
2686
+ CollectLinkedInCommentRepliesRequest
2687
+ > = z.object({
2688
+ commentUrn: z.string(),
2689
+ start: z.optional(z.int()),
2690
+ count: z.optional(z.int()),
2691
+ });
2692
+
2693
+ export function collectLinkedInCommentRepliesRequestToJSON(
2694
+ collectLinkedInCommentRepliesRequest: CollectLinkedInCommentRepliesRequest,
2695
+ ): string {
2696
+ return JSON.stringify(
2697
+ CollectLinkedInCommentRepliesRequest$outboundSchema.parse(
2698
+ collectLinkedInCommentRepliesRequest,
2699
+ ),
2700
+ );
2701
+ }
2702
+
2703
+ /** @internal */
2704
+ export const CollectLinkedInCommentRepliesType$inboundSchema: z.ZodMiniEnum<
2705
+ typeof CollectLinkedInCommentRepliesType
2706
+ > = z.enum(CollectLinkedInCommentRepliesType);
2707
+
2708
+ /** @internal */
2709
+ export const CollectLinkedInCommentRepliesActionsCompleted$inboundSchema:
2710
+ z.ZodMiniType<CollectLinkedInCommentRepliesActionsCompleted, unknown> = z
2711
+ .object({
2712
+ message: types.boolean(),
2713
+ reply: types.boolean(),
2714
+ like: types.boolean(),
2715
+ visit: types.boolean(),
2716
+ connect: types.boolean(),
2717
+ });
2718
+
2719
+ export function collectLinkedInCommentRepliesActionsCompletedFromJSON(
2720
+ jsonString: string,
2721
+ ): SafeParseResult<
2722
+ CollectLinkedInCommentRepliesActionsCompleted,
2723
+ SDKValidationError
2724
+ > {
2725
+ return safeParse(
2726
+ jsonString,
2727
+ (x) =>
2728
+ CollectLinkedInCommentRepliesActionsCompleted$inboundSchema.parse(
2729
+ JSON.parse(x),
2730
+ ),
2731
+ `Failed to parse 'CollectLinkedInCommentRepliesActionsCompleted' from JSON`,
2732
+ );
2733
+ }
2734
+
2735
+ /** @internal */
2736
+ export const Reply$inboundSchema: z.ZodMiniType<Reply, unknown> = z.object({
2737
+ name: types.string(),
2738
+ headline: z.optional(z.nullable(types.string())),
2739
+ profileUrl: z.optional(z.nullable(types.string())),
2740
+ imageUrl: z.optional(z.nullable(types.string())),
2741
+ type: CollectLinkedInCommentRepliesType$inboundSchema,
2742
+ commentText: types.optional(types.string()),
2743
+ timestamp: z.optional(z.nullable(types.number())),
2744
+ isEdited: types.optional(types.boolean()),
2745
+ commentUrn: types.optional(types.string()),
2746
+ commentHash: types.optional(types.string()),
2747
+ isPostAuthor: types.optional(types.boolean()),
2748
+ repliesCount: types.optional(types.number()),
2749
+ hasReplyFromPostAuthor: types.optional(types.boolean()),
2750
+ postUrn: types.optional(types.string()),
2751
+ postHash: types.optional(types.string()),
2752
+ actionsCompleted: types.optional(
2753
+ z.lazy(() => CollectLinkedInCommentRepliesActionsCompleted$inboundSchema),
2754
+ ),
2755
+ knownDistance: z.optional(z.nullable(types.number())),
2756
+ });
2757
+
2758
+ export function replyFromJSON(
2759
+ jsonString: string,
2760
+ ): SafeParseResult<Reply, SDKValidationError> {
2761
+ return safeParse(
2762
+ jsonString,
2763
+ (x) => Reply$inboundSchema.parse(JSON.parse(x)),
2764
+ `Failed to parse 'Reply' from JSON`,
2765
+ );
2766
+ }
2767
+
2768
+ /** @internal */
2769
+ export const CollectLinkedInCommentRepliesResponse$inboundSchema: z.ZodMiniType<
2770
+ CollectLinkedInCommentRepliesResponse,
2771
+ unknown
2772
+ > = z.object({
2773
+ success: types.boolean(),
2774
+ replies: z.array(z.lazy(() => Reply$inboundSchema)),
2775
+ count: types.number(),
2776
+ total: types.number(),
2777
+ start: types.number(),
2778
+ hasMore: types.boolean(),
2779
+ parentCommentUrn: types.string(),
2780
+ previousTotal: types.nullable(types.number()),
2781
+ creditsUsed: types.number(),
2782
+ retryAfter: types.number(),
2783
+ });
2784
+
2785
+ export function collectLinkedInCommentRepliesResponseFromJSON(
2786
+ jsonString: string,
2787
+ ): SafeParseResult<CollectLinkedInCommentRepliesResponse, SDKValidationError> {
2788
+ return safeParse(
2789
+ jsonString,
2790
+ (x) =>
2791
+ CollectLinkedInCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)),
2792
+ `Failed to parse 'CollectLinkedInCommentRepliesResponse' from JSON`,
2793
+ );
2794
+ }
2795
+
2796
+ /** @internal */
2797
+ export type CollectLinkedInPostsRequest$Outbound = {
2798
+ profileUrl: string;
2799
+ count?: number | undefined;
2800
+ start?: number | undefined;
2801
+ paginationToken?: string | undefined;
2802
+ };
2803
+
2804
+ /** @internal */
2805
+ export const CollectLinkedInPostsRequest$outboundSchema: z.ZodMiniType<
2806
+ CollectLinkedInPostsRequest$Outbound,
2807
+ CollectLinkedInPostsRequest
2808
+ > = z.object({
2809
+ profileUrl: z.string(),
2810
+ count: z.optional(z.int()),
2811
+ start: z.optional(z.int()),
2812
+ paginationToken: z.optional(z.string()),
2813
+ });
2814
+
2815
+ export function collectLinkedInPostsRequestToJSON(
2816
+ collectLinkedInPostsRequest: CollectLinkedInPostsRequest,
2817
+ ): string {
2818
+ return JSON.stringify(
2819
+ CollectLinkedInPostsRequest$outboundSchema.parse(
2820
+ collectLinkedInPostsRequest,
2821
+ ),
2822
+ );
2823
+ }
2824
+
2825
+ /** @internal */
2826
+ export const CollectLinkedInPostsType$inboundSchema: z.ZodMiniType<
2827
+ CollectLinkedInPostsType,
2828
+ unknown
2829
+ > = openEnums.inboundSchema(CollectLinkedInPostsType);
2830
+
2831
+ /** @internal */
2832
+ export const CollectLinkedInPostsPost$inboundSchema: z.ZodMiniType<
2833
+ CollectLinkedInPostsPost,
2834
+ unknown
2835
+ > = z.object({
2836
+ postUrl: types.string(),
2837
+ text: types.string(),
2838
+ date: types.number(),
2839
+ likesCount: types.number(),
2840
+ commentsCount: types.number(),
2841
+ sharesCount: types.number(),
2842
+ postUrn: types.string(),
2843
+ postId: types.string(),
2844
+ type: CollectLinkedInPostsType$inboundSchema,
2845
+ });
2846
+
2847
+ export function collectLinkedInPostsPostFromJSON(
2848
+ jsonString: string,
2849
+ ): SafeParseResult<CollectLinkedInPostsPost, SDKValidationError> {
2850
+ return safeParse(
2851
+ jsonString,
2852
+ (x) => CollectLinkedInPostsPost$inboundSchema.parse(JSON.parse(x)),
2853
+ `Failed to parse 'CollectLinkedInPostsPost' from JSON`,
2854
+ );
2855
+ }
2856
+
2857
+ /** @internal */
2858
+ export const CollectLinkedInPostsResponse$inboundSchema: z.ZodMiniType<
2859
+ CollectLinkedInPostsResponse,
2860
+ unknown
2861
+ > = z.object({
2862
+ success: types.boolean(),
2863
+ posts: z.array(z.lazy(() => CollectLinkedInPostsPost$inboundSchema)),
2864
+ count: types.number(),
2865
+ total: types.number(),
2866
+ start: types.number(),
2867
+ hasMore: types.boolean(),
2868
+ paginationToken: types.nullable(types.string()),
2869
+ previousTotal: types.nullable(types.number()),
2870
+ creditsUsed: types.number(),
2871
+ retryAfter: types.number(),
2872
+ });
2873
+
2874
+ export function collectLinkedInPostsResponseFromJSON(
2875
+ jsonString: string,
2876
+ ): SafeParseResult<CollectLinkedInPostsResponse, SDKValidationError> {
2877
+ return safeParse(
2878
+ jsonString,
2879
+ (x) => CollectLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)),
2880
+ `Failed to parse 'CollectLinkedInPostsResponse' from JSON`,
2881
+ );
2882
+ }
2883
+
2884
+ /** @internal */
2885
+ export type VisitLinkedInProfileRequest$Outbound = {
2886
+ profile: string;
2887
+ campaignSlug?: string | undefined;
2888
+ actionSlug?: string | undefined;
2889
+ includePosts?: boolean | undefined;
2890
+ };
2891
+
2892
+ /** @internal */
2893
+ export const VisitLinkedInProfileRequest$outboundSchema: z.ZodMiniType<
2894
+ VisitLinkedInProfileRequest$Outbound,
2895
+ VisitLinkedInProfileRequest
2896
+ > = z.object({
2897
+ profile: z.string(),
2898
+ campaignSlug: z.optional(z.string()),
2899
+ actionSlug: z.optional(z.string()),
2900
+ includePosts: z.optional(z.boolean()),
2901
+ });
2902
+
2903
+ export function visitLinkedInProfileRequestToJSON(
2904
+ visitLinkedInProfileRequest: VisitLinkedInProfileRequest,
2905
+ ): string {
2906
+ return JSON.stringify(
2907
+ VisitLinkedInProfileRequest$outboundSchema.parse(
2908
+ visitLinkedInProfileRequest,
2909
+ ),
2910
+ );
2911
+ }
2912
+
2913
+ /** @internal */
2914
+ export const PendingConnection$inboundSchema: z.ZodMiniType<
2915
+ PendingConnection,
2916
+ unknown
2917
+ > = openEnums.inboundSchema(PendingConnection);
2918
+
2919
+ /** @internal */
2920
+ export const VisitLinkedInProfilePositionStartDate$inboundSchema: z.ZodMiniType<
2921
+ VisitLinkedInProfilePositionStartDate,
2922
+ unknown
2923
+ > = z.object({
2924
+ month: types.nullable(types.number()),
2925
+ year: types.number(),
2926
+ });
2927
+
2928
+ export function visitLinkedInProfilePositionStartDateFromJSON(
2929
+ jsonString: string,
2930
+ ): SafeParseResult<VisitLinkedInProfilePositionStartDate, SDKValidationError> {
2931
+ return safeParse(
2932
+ jsonString,
2933
+ (x) =>
2934
+ VisitLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)),
2935
+ `Failed to parse 'VisitLinkedInProfilePositionStartDate' from JSON`,
2936
+ );
2937
+ }
2938
+
2939
+ /** @internal */
2940
+ export const VisitLinkedInProfilePositionEndDate$inboundSchema: z.ZodMiniType<
2941
+ VisitLinkedInProfilePositionEndDate,
2942
+ unknown
2943
+ > = z.object({
2944
+ month: types.nullable(types.number()),
2945
+ year: types.number(),
2946
+ });
2947
+
2948
+ export function visitLinkedInProfilePositionEndDateFromJSON(
2949
+ jsonString: string,
2950
+ ): SafeParseResult<VisitLinkedInProfilePositionEndDate, SDKValidationError> {
2951
+ return safeParse(
2952
+ jsonString,
2953
+ (x) =>
2954
+ VisitLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)),
2955
+ `Failed to parse 'VisitLinkedInProfilePositionEndDate' from JSON`,
2956
+ );
2957
+ }
2958
+
2959
+ /** @internal */
2960
+ export const VisitLinkedInProfilePosition$inboundSchema: z.ZodMiniType<
2961
+ VisitLinkedInProfilePosition,
2962
+ unknown
2963
+ > = z.object({
2964
+ companyName: types.nullable(types.string()),
2965
+ title: types.nullable(types.string()),
2966
+ companyUrl: types.nullable(types.string()),
2967
+ companyLogo: types.nullable(types.string()),
2968
+ startDate: types.nullable(
2969
+ z.lazy(() => VisitLinkedInProfilePositionStartDate$inboundSchema),
2970
+ ),
2971
+ endDate: types.nullable(
2972
+ z.lazy(() => VisitLinkedInProfilePositionEndDate$inboundSchema),
2973
+ ),
2974
+ isCurrent: types.boolean(),
2975
+ });
2976
+
2977
+ export function visitLinkedInProfilePositionFromJSON(
2978
+ jsonString: string,
2979
+ ): SafeParseResult<VisitLinkedInProfilePosition, SDKValidationError> {
2980
+ return safeParse(
2981
+ jsonString,
2982
+ (x) => VisitLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)),
2983
+ `Failed to parse 'VisitLinkedInProfilePosition' from JSON`,
2984
+ );
2985
+ }
2986
+
2987
+ /** @internal */
2988
+ export const VisitLinkedInProfileEducationStartDate$inboundSchema:
2989
+ z.ZodMiniType<VisitLinkedInProfileEducationStartDate, unknown> = z.object({
2990
+ month: types.nullable(types.number()),
2991
+ year: types.number(),
2992
+ });
2993
+
2994
+ export function visitLinkedInProfileEducationStartDateFromJSON(
2995
+ jsonString: string,
2996
+ ): SafeParseResult<VisitLinkedInProfileEducationStartDate, SDKValidationError> {
2997
+ return safeParse(
2998
+ jsonString,
2999
+ (x) =>
3000
+ VisitLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)),
3001
+ `Failed to parse 'VisitLinkedInProfileEducationStartDate' from JSON`,
3002
+ );
3003
+ }
3004
+
3005
+ /** @internal */
3006
+ export const VisitLinkedInProfileEducationEndDate$inboundSchema: z.ZodMiniType<
3007
+ VisitLinkedInProfileEducationEndDate,
3008
+ unknown
3009
+ > = z.object({
3010
+ month: types.nullable(types.number()),
3011
+ year: types.number(),
3012
+ });
3013
+
3014
+ export function visitLinkedInProfileEducationEndDateFromJSON(
3015
+ jsonString: string,
3016
+ ): SafeParseResult<VisitLinkedInProfileEducationEndDate, SDKValidationError> {
3017
+ return safeParse(
3018
+ jsonString,
3019
+ (x) =>
3020
+ VisitLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)),
3021
+ `Failed to parse 'VisitLinkedInProfileEducationEndDate' from JSON`,
3022
+ );
3023
+ }
3024
+
3025
+ /** @internal */
3026
+ export const VisitLinkedInProfileEducation$inboundSchema: z.ZodMiniType<
3027
+ VisitLinkedInProfileEducation,
3028
+ unknown
3029
+ > = z.object({
3030
+ schoolName: types.nullable(types.string()),
3031
+ degreeName: types.nullable(types.string()),
3032
+ fieldOfStudy: types.nullable(types.string()),
3033
+ schoolUrl: types.nullable(types.string()),
3034
+ schoolLogo: types.nullable(types.string()),
3035
+ startDate: types.nullable(
3036
+ z.lazy(() => VisitLinkedInProfileEducationStartDate$inboundSchema),
3037
+ ),
3038
+ endDate: types.nullable(
3039
+ z.lazy(() => VisitLinkedInProfileEducationEndDate$inboundSchema),
3040
+ ),
3041
+ });
3042
+
3043
+ export function visitLinkedInProfileEducationFromJSON(
3044
+ jsonString: string,
3045
+ ): SafeParseResult<VisitLinkedInProfileEducation, SDKValidationError> {
3046
+ return safeParse(
3047
+ jsonString,
3048
+ (x) => VisitLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)),
3049
+ `Failed to parse 'VisitLinkedInProfileEducation' from JSON`,
3050
+ );
3051
+ }
3052
+
3053
+ /** @internal */
3054
+ export const VisitLinkedInProfileType$inboundSchema: z.ZodMiniType<
3055
+ VisitLinkedInProfileType,
3056
+ unknown
3057
+ > = openEnums.inboundSchema(VisitLinkedInProfileType);
3058
+
3059
+ /** @internal */
3060
+ export const VisitLinkedInProfileLastPost$inboundSchema: z.ZodMiniType<
3061
+ VisitLinkedInProfileLastPost,
3062
+ unknown
3063
+ > = z.object({
3064
+ postUrl: types.string(),
3065
+ text: types.string(),
3066
+ date: types.number(),
3067
+ likesCount: types.number(),
3068
+ commentsCount: types.number(),
3069
+ sharesCount: types.number(),
3070
+ postUrn: types.string(),
3071
+ postId: types.string(),
3072
+ type: VisitLinkedInProfileType$inboundSchema,
3073
+ });
3074
+
3075
+ export function visitLinkedInProfileLastPostFromJSON(
3076
+ jsonString: string,
3077
+ ): SafeParseResult<VisitLinkedInProfileLastPost, SDKValidationError> {
3078
+ return safeParse(
3079
+ jsonString,
3080
+ (x) => VisitLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)),
3081
+ `Failed to parse 'VisitLinkedInProfileLastPost' from JSON`,
3082
+ );
3083
+ }
3084
+
3085
+ /** @internal */
3086
+ export const VisitLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
3087
+ VisitLinkedInProfileResponse,
3088
+ unknown
3089
+ > = z.object({
3090
+ success: types.boolean(),
3091
+ firstName: types.string(),
3092
+ lastName: types.string(),
3093
+ headline: types.nullable(types.string()),
3094
+ publicIdentifier: types.string(),
3095
+ profileUrl: types.string(),
3096
+ profileUrn: types.optional(types.string()),
3097
+ imageUrl: types.nullable(types.string()),
3098
+ email: z.optional(z.nullable(types.string())),
3099
+ location: z.optional(z.nullable(types.string())),
3100
+ company: z.optional(z.nullable(types.string())),
3101
+ position: z.optional(z.nullable(types.string())),
3102
+ memberDistance: z.optional(z.nullable(types.number())),
3103
+ pendingConnection: PendingConnection$inboundSchema,
3104
+ positions: types.optional(
3105
+ z.array(z.lazy(() => VisitLinkedInProfilePosition$inboundSchema)),
3106
+ ),
3107
+ educations: types.optional(
3108
+ z.array(z.lazy(() => VisitLinkedInProfileEducation$inboundSchema)),
3109
+ ),
3110
+ lastPosts: types.optional(
3111
+ z.array(z.lazy(() => VisitLinkedInProfileLastPost$inboundSchema)),
3112
+ ),
3113
+ cached: types.boolean(),
3114
+ creditsUsed: types.number(),
3115
+ retryAfter: types.number(),
3116
+ });
3117
+
3118
+ export function visitLinkedInProfileResponseFromJSON(
3119
+ jsonString: string,
3120
+ ): SafeParseResult<VisitLinkedInProfileResponse, SDKValidationError> {
3121
+ return safeParse(
3122
+ jsonString,
3123
+ (x) => VisitLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)),
3124
+ `Failed to parse 'VisitLinkedInProfileResponse' from JSON`,
3125
+ );
3126
+ }
3127
+
3128
+ /** @internal */
3129
+ export type VisitLinkedInCompanyRequest$Outbound = {
3130
+ companyUrl: string;
3131
+ includeWorkplacePolicy?: boolean | undefined;
3132
+ };
3133
+
3134
+ /** @internal */
3135
+ export const VisitLinkedInCompanyRequest$outboundSchema: z.ZodMiniType<
3136
+ VisitLinkedInCompanyRequest$Outbound,
3137
+ VisitLinkedInCompanyRequest
3138
+ > = z.object({
3139
+ companyUrl: z.string(),
3140
+ includeWorkplacePolicy: z.optional(z.boolean()),
3141
+ });
3142
+
3143
+ export function visitLinkedInCompanyRequestToJSON(
3144
+ visitLinkedInCompanyRequest: VisitLinkedInCompanyRequest,
3145
+ ): string {
3146
+ return JSON.stringify(
3147
+ VisitLinkedInCompanyRequest$outboundSchema.parse(
3148
+ visitLinkedInCompanyRequest,
3149
+ ),
3150
+ );
3151
+ }
3152
+
3153
+ /** @internal */
3154
+ export const EmployeeCountRange$inboundSchema: z.ZodMiniType<
3155
+ EmployeeCountRange,
3156
+ unknown
3157
+ > = z.object({
3158
+ start: types.number(),
3159
+ end: types.nullable(types.number()),
3160
+ });
3161
+
3162
+ export function employeeCountRangeFromJSON(
3163
+ jsonString: string,
3164
+ ): SafeParseResult<EmployeeCountRange, SDKValidationError> {
3165
+ return safeParse(
3166
+ jsonString,
3167
+ (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)),
3168
+ `Failed to parse 'EmployeeCountRange' from JSON`,
3169
+ );
3170
+ }
3171
+
3172
+ /** @internal */
3173
+ export const Headquarter$inboundSchema: z.ZodMiniType<Headquarter, unknown> = z
3174
+ .object({
3175
+ country: types.nullable(types.string()),
3176
+ geographicArea: types.nullable(types.string()),
3177
+ city: types.nullable(types.string()),
3178
+ postalCode: types.nullable(types.string()),
3179
+ line1: types.nullable(types.string()),
3180
+ line2: types.nullable(types.string()),
3181
+ });
3182
+
3183
+ export function headquarterFromJSON(
3184
+ jsonString: string,
3185
+ ): SafeParseResult<Headquarter, SDKValidationError> {
3186
+ return safeParse(
3187
+ jsonString,
3188
+ (x) => Headquarter$inboundSchema.parse(JSON.parse(x)),
3189
+ `Failed to parse 'Headquarter' from JSON`,
3190
+ );
3191
+ }
3192
+
3193
+ /** @internal */
3194
+ export const FoundedOn$inboundSchema: z.ZodMiniType<FoundedOn, unknown> = z
3195
+ .object({
3196
+ year: types.number(),
3197
+ });
3198
+
3199
+ export function foundedOnFromJSON(
3200
+ jsonString: string,
3201
+ ): SafeParseResult<FoundedOn, SDKValidationError> {
3202
+ return safeParse(
3203
+ jsonString,
3204
+ (x) => FoundedOn$inboundSchema.parse(JSON.parse(x)),
3205
+ `Failed to parse 'FoundedOn' from JSON`,
3206
+ );
3207
+ }
3208
+
3209
+ /** @internal */
3210
+ export const CallToAction$inboundSchema: z.ZodMiniType<CallToAction, unknown> =
3211
+ z.object({
3212
+ type: types.string(),
3213
+ url: types.string(),
3214
+ });
3215
+
3216
+ export function callToActionFromJSON(
3217
+ jsonString: string,
3218
+ ): SafeParseResult<CallToAction, SDKValidationError> {
3219
+ return safeParse(
3220
+ jsonString,
3221
+ (x) => CallToAction$inboundSchema.parse(JSON.parse(x)),
3222
+ `Failed to parse 'CallToAction' from JSON`,
3223
+ );
3224
+ }
3225
+
3226
+ /** @internal */
3227
+ export const AffiliatedCompany$inboundSchema: z.ZodMiniType<
3228
+ AffiliatedCompany,
3229
+ unknown
3230
+ > = z.object({
3231
+ id: types.string(),
3232
+ universalName: types.string(),
3233
+ name: types.string(),
3234
+ url: types.nullable(types.string()),
3235
+ logoUrl: types.nullable(types.string()),
3236
+ followerCount: types.nullable(types.number()),
3237
+ industry: types.nullable(types.string()),
3238
+ });
3239
+
3240
+ export function affiliatedCompanyFromJSON(
3241
+ jsonString: string,
3242
+ ): SafeParseResult<AffiliatedCompany, SDKValidationError> {
3243
+ return safeParse(
3244
+ jsonString,
3245
+ (x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)),
3246
+ `Failed to parse 'AffiliatedCompany' from JSON`,
3247
+ );
3248
+ }
3249
+
3250
+ /** @internal */
3251
+ export const SimilarCompany$inboundSchema: z.ZodMiniType<
3252
+ SimilarCompany,
3253
+ unknown
3254
+ > = z.object({
3255
+ id: types.string(),
3256
+ universalName: types.string(),
3257
+ name: types.string(),
3258
+ url: types.nullable(types.string()),
3259
+ logoUrl: types.nullable(types.string()),
3260
+ followerCount: types.nullable(types.number()),
3261
+ industry: types.nullable(types.string()),
3262
+ });
3263
+
3264
+ export function similarCompanyFromJSON(
3265
+ jsonString: string,
3266
+ ): SafeParseResult<SimilarCompany, SDKValidationError> {
3267
+ return safeParse(
3268
+ jsonString,
3269
+ (x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)),
3270
+ `Failed to parse 'SimilarCompany' from JSON`,
3271
+ );
3272
+ }
3273
+
3274
+ /** @internal */
3275
+ export const WorkplacePolicy$inboundSchema: z.ZodMiniType<
3276
+ WorkplacePolicy,
3277
+ unknown
3278
+ > = z.object({
3279
+ title: types.nullable(types.string()),
3280
+ description: types.nullable(types.string()),
3281
+ timeAtOnsite: types.nullable(types.string()),
3282
+ benefits: z.array(types.string()),
3283
+ });
3284
+
3285
+ export function workplacePolicyFromJSON(
3286
+ jsonString: string,
3287
+ ): SafeParseResult<WorkplacePolicy, SDKValidationError> {
3288
+ return safeParse(
3289
+ jsonString,
3290
+ (x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)),
3291
+ `Failed to parse 'WorkplacePolicy' from JSON`,
3292
+ );
3293
+ }
3294
+
3295
+ /** @internal */
3296
+ export const VisitLinkedInCompanyResponse$inboundSchema: z.ZodMiniType<
3297
+ VisitLinkedInCompanyResponse,
3298
+ unknown
3299
+ > = z.object({
3300
+ success: types.boolean(),
3301
+ id: types.string(),
3302
+ universalName: types.string(),
3303
+ name: types.string(),
3304
+ description: types.nullable(types.string()),
3305
+ url: types.string(),
3306
+ websiteUrl: types.nullable(types.string()),
3307
+ industry: types.nullable(types.string()),
3308
+ employeeCount: types.nullable(types.number()),
3309
+ employeeCountRange: types.nullable(
3310
+ z.lazy(() => EmployeeCountRange$inboundSchema),
3311
+ ),
3312
+ headquarter: types.nullable(z.lazy(() => Headquarter$inboundSchema)),
3313
+ logoUrl: types.nullable(types.string()),
3314
+ coverImageUrl: types.nullable(types.string()),
3315
+ followerCount: types.nullable(types.number()),
3316
+ specialities: z.array(types.string()),
3317
+ tagline: types.nullable(types.string()),
3318
+ isVerified: types.boolean(),
3319
+ foundedOn: types.nullable(z.lazy(() => FoundedOn$inboundSchema)),
3320
+ phone: types.nullable(types.string()),
3321
+ callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
3322
+ hashtags: z.array(types.string()),
3323
+ affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
3324
+ similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
3325
+ workplacePolicy: z.optional(
3326
+ z.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
3327
+ ),
3328
+ creditsUsed: types.number(),
3329
+ retryAfter: types.number(),
3330
+ });
3331
+
3332
+ export function visitLinkedInCompanyResponseFromJSON(
3333
+ jsonString: string,
3334
+ ): SafeParseResult<VisitLinkedInCompanyResponse, SDKValidationError> {
3335
+ return safeParse(
3336
+ jsonString,
3337
+ (x) => VisitLinkedInCompanyResponse$inboundSchema.parse(JSON.parse(x)),
3338
+ `Failed to parse 'VisitLinkedInCompanyResponse' from JSON`,
3339
+ );
3340
+ }
3341
+
3342
+ /** @internal */
3343
+ export const CategoryRequest$outboundSchema: z.ZodMiniEnum<
3344
+ typeof CategoryRequest
3345
+ > = z.enum(CategoryRequest);
3346
+
3347
+ /** @internal */
3348
+ export const SearchLinkedInSortBy$outboundSchema: z.ZodMiniEnum<
3349
+ typeof SearchLinkedInSortBy
3350
+ > = z.enum(SearchLinkedInSortBy);
3351
+
3352
+ /** @internal */
3353
+ export const SearchLinkedInDatePosted$outboundSchema: z.ZodMiniEnum<
3354
+ typeof SearchLinkedInDatePosted
3355
+ > = z.enum(SearchLinkedInDatePosted);
3356
+
3357
+ /** @internal */
3358
+ export const SearchLinkedInContentType$outboundSchema: z.ZodMiniEnum<
3359
+ typeof SearchLinkedInContentType
3360
+ > = z.enum(SearchLinkedInContentType);
3361
+
3362
+ /** @internal */
3363
+ export const SearchLinkedInConnectionDegree$outboundSchema: z.ZodMiniEnum<
3364
+ typeof SearchLinkedInConnectionDegree
3365
+ > = z.enum(SearchLinkedInConnectionDegree);
3366
+
3367
+ /** @internal */
3368
+ export const SearchLinkedInCompanySize$outboundSchema: z.ZodMiniEnum<
3369
+ typeof SearchLinkedInCompanySize
3370
+ > = z.enum(SearchLinkedInCompanySize);
3371
+
3372
+ /** @internal */
3373
+ export const SearchLinkedInJobType$outboundSchema: z.ZodMiniEnum<
3374
+ typeof SearchLinkedInJobType
3375
+ > = z.enum(SearchLinkedInJobType);
3376
+
3377
+ /** @internal */
3378
+ export const SearchLinkedInExperienceLevel$outboundSchema: z.ZodMiniEnum<
3379
+ typeof SearchLinkedInExperienceLevel
3380
+ > = z.enum(SearchLinkedInExperienceLevel);
3381
+
3382
+ /** @internal */
3383
+ export const SearchLinkedInWorkplaceType$outboundSchema: z.ZodMiniEnum<
3384
+ typeof SearchLinkedInWorkplaceType
3385
+ > = z.enum(SearchLinkedInWorkplaceType);
3386
+
3387
+ /** @internal */
3388
+ export type SearchLinkedInRequest$Outbound = {
3389
+ category?: string | undefined;
3390
+ url?: string | undefined;
3391
+ keywords?: string | undefined;
3392
+ sortBy?: string | undefined;
3393
+ datePosted?: string | undefined;
3394
+ contentType?: string | undefined;
3395
+ authorIndustry?: Array<string> | undefined;
3396
+ authorCompany?: Array<string> | undefined;
3397
+ connectionDegree?: Array<string> | undefined;
3398
+ firstName?: string | undefined;
3399
+ lastName?: string | undefined;
3400
+ title?: string | undefined;
3401
+ connectionOf?: string | undefined;
3402
+ profileLanguage?: Array<string> | undefined;
3403
+ school?: Array<string> | undefined;
3404
+ location?: Array<string> | undefined;
3405
+ industry?: Array<string> | undefined;
3406
+ currentCompany?: Array<string> | undefined;
3407
+ pastCompany?: Array<string> | undefined;
3408
+ companySize?: Array<string> | undefined;
3409
+ jobType?: Array<string> | undefined;
3410
+ experienceLevel?: Array<string> | undefined;
3411
+ workplaceType?: Array<string> | undefined;
3412
+ start?: number | undefined;
3413
+ count?: number | undefined;
3414
+ };
3415
+
3416
+ /** @internal */
3417
+ export const SearchLinkedInRequest$outboundSchema: z.ZodMiniType<
3418
+ SearchLinkedInRequest$Outbound,
3419
+ SearchLinkedInRequest
3420
+ > = z.object({
3421
+ category: z.optional(CategoryRequest$outboundSchema),
3422
+ url: z.optional(z.string()),
3423
+ keywords: z.optional(z.string()),
3424
+ sortBy: z.optional(SearchLinkedInSortBy$outboundSchema),
3425
+ datePosted: z.optional(SearchLinkedInDatePosted$outboundSchema),
3426
+ contentType: z.optional(SearchLinkedInContentType$outboundSchema),
3427
+ authorIndustry: z.optional(z.array(z.string())),
3428
+ authorCompany: z.optional(z.array(z.string())),
3429
+ connectionDegree: z.optional(
3430
+ z.array(SearchLinkedInConnectionDegree$outboundSchema),
3431
+ ),
3432
+ firstName: z.optional(z.string()),
3433
+ lastName: z.optional(z.string()),
3434
+ title: z.optional(z.string()),
3435
+ connectionOf: z.optional(z.string()),
3436
+ profileLanguage: z.optional(z.array(z.string())),
3437
+ school: z.optional(z.array(z.string())),
3438
+ location: z.optional(z.array(z.string())),
3439
+ industry: z.optional(z.array(z.string())),
3440
+ currentCompany: z.optional(z.array(z.string())),
3441
+ pastCompany: z.optional(z.array(z.string())),
3442
+ companySize: z.optional(z.array(SearchLinkedInCompanySize$outboundSchema)),
3443
+ jobType: z.optional(z.array(SearchLinkedInJobType$outboundSchema)),
3444
+ experienceLevel: z.optional(
3445
+ z.array(SearchLinkedInExperienceLevel$outboundSchema),
3446
+ ),
3447
+ workplaceType: z.optional(
3448
+ z.array(SearchLinkedInWorkplaceType$outboundSchema),
3449
+ ),
3450
+ start: z.optional(z.int()),
3451
+ count: z.optional(z.int()),
3452
+ });
3453
+
3454
+ export function searchLinkedInRequestToJSON(
3455
+ searchLinkedInRequest: SearchLinkedInRequest,
3456
+ ): string {
3457
+ return JSON.stringify(
3458
+ SearchLinkedInRequest$outboundSchema.parse(searchLinkedInRequest),
3459
+ );
3460
+ }
3461
+
3462
+ /** @internal */
3463
+ export const SearchLinkedInCategoryResponseBody$inboundSchema: z.ZodMiniType<
3464
+ SearchLinkedInCategoryResponseBody,
3465
+ unknown
3466
+ > = openEnums.inboundSchema(SearchLinkedInCategoryResponseBody);
3467
+
3468
+ /** @internal */
3469
+ export const SearchLinkedInTypeJob$inboundSchema: z.ZodMiniEnum<
3470
+ typeof SearchLinkedInTypeJob
3471
+ > = z.enum(SearchLinkedInTypeJob);
3472
+
3473
+ /** @internal */
3474
+ export const SearchLinkedInItemsJob$inboundSchema: z.ZodMiniType<
3475
+ SearchLinkedInItemsJob,
3476
+ unknown
3477
+ > = z.object({
3478
+ type: SearchLinkedInTypeJob$inboundSchema,
3479
+ title: types.string(),
3480
+ company: types.nullable(types.string()),
3481
+ companyUrl: types.nullable(types.string()),
3482
+ companyLogo: types.nullable(types.string()),
3483
+ location: types.nullable(types.string()),
3484
+ workplaceType: types.nullable(types.string()),
3485
+ postedAt: types.nullable(types.string()),
3486
+ jobUrl: types.string(),
3487
+ listingId: types.string(),
3488
+ });
3489
+
3490
+ export function searchLinkedInItemsJobFromJSON(
3491
+ jsonString: string,
3492
+ ): SafeParseResult<SearchLinkedInItemsJob, SDKValidationError> {
3493
+ return safeParse(
3494
+ jsonString,
3495
+ (x) => SearchLinkedInItemsJob$inboundSchema.parse(JSON.parse(x)),
3496
+ `Failed to parse 'SearchLinkedInItemsJob' from JSON`,
3497
+ );
3498
+ }
3499
+
3500
+ /** @internal */
3501
+ export const SearchLinkedInTypeCompany$inboundSchema: z.ZodMiniEnum<
3502
+ typeof SearchLinkedInTypeCompany
3503
+ > = z.enum(SearchLinkedInTypeCompany);
3504
+
3505
+ /** @internal */
3506
+ export const SearchLinkedInItemsCompany$inboundSchema: z.ZodMiniType<
3507
+ SearchLinkedInItemsCompany,
3508
+ unknown
3509
+ > = z.object({
3510
+ type: SearchLinkedInTypeCompany$inboundSchema,
3511
+ name: types.string(),
3512
+ profileUrl: types.string(),
3513
+ summary: types.nullable(types.string()),
3514
+ industry: types.nullable(types.string()),
3515
+ location: types.nullable(types.string()),
3516
+ followersCount: types.nullable(types.number()),
3517
+ });
3518
+
3519
+ export function searchLinkedInItemsCompanyFromJSON(
3520
+ jsonString: string,
3521
+ ): SafeParseResult<SearchLinkedInItemsCompany, SDKValidationError> {
3522
+ return safeParse(
3523
+ jsonString,
3524
+ (x) => SearchLinkedInItemsCompany$inboundSchema.parse(JSON.parse(x)),
3525
+ `Failed to parse 'SearchLinkedInItemsCompany' from JSON`,
3526
+ );
3527
+ }
3528
+
3529
+ /** @internal */
3530
+ export const SearchLinkedInTypePeople$inboundSchema: z.ZodMiniEnum<
3531
+ typeof SearchLinkedInTypePeople
3532
+ > = z.enum(SearchLinkedInTypePeople);
3533
+
3534
+ /** @internal */
3535
+ export const SearchLinkedInNetworkDistance$inboundSchema: z.ZodMiniType<
3536
+ SearchLinkedInNetworkDistance,
3537
+ unknown
3538
+ > = openEnums.inboundSchema(SearchLinkedInNetworkDistance);
3539
+
3540
+ /** @internal */
3541
+ export const SearchLinkedInCurrentPosition$inboundSchema: z.ZodMiniType<
3542
+ SearchLinkedInCurrentPosition,
3543
+ unknown
3544
+ > = z.object({
3545
+ company: types.nullable(types.string()),
3546
+ role: types.nullable(types.string()),
3547
+ });
3548
+
3549
+ export function searchLinkedInCurrentPositionFromJSON(
3550
+ jsonString: string,
3551
+ ): SafeParseResult<SearchLinkedInCurrentPosition, SDKValidationError> {
3552
+ return safeParse(
3553
+ jsonString,
3554
+ (x) => SearchLinkedInCurrentPosition$inboundSchema.parse(JSON.parse(x)),
3555
+ `Failed to parse 'SearchLinkedInCurrentPosition' from JSON`,
3556
+ );
3557
+ }
3558
+
3559
+ /** @internal */
3560
+ export const SearchLinkedInItemsPeople$inboundSchema: z.ZodMiniType<
3561
+ SearchLinkedInItemsPeople,
3562
+ unknown
3563
+ > = z.object({
3564
+ type: SearchLinkedInTypePeople$inboundSchema,
3565
+ name: types.string(),
3566
+ profileUrl: types.string(),
3567
+ headline: types.nullable(types.string()),
3568
+ location: types.nullable(types.string()),
3569
+ profilePicture: types.nullable(types.string()),
3570
+ networkDistance: types.nullable(SearchLinkedInNetworkDistance$inboundSchema),
3571
+ currentPositions: z.array(
3572
+ z.lazy(() => SearchLinkedInCurrentPosition$inboundSchema),
3573
+ ),
3574
+ });
3575
+
3576
+ export function searchLinkedInItemsPeopleFromJSON(
3577
+ jsonString: string,
3578
+ ): SafeParseResult<SearchLinkedInItemsPeople, SDKValidationError> {
3579
+ return safeParse(
3580
+ jsonString,
3581
+ (x) => SearchLinkedInItemsPeople$inboundSchema.parse(JSON.parse(x)),
3582
+ `Failed to parse 'SearchLinkedInItemsPeople' from JSON`,
3583
+ );
3584
+ }
3585
+
3586
+ /** @internal */
3587
+ export const SearchLinkedInTypePost$inboundSchema: z.ZodMiniEnum<
3588
+ typeof SearchLinkedInTypePost
3589
+ > = z.enum(SearchLinkedInTypePost);
3590
+
3591
+ /** @internal */
3592
+ export const SearchLinkedInAuthor$inboundSchema: z.ZodMiniType<
3593
+ SearchLinkedInAuthor,
3594
+ unknown
3595
+ > = z.object({
3596
+ name: types.string(),
3597
+ profileUrl: types.nullable(types.string()),
3598
+ headline: types.nullable(types.string()),
3599
+ profilePicture: types.nullable(types.string()),
3600
+ isCompany: types.boolean(),
3601
+ });
3602
+
3603
+ export function searchLinkedInAuthorFromJSON(
3604
+ jsonString: string,
3605
+ ): SafeParseResult<SearchLinkedInAuthor, SDKValidationError> {
3606
+ return safeParse(
3607
+ jsonString,
3608
+ (x) => SearchLinkedInAuthor$inboundSchema.parse(JSON.parse(x)),
3609
+ `Failed to parse 'SearchLinkedInAuthor' from JSON`,
3610
+ );
3611
+ }
3612
+
3613
+ /** @internal */
3614
+ export const SearchLinkedInItemsPost$inboundSchema: z.ZodMiniType<
3615
+ SearchLinkedInItemsPost,
3616
+ unknown
3617
+ > = z.object({
3618
+ type: SearchLinkedInTypePost$inboundSchema,
3619
+ postUrl: types.string(),
3620
+ text: types.string(),
3621
+ date: types.number(),
3622
+ likesCount: types.number(),
3623
+ commentsCount: types.number(),
3624
+ sharesCount: types.number(),
3625
+ postUrn: types.string(),
3626
+ postId: types.string(),
3627
+ author: z.lazy(() => SearchLinkedInAuthor$inboundSchema),
3628
+ isRepost: types.boolean(),
3629
+ });
3630
+
3631
+ export function searchLinkedInItemsPostFromJSON(
3632
+ jsonString: string,
3633
+ ): SafeParseResult<SearchLinkedInItemsPost, SDKValidationError> {
3634
+ return safeParse(
3635
+ jsonString,
3636
+ (x) => SearchLinkedInItemsPost$inboundSchema.parse(JSON.parse(x)),
3637
+ `Failed to parse 'SearchLinkedInItemsPost' from JSON`,
3638
+ );
3639
+ }
3640
+
3641
+ /** @internal */
3642
+ export const SearchLinkedInItemsUnion$inboundSchema: z.ZodMiniType<
3643
+ SearchLinkedInItemsUnion,
3644
+ unknown
3645
+ > = smartUnion([
3646
+ z.array(z.lazy(() => SearchLinkedInItemsPost$inboundSchema)),
3647
+ z.array(z.lazy(() => SearchLinkedInItemsPeople$inboundSchema)),
3648
+ z.array(z.lazy(() => SearchLinkedInItemsCompany$inboundSchema)),
3649
+ z.array(z.lazy(() => SearchLinkedInItemsJob$inboundSchema)),
3650
+ ]);
3651
+
3652
+ export function searchLinkedInItemsUnionFromJSON(
3653
+ jsonString: string,
3654
+ ): SafeParseResult<SearchLinkedInItemsUnion, SDKValidationError> {
3655
+ return safeParse(
3656
+ jsonString,
3657
+ (x) => SearchLinkedInItemsUnion$inboundSchema.parse(JSON.parse(x)),
3658
+ `Failed to parse 'SearchLinkedInItemsUnion' from JSON`,
3659
+ );
3660
+ }
3661
+
3662
+ /** @internal */
3663
+ export const SearchLinkedInPaging$inboundSchema: z.ZodMiniType<
3664
+ SearchLinkedInPaging,
3665
+ unknown
3666
+ > = z.object({
3667
+ start: types.number(),
3668
+ count: types.number(),
3669
+ total: types.number(),
3670
+ });
3671
+
3672
+ export function searchLinkedInPagingFromJSON(
3673
+ jsonString: string,
3674
+ ): SafeParseResult<SearchLinkedInPaging, SDKValidationError> {
3675
+ return safeParse(
3676
+ jsonString,
3677
+ (x) => SearchLinkedInPaging$inboundSchema.parse(JSON.parse(x)),
3678
+ `Failed to parse 'SearchLinkedInPaging' from JSON`,
3679
+ );
3680
+ }
3681
+
3682
+ /** @internal */
3683
+ export const SearchLinkedInResponse$inboundSchema: z.ZodMiniType<
3684
+ SearchLinkedInResponse,
3685
+ unknown
3686
+ > = z.object({
3687
+ success: types.boolean(),
3688
+ category: SearchLinkedInCategoryResponseBody$inboundSchema,
3689
+ items: smartUnion([
3690
+ z.array(z.lazy(() => SearchLinkedInItemsPost$inboundSchema)),
3691
+ z.array(z.lazy(() => SearchLinkedInItemsPeople$inboundSchema)),
3692
+ z.array(z.lazy(() => SearchLinkedInItemsCompany$inboundSchema)),
3693
+ z.array(z.lazy(() => SearchLinkedInItemsJob$inboundSchema)),
3694
+ ]),
3695
+ paging: z.lazy(() => SearchLinkedInPaging$inboundSchema),
3696
+ hasMore: types.boolean(),
3697
+ creditsUsed: types.number(),
3698
+ retryAfter: types.number(),
3699
+ });
3700
+
3701
+ export function searchLinkedInResponseFromJSON(
3702
+ jsonString: string,
3703
+ ): SafeParseResult<SearchLinkedInResponse, SDKValidationError> {
3704
+ return safeParse(
3705
+ jsonString,
3706
+ (x) => SearchLinkedInResponse$inboundSchema.parse(JSON.parse(x)),
3707
+ `Failed to parse 'SearchLinkedInResponse' from JSON`,
3708
+ );
3709
+ }
3710
+
3711
+ /** @internal */
3712
+ export const SearchLinkedInPostsSortBy$outboundSchema: z.ZodMiniEnum<
3713
+ typeof SearchLinkedInPostsSortBy
3714
+ > = z.enum(SearchLinkedInPostsSortBy);
3715
+
3716
+ /** @internal */
3717
+ export const SearchLinkedInPostsDatePosted$outboundSchema: z.ZodMiniEnum<
3718
+ typeof SearchLinkedInPostsDatePosted
3719
+ > = z.enum(SearchLinkedInPostsDatePosted);
3720
+
3721
+ /** @internal */
3722
+ export const SearchLinkedInPostsContentType$outboundSchema: z.ZodMiniEnum<
3723
+ typeof SearchLinkedInPostsContentType
3724
+ > = z.enum(SearchLinkedInPostsContentType);
3725
+
3726
+ /** @internal */
3727
+ export type SearchLinkedInPostsRequest$Outbound = {
3728
+ keywords: string;
3729
+ url?: string | undefined;
3730
+ sortBy?: string | undefined;
3731
+ datePosted?: string | undefined;
3732
+ contentType?: string | undefined;
3733
+ authorIndustry?: Array<string> | undefined;
3734
+ authorCompany?: Array<string> | undefined;
3735
+ start?: number | undefined;
3736
+ count?: number | undefined;
3737
+ };
3738
+
3739
+ /** @internal */
3740
+ export const SearchLinkedInPostsRequest$outboundSchema: z.ZodMiniType<
3741
+ SearchLinkedInPostsRequest$Outbound,
3742
+ SearchLinkedInPostsRequest
3743
+ > = z.object({
3744
+ keywords: z.string(),
3745
+ url: z.optional(z.string()),
3746
+ sortBy: z.optional(SearchLinkedInPostsSortBy$outboundSchema),
3747
+ datePosted: z.optional(SearchLinkedInPostsDatePosted$outboundSchema),
3748
+ contentType: z.optional(SearchLinkedInPostsContentType$outboundSchema),
3749
+ authorIndustry: z.optional(z.array(z.string())),
3750
+ authorCompany: z.optional(z.array(z.string())),
3751
+ start: z.optional(z.int()),
3752
+ count: z.optional(z.int()),
3753
+ });
3754
+
3755
+ export function searchLinkedInPostsRequestToJSON(
3756
+ searchLinkedInPostsRequest: SearchLinkedInPostsRequest,
3757
+ ): string {
3758
+ return JSON.stringify(
3759
+ SearchLinkedInPostsRequest$outboundSchema.parse(searchLinkedInPostsRequest),
3760
+ );
3761
+ }
3762
+
3763
+ /** @internal */
3764
+ export const SearchLinkedInPostsCategory$inboundSchema: z.ZodMiniEnum<
3765
+ typeof SearchLinkedInPostsCategory
3766
+ > = z.enum(SearchLinkedInPostsCategory);
3767
+
3768
+ /** @internal */
3769
+ export const SearchLinkedInPostsType$inboundSchema: z.ZodMiniEnum<
3770
+ typeof SearchLinkedInPostsType
3771
+ > = z.enum(SearchLinkedInPostsType);
3772
+
3773
+ /** @internal */
3774
+ export const SearchLinkedInPostsAuthor$inboundSchema: z.ZodMiniType<
3775
+ SearchLinkedInPostsAuthor,
3776
+ unknown
3777
+ > = z.object({
3778
+ name: types.string(),
3779
+ profileUrl: types.nullable(types.string()),
3780
+ headline: types.nullable(types.string()),
3781
+ profilePicture: types.nullable(types.string()),
3782
+ isCompany: types.boolean(),
3783
+ });
3784
+
3785
+ export function searchLinkedInPostsAuthorFromJSON(
3786
+ jsonString: string,
3787
+ ): SafeParseResult<SearchLinkedInPostsAuthor, SDKValidationError> {
3788
+ return safeParse(
3789
+ jsonString,
3790
+ (x) => SearchLinkedInPostsAuthor$inboundSchema.parse(JSON.parse(x)),
3791
+ `Failed to parse 'SearchLinkedInPostsAuthor' from JSON`,
3792
+ );
3793
+ }
3794
+
3795
+ /** @internal */
3796
+ export const SearchLinkedInPostsItem$inboundSchema: z.ZodMiniType<
3797
+ SearchLinkedInPostsItem,
3798
+ unknown
3799
+ > = z.object({
3800
+ type: SearchLinkedInPostsType$inboundSchema,
3801
+ postUrl: types.string(),
3802
+ text: types.string(),
3803
+ date: types.number(),
3804
+ likesCount: types.number(),
3805
+ commentsCount: types.number(),
3806
+ sharesCount: types.number(),
3807
+ postUrn: types.string(),
3808
+ postId: types.string(),
3809
+ author: z.lazy(() => SearchLinkedInPostsAuthor$inboundSchema),
3810
+ isRepost: types.boolean(),
3811
+ });
3812
+
3813
+ export function searchLinkedInPostsItemFromJSON(
3814
+ jsonString: string,
3815
+ ): SafeParseResult<SearchLinkedInPostsItem, SDKValidationError> {
3816
+ return safeParse(
3817
+ jsonString,
3818
+ (x) => SearchLinkedInPostsItem$inboundSchema.parse(JSON.parse(x)),
3819
+ `Failed to parse 'SearchLinkedInPostsItem' from JSON`,
3820
+ );
3821
+ }
3822
+
3823
+ /** @internal */
3824
+ export const SearchLinkedInPostsPaging$inboundSchema: z.ZodMiniType<
3825
+ SearchLinkedInPostsPaging,
3826
+ unknown
3827
+ > = z.object({
3828
+ start: types.number(),
3829
+ count: types.number(),
3830
+ total: types.number(),
3831
+ });
3832
+
3833
+ export function searchLinkedInPostsPagingFromJSON(
3834
+ jsonString: string,
3835
+ ): SafeParseResult<SearchLinkedInPostsPaging, SDKValidationError> {
3836
+ return safeParse(
3837
+ jsonString,
3838
+ (x) => SearchLinkedInPostsPaging$inboundSchema.parse(JSON.parse(x)),
3839
+ `Failed to parse 'SearchLinkedInPostsPaging' from JSON`,
3840
+ );
3841
+ }
3842
+
3843
+ /** @internal */
3844
+ export const SearchLinkedInPostsResponse$inboundSchema: z.ZodMiniType<
3845
+ SearchLinkedInPostsResponse,
3846
+ unknown
3847
+ > = z.object({
3848
+ success: types.boolean(),
3849
+ category: SearchLinkedInPostsCategory$inboundSchema,
3850
+ items: z.array(z.lazy(() => SearchLinkedInPostsItem$inboundSchema)),
3851
+ paging: z.lazy(() => SearchLinkedInPostsPaging$inboundSchema),
3852
+ hasMore: types.boolean(),
3853
+ creditsUsed: types.number(),
3854
+ retryAfter: types.number(),
3855
+ });
3856
+
3857
+ export function searchLinkedInPostsResponseFromJSON(
3858
+ jsonString: string,
3859
+ ): SafeParseResult<SearchLinkedInPostsResponse, SDKValidationError> {
3860
+ return safeParse(
3861
+ jsonString,
3862
+ (x) => SearchLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)),
3863
+ `Failed to parse 'SearchLinkedInPostsResponse' from JSON`,
3864
+ );
3865
+ }
3866
+
3867
+ /** @internal */
3868
+ export const SearchLinkedInPeopleConnectionDegree$outboundSchema: z.ZodMiniEnum<
3869
+ typeof SearchLinkedInPeopleConnectionDegree
3870
+ > = z.enum(SearchLinkedInPeopleConnectionDegree);
3871
+
3872
+ /** @internal */
3873
+ export type SearchLinkedInPeopleRequest$Outbound = {
3874
+ keywords?: string | undefined;
3875
+ url?: string | undefined;
3876
+ connectionDegree?: Array<string> | undefined;
3877
+ firstName?: string | undefined;
3878
+ lastName?: string | undefined;
3879
+ title?: string | undefined;
3880
+ connectionOf?: string | undefined;
3881
+ profileLanguage?: Array<string> | undefined;
3882
+ school?: Array<string> | undefined;
3883
+ location?: Array<string> | undefined;
3884
+ industry?: Array<string> | undefined;
3885
+ currentCompany?: Array<string> | undefined;
3886
+ pastCompany?: Array<string> | undefined;
3887
+ start?: number | undefined;
3888
+ count?: number | undefined;
3889
+ };
3890
+
3891
+ /** @internal */
3892
+ export const SearchLinkedInPeopleRequest$outboundSchema: z.ZodMiniType<
3893
+ SearchLinkedInPeopleRequest$Outbound,
3894
+ SearchLinkedInPeopleRequest
3895
+ > = z.object({
3896
+ keywords: z.optional(z.string()),
3897
+ url: z.optional(z.string()),
3898
+ connectionDegree: z.optional(
3899
+ z.array(SearchLinkedInPeopleConnectionDegree$outboundSchema),
3900
+ ),
3901
+ firstName: z.optional(z.string()),
3902
+ lastName: z.optional(z.string()),
3903
+ title: z.optional(z.string()),
3904
+ connectionOf: z.optional(z.string()),
3905
+ profileLanguage: z.optional(z.array(z.string())),
3906
+ school: z.optional(z.array(z.string())),
3907
+ location: z.optional(z.array(z.string())),
3908
+ industry: z.optional(z.array(z.string())),
3909
+ currentCompany: z.optional(z.array(z.string())),
3910
+ pastCompany: z.optional(z.array(z.string())),
3911
+ start: z.optional(z.int()),
3912
+ count: z.optional(z.int()),
3913
+ });
3914
+
3915
+ export function searchLinkedInPeopleRequestToJSON(
3916
+ searchLinkedInPeopleRequest: SearchLinkedInPeopleRequest,
3917
+ ): string {
3918
+ return JSON.stringify(
3919
+ SearchLinkedInPeopleRequest$outboundSchema.parse(
3920
+ searchLinkedInPeopleRequest,
3921
+ ),
3922
+ );
3923
+ }
3924
+
3925
+ /** @internal */
3926
+ export const SearchLinkedInPeopleCategory$inboundSchema: z.ZodMiniEnum<
3927
+ typeof SearchLinkedInPeopleCategory
3928
+ > = z.enum(SearchLinkedInPeopleCategory);
3929
+
3930
+ /** @internal */
3931
+ export const SearchLinkedInPeopleType$inboundSchema: z.ZodMiniEnum<
3932
+ typeof SearchLinkedInPeopleType
3933
+ > = z.enum(SearchLinkedInPeopleType);
3934
+
3935
+ /** @internal */
3936
+ export const SearchLinkedInPeopleNetworkDistance$inboundSchema: z.ZodMiniType<
3937
+ SearchLinkedInPeopleNetworkDistance,
3938
+ unknown
3939
+ > = openEnums.inboundSchema(SearchLinkedInPeopleNetworkDistance);
3940
+
3941
+ /** @internal */
3942
+ export const SearchLinkedInPeopleCurrentPosition$inboundSchema: z.ZodMiniType<
3943
+ SearchLinkedInPeopleCurrentPosition,
3944
+ unknown
3945
+ > = z.object({
3946
+ company: types.nullable(types.string()),
3947
+ role: types.nullable(types.string()),
3948
+ });
3949
+
3950
+ export function searchLinkedInPeopleCurrentPositionFromJSON(
3951
+ jsonString: string,
3952
+ ): SafeParseResult<SearchLinkedInPeopleCurrentPosition, SDKValidationError> {
3953
+ return safeParse(
3954
+ jsonString,
3955
+ (x) =>
3956
+ SearchLinkedInPeopleCurrentPosition$inboundSchema.parse(JSON.parse(x)),
3957
+ `Failed to parse 'SearchLinkedInPeopleCurrentPosition' from JSON`,
3958
+ );
3959
+ }
3960
+
3961
+ /** @internal */
3962
+ export const SearchLinkedInPeopleItem$inboundSchema: z.ZodMiniType<
3963
+ SearchLinkedInPeopleItem,
3964
+ unknown
3965
+ > = z.object({
3966
+ type: SearchLinkedInPeopleType$inboundSchema,
3967
+ name: types.string(),
3968
+ profileUrl: types.string(),
3969
+ headline: types.nullable(types.string()),
3970
+ location: types.nullable(types.string()),
3971
+ profilePicture: types.nullable(types.string()),
3972
+ networkDistance: types.nullable(
3973
+ SearchLinkedInPeopleNetworkDistance$inboundSchema,
3974
+ ),
3975
+ currentPositions: z.array(
3976
+ z.lazy(() => SearchLinkedInPeopleCurrentPosition$inboundSchema),
3977
+ ),
3978
+ });
3979
+
3980
+ export function searchLinkedInPeopleItemFromJSON(
3981
+ jsonString: string,
3982
+ ): SafeParseResult<SearchLinkedInPeopleItem, SDKValidationError> {
3983
+ return safeParse(
3984
+ jsonString,
3985
+ (x) => SearchLinkedInPeopleItem$inboundSchema.parse(JSON.parse(x)),
3986
+ `Failed to parse 'SearchLinkedInPeopleItem' from JSON`,
3987
+ );
3988
+ }
3989
+
3990
+ /** @internal */
3991
+ export const SearchLinkedInPeoplePaging$inboundSchema: z.ZodMiniType<
3992
+ SearchLinkedInPeoplePaging,
3993
+ unknown
3994
+ > = z.object({
3995
+ start: types.number(),
3996
+ count: types.number(),
3997
+ total: types.number(),
3998
+ });
3999
+
4000
+ export function searchLinkedInPeoplePagingFromJSON(
4001
+ jsonString: string,
4002
+ ): SafeParseResult<SearchLinkedInPeoplePaging, SDKValidationError> {
4003
+ return safeParse(
4004
+ jsonString,
4005
+ (x) => SearchLinkedInPeoplePaging$inboundSchema.parse(JSON.parse(x)),
4006
+ `Failed to parse 'SearchLinkedInPeoplePaging' from JSON`,
4007
+ );
4008
+ }
4009
+
4010
+ /** @internal */
4011
+ export const SearchLinkedInPeopleResponse$inboundSchema: z.ZodMiniType<
4012
+ SearchLinkedInPeopleResponse,
4013
+ unknown
4014
+ > = z.object({
4015
+ success: types.boolean(),
4016
+ category: SearchLinkedInPeopleCategory$inboundSchema,
4017
+ items: z.array(z.lazy(() => SearchLinkedInPeopleItem$inboundSchema)),
4018
+ paging: z.lazy(() => SearchLinkedInPeoplePaging$inboundSchema),
4019
+ hasMore: types.boolean(),
4020
+ creditsUsed: types.number(),
4021
+ retryAfter: types.number(),
4022
+ });
4023
+
4024
+ export function searchLinkedInPeopleResponseFromJSON(
4025
+ jsonString: string,
4026
+ ): SafeParseResult<SearchLinkedInPeopleResponse, SDKValidationError> {
4027
+ return safeParse(
4028
+ jsonString,
4029
+ (x) => SearchLinkedInPeopleResponse$inboundSchema.parse(JSON.parse(x)),
4030
+ `Failed to parse 'SearchLinkedInPeopleResponse' from JSON`,
4031
+ );
4032
+ }
4033
+
4034
+ /** @internal */
4035
+ export const SearchLinkedInCompaniesCompanySize$outboundSchema: z.ZodMiniEnum<
4036
+ typeof SearchLinkedInCompaniesCompanySize
4037
+ > = z.enum(SearchLinkedInCompaniesCompanySize);
4038
+
4039
+ /** @internal */
4040
+ export type SearchLinkedInCompaniesRequest$Outbound = {
4041
+ keywords?: string | undefined;
4042
+ url?: string | undefined;
4043
+ location?: Array<string> | undefined;
4044
+ industry?: Array<string> | undefined;
4045
+ companySize?: Array<string> | undefined;
4046
+ start?: number | undefined;
4047
+ count?: number | undefined;
4048
+ };
4049
+
4050
+ /** @internal */
4051
+ export const SearchLinkedInCompaniesRequest$outboundSchema: z.ZodMiniType<
4052
+ SearchLinkedInCompaniesRequest$Outbound,
4053
+ SearchLinkedInCompaniesRequest
4054
+ > = z.object({
4055
+ keywords: z.optional(z.string()),
4056
+ url: z.optional(z.string()),
4057
+ location: z.optional(z.array(z.string())),
4058
+ industry: z.optional(z.array(z.string())),
4059
+ companySize: z.optional(
4060
+ z.array(SearchLinkedInCompaniesCompanySize$outboundSchema),
4061
+ ),
4062
+ start: z.optional(z.int()),
4063
+ count: z.optional(z.int()),
4064
+ });
4065
+
4066
+ export function searchLinkedInCompaniesRequestToJSON(
4067
+ searchLinkedInCompaniesRequest: SearchLinkedInCompaniesRequest,
4068
+ ): string {
4069
+ return JSON.stringify(
4070
+ SearchLinkedInCompaniesRequest$outboundSchema.parse(
4071
+ searchLinkedInCompaniesRequest,
4072
+ ),
4073
+ );
4074
+ }
4075
+
4076
+ /** @internal */
4077
+ export const SearchLinkedInCompaniesCategory$inboundSchema: z.ZodMiniEnum<
4078
+ typeof SearchLinkedInCompaniesCategory
4079
+ > = z.enum(SearchLinkedInCompaniesCategory);
4080
+
4081
+ /** @internal */
4082
+ export const SearchLinkedInCompaniesType$inboundSchema: z.ZodMiniEnum<
4083
+ typeof SearchLinkedInCompaniesType
4084
+ > = z.enum(SearchLinkedInCompaniesType);
4085
+
4086
+ /** @internal */
4087
+ export const SearchLinkedInCompaniesItem$inboundSchema: z.ZodMiniType<
4088
+ SearchLinkedInCompaniesItem,
4089
+ unknown
4090
+ > = z.object({
4091
+ type: SearchLinkedInCompaniesType$inboundSchema,
4092
+ name: types.string(),
4093
+ profileUrl: types.string(),
4094
+ summary: types.nullable(types.string()),
4095
+ industry: types.nullable(types.string()),
4096
+ location: types.nullable(types.string()),
4097
+ followersCount: types.nullable(types.number()),
4098
+ });
4099
+
4100
+ export function searchLinkedInCompaniesItemFromJSON(
4101
+ jsonString: string,
4102
+ ): SafeParseResult<SearchLinkedInCompaniesItem, SDKValidationError> {
4103
+ return safeParse(
4104
+ jsonString,
4105
+ (x) => SearchLinkedInCompaniesItem$inboundSchema.parse(JSON.parse(x)),
4106
+ `Failed to parse 'SearchLinkedInCompaniesItem' from JSON`,
4107
+ );
4108
+ }
4109
+
4110
+ /** @internal */
4111
+ export const SearchLinkedInCompaniesPaging$inboundSchema: z.ZodMiniType<
4112
+ SearchLinkedInCompaniesPaging,
4113
+ unknown
4114
+ > = z.object({
4115
+ start: types.number(),
4116
+ count: types.number(),
4117
+ total: types.number(),
4118
+ });
4119
+
4120
+ export function searchLinkedInCompaniesPagingFromJSON(
4121
+ jsonString: string,
4122
+ ): SafeParseResult<SearchLinkedInCompaniesPaging, SDKValidationError> {
4123
+ return safeParse(
4124
+ jsonString,
4125
+ (x) => SearchLinkedInCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
4126
+ `Failed to parse 'SearchLinkedInCompaniesPaging' from JSON`,
4127
+ );
4128
+ }
4129
+
4130
+ /** @internal */
4131
+ export const SearchLinkedInCompaniesResponse$inboundSchema: z.ZodMiniType<
4132
+ SearchLinkedInCompaniesResponse,
4133
+ unknown
4134
+ > = z.object({
4135
+ success: types.boolean(),
4136
+ category: SearchLinkedInCompaniesCategory$inboundSchema,
4137
+ items: z.array(z.lazy(() => SearchLinkedInCompaniesItem$inboundSchema)),
4138
+ paging: z.lazy(() => SearchLinkedInCompaniesPaging$inboundSchema),
4139
+ hasMore: types.boolean(),
4140
+ creditsUsed: types.number(),
4141
+ retryAfter: types.number(),
4142
+ });
4143
+
4144
+ export function searchLinkedInCompaniesResponseFromJSON(
4145
+ jsonString: string,
4146
+ ): SafeParseResult<SearchLinkedInCompaniesResponse, SDKValidationError> {
4147
+ return safeParse(
4148
+ jsonString,
4149
+ (x) => SearchLinkedInCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
4150
+ `Failed to parse 'SearchLinkedInCompaniesResponse' from JSON`,
4151
+ );
4152
+ }
4153
+
4154
+ /** @internal */
4155
+ export const SearchLinkedInJobsDatePosted$outboundSchema: z.ZodMiniEnum<
4156
+ typeof SearchLinkedInJobsDatePosted
4157
+ > = z.enum(SearchLinkedInJobsDatePosted);
4158
+
4159
+ /** @internal */
4160
+ export const SearchLinkedInJobsSortBy$outboundSchema: z.ZodMiniEnum<
4161
+ typeof SearchLinkedInJobsSortBy
4162
+ > = z.enum(SearchLinkedInJobsSortBy);
4163
+
4164
+ /** @internal */
4165
+ export const SearchLinkedInJobsJobType$outboundSchema: z.ZodMiniEnum<
4166
+ typeof SearchLinkedInJobsJobType
4167
+ > = z.enum(SearchLinkedInJobsJobType);
4168
+
4169
+ /** @internal */
4170
+ export const SearchLinkedInJobsExperienceLevel$outboundSchema: z.ZodMiniEnum<
4171
+ typeof SearchLinkedInJobsExperienceLevel
4172
+ > = z.enum(SearchLinkedInJobsExperienceLevel);
4173
+
4174
+ /** @internal */
4175
+ export const SearchLinkedInJobsWorkplaceType$outboundSchema: z.ZodMiniEnum<
4176
+ typeof SearchLinkedInJobsWorkplaceType
4177
+ > = z.enum(SearchLinkedInJobsWorkplaceType);
4178
+
4179
+ /** @internal */
4180
+ export type SearchLinkedInJobsRequest$Outbound = {
4181
+ keywords?: string | undefined;
4182
+ url?: string | undefined;
4183
+ location?: Array<string> | undefined;
4184
+ datePosted?: string | undefined;
4185
+ sortBy?: string | undefined;
4186
+ jobType?: Array<string> | undefined;
4187
+ experienceLevel?: Array<string> | undefined;
4188
+ workplaceType?: Array<string> | undefined;
4189
+ start?: number | undefined;
4190
+ count?: number | undefined;
4191
+ };
4192
+
4193
+ /** @internal */
4194
+ export const SearchLinkedInJobsRequest$outboundSchema: z.ZodMiniType<
4195
+ SearchLinkedInJobsRequest$Outbound,
4196
+ SearchLinkedInJobsRequest
4197
+ > = z.object({
4198
+ keywords: z.optional(z.string()),
4199
+ url: z.optional(z.string()),
4200
+ location: z.optional(z.array(z.string())),
4201
+ datePosted: z.optional(SearchLinkedInJobsDatePosted$outboundSchema),
4202
+ sortBy: z.optional(SearchLinkedInJobsSortBy$outboundSchema),
4203
+ jobType: z.optional(z.array(SearchLinkedInJobsJobType$outboundSchema)),
4204
+ experienceLevel: z.optional(
4205
+ z.array(SearchLinkedInJobsExperienceLevel$outboundSchema),
4206
+ ),
4207
+ workplaceType: z.optional(
4208
+ z.array(SearchLinkedInJobsWorkplaceType$outboundSchema),
4209
+ ),
4210
+ start: z.optional(z.int()),
4211
+ count: z.optional(z.int()),
4212
+ });
4213
+
4214
+ export function searchLinkedInJobsRequestToJSON(
4215
+ searchLinkedInJobsRequest: SearchLinkedInJobsRequest,
4216
+ ): string {
4217
+ return JSON.stringify(
4218
+ SearchLinkedInJobsRequest$outboundSchema.parse(searchLinkedInJobsRequest),
4219
+ );
4220
+ }
4221
+
4222
+ /** @internal */
4223
+ export const SearchLinkedInJobsCategory$inboundSchema: z.ZodMiniEnum<
4224
+ typeof SearchLinkedInJobsCategory
4225
+ > = z.enum(SearchLinkedInJobsCategory);
4226
+
4227
+ /** @internal */
4228
+ export const SearchLinkedInJobsType$inboundSchema: z.ZodMiniEnum<
4229
+ typeof SearchLinkedInJobsType
4230
+ > = z.enum(SearchLinkedInJobsType);
4231
+
4232
+ /** @internal */
4233
+ export const SearchLinkedInJobsItem$inboundSchema: z.ZodMiniType<
4234
+ SearchLinkedInJobsItem,
4235
+ unknown
4236
+ > = z.object({
4237
+ type: SearchLinkedInJobsType$inboundSchema,
4238
+ title: types.string(),
4239
+ company: types.nullable(types.string()),
4240
+ companyUrl: types.nullable(types.string()),
4241
+ companyLogo: types.nullable(types.string()),
4242
+ location: types.nullable(types.string()),
4243
+ workplaceType: types.nullable(types.string()),
4244
+ postedAt: types.nullable(types.string()),
4245
+ jobUrl: types.string(),
4246
+ listingId: types.string(),
4247
+ });
4248
+
4249
+ export function searchLinkedInJobsItemFromJSON(
4250
+ jsonString: string,
4251
+ ): SafeParseResult<SearchLinkedInJobsItem, SDKValidationError> {
4252
+ return safeParse(
4253
+ jsonString,
4254
+ (x) => SearchLinkedInJobsItem$inboundSchema.parse(JSON.parse(x)),
4255
+ `Failed to parse 'SearchLinkedInJobsItem' from JSON`,
4256
+ );
4257
+ }
4258
+
4259
+ /** @internal */
4260
+ export const SearchLinkedInJobsPaging$inboundSchema: z.ZodMiniType<
4261
+ SearchLinkedInJobsPaging,
4262
+ unknown
4263
+ > = z.object({
4264
+ start: types.number(),
4265
+ count: types.number(),
4266
+ total: types.number(),
4267
+ });
4268
+
4269
+ export function searchLinkedInJobsPagingFromJSON(
4270
+ jsonString: string,
4271
+ ): SafeParseResult<SearchLinkedInJobsPaging, SDKValidationError> {
4272
+ return safeParse(
4273
+ jsonString,
4274
+ (x) => SearchLinkedInJobsPaging$inboundSchema.parse(JSON.parse(x)),
4275
+ `Failed to parse 'SearchLinkedInJobsPaging' from JSON`,
4276
+ );
4277
+ }
4278
+
4279
+ /** @internal */
4280
+ export const SearchLinkedInJobsResponse$inboundSchema: z.ZodMiniType<
4281
+ SearchLinkedInJobsResponse,
4282
+ unknown
4283
+ > = z.object({
4284
+ success: types.boolean(),
4285
+ category: SearchLinkedInJobsCategory$inboundSchema,
4286
+ items: z.array(z.lazy(() => SearchLinkedInJobsItem$inboundSchema)),
4287
+ paging: z.lazy(() => SearchLinkedInJobsPaging$inboundSchema),
4288
+ hasMore: types.boolean(),
4289
+ creditsUsed: types.number(),
4290
+ retryAfter: types.number(),
4291
+ });
4292
+
4293
+ export function searchLinkedInJobsResponseFromJSON(
4294
+ jsonString: string,
4295
+ ): SafeParseResult<SearchLinkedInJobsResponse, SDKValidationError> {
4296
+ return safeParse(
4297
+ jsonString,
4298
+ (x) => SearchLinkedInJobsResponse$inboundSchema.parse(JSON.parse(x)),
4299
+ `Failed to parse 'SearchLinkedInJobsResponse' from JSON`,
4300
+ );
4301
+ }
4302
+
4303
+ /** @internal */
4304
+ export type SearchLinkedInByUrlRequest$Outbound = {
4305
+ url: string;
4306
+ start?: number | undefined;
4307
+ count?: number | undefined;
4308
+ };
4309
+
4310
+ /** @internal */
4311
+ export const SearchLinkedInByUrlRequest$outboundSchema: z.ZodMiniType<
4312
+ SearchLinkedInByUrlRequest$Outbound,
4313
+ SearchLinkedInByUrlRequest
4314
+ > = z.object({
4315
+ url: z.string(),
4316
+ start: z.optional(z.int()),
4317
+ count: z.optional(z.int()),
4318
+ });
4319
+
4320
+ export function searchLinkedInByUrlRequestToJSON(
4321
+ searchLinkedInByUrlRequest: SearchLinkedInByUrlRequest,
4322
+ ): string {
4323
+ return JSON.stringify(
4324
+ SearchLinkedInByUrlRequest$outboundSchema.parse(searchLinkedInByUrlRequest),
4325
+ );
4326
+ }
4327
+
4328
+ /** @internal */
4329
+ export const SearchLinkedInByUrlCategory$inboundSchema: z.ZodMiniType<
4330
+ SearchLinkedInByUrlCategory,
4331
+ unknown
4332
+ > = openEnums.inboundSchema(SearchLinkedInByUrlCategory);
4333
+
4334
+ /** @internal */
4335
+ export const SearchLinkedInByUrlTypeJob$inboundSchema: z.ZodMiniEnum<
4336
+ typeof SearchLinkedInByUrlTypeJob
4337
+ > = z.enum(SearchLinkedInByUrlTypeJob);
4338
+
4339
+ /** @internal */
4340
+ export const SearchLinkedInByUrlItemsJob$inboundSchema: z.ZodMiniType<
4341
+ SearchLinkedInByUrlItemsJob,
4342
+ unknown
4343
+ > = z.object({
4344
+ type: SearchLinkedInByUrlTypeJob$inboundSchema,
4345
+ title: types.string(),
4346
+ company: types.nullable(types.string()),
4347
+ companyUrl: types.nullable(types.string()),
4348
+ companyLogo: types.nullable(types.string()),
4349
+ location: types.nullable(types.string()),
4350
+ workplaceType: types.nullable(types.string()),
4351
+ postedAt: types.nullable(types.string()),
4352
+ jobUrl: types.string(),
4353
+ listingId: types.string(),
4354
+ });
4355
+
4356
+ export function searchLinkedInByUrlItemsJobFromJSON(
4357
+ jsonString: string,
4358
+ ): SafeParseResult<SearchLinkedInByUrlItemsJob, SDKValidationError> {
4359
+ return safeParse(
4360
+ jsonString,
4361
+ (x) => SearchLinkedInByUrlItemsJob$inboundSchema.parse(JSON.parse(x)),
4362
+ `Failed to parse 'SearchLinkedInByUrlItemsJob' from JSON`,
4363
+ );
4364
+ }
4365
+
4366
+ /** @internal */
4367
+ export const SearchLinkedInByUrlTypeCompany$inboundSchema: z.ZodMiniEnum<
4368
+ typeof SearchLinkedInByUrlTypeCompany
4369
+ > = z.enum(SearchLinkedInByUrlTypeCompany);
4370
+
4371
+ /** @internal */
4372
+ export const SearchLinkedInByUrlItemsCompany$inboundSchema: z.ZodMiniType<
4373
+ SearchLinkedInByUrlItemsCompany,
4374
+ unknown
4375
+ > = z.object({
4376
+ type: SearchLinkedInByUrlTypeCompany$inboundSchema,
4377
+ name: types.string(),
4378
+ profileUrl: types.string(),
4379
+ summary: types.nullable(types.string()),
4380
+ industry: types.nullable(types.string()),
4381
+ location: types.nullable(types.string()),
4382
+ followersCount: types.nullable(types.number()),
4383
+ });
4384
+
4385
+ export function searchLinkedInByUrlItemsCompanyFromJSON(
4386
+ jsonString: string,
4387
+ ): SafeParseResult<SearchLinkedInByUrlItemsCompany, SDKValidationError> {
4388
+ return safeParse(
4389
+ jsonString,
4390
+ (x) => SearchLinkedInByUrlItemsCompany$inboundSchema.parse(JSON.parse(x)),
4391
+ `Failed to parse 'SearchLinkedInByUrlItemsCompany' from JSON`,
4392
+ );
4393
+ }
4394
+
4395
+ /** @internal */
4396
+ export const SearchLinkedInByUrlTypePeople$inboundSchema: z.ZodMiniEnum<
4397
+ typeof SearchLinkedInByUrlTypePeople
4398
+ > = z.enum(SearchLinkedInByUrlTypePeople);
4399
+
4400
+ /** @internal */
4401
+ export const SearchLinkedInByUrlNetworkDistance$inboundSchema: z.ZodMiniType<
4402
+ SearchLinkedInByUrlNetworkDistance,
4403
+ unknown
4404
+ > = openEnums.inboundSchema(SearchLinkedInByUrlNetworkDistance);
4405
+
4406
+ /** @internal */
4407
+ export const SearchLinkedInByUrlCurrentPosition$inboundSchema: z.ZodMiniType<
4408
+ SearchLinkedInByUrlCurrentPosition,
4409
+ unknown
4410
+ > = z.object({
4411
+ company: types.nullable(types.string()),
4412
+ role: types.nullable(types.string()),
4413
+ });
4414
+
4415
+ export function searchLinkedInByUrlCurrentPositionFromJSON(
4416
+ jsonString: string,
4417
+ ): SafeParseResult<SearchLinkedInByUrlCurrentPosition, SDKValidationError> {
4418
+ return safeParse(
4419
+ jsonString,
4420
+ (x) =>
4421
+ SearchLinkedInByUrlCurrentPosition$inboundSchema.parse(JSON.parse(x)),
4422
+ `Failed to parse 'SearchLinkedInByUrlCurrentPosition' from JSON`,
4423
+ );
4424
+ }
4425
+
4426
+ /** @internal */
4427
+ export const SearchLinkedInByUrlItemsPeople$inboundSchema: z.ZodMiniType<
4428
+ SearchLinkedInByUrlItemsPeople,
4429
+ unknown
4430
+ > = z.object({
4431
+ type: SearchLinkedInByUrlTypePeople$inboundSchema,
4432
+ name: types.string(),
4433
+ profileUrl: types.string(),
4434
+ headline: types.nullable(types.string()),
4435
+ location: types.nullable(types.string()),
4436
+ profilePicture: types.nullable(types.string()),
4437
+ networkDistance: types.nullable(
4438
+ SearchLinkedInByUrlNetworkDistance$inboundSchema,
4439
+ ),
4440
+ currentPositions: z.array(
4441
+ z.lazy(() => SearchLinkedInByUrlCurrentPosition$inboundSchema),
4442
+ ),
4443
+ });
4444
+
4445
+ export function searchLinkedInByUrlItemsPeopleFromJSON(
4446
+ jsonString: string,
4447
+ ): SafeParseResult<SearchLinkedInByUrlItemsPeople, SDKValidationError> {
4448
+ return safeParse(
4449
+ jsonString,
4450
+ (x) => SearchLinkedInByUrlItemsPeople$inboundSchema.parse(JSON.parse(x)),
4451
+ `Failed to parse 'SearchLinkedInByUrlItemsPeople' from JSON`,
4452
+ );
4453
+ }
4454
+
4455
+ /** @internal */
4456
+ export const SearchLinkedInByUrlTypePost$inboundSchema: z.ZodMiniEnum<
4457
+ typeof SearchLinkedInByUrlTypePost
4458
+ > = z.enum(SearchLinkedInByUrlTypePost);
4459
+
4460
+ /** @internal */
4461
+ export const SearchLinkedInByUrlAuthor$inboundSchema: z.ZodMiniType<
4462
+ SearchLinkedInByUrlAuthor,
4463
+ unknown
4464
+ > = z.object({
4465
+ name: types.string(),
4466
+ profileUrl: types.nullable(types.string()),
4467
+ headline: types.nullable(types.string()),
4468
+ profilePicture: types.nullable(types.string()),
4469
+ isCompany: types.boolean(),
4470
+ });
4471
+
4472
+ export function searchLinkedInByUrlAuthorFromJSON(
4473
+ jsonString: string,
4474
+ ): SafeParseResult<SearchLinkedInByUrlAuthor, SDKValidationError> {
4475
+ return safeParse(
4476
+ jsonString,
4477
+ (x) => SearchLinkedInByUrlAuthor$inboundSchema.parse(JSON.parse(x)),
4478
+ `Failed to parse 'SearchLinkedInByUrlAuthor' from JSON`,
4479
+ );
4480
+ }
4481
+
4482
+ /** @internal */
4483
+ export const SearchLinkedInByUrlItemsPost$inboundSchema: z.ZodMiniType<
4484
+ SearchLinkedInByUrlItemsPost,
4485
+ unknown
4486
+ > = z.object({
4487
+ type: SearchLinkedInByUrlTypePost$inboundSchema,
4488
+ postUrl: types.string(),
4489
+ text: types.string(),
4490
+ date: types.number(),
4491
+ likesCount: types.number(),
4492
+ commentsCount: types.number(),
4493
+ sharesCount: types.number(),
4494
+ postUrn: types.string(),
4495
+ postId: types.string(),
4496
+ author: z.lazy(() => SearchLinkedInByUrlAuthor$inboundSchema),
4497
+ isRepost: types.boolean(),
4498
+ });
4499
+
4500
+ export function searchLinkedInByUrlItemsPostFromJSON(
4501
+ jsonString: string,
4502
+ ): SafeParseResult<SearchLinkedInByUrlItemsPost, SDKValidationError> {
4503
+ return safeParse(
4504
+ jsonString,
4505
+ (x) => SearchLinkedInByUrlItemsPost$inboundSchema.parse(JSON.parse(x)),
4506
+ `Failed to parse 'SearchLinkedInByUrlItemsPost' from JSON`,
4507
+ );
4508
+ }
4509
+
4510
+ /** @internal */
4511
+ export const SearchLinkedInByUrlItemsUnion$inboundSchema: z.ZodMiniType<
4512
+ SearchLinkedInByUrlItemsUnion,
4513
+ unknown
4514
+ > = smartUnion([
4515
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPost$inboundSchema)),
4516
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPeople$inboundSchema)),
4517
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsCompany$inboundSchema)),
4518
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsJob$inboundSchema)),
4519
+ ]);
4520
+
4521
+ export function searchLinkedInByUrlItemsUnionFromJSON(
4522
+ jsonString: string,
4523
+ ): SafeParseResult<SearchLinkedInByUrlItemsUnion, SDKValidationError> {
4524
+ return safeParse(
4525
+ jsonString,
4526
+ (x) => SearchLinkedInByUrlItemsUnion$inboundSchema.parse(JSON.parse(x)),
4527
+ `Failed to parse 'SearchLinkedInByUrlItemsUnion' from JSON`,
4528
+ );
4529
+ }
4530
+
4531
+ /** @internal */
4532
+ export const SearchLinkedInByUrlPaging$inboundSchema: z.ZodMiniType<
4533
+ SearchLinkedInByUrlPaging,
4534
+ unknown
4535
+ > = z.object({
4536
+ start: types.number(),
4537
+ count: types.number(),
4538
+ total: types.number(),
4539
+ });
4540
+
4541
+ export function searchLinkedInByUrlPagingFromJSON(
4542
+ jsonString: string,
4543
+ ): SafeParseResult<SearchLinkedInByUrlPaging, SDKValidationError> {
4544
+ return safeParse(
4545
+ jsonString,
4546
+ (x) => SearchLinkedInByUrlPaging$inboundSchema.parse(JSON.parse(x)),
4547
+ `Failed to parse 'SearchLinkedInByUrlPaging' from JSON`,
4548
+ );
4549
+ }
4550
+
4551
+ /** @internal */
4552
+ export const SearchLinkedInByUrlResponse$inboundSchema: z.ZodMiniType<
4553
+ SearchLinkedInByUrlResponse,
4554
+ unknown
4555
+ > = z.object({
4556
+ success: types.boolean(),
4557
+ category: SearchLinkedInByUrlCategory$inboundSchema,
4558
+ items: smartUnion([
4559
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPost$inboundSchema)),
4560
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPeople$inboundSchema)),
4561
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsCompany$inboundSchema)),
4562
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsJob$inboundSchema)),
4563
+ ]),
4564
+ paging: z.lazy(() => SearchLinkedInByUrlPaging$inboundSchema),
4565
+ hasMore: types.boolean(),
4566
+ creditsUsed: types.number(),
4567
+ retryAfter: types.number(),
4568
+ });
4569
+
4570
+ export function searchLinkedInByUrlResponseFromJSON(
4571
+ jsonString: string,
4572
+ ): SafeParseResult<SearchLinkedInByUrlResponse, SDKValidationError> {
4573
+ return safeParse(
4574
+ jsonString,
4575
+ (x) => SearchLinkedInByUrlResponse$inboundSchema.parse(JSON.parse(x)),
4576
+ `Failed to parse 'SearchLinkedInByUrlResponse' from JSON`,
4577
+ );
4578
+ }
4579
+
4580
+ /** @internal */
4581
+ export const ResolveLinkedInSearchParametersType$outboundSchema: z.ZodMiniEnum<
4582
+ typeof ResolveLinkedInSearchParametersType
4583
+ > = z.enum(ResolveLinkedInSearchParametersType);
4584
+
4585
+ /** @internal */
4586
+ export type ResolveLinkedInSearchParametersRequest$Outbound = {
4587
+ type: string;
4588
+ keywords: string;
4589
+ limit?: number | undefined;
4590
+ };
4591
+
4592
+ /** @internal */
4593
+ export const ResolveLinkedInSearchParametersRequest$outboundSchema:
4594
+ z.ZodMiniType<
4595
+ ResolveLinkedInSearchParametersRequest$Outbound,
4596
+ ResolveLinkedInSearchParametersRequest
4597
+ > = z.object({
4598
+ type: ResolveLinkedInSearchParametersType$outboundSchema,
4599
+ keywords: z.string(),
4600
+ limit: z.optional(z.int()),
4601
+ });
4602
+
4603
+ export function resolveLinkedInSearchParametersRequestToJSON(
4604
+ resolveLinkedInSearchParametersRequest:
4605
+ ResolveLinkedInSearchParametersRequest,
4606
+ ): string {
4607
+ return JSON.stringify(
4608
+ ResolveLinkedInSearchParametersRequest$outboundSchema.parse(
4609
+ resolveLinkedInSearchParametersRequest,
4610
+ ),
4611
+ );
4612
+ }
4613
+
4614
+ /** @internal */
4615
+ export const ResolveLinkedInSearchParametersItem$inboundSchema: z.ZodMiniType<
4616
+ ResolveLinkedInSearchParametersItem,
4617
+ unknown
4618
+ > = z.object({
4619
+ id: types.string(),
4620
+ title: types.string(),
4621
+ type: types.string(),
4622
+ });
4623
+
4624
+ export function resolveLinkedInSearchParametersItemFromJSON(
4625
+ jsonString: string,
4626
+ ): SafeParseResult<ResolveLinkedInSearchParametersItem, SDKValidationError> {
4627
+ return safeParse(
4628
+ jsonString,
4629
+ (x) =>
4630
+ ResolveLinkedInSearchParametersItem$inboundSchema.parse(JSON.parse(x)),
4631
+ `Failed to parse 'ResolveLinkedInSearchParametersItem' from JSON`,
4632
+ );
4633
+ }
4634
+
4635
+ /** @internal */
4636
+ export const ResolveLinkedInSearchParametersResponse$inboundSchema:
4637
+ z.ZodMiniType<ResolveLinkedInSearchParametersResponse, unknown> = z.object({
4638
+ success: types.boolean(),
4639
+ items: z.array(
4640
+ z.lazy(() => ResolveLinkedInSearchParametersItem$inboundSchema),
4641
+ ),
4642
+ count: types.number(),
4643
+ creditsUsed: types.number(),
4644
+ retryAfter: types.number(),
4645
+ });
4646
+
4647
+ export function resolveLinkedInSearchParametersResponseFromJSON(
4648
+ jsonString: string,
4649
+ ): SafeParseResult<
4650
+ ResolveLinkedInSearchParametersResponse,
4651
+ SDKValidationError
4652
+ > {
4653
+ return safeParse(
4654
+ jsonString,
4655
+ (x) =>
4656
+ ResolveLinkedInSearchParametersResponse$inboundSchema.parse(
4657
+ JSON.parse(x),
4658
+ ),
4659
+ `Failed to parse 'ResolveLinkedInSearchParametersResponse' from JSON`,
4660
+ );
4661
+ }
4662
+
4663
+ /** @internal */
4664
+ export type ConnectLinkedInProfileRequest$Outbound = {
4665
+ profile: string;
4666
+ campaignSlug?: string | undefined;
4667
+ actionSlug?: string | undefined;
4668
+ };
4669
+
4670
+ /** @internal */
4671
+ export const ConnectLinkedInProfileRequest$outboundSchema: z.ZodMiniType<
4672
+ ConnectLinkedInProfileRequest$Outbound,
4673
+ ConnectLinkedInProfileRequest
4674
+ > = z.object({
4675
+ profile: z.string(),
4676
+ campaignSlug: z.optional(z.string()),
4677
+ actionSlug: z.optional(z.string()),
4678
+ });
4679
+
4680
+ export function connectLinkedInProfileRequestToJSON(
4681
+ connectLinkedInProfileRequest: ConnectLinkedInProfileRequest,
4682
+ ): string {
4683
+ return JSON.stringify(
4684
+ ConnectLinkedInProfileRequest$outboundSchema.parse(
4685
+ connectLinkedInProfileRequest,
4686
+ ),
4687
+ );
4688
+ }
4689
+
4690
+ /** @internal */
4691
+ export const ConnectLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
4692
+ ConnectLinkedInProfileResponse,
4693
+ unknown
4694
+ > = z.object({
4695
+ success: types.boolean(),
4696
+ message: types.string(),
4697
+ duplicate: types.optional(types.boolean()),
4698
+ creditsUsed: types.number(),
4699
+ retryAfter: types.number(),
4700
+ });
4701
+
4702
+ export function connectLinkedInProfileResponseFromJSON(
4703
+ jsonString: string,
4704
+ ): SafeParseResult<ConnectLinkedInProfileResponse, SDKValidationError> {
4705
+ return safeParse(
4706
+ jsonString,
4707
+ (x) => ConnectLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)),
4708
+ `Failed to parse 'ConnectLinkedInProfileResponse' from JSON`,
4709
+ );
4710
+ }
4711
+
4712
+ /** @internal */
4713
+ export type ListLinkedInInvitationsRequest$Outbound = {
4714
+ start: number;
4715
+ count: number;
4716
+ };
4717
+
4718
+ /** @internal */
4719
+ export const ListLinkedInInvitationsRequest$outboundSchema: z.ZodMiniType<
4720
+ ListLinkedInInvitationsRequest$Outbound,
4721
+ ListLinkedInInvitationsRequest
4722
+ > = z.object({
4723
+ start: z._default(z.int(), 0),
4724
+ count: z._default(z.int(), 10),
4725
+ });
4726
+
4727
+ export function listLinkedInInvitationsRequestToJSON(
4728
+ listLinkedInInvitationsRequest: ListLinkedInInvitationsRequest,
4729
+ ): string {
4730
+ return JSON.stringify(
4731
+ ListLinkedInInvitationsRequest$outboundSchema.parse(
4732
+ listLinkedInInvitationsRequest,
4733
+ ),
4734
+ );
4735
+ }
4736
+
4737
+ /** @internal */
4738
+ export const FromMember$inboundSchema: z.ZodMiniType<FromMember, unknown> = z
4739
+ .object({
4740
+ name: z.optional(z.nullable(types.string())),
4741
+ headline: z.optional(z.nullable(types.string())),
4742
+ profileUrl: z.optional(z.nullable(types.string())),
4743
+ profilePicture: z.optional(z.nullable(types.string())),
4744
+ });
4745
+
4746
+ export function fromMemberFromJSON(
4747
+ jsonString: string,
4748
+ ): SafeParseResult<FromMember, SDKValidationError> {
4749
+ return safeParse(
4750
+ jsonString,
4751
+ (x) => FromMember$inboundSchema.parse(JSON.parse(x)),
4752
+ `Failed to parse 'FromMember' from JSON`,
4753
+ );
4754
+ }
4755
+
4756
+ /** @internal */
4757
+ export const Invitation$inboundSchema: z.ZodMiniType<Invitation, unknown> = z
4758
+ .object({
4759
+ invitationId: types.string(),
4760
+ sharedSecret: types.string(),
4761
+ entityUrn: types.string(),
4762
+ sentAt: z.optional(z.nullable(types.string())),
4763
+ message: z.optional(z.nullable(types.string())),
4764
+ senderProfileId: z.optional(z.nullable(types.string())),
4765
+ senderFirstName: z.optional(z.nullable(types.string())),
4766
+ senderLastName: z.optional(z.nullable(types.string())),
4767
+ fromMember: z.optional(z.nullable(z.lazy(() => FromMember$inboundSchema))),
4768
+ });
4769
+
4770
+ export function invitationFromJSON(
4771
+ jsonString: string,
4772
+ ): SafeParseResult<Invitation, SDKValidationError> {
4773
+ return safeParse(
4774
+ jsonString,
4775
+ (x) => Invitation$inboundSchema.parse(JSON.parse(x)),
4776
+ `Failed to parse 'Invitation' from JSON`,
4777
+ );
4778
+ }
4779
+
4780
+ /** @internal */
4781
+ export const ListLinkedInInvitationsResponse$inboundSchema: z.ZodMiniType<
4782
+ ListLinkedInInvitationsResponse,
4783
+ unknown
4784
+ > = z.object({
4785
+ success: types.boolean(),
4786
+ invitations: z.array(z.lazy(() => Invitation$inboundSchema)),
4787
+ total: types.number(),
4788
+ start: types.number(),
4789
+ count: types.number(),
4790
+ creditsUsed: types.number(),
4791
+ retryAfter: types.number(),
4792
+ });
4793
+
4794
+ export function listLinkedInInvitationsResponseFromJSON(
4795
+ jsonString: string,
4796
+ ): SafeParseResult<ListLinkedInInvitationsResponse, SDKValidationError> {
4797
+ return safeParse(
4798
+ jsonString,
4799
+ (x) => ListLinkedInInvitationsResponse$inboundSchema.parse(JSON.parse(x)),
4800
+ `Failed to parse 'ListLinkedInInvitationsResponse' from JSON`,
4801
+ );
4802
+ }
4803
+
4804
+ /** @internal */
4805
+ export type AcceptLinkedInInvitationRequest$Outbound = {
4806
+ invitationId: string;
4807
+ sharedSecret: string;
4808
+ senderProfileId?: string | undefined;
4809
+ firstName?: string | undefined;
4810
+ lastName?: string | undefined;
4811
+ };
4812
+
4813
+ /** @internal */
4814
+ export const AcceptLinkedInInvitationRequest$outboundSchema: z.ZodMiniType<
4815
+ AcceptLinkedInInvitationRequest$Outbound,
4816
+ AcceptLinkedInInvitationRequest
4817
+ > = z.object({
4818
+ invitationId: z.string(),
4819
+ sharedSecret: z.string(),
4820
+ senderProfileId: z.optional(z.string()),
4821
+ firstName: z.optional(z.string()),
4822
+ lastName: z.optional(z.string()),
4823
+ });
4824
+
4825
+ export function acceptLinkedInInvitationRequestToJSON(
4826
+ acceptLinkedInInvitationRequest: AcceptLinkedInInvitationRequest,
4827
+ ): string {
4828
+ return JSON.stringify(
4829
+ AcceptLinkedInInvitationRequest$outboundSchema.parse(
4830
+ acceptLinkedInInvitationRequest,
4831
+ ),
4832
+ );
4833
+ }
4834
+
4835
+ /** @internal */
4836
+ export const AcceptLinkedInInvitationResponse$inboundSchema: z.ZodMiniType<
4837
+ AcceptLinkedInInvitationResponse,
4838
+ unknown
4839
+ > = z.object({
4840
+ success: types.boolean(),
4841
+ message: types.string(),
4842
+ creditsUsed: types.number(),
4843
+ retryAfter: types.number(),
4844
+ });
4845
+
4846
+ export function acceptLinkedInInvitationResponseFromJSON(
4847
+ jsonString: string,
4848
+ ): SafeParseResult<AcceptLinkedInInvitationResponse, SDKValidationError> {
4849
+ return safeParse(
4850
+ jsonString,
4851
+ (x) => AcceptLinkedInInvitationResponse$inboundSchema.parse(JSON.parse(x)),
4852
+ `Failed to parse 'AcceptLinkedInInvitationResponse' from JSON`,
4853
+ );
4854
+ }
4855
+
4856
+ /** @internal */
4857
+ export type SendLinkedInMessageRequest$Outbound = {
4858
+ profile: string;
4859
+ message: string;
4860
+ campaignSlug?: string | undefined;
4861
+ actionSlug?: string | undefined;
4862
+ };
4863
+
4864
+ /** @internal */
4865
+ export const SendLinkedInMessageRequest$outboundSchema: z.ZodMiniType<
4866
+ SendLinkedInMessageRequest$Outbound,
4867
+ SendLinkedInMessageRequest
4868
+ > = z.object({
4869
+ profile: z.string(),
4870
+ message: z.string(),
4871
+ campaignSlug: z.optional(z.string()),
4872
+ actionSlug: z.optional(z.string()),
4873
+ });
4874
+
4875
+ export function sendLinkedInMessageRequestToJSON(
4876
+ sendLinkedInMessageRequest: SendLinkedInMessageRequest,
4877
+ ): string {
4878
+ return JSON.stringify(
4879
+ SendLinkedInMessageRequest$outboundSchema.parse(sendLinkedInMessageRequest),
4880
+ );
4881
+ }
4882
+
4883
+ /** @internal */
4884
+ export const SendLinkedInMessageResponse$inboundSchema: z.ZodMiniType<
4885
+ SendLinkedInMessageResponse,
4886
+ unknown
4887
+ > = z.object({
4888
+ success: types.boolean(),
4889
+ messageId: types.string(),
4890
+ duplicate: types.optional(types.boolean()),
4891
+ creditsUsed: types.number(),
4892
+ retryAfter: types.number(),
4893
+ });
4894
+
4895
+ export function sendLinkedInMessageResponseFromJSON(
4896
+ jsonString: string,
4897
+ ): SafeParseResult<SendLinkedInMessageResponse, SDKValidationError> {
4898
+ return safeParse(
4899
+ jsonString,
4900
+ (x) => SendLinkedInMessageResponse$inboundSchema.parse(JSON.parse(x)),
4901
+ `Failed to parse 'SendLinkedInMessageResponse' from JSON`,
4902
+ );
4903
+ }