lumnisai 0.5.43 → 0.5.44
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/dist/index.cjs +19 -1
- package/dist/index.d.cts +37 -5
- package/dist/index.d.mts +37 -5
- package/dist/index.d.ts +37 -5
- package/dist/index.mjs +19 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1044,6 +1044,12 @@ class CrmResource {
|
|
|
1044
1044
|
* details through `accountRef`. Provider degradation and unknown deal stages
|
|
1045
1045
|
* are returned explicitly and must not be treated as safe negative results.
|
|
1046
1046
|
*
|
|
1047
|
+
* Capped at 100 candidates per request; chunk longer lists and reassemble by
|
|
1048
|
+
* `inputKey`. Provider selection comes from the resolved owner's active
|
|
1049
|
+
* HubSpot/Attio connections: no active supported connection is
|
|
1050
|
+
* `409 crm_not_connected`, and a connection-verification failure is a
|
|
1051
|
+
* retryable `503 crm_connection_status_unavailable`.
|
|
1052
|
+
*
|
|
1047
1053
|
* @example
|
|
1048
1054
|
* ```typescript
|
|
1049
1055
|
* const context = await client.crm.accountContextBatch({
|
|
@@ -3242,7 +3248,13 @@ class ResponsesResource {
|
|
|
3242
3248
|
throw new ValidationError("criteria_definitions cannot be empty");
|
|
3243
3249
|
const criterionIds = /* @__PURE__ */ new Set();
|
|
3244
3250
|
const columnNames = /* @__PURE__ */ new Set();
|
|
3245
|
-
const validTypes = [
|
|
3251
|
+
const validTypes = [
|
|
3252
|
+
"universal",
|
|
3253
|
+
"post_hard",
|
|
3254
|
+
"varying",
|
|
3255
|
+
"post_soft",
|
|
3256
|
+
"validation_only"
|
|
3257
|
+
];
|
|
3246
3258
|
criteriaDefinitions.forEach((criterion, index) => {
|
|
3247
3259
|
if (!this._isPlainObject(criterion))
|
|
3248
3260
|
throw new ValidationError(`Criterion ${index} must be an object`);
|
|
@@ -3276,7 +3288,9 @@ class ResponsesResource {
|
|
|
3276
3288
|
if (!this._isPlainObject(criteriaClassification))
|
|
3277
3289
|
throw new ValidationError("criteria_classification must be an object");
|
|
3278
3290
|
const universalCriteria = this._getParamValue(criteriaClassification, "universalCriteria", "universal_criteria");
|
|
3291
|
+
const postHardCriteria = this._getParamValue(criteriaClassification, "postHardCriteria", "post_hard_criteria");
|
|
3279
3292
|
const varyingCriteria = this._getParamValue(criteriaClassification, "varyingCriteria", "varying_criteria");
|
|
3293
|
+
const postSoftCriteria = this._getParamValue(criteriaClassification, "postSoftCriteria", "post_soft_criteria");
|
|
3280
3294
|
const validationOnlyCriteria = this._getParamValue(criteriaClassification, "validationOnlyCriteria", "validation_only_criteria");
|
|
3281
3295
|
if (!Array.isArray(universalCriteria))
|
|
3282
3296
|
throw new ValidationError("criteria_classification missing or invalid universal_criteria");
|
|
@@ -3284,6 +3298,10 @@ class ResponsesResource {
|
|
|
3284
3298
|
throw new ValidationError("criteria_classification missing or invalid varying_criteria");
|
|
3285
3299
|
if (!Array.isArray(validationOnlyCriteria))
|
|
3286
3300
|
throw new ValidationError("criteria_classification missing or invalid validation_only_criteria");
|
|
3301
|
+
if (postHardCriteria !== void 0 && !Array.isArray(postHardCriteria))
|
|
3302
|
+
throw new ValidationError("criteria_classification has invalid post_hard_criteria");
|
|
3303
|
+
if (postSoftCriteria !== void 0 && !Array.isArray(postSoftCriteria))
|
|
3304
|
+
throw new ValidationError("criteria_classification has invalid post_soft_criteria");
|
|
3287
3305
|
}
|
|
3288
3306
|
_validateCompetitorPostEngagementParams(params) {
|
|
3289
3307
|
const company = this._getParamValue(params, "company", "company");
|
package/dist/index.d.cts
CHANGED
|
@@ -2322,7 +2322,7 @@ interface AgentConfig {
|
|
|
2322
2322
|
interface ModelOverrides {
|
|
2323
2323
|
[key: string]: string;
|
|
2324
2324
|
}
|
|
2325
|
-
type CriterionType = 'universal' | 'varying' | 'validation_only';
|
|
2325
|
+
type CriterionType = 'universal' | 'post_hard' | 'varying' | 'post_soft' | 'validation_only';
|
|
2326
2326
|
type ColumnKind = 'extraction' | 'verdict';
|
|
2327
2327
|
/** SLM relevance reranker tier (deep_people_search / people_scoring output). */
|
|
2328
2328
|
type RelevanceTier = 'STRONG_MATCH' | 'PARTIAL_MATCH' | 'WEAK_MATCH';
|
|
@@ -2332,6 +2332,14 @@ interface CriterionDefinition {
|
|
|
2332
2332
|
criterionText: string;
|
|
2333
2333
|
criterionType: CriterionType;
|
|
2334
2334
|
weight: number;
|
|
2335
|
+
/** Exact user-prompt clause supporting the generated criterion, when available. */
|
|
2336
|
+
sourceClauseQuote?: string;
|
|
2337
|
+
/** The grounded fidelity audit edited, retyped, or added this criterion. */
|
|
2338
|
+
auditMutated?: 'edited' | 'edited+retyped' | 'added';
|
|
2339
|
+
/** The deterministic source-clause strength guard retyped this criterion. */
|
|
2340
|
+
strengthGuardMutated?: boolean;
|
|
2341
|
+
/** Machine-readable explanation for a deterministic strength retype. */
|
|
2342
|
+
strengthGuardReason?: string;
|
|
2335
2343
|
/** Expected answer shape for an extraction column. */
|
|
2336
2344
|
answerFormat?: string;
|
|
2337
2345
|
/** Whether this criterion extracts a value or produces a score-bearing verdict. */
|
|
@@ -2347,10 +2355,14 @@ interface CriterionDefinition {
|
|
|
2347
2355
|
}
|
|
2348
2356
|
interface CriteriaClassification {
|
|
2349
2357
|
universalCriteria: CriterionDefinition[];
|
|
2358
|
+
postHardCriteria?: CriterionDefinition[];
|
|
2350
2359
|
varyingCriteria: CriterionDefinition[];
|
|
2360
|
+
postSoftCriteria?: CriterionDefinition[];
|
|
2351
2361
|
validationOnlyCriteria: CriterionDefinition[];
|
|
2352
2362
|
universalReasoning?: string;
|
|
2363
|
+
postHardReasoning?: string;
|
|
2353
2364
|
varyingReasoning?: string;
|
|
2365
|
+
postSoftReasoning?: string;
|
|
2354
2366
|
validationReasoning?: string;
|
|
2355
2367
|
}
|
|
2356
2368
|
interface AddCriterionRequest {
|
|
@@ -2419,7 +2431,7 @@ interface EvidenceSource {
|
|
|
2419
2431
|
interface CriterionResult {
|
|
2420
2432
|
/** Unique identifier matching criteria definition */
|
|
2421
2433
|
criterionId: string;
|
|
2422
|
-
/** Type
|
|
2434
|
+
/** Type encodes both requirement strength and evaluation stage. */
|
|
2423
2435
|
criterionType: CriterionType;
|
|
2424
2436
|
/** Column name for display */
|
|
2425
2437
|
columnName: string;
|
|
@@ -2605,6 +2617,13 @@ interface ValidatedCandidate {
|
|
|
2605
2617
|
* This affects scoring and routing but no longer forces a lower delivery tier.
|
|
2606
2618
|
*/
|
|
2607
2619
|
anyUniversalFailed?: boolean;
|
|
2620
|
+
/**
|
|
2621
|
+
* Legacy-named aggregate: true when any universal or post_hard criterion
|
|
2622
|
+
* could not be decided from sufficient evidence.
|
|
2623
|
+
*/
|
|
2624
|
+
anyUniversalUncertain?: boolean;
|
|
2625
|
+
/** Explicit alias for anyUniversalUncertain covering every hard criterion. */
|
|
2626
|
+
anyHardUncertain?: boolean;
|
|
2608
2627
|
/**
|
|
2609
2628
|
* True when promoted from excluded to meet the requested count despite failing hard
|
|
2610
2629
|
* criteria. This is useful for display and auditing but no longer forces a lower rank tier.
|
|
@@ -2643,11 +2662,16 @@ interface ValidatedCandidate {
|
|
|
2643
2662
|
jobCount?: number;
|
|
2644
2663
|
signalSource?: string;
|
|
2645
2664
|
sampleJobListings?: Array<{
|
|
2665
|
+
jobId?: string | number | null;
|
|
2646
2666
|
title?: string;
|
|
2647
2667
|
description?: string;
|
|
2648
2668
|
workplaceType?: string;
|
|
2649
2669
|
country?: string;
|
|
2650
2670
|
dateAdded?: string;
|
|
2671
|
+
dateUpdated?: string;
|
|
2672
|
+
checkedAt?: string;
|
|
2673
|
+
url?: string | null;
|
|
2674
|
+
source?: string | null;
|
|
2651
2675
|
}>;
|
|
2652
2676
|
};
|
|
2653
2677
|
/** Raw profile data */
|
|
@@ -4613,7 +4637,8 @@ interface CrmAccountContextCandidateInput {
|
|
|
4613
4637
|
}
|
|
4614
4638
|
/**
|
|
4615
4639
|
* Query exact-person and account/deal context across all configured CRMs.
|
|
4616
|
-
* The backend accepts 1..
|
|
4640
|
+
* The backend accepts 1..100 candidates per request; chunk longer lists
|
|
4641
|
+
* client-side and reassemble by `inputKey`.
|
|
4617
4642
|
*/
|
|
4618
4643
|
interface CrmAccountContextBatchRequest {
|
|
4619
4644
|
/** UUID or email of the CRM owner whose context is queried. */
|
|
@@ -4730,8 +4755,9 @@ interface CrmAccountContextBatchResponse {
|
|
|
4730
4755
|
* - `502 crm_upstream_error` — Attio/HubSpot returned an error.
|
|
4731
4756
|
* - `503 crm_upstream_rate_limited` — upstream rate-limit; the response
|
|
4732
4757
|
* includes a `Retry-After` header.
|
|
4733
|
-
* - `503
|
|
4734
|
-
*
|
|
4758
|
+
* - `503 crm_connection_status_unavailable` (account context) — the provider
|
|
4759
|
+
* connection status could not be verified. Retryable; the response includes
|
|
4760
|
+
* a `Retry-After` header. Distinct from `409 crm_not_connected`.
|
|
4735
4761
|
*/
|
|
4736
4762
|
declare class CrmResource {
|
|
4737
4763
|
private readonly http;
|
|
@@ -4802,6 +4828,12 @@ declare class CrmResource {
|
|
|
4802
4828
|
* details through `accountRef`. Provider degradation and unknown deal stages
|
|
4803
4829
|
* are returned explicitly and must not be treated as safe negative results.
|
|
4804
4830
|
*
|
|
4831
|
+
* Capped at 100 candidates per request; chunk longer lists and reassemble by
|
|
4832
|
+
* `inputKey`. Provider selection comes from the resolved owner's active
|
|
4833
|
+
* HubSpot/Attio connections: no active supported connection is
|
|
4834
|
+
* `409 crm_not_connected`, and a connection-verification failure is a
|
|
4835
|
+
* retryable `503 crm_connection_status_unavailable`.
|
|
4836
|
+
*
|
|
4805
4837
|
* @example
|
|
4806
4838
|
* ```typescript
|
|
4807
4839
|
* const context = await client.crm.accountContextBatch({
|
package/dist/index.d.mts
CHANGED
|
@@ -2322,7 +2322,7 @@ interface AgentConfig {
|
|
|
2322
2322
|
interface ModelOverrides {
|
|
2323
2323
|
[key: string]: string;
|
|
2324
2324
|
}
|
|
2325
|
-
type CriterionType = 'universal' | 'varying' | 'validation_only';
|
|
2325
|
+
type CriterionType = 'universal' | 'post_hard' | 'varying' | 'post_soft' | 'validation_only';
|
|
2326
2326
|
type ColumnKind = 'extraction' | 'verdict';
|
|
2327
2327
|
/** SLM relevance reranker tier (deep_people_search / people_scoring output). */
|
|
2328
2328
|
type RelevanceTier = 'STRONG_MATCH' | 'PARTIAL_MATCH' | 'WEAK_MATCH';
|
|
@@ -2332,6 +2332,14 @@ interface CriterionDefinition {
|
|
|
2332
2332
|
criterionText: string;
|
|
2333
2333
|
criterionType: CriterionType;
|
|
2334
2334
|
weight: number;
|
|
2335
|
+
/** Exact user-prompt clause supporting the generated criterion, when available. */
|
|
2336
|
+
sourceClauseQuote?: string;
|
|
2337
|
+
/** The grounded fidelity audit edited, retyped, or added this criterion. */
|
|
2338
|
+
auditMutated?: 'edited' | 'edited+retyped' | 'added';
|
|
2339
|
+
/** The deterministic source-clause strength guard retyped this criterion. */
|
|
2340
|
+
strengthGuardMutated?: boolean;
|
|
2341
|
+
/** Machine-readable explanation for a deterministic strength retype. */
|
|
2342
|
+
strengthGuardReason?: string;
|
|
2335
2343
|
/** Expected answer shape for an extraction column. */
|
|
2336
2344
|
answerFormat?: string;
|
|
2337
2345
|
/** Whether this criterion extracts a value or produces a score-bearing verdict. */
|
|
@@ -2347,10 +2355,14 @@ interface CriterionDefinition {
|
|
|
2347
2355
|
}
|
|
2348
2356
|
interface CriteriaClassification {
|
|
2349
2357
|
universalCriteria: CriterionDefinition[];
|
|
2358
|
+
postHardCriteria?: CriterionDefinition[];
|
|
2350
2359
|
varyingCriteria: CriterionDefinition[];
|
|
2360
|
+
postSoftCriteria?: CriterionDefinition[];
|
|
2351
2361
|
validationOnlyCriteria: CriterionDefinition[];
|
|
2352
2362
|
universalReasoning?: string;
|
|
2363
|
+
postHardReasoning?: string;
|
|
2353
2364
|
varyingReasoning?: string;
|
|
2365
|
+
postSoftReasoning?: string;
|
|
2354
2366
|
validationReasoning?: string;
|
|
2355
2367
|
}
|
|
2356
2368
|
interface AddCriterionRequest {
|
|
@@ -2419,7 +2431,7 @@ interface EvidenceSource {
|
|
|
2419
2431
|
interface CriterionResult {
|
|
2420
2432
|
/** Unique identifier matching criteria definition */
|
|
2421
2433
|
criterionId: string;
|
|
2422
|
-
/** Type
|
|
2434
|
+
/** Type encodes both requirement strength and evaluation stage. */
|
|
2423
2435
|
criterionType: CriterionType;
|
|
2424
2436
|
/** Column name for display */
|
|
2425
2437
|
columnName: string;
|
|
@@ -2605,6 +2617,13 @@ interface ValidatedCandidate {
|
|
|
2605
2617
|
* This affects scoring and routing but no longer forces a lower delivery tier.
|
|
2606
2618
|
*/
|
|
2607
2619
|
anyUniversalFailed?: boolean;
|
|
2620
|
+
/**
|
|
2621
|
+
* Legacy-named aggregate: true when any universal or post_hard criterion
|
|
2622
|
+
* could not be decided from sufficient evidence.
|
|
2623
|
+
*/
|
|
2624
|
+
anyUniversalUncertain?: boolean;
|
|
2625
|
+
/** Explicit alias for anyUniversalUncertain covering every hard criterion. */
|
|
2626
|
+
anyHardUncertain?: boolean;
|
|
2608
2627
|
/**
|
|
2609
2628
|
* True when promoted from excluded to meet the requested count despite failing hard
|
|
2610
2629
|
* criteria. This is useful for display and auditing but no longer forces a lower rank tier.
|
|
@@ -2643,11 +2662,16 @@ interface ValidatedCandidate {
|
|
|
2643
2662
|
jobCount?: number;
|
|
2644
2663
|
signalSource?: string;
|
|
2645
2664
|
sampleJobListings?: Array<{
|
|
2665
|
+
jobId?: string | number | null;
|
|
2646
2666
|
title?: string;
|
|
2647
2667
|
description?: string;
|
|
2648
2668
|
workplaceType?: string;
|
|
2649
2669
|
country?: string;
|
|
2650
2670
|
dateAdded?: string;
|
|
2671
|
+
dateUpdated?: string;
|
|
2672
|
+
checkedAt?: string;
|
|
2673
|
+
url?: string | null;
|
|
2674
|
+
source?: string | null;
|
|
2651
2675
|
}>;
|
|
2652
2676
|
};
|
|
2653
2677
|
/** Raw profile data */
|
|
@@ -4613,7 +4637,8 @@ interface CrmAccountContextCandidateInput {
|
|
|
4613
4637
|
}
|
|
4614
4638
|
/**
|
|
4615
4639
|
* Query exact-person and account/deal context across all configured CRMs.
|
|
4616
|
-
* The backend accepts 1..
|
|
4640
|
+
* The backend accepts 1..100 candidates per request; chunk longer lists
|
|
4641
|
+
* client-side and reassemble by `inputKey`.
|
|
4617
4642
|
*/
|
|
4618
4643
|
interface CrmAccountContextBatchRequest {
|
|
4619
4644
|
/** UUID or email of the CRM owner whose context is queried. */
|
|
@@ -4730,8 +4755,9 @@ interface CrmAccountContextBatchResponse {
|
|
|
4730
4755
|
* - `502 crm_upstream_error` — Attio/HubSpot returned an error.
|
|
4731
4756
|
* - `503 crm_upstream_rate_limited` — upstream rate-limit; the response
|
|
4732
4757
|
* includes a `Retry-After` header.
|
|
4733
|
-
* - `503
|
|
4734
|
-
*
|
|
4758
|
+
* - `503 crm_connection_status_unavailable` (account context) — the provider
|
|
4759
|
+
* connection status could not be verified. Retryable; the response includes
|
|
4760
|
+
* a `Retry-After` header. Distinct from `409 crm_not_connected`.
|
|
4735
4761
|
*/
|
|
4736
4762
|
declare class CrmResource {
|
|
4737
4763
|
private readonly http;
|
|
@@ -4802,6 +4828,12 @@ declare class CrmResource {
|
|
|
4802
4828
|
* details through `accountRef`. Provider degradation and unknown deal stages
|
|
4803
4829
|
* are returned explicitly and must not be treated as safe negative results.
|
|
4804
4830
|
*
|
|
4831
|
+
* Capped at 100 candidates per request; chunk longer lists and reassemble by
|
|
4832
|
+
* `inputKey`. Provider selection comes from the resolved owner's active
|
|
4833
|
+
* HubSpot/Attio connections: no active supported connection is
|
|
4834
|
+
* `409 crm_not_connected`, and a connection-verification failure is a
|
|
4835
|
+
* retryable `503 crm_connection_status_unavailable`.
|
|
4836
|
+
*
|
|
4805
4837
|
* @example
|
|
4806
4838
|
* ```typescript
|
|
4807
4839
|
* const context = await client.crm.accountContextBatch({
|
package/dist/index.d.ts
CHANGED
|
@@ -2322,7 +2322,7 @@ interface AgentConfig {
|
|
|
2322
2322
|
interface ModelOverrides {
|
|
2323
2323
|
[key: string]: string;
|
|
2324
2324
|
}
|
|
2325
|
-
type CriterionType = 'universal' | 'varying' | 'validation_only';
|
|
2325
|
+
type CriterionType = 'universal' | 'post_hard' | 'varying' | 'post_soft' | 'validation_only';
|
|
2326
2326
|
type ColumnKind = 'extraction' | 'verdict';
|
|
2327
2327
|
/** SLM relevance reranker tier (deep_people_search / people_scoring output). */
|
|
2328
2328
|
type RelevanceTier = 'STRONG_MATCH' | 'PARTIAL_MATCH' | 'WEAK_MATCH';
|
|
@@ -2332,6 +2332,14 @@ interface CriterionDefinition {
|
|
|
2332
2332
|
criterionText: string;
|
|
2333
2333
|
criterionType: CriterionType;
|
|
2334
2334
|
weight: number;
|
|
2335
|
+
/** Exact user-prompt clause supporting the generated criterion, when available. */
|
|
2336
|
+
sourceClauseQuote?: string;
|
|
2337
|
+
/** The grounded fidelity audit edited, retyped, or added this criterion. */
|
|
2338
|
+
auditMutated?: 'edited' | 'edited+retyped' | 'added';
|
|
2339
|
+
/** The deterministic source-clause strength guard retyped this criterion. */
|
|
2340
|
+
strengthGuardMutated?: boolean;
|
|
2341
|
+
/** Machine-readable explanation for a deterministic strength retype. */
|
|
2342
|
+
strengthGuardReason?: string;
|
|
2335
2343
|
/** Expected answer shape for an extraction column. */
|
|
2336
2344
|
answerFormat?: string;
|
|
2337
2345
|
/** Whether this criterion extracts a value or produces a score-bearing verdict. */
|
|
@@ -2347,10 +2355,14 @@ interface CriterionDefinition {
|
|
|
2347
2355
|
}
|
|
2348
2356
|
interface CriteriaClassification {
|
|
2349
2357
|
universalCriteria: CriterionDefinition[];
|
|
2358
|
+
postHardCriteria?: CriterionDefinition[];
|
|
2350
2359
|
varyingCriteria: CriterionDefinition[];
|
|
2360
|
+
postSoftCriteria?: CriterionDefinition[];
|
|
2351
2361
|
validationOnlyCriteria: CriterionDefinition[];
|
|
2352
2362
|
universalReasoning?: string;
|
|
2363
|
+
postHardReasoning?: string;
|
|
2353
2364
|
varyingReasoning?: string;
|
|
2365
|
+
postSoftReasoning?: string;
|
|
2354
2366
|
validationReasoning?: string;
|
|
2355
2367
|
}
|
|
2356
2368
|
interface AddCriterionRequest {
|
|
@@ -2419,7 +2431,7 @@ interface EvidenceSource {
|
|
|
2419
2431
|
interface CriterionResult {
|
|
2420
2432
|
/** Unique identifier matching criteria definition */
|
|
2421
2433
|
criterionId: string;
|
|
2422
|
-
/** Type
|
|
2434
|
+
/** Type encodes both requirement strength and evaluation stage. */
|
|
2423
2435
|
criterionType: CriterionType;
|
|
2424
2436
|
/** Column name for display */
|
|
2425
2437
|
columnName: string;
|
|
@@ -2605,6 +2617,13 @@ interface ValidatedCandidate {
|
|
|
2605
2617
|
* This affects scoring and routing but no longer forces a lower delivery tier.
|
|
2606
2618
|
*/
|
|
2607
2619
|
anyUniversalFailed?: boolean;
|
|
2620
|
+
/**
|
|
2621
|
+
* Legacy-named aggregate: true when any universal or post_hard criterion
|
|
2622
|
+
* could not be decided from sufficient evidence.
|
|
2623
|
+
*/
|
|
2624
|
+
anyUniversalUncertain?: boolean;
|
|
2625
|
+
/** Explicit alias for anyUniversalUncertain covering every hard criterion. */
|
|
2626
|
+
anyHardUncertain?: boolean;
|
|
2608
2627
|
/**
|
|
2609
2628
|
* True when promoted from excluded to meet the requested count despite failing hard
|
|
2610
2629
|
* criteria. This is useful for display and auditing but no longer forces a lower rank tier.
|
|
@@ -2643,11 +2662,16 @@ interface ValidatedCandidate {
|
|
|
2643
2662
|
jobCount?: number;
|
|
2644
2663
|
signalSource?: string;
|
|
2645
2664
|
sampleJobListings?: Array<{
|
|
2665
|
+
jobId?: string | number | null;
|
|
2646
2666
|
title?: string;
|
|
2647
2667
|
description?: string;
|
|
2648
2668
|
workplaceType?: string;
|
|
2649
2669
|
country?: string;
|
|
2650
2670
|
dateAdded?: string;
|
|
2671
|
+
dateUpdated?: string;
|
|
2672
|
+
checkedAt?: string;
|
|
2673
|
+
url?: string | null;
|
|
2674
|
+
source?: string | null;
|
|
2651
2675
|
}>;
|
|
2652
2676
|
};
|
|
2653
2677
|
/** Raw profile data */
|
|
@@ -4613,7 +4637,8 @@ interface CrmAccountContextCandidateInput {
|
|
|
4613
4637
|
}
|
|
4614
4638
|
/**
|
|
4615
4639
|
* Query exact-person and account/deal context across all configured CRMs.
|
|
4616
|
-
* The backend accepts 1..
|
|
4640
|
+
* The backend accepts 1..100 candidates per request; chunk longer lists
|
|
4641
|
+
* client-side and reassemble by `inputKey`.
|
|
4617
4642
|
*/
|
|
4618
4643
|
interface CrmAccountContextBatchRequest {
|
|
4619
4644
|
/** UUID or email of the CRM owner whose context is queried. */
|
|
@@ -4730,8 +4755,9 @@ interface CrmAccountContextBatchResponse {
|
|
|
4730
4755
|
* - `502 crm_upstream_error` — Attio/HubSpot returned an error.
|
|
4731
4756
|
* - `503 crm_upstream_rate_limited` — upstream rate-limit; the response
|
|
4732
4757
|
* includes a `Retry-After` header.
|
|
4733
|
-
* - `503
|
|
4734
|
-
*
|
|
4758
|
+
* - `503 crm_connection_status_unavailable` (account context) — the provider
|
|
4759
|
+
* connection status could not be verified. Retryable; the response includes
|
|
4760
|
+
* a `Retry-After` header. Distinct from `409 crm_not_connected`.
|
|
4735
4761
|
*/
|
|
4736
4762
|
declare class CrmResource {
|
|
4737
4763
|
private readonly http;
|
|
@@ -4802,6 +4828,12 @@ declare class CrmResource {
|
|
|
4802
4828
|
* details through `accountRef`. Provider degradation and unknown deal stages
|
|
4803
4829
|
* are returned explicitly and must not be treated as safe negative results.
|
|
4804
4830
|
*
|
|
4831
|
+
* Capped at 100 candidates per request; chunk longer lists and reassemble by
|
|
4832
|
+
* `inputKey`. Provider selection comes from the resolved owner's active
|
|
4833
|
+
* HubSpot/Attio connections: no active supported connection is
|
|
4834
|
+
* `409 crm_not_connected`, and a connection-verification failure is a
|
|
4835
|
+
* retryable `503 crm_connection_status_unavailable`.
|
|
4836
|
+
*
|
|
4805
4837
|
* @example
|
|
4806
4838
|
* ```typescript
|
|
4807
4839
|
* const context = await client.crm.accountContextBatch({
|
package/dist/index.mjs
CHANGED
|
@@ -1038,6 +1038,12 @@ class CrmResource {
|
|
|
1038
1038
|
* details through `accountRef`. Provider degradation and unknown deal stages
|
|
1039
1039
|
* are returned explicitly and must not be treated as safe negative results.
|
|
1040
1040
|
*
|
|
1041
|
+
* Capped at 100 candidates per request; chunk longer lists and reassemble by
|
|
1042
|
+
* `inputKey`. Provider selection comes from the resolved owner's active
|
|
1043
|
+
* HubSpot/Attio connections: no active supported connection is
|
|
1044
|
+
* `409 crm_not_connected`, and a connection-verification failure is a
|
|
1045
|
+
* retryable `503 crm_connection_status_unavailable`.
|
|
1046
|
+
*
|
|
1041
1047
|
* @example
|
|
1042
1048
|
* ```typescript
|
|
1043
1049
|
* const context = await client.crm.accountContextBatch({
|
|
@@ -3236,7 +3242,13 @@ class ResponsesResource {
|
|
|
3236
3242
|
throw new ValidationError("criteria_definitions cannot be empty");
|
|
3237
3243
|
const criterionIds = /* @__PURE__ */ new Set();
|
|
3238
3244
|
const columnNames = /* @__PURE__ */ new Set();
|
|
3239
|
-
const validTypes = [
|
|
3245
|
+
const validTypes = [
|
|
3246
|
+
"universal",
|
|
3247
|
+
"post_hard",
|
|
3248
|
+
"varying",
|
|
3249
|
+
"post_soft",
|
|
3250
|
+
"validation_only"
|
|
3251
|
+
];
|
|
3240
3252
|
criteriaDefinitions.forEach((criterion, index) => {
|
|
3241
3253
|
if (!this._isPlainObject(criterion))
|
|
3242
3254
|
throw new ValidationError(`Criterion ${index} must be an object`);
|
|
@@ -3270,7 +3282,9 @@ class ResponsesResource {
|
|
|
3270
3282
|
if (!this._isPlainObject(criteriaClassification))
|
|
3271
3283
|
throw new ValidationError("criteria_classification must be an object");
|
|
3272
3284
|
const universalCriteria = this._getParamValue(criteriaClassification, "universalCriteria", "universal_criteria");
|
|
3285
|
+
const postHardCriteria = this._getParamValue(criteriaClassification, "postHardCriteria", "post_hard_criteria");
|
|
3273
3286
|
const varyingCriteria = this._getParamValue(criteriaClassification, "varyingCriteria", "varying_criteria");
|
|
3287
|
+
const postSoftCriteria = this._getParamValue(criteriaClassification, "postSoftCriteria", "post_soft_criteria");
|
|
3274
3288
|
const validationOnlyCriteria = this._getParamValue(criteriaClassification, "validationOnlyCriteria", "validation_only_criteria");
|
|
3275
3289
|
if (!Array.isArray(universalCriteria))
|
|
3276
3290
|
throw new ValidationError("criteria_classification missing or invalid universal_criteria");
|
|
@@ -3278,6 +3292,10 @@ class ResponsesResource {
|
|
|
3278
3292
|
throw new ValidationError("criteria_classification missing or invalid varying_criteria");
|
|
3279
3293
|
if (!Array.isArray(validationOnlyCriteria))
|
|
3280
3294
|
throw new ValidationError("criteria_classification missing or invalid validation_only_criteria");
|
|
3295
|
+
if (postHardCriteria !== void 0 && !Array.isArray(postHardCriteria))
|
|
3296
|
+
throw new ValidationError("criteria_classification has invalid post_hard_criteria");
|
|
3297
|
+
if (postSoftCriteria !== void 0 && !Array.isArray(postSoftCriteria))
|
|
3298
|
+
throw new ValidationError("criteria_classification has invalid post_soft_criteria");
|
|
3281
3299
|
}
|
|
3282
3300
|
_validateCompetitorPostEngagementParams(params) {
|
|
3283
3301
|
const company = this._getParamValue(params, "company", "company");
|