bereach 1.4.0 → 1.4.3

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