@dench.com/cli 3.3.0-staging.314 → 3.5.0-staging.327
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 +0 -81
- package/app-sdk.d.ts +147 -131
- package/crm-comments.ts +444 -1
- package/crm-detections.ts +261 -0
- package/crm.ts +223 -13
- package/cron.ts +54 -15
- package/dench.ts +39 -28
- package/lib/api-schemas.ts +82 -0
- package/lib/app-sdk-catalog.generated.ts +20 -11
- package/lib/app-sdk-surface.ts +12 -0
- package/lib/command-registry.ts +321 -65
- package/meetings.ts +82 -1
- package/package.json +3 -2
- package/settings.ts +229 -0
- package/lib/signal-agents.ts +0 -454
- package/signals.ts +0 -109
package/README.md
CHANGED
|
@@ -294,87 +294,6 @@ Qualified: it never purchases contacts, sends outreach, or converts records.
|
|
|
294
294
|
See the [lead-finding workflow](../convex/lib/seedSkills/lead-finding.md)
|
|
295
295
|
and [sales pipeline playbook](../public/references/SALES.md).
|
|
296
296
|
|
|
297
|
-
## Signal Agents
|
|
298
|
-
|
|
299
|
-
Signal Agents continuously update their own prospect lists from saved audiences
|
|
300
|
-
and business signals. Open `~find` in the app to configure them; **Manual search**
|
|
301
|
-
opens `~find/people`. Existing list enrichment and explicit CRM import stay separate.
|
|
302
|
-
Supported signals are hiring, funding, job changes, company news, relevant content,
|
|
303
|
-
and engagement on tracked LinkedIn profiles, company pages and individual posts.
|
|
304
|
-
|
|
305
|
-
Start by checking existing agents and accessible, running LinkedIn connections:
|
|
306
|
-
|
|
307
|
-
```bash
|
|
308
|
-
dench signals list --json
|
|
309
|
-
dench signals catalog --json
|
|
310
|
-
dench signals template --json > signal-agent.template.json
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
Choose the intended account from `catalog.connections` by its name and `id`;
|
|
314
|
-
never invent an ID or assume the first account is the right one. If none is
|
|
315
|
-
available, connect or share an account in **Outreach → Accounts**. LinkedIn is
|
|
316
|
-
required and searched first. People & company data is also required to verify
|
|
317
|
-
the audience; web/news is supporting discovery.
|
|
318
|
-
|
|
319
|
-
The template is an incomplete starting point, not a ready-to-save config. This
|
|
320
|
-
example uses `jq` to keep every required field while setting the account,
|
|
321
|
-
audience and hiring keywords. Replace `<connection-id>` and edit the criteria,
|
|
322
|
-
timezone, schedule and budgets for the intended agent before saving:
|
|
323
|
-
|
|
324
|
-
```bash
|
|
325
|
-
jq --arg account '<connection-id>' '
|
|
326
|
-
.linkedinAccountId = $account |
|
|
327
|
-
.audience.titles = ["VP Sales", "Head of Sales"] |
|
|
328
|
-
.signals = [{type: "hiring", keywords: ["sales operations", "revenue operations"], targets: [], lookbackDays: 30}] |
|
|
329
|
-
.schedule.timezone = "America/New_York"
|
|
330
|
-
' signal-agent.template.json > signal-agent.json
|
|
331
|
-
dench signals create --name "Sales hiring signals" --file signal-agent.json --json
|
|
332
|
-
```
|
|
333
|
-
|
|
334
|
-
Hiring, funding, company news and content need keywords. Post engagement needs
|
|
335
|
-
`targets` containing LinkedIn `/in/` profile URLs, `/company/` page URLs, or
|
|
336
|
-
post/feed-update URLs with activity IDs (10 URLs combined). For example:
|
|
337
|
-
`{"type":"post_engagement","keywords":[],"targets":["https://www.linkedin.com/in/example/","https://www.linkedin.com/company/example/"],"lookbackDays":30}`.
|
|
338
|
-
The agent rotates one target per run. For a profile/company, it resolves the page,
|
|
339
|
-
reads up to three recent original posts, and rotates one for engagement checks.
|
|
340
|
-
Those pages are discovery sources, not an employer restriction on leads; use
|
|
341
|
-
the audience's company filters for that. Resolution and post reads share the
|
|
342
|
-
same account limits as every other LinkedIn call.
|
|
343
|
-
Keep the complete config: API examples showing `config: {}` are placeholders,
|
|
344
|
-
not valid `SignalAgentConfig` values. `--config '<JSON>'` can replace `--file`.
|
|
345
|
-
|
|
346
|
-
Create and update default to **paused**. If create returns `saved: false` with
|
|
347
|
-
`issues`, review those warnings, adjust the config if needed, then repeat that
|
|
348
|
-
same create command with `--accept-warnings` only after approval. Do not repeat
|
|
349
|
-
a successful create; use its returned `agentId` for subsequent commands:
|
|
350
|
-
|
|
351
|
-
```bash
|
|
352
|
-
dench signals get <agentId> --json
|
|
353
|
-
dench signals update <agentId> --name "Sales hiring signals" --file signal-agent.json --json
|
|
354
|
-
# Only after reviewing the config, warnings, schedule and account activity:
|
|
355
|
-
dench signals resume <agentId> --json
|
|
356
|
-
dench signals run <agentId> --json
|
|
357
|
-
dench signals runs <agentId> --json
|
|
358
|
-
dench signals pause <agentId> --json
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
Update replaces the entire config and pauses the agent unless `--active` is
|
|
362
|
-
explicitly passed. It uses the same warning/`--accept-warnings` flow as create.
|
|
363
|
-
Resume enables scheduled execution; run requires an active agent and queues a
|
|
364
|
-
run, not a completed result. Read run history for results and deferred work.
|
|
365
|
-
|
|
366
|
-
Checks are bounded, not exhaustive. LinkedIn defaults to 20 reads per day shared
|
|
367
|
-
across Signal Agents on the same physical account and at least 60-second
|
|
368
|
-
spacing, with method limits, working hours, outreach spacing and cooldowns.
|
|
369
|
-
These controls do not guarantee protection from account restrictions. Repeated
|
|
370
|
-
matches update evidence without duplicating a person or changing their original
|
|
371
|
-
Added date. Pausing retains the list and unfinished evidence.
|
|
372
|
-
|
|
373
|
-
API keys need `crons:read` / `crons:write`; embedded apps declare `signals:read` /
|
|
374
|
-
`signals:write` and use the generated `dench.api.call("signals.create", args)`
|
|
375
|
-
surface. See the [runtime and release notes](../docs/agent-notes/signal-agents.md)
|
|
376
|
-
and the [built-in execution skill](../convex/lib/seedSkills/signal-agents.md).
|
|
377
|
-
|
|
378
297
|
## Outreach campaigns
|
|
379
298
|
|
|
380
299
|
`dench campaign` runs email + LinkedIn outreach campaigns (the Outreach →
|
package/app-sdk.d.ts
CHANGED
|
@@ -545,8 +545,39 @@ export interface ApiRequests {
|
|
|
545
545
|
objectName: string;
|
|
546
546
|
entryId: string;
|
|
547
547
|
};
|
|
548
|
+
/** Queue a full, paged pull of the record's email history from every connected mailbox; the ledger fills as pages land. — `dench crm entries sync-history` — POST /api/v1/crm/objects/{objectName}/entries/{entryId}/sync-history */
|
|
549
|
+
"crm.entries.syncHistory": Record<string, unknown>;
|
|
550
|
+
/** Has Dench read this record's email history? One row per address per mailbox. — `dench crm entries sync-history --status` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/sync-history */
|
|
551
|
+
"crm.entries.syncHistoryStatus": Record<string, unknown>;
|
|
552
|
+
/** Status of the account's research dossier — the delimited `dench:dossier` section Dench keeps in the record's Notes: status, when it was written, how many dated updates followed, the last error. — `dench crm entries dossier` — GET /api/v1/crm/entries/{entryId}/dossier */
|
|
553
|
+
"crm.entries.dossier.get": Record<string, unknown>;
|
|
554
|
+
/** Research the account again and append a fresh dossier section to its Notes (needs a Website / Domain on the record). — `dench crm entries dossier --regenerate` — POST /api/v1/crm/entries/{entryId}/dossier/regenerate */
|
|
555
|
+
"crm.entries.dossier.regenerate": Record<string, unknown>;
|
|
556
|
+
/** List account-detection verdicts — why a domain (or personal address) did or did not become an account: verdict, counterparty type, probabilities, evidence threads, the rows created. `kind` picks the creator: `detections` (email + sweep), `linkedin` (the LinkedIn resolver's rows) or `all` (default). Newest first. — `dench crm detections list` — GET /api/v1/crm/detections */
|
|
557
|
+
"crm.detections.list": Record<string, unknown>;
|
|
558
|
+
/** Undo what the ingestion jobs created since a timestamp (admin): `kind` = `detections` (accounts + contacts from the email detector and the sweep), `linkedin` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), `email-tasks` (auto-created tasks and cases) or `all` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. `dryRun` lists what would go; per-kind counts in `kinds`. — `dench crm detections undo` — POST /api/v1/crm/detections/undo */
|
|
559
|
+
"crm.detections.undo": {
|
|
560
|
+
/** Only verdicts / decisions at or after this ms timestamp. */
|
|
561
|
+
since: number;
|
|
562
|
+
/** Which creator's rows to undo. Default `all`. */
|
|
563
|
+
kind?: "detections" | "linkedin" | "email-tasks" | "all";
|
|
564
|
+
dryRun?: boolean;
|
|
565
|
+
limit?: number;
|
|
566
|
+
};
|
|
548
567
|
/** List a CRM entry's audit history. — `dench crm history` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/history */
|
|
549
568
|
"crm.entries.history": Record<string, unknown>;
|
|
569
|
+
/** List a CRM entry's activity ledger (comments, notes, field changes, emails, meetings, Slack, LinkedIn) in one timeline, newest first by default. — `dench crm activity` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/activity */
|
|
570
|
+
"crm.activity.list": Record<string, unknown>;
|
|
571
|
+
/** The record's generated Brief: health, who owes the next move, open threads, commitments, risks, next step, with provenance. Read this before the ledger. — `dench crm brief` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/brief */
|
|
572
|
+
"crm.brief.get": Record<string, unknown>;
|
|
573
|
+
/** Rebuild a record's Brief from the current timeline. — `dench crm brief --regenerate` — POST /api/v1/crm/objects/{objectName}/entries/{entryId}/brief/regenerate */
|
|
574
|
+
"crm.brief.regenerate": Record<string, unknown>;
|
|
575
|
+
/** Bounded per-source counts of a CRM entry's activity ledger. — `dench crm activity` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/activity/count */
|
|
576
|
+
"crm.activity.count": Record<string, unknown>;
|
|
577
|
+
/** List a CRM entry's notes (titled, document-style comments), newest first. — `dench crm notes list` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/notes */
|
|
578
|
+
"crm.notes.list": Record<string, unknown>;
|
|
579
|
+
/** Add a titled note to a CRM entry's activity timeline (markdown body). Research goes here, never into the Notes document. — `dench crm notes create` — POST /api/v1/crm/objects/{objectName}/entries/{entryId}/notes */
|
|
580
|
+
"crm.notes.create": Record<string, unknown>;
|
|
550
581
|
/** List comments on a CRM entry (roots newest first, with preview replies). — `dench crm comments list` — GET /api/v1/crm/objects/{objectName}/entries/{entryId}/comments */
|
|
551
582
|
"crm.comments.list": {
|
|
552
583
|
objectName: string;
|
|
@@ -1575,6 +1606,16 @@ export interface ApiRequests {
|
|
|
1575
1606
|
/** Drop attendees not in this list. Default merges. */
|
|
1576
1607
|
replace?: boolean;
|
|
1577
1608
|
};
|
|
1609
|
+
/** Whether a meeting is shared with the whole workspace, and whether you may change that. — `dench meetings share` — GET /api/v1/meetings/{meetingEntryId}/sharing */
|
|
1610
|
+
"meetings.sharing.get": {
|
|
1611
|
+
meetingEntryId: string;
|
|
1612
|
+
};
|
|
1613
|
+
/** Share one meeting with the workspace, or take it back to owner + invitees. — `dench meetings share --workspace` — PUT /api/v1/meetings/{meetingEntryId}/sharing */
|
|
1614
|
+
"meetings.sharing.set": {
|
|
1615
|
+
meetingEntryId: string;
|
|
1616
|
+
/** true opens the meeting to every workspace member; false returns it to the owner plus the members who were on the invite. */
|
|
1617
|
+
shared: boolean;
|
|
1618
|
+
};
|
|
1578
1619
|
/** Start Dench Emailing Service sender verification. — `dench email identity verify` — POST /api/v1/email/identities/verify */
|
|
1579
1620
|
"email.identity.verify": {
|
|
1580
1621
|
/** Identity scope. `domain` verifies via DNS (DKIM); `email` verifies a single mailbox via a confirmation email. */
|
|
@@ -1934,109 +1975,6 @@ export interface ApiRequests {
|
|
|
1934
1975
|
"campaigns.archive": {
|
|
1935
1976
|
sequenceId: string;
|
|
1936
1977
|
};
|
|
1937
|
-
/** list signal agents and their discovery configuration. — `dench signals list` — GET /api/v1/signals */
|
|
1938
|
-
"signals.list": Record<string, never>;
|
|
1939
|
-
/** catalog signal agents and their discovery configuration. — `dench signals catalog` — GET /api/v1/signals/catalog */
|
|
1940
|
-
"signals.catalog": Record<string, never>;
|
|
1941
|
-
/** get signal agents and their discovery configuration. — `dench signals get` — GET /api/v1/signals/{agentId} */
|
|
1942
|
-
"signals.get": {
|
|
1943
|
-
agentId: string;
|
|
1944
|
-
};
|
|
1945
|
-
/** runs signal agents and their discovery configuration. — `dench signals runs` — GET /api/v1/signals/{agentId}/runs */
|
|
1946
|
-
"signals.runs": {
|
|
1947
|
-
agentId: string;
|
|
1948
|
-
};
|
|
1949
|
-
/** Save a complete per-agent configuration. Warnings require acknowledgement; new agents default to paused. — `dench signals create` — POST /api/v1/signals */
|
|
1950
|
-
"signals.create": {
|
|
1951
|
-
name: string;
|
|
1952
|
-
config: {
|
|
1953
|
-
audience: {
|
|
1954
|
-
titles: string[];
|
|
1955
|
-
locations: string[];
|
|
1956
|
-
industries: string[];
|
|
1957
|
-
headcountRanges: Array<"1-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001-5000" | "5001-10000" | "10001+">;
|
|
1958
|
-
companyTypes: string[];
|
|
1959
|
-
companyDomains: string[];
|
|
1960
|
-
excludeCompanyDomains: string[];
|
|
1961
|
-
excludeKeywords: string[];
|
|
1962
|
-
additionalCriteria: string;
|
|
1963
|
-
};
|
|
1964
|
-
signals: Array<{
|
|
1965
|
-
type: "hiring" | "funding" | "job_change" | "company_news" | "content" | "post_engagement";
|
|
1966
|
-
keywords: string[];
|
|
1967
|
-
/** For post_engagement: LinkedIn /in/ profiles, /company/ pages or individual post URLs. One target is checked per run. Other signals use keywords, not targets. */
|
|
1968
|
-
targets: string[];
|
|
1969
|
-
lookbackDays: number;
|
|
1970
|
-
}>;
|
|
1971
|
-
/** Must include linkedin (primary, searched first) and data (audience verification). Web is supporting discovery. */
|
|
1972
|
-
sources: Array<"web" | "data" | "linkedin">;
|
|
1973
|
-
/** Required to save or run an agent. Choose an accessible running LinkedIn account ID from signals.catalog; may be omitted only in an incomplete editor/template. */
|
|
1974
|
-
linkedinAccountId?: string;
|
|
1975
|
-
signalMatch: "any" | "all";
|
|
1976
|
-
matchingMode: "precision" | "discovery";
|
|
1977
|
-
schedule: {
|
|
1978
|
-
cadence: "daily" | "weekly" | "every_6_hours";
|
|
1979
|
-
timezone: string;
|
|
1980
|
-
hour: number;
|
|
1981
|
-
};
|
|
1982
|
-
maxLeadsPerRun: number;
|
|
1983
|
-
maxProviderCalls: number;
|
|
1984
|
-
};
|
|
1985
|
-
status?: "active" | "paused";
|
|
1986
|
-
acknowledgeWarnings?: boolean;
|
|
1987
|
-
};
|
|
1988
|
-
/** Save a complete per-agent configuration. Warnings require acknowledgement; new agents default to paused. — `dench signals update` — PATCH /api/v1/signals/{agentId} */
|
|
1989
|
-
"signals.update": {
|
|
1990
|
-
agentId: string;
|
|
1991
|
-
name: string;
|
|
1992
|
-
config: {
|
|
1993
|
-
audience: {
|
|
1994
|
-
titles: string[];
|
|
1995
|
-
locations: string[];
|
|
1996
|
-
industries: string[];
|
|
1997
|
-
headcountRanges: Array<"1-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001-5000" | "5001-10000" | "10001+">;
|
|
1998
|
-
companyTypes: string[];
|
|
1999
|
-
companyDomains: string[];
|
|
2000
|
-
excludeCompanyDomains: string[];
|
|
2001
|
-
excludeKeywords: string[];
|
|
2002
|
-
additionalCriteria: string;
|
|
2003
|
-
};
|
|
2004
|
-
signals: Array<{
|
|
2005
|
-
type: "hiring" | "funding" | "job_change" | "company_news" | "content" | "post_engagement";
|
|
2006
|
-
keywords: string[];
|
|
2007
|
-
/** For post_engagement: LinkedIn /in/ profiles, /company/ pages or individual post URLs. One target is checked per run. Other signals use keywords, not targets. */
|
|
2008
|
-
targets: string[];
|
|
2009
|
-
lookbackDays: number;
|
|
2010
|
-
}>;
|
|
2011
|
-
/** Must include linkedin (primary, searched first) and data (audience verification). Web is supporting discovery. */
|
|
2012
|
-
sources: Array<"web" | "data" | "linkedin">;
|
|
2013
|
-
/** Required to save or run an agent. Choose an accessible running LinkedIn account ID from signals.catalog; may be omitted only in an incomplete editor/template. */
|
|
2014
|
-
linkedinAccountId?: string;
|
|
2015
|
-
signalMatch: "any" | "all";
|
|
2016
|
-
matchingMode: "precision" | "discovery";
|
|
2017
|
-
schedule: {
|
|
2018
|
-
cadence: "daily" | "weekly" | "every_6_hours";
|
|
2019
|
-
timezone: string;
|
|
2020
|
-
hour: number;
|
|
2021
|
-
};
|
|
2022
|
-
maxLeadsPerRun: number;
|
|
2023
|
-
maxProviderCalls: number;
|
|
2024
|
-
};
|
|
2025
|
-
status?: "active" | "paused";
|
|
2026
|
-
acknowledgeWarnings?: boolean;
|
|
2027
|
-
};
|
|
2028
|
-
/** pause a signal agent. Paused agents retain their leads. — `dench signals pause` — POST /api/v1/signals/{agentId}/pause */
|
|
2029
|
-
"signals.pause": {
|
|
2030
|
-
agentId: string;
|
|
2031
|
-
};
|
|
2032
|
-
/** resume a signal agent. Paused agents retain their leads. — `dench signals resume` — POST /api/v1/signals/{agentId}/resume */
|
|
2033
|
-
"signals.resume": {
|
|
2034
|
-
agentId: string;
|
|
2035
|
-
};
|
|
2036
|
-
/** run a signal agent. Paused agents retain their leads. — `dench signals run` — POST /api/v1/signals/{agentId}/run */
|
|
2037
|
-
"signals.run": {
|
|
2038
|
-
agentId: string;
|
|
2039
|
-
};
|
|
2040
1978
|
/** The campaign's activity log, newest first (sent, accepted, replied, skipped, failed, paused, stopped). — `dench campaign events` — GET /api/v1/campaigns/{sequenceId}/events */
|
|
2041
1979
|
"campaigns.events": {
|
|
2042
1980
|
sequenceId: string;
|
|
@@ -2506,6 +2444,27 @@ export interface ApiRequests {
|
|
|
2506
2444
|
digestWindowMinutes?: number;
|
|
2507
2445
|
maxEmailsPerDay?: number;
|
|
2508
2446
|
};
|
|
2447
|
+
/** Read the workspace's Sync switches (accounts from email, contacts from LinkedIn, Slack Connect, calendar, dossier, tasks from email, lead auto-qualify, summaries and Brief). All on by default. — `dench settings sync` — GET /api/v1/settings/sync */
|
|
2448
|
+
"settings.sync.get": Record<string, unknown>;
|
|
2449
|
+
/** Flip Sync switches (admin). Partial patch: only the keys sent change. Off stops new work; nothing already created is removed. — `dench settings sync set` — PATCH /api/v1/settings/sync */
|
|
2450
|
+
"settings.sync.update": {
|
|
2451
|
+
/** Accounts from email — new prospects and customers who email you become accounts and contacts. */
|
|
2452
|
+
detectAccounts?: boolean;
|
|
2453
|
+
/** Contacts from LinkedIn — everyone you message on LinkedIn becomes a contact, with their company. */
|
|
2454
|
+
linkedinContacts?: boolean;
|
|
2455
|
+
/** Accounts from Slack Connect — a shared channel binds to the company on the other side. */
|
|
2456
|
+
slackConnectAccounts?: boolean;
|
|
2457
|
+
/** Contacts from calendar — external invitees on upcoming meetings become contacts. */
|
|
2458
|
+
calendarContacts?: boolean;
|
|
2459
|
+
/** Research dossier — Dench researches each new account into its Notes. */
|
|
2460
|
+
dossier?: boolean;
|
|
2461
|
+
/** Tasks from email — replies and follow-ups you owe become tasks; support issues become cases. */
|
|
2462
|
+
emailTasks?: boolean;
|
|
2463
|
+
/** Qualify leads that book — a lead who books a meeting moves to Qualified and converts. */
|
|
2464
|
+
leadAutoQualify?: boolean;
|
|
2465
|
+
/** Summaries and Brief — conversations are summarised and each record keeps a Brief. */
|
|
2466
|
+
intelligence?: boolean;
|
|
2467
|
+
};
|
|
2509
2468
|
}
|
|
2510
2469
|
|
|
2511
2470
|
export interface ApiResponses {
|
|
@@ -3358,7 +3317,19 @@ export interface ApiResponses {
|
|
|
3358
3317
|
updatedBy: string;
|
|
3359
3318
|
sortOrder: number;
|
|
3360
3319
|
} | null;
|
|
3320
|
+
"crm.entries.syncHistory": unknown;
|
|
3321
|
+
"crm.entries.syncHistoryStatus": unknown;
|
|
3322
|
+
"crm.entries.dossier.get": unknown;
|
|
3323
|
+
"crm.entries.dossier.regenerate": unknown;
|
|
3324
|
+
"crm.detections.list": unknown;
|
|
3325
|
+
"crm.detections.undo": unknown;
|
|
3361
3326
|
"crm.entries.history": unknown;
|
|
3327
|
+
"crm.activity.list": unknown;
|
|
3328
|
+
"crm.brief.get": unknown;
|
|
3329
|
+
"crm.brief.regenerate": unknown;
|
|
3330
|
+
"crm.activity.count": unknown;
|
|
3331
|
+
"crm.notes.list": unknown;
|
|
3332
|
+
"crm.notes.create": unknown;
|
|
3362
3333
|
"crm.comments.list": {
|
|
3363
3334
|
page: Array<{
|
|
3364
3335
|
_id: string;
|
|
@@ -4337,6 +4308,8 @@ export interface ApiResponses {
|
|
|
4337
4308
|
"meetings.actionItems.delete": unknown;
|
|
4338
4309
|
"meetings.participants.list": unknown;
|
|
4339
4310
|
"meetings.participants.set": unknown;
|
|
4311
|
+
"meetings.sharing.get": unknown;
|
|
4312
|
+
"meetings.sharing.set": unknown;
|
|
4340
4313
|
"email.identity.verify": {
|
|
4341
4314
|
ok: boolean;
|
|
4342
4315
|
identity: string;
|
|
@@ -4989,15 +4962,6 @@ export interface ApiResponses {
|
|
|
4989
4962
|
"campaigns.archive": {
|
|
4990
4963
|
ok: boolean;
|
|
4991
4964
|
};
|
|
4992
|
-
"signals.list": unknown;
|
|
4993
|
-
"signals.catalog": unknown;
|
|
4994
|
-
"signals.get": unknown;
|
|
4995
|
-
"signals.runs": unknown;
|
|
4996
|
-
"signals.create": unknown;
|
|
4997
|
-
"signals.update": unknown;
|
|
4998
|
-
"signals.pause": unknown;
|
|
4999
|
-
"signals.resume": unknown;
|
|
5000
|
-
"signals.run": unknown;
|
|
5001
4965
|
"campaigns.events": {
|
|
5002
4966
|
page: Record<string, unknown>[];
|
|
5003
4967
|
isDone: boolean;
|
|
@@ -5984,6 +5948,26 @@ export interface ApiResponses {
|
|
|
5984
5948
|
"notifications.preferences.update": {
|
|
5985
5949
|
ok: boolean;
|
|
5986
5950
|
};
|
|
5951
|
+
"settings.sync.get": {
|
|
5952
|
+
detectAccounts: boolean;
|
|
5953
|
+
linkedinContacts: boolean;
|
|
5954
|
+
slackConnectAccounts: boolean;
|
|
5955
|
+
calendarContacts: boolean;
|
|
5956
|
+
dossier: boolean;
|
|
5957
|
+
emailTasks: boolean;
|
|
5958
|
+
leadAutoQualify: boolean;
|
|
5959
|
+
intelligence: boolean;
|
|
5960
|
+
};
|
|
5961
|
+
"settings.sync.update": {
|
|
5962
|
+
detectAccounts: boolean;
|
|
5963
|
+
linkedinContacts: boolean;
|
|
5964
|
+
slackConnectAccounts: boolean;
|
|
5965
|
+
calendarContacts: boolean;
|
|
5966
|
+
dossier: boolean;
|
|
5967
|
+
emailTasks: boolean;
|
|
5968
|
+
leadAutoQualify: boolean;
|
|
5969
|
+
intelligence: boolean;
|
|
5970
|
+
};
|
|
5987
5971
|
}
|
|
5988
5972
|
|
|
5989
5973
|
export type ApiOperationId = keyof ApiRequests;
|
|
@@ -6209,6 +6193,12 @@ export type DenchApiTree = {
|
|
|
6209
6193
|
/** Update an action button on a CRM field. (`dench crm actions edit`) */
|
|
6210
6194
|
update(args: Req<"crm.actions.update">): Promise<Res<"crm.actions.update">>;
|
|
6211
6195
|
};
|
|
6196
|
+
activity: {
|
|
6197
|
+
/** Bounded per-source counts of a CRM entry's activity ledger. (`dench crm activity`) */
|
|
6198
|
+
count(args: Req<"crm.activity.count">): Promise<Res<"crm.activity.count">>;
|
|
6199
|
+
/** List a CRM entry's activity ledger (comments, notes, field changes, emails, meetings, Slack, LinkedIn) in one timeline, newest first by default. (`dench crm activity`) */
|
|
6200
|
+
list(args: Req<"crm.activity.list">): Promise<Res<"crm.activity.list">>;
|
|
6201
|
+
};
|
|
6212
6202
|
/** Aggregate CRM entries. (`dench crm aggregate`) */
|
|
6213
6203
|
aggregate(args: Req<"crm.aggregate">): Promise<Res<"crm.aggregate">>;
|
|
6214
6204
|
analytics: {
|
|
@@ -6247,6 +6237,12 @@ export type DenchApiTree = {
|
|
|
6247
6237
|
};
|
|
6248
6238
|
/** Apply a CRM batch. (`dench crm batch`) */
|
|
6249
6239
|
batch(args: Req<"crm.batch">): Promise<Res<"crm.batch">>;
|
|
6240
|
+
brief: {
|
|
6241
|
+
/** The record's generated Brief: health, who owes the next move, open threads, commitments, risks, next step, with provenance. Read this before the ledger. (`dench crm brief`) */
|
|
6242
|
+
get(args: Req<"crm.brief.get">): Promise<Res<"crm.brief.get">>;
|
|
6243
|
+
/** Rebuild a record's Brief from the current timeline. (`dench crm brief --regenerate`) */
|
|
6244
|
+
regenerate(args: Req<"crm.brief.regenerate">): Promise<Res<"crm.brief.regenerate">>;
|
|
6245
|
+
};
|
|
6250
6246
|
cells: {
|
|
6251
6247
|
/** Append to a CRM cell. (`dench crm cells append`) */
|
|
6252
6248
|
append(args: Req<"crm.cells.append">): Promise<Res<"crm.cells.append">>;
|
|
@@ -6277,6 +6273,12 @@ export type DenchApiTree = {
|
|
|
6277
6273
|
/** Search for companies through the enrichment gateway (also `dench companies find`). (`dench crm companies search`) */
|
|
6278
6274
|
search(args: Req<"crm.companies.search">): Promise<Res<"crm.companies.search">>;
|
|
6279
6275
|
};
|
|
6276
|
+
detections: {
|
|
6277
|
+
/** List account-detection verdicts — why a domain (or personal address) did or did not become an account: verdict, counterparty type, probabilities, evidence threads, the rows created. `kind` picks the creator: `detections` (email + sweep), `linkedin` (the LinkedIn resolver's rows) or `all` (default). Newest first. (`dench crm detections list`) */
|
|
6278
|
+
list(args?: Req<"crm.detections.list">): Promise<Res<"crm.detections.list">>;
|
|
6279
|
+
/** Undo what the ingestion jobs created since a timestamp (admin): `kind` = `detections` (accounts + contacts from the email detector and the sweep), `linkedin` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), `email-tasks` (auto-created tasks and cases) or `all` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. `dryRun` lists what would go; per-kind counts in `kinds`. (`dench crm detections undo`) */
|
|
6280
|
+
undo(args: Req<"crm.detections.undo">): Promise<Res<"crm.detections.undo">>;
|
|
6281
|
+
};
|
|
6280
6282
|
docs: {
|
|
6281
6283
|
/** Create a CRM document. (`dench crm docs create`) */
|
|
6282
6284
|
create(args: Req<"crm.docs.create">): Promise<Res<"crm.docs.create">>;
|
|
@@ -6300,12 +6302,22 @@ export type DenchApiTree = {
|
|
|
6300
6302
|
createMany(args: Req<"crm.entries.createMany">): Promise<Res<"crm.entries.createMany">>;
|
|
6301
6303
|
/** Delete a CRM entry. (`dench crm entries delete`) */
|
|
6302
6304
|
delete(args: Req<"crm.entries.delete">): Promise<Res<"crm.entries.delete">>;
|
|
6305
|
+
dossier: {
|
|
6306
|
+
/** Status of the account's research dossier — the delimited `dench:dossier` section Dench keeps in the record's Notes: status, when it was written, how many dated updates followed, the last error. (`dench crm entries dossier`) */
|
|
6307
|
+
get(args: Req<"crm.entries.dossier.get">): Promise<Res<"crm.entries.dossier.get">>;
|
|
6308
|
+
/** Research the account again and append a fresh dossier section to its Notes (needs a Website / Domain on the record). (`dench crm entries dossier --regenerate`) */
|
|
6309
|
+
regenerate(args: Req<"crm.entries.dossier.regenerate">): Promise<Res<"crm.entries.dossier.regenerate">>;
|
|
6310
|
+
};
|
|
6303
6311
|
/** Get a CRM entry. (`dench crm entries get`) */
|
|
6304
6312
|
get(args: Req<"crm.entries.get">): Promise<Res<"crm.entries.get">>;
|
|
6305
6313
|
/** List a CRM entry's audit history. (`dench crm history`) */
|
|
6306
6314
|
history(args: Req<"crm.entries.history">): Promise<Res<"crm.entries.history">>;
|
|
6307
6315
|
/** List CRM entries. (`dench crm entries list`) */
|
|
6308
6316
|
list(args: Req<"crm.entries.list">): Promise<Res<"crm.entries.list">>;
|
|
6317
|
+
/** Queue a full, paged pull of the record's email history from every connected mailbox; the ledger fills as pages land. (`dench crm entries sync-history`) */
|
|
6318
|
+
syncHistory(args: Req<"crm.entries.syncHistory">): Promise<Res<"crm.entries.syncHistory">>;
|
|
6319
|
+
/** Has Dench read this record's email history? One row per address per mailbox. (`dench crm entries sync-history --status`) */
|
|
6320
|
+
syncHistoryStatus(args: Req<"crm.entries.syncHistoryStatus">): Promise<Res<"crm.entries.syncHistoryStatus">>;
|
|
6309
6321
|
/** Update a CRM entry. (`dench crm entries update`) */
|
|
6310
6322
|
update(args: Req<"crm.entries.update">): Promise<Res<"crm.entries.update">>;
|
|
6311
6323
|
/** Update many CRM entries. (`dench crm entries update-many`) */
|
|
@@ -6339,6 +6351,12 @@ export type DenchApiTree = {
|
|
|
6339
6351
|
/** List workspace members for CRM user fields. (`dench members list`) */
|
|
6340
6352
|
list(args?: Req<"crm.members.list">): Promise<Res<"crm.members.list">>;
|
|
6341
6353
|
};
|
|
6354
|
+
notes: {
|
|
6355
|
+
/** Add a titled note to a CRM entry's activity timeline (markdown body). Research goes here, never into the Notes document. (`dench crm notes create`) */
|
|
6356
|
+
create(args: Req<"crm.notes.create">): Promise<Res<"crm.notes.create">>;
|
|
6357
|
+
/** List a CRM entry's notes (titled, document-style comments), newest first. (`dench crm notes list`) */
|
|
6358
|
+
list(args: Req<"crm.notes.list">): Promise<Res<"crm.notes.list">>;
|
|
6359
|
+
};
|
|
6342
6360
|
objects: {
|
|
6343
6361
|
/** Hide a CRM object's workspace sidebar row for the whole workspace. Not a delete — the table keeps working. Admin-only. (`dench crm objects archive`) */
|
|
6344
6362
|
archive(args: Req<"crm.objects.archive">): Promise<Res<"crm.objects.archive">>;
|
|
@@ -6739,6 +6757,12 @@ export type DenchApiTree = {
|
|
|
6739
6757
|
/** Record attendees by name/email; known members and existing people are linked, nobody is created. (`dench meetings participants set`) */
|
|
6740
6758
|
set(args: Req<"meetings.participants.set">): Promise<Res<"meetings.participants.set">>;
|
|
6741
6759
|
};
|
|
6760
|
+
sharing: {
|
|
6761
|
+
/** Whether a meeting is shared with the whole workspace, and whether you may change that. (`dench meetings share`) */
|
|
6762
|
+
get(args: Req<"meetings.sharing.get">): Promise<Res<"meetings.sharing.get">>;
|
|
6763
|
+
/** Share one meeting with the workspace, or take it back to owner + invitees. (`dench meetings share --workspace`) */
|
|
6764
|
+
set(args: Req<"meetings.sharing.set">): Promise<Res<"meetings.sharing.set">>;
|
|
6765
|
+
};
|
|
6742
6766
|
transcript: {
|
|
6743
6767
|
/** Append up to 500 transcript segments to a meeting (speakers with an email link to existing people). (`dench meetings transcript set`) */
|
|
6744
6768
|
append(args: Req<"meetings.transcript.append">): Promise<Res<"meetings.transcript.append">>;
|
|
@@ -6790,25 +6814,13 @@ export type DenchApiTree = {
|
|
|
6790
6814
|
/** Search the web through the Dench gateway. (`dench search`) */
|
|
6791
6815
|
web(args: Req<"search.web">): Promise<Res<"search.web">>;
|
|
6792
6816
|
};
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
/** list signal agents and their discovery configuration. (`dench signals list`) */
|
|
6801
|
-
list(args?: Req<"signals.list">): Promise<Res<"signals.list">>;
|
|
6802
|
-
/** pause a signal agent. Paused agents retain their leads. (`dench signals pause`) */
|
|
6803
|
-
pause(args: Req<"signals.pause">): Promise<Res<"signals.pause">>;
|
|
6804
|
-
/** resume a signal agent. Paused agents retain their leads. (`dench signals resume`) */
|
|
6805
|
-
resume(args: Req<"signals.resume">): Promise<Res<"signals.resume">>;
|
|
6806
|
-
/** run a signal agent. Paused agents retain their leads. (`dench signals run`) */
|
|
6807
|
-
run(args: Req<"signals.run">): Promise<Res<"signals.run">>;
|
|
6808
|
-
/** runs signal agents and their discovery configuration. (`dench signals runs`) */
|
|
6809
|
-
runs(args: Req<"signals.runs">): Promise<Res<"signals.runs">>;
|
|
6810
|
-
/** Save a complete per-agent configuration. Warnings require acknowledgement; new agents default to paused. (`dench signals update`) */
|
|
6811
|
-
update(args: Req<"signals.update">): Promise<Res<"signals.update">>;
|
|
6817
|
+
settings: {
|
|
6818
|
+
sync: {
|
|
6819
|
+
/** Read the workspace's Sync switches (accounts from email, contacts from LinkedIn, Slack Connect, calendar, dossier, tasks from email, lead auto-qualify, summaries and Brief). All on by default. (`dench settings sync`) */
|
|
6820
|
+
get(args?: Req<"settings.sync.get">): Promise<Res<"settings.sync.get">>;
|
|
6821
|
+
/** Flip Sync switches (admin). Partial patch: only the keys sent change. Off stops new work; nothing already created is removed. (`dench settings sync set`) */
|
|
6822
|
+
update(args: Req<"settings.sync.update">): Promise<Res<"settings.sync.update">>;
|
|
6823
|
+
};
|
|
6812
6824
|
};
|
|
6813
6825
|
tool: {
|
|
6814
6826
|
/** Create a tool OAuth connection link. Slack is in-house, never Composio: for toolkit slack the CLI prints the first-party install URL (/api/slack/install?slug=<workspace>, org admin) instead of calling this endpoint. (`dench tool connect`) */
|
|
@@ -7183,6 +7195,10 @@ export interface DenchMeetings {
|
|
|
7183
7195
|
setActionItemDone(itemId: string, done: boolean): Promise<Res<"meetings.actionItems.setDone">>;
|
|
7184
7196
|
/** Participants of a meeting. Permission: `meetings:read`. Wraps `meetings.participants.list`. */
|
|
7185
7197
|
participants(meetingEntryId: string): Promise<Res<"meetings.participants.list">>;
|
|
7198
|
+
/** Whether a meeting is shared with the whole workspace. Permission: `meetings:read`. Wraps `meetings.sharing.get`. */
|
|
7199
|
+
sharing(meetingEntryId: string): Promise<Res<"meetings.sharing.get">>;
|
|
7200
|
+
/** Share a meeting with the workspace, or take it back to owner + invitees. Permission: `meetings:write`. Wraps `meetings.sharing.set`. */
|
|
7201
|
+
setSharing(meetingEntryId: string, shared: boolean): Promise<Res<"meetings.sharing.set">>;
|
|
7186
7202
|
}
|
|
7187
7203
|
|
|
7188
7204
|
export interface DenchLists {
|