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.
- package/README.md +71 -5
- package/esm/funcs/actions-connect-profile.d.ts +1 -1
- package/esm/funcs/actions-connect-profile.js +1 -1
- package/esm/funcs/actions-edit-profile.d.ts +18 -0
- package/esm/funcs/actions-edit-profile.d.ts.map +1 -0
- package/esm/funcs/actions-edit-profile.js +97 -0
- package/esm/funcs/actions-edit-profile.js.map +1 -0
- package/esm/funcs/chat-get-conversation-summary.d.ts +18 -0
- package/esm/funcs/chat-get-conversation-summary.d.ts.map +1 -0
- package/esm/funcs/chat-get-conversation-summary.js +100 -0
- package/esm/funcs/chat-get-conversation-summary.js.map +1 -0
- package/esm/funcs/chat-list-inbox.d.ts +1 -1
- package/esm/funcs/chat-list-inbox.js +1 -1
- package/esm/funcs/chat-save-conversation-summary.d.ts +18 -0
- package/esm/funcs/chat-save-conversation-summary.d.ts.map +1 -0
- package/esm/funcs/chat-save-conversation-summary.js +97 -0
- package/esm/funcs/chat-save-conversation-summary.js.map +1 -0
- package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
- package/esm/funcs/company-pages-get-analytics.js +1 -1
- package/esm/funcs/connectors-agent-snapshot.d.ts +18 -0
- package/esm/funcs/connectors-agent-snapshot.d.ts.map +1 -0
- package/esm/funcs/connectors-agent-snapshot.js +86 -0
- package/esm/funcs/connectors-agent-snapshot.js.map +1 -0
- package/esm/funcs/connectors-connector-heartbeat.d.ts +18 -0
- package/esm/funcs/connectors-connector-heartbeat.d.ts.map +1 -0
- package/esm/funcs/connectors-connector-heartbeat.js +99 -0
- package/esm/funcs/connectors-connector-heartbeat.js.map +1 -0
- package/esm/funcs/connectors-list-connectors.d.ts +18 -0
- package/esm/funcs/connectors-list-connectors.d.ts.map +1 -0
- package/esm/funcs/connectors-list-connectors.js +86 -0
- package/esm/funcs/connectors-list-connectors.js.map +1 -0
- package/esm/funcs/connectors-pull-task.d.ts +18 -0
- package/esm/funcs/connectors-pull-task.d.ts.map +1 -0
- package/esm/funcs/connectors-pull-task.js +86 -0
- package/esm/funcs/connectors-pull-task.js.map +1 -0
- package/esm/funcs/connectors-submit-task-result.d.ts +18 -0
- package/esm/funcs/connectors-submit-task-result.d.ts.map +1 -0
- package/esm/funcs/connectors-submit-task-result.js +103 -0
- package/esm/funcs/connectors-submit-task-result.js.map +1 -0
- package/esm/funcs/contacts-global-activities.d.ts +18 -0
- package/esm/funcs/contacts-global-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-global-activities.js +105 -0
- package/esm/funcs/contacts-global-activities.js.map +1 -0
- package/esm/funcs/profile-create-api-token.d.ts +18 -0
- package/esm/funcs/profile-create-api-token.d.ts.map +1 -0
- package/esm/funcs/profile-create-api-token.js +99 -0
- package/esm/funcs/profile-create-api-token.js.map +1 -0
- package/esm/funcs/profile-delete-api-token.d.ts +18 -0
- package/esm/funcs/profile-delete-api-token.d.ts.map +1 -0
- package/esm/funcs/profile-delete-api-token.js +99 -0
- package/esm/funcs/profile-delete-api-token.js.map +1 -0
- package/esm/funcs/profile-get-api-token.d.ts +18 -0
- package/esm/funcs/profile-get-api-token.d.ts.map +1 -0
- package/esm/funcs/profile-get-api-token.js +100 -0
- package/esm/funcs/profile-get-api-token.js.map +1 -0
- package/esm/funcs/profile-get-my-activity.d.ts +18 -0
- package/esm/funcs/profile-get-my-activity.d.ts.map +1 -0
- package/esm/funcs/profile-get-my-activity.js +104 -0
- package/esm/funcs/profile-get-my-activity.js.map +1 -0
- package/esm/funcs/profile-get-settings.d.ts +18 -0
- package/esm/funcs/profile-get-settings.d.ts.map +1 -0
- package/esm/funcs/profile-get-settings.js +86 -0
- package/esm/funcs/profile-get-settings.js.map +1 -0
- package/esm/funcs/profile-patch-settings.d.ts +18 -0
- package/esm/funcs/profile-patch-settings.d.ts.map +1 -0
- package/esm/funcs/profile-patch-settings.js +97 -0
- package/esm/funcs/profile-patch-settings.js.map +1 -0
- package/esm/funcs/profile-revalidate-linkedin.d.ts +18 -0
- package/esm/funcs/profile-revalidate-linkedin.d.ts.map +1 -0
- package/esm/funcs/profile-revalidate-linkedin.js +86 -0
- package/esm/funcs/profile-revalidate-linkedin.js.map +1 -0
- package/esm/funcs/sales-nav-search.d.ts +1 -1
- package/esm/funcs/sales-nav-search.js +1 -1
- package/esm/funcs/scheduled-messages-review-drafts.d.ts +18 -0
- package/esm/funcs/scheduled-messages-review-drafts.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-review-drafts.js +97 -0
- package/esm/funcs/scheduled-messages-review-drafts.js.map +1 -0
- package/esm/funcs/scrapers-collect-comment-replies.d.ts +1 -1
- package/esm/funcs/scrapers-collect-comment-replies.js +1 -1
- package/esm/funcs/scrapers-collect-comments.d.ts +1 -1
- package/esm/funcs/scrapers-collect-comments.js +1 -1
- package/esm/funcs/scrapers-collect-likes.d.ts +1 -1
- package/esm/funcs/scrapers-collect-likes.js +1 -1
- package/esm/funcs/scrapers-visit-profile.d.ts +2 -0
- package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
- package/esm/funcs/scrapers-visit-profile.js +2 -0
- package/esm/funcs/scrapers-visit-profile.js.map +1 -1
- package/esm/funcs/search-people.d.ts +2 -2
- package/esm/funcs/search-people.js +2 -2
- package/esm/funcs/search-search.d.ts +1 -1
- package/esm/funcs/search-search.js +1 -1
- package/esm/funcs/settings-get-dm-polling-settings.d.ts +18 -0
- package/esm/funcs/settings-get-dm-polling-settings.d.ts.map +1 -0
- package/esm/funcs/settings-get-dm-polling-settings.js +86 -0
- package/esm/funcs/settings-get-dm-polling-settings.js.map +1 -0
- package/esm/funcs/settings-patch-dm-polling-settings.d.ts +18 -0
- package/esm/funcs/settings-patch-dm-polling-settings.d.ts.map +1 -0
- package/esm/funcs/settings-patch-dm-polling-settings.js +97 -0
- package/esm/funcs/settings-patch-dm-polling-settings.js.map +1 -0
- package/esm/funcs/tasks-cancel-chain.d.ts +18 -0
- package/esm/funcs/tasks-cancel-chain.d.ts.map +1 -0
- package/esm/funcs/tasks-cancel-chain.js +102 -0
- package/esm/funcs/tasks-cancel-chain.js.map +1 -0
- package/esm/funcs/tasks-cancel-task.d.ts +18 -0
- package/esm/funcs/tasks-cancel-task.d.ts.map +1 -0
- package/esm/funcs/tasks-cancel-task.js +102 -0
- package/esm/funcs/tasks-cancel-task.js.map +1 -0
- package/esm/funcs/tasks-events-feed.d.ts +18 -0
- package/esm/funcs/tasks-events-feed.d.ts.map +1 -0
- package/esm/funcs/tasks-events-feed.js +101 -0
- package/esm/funcs/tasks-events-feed.js.map +1 -0
- package/esm/funcs/tasks-list-tasks.d.ts +18 -0
- package/esm/funcs/tasks-list-tasks.d.ts.map +1 -0
- package/esm/funcs/tasks-list-tasks.js +104 -0
- package/esm/funcs/tasks-list-tasks.js.map +1 -0
- package/esm/funcs/workspace-create-workspace-invite.d.ts +18 -0
- package/esm/funcs/workspace-create-workspace-invite.d.ts.map +1 -0
- package/esm/funcs/workspace-create-workspace-invite.js +97 -0
- package/esm/funcs/workspace-create-workspace-invite.js.map +1 -0
- package/esm/funcs/workspace-delete-workspace-account.d.ts +18 -0
- package/esm/funcs/workspace-delete-workspace-account.d.ts.map +1 -0
- package/esm/funcs/workspace-delete-workspace-account.js +102 -0
- package/esm/funcs/workspace-delete-workspace-account.js.map +1 -0
- package/esm/funcs/workspace-delete-workspace-invite.d.ts +18 -0
- package/esm/funcs/workspace-delete-workspace-invite.d.ts.map +1 -0
- package/esm/funcs/workspace-delete-workspace-invite.js +97 -0
- package/esm/funcs/workspace-delete-workspace-invite.js.map +1 -0
- package/esm/funcs/workspace-upgrade-workspace-account.d.ts +18 -0
- package/esm/funcs/workspace-upgrade-workspace-account.d.ts.map +1 -0
- package/esm/funcs/workspace-upgrade-workspace-account.js +97 -0
- package/esm/funcs/workspace-upgrade-workspace-account.js.map +1 -0
- package/esm/hooks/hooks.d.ts.map +1 -1
- package/esm/hooks/hooks.js +0 -2
- package/esm/hooks/hooks.js.map +1 -1
- package/esm/lib/config.d.ts +5 -5
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +6 -6
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +20 -5
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/models/operations/{search-contacts-campaign.d.ts → archive-response.d.ts} +1166 -1151
- package/esm/models/operations/archive-response.d.ts.map +1 -0
- package/esm/models/operations/{search-contacts-campaign.js → archive-response.js} +454 -461
- package/esm/models/operations/archive-response.js.map +1 -0
- package/esm/models/operations/delete-workspace-invite-response.d.ts +1374 -0
- package/esm/models/operations/delete-workspace-invite-response.d.ts.map +1 -0
- package/esm/models/operations/delete-workspace-invite-response.js +901 -0
- package/esm/models/operations/delete-workspace-invite-response.js.map +1 -0
- package/esm/models/operations/{update-schedule-response.d.ts → get-by-url-campaign.d.ts} +1629 -1291
- package/esm/models/operations/get-by-url-campaign.d.ts.map +1 -0
- package/esm/models/operations/{update-schedule-response.js → get-by-url-campaign.js} +534 -341
- package/esm/models/operations/get-by-url-campaign.js.map +1 -0
- package/esm/models/operations/index.d.ts +4 -3
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +4 -3
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/search-companies-response.d.ts +28 -12
- package/esm/models/operations/search-companies-response.d.ts.map +1 -1
- package/esm/models/operations/search-companies-response.js +6 -2
- package/esm/models/operations/search-companies-response.js.map +1 -1
- package/esm/models/operations/{update-account-response.d.ts → update-account-proxy-config-response.d.ts} +66 -38
- package/esm/models/operations/update-account-proxy-config-response.d.ts.map +1 -0
- package/esm/models/operations/{update-account-response.js → update-account-proxy-config-response.js} +26 -28
- package/esm/models/operations/update-account-proxy-config-response.js.map +1 -0
- package/esm/sdk/actions.d.ts +8 -1
- package/esm/sdk/actions.d.ts.map +1 -1
- package/esm/sdk/actions.js +11 -1
- package/esm/sdk/actions.js.map +1 -1
- package/esm/sdk/chat.d.ts +15 -1
- package/esm/sdk/chat.d.ts.map +1 -1
- package/esm/sdk/chat.js +21 -1
- package/esm/sdk/chat.js.map +1 -1
- package/esm/sdk/company-pages.d.ts +1 -1
- package/esm/sdk/company-pages.js +1 -1
- package/esm/sdk/connectors.d.ts +40 -0
- package/esm/sdk/connectors.d.ts.map +1 -0
- package/esm/sdk/connectors.js +58 -0
- package/esm/sdk/connectors.js.map +1 -0
- package/esm/sdk/contacts.d.ts +7 -0
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +10 -0
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/profile.d.ts +49 -0
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +70 -0
- package/esm/sdk/profile.js.map +1 -1
- package/esm/sdk/sales-nav.d.ts +1 -1
- package/esm/sdk/sales-nav.js +1 -1
- package/esm/sdk/scheduled-messages.d.ts +7 -0
- package/esm/sdk/scheduled-messages.d.ts.map +1 -1
- package/esm/sdk/scheduled-messages.js +10 -0
- package/esm/sdk/scheduled-messages.js.map +1 -1
- package/esm/sdk/scrapers.d.ts +5 -3
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +5 -3
- package/esm/sdk/scrapers.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +20 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/search.d.ts +3 -3
- package/esm/sdk/search.js +3 -3
- package/esm/sdk/settings.d.ts +19 -0
- package/esm/sdk/settings.d.ts.map +1 -0
- package/esm/sdk/settings.js +28 -0
- package/esm/sdk/settings.js.map +1 -0
- package/esm/sdk/tasks.d.ts +33 -0
- package/esm/sdk/tasks.d.ts.map +1 -0
- package/esm/sdk/tasks.js +48 -0
- package/esm/sdk/tasks.js.map +1 -0
- package/esm/sdk/workspace.d.ts +33 -0
- package/esm/sdk/workspace.d.ts.map +1 -0
- package/esm/sdk/workspace.js +48 -0
- package/esm/sdk/workspace.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/actions-connect-profile.ts +1 -1
- package/src/funcs/actions-edit-profile.ts +224 -0
- package/src/funcs/chat-get-conversation-summary.ts +229 -0
- package/src/funcs/chat-list-inbox.ts +1 -1
- package/src/funcs/chat-save-conversation-summary.ts +225 -0
- package/src/funcs/company-pages-get-analytics.ts +1 -1
- package/src/funcs/connectors-agent-snapshot.ts +205 -0
- package/src/funcs/connectors-connector-heartbeat.ts +230 -0
- package/src/funcs/connectors-list-connectors.ts +205 -0
- package/src/funcs/connectors-pull-task.ts +205 -0
- package/src/funcs/connectors-submit-task-result.ts +231 -0
- package/src/funcs/contacts-global-activities.ts +237 -0
- package/src/funcs/profile-create-api-token.ts +230 -0
- package/src/funcs/profile-delete-api-token.ts +230 -0
- package/src/funcs/profile-get-api-token.ts +229 -0
- package/src/funcs/profile-get-my-activity.ts +236 -0
- package/src/funcs/profile-get-settings.ts +205 -0
- package/src/funcs/profile-patch-settings.ts +224 -0
- package/src/funcs/profile-revalidate-linkedin.ts +205 -0
- package/src/funcs/sales-nav-search.ts +1 -1
- package/src/funcs/scheduled-messages-review-drafts.ts +224 -0
- package/src/funcs/scrapers-collect-comment-replies.ts +1 -1
- package/src/funcs/scrapers-collect-comments.ts +1 -1
- package/src/funcs/scrapers-collect-likes.ts +1 -1
- package/src/funcs/scrapers-visit-profile.ts +2 -0
- package/src/funcs/search-people.ts +2 -2
- package/src/funcs/search-search.ts +1 -1
- package/src/funcs/settings-get-dm-polling-settings.ts +205 -0
- package/src/funcs/settings-patch-dm-polling-settings.ts +225 -0
- package/src/funcs/tasks-cancel-chain.ts +229 -0
- package/src/funcs/tasks-cancel-task.ts +229 -0
- package/src/funcs/tasks-events-feed.ts +230 -0
- package/src/funcs/tasks-list-tasks.ts +233 -0
- package/src/funcs/workspace-create-workspace-invite.ts +225 -0
- package/src/funcs/workspace-delete-workspace-account.ts +230 -0
- package/src/funcs/workspace-delete-workspace-invite.ts +225 -0
- package/src/funcs/workspace-upgrade-workspace-account.ts +225 -0
- package/src/hooks/hooks.ts +0 -3
- package/src/lib/config.ts +6 -6
- package/src/lib/encodings.ts +23 -4
- package/src/lib/security.ts +14 -2
- package/src/models/operations/{search-contacts-campaign.ts → archive-response.ts} +2493 -2362
- package/src/models/operations/delete-workspace-invite-response.ts +2783 -0
- package/src/models/operations/{update-schedule-response.ts → get-by-url-campaign.ts} +3591 -2939
- package/src/models/operations/index.ts +4 -3
- package/src/models/operations/search-companies-response.ts +34 -14
- package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts} +107 -84
- package/src/sdk/actions.ts +19 -1
- package/src/sdk/chat.ts +37 -1
- package/src/sdk/company-pages.ts +1 -1
- package/src/sdk/connectors.ts +93 -0
- package/src/sdk/contacts.ts +18 -0
- package/src/sdk/profile.ts +122 -0
- package/src/sdk/sales-nav.ts +1 -1
- package/src/sdk/scheduled-messages.ts +18 -0
- package/src/sdk/scrapers.ts +5 -3
- package/src/sdk/sdk.ts +24 -0
- package/src/sdk/search.ts +3 -3
- package/src/sdk/settings.ts +43 -0
- package/src/sdk/tasks.ts +81 -0
- package/src/sdk/workspace.ts +81 -0
- package/esm/models/operations/search-contacts-campaign.d.ts.map +0 -1
- package/esm/models/operations/search-contacts-campaign.js.map +0 -1
- package/esm/models/operations/update-account-response.d.ts.map +0 -1
- package/esm/models/operations/update-account-response.js.map +0 -1
- package/esm/models/operations/update-schedule-response.d.ts.map +0 -1
- package/esm/models/operations/update-schedule-response.js.map +0 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./archive-response.js";
|
|
6
|
+
export * from "./delete-workspace-invite-response.js";
|
|
7
|
+
export * from "./get-by-url-campaign.js";
|
|
5
8
|
export * from "./search-companies-response.js";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./update-account-response.js";
|
|
8
|
-
export * from "./update-schedule-response.js";
|
|
9
|
+
export * from "./update-account-proxy-config-response.js";
|
|
@@ -608,15 +608,15 @@ export type VisitProfilePosition = {
|
|
|
608
608
|
companyName: string | null;
|
|
609
609
|
title: string | null;
|
|
610
610
|
/**
|
|
611
|
-
* Position description / responsibilities text
|
|
611
|
+
* Position description / responsibilities text (only populated when includeAbout is true)
|
|
612
612
|
*/
|
|
613
|
-
description
|
|
613
|
+
description?: string | null | undefined;
|
|
614
614
|
companyUrl: string | null;
|
|
615
615
|
companyLogo: string | null;
|
|
616
616
|
/**
|
|
617
|
-
* Short description of the company (
|
|
617
|
+
* Short description of the company (only populated when includeAbout is true)
|
|
618
618
|
*/
|
|
619
|
-
companyDescription
|
|
619
|
+
companyDescription?: string | null | undefined;
|
|
620
620
|
startDate: VisitProfilePositionStartDate | null;
|
|
621
621
|
endDate: VisitProfilePositionEndDate | null;
|
|
622
622
|
isCurrent: boolean;
|
|
@@ -785,6 +785,10 @@ export type VisitProfileResponse = {
|
|
|
785
785
|
profileUrn: string | null;
|
|
786
786
|
imageUrl: string | null;
|
|
787
787
|
email: string | null;
|
|
788
|
+
/**
|
|
789
|
+
* Phone number from LinkedIn profile (rarely available)
|
|
790
|
+
*/
|
|
791
|
+
phone: string | null;
|
|
788
792
|
location: string | null;
|
|
789
793
|
/**
|
|
790
794
|
* Current company name (from most recent position)
|
|
@@ -802,6 +806,10 @@ export type VisitProfileResponse = {
|
|
|
802
806
|
* Total number of connections. May be null for non-connected profiles or restricted visibility.
|
|
803
807
|
*/
|
|
804
808
|
connectionsCount: number | null;
|
|
809
|
+
/**
|
|
810
|
+
* Total number of followers. Null for restricted profiles or when unavailable.
|
|
811
|
+
*/
|
|
812
|
+
followersCount: number | null;
|
|
805
813
|
/**
|
|
806
814
|
* Whether the profile has a LinkedIn verification badge.
|
|
807
815
|
*/
|
|
@@ -1340,6 +1348,14 @@ export type CollectHashtagPostsResponse = {
|
|
|
1340
1348
|
posts: Array<CollectHashtagPostsPost>;
|
|
1341
1349
|
total: number;
|
|
1342
1350
|
hasMore: boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* Current pagination offset
|
|
1353
|
+
*/
|
|
1354
|
+
start: number;
|
|
1355
|
+
/**
|
|
1356
|
+
* Offset for next page of results
|
|
1357
|
+
*/
|
|
1358
|
+
nextStart: number;
|
|
1343
1359
|
/**
|
|
1344
1360
|
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1345
1361
|
*/
|
|
@@ -1803,11 +1819,11 @@ export type SearchPostsRequest = {
|
|
|
1803
1819
|
*/
|
|
1804
1820
|
contentType?: SearchPostsContentType | undefined;
|
|
1805
1821
|
/**
|
|
1806
|
-
* Filter by the post author's industry. Array of LinkedIn industry IDs. Resolve text to IDs via
|
|
1822
|
+
* Filter by the post author's industry. Array of LinkedIn industry IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='INDUSTRY'. Example: resolve 'Technology' to get industry IDs.
|
|
1807
1823
|
*/
|
|
1808
1824
|
authorIndustry?: Array<string> | undefined;
|
|
1809
1825
|
/**
|
|
1810
|
-
* Filter by the post author's company. Array of LinkedIn company IDs. Resolve text to IDs via
|
|
1826
|
+
* Filter by the post author's company. Array of LinkedIn company IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='COMPANY'. Example: resolve 'Google' to get company ID '1441'.
|
|
1811
1827
|
*/
|
|
1812
1828
|
authorCompany?: Array<string> | undefined;
|
|
1813
1829
|
/**
|
|
@@ -1968,19 +1984,19 @@ export type SearchPeopleRequest = {
|
|
|
1968
1984
|
*/
|
|
1969
1985
|
profileLanguage?: Array<string> | undefined;
|
|
1970
1986
|
/**
|
|
1971
|
-
* Filter by school/university. Array of LinkedIn school IDs. Resolve text to IDs via
|
|
1987
|
+
* Filter by school/university. Array of LinkedIn school IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='SCHOOL'. Example: resolve 'Harvard' to get school IDs.
|
|
1972
1988
|
*/
|
|
1973
1989
|
school?: Array<string> | undefined;
|
|
1974
1990
|
/**
|
|
1975
|
-
* Filter by geographic location. Array of LinkedIn geo IDs. Resolve text to IDs via
|
|
1991
|
+
* Filter by geographic location. Array of LinkedIn geo IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='GEO'. Example: resolve 'San Francisco' → '102277331'.
|
|
1976
1992
|
*/
|
|
1977
1993
|
location?: Array<string> | undefined;
|
|
1978
1994
|
/**
|
|
1979
|
-
* Filter by industry. Array of LinkedIn industry IDs. Resolve text to IDs via
|
|
1995
|
+
* Filter by industry. Array of LinkedIn industry IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='INDUSTRY'.
|
|
1980
1996
|
*/
|
|
1981
1997
|
industry?: Array<string> | undefined;
|
|
1982
1998
|
/**
|
|
1983
|
-
* Filter by current employer. Array of LinkedIn company IDs. Resolve text to IDs via
|
|
1999
|
+
* Filter by current employer. Array of LinkedIn company IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='COMPANY'. Example: resolve 'Google' → '1441'.
|
|
1984
2000
|
*/
|
|
1985
2001
|
currentCompany?: Array<string> | undefined;
|
|
1986
2002
|
/**
|
|
@@ -2091,11 +2107,11 @@ export type SearchCompaniesRequest = {
|
|
|
2091
2107
|
*/
|
|
2092
2108
|
url?: string | undefined;
|
|
2093
2109
|
/**
|
|
2094
|
-
* Filter by company HQ location. Array of LinkedIn geo IDs. Resolve text to IDs via
|
|
2110
|
+
* Filter by company HQ location. Array of LinkedIn geo IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='GEO'.
|
|
2095
2111
|
*/
|
|
2096
2112
|
location?: Array<string> | undefined;
|
|
2097
2113
|
/**
|
|
2098
|
-
* Filter by company industry. Array of LinkedIn industry IDs. Resolve text to IDs via
|
|
2114
|
+
* Filter by company industry. Array of LinkedIn industry IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='INDUSTRY'.
|
|
2099
2115
|
*/
|
|
2100
2116
|
industry?: Array<string> | undefined;
|
|
2101
2117
|
/**
|
|
@@ -3142,10 +3158,10 @@ export const VisitProfilePosition$inboundSchema: z.ZodMiniType<
|
|
|
3142
3158
|
> = z.object({
|
|
3143
3159
|
companyName: types.nullable(types.string()),
|
|
3144
3160
|
title: types.nullable(types.string()),
|
|
3145
|
-
description:
|
|
3161
|
+
description: z.optional(z.nullable(types.string())),
|
|
3146
3162
|
companyUrl: types.nullable(types.string()),
|
|
3147
3163
|
companyLogo: types.nullable(types.string()),
|
|
3148
|
-
companyDescription:
|
|
3164
|
+
companyDescription: z.optional(z.nullable(types.string())),
|
|
3149
3165
|
startDate: types.nullable(
|
|
3150
3166
|
z.lazy(() => VisitProfilePositionStartDate$inboundSchema),
|
|
3151
3167
|
),
|
|
@@ -3338,11 +3354,13 @@ export const VisitProfileResponse$inboundSchema: z.ZodMiniType<
|
|
|
3338
3354
|
profileUrn: types.nullable(types.string()),
|
|
3339
3355
|
imageUrl: types.nullable(types.string()),
|
|
3340
3356
|
email: types.nullable(types.string()),
|
|
3357
|
+
phone: types.nullable(types.string()),
|
|
3341
3358
|
location: types.nullable(types.string()),
|
|
3342
3359
|
company: types.nullable(types.string()),
|
|
3343
3360
|
position: types.nullable(types.string()),
|
|
3344
3361
|
memberDistance: types.nullable(types.number()),
|
|
3345
3362
|
connectionsCount: types.nullable(types.number()),
|
|
3363
|
+
followersCount: types.nullable(types.number()),
|
|
3346
3364
|
isVerified: types.boolean(),
|
|
3347
3365
|
pendingConnection: PendingConnection$inboundSchema,
|
|
3348
3366
|
positions: types.optional(
|
|
@@ -4065,6 +4083,8 @@ export const CollectHashtagPostsResponse$inboundSchema: z.ZodMiniType<
|
|
|
4065
4083
|
posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
|
|
4066
4084
|
total: types.number(),
|
|
4067
4085
|
hasMore: types.boolean(),
|
|
4086
|
+
start: types.number(),
|
|
4087
|
+
nextStart: types.number(),
|
|
4068
4088
|
creditsUsed: types.number(),
|
|
4069
4089
|
retryAfter: types.number(),
|
|
4070
4090
|
});
|
package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts}
RENAMED
|
@@ -80,7 +80,7 @@ export type SearchJobsRequest = {
|
|
|
80
80
|
*/
|
|
81
81
|
url?: string | undefined;
|
|
82
82
|
/**
|
|
83
|
-
* Filter by job location. Array of LinkedIn geo IDs. Resolve text to IDs via
|
|
83
|
+
* Filter by job location. Array of LinkedIn geo IDs. Resolve text to IDs via GET /search/linkedin/parameters with type='GEO'.
|
|
84
84
|
*/
|
|
85
85
|
location?: Array<string> | undefined;
|
|
86
86
|
/**
|
|
@@ -1062,6 +1062,10 @@ export type ConnectProfileRequest = {
|
|
|
1062
1062
|
* LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
|
|
1063
1063
|
*/
|
|
1064
1064
|
profile: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* Optional personalized message to include with the connection request. Maximum 300 characters (LinkedIn limit).
|
|
1067
|
+
*/
|
|
1068
|
+
message?: string | undefined;
|
|
1065
1069
|
/**
|
|
1066
1070
|
* Campaign identifier for deduplication. Dedup by profile automatically.
|
|
1067
1071
|
*/
|
|
@@ -1806,6 +1810,40 @@ export type EditCommentResponse = {
|
|
|
1806
1810
|
retryAfter: number;
|
|
1807
1811
|
};
|
|
1808
1812
|
|
|
1813
|
+
export type EditProfileRequest = {
|
|
1814
|
+
/**
|
|
1815
|
+
* New LinkedIn headline (max 220 chars)
|
|
1816
|
+
*/
|
|
1817
|
+
headline?: string | undefined;
|
|
1818
|
+
/**
|
|
1819
|
+
* New LinkedIn about/summary section (max 2600 chars)
|
|
1820
|
+
*/
|
|
1821
|
+
summary?: string | undefined;
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Profile updated
|
|
1826
|
+
*/
|
|
1827
|
+
export type EditProfileResponse = {
|
|
1828
|
+
success: true;
|
|
1829
|
+
/**
|
|
1830
|
+
* Fields that were updated on LinkedIn
|
|
1831
|
+
*/
|
|
1832
|
+
updated: Array<string>;
|
|
1833
|
+
/**
|
|
1834
|
+
* Fields that were synced back to the local database
|
|
1835
|
+
*/
|
|
1836
|
+
synced: Array<string>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1839
|
+
*/
|
|
1840
|
+
creditsUsed: number;
|
|
1841
|
+
/**
|
|
1842
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1843
|
+
*/
|
|
1844
|
+
retryAfter: number;
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1809
1847
|
export type RepostPostRequest = {
|
|
1810
1848
|
/**
|
|
1811
1849
|
* LinkedIn post URL to repost
|
|
@@ -1979,15 +2017,15 @@ export type GetProfilePosition = {
|
|
|
1979
2017
|
companyName: string | null;
|
|
1980
2018
|
title: string | null;
|
|
1981
2019
|
/**
|
|
1982
|
-
* Position description / responsibilities text
|
|
2020
|
+
* Position description / responsibilities text (only populated when includeAbout is true)
|
|
1983
2021
|
*/
|
|
1984
|
-
description
|
|
2022
|
+
description?: string | null | undefined;
|
|
1985
2023
|
companyUrl: string | null;
|
|
1986
2024
|
companyLogo: string | null;
|
|
1987
2025
|
/**
|
|
1988
|
-
* Short description of the company (
|
|
2026
|
+
* Short description of the company (only populated when includeAbout is true)
|
|
1989
2027
|
*/
|
|
1990
|
-
companyDescription
|
|
2028
|
+
companyDescription?: string | null | undefined;
|
|
1991
2029
|
startDate: GetProfilePositionStartDate | null;
|
|
1992
2030
|
endDate: GetProfilePositionEndDate | null;
|
|
1993
2031
|
isCurrent: boolean;
|
|
@@ -2133,6 +2171,10 @@ export type GetProfileResponse = {
|
|
|
2133
2171
|
* Total LinkedIn connections
|
|
2134
2172
|
*/
|
|
2135
2173
|
connectionsCount: number | null;
|
|
2174
|
+
/**
|
|
2175
|
+
* Total number of followers
|
|
2176
|
+
*/
|
|
2177
|
+
followersCount?: number | null | undefined;
|
|
2136
2178
|
/**
|
|
2137
2179
|
* Profile location
|
|
2138
2180
|
*/
|
|
@@ -2145,6 +2187,14 @@ export type GetProfileResponse = {
|
|
|
2145
2187
|
* Last 5 posts (populated when posts have been fetched via /me/linkedin/posts)
|
|
2146
2188
|
*/
|
|
2147
2189
|
lastPosts?: Array<GetProfileLastPost> | undefined;
|
|
2190
|
+
/**
|
|
2191
|
+
* Last 20 comments by the user (populated after /me/linkedin/activity?tabType=COMMENTS)
|
|
2192
|
+
*/
|
|
2193
|
+
lastComments?: Array<any> | undefined;
|
|
2194
|
+
/**
|
|
2195
|
+
* Last reactions by the user (populated after /me/linkedin/activity?tabType=REACTIONS)
|
|
2196
|
+
*/
|
|
2197
|
+
lastReactions?: Array<any> | undefined;
|
|
2148
2198
|
/**
|
|
2149
2199
|
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
2150
2200
|
*/
|
|
@@ -2283,34 +2333,6 @@ export type UpdateAccountProxyConfigResponse = {
|
|
|
2283
2333
|
rotationHours: number | null;
|
|
2284
2334
|
};
|
|
2285
2335
|
|
|
2286
|
-
export type UpdateAccountAccount = {
|
|
2287
|
-
id: string;
|
|
2288
|
-
label: string | null;
|
|
2289
|
-
isDefault: boolean;
|
|
2290
|
-
linkedinProfileId: string | null;
|
|
2291
|
-
linkedinName: string | null;
|
|
2292
|
-
headline: string | null;
|
|
2293
|
-
profilePic: string | null;
|
|
2294
|
-
isValid: boolean;
|
|
2295
|
-
proxyConfig: UpdateAccountProxyConfigResponse | null;
|
|
2296
|
-
};
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* Updated account
|
|
2300
|
-
*/
|
|
2301
|
-
export type UpdateAccountResponse = {
|
|
2302
|
-
success: true;
|
|
2303
|
-
account: UpdateAccountAccount;
|
|
2304
|
-
/**
|
|
2305
|
-
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
2306
|
-
*/
|
|
2307
|
-
creditsUsed: number;
|
|
2308
|
-
/**
|
|
2309
|
-
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
2310
|
-
*/
|
|
2311
|
-
retryAfter: number;
|
|
2312
|
-
};
|
|
2313
|
-
|
|
2314
2336
|
/** @internal */
|
|
2315
2337
|
export const SearchJobsDatePosted$outboundSchema: z.ZodMiniEnum<
|
|
2316
2338
|
typeof SearchJobsDatePosted
|
|
@@ -3672,6 +3694,7 @@ export function searchSalesNavCompaniesResponseFromJSON(
|
|
|
3672
3694
|
/** @internal */
|
|
3673
3695
|
export type ConnectProfileRequest$Outbound = {
|
|
3674
3696
|
profile: string;
|
|
3697
|
+
message?: string | undefined;
|
|
3675
3698
|
campaignSlug?: string | undefined;
|
|
3676
3699
|
actionSlug?: string | undefined;
|
|
3677
3700
|
};
|
|
@@ -3682,6 +3705,7 @@ export const ConnectProfileRequest$outboundSchema: z.ZodMiniType<
|
|
|
3682
3705
|
ConnectProfileRequest
|
|
3683
3706
|
> = z.object({
|
|
3684
3707
|
profile: z.string(),
|
|
3708
|
+
message: z.optional(z.string()),
|
|
3685
3709
|
campaignSlug: z.optional(z.string()),
|
|
3686
3710
|
actionSlug: z.optional(z.string()),
|
|
3687
3711
|
});
|
|
@@ -4566,6 +4590,51 @@ export function editCommentResponseFromJSON(
|
|
|
4566
4590
|
);
|
|
4567
4591
|
}
|
|
4568
4592
|
|
|
4593
|
+
/** @internal */
|
|
4594
|
+
export type EditProfileRequest$Outbound = {
|
|
4595
|
+
headline?: string | undefined;
|
|
4596
|
+
summary?: string | undefined;
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4599
|
+
/** @internal */
|
|
4600
|
+
export const EditProfileRequest$outboundSchema: z.ZodMiniType<
|
|
4601
|
+
EditProfileRequest$Outbound,
|
|
4602
|
+
EditProfileRequest
|
|
4603
|
+
> = z.object({
|
|
4604
|
+
headline: z.optional(z.string()),
|
|
4605
|
+
summary: z.optional(z.string()),
|
|
4606
|
+
});
|
|
4607
|
+
|
|
4608
|
+
export function editProfileRequestToJSON(
|
|
4609
|
+
editProfileRequest: EditProfileRequest,
|
|
4610
|
+
): string {
|
|
4611
|
+
return JSON.stringify(
|
|
4612
|
+
EditProfileRequest$outboundSchema.parse(editProfileRequest),
|
|
4613
|
+
);
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
/** @internal */
|
|
4617
|
+
export const EditProfileResponse$inboundSchema: z.ZodMiniType<
|
|
4618
|
+
EditProfileResponse,
|
|
4619
|
+
unknown
|
|
4620
|
+
> = z.object({
|
|
4621
|
+
success: types.literal(true),
|
|
4622
|
+
updated: z.array(types.string()),
|
|
4623
|
+
synced: z.array(types.string()),
|
|
4624
|
+
creditsUsed: types.number(),
|
|
4625
|
+
retryAfter: types.number(),
|
|
4626
|
+
});
|
|
4627
|
+
|
|
4628
|
+
export function editProfileResponseFromJSON(
|
|
4629
|
+
jsonString: string,
|
|
4630
|
+
): SafeParseResult<EditProfileResponse, SDKValidationError> {
|
|
4631
|
+
return safeParse(
|
|
4632
|
+
jsonString,
|
|
4633
|
+
(x) => EditProfileResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4634
|
+
`Failed to parse 'EditProfileResponse' from JSON`,
|
|
4635
|
+
);
|
|
4636
|
+
}
|
|
4637
|
+
|
|
4569
4638
|
/** @internal */
|
|
4570
4639
|
export type RepostPostRequest$Outbound = {
|
|
4571
4640
|
postUrl: string;
|
|
@@ -4899,10 +4968,10 @@ export const GetProfilePosition$inboundSchema: z.ZodMiniType<
|
|
|
4899
4968
|
> = z.object({
|
|
4900
4969
|
companyName: types.nullable(types.string()),
|
|
4901
4970
|
title: types.nullable(types.string()),
|
|
4902
|
-
description:
|
|
4971
|
+
description: z.optional(z.nullable(types.string())),
|
|
4903
4972
|
companyUrl: types.nullable(types.string()),
|
|
4904
4973
|
companyLogo: types.nullable(types.string()),
|
|
4905
|
-
companyDescription:
|
|
4974
|
+
companyDescription: z.optional(z.nullable(types.string())),
|
|
4906
4975
|
startDate: types.nullable(
|
|
4907
4976
|
z.lazy(() => GetProfilePositionStartDate$inboundSchema),
|
|
4908
4977
|
),
|
|
@@ -5089,11 +5158,14 @@ export const GetProfileResponse$inboundSchema: z.ZodMiniType<
|
|
|
5089
5158
|
z.array(z.lazy(() => GetProfileEducation$inboundSchema)),
|
|
5090
5159
|
),
|
|
5091
5160
|
connectionsCount: types.nullable(types.number()),
|
|
5161
|
+
followersCount: z.optional(z.nullable(types.number())),
|
|
5092
5162
|
location: types.nullable(z.lazy(() => GetProfileLocation$inboundSchema)),
|
|
5093
5163
|
isVerified: types.nullable(types.boolean()),
|
|
5094
5164
|
lastPosts: types.optional(
|
|
5095
5165
|
z.array(z.lazy(() => GetProfileLastPost$inboundSchema)),
|
|
5096
5166
|
),
|
|
5167
|
+
lastComments: types.optional(z.array(z.any())),
|
|
5168
|
+
lastReactions: types.optional(z.array(z.any())),
|
|
5097
5169
|
creditsUsed: types.number(),
|
|
5098
5170
|
retryAfter: types.number(),
|
|
5099
5171
|
});
|
|
@@ -5313,52 +5385,3 @@ export function updateAccountProxyConfigResponseFromJSON(
|
|
|
5313
5385
|
`Failed to parse 'UpdateAccountProxyConfigResponse' from JSON`,
|
|
5314
5386
|
);
|
|
5315
5387
|
}
|
|
5316
|
-
|
|
5317
|
-
/** @internal */
|
|
5318
|
-
export const UpdateAccountAccount$inboundSchema: z.ZodMiniType<
|
|
5319
|
-
UpdateAccountAccount,
|
|
5320
|
-
unknown
|
|
5321
|
-
> = z.object({
|
|
5322
|
-
id: types.string(),
|
|
5323
|
-
label: types.nullable(types.string()),
|
|
5324
|
-
isDefault: types.boolean(),
|
|
5325
|
-
linkedinProfileId: types.nullable(types.string()),
|
|
5326
|
-
linkedinName: types.nullable(types.string()),
|
|
5327
|
-
headline: types.nullable(types.string()),
|
|
5328
|
-
profilePic: types.nullable(types.string()),
|
|
5329
|
-
isValid: types.boolean(),
|
|
5330
|
-
proxyConfig: types.nullable(
|
|
5331
|
-
z.lazy(() => UpdateAccountProxyConfigResponse$inboundSchema),
|
|
5332
|
-
),
|
|
5333
|
-
});
|
|
5334
|
-
|
|
5335
|
-
export function updateAccountAccountFromJSON(
|
|
5336
|
-
jsonString: string,
|
|
5337
|
-
): SafeParseResult<UpdateAccountAccount, SDKValidationError> {
|
|
5338
|
-
return safeParse(
|
|
5339
|
-
jsonString,
|
|
5340
|
-
(x) => UpdateAccountAccount$inboundSchema.parse(JSON.parse(x)),
|
|
5341
|
-
`Failed to parse 'UpdateAccountAccount' from JSON`,
|
|
5342
|
-
);
|
|
5343
|
-
}
|
|
5344
|
-
|
|
5345
|
-
/** @internal */
|
|
5346
|
-
export const UpdateAccountResponse$inboundSchema: z.ZodMiniType<
|
|
5347
|
-
UpdateAccountResponse,
|
|
5348
|
-
unknown
|
|
5349
|
-
> = z.object({
|
|
5350
|
-
success: types.literal(true),
|
|
5351
|
-
account: z.lazy(() => UpdateAccountAccount$inboundSchema),
|
|
5352
|
-
creditsUsed: types.number(),
|
|
5353
|
-
retryAfter: types.number(),
|
|
5354
|
-
});
|
|
5355
|
-
|
|
5356
|
-
export function updateAccountResponseFromJSON(
|
|
5357
|
-
jsonString: string,
|
|
5358
|
-
): SafeParseResult<UpdateAccountResponse, SDKValidationError> {
|
|
5359
|
-
return safeParse(
|
|
5360
|
-
jsonString,
|
|
5361
|
-
(x) => UpdateAccountResponse$inboundSchema.parse(JSON.parse(x)),
|
|
5362
|
-
`Failed to parse 'UpdateAccountResponse' from JSON`,
|
|
5363
|
-
);
|
|
5364
|
-
}
|
package/src/sdk/actions.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { actionsCreateComment } from "../funcs/actions-create-comment.js";
|
|
|
8
8
|
import { actionsDeclineInvitation } from "../funcs/actions-decline-invitation.js";
|
|
9
9
|
import { actionsEditComment } from "../funcs/actions-edit-comment.js";
|
|
10
10
|
import { actionsEditPost } from "../funcs/actions-edit-post.js";
|
|
11
|
+
import { actionsEditProfile } from "../funcs/actions-edit-profile.js";
|
|
11
12
|
import { actionsFollowCompany } from "../funcs/actions-follow-company.js";
|
|
12
13
|
import { actionsFollowProfile } from "../funcs/actions-follow-profile.js";
|
|
13
14
|
import { actionsLikeComment } from "../funcs/actions-like-comment.js";
|
|
@@ -34,7 +35,7 @@ export class Actions extends ClientSDK {
|
|
|
34
35
|
* Send LinkedIn connection request
|
|
35
36
|
*
|
|
36
37
|
* @remarks
|
|
37
|
-
* Send a connection request to the specified LinkedIn profile. Rate limited to 80 requests per day per user. 1 credit.
|
|
38
|
+
* Send a connection request to the specified LinkedIn profile. Optionally include a personalized message (max 300 chars). Rate limited to 80 requests per day per user. 1 credit.
|
|
38
39
|
*/
|
|
39
40
|
async connectProfile(
|
|
40
41
|
request: operations.ConnectProfileRequest,
|
|
@@ -302,6 +303,23 @@ export class Actions extends ClientSDK {
|
|
|
302
303
|
));
|
|
303
304
|
}
|
|
304
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Edit LinkedIn profile headline/summary
|
|
308
|
+
*
|
|
309
|
+
* @remarks
|
|
310
|
+
* Edit the authenticated user's LinkedIn headline and/or about summary. At least one field is required. 1 credit.
|
|
311
|
+
*/
|
|
312
|
+
async editProfile(
|
|
313
|
+
request: operations.EditProfileRequest,
|
|
314
|
+
options?: RequestOptions,
|
|
315
|
+
): Promise<operations.EditProfileResponse> {
|
|
316
|
+
return unwrapAsync(actionsEditProfile(
|
|
317
|
+
this,
|
|
318
|
+
request,
|
|
319
|
+
options,
|
|
320
|
+
));
|
|
321
|
+
}
|
|
322
|
+
|
|
305
323
|
/**
|
|
306
324
|
* Repost / share a post
|
|
307
325
|
*
|
package/src/sdk/chat.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { chatArchive } from "../funcs/chat-archive.js";
|
|
6
6
|
import { chatFindConversation } from "../funcs/chat-find-conversation.js";
|
|
7
|
+
import { chatGetConversationSummary } from "../funcs/chat-get-conversation-summary.js";
|
|
7
8
|
import { chatGetMessages } from "../funcs/chat-get-messages.js";
|
|
8
9
|
import { chatGetUnreadCount } from "../funcs/chat-get-unread-count.js";
|
|
9
10
|
import { chatListArchived } from "../funcs/chat-list-archived.js";
|
|
@@ -12,6 +13,7 @@ import { chatListStarred } from "../funcs/chat-list-starred.js";
|
|
|
12
13
|
import { chatMarkAllRead } from "../funcs/chat-mark-all-read.js";
|
|
13
14
|
import { chatMarkSeen } from "../funcs/chat-mark-seen.js";
|
|
14
15
|
import { chatReact } from "../funcs/chat-react.js";
|
|
16
|
+
import { chatSaveConversationSummary } from "../funcs/chat-save-conversation-summary.js";
|
|
15
17
|
import { chatSearchConversations } from "../funcs/chat-search-conversations.js";
|
|
16
18
|
import { chatSendTypingIndicator } from "../funcs/chat-send-typing-indicator.js";
|
|
17
19
|
import { chatStar } from "../funcs/chat-star.js";
|
|
@@ -27,7 +29,7 @@ export class Chat extends ClientSDK {
|
|
|
27
29
|
* List LinkedIn inbox conversations
|
|
28
30
|
*
|
|
29
31
|
* @remarks
|
|
30
|
-
* List inbox conversations for the authenticated user. Returns conversations with participants, last message, and read status. Paginate via nextCursor. 0 credits.
|
|
32
|
+
* List inbox conversations for the authenticated user. Returns conversations with participants, last message, and read status. Use `count` to control the number of conversations returned (1-40, default 20). Paginate via nextCursor. 0 credits.
|
|
31
33
|
*/
|
|
32
34
|
async listInbox(
|
|
33
35
|
request?: operations.ListInboxRequest | undefined,
|
|
@@ -296,4 +298,38 @@ export class Chat extends ClientSDK {
|
|
|
296
298
|
options,
|
|
297
299
|
));
|
|
298
300
|
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Get conversation summary for a contact
|
|
304
|
+
*
|
|
305
|
+
* @remarks
|
|
306
|
+
* Retrieve the saved conversation summary for a contact. Returns null if no summary exists or contact not found. 0 credits.
|
|
307
|
+
*/
|
|
308
|
+
async getConversationSummary(
|
|
309
|
+
request: operations.GetConversationSummaryRequest,
|
|
310
|
+
options?: RequestOptions,
|
|
311
|
+
): Promise<operations.GetConversationSummaryResponse> {
|
|
312
|
+
return unwrapAsync(chatGetConversationSummary(
|
|
313
|
+
this,
|
|
314
|
+
request,
|
|
315
|
+
options,
|
|
316
|
+
));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Save conversation summary for a contact
|
|
321
|
+
*
|
|
322
|
+
* @remarks
|
|
323
|
+
* Save a conversation summary for a contact. Creates the contact if it doesn't exist (auto-upsert by profile URL). 0 credits.
|
|
324
|
+
*/
|
|
325
|
+
async saveConversationSummary(
|
|
326
|
+
request: operations.SaveConversationSummaryRequest,
|
|
327
|
+
options?: RequestOptions,
|
|
328
|
+
): Promise<operations.SaveConversationSummaryResponse> {
|
|
329
|
+
return unwrapAsync(chatSaveConversationSummary(
|
|
330
|
+
this,
|
|
331
|
+
request,
|
|
332
|
+
options,
|
|
333
|
+
));
|
|
334
|
+
}
|
|
299
335
|
}
|
package/src/sdk/company-pages.ts
CHANGED
|
@@ -64,7 +64,7 @@ export class CompanyPages extends ClientSDK {
|
|
|
64
64
|
* Get company page overview analytics
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
|
-
* Returns overview analytics for a company page including visitor count, employee count, founding date, headquarters, description, and more. Costs 1 credit.
|
|
67
|
+
* Returns overview analytics for a company page including visitor count, employee count, founding date, headquarters, description, and more. Requires `companyId` (numeric string, e.g. "111652438") in the request body. Costs 1 credit.
|
|
68
68
|
*/
|
|
69
69
|
async getAnalytics(
|
|
70
70
|
request: operations.GetAnalyticsRequest,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { connectorsAgentSnapshot } from "../funcs/connectors-agent-snapshot.js";
|
|
6
|
+
import { connectorsConnectorHeartbeat } from "../funcs/connectors-connector-heartbeat.js";
|
|
7
|
+
import { connectorsListConnectors } from "../funcs/connectors-list-connectors.js";
|
|
8
|
+
import { connectorsPullTask } from "../funcs/connectors-pull-task.js";
|
|
9
|
+
import { connectorsSubmitTaskResult } from "../funcs/connectors-submit-task-result.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
|
|
14
|
+
export class Connectors extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Pull next task (connector)
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Called by connector daemons to pull the next available task. Atomically transitions the task from 'queued' to 'dispatched'. Returns null if no tasks are available.
|
|
20
|
+
*/
|
|
21
|
+
async pullTask(
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<operations.PullTaskResponse> {
|
|
24
|
+
return unwrapAsync(connectorsPullTask(
|
|
25
|
+
this,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Submit task result (connector)
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Called by the connector or OpenClaw lifecycle hook to submit a task's result. Updates the task record and notifies the workflow chain to continue.
|
|
35
|
+
*/
|
|
36
|
+
async submitTaskResult(
|
|
37
|
+
request: operations.SubmitTaskResultRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<operations.SubmitTaskResultResponse> {
|
|
40
|
+
return unwrapAsync(connectorsSubmitTaskResult(
|
|
41
|
+
this,
|
|
42
|
+
request,
|
|
43
|
+
options,
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* List connectors
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* List all connector daemons for the authenticated user. Includes online/offline status based on last heartbeat. 0 credits.
|
|
52
|
+
*/
|
|
53
|
+
async listConnectors(
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<operations.ListConnectorsResponse> {
|
|
56
|
+
return unwrapAsync(connectorsListConnectors(
|
|
57
|
+
this,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Connector heartbeat
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* Called periodically by the connector daemon to report liveness. Returns adaptive poll interval and pending task count.
|
|
67
|
+
*/
|
|
68
|
+
async connectorHeartbeat(
|
|
69
|
+
request?: operations.ConnectorHeartbeatRequest | undefined,
|
|
70
|
+
options?: RequestOptions,
|
|
71
|
+
): Promise<operations.ConnectorHeartbeatResponse> {
|
|
72
|
+
return unwrapAsync(connectorsConnectorHeartbeat(
|
|
73
|
+
this,
|
|
74
|
+
request,
|
|
75
|
+
options,
|
|
76
|
+
));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Agent session snapshot
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* Returns all data the plugin needs for session initialization in a single call: credits, pipeline, contexts, drafts, accounts, campaigns, and recent events.
|
|
84
|
+
*/
|
|
85
|
+
async agentSnapshot(
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): Promise<operations.AgentSnapshotResponse> {
|
|
88
|
+
return unwrapAsync(connectorsAgentSnapshot(
|
|
89
|
+
this,
|
|
90
|
+
options,
|
|
91
|
+
));
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/sdk/contacts.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { contactsGetAgentState } from "../funcs/contacts-get-agent-state.js";
|
|
|
13
13
|
import { contactsGetByUrl } from "../funcs/contacts-get-by-url.js";
|
|
14
14
|
import { contactsGetCampaign } from "../funcs/contacts-get-campaign.js";
|
|
15
15
|
import { contactsGet } from "../funcs/contacts-get.js";
|
|
16
|
+
import { contactsGlobalActivities } from "../funcs/contacts-global-activities.js";
|
|
16
17
|
import { contactsListActivities } from "../funcs/contacts-list-activities.js";
|
|
17
18
|
import { contactsListAgentStates } from "../funcs/contacts-list-agent-states.js";
|
|
18
19
|
import { contactsListByCampaign } from "../funcs/contacts-list-by-campaign.js";
|
|
@@ -29,6 +30,23 @@ import * as operations from "../models/operations/index.js";
|
|
|
29
30
|
import { unwrapAsync } from "../types/fp.js";
|
|
30
31
|
|
|
31
32
|
export class Contacts extends ClientSDK {
|
|
33
|
+
/**
|
|
34
|
+
* Global activity log
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Returns activities across all contacts for the authenticated user, most recent first. Supports filtering by type, campaign, and date range. 0 credits.
|
|
38
|
+
*/
|
|
39
|
+
async globalActivities(
|
|
40
|
+
request?: operations.GlobalActivitiesRequest | undefined,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<operations.GlobalActivitiesResponse> {
|
|
43
|
+
return unwrapAsync(contactsGlobalActivities(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
32
50
|
/**
|
|
33
51
|
* Create or upsert contacts (no campaign required)
|
|
34
52
|
*
|