bereach 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/README.md +101 -128
  3. package/esm/funcs/{linkedin-actions-accept-invitation.d.ts → actions-accept-invitation.d.ts} +2 -2
  4. package/esm/funcs/actions-accept-invitation.d.ts.map +1 -0
  5. package/esm/funcs/{linkedin-actions-accept-invitation.js → actions-accept-invitation.js} +2 -2
  6. package/esm/funcs/{linkedin-actions-edit-post.js.map → actions-accept-invitation.js.map} +1 -1
  7. package/esm/funcs/{linked-in-actions-create-comment.d.ts → actions-create-comment.d.ts} +2 -2
  8. package/esm/funcs/actions-create-comment.d.ts.map +1 -0
  9. package/esm/funcs/{linked-in-actions-create-comment.js → actions-create-comment.js} +2 -2
  10. package/esm/funcs/actions-create-comment.js.map +1 -0
  11. package/esm/funcs/{linkedin-scrapers-list-saved-posts.d.ts → actions-decline-invitation.d.ts} +4 -4
  12. package/esm/funcs/actions-decline-invitation.d.ts.map +1 -0
  13. package/esm/funcs/{linked-in-actions-decline-invitation.js → actions-decline-invitation.js} +2 -2
  14. package/esm/funcs/{linked-in-actions-save-post.js.map → actions-decline-invitation.js.map} +1 -1
  15. package/esm/funcs/{linkedin-actions-edit-comment.d.ts → actions-edit-comment.d.ts} +2 -2
  16. package/esm/funcs/actions-edit-comment.d.ts.map +1 -0
  17. package/esm/funcs/{linkedin-actions-edit-comment.js → actions-edit-comment.js} +2 -2
  18. package/esm/funcs/actions-edit-comment.js.map +1 -0
  19. package/esm/funcs/{linkedin-actions-edit-post.d.ts → actions-edit-post.d.ts} +2 -2
  20. package/esm/funcs/actions-edit-post.d.ts.map +1 -0
  21. package/esm/funcs/{linkedin-actions-edit-post.js → actions-edit-post.js} +2 -2
  22. package/esm/funcs/{sales-navigator-search-search-companies.js.map → actions-edit-post.js.map} +1 -1
  23. package/esm/funcs/{linkedin-actions-follow-profile.d.ts → actions-follow-profile.d.ts} +2 -2
  24. package/esm/funcs/actions-follow-profile.d.ts.map +1 -0
  25. package/esm/funcs/{linkedin-actions-follow-profile.js → actions-follow-profile.js} +2 -2
  26. package/esm/funcs/actions-follow-profile.js.map +1 -0
  27. package/esm/funcs/{linked-in-actions-like-comment.d.ts → actions-like-comment.d.ts} +2 -2
  28. package/esm/funcs/actions-like-comment.d.ts.map +1 -0
  29. package/esm/funcs/{linked-in-actions-like-comment.js → actions-like-comment.js} +2 -2
  30. package/esm/funcs/actions-like-comment.js.map +1 -0
  31. package/esm/funcs/{linkedin-actions-like-post.d.ts → actions-like-post.d.ts} +2 -2
  32. package/esm/funcs/actions-like-post.d.ts.map +1 -0
  33. package/esm/funcs/{linkedin-actions-like-post.js → actions-like-post.js} +2 -2
  34. package/esm/funcs/actions-like-post.js.map +1 -0
  35. package/esm/funcs/{linkedin-actions-list-invitations.d.ts → actions-list-invitations.d.ts} +2 -2
  36. package/esm/funcs/{linkedin-chat-list-inbox.d.ts.map → actions-list-invitations.d.ts.map} +1 -1
  37. package/esm/funcs/{linkedin-actions-list-invitations.js → actions-list-invitations.js} +2 -2
  38. package/esm/funcs/{linkedin-actions-unlike-comment.js.map → actions-list-invitations.js.map} +1 -1
  39. package/esm/funcs/{linked-in-actions-publish-post.d.ts → actions-publish-post.d.ts} +2 -2
  40. package/esm/funcs/actions-publish-post.d.ts.map +1 -0
  41. package/esm/funcs/{linked-in-actions-publish-post.js → actions-publish-post.js} +2 -2
  42. package/esm/funcs/actions-publish-post.js.map +1 -0
  43. package/esm/funcs/{linkedin-actions-reply-to-comment.d.ts → actions-reply-to-comment.d.ts} +2 -2
  44. package/esm/funcs/{linked-in-chat-unarchive.d.ts.map → actions-reply-to-comment.d.ts.map} +1 -1
  45. package/esm/funcs/{linkedin-actions-reply-to-comment.js → actions-reply-to-comment.js} +2 -2
  46. package/esm/funcs/actions-reply-to-comment.js.map +1 -0
  47. package/esm/funcs/actions-repost-post.d.ts +18 -0
  48. package/esm/funcs/actions-repost-post.d.ts.map +1 -0
  49. package/esm/funcs/{linkedin-actions-repost-post.js → actions-repost-post.js} +2 -2
  50. package/esm/funcs/{linkedin-chat-react.js.map → actions-repost-post.js.map} +1 -1
  51. package/esm/funcs/{linked-in-actions-save-post.d.ts → actions-save-post.d.ts} +2 -2
  52. package/esm/funcs/actions-save-post.d.ts.map +1 -0
  53. package/esm/funcs/{linked-in-actions-save-post.js → actions-save-post.js} +2 -2
  54. package/esm/funcs/actions-save-post.js.map +1 -0
  55. package/esm/funcs/{linkedin-chat-list-inbox.d.ts → actions-unfollow-company.d.ts} +4 -4
  56. package/esm/funcs/actions-unfollow-company.d.ts.map +1 -0
  57. package/esm/funcs/{linkedin-actions-unfollow-company.js → actions-unfollow-company.js} +2 -2
  58. package/esm/funcs/actions-unfollow-company.js.map +1 -0
  59. package/esm/funcs/{linkedin-scrapers-collect-likes.d.ts → actions-unfollow-profile.d.ts} +4 -4
  60. package/esm/funcs/actions-unfollow-profile.d.ts.map +1 -0
  61. package/esm/funcs/{linked-in-actions-unfollow-profile.js → actions-unfollow-profile.js} +2 -2
  62. package/esm/funcs/actions-unfollow-profile.js.map +1 -0
  63. package/esm/funcs/{linkedin-actions-unlike-comment.d.ts → actions-unlike-comment.d.ts} +2 -2
  64. package/esm/funcs/actions-unlike-comment.d.ts.map +1 -0
  65. package/esm/funcs/{linkedin-actions-unlike-comment.js → actions-unlike-comment.js} +2 -2
  66. package/esm/funcs/actions-unlike-comment.js.map +1 -0
  67. package/esm/funcs/{linkedin-actions-unlike-post.d.ts → actions-unlike-post.d.ts} +2 -2
  68. package/esm/funcs/actions-unlike-post.d.ts.map +1 -0
  69. package/esm/funcs/{linkedin-actions-unlike-post.js → actions-unlike-post.js} +2 -2
  70. package/esm/funcs/{linked-in-chat-star.js.map → actions-unlike-post.js.map} +1 -1
  71. package/esm/funcs/{linkedin-actions-unsave-post.d.ts → actions-unsave-post.d.ts} +2 -2
  72. package/esm/funcs/actions-unsave-post.d.ts.map +1 -0
  73. package/esm/funcs/{linkedin-actions-unsave-post.js → actions-unsave-post.js} +2 -2
  74. package/esm/funcs/actions-unsave-post.js.map +1 -0
  75. package/esm/funcs/{linkedin-actions-withdraw-invitation.d.ts → actions-withdraw-invitation.d.ts} +2 -2
  76. package/esm/funcs/actions-withdraw-invitation.d.ts.map +1 -0
  77. package/esm/funcs/{linkedin-actions-withdraw-invitation.js → actions-withdraw-invitation.js} +2 -2
  78. package/esm/funcs/{linkedin-actions-repost-post.js.map → actions-withdraw-invitation.js.map} +1 -1
  79. package/esm/funcs/chat-list-inbox.d.ts +18 -0
  80. package/esm/funcs/chat-list-inbox.d.ts.map +1 -0
  81. package/esm/funcs/{linkedin-chat-list-inbox.js → chat-list-inbox.js} +2 -2
  82. package/esm/funcs/chat-list-inbox.js.map +1 -0
  83. package/esm/funcs/{linkedin-chat-mark-all-read.d.ts → chat-mark-all-read.d.ts} +2 -2
  84. package/esm/funcs/chat-mark-all-read.d.ts.map +1 -0
  85. package/esm/funcs/{linkedin-chat-mark-all-read.js → chat-mark-all-read.js} +2 -2
  86. package/esm/funcs/chat-mark-all-read.js.map +1 -0
  87. package/esm/funcs/{linked-in-chat-mark-seen.d.ts → chat-mark-seen.d.ts} +2 -2
  88. package/esm/funcs/chat-mark-seen.d.ts.map +1 -0
  89. package/esm/funcs/{linked-in-chat-mark-seen.js → chat-mark-seen.js} +2 -2
  90. package/esm/funcs/chat-mark-seen.js.map +1 -0
  91. package/esm/funcs/{linkedin-chat-react.d.ts → chat-react.d.ts} +2 -2
  92. package/esm/funcs/chat-react.d.ts.map +1 -0
  93. package/esm/funcs/{linkedin-chat-react.js → chat-react.js} +2 -2
  94. package/esm/funcs/{sales-navigator-search-search.js.map → chat-react.js.map} +1 -1
  95. package/esm/funcs/{linkedin-scrapers-collect-comments.d.ts → chat-send-typing-indicator.d.ts} +4 -4
  96. package/esm/funcs/{linkedin-actions-edit-post.d.ts.map → chat-send-typing-indicator.d.ts.map} +1 -1
  97. package/esm/funcs/{linkedin-chat-send-typing-indicator.js → chat-send-typing-indicator.js} +2 -2
  98. package/esm/funcs/chat-send-typing-indicator.js.map +1 -0
  99. package/esm/funcs/{linked-in-chat-star.d.ts → chat-star.d.ts} +2 -2
  100. package/esm/funcs/chat-star.d.ts.map +1 -0
  101. package/esm/funcs/{linked-in-chat-star.js → chat-star.js} +2 -2
  102. package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.js.map → chat-star.js.map} +1 -1
  103. package/esm/funcs/{linked-in-chat-unarchive.d.ts → chat-unarchive.d.ts} +2 -2
  104. package/esm/funcs/chat-unarchive.d.ts.map +1 -0
  105. package/esm/funcs/{linked-in-chat-unarchive.js → chat-unarchive.js} +2 -2
  106. package/esm/funcs/chat-unarchive.js.map +1 -0
  107. package/esm/funcs/{linked-in-chat-unstar.d.ts → chat-unstar.d.ts} +2 -2
  108. package/esm/funcs/chat-unstar.d.ts.map +1 -0
  109. package/esm/funcs/{linked-in-chat-unstar.js → chat-unstar.js} +2 -2
  110. package/esm/funcs/{linked-in-search-search.js.map → chat-unstar.js.map} +1 -1
  111. package/esm/funcs/company-pages-posts.d.ts +18 -0
  112. package/esm/funcs/company-pages-posts.d.ts.map +1 -0
  113. package/esm/funcs/{company-pages-get-posts.js → company-pages-posts.js} +2 -2
  114. package/esm/funcs/company-pages-posts.js.map +1 -0
  115. package/esm/funcs/{linkedin-actions-repost-post.d.ts → profile-posts.d.ts} +4 -4
  116. package/esm/funcs/profile-posts.d.ts.map +1 -0
  117. package/esm/funcs/{profile-get-posts.js → profile-posts.js} +2 -2
  118. package/esm/funcs/profile-posts.js.map +1 -0
  119. package/esm/funcs/{profile-get-profile-views.d.ts → profile-views.d.ts} +2 -2
  120. package/esm/funcs/profile-views.d.ts.map +1 -0
  121. package/esm/funcs/{profile-get-profile-views.js → profile-views.js} +2 -2
  122. package/esm/funcs/profile-views.js.map +1 -0
  123. package/esm/funcs/{sales-navigator-search-search-companies.d.ts → sales-nav-companies.d.ts} +2 -2
  124. package/esm/funcs/sales-nav-companies.d.ts.map +1 -0
  125. package/esm/funcs/{sales-navigator-search-search-companies.js → sales-nav-companies.js} +2 -2
  126. package/esm/funcs/{linkedin-actions-unlike-post.js.map → sales-nav-companies.js.map} +1 -1
  127. package/esm/funcs/{sales-nav-search-people.d.ts → sales-nav-people.d.ts} +2 -2
  128. package/esm/funcs/sales-nav-people.d.ts.map +1 -0
  129. package/esm/funcs/{sales-nav-search-people.js → sales-nav-people.js} +2 -2
  130. package/esm/funcs/{linkedin-actions-reply-to-comment.js.map → sales-nav-people.js.map} +1 -1
  131. package/esm/funcs/{sales-navigator-search-search.d.ts → sales-nav-search.d.ts} +2 -2
  132. package/esm/funcs/sales-nav-search.d.ts.map +1 -0
  133. package/esm/funcs/{sales-navigator-search-search.js → sales-nav-search.js} +2 -2
  134. package/esm/funcs/sales-nav-search.js.map +1 -0
  135. package/esm/funcs/{linked-in-scrapers-collect-comment-replies.d.ts → scrapers-collect-comment-replies.d.ts} +2 -2
  136. package/esm/funcs/{linked-in-actions-create-comment.d.ts.map → scrapers-collect-comment-replies.d.ts.map} +1 -1
  137. package/esm/funcs/{linked-in-scrapers-collect-comment-replies.js → scrapers-collect-comment-replies.js} +2 -2
  138. package/esm/funcs/{linked-in-scrapers-get-feed.js.map → scrapers-collect-comment-replies.js.map} +1 -1
  139. package/esm/funcs/scrapers-collect-comments.d.ts +18 -0
  140. package/esm/funcs/scrapers-collect-comments.d.ts.map +1 -0
  141. package/esm/funcs/{linkedin-scrapers-collect-comments.js → scrapers-collect-comments.js} +2 -2
  142. package/esm/funcs/{linkedin-actions-like-post.js.map → scrapers-collect-comments.js.map} +1 -1
  143. package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.d.ts → scrapers-collect-hashtag-posts.d.ts} +2 -2
  144. package/esm/funcs/{linked-in-actions-like-comment.d.ts.map → scrapers-collect-hashtag-posts.d.ts.map} +1 -1
  145. package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.js → scrapers-collect-hashtag-posts.js} +2 -2
  146. package/esm/funcs/{linked-in-search-search-companies.js.map → scrapers-collect-hashtag-posts.js.map} +1 -1
  147. package/esm/funcs/scrapers-collect-likes.d.ts +18 -0
  148. package/esm/funcs/scrapers-collect-likes.d.ts.map +1 -0
  149. package/esm/funcs/{linkedin-scrapers-collect-likes.js → scrapers-collect-likes.js} +2 -2
  150. package/esm/funcs/scrapers-collect-likes.js.map +1 -0
  151. package/esm/funcs/{linked-in-scrapers-get-feed.d.ts → scrapers-get-feed.d.ts} +2 -2
  152. package/esm/funcs/scrapers-get-feed.d.ts.map +1 -0
  153. package/esm/funcs/{linked-in-scrapers-get-feed.js → scrapers-get-feed.js} +2 -2
  154. package/esm/funcs/{profile-get-posts.js.map → scrapers-get-feed.js.map} +1 -1
  155. package/esm/funcs/{company-pages-get-posts.d.ts → scrapers-list-saved-posts.d.ts} +4 -4
  156. package/esm/funcs/scrapers-list-saved-posts.d.ts.map +1 -0
  157. package/esm/funcs/{linkedin-scrapers-list-saved-posts.js → scrapers-list-saved-posts.js} +2 -2
  158. package/esm/funcs/scrapers-list-saved-posts.js.map +1 -0
  159. package/esm/funcs/{linkedin-scrapers-visit-company.d.ts → scrapers-visit-company.d.ts} +2 -2
  160. package/esm/funcs/scrapers-visit-company.d.ts.map +1 -0
  161. package/esm/funcs/{linkedin-scrapers-visit-company.js → scrapers-visit-company.js} +2 -2
  162. package/esm/funcs/scrapers-visit-company.js.map +1 -0
  163. package/esm/funcs/{linkedin-search-search-by-url.d.ts → search-by-url.d.ts} +2 -2
  164. package/esm/funcs/search-by-url.d.ts.map +1 -0
  165. package/esm/funcs/{linkedin-search-search-by-url.js → search-by-url.js} +2 -2
  166. package/esm/funcs/search-by-url.js.map +1 -0
  167. package/esm/funcs/{linked-in-search-search-companies.d.ts → search-companies.d.ts} +2 -2
  168. package/esm/funcs/search-companies.d.ts.map +1 -0
  169. package/esm/funcs/{linked-in-search-search-companies.js → search-companies.js} +2 -2
  170. package/esm/funcs/search-companies.js.map +1 -0
  171. package/esm/funcs/{linkedin-search-search-jobs.d.ts → search-jobs.d.ts} +2 -2
  172. package/esm/funcs/search-jobs.d.ts.map +1 -0
  173. package/esm/funcs/{linkedin-search-search-jobs.js → search-jobs.js} +2 -2
  174. package/esm/funcs/search-jobs.js.map +1 -0
  175. package/esm/funcs/{linkedin-search-search-people.d.ts → search-people.d.ts} +2 -2
  176. package/esm/funcs/search-people.d.ts.map +1 -0
  177. package/esm/funcs/{linkedin-search-search-people.js → search-people.js} +2 -2
  178. package/esm/funcs/search-people.js.map +1 -0
  179. package/esm/funcs/{linkedin-search-search-posts.d.ts → search-posts.d.ts} +2 -2
  180. package/esm/funcs/search-posts.d.ts.map +1 -0
  181. package/esm/funcs/{linkedin-search-search-posts.js → search-posts.js} +2 -2
  182. package/esm/funcs/search-posts.js.map +1 -0
  183. package/esm/funcs/{linked-in-search-search.d.ts → search-search.d.ts} +2 -2
  184. package/esm/funcs/search-search.d.ts.map +1 -0
  185. package/esm/funcs/{linked-in-search-search.js → search-search.js} +2 -2
  186. package/esm/funcs/{linkedin-actions-follow-profile.js.map → search-search.js.map} +1 -1
  187. package/esm/lib/config.d.ts +2 -2
  188. package/esm/lib/config.js +2 -2
  189. package/esm/models/operations/index.d.ts +1 -1
  190. package/esm/models/operations/index.d.ts.map +1 -1
  191. package/esm/models/operations/index.js +1 -1
  192. package/esm/models/operations/index.js.map +1 -1
  193. package/esm/models/operations/{search-people-response.d.ts → search-companies-response.d.ts} +890 -890
  194. package/esm/models/operations/search-companies-response.d.ts.map +1 -0
  195. package/esm/models/operations/{search-people-response.js → search-companies-response.js} +611 -604
  196. package/esm/models/operations/search-companies-response.js.map +1 -0
  197. package/esm/models/operations/search-contacts-campaign.d.ts +180 -180
  198. package/esm/models/operations/search-contacts-campaign.d.ts.map +1 -1
  199. package/esm/models/operations/search-contacts-campaign.js +102 -102
  200. package/esm/models/operations/search-contacts-campaign.js.map +1 -1
  201. package/esm/models/operations/update-account-response.d.ts +634 -634
  202. package/esm/models/operations/update-account-response.d.ts.map +1 -1
  203. package/esm/models/operations/update-account-response.js +307 -307
  204. package/esm/models/operations/update-account-response.js.map +1 -1
  205. package/esm/models/operations/update-schedule-response.d.ts +111 -61
  206. package/esm/models/operations/update-schedule-response.d.ts.map +1 -1
  207. package/esm/models/operations/update-schedule-response.js +37 -32
  208. package/esm/models/operations/update-schedule-response.js.map +1 -1
  209. package/esm/sdk/actions.d.ts +133 -0
  210. package/esm/sdk/actions.d.ts.map +1 -1
  211. package/esm/sdk/actions.js +190 -0
  212. package/esm/sdk/actions.js.map +1 -1
  213. package/esm/sdk/chat.d.ts +56 -0
  214. package/esm/sdk/chat.d.ts.map +1 -1
  215. package/esm/sdk/chat.js +80 -0
  216. package/esm/sdk/chat.js.map +1 -1
  217. package/esm/sdk/company-pages.d.ts +1 -1
  218. package/esm/sdk/company-pages.d.ts.map +1 -1
  219. package/esm/sdk/company-pages.js +3 -3
  220. package/esm/sdk/company-pages.js.map +1 -1
  221. package/esm/sdk/contacts.d.ts +12 -12
  222. package/esm/sdk/contacts.d.ts.map +1 -1
  223. package/esm/sdk/contacts.js +16 -16
  224. package/esm/sdk/contacts.js.map +1 -1
  225. package/esm/sdk/profile.d.ts +2 -2
  226. package/esm/sdk/profile.d.ts.map +1 -1
  227. package/esm/sdk/profile.js +6 -6
  228. package/esm/sdk/profile.js.map +1 -1
  229. package/esm/sdk/sales-nav.d.ts +51 -1
  230. package/esm/sdk/sales-nav.d.ts.map +1 -1
  231. package/esm/sdk/sales-nav.js +59 -3
  232. package/esm/sdk/sales-nav.js.map +1 -1
  233. package/esm/sdk/scrapers.d.ts +49 -0
  234. package/esm/sdk/scrapers.d.ts.map +1 -1
  235. package/esm/sdk/scrapers.js +70 -0
  236. package/esm/sdk/scrapers.js.map +1 -1
  237. package/esm/sdk/sdk.d.ts +0 -27
  238. package/esm/sdk/sdk.d.ts.map +1 -1
  239. package/esm/sdk/sdk.js +0 -45
  240. package/esm/sdk/sdk.js.map +1 -1
  241. package/esm/sdk/search.d.ts +383 -0
  242. package/esm/sdk/search.d.ts.map +1 -1
  243. package/esm/sdk/search.js +401 -0
  244. package/esm/sdk/search.js.map +1 -1
  245. package/examples/{linkedinScrapersCollectLikes.example.ts → scrapersCollectLikes.example.ts} +2 -2
  246. package/jsr.json +1 -1
  247. package/package.json +1 -1
  248. package/src/funcs/{linkedin-actions-accept-invitation.ts → actions-accept-invitation.ts} +1 -1
  249. package/src/funcs/{linked-in-actions-create-comment.ts → actions-create-comment.ts} +1 -1
  250. package/src/funcs/{linked-in-actions-decline-invitation.ts → actions-decline-invitation.ts} +1 -1
  251. package/src/funcs/{linkedin-actions-edit-comment.ts → actions-edit-comment.ts} +1 -1
  252. package/src/funcs/{linkedin-actions-edit-post.ts → actions-edit-post.ts} +1 -1
  253. package/src/funcs/{linkedin-actions-follow-profile.ts → actions-follow-profile.ts} +1 -1
  254. package/src/funcs/{linked-in-actions-like-comment.ts → actions-like-comment.ts} +1 -1
  255. package/src/funcs/{linkedin-actions-like-post.ts → actions-like-post.ts} +1 -1
  256. package/src/funcs/{linkedin-actions-list-invitations.ts → actions-list-invitations.ts} +1 -1
  257. package/src/funcs/{linked-in-actions-publish-post.ts → actions-publish-post.ts} +1 -1
  258. package/src/funcs/{linkedin-actions-reply-to-comment.ts → actions-reply-to-comment.ts} +1 -1
  259. package/src/funcs/{linkedin-actions-repost-post.ts → actions-repost-post.ts} +1 -1
  260. package/src/funcs/{linked-in-actions-save-post.ts → actions-save-post.ts} +1 -1
  261. package/src/funcs/{linkedin-actions-unfollow-company.ts → actions-unfollow-company.ts} +1 -1
  262. package/src/funcs/{linked-in-actions-unfollow-profile.ts → actions-unfollow-profile.ts} +1 -1
  263. package/src/funcs/{linkedin-actions-unlike-comment.ts → actions-unlike-comment.ts} +1 -1
  264. package/src/funcs/{linkedin-actions-unlike-post.ts → actions-unlike-post.ts} +1 -1
  265. package/src/funcs/{linkedin-actions-unsave-post.ts → actions-unsave-post.ts} +1 -1
  266. package/src/funcs/{linkedin-actions-withdraw-invitation.ts → actions-withdraw-invitation.ts} +1 -1
  267. package/src/funcs/{linkedin-chat-list-inbox.ts → chat-list-inbox.ts} +1 -1
  268. package/src/funcs/{linkedin-chat-mark-all-read.ts → chat-mark-all-read.ts} +1 -1
  269. package/src/funcs/{linked-in-chat-mark-seen.ts → chat-mark-seen.ts} +1 -1
  270. package/src/funcs/{linkedin-chat-react.ts → chat-react.ts} +1 -1
  271. package/src/funcs/{linkedin-chat-send-typing-indicator.ts → chat-send-typing-indicator.ts} +1 -1
  272. package/src/funcs/{linked-in-chat-star.ts → chat-star.ts} +1 -1
  273. package/src/funcs/{linked-in-chat-unarchive.ts → chat-unarchive.ts} +1 -1
  274. package/src/funcs/{linked-in-chat-unstar.ts → chat-unstar.ts} +1 -1
  275. package/src/funcs/{company-pages-get-posts.ts → company-pages-posts.ts} +1 -1
  276. package/src/funcs/{profile-get-posts.ts → profile-posts.ts} +1 -1
  277. package/src/funcs/{profile-get-profile-views.ts → profile-views.ts} +1 -1
  278. package/src/funcs/{sales-navigator-search-search-companies.ts → sales-nav-companies.ts} +1 -1
  279. package/src/funcs/{sales-nav-search-people.ts → sales-nav-people.ts} +1 -1
  280. package/src/funcs/{sales-navigator-search-search.ts → sales-nav-search.ts} +1 -1
  281. package/src/funcs/{linked-in-scrapers-collect-comment-replies.ts → scrapers-collect-comment-replies.ts} +1 -1
  282. package/src/funcs/{linkedin-scrapers-collect-comments.ts → scrapers-collect-comments.ts} +1 -1
  283. package/src/funcs/{linkedin-scrapers-collect-hashtag-posts.ts → scrapers-collect-hashtag-posts.ts} +1 -1
  284. package/src/funcs/{linkedin-scrapers-collect-likes.ts → scrapers-collect-likes.ts} +1 -1
  285. package/src/funcs/{linked-in-scrapers-get-feed.ts → scrapers-get-feed.ts} +1 -1
  286. package/src/funcs/{linkedin-scrapers-list-saved-posts.ts → scrapers-list-saved-posts.ts} +1 -1
  287. package/src/funcs/{linkedin-scrapers-visit-company.ts → scrapers-visit-company.ts} +1 -1
  288. package/src/funcs/{linkedin-search-search-by-url.ts → search-by-url.ts} +1 -1
  289. package/src/funcs/{linked-in-search-search-companies.ts → search-companies.ts} +1 -1
  290. package/src/funcs/{linkedin-search-search-jobs.ts → search-jobs.ts} +1 -1
  291. package/src/funcs/{linkedin-search-search-people.ts → search-people.ts} +1 -1
  292. package/src/funcs/{linkedin-search-search-posts.ts → search-posts.ts} +1 -1
  293. package/src/funcs/{linked-in-search-search.ts → search-search.ts} +1 -1
  294. package/src/lib/config.ts +2 -2
  295. package/src/models/operations/index.ts +1 -1
  296. package/src/models/operations/{search-people-response.ts → search-companies-response.ts} +1897 -1909
  297. package/src/models/operations/search-contacts-campaign.ts +366 -366
  298. package/src/models/operations/update-account-response.ts +1147 -1147
  299. package/src/models/operations/update-schedule-response.ts +180 -125
  300. package/src/sdk/actions.ts +342 -0
  301. package/src/sdk/chat.ts +144 -0
  302. package/src/sdk/company-pages.ts +3 -3
  303. package/src/sdk/contacts.ts +24 -24
  304. package/src/sdk/profile.ts +6 -6
  305. package/src/sdk/sales-nav.ts +75 -3
  306. package/src/sdk/scrapers.ts +126 -0
  307. package/src/sdk/sdk.ts +0 -56
  308. package/src/sdk/search.ts +449 -0
  309. package/esm/funcs/company-pages-get-posts.d.ts.map +0 -1
  310. package/esm/funcs/company-pages-get-posts.js.map +0 -1
  311. package/esm/funcs/linked-in-actions-create-comment.js.map +0 -1
  312. package/esm/funcs/linked-in-actions-decline-invitation.d.ts +0 -18
  313. package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +0 -1
  314. package/esm/funcs/linked-in-actions-decline-invitation.js.map +0 -1
  315. package/esm/funcs/linked-in-actions-like-comment.js.map +0 -1
  316. package/esm/funcs/linked-in-actions-publish-post.d.ts.map +0 -1
  317. package/esm/funcs/linked-in-actions-publish-post.js.map +0 -1
  318. package/esm/funcs/linked-in-actions-save-post.d.ts.map +0 -1
  319. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +0 -18
  320. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts.map +0 -1
  321. package/esm/funcs/linked-in-actions-unfollow-profile.js.map +0 -1
  322. package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +0 -1
  323. package/esm/funcs/linked-in-chat-mark-seen.js.map +0 -1
  324. package/esm/funcs/linked-in-chat-star.d.ts.map +0 -1
  325. package/esm/funcs/linked-in-chat-unarchive.js.map +0 -1
  326. package/esm/funcs/linked-in-chat-unstar.d.ts.map +0 -1
  327. package/esm/funcs/linked-in-chat-unstar.js.map +0 -1
  328. package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +0 -1
  329. package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +0 -1
  330. package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +0 -1
  331. package/esm/funcs/linked-in-search-search-companies.d.ts.map +0 -1
  332. package/esm/funcs/linked-in-search-search.d.ts.map +0 -1
  333. package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +0 -1
  334. package/esm/funcs/linkedin-actions-accept-invitation.js.map +0 -1
  335. package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +0 -1
  336. package/esm/funcs/linkedin-actions-edit-comment.js.map +0 -1
  337. package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +0 -1
  338. package/esm/funcs/linkedin-actions-like-post.d.ts.map +0 -1
  339. package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +0 -1
  340. package/esm/funcs/linkedin-actions-list-invitations.js.map +0 -1
  341. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +0 -1
  342. package/esm/funcs/linkedin-actions-repost-post.d.ts.map +0 -1
  343. package/esm/funcs/linkedin-actions-unfollow-company.d.ts +0 -18
  344. package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +0 -1
  345. package/esm/funcs/linkedin-actions-unfollow-company.js.map +0 -1
  346. package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +0 -1
  347. package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +0 -1
  348. package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +0 -1
  349. package/esm/funcs/linkedin-actions-unsave-post.js.map +0 -1
  350. package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +0 -1
  351. package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +0 -1
  352. package/esm/funcs/linkedin-chat-list-inbox.js.map +0 -1
  353. package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +0 -1
  354. package/esm/funcs/linkedin-chat-mark-all-read.js.map +0 -1
  355. package/esm/funcs/linkedin-chat-react.d.ts.map +0 -1
  356. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +0 -18
  357. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +0 -1
  358. package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +0 -1
  359. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +0 -1
  360. package/esm/funcs/linkedin-scrapers-collect-comments.js.map +0 -1
  361. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +0 -1
  362. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +0 -1
  363. package/esm/funcs/linkedin-scrapers-collect-likes.js.map +0 -1
  364. package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +0 -1
  365. package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +0 -1
  366. package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +0 -1
  367. package/esm/funcs/linkedin-scrapers-visit-company.js.map +0 -1
  368. package/esm/funcs/linkedin-search-search-by-url.d.ts.map +0 -1
  369. package/esm/funcs/linkedin-search-search-by-url.js.map +0 -1
  370. package/esm/funcs/linkedin-search-search-jobs.d.ts.map +0 -1
  371. package/esm/funcs/linkedin-search-search-jobs.js.map +0 -1
  372. package/esm/funcs/linkedin-search-search-people.d.ts.map +0 -1
  373. package/esm/funcs/linkedin-search-search-people.js.map +0 -1
  374. package/esm/funcs/linkedin-search-search-posts.d.ts.map +0 -1
  375. package/esm/funcs/linkedin-search-search-posts.js.map +0 -1
  376. package/esm/funcs/profile-get-posts.d.ts +0 -18
  377. package/esm/funcs/profile-get-posts.d.ts.map +0 -1
  378. package/esm/funcs/profile-get-profile-views.d.ts.map +0 -1
  379. package/esm/funcs/profile-get-profile-views.js.map +0 -1
  380. package/esm/funcs/sales-nav-search-people.d.ts.map +0 -1
  381. package/esm/funcs/sales-nav-search-people.js.map +0 -1
  382. package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +0 -1
  383. package/esm/funcs/sales-navigator-search-search.d.ts.map +0 -1
  384. package/esm/models/operations/search-people-response.d.ts.map +0 -1
  385. package/esm/models/operations/search-people-response.js.map +0 -1
  386. package/esm/sdk/linked-in-actions-2.d.ts +0 -47
  387. package/esm/sdk/linked-in-actions-2.d.ts.map +0 -1
  388. package/esm/sdk/linked-in-actions-2.js +0 -68
  389. package/esm/sdk/linked-in-actions-2.js.map +0 -1
  390. package/esm/sdk/linked-in-chat-2.d.ts +0 -33
  391. package/esm/sdk/linked-in-chat-2.d.ts.map +0 -1
  392. package/esm/sdk/linked-in-chat-2.js +0 -48
  393. package/esm/sdk/linked-in-chat-2.js.map +0 -1
  394. package/esm/sdk/linked-in-scrapers-2.d.ts +0 -19
  395. package/esm/sdk/linked-in-scrapers-2.d.ts.map +0 -1
  396. package/esm/sdk/linked-in-scrapers-2.js +0 -28
  397. package/esm/sdk/linked-in-scrapers-2.js.map +0 -1
  398. package/esm/sdk/linked-in-search-1.d.ts +0 -113
  399. package/esm/sdk/linked-in-search-1.d.ts.map +0 -1
  400. package/esm/sdk/linked-in-search-1.js +0 -122
  401. package/esm/sdk/linked-in-search-1.js.map +0 -1
  402. package/esm/sdk/linkedin-actions-1.d.ts +0 -96
  403. package/esm/sdk/linkedin-actions-1.d.ts.map +0 -1
  404. package/esm/sdk/linkedin-actions-1.js +0 -138
  405. package/esm/sdk/linkedin-actions-1.js.map +0 -1
  406. package/esm/sdk/linkedin-chat-1.d.ts +0 -33
  407. package/esm/sdk/linkedin-chat-1.d.ts.map +0 -1
  408. package/esm/sdk/linkedin-chat-1.js +0 -48
  409. package/esm/sdk/linkedin-chat-1.js.map +0 -1
  410. package/esm/sdk/linkedin-scrapers-1.d.ts +0 -40
  411. package/esm/sdk/linkedin-scrapers-1.d.ts.map +0 -1
  412. package/esm/sdk/linkedin-scrapers-1.js +0 -58
  413. package/esm/sdk/linkedin-scrapers-1.js.map +0 -1
  414. package/esm/sdk/linkedin-search-2.d.ts +0 -280
  415. package/esm/sdk/linkedin-search-2.d.ts.map +0 -1
  416. package/esm/sdk/linkedin-search-2.js +0 -295
  417. package/esm/sdk/linkedin-search-2.js.map +0 -1
  418. package/esm/sdk/sales-navigator-search.d.ts +0 -55
  419. package/esm/sdk/sales-navigator-search.d.ts.map +0 -1
  420. package/esm/sdk/sales-navigator-search.js +0 -64
  421. package/esm/sdk/sales-navigator-search.js.map +0 -1
  422. package/src/sdk/linked-in-actions-2.ts +0 -117
  423. package/src/sdk/linked-in-chat-2.ts +0 -81
  424. package/src/sdk/linked-in-scrapers-2.ts +0 -45
  425. package/src/sdk/linked-in-search-1.ts +0 -139
  426. package/src/sdk/linkedin-actions-1.ts +0 -243
  427. package/src/sdk/linkedin-chat-1.ts +0 -81
  428. package/src/sdk/linkedin-scrapers-1.ts +0 -99
  429. package/src/sdk/linkedin-search-2.ts +0 -328
  430. package/src/sdk/sales-navigator-search.ts +0 -81
@@ -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).
@@ -3211,202 +3211,48 @@ export function searchSalesNavResponseFromJSON(
3211
3211
  }
3212
3212
 
3213
3213
  /** @internal */
3214
- export const SearchSalesNavCompaniesCategoryRequest$outboundSchema:
3215
- z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryRequest> = z.enum(
3216
- SearchSalesNavCompaniesCategoryRequest,
3217
- );
3214
+ export const SearchSalesNavPeopleCategoryRequest$outboundSchema: z.ZodMiniEnum<
3215
+ typeof SearchSalesNavPeopleCategoryRequest
3216
+ > = z.enum(SearchSalesNavPeopleCategoryRequest);
3218
3217
 
3219
3218
  /** @internal */
3220
- export type SearchSalesNavCompaniesIndustry$Outbound = {
3219
+ export type SearchSalesNavPeopleCompany$Outbound = {
3221
3220
  include?: Array<string> | undefined;
3222
3221
  exclude?: Array<string> | undefined;
3223
3222
  };
3224
3223
 
3225
3224
  /** @internal */
3226
- export const SearchSalesNavCompaniesIndustry$outboundSchema: z.ZodMiniType<
3227
- SearchSalesNavCompaniesIndustry$Outbound,
3228
- SearchSalesNavCompaniesIndustry
3225
+ export const SearchSalesNavPeopleCompany$outboundSchema: z.ZodMiniType<
3226
+ SearchSalesNavPeopleCompany$Outbound,
3227
+ SearchSalesNavPeopleCompany
3229
3228
  > = z.object({
3230
3229
  include: z.optional(z.array(z.string())),
3231
3230
  exclude: z.optional(z.array(z.string())),
3232
3231
  });
3233
3232
 
3234
- export function searchSalesNavCompaniesIndustryToJSON(
3235
- searchSalesNavCompaniesIndustry: SearchSalesNavCompaniesIndustry,
3233
+ export function searchSalesNavPeopleCompanyToJSON(
3234
+ searchSalesNavPeopleCompany: SearchSalesNavPeopleCompany,
3236
3235
  ): string {
3237
3236
  return JSON.stringify(
3238
- SearchSalesNavCompaniesIndustry$outboundSchema.parse(
3239
- searchSalesNavCompaniesIndustry,
3237
+ SearchSalesNavPeopleCompany$outboundSchema.parse(
3238
+ searchSalesNavPeopleCompany,
3240
3239
  ),
3241
3240
  );
3242
3241
  }
3243
3242
 
3244
3243
  /** @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;
3244
+ export type SearchSalesNavPeopleIndustry$Outbound = {
3245
+ include?: Array<string> | undefined;
3246
+ exclude?: Array<string> | undefined;
3256
3247
  };
3257
3248
 
3258
3249
  /** @internal */
3259
- export const SearchSalesNavCompaniesRequest$outboundSchema: z.ZodMiniType<
3260
- SearchSalesNavCompaniesRequest$Outbound,
3261
- SearchSalesNavCompaniesRequest
3250
+ export const SearchSalesNavPeopleIndustry$outboundSchema: z.ZodMiniType<
3251
+ SearchSalesNavPeopleIndustry$Outbound,
3252
+ SearchSalesNavPeopleIndustry
3262
3253
  > = 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())),
3254
+ include: z.optional(z.array(z.string())),
3255
+ exclude: z.optional(z.array(z.string())),
3410
3256
  });
3411
3257
 
3412
3258
  export function searchSalesNavPeopleIndustryToJSON(
@@ -3666,237 +3512,203 @@ export function searchSalesNavPeopleResponseFromJSON(
3666
3512
  }
3667
3513
 
3668
3514
  /** @internal */
3669
- export type ConnectProfileRequest$Outbound = {
3670
- profile: string;
3671
- campaignSlug?: string | undefined;
3672
- actionSlug?: string | undefined;
3515
+ export const SearchSalesNavCompaniesCategoryRequest$outboundSchema:
3516
+ z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryRequest> = z.enum(
3517
+ SearchSalesNavCompaniesCategoryRequest,
3518
+ );
3519
+
3520
+ /** @internal */
3521
+ export type SearchSalesNavCompaniesIndustry$Outbound = {
3522
+ include?: Array<string> | undefined;
3523
+ exclude?: Array<string> | undefined;
3673
3524
  };
3674
3525
 
3675
3526
  /** @internal */
3676
- export const ConnectProfileRequest$outboundSchema: z.ZodMiniType<
3677
- ConnectProfileRequest$Outbound,
3678
- ConnectProfileRequest
3527
+ export const SearchSalesNavCompaniesIndustry$outboundSchema: z.ZodMiniType<
3528
+ SearchSalesNavCompaniesIndustry$Outbound,
3529
+ SearchSalesNavCompaniesIndustry
3679
3530
  > = z.object({
3680
- profile: z.string(),
3681
- campaignSlug: z.optional(z.string()),
3682
- actionSlug: z.optional(z.string()),
3531
+ include: z.optional(z.array(z.string())),
3532
+ exclude: z.optional(z.array(z.string())),
3683
3533
  });
3684
3534
 
3685
- export function connectProfileRequestToJSON(
3686
- connectProfileRequest: ConnectProfileRequest,
3535
+ export function searchSalesNavCompaniesIndustryToJSON(
3536
+ searchSalesNavCompaniesIndustry: SearchSalesNavCompaniesIndustry,
3687
3537
  ): string {
3688
3538
  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`,
3539
+ SearchSalesNavCompaniesIndustry$outboundSchema.parse(
3540
+ searchSalesNavCompaniesIndustry,
3541
+ ),
3712
3542
  );
3713
3543
  }
3714
3544
 
3715
3545
  /** @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;
3546
+ export type SearchSalesNavCompaniesRequest$Outbound = {
3547
+ category?: string | undefined;
3548
+ url?: string | undefined;
3549
+ keywords?: string | undefined;
3550
+ industry?: SearchSalesNavCompaniesIndustry$Outbound | undefined;
3551
+ location?: Array<string> | undefined;
3552
+ companyHeadcount?: Array<string> | undefined;
3553
+ companyType?: Array<string> | undefined;
3554
+ annualRevenue?: Array<string> | undefined;
3555
+ start?: number | undefined;
3556
+ count?: number | undefined;
3722
3557
  };
3723
3558
 
3724
3559
  /** @internal */
3725
- export const SendMessageRequest$outboundSchema: z.ZodMiniType<
3726
- SendMessageRequest$Outbound,
3727
- SendMessageRequest
3560
+ export const SearchSalesNavCompaniesRequest$outboundSchema: z.ZodMiniType<
3561
+ SearchSalesNavCompaniesRequest$Outbound,
3562
+ SearchSalesNavCompaniesRequest
3728
3563
  > = 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()),
3564
+ category: z.optional(SearchSalesNavCompaniesCategoryRequest$outboundSchema),
3565
+ url: z.optional(z.string()),
3566
+ keywords: z.optional(z.string()),
3567
+ industry: z.optional(
3568
+ z.lazy(() => SearchSalesNavCompaniesIndustry$outboundSchema),
3569
+ ),
3570
+ location: z.optional(z.array(z.string())),
3571
+ companyHeadcount: z.optional(z.array(z.string())),
3572
+ companyType: z.optional(z.array(z.string())),
3573
+ annualRevenue: z.optional(z.array(z.string())),
3574
+ start: z.optional(z.int()),
3575
+ count: z.optional(z.int()),
3734
3576
  });
3735
3577
 
3736
- export function sendMessageRequestToJSON(
3737
- sendMessageRequest: SendMessageRequest,
3578
+ export function searchSalesNavCompaniesRequestToJSON(
3579
+ searchSalesNavCompaniesRequest: SearchSalesNavCompaniesRequest,
3738
3580
  ): string {
3739
3581
  return JSON.stringify(
3740
- SendMessageRequest$outboundSchema.parse(sendMessageRequest),
3582
+ SearchSalesNavCompaniesRequest$outboundSchema.parse(
3583
+ searchSalesNavCompaniesRequest,
3584
+ ),
3741
3585
  );
3742
3586
  }
3743
3587
 
3744
3588
  /** @internal */
3745
- export const SendMessageResponse$inboundSchema: z.ZodMiniType<
3746
- SendMessageResponse,
3747
- unknown
3748
- > = 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`,
3589
+ export const SearchSalesNavCompaniesCategoryCompanies$inboundSchema:
3590
+ z.ZodMiniEnum<typeof SearchSalesNavCompaniesCategoryCompanies> = z.enum(
3591
+ SearchSalesNavCompaniesCategoryCompanies,
3763
3592
  );
3764
- }
3765
3593
 
3766
3594
  /** @internal */
3767
- export type ListSentInvitationsRequest$Outbound = {
3768
- start: number;
3769
- count: number;
3770
- };
3595
+ export const SearchSalesNavCompaniesType$inboundSchema: z.ZodMiniEnum<
3596
+ typeof SearchSalesNavCompaniesType
3597
+ > = z.enum(SearchSalesNavCompaniesType);
3771
3598
 
3772
3599
  /** @internal */
3773
- export const ListSentInvitationsRequest$outboundSchema: z.ZodMiniType<
3774
- ListSentInvitationsRequest$Outbound,
3775
- ListSentInvitationsRequest
3600
+ export const SearchSalesNavCompaniesItem$inboundSchema: z.ZodMiniType<
3601
+ SearchSalesNavCompaniesItem,
3602
+ unknown
3776
3603
  > = z.object({
3777
- start: z._default(z.int(), 0),
3778
- count: z._default(z.int(), 10),
3604
+ type: SearchSalesNavCompaniesType$inboundSchema,
3605
+ id: types.string(),
3606
+ name: types.string(),
3607
+ profileUrl: types.nullable(types.string()),
3608
+ summary: types.nullable(types.string()),
3609
+ industry: types.nullable(types.string()),
3610
+ location: types.nullable(types.string()),
3611
+ headcount: types.nullable(types.string()),
3779
3612
  });
3780
3613
 
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(
3614
+ export function searchSalesNavCompaniesItemFromJSON(
3801
3615
  jsonString: string,
3802
- ): SafeParseResult<ToMember, SDKValidationError> {
3616
+ ): SafeParseResult<SearchSalesNavCompaniesItem, SDKValidationError> {
3803
3617
  return safeParse(
3804
3618
  jsonString,
3805
- (x) => ToMember$inboundSchema.parse(JSON.parse(x)),
3806
- `Failed to parse 'ToMember' from JSON`,
3619
+ (x) => SearchSalesNavCompaniesItem$inboundSchema.parse(JSON.parse(x)),
3620
+ `Failed to parse 'SearchSalesNavCompaniesItem' from JSON`,
3807
3621
  );
3808
3622
  }
3809
3623
 
3810
3624
  /** @internal */
3811
- export const ListSentInvitationsInvitation$inboundSchema: z.ZodMiniType<
3812
- ListSentInvitationsInvitation,
3625
+ export const SearchSalesNavCompaniesPaging$inboundSchema: z.ZodMiniType<
3626
+ SearchSalesNavCompaniesPaging,
3813
3627
  unknown
3814
3628
  > = 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)),
3629
+ start: types.number(),
3630
+ count: types.number(),
3631
+ total: types.number(),
3824
3632
  });
3825
3633
 
3826
- export function listSentInvitationsInvitationFromJSON(
3634
+ export function searchSalesNavCompaniesPagingFromJSON(
3827
3635
  jsonString: string,
3828
- ): SafeParseResult<ListSentInvitationsInvitation, SDKValidationError> {
3636
+ ): SafeParseResult<SearchSalesNavCompaniesPaging, SDKValidationError> {
3829
3637
  return safeParse(
3830
3638
  jsonString,
3831
- (x) => ListSentInvitationsInvitation$inboundSchema.parse(JSON.parse(x)),
3832
- `Failed to parse 'ListSentInvitationsInvitation' from JSON`,
3639
+ (x) => SearchSalesNavCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
3640
+ `Failed to parse 'SearchSalesNavCompaniesPaging' from JSON`,
3833
3641
  );
3834
3642
  }
3835
3643
 
3836
3644
  /** @internal */
3837
- export const ListSentInvitationsResponse$inboundSchema: z.ZodMiniType<
3838
- ListSentInvitationsResponse,
3645
+ export const SearchSalesNavCompaniesResponse$inboundSchema: z.ZodMiniType<
3646
+ SearchSalesNavCompaniesResponse,
3839
3647
  unknown
3840
3648
  > = z.object({
3841
3649
  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(),
3650
+ category: SearchSalesNavCompaniesCategoryCompanies$inboundSchema,
3651
+ items: z.array(z.lazy(() => SearchSalesNavCompaniesItem$inboundSchema)),
3652
+ paging: z.lazy(() => SearchSalesNavCompaniesPaging$inboundSchema),
3653
+ hasMore: types.boolean(),
3848
3654
  creditsUsed: types.number(),
3849
3655
  retryAfter: types.number(),
3850
3656
  });
3851
3657
 
3852
- export function listSentInvitationsResponseFromJSON(
3658
+ export function searchSalesNavCompaniesResponseFromJSON(
3853
3659
  jsonString: string,
3854
- ): SafeParseResult<ListSentInvitationsResponse, SDKValidationError> {
3660
+ ): SafeParseResult<SearchSalesNavCompaniesResponse, SDKValidationError> {
3855
3661
  return safeParse(
3856
3662
  jsonString,
3857
- (x) => ListSentInvitationsResponse$inboundSchema.parse(JSON.parse(x)),
3858
- `Failed to parse 'ListSentInvitationsResponse' from JSON`,
3663
+ (x) => SearchSalesNavCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
3664
+ `Failed to parse 'SearchSalesNavCompaniesResponse' from JSON`,
3859
3665
  );
3860
3666
  }
3861
3667
 
3862
3668
  /** @internal */
3863
- export type FollowCompanyRequest$Outbound = {
3864
- company: string;
3669
+ export type ConnectProfileRequest$Outbound = {
3670
+ profile: string;
3671
+ campaignSlug?: string | undefined;
3672
+ actionSlug?: string | undefined;
3865
3673
  };
3866
3674
 
3867
3675
  /** @internal */
3868
- export const FollowCompanyRequest$outboundSchema: z.ZodMiniType<
3869
- FollowCompanyRequest$Outbound,
3870
- FollowCompanyRequest
3676
+ export const ConnectProfileRequest$outboundSchema: z.ZodMiniType<
3677
+ ConnectProfileRequest$Outbound,
3678
+ ConnectProfileRequest
3871
3679
  > = z.object({
3872
- company: z.string(),
3680
+ profile: z.string(),
3681
+ campaignSlug: z.optional(z.string()),
3682
+ actionSlug: z.optional(z.string()),
3873
3683
  });
3874
3684
 
3875
- export function followCompanyRequestToJSON(
3876
- followCompanyRequest: FollowCompanyRequest,
3685
+ export function connectProfileRequestToJSON(
3686
+ connectProfileRequest: ConnectProfileRequest,
3877
3687
  ): string {
3878
3688
  return JSON.stringify(
3879
- FollowCompanyRequest$outboundSchema.parse(followCompanyRequest),
3689
+ ConnectProfileRequest$outboundSchema.parse(connectProfileRequest),
3880
3690
  );
3881
3691
  }
3882
3692
 
3883
3693
  /** @internal */
3884
- export const FollowCompanyResponse$inboundSchema: z.ZodMiniType<
3885
- FollowCompanyResponse,
3694
+ export const ConnectProfileResponse$inboundSchema: z.ZodMiniType<
3695
+ ConnectProfileResponse,
3886
3696
  unknown
3887
3697
  > = z.object({
3888
3698
  success: types.literal(true),
3699
+ message: types.string(),
3700
+ duplicate: types.optional(types.boolean()),
3889
3701
  creditsUsed: types.number(),
3890
3702
  retryAfter: types.number(),
3891
3703
  });
3892
3704
 
3893
- export function followCompanyResponseFromJSON(
3705
+ export function connectProfileResponseFromJSON(
3894
3706
  jsonString: string,
3895
- ): SafeParseResult<FollowCompanyResponse, SDKValidationError> {
3707
+ ): SafeParseResult<ConnectProfileResponse, SDKValidationError> {
3896
3708
  return safeParse(
3897
3709
  jsonString,
3898
- (x) => FollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
3899
- `Failed to parse 'FollowCompanyResponse' from JSON`,
3710
+ (x) => ConnectProfileResponse$inboundSchema.parse(JSON.parse(x)),
3711
+ `Failed to parse 'ConnectProfileResponse' from JSON`,
3900
3712
  );
3901
3713
  }
3902
3714
 
@@ -4044,6 +3856,57 @@ export function acceptInvitationResponseFromJSON(
4044
3856
  );
4045
3857
  }
4046
3858
 
3859
+ /** @internal */
3860
+ export type SendMessageRequest$Outbound = {
3861
+ profile?: string | undefined;
3862
+ conversationUrn?: string | undefined;
3863
+ message: string;
3864
+ campaignSlug?: string | undefined;
3865
+ actionSlug?: string | undefined;
3866
+ };
3867
+
3868
+ /** @internal */
3869
+ export const SendMessageRequest$outboundSchema: z.ZodMiniType<
3870
+ SendMessageRequest$Outbound,
3871
+ SendMessageRequest
3872
+ > = z.object({
3873
+ profile: z.optional(z.string()),
3874
+ conversationUrn: z.optional(z.string()),
3875
+ message: z.string(),
3876
+ campaignSlug: z.optional(z.string()),
3877
+ actionSlug: z.optional(z.string()),
3878
+ });
3879
+
3880
+ export function sendMessageRequestToJSON(
3881
+ sendMessageRequest: SendMessageRequest,
3882
+ ): string {
3883
+ return JSON.stringify(
3884
+ SendMessageRequest$outboundSchema.parse(sendMessageRequest),
3885
+ );
3886
+ }
3887
+
3888
+ /** @internal */
3889
+ export const SendMessageResponse$inboundSchema: z.ZodMiniType<
3890
+ SendMessageResponse,
3891
+ unknown
3892
+ > = z.object({
3893
+ success: types.literal(true),
3894
+ messageId: types.string(),
3895
+ duplicate: types.optional(types.boolean()),
3896
+ creditsUsed: types.number(),
3897
+ retryAfter: types.number(),
3898
+ });
3899
+
3900
+ export function sendMessageResponseFromJSON(
3901
+ jsonString: string,
3902
+ ): SafeParseResult<SendMessageResponse, SDKValidationError> {
3903
+ return safeParse(
3904
+ jsonString,
3905
+ (x) => SendMessageResponse$inboundSchema.parse(JSON.parse(x)),
3906
+ `Failed to parse 'SendMessageResponse' from JSON`,
3907
+ );
3908
+ }
3909
+
4047
3910
  /** @internal */
4048
3911
  export type ReplyToCommentRequest$Outbound = {
4049
3912
  commentUrn: string;
@@ -4093,6 +3956,204 @@ export function replyToCommentResponseFromJSON(
4093
3956
  );
4094
3957
  }
4095
3958
 
3959
+ /** @internal */
3960
+ export const LikeCommentReactionType$outboundSchema: z.ZodMiniEnum<
3961
+ typeof LikeCommentReactionType
3962
+ > = z.enum(LikeCommentReactionType);
3963
+
3964
+ /** @internal */
3965
+ export type LikeCommentRequest$Outbound = {
3966
+ commentUrn: string;
3967
+ reactionType: string;
3968
+ campaignSlug?: string | undefined;
3969
+ actionSlug?: string | undefined;
3970
+ };
3971
+
3972
+ /** @internal */
3973
+ export const LikeCommentRequest$outboundSchema: z.ZodMiniType<
3974
+ LikeCommentRequest$Outbound,
3975
+ LikeCommentRequest
3976
+ > = z.object({
3977
+ commentUrn: z.string(),
3978
+ reactionType: z._default(LikeCommentReactionType$outboundSchema, "LIKE"),
3979
+ campaignSlug: z.optional(z.string()),
3980
+ actionSlug: z.optional(z.string()),
3981
+ });
3982
+
3983
+ export function likeCommentRequestToJSON(
3984
+ likeCommentRequest: LikeCommentRequest,
3985
+ ): string {
3986
+ return JSON.stringify(
3987
+ LikeCommentRequest$outboundSchema.parse(likeCommentRequest),
3988
+ );
3989
+ }
3990
+
3991
+ /** @internal */
3992
+ export const LikeCommentResponse$inboundSchema: z.ZodMiniType<
3993
+ LikeCommentResponse,
3994
+ unknown
3995
+ > = z.object({
3996
+ success: types.literal(true),
3997
+ resourceKey: types.optional(types.string()),
3998
+ duplicate: types.optional(types.boolean()),
3999
+ creditsUsed: types.number(),
4000
+ retryAfter: types.number(),
4001
+ });
4002
+
4003
+ export function likeCommentResponseFromJSON(
4004
+ jsonString: string,
4005
+ ): SafeParseResult<LikeCommentResponse, SDKValidationError> {
4006
+ return safeParse(
4007
+ jsonString,
4008
+ (x) => LikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4009
+ `Failed to parse 'LikeCommentResponse' from JSON`,
4010
+ );
4011
+ }
4012
+
4013
+ /** @internal */
4014
+ export const PublishPostMode$outboundSchema: z.ZodMiniEnum<
4015
+ typeof PublishPostMode
4016
+ > = z.enum(PublishPostMode);
4017
+
4018
+ /** @internal */
4019
+ export const Visibility$outboundSchema: z.ZodMiniEnum<typeof Visibility> = z
4020
+ .enum(Visibility);
4021
+
4022
+ /** @internal */
4023
+ export type Mention$Outbound = {
4024
+ profileUrn: string;
4025
+ start: number;
4026
+ length: number;
4027
+ };
4028
+
4029
+ /** @internal */
4030
+ export const Mention$outboundSchema: z.ZodMiniType<Mention$Outbound, Mention> =
4031
+ z.object({
4032
+ profileUrn: z.string(),
4033
+ start: z.int(),
4034
+ length: z.int(),
4035
+ });
4036
+
4037
+ export function mentionToJSON(mention: Mention): string {
4038
+ return JSON.stringify(Mention$outboundSchema.parse(mention));
4039
+ }
4040
+
4041
+ /** @internal */
4042
+ export type PublishPostRequest$Outbound = {
4043
+ text: string;
4044
+ mode: string;
4045
+ scheduledAt?: number | undefined;
4046
+ companyId?: string | undefined;
4047
+ imageUrl?: string | undefined;
4048
+ imageBase64?: string | undefined;
4049
+ imageFileName?: string | undefined;
4050
+ visibility: string;
4051
+ mentions?: Array<Mention$Outbound> | undefined;
4052
+ campaignSlug?: string | undefined;
4053
+ actionSlug?: string | undefined;
4054
+ };
4055
+
4056
+ /** @internal */
4057
+ export const PublishPostRequest$outboundSchema: z.ZodMiniType<
4058
+ PublishPostRequest$Outbound,
4059
+ PublishPostRequest
4060
+ > = z.object({
4061
+ text: z.string(),
4062
+ mode: PublishPostMode$outboundSchema,
4063
+ scheduledAt: z.optional(z.int()),
4064
+ companyId: z.optional(z.string()),
4065
+ imageUrl: z.optional(z.string()),
4066
+ imageBase64: z.optional(z.string()),
4067
+ imageFileName: z.optional(z.string()),
4068
+ visibility: z._default(Visibility$outboundSchema, "ANYONE"),
4069
+ mentions: z.optional(z.array(z.lazy(() => Mention$outboundSchema))),
4070
+ campaignSlug: z.optional(z.string()),
4071
+ actionSlug: z.optional(z.string()),
4072
+ });
4073
+
4074
+ export function publishPostRequestToJSON(
4075
+ publishPostRequest: PublishPostRequest,
4076
+ ): string {
4077
+ return JSON.stringify(
4078
+ PublishPostRequest$outboundSchema.parse(publishPostRequest),
4079
+ );
4080
+ }
4081
+
4082
+ /** @internal */
4083
+ export const PublishPostResponse$inboundSchema: z.ZodMiniType<
4084
+ PublishPostResponse,
4085
+ unknown
4086
+ > = z.object({
4087
+ success: types.literal(true),
4088
+ shareUrn: types.string(),
4089
+ activityUrn: types.nullable(types.string()),
4090
+ duplicate: types.optional(types.boolean()),
4091
+ creditsUsed: types.number(),
4092
+ retryAfter: types.number(),
4093
+ });
4094
+
4095
+ export function publishPostResponseFromJSON(
4096
+ jsonString: string,
4097
+ ): SafeParseResult<PublishPostResponse, SDKValidationError> {
4098
+ return safeParse(
4099
+ jsonString,
4100
+ (x) => PublishPostResponse$inboundSchema.parse(JSON.parse(x)),
4101
+ `Failed to parse 'PublishPostResponse' from JSON`,
4102
+ );
4103
+ }
4104
+
4105
+ /** @internal */
4106
+ export type CreateCommentRequest$Outbound = {
4107
+ postUrl: string;
4108
+ message: string;
4109
+ companyId?: string | undefined;
4110
+ campaignSlug?: string | undefined;
4111
+ actionSlug?: string | undefined;
4112
+ };
4113
+
4114
+ /** @internal */
4115
+ export const CreateCommentRequest$outboundSchema: z.ZodMiniType<
4116
+ CreateCommentRequest$Outbound,
4117
+ CreateCommentRequest
4118
+ > = z.object({
4119
+ postUrl: z.string(),
4120
+ message: z.string(),
4121
+ companyId: z.optional(z.string()),
4122
+ campaignSlug: z.optional(z.string()),
4123
+ actionSlug: z.optional(z.string()),
4124
+ });
4125
+
4126
+ export function createCommentRequestToJSON(
4127
+ createCommentRequest: CreateCommentRequest,
4128
+ ): string {
4129
+ return JSON.stringify(
4130
+ CreateCommentRequest$outboundSchema.parse(createCommentRequest),
4131
+ );
4132
+ }
4133
+
4134
+ /** @internal */
4135
+ export const CreateCommentResponse$inboundSchema: z.ZodMiniType<
4136
+ CreateCommentResponse,
4137
+ unknown
4138
+ > = z.object({
4139
+ success: types.literal(true),
4140
+ commentUrn: types.optional(types.string()),
4141
+ fsdCommentUrn: types.optional(types.string()),
4142
+ duplicate: types.optional(types.boolean()),
4143
+ creditsUsed: types.number(),
4144
+ retryAfter: types.number(),
4145
+ });
4146
+
4147
+ export function createCommentResponseFromJSON(
4148
+ jsonString: string,
4149
+ ): SafeParseResult<CreateCommentResponse, SDKValidationError> {
4150
+ return safeParse(
4151
+ jsonString,
4152
+ (x) => CreateCommentResponse$inboundSchema.parse(JSON.parse(x)),
4153
+ `Failed to parse 'CreateCommentResponse' from JSON`,
4154
+ );
4155
+ }
4156
+
4096
4157
  /** @internal */
4097
4158
  export const LikePostReactionType$outboundSchema: z.ZodMiniEnum<
4098
4159
  typeof LikePostReactionType
@@ -4119,31 +4180,173 @@ export const LikePostRequest$outboundSchema: z.ZodMiniType<
4119
4180
  actionSlug: z.optional(z.string()),
4120
4181
  });
4121
4182
 
4122
- export function likePostRequestToJSON(
4123
- likePostRequest: LikePostRequest,
4124
- ): string {
4125
- return JSON.stringify(LikePostRequest$outboundSchema.parse(likePostRequest));
4183
+ export function likePostRequestToJSON(
4184
+ likePostRequest: LikePostRequest,
4185
+ ): string {
4186
+ return JSON.stringify(LikePostRequest$outboundSchema.parse(likePostRequest));
4187
+ }
4188
+
4189
+ /** @internal */
4190
+ export const LikePostResponse$inboundSchema: z.ZodMiniType<
4191
+ LikePostResponse,
4192
+ unknown
4193
+ > = z.object({
4194
+ success: types.literal(true),
4195
+ resourceKey: types.optional(types.string()),
4196
+ duplicate: types.optional(types.boolean()),
4197
+ creditsUsed: types.number(),
4198
+ retryAfter: types.number(),
4199
+ });
4200
+
4201
+ export function likePostResponseFromJSON(
4202
+ jsonString: string,
4203
+ ): SafeParseResult<LikePostResponse, SDKValidationError> {
4204
+ return safeParse(
4205
+ jsonString,
4206
+ (x) => LikePostResponse$inboundSchema.parse(JSON.parse(x)),
4207
+ `Failed to parse 'LikePostResponse' from JSON`,
4208
+ );
4209
+ }
4210
+
4211
+ /** @internal */
4212
+ export type DeclineInvitationRequest$Outbound = {
4213
+ invitationId: string;
4214
+ sharedSecret: string;
4215
+ senderProfileId?: string | undefined;
4216
+ };
4217
+
4218
+ /** @internal */
4219
+ export const DeclineInvitationRequest$outboundSchema: z.ZodMiniType<
4220
+ DeclineInvitationRequest$Outbound,
4221
+ DeclineInvitationRequest
4222
+ > = z.object({
4223
+ invitationId: z.string(),
4224
+ sharedSecret: z.string(),
4225
+ senderProfileId: z.optional(z.string()),
4226
+ });
4227
+
4228
+ export function declineInvitationRequestToJSON(
4229
+ declineInvitationRequest: DeclineInvitationRequest,
4230
+ ): string {
4231
+ return JSON.stringify(
4232
+ DeclineInvitationRequest$outboundSchema.parse(declineInvitationRequest),
4233
+ );
4234
+ }
4235
+
4236
+ /** @internal */
4237
+ export const DeclineInvitationResponse$inboundSchema: z.ZodMiniType<
4238
+ DeclineInvitationResponse,
4239
+ unknown
4240
+ > = z.object({
4241
+ success: types.literal(true),
4242
+ message: types.string(),
4243
+ creditsUsed: types.number(),
4244
+ retryAfter: types.number(),
4245
+ });
4246
+
4247
+ export function declineInvitationResponseFromJSON(
4248
+ jsonString: string,
4249
+ ): SafeParseResult<DeclineInvitationResponse, SDKValidationError> {
4250
+ return safeParse(
4251
+ jsonString,
4252
+ (x) => DeclineInvitationResponse$inboundSchema.parse(JSON.parse(x)),
4253
+ `Failed to parse 'DeclineInvitationResponse' from JSON`,
4254
+ );
4255
+ }
4256
+
4257
+ /** @internal */
4258
+ export type ListSentInvitationsRequest$Outbound = {
4259
+ start: number;
4260
+ count: number;
4261
+ };
4262
+
4263
+ /** @internal */
4264
+ export const ListSentInvitationsRequest$outboundSchema: z.ZodMiniType<
4265
+ ListSentInvitationsRequest$Outbound,
4266
+ ListSentInvitationsRequest
4267
+ > = z.object({
4268
+ start: z._default(z.int(), 0),
4269
+ count: z._default(z.int(), 10),
4270
+ });
4271
+
4272
+ export function listSentInvitationsRequestToJSON(
4273
+ listSentInvitationsRequest: ListSentInvitationsRequest,
4274
+ ): string {
4275
+ return JSON.stringify(
4276
+ ListSentInvitationsRequest$outboundSchema.parse(listSentInvitationsRequest),
4277
+ );
4278
+ }
4279
+
4280
+ /** @internal */
4281
+ export const ToMember$inboundSchema: z.ZodMiniType<ToMember, unknown> = z
4282
+ .object({
4283
+ name: types.string(),
4284
+ headline: types.nullable(types.string()),
4285
+ profileUrl: types.nullable(types.string()),
4286
+ profilePicture: types.nullable(types.string()),
4287
+ publicIdentifier: types.nullable(types.string()),
4288
+ profileUrn: types.nullable(types.string()),
4289
+ });
4290
+
4291
+ export function toMemberFromJSON(
4292
+ jsonString: string,
4293
+ ): SafeParseResult<ToMember, SDKValidationError> {
4294
+ return safeParse(
4295
+ jsonString,
4296
+ (x) => ToMember$inboundSchema.parse(JSON.parse(x)),
4297
+ `Failed to parse 'ToMember' from JSON`,
4298
+ );
4299
+ }
4300
+
4301
+ /** @internal */
4302
+ export const ListSentInvitationsInvitation$inboundSchema: z.ZodMiniType<
4303
+ ListSentInvitationsInvitation,
4304
+ unknown
4305
+ > = z.object({
4306
+ invitationId: types.string(),
4307
+ invitationUrn: types.string(),
4308
+ entityUrn: types.string(),
4309
+ sentAt: types.nullable(types.string()),
4310
+ message: types.nullable(types.string()),
4311
+ targetProfileId: types.nullable(types.string()),
4312
+ targetFirstName: types.nullable(types.string()),
4313
+ targetLastName: types.nullable(types.string()),
4314
+ toMember: types.nullable(z.lazy(() => ToMember$inboundSchema)),
4315
+ });
4316
+
4317
+ export function listSentInvitationsInvitationFromJSON(
4318
+ jsonString: string,
4319
+ ): SafeParseResult<ListSentInvitationsInvitation, SDKValidationError> {
4320
+ return safeParse(
4321
+ jsonString,
4322
+ (x) => ListSentInvitationsInvitation$inboundSchema.parse(JSON.parse(x)),
4323
+ `Failed to parse 'ListSentInvitationsInvitation' from JSON`,
4324
+ );
4126
4325
  }
4127
4326
 
4128
4327
  /** @internal */
4129
- export const LikePostResponse$inboundSchema: z.ZodMiniType<
4130
- LikePostResponse,
4328
+ export const ListSentInvitationsResponse$inboundSchema: z.ZodMiniType<
4329
+ ListSentInvitationsResponse,
4131
4330
  unknown
4132
4331
  > = z.object({
4133
4332
  success: types.literal(true),
4134
- resourceKey: types.optional(types.string()),
4135
- duplicate: types.optional(types.boolean()),
4333
+ invitations: z.array(
4334
+ z.lazy(() => ListSentInvitationsInvitation$inboundSchema),
4335
+ ),
4336
+ total: types.number(),
4337
+ start: types.number(),
4338
+ count: types.number(),
4136
4339
  creditsUsed: types.number(),
4137
4340
  retryAfter: types.number(),
4138
4341
  });
4139
4342
 
4140
- export function likePostResponseFromJSON(
4343
+ export function listSentInvitationsResponseFromJSON(
4141
4344
  jsonString: string,
4142
- ): SafeParseResult<LikePostResponse, SDKValidationError> {
4345
+ ): SafeParseResult<ListSentInvitationsResponse, SDKValidationError> {
4143
4346
  return safeParse(
4144
4347
  jsonString,
4145
- (x) => LikePostResponse$inboundSchema.parse(JSON.parse(x)),
4146
- `Failed to parse 'LikePostResponse' from JSON`,
4348
+ (x) => ListSentInvitationsResponse$inboundSchema.parse(JSON.parse(x)),
4349
+ `Failed to parse 'ListSentInvitationsResponse' from JSON`,
4147
4350
  );
4148
4351
  }
4149
4352
 
@@ -4231,6 +4434,48 @@ export function followProfileResponseFromJSON(
4231
4434
  );
4232
4435
  }
4233
4436
 
4437
+ /** @internal */
4438
+ export type UnfollowProfileRequest$Outbound = {
4439
+ profile: string;
4440
+ };
4441
+
4442
+ /** @internal */
4443
+ export const UnfollowProfileRequest$outboundSchema: z.ZodMiniType<
4444
+ UnfollowProfileRequest$Outbound,
4445
+ UnfollowProfileRequest
4446
+ > = z.object({
4447
+ profile: z.string(),
4448
+ });
4449
+
4450
+ export function unfollowProfileRequestToJSON(
4451
+ unfollowProfileRequest: UnfollowProfileRequest,
4452
+ ): string {
4453
+ return JSON.stringify(
4454
+ UnfollowProfileRequest$outboundSchema.parse(unfollowProfileRequest),
4455
+ );
4456
+ }
4457
+
4458
+ /** @internal */
4459
+ export const UnfollowProfileResponse$inboundSchema: z.ZodMiniType<
4460
+ UnfollowProfileResponse,
4461
+ unknown
4462
+ > = z.object({
4463
+ success: types.literal(true),
4464
+ message: types.string(),
4465
+ creditsUsed: types.number(),
4466
+ retryAfter: types.number(),
4467
+ });
4468
+
4469
+ export function unfollowProfileResponseFromJSON(
4470
+ jsonString: string,
4471
+ ): SafeParseResult<UnfollowProfileResponse, SDKValidationError> {
4472
+ return safeParse(
4473
+ jsonString,
4474
+ (x) => UnfollowProfileResponse$inboundSchema.parse(JSON.parse(x)),
4475
+ `Failed to parse 'UnfollowProfileResponse' from JSON`,
4476
+ );
4477
+ }
4478
+
4234
4479
  /** @internal */
4235
4480
  export type EditPostRequest$Outbound = {
4236
4481
  postUrl: string;
@@ -4362,477 +4607,232 @@ export function repostPostResponseFromJSON(
4362
4607
  }
4363
4608
 
4364
4609
  /** @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;
4610
+ export type UnlikePostRequest$Outbound = {
4611
+ postUrl: string;
4539
4612
  };
4540
4613
 
4541
4614
  /** @internal */
4542
- export const LikeCommentRequest$outboundSchema: z.ZodMiniType<
4543
- LikeCommentRequest$Outbound,
4544
- LikeCommentRequest
4615
+ export const UnlikePostRequest$outboundSchema: z.ZodMiniType<
4616
+ UnlikePostRequest$Outbound,
4617
+ UnlikePostRequest
4545
4618
  > = 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()),
4619
+ postUrl: z.string(),
4550
4620
  });
4551
4621
 
4552
- export function likeCommentRequestToJSON(
4553
- likeCommentRequest: LikeCommentRequest,
4622
+ export function unlikePostRequestToJSON(
4623
+ unlikePostRequest: UnlikePostRequest,
4554
4624
  ): string {
4555
4625
  return JSON.stringify(
4556
- LikeCommentRequest$outboundSchema.parse(likeCommentRequest),
4626
+ UnlikePostRequest$outboundSchema.parse(unlikePostRequest),
4557
4627
  );
4558
4628
  }
4559
4629
 
4560
4630
  /** @internal */
4561
- export const LikeCommentResponse$inboundSchema: z.ZodMiniType<
4562
- LikeCommentResponse,
4631
+ export const UnlikePostResponse$inboundSchema: z.ZodMiniType<
4632
+ UnlikePostResponse,
4563
4633
  unknown
4564
4634
  > = z.object({
4565
4635
  success: types.literal(true),
4566
- resourceKey: types.optional(types.string()),
4567
- duplicate: types.optional(types.boolean()),
4568
4636
  creditsUsed: types.number(),
4569
4637
  retryAfter: types.number(),
4570
4638
  });
4571
4639
 
4572
- export function likeCommentResponseFromJSON(
4640
+ export function unlikePostResponseFromJSON(
4573
4641
  jsonString: string,
4574
- ): SafeParseResult<LikeCommentResponse, SDKValidationError> {
4642
+ ): SafeParseResult<UnlikePostResponse, SDKValidationError> {
4575
4643
  return safeParse(
4576
4644
  jsonString,
4577
- (x) => LikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4578
- `Failed to parse 'LikeCommentResponse' from JSON`,
4645
+ (x) => UnlikePostResponse$inboundSchema.parse(JSON.parse(x)),
4646
+ `Failed to parse 'UnlikePostResponse' from JSON`,
4579
4647
  );
4580
4648
  }
4581
4649
 
4582
4650
  /** @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;
4651
+ export type UnlikeCommentRequest$Outbound = {
4652
+ commentUrn: string;
4623
4653
  };
4624
4654
 
4625
4655
  /** @internal */
4626
- export const PublishPostRequest$outboundSchema: z.ZodMiniType<
4627
- PublishPostRequest$Outbound,
4628
- PublishPostRequest
4656
+ export const UnlikeCommentRequest$outboundSchema: z.ZodMiniType<
4657
+ UnlikeCommentRequest$Outbound,
4658
+ UnlikeCommentRequest
4629
4659
  > = 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()),
4660
+ commentUrn: z.string(),
4641
4661
  });
4642
4662
 
4643
- export function publishPostRequestToJSON(
4644
- publishPostRequest: PublishPostRequest,
4663
+ export function unlikeCommentRequestToJSON(
4664
+ unlikeCommentRequest: UnlikeCommentRequest,
4645
4665
  ): string {
4646
4666
  return JSON.stringify(
4647
- PublishPostRequest$outboundSchema.parse(publishPostRequest),
4667
+ UnlikeCommentRequest$outboundSchema.parse(unlikeCommentRequest),
4648
4668
  );
4649
4669
  }
4650
4670
 
4651
4671
  /** @internal */
4652
- export const PublishPostResponse$inboundSchema: z.ZodMiniType<
4653
- PublishPostResponse,
4672
+ export const UnlikeCommentResponse$inboundSchema: z.ZodMiniType<
4673
+ UnlikeCommentResponse,
4654
4674
  unknown
4655
4675
  > = z.object({
4656
4676
  success: types.literal(true),
4657
- shareUrn: types.string(),
4658
- activityUrn: types.nullable(types.string()),
4659
- duplicate: types.optional(types.boolean()),
4660
4677
  creditsUsed: types.number(),
4661
4678
  retryAfter: types.number(),
4662
4679
  });
4663
4680
 
4664
- export function publishPostResponseFromJSON(
4681
+ export function unlikeCommentResponseFromJSON(
4665
4682
  jsonString: string,
4666
- ): SafeParseResult<PublishPostResponse, SDKValidationError> {
4683
+ ): SafeParseResult<UnlikeCommentResponse, SDKValidationError> {
4667
4684
  return safeParse(
4668
4685
  jsonString,
4669
- (x) => PublishPostResponse$inboundSchema.parse(JSON.parse(x)),
4670
- `Failed to parse 'PublishPostResponse' from JSON`,
4686
+ (x) => UnlikeCommentResponse$inboundSchema.parse(JSON.parse(x)),
4687
+ `Failed to parse 'UnlikeCommentResponse' from JSON`,
4671
4688
  );
4672
4689
  }
4673
4690
 
4674
4691
  /** @internal */
4675
- export type CreateCommentRequest$Outbound = {
4692
+ export type SavePostRequest$Outbound = {
4676
4693
  postUrl: string;
4677
- message: string;
4678
- companyId?: string | undefined;
4679
- campaignSlug?: string | undefined;
4680
- actionSlug?: string | undefined;
4681
4694
  };
4682
4695
 
4683
4696
  /** @internal */
4684
- export const CreateCommentRequest$outboundSchema: z.ZodMiniType<
4685
- CreateCommentRequest$Outbound,
4686
- CreateCommentRequest
4697
+ export const SavePostRequest$outboundSchema: z.ZodMiniType<
4698
+ SavePostRequest$Outbound,
4699
+ SavePostRequest
4687
4700
  > = z.object({
4688
4701
  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
4702
  });
4694
4703
 
4695
- export function createCommentRequestToJSON(
4696
- createCommentRequest: CreateCommentRequest,
4704
+ export function savePostRequestToJSON(
4705
+ savePostRequest: SavePostRequest,
4697
4706
  ): string {
4698
- return JSON.stringify(
4699
- CreateCommentRequest$outboundSchema.parse(createCommentRequest),
4700
- );
4707
+ return JSON.stringify(SavePostRequest$outboundSchema.parse(savePostRequest));
4701
4708
  }
4702
4709
 
4703
4710
  /** @internal */
4704
- export const CreateCommentResponse$inboundSchema: z.ZodMiniType<
4705
- CreateCommentResponse,
4711
+ export const SavePostResponse$inboundSchema: z.ZodMiniType<
4712
+ SavePostResponse,
4706
4713
  unknown
4707
4714
  > = z.object({
4708
4715
  success: types.literal(true),
4709
- commentUrn: types.optional(types.string()),
4710
- fsdCommentUrn: types.optional(types.string()),
4711
- duplicate: types.optional(types.boolean()),
4712
4716
  creditsUsed: types.number(),
4713
4717
  retryAfter: types.number(),
4714
4718
  });
4715
4719
 
4716
- export function createCommentResponseFromJSON(
4720
+ export function savePostResponseFromJSON(
4717
4721
  jsonString: string,
4718
- ): SafeParseResult<CreateCommentResponse, SDKValidationError> {
4722
+ ): SafeParseResult<SavePostResponse, SDKValidationError> {
4719
4723
  return safeParse(
4720
4724
  jsonString,
4721
- (x) => CreateCommentResponse$inboundSchema.parse(JSON.parse(x)),
4722
- `Failed to parse 'CreateCommentResponse' from JSON`,
4725
+ (x) => SavePostResponse$inboundSchema.parse(JSON.parse(x)),
4726
+ `Failed to parse 'SavePostResponse' from JSON`,
4723
4727
  );
4724
4728
  }
4725
4729
 
4726
4730
  /** @internal */
4727
- export type DeclineInvitationRequest$Outbound = {
4728
- invitationId: string;
4729
- sharedSecret: string;
4730
- senderProfileId?: string | undefined;
4731
+ export type UnsavePostRequest$Outbound = {
4732
+ postUrl: string;
4731
4733
  };
4732
4734
 
4733
4735
  /** @internal */
4734
- export const DeclineInvitationRequest$outboundSchema: z.ZodMiniType<
4735
- DeclineInvitationRequest$Outbound,
4736
- DeclineInvitationRequest
4736
+ export const UnsavePostRequest$outboundSchema: z.ZodMiniType<
4737
+ UnsavePostRequest$Outbound,
4738
+ UnsavePostRequest
4737
4739
  > = z.object({
4738
- invitationId: z.string(),
4739
- sharedSecret: z.string(),
4740
- senderProfileId: z.optional(z.string()),
4740
+ postUrl: z.string(),
4741
4741
  });
4742
4742
 
4743
- export function declineInvitationRequestToJSON(
4744
- declineInvitationRequest: DeclineInvitationRequest,
4743
+ export function unsavePostRequestToJSON(
4744
+ unsavePostRequest: UnsavePostRequest,
4745
4745
  ): string {
4746
4746
  return JSON.stringify(
4747
- DeclineInvitationRequest$outboundSchema.parse(declineInvitationRequest),
4747
+ UnsavePostRequest$outboundSchema.parse(unsavePostRequest),
4748
4748
  );
4749
4749
  }
4750
4750
 
4751
4751
  /** @internal */
4752
- export const DeclineInvitationResponse$inboundSchema: z.ZodMiniType<
4753
- DeclineInvitationResponse,
4752
+ export const UnsavePostResponse$inboundSchema: z.ZodMiniType<
4753
+ UnsavePostResponse,
4754
4754
  unknown
4755
4755
  > = z.object({
4756
4756
  success: types.literal(true),
4757
- message: types.string(),
4758
4757
  creditsUsed: types.number(),
4759
4758
  retryAfter: types.number(),
4760
4759
  });
4761
4760
 
4762
- export function declineInvitationResponseFromJSON(
4761
+ export function unsavePostResponseFromJSON(
4763
4762
  jsonString: string,
4764
- ): SafeParseResult<DeclineInvitationResponse, SDKValidationError> {
4763
+ ): SafeParseResult<UnsavePostResponse, SDKValidationError> {
4765
4764
  return safeParse(
4766
4765
  jsonString,
4767
- (x) => DeclineInvitationResponse$inboundSchema.parse(JSON.parse(x)),
4768
- `Failed to parse 'DeclineInvitationResponse' from JSON`,
4766
+ (x) => UnsavePostResponse$inboundSchema.parse(JSON.parse(x)),
4767
+ `Failed to parse 'UnsavePostResponse' from JSON`,
4769
4768
  );
4770
4769
  }
4771
4770
 
4772
4771
  /** @internal */
4773
- export type UnfollowProfileRequest$Outbound = {
4774
- profile: string;
4772
+ export type FollowCompanyRequest$Outbound = {
4773
+ company: string;
4775
4774
  };
4776
4775
 
4777
4776
  /** @internal */
4778
- export const UnfollowProfileRequest$outboundSchema: z.ZodMiniType<
4779
- UnfollowProfileRequest$Outbound,
4780
- UnfollowProfileRequest
4777
+ export const FollowCompanyRequest$outboundSchema: z.ZodMiniType<
4778
+ FollowCompanyRequest$Outbound,
4779
+ FollowCompanyRequest
4781
4780
  > = z.object({
4782
- profile: z.string(),
4781
+ company: z.string(),
4783
4782
  });
4784
4783
 
4785
- export function unfollowProfileRequestToJSON(
4786
- unfollowProfileRequest: UnfollowProfileRequest,
4784
+ export function followCompanyRequestToJSON(
4785
+ followCompanyRequest: FollowCompanyRequest,
4787
4786
  ): string {
4788
4787
  return JSON.stringify(
4789
- UnfollowProfileRequest$outboundSchema.parse(unfollowProfileRequest),
4788
+ FollowCompanyRequest$outboundSchema.parse(followCompanyRequest),
4790
4789
  );
4791
4790
  }
4792
4791
 
4793
4792
  /** @internal */
4794
- export const UnfollowProfileResponse$inboundSchema: z.ZodMiniType<
4795
- UnfollowProfileResponse,
4793
+ export const FollowCompanyResponse$inboundSchema: z.ZodMiniType<
4794
+ FollowCompanyResponse,
4796
4795
  unknown
4797
4796
  > = z.object({
4798
4797
  success: types.literal(true),
4799
- message: types.string(),
4800
4798
  creditsUsed: types.number(),
4801
4799
  retryAfter: types.number(),
4802
4800
  });
4803
4801
 
4804
- export function unfollowProfileResponseFromJSON(
4802
+ export function followCompanyResponseFromJSON(
4805
4803
  jsonString: string,
4806
- ): SafeParseResult<UnfollowProfileResponse, SDKValidationError> {
4804
+ ): SafeParseResult<FollowCompanyResponse, SDKValidationError> {
4807
4805
  return safeParse(
4808
4806
  jsonString,
4809
- (x) => UnfollowProfileResponse$inboundSchema.parse(JSON.parse(x)),
4810
- `Failed to parse 'UnfollowProfileResponse' from JSON`,
4807
+ (x) => FollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
4808
+ `Failed to parse 'FollowCompanyResponse' from JSON`,
4811
4809
  );
4812
4810
  }
4813
4811
 
4814
4812
  /** @internal */
4815
- export type SavePostRequest$Outbound = {
4816
- postUrl: string;
4813
+ export type UnfollowCompanyRequest$Outbound = {
4814
+ company: string;
4817
4815
  };
4818
4816
 
4819
4817
  /** @internal */
4820
- export const SavePostRequest$outboundSchema: z.ZodMiniType<
4821
- SavePostRequest$Outbound,
4822
- SavePostRequest
4818
+ export const UnfollowCompanyRequest$outboundSchema: z.ZodMiniType<
4819
+ UnfollowCompanyRequest$Outbound,
4820
+ UnfollowCompanyRequest
4823
4821
  > = z.object({
4824
- postUrl: z.string(),
4822
+ company: z.string(),
4825
4823
  });
4826
4824
 
4827
- export function savePostRequestToJSON(
4828
- savePostRequest: SavePostRequest,
4825
+ export function unfollowCompanyRequestToJSON(
4826
+ unfollowCompanyRequest: UnfollowCompanyRequest,
4829
4827
  ): string {
4830
- return JSON.stringify(SavePostRequest$outboundSchema.parse(savePostRequest));
4828
+ return JSON.stringify(
4829
+ UnfollowCompanyRequest$outboundSchema.parse(unfollowCompanyRequest),
4830
+ );
4831
4831
  }
4832
4832
 
4833
4833
  /** @internal */
4834
- export const SavePostResponse$inboundSchema: z.ZodMiniType<
4835
- SavePostResponse,
4834
+ export const UnfollowCompanyResponse$inboundSchema: z.ZodMiniType<
4835
+ UnfollowCompanyResponse,
4836
4836
  unknown
4837
4837
  > = z.object({
4838
4838
  success: types.literal(true),
@@ -4840,13 +4840,13 @@ export const SavePostResponse$inboundSchema: z.ZodMiniType<
4840
4840
  retryAfter: types.number(),
4841
4841
  });
4842
4842
 
4843
- export function savePostResponseFromJSON(
4843
+ export function unfollowCompanyResponseFromJSON(
4844
4844
  jsonString: string,
4845
- ): SafeParseResult<SavePostResponse, SDKValidationError> {
4845
+ ): SafeParseResult<UnfollowCompanyResponse, SDKValidationError> {
4846
4846
  return safeParse(
4847
4847
  jsonString,
4848
- (x) => SavePostResponse$inboundSchema.parse(JSON.parse(x)),
4849
- `Failed to parse 'SavePostResponse' from JSON`,
4848
+ (x) => UnfollowCompanyResponse$inboundSchema.parse(JSON.parse(x)),
4849
+ `Failed to parse 'UnfollowCompanyResponse' from JSON`,
4850
4850
  );
4851
4851
  }
4852
4852