lumnisai 0.1.26 → 0.1.27

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
@@ -660,6 +660,10 @@ interface AddCriterionRequest {
660
660
  criterionType?: CriterionType;
661
661
  weight?: number;
662
662
  }
663
+ interface AddAndRunCriterionRequest {
664
+ criterionText: string;
665
+ suggestedColumnName?: string;
666
+ }
663
667
  interface CriteriaMetadata {
664
668
  version: number;
665
669
  createdAt: string;
@@ -732,8 +736,12 @@ interface SpecializedAgentParams {
732
736
  addCriterion?: AddCriterionRequest;
733
737
  /**
734
738
  * Add a new criterion from English text and run only that criterion.
739
+ * Can be a string (criterion text) or an object with criterion_text and optional suggested_column_name.
740
+ * Example string: 'Must have 5+ years Python experience'
741
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
742
+ * If suggestedColumnName not provided, it will be auto-generated from the text.
735
743
  */
736
- addAndRunCriterion?: string;
744
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
737
745
  /**
738
746
  * List of candidate profiles to score (for people_scoring agent).
739
747
  * Each candidate must include at least one identifier: linkedin_url or email/emails.
@@ -2956,7 +2964,10 @@ declare class ResponsesResource {
2956
2964
  * @param options.criteriaClassification - Pre-defined criteria classification
2957
2965
  * @param options.runSingleCriterion - Run only a single criterion by ID
2958
2966
  * @param options.addCriterion - Add a new criterion to existing criteria
2959
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2967
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2968
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2969
+ * Example string: 'Must have 5+ years Python experience'
2970
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2960
2971
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2961
2972
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2962
2973
  * @param options.excludeNames - Names to exclude from results
@@ -2978,7 +2989,7 @@ declare class ResponsesResource {
2978
2989
  criterionType?: CriterionType;
2979
2990
  weight?: number;
2980
2991
  };
2981
- addAndRunCriterion?: string;
2992
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
2982
2993
  excludeProfiles?: string[];
2983
2994
  excludePreviouslyContacted?: boolean;
2984
2995
  excludeNames?: string[];
@@ -2993,7 +3004,10 @@ declare class ResponsesResource {
2993
3004
  * @param options.criteriaClassification - Pre-defined criteria classification
2994
3005
  * @param options.runSingleCriterion - Run only a single criterion by ID
2995
3006
  * @param options.addCriterion - Add a new criterion to existing criteria
2996
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
3007
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
3008
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
3009
+ * Example string: 'Must have 5+ years Python experience'
3010
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2997
3011
  * @returns Response with structured_response containing:
2998
3012
  * - candidates: Scored candidates with validation results
2999
3013
  * - criteria: Generated/reused criteria definitions and classification
@@ -3009,7 +3023,7 @@ declare class ResponsesResource {
3009
3023
  criterionType?: CriterionType;
3010
3024
  weight?: number;
3011
3025
  };
3012
- addAndRunCriterion?: string;
3026
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
3013
3027
  }): Promise<CreateResponseResponse>;
3014
3028
  }
3015
3029
 
@@ -3464,4 +3478,4 @@ declare class ProgressTracker {
3464
3478
  */
3465
3479
  declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
3466
3480
 
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 };
3481
+ 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
@@ -660,6 +660,10 @@ interface AddCriterionRequest {
660
660
  criterionType?: CriterionType;
661
661
  weight?: number;
662
662
  }
663
+ interface AddAndRunCriterionRequest {
664
+ criterionText: string;
665
+ suggestedColumnName?: string;
666
+ }
663
667
  interface CriteriaMetadata {
664
668
  version: number;
665
669
  createdAt: string;
@@ -732,8 +736,12 @@ interface SpecializedAgentParams {
732
736
  addCriterion?: AddCriterionRequest;
733
737
  /**
734
738
  * Add a new criterion from English text and run only that criterion.
739
+ * Can be a string (criterion text) or an object with criterion_text and optional suggested_column_name.
740
+ * Example string: 'Must have 5+ years Python experience'
741
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
742
+ * If suggestedColumnName not provided, it will be auto-generated from the text.
735
743
  */
736
- addAndRunCriterion?: string;
744
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
737
745
  /**
738
746
  * List of candidate profiles to score (for people_scoring agent).
739
747
  * Each candidate must include at least one identifier: linkedin_url or email/emails.
@@ -2956,7 +2964,10 @@ declare class ResponsesResource {
2956
2964
  * @param options.criteriaClassification - Pre-defined criteria classification
2957
2965
  * @param options.runSingleCriterion - Run only a single criterion by ID
2958
2966
  * @param options.addCriterion - Add a new criterion to existing criteria
2959
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2967
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2968
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2969
+ * Example string: 'Must have 5+ years Python experience'
2970
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2960
2971
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2961
2972
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2962
2973
  * @param options.excludeNames - Names to exclude from results
@@ -2978,7 +2989,7 @@ declare class ResponsesResource {
2978
2989
  criterionType?: CriterionType;
2979
2990
  weight?: number;
2980
2991
  };
2981
- addAndRunCriterion?: string;
2992
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
2982
2993
  excludeProfiles?: string[];
2983
2994
  excludePreviouslyContacted?: boolean;
2984
2995
  excludeNames?: string[];
@@ -2993,7 +3004,10 @@ declare class ResponsesResource {
2993
3004
  * @param options.criteriaClassification - Pre-defined criteria classification
2994
3005
  * @param options.runSingleCriterion - Run only a single criterion by ID
2995
3006
  * @param options.addCriterion - Add a new criterion to existing criteria
2996
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
3007
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
3008
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
3009
+ * Example string: 'Must have 5+ years Python experience'
3010
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2997
3011
  * @returns Response with structured_response containing:
2998
3012
  * - candidates: Scored candidates with validation results
2999
3013
  * - criteria: Generated/reused criteria definitions and classification
@@ -3009,7 +3023,7 @@ declare class ResponsesResource {
3009
3023
  criterionType?: CriterionType;
3010
3024
  weight?: number;
3011
3025
  };
3012
- addAndRunCriterion?: string;
3026
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
3013
3027
  }): Promise<CreateResponseResponse>;
3014
3028
  }
3015
3029
 
@@ -3464,4 +3478,4 @@ declare class ProgressTracker {
3464
3478
  */
3465
3479
  declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
3466
3480
 
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 };
3481
+ 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
@@ -660,6 +660,10 @@ interface AddCriterionRequest {
660
660
  criterionType?: CriterionType;
661
661
  weight?: number;
662
662
  }
663
+ interface AddAndRunCriterionRequest {
664
+ criterionText: string;
665
+ suggestedColumnName?: string;
666
+ }
663
667
  interface CriteriaMetadata {
664
668
  version: number;
665
669
  createdAt: string;
@@ -732,8 +736,12 @@ interface SpecializedAgentParams {
732
736
  addCriterion?: AddCriterionRequest;
733
737
  /**
734
738
  * Add a new criterion from English text and run only that criterion.
739
+ * Can be a string (criterion text) or an object with criterion_text and optional suggested_column_name.
740
+ * Example string: 'Must have 5+ years Python experience'
741
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
742
+ * If suggestedColumnName not provided, it will be auto-generated from the text.
735
743
  */
736
- addAndRunCriterion?: string;
744
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
737
745
  /**
738
746
  * List of candidate profiles to score (for people_scoring agent).
739
747
  * Each candidate must include at least one identifier: linkedin_url or email/emails.
@@ -2956,7 +2964,10 @@ declare class ResponsesResource {
2956
2964
  * @param options.criteriaClassification - Pre-defined criteria classification
2957
2965
  * @param options.runSingleCriterion - Run only a single criterion by ID
2958
2966
  * @param options.addCriterion - Add a new criterion to existing criteria
2959
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
2967
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
2968
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
2969
+ * Example string: 'Must have 5+ years Python experience'
2970
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2960
2971
  * @param options.excludeProfiles - LinkedIn URLs to exclude from results
2961
2972
  * @param options.excludePreviouslyContacted - Exclude previously contacted people
2962
2973
  * @param options.excludeNames - Names to exclude from results
@@ -2978,7 +2989,7 @@ declare class ResponsesResource {
2978
2989
  criterionType?: CriterionType;
2979
2990
  weight?: number;
2980
2991
  };
2981
- addAndRunCriterion?: string;
2992
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
2982
2993
  excludeProfiles?: string[];
2983
2994
  excludePreviouslyContacted?: boolean;
2984
2995
  excludeNames?: string[];
@@ -2993,7 +3004,10 @@ declare class ResponsesResource {
2993
3004
  * @param options.criteriaClassification - Pre-defined criteria classification
2994
3005
  * @param options.runSingleCriterion - Run only a single criterion by ID
2995
3006
  * @param options.addCriterion - Add a new criterion to existing criteria
2996
- * @param options.addAndRunCriterion - Add criterion from text and run only that criterion
3007
+ * @param options.addAndRunCriterion - Add criterion from text and run only that criterion.
3008
+ * Can be a string (criterion text) or an object with criterionText and optional suggestedColumnName.
3009
+ * Example string: 'Must have 5+ years Python experience'
3010
+ * Example object: { criterionText: 'Has ML experience', suggestedColumnName: 'ml_experience' }
2997
3011
  * @returns Response with structured_response containing:
2998
3012
  * - candidates: Scored candidates with validation results
2999
3013
  * - criteria: Generated/reused criteria definitions and classification
@@ -3009,7 +3023,7 @@ declare class ResponsesResource {
3009
3023
  criterionType?: CriterionType;
3010
3024
  weight?: number;
3011
3025
  };
3012
- addAndRunCriterion?: string;
3026
+ addAndRunCriterion?: string | AddAndRunCriterionRequest;
3013
3027
  }): Promise<CreateResponseResponse>;
3014
3028
  }
3015
3029
 
@@ -3464,4 +3478,4 @@ declare class ProgressTracker {
3464
3478
  */
3465
3479
  declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
3466
3480
 
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 };
3481
+ 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.27",
5
5
  "description": "Official Node.js SDK for the Lumnis AI API",
6
6
  "author": "Lumnis AI",
7
7
  "license": "MIT",