lumnisai 0.2.17 → 0.2.18
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 +24 -0
- package/dist/index.d.cts +101 -1
- package/dist/index.d.mts +101 -1
- package/dist/index.d.ts +101 -1
- package/dist/index.mjs +24 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2360,6 +2360,30 @@ class ResponsesResource {
|
|
|
2360
2360
|
params.excludePreviouslyContacted = options.excludePreviouslyContacted;
|
|
2361
2361
|
if (options.excludeNames)
|
|
2362
2362
|
params.excludeNames = options.excludeNames;
|
|
2363
|
+
if (options.searchProfiles !== void 0)
|
|
2364
|
+
params.searchProfiles = options.searchProfiles;
|
|
2365
|
+
if (options.searchPosts !== void 0)
|
|
2366
|
+
params.searchPosts = options.searchPosts;
|
|
2367
|
+
if (options.includeEngagementInScore !== void 0)
|
|
2368
|
+
params.includeEngagementInScore = options.includeEngagementInScore;
|
|
2369
|
+
if (options.postsMaxResults !== void 0)
|
|
2370
|
+
params.postsMaxResults = options.postsMaxResults;
|
|
2371
|
+
if (options.postsMaxKeywords !== void 0)
|
|
2372
|
+
params.postsMaxKeywords = options.postsMaxKeywords;
|
|
2373
|
+
if (options.postsDateRange)
|
|
2374
|
+
params.postsDateRange = options.postsDateRange;
|
|
2375
|
+
if (options.postsFields)
|
|
2376
|
+
params.postsFields = options.postsFields;
|
|
2377
|
+
if (options.postsMaxReactors !== void 0)
|
|
2378
|
+
params.postsMaxReactors = options.postsMaxReactors;
|
|
2379
|
+
if (options.postsMaxComments !== void 0)
|
|
2380
|
+
params.postsMaxComments = options.postsMaxComments;
|
|
2381
|
+
if (options.postsEnableEnrichment !== void 0)
|
|
2382
|
+
params.postsEnableEnrichment = options.postsEnableEnrichment;
|
|
2383
|
+
if (options.postsEnableFiltering !== void 0)
|
|
2384
|
+
params.postsEnableFiltering = options.postsEnableFiltering;
|
|
2385
|
+
if (options.engagementScoreWeight !== void 0)
|
|
2386
|
+
params.engagementScoreWeight = options.engagementScoreWeight;
|
|
2363
2387
|
if (Object.keys(params).length > 0)
|
|
2364
2388
|
request.specializedAgentParams = params;
|
|
2365
2389
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -228,7 +228,7 @@ interface TenantDetailsResponse {
|
|
|
228
228
|
updatedAt: string;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
|
|
231
|
+
type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'PDL_API_KEY' | 'CRUSTDATA_API_KEY' | 'ENRICH_LAYER_API_KEY' | 'E2B_API_KEY' | 'AWS_ACCESS_KEY_ID' | 'AWS_SECRET_ACCESS_KEY';
|
|
232
232
|
interface StoreApiKeyRequest {
|
|
233
233
|
provider: ApiProvider;
|
|
234
234
|
apiKey: string;
|
|
@@ -803,6 +803,94 @@ interface SpecializedAgentParams {
|
|
|
803
803
|
* Each candidate must include at least one identifier: linkedin_url or email/emails.
|
|
804
804
|
*/
|
|
805
805
|
candidateProfiles?: Array<Record<string, any>>;
|
|
806
|
+
/**
|
|
807
|
+
* Whether to search profile databases (CrustData/PDL).
|
|
808
|
+
* Options: true (always), false (never), 'auto' (LLM decides).
|
|
809
|
+
* @default true
|
|
810
|
+
* Used by deep_people_search.
|
|
811
|
+
*/
|
|
812
|
+
searchProfiles?: boolean | 'auto';
|
|
813
|
+
/**
|
|
814
|
+
* Whether to search LinkedIn posts for engagement (authors, reactors, commenters).
|
|
815
|
+
* Options: true (always), false (never), 'auto' (LLM decides based on query).
|
|
816
|
+
* @default 'auto'
|
|
817
|
+
* Used by deep_people_search.
|
|
818
|
+
*/
|
|
819
|
+
searchPosts?: boolean | 'auto';
|
|
820
|
+
/**
|
|
821
|
+
* Whether to include LinkedIn post engagement in candidate scoring.
|
|
822
|
+
* Options: true (always), false (never), 'auto' (LLM decides).
|
|
823
|
+
* @default 'auto'
|
|
824
|
+
* Used by deep_people_search.
|
|
825
|
+
*/
|
|
826
|
+
includeEngagementInScore?: boolean | 'auto';
|
|
827
|
+
/**
|
|
828
|
+
* Maximum number of posts to search.
|
|
829
|
+
* Range: 1-500
|
|
830
|
+
* @default 50
|
|
831
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
832
|
+
*/
|
|
833
|
+
postsMaxResults?: number;
|
|
834
|
+
/**
|
|
835
|
+
* Maximum number of keywords to use for posts search.
|
|
836
|
+
* If not provided, all extracted keywords are used.
|
|
837
|
+
* Range: 1-20
|
|
838
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
839
|
+
*/
|
|
840
|
+
postsMaxKeywords?: number;
|
|
841
|
+
/**
|
|
842
|
+
* Date range for posts search.
|
|
843
|
+
* Options: 'past-24h', 'past-week', 'past-month', 'past-year'
|
|
844
|
+
* @default 'past-month'
|
|
845
|
+
* Used by deep_people_search.
|
|
846
|
+
*/
|
|
847
|
+
postsDateRange?: 'past-24h' | 'past-week' | 'past-month' | 'past-year';
|
|
848
|
+
/**
|
|
849
|
+
* Engagement fields to fetch from posts.
|
|
850
|
+
* Options: 'reactors' (5 credits/post), 'comments' (5 credits/post), 'reactors,comments' (10 credits/post)
|
|
851
|
+
* @default 'reactors'
|
|
852
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
853
|
+
*/
|
|
854
|
+
postsFields?: 'reactors' | 'comments' | 'reactors,comments';
|
|
855
|
+
/**
|
|
856
|
+
* Maximum reactors per post to fetch.
|
|
857
|
+
* Range: 1-5000
|
|
858
|
+
* @default 5000
|
|
859
|
+
* No additional cost (same 5 credits/post for 1-5000 reactors).
|
|
860
|
+
* Used by deep_people_search when postsFields includes 'reactors'.
|
|
861
|
+
*/
|
|
862
|
+
postsMaxReactors?: number;
|
|
863
|
+
/**
|
|
864
|
+
* Maximum comments per post to fetch.
|
|
865
|
+
* Range: 1-5000
|
|
866
|
+
* @default 5000
|
|
867
|
+
* No additional cost (same 5 credits/post for 1-5000 comments).
|
|
868
|
+
* Used by deep_people_search when postsFields includes 'comments'.
|
|
869
|
+
*/
|
|
870
|
+
postsMaxComments?: number;
|
|
871
|
+
/**
|
|
872
|
+
* Whether to enrich posts candidates with EnrichLayer.
|
|
873
|
+
* @default false
|
|
874
|
+
* CrustData posts API already provides rich data (skills, experience, education).
|
|
875
|
+
* Enable only if you need additional fields from EnrichLayer.
|
|
876
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
877
|
+
*/
|
|
878
|
+
postsEnableEnrichment?: boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Whether to filter posts for relevance before extracting people.
|
|
881
|
+
* @default true
|
|
882
|
+
* Uses LLM to identify and skip hiring posts, spam, and irrelevant content.
|
|
883
|
+
* Improves candidate quality at cost of ~1 LLM call per post.
|
|
884
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
885
|
+
*/
|
|
886
|
+
postsEnableFiltering?: boolean;
|
|
887
|
+
/**
|
|
888
|
+
* Weight for engagement score when included in match score calculation.
|
|
889
|
+
* Range: 0.0-0.3
|
|
890
|
+
* @default 0.15
|
|
891
|
+
* Used by deep_people_search when includeEngagementInScore is true.
|
|
892
|
+
*/
|
|
893
|
+
engagementScoreWeight?: number;
|
|
806
894
|
/**
|
|
807
895
|
* Additional parameters for any specialized agent
|
|
808
896
|
* This allows flexibility for future agents without SDK updates
|
|
@@ -3055,6 +3143,18 @@ declare class ResponsesResource {
|
|
|
3055
3143
|
excludeProfiles?: string[];
|
|
3056
3144
|
excludePreviouslyContacted?: boolean;
|
|
3057
3145
|
excludeNames?: string[];
|
|
3146
|
+
searchProfiles?: boolean | 'auto';
|
|
3147
|
+
searchPosts?: boolean | 'auto';
|
|
3148
|
+
includeEngagementInScore?: boolean | 'auto';
|
|
3149
|
+
postsMaxResults?: number;
|
|
3150
|
+
postsMaxKeywords?: number;
|
|
3151
|
+
postsDateRange?: 'past-24h' | 'past-week' | 'past-month' | 'past-year';
|
|
3152
|
+
postsFields?: 'reactors' | 'comments' | 'reactors,comments';
|
|
3153
|
+
postsMaxReactors?: number;
|
|
3154
|
+
postsMaxComments?: number;
|
|
3155
|
+
postsEnableEnrichment?: boolean;
|
|
3156
|
+
postsEnableFiltering?: boolean;
|
|
3157
|
+
engagementScoreWeight?: number;
|
|
3058
3158
|
}): Promise<CreateResponseResponse>;
|
|
3059
3159
|
/**
|
|
3060
3160
|
* Score provided candidates against AI-generated or provided criteria
|
package/dist/index.d.mts
CHANGED
|
@@ -228,7 +228,7 @@ interface TenantDetailsResponse {
|
|
|
228
228
|
updatedAt: string;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
|
|
231
|
+
type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'PDL_API_KEY' | 'CRUSTDATA_API_KEY' | 'ENRICH_LAYER_API_KEY' | 'E2B_API_KEY' | 'AWS_ACCESS_KEY_ID' | 'AWS_SECRET_ACCESS_KEY';
|
|
232
232
|
interface StoreApiKeyRequest {
|
|
233
233
|
provider: ApiProvider;
|
|
234
234
|
apiKey: string;
|
|
@@ -803,6 +803,94 @@ interface SpecializedAgentParams {
|
|
|
803
803
|
* Each candidate must include at least one identifier: linkedin_url or email/emails.
|
|
804
804
|
*/
|
|
805
805
|
candidateProfiles?: Array<Record<string, any>>;
|
|
806
|
+
/**
|
|
807
|
+
* Whether to search profile databases (CrustData/PDL).
|
|
808
|
+
* Options: true (always), false (never), 'auto' (LLM decides).
|
|
809
|
+
* @default true
|
|
810
|
+
* Used by deep_people_search.
|
|
811
|
+
*/
|
|
812
|
+
searchProfiles?: boolean | 'auto';
|
|
813
|
+
/**
|
|
814
|
+
* Whether to search LinkedIn posts for engagement (authors, reactors, commenters).
|
|
815
|
+
* Options: true (always), false (never), 'auto' (LLM decides based on query).
|
|
816
|
+
* @default 'auto'
|
|
817
|
+
* Used by deep_people_search.
|
|
818
|
+
*/
|
|
819
|
+
searchPosts?: boolean | 'auto';
|
|
820
|
+
/**
|
|
821
|
+
* Whether to include LinkedIn post engagement in candidate scoring.
|
|
822
|
+
* Options: true (always), false (never), 'auto' (LLM decides).
|
|
823
|
+
* @default 'auto'
|
|
824
|
+
* Used by deep_people_search.
|
|
825
|
+
*/
|
|
826
|
+
includeEngagementInScore?: boolean | 'auto';
|
|
827
|
+
/**
|
|
828
|
+
* Maximum number of posts to search.
|
|
829
|
+
* Range: 1-500
|
|
830
|
+
* @default 50
|
|
831
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
832
|
+
*/
|
|
833
|
+
postsMaxResults?: number;
|
|
834
|
+
/**
|
|
835
|
+
* Maximum number of keywords to use for posts search.
|
|
836
|
+
* If not provided, all extracted keywords are used.
|
|
837
|
+
* Range: 1-20
|
|
838
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
839
|
+
*/
|
|
840
|
+
postsMaxKeywords?: number;
|
|
841
|
+
/**
|
|
842
|
+
* Date range for posts search.
|
|
843
|
+
* Options: 'past-24h', 'past-week', 'past-month', 'past-year'
|
|
844
|
+
* @default 'past-month'
|
|
845
|
+
* Used by deep_people_search.
|
|
846
|
+
*/
|
|
847
|
+
postsDateRange?: 'past-24h' | 'past-week' | 'past-month' | 'past-year';
|
|
848
|
+
/**
|
|
849
|
+
* Engagement fields to fetch from posts.
|
|
850
|
+
* Options: 'reactors' (5 credits/post), 'comments' (5 credits/post), 'reactors,comments' (10 credits/post)
|
|
851
|
+
* @default 'reactors'
|
|
852
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
853
|
+
*/
|
|
854
|
+
postsFields?: 'reactors' | 'comments' | 'reactors,comments';
|
|
855
|
+
/**
|
|
856
|
+
* Maximum reactors per post to fetch.
|
|
857
|
+
* Range: 1-5000
|
|
858
|
+
* @default 5000
|
|
859
|
+
* No additional cost (same 5 credits/post for 1-5000 reactors).
|
|
860
|
+
* Used by deep_people_search when postsFields includes 'reactors'.
|
|
861
|
+
*/
|
|
862
|
+
postsMaxReactors?: number;
|
|
863
|
+
/**
|
|
864
|
+
* Maximum comments per post to fetch.
|
|
865
|
+
* Range: 1-5000
|
|
866
|
+
* @default 5000
|
|
867
|
+
* No additional cost (same 5 credits/post for 1-5000 comments).
|
|
868
|
+
* Used by deep_people_search when postsFields includes 'comments'.
|
|
869
|
+
*/
|
|
870
|
+
postsMaxComments?: number;
|
|
871
|
+
/**
|
|
872
|
+
* Whether to enrich posts candidates with EnrichLayer.
|
|
873
|
+
* @default false
|
|
874
|
+
* CrustData posts API already provides rich data (skills, experience, education).
|
|
875
|
+
* Enable only if you need additional fields from EnrichLayer.
|
|
876
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
877
|
+
*/
|
|
878
|
+
postsEnableEnrichment?: boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Whether to filter posts for relevance before extracting people.
|
|
881
|
+
* @default true
|
|
882
|
+
* Uses LLM to identify and skip hiring posts, spam, and irrelevant content.
|
|
883
|
+
* Improves candidate quality at cost of ~1 LLM call per post.
|
|
884
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
885
|
+
*/
|
|
886
|
+
postsEnableFiltering?: boolean;
|
|
887
|
+
/**
|
|
888
|
+
* Weight for engagement score when included in match score calculation.
|
|
889
|
+
* Range: 0.0-0.3
|
|
890
|
+
* @default 0.15
|
|
891
|
+
* Used by deep_people_search when includeEngagementInScore is true.
|
|
892
|
+
*/
|
|
893
|
+
engagementScoreWeight?: number;
|
|
806
894
|
/**
|
|
807
895
|
* Additional parameters for any specialized agent
|
|
808
896
|
* This allows flexibility for future agents without SDK updates
|
|
@@ -3055,6 +3143,18 @@ declare class ResponsesResource {
|
|
|
3055
3143
|
excludeProfiles?: string[];
|
|
3056
3144
|
excludePreviouslyContacted?: boolean;
|
|
3057
3145
|
excludeNames?: string[];
|
|
3146
|
+
searchProfiles?: boolean | 'auto';
|
|
3147
|
+
searchPosts?: boolean | 'auto';
|
|
3148
|
+
includeEngagementInScore?: boolean | 'auto';
|
|
3149
|
+
postsMaxResults?: number;
|
|
3150
|
+
postsMaxKeywords?: number;
|
|
3151
|
+
postsDateRange?: 'past-24h' | 'past-week' | 'past-month' | 'past-year';
|
|
3152
|
+
postsFields?: 'reactors' | 'comments' | 'reactors,comments';
|
|
3153
|
+
postsMaxReactors?: number;
|
|
3154
|
+
postsMaxComments?: number;
|
|
3155
|
+
postsEnableEnrichment?: boolean;
|
|
3156
|
+
postsEnableFiltering?: boolean;
|
|
3157
|
+
engagementScoreWeight?: number;
|
|
3058
3158
|
}): Promise<CreateResponseResponse>;
|
|
3059
3159
|
/**
|
|
3060
3160
|
* Score provided candidates against AI-generated or provided criteria
|
package/dist/index.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ interface TenantDetailsResponse {
|
|
|
228
228
|
updatedAt: string;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
|
|
231
|
+
type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'PDL_API_KEY' | 'CRUSTDATA_API_KEY' | 'ENRICH_LAYER_API_KEY' | 'E2B_API_KEY' | 'AWS_ACCESS_KEY_ID' | 'AWS_SECRET_ACCESS_KEY';
|
|
232
232
|
interface StoreApiKeyRequest {
|
|
233
233
|
provider: ApiProvider;
|
|
234
234
|
apiKey: string;
|
|
@@ -803,6 +803,94 @@ interface SpecializedAgentParams {
|
|
|
803
803
|
* Each candidate must include at least one identifier: linkedin_url or email/emails.
|
|
804
804
|
*/
|
|
805
805
|
candidateProfiles?: Array<Record<string, any>>;
|
|
806
|
+
/**
|
|
807
|
+
* Whether to search profile databases (CrustData/PDL).
|
|
808
|
+
* Options: true (always), false (never), 'auto' (LLM decides).
|
|
809
|
+
* @default true
|
|
810
|
+
* Used by deep_people_search.
|
|
811
|
+
*/
|
|
812
|
+
searchProfiles?: boolean | 'auto';
|
|
813
|
+
/**
|
|
814
|
+
* Whether to search LinkedIn posts for engagement (authors, reactors, commenters).
|
|
815
|
+
* Options: true (always), false (never), 'auto' (LLM decides based on query).
|
|
816
|
+
* @default 'auto'
|
|
817
|
+
* Used by deep_people_search.
|
|
818
|
+
*/
|
|
819
|
+
searchPosts?: boolean | 'auto';
|
|
820
|
+
/**
|
|
821
|
+
* Whether to include LinkedIn post engagement in candidate scoring.
|
|
822
|
+
* Options: true (always), false (never), 'auto' (LLM decides).
|
|
823
|
+
* @default 'auto'
|
|
824
|
+
* Used by deep_people_search.
|
|
825
|
+
*/
|
|
826
|
+
includeEngagementInScore?: boolean | 'auto';
|
|
827
|
+
/**
|
|
828
|
+
* Maximum number of posts to search.
|
|
829
|
+
* Range: 1-500
|
|
830
|
+
* @default 50
|
|
831
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
832
|
+
*/
|
|
833
|
+
postsMaxResults?: number;
|
|
834
|
+
/**
|
|
835
|
+
* Maximum number of keywords to use for posts search.
|
|
836
|
+
* If not provided, all extracted keywords are used.
|
|
837
|
+
* Range: 1-20
|
|
838
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
839
|
+
*/
|
|
840
|
+
postsMaxKeywords?: number;
|
|
841
|
+
/**
|
|
842
|
+
* Date range for posts search.
|
|
843
|
+
* Options: 'past-24h', 'past-week', 'past-month', 'past-year'
|
|
844
|
+
* @default 'past-month'
|
|
845
|
+
* Used by deep_people_search.
|
|
846
|
+
*/
|
|
847
|
+
postsDateRange?: 'past-24h' | 'past-week' | 'past-month' | 'past-year';
|
|
848
|
+
/**
|
|
849
|
+
* Engagement fields to fetch from posts.
|
|
850
|
+
* Options: 'reactors' (5 credits/post), 'comments' (5 credits/post), 'reactors,comments' (10 credits/post)
|
|
851
|
+
* @default 'reactors'
|
|
852
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
853
|
+
*/
|
|
854
|
+
postsFields?: 'reactors' | 'comments' | 'reactors,comments';
|
|
855
|
+
/**
|
|
856
|
+
* Maximum reactors per post to fetch.
|
|
857
|
+
* Range: 1-5000
|
|
858
|
+
* @default 5000
|
|
859
|
+
* No additional cost (same 5 credits/post for 1-5000 reactors).
|
|
860
|
+
* Used by deep_people_search when postsFields includes 'reactors'.
|
|
861
|
+
*/
|
|
862
|
+
postsMaxReactors?: number;
|
|
863
|
+
/**
|
|
864
|
+
* Maximum comments per post to fetch.
|
|
865
|
+
* Range: 1-5000
|
|
866
|
+
* @default 5000
|
|
867
|
+
* No additional cost (same 5 credits/post for 1-5000 comments).
|
|
868
|
+
* Used by deep_people_search when postsFields includes 'comments'.
|
|
869
|
+
*/
|
|
870
|
+
postsMaxComments?: number;
|
|
871
|
+
/**
|
|
872
|
+
* Whether to enrich posts candidates with EnrichLayer.
|
|
873
|
+
* @default false
|
|
874
|
+
* CrustData posts API already provides rich data (skills, experience, education).
|
|
875
|
+
* Enable only if you need additional fields from EnrichLayer.
|
|
876
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
877
|
+
*/
|
|
878
|
+
postsEnableEnrichment?: boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Whether to filter posts for relevance before extracting people.
|
|
881
|
+
* @default true
|
|
882
|
+
* Uses LLM to identify and skip hiring posts, spam, and irrelevant content.
|
|
883
|
+
* Improves candidate quality at cost of ~1 LLM call per post.
|
|
884
|
+
* Used by deep_people_search when searchPosts is enabled.
|
|
885
|
+
*/
|
|
886
|
+
postsEnableFiltering?: boolean;
|
|
887
|
+
/**
|
|
888
|
+
* Weight for engagement score when included in match score calculation.
|
|
889
|
+
* Range: 0.0-0.3
|
|
890
|
+
* @default 0.15
|
|
891
|
+
* Used by deep_people_search when includeEngagementInScore is true.
|
|
892
|
+
*/
|
|
893
|
+
engagementScoreWeight?: number;
|
|
806
894
|
/**
|
|
807
895
|
* Additional parameters for any specialized agent
|
|
808
896
|
* This allows flexibility for future agents without SDK updates
|
|
@@ -3055,6 +3143,18 @@ declare class ResponsesResource {
|
|
|
3055
3143
|
excludeProfiles?: string[];
|
|
3056
3144
|
excludePreviouslyContacted?: boolean;
|
|
3057
3145
|
excludeNames?: string[];
|
|
3146
|
+
searchProfiles?: boolean | 'auto';
|
|
3147
|
+
searchPosts?: boolean | 'auto';
|
|
3148
|
+
includeEngagementInScore?: boolean | 'auto';
|
|
3149
|
+
postsMaxResults?: number;
|
|
3150
|
+
postsMaxKeywords?: number;
|
|
3151
|
+
postsDateRange?: 'past-24h' | 'past-week' | 'past-month' | 'past-year';
|
|
3152
|
+
postsFields?: 'reactors' | 'comments' | 'reactors,comments';
|
|
3153
|
+
postsMaxReactors?: number;
|
|
3154
|
+
postsMaxComments?: number;
|
|
3155
|
+
postsEnableEnrichment?: boolean;
|
|
3156
|
+
postsEnableFiltering?: boolean;
|
|
3157
|
+
engagementScoreWeight?: number;
|
|
3058
3158
|
}): Promise<CreateResponseResponse>;
|
|
3059
3159
|
/**
|
|
3060
3160
|
* Score provided candidates against AI-generated or provided criteria
|
package/dist/index.mjs
CHANGED
|
@@ -2354,6 +2354,30 @@ class ResponsesResource {
|
|
|
2354
2354
|
params.excludePreviouslyContacted = options.excludePreviouslyContacted;
|
|
2355
2355
|
if (options.excludeNames)
|
|
2356
2356
|
params.excludeNames = options.excludeNames;
|
|
2357
|
+
if (options.searchProfiles !== void 0)
|
|
2358
|
+
params.searchProfiles = options.searchProfiles;
|
|
2359
|
+
if (options.searchPosts !== void 0)
|
|
2360
|
+
params.searchPosts = options.searchPosts;
|
|
2361
|
+
if (options.includeEngagementInScore !== void 0)
|
|
2362
|
+
params.includeEngagementInScore = options.includeEngagementInScore;
|
|
2363
|
+
if (options.postsMaxResults !== void 0)
|
|
2364
|
+
params.postsMaxResults = options.postsMaxResults;
|
|
2365
|
+
if (options.postsMaxKeywords !== void 0)
|
|
2366
|
+
params.postsMaxKeywords = options.postsMaxKeywords;
|
|
2367
|
+
if (options.postsDateRange)
|
|
2368
|
+
params.postsDateRange = options.postsDateRange;
|
|
2369
|
+
if (options.postsFields)
|
|
2370
|
+
params.postsFields = options.postsFields;
|
|
2371
|
+
if (options.postsMaxReactors !== void 0)
|
|
2372
|
+
params.postsMaxReactors = options.postsMaxReactors;
|
|
2373
|
+
if (options.postsMaxComments !== void 0)
|
|
2374
|
+
params.postsMaxComments = options.postsMaxComments;
|
|
2375
|
+
if (options.postsEnableEnrichment !== void 0)
|
|
2376
|
+
params.postsEnableEnrichment = options.postsEnableEnrichment;
|
|
2377
|
+
if (options.postsEnableFiltering !== void 0)
|
|
2378
|
+
params.postsEnableFiltering = options.postsEnableFiltering;
|
|
2379
|
+
if (options.engagementScoreWeight !== void 0)
|
|
2380
|
+
params.engagementScoreWeight = options.engagementScoreWeight;
|
|
2357
2381
|
if (Object.keys(params).length > 0)
|
|
2358
2382
|
request.specializedAgentParams = params;
|
|
2359
2383
|
}
|