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
@@ -6,47 +6,8 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import * as openEnums from "../../types/enums.js";
8
8
  import * as types from "../../types/primitives.js";
9
- /**
10
- * Reaction type (default: LIKE)
11
- */
12
- export const ReactionType = {
13
- Like: "LIKE",
14
- Love: "LOVE",
15
- Celebrate: "CELEBRATE",
16
- Support: "SUPPORT",
17
- Funny: "FUNNY",
18
- Insightful: "INSIGHTFUL",
19
- };
20
- /**
21
- * Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
22
- */
23
- export const Mode = {
24
- Scheduled: "scheduled",
25
- Instant: "instant",
26
- };
27
- /**
28
- * Post visibility
29
- */
30
- export const Visibility = {
31
- Anyone: "ANYONE",
32
- Connections: "CONNECTIONS",
33
- };
34
- export const GetMyLinkedInProfileType = {
35
- Activity: "activity",
36
- UgcPost: "ugcPost",
37
- Share: "share",
38
- };
39
- export const RefreshMyLinkedInProfileType = {
40
- Activity: "activity",
41
- UgcPost: "ugcPost",
42
- Share: "share",
43
- };
44
- export const GetMyLinkedInPostsType = {
45
- Activity: "activity",
46
- UgcPost: "ugcPost",
47
- Share: "share",
48
- };
49
- export const FindLinkedInConversationType = {
9
+ import { ConnectionRequest$inboundSchema, GetMyLimitsMessage$inboundSchema, ProfileVisit$inboundSchema, ScrapingDaily$inboundSchema, ScrapingWeekly$inboundSchema, } from "./scraping-weekly.js";
10
+ export const GetConversationMessagesType = {
50
11
  Audio: "audio",
51
12
  SharedPost: "shared_post",
52
13
  RepliedMessage: "replied_message",
@@ -54,7 +15,7 @@ export const FindLinkedInConversationType = {
54
15
  File: "file",
55
16
  Unknown: "unknown",
56
17
  };
57
- export const GetConversationMessagesType = {
18
+ export const FindLinkedInConversationType = {
58
19
  Audio: "audio",
59
20
  SharedPost: "shared_post",
60
21
  RepliedMessage: "replied_message",
@@ -70,570 +31,451 @@ export const Action = {
70
31
  Connect: "connect",
71
32
  };
72
33
  /** @internal */
73
- export const ReplyToLinkedInCommentRequest$outboundSchema = z.object({
74
- commentUrn: z.string(),
75
- message: z.string(),
76
- campaignSlug: z.optional(z.string()),
77
- actionSlug: z.optional(z.string()),
78
- });
79
- export function replyToLinkedInCommentRequestToJSON(replyToLinkedInCommentRequest) {
80
- return JSON.stringify(ReplyToLinkedInCommentRequest$outboundSchema.parse(replyToLinkedInCommentRequest));
81
- }
82
- /** @internal */
83
- export const ReplyToLinkedInCommentResponse$inboundSchema = z.object({
84
- success: types.boolean(),
85
- replyUrn: types.optional(types.string()),
86
- duplicate: types.optional(types.boolean()),
87
- creditsUsed: types.number(),
88
- retryAfter: types.number(),
34
+ export const Scraping$inboundSchema = z
35
+ .object({
36
+ daily: ScrapingDaily$inboundSchema,
37
+ weekly: types.nullable(ScrapingWeekly$inboundSchema),
38
+ minIntervalSeconds: types.number(),
39
+ nextResetDaily: types.date(),
40
+ nextResetWeekly: types.nullable(types.date()),
89
41
  });
90
- export function replyToLinkedInCommentResponseFromJSON(jsonString) {
91
- return safeParse(jsonString, (x) => ReplyToLinkedInCommentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyToLinkedInCommentResponse' from JSON`);
42
+ export function scrapingFromJSON(jsonString) {
43
+ return safeParse(jsonString, (x) => Scraping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scraping' from JSON`);
92
44
  }
93
45
  /** @internal */
94
- export const ReactionType$outboundSchema = z
95
- .enum(ReactionType);
96
- /** @internal */
97
- export const LikeLinkedInCommentRequest$outboundSchema = z.object({
98
- commentUrn: z.string(),
99
- reactionType: z._default(ReactionType$outboundSchema, "LIKE"),
100
- campaignSlug: z.optional(z.string()),
101
- actionSlug: z.optional(z.string()),
102
- });
103
- export function likeLinkedInCommentRequestToJSON(likeLinkedInCommentRequest) {
104
- return JSON.stringify(LikeLinkedInCommentRequest$outboundSchema.parse(likeLinkedInCommentRequest));
46
+ export const Limits$inboundSchema = z.pipe(z.object({
47
+ connection_request: ConnectionRequest$inboundSchema,
48
+ message: GetMyLimitsMessage$inboundSchema,
49
+ profile_visit: ProfileVisit$inboundSchema,
50
+ scraping: z.lazy(() => Scraping$inboundSchema),
51
+ }), z.transform((v) => {
52
+ return remap$(v, {
53
+ "connection_request": "connectionRequest",
54
+ "profile_visit": "profileVisit",
55
+ });
56
+ }));
57
+ export function limitsFromJSON(jsonString) {
58
+ return safeParse(jsonString, (x) => Limits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Limits' from JSON`);
105
59
  }
106
60
  /** @internal */
107
- export const LikeLinkedInCommentResponse$inboundSchema = z.object({
108
- success: types.boolean(),
109
- resourceKey: types.optional(types.string()),
110
- duplicate: types.optional(types.boolean()),
61
+ export const GetMyLimitsResponse$inboundSchema = z.object({
62
+ success: types.literal(true),
63
+ multiplier: types.number(),
64
+ limits: z.lazy(() => Limits$inboundSchema),
111
65
  creditsUsed: types.number(),
112
66
  retryAfter: types.number(),
113
67
  });
114
- export function likeLinkedInCommentResponseFromJSON(jsonString) {
115
- return safeParse(jsonString, (x) => LikeLinkedInCommentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LikeLinkedInCommentResponse' from JSON`);
116
- }
117
- /** @internal */
118
- export const Mode$outboundSchema = z.enum(Mode);
119
- /** @internal */
120
- export const Visibility$outboundSchema = z
121
- .enum(Visibility);
122
- /** @internal */
123
- export const Mention$outboundSchema = z.object({
124
- profileUrn: z.string(),
125
- start: z.int(),
126
- length: z.int(),
127
- });
128
- export function mentionToJSON(mention) {
129
- return JSON.stringify(Mention$outboundSchema.parse(mention));
68
+ export function getMyLimitsResponseFromJSON(jsonString) {
69
+ return safeParse(jsonString, (x) => GetMyLimitsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLimitsResponse' from JSON`);
130
70
  }
131
71
  /** @internal */
132
- export const PublishLinkedInPostRequest$outboundSchema = z.object({
133
- text: z.string(),
134
- mode: Mode$outboundSchema,
135
- scheduledAt: z.optional(z.int()),
136
- imageUrl: z.optional(z.string()),
137
- visibility: z._default(Visibility$outboundSchema, "ANYONE"),
138
- mentions: z.optional(z.array(z.lazy(() => Mention$outboundSchema))),
139
- campaignSlug: z.optional(z.string()),
140
- actionSlug: z.optional(z.string()),
72
+ export const Credits$inboundSchema = z.object({
73
+ current: types.number(),
74
+ limit: types.nullable(types.number()),
75
+ remaining: types.nullable(types.number()),
76
+ percentage: types.number(),
77
+ isUnlimited: types.boolean(),
141
78
  });
142
- export function publishLinkedInPostRequestToJSON(publishLinkedInPostRequest) {
143
- return JSON.stringify(PublishLinkedInPostRequest$outboundSchema.parse(publishLinkedInPostRequest));
79
+ export function creditsFromJSON(jsonString) {
80
+ return safeParse(jsonString, (x) => Credits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Credits' from JSON`);
144
81
  }
145
82
  /** @internal */
146
- export const PublishLinkedInPostResponse$inboundSchema = z.object({
147
- success: types.boolean(),
148
- shareUrn: types.string(),
149
- activityUrn: types.nullable(types.string()),
150
- duplicate: types.optional(types.boolean()),
83
+ export const GetMyCreditsResponse$inboundSchema = z.object({
84
+ success: types.literal(true),
85
+ credits: z.lazy(() => Credits$inboundSchema),
151
86
  creditsUsed: types.number(),
152
87
  retryAfter: types.number(),
153
88
  });
154
- export function publishLinkedInPostResponseFromJSON(jsonString) {
155
- return safeParse(jsonString, (x) => PublishLinkedInPostResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublishLinkedInPostResponse' from JSON`);
89
+ export function getMyCreditsResponseFromJSON(jsonString) {
90
+ return safeParse(jsonString, (x) => GetMyCreditsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyCreditsResponse' from JSON`);
156
91
  }
157
92
  /** @internal */
158
- export const GetMyLinkedInProfilePositionStartDate$inboundSchema = z.object({
159
- month: types.nullable(types.number()),
160
- year: types.number(),
161
- });
162
- export function getMyLinkedInProfilePositionStartDateFromJSON(jsonString) {
163
- return safeParse(jsonString, (x) => GetMyLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfilePositionStartDate' from JSON`);
93
+ export const GetLinkedInProfileViewsRequest$outboundSchema = z.object({});
94
+ export function getLinkedInProfileViewsRequestToJSON(getLinkedInProfileViewsRequest) {
95
+ return JSON.stringify(GetLinkedInProfileViewsRequest$outboundSchema.parse(getLinkedInProfileViewsRequest));
164
96
  }
165
97
  /** @internal */
166
- export const GetMyLinkedInProfilePositionEndDate$inboundSchema = z.object({
167
- month: types.nullable(types.number()),
168
- year: types.number(),
98
+ export const GetLinkedInProfileViewsResponse$inboundSchema = z.object({
99
+ success: types.literal(true),
100
+ views: z.array(z.any()),
101
+ total: types.number(),
102
+ creditsUsed: types.number(),
103
+ retryAfter: types.number(),
169
104
  });
170
- export function getMyLinkedInProfilePositionEndDateFromJSON(jsonString) {
171
- return safeParse(jsonString, (x) => GetMyLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfilePositionEndDate' from JSON`);
105
+ export function getLinkedInProfileViewsResponseFromJSON(jsonString) {
106
+ return safeParse(jsonString, (x) => GetLinkedInProfileViewsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLinkedInProfileViewsResponse' from JSON`);
172
107
  }
173
108
  /** @internal */
174
- export const GetMyLinkedInProfilePosition$inboundSchema = z.object({
175
- companyName: types.nullable(types.string()),
176
- title: types.nullable(types.string()),
177
- companyUrl: types.nullable(types.string()),
178
- companyLogo: types.nullable(types.string()),
179
- startDate: types.nullable(z.lazy(() => GetMyLinkedInProfilePositionStartDate$inboundSchema)),
180
- endDate: types.nullable(z.lazy(() => GetMyLinkedInProfilePositionEndDate$inboundSchema)),
181
- isCurrent: types.boolean(),
182
- });
183
- export function getMyLinkedInProfilePositionFromJSON(jsonString) {
184
- return safeParse(jsonString, (x) => GetMyLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfilePosition' from JSON`);
109
+ export const GetLinkedInSearchAppearancesRequest$outboundSchema = z.object({});
110
+ export function getLinkedInSearchAppearancesRequestToJSON(getLinkedInSearchAppearancesRequest) {
111
+ return JSON.stringify(GetLinkedInSearchAppearancesRequest$outboundSchema.parse(getLinkedInSearchAppearancesRequest));
185
112
  }
186
113
  /** @internal */
187
- export const GetMyLinkedInProfileEducationStartDate$inboundSchema = z.object({
188
- month: types.nullable(types.number()),
189
- year: types.number(),
114
+ export const GetLinkedInSearchAppearancesResponse$inboundSchema = z.object({
115
+ success: types.literal(true),
116
+ appearances: z.any(),
117
+ creditsUsed: types.number(),
118
+ retryAfter: types.number(),
190
119
  });
191
- export function getMyLinkedInProfileEducationStartDateFromJSON(jsonString) {
192
- return safeParse(jsonString, (x) => GetMyLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileEducationStartDate' from JSON`);
120
+ export function getLinkedInSearchAppearancesResponseFromJSON(jsonString) {
121
+ return safeParse(jsonString, (x) => GetLinkedInSearchAppearancesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLinkedInSearchAppearancesResponse' from JSON`);
193
122
  }
194
123
  /** @internal */
195
- export const GetMyLinkedInProfileEducationEndDate$inboundSchema = z.object({
196
- month: types.nullable(types.number()),
197
- year: types.number(),
124
+ export const GetLinkedInPostAnalyticsRequest$outboundSchema = z.object({
125
+ postUrl: z.string(),
198
126
  });
199
- export function getMyLinkedInProfileEducationEndDateFromJSON(jsonString) {
200
- return safeParse(jsonString, (x) => GetMyLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileEducationEndDate' from JSON`);
127
+ export function getLinkedInPostAnalyticsRequestToJSON(getLinkedInPostAnalyticsRequest) {
128
+ return JSON.stringify(GetLinkedInPostAnalyticsRequest$outboundSchema.parse(getLinkedInPostAnalyticsRequest));
201
129
  }
202
130
  /** @internal */
203
- export const GetMyLinkedInProfileEducation$inboundSchema = z.object({
204
- schoolName: types.nullable(types.string()),
205
- degreeName: types.nullable(types.string()),
206
- fieldOfStudy: types.nullable(types.string()),
207
- schoolUrl: types.nullable(types.string()),
208
- schoolLogo: types.nullable(types.string()),
209
- startDate: types.nullable(z.lazy(() => GetMyLinkedInProfileEducationStartDate$inboundSchema)),
210
- endDate: types.nullable(z.lazy(() => GetMyLinkedInProfileEducationEndDate$inboundSchema)),
131
+ export const GetLinkedInPostAnalyticsResponse$inboundSchema = z.object({
132
+ success: types.literal(true),
133
+ analytics: z.any(),
134
+ creditsUsed: types.number(),
135
+ retryAfter: types.number(),
211
136
  });
212
- export function getMyLinkedInProfileEducationFromJSON(jsonString) {
213
- return safeParse(jsonString, (x) => GetMyLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileEducation' from JSON`);
137
+ export function getLinkedInPostAnalyticsResponseFromJSON(jsonString) {
138
+ return safeParse(jsonString, (x) => GetLinkedInPostAnalyticsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLinkedInPostAnalyticsResponse' from JSON`);
214
139
  }
215
140
  /** @internal */
216
- export const GetMyLinkedInProfileLocation$inboundSchema = z.object({
217
- countryCode: types.string(),
218
- postalCode: types.optional(types.string()),
219
- });
220
- export function getMyLinkedInProfileLocationFromJSON(jsonString) {
221
- return safeParse(jsonString, (x) => GetMyLinkedInProfileLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileLocation' from JSON`);
141
+ export const GetLinkedInFollowerAnalyticsRequest$outboundSchema = z.object({});
142
+ export function getLinkedInFollowerAnalyticsRequestToJSON(getLinkedInFollowerAnalyticsRequest) {
143
+ return JSON.stringify(GetLinkedInFollowerAnalyticsRequest$outboundSchema.parse(getLinkedInFollowerAnalyticsRequest));
222
144
  }
223
145
  /** @internal */
224
- export const GetMyLinkedInProfileType$inboundSchema = openEnums.inboundSchema(GetMyLinkedInProfileType);
225
- /** @internal */
226
- export const GetMyLinkedInProfileLastPost$inboundSchema = z.object({
227
- postUrl: types.string(),
228
- text: types.string(),
229
- date: types.number(),
230
- likesCount: types.number(),
231
- commentsCount: types.number(),
232
- sharesCount: types.number(),
233
- postUrn: types.string(),
234
- postId: types.string(),
235
- type: GetMyLinkedInProfileType$inboundSchema,
236
- });
237
- export function getMyLinkedInProfileLastPostFromJSON(jsonString) {
238
- return safeParse(jsonString, (x) => GetMyLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileLastPost' from JSON`);
239
- }
240
- /** @internal */
241
- export const GetMyLinkedInProfileResponse$inboundSchema = z.object({
242
- success: types.boolean(),
243
- linkedinProfileId: types.nullable(types.string()),
244
- linkedinName: types.nullable(types.string()),
245
- linkedinEmail: types.nullable(types.string()),
246
- profileUrn: types.nullable(types.string()),
247
- headline: types.nullable(types.string()),
248
- profilePic: types.nullable(types.string()),
249
- profileUrl: types.nullable(types.string()),
250
- positions: types.optional(z.array(z.lazy(() => GetMyLinkedInProfilePosition$inboundSchema))),
251
- educations: types.optional(z.array(z.lazy(() => GetMyLinkedInProfileEducation$inboundSchema))),
252
- connectionsCount: types.nullable(types.number()),
253
- location: types.nullable(z.lazy(() => GetMyLinkedInProfileLocation$inboundSchema)),
254
- isVerified: types.nullable(types.boolean()),
255
- lastPosts: types.optional(z.array(z.lazy(() => GetMyLinkedInProfileLastPost$inboundSchema))),
146
+ export const GetLinkedInFollowerAnalyticsResponse$inboundSchema = z.object({
147
+ success: types.literal(true),
148
+ analytics: z.any(),
256
149
  creditsUsed: types.number(),
257
150
  retryAfter: types.number(),
258
151
  });
259
- export function getMyLinkedInProfileResponseFromJSON(jsonString) {
260
- return safeParse(jsonString, (x) => GetMyLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileResponse' from JSON`);
261
- }
262
- /** @internal */
263
- export const RefreshMyLinkedInProfilePositionStartDate$inboundSchema = z.object({
264
- month: types.nullable(types.number()),
265
- year: types.number(),
266
- });
267
- export function refreshMyLinkedInProfilePositionStartDateFromJSON(jsonString) {
268
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfilePositionStartDate' from JSON`);
152
+ export function getLinkedInFollowerAnalyticsResponseFromJSON(jsonString) {
153
+ return safeParse(jsonString, (x) => GetLinkedInFollowerAnalyticsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLinkedInFollowerAnalyticsResponse' from JSON`);
269
154
  }
270
155
  /** @internal */
271
- export const RefreshMyLinkedInProfilePositionEndDate$inboundSchema = z.object({
272
- month: types.nullable(types.number()),
273
- year: types.number(),
156
+ export const Page$inboundSchema = z.object({
157
+ id: types.string(),
158
+ universalName: types.string(),
159
+ name: types.string(),
160
+ url: types.string(),
161
+ logoUrl: types.nullable(types.string()),
162
+ followerCount: types.nullable(types.number()),
163
+ industry: types.nullable(types.string()),
164
+ employeeCount: types.nullable(types.number()),
165
+ adminRole: types.nullable(types.string()),
274
166
  });
275
- export function refreshMyLinkedInProfilePositionEndDateFromJSON(jsonString) {
276
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfilePositionEndDate' from JSON`);
167
+ export function pageFromJSON(jsonString) {
168
+ return safeParse(jsonString, (x) => Page$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Page' from JSON`);
277
169
  }
278
170
  /** @internal */
279
- export const RefreshMyLinkedInProfilePosition$inboundSchema = z.object({
280
- companyName: types.nullable(types.string()),
281
- title: types.nullable(types.string()),
282
- companyUrl: types.nullable(types.string()),
283
- companyLogo: types.nullable(types.string()),
284
- startDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfilePositionStartDate$inboundSchema)),
285
- endDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfilePositionEndDate$inboundSchema)),
286
- isCurrent: types.boolean(),
171
+ export const ListLinkedInCompanyPagesResponse$inboundSchema = z.object({
172
+ success: types.literal(true),
173
+ pages: z.array(z.lazy(() => Page$inboundSchema)),
174
+ total: types.number(),
175
+ creditsUsed: types.number(),
176
+ retryAfter: types.number(),
287
177
  });
288
- export function refreshMyLinkedInProfilePositionFromJSON(jsonString) {
289
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfilePosition' from JSON`);
178
+ export function listLinkedInCompanyPagesResponseFromJSON(jsonString) {
179
+ return safeParse(jsonString, (x) => ListLinkedInCompanyPagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListLinkedInCompanyPagesResponse' from JSON`);
290
180
  }
291
181
  /** @internal */
292
- export const RefreshMyLinkedInProfileEducationStartDate$inboundSchema = z.object({
293
- month: types.nullable(types.number()),
294
- year: types.number(),
182
+ export const GetCompanyPagePostsRequest$outboundSchema = z.object({
183
+ universalName: z.string(),
184
+ count: z._default(z.int(), 10),
185
+ start: z._default(z.int(), 0),
295
186
  });
296
- export function refreshMyLinkedInProfileEducationStartDateFromJSON(jsonString) {
297
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileEducationStartDate' from JSON`);
187
+ export function getCompanyPagePostsRequestToJSON(getCompanyPagePostsRequest) {
188
+ return JSON.stringify(GetCompanyPagePostsRequest$outboundSchema.parse(getCompanyPagePostsRequest));
298
189
  }
299
190
  /** @internal */
300
- export const RefreshMyLinkedInProfileEducationEndDate$inboundSchema = z.object({
301
- month: types.nullable(types.number()),
302
- year: types.number(),
191
+ export const GetCompanyPagePostsPost$inboundSchema = z.object({
192
+ activityUrn: types.string(),
193
+ postUrl: types.string(),
194
+ text: types.nullable(types.string()),
195
+ publishedAt: types.nullable(types.number()),
196
+ numLikes: types.nullable(types.number()),
197
+ numComments: types.nullable(types.number()),
303
198
  });
304
- export function refreshMyLinkedInProfileEducationEndDateFromJSON(jsonString) {
305
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileEducationEndDate' from JSON`);
199
+ export function getCompanyPagePostsPostFromJSON(jsonString) {
200
+ return safeParse(jsonString, (x) => GetCompanyPagePostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCompanyPagePostsPost' from JSON`);
306
201
  }
307
202
  /** @internal */
308
- export const RefreshMyLinkedInProfileEducation$inboundSchema = z.object({
309
- schoolName: types.nullable(types.string()),
310
- degreeName: types.nullable(types.string()),
311
- fieldOfStudy: types.nullable(types.string()),
312
- schoolUrl: types.nullable(types.string()),
313
- schoolLogo: types.nullable(types.string()),
314
- startDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfileEducationStartDate$inboundSchema)),
315
- endDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfileEducationEndDate$inboundSchema)),
203
+ export const GetCompanyPagePostsResponse$inboundSchema = z.object({
204
+ success: types.literal(true),
205
+ posts: z.array(z.lazy(() => GetCompanyPagePostsPost$inboundSchema)),
206
+ total: types.number(),
207
+ creditsUsed: types.number(),
208
+ retryAfter: types.number(),
316
209
  });
317
- export function refreshMyLinkedInProfileEducationFromJSON(jsonString) {
318
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileEducation' from JSON`);
210
+ export function getCompanyPagePostsResponseFromJSON(jsonString) {
211
+ return safeParse(jsonString, (x) => GetCompanyPagePostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCompanyPagePostsResponse' from JSON`);
319
212
  }
320
213
  /** @internal */
321
- export const RefreshMyLinkedInProfileLocation$inboundSchema = z.object({
322
- countryCode: types.string(),
323
- postalCode: types.optional(types.string()),
214
+ export const GetCompanyPagePermissionsRequest$outboundSchema = z.object({
215
+ universalName: z.string(),
324
216
  });
325
- export function refreshMyLinkedInProfileLocationFromJSON(jsonString) {
326
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfileLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileLocation' from JSON`);
217
+ export function getCompanyPagePermissionsRequestToJSON(getCompanyPagePermissionsRequest) {
218
+ return JSON.stringify(GetCompanyPagePermissionsRequest$outboundSchema.parse(getCompanyPagePermissionsRequest));
327
219
  }
328
220
  /** @internal */
329
- export const RefreshMyLinkedInProfileType$inboundSchema = openEnums.inboundSchema(RefreshMyLinkedInProfileType);
330
- /** @internal */
331
- export const RefreshMyLinkedInProfileLastPost$inboundSchema = z.object({
332
- postUrl: types.string(),
333
- text: types.string(),
334
- date: types.number(),
335
- likesCount: types.number(),
336
- commentsCount: types.number(),
337
- sharesCount: types.number(),
338
- postUrn: types.string(),
339
- postId: types.string(),
340
- type: RefreshMyLinkedInProfileType$inboundSchema,
341
- });
342
- export function refreshMyLinkedInProfileLastPostFromJSON(jsonString) {
343
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileLastPost' from JSON`);
344
- }
345
- /** @internal */
346
- export const RefreshMyLinkedInProfileResponse$inboundSchema = z.object({
347
- success: types.boolean(),
348
- linkedinProfileId: types.nullable(types.string()),
349
- linkedinName: types.nullable(types.string()),
350
- linkedinEmail: types.nullable(types.string()),
351
- profileUrn: types.nullable(types.string()),
352
- headline: types.nullable(types.string()),
353
- profilePic: types.nullable(types.string()),
354
- profileUrl: types.nullable(types.string()),
355
- positions: types.optional(z.array(z.lazy(() => RefreshMyLinkedInProfilePosition$inboundSchema))),
356
- educations: types.optional(z.array(z.lazy(() => RefreshMyLinkedInProfileEducation$inboundSchema))),
357
- connectionsCount: types.nullable(types.number()),
358
- location: types.nullable(z.lazy(() => RefreshMyLinkedInProfileLocation$inboundSchema)),
359
- isVerified: types.nullable(types.boolean()),
360
- lastPosts: types.optional(z.array(z.lazy(() => RefreshMyLinkedInProfileLastPost$inboundSchema))),
361
- refreshed: types.boolean(),
221
+ export const Permissions$inboundSchema = z
222
+ .object({
223
+ role: types.nullable(types.string()),
224
+ canCreateOrganicShare: types.boolean(),
225
+ canCreateComment: types.boolean(),
226
+ canCreateReaction: types.boolean(),
227
+ canDeleteShare: types.boolean(),
228
+ canPinShare: types.boolean(),
229
+ canSendMessages: types.boolean(),
230
+ canReadMessages: types.boolean(),
231
+ canReadAdminDashboard: types.boolean(),
232
+ canReadOrganizationUpdateAnalytics: types.boolean(),
233
+ canReadOrganizationVisitorAnalytics: types.boolean(),
234
+ canReadOrganizationFollowerAnalytics: types.boolean(),
235
+ canReadOrganizationSearchAppearanceAnalytics: types.boolean(),
236
+ canUpdateOrganizationProfile: types.boolean(),
237
+ canEditAdministrators: types.boolean(),
238
+ canDeactivateOrganization: types.boolean(),
239
+ canEditEvents: types.boolean(),
240
+ canReadEvents: types.boolean(),
241
+ canSponsorShare: types.boolean(),
242
+ canManageCareerPages: types.boolean(),
243
+ canManageMessagingAccess: types.boolean(),
244
+ canNotifyEmployees: types.boolean(),
245
+ canExportLeads: types.boolean(),
246
+ });
247
+ export function permissionsFromJSON(jsonString) {
248
+ return safeParse(jsonString, (x) => Permissions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Permissions' from JSON`);
249
+ }
250
+ /** @internal */
251
+ export const GetCompanyPagePermissionsResponse$inboundSchema = z.object({
252
+ success: types.literal(true),
253
+ universalName: types.string(),
254
+ permissions: z.lazy(() => Permissions$inboundSchema),
362
255
  creditsUsed: types.number(),
363
256
  retryAfter: types.number(),
364
257
  });
365
- export function refreshMyLinkedInProfileResponseFromJSON(jsonString) {
366
- return safeParse(jsonString, (x) => RefreshMyLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileResponse' from JSON`);
258
+ export function getCompanyPagePermissionsResponseFromJSON(jsonString) {
259
+ return safeParse(jsonString, (x) => GetCompanyPagePermissionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCompanyPagePermissionsResponse' from JSON`);
367
260
  }
368
261
  /** @internal */
369
- export const GetMyLinkedInPostsRequest$outboundSchema = z.object({
370
- count: z.optional(z.int()),
371
- start: z.optional(z.int()),
372
- paginationToken: z.optional(z.string()),
262
+ export const GetCompanyPageAnalyticsRequest$outboundSchema = z.object({
263
+ companyId: z.string(),
373
264
  });
374
- export function getMyLinkedInPostsRequestToJSON(getMyLinkedInPostsRequest) {
375
- return JSON.stringify(GetMyLinkedInPostsRequest$outboundSchema.parse(getMyLinkedInPostsRequest));
265
+ export function getCompanyPageAnalyticsRequestToJSON(getCompanyPageAnalyticsRequest) {
266
+ return JSON.stringify(GetCompanyPageAnalyticsRequest$outboundSchema.parse(getCompanyPageAnalyticsRequest));
376
267
  }
377
268
  /** @internal */
378
- export const GetMyLinkedInPostsType$inboundSchema = openEnums.inboundSchema(GetMyLinkedInPostsType);
379
- /** @internal */
380
- export const GetMyLinkedInPostsPost$inboundSchema = z.object({
381
- postUrl: types.string(),
382
- text: types.string(),
383
- date: types.number(),
384
- likesCount: types.number(),
385
- commentsCount: types.number(),
386
- sharesCount: types.number(),
387
- postUrn: types.string(),
388
- postId: types.string(),
389
- type: GetMyLinkedInPostsType$inboundSchema,
390
- });
391
- export function getMyLinkedInPostsPostFromJSON(jsonString) {
392
- return safeParse(jsonString, (x) => GetMyLinkedInPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInPostsPost' from JSON`);
393
- }
394
- /** @internal */
395
- export const GetMyLinkedInPostsResponse$inboundSchema = z.object({
396
- success: types.boolean(),
397
- posts: z.array(z.lazy(() => GetMyLinkedInPostsPost$inboundSchema)),
398
- count: types.number(),
399
- total: types.number(),
400
- start: types.number(),
401
- hasMore: types.boolean(),
402
- paginationToken: types.nullable(types.string()),
403
- creditsUsed: types.number(),
404
- retryAfter: types.number(),
269
+ export const GetCompanyPageAnalyticsFoundedOn$inboundSchema = z.object({
270
+ year: types.number(),
271
+ month: types.optional(types.number()),
272
+ day: types.optional(types.number()),
405
273
  });
406
- export function getMyLinkedInPostsResponseFromJSON(jsonString) {
407
- return safeParse(jsonString, (x) => GetMyLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInPostsResponse' from JSON`);
274
+ export function getCompanyPageAnalyticsFoundedOnFromJSON(jsonString) {
275
+ return safeParse(jsonString, (x) => GetCompanyPageAnalyticsFoundedOn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCompanyPageAnalyticsFoundedOn' from JSON`);
408
276
  }
409
277
  /** @internal */
410
- export const GetMyLinkedInFollowersRequest$outboundSchema = z.object({
411
- start: z.optional(z.int()),
412
- count: z.optional(z.int()),
278
+ export const GetCompanyPageAnalyticsHeadquarter$inboundSchema = z.object({
279
+ city: types.string(),
280
+ country: types.string(),
281
+ line1: types.optional(types.string()),
282
+ postalCode: types.optional(types.string()),
413
283
  });
414
- export function getMyLinkedInFollowersRequestToJSON(getMyLinkedInFollowersRequest) {
415
- return JSON.stringify(GetMyLinkedInFollowersRequest$outboundSchema.parse(getMyLinkedInFollowersRequest));
284
+ export function getCompanyPageAnalyticsHeadquarterFromJSON(jsonString) {
285
+ return safeParse(jsonString, (x) => GetCompanyPageAnalyticsHeadquarter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCompanyPageAnalyticsHeadquarter' from JSON`);
416
286
  }
417
287
  /** @internal */
418
- export const Follower$inboundSchema = z
288
+ export const Analytics$inboundSchema = z
419
289
  .object({
420
290
  name: types.string(),
421
- headline: types.nullable(types.string()),
422
- profileUrl: types.nullable(types.string()),
423
- profilePicture: types.nullable(types.string()),
291
+ universalName: types.string(),
424
292
  followerCount: types.nullable(types.number()),
425
- following: types.boolean(),
426
- });
427
- export function followerFromJSON(jsonString) {
428
- return safeParse(jsonString, (x) => Follower$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Follower' from JSON`);
429
- }
430
- /** @internal */
431
- export const GetMyLinkedInFollowersResponse$inboundSchema = z.object({
432
- success: types.boolean(),
433
- followers: z.array(z.lazy(() => Follower$inboundSchema)),
434
- count: types.number(),
435
- totalFollowers: types.number(),
436
- start: types.number(),
437
- hasMore: types.boolean(),
293
+ employeeCount: types.nullable(types.number()),
294
+ visitorsInPastMonthCount: types.nullable(types.number()),
295
+ isActive: types.boolean(),
296
+ foundedOn: types.nullable(z.lazy(() => GetCompanyPageAnalyticsFoundedOn$inboundSchema)),
297
+ headquarter: types.nullable(z.lazy(() => GetCompanyPageAnalyticsHeadquarter$inboundSchema)),
298
+ description: types.nullable(types.string()),
299
+ tagline: types.nullable(types.string()),
300
+ websiteUrl: types.nullable(types.string()),
301
+ organizationType: types.nullable(types.string()),
302
+ specialities: z.array(types.string()),
303
+ industryUrns: z.array(types.string()),
304
+ });
305
+ export function analyticsFromJSON(jsonString) {
306
+ return safeParse(jsonString, (x) => Analytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Analytics' from JSON`);
307
+ }
308
+ /** @internal */
309
+ export const GetCompanyPageAnalyticsResponse$inboundSchema = z.object({
310
+ success: types.literal(true),
311
+ analytics: z.lazy(() => Analytics$inboundSchema),
438
312
  creditsUsed: types.number(),
439
313
  retryAfter: types.number(),
440
314
  });
441
- export function getMyLinkedInFollowersResponseFromJSON(jsonString) {
442
- return safeParse(jsonString, (x) => GetMyLinkedInFollowersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInFollowersResponse' from JSON`);
443
- }
444
- /** @internal */
445
- export const ConnectionRequestDaily$inboundSchema = z.object({
446
- current: types.number(),
447
- limit: types.number(),
448
- remaining: types.number(),
449
- });
450
- export function connectionRequestDailyFromJSON(jsonString) {
451
- return safeParse(jsonString, (x) => ConnectionRequestDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectionRequestDaily' from JSON`);
452
- }
453
- /** @internal */
454
- export const ConnectionRequestWeekly$inboundSchema = z.object({
455
- current: types.number(),
456
- limit: types.number(),
457
- remaining: types.number(),
458
- });
459
- export function connectionRequestWeeklyFromJSON(jsonString) {
460
- return safeParse(jsonString, (x) => ConnectionRequestWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectionRequestWeekly' from JSON`);
315
+ export function getCompanyPageAnalyticsResponseFromJSON(jsonString) {
316
+ return safeParse(jsonString, (x) => GetCompanyPageAnalyticsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCompanyPageAnalyticsResponse' from JSON`);
461
317
  }
462
318
  /** @internal */
463
- export const ConnectionRequest$inboundSchema = z.object({
464
- daily: z.lazy(() => ConnectionRequestDaily$inboundSchema),
465
- weekly: types.nullable(z.lazy(() => ConnectionRequestWeekly$inboundSchema)),
466
- minIntervalSeconds: types.number(),
467
- nextResetDaily: types.date(),
468
- nextResetWeekly: types.nullable(types.date()),
319
+ export const ListInboxConversationsRequest$outboundSchema = z.object({
320
+ nextCursor: z.optional(z.string()),
469
321
  });
470
- export function connectionRequestFromJSON(jsonString) {
471
- return safeParse(jsonString, (x) => ConnectionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectionRequest' from JSON`);
322
+ export function listInboxConversationsRequestToJSON(listInboxConversationsRequest) {
323
+ return JSON.stringify(ListInboxConversationsRequest$outboundSchema.parse(listInboxConversationsRequest));
472
324
  }
473
325
  /** @internal */
474
- export const MessageDaily$inboundSchema = z.object({
475
- current: types.number(),
476
- limit: types.number(),
477
- remaining: types.number(),
326
+ export const ListInboxConversationsParticipant$inboundSchema = z.object({
327
+ profileUrn: types.string(),
328
+ firstName: types.string(),
329
+ lastName: types.string(),
330
+ profileUrl: types.nullable(types.string()),
331
+ headline: types.nullable(types.string()),
332
+ profilePicture: types.nullable(types.string()),
333
+ publicIdentifier: types.nullable(types.string()),
478
334
  });
479
- export function messageDailyFromJSON(jsonString) {
480
- return safeParse(jsonString, (x) => MessageDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageDaily' from JSON`);
335
+ export function listInboxConversationsParticipantFromJSON(jsonString) {
336
+ return safeParse(jsonString, (x) => ListInboxConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsParticipant' from JSON`);
481
337
  }
482
338
  /** @internal */
483
- export const MessageWeekly$inboundSchema = z.object({
484
- current: types.number(),
485
- limit: types.number(),
486
- remaining: types.number(),
339
+ export const ListInboxConversationsLastMessage$inboundSchema = z.object({
340
+ text: types.nullable(types.string()),
341
+ deliveredAt: types.number(),
342
+ senderProfileUrn: types.string(),
487
343
  });
488
- export function messageWeeklyFromJSON(jsonString) {
489
- return safeParse(jsonString, (x) => MessageWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageWeekly' from JSON`);
344
+ export function listInboxConversationsLastMessageFromJSON(jsonString) {
345
+ return safeParse(jsonString, (x) => ListInboxConversationsLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsLastMessage' from JSON`);
490
346
  }
491
347
  /** @internal */
492
- export const GetMyLimitsMessage$inboundSchema = z.object({
493
- daily: z.lazy(() => MessageDaily$inboundSchema),
494
- weekly: types.nullable(z.lazy(() => MessageWeekly$inboundSchema)),
495
- minIntervalSeconds: types.number(),
496
- nextResetDaily: types.date(),
497
- nextResetWeekly: types.nullable(types.date()),
348
+ export const ListInboxConversationsConversation$inboundSchema = z.object({
349
+ conversationUrn: types.string(),
350
+ conversationUrl: types.string(),
351
+ lastActivityAt: types.number(),
352
+ createdAt: types.number(),
353
+ read: types.boolean(),
354
+ unreadCount: types.number(),
355
+ groupChat: types.boolean(),
356
+ participants: z.array(z.lazy(() => ListInboxConversationsParticipant$inboundSchema)),
357
+ lastMessage: types.nullable(z.lazy(() => ListInboxConversationsLastMessage$inboundSchema)),
498
358
  });
499
- export function getMyLimitsMessageFromJSON(jsonString) {
500
- return safeParse(jsonString, (x) => GetMyLimitsMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLimitsMessage' from JSON`);
359
+ export function listInboxConversationsConversationFromJSON(jsonString) {
360
+ return safeParse(jsonString, (x) => ListInboxConversationsConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsConversation' from JSON`);
501
361
  }
502
362
  /** @internal */
503
- export const ProfileVisitDaily$inboundSchema = z.object({
504
- current: types.number(),
505
- limit: types.number(),
506
- remaining: types.number(),
363
+ export const ListInboxConversationsResponse$inboundSchema = z.object({
364
+ success: types.literal(true),
365
+ conversations: z.array(z.lazy(() => ListInboxConversationsConversation$inboundSchema)),
366
+ nextCursor: types.nullable(types.string()),
367
+ creditsUsed: types.number(),
368
+ retryAfter: types.number(),
507
369
  });
508
- export function profileVisitDailyFromJSON(jsonString) {
509
- return safeParse(jsonString, (x) => ProfileVisitDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileVisitDaily' from JSON`);
370
+ export function listInboxConversationsResponseFromJSON(jsonString) {
371
+ return safeParse(jsonString, (x) => ListInboxConversationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsResponse' from JSON`);
510
372
  }
511
373
  /** @internal */
512
- export const ProfileVisitWeekly$inboundSchema = z.object({
513
- current: types.number(),
514
- limit: types.number(),
515
- remaining: types.number(),
374
+ export const GetConversationMessagesRequest$outboundSchema = z.object({
375
+ conversationUrn: z.string(),
376
+ deliveredAt: z.optional(z.int()),
516
377
  });
517
- export function profileVisitWeeklyFromJSON(jsonString) {
518
- return safeParse(jsonString, (x) => ProfileVisitWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileVisitWeekly' from JSON`);
378
+ export function getConversationMessagesRequestToJSON(getConversationMessagesRequest) {
379
+ return JSON.stringify(GetConversationMessagesRequest$outboundSchema.parse(getConversationMessagesRequest));
519
380
  }
520
381
  /** @internal */
521
- export const ProfileVisit$inboundSchema = z.object({
522
- daily: z.lazy(() => ProfileVisitDaily$inboundSchema),
523
- weekly: types.nullable(z.lazy(() => ProfileVisitWeekly$inboundSchema)),
524
- minIntervalSeconds: types.number(),
525
- nextResetDaily: types.date(),
526
- nextResetWeekly: types.nullable(types.date()),
382
+ export const GetConversationMessagesSender$inboundSchema = z.object({
383
+ firstName: types.string(),
384
+ lastName: types.string(),
385
+ profileUrl: types.nullable(types.string()),
386
+ headline: types.nullable(types.string()),
387
+ profilePicture: types.nullable(types.string()),
388
+ publicIdentifier: types.nullable(types.string()),
389
+ profileUrn: types.nullable(types.string()),
527
390
  });
528
- export function profileVisitFromJSON(jsonString) {
529
- return safeParse(jsonString, (x) => ProfileVisit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileVisit' from JSON`);
391
+ export function getConversationMessagesSenderFromJSON(jsonString) {
392
+ return safeParse(jsonString, (x) => GetConversationMessagesSender$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesSender' from JSON`);
530
393
  }
531
394
  /** @internal */
532
- export const ScrapingDaily$inboundSchema = z.object({
533
- current: types.number(),
534
- limit: types.number(),
535
- remaining: types.number(),
536
- });
537
- export function scrapingDailyFromJSON(jsonString) {
538
- return safeParse(jsonString, (x) => ScrapingDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScrapingDaily' from JSON`);
539
- }
395
+ export const GetConversationMessagesType$inboundSchema = openEnums.inboundSchema(GetConversationMessagesType);
540
396
  /** @internal */
541
- export const ScrapingWeekly$inboundSchema = z.object({
542
- current: types.number(),
543
- limit: types.number(),
544
- remaining: types.number(),
397
+ export const GetConversationMessagesAttachment$inboundSchema = z.object({
398
+ type: GetConversationMessagesType$inboundSchema,
399
+ audioUrl: types.optional(types.string()),
400
+ audioDuration: types.optional(types.number()),
401
+ hostUrn: types.optional(types.string()),
402
+ repliedText: types.optional(types.string()),
403
+ repliedSenderName: types.optional(types.string()),
404
+ imageUrl: types.optional(types.string()),
405
+ fileName: types.optional(types.string()),
406
+ fileUrl: types.optional(types.string()),
545
407
  });
546
- export function scrapingWeeklyFromJSON(jsonString) {
547
- return safeParse(jsonString, (x) => ScrapingWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScrapingWeekly' from JSON`);
408
+ export function getConversationMessagesAttachmentFromJSON(jsonString) {
409
+ return safeParse(jsonString, (x) => GetConversationMessagesAttachment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesAttachment' from JSON`);
548
410
  }
549
411
  /** @internal */
550
- export const Scraping$inboundSchema = z
551
- .object({
552
- daily: z.lazy(() => ScrapingDaily$inboundSchema),
553
- weekly: types.nullable(z.lazy(() => ScrapingWeekly$inboundSchema)),
554
- minIntervalSeconds: types.number(),
555
- nextResetDaily: types.date(),
556
- nextResetWeekly: types.nullable(types.date()),
412
+ export const GetConversationMessagesMessage$inboundSchema = z.object({
413
+ messageUrn: types.string(),
414
+ text: types.nullable(types.string()),
415
+ deliveredAt: types.number(),
416
+ senderProfileUrn: types.string(),
417
+ sender: z.lazy(() => GetConversationMessagesSender$inboundSchema),
418
+ attachments: z.array(z.lazy(() => GetConversationMessagesAttachment$inboundSchema)),
557
419
  });
558
- export function scrapingFromJSON(jsonString) {
559
- return safeParse(jsonString, (x) => Scraping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scraping' from JSON`);
560
- }
561
- /** @internal */
562
- export const Limits$inboundSchema = z.pipe(z.object({
563
- connection_request: z.lazy(() => ConnectionRequest$inboundSchema),
564
- message: z.lazy(() => GetMyLimitsMessage$inboundSchema),
565
- profile_visit: z.lazy(() => ProfileVisit$inboundSchema),
566
- scraping: z.lazy(() => Scraping$inboundSchema),
567
- }), z.transform((v) => {
568
- return remap$(v, {
569
- "connection_request": "connectionRequest",
570
- "profile_visit": "profileVisit",
571
- });
572
- }));
573
- export function limitsFromJSON(jsonString) {
574
- return safeParse(jsonString, (x) => Limits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Limits' from JSON`);
420
+ export function getConversationMessagesMessageFromJSON(jsonString) {
421
+ return safeParse(jsonString, (x) => GetConversationMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesMessage' from JSON`);
575
422
  }
576
423
  /** @internal */
577
- export const GetMyLimitsResponse$inboundSchema = z.object({
578
- success: types.boolean(),
579
- multiplier: types.number(),
580
- limits: z.lazy(() => Limits$inboundSchema),
424
+ export const GetConversationMessagesResponse$inboundSchema = z.object({
425
+ success: types.literal(true),
426
+ messages: z.array(z.lazy(() => GetConversationMessagesMessage$inboundSchema)),
427
+ prevCursor: types.nullable(types.number()),
581
428
  creditsUsed: types.number(),
582
429
  retryAfter: types.number(),
583
430
  });
584
- export function getMyLimitsResponseFromJSON(jsonString) {
585
- return safeParse(jsonString, (x) => GetMyLimitsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLimitsResponse' from JSON`);
431
+ export function getConversationMessagesResponseFromJSON(jsonString) {
432
+ return safeParse(jsonString, (x) => GetConversationMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesResponse' from JSON`);
586
433
  }
587
434
  /** @internal */
588
- export const Credits$inboundSchema = z.object({
589
- current: types.number(),
590
- limit: types.number(),
591
- remaining: types.number(),
592
- percentage: types.number(),
593
- });
594
- export function creditsFromJSON(jsonString) {
595
- return safeParse(jsonString, (x) => Credits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Credits' from JSON`);
435
+ export const MarkAllConversationsReadRequest$outboundSchema = z.object({});
436
+ export function markAllConversationsReadRequestToJSON(markAllConversationsReadRequest) {
437
+ return JSON.stringify(MarkAllConversationsReadRequest$outboundSchema.parse(markAllConversationsReadRequest));
596
438
  }
597
439
  /** @internal */
598
- export const GetMyCreditsResponse$inboundSchema = z.object({
599
- success: types.boolean(),
600
- credits: z.lazy(() => Credits$inboundSchema),
440
+ export const MarkAllConversationsReadResponse$inboundSchema = z.object({
441
+ success: types.literal(true),
601
442
  creditsUsed: types.number(),
602
443
  retryAfter: types.number(),
603
444
  });
604
- export function getMyCreditsResponseFromJSON(jsonString) {
605
- return safeParse(jsonString, (x) => GetMyCreditsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyCreditsResponse' from JSON`);
445
+ export function markAllConversationsReadResponseFromJSON(jsonString) {
446
+ return safeParse(jsonString, (x) => MarkAllConversationsReadResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MarkAllConversationsReadResponse' from JSON`);
606
447
  }
607
448
  /** @internal */
608
- export const ListInboxConversationsRequest$outboundSchema = z.object({
449
+ export const ListArchivedConversationsRequest$outboundSchema = z.object({
609
450
  nextCursor: z.optional(z.string()),
610
451
  });
611
- export function listInboxConversationsRequestToJSON(listInboxConversationsRequest) {
612
- return JSON.stringify(ListInboxConversationsRequest$outboundSchema.parse(listInboxConversationsRequest));
452
+ export function listArchivedConversationsRequestToJSON(listArchivedConversationsRequest) {
453
+ return JSON.stringify(ListArchivedConversationsRequest$outboundSchema.parse(listArchivedConversationsRequest));
613
454
  }
614
455
  /** @internal */
615
- export const ListInboxConversationsParticipant$inboundSchema = z.object({
456
+ export const ListArchivedConversationsParticipant$inboundSchema = z.object({
616
457
  profileUrn: types.string(),
617
458
  firstName: types.string(),
618
459
  lastName: types.string(),
619
460
  profileUrl: types.nullable(types.string()),
620
461
  headline: types.nullable(types.string()),
621
462
  profilePicture: types.nullable(types.string()),
463
+ publicIdentifier: types.nullable(types.string()),
622
464
  });
623
- export function listInboxConversationsParticipantFromJSON(jsonString) {
624
- return safeParse(jsonString, (x) => ListInboxConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsParticipant' from JSON`);
465
+ export function listArchivedConversationsParticipantFromJSON(jsonString) {
466
+ return safeParse(jsonString, (x) => ListArchivedConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversationsParticipant' from JSON`);
625
467
  }
626
468
  /** @internal */
627
- export const ListInboxConversationsLastMessage$inboundSchema = z.object({
469
+ export const ListArchivedConversationsLastMessage$inboundSchema = z.object({
628
470
  text: types.nullable(types.string()),
629
471
  deliveredAt: types.number(),
630
472
  senderProfileUrn: types.string(),
631
473
  });
632
- export function listInboxConversationsLastMessageFromJSON(jsonString) {
633
- return safeParse(jsonString, (x) => ListInboxConversationsLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsLastMessage' from JSON`);
474
+ export function listArchivedConversationsLastMessageFromJSON(jsonString) {
475
+ return safeParse(jsonString, (x) => ListArchivedConversationsLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversationsLastMessage' from JSON`);
634
476
  }
635
477
  /** @internal */
636
- export const ListInboxConversationsConversation$inboundSchema = z.object({
478
+ export const ListArchivedConversationsConversation$inboundSchema = z.object({
637
479
  conversationUrn: types.string(),
638
480
  conversationUrl: types.string(),
639
481
  lastActivityAt: types.number(),
@@ -641,22 +483,71 @@ export const ListInboxConversationsConversation$inboundSchema = z.object({
641
483
  read: types.boolean(),
642
484
  unreadCount: types.number(),
643
485
  groupChat: types.boolean(),
644
- participants: z.array(z.lazy(() => ListInboxConversationsParticipant$inboundSchema)),
645
- lastMessage: types.nullable(z.lazy(() => ListInboxConversationsLastMessage$inboundSchema)),
486
+ participants: z.array(z.lazy(() => ListArchivedConversationsParticipant$inboundSchema)),
487
+ lastMessage: types.nullable(z.lazy(() => ListArchivedConversationsLastMessage$inboundSchema)),
646
488
  });
647
- export function listInboxConversationsConversationFromJSON(jsonString) {
648
- return safeParse(jsonString, (x) => ListInboxConversationsConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsConversation' from JSON`);
489
+ export function listArchivedConversationsConversationFromJSON(jsonString) {
490
+ return safeParse(jsonString, (x) => ListArchivedConversationsConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversationsConversation' from JSON`);
649
491
  }
650
492
  /** @internal */
651
- export const ListInboxConversationsResponse$inboundSchema = z.object({
652
- success: types.boolean(),
653
- conversations: z.array(z.lazy(() => ListInboxConversationsConversation$inboundSchema)),
493
+ export const ListArchivedConversationsResponse$inboundSchema = z.object({
494
+ success: types.literal(true),
495
+ conversations: z.array(z.lazy(() => ListArchivedConversationsConversation$inboundSchema)),
654
496
  nextCursor: types.nullable(types.string()),
655
497
  creditsUsed: types.number(),
656
498
  retryAfter: types.number(),
657
499
  });
658
- export function listInboxConversationsResponseFromJSON(jsonString) {
659
- return safeParse(jsonString, (x) => ListInboxConversationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsResponse' from JSON`);
500
+ export function listArchivedConversationsResponseFromJSON(jsonString) {
501
+ return safeParse(jsonString, (x) => ListArchivedConversationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversationsResponse' from JSON`);
502
+ }
503
+ /** @internal */
504
+ export const ReactToMessageRequest$outboundSchema = z.object({
505
+ messageUrn: z.string(),
506
+ emoji: z.string(),
507
+ conversationUrn: z.string(),
508
+ });
509
+ export function reactToMessageRequestToJSON(reactToMessageRequest) {
510
+ return JSON.stringify(ReactToMessageRequest$outboundSchema.parse(reactToMessageRequest));
511
+ }
512
+ /** @internal */
513
+ export const ReactToMessageResponse$inboundSchema = z.object({
514
+ success: types.literal(true),
515
+ creditsUsed: types.number(),
516
+ retryAfter: types.number(),
517
+ });
518
+ export function reactToMessageResponseFromJSON(jsonString) {
519
+ return safeParse(jsonString, (x) => ReactToMessageResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReactToMessageResponse' from JSON`);
520
+ }
521
+ /** @internal */
522
+ export const SendTypingIndicatorRequest$outboundSchema = z.object({
523
+ conversationUrn: z.string(),
524
+ });
525
+ export function sendTypingIndicatorRequestToJSON(sendTypingIndicatorRequest) {
526
+ return JSON.stringify(SendTypingIndicatorRequest$outboundSchema.parse(sendTypingIndicatorRequest));
527
+ }
528
+ /** @internal */
529
+ export const SendTypingIndicatorResponse$inboundSchema = z.object({
530
+ success: types.literal(true),
531
+ creditsUsed: types.number(),
532
+ retryAfter: types.number(),
533
+ });
534
+ export function sendTypingIndicatorResponseFromJSON(jsonString) {
535
+ return safeParse(jsonString, (x) => SendTypingIndicatorResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendTypingIndicatorResponse' from JSON`);
536
+ }
537
+ /** @internal */
538
+ export const GetUnreadCountRequest$outboundSchema = z.object({});
539
+ export function getUnreadCountRequestToJSON(getUnreadCountRequest) {
540
+ return JSON.stringify(GetUnreadCountRequest$outboundSchema.parse(getUnreadCountRequest));
541
+ }
542
+ /** @internal */
543
+ export const GetUnreadCountResponse$inboundSchema = z.object({
544
+ success: types.literal(true),
545
+ unreadCount: types.number(),
546
+ creditsUsed: types.number(),
547
+ retryAfter: types.number(),
548
+ });
549
+ export function getUnreadCountResponseFromJSON(jsonString) {
550
+ return safeParse(jsonString, (x) => GetUnreadCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUnreadCountResponse' from JSON`);
660
551
  }
661
552
  /** @internal */
662
553
  export const SearchLinkedInConversationsRequest$outboundSchema = z.object({
@@ -674,6 +565,7 @@ export const SearchLinkedInConversationsParticipant$inboundSchema = z.object({
674
565
  profileUrl: types.nullable(types.string()),
675
566
  headline: types.nullable(types.string()),
676
567
  profilePicture: types.nullable(types.string()),
568
+ publicIdentifier: types.nullable(types.string()),
677
569
  });
678
570
  export function searchLinkedInConversationsParticipantFromJSON(jsonString) {
679
571
  return safeParse(jsonString, (x) => SearchLinkedInConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInConversationsParticipant' from JSON`);
@@ -704,7 +596,7 @@ export function searchLinkedInConversationsConversationFromJSON(jsonString) {
704
596
  }
705
597
  /** @internal */
706
598
  export const SearchLinkedInConversationsResponse$inboundSchema = z.object({
707
- success: types.boolean(),
599
+ success: types.literal(true),
708
600
  conversations: z.array(z.lazy(() => SearchLinkedInConversationsConversation$inboundSchema)),
709
601
  nextCursor: types.nullable(types.string()),
710
602
  creditsUsed: types.number(),
@@ -735,6 +627,8 @@ export const FindLinkedInConversationSender$inboundSchema = z.object({
735
627
  profileUrl: types.nullable(types.string()),
736
628
  headline: types.nullable(types.string()),
737
629
  profilePicture: types.nullable(types.string()),
630
+ publicIdentifier: types.nullable(types.string()),
631
+ profileUrn: types.nullable(types.string()),
738
632
  });
739
633
  export function findLinkedInConversationSenderFromJSON(jsonString) {
740
634
  return safeParse(jsonString, (x) => FindLinkedInConversationSender$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationSender' from JSON`);
@@ -770,7 +664,7 @@ export function findLinkedInConversationMessageFromJSON(jsonString) {
770
664
  }
771
665
  /** @internal */
772
666
  export const FindLinkedInConversationResponse$inboundSchema = z.object({
773
- success: types.boolean(),
667
+ success: types.literal(true),
774
668
  found: types.boolean(),
775
669
  conversation: types.nullable(z.lazy(() => FindLinkedInConversationConversation$inboundSchema)),
776
670
  messages: types.nullable(z.array(z.lazy(() => FindLinkedInConversationMessage$inboundSchema))),
@@ -781,63 +675,157 @@ export function findLinkedInConversationResponseFromJSON(jsonString) {
781
675
  return safeParse(jsonString, (x) => FindLinkedInConversationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationResponse' from JSON`);
782
676
  }
783
677
  /** @internal */
784
- export const GetConversationMessagesRequest$outboundSchema = z.object({
678
+ export const ArchiveConversationRequest$outboundSchema = z.object({
785
679
  conversationUrn: z.string(),
786
- deliveredAt: z.optional(z.int()),
787
680
  });
788
- export function getConversationMessagesRequestToJSON(getConversationMessagesRequest) {
789
- return JSON.stringify(GetConversationMessagesRequest$outboundSchema.parse(getConversationMessagesRequest));
681
+ export function archiveConversationRequestToJSON(archiveConversationRequest) {
682
+ return JSON.stringify(ArchiveConversationRequest$outboundSchema.parse(archiveConversationRequest));
790
683
  }
791
684
  /** @internal */
792
- export const GetConversationMessagesSender$inboundSchema = z.object({
685
+ export const ArchiveConversationResponse$inboundSchema = z.object({
686
+ success: types.literal(true),
687
+ creditsUsed: types.number(),
688
+ retryAfter: types.number(),
689
+ });
690
+ export function archiveConversationResponseFromJSON(jsonString) {
691
+ return safeParse(jsonString, (x) => ArchiveConversationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArchiveConversationResponse' from JSON`);
692
+ }
693
+ /** @internal */
694
+ export const UnreactToMessageRequest$outboundSchema = z.object({
695
+ messageUrn: z.string(),
696
+ emoji: z.string(),
697
+ conversationUrn: z.string(),
698
+ });
699
+ export function unreactToMessageRequestToJSON(unreactToMessageRequest) {
700
+ return JSON.stringify(UnreactToMessageRequest$outboundSchema.parse(unreactToMessageRequest));
701
+ }
702
+ /** @internal */
703
+ export const UnreactToMessageResponse$inboundSchema = z.object({
704
+ success: types.literal(true),
705
+ creditsUsed: types.number(),
706
+ retryAfter: types.number(),
707
+ });
708
+ export function unreactToMessageResponseFromJSON(jsonString) {
709
+ return safeParse(jsonString, (x) => UnreactToMessageResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnreactToMessageResponse' from JSON`);
710
+ }
711
+ /** @internal */
712
+ export const MarkConversationSeenRequest$outboundSchema = z.object({
713
+ conversationUrn: z.string(),
714
+ });
715
+ export function markConversationSeenRequestToJSON(markConversationSeenRequest) {
716
+ return JSON.stringify(MarkConversationSeenRequest$outboundSchema.parse(markConversationSeenRequest));
717
+ }
718
+ /** @internal */
719
+ export const MarkConversationSeenResponse$inboundSchema = z.object({
720
+ success: types.literal(true),
721
+ creditsUsed: types.number(),
722
+ retryAfter: types.number(),
723
+ });
724
+ export function markConversationSeenResponseFromJSON(jsonString) {
725
+ return safeParse(jsonString, (x) => MarkConversationSeenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MarkConversationSeenResponse' from JSON`);
726
+ }
727
+ /** @internal */
728
+ export const StarConversationRequest$outboundSchema = z.object({
729
+ conversationUrn: z.string(),
730
+ });
731
+ export function starConversationRequestToJSON(starConversationRequest) {
732
+ return JSON.stringify(StarConversationRequest$outboundSchema.parse(starConversationRequest));
733
+ }
734
+ /** @internal */
735
+ export const StarConversationResponse$inboundSchema = z.object({
736
+ success: types.literal(true),
737
+ creditsUsed: types.number(),
738
+ retryAfter: types.number(),
739
+ });
740
+ export function starConversationResponseFromJSON(jsonString) {
741
+ return safeParse(jsonString, (x) => StarConversationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StarConversationResponse' from JSON`);
742
+ }
743
+ /** @internal */
744
+ export const UnstarConversationRequest$outboundSchema = z.object({
745
+ conversationUrn: z.string(),
746
+ });
747
+ export function unstarConversationRequestToJSON(unstarConversationRequest) {
748
+ return JSON.stringify(UnstarConversationRequest$outboundSchema.parse(unstarConversationRequest));
749
+ }
750
+ /** @internal */
751
+ export const UnstarConversationResponse$inboundSchema = z.object({
752
+ success: types.literal(true),
753
+ creditsUsed: types.number(),
754
+ retryAfter: types.number(),
755
+ });
756
+ export function unstarConversationResponseFromJSON(jsonString) {
757
+ return safeParse(jsonString, (x) => UnstarConversationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnstarConversationResponse' from JSON`);
758
+ }
759
+ /** @internal */
760
+ export const ListStarredConversationsRequest$outboundSchema = z.object({
761
+ nextCursor: z.optional(z.string()),
762
+ });
763
+ export function listStarredConversationsRequestToJSON(listStarredConversationsRequest) {
764
+ return JSON.stringify(ListStarredConversationsRequest$outboundSchema.parse(listStarredConversationsRequest));
765
+ }
766
+ /** @internal */
767
+ export const ListStarredConversationsParticipant$inboundSchema = z.object({
768
+ profileUrn: types.string(),
793
769
  firstName: types.string(),
794
770
  lastName: types.string(),
795
771
  profileUrl: types.nullable(types.string()),
796
772
  headline: types.nullable(types.string()),
797
773
  profilePicture: types.nullable(types.string()),
774
+ publicIdentifier: types.nullable(types.string()),
798
775
  });
799
- export function getConversationMessagesSenderFromJSON(jsonString) {
800
- return safeParse(jsonString, (x) => GetConversationMessagesSender$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesSender' from JSON`);
776
+ export function listStarredConversationsParticipantFromJSON(jsonString) {
777
+ return safeParse(jsonString, (x) => ListStarredConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStarredConversationsParticipant' from JSON`);
801
778
  }
802
779
  /** @internal */
803
- export const GetConversationMessagesType$inboundSchema = openEnums.inboundSchema(GetConversationMessagesType);
780
+ export const ListStarredConversationsLastMessage$inboundSchema = z.object({
781
+ text: types.nullable(types.string()),
782
+ deliveredAt: types.number(),
783
+ senderProfileUrn: types.string(),
784
+ });
785
+ export function listStarredConversationsLastMessageFromJSON(jsonString) {
786
+ return safeParse(jsonString, (x) => ListStarredConversationsLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStarredConversationsLastMessage' from JSON`);
787
+ }
804
788
  /** @internal */
805
- export const GetConversationMessagesAttachment$inboundSchema = z.object({
806
- type: GetConversationMessagesType$inboundSchema,
807
- audioUrl: types.optional(types.string()),
808
- audioDuration: types.optional(types.number()),
809
- hostUrn: types.optional(types.string()),
810
- repliedText: types.optional(types.string()),
811
- repliedSenderName: types.optional(types.string()),
812
- imageUrl: types.optional(types.string()),
813
- fileName: types.optional(types.string()),
814
- fileUrl: types.optional(types.string()),
789
+ export const ListStarredConversationsConversation$inboundSchema = z.object({
790
+ conversationUrn: types.string(),
791
+ conversationUrl: types.string(),
792
+ lastActivityAt: types.number(),
793
+ createdAt: types.number(),
794
+ read: types.boolean(),
795
+ unreadCount: types.number(),
796
+ groupChat: types.boolean(),
797
+ participants: z.array(z.lazy(() => ListStarredConversationsParticipant$inboundSchema)),
798
+ lastMessage: types.nullable(z.lazy(() => ListStarredConversationsLastMessage$inboundSchema)),
815
799
  });
816
- export function getConversationMessagesAttachmentFromJSON(jsonString) {
817
- return safeParse(jsonString, (x) => GetConversationMessagesAttachment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesAttachment' from JSON`);
800
+ export function listStarredConversationsConversationFromJSON(jsonString) {
801
+ return safeParse(jsonString, (x) => ListStarredConversationsConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStarredConversationsConversation' from JSON`);
818
802
  }
819
803
  /** @internal */
820
- export const GetConversationMessagesMessage$inboundSchema = z.object({
821
- messageUrn: types.string(),
822
- text: types.nullable(types.string()),
823
- deliveredAt: types.number(),
824
- senderProfileUrn: types.string(),
825
- sender: z.lazy(() => GetConversationMessagesSender$inboundSchema),
826
- attachments: z.array(z.lazy(() => GetConversationMessagesAttachment$inboundSchema)),
804
+ export const ListStarredConversationsResponse$inboundSchema = z.object({
805
+ success: types.literal(true),
806
+ conversations: z.array(z.lazy(() => ListStarredConversationsConversation$inboundSchema)),
807
+ nextCursor: types.nullable(types.string()),
808
+ creditsUsed: types.number(),
809
+ retryAfter: types.number(),
827
810
  });
828
- export function getConversationMessagesMessageFromJSON(jsonString) {
829
- return safeParse(jsonString, (x) => GetConversationMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesMessage' from JSON`);
811
+ export function listStarredConversationsResponseFromJSON(jsonString) {
812
+ return safeParse(jsonString, (x) => ListStarredConversationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStarredConversationsResponse' from JSON`);
830
813
  }
831
814
  /** @internal */
832
- export const GetConversationMessagesResponse$inboundSchema = z.object({
833
- success: types.boolean(),
834
- messages: z.array(z.lazy(() => GetConversationMessagesMessage$inboundSchema)),
835
- prevCursor: types.nullable(types.number()),
815
+ export const UnarchiveConversationRequest$outboundSchema = z.object({
816
+ conversationUrn: z.string(),
817
+ });
818
+ export function unarchiveConversationRequestToJSON(unarchiveConversationRequest) {
819
+ return JSON.stringify(UnarchiveConversationRequest$outboundSchema.parse(unarchiveConversationRequest));
820
+ }
821
+ /** @internal */
822
+ export const UnarchiveConversationResponse$inboundSchema = z.object({
823
+ success: types.literal(true),
836
824
  creditsUsed: types.number(),
837
825
  retryAfter: types.number(),
838
826
  });
839
- export function getConversationMessagesResponseFromJSON(jsonString) {
840
- return safeParse(jsonString, (x) => GetConversationMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesResponse' from JSON`);
827
+ export function unarchiveConversationResponseFromJSON(jsonString) {
828
+ return safeParse(jsonString, (x) => UnarchiveConversationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnarchiveConversationResponse' from JSON`);
841
829
  }
842
830
  /** @internal */
843
831
  export const FilterCampaignRequest$outboundSchema = z.object({
@@ -895,7 +883,7 @@ export function getCampaignStatusProfileFromJSON(jsonString) {
895
883
  }
896
884
  /** @internal */
897
885
  export const GetCampaignStatusResponse$inboundSchema = z.object({
898
- success: types.boolean(),
886
+ success: types.literal(true),
899
887
  profiles: z.array(z.lazy(() => GetCampaignStatusProfile$inboundSchema)),
900
888
  creditsUsed: types.number(),
901
889
  retryAfter: types.number(),
@@ -938,7 +926,7 @@ export function syncedFromJSON(jsonString) {
938
926
  }
939
927
  /** @internal */
940
928
  export const SyncCampaignActionsResponse$inboundSchema = z.object({
941
- success: types.boolean(),
929
+ success: types.literal(true),
942
930
  synced: z.array(z.lazy(() => Synced$inboundSchema)),
943
931
  creditsUsed: types.number(),
944
932
  retryAfter: types.number(),
@@ -961,7 +949,7 @@ export function getCampaignStatsRequestToJSON(getCampaignStatsRequest) {
961
949
  }
962
950
  /** @internal */
963
951
  export const GetCampaignStatsResponse$inboundSchema = z.object({
964
- success: types.boolean(),
952
+ success: types.literal(true),
965
953
  stats: z.record(z.string(), types.number()),
966
954
  totalProfiles: types.number(),
967
955
  creditsUsed: types.number(),