bereach 0.1.1

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 (451) hide show
  1. package/FUNCTIONS.md +90 -0
  2. package/README.md +530 -0
  3. package/RUNTIMES.md +48 -0
  4. package/esm/core.d.ts +10 -0
  5. package/esm/core.d.ts.map +1 -0
  6. package/esm/core.js +13 -0
  7. package/esm/core.js.map +1 -0
  8. package/esm/funcs/campaigns-filter.d.ts +20 -0
  9. package/esm/funcs/campaigns-filter.d.ts.map +1 -0
  10. package/esm/funcs/campaigns-filter.js +106 -0
  11. package/esm/funcs/campaigns-filter.js.map +1 -0
  12. package/esm/funcs/campaigns-get-stats.d.ts +18 -0
  13. package/esm/funcs/campaigns-get-stats.d.ts.map +1 -0
  14. package/esm/funcs/campaigns-get-stats.js +101 -0
  15. package/esm/funcs/campaigns-get-stats.js.map +1 -0
  16. package/esm/funcs/campaigns-get-status.d.ts +18 -0
  17. package/esm/funcs/campaigns-get-status.d.ts.map +1 -0
  18. package/esm/funcs/campaigns-get-status.js +101 -0
  19. package/esm/funcs/campaigns-get-status.js.map +1 -0
  20. package/esm/funcs/campaigns-sync-actions.d.ts +18 -0
  21. package/esm/funcs/campaigns-sync-actions.d.ts.map +1 -0
  22. package/esm/funcs/campaigns-sync-actions.js +101 -0
  23. package/esm/funcs/campaigns-sync-actions.js.map +1 -0
  24. package/esm/funcs/linkedin-actions-accept-invitation.d.ts +18 -0
  25. package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +1 -0
  26. package/esm/funcs/linkedin-actions-accept-invitation.js +95 -0
  27. package/esm/funcs/linkedin-actions-accept-invitation.js.map +1 -0
  28. package/esm/funcs/linkedin-actions-connect-profile.d.ts +18 -0
  29. package/esm/funcs/linkedin-actions-connect-profile.d.ts.map +1 -0
  30. package/esm/funcs/linkedin-actions-connect-profile.js +95 -0
  31. package/esm/funcs/linkedin-actions-connect-profile.js.map +1 -0
  32. package/esm/funcs/linkedin-actions-like-comment.d.ts +18 -0
  33. package/esm/funcs/linkedin-actions-like-comment.d.ts.map +1 -0
  34. package/esm/funcs/linkedin-actions-like-comment.js +95 -0
  35. package/esm/funcs/linkedin-actions-like-comment.js.map +1 -0
  36. package/esm/funcs/linkedin-actions-list-invitations.d.ts +18 -0
  37. package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +1 -0
  38. package/esm/funcs/linkedin-actions-list-invitations.js +97 -0
  39. package/esm/funcs/linkedin-actions-list-invitations.js.map +1 -0
  40. package/esm/funcs/linkedin-actions-publish-post.d.ts +18 -0
  41. package/esm/funcs/linkedin-actions-publish-post.d.ts.map +1 -0
  42. package/esm/funcs/linkedin-actions-publish-post.js +95 -0
  43. package/esm/funcs/linkedin-actions-publish-post.js.map +1 -0
  44. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +18 -0
  45. package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +1 -0
  46. package/esm/funcs/linkedin-actions-reply-to-comment.js +95 -0
  47. package/esm/funcs/linkedin-actions-reply-to-comment.js.map +1 -0
  48. package/esm/funcs/linkedin-actions-send-message.d.ts +18 -0
  49. package/esm/funcs/linkedin-actions-send-message.d.ts.map +1 -0
  50. package/esm/funcs/linkedin-actions-send-message.js +95 -0
  51. package/esm/funcs/linkedin-actions-send-message.js.map +1 -0
  52. package/esm/funcs/linkedin-chat-find-conversation.d.ts +25 -0
  53. package/esm/funcs/linkedin-chat-find-conversation.d.ts.map +1 -0
  54. package/esm/funcs/linkedin-chat-find-conversation.js +102 -0
  55. package/esm/funcs/linkedin-chat-find-conversation.js.map +1 -0
  56. package/esm/funcs/linkedin-chat-get-messages.d.ts +22 -0
  57. package/esm/funcs/linkedin-chat-get-messages.d.ts.map +1 -0
  58. package/esm/funcs/linkedin-chat-get-messages.js +99 -0
  59. package/esm/funcs/linkedin-chat-get-messages.js.map +1 -0
  60. package/esm/funcs/linkedin-chat-list-conversations.d.ts +18 -0
  61. package/esm/funcs/linkedin-chat-list-conversations.d.ts.map +1 -0
  62. package/esm/funcs/linkedin-chat-list-conversations.js +95 -0
  63. package/esm/funcs/linkedin-chat-list-conversations.js.map +1 -0
  64. package/esm/funcs/linkedin-chat-search-conversations.d.ts +18 -0
  65. package/esm/funcs/linkedin-chat-search-conversations.d.ts.map +1 -0
  66. package/esm/funcs/linkedin-chat-search-conversations.js +95 -0
  67. package/esm/funcs/linkedin-chat-search-conversations.js.map +1 -0
  68. package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts +18 -0
  69. package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts.map +1 -0
  70. package/esm/funcs/linkedin-scrapers-collect-comment-replies.js +95 -0
  71. package/esm/funcs/linkedin-scrapers-collect-comment-replies.js.map +1 -0
  72. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +18 -0
  73. package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +1 -0
  74. package/esm/funcs/linkedin-scrapers-collect-comments.js +95 -0
  75. package/esm/funcs/linkedin-scrapers-collect-comments.js.map +1 -0
  76. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +18 -0
  77. package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +1 -0
  78. package/esm/funcs/linkedin-scrapers-collect-likes.js +95 -0
  79. package/esm/funcs/linkedin-scrapers-collect-likes.js.map +1 -0
  80. package/esm/funcs/linkedin-scrapers-collect-posts.d.ts +18 -0
  81. package/esm/funcs/linkedin-scrapers-collect-posts.d.ts.map +1 -0
  82. package/esm/funcs/linkedin-scrapers-collect-posts.js +95 -0
  83. package/esm/funcs/linkedin-scrapers-collect-posts.js.map +1 -0
  84. package/esm/funcs/linkedin-scrapers-visit-company.d.ts +18 -0
  85. package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +1 -0
  86. package/esm/funcs/linkedin-scrapers-visit-company.js +95 -0
  87. package/esm/funcs/linkedin-scrapers-visit-company.js.map +1 -0
  88. package/esm/funcs/linkedin-scrapers-visit-profile.d.ts +18 -0
  89. package/esm/funcs/linkedin-scrapers-visit-profile.d.ts.map +1 -0
  90. package/esm/funcs/linkedin-scrapers-visit-profile.js +95 -0
  91. package/esm/funcs/linkedin-scrapers-visit-profile.js.map +1 -0
  92. package/esm/funcs/linkedin-search-resolve-parameters.d.ts +47 -0
  93. package/esm/funcs/linkedin-search-resolve-parameters.d.ts.map +1 -0
  94. package/esm/funcs/linkedin-search-resolve-parameters.js +124 -0
  95. package/esm/funcs/linkedin-search-resolve-parameters.js.map +1 -0
  96. package/esm/funcs/linkedin-search-search-by-url.d.ts +69 -0
  97. package/esm/funcs/linkedin-search-search-by-url.d.ts.map +1 -0
  98. package/esm/funcs/linkedin-search-search-by-url.js +146 -0
  99. package/esm/funcs/linkedin-search-search-by-url.js.map +1 -0
  100. package/esm/funcs/linkedin-search-search-companies.d.ts +75 -0
  101. package/esm/funcs/linkedin-search-search-companies.d.ts.map +1 -0
  102. package/esm/funcs/linkedin-search-search-companies.js +152 -0
  103. package/esm/funcs/linkedin-search-search-companies.js.map +1 -0
  104. package/esm/funcs/linkedin-search-search-jobs.d.ts +96 -0
  105. package/esm/funcs/linkedin-search-search-jobs.d.ts.map +1 -0
  106. package/esm/funcs/linkedin-search-search-jobs.js +173 -0
  107. package/esm/funcs/linkedin-search-search-jobs.js.map +1 -0
  108. package/esm/funcs/linkedin-search-search-people.d.ts +83 -0
  109. package/esm/funcs/linkedin-search-search-people.d.ts.map +1 -0
  110. package/esm/funcs/linkedin-search-search-people.js +160 -0
  111. package/esm/funcs/linkedin-search-search-people.js.map +1 -0
  112. package/esm/funcs/linkedin-search-search-posts.d.ts +71 -0
  113. package/esm/funcs/linkedin-search-search-posts.d.ts.map +1 -0
  114. package/esm/funcs/linkedin-search-search-posts.js +148 -0
  115. package/esm/funcs/linkedin-search-search-posts.js.map +1 -0
  116. package/esm/funcs/linkedin-search-unified-search.d.ts +55 -0
  117. package/esm/funcs/linkedin-search-unified-search.d.ts.map +1 -0
  118. package/esm/funcs/linkedin-search-unified-search.js +132 -0
  119. package/esm/funcs/linkedin-search-unified-search.js.map +1 -0
  120. package/esm/funcs/profile-get-credits.d.ts +18 -0
  121. package/esm/funcs/profile-get-credits.d.ts.map +1 -0
  122. package/esm/funcs/profile-get-credits.js +84 -0
  123. package/esm/funcs/profile-get-credits.js.map +1 -0
  124. package/esm/funcs/profile-get-followers.d.ts +18 -0
  125. package/esm/funcs/profile-get-followers.d.ts.map +1 -0
  126. package/esm/funcs/profile-get-followers.js +97 -0
  127. package/esm/funcs/profile-get-followers.js.map +1 -0
  128. package/esm/funcs/profile-get-limits.d.ts +18 -0
  129. package/esm/funcs/profile-get-limits.d.ts.map +1 -0
  130. package/esm/funcs/profile-get-limits.js +84 -0
  131. package/esm/funcs/profile-get-limits.js.map +1 -0
  132. package/esm/funcs/profile-get-linked-in-profile.d.ts +18 -0
  133. package/esm/funcs/profile-get-linked-in-profile.d.ts.map +1 -0
  134. package/esm/funcs/profile-get-linked-in-profile.js +84 -0
  135. package/esm/funcs/profile-get-linked-in-profile.js.map +1 -0
  136. package/esm/funcs/profile-get-posts.d.ts +18 -0
  137. package/esm/funcs/profile-get-posts.d.ts.map +1 -0
  138. package/esm/funcs/profile-get-posts.js +97 -0
  139. package/esm/funcs/profile-get-posts.js.map +1 -0
  140. package/esm/funcs/profile-refresh.d.ts +18 -0
  141. package/esm/funcs/profile-refresh.d.ts.map +1 -0
  142. package/esm/funcs/profile-refresh.js +84 -0
  143. package/esm/funcs/profile-refresh.js.map +1 -0
  144. package/esm/hooks/hooks.d.ts +25 -0
  145. package/esm/hooks/hooks.d.ts.map +1 -0
  146. package/esm/hooks/hooks.js +82 -0
  147. package/esm/hooks/hooks.js.map +1 -0
  148. package/esm/hooks/index.d.ts +3 -0
  149. package/esm/hooks/index.d.ts.map +1 -0
  150. package/esm/hooks/index.js +6 -0
  151. package/esm/hooks/index.js.map +1 -0
  152. package/esm/hooks/registration.d.ts +3 -0
  153. package/esm/hooks/registration.d.ts.map +1 -0
  154. package/esm/hooks/registration.js +12 -0
  155. package/esm/hooks/registration.js.map +1 -0
  156. package/esm/hooks/types.d.ts +76 -0
  157. package/esm/hooks/types.d.ts.map +1 -0
  158. package/esm/hooks/types.js +5 -0
  159. package/esm/hooks/types.js.map +1 -0
  160. package/esm/index.d.ts +6 -0
  161. package/esm/index.d.ts.map +1 -0
  162. package/esm/index.js +8 -0
  163. package/esm/index.js.map +1 -0
  164. package/esm/lib/base64.d.ts +10 -0
  165. package/esm/lib/base64.d.ts.map +1 -0
  166. package/esm/lib/base64.js +31 -0
  167. package/esm/lib/base64.js.map +1 -0
  168. package/esm/lib/config.d.ts +38 -0
  169. package/esm/lib/config.d.ts.map +1 -0
  170. package/esm/lib/config.js +34 -0
  171. package/esm/lib/config.js.map +1 -0
  172. package/esm/lib/dlv.d.ts +14 -0
  173. package/esm/lib/dlv.d.ts.map +1 -0
  174. package/esm/lib/dlv.js +46 -0
  175. package/esm/lib/dlv.js.map +1 -0
  176. package/esm/lib/encodings.d.ts +53 -0
  177. package/esm/lib/encodings.d.ts.map +1 -0
  178. package/esm/lib/encodings.js +370 -0
  179. package/esm/lib/encodings.js.map +1 -0
  180. package/esm/lib/env.d.ts +15 -0
  181. package/esm/lib/env.d.ts.map +1 -0
  182. package/esm/lib/env.js +44 -0
  183. package/esm/lib/env.js.map +1 -0
  184. package/esm/lib/files.d.ts +13 -0
  185. package/esm/lib/files.d.ts.map +1 -0
  186. package/esm/lib/files.js +73 -0
  187. package/esm/lib/files.js.map +1 -0
  188. package/esm/lib/http.d.ts +67 -0
  189. package/esm/lib/http.d.ts.map +1 -0
  190. package/esm/lib/http.js +209 -0
  191. package/esm/lib/http.js.map +1 -0
  192. package/esm/lib/is-plain-object.d.ts +2 -0
  193. package/esm/lib/is-plain-object.d.ts.map +1 -0
  194. package/esm/lib/is-plain-object.js +38 -0
  195. package/esm/lib/is-plain-object.js.map +1 -0
  196. package/esm/lib/logger.d.ts +6 -0
  197. package/esm/lib/logger.d.ts.map +1 -0
  198. package/esm/lib/logger.js +5 -0
  199. package/esm/lib/logger.js.map +1 -0
  200. package/esm/lib/matchers.d.ts +59 -0
  201. package/esm/lib/matchers.d.ts.map +1 -0
  202. package/esm/lib/matchers.js +202 -0
  203. package/esm/lib/matchers.js.map +1 -0
  204. package/esm/lib/primitives.d.ts +26 -0
  205. package/esm/lib/primitives.d.ts.map +1 -0
  206. package/esm/lib/primitives.js +103 -0
  207. package/esm/lib/primitives.js.map +1 -0
  208. package/esm/lib/retries.d.ts +38 -0
  209. package/esm/lib/retries.d.ts.map +1 -0
  210. package/esm/lib/retries.js +150 -0
  211. package/esm/lib/retries.js.map +1 -0
  212. package/esm/lib/schemas.d.ts +21 -0
  213. package/esm/lib/schemas.d.ts.map +1 -0
  214. package/esm/lib/schemas.js +57 -0
  215. package/esm/lib/schemas.js.map +1 -0
  216. package/esm/lib/sdks.d.ts +63 -0
  217. package/esm/lib/sdks.d.ts.map +1 -0
  218. package/esm/lib/sdks.js +258 -0
  219. package/esm/lib/sdks.js.map +1 -0
  220. package/esm/lib/security.d.ts +83 -0
  221. package/esm/lib/security.d.ts.map +1 -0
  222. package/esm/lib/security.js +138 -0
  223. package/esm/lib/security.js.map +1 -0
  224. package/esm/lib/url.d.ts +5 -0
  225. package/esm/lib/url.d.ts.map +1 -0
  226. package/esm/lib/url.js +22 -0
  227. package/esm/lib/url.js.map +1 -0
  228. package/esm/models/errors/bereach-default-error.d.ts +10 -0
  229. package/esm/models/errors/bereach-default-error.d.ts.map +1 -0
  230. package/esm/models/errors/bereach-default-error.js +30 -0
  231. package/esm/models/errors/bereach-default-error.js.map +1 -0
  232. package/esm/models/errors/bereach-error.d.ts +19 -0
  233. package/esm/models/errors/bereach-error.d.ts.map +1 -0
  234. package/esm/models/errors/bereach-error.js +26 -0
  235. package/esm/models/errors/bereach-error.js.map +1 -0
  236. package/esm/models/errors/collect-linked-in-likes.d.ts +211 -0
  237. package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -0
  238. package/esm/models/errors/collect-linked-in-likes.js +306 -0
  239. package/esm/models/errors/collect-linked-in-likes.js.map +1 -0
  240. package/esm/models/errors/http-client-errors.d.ts +44 -0
  241. package/esm/models/errors/http-client-errors.d.ts.map +1 -0
  242. package/esm/models/errors/http-client-errors.js +56 -0
  243. package/esm/models/errors/http-client-errors.js.map +1 -0
  244. package/esm/models/errors/index.d.ts +7 -0
  245. package/esm/models/errors/index.d.ts.map +1 -0
  246. package/esm/models/errors/index.js +10 -0
  247. package/esm/models/errors/index.js.map +1 -0
  248. package/esm/models/errors/response-validation-error.d.ts +26 -0
  249. package/esm/models/errors/response-validation-error.d.ts.map +1 -0
  250. package/esm/models/errors/response-validation-error.js +37 -0
  251. package/esm/models/errors/response-validation-error.js.map +1 -0
  252. package/esm/models/errors/sdk-validation-error.d.ts +21 -0
  253. package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
  254. package/esm/models/errors/sdk-validation-error.js +52 -0
  255. package/esm/models/errors/sdk-validation-error.js.map +1 -0
  256. package/esm/models/index.d.ts +2 -0
  257. package/esm/models/index.d.ts.map +1 -0
  258. package/esm/models/index.js +5 -0
  259. package/esm/models/index.js.map +1 -0
  260. package/esm/models/operations/get-campaign-stats-response.d.ts +1627 -0
  261. package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -0
  262. package/esm/models/operations/get-campaign-stats-response.js +1002 -0
  263. package/esm/models/operations/get-campaign-stats-response.js.map +1 -0
  264. package/esm/models/operations/index.d.ts +3 -0
  265. package/esm/models/operations/index.d.ts.map +1 -0
  266. package/esm/models/operations/index.js +6 -0
  267. package/esm/models/operations/index.js.map +1 -0
  268. package/esm/models/operations/send-linked-in-message-response.d.ts +2350 -0
  269. package/esm/models/operations/send-linked-in-message-response.d.ts.map +1 -0
  270. package/esm/models/operations/send-linked-in-message-response.js +1585 -0
  271. package/esm/models/operations/send-linked-in-message-response.js.map +1 -0
  272. package/esm/models/security.d.ts +12 -0
  273. package/esm/models/security.d.ts.map +1 -0
  274. package/esm/models/security.js +12 -0
  275. package/esm/models/security.js.map +1 -0
  276. package/esm/sdk/campaigns.d.ts +35 -0
  277. package/esm/sdk/campaigns.d.ts.map +1 -0
  278. package/esm/sdk/campaigns.js +50 -0
  279. package/esm/sdk/campaigns.js.map +1 -0
  280. package/esm/sdk/index.d.ts +2 -0
  281. package/esm/sdk/index.d.ts.map +1 -0
  282. package/esm/sdk/index.js +5 -0
  283. package/esm/sdk/index.js.map +1 -0
  284. package/esm/sdk/linkedin-actions.d.ts +54 -0
  285. package/esm/sdk/linkedin-actions.d.ts.map +1 -0
  286. package/esm/sdk/linkedin-actions.js +78 -0
  287. package/esm/sdk/linkedin-actions.js.map +1 -0
  288. package/esm/sdk/linkedin-chat.d.ts +44 -0
  289. package/esm/sdk/linkedin-chat.d.ts.map +1 -0
  290. package/esm/sdk/linkedin-chat.js +59 -0
  291. package/esm/sdk/linkedin-chat.js.map +1 -0
  292. package/esm/sdk/linkedin-scrapers.d.ts +47 -0
  293. package/esm/sdk/linkedin-scrapers.d.ts.map +1 -0
  294. package/esm/sdk/linkedin-scrapers.js +68 -0
  295. package/esm/sdk/linkedin-scrapers.js.map +1 -0
  296. package/esm/sdk/linkedin-search.d.ts +424 -0
  297. package/esm/sdk/linkedin-search.d.ts.map +1 -0
  298. package/esm/sdk/linkedin-search.js +448 -0
  299. package/esm/sdk/linkedin-search.js.map +1 -0
  300. package/esm/sdk/profile.d.ts +47 -0
  301. package/esm/sdk/profile.d.ts.map +1 -0
  302. package/esm/sdk/profile.js +68 -0
  303. package/esm/sdk/profile.js.map +1 -0
  304. package/esm/sdk/sdk.d.ts +22 -0
  305. package/esm/sdk/sdk.d.ts.map +1 -0
  306. package/esm/sdk/sdk.js +37 -0
  307. package/esm/sdk/sdk.js.map +1 -0
  308. package/esm/types/async.d.ts +23 -0
  309. package/esm/types/async.d.ts.map +1 -0
  310. package/esm/types/async.js +28 -0
  311. package/esm/types/async.js.map +1 -0
  312. package/esm/types/blobs.d.ts +4 -0
  313. package/esm/types/blobs.d.ts.map +1 -0
  314. package/esm/types/blobs.js +25 -0
  315. package/esm/types/blobs.js.map +1 -0
  316. package/esm/types/const-date-time.d.ts +3 -0
  317. package/esm/types/const-date-time.d.ts.map +1 -0
  318. package/esm/types/const-date-time.js +10 -0
  319. package/esm/types/const-date-time.js.map +1 -0
  320. package/esm/types/default-to-zero-value.d.ts +12 -0
  321. package/esm/types/default-to-zero-value.d.ts.map +1 -0
  322. package/esm/types/default-to-zero-value.js +31 -0
  323. package/esm/types/default-to-zero-value.js.map +1 -0
  324. package/esm/types/enums.d.ts +9 -0
  325. package/esm/types/enums.d.ts.map +1 -0
  326. package/esm/types/enums.js +27 -0
  327. package/esm/types/enums.js.map +1 -0
  328. package/esm/types/fp.d.ts +31 -0
  329. package/esm/types/fp.d.ts.map +1 -0
  330. package/esm/types/fp.js +31 -0
  331. package/esm/types/fp.js.map +1 -0
  332. package/esm/types/index.d.ts +10 -0
  333. package/esm/types/index.d.ts.map +1 -0
  334. package/esm/types/index.js +10 -0
  335. package/esm/types/index.js.map +1 -0
  336. package/esm/types/operations.d.ts +27 -0
  337. package/esm/types/operations.d.ts.map +1 -0
  338. package/esm/types/operations.js +77 -0
  339. package/esm/types/operations.js.map +1 -0
  340. package/esm/types/primitives.d.ts +11 -0
  341. package/esm/types/primitives.d.ts.map +1 -0
  342. package/esm/types/primitives.js +132 -0
  343. package/esm/types/primitives.js.map +1 -0
  344. package/esm/types/rfcdate.d.ts +21 -0
  345. package/esm/types/rfcdate.d.ts.map +1 -0
  346. package/esm/types/rfcdate.js +43 -0
  347. package/esm/types/rfcdate.js.map +1 -0
  348. package/esm/types/smart-union.d.ts +7 -0
  349. package/esm/types/smart-union.d.ts.map +1 -0
  350. package/esm/types/smart-union.js +117 -0
  351. package/esm/types/smart-union.js.map +1 -0
  352. package/esm/types/streams.d.ts +2 -0
  353. package/esm/types/streams.d.ts.map +1 -0
  354. package/esm/types/streams.js +15 -0
  355. package/esm/types/streams.js.map +1 -0
  356. package/esm/types/unrecognized.d.ts +16 -0
  357. package/esm/types/unrecognized.d.ts.map +1 -0
  358. package/esm/types/unrecognized.js +31 -0
  359. package/esm/types/unrecognized.js.map +1 -0
  360. package/examples/linkedinScrapersCollectLikes.example.ts +30 -0
  361. package/jsr.json +27 -0
  362. package/package.json +62 -0
  363. package/src/core.ts +13 -0
  364. package/src/funcs/campaigns-filter.ts +227 -0
  365. package/src/funcs/campaigns-get-stats.ts +222 -0
  366. package/src/funcs/campaigns-get-status.ts +222 -0
  367. package/src/funcs/campaigns-sync-actions.ts +222 -0
  368. package/src/funcs/linkedin-actions-accept-invitation.ts +215 -0
  369. package/src/funcs/linkedin-actions-connect-profile.ts +215 -0
  370. package/src/funcs/linkedin-actions-like-comment.ts +215 -0
  371. package/src/funcs/linkedin-actions-list-invitations.ts +220 -0
  372. package/src/funcs/linkedin-actions-publish-post.ts +215 -0
  373. package/src/funcs/linkedin-actions-reply-to-comment.ts +215 -0
  374. package/src/funcs/linkedin-actions-send-message.ts +215 -0
  375. package/src/funcs/linkedin-chat-find-conversation.ts +222 -0
  376. package/src/funcs/linkedin-chat-get-messages.ts +219 -0
  377. package/src/funcs/linkedin-chat-list-conversations.ts +215 -0
  378. package/src/funcs/linkedin-chat-search-conversations.ts +218 -0
  379. package/src/funcs/linkedin-scrapers-collect-comment-replies.ts +218 -0
  380. package/src/funcs/linkedin-scrapers-collect-comments.ts +215 -0
  381. package/src/funcs/linkedin-scrapers-collect-likes.ts +215 -0
  382. package/src/funcs/linkedin-scrapers-collect-posts.ts +215 -0
  383. package/src/funcs/linkedin-scrapers-visit-company.ts +215 -0
  384. package/src/funcs/linkedin-scrapers-visit-profile.ts +215 -0
  385. package/src/funcs/linkedin-search-resolve-parameters.ts +250 -0
  386. package/src/funcs/linkedin-search-search-by-url.ts +266 -0
  387. package/src/funcs/linkedin-search-search-companies.ts +272 -0
  388. package/src/funcs/linkedin-search-search-jobs.ts +293 -0
  389. package/src/funcs/linkedin-search-search-people.ts +280 -0
  390. package/src/funcs/linkedin-search-search-posts.ts +268 -0
  391. package/src/funcs/linkedin-search-unified-search.ts +251 -0
  392. package/src/funcs/profile-get-credits.ts +195 -0
  393. package/src/funcs/profile-get-followers.ts +220 -0
  394. package/src/funcs/profile-get-limits.ts +195 -0
  395. package/src/funcs/profile-get-linked-in-profile.ts +195 -0
  396. package/src/funcs/profile-get-posts.ts +220 -0
  397. package/src/funcs/profile-refresh.ts +195 -0
  398. package/src/hooks/hooks.ts +132 -0
  399. package/src/hooks/index.ts +6 -0
  400. package/src/hooks/registration.ts +14 -0
  401. package/src/hooks/types.ts +107 -0
  402. package/src/index.ts +9 -0
  403. package/src/lib/base64.ts +39 -0
  404. package/src/lib/config.ts +67 -0
  405. package/src/lib/dlv.ts +53 -0
  406. package/src/lib/encodings.ts +501 -0
  407. package/src/lib/env.ts +57 -0
  408. package/src/lib/files.ts +82 -0
  409. package/src/lib/http.ts +323 -0
  410. package/src/lib/is-plain-object.ts +43 -0
  411. package/src/lib/logger.ts +9 -0
  412. package/src/lib/matchers.ts +353 -0
  413. package/src/lib/primitives.ts +150 -0
  414. package/src/lib/retries.ts +218 -0
  415. package/src/lib/schemas.ts +94 -0
  416. package/src/lib/sdks.ts +406 -0
  417. package/src/lib/security.ts +263 -0
  418. package/src/lib/url.ts +33 -0
  419. package/src/models/errors/bereach-default-error.ts +40 -0
  420. package/src/models/errors/bereach-error.ts +35 -0
  421. package/src/models/errors/collect-linked-in-likes.ts +494 -0
  422. package/src/models/errors/http-client-errors.ts +62 -0
  423. package/src/models/errors/index.ts +10 -0
  424. package/src/models/errors/response-validation-error.ts +50 -0
  425. package/src/models/errors/sdk-validation-error.ts +54 -0
  426. package/src/models/index.ts +5 -0
  427. package/src/models/operations/get-campaign-stats-response.ts +3409 -0
  428. package/src/models/operations/index.ts +6 -0
  429. package/src/models/operations/send-linked-in-message-response.ts +4903 -0
  430. package/src/models/security.ts +26 -0
  431. package/src/sdk/campaigns.ts +83 -0
  432. package/src/sdk/index.ts +5 -0
  433. package/src/sdk/linkedin-actions.ts +135 -0
  434. package/src/sdk/linkedin-chat.ts +92 -0
  435. package/src/sdk/linkedin-scrapers.ts +117 -0
  436. package/src/sdk/linkedin-search.ts +505 -0
  437. package/src/sdk/profile.ts +109 -0
  438. package/src/sdk/sdk.ts +43 -0
  439. package/src/types/async.ts +68 -0
  440. package/src/types/blobs.ts +33 -0
  441. package/src/types/const-date-time.ts +15 -0
  442. package/src/types/default-to-zero-value.ts +33 -0
  443. package/src/types/enums.ts +45 -0
  444. package/src/types/fp.ts +50 -0
  445. package/src/types/index.ts +13 -0
  446. package/src/types/operations.ts +105 -0
  447. package/src/types/primitives.ts +168 -0
  448. package/src/types/rfcdate.ts +54 -0
  449. package/src/types/smart-union.ts +153 -0
  450. package/src/types/streams.ts +21 -0
  451. package/src/types/unrecognized.ts +35 -0
@@ -0,0 +1,1585 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import * as types from "../../types/primitives.js";
8
+ import { smartUnion } from "../../types/smart-union.js";
9
+ export const CollectLinkedInLikesCode = {
10
+ RateLimitExceeded: "rate_limit_exceeded",
11
+ };
12
+ export const CollectLinkedInLikesType = {
13
+ Like: "like",
14
+ };
15
+ export const CollectLinkedInCommentsType = {
16
+ Comment: "comment",
17
+ };
18
+ export const CollectLinkedInCommentRepliesType = {
19
+ Comment: "comment",
20
+ };
21
+ export const CollectLinkedInPostsType = {
22
+ Activity: "activity",
23
+ UgcPost: "ugcPost",
24
+ Share: "share",
25
+ };
26
+ /**
27
+ * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
28
+ */
29
+ export const PendingConnection = {
30
+ Pending: "pending",
31
+ Failed: "failed",
32
+ None: "none",
33
+ };
34
+ export const VisitLinkedInProfileType = {
35
+ Activity: "activity",
36
+ UgcPost: "ugcPost",
37
+ Share: "share",
38
+ };
39
+ /**
40
+ * Type of search to perform (required unless url is provided)
41
+ */
42
+ export const CategoryRequest = {
43
+ Posts: "posts",
44
+ People: "people",
45
+ Companies: "companies",
46
+ Jobs: "jobs",
47
+ };
48
+ /**
49
+ * Sort order (posts & jobs)
50
+ */
51
+ export const SearchLinkedInSortBy = {
52
+ Relevance: "relevance",
53
+ Date: "date",
54
+ };
55
+ /**
56
+ * Time filter (posts & jobs)
57
+ */
58
+ export const SearchLinkedInDatePosted = {
59
+ Past24h: "past-24h",
60
+ PastWeek: "past-week",
61
+ PastMonth: "past-month",
62
+ };
63
+ /**
64
+ * Media type filter (posts only)
65
+ */
66
+ export const SearchLinkedInContentType = {
67
+ Images: "images",
68
+ Videos: "videos",
69
+ Documents: "documents",
70
+ };
71
+ export const SearchLinkedInConnectionDegree = {
72
+ F: "F",
73
+ S: "S",
74
+ O: "O",
75
+ };
76
+ export const SearchLinkedInCompanySize = {
77
+ A: "A",
78
+ B: "B",
79
+ C: "C",
80
+ D: "D",
81
+ E: "E",
82
+ F: "F",
83
+ G: "G",
84
+ H: "H",
85
+ I: "I",
86
+ };
87
+ export const SearchLinkedInJobType = {
88
+ F: "F",
89
+ P: "P",
90
+ C: "C",
91
+ T: "T",
92
+ I: "I",
93
+ V: "V",
94
+ O: "O",
95
+ };
96
+ export const SearchLinkedInExperienceLevel = {
97
+ One: "1",
98
+ Two: "2",
99
+ Three: "3",
100
+ Four: "4",
101
+ Five: "5",
102
+ Six: "6",
103
+ };
104
+ export const SearchLinkedInWorkplaceType = {
105
+ One: "1",
106
+ Two: "2",
107
+ Three: "3",
108
+ };
109
+ export const SearchLinkedInCategoryResponseBody = {
110
+ Posts: "posts",
111
+ People: "people",
112
+ Companies: "companies",
113
+ Jobs: "jobs",
114
+ };
115
+ export const SearchLinkedInTypeJob = {
116
+ Job: "JOB",
117
+ };
118
+ export const SearchLinkedInTypeCompany = {
119
+ Company: "COMPANY",
120
+ };
121
+ export const SearchLinkedInTypePeople = {
122
+ People: "PEOPLE",
123
+ };
124
+ export const SearchLinkedInNetworkDistance = {
125
+ Distance1: "DISTANCE_1",
126
+ Distance2: "DISTANCE_2",
127
+ Distance3: "DISTANCE_3",
128
+ OutOfNetwork: "OUT_OF_NETWORK",
129
+ };
130
+ export const SearchLinkedInTypePost = {
131
+ Post: "POST",
132
+ };
133
+ /**
134
+ * Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
135
+ */
136
+ export const SearchLinkedInPostsSortBy = {
137
+ Relevance: "relevance",
138
+ Date: "date",
139
+ };
140
+ /**
141
+ * Filter by publication date. Useful for finding recent discussions or trending topics.
142
+ */
143
+ export const SearchLinkedInPostsDatePosted = {
144
+ Past24h: "past-24h",
145
+ PastWeek: "past-week",
146
+ PastMonth: "past-month",
147
+ };
148
+ /**
149
+ * Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
150
+ */
151
+ export const SearchLinkedInPostsContentType = {
152
+ Images: "images",
153
+ Videos: "videos",
154
+ Documents: "documents",
155
+ };
156
+ export const SearchLinkedInPostsCategory = {
157
+ Posts: "posts",
158
+ };
159
+ export const SearchLinkedInPostsType = {
160
+ Post: "POST",
161
+ };
162
+ export const SearchLinkedInPeopleConnectionDegree = {
163
+ F: "F",
164
+ S: "S",
165
+ O: "O",
166
+ };
167
+ export const SearchLinkedInPeopleCategory = {
168
+ People: "people",
169
+ };
170
+ export const SearchLinkedInPeopleType = {
171
+ People: "PEOPLE",
172
+ };
173
+ export const SearchLinkedInPeopleNetworkDistance = {
174
+ Distance1: "DISTANCE_1",
175
+ Distance2: "DISTANCE_2",
176
+ Distance3: "DISTANCE_3",
177
+ OutOfNetwork: "OUT_OF_NETWORK",
178
+ };
179
+ export const SearchLinkedInCompaniesCompanySize = {
180
+ A: "A",
181
+ B: "B",
182
+ C: "C",
183
+ D: "D",
184
+ E: "E",
185
+ F: "F",
186
+ G: "G",
187
+ H: "H",
188
+ I: "I",
189
+ };
190
+ export const SearchLinkedInCompaniesCategory = {
191
+ Companies: "companies",
192
+ };
193
+ export const SearchLinkedInCompaniesType = {
194
+ Company: "COMPANY",
195
+ };
196
+ /**
197
+ * Filter by posting date. Useful for finding recently posted jobs.
198
+ */
199
+ export const SearchLinkedInJobsDatePosted = {
200
+ Past24h: "past-24h",
201
+ PastWeek: "past-week",
202
+ PastMonth: "past-month",
203
+ };
204
+ /**
205
+ * Sort order. 'relevance' (default) or 'date' (most recent first).
206
+ */
207
+ export const SearchLinkedInJobsSortBy = {
208
+ Relevance: "relevance",
209
+ Date: "date",
210
+ };
211
+ export const SearchLinkedInJobsJobType = {
212
+ F: "F",
213
+ P: "P",
214
+ C: "C",
215
+ T: "T",
216
+ I: "I",
217
+ V: "V",
218
+ O: "O",
219
+ };
220
+ export const SearchLinkedInJobsExperienceLevel = {
221
+ One: "1",
222
+ Two: "2",
223
+ Three: "3",
224
+ Four: "4",
225
+ Five: "5",
226
+ Six: "6",
227
+ };
228
+ export const SearchLinkedInJobsWorkplaceType = {
229
+ One: "1",
230
+ Two: "2",
231
+ Three: "3",
232
+ };
233
+ export const SearchLinkedInJobsCategory = {
234
+ Jobs: "jobs",
235
+ };
236
+ export const SearchLinkedInJobsType = {
237
+ Job: "JOB",
238
+ };
239
+ export const SearchLinkedInByUrlCategory = {
240
+ Posts: "posts",
241
+ People: "people",
242
+ Companies: "companies",
243
+ Jobs: "jobs",
244
+ };
245
+ export const SearchLinkedInByUrlTypeJob = {
246
+ Job: "JOB",
247
+ };
248
+ export const SearchLinkedInByUrlTypeCompany = {
249
+ Company: "COMPANY",
250
+ };
251
+ export const SearchLinkedInByUrlTypePeople = {
252
+ People: "PEOPLE",
253
+ };
254
+ export const SearchLinkedInByUrlNetworkDistance = {
255
+ Distance1: "DISTANCE_1",
256
+ Distance2: "DISTANCE_2",
257
+ Distance3: "DISTANCE_3",
258
+ OutOfNetwork: "OUT_OF_NETWORK",
259
+ };
260
+ export const SearchLinkedInByUrlTypePost = {
261
+ Post: "POST",
262
+ };
263
+ /**
264
+ * Parameter type to resolve
265
+ */
266
+ export const ResolveLinkedInSearchParametersType = {
267
+ Geo: "GEO",
268
+ Company: "COMPANY",
269
+ Industry: "INDUSTRY",
270
+ School: "SCHOOL",
271
+ Connections: "CONNECTIONS",
272
+ People: "PEOPLE",
273
+ };
274
+ /** @internal */
275
+ export const CollectLinkedInLikesRequest$outboundSchema = z.object({
276
+ postUrl: z.string(),
277
+ start: z.optional(z.int()),
278
+ count: z.optional(z.int()),
279
+ });
280
+ export function collectLinkedInLikesRequestToJSON(collectLinkedInLikesRequest) {
281
+ return JSON.stringify(CollectLinkedInLikesRequest$outboundSchema.parse(collectLinkedInLikesRequest));
282
+ }
283
+ /** @internal */
284
+ export const CollectLinkedInLikesInternalServerErrorDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
285
+ export function collectLinkedInLikesInternalServerErrorDetailsFromJSON(jsonString) {
286
+ return safeParse(jsonString, (x) => CollectLinkedInLikesInternalServerErrorDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesInternalServerErrorDetails' from JSON`);
287
+ }
288
+ /** @internal */
289
+ export const CollectLinkedInLikesInternalServerErrorError$inboundSchema = z
290
+ .object({
291
+ code: types.string(),
292
+ message: types.string(),
293
+ docs: types.optional(types.string()),
294
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
295
+ });
296
+ export function collectLinkedInLikesInternalServerErrorErrorFromJSON(jsonString) {
297
+ return safeParse(jsonString, (x) => CollectLinkedInLikesInternalServerErrorError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesInternalServerErrorError' from JSON`);
298
+ }
299
+ /** @internal */
300
+ export const CollectLinkedInLikesCode$inboundSchema = z.enum(CollectLinkedInLikesCode);
301
+ /** @internal */
302
+ export const CollectLinkedInLikesDaily$inboundSchema = z.object({
303
+ current: types.number(),
304
+ limit: types.number(),
305
+ });
306
+ export function collectLinkedInLikesDailyFromJSON(jsonString) {
307
+ return safeParse(jsonString, (x) => CollectLinkedInLikesDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesDaily' from JSON`);
308
+ }
309
+ /** @internal */
310
+ export const CollectLinkedInLikesWeekly$inboundSchema = z.object({
311
+ current: types.number(),
312
+ limit: types.number(),
313
+ });
314
+ export function collectLinkedInLikesWeeklyFromJSON(jsonString) {
315
+ return safeParse(jsonString, (x) => CollectLinkedInLikesWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesWeekly' from JSON`);
316
+ }
317
+ /** @internal */
318
+ export const CollectLinkedInLikesTooManyRequestsError$inboundSchema = z.object({
319
+ code: CollectLinkedInLikesCode$inboundSchema,
320
+ message: types.string(),
321
+ docs: types.optional(types.string()),
322
+ retryAfter: types.number(),
323
+ daily: types.nullable(z.lazy(() => CollectLinkedInLikesDaily$inboundSchema)),
324
+ weekly: types.nullable(z.lazy(() => CollectLinkedInLikesWeekly$inboundSchema)),
325
+ });
326
+ export function collectLinkedInLikesTooManyRequestsErrorFromJSON(jsonString) {
327
+ return safeParse(jsonString, (x) => CollectLinkedInLikesTooManyRequestsError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesTooManyRequestsError' from JSON`);
328
+ }
329
+ /** @internal */
330
+ export const CollectLinkedInLikesUnprocessableEntityDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
331
+ export function collectLinkedInLikesUnprocessableEntityDetailsFromJSON(jsonString) {
332
+ return safeParse(jsonString, (x) => CollectLinkedInLikesUnprocessableEntityDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesUnprocessableEntityDetails' from JSON`);
333
+ }
334
+ /** @internal */
335
+ export const CollectLinkedInLikesUnprocessableEntityError$inboundSchema = z
336
+ .object({
337
+ code: types.string(),
338
+ message: types.string(),
339
+ docs: types.optional(types.string()),
340
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
341
+ });
342
+ export function collectLinkedInLikesUnprocessableEntityErrorFromJSON(jsonString) {
343
+ return safeParse(jsonString, (x) => CollectLinkedInLikesUnprocessableEntityError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesUnprocessableEntityError' from JSON`);
344
+ }
345
+ /** @internal */
346
+ export const CollectLinkedInLikesGoneDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
347
+ export function collectLinkedInLikesGoneDetailsFromJSON(jsonString) {
348
+ return safeParse(jsonString, (x) => CollectLinkedInLikesGoneDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesGoneDetails' from JSON`);
349
+ }
350
+ /** @internal */
351
+ export const CollectLinkedInLikesGoneError$inboundSchema = z.object({
352
+ code: types.string(),
353
+ message: types.string(),
354
+ docs: types.optional(types.string()),
355
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
356
+ });
357
+ export function collectLinkedInLikesGoneErrorFromJSON(jsonString) {
358
+ return safeParse(jsonString, (x) => CollectLinkedInLikesGoneError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesGoneError' from JSON`);
359
+ }
360
+ /** @internal */
361
+ export const CollectLinkedInLikesConflictDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
362
+ export function collectLinkedInLikesConflictDetailsFromJSON(jsonString) {
363
+ return safeParse(jsonString, (x) => CollectLinkedInLikesConflictDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesConflictDetails' from JSON`);
364
+ }
365
+ /** @internal */
366
+ export const CollectLinkedInLikesConflictError$inboundSchema = z.object({
367
+ code: types.string(),
368
+ message: types.string(),
369
+ docs: types.optional(types.string()),
370
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
371
+ });
372
+ export function collectLinkedInLikesConflictErrorFromJSON(jsonString) {
373
+ return safeParse(jsonString, (x) => CollectLinkedInLikesConflictError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesConflictError' from JSON`);
374
+ }
375
+ /** @internal */
376
+ export const CollectLinkedInLikesNotFoundDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
377
+ export function collectLinkedInLikesNotFoundDetailsFromJSON(jsonString) {
378
+ return safeParse(jsonString, (x) => CollectLinkedInLikesNotFoundDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesNotFoundDetails' from JSON`);
379
+ }
380
+ /** @internal */
381
+ export const CollectLinkedInLikesNotFoundError$inboundSchema = z.object({
382
+ code: types.string(),
383
+ message: types.string(),
384
+ docs: types.optional(types.string()),
385
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
386
+ });
387
+ export function collectLinkedInLikesNotFoundErrorFromJSON(jsonString) {
388
+ return safeParse(jsonString, (x) => CollectLinkedInLikesNotFoundError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesNotFoundError' from JSON`);
389
+ }
390
+ /** @internal */
391
+ export const CollectLinkedInLikesForbiddenDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
392
+ export function collectLinkedInLikesForbiddenDetailsFromJSON(jsonString) {
393
+ return safeParse(jsonString, (x) => CollectLinkedInLikesForbiddenDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesForbiddenDetails' from JSON`);
394
+ }
395
+ /** @internal */
396
+ export const CollectLinkedInLikesForbiddenError$inboundSchema = z.object({
397
+ code: types.string(),
398
+ message: types.string(),
399
+ docs: types.optional(types.string()),
400
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
401
+ });
402
+ export function collectLinkedInLikesForbiddenErrorFromJSON(jsonString) {
403
+ return safeParse(jsonString, (x) => CollectLinkedInLikesForbiddenError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesForbiddenError' from JSON`);
404
+ }
405
+ /** @internal */
406
+ export const CollectLinkedInLikesUnauthorizedDetails$inboundSchema = smartUnion([
407
+ types.string(),
408
+ z.array(types.string()),
409
+ ]);
410
+ export function collectLinkedInLikesUnauthorizedDetailsFromJSON(jsonString) {
411
+ return safeParse(jsonString, (x) => CollectLinkedInLikesUnauthorizedDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesUnauthorizedDetails' from JSON`);
412
+ }
413
+ /** @internal */
414
+ export const CollectLinkedInLikesUnauthorizedError$inboundSchema = z.object({
415
+ code: types.string(),
416
+ message: types.string(),
417
+ docs: types.optional(types.string()),
418
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
419
+ });
420
+ export function collectLinkedInLikesUnauthorizedErrorFromJSON(jsonString) {
421
+ return safeParse(jsonString, (x) => CollectLinkedInLikesUnauthorizedError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesUnauthorizedError' from JSON`);
422
+ }
423
+ /** @internal */
424
+ export const CollectLinkedInLikesBadRequestDetails$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
425
+ export function collectLinkedInLikesBadRequestDetailsFromJSON(jsonString) {
426
+ return safeParse(jsonString, (x) => CollectLinkedInLikesBadRequestDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesBadRequestDetails' from JSON`);
427
+ }
428
+ /** @internal */
429
+ export const CollectLinkedInLikesBadRequestError$inboundSchema = z.object({
430
+ code: types.string(),
431
+ message: types.string(),
432
+ docs: types.optional(types.string()),
433
+ details: types.optional(smartUnion([types.string(), z.array(types.string())])),
434
+ });
435
+ export function collectLinkedInLikesBadRequestErrorFromJSON(jsonString) {
436
+ return safeParse(jsonString, (x) => CollectLinkedInLikesBadRequestError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesBadRequestError' from JSON`);
437
+ }
438
+ /** @internal */
439
+ export const CollectLinkedInLikesType$inboundSchema = z.enum(CollectLinkedInLikesType);
440
+ /** @internal */
441
+ export const CollectLinkedInLikesProfile$inboundSchema = z.object({
442
+ name: types.string(),
443
+ headline: z.optional(z.nullable(types.string())),
444
+ profileUrl: z.optional(z.nullable(types.string())),
445
+ imageUrl: z.optional(z.nullable(types.string())),
446
+ type: CollectLinkedInLikesType$inboundSchema,
447
+ });
448
+ export function collectLinkedInLikesProfileFromJSON(jsonString) {
449
+ return safeParse(jsonString, (x) => CollectLinkedInLikesProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesProfile' from JSON`);
450
+ }
451
+ /** @internal */
452
+ export const CollectLinkedInLikesResponse$inboundSchema = z.object({
453
+ success: types.boolean(),
454
+ profiles: z.array(z.lazy(() => CollectLinkedInLikesProfile$inboundSchema)),
455
+ count: types.number(),
456
+ total: types.number(),
457
+ start: types.number(),
458
+ hasMore: types.boolean(),
459
+ previousTotal: types.nullable(types.number()),
460
+ creditsUsed: types.number(),
461
+ retryAfter: types.number(),
462
+ });
463
+ export function collectLinkedInLikesResponseFromJSON(jsonString) {
464
+ return safeParse(jsonString, (x) => CollectLinkedInLikesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInLikesResponse' from JSON`);
465
+ }
466
+ /** @internal */
467
+ export const CollectLinkedInCommentsRequest$outboundSchema = z.object({
468
+ postUrl: z.string(),
469
+ start: z.optional(z.int()),
470
+ count: z.optional(z.int()),
471
+ campaignSlug: z.optional(z.string()),
472
+ });
473
+ export function collectLinkedInCommentsRequestToJSON(collectLinkedInCommentsRequest) {
474
+ return JSON.stringify(CollectLinkedInCommentsRequest$outboundSchema.parse(collectLinkedInCommentsRequest));
475
+ }
476
+ /** @internal */
477
+ export const CollectLinkedInCommentsType$inboundSchema = z.enum(CollectLinkedInCommentsType);
478
+ /** @internal */
479
+ export const CollectLinkedInCommentsActionsCompleted$inboundSchema = z.object({
480
+ message: types.boolean(),
481
+ reply: types.boolean(),
482
+ like: types.boolean(),
483
+ visit: types.boolean(),
484
+ connect: types.boolean(),
485
+ });
486
+ export function collectLinkedInCommentsActionsCompletedFromJSON(jsonString) {
487
+ return safeParse(jsonString, (x) => CollectLinkedInCommentsActionsCompleted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInCommentsActionsCompleted' from JSON`);
488
+ }
489
+ /** @internal */
490
+ export const CollectLinkedInCommentsProfile$inboundSchema = z.object({
491
+ name: types.string(),
492
+ headline: z.optional(z.nullable(types.string())),
493
+ profileUrl: z.optional(z.nullable(types.string())),
494
+ imageUrl: z.optional(z.nullable(types.string())),
495
+ type: CollectLinkedInCommentsType$inboundSchema,
496
+ commentText: types.optional(types.string()),
497
+ timestamp: z.optional(z.nullable(types.number())),
498
+ isEdited: types.optional(types.boolean()),
499
+ commentUrn: types.optional(types.string()),
500
+ commentHash: types.optional(types.string()),
501
+ isPostAuthor: types.optional(types.boolean()),
502
+ repliesCount: types.optional(types.number()),
503
+ hasReplyFromPostAuthor: types.optional(types.boolean()),
504
+ postUrn: types.optional(types.string()),
505
+ postHash: types.optional(types.string()),
506
+ actionsCompleted: types.optional(z.lazy(() => CollectLinkedInCommentsActionsCompleted$inboundSchema)),
507
+ knownDistance: z.optional(z.nullable(types.number())),
508
+ });
509
+ export function collectLinkedInCommentsProfileFromJSON(jsonString) {
510
+ return safeParse(jsonString, (x) => CollectLinkedInCommentsProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInCommentsProfile' from JSON`);
511
+ }
512
+ /** @internal */
513
+ export const CollectLinkedInCommentsResponse$inboundSchema = z.object({
514
+ success: types.boolean(),
515
+ profiles: z.array(z.lazy(() => CollectLinkedInCommentsProfile$inboundSchema)),
516
+ count: types.number(),
517
+ total: types.number(),
518
+ start: types.number(),
519
+ hasMore: types.boolean(),
520
+ previousTotal: types.nullable(types.number()),
521
+ processedCount: types.optional(types.number()),
522
+ newCount: types.optional(types.number()),
523
+ creditsUsed: types.number(),
524
+ retryAfter: types.number(),
525
+ });
526
+ export function collectLinkedInCommentsResponseFromJSON(jsonString) {
527
+ return safeParse(jsonString, (x) => CollectLinkedInCommentsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInCommentsResponse' from JSON`);
528
+ }
529
+ /** @internal */
530
+ export const CollectLinkedInCommentRepliesRequest$outboundSchema = z.object({
531
+ commentUrn: z.string(),
532
+ start: z.optional(z.int()),
533
+ count: z.optional(z.int()),
534
+ });
535
+ export function collectLinkedInCommentRepliesRequestToJSON(collectLinkedInCommentRepliesRequest) {
536
+ return JSON.stringify(CollectLinkedInCommentRepliesRequest$outboundSchema.parse(collectLinkedInCommentRepliesRequest));
537
+ }
538
+ /** @internal */
539
+ export const CollectLinkedInCommentRepliesType$inboundSchema = z.enum(CollectLinkedInCommentRepliesType);
540
+ /** @internal */
541
+ export const CollectLinkedInCommentRepliesActionsCompleted$inboundSchema = z
542
+ .object({
543
+ message: types.boolean(),
544
+ reply: types.boolean(),
545
+ like: types.boolean(),
546
+ visit: types.boolean(),
547
+ connect: types.boolean(),
548
+ });
549
+ export function collectLinkedInCommentRepliesActionsCompletedFromJSON(jsonString) {
550
+ return safeParse(jsonString, (x) => CollectLinkedInCommentRepliesActionsCompleted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInCommentRepliesActionsCompleted' from JSON`);
551
+ }
552
+ /** @internal */
553
+ export const Reply$inboundSchema = z.object({
554
+ name: types.string(),
555
+ headline: z.optional(z.nullable(types.string())),
556
+ profileUrl: z.optional(z.nullable(types.string())),
557
+ imageUrl: z.optional(z.nullable(types.string())),
558
+ type: CollectLinkedInCommentRepliesType$inboundSchema,
559
+ commentText: types.optional(types.string()),
560
+ timestamp: z.optional(z.nullable(types.number())),
561
+ isEdited: types.optional(types.boolean()),
562
+ commentUrn: types.optional(types.string()),
563
+ commentHash: types.optional(types.string()),
564
+ isPostAuthor: types.optional(types.boolean()),
565
+ repliesCount: types.optional(types.number()),
566
+ hasReplyFromPostAuthor: types.optional(types.boolean()),
567
+ postUrn: types.optional(types.string()),
568
+ postHash: types.optional(types.string()),
569
+ actionsCompleted: types.optional(z.lazy(() => CollectLinkedInCommentRepliesActionsCompleted$inboundSchema)),
570
+ knownDistance: z.optional(z.nullable(types.number())),
571
+ });
572
+ export function replyFromJSON(jsonString) {
573
+ return safeParse(jsonString, (x) => Reply$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Reply' from JSON`);
574
+ }
575
+ /** @internal */
576
+ export const CollectLinkedInCommentRepliesResponse$inboundSchema = z.object({
577
+ success: types.boolean(),
578
+ replies: z.array(z.lazy(() => Reply$inboundSchema)),
579
+ count: types.number(),
580
+ total: types.number(),
581
+ start: types.number(),
582
+ hasMore: types.boolean(),
583
+ parentCommentUrn: types.string(),
584
+ previousTotal: types.nullable(types.number()),
585
+ creditsUsed: types.number(),
586
+ retryAfter: types.number(),
587
+ });
588
+ export function collectLinkedInCommentRepliesResponseFromJSON(jsonString) {
589
+ return safeParse(jsonString, (x) => CollectLinkedInCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInCommentRepliesResponse' from JSON`);
590
+ }
591
+ /** @internal */
592
+ export const CollectLinkedInPostsRequest$outboundSchema = z.object({
593
+ profileUrl: z.string(),
594
+ count: z.optional(z.int()),
595
+ start: z.optional(z.int()),
596
+ paginationToken: z.optional(z.string()),
597
+ });
598
+ export function collectLinkedInPostsRequestToJSON(collectLinkedInPostsRequest) {
599
+ return JSON.stringify(CollectLinkedInPostsRequest$outboundSchema.parse(collectLinkedInPostsRequest));
600
+ }
601
+ /** @internal */
602
+ export const CollectLinkedInPostsType$inboundSchema = openEnums.inboundSchema(CollectLinkedInPostsType);
603
+ /** @internal */
604
+ export const CollectLinkedInPostsPost$inboundSchema = z.object({
605
+ postUrl: types.string(),
606
+ text: types.string(),
607
+ date: types.number(),
608
+ likesCount: types.number(),
609
+ commentsCount: types.number(),
610
+ sharesCount: types.number(),
611
+ postUrn: types.string(),
612
+ postId: types.string(),
613
+ type: CollectLinkedInPostsType$inboundSchema,
614
+ });
615
+ export function collectLinkedInPostsPostFromJSON(jsonString) {
616
+ return safeParse(jsonString, (x) => CollectLinkedInPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInPostsPost' from JSON`);
617
+ }
618
+ /** @internal */
619
+ export const CollectLinkedInPostsResponse$inboundSchema = z.object({
620
+ success: types.boolean(),
621
+ posts: z.array(z.lazy(() => CollectLinkedInPostsPost$inboundSchema)),
622
+ count: types.number(),
623
+ total: types.number(),
624
+ start: types.number(),
625
+ hasMore: types.boolean(),
626
+ paginationToken: types.nullable(types.string()),
627
+ previousTotal: types.nullable(types.number()),
628
+ creditsUsed: types.number(),
629
+ retryAfter: types.number(),
630
+ });
631
+ export function collectLinkedInPostsResponseFromJSON(jsonString) {
632
+ return safeParse(jsonString, (x) => CollectLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectLinkedInPostsResponse' from JSON`);
633
+ }
634
+ /** @internal */
635
+ export const VisitLinkedInProfileRequest$outboundSchema = z.object({
636
+ profile: z.string(),
637
+ campaignSlug: z.optional(z.string()),
638
+ actionSlug: z.optional(z.string()),
639
+ includePosts: z.optional(z.boolean()),
640
+ });
641
+ export function visitLinkedInProfileRequestToJSON(visitLinkedInProfileRequest) {
642
+ return JSON.stringify(VisitLinkedInProfileRequest$outboundSchema.parse(visitLinkedInProfileRequest));
643
+ }
644
+ /** @internal */
645
+ export const PendingConnection$inboundSchema = openEnums.inboundSchema(PendingConnection);
646
+ /** @internal */
647
+ export const VisitLinkedInProfilePositionStartDate$inboundSchema = z.object({
648
+ month: types.nullable(types.number()),
649
+ year: types.number(),
650
+ });
651
+ export function visitLinkedInProfilePositionStartDateFromJSON(jsonString) {
652
+ return safeParse(jsonString, (x) => VisitLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfilePositionStartDate' from JSON`);
653
+ }
654
+ /** @internal */
655
+ export const VisitLinkedInProfilePositionEndDate$inboundSchema = z.object({
656
+ month: types.nullable(types.number()),
657
+ year: types.number(),
658
+ });
659
+ export function visitLinkedInProfilePositionEndDateFromJSON(jsonString) {
660
+ return safeParse(jsonString, (x) => VisitLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfilePositionEndDate' from JSON`);
661
+ }
662
+ /** @internal */
663
+ export const VisitLinkedInProfilePosition$inboundSchema = z.object({
664
+ companyName: types.nullable(types.string()),
665
+ title: types.nullable(types.string()),
666
+ companyUrl: types.nullable(types.string()),
667
+ companyLogo: types.nullable(types.string()),
668
+ startDate: types.nullable(z.lazy(() => VisitLinkedInProfilePositionStartDate$inboundSchema)),
669
+ endDate: types.nullable(z.lazy(() => VisitLinkedInProfilePositionEndDate$inboundSchema)),
670
+ isCurrent: types.boolean(),
671
+ });
672
+ export function visitLinkedInProfilePositionFromJSON(jsonString) {
673
+ return safeParse(jsonString, (x) => VisitLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfilePosition' from JSON`);
674
+ }
675
+ /** @internal */
676
+ export const VisitLinkedInProfileEducationStartDate$inboundSchema = z.object({
677
+ month: types.nullable(types.number()),
678
+ year: types.number(),
679
+ });
680
+ export function visitLinkedInProfileEducationStartDateFromJSON(jsonString) {
681
+ return safeParse(jsonString, (x) => VisitLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfileEducationStartDate' from JSON`);
682
+ }
683
+ /** @internal */
684
+ export const VisitLinkedInProfileEducationEndDate$inboundSchema = z.object({
685
+ month: types.nullable(types.number()),
686
+ year: types.number(),
687
+ });
688
+ export function visitLinkedInProfileEducationEndDateFromJSON(jsonString) {
689
+ return safeParse(jsonString, (x) => VisitLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfileEducationEndDate' from JSON`);
690
+ }
691
+ /** @internal */
692
+ export const VisitLinkedInProfileEducation$inboundSchema = z.object({
693
+ schoolName: types.nullable(types.string()),
694
+ degreeName: types.nullable(types.string()),
695
+ fieldOfStudy: types.nullable(types.string()),
696
+ schoolUrl: types.nullable(types.string()),
697
+ schoolLogo: types.nullable(types.string()),
698
+ startDate: types.nullable(z.lazy(() => VisitLinkedInProfileEducationStartDate$inboundSchema)),
699
+ endDate: types.nullable(z.lazy(() => VisitLinkedInProfileEducationEndDate$inboundSchema)),
700
+ });
701
+ export function visitLinkedInProfileEducationFromJSON(jsonString) {
702
+ return safeParse(jsonString, (x) => VisitLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfileEducation' from JSON`);
703
+ }
704
+ /** @internal */
705
+ export const VisitLinkedInProfileType$inboundSchema = openEnums.inboundSchema(VisitLinkedInProfileType);
706
+ /** @internal */
707
+ export const VisitLinkedInProfileLastPost$inboundSchema = z.object({
708
+ postUrl: types.string(),
709
+ text: types.string(),
710
+ date: types.number(),
711
+ likesCount: types.number(),
712
+ commentsCount: types.number(),
713
+ sharesCount: types.number(),
714
+ postUrn: types.string(),
715
+ postId: types.string(),
716
+ type: VisitLinkedInProfileType$inboundSchema,
717
+ });
718
+ export function visitLinkedInProfileLastPostFromJSON(jsonString) {
719
+ return safeParse(jsonString, (x) => VisitLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfileLastPost' from JSON`);
720
+ }
721
+ /** @internal */
722
+ export const VisitLinkedInProfileResponse$inboundSchema = z.object({
723
+ success: types.boolean(),
724
+ firstName: types.string(),
725
+ lastName: types.string(),
726
+ headline: types.nullable(types.string()),
727
+ publicIdentifier: types.string(),
728
+ profileUrl: types.string(),
729
+ profileUrn: types.optional(types.string()),
730
+ imageUrl: types.nullable(types.string()),
731
+ email: z.optional(z.nullable(types.string())),
732
+ location: z.optional(z.nullable(types.string())),
733
+ company: z.optional(z.nullable(types.string())),
734
+ position: z.optional(z.nullable(types.string())),
735
+ memberDistance: z.optional(z.nullable(types.number())),
736
+ pendingConnection: PendingConnection$inboundSchema,
737
+ positions: types.optional(z.array(z.lazy(() => VisitLinkedInProfilePosition$inboundSchema))),
738
+ educations: types.optional(z.array(z.lazy(() => VisitLinkedInProfileEducation$inboundSchema))),
739
+ lastPosts: types.optional(z.array(z.lazy(() => VisitLinkedInProfileLastPost$inboundSchema))),
740
+ cached: types.boolean(),
741
+ creditsUsed: types.number(),
742
+ retryAfter: types.number(),
743
+ });
744
+ export function visitLinkedInProfileResponseFromJSON(jsonString) {
745
+ return safeParse(jsonString, (x) => VisitLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInProfileResponse' from JSON`);
746
+ }
747
+ /** @internal */
748
+ export const VisitLinkedInCompanyRequest$outboundSchema = z.object({
749
+ companyUrl: z.string(),
750
+ includeWorkplacePolicy: z.optional(z.boolean()),
751
+ });
752
+ export function visitLinkedInCompanyRequestToJSON(visitLinkedInCompanyRequest) {
753
+ return JSON.stringify(VisitLinkedInCompanyRequest$outboundSchema.parse(visitLinkedInCompanyRequest));
754
+ }
755
+ /** @internal */
756
+ export const EmployeeCountRange$inboundSchema = z.object({
757
+ start: types.number(),
758
+ end: types.nullable(types.number()),
759
+ });
760
+ export function employeeCountRangeFromJSON(jsonString) {
761
+ return safeParse(jsonString, (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmployeeCountRange' from JSON`);
762
+ }
763
+ /** @internal */
764
+ export const Headquarter$inboundSchema = z
765
+ .object({
766
+ country: types.nullable(types.string()),
767
+ geographicArea: types.nullable(types.string()),
768
+ city: types.nullable(types.string()),
769
+ postalCode: types.nullable(types.string()),
770
+ line1: types.nullable(types.string()),
771
+ line2: types.nullable(types.string()),
772
+ });
773
+ export function headquarterFromJSON(jsonString) {
774
+ return safeParse(jsonString, (x) => Headquarter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Headquarter' from JSON`);
775
+ }
776
+ /** @internal */
777
+ export const FoundedOn$inboundSchema = z
778
+ .object({
779
+ year: types.number(),
780
+ });
781
+ export function foundedOnFromJSON(jsonString) {
782
+ return safeParse(jsonString, (x) => FoundedOn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FoundedOn' from JSON`);
783
+ }
784
+ /** @internal */
785
+ export const CallToAction$inboundSchema = z.object({
786
+ type: types.string(),
787
+ url: types.string(),
788
+ });
789
+ export function callToActionFromJSON(jsonString) {
790
+ return safeParse(jsonString, (x) => CallToAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CallToAction' from JSON`);
791
+ }
792
+ /** @internal */
793
+ export const AffiliatedCompany$inboundSchema = z.object({
794
+ id: types.string(),
795
+ universalName: types.string(),
796
+ name: types.string(),
797
+ url: types.nullable(types.string()),
798
+ logoUrl: types.nullable(types.string()),
799
+ followerCount: types.nullable(types.number()),
800
+ industry: types.nullable(types.string()),
801
+ });
802
+ export function affiliatedCompanyFromJSON(jsonString) {
803
+ return safeParse(jsonString, (x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AffiliatedCompany' from JSON`);
804
+ }
805
+ /** @internal */
806
+ export const SimilarCompany$inboundSchema = z.object({
807
+ id: types.string(),
808
+ universalName: types.string(),
809
+ name: types.string(),
810
+ url: types.nullable(types.string()),
811
+ logoUrl: types.nullable(types.string()),
812
+ followerCount: types.nullable(types.number()),
813
+ industry: types.nullable(types.string()),
814
+ });
815
+ export function similarCompanyFromJSON(jsonString) {
816
+ return safeParse(jsonString, (x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimilarCompany' from JSON`);
817
+ }
818
+ /** @internal */
819
+ export const WorkplacePolicy$inboundSchema = z.object({
820
+ title: types.nullable(types.string()),
821
+ description: types.nullable(types.string()),
822
+ timeAtOnsite: types.nullable(types.string()),
823
+ benefits: z.array(types.string()),
824
+ });
825
+ export function workplacePolicyFromJSON(jsonString) {
826
+ return safeParse(jsonString, (x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkplacePolicy' from JSON`);
827
+ }
828
+ /** @internal */
829
+ export const VisitLinkedInCompanyResponse$inboundSchema = z.object({
830
+ success: types.boolean(),
831
+ id: types.string(),
832
+ universalName: types.string(),
833
+ name: types.string(),
834
+ description: types.nullable(types.string()),
835
+ url: types.string(),
836
+ websiteUrl: types.nullable(types.string()),
837
+ industry: types.nullable(types.string()),
838
+ employeeCount: types.nullable(types.number()),
839
+ employeeCountRange: types.nullable(z.lazy(() => EmployeeCountRange$inboundSchema)),
840
+ headquarter: types.nullable(z.lazy(() => Headquarter$inboundSchema)),
841
+ logoUrl: types.nullable(types.string()),
842
+ coverImageUrl: types.nullable(types.string()),
843
+ followerCount: types.nullable(types.number()),
844
+ specialities: z.array(types.string()),
845
+ tagline: types.nullable(types.string()),
846
+ isVerified: types.boolean(),
847
+ foundedOn: types.nullable(z.lazy(() => FoundedOn$inboundSchema)),
848
+ phone: types.nullable(types.string()),
849
+ callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
850
+ hashtags: z.array(types.string()),
851
+ affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
852
+ similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
853
+ workplacePolicy: z.optional(z.nullable(z.lazy(() => WorkplacePolicy$inboundSchema))),
854
+ creditsUsed: types.number(),
855
+ retryAfter: types.number(),
856
+ });
857
+ export function visitLinkedInCompanyResponseFromJSON(jsonString) {
858
+ return safeParse(jsonString, (x) => VisitLinkedInCompanyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitLinkedInCompanyResponse' from JSON`);
859
+ }
860
+ /** @internal */
861
+ export const CategoryRequest$outboundSchema = z.enum(CategoryRequest);
862
+ /** @internal */
863
+ export const SearchLinkedInSortBy$outboundSchema = z.enum(SearchLinkedInSortBy);
864
+ /** @internal */
865
+ export const SearchLinkedInDatePosted$outboundSchema = z.enum(SearchLinkedInDatePosted);
866
+ /** @internal */
867
+ export const SearchLinkedInContentType$outboundSchema = z.enum(SearchLinkedInContentType);
868
+ /** @internal */
869
+ export const SearchLinkedInConnectionDegree$outboundSchema = z.enum(SearchLinkedInConnectionDegree);
870
+ /** @internal */
871
+ export const SearchLinkedInCompanySize$outboundSchema = z.enum(SearchLinkedInCompanySize);
872
+ /** @internal */
873
+ export const SearchLinkedInJobType$outboundSchema = z.enum(SearchLinkedInJobType);
874
+ /** @internal */
875
+ export const SearchLinkedInExperienceLevel$outboundSchema = z.enum(SearchLinkedInExperienceLevel);
876
+ /** @internal */
877
+ export const SearchLinkedInWorkplaceType$outboundSchema = z.enum(SearchLinkedInWorkplaceType);
878
+ /** @internal */
879
+ export const SearchLinkedInRequest$outboundSchema = z.object({
880
+ category: z.optional(CategoryRequest$outboundSchema),
881
+ url: z.optional(z.string()),
882
+ keywords: z.optional(z.string()),
883
+ sortBy: z.optional(SearchLinkedInSortBy$outboundSchema),
884
+ datePosted: z.optional(SearchLinkedInDatePosted$outboundSchema),
885
+ contentType: z.optional(SearchLinkedInContentType$outboundSchema),
886
+ authorIndustry: z.optional(z.array(z.string())),
887
+ authorCompany: z.optional(z.array(z.string())),
888
+ connectionDegree: z.optional(z.array(SearchLinkedInConnectionDegree$outboundSchema)),
889
+ firstName: z.optional(z.string()),
890
+ lastName: z.optional(z.string()),
891
+ title: z.optional(z.string()),
892
+ connectionOf: z.optional(z.string()),
893
+ profileLanguage: z.optional(z.array(z.string())),
894
+ school: z.optional(z.array(z.string())),
895
+ location: z.optional(z.array(z.string())),
896
+ industry: z.optional(z.array(z.string())),
897
+ currentCompany: z.optional(z.array(z.string())),
898
+ pastCompany: z.optional(z.array(z.string())),
899
+ companySize: z.optional(z.array(SearchLinkedInCompanySize$outboundSchema)),
900
+ jobType: z.optional(z.array(SearchLinkedInJobType$outboundSchema)),
901
+ experienceLevel: z.optional(z.array(SearchLinkedInExperienceLevel$outboundSchema)),
902
+ workplaceType: z.optional(z.array(SearchLinkedInWorkplaceType$outboundSchema)),
903
+ start: z.optional(z.int()),
904
+ count: z.optional(z.int()),
905
+ });
906
+ export function searchLinkedInRequestToJSON(searchLinkedInRequest) {
907
+ return JSON.stringify(SearchLinkedInRequest$outboundSchema.parse(searchLinkedInRequest));
908
+ }
909
+ /** @internal */
910
+ export const SearchLinkedInCategoryResponseBody$inboundSchema = openEnums.inboundSchema(SearchLinkedInCategoryResponseBody);
911
+ /** @internal */
912
+ export const SearchLinkedInTypeJob$inboundSchema = z.enum(SearchLinkedInTypeJob);
913
+ /** @internal */
914
+ export const SearchLinkedInItemsJob$inboundSchema = z.object({
915
+ type: SearchLinkedInTypeJob$inboundSchema,
916
+ title: types.string(),
917
+ company: types.nullable(types.string()),
918
+ companyUrl: types.nullable(types.string()),
919
+ companyLogo: types.nullable(types.string()),
920
+ location: types.nullable(types.string()),
921
+ workplaceType: types.nullable(types.string()),
922
+ postedAt: types.nullable(types.string()),
923
+ jobUrl: types.string(),
924
+ listingId: types.string(),
925
+ });
926
+ export function searchLinkedInItemsJobFromJSON(jsonString) {
927
+ return safeParse(jsonString, (x) => SearchLinkedInItemsJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInItemsJob' from JSON`);
928
+ }
929
+ /** @internal */
930
+ export const SearchLinkedInTypeCompany$inboundSchema = z.enum(SearchLinkedInTypeCompany);
931
+ /** @internal */
932
+ export const SearchLinkedInItemsCompany$inboundSchema = z.object({
933
+ type: SearchLinkedInTypeCompany$inboundSchema,
934
+ name: types.string(),
935
+ profileUrl: types.string(),
936
+ summary: types.nullable(types.string()),
937
+ industry: types.nullable(types.string()),
938
+ location: types.nullable(types.string()),
939
+ followersCount: types.nullable(types.number()),
940
+ });
941
+ export function searchLinkedInItemsCompanyFromJSON(jsonString) {
942
+ return safeParse(jsonString, (x) => SearchLinkedInItemsCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInItemsCompany' from JSON`);
943
+ }
944
+ /** @internal */
945
+ export const SearchLinkedInTypePeople$inboundSchema = z.enum(SearchLinkedInTypePeople);
946
+ /** @internal */
947
+ export const SearchLinkedInNetworkDistance$inboundSchema = openEnums.inboundSchema(SearchLinkedInNetworkDistance);
948
+ /** @internal */
949
+ export const SearchLinkedInCurrentPosition$inboundSchema = z.object({
950
+ company: types.nullable(types.string()),
951
+ role: types.nullable(types.string()),
952
+ });
953
+ export function searchLinkedInCurrentPositionFromJSON(jsonString) {
954
+ return safeParse(jsonString, (x) => SearchLinkedInCurrentPosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInCurrentPosition' from JSON`);
955
+ }
956
+ /** @internal */
957
+ export const SearchLinkedInItemsPeople$inboundSchema = z.object({
958
+ type: SearchLinkedInTypePeople$inboundSchema,
959
+ name: types.string(),
960
+ profileUrl: types.string(),
961
+ headline: types.nullable(types.string()),
962
+ location: types.nullable(types.string()),
963
+ profilePicture: types.nullable(types.string()),
964
+ networkDistance: types.nullable(SearchLinkedInNetworkDistance$inboundSchema),
965
+ currentPositions: z.array(z.lazy(() => SearchLinkedInCurrentPosition$inboundSchema)),
966
+ });
967
+ export function searchLinkedInItemsPeopleFromJSON(jsonString) {
968
+ return safeParse(jsonString, (x) => SearchLinkedInItemsPeople$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInItemsPeople' from JSON`);
969
+ }
970
+ /** @internal */
971
+ export const SearchLinkedInTypePost$inboundSchema = z.enum(SearchLinkedInTypePost);
972
+ /** @internal */
973
+ export const SearchLinkedInAuthor$inboundSchema = z.object({
974
+ name: types.string(),
975
+ profileUrl: types.nullable(types.string()),
976
+ headline: types.nullable(types.string()),
977
+ profilePicture: types.nullable(types.string()),
978
+ isCompany: types.boolean(),
979
+ });
980
+ export function searchLinkedInAuthorFromJSON(jsonString) {
981
+ return safeParse(jsonString, (x) => SearchLinkedInAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInAuthor' from JSON`);
982
+ }
983
+ /** @internal */
984
+ export const SearchLinkedInItemsPost$inboundSchema = z.object({
985
+ type: SearchLinkedInTypePost$inboundSchema,
986
+ postUrl: types.string(),
987
+ text: types.string(),
988
+ date: types.number(),
989
+ likesCount: types.number(),
990
+ commentsCount: types.number(),
991
+ sharesCount: types.number(),
992
+ postUrn: types.string(),
993
+ postId: types.string(),
994
+ author: z.lazy(() => SearchLinkedInAuthor$inboundSchema),
995
+ isRepost: types.boolean(),
996
+ });
997
+ export function searchLinkedInItemsPostFromJSON(jsonString) {
998
+ return safeParse(jsonString, (x) => SearchLinkedInItemsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInItemsPost' from JSON`);
999
+ }
1000
+ /** @internal */
1001
+ export const SearchLinkedInItemsUnion$inboundSchema = smartUnion([
1002
+ z.array(z.lazy(() => SearchLinkedInItemsPost$inboundSchema)),
1003
+ z.array(z.lazy(() => SearchLinkedInItemsPeople$inboundSchema)),
1004
+ z.array(z.lazy(() => SearchLinkedInItemsCompany$inboundSchema)),
1005
+ z.array(z.lazy(() => SearchLinkedInItemsJob$inboundSchema)),
1006
+ ]);
1007
+ export function searchLinkedInItemsUnionFromJSON(jsonString) {
1008
+ return safeParse(jsonString, (x) => SearchLinkedInItemsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInItemsUnion' from JSON`);
1009
+ }
1010
+ /** @internal */
1011
+ export const SearchLinkedInPaging$inboundSchema = z.object({
1012
+ start: types.number(),
1013
+ count: types.number(),
1014
+ total: types.number(),
1015
+ });
1016
+ export function searchLinkedInPagingFromJSON(jsonString) {
1017
+ return safeParse(jsonString, (x) => SearchLinkedInPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPaging' from JSON`);
1018
+ }
1019
+ /** @internal */
1020
+ export const SearchLinkedInResponse$inboundSchema = z.object({
1021
+ success: types.boolean(),
1022
+ category: SearchLinkedInCategoryResponseBody$inboundSchema,
1023
+ items: smartUnion([
1024
+ z.array(z.lazy(() => SearchLinkedInItemsPost$inboundSchema)),
1025
+ z.array(z.lazy(() => SearchLinkedInItemsPeople$inboundSchema)),
1026
+ z.array(z.lazy(() => SearchLinkedInItemsCompany$inboundSchema)),
1027
+ z.array(z.lazy(() => SearchLinkedInItemsJob$inboundSchema)),
1028
+ ]),
1029
+ paging: z.lazy(() => SearchLinkedInPaging$inboundSchema),
1030
+ hasMore: types.boolean(),
1031
+ creditsUsed: types.number(),
1032
+ retryAfter: types.number(),
1033
+ });
1034
+ export function searchLinkedInResponseFromJSON(jsonString) {
1035
+ return safeParse(jsonString, (x) => SearchLinkedInResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInResponse' from JSON`);
1036
+ }
1037
+ /** @internal */
1038
+ export const SearchLinkedInPostsSortBy$outboundSchema = z.enum(SearchLinkedInPostsSortBy);
1039
+ /** @internal */
1040
+ export const SearchLinkedInPostsDatePosted$outboundSchema = z.enum(SearchLinkedInPostsDatePosted);
1041
+ /** @internal */
1042
+ export const SearchLinkedInPostsContentType$outboundSchema = z.enum(SearchLinkedInPostsContentType);
1043
+ /** @internal */
1044
+ export const SearchLinkedInPostsRequest$outboundSchema = z.object({
1045
+ keywords: z.string(),
1046
+ url: z.optional(z.string()),
1047
+ sortBy: z.optional(SearchLinkedInPostsSortBy$outboundSchema),
1048
+ datePosted: z.optional(SearchLinkedInPostsDatePosted$outboundSchema),
1049
+ contentType: z.optional(SearchLinkedInPostsContentType$outboundSchema),
1050
+ authorIndustry: z.optional(z.array(z.string())),
1051
+ authorCompany: z.optional(z.array(z.string())),
1052
+ start: z.optional(z.int()),
1053
+ count: z.optional(z.int()),
1054
+ });
1055
+ export function searchLinkedInPostsRequestToJSON(searchLinkedInPostsRequest) {
1056
+ return JSON.stringify(SearchLinkedInPostsRequest$outboundSchema.parse(searchLinkedInPostsRequest));
1057
+ }
1058
+ /** @internal */
1059
+ export const SearchLinkedInPostsCategory$inboundSchema = z.enum(SearchLinkedInPostsCategory);
1060
+ /** @internal */
1061
+ export const SearchLinkedInPostsType$inboundSchema = z.enum(SearchLinkedInPostsType);
1062
+ /** @internal */
1063
+ export const SearchLinkedInPostsAuthor$inboundSchema = z.object({
1064
+ name: types.string(),
1065
+ profileUrl: types.nullable(types.string()),
1066
+ headline: types.nullable(types.string()),
1067
+ profilePicture: types.nullable(types.string()),
1068
+ isCompany: types.boolean(),
1069
+ });
1070
+ export function searchLinkedInPostsAuthorFromJSON(jsonString) {
1071
+ return safeParse(jsonString, (x) => SearchLinkedInPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPostsAuthor' from JSON`);
1072
+ }
1073
+ /** @internal */
1074
+ export const SearchLinkedInPostsItem$inboundSchema = z.object({
1075
+ type: SearchLinkedInPostsType$inboundSchema,
1076
+ postUrl: types.string(),
1077
+ text: types.string(),
1078
+ date: types.number(),
1079
+ likesCount: types.number(),
1080
+ commentsCount: types.number(),
1081
+ sharesCount: types.number(),
1082
+ postUrn: types.string(),
1083
+ postId: types.string(),
1084
+ author: z.lazy(() => SearchLinkedInPostsAuthor$inboundSchema),
1085
+ isRepost: types.boolean(),
1086
+ });
1087
+ export function searchLinkedInPostsItemFromJSON(jsonString) {
1088
+ return safeParse(jsonString, (x) => SearchLinkedInPostsItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPostsItem' from JSON`);
1089
+ }
1090
+ /** @internal */
1091
+ export const SearchLinkedInPostsPaging$inboundSchema = z.object({
1092
+ start: types.number(),
1093
+ count: types.number(),
1094
+ total: types.number(),
1095
+ });
1096
+ export function searchLinkedInPostsPagingFromJSON(jsonString) {
1097
+ return safeParse(jsonString, (x) => SearchLinkedInPostsPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPostsPaging' from JSON`);
1098
+ }
1099
+ /** @internal */
1100
+ export const SearchLinkedInPostsResponse$inboundSchema = z.object({
1101
+ success: types.boolean(),
1102
+ category: SearchLinkedInPostsCategory$inboundSchema,
1103
+ items: z.array(z.lazy(() => SearchLinkedInPostsItem$inboundSchema)),
1104
+ paging: z.lazy(() => SearchLinkedInPostsPaging$inboundSchema),
1105
+ hasMore: types.boolean(),
1106
+ creditsUsed: types.number(),
1107
+ retryAfter: types.number(),
1108
+ });
1109
+ export function searchLinkedInPostsResponseFromJSON(jsonString) {
1110
+ return safeParse(jsonString, (x) => SearchLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPostsResponse' from JSON`);
1111
+ }
1112
+ /** @internal */
1113
+ export const SearchLinkedInPeopleConnectionDegree$outboundSchema = z.enum(SearchLinkedInPeopleConnectionDegree);
1114
+ /** @internal */
1115
+ export const SearchLinkedInPeopleRequest$outboundSchema = z.object({
1116
+ keywords: z.optional(z.string()),
1117
+ url: z.optional(z.string()),
1118
+ connectionDegree: z.optional(z.array(SearchLinkedInPeopleConnectionDegree$outboundSchema)),
1119
+ firstName: z.optional(z.string()),
1120
+ lastName: z.optional(z.string()),
1121
+ title: z.optional(z.string()),
1122
+ connectionOf: z.optional(z.string()),
1123
+ profileLanguage: z.optional(z.array(z.string())),
1124
+ school: z.optional(z.array(z.string())),
1125
+ location: z.optional(z.array(z.string())),
1126
+ industry: z.optional(z.array(z.string())),
1127
+ currentCompany: z.optional(z.array(z.string())),
1128
+ pastCompany: z.optional(z.array(z.string())),
1129
+ start: z.optional(z.int()),
1130
+ count: z.optional(z.int()),
1131
+ });
1132
+ export function searchLinkedInPeopleRequestToJSON(searchLinkedInPeopleRequest) {
1133
+ return JSON.stringify(SearchLinkedInPeopleRequest$outboundSchema.parse(searchLinkedInPeopleRequest));
1134
+ }
1135
+ /** @internal */
1136
+ export const SearchLinkedInPeopleCategory$inboundSchema = z.enum(SearchLinkedInPeopleCategory);
1137
+ /** @internal */
1138
+ export const SearchLinkedInPeopleType$inboundSchema = z.enum(SearchLinkedInPeopleType);
1139
+ /** @internal */
1140
+ export const SearchLinkedInPeopleNetworkDistance$inboundSchema = openEnums.inboundSchema(SearchLinkedInPeopleNetworkDistance);
1141
+ /** @internal */
1142
+ export const SearchLinkedInPeopleCurrentPosition$inboundSchema = z.object({
1143
+ company: types.nullable(types.string()),
1144
+ role: types.nullable(types.string()),
1145
+ });
1146
+ export function searchLinkedInPeopleCurrentPositionFromJSON(jsonString) {
1147
+ return safeParse(jsonString, (x) => SearchLinkedInPeopleCurrentPosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPeopleCurrentPosition' from JSON`);
1148
+ }
1149
+ /** @internal */
1150
+ export const SearchLinkedInPeopleItem$inboundSchema = z.object({
1151
+ type: SearchLinkedInPeopleType$inboundSchema,
1152
+ name: types.string(),
1153
+ profileUrl: types.string(),
1154
+ headline: types.nullable(types.string()),
1155
+ location: types.nullable(types.string()),
1156
+ profilePicture: types.nullable(types.string()),
1157
+ networkDistance: types.nullable(SearchLinkedInPeopleNetworkDistance$inboundSchema),
1158
+ currentPositions: z.array(z.lazy(() => SearchLinkedInPeopleCurrentPosition$inboundSchema)),
1159
+ });
1160
+ export function searchLinkedInPeopleItemFromJSON(jsonString) {
1161
+ return safeParse(jsonString, (x) => SearchLinkedInPeopleItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPeopleItem' from JSON`);
1162
+ }
1163
+ /** @internal */
1164
+ export const SearchLinkedInPeoplePaging$inboundSchema = z.object({
1165
+ start: types.number(),
1166
+ count: types.number(),
1167
+ total: types.number(),
1168
+ });
1169
+ export function searchLinkedInPeoplePagingFromJSON(jsonString) {
1170
+ return safeParse(jsonString, (x) => SearchLinkedInPeoplePaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPeoplePaging' from JSON`);
1171
+ }
1172
+ /** @internal */
1173
+ export const SearchLinkedInPeopleResponse$inboundSchema = z.object({
1174
+ success: types.boolean(),
1175
+ category: SearchLinkedInPeopleCategory$inboundSchema,
1176
+ items: z.array(z.lazy(() => SearchLinkedInPeopleItem$inboundSchema)),
1177
+ paging: z.lazy(() => SearchLinkedInPeoplePaging$inboundSchema),
1178
+ hasMore: types.boolean(),
1179
+ creditsUsed: types.number(),
1180
+ retryAfter: types.number(),
1181
+ });
1182
+ export function searchLinkedInPeopleResponseFromJSON(jsonString) {
1183
+ return safeParse(jsonString, (x) => SearchLinkedInPeopleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInPeopleResponse' from JSON`);
1184
+ }
1185
+ /** @internal */
1186
+ export const SearchLinkedInCompaniesCompanySize$outboundSchema = z.enum(SearchLinkedInCompaniesCompanySize);
1187
+ /** @internal */
1188
+ export const SearchLinkedInCompaniesRequest$outboundSchema = z.object({
1189
+ keywords: z.optional(z.string()),
1190
+ url: z.optional(z.string()),
1191
+ location: z.optional(z.array(z.string())),
1192
+ industry: z.optional(z.array(z.string())),
1193
+ companySize: z.optional(z.array(SearchLinkedInCompaniesCompanySize$outboundSchema)),
1194
+ start: z.optional(z.int()),
1195
+ count: z.optional(z.int()),
1196
+ });
1197
+ export function searchLinkedInCompaniesRequestToJSON(searchLinkedInCompaniesRequest) {
1198
+ return JSON.stringify(SearchLinkedInCompaniesRequest$outboundSchema.parse(searchLinkedInCompaniesRequest));
1199
+ }
1200
+ /** @internal */
1201
+ export const SearchLinkedInCompaniesCategory$inboundSchema = z.enum(SearchLinkedInCompaniesCategory);
1202
+ /** @internal */
1203
+ export const SearchLinkedInCompaniesType$inboundSchema = z.enum(SearchLinkedInCompaniesType);
1204
+ /** @internal */
1205
+ export const SearchLinkedInCompaniesItem$inboundSchema = z.object({
1206
+ type: SearchLinkedInCompaniesType$inboundSchema,
1207
+ name: types.string(),
1208
+ profileUrl: types.string(),
1209
+ summary: types.nullable(types.string()),
1210
+ industry: types.nullable(types.string()),
1211
+ location: types.nullable(types.string()),
1212
+ followersCount: types.nullable(types.number()),
1213
+ });
1214
+ export function searchLinkedInCompaniesItemFromJSON(jsonString) {
1215
+ return safeParse(jsonString, (x) => SearchLinkedInCompaniesItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInCompaniesItem' from JSON`);
1216
+ }
1217
+ /** @internal */
1218
+ export const SearchLinkedInCompaniesPaging$inboundSchema = z.object({
1219
+ start: types.number(),
1220
+ count: types.number(),
1221
+ total: types.number(),
1222
+ });
1223
+ export function searchLinkedInCompaniesPagingFromJSON(jsonString) {
1224
+ return safeParse(jsonString, (x) => SearchLinkedInCompaniesPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInCompaniesPaging' from JSON`);
1225
+ }
1226
+ /** @internal */
1227
+ export const SearchLinkedInCompaniesResponse$inboundSchema = z.object({
1228
+ success: types.boolean(),
1229
+ category: SearchLinkedInCompaniesCategory$inboundSchema,
1230
+ items: z.array(z.lazy(() => SearchLinkedInCompaniesItem$inboundSchema)),
1231
+ paging: z.lazy(() => SearchLinkedInCompaniesPaging$inboundSchema),
1232
+ hasMore: types.boolean(),
1233
+ creditsUsed: types.number(),
1234
+ retryAfter: types.number(),
1235
+ });
1236
+ export function searchLinkedInCompaniesResponseFromJSON(jsonString) {
1237
+ return safeParse(jsonString, (x) => SearchLinkedInCompaniesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInCompaniesResponse' from JSON`);
1238
+ }
1239
+ /** @internal */
1240
+ export const SearchLinkedInJobsDatePosted$outboundSchema = z.enum(SearchLinkedInJobsDatePosted);
1241
+ /** @internal */
1242
+ export const SearchLinkedInJobsSortBy$outboundSchema = z.enum(SearchLinkedInJobsSortBy);
1243
+ /** @internal */
1244
+ export const SearchLinkedInJobsJobType$outboundSchema = z.enum(SearchLinkedInJobsJobType);
1245
+ /** @internal */
1246
+ export const SearchLinkedInJobsExperienceLevel$outboundSchema = z.enum(SearchLinkedInJobsExperienceLevel);
1247
+ /** @internal */
1248
+ export const SearchLinkedInJobsWorkplaceType$outboundSchema = z.enum(SearchLinkedInJobsWorkplaceType);
1249
+ /** @internal */
1250
+ export const SearchLinkedInJobsRequest$outboundSchema = z.object({
1251
+ keywords: z.optional(z.string()),
1252
+ url: z.optional(z.string()),
1253
+ location: z.optional(z.array(z.string())),
1254
+ datePosted: z.optional(SearchLinkedInJobsDatePosted$outboundSchema),
1255
+ sortBy: z.optional(SearchLinkedInJobsSortBy$outboundSchema),
1256
+ jobType: z.optional(z.array(SearchLinkedInJobsJobType$outboundSchema)),
1257
+ experienceLevel: z.optional(z.array(SearchLinkedInJobsExperienceLevel$outboundSchema)),
1258
+ workplaceType: z.optional(z.array(SearchLinkedInJobsWorkplaceType$outboundSchema)),
1259
+ start: z.optional(z.int()),
1260
+ count: z.optional(z.int()),
1261
+ });
1262
+ export function searchLinkedInJobsRequestToJSON(searchLinkedInJobsRequest) {
1263
+ return JSON.stringify(SearchLinkedInJobsRequest$outboundSchema.parse(searchLinkedInJobsRequest));
1264
+ }
1265
+ /** @internal */
1266
+ export const SearchLinkedInJobsCategory$inboundSchema = z.enum(SearchLinkedInJobsCategory);
1267
+ /** @internal */
1268
+ export const SearchLinkedInJobsType$inboundSchema = z.enum(SearchLinkedInJobsType);
1269
+ /** @internal */
1270
+ export const SearchLinkedInJobsItem$inboundSchema = z.object({
1271
+ type: SearchLinkedInJobsType$inboundSchema,
1272
+ title: types.string(),
1273
+ company: types.nullable(types.string()),
1274
+ companyUrl: types.nullable(types.string()),
1275
+ companyLogo: types.nullable(types.string()),
1276
+ location: types.nullable(types.string()),
1277
+ workplaceType: types.nullable(types.string()),
1278
+ postedAt: types.nullable(types.string()),
1279
+ jobUrl: types.string(),
1280
+ listingId: types.string(),
1281
+ });
1282
+ export function searchLinkedInJobsItemFromJSON(jsonString) {
1283
+ return safeParse(jsonString, (x) => SearchLinkedInJobsItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInJobsItem' from JSON`);
1284
+ }
1285
+ /** @internal */
1286
+ export const SearchLinkedInJobsPaging$inboundSchema = z.object({
1287
+ start: types.number(),
1288
+ count: types.number(),
1289
+ total: types.number(),
1290
+ });
1291
+ export function searchLinkedInJobsPagingFromJSON(jsonString) {
1292
+ return safeParse(jsonString, (x) => SearchLinkedInJobsPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInJobsPaging' from JSON`);
1293
+ }
1294
+ /** @internal */
1295
+ export const SearchLinkedInJobsResponse$inboundSchema = z.object({
1296
+ success: types.boolean(),
1297
+ category: SearchLinkedInJobsCategory$inboundSchema,
1298
+ items: z.array(z.lazy(() => SearchLinkedInJobsItem$inboundSchema)),
1299
+ paging: z.lazy(() => SearchLinkedInJobsPaging$inboundSchema),
1300
+ hasMore: types.boolean(),
1301
+ creditsUsed: types.number(),
1302
+ retryAfter: types.number(),
1303
+ });
1304
+ export function searchLinkedInJobsResponseFromJSON(jsonString) {
1305
+ return safeParse(jsonString, (x) => SearchLinkedInJobsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInJobsResponse' from JSON`);
1306
+ }
1307
+ /** @internal */
1308
+ export const SearchLinkedInByUrlRequest$outboundSchema = z.object({
1309
+ url: z.string(),
1310
+ start: z.optional(z.int()),
1311
+ count: z.optional(z.int()),
1312
+ });
1313
+ export function searchLinkedInByUrlRequestToJSON(searchLinkedInByUrlRequest) {
1314
+ return JSON.stringify(SearchLinkedInByUrlRequest$outboundSchema.parse(searchLinkedInByUrlRequest));
1315
+ }
1316
+ /** @internal */
1317
+ export const SearchLinkedInByUrlCategory$inboundSchema = openEnums.inboundSchema(SearchLinkedInByUrlCategory);
1318
+ /** @internal */
1319
+ export const SearchLinkedInByUrlTypeJob$inboundSchema = z.enum(SearchLinkedInByUrlTypeJob);
1320
+ /** @internal */
1321
+ export const SearchLinkedInByUrlItemsJob$inboundSchema = z.object({
1322
+ type: SearchLinkedInByUrlTypeJob$inboundSchema,
1323
+ title: types.string(),
1324
+ company: types.nullable(types.string()),
1325
+ companyUrl: types.nullable(types.string()),
1326
+ companyLogo: types.nullable(types.string()),
1327
+ location: types.nullable(types.string()),
1328
+ workplaceType: types.nullable(types.string()),
1329
+ postedAt: types.nullable(types.string()),
1330
+ jobUrl: types.string(),
1331
+ listingId: types.string(),
1332
+ });
1333
+ export function searchLinkedInByUrlItemsJobFromJSON(jsonString) {
1334
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlItemsJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlItemsJob' from JSON`);
1335
+ }
1336
+ /** @internal */
1337
+ export const SearchLinkedInByUrlTypeCompany$inboundSchema = z.enum(SearchLinkedInByUrlTypeCompany);
1338
+ /** @internal */
1339
+ export const SearchLinkedInByUrlItemsCompany$inboundSchema = z.object({
1340
+ type: SearchLinkedInByUrlTypeCompany$inboundSchema,
1341
+ name: types.string(),
1342
+ profileUrl: types.string(),
1343
+ summary: types.nullable(types.string()),
1344
+ industry: types.nullable(types.string()),
1345
+ location: types.nullable(types.string()),
1346
+ followersCount: types.nullable(types.number()),
1347
+ });
1348
+ export function searchLinkedInByUrlItemsCompanyFromJSON(jsonString) {
1349
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlItemsCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlItemsCompany' from JSON`);
1350
+ }
1351
+ /** @internal */
1352
+ export const SearchLinkedInByUrlTypePeople$inboundSchema = z.enum(SearchLinkedInByUrlTypePeople);
1353
+ /** @internal */
1354
+ export const SearchLinkedInByUrlNetworkDistance$inboundSchema = openEnums.inboundSchema(SearchLinkedInByUrlNetworkDistance);
1355
+ /** @internal */
1356
+ export const SearchLinkedInByUrlCurrentPosition$inboundSchema = z.object({
1357
+ company: types.nullable(types.string()),
1358
+ role: types.nullable(types.string()),
1359
+ });
1360
+ export function searchLinkedInByUrlCurrentPositionFromJSON(jsonString) {
1361
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlCurrentPosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlCurrentPosition' from JSON`);
1362
+ }
1363
+ /** @internal */
1364
+ export const SearchLinkedInByUrlItemsPeople$inboundSchema = z.object({
1365
+ type: SearchLinkedInByUrlTypePeople$inboundSchema,
1366
+ name: types.string(),
1367
+ profileUrl: types.string(),
1368
+ headline: types.nullable(types.string()),
1369
+ location: types.nullable(types.string()),
1370
+ profilePicture: types.nullable(types.string()),
1371
+ networkDistance: types.nullable(SearchLinkedInByUrlNetworkDistance$inboundSchema),
1372
+ currentPositions: z.array(z.lazy(() => SearchLinkedInByUrlCurrentPosition$inboundSchema)),
1373
+ });
1374
+ export function searchLinkedInByUrlItemsPeopleFromJSON(jsonString) {
1375
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlItemsPeople$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlItemsPeople' from JSON`);
1376
+ }
1377
+ /** @internal */
1378
+ export const SearchLinkedInByUrlTypePost$inboundSchema = z.enum(SearchLinkedInByUrlTypePost);
1379
+ /** @internal */
1380
+ export const SearchLinkedInByUrlAuthor$inboundSchema = z.object({
1381
+ name: types.string(),
1382
+ profileUrl: types.nullable(types.string()),
1383
+ headline: types.nullable(types.string()),
1384
+ profilePicture: types.nullable(types.string()),
1385
+ isCompany: types.boolean(),
1386
+ });
1387
+ export function searchLinkedInByUrlAuthorFromJSON(jsonString) {
1388
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlAuthor' from JSON`);
1389
+ }
1390
+ /** @internal */
1391
+ export const SearchLinkedInByUrlItemsPost$inboundSchema = z.object({
1392
+ type: SearchLinkedInByUrlTypePost$inboundSchema,
1393
+ postUrl: types.string(),
1394
+ text: types.string(),
1395
+ date: types.number(),
1396
+ likesCount: types.number(),
1397
+ commentsCount: types.number(),
1398
+ sharesCount: types.number(),
1399
+ postUrn: types.string(),
1400
+ postId: types.string(),
1401
+ author: z.lazy(() => SearchLinkedInByUrlAuthor$inboundSchema),
1402
+ isRepost: types.boolean(),
1403
+ });
1404
+ export function searchLinkedInByUrlItemsPostFromJSON(jsonString) {
1405
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlItemsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlItemsPost' from JSON`);
1406
+ }
1407
+ /** @internal */
1408
+ export const SearchLinkedInByUrlItemsUnion$inboundSchema = smartUnion([
1409
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPost$inboundSchema)),
1410
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPeople$inboundSchema)),
1411
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsCompany$inboundSchema)),
1412
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsJob$inboundSchema)),
1413
+ ]);
1414
+ export function searchLinkedInByUrlItemsUnionFromJSON(jsonString) {
1415
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlItemsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlItemsUnion' from JSON`);
1416
+ }
1417
+ /** @internal */
1418
+ export const SearchLinkedInByUrlPaging$inboundSchema = z.object({
1419
+ start: types.number(),
1420
+ count: types.number(),
1421
+ total: types.number(),
1422
+ });
1423
+ export function searchLinkedInByUrlPagingFromJSON(jsonString) {
1424
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlPaging' from JSON`);
1425
+ }
1426
+ /** @internal */
1427
+ export const SearchLinkedInByUrlResponse$inboundSchema = z.object({
1428
+ success: types.boolean(),
1429
+ category: SearchLinkedInByUrlCategory$inboundSchema,
1430
+ items: smartUnion([
1431
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPost$inboundSchema)),
1432
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsPeople$inboundSchema)),
1433
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsCompany$inboundSchema)),
1434
+ z.array(z.lazy(() => SearchLinkedInByUrlItemsJob$inboundSchema)),
1435
+ ]),
1436
+ paging: z.lazy(() => SearchLinkedInByUrlPaging$inboundSchema),
1437
+ hasMore: types.boolean(),
1438
+ creditsUsed: types.number(),
1439
+ retryAfter: types.number(),
1440
+ });
1441
+ export function searchLinkedInByUrlResponseFromJSON(jsonString) {
1442
+ return safeParse(jsonString, (x) => SearchLinkedInByUrlResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInByUrlResponse' from JSON`);
1443
+ }
1444
+ /** @internal */
1445
+ export const ResolveLinkedInSearchParametersType$outboundSchema = z.enum(ResolveLinkedInSearchParametersType);
1446
+ /** @internal */
1447
+ export const ResolveLinkedInSearchParametersRequest$outboundSchema = z.object({
1448
+ type: ResolveLinkedInSearchParametersType$outboundSchema,
1449
+ keywords: z.string(),
1450
+ limit: z.optional(z.int()),
1451
+ });
1452
+ export function resolveLinkedInSearchParametersRequestToJSON(resolveLinkedInSearchParametersRequest) {
1453
+ return JSON.stringify(ResolveLinkedInSearchParametersRequest$outboundSchema.parse(resolveLinkedInSearchParametersRequest));
1454
+ }
1455
+ /** @internal */
1456
+ export const ResolveLinkedInSearchParametersItem$inboundSchema = z.object({
1457
+ id: types.string(),
1458
+ title: types.string(),
1459
+ type: types.string(),
1460
+ });
1461
+ export function resolveLinkedInSearchParametersItemFromJSON(jsonString) {
1462
+ return safeParse(jsonString, (x) => ResolveLinkedInSearchParametersItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResolveLinkedInSearchParametersItem' from JSON`);
1463
+ }
1464
+ /** @internal */
1465
+ export const ResolveLinkedInSearchParametersResponse$inboundSchema = z.object({
1466
+ success: types.boolean(),
1467
+ items: z.array(z.lazy(() => ResolveLinkedInSearchParametersItem$inboundSchema)),
1468
+ count: types.number(),
1469
+ creditsUsed: types.number(),
1470
+ retryAfter: types.number(),
1471
+ });
1472
+ export function resolveLinkedInSearchParametersResponseFromJSON(jsonString) {
1473
+ return safeParse(jsonString, (x) => ResolveLinkedInSearchParametersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResolveLinkedInSearchParametersResponse' from JSON`);
1474
+ }
1475
+ /** @internal */
1476
+ export const ConnectLinkedInProfileRequest$outboundSchema = z.object({
1477
+ profile: z.string(),
1478
+ campaignSlug: z.optional(z.string()),
1479
+ actionSlug: z.optional(z.string()),
1480
+ });
1481
+ export function connectLinkedInProfileRequestToJSON(connectLinkedInProfileRequest) {
1482
+ return JSON.stringify(ConnectLinkedInProfileRequest$outboundSchema.parse(connectLinkedInProfileRequest));
1483
+ }
1484
+ /** @internal */
1485
+ export const ConnectLinkedInProfileResponse$inboundSchema = z.object({
1486
+ success: types.boolean(),
1487
+ message: types.string(),
1488
+ duplicate: types.optional(types.boolean()),
1489
+ creditsUsed: types.number(),
1490
+ retryAfter: types.number(),
1491
+ });
1492
+ export function connectLinkedInProfileResponseFromJSON(jsonString) {
1493
+ return safeParse(jsonString, (x) => ConnectLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectLinkedInProfileResponse' from JSON`);
1494
+ }
1495
+ /** @internal */
1496
+ export const ListLinkedInInvitationsRequest$outboundSchema = z.object({
1497
+ start: z._default(z.int(), 0),
1498
+ count: z._default(z.int(), 10),
1499
+ });
1500
+ export function listLinkedInInvitationsRequestToJSON(listLinkedInInvitationsRequest) {
1501
+ return JSON.stringify(ListLinkedInInvitationsRequest$outboundSchema.parse(listLinkedInInvitationsRequest));
1502
+ }
1503
+ /** @internal */
1504
+ export const FromMember$inboundSchema = z
1505
+ .object({
1506
+ name: z.optional(z.nullable(types.string())),
1507
+ headline: z.optional(z.nullable(types.string())),
1508
+ profileUrl: z.optional(z.nullable(types.string())),
1509
+ profilePicture: z.optional(z.nullable(types.string())),
1510
+ });
1511
+ export function fromMemberFromJSON(jsonString) {
1512
+ return safeParse(jsonString, (x) => FromMember$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FromMember' from JSON`);
1513
+ }
1514
+ /** @internal */
1515
+ export const Invitation$inboundSchema = z
1516
+ .object({
1517
+ invitationId: types.string(),
1518
+ sharedSecret: types.string(),
1519
+ entityUrn: types.string(),
1520
+ sentAt: z.optional(z.nullable(types.string())),
1521
+ message: z.optional(z.nullable(types.string())),
1522
+ senderProfileId: z.optional(z.nullable(types.string())),
1523
+ senderFirstName: z.optional(z.nullable(types.string())),
1524
+ senderLastName: z.optional(z.nullable(types.string())),
1525
+ fromMember: z.optional(z.nullable(z.lazy(() => FromMember$inboundSchema))),
1526
+ });
1527
+ export function invitationFromJSON(jsonString) {
1528
+ return safeParse(jsonString, (x) => Invitation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Invitation' from JSON`);
1529
+ }
1530
+ /** @internal */
1531
+ export const ListLinkedInInvitationsResponse$inboundSchema = z.object({
1532
+ success: types.boolean(),
1533
+ invitations: z.array(z.lazy(() => Invitation$inboundSchema)),
1534
+ total: types.number(),
1535
+ start: types.number(),
1536
+ count: types.number(),
1537
+ creditsUsed: types.number(),
1538
+ retryAfter: types.number(),
1539
+ });
1540
+ export function listLinkedInInvitationsResponseFromJSON(jsonString) {
1541
+ return safeParse(jsonString, (x) => ListLinkedInInvitationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListLinkedInInvitationsResponse' from JSON`);
1542
+ }
1543
+ /** @internal */
1544
+ export const AcceptLinkedInInvitationRequest$outboundSchema = z.object({
1545
+ invitationId: z.string(),
1546
+ sharedSecret: z.string(),
1547
+ senderProfileId: z.optional(z.string()),
1548
+ firstName: z.optional(z.string()),
1549
+ lastName: z.optional(z.string()),
1550
+ });
1551
+ export function acceptLinkedInInvitationRequestToJSON(acceptLinkedInInvitationRequest) {
1552
+ return JSON.stringify(AcceptLinkedInInvitationRequest$outboundSchema.parse(acceptLinkedInInvitationRequest));
1553
+ }
1554
+ /** @internal */
1555
+ export const AcceptLinkedInInvitationResponse$inboundSchema = z.object({
1556
+ success: types.boolean(),
1557
+ message: types.string(),
1558
+ creditsUsed: types.number(),
1559
+ retryAfter: types.number(),
1560
+ });
1561
+ export function acceptLinkedInInvitationResponseFromJSON(jsonString) {
1562
+ return safeParse(jsonString, (x) => AcceptLinkedInInvitationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptLinkedInInvitationResponse' from JSON`);
1563
+ }
1564
+ /** @internal */
1565
+ export const SendLinkedInMessageRequest$outboundSchema = z.object({
1566
+ profile: z.string(),
1567
+ message: z.string(),
1568
+ campaignSlug: z.optional(z.string()),
1569
+ actionSlug: z.optional(z.string()),
1570
+ });
1571
+ export function sendLinkedInMessageRequestToJSON(sendLinkedInMessageRequest) {
1572
+ return JSON.stringify(SendLinkedInMessageRequest$outboundSchema.parse(sendLinkedInMessageRequest));
1573
+ }
1574
+ /** @internal */
1575
+ export const SendLinkedInMessageResponse$inboundSchema = z.object({
1576
+ success: types.boolean(),
1577
+ messageId: types.string(),
1578
+ duplicate: types.optional(types.boolean()),
1579
+ creditsUsed: types.number(),
1580
+ retryAfter: types.number(),
1581
+ });
1582
+ export function sendLinkedInMessageResponseFromJSON(jsonString) {
1583
+ return safeParse(jsonString, (x) => SendLinkedInMessageResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendLinkedInMessageResponse' from JSON`);
1584
+ }
1585
+ //# sourceMappingURL=send-linked-in-message-response.js.map