@dench.com/cli 3.11.24-staging.610 → 3.11.25-staging.617
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/app-sdk.d.ts +47 -0
- package/campaign.ts +46 -0
- package/lib/api-schemas.ts +66 -0
- package/lib/app-sdk-catalog.generated.ts +2 -0
- package/lib/campaign-agent.ts +3 -1
- package/lib/command-registry.ts +24 -0
- package/lib/references.generated.json +6 -6
- package/package.json +1 -1
package/app-sdk.d.ts
CHANGED
|
@@ -530,6 +530,10 @@ export interface ApiRequests {
|
|
|
530
530
|
"campaigns.builder.get": {
|
|
531
531
|
draftId: string;
|
|
532
532
|
};
|
|
533
|
+
/** Read every lead a signal build kept (not just the five previewed): person, company, LinkedIn URL and the signal's evidence. — `dench campaign builder leads` — GET /api/v1/campaigns/builder/drafts/{draftId}/leads */
|
|
534
|
+
"campaigns.builder.leads": {
|
|
535
|
+
draftId: string;
|
|
536
|
+
};
|
|
533
537
|
/** Start the same billable signal/audience/message build used by the UI; poll the draft for progress. — `dench campaign builder build` — POST /api/v1/campaigns/builder/drafts/{draftId}/build */
|
|
534
538
|
"campaigns.builder.build": {
|
|
535
539
|
draftId: string;
|
|
@@ -2823,6 +2827,15 @@ export interface ApiRequests {
|
|
|
2823
2827
|
"email.sequence.enrollment.stop": Record<string, unknown>;
|
|
2824
2828
|
/** Discover LinkedIn sender ids, labels, availability and remaining capacity visible to the acting workspace member. Never returns provider credentials. — `dench campaign accounts` — GET /api/v1/campaigns/accounts/linkedin */
|
|
2825
2829
|
"campaigns.accounts.linkedin": Record<string, unknown>;
|
|
2830
|
+
/** Send one LinkedIn message now as the acting member, like the Inbox's Send button: not paced, 1st-degree connections only. Only use for an explicit send request. — `dench campaign linkedin send` — POST /api/v1/campaigns/linkedin/messages */
|
|
2831
|
+
"campaigns.linkedin.send": {
|
|
2832
|
+
/** The recipient's LinkedIn profile URL (linkedin.com/in/…) or its public identifier. */
|
|
2833
|
+
profileUrl: string;
|
|
2834
|
+
/** The message, as sent. */
|
|
2835
|
+
text: string;
|
|
2836
|
+
/** Which of your LinkedIn accounts sends it, when you have more than one (from campaigns.accounts.linkedin). */
|
|
2837
|
+
linkedinAccountId?: string;
|
|
2838
|
+
};
|
|
2826
2839
|
/** Discover the mailboxes the acting workspace member can send campaign email from: ids for emailMailboxAccountIds, status, warm-up state and when it is done, the daily cold-email cap and what is left today. Never returns provider credentials. — `dench campaign accounts` — GET /api/v1/campaigns/accounts/email */
|
|
2827
2840
|
"campaigns.accounts.email": Record<string, unknown>;
|
|
2828
2841
|
/** List outreach campaigns of every kind on the Campaigns page, each with its kind (archived ones on request). — `dench campaign list [--with-references]` — GET /api/v1/campaigns */
|
|
@@ -3859,6 +3872,23 @@ export interface ApiResponses {
|
|
|
3859
3872
|
people: Record<string, unknown>[];
|
|
3860
3873
|
[key: string]: unknown;
|
|
3861
3874
|
};
|
|
3875
|
+
"campaigns.builder.leads": {
|
|
3876
|
+
status: string;
|
|
3877
|
+
checking: number;
|
|
3878
|
+
leads: {
|
|
3879
|
+
leadId: string;
|
|
3880
|
+
signal: string;
|
|
3881
|
+
personName: string;
|
|
3882
|
+
title?: string;
|
|
3883
|
+
linkedinUrl?: string;
|
|
3884
|
+
companyName: string;
|
|
3885
|
+
companyDomain: string;
|
|
3886
|
+
headline: string;
|
|
3887
|
+
evidence?: string;
|
|
3888
|
+
[key: string]: unknown;
|
|
3889
|
+
}[];
|
|
3890
|
+
[key: string]: unknown;
|
|
3891
|
+
};
|
|
3862
3892
|
"campaigns.builder.build": {
|
|
3863
3893
|
ok: boolean;
|
|
3864
3894
|
started: boolean;
|
|
@@ -7036,6 +7066,17 @@ export interface ApiResponses {
|
|
|
7036
7066
|
/** Account availability snapshot. Queued work, campaign limits and launch/dispatch checks still apply. */
|
|
7037
7067
|
availability: "ready" | "paused" | "disconnected" | "errored" | "disabled" | "circuit_break" | "spacing" | "outside_window" | "daily_cap";
|
|
7038
7068
|
}>;
|
|
7069
|
+
"campaigns.linkedin.send": {
|
|
7070
|
+
ok: true;
|
|
7071
|
+
sent: true;
|
|
7072
|
+
recipient: {
|
|
7073
|
+
name: string | null;
|
|
7074
|
+
profile_url: string | null;
|
|
7075
|
+
};
|
|
7076
|
+
chat_id: string;
|
|
7077
|
+
message_id: string | null;
|
|
7078
|
+
[key: string]: unknown;
|
|
7079
|
+
};
|
|
7039
7080
|
"campaigns.accounts.email": Array<{
|
|
7040
7081
|
/** The emailMailboxAccountId to put in emailMailboxAccountIds. */
|
|
7041
7082
|
_id: string;
|
|
@@ -9015,6 +9056,8 @@ export type DenchApiTree = {
|
|
|
9015
9056
|
estimate(args: Req<"campaigns.builder.estimate">): Promise<Res<"campaigns.builder.estimate">>;
|
|
9016
9057
|
/** Read signal build progress, preview people, messages and errors. (`dench campaign builder get`) */
|
|
9017
9058
|
get(args: Req<"campaigns.builder.get">): Promise<Res<"campaigns.builder.get">>;
|
|
9059
|
+
/** Read every lead a signal build kept (not just the five previewed): person, company, LinkedIn URL and the signal's evidence. (`dench campaign builder leads`) */
|
|
9060
|
+
leads(args: Req<"campaigns.builder.leads">): Promise<Res<"campaigns.builder.leads">>;
|
|
9018
9061
|
/** Set up a lookalike from the best lead's LinkedIn URL (role, similar roles, place, industry, similar companies), suggest roles again, or re-scope to a company. Nothing is saved. Provider credits apply. (`dench campaign builder lookalike`) */
|
|
9019
9062
|
lookalike(args: Req<"campaigns.builder.lookalike">): Promise<Res<"campaigns.builder.lookalike">>;
|
|
9020
9063
|
/** Edit or reset one preview person's opening line before creating the campaign. (`dench campaign builder opener`) */
|
|
@@ -9051,6 +9094,10 @@ export type DenchApiTree = {
|
|
|
9051
9094
|
/** Launch readiness without launching: blockers grouped by problem, warnings, and the fingerprint `launch` requires. (`dench campaign launch --check`) */
|
|
9052
9095
|
preview(args: Req<"campaigns.launch.preview">): Promise<Res<"campaigns.launch.preview">>;
|
|
9053
9096
|
};
|
|
9097
|
+
linkedin: {
|
|
9098
|
+
/** Send one LinkedIn message now as the acting member, like the Inbox's Send button: not paced, 1st-degree connections only. Only use for an explicit send request. (`dench campaign linkedin send`) */
|
|
9099
|
+
send(args: Req<"campaigns.linkedin.send">): Promise<Res<"campaigns.linkedin.send">>;
|
|
9100
|
+
};
|
|
9054
9101
|
/** List outreach campaigns of every kind on the Campaigns page, each with its kind (archived ones on request). (`dench campaign list [--with-references]`) */
|
|
9055
9102
|
list(args?: Req<"campaigns.list">): Promise<Res<"campaigns.list">>;
|
|
9056
9103
|
/** What the campaign is doing now, what comes next and when, and why it is holding. (`dench campaign get`) */
|
package/campaign.ts
CHANGED
|
@@ -4445,6 +4445,47 @@ async function runAccounts(ctx: CampaignCliContext): Promise<void> {
|
|
|
4445
4445
|
);
|
|
4446
4446
|
}
|
|
4447
4447
|
|
|
4448
|
+
/**
|
|
4449
|
+
* One LinkedIn message, sent now as the signed-in member (the Inbox's Send
|
|
4450
|
+
* button). Campaign LinkedIn steps and `dench tool run LINKEDIN_SEND_MESSAGE`
|
|
4451
|
+
* are paced instead; this is for a message a person asked to send.
|
|
4452
|
+
*/
|
|
4453
|
+
async function runLinkedinSend(ctx: CampaignCliContext): Promise<void> {
|
|
4454
|
+
const verb = shift(ctx.args, "linkedin subcommand (send)");
|
|
4455
|
+
if (verb !== "send") {
|
|
4456
|
+
throw new CampaignCliError(
|
|
4457
|
+
`Unknown campaign linkedin subcommand: ${verb}. Use: dench campaign linkedin send --to <profile-url> --text "..."`,
|
|
4458
|
+
);
|
|
4459
|
+
}
|
|
4460
|
+
const profileUrl = getFlag(ctx.args, "--to");
|
|
4461
|
+
const text = getFlag(ctx.args, "--text");
|
|
4462
|
+
const linkedinAccountId = getFlag(ctx.args, "--account");
|
|
4463
|
+
unknownFlags(ctx.args, "campaign linkedin send");
|
|
4464
|
+
if (!profileUrl || !text) {
|
|
4465
|
+
throw new CampaignCliError(
|
|
4466
|
+
'Pass --to <linkedin profile url> and --text "...".',
|
|
4467
|
+
);
|
|
4468
|
+
}
|
|
4469
|
+
const result = (await callAction(
|
|
4470
|
+
ctx,
|
|
4471
|
+
"functions/unipileToolsNode:sendLinkedinMessage",
|
|
4472
|
+
{ profileUrl, text, ...(linkedinAccountId ? { linkedinAccountId } : {}) },
|
|
4473
|
+
)) as JsonRecord;
|
|
4474
|
+
if (result.ok !== true) {
|
|
4475
|
+
throw new CampaignCliError(
|
|
4476
|
+
typeof result.error === "string"
|
|
4477
|
+
? result.error
|
|
4478
|
+
: "The LinkedIn message was not sent.",
|
|
4479
|
+
);
|
|
4480
|
+
}
|
|
4481
|
+
const recipient = (result.recipient ?? {}) as JsonRecord;
|
|
4482
|
+
out(
|
|
4483
|
+
ctx,
|
|
4484
|
+
result,
|
|
4485
|
+
`Sent to ${typeof recipient.name === "string" ? recipient.name : profileUrl} on LinkedIn.`,
|
|
4486
|
+
);
|
|
4487
|
+
}
|
|
4488
|
+
|
|
4448
4489
|
// ─── Help ─────────────────────────────────────────────────────────────────
|
|
4449
4490
|
|
|
4450
4491
|
const SUBCOMMAND_ALIASES: Record<string, string> = {
|
|
@@ -4529,6 +4570,8 @@ Browse:
|
|
|
4529
4570
|
dench campaign pipeline <campaign> # how many of its people are at each lead Status (New, Contacted, Replied, ...)
|
|
4530
4571
|
dench campaign where <entryId> # the campaigns a CRM record (person or lead) is in, and its status in each
|
|
4531
4572
|
dench campaign accounts # email + LinkedIn sender ids, warm-up, availability and capacity
|
|
4573
|
+
dench campaign linkedin send --to <profile-url> --text "..." [--account <linkedinAccountId>]
|
|
4574
|
+
Send one LinkedIn message now as you (not paced; 1st-degree connections only).
|
|
4532
4575
|
|
|
4533
4576
|
Create and configure:
|
|
4534
4577
|
dench campaign create --name "Founder outreach" [--timezone America/Los_Angeles] \\
|
|
@@ -4602,6 +4645,7 @@ Campaign builder (the app's New campaign flow; references/CAMPAIGNS.md walks it)
|
|
|
4602
4645
|
dench campaign builder save --file draft.json # source, name, targeting, signals, signalTerms, findMoreMatching, lookalike
|
|
4603
4646
|
dench campaign builder build <draftId> # finds the first people and writes messages; poll builder get
|
|
4604
4647
|
dench campaign builder get <draftId>
|
|
4648
|
+
dench campaign builder leads <draftId> # every person the build kept, with LinkedIn URL and evidence
|
|
4605
4649
|
dench campaign builder opener <draftId> <leadId> --text "Opening line"
|
|
4606
4650
|
dench campaign builder sequence <draftId> --goal "Book a demo" --help-with "..." [--tone conversational|warm|direct|formal] [--channels both|email|linkedin]
|
|
4607
4651
|
dench campaign builder outreach <draftId> --file outreach.json [--mode ai|manual] [--approval auto|manual]
|
|
@@ -4854,6 +4898,8 @@ export async function runCampaignCommand(opts: {
|
|
|
4854
4898
|
case "accounts":
|
|
4855
4899
|
case "senders":
|
|
4856
4900
|
return await runAccounts(ctx);
|
|
4901
|
+
case "linkedin":
|
|
4902
|
+
return await runLinkedinSend(ctx);
|
|
4857
4903
|
default:
|
|
4858
4904
|
throw new CampaignCliError(
|
|
4859
4905
|
unknownSubcommandMessage(subcommand, await cliVersion()),
|
package/lib/api-schemas.ts
CHANGED
|
@@ -3428,6 +3428,7 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
|
|
|
3428
3428
|
})
|
|
3429
3429
|
.strict(),
|
|
3430
3430
|
"campaigns.builder.get": z.object({ draftId: z.string() }).strict(),
|
|
3431
|
+
"campaigns.builder.leads": z.object({ draftId: z.string() }).strict(),
|
|
3431
3432
|
"campaigns.builder.build": z.object({ draftId: z.string() }).strict(),
|
|
3432
3433
|
"campaigns.builder.create": z
|
|
3433
3434
|
.object({
|
|
@@ -3507,6 +3508,24 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
|
|
|
3507
3508
|
})
|
|
3508
3509
|
.strict(),
|
|
3509
3510
|
"campaigns.accounts.linkedin": noInput,
|
|
3511
|
+
"campaigns.linkedin.send": z
|
|
3512
|
+
.object({
|
|
3513
|
+
profileUrl: z
|
|
3514
|
+
.string()
|
|
3515
|
+
.min(1)
|
|
3516
|
+
.max(500)
|
|
3517
|
+
.describe(
|
|
3518
|
+
"The recipient's LinkedIn profile URL (linkedin.com/in/…) or its public identifier.",
|
|
3519
|
+
),
|
|
3520
|
+
text: z.string().min(1).max(3000).describe("The message, as sent."),
|
|
3521
|
+
linkedinAccountId: z
|
|
3522
|
+
.string()
|
|
3523
|
+
.optional()
|
|
3524
|
+
.describe(
|
|
3525
|
+
"Which of your LinkedIn accounts sends it, when you have more than one (from campaigns.accounts.linkedin).",
|
|
3526
|
+
),
|
|
3527
|
+
})
|
|
3528
|
+
.strict(),
|
|
3510
3529
|
"campaigns.accounts.email": noInput,
|
|
3511
3530
|
"campaigns.list": z.object({
|
|
3512
3531
|
...withReferencesRequest,
|
|
@@ -5576,6 +5595,27 @@ export const responseSchemas: Record<string, ZodTypeAny> = {
|
|
|
5576
5595
|
people: z.array(z.record(z.string(), z.unknown())),
|
|
5577
5596
|
})
|
|
5578
5597
|
.passthrough(),
|
|
5598
|
+
"campaigns.builder.leads": z
|
|
5599
|
+
.object({
|
|
5600
|
+
status: z.string(),
|
|
5601
|
+
checking: z.number(),
|
|
5602
|
+
leads: z.array(
|
|
5603
|
+
z
|
|
5604
|
+
.object({
|
|
5605
|
+
leadId: z.string(),
|
|
5606
|
+
signal: z.string(),
|
|
5607
|
+
personName: z.string(),
|
|
5608
|
+
title: z.string().optional(),
|
|
5609
|
+
linkedinUrl: z.string().optional(),
|
|
5610
|
+
companyName: z.string(),
|
|
5611
|
+
companyDomain: z.string(),
|
|
5612
|
+
headline: z.string(),
|
|
5613
|
+
evidence: z.string().optional(),
|
|
5614
|
+
})
|
|
5615
|
+
.passthrough(),
|
|
5616
|
+
),
|
|
5617
|
+
})
|
|
5618
|
+
.passthrough(),
|
|
5579
5619
|
"campaigns.builder.build": z.object({
|
|
5580
5620
|
ok: z.boolean(),
|
|
5581
5621
|
started: z.boolean(),
|
|
@@ -5609,6 +5649,18 @@ export const responseSchemas: Record<string, ZodTypeAny> = {
|
|
|
5609
5649
|
// Meta
|
|
5610
5650
|
// Outreach campaigns (dench campaign)
|
|
5611
5651
|
"campaigns.accounts.linkedin": z.array(campaignLinkedinSenderSummary),
|
|
5652
|
+
"campaigns.linkedin.send": z
|
|
5653
|
+
.object({
|
|
5654
|
+
ok: z.literal(true),
|
|
5655
|
+
sent: z.literal(true),
|
|
5656
|
+
recipient: z.object({
|
|
5657
|
+
name: z.string().nullable(),
|
|
5658
|
+
profile_url: z.string().nullable(),
|
|
5659
|
+
}),
|
|
5660
|
+
chat_id: z.string(),
|
|
5661
|
+
message_id: z.string().nullable(),
|
|
5662
|
+
})
|
|
5663
|
+
.passthrough(),
|
|
5612
5664
|
"campaigns.accounts.email": z.array(campaignMailboxSummary),
|
|
5613
5665
|
"campaigns.list": referenceListResponse(campaignListRow),
|
|
5614
5666
|
"campaigns.create": z.object({
|
|
@@ -7053,6 +7105,10 @@ export const requestExamples: Record<string, unknown> = {
|
|
|
7053
7105
|
textBody: "Hello Ada",
|
|
7054
7106
|
},
|
|
7055
7107
|
"campaigns.accounts.linkedin": {},
|
|
7108
|
+
"campaigns.linkedin.send": {
|
|
7109
|
+
profileUrl: "https://www.linkedin.com/in/ada-lovelace",
|
|
7110
|
+
text: "Hi Ada, great meeting you at the summit!",
|
|
7111
|
+
},
|
|
7056
7112
|
"campaigns.create": {
|
|
7057
7113
|
name: "Founder outreach",
|
|
7058
7114
|
timezone: "America/Los_Angeles",
|
|
@@ -7612,6 +7668,16 @@ export const responseExamples: Record<string, unknown> = {
|
|
|
7612
7668
|
availability: "ready",
|
|
7613
7669
|
},
|
|
7614
7670
|
],
|
|
7671
|
+
"campaigns.linkedin.send": {
|
|
7672
|
+
ok: true,
|
|
7673
|
+
sent: true,
|
|
7674
|
+
recipient: {
|
|
7675
|
+
name: "Ada Lovelace",
|
|
7676
|
+
profile_url: "https://www.linkedin.com/in/ada-lovelace",
|
|
7677
|
+
},
|
|
7678
|
+
chat_id: "<chatId>",
|
|
7679
|
+
message_id: "<messageId>",
|
|
7680
|
+
},
|
|
7615
7681
|
"browser.session.create": {
|
|
7616
7682
|
provider: "dench_browser",
|
|
7617
7683
|
sessionId: "bb_sess_123",
|
|
@@ -112,6 +112,7 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
|
|
|
112
112
|
{"id":"campaigns.builder.profile","group":"campaigns","summary":"Read the company profile and suggested campaign audience.","cli":"dench campaign builder profile","method":"GET","path":"/campaigns/builder/profile","permission":"campaigns:read","pathParams":[]},
|
|
113
113
|
{"id":"campaigns.builder.save","group":"campaigns","summary":"Save a signal campaign's audience, signals and terms idempotently. Does not start a build.","cli":"dench campaign builder save","method":"POST","path":"/campaigns/builder/drafts","permission":"campaigns:write","pathParams":[]},
|
|
114
114
|
{"id":"campaigns.builder.get","group":"campaigns","summary":"Read signal build progress, preview people, messages and errors.","cli":"dench campaign builder get","method":"GET","path":"/campaigns/builder/drafts/{draftId}","permission":"campaigns:read","pathParams":["draftId"]},
|
|
115
|
+
{"id":"campaigns.builder.leads","group":"campaigns","summary":"Read every lead a signal build kept (not just the five previewed): person, company, LinkedIn URL and the signal's evidence.","cli":"dench campaign builder leads","method":"GET","path":"/campaigns/builder/drafts/{draftId}/leads","permission":"campaigns:read","pathParams":["draftId"]},
|
|
115
116
|
{"id":"campaigns.builder.build","group":"campaigns","summary":"Start the same billable signal/audience/message build used by the UI; poll the draft for progress.","cli":"dench campaign builder build","method":"POST","path":"/campaigns/builder/drafts/{draftId}/build","permission":"campaigns:write","pathParams":["draftId"]},
|
|
116
117
|
{"id":"campaigns.builder.create","group":"campaigns","summary":"Create a campaign from a reviewed signal draft. Does not launch the campaign.","cli":"dench campaign builder create","method":"POST","path":"/campaigns/builder/drafts/{draftId}/create","permission":"campaigns:write","pathParams":["draftId"]},
|
|
117
118
|
{"id":"campaigns.builder.opener","group":"campaigns","summary":"Edit or reset one preview person's opening line before creating the campaign.","cli":"dench campaign builder opener","method":"PUT","path":"/campaigns/builder/drafts/{draftId}/people/{leadId}/opener","permission":"campaigns:write","pathParams":["draftId","leadId"]},
|
|
@@ -391,6 +392,7 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
|
|
|
391
392
|
{"id":"email.sequence.enrollment.resume","group":"email","summary":"Resume one paused enrollment.","cli":"dench email sequence enrollment resume","method":"POST","path":"/email/sequences/enrollments/{enrollmentId}/resume","permission":"email:write","pathParams":["enrollmentId"]},
|
|
392
393
|
{"id":"email.sequence.enrollment.stop","group":"email","summary":"Stop one enrollment (no further steps send).","cli":"dench email sequence enrollment stop","method":"POST","path":"/email/sequences/enrollments/{enrollmentId}/stop","permission":"email:write","pathParams":["enrollmentId"]},
|
|
393
394
|
{"id":"campaigns.accounts.linkedin","group":"campaigns","summary":"Discover LinkedIn sender ids, labels, availability and remaining capacity visible to the acting workspace member. Never returns provider credentials.","cli":"dench campaign accounts","method":"GET","path":"/campaigns/accounts/linkedin","permission":"campaigns:read","pathParams":[]},
|
|
395
|
+
{"id":"campaigns.linkedin.send","group":"campaigns","summary":"Send one LinkedIn message now as the acting member, like the Inbox's Send button: not paced, 1st-degree connections only. Only use for an explicit send request.","cli":"dench campaign linkedin send","method":"POST","path":"/campaigns/linkedin/messages","permission":"campaigns:write","pathParams":[]},
|
|
394
396
|
{"id":"campaigns.accounts.email","group":"campaigns","summary":"Discover the mailboxes the acting workspace member can send campaign email from: ids for emailMailboxAccountIds, status, warm-up state and when it is done, the daily cold-email cap and what is left today. Never returns provider credentials.","cli":"dench campaign accounts","method":"GET","path":"/campaigns/accounts/email","permission":"campaigns:read","pathParams":[]},
|
|
395
397
|
{"id":"campaigns.list","group":"campaigns","summary":"List outreach campaigns of every kind on the Campaigns page, each with its kind (archived ones on request).","cli":"dench campaign list [--with-references]","method":"GET","path":"/campaigns","permission":"campaigns:read","pathParams":[]},
|
|
396
398
|
{"id":"campaigns.create","group":"campaigns","summary":"Create a draft outreach campaign with email and LinkedIn sender pools and a business-hours send window in the given timezone.","cli":"dench campaign create","method":"POST","path":"/campaigns","permission":"campaigns:write","pathParams":[]},
|
package/lib/campaign-agent.ts
CHANGED
|
@@ -2010,6 +2010,7 @@ export async function runCampaignAgentCommand(
|
|
|
2010
2010
|
"profile",
|
|
2011
2011
|
"save",
|
|
2012
2012
|
"get",
|
|
2013
|
+
"leads",
|
|
2013
2014
|
"build",
|
|
2014
2015
|
"create",
|
|
2015
2016
|
"opener",
|
|
@@ -2025,7 +2026,7 @@ export async function runCampaignAgentCommand(
|
|
|
2025
2026
|
]);
|
|
2026
2027
|
if (!verbs.has(verb))
|
|
2027
2028
|
throw new Error(
|
|
2028
|
-
"Use campaign builder run|profile|autofill|estimate|lookalike|voices|save|get|build|opener|outreach|sequence|create|drafts|resume|discard",
|
|
2029
|
+
"Use campaign builder run|profile|autofill|estimate|lookalike|voices|save|get|leads|build|opener|outreach|sequence|create|drafts|resume|discard",
|
|
2029
2030
|
);
|
|
2030
2031
|
const name = value(ctx.args, "--name");
|
|
2031
2032
|
const timezone = value(ctx.args, "--timezone");
|
|
@@ -2065,6 +2066,7 @@ export async function runCampaignAgentCommand(
|
|
|
2065
2066
|
if (
|
|
2066
2067
|
[
|
|
2067
2068
|
"get",
|
|
2069
|
+
"leads",
|
|
2068
2070
|
"build",
|
|
2069
2071
|
"create",
|
|
2070
2072
|
"opener",
|
package/lib/command-registry.ts
CHANGED
|
@@ -540,6 +540,18 @@ const rawApiOperations = [
|
|
|
540
540
|
responseSchema: anyResponse,
|
|
541
541
|
backend: convex("query", "functions/outreachSignalCampaigns:getDraft"),
|
|
542
542
|
}),
|
|
543
|
+
op({
|
|
544
|
+
id: "campaigns.builder.leads",
|
|
545
|
+
group: "campaigns",
|
|
546
|
+
summary:
|
|
547
|
+
"Read every lead a signal build kept (not just the five previewed): person, company, LinkedIn URL and the signal's evidence.",
|
|
548
|
+
cli: "dench campaign builder leads",
|
|
549
|
+
method: "GET",
|
|
550
|
+
path: "/campaigns/builder/drafts/{draftId}/leads",
|
|
551
|
+
requestSchema: anyObject,
|
|
552
|
+
responseSchema: anyResponse,
|
|
553
|
+
backend: convex("query", "functions/outreachSignalCampaigns:getDraftLeads"),
|
|
554
|
+
}),
|
|
543
555
|
op({
|
|
544
556
|
id: "campaigns.builder.build",
|
|
545
557
|
group: "campaigns",
|
|
@@ -4366,6 +4378,18 @@ const rawApiOperations = [
|
|
|
4366
4378
|
responseSchema: anyResponse,
|
|
4367
4379
|
backend: convex("query", "functions/linkedinAccounts:listSenderAccounts"),
|
|
4368
4380
|
}),
|
|
4381
|
+
op({
|
|
4382
|
+
id: "campaigns.linkedin.send",
|
|
4383
|
+
group: "campaigns",
|
|
4384
|
+
summary:
|
|
4385
|
+
"Send one LinkedIn message now as the acting member, like the Inbox's Send button: not paced, 1st-degree connections only. Only use for an explicit send request.",
|
|
4386
|
+
cli: "dench campaign linkedin send",
|
|
4387
|
+
method: "POST",
|
|
4388
|
+
path: "/campaigns/linkedin/messages",
|
|
4389
|
+
requestSchema: anyObject,
|
|
4390
|
+
responseSchema: anyResponse,
|
|
4391
|
+
backend: convex("action", "functions/unipileToolsNode:sendLinkedinMessage"),
|
|
4392
|
+
}),
|
|
4369
4393
|
op({
|
|
4370
4394
|
id: "campaigns.accounts.email",
|
|
4371
4395
|
group: "campaigns",
|