bereach 1.4.2 → 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} +1174 -1151
- package/esm/models/operations/archive-response.d.ts.map +1 -0
- package/esm/models/operations/{search-contacts-campaign.js → archive-response.js} +456 -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 +45 -12
- package/esm/models/operations/search-companies-response.d.ts.map +1 -1
- package/esm/models/operations/search-companies-response.js +10 -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} +70 -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} +27 -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} +2503 -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 +55 -14
- package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts} +112 -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
|
@@ -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
|
*
|
package/src/sdk/profile.ts
CHANGED
|
@@ -2,17 +2,24 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { profileCreateApiToken } from "../funcs/profile-create-api-token.js";
|
|
6
|
+
import { profileDeleteApiToken } from "../funcs/profile-delete-api-token.js";
|
|
7
|
+
import { profileGetApiToken } from "../funcs/profile-get-api-token.js";
|
|
5
8
|
import { profileGetCredits } from "../funcs/profile-get-credits.js";
|
|
6
9
|
import { profileGetFollowerAnalytics } from "../funcs/profile-get-follower-analytics.js";
|
|
7
10
|
import { profileGetFollowers } from "../funcs/profile-get-followers.js";
|
|
8
11
|
import { profileGetLimits } from "../funcs/profile-get-limits.js";
|
|
12
|
+
import { profileGetMyActivity } from "../funcs/profile-get-my-activity.js";
|
|
9
13
|
import { profileGetPostAnalytics } from "../funcs/profile-get-post-analytics.js";
|
|
10
14
|
import { profileGetSearchAppearances } from "../funcs/profile-get-search-appearances.js";
|
|
15
|
+
import { profileGetSettings } from "../funcs/profile-get-settings.js";
|
|
11
16
|
import { profileGet } from "../funcs/profile-get.js";
|
|
12
17
|
import { profileListAccounts } from "../funcs/profile-list-accounts.js";
|
|
13
18
|
import { profileListConnections } from "../funcs/profile-list-connections.js";
|
|
19
|
+
import { profilePatchSettings } from "../funcs/profile-patch-settings.js";
|
|
14
20
|
import { profilePosts } from "../funcs/profile-posts.js";
|
|
15
21
|
import { profileRefresh } from "../funcs/profile-refresh.js";
|
|
22
|
+
import { profileRevalidateLinkedin } from "../funcs/profile-revalidate-linkedin.js";
|
|
16
23
|
import { profileSwitchAccount } from "../funcs/profile-switch-account.js";
|
|
17
24
|
import { profileUpdateAccount } from "../funcs/profile-update-account.js";
|
|
18
25
|
import { profileViews } from "../funcs/profile-views.js";
|
|
@@ -248,4 +255,119 @@ export class Profile extends ClientSDK {
|
|
|
248
255
|
options,
|
|
249
256
|
));
|
|
250
257
|
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Get recent activity (comments or reactions)
|
|
261
|
+
*
|
|
262
|
+
* @remarks
|
|
263
|
+
* Get recent activity (comments or reactions) by the authenticated user or a company page. Useful for verifying authorship of actions. 0 credits.
|
|
264
|
+
*/
|
|
265
|
+
async getMyActivity(
|
|
266
|
+
request?: operations.GetMyActivityRequest | undefined,
|
|
267
|
+
options?: RequestOptions,
|
|
268
|
+
): Promise<operations.GetMyActivityResponse> {
|
|
269
|
+
return unwrapAsync(profileGetMyActivity(
|
|
270
|
+
this,
|
|
271
|
+
request,
|
|
272
|
+
options,
|
|
273
|
+
));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Get account settings
|
|
278
|
+
*
|
|
279
|
+
* @remarks
|
|
280
|
+
* Returns user profile, location, proxy, Anthropic key status, subscription, LinkedIn accounts, and pending invites. 0 credits.
|
|
281
|
+
*/
|
|
282
|
+
async getSettings(
|
|
283
|
+
options?: RequestOptions,
|
|
284
|
+
): Promise<operations.GetSettingsResponse> {
|
|
285
|
+
return unwrapAsync(profileGetSettings(
|
|
286
|
+
this,
|
|
287
|
+
options,
|
|
288
|
+
));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Update account settings
|
|
293
|
+
*
|
|
294
|
+
* @remarks
|
|
295
|
+
* Update user country, city, phone, or Anthropic API key. Location changes propagate to proxy config. Anthropic key is validated before saving. 0 credits.
|
|
296
|
+
*/
|
|
297
|
+
async patchSettings(
|
|
298
|
+
request: operations.PatchSettingsRequest,
|
|
299
|
+
options?: RequestOptions,
|
|
300
|
+
): Promise<operations.PatchSettingsResponse> {
|
|
301
|
+
return unwrapAsync(profilePatchSettings(
|
|
302
|
+
this,
|
|
303
|
+
request,
|
|
304
|
+
options,
|
|
305
|
+
));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Re-validate LinkedIn session
|
|
310
|
+
*
|
|
311
|
+
* @remarks
|
|
312
|
+
* Makes a lightweight LinkedIn /me call to verify credentials are still valid. Fixes false-invalid states. 1 credit.
|
|
313
|
+
*/
|
|
314
|
+
async revalidateLinkedin(
|
|
315
|
+
options?: RequestOptions,
|
|
316
|
+
): Promise<operations.RevalidateLinkedinResponse> {
|
|
317
|
+
return unwrapAsync(profileRevalidateLinkedin(
|
|
318
|
+
this,
|
|
319
|
+
options,
|
|
320
|
+
));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Get API token
|
|
325
|
+
*
|
|
326
|
+
* @remarks
|
|
327
|
+
* Decrypt and return the full API token for a specific LinkedIn account.
|
|
328
|
+
*/
|
|
329
|
+
async getApiToken(
|
|
330
|
+
request?: operations.GetApiTokenRequest | undefined,
|
|
331
|
+
options?: RequestOptions,
|
|
332
|
+
): Promise<operations.GetApiTokenResponse> {
|
|
333
|
+
return unwrapAsync(profileGetApiToken(
|
|
334
|
+
this,
|
|
335
|
+
request,
|
|
336
|
+
options,
|
|
337
|
+
));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Create API token
|
|
342
|
+
*
|
|
343
|
+
* @remarks
|
|
344
|
+
* Generate a new API token scoped to a specific LinkedIn account. Only one token per account allowed.
|
|
345
|
+
*/
|
|
346
|
+
async createApiToken(
|
|
347
|
+
request?: operations.CreateApiTokenRequest | undefined,
|
|
348
|
+
options?: RequestOptions,
|
|
349
|
+
): Promise<operations.CreateApiTokenResponse> {
|
|
350
|
+
return unwrapAsync(profileCreateApiToken(
|
|
351
|
+
this,
|
|
352
|
+
request,
|
|
353
|
+
options,
|
|
354
|
+
));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Delete API token
|
|
359
|
+
*
|
|
360
|
+
* @remarks
|
|
361
|
+
* Delete the API token for a specific LinkedIn account.
|
|
362
|
+
*/
|
|
363
|
+
async deleteApiToken(
|
|
364
|
+
request?: operations.DeleteApiTokenRequest | undefined,
|
|
365
|
+
options?: RequestOptions,
|
|
366
|
+
): Promise<operations.DeleteApiTokenResponse> {
|
|
367
|
+
return unwrapAsync(profileDeleteApiToken(
|
|
368
|
+
this,
|
|
369
|
+
request,
|
|
370
|
+
options,
|
|
371
|
+
));
|
|
372
|
+
}
|
|
251
373
|
}
|
package/src/sdk/sales-nav.ts
CHANGED
|
@@ -29,7 +29,7 @@ export class SalesNav extends ClientSDK {
|
|
|
29
29
|
* - More advanced filters: seniority, function, tenure, include/exclude for company & industry
|
|
30
30
|
*
|
|
31
31
|
* ## Resolving filter IDs
|
|
32
|
-
* Filters like location, industry, company, and school require LinkedIn numeric IDs. Use `
|
|
32
|
+
* Filters like location, industry, company, and school require LinkedIn numeric IDs. Use `GET /search/linkedin/parameters` to convert text (e.g. "San Francisco") into IDs.
|
|
33
33
|
*
|
|
34
34
|
* ## Pagination
|
|
35
35
|
* Default page size: 25, max: 25. Use `start` (offset) and `count` to paginate. Check `hasMore` and `paging.total` in the response.
|
|
@@ -6,6 +6,7 @@ import { scheduledMessagesBatchSchedule } from "../funcs/scheduled-messages-batc
|
|
|
6
6
|
import { scheduledMessagesCancel } from "../funcs/scheduled-messages-cancel.js";
|
|
7
7
|
import { scheduledMessagesCreate } from "../funcs/scheduled-messages-create.js";
|
|
8
8
|
import { scheduledMessagesList } from "../funcs/scheduled-messages-list.js";
|
|
9
|
+
import { scheduledMessagesReviewDrafts } from "../funcs/scheduled-messages-review-drafts.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import * as operations from "../models/operations/index.js";
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -78,4 +79,21 @@ export class ScheduledMessages extends ClientSDK {
|
|
|
78
79
|
options,
|
|
79
80
|
));
|
|
80
81
|
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Batch approve/reject draft DMs
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* Approve or reject draft messages for a campaign. Approved drafts are scheduled for immediate send. Optionally edit message text before approval. 0 credits.
|
|
88
|
+
*/
|
|
89
|
+
async reviewDrafts(
|
|
90
|
+
request: operations.ReviewDraftsRequest,
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): Promise<operations.ReviewDraftsResponse> {
|
|
93
|
+
return unwrapAsync(scheduledMessagesReviewDrafts(
|
|
94
|
+
this,
|
|
95
|
+
request,
|
|
96
|
+
options,
|
|
97
|
+
));
|
|
98
|
+
}
|
|
81
99
|
}
|
package/src/sdk/scrapers.ts
CHANGED
|
@@ -22,7 +22,7 @@ export class Scrapers extends ClientSDK {
|
|
|
22
22
|
* Scrape LinkedIn post likes
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* Returns up to 100 profiles per page that reacted to the specified post (LinkedIn API limit). Supports pagination. 1 credit per
|
|
25
|
+
* Returns up to 100 profiles per page that reacted to the specified post (LinkedIn API limit). Supports pagination. 1 credit per 100 items returned (minimum 1 if any results, 0 if empty). Use count=0 for a free total-only check.
|
|
26
26
|
*/
|
|
27
27
|
async collectLikes(
|
|
28
28
|
request: operations.CollectLikesRequest,
|
|
@@ -39,7 +39,7 @@ export class Scrapers extends ClientSDK {
|
|
|
39
39
|
* Scrape LinkedIn post comments
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
|
-
* Returns paginated top-level comments for a LinkedIn post (newest first). 1 credit per
|
|
42
|
+
* Returns paginated top-level comments for a LinkedIn post (newest first). 1 credit per 100 items returned (minimum 1 if any results, 0 if empty). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed). Response includes previousTotal (server-cached) to detect new comments without client tracking.
|
|
43
43
|
*/
|
|
44
44
|
async collectComments(
|
|
45
45
|
request: operations.CollectCommentsRequest,
|
|
@@ -56,7 +56,7 @@ export class Scrapers extends ClientSDK {
|
|
|
56
56
|
* Scrape replies to a LinkedIn comment
|
|
57
57
|
*
|
|
58
58
|
* @remarks
|
|
59
|
-
* Returns paginated replies for a specific LinkedIn comment. Use the commentUrn from the comments endpoint response. 1 credit per
|
|
59
|
+
* Returns paginated replies for a specific LinkedIn comment. Use the commentUrn from the comments endpoint response. 1 credit per 100 items returned (minimum 1 if any results, 0 if empty).
|
|
60
60
|
*/
|
|
61
61
|
async collectCommentReplies(
|
|
62
62
|
request: operations.CollectCommentRepliesRequest,
|
|
@@ -93,6 +93,8 @@ export class Scrapers extends ClientSDK {
|
|
|
93
93
|
* Visit a LinkedIn profile and return contact data. Distance-1 profiles cached 24h (0 credits when cached). No dedup — always executes. campaignSlug is for tracking only. 1 credit (0 when cached).
|
|
94
94
|
*
|
|
95
95
|
* Optional enrichment flags (`includePosts`, `includeComments`, `includeAbout`) fetch additional data in parallel with minimal latency overhead. `includeAbout` fetches the About section and detailed position descriptions. `includeComments` returns posts the profile recently engaged with (topic + author), useful for personalization — note that the actual comment text is not available from this API.
|
|
96
|
+
*
|
|
97
|
+
* `followersCount` and `connectionsCount` are always included in the response at no extra cost.
|
|
96
98
|
*/
|
|
97
99
|
async visitProfile(
|
|
98
100
|
request: operations.VisitProfileRequest,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Actions } from "./actions.js";
|
|
|
7
7
|
import { Campaigns } from "./campaigns.js";
|
|
8
8
|
import { Chat } from "./chat.js";
|
|
9
9
|
import { CompanyPages } from "./company-pages.js";
|
|
10
|
+
import { Connectors } from "./connectors.js";
|
|
10
11
|
import { Contacts } from "./contacts.js";
|
|
11
12
|
import { Context } from "./context.js";
|
|
12
13
|
import { Cron } from "./cron.js";
|
|
@@ -15,6 +16,9 @@ import { SalesNav } from "./sales-nav.js";
|
|
|
15
16
|
import { ScheduledMessages } from "./scheduled-messages.js";
|
|
16
17
|
import { Scrapers } from "./scrapers.js";
|
|
17
18
|
import { Search } from "./search.js";
|
|
19
|
+
import { Settings } from "./settings.js";
|
|
20
|
+
import { Tasks } from "./tasks.js";
|
|
21
|
+
import { Workspace } from "./workspace.js";
|
|
18
22
|
|
|
19
23
|
export class Bereach extends ClientSDK {
|
|
20
24
|
private _scrapers?: Scrapers;
|
|
@@ -76,4 +80,24 @@ export class Bereach extends ClientSDK {
|
|
|
76
80
|
get cron(): Cron {
|
|
77
81
|
return (this._cron ??= new Cron(this._options));
|
|
78
82
|
}
|
|
83
|
+
|
|
84
|
+
private _tasks?: Tasks;
|
|
85
|
+
get tasks(): Tasks {
|
|
86
|
+
return (this._tasks ??= new Tasks(this._options));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private _connectors?: Connectors;
|
|
90
|
+
get connectors(): Connectors {
|
|
91
|
+
return (this._connectors ??= new Connectors(this._options));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private _settings?: Settings;
|
|
95
|
+
get settings(): Settings {
|
|
96
|
+
return (this._settings ??= new Settings(this._options));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private _workspace?: Workspace;
|
|
100
|
+
get workspace(): Workspace {
|
|
101
|
+
return (this._workspace ??= new Workspace(this._options));
|
|
102
|
+
}
|
|
79
103
|
}
|
package/src/sdk/search.ts
CHANGED
|
@@ -49,7 +49,7 @@ export class Search extends ClientSDK {
|
|
|
49
49
|
* Without quotes, a multi-word query like `outreach automation` is treated as `outreach AND automation`, which may return broad results. Use `"outreach automation"` for exact matching.
|
|
50
50
|
*
|
|
51
51
|
* ## Resolving filter IDs
|
|
52
|
-
* Many filters (location, industry, company, school) require LinkedIn numeric IDs. Use `
|
|
52
|
+
* Many filters (location, industry, company, school) require LinkedIn numeric IDs. Use `GET /search/linkedin/parameters` to convert text (e.g. "San Francisco") into IDs (e.g. "103644278").
|
|
53
53
|
*
|
|
54
54
|
* ## Pagination
|
|
55
55
|
* Use `start` (offset, default 0) and `count` (page size, default 10, max 50). The response includes `paging.total` and `hasMore` to control iteration.
|
|
@@ -198,9 +198,9 @@ export class Search extends ClientSDK {
|
|
|
198
198
|
*
|
|
199
199
|
* ## Multi-step workflow with filter ID resolution
|
|
200
200
|
* ```
|
|
201
|
-
* Step 1:
|
|
201
|
+
* Step 1: GET /search/linkedin/parameters { type: 'GEO', keywords: 'San Francisco' }
|
|
202
202
|
* → returns [{ id: '102277331', title: 'San Francisco, CA' }]
|
|
203
|
-
* Step 2:
|
|
203
|
+
* Step 2: GET /search/linkedin/parameters { type: 'COMPANY', keywords: 'Google' }
|
|
204
204
|
* → returns [{ id: '1441', title: 'Google' }]
|
|
205
205
|
* Step 3: POST /search/linkedin/people { keywords: 'product manager', location: ['102277331'], currentCompany: ['1441'] }
|
|
206
206
|
* → returns matching people
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { settingsGetDmPollingSettings } from "../funcs/settings-get-dm-polling-settings.js";
|
|
6
|
+
import { settingsPatchDmPollingSettings } from "../funcs/settings-patch-dm-polling-settings.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class Settings extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Get DM polling settings
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Get DM and connection polling settings for the active LinkedIn account. 0 credits.
|
|
17
|
+
*/
|
|
18
|
+
async getDmPollingSettings(
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.GetDmPollingSettingsResponse> {
|
|
21
|
+
return unwrapAsync(settingsGetDmPollingSettings(
|
|
22
|
+
this,
|
|
23
|
+
options,
|
|
24
|
+
));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Update DM polling settings
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Enable/disable DM or connection polling and set webhook URL. 0 credits.
|
|
32
|
+
*/
|
|
33
|
+
async patchDmPollingSettings(
|
|
34
|
+
request: operations.PatchDmPollingSettingsRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<operations.PatchDmPollingSettingsResponse> {
|
|
37
|
+
return unwrapAsync(settingsPatchDmPollingSettings(
|
|
38
|
+
this,
|
|
39
|
+
request,
|
|
40
|
+
options,
|
|
41
|
+
));
|
|
42
|
+
}
|
|
43
|
+
}
|
package/src/sdk/tasks.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { tasksCancelChain } from "../funcs/tasks-cancel-chain.js";
|
|
6
|
+
import { tasksCancelTask } from "../funcs/tasks-cancel-task.js";
|
|
7
|
+
import { tasksEventsFeed } from "../funcs/tasks-events-feed.js";
|
|
8
|
+
import { tasksListTasks } from "../funcs/tasks-list-tasks.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Tasks extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List tasks
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* List tasks for the authenticated user with optional filters. 0 credits.
|
|
19
|
+
*/
|
|
20
|
+
async listTasks(
|
|
21
|
+
request?: operations.ListTasksRequest | undefined,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<operations.ListTasksResponse> {
|
|
24
|
+
return unwrapAsync(tasksListTasks(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Cancel a task
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Cancel a queued or running task. If already terminal, returns current status. 0 credits.
|
|
36
|
+
*/
|
|
37
|
+
async cancelTask(
|
|
38
|
+
request: operations.CancelTaskRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<operations.CancelTaskResponse> {
|
|
41
|
+
return unwrapAsync(tasksCancelTask(
|
|
42
|
+
this,
|
|
43
|
+
request,
|
|
44
|
+
options,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Poll for events
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Returns recent user events (task completions, replies, connections, campaign milestones). Use the cursor for pagination. Events expire after 48 hours. 0 credits.
|
|
53
|
+
*/
|
|
54
|
+
async eventsFeed(
|
|
55
|
+
request?: operations.EventsFeedRequest | undefined,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<operations.EventsFeedResponse> {
|
|
58
|
+
return unwrapAsync(tasksEventsFeed(
|
|
59
|
+
this,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Cancel a workflow chain
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Cancel an entire workflow chain and all its in-flight tasks. 0 credits.
|
|
70
|
+
*/
|
|
71
|
+
async cancelChain(
|
|
72
|
+
request: operations.CancelChainRequest,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<operations.CancelChainResponse> {
|
|
75
|
+
return unwrapAsync(tasksCancelChain(
|
|
76
|
+
this,
|
|
77
|
+
request,
|
|
78
|
+
options,
|
|
79
|
+
));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { workspaceCreateWorkspaceInvite } from "../funcs/workspace-create-workspace-invite.js";
|
|
6
|
+
import { workspaceDeleteWorkspaceAccount } from "../funcs/workspace-delete-workspace-account.js";
|
|
7
|
+
import { workspaceDeleteWorkspaceInvite } from "../funcs/workspace-delete-workspace-invite.js";
|
|
8
|
+
import { workspaceUpgradeWorkspaceAccount } from "../funcs/workspace-upgrade-workspace-account.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Workspace extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Remove a LinkedIn account
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Remove a LinkedIn account from the workspace. Cannot remove the default account. Cancels in-flight tasks, releases proxy IPs, and decrements Pro seats if applicable.
|
|
19
|
+
*/
|
|
20
|
+
async deleteWorkspaceAccount(
|
|
21
|
+
request: operations.DeleteWorkspaceAccountRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<operations.DeleteWorkspaceAccountResponse> {
|
|
24
|
+
return unwrapAsync(workspaceDeleteWorkspaceAccount(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Upgrade or downgrade account plan
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Upgrade a LinkedIn account from Free to Pro (assigns proxy, unlimited credits) or downgrade from Pro to Free. Requires available Pro seats.
|
|
36
|
+
*/
|
|
37
|
+
async upgradeWorkspaceAccount(
|
|
38
|
+
request: operations.UpgradeWorkspaceAccountRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<operations.UpgradeWorkspaceAccountResponse> {
|
|
41
|
+
return unwrapAsync(workspaceUpgradeWorkspaceAccount(
|
|
42
|
+
this,
|
|
43
|
+
request,
|
|
44
|
+
options,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Create or list workspace invites
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Create a workspace invitation (action: "create") or list existing ones (action: "list"). Sends an email if provided. Codes expire in 14 days. 0 credits.
|
|
53
|
+
*/
|
|
54
|
+
async createWorkspaceInvite(
|
|
55
|
+
request: operations.CreateWorkspaceInviteRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<operations.CreateWorkspaceInviteResponse> {
|
|
58
|
+
return unwrapAsync(workspaceCreateWorkspaceInvite(
|
|
59
|
+
this,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Delete a workspace invite
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Delete an invitation by ID. 0 credits.
|
|
70
|
+
*/
|
|
71
|
+
async deleteWorkspaceInvite(
|
|
72
|
+
request: operations.DeleteWorkspaceInviteRequest,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<operations.DeleteWorkspaceInviteResponse> {
|
|
75
|
+
return unwrapAsync(workspaceDeleteWorkspaceInvite(
|
|
76
|
+
this,
|
|
77
|
+
request,
|
|
78
|
+
options,
|
|
79
|
+
));
|
|
80
|
+
}
|
|
81
|
+
}
|