@dench.com/cli 3.11.21 → 3.11.23-staging.604
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
CHANGED
|
@@ -891,6 +891,7 @@ export interface ApiRequests {
|
|
|
891
891
|
limit?: number;
|
|
892
892
|
includeArchived?: boolean;
|
|
893
893
|
includeAutomated?: boolean;
|
|
894
|
+
excludeThreadId?: string;
|
|
894
895
|
};
|
|
895
896
|
/** Search past chat messages. — `dench chat search` — GET /api/v1/chat/search */
|
|
896
897
|
"chat.search": {
|
|
@@ -2822,7 +2823,7 @@ export interface ApiRequests {
|
|
|
2822
2823
|
"campaigns.accounts.linkedin": Record<string, unknown>;
|
|
2823
2824
|
/** 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 */
|
|
2824
2825
|
"campaigns.accounts.email": Record<string, unknown>;
|
|
2825
|
-
/** List outreach campaigns (archived ones on request). — `dench campaign list [--with-references]` — GET /api/v1/campaigns */
|
|
2826
|
+
/** 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 */
|
|
2826
2827
|
"campaigns.list": {
|
|
2827
2828
|
/** Include bounded navigation references. Array reads return {data, references, referenceCoverage}; existing result envelopes keep their fields. */
|
|
2828
2829
|
withReferences?: boolean;
|
|
@@ -7094,6 +7095,30 @@ export interface ApiResponses {
|
|
|
7094
7095
|
isOwner?: boolean;
|
|
7095
7096
|
createdAt: number;
|
|
7096
7097
|
updatedAt: number;
|
|
7098
|
+
/** Read with campaigns.get. */
|
|
7099
|
+
kind: "multichannel";
|
|
7100
|
+
[key: string]: unknown;
|
|
7101
|
+
} | {
|
|
7102
|
+
_id: string;
|
|
7103
|
+
/** Read with email.sequence.get. */
|
|
7104
|
+
kind: "email_sequence";
|
|
7105
|
+
name: string;
|
|
7106
|
+
status: "draft" | "active" | "archived";
|
|
7107
|
+
stepCount: number;
|
|
7108
|
+
totalEnrolled: number;
|
|
7109
|
+
createdAt: number;
|
|
7110
|
+
updatedAt: number;
|
|
7111
|
+
[key: string]: unknown;
|
|
7112
|
+
} | {
|
|
7113
|
+
_id: string;
|
|
7114
|
+
/** A legacy LinkedIn-only sequence, opened in the app. */
|
|
7115
|
+
kind: "linkedin_sequence";
|
|
7116
|
+
name: string;
|
|
7117
|
+
status: "draft" | "active" | "paused" | "completed" | "cancelled" | "archived";
|
|
7118
|
+
ownerName?: string;
|
|
7119
|
+
isOwner?: boolean;
|
|
7120
|
+
createdAt: number;
|
|
7121
|
+
updatedAt: number;
|
|
7097
7122
|
[key: string]: unknown;
|
|
7098
7123
|
}> | {
|
|
7099
7124
|
data: Array<{
|
|
@@ -7137,6 +7162,30 @@ export interface ApiResponses {
|
|
|
7137
7162
|
isOwner?: boolean;
|
|
7138
7163
|
createdAt: number;
|
|
7139
7164
|
updatedAt: number;
|
|
7165
|
+
/** Read with campaigns.get. */
|
|
7166
|
+
kind: "multichannel";
|
|
7167
|
+
[key: string]: unknown;
|
|
7168
|
+
} | {
|
|
7169
|
+
_id: string;
|
|
7170
|
+
/** Read with email.sequence.get. */
|
|
7171
|
+
kind: "email_sequence";
|
|
7172
|
+
name: string;
|
|
7173
|
+
status: "draft" | "active" | "archived";
|
|
7174
|
+
stepCount: number;
|
|
7175
|
+
totalEnrolled: number;
|
|
7176
|
+
createdAt: number;
|
|
7177
|
+
updatedAt: number;
|
|
7178
|
+
[key: string]: unknown;
|
|
7179
|
+
} | {
|
|
7180
|
+
_id: string;
|
|
7181
|
+
/** A legacy LinkedIn-only sequence, opened in the app. */
|
|
7182
|
+
kind: "linkedin_sequence";
|
|
7183
|
+
name: string;
|
|
7184
|
+
status: "draft" | "active" | "paused" | "completed" | "cancelled" | "archived";
|
|
7185
|
+
ownerName?: string;
|
|
7186
|
+
isOwner?: boolean;
|
|
7187
|
+
createdAt: number;
|
|
7188
|
+
updatedAt: number;
|
|
7140
7189
|
[key: string]: unknown;
|
|
7141
7190
|
}>;
|
|
7142
7191
|
references: Array<{
|
|
@@ -9000,7 +9049,7 @@ export type DenchApiTree = {
|
|
|
9000
9049
|
/** Launch readiness without launching: blockers grouped by problem, warnings, and the fingerprint `launch` requires. (`dench campaign launch --check`) */
|
|
9001
9050
|
preview(args: Req<"campaigns.launch.preview">): Promise<Res<"campaigns.launch.preview">>;
|
|
9002
9051
|
};
|
|
9003
|
-
/** List outreach campaigns (archived ones on request). (`dench campaign list [--with-references]`) */
|
|
9052
|
+
/** List outreach campaigns of every kind on the Campaigns page, each with its kind (archived ones on request). (`dench campaign list [--with-references]`) */
|
|
9004
9053
|
list(args?: Req<"campaigns.list">): Promise<Res<"campaigns.list">>;
|
|
9005
9054
|
/** What the campaign is doing now, what comes next and when, and why it is holding. (`dench campaign get`) */
|
|
9006
9055
|
live(args: Req<"campaigns.live">): Promise<Res<"campaigns.live">>;
|
package/lib/api-schemas.ts
CHANGED
|
@@ -1012,6 +1012,48 @@ const campaignRow = z
|
|
|
1012
1012
|
})
|
|
1013
1013
|
.passthrough();
|
|
1014
1014
|
|
|
1015
|
+
/** campaigns.list rows: the Campaigns page's three kinds. */
|
|
1016
|
+
const campaignListRow = z.union([
|
|
1017
|
+
campaignRow.extend({
|
|
1018
|
+
kind: z.literal("multichannel").describe("Read with campaigns.get."),
|
|
1019
|
+
}),
|
|
1020
|
+
z
|
|
1021
|
+
.object({
|
|
1022
|
+
_id: z.string(),
|
|
1023
|
+
kind: z
|
|
1024
|
+
.literal("email_sequence")
|
|
1025
|
+
.describe("Read with email.sequence.get."),
|
|
1026
|
+
name: z.string(),
|
|
1027
|
+
status: z.enum(["draft", "active", "archived"]),
|
|
1028
|
+
stepCount: z.number(),
|
|
1029
|
+
totalEnrolled: z.number(),
|
|
1030
|
+
createdAt: z.number(),
|
|
1031
|
+
updatedAt: z.number(),
|
|
1032
|
+
})
|
|
1033
|
+
.passthrough(),
|
|
1034
|
+
z
|
|
1035
|
+
.object({
|
|
1036
|
+
_id: z.string(),
|
|
1037
|
+
kind: z
|
|
1038
|
+
.literal("linkedin_sequence")
|
|
1039
|
+
.describe("A legacy LinkedIn-only sequence, opened in the app."),
|
|
1040
|
+
name: z.string(),
|
|
1041
|
+
status: z.enum([
|
|
1042
|
+
"draft",
|
|
1043
|
+
"active",
|
|
1044
|
+
"paused",
|
|
1045
|
+
"completed",
|
|
1046
|
+
"cancelled",
|
|
1047
|
+
"archived",
|
|
1048
|
+
]),
|
|
1049
|
+
ownerName: z.string().optional(),
|
|
1050
|
+
isOwner: z.boolean().optional(),
|
|
1051
|
+
createdAt: z.number(),
|
|
1052
|
+
updatedAt: z.number(),
|
|
1053
|
+
})
|
|
1054
|
+
.passthrough(),
|
|
1055
|
+
]);
|
|
1056
|
+
|
|
1015
1057
|
const campaignEnrollResult = z.object({
|
|
1016
1058
|
added: z.number(),
|
|
1017
1059
|
requested: z.number(),
|
|
@@ -4021,6 +4063,7 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
|
|
|
4021
4063
|
limit: z.coerce.number().int().min(1).max(100).optional(),
|
|
4022
4064
|
includeArchived: z.coerce.boolean().optional(),
|
|
4023
4065
|
includeAutomated: z.coerce.boolean().optional(),
|
|
4066
|
+
excludeThreadId: z.string().optional(),
|
|
4024
4067
|
}),
|
|
4025
4068
|
"chat.search": z.object({
|
|
4026
4069
|
query: z.string().describe("Full-text query across past messages."),
|
|
@@ -5561,7 +5604,7 @@ export const responseSchemas: Record<string, ZodTypeAny> = {
|
|
|
5561
5604
|
// Outreach campaigns (dench campaign)
|
|
5562
5605
|
"campaigns.accounts.linkedin": z.array(campaignLinkedinSenderSummary),
|
|
5563
5606
|
"campaigns.accounts.email": z.array(campaignMailboxSummary),
|
|
5564
|
-
"campaigns.list": referenceListResponse(
|
|
5607
|
+
"campaigns.list": referenceListResponse(campaignListRow),
|
|
5565
5608
|
"campaigns.create": z.object({
|
|
5566
5609
|
sequenceId: z.string(),
|
|
5567
5610
|
...optionalWorkspaceReferenceFields,
|
|
@@ -6840,7 +6883,7 @@ export type ConvexExtras = {
|
|
|
6840
6883
|
export const convexExtras: Record<string, ConvexExtras> = {
|
|
6841
6884
|
"campaigns.list": {
|
|
6842
6885
|
withReferencesFunctionName:
|
|
6843
|
-
"functions/outreachSequences:
|
|
6886
|
+
"functions/outreachSequences:listCampaignsWithReferences",
|
|
6844
6887
|
},
|
|
6845
6888
|
"crm.objects.list": {
|
|
6846
6889
|
withReferencesFunctionName: "functions/crm/objects:listWithReferences",
|
|
@@ -392,7 +392,7 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
|
|
|
392
392
|
{"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
393
|
{"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":[]},
|
|
394
394
|
{"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
|
-
{"id":"campaigns.list","group":"campaigns","summary":"List outreach campaigns (archived ones on request).","cli":"dench campaign list [--with-references]","method":"GET","path":"/campaigns","permission":"campaigns:read","pathParams":[]},
|
|
395
|
+
{"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
396
|
{"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":[]},
|
|
397
397
|
{"id":"campaigns.duplicate","group":"campaigns","summary":"Copy a campaign into a new draft named \"<name> copy\": the same steps, schedule, sender pools and personalized lines, its lead source paused, and no people. To reach more than 300 people, duplicate and add the next page of the search to the copy.","cli":"dench campaign duplicate","method":"POST","path":"/campaigns/{sequenceId}/duplicate","permission":"campaigns:write","pathParams":["sequenceId"]},
|
|
398
398
|
{"id":"campaigns.get","group":"campaigns","summary":"Read a campaign: settings, steps, people, their current step and hold, last touches, linked leads.","cli":"dench campaign get","method":"GET","path":"/campaigns/{sequenceId}","permission":"campaigns:read","pathParams":["sequenceId"]},
|
package/lib/command-registry.ts
CHANGED
|
@@ -4381,13 +4381,14 @@ const rawApiOperations = [
|
|
|
4381
4381
|
op({
|
|
4382
4382
|
id: "campaigns.list",
|
|
4383
4383
|
group: "campaigns",
|
|
4384
|
-
summary:
|
|
4384
|
+
summary:
|
|
4385
|
+
"List outreach campaigns of every kind on the Campaigns page, each with its kind (archived ones on request).",
|
|
4385
4386
|
cli: "dench campaign list [--with-references]",
|
|
4386
4387
|
method: "GET",
|
|
4387
4388
|
path: "/campaigns",
|
|
4388
4389
|
requestSchema: anyObject,
|
|
4389
4390
|
responseSchema: anyResponse,
|
|
4390
|
-
backend: convex("query", "functions/outreachSequences:
|
|
4391
|
+
backend: convex("query", "functions/outreachSequences:listCampaigns"),
|
|
4391
4392
|
}),
|
|
4392
4393
|
op({
|
|
4393
4394
|
id: "campaigns.create",
|