@dench.com/cli 3.12.31-staging.1469 → 3.12.32-staging.1473
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 +412 -3
- package/crm-columns.ts +982 -0
- package/crm.ts +40 -5
- package/dench.ts +15 -9
- package/leads.ts +204 -40
- package/lib/api-schemas.ts +12 -1
- package/lib/app-sdk-catalog.generated.ts +18 -1
- package/lib/app-sdk-surface.ts +3 -0
- package/lib/command-registry.ts +655 -2
- package/lib/references.generated.json +6 -6
- package/package.json +2 -1
package/app-sdk.d.ts
CHANGED
|
@@ -183,6 +183,11 @@ export interface ApiRequests {
|
|
|
183
183
|
exclude?: boolean;
|
|
184
184
|
exactMatch?: boolean;
|
|
185
185
|
}>;
|
|
186
|
+
/** Resolved company-list membership (OR across domains and fallback company names). */
|
|
187
|
+
companyScope?: {
|
|
188
|
+
domains?: string[];
|
|
189
|
+
names?: string[];
|
|
190
|
+
};
|
|
186
191
|
/** Company HQ locations — cities, states, countries, or metros (free text). Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
|
|
187
192
|
companyHeadquarters?: Array<string | {
|
|
188
193
|
value: string;
|
|
@@ -336,6 +341,11 @@ export interface ApiRequests {
|
|
|
336
341
|
exclude?: boolean;
|
|
337
342
|
exactMatch?: boolean;
|
|
338
343
|
}>;
|
|
344
|
+
/** Resolved company-list membership (OR across domains and fallback company names). */
|
|
345
|
+
companyScope?: {
|
|
346
|
+
domains?: string[];
|
|
347
|
+
names?: string[];
|
|
348
|
+
};
|
|
339
349
|
/** Company HQ locations — cities, states, countries, or metros (free text). Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
|
|
340
350
|
companyHeadquarters?: Array<string | {
|
|
341
351
|
value: string;
|
|
@@ -770,16 +780,26 @@ export interface ApiRequests {
|
|
|
770
780
|
/** email is work email. */
|
|
771
781
|
fields: Array<"email" | "phone" | "personal_email">;
|
|
772
782
|
};
|
|
773
|
-
/** Explicitly import
|
|
783
|
+
/** Explicitly import saved find rows into lead, company, job_posting, or a list slug (e.g. list_q4_fintech). Reuses existing records; never sends outreach or triggers conversion. — `dench artifacts import` — POST /api/v1/lists/{artifactId}/import */
|
|
774
784
|
"lists.import": {
|
|
775
785
|
artifactId: string;
|
|
776
|
-
|
|
786
|
+
/** Target CRM object or list slug: "lead", "company", "job_posting", or a list slug like "list_q4_fintech". */
|
|
787
|
+
to: string;
|
|
777
788
|
rowIndexes?: number[];
|
|
778
789
|
status?: string;
|
|
779
790
|
enrichment?: "all" | "enriched" | "in_progress" | "no_contacts" | "failed" | "not_enriched";
|
|
780
791
|
viewName?: string;
|
|
781
792
|
pin?: boolean;
|
|
782
793
|
};
|
|
794
|
+
/** Resolve a saved Find company list, Company saved view, or qualified list (optionally fitOnly) into canonical company domains for people/job searches. — `dench leads find --company-list` — POST /api/v1/lists/resolve-companies */
|
|
795
|
+
"lists.resolveCompanies": {
|
|
796
|
+
artifactId?: string;
|
|
797
|
+
viewName?: string;
|
|
798
|
+
objectName?: string;
|
|
799
|
+
entryIds?: string[];
|
|
800
|
+
fitOnly?: boolean;
|
|
801
|
+
domainsOnly?: boolean;
|
|
802
|
+
};
|
|
783
803
|
/** Get one saved search / list by artifact id. — `dench lists show` — GET /api/v1/lists/{artifactId} */
|
|
784
804
|
"lists.get": Record<string, unknown>;
|
|
785
805
|
/** Save find results as a named list (rows + filters become a workspace artifact). — `dench lists save` — POST /api/v1/lists */
|
|
@@ -2092,6 +2112,151 @@ export interface ApiRequests {
|
|
|
2092
2112
|
/** "own": the view gets its own dashboard (a copy of the object's panels); "shared": it shows the object's again. */
|
|
2093
2113
|
mode: "own" | "shared";
|
|
2094
2114
|
};
|
|
2115
|
+
/** List active workspace staging lists with row counts and management permissions. — `dench crm columns lists` — GET /api/v1/crm/columns/lists */
|
|
2116
|
+
"crm.columns.listStagingLists": Record<string, never>;
|
|
2117
|
+
/** Create a staging list CRM object pre-seeded with canonical company or person columns and Notes. — `dench crm columns create-list` — POST /api/v1/crm/columns/lists */
|
|
2118
|
+
"crm.columns.createStagingList": {
|
|
2119
|
+
/** Human-readable staging list title (1-120 characters). */
|
|
2120
|
+
displayName: string;
|
|
2121
|
+
/** Entity kind: "company" (default) or "person". */
|
|
2122
|
+
entityKind?: "company" | "person";
|
|
2123
|
+
};
|
|
2124
|
+
/** Archive a staging list immediately, stop active AI column runs, and schedule bounded cascade deletion (creator or admin). — `dench crm columns delete-list` — DELETE /api/v1/crm/columns/lists/{objectName} */
|
|
2125
|
+
"crm.columns.deleteStagingListCascade": {
|
|
2126
|
+
/** Staging list object slug. */
|
|
2127
|
+
objectName: string;
|
|
2128
|
+
};
|
|
2129
|
+
/** Create a typed AI Research column (fit_check, text, enum, number, or url) on a staging list or CRM object without autorunning. — `dench crm columns create-ai` — POST /api/v1/crm/objects/{objectName}/columns/ai */
|
|
2130
|
+
"crm.columns.createAi": {
|
|
2131
|
+
/** CRM object or staging list slug. */
|
|
2132
|
+
objectName: string;
|
|
2133
|
+
/** Column name (1-100 characters, cannot start with '--'). */
|
|
2134
|
+
name: string;
|
|
2135
|
+
/** Web-research prompt (1-2000 characters; supports {{Field}} tokens). */
|
|
2136
|
+
prompt: string;
|
|
2137
|
+
/** Typed output shape: "fit_check" | "text" | "enum" | "number" | "url". */
|
|
2138
|
+
outputKind: "fit_check" | "text" | "enum" | "number" | "url";
|
|
2139
|
+
/** Allowed options (1-20 items, <=80 chars each); only valid for outputKind "enum". */
|
|
2140
|
+
enumValues?: string[];
|
|
2141
|
+
/** Optional column description. */
|
|
2142
|
+
description?: string;
|
|
2143
|
+
/** CRM field IDs that must be populated on a row before it runs. */
|
|
2144
|
+
requiredInputFieldIds?: string[];
|
|
2145
|
+
};
|
|
2146
|
+
/** Update an AI Research column's prompt, enum options, description, or required input fields without autorunning. — `dench crm columns update-ai` — PATCH /api/v1/crm/objects/{objectName}/columns/ai/{fieldName} */
|
|
2147
|
+
"crm.columns.updateAi": {
|
|
2148
|
+
/** CRM object or staging list slug. */
|
|
2149
|
+
objectName: string;
|
|
2150
|
+
/** Existing AI Research column name. */
|
|
2151
|
+
fieldName: string;
|
|
2152
|
+
/** Updated prompt (blocked while a run is pending or running). */
|
|
2153
|
+
prompt?: string;
|
|
2154
|
+
/** Updated options for "enum" columns (blocked while a run is pending or running). */
|
|
2155
|
+
enumValues?: string[];
|
|
2156
|
+
/** Updated description (empty string clears). */
|
|
2157
|
+
description?: string;
|
|
2158
|
+
/** Updated required input field IDs (empty array clears). */
|
|
2159
|
+
requiredInputFieldIds?: string[];
|
|
2160
|
+
};
|
|
2161
|
+
/** Delete an AI Research column, stop any active run, and schedule bounded cell provenance cleanup. — `dench crm columns delete-ai` — DELETE /api/v1/crm/objects/{objectName}/columns/ai/{fieldName} */
|
|
2162
|
+
"crm.columns.deleteAi": {
|
|
2163
|
+
/** CRM object or staging list slug. */
|
|
2164
|
+
objectName: string;
|
|
2165
|
+
/** AI Research column name to delete. */
|
|
2166
|
+
fieldName: string;
|
|
2167
|
+
};
|
|
2168
|
+
/** Estimate eligible rows and exact AI credit cost (2 AI credits/row) before starting an AI Research column run. — `dench crm columns estimate-run` — POST /api/v1/crm/objects/{objectName}/columns/{fieldName}/estimate */
|
|
2169
|
+
"crm.columns.estimateRun": {
|
|
2170
|
+
/** CRM object or staging list slug. */
|
|
2171
|
+
objectName: string;
|
|
2172
|
+
/** AI Research column name. */
|
|
2173
|
+
fieldName: string;
|
|
2174
|
+
/** Row scope: "selected" (uses entryIds), "empty", or "all". */
|
|
2175
|
+
scope: "selected" | "empty" | "all";
|
|
2176
|
+
/** Target entry IDs when scope is "selected". */
|
|
2177
|
+
entryIds?: string[];
|
|
2178
|
+
/** Include rows whose prior provenance was unknown or failed (default true). */
|
|
2179
|
+
includeUnknownAndFailed?: boolean;
|
|
2180
|
+
/** Optional row limit (1-2000) to test the top N eligible rows in newest-first order. */
|
|
2181
|
+
limit?: number;
|
|
2182
|
+
};
|
|
2183
|
+
/** Start a durable AI Research column run with explicit row scope and optional hard AI credit ceiling. — `dench crm columns start-run` — POST /api/v1/crm/objects/{objectName}/columns/{fieldName}/runs */
|
|
2184
|
+
"crm.columns.startRun": {
|
|
2185
|
+
/** CRM object or staging list slug. */
|
|
2186
|
+
objectName: string;
|
|
2187
|
+
/** AI Research column name. */
|
|
2188
|
+
fieldName: string;
|
|
2189
|
+
/** Row scope: "selected" (uses entryIds), "empty", or "all". */
|
|
2190
|
+
scope: "selected" | "empty" | "all";
|
|
2191
|
+
/** Target entry IDs when scope is "selected". */
|
|
2192
|
+
entryIds?: string[];
|
|
2193
|
+
/** Include rows whose prior provenance was unknown or failed (default true). */
|
|
2194
|
+
includeUnknownAndFailed?: boolean;
|
|
2195
|
+
/** Optional row limit (1-2000) to run only the top N eligible rows in newest-first order. */
|
|
2196
|
+
limit?: number;
|
|
2197
|
+
/** Optional hard spend cap in AI credits (>=2, 1 credit = 1 cent) or null for uncapped. */
|
|
2198
|
+
creditStopCeiling?: number | null;
|
|
2199
|
+
};
|
|
2200
|
+
/** Pause a pending or running AI Research column run. — `dench crm columns pause-run` — POST /api/v1/crm/columns/runs/{runId}/pause */
|
|
2201
|
+
"crm.columns.pauseRun": {
|
|
2202
|
+
/** AI column run ID. */
|
|
2203
|
+
runId: string;
|
|
2204
|
+
};
|
|
2205
|
+
/** Resume a paused or capped AI Research column run, optionally raising or clearing creditStopCeiling. — `dench crm columns resume-run` — POST /api/v1/crm/columns/runs/{runId}/resume */
|
|
2206
|
+
"crm.columns.resumeRun": {
|
|
2207
|
+
/** Paused or capped AI column run ID. */
|
|
2208
|
+
runId: string;
|
|
2209
|
+
/** New spend cap in AI credits (must be >= spentCents + 2 on capped runs) or null to remove the cap. */
|
|
2210
|
+
creditStopCeiling?: number | null;
|
|
2211
|
+
};
|
|
2212
|
+
/** Permanently stop an active, paused, or capped AI Research column run. — `dench crm columns stop-run` — POST /api/v1/crm/columns/runs/{runId}/stop */
|
|
2213
|
+
"crm.columns.stopRun": {
|
|
2214
|
+
/** AI column run ID to stop. */
|
|
2215
|
+
runId: string;
|
|
2216
|
+
};
|
|
2217
|
+
/** Read active AI Research column runs on an object and optionally inspect a specific column or run ID. — `dench crm columns run-status` — GET /api/v1/crm/objects/{objectName}/columns/runs */
|
|
2218
|
+
"crm.columns.getRunStatus": {
|
|
2219
|
+
/** CRM object or staging list slug. */
|
|
2220
|
+
objectName: string;
|
|
2221
|
+
/** Optional AI Research column name to inspect its active or latest terminal run. */
|
|
2222
|
+
fieldName?: string;
|
|
2223
|
+
/** Optional specific AI column run ID. */
|
|
2224
|
+
runId?: string;
|
|
2225
|
+
};
|
|
2226
|
+
/** Manually override (or clear with null) an AI Research cell, locking it as user_override and clearing stale citations. — `dench crm columns override-cell` — PUT /api/v1/crm/objects/{objectName}/entries/{entryId}/columns/{fieldName}/override */
|
|
2227
|
+
"crm.columns.overrideCell": {
|
|
2228
|
+
/** CRM object or staging list slug. */
|
|
2229
|
+
objectName: string;
|
|
2230
|
+
/** CRM entry ID. */
|
|
2231
|
+
entryId: string;
|
|
2232
|
+
/** AI Research column name. */
|
|
2233
|
+
fieldName: string;
|
|
2234
|
+
/** Manual cell value matching the column's outputKind, or null to clear. */
|
|
2235
|
+
value: string | number | null;
|
|
2236
|
+
};
|
|
2237
|
+
/** Re-run a single AI Research cell live (2 AI credits; 0 DB writes on error; set unlockOverride to replace a manual override). — `dench crm columns rerun-cell` — POST /api/v1/crm/objects/{objectName}/entries/{entryId}/columns/{fieldName}/rerun */
|
|
2238
|
+
"crm.columns.rerunSingleCell": {
|
|
2239
|
+
/** CRM object or staging list slug. */
|
|
2240
|
+
objectName: string;
|
|
2241
|
+
/** CRM entry ID. */
|
|
2242
|
+
entryId: string;
|
|
2243
|
+
/** AI Research column name. */
|
|
2244
|
+
fieldName: string;
|
|
2245
|
+
/** Set true to replace an existing manual user_override (default false). */
|
|
2246
|
+
unlockOverride?: boolean;
|
|
2247
|
+
};
|
|
2248
|
+
/** Read page-scoped AI Research cell citations, statuses, and override state for up to 100 entry IDs. — `dench crm columns provenance` — POST /api/v1/crm/objects/{objectName}/columns/provenance */
|
|
2249
|
+
"crm.columns.getCellProvenanceBatch": {
|
|
2250
|
+
/** CRM object or staging list slug. */
|
|
2251
|
+
objectName: string;
|
|
2252
|
+
/** Entry IDs to fetch cell provenance for (max 100). */
|
|
2253
|
+
entryIds: string[];
|
|
2254
|
+
};
|
|
2255
|
+
/** Read O(1) Fit Check triage counts (Fits, Does not fit, Unknown, Not run) and domain-ready Fit count for a list. — `dench crm columns summary` — GET /api/v1/crm/objects/{objectName}/columns/summary */
|
|
2256
|
+
"crm.columns.getStagingTriageSummary": {
|
|
2257
|
+
/** CRM object or list slug (e.g. list_q4_fintech). */
|
|
2258
|
+
objectName: string;
|
|
2259
|
+
};
|
|
2095
2260
|
/** Request enrichment for one CRM cell. — `dench crm enrich cell` — POST /api/v1/crm/enrich/cell */
|
|
2096
2261
|
"crm.enrich.cell": {
|
|
2097
2262
|
objectName: string;
|
|
@@ -2201,6 +2366,11 @@ export interface ApiRequests {
|
|
|
2201
2366
|
exclude?: boolean;
|
|
2202
2367
|
exactMatch?: boolean;
|
|
2203
2368
|
}>;
|
|
2369
|
+
/** Resolved company-list membership (OR across domains and fallback company names). */
|
|
2370
|
+
companyScope?: {
|
|
2371
|
+
domains?: string[];
|
|
2372
|
+
names?: string[];
|
|
2373
|
+
};
|
|
2204
2374
|
/** Company HQ locations — cities, states, countries, or metros (free text). Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
|
|
2205
2375
|
companyHeadquarters?: Array<string | {
|
|
2206
2376
|
value: string;
|
|
@@ -2286,7 +2456,9 @@ export interface ApiRequests {
|
|
|
2286
2456
|
/** Cities, states, countries, or metros (free text). Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
|
|
2287
2457
|
locations?: string[];
|
|
2288
2458
|
companyDomain?: string;
|
|
2459
|
+
companyDomains?: string[];
|
|
2289
2460
|
companyName?: string;
|
|
2461
|
+
companyNames?: string[];
|
|
2290
2462
|
companyLinkedinUrl?: string;
|
|
2291
2463
|
keywords?: string;
|
|
2292
2464
|
postedAfter?: string;
|
|
@@ -4358,6 +4530,15 @@ export interface ApiResponses {
|
|
|
4358
4530
|
"lists.rows": unknown;
|
|
4359
4531
|
"lists.enrich": unknown;
|
|
4360
4532
|
"lists.import": unknown;
|
|
4533
|
+
"lists.resolveCompanies": {
|
|
4534
|
+
source: "artifact" | "view" | "entries" | "fit_checks";
|
|
4535
|
+
title: string;
|
|
4536
|
+
domains: string[];
|
|
4537
|
+
names: string[];
|
|
4538
|
+
totalCompanies: number;
|
|
4539
|
+
truncated: boolean;
|
|
4540
|
+
skippedNoDomain?: number;
|
|
4541
|
+
};
|
|
4361
4542
|
"lists.get": unknown;
|
|
4362
4543
|
"lists.save": {
|
|
4363
4544
|
artifactId: string;
|
|
@@ -6229,6 +6410,198 @@ export interface ApiResponses {
|
|
|
6229
6410
|
ok: boolean;
|
|
6230
6411
|
changed: boolean;
|
|
6231
6412
|
};
|
|
6413
|
+
"crm.columns.listStagingLists": Array<{
|
|
6414
|
+
_id: string;
|
|
6415
|
+
name: string;
|
|
6416
|
+
displayName: string;
|
|
6417
|
+
stagingEntityKind: "company" | "person";
|
|
6418
|
+
entryCount: number;
|
|
6419
|
+
createdByUserId: string | null;
|
|
6420
|
+
canManage: boolean;
|
|
6421
|
+
updatedAt: number;
|
|
6422
|
+
}>;
|
|
6423
|
+
"crm.columns.createStagingList": {
|
|
6424
|
+
objectId: string;
|
|
6425
|
+
objectName: string;
|
|
6426
|
+
displayName: string;
|
|
6427
|
+
stagingEntityKind: "company" | "person";
|
|
6428
|
+
};
|
|
6429
|
+
"crm.columns.deleteStagingListCascade": {
|
|
6430
|
+
deleted: true;
|
|
6431
|
+
archivedAt: number;
|
|
6432
|
+
};
|
|
6433
|
+
"crm.columns.createAi": {
|
|
6434
|
+
fieldId: string;
|
|
6435
|
+
name: string;
|
|
6436
|
+
promptVersion: number;
|
|
6437
|
+
};
|
|
6438
|
+
"crm.columns.updateAi": {
|
|
6439
|
+
fieldId: string;
|
|
6440
|
+
promptVersion: number;
|
|
6441
|
+
};
|
|
6442
|
+
"crm.columns.deleteAi": {
|
|
6443
|
+
deleted: true;
|
|
6444
|
+
};
|
|
6445
|
+
"crm.columns.estimateRun": {
|
|
6446
|
+
eligibleCount: number;
|
|
6447
|
+
totalCandidates: number;
|
|
6448
|
+
skippedOverrideCount: number;
|
|
6449
|
+
skippedFilledCount: number;
|
|
6450
|
+
outdatedCount?: number;
|
|
6451
|
+
cappedAtLimit: boolean;
|
|
6452
|
+
creditsPerRow: number;
|
|
6453
|
+
estimatedCredits: number;
|
|
6454
|
+
pool: "ai_credits";
|
|
6455
|
+
activeRun: {
|
|
6456
|
+
_id: string;
|
|
6457
|
+
organizationId: string;
|
|
6458
|
+
objectId: string;
|
|
6459
|
+
fieldId: string;
|
|
6460
|
+
kind: "ai_research";
|
|
6461
|
+
status: "pending" | "running" | "paused" | "capped" | "stopped" | "completed" | "failed";
|
|
6462
|
+
scope: "selected" | "empty" | "all";
|
|
6463
|
+
includeUnknownAndFailed: boolean;
|
|
6464
|
+
nextIndex: number;
|
|
6465
|
+
totalCount: number;
|
|
6466
|
+
completedCount: number;
|
|
6467
|
+
skippedCount: number;
|
|
6468
|
+
failedCount: number;
|
|
6469
|
+
spentCents: number;
|
|
6470
|
+
creditStopCeiling: number | null;
|
|
6471
|
+
pauseReason: "user_paused" | "out_of_credits" | "billing_unavailable" | "kill_switch" | null;
|
|
6472
|
+
errorMessage: string | null;
|
|
6473
|
+
promptVersion: number;
|
|
6474
|
+
actorUserId: string | null;
|
|
6475
|
+
claimedAt: number | null;
|
|
6476
|
+
startedAt: number;
|
|
6477
|
+
finishedAt: number | null;
|
|
6478
|
+
updatedAt: number;
|
|
6479
|
+
} | null;
|
|
6480
|
+
};
|
|
6481
|
+
"crm.columns.startRun": {
|
|
6482
|
+
runId: string;
|
|
6483
|
+
status: "pending";
|
|
6484
|
+
totalCount: number;
|
|
6485
|
+
estimatedCredits: number;
|
|
6486
|
+
};
|
|
6487
|
+
"crm.columns.pauseRun": {
|
|
6488
|
+
runId: string;
|
|
6489
|
+
status: "paused";
|
|
6490
|
+
applied: boolean;
|
|
6491
|
+
};
|
|
6492
|
+
"crm.columns.resumeRun": {
|
|
6493
|
+
runId: string;
|
|
6494
|
+
status: "pending" | "completed";
|
|
6495
|
+
};
|
|
6496
|
+
"crm.columns.stopRun": {
|
|
6497
|
+
runId: string;
|
|
6498
|
+
status: "stopped";
|
|
6499
|
+
applied: boolean;
|
|
6500
|
+
};
|
|
6501
|
+
"crm.columns.getRunStatus": {
|
|
6502
|
+
run: {
|
|
6503
|
+
_id: string;
|
|
6504
|
+
organizationId: string;
|
|
6505
|
+
objectId: string;
|
|
6506
|
+
fieldId: string;
|
|
6507
|
+
kind: "ai_research";
|
|
6508
|
+
status: "pending" | "running" | "paused" | "capped" | "stopped" | "completed" | "failed";
|
|
6509
|
+
scope: "selected" | "empty" | "all";
|
|
6510
|
+
includeUnknownAndFailed: boolean;
|
|
6511
|
+
nextIndex: number;
|
|
6512
|
+
totalCount: number;
|
|
6513
|
+
completedCount: number;
|
|
6514
|
+
skippedCount: number;
|
|
6515
|
+
failedCount: number;
|
|
6516
|
+
spentCents: number;
|
|
6517
|
+
creditStopCeiling: number | null;
|
|
6518
|
+
pauseReason: "user_paused" | "out_of_credits" | "billing_unavailable" | "kill_switch" | null;
|
|
6519
|
+
errorMessage: string | null;
|
|
6520
|
+
promptVersion: number;
|
|
6521
|
+
actorUserId: string | null;
|
|
6522
|
+
claimedAt: number | null;
|
|
6523
|
+
startedAt: number;
|
|
6524
|
+
finishedAt: number | null;
|
|
6525
|
+
updatedAt: number;
|
|
6526
|
+
} | null;
|
|
6527
|
+
activeRuns: Array<{
|
|
6528
|
+
_id: string;
|
|
6529
|
+
organizationId: string;
|
|
6530
|
+
objectId: string;
|
|
6531
|
+
fieldId: string;
|
|
6532
|
+
kind: "ai_research";
|
|
6533
|
+
status: "pending" | "running" | "paused" | "capped" | "stopped" | "completed" | "failed";
|
|
6534
|
+
scope: "selected" | "empty" | "all";
|
|
6535
|
+
includeUnknownAndFailed: boolean;
|
|
6536
|
+
nextIndex: number;
|
|
6537
|
+
totalCount: number;
|
|
6538
|
+
completedCount: number;
|
|
6539
|
+
skippedCount: number;
|
|
6540
|
+
failedCount: number;
|
|
6541
|
+
spentCents: number;
|
|
6542
|
+
creditStopCeiling: number | null;
|
|
6543
|
+
pauseReason: "user_paused" | "out_of_credits" | "billing_unavailable" | "kill_switch" | null;
|
|
6544
|
+
errorMessage: string | null;
|
|
6545
|
+
promptVersion: number;
|
|
6546
|
+
actorUserId: string | null;
|
|
6547
|
+
claimedAt: number | null;
|
|
6548
|
+
startedAt: number;
|
|
6549
|
+
finishedAt: number | null;
|
|
6550
|
+
updatedAt: number;
|
|
6551
|
+
}>;
|
|
6552
|
+
};
|
|
6553
|
+
"crm.columns.overrideCell": {
|
|
6554
|
+
entryId: string;
|
|
6555
|
+
fieldId: string;
|
|
6556
|
+
fieldName: string;
|
|
6557
|
+
value: string | number | null;
|
|
6558
|
+
provenanceStatus: "user_override";
|
|
6559
|
+
};
|
|
6560
|
+
"crm.columns.rerunSingleCell": {
|
|
6561
|
+
status: "ok" | "unknown";
|
|
6562
|
+
entryId: string;
|
|
6563
|
+
fieldId: string;
|
|
6564
|
+
value: string | number | null;
|
|
6565
|
+
sourceUrl: string | null;
|
|
6566
|
+
evidenceQuote: string | null;
|
|
6567
|
+
billedCents: number;
|
|
6568
|
+
} | {
|
|
6569
|
+
status: "skipped";
|
|
6570
|
+
entryId: string;
|
|
6571
|
+
fieldId: string;
|
|
6572
|
+
reason: "missing_input";
|
|
6573
|
+
missingFieldNames: string[];
|
|
6574
|
+
billedCents: 0;
|
|
6575
|
+
};
|
|
6576
|
+
"crm.columns.getCellProvenanceBatch": Record<string, {
|
|
6577
|
+
status: "ok" | "unknown" | "skipped" | "failed" | "user_override";
|
|
6578
|
+
skipReason: string | null;
|
|
6579
|
+
errorMessage: string | null;
|
|
6580
|
+
sourceUrl: string | null;
|
|
6581
|
+
evidenceQuote: string | null;
|
|
6582
|
+
promptVersion: number;
|
|
6583
|
+
runId: string | null;
|
|
6584
|
+
updatedByUserId: string | null;
|
|
6585
|
+
updatedAt: number;
|
|
6586
|
+
}>;
|
|
6587
|
+
"crm.columns.getStagingTriageSummary": {
|
|
6588
|
+
totalCount: number;
|
|
6589
|
+
countsTruncated: boolean;
|
|
6590
|
+
fitColumns: {
|
|
6591
|
+
fieldId: string;
|
|
6592
|
+
fieldName: string;
|
|
6593
|
+
fits: number;
|
|
6594
|
+
doesNotFit: number;
|
|
6595
|
+
unknown: number;
|
|
6596
|
+
notRun: number;
|
|
6597
|
+
populated: boolean;
|
|
6598
|
+
}[];
|
|
6599
|
+
populatedFitFieldCount: number;
|
|
6600
|
+
fitQualifiedCount: number;
|
|
6601
|
+
fitQualifiedWithDomainCount: number;
|
|
6602
|
+
fitQualifiedSkippedNoDomain: number;
|
|
6603
|
+
fitQualifiedTruncated: boolean;
|
|
6604
|
+
};
|
|
6232
6605
|
"crm.enrich.cell": {
|
|
6233
6606
|
enqueued: boolean;
|
|
6234
6607
|
hint: string;
|
|
@@ -9387,6 +9760,40 @@ export type DenchApiTree = {
|
|
|
9387
9760
|
/** Set many CRM cell values. (`dench crm cells set-many`) */
|
|
9388
9761
|
setMany(args: Req<"crm.cells.setMany">): Promise<Res<"crm.cells.setMany">>;
|
|
9389
9762
|
};
|
|
9763
|
+
columns: {
|
|
9764
|
+
/** Create a typed AI Research column (fit_check, text, enum, number, or url) on a staging list or CRM object without autorunning. (`dench crm columns create-ai`) */
|
|
9765
|
+
createAi(args: Req<"crm.columns.createAi">): Promise<Res<"crm.columns.createAi">>;
|
|
9766
|
+
/** Create a staging list CRM object pre-seeded with canonical company or person columns and Notes. (`dench crm columns create-list`) */
|
|
9767
|
+
createStagingList(args: Req<"crm.columns.createStagingList">): Promise<Res<"crm.columns.createStagingList">>;
|
|
9768
|
+
/** Delete an AI Research column, stop any active run, and schedule bounded cell provenance cleanup. (`dench crm columns delete-ai`) */
|
|
9769
|
+
deleteAi(args: Req<"crm.columns.deleteAi">): Promise<Res<"crm.columns.deleteAi">>;
|
|
9770
|
+
/** Archive a staging list immediately, stop active AI column runs, and schedule bounded cascade deletion (creator or admin). (`dench crm columns delete-list`) */
|
|
9771
|
+
deleteStagingListCascade(args: Req<"crm.columns.deleteStagingListCascade">): Promise<Res<"crm.columns.deleteStagingListCascade">>;
|
|
9772
|
+
/** Estimate eligible rows and exact AI credit cost (2 AI credits/row) before starting an AI Research column run. (`dench crm columns estimate-run`) */
|
|
9773
|
+
estimateRun(args: Req<"crm.columns.estimateRun">): Promise<Res<"crm.columns.estimateRun">>;
|
|
9774
|
+
/** Read page-scoped AI Research cell citations, statuses, and override state for up to 100 entry IDs. (`dench crm columns provenance`) */
|
|
9775
|
+
getCellProvenanceBatch(args: Req<"crm.columns.getCellProvenanceBatch">): Promise<Res<"crm.columns.getCellProvenanceBatch">>;
|
|
9776
|
+
/** Read active AI Research column runs on an object and optionally inspect a specific column or run ID. (`dench crm columns run-status`) */
|
|
9777
|
+
getRunStatus(args: Req<"crm.columns.getRunStatus">): Promise<Res<"crm.columns.getRunStatus">>;
|
|
9778
|
+
/** Read O(1) Fit Check triage counts (Fits, Does not fit, Unknown, Not run) and domain-ready Fit count for a list. (`dench crm columns summary`) */
|
|
9779
|
+
getStagingTriageSummary(args: Req<"crm.columns.getStagingTriageSummary">): Promise<Res<"crm.columns.getStagingTriageSummary">>;
|
|
9780
|
+
/** List active workspace staging lists with row counts and management permissions. (`dench crm columns lists`) */
|
|
9781
|
+
listStagingLists(args?: Req<"crm.columns.listStagingLists">): Promise<Res<"crm.columns.listStagingLists">>;
|
|
9782
|
+
/** Manually override (or clear with null) an AI Research cell, locking it as user_override and clearing stale citations. (`dench crm columns override-cell`) */
|
|
9783
|
+
overrideCell(args: Req<"crm.columns.overrideCell">): Promise<Res<"crm.columns.overrideCell">>;
|
|
9784
|
+
/** Pause a pending or running AI Research column run. (`dench crm columns pause-run`) */
|
|
9785
|
+
pauseRun(args: Req<"crm.columns.pauseRun">): Promise<Res<"crm.columns.pauseRun">>;
|
|
9786
|
+
/** Re-run a single AI Research cell live (2 AI credits; 0 DB writes on error; set unlockOverride to replace a manual override). (`dench crm columns rerun-cell`) */
|
|
9787
|
+
rerunSingleCell(args: Req<"crm.columns.rerunSingleCell">): Promise<Res<"crm.columns.rerunSingleCell">>;
|
|
9788
|
+
/** Resume a paused or capped AI Research column run, optionally raising or clearing creditStopCeiling. (`dench crm columns resume-run`) */
|
|
9789
|
+
resumeRun(args: Req<"crm.columns.resumeRun">): Promise<Res<"crm.columns.resumeRun">>;
|
|
9790
|
+
/** Start a durable AI Research column run with explicit row scope and optional hard AI credit ceiling. (`dench crm columns start-run`) */
|
|
9791
|
+
startRun(args: Req<"crm.columns.startRun">): Promise<Res<"crm.columns.startRun">>;
|
|
9792
|
+
/** Permanently stop an active, paused, or capped AI Research column run. (`dench crm columns stop-run`) */
|
|
9793
|
+
stopRun(args: Req<"crm.columns.stopRun">): Promise<Res<"crm.columns.stopRun">>;
|
|
9794
|
+
/** Update an AI Research column's prompt, enum options, description, or required input fields without autorunning. (`dench crm columns update-ai`) */
|
|
9795
|
+
updateAi(args: Req<"crm.columns.updateAi">): Promise<Res<"crm.columns.updateAi">>;
|
|
9796
|
+
};
|
|
9390
9797
|
comments: {
|
|
9391
9798
|
/** Comment on a CRM entry (markdown). Mention members with [@Name](/?member=<userId>); mention Dench with [@Dench](/?member=dench) or mentionDench. (`dench crm comments create`) */
|
|
9392
9799
|
create(args: Req<"crm.comments.create">): Promise<Res<"crm.comments.create">>;
|
|
@@ -9912,7 +10319,7 @@ export type DenchApiTree = {
|
|
|
9912
10319
|
enrich(args: Req<"lists.enrich">): Promise<Res<"lists.enrich">>;
|
|
9913
10320
|
/** Get one saved search / list by artifact id. (`dench lists show`) */
|
|
9914
10321
|
get(args: Req<"lists.get">): Promise<Res<"lists.get">>;
|
|
9915
|
-
/** Explicitly import
|
|
10322
|
+
/** Explicitly import saved find rows into lead, company, job_posting, or a list slug (e.g. list_q4_fintech). Reuses existing records; never sends outreach or triggers conversion. (`dench artifacts import`) */
|
|
9916
10323
|
import(args: Req<"lists.import">): Promise<Res<"lists.import">>;
|
|
9917
10324
|
/** List saved searches (find-result lists) in the workspace, newest first. (`dench lists`) */
|
|
9918
10325
|
list(args?: Req<"lists.list">): Promise<Res<"lists.list">>;
|
|
@@ -9924,6 +10331,8 @@ export type DenchApiTree = {
|
|
|
9924
10331
|
};
|
|
9925
10332
|
/** Rename a saved search / list. (`dench lists rename`) */
|
|
9926
10333
|
rename(args: Req<"lists.rename">): Promise<Res<"lists.rename">>;
|
|
10334
|
+
/** Resolve a saved Find company list, Company saved view, or qualified list (optionally fitOnly) into canonical company domains for people/job searches. (`dench leads find --company-list`) */
|
|
10335
|
+
resolveCompanies(args: Req<"lists.resolveCompanies">): Promise<Res<"lists.resolveCompanies">>;
|
|
9927
10336
|
/** Read saved rows with current enrichment results and original indices; cursor-paged, without repeating a search. (`dench lists rows`) */
|
|
9928
10337
|
rows(args: Req<"lists.rows">): Promise<Res<"lists.rows">>;
|
|
9929
10338
|
/** Save find results as a named list (rows + filters become a workspace artifact). (`dench lists save`) */
|