bereach 1.4.3 → 1.5.0

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 (288) hide show
  1. package/README.md +71 -5
  2. package/esm/funcs/actions-connect-profile.d.ts +1 -1
  3. package/esm/funcs/actions-connect-profile.js +1 -1
  4. package/esm/funcs/actions-edit-profile.d.ts +18 -0
  5. package/esm/funcs/actions-edit-profile.d.ts.map +1 -0
  6. package/esm/funcs/actions-edit-profile.js +97 -0
  7. package/esm/funcs/actions-edit-profile.js.map +1 -0
  8. package/esm/funcs/chat-get-conversation-summary.d.ts +18 -0
  9. package/esm/funcs/chat-get-conversation-summary.d.ts.map +1 -0
  10. package/esm/funcs/chat-get-conversation-summary.js +100 -0
  11. package/esm/funcs/chat-get-conversation-summary.js.map +1 -0
  12. package/esm/funcs/chat-list-inbox.d.ts +1 -1
  13. package/esm/funcs/chat-list-inbox.js +1 -1
  14. package/esm/funcs/chat-save-conversation-summary.d.ts +18 -0
  15. package/esm/funcs/chat-save-conversation-summary.d.ts.map +1 -0
  16. package/esm/funcs/chat-save-conversation-summary.js +97 -0
  17. package/esm/funcs/chat-save-conversation-summary.js.map +1 -0
  18. package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
  19. package/esm/funcs/company-pages-get-analytics.js +1 -1
  20. package/esm/funcs/connectors-agent-snapshot.d.ts +18 -0
  21. package/esm/funcs/connectors-agent-snapshot.d.ts.map +1 -0
  22. package/esm/funcs/connectors-agent-snapshot.js +86 -0
  23. package/esm/funcs/connectors-agent-snapshot.js.map +1 -0
  24. package/esm/funcs/connectors-connector-heartbeat.d.ts +18 -0
  25. package/esm/funcs/connectors-connector-heartbeat.d.ts.map +1 -0
  26. package/esm/funcs/connectors-connector-heartbeat.js +99 -0
  27. package/esm/funcs/connectors-connector-heartbeat.js.map +1 -0
  28. package/esm/funcs/connectors-list-connectors.d.ts +18 -0
  29. package/esm/funcs/connectors-list-connectors.d.ts.map +1 -0
  30. package/esm/funcs/connectors-list-connectors.js +86 -0
  31. package/esm/funcs/connectors-list-connectors.js.map +1 -0
  32. package/esm/funcs/connectors-pull-task.d.ts +18 -0
  33. package/esm/funcs/connectors-pull-task.d.ts.map +1 -0
  34. package/esm/funcs/connectors-pull-task.js +86 -0
  35. package/esm/funcs/connectors-pull-task.js.map +1 -0
  36. package/esm/funcs/connectors-submit-task-result.d.ts +18 -0
  37. package/esm/funcs/connectors-submit-task-result.d.ts.map +1 -0
  38. package/esm/funcs/connectors-submit-task-result.js +103 -0
  39. package/esm/funcs/connectors-submit-task-result.js.map +1 -0
  40. package/esm/funcs/contacts-global-activities.d.ts +18 -0
  41. package/esm/funcs/contacts-global-activities.d.ts.map +1 -0
  42. package/esm/funcs/contacts-global-activities.js +105 -0
  43. package/esm/funcs/contacts-global-activities.js.map +1 -0
  44. package/esm/funcs/profile-create-api-token.d.ts +18 -0
  45. package/esm/funcs/profile-create-api-token.d.ts.map +1 -0
  46. package/esm/funcs/profile-create-api-token.js +99 -0
  47. package/esm/funcs/profile-create-api-token.js.map +1 -0
  48. package/esm/funcs/profile-delete-api-token.d.ts +18 -0
  49. package/esm/funcs/profile-delete-api-token.d.ts.map +1 -0
  50. package/esm/funcs/profile-delete-api-token.js +99 -0
  51. package/esm/funcs/profile-delete-api-token.js.map +1 -0
  52. package/esm/funcs/profile-get-api-token.d.ts +18 -0
  53. package/esm/funcs/profile-get-api-token.d.ts.map +1 -0
  54. package/esm/funcs/profile-get-api-token.js +100 -0
  55. package/esm/funcs/profile-get-api-token.js.map +1 -0
  56. package/esm/funcs/profile-get-my-activity.d.ts +18 -0
  57. package/esm/funcs/profile-get-my-activity.d.ts.map +1 -0
  58. package/esm/funcs/profile-get-my-activity.js +104 -0
  59. package/esm/funcs/profile-get-my-activity.js.map +1 -0
  60. package/esm/funcs/profile-get-settings.d.ts +18 -0
  61. package/esm/funcs/profile-get-settings.d.ts.map +1 -0
  62. package/esm/funcs/profile-get-settings.js +86 -0
  63. package/esm/funcs/profile-get-settings.js.map +1 -0
  64. package/esm/funcs/profile-patch-settings.d.ts +18 -0
  65. package/esm/funcs/profile-patch-settings.d.ts.map +1 -0
  66. package/esm/funcs/profile-patch-settings.js +97 -0
  67. package/esm/funcs/profile-patch-settings.js.map +1 -0
  68. package/esm/funcs/profile-revalidate-linkedin.d.ts +18 -0
  69. package/esm/funcs/profile-revalidate-linkedin.d.ts.map +1 -0
  70. package/esm/funcs/profile-revalidate-linkedin.js +86 -0
  71. package/esm/funcs/profile-revalidate-linkedin.js.map +1 -0
  72. package/esm/funcs/sales-nav-search.d.ts +1 -1
  73. package/esm/funcs/sales-nav-search.js +1 -1
  74. package/esm/funcs/scheduled-messages-review-drafts.d.ts +18 -0
  75. package/esm/funcs/scheduled-messages-review-drafts.d.ts.map +1 -0
  76. package/esm/funcs/scheduled-messages-review-drafts.js +97 -0
  77. package/esm/funcs/scheduled-messages-review-drafts.js.map +1 -0
  78. package/esm/funcs/scrapers-collect-comment-replies.d.ts +1 -1
  79. package/esm/funcs/scrapers-collect-comment-replies.js +1 -1
  80. package/esm/funcs/scrapers-collect-comments.d.ts +1 -1
  81. package/esm/funcs/scrapers-collect-comments.js +1 -1
  82. package/esm/funcs/scrapers-collect-likes.d.ts +1 -1
  83. package/esm/funcs/scrapers-collect-likes.js +1 -1
  84. package/esm/funcs/scrapers-visit-profile.d.ts +2 -0
  85. package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
  86. package/esm/funcs/scrapers-visit-profile.js +2 -0
  87. package/esm/funcs/scrapers-visit-profile.js.map +1 -1
  88. package/esm/funcs/search-people.d.ts +2 -2
  89. package/esm/funcs/search-people.js +2 -2
  90. package/esm/funcs/search-search.d.ts +1 -1
  91. package/esm/funcs/search-search.js +1 -1
  92. package/esm/funcs/settings-get-dm-polling-settings.d.ts +18 -0
  93. package/esm/funcs/settings-get-dm-polling-settings.d.ts.map +1 -0
  94. package/esm/funcs/settings-get-dm-polling-settings.js +86 -0
  95. package/esm/funcs/settings-get-dm-polling-settings.js.map +1 -0
  96. package/esm/funcs/settings-patch-dm-polling-settings.d.ts +18 -0
  97. package/esm/funcs/settings-patch-dm-polling-settings.d.ts.map +1 -0
  98. package/esm/funcs/settings-patch-dm-polling-settings.js +97 -0
  99. package/esm/funcs/settings-patch-dm-polling-settings.js.map +1 -0
  100. package/esm/funcs/tasks-cancel-chain.d.ts +18 -0
  101. package/esm/funcs/tasks-cancel-chain.d.ts.map +1 -0
  102. package/esm/funcs/tasks-cancel-chain.js +102 -0
  103. package/esm/funcs/tasks-cancel-chain.js.map +1 -0
  104. package/esm/funcs/tasks-cancel-task.d.ts +18 -0
  105. package/esm/funcs/tasks-cancel-task.d.ts.map +1 -0
  106. package/esm/funcs/tasks-cancel-task.js +102 -0
  107. package/esm/funcs/tasks-cancel-task.js.map +1 -0
  108. package/esm/funcs/tasks-events-feed.d.ts +18 -0
  109. package/esm/funcs/tasks-events-feed.d.ts.map +1 -0
  110. package/esm/funcs/tasks-events-feed.js +101 -0
  111. package/esm/funcs/tasks-events-feed.js.map +1 -0
  112. package/esm/funcs/tasks-list-tasks.d.ts +18 -0
  113. package/esm/funcs/tasks-list-tasks.d.ts.map +1 -0
  114. package/esm/funcs/tasks-list-tasks.js +104 -0
  115. package/esm/funcs/tasks-list-tasks.js.map +1 -0
  116. package/esm/funcs/workspace-create-workspace-invite.d.ts +18 -0
  117. package/esm/funcs/workspace-create-workspace-invite.d.ts.map +1 -0
  118. package/esm/funcs/workspace-create-workspace-invite.js +97 -0
  119. package/esm/funcs/workspace-create-workspace-invite.js.map +1 -0
  120. package/esm/funcs/workspace-delete-workspace-account.d.ts +18 -0
  121. package/esm/funcs/workspace-delete-workspace-account.d.ts.map +1 -0
  122. package/esm/funcs/workspace-delete-workspace-account.js +102 -0
  123. package/esm/funcs/workspace-delete-workspace-account.js.map +1 -0
  124. package/esm/funcs/workspace-delete-workspace-invite.d.ts +18 -0
  125. package/esm/funcs/workspace-delete-workspace-invite.d.ts.map +1 -0
  126. package/esm/funcs/workspace-delete-workspace-invite.js +97 -0
  127. package/esm/funcs/workspace-delete-workspace-invite.js.map +1 -0
  128. package/esm/funcs/workspace-upgrade-workspace-account.d.ts +18 -0
  129. package/esm/funcs/workspace-upgrade-workspace-account.d.ts.map +1 -0
  130. package/esm/funcs/workspace-upgrade-workspace-account.js +97 -0
  131. package/esm/funcs/workspace-upgrade-workspace-account.js.map +1 -0
  132. package/esm/hooks/hooks.d.ts.map +1 -1
  133. package/esm/hooks/hooks.js +0 -2
  134. package/esm/hooks/hooks.js.map +1 -1
  135. package/esm/lib/config.d.ts +5 -5
  136. package/esm/lib/config.d.ts.map +1 -1
  137. package/esm/lib/config.js +6 -6
  138. package/esm/lib/config.js.map +1 -1
  139. package/esm/lib/encodings.d.ts.map +1 -1
  140. package/esm/lib/encodings.js +20 -5
  141. package/esm/lib/encodings.js.map +1 -1
  142. package/esm/lib/security.d.ts +1 -1
  143. package/esm/lib/security.d.ts.map +1 -1
  144. package/esm/lib/security.js +19 -8
  145. package/esm/lib/security.js.map +1 -1
  146. package/esm/models/operations/{search-contacts-campaign.d.ts → archive-response.d.ts} +1166 -1151
  147. package/esm/models/operations/archive-response.d.ts.map +1 -0
  148. package/esm/models/operations/{search-contacts-campaign.js → archive-response.js} +454 -461
  149. package/esm/models/operations/archive-response.js.map +1 -0
  150. package/esm/models/operations/delete-workspace-invite-response.d.ts +1374 -0
  151. package/esm/models/operations/delete-workspace-invite-response.d.ts.map +1 -0
  152. package/esm/models/operations/delete-workspace-invite-response.js +901 -0
  153. package/esm/models/operations/delete-workspace-invite-response.js.map +1 -0
  154. package/esm/models/operations/{update-schedule-response.d.ts → get-by-url-campaign.d.ts} +1629 -1291
  155. package/esm/models/operations/get-by-url-campaign.d.ts.map +1 -0
  156. package/esm/models/operations/{update-schedule-response.js → get-by-url-campaign.js} +534 -341
  157. package/esm/models/operations/get-by-url-campaign.js.map +1 -0
  158. package/esm/models/operations/index.d.ts +4 -3
  159. package/esm/models/operations/index.d.ts.map +1 -1
  160. package/esm/models/operations/index.js +4 -3
  161. package/esm/models/operations/index.js.map +1 -1
  162. package/esm/models/operations/search-companies-response.d.ts +28 -12
  163. package/esm/models/operations/search-companies-response.d.ts.map +1 -1
  164. package/esm/models/operations/search-companies-response.js +6 -2
  165. package/esm/models/operations/search-companies-response.js.map +1 -1
  166. package/esm/models/operations/{update-account-response.d.ts → update-account-proxy-config-response.d.ts} +66 -38
  167. package/esm/models/operations/update-account-proxy-config-response.d.ts.map +1 -0
  168. package/esm/models/operations/{update-account-response.js → update-account-proxy-config-response.js} +26 -28
  169. package/esm/models/operations/update-account-proxy-config-response.js.map +1 -0
  170. package/esm/sdk/actions.d.ts +8 -1
  171. package/esm/sdk/actions.d.ts.map +1 -1
  172. package/esm/sdk/actions.js +11 -1
  173. package/esm/sdk/actions.js.map +1 -1
  174. package/esm/sdk/chat.d.ts +15 -1
  175. package/esm/sdk/chat.d.ts.map +1 -1
  176. package/esm/sdk/chat.js +21 -1
  177. package/esm/sdk/chat.js.map +1 -1
  178. package/esm/sdk/company-pages.d.ts +1 -1
  179. package/esm/sdk/company-pages.js +1 -1
  180. package/esm/sdk/connectors.d.ts +40 -0
  181. package/esm/sdk/connectors.d.ts.map +1 -0
  182. package/esm/sdk/connectors.js +58 -0
  183. package/esm/sdk/connectors.js.map +1 -0
  184. package/esm/sdk/contacts.d.ts +7 -0
  185. package/esm/sdk/contacts.d.ts.map +1 -1
  186. package/esm/sdk/contacts.js +10 -0
  187. package/esm/sdk/contacts.js.map +1 -1
  188. package/esm/sdk/profile.d.ts +49 -0
  189. package/esm/sdk/profile.d.ts.map +1 -1
  190. package/esm/sdk/profile.js +70 -0
  191. package/esm/sdk/profile.js.map +1 -1
  192. package/esm/sdk/sales-nav.d.ts +1 -1
  193. package/esm/sdk/sales-nav.js +1 -1
  194. package/esm/sdk/scheduled-messages.d.ts +7 -0
  195. package/esm/sdk/scheduled-messages.d.ts.map +1 -1
  196. package/esm/sdk/scheduled-messages.js +10 -0
  197. package/esm/sdk/scheduled-messages.js.map +1 -1
  198. package/esm/sdk/scrapers.d.ts +5 -3
  199. package/esm/sdk/scrapers.d.ts.map +1 -1
  200. package/esm/sdk/scrapers.js +5 -3
  201. package/esm/sdk/scrapers.js.map +1 -1
  202. package/esm/sdk/sdk.d.ts +12 -0
  203. package/esm/sdk/sdk.d.ts.map +1 -1
  204. package/esm/sdk/sdk.js +20 -0
  205. package/esm/sdk/sdk.js.map +1 -1
  206. package/esm/sdk/search.d.ts +3 -3
  207. package/esm/sdk/search.js +3 -3
  208. package/esm/sdk/settings.d.ts +19 -0
  209. package/esm/sdk/settings.d.ts.map +1 -0
  210. package/esm/sdk/settings.js +28 -0
  211. package/esm/sdk/settings.js.map +1 -0
  212. package/esm/sdk/tasks.d.ts +33 -0
  213. package/esm/sdk/tasks.d.ts.map +1 -0
  214. package/esm/sdk/tasks.js +48 -0
  215. package/esm/sdk/tasks.js.map +1 -0
  216. package/esm/sdk/workspace.d.ts +33 -0
  217. package/esm/sdk/workspace.d.ts.map +1 -0
  218. package/esm/sdk/workspace.js +48 -0
  219. package/esm/sdk/workspace.js.map +1 -0
  220. package/jsr.json +1 -1
  221. package/package.json +1 -1
  222. package/src/funcs/actions-connect-profile.ts +1 -1
  223. package/src/funcs/actions-edit-profile.ts +224 -0
  224. package/src/funcs/chat-get-conversation-summary.ts +229 -0
  225. package/src/funcs/chat-list-inbox.ts +1 -1
  226. package/src/funcs/chat-save-conversation-summary.ts +225 -0
  227. package/src/funcs/company-pages-get-analytics.ts +1 -1
  228. package/src/funcs/connectors-agent-snapshot.ts +205 -0
  229. package/src/funcs/connectors-connector-heartbeat.ts +230 -0
  230. package/src/funcs/connectors-list-connectors.ts +205 -0
  231. package/src/funcs/connectors-pull-task.ts +205 -0
  232. package/src/funcs/connectors-submit-task-result.ts +231 -0
  233. package/src/funcs/contacts-global-activities.ts +237 -0
  234. package/src/funcs/profile-create-api-token.ts +230 -0
  235. package/src/funcs/profile-delete-api-token.ts +230 -0
  236. package/src/funcs/profile-get-api-token.ts +229 -0
  237. package/src/funcs/profile-get-my-activity.ts +236 -0
  238. package/src/funcs/profile-get-settings.ts +205 -0
  239. package/src/funcs/profile-patch-settings.ts +224 -0
  240. package/src/funcs/profile-revalidate-linkedin.ts +205 -0
  241. package/src/funcs/sales-nav-search.ts +1 -1
  242. package/src/funcs/scheduled-messages-review-drafts.ts +224 -0
  243. package/src/funcs/scrapers-collect-comment-replies.ts +1 -1
  244. package/src/funcs/scrapers-collect-comments.ts +1 -1
  245. package/src/funcs/scrapers-collect-likes.ts +1 -1
  246. package/src/funcs/scrapers-visit-profile.ts +2 -0
  247. package/src/funcs/search-people.ts +2 -2
  248. package/src/funcs/search-search.ts +1 -1
  249. package/src/funcs/settings-get-dm-polling-settings.ts +205 -0
  250. package/src/funcs/settings-patch-dm-polling-settings.ts +225 -0
  251. package/src/funcs/tasks-cancel-chain.ts +229 -0
  252. package/src/funcs/tasks-cancel-task.ts +229 -0
  253. package/src/funcs/tasks-events-feed.ts +230 -0
  254. package/src/funcs/tasks-list-tasks.ts +233 -0
  255. package/src/funcs/workspace-create-workspace-invite.ts +225 -0
  256. package/src/funcs/workspace-delete-workspace-account.ts +230 -0
  257. package/src/funcs/workspace-delete-workspace-invite.ts +225 -0
  258. package/src/funcs/workspace-upgrade-workspace-account.ts +225 -0
  259. package/src/hooks/hooks.ts +0 -3
  260. package/src/lib/config.ts +6 -6
  261. package/src/lib/encodings.ts +23 -4
  262. package/src/lib/security.ts +14 -2
  263. package/src/models/operations/{search-contacts-campaign.ts → archive-response.ts} +2493 -2362
  264. package/src/models/operations/delete-workspace-invite-response.ts +2783 -0
  265. package/src/models/operations/{update-schedule-response.ts → get-by-url-campaign.ts} +3591 -2939
  266. package/src/models/operations/index.ts +4 -3
  267. package/src/models/operations/search-companies-response.ts +34 -14
  268. package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts} +107 -84
  269. package/src/sdk/actions.ts +19 -1
  270. package/src/sdk/chat.ts +37 -1
  271. package/src/sdk/company-pages.ts +1 -1
  272. package/src/sdk/connectors.ts +93 -0
  273. package/src/sdk/contacts.ts +18 -0
  274. package/src/sdk/profile.ts +122 -0
  275. package/src/sdk/sales-nav.ts +1 -1
  276. package/src/sdk/scheduled-messages.ts +18 -0
  277. package/src/sdk/scrapers.ts +5 -3
  278. package/src/sdk/sdk.ts +24 -0
  279. package/src/sdk/search.ts +3 -3
  280. package/src/sdk/settings.ts +43 -0
  281. package/src/sdk/tasks.ts +81 -0
  282. package/src/sdk/workspace.ts +81 -0
  283. package/esm/models/operations/search-contacts-campaign.d.ts.map +0 -1
  284. package/esm/models/operations/search-contacts-campaign.js.map +0 -1
  285. package/esm/models/operations/update-account-response.d.ts.map +0 -1
  286. package/esm/models/operations/update-account-response.js.map +0 -1
  287. package/esm/models/operations/update-schedule-response.d.ts.map +0 -1
  288. package/esm/models/operations/update-schedule-response.js.map +0 -1
@@ -2,6 +2,33 @@ import * as z from "zod/v4-mini";
2
2
  import { ClosedEnum, OpenEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
5
+ import { UpdateAccountProxyConfigResponse } from "./update-account-proxy-config-response.js";
6
+ export type UpdateAccountAccount = {
7
+ id: string;
8
+ label: string | null;
9
+ isDefault: boolean;
10
+ linkedinProfileId: string | null;
11
+ linkedinName: string | null;
12
+ headline: string | null;
13
+ profilePic: string | null;
14
+ isValid: boolean;
15
+ proxyConfig: UpdateAccountProxyConfigResponse | null;
16
+ };
17
+ /**
18
+ * Updated account
19
+ */
20
+ export type UpdateAccountResponse = {
21
+ success: true;
22
+ account: UpdateAccountAccount;
23
+ /**
24
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
25
+ */
26
+ creditsUsed: number;
27
+ /**
28
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
29
+ */
30
+ retryAfter: number;
31
+ };
5
32
  export type RefreshPositionStartDate = {
6
33
  month: number | null;
7
34
  year: number;
@@ -14,15 +41,15 @@ export type RefreshPosition = {
14
41
  companyName: string | null;
15
42
  title: string | null;
16
43
  /**
17
- * Position description / responsibilities text
44
+ * Position description / responsibilities text (only populated when includeAbout is true)
18
45
  */
19
- description: string | null;
46
+ description?: string | null | undefined;
20
47
  companyUrl: string | null;
21
48
  companyLogo: string | null;
22
49
  /**
23
- * Short description of the company (from LinkedIn company page)
50
+ * Short description of the company (only populated when includeAbout is true)
24
51
  */
25
- companyDescription: string | null;
52
+ companyDescription?: string | null | undefined;
26
53
  startDate: RefreshPositionStartDate | null;
27
54
  endDate: RefreshPositionEndDate | null;
28
55
  isCurrent: boolean;
@@ -159,6 +186,10 @@ export type RefreshResponse = {
159
186
  * Total LinkedIn connections
160
187
  */
161
188
  connectionsCount: number | null;
189
+ /**
190
+ * Total number of followers (populated during refresh)
191
+ */
192
+ followersCount?: number | null | undefined;
162
193
  /**
163
194
  * Profile location
164
195
  */
@@ -171,6 +202,14 @@ export type RefreshResponse = {
171
202
  * Last 5 posts (populated when posts have been fetched via /me/linkedin/posts)
172
203
  */
173
204
  lastPosts?: Array<RefreshLastPost> | undefined;
205
+ /**
206
+ * Last 20 comments by the user (populated after /me/linkedin/activity?tabType=COMMENTS)
207
+ */
208
+ lastComments?: Array<any> | undefined;
209
+ /**
210
+ * Last reactions by the user (populated after /me/linkedin/activity?tabType=REACTIONS)
211
+ */
212
+ lastReactions?: Array<any> | undefined;
174
213
  refreshed: true;
175
214
  /**
176
215
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
@@ -326,7 +365,7 @@ export type GetFollowersResponse = {
326
365
  retryAfter: number;
327
366
  };
328
367
  /**
329
- * Daily usage counter (resets at midnight UTC)
368
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
330
369
  */
331
370
  export type ConnectionRequestDaily = {
332
371
  /**
@@ -364,9 +403,9 @@ export type ConnectionRequestWeekly = {
364
403
  */
365
404
  export type ConnectionRequest = {
366
405
  /**
367
- * Daily usage counter (resets at midnight UTC)
406
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
368
407
  */
369
- daily: ConnectionRequestDaily;
408
+ daily: ConnectionRequestDaily | null;
370
409
  /**
371
410
  * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
372
411
  */
@@ -376,16 +415,16 @@ export type ConnectionRequest = {
376
415
  */
377
416
  minIntervalSeconds: number;
378
417
  /**
379
- * ISO 8601 timestamp of the next daily counter reset
418
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
380
419
  */
381
- nextResetDaily: Date;
420
+ nextResetDaily: Date | null;
382
421
  /**
383
422
  * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
384
423
  */
385
424
  nextResetWeekly: Date | null;
386
425
  };
387
426
  /**
388
- * Daily usage counter (resets at midnight UTC)
427
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
389
428
  */
390
429
  export type MessageDaily = {
391
430
  /**
@@ -419,13 +458,13 @@ export type MessageWeekly = {
419
458
  remaining: number;
420
459
  };
421
460
  /**
422
- * Limits for social engagement actions: sending messages, publishing posts, replying to comments, liking comments
461
+ * Limits for sending DMs
423
462
  */
424
463
  export type GetLimitsMessage = {
425
464
  /**
426
- * Daily usage counter (resets at midnight UTC)
465
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
427
466
  */
428
- daily: MessageDaily;
467
+ daily: MessageDaily | null;
429
468
  /**
430
469
  * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
431
470
  */
@@ -435,16 +474,16 @@ export type GetLimitsMessage = {
435
474
  */
436
475
  minIntervalSeconds: number;
437
476
  /**
438
- * ISO 8601 timestamp of the next daily counter reset
477
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
439
478
  */
440
- nextResetDaily: Date;
479
+ nextResetDaily: Date | null;
441
480
  /**
442
481
  * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
443
482
  */
444
483
  nextResetWeekly: Date | null;
445
484
  };
446
485
  /**
447
- * Daily usage counter (resets at midnight UTC)
486
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
448
487
  */
449
488
  export type ProfileVisitDaily = {
450
489
  /**
@@ -482,9 +521,9 @@ export type ProfileVisitWeekly = {
482
521
  */
483
522
  export type ProfileVisit = {
484
523
  /**
485
- * Daily usage counter (resets at midnight UTC)
524
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
486
525
  */
487
- daily: ProfileVisitDaily;
526
+ daily: ProfileVisitDaily | null;
488
527
  /**
489
528
  * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
490
529
  */
@@ -494,16 +533,16 @@ export type ProfileVisit = {
494
533
  */
495
534
  minIntervalSeconds: number;
496
535
  /**
497
- * ISO 8601 timestamp of the next daily counter reset
536
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
498
537
  */
499
- nextResetDaily: Date;
538
+ nextResetDaily: Date | null;
500
539
  /**
501
540
  * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
502
541
  */
503
542
  nextResetWeekly: Date | null;
504
543
  };
505
544
  /**
506
- * Daily usage counter (resets at midnight UTC)
545
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
507
546
  */
508
547
  export type ScrapingDaily = {
509
548
  /**
@@ -541,9 +580,9 @@ export type ScrapingWeekly = {
541
580
  */
542
581
  export type Scraping = {
543
582
  /**
544
- * Daily usage counter (resets at midnight UTC)
583
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
545
584
  */
546
- daily: ScrapingDaily;
585
+ daily: ScrapingDaily | null;
547
586
  /**
548
587
  * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
549
588
  */
@@ -553,377 +592,357 @@ export type Scraping = {
553
592
  */
554
593
  minIntervalSeconds: number;
555
594
  /**
556
- * ISO 8601 timestamp of the next daily counter reset
595
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
557
596
  */
558
- nextResetDaily: Date;
597
+ nextResetDaily: Date | null;
559
598
  /**
560
599
  * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
561
600
  */
562
601
  nextResetWeekly: Date | null;
563
602
  };
564
- export type Limits = {
565
- /**
566
- * Limits for sending LinkedIn connection requests
567
- */
568
- connectionRequest: ConnectionRequest;
603
+ /**
604
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
605
+ */
606
+ export type PostDaily = {
569
607
  /**
570
- * Limits for social engagement actions: sending messages, publishing posts, replying to comments, liking comments
608
+ * Number of actions used in this window
571
609
  */
572
- message: GetLimitsMessage;
610
+ current: number;
573
611
  /**
574
- * Limits for visiting LinkedIn profiles and company pages
612
+ * Maximum allowed actions in this window (with multiplier applied)
575
613
  */
576
- profileVisit: ProfileVisit;
614
+ limit: number;
577
615
  /**
578
- * Limits for data collection: search, collecting posts/likes/comments, fetching followers, listing chats
616
+ * Actions remaining before hitting the limit
579
617
  */
580
- scraping: Scraping;
618
+ remaining: number;
581
619
  };
582
620
  /**
583
- * Rate limit status for all action types
621
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
584
622
  */
585
- export type GetLimitsResponse = {
586
- success: true;
623
+ export type PostWeekly = {
587
624
  /**
588
- * Workspace limit multiplier applied to all base limits (default 1.0)
625
+ * Number of actions used in this window
589
626
  */
590
- multiplier: number;
591
- limits: Limits;
627
+ current: number;
592
628
  /**
593
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
629
+ * Maximum allowed actions in this window (with multiplier applied)
594
630
  */
595
- creditsUsed: number;
631
+ limit: number;
596
632
  /**
597
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
633
+ * Actions remaining before hitting the limit
598
634
  */
599
- retryAfter: number;
635
+ remaining: number;
600
636
  };
601
- export type Credits = {
637
+ /**
638
+ * Limits for publishing LinkedIn posts
639
+ */
640
+ export type GetLimitsPost = {
602
641
  /**
603
- * Number of credits used in the current billing period
642
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
604
643
  */
605
- current: number;
644
+ daily: PostDaily | null;
606
645
  /**
607
- * Maximum credits available for the workspace, or null if unlimited
646
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
608
647
  */
609
- limit: number | null;
648
+ weekly: PostWeekly | null;
610
649
  /**
611
- * Credits remaining before hitting the limit, or null if unlimited
650
+ * Minimum delay in seconds required between two consecutive actions of this type
612
651
  */
613
- remaining: number | null;
652
+ minIntervalSeconds: number;
614
653
  /**
615
- * Percentage of credits used (0-100, capped at 100, rounded to 2 decimal places). 0 when unlimited
654
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
616
655
  */
617
- percentage: number;
656
+ nextResetDaily: Date | null;
618
657
  /**
619
- * Whether the workspace has unlimited credits (Pro plan). When true, limit and remaining are null
658
+ * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
620
659
  */
621
- isUnlimited: boolean;
660
+ nextResetWeekly: Date | null;
622
661
  };
623
662
  /**
624
- * Credit balance for the workspace
663
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
625
664
  */
626
- export type GetCreditsResponse = {
627
- success: true;
628
- credits: Credits;
665
+ export type AcceptInvitationDaily2 = {
629
666
  /**
630
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
667
+ * Number of actions used in this window
631
668
  */
632
- creditsUsed: number;
669
+ current: number;
633
670
  /**
634
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
671
+ * Maximum allowed actions in this window (with multiplier applied)
635
672
  */
636
- retryAfter: number;
637
- };
638
- export type GetProfileViewsRequest = {};
639
- export type ViewedAt = number | string;
640
- export type View = {
641
- entityUrn: string;
642
- viewedAt: number | string | null;
643
- viewer: string | null;
644
- headline: string | null;
645
- navigationUrl: string | null;
673
+ limit: number;
674
+ /**
675
+ * Actions remaining before hitting the limit
676
+ */
677
+ remaining: number;
646
678
  };
647
679
  /**
648
- * Profile viewers
680
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
649
681
  */
650
- export type GetProfileViewsResponse = {
651
- success: true;
652
- views: Array<View>;
653
- total: number;
682
+ export type AcceptInvitationWeekly2 = {
654
683
  /**
655
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
684
+ * Number of actions used in this window
656
685
  */
657
- creditsUsed: number;
686
+ current: number;
658
687
  /**
659
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
688
+ * Maximum allowed actions in this window (with multiplier applied)
660
689
  */
661
- retryAfter: number;
690
+ limit: number;
691
+ /**
692
+ * Actions remaining before hitting the limit
693
+ */
694
+ remaining: number;
662
695
  };
663
- export type GetSearchAppearancesRequest = {};
664
- export type Appearances = {
665
- count: number;
696
+ /**
697
+ * Limits for accepting connection invitations
698
+ */
699
+ export type AcceptInvitation = {
666
700
  /**
667
- * Top search keywords that led to your profile
701
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
668
702
  */
669
- keywords: Array<any>;
703
+ daily: AcceptInvitationDaily2 | null;
670
704
  /**
671
- * Companies of people who found you
705
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
672
706
  */
673
- companies: Array<any>;
707
+ weekly: AcceptInvitationWeekly2 | null;
708
+ /**
709
+ * Minimum delay in seconds required between two consecutive actions of this type
710
+ */
711
+ minIntervalSeconds: number;
712
+ /**
713
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
714
+ */
715
+ nextResetDaily: Date | null;
674
716
  /**
675
- * Raw LinkedIn API response
717
+ * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
676
718
  */
677
- raw: any;
719
+ nextResetWeekly: Date | null;
678
720
  };
679
721
  /**
680
- * Search appearance stats
722
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
681
723
  */
682
- export type GetSearchAppearancesResponse = {
683
- success: true;
684
- appearances: Appearances;
724
+ export type CommentPostDaily = {
685
725
  /**
686
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
726
+ * Number of actions used in this window
687
727
  */
688
- creditsUsed: number;
728
+ current: number;
689
729
  /**
690
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
730
+ * Maximum allowed actions in this window (with multiplier applied)
691
731
  */
692
- retryAfter: number;
693
- };
694
- export type GetPostAnalyticsRequest = {
732
+ limit: number;
695
733
  /**
696
- * LinkedIn post URL or URN
734
+ * Actions remaining before hitting the limit
697
735
  */
698
- postUrl: string;
699
- };
700
- export type GetPostAnalyticsAnalytics = {
701
- reactions: number;
702
- comments: number;
703
- postUrn: string;
736
+ remaining: number;
704
737
  };
705
738
  /**
706
- * Post analytics
739
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
707
740
  */
708
- export type GetPostAnalyticsResponse = {
709
- success: true;
710
- analytics: GetPostAnalyticsAnalytics;
741
+ export type CommentPostWeekly = {
711
742
  /**
712
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
743
+ * Number of actions used in this window
713
744
  */
714
- creditsUsed: number;
745
+ current: number;
715
746
  /**
716
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
747
+ * Maximum allowed actions in this window (with multiplier applied)
717
748
  */
718
- retryAfter: number;
719
- };
720
- export type GetFollowerAnalyticsRequest = {};
721
- /**
722
- * Follower count and optional growth/demographics data from LinkedIn
723
- */
724
- export type GetFollowerAnalyticsAnalytics = {
725
- count: number;
726
- [additionalProperties: string]: unknown;
749
+ limit: number;
750
+ /**
751
+ * Actions remaining before hitting the limit
752
+ */
753
+ remaining: number;
727
754
  };
728
755
  /**
729
- * Follower analytics
756
+ * Limits for commenting on posts
730
757
  */
731
- export type GetFollowerAnalyticsResponse = {
732
- success: true;
758
+ export type CommentPost = {
733
759
  /**
734
- * Follower count and optional growth/demographics data from LinkedIn
760
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
735
761
  */
736
- analytics: GetFollowerAnalyticsAnalytics;
762
+ daily: CommentPostDaily | null;
737
763
  /**
738
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
764
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
739
765
  */
740
- creditsUsed: number;
766
+ weekly: CommentPostWeekly | null;
741
767
  /**
742
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
768
+ * Minimum delay in seconds required between two consecutive actions of this type
743
769
  */
744
- retryAfter: number;
745
- };
746
- export type SwitchAccountRequest = {
770
+ minIntervalSeconds: number;
747
771
  /**
748
- * The LinkedIn credentials ID to switch to (from listAccounts)
772
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
749
773
  */
750
- credentialsId: string;
751
- };
752
- /**
753
- * Switched account summary
754
- */
755
- export type SwitchAccountAccount = {
756
- id: string;
757
- name: string;
758
- avatar: string | null;
759
- plan: string;
774
+ nextResetDaily: Date | null;
775
+ /**
776
+ * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
777
+ */
778
+ nextResetWeekly: Date | null;
760
779
  };
761
780
  /**
762
- * Account switched
781
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
763
782
  */
764
- export type SwitchAccountResponse = {
765
- success: true;
783
+ export type ReplyCommentDaily = {
766
784
  /**
767
- * Switched account summary
785
+ * Number of actions used in this window
768
786
  */
769
- account: SwitchAccountAccount;
787
+ current: number;
770
788
  /**
771
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
789
+ * Maximum allowed actions in this window (with multiplier applied)
772
790
  */
773
- creditsUsed: number;
791
+ limit: number;
774
792
  /**
775
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
793
+ * Actions remaining before hitting the limit
776
794
  */
777
- retryAfter: number;
795
+ remaining: number;
778
796
  };
779
797
  /**
780
- * Sort order (default RECENTLY_ADDED)
798
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
781
799
  */
782
- export declare const SortType: {
783
- readonly RecentlyAdded: "RECENTLY_ADDED";
800
+ export type ReplyCommentWeekly = {
801
+ /**
802
+ * Number of actions used in this window
803
+ */
804
+ current: number;
805
+ /**
806
+ * Maximum allowed actions in this window (with multiplier applied)
807
+ */
808
+ limit: number;
809
+ /**
810
+ * Actions remaining before hitting the limit
811
+ */
812
+ remaining: number;
784
813
  };
785
814
  /**
786
- * Sort order (default RECENTLY_ADDED)
815
+ * Limits for replying to comments
787
816
  */
788
- export type SortType = ClosedEnum<typeof SortType>;
789
- export type ListConnectionsRequest = {
817
+ export type ReplyComment = {
790
818
  /**
791
- * Pagination offset
819
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
792
820
  */
793
- start?: number | undefined;
821
+ daily: ReplyCommentDaily | null;
794
822
  /**
795
- * Results per page (max 40)
823
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
796
824
  */
797
- count?: number | undefined;
825
+ weekly: ReplyCommentWeekly | null;
798
826
  /**
799
- * Sort order (default RECENTLY_ADDED)
827
+ * Minimum delay in seconds required between two consecutive actions of this type
800
828
  */
801
- sortType?: SortType | undefined;
802
- /**
803
- * Filter connections by name
804
- */
805
- keywords?: string | undefined;
806
- };
807
- export type Connection = {
808
- name: string;
809
- headline: string | null;
810
- profileUrl: string | null;
811
- imageUrl: string | null;
829
+ minIntervalSeconds: number;
812
830
  /**
813
- * Vanity slug from profile URL (e.g. john-doe) when not URN-based
831
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
814
832
  */
815
- publicIdentifier: string | null;
833
+ nextResetDaily: Date | null;
816
834
  /**
817
- * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
835
+ * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
818
836
  */
819
- profileUrn: string | null;
820
- connectedAt: string | null;
837
+ nextResetWeekly: Date | null;
821
838
  };
822
839
  /**
823
- * Connections list
840
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
824
841
  */
825
- export type ListConnectionsResponse = {
826
- success: true;
827
- connections: Array<Connection>;
828
- count: number;
829
- start: number;
830
- total: number;
831
- hasMore: boolean;
842
+ export type ChatSearchDaily = {
832
843
  /**
833
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
844
+ * Number of actions used in this window
834
845
  */
835
- creditsUsed: number;
846
+ current: number;
836
847
  /**
837
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
848
+ * Maximum allowed actions in this window (with multiplier applied)
838
849
  */
839
- retryAfter: number;
850
+ limit: number;
851
+ /**
852
+ * Actions remaining before hitting the limit
853
+ */
854
+ remaining: number;
840
855
  };
841
- export type Page = {
856
+ /**
857
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
858
+ */
859
+ export type ChatSearchWeekly = {
842
860
  /**
843
- * LinkedIn numeric company ID.
861
+ * Number of actions used in this window
844
862
  */
845
- id: string;
863
+ current: number;
846
864
  /**
847
- * Company URL slug (e.g. 'openai').
865
+ * Maximum allowed actions in this window (with multiplier applied)
848
866
  */
849
- universalName: string;
850
- name: string;
851
- url: string;
852
- logoUrl: string | null;
853
- followerCount: number | null;
854
- industry: string | null;
855
- employeeCount: number | null;
867
+ limit: number;
856
868
  /**
857
- * Admin role (e.g. 'ADMINISTRATOR', 'CONTENT_ADMIN'). Null if role is unknown.
869
+ * Actions remaining before hitting the limit
858
870
  */
859
- adminRole: string | null;
871
+ remaining: number;
860
872
  };
861
873
  /**
862
- * List of managed company pages
874
+ * Limits for searching chat conversations
863
875
  */
864
- export type ListPagesResponse = {
865
- success: true;
866
- pages: Array<Page>;
867
- total: number;
876
+ export type ChatSearch = {
868
877
  /**
869
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
878
+ * Daily usage counter (resets at midnight UTC). Null if not configured for this action type.
870
879
  */
871
- creditsUsed: number;
880
+ daily: ChatSearchDaily | null;
872
881
  /**
873
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
882
+ * Weekly usage counter (resets Monday 00:00 UTC). Null if no weekly cap for this action type.
874
883
  */
875
- retryAfter: number;
876
- };
877
- export type GetCompanyPostsRequest = {
884
+ weekly: ChatSearchWeekly | null;
878
885
  /**
879
- * Company URL slug (e.g. 'openai'). Same value as returned by listCompanyPages.
886
+ * Minimum delay in seconds required between two consecutive actions of this type
880
887
  */
881
- universalName: string;
888
+ minIntervalSeconds: number;
882
889
  /**
883
- * Number of posts to return (max 50).
890
+ * ISO 8601 timestamp of the next daily counter reset. Null if not configured.
884
891
  */
885
- count?: number | undefined;
892
+ nextResetDaily: Date | null;
886
893
  /**
887
- * Pagination offset.
894
+ * ISO 8601 timestamp of the next weekly counter reset. Null if no weekly cap.
888
895
  */
889
- start?: number | undefined;
896
+ nextResetWeekly: Date | null;
890
897
  };
891
- export type GetCompanyPostsPost = {
898
+ export type Limits = {
892
899
  /**
893
- * LinkedIn activity URN for this post.
900
+ * Limits for sending LinkedIn connection requests
894
901
  */
895
- activityUrn: string;
902
+ connectionRequest: ConnectionRequest;
896
903
  /**
897
- * Direct URL to the post on LinkedIn.
904
+ * Limits for sending DMs
898
905
  */
899
- postUrl: string;
906
+ message: GetLimitsMessage;
900
907
  /**
901
- * Post text content (null if media-only).
908
+ * Limits for visiting LinkedIn profiles and company pages
902
909
  */
903
- text: string | null;
910
+ profileVisit: ProfileVisit;
904
911
  /**
905
- * Unix timestamp in milliseconds (null if unavailable).
912
+ * Limits for data collection: search, collecting posts/likes/comments, fetching followers, listing chats
906
913
  */
907
- publishedAt: number | null;
914
+ scraping: Scraping;
908
915
  /**
909
- * Number of likes/reactions.
916
+ * Limits for publishing LinkedIn posts
910
917
  */
911
- numLikes: number | null;
918
+ post?: GetLimitsPost | undefined;
912
919
  /**
913
- * Number of comments.
920
+ * Limits for accepting connection invitations
914
921
  */
915
- numComments: number | null;
922
+ acceptInvitation?: AcceptInvitation | undefined;
923
+ /**
924
+ * Limits for commenting on posts
925
+ */
926
+ commentPost?: CommentPost | undefined;
927
+ /**
928
+ * Limits for replying to comments
929
+ */
930
+ replyComment?: ReplyComment | undefined;
931
+ /**
932
+ * Limits for searching chat conversations
933
+ */
934
+ chatSearch?: ChatSearch | undefined;
916
935
  };
917
936
  /**
918
- * Company page posts
937
+ * Rate limit status for all action types
919
938
  */
920
- export type GetCompanyPostsResponse = {
939
+ export type GetLimitsResponse = {
921
940
  success: true;
922
- posts: Array<GetCompanyPostsPost>;
923
941
  /**
924
- * Total number of posts available.
942
+ * Workspace limit multiplier applied to all base limits (default 1.0)
925
943
  */
926
- total: number;
944
+ multiplier: number;
945
+ limits: Limits;
927
946
  /**
928
947
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
929
948
  */
@@ -933,113 +952,90 @@ export type GetCompanyPostsResponse = {
933
952
  */
934
953
  retryAfter: number;
935
954
  };
936
- export type GetPermissionsRequest = {
937
- /**
938
- * Company URL slug (e.g. 'openai'). Same value as returned by listCompanyPages.
939
- */
940
- universalName: string;
941
- };
942
- export type Permissions = {
943
- /**
944
- * Admin role (e.g. 'SUPER_ADMINISTRATOR', 'ADMINISTRATOR', 'CONTENT_ADMIN').
945
- */
946
- role: string | null;
955
+ export type GetCreditsCredits = {
947
956
  /**
948
- * Can post as the company page.
949
- */
950
- canCreateOrganicShare: boolean;
951
- /**
952
- * Can comment as the company page.
953
- */
954
- canCreateComment: boolean;
955
- /**
956
- * Can like/react as the company page.
957
- */
958
- canCreateReaction: boolean;
959
- /**
960
- * Can delete company page posts.
961
- */
962
- canDeleteShare: boolean;
963
- /**
964
- * Can pin posts on the company page.
965
- */
966
- canPinShare: boolean;
967
- /**
968
- * Can send messages from the company page inbox.
969
- */
970
- canSendMessages: boolean;
971
- /**
972
- * Can read the company page inbox.
973
- */
974
- canReadMessages: boolean;
975
- /**
976
- * Can access the admin analytics dashboard.
977
- */
978
- canReadAdminDashboard: boolean;
979
- /**
980
- * Can view post/update analytics.
981
- */
982
- canReadOrganizationUpdateAnalytics: boolean;
983
- /**
984
- * Can view visitor analytics.
985
- */
986
- canReadOrganizationVisitorAnalytics: boolean;
987
- /**
988
- * Can view follower analytics.
957
+ * Number of credits used in the current billing period
989
958
  */
990
- canReadOrganizationFollowerAnalytics: boolean;
959
+ current: number;
991
960
  /**
992
- * Can view search appearance analytics.
961
+ * Maximum credits available for the workspace, or null if unlimited
993
962
  */
994
- canReadOrganizationSearchAppearanceAnalytics: boolean;
963
+ limit: number | null;
995
964
  /**
996
- * Can edit the company page profile.
965
+ * Credits remaining before hitting the limit, or null if unlimited
997
966
  */
998
- canUpdateOrganizationProfile: boolean;
967
+ remaining: number | null;
999
968
  /**
1000
- * Can add/remove page admins.
969
+ * Percentage of credits used (0-100, capped at 100, rounded to 2 decimal places). 0 when unlimited
1001
970
  */
1002
- canEditAdministrators: boolean;
971
+ percentage: number;
1003
972
  /**
1004
- * Can deactivate the company page.
973
+ * Whether the workspace has unlimited credits (Pro plan). When true, limit and remaining are null
1005
974
  */
1006
- canDeactivateOrganization: boolean;
975
+ isUnlimited: boolean;
976
+ };
977
+ /**
978
+ * Credit balance for the workspace
979
+ */
980
+ export type GetCreditsResponse = {
981
+ success: true;
982
+ credits: GetCreditsCredits;
1007
983
  /**
1008
- * Can create/edit company events.
984
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1009
985
  */
1010
- canEditEvents: boolean;
986
+ creditsUsed: number;
1011
987
  /**
1012
- * Can view company events.
988
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1013
989
  */
1014
- canReadEvents: boolean;
990
+ retryAfter: number;
991
+ };
992
+ export type GetProfileViewsRequest = {};
993
+ export type ViewedAt = number | string;
994
+ export type View = {
995
+ entityUrn: string;
996
+ viewedAt: number | string | null;
997
+ viewer: string | null;
998
+ headline: string | null;
999
+ navigationUrl: string | null;
1000
+ };
1001
+ /**
1002
+ * Profile viewers
1003
+ */
1004
+ export type GetProfileViewsResponse = {
1005
+ success: true;
1006
+ views: Array<View>;
1007
+ total: number;
1015
1008
  /**
1016
- * Can sponsor/boost posts.
1009
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1017
1010
  */
1018
- canSponsorShare: boolean;
1011
+ creditsUsed: number;
1019
1012
  /**
1020
- * Can manage the career page section.
1013
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1021
1014
  */
1022
- canManageCareerPages: boolean;
1015
+ retryAfter: number;
1016
+ };
1017
+ export type GetSearchAppearancesRequest = {};
1018
+ export type Appearances = {
1019
+ count: number;
1023
1020
  /**
1024
- * Can manage messaging settings.
1021
+ * Top search keywords that led to your profile
1025
1022
  */
1026
- canManageMessagingAccess: boolean;
1023
+ keywords: Array<any>;
1027
1024
  /**
1028
- * Can notify employees about posts.
1025
+ * Companies of people who found you
1029
1026
  */
1030
- canNotifyEmployees: boolean;
1027
+ companies: Array<any>;
1031
1028
  /**
1032
- * Can export lead-gen form leads.
1029
+ * Raw LinkedIn API response (included when available)
1033
1030
  */
1034
- canExportLeads: boolean;
1031
+ raw?: any | undefined;
1035
1032
  };
1036
1033
  /**
1037
- * Company page admin permissions
1034
+ * Search appearance stats
1038
1035
  */
1039
- export type GetPermissionsResponse = {
1036
+ export type GetSearchAppearancesResponse = {
1040
1037
  success: true;
1041
- universalName: string;
1042
- permissions: Permissions;
1038
+ appearances: Appearances;
1043
1039
  /**
1044
1040
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1045
1041
  */
@@ -1049,45 +1045,23 @@ export type GetPermissionsResponse = {
1049
1045
  */
1050
1046
  retryAfter: number;
1051
1047
  };
1052
- export type GetAnalyticsRequest = {
1048
+ export type GetPostAnalyticsRequest = {
1053
1049
  /**
1054
- * Company page ID (numeric, e.g. '111652438')
1050
+ * LinkedIn post URL or URN
1055
1051
  */
1056
- companyId: string;
1052
+ postUrl: string;
1057
1053
  };
1058
- export type GetAnalyticsFoundedOn = {
1059
- year: number;
1060
- month?: number | undefined;
1061
- day?: number | undefined;
1062
- };
1063
- export type GetAnalyticsHeadquarter = {
1064
- city: string;
1065
- country: string;
1066
- line1?: string | undefined;
1067
- postalCode?: string | undefined;
1068
- };
1069
- export type GetAnalyticsAnalytics = {
1070
- name: string;
1071
- universalName: string;
1072
- followerCount: number | null;
1073
- employeeCount: number | null;
1074
- visitorsInPastMonthCount: number | null;
1075
- isActive: boolean;
1076
- foundedOn: GetAnalyticsFoundedOn | null;
1077
- headquarter: GetAnalyticsHeadquarter | null;
1078
- description: string | null;
1079
- tagline: string | null;
1080
- websiteUrl: string | null;
1081
- organizationType: string | null;
1082
- specialities: Array<string>;
1083
- industryUrns: Array<string>;
1054
+ export type GetPostAnalyticsAnalytics = {
1055
+ reactions: number;
1056
+ comments: number;
1057
+ postUrn: string;
1084
1058
  };
1085
1059
  /**
1086
- * Company page overview analytics
1060
+ * Post analytics
1087
1061
  */
1088
- export type GetAnalyticsResponse = {
1062
+ export type GetPostAnalyticsResponse = {
1089
1063
  success: true;
1090
- analytics: GetAnalyticsAnalytics;
1064
+ analytics: GetPostAnalyticsAnalytics;
1091
1065
  /**
1092
1066
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1093
1067
  */
@@ -1097,47 +1071,23 @@ export type GetAnalyticsResponse = {
1097
1071
  */
1098
1072
  retryAfter: number;
1099
1073
  };
1100
- export type ListInboxRequest = {
1101
- /**
1102
- * Pagination cursor from a previous response
1103
- */
1104
- nextCursor?: string | undefined;
1105
- };
1106
- export type ListInboxParticipant = {
1107
- profileUrn: string;
1108
- firstName: string;
1109
- lastName: string;
1110
- profileUrl: string | null;
1111
- headline: string | null;
1112
- profilePicture: string | null;
1113
- publicIdentifier: string | null;
1114
- };
1115
- export type ListInboxLastMessage = {
1116
- text: string | null;
1117
- deliveredAt: number;
1118
- senderProfileUrn: string;
1119
- };
1120
- export type ListInboxConversation = {
1121
- conversationUrn: string;
1122
- conversationUrl: string;
1123
- lastActivityAt: number;
1124
- createdAt: number;
1125
- read: boolean;
1126
- unreadCount: number;
1127
- groupChat: boolean;
1128
- participants: Array<ListInboxParticipant>;
1129
- lastMessage: ListInboxLastMessage | null;
1074
+ export type GetFollowerAnalyticsRequest = {};
1075
+ /**
1076
+ * Follower count and optional growth/demographics data from LinkedIn
1077
+ */
1078
+ export type GetFollowerAnalyticsAnalytics = {
1079
+ count: number;
1080
+ [additionalProperties: string]: unknown;
1130
1081
  };
1131
1082
  /**
1132
- * Inbox conversations
1083
+ * Follower analytics
1133
1084
  */
1134
- export type ListInboxResponse = {
1085
+ export type GetFollowerAnalyticsResponse = {
1135
1086
  success: true;
1136
- conversations: Array<ListInboxConversation>;
1137
1087
  /**
1138
- * Cursor for fetching next page
1088
+ * Follower count and optional growth/demographics data from LinkedIn
1139
1089
  */
1140
- nextCursor: string | null;
1090
+ analytics: GetFollowerAnalyticsAnalytics;
1141
1091
  /**
1142
1092
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1143
1093
  */
@@ -1147,51 +1097,30 @@ export type ListInboxResponse = {
1147
1097
  */
1148
1098
  retryAfter: number;
1149
1099
  };
1150
- export type SearchConversationsRequest = {
1151
- /**
1152
- * Search keywords
1153
- */
1154
- keywords: string;
1100
+ export type SwitchAccountRequest = {
1155
1101
  /**
1156
- * Pagination cursor from a previous response
1102
+ * The LinkedIn credentials ID to switch to (from listAccounts)
1157
1103
  */
1158
- nextCursor?: string | undefined;
1159
- };
1160
- export type SearchConversationsParticipant = {
1161
- profileUrn: string;
1162
- firstName: string;
1163
- lastName: string;
1164
- profileUrl: string | null;
1165
- headline: string | null;
1166
- profilePicture: string | null;
1167
- publicIdentifier: string | null;
1168
- };
1169
- export type SearchConversationsLastMessage = {
1170
- text: string | null;
1171
- deliveredAt: number;
1172
- senderProfileUrn: string;
1104
+ credentialsId: string;
1173
1105
  };
1174
- export type SearchConversationsConversation = {
1175
- conversationUrn: string;
1176
- conversationUrl: string;
1177
- lastActivityAt: number;
1178
- createdAt: number;
1179
- read: boolean;
1180
- unreadCount: number;
1181
- groupChat: boolean;
1182
- participants: Array<SearchConversationsParticipant>;
1183
- lastMessage: SearchConversationsLastMessage | null;
1106
+ /**
1107
+ * Switched account summary
1108
+ */
1109
+ export type SwitchAccountAccount = {
1110
+ id: string;
1111
+ name: string;
1112
+ avatar: string | null;
1113
+ plan: string;
1184
1114
  };
1185
1115
  /**
1186
- * Matching conversations
1116
+ * Account switched
1187
1117
  */
1188
- export type SearchConversationsResponse = {
1118
+ export type SwitchAccountResponse = {
1189
1119
  success: true;
1190
- conversations: Array<SearchConversationsConversation>;
1191
1120
  /**
1192
- * Cursor for fetching next page
1121
+ * Switched account summary
1193
1122
  */
1194
- nextCursor: string | null;
1123
+ account: SwitchAccountAccount;
1195
1124
  /**
1196
1125
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1197
1126
  */
@@ -1201,70 +1130,63 @@ export type SearchConversationsResponse = {
1201
1130
  */
1202
1131
  retryAfter: number;
1203
1132
  };
1204
- export type FindConversationRequest = {
1133
+ /**
1134
+ * Sort order (default RECENTLY_ADDED)
1135
+ */
1136
+ export declare const SortType: {
1137
+ readonly RecentlyAdded: "RECENTLY_ADDED";
1138
+ };
1139
+ /**
1140
+ * Sort order (default RECENTLY_ADDED)
1141
+ */
1142
+ export type SortType = ClosedEnum<typeof SortType>;
1143
+ export type ListConnectionsRequest = {
1205
1144
  /**
1206
- * Accepts full profile URLs, vanity names (e.g. marie-sandre), or profile URNs. Direct O(1) conversation lookup via LinkedIn's compose API — no search, no inbox scan. 0 credits.
1145
+ * Pagination offset
1207
1146
  */
1208
- profile: string;
1147
+ start?: number | undefined;
1209
1148
  /**
1210
- * If true, also return the conversation's recent messages (0 extra credits).
1149
+ * Results per page (max 40)
1211
1150
  */
1212
- includeMessages?: boolean | undefined;
1151
+ count?: number | undefined;
1152
+ /**
1153
+ * Sort order (default RECENTLY_ADDED)
1154
+ */
1155
+ sortType?: SortType | undefined;
1156
+ /**
1157
+ * Filter connections by name
1158
+ */
1159
+ keywords?: string | undefined;
1213
1160
  };
1214
1161
  /**
1215
- * Lightweight conversation reference (O(1) lookup returns URN only, not full details).
1162
+ * Connection date (Unix timestamp ms or ISO string)
1216
1163
  */
1217
- export type FindConversationConversation = {
1218
- conversationUrn: string;
1219
- };
1220
- export type FindConversationSender = {
1221
- firstName: string;
1222
- lastName: string;
1223
- profileUrl: string | null;
1164
+ export type ConnectedAt = number | string;
1165
+ export type Connection = {
1166
+ name: string;
1224
1167
  headline: string | null;
1225
- profilePicture: string | null;
1226
- publicIdentifier: string | null;
1168
+ profileUrl: string | null;
1227
1169
  profileUrn: string | null;
1228
- };
1229
- export declare const FindConversationType: {
1230
- readonly Audio: "audio";
1231
- readonly SharedPost: "shared_post";
1232
- readonly RepliedMessage: "replied_message";
1233
- readonly Image: "image";
1234
- readonly File: "file";
1235
- readonly Unknown: "unknown";
1236
- };
1237
- export type FindConversationType = OpenEnum<typeof FindConversationType>;
1238
- export type FindConversationAttachment = {
1239
- type: FindConversationType;
1240
- audioUrl?: string | undefined;
1241
- audioDuration?: number | undefined;
1242
- hostUrn?: string | undefined;
1243
- repliedText?: string | undefined;
1244
- repliedSenderName?: string | undefined;
1245
- imageUrl?: string | undefined;
1246
- fileName?: string | undefined;
1247
- fileUrl?: string | undefined;
1248
- };
1249
- export type FindConversationMessage = {
1250
- messageUrn: string;
1251
- text: string | null;
1252
- deliveredAt: number;
1253
- senderProfileUrn: string;
1254
- sender: FindConversationSender;
1255
- attachments: Array<FindConversationAttachment>;
1170
+ publicIdentifier: string | null;
1171
+ /**
1172
+ * Profile picture URL
1173
+ */
1174
+ profilePicture: string | null;
1175
+ /**
1176
+ * Connection date (Unix timestamp ms or ISO string)
1177
+ */
1178
+ connectedAt: number | string | null;
1256
1179
  };
1257
1180
  /**
1258
- * Conversation found (or not)
1181
+ * Connections list
1259
1182
  */
1260
- export type FindConversationResponse = {
1183
+ export type ListConnectionsResponse = {
1261
1184
  success: true;
1262
- found: boolean;
1263
- /**
1264
- * Lightweight conversation reference (O(1) lookup returns URN only, not full details).
1265
- */
1266
- conversation: FindConversationConversation | null;
1267
- messages: Array<FindConversationMessage> | null;
1185
+ connections: Array<Connection>;
1186
+ count: number;
1187
+ start: number;
1188
+ total: number;
1189
+ hasMore: boolean;
1268
1190
  /**
1269
1191
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1270
1192
  */
@@ -1274,63 +1196,62 @@ export type FindConversationResponse = {
1274
1196
  */
1275
1197
  retryAfter: number;
1276
1198
  };
1277
- export type GetMessagesRequest = {
1199
+ /**
1200
+ * Type of activity to fetch
1201
+ */
1202
+ export declare const QueryParamTabType: {
1203
+ readonly Comments: "COMMENTS";
1204
+ readonly Reactions: "REACTIONS";
1205
+ };
1206
+ /**
1207
+ * Type of activity to fetch
1208
+ */
1209
+ export type QueryParamTabType = ClosedEnum<typeof QueryParamTabType>;
1210
+ export type GetMyActivityRequest = {
1278
1211
  /**
1279
- * Full conversation URN as returned by /chats/linkedin (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
1212
+ * Type of activity to fetch
1280
1213
  */
1281
- conversationUrn: string;
1214
+ tabType?: QueryParamTabType | undefined;
1282
1215
  /**
1283
- * Timestamp (ms) of the oldest message from previous page — pass this to load older messages
1216
+ * Company page ID to fetch organization activity instead of personal
1284
1217
  */
1285
- deliveredAt?: number | undefined;
1218
+ companyId?: string | undefined;
1219
+ /**
1220
+ * Number of items per page (max 50)
1221
+ */
1222
+ count?: number | undefined;
1223
+ /**
1224
+ * Pagination offset
1225
+ */
1226
+ start?: number | undefined;
1227
+ /**
1228
+ * Pagination token from previous response
1229
+ */
1230
+ paginationToken?: string | undefined;
1286
1231
  };
1287
- export type GetMessagesSender = {
1288
- firstName: string;
1289
- lastName: string;
1290
- profileUrl: string | null;
1291
- headline: string | null;
1292
- profilePicture: string | null;
1293
- publicIdentifier: string | null;
1294
- profileUrn: string | null;
1295
- };
1296
- export declare const GetMessagesType: {
1297
- readonly Audio: "audio";
1298
- readonly SharedPost: "shared_post";
1299
- readonly RepliedMessage: "replied_message";
1300
- readonly Image: "image";
1301
- readonly File: "file";
1302
- readonly Unknown: "unknown";
1303
- };
1304
- export type GetMessagesType = OpenEnum<typeof GetMessagesType>;
1305
- export type GetMessagesAttachment = {
1306
- type: GetMessagesType;
1307
- audioUrl?: string | undefined;
1308
- audioDuration?: number | undefined;
1309
- hostUrn?: string | undefined;
1310
- repliedText?: string | undefined;
1311
- repliedSenderName?: string | undefined;
1312
- imageUrl?: string | undefined;
1313
- fileName?: string | undefined;
1314
- fileUrl?: string | undefined;
1315
- };
1316
- export type GetMessagesMessage = {
1317
- messageUrn: string;
1318
- text: string | null;
1319
- deliveredAt: number;
1320
- senderProfileUrn: string;
1321
- sender: GetMessagesSender;
1322
- attachments: Array<GetMessagesAttachment>;
1232
+ export declare const TabTypeResponse: {
1233
+ readonly Comments: "COMMENTS";
1234
+ readonly Reactions: "REACTIONS";
1323
1235
  };
1236
+ export type TabTypeResponse = OpenEnum<typeof TabTypeResponse>;
1324
1237
  /**
1325
- * Conversation messages
1238
+ * Activity list
1326
1239
  */
1327
- export type GetMessagesResponse = {
1240
+ export type GetMyActivityResponse = {
1328
1241
  success: true;
1329
- messages: Array<GetMessagesMessage>;
1330
1242
  /**
1331
- * deliveredAt timestamp (ms) of the oldest message — pass as 'deliveredAt' to load older messages. Null when no more messages.
1243
+ * 'personal' for user activity, 'company:{id}' for org activity
1332
1244
  */
1333
- prevCursor: number | null;
1245
+ actor: string;
1246
+ tabType: TabTypeResponse;
1247
+ /**
1248
+ * Activity items — comments or reactions depending on tabType
1249
+ */
1250
+ items: Array<any>;
1251
+ count: number;
1252
+ total: number;
1253
+ start: number;
1254
+ paginationToken: string | null;
1334
1255
  /**
1335
1256
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1336
1257
  */
@@ -1340,17 +1261,190 @@ export type GetMessagesResponse = {
1340
1261
  */
1341
1262
  retryAfter: number;
1342
1263
  };
1343
- export type MarkSeenRequest = {
1264
+ export type User = {
1265
+ id: string;
1266
+ name: string | null;
1267
+ email: string | null;
1268
+ image: string | null;
1269
+ phone: string | null;
1270
+ createdAt: string;
1271
+ };
1272
+ export type GetSettingsLocation = {
1273
+ country: string | null;
1274
+ city: string | null;
1275
+ };
1276
+ export type Proxy = {
1277
+ enabled: boolean;
1278
+ [additionalProperties: string]: unknown;
1279
+ };
1280
+ export type AnthropicKey = {
1281
+ isSet: boolean;
1282
+ partial: string | null;
1283
+ };
1284
+ export type Subscription = {
1285
+ plan: string;
1286
+ tier: string;
1287
+ proSeatsIncluded: number;
1288
+ proSeatsUsed: number;
1289
+ status: string | null;
1290
+ currentPeriodEnd: string | null;
1291
+ hasStripe: boolean;
1292
+ };
1293
+ export type GetSettingsCredits = {
1294
+ current: number;
1295
+ limit: number | null;
1296
+ isUnlimited: boolean;
1297
+ };
1298
+ export type LinkedinAccountProxy = {
1299
+ enabled: boolean;
1300
+ [additionalProperties: string]: unknown;
1301
+ };
1302
+ export type ApiKey = {
1303
+ partialKey: string;
1304
+ createdAt: string;
1305
+ };
1306
+ export type LinkedinAccount = {
1307
+ id: string;
1308
+ label: string | null;
1309
+ isDefault: boolean;
1310
+ linkedinName: string | null;
1311
+ linkedinEmail: string | null;
1312
+ profilePic: string | null;
1313
+ profileUrl: string | null;
1314
+ headline: string | null;
1315
+ isValid: boolean;
1316
+ isActive: boolean;
1317
+ validationError: string | null;
1318
+ accountPlan: string | null;
1319
+ credits: GetSettingsCredits;
1320
+ proxy: LinkedinAccountProxy;
1321
+ apiKey: ApiKey | null;
1322
+ createdAt: string;
1323
+ };
1324
+ export type PendingInvite = {
1325
+ id: string;
1326
+ email: string | null;
1327
+ name: string | null;
1328
+ code: string;
1329
+ maxUses: number;
1330
+ useCount: number;
1331
+ expiresAt: string | null;
1332
+ createdAt: string;
1333
+ };
1334
+ /**
1335
+ * Account settings
1336
+ */
1337
+ export type GetSettingsResponse = {
1338
+ success: true;
1339
+ user: User;
1340
+ location: GetSettingsLocation;
1341
+ proxy: Proxy;
1342
+ anthropicKey: AnthropicKey;
1343
+ subscription: Subscription;
1344
+ linkedinAccounts: Array<LinkedinAccount>;
1345
+ pendingInvites: Array<PendingInvite>;
1346
+ };
1347
+ export type PatchSettingsRequest = {
1344
1348
  /**
1345
- * Full conversation URN (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
1349
+ * ISO country code
1346
1350
  */
1347
- conversationUrn: string;
1351
+ country?: string | undefined;
1352
+ city?: string | undefined;
1353
+ phone?: string | null | undefined;
1354
+ /**
1355
+ * Anthropic API key (sk-ant-...). Set to null to remove.
1356
+ */
1357
+ anthropicKey?: string | null | undefined;
1348
1358
  };
1349
1359
  /**
1350
- * Conversation marked as read
1360
+ * Settings updated
1351
1361
  */
1352
- export type MarkSeenResponse = {
1362
+ export type PatchSettingsResponse = {
1363
+ success: true;
1364
+ };
1365
+ /**
1366
+ * Validation result
1367
+ */
1368
+ export type RevalidateLinkedinResponse = {
1353
1369
  success: true;
1370
+ message: string;
1371
+ /**
1372
+ * True if credentials were previously marked invalid
1373
+ */
1374
+ wasInvalid: boolean;
1375
+ };
1376
+ export type GetApiTokenRequest = {
1377
+ /**
1378
+ * LinkedIn credentials ID (defaults to current account)
1379
+ */
1380
+ accountId?: string | undefined;
1381
+ };
1382
+ /**
1383
+ * Token returned
1384
+ */
1385
+ export type GetApiTokenResponse = {
1386
+ token: string | null;
1387
+ partialKey?: string | undefined;
1388
+ createdAt?: string | undefined;
1389
+ accountId?: string | undefined;
1390
+ };
1391
+ export type CreateApiTokenRequest = {
1392
+ /**
1393
+ * LinkedIn credentials ID (defaults to current account)
1394
+ */
1395
+ accountId?: string | undefined;
1396
+ };
1397
+ /**
1398
+ * Token created
1399
+ */
1400
+ export type CreateApiTokenResponse = {
1401
+ success: true;
1402
+ /**
1403
+ * Full API token (brc_...) - only shown once
1404
+ */
1405
+ token: string;
1406
+ partialKey: string;
1407
+ accountId: string;
1408
+ };
1409
+ export type DeleteApiTokenRequest = {
1410
+ /**
1411
+ * LinkedIn credentials ID (defaults to current account)
1412
+ */
1413
+ accountId?: string | undefined;
1414
+ };
1415
+ /**
1416
+ * Token deleted
1417
+ */
1418
+ export type DeleteApiTokenResponse = {
1419
+ success: true;
1420
+ };
1421
+ export type Page = {
1422
+ /**
1423
+ * LinkedIn numeric company ID.
1424
+ */
1425
+ id: string;
1426
+ /**
1427
+ * Company URL slug (e.g. 'openai').
1428
+ */
1429
+ universalName: string;
1430
+ name: string;
1431
+ url: string;
1432
+ logoUrl: string | null;
1433
+ followerCount: number | null;
1434
+ industry: string | null;
1435
+ employeeCount: number | null;
1436
+ /**
1437
+ * Admin role (e.g. 'ADMINISTRATOR', 'CONTENT_ADMIN'). Null if role is unknown.
1438
+ */
1439
+ adminRole: string | null;
1440
+ };
1441
+ /**
1442
+ * List of managed company pages
1443
+ */
1444
+ export type ListPagesResponse = {
1445
+ success: true;
1446
+ pages: Array<Page>;
1447
+ total: number;
1354
1448
  /**
1355
1449
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1356
1450
  */
@@ -1360,12 +1454,56 @@ export type MarkSeenResponse = {
1360
1454
  */
1361
1455
  retryAfter: number;
1362
1456
  };
1363
- export type MarkAllReadRequest = {};
1457
+ export type GetCompanyPostsRequest = {
1458
+ /**
1459
+ * Company URL slug (e.g. 'openai'). Same value as returned by listCompanyPages.
1460
+ */
1461
+ universalName: string;
1462
+ /**
1463
+ * Number of posts to return (max 50).
1464
+ */
1465
+ count?: number | undefined;
1466
+ /**
1467
+ * Pagination offset.
1468
+ */
1469
+ start?: number | undefined;
1470
+ };
1471
+ export type GetCompanyPostsPost = {
1472
+ /**
1473
+ * LinkedIn activity URN for this post.
1474
+ */
1475
+ activityUrn: string;
1476
+ /**
1477
+ * Direct URL to the post on LinkedIn.
1478
+ */
1479
+ postUrl: string;
1480
+ /**
1481
+ * Post text content (null if media-only).
1482
+ */
1483
+ text: string | null;
1484
+ /**
1485
+ * Unix timestamp in milliseconds (null if unavailable).
1486
+ */
1487
+ publishedAt: number | null;
1488
+ /**
1489
+ * Number of likes/reactions.
1490
+ */
1491
+ numLikes: number | null;
1492
+ /**
1493
+ * Number of comments.
1494
+ */
1495
+ numComments: number | null;
1496
+ };
1364
1497
  /**
1365
- * All conversations marked as read
1498
+ * Company page posts
1366
1499
  */
1367
- export type MarkAllReadResponse = {
1500
+ export type GetCompanyPostsResponse = {
1368
1501
  success: true;
1502
+ posts: Array<GetCompanyPostsPost>;
1503
+ /**
1504
+ * Total number of posts available.
1505
+ */
1506
+ total: number;
1369
1507
  /**
1370
1508
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1371
1509
  */
@@ -1375,17 +1513,113 @@ export type MarkAllReadResponse = {
1375
1513
  */
1376
1514
  retryAfter: number;
1377
1515
  };
1378
- export type StarRequest = {
1516
+ export type GetPermissionsRequest = {
1379
1517
  /**
1380
- * Full conversation URN
1518
+ * Company URL slug (e.g. 'openai'). Same value as returned by listCompanyPages.
1381
1519
  */
1382
- conversationUrn: string;
1520
+ universalName: string;
1521
+ };
1522
+ export type Permissions = {
1523
+ /**
1524
+ * Admin role (e.g. 'SUPER_ADMINISTRATOR', 'ADMINISTRATOR', 'CONTENT_ADMIN').
1525
+ */
1526
+ role: string | null;
1527
+ /**
1528
+ * Can post as the company page.
1529
+ */
1530
+ canCreateOrganicShare: boolean;
1531
+ /**
1532
+ * Can comment as the company page.
1533
+ */
1534
+ canCreateComment: boolean;
1535
+ /**
1536
+ * Can like/react as the company page.
1537
+ */
1538
+ canCreateReaction: boolean;
1539
+ /**
1540
+ * Can delete company page posts.
1541
+ */
1542
+ canDeleteShare: boolean;
1543
+ /**
1544
+ * Can pin posts on the company page.
1545
+ */
1546
+ canPinShare: boolean;
1547
+ /**
1548
+ * Can send messages from the company page inbox.
1549
+ */
1550
+ canSendMessages: boolean;
1551
+ /**
1552
+ * Can read the company page inbox.
1553
+ */
1554
+ canReadMessages: boolean;
1555
+ /**
1556
+ * Can access the admin analytics dashboard.
1557
+ */
1558
+ canReadAdminDashboard: boolean;
1559
+ /**
1560
+ * Can view post/update analytics.
1561
+ */
1562
+ canReadOrganizationUpdateAnalytics: boolean;
1563
+ /**
1564
+ * Can view visitor analytics.
1565
+ */
1566
+ canReadOrganizationVisitorAnalytics: boolean;
1567
+ /**
1568
+ * Can view follower analytics.
1569
+ */
1570
+ canReadOrganizationFollowerAnalytics: boolean;
1571
+ /**
1572
+ * Can view search appearance analytics.
1573
+ */
1574
+ canReadOrganizationSearchAppearanceAnalytics: boolean;
1575
+ /**
1576
+ * Can edit the company page profile.
1577
+ */
1578
+ canUpdateOrganizationProfile: boolean;
1579
+ /**
1580
+ * Can add/remove page admins.
1581
+ */
1582
+ canEditAdministrators: boolean;
1583
+ /**
1584
+ * Can deactivate the company page.
1585
+ */
1586
+ canDeactivateOrganization: boolean;
1587
+ /**
1588
+ * Can create/edit company events.
1589
+ */
1590
+ canEditEvents: boolean;
1591
+ /**
1592
+ * Can view company events.
1593
+ */
1594
+ canReadEvents: boolean;
1595
+ /**
1596
+ * Can sponsor/boost posts.
1597
+ */
1598
+ canSponsorShare: boolean;
1599
+ /**
1600
+ * Can manage the career page section.
1601
+ */
1602
+ canManageCareerPages: boolean;
1603
+ /**
1604
+ * Can manage messaging settings.
1605
+ */
1606
+ canManageMessagingAccess: boolean;
1607
+ /**
1608
+ * Can notify employees about posts.
1609
+ */
1610
+ canNotifyEmployees: boolean;
1611
+ /**
1612
+ * Can export lead-gen form leads.
1613
+ */
1614
+ canExportLeads: boolean;
1383
1615
  };
1384
1616
  /**
1385
- * Conversation starred
1617
+ * Company page admin permissions
1386
1618
  */
1387
- export type StarResponse = {
1619
+ export type GetPermissionsResponse = {
1388
1620
  success: true;
1621
+ universalName: string;
1622
+ permissions: Permissions;
1389
1623
  /**
1390
1624
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1391
1625
  */
@@ -1395,17 +1629,45 @@ export type StarResponse = {
1395
1629
  */
1396
1630
  retryAfter: number;
1397
1631
  };
1398
- export type UnstarRequest = {
1632
+ export type GetAnalyticsRequest = {
1399
1633
  /**
1400
- * Full conversation URN
1634
+ * Company page ID (numeric, e.g. '111652438')
1401
1635
  */
1402
- conversationUrn: string;
1636
+ companyId: string;
1637
+ };
1638
+ export type GetAnalyticsFoundedOn = {
1639
+ year: number;
1640
+ month?: number | undefined;
1641
+ day?: number | undefined;
1642
+ };
1643
+ export type GetAnalyticsHeadquarter = {
1644
+ city: string;
1645
+ country: string;
1646
+ line1?: string | undefined;
1647
+ postalCode?: string | undefined;
1648
+ };
1649
+ export type GetAnalyticsAnalytics = {
1650
+ name: string;
1651
+ universalName: string;
1652
+ followerCount: number | null;
1653
+ employeeCount: number | null;
1654
+ visitorsInPastMonthCount: number | null;
1655
+ isActive: boolean;
1656
+ foundedOn: GetAnalyticsFoundedOn | null;
1657
+ headquarter: GetAnalyticsHeadquarter | null;
1658
+ description: string | null;
1659
+ tagline: string | null;
1660
+ websiteUrl: string | null;
1661
+ organizationType: string | null;
1662
+ specialities: Array<string>;
1663
+ industryUrns: Array<string>;
1403
1664
  };
1404
1665
  /**
1405
- * Conversation unstarred
1666
+ * Company page overview analytics
1406
1667
  */
1407
- export type UnstarResponse = {
1668
+ export type GetAnalyticsResponse = {
1408
1669
  success: true;
1670
+ analytics: GetAnalyticsAnalytics;
1409
1671
  /**
1410
1672
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1411
1673
  */
@@ -1415,13 +1677,17 @@ export type UnstarResponse = {
1415
1677
  */
1416
1678
  retryAfter: number;
1417
1679
  };
1418
- export type ListStarredRequest = {
1680
+ export type ListInboxRequest = {
1419
1681
  /**
1420
1682
  * Pagination cursor from a previous response
1421
1683
  */
1422
1684
  nextCursor?: string | undefined;
1685
+ /**
1686
+ * Number of conversations to return (default 20, max 40)
1687
+ */
1688
+ count?: number | undefined;
1423
1689
  };
1424
- export type ListStarredParticipant = {
1690
+ export type ListInboxParticipant = {
1425
1691
  profileUrn: string;
1426
1692
  firstName: string;
1427
1693
  lastName: string;
@@ -1430,12 +1696,12 @@ export type ListStarredParticipant = {
1430
1696
  profilePicture: string | null;
1431
1697
  publicIdentifier: string | null;
1432
1698
  };
1433
- export type ListStarredLastMessage = {
1699
+ export type ListInboxLastMessage = {
1434
1700
  text: string | null;
1435
1701
  deliveredAt: number;
1436
1702
  senderProfileUrn: string;
1437
1703
  };
1438
- export type ListStarredConversation = {
1704
+ export type ListInboxConversation = {
1439
1705
  conversationUrn: string;
1440
1706
  conversationUrl: string;
1441
1707
  lastActivityAt: number;
@@ -1443,15 +1709,15 @@ export type ListStarredConversation = {
1443
1709
  read: boolean;
1444
1710
  unreadCount: number;
1445
1711
  groupChat: boolean;
1446
- participants: Array<ListStarredParticipant>;
1447
- lastMessage: ListStarredLastMessage | null;
1712
+ participants: Array<ListInboxParticipant>;
1713
+ lastMessage: ListInboxLastMessage | null;
1448
1714
  };
1449
1715
  /**
1450
- * Starred conversations
1716
+ * Inbox conversations
1451
1717
  */
1452
- export type ListStarredResponse = {
1718
+ export type ListInboxResponse = {
1453
1719
  success: true;
1454
- conversations: Array<ListStarredConversation>;
1720
+ conversations: Array<ListInboxConversation>;
1455
1721
  /**
1456
1722
  * Cursor for fetching next page
1457
1723
  */
@@ -1465,53 +1731,17 @@ export type ListStarredResponse = {
1465
1731
  */
1466
1732
  retryAfter: number;
1467
1733
  };
1468
- export type ArchiveRequest = {
1469
- /**
1470
- * Full conversation URN
1471
- */
1472
- conversationUrn: string;
1473
- };
1474
- /**
1475
- * Conversation archived
1476
- */
1477
- export type ArchiveResponse = {
1478
- success: true;
1479
- /**
1480
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1481
- */
1482
- creditsUsed: number;
1483
- /**
1484
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1485
- */
1486
- retryAfter: number;
1487
- };
1488
- export type UnarchiveRequest = {
1489
- /**
1490
- * Full conversation URN
1491
- */
1492
- conversationUrn: string;
1493
- };
1494
- /**
1495
- * Conversation unarchived
1496
- */
1497
- export type UnarchiveResponse = {
1498
- success: true;
1499
- /**
1500
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1501
- */
1502
- creditsUsed: number;
1734
+ export type SearchConversationsRequest = {
1503
1735
  /**
1504
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1736
+ * Search keywords
1505
1737
  */
1506
- retryAfter: number;
1507
- };
1508
- export type ListArchivedRequest = {
1738
+ keywords: string;
1509
1739
  /**
1510
1740
  * Pagination cursor from a previous response
1511
1741
  */
1512
1742
  nextCursor?: string | undefined;
1513
1743
  };
1514
- export type ListArchivedParticipant = {
1744
+ export type SearchConversationsParticipant = {
1515
1745
  profileUrn: string;
1516
1746
  firstName: string;
1517
1747
  lastName: string;
@@ -1520,12 +1750,12 @@ export type ListArchivedParticipant = {
1520
1750
  profilePicture: string | null;
1521
1751
  publicIdentifier: string | null;
1522
1752
  };
1523
- export type ListArchivedLastMessage = {
1753
+ export type SearchConversationsLastMessage = {
1524
1754
  text: string | null;
1525
1755
  deliveredAt: number;
1526
1756
  senderProfileUrn: string;
1527
1757
  };
1528
- export type ListArchivedConversation = {
1758
+ export type SearchConversationsConversation = {
1529
1759
  conversationUrn: string;
1530
1760
  conversationUrl: string;
1531
1761
  lastActivityAt: number;
@@ -1533,15 +1763,15 @@ export type ListArchivedConversation = {
1533
1763
  read: boolean;
1534
1764
  unreadCount: number;
1535
1765
  groupChat: boolean;
1536
- participants: Array<ListArchivedParticipant>;
1537
- lastMessage: ListArchivedLastMessage | null;
1766
+ participants: Array<SearchConversationsParticipant>;
1767
+ lastMessage: SearchConversationsLastMessage | null;
1538
1768
  };
1539
1769
  /**
1540
- * Archived conversations
1770
+ * Matching conversations
1541
1771
  */
1542
- export type ListArchivedResponse = {
1772
+ export type SearchConversationsResponse = {
1543
1773
  success: true;
1544
- conversations: Array<ListArchivedConversation>;
1774
+ conversations: Array<SearchConversationsConversation>;
1545
1775
  /**
1546
1776
  * Cursor for fetching next page
1547
1777
  */
@@ -1555,73 +1785,82 @@ export type ListArchivedResponse = {
1555
1785
  */
1556
1786
  retryAfter: number;
1557
1787
  };
1558
- export type ReactRequest = {
1559
- /**
1560
- * Full message URN (e.g. 'urn:li:msg_message:(urn:li:fsd_profile:ACoAAXXX,2-MTcw...)')
1561
- */
1562
- messageUrn: string;
1788
+ export type FindConversationRequest = {
1563
1789
  /**
1564
- * Emoji character to react with (e.g. '👍', '❤️', '😂')
1790
+ * Accepts full profile URLs, vanity names (e.g. marie-sandre), or profile URNs. Direct O(1) conversation lookup via LinkedIn's compose API — no search, no inbox scan. 0 credits.
1565
1791
  */
1566
- emoji: string;
1792
+ profile: string;
1567
1793
  /**
1568
- * Conversation URN (required for the old messaging API fallback)
1794
+ * If true, also return the conversation's recent messages (0 extra credits).
1569
1795
  */
1570
- conversationUrn: string;
1796
+ includeMessages?: boolean | undefined;
1571
1797
  };
1572
1798
  /**
1573
- * Reaction added
1799
+ * Lightweight conversation reference (O(1) lookup returns URN only, not full details).
1574
1800
  */
1575
- export type ReactResponse = {
1576
- success: true;
1577
- /**
1578
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1579
- */
1580
- creditsUsed: number;
1581
- /**
1582
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1583
- */
1584
- retryAfter: number;
1801
+ export type FindConversationConversation = {
1802
+ conversationUrn: string;
1585
1803
  };
1586
- export type UnreactRequest = {
1587
- /**
1588
- * Full message URN (e.g. 'urn:li:msg_message:(urn:li:fsd_profile:ACoAAXXX,2-MTcw...)')
1589
- */
1804
+ export type FindConversationSender = {
1805
+ firstName: string;
1806
+ lastName: string;
1807
+ profileUrl: string | null;
1808
+ headline: string | null;
1809
+ profilePicture: string | null;
1810
+ publicIdentifier: string | null;
1811
+ profileUrn: string | null;
1812
+ };
1813
+ export declare const FindConversationType: {
1814
+ readonly Audio: "audio";
1815
+ readonly SharedPost: "shared_post";
1816
+ readonly RepliedMessage: "replied_message";
1817
+ readonly Image: "image";
1818
+ readonly File: "file";
1819
+ readonly Unknown: "unknown";
1820
+ };
1821
+ export type FindConversationType = OpenEnum<typeof FindConversationType>;
1822
+ export type FindConversationAttachment = {
1823
+ type: FindConversationType;
1824
+ audioUrl?: string | undefined;
1825
+ audioDuration?: number | undefined;
1826
+ hostUrn?: string | undefined;
1827
+ repliedText?: string | undefined;
1828
+ repliedSenderName?: string | undefined;
1829
+ imageUrl?: string | undefined;
1830
+ fileName?: string | undefined;
1831
+ fileUrl?: string | undefined;
1832
+ };
1833
+ export type FindConversationMessage = {
1590
1834
  messageUrn: string;
1835
+ text: string | null;
1836
+ deliveredAt: number;
1837
+ senderProfileUrn: string;
1838
+ sender: FindConversationSender;
1839
+ attachments: Array<FindConversationAttachment>;
1591
1840
  /**
1592
- * Emoji character to react with (e.g. '👍', '❤️', '😂')
1593
- */
1594
- emoji: string;
1595
- /**
1596
- * Conversation URN (required for the old messaging API fallback)
1841
+ * True if the authenticated user sent this message.
1597
1842
  */
1598
- conversationUrn: string;
1843
+ isOutbound: boolean;
1599
1844
  };
1600
1845
  /**
1601
- * Reaction removed
1846
+ * Conversation found (or not)
1602
1847
  */
1603
- export type UnreactResponse = {
1848
+ export type FindConversationResponse = {
1604
1849
  success: true;
1850
+ found: boolean;
1605
1851
  /**
1606
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1852
+ * Lightweight conversation reference (O(1) lookup returns URN only, not full details).
1607
1853
  */
1608
- creditsUsed: number;
1854
+ conversation: FindConversationConversation | null;
1855
+ messages: Array<FindConversationMessage> | null;
1609
1856
  /**
1610
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1857
+ * deliveredAt timestamp (ms) of the oldest message pass as 'deliveredAt' to load older messages. Only present when includeMessages is true.
1611
1858
  */
1612
- retryAfter: number;
1613
- };
1614
- export type SendTypingIndicatorRequest = {
1859
+ prevCursor?: number | null | undefined;
1615
1860
  /**
1616
- * Full conversation URN
1861
+ * The authenticated user's profile URN. Useful for determining message direction.
1617
1862
  */
1618
- conversationUrn: string;
1619
- };
1620
- /**
1621
- * Typing indicator sent
1622
- */
1623
- export type SendTypingIndicatorResponse = {
1624
- success: true;
1863
+ userProfileUrn?: string | undefined;
1625
1864
  /**
1626
1865
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1627
1866
  */
@@ -1631,390 +1870,228 @@ export type SendTypingIndicatorResponse = {
1631
1870
  */
1632
1871
  retryAfter: number;
1633
1872
  };
1634
- /**
1635
- * Unread count
1636
- */
1637
- export type GetUnreadCountResponse = {
1638
- success: true;
1639
- /**
1640
- * Number of unread conversations/messages
1641
- */
1642
- unreadCount: number;
1873
+ export type GetMessagesRequest = {
1643
1874
  /**
1644
- * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1875
+ * Full conversation URN as returned by /chats/linkedin (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
1645
1876
  */
1646
- creditsUsed: number;
1877
+ conversationUrn: string;
1647
1878
  /**
1648
- * Seconds to wait before making another call of the same type. 0 means no wait needed.
1879
+ * Timestamp (ms) of the oldest message from previous page pass this to load older messages
1649
1880
  */
1650
- retryAfter: number;
1881
+ deliveredAt?: number | undefined;
1651
1882
  };
1652
- export type FilterRequest = {
1653
- /**
1654
- * Unique identifier for the automation campaign (e.g., 'lead-magnet-post-12345', 'outreach-webinar-feb')
1655
- */
1656
- campaignSlug: string;
1883
+ export type GetMessagesSender = {
1884
+ firstName: string;
1885
+ lastName: string;
1886
+ profileUrl: string | null;
1887
+ headline: string | null;
1888
+ profilePicture: string | null;
1889
+ publicIdentifier: string | null;
1890
+ profileUrn: string | null;
1891
+ };
1892
+ export declare const GetMessagesType: {
1893
+ readonly Audio: "audio";
1894
+ readonly SharedPost: "shared_post";
1895
+ readonly RepliedMessage: "replied_message";
1896
+ readonly Image: "image";
1897
+ readonly File: "file";
1898
+ readonly Unknown: "unknown";
1899
+ };
1900
+ export type GetMessagesType = OpenEnum<typeof GetMessagesType>;
1901
+ export type GetMessagesAttachment = {
1902
+ type: GetMessagesType;
1903
+ audioUrl?: string | undefined;
1904
+ audioDuration?: number | undefined;
1905
+ hostUrn?: string | undefined;
1906
+ repliedText?: string | undefined;
1907
+ repliedSenderName?: string | undefined;
1908
+ imageUrl?: string | undefined;
1909
+ fileName?: string | undefined;
1910
+ fileUrl?: string | undefined;
1911
+ };
1912
+ export type GetMessagesMessage = {
1913
+ messageUrn: string;
1914
+ text: string | null;
1915
+ deliveredAt: number;
1916
+ senderProfileUrn: string;
1917
+ sender: GetMessagesSender;
1918
+ attachments: Array<GetMessagesAttachment>;
1657
1919
  /**
1658
- * Comma-separated list of action slugs to check (e.g., 'send-mp-john-doe,like-comment-abc123')
1920
+ * True if the authenticated user sent this message.
1659
1921
  */
1660
- actionSlugs: string;
1661
- };
1662
- export type CheckedSlug = {
1663
- actionSlug: string;
1664
- completed: boolean;
1922
+ isOutbound: boolean;
1665
1923
  };
1666
1924
  /**
1667
- * Filter status with checked slugs
1925
+ * Conversation messages
1668
1926
  */
1669
- export type FilterResponse = {
1670
- /**
1671
- * True if all actionSlugs have been completed for this campaign, meaning the entire flow can be skipped
1672
- */
1673
- filtered: boolean;
1927
+ export type GetMessagesResponse = {
1928
+ success: true;
1929
+ messages: Array<GetMessagesMessage>;
1674
1930
  /**
1675
- * Status of each action slugcompleted means the action was already executed for this campaign
1931
+ * deliveredAt timestamp (ms) of the oldest messagepass as 'deliveredAt' to load older messages. Null when no more messages.
1676
1932
  */
1677
- checkedSlugs: Array<CheckedSlug>;
1933
+ prevCursor: number | null;
1678
1934
  /**
1679
- * Credits consumed by this call (always 0 for campaign queries).
1935
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1680
1936
  */
1681
1937
  creditsUsed: number;
1682
1938
  /**
1683
- * Seconds to wait before next call of the same type (always 0 for campaign queries).
1939
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1684
1940
  */
1685
1941
  retryAfter: number;
1686
1942
  };
1687
- export type GetStatusRequestBody = {
1688
- /**
1689
- * LinkedIn profile URLs or URNs to check status for within this campaign.
1690
- */
1691
- profiles: Array<string>;
1692
- };
1693
- export type GetStatusRequest = {
1943
+ export type MarkSeenRequest = {
1694
1944
  /**
1695
- * Campaign identifier
1945
+ * Full conversation URN (e.g. 'urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAXXX,2-YWUx...)')
1696
1946
  */
1697
- campaignSlug: string;
1698
- body: GetStatusRequestBody;
1699
- };
1700
- export type GetStatusProfile = {
1701
- profile: string;
1702
- message: boolean;
1703
- reply: boolean;
1704
- like: boolean;
1705
- visit: boolean;
1706
- connect: boolean;
1947
+ conversationUrn: string;
1707
1948
  };
1708
1949
  /**
1709
- * Per-profile action completion status
1950
+ * Conversation marked as read
1710
1951
  */
1711
- export type GetStatusResponse = {
1952
+ export type MarkSeenResponse = {
1712
1953
  success: true;
1713
- profiles: Array<GetStatusProfile>;
1714
1954
  /**
1715
- * Credits consumed by this call (always 0 for campaign queries).
1955
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1716
1956
  */
1717
1957
  creditsUsed: number;
1718
1958
  /**
1719
- * Seconds to wait before next call of the same type (always 0 for campaign queries).
1720
- */
1721
- retryAfter: number;
1722
- };
1723
- export declare const SyncAction: {
1724
- readonly Message: "message";
1725
- readonly Reply: "reply";
1726
- readonly Like: "like";
1727
- readonly Visit: "visit";
1728
- readonly Connect: "connect";
1729
- };
1730
- export type SyncAction = ClosedEnum<typeof SyncAction>;
1731
- export type SyncProfile = {
1732
- /**
1733
- * LinkedIn profile URL or URN
1734
- */
1735
- profile: string;
1736
- /**
1737
- * Action types to mark as completed
1738
- */
1739
- actions: Array<SyncAction>;
1740
- };
1741
- export type SyncRequestBody = {
1742
- /**
1743
- * Profiles and actions to mark as completed without performing them on LinkedIn.
1744
- */
1745
- profiles: Array<SyncProfile>;
1746
- };
1747
- export type SyncRequest = {
1748
- /**
1749
- * Campaign identifier
1750
- */
1751
- campaignSlug: string;
1752
- body: SyncRequestBody;
1753
- };
1754
- export type Synced = {
1755
- profile: string;
1756
- actions: {
1757
- [k: string]: boolean;
1758
- };
1959
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1960
+ */
1961
+ retryAfter: number;
1759
1962
  };
1963
+ export type MarkAllReadRequest = {};
1760
1964
  /**
1761
- * Actions marked as completed
1965
+ * All conversations marked as read
1762
1966
  */
1763
- export type SyncResponse = {
1967
+ export type MarkAllReadResponse = {
1764
1968
  success: true;
1765
- synced: Array<Synced>;
1766
1969
  /**
1767
- * Credits consumed by this call (always 0 for campaign queries).
1970
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1768
1971
  */
1769
1972
  creditsUsed: number;
1770
1973
  /**
1771
- * Seconds to wait before next call of the same type (always 0 for campaign queries).
1974
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1772
1975
  */
1773
1976
  retryAfter: number;
1774
1977
  };
1775
- export type GetCampaignStatsRequest = {
1978
+ export type StarRequest = {
1776
1979
  /**
1777
- * Campaign identifier
1980
+ * Full conversation URN
1778
1981
  */
1779
- campaignSlug: string;
1982
+ conversationUrn: string;
1780
1983
  };
1781
1984
  /**
1782
- * Aggregate campaign statistics
1985
+ * Conversation starred
1783
1986
  */
1784
- export type GetCampaignStatsResponse = {
1987
+ export type StarResponse = {
1785
1988
  success: true;
1786
1989
  /**
1787
- * Per-action-type counts (e.g. message: 45, reply: 120)
1788
- */
1789
- stats: {
1790
- [k: string]: number;
1791
- };
1792
- /**
1793
- * Unique profiles processed in this campaign
1794
- */
1795
- totalProfiles: number;
1796
- /**
1797
- * Total credits consumed by this campaign (sum of action counts). Also serves as the per-call creditsUsed (always 0 for this endpoint).
1990
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1798
1991
  */
1799
1992
  creditsUsed: number;
1800
1993
  /**
1801
- * Seconds to wait before next call of the same type (always 0 for campaign queries).
1994
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1802
1995
  */
1803
1996
  retryAfter: number;
1804
1997
  };
1805
- /**
1806
- * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
1807
- */
1808
- export declare const UpsertSource: {
1809
- readonly Likes: "likes";
1810
- readonly Comments: "comments";
1811
- readonly Reposts: "reposts";
1812
- readonly Posts: "posts";
1813
- readonly CompanyFollowers: "company_followers";
1814
- readonly SearchResults: "search_results";
1815
- readonly ManualImport: "manual_import";
1816
- readonly EventAttendees: "event_attendees";
1817
- readonly GroupMembers: "group_members";
1818
- readonly EngagementScraping: "engagement_scraping";
1819
- readonly ContentSearch: "content_search";
1820
- readonly FollowersMining: "followers_mining";
1821
- readonly PeopleSearch: "people_search";
1822
- readonly JobSearch: "job_search";
1823
- readonly CompanySearch: "company_search";
1824
- readonly NetworkExpansion: "network_expansion";
1825
- readonly BulkVisit: "bulk_visit";
1826
- };
1827
- /**
1828
- * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
1829
- */
1830
- export type UpsertSource = ClosedEnum<typeof UpsertSource>;
1831
- /**
1832
- * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
1833
- */
1834
- export declare const UpsertLifecycleStage: {
1835
- readonly Contact: "contact";
1836
- readonly Lead: "lead";
1837
- readonly Qualified: "qualified";
1838
- readonly Approved: "approved";
1839
- readonly Rejected: "rejected";
1998
+ export type UnstarRequest = {
1999
+ /**
2000
+ * Full conversation URN
2001
+ */
2002
+ conversationUrn: string;
1840
2003
  };
1841
2004
  /**
1842
- * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
2005
+ * Conversation unstarred
1843
2006
  */
1844
- export type UpsertLifecycleStage = ClosedEnum<typeof UpsertLifecycleStage>;
1845
- export type UpsertContactRequest = {
1846
- /**
1847
- * LinkedIn profile URL, URN, or bare vanity name
1848
- */
1849
- linkedinUrl: string;
1850
- /**
1851
- * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...). Improves dedup when provided alongside a vanity URL.
1852
- */
1853
- profileUrn?: string | null | undefined;
1854
- /**
1855
- * LinkedIn vanity slug (e.g. joshuaau). Improves dedup when provided alongside a URN.
1856
- */
1857
- publicIdentifier?: string | null | undefined;
1858
- /**
1859
- * Profile name
1860
- */
1861
- name: string;
1862
- /**
1863
- * How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
1864
- */
1865
- source?: UpsertSource | undefined;
1866
- /**
1867
- * Which lead-gen angle found this (e.g., 'vp-sales-france')
1868
- */
1869
- sourceAngle?: string | undefined;
1870
- /**
1871
- * Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
1872
- */
1873
- lifecycleStage?: UpsertLifecycleStage | undefined;
2007
+ export type UnstarResponse = {
2008
+ success: true;
1874
2009
  /**
1875
- * Contact quality score (0-100)
2010
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1876
2011
  */
1877
- hotScore?: number | undefined;
2012
+ creditsUsed: number;
1878
2013
  /**
1879
- * Agent reasoning for qualification decision
2014
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1880
2015
  */
1881
- qualificationNotes?: string | undefined;
1882
- notes?: string | undefined;
2016
+ retryAfter: number;
1883
2017
  };
1884
- export type UpsertRequest = {
2018
+ export type ListStarredRequest = {
1885
2019
  /**
1886
- * Contacts to add (single or bulk)
2020
+ * Pagination cursor from a previous response
1887
2021
  */
1888
- contacts: Array<UpsertContactRequest>;
1889
- };
1890
- export type UpsertResults = {
1891
- created: number;
1892
- updated: number;
1893
- skipped: number;
1894
- errors: Array<string>;
2022
+ nextCursor?: string | undefined;
1895
2023
  };
1896
- export type UpsertContactResponse = {
1897
- id: string;
1898
- linkedinUrl: string;
1899
- /**
1900
- * LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
1901
- */
1902
- profileUrn: string | null;
1903
- /**
1904
- * LinkedIn vanity slug (e.g. joshuaau)
1905
- */
2024
+ export type ListStarredParticipant = {
2025
+ profileUrn: string;
2026
+ firstName: string;
2027
+ lastName: string;
2028
+ profileUrl: string | null;
2029
+ headline: string | null;
2030
+ profilePicture: string | null;
1906
2031
  publicIdentifier: string | null;
1907
- name: string;
1908
- lifecycleStage: string;
1909
- hotScore: number;
1910
- qualificationNotes: string | null;
1911
- notes: string | null;
1912
- stageChangedAt: string | null;
1913
- profileData: any | null;
1914
- profileUpdatedAt: string | null;
1915
- conversationData: any | null;
1916
- conversationUpdatedAt: string | null;
1917
- outreachStatus: string;
1918
- lastContactedAt: string | null;
1919
- lastRepliedAt: string | null;
1920
- nextFollowUpAt: string | null;
1921
- doNotContact: boolean;
1922
- tags: Array<string>;
1923
- createdAt: string;
1924
- updatedAt: string;
2032
+ };
2033
+ export type ListStarredLastMessage = {
2034
+ text: string | null;
2035
+ deliveredAt: number;
2036
+ senderProfileUrn: string;
2037
+ };
2038
+ export type ListStarredConversation = {
2039
+ conversationUrn: string;
2040
+ conversationUrl: string;
2041
+ lastActivityAt: number;
2042
+ createdAt: number;
2043
+ read: boolean;
2044
+ unreadCount: number;
2045
+ groupChat: boolean;
2046
+ participants: Array<ListStarredParticipant>;
2047
+ lastMessage: ListStarredLastMessage | null;
1925
2048
  };
1926
2049
  /**
1927
- * Contacts created or updated
2050
+ * Starred conversations
1928
2051
  */
1929
- export type UpsertResponse = {
2052
+ export type ListStarredResponse = {
1930
2053
  success: true;
1931
- results: UpsertResults;
2054
+ conversations: Array<ListStarredConversation>;
1932
2055
  /**
1933
- * Full contact objects with IDs for immediate use
2056
+ * Cursor for fetching next page
1934
2057
  */
1935
- contacts: Array<UpsertContactResponse>;
2058
+ nextCursor: string | null;
1936
2059
  /**
1937
- * Credits consumed by this call (always 0 for contacts queries).
2060
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1938
2061
  */
1939
2062
  creditsUsed: number;
1940
2063
  /**
1941
- * Seconds to wait before next call of the same type (always 0 for contacts queries).
2064
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
1942
2065
  */
1943
2066
  retryAfter: number;
1944
2067
  };
1945
- export declare const SearchContactsLifecycleStage: {
1946
- readonly Contact: "contact";
1947
- readonly Lead: "lead";
1948
- readonly Qualified: "qualified";
1949
- readonly Approved: "approved";
1950
- readonly Rejected: "rejected";
1951
- };
1952
- export type SearchContactsLifecycleStage = ClosedEnum<typeof SearchContactsLifecycleStage>;
1953
- export declare const SearchContactsOutreachStatus: {
1954
- readonly None: "none";
1955
- readonly ConnectionSent: "connection_sent";
1956
- readonly Connected: "connected";
1957
- readonly DmSent: "dm_sent";
1958
- readonly FollowedUp: "followed_up";
1959
- readonly Replied: "replied";
1960
- readonly InConversation: "in_conversation";
1961
- readonly MeetingBooked: "meeting_booked";
1962
- readonly Converted: "converted";
1963
- readonly NotInterested: "not_interested";
1964
- };
1965
- export type SearchContactsOutreachStatus = ClosedEnum<typeof SearchContactsOutreachStatus>;
1966
- export declare const DoNotContact: {
1967
- readonly True: "true";
1968
- readonly False: "false";
1969
- };
1970
- export type DoNotContact = ClosedEnum<typeof DoNotContact>;
1971
- export declare const HasProfileData: {
1972
- readonly True: "true";
1973
- readonly False: "false";
1974
- };
1975
- export type HasProfileData = ClosedEnum<typeof HasProfileData>;
1976
- export type SearchContactsRequest = {
1977
- /**
1978
- * Filter by LinkedIn URL (exact match)
1979
- */
1980
- linkedinUrl?: string | undefined;
1981
- /**
1982
- * Filter by name (partial match)
1983
- */
1984
- name?: string | undefined;
1985
- lifecycleStage?: SearchContactsLifecycleStage | undefined;
1986
- /**
1987
- * Sort field (e.g. 'hotScore', 'createdAt', 'nextFollowUpAt')
1988
- */
1989
- sortBy?: string | undefined;
1990
- minHotScore?: number | undefined;
1991
- outreachStatus?: SearchContactsOutreachStatus | undefined;
2068
+ export type ArchiveRequest = {
1992
2069
  /**
1993
- * Filter by tag
2070
+ * Full conversation URN
1994
2071
  */
1995
- tag?: string | undefined;
2072
+ conversationUrn: string;
2073
+ };
2074
+ /**
2075
+ * Conversation archived
2076
+ */
2077
+ export type ArchiveResponse = {
2078
+ success: true;
1996
2079
  /**
1997
- * ISO date: contacts with nextFollowUpAt before this date
2080
+ * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
1998
2081
  */
1999
- followUpBefore?: string | undefined;
2000
- doNotContact?: DoNotContact | undefined;
2001
- hasProfileData?: HasProfileData | undefined;
2002
- campaignId?: string | undefined;
2003
- limit?: number | undefined;
2004
- offset?: number | undefined;
2005
- };
2006
- export type SearchContactsCampaign = {
2007
- campaignId: string;
2008
- campaignName: string;
2082
+ creditsUsed: number;
2009
2083
  /**
2010
- * Campaign status (e.g. 'active', 'paused', 'completed').
2084
+ * Seconds to wait before making another call of the same type. 0 means no wait needed.
2011
2085
  */
2012
- campaignStatus: string;
2013
- source: string;
2014
- sourceAngle: string | null;
2015
- addedAt: string;
2086
+ retryAfter: number;
2016
2087
  };
2017
2088
  /** @internal */
2089
+ export declare const UpdateAccountAccount$inboundSchema: z.ZodMiniType<UpdateAccountAccount, unknown>;
2090
+ export declare function updateAccountAccountFromJSON(jsonString: string): SafeParseResult<UpdateAccountAccount, SDKValidationError>;
2091
+ /** @internal */
2092
+ export declare const UpdateAccountResponse$inboundSchema: z.ZodMiniType<UpdateAccountResponse, unknown>;
2093
+ export declare function updateAccountResponseFromJSON(jsonString: string): SafeParseResult<UpdateAccountResponse, SDKValidationError>;
2094
+ /** @internal */
2018
2095
  export declare const RefreshPositionStartDate$inboundSchema: z.ZodMiniType<RefreshPositionStartDate, unknown>;
2019
2096
  export declare function refreshPositionStartDateFromJSON(jsonString: string): SafeParseResult<RefreshPositionStartDate, SDKValidationError>;
2020
2097
  /** @internal */
@@ -2121,14 +2198,59 @@ export declare function scrapingWeeklyFromJSON(jsonString: string): SafeParseRes
2121
2198
  export declare const Scraping$inboundSchema: z.ZodMiniType<Scraping, unknown>;
2122
2199
  export declare function scrapingFromJSON(jsonString: string): SafeParseResult<Scraping, SDKValidationError>;
2123
2200
  /** @internal */
2201
+ export declare const PostDaily$inboundSchema: z.ZodMiniType<PostDaily, unknown>;
2202
+ export declare function postDailyFromJSON(jsonString: string): SafeParseResult<PostDaily, SDKValidationError>;
2203
+ /** @internal */
2204
+ export declare const PostWeekly$inboundSchema: z.ZodMiniType<PostWeekly, unknown>;
2205
+ export declare function postWeeklyFromJSON(jsonString: string): SafeParseResult<PostWeekly, SDKValidationError>;
2206
+ /** @internal */
2207
+ export declare const GetLimitsPost$inboundSchema: z.ZodMiniType<GetLimitsPost, unknown>;
2208
+ export declare function getLimitsPostFromJSON(jsonString: string): SafeParseResult<GetLimitsPost, SDKValidationError>;
2209
+ /** @internal */
2210
+ export declare const AcceptInvitationDaily2$inboundSchema: z.ZodMiniType<AcceptInvitationDaily2, unknown>;
2211
+ export declare function acceptInvitationDaily2FromJSON(jsonString: string): SafeParseResult<AcceptInvitationDaily2, SDKValidationError>;
2212
+ /** @internal */
2213
+ export declare const AcceptInvitationWeekly2$inboundSchema: z.ZodMiniType<AcceptInvitationWeekly2, unknown>;
2214
+ export declare function acceptInvitationWeekly2FromJSON(jsonString: string): SafeParseResult<AcceptInvitationWeekly2, SDKValidationError>;
2215
+ /** @internal */
2216
+ export declare const AcceptInvitation$inboundSchema: z.ZodMiniType<AcceptInvitation, unknown>;
2217
+ export declare function acceptInvitationFromJSON(jsonString: string): SafeParseResult<AcceptInvitation, SDKValidationError>;
2218
+ /** @internal */
2219
+ export declare const CommentPostDaily$inboundSchema: z.ZodMiniType<CommentPostDaily, unknown>;
2220
+ export declare function commentPostDailyFromJSON(jsonString: string): SafeParseResult<CommentPostDaily, SDKValidationError>;
2221
+ /** @internal */
2222
+ export declare const CommentPostWeekly$inboundSchema: z.ZodMiniType<CommentPostWeekly, unknown>;
2223
+ export declare function commentPostWeeklyFromJSON(jsonString: string): SafeParseResult<CommentPostWeekly, SDKValidationError>;
2224
+ /** @internal */
2225
+ export declare const CommentPost$inboundSchema: z.ZodMiniType<CommentPost, unknown>;
2226
+ export declare function commentPostFromJSON(jsonString: string): SafeParseResult<CommentPost, SDKValidationError>;
2227
+ /** @internal */
2228
+ export declare const ReplyCommentDaily$inboundSchema: z.ZodMiniType<ReplyCommentDaily, unknown>;
2229
+ export declare function replyCommentDailyFromJSON(jsonString: string): SafeParseResult<ReplyCommentDaily, SDKValidationError>;
2230
+ /** @internal */
2231
+ export declare const ReplyCommentWeekly$inboundSchema: z.ZodMiniType<ReplyCommentWeekly, unknown>;
2232
+ export declare function replyCommentWeeklyFromJSON(jsonString: string): SafeParseResult<ReplyCommentWeekly, SDKValidationError>;
2233
+ /** @internal */
2234
+ export declare const ReplyComment$inboundSchema: z.ZodMiniType<ReplyComment, unknown>;
2235
+ export declare function replyCommentFromJSON(jsonString: string): SafeParseResult<ReplyComment, SDKValidationError>;
2236
+ /** @internal */
2237
+ export declare const ChatSearchDaily$inboundSchema: z.ZodMiniType<ChatSearchDaily, unknown>;
2238
+ export declare function chatSearchDailyFromJSON(jsonString: string): SafeParseResult<ChatSearchDaily, SDKValidationError>;
2239
+ /** @internal */
2240
+ export declare const ChatSearchWeekly$inboundSchema: z.ZodMiniType<ChatSearchWeekly, unknown>;
2241
+ export declare function chatSearchWeeklyFromJSON(jsonString: string): SafeParseResult<ChatSearchWeekly, SDKValidationError>;
2242
+ /** @internal */
2243
+ export declare const ChatSearch$inboundSchema: z.ZodMiniType<ChatSearch, unknown>;
2244
+ export declare function chatSearchFromJSON(jsonString: string): SafeParseResult<ChatSearch, SDKValidationError>;
2245
+ /** @internal */
2124
2246
  export declare const Limits$inboundSchema: z.ZodMiniType<Limits, unknown>;
2125
2247
  export declare function limitsFromJSON(jsonString: string): SafeParseResult<Limits, SDKValidationError>;
2126
2248
  /** @internal */
2127
2249
  export declare const GetLimitsResponse$inboundSchema: z.ZodMiniType<GetLimitsResponse, unknown>;
2128
2250
  export declare function getLimitsResponseFromJSON(jsonString: string): SafeParseResult<GetLimitsResponse, SDKValidationError>;
2129
2251
  /** @internal */
2130
- export declare const Credits$inboundSchema: z.ZodMiniType<Credits, unknown>;
2131
- export declare function creditsFromJSON(jsonString: string): SafeParseResult<Credits, SDKValidationError>;
2252
+ export declare const GetCreditsCredits$inboundSchema: z.ZodMiniType<GetCreditsCredits, unknown>;
2253
+ export declare function getCreditsCreditsFromJSON(jsonString: string): SafeParseResult<GetCreditsCredits, SDKValidationError>;
2132
2254
  /** @internal */
2133
2255
  export declare const GetCreditsResponse$inboundSchema: z.ZodMiniType<GetCreditsResponse, unknown>;
2134
2256
  export declare function getCreditsResponseFromJSON(jsonString: string): SafeParseResult<GetCreditsResponse, SDKValidationError>;
@@ -2207,12 +2329,112 @@ export type ListConnectionsRequest$Outbound = {
2207
2329
  export declare const ListConnectionsRequest$outboundSchema: z.ZodMiniType<ListConnectionsRequest$Outbound, ListConnectionsRequest>;
2208
2330
  export declare function listConnectionsRequestToJSON(listConnectionsRequest: ListConnectionsRequest): string;
2209
2331
  /** @internal */
2332
+ export declare const ConnectedAt$inboundSchema: z.ZodMiniType<ConnectedAt, unknown>;
2333
+ export declare function connectedAtFromJSON(jsonString: string): SafeParseResult<ConnectedAt, SDKValidationError>;
2334
+ /** @internal */
2210
2335
  export declare const Connection$inboundSchema: z.ZodMiniType<Connection, unknown>;
2211
2336
  export declare function connectionFromJSON(jsonString: string): SafeParseResult<Connection, SDKValidationError>;
2212
2337
  /** @internal */
2213
2338
  export declare const ListConnectionsResponse$inboundSchema: z.ZodMiniType<ListConnectionsResponse, unknown>;
2214
2339
  export declare function listConnectionsResponseFromJSON(jsonString: string): SafeParseResult<ListConnectionsResponse, SDKValidationError>;
2215
2340
  /** @internal */
2341
+ export declare const QueryParamTabType$outboundSchema: z.ZodMiniEnum<typeof QueryParamTabType>;
2342
+ /** @internal */
2343
+ export type GetMyActivityRequest$Outbound = {
2344
+ tabType: string;
2345
+ companyId?: string | undefined;
2346
+ count: number;
2347
+ start: number;
2348
+ paginationToken?: string | undefined;
2349
+ };
2350
+ /** @internal */
2351
+ export declare const GetMyActivityRequest$outboundSchema: z.ZodMiniType<GetMyActivityRequest$Outbound, GetMyActivityRequest>;
2352
+ export declare function getMyActivityRequestToJSON(getMyActivityRequest: GetMyActivityRequest): string;
2353
+ /** @internal */
2354
+ export declare const TabTypeResponse$inboundSchema: z.ZodMiniType<TabTypeResponse, unknown>;
2355
+ /** @internal */
2356
+ export declare const GetMyActivityResponse$inboundSchema: z.ZodMiniType<GetMyActivityResponse, unknown>;
2357
+ export declare function getMyActivityResponseFromJSON(jsonString: string): SafeParseResult<GetMyActivityResponse, SDKValidationError>;
2358
+ /** @internal */
2359
+ export declare const User$inboundSchema: z.ZodMiniType<User, unknown>;
2360
+ export declare function userFromJSON(jsonString: string): SafeParseResult<User, SDKValidationError>;
2361
+ /** @internal */
2362
+ export declare const GetSettingsLocation$inboundSchema: z.ZodMiniType<GetSettingsLocation, unknown>;
2363
+ export declare function getSettingsLocationFromJSON(jsonString: string): SafeParseResult<GetSettingsLocation, SDKValidationError>;
2364
+ /** @internal */
2365
+ export declare const Proxy$inboundSchema: z.ZodMiniType<Proxy, unknown>;
2366
+ export declare function proxyFromJSON(jsonString: string): SafeParseResult<Proxy, SDKValidationError>;
2367
+ /** @internal */
2368
+ export declare const AnthropicKey$inboundSchema: z.ZodMiniType<AnthropicKey, unknown>;
2369
+ export declare function anthropicKeyFromJSON(jsonString: string): SafeParseResult<AnthropicKey, SDKValidationError>;
2370
+ /** @internal */
2371
+ export declare const Subscription$inboundSchema: z.ZodMiniType<Subscription, unknown>;
2372
+ export declare function subscriptionFromJSON(jsonString: string): SafeParseResult<Subscription, SDKValidationError>;
2373
+ /** @internal */
2374
+ export declare const GetSettingsCredits$inboundSchema: z.ZodMiniType<GetSettingsCredits, unknown>;
2375
+ export declare function getSettingsCreditsFromJSON(jsonString: string): SafeParseResult<GetSettingsCredits, SDKValidationError>;
2376
+ /** @internal */
2377
+ export declare const LinkedinAccountProxy$inboundSchema: z.ZodMiniType<LinkedinAccountProxy, unknown>;
2378
+ export declare function linkedinAccountProxyFromJSON(jsonString: string): SafeParseResult<LinkedinAccountProxy, SDKValidationError>;
2379
+ /** @internal */
2380
+ export declare const ApiKey$inboundSchema: z.ZodMiniType<ApiKey, unknown>;
2381
+ export declare function apiKeyFromJSON(jsonString: string): SafeParseResult<ApiKey, SDKValidationError>;
2382
+ /** @internal */
2383
+ export declare const LinkedinAccount$inboundSchema: z.ZodMiniType<LinkedinAccount, unknown>;
2384
+ export declare function linkedinAccountFromJSON(jsonString: string): SafeParseResult<LinkedinAccount, SDKValidationError>;
2385
+ /** @internal */
2386
+ export declare const PendingInvite$inboundSchema: z.ZodMiniType<PendingInvite, unknown>;
2387
+ export declare function pendingInviteFromJSON(jsonString: string): SafeParseResult<PendingInvite, SDKValidationError>;
2388
+ /** @internal */
2389
+ export declare const GetSettingsResponse$inboundSchema: z.ZodMiniType<GetSettingsResponse, unknown>;
2390
+ export declare function getSettingsResponseFromJSON(jsonString: string): SafeParseResult<GetSettingsResponse, SDKValidationError>;
2391
+ /** @internal */
2392
+ export type PatchSettingsRequest$Outbound = {
2393
+ country?: string | undefined;
2394
+ city?: string | undefined;
2395
+ phone?: string | null | undefined;
2396
+ anthropicKey?: string | null | undefined;
2397
+ };
2398
+ /** @internal */
2399
+ export declare const PatchSettingsRequest$outboundSchema: z.ZodMiniType<PatchSettingsRequest$Outbound, PatchSettingsRequest>;
2400
+ export declare function patchSettingsRequestToJSON(patchSettingsRequest: PatchSettingsRequest): string;
2401
+ /** @internal */
2402
+ export declare const PatchSettingsResponse$inboundSchema: z.ZodMiniType<PatchSettingsResponse, unknown>;
2403
+ export declare function patchSettingsResponseFromJSON(jsonString: string): SafeParseResult<PatchSettingsResponse, SDKValidationError>;
2404
+ /** @internal */
2405
+ export declare const RevalidateLinkedinResponse$inboundSchema: z.ZodMiniType<RevalidateLinkedinResponse, unknown>;
2406
+ export declare function revalidateLinkedinResponseFromJSON(jsonString: string): SafeParseResult<RevalidateLinkedinResponse, SDKValidationError>;
2407
+ /** @internal */
2408
+ export type GetApiTokenRequest$Outbound = {
2409
+ accountId?: string | undefined;
2410
+ };
2411
+ /** @internal */
2412
+ export declare const GetApiTokenRequest$outboundSchema: z.ZodMiniType<GetApiTokenRequest$Outbound, GetApiTokenRequest>;
2413
+ export declare function getApiTokenRequestToJSON(getApiTokenRequest: GetApiTokenRequest): string;
2414
+ /** @internal */
2415
+ export declare const GetApiTokenResponse$inboundSchema: z.ZodMiniType<GetApiTokenResponse, unknown>;
2416
+ export declare function getApiTokenResponseFromJSON(jsonString: string): SafeParseResult<GetApiTokenResponse, SDKValidationError>;
2417
+ /** @internal */
2418
+ export type CreateApiTokenRequest$Outbound = {
2419
+ accountId?: string | undefined;
2420
+ };
2421
+ /** @internal */
2422
+ export declare const CreateApiTokenRequest$outboundSchema: z.ZodMiniType<CreateApiTokenRequest$Outbound, CreateApiTokenRequest>;
2423
+ export declare function createApiTokenRequestToJSON(createApiTokenRequest: CreateApiTokenRequest): string;
2424
+ /** @internal */
2425
+ export declare const CreateApiTokenResponse$inboundSchema: z.ZodMiniType<CreateApiTokenResponse, unknown>;
2426
+ export declare function createApiTokenResponseFromJSON(jsonString: string): SafeParseResult<CreateApiTokenResponse, SDKValidationError>;
2427
+ /** @internal */
2428
+ export type DeleteApiTokenRequest$Outbound = {
2429
+ accountId?: string | undefined;
2430
+ };
2431
+ /** @internal */
2432
+ export declare const DeleteApiTokenRequest$outboundSchema: z.ZodMiniType<DeleteApiTokenRequest$Outbound, DeleteApiTokenRequest>;
2433
+ export declare function deleteApiTokenRequestToJSON(deleteApiTokenRequest: DeleteApiTokenRequest): string;
2434
+ /** @internal */
2435
+ export declare const DeleteApiTokenResponse$inboundSchema: z.ZodMiniType<DeleteApiTokenResponse, unknown>;
2436
+ export declare function deleteApiTokenResponseFromJSON(jsonString: string): SafeParseResult<DeleteApiTokenResponse, SDKValidationError>;
2437
+ /** @internal */
2216
2438
  export declare const Page$inboundSchema: z.ZodMiniType<Page, unknown>;
2217
2439
  export declare function pageFromJSON(jsonString: string): SafeParseResult<Page, SDKValidationError>;
2218
2440
  /** @internal */
@@ -2268,6 +2490,7 @@ export declare function getAnalyticsResponseFromJSON(jsonString: string): SafePa
2268
2490
  /** @internal */
2269
2491
  export type ListInboxRequest$Outbound = {
2270
2492
  nextCursor?: string | undefined;
2493
+ count?: number | undefined;
2271
2494
  };
2272
2495
  /** @internal */
2273
2496
  export declare const ListInboxRequest$outboundSchema: z.ZodMiniType<ListInboxRequest$Outbound, ListInboxRequest>;
@@ -2418,212 +2641,4 @@ export declare function archiveRequestToJSON(archiveRequest: ArchiveRequest): st
2418
2641
  /** @internal */
2419
2642
  export declare const ArchiveResponse$inboundSchema: z.ZodMiniType<ArchiveResponse, unknown>;
2420
2643
  export declare function archiveResponseFromJSON(jsonString: string): SafeParseResult<ArchiveResponse, SDKValidationError>;
2421
- /** @internal */
2422
- export type UnarchiveRequest$Outbound = {
2423
- conversationUrn: string;
2424
- };
2425
- /** @internal */
2426
- export declare const UnarchiveRequest$outboundSchema: z.ZodMiniType<UnarchiveRequest$Outbound, UnarchiveRequest>;
2427
- export declare function unarchiveRequestToJSON(unarchiveRequest: UnarchiveRequest): string;
2428
- /** @internal */
2429
- export declare const UnarchiveResponse$inboundSchema: z.ZodMiniType<UnarchiveResponse, unknown>;
2430
- export declare function unarchiveResponseFromJSON(jsonString: string): SafeParseResult<UnarchiveResponse, SDKValidationError>;
2431
- /** @internal */
2432
- export type ListArchivedRequest$Outbound = {
2433
- nextCursor?: string | undefined;
2434
- };
2435
- /** @internal */
2436
- export declare const ListArchivedRequest$outboundSchema: z.ZodMiniType<ListArchivedRequest$Outbound, ListArchivedRequest>;
2437
- export declare function listArchivedRequestToJSON(listArchivedRequest: ListArchivedRequest): string;
2438
- /** @internal */
2439
- export declare const ListArchivedParticipant$inboundSchema: z.ZodMiniType<ListArchivedParticipant, unknown>;
2440
- export declare function listArchivedParticipantFromJSON(jsonString: string): SafeParseResult<ListArchivedParticipant, SDKValidationError>;
2441
- /** @internal */
2442
- export declare const ListArchivedLastMessage$inboundSchema: z.ZodMiniType<ListArchivedLastMessage, unknown>;
2443
- export declare function listArchivedLastMessageFromJSON(jsonString: string): SafeParseResult<ListArchivedLastMessage, SDKValidationError>;
2444
- /** @internal */
2445
- export declare const ListArchivedConversation$inboundSchema: z.ZodMiniType<ListArchivedConversation, unknown>;
2446
- export declare function listArchivedConversationFromJSON(jsonString: string): SafeParseResult<ListArchivedConversation, SDKValidationError>;
2447
- /** @internal */
2448
- export declare const ListArchivedResponse$inboundSchema: z.ZodMiniType<ListArchivedResponse, unknown>;
2449
- export declare function listArchivedResponseFromJSON(jsonString: string): SafeParseResult<ListArchivedResponse, SDKValidationError>;
2450
- /** @internal */
2451
- export type ReactRequest$Outbound = {
2452
- messageUrn: string;
2453
- emoji: string;
2454
- conversationUrn: string;
2455
- };
2456
- /** @internal */
2457
- export declare const ReactRequest$outboundSchema: z.ZodMiniType<ReactRequest$Outbound, ReactRequest>;
2458
- export declare function reactRequestToJSON(reactRequest: ReactRequest): string;
2459
- /** @internal */
2460
- export declare const ReactResponse$inboundSchema: z.ZodMiniType<ReactResponse, unknown>;
2461
- export declare function reactResponseFromJSON(jsonString: string): SafeParseResult<ReactResponse, SDKValidationError>;
2462
- /** @internal */
2463
- export type UnreactRequest$Outbound = {
2464
- messageUrn: string;
2465
- emoji: string;
2466
- conversationUrn: string;
2467
- };
2468
- /** @internal */
2469
- export declare const UnreactRequest$outboundSchema: z.ZodMiniType<UnreactRequest$Outbound, UnreactRequest>;
2470
- export declare function unreactRequestToJSON(unreactRequest: UnreactRequest): string;
2471
- /** @internal */
2472
- export declare const UnreactResponse$inboundSchema: z.ZodMiniType<UnreactResponse, unknown>;
2473
- export declare function unreactResponseFromJSON(jsonString: string): SafeParseResult<UnreactResponse, SDKValidationError>;
2474
- /** @internal */
2475
- export type SendTypingIndicatorRequest$Outbound = {
2476
- conversationUrn: string;
2477
- };
2478
- /** @internal */
2479
- export declare const SendTypingIndicatorRequest$outboundSchema: z.ZodMiniType<SendTypingIndicatorRequest$Outbound, SendTypingIndicatorRequest>;
2480
- export declare function sendTypingIndicatorRequestToJSON(sendTypingIndicatorRequest: SendTypingIndicatorRequest): string;
2481
- /** @internal */
2482
- export declare const SendTypingIndicatorResponse$inboundSchema: z.ZodMiniType<SendTypingIndicatorResponse, unknown>;
2483
- export declare function sendTypingIndicatorResponseFromJSON(jsonString: string): SafeParseResult<SendTypingIndicatorResponse, SDKValidationError>;
2484
- /** @internal */
2485
- export declare const GetUnreadCountResponse$inboundSchema: z.ZodMiniType<GetUnreadCountResponse, unknown>;
2486
- export declare function getUnreadCountResponseFromJSON(jsonString: string): SafeParseResult<GetUnreadCountResponse, SDKValidationError>;
2487
- /** @internal */
2488
- export type FilterRequest$Outbound = {
2489
- campaignSlug: string;
2490
- actionSlugs: string;
2491
- };
2492
- /** @internal */
2493
- export declare const FilterRequest$outboundSchema: z.ZodMiniType<FilterRequest$Outbound, FilterRequest>;
2494
- export declare function filterRequestToJSON(filterRequest: FilterRequest): string;
2495
- /** @internal */
2496
- export declare const CheckedSlug$inboundSchema: z.ZodMiniType<CheckedSlug, unknown>;
2497
- export declare function checkedSlugFromJSON(jsonString: string): SafeParseResult<CheckedSlug, SDKValidationError>;
2498
- /** @internal */
2499
- export declare const FilterResponse$inboundSchema: z.ZodMiniType<FilterResponse, unknown>;
2500
- export declare function filterResponseFromJSON(jsonString: string): SafeParseResult<FilterResponse, SDKValidationError>;
2501
- /** @internal */
2502
- export type GetStatusRequestBody$Outbound = {
2503
- profiles: Array<string>;
2504
- };
2505
- /** @internal */
2506
- export declare const GetStatusRequestBody$outboundSchema: z.ZodMiniType<GetStatusRequestBody$Outbound, GetStatusRequestBody>;
2507
- export declare function getStatusRequestBodyToJSON(getStatusRequestBody: GetStatusRequestBody): string;
2508
- /** @internal */
2509
- export type GetStatusRequest$Outbound = {
2510
- campaignSlug: string;
2511
- body: GetStatusRequestBody$Outbound;
2512
- };
2513
- /** @internal */
2514
- export declare const GetStatusRequest$outboundSchema: z.ZodMiniType<GetStatusRequest$Outbound, GetStatusRequest>;
2515
- export declare function getStatusRequestToJSON(getStatusRequest: GetStatusRequest): string;
2516
- /** @internal */
2517
- export declare const GetStatusProfile$inboundSchema: z.ZodMiniType<GetStatusProfile, unknown>;
2518
- export declare function getStatusProfileFromJSON(jsonString: string): SafeParseResult<GetStatusProfile, SDKValidationError>;
2519
- /** @internal */
2520
- export declare const GetStatusResponse$inboundSchema: z.ZodMiniType<GetStatusResponse, unknown>;
2521
- export declare function getStatusResponseFromJSON(jsonString: string): SafeParseResult<GetStatusResponse, SDKValidationError>;
2522
- /** @internal */
2523
- export declare const SyncAction$outboundSchema: z.ZodMiniEnum<typeof SyncAction>;
2524
- /** @internal */
2525
- export type SyncProfile$Outbound = {
2526
- profile: string;
2527
- actions: Array<string>;
2528
- };
2529
- /** @internal */
2530
- export declare const SyncProfile$outboundSchema: z.ZodMiniType<SyncProfile$Outbound, SyncProfile>;
2531
- export declare function syncProfileToJSON(syncProfile: SyncProfile): string;
2532
- /** @internal */
2533
- export type SyncRequestBody$Outbound = {
2534
- profiles: Array<SyncProfile$Outbound>;
2535
- };
2536
- /** @internal */
2537
- export declare const SyncRequestBody$outboundSchema: z.ZodMiniType<SyncRequestBody$Outbound, SyncRequestBody>;
2538
- export declare function syncRequestBodyToJSON(syncRequestBody: SyncRequestBody): string;
2539
- /** @internal */
2540
- export type SyncRequest$Outbound = {
2541
- campaignSlug: string;
2542
- body: SyncRequestBody$Outbound;
2543
- };
2544
- /** @internal */
2545
- export declare const SyncRequest$outboundSchema: z.ZodMiniType<SyncRequest$Outbound, SyncRequest>;
2546
- export declare function syncRequestToJSON(syncRequest: SyncRequest): string;
2547
- /** @internal */
2548
- export declare const Synced$inboundSchema: z.ZodMiniType<Synced, unknown>;
2549
- export declare function syncedFromJSON(jsonString: string): SafeParseResult<Synced, SDKValidationError>;
2550
- /** @internal */
2551
- export declare const SyncResponse$inboundSchema: z.ZodMiniType<SyncResponse, unknown>;
2552
- export declare function syncResponseFromJSON(jsonString: string): SafeParseResult<SyncResponse, SDKValidationError>;
2553
- /** @internal */
2554
- export type GetCampaignStatsRequest$Outbound = {
2555
- campaignSlug: string;
2556
- };
2557
- /** @internal */
2558
- export declare const GetCampaignStatsRequest$outboundSchema: z.ZodMiniType<GetCampaignStatsRequest$Outbound, GetCampaignStatsRequest>;
2559
- export declare function getCampaignStatsRequestToJSON(getCampaignStatsRequest: GetCampaignStatsRequest): string;
2560
- /** @internal */
2561
- export declare const GetCampaignStatsResponse$inboundSchema: z.ZodMiniType<GetCampaignStatsResponse, unknown>;
2562
- export declare function getCampaignStatsResponseFromJSON(jsonString: string): SafeParseResult<GetCampaignStatsResponse, SDKValidationError>;
2563
- /** @internal */
2564
- export declare const UpsertSource$outboundSchema: z.ZodMiniEnum<typeof UpsertSource>;
2565
- /** @internal */
2566
- export declare const UpsertLifecycleStage$outboundSchema: z.ZodMiniEnum<typeof UpsertLifecycleStage>;
2567
- /** @internal */
2568
- export type UpsertContactRequest$Outbound = {
2569
- linkedinUrl: string;
2570
- profileUrn?: string | null | undefined;
2571
- publicIdentifier?: string | null | undefined;
2572
- name: string;
2573
- source: string;
2574
- sourceAngle?: string | undefined;
2575
- lifecycleStage?: string | undefined;
2576
- hotScore?: number | undefined;
2577
- qualificationNotes?: string | undefined;
2578
- notes?: string | undefined;
2579
- };
2580
- /** @internal */
2581
- export declare const UpsertContactRequest$outboundSchema: z.ZodMiniType<UpsertContactRequest$Outbound, UpsertContactRequest>;
2582
- export declare function upsertContactRequestToJSON(upsertContactRequest: UpsertContactRequest): string;
2583
- /** @internal */
2584
- export type UpsertRequest$Outbound = {
2585
- contacts: Array<UpsertContactRequest$Outbound>;
2586
- };
2587
- /** @internal */
2588
- export declare const UpsertRequest$outboundSchema: z.ZodMiniType<UpsertRequest$Outbound, UpsertRequest>;
2589
- export declare function upsertRequestToJSON(upsertRequest: UpsertRequest): string;
2590
- /** @internal */
2591
- export declare const UpsertResults$inboundSchema: z.ZodMiniType<UpsertResults, unknown>;
2592
- export declare function upsertResultsFromJSON(jsonString: string): SafeParseResult<UpsertResults, SDKValidationError>;
2593
- /** @internal */
2594
- export declare const UpsertContactResponse$inboundSchema: z.ZodMiniType<UpsertContactResponse, unknown>;
2595
- export declare function upsertContactResponseFromJSON(jsonString: string): SafeParseResult<UpsertContactResponse, SDKValidationError>;
2596
- /** @internal */
2597
- export declare const UpsertResponse$inboundSchema: z.ZodMiniType<UpsertResponse, unknown>;
2598
- export declare function upsertResponseFromJSON(jsonString: string): SafeParseResult<UpsertResponse, SDKValidationError>;
2599
- /** @internal */
2600
- export declare const SearchContactsLifecycleStage$outboundSchema: z.ZodMiniEnum<typeof SearchContactsLifecycleStage>;
2601
- /** @internal */
2602
- export declare const SearchContactsOutreachStatus$outboundSchema: z.ZodMiniEnum<typeof SearchContactsOutreachStatus>;
2603
- /** @internal */
2604
- export declare const DoNotContact$outboundSchema: z.ZodMiniEnum<typeof DoNotContact>;
2605
- /** @internal */
2606
- export declare const HasProfileData$outboundSchema: z.ZodMiniEnum<typeof HasProfileData>;
2607
- /** @internal */
2608
- export type SearchContactsRequest$Outbound = {
2609
- linkedinUrl?: string | undefined;
2610
- name?: string | undefined;
2611
- lifecycleStage?: string | undefined;
2612
- sortBy?: string | undefined;
2613
- minHotScore?: number | undefined;
2614
- outreachStatus?: string | undefined;
2615
- tag?: string | undefined;
2616
- followUpBefore?: string | undefined;
2617
- doNotContact?: string | undefined;
2618
- hasProfileData?: string | undefined;
2619
- campaignId?: string | undefined;
2620
- limit: number;
2621
- offset: number;
2622
- };
2623
- /** @internal */
2624
- export declare const SearchContactsRequest$outboundSchema: z.ZodMiniType<SearchContactsRequest$Outbound, SearchContactsRequest>;
2625
- export declare function searchContactsRequestToJSON(searchContactsRequest: SearchContactsRequest): string;
2626
- /** @internal */
2627
- export declare const SearchContactsCampaign$inboundSchema: z.ZodMiniType<SearchContactsCampaign, unknown>;
2628
- export declare function searchContactsCampaignFromJSON(jsonString: string): SafeParseResult<SearchContactsCampaign, SDKValidationError>;
2629
- //# sourceMappingURL=search-contacts-campaign.d.ts.map
2644
+ //# sourceMappingURL=archive-response.d.ts.map