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
@@ -703,136 +703,6 @@ export type SearchSalesNavResponse =
703
703
  | Companies
704
704
  | discriminatedUnionTypes.Unknown<"category">;
705
705
 
706
- /**
707
- * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
708
- */
709
- export const SearchSalesNavCompaniesCategoryRequest = {
710
- People: "people",
711
- Companies: "companies",
712
- } as const;
713
- /**
714
- * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
715
- */
716
- export type SearchSalesNavCompaniesCategoryRequest = ClosedEnum<
717
- typeof SearchSalesNavCompaniesCategoryRequest
718
- >;
719
-
720
- /**
721
- * Industry filter with include/exclude. Use LinkedIn industry IDs. Resolve via /search/linkedin/parameters with type='INDUSTRY'.
722
- */
723
- export type SearchSalesNavCompaniesIndustry = {
724
- /**
725
- * IDs to include
726
- */
727
- include?: Array<string> | undefined;
728
- /**
729
- * IDs to exclude
730
- */
731
- exclude?: Array<string> | undefined;
732
- };
733
-
734
- export type SearchSalesNavCompaniesRequest = {
735
- /**
736
- * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
737
- */
738
- category?: SearchSalesNavCompaniesCategoryRequest | undefined;
739
- /**
740
- * Sales Navigator search URL — paste directly from your browser. Category and filters are extracted automatically. Explicit params override URL-derived values. Example: https://www.linkedin.com/sales/search/people?query=...
741
- */
742
- url?: string | undefined;
743
- /**
744
- * Search keywords. Supports LinkedIn Boolean syntax: use double quotes for exact phrases, AND/OR/NOT operators (UPPERCASE), and parentheses for grouping.
745
- */
746
- keywords?: string | undefined;
747
- /**
748
- * Industry filter with include/exclude. Use LinkedIn industry IDs. Resolve via /search/linkedin/parameters with type='INDUSTRY'.
749
- */
750
- industry?: SearchSalesNavCompaniesIndustry | undefined;
751
- /**
752
- * Geography IDs (people & companies). Resolve via /search/linkedin/parameters with type='GEO'.
753
- */
754
- location?: Array<string> | undefined;
755
- /**
756
- * Employee count ranges (companies only). Values: 'A'=1-10, 'B'=11-50, 'C'=51-200, 'D'=201-500, 'E'=501-1K, 'F'=1K-5K, 'G'=5K-10K, 'H'=10K+.
757
- */
758
- companyHeadcount?: Array<string> | undefined;
759
- /**
760
- * Company types (companies only). Values: 'C'=Public, 'D'=Educational, 'N'=Non-profit, 'O'=Privately Held, 'P'=Partnership, 'S'=Self-Employed, 'G'=Government.
761
- */
762
- companyType?: Array<string> | undefined;
763
- /**
764
- * Annual revenue ranges (companies only).
765
- */
766
- annualRevenue?: Array<string> | undefined;
767
- /**
768
- * Pagination offset (default 0).
769
- */
770
- start?: number | undefined;
771
- /**
772
- * Results per page (default 25, max 25).
773
- */
774
- count?: number | undefined;
775
- };
776
-
777
- export const SearchSalesNavCompaniesCategoryCompanies = {
778
- Companies: "companies",
779
- } as const;
780
- export type SearchSalesNavCompaniesCategoryCompanies = ClosedEnum<
781
- typeof SearchSalesNavCompaniesCategoryCompanies
782
- >;
783
-
784
- export const SearchSalesNavCompaniesType = {
785
- Company: "COMPANY",
786
- } as const;
787
- export type SearchSalesNavCompaniesType = ClosedEnum<
788
- typeof SearchSalesNavCompaniesType
789
- >;
790
-
791
- export type SearchSalesNavCompaniesItem = {
792
- type: SearchSalesNavCompaniesType;
793
- /**
794
- * Sales Navigator company ID
795
- */
796
- id: string;
797
- name: string;
798
- /**
799
- * Sales Navigator company URL
800
- */
801
- profileUrl: string | null;
802
- summary: string | null;
803
- industry: string | null;
804
- location: string | null;
805
- /**
806
- * Employee count or range
807
- */
808
- headcount: string | null;
809
- };
810
-
811
- export type SearchSalesNavCompaniesPaging = {
812
- start: number;
813
- count: number;
814
- total: number;
815
- };
816
-
817
- /**
818
- * Sales Navigator company search results
819
- */
820
- export type SearchSalesNavCompaniesResponse = {
821
- success: true;
822
- category: SearchSalesNavCompaniesCategoryCompanies;
823
- items: Array<SearchSalesNavCompaniesItem>;
824
- paging: SearchSalesNavCompaniesPaging;
825
- hasMore: boolean;
826
- /**
827
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
828
- */
829
- creditsUsed: number;
830
- /**
831
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
832
- */
833
- retryAfter: number;
834
- };
835
-
836
706
  /**
837
707
  * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
838
708
  */
@@ -1057,129 +927,126 @@ export type SearchSalesNavPeopleResponse = {
1057
927
  retryAfter: number;
1058
928
  };
1059
929
 
1060
- export type ConnectProfileRequest = {
1061
- /**
1062
- * 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...).
1063
- */
1064
- profile: string;
1065
- /**
1066
- * Campaign identifier for deduplication. Dedup by profile automatically.
1067
- */
1068
- campaignSlug?: string | undefined;
1069
- /**
1070
- * Deprecated. Use campaignSlug only.
1071
- *
1072
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1073
- */
1074
- actionSlug?: string | undefined;
1075
- };
930
+ /**
931
+ * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
932
+ */
933
+ export const SearchSalesNavCompaniesCategoryRequest = {
934
+ People: "people",
935
+ Companies: "companies",
936
+ } as const;
937
+ /**
938
+ * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
939
+ */
940
+ export type SearchSalesNavCompaniesCategoryRequest = ClosedEnum<
941
+ typeof SearchSalesNavCompaniesCategoryRequest
942
+ >;
1076
943
 
1077
944
  /**
1078
- * Connection request sent successfully
945
+ * Industry filter with include/exclude. Use LinkedIn industry IDs. Resolve via /search/linkedin/parameters with type='INDUSTRY'.
1079
946
  */
1080
- export type ConnectProfileResponse = {
1081
- success: true;
1082
- message: string;
1083
- /**
1084
- * True if a connection request was already successfully sent to this profile this week
1085
- */
1086
- duplicate?: boolean | undefined;
947
+ export type SearchSalesNavCompaniesIndustry = {
1087
948
  /**
1088
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
949
+ * IDs to include
1089
950
  */
1090
- creditsUsed: number;
951
+ include?: Array<string> | undefined;
1091
952
  /**
1092
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
953
+ * IDs to exclude
1093
954
  */
1094
- retryAfter: number;
955
+ exclude?: Array<string> | undefined;
1095
956
  };
1096
957
 
1097
- export type SendMessageRequest = {
958
+ export type SearchSalesNavCompaniesRequest = {
1098
959
  /**
1099
- * Accepts full LinkedIn profile URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:member:123456).
960
+ * Type of Sales Navigator search: 'people' (leads) or 'companies' (accounts). Required unless url is provided.
1100
961
  */
1101
- profile?: string | undefined;
962
+ category?: SearchSalesNavCompaniesCategoryRequest | undefined;
1102
963
  /**
1103
- * LinkedIn conversation URN. When provided, bypasses profile URL lookup and replies to an existing conversation.
964
+ * Sales Navigator search URL paste directly from your browser. Category and filters are extracted automatically. Explicit params override URL-derived values. Example: https://www.linkedin.com/sales/search/people?query=...
1104
965
  */
1105
- conversationUrn?: string | undefined;
966
+ url?: string | undefined;
1106
967
  /**
1107
- * Message content to send
968
+ * Search keywords. Supports LinkedIn Boolean syntax: use double quotes for exact phrases, AND/OR/NOT operators (UPPERCASE), and parentheses for grouping.
1108
969
  */
1109
- message: string;
970
+ keywords?: string | undefined;
1110
971
  /**
1111
- * Campaign identifier for deduplication. Dedup by profile automatically.
972
+ * Industry filter with include/exclude. Use LinkedIn industry IDs. Resolve via /search/linkedin/parameters with type='INDUSTRY'.
1112
973
  */
1113
- campaignSlug?: string | undefined;
974
+ industry?: SearchSalesNavCompaniesIndustry | undefined;
1114
975
  /**
1115
- * Deprecated. Use campaignSlug only.
1116
- *
1117
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
976
+ * Geography IDs (people & companies). Resolve via /search/linkedin/parameters with type='GEO'.
1118
977
  */
1119
- actionSlug?: string | undefined;
1120
- };
1121
-
1122
- /**
1123
- * Message sent successfully
1124
- */
1125
- export type SendMessageResponse = {
1126
- success: true;
1127
- messageId: string;
978
+ location?: Array<string> | undefined;
1128
979
  /**
1129
- * True if this action was already executed for the given campaignSlug + target.
980
+ * Employee count ranges (companies only). Values: 'A'=1-10, 'B'=11-50, 'C'=51-200, 'D'=201-500, 'E'=501-1K, 'F'=1K-5K, 'G'=5K-10K, 'H'=10K+.
1130
981
  */
1131
- duplicate?: boolean | undefined;
982
+ companyHeadcount?: Array<string> | undefined;
1132
983
  /**
1133
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
984
+ * Company types (companies only). Values: 'C'=Public, 'D'=Educational, 'N'=Non-profit, 'O'=Privately Held, 'P'=Partnership, 'S'=Self-Employed, 'G'=Government.
1134
985
  */
1135
- creditsUsed: number;
986
+ companyType?: Array<string> | undefined;
1136
987
  /**
1137
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
988
+ * Annual revenue ranges (companies only).
1138
989
  */
1139
- retryAfter: number;
1140
- };
1141
-
1142
- export type ListSentInvitationsRequest = {
990
+ annualRevenue?: Array<string> | undefined;
1143
991
  /**
1144
- * Pagination offset
992
+ * Pagination offset (default 0).
1145
993
  */
1146
994
  start?: number | undefined;
1147
995
  /**
1148
- * Number of invitations to return
996
+ * Results per page (default 25, max 25).
1149
997
  */
1150
998
  count?: number | undefined;
1151
999
  };
1152
1000
 
1153
- export type ToMember = {
1001
+ export const SearchSalesNavCompaniesCategoryCompanies = {
1002
+ Companies: "companies",
1003
+ } as const;
1004
+ export type SearchSalesNavCompaniesCategoryCompanies = ClosedEnum<
1005
+ typeof SearchSalesNavCompaniesCategoryCompanies
1006
+ >;
1007
+
1008
+ export const SearchSalesNavCompaniesType = {
1009
+ Company: "COMPANY",
1010
+ } as const;
1011
+ export type SearchSalesNavCompaniesType = ClosedEnum<
1012
+ typeof SearchSalesNavCompaniesType
1013
+ >;
1014
+
1015
+ export type SearchSalesNavCompaniesItem = {
1016
+ type: SearchSalesNavCompaniesType;
1017
+ /**
1018
+ * Sales Navigator company ID
1019
+ */
1020
+ id: string;
1154
1021
  name: string;
1155
- headline: string | null;
1022
+ /**
1023
+ * Sales Navigator company URL
1024
+ */
1156
1025
  profileUrl: string | null;
1157
- profilePicture: string | null;
1158
- publicIdentifier: string | null;
1159
- profileUrn: string | null;
1026
+ summary: string | null;
1027
+ industry: string | null;
1028
+ location: string | null;
1029
+ /**
1030
+ * Employee count or range
1031
+ */
1032
+ headcount: string | null;
1160
1033
  };
1161
1034
 
1162
- export type ListSentInvitationsInvitation = {
1163
- invitationId: string;
1164
- invitationUrn: string;
1165
- entityUrn: string;
1166
- sentAt: string | null;
1167
- message: string | null;
1168
- targetProfileId: string | null;
1169
- targetFirstName: string | null;
1170
- targetLastName: string | null;
1171
- toMember: ToMember | null;
1035
+ export type SearchSalesNavCompaniesPaging = {
1036
+ start: number;
1037
+ count: number;
1038
+ total: number;
1172
1039
  };
1173
1040
 
1174
1041
  /**
1175
- * Sent invitations
1042
+ * Sales Navigator company search results
1176
1043
  */
1177
- export type ListSentInvitationsResponse = {
1044
+ export type SearchSalesNavCompaniesResponse = {
1178
1045
  success: true;
1179
- invitations: Array<ListSentInvitationsInvitation>;
1180
- total: number;
1181
- start: number;
1182
- count: number;
1046
+ category: SearchSalesNavCompaniesCategoryCompanies;
1047
+ items: Array<SearchSalesNavCompaniesItem>;
1048
+ paging: SearchSalesNavCompaniesPaging;
1049
+ hasMore: boolean;
1183
1050
  /**
1184
1051
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1185
1052
  */
@@ -1190,18 +1057,33 @@ export type ListSentInvitationsResponse = {
1190
1057
  retryAfter: number;
1191
1058
  };
1192
1059
 
1193
- export type FollowCompanyRequest = {
1060
+ export type ConnectProfileRequest = {
1194
1061
  /**
1195
- * LinkedIn company URL or URN
1062
+ * 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...).
1196
1063
  */
1197
- company: string;
1064
+ profile: string;
1065
+ /**
1066
+ * Campaign identifier for deduplication. Dedup by profile automatically.
1067
+ */
1068
+ campaignSlug?: string | undefined;
1069
+ /**
1070
+ * Deprecated. Use campaignSlug only.
1071
+ *
1072
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1073
+ */
1074
+ actionSlug?: string | undefined;
1198
1075
  };
1199
1076
 
1200
1077
  /**
1201
- * Company followed
1078
+ * Connection request sent successfully
1202
1079
  */
1203
- export type FollowCompanyResponse = {
1080
+ export type ConnectProfileResponse = {
1204
1081
  success: true;
1082
+ message: string;
1083
+ /**
1084
+ * True if a connection request was already successfully sent to this profile this week
1085
+ */
1086
+ duplicate?: boolean | undefined;
1205
1087
  /**
1206
1088
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1207
1089
  */
@@ -1335,6 +1217,51 @@ export type AcceptInvitationResponse = {
1335
1217
  retryAfter: number;
1336
1218
  };
1337
1219
 
1220
+ export type SendMessageRequest = {
1221
+ /**
1222
+ * Accepts full LinkedIn profile URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:member:123456).
1223
+ */
1224
+ profile?: string | undefined;
1225
+ /**
1226
+ * LinkedIn conversation URN. When provided, bypasses profile URL lookup and replies to an existing conversation.
1227
+ */
1228
+ conversationUrn?: string | undefined;
1229
+ /**
1230
+ * Message content to send
1231
+ */
1232
+ message: string;
1233
+ /**
1234
+ * Campaign identifier for deduplication. Dedup by profile automatically.
1235
+ */
1236
+ campaignSlug?: string | undefined;
1237
+ /**
1238
+ * Deprecated. Use campaignSlug only.
1239
+ *
1240
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1241
+ */
1242
+ actionSlug?: string | undefined;
1243
+ };
1244
+
1245
+ /**
1246
+ * Message sent successfully
1247
+ */
1248
+ export type SendMessageResponse = {
1249
+ success: true;
1250
+ messageId: string;
1251
+ /**
1252
+ * True if this action was already executed for the given campaignSlug + target.
1253
+ */
1254
+ duplicate?: boolean | undefined;
1255
+ /**
1256
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1257
+ */
1258
+ creditsUsed: number;
1259
+ /**
1260
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1261
+ */
1262
+ retryAfter: number;
1263
+ };
1264
+
1338
1265
  export type ReplyToCommentRequest = {
1339
1266
  /**
1340
1267
  * LinkedIn comment URN (e.g., 'urn:li:comment:(activity:7399026485694537728,7399230513867026433)')
@@ -1382,7 +1309,7 @@ export type ReplyToCommentResponse = {
1382
1309
  /**
1383
1310
  * Reaction type (default: LIKE)
1384
1311
  */
1385
- export const LikePostReactionType = {
1312
+ export const LikeCommentReactionType = {
1386
1313
  Like: "LIKE",
1387
1314
  Love: "LOVE",
1388
1315
  Celebrate: "CELEBRATE",
@@ -1393,23 +1320,21 @@ export const LikePostReactionType = {
1393
1320
  /**
1394
1321
  * Reaction type (default: LIKE)
1395
1322
  */
1396
- export type LikePostReactionType = ClosedEnum<typeof LikePostReactionType>;
1323
+ export type LikeCommentReactionType = ClosedEnum<
1324
+ typeof LikeCommentReactionType
1325
+ >;
1397
1326
 
1398
- export type LikePostRequest = {
1327
+ export type LikeCommentRequest = {
1399
1328
  /**
1400
- * LinkedIn post URL (e.g., 'https://www.linkedin.com/feed/update/urn:li:activity:7399026485694537728/')
1329
+ * LinkedIn comment URN (e.g., 'urn:li:comment:(activity:7399026485694537728,7399230513867026433)')
1401
1330
  */
1402
- postUrl: string;
1331
+ commentUrn: string;
1403
1332
  /**
1404
1333
  * Reaction type (default: LIKE)
1405
1334
  */
1406
- reactionType?: LikePostReactionType | undefined;
1407
- /**
1408
- * Act as a company page. Pass the numeric company ID from listCompanyPages. Requires admin access.
1409
- */
1410
- companyId?: string | undefined;
1335
+ reactionType?: LikeCommentReactionType | undefined;
1411
1336
  /**
1412
- * Campaign identifier for deduplication. Dedup by postUrl automatically.
1337
+ * Campaign identifier for deduplication. Dedup by commentUrn automatically.
1413
1338
  */
1414
1339
  campaignSlug?: string | undefined;
1415
1340
  /**
@@ -1421,9 +1346,9 @@ export type LikePostRequest = {
1421
1346
  };
1422
1347
 
1423
1348
  /**
1424
- * Post liked successfully
1349
+ * Comment liked successfully
1425
1350
  */
1426
- export type LikePostResponse = {
1351
+ export type LikeCommentResponse = {
1427
1352
  success: true;
1428
1353
  /**
1429
1354
  * Resource key of the created reaction
@@ -1443,98 +1368,111 @@ export type LikePostResponse = {
1443
1368
  retryAfter: number;
1444
1369
  };
1445
1370
 
1446
- export type WithdrawInvitationRequest = {
1447
- /**
1448
- * Full invitation URN (e.g. urn:li:fs_relInvitation:123) or numeric invitation ID
1449
- */
1450
- invitationUrn: string;
1451
- };
1371
+ /**
1372
+ * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
1373
+ */
1374
+ export const PublishPostMode = {
1375
+ Scheduled: "scheduled",
1376
+ Instant: "instant",
1377
+ } as const;
1378
+ /**
1379
+ * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
1380
+ */
1381
+ export type PublishPostMode = ClosedEnum<typeof PublishPostMode>;
1452
1382
 
1453
1383
  /**
1454
- * Invitation withdrawn
1384
+ * Post visibility
1455
1385
  */
1456
- export type WithdrawInvitationResponse = {
1457
- success: true;
1458
- message: string;
1386
+ export const Visibility = {
1387
+ Anyone: "ANYONE",
1388
+ Connections: "CONNECTIONS",
1389
+ } as const;
1390
+ /**
1391
+ * Post visibility
1392
+ */
1393
+ export type Visibility = ClosedEnum<typeof Visibility>;
1394
+
1395
+ export type Mention = {
1459
1396
  /**
1460
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1397
+ * LinkedIn profile URN of the mentioned person (e.g., 'urn:li:fsd_profile:ACoAABZ0Qo4B...')
1461
1398
  */
1462
- creditsUsed: number;
1399
+ profileUrn: string;
1463
1400
  /**
1464
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1401
+ * Start character offset in the text where the mention begins
1465
1402
  */
1466
- retryAfter: number;
1467
- };
1468
-
1469
- export type FollowProfileRequest = {
1403
+ start: number;
1470
1404
  /**
1471
- * Accepts full LinkedIn profile URLs (e.g. linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
1405
+ * Length of the mention text in characters
1472
1406
  */
1473
- profile: string;
1407
+ length: number;
1474
1408
  };
1475
1409
 
1476
- /**
1477
- * Profile followed
1478
- */
1479
- export type FollowProfileResponse = {
1480
- success: true;
1481
- message: string;
1410
+ export type PublishPostRequest = {
1482
1411
  /**
1483
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1412
+ * Post commentary text
1484
1413
  */
1485
- creditsUsed: number;
1414
+ text: string;
1486
1415
  /**
1487
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1416
+ * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
1488
1417
  */
1489
- retryAfter: number;
1490
- };
1491
-
1492
- export type EditPostRequest = {
1418
+ mode: PublishPostMode;
1493
1419
  /**
1494
- * LinkedIn post URL or URN
1420
+ * Timestamp in milliseconds for scheduled posts (required when mode='scheduled')
1495
1421
  */
1496
- postUrl: string;
1422
+ scheduledAt?: number | undefined;
1497
1423
  /**
1498
- * New text content for the post
1424
+ * If provided, post will be published as this company page (organization ID). User must be admin of the page.
1499
1425
  */
1500
- text: string;
1501
- };
1502
-
1503
- /**
1504
- * Post edited
1505
- */
1506
- export type EditPostResponse = {
1507
- success: true;
1426
+ companyId?: string | undefined;
1508
1427
  /**
1509
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1428
+ * URL of an image to attach to the post. Mutually exclusive with imageBase64.
1510
1429
  */
1511
- creditsUsed: number;
1430
+ imageUrl?: string | undefined;
1512
1431
  /**
1513
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1432
+ * Base64-encoded image data to attach to the post (e.g. data:image/png;base64,iVBOR... or raw base64). Mutually exclusive with imageUrl.
1514
1433
  */
1515
- retryAfter: number;
1516
- };
1517
-
1518
- export type EditCommentRequest = {
1434
+ imageBase64?: string | undefined;
1519
1435
  /**
1520
- * urn:li:fsd_comment:(COMMENT_ID,urn:li:ugcPost:POST_ID) - from comment API response
1436
+ * Filename for the uploaded image (e.g. 'banner.png'). Used with imageBase64. Defaults to 'image.jpg'.
1521
1437
  */
1522
- fsdCommentUrn?: string | undefined;
1438
+ imageFileName?: string | undefined;
1523
1439
  /**
1524
- * Legacy comment URN format
1440
+ * Post visibility
1525
1441
  */
1526
- commentUrn?: string | undefined;
1442
+ visibility?: Visibility | undefined;
1527
1443
  /**
1528
- * New comment text
1444
+ * Profile mentions with text positions
1529
1445
  */
1530
- text: string;
1446
+ mentions?: Array<Mention> | undefined;
1447
+ /**
1448
+ * Campaign identifier for deduplication.
1449
+ */
1450
+ campaignSlug?: string | undefined;
1451
+ /**
1452
+ * Deprecated. Use campaignSlug only.
1453
+ *
1454
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1455
+ */
1456
+ actionSlug?: string | undefined;
1531
1457
  };
1532
1458
 
1533
1459
  /**
1534
- * Comment edited
1460
+ * Post published or scheduled successfully
1535
1461
  */
1536
- export type EditCommentResponse = {
1462
+ export type PublishPostResponse = {
1537
1463
  success: true;
1464
+ /**
1465
+ * URN of the created share (e.g., 'urn:li:fsd_share:urn:li:share:123...')
1466
+ */
1467
+ shareUrn: string;
1468
+ /**
1469
+ * Activity URN (only available for instant mode)
1470
+ */
1471
+ activityUrn: string | null;
1472
+ /**
1473
+ * True if this action was already executed for the given campaignSlug + target.
1474
+ */
1475
+ duplicate?: boolean | undefined;
1538
1476
  /**
1539
1477
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1540
1478
  */
@@ -1545,23 +1483,48 @@ export type EditCommentResponse = {
1545
1483
  retryAfter: number;
1546
1484
  };
1547
1485
 
1548
- export type RepostPostRequest = {
1486
+ export type CreateCommentRequest = {
1549
1487
  /**
1550
- * LinkedIn post URL to repost
1488
+ * LinkedIn post URL (e.g., 'https://www.linkedin.com/feed/update/urn:li:activity:7399026485694537728/')
1551
1489
  */
1552
1490
  postUrl: string;
1553
1491
  /**
1554
- * Quote text for the repost (required by LinkedIn)
1492
+ * Comment text
1555
1493
  */
1556
- text: string;
1494
+ message: string;
1495
+ /**
1496
+ * If provided, comment will be posted as this company page (organization ID). User must be admin of the page.
1497
+ */
1498
+ companyId?: string | undefined;
1499
+ /**
1500
+ * Campaign identifier for deduplication. Dedup by postUrl automatically.
1501
+ */
1502
+ campaignSlug?: string | undefined;
1503
+ /**
1504
+ * Deprecated. Use campaignSlug only.
1505
+ *
1506
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1507
+ */
1508
+ actionSlug?: string | undefined;
1557
1509
  };
1558
1510
 
1559
1511
  /**
1560
- * Post reposted
1512
+ * Comment posted successfully
1561
1513
  */
1562
- export type RepostPostResponse = {
1514
+ export type CreateCommentResponse = {
1563
1515
  success: true;
1564
- shareUrn: string;
1516
+ /**
1517
+ * URN of the created comment (e.g., 'urn:li:comment:(activity:PARENT_ID,COMMENT_ID)')
1518
+ */
1519
+ commentUrn?: string | undefined;
1520
+ /**
1521
+ * FSD-format comment URN for use with the edit comment endpoint.
1522
+ */
1523
+ fsdCommentUrn?: string | undefined;
1524
+ /**
1525
+ * True if this action was already executed for the given campaignSlug + target.
1526
+ */
1527
+ duplicate?: boolean | undefined;
1565
1528
  /**
1566
1529
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1567
1530
  */
@@ -1572,18 +1535,60 @@ export type RepostPostResponse = {
1572
1535
  retryAfter: number;
1573
1536
  };
1574
1537
 
1575
- export type UnlikePostRequest = {
1538
+ /**
1539
+ * Reaction type (default: LIKE)
1540
+ */
1541
+ export const LikePostReactionType = {
1542
+ Like: "LIKE",
1543
+ Love: "LOVE",
1544
+ Celebrate: "CELEBRATE",
1545
+ Support: "SUPPORT",
1546
+ Funny: "FUNNY",
1547
+ Insightful: "INSIGHTFUL",
1548
+ } as const;
1549
+ /**
1550
+ * Reaction type (default: LIKE)
1551
+ */
1552
+ export type LikePostReactionType = ClosedEnum<typeof LikePostReactionType>;
1553
+
1554
+ export type LikePostRequest = {
1576
1555
  /**
1577
- * LinkedIn post URL or URN to unlike
1556
+ * LinkedIn post URL (e.g., 'https://www.linkedin.com/feed/update/urn:li:activity:7399026485694537728/')
1578
1557
  */
1579
1558
  postUrl: string;
1559
+ /**
1560
+ * Reaction type (default: LIKE)
1561
+ */
1562
+ reactionType?: LikePostReactionType | undefined;
1563
+ /**
1564
+ * Act as a company page. Pass the numeric company ID from listCompanyPages. Requires admin access.
1565
+ */
1566
+ companyId?: string | undefined;
1567
+ /**
1568
+ * Campaign identifier for deduplication. Dedup by postUrl automatically.
1569
+ */
1570
+ campaignSlug?: string | undefined;
1571
+ /**
1572
+ * Deprecated. Use campaignSlug only.
1573
+ *
1574
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1575
+ */
1576
+ actionSlug?: string | undefined;
1580
1577
  };
1581
1578
 
1582
1579
  /**
1583
- * Reaction removed
1580
+ * Post liked successfully
1584
1581
  */
1585
- export type UnlikePostResponse = {
1582
+ export type LikePostResponse = {
1586
1583
  success: true;
1584
+ /**
1585
+ * Resource key of the created reaction
1586
+ */
1587
+ resourceKey?: string | undefined;
1588
+ /**
1589
+ * True if this action was already executed for the given campaignSlug + target.
1590
+ */
1591
+ duplicate?: boolean | undefined;
1587
1592
  /**
1588
1593
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1589
1594
  */
@@ -1594,18 +1599,27 @@ export type UnlikePostResponse = {
1594
1599
  retryAfter: number;
1595
1600
  };
1596
1601
 
1597
- export type UnlikeCommentRequest = {
1602
+ export type DeclineInvitationRequest = {
1598
1603
  /**
1599
- * Full comment URN to unlike (e.g. urn:li:comment:(urn:li:activity:123,456))
1604
+ * Invitation ID from the list invitations endpoint
1600
1605
  */
1601
- commentUrn: string;
1606
+ invitationId: string;
1607
+ /**
1608
+ * Shared secret / validation token from the list invitations endpoint
1609
+ */
1610
+ sharedSecret: string;
1611
+ /**
1612
+ * Sender's profile ID (optional, improves accuracy)
1613
+ */
1614
+ senderProfileId?: string | undefined;
1602
1615
  };
1603
1616
 
1604
1617
  /**
1605
- * Reaction removed
1618
+ * Invitation declined
1606
1619
  */
1607
- export type UnlikeCommentResponse = {
1620
+ export type DeclineInvitationResponse = {
1608
1621
  success: true;
1622
+ message: string;
1609
1623
  /**
1610
1624
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1611
1625
  */
@@ -1616,18 +1630,47 @@ export type UnlikeCommentResponse = {
1616
1630
  retryAfter: number;
1617
1631
  };
1618
1632
 
1619
- export type UnsavePostRequest = {
1633
+ export type ListSentInvitationsRequest = {
1620
1634
  /**
1621
- * LinkedIn post URL or URN to save/unsave
1635
+ * Pagination offset
1622
1636
  */
1623
- postUrl: string;
1637
+ start?: number | undefined;
1638
+ /**
1639
+ * Number of invitations to return
1640
+ */
1641
+ count?: number | undefined;
1642
+ };
1643
+
1644
+ export type ToMember = {
1645
+ name: string;
1646
+ headline: string | null;
1647
+ profileUrl: string | null;
1648
+ profilePicture: string | null;
1649
+ publicIdentifier: string | null;
1650
+ profileUrn: string | null;
1651
+ };
1652
+
1653
+ export type ListSentInvitationsInvitation = {
1654
+ invitationId: string;
1655
+ invitationUrn: string;
1656
+ entityUrn: string;
1657
+ sentAt: string | null;
1658
+ message: string | null;
1659
+ targetProfileId: string | null;
1660
+ targetFirstName: string | null;
1661
+ targetLastName: string | null;
1662
+ toMember: ToMember | null;
1624
1663
  };
1625
1664
 
1626
1665
  /**
1627
- * Post unsaved
1666
+ * Sent invitations
1628
1667
  */
1629
- export type UnsavePostResponse = {
1668
+ export type ListSentInvitationsResponse = {
1630
1669
  success: true;
1670
+ invitations: Array<ListSentInvitationsInvitation>;
1671
+ total: number;
1672
+ start: number;
1673
+ count: number;
1631
1674
  /**
1632
1675
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1633
1676
  */
@@ -1638,18 +1681,19 @@ export type UnsavePostResponse = {
1638
1681
  retryAfter: number;
1639
1682
  };
1640
1683
 
1641
- export type UnfollowCompanyRequest = {
1684
+ export type WithdrawInvitationRequest = {
1642
1685
  /**
1643
- * LinkedIn company URL or URN
1686
+ * Full invitation URN (e.g. urn:li:fs_relInvitation:123) or numeric invitation ID
1644
1687
  */
1645
- company: string;
1688
+ invitationUrn: string;
1646
1689
  };
1647
1690
 
1648
1691
  /**
1649
- * Company unfollowed
1692
+ * Invitation withdrawn
1650
1693
  */
1651
- export type UnfollowCompanyResponse = {
1694
+ export type WithdrawInvitationResponse = {
1652
1695
  success: true;
1696
+ message: string;
1653
1697
  /**
1654
1698
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1655
1699
  */
@@ -1660,58 +1704,68 @@ export type UnfollowCompanyResponse = {
1660
1704
  retryAfter: number;
1661
1705
  };
1662
1706
 
1663
- /**
1664
- * Reaction type (default: LIKE)
1665
- */
1666
- export const LikeCommentReactionType = {
1667
- Like: "LIKE",
1668
- Love: "LOVE",
1669
- Celebrate: "CELEBRATE",
1670
- Support: "SUPPORT",
1671
- Funny: "FUNNY",
1672
- Insightful: "INSIGHTFUL",
1673
- } as const;
1674
- /**
1675
- * Reaction type (default: LIKE)
1676
- */
1677
- export type LikeCommentReactionType = ClosedEnum<
1678
- typeof LikeCommentReactionType
1679
- >;
1680
-
1681
- export type LikeCommentRequest = {
1707
+ export type FollowProfileRequest = {
1682
1708
  /**
1683
- * LinkedIn comment URN (e.g., 'urn:li:comment:(activity:7399026485694537728,7399230513867026433)')
1709
+ * Accepts full LinkedIn profile URLs (e.g. linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
1684
1710
  */
1685
- commentUrn: string;
1711
+ profile: string;
1712
+ };
1713
+
1714
+ /**
1715
+ * Profile followed
1716
+ */
1717
+ export type FollowProfileResponse = {
1718
+ success: true;
1719
+ message: string;
1686
1720
  /**
1687
- * Reaction type (default: LIKE)
1721
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1688
1722
  */
1689
- reactionType?: LikeCommentReactionType | undefined;
1723
+ creditsUsed: number;
1690
1724
  /**
1691
- * Campaign identifier for deduplication. Dedup by commentUrn automatically.
1725
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1692
1726
  */
1693
- campaignSlug?: string | undefined;
1727
+ retryAfter: number;
1728
+ };
1729
+
1730
+ export type UnfollowProfileRequest = {
1694
1731
  /**
1695
- * Deprecated. Use campaignSlug only.
1696
- *
1697
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1732
+ * Accepts full LinkedIn profile URLs (e.g. linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
1698
1733
  */
1699
- actionSlug?: string | undefined;
1734
+ profile: string;
1700
1735
  };
1701
1736
 
1702
1737
  /**
1703
- * Comment liked successfully
1738
+ * Profile unfollowed
1704
1739
  */
1705
- export type LikeCommentResponse = {
1740
+ export type UnfollowProfileResponse = {
1706
1741
  success: true;
1742
+ message: string;
1707
1743
  /**
1708
- * Resource key of the created reaction
1744
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1709
1745
  */
1710
- resourceKey?: string | undefined;
1746
+ creditsUsed: number;
1711
1747
  /**
1712
- * True if this action was already executed for the given campaignSlug + target.
1748
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1713
1749
  */
1714
- duplicate?: boolean | undefined;
1750
+ retryAfter: number;
1751
+ };
1752
+
1753
+ export type EditPostRequest = {
1754
+ /**
1755
+ * LinkedIn post URL or URN
1756
+ */
1757
+ postUrl: string;
1758
+ /**
1759
+ * New text content for the post
1760
+ */
1761
+ text: string;
1762
+ };
1763
+
1764
+ /**
1765
+ * Post edited
1766
+ */
1767
+ export type EditPostResponse = {
1768
+ success: true;
1715
1769
  /**
1716
1770
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1717
1771
  */
@@ -1722,111 +1776,53 @@ export type LikeCommentResponse = {
1722
1776
  retryAfter: number;
1723
1777
  };
1724
1778
 
1779
+ export type EditCommentRequest = {
1780
+ /**
1781
+ * urn:li:fsd_comment:(COMMENT_ID,urn:li:ugcPost:POST_ID) - from comment API response
1782
+ */
1783
+ fsdCommentUrn?: string | undefined;
1784
+ /**
1785
+ * Legacy comment URN format
1786
+ */
1787
+ commentUrn?: string | undefined;
1788
+ /**
1789
+ * New comment text
1790
+ */
1791
+ text: string;
1792
+ };
1793
+
1725
1794
  /**
1726
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
1795
+ * Comment edited
1727
1796
  */
1728
- export const PublishPostMode = {
1729
- Scheduled: "scheduled",
1730
- Instant: "instant",
1731
- } as const;
1732
- /**
1733
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
1734
- */
1735
- export type PublishPostMode = ClosedEnum<typeof PublishPostMode>;
1736
-
1737
- /**
1738
- * Post visibility
1739
- */
1740
- export const Visibility = {
1741
- Anyone: "ANYONE",
1742
- Connections: "CONNECTIONS",
1743
- } as const;
1744
- /**
1745
- * Post visibility
1746
- */
1747
- export type Visibility = ClosedEnum<typeof Visibility>;
1748
-
1749
- export type Mention = {
1750
- /**
1751
- * LinkedIn profile URN of the mentioned person (e.g., 'urn:li:fsd_profile:ACoAABZ0Qo4B...')
1752
- */
1753
- profileUrn: string;
1797
+ export type EditCommentResponse = {
1798
+ success: true;
1754
1799
  /**
1755
- * Start character offset in the text where the mention begins
1800
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1756
1801
  */
1757
- start: number;
1802
+ creditsUsed: number;
1758
1803
  /**
1759
- * Length of the mention text in characters
1804
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1760
1805
  */
1761
- length: number;
1806
+ retryAfter: number;
1762
1807
  };
1763
1808
 
1764
- export type PublishPostRequest = {
1765
- /**
1766
- * Post commentary text
1767
- */
1768
- text: string;
1769
- /**
1770
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
1771
- */
1772
- mode: PublishPostMode;
1773
- /**
1774
- * Timestamp in milliseconds for scheduled posts (required when mode='scheduled')
1775
- */
1776
- scheduledAt?: number | undefined;
1777
- /**
1778
- * If provided, post will be published as this company page (organization ID). User must be admin of the page.
1779
- */
1780
- companyId?: string | undefined;
1781
- /**
1782
- * URL of an image to attach to the post. Mutually exclusive with imageBase64.
1783
- */
1784
- imageUrl?: string | undefined;
1785
- /**
1786
- * Base64-encoded image data to attach to the post (e.g. data:image/png;base64,iVBOR... or raw base64). Mutually exclusive with imageUrl.
1787
- */
1788
- imageBase64?: string | undefined;
1789
- /**
1790
- * Filename for the uploaded image (e.g. 'banner.png'). Used with imageBase64. Defaults to 'image.jpg'.
1791
- */
1792
- imageFileName?: string | undefined;
1793
- /**
1794
- * Post visibility
1795
- */
1796
- visibility?: Visibility | undefined;
1797
- /**
1798
- * Profile mentions with text positions
1799
- */
1800
- mentions?: Array<Mention> | undefined;
1809
+ export type RepostPostRequest = {
1801
1810
  /**
1802
- * Campaign identifier for deduplication.
1811
+ * LinkedIn post URL to repost
1803
1812
  */
1804
- campaignSlug?: string | undefined;
1813
+ postUrl: string;
1805
1814
  /**
1806
- * Deprecated. Use campaignSlug only.
1807
- *
1808
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1815
+ * Quote text for the repost (required by LinkedIn)
1809
1816
  */
1810
- actionSlug?: string | undefined;
1817
+ text: string;
1811
1818
  };
1812
1819
 
1813
1820
  /**
1814
- * Post published or scheduled successfully
1821
+ * Post reposted
1815
1822
  */
1816
- export type PublishPostResponse = {
1823
+ export type RepostPostResponse = {
1817
1824
  success: true;
1818
- /**
1819
- * URN of the created share (e.g., 'urn:li:fsd_share:urn:li:share:123...')
1820
- */
1821
1825
  shareUrn: string;
1822
- /**
1823
- * Activity URN (only available for instant mode)
1824
- */
1825
- activityUrn: string | null;
1826
- /**
1827
- * True if this action was already executed for the given campaignSlug + target.
1828
- */
1829
- duplicate?: boolean | undefined;
1830
1826
  /**
1831
1827
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1832
1828
  */
@@ -1837,48 +1833,62 @@ export type PublishPostResponse = {
1837
1833
  retryAfter: number;
1838
1834
  };
1839
1835
 
1840
- export type CreateCommentRequest = {
1836
+ export type UnlikePostRequest = {
1841
1837
  /**
1842
- * LinkedIn post URL (e.g., 'https://www.linkedin.com/feed/update/urn:li:activity:7399026485694537728/')
1838
+ * LinkedIn post URL or URN to unlike
1843
1839
  */
1844
1840
  postUrl: string;
1841
+ };
1842
+
1843
+ /**
1844
+ * Reaction removed
1845
+ */
1846
+ export type UnlikePostResponse = {
1847
+ success: true;
1845
1848
  /**
1846
- * Comment text
1847
- */
1848
- message: string;
1849
- /**
1850
- * If provided, comment will be posted as this company page (organization ID). User must be admin of the page.
1849
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1851
1850
  */
1852
- companyId?: string | undefined;
1851
+ creditsUsed: number;
1853
1852
  /**
1854
- * Campaign identifier for deduplication. Dedup by postUrl automatically.
1853
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1855
1854
  */
1856
- campaignSlug?: string | undefined;
1855
+ retryAfter: number;
1856
+ };
1857
+
1858
+ export type UnlikeCommentRequest = {
1857
1859
  /**
1858
- * Deprecated. Use campaignSlug only.
1859
- *
1860
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1860
+ * Full comment URN to unlike (e.g. urn:li:comment:(urn:li:activity:123,456))
1861
1861
  */
1862
- actionSlug?: string | undefined;
1862
+ commentUrn: string;
1863
1863
  };
1864
1864
 
1865
1865
  /**
1866
- * Comment posted successfully
1866
+ * Reaction removed
1867
1867
  */
1868
- export type CreateCommentResponse = {
1868
+ export type UnlikeCommentResponse = {
1869
1869
  success: true;
1870
1870
  /**
1871
- * URN of the created comment (e.g., 'urn:li:comment:(activity:PARENT_ID,COMMENT_ID)')
1871
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1872
1872
  */
1873
- commentUrn?: string | undefined;
1873
+ creditsUsed: number;
1874
1874
  /**
1875
- * FSD-format comment URN for use with the edit comment endpoint.
1875
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1876
1876
  */
1877
- fsdCommentUrn?: string | undefined;
1877
+ retryAfter: number;
1878
+ };
1879
+
1880
+ export type SavePostRequest = {
1878
1881
  /**
1879
- * True if this action was already executed for the given campaignSlug + target.
1882
+ * LinkedIn post URL or URN to save/unsave
1880
1883
  */
1881
- duplicate?: boolean | undefined;
1884
+ postUrl: string;
1885
+ };
1886
+
1887
+ /**
1888
+ * Post saved
1889
+ */
1890
+ export type SavePostResponse = {
1891
+ success: true;
1882
1892
  /**
1883
1893
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1884
1894
  */
@@ -1889,27 +1899,18 @@ export type CreateCommentResponse = {
1889
1899
  retryAfter: number;
1890
1900
  };
1891
1901
 
1892
- export type DeclineInvitationRequest = {
1893
- /**
1894
- * Invitation ID from the list invitations endpoint
1895
- */
1896
- invitationId: string;
1897
- /**
1898
- * Shared secret / validation token from the list invitations endpoint
1899
- */
1900
- sharedSecret: string;
1902
+ export type UnsavePostRequest = {
1901
1903
  /**
1902
- * Sender's profile ID (optional, improves accuracy)
1904
+ * LinkedIn post URL or URN to save/unsave
1903
1905
  */
1904
- senderProfileId?: string | undefined;
1906
+ postUrl: string;
1905
1907
  };
1906
1908
 
1907
1909
  /**
1908
- * Invitation declined
1910
+ * Post unsaved
1909
1911
  */
1910
- export type DeclineInvitationResponse = {
1912
+ export type UnsavePostResponse = {
1911
1913
  success: true;
1912
- message: string;
1913
1914
  /**
1914
1915
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1915
1916
  */
@@ -1920,19 +1921,18 @@ export type DeclineInvitationResponse = {
1920
1921
  retryAfter: number;
1921
1922
  };
1922
1923
 
1923
- export type UnfollowProfileRequest = {
1924
+ export type FollowCompanyRequest = {
1924
1925
  /**
1925
- * Accepts full LinkedIn profile URLs (e.g. linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
1926
+ * LinkedIn company URL or URN
1926
1927
  */
1927
- profile: string;
1928
+ company: string;
1928
1929
  };
1929
1930
 
1930
1931
  /**
1931
- * Profile unfollowed
1932
+ * Company followed
1932
1933
  */
1933
- export type UnfollowProfileResponse = {
1934
+ export type FollowCompanyResponse = {
1934
1935
  success: true;
1935
- message: string;
1936
1936
  /**
1937
1937
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1938
1938
  */
@@ -1943,17 +1943,17 @@ export type UnfollowProfileResponse = {
1943
1943
  retryAfter: number;
1944
1944
  };
1945
1945
 
1946
- export type SavePostRequest = {
1946
+ export type UnfollowCompanyRequest = {
1947
1947
  /**
1948
- * LinkedIn post URL or URN to save/unsave
1948
+ * LinkedIn company URL or URN
1949
1949
  */
1950
- postUrl: string;
1950
+ company: string;
1951
1951
  };
1952
1952
 
1953
1953
  /**
1954
- * Post saved
1954
+ * Company unfollowed
1955
1955
  */
1956
- export type SavePostResponse = {
1956
+ export type UnfollowCompanyResponse = {
1957
1957
  success: true;
1958
1958
  /**
1959
1959
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
@@ -2074,6 +2074,10 @@ export type GetProfileLastPost = {
2074
2074
  postUrn: string;
2075
2075
  postId: string;
2076
2076
  type: GetProfileType;
2077
+ /**
2078
+ * True when the post is a repost/reshare of another post. Absent for original posts.
2079
+ */
2080
+ isRepost?: boolean | undefined;
2077
2081
  /**
2078
2082
  * Media attached to the post (image, video, document, or article). Absent when the post is text-only.
2079
2083
  */
@@ -3211,202 +3215,48 @@ export function searchSalesNavResponseFromJSON(
3211
3215
  }
3212
3216
 
3213
3217
  /** @internal */
3214
- export const SearchSalesNavCompaniesCategoryRequest$outboundSchema:
3215
- z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryRequest> = z.enum(
3216
- SearchSalesNavCompaniesCategoryRequest,
3217
- );
3218
+ export const SearchSalesNavPeopleCategoryRequest$outboundSchema: z.ZodMiniEnum<
3219
+ typeof SearchSalesNavPeopleCategoryRequest
3220
+ > = z.enum(SearchSalesNavPeopleCategoryRequest);
3218
3221
 
3219
3222
  /** @internal */
3220
- export type SearchSalesNavCompaniesIndustry$Outbound = {
3223
+ export type SearchSalesNavPeopleCompany$Outbound = {
3221
3224
  include?: Array<string> | undefined;
3222
3225
  exclude?: Array<string> | undefined;
3223
3226
  };
3224
3227
 
3225
3228
  /** @internal */
3226
- export const SearchSalesNavCompaniesIndustry$outboundSchema: z.ZodMiniType<
3227
- SearchSalesNavCompaniesIndustry$Outbound,
3228
- SearchSalesNavCompaniesIndustry
3229
+ export const SearchSalesNavPeopleCompany$outboundSchema: z.ZodMiniType<
3230
+ SearchSalesNavPeopleCompany$Outbound,
3231
+ SearchSalesNavPeopleCompany
3229
3232
  > = z.object({
3230
3233
  include: z.optional(z.array(z.string())),
3231
3234
  exclude: z.optional(z.array(z.string())),
3232
3235
  });
3233
3236
 
3234
- export function searchSalesNavCompaniesIndustryToJSON(
3235
- searchSalesNavCompaniesIndustry: SearchSalesNavCompaniesIndustry,
3237
+ export function searchSalesNavPeopleCompanyToJSON(
3238
+ searchSalesNavPeopleCompany: SearchSalesNavPeopleCompany,
3236
3239
  ): string {
3237
3240
  return JSON.stringify(
3238
- SearchSalesNavCompaniesIndustry$outboundSchema.parse(
3239
- searchSalesNavCompaniesIndustry,
3241
+ SearchSalesNavPeopleCompany$outboundSchema.parse(
3242
+ searchSalesNavPeopleCompany,
3240
3243
  ),
3241
3244
  );
3242
3245
  }
3243
3246
 
3244
3247
  /** @internal */
3245
- export type SearchSalesNavCompaniesRequest$Outbound = {
3246
- category?: string | undefined;
3247
- url?: string | undefined;
3248
- keywords?: string | undefined;
3249
- industry?: SearchSalesNavCompaniesIndustry$Outbound | undefined;
3250
- location?: Array<string> | undefined;
3251
- companyHeadcount?: Array<string> | undefined;
3252
- companyType?: Array<string> | undefined;
3253
- annualRevenue?: Array<string> | undefined;
3254
- start?: number | undefined;
3255
- count?: number | undefined;
3248
+ export type SearchSalesNavPeopleIndustry$Outbound = {
3249
+ include?: Array<string> | undefined;
3250
+ exclude?: Array<string> | undefined;
3256
3251
  };
3257
3252
 
3258
3253
  /** @internal */
3259
- export const SearchSalesNavCompaniesRequest$outboundSchema: z.ZodMiniType<
3260
- SearchSalesNavCompaniesRequest$Outbound,
3261
- SearchSalesNavCompaniesRequest
3254
+ export const SearchSalesNavPeopleIndustry$outboundSchema: z.ZodMiniType<
3255
+ SearchSalesNavPeopleIndustry$Outbound,
3256
+ SearchSalesNavPeopleIndustry
3262
3257
  > = z.object({
3263
- category: z.optional(SearchSalesNavCompaniesCategoryRequest$outboundSchema),
3264
- url: z.optional(z.string()),
3265
- keywords: z.optional(z.string()),
3266
- industry: z.optional(
3267
- z.lazy(() => SearchSalesNavCompaniesIndustry$outboundSchema),
3268
- ),
3269
- location: z.optional(z.array(z.string())),
3270
- companyHeadcount: z.optional(z.array(z.string())),
3271
- companyType: z.optional(z.array(z.string())),
3272
- annualRevenue: z.optional(z.array(z.string())),
3273
- start: z.optional(z.int()),
3274
- count: z.optional(z.int()),
3275
- });
3276
-
3277
- export function searchSalesNavCompaniesRequestToJSON(
3278
- searchSalesNavCompaniesRequest: SearchSalesNavCompaniesRequest,
3279
- ): string {
3280
- return JSON.stringify(
3281
- SearchSalesNavCompaniesRequest$outboundSchema.parse(
3282
- searchSalesNavCompaniesRequest,
3283
- ),
3284
- );
3285
- }
3286
-
3287
- /** @internal */
3288
- export const SearchSalesNavCompaniesCategoryCompanies$inboundSchema:
3289
- z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryCompanies> = z.enum(
3290
- SearchSalesNavCompaniesCategoryCompanies,
3291
- );
3292
-
3293
- /** @internal */
3294
- export const SearchSalesNavCompaniesType$inboundSchema: z.ZodMiniEnum<
3295
- typeof SearchSalesNavCompaniesType
3296
- > = z.enum(SearchSalesNavCompaniesType);
3297
-
3298
- /** @internal */
3299
- export const SearchSalesNavCompaniesItem$inboundSchema: z.ZodMiniType<
3300
- SearchSalesNavCompaniesItem,
3301
- unknown
3302
- > = z.object({
3303
- type: SearchSalesNavCompaniesType$inboundSchema,
3304
- id: types.string(),
3305
- name: types.string(),
3306
- profileUrl: types.nullable(types.string()),
3307
- summary: types.nullable(types.string()),
3308
- industry: types.nullable(types.string()),
3309
- location: types.nullable(types.string()),
3310
- headcount: types.nullable(types.string()),
3311
- });
3312
-
3313
- export function searchSalesNavCompaniesItemFromJSON(
3314
- jsonString: string,
3315
- ): SafeParseResult<SearchSalesNavCompaniesItem, SDKValidationError> {
3316
- return safeParse(
3317
- jsonString,
3318
- (x) => SearchSalesNavCompaniesItem$inboundSchema.parse(JSON.parse(x)),
3319
- `Failed to parse 'SearchSalesNavCompaniesItem' from JSON`,
3320
- );
3321
- }
3322
-
3323
- /** @internal */
3324
- export const SearchSalesNavCompaniesPaging$inboundSchema: z.ZodMiniType<
3325
- SearchSalesNavCompaniesPaging,
3326
- unknown
3327
- > = z.object({
3328
- start: types.number(),
3329
- count: types.number(),
3330
- total: types.number(),
3331
- });
3332
-
3333
- export function searchSalesNavCompaniesPagingFromJSON(
3334
- jsonString: string,
3335
- ): SafeParseResult<SearchSalesNavCompaniesPaging, SDKValidationError> {
3336
- return safeParse(
3337
- jsonString,
3338
- (x) => SearchSalesNavCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
3339
- `Failed to parse 'SearchSalesNavCompaniesPaging' from JSON`,
3340
- );
3341
- }
3342
-
3343
- /** @internal */
3344
- export const SearchSalesNavCompaniesResponse$inboundSchema: z.ZodMiniType<
3345
- SearchSalesNavCompaniesResponse,
3346
- unknown
3347
- > = z.object({
3348
- success: types.literal(true),
3349
- category: SearchSalesNavCompaniesCategoryCompanies$inboundSchema,
3350
- items: z.array(z.lazy(() => SearchSalesNavCompaniesItem$inboundSchema)),
3351
- paging: z.lazy(() => SearchSalesNavCompaniesPaging$inboundSchema),
3352
- hasMore: types.boolean(),
3353
- creditsUsed: types.number(),
3354
- retryAfter: types.number(),
3355
- });
3356
-
3357
- export function searchSalesNavCompaniesResponseFromJSON(
3358
- jsonString: string,
3359
- ): SafeParseResult<SearchSalesNavCompaniesResponse, SDKValidationError> {
3360
- return safeParse(
3361
- jsonString,
3362
- (x) => SearchSalesNavCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
3363
- `Failed to parse 'SearchSalesNavCompaniesResponse' from JSON`,
3364
- );
3365
- }
3366
-
3367
- /** @internal */
3368
- export const SearchSalesNavPeopleCategoryRequest$outboundSchema: z.ZodMiniEnum<
3369
- typeof SearchSalesNavPeopleCategoryRequest
3370
- > = z.enum(SearchSalesNavPeopleCategoryRequest);
3371
-
3372
- /** @internal */
3373
- export type SearchSalesNavPeopleCompany$Outbound = {
3374
- include?: Array<string> | undefined;
3375
- exclude?: Array<string> | undefined;
3376
- };
3377
-
3378
- /** @internal */
3379
- export const SearchSalesNavPeopleCompany$outboundSchema: z.ZodMiniType<
3380
- SearchSalesNavPeopleCompany$Outbound,
3381
- SearchSalesNavPeopleCompany
3382
- > = z.object({
3383
- include: z.optional(z.array(z.string())),
3384
- exclude: z.optional(z.array(z.string())),
3385
- });
3386
-
3387
- export function searchSalesNavPeopleCompanyToJSON(
3388
- searchSalesNavPeopleCompany: SearchSalesNavPeopleCompany,
3389
- ): string {
3390
- return JSON.stringify(
3391
- SearchSalesNavPeopleCompany$outboundSchema.parse(
3392
- searchSalesNavPeopleCompany,
3393
- ),
3394
- );
3395
- }
3396
-
3397
- /** @internal */
3398
- export type SearchSalesNavPeopleIndustry$Outbound = {
3399
- include?: Array<string> | undefined;
3400
- exclude?: Array<string> | undefined;
3401
- };
3402
-
3403
- /** @internal */
3404
- export const SearchSalesNavPeopleIndustry$outboundSchema: z.ZodMiniType<
3405
- SearchSalesNavPeopleIndustry$Outbound,
3406
- SearchSalesNavPeopleIndustry
3407
- > = z.object({
3408
- include: z.optional(z.array(z.string())),
3409
- exclude: z.optional(z.array(z.string())),
3258
+ include: z.optional(z.array(z.string())),
3259
+ exclude: z.optional(z.array(z.string())),
3410
3260
  });
3411
3261
 
3412
3262
  export function searchSalesNavPeopleIndustryToJSON(
@@ -3666,237 +3516,203 @@ export function searchSalesNavPeopleResponseFromJSON(
3666
3516
  }
3667
3517
 
3668
3518
  /** @internal */
3669
- export type ConnectProfileRequest$Outbound = {
3670
- profile: string;
3671
- campaignSlug?: string | undefined;
3672
- actionSlug?: string | undefined;
3519
+ export const SearchSalesNavCompaniesCategoryRequest$outboundSchema:
3520
+ z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryRequest> = z.enum(
3521
+ SearchSalesNavCompaniesCategoryRequest,
3522
+ );
3523
+
3524
+ /** @internal */
3525
+ export type SearchSalesNavCompaniesIndustry$Outbound = {
3526
+ include?: Array<string> | undefined;
3527
+ exclude?: Array<string> | undefined;
3673
3528
  };
3674
3529
 
3675
3530
  /** @internal */
3676
- export const ConnectProfileRequest$outboundSchema: z.ZodMiniType<
3677
- ConnectProfileRequest$Outbound,
3678
- ConnectProfileRequest
3531
+ export const SearchSalesNavCompaniesIndustry$outboundSchema: z.ZodMiniType<
3532
+ SearchSalesNavCompaniesIndustry$Outbound,
3533
+ SearchSalesNavCompaniesIndustry
3679
3534
  > = z.object({
3680
- profile: z.string(),
3681
- campaignSlug: z.optional(z.string()),
3682
- actionSlug: z.optional(z.string()),
3535
+ include: z.optional(z.array(z.string())),
3536
+ exclude: z.optional(z.array(z.string())),
3683
3537
  });
3684
3538
 
3685
- export function connectProfileRequestToJSON(
3686
- connectProfileRequest: ConnectProfileRequest,
3539
+ export function searchSalesNavCompaniesIndustryToJSON(
3540
+ searchSalesNavCompaniesIndustry: SearchSalesNavCompaniesIndustry,
3687
3541
  ): string {
3688
3542
  return JSON.stringify(
3689
- ConnectProfileRequest$outboundSchema.parse(connectProfileRequest),
3690
- );
3691
- }
3692
-
3693
- /** @internal */
3694
- export const ConnectProfileResponse$inboundSchema: z.ZodMiniType<
3695
- ConnectProfileResponse,
3696
- unknown
3697
- > = z.object({
3698
- success: types.literal(true),
3699
- message: types.string(),
3700
- duplicate: types.optional(types.boolean()),
3701
- creditsUsed: types.number(),
3702
- retryAfter: types.number(),
3703
- });
3704
-
3705
- export function connectProfileResponseFromJSON(
3706
- jsonString: string,
3707
- ): SafeParseResult<ConnectProfileResponse, SDKValidationError> {
3708
- return safeParse(
3709
- jsonString,
3710
- (x) => ConnectProfileResponse$inboundSchema.parse(JSON.parse(x)),
3711
- `Failed to parse 'ConnectProfileResponse' from JSON`,
3543
+ SearchSalesNavCompaniesIndustry$outboundSchema.parse(
3544
+ searchSalesNavCompaniesIndustry,
3545
+ ),
3712
3546
  );
3713
3547
  }
3714
3548
 
3715
3549
  /** @internal */
3716
- export type SendMessageRequest$Outbound = {
3717
- profile?: string | undefined;
3718
- conversationUrn?: string | undefined;
3719
- message: string;
3720
- campaignSlug?: string | undefined;
3721
- actionSlug?: string | undefined;
3550
+ export type SearchSalesNavCompaniesRequest$Outbound = {
3551
+ category?: string | undefined;
3552
+ url?: string | undefined;
3553
+ keywords?: string | undefined;
3554
+ industry?: SearchSalesNavCompaniesIndustry$Outbound | undefined;
3555
+ location?: Array<string> | undefined;
3556
+ companyHeadcount?: Array<string> | undefined;
3557
+ companyType?: Array<string> | undefined;
3558
+ annualRevenue?: Array<string> | undefined;
3559
+ start?: number | undefined;
3560
+ count?: number | undefined;
3722
3561
  };
3723
3562
 
3724
3563
  /** @internal */
3725
- export const SendMessageRequest$outboundSchema: z.ZodMiniType<
3726
- SendMessageRequest$Outbound,
3727
- SendMessageRequest
3564
+ export const SearchSalesNavCompaniesRequest$outboundSchema: z.ZodMiniType<
3565
+ SearchSalesNavCompaniesRequest$Outbound,
3566
+ SearchSalesNavCompaniesRequest
3728
3567
  > = z.object({
3729
- profile: z.optional(z.string()),
3730
- conversationUrn: z.optional(z.string()),
3731
- message: z.string(),
3732
- campaignSlug: z.optional(z.string()),
3733
- actionSlug: z.optional(z.string()),
3568
+ category: z.optional(SearchSalesNavCompaniesCategoryRequest$outboundSchema),
3569
+ url: z.optional(z.string()),
3570
+ keywords: z.optional(z.string()),
3571
+ industry: z.optional(
3572
+ z.lazy(() => SearchSalesNavCompaniesIndustry$outboundSchema),
3573
+ ),
3574
+ location: z.optional(z.array(z.string())),
3575
+ companyHeadcount: z.optional(z.array(z.string())),
3576
+ companyType: z.optional(z.array(z.string())),
3577
+ annualRevenue: z.optional(z.array(z.string())),
3578
+ start: z.optional(z.int()),
3579
+ count: z.optional(z.int()),
3734
3580
  });
3735
3581
 
3736
- export function sendMessageRequestToJSON(
3737
- sendMessageRequest: SendMessageRequest,
3582
+ export function searchSalesNavCompaniesRequestToJSON(
3583
+ searchSalesNavCompaniesRequest: SearchSalesNavCompaniesRequest,
3738
3584
  ): string {
3739
3585
  return JSON.stringify(
3740
- SendMessageRequest$outboundSchema.parse(sendMessageRequest),
3586
+ SearchSalesNavCompaniesRequest$outboundSchema.parse(
3587
+ searchSalesNavCompaniesRequest,
3588
+ ),
3741
3589
  );
3742
3590
  }
3743
3591
 
3744
3592
  /** @internal */
3745
- export const SendMessageResponse$inboundSchema: z.ZodMiniType<
3746
- SendMessageResponse,
3593
+ export const SearchSalesNavCompaniesCategoryCompanies$inboundSchema:
3594
+ z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryCompanies> = z.enum(
3595
+ SearchSalesNavCompaniesCategoryCompanies,
3596
+ );
3597
+
3598
+ /** @internal */
3599
+ export const SearchSalesNavCompaniesType$inboundSchema: z.ZodMiniEnum<
3600
+ typeof SearchSalesNavCompaniesType
3601
+ > = z.enum(SearchSalesNavCompaniesType);
3602
+
3603
+ /** @internal */
3604
+ export const SearchSalesNavCompaniesItem$inboundSchema: z.ZodMiniType<
3605
+ SearchSalesNavCompaniesItem,
3747
3606
  unknown
3748
3607
  > = z.object({
3749
- success: types.literal(true),
3750
- messageId: types.string(),
3751
- duplicate: types.optional(types.boolean()),
3752
- creditsUsed: types.number(),
3753
- retryAfter: types.number(),
3754
- });
3755
-
3756
- export function sendMessageResponseFromJSON(
3757
- jsonString: string,
3758
- ): SafeParseResult<SendMessageResponse, SDKValidationError> {
3759
- return safeParse(
3760
- jsonString,
3761
- (x) => SendMessageResponse$inboundSchema.parse(JSON.parse(x)),
3762
- `Failed to parse 'SendMessageResponse' from JSON`,
3763
- );
3764
- }
3765
-
3766
- /** @internal */
3767
- export type ListSentInvitationsRequest$Outbound = {
3768
- start: number;
3769
- count: number;
3770
- };
3771
-
3772
- /** @internal */
3773
- export const ListSentInvitationsRequest$outboundSchema: z.ZodMiniType<
3774
- ListSentInvitationsRequest$Outbound,
3775
- ListSentInvitationsRequest
3776
- > = z.object({
3777
- start: z._default(z.int(), 0),
3778
- count: z._default(z.int(), 10),
3608
+ type: SearchSalesNavCompaniesType$inboundSchema,
3609
+ id: types.string(),
3610
+ name: types.string(),
3611
+ profileUrl: types.nullable(types.string()),
3612
+ summary: types.nullable(types.string()),
3613
+ industry: types.nullable(types.string()),
3614
+ location: types.nullable(types.string()),
3615
+ headcount: types.nullable(types.string()),
3779
3616
  });
3780
3617
 
3781
- export function listSentInvitationsRequestToJSON(
3782
- listSentInvitationsRequest: ListSentInvitationsRequest,
3783
- ): string {
3784
- return JSON.stringify(
3785
- ListSentInvitationsRequest$outboundSchema.parse(listSentInvitationsRequest),
3786
- );
3787
- }
3788
-
3789
- /** @internal */
3790
- export const ToMember$inboundSchema: z.ZodMiniType<ToMember, unknown> = z
3791
- .object({
3792
- name: types.string(),
3793
- headline: types.nullable(types.string()),
3794
- profileUrl: types.nullable(types.string()),
3795
- profilePicture: types.nullable(types.string()),
3796
- publicIdentifier: types.nullable(types.string()),
3797
- profileUrn: types.nullable(types.string()),
3798
- });
3799
-
3800
- export function toMemberFromJSON(
3618
+ export function searchSalesNavCompaniesItemFromJSON(
3801
3619
  jsonString: string,
3802
- ): SafeParseResult<ToMember, SDKValidationError> {
3620
+ ): SafeParseResult<SearchSalesNavCompaniesItem, SDKValidationError> {
3803
3621
  return safeParse(
3804
3622
  jsonString,
3805
- (x) => ToMember$inboundSchema.parse(JSON.parse(x)),
3806
- `Failed to parse 'ToMember' from JSON`,
3623
+ (x) => SearchSalesNavCompaniesItem$inboundSchema.parse(JSON.parse(x)),
3624
+ `Failed to parse 'SearchSalesNavCompaniesItem' from JSON`,
3807
3625
  );
3808
3626
  }
3809
3627
 
3810
3628
  /** @internal */
3811
- export const ListSentInvitationsInvitation$inboundSchema: z.ZodMiniType<
3812
- ListSentInvitationsInvitation,
3629
+ export const SearchSalesNavCompaniesPaging$inboundSchema: z.ZodMiniType<
3630
+ SearchSalesNavCompaniesPaging,
3813
3631
  unknown
3814
3632
  > = z.object({
3815
- invitationId: types.string(),
3816
- invitationUrn: types.string(),
3817
- entityUrn: types.string(),
3818
- sentAt: types.nullable(types.string()),
3819
- message: types.nullable(types.string()),
3820
- targetProfileId: types.nullable(types.string()),
3821
- targetFirstName: types.nullable(types.string()),
3822
- targetLastName: types.nullable(types.string()),
3823
- toMember: types.nullable(z.lazy(() => ToMember$inboundSchema)),
3633
+ start: types.number(),
3634
+ count: types.number(),
3635
+ total: types.number(),
3824
3636
  });
3825
3637
 
3826
- export function listSentInvitationsInvitationFromJSON(
3638
+ export function searchSalesNavCompaniesPagingFromJSON(
3827
3639
  jsonString: string,
3828
- ): SafeParseResult<ListSentInvitationsInvitation, SDKValidationError> {
3640
+ ): SafeParseResult<SearchSalesNavCompaniesPaging, SDKValidationError> {
3829
3641
  return safeParse(
3830
3642
  jsonString,
3831
- (x) => ListSentInvitationsInvitation$inboundSchema.parse(JSON.parse(x)),
3832
- `Failed to parse 'ListSentInvitationsInvitation' from JSON`,
3643
+ (x) => SearchSalesNavCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
3644
+ `Failed to parse 'SearchSalesNavCompaniesPaging' from JSON`,
3833
3645
  );
3834
3646
  }
3835
3647
 
3836
3648
  /** @internal */
3837
- export const ListSentInvitationsResponse$inboundSchema: z.ZodMiniType<
3838
- ListSentInvitationsResponse,
3649
+ export const SearchSalesNavCompaniesResponse$inboundSchema: z.ZodMiniType<
3650
+ SearchSalesNavCompaniesResponse,
3839
3651
  unknown
3840
3652
  > = z.object({
3841
3653
  success: types.literal(true),
3842
- invitations: z.array(
3843
- z.lazy(() => ListSentInvitationsInvitation$inboundSchema),
3844
- ),
3845
- total: types.number(),
3846
- start: types.number(),
3847
- count: types.number(),
3654
+ category: SearchSalesNavCompaniesCategoryCompanies$inboundSchema,
3655
+ items: z.array(z.lazy(() => SearchSalesNavCompaniesItem$inboundSchema)),
3656
+ paging: z.lazy(() => SearchSalesNavCompaniesPaging$inboundSchema),
3657
+ hasMore: types.boolean(),
3848
3658
  creditsUsed: types.number(),
3849
3659
  retryAfter: types.number(),
3850
3660
  });
3851
3661
 
3852
- export function listSentInvitationsResponseFromJSON(
3662
+ export function searchSalesNavCompaniesResponseFromJSON(
3853
3663
  jsonString: string,
3854
- ): SafeParseResult<ListSentInvitationsResponse, SDKValidationError> {
3664
+ ): SafeParseResult<SearchSalesNavCompaniesResponse, SDKValidationError> {
3855
3665
  return safeParse(
3856
3666
  jsonString,
3857
- (x) => ListSentInvitationsResponse$inboundSchema.parse(JSON.parse(x)),
3858
- `Failed to parse 'ListSentInvitationsResponse' from JSON`,
3667
+ (x) => SearchSalesNavCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
3668
+ `Failed to parse 'SearchSalesNavCompaniesResponse' from JSON`,
3859
3669
  );
3860
3670
  }
3861
3671
 
3862
3672
  /** @internal */
3863
- export type FollowCompanyRequest$Outbound = {
3864
- company: string;
3673
+ export type ConnectProfileRequest$Outbound = {
3674
+ profile: string;
3675
+ campaignSlug?: string | undefined;
3676
+ actionSlug?: string | undefined;
3865
3677
  };
3866
3678
 
3867
3679
  /** @internal */
3868
- export const FollowCompanyRequest$outboundSchema: z.ZodMiniType<
3869
- FollowCompanyRequest$Outbound,
3870
- FollowCompanyRequest
3680
+ export const ConnectProfileRequest$outboundSchema: z.ZodMiniType<
3681
+ ConnectProfileRequest$Outbound,
3682
+ ConnectProfileRequest
3871
3683
  > = z.object({
3872
- company: z.string(),
3684
+ profile: z.string(),
3685
+ campaignSlug: z.optional(z.string()),
3686
+ actionSlug: z.optional(z.string()),
3873
3687
  });
3874
3688
 
3875
- export function followCompanyRequestToJSON(
3876
- followCompanyRequest: FollowCompanyRequest,
3689
+ export function connectProfileRequestToJSON(
3690
+ connectProfileRequest: ConnectProfileRequest,
3877
3691
  ): string {
3878
3692
  return JSON.stringify(
3879
- FollowCompanyRequest$outboundSchema.parse(followCompanyRequest),
3693
+ ConnectProfileRequest$outboundSchema.parse(connectProfileRequest),
3880
3694
  );
3881
3695
  }
3882
3696
 
3883
3697
  /** @internal */
3884
- export const FollowCompanyResponse$inboundSchema: z.ZodMiniType<
3885
- FollowCompanyResponse,
3698
+ export const ConnectProfileResponse$inboundSchema: z.ZodMiniType<
3699
+ ConnectProfileResponse,
3886
3700
  unknown
3887
3701
  > = z.object({
3888
3702
  success: types.literal(true),
3703
+ message: types.string(),
3704
+ duplicate: types.optional(types.boolean()),
3889
3705
  creditsUsed: types.number(),
3890
3706
  retryAfter: types.number(),
3891
3707
  });
3892
3708
 
3893
- export function followCompanyResponseFromJSON(
3709
+ export function connectProfileResponseFromJSON(
3894
3710
  jsonString: string,
3895
- ): SafeParseResult<FollowCompanyResponse, SDKValidationError> {
3711
+ ): SafeParseResult<ConnectProfileResponse, SDKValidationError> {
3896
3712
  return safeParse(
3897
3713
  jsonString,
3898
- (x) => FollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
3899
- `Failed to parse 'FollowCompanyResponse' from JSON`,
3714
+ (x) => ConnectProfileResponse$inboundSchema.parse(JSON.parse(x)),
3715
+ `Failed to parse 'ConnectProfileResponse' from JSON`,
3900
3716
  );
3901
3717
  }
3902
3718
 
@@ -4044,6 +3860,57 @@ export function acceptInvitationResponseFromJSON(
4044
3860
  );
4045
3861
  }
4046
3862
 
3863
+ /** @internal */
3864
+ export type SendMessageRequest$Outbound = {
3865
+ profile?: string | undefined;
3866
+ conversationUrn?: string | undefined;
3867
+ message: string;
3868
+ campaignSlug?: string | undefined;
3869
+ actionSlug?: string | undefined;
3870
+ };
3871
+
3872
+ /** @internal */
3873
+ export const SendMessageRequest$outboundSchema: z.ZodMiniType<
3874
+ SendMessageRequest$Outbound,
3875
+ SendMessageRequest
3876
+ > = z.object({
3877
+ profile: z.optional(z.string()),
3878
+ conversationUrn: z.optional(z.string()),
3879
+ message: z.string(),
3880
+ campaignSlug: z.optional(z.string()),
3881
+ actionSlug: z.optional(z.string()),
3882
+ });
3883
+
3884
+ export function sendMessageRequestToJSON(
3885
+ sendMessageRequest: SendMessageRequest,
3886
+ ): string {
3887
+ return JSON.stringify(
3888
+ SendMessageRequest$outboundSchema.parse(sendMessageRequest),
3889
+ );
3890
+ }
3891
+
3892
+ /** @internal */
3893
+ export const SendMessageResponse$inboundSchema: z.ZodMiniType<
3894
+ SendMessageResponse,
3895
+ unknown
3896
+ > = z.object({
3897
+ success: types.literal(true),
3898
+ messageId: types.string(),
3899
+ duplicate: types.optional(types.boolean()),
3900
+ creditsUsed: types.number(),
3901
+ retryAfter: types.number(),
3902
+ });
3903
+
3904
+ export function sendMessageResponseFromJSON(
3905
+ jsonString: string,
3906
+ ): SafeParseResult<SendMessageResponse, SDKValidationError> {
3907
+ return safeParse(
3908
+ jsonString,
3909
+ (x) => SendMessageResponse$inboundSchema.parse(JSON.parse(x)),
3910
+ `Failed to parse 'SendMessageResponse' from JSON`,
3911
+ );
3912
+ }
3913
+
4047
3914
  /** @internal */
4048
3915
  export type ReplyToCommentRequest$Outbound = {
4049
3916
  commentUrn: string;
@@ -4093,6 +3960,204 @@ export function replyToCommentResponseFromJSON(
4093
3960
  );
4094
3961
  }
4095
3962
 
3963
+ /** @internal */
3964
+ export const LikeCommentReactionType$outboundSchema: z.ZodMiniEnum<
3965
+ typeof LikeCommentReactionType
3966
+ > = z.enum(LikeCommentReactionType);
3967
+
3968
+ /** @internal */
3969
+ export type LikeCommentRequest$Outbound = {
3970
+ commentUrn: string;
3971
+ reactionType: string;
3972
+ campaignSlug?: string | undefined;
3973
+ actionSlug?: string | undefined;
3974
+ };
3975
+
3976
+ /** @internal */
3977
+ export const LikeCommentRequest$outboundSchema: z.ZodMiniType<
3978
+ LikeCommentRequest$Outbound,
3979
+ LikeCommentRequest
3980
+ > = z.object({
3981
+ commentUrn: z.string(),
3982
+ reactionType: z._default(LikeCommentReactionType$outboundSchema, "LIKE"),
3983
+ campaignSlug: z.optional(z.string()),
3984
+ actionSlug: z.optional(z.string()),
3985
+ });
3986
+
3987
+ export function likeCommentRequestToJSON(
3988
+ likeCommentRequest: LikeCommentRequest,
3989
+ ): string {
3990
+ return JSON.stringify(
3991
+ LikeCommentRequest$outboundSchema.parse(likeCommentRequest),
3992
+ );
3993
+ }
3994
+
3995
+ /** @internal */
3996
+ export const LikeCommentResponse$inboundSchema: z.ZodMiniType<
3997
+ LikeCommentResponse,
3998
+ unknown
3999
+ > = z.object({
4000
+ success: types.literal(true),
4001
+ resourceKey: types.optional(types.string()),
4002
+ duplicate: types.optional(types.boolean()),
4003
+ creditsUsed: types.number(),
4004
+ retryAfter: types.number(),
4005
+ });
4006
+
4007
+ export function likeCommentResponseFromJSON(
4008
+ jsonString: string,
4009
+ ): SafeParseResult<LikeCommentResponse, SDKValidationError> {
4010
+ return safeParse(
4011
+ jsonString,
4012
+ (x) => LikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4013
+ `Failed to parse 'LikeCommentResponse' from JSON`,
4014
+ );
4015
+ }
4016
+
4017
+ /** @internal */
4018
+ export const PublishPostMode$outboundSchema: z.ZodMiniEnum<
4019
+ typeof PublishPostMode
4020
+ > = z.enum(PublishPostMode);
4021
+
4022
+ /** @internal */
4023
+ export const Visibility$outboundSchema: z.ZodMiniEnum<typeof Visibility> = z
4024
+ .enum(Visibility);
4025
+
4026
+ /** @internal */
4027
+ export type Mention$Outbound = {
4028
+ profileUrn: string;
4029
+ start: number;
4030
+ length: number;
4031
+ };
4032
+
4033
+ /** @internal */
4034
+ export const Mention$outboundSchema: z.ZodMiniType<Mention$Outbound, Mention> =
4035
+ z.object({
4036
+ profileUrn: z.string(),
4037
+ start: z.int(),
4038
+ length: z.int(),
4039
+ });
4040
+
4041
+ export function mentionToJSON(mention: Mention): string {
4042
+ return JSON.stringify(Mention$outboundSchema.parse(mention));
4043
+ }
4044
+
4045
+ /** @internal */
4046
+ export type PublishPostRequest$Outbound = {
4047
+ text: string;
4048
+ mode: string;
4049
+ scheduledAt?: number | undefined;
4050
+ companyId?: string | undefined;
4051
+ imageUrl?: string | undefined;
4052
+ imageBase64?: string | undefined;
4053
+ imageFileName?: string | undefined;
4054
+ visibility: string;
4055
+ mentions?: Array<Mention$Outbound> | undefined;
4056
+ campaignSlug?: string | undefined;
4057
+ actionSlug?: string | undefined;
4058
+ };
4059
+
4060
+ /** @internal */
4061
+ export const PublishPostRequest$outboundSchema: z.ZodMiniType<
4062
+ PublishPostRequest$Outbound,
4063
+ PublishPostRequest
4064
+ > = z.object({
4065
+ text: z.string(),
4066
+ mode: PublishPostMode$outboundSchema,
4067
+ scheduledAt: z.optional(z.int()),
4068
+ companyId: z.optional(z.string()),
4069
+ imageUrl: z.optional(z.string()),
4070
+ imageBase64: z.optional(z.string()),
4071
+ imageFileName: z.optional(z.string()),
4072
+ visibility: z._default(Visibility$outboundSchema, "ANYONE"),
4073
+ mentions: z.optional(z.array(z.lazy(() => Mention$outboundSchema))),
4074
+ campaignSlug: z.optional(z.string()),
4075
+ actionSlug: z.optional(z.string()),
4076
+ });
4077
+
4078
+ export function publishPostRequestToJSON(
4079
+ publishPostRequest: PublishPostRequest,
4080
+ ): string {
4081
+ return JSON.stringify(
4082
+ PublishPostRequest$outboundSchema.parse(publishPostRequest),
4083
+ );
4084
+ }
4085
+
4086
+ /** @internal */
4087
+ export const PublishPostResponse$inboundSchema: z.ZodMiniType<
4088
+ PublishPostResponse,
4089
+ unknown
4090
+ > = z.object({
4091
+ success: types.literal(true),
4092
+ shareUrn: types.string(),
4093
+ activityUrn: types.nullable(types.string()),
4094
+ duplicate: types.optional(types.boolean()),
4095
+ creditsUsed: types.number(),
4096
+ retryAfter: types.number(),
4097
+ });
4098
+
4099
+ export function publishPostResponseFromJSON(
4100
+ jsonString: string,
4101
+ ): SafeParseResult<PublishPostResponse, SDKValidationError> {
4102
+ return safeParse(
4103
+ jsonString,
4104
+ (x) => PublishPostResponse$inboundSchema.parse(JSON.parse(x)),
4105
+ `Failed to parse 'PublishPostResponse' from JSON`,
4106
+ );
4107
+ }
4108
+
4109
+ /** @internal */
4110
+ export type CreateCommentRequest$Outbound = {
4111
+ postUrl: string;
4112
+ message: string;
4113
+ companyId?: string | undefined;
4114
+ campaignSlug?: string | undefined;
4115
+ actionSlug?: string | undefined;
4116
+ };
4117
+
4118
+ /** @internal */
4119
+ export const CreateCommentRequest$outboundSchema: z.ZodMiniType<
4120
+ CreateCommentRequest$Outbound,
4121
+ CreateCommentRequest
4122
+ > = z.object({
4123
+ postUrl: z.string(),
4124
+ message: z.string(),
4125
+ companyId: z.optional(z.string()),
4126
+ campaignSlug: z.optional(z.string()),
4127
+ actionSlug: z.optional(z.string()),
4128
+ });
4129
+
4130
+ export function createCommentRequestToJSON(
4131
+ createCommentRequest: CreateCommentRequest,
4132
+ ): string {
4133
+ return JSON.stringify(
4134
+ CreateCommentRequest$outboundSchema.parse(createCommentRequest),
4135
+ );
4136
+ }
4137
+
4138
+ /** @internal */
4139
+ export const CreateCommentResponse$inboundSchema: z.ZodMiniType<
4140
+ CreateCommentResponse,
4141
+ unknown
4142
+ > = z.object({
4143
+ success: types.literal(true),
4144
+ commentUrn: types.optional(types.string()),
4145
+ fsdCommentUrn: types.optional(types.string()),
4146
+ duplicate: types.optional(types.boolean()),
4147
+ creditsUsed: types.number(),
4148
+ retryAfter: types.number(),
4149
+ });
4150
+
4151
+ export function createCommentResponseFromJSON(
4152
+ jsonString: string,
4153
+ ): SafeParseResult<CreateCommentResponse, SDKValidationError> {
4154
+ return safeParse(
4155
+ jsonString,
4156
+ (x) => CreateCommentResponse$inboundSchema.parse(JSON.parse(x)),
4157
+ `Failed to parse 'CreateCommentResponse' from JSON`,
4158
+ );
4159
+ }
4160
+
4096
4161
  /** @internal */
4097
4162
  export const LikePostReactionType$outboundSchema: z.ZodMiniEnum<
4098
4163
  typeof LikePostReactionType
@@ -4119,31 +4184,173 @@ export const LikePostRequest$outboundSchema: z.ZodMiniType<
4119
4184
  actionSlug: z.optional(z.string()),
4120
4185
  });
4121
4186
 
4122
- export function likePostRequestToJSON(
4123
- likePostRequest: LikePostRequest,
4124
- ): string {
4125
- return JSON.stringify(LikePostRequest$outboundSchema.parse(likePostRequest));
4187
+ export function likePostRequestToJSON(
4188
+ likePostRequest: LikePostRequest,
4189
+ ): string {
4190
+ return JSON.stringify(LikePostRequest$outboundSchema.parse(likePostRequest));
4191
+ }
4192
+
4193
+ /** @internal */
4194
+ export const LikePostResponse$inboundSchema: z.ZodMiniType<
4195
+ LikePostResponse,
4196
+ unknown
4197
+ > = z.object({
4198
+ success: types.literal(true),
4199
+ resourceKey: types.optional(types.string()),
4200
+ duplicate: types.optional(types.boolean()),
4201
+ creditsUsed: types.number(),
4202
+ retryAfter: types.number(),
4203
+ });
4204
+
4205
+ export function likePostResponseFromJSON(
4206
+ jsonString: string,
4207
+ ): SafeParseResult<LikePostResponse, SDKValidationError> {
4208
+ return safeParse(
4209
+ jsonString,
4210
+ (x) => LikePostResponse$inboundSchema.parse(JSON.parse(x)),
4211
+ `Failed to parse 'LikePostResponse' from JSON`,
4212
+ );
4213
+ }
4214
+
4215
+ /** @internal */
4216
+ export type DeclineInvitationRequest$Outbound = {
4217
+ invitationId: string;
4218
+ sharedSecret: string;
4219
+ senderProfileId?: string | undefined;
4220
+ };
4221
+
4222
+ /** @internal */
4223
+ export const DeclineInvitationRequest$outboundSchema: z.ZodMiniType<
4224
+ DeclineInvitationRequest$Outbound,
4225
+ DeclineInvitationRequest
4226
+ > = z.object({
4227
+ invitationId: z.string(),
4228
+ sharedSecret: z.string(),
4229
+ senderProfileId: z.optional(z.string()),
4230
+ });
4231
+
4232
+ export function declineInvitationRequestToJSON(
4233
+ declineInvitationRequest: DeclineInvitationRequest,
4234
+ ): string {
4235
+ return JSON.stringify(
4236
+ DeclineInvitationRequest$outboundSchema.parse(declineInvitationRequest),
4237
+ );
4238
+ }
4239
+
4240
+ /** @internal */
4241
+ export const DeclineInvitationResponse$inboundSchema: z.ZodMiniType<
4242
+ DeclineInvitationResponse,
4243
+ unknown
4244
+ > = z.object({
4245
+ success: types.literal(true),
4246
+ message: types.string(),
4247
+ creditsUsed: types.number(),
4248
+ retryAfter: types.number(),
4249
+ });
4250
+
4251
+ export function declineInvitationResponseFromJSON(
4252
+ jsonString: string,
4253
+ ): SafeParseResult<DeclineInvitationResponse, SDKValidationError> {
4254
+ return safeParse(
4255
+ jsonString,
4256
+ (x) => DeclineInvitationResponse$inboundSchema.parse(JSON.parse(x)),
4257
+ `Failed to parse 'DeclineInvitationResponse' from JSON`,
4258
+ );
4259
+ }
4260
+
4261
+ /** @internal */
4262
+ export type ListSentInvitationsRequest$Outbound = {
4263
+ start: number;
4264
+ count: number;
4265
+ };
4266
+
4267
+ /** @internal */
4268
+ export const ListSentInvitationsRequest$outboundSchema: z.ZodMiniType<
4269
+ ListSentInvitationsRequest$Outbound,
4270
+ ListSentInvitationsRequest
4271
+ > = z.object({
4272
+ start: z._default(z.int(), 0),
4273
+ count: z._default(z.int(), 10),
4274
+ });
4275
+
4276
+ export function listSentInvitationsRequestToJSON(
4277
+ listSentInvitationsRequest: ListSentInvitationsRequest,
4278
+ ): string {
4279
+ return JSON.stringify(
4280
+ ListSentInvitationsRequest$outboundSchema.parse(listSentInvitationsRequest),
4281
+ );
4282
+ }
4283
+
4284
+ /** @internal */
4285
+ export const ToMember$inboundSchema: z.ZodMiniType<ToMember, unknown> = z
4286
+ .object({
4287
+ name: types.string(),
4288
+ headline: types.nullable(types.string()),
4289
+ profileUrl: types.nullable(types.string()),
4290
+ profilePicture: types.nullable(types.string()),
4291
+ publicIdentifier: types.nullable(types.string()),
4292
+ profileUrn: types.nullable(types.string()),
4293
+ });
4294
+
4295
+ export function toMemberFromJSON(
4296
+ jsonString: string,
4297
+ ): SafeParseResult<ToMember, SDKValidationError> {
4298
+ return safeParse(
4299
+ jsonString,
4300
+ (x) => ToMember$inboundSchema.parse(JSON.parse(x)),
4301
+ `Failed to parse 'ToMember' from JSON`,
4302
+ );
4303
+ }
4304
+
4305
+ /** @internal */
4306
+ export const ListSentInvitationsInvitation$inboundSchema: z.ZodMiniType<
4307
+ ListSentInvitationsInvitation,
4308
+ unknown
4309
+ > = z.object({
4310
+ invitationId: types.string(),
4311
+ invitationUrn: types.string(),
4312
+ entityUrn: types.string(),
4313
+ sentAt: types.nullable(types.string()),
4314
+ message: types.nullable(types.string()),
4315
+ targetProfileId: types.nullable(types.string()),
4316
+ targetFirstName: types.nullable(types.string()),
4317
+ targetLastName: types.nullable(types.string()),
4318
+ toMember: types.nullable(z.lazy(() => ToMember$inboundSchema)),
4319
+ });
4320
+
4321
+ export function listSentInvitationsInvitationFromJSON(
4322
+ jsonString: string,
4323
+ ): SafeParseResult<ListSentInvitationsInvitation, SDKValidationError> {
4324
+ return safeParse(
4325
+ jsonString,
4326
+ (x) => ListSentInvitationsInvitation$inboundSchema.parse(JSON.parse(x)),
4327
+ `Failed to parse 'ListSentInvitationsInvitation' from JSON`,
4328
+ );
4126
4329
  }
4127
4330
 
4128
4331
  /** @internal */
4129
- export const LikePostResponse$inboundSchema: z.ZodMiniType<
4130
- LikePostResponse,
4332
+ export const ListSentInvitationsResponse$inboundSchema: z.ZodMiniType<
4333
+ ListSentInvitationsResponse,
4131
4334
  unknown
4132
4335
  > = z.object({
4133
4336
  success: types.literal(true),
4134
- resourceKey: types.optional(types.string()),
4135
- duplicate: types.optional(types.boolean()),
4337
+ invitations: z.array(
4338
+ z.lazy(() => ListSentInvitationsInvitation$inboundSchema),
4339
+ ),
4340
+ total: types.number(),
4341
+ start: types.number(),
4342
+ count: types.number(),
4136
4343
  creditsUsed: types.number(),
4137
4344
  retryAfter: types.number(),
4138
4345
  });
4139
4346
 
4140
- export function likePostResponseFromJSON(
4347
+ export function listSentInvitationsResponseFromJSON(
4141
4348
  jsonString: string,
4142
- ): SafeParseResult<LikePostResponse, SDKValidationError> {
4349
+ ): SafeParseResult<ListSentInvitationsResponse, SDKValidationError> {
4143
4350
  return safeParse(
4144
4351
  jsonString,
4145
- (x) => LikePostResponse$inboundSchema.parse(JSON.parse(x)),
4146
- `Failed to parse 'LikePostResponse' from JSON`,
4352
+ (x) => ListSentInvitationsResponse$inboundSchema.parse(JSON.parse(x)),
4353
+ `Failed to parse 'ListSentInvitationsResponse' from JSON`,
4147
4354
  );
4148
4355
  }
4149
4356
 
@@ -4231,6 +4438,48 @@ export function followProfileResponseFromJSON(
4231
4438
  );
4232
4439
  }
4233
4440
 
4441
+ /** @internal */
4442
+ export type UnfollowProfileRequest$Outbound = {
4443
+ profile: string;
4444
+ };
4445
+
4446
+ /** @internal */
4447
+ export const UnfollowProfileRequest$outboundSchema: z.ZodMiniType<
4448
+ UnfollowProfileRequest$Outbound,
4449
+ UnfollowProfileRequest
4450
+ > = z.object({
4451
+ profile: z.string(),
4452
+ });
4453
+
4454
+ export function unfollowProfileRequestToJSON(
4455
+ unfollowProfileRequest: UnfollowProfileRequest,
4456
+ ): string {
4457
+ return JSON.stringify(
4458
+ UnfollowProfileRequest$outboundSchema.parse(unfollowProfileRequest),
4459
+ );
4460
+ }
4461
+
4462
+ /** @internal */
4463
+ export const UnfollowProfileResponse$inboundSchema: z.ZodMiniType<
4464
+ UnfollowProfileResponse,
4465
+ unknown
4466
+ > = z.object({
4467
+ success: types.literal(true),
4468
+ message: types.string(),
4469
+ creditsUsed: types.number(),
4470
+ retryAfter: types.number(),
4471
+ });
4472
+
4473
+ export function unfollowProfileResponseFromJSON(
4474
+ jsonString: string,
4475
+ ): SafeParseResult<UnfollowProfileResponse, SDKValidationError> {
4476
+ return safeParse(
4477
+ jsonString,
4478
+ (x) => UnfollowProfileResponse$inboundSchema.parse(JSON.parse(x)),
4479
+ `Failed to parse 'UnfollowProfileResponse' from JSON`,
4480
+ );
4481
+ }
4482
+
4234
4483
  /** @internal */
4235
4484
  export type EditPostRequest$Outbound = {
4236
4485
  postUrl: string;
@@ -4362,477 +4611,232 @@ export function repostPostResponseFromJSON(
4362
4611
  }
4363
4612
 
4364
4613
  /** @internal */
4365
- export type UnlikePostRequest$Outbound = {
4366
- postUrl: string;
4367
- };
4368
-
4369
- /** @internal */
4370
- export const UnlikePostRequest$outboundSchema: z.ZodMiniType<
4371
- UnlikePostRequest$Outbound,
4372
- UnlikePostRequest
4373
- > = z.object({
4374
- postUrl: z.string(),
4375
- });
4376
-
4377
- export function unlikePostRequestToJSON(
4378
- unlikePostRequest: UnlikePostRequest,
4379
- ): string {
4380
- return JSON.stringify(
4381
- UnlikePostRequest$outboundSchema.parse(unlikePostRequest),
4382
- );
4383
- }
4384
-
4385
- /** @internal */
4386
- export const UnlikePostResponse$inboundSchema: z.ZodMiniType<
4387
- UnlikePostResponse,
4388
- unknown
4389
- > = z.object({
4390
- success: types.literal(true),
4391
- creditsUsed: types.number(),
4392
- retryAfter: types.number(),
4393
- });
4394
-
4395
- export function unlikePostResponseFromJSON(
4396
- jsonString: string,
4397
- ): SafeParseResult<UnlikePostResponse, SDKValidationError> {
4398
- return safeParse(
4399
- jsonString,
4400
- (x) => UnlikePostResponse$inboundSchema.parse(JSON.parse(x)),
4401
- `Failed to parse 'UnlikePostResponse' from JSON`,
4402
- );
4403
- }
4404
-
4405
- /** @internal */
4406
- export type UnlikeCommentRequest$Outbound = {
4407
- commentUrn: string;
4408
- };
4409
-
4410
- /** @internal */
4411
- export const UnlikeCommentRequest$outboundSchema: z.ZodMiniType<
4412
- UnlikeCommentRequest$Outbound,
4413
- UnlikeCommentRequest
4414
- > = z.object({
4415
- commentUrn: z.string(),
4416
- });
4417
-
4418
- export function unlikeCommentRequestToJSON(
4419
- unlikeCommentRequest: UnlikeCommentRequest,
4420
- ): string {
4421
- return JSON.stringify(
4422
- UnlikeCommentRequest$outboundSchema.parse(unlikeCommentRequest),
4423
- );
4424
- }
4425
-
4426
- /** @internal */
4427
- export const UnlikeCommentResponse$inboundSchema: z.ZodMiniType<
4428
- UnlikeCommentResponse,
4429
- unknown
4430
- > = z.object({
4431
- success: types.literal(true),
4432
- creditsUsed: types.number(),
4433
- retryAfter: types.number(),
4434
- });
4435
-
4436
- export function unlikeCommentResponseFromJSON(
4437
- jsonString: string,
4438
- ): SafeParseResult<UnlikeCommentResponse, SDKValidationError> {
4439
- return safeParse(
4440
- jsonString,
4441
- (x) => UnlikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4442
- `Failed to parse 'UnlikeCommentResponse' from JSON`,
4443
- );
4444
- }
4445
-
4446
- /** @internal */
4447
- export type UnsavePostRequest$Outbound = {
4448
- postUrl: string;
4449
- };
4450
-
4451
- /** @internal */
4452
- export const UnsavePostRequest$outboundSchema: z.ZodMiniType<
4453
- UnsavePostRequest$Outbound,
4454
- UnsavePostRequest
4455
- > = z.object({
4456
- postUrl: z.string(),
4457
- });
4458
-
4459
- export function unsavePostRequestToJSON(
4460
- unsavePostRequest: UnsavePostRequest,
4461
- ): string {
4462
- return JSON.stringify(
4463
- UnsavePostRequest$outboundSchema.parse(unsavePostRequest),
4464
- );
4465
- }
4466
-
4467
- /** @internal */
4468
- export const UnsavePostResponse$inboundSchema: z.ZodMiniType<
4469
- UnsavePostResponse,
4470
- unknown
4471
- > = z.object({
4472
- success: types.literal(true),
4473
- creditsUsed: types.number(),
4474
- retryAfter: types.number(),
4475
- });
4476
-
4477
- export function unsavePostResponseFromJSON(
4478
- jsonString: string,
4479
- ): SafeParseResult<UnsavePostResponse, SDKValidationError> {
4480
- return safeParse(
4481
- jsonString,
4482
- (x) => UnsavePostResponse$inboundSchema.parse(JSON.parse(x)),
4483
- `Failed to parse 'UnsavePostResponse' from JSON`,
4484
- );
4485
- }
4486
-
4487
- /** @internal */
4488
- export type UnfollowCompanyRequest$Outbound = {
4489
- company: string;
4490
- };
4491
-
4492
- /** @internal */
4493
- export const UnfollowCompanyRequest$outboundSchema: z.ZodMiniType<
4494
- UnfollowCompanyRequest$Outbound,
4495
- UnfollowCompanyRequest
4496
- > = z.object({
4497
- company: z.string(),
4498
- });
4499
-
4500
- export function unfollowCompanyRequestToJSON(
4501
- unfollowCompanyRequest: UnfollowCompanyRequest,
4502
- ): string {
4503
- return JSON.stringify(
4504
- UnfollowCompanyRequest$outboundSchema.parse(unfollowCompanyRequest),
4505
- );
4506
- }
4507
-
4508
- /** @internal */
4509
- export const UnfollowCompanyResponse$inboundSchema: z.ZodMiniType<
4510
- UnfollowCompanyResponse,
4511
- unknown
4512
- > = z.object({
4513
- success: types.literal(true),
4514
- creditsUsed: types.number(),
4515
- retryAfter: types.number(),
4516
- });
4517
-
4518
- export function unfollowCompanyResponseFromJSON(
4519
- jsonString: string,
4520
- ): SafeParseResult<UnfollowCompanyResponse, SDKValidationError> {
4521
- return safeParse(
4522
- jsonString,
4523
- (x) => UnfollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
4524
- `Failed to parse 'UnfollowCompanyResponse' from JSON`,
4525
- );
4526
- }
4527
-
4528
- /** @internal */
4529
- export const LikeCommentReactionType$outboundSchema: z.ZodMiniEnum<
4530
- typeof LikeCommentReactionType
4531
- > = z.enum(LikeCommentReactionType);
4532
-
4533
- /** @internal */
4534
- export type LikeCommentRequest$Outbound = {
4535
- commentUrn: string;
4536
- reactionType: string;
4537
- campaignSlug?: string | undefined;
4538
- actionSlug?: string | undefined;
4614
+ export type UnlikePostRequest$Outbound = {
4615
+ postUrl: string;
4539
4616
  };
4540
4617
 
4541
4618
  /** @internal */
4542
- export const LikeCommentRequest$outboundSchema: z.ZodMiniType<
4543
- LikeCommentRequest$Outbound,
4544
- LikeCommentRequest
4619
+ export const UnlikePostRequest$outboundSchema: z.ZodMiniType<
4620
+ UnlikePostRequest$Outbound,
4621
+ UnlikePostRequest
4545
4622
  > = z.object({
4546
- commentUrn: z.string(),
4547
- reactionType: z._default(LikeCommentReactionType$outboundSchema, "LIKE"),
4548
- campaignSlug: z.optional(z.string()),
4549
- actionSlug: z.optional(z.string()),
4623
+ postUrl: z.string(),
4550
4624
  });
4551
4625
 
4552
- export function likeCommentRequestToJSON(
4553
- likeCommentRequest: LikeCommentRequest,
4626
+ export function unlikePostRequestToJSON(
4627
+ unlikePostRequest: UnlikePostRequest,
4554
4628
  ): string {
4555
4629
  return JSON.stringify(
4556
- LikeCommentRequest$outboundSchema.parse(likeCommentRequest),
4630
+ UnlikePostRequest$outboundSchema.parse(unlikePostRequest),
4557
4631
  );
4558
4632
  }
4559
4633
 
4560
4634
  /** @internal */
4561
- export const LikeCommentResponse$inboundSchema: z.ZodMiniType<
4562
- LikeCommentResponse,
4635
+ export const UnlikePostResponse$inboundSchema: z.ZodMiniType<
4636
+ UnlikePostResponse,
4563
4637
  unknown
4564
4638
  > = z.object({
4565
4639
  success: types.literal(true),
4566
- resourceKey: types.optional(types.string()),
4567
- duplicate: types.optional(types.boolean()),
4568
4640
  creditsUsed: types.number(),
4569
4641
  retryAfter: types.number(),
4570
4642
  });
4571
4643
 
4572
- export function likeCommentResponseFromJSON(
4644
+ export function unlikePostResponseFromJSON(
4573
4645
  jsonString: string,
4574
- ): SafeParseResult<LikeCommentResponse, SDKValidationError> {
4646
+ ): SafeParseResult<UnlikePostResponse, SDKValidationError> {
4575
4647
  return safeParse(
4576
4648
  jsonString,
4577
- (x) => LikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4578
- `Failed to parse 'LikeCommentResponse' from JSON`,
4649
+ (x) => UnlikePostResponse$inboundSchema.parse(JSON.parse(x)),
4650
+ `Failed to parse 'UnlikePostResponse' from JSON`,
4579
4651
  );
4580
4652
  }
4581
4653
 
4582
4654
  /** @internal */
4583
- export const PublishPostMode$outboundSchema: z.ZodMiniEnum<
4584
- typeof PublishPostMode
4585
- > = z.enum(PublishPostMode);
4586
-
4587
- /** @internal */
4588
- export const Visibility$outboundSchema: z.ZodMiniEnum<typeof Visibility> = z
4589
- .enum(Visibility);
4590
-
4591
- /** @internal */
4592
- export type Mention$Outbound = {
4593
- profileUrn: string;
4594
- start: number;
4595
- length: number;
4596
- };
4597
-
4598
- /** @internal */
4599
- export const Mention$outboundSchema: z.ZodMiniType<Mention$Outbound, Mention> =
4600
- z.object({
4601
- profileUrn: z.string(),
4602
- start: z.int(),
4603
- length: z.int(),
4604
- });
4605
-
4606
- export function mentionToJSON(mention: Mention): string {
4607
- return JSON.stringify(Mention$outboundSchema.parse(mention));
4608
- }
4609
-
4610
- /** @internal */
4611
- export type PublishPostRequest$Outbound = {
4612
- text: string;
4613
- mode: string;
4614
- scheduledAt?: number | undefined;
4615
- companyId?: string | undefined;
4616
- imageUrl?: string | undefined;
4617
- imageBase64?: string | undefined;
4618
- imageFileName?: string | undefined;
4619
- visibility: string;
4620
- mentions?: Array<Mention$Outbound> | undefined;
4621
- campaignSlug?: string | undefined;
4622
- actionSlug?: string | undefined;
4655
+ export type UnlikeCommentRequest$Outbound = {
4656
+ commentUrn: string;
4623
4657
  };
4624
4658
 
4625
4659
  /** @internal */
4626
- export const PublishPostRequest$outboundSchema: z.ZodMiniType<
4627
- PublishPostRequest$Outbound,
4628
- PublishPostRequest
4660
+ export const UnlikeCommentRequest$outboundSchema: z.ZodMiniType<
4661
+ UnlikeCommentRequest$Outbound,
4662
+ UnlikeCommentRequest
4629
4663
  > = z.object({
4630
- text: z.string(),
4631
- mode: PublishPostMode$outboundSchema,
4632
- scheduledAt: z.optional(z.int()),
4633
- companyId: z.optional(z.string()),
4634
- imageUrl: z.optional(z.string()),
4635
- imageBase64: z.optional(z.string()),
4636
- imageFileName: z.optional(z.string()),
4637
- visibility: z._default(Visibility$outboundSchema, "ANYONE"),
4638
- mentions: z.optional(z.array(z.lazy(() => Mention$outboundSchema))),
4639
- campaignSlug: z.optional(z.string()),
4640
- actionSlug: z.optional(z.string()),
4664
+ commentUrn: z.string(),
4641
4665
  });
4642
4666
 
4643
- export function publishPostRequestToJSON(
4644
- publishPostRequest: PublishPostRequest,
4667
+ export function unlikeCommentRequestToJSON(
4668
+ unlikeCommentRequest: UnlikeCommentRequest,
4645
4669
  ): string {
4646
4670
  return JSON.stringify(
4647
- PublishPostRequest$outboundSchema.parse(publishPostRequest),
4671
+ UnlikeCommentRequest$outboundSchema.parse(unlikeCommentRequest),
4648
4672
  );
4649
4673
  }
4650
4674
 
4651
4675
  /** @internal */
4652
- export const PublishPostResponse$inboundSchema: z.ZodMiniType<
4653
- PublishPostResponse,
4676
+ export const UnlikeCommentResponse$inboundSchema: z.ZodMiniType<
4677
+ UnlikeCommentResponse,
4654
4678
  unknown
4655
4679
  > = z.object({
4656
4680
  success: types.literal(true),
4657
- shareUrn: types.string(),
4658
- activityUrn: types.nullable(types.string()),
4659
- duplicate: types.optional(types.boolean()),
4660
4681
  creditsUsed: types.number(),
4661
4682
  retryAfter: types.number(),
4662
4683
  });
4663
4684
 
4664
- export function publishPostResponseFromJSON(
4685
+ export function unlikeCommentResponseFromJSON(
4665
4686
  jsonString: string,
4666
- ): SafeParseResult<PublishPostResponse, SDKValidationError> {
4687
+ ): SafeParseResult<UnlikeCommentResponse, SDKValidationError> {
4667
4688
  return safeParse(
4668
4689
  jsonString,
4669
- (x) => PublishPostResponse$inboundSchema.parse(JSON.parse(x)),
4670
- `Failed to parse 'PublishPostResponse' from JSON`,
4690
+ (x) => UnlikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4691
+ `Failed to parse 'UnlikeCommentResponse' from JSON`,
4671
4692
  );
4672
4693
  }
4673
4694
 
4674
4695
  /** @internal */
4675
- export type CreateCommentRequest$Outbound = {
4696
+ export type SavePostRequest$Outbound = {
4676
4697
  postUrl: string;
4677
- message: string;
4678
- companyId?: string | undefined;
4679
- campaignSlug?: string | undefined;
4680
- actionSlug?: string | undefined;
4681
4698
  };
4682
4699
 
4683
4700
  /** @internal */
4684
- export const CreateCommentRequest$outboundSchema: z.ZodMiniType<
4685
- CreateCommentRequest$Outbound,
4686
- CreateCommentRequest
4701
+ export const SavePostRequest$outboundSchema: z.ZodMiniType<
4702
+ SavePostRequest$Outbound,
4703
+ SavePostRequest
4687
4704
  > = z.object({
4688
4705
  postUrl: z.string(),
4689
- message: z.string(),
4690
- companyId: z.optional(z.string()),
4691
- campaignSlug: z.optional(z.string()),
4692
- actionSlug: z.optional(z.string()),
4693
4706
  });
4694
4707
 
4695
- export function createCommentRequestToJSON(
4696
- createCommentRequest: CreateCommentRequest,
4708
+ export function savePostRequestToJSON(
4709
+ savePostRequest: SavePostRequest,
4697
4710
  ): string {
4698
- return JSON.stringify(
4699
- CreateCommentRequest$outboundSchema.parse(createCommentRequest),
4700
- );
4711
+ return JSON.stringify(SavePostRequest$outboundSchema.parse(savePostRequest));
4701
4712
  }
4702
4713
 
4703
4714
  /** @internal */
4704
- export const CreateCommentResponse$inboundSchema: z.ZodMiniType<
4705
- CreateCommentResponse,
4715
+ export const SavePostResponse$inboundSchema: z.ZodMiniType<
4716
+ SavePostResponse,
4706
4717
  unknown
4707
4718
  > = z.object({
4708
4719
  success: types.literal(true),
4709
- commentUrn: types.optional(types.string()),
4710
- fsdCommentUrn: types.optional(types.string()),
4711
- duplicate: types.optional(types.boolean()),
4712
4720
  creditsUsed: types.number(),
4713
4721
  retryAfter: types.number(),
4714
4722
  });
4715
4723
 
4716
- export function createCommentResponseFromJSON(
4724
+ export function savePostResponseFromJSON(
4717
4725
  jsonString: string,
4718
- ): SafeParseResult<CreateCommentResponse, SDKValidationError> {
4726
+ ): SafeParseResult<SavePostResponse, SDKValidationError> {
4719
4727
  return safeParse(
4720
4728
  jsonString,
4721
- (x) => CreateCommentResponse$inboundSchema.parse(JSON.parse(x)),
4722
- `Failed to parse 'CreateCommentResponse' from JSON`,
4729
+ (x) => SavePostResponse$inboundSchema.parse(JSON.parse(x)),
4730
+ `Failed to parse 'SavePostResponse' from JSON`,
4723
4731
  );
4724
4732
  }
4725
4733
 
4726
4734
  /** @internal */
4727
- export type DeclineInvitationRequest$Outbound = {
4728
- invitationId: string;
4729
- sharedSecret: string;
4730
- senderProfileId?: string | undefined;
4735
+ export type UnsavePostRequest$Outbound = {
4736
+ postUrl: string;
4731
4737
  };
4732
4738
 
4733
4739
  /** @internal */
4734
- export const DeclineInvitationRequest$outboundSchema: z.ZodMiniType<
4735
- DeclineInvitationRequest$Outbound,
4736
- DeclineInvitationRequest
4740
+ export const UnsavePostRequest$outboundSchema: z.ZodMiniType<
4741
+ UnsavePostRequest$Outbound,
4742
+ UnsavePostRequest
4737
4743
  > = z.object({
4738
- invitationId: z.string(),
4739
- sharedSecret: z.string(),
4740
- senderProfileId: z.optional(z.string()),
4744
+ postUrl: z.string(),
4741
4745
  });
4742
4746
 
4743
- export function declineInvitationRequestToJSON(
4744
- declineInvitationRequest: DeclineInvitationRequest,
4747
+ export function unsavePostRequestToJSON(
4748
+ unsavePostRequest: UnsavePostRequest,
4745
4749
  ): string {
4746
4750
  return JSON.stringify(
4747
- DeclineInvitationRequest$outboundSchema.parse(declineInvitationRequest),
4751
+ UnsavePostRequest$outboundSchema.parse(unsavePostRequest),
4748
4752
  );
4749
4753
  }
4750
4754
 
4751
4755
  /** @internal */
4752
- export const DeclineInvitationResponse$inboundSchema: z.ZodMiniType<
4753
- DeclineInvitationResponse,
4756
+ export const UnsavePostResponse$inboundSchema: z.ZodMiniType<
4757
+ UnsavePostResponse,
4754
4758
  unknown
4755
4759
  > = z.object({
4756
4760
  success: types.literal(true),
4757
- message: types.string(),
4758
4761
  creditsUsed: types.number(),
4759
4762
  retryAfter: types.number(),
4760
4763
  });
4761
4764
 
4762
- export function declineInvitationResponseFromJSON(
4765
+ export function unsavePostResponseFromJSON(
4763
4766
  jsonString: string,
4764
- ): SafeParseResult<DeclineInvitationResponse, SDKValidationError> {
4767
+ ): SafeParseResult<UnsavePostResponse, SDKValidationError> {
4765
4768
  return safeParse(
4766
4769
  jsonString,
4767
- (x) => DeclineInvitationResponse$inboundSchema.parse(JSON.parse(x)),
4768
- `Failed to parse 'DeclineInvitationResponse' from JSON`,
4770
+ (x) => UnsavePostResponse$inboundSchema.parse(JSON.parse(x)),
4771
+ `Failed to parse 'UnsavePostResponse' from JSON`,
4769
4772
  );
4770
4773
  }
4771
4774
 
4772
4775
  /** @internal */
4773
- export type UnfollowProfileRequest$Outbound = {
4774
- profile: string;
4776
+ export type FollowCompanyRequest$Outbound = {
4777
+ company: string;
4775
4778
  };
4776
4779
 
4777
4780
  /** @internal */
4778
- export const UnfollowProfileRequest$outboundSchema: z.ZodMiniType<
4779
- UnfollowProfileRequest$Outbound,
4780
- UnfollowProfileRequest
4781
+ export const FollowCompanyRequest$outboundSchema: z.ZodMiniType<
4782
+ FollowCompanyRequest$Outbound,
4783
+ FollowCompanyRequest
4781
4784
  > = z.object({
4782
- profile: z.string(),
4785
+ company: z.string(),
4783
4786
  });
4784
4787
 
4785
- export function unfollowProfileRequestToJSON(
4786
- unfollowProfileRequest: UnfollowProfileRequest,
4788
+ export function followCompanyRequestToJSON(
4789
+ followCompanyRequest: FollowCompanyRequest,
4787
4790
  ): string {
4788
4791
  return JSON.stringify(
4789
- UnfollowProfileRequest$outboundSchema.parse(unfollowProfileRequest),
4792
+ FollowCompanyRequest$outboundSchema.parse(followCompanyRequest),
4790
4793
  );
4791
4794
  }
4792
4795
 
4793
4796
  /** @internal */
4794
- export const UnfollowProfileResponse$inboundSchema: z.ZodMiniType<
4795
- UnfollowProfileResponse,
4797
+ export const FollowCompanyResponse$inboundSchema: z.ZodMiniType<
4798
+ FollowCompanyResponse,
4796
4799
  unknown
4797
4800
  > = z.object({
4798
4801
  success: types.literal(true),
4799
- message: types.string(),
4800
4802
  creditsUsed: types.number(),
4801
4803
  retryAfter: types.number(),
4802
4804
  });
4803
4805
 
4804
- export function unfollowProfileResponseFromJSON(
4806
+ export function followCompanyResponseFromJSON(
4805
4807
  jsonString: string,
4806
- ): SafeParseResult<UnfollowProfileResponse, SDKValidationError> {
4808
+ ): SafeParseResult<FollowCompanyResponse, SDKValidationError> {
4807
4809
  return safeParse(
4808
4810
  jsonString,
4809
- (x) => UnfollowProfileResponse$inboundSchema.parse(JSON.parse(x)),
4810
- `Failed to parse 'UnfollowProfileResponse' from JSON`,
4811
+ (x) => FollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
4812
+ `Failed to parse 'FollowCompanyResponse' from JSON`,
4811
4813
  );
4812
4814
  }
4813
4815
 
4814
4816
  /** @internal */
4815
- export type SavePostRequest$Outbound = {
4816
- postUrl: string;
4817
+ export type UnfollowCompanyRequest$Outbound = {
4818
+ company: string;
4817
4819
  };
4818
4820
 
4819
4821
  /** @internal */
4820
- export const SavePostRequest$outboundSchema: z.ZodMiniType<
4821
- SavePostRequest$Outbound,
4822
- SavePostRequest
4822
+ export const UnfollowCompanyRequest$outboundSchema: z.ZodMiniType<
4823
+ UnfollowCompanyRequest$Outbound,
4824
+ UnfollowCompanyRequest
4823
4825
  > = z.object({
4824
- postUrl: z.string(),
4826
+ company: z.string(),
4825
4827
  });
4826
4828
 
4827
- export function savePostRequestToJSON(
4828
- savePostRequest: SavePostRequest,
4829
+ export function unfollowCompanyRequestToJSON(
4830
+ unfollowCompanyRequest: UnfollowCompanyRequest,
4829
4831
  ): string {
4830
- return JSON.stringify(SavePostRequest$outboundSchema.parse(savePostRequest));
4832
+ return JSON.stringify(
4833
+ UnfollowCompanyRequest$outboundSchema.parse(unfollowCompanyRequest),
4834
+ );
4831
4835
  }
4832
4836
 
4833
4837
  /** @internal */
4834
- export const SavePostResponse$inboundSchema: z.ZodMiniType<
4835
- SavePostResponse,
4838
+ export const UnfollowCompanyResponse$inboundSchema: z.ZodMiniType<
4839
+ UnfollowCompanyResponse,
4836
4840
  unknown
4837
4841
  > = z.object({
4838
4842
  success: types.literal(true),
@@ -4840,13 +4844,13 @@ export const SavePostResponse$inboundSchema: z.ZodMiniType<
4840
4844
  retryAfter: types.number(),
4841
4845
  });
4842
4846
 
4843
- export function savePostResponseFromJSON(
4847
+ export function unfollowCompanyResponseFromJSON(
4844
4848
  jsonString: string,
4845
- ): SafeParseResult<SavePostResponse, SDKValidationError> {
4849
+ ): SafeParseResult<UnfollowCompanyResponse, SDKValidationError> {
4846
4850
  return safeParse(
4847
4851
  jsonString,
4848
- (x) => SavePostResponse$inboundSchema.parse(JSON.parse(x)),
4849
- `Failed to parse 'SavePostResponse' from JSON`,
4852
+ (x) => UnfollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
4853
+ `Failed to parse 'UnfollowCompanyResponse' from JSON`,
4850
4854
  );
4851
4855
  }
4852
4856
 
@@ -5050,6 +5054,7 @@ export const GetProfileLastPost$inboundSchema: z.ZodMiniType<
5050
5054
  postUrn: types.string(),
5051
5055
  postId: types.string(),
5052
5056
  type: GetProfileType$inboundSchema,
5057
+ isRepost: types.optional(types.boolean()),
5053
5058
  media: types.optional(z.lazy(() => GetProfileMedia$inboundSchema)),
5054
5059
  });
5055
5060