bereach 1.4.0 → 1.4.2

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 (430) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/README.md +101 -128
  3. package/esm/funcs/{linkedin-actions-accept-invitation.d.ts → actions-accept-invitation.d.ts} +2 -2
  4. package/esm/funcs/actions-accept-invitation.d.ts.map +1 -0
  5. package/esm/funcs/{linkedin-actions-accept-invitation.js → actions-accept-invitation.js} +2 -2
  6. package/esm/funcs/{linkedin-actions-edit-post.js.map → actions-accept-invitation.js.map} +1 -1
  7. package/esm/funcs/{linked-in-actions-create-comment.d.ts → actions-create-comment.d.ts} +2 -2
  8. package/esm/funcs/actions-create-comment.d.ts.map +1 -0
  9. package/esm/funcs/{linked-in-actions-create-comment.js → actions-create-comment.js} +2 -2
  10. package/esm/funcs/actions-create-comment.js.map +1 -0
  11. package/esm/funcs/{linkedin-scrapers-list-saved-posts.d.ts → actions-decline-invitation.d.ts} +4 -4
  12. package/esm/funcs/actions-decline-invitation.d.ts.map +1 -0
  13. package/esm/funcs/{linked-in-actions-decline-invitation.js → actions-decline-invitation.js} +2 -2
  14. package/esm/funcs/{linked-in-actions-save-post.js.map → actions-decline-invitation.js.map} +1 -1
  15. package/esm/funcs/{linkedin-actions-edit-comment.d.ts → actions-edit-comment.d.ts} +2 -2
  16. package/esm/funcs/actions-edit-comment.d.ts.map +1 -0
  17. package/esm/funcs/{linkedin-actions-edit-comment.js → actions-edit-comment.js} +2 -2
  18. package/esm/funcs/actions-edit-comment.js.map +1 -0
  19. package/esm/funcs/{linkedin-actions-edit-post.d.ts → actions-edit-post.d.ts} +2 -2
  20. package/esm/funcs/actions-edit-post.d.ts.map +1 -0
  21. package/esm/funcs/{linkedin-actions-edit-post.js → actions-edit-post.js} +2 -2
  22. package/esm/funcs/{sales-navigator-search-search-companies.js.map → actions-edit-post.js.map} +1 -1
  23. package/esm/funcs/{linkedin-actions-follow-profile.d.ts → actions-follow-profile.d.ts} +2 -2
  24. package/esm/funcs/actions-follow-profile.d.ts.map +1 -0
  25. package/esm/funcs/{linkedin-actions-follow-profile.js → actions-follow-profile.js} +2 -2
  26. package/esm/funcs/actions-follow-profile.js.map +1 -0
  27. package/esm/funcs/{linked-in-actions-like-comment.d.ts → actions-like-comment.d.ts} +2 -2
  28. package/esm/funcs/actions-like-comment.d.ts.map +1 -0
  29. package/esm/funcs/{linked-in-actions-like-comment.js → actions-like-comment.js} +2 -2
  30. package/esm/funcs/actions-like-comment.js.map +1 -0
  31. package/esm/funcs/{linkedin-actions-like-post.d.ts → actions-like-post.d.ts} +2 -2
  32. package/esm/funcs/actions-like-post.d.ts.map +1 -0
  33. package/esm/funcs/{linkedin-actions-like-post.js → actions-like-post.js} +2 -2
  34. package/esm/funcs/actions-like-post.js.map +1 -0
  35. package/esm/funcs/{linkedin-actions-list-invitations.d.ts → actions-list-invitations.d.ts} +2 -2
  36. package/esm/funcs/{linkedin-chat-list-inbox.d.ts.map → actions-list-invitations.d.ts.map} +1 -1
  37. package/esm/funcs/{linkedin-actions-list-invitations.js → actions-list-invitations.js} +2 -2
  38. package/esm/funcs/{linkedin-actions-unlike-comment.js.map → actions-list-invitations.js.map} +1 -1
  39. package/esm/funcs/{linked-in-actions-publish-post.d.ts → actions-publish-post.d.ts} +2 -2
  40. package/esm/funcs/actions-publish-post.d.ts.map +1 -0
  41. package/esm/funcs/{linked-in-actions-publish-post.js → actions-publish-post.js} +2 -2
  42. package/esm/funcs/actions-publish-post.js.map +1 -0
  43. package/esm/funcs/{linkedin-actions-reply-to-comment.d.ts → actions-reply-to-comment.d.ts} +2 -2
  44. package/esm/funcs/{linked-in-chat-unarchive.d.ts.map → actions-reply-to-comment.d.ts.map} +1 -1
  45. package/esm/funcs/{linkedin-actions-reply-to-comment.js → actions-reply-to-comment.js} +2 -2
  46. package/esm/funcs/actions-reply-to-comment.js.map +1 -0
  47. package/esm/funcs/actions-repost-post.d.ts +18 -0
  48. package/esm/funcs/actions-repost-post.d.ts.map +1 -0
  49. package/esm/funcs/{linkedin-actions-repost-post.js → actions-repost-post.js} +2 -2
  50. package/esm/funcs/{linkedin-chat-react.js.map → actions-repost-post.js.map} +1 -1
  51. package/esm/funcs/{linked-in-actions-save-post.d.ts → actions-save-post.d.ts} +2 -2
  52. package/esm/funcs/actions-save-post.d.ts.map +1 -0
  53. package/esm/funcs/{linked-in-actions-save-post.js → actions-save-post.js} +2 -2
  54. package/esm/funcs/actions-save-post.js.map +1 -0
  55. package/esm/funcs/{linkedin-chat-list-inbox.d.ts → actions-unfollow-company.d.ts} +4 -4
  56. package/esm/funcs/actions-unfollow-company.d.ts.map +1 -0
  57. package/esm/funcs/{linkedin-actions-unfollow-company.js → actions-unfollow-company.js} +2 -2
  58. package/esm/funcs/actions-unfollow-company.js.map +1 -0
  59. package/esm/funcs/{linkedin-scrapers-collect-likes.d.ts → actions-unfollow-profile.d.ts} +4 -4
  60. package/esm/funcs/actions-unfollow-profile.d.ts.map +1 -0
  61. package/esm/funcs/{linked-in-actions-unfollow-profile.js → actions-unfollow-profile.js} +2 -2
  62. package/esm/funcs/actions-unfollow-profile.js.map +1 -0
  63. package/esm/funcs/{linkedin-actions-unlike-comment.d.ts → actions-unlike-comment.d.ts} +2 -2
  64. package/esm/funcs/actions-unlike-comment.d.ts.map +1 -0
  65. package/esm/funcs/{linkedin-actions-unlike-comment.js → actions-unlike-comment.js} +2 -2
  66. package/esm/funcs/actions-unlike-comment.js.map +1 -0
  67. package/esm/funcs/{linkedin-actions-unlike-post.d.ts → actions-unlike-post.d.ts} +2 -2
  68. package/esm/funcs/actions-unlike-post.d.ts.map +1 -0
  69. package/esm/funcs/{linkedin-actions-unlike-post.js → actions-unlike-post.js} +2 -2
  70. package/esm/funcs/{linked-in-chat-star.js.map → actions-unlike-post.js.map} +1 -1
  71. package/esm/funcs/{linkedin-actions-unsave-post.d.ts → actions-unsave-post.d.ts} +2 -2
  72. package/esm/funcs/actions-unsave-post.d.ts.map +1 -0
  73. package/esm/funcs/{linkedin-actions-unsave-post.js → actions-unsave-post.js} +2 -2
  74. package/esm/funcs/actions-unsave-post.js.map +1 -0
  75. package/esm/funcs/{linkedin-actions-withdraw-invitation.d.ts → actions-withdraw-invitation.d.ts} +2 -2
  76. package/esm/funcs/actions-withdraw-invitation.d.ts.map +1 -0
  77. package/esm/funcs/{linkedin-actions-withdraw-invitation.js → actions-withdraw-invitation.js} +2 -2
  78. package/esm/funcs/{linkedin-actions-repost-post.js.map → actions-withdraw-invitation.js.map} +1 -1
  79. package/esm/funcs/chat-list-inbox.d.ts +18 -0
  80. package/esm/funcs/chat-list-inbox.d.ts.map +1 -0
  81. package/esm/funcs/{linkedin-chat-list-inbox.js → chat-list-inbox.js} +2 -2
  82. package/esm/funcs/chat-list-inbox.js.map +1 -0
  83. package/esm/funcs/{linkedin-chat-mark-all-read.d.ts → chat-mark-all-read.d.ts} +2 -2
  84. package/esm/funcs/chat-mark-all-read.d.ts.map +1 -0
  85. package/esm/funcs/{linkedin-chat-mark-all-read.js → chat-mark-all-read.js} +2 -2
  86. package/esm/funcs/chat-mark-all-read.js.map +1 -0
  87. package/esm/funcs/{linked-in-chat-mark-seen.d.ts → chat-mark-seen.d.ts} +2 -2
  88. package/esm/funcs/chat-mark-seen.d.ts.map +1 -0
  89. package/esm/funcs/{linked-in-chat-mark-seen.js → chat-mark-seen.js} +2 -2
  90. package/esm/funcs/chat-mark-seen.js.map +1 -0
  91. package/esm/funcs/{linkedin-chat-react.d.ts → chat-react.d.ts} +2 -2
  92. package/esm/funcs/chat-react.d.ts.map +1 -0
  93. package/esm/funcs/{linkedin-chat-react.js → chat-react.js} +2 -2
  94. package/esm/funcs/{sales-navigator-search-search.js.map → chat-react.js.map} +1 -1
  95. package/esm/funcs/{linkedin-scrapers-collect-comments.d.ts → chat-send-typing-indicator.d.ts} +4 -4
  96. package/esm/funcs/{linkedin-actions-edit-post.d.ts.map → chat-send-typing-indicator.d.ts.map} +1 -1
  97. package/esm/funcs/{linkedin-chat-send-typing-indicator.js → chat-send-typing-indicator.js} +2 -2
  98. package/esm/funcs/chat-send-typing-indicator.js.map +1 -0
  99. package/esm/funcs/{linked-in-chat-star.d.ts → chat-star.d.ts} +2 -2
  100. package/esm/funcs/chat-star.d.ts.map +1 -0
  101. package/esm/funcs/{linked-in-chat-star.js → chat-star.js} +2 -2
  102. package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.js.map → chat-star.js.map} +1 -1
  103. package/esm/funcs/{linked-in-chat-unarchive.d.ts → chat-unarchive.d.ts} +2 -2
  104. package/esm/funcs/chat-unarchive.d.ts.map +1 -0
  105. package/esm/funcs/{linked-in-chat-unarchive.js → chat-unarchive.js} +2 -2
  106. package/esm/funcs/chat-unarchive.js.map +1 -0
  107. package/esm/funcs/{linked-in-chat-unstar.d.ts → chat-unstar.d.ts} +2 -2
  108. package/esm/funcs/chat-unstar.d.ts.map +1 -0
  109. package/esm/funcs/{linked-in-chat-unstar.js → chat-unstar.js} +2 -2
  110. package/esm/funcs/{linked-in-search-search.js.map → chat-unstar.js.map} +1 -1
  111. package/esm/funcs/company-pages-posts.d.ts +18 -0
  112. package/esm/funcs/company-pages-posts.d.ts.map +1 -0
  113. package/esm/funcs/{company-pages-get-posts.js → company-pages-posts.js} +2 -2
  114. package/esm/funcs/company-pages-posts.js.map +1 -0
  115. package/esm/funcs/{linkedin-actions-repost-post.d.ts → profile-posts.d.ts} +4 -4
  116. package/esm/funcs/profile-posts.d.ts.map +1 -0
  117. package/esm/funcs/{profile-get-posts.js → profile-posts.js} +2 -2
  118. package/esm/funcs/profile-posts.js.map +1 -0
  119. package/esm/funcs/{profile-get-profile-views.d.ts → profile-views.d.ts} +2 -2
  120. package/esm/funcs/profile-views.d.ts.map +1 -0
  121. package/esm/funcs/{profile-get-profile-views.js → profile-views.js} +2 -2
  122. package/esm/funcs/profile-views.js.map +1 -0
  123. package/esm/funcs/{sales-navigator-search-search-companies.d.ts → sales-nav-companies.d.ts} +2 -2
  124. package/esm/funcs/sales-nav-companies.d.ts.map +1 -0
  125. package/esm/funcs/{sales-navigator-search-search-companies.js → sales-nav-companies.js} +2 -2
  126. package/esm/funcs/{linkedin-actions-unlike-post.js.map → sales-nav-companies.js.map} +1 -1
  127. package/esm/funcs/{sales-nav-search-people.d.ts → sales-nav-people.d.ts} +2 -2
  128. package/esm/funcs/sales-nav-people.d.ts.map +1 -0
  129. package/esm/funcs/{sales-nav-search-people.js → sales-nav-people.js} +2 -2
  130. package/esm/funcs/{linkedin-actions-reply-to-comment.js.map → sales-nav-people.js.map} +1 -1
  131. package/esm/funcs/{sales-navigator-search-search.d.ts → sales-nav-search.d.ts} +2 -2
  132. package/esm/funcs/sales-nav-search.d.ts.map +1 -0
  133. package/esm/funcs/{sales-navigator-search-search.js → sales-nav-search.js} +2 -2
  134. package/esm/funcs/sales-nav-search.js.map +1 -0
  135. package/esm/funcs/{linked-in-scrapers-collect-comment-replies.d.ts → scrapers-collect-comment-replies.d.ts} +2 -2
  136. package/esm/funcs/{linked-in-actions-create-comment.d.ts.map → scrapers-collect-comment-replies.d.ts.map} +1 -1
  137. package/esm/funcs/{linked-in-scrapers-collect-comment-replies.js → scrapers-collect-comment-replies.js} +2 -2
  138. package/esm/funcs/{linked-in-scrapers-get-feed.js.map → scrapers-collect-comment-replies.js.map} +1 -1
  139. package/esm/funcs/scrapers-collect-comments.d.ts +18 -0
  140. package/esm/funcs/scrapers-collect-comments.d.ts.map +1 -0
  141. package/esm/funcs/{linkedin-scrapers-collect-comments.js → scrapers-collect-comments.js} +2 -2
  142. package/esm/funcs/{linkedin-actions-like-post.js.map → scrapers-collect-comments.js.map} +1 -1
  143. package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.d.ts → scrapers-collect-hashtag-posts.d.ts} +2 -2
  144. package/esm/funcs/{linked-in-actions-like-comment.d.ts.map → scrapers-collect-hashtag-posts.d.ts.map} +1 -1
  145. package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.js → scrapers-collect-hashtag-posts.js} +2 -2
  146. package/esm/funcs/{linked-in-search-search-companies.js.map → scrapers-collect-hashtag-posts.js.map} +1 -1
  147. package/esm/funcs/scrapers-collect-likes.d.ts +18 -0
  148. package/esm/funcs/scrapers-collect-likes.d.ts.map +1 -0
  149. package/esm/funcs/{linkedin-scrapers-collect-likes.js → scrapers-collect-likes.js} +2 -2
  150. package/esm/funcs/scrapers-collect-likes.js.map +1 -0
  151. package/esm/funcs/{linked-in-scrapers-get-feed.d.ts → scrapers-get-feed.d.ts} +2 -2
  152. package/esm/funcs/scrapers-get-feed.d.ts.map +1 -0
  153. package/esm/funcs/{linked-in-scrapers-get-feed.js → scrapers-get-feed.js} +2 -2
  154. package/esm/funcs/{profile-get-posts.js.map → scrapers-get-feed.js.map} +1 -1
  155. package/esm/funcs/{company-pages-get-posts.d.ts → scrapers-list-saved-posts.d.ts} +4 -4
  156. package/esm/funcs/scrapers-list-saved-posts.d.ts.map +1 -0
  157. package/esm/funcs/{linkedin-scrapers-list-saved-posts.js → scrapers-list-saved-posts.js} +2 -2
  158. package/esm/funcs/scrapers-list-saved-posts.js.map +1 -0
  159. package/esm/funcs/{linkedin-scrapers-visit-company.d.ts → scrapers-visit-company.d.ts} +2 -2
  160. package/esm/funcs/scrapers-visit-company.d.ts.map +1 -0
  161. package/esm/funcs/{linkedin-scrapers-visit-company.js → scrapers-visit-company.js} +2 -2
  162. package/esm/funcs/scrapers-visit-company.js.map +1 -0
  163. package/esm/funcs/{linkedin-search-search-by-url.d.ts → search-by-url.d.ts} +2 -2
  164. package/esm/funcs/search-by-url.d.ts.map +1 -0
  165. package/esm/funcs/{linkedin-search-search-by-url.js → search-by-url.js} +2 -2
  166. package/esm/funcs/search-by-url.js.map +1 -0
  167. package/esm/funcs/{linked-in-search-search-companies.d.ts → search-companies.d.ts} +2 -2
  168. package/esm/funcs/search-companies.d.ts.map +1 -0
  169. package/esm/funcs/{linked-in-search-search-companies.js → search-companies.js} +2 -2
  170. package/esm/funcs/search-companies.js.map +1 -0
  171. package/esm/funcs/{linkedin-search-search-jobs.d.ts → search-jobs.d.ts} +2 -2
  172. package/esm/funcs/search-jobs.d.ts.map +1 -0
  173. package/esm/funcs/{linkedin-search-search-jobs.js → search-jobs.js} +2 -2
  174. package/esm/funcs/search-jobs.js.map +1 -0
  175. package/esm/funcs/{linkedin-search-search-people.d.ts → search-people.d.ts} +2 -2
  176. package/esm/funcs/search-people.d.ts.map +1 -0
  177. package/esm/funcs/{linkedin-search-search-people.js → search-people.js} +2 -2
  178. package/esm/funcs/search-people.js.map +1 -0
  179. package/esm/funcs/{linkedin-search-search-posts.d.ts → search-posts.d.ts} +2 -2
  180. package/esm/funcs/search-posts.d.ts.map +1 -0
  181. package/esm/funcs/{linkedin-search-search-posts.js → search-posts.js} +2 -2
  182. package/esm/funcs/search-posts.js.map +1 -0
  183. package/esm/funcs/{linked-in-search-search.d.ts → search-search.d.ts} +2 -2
  184. package/esm/funcs/search-search.d.ts.map +1 -0
  185. package/esm/funcs/{linked-in-search-search.js → search-search.js} +2 -2
  186. package/esm/funcs/{linkedin-actions-follow-profile.js.map → search-search.js.map} +1 -1
  187. package/esm/lib/config.d.ts +2 -2
  188. package/esm/lib/config.js +2 -2
  189. package/esm/models/operations/index.d.ts +1 -1
  190. package/esm/models/operations/index.d.ts.map +1 -1
  191. package/esm/models/operations/index.js +1 -1
  192. package/esm/models/operations/index.js.map +1 -1
  193. package/esm/models/operations/{search-people-response.d.ts → search-companies-response.d.ts} +890 -890
  194. package/esm/models/operations/search-companies-response.d.ts.map +1 -0
  195. package/esm/models/operations/{search-people-response.js → search-companies-response.js} +611 -604
  196. package/esm/models/operations/search-companies-response.js.map +1 -0
  197. package/esm/models/operations/search-contacts-campaign.d.ts +180 -180
  198. package/esm/models/operations/search-contacts-campaign.d.ts.map +1 -1
  199. package/esm/models/operations/search-contacts-campaign.js +102 -102
  200. package/esm/models/operations/search-contacts-campaign.js.map +1 -1
  201. package/esm/models/operations/update-account-response.d.ts +634 -634
  202. package/esm/models/operations/update-account-response.d.ts.map +1 -1
  203. package/esm/models/operations/update-account-response.js +307 -307
  204. package/esm/models/operations/update-account-response.js.map +1 -1
  205. package/esm/models/operations/update-schedule-response.d.ts +111 -61
  206. package/esm/models/operations/update-schedule-response.d.ts.map +1 -1
  207. package/esm/models/operations/update-schedule-response.js +37 -32
  208. package/esm/models/operations/update-schedule-response.js.map +1 -1
  209. package/esm/sdk/actions.d.ts +133 -0
  210. package/esm/sdk/actions.d.ts.map +1 -1
  211. package/esm/sdk/actions.js +190 -0
  212. package/esm/sdk/actions.js.map +1 -1
  213. package/esm/sdk/chat.d.ts +56 -0
  214. package/esm/sdk/chat.d.ts.map +1 -1
  215. package/esm/sdk/chat.js +80 -0
  216. package/esm/sdk/chat.js.map +1 -1
  217. package/esm/sdk/company-pages.d.ts +1 -1
  218. package/esm/sdk/company-pages.d.ts.map +1 -1
  219. package/esm/sdk/company-pages.js +3 -3
  220. package/esm/sdk/company-pages.js.map +1 -1
  221. package/esm/sdk/contacts.d.ts +12 -12
  222. package/esm/sdk/contacts.d.ts.map +1 -1
  223. package/esm/sdk/contacts.js +16 -16
  224. package/esm/sdk/contacts.js.map +1 -1
  225. package/esm/sdk/profile.d.ts +2 -2
  226. package/esm/sdk/profile.d.ts.map +1 -1
  227. package/esm/sdk/profile.js +6 -6
  228. package/esm/sdk/profile.js.map +1 -1
  229. package/esm/sdk/sales-nav.d.ts +51 -1
  230. package/esm/sdk/sales-nav.d.ts.map +1 -1
  231. package/esm/sdk/sales-nav.js +59 -3
  232. package/esm/sdk/sales-nav.js.map +1 -1
  233. package/esm/sdk/scrapers.d.ts +49 -0
  234. package/esm/sdk/scrapers.d.ts.map +1 -1
  235. package/esm/sdk/scrapers.js +70 -0
  236. package/esm/sdk/scrapers.js.map +1 -1
  237. package/esm/sdk/sdk.d.ts +0 -27
  238. package/esm/sdk/sdk.d.ts.map +1 -1
  239. package/esm/sdk/sdk.js +0 -45
  240. package/esm/sdk/sdk.js.map +1 -1
  241. package/esm/sdk/search.d.ts +383 -0
  242. package/esm/sdk/search.d.ts.map +1 -1
  243. package/esm/sdk/search.js +401 -0
  244. package/esm/sdk/search.js.map +1 -1
  245. package/examples/{linkedinScrapersCollectLikes.example.ts → scrapersCollectLikes.example.ts} +2 -2
  246. package/jsr.json +1 -1
  247. package/package.json +1 -1
  248. package/src/funcs/{linkedin-actions-accept-invitation.ts → actions-accept-invitation.ts} +1 -1
  249. package/src/funcs/{linked-in-actions-create-comment.ts → actions-create-comment.ts} +1 -1
  250. package/src/funcs/{linked-in-actions-decline-invitation.ts → actions-decline-invitation.ts} +1 -1
  251. package/src/funcs/{linkedin-actions-edit-comment.ts → actions-edit-comment.ts} +1 -1
  252. package/src/funcs/{linkedin-actions-edit-post.ts → actions-edit-post.ts} +1 -1
  253. package/src/funcs/{linkedin-actions-follow-profile.ts → actions-follow-profile.ts} +1 -1
  254. package/src/funcs/{linked-in-actions-like-comment.ts → actions-like-comment.ts} +1 -1
  255. package/src/funcs/{linkedin-actions-like-post.ts → actions-like-post.ts} +1 -1
  256. package/src/funcs/{linkedin-actions-list-invitations.ts → actions-list-invitations.ts} +1 -1
  257. package/src/funcs/{linked-in-actions-publish-post.ts → actions-publish-post.ts} +1 -1
  258. package/src/funcs/{linkedin-actions-reply-to-comment.ts → actions-reply-to-comment.ts} +1 -1
  259. package/src/funcs/{linkedin-actions-repost-post.ts → actions-repost-post.ts} +1 -1
  260. package/src/funcs/{linked-in-actions-save-post.ts → actions-save-post.ts} +1 -1
  261. package/src/funcs/{linkedin-actions-unfollow-company.ts → actions-unfollow-company.ts} +1 -1
  262. package/src/funcs/{linked-in-actions-unfollow-profile.ts → actions-unfollow-profile.ts} +1 -1
  263. package/src/funcs/{linkedin-actions-unlike-comment.ts → actions-unlike-comment.ts} +1 -1
  264. package/src/funcs/{linkedin-actions-unlike-post.ts → actions-unlike-post.ts} +1 -1
  265. package/src/funcs/{linkedin-actions-unsave-post.ts → actions-unsave-post.ts} +1 -1
  266. package/src/funcs/{linkedin-actions-withdraw-invitation.ts → actions-withdraw-invitation.ts} +1 -1
  267. package/src/funcs/{linkedin-chat-list-inbox.ts → chat-list-inbox.ts} +1 -1
  268. package/src/funcs/{linkedin-chat-mark-all-read.ts → chat-mark-all-read.ts} +1 -1
  269. package/src/funcs/{linked-in-chat-mark-seen.ts → chat-mark-seen.ts} +1 -1
  270. package/src/funcs/{linkedin-chat-react.ts → chat-react.ts} +1 -1
  271. package/src/funcs/{linkedin-chat-send-typing-indicator.ts → chat-send-typing-indicator.ts} +1 -1
  272. package/src/funcs/{linked-in-chat-star.ts → chat-star.ts} +1 -1
  273. package/src/funcs/{linked-in-chat-unarchive.ts → chat-unarchive.ts} +1 -1
  274. package/src/funcs/{linked-in-chat-unstar.ts → chat-unstar.ts} +1 -1
  275. package/src/funcs/{company-pages-get-posts.ts → company-pages-posts.ts} +1 -1
  276. package/src/funcs/{profile-get-posts.ts → profile-posts.ts} +1 -1
  277. package/src/funcs/{profile-get-profile-views.ts → profile-views.ts} +1 -1
  278. package/src/funcs/{sales-navigator-search-search-companies.ts → sales-nav-companies.ts} +1 -1
  279. package/src/funcs/{sales-nav-search-people.ts → sales-nav-people.ts} +1 -1
  280. package/src/funcs/{sales-navigator-search-search.ts → sales-nav-search.ts} +1 -1
  281. package/src/funcs/{linked-in-scrapers-collect-comment-replies.ts → scrapers-collect-comment-replies.ts} +1 -1
  282. package/src/funcs/{linkedin-scrapers-collect-comments.ts → scrapers-collect-comments.ts} +1 -1
  283. package/src/funcs/{linkedin-scrapers-collect-hashtag-posts.ts → scrapers-collect-hashtag-posts.ts} +1 -1
  284. package/src/funcs/{linkedin-scrapers-collect-likes.ts → scrapers-collect-likes.ts} +1 -1
  285. package/src/funcs/{linked-in-scrapers-get-feed.ts → scrapers-get-feed.ts} +1 -1
  286. package/src/funcs/{linkedin-scrapers-list-saved-posts.ts → scrapers-list-saved-posts.ts} +1 -1
  287. package/src/funcs/{linkedin-scrapers-visit-company.ts → scrapers-visit-company.ts} +1 -1
  288. package/src/funcs/{linkedin-search-search-by-url.ts → search-by-url.ts} +1 -1
  289. package/src/funcs/{linked-in-search-search-companies.ts → search-companies.ts} +1 -1
  290. package/src/funcs/{linkedin-search-search-jobs.ts → search-jobs.ts} +1 -1
  291. package/src/funcs/{linkedin-search-search-people.ts → search-people.ts} +1 -1
  292. package/src/funcs/{linkedin-search-search-posts.ts → search-posts.ts} +1 -1
  293. package/src/funcs/{linked-in-search-search.ts → search-search.ts} +1 -1
  294. package/src/lib/config.ts +2 -2
  295. package/src/models/operations/index.ts +1 -1
  296. package/src/models/operations/{search-people-response.ts → search-companies-response.ts} +1897 -1909
  297. package/src/models/operations/search-contacts-campaign.ts +366 -366
  298. package/src/models/operations/update-account-response.ts +1147 -1147
  299. package/src/models/operations/update-schedule-response.ts +180 -125
  300. package/src/sdk/actions.ts +342 -0
  301. package/src/sdk/chat.ts +144 -0
  302. package/src/sdk/company-pages.ts +3 -3
  303. package/src/sdk/contacts.ts +24 -24
  304. package/src/sdk/profile.ts +6 -6
  305. package/src/sdk/sales-nav.ts +75 -3
  306. package/src/sdk/scrapers.ts +126 -0
  307. package/src/sdk/sdk.ts +0 -56
  308. package/src/sdk/search.ts +449 -0
  309. package/esm/funcs/company-pages-get-posts.d.ts.map +0 -1
  310. package/esm/funcs/company-pages-get-posts.js.map +0 -1
  311. package/esm/funcs/linked-in-actions-create-comment.js.map +0 -1
  312. package/esm/funcs/linked-in-actions-decline-invitation.d.ts +0 -18
  313. package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +0 -1
  314. package/esm/funcs/linked-in-actions-decline-invitation.js.map +0 -1
  315. package/esm/funcs/linked-in-actions-like-comment.js.map +0 -1
  316. package/esm/funcs/linked-in-actions-publish-post.d.ts.map +0 -1
  317. package/esm/funcs/linked-in-actions-publish-post.js.map +0 -1
  318. package/esm/funcs/linked-in-actions-save-post.d.ts.map +0 -1
  319. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +0 -18
  320. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts.map +0 -1
  321. package/esm/funcs/linked-in-actions-unfollow-profile.js.map +0 -1
  322. package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +0 -1
  323. package/esm/funcs/linked-in-chat-mark-seen.js.map +0 -1
  324. package/esm/funcs/linked-in-chat-star.d.ts.map +0 -1
  325. package/esm/funcs/linked-in-chat-unarchive.js.map +0 -1
  326. package/esm/funcs/linked-in-chat-unstar.d.ts.map +0 -1
  327. package/esm/funcs/linked-in-chat-unstar.js.map +0 -1
  328. package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +0 -1
  329. package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +0 -1
  330. package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +0 -1
  331. package/esm/funcs/linked-in-search-search-companies.d.ts.map +0 -1
  332. package/esm/funcs/linked-in-search-search.d.ts.map +0 -1
  333. package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +0 -1
  334. package/esm/funcs/linkedin-actions-accept-invitation.js.map +0 -1
  335. package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +0 -1
  336. package/esm/funcs/linkedin-actions-edit-comment.js.map +0 -1
  337. package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +0 -1
  338. package/esm/funcs/linkedin-actions-like-post.d.ts.map +0 -1
  339. package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +0 -1
  340. package/esm/funcs/linkedin-actions-list-invitations.js.map +0 -1
  341. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +0 -1
  342. package/esm/funcs/linkedin-actions-repost-post.d.ts.map +0 -1
  343. package/esm/funcs/linkedin-actions-unfollow-company.d.ts +0 -18
  344. package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +0 -1
  345. package/esm/funcs/linkedin-actions-unfollow-company.js.map +0 -1
  346. package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +0 -1
  347. package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +0 -1
  348. package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +0 -1
  349. package/esm/funcs/linkedin-actions-unsave-post.js.map +0 -1
  350. package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +0 -1
  351. package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +0 -1
  352. package/esm/funcs/linkedin-chat-list-inbox.js.map +0 -1
  353. package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +0 -1
  354. package/esm/funcs/linkedin-chat-mark-all-read.js.map +0 -1
  355. package/esm/funcs/linkedin-chat-react.d.ts.map +0 -1
  356. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +0 -18
  357. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +0 -1
  358. package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +0 -1
  359. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +0 -1
  360. package/esm/funcs/linkedin-scrapers-collect-comments.js.map +0 -1
  361. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +0 -1
  362. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +0 -1
  363. package/esm/funcs/linkedin-scrapers-collect-likes.js.map +0 -1
  364. package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +0 -1
  365. package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +0 -1
  366. package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +0 -1
  367. package/esm/funcs/linkedin-scrapers-visit-company.js.map +0 -1
  368. package/esm/funcs/linkedin-search-search-by-url.d.ts.map +0 -1
  369. package/esm/funcs/linkedin-search-search-by-url.js.map +0 -1
  370. package/esm/funcs/linkedin-search-search-jobs.d.ts.map +0 -1
  371. package/esm/funcs/linkedin-search-search-jobs.js.map +0 -1
  372. package/esm/funcs/linkedin-search-search-people.d.ts.map +0 -1
  373. package/esm/funcs/linkedin-search-search-people.js.map +0 -1
  374. package/esm/funcs/linkedin-search-search-posts.d.ts.map +0 -1
  375. package/esm/funcs/linkedin-search-search-posts.js.map +0 -1
  376. package/esm/funcs/profile-get-posts.d.ts +0 -18
  377. package/esm/funcs/profile-get-posts.d.ts.map +0 -1
  378. package/esm/funcs/profile-get-profile-views.d.ts.map +0 -1
  379. package/esm/funcs/profile-get-profile-views.js.map +0 -1
  380. package/esm/funcs/sales-nav-search-people.d.ts.map +0 -1
  381. package/esm/funcs/sales-nav-search-people.js.map +0 -1
  382. package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +0 -1
  383. package/esm/funcs/sales-navigator-search-search.d.ts.map +0 -1
  384. package/esm/models/operations/search-people-response.d.ts.map +0 -1
  385. package/esm/models/operations/search-people-response.js.map +0 -1
  386. package/esm/sdk/linked-in-actions-2.d.ts +0 -47
  387. package/esm/sdk/linked-in-actions-2.d.ts.map +0 -1
  388. package/esm/sdk/linked-in-actions-2.js +0 -68
  389. package/esm/sdk/linked-in-actions-2.js.map +0 -1
  390. package/esm/sdk/linked-in-chat-2.d.ts +0 -33
  391. package/esm/sdk/linked-in-chat-2.d.ts.map +0 -1
  392. package/esm/sdk/linked-in-chat-2.js +0 -48
  393. package/esm/sdk/linked-in-chat-2.js.map +0 -1
  394. package/esm/sdk/linked-in-scrapers-2.d.ts +0 -19
  395. package/esm/sdk/linked-in-scrapers-2.d.ts.map +0 -1
  396. package/esm/sdk/linked-in-scrapers-2.js +0 -28
  397. package/esm/sdk/linked-in-scrapers-2.js.map +0 -1
  398. package/esm/sdk/linked-in-search-1.d.ts +0 -113
  399. package/esm/sdk/linked-in-search-1.d.ts.map +0 -1
  400. package/esm/sdk/linked-in-search-1.js +0 -122
  401. package/esm/sdk/linked-in-search-1.js.map +0 -1
  402. package/esm/sdk/linkedin-actions-1.d.ts +0 -96
  403. package/esm/sdk/linkedin-actions-1.d.ts.map +0 -1
  404. package/esm/sdk/linkedin-actions-1.js +0 -138
  405. package/esm/sdk/linkedin-actions-1.js.map +0 -1
  406. package/esm/sdk/linkedin-chat-1.d.ts +0 -33
  407. package/esm/sdk/linkedin-chat-1.d.ts.map +0 -1
  408. package/esm/sdk/linkedin-chat-1.js +0 -48
  409. package/esm/sdk/linkedin-chat-1.js.map +0 -1
  410. package/esm/sdk/linkedin-scrapers-1.d.ts +0 -40
  411. package/esm/sdk/linkedin-scrapers-1.d.ts.map +0 -1
  412. package/esm/sdk/linkedin-scrapers-1.js +0 -58
  413. package/esm/sdk/linkedin-scrapers-1.js.map +0 -1
  414. package/esm/sdk/linkedin-search-2.d.ts +0 -280
  415. package/esm/sdk/linkedin-search-2.d.ts.map +0 -1
  416. package/esm/sdk/linkedin-search-2.js +0 -295
  417. package/esm/sdk/linkedin-search-2.js.map +0 -1
  418. package/esm/sdk/sales-navigator-search.d.ts +0 -55
  419. package/esm/sdk/sales-navigator-search.d.ts.map +0 -1
  420. package/esm/sdk/sales-navigator-search.js +0 -64
  421. package/esm/sdk/sales-navigator-search.js.map +0 -1
  422. package/src/sdk/linked-in-actions-2.ts +0 -117
  423. package/src/sdk/linked-in-chat-2.ts +0 -81
  424. package/src/sdk/linked-in-scrapers-2.ts +0 -45
  425. package/src/sdk/linked-in-search-1.ts +0 -139
  426. package/src/sdk/linkedin-actions-1.ts +0 -243
  427. package/src/sdk/linkedin-chat-1.ts +0 -81
  428. package/src/sdk/linkedin-scrapers-1.ts +0 -99
  429. package/src/sdk/linkedin-search-2.ts +0 -328
  430. package/src/sdk/sales-navigator-search.ts +0 -81
@@ -327,128 +327,110 @@ export type CollectCommentsResponse = {
327
327
  retryAfter: number;
328
328
  };
329
329
 
330
- export type VisitCompanyRequest = {
330
+ export type CollectCommentRepliesRequest = {
331
331
  /**
332
- * LinkedIn company URL (e.g., 'https://www.linkedin.com/company/openai') or universal name (e.g., 'openai')
332
+ * Comment URN returned by the comments endpoint (e.g., 'urn:li:comment:(activity:123456,789)').
333
333
  */
334
- companyUrl: string;
334
+ commentUrn: string;
335
335
  /**
336
- * Include workplace policy data such as hybrid/remote status and benefits. Costs 1 extra credit (extra API call).
336
+ * Pagination offset (default 0).
337
337
  */
338
- includeWorkplacePolicy?: boolean | undefined;
339
- };
340
-
341
- /**
342
- * Employee count range
343
- */
344
- export type EmployeeCountRange = {
345
- start: number;
346
- end: number | null;
347
- };
348
-
349
- export type VisitCompanyHeadquarter = {
350
- country: string | null;
351
- geographicArea: string | null;
352
- city: string | null;
353
- postalCode: string | null;
354
- line1: string | null;
355
- line2: string | null;
356
- };
357
-
358
- export type VisitCompanyFoundedOn = {
359
- year: number;
360
- };
361
-
362
- export type CallToAction = {
363
- type: string;
364
- url: string;
365
- };
366
-
367
- export type AffiliatedCompany = {
368
- id: string;
369
- universalName: string;
370
- name: string;
371
- url: string | null;
372
- logoUrl: string | null;
373
- followerCount: number | null;
374
- industry: string | null;
338
+ start?: number | undefined;
339
+ /**
340
+ * 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).
341
+ */
342
+ count?: number | undefined;
375
343
  };
376
344
 
377
- export type SimilarCompany = {
378
- id: string;
379
- universalName: string;
380
- name: string;
381
- url: string | null;
382
- logoUrl: string | null;
383
- followerCount: number | null;
384
- industry: string | null;
385
- };
345
+ export const CollectCommentRepliesType = {
346
+ Comment: "comment",
347
+ } as const;
348
+ export type CollectCommentRepliesType = ClosedEnum<
349
+ typeof CollectCommentRepliesType
350
+ >;
386
351
 
387
352
  /**
388
- * Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
353
+ * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
389
354
  */
390
- export type WorkplacePolicy = {
391
- title: string | null;
392
- description: string | null;
393
- timeAtOnsite: string | null;
394
- benefits: Array<string>;
355
+ export type CollectCommentRepliesActionsCompleted = {
356
+ message: boolean;
357
+ reply: boolean;
358
+ like: boolean;
359
+ visit: boolean;
360
+ connect: boolean;
395
361
  };
396
362
 
397
- /**
398
- * Company profile data
399
- */
400
- export type VisitCompanyResponse = {
401
- success: true;
363
+ export type Reply = {
364
+ name: string;
365
+ headline: string | null;
366
+ profileUrl: string | null;
367
+ imageUrl: string | null;
402
368
  /**
403
- * LinkedIn numeric company ID
369
+ * Vanity slug from profile URL (e.g. john-doe) when not URN-based
404
370
  */
405
- id: string;
371
+ publicIdentifier: string | null;
406
372
  /**
407
- * Company URL slug
373
+ * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
408
374
  */
409
- universalName: string;
410
- name: string;
411
- description: string | null;
375
+ profileUrn: string | null;
376
+ type: CollectCommentRepliesType;
377
+ commentText?: string | undefined;
378
+ timestamp: number | null;
379
+ isEdited?: boolean | undefined;
412
380
  /**
413
- * LinkedIn company page URL
381
+ * Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
414
382
  */
415
- url: string;
383
+ commentUrn?: string | undefined;
416
384
  /**
417
- * External website URL
385
+ * SHA256 hash of commentUrn — use for dedup slugs only, not for building URNs.
418
386
  */
419
- websiteUrl: string | null;
420
- industry: string | null;
387
+ commentHash?: string | undefined;
421
388
  /**
422
- * Exact employee count on LinkedIn
389
+ * True if the commenter is the post author.
423
390
  */
424
- employeeCount: number | null;
391
+ isPostAuthor?: boolean | undefined;
425
392
  /**
426
- * Employee count range
393
+ * Number of replies to this comment.
427
394
  */
428
- employeeCountRange: EmployeeCountRange | null;
429
- headquarter: VisitCompanyHeadquarter | null;
430
- logoUrl: string | null;
431
- coverImageUrl: string | null;
432
- followerCount: number | null;
433
- specialities: Array<string>;
434
- tagline: string | null;
435
- isVerified: boolean;
436
- foundedOn: VisitCompanyFoundedOn | null;
437
- phone: string | null;
438
- callToAction: CallToAction | null;
439
- hashtags: Array<string>;
395
+ repliesCount?: number | undefined;
440
396
  /**
441
- * Showcase / affiliated pages
397
+ * True if the post author already replied to this comment. Null when unknown (e.g. LinkedIn only preloaded partial replies).
442
398
  */
443
- affiliatedCompanies: Array<AffiliatedCompany>;
399
+ hasReplyFromPostAuthor?: boolean | null | undefined;
444
400
  /**
445
- * Similar companies suggested by LinkedIn
401
+ * URN of the parent comment, present on replies only.
446
402
  */
447
- similarCompanies: Array<SimilarCompany>;
403
+ parentCommentUrn?: string | undefined;
404
+ postUrn?: string | undefined;
448
405
  /**
449
- * Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
406
+ * SHA256 hash of postUrn use for dedup slugs only.
450
407
  */
451
- workplacePolicy: WorkplacePolicy | null;
408
+ postHash?: string | undefined;
409
+ /**
410
+ * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
411
+ */
412
+ actionsCompleted?: CollectCommentRepliesActionsCompleted | undefined;
413
+ /**
414
+ * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). null if campaignSlug not provided or profile not visited recently.
415
+ */
416
+ knownDistance: number | null;
417
+ };
418
+
419
+ /**
420
+ * List of replies to the comment
421
+ */
422
+ export type CollectCommentRepliesResponse = {
423
+ success: true;
424
+ replies: Array<Reply>;
425
+ count: number;
426
+ total: number;
427
+ start: number;
428
+ hasMore: boolean;
429
+ parentCommentUrn: string;
430
+ /**
431
+ * 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.
432
+ */
433
+ previousTotal: number | null;
452
434
  /**
453
435
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
454
436
  */
@@ -459,28 +441,36 @@ export type VisitCompanyResponse = {
459
441
  retryAfter: number;
460
442
  };
461
443
 
462
- export type ListSavedPostsRequest = {
444
+ export type CollectPostsRequest = {
463
445
  /**
464
- * Pagination offset
446
+ * LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
465
447
  */
466
- start?: number | undefined;
448
+ profileUrl: string;
467
449
  /**
468
- * Number of posts to return
450
+ * 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).
469
451
  */
470
452
  count?: number | undefined;
453
+ /**
454
+ * Pagination offset (default 0).
455
+ */
456
+ start?: number | undefined;
457
+ /**
458
+ * Pagination token from a previous response to fetch the next page.
459
+ */
460
+ paginationToken?: string | undefined;
471
461
  };
472
462
 
473
- export type ListSavedPostsAuthor = {
474
- name: string;
475
- profileUrl: string | null;
476
- publicIdentifier: string | null;
477
- profileUrn: string | null;
478
- };
463
+ export const CollectPostsType = {
464
+ Activity: "activity",
465
+ UgcPost: "ugcPost",
466
+ Share: "share",
467
+ } as const;
468
+ export type CollectPostsType = OpenEnum<typeof CollectPostsType>;
479
469
 
480
470
  /**
481
471
  * Type of media attached to the post.
482
472
  */
483
- export const ListSavedPostsType = {
473
+ export const CollectPostsMediaType = {
484
474
  Image: "image",
485
475
  Video: "video",
486
476
  Document: "document",
@@ -489,13 +479,16 @@ export const ListSavedPostsType = {
489
479
  /**
490
480
  * Type of media attached to the post.
491
481
  */
492
- export type ListSavedPostsType = OpenEnum<typeof ListSavedPostsType>;
482
+ export type CollectPostsMediaType = OpenEnum<typeof CollectPostsMediaType>;
493
483
 
494
- export type ListSavedPostsMedia = {
484
+ /**
485
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
486
+ */
487
+ export type CollectPostsMedia = {
495
488
  /**
496
489
  * Type of media attached to the post.
497
490
  */
498
- type: ListSavedPostsType;
491
+ type: CollectPostsMediaType;
499
492
  /**
500
493
  * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
501
494
  */
@@ -510,27 +503,37 @@ export type ListSavedPostsMedia = {
510
503
  thumbnailUrl?: string | undefined;
511
504
  };
512
505
 
513
- export type ListSavedPostsPost = {
506
+ export type CollectPostsPost = {
514
507
  postUrl: string;
515
- postUrn: string;
516
- postId: string;
517
508
  text: string;
518
509
  date: number;
519
510
  likesCount: number;
520
511
  commentsCount: number;
521
512
  sharesCount: number;
522
- author: ListSavedPostsAuthor;
523
- media?: ListSavedPostsMedia | undefined;
513
+ postUrn: string;
514
+ postId: string;
515
+ type: CollectPostsType;
516
+ /**
517
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
518
+ */
519
+ media?: CollectPostsMedia | undefined;
524
520
  };
525
521
 
526
522
  /**
527
- * Saved posts
523
+ * Paginated list of posts from the profile
528
524
  */
529
- export type ListSavedPostsResponse = {
525
+ export type CollectPostsResponse = {
530
526
  success: true;
531
- posts: Array<ListSavedPostsPost>;
532
- total: number | null;
527
+ posts: Array<CollectPostsPost>;
528
+ count: number;
529
+ total: number;
530
+ start: number;
533
531
  hasMore: boolean;
532
+ paginationToken: string | null;
533
+ /**
534
+ * 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.
535
+ */
536
+ previousTotal: number | null;
534
537
  /**
535
538
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
536
539
  */
@@ -541,32 +544,109 @@ export type ListSavedPostsResponse = {
541
544
  retryAfter: number;
542
545
  };
543
546
 
544
- export type CollectHashtagPostsRequest = {
547
+ export type VisitProfileRequest = {
545
548
  /**
546
- * Hashtag to collect posts from (without #)
549
+ * LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
547
550
  */
548
- hashtag: string;
551
+ profile: string;
549
552
  /**
550
- * Pagination offset
553
+ * Optional campaign identifier for tracking only. No dedup — visit always executes.
551
554
  */
552
- start?: number | undefined;
555
+ campaignSlug?: string | undefined;
553
556
  /**
554
- * Number of posts
557
+ * Deprecated. Use campaignSlug only.
558
+ *
559
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
555
560
  */
556
- count?: number | undefined;
557
- };
558
-
559
- export type CollectHashtagPostsAuthor = {
560
- name: string;
561
- profileUrl: string | null;
562
- publicIdentifier: string | null;
563
- profileUrn: string | null;
561
+ actionSlug?: string | undefined;
562
+ /**
563
+ * When true, fetches the last 5 posts from the profile (fetched in parallel with other enrichments). Defaults to false.
564
+ */
565
+ includePosts?: boolean | undefined;
566
+ /**
567
+ * When true, fetches the last 5 posts the profile recently engaged with via comments. Returns engagement context (target post text, author) but not the comment text itself. Fetched in parallel with includePosts. Defaults to false.
568
+ */
569
+ includeComments?: boolean | undefined;
570
+ /**
571
+ * When true, fetches the profile's About section and detailed position descriptions via a supplementary API call (fetched in parallel). Defaults to false.
572
+ */
573
+ includeAbout?: boolean | undefined;
574
+ };
575
+
576
+ /**
577
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
578
+ */
579
+ export const PendingConnection = {
580
+ Pending: "pending",
581
+ Failed: "failed",
582
+ None: "none",
583
+ } as const;
584
+ /**
585
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
586
+ */
587
+ export type PendingConnection = OpenEnum<typeof PendingConnection>;
588
+
589
+ export type VisitProfilePositionStartDate = {
590
+ month: number | null;
591
+ year: number;
592
+ };
593
+
594
+ export type VisitProfilePositionEndDate = {
595
+ month: number | null;
596
+ year: number;
597
+ };
598
+
599
+ export type VisitProfilePosition = {
600
+ companyName: string | null;
601
+ title: string | null;
602
+ /**
603
+ * Position description / responsibilities text
604
+ */
605
+ description: string | null;
606
+ companyUrl: string | null;
607
+ companyLogo: string | null;
608
+ /**
609
+ * Short description of the company (from LinkedIn company page)
610
+ */
611
+ companyDescription: string | null;
612
+ startDate: VisitProfilePositionStartDate | null;
613
+ endDate: VisitProfilePositionEndDate | null;
614
+ isCurrent: boolean;
615
+ };
616
+
617
+ export type VisitProfileEducationStartDate = {
618
+ month: number | null;
619
+ year: number;
620
+ };
621
+
622
+ export type VisitProfileEducationEndDate = {
623
+ month: number | null;
624
+ year: number;
625
+ };
626
+
627
+ export type VisitProfileEducation = {
628
+ schoolName: string | null;
629
+ degreeName: string | null;
630
+ fieldOfStudy: string | null;
631
+ schoolUrl: string | null;
632
+ schoolLogo: string | null;
633
+ startDate: VisitProfileEducationStartDate | null;
634
+ endDate: VisitProfileEducationEndDate | null;
564
635
  };
565
636
 
637
+ export const VisitProfileLastPostType = {
638
+ Activity: "activity",
639
+ UgcPost: "ugcPost",
640
+ Share: "share",
641
+ } as const;
642
+ export type VisitProfileLastPostType = OpenEnum<
643
+ typeof VisitProfileLastPostType
644
+ >;
645
+
566
646
  /**
567
647
  * Type of media attached to the post.
568
648
  */
569
- export const CollectHashtagPostsType = {
649
+ export const VisitProfileMediaType = {
570
650
  Image: "image",
571
651
  Video: "video",
572
652
  Document: "document",
@@ -575,13 +655,16 @@ export const CollectHashtagPostsType = {
575
655
  /**
576
656
  * Type of media attached to the post.
577
657
  */
578
- export type CollectHashtagPostsType = OpenEnum<typeof CollectHashtagPostsType>;
658
+ export type VisitProfileMediaType = OpenEnum<typeof VisitProfileMediaType>;
579
659
 
580
- export type CollectHashtagPostsMedia = {
660
+ /**
661
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
662
+ */
663
+ export type VisitProfileMedia = {
581
664
  /**
582
665
  * Type of media attached to the post.
583
666
  */
584
- type: CollectHashtagPostsType;
667
+ type: VisitProfileMediaType;
585
668
  /**
586
669
  * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
587
670
  */
@@ -596,140 +679,149 @@ export type CollectHashtagPostsMedia = {
596
679
  thumbnailUrl?: string | undefined;
597
680
  };
598
681
 
599
- export type CollectHashtagPostsPost = {
682
+ export type VisitProfileLastPost = {
600
683
  postUrl: string;
601
- postUrn: string;
602
684
  text: string;
603
685
  date: number;
604
686
  likesCount: number;
605
687
  commentsCount: number;
606
688
  sharesCount: number;
607
- author: CollectHashtagPostsAuthor;
608
- media?: CollectHashtagPostsMedia | undefined;
689
+ postUrn: string;
690
+ postId: string;
691
+ type: VisitProfileLastPostType;
692
+ /**
693
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
694
+ */
695
+ media?: VisitProfileMedia | undefined;
609
696
  };
610
697
 
611
698
  /**
612
- * Hashtag posts
699
+ * Activity type: 'comment' for posts the user commented on
613
700
  */
614
- export type CollectHashtagPostsResponse = {
615
- success: true;
616
- posts: Array<CollectHashtagPostsPost>;
617
- total: number;
618
- hasMore: boolean;
701
+ export const LastCommentType = {
702
+ Comment: "comment",
703
+ Reaction: "reaction",
704
+ } as const;
705
+ /**
706
+ * Activity type: 'comment' for posts the user commented on
707
+ */
708
+ export type LastCommentType = OpenEnum<typeof LastCommentType>;
709
+
710
+ export type LastComment = {
619
711
  /**
620
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
712
+ * Activity type: 'comment' for posts the user commented on
621
713
  */
622
- creditsUsed: number;
714
+ type: LastCommentType;
623
715
  /**
624
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
716
+ * URN of the feed update (post) the user engaged with
625
717
  */
626
- retryAfter: number;
627
- };
628
-
629
- export type CollectCommentRepliesRequest = {
718
+ activityUrn: string;
630
719
  /**
631
- * Comment URN returned by the comments endpoint (e.g., 'urn:li:comment:(activity:123456,789)').
720
+ * The user's comment text (null when not available from the API this is a LinkedIn limitation)
632
721
  */
633
- commentUrn: string;
722
+ text: string | null;
634
723
  /**
635
- * Pagination offset (default 0).
724
+ * Reaction type (e.g. 'LIKE', 'CELEBRATE'). Only set for reaction-type activities
636
725
  */
637
- start?: number | undefined;
726
+ reactionType: string | null;
638
727
  /**
639
- * 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).
728
+ * URN of the post the user commented on (e.g. 'urn:li:activity:1234567890')
640
729
  */
641
- count?: number | undefined;
730
+ targetPostUrn: string | null;
731
+ /**
732
+ * First ~200 chars of the post the user commented on. Use this to understand what topics they engage with
733
+ */
734
+ targetPostText: string | null;
735
+ /**
736
+ * Name of the post author (the person whose post was commented on)
737
+ */
738
+ targetPostAuthor: string | null;
739
+ /**
740
+ * Unix timestamp in milliseconds when the activity occurred
741
+ */
742
+ timestamp: number | null;
743
+ /**
744
+ * Name of the post author (same as targetPostAuthor when available)
745
+ */
746
+ actorName: string | null;
747
+ /**
748
+ * Profile URN of the post author
749
+ */
750
+ actorUrn: string | null;
642
751
  };
643
752
 
644
- export const CollectCommentRepliesType = {
645
- Comment: "comment",
646
- } as const;
647
- export type CollectCommentRepliesType = ClosedEnum<
648
- typeof CollectCommentRepliesType
649
- >;
650
-
651
753
  /**
652
- * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
754
+ * Profile contact data
653
755
  */
654
- export type CollectCommentRepliesActionsCompleted = {
655
- message: boolean;
656
- reply: boolean;
657
- like: boolean;
658
- visit: boolean;
659
- connect: boolean;
660
- };
661
-
662
- export type Reply = {
663
- name: string;
756
+ export type VisitProfileResponse = {
757
+ success: true;
758
+ firstName: string;
759
+ lastName: string;
664
760
  headline: string | null;
761
+ /**
762
+ * The profile's 'About' section text. Only populated when includeAbout is true. Null when not requested or not filled in.
763
+ */
764
+ summary: string | null;
765
+ publicIdentifier: string;
766
+ /**
767
+ * LinkedIn profile URL. Null when publicIdentifier is unavailable (restricted profiles).
768
+ */
665
769
  profileUrl: string | null;
770
+ /**
771
+ * LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAAA...'). Use this for matching against inbox participants.
772
+ */
773
+ profileUrn: string | null;
666
774
  imageUrl: string | null;
775
+ email: string | null;
776
+ location: string | null;
667
777
  /**
668
- * Vanity slug from profile URL (e.g. john-doe) when not URN-based
778
+ * Current company name (from most recent position)
669
779
  */
670
- publicIdentifier: string | null;
780
+ company: string | null;
671
781
  /**
672
- * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
782
+ * Current job title (from most recent position)
673
783
  */
674
- profileUrn: string | null;
675
- type: CollectCommentRepliesType;
676
- commentText?: string | undefined;
677
- timestamp: number | null;
678
- isEdited?: boolean | undefined;
784
+ position: string | null;
679
785
  /**
680
- * Full comment URN use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
786
+ * Connection degree: 0 (self), 1 (direct connection), 2+ (2nd degree, 3rd degree, etc.), or null if unknown
681
787
  */
682
- commentUrn?: string | undefined;
788
+ memberDistance: number | null;
683
789
  /**
684
- * SHA256 hash of commentUrn use for dedup slugs only, not for building URNs.
790
+ * Total number of connections. May be null for non-connected profiles or restricted visibility.
685
791
  */
686
- commentHash?: string | undefined;
792
+ connectionsCount: number | null;
687
793
  /**
688
- * True if the commenter is the post author.
794
+ * Whether the profile has a LinkedIn verification badge.
689
795
  */
690
- isPostAuthor?: boolean | undefined;
796
+ isVerified: boolean;
691
797
  /**
692
- * Number of replies to this comment.
798
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
693
799
  */
694
- repliesCount?: number | undefined;
800
+ pendingConnection: PendingConnection;
695
801
  /**
696
- * True if the post author already replied to this comment. Null when unknown (e.g. LinkedIn only preloaded partial replies).
802
+ * Work experience positions
697
803
  */
698
- hasReplyFromPostAuthor?: boolean | null | undefined;
804
+ positions?: Array<VisitProfilePosition> | undefined;
699
805
  /**
700
- * URN of the parent comment, present on replies only.
806
+ * Education entries
701
807
  */
702
- parentCommentUrn?: string | undefined;
703
- postUrn?: string | undefined;
808
+ educations?: Array<VisitProfileEducation> | undefined;
704
809
  /**
705
- * SHA256 hash of postUrn use for dedup slugs only.
810
+ * Last 5 posts from the profile (only present when includePosts is true)
706
811
  */
707
- postHash?: string | undefined;
812
+ lastPosts?: Array<VisitProfileLastPost> | undefined;
708
813
  /**
709
- * Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
814
+ * Last 5 posts the profile recently commented on (only present when includeComments is true). Contains targetPostText and targetPostAuthor for engagement context.
710
815
  */
711
- actionsCompleted?: CollectCommentRepliesActionsCompleted | undefined;
816
+ lastComments?: Array<LastComment> | undefined;
712
817
  /**
713
- * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). null if campaignSlug not provided or profile not visited recently.
818
+ * true when includeAbout was requested and the About section was fetched. Used for cache invalidation.
714
819
  */
715
- knownDistance: number | null;
716
- };
717
-
718
- /**
719
- * List of replies to the comment
720
- */
721
- export type CollectCommentRepliesResponse = {
722
- success: true;
723
- replies: Array<Reply>;
724
- count: number;
725
- total: number;
726
- start: number;
727
- hasMore: boolean;
728
- parentCommentUrn: string;
820
+ aboutFetched?: boolean | undefined;
729
821
  /**
730
- * 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.
822
+ * true if this result was served from cache (0 credits). Distance-1 profiles are cached for 24h.
731
823
  */
732
- previousTotal: number | null;
824
+ cached: boolean;
733
825
  /**
734
826
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
735
827
  */
@@ -740,310 +832,265 @@ export type CollectCommentRepliesResponse = {
740
832
  retryAfter: number;
741
833
  };
742
834
 
743
- /**
744
- * Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
745
- */
746
- export const SortOrder = {
747
- Relevance: "RELEVANCE",
748
- RevChron: "REV_CHRON",
749
- } as const;
750
- /**
751
- * Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
752
- */
753
- export type SortOrder = ClosedEnum<typeof SortOrder>;
754
-
755
- export type GetFeedRequest = {
756
- /**
757
- * Number of feed items to return (1-50, default 20)
758
- */
759
- count?: number | undefined;
760
- /**
761
- * Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
762
- */
763
- sortOrder?: SortOrder | undefined;
764
- };
765
-
766
- export const GetFeedType = {
767
- Activity: "activity",
768
- UgcPost: "ugcPost",
769
- Share: "share",
770
- } as const;
771
- export type GetFeedType = OpenEnum<typeof GetFeedType>;
772
-
773
- /**
774
- * Type of media attached to the post.
775
- */
776
- export const GetFeedMediaType = {
777
- Image: "image",
778
- Video: "video",
779
- Document: "document",
780
- Article: "article",
781
- } as const;
782
- /**
783
- * Type of media attached to the post.
784
- */
785
- export type GetFeedMediaType = OpenEnum<typeof GetFeedMediaType>;
786
-
787
- /**
788
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
789
- */
790
- export type GetFeedMedia = {
835
+ export type BulkVisitProfileRequest = {
791
836
  /**
792
- * Type of media attached to the post.
837
+ * LinkedIn profile URLs, vanity names, or URNs (max 50). Duplicates are auto-removed.
793
838
  */
794
- type: GetFeedMediaType;
839
+ profiles: Array<string>;
795
840
  /**
796
- * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
841
+ * Auto-add each successfully visited contact to this campaign.
797
842
  */
798
- urls: Array<string>;
843
+ campaignSlug?: string | undefined;
799
844
  /**
800
- * Title of the article or document, when available.
845
+ * Fetch last 5 posts per profile. Increases processing time.
801
846
  */
802
- title?: string | undefined;
847
+ includePosts?: boolean | undefined;
803
848
  /**
804
- * Thumbnail URL for videos, articles, or document covers.
849
+ * Fetch recent comments per profile. Increases processing time.
805
850
  */
806
- thumbnailUrl?: string | undefined;
807
- };
808
-
809
- export type GetFeedPost = {
810
- postUrl: string;
811
- text: string;
812
- date: number;
813
- likesCount: number;
814
- commentsCount: number;
815
- sharesCount: number;
816
- postUrn: string;
817
- postId: string;
818
- type: GetFeedType;
851
+ includeComments?: boolean | undefined;
819
852
  /**
820
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
853
+ * Fetch About section and detailed position descriptions per profile. Increases processing time.
821
854
  */
822
- media?: GetFeedMedia | undefined;
855
+ includeAbout?: boolean | undefined;
823
856
  };
824
857
 
825
858
  /**
826
- * Feed posts
859
+ * Batch accepted and queued for processing
827
860
  */
828
- export type GetFeedResponse = {
829
- success: true;
830
- posts: Array<GetFeedPost>;
861
+ export type BulkVisitProfileResponse = {
862
+ accepted: true;
831
863
  /**
832
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
864
+ * Unique batch identifier for status polling.
833
865
  */
834
- creditsUsed: number;
866
+ batchId: string;
835
867
  /**
836
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
868
+ * Total unique profiles in the batch (after dedup).
837
869
  */
838
- retryAfter: number;
839
- };
840
-
841
- export type CollectPostsRequest = {
870
+ profileCount: number;
842
871
  /**
843
- * LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
872
+ * Profiles resolved from cache (0 credits, instant).
844
873
  */
845
- profileUrl: string;
874
+ alreadyCached: number;
846
875
  /**
847
- * 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).
876
+ * Profiles queued for LinkedIn API visit.
848
877
  */
849
- count?: number | undefined;
878
+ willVisit: number;
850
879
  /**
851
- * Pagination offset (default 0).
880
+ * Estimated processing time in minutes for uncached profiles.
852
881
  */
853
- start?: number | undefined;
882
+ estimatedMinutes: number;
883
+ };
884
+
885
+ export type BulkVisitBatchStatusRequest = {
854
886
  /**
855
- * Pagination token from a previous response to fetch the next page.
887
+ * Batch identifier returned by the bulk visit endpoint.
856
888
  */
857
- paginationToken?: string | undefined;
889
+ batchId: string;
858
890
  };
859
891
 
860
- export const CollectPostsType = {
861
- Activity: "activity",
862
- UgcPost: "ugcPost",
863
- Share: "share",
892
+ export const BulkVisitBatchStatusStatus = {
893
+ Queued: "queued",
894
+ Processing: "processing",
895
+ Completed: "completed",
896
+ Partial: "partial",
897
+ Failed: "failed",
864
898
  } as const;
865
- export type CollectPostsType = OpenEnum<typeof CollectPostsType>;
899
+ export type BulkVisitBatchStatusStatus = OpenEnum<
900
+ typeof BulkVisitBatchStatusStatus
901
+ >;
866
902
 
867
- /**
868
- * Type of media attached to the post.
869
- */
870
- export const CollectPostsMediaType = {
871
- Image: "image",
872
- Video: "video",
873
- Document: "document",
874
- Article: "article",
903
+ export type Progress = {
904
+ total: number;
905
+ visited: number;
906
+ cached: number;
907
+ failed: number;
908
+ skipped: number;
909
+ pending: number;
910
+ };
911
+
912
+ export const ResultStatus = {
913
+ Visited: "visited",
914
+ Cached: "cached",
915
+ Failed: "failed",
916
+ Skipped: "skipped",
917
+ Pending: "pending",
875
918
  } as const;
876
- /**
877
- * Type of media attached to the post.
878
- */
879
- export type CollectPostsMediaType = OpenEnum<typeof CollectPostsMediaType>;
919
+ export type ResultStatus = OpenEnum<typeof ResultStatus>;
920
+
921
+ export type Result = {
922
+ profile: string;
923
+ status: ResultStatus;
924
+ contactId?: string | null | undefined;
925
+ error?: string | null | undefined;
926
+ };
880
927
 
881
928
  /**
882
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
929
+ * Batch status
883
930
  */
884
- export type CollectPostsMedia = {
885
- /**
886
- * Type of media attached to the post.
887
- */
888
- type: CollectPostsMediaType;
889
- /**
890
- * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
891
- */
892
- urls: Array<string>;
931
+ export type BulkVisitBatchStatusResponse = {
932
+ batchId: string;
933
+ status: BulkVisitBatchStatusStatus;
934
+ progress: Progress;
935
+ creditsUsed: number;
936
+ failureReason?: string | null | undefined;
937
+ results?: Array<Result> | undefined;
938
+ };
939
+
940
+ export type VisitCompanyRequest = {
893
941
  /**
894
- * Title of the article or document, when available.
942
+ * LinkedIn company URL (e.g., 'https://www.linkedin.com/company/openai') or universal name (e.g., 'openai')
895
943
  */
896
- title?: string | undefined;
944
+ companyUrl: string;
897
945
  /**
898
- * Thumbnail URL for videos, articles, or document covers.
946
+ * Include workplace policy data such as hybrid/remote status and benefits. Costs 1 extra credit (extra API call).
899
947
  */
900
- thumbnailUrl?: string | undefined;
948
+ includeWorkplacePolicy?: boolean | undefined;
901
949
  };
902
950
 
903
- export type CollectPostsPost = {
904
- postUrl: string;
905
- text: string;
906
- date: number;
907
- likesCount: number;
908
- commentsCount: number;
909
- sharesCount: number;
910
- postUrn: string;
911
- postId: string;
912
- type: CollectPostsType;
913
- /**
914
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
915
- */
916
- media?: CollectPostsMedia | undefined;
951
+ /**
952
+ * Employee count range
953
+ */
954
+ export type EmployeeCountRange = {
955
+ start: number;
956
+ end: number | null;
957
+ };
958
+
959
+ export type VisitCompanyHeadquarter = {
960
+ country: string | null;
961
+ geographicArea: string | null;
962
+ city: string | null;
963
+ postalCode: string | null;
964
+ line1: string | null;
965
+ line2: string | null;
966
+ };
967
+
968
+ export type VisitCompanyFoundedOn = {
969
+ year: number;
970
+ };
971
+
972
+ export type CallToAction = {
973
+ type: string;
974
+ url: string;
975
+ };
976
+
977
+ export type AffiliatedCompany = {
978
+ id: string;
979
+ universalName: string;
980
+ name: string;
981
+ url: string | null;
982
+ logoUrl: string | null;
983
+ followerCount: number | null;
984
+ industry: string | null;
985
+ };
986
+
987
+ export type SimilarCompany = {
988
+ id: string;
989
+ universalName: string;
990
+ name: string;
991
+ url: string | null;
992
+ logoUrl: string | null;
993
+ followerCount: number | null;
994
+ industry: string | null;
917
995
  };
918
996
 
919
997
  /**
920
- * Paginated list of posts from the profile
998
+ * Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
921
999
  */
922
- export type CollectPostsResponse = {
923
- success: true;
924
- posts: Array<CollectPostsPost>;
925
- count: number;
926
- total: number;
927
- start: number;
928
- hasMore: boolean;
929
- paginationToken: string | null;
930
- /**
931
- * 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.
932
- */
933
- previousTotal: number | null;
934
- /**
935
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
936
- */
937
- creditsUsed: number;
938
- /**
939
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
940
- */
941
- retryAfter: number;
1000
+ export type WorkplacePolicy = {
1001
+ title: string | null;
1002
+ description: string | null;
1003
+ timeAtOnsite: string | null;
1004
+ benefits: Array<string>;
942
1005
  };
943
1006
 
944
- export type VisitProfileRequest = {
1007
+ /**
1008
+ * Company profile data
1009
+ */
1010
+ export type VisitCompanyResponse = {
1011
+ success: true;
945
1012
  /**
946
- * LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
1013
+ * LinkedIn numeric company ID
947
1014
  */
948
- profile: string;
1015
+ id: string;
949
1016
  /**
950
- * Optional campaign identifier for tracking only. No dedup — visit always executes.
1017
+ * Company URL slug
951
1018
  */
952
- campaignSlug?: string | undefined;
1019
+ universalName: string;
1020
+ name: string;
1021
+ description: string | null;
953
1022
  /**
954
- * Deprecated. Use campaignSlug only.
955
- *
956
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1023
+ * LinkedIn company page URL
957
1024
  */
958
- actionSlug?: string | undefined;
1025
+ url: string;
959
1026
  /**
960
- * When true, fetches the last 5 posts from the profile (fetched in parallel with other enrichments). Defaults to false.
1027
+ * External website URL
961
1028
  */
962
- includePosts?: boolean | undefined;
1029
+ websiteUrl: string | null;
1030
+ industry: string | null;
963
1031
  /**
964
- * When true, fetches the last 5 posts the profile recently engaged with via comments. Returns engagement context (target post text, author) but not the comment text itself. Fetched in parallel with includePosts. Defaults to false.
1032
+ * Exact employee count on LinkedIn
965
1033
  */
966
- includeComments?: boolean | undefined;
1034
+ employeeCount: number | null;
967
1035
  /**
968
- * When true, fetches the profile's About section and detailed position descriptions via a supplementary API call (fetched in parallel). Defaults to false.
1036
+ * Employee count range
969
1037
  */
970
- includeAbout?: boolean | undefined;
971
- };
972
-
973
- /**
974
- * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
975
- */
976
- export const PendingConnection = {
977
- Pending: "pending",
978
- Failed: "failed",
979
- None: "none",
980
- } as const;
981
- /**
982
- * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
983
- */
984
- export type PendingConnection = OpenEnum<typeof PendingConnection>;
985
-
986
- export type VisitProfilePositionStartDate = {
987
- month: number | null;
988
- year: number;
989
- };
990
-
991
- export type VisitProfilePositionEndDate = {
992
- month: number | null;
993
- year: number;
994
- };
995
-
996
- export type VisitProfilePosition = {
997
- companyName: string | null;
998
- title: string | null;
1038
+ employeeCountRange: EmployeeCountRange | null;
1039
+ headquarter: VisitCompanyHeadquarter | null;
1040
+ logoUrl: string | null;
1041
+ coverImageUrl: string | null;
1042
+ followerCount: number | null;
1043
+ specialities: Array<string>;
1044
+ tagline: string | null;
1045
+ isVerified: boolean;
1046
+ foundedOn: VisitCompanyFoundedOn | null;
1047
+ phone: string | null;
1048
+ callToAction: CallToAction | null;
1049
+ hashtags: Array<string>;
999
1050
  /**
1000
- * Position description / responsibilities text
1051
+ * Showcase / affiliated pages
1001
1052
  */
1002
- description: string | null;
1003
- companyUrl: string | null;
1004
- companyLogo: string | null;
1053
+ affiliatedCompanies: Array<AffiliatedCompany>;
1005
1054
  /**
1006
- * Short description of the company (from LinkedIn company page)
1055
+ * Similar companies suggested by LinkedIn
1007
1056
  */
1008
- companyDescription: string | null;
1009
- startDate: VisitProfilePositionStartDate | null;
1010
- endDate: VisitProfilePositionEndDate | null;
1011
- isCurrent: boolean;
1012
- };
1013
-
1014
- export type VisitProfileEducationStartDate = {
1015
- month: number | null;
1016
- year: number;
1057
+ similarCompanies: Array<SimilarCompany>;
1058
+ /**
1059
+ * Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
1060
+ */
1061
+ workplacePolicy: WorkplacePolicy | null;
1062
+ /**
1063
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1064
+ */
1065
+ creditsUsed: number;
1066
+ /**
1067
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1068
+ */
1069
+ retryAfter: number;
1017
1070
  };
1018
1071
 
1019
- export type VisitProfileEducationEndDate = {
1020
- month: number | null;
1021
- year: number;
1072
+ export type ListSavedPostsRequest = {
1073
+ /**
1074
+ * Pagination offset
1075
+ */
1076
+ start?: number | undefined;
1077
+ /**
1078
+ * Number of posts to return
1079
+ */
1080
+ count?: number | undefined;
1022
1081
  };
1023
1082
 
1024
- export type VisitProfileEducation = {
1025
- schoolName: string | null;
1026
- degreeName: string | null;
1027
- fieldOfStudy: string | null;
1028
- schoolUrl: string | null;
1029
- schoolLogo: string | null;
1030
- startDate: VisitProfileEducationStartDate | null;
1031
- endDate: VisitProfileEducationEndDate | null;
1083
+ export type ListSavedPostsAuthor = {
1084
+ name: string;
1085
+ profileUrl: string | null;
1086
+ publicIdentifier: string | null;
1087
+ profileUrn: string | null;
1032
1088
  };
1033
1089
 
1034
- export const VisitProfileLastPostType = {
1035
- Activity: "activity",
1036
- UgcPost: "ugcPost",
1037
- Share: "share",
1038
- } as const;
1039
- export type VisitProfileLastPostType = OpenEnum<
1040
- typeof VisitProfileLastPostType
1041
- >;
1042
-
1043
1090
  /**
1044
1091
  * Type of media attached to the post.
1045
1092
  */
1046
- export const VisitProfileMediaType = {
1093
+ export const ListSavedPostsType = {
1047
1094
  Image: "image",
1048
1095
  Video: "video",
1049
1096
  Document: "document",
@@ -1052,16 +1099,13 @@ export const VisitProfileMediaType = {
1052
1099
  /**
1053
1100
  * Type of media attached to the post.
1054
1101
  */
1055
- export type VisitProfileMediaType = OpenEnum<typeof VisitProfileMediaType>;
1102
+ export type ListSavedPostsType = OpenEnum<typeof ListSavedPostsType>;
1056
1103
 
1057
- /**
1058
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1059
- */
1060
- export type VisitProfileMedia = {
1104
+ export type ListSavedPostsMedia = {
1061
1105
  /**
1062
1106
  * Type of media attached to the post.
1063
1107
  */
1064
- type: VisitProfileMediaType;
1108
+ type: ListSavedPostsType;
1065
1109
  /**
1066
1110
  * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
1067
1111
  */
@@ -1076,149 +1120,125 @@ export type VisitProfileMedia = {
1076
1120
  thumbnailUrl?: string | undefined;
1077
1121
  };
1078
1122
 
1079
- export type VisitProfileLastPost = {
1123
+ export type ListSavedPostsPost = {
1080
1124
  postUrl: string;
1125
+ postUrn: string;
1126
+ postId: string;
1081
1127
  text: string;
1082
1128
  date: number;
1083
1129
  likesCount: number;
1084
1130
  commentsCount: number;
1085
1131
  sharesCount: number;
1086
- postUrn: string;
1087
- postId: string;
1088
- type: VisitProfileLastPostType;
1132
+ author: ListSavedPostsAuthor;
1133
+ media?: ListSavedPostsMedia | undefined;
1134
+ };
1135
+
1136
+ /**
1137
+ * Saved posts
1138
+ */
1139
+ export type ListSavedPostsResponse = {
1140
+ success: true;
1141
+ posts: Array<ListSavedPostsPost>;
1142
+ total: number | null;
1143
+ hasMore: boolean;
1089
1144
  /**
1090
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1145
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1091
1146
  */
1092
- media?: VisitProfileMedia | undefined;
1147
+ creditsUsed: number;
1148
+ /**
1149
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1150
+ */
1151
+ retryAfter: number;
1093
1152
  };
1094
1153
 
1095
1154
  /**
1096
- * Activity type: 'comment' for posts the user commented on
1155
+ * Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
1097
1156
  */
1098
- export const LastCommentType = {
1099
- Comment: "comment",
1100
- Reaction: "reaction",
1157
+ export const SortOrder = {
1158
+ Relevance: "RELEVANCE",
1159
+ RevChron: "REV_CHRON",
1101
1160
  } as const;
1102
1161
  /**
1103
- * Activity type: 'comment' for posts the user commented on
1162
+ * Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
1104
1163
  */
1105
- export type LastCommentType = OpenEnum<typeof LastCommentType>;
1164
+ export type SortOrder = ClosedEnum<typeof SortOrder>;
1106
1165
 
1107
- export type LastComment = {
1108
- /**
1109
- * Activity type: 'comment' for posts the user commented on
1110
- */
1111
- type: LastCommentType;
1112
- /**
1113
- * URN of the feed update (post) the user engaged with
1114
- */
1115
- activityUrn: string;
1116
- /**
1117
- * The user's comment text (null when not available from the API — this is a LinkedIn limitation)
1118
- */
1119
- text: string | null;
1120
- /**
1121
- * Reaction type (e.g. 'LIKE', 'CELEBRATE'). Only set for reaction-type activities
1122
- */
1123
- reactionType: string | null;
1124
- /**
1125
- * URN of the post the user commented on (e.g. 'urn:li:activity:1234567890')
1126
- */
1127
- targetPostUrn: string | null;
1128
- /**
1129
- * First ~200 chars of the post the user commented on. Use this to understand what topics they engage with
1130
- */
1131
- targetPostText: string | null;
1132
- /**
1133
- * Name of the post author (the person whose post was commented on)
1134
- */
1135
- targetPostAuthor: string | null;
1136
- /**
1137
- * Unix timestamp in milliseconds when the activity occurred
1138
- */
1139
- timestamp: number | null;
1166
+ export type GetFeedRequest = {
1140
1167
  /**
1141
- * Name of the post author (same as targetPostAuthor when available)
1168
+ * Number of feed items to return (1-50, default 20)
1142
1169
  */
1143
- actorName: string | null;
1170
+ count?: number | undefined;
1144
1171
  /**
1145
- * Profile URN of the post author
1172
+ * Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
1146
1173
  */
1147
- actorUrn: string | null;
1174
+ sortOrder?: SortOrder | undefined;
1148
1175
  };
1149
1176
 
1177
+ export const GetFeedType = {
1178
+ Activity: "activity",
1179
+ UgcPost: "ugcPost",
1180
+ Share: "share",
1181
+ } as const;
1182
+ export type GetFeedType = OpenEnum<typeof GetFeedType>;
1183
+
1150
1184
  /**
1151
- * Profile contact data
1185
+ * Type of media attached to the post.
1152
1186
  */
1153
- export type VisitProfileResponse = {
1154
- success: true;
1155
- firstName: string;
1156
- lastName: string;
1157
- headline: string | null;
1158
- /**
1159
- * The profile's 'About' section text. Only populated when includeAbout is true. Null when not requested or not filled in.
1160
- */
1161
- summary: string | null;
1162
- publicIdentifier: string;
1163
- /**
1164
- * LinkedIn profile URL. Null when publicIdentifier is unavailable (restricted profiles).
1165
- */
1166
- profileUrl: string | null;
1167
- /**
1168
- * LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAAA...'). Use this for matching against inbox participants.
1169
- */
1170
- profileUrn: string | null;
1171
- imageUrl: string | null;
1172
- email: string | null;
1173
- location: string | null;
1174
- /**
1175
- * Current company name (from most recent position)
1176
- */
1177
- company: string | null;
1178
- /**
1179
- * Current job title (from most recent position)
1180
- */
1181
- position: string | null;
1182
- /**
1183
- * Connection degree: 0 (self), 1 (direct connection), 2+ (2nd degree, 3rd degree, etc.), or null if unknown
1184
- */
1185
- memberDistance: number | null;
1186
- /**
1187
- * Total number of connections. May be null for non-connected profiles or restricted visibility.
1188
- */
1189
- connectionsCount: number | null;
1190
- /**
1191
- * Whether the profile has a LinkedIn verification badge.
1192
- */
1193
- isVerified: boolean;
1194
- /**
1195
- * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
1196
- */
1197
- pendingConnection: PendingConnection;
1198
- /**
1199
- * Work experience positions
1200
- */
1201
- positions?: Array<VisitProfilePosition> | undefined;
1187
+ export const GetFeedMediaType = {
1188
+ Image: "image",
1189
+ Video: "video",
1190
+ Document: "document",
1191
+ Article: "article",
1192
+ } as const;
1193
+ /**
1194
+ * Type of media attached to the post.
1195
+ */
1196
+ export type GetFeedMediaType = OpenEnum<typeof GetFeedMediaType>;
1197
+
1198
+ /**
1199
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1200
+ */
1201
+ export type GetFeedMedia = {
1202
1202
  /**
1203
- * Education entries
1203
+ * Type of media attached to the post.
1204
1204
  */
1205
- educations?: Array<VisitProfileEducation> | undefined;
1205
+ type: GetFeedMediaType;
1206
1206
  /**
1207
- * Last 5 posts from the profile (only present when includePosts is true)
1207
+ * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
1208
1208
  */
1209
- lastPosts?: Array<VisitProfileLastPost> | undefined;
1209
+ urls: Array<string>;
1210
1210
  /**
1211
- * Last 5 posts the profile recently commented on (only present when includeComments is true). Contains targetPostText and targetPostAuthor for engagement context.
1211
+ * Title of the article or document, when available.
1212
1212
  */
1213
- lastComments?: Array<LastComment> | undefined;
1213
+ title?: string | undefined;
1214
1214
  /**
1215
- * true when includeAbout was requested and the About section was fetched. Used for cache invalidation.
1215
+ * Thumbnail URL for videos, articles, or document covers.
1216
1216
  */
1217
- aboutFetched?: boolean | undefined;
1217
+ thumbnailUrl?: string | undefined;
1218
+ };
1219
+
1220
+ export type GetFeedPost = {
1221
+ postUrl: string;
1222
+ text: string;
1223
+ date: number;
1224
+ likesCount: number;
1225
+ commentsCount: number;
1226
+ sharesCount: number;
1227
+ postUrn: string;
1228
+ postId: string;
1229
+ type: GetFeedType;
1218
1230
  /**
1219
- * true if this result was served from cache (0 credits). Distance-1 profiles are cached for 24h.
1231
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1220
1232
  */
1221
- cached: boolean;
1233
+ media?: GetFeedMedia | undefined;
1234
+ };
1235
+
1236
+ /**
1237
+ * Feed posts
1238
+ */
1239
+ export type GetFeedResponse = {
1240
+ success: true;
1241
+ posts: Array<GetFeedPost>;
1222
1242
  /**
1223
1243
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1224
1244
  */
@@ -1229,109 +1249,89 @@ export type VisitProfileResponse = {
1229
1249
  retryAfter: number;
1230
1250
  };
1231
1251
 
1232
- export type BulkVisitProfileRequest = {
1233
- /**
1234
- * LinkedIn profile URLs, vanity names, or URNs (max 50). Duplicates are auto-removed.
1235
- */
1236
- profiles: Array<string>;
1237
- /**
1238
- * Auto-add each successfully visited contact to this campaign.
1239
- */
1240
- campaignSlug?: string | undefined;
1252
+ export type CollectHashtagPostsRequest = {
1241
1253
  /**
1242
- * Fetch last 5 posts per profile. Increases processing time.
1254
+ * Hashtag to collect posts from (without #)
1243
1255
  */
1244
- includePosts?: boolean | undefined;
1256
+ hashtag: string;
1245
1257
  /**
1246
- * Fetch recent comments per profile. Increases processing time.
1258
+ * Pagination offset
1247
1259
  */
1248
- includeComments?: boolean | undefined;
1260
+ start?: number | undefined;
1249
1261
  /**
1250
- * Fetch About section and detailed position descriptions per profile. Increases processing time.
1262
+ * Number of posts
1251
1263
  */
1252
- includeAbout?: boolean | undefined;
1264
+ count?: number | undefined;
1265
+ };
1266
+
1267
+ export type CollectHashtagPostsAuthor = {
1268
+ name: string;
1269
+ profileUrl: string | null;
1270
+ publicIdentifier: string | null;
1271
+ profileUrn: string | null;
1253
1272
  };
1254
1273
 
1255
1274
  /**
1256
- * Batch accepted and queued for processing
1275
+ * Type of media attached to the post.
1257
1276
  */
1258
- export type BulkVisitProfileResponse = {
1259
- accepted: true;
1260
- /**
1261
- * Unique batch identifier for status polling.
1262
- */
1263
- batchId: string;
1264
- /**
1265
- * Total unique profiles in the batch (after dedup).
1266
- */
1267
- profileCount: number;
1277
+ export const CollectHashtagPostsType = {
1278
+ Image: "image",
1279
+ Video: "video",
1280
+ Document: "document",
1281
+ Article: "article",
1282
+ } as const;
1283
+ /**
1284
+ * Type of media attached to the post.
1285
+ */
1286
+ export type CollectHashtagPostsType = OpenEnum<typeof CollectHashtagPostsType>;
1287
+
1288
+ export type CollectHashtagPostsMedia = {
1268
1289
  /**
1269
- * Profiles resolved from cache (0 credits, instant).
1290
+ * Type of media attached to the post.
1270
1291
  */
1271
- alreadyCached: number;
1292
+ type: CollectHashtagPostsType;
1272
1293
  /**
1273
- * Profiles queued for LinkedIn API visit.
1294
+ * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
1274
1295
  */
1275
- willVisit: number;
1296
+ urls: Array<string>;
1276
1297
  /**
1277
- * Estimated processing time in minutes for uncached profiles.
1298
+ * Title of the article or document, when available.
1278
1299
  */
1279
- estimatedMinutes: number;
1280
- };
1281
-
1282
- export type BulkVisitBatchStatusRequest = {
1300
+ title?: string | undefined;
1283
1301
  /**
1284
- * Batch identifier returned by the bulk visit endpoint.
1302
+ * Thumbnail URL for videos, articles, or document covers.
1285
1303
  */
1286
- batchId: string;
1287
- };
1288
-
1289
- export const BulkVisitBatchStatusStatus = {
1290
- Queued: "queued",
1291
- Processing: "processing",
1292
- Completed: "completed",
1293
- Partial: "partial",
1294
- Failed: "failed",
1295
- } as const;
1296
- export type BulkVisitBatchStatusStatus = OpenEnum<
1297
- typeof BulkVisitBatchStatusStatus
1298
- >;
1299
-
1300
- export type Progress = {
1301
- total: number;
1302
- visited: number;
1303
- cached: number;
1304
- failed: number;
1305
- skipped: number;
1306
- pending: number;
1304
+ thumbnailUrl?: string | undefined;
1307
1305
  };
1308
1306
 
1309
- export const ResultStatus = {
1310
- Visited: "visited",
1311
- Cached: "cached",
1312
- Failed: "failed",
1313
- Skipped: "skipped",
1314
- Pending: "pending",
1315
- } as const;
1316
- export type ResultStatus = OpenEnum<typeof ResultStatus>;
1317
-
1318
- export type Result = {
1319
- profile: string;
1320
- status: ResultStatus;
1321
- contactId?: string | null | undefined;
1322
- error?: string | null | undefined;
1307
+ export type CollectHashtagPostsPost = {
1308
+ postUrl: string;
1309
+ postUrn: string;
1310
+ text: string;
1311
+ date: number;
1312
+ likesCount: number;
1313
+ commentsCount: number;
1314
+ sharesCount: number;
1315
+ author: CollectHashtagPostsAuthor;
1316
+ media?: CollectHashtagPostsMedia | undefined;
1323
1317
  };
1324
1318
 
1325
1319
  /**
1326
- * Batch status
1320
+ * Hashtag posts
1327
1321
  */
1328
- export type BulkVisitBatchStatusResponse = {
1329
- batchId: string;
1330
- status: BulkVisitBatchStatusStatus;
1331
- progress: Progress;
1322
+ export type CollectHashtagPostsResponse = {
1323
+ success: true;
1324
+ posts: Array<CollectHashtagPostsPost>;
1325
+ total: number;
1326
+ hasMore: boolean;
1327
+ /**
1328
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1329
+ */
1332
1330
  creditsUsed: number;
1333
- failureReason?: string | null | undefined;
1334
- results?: Array<Result> | undefined;
1331
+ /**
1332
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1333
+ */
1334
+ retryAfter: number;
1335
1335
  };
1336
1336
 
1337
1337
  /**
@@ -1351,19 +1351,19 @@ export type SearchCategoryRequest = ClosedEnum<typeof SearchCategoryRequest>;
1351
1351
  /**
1352
1352
  * Sort order (posts & jobs)
1353
1353
  */
1354
- export const SearchSortBy = {
1354
+ export const SortBy = {
1355
1355
  Relevance: "relevance",
1356
1356
  Date: "date",
1357
1357
  } as const;
1358
1358
  /**
1359
1359
  * Sort order (posts & jobs)
1360
1360
  */
1361
- export type SearchSortBy = ClosedEnum<typeof SearchSortBy>;
1361
+ export type SortBy = ClosedEnum<typeof SortBy>;
1362
1362
 
1363
1363
  /**
1364
1364
  * Time filter (posts & jobs)
1365
1365
  */
1366
- export const SearchDatePosted = {
1366
+ export const DatePosted = {
1367
1367
  Past24h: "past-24h",
1368
1368
  PastWeek: "past-week",
1369
1369
  PastMonth: "past-month",
@@ -1371,12 +1371,12 @@ export const SearchDatePosted = {
1371
1371
  /**
1372
1372
  * Time filter (posts & jobs)
1373
1373
  */
1374
- export type SearchDatePosted = ClosedEnum<typeof SearchDatePosted>;
1374
+ export type DatePosted = ClosedEnum<typeof DatePosted>;
1375
1375
 
1376
1376
  /**
1377
1377
  * Media type filter (posts only)
1378
1378
  */
1379
- export const SearchContentType = {
1379
+ export const ContentType = {
1380
1380
  Images: "images",
1381
1381
  Videos: "videos",
1382
1382
  Documents: "documents",
@@ -1384,16 +1384,16 @@ export const SearchContentType = {
1384
1384
  /**
1385
1385
  * Media type filter (posts only)
1386
1386
  */
1387
- export type SearchContentType = ClosedEnum<typeof SearchContentType>;
1387
+ export type ContentType = ClosedEnum<typeof ContentType>;
1388
1388
 
1389
- export const SearchConnectionDegree = {
1389
+ export const ConnectionDegree = {
1390
1390
  F: "F",
1391
1391
  S: "S",
1392
1392
  O: "O",
1393
1393
  } as const;
1394
- export type SearchConnectionDegree = ClosedEnum<typeof SearchConnectionDegree>;
1394
+ export type ConnectionDegree = ClosedEnum<typeof ConnectionDegree>;
1395
1395
 
1396
- export const SearchCompanySize = {
1396
+ export const CompanySize = {
1397
1397
  A: "A",
1398
1398
  B: "B",
1399
1399
  C: "C",
@@ -1404,9 +1404,9 @@ export const SearchCompanySize = {
1404
1404
  H: "H",
1405
1405
  I: "I",
1406
1406
  } as const;
1407
- export type SearchCompanySize = ClosedEnum<typeof SearchCompanySize>;
1407
+ export type CompanySize = ClosedEnum<typeof CompanySize>;
1408
1408
 
1409
- export const SearchJobType = {
1409
+ export const JobType = {
1410
1410
  F: "F",
1411
1411
  P: "P",
1412
1412
  C: "C",
@@ -1415,9 +1415,9 @@ export const SearchJobType = {
1415
1415
  V: "V",
1416
1416
  O: "O",
1417
1417
  } as const;
1418
- export type SearchJobType = ClosedEnum<typeof SearchJobType>;
1418
+ export type JobType = ClosedEnum<typeof JobType>;
1419
1419
 
1420
- export const SearchExperienceLevel = {
1420
+ export const ExperienceLevel = {
1421
1421
  One: "1",
1422
1422
  Two: "2",
1423
1423
  Three: "3",
@@ -1425,14 +1425,14 @@ export const SearchExperienceLevel = {
1425
1425
  Five: "5",
1426
1426
  Six: "6",
1427
1427
  } as const;
1428
- export type SearchExperienceLevel = ClosedEnum<typeof SearchExperienceLevel>;
1428
+ export type ExperienceLevel = ClosedEnum<typeof ExperienceLevel>;
1429
1429
 
1430
- export const SearchWorkplaceType = {
1430
+ export const WorkplaceType = {
1431
1431
  One: "1",
1432
1432
  Two: "2",
1433
1433
  Three: "3",
1434
1434
  } as const;
1435
- export type SearchWorkplaceType = ClosedEnum<typeof SearchWorkplaceType>;
1435
+ export type WorkplaceType = ClosedEnum<typeof WorkplaceType>;
1436
1436
 
1437
1437
  export type SearchRequest = {
1438
1438
  /**
@@ -1450,15 +1450,15 @@ export type SearchRequest = {
1450
1450
  /**
1451
1451
  * Sort order (posts & jobs)
1452
1452
  */
1453
- sortBy?: SearchSortBy | undefined;
1453
+ sortBy?: SortBy | undefined;
1454
1454
  /**
1455
1455
  * Time filter (posts & jobs)
1456
1456
  */
1457
- datePosted?: SearchDatePosted | undefined;
1457
+ datePosted?: DatePosted | undefined;
1458
1458
  /**
1459
1459
  * Media type filter (posts only)
1460
1460
  */
1461
- contentType?: SearchContentType | undefined;
1461
+ contentType?: ContentType | undefined;
1462
1462
  /**
1463
1463
  * Author industry IDs (posts only, resolve via /search/parameters)
1464
1464
  */
@@ -1470,7 +1470,7 @@ export type SearchRequest = {
1470
1470
  /**
1471
1471
  * Connection degree: F=1st, S=2nd, O=3rd+ (people only)
1472
1472
  */
1473
- connectionDegree?: Array<SearchConnectionDegree> | undefined;
1473
+ connectionDegree?: Array<ConnectionDegree> | undefined;
1474
1474
  /**
1475
1475
  * First name filter (people only)
1476
1476
  */
@@ -1514,19 +1514,19 @@ export type SearchRequest = {
1514
1514
  /**
1515
1515
  * 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)
1516
1516
  */
1517
- companySize?: Array<SearchCompanySize> | undefined;
1517
+ companySize?: Array<CompanySize> | undefined;
1518
1518
  /**
1519
1519
  * Job type: F=Full-time, P=Part-time, C=Contract, T=Temporary, I=Internship, V=Volunteer, O=Other (jobs only)
1520
1520
  */
1521
- jobType?: Array<SearchJobType> | undefined;
1521
+ jobType?: Array<JobType> | undefined;
1522
1522
  /**
1523
1523
  * Experience level: 1=Internship, 2=Entry, 3=Associate, 4=Mid-Senior, 5=Director, 6=Executive (jobs only)
1524
1524
  */
1525
- experienceLevel?: Array<SearchExperienceLevel> | undefined;
1525
+ experienceLevel?: Array<ExperienceLevel> | undefined;
1526
1526
  /**
1527
1527
  * Workplace type: 1=On-site, 2=Remote, 3=Hybrid (jobs only)
1528
1528
  */
1529
- workplaceType?: Array<SearchWorkplaceType> | undefined;
1529
+ workplaceType?: Array<WorkplaceType> | undefined;
1530
1530
  /**
1531
1531
  * Pagination offset (default 0)
1532
1532
  */
@@ -1547,13 +1547,13 @@ export type SearchCategoryResponseBody = OpenEnum<
1547
1547
  typeof SearchCategoryResponseBody
1548
1548
  >;
1549
1549
 
1550
- export const SearchTypeJob = {
1550
+ export const ItemsTypeJob = {
1551
1551
  Job: "JOB",
1552
1552
  } as const;
1553
- export type SearchTypeJob = ClosedEnum<typeof SearchTypeJob>;
1553
+ export type ItemsTypeJob = ClosedEnum<typeof ItemsTypeJob>;
1554
1554
 
1555
- export type SearchItemsJob = {
1556
- type: SearchTypeJob;
1555
+ export type ItemsJob = {
1556
+ type: ItemsTypeJob;
1557
1557
  title: string;
1558
1558
  company: string | null;
1559
1559
  companyUrl: string | null;
@@ -1565,13 +1565,13 @@ export type SearchItemsJob = {
1565
1565
  listingId: string;
1566
1566
  };
1567
1567
 
1568
- export const SearchTypeCompany = {
1568
+ export const ItemsTypeCompany = {
1569
1569
  Company: "COMPANY",
1570
1570
  } as const;
1571
- export type SearchTypeCompany = ClosedEnum<typeof SearchTypeCompany>;
1571
+ export type ItemsTypeCompany = ClosedEnum<typeof ItemsTypeCompany>;
1572
1572
 
1573
- export type SearchItemsCompany = {
1574
- type: SearchTypeCompany;
1573
+ export type ItemsCompany = {
1574
+ type: ItemsTypeCompany;
1575
1575
  name: string;
1576
1576
  profileUrl: string | null;
1577
1577
  summary: string | null;
@@ -1580,33 +1580,33 @@ export type SearchItemsCompany = {
1580
1580
  followersCount: number | null;
1581
1581
  };
1582
1582
 
1583
- export const SearchTypePeople = {
1583
+ export const ItemsTypePeople = {
1584
1584
  People: "PEOPLE",
1585
1585
  } as const;
1586
- export type SearchTypePeople = ClosedEnum<typeof SearchTypePeople>;
1586
+ export type ItemsTypePeople = ClosedEnum<typeof ItemsTypePeople>;
1587
1587
 
1588
- export const SearchNetworkDistance = {
1588
+ export const ItemsNetworkDistance = {
1589
1589
  Distance1: "DISTANCE_1",
1590
1590
  Distance2: "DISTANCE_2",
1591
1591
  Distance3: "DISTANCE_3",
1592
1592
  OutOfNetwork: "OUT_OF_NETWORK",
1593
1593
  } as const;
1594
- export type SearchNetworkDistance = OpenEnum<typeof SearchNetworkDistance>;
1594
+ export type ItemsNetworkDistance = OpenEnum<typeof ItemsNetworkDistance>;
1595
1595
 
1596
- export type SearchCurrentPosition = {
1596
+ export type ItemsCurrentPosition = {
1597
1597
  company: string | null;
1598
1598
  role: string | null;
1599
1599
  };
1600
1600
 
1601
- export type SearchItemsPeople = {
1602
- type: SearchTypePeople;
1601
+ export type ItemsPeople = {
1602
+ type: ItemsTypePeople;
1603
1603
  name: string;
1604
1604
  profileUrl: string | null;
1605
1605
  headline: string | null;
1606
1606
  location: string | null;
1607
1607
  profilePicture: string | null;
1608
- networkDistance: SearchNetworkDistance | null;
1609
- currentPositions: Array<SearchCurrentPosition>;
1608
+ networkDistance: ItemsNetworkDistance | null;
1609
+ currentPositions: Array<ItemsCurrentPosition>;
1610
1610
  /**
1611
1611
  * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
1612
1612
  */
@@ -1617,198 +1617,105 @@ export type SearchItemsPeople = {
1617
1617
  publicIdentifier: string | null;
1618
1618
  };
1619
1619
 
1620
- export const SearchTypePost = {
1620
+ export const ItemsTypePost = {
1621
1621
  Post: "POST",
1622
1622
  } as const;
1623
- export type SearchTypePost = ClosedEnum<typeof SearchTypePost>;
1623
+ export type ItemsTypePost = ClosedEnum<typeof ItemsTypePost>;
1624
1624
 
1625
- export type SearchAuthor = {
1625
+ export type ItemsAuthor = {
1626
1626
  name: string;
1627
1627
  profileUrl: string | null;
1628
1628
  headline: string | null;
1629
1629
  profilePicture: string | null;
1630
1630
  isCompany: boolean;
1631
1631
  /**
1632
- * Vanity slug when not URN-based
1633
- */
1634
- publicIdentifier: string | null;
1635
- /**
1636
- * LinkedIn profile URN when available
1637
- */
1638
- profileUrn: string | null;
1639
- };
1640
-
1641
- /**
1642
- * Type of media attached to the post.
1643
- */
1644
- export const SearchMediaType = {
1645
- Image: "image",
1646
- Video: "video",
1647
- Document: "document",
1648
- Article: "article",
1649
- } as const;
1650
- /**
1651
- * Type of media attached to the post.
1652
- */
1653
- export type SearchMediaType = OpenEnum<typeof SearchMediaType>;
1654
-
1655
- /**
1656
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1657
- */
1658
- export type SearchMedia = {
1659
- /**
1660
- * Type of media attached to the post.
1661
- */
1662
- type: SearchMediaType;
1663
- /**
1664
- * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
1665
- */
1666
- urls: Array<string>;
1667
- /**
1668
- * Title of the article or document, when available.
1669
- */
1670
- title?: string | undefined;
1671
- /**
1672
- * Thumbnail URL for videos, articles, or document covers.
1673
- */
1674
- thumbnailUrl?: string | undefined;
1675
- };
1676
-
1677
- export type SearchItemsPost = {
1678
- type: SearchTypePost;
1679
- postUrl: string;
1680
- text: string;
1681
- date: number;
1682
- likesCount: number;
1683
- commentsCount: number;
1684
- sharesCount: number;
1685
- postUrn: string;
1686
- postId: string;
1687
- author: SearchAuthor;
1688
- isRepost: boolean;
1689
- /**
1690
- * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1691
- */
1692
- media?: SearchMedia | undefined;
1693
- };
1694
-
1695
- export type SearchItemsUnion =
1696
- | Array<SearchItemsPost>
1697
- | Array<SearchItemsPeople>
1698
- | Array<SearchItemsCompany>
1699
- | Array<SearchItemsJob>;
1700
-
1701
- export type SearchPaging = {
1702
- start: number;
1703
- count: number;
1704
- total: number;
1705
- };
1706
-
1707
- /**
1708
- * Search results for the specified category
1709
- */
1710
- export type SearchResponse = {
1711
- success: true;
1712
- category: SearchCategoryResponseBody;
1713
- items:
1714
- | Array<SearchItemsPost>
1715
- | Array<SearchItemsPeople>
1716
- | Array<SearchItemsCompany>
1717
- | Array<SearchItemsJob>;
1718
- paging: SearchPaging;
1719
- hasMore: boolean;
1720
- /**
1721
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1722
- */
1723
- creditsUsed: number;
1724
- /**
1725
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1726
- */
1727
- retryAfter: number;
1728
- };
1729
-
1730
- export const SearchCompaniesCompanySize = {
1731
- A: "A",
1732
- B: "B",
1733
- C: "C",
1734
- D: "D",
1735
- E: "E",
1736
- F: "F",
1737
- G: "G",
1738
- H: "H",
1739
- I: "I",
1740
- } as const;
1741
- export type SearchCompaniesCompanySize = ClosedEnum<
1742
- typeof SearchCompaniesCompanySize
1743
- >;
1744
-
1745
- export type SearchCompaniesRequest = {
1746
- /**
1747
- * 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.
1748
- */
1749
- keywords?: string | undefined;
1750
- /**
1751
- * Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
1632
+ * Vanity slug when not URN-based
1752
1633
  */
1753
- url?: string | undefined;
1634
+ publicIdentifier: string | null;
1754
1635
  /**
1755
- * Filter by company HQ location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'.
1636
+ * LinkedIn profile URN when available
1756
1637
  */
1757
- location?: Array<string> | undefined;
1638
+ profileUrn: string | null;
1639
+ };
1640
+
1641
+ /**
1642
+ * Type of media attached to the post.
1643
+ */
1644
+ export const ItemsMediaType = {
1645
+ Image: "image",
1646
+ Video: "video",
1647
+ Document: "document",
1648
+ Article: "article",
1649
+ } as const;
1650
+ /**
1651
+ * Type of media attached to the post.
1652
+ */
1653
+ export type ItemsMediaType = OpenEnum<typeof ItemsMediaType>;
1654
+
1655
+ /**
1656
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1657
+ */
1658
+ export type ItemsMedia = {
1758
1659
  /**
1759
- * Filter by company industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'.
1660
+ * Type of media attached to the post.
1760
1661
  */
1761
- industry?: Array<string> | undefined;
1662
+ type: ItemsMediaType;
1762
1663
  /**
1763
- * 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.
1664
+ * Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
1764
1665
  */
1765
- companySize?: Array<SearchCompaniesCompanySize> | undefined;
1666
+ urls: Array<string>;
1766
1667
  /**
1767
- * Pagination offset (default 0). Use multiples of `count` to page through results.
1668
+ * Title of the article or document, when available.
1768
1669
  */
1769
- start?: number | undefined;
1670
+ title?: string | undefined;
1770
1671
  /**
1771
- * Results per page (default 10, max 50).
1672
+ * Thumbnail URL for videos, articles, or document covers.
1772
1673
  */
1773
- count?: number | undefined;
1674
+ thumbnailUrl?: string | undefined;
1774
1675
  };
1775
1676
 
1776
- export const SearchCompaniesCategory = {
1777
- Companies: "companies",
1778
- } as const;
1779
- export type SearchCompaniesCategory = ClosedEnum<
1780
- typeof SearchCompaniesCategory
1781
- >;
1782
-
1783
- export const SearchCompaniesType = {
1784
- Company: "COMPANY",
1785
- } as const;
1786
- export type SearchCompaniesType = ClosedEnum<typeof SearchCompaniesType>;
1787
-
1788
- export type SearchCompaniesItem = {
1789
- type: SearchCompaniesType;
1790
- name: string;
1791
- profileUrl: string | null;
1792
- summary: string | null;
1793
- industry: string | null;
1794
- location: string | null;
1795
- followersCount: number | null;
1677
+ export type ItemsPost = {
1678
+ type: ItemsTypePost;
1679
+ postUrl: string;
1680
+ text: string;
1681
+ date: number;
1682
+ likesCount: number;
1683
+ commentsCount: number;
1684
+ sharesCount: number;
1685
+ postUrn: string;
1686
+ postId: string;
1687
+ author: ItemsAuthor;
1688
+ isRepost: boolean;
1689
+ /**
1690
+ * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
1691
+ */
1692
+ media?: ItemsMedia | undefined;
1796
1693
  };
1797
1694
 
1798
- export type SearchCompaniesPaging = {
1695
+ export type Items =
1696
+ | Array<ItemsPost>
1697
+ | Array<ItemsPeople>
1698
+ | Array<ItemsCompany>
1699
+ | Array<ItemsJob>;
1700
+
1701
+ export type SearchPagingResponseBody = {
1799
1702
  start: number;
1800
1703
  count: number;
1801
1704
  total: number;
1802
1705
  };
1803
1706
 
1804
1707
  /**
1805
- * List of LinkedIn companies matching the search criteria
1708
+ * Search results for the specified category
1806
1709
  */
1807
- export type SearchCompaniesResponse = {
1710
+ export type SearchResponse = {
1808
1711
  success: true;
1809
- category: SearchCompaniesCategory;
1810
- items: Array<SearchCompaniesItem>;
1811
- paging: SearchCompaniesPaging;
1712
+ category: SearchCategoryResponseBody;
1713
+ items:
1714
+ | Array<ItemsPost>
1715
+ | Array<ItemsPeople>
1716
+ | Array<ItemsCompany>
1717
+ | Array<ItemsJob>;
1718
+ paging: SearchPagingResponseBody;
1812
1719
  hasMore: boolean;
1813
1720
  /**
1814
1721
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
@@ -2143,6 +2050,99 @@ export type SearchPeopleResponse = {
2143
2050
  retryAfter: number;
2144
2051
  };
2145
2052
 
2053
+ export const SearchCompaniesCompanySize = {
2054
+ A: "A",
2055
+ B: "B",
2056
+ C: "C",
2057
+ D: "D",
2058
+ E: "E",
2059
+ F: "F",
2060
+ G: "G",
2061
+ H: "H",
2062
+ I: "I",
2063
+ } as const;
2064
+ export type SearchCompaniesCompanySize = ClosedEnum<
2065
+ typeof SearchCompaniesCompanySize
2066
+ >;
2067
+
2068
+ export type SearchCompaniesRequest = {
2069
+ /**
2070
+ * 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.
2071
+ */
2072
+ keywords?: string | undefined;
2073
+ /**
2074
+ * Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
2075
+ */
2076
+ url?: string | undefined;
2077
+ /**
2078
+ * Filter by company HQ location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'.
2079
+ */
2080
+ location?: Array<string> | undefined;
2081
+ /**
2082
+ * Filter by company industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'.
2083
+ */
2084
+ industry?: Array<string> | undefined;
2085
+ /**
2086
+ * 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.
2087
+ */
2088
+ companySize?: Array<SearchCompaniesCompanySize> | undefined;
2089
+ /**
2090
+ * Pagination offset (default 0). Use multiples of `count` to page through results.
2091
+ */
2092
+ start?: number | undefined;
2093
+ /**
2094
+ * Results per page (default 10, max 50).
2095
+ */
2096
+ count?: number | undefined;
2097
+ };
2098
+
2099
+ export const SearchCompaniesCategory = {
2100
+ Companies: "companies",
2101
+ } as const;
2102
+ export type SearchCompaniesCategory = ClosedEnum<
2103
+ typeof SearchCompaniesCategory
2104
+ >;
2105
+
2106
+ export const SearchCompaniesType = {
2107
+ Company: "COMPANY",
2108
+ } as const;
2109
+ export type SearchCompaniesType = ClosedEnum<typeof SearchCompaniesType>;
2110
+
2111
+ export type SearchCompaniesItem = {
2112
+ type: SearchCompaniesType;
2113
+ name: string;
2114
+ profileUrl: string | null;
2115
+ summary: string | null;
2116
+ industry: string | null;
2117
+ location: string | null;
2118
+ followersCount: number | null;
2119
+ };
2120
+
2121
+ export type SearchCompaniesPaging = {
2122
+ start: number;
2123
+ count: number;
2124
+ total: number;
2125
+ };
2126
+
2127
+ /**
2128
+ * List of LinkedIn companies matching the search criteria
2129
+ */
2130
+ export type SearchCompaniesResponse = {
2131
+ success: true;
2132
+ category: SearchCompaniesCategory;
2133
+ items: Array<SearchCompaniesItem>;
2134
+ paging: SearchCompaniesPaging;
2135
+ hasMore: boolean;
2136
+ /**
2137
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
2138
+ */
2139
+ creditsUsed: number;
2140
+ /**
2141
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
2142
+ */
2143
+ retryAfter: number;
2144
+ };
2145
+
2146
2146
  /** @internal */
2147
2147
  export type CollectLikesRequest$Outbound = {
2148
2148
  postUrl: string;
@@ -2810,1251 +2810,1251 @@ export function collectCommentsResponseFromJSON(
2810
2810
  }
2811
2811
 
2812
2812
  /** @internal */
2813
- export type VisitCompanyRequest$Outbound = {
2814
- companyUrl: string;
2815
- includeWorkplacePolicy?: boolean | undefined;
2813
+ export type CollectCommentRepliesRequest$Outbound = {
2814
+ commentUrn: string;
2815
+ start?: number | undefined;
2816
+ count?: number | undefined;
2816
2817
  };
2817
2818
 
2818
2819
  /** @internal */
2819
- export const VisitCompanyRequest$outboundSchema: z.ZodMiniType<
2820
- VisitCompanyRequest$Outbound,
2821
- VisitCompanyRequest
2820
+ export const CollectCommentRepliesRequest$outboundSchema: z.ZodMiniType<
2821
+ CollectCommentRepliesRequest$Outbound,
2822
+ CollectCommentRepliesRequest
2822
2823
  > = z.object({
2823
- companyUrl: z.string(),
2824
- includeWorkplacePolicy: z.optional(z.boolean()),
2824
+ commentUrn: z.string(),
2825
+ start: z.optional(z.int()),
2826
+ count: z.optional(z.int()),
2825
2827
  });
2826
2828
 
2827
- export function visitCompanyRequestToJSON(
2828
- visitCompanyRequest: VisitCompanyRequest,
2829
+ export function collectCommentRepliesRequestToJSON(
2830
+ collectCommentRepliesRequest: CollectCommentRepliesRequest,
2829
2831
  ): string {
2830
2832
  return JSON.stringify(
2831
- VisitCompanyRequest$outboundSchema.parse(visitCompanyRequest),
2833
+ CollectCommentRepliesRequest$outboundSchema.parse(
2834
+ collectCommentRepliesRequest,
2835
+ ),
2832
2836
  );
2833
2837
  }
2834
2838
 
2835
2839
  /** @internal */
2836
- export const EmployeeCountRange$inboundSchema: z.ZodMiniType<
2837
- EmployeeCountRange,
2840
+ export const CollectCommentRepliesType$inboundSchema: z.ZodMiniEnum<
2841
+ typeof CollectCommentRepliesType
2842
+ > = z.enum(CollectCommentRepliesType);
2843
+
2844
+ /** @internal */
2845
+ export const CollectCommentRepliesActionsCompleted$inboundSchema: z.ZodMiniType<
2846
+ CollectCommentRepliesActionsCompleted,
2838
2847
  unknown
2839
2848
  > = z.object({
2840
- start: types.number(),
2841
- end: types.nullable(types.number()),
2849
+ message: types.boolean(),
2850
+ reply: types.boolean(),
2851
+ like: types.boolean(),
2852
+ visit: types.boolean(),
2853
+ connect: types.boolean(),
2842
2854
  });
2843
2855
 
2844
- export function employeeCountRangeFromJSON(
2856
+ export function collectCommentRepliesActionsCompletedFromJSON(
2845
2857
  jsonString: string,
2846
- ): SafeParseResult<EmployeeCountRange, SDKValidationError> {
2858
+ ): SafeParseResult<CollectCommentRepliesActionsCompleted, SDKValidationError> {
2847
2859
  return safeParse(
2848
2860
  jsonString,
2849
- (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)),
2850
- `Failed to parse 'EmployeeCountRange' from JSON`,
2861
+ (x) =>
2862
+ CollectCommentRepliesActionsCompleted$inboundSchema.parse(JSON.parse(x)),
2863
+ `Failed to parse 'CollectCommentRepliesActionsCompleted' from JSON`,
2851
2864
  );
2852
2865
  }
2853
2866
 
2854
2867
  /** @internal */
2855
- export const VisitCompanyHeadquarter$inboundSchema: z.ZodMiniType<
2856
- VisitCompanyHeadquarter,
2857
- unknown
2858
- > = z.object({
2859
- country: types.nullable(types.string()),
2860
- geographicArea: types.nullable(types.string()),
2861
- city: types.nullable(types.string()),
2862
- postalCode: types.nullable(types.string()),
2863
- line1: types.nullable(types.string()),
2864
- line2: types.nullable(types.string()),
2868
+ export const Reply$inboundSchema: z.ZodMiniType<Reply, unknown> = z.object({
2869
+ name: types.string(),
2870
+ headline: types.nullable(types.string()),
2871
+ profileUrl: types.nullable(types.string()),
2872
+ imageUrl: types.nullable(types.string()),
2873
+ publicIdentifier: types.nullable(types.string()),
2874
+ profileUrn: types.nullable(types.string()),
2875
+ type: CollectCommentRepliesType$inboundSchema,
2876
+ commentText: types.optional(types.string()),
2877
+ timestamp: types.nullable(types.number()),
2878
+ isEdited: types.optional(types.boolean()),
2879
+ commentUrn: types.optional(types.string()),
2880
+ commentHash: types.optional(types.string()),
2881
+ isPostAuthor: types.optional(types.boolean()),
2882
+ repliesCount: types.optional(types.number()),
2883
+ hasReplyFromPostAuthor: z.optional(z.nullable(types.boolean())),
2884
+ parentCommentUrn: types.optional(types.string()),
2885
+ postUrn: types.optional(types.string()),
2886
+ postHash: types.optional(types.string()),
2887
+ actionsCompleted: types.optional(
2888
+ z.lazy(() => CollectCommentRepliesActionsCompleted$inboundSchema),
2889
+ ),
2890
+ knownDistance: types.nullable(types.number()),
2865
2891
  });
2866
2892
 
2867
- export function visitCompanyHeadquarterFromJSON(
2893
+ export function replyFromJSON(
2868
2894
  jsonString: string,
2869
- ): SafeParseResult<VisitCompanyHeadquarter, SDKValidationError> {
2895
+ ): SafeParseResult<Reply, SDKValidationError> {
2870
2896
  return safeParse(
2871
2897
  jsonString,
2872
- (x) => VisitCompanyHeadquarter$inboundSchema.parse(JSON.parse(x)),
2873
- `Failed to parse 'VisitCompanyHeadquarter' from JSON`,
2898
+ (x) => Reply$inboundSchema.parse(JSON.parse(x)),
2899
+ `Failed to parse 'Reply' from JSON`,
2874
2900
  );
2875
2901
  }
2876
2902
 
2877
2903
  /** @internal */
2878
- export const VisitCompanyFoundedOn$inboundSchema: z.ZodMiniType<
2879
- VisitCompanyFoundedOn,
2904
+ export const CollectCommentRepliesResponse$inboundSchema: z.ZodMiniType<
2905
+ CollectCommentRepliesResponse,
2880
2906
  unknown
2881
2907
  > = z.object({
2882
- year: types.number(),
2908
+ success: types.literal(true),
2909
+ replies: z.array(z.lazy(() => Reply$inboundSchema)),
2910
+ count: types.number(),
2911
+ total: types.number(),
2912
+ start: types.number(),
2913
+ hasMore: types.boolean(),
2914
+ parentCommentUrn: types.string(),
2915
+ previousTotal: types.nullable(types.number()),
2916
+ creditsUsed: types.number(),
2917
+ retryAfter: types.number(),
2883
2918
  });
2884
2919
 
2885
- export function visitCompanyFoundedOnFromJSON(
2920
+ export function collectCommentRepliesResponseFromJSON(
2886
2921
  jsonString: string,
2887
- ): SafeParseResult<VisitCompanyFoundedOn, SDKValidationError> {
2922
+ ): SafeParseResult<CollectCommentRepliesResponse, SDKValidationError> {
2888
2923
  return safeParse(
2889
2924
  jsonString,
2890
- (x) => VisitCompanyFoundedOn$inboundSchema.parse(JSON.parse(x)),
2891
- `Failed to parse 'VisitCompanyFoundedOn' from JSON`,
2925
+ (x) => CollectCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)),
2926
+ `Failed to parse 'CollectCommentRepliesResponse' from JSON`,
2892
2927
  );
2893
2928
  }
2894
2929
 
2895
2930
  /** @internal */
2896
- export const CallToAction$inboundSchema: z.ZodMiniType<CallToAction, unknown> =
2897
- z.object({
2898
- type: types.string(),
2899
- url: types.string(),
2900
- });
2901
-
2902
- export function callToActionFromJSON(
2903
- jsonString: string,
2904
- ): SafeParseResult<CallToAction, SDKValidationError> {
2905
- return safeParse(
2906
- jsonString,
2907
- (x) => CallToAction$inboundSchema.parse(JSON.parse(x)),
2908
- `Failed to parse 'CallToAction' from JSON`,
2909
- );
2910
- }
2931
+ export type CollectPostsRequest$Outbound = {
2932
+ profileUrl: string;
2933
+ count?: number | undefined;
2934
+ start?: number | undefined;
2935
+ paginationToken?: string | undefined;
2936
+ };
2911
2937
 
2912
2938
  /** @internal */
2913
- export const AffiliatedCompany$inboundSchema: z.ZodMiniType<
2914
- AffiliatedCompany,
2915
- unknown
2939
+ export const CollectPostsRequest$outboundSchema: z.ZodMiniType<
2940
+ CollectPostsRequest$Outbound,
2941
+ CollectPostsRequest
2916
2942
  > = z.object({
2917
- id: types.string(),
2918
- universalName: types.string(),
2919
- name: types.string(),
2920
- url: types.nullable(types.string()),
2921
- logoUrl: types.nullable(types.string()),
2922
- followerCount: types.nullable(types.number()),
2923
- industry: types.nullable(types.string()),
2943
+ profileUrl: z.string(),
2944
+ count: z.optional(z.int()),
2945
+ start: z.optional(z.int()),
2946
+ paginationToken: z.optional(z.string()),
2924
2947
  });
2925
2948
 
2926
- export function affiliatedCompanyFromJSON(
2927
- jsonString: string,
2928
- ): SafeParseResult<AffiliatedCompany, SDKValidationError> {
2929
- return safeParse(
2930
- jsonString,
2931
- (x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)),
2932
- `Failed to parse 'AffiliatedCompany' from JSON`,
2949
+ export function collectPostsRequestToJSON(
2950
+ collectPostsRequest: CollectPostsRequest,
2951
+ ): string {
2952
+ return JSON.stringify(
2953
+ CollectPostsRequest$outboundSchema.parse(collectPostsRequest),
2933
2954
  );
2934
2955
  }
2935
2956
 
2936
2957
  /** @internal */
2937
- export const SimilarCompany$inboundSchema: z.ZodMiniType<
2938
- SimilarCompany,
2958
+ export const CollectPostsType$inboundSchema: z.ZodMiniType<
2959
+ CollectPostsType,
2960
+ unknown
2961
+ > = openEnums.inboundSchema(CollectPostsType);
2962
+
2963
+ /** @internal */
2964
+ export const CollectPostsMediaType$inboundSchema: z.ZodMiniType<
2965
+ CollectPostsMediaType,
2966
+ unknown
2967
+ > = openEnums.inboundSchema(CollectPostsMediaType);
2968
+
2969
+ /** @internal */
2970
+ export const CollectPostsMedia$inboundSchema: z.ZodMiniType<
2971
+ CollectPostsMedia,
2939
2972
  unknown
2940
2973
  > = z.object({
2941
- id: types.string(),
2942
- universalName: types.string(),
2943
- name: types.string(),
2944
- url: types.nullable(types.string()),
2945
- logoUrl: types.nullable(types.string()),
2946
- followerCount: types.nullable(types.number()),
2947
- industry: types.nullable(types.string()),
2974
+ type: CollectPostsMediaType$inboundSchema,
2975
+ urls: z.array(types.string()),
2976
+ title: types.optional(types.string()),
2977
+ thumbnailUrl: types.optional(types.string()),
2948
2978
  });
2949
2979
 
2950
- export function similarCompanyFromJSON(
2980
+ export function collectPostsMediaFromJSON(
2951
2981
  jsonString: string,
2952
- ): SafeParseResult<SimilarCompany, SDKValidationError> {
2982
+ ): SafeParseResult<CollectPostsMedia, SDKValidationError> {
2953
2983
  return safeParse(
2954
2984
  jsonString,
2955
- (x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)),
2956
- `Failed to parse 'SimilarCompany' from JSON`,
2985
+ (x) => CollectPostsMedia$inboundSchema.parse(JSON.parse(x)),
2986
+ `Failed to parse 'CollectPostsMedia' from JSON`,
2957
2987
  );
2958
2988
  }
2959
2989
 
2960
2990
  /** @internal */
2961
- export const WorkplacePolicy$inboundSchema: z.ZodMiniType<
2962
- WorkplacePolicy,
2991
+ export const CollectPostsPost$inboundSchema: z.ZodMiniType<
2992
+ CollectPostsPost,
2963
2993
  unknown
2964
2994
  > = z.object({
2965
- title: types.nullable(types.string()),
2966
- description: types.nullable(types.string()),
2967
- timeAtOnsite: types.nullable(types.string()),
2968
- benefits: z.array(types.string()),
2995
+ postUrl: types.string(),
2996
+ text: types.string(),
2997
+ date: types.number(),
2998
+ likesCount: types.number(),
2999
+ commentsCount: types.number(),
3000
+ sharesCount: types.number(),
3001
+ postUrn: types.string(),
3002
+ postId: types.string(),
3003
+ type: CollectPostsType$inboundSchema,
3004
+ media: types.optional(z.lazy(() => CollectPostsMedia$inboundSchema)),
2969
3005
  });
2970
3006
 
2971
- export function workplacePolicyFromJSON(
3007
+ export function collectPostsPostFromJSON(
2972
3008
  jsonString: string,
2973
- ): SafeParseResult<WorkplacePolicy, SDKValidationError> {
3009
+ ): SafeParseResult<CollectPostsPost, SDKValidationError> {
2974
3010
  return safeParse(
2975
3011
  jsonString,
2976
- (x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)),
2977
- `Failed to parse 'WorkplacePolicy' from JSON`,
3012
+ (x) => CollectPostsPost$inboundSchema.parse(JSON.parse(x)),
3013
+ `Failed to parse 'CollectPostsPost' from JSON`,
2978
3014
  );
2979
3015
  }
2980
3016
 
2981
3017
  /** @internal */
2982
- export const VisitCompanyResponse$inboundSchema: z.ZodMiniType<
2983
- VisitCompanyResponse,
3018
+ export const CollectPostsResponse$inboundSchema: z.ZodMiniType<
3019
+ CollectPostsResponse,
2984
3020
  unknown
2985
3021
  > = z.object({
2986
3022
  success: types.literal(true),
2987
- id: types.string(),
2988
- universalName: types.string(),
2989
- name: types.string(),
2990
- description: types.nullable(types.string()),
2991
- url: types.string(),
2992
- websiteUrl: types.nullable(types.string()),
2993
- industry: types.nullable(types.string()),
2994
- employeeCount: types.nullable(types.number()),
2995
- employeeCountRange: types.nullable(
2996
- z.lazy(() => EmployeeCountRange$inboundSchema),
2997
- ),
2998
- headquarter: types.nullable(
2999
- z.lazy(() => VisitCompanyHeadquarter$inboundSchema),
3000
- ),
3001
- logoUrl: types.nullable(types.string()),
3002
- coverImageUrl: types.nullable(types.string()),
3003
- followerCount: types.nullable(types.number()),
3004
- specialities: z.array(types.string()),
3005
- tagline: types.nullable(types.string()),
3006
- isVerified: types.boolean(),
3007
- foundedOn: types.nullable(z.lazy(() => VisitCompanyFoundedOn$inboundSchema)),
3008
- phone: types.nullable(types.string()),
3009
- callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
3010
- hashtags: z.array(types.string()),
3011
- affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
3012
- similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
3013
- workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
3023
+ posts: z.array(z.lazy(() => CollectPostsPost$inboundSchema)),
3024
+ count: types.number(),
3025
+ total: types.number(),
3026
+ start: types.number(),
3027
+ hasMore: types.boolean(),
3028
+ paginationToken: types.nullable(types.string()),
3029
+ previousTotal: types.nullable(types.number()),
3014
3030
  creditsUsed: types.number(),
3015
3031
  retryAfter: types.number(),
3016
3032
  });
3017
3033
 
3018
- export function visitCompanyResponseFromJSON(
3034
+ export function collectPostsResponseFromJSON(
3019
3035
  jsonString: string,
3020
- ): SafeParseResult<VisitCompanyResponse, SDKValidationError> {
3036
+ ): SafeParseResult<CollectPostsResponse, SDKValidationError> {
3021
3037
  return safeParse(
3022
3038
  jsonString,
3023
- (x) => VisitCompanyResponse$inboundSchema.parse(JSON.parse(x)),
3024
- `Failed to parse 'VisitCompanyResponse' from JSON`,
3039
+ (x) => CollectPostsResponse$inboundSchema.parse(JSON.parse(x)),
3040
+ `Failed to parse 'CollectPostsResponse' from JSON`,
3025
3041
  );
3026
3042
  }
3027
3043
 
3028
3044
  /** @internal */
3029
- export type ListSavedPostsRequest$Outbound = {
3030
- start: number;
3031
- count: number;
3045
+ export type VisitProfileRequest$Outbound = {
3046
+ profile: string;
3047
+ campaignSlug?: string | undefined;
3048
+ actionSlug?: string | undefined;
3049
+ includePosts?: boolean | undefined;
3050
+ includeComments?: boolean | undefined;
3051
+ includeAbout?: boolean | undefined;
3032
3052
  };
3033
3053
 
3034
3054
  /** @internal */
3035
- export const ListSavedPostsRequest$outboundSchema: z.ZodMiniType<
3036
- ListSavedPostsRequest$Outbound,
3037
- ListSavedPostsRequest
3055
+ export const VisitProfileRequest$outboundSchema: z.ZodMiniType<
3056
+ VisitProfileRequest$Outbound,
3057
+ VisitProfileRequest
3038
3058
  > = z.object({
3039
- start: z._default(z.int(), 0),
3040
- count: z._default(z.int(), 20),
3059
+ profile: z.string(),
3060
+ campaignSlug: z.optional(z.string()),
3061
+ actionSlug: z.optional(z.string()),
3062
+ includePosts: z.optional(z.boolean()),
3063
+ includeComments: z.optional(z.boolean()),
3064
+ includeAbout: z.optional(z.boolean()),
3041
3065
  });
3042
3066
 
3043
- export function listSavedPostsRequestToJSON(
3044
- listSavedPostsRequest: ListSavedPostsRequest,
3067
+ export function visitProfileRequestToJSON(
3068
+ visitProfileRequest: VisitProfileRequest,
3045
3069
  ): string {
3046
3070
  return JSON.stringify(
3047
- ListSavedPostsRequest$outboundSchema.parse(listSavedPostsRequest),
3071
+ VisitProfileRequest$outboundSchema.parse(visitProfileRequest),
3048
3072
  );
3049
3073
  }
3050
3074
 
3051
3075
  /** @internal */
3052
- export const ListSavedPostsAuthor$inboundSchema: z.ZodMiniType<
3053
- ListSavedPostsAuthor,
3076
+ export const PendingConnection$inboundSchema: z.ZodMiniType<
3077
+ PendingConnection,
3078
+ unknown
3079
+ > = openEnums.inboundSchema(PendingConnection);
3080
+
3081
+ /** @internal */
3082
+ export const VisitProfilePositionStartDate$inboundSchema: z.ZodMiniType<
3083
+ VisitProfilePositionStartDate,
3054
3084
  unknown
3055
3085
  > = z.object({
3056
- name: types.string(),
3057
- profileUrl: types.nullable(types.string()),
3058
- publicIdentifier: types.nullable(types.string()),
3059
- profileUrn: types.nullable(types.string()),
3086
+ month: types.nullable(types.number()),
3087
+ year: types.number(),
3060
3088
  });
3061
3089
 
3062
- export function listSavedPostsAuthorFromJSON(
3090
+ export function visitProfilePositionStartDateFromJSON(
3063
3091
  jsonString: string,
3064
- ): SafeParseResult<ListSavedPostsAuthor, SDKValidationError> {
3092
+ ): SafeParseResult<VisitProfilePositionStartDate, SDKValidationError> {
3065
3093
  return safeParse(
3066
3094
  jsonString,
3067
- (x) => ListSavedPostsAuthor$inboundSchema.parse(JSON.parse(x)),
3068
- `Failed to parse 'ListSavedPostsAuthor' from JSON`,
3095
+ (x) => VisitProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)),
3096
+ `Failed to parse 'VisitProfilePositionStartDate' from JSON`,
3069
3097
  );
3070
3098
  }
3071
3099
 
3072
3100
  /** @internal */
3073
- export const ListSavedPostsType$inboundSchema: z.ZodMiniType<
3074
- ListSavedPostsType,
3075
- unknown
3076
- > = openEnums.inboundSchema(ListSavedPostsType);
3077
-
3078
- /** @internal */
3079
- export const ListSavedPostsMedia$inboundSchema: z.ZodMiniType<
3080
- ListSavedPostsMedia,
3101
+ export const VisitProfilePositionEndDate$inboundSchema: z.ZodMiniType<
3102
+ VisitProfilePositionEndDate,
3081
3103
  unknown
3082
3104
  > = z.object({
3083
- type: ListSavedPostsType$inboundSchema,
3084
- urls: z.array(types.string()),
3085
- title: types.optional(types.string()),
3086
- thumbnailUrl: types.optional(types.string()),
3105
+ month: types.nullable(types.number()),
3106
+ year: types.number(),
3087
3107
  });
3088
3108
 
3089
- export function listSavedPostsMediaFromJSON(
3109
+ export function visitProfilePositionEndDateFromJSON(
3090
3110
  jsonString: string,
3091
- ): SafeParseResult<ListSavedPostsMedia, SDKValidationError> {
3111
+ ): SafeParseResult<VisitProfilePositionEndDate, SDKValidationError> {
3092
3112
  return safeParse(
3093
3113
  jsonString,
3094
- (x) => ListSavedPostsMedia$inboundSchema.parse(JSON.parse(x)),
3095
- `Failed to parse 'ListSavedPostsMedia' from JSON`,
3114
+ (x) => VisitProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)),
3115
+ `Failed to parse 'VisitProfilePositionEndDate' from JSON`,
3096
3116
  );
3097
3117
  }
3098
3118
 
3099
3119
  /** @internal */
3100
- export const ListSavedPostsPost$inboundSchema: z.ZodMiniType<
3101
- ListSavedPostsPost,
3120
+ export const VisitProfilePosition$inboundSchema: z.ZodMiniType<
3121
+ VisitProfilePosition,
3102
3122
  unknown
3103
3123
  > = z.object({
3104
- postUrl: types.string(),
3105
- postUrn: types.string(),
3106
- postId: types.string(),
3107
- text: types.string(),
3108
- date: types.number(),
3109
- likesCount: types.number(),
3110
- commentsCount: types.number(),
3111
- sharesCount: types.number(),
3112
- author: z.lazy(() => ListSavedPostsAuthor$inboundSchema),
3113
- media: types.optional(z.lazy(() => ListSavedPostsMedia$inboundSchema)),
3124
+ companyName: types.nullable(types.string()),
3125
+ title: types.nullable(types.string()),
3126
+ description: types.nullable(types.string()),
3127
+ companyUrl: types.nullable(types.string()),
3128
+ companyLogo: types.nullable(types.string()),
3129
+ companyDescription: types.nullable(types.string()),
3130
+ startDate: types.nullable(
3131
+ z.lazy(() => VisitProfilePositionStartDate$inboundSchema),
3132
+ ),
3133
+ endDate: types.nullable(
3134
+ z.lazy(() => VisitProfilePositionEndDate$inboundSchema),
3135
+ ),
3136
+ isCurrent: types.boolean(),
3114
3137
  });
3115
3138
 
3116
- export function listSavedPostsPostFromJSON(
3139
+ export function visitProfilePositionFromJSON(
3117
3140
  jsonString: string,
3118
- ): SafeParseResult<ListSavedPostsPost, SDKValidationError> {
3141
+ ): SafeParseResult<VisitProfilePosition, SDKValidationError> {
3119
3142
  return safeParse(
3120
3143
  jsonString,
3121
- (x) => ListSavedPostsPost$inboundSchema.parse(JSON.parse(x)),
3122
- `Failed to parse 'ListSavedPostsPost' from JSON`,
3144
+ (x) => VisitProfilePosition$inboundSchema.parse(JSON.parse(x)),
3145
+ `Failed to parse 'VisitProfilePosition' from JSON`,
3123
3146
  );
3124
3147
  }
3125
3148
 
3126
3149
  /** @internal */
3127
- export const ListSavedPostsResponse$inboundSchema: z.ZodMiniType<
3128
- ListSavedPostsResponse,
3150
+ export const VisitProfileEducationStartDate$inboundSchema: z.ZodMiniType<
3151
+ VisitProfileEducationStartDate,
3129
3152
  unknown
3130
3153
  > = z.object({
3131
- success: types.literal(true),
3132
- posts: z.array(z.lazy(() => ListSavedPostsPost$inboundSchema)),
3133
- total: types.nullable(types.number()),
3134
- hasMore: types.boolean(),
3135
- creditsUsed: types.number(),
3136
- retryAfter: types.number(),
3154
+ month: types.nullable(types.number()),
3155
+ year: types.number(),
3137
3156
  });
3138
3157
 
3139
- export function listSavedPostsResponseFromJSON(
3158
+ export function visitProfileEducationStartDateFromJSON(
3140
3159
  jsonString: string,
3141
- ): SafeParseResult<ListSavedPostsResponse, SDKValidationError> {
3160
+ ): SafeParseResult<VisitProfileEducationStartDate, SDKValidationError> {
3142
3161
  return safeParse(
3143
3162
  jsonString,
3144
- (x) => ListSavedPostsResponse$inboundSchema.parse(JSON.parse(x)),
3145
- `Failed to parse 'ListSavedPostsResponse' from JSON`,
3163
+ (x) => VisitProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)),
3164
+ `Failed to parse 'VisitProfileEducationStartDate' from JSON`,
3146
3165
  );
3147
3166
  }
3148
3167
 
3149
3168
  /** @internal */
3150
- export type CollectHashtagPostsRequest$Outbound = {
3151
- hashtag: string;
3152
- start: number;
3153
- count: number;
3154
- };
3155
-
3156
- /** @internal */
3157
- export const CollectHashtagPostsRequest$outboundSchema: z.ZodMiniType<
3158
- CollectHashtagPostsRequest$Outbound,
3159
- CollectHashtagPostsRequest
3169
+ export const VisitProfileEducationEndDate$inboundSchema: z.ZodMiniType<
3170
+ VisitProfileEducationEndDate,
3171
+ unknown
3160
3172
  > = z.object({
3161
- hashtag: z.string(),
3162
- start: z._default(z.int(), 0),
3163
- count: z._default(z.int(), 20),
3173
+ month: types.nullable(types.number()),
3174
+ year: types.number(),
3164
3175
  });
3165
3176
 
3166
- export function collectHashtagPostsRequestToJSON(
3167
- collectHashtagPostsRequest: CollectHashtagPostsRequest,
3168
- ): string {
3169
- return JSON.stringify(
3170
- CollectHashtagPostsRequest$outboundSchema.parse(collectHashtagPostsRequest),
3177
+ export function visitProfileEducationEndDateFromJSON(
3178
+ jsonString: string,
3179
+ ): SafeParseResult<VisitProfileEducationEndDate, SDKValidationError> {
3180
+ return safeParse(
3181
+ jsonString,
3182
+ (x) => VisitProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)),
3183
+ `Failed to parse 'VisitProfileEducationEndDate' from JSON`,
3171
3184
  );
3172
3185
  }
3173
3186
 
3174
3187
  /** @internal */
3175
- export const CollectHashtagPostsAuthor$inboundSchema: z.ZodMiniType<
3176
- CollectHashtagPostsAuthor,
3188
+ export const VisitProfileEducation$inboundSchema: z.ZodMiniType<
3189
+ VisitProfileEducation,
3177
3190
  unknown
3178
3191
  > = z.object({
3179
- name: types.string(),
3180
- profileUrl: types.nullable(types.string()),
3181
- publicIdentifier: types.nullable(types.string()),
3182
- profileUrn: types.nullable(types.string()),
3192
+ schoolName: types.nullable(types.string()),
3193
+ degreeName: types.nullable(types.string()),
3194
+ fieldOfStudy: types.nullable(types.string()),
3195
+ schoolUrl: types.nullable(types.string()),
3196
+ schoolLogo: types.nullable(types.string()),
3197
+ startDate: types.nullable(
3198
+ z.lazy(() => VisitProfileEducationStartDate$inboundSchema),
3199
+ ),
3200
+ endDate: types.nullable(
3201
+ z.lazy(() => VisitProfileEducationEndDate$inboundSchema),
3202
+ ),
3183
3203
  });
3184
3204
 
3185
- export function collectHashtagPostsAuthorFromJSON(
3205
+ export function visitProfileEducationFromJSON(
3186
3206
  jsonString: string,
3187
- ): SafeParseResult<CollectHashtagPostsAuthor, SDKValidationError> {
3207
+ ): SafeParseResult<VisitProfileEducation, SDKValidationError> {
3188
3208
  return safeParse(
3189
3209
  jsonString,
3190
- (x) => CollectHashtagPostsAuthor$inboundSchema.parse(JSON.parse(x)),
3191
- `Failed to parse 'CollectHashtagPostsAuthor' from JSON`,
3210
+ (x) => VisitProfileEducation$inboundSchema.parse(JSON.parse(x)),
3211
+ `Failed to parse 'VisitProfileEducation' from JSON`,
3192
3212
  );
3193
3213
  }
3194
3214
 
3195
3215
  /** @internal */
3196
- export const CollectHashtagPostsType$inboundSchema: z.ZodMiniType<
3197
- CollectHashtagPostsType,
3216
+ export const VisitProfileLastPostType$inboundSchema: z.ZodMiniType<
3217
+ VisitProfileLastPostType,
3198
3218
  unknown
3199
- > = openEnums.inboundSchema(CollectHashtagPostsType);
3219
+ > = openEnums.inboundSchema(VisitProfileLastPostType);
3200
3220
 
3201
3221
  /** @internal */
3202
- export const CollectHashtagPostsMedia$inboundSchema: z.ZodMiniType<
3203
- CollectHashtagPostsMedia,
3222
+ export const VisitProfileMediaType$inboundSchema: z.ZodMiniType<
3223
+ VisitProfileMediaType,
3224
+ unknown
3225
+ > = openEnums.inboundSchema(VisitProfileMediaType);
3226
+
3227
+ /** @internal */
3228
+ export const VisitProfileMedia$inboundSchema: z.ZodMiniType<
3229
+ VisitProfileMedia,
3204
3230
  unknown
3205
3231
  > = z.object({
3206
- type: CollectHashtagPostsType$inboundSchema,
3232
+ type: VisitProfileMediaType$inboundSchema,
3207
3233
  urls: z.array(types.string()),
3208
3234
  title: types.optional(types.string()),
3209
3235
  thumbnailUrl: types.optional(types.string()),
3210
3236
  });
3211
3237
 
3212
- export function collectHashtagPostsMediaFromJSON(
3238
+ export function visitProfileMediaFromJSON(
3213
3239
  jsonString: string,
3214
- ): SafeParseResult<CollectHashtagPostsMedia, SDKValidationError> {
3240
+ ): SafeParseResult<VisitProfileMedia, SDKValidationError> {
3215
3241
  return safeParse(
3216
3242
  jsonString,
3217
- (x) => CollectHashtagPostsMedia$inboundSchema.parse(JSON.parse(x)),
3218
- `Failed to parse 'CollectHashtagPostsMedia' from JSON`,
3243
+ (x) => VisitProfileMedia$inboundSchema.parse(JSON.parse(x)),
3244
+ `Failed to parse 'VisitProfileMedia' from JSON`,
3219
3245
  );
3220
3246
  }
3221
3247
 
3222
3248
  /** @internal */
3223
- export const CollectHashtagPostsPost$inboundSchema: z.ZodMiniType<
3224
- CollectHashtagPostsPost,
3249
+ export const VisitProfileLastPost$inboundSchema: z.ZodMiniType<
3250
+ VisitProfileLastPost,
3225
3251
  unknown
3226
3252
  > = z.object({
3227
3253
  postUrl: types.string(),
3228
- postUrn: types.string(),
3229
3254
  text: types.string(),
3230
3255
  date: types.number(),
3231
3256
  likesCount: types.number(),
3232
3257
  commentsCount: types.number(),
3233
3258
  sharesCount: types.number(),
3234
- author: z.lazy(() => CollectHashtagPostsAuthor$inboundSchema),
3235
- media: types.optional(z.lazy(() => CollectHashtagPostsMedia$inboundSchema)),
3259
+ postUrn: types.string(),
3260
+ postId: types.string(),
3261
+ type: VisitProfileLastPostType$inboundSchema,
3262
+ media: types.optional(z.lazy(() => VisitProfileMedia$inboundSchema)),
3236
3263
  });
3237
3264
 
3238
- export function collectHashtagPostsPostFromJSON(
3265
+ export function visitProfileLastPostFromJSON(
3239
3266
  jsonString: string,
3240
- ): SafeParseResult<CollectHashtagPostsPost, SDKValidationError> {
3267
+ ): SafeParseResult<VisitProfileLastPost, SDKValidationError> {
3241
3268
  return safeParse(
3242
3269
  jsonString,
3243
- (x) => CollectHashtagPostsPost$inboundSchema.parse(JSON.parse(x)),
3244
- `Failed to parse 'CollectHashtagPostsPost' from JSON`,
3270
+ (x) => VisitProfileLastPost$inboundSchema.parse(JSON.parse(x)),
3271
+ `Failed to parse 'VisitProfileLastPost' from JSON`,
3245
3272
  );
3246
3273
  }
3247
3274
 
3248
3275
  /** @internal */
3249
- export const CollectHashtagPostsResponse$inboundSchema: z.ZodMiniType<
3250
- CollectHashtagPostsResponse,
3276
+ export const LastCommentType$inboundSchema: z.ZodMiniType<
3277
+ LastCommentType,
3251
3278
  unknown
3252
- > = z.object({
3253
- success: types.literal(true),
3254
- posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
3255
- total: types.number(),
3256
- hasMore: types.boolean(),
3257
- creditsUsed: types.number(),
3258
- retryAfter: types.number(),
3259
- });
3260
-
3261
- export function collectHashtagPostsResponseFromJSON(
3262
- jsonString: string,
3263
- ): SafeParseResult<CollectHashtagPostsResponse, SDKValidationError> {
3264
- return safeParse(
3265
- jsonString,
3266
- (x) => CollectHashtagPostsResponse$inboundSchema.parse(JSON.parse(x)),
3267
- `Failed to parse 'CollectHashtagPostsResponse' from JSON`,
3268
- );
3269
- }
3270
-
3271
- /** @internal */
3272
- export type CollectCommentRepliesRequest$Outbound = {
3273
- commentUrn: string;
3274
- start?: number | undefined;
3275
- count?: number | undefined;
3276
- };
3277
-
3278
- /** @internal */
3279
- export const CollectCommentRepliesRequest$outboundSchema: z.ZodMiniType<
3280
- CollectCommentRepliesRequest$Outbound,
3281
- CollectCommentRepliesRequest
3282
- > = z.object({
3283
- commentUrn: z.string(),
3284
- start: z.optional(z.int()),
3285
- count: z.optional(z.int()),
3286
- });
3287
-
3288
- export function collectCommentRepliesRequestToJSON(
3289
- collectCommentRepliesRequest: CollectCommentRepliesRequest,
3290
- ): string {
3291
- return JSON.stringify(
3292
- CollectCommentRepliesRequest$outboundSchema.parse(
3293
- collectCommentRepliesRequest,
3294
- ),
3295
- );
3296
- }
3297
-
3298
- /** @internal */
3299
- export const CollectCommentRepliesType$inboundSchema: z.ZodMiniEnum<
3300
- typeof CollectCommentRepliesType
3301
- > = z.enum(CollectCommentRepliesType);
3279
+ > = openEnums.inboundSchema(LastCommentType);
3302
3280
 
3303
3281
  /** @internal */
3304
- export const CollectCommentRepliesActionsCompleted$inboundSchema: z.ZodMiniType<
3305
- CollectCommentRepliesActionsCompleted,
3306
- unknown
3307
- > = z.object({
3308
- message: types.boolean(),
3309
- reply: types.boolean(),
3310
- like: types.boolean(),
3311
- visit: types.boolean(),
3312
- connect: types.boolean(),
3313
- });
3282
+ export const LastComment$inboundSchema: z.ZodMiniType<LastComment, unknown> = z
3283
+ .object({
3284
+ type: LastCommentType$inboundSchema,
3285
+ activityUrn: types.string(),
3286
+ text: types.nullable(types.string()),
3287
+ reactionType: types.nullable(types.string()),
3288
+ targetPostUrn: types.nullable(types.string()),
3289
+ targetPostText: types.nullable(types.string()),
3290
+ targetPostAuthor: types.nullable(types.string()),
3291
+ timestamp: types.nullable(types.number()),
3292
+ actorName: types.nullable(types.string()),
3293
+ actorUrn: types.nullable(types.string()),
3294
+ });
3314
3295
 
3315
- export function collectCommentRepliesActionsCompletedFromJSON(
3296
+ export function lastCommentFromJSON(
3316
3297
  jsonString: string,
3317
- ): SafeParseResult<CollectCommentRepliesActionsCompleted, SDKValidationError> {
3298
+ ): SafeParseResult<LastComment, SDKValidationError> {
3318
3299
  return safeParse(
3319
3300
  jsonString,
3320
- (x) =>
3321
- CollectCommentRepliesActionsCompleted$inboundSchema.parse(JSON.parse(x)),
3322
- `Failed to parse 'CollectCommentRepliesActionsCompleted' from JSON`,
3301
+ (x) => LastComment$inboundSchema.parse(JSON.parse(x)),
3302
+ `Failed to parse 'LastComment' from JSON`,
3323
3303
  );
3324
3304
  }
3325
3305
 
3326
3306
  /** @internal */
3327
- export const Reply$inboundSchema: z.ZodMiniType<Reply, unknown> = z.object({
3328
- name: types.string(),
3307
+ export const VisitProfileResponse$inboundSchema: z.ZodMiniType<
3308
+ VisitProfileResponse,
3309
+ unknown
3310
+ > = z.object({
3311
+ success: types.literal(true),
3312
+ firstName: types.string(),
3313
+ lastName: types.string(),
3329
3314
  headline: types.nullable(types.string()),
3315
+ summary: types.nullable(types.string()),
3316
+ publicIdentifier: types.string(),
3330
3317
  profileUrl: types.nullable(types.string()),
3331
- imageUrl: types.nullable(types.string()),
3332
- publicIdentifier: types.nullable(types.string()),
3333
3318
  profileUrn: types.nullable(types.string()),
3334
- type: CollectCommentRepliesType$inboundSchema,
3335
- commentText: types.optional(types.string()),
3336
- timestamp: types.nullable(types.number()),
3337
- isEdited: types.optional(types.boolean()),
3338
- commentUrn: types.optional(types.string()),
3339
- commentHash: types.optional(types.string()),
3340
- isPostAuthor: types.optional(types.boolean()),
3341
- repliesCount: types.optional(types.number()),
3342
- hasReplyFromPostAuthor: z.optional(z.nullable(types.boolean())),
3343
- parentCommentUrn: types.optional(types.string()),
3344
- postUrn: types.optional(types.string()),
3345
- postHash: types.optional(types.string()),
3346
- actionsCompleted: types.optional(
3347
- z.lazy(() => CollectCommentRepliesActionsCompleted$inboundSchema),
3319
+ imageUrl: types.nullable(types.string()),
3320
+ email: types.nullable(types.string()),
3321
+ location: types.nullable(types.string()),
3322
+ company: types.nullable(types.string()),
3323
+ position: types.nullable(types.string()),
3324
+ memberDistance: types.nullable(types.number()),
3325
+ connectionsCount: types.nullable(types.number()),
3326
+ isVerified: types.boolean(),
3327
+ pendingConnection: PendingConnection$inboundSchema,
3328
+ positions: types.optional(
3329
+ z.array(z.lazy(() => VisitProfilePosition$inboundSchema)),
3348
3330
  ),
3349
- knownDistance: types.nullable(types.number()),
3331
+ educations: types.optional(
3332
+ z.array(z.lazy(() => VisitProfileEducation$inboundSchema)),
3333
+ ),
3334
+ lastPosts: types.optional(
3335
+ z.array(z.lazy(() => VisitProfileLastPost$inboundSchema)),
3336
+ ),
3337
+ lastComments: types.optional(
3338
+ z.array(z.lazy(() => LastComment$inboundSchema)),
3339
+ ),
3340
+ aboutFetched: types.optional(types.boolean()),
3341
+ cached: types.boolean(),
3342
+ creditsUsed: types.number(),
3343
+ retryAfter: types.number(),
3350
3344
  });
3351
3345
 
3352
- export function replyFromJSON(
3346
+ export function visitProfileResponseFromJSON(
3353
3347
  jsonString: string,
3354
- ): SafeParseResult<Reply, SDKValidationError> {
3348
+ ): SafeParseResult<VisitProfileResponse, SDKValidationError> {
3355
3349
  return safeParse(
3356
3350
  jsonString,
3357
- (x) => Reply$inboundSchema.parse(JSON.parse(x)),
3358
- `Failed to parse 'Reply' from JSON`,
3351
+ (x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)),
3352
+ `Failed to parse 'VisitProfileResponse' from JSON`,
3359
3353
  );
3360
3354
  }
3361
3355
 
3362
3356
  /** @internal */
3363
- export const CollectCommentRepliesResponse$inboundSchema: z.ZodMiniType<
3364
- CollectCommentRepliesResponse,
3357
+ export type BulkVisitProfileRequest$Outbound = {
3358
+ profiles: Array<string>;
3359
+ campaignSlug?: string | undefined;
3360
+ includePosts?: boolean | undefined;
3361
+ includeComments?: boolean | undefined;
3362
+ includeAbout?: boolean | undefined;
3363
+ };
3364
+
3365
+ /** @internal */
3366
+ export const BulkVisitProfileRequest$outboundSchema: z.ZodMiniType<
3367
+ BulkVisitProfileRequest$Outbound,
3368
+ BulkVisitProfileRequest
3369
+ > = z.object({
3370
+ profiles: z.array(z.string()),
3371
+ campaignSlug: z.optional(z.string()),
3372
+ includePosts: z.optional(z.boolean()),
3373
+ includeComments: z.optional(z.boolean()),
3374
+ includeAbout: z.optional(z.boolean()),
3375
+ });
3376
+
3377
+ export function bulkVisitProfileRequestToJSON(
3378
+ bulkVisitProfileRequest: BulkVisitProfileRequest,
3379
+ ): string {
3380
+ return JSON.stringify(
3381
+ BulkVisitProfileRequest$outboundSchema.parse(bulkVisitProfileRequest),
3382
+ );
3383
+ }
3384
+
3385
+ /** @internal */
3386
+ export const BulkVisitProfileResponse$inboundSchema: z.ZodMiniType<
3387
+ BulkVisitProfileResponse,
3365
3388
  unknown
3366
3389
  > = z.object({
3367
- success: types.literal(true),
3368
- replies: z.array(z.lazy(() => Reply$inboundSchema)),
3369
- count: types.number(),
3370
- total: types.number(),
3371
- start: types.number(),
3372
- hasMore: types.boolean(),
3373
- parentCommentUrn: types.string(),
3374
- previousTotal: types.nullable(types.number()),
3375
- creditsUsed: types.number(),
3376
- retryAfter: types.number(),
3390
+ accepted: types.literal(true),
3391
+ batchId: types.string(),
3392
+ profileCount: types.number(),
3393
+ alreadyCached: types.number(),
3394
+ willVisit: types.number(),
3395
+ estimatedMinutes: types.number(),
3377
3396
  });
3378
3397
 
3379
- export function collectCommentRepliesResponseFromJSON(
3398
+ export function bulkVisitProfileResponseFromJSON(
3380
3399
  jsonString: string,
3381
- ): SafeParseResult<CollectCommentRepliesResponse, SDKValidationError> {
3400
+ ): SafeParseResult<BulkVisitProfileResponse, SDKValidationError> {
3382
3401
  return safeParse(
3383
3402
  jsonString,
3384
- (x) => CollectCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)),
3385
- `Failed to parse 'CollectCommentRepliesResponse' from JSON`,
3403
+ (x) => BulkVisitProfileResponse$inboundSchema.parse(JSON.parse(x)),
3404
+ `Failed to parse 'BulkVisitProfileResponse' from JSON`,
3386
3405
  );
3387
3406
  }
3388
3407
 
3389
3408
  /** @internal */
3390
- export const SortOrder$outboundSchema: z.ZodMiniEnum<typeof SortOrder> = z.enum(
3391
- SortOrder,
3392
- );
3393
-
3394
- /** @internal */
3395
- export type GetFeedRequest$Outbound = {
3396
- count: number;
3397
- sortOrder: string;
3409
+ export type BulkVisitBatchStatusRequest$Outbound = {
3410
+ batchId: string;
3398
3411
  };
3399
3412
 
3400
3413
  /** @internal */
3401
- export const GetFeedRequest$outboundSchema: z.ZodMiniType<
3402
- GetFeedRequest$Outbound,
3403
- GetFeedRequest
3414
+ export const BulkVisitBatchStatusRequest$outboundSchema: z.ZodMiniType<
3415
+ BulkVisitBatchStatusRequest$Outbound,
3416
+ BulkVisitBatchStatusRequest
3404
3417
  > = z.object({
3405
- count: z._default(z.int(), 20),
3406
- sortOrder: z._default(SortOrder$outboundSchema, "RELEVANCE"),
3418
+ batchId: z.string(),
3407
3419
  });
3408
3420
 
3409
- export function getFeedRequestToJSON(getFeedRequest: GetFeedRequest): string {
3410
- return JSON.stringify(GetFeedRequest$outboundSchema.parse(getFeedRequest));
3421
+ export function bulkVisitBatchStatusRequestToJSON(
3422
+ bulkVisitBatchStatusRequest: BulkVisitBatchStatusRequest,
3423
+ ): string {
3424
+ return JSON.stringify(
3425
+ BulkVisitBatchStatusRequest$outboundSchema.parse(
3426
+ bulkVisitBatchStatusRequest,
3427
+ ),
3428
+ );
3411
3429
  }
3412
3430
 
3413
3431
  /** @internal */
3414
- export const GetFeedType$inboundSchema: z.ZodMiniType<GetFeedType, unknown> =
3415
- openEnums.inboundSchema(GetFeedType);
3416
-
3417
- /** @internal */
3418
- export const GetFeedMediaType$inboundSchema: z.ZodMiniType<
3419
- GetFeedMediaType,
3432
+ export const BulkVisitBatchStatusStatus$inboundSchema: z.ZodMiniType<
3433
+ BulkVisitBatchStatusStatus,
3420
3434
  unknown
3421
- > = openEnums.inboundSchema(GetFeedMediaType);
3435
+ > = openEnums.inboundSchema(BulkVisitBatchStatusStatus);
3422
3436
 
3423
3437
  /** @internal */
3424
- export const GetFeedMedia$inboundSchema: z.ZodMiniType<GetFeedMedia, unknown> =
3425
- z.object({
3426
- type: GetFeedMediaType$inboundSchema,
3427
- urls: z.array(types.string()),
3428
- title: types.optional(types.string()),
3429
- thumbnailUrl: types.optional(types.string()),
3438
+ export const Progress$inboundSchema: z.ZodMiniType<Progress, unknown> = z
3439
+ .object({
3440
+ total: types.number(),
3441
+ visited: types.number(),
3442
+ cached: types.number(),
3443
+ failed: types.number(),
3444
+ skipped: types.number(),
3445
+ pending: types.number(),
3430
3446
  });
3431
3447
 
3432
- export function getFeedMediaFromJSON(
3448
+ export function progressFromJSON(
3433
3449
  jsonString: string,
3434
- ): SafeParseResult<GetFeedMedia, SDKValidationError> {
3450
+ ): SafeParseResult<Progress, SDKValidationError> {
3435
3451
  return safeParse(
3436
3452
  jsonString,
3437
- (x) => GetFeedMedia$inboundSchema.parse(JSON.parse(x)),
3438
- `Failed to parse 'GetFeedMedia' from JSON`,
3453
+ (x) => Progress$inboundSchema.parse(JSON.parse(x)),
3454
+ `Failed to parse 'Progress' from JSON`,
3439
3455
  );
3440
3456
  }
3441
3457
 
3442
3458
  /** @internal */
3443
- export const GetFeedPost$inboundSchema: z.ZodMiniType<GetFeedPost, unknown> = z
3444
- .object({
3445
- postUrl: types.string(),
3446
- text: types.string(),
3447
- date: types.number(),
3448
- likesCount: types.number(),
3449
- commentsCount: types.number(),
3450
- sharesCount: types.number(),
3451
- postUrn: types.string(),
3452
- postId: types.string(),
3453
- type: GetFeedType$inboundSchema,
3454
- media: types.optional(z.lazy(() => GetFeedMedia$inboundSchema)),
3455
- });
3459
+ export const ResultStatus$inboundSchema: z.ZodMiniType<ResultStatus, unknown> =
3460
+ openEnums.inboundSchema(ResultStatus);
3456
3461
 
3457
- export function getFeedPostFromJSON(
3462
+ /** @internal */
3463
+ export const Result$inboundSchema: z.ZodMiniType<Result, unknown> = z.object({
3464
+ profile: types.string(),
3465
+ status: ResultStatus$inboundSchema,
3466
+ contactId: z.optional(z.nullable(types.string())),
3467
+ error: z.optional(z.nullable(types.string())),
3468
+ });
3469
+
3470
+ export function resultFromJSON(
3458
3471
  jsonString: string,
3459
- ): SafeParseResult<GetFeedPost, SDKValidationError> {
3472
+ ): SafeParseResult<Result, SDKValidationError> {
3460
3473
  return safeParse(
3461
3474
  jsonString,
3462
- (x) => GetFeedPost$inboundSchema.parse(JSON.parse(x)),
3463
- `Failed to parse 'GetFeedPost' from JSON`,
3475
+ (x) => Result$inboundSchema.parse(JSON.parse(x)),
3476
+ `Failed to parse 'Result' from JSON`,
3464
3477
  );
3465
3478
  }
3466
3479
 
3467
3480
  /** @internal */
3468
- export const GetFeedResponse$inboundSchema: z.ZodMiniType<
3469
- GetFeedResponse,
3481
+ export const BulkVisitBatchStatusResponse$inboundSchema: z.ZodMiniType<
3482
+ BulkVisitBatchStatusResponse,
3470
3483
  unknown
3471
3484
  > = z.object({
3472
- success: types.literal(true),
3473
- posts: z.array(z.lazy(() => GetFeedPost$inboundSchema)),
3485
+ batchId: types.string(),
3486
+ status: BulkVisitBatchStatusStatus$inboundSchema,
3487
+ progress: z.lazy(() => Progress$inboundSchema),
3474
3488
  creditsUsed: types.number(),
3475
- retryAfter: types.number(),
3489
+ failureReason: z.optional(z.nullable(types.string())),
3490
+ results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
3476
3491
  });
3477
3492
 
3478
- export function getFeedResponseFromJSON(
3493
+ export function bulkVisitBatchStatusResponseFromJSON(
3479
3494
  jsonString: string,
3480
- ): SafeParseResult<GetFeedResponse, SDKValidationError> {
3495
+ ): SafeParseResult<BulkVisitBatchStatusResponse, SDKValidationError> {
3481
3496
  return safeParse(
3482
3497
  jsonString,
3483
- (x) => GetFeedResponse$inboundSchema.parse(JSON.parse(x)),
3484
- `Failed to parse 'GetFeedResponse' from JSON`,
3498
+ (x) => BulkVisitBatchStatusResponse$inboundSchema.parse(JSON.parse(x)),
3499
+ `Failed to parse 'BulkVisitBatchStatusResponse' from JSON`,
3485
3500
  );
3486
3501
  }
3487
3502
 
3488
3503
  /** @internal */
3489
- export type CollectPostsRequest$Outbound = {
3490
- profileUrl: string;
3491
- count?: number | undefined;
3492
- start?: number | undefined;
3493
- paginationToken?: string | undefined;
3504
+ export type VisitCompanyRequest$Outbound = {
3505
+ companyUrl: string;
3506
+ includeWorkplacePolicy?: boolean | undefined;
3494
3507
  };
3495
3508
 
3496
3509
  /** @internal */
3497
- export const CollectPostsRequest$outboundSchema: z.ZodMiniType<
3498
- CollectPostsRequest$Outbound,
3499
- CollectPostsRequest
3510
+ export const VisitCompanyRequest$outboundSchema: z.ZodMiniType<
3511
+ VisitCompanyRequest$Outbound,
3512
+ VisitCompanyRequest
3500
3513
  > = z.object({
3501
- profileUrl: z.string(),
3502
- count: z.optional(z.int()),
3503
- start: z.optional(z.int()),
3504
- paginationToken: z.optional(z.string()),
3514
+ companyUrl: z.string(),
3515
+ includeWorkplacePolicy: z.optional(z.boolean()),
3505
3516
  });
3506
3517
 
3507
- export function collectPostsRequestToJSON(
3508
- collectPostsRequest: CollectPostsRequest,
3518
+ export function visitCompanyRequestToJSON(
3519
+ visitCompanyRequest: VisitCompanyRequest,
3509
3520
  ): string {
3510
3521
  return JSON.stringify(
3511
- CollectPostsRequest$outboundSchema.parse(collectPostsRequest),
3522
+ VisitCompanyRequest$outboundSchema.parse(visitCompanyRequest),
3512
3523
  );
3513
3524
  }
3514
3525
 
3515
3526
  /** @internal */
3516
- export const CollectPostsType$inboundSchema: z.ZodMiniType<
3517
- CollectPostsType,
3518
- unknown
3519
- > = openEnums.inboundSchema(CollectPostsType);
3520
-
3521
- /** @internal */
3522
- export const CollectPostsMediaType$inboundSchema: z.ZodMiniType<
3523
- CollectPostsMediaType,
3524
- unknown
3525
- > = openEnums.inboundSchema(CollectPostsMediaType);
3526
-
3527
- /** @internal */
3528
- export const CollectPostsMedia$inboundSchema: z.ZodMiniType<
3529
- CollectPostsMedia,
3527
+ export const EmployeeCountRange$inboundSchema: z.ZodMiniType<
3528
+ EmployeeCountRange,
3530
3529
  unknown
3531
3530
  > = z.object({
3532
- type: CollectPostsMediaType$inboundSchema,
3533
- urls: z.array(types.string()),
3534
- title: types.optional(types.string()),
3535
- thumbnailUrl: types.optional(types.string()),
3531
+ start: types.number(),
3532
+ end: types.nullable(types.number()),
3536
3533
  });
3537
3534
 
3538
- export function collectPostsMediaFromJSON(
3535
+ export function employeeCountRangeFromJSON(
3539
3536
  jsonString: string,
3540
- ): SafeParseResult<CollectPostsMedia, SDKValidationError> {
3537
+ ): SafeParseResult<EmployeeCountRange, SDKValidationError> {
3541
3538
  return safeParse(
3542
3539
  jsonString,
3543
- (x) => CollectPostsMedia$inboundSchema.parse(JSON.parse(x)),
3544
- `Failed to parse 'CollectPostsMedia' from JSON`,
3540
+ (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)),
3541
+ `Failed to parse 'EmployeeCountRange' from JSON`,
3545
3542
  );
3546
3543
  }
3547
3544
 
3548
3545
  /** @internal */
3549
- export const CollectPostsPost$inboundSchema: z.ZodMiniType<
3550
- CollectPostsPost,
3546
+ export const VisitCompanyHeadquarter$inboundSchema: z.ZodMiniType<
3547
+ VisitCompanyHeadquarter,
3551
3548
  unknown
3552
3549
  > = z.object({
3553
- postUrl: types.string(),
3554
- text: types.string(),
3555
- date: types.number(),
3556
- likesCount: types.number(),
3557
- commentsCount: types.number(),
3558
- sharesCount: types.number(),
3559
- postUrn: types.string(),
3560
- postId: types.string(),
3561
- type: CollectPostsType$inboundSchema,
3562
- media: types.optional(z.lazy(() => CollectPostsMedia$inboundSchema)),
3550
+ country: types.nullable(types.string()),
3551
+ geographicArea: types.nullable(types.string()),
3552
+ city: types.nullable(types.string()),
3553
+ postalCode: types.nullable(types.string()),
3554
+ line1: types.nullable(types.string()),
3555
+ line2: types.nullable(types.string()),
3563
3556
  });
3564
3557
 
3565
- export function collectPostsPostFromJSON(
3558
+ export function visitCompanyHeadquarterFromJSON(
3566
3559
  jsonString: string,
3567
- ): SafeParseResult<CollectPostsPost, SDKValidationError> {
3560
+ ): SafeParseResult<VisitCompanyHeadquarter, SDKValidationError> {
3568
3561
  return safeParse(
3569
3562
  jsonString,
3570
- (x) => CollectPostsPost$inboundSchema.parse(JSON.parse(x)),
3571
- `Failed to parse 'CollectPostsPost' from JSON`,
3563
+ (x) => VisitCompanyHeadquarter$inboundSchema.parse(JSON.parse(x)),
3564
+ `Failed to parse 'VisitCompanyHeadquarter' from JSON`,
3572
3565
  );
3573
3566
  }
3574
3567
 
3575
3568
  /** @internal */
3576
- export const CollectPostsResponse$inboundSchema: z.ZodMiniType<
3577
- CollectPostsResponse,
3569
+ export const VisitCompanyFoundedOn$inboundSchema: z.ZodMiniType<
3570
+ VisitCompanyFoundedOn,
3578
3571
  unknown
3579
3572
  > = z.object({
3580
- success: types.literal(true),
3581
- posts: z.array(z.lazy(() => CollectPostsPost$inboundSchema)),
3582
- count: types.number(),
3583
- total: types.number(),
3584
- start: types.number(),
3585
- hasMore: types.boolean(),
3586
- paginationToken: types.nullable(types.string()),
3587
- previousTotal: types.nullable(types.number()),
3588
- creditsUsed: types.number(),
3589
- retryAfter: types.number(),
3573
+ year: types.number(),
3590
3574
  });
3591
3575
 
3592
- export function collectPostsResponseFromJSON(
3576
+ export function visitCompanyFoundedOnFromJSON(
3593
3577
  jsonString: string,
3594
- ): SafeParseResult<CollectPostsResponse, SDKValidationError> {
3578
+ ): SafeParseResult<VisitCompanyFoundedOn, SDKValidationError> {
3595
3579
  return safeParse(
3596
3580
  jsonString,
3597
- (x) => CollectPostsResponse$inboundSchema.parse(JSON.parse(x)),
3598
- `Failed to parse 'CollectPostsResponse' from JSON`,
3581
+ (x) => VisitCompanyFoundedOn$inboundSchema.parse(JSON.parse(x)),
3582
+ `Failed to parse 'VisitCompanyFoundedOn' from JSON`,
3599
3583
  );
3600
3584
  }
3601
3585
 
3602
3586
  /** @internal */
3603
- export type VisitProfileRequest$Outbound = {
3604
- profile: string;
3605
- campaignSlug?: string | undefined;
3606
- actionSlug?: string | undefined;
3607
- includePosts?: boolean | undefined;
3608
- includeComments?: boolean | undefined;
3609
- includeAbout?: boolean | undefined;
3610
- };
3587
+ export const CallToAction$inboundSchema: z.ZodMiniType<CallToAction, unknown> =
3588
+ z.object({
3589
+ type: types.string(),
3590
+ url: types.string(),
3591
+ });
3592
+
3593
+ export function callToActionFromJSON(
3594
+ jsonString: string,
3595
+ ): SafeParseResult<CallToAction, SDKValidationError> {
3596
+ return safeParse(
3597
+ jsonString,
3598
+ (x) => CallToAction$inboundSchema.parse(JSON.parse(x)),
3599
+ `Failed to parse 'CallToAction' from JSON`,
3600
+ );
3601
+ }
3611
3602
 
3612
3603
  /** @internal */
3613
- export const VisitProfileRequest$outboundSchema: z.ZodMiniType<
3614
- VisitProfileRequest$Outbound,
3615
- VisitProfileRequest
3604
+ export const AffiliatedCompany$inboundSchema: z.ZodMiniType<
3605
+ AffiliatedCompany,
3606
+ unknown
3616
3607
  > = z.object({
3617
- profile: z.string(),
3618
- campaignSlug: z.optional(z.string()),
3619
- actionSlug: z.optional(z.string()),
3620
- includePosts: z.optional(z.boolean()),
3621
- includeComments: z.optional(z.boolean()),
3622
- includeAbout: z.optional(z.boolean()),
3608
+ id: types.string(),
3609
+ universalName: types.string(),
3610
+ name: types.string(),
3611
+ url: types.nullable(types.string()),
3612
+ logoUrl: types.nullable(types.string()),
3613
+ followerCount: types.nullable(types.number()),
3614
+ industry: types.nullable(types.string()),
3623
3615
  });
3624
3616
 
3625
- export function visitProfileRequestToJSON(
3626
- visitProfileRequest: VisitProfileRequest,
3627
- ): string {
3628
- return JSON.stringify(
3629
- VisitProfileRequest$outboundSchema.parse(visitProfileRequest),
3617
+ export function affiliatedCompanyFromJSON(
3618
+ jsonString: string,
3619
+ ): SafeParseResult<AffiliatedCompany, SDKValidationError> {
3620
+ return safeParse(
3621
+ jsonString,
3622
+ (x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)),
3623
+ `Failed to parse 'AffiliatedCompany' from JSON`,
3630
3624
  );
3631
3625
  }
3632
3626
 
3633
3627
  /** @internal */
3634
- export const PendingConnection$inboundSchema: z.ZodMiniType<
3635
- PendingConnection,
3636
- unknown
3637
- > = openEnums.inboundSchema(PendingConnection);
3638
-
3639
- /** @internal */
3640
- export const VisitProfilePositionStartDate$inboundSchema: z.ZodMiniType<
3641
- VisitProfilePositionStartDate,
3628
+ export const SimilarCompany$inboundSchema: z.ZodMiniType<
3629
+ SimilarCompany,
3642
3630
  unknown
3643
3631
  > = z.object({
3644
- month: types.nullable(types.number()),
3645
- year: types.number(),
3632
+ id: types.string(),
3633
+ universalName: types.string(),
3634
+ name: types.string(),
3635
+ url: types.nullable(types.string()),
3636
+ logoUrl: types.nullable(types.string()),
3637
+ followerCount: types.nullable(types.number()),
3638
+ industry: types.nullable(types.string()),
3646
3639
  });
3647
3640
 
3648
- export function visitProfilePositionStartDateFromJSON(
3641
+ export function similarCompanyFromJSON(
3649
3642
  jsonString: string,
3650
- ): SafeParseResult<VisitProfilePositionStartDate, SDKValidationError> {
3643
+ ): SafeParseResult<SimilarCompany, SDKValidationError> {
3651
3644
  return safeParse(
3652
3645
  jsonString,
3653
- (x) => VisitProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)),
3654
- `Failed to parse 'VisitProfilePositionStartDate' from JSON`,
3646
+ (x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)),
3647
+ `Failed to parse 'SimilarCompany' from JSON`,
3655
3648
  );
3656
3649
  }
3657
3650
 
3658
3651
  /** @internal */
3659
- export const VisitProfilePositionEndDate$inboundSchema: z.ZodMiniType<
3660
- VisitProfilePositionEndDate,
3652
+ export const WorkplacePolicy$inboundSchema: z.ZodMiniType<
3653
+ WorkplacePolicy,
3661
3654
  unknown
3662
3655
  > = z.object({
3663
- month: types.nullable(types.number()),
3664
- year: types.number(),
3656
+ title: types.nullable(types.string()),
3657
+ description: types.nullable(types.string()),
3658
+ timeAtOnsite: types.nullable(types.string()),
3659
+ benefits: z.array(types.string()),
3665
3660
  });
3666
3661
 
3667
- export function visitProfilePositionEndDateFromJSON(
3662
+ export function workplacePolicyFromJSON(
3668
3663
  jsonString: string,
3669
- ): SafeParseResult<VisitProfilePositionEndDate, SDKValidationError> {
3664
+ ): SafeParseResult<WorkplacePolicy, SDKValidationError> {
3670
3665
  return safeParse(
3671
3666
  jsonString,
3672
- (x) => VisitProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)),
3673
- `Failed to parse 'VisitProfilePositionEndDate' from JSON`,
3667
+ (x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)),
3668
+ `Failed to parse 'WorkplacePolicy' from JSON`,
3674
3669
  );
3675
3670
  }
3676
3671
 
3677
3672
  /** @internal */
3678
- export const VisitProfilePosition$inboundSchema: z.ZodMiniType<
3679
- VisitProfilePosition,
3673
+ export const VisitCompanyResponse$inboundSchema: z.ZodMiniType<
3674
+ VisitCompanyResponse,
3680
3675
  unknown
3681
3676
  > = z.object({
3682
- companyName: types.nullable(types.string()),
3683
- title: types.nullable(types.string()),
3677
+ success: types.literal(true),
3678
+ id: types.string(),
3679
+ universalName: types.string(),
3680
+ name: types.string(),
3684
3681
  description: types.nullable(types.string()),
3685
- companyUrl: types.nullable(types.string()),
3686
- companyLogo: types.nullable(types.string()),
3687
- companyDescription: types.nullable(types.string()),
3688
- startDate: types.nullable(
3689
- z.lazy(() => VisitProfilePositionStartDate$inboundSchema),
3682
+ url: types.string(),
3683
+ websiteUrl: types.nullable(types.string()),
3684
+ industry: types.nullable(types.string()),
3685
+ employeeCount: types.nullable(types.number()),
3686
+ employeeCountRange: types.nullable(
3687
+ z.lazy(() => EmployeeCountRange$inboundSchema),
3690
3688
  ),
3691
- endDate: types.nullable(
3692
- z.lazy(() => VisitProfilePositionEndDate$inboundSchema),
3689
+ headquarter: types.nullable(
3690
+ z.lazy(() => VisitCompanyHeadquarter$inboundSchema),
3693
3691
  ),
3694
- isCurrent: types.boolean(),
3692
+ logoUrl: types.nullable(types.string()),
3693
+ coverImageUrl: types.nullable(types.string()),
3694
+ followerCount: types.nullable(types.number()),
3695
+ specialities: z.array(types.string()),
3696
+ tagline: types.nullable(types.string()),
3697
+ isVerified: types.boolean(),
3698
+ foundedOn: types.nullable(z.lazy(() => VisitCompanyFoundedOn$inboundSchema)),
3699
+ phone: types.nullable(types.string()),
3700
+ callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
3701
+ hashtags: z.array(types.string()),
3702
+ affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
3703
+ similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
3704
+ workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
3705
+ creditsUsed: types.number(),
3706
+ retryAfter: types.number(),
3707
+ });
3708
+
3709
+ export function visitCompanyResponseFromJSON(
3710
+ jsonString: string,
3711
+ ): SafeParseResult<VisitCompanyResponse, SDKValidationError> {
3712
+ return safeParse(
3713
+ jsonString,
3714
+ (x) => VisitCompanyResponse$inboundSchema.parse(JSON.parse(x)),
3715
+ `Failed to parse 'VisitCompanyResponse' from JSON`,
3716
+ );
3717
+ }
3718
+
3719
+ /** @internal */
3720
+ export type ListSavedPostsRequest$Outbound = {
3721
+ start: number;
3722
+ count: number;
3723
+ };
3724
+
3725
+ /** @internal */
3726
+ export const ListSavedPostsRequest$outboundSchema: z.ZodMiniType<
3727
+ ListSavedPostsRequest$Outbound,
3728
+ ListSavedPostsRequest
3729
+ > = z.object({
3730
+ start: z._default(z.int(), 0),
3731
+ count: z._default(z.int(), 20),
3732
+ });
3733
+
3734
+ export function listSavedPostsRequestToJSON(
3735
+ listSavedPostsRequest: ListSavedPostsRequest,
3736
+ ): string {
3737
+ return JSON.stringify(
3738
+ ListSavedPostsRequest$outboundSchema.parse(listSavedPostsRequest),
3739
+ );
3740
+ }
3741
+
3742
+ /** @internal */
3743
+ export const ListSavedPostsAuthor$inboundSchema: z.ZodMiniType<
3744
+ ListSavedPostsAuthor,
3745
+ unknown
3746
+ > = z.object({
3747
+ name: types.string(),
3748
+ profileUrl: types.nullable(types.string()),
3749
+ publicIdentifier: types.nullable(types.string()),
3750
+ profileUrn: types.nullable(types.string()),
3695
3751
  });
3696
3752
 
3697
- export function visitProfilePositionFromJSON(
3753
+ export function listSavedPostsAuthorFromJSON(
3698
3754
  jsonString: string,
3699
- ): SafeParseResult<VisitProfilePosition, SDKValidationError> {
3755
+ ): SafeParseResult<ListSavedPostsAuthor, SDKValidationError> {
3700
3756
  return safeParse(
3701
3757
  jsonString,
3702
- (x) => VisitProfilePosition$inboundSchema.parse(JSON.parse(x)),
3703
- `Failed to parse 'VisitProfilePosition' from JSON`,
3758
+ (x) => ListSavedPostsAuthor$inboundSchema.parse(JSON.parse(x)),
3759
+ `Failed to parse 'ListSavedPostsAuthor' from JSON`,
3704
3760
  );
3705
3761
  }
3706
3762
 
3707
3763
  /** @internal */
3708
- export const VisitProfileEducationStartDate$inboundSchema: z.ZodMiniType<
3709
- VisitProfileEducationStartDate,
3764
+ export const ListSavedPostsType$inboundSchema: z.ZodMiniType<
3765
+ ListSavedPostsType,
3766
+ unknown
3767
+ > = openEnums.inboundSchema(ListSavedPostsType);
3768
+
3769
+ /** @internal */
3770
+ export const ListSavedPostsMedia$inboundSchema: z.ZodMiniType<
3771
+ ListSavedPostsMedia,
3710
3772
  unknown
3711
3773
  > = z.object({
3712
- month: types.nullable(types.number()),
3713
- year: types.number(),
3774
+ type: ListSavedPostsType$inboundSchema,
3775
+ urls: z.array(types.string()),
3776
+ title: types.optional(types.string()),
3777
+ thumbnailUrl: types.optional(types.string()),
3714
3778
  });
3715
3779
 
3716
- export function visitProfileEducationStartDateFromJSON(
3780
+ export function listSavedPostsMediaFromJSON(
3717
3781
  jsonString: string,
3718
- ): SafeParseResult<VisitProfileEducationStartDate, SDKValidationError> {
3782
+ ): SafeParseResult<ListSavedPostsMedia, SDKValidationError> {
3719
3783
  return safeParse(
3720
3784
  jsonString,
3721
- (x) => VisitProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)),
3722
- `Failed to parse 'VisitProfileEducationStartDate' from JSON`,
3785
+ (x) => ListSavedPostsMedia$inboundSchema.parse(JSON.parse(x)),
3786
+ `Failed to parse 'ListSavedPostsMedia' from JSON`,
3723
3787
  );
3724
3788
  }
3725
3789
 
3726
3790
  /** @internal */
3727
- export const VisitProfileEducationEndDate$inboundSchema: z.ZodMiniType<
3728
- VisitProfileEducationEndDate,
3791
+ export const ListSavedPostsPost$inboundSchema: z.ZodMiniType<
3792
+ ListSavedPostsPost,
3729
3793
  unknown
3730
3794
  > = z.object({
3731
- month: types.nullable(types.number()),
3732
- year: types.number(),
3795
+ postUrl: types.string(),
3796
+ postUrn: types.string(),
3797
+ postId: types.string(),
3798
+ text: types.string(),
3799
+ date: types.number(),
3800
+ likesCount: types.number(),
3801
+ commentsCount: types.number(),
3802
+ sharesCount: types.number(),
3803
+ author: z.lazy(() => ListSavedPostsAuthor$inboundSchema),
3804
+ media: types.optional(z.lazy(() => ListSavedPostsMedia$inboundSchema)),
3733
3805
  });
3734
3806
 
3735
- export function visitProfileEducationEndDateFromJSON(
3807
+ export function listSavedPostsPostFromJSON(
3736
3808
  jsonString: string,
3737
- ): SafeParseResult<VisitProfileEducationEndDate, SDKValidationError> {
3809
+ ): SafeParseResult<ListSavedPostsPost, SDKValidationError> {
3738
3810
  return safeParse(
3739
3811
  jsonString,
3740
- (x) => VisitProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)),
3741
- `Failed to parse 'VisitProfileEducationEndDate' from JSON`,
3812
+ (x) => ListSavedPostsPost$inboundSchema.parse(JSON.parse(x)),
3813
+ `Failed to parse 'ListSavedPostsPost' from JSON`,
3742
3814
  );
3743
3815
  }
3744
3816
 
3745
3817
  /** @internal */
3746
- export const VisitProfileEducation$inboundSchema: z.ZodMiniType<
3747
- VisitProfileEducation,
3818
+ export const ListSavedPostsResponse$inboundSchema: z.ZodMiniType<
3819
+ ListSavedPostsResponse,
3748
3820
  unknown
3749
3821
  > = z.object({
3750
- schoolName: types.nullable(types.string()),
3751
- degreeName: types.nullable(types.string()),
3752
- fieldOfStudy: types.nullable(types.string()),
3753
- schoolUrl: types.nullable(types.string()),
3754
- schoolLogo: types.nullable(types.string()),
3755
- startDate: types.nullable(
3756
- z.lazy(() => VisitProfileEducationStartDate$inboundSchema),
3757
- ),
3758
- endDate: types.nullable(
3759
- z.lazy(() => VisitProfileEducationEndDate$inboundSchema),
3760
- ),
3822
+ success: types.literal(true),
3823
+ posts: z.array(z.lazy(() => ListSavedPostsPost$inboundSchema)),
3824
+ total: types.nullable(types.number()),
3825
+ hasMore: types.boolean(),
3826
+ creditsUsed: types.number(),
3827
+ retryAfter: types.number(),
3761
3828
  });
3762
3829
 
3763
- export function visitProfileEducationFromJSON(
3830
+ export function listSavedPostsResponseFromJSON(
3764
3831
  jsonString: string,
3765
- ): SafeParseResult<VisitProfileEducation, SDKValidationError> {
3832
+ ): SafeParseResult<ListSavedPostsResponse, SDKValidationError> {
3766
3833
  return safeParse(
3767
3834
  jsonString,
3768
- (x) => VisitProfileEducation$inboundSchema.parse(JSON.parse(x)),
3769
- `Failed to parse 'VisitProfileEducation' from JSON`,
3835
+ (x) => ListSavedPostsResponse$inboundSchema.parse(JSON.parse(x)),
3836
+ `Failed to parse 'ListSavedPostsResponse' from JSON`,
3770
3837
  );
3771
3838
  }
3772
3839
 
3773
3840
  /** @internal */
3774
- export const VisitProfileLastPostType$inboundSchema: z.ZodMiniType<
3775
- VisitProfileLastPostType,
3776
- unknown
3777
- > = openEnums.inboundSchema(VisitProfileLastPostType);
3841
+ export const SortOrder$outboundSchema: z.ZodMiniEnum<typeof SortOrder> = z.enum(
3842
+ SortOrder,
3843
+ );
3778
3844
 
3779
3845
  /** @internal */
3780
- export const VisitProfileMediaType$inboundSchema: z.ZodMiniType<
3781
- VisitProfileMediaType,
3782
- unknown
3783
- > = openEnums.inboundSchema(VisitProfileMediaType);
3846
+ export type GetFeedRequest$Outbound = {
3847
+ count: number;
3848
+ sortOrder: string;
3849
+ };
3784
3850
 
3785
3851
  /** @internal */
3786
- export const VisitProfileMedia$inboundSchema: z.ZodMiniType<
3787
- VisitProfileMedia,
3788
- unknown
3852
+ export const GetFeedRequest$outboundSchema: z.ZodMiniType<
3853
+ GetFeedRequest$Outbound,
3854
+ GetFeedRequest
3789
3855
  > = z.object({
3790
- type: VisitProfileMediaType$inboundSchema,
3791
- urls: z.array(types.string()),
3792
- title: types.optional(types.string()),
3793
- thumbnailUrl: types.optional(types.string()),
3856
+ count: z._default(z.int(), 20),
3857
+ sortOrder: z._default(SortOrder$outboundSchema, "RELEVANCE"),
3794
3858
  });
3795
3859
 
3796
- export function visitProfileMediaFromJSON(
3797
- jsonString: string,
3798
- ): SafeParseResult<VisitProfileMedia, SDKValidationError> {
3799
- return safeParse(
3800
- jsonString,
3801
- (x) => VisitProfileMedia$inboundSchema.parse(JSON.parse(x)),
3802
- `Failed to parse 'VisitProfileMedia' from JSON`,
3803
- );
3860
+ export function getFeedRequestToJSON(getFeedRequest: GetFeedRequest): string {
3861
+ return JSON.stringify(GetFeedRequest$outboundSchema.parse(getFeedRequest));
3804
3862
  }
3805
3863
 
3806
3864
  /** @internal */
3807
- export const VisitProfileLastPost$inboundSchema: z.ZodMiniType<
3808
- VisitProfileLastPost,
3865
+ export const GetFeedType$inboundSchema: z.ZodMiniType<GetFeedType, unknown> =
3866
+ openEnums.inboundSchema(GetFeedType);
3867
+
3868
+ /** @internal */
3869
+ export const GetFeedMediaType$inboundSchema: z.ZodMiniType<
3870
+ GetFeedMediaType,
3809
3871
  unknown
3810
- > = z.object({
3811
- postUrl: types.string(),
3812
- text: types.string(),
3813
- date: types.number(),
3814
- likesCount: types.number(),
3815
- commentsCount: types.number(),
3816
- sharesCount: types.number(),
3817
- postUrn: types.string(),
3818
- postId: types.string(),
3819
- type: VisitProfileLastPostType$inboundSchema,
3820
- media: types.optional(z.lazy(() => VisitProfileMedia$inboundSchema)),
3821
- });
3872
+ > = openEnums.inboundSchema(GetFeedMediaType);
3822
3873
 
3823
- export function visitProfileLastPostFromJSON(
3874
+ /** @internal */
3875
+ export const GetFeedMedia$inboundSchema: z.ZodMiniType<GetFeedMedia, unknown> =
3876
+ z.object({
3877
+ type: GetFeedMediaType$inboundSchema,
3878
+ urls: z.array(types.string()),
3879
+ title: types.optional(types.string()),
3880
+ thumbnailUrl: types.optional(types.string()),
3881
+ });
3882
+
3883
+ export function getFeedMediaFromJSON(
3824
3884
  jsonString: string,
3825
- ): SafeParseResult<VisitProfileLastPost, SDKValidationError> {
3885
+ ): SafeParseResult<GetFeedMedia, SDKValidationError> {
3826
3886
  return safeParse(
3827
3887
  jsonString,
3828
- (x) => VisitProfileLastPost$inboundSchema.parse(JSON.parse(x)),
3829
- `Failed to parse 'VisitProfileLastPost' from JSON`,
3888
+ (x) => GetFeedMedia$inboundSchema.parse(JSON.parse(x)),
3889
+ `Failed to parse 'GetFeedMedia' from JSON`,
3830
3890
  );
3831
3891
  }
3832
3892
 
3833
3893
  /** @internal */
3834
- export const LastCommentType$inboundSchema: z.ZodMiniType<
3835
- LastCommentType,
3836
- unknown
3837
- > = openEnums.inboundSchema(LastCommentType);
3838
-
3839
- /** @internal */
3840
- export const LastComment$inboundSchema: z.ZodMiniType<LastComment, unknown> = z
3894
+ export const GetFeedPost$inboundSchema: z.ZodMiniType<GetFeedPost, unknown> = z
3841
3895
  .object({
3842
- type: LastCommentType$inboundSchema,
3843
- activityUrn: types.string(),
3844
- text: types.nullable(types.string()),
3845
- reactionType: types.nullable(types.string()),
3846
- targetPostUrn: types.nullable(types.string()),
3847
- targetPostText: types.nullable(types.string()),
3848
- targetPostAuthor: types.nullable(types.string()),
3849
- timestamp: types.nullable(types.number()),
3850
- actorName: types.nullable(types.string()),
3851
- actorUrn: types.nullable(types.string()),
3896
+ postUrl: types.string(),
3897
+ text: types.string(),
3898
+ date: types.number(),
3899
+ likesCount: types.number(),
3900
+ commentsCount: types.number(),
3901
+ sharesCount: types.number(),
3902
+ postUrn: types.string(),
3903
+ postId: types.string(),
3904
+ type: GetFeedType$inboundSchema,
3905
+ media: types.optional(z.lazy(() => GetFeedMedia$inboundSchema)),
3852
3906
  });
3853
3907
 
3854
- export function lastCommentFromJSON(
3908
+ export function getFeedPostFromJSON(
3855
3909
  jsonString: string,
3856
- ): SafeParseResult<LastComment, SDKValidationError> {
3910
+ ): SafeParseResult<GetFeedPost, SDKValidationError> {
3857
3911
  return safeParse(
3858
3912
  jsonString,
3859
- (x) => LastComment$inboundSchema.parse(JSON.parse(x)),
3860
- `Failed to parse 'LastComment' from JSON`,
3913
+ (x) => GetFeedPost$inboundSchema.parse(JSON.parse(x)),
3914
+ `Failed to parse 'GetFeedPost' from JSON`,
3861
3915
  );
3862
3916
  }
3863
3917
 
3864
3918
  /** @internal */
3865
- export const VisitProfileResponse$inboundSchema: z.ZodMiniType<
3866
- VisitProfileResponse,
3919
+ export const GetFeedResponse$inboundSchema: z.ZodMiniType<
3920
+ GetFeedResponse,
3867
3921
  unknown
3868
3922
  > = z.object({
3869
3923
  success: types.literal(true),
3870
- firstName: types.string(),
3871
- lastName: types.string(),
3872
- headline: types.nullable(types.string()),
3873
- summary: types.nullable(types.string()),
3874
- publicIdentifier: types.string(),
3875
- profileUrl: types.nullable(types.string()),
3876
- profileUrn: types.nullable(types.string()),
3877
- imageUrl: types.nullable(types.string()),
3878
- email: types.nullable(types.string()),
3879
- location: types.nullable(types.string()),
3880
- company: types.nullable(types.string()),
3881
- position: types.nullable(types.string()),
3882
- memberDistance: types.nullable(types.number()),
3883
- connectionsCount: types.nullable(types.number()),
3884
- isVerified: types.boolean(),
3885
- pendingConnection: PendingConnection$inboundSchema,
3886
- positions: types.optional(
3887
- z.array(z.lazy(() => VisitProfilePosition$inboundSchema)),
3888
- ),
3889
- educations: types.optional(
3890
- z.array(z.lazy(() => VisitProfileEducation$inboundSchema)),
3891
- ),
3892
- lastPosts: types.optional(
3893
- z.array(z.lazy(() => VisitProfileLastPost$inboundSchema)),
3894
- ),
3895
- lastComments: types.optional(
3896
- z.array(z.lazy(() => LastComment$inboundSchema)),
3897
- ),
3898
- aboutFetched: types.optional(types.boolean()),
3899
- cached: types.boolean(),
3924
+ posts: z.array(z.lazy(() => GetFeedPost$inboundSchema)),
3900
3925
  creditsUsed: types.number(),
3901
3926
  retryAfter: types.number(),
3902
3927
  });
3903
3928
 
3904
- export function visitProfileResponseFromJSON(
3929
+ export function getFeedResponseFromJSON(
3905
3930
  jsonString: string,
3906
- ): SafeParseResult<VisitProfileResponse, SDKValidationError> {
3931
+ ): SafeParseResult<GetFeedResponse, SDKValidationError> {
3907
3932
  return safeParse(
3908
3933
  jsonString,
3909
- (x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)),
3910
- `Failed to parse 'VisitProfileResponse' from JSON`,
3934
+ (x) => GetFeedResponse$inboundSchema.parse(JSON.parse(x)),
3935
+ `Failed to parse 'GetFeedResponse' from JSON`,
3911
3936
  );
3912
3937
  }
3913
3938
 
3914
3939
  /** @internal */
3915
- export type BulkVisitProfileRequest$Outbound = {
3916
- profiles: Array<string>;
3917
- campaignSlug?: string | undefined;
3918
- includePosts?: boolean | undefined;
3919
- includeComments?: boolean | undefined;
3920
- includeAbout?: boolean | undefined;
3940
+ export type CollectHashtagPostsRequest$Outbound = {
3941
+ hashtag: string;
3942
+ start: number;
3943
+ count: number;
3921
3944
  };
3922
3945
 
3923
3946
  /** @internal */
3924
- export const BulkVisitProfileRequest$outboundSchema: z.ZodMiniType<
3925
- BulkVisitProfileRequest$Outbound,
3926
- BulkVisitProfileRequest
3947
+ export const CollectHashtagPostsRequest$outboundSchema: z.ZodMiniType<
3948
+ CollectHashtagPostsRequest$Outbound,
3949
+ CollectHashtagPostsRequest
3927
3950
  > = z.object({
3928
- profiles: z.array(z.string()),
3929
- campaignSlug: z.optional(z.string()),
3930
- includePosts: z.optional(z.boolean()),
3931
- includeComments: z.optional(z.boolean()),
3932
- includeAbout: z.optional(z.boolean()),
3951
+ hashtag: z.string(),
3952
+ start: z._default(z.int(), 0),
3953
+ count: z._default(z.int(), 20),
3933
3954
  });
3934
3955
 
3935
- export function bulkVisitProfileRequestToJSON(
3936
- bulkVisitProfileRequest: BulkVisitProfileRequest,
3956
+ export function collectHashtagPostsRequestToJSON(
3957
+ collectHashtagPostsRequest: CollectHashtagPostsRequest,
3937
3958
  ): string {
3938
3959
  return JSON.stringify(
3939
- BulkVisitProfileRequest$outboundSchema.parse(bulkVisitProfileRequest),
3960
+ CollectHashtagPostsRequest$outboundSchema.parse(collectHashtagPostsRequest),
3940
3961
  );
3941
3962
  }
3942
3963
 
3943
3964
  /** @internal */
3944
- export const BulkVisitProfileResponse$inboundSchema: z.ZodMiniType<
3945
- BulkVisitProfileResponse,
3965
+ export const CollectHashtagPostsAuthor$inboundSchema: z.ZodMiniType<
3966
+ CollectHashtagPostsAuthor,
3946
3967
  unknown
3947
3968
  > = z.object({
3948
- accepted: types.literal(true),
3949
- batchId: types.string(),
3950
- profileCount: types.number(),
3951
- alreadyCached: types.number(),
3952
- willVisit: types.number(),
3953
- estimatedMinutes: types.number(),
3969
+ name: types.string(),
3970
+ profileUrl: types.nullable(types.string()),
3971
+ publicIdentifier: types.nullable(types.string()),
3972
+ profileUrn: types.nullable(types.string()),
3954
3973
  });
3955
3974
 
3956
- export function bulkVisitProfileResponseFromJSON(
3975
+ export function collectHashtagPostsAuthorFromJSON(
3957
3976
  jsonString: string,
3958
- ): SafeParseResult<BulkVisitProfileResponse, SDKValidationError> {
3977
+ ): SafeParseResult<CollectHashtagPostsAuthor, SDKValidationError> {
3959
3978
  return safeParse(
3960
3979
  jsonString,
3961
- (x) => BulkVisitProfileResponse$inboundSchema.parse(JSON.parse(x)),
3962
- `Failed to parse 'BulkVisitProfileResponse' from JSON`,
3980
+ (x) => CollectHashtagPostsAuthor$inboundSchema.parse(JSON.parse(x)),
3981
+ `Failed to parse 'CollectHashtagPostsAuthor' from JSON`,
3963
3982
  );
3964
3983
  }
3965
3984
 
3966
3985
  /** @internal */
3967
- export type BulkVisitBatchStatusRequest$Outbound = {
3968
- batchId: string;
3969
- };
3986
+ export const CollectHashtagPostsType$inboundSchema: z.ZodMiniType<
3987
+ CollectHashtagPostsType,
3988
+ unknown
3989
+ > = openEnums.inboundSchema(CollectHashtagPostsType);
3970
3990
 
3971
3991
  /** @internal */
3972
- export const BulkVisitBatchStatusRequest$outboundSchema: z.ZodMiniType<
3973
- BulkVisitBatchStatusRequest$Outbound,
3974
- BulkVisitBatchStatusRequest
3992
+ export const CollectHashtagPostsMedia$inboundSchema: z.ZodMiniType<
3993
+ CollectHashtagPostsMedia,
3994
+ unknown
3975
3995
  > = z.object({
3976
- batchId: z.string(),
3996
+ type: CollectHashtagPostsType$inboundSchema,
3997
+ urls: z.array(types.string()),
3998
+ title: types.optional(types.string()),
3999
+ thumbnailUrl: types.optional(types.string()),
3977
4000
  });
3978
4001
 
3979
- export function bulkVisitBatchStatusRequestToJSON(
3980
- bulkVisitBatchStatusRequest: BulkVisitBatchStatusRequest,
3981
- ): string {
3982
- return JSON.stringify(
3983
- BulkVisitBatchStatusRequest$outboundSchema.parse(
3984
- bulkVisitBatchStatusRequest,
3985
- ),
3986
- );
3987
- }
3988
-
3989
- /** @internal */
3990
- export const BulkVisitBatchStatusStatus$inboundSchema: z.ZodMiniType<
3991
- BulkVisitBatchStatusStatus,
3992
- unknown
3993
- > = openEnums.inboundSchema(BulkVisitBatchStatusStatus);
3994
-
3995
- /** @internal */
3996
- export const Progress$inboundSchema: z.ZodMiniType<Progress, unknown> = z
3997
- .object({
3998
- total: types.number(),
3999
- visited: types.number(),
4000
- cached: types.number(),
4001
- failed: types.number(),
4002
- skipped: types.number(),
4003
- pending: types.number(),
4004
- });
4005
-
4006
- export function progressFromJSON(
4002
+ export function collectHashtagPostsMediaFromJSON(
4007
4003
  jsonString: string,
4008
- ): SafeParseResult<Progress, SDKValidationError> {
4004
+ ): SafeParseResult<CollectHashtagPostsMedia, SDKValidationError> {
4009
4005
  return safeParse(
4010
4006
  jsonString,
4011
- (x) => Progress$inboundSchema.parse(JSON.parse(x)),
4012
- `Failed to parse 'Progress' from JSON`,
4007
+ (x) => CollectHashtagPostsMedia$inboundSchema.parse(JSON.parse(x)),
4008
+ `Failed to parse 'CollectHashtagPostsMedia' from JSON`,
4013
4009
  );
4014
4010
  }
4015
4011
 
4016
4012
  /** @internal */
4017
- export const ResultStatus$inboundSchema: z.ZodMiniType<ResultStatus, unknown> =
4018
- openEnums.inboundSchema(ResultStatus);
4019
-
4020
- /** @internal */
4021
- export const Result$inboundSchema: z.ZodMiniType<Result, unknown> = z.object({
4022
- profile: types.string(),
4023
- status: ResultStatus$inboundSchema,
4024
- contactId: z.optional(z.nullable(types.string())),
4025
- error: z.optional(z.nullable(types.string())),
4013
+ export const CollectHashtagPostsPost$inboundSchema: z.ZodMiniType<
4014
+ CollectHashtagPostsPost,
4015
+ unknown
4016
+ > = z.object({
4017
+ postUrl: types.string(),
4018
+ postUrn: types.string(),
4019
+ text: types.string(),
4020
+ date: types.number(),
4021
+ likesCount: types.number(),
4022
+ commentsCount: types.number(),
4023
+ sharesCount: types.number(),
4024
+ author: z.lazy(() => CollectHashtagPostsAuthor$inboundSchema),
4025
+ media: types.optional(z.lazy(() => CollectHashtagPostsMedia$inboundSchema)),
4026
4026
  });
4027
4027
 
4028
- export function resultFromJSON(
4028
+ export function collectHashtagPostsPostFromJSON(
4029
4029
  jsonString: string,
4030
- ): SafeParseResult<Result, SDKValidationError> {
4030
+ ): SafeParseResult<CollectHashtagPostsPost, SDKValidationError> {
4031
4031
  return safeParse(
4032
4032
  jsonString,
4033
- (x) => Result$inboundSchema.parse(JSON.parse(x)),
4034
- `Failed to parse 'Result' from JSON`,
4033
+ (x) => CollectHashtagPostsPost$inboundSchema.parse(JSON.parse(x)),
4034
+ `Failed to parse 'CollectHashtagPostsPost' from JSON`,
4035
4035
  );
4036
4036
  }
4037
4037
 
4038
4038
  /** @internal */
4039
- export const BulkVisitBatchStatusResponse$inboundSchema: z.ZodMiniType<
4040
- BulkVisitBatchStatusResponse,
4039
+ export const CollectHashtagPostsResponse$inboundSchema: z.ZodMiniType<
4040
+ CollectHashtagPostsResponse,
4041
4041
  unknown
4042
4042
  > = z.object({
4043
- batchId: types.string(),
4044
- status: BulkVisitBatchStatusStatus$inboundSchema,
4045
- progress: z.lazy(() => Progress$inboundSchema),
4043
+ success: types.literal(true),
4044
+ posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
4045
+ total: types.number(),
4046
+ hasMore: types.boolean(),
4046
4047
  creditsUsed: types.number(),
4047
- failureReason: z.optional(z.nullable(types.string())),
4048
- results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
4048
+ retryAfter: types.number(),
4049
4049
  });
4050
4050
 
4051
- export function bulkVisitBatchStatusResponseFromJSON(
4051
+ export function collectHashtagPostsResponseFromJSON(
4052
4052
  jsonString: string,
4053
- ): SafeParseResult<BulkVisitBatchStatusResponse, SDKValidationError> {
4053
+ ): SafeParseResult<CollectHashtagPostsResponse, SDKValidationError> {
4054
4054
  return safeParse(
4055
4055
  jsonString,
4056
- (x) => BulkVisitBatchStatusResponse$inboundSchema.parse(JSON.parse(x)),
4057
- `Failed to parse 'BulkVisitBatchStatusResponse' from JSON`,
4056
+ (x) => CollectHashtagPostsResponse$inboundSchema.parse(JSON.parse(x)),
4057
+ `Failed to parse 'CollectHashtagPostsResponse' from JSON`,
4058
4058
  );
4059
4059
  }
4060
4060
 
@@ -4064,42 +4064,40 @@ export const SearchCategoryRequest$outboundSchema: z.ZodMiniEnum<
4064
4064
  > = z.enum(SearchCategoryRequest);
4065
4065
 
4066
4066
  /** @internal */
4067
- export const SearchSortBy$outboundSchema: z.ZodMiniEnum<typeof SearchSortBy> = z
4068
- .enum(SearchSortBy);
4067
+ export const SortBy$outboundSchema: z.ZodMiniEnum<typeof SortBy> = z.enum(
4068
+ SortBy,
4069
+ );
4069
4070
 
4070
4071
  /** @internal */
4071
- export const SearchDatePosted$outboundSchema: z.ZodMiniEnum<
4072
- typeof SearchDatePosted
4073
- > = z.enum(SearchDatePosted);
4072
+ export const DatePosted$outboundSchema: z.ZodMiniEnum<typeof DatePosted> = z
4073
+ .enum(DatePosted);
4074
4074
 
4075
4075
  /** @internal */
4076
- export const SearchContentType$outboundSchema: z.ZodMiniEnum<
4077
- typeof SearchContentType
4078
- > = z.enum(SearchContentType);
4076
+ export const ContentType$outboundSchema: z.ZodMiniEnum<typeof ContentType> = z
4077
+ .enum(ContentType);
4079
4078
 
4080
4079
  /** @internal */
4081
- export const SearchConnectionDegree$outboundSchema: z.ZodMiniEnum<
4082
- typeof SearchConnectionDegree
4083
- > = z.enum(SearchConnectionDegree);
4080
+ export const ConnectionDegree$outboundSchema: z.ZodMiniEnum<
4081
+ typeof ConnectionDegree
4082
+ > = z.enum(ConnectionDegree);
4084
4083
 
4085
4084
  /** @internal */
4086
- export const SearchCompanySize$outboundSchema: z.ZodMiniEnum<
4087
- typeof SearchCompanySize
4088
- > = z.enum(SearchCompanySize);
4085
+ export const CompanySize$outboundSchema: z.ZodMiniEnum<typeof CompanySize> = z
4086
+ .enum(CompanySize);
4089
4087
 
4090
4088
  /** @internal */
4091
- export const SearchJobType$outboundSchema: z.ZodMiniEnum<typeof SearchJobType> =
4092
- z.enum(SearchJobType);
4089
+ export const JobType$outboundSchema: z.ZodMiniEnum<typeof JobType> = z.enum(
4090
+ JobType,
4091
+ );
4093
4092
 
4094
4093
  /** @internal */
4095
- export const SearchExperienceLevel$outboundSchema: z.ZodMiniEnum<
4096
- typeof SearchExperienceLevel
4097
- > = z.enum(SearchExperienceLevel);
4094
+ export const ExperienceLevel$outboundSchema: z.ZodMiniEnum<
4095
+ typeof ExperienceLevel
4096
+ > = z.enum(ExperienceLevel);
4098
4097
 
4099
4098
  /** @internal */
4100
- export const SearchWorkplaceType$outboundSchema: z.ZodMiniEnum<
4101
- typeof SearchWorkplaceType
4102
- > = z.enum(SearchWorkplaceType);
4099
+ export const WorkplaceType$outboundSchema: z.ZodMiniEnum<typeof WorkplaceType> =
4100
+ z.enum(WorkplaceType);
4103
4101
 
4104
4102
  /** @internal */
4105
4103
  export type SearchRequest$Outbound = {
@@ -4138,12 +4136,12 @@ export const SearchRequest$outboundSchema: z.ZodMiniType<
4138
4136
  category: z.optional(SearchCategoryRequest$outboundSchema),
4139
4137
  url: z.optional(z.string()),
4140
4138
  keywords: z.optional(z.string()),
4141
- sortBy: z.optional(SearchSortBy$outboundSchema),
4142
- datePosted: z.optional(SearchDatePosted$outboundSchema),
4143
- contentType: z.optional(SearchContentType$outboundSchema),
4139
+ sortBy: z.optional(SortBy$outboundSchema),
4140
+ datePosted: z.optional(DatePosted$outboundSchema),
4141
+ contentType: z.optional(ContentType$outboundSchema),
4144
4142
  authorIndustry: z.optional(z.array(z.string())),
4145
4143
  authorCompany: z.optional(z.array(z.string())),
4146
- connectionDegree: z.optional(z.array(SearchConnectionDegree$outboundSchema)),
4144
+ connectionDegree: z.optional(z.array(ConnectionDegree$outboundSchema)),
4147
4145
  firstName: z.optional(z.string()),
4148
4146
  lastName: z.optional(z.string()),
4149
4147
  title: z.optional(z.string()),
@@ -4154,10 +4152,10 @@ export const SearchRequest$outboundSchema: z.ZodMiniType<
4154
4152
  industry: z.optional(z.array(z.string())),
4155
4153
  currentCompany: z.optional(z.array(z.string())),
4156
4154
  pastCompany: z.optional(z.array(z.string())),
4157
- companySize: z.optional(z.array(SearchCompanySize$outboundSchema)),
4158
- jobType: z.optional(z.array(SearchJobType$outboundSchema)),
4159
- experienceLevel: z.optional(z.array(SearchExperienceLevel$outboundSchema)),
4160
- workplaceType: z.optional(z.array(SearchWorkplaceType$outboundSchema)),
4155
+ companySize: z.optional(z.array(CompanySize$outboundSchema)),
4156
+ jobType: z.optional(z.array(JobType$outboundSchema)),
4157
+ experienceLevel: z.optional(z.array(ExperienceLevel$outboundSchema)),
4158
+ workplaceType: z.optional(z.array(WorkplaceType$outboundSchema)),
4161
4159
  start: z.optional(z.int()),
4162
4160
  count: z.optional(z.int()),
4163
4161
  });
@@ -4173,346 +4171,215 @@ export const SearchCategoryResponseBody$inboundSchema: z.ZodMiniType<
4173
4171
  > = openEnums.inboundSchema(SearchCategoryResponseBody);
4174
4172
 
4175
4173
  /** @internal */
4176
- export const SearchTypeJob$inboundSchema: z.ZodMiniEnum<typeof SearchTypeJob> =
4177
- z.enum(SearchTypeJob);
4178
-
4179
- /** @internal */
4180
- export const SearchItemsJob$inboundSchema: z.ZodMiniType<
4181
- SearchItemsJob,
4182
- unknown
4183
- > = z.object({
4184
- type: SearchTypeJob$inboundSchema,
4185
- title: types.string(),
4186
- company: types.nullable(types.string()),
4187
- companyUrl: types.nullable(types.string()),
4188
- companyLogo: types.nullable(types.string()),
4189
- location: types.nullable(types.string()),
4190
- workplaceType: types.nullable(types.string()),
4191
- postedAt: types.nullable(types.string()),
4192
- jobUrl: types.string(),
4193
- listingId: types.string(),
4194
- });
4195
-
4196
- export function searchItemsJobFromJSON(
4197
- jsonString: string,
4198
- ): SafeParseResult<SearchItemsJob, SDKValidationError> {
4199
- return safeParse(
4200
- jsonString,
4201
- (x) => SearchItemsJob$inboundSchema.parse(JSON.parse(x)),
4202
- `Failed to parse 'SearchItemsJob' from JSON`,
4203
- );
4204
- }
4205
-
4206
- /** @internal */
4207
- export const SearchTypeCompany$inboundSchema: z.ZodMiniEnum<
4208
- typeof SearchTypeCompany
4209
- > = z.enum(SearchTypeCompany);
4210
-
4211
- /** @internal */
4212
- export const SearchItemsCompany$inboundSchema: z.ZodMiniType<
4213
- SearchItemsCompany,
4214
- unknown
4215
- > = z.object({
4216
- type: SearchTypeCompany$inboundSchema,
4217
- name: types.string(),
4218
- profileUrl: types.nullable(types.string()),
4219
- summary: types.nullable(types.string()),
4220
- industry: types.nullable(types.string()),
4221
- location: types.nullable(types.string()),
4222
- followersCount: types.nullable(types.number()),
4223
- });
4224
-
4225
- export function searchItemsCompanyFromJSON(
4226
- jsonString: string,
4227
- ): SafeParseResult<SearchItemsCompany, SDKValidationError> {
4228
- return safeParse(
4229
- jsonString,
4230
- (x) => SearchItemsCompany$inboundSchema.parse(JSON.parse(x)),
4231
- `Failed to parse 'SearchItemsCompany' from JSON`,
4232
- );
4233
- }
4234
-
4235
- /** @internal */
4236
- export const SearchTypePeople$inboundSchema: z.ZodMiniEnum<
4237
- typeof SearchTypePeople
4238
- > = z.enum(SearchTypePeople);
4239
-
4240
- /** @internal */
4241
- export const SearchNetworkDistance$inboundSchema: z.ZodMiniType<
4242
- SearchNetworkDistance,
4243
- unknown
4244
- > = openEnums.inboundSchema(SearchNetworkDistance);
4245
-
4246
- /** @internal */
4247
- export const SearchCurrentPosition$inboundSchema: z.ZodMiniType<
4248
- SearchCurrentPosition,
4249
- unknown
4250
- > = z.object({
4251
- company: types.nullable(types.string()),
4252
- role: types.nullable(types.string()),
4253
- });
4254
-
4255
- export function searchCurrentPositionFromJSON(
4256
- jsonString: string,
4257
- ): SafeParseResult<SearchCurrentPosition, SDKValidationError> {
4258
- return safeParse(
4259
- jsonString,
4260
- (x) => SearchCurrentPosition$inboundSchema.parse(JSON.parse(x)),
4261
- `Failed to parse 'SearchCurrentPosition' from JSON`,
4262
- );
4263
- }
4174
+ export const ItemsTypeJob$inboundSchema: z.ZodMiniEnum<typeof ItemsTypeJob> = z
4175
+ .enum(ItemsTypeJob);
4264
4176
 
4265
4177
  /** @internal */
4266
- export const SearchItemsPeople$inboundSchema: z.ZodMiniType<
4267
- SearchItemsPeople,
4268
- unknown
4269
- > = z.object({
4270
- type: SearchTypePeople$inboundSchema,
4271
- name: types.string(),
4272
- profileUrl: types.nullable(types.string()),
4273
- headline: types.nullable(types.string()),
4274
- location: types.nullable(types.string()),
4275
- profilePicture: types.nullable(types.string()),
4276
- networkDistance: types.nullable(SearchNetworkDistance$inboundSchema),
4277
- currentPositions: z.array(z.lazy(() => SearchCurrentPosition$inboundSchema)),
4278
- profileUrn: types.nullable(types.string()),
4279
- publicIdentifier: types.nullable(types.string()),
4280
- });
4178
+ export const ItemsJob$inboundSchema: z.ZodMiniType<ItemsJob, unknown> = z
4179
+ .object({
4180
+ type: ItemsTypeJob$inboundSchema,
4181
+ title: types.string(),
4182
+ company: types.nullable(types.string()),
4183
+ companyUrl: types.nullable(types.string()),
4184
+ companyLogo: types.nullable(types.string()),
4185
+ location: types.nullable(types.string()),
4186
+ workplaceType: types.nullable(types.string()),
4187
+ postedAt: types.nullable(types.string()),
4188
+ jobUrl: types.string(),
4189
+ listingId: types.string(),
4190
+ });
4281
4191
 
4282
- export function searchItemsPeopleFromJSON(
4192
+ export function itemsJobFromJSON(
4283
4193
  jsonString: string,
4284
- ): SafeParseResult<SearchItemsPeople, SDKValidationError> {
4194
+ ): SafeParseResult<ItemsJob, SDKValidationError> {
4285
4195
  return safeParse(
4286
4196
  jsonString,
4287
- (x) => SearchItemsPeople$inboundSchema.parse(JSON.parse(x)),
4288
- `Failed to parse 'SearchItemsPeople' from JSON`,
4197
+ (x) => ItemsJob$inboundSchema.parse(JSON.parse(x)),
4198
+ `Failed to parse 'ItemsJob' from JSON`,
4289
4199
  );
4290
4200
  }
4291
4201
 
4292
4202
  /** @internal */
4293
- export const SearchTypePost$inboundSchema: z.ZodMiniEnum<
4294
- typeof SearchTypePost
4295
- > = z.enum(SearchTypePost);
4203
+ export const ItemsTypeCompany$inboundSchema: z.ZodMiniEnum<
4204
+ typeof ItemsTypeCompany
4205
+ > = z.enum(ItemsTypeCompany);
4296
4206
 
4297
4207
  /** @internal */
4298
- export const SearchAuthor$inboundSchema: z.ZodMiniType<SearchAuthor, unknown> =
4208
+ export const ItemsCompany$inboundSchema: z.ZodMiniType<ItemsCompany, unknown> =
4299
4209
  z.object({
4210
+ type: ItemsTypeCompany$inboundSchema,
4300
4211
  name: types.string(),
4301
4212
  profileUrl: types.nullable(types.string()),
4302
- headline: types.nullable(types.string()),
4303
- profilePicture: types.nullable(types.string()),
4304
- isCompany: types.boolean(),
4305
- publicIdentifier: types.nullable(types.string()),
4306
- profileUrn: types.nullable(types.string()),
4213
+ summary: types.nullable(types.string()),
4214
+ industry: types.nullable(types.string()),
4215
+ location: types.nullable(types.string()),
4216
+ followersCount: types.nullable(types.number()),
4307
4217
  });
4308
4218
 
4309
- export function searchAuthorFromJSON(
4219
+ export function itemsCompanyFromJSON(
4310
4220
  jsonString: string,
4311
- ): SafeParseResult<SearchAuthor, SDKValidationError> {
4221
+ ): SafeParseResult<ItemsCompany, SDKValidationError> {
4312
4222
  return safeParse(
4313
4223
  jsonString,
4314
- (x) => SearchAuthor$inboundSchema.parse(JSON.parse(x)),
4315
- `Failed to parse 'SearchAuthor' from JSON`,
4224
+ (x) => ItemsCompany$inboundSchema.parse(JSON.parse(x)),
4225
+ `Failed to parse 'ItemsCompany' from JSON`,
4316
4226
  );
4317
4227
  }
4318
4228
 
4319
4229
  /** @internal */
4320
- export const SearchMediaType$inboundSchema: z.ZodMiniType<
4321
- SearchMediaType,
4322
- unknown
4323
- > = openEnums.inboundSchema(SearchMediaType);
4324
-
4325
- /** @internal */
4326
- export const SearchMedia$inboundSchema: z.ZodMiniType<SearchMedia, unknown> = z
4327
- .object({
4328
- type: SearchMediaType$inboundSchema,
4329
- urls: z.array(types.string()),
4330
- title: types.optional(types.string()),
4331
- thumbnailUrl: types.optional(types.string()),
4332
- });
4333
-
4334
- export function searchMediaFromJSON(
4335
- jsonString: string,
4336
- ): SafeParseResult<SearchMedia, SDKValidationError> {
4337
- return safeParse(
4338
- jsonString,
4339
- (x) => SearchMedia$inboundSchema.parse(JSON.parse(x)),
4340
- `Failed to parse 'SearchMedia' from JSON`,
4341
- );
4342
- }
4230
+ export const ItemsTypePeople$inboundSchema: z.ZodMiniEnum<
4231
+ typeof ItemsTypePeople
4232
+ > = z.enum(ItemsTypePeople);
4343
4233
 
4344
4234
  /** @internal */
4345
- export const SearchItemsPost$inboundSchema: z.ZodMiniType<
4346
- SearchItemsPost,
4235
+ export const ItemsNetworkDistance$inboundSchema: z.ZodMiniType<
4236
+ ItemsNetworkDistance,
4347
4237
  unknown
4348
- > = z.object({
4349
- type: SearchTypePost$inboundSchema,
4350
- postUrl: types.string(),
4351
- text: types.string(),
4352
- date: types.number(),
4353
- likesCount: types.number(),
4354
- commentsCount: types.number(),
4355
- sharesCount: types.number(),
4356
- postUrn: types.string(),
4357
- postId: types.string(),
4358
- author: z.lazy(() => SearchAuthor$inboundSchema),
4359
- isRepost: types.boolean(),
4360
- media: types.optional(z.lazy(() => SearchMedia$inboundSchema)),
4361
- });
4362
-
4363
- export function searchItemsPostFromJSON(
4364
- jsonString: string,
4365
- ): SafeParseResult<SearchItemsPost, SDKValidationError> {
4366
- return safeParse(
4367
- jsonString,
4368
- (x) => SearchItemsPost$inboundSchema.parse(JSON.parse(x)),
4369
- `Failed to parse 'SearchItemsPost' from JSON`,
4370
- );
4371
- }
4238
+ > = openEnums.inboundSchema(ItemsNetworkDistance);
4372
4239
 
4373
4240
  /** @internal */
4374
- export const SearchItemsUnion$inboundSchema: z.ZodMiniType<
4375
- SearchItemsUnion,
4241
+ export const ItemsCurrentPosition$inboundSchema: z.ZodMiniType<
4242
+ ItemsCurrentPosition,
4376
4243
  unknown
4377
- > = smartUnion([
4378
- z.array(z.lazy(() => SearchItemsPost$inboundSchema)),
4379
- z.array(z.lazy(() => SearchItemsPeople$inboundSchema)),
4380
- z.array(z.lazy(() => SearchItemsCompany$inboundSchema)),
4381
- z.array(z.lazy(() => SearchItemsJob$inboundSchema)),
4382
- ]);
4244
+ > = z.object({
4245
+ company: types.nullable(types.string()),
4246
+ role: types.nullable(types.string()),
4247
+ });
4383
4248
 
4384
- export function searchItemsUnionFromJSON(
4249
+ export function itemsCurrentPositionFromJSON(
4385
4250
  jsonString: string,
4386
- ): SafeParseResult<SearchItemsUnion, SDKValidationError> {
4251
+ ): SafeParseResult<ItemsCurrentPosition, SDKValidationError> {
4387
4252
  return safeParse(
4388
4253
  jsonString,
4389
- (x) => SearchItemsUnion$inboundSchema.parse(JSON.parse(x)),
4390
- `Failed to parse 'SearchItemsUnion' from JSON`,
4254
+ (x) => ItemsCurrentPosition$inboundSchema.parse(JSON.parse(x)),
4255
+ `Failed to parse 'ItemsCurrentPosition' from JSON`,
4391
4256
  );
4392
4257
  }
4393
4258
 
4394
4259
  /** @internal */
4395
- export const SearchPaging$inboundSchema: z.ZodMiniType<SearchPaging, unknown> =
4396
- z.object({
4397
- start: types.number(),
4398
- count: types.number(),
4399
- total: types.number(),
4260
+ export const ItemsPeople$inboundSchema: z.ZodMiniType<ItemsPeople, unknown> = z
4261
+ .object({
4262
+ type: ItemsTypePeople$inboundSchema,
4263
+ name: types.string(),
4264
+ profileUrl: types.nullable(types.string()),
4265
+ headline: types.nullable(types.string()),
4266
+ location: types.nullable(types.string()),
4267
+ profilePicture: types.nullable(types.string()),
4268
+ networkDistance: types.nullable(ItemsNetworkDistance$inboundSchema),
4269
+ currentPositions: z.array(z.lazy(() => ItemsCurrentPosition$inboundSchema)),
4270
+ profileUrn: types.nullable(types.string()),
4271
+ publicIdentifier: types.nullable(types.string()),
4400
4272
  });
4401
4273
 
4402
- export function searchPagingFromJSON(
4274
+ export function itemsPeopleFromJSON(
4403
4275
  jsonString: string,
4404
- ): SafeParseResult<SearchPaging, SDKValidationError> {
4276
+ ): SafeParseResult<ItemsPeople, SDKValidationError> {
4405
4277
  return safeParse(
4406
4278
  jsonString,
4407
- (x) => SearchPaging$inboundSchema.parse(JSON.parse(x)),
4408
- `Failed to parse 'SearchPaging' from JSON`,
4279
+ (x) => ItemsPeople$inboundSchema.parse(JSON.parse(x)),
4280
+ `Failed to parse 'ItemsPeople' from JSON`,
4409
4281
  );
4410
4282
  }
4411
4283
 
4412
4284
  /** @internal */
4413
- export const SearchResponse$inboundSchema: z.ZodMiniType<
4414
- SearchResponse,
4415
- unknown
4416
- > = z.object({
4417
- success: types.literal(true),
4418
- category: SearchCategoryResponseBody$inboundSchema,
4419
- items: smartUnion([
4420
- z.array(z.lazy(() => SearchItemsPost$inboundSchema)),
4421
- z.array(z.lazy(() => SearchItemsPeople$inboundSchema)),
4422
- z.array(z.lazy(() => SearchItemsCompany$inboundSchema)),
4423
- z.array(z.lazy(() => SearchItemsJob$inboundSchema)),
4424
- ]),
4425
- paging: z.lazy(() => SearchPaging$inboundSchema),
4426
- hasMore: types.boolean(),
4427
- creditsUsed: types.number(),
4428
- retryAfter: types.number(),
4429
- });
4285
+ export const ItemsTypePost$inboundSchema: z.ZodMiniEnum<typeof ItemsTypePost> =
4286
+ z.enum(ItemsTypePost);
4430
4287
 
4431
- export function searchResponseFromJSON(
4288
+ /** @internal */
4289
+ export const ItemsAuthor$inboundSchema: z.ZodMiniType<ItemsAuthor, unknown> = z
4290
+ .object({
4291
+ name: types.string(),
4292
+ profileUrl: types.nullable(types.string()),
4293
+ headline: types.nullable(types.string()),
4294
+ profilePicture: types.nullable(types.string()),
4295
+ isCompany: types.boolean(),
4296
+ publicIdentifier: types.nullable(types.string()),
4297
+ profileUrn: types.nullable(types.string()),
4298
+ });
4299
+
4300
+ export function itemsAuthorFromJSON(
4432
4301
  jsonString: string,
4433
- ): SafeParseResult<SearchResponse, SDKValidationError> {
4302
+ ): SafeParseResult<ItemsAuthor, SDKValidationError> {
4434
4303
  return safeParse(
4435
4304
  jsonString,
4436
- (x) => SearchResponse$inboundSchema.parse(JSON.parse(x)),
4437
- `Failed to parse 'SearchResponse' from JSON`,
4305
+ (x) => ItemsAuthor$inboundSchema.parse(JSON.parse(x)),
4306
+ `Failed to parse 'ItemsAuthor' from JSON`,
4438
4307
  );
4439
4308
  }
4440
4309
 
4441
4310
  /** @internal */
4442
- export const SearchCompaniesCompanySize$outboundSchema: z.ZodMiniEnum<
4443
- typeof SearchCompaniesCompanySize
4444
- > = z.enum(SearchCompaniesCompanySize);
4445
-
4446
- /** @internal */
4447
- export type SearchCompaniesRequest$Outbound = {
4448
- keywords?: string | undefined;
4449
- url?: string | undefined;
4450
- location?: Array<string> | undefined;
4451
- industry?: Array<string> | undefined;
4452
- companySize?: Array<string> | undefined;
4453
- start?: number | undefined;
4454
- count?: number | undefined;
4455
- };
4311
+ export const ItemsMediaType$inboundSchema: z.ZodMiniType<
4312
+ ItemsMediaType,
4313
+ unknown
4314
+ > = openEnums.inboundSchema(ItemsMediaType);
4456
4315
 
4457
4316
  /** @internal */
4458
- export const SearchCompaniesRequest$outboundSchema: z.ZodMiniType<
4459
- SearchCompaniesRequest$Outbound,
4460
- SearchCompaniesRequest
4461
- > = z.object({
4462
- keywords: z.optional(z.string()),
4463
- url: z.optional(z.string()),
4464
- location: z.optional(z.array(z.string())),
4465
- industry: z.optional(z.array(z.string())),
4466
- companySize: z.optional(z.array(SearchCompaniesCompanySize$outboundSchema)),
4467
- start: z.optional(z.int()),
4468
- count: z.optional(z.int()),
4469
- });
4317
+ export const ItemsMedia$inboundSchema: z.ZodMiniType<ItemsMedia, unknown> = z
4318
+ .object({
4319
+ type: ItemsMediaType$inboundSchema,
4320
+ urls: z.array(types.string()),
4321
+ title: types.optional(types.string()),
4322
+ thumbnailUrl: types.optional(types.string()),
4323
+ });
4470
4324
 
4471
- export function searchCompaniesRequestToJSON(
4472
- searchCompaniesRequest: SearchCompaniesRequest,
4473
- ): string {
4474
- return JSON.stringify(
4475
- SearchCompaniesRequest$outboundSchema.parse(searchCompaniesRequest),
4325
+ export function itemsMediaFromJSON(
4326
+ jsonString: string,
4327
+ ): SafeParseResult<ItemsMedia, SDKValidationError> {
4328
+ return safeParse(
4329
+ jsonString,
4330
+ (x) => ItemsMedia$inboundSchema.parse(JSON.parse(x)),
4331
+ `Failed to parse 'ItemsMedia' from JSON`,
4476
4332
  );
4477
4333
  }
4478
4334
 
4479
4335
  /** @internal */
4480
- export const SearchCompaniesCategory$inboundSchema: z.ZodMiniEnum<
4481
- typeof SearchCompaniesCategory
4482
- > = z.enum(SearchCompaniesCategory);
4336
+ export const ItemsPost$inboundSchema: z.ZodMiniType<ItemsPost, unknown> = z
4337
+ .object({
4338
+ type: ItemsTypePost$inboundSchema,
4339
+ postUrl: types.string(),
4340
+ text: types.string(),
4341
+ date: types.number(),
4342
+ likesCount: types.number(),
4343
+ commentsCount: types.number(),
4344
+ sharesCount: types.number(),
4345
+ postUrn: types.string(),
4346
+ postId: types.string(),
4347
+ author: z.lazy(() => ItemsAuthor$inboundSchema),
4348
+ isRepost: types.boolean(),
4349
+ media: types.optional(z.lazy(() => ItemsMedia$inboundSchema)),
4350
+ });
4483
4351
 
4484
- /** @internal */
4485
- export const SearchCompaniesType$inboundSchema: z.ZodMiniEnum<
4486
- typeof SearchCompaniesType
4487
- > = z.enum(SearchCompaniesType);
4352
+ export function itemsPostFromJSON(
4353
+ jsonString: string,
4354
+ ): SafeParseResult<ItemsPost, SDKValidationError> {
4355
+ return safeParse(
4356
+ jsonString,
4357
+ (x) => ItemsPost$inboundSchema.parse(JSON.parse(x)),
4358
+ `Failed to parse 'ItemsPost' from JSON`,
4359
+ );
4360
+ }
4488
4361
 
4489
4362
  /** @internal */
4490
- export const SearchCompaniesItem$inboundSchema: z.ZodMiniType<
4491
- SearchCompaniesItem,
4492
- unknown
4493
- > = z.object({
4494
- type: SearchCompaniesType$inboundSchema,
4495
- name: types.string(),
4496
- profileUrl: types.nullable(types.string()),
4497
- summary: types.nullable(types.string()),
4498
- industry: types.nullable(types.string()),
4499
- location: types.nullable(types.string()),
4500
- followersCount: types.nullable(types.number()),
4501
- });
4363
+ export const Items$inboundSchema: z.ZodMiniType<Items, unknown> = smartUnion([
4364
+ z.array(z.lazy(() => ItemsPost$inboundSchema)),
4365
+ z.array(z.lazy(() => ItemsPeople$inboundSchema)),
4366
+ z.array(z.lazy(() => ItemsCompany$inboundSchema)),
4367
+ z.array(z.lazy(() => ItemsJob$inboundSchema)),
4368
+ ]);
4502
4369
 
4503
- export function searchCompaniesItemFromJSON(
4370
+ export function itemsFromJSON(
4504
4371
  jsonString: string,
4505
- ): SafeParseResult<SearchCompaniesItem, SDKValidationError> {
4372
+ ): SafeParseResult<Items, SDKValidationError> {
4506
4373
  return safeParse(
4507
4374
  jsonString,
4508
- (x) => SearchCompaniesItem$inboundSchema.parse(JSON.parse(x)),
4509
- `Failed to parse 'SearchCompaniesItem' from JSON`,
4375
+ (x) => Items$inboundSchema.parse(JSON.parse(x)),
4376
+ `Failed to parse 'Items' from JSON`,
4510
4377
  );
4511
4378
  }
4512
4379
 
4513
4380
  /** @internal */
4514
- export const SearchCompaniesPaging$inboundSchema: z.ZodMiniType<
4515
- SearchCompaniesPaging,
4381
+ export const SearchPagingResponseBody$inboundSchema: z.ZodMiniType<
4382
+ SearchPagingResponseBody,
4516
4383
  unknown
4517
4384
  > = z.object({
4518
4385
  start: types.number(),
@@ -4520,37 +4387,42 @@ export const SearchCompaniesPaging$inboundSchema: z.ZodMiniType<
4520
4387
  total: types.number(),
4521
4388
  });
4522
4389
 
4523
- export function searchCompaniesPagingFromJSON(
4390
+ export function searchPagingResponseBodyFromJSON(
4524
4391
  jsonString: string,
4525
- ): SafeParseResult<SearchCompaniesPaging, SDKValidationError> {
4392
+ ): SafeParseResult<SearchPagingResponseBody, SDKValidationError> {
4526
4393
  return safeParse(
4527
4394
  jsonString,
4528
- (x) => SearchCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
4529
- `Failed to parse 'SearchCompaniesPaging' from JSON`,
4395
+ (x) => SearchPagingResponseBody$inboundSchema.parse(JSON.parse(x)),
4396
+ `Failed to parse 'SearchPagingResponseBody' from JSON`,
4530
4397
  );
4531
4398
  }
4532
4399
 
4533
4400
  /** @internal */
4534
- export const SearchCompaniesResponse$inboundSchema: z.ZodMiniType<
4535
- SearchCompaniesResponse,
4401
+ export const SearchResponse$inboundSchema: z.ZodMiniType<
4402
+ SearchResponse,
4536
4403
  unknown
4537
4404
  > = z.object({
4538
4405
  success: types.literal(true),
4539
- category: SearchCompaniesCategory$inboundSchema,
4540
- items: z.array(z.lazy(() => SearchCompaniesItem$inboundSchema)),
4541
- paging: z.lazy(() => SearchCompaniesPaging$inboundSchema),
4406
+ category: SearchCategoryResponseBody$inboundSchema,
4407
+ items: smartUnion([
4408
+ z.array(z.lazy(() => ItemsPost$inboundSchema)),
4409
+ z.array(z.lazy(() => ItemsPeople$inboundSchema)),
4410
+ z.array(z.lazy(() => ItemsCompany$inboundSchema)),
4411
+ z.array(z.lazy(() => ItemsJob$inboundSchema)),
4412
+ ]),
4413
+ paging: z.lazy(() => SearchPagingResponseBody$inboundSchema),
4542
4414
  hasMore: types.boolean(),
4543
4415
  creditsUsed: types.number(),
4544
4416
  retryAfter: types.number(),
4545
4417
  });
4546
4418
 
4547
- export function searchCompaniesResponseFromJSON(
4419
+ export function searchResponseFromJSON(
4548
4420
  jsonString: string,
4549
- ): SafeParseResult<SearchCompaniesResponse, SDKValidationError> {
4421
+ ): SafeParseResult<SearchResponse, SDKValidationError> {
4550
4422
  return safeParse(
4551
4423
  jsonString,
4552
- (x) => SearchCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
4553
- `Failed to parse 'SearchCompaniesResponse' from JSON`,
4424
+ (x) => SearchResponse$inboundSchema.parse(JSON.parse(x)),
4425
+ `Failed to parse 'SearchResponse' from JSON`,
4554
4426
  );
4555
4427
  }
4556
4428
 
@@ -4903,3 +4775,119 @@ export function searchPeopleResponseFromJSON(
4903
4775
  `Failed to parse 'SearchPeopleResponse' from JSON`,
4904
4776
  );
4905
4777
  }
4778
+
4779
+ /** @internal */
4780
+ export const SearchCompaniesCompanySize$outboundSchema: z.ZodMiniEnum<
4781
+ typeof SearchCompaniesCompanySize
4782
+ > = z.enum(SearchCompaniesCompanySize);
4783
+
4784
+ /** @internal */
4785
+ export type SearchCompaniesRequest$Outbound = {
4786
+ keywords?: string | undefined;
4787
+ url?: string | undefined;
4788
+ location?: Array<string> | undefined;
4789
+ industry?: Array<string> | undefined;
4790
+ companySize?: Array<string> | undefined;
4791
+ start?: number | undefined;
4792
+ count?: number | undefined;
4793
+ };
4794
+
4795
+ /** @internal */
4796
+ export const SearchCompaniesRequest$outboundSchema: z.ZodMiniType<
4797
+ SearchCompaniesRequest$Outbound,
4798
+ SearchCompaniesRequest
4799
+ > = z.object({
4800
+ keywords: z.optional(z.string()),
4801
+ url: z.optional(z.string()),
4802
+ location: z.optional(z.array(z.string())),
4803
+ industry: z.optional(z.array(z.string())),
4804
+ companySize: z.optional(z.array(SearchCompaniesCompanySize$outboundSchema)),
4805
+ start: z.optional(z.int()),
4806
+ count: z.optional(z.int()),
4807
+ });
4808
+
4809
+ export function searchCompaniesRequestToJSON(
4810
+ searchCompaniesRequest: SearchCompaniesRequest,
4811
+ ): string {
4812
+ return JSON.stringify(
4813
+ SearchCompaniesRequest$outboundSchema.parse(searchCompaniesRequest),
4814
+ );
4815
+ }
4816
+
4817
+ /** @internal */
4818
+ export const SearchCompaniesCategory$inboundSchema: z.ZodMiniEnum<
4819
+ typeof SearchCompaniesCategory
4820
+ > = z.enum(SearchCompaniesCategory);
4821
+
4822
+ /** @internal */
4823
+ export const SearchCompaniesType$inboundSchema: z.ZodMiniEnum<
4824
+ typeof SearchCompaniesType
4825
+ > = z.enum(SearchCompaniesType);
4826
+
4827
+ /** @internal */
4828
+ export const SearchCompaniesItem$inboundSchema: z.ZodMiniType<
4829
+ SearchCompaniesItem,
4830
+ unknown
4831
+ > = z.object({
4832
+ type: SearchCompaniesType$inboundSchema,
4833
+ name: types.string(),
4834
+ profileUrl: types.nullable(types.string()),
4835
+ summary: types.nullable(types.string()),
4836
+ industry: types.nullable(types.string()),
4837
+ location: types.nullable(types.string()),
4838
+ followersCount: types.nullable(types.number()),
4839
+ });
4840
+
4841
+ export function searchCompaniesItemFromJSON(
4842
+ jsonString: string,
4843
+ ): SafeParseResult<SearchCompaniesItem, SDKValidationError> {
4844
+ return safeParse(
4845
+ jsonString,
4846
+ (x) => SearchCompaniesItem$inboundSchema.parse(JSON.parse(x)),
4847
+ `Failed to parse 'SearchCompaniesItem' from JSON`,
4848
+ );
4849
+ }
4850
+
4851
+ /** @internal */
4852
+ export const SearchCompaniesPaging$inboundSchema: z.ZodMiniType<
4853
+ SearchCompaniesPaging,
4854
+ unknown
4855
+ > = z.object({
4856
+ start: types.number(),
4857
+ count: types.number(),
4858
+ total: types.number(),
4859
+ });
4860
+
4861
+ export function searchCompaniesPagingFromJSON(
4862
+ jsonString: string,
4863
+ ): SafeParseResult<SearchCompaniesPaging, SDKValidationError> {
4864
+ return safeParse(
4865
+ jsonString,
4866
+ (x) => SearchCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
4867
+ `Failed to parse 'SearchCompaniesPaging' from JSON`,
4868
+ );
4869
+ }
4870
+
4871
+ /** @internal */
4872
+ export const SearchCompaniesResponse$inboundSchema: z.ZodMiniType<
4873
+ SearchCompaniesResponse,
4874
+ unknown
4875
+ > = z.object({
4876
+ success: types.literal(true),
4877
+ category: SearchCompaniesCategory$inboundSchema,
4878
+ items: z.array(z.lazy(() => SearchCompaniesItem$inboundSchema)),
4879
+ paging: z.lazy(() => SearchCompaniesPaging$inboundSchema),
4880
+ hasMore: types.boolean(),
4881
+ creditsUsed: types.number(),
4882
+ retryAfter: types.number(),
4883
+ });
4884
+
4885
+ export function searchCompaniesResponseFromJSON(
4886
+ jsonString: string,
4887
+ ): SafeParseResult<SearchCompaniesResponse, SDKValidationError> {
4888
+ return safeParse(
4889
+ jsonString,
4890
+ (x) => SearchCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
4891
+ `Failed to parse 'SearchCompaniesResponse' from JSON`,
4892
+ );
4893
+ }