@dench.com/cli 3.4.0-staging.317 → 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/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;
@@ -2413,6 +2444,27 @@ export interface ApiRequests {
2413
2444
  digestWindowMinutes?: number;
2414
2445
  maxEmailsPerDay?: number;
2415
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
+ };
2416
2468
  }
2417
2469
 
2418
2470
  export interface ApiResponses {
@@ -3265,7 +3317,19 @@ export interface ApiResponses {
3265
3317
  updatedBy: string;
3266
3318
  sortOrder: number;
3267
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;
3268
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;
3269
3333
  "crm.comments.list": {
3270
3334
  page: Array<{
3271
3335
  _id: string;
@@ -5884,6 +5948,26 @@ export interface ApiResponses {
5884
5948
  "notifications.preferences.update": {
5885
5949
  ok: boolean;
5886
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
+ };
5887
5971
  }
5888
5972
 
5889
5973
  export type ApiOperationId = keyof ApiRequests;
@@ -6109,6 +6193,12 @@ export type DenchApiTree = {
6109
6193
  /** Update an action button on a CRM field. (`dench crm actions edit`) */
6110
6194
  update(args: Req<"crm.actions.update">): Promise<Res<"crm.actions.update">>;
6111
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
+ };
6112
6202
  /** Aggregate CRM entries. (`dench crm aggregate`) */
6113
6203
  aggregate(args: Req<"crm.aggregate">): Promise<Res<"crm.aggregate">>;
6114
6204
  analytics: {
@@ -6147,6 +6237,12 @@ export type DenchApiTree = {
6147
6237
  };
6148
6238
  /** Apply a CRM batch. (`dench crm batch`) */
6149
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
+ };
6150
6246
  cells: {
6151
6247
  /** Append to a CRM cell. (`dench crm cells append`) */
6152
6248
  append(args: Req<"crm.cells.append">): Promise<Res<"crm.cells.append">>;
@@ -6177,6 +6273,12 @@ export type DenchApiTree = {
6177
6273
  /** Search for companies through the enrichment gateway (also `dench companies find`). (`dench crm companies search`) */
6178
6274
  search(args: Req<"crm.companies.search">): Promise<Res<"crm.companies.search">>;
6179
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
+ };
6180
6282
  docs: {
6181
6283
  /** Create a CRM document. (`dench crm docs create`) */
6182
6284
  create(args: Req<"crm.docs.create">): Promise<Res<"crm.docs.create">>;
@@ -6200,12 +6302,22 @@ export type DenchApiTree = {
6200
6302
  createMany(args: Req<"crm.entries.createMany">): Promise<Res<"crm.entries.createMany">>;
6201
6303
  /** Delete a CRM entry. (`dench crm entries delete`) */
6202
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
+ };
6203
6311
  /** Get a CRM entry. (`dench crm entries get`) */
6204
6312
  get(args: Req<"crm.entries.get">): Promise<Res<"crm.entries.get">>;
6205
6313
  /** List a CRM entry's audit history. (`dench crm history`) */
6206
6314
  history(args: Req<"crm.entries.history">): Promise<Res<"crm.entries.history">>;
6207
6315
  /** List CRM entries. (`dench crm entries list`) */
6208
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">>;
6209
6321
  /** Update a CRM entry. (`dench crm entries update`) */
6210
6322
  update(args: Req<"crm.entries.update">): Promise<Res<"crm.entries.update">>;
6211
6323
  /** Update many CRM entries. (`dench crm entries update-many`) */
@@ -6239,6 +6351,12 @@ export type DenchApiTree = {
6239
6351
  /** List workspace members for CRM user fields. (`dench members list`) */
6240
6352
  list(args?: Req<"crm.members.list">): Promise<Res<"crm.members.list">>;
6241
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
+ };
6242
6360
  objects: {
6243
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`) */
6244
6362
  archive(args: Req<"crm.objects.archive">): Promise<Res<"crm.objects.archive">>;
@@ -6696,6 +6814,14 @@ export type DenchApiTree = {
6696
6814
  /** Search the web through the Dench gateway. (`dench search`) */
6697
6815
  web(args: Req<"search.web">): Promise<Res<"search.web">>;
6698
6816
  };
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
+ };
6824
+ };
6699
6825
  tool: {
6700
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`) */
6701
6827
  connect(args: Req<"tool.connect">): Promise<Res<"tool.connect">>;