lumnisai 0.1.26 → 0.1.28

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 CHANGED
@@ -2045,7 +2045,11 @@ class ResponsesResource {
2045
2045
  );
2046
2046
  const runSingleCriterion = this._getParamValue(rawParams, "runSingleCriterion", "run_single_criterion");
2047
2047
  const addCriterion = this._getParamValue(rawParams, "addCriterion", "add_criterion");
2048
- const addAndRunCriterion = this._getParamValue(rawParams, "addAndRunCriterion", "add_and_run_criterion");
2048
+ const addAndRunCriterion = this._getParamValue(
2049
+ rawParams,
2050
+ "addAndRunCriterion",
2051
+ "add_and_run_criterion"
2052
+ );
2049
2053
  const candidateProfiles = this._getParamValue(
2050
2054
  rawParams,
2051
2055
  "candidateProfiles",
@@ -2086,8 +2090,23 @@ class ResponsesResource {
2086
2090
  if (addAndRunCriterion !== void 0) {
2087
2091
  if (!reuseCriteriaFrom && !hasCriteria)
2088
2092
  throw new ValidationError("add_and_run_criterion requires existing criteria (reuse or direct criteria).");
2089
- if (typeof addAndRunCriterion !== "string" || !addAndRunCriterion.trim())
2090
- throw new ValidationError("add_and_run_criterion must be a non-empty string");
2093
+ if (typeof addAndRunCriterion === "string") {
2094
+ if (!addAndRunCriterion.trim())
2095
+ throw new ValidationError("add_and_run_criterion must be a non-empty string");
2096
+ } else if (this._isPlainObject(addAndRunCriterion)) {
2097
+ const criterionText = this._getParamValue(addAndRunCriterion, "criterionText", "criterion_text");
2098
+ const suggestedColumnName = this._getParamValue(
2099
+ addAndRunCriterion,
2100
+ "suggestedColumnName",
2101
+ "suggested_column_name"
2102
+ );
2103
+ if (!criterionText || typeof criterionText !== "string")
2104
+ throw new ValidationError("add_and_run_criterion object requires criterion_text");
2105
+ if (suggestedColumnName !== void 0 && typeof suggestedColumnName !== "string")
2106
+ throw new ValidationError("add_and_run_criterion suggested_column_name must be a string if provided");
2107
+ } else {
2108
+ throw new ValidationError("add_and_run_criterion must be a string or an object");
2109
+ }
2091
2110
  }
2092
2111
  if (specializedAgent === "people_scoring") {
2093
2112
  if (!candidateProfiles || !Array.isArray(candidateProfiles) || candidateProfiles.length === 0)
@@ -2259,7 +2278,10 @@ class ResponsesResource {
2259
2278
  * @param options.criteriaClassification - Pre-defined criteria classification
2260
2279
  * @param options.runSingleCriterion - Run only a single criterion by ID
2261
2280
  * @param options.addCriterion - Add a new criterion to existing criteria
2262
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2281
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2282
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2283
+ * Example string: 'Must have 5+ years Python experience'
2284
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2263
2285
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2264
2286
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2265
2287
  * @param options.excludeNames - Names to exclude from results
@@ -2312,7 +2334,10 @@ class ResponsesResource {
2312
2334
  * @param options.criteriaClassification - Pre-defined criteria classification
2313
2335
  * @param options.runSingleCriterion - Run only a single criterion by ID
2314
2336
  * @param options.addCriterion - Add a new criterion to existing criteria
2315
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2337
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2338
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2339
+ * Example string: 'Must have 5+ years Python experience'
2340
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2316
2341
  * @returns Response with structured_response containing:
2317
2342
  * - candidates: Scored candidates with validation results
2318
2343
  * - criteria: Generated/reused criteria definitions and classification
package/dist/index.d.cts CHANGED
@@ -498,13 +498,15 @@ interface PersonResult {
498
498
  country?: string;
499
499
  /** Primary email address */
500
500
  email?: string;
501
- /** List of email addresses (up to 3) */
501
+ /** List of email addresses */
502
502
  emails: string[];
503
503
  /** LinkedIn profile URL */
504
504
  linkedinUrl?: string;
505
+ /** Profile picture URL for frontend display */
506
+ profilePictureUrl?: string;
505
507
  /** Years of professional experience */
506
508
  yearsExperience?: number;
507
- /** List of skills (up to 15) */
509
+ /** List of skills */
508
510
  skills: string[];
509
511
  /** Seniority level (e.g., "Senior", "Director", "VP") */
510
512
  seniorityLevel?: string;
@@ -524,7 +526,7 @@ interface PersonResult {
524
526
  certificationsCount?: number;
525
527
  /** List of languages spoken (CoreSignal only) */
526
528
  languages?: string[];
527
- /** List of education degrees (CoreSignal only, up to 3) */
529
+ /** List of education degrees (CoreSignal only) */
528
530
  educationDegrees?: string[];
529
531
  }
530
532
  /**
@@ -660,6 +662,10 @@ interface AddCriterionRequest {
660
662
  criterionType?: CriterionType;
661
663
  weight?: number;
662
664
  }
665
+ interface AddAndRunCriterionRequest {
666
+ criterionText: string;
667
+ suggestedColumnName?: string;
668
+ }
663
669
  interface CriteriaMetadata {
664
670
  version: number;
665
671
  createdAt: string;
@@ -732,8 +738,12 @@ interface SpecializedAgentParams {
732
738
  addCriterion?: AddCriterionRequest;
733
739
  /**
734
740
  * Add a new criterion from English text and run only that criterion.
741
+ * Can be a string (criterion text) or an object with criterion_text and optional suggested_column_name.
742
+ * Example string: 'Must have 5+ years Python experience'
743
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
744
+ * If suggestedColumnName not provided, it will be auto-generated from the text.
735
745
  */
736
- addAndRunCriterion?: string;
746
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
737
747
  /**
738
748
  * List of candidate profiles to score (for people_scoring agent).
739
749
  * Each candidate must include at least one identifier: linkedin_url or email/emails.
@@ -2956,7 +2966,10 @@ declare class ResponsesResource {
2956
2966
  * @param options.criteriaClassification - Pre-defined criteria classification
2957
2967
  * @param options.runSingleCriterion - Run only a single criterion by ID
2958
2968
  * @param options.addCriterion - Add a new criterion to existing criteria
2959
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2969
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2970
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2971
+ * Example string: 'Must have 5+ years Python experience'
2972
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2960
2973
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2961
2974
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2962
2975
  * @param options.excludeNames - Names to exclude from results
@@ -2978,7 +2991,7 @@ declare class ResponsesResource {
2978
2991
  criterionType?: CriterionType;
2979
2992
  weight?: number;
2980
2993
  };
2981
- addAndRunCriterion?: string;
2994
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
2982
2995
  excludeProfiles?: string[];
2983
2996
  excludePreviouslyContacted?: boolean;
2984
2997
  excludeNames?: string[];
@@ -2993,7 +3006,10 @@ declare class ResponsesResource {
2993
3006
  * @param options.criteriaClassification - Pre-defined criteria classification
2994
3007
  * @param options.runSingleCriterion - Run only a single criterion by ID
2995
3008
  * @param options.addCriterion - Add a new criterion to existing criteria
2996
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
3009
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
3010
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
3011
+ * Example string: 'Must have 5+ years Python experience'
3012
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2997
3013
  * @returns Response with structured_response containing:
2998
3014
  * - candidates: Scored candidates with validation results
2999
3015
  * - criteria: Generated/reused criteria definitions and classification
@@ -3009,7 +3025,7 @@ declare class ResponsesResource {
3009
3025
  criterionType?: CriterionType;
3010
3026
  weight?: number;
3011
3027
  };
3012
- addAndRunCriterion?: string;
3028
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
3013
3029
  }): Promise<CreateResponseResponse>;
3014
3030
  }
3015
3031
 
@@ -3464,4 +3480,4 @@ declare class ProgressTracker {
3464
3480
  */
3465
3481
  declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
3466
3482
 
3467
- export { ACTION_DELAYS, type AddCriterionRequest, type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppliedFilters, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BatchCheckConnectionRequest, type BatchCheckPriorContactRequest, type BatchCheckPriorContactResponse, type BatchConnectionRequest, type BatchConnectionResponse, type BatchConnectionStatus, type BatchConnectionStatusResponse, type BatchDraftCompleteData, type BatchDraftCreatedData, type BatchDraftErrorData, type BatchDraftJobProgress, type BatchDraftJobResponse, type BatchDraftJobStartedData, type BatchDraftJobStatusResponse, type BatchDraftProgressData, type BatchDraftRequest, type BatchDraftResponse, type BatchDraftStreamCallbacks, type BatchDraftStreamEvent, type BatchDraftStreamEventType, BatchJobStatus, type BatchProspectIdentifier, type BatchSendRequest, type BatchSendResponse, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelDraftResponse, type CancelResponseResponse, type ChannelContactHistory, ChannelType, type CheckAppEnabledParams, type CheckLinkedInConnectionRequest, type CheckPriorContactRequest, type CheckPriorContactResponse, type ChunkingStrategy, type ConnectionAcceptedData, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ConnectionSummary, type ContentType, type ConversationDetail, ConversationStatus, type ConversationSummary, type CreateDraftRequest, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type CriteriaClassification, type CriteriaMetadata, type CriterionDefinition, type CriterionType, type DatabaseStatus, type DeleteApiKeyResponse, type DeleteConversationResponse, type DeleteConversationsByProjectResponse, type DisconnectRequest, type DisconnectResponse, type DraftResponse, type DraftSendOverride, DraftStatus, type DuplicateHandling, type Email, type EmailThreadSummary, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type FilterLogic, type FilterValue, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, type InmailSubscription, IntegrationsResource, InternalServerError, LINKEDIN_LIMITS, type LinkedInAccountInfoResponse, type LinkedInConnectionStatus, type LinkedInCreditsResponse, type LinkedInLimitSubscriptionType, type LinkedInLimits, type LinkedInSendRequest, type LinkedInSubscriptionInfo, LinkedInSubscriptionType, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type MessageReceivedData, type MessageResponse, type MessageSentData, MessageType, MessagingAPIError, MessagingConnectionError, MessagingNotFoundError, MessagingResource, MessagingSendError, MessagingValidationError, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NetworkDistance, NoDataSourcesError, NotFoundError, OutreachMethod, type PaginationInfo, type PaginationParams, PeopleDataSource, PeopleResource, type PeopleSearchRequest, type PeopleSearchResponse, type PersonResult, type Plan, type PriorContactMessage, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, type ProspectConnectionCheck, type ProspectInfo, type ProspectPriorContactResult, type ProspectSyncIdentifier, type ProspectSyncResult, ProviderType, QueueItemStatus, type QuickPeopleSearchOutput, RATE_LIMIT_COOLDOWNS, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type SalaryRange, type Scope, type SelectedSkill, type SendMessageRequest, type SendMessageResponse, type SendReplyRequest, type SendResult, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, SourcesNotAvailableError, type SpecializedAgentParams, type SpecializedAgentType, type StoreApiKeyRequest, type StructuredResponse, type SyncJobResponse, SyncJobStatus, type SyncProspectRequest, type SyncProspectResponse, type SyncRequest, type SyncStats, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, UNIPILE_RATE_LIMIT_ERRORS, UNIPILE_SAFE_LIMITS, type UUID, type UnlinkConversationsResponse, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateDraftRequest, type UpdateLinkedInSubscriptionRequest, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, type WebhookEvent, type WebhookPayload, canSendInmail, displayProgress, formatProgressEntry, getBestSubscriptionForAction, getConnectionRequestLimit, getInmailAllowance, getLimits, getMessageLimit, hasOpenProfileMessages, verifyWebhookSignature };
3483
+ export { ACTION_DELAYS, type AddAndRunCriterionRequest, type AddCriterionRequest, type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppliedFilters, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BatchCheckConnectionRequest, type BatchCheckPriorContactRequest, type BatchCheckPriorContactResponse, type BatchConnectionRequest, type BatchConnectionResponse, type BatchConnectionStatus, type BatchConnectionStatusResponse, type BatchDraftCompleteData, type BatchDraftCreatedData, type BatchDraftErrorData, type BatchDraftJobProgress, type BatchDraftJobResponse, type BatchDraftJobStartedData, type BatchDraftJobStatusResponse, type BatchDraftProgressData, type BatchDraftRequest, type BatchDraftResponse, type BatchDraftStreamCallbacks, type BatchDraftStreamEvent, type BatchDraftStreamEventType, BatchJobStatus, type BatchProspectIdentifier, type BatchSendRequest, type BatchSendResponse, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelDraftResponse, type CancelResponseResponse, type ChannelContactHistory, ChannelType, type CheckAppEnabledParams, type CheckLinkedInConnectionRequest, type CheckPriorContactRequest, type CheckPriorContactResponse, type ChunkingStrategy, type ConnectionAcceptedData, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ConnectionSummary, type ContentType, type ConversationDetail, ConversationStatus, type ConversationSummary, type CreateDraftRequest, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type CriteriaClassification, type CriteriaMetadata, type CriterionDefinition, type CriterionType, type DatabaseStatus, type DeleteApiKeyResponse, type DeleteConversationResponse, type DeleteConversationsByProjectResponse, type DisconnectRequest, type DisconnectResponse, type DraftResponse, type DraftSendOverride, DraftStatus, type DuplicateHandling, type Email, type EmailThreadSummary, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type FilterLogic, type FilterValue, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, type InmailSubscription, IntegrationsResource, InternalServerError, LINKEDIN_LIMITS, type LinkedInAccountInfoResponse, type LinkedInConnectionStatus, type LinkedInCreditsResponse, type LinkedInLimitSubscriptionType, type LinkedInLimits, type LinkedInSendRequest, type LinkedInSubscriptionInfo, LinkedInSubscriptionType, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type MessageReceivedData, type MessageResponse, type MessageSentData, MessageType, MessagingAPIError, MessagingConnectionError, MessagingNotFoundError, MessagingResource, MessagingSendError, MessagingValidationError, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NetworkDistance, NoDataSourcesError, NotFoundError, OutreachMethod, type PaginationInfo, type PaginationParams, PeopleDataSource, PeopleResource, type PeopleSearchRequest, type PeopleSearchResponse, type PersonResult, type Plan, type PriorContactMessage, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, type ProspectConnectionCheck, type ProspectInfo, type ProspectPriorContactResult, type ProspectSyncIdentifier, type ProspectSyncResult, ProviderType, QueueItemStatus, type QuickPeopleSearchOutput, RATE_LIMIT_COOLDOWNS, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type SalaryRange, type Scope, type SelectedSkill, type SendMessageRequest, type SendMessageResponse, type SendReplyRequest, type SendResult, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, SourcesNotAvailableError, type SpecializedAgentParams, type SpecializedAgentType, type StoreApiKeyRequest, type StructuredResponse, type SyncJobResponse, SyncJobStatus, type SyncProspectRequest, type SyncProspectResponse, type SyncRequest, type SyncStats, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, UNIPILE_RATE_LIMIT_ERRORS, UNIPILE_SAFE_LIMITS, type UUID, type UnlinkConversationsResponse, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateDraftRequest, type UpdateLinkedInSubscriptionRequest, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, type WebhookEvent, type WebhookPayload, canSendInmail, displayProgress, formatProgressEntry, getBestSubscriptionForAction, getConnectionRequestLimit, getInmailAllowance, getLimits, getMessageLimit, hasOpenProfileMessages, verifyWebhookSignature };
package/dist/index.d.mts CHANGED
@@ -498,13 +498,15 @@ interface PersonResult {
498
498
  country?: string;
499
499
  /** Primary email address */
500
500
  email?: string;
501
- /** List of email addresses (up to 3) */
501
+ /** List of email addresses */
502
502
  emails: string[];
503
503
  /** LinkedIn profile URL */
504
504
  linkedinUrl?: string;
505
+ /** Profile picture URL for frontend display */
506
+ profilePictureUrl?: string;
505
507
  /** Years of professional experience */
506
508
  yearsExperience?: number;
507
- /** List of skills (up to 15) */
509
+ /** List of skills */
508
510
  skills: string[];
509
511
  /** Seniority level (e.g., "Senior", "Director", "VP") */
510
512
  seniorityLevel?: string;
@@ -524,7 +526,7 @@ interface PersonResult {
524
526
  certificationsCount?: number;
525
527
  /** List of languages spoken (CoreSignal only) */
526
528
  languages?: string[];
527
- /** List of education degrees (CoreSignal only, up to 3) */
529
+ /** List of education degrees (CoreSignal only) */
528
530
  educationDegrees?: string[];
529
531
  }
530
532
  /**
@@ -660,6 +662,10 @@ interface AddCriterionRequest {
660
662
  criterionType?: CriterionType;
661
663
  weight?: number;
662
664
  }
665
+ interface AddAndRunCriterionRequest {
666
+ criterionText: string;
667
+ suggestedColumnName?: string;
668
+ }
663
669
  interface CriteriaMetadata {
664
670
  version: number;
665
671
  createdAt: string;
@@ -732,8 +738,12 @@ interface SpecializedAgentParams {
732
738
  addCriterion?: AddCriterionRequest;
733
739
  /**
734
740
  * Add a new criterion from English text and run only that criterion.
741
+ * Can be a string (criterion text) or an object with criterion_text and optional suggested_column_name.
742
+ * Example string: 'Must have 5+ years Python experience'
743
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
744
+ * If suggestedColumnName not provided, it will be auto-generated from the text.
735
745
  */
736
- addAndRunCriterion?: string;
746
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
737
747
  /**
738
748
  * List of candidate profiles to score (for people_scoring agent).
739
749
  * Each candidate must include at least one identifier: linkedin_url or email/emails.
@@ -2956,7 +2966,10 @@ declare class ResponsesResource {
2956
2966
  * @param options.criteriaClassification - Pre-defined criteria classification
2957
2967
  * @param options.runSingleCriterion - Run only a single criterion by ID
2958
2968
  * @param options.addCriterion - Add a new criterion to existing criteria
2959
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2969
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2970
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2971
+ * Example string: 'Must have 5+ years Python experience'
2972
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2960
2973
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2961
2974
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2962
2975
  * @param options.excludeNames - Names to exclude from results
@@ -2978,7 +2991,7 @@ declare class ResponsesResource {
2978
2991
  criterionType?: CriterionType;
2979
2992
  weight?: number;
2980
2993
  };
2981
- addAndRunCriterion?: string;
2994
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
2982
2995
  excludeProfiles?: string[];
2983
2996
  excludePreviouslyContacted?: boolean;
2984
2997
  excludeNames?: string[];
@@ -2993,7 +3006,10 @@ declare class ResponsesResource {
2993
3006
  * @param options.criteriaClassification - Pre-defined criteria classification
2994
3007
  * @param options.runSingleCriterion - Run only a single criterion by ID
2995
3008
  * @param options.addCriterion - Add a new criterion to existing criteria
2996
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
3009
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
3010
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
3011
+ * Example string: 'Must have 5+ years Python experience'
3012
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2997
3013
  * @returns Response with structured_response containing:
2998
3014
  * - candidates: Scored candidates with validation results
2999
3015
  * - criteria: Generated/reused criteria definitions and classification
@@ -3009,7 +3025,7 @@ declare class ResponsesResource {
3009
3025
  criterionType?: CriterionType;
3010
3026
  weight?: number;
3011
3027
  };
3012
- addAndRunCriterion?: string;
3028
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
3013
3029
  }): Promise<CreateResponseResponse>;
3014
3030
  }
3015
3031
 
@@ -3464,4 +3480,4 @@ declare class ProgressTracker {
3464
3480
  */
3465
3481
  declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
3466
3482
 
3467
- export { ACTION_DELAYS, type AddCriterionRequest, type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppliedFilters, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BatchCheckConnectionRequest, type BatchCheckPriorContactRequest, type BatchCheckPriorContactResponse, type BatchConnectionRequest, type BatchConnectionResponse, type BatchConnectionStatus, type BatchConnectionStatusResponse, type BatchDraftCompleteData, type BatchDraftCreatedData, type BatchDraftErrorData, type BatchDraftJobProgress, type BatchDraftJobResponse, type BatchDraftJobStartedData, type BatchDraftJobStatusResponse, type BatchDraftProgressData, type BatchDraftRequest, type BatchDraftResponse, type BatchDraftStreamCallbacks, type BatchDraftStreamEvent, type BatchDraftStreamEventType, BatchJobStatus, type BatchProspectIdentifier, type BatchSendRequest, type BatchSendResponse, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelDraftResponse, type CancelResponseResponse, type ChannelContactHistory, ChannelType, type CheckAppEnabledParams, type CheckLinkedInConnectionRequest, type CheckPriorContactRequest, type CheckPriorContactResponse, type ChunkingStrategy, type ConnectionAcceptedData, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ConnectionSummary, type ContentType, type ConversationDetail, ConversationStatus, type ConversationSummary, type CreateDraftRequest, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type CriteriaClassification, type CriteriaMetadata, type CriterionDefinition, type CriterionType, type DatabaseStatus, type DeleteApiKeyResponse, type DeleteConversationResponse, type DeleteConversationsByProjectResponse, type DisconnectRequest, type DisconnectResponse, type DraftResponse, type DraftSendOverride, DraftStatus, type DuplicateHandling, type Email, type EmailThreadSummary, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type FilterLogic, type FilterValue, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, type InmailSubscription, IntegrationsResource, InternalServerError, LINKEDIN_LIMITS, type LinkedInAccountInfoResponse, type LinkedInConnectionStatus, type LinkedInCreditsResponse, type LinkedInLimitSubscriptionType, type LinkedInLimits, type LinkedInSendRequest, type LinkedInSubscriptionInfo, LinkedInSubscriptionType, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type MessageReceivedData, type MessageResponse, type MessageSentData, MessageType, MessagingAPIError, MessagingConnectionError, MessagingNotFoundError, MessagingResource, MessagingSendError, MessagingValidationError, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NetworkDistance, NoDataSourcesError, NotFoundError, OutreachMethod, type PaginationInfo, type PaginationParams, PeopleDataSource, PeopleResource, type PeopleSearchRequest, type PeopleSearchResponse, type PersonResult, type Plan, type PriorContactMessage, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, type ProspectConnectionCheck, type ProspectInfo, type ProspectPriorContactResult, type ProspectSyncIdentifier, type ProspectSyncResult, ProviderType, QueueItemStatus, type QuickPeopleSearchOutput, RATE_LIMIT_COOLDOWNS, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type SalaryRange, type Scope, type SelectedSkill, type SendMessageRequest, type SendMessageResponse, type SendReplyRequest, type SendResult, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, SourcesNotAvailableError, type SpecializedAgentParams, type SpecializedAgentType, type StoreApiKeyRequest, type StructuredResponse, type SyncJobResponse, SyncJobStatus, type SyncProspectRequest, type SyncProspectResponse, type SyncRequest, type SyncStats, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, UNIPILE_RATE_LIMIT_ERRORS, UNIPILE_SAFE_LIMITS, type UUID, type UnlinkConversationsResponse, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateDraftRequest, type UpdateLinkedInSubscriptionRequest, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, type WebhookEvent, type WebhookPayload, canSendInmail, displayProgress, formatProgressEntry, getBestSubscriptionForAction, getConnectionRequestLimit, getInmailAllowance, getLimits, getMessageLimit, hasOpenProfileMessages, verifyWebhookSignature };
3483
+ export { ACTION_DELAYS, type AddAndRunCriterionRequest, type AddCriterionRequest, type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppliedFilters, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BatchCheckConnectionRequest, type BatchCheckPriorContactRequest, type BatchCheckPriorContactResponse, type BatchConnectionRequest, type BatchConnectionResponse, type BatchConnectionStatus, type BatchConnectionStatusResponse, type BatchDraftCompleteData, type BatchDraftCreatedData, type BatchDraftErrorData, type BatchDraftJobProgress, type BatchDraftJobResponse, type BatchDraftJobStartedData, type BatchDraftJobStatusResponse, type BatchDraftProgressData, type BatchDraftRequest, type BatchDraftResponse, type BatchDraftStreamCallbacks, type BatchDraftStreamEvent, type BatchDraftStreamEventType, BatchJobStatus, type BatchProspectIdentifier, type BatchSendRequest, type BatchSendResponse, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelDraftResponse, type CancelResponseResponse, type ChannelContactHistory, ChannelType, type CheckAppEnabledParams, type CheckLinkedInConnectionRequest, type CheckPriorContactRequest, type CheckPriorContactResponse, type ChunkingStrategy, type ConnectionAcceptedData, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ConnectionSummary, type ContentType, type ConversationDetail, ConversationStatus, type ConversationSummary, type CreateDraftRequest, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type CriteriaClassification, type CriteriaMetadata, type CriterionDefinition, type CriterionType, type DatabaseStatus, type DeleteApiKeyResponse, type DeleteConversationResponse, type DeleteConversationsByProjectResponse, type DisconnectRequest, type DisconnectResponse, type DraftResponse, type DraftSendOverride, DraftStatus, type DuplicateHandling, type Email, type EmailThreadSummary, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type FilterLogic, type FilterValue, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, type InmailSubscription, IntegrationsResource, InternalServerError, LINKEDIN_LIMITS, type LinkedInAccountInfoResponse, type LinkedInConnectionStatus, type LinkedInCreditsResponse, type LinkedInLimitSubscriptionType, type LinkedInLimits, type LinkedInSendRequest, type LinkedInSubscriptionInfo, LinkedInSubscriptionType, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type MessageReceivedData, type MessageResponse, type MessageSentData, MessageType, MessagingAPIError, MessagingConnectionError, MessagingNotFoundError, MessagingResource, MessagingSendError, MessagingValidationError, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NetworkDistance, NoDataSourcesError, NotFoundError, OutreachMethod, type PaginationInfo, type PaginationParams, PeopleDataSource, PeopleResource, type PeopleSearchRequest, type PeopleSearchResponse, type PersonResult, type Plan, type PriorContactMessage, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, type ProspectConnectionCheck, type ProspectInfo, type ProspectPriorContactResult, type ProspectSyncIdentifier, type ProspectSyncResult, ProviderType, QueueItemStatus, type QuickPeopleSearchOutput, RATE_LIMIT_COOLDOWNS, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type SalaryRange, type Scope, type SelectedSkill, type SendMessageRequest, type SendMessageResponse, type SendReplyRequest, type SendResult, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, SourcesNotAvailableError, type SpecializedAgentParams, type SpecializedAgentType, type StoreApiKeyRequest, type StructuredResponse, type SyncJobResponse, SyncJobStatus, type SyncProspectRequest, type SyncProspectResponse, type SyncRequest, type SyncStats, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, UNIPILE_RATE_LIMIT_ERRORS, UNIPILE_SAFE_LIMITS, type UUID, type UnlinkConversationsResponse, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateDraftRequest, type UpdateLinkedInSubscriptionRequest, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, type WebhookEvent, type WebhookPayload, canSendInmail, displayProgress, formatProgressEntry, getBestSubscriptionForAction, getConnectionRequestLimit, getInmailAllowance, getLimits, getMessageLimit, hasOpenProfileMessages, verifyWebhookSignature };
package/dist/index.d.ts CHANGED
@@ -498,13 +498,15 @@ interface PersonResult {
498
498
  country?: string;
499
499
  /** Primary email address */
500
500
  email?: string;
501
- /** List of email addresses (up to 3) */
501
+ /** List of email addresses */
502
502
  emails: string[];
503
503
  /** LinkedIn profile URL */
504
504
  linkedinUrl?: string;
505
+ /** Profile picture URL for frontend display */
506
+ profilePictureUrl?: string;
505
507
  /** Years of professional experience */
506
508
  yearsExperience?: number;
507
- /** List of skills (up to 15) */
509
+ /** List of skills */
508
510
  skills: string[];
509
511
  /** Seniority level (e.g., "Senior", "Director", "VP") */
510
512
  seniorityLevel?: string;
@@ -524,7 +526,7 @@ interface PersonResult {
524
526
  certificationsCount?: number;
525
527
  /** List of languages spoken (CoreSignal only) */
526
528
  languages?: string[];
527
- /** List of education degrees (CoreSignal only, up to 3) */
529
+ /** List of education degrees (CoreSignal only) */
528
530
  educationDegrees?: string[];
529
531
  }
530
532
  /**
@@ -660,6 +662,10 @@ interface AddCriterionRequest {
660
662
  criterionType?: CriterionType;
661
663
  weight?: number;
662
664
  }
665
+ interface AddAndRunCriterionRequest {
666
+ criterionText: string;
667
+ suggestedColumnName?: string;
668
+ }
663
669
  interface CriteriaMetadata {
664
670
  version: number;
665
671
  createdAt: string;
@@ -732,8 +738,12 @@ interface SpecializedAgentParams {
732
738
  addCriterion?: AddCriterionRequest;
733
739
  /**
734
740
  * Add a new criterion from English text and run only that criterion.
741
+ * Can be a string (criterion text) or an object with criterion_text and optional suggested_column_name.
742
+ * Example string: 'Must have 5+ years Python experience'
743
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
744
+ * If suggestedColumnName not provided, it will be auto-generated from the text.
735
745
  */
736
- addAndRunCriterion?: string;
746
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
737
747
  /**
738
748
  * List of candidate profiles to score (for people_scoring agent).
739
749
  * Each candidate must include at least one identifier: linkedin_url or email/emails.
@@ -2956,7 +2966,10 @@ declare class ResponsesResource {
2956
2966
  * @param options.criteriaClassification - Pre-defined criteria classification
2957
2967
  * @param options.runSingleCriterion - Run only a single criterion by ID
2958
2968
  * @param options.addCriterion - Add a new criterion to existing criteria
2959
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2969
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2970
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2971
+ * Example string: 'Must have 5+ years Python experience'
2972
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2960
2973
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2961
2974
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2962
2975
  * @param options.excludeNames - Names to exclude from results
@@ -2978,7 +2991,7 @@ declare class ResponsesResource {
2978
2991
  criterionType?: CriterionType;
2979
2992
  weight?: number;
2980
2993
  };
2981
- addAndRunCriterion?: string;
2994
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
2982
2995
  excludeProfiles?: string[];
2983
2996
  excludePreviouslyContacted?: boolean;
2984
2997
  excludeNames?: string[];
@@ -2993,7 +3006,10 @@ declare class ResponsesResource {
2993
3006
  * @param options.criteriaClassification - Pre-defined criteria classification
2994
3007
  * @param options.runSingleCriterion - Run only a single criterion by ID
2995
3008
  * @param options.addCriterion - Add a new criterion to existing criteria
2996
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
3009
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
3010
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
3011
+ * Example string: 'Must have 5+ years Python experience'
3012
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2997
3013
  * @returns Response with structured_response containing:
2998
3014
  * - candidates: Scored candidates with validation results
2999
3015
  * - criteria: Generated/reused criteria definitions and classification
@@ -3009,7 +3025,7 @@ declare class ResponsesResource {
3009
3025
  criterionType?: CriterionType;
3010
3026
  weight?: number;
3011
3027
  };
3012
- addAndRunCriterion?: string;
3028
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
3013
3029
  }): Promise<CreateResponseResponse>;
3014
3030
  }
3015
3031
 
@@ -3464,4 +3480,4 @@ declare class ProgressTracker {
3464
3480
  */
3465
3481
  declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
3466
3482
 
3467
- export { ACTION_DELAYS, type AddCriterionRequest, type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppliedFilters, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BatchCheckConnectionRequest, type BatchCheckPriorContactRequest, type BatchCheckPriorContactResponse, type BatchConnectionRequest, type BatchConnectionResponse, type BatchConnectionStatus, type BatchConnectionStatusResponse, type BatchDraftCompleteData, type BatchDraftCreatedData, type BatchDraftErrorData, type BatchDraftJobProgress, type BatchDraftJobResponse, type BatchDraftJobStartedData, type BatchDraftJobStatusResponse, type BatchDraftProgressData, type BatchDraftRequest, type BatchDraftResponse, type BatchDraftStreamCallbacks, type BatchDraftStreamEvent, type BatchDraftStreamEventType, BatchJobStatus, type BatchProspectIdentifier, type BatchSendRequest, type BatchSendResponse, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelDraftResponse, type CancelResponseResponse, type ChannelContactHistory, ChannelType, type CheckAppEnabledParams, type CheckLinkedInConnectionRequest, type CheckPriorContactRequest, type CheckPriorContactResponse, type ChunkingStrategy, type ConnectionAcceptedData, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ConnectionSummary, type ContentType, type ConversationDetail, ConversationStatus, type ConversationSummary, type CreateDraftRequest, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type CriteriaClassification, type CriteriaMetadata, type CriterionDefinition, type CriterionType, type DatabaseStatus, type DeleteApiKeyResponse, type DeleteConversationResponse, type DeleteConversationsByProjectResponse, type DisconnectRequest, type DisconnectResponse, type DraftResponse, type DraftSendOverride, DraftStatus, type DuplicateHandling, type Email, type EmailThreadSummary, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type FilterLogic, type FilterValue, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, type InmailSubscription, IntegrationsResource, InternalServerError, LINKEDIN_LIMITS, type LinkedInAccountInfoResponse, type LinkedInConnectionStatus, type LinkedInCreditsResponse, type LinkedInLimitSubscriptionType, type LinkedInLimits, type LinkedInSendRequest, type LinkedInSubscriptionInfo, LinkedInSubscriptionType, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type MessageReceivedData, type MessageResponse, type MessageSentData, MessageType, MessagingAPIError, MessagingConnectionError, MessagingNotFoundError, MessagingResource, MessagingSendError, MessagingValidationError, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NetworkDistance, NoDataSourcesError, NotFoundError, OutreachMethod, type PaginationInfo, type PaginationParams, PeopleDataSource, PeopleResource, type PeopleSearchRequest, type PeopleSearchResponse, type PersonResult, type Plan, type PriorContactMessage, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, type ProspectConnectionCheck, type ProspectInfo, type ProspectPriorContactResult, type ProspectSyncIdentifier, type ProspectSyncResult, ProviderType, QueueItemStatus, type QuickPeopleSearchOutput, RATE_LIMIT_COOLDOWNS, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type SalaryRange, type Scope, type SelectedSkill, type SendMessageRequest, type SendMessageResponse, type SendReplyRequest, type SendResult, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, SourcesNotAvailableError, type SpecializedAgentParams, type SpecializedAgentType, type StoreApiKeyRequest, type StructuredResponse, type SyncJobResponse, SyncJobStatus, type SyncProspectRequest, type SyncProspectResponse, type SyncRequest, type SyncStats, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, UNIPILE_RATE_LIMIT_ERRORS, UNIPILE_SAFE_LIMITS, type UUID, type UnlinkConversationsResponse, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateDraftRequest, type UpdateLinkedInSubscriptionRequest, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, type WebhookEvent, type WebhookPayload, canSendInmail, displayProgress, formatProgressEntry, getBestSubscriptionForAction, getConnectionRequestLimit, getInmailAllowance, getLimits, getMessageLimit, hasOpenProfileMessages, verifyWebhookSignature };
3483
+ export { ACTION_DELAYS, type AddAndRunCriterionRequest, type AddCriterionRequest, type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppliedFilters, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BatchCheckConnectionRequest, type BatchCheckPriorContactRequest, type BatchCheckPriorContactResponse, type BatchConnectionRequest, type BatchConnectionResponse, type BatchConnectionStatus, type BatchConnectionStatusResponse, type BatchDraftCompleteData, type BatchDraftCreatedData, type BatchDraftErrorData, type BatchDraftJobProgress, type BatchDraftJobResponse, type BatchDraftJobStartedData, type BatchDraftJobStatusResponse, type BatchDraftProgressData, type BatchDraftRequest, type BatchDraftResponse, type BatchDraftStreamCallbacks, type BatchDraftStreamEvent, type BatchDraftStreamEventType, BatchJobStatus, type BatchProspectIdentifier, type BatchSendRequest, type BatchSendResponse, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelDraftResponse, type CancelResponseResponse, type ChannelContactHistory, ChannelType, type CheckAppEnabledParams, type CheckLinkedInConnectionRequest, type CheckPriorContactRequest, type CheckPriorContactResponse, type ChunkingStrategy, type ConnectionAcceptedData, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ConnectionSummary, type ContentType, type ConversationDetail, ConversationStatus, type ConversationSummary, type CreateDraftRequest, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type CriteriaClassification, type CriteriaMetadata, type CriterionDefinition, type CriterionType, type DatabaseStatus, type DeleteApiKeyResponse, type DeleteConversationResponse, type DeleteConversationsByProjectResponse, type DisconnectRequest, type DisconnectResponse, type DraftResponse, type DraftSendOverride, DraftStatus, type DuplicateHandling, type Email, type EmailThreadSummary, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type FilterLogic, type FilterValue, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, type InmailSubscription, IntegrationsResource, InternalServerError, LINKEDIN_LIMITS, type LinkedInAccountInfoResponse, type LinkedInConnectionStatus, type LinkedInCreditsResponse, type LinkedInLimitSubscriptionType, type LinkedInLimits, type LinkedInSendRequest, type LinkedInSubscriptionInfo, LinkedInSubscriptionType, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type MessageReceivedData, type MessageResponse, type MessageSentData, MessageType, MessagingAPIError, MessagingConnectionError, MessagingNotFoundError, MessagingResource, MessagingSendError, MessagingValidationError, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NetworkDistance, NoDataSourcesError, NotFoundError, OutreachMethod, type PaginationInfo, type PaginationParams, PeopleDataSource, PeopleResource, type PeopleSearchRequest, type PeopleSearchResponse, type PersonResult, type Plan, type PriorContactMessage, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, type ProspectConnectionCheck, type ProspectInfo, type ProspectPriorContactResult, type ProspectSyncIdentifier, type ProspectSyncResult, ProviderType, QueueItemStatus, type QuickPeopleSearchOutput, RATE_LIMIT_COOLDOWNS, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type SalaryRange, type Scope, type SelectedSkill, type SendMessageRequest, type SendMessageResponse, type SendReplyRequest, type SendResult, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, SourcesNotAvailableError, type SpecializedAgentParams, type SpecializedAgentType, type StoreApiKeyRequest, type StructuredResponse, type SyncJobResponse, SyncJobStatus, type SyncProspectRequest, type SyncProspectResponse, type SyncRequest, type SyncStats, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, UNIPILE_RATE_LIMIT_ERRORS, UNIPILE_SAFE_LIMITS, type UUID, type UnlinkConversationsResponse, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateDraftRequest, type UpdateLinkedInSubscriptionRequest, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, type WebhookEvent, type WebhookPayload, canSendInmail, displayProgress, formatProgressEntry, getBestSubscriptionForAction, getConnectionRequestLimit, getInmailAllowance, getLimits, getMessageLimit, hasOpenProfileMessages, verifyWebhookSignature };
package/dist/index.mjs CHANGED
@@ -2039,7 +2039,11 @@ class ResponsesResource {
2039
2039
  );
2040
2040
  const runSingleCriterion = this._getParamValue(rawParams, "runSingleCriterion", "run_single_criterion");
2041
2041
  const addCriterion = this._getParamValue(rawParams, "addCriterion", "add_criterion");
2042
- const addAndRunCriterion = this._getParamValue(rawParams, "addAndRunCriterion", "add_and_run_criterion");
2042
+ const addAndRunCriterion = this._getParamValue(
2043
+ rawParams,
2044
+ "addAndRunCriterion",
2045
+ "add_and_run_criterion"
2046
+ );
2043
2047
  const candidateProfiles = this._getParamValue(
2044
2048
  rawParams,
2045
2049
  "candidateProfiles",
@@ -2080,8 +2084,23 @@ class ResponsesResource {
2080
2084
  if (addAndRunCriterion !== void 0) {
2081
2085
  if (!reuseCriteriaFrom && !hasCriteria)
2082
2086
  throw new ValidationError("add_and_run_criterion requires existing criteria (reuse or direct criteria).");
2083
- if (typeof addAndRunCriterion !== "string" || !addAndRunCriterion.trim())
2084
- throw new ValidationError("add_and_run_criterion must be a non-empty string");
2087
+ if (typeof addAndRunCriterion === "string") {
2088
+ if (!addAndRunCriterion.trim())
2089
+ throw new ValidationError("add_and_run_criterion must be a non-empty string");
2090
+ } else if (this._isPlainObject(addAndRunCriterion)) {
2091
+ const criterionText = this._getParamValue(addAndRunCriterion, "criterionText", "criterion_text");
2092
+ const suggestedColumnName = this._getParamValue(
2093
+ addAndRunCriterion,
2094
+ "suggestedColumnName",
2095
+ "suggested_column_name"
2096
+ );
2097
+ if (!criterionText || typeof criterionText !== "string")
2098
+ throw new ValidationError("add_and_run_criterion object requires criterion_text");
2099
+ if (suggestedColumnName !== void 0 && typeof suggestedColumnName !== "string")
2100
+ throw new ValidationError("add_and_run_criterion suggested_column_name must be a string if provided");
2101
+ } else {
2102
+ throw new ValidationError("add_and_run_criterion must be a string or an object");
2103
+ }
2085
2104
  }
2086
2105
  if (specializedAgent === "people_scoring") {
2087
2106
  if (!candidateProfiles || !Array.isArray(candidateProfiles) || candidateProfiles.length === 0)
@@ -2253,7 +2272,10 @@ class ResponsesResource {
2253
2272
  * @param options.criteriaClassification - Pre-defined criteria classification
2254
2273
  * @param options.runSingleCriterion - Run only a single criterion by ID
2255
2274
  * @param options.addCriterion - Add a new criterion to existing criteria
2256
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2275
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2276
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2277
+ * Example string: 'Must have 5+ years Python experience'
2278
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2257
2279
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2258
2280
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2259
2281
  * @param options.excludeNames - Names to exclude from results
@@ -2306,7 +2328,10 @@ class ResponsesResource {
2306
2328
  * @param options.criteriaClassification - Pre-defined criteria classification
2307
2329
  * @param options.runSingleCriterion - Run only a single criterion by ID
2308
2330
  * @param options.addCriterion - Add a new criterion to existing criteria
2309
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2331
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2332
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2333
+ * Example string: 'Must have 5+ years Python experience'
2334
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2310
2335
  * @returns Response with structured_response containing:
2311
2336
  * - candidates: Scored candidates with validation results
2312
2337
  * - criteria: Generated/reused criteria definitions and classification
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lumnisai",
3
3
  "type": "module",
4
- "version": "0.1.26",
4
+ "version": "0.1.28",
5
5
  "description": "Official Node.js SDK for the Lumnis AI API",
6
6
  "author": "Lumnis AI",
7
7
  "license": "MIT",