bereach 0.2.1 → 1.3.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 (468) hide show
  1. package/README.md +191 -66
  2. package/esm/funcs/{linkedin-actions-connect-profile.d.ts → actions-connect-profile.d.ts} +2 -2
  3. package/esm/funcs/actions-connect-profile.d.ts.map +1 -0
  4. package/esm/funcs/{linkedin-actions-connect-profile.js → actions-connect-profile.js} +2 -2
  5. package/esm/funcs/actions-connect-profile.js.map +1 -0
  6. package/esm/funcs/actions-follow-company.d.ts +18 -0
  7. package/esm/funcs/{campaigns-sync-actions.d.ts.map → actions-follow-company.d.ts.map} +1 -1
  8. package/esm/funcs/actions-follow-company.js +95 -0
  9. package/esm/funcs/actions-follow-company.js.map +1 -0
  10. package/esm/funcs/{profile-get-linked-in-profile.d.ts → actions-list-sent-invitations.d.ts} +4 -4
  11. package/esm/funcs/{linkedin-actions-publish-post.d.ts.map → actions-list-sent-invitations.d.ts.map} +1 -1
  12. package/esm/funcs/actions-list-sent-invitations.js +95 -0
  13. package/esm/funcs/{linkedin-actions-publish-post.js.map → actions-list-sent-invitations.js.map} +1 -1
  14. package/esm/funcs/actions-send-message.d.ts +18 -0
  15. package/esm/funcs/actions-send-message.d.ts.map +1 -0
  16. package/esm/funcs/{linkedin-actions-send-message.js → actions-send-message.js} +3 -3
  17. package/esm/funcs/actions-send-message.js.map +1 -0
  18. package/esm/funcs/campaigns-sync.d.ts +18 -0
  19. package/esm/funcs/campaigns-sync.d.ts.map +1 -0
  20. package/esm/funcs/{campaigns-sync-actions.js → campaigns-sync.js} +2 -2
  21. package/esm/funcs/campaigns-sync.js.map +1 -0
  22. package/esm/funcs/chat-archive.d.ts +18 -0
  23. package/esm/funcs/chat-archive.d.ts.map +1 -0
  24. package/esm/funcs/chat-archive.js +95 -0
  25. package/esm/funcs/chat-archive.js.map +1 -0
  26. package/esm/funcs/{linkedin-chat-find-conversation.d.ts → chat-find-conversation.d.ts} +2 -2
  27. package/esm/funcs/chat-find-conversation.d.ts.map +1 -0
  28. package/esm/funcs/{linkedin-chat-find-conversation.js → chat-find-conversation.js} +2 -2
  29. package/esm/funcs/chat-find-conversation.js.map +1 -0
  30. package/esm/funcs/chat-search-conversations.d.ts +18 -0
  31. package/esm/funcs/chat-search-conversations.d.ts.map +1 -0
  32. package/esm/funcs/{linkedin-chat-search-conversations.js → chat-search-conversations.js} +2 -2
  33. package/esm/funcs/chat-search-conversations.js.map +1 -0
  34. package/esm/funcs/chat-unreact.d.ts +18 -0
  35. package/esm/funcs/chat-unreact.d.ts.map +1 -0
  36. package/esm/funcs/chat-unreact.js +95 -0
  37. package/esm/funcs/chat-unreact.js.map +1 -0
  38. package/esm/funcs/company-pages-get-analytics.d.ts +18 -0
  39. package/esm/funcs/company-pages-get-analytics.d.ts.map +1 -0
  40. package/esm/funcs/company-pages-get-analytics.js +95 -0
  41. package/esm/funcs/company-pages-get-analytics.js.map +1 -0
  42. package/esm/funcs/company-pages-get-permissions.d.ts +18 -0
  43. package/esm/funcs/{linkedin-actions-send-message.d.ts.map → company-pages-get-permissions.d.ts.map} +1 -1
  44. package/esm/funcs/company-pages-get-permissions.js +95 -0
  45. package/esm/funcs/{linkedin-actions-send-message.js.map → company-pages-get-permissions.js.map} +1 -1
  46. package/esm/funcs/{campaigns-sync-actions.d.ts → company-pages-get-posts.d.ts} +4 -4
  47. package/esm/funcs/company-pages-get-posts.d.ts.map +1 -0
  48. package/esm/funcs/company-pages-get-posts.js +95 -0
  49. package/esm/funcs/company-pages-get-posts.js.map +1 -0
  50. package/esm/funcs/company-pages-list.d.ts +18 -0
  51. package/esm/funcs/company-pages-list.d.ts.map +1 -0
  52. package/esm/funcs/company-pages-list.js +84 -0
  53. package/esm/funcs/company-pages-list.js.map +1 -0
  54. package/esm/funcs/contacts-upsert.d.ts +17 -0
  55. package/esm/funcs/contacts-upsert.d.ts.map +1 -0
  56. package/esm/funcs/contacts-upsert.js +79 -0
  57. package/esm/funcs/contacts-upsert.js.map +1 -0
  58. package/esm/funcs/linked-in-actions-create-comment.d.ts +18 -0
  59. package/esm/funcs/{linkedin-actions-connect-profile.d.ts.map → linked-in-actions-create-comment.d.ts.map} +1 -1
  60. package/esm/funcs/linked-in-actions-create-comment.js +95 -0
  61. package/esm/funcs/{linkedin-actions-connect-profile.js.map → linked-in-actions-create-comment.js.map} +1 -1
  62. package/esm/funcs/linked-in-actions-decline-invitation.d.ts +18 -0
  63. package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +1 -0
  64. package/esm/funcs/linked-in-actions-decline-invitation.js +95 -0
  65. package/esm/funcs/linked-in-actions-decline-invitation.js.map +1 -0
  66. package/esm/funcs/{linkedin-actions-like-comment.d.ts → linked-in-actions-like-comment.d.ts} +2 -2
  67. package/esm/funcs/linked-in-actions-like-comment.d.ts.map +1 -0
  68. package/esm/funcs/{linkedin-actions-like-comment.js → linked-in-actions-like-comment.js} +2 -2
  69. package/esm/funcs/linked-in-actions-like-comment.js.map +1 -0
  70. package/esm/funcs/{linkedin-actions-publish-post.d.ts → linked-in-actions-publish-post.d.ts} +3 -3
  71. package/esm/funcs/linked-in-actions-publish-post.d.ts.map +1 -0
  72. package/esm/funcs/{linkedin-actions-publish-post.js → linked-in-actions-publish-post.js} +3 -3
  73. package/esm/funcs/linked-in-actions-publish-post.js.map +1 -0
  74. package/esm/funcs/linked-in-actions-save-post.d.ts +18 -0
  75. package/esm/funcs/linked-in-actions-save-post.d.ts.map +1 -0
  76. package/esm/funcs/linked-in-actions-save-post.js +95 -0
  77. package/esm/funcs/linked-in-actions-save-post.js.map +1 -0
  78. package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +18 -0
  79. package/esm/funcs/{linkedin-chat-search-conversations.d.ts.map → linked-in-actions-unfollow-profile.d.ts.map} +1 -1
  80. package/esm/funcs/linked-in-actions-unfollow-profile.js +95 -0
  81. package/esm/funcs/{linkedin-chat-search-conversations.js.map → linked-in-actions-unfollow-profile.js.map} +1 -1
  82. package/esm/funcs/linked-in-chat-list-starred.d.ts +18 -0
  83. package/esm/funcs/linked-in-chat-list-starred.d.ts.map +1 -0
  84. package/esm/funcs/linked-in-chat-list-starred.js +97 -0
  85. package/esm/funcs/linked-in-chat-list-starred.js.map +1 -0
  86. package/esm/funcs/linked-in-chat-mark-seen.d.ts +18 -0
  87. package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +1 -0
  88. package/esm/funcs/linked-in-chat-mark-seen.js +95 -0
  89. package/esm/funcs/linked-in-chat-mark-seen.js.map +1 -0
  90. package/esm/funcs/linked-in-chat-star.d.ts +18 -0
  91. package/esm/funcs/linked-in-chat-star.d.ts.map +1 -0
  92. package/esm/funcs/linked-in-chat-star.js +95 -0
  93. package/esm/funcs/linked-in-chat-star.js.map +1 -0
  94. package/esm/funcs/linked-in-chat-unarchive.d.ts +18 -0
  95. package/esm/funcs/linked-in-chat-unarchive.d.ts.map +1 -0
  96. package/esm/funcs/linked-in-chat-unarchive.js +95 -0
  97. package/esm/funcs/linked-in-chat-unarchive.js.map +1 -0
  98. package/esm/funcs/linked-in-chat-unstar.d.ts +18 -0
  99. package/esm/funcs/linked-in-chat-unstar.d.ts.map +1 -0
  100. package/esm/funcs/linked-in-chat-unstar.js +95 -0
  101. package/esm/funcs/linked-in-chat-unstar.js.map +1 -0
  102. package/esm/funcs/{linkedin-scrapers-collect-comment-replies.d.ts → linked-in-scrapers-collect-comment-replies.d.ts} +2 -2
  103. package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +1 -0
  104. package/esm/funcs/{linkedin-scrapers-collect-comment-replies.js → linked-in-scrapers-collect-comment-replies.js} +2 -2
  105. package/esm/funcs/{campaigns-sync-actions.js.map → linked-in-scrapers-collect-comment-replies.js.map} +1 -1
  106. package/esm/funcs/linked-in-scrapers-get-feed.d.ts +18 -0
  107. package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +1 -0
  108. package/esm/funcs/linked-in-scrapers-get-feed.js +97 -0
  109. package/esm/funcs/linked-in-scrapers-get-feed.js.map +1 -0
  110. package/esm/funcs/{linkedin-search-resolve-parameters.d.ts → linked-in-search-resolve-parameters.d.ts} +2 -2
  111. package/esm/funcs/linked-in-search-resolve-parameters.d.ts.map +1 -0
  112. package/esm/funcs/{linkedin-search-resolve-parameters.js → linked-in-search-resolve-parameters.js} +2 -2
  113. package/esm/funcs/linked-in-search-resolve-parameters.js.map +1 -0
  114. package/esm/funcs/{linkedin-search-search-companies.d.ts → linked-in-search-search-companies.d.ts} +2 -2
  115. package/esm/funcs/linked-in-search-search-companies.d.ts.map +1 -0
  116. package/esm/funcs/{linkedin-search-search-companies.js → linked-in-search-search-companies.js} +2 -2
  117. package/esm/funcs/linked-in-search-search-companies.js.map +1 -0
  118. package/esm/funcs/{linkedin-search-unified-search.d.ts → linked-in-search-search.d.ts} +2 -2
  119. package/esm/funcs/linked-in-search-search.d.ts.map +1 -0
  120. package/esm/funcs/{linkedin-search-unified-search.js → linked-in-search-search.js} +2 -2
  121. package/esm/funcs/linked-in-search-search.js.map +1 -0
  122. package/esm/funcs/{linkedin-actions-send-message.d.ts → linkedin-actions-edit-comment.d.ts} +4 -4
  123. package/esm/funcs/{linkedin-actions-like-comment.d.ts.map → linkedin-actions-edit-comment.d.ts.map} +1 -1
  124. package/esm/funcs/linkedin-actions-edit-comment.js +95 -0
  125. package/esm/funcs/{linkedin-actions-like-comment.js.map → linkedin-actions-edit-comment.js.map} +1 -1
  126. package/esm/funcs/linkedin-actions-edit-post.d.ts +18 -0
  127. package/esm/funcs/linkedin-actions-edit-post.d.ts.map +1 -0
  128. package/esm/funcs/linkedin-actions-edit-post.js +95 -0
  129. package/esm/funcs/linkedin-actions-edit-post.js.map +1 -0
  130. package/esm/funcs/linkedin-actions-follow-profile.d.ts +18 -0
  131. package/esm/funcs/{linkedin-scrapers-visit-profile.d.ts.map → linkedin-actions-follow-profile.d.ts.map} +1 -1
  132. package/esm/funcs/linkedin-actions-follow-profile.js +95 -0
  133. package/esm/funcs/{linkedin-scrapers-visit-profile.js.map → linkedin-actions-follow-profile.js.map} +1 -1
  134. package/esm/funcs/linkedin-actions-like-post.d.ts +18 -0
  135. package/esm/funcs/linkedin-actions-like-post.d.ts.map +1 -0
  136. package/esm/funcs/linkedin-actions-like-post.js +95 -0
  137. package/esm/funcs/linkedin-actions-like-post.js.map +1 -0
  138. package/esm/funcs/linkedin-actions-repost-post.d.ts +18 -0
  139. package/esm/funcs/linkedin-actions-repost-post.d.ts.map +1 -0
  140. package/esm/funcs/linkedin-actions-repost-post.js +95 -0
  141. package/esm/funcs/linkedin-actions-repost-post.js.map +1 -0
  142. package/esm/funcs/linkedin-actions-unfollow-company.d.ts +18 -0
  143. package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +1 -0
  144. package/esm/funcs/linkedin-actions-unfollow-company.js +95 -0
  145. package/esm/funcs/linkedin-actions-unfollow-company.js.map +1 -0
  146. package/esm/funcs/linkedin-actions-unlike-comment.d.ts +18 -0
  147. package/esm/funcs/{linkedin-scrapers-collect-posts.d.ts.map → linkedin-actions-unlike-comment.d.ts.map} +1 -1
  148. package/esm/funcs/linkedin-actions-unlike-comment.js +95 -0
  149. package/esm/funcs/{linkedin-scrapers-collect-posts.js.map → linkedin-actions-unlike-comment.js.map} +1 -1
  150. package/esm/funcs/linkedin-actions-unlike-post.d.ts +18 -0
  151. package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +1 -0
  152. package/esm/funcs/linkedin-actions-unlike-post.js +95 -0
  153. package/esm/funcs/linkedin-actions-unlike-post.js.map +1 -0
  154. package/esm/funcs/linkedin-actions-unsave-post.d.ts +18 -0
  155. package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +1 -0
  156. package/esm/funcs/linkedin-actions-unsave-post.js +95 -0
  157. package/esm/funcs/linkedin-actions-unsave-post.js.map +1 -0
  158. package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts +18 -0
  159. package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +1 -0
  160. package/esm/funcs/linkedin-actions-withdraw-invitation.js +95 -0
  161. package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +1 -0
  162. package/esm/funcs/{linkedin-scrapers-visit-profile.d.ts → linkedin-chat-get-unread-count.d.ts} +4 -4
  163. package/esm/funcs/linkedin-chat-get-unread-count.d.ts.map +1 -0
  164. package/esm/funcs/linkedin-chat-get-unread-count.js +85 -0
  165. package/esm/funcs/linkedin-chat-get-unread-count.js.map +1 -0
  166. package/esm/funcs/linkedin-chat-list-archived.d.ts +18 -0
  167. package/esm/funcs/linkedin-chat-list-archived.d.ts.map +1 -0
  168. package/esm/funcs/linkedin-chat-list-archived.js +97 -0
  169. package/esm/funcs/linkedin-chat-list-archived.js.map +1 -0
  170. package/esm/funcs/{linkedin-chat-list-conversations.d.ts → linkedin-chat-list-inbox-conversations.d.ts} +2 -2
  171. package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts.map +1 -0
  172. package/esm/funcs/{linkedin-chat-list-conversations.js → linkedin-chat-list-inbox-conversations.js} +2 -2
  173. package/esm/funcs/linkedin-chat-list-inbox-conversations.js.map +1 -0
  174. package/esm/funcs/{linkedin-chat-search-conversations.d.ts → linkedin-chat-mark-all-read.d.ts} +4 -4
  175. package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +1 -0
  176. package/esm/funcs/linkedin-chat-mark-all-read.js +85 -0
  177. package/esm/funcs/linkedin-chat-mark-all-read.js.map +1 -0
  178. package/esm/funcs/linkedin-chat-react.d.ts +18 -0
  179. package/esm/funcs/linkedin-chat-react.d.ts.map +1 -0
  180. package/esm/funcs/linkedin-chat-react.js +95 -0
  181. package/esm/funcs/linkedin-chat-react.js.map +1 -0
  182. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +18 -0
  183. package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +1 -0
  184. package/esm/funcs/linkedin-chat-send-typing-indicator.js +95 -0
  185. package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +1 -0
  186. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts +18 -0
  187. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +1 -0
  188. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js +95 -0
  189. package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js.map +1 -0
  190. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +1 -1
  191. package/esm/funcs/linkedin-scrapers-collect-likes.js +1 -1
  192. package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts +18 -0
  193. package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +1 -0
  194. package/esm/funcs/linkedin-scrapers-list-saved-posts.js +95 -0
  195. package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +1 -0
  196. package/esm/funcs/profile-get-credits.d.ts +1 -1
  197. package/esm/funcs/profile-get-credits.js +1 -1
  198. package/esm/funcs/profile-get-follower-analytics.d.ts +18 -0
  199. package/esm/funcs/profile-get-follower-analytics.d.ts.map +1 -0
  200. package/esm/funcs/profile-get-follower-analytics.js +85 -0
  201. package/esm/funcs/profile-get-follower-analytics.js.map +1 -0
  202. package/esm/funcs/profile-get-post-analytics.d.ts +18 -0
  203. package/esm/funcs/profile-get-post-analytics.d.ts.map +1 -0
  204. package/esm/funcs/profile-get-post-analytics.js +95 -0
  205. package/esm/funcs/profile-get-post-analytics.js.map +1 -0
  206. package/esm/funcs/profile-get-profile-views.d.ts +18 -0
  207. package/esm/funcs/profile-get-profile-views.d.ts.map +1 -0
  208. package/esm/funcs/profile-get-profile-views.js +85 -0
  209. package/esm/funcs/profile-get-profile-views.js.map +1 -0
  210. package/esm/funcs/profile-get-search-appearances.d.ts +18 -0
  211. package/esm/funcs/profile-get-search-appearances.d.ts.map +1 -0
  212. package/esm/funcs/profile-get-search-appearances.js +85 -0
  213. package/esm/funcs/profile-get-search-appearances.js.map +1 -0
  214. package/esm/funcs/profile-get.d.ts +18 -0
  215. package/esm/funcs/profile-get.d.ts.map +1 -0
  216. package/esm/funcs/{profile-get-linked-in-profile.js → profile-get.js} +2 -2
  217. package/esm/funcs/profile-get.js.map +1 -0
  218. package/esm/funcs/profile-list-accounts.d.ts +18 -0
  219. package/esm/funcs/profile-list-accounts.d.ts.map +1 -0
  220. package/esm/funcs/profile-list-accounts.js +84 -0
  221. package/esm/funcs/profile-list-accounts.js.map +1 -0
  222. package/esm/funcs/profile-update-account.d.ts +18 -0
  223. package/esm/funcs/profile-update-account.d.ts.map +1 -0
  224. package/esm/funcs/profile-update-account.js +95 -0
  225. package/esm/funcs/profile-update-account.js.map +1 -0
  226. package/esm/funcs/sales-nav-search-people.d.ts +53 -0
  227. package/esm/funcs/sales-nav-search-people.d.ts.map +1 -0
  228. package/esm/funcs/sales-nav-search-people.js +130 -0
  229. package/esm/funcs/{linkedin-scrapers-collect-comment-replies.js.map → sales-nav-search-people.js.map} +1 -1
  230. package/esm/funcs/sales-navigator-search-search-companies.d.ts +33 -0
  231. package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +1 -0
  232. package/esm/funcs/sales-navigator-search-search-companies.js +110 -0
  233. package/esm/funcs/sales-navigator-search-search-companies.js.map +1 -0
  234. package/esm/funcs/sales-navigator-search-search.d.ts +39 -0
  235. package/esm/funcs/sales-navigator-search-search.d.ts.map +1 -0
  236. package/esm/funcs/sales-navigator-search-search.js +116 -0
  237. package/esm/funcs/sales-navigator-search-search.js.map +1 -0
  238. package/esm/funcs/{linkedin-scrapers-collect-posts.d.ts → scrapers-collect-posts.d.ts} +2 -2
  239. package/esm/funcs/scrapers-collect-posts.d.ts.map +1 -0
  240. package/esm/funcs/{linkedin-scrapers-collect-posts.js → scrapers-collect-posts.js} +2 -2
  241. package/esm/funcs/scrapers-collect-posts.js.map +1 -0
  242. package/esm/funcs/scrapers-visit-profile.d.ts +18 -0
  243. package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -0
  244. package/esm/funcs/{linkedin-scrapers-visit-profile.js → scrapers-visit-profile.js} +2 -2
  245. package/esm/funcs/scrapers-visit-profile.js.map +1 -0
  246. package/esm/lib/config.d.ts +4 -4
  247. package/esm/lib/config.js +4 -4
  248. package/esm/models/errors/collect-linked-in-likes.d.ts +18 -18
  249. package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -1
  250. package/esm/models/errors/collect-linked-in-likes.js +9 -9
  251. package/esm/models/errors/collect-linked-in-likes.js.map +1 -1
  252. package/esm/models/operations/get-campaign-stats-response.d.ts +800 -856
  253. package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -1
  254. package/esm/models/operations/get-campaign-stats-response.js +503 -515
  255. package/esm/models/operations/get-campaign-stats-response.js.map +1 -1
  256. package/esm/models/operations/index.d.ts +3 -1
  257. package/esm/models/operations/index.d.ts.map +1 -1
  258. package/esm/models/operations/index.js +3 -1
  259. package/esm/models/operations/index.js.map +1 -1
  260. package/esm/models/operations/scraping-weekly.d.ts +2946 -0
  261. package/esm/models/operations/scraping-weekly.d.ts.map +1 -0
  262. package/esm/models/operations/scraping-weekly.js +1594 -0
  263. package/esm/models/operations/scraping-weekly.js.map +1 -0
  264. package/esm/models/operations/{send-linked-in-message-response.d.ts → search-linked-in-by-url-type-post.d.ts} +825 -766
  265. package/esm/models/operations/search-linked-in-by-url-type-post.d.ts.map +1 -0
  266. package/esm/models/operations/{send-linked-in-message-response.js → search-linked-in-by-url-type-post.js} +410 -418
  267. package/esm/models/operations/search-linked-in-by-url-type-post.js.map +1 -0
  268. package/esm/models/operations/upsert-contacts.d.ts +182 -0
  269. package/esm/models/operations/upsert-contacts.d.ts.map +1 -0
  270. package/esm/models/operations/upsert-contacts.js +116 -0
  271. package/esm/models/operations/upsert-contacts.js.map +1 -0
  272. package/esm/sdk/actions.d.ts +33 -0
  273. package/esm/sdk/actions.d.ts.map +1 -0
  274. package/esm/sdk/actions.js +48 -0
  275. package/esm/sdk/actions.js.map +1 -0
  276. package/esm/sdk/campaigns.d.ts +1 -1
  277. package/esm/sdk/campaigns.d.ts.map +1 -1
  278. package/esm/sdk/campaigns.js +3 -3
  279. package/esm/sdk/campaigns.js.map +1 -1
  280. package/esm/sdk/{linkedin-chat.d.ts → chat.d.ts} +11 -15
  281. package/esm/sdk/chat.d.ts.map +1 -0
  282. package/esm/sdk/chat.js +55 -0
  283. package/esm/sdk/chat.js.map +1 -0
  284. package/esm/sdk/company-pages.d.ts +33 -0
  285. package/esm/sdk/company-pages.d.ts.map +1 -0
  286. package/esm/sdk/company-pages.js +48 -0
  287. package/esm/sdk/company-pages.js.map +1 -0
  288. package/esm/sdk/contacts.d.ts +12 -0
  289. package/esm/sdk/contacts.d.ts.map +1 -0
  290. package/esm/sdk/contacts.js +18 -0
  291. package/esm/sdk/contacts.js.map +1 -0
  292. package/esm/sdk/linked-in-actions-2.d.ts +47 -0
  293. package/esm/sdk/linked-in-actions-2.d.ts.map +1 -0
  294. package/esm/sdk/linked-in-actions-2.js +68 -0
  295. package/esm/sdk/linked-in-actions-2.js.map +1 -0
  296. package/esm/sdk/linked-in-chat-2.d.ts +40 -0
  297. package/esm/sdk/linked-in-chat-2.d.ts.map +1 -0
  298. package/esm/sdk/linked-in-chat-2.js +58 -0
  299. package/esm/sdk/linked-in-chat-2.js.map +1 -0
  300. package/esm/sdk/linked-in-scrapers-2.d.ts +19 -0
  301. package/esm/sdk/linked-in-scrapers-2.d.ts.map +1 -0
  302. package/esm/sdk/linked-in-scrapers-2.js +28 -0
  303. package/esm/sdk/linked-in-scrapers-2.js.map +1 -0
  304. package/esm/sdk/linked-in-search-1.d.ts +149 -0
  305. package/esm/sdk/linked-in-search-1.d.ts.map +1 -0
  306. package/esm/sdk/linked-in-search-1.js +161 -0
  307. package/esm/sdk/linked-in-search-1.js.map +1 -0
  308. package/esm/sdk/linkedin-actions-1.d.ts +96 -0
  309. package/esm/sdk/linkedin-actions-1.d.ts.map +1 -0
  310. package/esm/sdk/linkedin-actions-1.js +138 -0
  311. package/esm/sdk/linkedin-actions-1.js.map +1 -0
  312. package/esm/sdk/linkedin-chat-1.d.ts +58 -0
  313. package/esm/sdk/linkedin-chat-1.d.ts.map +1 -0
  314. package/esm/sdk/linkedin-chat-1.js +82 -0
  315. package/esm/sdk/linkedin-chat-1.js.map +1 -0
  316. package/esm/sdk/{linkedin-scrapers.d.ts → linkedin-scrapers-1.d.ts} +12 -19
  317. package/esm/sdk/linkedin-scrapers-1.d.ts.map +1 -0
  318. package/esm/sdk/{linkedin-scrapers.js → linkedin-scrapers-1.js} +17 -27
  319. package/esm/sdk/linkedin-scrapers-1.js.map +1 -0
  320. package/esm/sdk/{linkedin-search.d.ts → linkedin-search-2.d.ts} +2 -146
  321. package/esm/sdk/linkedin-search-2.d.ts.map +1 -0
  322. package/esm/sdk/{linkedin-search.js → linkedin-search-2.js} +2 -155
  323. package/esm/sdk/linkedin-search-2.js.map +1 -0
  324. package/esm/sdk/profile.d.ts +44 -2
  325. package/esm/sdk/profile.d.ts.map +1 -1
  326. package/esm/sdk/profile.js +64 -4
  327. package/esm/sdk/profile.js.map +1 -1
  328. package/esm/sdk/sales-nav.d.ts +47 -0
  329. package/esm/sdk/sales-nav.d.ts.map +1 -0
  330. package/esm/sdk/sales-nav.js +53 -0
  331. package/esm/sdk/sales-nav.js.map +1 -0
  332. package/esm/sdk/sales-navigator-search.d.ts +55 -0
  333. package/esm/sdk/sales-navigator-search.d.ts.map +1 -0
  334. package/esm/sdk/sales-navigator-search.js +64 -0
  335. package/esm/sdk/sales-navigator-search.js.map +1 -0
  336. package/esm/sdk/scrapers.d.ts +19 -0
  337. package/esm/sdk/scrapers.d.ts.map +1 -0
  338. package/esm/sdk/scrapers.js +28 -0
  339. package/esm/sdk/scrapers.js.map +1 -0
  340. package/esm/sdk/sdk.d.ts +41 -8
  341. package/esm/sdk/sdk.d.ts.map +1 -1
  342. package/esm/sdk/sdk.js +63 -8
  343. package/esm/sdk/sdk.js.map +1 -1
  344. package/esm/types/discriminated-union.d.ts +25 -0
  345. package/esm/types/discriminated-union.d.ts.map +1 -0
  346. package/esm/types/discriminated-union.js +61 -0
  347. package/esm/types/discriminated-union.js.map +1 -0
  348. package/esm/types/smart-union.d.ts.map +1 -1
  349. package/esm/types/smart-union.js +2 -1
  350. package/esm/types/smart-union.js.map +1 -1
  351. package/jsr.json +1 -1
  352. package/package.json +1 -1
  353. package/src/funcs/{linkedin-actions-connect-profile.ts → actions-connect-profile.ts} +1 -1
  354. package/src/funcs/actions-follow-company.ts +215 -0
  355. package/src/funcs/actions-list-sent-invitations.ts +218 -0
  356. package/src/funcs/{linkedin-actions-send-message.ts → actions-send-message.ts} +2 -2
  357. package/src/funcs/{campaigns-sync-actions.ts → campaigns-sync.ts} +1 -1
  358. package/src/funcs/chat-archive.ts +215 -0
  359. package/src/funcs/{linkedin-chat-find-conversation.ts → chat-find-conversation.ts} +1 -1
  360. package/src/funcs/{linkedin-chat-search-conversations.ts → chat-search-conversations.ts} +1 -1
  361. package/src/funcs/chat-unreact.ts +215 -0
  362. package/src/funcs/company-pages-get-analytics.ts +215 -0
  363. package/src/funcs/company-pages-get-permissions.ts +218 -0
  364. package/src/funcs/company-pages-get-posts.ts +215 -0
  365. package/src/funcs/company-pages-list.ts +195 -0
  366. package/src/funcs/contacts-upsert.ts +161 -0
  367. package/src/funcs/linked-in-actions-create-comment.ts +215 -0
  368. package/src/funcs/linked-in-actions-decline-invitation.ts +218 -0
  369. package/src/funcs/{linkedin-actions-like-comment.ts → linked-in-actions-like-comment.ts} +1 -1
  370. package/src/funcs/{linkedin-actions-publish-post.ts → linked-in-actions-publish-post.ts} +2 -2
  371. package/src/funcs/linked-in-actions-save-post.ts +215 -0
  372. package/src/funcs/linked-in-actions-unfollow-profile.ts +215 -0
  373. package/src/funcs/linked-in-chat-list-starred.ts +220 -0
  374. package/src/funcs/linked-in-chat-mark-seen.ts +215 -0
  375. package/src/funcs/linked-in-chat-star.ts +215 -0
  376. package/src/funcs/linked-in-chat-unarchive.ts +215 -0
  377. package/src/funcs/linked-in-chat-unstar.ts +215 -0
  378. package/src/funcs/{linkedin-scrapers-collect-comment-replies.ts → linked-in-scrapers-collect-comment-replies.ts} +1 -1
  379. package/src/funcs/linked-in-scrapers-get-feed.ts +220 -0
  380. package/src/funcs/{linkedin-search-resolve-parameters.ts → linked-in-search-resolve-parameters.ts} +1 -1
  381. package/src/funcs/{linkedin-search-search-companies.ts → linked-in-search-search-companies.ts} +1 -1
  382. package/src/funcs/{linkedin-search-unified-search.ts → linked-in-search-search.ts} +1 -1
  383. package/src/funcs/linkedin-actions-edit-comment.ts +215 -0
  384. package/src/funcs/linkedin-actions-edit-post.ts +215 -0
  385. package/src/funcs/linkedin-actions-follow-profile.ts +215 -0
  386. package/src/funcs/linkedin-actions-like-post.ts +215 -0
  387. package/src/funcs/linkedin-actions-repost-post.ts +215 -0
  388. package/src/funcs/linkedin-actions-unfollow-company.ts +215 -0
  389. package/src/funcs/linkedin-actions-unlike-comment.ts +215 -0
  390. package/src/funcs/linkedin-actions-unlike-post.ts +215 -0
  391. package/src/funcs/linkedin-actions-unsave-post.ts +215 -0
  392. package/src/funcs/linkedin-actions-withdraw-invitation.ts +218 -0
  393. package/src/funcs/linkedin-chat-get-unread-count.ts +199 -0
  394. package/src/funcs/linkedin-chat-list-archived.ts +220 -0
  395. package/src/funcs/{linkedin-chat-list-conversations.ts → linkedin-chat-list-inbox-conversations.ts} +1 -1
  396. package/src/funcs/linkedin-chat-mark-all-read.ts +199 -0
  397. package/src/funcs/linkedin-chat-react.ts +214 -0
  398. package/src/funcs/linkedin-chat-send-typing-indicator.ts +215 -0
  399. package/src/funcs/linkedin-scrapers-collect-hashtag-posts.ts +218 -0
  400. package/src/funcs/linkedin-scrapers-collect-likes.ts +1 -1
  401. package/src/funcs/linkedin-scrapers-list-saved-posts.ts +218 -0
  402. package/src/funcs/profile-get-credits.ts +1 -1
  403. package/src/funcs/profile-get-follower-analytics.ts +199 -0
  404. package/src/funcs/profile-get-post-analytics.ts +215 -0
  405. package/src/funcs/profile-get-profile-views.ts +199 -0
  406. package/src/funcs/profile-get-search-appearances.ts +199 -0
  407. package/src/funcs/{profile-get-linked-in-profile.ts → profile-get.ts} +1 -1
  408. package/src/funcs/profile-list-accounts.ts +195 -0
  409. package/src/funcs/profile-update-account.ts +215 -0
  410. package/src/funcs/sales-nav-search-people.ts +250 -0
  411. package/src/funcs/sales-navigator-search-search-companies.ts +230 -0
  412. package/src/funcs/sales-navigator-search-search.ts +235 -0
  413. package/src/funcs/{linkedin-scrapers-collect-posts.ts → scrapers-collect-posts.ts} +1 -1
  414. package/src/funcs/{linkedin-scrapers-visit-profile.ts → scrapers-visit-profile.ts} +1 -1
  415. package/src/lib/config.ts +4 -4
  416. package/src/models/errors/collect-linked-in-likes.ts +27 -27
  417. package/src/models/operations/get-campaign-stats-response.ts +1616 -1584
  418. package/src/models/operations/index.ts +3 -1
  419. package/src/models/operations/scraping-weekly.ts +5707 -0
  420. package/src/models/operations/{send-linked-in-message-response.ts → search-linked-in-by-url-type-post.ts} +2086 -2093
  421. package/src/models/operations/upsert-contacts.ts +305 -0
  422. package/src/sdk/actions.ts +81 -0
  423. package/src/sdk/campaigns.ts +3 -3
  424. package/src/sdk/{linkedin-chat.ts → chat.ts} +29 -33
  425. package/src/sdk/company-pages.ts +79 -0
  426. package/src/sdk/contacts.ts +27 -0
  427. package/src/sdk/linked-in-actions-2.ts +117 -0
  428. package/src/sdk/linked-in-chat-2.ts +99 -0
  429. package/src/sdk/linked-in-scrapers-2.ts +45 -0
  430. package/src/sdk/linked-in-search-1.ts +186 -0
  431. package/src/sdk/linkedin-actions-1.ts +243 -0
  432. package/src/sdk/linkedin-chat-1.ts +139 -0
  433. package/src/sdk/{linkedin-scrapers.ts → linkedin-scrapers-1.ts} +22 -40
  434. package/src/sdk/{linkedin-search.ts → linkedin-search-2.ts} +1 -178
  435. package/src/sdk/profile.ts +110 -4
  436. package/src/sdk/sales-nav.ts +62 -0
  437. package/src/sdk/sales-navigator-search.ts +81 -0
  438. package/src/sdk/scrapers.ts +45 -0
  439. package/src/sdk/sdk.ts +84 -16
  440. package/src/types/discriminated-union.ts +101 -0
  441. package/src/types/smart-union.ts +2 -1
  442. package/esm/funcs/linkedin-chat-find-conversation.d.ts.map +0 -1
  443. package/esm/funcs/linkedin-chat-find-conversation.js.map +0 -1
  444. package/esm/funcs/linkedin-chat-list-conversations.d.ts.map +0 -1
  445. package/esm/funcs/linkedin-chat-list-conversations.js.map +0 -1
  446. package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts.map +0 -1
  447. package/esm/funcs/linkedin-search-resolve-parameters.d.ts.map +0 -1
  448. package/esm/funcs/linkedin-search-resolve-parameters.js.map +0 -1
  449. package/esm/funcs/linkedin-search-search-companies.d.ts.map +0 -1
  450. package/esm/funcs/linkedin-search-search-companies.js.map +0 -1
  451. package/esm/funcs/linkedin-search-unified-search.d.ts.map +0 -1
  452. package/esm/funcs/linkedin-search-unified-search.js.map +0 -1
  453. package/esm/funcs/profile-get-linked-in-profile.d.ts.map +0 -1
  454. package/esm/funcs/profile-get-linked-in-profile.js.map +0 -1
  455. package/esm/models/operations/send-linked-in-message-response.d.ts.map +0 -1
  456. package/esm/models/operations/send-linked-in-message-response.js.map +0 -1
  457. package/esm/sdk/linkedin-actions.d.ts +0 -54
  458. package/esm/sdk/linkedin-actions.d.ts.map +0 -1
  459. package/esm/sdk/linkedin-actions.js +0 -78
  460. package/esm/sdk/linkedin-actions.js.map +0 -1
  461. package/esm/sdk/linkedin-chat.d.ts.map +0 -1
  462. package/esm/sdk/linkedin-chat.js +0 -59
  463. package/esm/sdk/linkedin-chat.js.map +0 -1
  464. package/esm/sdk/linkedin-scrapers.d.ts.map +0 -1
  465. package/esm/sdk/linkedin-scrapers.js.map +0 -1
  466. package/esm/sdk/linkedin-search.d.ts.map +0 -1
  467. package/esm/sdk/linkedin-search.js.map +0 -1
  468. package/src/sdk/linkedin-actions.ts +0 -135
@@ -10,41 +10,74 @@ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
10
10
  import { Result as SafeParseResult } from "../../types/fp.js";
11
11
  import * as types from "../../types/primitives.js";
12
12
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
13
+ import {
14
+ ConnectionRequest,
15
+ ConnectionRequest$inboundSchema,
16
+ GetMyLimitsMessage,
17
+ GetMyLimitsMessage$inboundSchema,
18
+ ProfileVisit,
19
+ ProfileVisit$inboundSchema,
20
+ ScrapingDaily,
21
+ ScrapingDaily$inboundSchema,
22
+ ScrapingWeekly,
23
+ ScrapingWeekly$inboundSchema,
24
+ } from "./scraping-weekly.js";
13
25
 
14
- export type ReplyToLinkedInCommentRequest = {
26
+ /**
27
+ * Limits for data collection: search, collecting posts/likes/comments, fetching followers, listing chats
28
+ */
29
+ export type Scraping = {
15
30
  /**
16
- * LinkedIn comment URN (e.g., 'urn:li:comment:(activity:7399026485694537728,7399230513867026433)')
31
+ * Daily usage counter (resets at midnight UTC)
32
+ */
33
+ daily: ScrapingDaily;
34
+ /**
35
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
17
36
  */
18
- commentUrn: string;
37
+ weekly: ScrapingWeekly | null;
19
38
  /**
20
- * Reply message text
39
+ * Minimum delay in seconds required between two consecutive actions of this type
21
40
  */
22
- message: string;
41
+ minIntervalSeconds: number;
23
42
  /**
24
- * Campaign identifier for deduplication. Dedup by commentUrn automatically.
43
+ * ISO 8601 timestamp of the next daily counter reset
25
44
  */
26
- campaignSlug?: string | undefined;
45
+ nextResetDaily: Date;
27
46
  /**
28
- * Deprecated. Use campaignSlug only.
29
- *
30
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
47
+ * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
31
48
  */
32
- actionSlug?: string | undefined;
49
+ nextResetWeekly: Date | null;
33
50
  };
34
51
 
35
- /**
36
- * Reply sent successfully
37
- */
38
- export type ReplyToLinkedInCommentResponse = {
39
- success: boolean;
52
+ export type Limits = {
53
+ /**
54
+ * Limits for sending LinkedIn connection requests
55
+ */
56
+ connectionRequest: ConnectionRequest;
57
+ /**
58
+ * Limits for social engagement actions: sending messages, publishing posts, replying to comments, liking comments
59
+ */
60
+ message: GetMyLimitsMessage;
61
+ /**
62
+ * Limits for visiting LinkedIn profiles and company pages
63
+ */
64
+ profileVisit: ProfileVisit;
40
65
  /**
41
- * URN of the created reply comment
66
+ * Limits for data collection: search, collecting posts/likes/comments, fetching followers, listing chats
42
67
  */
43
- replyUrn?: string | undefined;
68
+ scraping: Scraping;
69
+ };
70
+
71
+ /**
72
+ * Rate limit status for all action types
73
+ */
74
+ export type GetMyLimitsResponse = {
75
+ success: true;
44
76
  /**
45
- * True if this action was already executed for the given campaignSlug + target.
77
+ * Workspace limit multiplier applied to all base limits (default 1.0)
46
78
  */
47
- duplicate?: boolean | undefined;
79
+ multiplier: number;
80
+ limits: Limits;
48
81
  /**
49
82
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
50
83
  */
@@ -55,56 +88,54 @@ export type ReplyToLinkedInCommentResponse = {
55
88
  retryAfter: number;
56
89
  };
57
90
 
58
- /**
59
- * Reaction type (default: LIKE)
60
- */
61
- export const ReactionType = {
62
- Like: "LIKE",
63
- Love: "LOVE",
64
- Celebrate: "CELEBRATE",
65
- Support: "SUPPORT",
66
- Funny: "FUNNY",
67
- Insightful: "INSIGHTFUL",
68
- } as const;
69
- /**
70
- * Reaction type (default: LIKE)
71
- */
72
- export type ReactionType = ClosedEnum<typeof ReactionType>;
73
-
74
- export type LikeLinkedInCommentRequest = {
91
+ export type Credits = {
92
+ /**
93
+ * Number of credits used in the current billing period
94
+ */
95
+ current: number;
75
96
  /**
76
- * LinkedIn comment URN (e.g., 'urn:li:comment:(activity:7399026485694537728,7399230513867026433)')
97
+ * Maximum credits available for the workspace, or null if unlimited
77
98
  */
78
- commentUrn: string;
99
+ limit: number | null;
79
100
  /**
80
- * Reaction type (default: LIKE)
101
+ * Credits remaining before hitting the limit, or null if unlimited
81
102
  */
82
- reactionType?: ReactionType | undefined;
103
+ remaining: number | null;
83
104
  /**
84
- * Campaign identifier for deduplication. Dedup by commentUrn automatically.
105
+ * Percentage of credits used (0-100, capped at 100, rounded to 2 decimal places). 0 when unlimited
85
106
  */
86
- campaignSlug?: string | undefined;
107
+ percentage: number;
87
108
  /**
88
- * Deprecated. Use campaignSlug only.
89
- *
90
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
109
+ * Whether the workspace has unlimited credits (Pro plan). When true, limit and remaining are null
91
110
  */
92
- actionSlug?: string | undefined;
111
+ isUnlimited: boolean;
93
112
  };
94
113
 
95
114
  /**
96
- * Comment liked successfully
115
+ * Credit balance for the workspace
97
116
  */
98
- export type LikeLinkedInCommentResponse = {
99
- success: boolean;
117
+ export type GetMyCreditsResponse = {
118
+ success: true;
119
+ credits: Credits;
100
120
  /**
101
- * Resource key of the created reaction
121
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
102
122
  */
103
- resourceKey?: string | undefined;
123
+ creditsUsed: number;
104
124
  /**
105
- * True if this action was already executed for the given campaignSlug + target.
125
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
106
126
  */
107
- duplicate?: boolean | undefined;
127
+ retryAfter: number;
128
+ };
129
+
130
+ export type GetLinkedInProfileViewsRequest = {};
131
+
132
+ /**
133
+ * Profile viewers
134
+ */
135
+ export type GetLinkedInProfileViewsResponse = {
136
+ success: true;
137
+ views: Array<any>;
138
+ total: number;
108
139
  /**
109
140
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
110
141
  */
@@ -115,99 +146,93 @@ export type LikeLinkedInCommentResponse = {
115
146
  retryAfter: number;
116
147
  };
117
148
 
118
- /**
119
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
120
- */
121
- export const Mode = {
122
- Scheduled: "scheduled",
123
- Instant: "instant",
124
- } as const;
125
- /**
126
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
127
- */
128
- export type Mode = ClosedEnum<typeof Mode>;
149
+ export type GetLinkedInSearchAppearancesRequest = {};
129
150
 
130
151
  /**
131
- * Post visibility
152
+ * Search appearance stats
132
153
  */
133
- export const Visibility = {
134
- Anyone: "ANYONE",
135
- Connections: "CONNECTIONS",
136
- } as const;
137
- /**
138
- * Post visibility
139
- */
140
- export type Visibility = ClosedEnum<typeof Visibility>;
141
-
142
- export type Mention = {
154
+ export type GetLinkedInSearchAppearancesResponse = {
155
+ success: true;
156
+ appearances: any;
143
157
  /**
144
- * LinkedIn profile URN of the mentioned person (e.g., 'urn:li:fsd_profile:ACoAABZ0Qo4B...')
145
- */
146
- profileUrn: string;
147
- /**
148
- * Start character offset in the text where the mention begins
158
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
149
159
  */
150
- start: number;
160
+ creditsUsed: number;
151
161
  /**
152
- * Length of the mention text in characters
162
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
153
163
  */
154
- length: number;
164
+ retryAfter: number;
155
165
  };
156
166
 
157
- export type PublishLinkedInPostRequest = {
167
+ export type GetLinkedInPostAnalyticsRequest = {
158
168
  /**
159
- * Post commentary text
169
+ * LinkedIn post URL or URN
160
170
  */
161
- text: string;
171
+ postUrl: string;
172
+ };
173
+
174
+ /**
175
+ * Post analytics
176
+ */
177
+ export type GetLinkedInPostAnalyticsResponse = {
178
+ success: true;
179
+ analytics: any;
162
180
  /**
163
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
181
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
164
182
  */
165
- mode: Mode;
183
+ creditsUsed: number;
166
184
  /**
167
- * Timestamp in milliseconds for scheduled posts (required when mode='scheduled')
185
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
168
186
  */
169
- scheduledAt?: number | undefined;
187
+ retryAfter: number;
188
+ };
189
+
190
+ export type GetLinkedInFollowerAnalyticsRequest = {};
191
+
192
+ /**
193
+ * Follower analytics
194
+ */
195
+ export type GetLinkedInFollowerAnalyticsResponse = {
196
+ success: true;
197
+ analytics: any;
170
198
  /**
171
- * URL of an image to attach to the post
199
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
172
200
  */
173
- imageUrl?: string | undefined;
201
+ creditsUsed: number;
174
202
  /**
175
- * Post visibility
203
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
176
204
  */
177
- visibility?: Visibility | undefined;
205
+ retryAfter: number;
206
+ };
207
+
208
+ export type Page = {
178
209
  /**
179
- * Profile mentions with text positions
210
+ * LinkedIn numeric company ID.
180
211
  */
181
- mentions?: Array<Mention> | undefined;
212
+ id: string;
182
213
  /**
183
- * Campaign identifier for deduplication.
214
+ * Company URL slug (e.g. 'openai').
184
215
  */
185
- campaignSlug?: string | undefined;
216
+ universalName: string;
217
+ name: string;
218
+ url: string;
219
+ logoUrl: string | null;
220
+ followerCount: number | null;
221
+ industry: string | null;
222
+ employeeCount: number | null;
186
223
  /**
187
- * Deprecated. Use campaignSlug only.
188
- *
189
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
224
+ * Admin role (e.g. 'ADMINISTRATOR', 'CONTENT_ADMIN'). Null if role is unknown.
190
225
  */
191
- actionSlug?: string | undefined;
226
+ adminRole: string | null;
192
227
  };
193
228
 
194
229
  /**
195
- * Post published or scheduled successfully
230
+ * List of managed company pages
196
231
  */
197
- export type PublishLinkedInPostResponse = {
198
- success: boolean;
199
- /**
200
- * URN of the created share (e.g., 'urn:li:fsd_share:urn:li:share:123...')
201
- */
202
- shareUrn: string;
203
- /**
204
- * Activity URN (only available for instant mode)
205
- */
206
- activityUrn: string | null;
207
- /**
208
- * True if this action was already executed for the given campaignSlug + target.
209
- */
210
- duplicate?: boolean | undefined;
232
+ export type ListLinkedInCompanyPagesResponse = {
233
+ success: true;
234
+ pages: Array<Page>;
235
+ total: number;
211
236
  /**
212
237
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
213
238
  */
@@ -218,132 +243,58 @@ export type PublishLinkedInPostResponse = {
218
243
  retryAfter: number;
219
244
  };
220
245
 
221
- export type GetMyLinkedInProfilePositionStartDate = {
222
- month: number | null;
223
- year: number;
224
- };
225
-
226
- export type GetMyLinkedInProfilePositionEndDate = {
227
- month: number | null;
228
- year: number;
229
- };
230
-
231
- export type GetMyLinkedInProfilePosition = {
232
- companyName: string | null;
233
- title: string | null;
234
- companyUrl: string | null;
235
- companyLogo: string | null;
236
- startDate: GetMyLinkedInProfilePositionStartDate | null;
237
- endDate: GetMyLinkedInProfilePositionEndDate | null;
238
- isCurrent: boolean;
239
- };
240
-
241
- export type GetMyLinkedInProfileEducationStartDate = {
242
- month: number | null;
243
- year: number;
244
- };
245
-
246
- export type GetMyLinkedInProfileEducationEndDate = {
247
- month: number | null;
248
- year: number;
249
- };
250
-
251
- export type GetMyLinkedInProfileEducation = {
252
- schoolName: string | null;
253
- degreeName: string | null;
254
- fieldOfStudy: string | null;
255
- schoolUrl: string | null;
256
- schoolLogo: string | null;
257
- startDate: GetMyLinkedInProfileEducationStartDate | null;
258
- endDate: GetMyLinkedInProfileEducationEndDate | null;
259
- };
260
-
261
- /**
262
- * Profile location
263
- */
264
- export type GetMyLinkedInProfileLocation = {
265
- countryCode: string;
266
- postalCode?: string | undefined;
267
- };
268
-
269
- export const GetMyLinkedInProfileType = {
270
- Activity: "activity",
271
- UgcPost: "ugcPost",
272
- Share: "share",
273
- } as const;
274
- export type GetMyLinkedInProfileType = OpenEnum<
275
- typeof GetMyLinkedInProfileType
276
- >;
277
-
278
- export type GetMyLinkedInProfileLastPost = {
279
- postUrl: string;
280
- text: string;
281
- date: number;
282
- likesCount: number;
283
- commentsCount: number;
284
- sharesCount: number;
285
- postUrn: string;
286
- postId: string;
287
- type: GetMyLinkedInProfileType;
288
- };
289
-
290
- /**
291
- * Stored LinkedIn profile data
292
- */
293
- export type GetMyLinkedInProfileResponse = {
294
- success: boolean;
295
- /**
296
- * LinkedIn vanity name (e.g., 'alexandre-sarfati')
297
- */
298
- linkedinProfileId: string | null;
299
- /**
300
- * Full name from LinkedIn
301
- */
302
- linkedinName: string | null;
303
- /**
304
- * Email from LinkedIn profile
305
- */
306
- linkedinEmail: string | null;
246
+ export type GetCompanyPagePostsRequest = {
307
247
  /**
308
- * LinkedIn profile URN
248
+ * Company URL slug (e.g. 'openai'). Same value as returned by listCompanyPages.
309
249
  */
310
- profileUrn: string | null;
250
+ universalName: string;
311
251
  /**
312
- * LinkedIn headline
252
+ * Number of posts to return (max 50).
313
253
  */
314
- headline: string | null;
254
+ count?: number | undefined;
315
255
  /**
316
- * Profile picture URL
256
+ * Pagination offset.
317
257
  */
318
- profilePic: string | null;
258
+ start?: number | undefined;
259
+ };
260
+
261
+ export type GetCompanyPagePostsPost = {
319
262
  /**
320
- * Full LinkedIn profile URL
263
+ * LinkedIn activity URN for this post.
321
264
  */
322
- profileUrl: string | null;
265
+ activityUrn: string;
323
266
  /**
324
- * Work positions (populated after /refresh)
267
+ * Direct URL to the post on LinkedIn.
325
268
  */
326
- positions?: Array<GetMyLinkedInProfilePosition> | undefined;
269
+ postUrl: string;
327
270
  /**
328
- * Education entries (populated after /refresh)
271
+ * Post text content (null if media-only).
329
272
  */
330
- educations?: Array<GetMyLinkedInProfileEducation> | undefined;
273
+ text: string | null;
331
274
  /**
332
- * Total LinkedIn connections
275
+ * Unix timestamp in milliseconds (null if unavailable).
333
276
  */
334
- connectionsCount: number | null;
277
+ publishedAt: number | null;
335
278
  /**
336
- * Profile location
279
+ * Number of likes/reactions.
337
280
  */
338
- location: GetMyLinkedInProfileLocation | null;
281
+ numLikes: number | null;
339
282
  /**
340
- * LinkedIn verification status
283
+ * Number of comments.
341
284
  */
342
- isVerified: boolean | null;
285
+ numComments: number | null;
286
+ };
287
+
288
+ /**
289
+ * Company page posts
290
+ */
291
+ export type GetCompanyPagePostsResponse = {
292
+ success: true;
293
+ posts: Array<GetCompanyPagePostsPost>;
343
294
  /**
344
- * Last 5 posts (populated when posts have been fetched via /me/linkedin/posts)
295
+ * Total number of posts available.
345
296
  */
346
- lastPosts?: Array<GetMyLinkedInProfileLastPost> | undefined;
297
+ total: number;
347
298
  /**
348
299
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
349
300
  */
@@ -354,188 +305,115 @@ export type GetMyLinkedInProfileResponse = {
354
305
  retryAfter: number;
355
306
  };
356
307
 
357
- export type RefreshMyLinkedInProfilePositionStartDate = {
358
- month: number | null;
359
- year: number;
360
- };
361
-
362
- export type RefreshMyLinkedInProfilePositionEndDate = {
363
- month: number | null;
364
- year: number;
365
- };
366
-
367
- export type RefreshMyLinkedInProfilePosition = {
368
- companyName: string | null;
369
- title: string | null;
370
- companyUrl: string | null;
371
- companyLogo: string | null;
372
- startDate: RefreshMyLinkedInProfilePositionStartDate | null;
373
- endDate: RefreshMyLinkedInProfilePositionEndDate | null;
374
- isCurrent: boolean;
375
- };
376
-
377
- export type RefreshMyLinkedInProfileEducationStartDate = {
378
- month: number | null;
379
- year: number;
380
- };
381
-
382
- export type RefreshMyLinkedInProfileEducationEndDate = {
383
- month: number | null;
384
- year: number;
385
- };
386
-
387
- export type RefreshMyLinkedInProfileEducation = {
388
- schoolName: string | null;
389
- degreeName: string | null;
390
- fieldOfStudy: string | null;
391
- schoolUrl: string | null;
392
- schoolLogo: string | null;
393
- startDate: RefreshMyLinkedInProfileEducationStartDate | null;
394
- endDate: RefreshMyLinkedInProfileEducationEndDate | null;
395
- };
396
-
397
- /**
398
- * Profile location
399
- */
400
- export type RefreshMyLinkedInProfileLocation = {
401
- countryCode: string;
402
- postalCode?: string | undefined;
403
- };
404
-
405
- export const RefreshMyLinkedInProfileType = {
406
- Activity: "activity",
407
- UgcPost: "ugcPost",
408
- Share: "share",
409
- } as const;
410
- export type RefreshMyLinkedInProfileType = OpenEnum<
411
- typeof RefreshMyLinkedInProfileType
412
- >;
413
-
414
- export type RefreshMyLinkedInProfileLastPost = {
415
- postUrl: string;
416
- text: string;
417
- date: number;
418
- likesCount: number;
419
- commentsCount: number;
420
- sharesCount: number;
421
- postUrn: string;
422
- postId: string;
423
- type: RefreshMyLinkedInProfileType;
308
+ export type GetCompanyPagePermissionsRequest = {
309
+ /**
310
+ * Company URL slug (e.g. 'openai'). Same value as returned by listCompanyPages.
311
+ */
312
+ universalName: string;
424
313
  };
425
314
 
426
- /**
427
- * Refreshed LinkedIn profile data
428
- */
429
- export type RefreshMyLinkedInProfileResponse = {
430
- success: boolean;
315
+ export type Permissions = {
431
316
  /**
432
- * LinkedIn vanity name (e.g., 'alexandre-sarfati')
317
+ * Admin role (e.g. 'SUPER_ADMINISTRATOR', 'ADMINISTRATOR', 'CONTENT_ADMIN').
433
318
  */
434
- linkedinProfileId: string | null;
319
+ role: string | null;
435
320
  /**
436
- * Full name from LinkedIn
321
+ * Can post as the company page.
437
322
  */
438
- linkedinName: string | null;
323
+ canCreateOrganicShare: boolean;
439
324
  /**
440
- * Email from LinkedIn profile
325
+ * Can comment as the company page.
441
326
  */
442
- linkedinEmail: string | null;
327
+ canCreateComment: boolean;
443
328
  /**
444
- * LinkedIn profile URN
329
+ * Can like/react as the company page.
445
330
  */
446
- profileUrn: string | null;
331
+ canCreateReaction: boolean;
447
332
  /**
448
- * LinkedIn headline
333
+ * Can delete company page posts.
449
334
  */
450
- headline: string | null;
335
+ canDeleteShare: boolean;
451
336
  /**
452
- * Profile picture URL
337
+ * Can pin posts on the company page.
453
338
  */
454
- profilePic: string | null;
339
+ canPinShare: boolean;
455
340
  /**
456
- * Full LinkedIn profile URL
341
+ * Can send messages from the company page inbox.
457
342
  */
458
- profileUrl: string | null;
343
+ canSendMessages: boolean;
459
344
  /**
460
- * Work positions (populated after /refresh)
345
+ * Can read the company page inbox.
461
346
  */
462
- positions?: Array<RefreshMyLinkedInProfilePosition> | undefined;
347
+ canReadMessages: boolean;
463
348
  /**
464
- * Education entries (populated after /refresh)
349
+ * Can access the admin analytics dashboard.
465
350
  */
466
- educations?: Array<RefreshMyLinkedInProfileEducation> | undefined;
351
+ canReadAdminDashboard: boolean;
467
352
  /**
468
- * Total LinkedIn connections
353
+ * Can view post/update analytics.
469
354
  */
470
- connectionsCount: number | null;
355
+ canReadOrganizationUpdateAnalytics: boolean;
471
356
  /**
472
- * Profile location
357
+ * Can view visitor analytics.
473
358
  */
474
- location: RefreshMyLinkedInProfileLocation | null;
359
+ canReadOrganizationVisitorAnalytics: boolean;
475
360
  /**
476
- * LinkedIn verification status
361
+ * Can view follower analytics.
477
362
  */
478
- isVerified: boolean | null;
363
+ canReadOrganizationFollowerAnalytics: boolean;
479
364
  /**
480
- * Last 5 posts (populated when posts have been fetched via /me/linkedin/posts)
365
+ * Can view search appearance analytics.
481
366
  */
482
- lastPosts?: Array<RefreshMyLinkedInProfileLastPost> | undefined;
483
- refreshed: boolean;
367
+ canReadOrganizationSearchAppearanceAnalytics: boolean;
484
368
  /**
485
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
369
+ * Can edit the company page profile.
486
370
  */
487
- creditsUsed: number;
371
+ canUpdateOrganizationProfile: boolean;
488
372
  /**
489
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
373
+ * Can add/remove page admins.
490
374
  */
491
- retryAfter: number;
492
- };
493
-
494
- export type GetMyLinkedInPostsRequest = {
375
+ canEditAdministrators: boolean;
495
376
  /**
496
- * Number of posts to fetch (default 20, max 100).
377
+ * Can deactivate the company page.
497
378
  */
498
- count?: number | undefined;
379
+ canDeactivateOrganization: boolean;
499
380
  /**
500
- * Pagination offset (default 0).
381
+ * Can create/edit company events.
501
382
  */
502
- start?: number | undefined;
383
+ canEditEvents: boolean;
503
384
  /**
504
- * Pagination token from a previous response to fetch the next page.
385
+ * Can view company events.
505
386
  */
506
- paginationToken?: string | undefined;
507
- };
508
-
509
- export const GetMyLinkedInPostsType = {
510
- Activity: "activity",
511
- UgcPost: "ugcPost",
512
- Share: "share",
513
- } as const;
514
- export type GetMyLinkedInPostsType = OpenEnum<typeof GetMyLinkedInPostsType>;
515
-
516
- export type GetMyLinkedInPostsPost = {
517
- postUrl: string;
518
- text: string;
519
- date: number;
520
- likesCount: number;
521
- commentsCount: number;
522
- sharesCount: number;
523
- postUrn: string;
524
- postId: string;
525
- type: GetMyLinkedInPostsType;
387
+ canReadEvents: boolean;
388
+ /**
389
+ * Can sponsor/boost posts.
390
+ */
391
+ canSponsorShare: boolean;
392
+ /**
393
+ * Can manage the career page section.
394
+ */
395
+ canManageCareerPages: boolean;
396
+ /**
397
+ * Can manage messaging settings.
398
+ */
399
+ canManageMessagingAccess: boolean;
400
+ /**
401
+ * Can notify employees about posts.
402
+ */
403
+ canNotifyEmployees: boolean;
404
+ /**
405
+ * Can export lead-gen form leads.
406
+ */
407
+ canExportLeads: boolean;
526
408
  };
527
409
 
528
410
  /**
529
- * Paginated list of the user's own posts
411
+ * Company page admin permissions
530
412
  */
531
- export type GetMyLinkedInPostsResponse = {
532
- success: boolean;
533
- posts: Array<GetMyLinkedInPostsPost>;
534
- count: number;
535
- total: number;
536
- start: number;
537
- hasMore: boolean;
538
- paginationToken: string | null;
413
+ export type GetCompanyPagePermissionsResponse = {
414
+ success: true;
415
+ universalName: string;
416
+ permissions: Permissions;
539
417
  /**
540
418
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
541
419
  */
@@ -546,42 +424,49 @@ export type GetMyLinkedInPostsResponse = {
546
424
  retryAfter: number;
547
425
  };
548
426
 
549
- export type GetMyLinkedInFollowersRequest = {
550
- /**
551
- * Pagination offset (default 0).
552
- */
553
- start?: number | undefined;
427
+ export type GetCompanyPageAnalyticsRequest = {
554
428
  /**
555
- * Number of followers to fetch per page (default 10, max 50).
429
+ * Company page ID (numeric, e.g. '111652438')
556
430
  */
557
- count?: number | undefined;
431
+ companyId: string;
432
+ };
433
+
434
+ export type GetCompanyPageAnalyticsFoundedOn = {
435
+ year: number;
436
+ month?: number | undefined;
437
+ day?: number | undefined;
558
438
  };
559
439
 
560
- export type Follower = {
440
+ export type GetCompanyPageAnalyticsHeadquarter = {
441
+ city: string;
442
+ country: string;
443
+ line1?: string | undefined;
444
+ postalCode?: string | undefined;
445
+ };
446
+
447
+ export type Analytics = {
561
448
  name: string;
562
- headline: string | null;
563
- profileUrl: string | null;
564
- profilePicture: string | null;
449
+ universalName: string;
565
450
  followerCount: number | null;
566
- /**
567
- * Whether you follow this person back
568
- */
569
- following: boolean;
451
+ employeeCount: number | null;
452
+ visitorsInPastMonthCount: number | null;
453
+ isActive: boolean;
454
+ foundedOn: GetCompanyPageAnalyticsFoundedOn | null;
455
+ headquarter: GetCompanyPageAnalyticsHeadquarter | null;
456
+ description: string | null;
457
+ tagline: string | null;
458
+ websiteUrl: string | null;
459
+ organizationType: string | null;
460
+ specialities: Array<string>;
461
+ industryUrns: Array<string>;
570
462
  };
571
463
 
572
464
  /**
573
- * Paginated list of followers
465
+ * Company page overview analytics
574
466
  */
575
- export type GetMyLinkedInFollowersResponse = {
576
- success: boolean;
577
- followers: Array<Follower>;
578
- count: number;
579
- /**
580
- * Total reported by LinkedIn (capped at ~1000)
581
- */
582
- totalFollowers: number;
583
- start: number;
584
- hasMore: boolean;
467
+ export type GetCompanyPageAnalyticsResponse = {
468
+ success: true;
469
+ analytics: Analytics;
585
470
  /**
586
471
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
587
472
  */
@@ -592,283 +477,227 @@ export type GetMyLinkedInFollowersResponse = {
592
477
  retryAfter: number;
593
478
  };
594
479
 
595
- /**
596
- * Daily usage counter (resets at midnight UTC)
597
- */
598
- export type ConnectionRequestDaily = {
599
- /**
600
- * Number of actions used in this window
601
- */
602
- current: number;
603
- /**
604
- * Maximum allowed actions in this window (with multiplier applied)
605
- */
606
- limit: number;
480
+ export type ListInboxConversationsRequest = {
607
481
  /**
608
- * Actions remaining before hitting the limit
482
+ * Pagination cursor from a previous response
609
483
  */
610
- remaining: number;
484
+ nextCursor?: string | undefined;
611
485
  };
612
486
 
613
- /**
614
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
615
- */
616
- export type ConnectionRequestWeekly = {
617
- /**
618
- * Number of actions used in this window
619
- */
620
- current: number;
621
- /**
622
- * Maximum allowed actions in this window (with multiplier applied)
623
- */
624
- limit: number;
625
- /**
626
- * Actions remaining before hitting the limit
627
- */
628
- remaining: number;
487
+ export type ListInboxConversationsParticipant = {
488
+ profileUrn: string;
489
+ firstName: string;
490
+ lastName: string;
491
+ profileUrl: string | null;
492
+ headline: string | null;
493
+ profilePicture: string | null;
494
+ publicIdentifier: string | null;
629
495
  };
630
496
 
631
- /**
632
- * Limits for sending LinkedIn connection requests
633
- */
634
- export type ConnectionRequest = {
635
- /**
636
- * Daily usage counter (resets at midnight UTC)
637
- */
638
- daily: ConnectionRequestDaily;
639
- /**
640
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
641
- */
642
- weekly: ConnectionRequestWeekly | null;
643
- /**
644
- * Minimum delay in seconds required between two consecutive actions of this type
645
- */
646
- minIntervalSeconds: number;
647
- /**
648
- * ISO 8601 timestamp of the next daily counter reset
649
- */
650
- nextResetDaily: Date;
651
- /**
652
- * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
653
- */
654
- nextResetWeekly: Date | null;
497
+ export type ListInboxConversationsLastMessage = {
498
+ text: string | null;
499
+ deliveredAt: number;
500
+ senderProfileUrn: string;
655
501
  };
656
502
 
657
- /**
658
- * Daily usage counter (resets at midnight UTC)
659
- */
660
- export type MessageDaily = {
661
- /**
662
- * Number of actions used in this window
663
- */
664
- current: number;
665
- /**
666
- * Maximum allowed actions in this window (with multiplier applied)
667
- */
668
- limit: number;
669
- /**
670
- * Actions remaining before hitting the limit
671
- */
672
- remaining: number;
503
+ export type ListInboxConversationsConversation = {
504
+ conversationUrn: string;
505
+ conversationUrl: string;
506
+ lastActivityAt: number;
507
+ createdAt: number;
508
+ read: boolean;
509
+ unreadCount: number;
510
+ groupChat: boolean;
511
+ participants: Array<ListInboxConversationsParticipant>;
512
+ lastMessage: ListInboxConversationsLastMessage | null;
673
513
  };
674
514
 
675
515
  /**
676
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
516
+ * Inbox conversations
677
517
  */
678
- export type MessageWeekly = {
518
+ export type ListInboxConversationsResponse = {
519
+ success: true;
520
+ conversations: Array<ListInboxConversationsConversation>;
679
521
  /**
680
- * Number of actions used in this window
522
+ * Cursor for fetching next page
681
523
  */
682
- current: number;
524
+ nextCursor: string | null;
683
525
  /**
684
- * Maximum allowed actions in this window (with multiplier applied)
526
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
685
527
  */
686
- limit: number;
528
+ creditsUsed: number;
687
529
  /**
688
- * Actions remaining before hitting the limit
530
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
689
531
  */
690
- remaining: number;
532
+ retryAfter: number;
691
533
  };
692
534
 
693
- /**
694
- * Limits for social engagement actions: sending messages, publishing posts, replying to comments, liking comments
695
- */
696
- export type GetMyLimitsMessage = {
697
- /**
698
- * Daily usage counter (resets at midnight UTC)
699
- */
700
- daily: MessageDaily;
701
- /**
702
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
703
- */
704
- weekly: MessageWeekly | null;
705
- /**
706
- * Minimum delay in seconds required between two consecutive actions of this type
707
- */
708
- minIntervalSeconds: number;
535
+ export type GetConversationMessagesRequest = {
709
536
  /**
710
- * ISO 8601 timestamp of the next daily counter reset
537
+ * Full conversation URN as returned by /chats/linkedin (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
711
538
  */
712
- nextResetDaily: Date;
539
+ conversationUrn: string;
713
540
  /**
714
- * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
541
+ * Timestamp (ms) of the oldest message from previous page pass this to load older messages
715
542
  */
716
- nextResetWeekly: Date | null;
543
+ deliveredAt?: number | undefined;
717
544
  };
718
545
 
719
- /**
720
- * Daily usage counter (resets at midnight UTC)
721
- */
722
- export type ProfileVisitDaily = {
723
- /**
724
- * Number of actions used in this window
725
- */
726
- current: number;
727
- /**
728
- * Maximum allowed actions in this window (with multiplier applied)
729
- */
730
- limit: number;
731
- /**
732
- * Actions remaining before hitting the limit
733
- */
734
- remaining: number;
546
+ export type GetConversationMessagesSender = {
547
+ firstName: string;
548
+ lastName: string;
549
+ profileUrl: string | null;
550
+ headline: string | null;
551
+ profilePicture: string | null;
552
+ publicIdentifier: string | null;
553
+ profileUrn: string | null;
735
554
  };
736
555
 
737
- /**
738
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
739
- */
740
- export type ProfileVisitWeekly = {
741
- /**
742
- * Number of actions used in this window
743
- */
744
- current: number;
745
- /**
746
- * Maximum allowed actions in this window (with multiplier applied)
747
- */
748
- limit: number;
749
- /**
750
- * Actions remaining before hitting the limit
751
- */
752
- remaining: number;
556
+ export const GetConversationMessagesType = {
557
+ Audio: "audio",
558
+ SharedPost: "shared_post",
559
+ RepliedMessage: "replied_message",
560
+ Image: "image",
561
+ File: "file",
562
+ Unknown: "unknown",
563
+ } as const;
564
+ export type GetConversationMessagesType = OpenEnum<
565
+ typeof GetConversationMessagesType
566
+ >;
567
+
568
+ export type GetConversationMessagesAttachment = {
569
+ type: GetConversationMessagesType;
570
+ audioUrl?: string | undefined;
571
+ audioDuration?: number | undefined;
572
+ hostUrn?: string | undefined;
573
+ repliedText?: string | undefined;
574
+ repliedSenderName?: string | undefined;
575
+ imageUrl?: string | undefined;
576
+ fileName?: string | undefined;
577
+ fileUrl?: string | undefined;
753
578
  };
754
579
 
755
- /**
756
- * Limits for visiting LinkedIn profiles and company pages
757
- */
758
- export type ProfileVisit = {
759
- /**
760
- * Daily usage counter (resets at midnight UTC)
761
- */
762
- daily: ProfileVisitDaily;
763
- /**
764
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
765
- */
766
- weekly: ProfileVisitWeekly | null;
767
- /**
768
- * Minimum delay in seconds required between two consecutive actions of this type
769
- */
770
- minIntervalSeconds: number;
771
- /**
772
- * ISO 8601 timestamp of the next daily counter reset
773
- */
774
- nextResetDaily: Date;
775
- /**
776
- * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
777
- */
778
- nextResetWeekly: Date | null;
580
+ export type GetConversationMessagesMessage = {
581
+ messageUrn: string;
582
+ text: string | null;
583
+ deliveredAt: number;
584
+ senderProfileUrn: string;
585
+ sender: GetConversationMessagesSender;
586
+ attachments: Array<GetConversationMessagesAttachment>;
779
587
  };
780
588
 
781
589
  /**
782
- * Daily usage counter (resets at midnight UTC)
590
+ * Conversation messages
783
591
  */
784
- export type ScrapingDaily = {
592
+ export type GetConversationMessagesResponse = {
593
+ success: true;
594
+ messages: Array<GetConversationMessagesMessage>;
785
595
  /**
786
- * Number of actions used in this window
596
+ * deliveredAt timestamp (ms) of the oldest message pass as 'deliveredAt' to load older messages. Null when no more messages.
787
597
  */
788
- current: number;
598
+ prevCursor: number | null;
789
599
  /**
790
- * Maximum allowed actions in this window (with multiplier applied)
600
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
791
601
  */
792
- limit: number;
602
+ creditsUsed: number;
793
603
  /**
794
- * Actions remaining before hitting the limit
604
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
795
605
  */
796
- remaining: number;
606
+ retryAfter: number;
797
607
  };
798
608
 
609
+ export type MarkAllConversationsReadRequest = {};
610
+
799
611
  /**
800
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
612
+ * All conversations marked as read
801
613
  */
802
- export type ScrapingWeekly = {
614
+ export type MarkAllConversationsReadResponse = {
615
+ success: true;
803
616
  /**
804
- * Number of actions used in this window
617
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
805
618
  */
806
- current: number;
619
+ creditsUsed: number;
807
620
  /**
808
- * Maximum allowed actions in this window (with multiplier applied)
621
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
809
622
  */
810
- limit: number;
623
+ retryAfter: number;
624
+ };
625
+
626
+ export type ListArchivedConversationsRequest = {
811
627
  /**
812
- * Actions remaining before hitting the limit
628
+ * Pagination cursor from a previous response
813
629
  */
814
- remaining: number;
630
+ nextCursor?: string | undefined;
631
+ };
632
+
633
+ export type ListArchivedConversationsParticipant = {
634
+ profileUrn: string;
635
+ firstName: string;
636
+ lastName: string;
637
+ profileUrl: string | null;
638
+ headline: string | null;
639
+ profilePicture: string | null;
640
+ publicIdentifier: string | null;
641
+ };
642
+
643
+ export type ListArchivedConversationsLastMessage = {
644
+ text: string | null;
645
+ deliveredAt: number;
646
+ senderProfileUrn: string;
647
+ };
648
+
649
+ export type ListArchivedConversationsConversation = {
650
+ conversationUrn: string;
651
+ conversationUrl: string;
652
+ lastActivityAt: number;
653
+ createdAt: number;
654
+ read: boolean;
655
+ unreadCount: number;
656
+ groupChat: boolean;
657
+ participants: Array<ListArchivedConversationsParticipant>;
658
+ lastMessage: ListArchivedConversationsLastMessage | null;
815
659
  };
816
660
 
817
661
  /**
818
- * Limits for data collection: search, collecting posts/likes/comments, fetching followers, listing chats
662
+ * Archived conversations
819
663
  */
820
- export type Scraping = {
821
- /**
822
- * Daily usage counter (resets at midnight UTC)
823
- */
824
- daily: ScrapingDaily;
825
- /**
826
- * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
827
- */
828
- weekly: ScrapingWeekly | null;
664
+ export type ListArchivedConversationsResponse = {
665
+ success: true;
666
+ conversations: Array<ListArchivedConversationsConversation>;
829
667
  /**
830
- * Minimum delay in seconds required between two consecutive actions of this type
668
+ * Cursor for fetching next page
831
669
  */
832
- minIntervalSeconds: number;
670
+ nextCursor: string | null;
833
671
  /**
834
- * ISO 8601 timestamp of the next daily counter reset
672
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
835
673
  */
836
- nextResetDaily: Date;
674
+ creditsUsed: number;
837
675
  /**
838
- * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
676
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
839
677
  */
840
- nextResetWeekly: Date | null;
678
+ retryAfter: number;
841
679
  };
842
680
 
843
- export type Limits = {
844
- /**
845
- * Limits for sending LinkedIn connection requests
846
- */
847
- connectionRequest: ConnectionRequest;
681
+ export type ReactToMessageRequest = {
848
682
  /**
849
- * Limits for social engagement actions: sending messages, publishing posts, replying to comments, liking comments
683
+ * Full message URN (e.g. 'urn:li:msg_message:(urn:li:fsd_profile:ACoAAXXX,2-MTcw...)')
850
684
  */
851
- message: GetMyLimitsMessage;
685
+ messageUrn: string;
852
686
  /**
853
- * Limits for visiting LinkedIn profiles and company pages
687
+ * Emoji character to react with (e.g. '👍', '❤️', '😂')
854
688
  */
855
- profileVisit: ProfileVisit;
689
+ emoji: string;
856
690
  /**
857
- * Limits for data collection: search, collecting posts/likes/comments, fetching followers, listing chats
691
+ * Conversation URN (required for the old messaging API fallback)
858
692
  */
859
- scraping: Scraping;
693
+ conversationUrn: string;
860
694
  };
861
695
 
862
696
  /**
863
- * Rate limit status for all action types
697
+ * Reaction added
864
698
  */
865
- export type GetMyLimitsResponse = {
866
- success: boolean;
867
- /**
868
- * Workspace limit multiplier applied to all base limits (default 1.0)
869
- */
870
- multiplier: number;
871
- limits: Limits;
699
+ export type ReactToMessageResponse = {
700
+ success: true;
872
701
  /**
873
702
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
874
703
  */
@@ -879,31 +708,18 @@ export type GetMyLimitsResponse = {
879
708
  retryAfter: number;
880
709
  };
881
710
 
882
- export type Credits = {
883
- /**
884
- * Number of credits used in the current billing period
885
- */
886
- current: number;
887
- /**
888
- * Maximum credits available for the workspace
889
- */
890
- limit: number;
711
+ export type SendTypingIndicatorRequest = {
891
712
  /**
892
- * Credits remaining before hitting the limit
713
+ * Full conversation URN
893
714
  */
894
- remaining: number;
895
- /**
896
- * Percentage of credits used (0-100, rounded to 2 decimal places)
897
- */
898
- percentage: number;
715
+ conversationUrn: string;
899
716
  };
900
717
 
901
718
  /**
902
- * Credit balance for the workspace
719
+ * Typing indicator sent
903
720
  */
904
- export type GetMyCreditsResponse = {
905
- success: boolean;
906
- credits: Credits;
721
+ export type SendTypingIndicatorResponse = {
722
+ success: true;
907
723
  /**
908
724
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
909
725
  */
@@ -914,50 +730,17 @@ export type GetMyCreditsResponse = {
914
730
  retryAfter: number;
915
731
  };
916
732
 
917
- export type ListInboxConversationsRequest = {
918
- /**
919
- * Pagination cursor from a previous response
920
- */
921
- nextCursor?: string | undefined;
922
- };
923
-
924
- export type ListInboxConversationsParticipant = {
925
- profileUrn: string;
926
- firstName: string;
927
- lastName: string;
928
- profileUrl: string | null;
929
- headline: string | null;
930
- profilePicture: string | null;
931
- };
932
-
933
- export type ListInboxConversationsLastMessage = {
934
- text: string | null;
935
- deliveredAt: number;
936
- senderProfileUrn: string;
937
- };
938
-
939
- export type ListInboxConversationsConversation = {
940
- conversationUrn: string;
941
- conversationUrl: string;
942
- lastActivityAt: number;
943
- createdAt: number;
944
- read: boolean;
945
- unreadCount: number;
946
- groupChat: boolean;
947
- participants: Array<ListInboxConversationsParticipant>;
948
- lastMessage: ListInboxConversationsLastMessage | null;
949
- };
733
+ export type GetUnreadCountRequest = {};
950
734
 
951
735
  /**
952
- * Inbox conversations
736
+ * Unread count
953
737
  */
954
- export type ListInboxConversationsResponse = {
955
- success: boolean;
956
- conversations: Array<ListInboxConversationsConversation>;
738
+ export type GetUnreadCountResponse = {
739
+ success: true;
957
740
  /**
958
- * Cursor for fetching next page
741
+ * Number of unread conversations/messages
959
742
  */
960
- nextCursor: string | null;
743
+ unreadCount: number;
961
744
  /**
962
745
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
963
746
  */
@@ -986,6 +769,7 @@ export type SearchLinkedInConversationsParticipant = {
986
769
  profileUrl: string | null;
987
770
  headline: string | null;
988
771
  profilePicture: string | null;
772
+ publicIdentifier: string | null;
989
773
  };
990
774
 
991
775
  export type SearchLinkedInConversationsLastMessage = {
@@ -1010,7 +794,7 @@ export type SearchLinkedInConversationsConversation = {
1010
794
  * Matching conversations
1011
795
  */
1012
796
  export type SearchLinkedInConversationsResponse = {
1013
- success: boolean;
797
+ success: true;
1014
798
  conversations: Array<SearchLinkedInConversationsConversation>;
1015
799
  /**
1016
800
  * Cursor for fetching next page
@@ -1028,7 +812,7 @@ export type SearchLinkedInConversationsResponse = {
1028
812
 
1029
813
  export type FindLinkedInConversationRequest = {
1030
814
  /**
1031
- * Profile URL or URN (e.g. 'https://linkedin.com/in/marie-sandre' or 'urn:li:fsd_profile:ACoAA...'). Direct O(1) conversation lookup via LinkedIn's compose API — no search, no inbox scan. 0 credits.
815
+ * Accepts full profile URLs, vanity names (e.g. marie-sandre), or profile URNs. Direct O(1) conversation lookup via LinkedIn's compose API — no search, no inbox scan. 0 credits.
1032
816
  */
1033
817
  profile: string;
1034
818
  /**
@@ -1050,6 +834,8 @@ export type FindLinkedInConversationSender = {
1050
834
  profileUrl: string | null;
1051
835
  headline: string | null;
1052
836
  profilePicture: string | null;
837
+ publicIdentifier: string | null;
838
+ profileUrn: string | null;
1053
839
  };
1054
840
 
1055
841
  export const FindLinkedInConversationType = {
@@ -1076,26 +862,122 @@ export type FindLinkedInConversationAttachment = {
1076
862
  fileUrl?: string | undefined;
1077
863
  };
1078
864
 
1079
- export type FindLinkedInConversationMessage = {
1080
- messageUrn: string;
1081
- text: string | null;
1082
- deliveredAt: number;
1083
- senderProfileUrn: string;
1084
- sender: FindLinkedInConversationSender;
1085
- attachments: Array<FindLinkedInConversationAttachment>;
865
+ export type FindLinkedInConversationMessage = {
866
+ messageUrn: string;
867
+ text: string | null;
868
+ deliveredAt: number;
869
+ senderProfileUrn: string;
870
+ sender: FindLinkedInConversationSender;
871
+ attachments: Array<FindLinkedInConversationAttachment>;
872
+ };
873
+
874
+ /**
875
+ * Conversation found (or not)
876
+ */
877
+ export type FindLinkedInConversationResponse = {
878
+ success: true;
879
+ found: boolean;
880
+ /**
881
+ * Lightweight conversation reference (O(1) lookup returns URN only, not full details).
882
+ */
883
+ conversation: FindLinkedInConversationConversation | null;
884
+ messages: Array<FindLinkedInConversationMessage> | null;
885
+ /**
886
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
887
+ */
888
+ creditsUsed: number;
889
+ /**
890
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
891
+ */
892
+ retryAfter: number;
893
+ };
894
+
895
+ export type ArchiveConversationRequest = {
896
+ /**
897
+ * Full conversation URN
898
+ */
899
+ conversationUrn: string;
900
+ };
901
+
902
+ /**
903
+ * Conversation archived
904
+ */
905
+ export type ArchiveConversationResponse = {
906
+ success: true;
907
+ /**
908
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
909
+ */
910
+ creditsUsed: number;
911
+ /**
912
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
913
+ */
914
+ retryAfter: number;
915
+ };
916
+
917
+ export type UnreactToMessageRequest = {
918
+ /**
919
+ * Full message URN (e.g. 'urn:li:msg_message:(urn:li:fsd_profile:ACoAAXXX,2-MTcw...)')
920
+ */
921
+ messageUrn: string;
922
+ /**
923
+ * Emoji character to react with (e.g. '👍', '❤️', '😂')
924
+ */
925
+ emoji: string;
926
+ /**
927
+ * Conversation URN (required for the old messaging API fallback)
928
+ */
929
+ conversationUrn: string;
930
+ };
931
+
932
+ /**
933
+ * Reaction removed
934
+ */
935
+ export type UnreactToMessageResponse = {
936
+ success: true;
937
+ /**
938
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
939
+ */
940
+ creditsUsed: number;
941
+ /**
942
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
943
+ */
944
+ retryAfter: number;
945
+ };
946
+
947
+ export type MarkConversationSeenRequest = {
948
+ /**
949
+ * Full conversation URN (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
950
+ */
951
+ conversationUrn: string;
952
+ };
953
+
954
+ /**
955
+ * Conversation marked as read
956
+ */
957
+ export type MarkConversationSeenResponse = {
958
+ success: true;
959
+ /**
960
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
961
+ */
962
+ creditsUsed: number;
963
+ /**
964
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
965
+ */
966
+ retryAfter: number;
967
+ };
968
+
969
+ export type StarConversationRequest = {
970
+ /**
971
+ * Full conversation URN
972
+ */
973
+ conversationUrn: string;
1086
974
  };
1087
975
 
1088
976
  /**
1089
- * Conversation found (or not)
977
+ * Conversation starred
1090
978
  */
1091
- export type FindLinkedInConversationResponse = {
1092
- success: boolean;
1093
- found: boolean;
1094
- /**
1095
- * Lightweight conversation reference (O(1) lookup returns URN only, not full details).
1096
- */
1097
- conversation: FindLinkedInConversationConversation | null;
1098
- messages: Array<FindLinkedInConversationMessage> | null;
979
+ export type StarConversationResponse = {
980
+ success: true;
1099
981
  /**
1100
982
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1101
983
  */
@@ -1106,68 +988,95 @@ export type FindLinkedInConversationResponse = {
1106
988
  retryAfter: number;
1107
989
  };
1108
990
 
1109
- export type GetConversationMessagesRequest = {
991
+ export type UnstarConversationRequest = {
1110
992
  /**
1111
- * Full conversation URN as returned by /chats/linkedin (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
993
+ * Full conversation URN
1112
994
  */
1113
995
  conversationUrn: string;
996
+ };
997
+
998
+ /**
999
+ * Conversation unstarred
1000
+ */
1001
+ export type UnstarConversationResponse = {
1002
+ success: true;
1114
1003
  /**
1115
- * Timestamp (ms) of the oldest message from previous page pass this to load older messages
1004
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1116
1005
  */
1117
- deliveredAt?: number | undefined;
1006
+ creditsUsed: number;
1007
+ /**
1008
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1009
+ */
1010
+ retryAfter: number;
1118
1011
  };
1119
1012
 
1120
- export type GetConversationMessagesSender = {
1013
+ export type ListStarredConversationsRequest = {
1014
+ /**
1015
+ * Pagination cursor from a previous response
1016
+ */
1017
+ nextCursor?: string | undefined;
1018
+ };
1019
+
1020
+ export type ListStarredConversationsParticipant = {
1021
+ profileUrn: string;
1121
1022
  firstName: string;
1122
1023
  lastName: string;
1123
1024
  profileUrl: string | null;
1124
1025
  headline: string | null;
1125
1026
  profilePicture: string | null;
1027
+ publicIdentifier: string | null;
1126
1028
  };
1127
1029
 
1128
- export const GetConversationMessagesType = {
1129
- Audio: "audio",
1130
- SharedPost: "shared_post",
1131
- RepliedMessage: "replied_message",
1132
- Image: "image",
1133
- File: "file",
1134
- Unknown: "unknown",
1135
- } as const;
1136
- export type GetConversationMessagesType = OpenEnum<
1137
- typeof GetConversationMessagesType
1138
- >;
1139
-
1140
- export type GetConversationMessagesAttachment = {
1141
- type: GetConversationMessagesType;
1142
- audioUrl?: string | undefined;
1143
- audioDuration?: number | undefined;
1144
- hostUrn?: string | undefined;
1145
- repliedText?: string | undefined;
1146
- repliedSenderName?: string | undefined;
1147
- imageUrl?: string | undefined;
1148
- fileName?: string | undefined;
1149
- fileUrl?: string | undefined;
1150
- };
1151
-
1152
- export type GetConversationMessagesMessage = {
1153
- messageUrn: string;
1030
+ export type ListStarredConversationsLastMessage = {
1154
1031
  text: string | null;
1155
1032
  deliveredAt: number;
1156
1033
  senderProfileUrn: string;
1157
- sender: GetConversationMessagesSender;
1158
- attachments: Array<GetConversationMessagesAttachment>;
1034
+ };
1035
+
1036
+ export type ListStarredConversationsConversation = {
1037
+ conversationUrn: string;
1038
+ conversationUrl: string;
1039
+ lastActivityAt: number;
1040
+ createdAt: number;
1041
+ read: boolean;
1042
+ unreadCount: number;
1043
+ groupChat: boolean;
1044
+ participants: Array<ListStarredConversationsParticipant>;
1045
+ lastMessage: ListStarredConversationsLastMessage | null;
1159
1046
  };
1160
1047
 
1161
1048
  /**
1162
- * Conversation messages
1049
+ * Starred conversations
1163
1050
  */
1164
- export type GetConversationMessagesResponse = {
1165
- success: boolean;
1166
- messages: Array<GetConversationMessagesMessage>;
1051
+ export type ListStarredConversationsResponse = {
1052
+ success: true;
1053
+ conversations: Array<ListStarredConversationsConversation>;
1167
1054
  /**
1168
- * deliveredAt timestamp (ms) of the oldest message — pass as 'deliveredAt' to load older messages. Null when no more messages.
1055
+ * Cursor for fetching next page
1169
1056
  */
1170
- prevCursor: number | null;
1057
+ nextCursor: string | null;
1058
+ /**
1059
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1060
+ */
1061
+ creditsUsed: number;
1062
+ /**
1063
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1064
+ */
1065
+ retryAfter: number;
1066
+ };
1067
+
1068
+ export type UnarchiveConversationRequest = {
1069
+ /**
1070
+ * Full conversation URN
1071
+ */
1072
+ conversationUrn: string;
1073
+ };
1074
+
1075
+ /**
1076
+ * Conversation unarchived
1077
+ */
1078
+ export type UnarchiveConversationResponse = {
1079
+ success: true;
1171
1080
  /**
1172
1081
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1173
1082
  */
@@ -1244,7 +1153,7 @@ export type GetCampaignStatusProfile = {
1244
1153
  * Per-profile action completion status
1245
1154
  */
1246
1155
  export type GetCampaignStatusResponse = {
1247
- success: boolean;
1156
+ success: true;
1248
1157
  profiles: Array<GetCampaignStatusProfile>;
1249
1158
  /**
1250
1159
  * Credits consumed by this call (always 0 for campaign queries).
@@ -1300,7 +1209,7 @@ export type Synced = {
1300
1209
  * Actions marked as completed
1301
1210
  */
1302
1211
  export type SyncCampaignActionsResponse = {
1303
- success: boolean;
1212
+ success: true;
1304
1213
  synced: Array<Synced>;
1305
1214
  /**
1306
1215
  * Credits consumed by this call (always 0 for campaign queries).
@@ -1326,7 +1235,7 @@ export type GetCampaignStatsRequest = {
1326
1235
  * Aggregate campaign statistics
1327
1236
  */
1328
1237
  export type GetCampaignStatsResponse = {
1329
- success: boolean;
1238
+ success: true;
1330
1239
  /**
1331
1240
  * Per-action-type counts (e.g. message: 45, reply: 120)
1332
1241
  */
@@ -1346,1263 +1255,1131 @@ export type GetCampaignStatsResponse = {
1346
1255
  };
1347
1256
 
1348
1257
  /** @internal */
1349
- export type ReplyToLinkedInCommentRequest$Outbound = {
1350
- commentUrn: string;
1351
- message: string;
1352
- campaignSlug?: string | undefined;
1353
- actionSlug?: string | undefined;
1354
- };
1355
-
1356
- /** @internal */
1357
- export const ReplyToLinkedInCommentRequest$outboundSchema: z.ZodMiniType<
1358
- ReplyToLinkedInCommentRequest$Outbound,
1359
- ReplyToLinkedInCommentRequest
1360
- > = z.object({
1361
- commentUrn: z.string(),
1362
- message: z.string(),
1363
- campaignSlug: z.optional(z.string()),
1364
- actionSlug: z.optional(z.string()),
1365
- });
1366
-
1367
- export function replyToLinkedInCommentRequestToJSON(
1368
- replyToLinkedInCommentRequest: ReplyToLinkedInCommentRequest,
1369
- ): string {
1370
- return JSON.stringify(
1371
- ReplyToLinkedInCommentRequest$outboundSchema.parse(
1372
- replyToLinkedInCommentRequest,
1373
- ),
1374
- );
1375
- }
1376
-
1377
- /** @internal */
1378
- export const ReplyToLinkedInCommentResponse$inboundSchema: z.ZodMiniType<
1379
- ReplyToLinkedInCommentResponse,
1380
- unknown
1381
- > = z.object({
1382
- success: types.boolean(),
1383
- replyUrn: types.optional(types.string()),
1384
- duplicate: types.optional(types.boolean()),
1385
- creditsUsed: types.number(),
1386
- retryAfter: types.number(),
1387
- });
1258
+ export const Scraping$inboundSchema: z.ZodMiniType<Scraping, unknown> = z
1259
+ .object({
1260
+ daily: ScrapingDaily$inboundSchema,
1261
+ weekly: types.nullable(ScrapingWeekly$inboundSchema),
1262
+ minIntervalSeconds: types.number(),
1263
+ nextResetDaily: types.date(),
1264
+ nextResetWeekly: types.nullable(types.date()),
1265
+ });
1388
1266
 
1389
- export function replyToLinkedInCommentResponseFromJSON(
1267
+ export function scrapingFromJSON(
1390
1268
  jsonString: string,
1391
- ): SafeParseResult<ReplyToLinkedInCommentResponse, SDKValidationError> {
1269
+ ): SafeParseResult<Scraping, SDKValidationError> {
1392
1270
  return safeParse(
1393
1271
  jsonString,
1394
- (x) => ReplyToLinkedInCommentResponse$inboundSchema.parse(JSON.parse(x)),
1395
- `Failed to parse 'ReplyToLinkedInCommentResponse' from JSON`,
1396
- );
1397
- }
1398
-
1399
- /** @internal */
1400
- export const ReactionType$outboundSchema: z.ZodMiniEnum<typeof ReactionType> = z
1401
- .enum(ReactionType);
1402
-
1403
- /** @internal */
1404
- export type LikeLinkedInCommentRequest$Outbound = {
1405
- commentUrn: string;
1406
- reactionType: string;
1407
- campaignSlug?: string | undefined;
1408
- actionSlug?: string | undefined;
1409
- };
1410
-
1411
- /** @internal */
1412
- export const LikeLinkedInCommentRequest$outboundSchema: z.ZodMiniType<
1413
- LikeLinkedInCommentRequest$Outbound,
1414
- LikeLinkedInCommentRequest
1415
- > = z.object({
1416
- commentUrn: z.string(),
1417
- reactionType: z._default(ReactionType$outboundSchema, "LIKE"),
1418
- campaignSlug: z.optional(z.string()),
1419
- actionSlug: z.optional(z.string()),
1420
- });
1421
-
1422
- export function likeLinkedInCommentRequestToJSON(
1423
- likeLinkedInCommentRequest: LikeLinkedInCommentRequest,
1424
- ): string {
1425
- return JSON.stringify(
1426
- LikeLinkedInCommentRequest$outboundSchema.parse(likeLinkedInCommentRequest),
1272
+ (x) => Scraping$inboundSchema.parse(JSON.parse(x)),
1273
+ `Failed to parse 'Scraping' from JSON`,
1427
1274
  );
1428
1275
  }
1429
1276
 
1430
1277
  /** @internal */
1431
- export const LikeLinkedInCommentResponse$inboundSchema: z.ZodMiniType<
1432
- LikeLinkedInCommentResponse,
1433
- unknown
1434
- > = z.object({
1435
- success: types.boolean(),
1436
- resourceKey: types.optional(types.string()),
1437
- duplicate: types.optional(types.boolean()),
1438
- creditsUsed: types.number(),
1439
- retryAfter: types.number(),
1440
- });
1278
+ export const Limits$inboundSchema: z.ZodMiniType<Limits, unknown> = z.pipe(
1279
+ z.object({
1280
+ connection_request: ConnectionRequest$inboundSchema,
1281
+ message: GetMyLimitsMessage$inboundSchema,
1282
+ profile_visit: ProfileVisit$inboundSchema,
1283
+ scraping: z.lazy(() => Scraping$inboundSchema),
1284
+ }),
1285
+ z.transform((v) => {
1286
+ return remap$(v, {
1287
+ "connection_request": "connectionRequest",
1288
+ "profile_visit": "profileVisit",
1289
+ });
1290
+ }),
1291
+ );
1441
1292
 
1442
- export function likeLinkedInCommentResponseFromJSON(
1293
+ export function limitsFromJSON(
1443
1294
  jsonString: string,
1444
- ): SafeParseResult<LikeLinkedInCommentResponse, SDKValidationError> {
1295
+ ): SafeParseResult<Limits, SDKValidationError> {
1445
1296
  return safeParse(
1446
1297
  jsonString,
1447
- (x) => LikeLinkedInCommentResponse$inboundSchema.parse(JSON.parse(x)),
1448
- `Failed to parse 'LikeLinkedInCommentResponse' from JSON`,
1449
- );
1450
- }
1451
-
1452
- /** @internal */
1453
- export const Mode$outboundSchema: z.ZodMiniEnum<typeof Mode> = z.enum(Mode);
1454
-
1455
- /** @internal */
1456
- export const Visibility$outboundSchema: z.ZodMiniEnum<typeof Visibility> = z
1457
- .enum(Visibility);
1458
-
1459
- /** @internal */
1460
- export type Mention$Outbound = {
1461
- profileUrn: string;
1462
- start: number;
1463
- length: number;
1464
- };
1465
-
1466
- /** @internal */
1467
- export const Mention$outboundSchema: z.ZodMiniType<Mention$Outbound, Mention> =
1468
- z.object({
1469
- profileUrn: z.string(),
1470
- start: z.int(),
1471
- length: z.int(),
1472
- });
1473
-
1474
- export function mentionToJSON(mention: Mention): string {
1475
- return JSON.stringify(Mention$outboundSchema.parse(mention));
1476
- }
1477
-
1478
- /** @internal */
1479
- export type PublishLinkedInPostRequest$Outbound = {
1480
- text: string;
1481
- mode: string;
1482
- scheduledAt?: number | undefined;
1483
- imageUrl?: string | undefined;
1484
- visibility: string;
1485
- mentions?: Array<Mention$Outbound> | undefined;
1486
- campaignSlug?: string | undefined;
1487
- actionSlug?: string | undefined;
1488
- };
1489
-
1490
- /** @internal */
1491
- export const PublishLinkedInPostRequest$outboundSchema: z.ZodMiniType<
1492
- PublishLinkedInPostRequest$Outbound,
1493
- PublishLinkedInPostRequest
1494
- > = z.object({
1495
- text: z.string(),
1496
- mode: Mode$outboundSchema,
1497
- scheduledAt: z.optional(z.int()),
1498
- imageUrl: z.optional(z.string()),
1499
- visibility: z._default(Visibility$outboundSchema, "ANYONE"),
1500
- mentions: z.optional(z.array(z.lazy(() => Mention$outboundSchema))),
1501
- campaignSlug: z.optional(z.string()),
1502
- actionSlug: z.optional(z.string()),
1503
- });
1504
-
1505
- export function publishLinkedInPostRequestToJSON(
1506
- publishLinkedInPostRequest: PublishLinkedInPostRequest,
1507
- ): string {
1508
- return JSON.stringify(
1509
- PublishLinkedInPostRequest$outboundSchema.parse(publishLinkedInPostRequest),
1298
+ (x) => Limits$inboundSchema.parse(JSON.parse(x)),
1299
+ `Failed to parse 'Limits' from JSON`,
1510
1300
  );
1511
1301
  }
1512
1302
 
1513
1303
  /** @internal */
1514
- export const PublishLinkedInPostResponse$inboundSchema: z.ZodMiniType<
1515
- PublishLinkedInPostResponse,
1304
+ export const GetMyLimitsResponse$inboundSchema: z.ZodMiniType<
1305
+ GetMyLimitsResponse,
1516
1306
  unknown
1517
1307
  > = z.object({
1518
- success: types.boolean(),
1519
- shareUrn: types.string(),
1520
- activityUrn: types.nullable(types.string()),
1521
- duplicate: types.optional(types.boolean()),
1308
+ success: types.literal(true),
1309
+ multiplier: types.number(),
1310
+ limits: z.lazy(() => Limits$inboundSchema),
1522
1311
  creditsUsed: types.number(),
1523
1312
  retryAfter: types.number(),
1524
1313
  });
1525
1314
 
1526
- export function publishLinkedInPostResponseFromJSON(
1315
+ export function getMyLimitsResponseFromJSON(
1527
1316
  jsonString: string,
1528
- ): SafeParseResult<PublishLinkedInPostResponse, SDKValidationError> {
1317
+ ): SafeParseResult<GetMyLimitsResponse, SDKValidationError> {
1529
1318
  return safeParse(
1530
1319
  jsonString,
1531
- (x) => PublishLinkedInPostResponse$inboundSchema.parse(JSON.parse(x)),
1532
- `Failed to parse 'PublishLinkedInPostResponse' from JSON`,
1320
+ (x) => GetMyLimitsResponse$inboundSchema.parse(JSON.parse(x)),
1321
+ `Failed to parse 'GetMyLimitsResponse' from JSON`,
1533
1322
  );
1534
1323
  }
1535
1324
 
1536
1325
  /** @internal */
1537
- export const GetMyLinkedInProfilePositionStartDate$inboundSchema: z.ZodMiniType<
1538
- GetMyLinkedInProfilePositionStartDate,
1539
- unknown
1540
- > = z.object({
1541
- month: types.nullable(types.number()),
1542
- year: types.number(),
1326
+ export const Credits$inboundSchema: z.ZodMiniType<Credits, unknown> = z.object({
1327
+ current: types.number(),
1328
+ limit: types.nullable(types.number()),
1329
+ remaining: types.nullable(types.number()),
1330
+ percentage: types.number(),
1331
+ isUnlimited: types.boolean(),
1543
1332
  });
1544
1333
 
1545
- export function getMyLinkedInProfilePositionStartDateFromJSON(
1334
+ export function creditsFromJSON(
1546
1335
  jsonString: string,
1547
- ): SafeParseResult<GetMyLinkedInProfilePositionStartDate, SDKValidationError> {
1336
+ ): SafeParseResult<Credits, SDKValidationError> {
1548
1337
  return safeParse(
1549
1338
  jsonString,
1550
- (x) =>
1551
- GetMyLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)),
1552
- `Failed to parse 'GetMyLinkedInProfilePositionStartDate' from JSON`,
1339
+ (x) => Credits$inboundSchema.parse(JSON.parse(x)),
1340
+ `Failed to parse 'Credits' from JSON`,
1553
1341
  );
1554
1342
  }
1555
1343
 
1556
1344
  /** @internal */
1557
- export const GetMyLinkedInProfilePositionEndDate$inboundSchema: z.ZodMiniType<
1558
- GetMyLinkedInProfilePositionEndDate,
1345
+ export const GetMyCreditsResponse$inboundSchema: z.ZodMiniType<
1346
+ GetMyCreditsResponse,
1559
1347
  unknown
1560
1348
  > = z.object({
1561
- month: types.nullable(types.number()),
1562
- year: types.number(),
1349
+ success: types.literal(true),
1350
+ credits: z.lazy(() => Credits$inboundSchema),
1351
+ creditsUsed: types.number(),
1352
+ retryAfter: types.number(),
1563
1353
  });
1564
1354
 
1565
- export function getMyLinkedInProfilePositionEndDateFromJSON(
1355
+ export function getMyCreditsResponseFromJSON(
1566
1356
  jsonString: string,
1567
- ): SafeParseResult<GetMyLinkedInProfilePositionEndDate, SDKValidationError> {
1357
+ ): SafeParseResult<GetMyCreditsResponse, SDKValidationError> {
1568
1358
  return safeParse(
1569
1359
  jsonString,
1570
- (x) =>
1571
- GetMyLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)),
1572
- `Failed to parse 'GetMyLinkedInProfilePositionEndDate' from JSON`,
1360
+ (x) => GetMyCreditsResponse$inboundSchema.parse(JSON.parse(x)),
1361
+ `Failed to parse 'GetMyCreditsResponse' from JSON`,
1573
1362
  );
1574
1363
  }
1575
1364
 
1576
1365
  /** @internal */
1577
- export const GetMyLinkedInProfilePosition$inboundSchema: z.ZodMiniType<
1578
- GetMyLinkedInProfilePosition,
1579
- unknown
1580
- > = z.object({
1581
- companyName: types.nullable(types.string()),
1582
- title: types.nullable(types.string()),
1583
- companyUrl: types.nullable(types.string()),
1584
- companyLogo: types.nullable(types.string()),
1585
- startDate: types.nullable(
1586
- z.lazy(() => GetMyLinkedInProfilePositionStartDate$inboundSchema),
1587
- ),
1588
- endDate: types.nullable(
1589
- z.lazy(() => GetMyLinkedInProfilePositionEndDate$inboundSchema),
1590
- ),
1591
- isCurrent: types.boolean(),
1592
- });
1593
-
1594
- export function getMyLinkedInProfilePositionFromJSON(
1595
- jsonString: string,
1596
- ): SafeParseResult<GetMyLinkedInProfilePosition, SDKValidationError> {
1597
- return safeParse(
1598
- jsonString,
1599
- (x) => GetMyLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)),
1600
- `Failed to parse 'GetMyLinkedInProfilePosition' from JSON`,
1601
- );
1602
- }
1366
+ export type GetLinkedInProfileViewsRequest$Outbound = {};
1603
1367
 
1604
1368
  /** @internal */
1605
- export const GetMyLinkedInProfileEducationStartDate$inboundSchema:
1606
- z.ZodMiniType<GetMyLinkedInProfileEducationStartDate, unknown> = z.object({
1607
- month: types.nullable(types.number()),
1608
- year: types.number(),
1609
- });
1369
+ export const GetLinkedInProfileViewsRequest$outboundSchema: z.ZodMiniType<
1370
+ GetLinkedInProfileViewsRequest$Outbound,
1371
+ GetLinkedInProfileViewsRequest
1372
+ > = z.object({});
1610
1373
 
1611
- export function getMyLinkedInProfileEducationStartDateFromJSON(
1612
- jsonString: string,
1613
- ): SafeParseResult<GetMyLinkedInProfileEducationStartDate, SDKValidationError> {
1614
- return safeParse(
1615
- jsonString,
1616
- (x) =>
1617
- GetMyLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)),
1618
- `Failed to parse 'GetMyLinkedInProfileEducationStartDate' from JSON`,
1374
+ export function getLinkedInProfileViewsRequestToJSON(
1375
+ getLinkedInProfileViewsRequest: GetLinkedInProfileViewsRequest,
1376
+ ): string {
1377
+ return JSON.stringify(
1378
+ GetLinkedInProfileViewsRequest$outboundSchema.parse(
1379
+ getLinkedInProfileViewsRequest,
1380
+ ),
1619
1381
  );
1620
1382
  }
1621
1383
 
1622
1384
  /** @internal */
1623
- export const GetMyLinkedInProfileEducationEndDate$inboundSchema: z.ZodMiniType<
1624
- GetMyLinkedInProfileEducationEndDate,
1385
+ export const GetLinkedInProfileViewsResponse$inboundSchema: z.ZodMiniType<
1386
+ GetLinkedInProfileViewsResponse,
1625
1387
  unknown
1626
1388
  > = z.object({
1627
- month: types.nullable(types.number()),
1628
- year: types.number(),
1389
+ success: types.literal(true),
1390
+ views: z.array(z.any()),
1391
+ total: types.number(),
1392
+ creditsUsed: types.number(),
1393
+ retryAfter: types.number(),
1629
1394
  });
1630
1395
 
1631
- export function getMyLinkedInProfileEducationEndDateFromJSON(
1396
+ export function getLinkedInProfileViewsResponseFromJSON(
1632
1397
  jsonString: string,
1633
- ): SafeParseResult<GetMyLinkedInProfileEducationEndDate, SDKValidationError> {
1398
+ ): SafeParseResult<GetLinkedInProfileViewsResponse, SDKValidationError> {
1634
1399
  return safeParse(
1635
1400
  jsonString,
1636
- (x) =>
1637
- GetMyLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)),
1638
- `Failed to parse 'GetMyLinkedInProfileEducationEndDate' from JSON`,
1401
+ (x) => GetLinkedInProfileViewsResponse$inboundSchema.parse(JSON.parse(x)),
1402
+ `Failed to parse 'GetLinkedInProfileViewsResponse' from JSON`,
1639
1403
  );
1640
1404
  }
1641
1405
 
1642
1406
  /** @internal */
1643
- export const GetMyLinkedInProfileEducation$inboundSchema: z.ZodMiniType<
1644
- GetMyLinkedInProfileEducation,
1645
- unknown
1646
- > = z.object({
1647
- schoolName: types.nullable(types.string()),
1648
- degreeName: types.nullable(types.string()),
1649
- fieldOfStudy: types.nullable(types.string()),
1650
- schoolUrl: types.nullable(types.string()),
1651
- schoolLogo: types.nullable(types.string()),
1652
- startDate: types.nullable(
1653
- z.lazy(() => GetMyLinkedInProfileEducationStartDate$inboundSchema),
1654
- ),
1655
- endDate: types.nullable(
1656
- z.lazy(() => GetMyLinkedInProfileEducationEndDate$inboundSchema),
1657
- ),
1658
- });
1407
+ export type GetLinkedInSearchAppearancesRequest$Outbound = {};
1659
1408
 
1660
- export function getMyLinkedInProfileEducationFromJSON(
1661
- jsonString: string,
1662
- ): SafeParseResult<GetMyLinkedInProfileEducation, SDKValidationError> {
1663
- return safeParse(
1664
- jsonString,
1665
- (x) => GetMyLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)),
1666
- `Failed to parse 'GetMyLinkedInProfileEducation' from JSON`,
1409
+ /** @internal */
1410
+ export const GetLinkedInSearchAppearancesRequest$outboundSchema: z.ZodMiniType<
1411
+ GetLinkedInSearchAppearancesRequest$Outbound,
1412
+ GetLinkedInSearchAppearancesRequest
1413
+ > = z.object({});
1414
+
1415
+ export function getLinkedInSearchAppearancesRequestToJSON(
1416
+ getLinkedInSearchAppearancesRequest: GetLinkedInSearchAppearancesRequest,
1417
+ ): string {
1418
+ return JSON.stringify(
1419
+ GetLinkedInSearchAppearancesRequest$outboundSchema.parse(
1420
+ getLinkedInSearchAppearancesRequest,
1421
+ ),
1667
1422
  );
1668
1423
  }
1669
1424
 
1670
1425
  /** @internal */
1671
- export const GetMyLinkedInProfileLocation$inboundSchema: z.ZodMiniType<
1672
- GetMyLinkedInProfileLocation,
1426
+ export const GetLinkedInSearchAppearancesResponse$inboundSchema: z.ZodMiniType<
1427
+ GetLinkedInSearchAppearancesResponse,
1673
1428
  unknown
1674
1429
  > = z.object({
1675
- countryCode: types.string(),
1676
- postalCode: types.optional(types.string()),
1430
+ success: types.literal(true),
1431
+ appearances: z.any(),
1432
+ creditsUsed: types.number(),
1433
+ retryAfter: types.number(),
1677
1434
  });
1678
1435
 
1679
- export function getMyLinkedInProfileLocationFromJSON(
1436
+ export function getLinkedInSearchAppearancesResponseFromJSON(
1680
1437
  jsonString: string,
1681
- ): SafeParseResult<GetMyLinkedInProfileLocation, SDKValidationError> {
1438
+ ): SafeParseResult<GetLinkedInSearchAppearancesResponse, SDKValidationError> {
1682
1439
  return safeParse(
1683
1440
  jsonString,
1684
- (x) => GetMyLinkedInProfileLocation$inboundSchema.parse(JSON.parse(x)),
1685
- `Failed to parse 'GetMyLinkedInProfileLocation' from JSON`,
1441
+ (x) =>
1442
+ GetLinkedInSearchAppearancesResponse$inboundSchema.parse(JSON.parse(x)),
1443
+ `Failed to parse 'GetLinkedInSearchAppearancesResponse' from JSON`,
1686
1444
  );
1687
1445
  }
1688
1446
 
1689
1447
  /** @internal */
1690
- export const GetMyLinkedInProfileType$inboundSchema: z.ZodMiniType<
1691
- GetMyLinkedInProfileType,
1692
- unknown
1693
- > = openEnums.inboundSchema(GetMyLinkedInProfileType);
1448
+ export type GetLinkedInPostAnalyticsRequest$Outbound = {
1449
+ postUrl: string;
1450
+ };
1694
1451
 
1695
1452
  /** @internal */
1696
- export const GetMyLinkedInProfileLastPost$inboundSchema: z.ZodMiniType<
1697
- GetMyLinkedInProfileLastPost,
1698
- unknown
1453
+ export const GetLinkedInPostAnalyticsRequest$outboundSchema: z.ZodMiniType<
1454
+ GetLinkedInPostAnalyticsRequest$Outbound,
1455
+ GetLinkedInPostAnalyticsRequest
1699
1456
  > = z.object({
1700
- postUrl: types.string(),
1701
- text: types.string(),
1702
- date: types.number(),
1703
- likesCount: types.number(),
1704
- commentsCount: types.number(),
1705
- sharesCount: types.number(),
1706
- postUrn: types.string(),
1707
- postId: types.string(),
1708
- type: GetMyLinkedInProfileType$inboundSchema,
1457
+ postUrl: z.string(),
1709
1458
  });
1710
1459
 
1711
- export function getMyLinkedInProfileLastPostFromJSON(
1712
- jsonString: string,
1713
- ): SafeParseResult<GetMyLinkedInProfileLastPost, SDKValidationError> {
1714
- return safeParse(
1715
- jsonString,
1716
- (x) => GetMyLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)),
1717
- `Failed to parse 'GetMyLinkedInProfileLastPost' from JSON`,
1460
+ export function getLinkedInPostAnalyticsRequestToJSON(
1461
+ getLinkedInPostAnalyticsRequest: GetLinkedInPostAnalyticsRequest,
1462
+ ): string {
1463
+ return JSON.stringify(
1464
+ GetLinkedInPostAnalyticsRequest$outboundSchema.parse(
1465
+ getLinkedInPostAnalyticsRequest,
1466
+ ),
1718
1467
  );
1719
1468
  }
1720
1469
 
1721
1470
  /** @internal */
1722
- export const GetMyLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
1723
- GetMyLinkedInProfileResponse,
1471
+ export const GetLinkedInPostAnalyticsResponse$inboundSchema: z.ZodMiniType<
1472
+ GetLinkedInPostAnalyticsResponse,
1724
1473
  unknown
1725
1474
  > = z.object({
1726
- success: types.boolean(),
1727
- linkedinProfileId: types.nullable(types.string()),
1728
- linkedinName: types.nullable(types.string()),
1729
- linkedinEmail: types.nullable(types.string()),
1730
- profileUrn: types.nullable(types.string()),
1731
- headline: types.nullable(types.string()),
1732
- profilePic: types.nullable(types.string()),
1733
- profileUrl: types.nullable(types.string()),
1734
- positions: types.optional(
1735
- z.array(z.lazy(() => GetMyLinkedInProfilePosition$inboundSchema)),
1736
- ),
1737
- educations: types.optional(
1738
- z.array(z.lazy(() => GetMyLinkedInProfileEducation$inboundSchema)),
1739
- ),
1740
- connectionsCount: types.nullable(types.number()),
1741
- location: types.nullable(
1742
- z.lazy(() => GetMyLinkedInProfileLocation$inboundSchema),
1743
- ),
1744
- isVerified: types.nullable(types.boolean()),
1745
- lastPosts: types.optional(
1746
- z.array(z.lazy(() => GetMyLinkedInProfileLastPost$inboundSchema)),
1747
- ),
1475
+ success: types.literal(true),
1476
+ analytics: z.any(),
1748
1477
  creditsUsed: types.number(),
1749
1478
  retryAfter: types.number(),
1750
1479
  });
1751
1480
 
1752
- export function getMyLinkedInProfileResponseFromJSON(
1481
+ export function getLinkedInPostAnalyticsResponseFromJSON(
1753
1482
  jsonString: string,
1754
- ): SafeParseResult<GetMyLinkedInProfileResponse, SDKValidationError> {
1483
+ ): SafeParseResult<GetLinkedInPostAnalyticsResponse, SDKValidationError> {
1755
1484
  return safeParse(
1756
1485
  jsonString,
1757
- (x) => GetMyLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)),
1758
- `Failed to parse 'GetMyLinkedInProfileResponse' from JSON`,
1486
+ (x) => GetLinkedInPostAnalyticsResponse$inboundSchema.parse(JSON.parse(x)),
1487
+ `Failed to parse 'GetLinkedInPostAnalyticsResponse' from JSON`,
1759
1488
  );
1760
1489
  }
1761
1490
 
1762
1491
  /** @internal */
1763
- export const RefreshMyLinkedInProfilePositionStartDate$inboundSchema:
1764
- z.ZodMiniType<RefreshMyLinkedInProfilePositionStartDate, unknown> = z.object({
1765
- month: types.nullable(types.number()),
1766
- year: types.number(),
1767
- });
1492
+ export type GetLinkedInFollowerAnalyticsRequest$Outbound = {};
1768
1493
 
1769
- export function refreshMyLinkedInProfilePositionStartDateFromJSON(
1770
- jsonString: string,
1771
- ): SafeParseResult<
1772
- RefreshMyLinkedInProfilePositionStartDate,
1773
- SDKValidationError
1774
- > {
1775
- return safeParse(
1776
- jsonString,
1777
- (x) =>
1778
- RefreshMyLinkedInProfilePositionStartDate$inboundSchema.parse(
1779
- JSON.parse(x),
1780
- ),
1781
- `Failed to parse 'RefreshMyLinkedInProfilePositionStartDate' from JSON`,
1494
+ /** @internal */
1495
+ export const GetLinkedInFollowerAnalyticsRequest$outboundSchema: z.ZodMiniType<
1496
+ GetLinkedInFollowerAnalyticsRequest$Outbound,
1497
+ GetLinkedInFollowerAnalyticsRequest
1498
+ > = z.object({});
1499
+
1500
+ export function getLinkedInFollowerAnalyticsRequestToJSON(
1501
+ getLinkedInFollowerAnalyticsRequest: GetLinkedInFollowerAnalyticsRequest,
1502
+ ): string {
1503
+ return JSON.stringify(
1504
+ GetLinkedInFollowerAnalyticsRequest$outboundSchema.parse(
1505
+ getLinkedInFollowerAnalyticsRequest,
1506
+ ),
1782
1507
  );
1783
1508
  }
1784
1509
 
1785
1510
  /** @internal */
1786
- export const RefreshMyLinkedInProfilePositionEndDate$inboundSchema:
1787
- z.ZodMiniType<RefreshMyLinkedInProfilePositionEndDate, unknown> = z.object({
1788
- month: types.nullable(types.number()),
1789
- year: types.number(),
1790
- });
1511
+ export const GetLinkedInFollowerAnalyticsResponse$inboundSchema: z.ZodMiniType<
1512
+ GetLinkedInFollowerAnalyticsResponse,
1513
+ unknown
1514
+ > = z.object({
1515
+ success: types.literal(true),
1516
+ analytics: z.any(),
1517
+ creditsUsed: types.number(),
1518
+ retryAfter: types.number(),
1519
+ });
1791
1520
 
1792
- export function refreshMyLinkedInProfilePositionEndDateFromJSON(
1521
+ export function getLinkedInFollowerAnalyticsResponseFromJSON(
1793
1522
  jsonString: string,
1794
- ): SafeParseResult<
1795
- RefreshMyLinkedInProfilePositionEndDate,
1796
- SDKValidationError
1797
- > {
1523
+ ): SafeParseResult<GetLinkedInFollowerAnalyticsResponse, SDKValidationError> {
1798
1524
  return safeParse(
1799
1525
  jsonString,
1800
1526
  (x) =>
1801
- RefreshMyLinkedInProfilePositionEndDate$inboundSchema.parse(
1802
- JSON.parse(x),
1803
- ),
1804
- `Failed to parse 'RefreshMyLinkedInProfilePositionEndDate' from JSON`,
1527
+ GetLinkedInFollowerAnalyticsResponse$inboundSchema.parse(JSON.parse(x)),
1528
+ `Failed to parse 'GetLinkedInFollowerAnalyticsResponse' from JSON`,
1805
1529
  );
1806
1530
  }
1807
1531
 
1808
1532
  /** @internal */
1809
- export const RefreshMyLinkedInProfilePosition$inboundSchema: z.ZodMiniType<
1810
- RefreshMyLinkedInProfilePosition,
1811
- unknown
1812
- > = z.object({
1813
- companyName: types.nullable(types.string()),
1814
- title: types.nullable(types.string()),
1815
- companyUrl: types.nullable(types.string()),
1816
- companyLogo: types.nullable(types.string()),
1817
- startDate: types.nullable(
1818
- z.lazy(() => RefreshMyLinkedInProfilePositionStartDate$inboundSchema),
1819
- ),
1820
- endDate: types.nullable(
1821
- z.lazy(() => RefreshMyLinkedInProfilePositionEndDate$inboundSchema),
1822
- ),
1823
- isCurrent: types.boolean(),
1533
+ export const Page$inboundSchema: z.ZodMiniType<Page, unknown> = z.object({
1534
+ id: types.string(),
1535
+ universalName: types.string(),
1536
+ name: types.string(),
1537
+ url: types.string(),
1538
+ logoUrl: types.nullable(types.string()),
1539
+ followerCount: types.nullable(types.number()),
1540
+ industry: types.nullable(types.string()),
1541
+ employeeCount: types.nullable(types.number()),
1542
+ adminRole: types.nullable(types.string()),
1824
1543
  });
1825
1544
 
1826
- export function refreshMyLinkedInProfilePositionFromJSON(
1545
+ export function pageFromJSON(
1827
1546
  jsonString: string,
1828
- ): SafeParseResult<RefreshMyLinkedInProfilePosition, SDKValidationError> {
1547
+ ): SafeParseResult<Page, SDKValidationError> {
1829
1548
  return safeParse(
1830
1549
  jsonString,
1831
- (x) => RefreshMyLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)),
1832
- `Failed to parse 'RefreshMyLinkedInProfilePosition' from JSON`,
1550
+ (x) => Page$inboundSchema.parse(JSON.parse(x)),
1551
+ `Failed to parse 'Page' from JSON`,
1833
1552
  );
1834
1553
  }
1835
1554
 
1836
1555
  /** @internal */
1837
- export const RefreshMyLinkedInProfileEducationStartDate$inboundSchema:
1838
- z.ZodMiniType<RefreshMyLinkedInProfileEducationStartDate, unknown> = z.object(
1839
- {
1840
- month: types.nullable(types.number()),
1841
- year: types.number(),
1842
- },
1843
- );
1556
+ export const ListLinkedInCompanyPagesResponse$inboundSchema: z.ZodMiniType<
1557
+ ListLinkedInCompanyPagesResponse,
1558
+ unknown
1559
+ > = z.object({
1560
+ success: types.literal(true),
1561
+ pages: z.array(z.lazy(() => Page$inboundSchema)),
1562
+ total: types.number(),
1563
+ creditsUsed: types.number(),
1564
+ retryAfter: types.number(),
1565
+ });
1844
1566
 
1845
- export function refreshMyLinkedInProfileEducationStartDateFromJSON(
1567
+ export function listLinkedInCompanyPagesResponseFromJSON(
1846
1568
  jsonString: string,
1847
- ): SafeParseResult<
1848
- RefreshMyLinkedInProfileEducationStartDate,
1849
- SDKValidationError
1850
- > {
1569
+ ): SafeParseResult<ListLinkedInCompanyPagesResponse, SDKValidationError> {
1851
1570
  return safeParse(
1852
1571
  jsonString,
1853
- (x) =>
1854
- RefreshMyLinkedInProfileEducationStartDate$inboundSchema.parse(
1855
- JSON.parse(x),
1856
- ),
1857
- `Failed to parse 'RefreshMyLinkedInProfileEducationStartDate' from JSON`,
1572
+ (x) => ListLinkedInCompanyPagesResponse$inboundSchema.parse(JSON.parse(x)),
1573
+ `Failed to parse 'ListLinkedInCompanyPagesResponse' from JSON`,
1858
1574
  );
1859
1575
  }
1860
1576
 
1861
1577
  /** @internal */
1862
- export const RefreshMyLinkedInProfileEducationEndDate$inboundSchema:
1863
- z.ZodMiniType<RefreshMyLinkedInProfileEducationEndDate, unknown> = z.object({
1864
- month: types.nullable(types.number()),
1865
- year: types.number(),
1866
- });
1578
+ export type GetCompanyPagePostsRequest$Outbound = {
1579
+ universalName: string;
1580
+ count: number;
1581
+ start: number;
1582
+ };
1867
1583
 
1868
- export function refreshMyLinkedInProfileEducationEndDateFromJSON(
1869
- jsonString: string,
1870
- ): SafeParseResult<
1871
- RefreshMyLinkedInProfileEducationEndDate,
1872
- SDKValidationError
1873
- > {
1874
- return safeParse(
1875
- jsonString,
1876
- (x) =>
1877
- RefreshMyLinkedInProfileEducationEndDate$inboundSchema.parse(
1878
- JSON.parse(x),
1879
- ),
1880
- `Failed to parse 'RefreshMyLinkedInProfileEducationEndDate' from JSON`,
1584
+ /** @internal */
1585
+ export const GetCompanyPagePostsRequest$outboundSchema: z.ZodMiniType<
1586
+ GetCompanyPagePostsRequest$Outbound,
1587
+ GetCompanyPagePostsRequest
1588
+ > = z.object({
1589
+ universalName: z.string(),
1590
+ count: z._default(z.int(), 10),
1591
+ start: z._default(z.int(), 0),
1592
+ });
1593
+
1594
+ export function getCompanyPagePostsRequestToJSON(
1595
+ getCompanyPagePostsRequest: GetCompanyPagePostsRequest,
1596
+ ): string {
1597
+ return JSON.stringify(
1598
+ GetCompanyPagePostsRequest$outboundSchema.parse(getCompanyPagePostsRequest),
1881
1599
  );
1882
1600
  }
1883
1601
 
1884
1602
  /** @internal */
1885
- export const RefreshMyLinkedInProfileEducation$inboundSchema: z.ZodMiniType<
1886
- RefreshMyLinkedInProfileEducation,
1603
+ export const GetCompanyPagePostsPost$inboundSchema: z.ZodMiniType<
1604
+ GetCompanyPagePostsPost,
1887
1605
  unknown
1888
1606
  > = z.object({
1889
- schoolName: types.nullable(types.string()),
1890
- degreeName: types.nullable(types.string()),
1891
- fieldOfStudy: types.nullable(types.string()),
1892
- schoolUrl: types.nullable(types.string()),
1893
- schoolLogo: types.nullable(types.string()),
1894
- startDate: types.nullable(
1895
- z.lazy(() => RefreshMyLinkedInProfileEducationStartDate$inboundSchema),
1896
- ),
1897
- endDate: types.nullable(
1898
- z.lazy(() => RefreshMyLinkedInProfileEducationEndDate$inboundSchema),
1899
- ),
1607
+ activityUrn: types.string(),
1608
+ postUrl: types.string(),
1609
+ text: types.nullable(types.string()),
1610
+ publishedAt: types.nullable(types.number()),
1611
+ numLikes: types.nullable(types.number()),
1612
+ numComments: types.nullable(types.number()),
1900
1613
  });
1901
1614
 
1902
- export function refreshMyLinkedInProfileEducationFromJSON(
1615
+ export function getCompanyPagePostsPostFromJSON(
1903
1616
  jsonString: string,
1904
- ): SafeParseResult<RefreshMyLinkedInProfileEducation, SDKValidationError> {
1617
+ ): SafeParseResult<GetCompanyPagePostsPost, SDKValidationError> {
1905
1618
  return safeParse(
1906
1619
  jsonString,
1907
- (x) => RefreshMyLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)),
1908
- `Failed to parse 'RefreshMyLinkedInProfileEducation' from JSON`,
1620
+ (x) => GetCompanyPagePostsPost$inboundSchema.parse(JSON.parse(x)),
1621
+ `Failed to parse 'GetCompanyPagePostsPost' from JSON`,
1909
1622
  );
1910
1623
  }
1911
1624
 
1912
1625
  /** @internal */
1913
- export const RefreshMyLinkedInProfileLocation$inboundSchema: z.ZodMiniType<
1914
- RefreshMyLinkedInProfileLocation,
1626
+ export const GetCompanyPagePostsResponse$inboundSchema: z.ZodMiniType<
1627
+ GetCompanyPagePostsResponse,
1915
1628
  unknown
1916
1629
  > = z.object({
1917
- countryCode: types.string(),
1918
- postalCode: types.optional(types.string()),
1630
+ success: types.literal(true),
1631
+ posts: z.array(z.lazy(() => GetCompanyPagePostsPost$inboundSchema)),
1632
+ total: types.number(),
1633
+ creditsUsed: types.number(),
1634
+ retryAfter: types.number(),
1919
1635
  });
1920
1636
 
1921
- export function refreshMyLinkedInProfileLocationFromJSON(
1637
+ export function getCompanyPagePostsResponseFromJSON(
1922
1638
  jsonString: string,
1923
- ): SafeParseResult<RefreshMyLinkedInProfileLocation, SDKValidationError> {
1639
+ ): SafeParseResult<GetCompanyPagePostsResponse, SDKValidationError> {
1924
1640
  return safeParse(
1925
1641
  jsonString,
1926
- (x) => RefreshMyLinkedInProfileLocation$inboundSchema.parse(JSON.parse(x)),
1927
- `Failed to parse 'RefreshMyLinkedInProfileLocation' from JSON`,
1642
+ (x) => GetCompanyPagePostsResponse$inboundSchema.parse(JSON.parse(x)),
1643
+ `Failed to parse 'GetCompanyPagePostsResponse' from JSON`,
1928
1644
  );
1929
1645
  }
1930
1646
 
1931
1647
  /** @internal */
1932
- export const RefreshMyLinkedInProfileType$inboundSchema: z.ZodMiniType<
1933
- RefreshMyLinkedInProfileType,
1934
- unknown
1935
- > = openEnums.inboundSchema(RefreshMyLinkedInProfileType);
1648
+ export type GetCompanyPagePermissionsRequest$Outbound = {
1649
+ universalName: string;
1650
+ };
1936
1651
 
1937
1652
  /** @internal */
1938
- export const RefreshMyLinkedInProfileLastPost$inboundSchema: z.ZodMiniType<
1939
- RefreshMyLinkedInProfileLastPost,
1940
- unknown
1653
+ export const GetCompanyPagePermissionsRequest$outboundSchema: z.ZodMiniType<
1654
+ GetCompanyPagePermissionsRequest$Outbound,
1655
+ GetCompanyPagePermissionsRequest
1941
1656
  > = z.object({
1942
- postUrl: types.string(),
1943
- text: types.string(),
1944
- date: types.number(),
1945
- likesCount: types.number(),
1946
- commentsCount: types.number(),
1947
- sharesCount: types.number(),
1948
- postUrn: types.string(),
1949
- postId: types.string(),
1950
- type: RefreshMyLinkedInProfileType$inboundSchema,
1657
+ universalName: z.string(),
1951
1658
  });
1952
1659
 
1953
- export function refreshMyLinkedInProfileLastPostFromJSON(
1660
+ export function getCompanyPagePermissionsRequestToJSON(
1661
+ getCompanyPagePermissionsRequest: GetCompanyPagePermissionsRequest,
1662
+ ): string {
1663
+ return JSON.stringify(
1664
+ GetCompanyPagePermissionsRequest$outboundSchema.parse(
1665
+ getCompanyPagePermissionsRequest,
1666
+ ),
1667
+ );
1668
+ }
1669
+
1670
+ /** @internal */
1671
+ export const Permissions$inboundSchema: z.ZodMiniType<Permissions, unknown> = z
1672
+ .object({
1673
+ role: types.nullable(types.string()),
1674
+ canCreateOrganicShare: types.boolean(),
1675
+ canCreateComment: types.boolean(),
1676
+ canCreateReaction: types.boolean(),
1677
+ canDeleteShare: types.boolean(),
1678
+ canPinShare: types.boolean(),
1679
+ canSendMessages: types.boolean(),
1680
+ canReadMessages: types.boolean(),
1681
+ canReadAdminDashboard: types.boolean(),
1682
+ canReadOrganizationUpdateAnalytics: types.boolean(),
1683
+ canReadOrganizationVisitorAnalytics: types.boolean(),
1684
+ canReadOrganizationFollowerAnalytics: types.boolean(),
1685
+ canReadOrganizationSearchAppearanceAnalytics: types.boolean(),
1686
+ canUpdateOrganizationProfile: types.boolean(),
1687
+ canEditAdministrators: types.boolean(),
1688
+ canDeactivateOrganization: types.boolean(),
1689
+ canEditEvents: types.boolean(),
1690
+ canReadEvents: types.boolean(),
1691
+ canSponsorShare: types.boolean(),
1692
+ canManageCareerPages: types.boolean(),
1693
+ canManageMessagingAccess: types.boolean(),
1694
+ canNotifyEmployees: types.boolean(),
1695
+ canExportLeads: types.boolean(),
1696
+ });
1697
+
1698
+ export function permissionsFromJSON(
1954
1699
  jsonString: string,
1955
- ): SafeParseResult<RefreshMyLinkedInProfileLastPost, SDKValidationError> {
1700
+ ): SafeParseResult<Permissions, SDKValidationError> {
1956
1701
  return safeParse(
1957
1702
  jsonString,
1958
- (x) => RefreshMyLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)),
1959
- `Failed to parse 'RefreshMyLinkedInProfileLastPost' from JSON`,
1703
+ (x) => Permissions$inboundSchema.parse(JSON.parse(x)),
1704
+ `Failed to parse 'Permissions' from JSON`,
1960
1705
  );
1961
1706
  }
1962
1707
 
1963
1708
  /** @internal */
1964
- export const RefreshMyLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
1965
- RefreshMyLinkedInProfileResponse,
1709
+ export const GetCompanyPagePermissionsResponse$inboundSchema: z.ZodMiniType<
1710
+ GetCompanyPagePermissionsResponse,
1966
1711
  unknown
1967
1712
  > = z.object({
1968
- success: types.boolean(),
1969
- linkedinProfileId: types.nullable(types.string()),
1970
- linkedinName: types.nullable(types.string()),
1971
- linkedinEmail: types.nullable(types.string()),
1972
- profileUrn: types.nullable(types.string()),
1973
- headline: types.nullable(types.string()),
1974
- profilePic: types.nullable(types.string()),
1975
- profileUrl: types.nullable(types.string()),
1976
- positions: types.optional(
1977
- z.array(z.lazy(() => RefreshMyLinkedInProfilePosition$inboundSchema)),
1978
- ),
1979
- educations: types.optional(
1980
- z.array(z.lazy(() => RefreshMyLinkedInProfileEducation$inboundSchema)),
1981
- ),
1982
- connectionsCount: types.nullable(types.number()),
1983
- location: types.nullable(
1984
- z.lazy(() => RefreshMyLinkedInProfileLocation$inboundSchema),
1985
- ),
1986
- isVerified: types.nullable(types.boolean()),
1987
- lastPosts: types.optional(
1988
- z.array(z.lazy(() => RefreshMyLinkedInProfileLastPost$inboundSchema)),
1989
- ),
1990
- refreshed: types.boolean(),
1713
+ success: types.literal(true),
1714
+ universalName: types.string(),
1715
+ permissions: z.lazy(() => Permissions$inboundSchema),
1991
1716
  creditsUsed: types.number(),
1992
1717
  retryAfter: types.number(),
1993
1718
  });
1994
1719
 
1995
- export function refreshMyLinkedInProfileResponseFromJSON(
1720
+ export function getCompanyPagePermissionsResponseFromJSON(
1996
1721
  jsonString: string,
1997
- ): SafeParseResult<RefreshMyLinkedInProfileResponse, SDKValidationError> {
1722
+ ): SafeParseResult<GetCompanyPagePermissionsResponse, SDKValidationError> {
1998
1723
  return safeParse(
1999
1724
  jsonString,
2000
- (x) => RefreshMyLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)),
2001
- `Failed to parse 'RefreshMyLinkedInProfileResponse' from JSON`,
1725
+ (x) => GetCompanyPagePermissionsResponse$inboundSchema.parse(JSON.parse(x)),
1726
+ `Failed to parse 'GetCompanyPagePermissionsResponse' from JSON`,
2002
1727
  );
2003
1728
  }
2004
1729
 
2005
1730
  /** @internal */
2006
- export type GetMyLinkedInPostsRequest$Outbound = {
2007
- count?: number | undefined;
2008
- start?: number | undefined;
2009
- paginationToken?: string | undefined;
1731
+ export type GetCompanyPageAnalyticsRequest$Outbound = {
1732
+ companyId: string;
2010
1733
  };
2011
1734
 
2012
1735
  /** @internal */
2013
- export const GetMyLinkedInPostsRequest$outboundSchema: z.ZodMiniType<
2014
- GetMyLinkedInPostsRequest$Outbound,
2015
- GetMyLinkedInPostsRequest
1736
+ export const GetCompanyPageAnalyticsRequest$outboundSchema: z.ZodMiniType<
1737
+ GetCompanyPageAnalyticsRequest$Outbound,
1738
+ GetCompanyPageAnalyticsRequest
2016
1739
  > = z.object({
2017
- count: z.optional(z.int()),
2018
- start: z.optional(z.int()),
2019
- paginationToken: z.optional(z.string()),
1740
+ companyId: z.string(),
2020
1741
  });
2021
1742
 
2022
- export function getMyLinkedInPostsRequestToJSON(
2023
- getMyLinkedInPostsRequest: GetMyLinkedInPostsRequest,
1743
+ export function getCompanyPageAnalyticsRequestToJSON(
1744
+ getCompanyPageAnalyticsRequest: GetCompanyPageAnalyticsRequest,
2024
1745
  ): string {
2025
1746
  return JSON.stringify(
2026
- GetMyLinkedInPostsRequest$outboundSchema.parse(getMyLinkedInPostsRequest),
1747
+ GetCompanyPageAnalyticsRequest$outboundSchema.parse(
1748
+ getCompanyPageAnalyticsRequest,
1749
+ ),
2027
1750
  );
2028
1751
  }
2029
1752
 
2030
1753
  /** @internal */
2031
- export const GetMyLinkedInPostsType$inboundSchema: z.ZodMiniType<
2032
- GetMyLinkedInPostsType,
1754
+ export const GetCompanyPageAnalyticsFoundedOn$inboundSchema: z.ZodMiniType<
1755
+ GetCompanyPageAnalyticsFoundedOn,
2033
1756
  unknown
2034
- > = openEnums.inboundSchema(GetMyLinkedInPostsType);
1757
+ > = z.object({
1758
+ year: types.number(),
1759
+ month: types.optional(types.number()),
1760
+ day: types.optional(types.number()),
1761
+ });
1762
+
1763
+ export function getCompanyPageAnalyticsFoundedOnFromJSON(
1764
+ jsonString: string,
1765
+ ): SafeParseResult<GetCompanyPageAnalyticsFoundedOn, SDKValidationError> {
1766
+ return safeParse(
1767
+ jsonString,
1768
+ (x) => GetCompanyPageAnalyticsFoundedOn$inboundSchema.parse(JSON.parse(x)),
1769
+ `Failed to parse 'GetCompanyPageAnalyticsFoundedOn' from JSON`,
1770
+ );
1771
+ }
2035
1772
 
2036
1773
  /** @internal */
2037
- export const GetMyLinkedInPostsPost$inboundSchema: z.ZodMiniType<
2038
- GetMyLinkedInPostsPost,
1774
+ export const GetCompanyPageAnalyticsHeadquarter$inboundSchema: z.ZodMiniType<
1775
+ GetCompanyPageAnalyticsHeadquarter,
2039
1776
  unknown
2040
1777
  > = z.object({
2041
- postUrl: types.string(),
2042
- text: types.string(),
2043
- date: types.number(),
2044
- likesCount: types.number(),
2045
- commentsCount: types.number(),
2046
- sharesCount: types.number(),
2047
- postUrn: types.string(),
2048
- postId: types.string(),
2049
- type: GetMyLinkedInPostsType$inboundSchema,
1778
+ city: types.string(),
1779
+ country: types.string(),
1780
+ line1: types.optional(types.string()),
1781
+ postalCode: types.optional(types.string()),
2050
1782
  });
2051
1783
 
2052
- export function getMyLinkedInPostsPostFromJSON(
1784
+ export function getCompanyPageAnalyticsHeadquarterFromJSON(
1785
+ jsonString: string,
1786
+ ): SafeParseResult<GetCompanyPageAnalyticsHeadquarter, SDKValidationError> {
1787
+ return safeParse(
1788
+ jsonString,
1789
+ (x) =>
1790
+ GetCompanyPageAnalyticsHeadquarter$inboundSchema.parse(JSON.parse(x)),
1791
+ `Failed to parse 'GetCompanyPageAnalyticsHeadquarter' from JSON`,
1792
+ );
1793
+ }
1794
+
1795
+ /** @internal */
1796
+ export const Analytics$inboundSchema: z.ZodMiniType<Analytics, unknown> = z
1797
+ .object({
1798
+ name: types.string(),
1799
+ universalName: types.string(),
1800
+ followerCount: types.nullable(types.number()),
1801
+ employeeCount: types.nullable(types.number()),
1802
+ visitorsInPastMonthCount: types.nullable(types.number()),
1803
+ isActive: types.boolean(),
1804
+ foundedOn: types.nullable(
1805
+ z.lazy(() => GetCompanyPageAnalyticsFoundedOn$inboundSchema),
1806
+ ),
1807
+ headquarter: types.nullable(
1808
+ z.lazy(() => GetCompanyPageAnalyticsHeadquarter$inboundSchema),
1809
+ ),
1810
+ description: types.nullable(types.string()),
1811
+ tagline: types.nullable(types.string()),
1812
+ websiteUrl: types.nullable(types.string()),
1813
+ organizationType: types.nullable(types.string()),
1814
+ specialities: z.array(types.string()),
1815
+ industryUrns: z.array(types.string()),
1816
+ });
1817
+
1818
+ export function analyticsFromJSON(
2053
1819
  jsonString: string,
2054
- ): SafeParseResult<GetMyLinkedInPostsPost, SDKValidationError> {
1820
+ ): SafeParseResult<Analytics, SDKValidationError> {
2055
1821
  return safeParse(
2056
1822
  jsonString,
2057
- (x) => GetMyLinkedInPostsPost$inboundSchema.parse(JSON.parse(x)),
2058
- `Failed to parse 'GetMyLinkedInPostsPost' from JSON`,
1823
+ (x) => Analytics$inboundSchema.parse(JSON.parse(x)),
1824
+ `Failed to parse 'Analytics' from JSON`,
2059
1825
  );
2060
1826
  }
2061
1827
 
2062
1828
  /** @internal */
2063
- export const GetMyLinkedInPostsResponse$inboundSchema: z.ZodMiniType<
2064
- GetMyLinkedInPostsResponse,
1829
+ export const GetCompanyPageAnalyticsResponse$inboundSchema: z.ZodMiniType<
1830
+ GetCompanyPageAnalyticsResponse,
2065
1831
  unknown
2066
1832
  > = z.object({
2067
- success: types.boolean(),
2068
- posts: z.array(z.lazy(() => GetMyLinkedInPostsPost$inboundSchema)),
2069
- count: types.number(),
2070
- total: types.number(),
2071
- start: types.number(),
2072
- hasMore: types.boolean(),
2073
- paginationToken: types.nullable(types.string()),
1833
+ success: types.literal(true),
1834
+ analytics: z.lazy(() => Analytics$inboundSchema),
2074
1835
  creditsUsed: types.number(),
2075
1836
  retryAfter: types.number(),
2076
1837
  });
2077
1838
 
2078
- export function getMyLinkedInPostsResponseFromJSON(
1839
+ export function getCompanyPageAnalyticsResponseFromJSON(
2079
1840
  jsonString: string,
2080
- ): SafeParseResult<GetMyLinkedInPostsResponse, SDKValidationError> {
1841
+ ): SafeParseResult<GetCompanyPageAnalyticsResponse, SDKValidationError> {
2081
1842
  return safeParse(
2082
1843
  jsonString,
2083
- (x) => GetMyLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)),
2084
- `Failed to parse 'GetMyLinkedInPostsResponse' from JSON`,
1844
+ (x) => GetCompanyPageAnalyticsResponse$inboundSchema.parse(JSON.parse(x)),
1845
+ `Failed to parse 'GetCompanyPageAnalyticsResponse' from JSON`,
2085
1846
  );
2086
1847
  }
2087
1848
 
2088
1849
  /** @internal */
2089
- export type GetMyLinkedInFollowersRequest$Outbound = {
2090
- start?: number | undefined;
2091
- count?: number | undefined;
1850
+ export type ListInboxConversationsRequest$Outbound = {
1851
+ nextCursor?: string | undefined;
2092
1852
  };
2093
1853
 
2094
1854
  /** @internal */
2095
- export const GetMyLinkedInFollowersRequest$outboundSchema: z.ZodMiniType<
2096
- GetMyLinkedInFollowersRequest$Outbound,
2097
- GetMyLinkedInFollowersRequest
1855
+ export const ListInboxConversationsRequest$outboundSchema: z.ZodMiniType<
1856
+ ListInboxConversationsRequest$Outbound,
1857
+ ListInboxConversationsRequest
2098
1858
  > = z.object({
2099
- start: z.optional(z.int()),
2100
- count: z.optional(z.int()),
1859
+ nextCursor: z.optional(z.string()),
2101
1860
  });
2102
1861
 
2103
- export function getMyLinkedInFollowersRequestToJSON(
2104
- getMyLinkedInFollowersRequest: GetMyLinkedInFollowersRequest,
1862
+ export function listInboxConversationsRequestToJSON(
1863
+ listInboxConversationsRequest: ListInboxConversationsRequest,
2105
1864
  ): string {
2106
1865
  return JSON.stringify(
2107
- GetMyLinkedInFollowersRequest$outboundSchema.parse(
2108
- getMyLinkedInFollowersRequest,
1866
+ ListInboxConversationsRequest$outboundSchema.parse(
1867
+ listInboxConversationsRequest,
2109
1868
  ),
2110
1869
  );
2111
1870
  }
2112
1871
 
2113
1872
  /** @internal */
2114
- export const Follower$inboundSchema: z.ZodMiniType<Follower, unknown> = z
2115
- .object({
2116
- name: types.string(),
2117
- headline: types.nullable(types.string()),
2118
- profileUrl: types.nullable(types.string()),
2119
- profilePicture: types.nullable(types.string()),
2120
- followerCount: types.nullable(types.number()),
2121
- following: types.boolean(),
2122
- });
2123
-
2124
- export function followerFromJSON(
2125
- jsonString: string,
2126
- ): SafeParseResult<Follower, SDKValidationError> {
2127
- return safeParse(
2128
- jsonString,
2129
- (x) => Follower$inboundSchema.parse(JSON.parse(x)),
2130
- `Failed to parse 'Follower' from JSON`,
2131
- );
2132
- }
2133
-
2134
- /** @internal */
2135
- export const GetMyLinkedInFollowersResponse$inboundSchema: z.ZodMiniType<
2136
- GetMyLinkedInFollowersResponse,
1873
+ export const ListInboxConversationsParticipant$inboundSchema: z.ZodMiniType<
1874
+ ListInboxConversationsParticipant,
2137
1875
  unknown
2138
1876
  > = z.object({
2139
- success: types.boolean(),
2140
- followers: z.array(z.lazy(() => Follower$inboundSchema)),
2141
- count: types.number(),
2142
- totalFollowers: types.number(),
2143
- start: types.number(),
2144
- hasMore: types.boolean(),
2145
- creditsUsed: types.number(),
2146
- retryAfter: types.number(),
1877
+ profileUrn: types.string(),
1878
+ firstName: types.string(),
1879
+ lastName: types.string(),
1880
+ profileUrl: types.nullable(types.string()),
1881
+ headline: types.nullable(types.string()),
1882
+ profilePicture: types.nullable(types.string()),
1883
+ publicIdentifier: types.nullable(types.string()),
2147
1884
  });
2148
1885
 
2149
- export function getMyLinkedInFollowersResponseFromJSON(
1886
+ export function listInboxConversationsParticipantFromJSON(
2150
1887
  jsonString: string,
2151
- ): SafeParseResult<GetMyLinkedInFollowersResponse, SDKValidationError> {
1888
+ ): SafeParseResult<ListInboxConversationsParticipant, SDKValidationError> {
2152
1889
  return safeParse(
2153
1890
  jsonString,
2154
- (x) => GetMyLinkedInFollowersResponse$inboundSchema.parse(JSON.parse(x)),
2155
- `Failed to parse 'GetMyLinkedInFollowersResponse' from JSON`,
1891
+ (x) => ListInboxConversationsParticipant$inboundSchema.parse(JSON.parse(x)),
1892
+ `Failed to parse 'ListInboxConversationsParticipant' from JSON`,
2156
1893
  );
2157
1894
  }
2158
1895
 
2159
1896
  /** @internal */
2160
- export const ConnectionRequestDaily$inboundSchema: z.ZodMiniType<
2161
- ConnectionRequestDaily,
1897
+ export const ListInboxConversationsLastMessage$inboundSchema: z.ZodMiniType<
1898
+ ListInboxConversationsLastMessage,
2162
1899
  unknown
2163
1900
  > = z.object({
2164
- current: types.number(),
2165
- limit: types.number(),
2166
- remaining: types.number(),
1901
+ text: types.nullable(types.string()),
1902
+ deliveredAt: types.number(),
1903
+ senderProfileUrn: types.string(),
2167
1904
  });
2168
1905
 
2169
- export function connectionRequestDailyFromJSON(
1906
+ export function listInboxConversationsLastMessageFromJSON(
2170
1907
  jsonString: string,
2171
- ): SafeParseResult<ConnectionRequestDaily, SDKValidationError> {
1908
+ ): SafeParseResult<ListInboxConversationsLastMessage, SDKValidationError> {
2172
1909
  return safeParse(
2173
1910
  jsonString,
2174
- (x) => ConnectionRequestDaily$inboundSchema.parse(JSON.parse(x)),
2175
- `Failed to parse 'ConnectionRequestDaily' from JSON`,
1911
+ (x) => ListInboxConversationsLastMessage$inboundSchema.parse(JSON.parse(x)),
1912
+ `Failed to parse 'ListInboxConversationsLastMessage' from JSON`,
2176
1913
  );
2177
1914
  }
2178
1915
 
2179
1916
  /** @internal */
2180
- export const ConnectionRequestWeekly$inboundSchema: z.ZodMiniType<
2181
- ConnectionRequestWeekly,
1917
+ export const ListInboxConversationsConversation$inboundSchema: z.ZodMiniType<
1918
+ ListInboxConversationsConversation,
2182
1919
  unknown
2183
1920
  > = z.object({
2184
- current: types.number(),
2185
- limit: types.number(),
2186
- remaining: types.number(),
1921
+ conversationUrn: types.string(),
1922
+ conversationUrl: types.string(),
1923
+ lastActivityAt: types.number(),
1924
+ createdAt: types.number(),
1925
+ read: types.boolean(),
1926
+ unreadCount: types.number(),
1927
+ groupChat: types.boolean(),
1928
+ participants: z.array(
1929
+ z.lazy(() => ListInboxConversationsParticipant$inboundSchema),
1930
+ ),
1931
+ lastMessage: types.nullable(
1932
+ z.lazy(() => ListInboxConversationsLastMessage$inboundSchema),
1933
+ ),
2187
1934
  });
2188
1935
 
2189
- export function connectionRequestWeeklyFromJSON(
1936
+ export function listInboxConversationsConversationFromJSON(
2190
1937
  jsonString: string,
2191
- ): SafeParseResult<ConnectionRequestWeekly, SDKValidationError> {
1938
+ ): SafeParseResult<ListInboxConversationsConversation, SDKValidationError> {
2192
1939
  return safeParse(
2193
1940
  jsonString,
2194
- (x) => ConnectionRequestWeekly$inboundSchema.parse(JSON.parse(x)),
2195
- `Failed to parse 'ConnectionRequestWeekly' from JSON`,
1941
+ (x) =>
1942
+ ListInboxConversationsConversation$inboundSchema.parse(JSON.parse(x)),
1943
+ `Failed to parse 'ListInboxConversationsConversation' from JSON`,
2196
1944
  );
2197
1945
  }
2198
1946
 
2199
1947
  /** @internal */
2200
- export const ConnectionRequest$inboundSchema: z.ZodMiniType<
2201
- ConnectionRequest,
1948
+ export const ListInboxConversationsResponse$inboundSchema: z.ZodMiniType<
1949
+ ListInboxConversationsResponse,
2202
1950
  unknown
2203
1951
  > = z.object({
2204
- daily: z.lazy(() => ConnectionRequestDaily$inboundSchema),
2205
- weekly: types.nullable(z.lazy(() => ConnectionRequestWeekly$inboundSchema)),
2206
- minIntervalSeconds: types.number(),
2207
- nextResetDaily: types.date(),
2208
- nextResetWeekly: types.nullable(types.date()),
1952
+ success: types.literal(true),
1953
+ conversations: z.array(
1954
+ z.lazy(() => ListInboxConversationsConversation$inboundSchema),
1955
+ ),
1956
+ nextCursor: types.nullable(types.string()),
1957
+ creditsUsed: types.number(),
1958
+ retryAfter: types.number(),
2209
1959
  });
2210
1960
 
2211
- export function connectionRequestFromJSON(
1961
+ export function listInboxConversationsResponseFromJSON(
2212
1962
  jsonString: string,
2213
- ): SafeParseResult<ConnectionRequest, SDKValidationError> {
1963
+ ): SafeParseResult<ListInboxConversationsResponse, SDKValidationError> {
2214
1964
  return safeParse(
2215
1965
  jsonString,
2216
- (x) => ConnectionRequest$inboundSchema.parse(JSON.parse(x)),
2217
- `Failed to parse 'ConnectionRequest' from JSON`,
1966
+ (x) => ListInboxConversationsResponse$inboundSchema.parse(JSON.parse(x)),
1967
+ `Failed to parse 'ListInboxConversationsResponse' from JSON`,
2218
1968
  );
2219
1969
  }
2220
1970
 
2221
1971
  /** @internal */
2222
- export const MessageDaily$inboundSchema: z.ZodMiniType<MessageDaily, unknown> =
2223
- z.object({
2224
- current: types.number(),
2225
- limit: types.number(),
2226
- remaining: types.number(),
2227
- });
1972
+ export type GetConversationMessagesRequest$Outbound = {
1973
+ conversationUrn: string;
1974
+ deliveredAt?: number | undefined;
1975
+ };
2228
1976
 
2229
- export function messageDailyFromJSON(
2230
- jsonString: string,
2231
- ): SafeParseResult<MessageDaily, SDKValidationError> {
2232
- return safeParse(
2233
- jsonString,
2234
- (x) => MessageDaily$inboundSchema.parse(JSON.parse(x)),
2235
- `Failed to parse 'MessageDaily' from JSON`,
1977
+ /** @internal */
1978
+ export const GetConversationMessagesRequest$outboundSchema: z.ZodMiniType<
1979
+ GetConversationMessagesRequest$Outbound,
1980
+ GetConversationMessagesRequest
1981
+ > = z.object({
1982
+ conversationUrn: z.string(),
1983
+ deliveredAt: z.optional(z.int()),
1984
+ });
1985
+
1986
+ export function getConversationMessagesRequestToJSON(
1987
+ getConversationMessagesRequest: GetConversationMessagesRequest,
1988
+ ): string {
1989
+ return JSON.stringify(
1990
+ GetConversationMessagesRequest$outboundSchema.parse(
1991
+ getConversationMessagesRequest,
1992
+ ),
2236
1993
  );
2237
1994
  }
2238
1995
 
2239
1996
  /** @internal */
2240
- export const MessageWeekly$inboundSchema: z.ZodMiniType<
2241
- MessageWeekly,
1997
+ export const GetConversationMessagesSender$inboundSchema: z.ZodMiniType<
1998
+ GetConversationMessagesSender,
2242
1999
  unknown
2243
2000
  > = z.object({
2244
- current: types.number(),
2245
- limit: types.number(),
2246
- remaining: types.number(),
2001
+ firstName: types.string(),
2002
+ lastName: types.string(),
2003
+ profileUrl: types.nullable(types.string()),
2004
+ headline: types.nullable(types.string()),
2005
+ profilePicture: types.nullable(types.string()),
2006
+ publicIdentifier: types.nullable(types.string()),
2007
+ profileUrn: types.nullable(types.string()),
2247
2008
  });
2248
2009
 
2249
- export function messageWeeklyFromJSON(
2010
+ export function getConversationMessagesSenderFromJSON(
2250
2011
  jsonString: string,
2251
- ): SafeParseResult<MessageWeekly, SDKValidationError> {
2012
+ ): SafeParseResult<GetConversationMessagesSender, SDKValidationError> {
2252
2013
  return safeParse(
2253
2014
  jsonString,
2254
- (x) => MessageWeekly$inboundSchema.parse(JSON.parse(x)),
2255
- `Failed to parse 'MessageWeekly' from JSON`,
2015
+ (x) => GetConversationMessagesSender$inboundSchema.parse(JSON.parse(x)),
2016
+ `Failed to parse 'GetConversationMessagesSender' from JSON`,
2256
2017
  );
2257
2018
  }
2258
2019
 
2259
2020
  /** @internal */
2260
- export const GetMyLimitsMessage$inboundSchema: z.ZodMiniType<
2261
- GetMyLimitsMessage,
2021
+ export const GetConversationMessagesType$inboundSchema: z.ZodMiniType<
2022
+ GetConversationMessagesType,
2023
+ unknown
2024
+ > = openEnums.inboundSchema(GetConversationMessagesType);
2025
+
2026
+ /** @internal */
2027
+ export const GetConversationMessagesAttachment$inboundSchema: z.ZodMiniType<
2028
+ GetConversationMessagesAttachment,
2262
2029
  unknown
2263
2030
  > = z.object({
2264
- daily: z.lazy(() => MessageDaily$inboundSchema),
2265
- weekly: types.nullable(z.lazy(() => MessageWeekly$inboundSchema)),
2266
- minIntervalSeconds: types.number(),
2267
- nextResetDaily: types.date(),
2268
- nextResetWeekly: types.nullable(types.date()),
2031
+ type: GetConversationMessagesType$inboundSchema,
2032
+ audioUrl: types.optional(types.string()),
2033
+ audioDuration: types.optional(types.number()),
2034
+ hostUrn: types.optional(types.string()),
2035
+ repliedText: types.optional(types.string()),
2036
+ repliedSenderName: types.optional(types.string()),
2037
+ imageUrl: types.optional(types.string()),
2038
+ fileName: types.optional(types.string()),
2039
+ fileUrl: types.optional(types.string()),
2269
2040
  });
2270
2041
 
2271
- export function getMyLimitsMessageFromJSON(
2042
+ export function getConversationMessagesAttachmentFromJSON(
2272
2043
  jsonString: string,
2273
- ): SafeParseResult<GetMyLimitsMessage, SDKValidationError> {
2044
+ ): SafeParseResult<GetConversationMessagesAttachment, SDKValidationError> {
2274
2045
  return safeParse(
2275
2046
  jsonString,
2276
- (x) => GetMyLimitsMessage$inboundSchema.parse(JSON.parse(x)),
2277
- `Failed to parse 'GetMyLimitsMessage' from JSON`,
2047
+ (x) => GetConversationMessagesAttachment$inboundSchema.parse(JSON.parse(x)),
2048
+ `Failed to parse 'GetConversationMessagesAttachment' from JSON`,
2278
2049
  );
2279
2050
  }
2280
2051
 
2281
2052
  /** @internal */
2282
- export const ProfileVisitDaily$inboundSchema: z.ZodMiniType<
2283
- ProfileVisitDaily,
2053
+ export const GetConversationMessagesMessage$inboundSchema: z.ZodMiniType<
2054
+ GetConversationMessagesMessage,
2284
2055
  unknown
2285
2056
  > = z.object({
2286
- current: types.number(),
2287
- limit: types.number(),
2288
- remaining: types.number(),
2057
+ messageUrn: types.string(),
2058
+ text: types.nullable(types.string()),
2059
+ deliveredAt: types.number(),
2060
+ senderProfileUrn: types.string(),
2061
+ sender: z.lazy(() => GetConversationMessagesSender$inboundSchema),
2062
+ attachments: z.array(
2063
+ z.lazy(() => GetConversationMessagesAttachment$inboundSchema),
2064
+ ),
2289
2065
  });
2290
2066
 
2291
- export function profileVisitDailyFromJSON(
2067
+ export function getConversationMessagesMessageFromJSON(
2292
2068
  jsonString: string,
2293
- ): SafeParseResult<ProfileVisitDaily, SDKValidationError> {
2069
+ ): SafeParseResult<GetConversationMessagesMessage, SDKValidationError> {
2294
2070
  return safeParse(
2295
2071
  jsonString,
2296
- (x) => ProfileVisitDaily$inboundSchema.parse(JSON.parse(x)),
2297
- `Failed to parse 'ProfileVisitDaily' from JSON`,
2072
+ (x) => GetConversationMessagesMessage$inboundSchema.parse(JSON.parse(x)),
2073
+ `Failed to parse 'GetConversationMessagesMessage' from JSON`,
2298
2074
  );
2299
2075
  }
2300
2076
 
2301
2077
  /** @internal */
2302
- export const ProfileVisitWeekly$inboundSchema: z.ZodMiniType<
2303
- ProfileVisitWeekly,
2078
+ export const GetConversationMessagesResponse$inboundSchema: z.ZodMiniType<
2079
+ GetConversationMessagesResponse,
2304
2080
  unknown
2305
2081
  > = z.object({
2306
- current: types.number(),
2307
- limit: types.number(),
2308
- remaining: types.number(),
2082
+ success: types.literal(true),
2083
+ messages: z.array(z.lazy(() => GetConversationMessagesMessage$inboundSchema)),
2084
+ prevCursor: types.nullable(types.number()),
2085
+ creditsUsed: types.number(),
2086
+ retryAfter: types.number(),
2309
2087
  });
2310
2088
 
2311
- export function profileVisitWeeklyFromJSON(
2089
+ export function getConversationMessagesResponseFromJSON(
2312
2090
  jsonString: string,
2313
- ): SafeParseResult<ProfileVisitWeekly, SDKValidationError> {
2091
+ ): SafeParseResult<GetConversationMessagesResponse, SDKValidationError> {
2314
2092
  return safeParse(
2315
2093
  jsonString,
2316
- (x) => ProfileVisitWeekly$inboundSchema.parse(JSON.parse(x)),
2317
- `Failed to parse 'ProfileVisitWeekly' from JSON`,
2094
+ (x) => GetConversationMessagesResponse$inboundSchema.parse(JSON.parse(x)),
2095
+ `Failed to parse 'GetConversationMessagesResponse' from JSON`,
2318
2096
  );
2319
2097
  }
2320
2098
 
2321
2099
  /** @internal */
2322
- export const ProfileVisit$inboundSchema: z.ZodMiniType<ProfileVisit, unknown> =
2323
- z.object({
2324
- daily: z.lazy(() => ProfileVisitDaily$inboundSchema),
2325
- weekly: types.nullable(z.lazy(() => ProfileVisitWeekly$inboundSchema)),
2326
- minIntervalSeconds: types.number(),
2327
- nextResetDaily: types.date(),
2328
- nextResetWeekly: types.nullable(types.date()),
2329
- });
2330
-
2331
- export function profileVisitFromJSON(
2332
- jsonString: string,
2333
- ): SafeParseResult<ProfileVisit, SDKValidationError> {
2334
- return safeParse(
2335
- jsonString,
2336
- (x) => ProfileVisit$inboundSchema.parse(JSON.parse(x)),
2337
- `Failed to parse 'ProfileVisit' from JSON`,
2338
- );
2339
- }
2100
+ export type MarkAllConversationsReadRequest$Outbound = {};
2340
2101
 
2341
2102
  /** @internal */
2342
- export const ScrapingDaily$inboundSchema: z.ZodMiniType<
2343
- ScrapingDaily,
2344
- unknown
2345
- > = z.object({
2346
- current: types.number(),
2347
- limit: types.number(),
2348
- remaining: types.number(),
2349
- });
2103
+ export const MarkAllConversationsReadRequest$outboundSchema: z.ZodMiniType<
2104
+ MarkAllConversationsReadRequest$Outbound,
2105
+ MarkAllConversationsReadRequest
2106
+ > = z.object({});
2350
2107
 
2351
- export function scrapingDailyFromJSON(
2352
- jsonString: string,
2353
- ): SafeParseResult<ScrapingDaily, SDKValidationError> {
2354
- return safeParse(
2355
- jsonString,
2356
- (x) => ScrapingDaily$inboundSchema.parse(JSON.parse(x)),
2357
- `Failed to parse 'ScrapingDaily' from JSON`,
2108
+ export function markAllConversationsReadRequestToJSON(
2109
+ markAllConversationsReadRequest: MarkAllConversationsReadRequest,
2110
+ ): string {
2111
+ return JSON.stringify(
2112
+ MarkAllConversationsReadRequest$outboundSchema.parse(
2113
+ markAllConversationsReadRequest,
2114
+ ),
2358
2115
  );
2359
2116
  }
2360
2117
 
2361
2118
  /** @internal */
2362
- export const ScrapingWeekly$inboundSchema: z.ZodMiniType<
2363
- ScrapingWeekly,
2119
+ export const MarkAllConversationsReadResponse$inboundSchema: z.ZodMiniType<
2120
+ MarkAllConversationsReadResponse,
2364
2121
  unknown
2365
2122
  > = z.object({
2366
- current: types.number(),
2367
- limit: types.number(),
2368
- remaining: types.number(),
2123
+ success: types.literal(true),
2124
+ creditsUsed: types.number(),
2125
+ retryAfter: types.number(),
2369
2126
  });
2370
2127
 
2371
- export function scrapingWeeklyFromJSON(
2128
+ export function markAllConversationsReadResponseFromJSON(
2372
2129
  jsonString: string,
2373
- ): SafeParseResult<ScrapingWeekly, SDKValidationError> {
2130
+ ): SafeParseResult<MarkAllConversationsReadResponse, SDKValidationError> {
2374
2131
  return safeParse(
2375
2132
  jsonString,
2376
- (x) => ScrapingWeekly$inboundSchema.parse(JSON.parse(x)),
2377
- `Failed to parse 'ScrapingWeekly' from JSON`,
2133
+ (x) => MarkAllConversationsReadResponse$inboundSchema.parse(JSON.parse(x)),
2134
+ `Failed to parse 'MarkAllConversationsReadResponse' from JSON`,
2378
2135
  );
2379
2136
  }
2380
2137
 
2381
2138
  /** @internal */
2382
- export const Scraping$inboundSchema: z.ZodMiniType<Scraping, unknown> = z
2383
- .object({
2384
- daily: z.lazy(() => ScrapingDaily$inboundSchema),
2385
- weekly: types.nullable(z.lazy(() => ScrapingWeekly$inboundSchema)),
2386
- minIntervalSeconds: types.number(),
2387
- nextResetDaily: types.date(),
2388
- nextResetWeekly: types.nullable(types.date()),
2389
- });
2139
+ export type ListArchivedConversationsRequest$Outbound = {
2140
+ nextCursor?: string | undefined;
2141
+ };
2390
2142
 
2391
- export function scrapingFromJSON(
2392
- jsonString: string,
2393
- ): SafeParseResult<Scraping, SDKValidationError> {
2394
- return safeParse(
2395
- jsonString,
2396
- (x) => Scraping$inboundSchema.parse(JSON.parse(x)),
2397
- `Failed to parse 'Scraping' from JSON`,
2143
+ /** @internal */
2144
+ export const ListArchivedConversationsRequest$outboundSchema: z.ZodMiniType<
2145
+ ListArchivedConversationsRequest$Outbound,
2146
+ ListArchivedConversationsRequest
2147
+ > = z.object({
2148
+ nextCursor: z.optional(z.string()),
2149
+ });
2150
+
2151
+ export function listArchivedConversationsRequestToJSON(
2152
+ listArchivedConversationsRequest: ListArchivedConversationsRequest,
2153
+ ): string {
2154
+ return JSON.stringify(
2155
+ ListArchivedConversationsRequest$outboundSchema.parse(
2156
+ listArchivedConversationsRequest,
2157
+ ),
2398
2158
  );
2399
2159
  }
2400
2160
 
2401
2161
  /** @internal */
2402
- export const Limits$inboundSchema: z.ZodMiniType<Limits, unknown> = z.pipe(
2403
- z.object({
2404
- connection_request: z.lazy(() => ConnectionRequest$inboundSchema),
2405
- message: z.lazy(() => GetMyLimitsMessage$inboundSchema),
2406
- profile_visit: z.lazy(() => ProfileVisit$inboundSchema),
2407
- scraping: z.lazy(() => Scraping$inboundSchema),
2408
- }),
2409
- z.transform((v) => {
2410
- return remap$(v, {
2411
- "connection_request": "connectionRequest",
2412
- "profile_visit": "profileVisit",
2413
- });
2414
- }),
2415
- );
2162
+ export const ListArchivedConversationsParticipant$inboundSchema: z.ZodMiniType<
2163
+ ListArchivedConversationsParticipant,
2164
+ unknown
2165
+ > = z.object({
2166
+ profileUrn: types.string(),
2167
+ firstName: types.string(),
2168
+ lastName: types.string(),
2169
+ profileUrl: types.nullable(types.string()),
2170
+ headline: types.nullable(types.string()),
2171
+ profilePicture: types.nullable(types.string()),
2172
+ publicIdentifier: types.nullable(types.string()),
2173
+ });
2416
2174
 
2417
- export function limitsFromJSON(
2175
+ export function listArchivedConversationsParticipantFromJSON(
2418
2176
  jsonString: string,
2419
- ): SafeParseResult<Limits, SDKValidationError> {
2177
+ ): SafeParseResult<ListArchivedConversationsParticipant, SDKValidationError> {
2420
2178
  return safeParse(
2421
2179
  jsonString,
2422
- (x) => Limits$inboundSchema.parse(JSON.parse(x)),
2423
- `Failed to parse 'Limits' from JSON`,
2180
+ (x) =>
2181
+ ListArchivedConversationsParticipant$inboundSchema.parse(JSON.parse(x)),
2182
+ `Failed to parse 'ListArchivedConversationsParticipant' from JSON`,
2424
2183
  );
2425
2184
  }
2426
2185
 
2427
2186
  /** @internal */
2428
- export const GetMyLimitsResponse$inboundSchema: z.ZodMiniType<
2429
- GetMyLimitsResponse,
2187
+ export const ListArchivedConversationsLastMessage$inboundSchema: z.ZodMiniType<
2188
+ ListArchivedConversationsLastMessage,
2430
2189
  unknown
2431
2190
  > = z.object({
2432
- success: types.boolean(),
2433
- multiplier: types.number(),
2434
- limits: z.lazy(() => Limits$inboundSchema),
2435
- creditsUsed: types.number(),
2436
- retryAfter: types.number(),
2191
+ text: types.nullable(types.string()),
2192
+ deliveredAt: types.number(),
2193
+ senderProfileUrn: types.string(),
2437
2194
  });
2438
2195
 
2439
- export function getMyLimitsResponseFromJSON(
2196
+ export function listArchivedConversationsLastMessageFromJSON(
2440
2197
  jsonString: string,
2441
- ): SafeParseResult<GetMyLimitsResponse, SDKValidationError> {
2198
+ ): SafeParseResult<ListArchivedConversationsLastMessage, SDKValidationError> {
2442
2199
  return safeParse(
2443
2200
  jsonString,
2444
- (x) => GetMyLimitsResponse$inboundSchema.parse(JSON.parse(x)),
2445
- `Failed to parse 'GetMyLimitsResponse' from JSON`,
2201
+ (x) =>
2202
+ ListArchivedConversationsLastMessage$inboundSchema.parse(JSON.parse(x)),
2203
+ `Failed to parse 'ListArchivedConversationsLastMessage' from JSON`,
2446
2204
  );
2447
2205
  }
2448
2206
 
2449
2207
  /** @internal */
2450
- export const Credits$inboundSchema: z.ZodMiniType<Credits, unknown> = z.object({
2451
- current: types.number(),
2452
- limit: types.number(),
2453
- remaining: types.number(),
2454
- percentage: types.number(),
2208
+ export const ListArchivedConversationsConversation$inboundSchema: z.ZodMiniType<
2209
+ ListArchivedConversationsConversation,
2210
+ unknown
2211
+ > = z.object({
2212
+ conversationUrn: types.string(),
2213
+ conversationUrl: types.string(),
2214
+ lastActivityAt: types.number(),
2215
+ createdAt: types.number(),
2216
+ read: types.boolean(),
2217
+ unreadCount: types.number(),
2218
+ groupChat: types.boolean(),
2219
+ participants: z.array(
2220
+ z.lazy(() => ListArchivedConversationsParticipant$inboundSchema),
2221
+ ),
2222
+ lastMessage: types.nullable(
2223
+ z.lazy(() => ListArchivedConversationsLastMessage$inboundSchema),
2224
+ ),
2455
2225
  });
2456
2226
 
2457
- export function creditsFromJSON(
2227
+ export function listArchivedConversationsConversationFromJSON(
2458
2228
  jsonString: string,
2459
- ): SafeParseResult<Credits, SDKValidationError> {
2229
+ ): SafeParseResult<ListArchivedConversationsConversation, SDKValidationError> {
2460
2230
  return safeParse(
2461
2231
  jsonString,
2462
- (x) => Credits$inboundSchema.parse(JSON.parse(x)),
2463
- `Failed to parse 'Credits' from JSON`,
2232
+ (x) =>
2233
+ ListArchivedConversationsConversation$inboundSchema.parse(JSON.parse(x)),
2234
+ `Failed to parse 'ListArchivedConversationsConversation' from JSON`,
2464
2235
  );
2465
2236
  }
2466
2237
 
2467
2238
  /** @internal */
2468
- export const GetMyCreditsResponse$inboundSchema: z.ZodMiniType<
2469
- GetMyCreditsResponse,
2239
+ export const ListArchivedConversationsResponse$inboundSchema: z.ZodMiniType<
2240
+ ListArchivedConversationsResponse,
2470
2241
  unknown
2471
2242
  > = z.object({
2472
- success: types.boolean(),
2473
- credits: z.lazy(() => Credits$inboundSchema),
2243
+ success: types.literal(true),
2244
+ conversations: z.array(
2245
+ z.lazy(() => ListArchivedConversationsConversation$inboundSchema),
2246
+ ),
2247
+ nextCursor: types.nullable(types.string()),
2474
2248
  creditsUsed: types.number(),
2475
2249
  retryAfter: types.number(),
2476
2250
  });
2477
2251
 
2478
- export function getMyCreditsResponseFromJSON(
2252
+ export function listArchivedConversationsResponseFromJSON(
2479
2253
  jsonString: string,
2480
- ): SafeParseResult<GetMyCreditsResponse, SDKValidationError> {
2254
+ ): SafeParseResult<ListArchivedConversationsResponse, SDKValidationError> {
2481
2255
  return safeParse(
2482
2256
  jsonString,
2483
- (x) => GetMyCreditsResponse$inboundSchema.parse(JSON.parse(x)),
2484
- `Failed to parse 'GetMyCreditsResponse' from JSON`,
2257
+ (x) => ListArchivedConversationsResponse$inboundSchema.parse(JSON.parse(x)),
2258
+ `Failed to parse 'ListArchivedConversationsResponse' from JSON`,
2485
2259
  );
2486
2260
  }
2487
2261
 
2488
2262
  /** @internal */
2489
- export type ListInboxConversationsRequest$Outbound = {
2490
- nextCursor?: string | undefined;
2263
+ export type ReactToMessageRequest$Outbound = {
2264
+ messageUrn: string;
2265
+ emoji: string;
2266
+ conversationUrn: string;
2491
2267
  };
2492
2268
 
2493
2269
  /** @internal */
2494
- export const ListInboxConversationsRequest$outboundSchema: z.ZodMiniType<
2495
- ListInboxConversationsRequest$Outbound,
2496
- ListInboxConversationsRequest
2270
+ export const ReactToMessageRequest$outboundSchema: z.ZodMiniType<
2271
+ ReactToMessageRequest$Outbound,
2272
+ ReactToMessageRequest
2497
2273
  > = z.object({
2498
- nextCursor: z.optional(z.string()),
2274
+ messageUrn: z.string(),
2275
+ emoji: z.string(),
2276
+ conversationUrn: z.string(),
2499
2277
  });
2500
2278
 
2501
- export function listInboxConversationsRequestToJSON(
2502
- listInboxConversationsRequest: ListInboxConversationsRequest,
2279
+ export function reactToMessageRequestToJSON(
2280
+ reactToMessageRequest: ReactToMessageRequest,
2503
2281
  ): string {
2504
2282
  return JSON.stringify(
2505
- ListInboxConversationsRequest$outboundSchema.parse(
2506
- listInboxConversationsRequest,
2507
- ),
2283
+ ReactToMessageRequest$outboundSchema.parse(reactToMessageRequest),
2508
2284
  );
2509
2285
  }
2510
2286
 
2511
2287
  /** @internal */
2512
- export const ListInboxConversationsParticipant$inboundSchema: z.ZodMiniType<
2513
- ListInboxConversationsParticipant,
2288
+ export const ReactToMessageResponse$inboundSchema: z.ZodMiniType<
2289
+ ReactToMessageResponse,
2514
2290
  unknown
2515
2291
  > = z.object({
2516
- profileUrn: types.string(),
2517
- firstName: types.string(),
2518
- lastName: types.string(),
2519
- profileUrl: types.nullable(types.string()),
2520
- headline: types.nullable(types.string()),
2521
- profilePicture: types.nullable(types.string()),
2292
+ success: types.literal(true),
2293
+ creditsUsed: types.number(),
2294
+ retryAfter: types.number(),
2522
2295
  });
2523
2296
 
2524
- export function listInboxConversationsParticipantFromJSON(
2297
+ export function reactToMessageResponseFromJSON(
2525
2298
  jsonString: string,
2526
- ): SafeParseResult<ListInboxConversationsParticipant, SDKValidationError> {
2299
+ ): SafeParseResult<ReactToMessageResponse, SDKValidationError> {
2527
2300
  return safeParse(
2528
2301
  jsonString,
2529
- (x) => ListInboxConversationsParticipant$inboundSchema.parse(JSON.parse(x)),
2530
- `Failed to parse 'ListInboxConversationsParticipant' from JSON`,
2302
+ (x) => ReactToMessageResponse$inboundSchema.parse(JSON.parse(x)),
2303
+ `Failed to parse 'ReactToMessageResponse' from JSON`,
2531
2304
  );
2532
2305
  }
2533
2306
 
2534
2307
  /** @internal */
2535
- export const ListInboxConversationsLastMessage$inboundSchema: z.ZodMiniType<
2536
- ListInboxConversationsLastMessage,
2537
- unknown
2308
+ export type SendTypingIndicatorRequest$Outbound = {
2309
+ conversationUrn: string;
2310
+ };
2311
+
2312
+ /** @internal */
2313
+ export const SendTypingIndicatorRequest$outboundSchema: z.ZodMiniType<
2314
+ SendTypingIndicatorRequest$Outbound,
2315
+ SendTypingIndicatorRequest
2538
2316
  > = z.object({
2539
- text: types.nullable(types.string()),
2540
- deliveredAt: types.number(),
2541
- senderProfileUrn: types.string(),
2317
+ conversationUrn: z.string(),
2542
2318
  });
2543
2319
 
2544
- export function listInboxConversationsLastMessageFromJSON(
2545
- jsonString: string,
2546
- ): SafeParseResult<ListInboxConversationsLastMessage, SDKValidationError> {
2547
- return safeParse(
2548
- jsonString,
2549
- (x) => ListInboxConversationsLastMessage$inboundSchema.parse(JSON.parse(x)),
2550
- `Failed to parse 'ListInboxConversationsLastMessage' from JSON`,
2320
+ export function sendTypingIndicatorRequestToJSON(
2321
+ sendTypingIndicatorRequest: SendTypingIndicatorRequest,
2322
+ ): string {
2323
+ return JSON.stringify(
2324
+ SendTypingIndicatorRequest$outboundSchema.parse(sendTypingIndicatorRequest),
2551
2325
  );
2552
2326
  }
2553
2327
 
2554
2328
  /** @internal */
2555
- export const ListInboxConversationsConversation$inboundSchema: z.ZodMiniType<
2556
- ListInboxConversationsConversation,
2329
+ export const SendTypingIndicatorResponse$inboundSchema: z.ZodMiniType<
2330
+ SendTypingIndicatorResponse,
2557
2331
  unknown
2558
2332
  > = z.object({
2559
- conversationUrn: types.string(),
2560
- conversationUrl: types.string(),
2561
- lastActivityAt: types.number(),
2562
- createdAt: types.number(),
2563
- read: types.boolean(),
2564
- unreadCount: types.number(),
2565
- groupChat: types.boolean(),
2566
- participants: z.array(
2567
- z.lazy(() => ListInboxConversationsParticipant$inboundSchema),
2568
- ),
2569
- lastMessage: types.nullable(
2570
- z.lazy(() => ListInboxConversationsLastMessage$inboundSchema),
2571
- ),
2333
+ success: types.literal(true),
2334
+ creditsUsed: types.number(),
2335
+ retryAfter: types.number(),
2572
2336
  });
2573
2337
 
2574
- export function listInboxConversationsConversationFromJSON(
2338
+ export function sendTypingIndicatorResponseFromJSON(
2575
2339
  jsonString: string,
2576
- ): SafeParseResult<ListInboxConversationsConversation, SDKValidationError> {
2340
+ ): SafeParseResult<SendTypingIndicatorResponse, SDKValidationError> {
2577
2341
  return safeParse(
2578
2342
  jsonString,
2579
- (x) =>
2580
- ListInboxConversationsConversation$inboundSchema.parse(JSON.parse(x)),
2581
- `Failed to parse 'ListInboxConversationsConversation' from JSON`,
2343
+ (x) => SendTypingIndicatorResponse$inboundSchema.parse(JSON.parse(x)),
2344
+ `Failed to parse 'SendTypingIndicatorResponse' from JSON`,
2345
+ );
2346
+ }
2347
+
2348
+ /** @internal */
2349
+ export type GetUnreadCountRequest$Outbound = {};
2350
+
2351
+ /** @internal */
2352
+ export const GetUnreadCountRequest$outboundSchema: z.ZodMiniType<
2353
+ GetUnreadCountRequest$Outbound,
2354
+ GetUnreadCountRequest
2355
+ > = z.object({});
2356
+
2357
+ export function getUnreadCountRequestToJSON(
2358
+ getUnreadCountRequest: GetUnreadCountRequest,
2359
+ ): string {
2360
+ return JSON.stringify(
2361
+ GetUnreadCountRequest$outboundSchema.parse(getUnreadCountRequest),
2582
2362
  );
2583
2363
  }
2584
2364
 
2585
2365
  /** @internal */
2586
- export const ListInboxConversationsResponse$inboundSchema: z.ZodMiniType<
2587
- ListInboxConversationsResponse,
2366
+ export const GetUnreadCountResponse$inboundSchema: z.ZodMiniType<
2367
+ GetUnreadCountResponse,
2588
2368
  unknown
2589
2369
  > = z.object({
2590
- success: types.boolean(),
2591
- conversations: z.array(
2592
- z.lazy(() => ListInboxConversationsConversation$inboundSchema),
2593
- ),
2594
- nextCursor: types.nullable(types.string()),
2370
+ success: types.literal(true),
2371
+ unreadCount: types.number(),
2595
2372
  creditsUsed: types.number(),
2596
2373
  retryAfter: types.number(),
2597
2374
  });
2598
2375
 
2599
- export function listInboxConversationsResponseFromJSON(
2376
+ export function getUnreadCountResponseFromJSON(
2600
2377
  jsonString: string,
2601
- ): SafeParseResult<ListInboxConversationsResponse, SDKValidationError> {
2378
+ ): SafeParseResult<GetUnreadCountResponse, SDKValidationError> {
2602
2379
  return safeParse(
2603
2380
  jsonString,
2604
- (x) => ListInboxConversationsResponse$inboundSchema.parse(JSON.parse(x)),
2605
- `Failed to parse 'ListInboxConversationsResponse' from JSON`,
2381
+ (x) => GetUnreadCountResponse$inboundSchema.parse(JSON.parse(x)),
2382
+ `Failed to parse 'GetUnreadCountResponse' from JSON`,
2606
2383
  );
2607
2384
  }
2608
2385
 
@@ -2640,6 +2417,7 @@ export const SearchLinkedInConversationsParticipant$inboundSchema:
2640
2417
  profileUrl: types.nullable(types.string()),
2641
2418
  headline: types.nullable(types.string()),
2642
2419
  profilePicture: types.nullable(types.string()),
2420
+ publicIdentifier: types.nullable(types.string()),
2643
2421
  });
2644
2422
 
2645
2423
  export function searchLinkedInConversationsParticipantFromJSON(
@@ -2711,7 +2489,7 @@ export const SearchLinkedInConversationsResponse$inboundSchema: z.ZodMiniType<
2711
2489
  SearchLinkedInConversationsResponse,
2712
2490
  unknown
2713
2491
  > = z.object({
2714
- success: types.boolean(),
2492
+ success: types.literal(true),
2715
2493
  conversations: z.array(
2716
2494
  z.lazy(() => SearchLinkedInConversationsConversation$inboundSchema),
2717
2495
  ),
@@ -2785,6 +2563,8 @@ export const FindLinkedInConversationSender$inboundSchema: z.ZodMiniType<
2785
2563
  profileUrl: types.nullable(types.string()),
2786
2564
  headline: types.nullable(types.string()),
2787
2565
  profilePicture: types.nullable(types.string()),
2566
+ publicIdentifier: types.nullable(types.string()),
2567
+ profileUrn: types.nullable(types.string()),
2788
2568
  });
2789
2569
 
2790
2570
  export function findLinkedInConversationSenderFromJSON(
@@ -2860,7 +2640,7 @@ export const FindLinkedInConversationResponse$inboundSchema: z.ZodMiniType<
2860
2640
  FindLinkedInConversationResponse,
2861
2641
  unknown
2862
2642
  > = z.object({
2863
- success: types.boolean(),
2643
+ success: types.literal(true),
2864
2644
  found: types.boolean(),
2865
2645
  conversation: types.nullable(
2866
2646
  z.lazy(() => FindLinkedInConversationConversation$inboundSchema),
@@ -2883,128 +2663,380 @@ export function findLinkedInConversationResponseFromJSON(
2883
2663
  }
2884
2664
 
2885
2665
  /** @internal */
2886
- export type GetConversationMessagesRequest$Outbound = {
2666
+ export type ArchiveConversationRequest$Outbound = {
2887
2667
  conversationUrn: string;
2888
- deliveredAt?: number | undefined;
2889
2668
  };
2890
2669
 
2891
2670
  /** @internal */
2892
- export const GetConversationMessagesRequest$outboundSchema: z.ZodMiniType<
2893
- GetConversationMessagesRequest$Outbound,
2894
- GetConversationMessagesRequest
2671
+ export const ArchiveConversationRequest$outboundSchema: z.ZodMiniType<
2672
+ ArchiveConversationRequest$Outbound,
2673
+ ArchiveConversationRequest
2895
2674
  > = z.object({
2896
2675
  conversationUrn: z.string(),
2897
- deliveredAt: z.optional(z.int()),
2898
2676
  });
2899
2677
 
2900
- export function getConversationMessagesRequestToJSON(
2901
- getConversationMessagesRequest: GetConversationMessagesRequest,
2678
+ export function archiveConversationRequestToJSON(
2679
+ archiveConversationRequest: ArchiveConversationRequest,
2902
2680
  ): string {
2903
2681
  return JSON.stringify(
2904
- GetConversationMessagesRequest$outboundSchema.parse(
2905
- getConversationMessagesRequest,
2682
+ ArchiveConversationRequest$outboundSchema.parse(archiveConversationRequest),
2683
+ );
2684
+ }
2685
+
2686
+ /** @internal */
2687
+ export const ArchiveConversationResponse$inboundSchema: z.ZodMiniType<
2688
+ ArchiveConversationResponse,
2689
+ unknown
2690
+ > = z.object({
2691
+ success: types.literal(true),
2692
+ creditsUsed: types.number(),
2693
+ retryAfter: types.number(),
2694
+ });
2695
+
2696
+ export function archiveConversationResponseFromJSON(
2697
+ jsonString: string,
2698
+ ): SafeParseResult<ArchiveConversationResponse, SDKValidationError> {
2699
+ return safeParse(
2700
+ jsonString,
2701
+ (x) => ArchiveConversationResponse$inboundSchema.parse(JSON.parse(x)),
2702
+ `Failed to parse 'ArchiveConversationResponse' from JSON`,
2703
+ );
2704
+ }
2705
+
2706
+ /** @internal */
2707
+ export type UnreactToMessageRequest$Outbound = {
2708
+ messageUrn: string;
2709
+ emoji: string;
2710
+ conversationUrn: string;
2711
+ };
2712
+
2713
+ /** @internal */
2714
+ export const UnreactToMessageRequest$outboundSchema: z.ZodMiniType<
2715
+ UnreactToMessageRequest$Outbound,
2716
+ UnreactToMessageRequest
2717
+ > = z.object({
2718
+ messageUrn: z.string(),
2719
+ emoji: z.string(),
2720
+ conversationUrn: z.string(),
2721
+ });
2722
+
2723
+ export function unreactToMessageRequestToJSON(
2724
+ unreactToMessageRequest: UnreactToMessageRequest,
2725
+ ): string {
2726
+ return JSON.stringify(
2727
+ UnreactToMessageRequest$outboundSchema.parse(unreactToMessageRequest),
2728
+ );
2729
+ }
2730
+
2731
+ /** @internal */
2732
+ export const UnreactToMessageResponse$inboundSchema: z.ZodMiniType<
2733
+ UnreactToMessageResponse,
2734
+ unknown
2735
+ > = z.object({
2736
+ success: types.literal(true),
2737
+ creditsUsed: types.number(),
2738
+ retryAfter: types.number(),
2739
+ });
2740
+
2741
+ export function unreactToMessageResponseFromJSON(
2742
+ jsonString: string,
2743
+ ): SafeParseResult<UnreactToMessageResponse, SDKValidationError> {
2744
+ return safeParse(
2745
+ jsonString,
2746
+ (x) => UnreactToMessageResponse$inboundSchema.parse(JSON.parse(x)),
2747
+ `Failed to parse 'UnreactToMessageResponse' from JSON`,
2748
+ );
2749
+ }
2750
+
2751
+ /** @internal */
2752
+ export type MarkConversationSeenRequest$Outbound = {
2753
+ conversationUrn: string;
2754
+ };
2755
+
2756
+ /** @internal */
2757
+ export const MarkConversationSeenRequest$outboundSchema: z.ZodMiniType<
2758
+ MarkConversationSeenRequest$Outbound,
2759
+ MarkConversationSeenRequest
2760
+ > = z.object({
2761
+ conversationUrn: z.string(),
2762
+ });
2763
+
2764
+ export function markConversationSeenRequestToJSON(
2765
+ markConversationSeenRequest: MarkConversationSeenRequest,
2766
+ ): string {
2767
+ return JSON.stringify(
2768
+ MarkConversationSeenRequest$outboundSchema.parse(
2769
+ markConversationSeenRequest,
2906
2770
  ),
2907
2771
  );
2908
2772
  }
2909
2773
 
2910
2774
  /** @internal */
2911
- export const GetConversationMessagesSender$inboundSchema: z.ZodMiniType<
2912
- GetConversationMessagesSender,
2775
+ export const MarkConversationSeenResponse$inboundSchema: z.ZodMiniType<
2776
+ MarkConversationSeenResponse,
2777
+ unknown
2778
+ > = z.object({
2779
+ success: types.literal(true),
2780
+ creditsUsed: types.number(),
2781
+ retryAfter: types.number(),
2782
+ });
2783
+
2784
+ export function markConversationSeenResponseFromJSON(
2785
+ jsonString: string,
2786
+ ): SafeParseResult<MarkConversationSeenResponse, SDKValidationError> {
2787
+ return safeParse(
2788
+ jsonString,
2789
+ (x) => MarkConversationSeenResponse$inboundSchema.parse(JSON.parse(x)),
2790
+ `Failed to parse 'MarkConversationSeenResponse' from JSON`,
2791
+ );
2792
+ }
2793
+
2794
+ /** @internal */
2795
+ export type StarConversationRequest$Outbound = {
2796
+ conversationUrn: string;
2797
+ };
2798
+
2799
+ /** @internal */
2800
+ export const StarConversationRequest$outboundSchema: z.ZodMiniType<
2801
+ StarConversationRequest$Outbound,
2802
+ StarConversationRequest
2803
+ > = z.object({
2804
+ conversationUrn: z.string(),
2805
+ });
2806
+
2807
+ export function starConversationRequestToJSON(
2808
+ starConversationRequest: StarConversationRequest,
2809
+ ): string {
2810
+ return JSON.stringify(
2811
+ StarConversationRequest$outboundSchema.parse(starConversationRequest),
2812
+ );
2813
+ }
2814
+
2815
+ /** @internal */
2816
+ export const StarConversationResponse$inboundSchema: z.ZodMiniType<
2817
+ StarConversationResponse,
2818
+ unknown
2819
+ > = z.object({
2820
+ success: types.literal(true),
2821
+ creditsUsed: types.number(),
2822
+ retryAfter: types.number(),
2823
+ });
2824
+
2825
+ export function starConversationResponseFromJSON(
2826
+ jsonString: string,
2827
+ ): SafeParseResult<StarConversationResponse, SDKValidationError> {
2828
+ return safeParse(
2829
+ jsonString,
2830
+ (x) => StarConversationResponse$inboundSchema.parse(JSON.parse(x)),
2831
+ `Failed to parse 'StarConversationResponse' from JSON`,
2832
+ );
2833
+ }
2834
+
2835
+ /** @internal */
2836
+ export type UnstarConversationRequest$Outbound = {
2837
+ conversationUrn: string;
2838
+ };
2839
+
2840
+ /** @internal */
2841
+ export const UnstarConversationRequest$outboundSchema: z.ZodMiniType<
2842
+ UnstarConversationRequest$Outbound,
2843
+ UnstarConversationRequest
2844
+ > = z.object({
2845
+ conversationUrn: z.string(),
2846
+ });
2847
+
2848
+ export function unstarConversationRequestToJSON(
2849
+ unstarConversationRequest: UnstarConversationRequest,
2850
+ ): string {
2851
+ return JSON.stringify(
2852
+ UnstarConversationRequest$outboundSchema.parse(unstarConversationRequest),
2853
+ );
2854
+ }
2855
+
2856
+ /** @internal */
2857
+ export const UnstarConversationResponse$inboundSchema: z.ZodMiniType<
2858
+ UnstarConversationResponse,
2859
+ unknown
2860
+ > = z.object({
2861
+ success: types.literal(true),
2862
+ creditsUsed: types.number(),
2863
+ retryAfter: types.number(),
2864
+ });
2865
+
2866
+ export function unstarConversationResponseFromJSON(
2867
+ jsonString: string,
2868
+ ): SafeParseResult<UnstarConversationResponse, SDKValidationError> {
2869
+ return safeParse(
2870
+ jsonString,
2871
+ (x) => UnstarConversationResponse$inboundSchema.parse(JSON.parse(x)),
2872
+ `Failed to parse 'UnstarConversationResponse' from JSON`,
2873
+ );
2874
+ }
2875
+
2876
+ /** @internal */
2877
+ export type ListStarredConversationsRequest$Outbound = {
2878
+ nextCursor?: string | undefined;
2879
+ };
2880
+
2881
+ /** @internal */
2882
+ export const ListStarredConversationsRequest$outboundSchema: z.ZodMiniType<
2883
+ ListStarredConversationsRequest$Outbound,
2884
+ ListStarredConversationsRequest
2885
+ > = z.object({
2886
+ nextCursor: z.optional(z.string()),
2887
+ });
2888
+
2889
+ export function listStarredConversationsRequestToJSON(
2890
+ listStarredConversationsRequest: ListStarredConversationsRequest,
2891
+ ): string {
2892
+ return JSON.stringify(
2893
+ ListStarredConversationsRequest$outboundSchema.parse(
2894
+ listStarredConversationsRequest,
2895
+ ),
2896
+ );
2897
+ }
2898
+
2899
+ /** @internal */
2900
+ export const ListStarredConversationsParticipant$inboundSchema: z.ZodMiniType<
2901
+ ListStarredConversationsParticipant,
2913
2902
  unknown
2914
2903
  > = z.object({
2904
+ profileUrn: types.string(),
2915
2905
  firstName: types.string(),
2916
2906
  lastName: types.string(),
2917
2907
  profileUrl: types.nullable(types.string()),
2918
2908
  headline: types.nullable(types.string()),
2919
2909
  profilePicture: types.nullable(types.string()),
2910
+ publicIdentifier: types.nullable(types.string()),
2920
2911
  });
2921
2912
 
2922
- export function getConversationMessagesSenderFromJSON(
2913
+ export function listStarredConversationsParticipantFromJSON(
2923
2914
  jsonString: string,
2924
- ): SafeParseResult<GetConversationMessagesSender, SDKValidationError> {
2915
+ ): SafeParseResult<ListStarredConversationsParticipant, SDKValidationError> {
2925
2916
  return safeParse(
2926
2917
  jsonString,
2927
- (x) => GetConversationMessagesSender$inboundSchema.parse(JSON.parse(x)),
2928
- `Failed to parse 'GetConversationMessagesSender' from JSON`,
2918
+ (x) =>
2919
+ ListStarredConversationsParticipant$inboundSchema.parse(JSON.parse(x)),
2920
+ `Failed to parse 'ListStarredConversationsParticipant' from JSON`,
2929
2921
  );
2930
2922
  }
2931
2923
 
2932
2924
  /** @internal */
2933
- export const GetConversationMessagesType$inboundSchema: z.ZodMiniType<
2934
- GetConversationMessagesType,
2925
+ export const ListStarredConversationsLastMessage$inboundSchema: z.ZodMiniType<
2926
+ ListStarredConversationsLastMessage,
2935
2927
  unknown
2936
- > = openEnums.inboundSchema(GetConversationMessagesType);
2928
+ > = z.object({
2929
+ text: types.nullable(types.string()),
2930
+ deliveredAt: types.number(),
2931
+ senderProfileUrn: types.string(),
2932
+ });
2933
+
2934
+ export function listStarredConversationsLastMessageFromJSON(
2935
+ jsonString: string,
2936
+ ): SafeParseResult<ListStarredConversationsLastMessage, SDKValidationError> {
2937
+ return safeParse(
2938
+ jsonString,
2939
+ (x) =>
2940
+ ListStarredConversationsLastMessage$inboundSchema.parse(JSON.parse(x)),
2941
+ `Failed to parse 'ListStarredConversationsLastMessage' from JSON`,
2942
+ );
2943
+ }
2937
2944
 
2938
2945
  /** @internal */
2939
- export const GetConversationMessagesAttachment$inboundSchema: z.ZodMiniType<
2940
- GetConversationMessagesAttachment,
2946
+ export const ListStarredConversationsConversation$inboundSchema: z.ZodMiniType<
2947
+ ListStarredConversationsConversation,
2941
2948
  unknown
2942
2949
  > = z.object({
2943
- type: GetConversationMessagesType$inboundSchema,
2944
- audioUrl: types.optional(types.string()),
2945
- audioDuration: types.optional(types.number()),
2946
- hostUrn: types.optional(types.string()),
2947
- repliedText: types.optional(types.string()),
2948
- repliedSenderName: types.optional(types.string()),
2949
- imageUrl: types.optional(types.string()),
2950
- fileName: types.optional(types.string()),
2951
- fileUrl: types.optional(types.string()),
2950
+ conversationUrn: types.string(),
2951
+ conversationUrl: types.string(),
2952
+ lastActivityAt: types.number(),
2953
+ createdAt: types.number(),
2954
+ read: types.boolean(),
2955
+ unreadCount: types.number(),
2956
+ groupChat: types.boolean(),
2957
+ participants: z.array(
2958
+ z.lazy(() => ListStarredConversationsParticipant$inboundSchema),
2959
+ ),
2960
+ lastMessage: types.nullable(
2961
+ z.lazy(() => ListStarredConversationsLastMessage$inboundSchema),
2962
+ ),
2952
2963
  });
2953
2964
 
2954
- export function getConversationMessagesAttachmentFromJSON(
2965
+ export function listStarredConversationsConversationFromJSON(
2955
2966
  jsonString: string,
2956
- ): SafeParseResult<GetConversationMessagesAttachment, SDKValidationError> {
2967
+ ): SafeParseResult<ListStarredConversationsConversation, SDKValidationError> {
2957
2968
  return safeParse(
2958
2969
  jsonString,
2959
- (x) => GetConversationMessagesAttachment$inboundSchema.parse(JSON.parse(x)),
2960
- `Failed to parse 'GetConversationMessagesAttachment' from JSON`,
2970
+ (x) =>
2971
+ ListStarredConversationsConversation$inboundSchema.parse(JSON.parse(x)),
2972
+ `Failed to parse 'ListStarredConversationsConversation' from JSON`,
2961
2973
  );
2962
2974
  }
2963
2975
 
2964
2976
  /** @internal */
2965
- export const GetConversationMessagesMessage$inboundSchema: z.ZodMiniType<
2966
- GetConversationMessagesMessage,
2977
+ export const ListStarredConversationsResponse$inboundSchema: z.ZodMiniType<
2978
+ ListStarredConversationsResponse,
2967
2979
  unknown
2968
2980
  > = z.object({
2969
- messageUrn: types.string(),
2970
- text: types.nullable(types.string()),
2971
- deliveredAt: types.number(),
2972
- senderProfileUrn: types.string(),
2973
- sender: z.lazy(() => GetConversationMessagesSender$inboundSchema),
2974
- attachments: z.array(
2975
- z.lazy(() => GetConversationMessagesAttachment$inboundSchema),
2981
+ success: types.literal(true),
2982
+ conversations: z.array(
2983
+ z.lazy(() => ListStarredConversationsConversation$inboundSchema),
2976
2984
  ),
2985
+ nextCursor: types.nullable(types.string()),
2986
+ creditsUsed: types.number(),
2987
+ retryAfter: types.number(),
2977
2988
  });
2978
2989
 
2979
- export function getConversationMessagesMessageFromJSON(
2990
+ export function listStarredConversationsResponseFromJSON(
2980
2991
  jsonString: string,
2981
- ): SafeParseResult<GetConversationMessagesMessage, SDKValidationError> {
2992
+ ): SafeParseResult<ListStarredConversationsResponse, SDKValidationError> {
2982
2993
  return safeParse(
2983
2994
  jsonString,
2984
- (x) => GetConversationMessagesMessage$inboundSchema.parse(JSON.parse(x)),
2985
- `Failed to parse 'GetConversationMessagesMessage' from JSON`,
2995
+ (x) => ListStarredConversationsResponse$inboundSchema.parse(JSON.parse(x)),
2996
+ `Failed to parse 'ListStarredConversationsResponse' from JSON`,
2986
2997
  );
2987
2998
  }
2988
2999
 
2989
3000
  /** @internal */
2990
- export const GetConversationMessagesResponse$inboundSchema: z.ZodMiniType<
2991
- GetConversationMessagesResponse,
3001
+ export type UnarchiveConversationRequest$Outbound = {
3002
+ conversationUrn: string;
3003
+ };
3004
+
3005
+ /** @internal */
3006
+ export const UnarchiveConversationRequest$outboundSchema: z.ZodMiniType<
3007
+ UnarchiveConversationRequest$Outbound,
3008
+ UnarchiveConversationRequest
3009
+ > = z.object({
3010
+ conversationUrn: z.string(),
3011
+ });
3012
+
3013
+ export function unarchiveConversationRequestToJSON(
3014
+ unarchiveConversationRequest: UnarchiveConversationRequest,
3015
+ ): string {
3016
+ return JSON.stringify(
3017
+ UnarchiveConversationRequest$outboundSchema.parse(
3018
+ unarchiveConversationRequest,
3019
+ ),
3020
+ );
3021
+ }
3022
+
3023
+ /** @internal */
3024
+ export const UnarchiveConversationResponse$inboundSchema: z.ZodMiniType<
3025
+ UnarchiveConversationResponse,
2992
3026
  unknown
2993
3027
  > = z.object({
2994
- success: types.boolean(),
2995
- messages: z.array(z.lazy(() => GetConversationMessagesMessage$inboundSchema)),
2996
- prevCursor: types.nullable(types.number()),
3028
+ success: types.literal(true),
2997
3029
  creditsUsed: types.number(),
2998
3030
  retryAfter: types.number(),
2999
3031
  });
3000
3032
 
3001
- export function getConversationMessagesResponseFromJSON(
3033
+ export function unarchiveConversationResponseFromJSON(
3002
3034
  jsonString: string,
3003
- ): SafeParseResult<GetConversationMessagesResponse, SDKValidationError> {
3035
+ ): SafeParseResult<UnarchiveConversationResponse, SDKValidationError> {
3004
3036
  return safeParse(
3005
3037
  jsonString,
3006
- (x) => GetConversationMessagesResponse$inboundSchema.parse(JSON.parse(x)),
3007
- `Failed to parse 'GetConversationMessagesResponse' from JSON`,
3038
+ (x) => UnarchiveConversationResponse$inboundSchema.parse(JSON.parse(x)),
3039
+ `Failed to parse 'UnarchiveConversationResponse' from JSON`,
3008
3040
  );
3009
3041
  }
3010
3042
 
@@ -3143,7 +3175,7 @@ export const GetCampaignStatusResponse$inboundSchema: z.ZodMiniType<
3143
3175
  GetCampaignStatusResponse,
3144
3176
  unknown
3145
3177
  > = z.object({
3146
- success: types.boolean(),
3178
+ success: types.literal(true),
3147
3179
  profiles: z.array(z.lazy(() => GetCampaignStatusProfile$inboundSchema)),
3148
3180
  creditsUsed: types.number(),
3149
3181
  retryAfter: types.number(),
@@ -3254,7 +3286,7 @@ export const SyncCampaignActionsResponse$inboundSchema: z.ZodMiniType<
3254
3286
  SyncCampaignActionsResponse,
3255
3287
  unknown
3256
3288
  > = z.object({
3257
- success: types.boolean(),
3289
+ success: types.literal(true),
3258
3290
  synced: z.array(z.lazy(() => Synced$inboundSchema)),
3259
3291
  creditsUsed: types.number(),
3260
3292
  retryAfter: types.number(),
@@ -3317,7 +3349,7 @@ export const GetCampaignStatsResponse$inboundSchema: z.ZodMiniType<
3317
3349
  GetCampaignStatsResponse,
3318
3350
  unknown
3319
3351
  > = z.object({
3320
- success: types.boolean(),
3352
+ success: types.literal(true),
3321
3353
  stats: z.record(z.string(), types.number()),
3322
3354
  totalProfiles: types.number(),
3323
3355
  creditsUsed: types.number(),