@keystrokehq/peopledatalabs 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/clean-company-data.cjs +131 -0
- package/dist/actions/clean-company-data.cjs.map +1 -0
- package/dist/actions/clean-company-data.d.cts +9 -0
- package/dist/actions/clean-company-data.d.cts.map +1 -0
- package/dist/actions/clean-company-data.d.mts +9 -0
- package/dist/actions/clean-company-data.d.mts.map +1 -0
- package/dist/actions/clean-company-data.mjs +130 -0
- package/dist/actions/clean-company-data.mjs.map +1 -0
- package/dist/actions/clean-company-post.cjs +54 -0
- package/dist/actions/clean-company-post.cjs.map +1 -0
- package/dist/actions/clean-company-post.d.cts +9 -0
- package/dist/actions/clean-company-post.d.cts.map +1 -0
- package/dist/actions/clean-company-post.d.mts +9 -0
- package/dist/actions/clean-company-post.d.mts.map +1 -0
- package/dist/actions/clean-company-post.mjs +53 -0
- package/dist/actions/clean-company-post.mjs.map +1 -0
- package/dist/actions/clean-location-data.cjs +29 -0
- package/dist/actions/clean-location-data.cjs.map +1 -0
- package/dist/actions/clean-location-data.d.cts +9 -0
- package/dist/actions/clean-location-data.d.cts.map +1 -0
- package/dist/actions/clean-location-data.d.mts +9 -0
- package/dist/actions/clean-location-data.d.mts.map +1 -0
- package/dist/actions/clean-location-data.mjs +26 -0
- package/dist/actions/clean-location-data.mjs.map +1 -0
- package/dist/actions/clean-location-post.cjs +28 -0
- package/dist/actions/clean-location-post.cjs.map +1 -0
- package/dist/actions/clean-location-post.d.cts +9 -0
- package/dist/actions/clean-location-post.d.cts.map +1 -0
- package/dist/actions/clean-location-post.d.mts +9 -0
- package/dist/actions/clean-location-post.d.mts.map +1 -0
- package/dist/actions/clean-location-post.mjs +25 -0
- package/dist/actions/clean-location-post.mjs.map +1 -0
- package/dist/actions/clean-school-data-post.cjs +39 -0
- package/dist/actions/clean-school-data-post.cjs.map +1 -0
- package/dist/actions/clean-school-data-post.d.cts +9 -0
- package/dist/actions/clean-school-data-post.d.cts.map +1 -0
- package/dist/actions/clean-school-data-post.d.mts +9 -0
- package/dist/actions/clean-school-data-post.d.mts.map +1 -0
- package/dist/actions/clean-school-data-post.mjs +38 -0
- package/dist/actions/clean-school-data-post.mjs.map +1 -0
- package/dist/actions/clean-school-data.cjs +39 -0
- package/dist/actions/clean-school-data.cjs.map +1 -0
- package/dist/actions/clean-school-data.d.cts +9 -0
- package/dist/actions/clean-school-data.d.cts.map +1 -0
- package/dist/actions/clean-school-data.d.mts +9 -0
- package/dist/actions/clean-school-data.d.mts.map +1 -0
- package/dist/actions/clean-school-data.mjs +38 -0
- package/dist/actions/clean-school-data.mjs.map +1 -0
- package/dist/actions/enrich-bulk-company-data.cjs +33 -0
- package/dist/actions/enrich-bulk-company-data.cjs.map +1 -0
- package/dist/actions/enrich-bulk-company-data.d.cts +9 -0
- package/dist/actions/enrich-bulk-company-data.d.cts.map +1 -0
- package/dist/actions/enrich-bulk-company-data.d.mts +9 -0
- package/dist/actions/enrich-bulk-company-data.d.mts.map +1 -0
- package/dist/actions/enrich-bulk-company-data.mjs +32 -0
- package/dist/actions/enrich-bulk-company-data.mjs.map +1 -0
- package/dist/actions/enrich-bulk-person-data.cjs +287 -0
- package/dist/actions/enrich-bulk-person-data.cjs.map +1 -0
- package/dist/actions/enrich-bulk-person-data.d.cts +9 -0
- package/dist/actions/enrich-bulk-person-data.d.cts.map +1 -0
- package/dist/actions/enrich-bulk-person-data.d.mts +9 -0
- package/dist/actions/enrich-bulk-person-data.d.mts.map +1 -0
- package/dist/actions/enrich-bulk-person-data.mjs +286 -0
- package/dist/actions/enrich-bulk-person-data.mjs.map +1 -0
- package/dist/actions/enrich-company-data.cjs +146 -0
- package/dist/actions/enrich-company-data.cjs.map +1 -0
- package/dist/actions/enrich-company-data.d.cts +9 -0
- package/dist/actions/enrich-company-data.d.cts.map +1 -0
- package/dist/actions/enrich-company-data.d.mts +9 -0
- package/dist/actions/enrich-company-data.d.mts.map +1 -0
- package/dist/actions/enrich-company-data.mjs +145 -0
- package/dist/actions/enrich-company-data.mjs.map +1 -0
- package/dist/actions/enrich-ip-data.cjs +92 -0
- package/dist/actions/enrich-ip-data.cjs.map +1 -0
- package/dist/actions/enrich-ip-data.d.cts +9 -0
- package/dist/actions/enrich-ip-data.d.cts.map +1 -0
- package/dist/actions/enrich-ip-data.d.mts +9 -0
- package/dist/actions/enrich-ip-data.d.mts.map +1 -0
- package/dist/actions/enrich-ip-data.mjs +91 -0
- package/dist/actions/enrich-ip-data.mjs.map +1 -0
- package/dist/actions/enrich-job-title-data.cjs +20 -0
- package/dist/actions/enrich-job-title-data.cjs.map +1 -0
- package/dist/actions/enrich-job-title-data.d.cts +9 -0
- package/dist/actions/enrich-job-title-data.d.cts.map +1 -0
- package/dist/actions/enrich-job-title-data.d.mts +9 -0
- package/dist/actions/enrich-job-title-data.d.mts.map +1 -0
- package/dist/actions/enrich-job-title-data.mjs +17 -0
- package/dist/actions/enrich-job-title-data.mjs.map +1 -0
- package/dist/actions/enrich-person-data.cjs +285 -0
- package/dist/actions/enrich-person-data.cjs.map +1 -0
- package/dist/actions/enrich-person-data.d.cts +9 -0
- package/dist/actions/enrich-person-data.d.cts.map +1 -0
- package/dist/actions/enrich-person-data.d.mts +9 -0
- package/dist/actions/enrich-person-data.d.mts.map +1 -0
- package/dist/actions/enrich-person-data.mjs +284 -0
- package/dist/actions/enrich-person-data.mjs.map +1 -0
- package/dist/actions/enrich-skill-data.cjs +20 -0
- package/dist/actions/enrich-skill-data.cjs.map +1 -0
- package/dist/actions/enrich-skill-data.d.cts +9 -0
- package/dist/actions/enrich-skill-data.d.cts.map +1 -0
- package/dist/actions/enrich-skill-data.d.mts +9 -0
- package/dist/actions/enrich-skill-data.d.mts.map +1 -0
- package/dist/actions/enrich-skill-data.mjs +17 -0
- package/dist/actions/enrich-skill-data.mjs.map +1 -0
- package/dist/actions/generate-search-query.cjs +16 -0
- package/dist/actions/generate-search-query.cjs.map +1 -0
- package/dist/actions/generate-search-query.d.cts +9 -0
- package/dist/actions/generate-search-query.d.cts.map +1 -0
- package/dist/actions/generate-search-query.d.mts +9 -0
- package/dist/actions/generate-search-query.d.mts.map +1 -0
- package/dist/actions/generate-search-query.mjs +13 -0
- package/dist/actions/generate-search-query.mjs.map +1 -0
- package/dist/actions/get-autocomplete-suggestions-post.cjs +58 -0
- package/dist/actions/get-autocomplete-suggestions-post.cjs.map +1 -0
- package/dist/actions/get-autocomplete-suggestions-post.d.cts +9 -0
- package/dist/actions/get-autocomplete-suggestions-post.d.cts.map +1 -0
- package/dist/actions/get-autocomplete-suggestions-post.d.mts +9 -0
- package/dist/actions/get-autocomplete-suggestions-post.d.mts.map +1 -0
- package/dist/actions/get-autocomplete-suggestions-post.mjs +57 -0
- package/dist/actions/get-autocomplete-suggestions-post.mjs.map +1 -0
- package/dist/actions/get-autocomplete-suggestions.cjs +45 -0
- package/dist/actions/get-autocomplete-suggestions.cjs.map +1 -0
- package/dist/actions/get-autocomplete-suggestions.d.cts +9 -0
- package/dist/actions/get-autocomplete-suggestions.d.cts.map +1 -0
- package/dist/actions/get-autocomplete-suggestions.d.mts +9 -0
- package/dist/actions/get-autocomplete-suggestions.d.mts.map +1 -0
- package/dist/actions/get-autocomplete-suggestions.mjs +44 -0
- package/dist/actions/get-autocomplete-suggestions.mjs.map +1 -0
- package/dist/actions/get-column-details.cjs +25 -0
- package/dist/actions/get-column-details.cjs.map +1 -0
- package/dist/actions/get-column-details.d.cts +9 -0
- package/dist/actions/get-column-details.d.cts.map +1 -0
- package/dist/actions/get-column-details.d.mts +9 -0
- package/dist/actions/get-column-details.d.mts.map +1 -0
- package/dist/actions/get-column-details.mjs +24 -0
- package/dist/actions/get-column-details.mjs.map +1 -0
- package/dist/actions/get-schema.cjs +24 -0
- package/dist/actions/get-schema.cjs.map +1 -0
- package/dist/actions/get-schema.d.cts +9 -0
- package/dist/actions/get-schema.d.cts.map +1 -0
- package/dist/actions/get-schema.d.mts +9 -0
- package/dist/actions/get-schema.d.mts.map +1 -0
- package/dist/actions/get-schema.mjs +23 -0
- package/dist/actions/get-schema.mjs.map +1 -0
- package/dist/actions/get-subject-requests.cjs +19 -0
- package/dist/actions/get-subject-requests.cjs.map +1 -0
- package/dist/actions/get-subject-requests.d.cts +9 -0
- package/dist/actions/get-subject-requests.d.cts.map +1 -0
- package/dist/actions/get-subject-requests.d.mts +9 -0
- package/dist/actions/get-subject-requests.d.mts.map +1 -0
- package/dist/actions/get-subject-requests.mjs +16 -0
- package/dist/actions/get-subject-requests.mjs.map +1 -0
- package/dist/actions/identify-person-data.cjs +122 -0
- package/dist/actions/identify-person-data.cjs.map +1 -0
- package/dist/actions/identify-person-data.d.cts +9 -0
- package/dist/actions/identify-person-data.d.cts.map +1 -0
- package/dist/actions/identify-person-data.d.mts +9 -0
- package/dist/actions/identify-person-data.d.mts.map +1 -0
- package/dist/actions/identify-person-data.mjs +121 -0
- package/dist/actions/identify-person-data.mjs.map +1 -0
- package/dist/actions/index.cjs +49 -0
- package/dist/actions/index.d.cts +25 -0
- package/dist/actions/index.d.mts +25 -0
- package/dist/actions/index.mjs +25 -0
- package/dist/actions/people-search-elastic.cjs +181 -0
- package/dist/actions/people-search-elastic.cjs.map +1 -0
- package/dist/actions/people-search-elastic.d.cts +9 -0
- package/dist/actions/people-search-elastic.d.cts.map +1 -0
- package/dist/actions/people-search-elastic.d.mts +9 -0
- package/dist/actions/people-search-elastic.d.mts.map +1 -0
- package/dist/actions/people-search-elastic.mjs +180 -0
- package/dist/actions/people-search-elastic.mjs.map +1 -0
- package/dist/actions/query-person-changelog.cjs +43 -0
- package/dist/actions/query-person-changelog.cjs.map +1 -0
- package/dist/actions/query-person-changelog.d.cts +9 -0
- package/dist/actions/query-person-changelog.d.cts.map +1 -0
- package/dist/actions/query-person-changelog.d.mts +9 -0
- package/dist/actions/query-person-changelog.d.mts.map +1 -0
- package/dist/actions/query-person-changelog.mjs +42 -0
- package/dist/actions/query-person-changelog.mjs.map +1 -0
- package/dist/actions/search-company-elastic.cjs +179 -0
- package/dist/actions/search-company-elastic.cjs.map +1 -0
- package/dist/actions/search-company-elastic.d.cts +9 -0
- package/dist/actions/search-company-elastic.d.cts.map +1 -0
- package/dist/actions/search-company-elastic.d.mts +9 -0
- package/dist/actions/search-company-elastic.d.mts.map +1 -0
- package/dist/actions/search-company-elastic.mjs +178 -0
- package/dist/actions/search-company-elastic.mjs.map +1 -0
- package/dist/actions/search-company-post.cjs +63 -0
- package/dist/actions/search-company-post.cjs.map +1 -0
- package/dist/actions/search-company-post.d.cts +9 -0
- package/dist/actions/search-company-post.d.cts.map +1 -0
- package/dist/actions/search-company-post.d.mts +9 -0
- package/dist/actions/search-company-post.d.mts.map +1 -0
- package/dist/actions/search-company-post.mjs +62 -0
- package/dist/actions/search-company-post.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +54 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.mts +27 -0
- package/dist/index.mjs +28 -0
- package/package.json +49 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/enrich-company-data.d.ts
|
|
4
|
+
declare const PeopledatalabsEnrichCompanyDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const peopledatalabsEnrichCompanyData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { peopledatalabsEnrichCompanyData };
|
|
9
|
+
//# sourceMappingURL=enrich-company-data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-company-data.d.cts","names":[],"sources":["../../src/actions/enrich-company-data.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAcyX;AAAA,cAoEja,qCAAA,EAAuC,CAAA,CAAE,UAGpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/enrich-company-data.d.ts
|
|
4
|
+
declare const PeopledatalabsEnrichCompanyDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const peopledatalabsEnrichCompanyData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { peopledatalabsEnrichCompanyData };
|
|
9
|
+
//# sourceMappingURL=enrich-company-data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-company-data.d.mts","names":[],"sources":["../../src/actions/enrich-company-data.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAcyX;AAAA,cAoEja,qCAAA,EAAuC,CAAA,CAAE,UAGpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/enrich-company-data.ts
|
|
4
|
+
const PeopledatalabsEnrichCompanyDataInput = z.object({
|
|
5
|
+
name: z.string().describe("REQUIRED if no other identifier provided. Company name to search for. At least one of pdl_id/name/profile/ticker/website must be provided.").optional(),
|
|
6
|
+
pdl_id: z.string().describe("REQUIRED if no other identifier provided. People Data Labs unique ID for a company. At least one of pdl_id/name/profile/ticker/website must be provided.").optional(),
|
|
7
|
+
pretty: z.boolean().default(true).describe("If true, the JSON response will be pretty-printed with human-readable indentation for easier inspection.").optional(),
|
|
8
|
+
region: z.string().describe("The state, province, or administrative region where the company is located (e.g., 'California' or 'TX').").optional(),
|
|
9
|
+
ticker: z.string().describe("REQUIRED if no other identifier provided. Stock market ticker symbol. At least one of pdl_id/name/profile/ticker/website must be provided.").optional(),
|
|
10
|
+
country: z.string().describe("The country where the company is located. Can be a full name or an ISO country code.").optional(),
|
|
11
|
+
profile: z.string().describe("REQUIRED if no other identifier provided. Company social media profile URL. At least one of pdl_id/name/profile/ticker/website must be provided.").optional(),
|
|
12
|
+
website: z.string().describe("REQUIRED if no other identifier provided. Company website URL. At least one of pdl_id/name/profile/ticker/website must be provided.").optional(),
|
|
13
|
+
locality: z.string().describe("The city or locality where the company is situated (e.g., 'Mountain View').").optional(),
|
|
14
|
+
location: z.string().describe("A general text query for the company's location (e.g., 'San Francisco, CA' or 'London'). Can be a partial or complete location string.").optional(),
|
|
15
|
+
titlecase: z.boolean().describe("If set to true, textual data in the API response will be converted to title case. If omitted, the API's default casing is used.").optional(),
|
|
16
|
+
postal_code: z.string().describe("The postal or ZIP code for the company's location.").optional(),
|
|
17
|
+
street_address: z.string().describe("The street address component of the company's location.").optional()
|
|
18
|
+
}).describe("Request model for Company Enrichment API.\n\nCRITICAL REQUIREMENT: You MUST provide at least one company identifier field.\nValid identifier fields are: pdl_id, name, profile, ticker, or website.\nEmpty requests {} will be rejected. Example valid requests:\n- {\"name\": \"Apple Inc.\"} - search by company name\n- {\"website\": \"google.com\"} - search by website\n- {\"ticker\": \"MSFT\"} - search by stock ticker");
|
|
19
|
+
const PeopledatalabsEnrichCompanyData_SICClassificationSchema = z.object({
|
|
20
|
+
sic_code: z.string().describe("SIC code").nullable().optional(),
|
|
21
|
+
major_group: z.string().describe("SIC major group name").nullable().optional(),
|
|
22
|
+
industry_group: z.string().describe("SIC industry group").nullable().optional(),
|
|
23
|
+
industry_sector: z.string().describe("SIC industry sector").nullable().optional()
|
|
24
|
+
}).describe("Standard Industrial Classification (SIC) code details");
|
|
25
|
+
const PeopledatalabsEnrichCompanyData_CompanySizeSchema = z.enum([
|
|
26
|
+
"1-10",
|
|
27
|
+
"11-50",
|
|
28
|
+
"51-200",
|
|
29
|
+
"201-500",
|
|
30
|
+
"501-1000",
|
|
31
|
+
"1001-5000",
|
|
32
|
+
"5001-10000",
|
|
33
|
+
"10001+"
|
|
34
|
+
]).describe("Company employee size ranges");
|
|
35
|
+
const PeopledatalabsEnrichCompanyData_CompanyTypeSchema = z.enum([
|
|
36
|
+
"educational",
|
|
37
|
+
"government",
|
|
38
|
+
"nonprofit",
|
|
39
|
+
"private",
|
|
40
|
+
"public",
|
|
41
|
+
"public_subsidiary"
|
|
42
|
+
]).describe("Company type classification");
|
|
43
|
+
const PeopledatalabsEnrichCompanyData_NAICSClassificationSchema = z.object({
|
|
44
|
+
sector: z.string().describe("NAICS sector name").nullable().optional(),
|
|
45
|
+
naics_code: z.string().describe("NAICS code").nullable().optional(),
|
|
46
|
+
sub_sector: z.string().describe("NAICS sub-sector name").nullable().optional(),
|
|
47
|
+
industry_group: z.string().describe("NAICS industry group").nullable().optional(),
|
|
48
|
+
naics_industry: z.string().describe("NAICS industry name").nullable().optional(),
|
|
49
|
+
national_industry: z.string().describe("NAICS national industry name").nullable().optional()
|
|
50
|
+
}).describe("North American Industry Classification System (NAICS) code details");
|
|
51
|
+
const PeopledatalabsEnrichCompanyData_CompanyLocationSchema = z.object({
|
|
52
|
+
geo: z.string().describe("Geographic coordinates in 'latitude,longitude' format").nullable().optional(),
|
|
53
|
+
name: z.string().describe("Full location name").nullable().optional(),
|
|
54
|
+
metro: z.string().describe("Metropolitan area").nullable().optional(),
|
|
55
|
+
region: z.string().describe("State, province, or region").nullable().optional(),
|
|
56
|
+
country: z.string().describe("Country name").nullable().optional(),
|
|
57
|
+
locality: z.string().describe("City or locality").nullable().optional(),
|
|
58
|
+
continent: z.string().describe("Continent name").nullable().optional(),
|
|
59
|
+
postal_code: z.string().describe("Postal or ZIP code").nullable().optional(),
|
|
60
|
+
address_line_2: z.string().describe("Additional address information (suite, floor, etc.)").nullable().optional(),
|
|
61
|
+
street_address: z.string().describe("Street address").nullable().optional()
|
|
62
|
+
}).describe("Company headquarters location details");
|
|
63
|
+
const PeopledatalabsEnrichCompanyData_FundingStageSchema = z.enum([
|
|
64
|
+
"angel",
|
|
65
|
+
"pre_seed",
|
|
66
|
+
"seed",
|
|
67
|
+
"series_a",
|
|
68
|
+
"series_b",
|
|
69
|
+
"series_c",
|
|
70
|
+
"series_d",
|
|
71
|
+
"series_e",
|
|
72
|
+
"series_f",
|
|
73
|
+
"series_g",
|
|
74
|
+
"series_h",
|
|
75
|
+
"series_i",
|
|
76
|
+
"series_j",
|
|
77
|
+
"series_unknown",
|
|
78
|
+
"funding_round",
|
|
79
|
+
"private_equity",
|
|
80
|
+
"debt_financing",
|
|
81
|
+
"convertible_note",
|
|
82
|
+
"grant",
|
|
83
|
+
"corporate_round",
|
|
84
|
+
"equity_crowdfunding",
|
|
85
|
+
"product_crowdfunding",
|
|
86
|
+
"secondary_market",
|
|
87
|
+
"post_ipo_equity",
|
|
88
|
+
"post_ipo_debt",
|
|
89
|
+
"post_ipo_secondary",
|
|
90
|
+
"non_equity_assistance",
|
|
91
|
+
"initial_coin_offering",
|
|
92
|
+
"undisclosed"
|
|
93
|
+
]).describe("Funding stages for companies");
|
|
94
|
+
const PeopledatalabsEnrichCompanyData_CompanyDataFieldsSchema = z.object({
|
|
95
|
+
id: z.string().describe("People Data Labs unique company ID").nullable().optional(),
|
|
96
|
+
sic: z.array(PeopledatalabsEnrichCompanyData_SICClassificationSchema).describe("Standard Industrial Classification codes").nullable().optional(),
|
|
97
|
+
name: z.string().describe("Lowercase company name without leading/trailing whitespace").nullable().optional(),
|
|
98
|
+
size: PeopledatalabsEnrichCompanyData_CompanySizeSchema.nullable().optional(),
|
|
99
|
+
tags: z.array(z.string()).describe("Lowercase topic tags associated with the company").nullable().optional(),
|
|
100
|
+
type: PeopledatalabsEnrichCompanyData_CompanyTypeSchema.nullable().optional(),
|
|
101
|
+
naics: z.array(PeopledatalabsEnrichCompanyData_NAICSClassificationSchema).describe("North American Industry Classification System codes").nullable().optional(),
|
|
102
|
+
status: z.number().int().describe("API response status code"),
|
|
103
|
+
ticker: z.string().describe("Stock ticker symbol for public companies").nullable().optional(),
|
|
104
|
+
founded: z.number().int().describe("Year the company was founded").nullable().optional(),
|
|
105
|
+
summary: z.string().describe("Detailed company description (may contain escape sequences)").nullable().optional(),
|
|
106
|
+
website: z.string().describe("Primary company domain in standardized format").nullable().optional(),
|
|
107
|
+
headline: z.string().describe("Short company description").nullable().optional(),
|
|
108
|
+
industry: z.string().describe("Self-reported canonical industry classification").nullable().optional(),
|
|
109
|
+
location: PeopledatalabsEnrichCompanyData_CompanyLocationSchema.nullable().optional(),
|
|
110
|
+
profiles: z.array(z.string()).describe("All known social profile URLs").nullable().optional(),
|
|
111
|
+
likelihood: z.number().int().describe("Confidence score (1-10) that the returned profile matches the requested company"),
|
|
112
|
+
industry_v2: z.string().describe("Expanded industry classification").nullable().optional(),
|
|
113
|
+
linkedin_id: z.string().describe("LinkedIn company profile ID").nullable().optional(),
|
|
114
|
+
twitter_url: z.string().describe("Twitter profile URL").nullable().optional(),
|
|
115
|
+
display_name: z.string().describe("Properly capitalized company name").nullable().optional(),
|
|
116
|
+
facebook_url: z.string().describe("Facebook profile URL").nullable().optional(),
|
|
117
|
+
linkedin_url: z.string().describe("Full LinkedIn profile URL").nullable().optional(),
|
|
118
|
+
mic_exchange: z.string().describe("Market Identified Code for stock exchange").nullable().optional(),
|
|
119
|
+
linkedin_slug: z.string().describe("LinkedIn URL slug identifier").nullable().optional(),
|
|
120
|
+
employee_count: z.number().int().describe("Current employee count based on profiles").nullable().optional(),
|
|
121
|
+
funding_stages: z.array(PeopledatalabsEnrichCompanyData_FundingStageSchema).describe("All funding round types the company has completed").nullable().optional(),
|
|
122
|
+
dataset_version: z.string().describe("Data release version number").nullable().optional(),
|
|
123
|
+
alternative_names: z.array(z.string()).describe("Associated or previous company names").nullable().optional(),
|
|
124
|
+
last_funding_date: z.string().describe("Date of most recent funding event (YYYY-MM-DD format)").nullable().optional(),
|
|
125
|
+
affiliated_profiles: z.array(z.string()).describe("List of affiliated company IDs (parents/subsidiaries)").nullable().optional(),
|
|
126
|
+
alternative_domains: z.array(z.string()).describe("Previous domain names").nullable().optional(),
|
|
127
|
+
latest_funding_stage: PeopledatalabsEnrichCompanyData_FundingStageSchema.nullable().optional(),
|
|
128
|
+
total_funding_raised: z.number().describe("Cumulative funding raised in USD").nullable().optional(),
|
|
129
|
+
number_funding_rounds: z.number().int().describe("Total number of funding events").nullable().optional(),
|
|
130
|
+
employee_count_by_country: z.object({}).describe("Employee counts per country (includes 'other_uncategorized')").nullable().optional()
|
|
131
|
+
}).describe("Enriched company data fields returned by the API");
|
|
132
|
+
const peopledatalabsEnrichCompanyData = action("PEOPLEDATALABS_ENRICH_COMPANY_DATA", {
|
|
133
|
+
slug: "peopledatalabs-enrich-company-data",
|
|
134
|
+
name: "Enrich Company Data",
|
|
135
|
+
description: "Enriches company data from People Data Labs with details like firmographics and employee counts. CRITICAL: This action REQUIRES at least one company identifier. DO NOT send empty {} requests. You MUST provide at least one of: pdl_id, name, profile, ticker, or website. Valid request examples: - {\"name\": \"Apple Inc.\"} - enrich by company name - {\"website\": \"google.com\"} - enrich by website URL - {\"ticker\": \"MSFT\"} - enrich by stock ticker - {\"profile\": \"linkedin.com/company/microsoft\"} - enrich by social profile. Each call consumes API credits; use specific identifiers rather than exploratory requests.",
|
|
136
|
+
input: PeopledatalabsEnrichCompanyDataInput,
|
|
137
|
+
output: z.object({
|
|
138
|
+
data: PeopledatalabsEnrichCompanyData_CompanyDataFieldsSchema.nullable().optional(),
|
|
139
|
+
found: z.boolean().describe("Indicates whether the company was found in the People Data Labs database. If False, no enrichment data is available for the requested company.")
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
//#endregion
|
|
143
|
+
export { peopledatalabsEnrichCompanyData };
|
|
144
|
+
|
|
145
|
+
//# sourceMappingURL=enrich-company-data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-company-data.mjs","names":[],"sources":["../../src/actions/enrich-company-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichCompanyDataInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"REQUIRED if no other identifier provided. Company name to search for. At least one of pdl_id/name/profile/ticker/website must be provided.\").optional(),\n pdl_id: z.string().describe(\"REQUIRED if no other identifier provided. People Data Labs unique ID for a company. At least one of pdl_id/name/profile/ticker/website must be provided.\").optional(),\n pretty: z.boolean().default(true).describe(\"If true, the JSON response will be pretty-printed with human-readable indentation for easier inspection.\").optional(),\n region: z.string().describe(\"The state, province, or administrative region where the company is located (e.g., 'California' or 'TX').\").optional(),\n ticker: z.string().describe(\"REQUIRED if no other identifier provided. Stock market ticker symbol. At least one of pdl_id/name/profile/ticker/website must be provided.\").optional(),\n country: z.string().describe(\"The country where the company is located. Can be a full name or an ISO country code.\").optional(),\n profile: z.string().describe(\"REQUIRED if no other identifier provided. Company social media profile URL. At least one of pdl_id/name/profile/ticker/website must be provided.\").optional(),\n website: z.string().describe(\"REQUIRED if no other identifier provided. Company website URL. At least one of pdl_id/name/profile/ticker/website must be provided.\").optional(),\n locality: z.string().describe(\"The city or locality where the company is situated (e.g., 'Mountain View').\").optional(),\n location: z.string().describe(\"A general text query for the company's location (e.g., 'San Francisco, CA' or 'London'). Can be a partial or complete location string.\").optional(),\n titlecase: z.boolean().describe(\"If set to true, textual data in the API response will be converted to title case. If omitted, the API's default casing is used.\").optional(),\n postal_code: z.string().describe(\"The postal or ZIP code for the company's location.\").optional(),\n street_address: z.string().describe(\"The street address component of the company's location.\").optional(),\n}).describe(\"Request model for Company Enrichment API.\\n\\nCRITICAL REQUIREMENT: You MUST provide at least one company identifier field.\\nValid identifier fields are: pdl_id, name, profile, ticker, or website.\\nEmpty requests {} will be rejected. Example valid requests:\\n- {\\\"name\\\": \\\"Apple Inc.\\\"} - search by company name\\n- {\\\"website\\\": \\\"google.com\\\"} - search by website\\n- {\\\"ticker\\\": \\\"MSFT\\\"} - search by stock ticker\");\nconst PeopledatalabsEnrichCompanyData_SICClassificationSchema: z.ZodTypeAny = z.object({\n sic_code: z.string().describe(\"SIC code\").nullable().optional(),\n major_group: z.string().describe(\"SIC major group name\").nullable().optional(),\n industry_group: z.string().describe(\"SIC industry group\").nullable().optional(),\n industry_sector: z.string().describe(\"SIC industry sector\").nullable().optional(),\n}).describe(\"Standard Industrial Classification (SIC) code details\");\nconst PeopledatalabsEnrichCompanyData_CompanySizeSchema: z.ZodTypeAny = z.enum([\"1-10\", \"11-50\", \"51-200\", \"201-500\", \"501-1000\", \"1001-5000\", \"5001-10000\", \"10001+\"]).describe(\"Company employee size ranges\");\nconst PeopledatalabsEnrichCompanyData_CompanyTypeSchema: z.ZodTypeAny = z.enum([\"educational\", \"government\", \"nonprofit\", \"private\", \"public\", \"public_subsidiary\"]).describe(\"Company type classification\");\nconst PeopledatalabsEnrichCompanyData_NAICSClassificationSchema: z.ZodTypeAny = z.object({\n sector: z.string().describe(\"NAICS sector name\").nullable().optional(),\n naics_code: z.string().describe(\"NAICS code\").nullable().optional(),\n sub_sector: z.string().describe(\"NAICS sub-sector name\").nullable().optional(),\n industry_group: z.string().describe(\"NAICS industry group\").nullable().optional(),\n naics_industry: z.string().describe(\"NAICS industry name\").nullable().optional(),\n national_industry: z.string().describe(\"NAICS national industry name\").nullable().optional(),\n}).describe(\"North American Industry Classification System (NAICS) code details\");\nconst PeopledatalabsEnrichCompanyData_CompanyLocationSchema: z.ZodTypeAny = z.object({\n geo: z.string().describe(\"Geographic coordinates in 'latitude,longitude' format\").nullable().optional(),\n name: z.string().describe(\"Full location name\").nullable().optional(),\n metro: z.string().describe(\"Metropolitan area\").nullable().optional(),\n region: z.string().describe(\"State, province, or region\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n locality: z.string().describe(\"City or locality\").nullable().optional(),\n continent: z.string().describe(\"Continent name\").nullable().optional(),\n postal_code: z.string().describe(\"Postal or ZIP code\").nullable().optional(),\n address_line_2: z.string().describe(\"Additional address information (suite, floor, etc.)\").nullable().optional(),\n street_address: z.string().describe(\"Street address\").nullable().optional(),\n}).describe(\"Company headquarters location details\");\nconst PeopledatalabsEnrichCompanyData_FundingStageSchema: z.ZodTypeAny = z.enum([\"angel\", \"pre_seed\", \"seed\", \"series_a\", \"series_b\", \"series_c\", \"series_d\", \"series_e\", \"series_f\", \"series_g\", \"series_h\", \"series_i\", \"series_j\", \"series_unknown\", \"funding_round\", \"private_equity\", \"debt_financing\", \"convertible_note\", \"grant\", \"corporate_round\", \"equity_crowdfunding\", \"product_crowdfunding\", \"secondary_market\", \"post_ipo_equity\", \"post_ipo_debt\", \"post_ipo_secondary\", \"non_equity_assistance\", \"initial_coin_offering\", \"undisclosed\"]).describe(\"Funding stages for companies\");\nconst PeopledatalabsEnrichCompanyData_CompanyDataFieldsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"People Data Labs unique company ID\").nullable().optional(),\n sic: z.array(PeopledatalabsEnrichCompanyData_SICClassificationSchema).describe(\"Standard Industrial Classification codes\").nullable().optional(),\n name: z.string().describe(\"Lowercase company name without leading/trailing whitespace\").nullable().optional(),\n size: PeopledatalabsEnrichCompanyData_CompanySizeSchema.nullable().optional(),\n tags: z.array(z.string()).describe(\"Lowercase topic tags associated with the company\").nullable().optional(),\n type: PeopledatalabsEnrichCompanyData_CompanyTypeSchema.nullable().optional(),\n naics: z.array(PeopledatalabsEnrichCompanyData_NAICSClassificationSchema).describe(\"North American Industry Classification System codes\").nullable().optional(),\n status: z.number().int().describe(\"API response status code\"),\n ticker: z.string().describe(\"Stock ticker symbol for public companies\").nullable().optional(),\n founded: z.number().int().describe(\"Year the company was founded\").nullable().optional(),\n summary: z.string().describe(\"Detailed company description (may contain escape sequences)\").nullable().optional(),\n website: z.string().describe(\"Primary company domain in standardized format\").nullable().optional(),\n headline: z.string().describe(\"Short company description\").nullable().optional(),\n industry: z.string().describe(\"Self-reported canonical industry classification\").nullable().optional(),\n location: PeopledatalabsEnrichCompanyData_CompanyLocationSchema.nullable().optional(),\n profiles: z.array(z.string()).describe(\"All known social profile URLs\").nullable().optional(),\n likelihood: z.number().int().describe(\"Confidence score (1-10) that the returned profile matches the requested company\"),\n industry_v2: z.string().describe(\"Expanded industry classification\").nullable().optional(),\n linkedin_id: z.string().describe(\"LinkedIn company profile ID\").nullable().optional(),\n twitter_url: z.string().describe(\"Twitter profile URL\").nullable().optional(),\n display_name: z.string().describe(\"Properly capitalized company name\").nullable().optional(),\n facebook_url: z.string().describe(\"Facebook profile URL\").nullable().optional(),\n linkedin_url: z.string().describe(\"Full LinkedIn profile URL\").nullable().optional(),\n mic_exchange: z.string().describe(\"Market Identified Code for stock exchange\").nullable().optional(),\n linkedin_slug: z.string().describe(\"LinkedIn URL slug identifier\").nullable().optional(),\n employee_count: z.number().int().describe(\"Current employee count based on profiles\").nullable().optional(),\n funding_stages: z.array(PeopledatalabsEnrichCompanyData_FundingStageSchema).describe(\"All funding round types the company has completed\").nullable().optional(),\n dataset_version: z.string().describe(\"Data release version number\").nullable().optional(),\n alternative_names: z.array(z.string()).describe(\"Associated or previous company names\").nullable().optional(),\n last_funding_date: z.string().describe(\"Date of most recent funding event (YYYY-MM-DD format)\").nullable().optional(),\n affiliated_profiles: z.array(z.string()).describe(\"List of affiliated company IDs (parents/subsidiaries)\").nullable().optional(),\n alternative_domains: z.array(z.string()).describe(\"Previous domain names\").nullable().optional(),\n latest_funding_stage: PeopledatalabsEnrichCompanyData_FundingStageSchema.nullable().optional(),\n total_funding_raised: z.number().describe(\"Cumulative funding raised in USD\").nullable().optional(),\n number_funding_rounds: z.number().int().describe(\"Total number of funding events\").nullable().optional(),\n employee_count_by_country: z.object({}).describe(\"Employee counts per country (includes 'other_uncategorized')\").nullable().optional(),\n}).describe(\"Enriched company data fields returned by the API\");\nexport const PeopledatalabsEnrichCompanyDataOutput: z.ZodTypeAny = z.object({\n data: PeopledatalabsEnrichCompanyData_CompanyDataFieldsSchema.nullable().optional(),\n found: z.boolean().describe(\"Indicates whether the company was found in the People Data Labs database. If False, no enrichment data is available for the requested company.\"),\n});\n\nexport const peopledatalabsEnrichCompanyData = action(\"PEOPLEDATALABS_ENRICH_COMPANY_DATA\", {\n slug: \"peopledatalabs-enrich-company-data\",\n name: \"Enrich Company Data\",\n description: \"Enriches company data from People Data Labs with details like firmographics and employee counts. CRITICAL: This action REQUIRES at least one company identifier. DO NOT send empty {} requests. You MUST provide at least one of: pdl_id, name, profile, ticker, or website. Valid request examples: - {\\\"name\\\": \\\"Apple Inc.\\\"} - enrich by company name - {\\\"website\\\": \\\"google.com\\\"} - enrich by website URL - {\\\"ticker\\\": \\\"MSFT\\\"} - enrich by stock ticker - {\\\"profile\\\": \\\"linkedin.com/company/microsoft\\\"} - enrich by social profile. Each call consumes API credits; use specific identifiers rather than exploratory requ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C,CAAC,SAAS;CACpH,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,sBAAsB,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAC7F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAM9D,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViE,EAAE,OAAO;EAC1E,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gJAAgJ;CAC9K,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/enrich-ip-data.ts
|
|
4
|
+
const PeopledatalabsEnrichIpDataInput = zod.z.object({
|
|
5
|
+
ip: zod.z.string().describe("The IP address to enrich. Must be a valid IPv4 or IPv6 address string."),
|
|
6
|
+
pretty: zod.z.boolean().default(false).describe("If true, the JSON response will be formatted with human-readable indentation for easier manual inspection.").optional(),
|
|
7
|
+
titlecase: zod.z.boolean().default(false).describe("If true, relevant string values in the response data (e.g., names, locations) will be converted to title case.").optional(),
|
|
8
|
+
return_person: zod.z.boolean().default(false).describe("If true, attempts to include person data associated with the IP address, provided a match is found.").optional(),
|
|
9
|
+
min_confidence: zod.z.string().describe("Specifies the minimum confidence level required for a company match to be returned. Matches below this threshold are excluded. If unspecified, the API's default (often 'very low') is used. Accepted values: `very low`, `low`, `medium`, `high`, `very high`.").optional(),
|
|
10
|
+
return_ip_location: zod.z.boolean().default(false).describe("If true, includes location data specific to the IP address (e.g., city, region, country, GPS coordinates).").optional(),
|
|
11
|
+
return_ip_metadata: zod.z.boolean().default(false).describe("If true, includes metadata specific to the IP address (e.g., connection type, line speed, ISP).").optional(),
|
|
12
|
+
return_if_unmatched: zod.z.boolean().default(false).describe("If true, IP-specific data (like location or metadata if requested) will be returned even if no company profile is matched to the IP.").optional(),
|
|
13
|
+
updated_title_roles: zod.z.boolean().default(false).describe("If true, the API will use an updated taxonomy for job title roles in the response. Refer to People Data Labs documentation for specifics on this taxonomy.").optional()
|
|
14
|
+
});
|
|
15
|
+
const PeopledatalabsEnrichIpData_IPLocationSchema = zod.z.object({
|
|
16
|
+
geo: zod.z.string().describe("Geographic coordinates in the format 'latitude, longitude'").nullable().optional(),
|
|
17
|
+
name: zod.z.string().describe("Formatted location name in the pattern 'locality, region, country'"),
|
|
18
|
+
metro: zod.z.string().describe("US-only metro area designation").nullable().optional(),
|
|
19
|
+
region: zod.z.string().describe("State or province name").nullable().optional(),
|
|
20
|
+
country: zod.z.string().describe("Standardized country name"),
|
|
21
|
+
locality: zod.z.string().describe("City or town name").nullable().optional(),
|
|
22
|
+
timezone: zod.z.string().describe("Lowercase timezone value"),
|
|
23
|
+
continent: zod.z.string().describe("Standardized continent name"),
|
|
24
|
+
postal_code: zod.z.string().describe("ZIP or postal code").nullable().optional()
|
|
25
|
+
}).describe("The geographic location associated with the IP address");
|
|
26
|
+
const PeopledatalabsEnrichIpData_IPMetadataSchema = zod.z.object({
|
|
27
|
+
tor: zod.z.boolean().describe("If the IP is a known Tor address"),
|
|
28
|
+
vpn: zod.z.boolean().describe("If the IP is a known VPN address"),
|
|
29
|
+
proxy: zod.z.boolean().describe("If the IP is a known proxy address"),
|
|
30
|
+
relay: zod.z.boolean().describe("If the IP is a known relay address"),
|
|
31
|
+
mobile: zod.z.boolean().describe("If the IP is a known mobile address"),
|
|
32
|
+
hosting: zod.z.boolean().describe("If the IP is a known hosting address"),
|
|
33
|
+
service: zod.z.string().describe("Service name if identifiable, returns null if unknown").nullable().optional(),
|
|
34
|
+
version: zod.z.number().int().describe("IPv4 (4) or IPv6 (6) type indicator"),
|
|
35
|
+
asn_domain: zod.z.string().describe("The domain associated with the ASN block, returns null if unknown").nullable().optional()
|
|
36
|
+
}).describe("Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services");
|
|
37
|
+
const PeopledatalabsEnrichIpData_IPAddressSchema = zod.z.object({
|
|
38
|
+
address: zod.z.string().describe("The matched IP address after validation"),
|
|
39
|
+
location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),
|
|
40
|
+
metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional()
|
|
41
|
+
}).describe("IP address information with metadata and location details");
|
|
42
|
+
const PeopledatalabsEnrichIpData_PersonSchema = zod.z.object({
|
|
43
|
+
confidence: zod.z.string().describe("Confidence level of the person match: very high, high, moderate, low, or very low").nullable().optional(),
|
|
44
|
+
job_title_role: zod.z.string().describe("The derived role of the person's current job title").nullable().optional(),
|
|
45
|
+
job_title_levels: zod.z.array(zod.z.string()).describe("The derived hierarchical level(s) of the person's current job title").nullable().optional(),
|
|
46
|
+
job_title_sub_role: zod.z.string().describe("The derived subrole of the person's current job title").nullable().optional()
|
|
47
|
+
}).describe("Person information when an individual can be matched to the IP address");
|
|
48
|
+
const PeopledatalabsEnrichIpData_CompanyLocationSchema = zod.z.object({
|
|
49
|
+
geo: zod.z.string().describe("Geographic coordinates").nullable().optional(),
|
|
50
|
+
name: zod.z.string().describe("Formatted location name").nullable().optional(),
|
|
51
|
+
metro: zod.z.string().describe("Metro area designation").nullable().optional(),
|
|
52
|
+
region: zod.z.string().describe("State or province name").nullable().optional(),
|
|
53
|
+
country: zod.z.string().describe("Country name").nullable().optional(),
|
|
54
|
+
locality: zod.z.string().describe("City or town name").nullable().optional(),
|
|
55
|
+
timezone: zod.z.string().describe("Timezone value").nullable().optional(),
|
|
56
|
+
continent: zod.z.string().describe("Continent name").nullable().optional(),
|
|
57
|
+
postal_code: zod.z.string().describe("ZIP or postal code").nullable().optional()
|
|
58
|
+
}).describe("Company headquarters location with full address details");
|
|
59
|
+
const PeopledatalabsEnrichIpData_CompanySchema = zod.z.object({
|
|
60
|
+
id: zod.z.string().describe("People Data Labs unique company identifier").nullable().optional(),
|
|
61
|
+
name: zod.z.string().describe("Company name in lowercase format").nullable().optional(),
|
|
62
|
+
size: zod.z.string().describe("Employee range indicating company size (e.g., '11-50', '51-200')").nullable().optional(),
|
|
63
|
+
tags: zod.z.array(zod.z.string()).describe("Descriptive business category tags").nullable().optional(),
|
|
64
|
+
website: zod.z.string().describe("Primary company website URL").nullable().optional(),
|
|
65
|
+
industry: zod.z.string().describe("Company industry classification").nullable().optional(),
|
|
66
|
+
location: PeopledatalabsEnrichIpData_CompanyLocationSchema.nullable().optional(),
|
|
67
|
+
confidence: zod.z.string().describe("Confidence level of the company match: very high, high, moderate, low, or very low").nullable().optional(),
|
|
68
|
+
display_name: zod.z.string().describe("Properly formatted company name with correct capitalization").nullable().optional(),
|
|
69
|
+
employee_count: zod.z.number().int().describe("Current employee headcount").nullable().optional(),
|
|
70
|
+
inferred_revenue: zod.z.string().describe("Estimated annual revenue range in USD").nullable().optional()
|
|
71
|
+
}).describe("Company associated with the IP address, including headquarters location and business details");
|
|
72
|
+
const PeopledatalabsEnrichIpData_IPEnrichmentDataSchema = zod.z.object({
|
|
73
|
+
ip: PeopledatalabsEnrichIpData_IPAddressSchema.nullable(),
|
|
74
|
+
person: PeopledatalabsEnrichIpData_PersonSchema.nullable().optional(),
|
|
75
|
+
company: PeopledatalabsEnrichIpData_CompanySchema.nullable().optional(),
|
|
76
|
+
dataset_version: zod.z.string().describe("Release version identifier of the data build")
|
|
77
|
+
}).describe("Container for all response information including IP, company, person, and version data");
|
|
78
|
+
const PeopledatalabsEnrichIpDataOutput = zod.z.object({
|
|
79
|
+
data: PeopledatalabsEnrichIpData_IPEnrichmentDataSchema.nullable(),
|
|
80
|
+
status: zod.z.number().int().describe("The API response code (200 for success, 404 for no match, 400 for unenrichable IPs)")
|
|
81
|
+
}).describe("Response from the IP Enrichment API");
|
|
82
|
+
const peopledatalabsEnrichIpData = require_action.action("PEOPLEDATALABS_ENRICH_IP_DATA", {
|
|
83
|
+
slug: "peopledatalabs-enrich-ip-data",
|
|
84
|
+
name: "Enrich IP Data",
|
|
85
|
+
description: "Enriches an IP address with company, location, metadata, and person data from People Data Labs.",
|
|
86
|
+
input: PeopledatalabsEnrichIpDataInput,
|
|
87
|
+
output: PeopledatalabsEnrichIpDataOutput
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
exports.peopledatalabsEnrichIpData = peopledatalabsEnrichIpData;
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=enrich-ip-data.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-ip-data.cjs","names":["z","action"],"sources":["../../src/actions/enrich-ip-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichIpDataInput: z.ZodTypeAny = z.object({\n ip: z.string().describe(\"The IP address to enrich. Must be a valid IPv4 or IPv6 address string.\"),\n pretty: z.boolean().default(false).describe(\"If true, the JSON response will be formatted with human-readable indentation for easier manual inspection.\").optional(),\n titlecase: z.boolean().default(false).describe(\"If true, relevant string values in the response data (e.g., names, locations) will be converted to title case.\").optional(),\n return_person: z.boolean().default(false).describe(\"If true, attempts to include person data associated with the IP address, provided a match is found.\").optional(),\n min_confidence: z.string().describe(\"Specifies the minimum confidence level required for a company match to be returned. Matches below this threshold are excluded. If unspecified, the API's default (often 'very low') is used. Accepted values: `very low`, `low`, `medium`, `high`, `very high`.\").optional(),\n return_ip_location: z.boolean().default(false).describe(\"If true, includes location data specific to the IP address (e.g., city, region, country, GPS coordinates).\").optional(),\n return_ip_metadata: z.boolean().default(false).describe(\"If true, includes metadata specific to the IP address (e.g., connection type, line speed, ISP).\").optional(),\n return_if_unmatched: z.boolean().default(false).describe(\"If true, IP-specific data (like location or metadata if requested) will be returned even if no company profile is matched to the IP.\").optional(),\n updated_title_roles: z.boolean().default(false).describe(\"If true, the API will use an updated taxonomy for job title roles in the response. Refer to People Data Labs documentation for specifics on this taxonomy.\").optional(),\n});\nconst PeopledatalabsEnrichIpData_IPLocationSchema: z.ZodTypeAny = z.object({\n geo: z.string().describe(\"Geographic coordinates in the format 'latitude, longitude'\").nullable().optional(),\n name: z.string().describe(\"Formatted location name in the pattern 'locality, region, country'\"),\n metro: z.string().describe(\"US-only metro area designation\").nullable().optional(),\n region: z.string().describe(\"State or province name\").nullable().optional(),\n country: z.string().describe(\"Standardized country name\"),\n locality: z.string().describe(\"City or town name\").nullable().optional(),\n timezone: z.string().describe(\"Lowercase timezone value\"),\n continent: z.string().describe(\"Standardized continent name\"),\n postal_code: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n}).describe(\"The geographic location associated with the IP address\");\nconst PeopledatalabsEnrichIpData_IPMetadataSchema: z.ZodTypeAny = z.object({\n tor: z.boolean().describe(\"If the IP is a known Tor address\"),\n vpn: z.boolean().describe(\"If the IP is a known VPN address\"),\n proxy: z.boolean().describe(\"If the IP is a known proxy address\"),\n relay: z.boolean().describe(\"If the IP is a known relay address\"),\n mobile: z.boolean().describe(\"If the IP is a known mobile address\"),\n hosting: z.boolean().describe(\"If the IP is a known hosting address\"),\n service: z.string().describe(\"Service name if identifiable, returns null if unknown\").nullable().optional(),\n version: z.number().int().describe(\"IPv4 (4) or IPv6 (6) type indicator\"),\n asn_domain: z.string().describe(\"The domain associated with the ASN block, returns null if unknown\").nullable().optional(),\n}).describe(\"Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services\");\nconst PeopledatalabsEnrichIpData_IPAddressSchema: z.ZodTypeAny = z.object({\n address: z.string().describe(\"The matched IP address after validation\"),\n location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),\n metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional(),\n}).describe(\"IP address information with metadata and location details\");\nconst PeopledatalabsEnrichIpData_PersonSchema: z.ZodTypeAny = z.object({\n confidence: z.string().describe(\"Confidence level of the person match: very high, high, moderate, low, or very low\").nullable().optional(),\n job_title_role: z.string().describe(\"The derived role of the person's current job title\").nullable().optional(),\n job_title_levels: z.array(z.string()).describe(\"The derived hierarchical level(s) of the person's current job title\").nullable().optional(),\n job_title_sub_role: z.string().describe(\"The derived subrole of the person's current job title\").nullable().optional(),\n}).describe(\"Person information when an individual can be matched to the IP address\");\nconst PeopledatalabsEnrichIpData_CompanyLocationSchema: z.ZodTypeAny = z.object({\n geo: z.string().describe(\"Geographic coordinates\").nullable().optional(),\n name: z.string().describe(\"Formatted location name\").nullable().optional(),\n metro: z.string().describe(\"Metro area designation\").nullable().optional(),\n region: z.string().describe(\"State or province name\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n locality: z.string().describe(\"City or town name\").nullable().optional(),\n timezone: z.string().describe(\"Timezone value\").nullable().optional(),\n continent: z.string().describe(\"Continent name\").nullable().optional(),\n postal_code: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n}).describe(\"Company headquarters location with full address details\");\nconst PeopledatalabsEnrichIpData_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"People Data Labs unique company identifier\").nullable().optional(),\n name: z.string().describe(\"Company name in lowercase format\").nullable().optional(),\n size: z.string().describe(\"Employee range indicating company size (e.g., '11-50', '51-200')\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Descriptive business category tags\").nullable().optional(),\n website: z.string().describe(\"Primary company website URL\").nullable().optional(),\n industry: z.string().describe(\"Company industry classification\").nullable().optional(),\n location: PeopledatalabsEnrichIpData_CompanyLocationSchema.nullable().optional(),\n confidence: z.string().describe(\"Confidence level of the company match: very high, high, moderate, low, or very low\").nullable().optional(),\n display_name: z.string().describe(\"Properly formatted company name with correct capitalization\").nullable().optional(),\n employee_count: z.number().int().describe(\"Current employee headcount\").nullable().optional(),\n inferred_revenue: z.string().describe(\"Estimated annual revenue range in USD\").nullable().optional(),\n}).describe(\"Company associated with the IP address, including headquarters location and business details\");\nconst PeopledatalabsEnrichIpData_IPEnrichmentDataSchema: z.ZodTypeAny = z.object({\n ip: PeopledatalabsEnrichIpData_IPAddressSchema.nullable(),\n person: PeopledatalabsEnrichIpData_PersonSchema.nullable().optional(),\n company: PeopledatalabsEnrichIpData_CompanySchema.nullable().optional(),\n dataset_version: z.string().describe(\"Release version identifier of the data build\"),\n}).describe(\"Container for all response information including IP, company, person, and version data\");\nexport const PeopledatalabsEnrichIpDataOutput: z.ZodTypeAny = z.object({\n data: PeopledatalabsEnrichIpData_IPEnrichmentDataSchema.nullable(),\n status: z.number().int().describe(\"The API response code (200 for success, 404 for no match, 400 for unenrichable IPs)\"),\n}).describe(\"Response from the IP Enrichment API\");\n\nexport const peopledatalabsEnrichIpData = action(\"PEOPLEDATALABS_ENRICH_IP_DATA\", {\n slug: \"peopledatalabs-enrich-ip-data\",\n name: \"Enrich IP Data\",\n description: \"Enriches an IP address with company, location, metadata, and person data from People Data Labs.\",\n input: PeopledatalabsEnrichIpDataInput,\n output: PeopledatalabsEnrichIpDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACnK,WAAWA,IAAAA,EAA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C,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAC1G,MAAM,oDAAkEA,IAAAA,EAAE,OAAO;CAC/E,IAAI,2CAA2C,SAAS;CACxD,QAAQ,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACpE,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AACrF,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACpG,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAM,kDAAkD,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF;AACzH,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/enrich-ip-data.d.ts
|
|
4
|
+
declare const PeopledatalabsEnrichIpDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const PeopledatalabsEnrichIpDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const peopledatalabsEnrichIpData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { peopledatalabsEnrichIpData };
|
|
9
|
+
//# sourceMappingURL=enrich-ip-data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-ip-data.d.cts","names":[],"sources":["../../src/actions/enrich-ip-data.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAU9C;AAAA,cAgEW,gCAAA,EAAkC,CAAA,CAAE,UAGC;AAAA,cAErC,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/enrich-ip-data.d.ts
|
|
4
|
+
declare const PeopledatalabsEnrichIpDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const PeopledatalabsEnrichIpDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const peopledatalabsEnrichIpData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { peopledatalabsEnrichIpData };
|
|
9
|
+
//# sourceMappingURL=enrich-ip-data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-ip-data.d.mts","names":[],"sources":["../../src/actions/enrich-ip-data.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAU9C;AAAA,cAgEW,gCAAA,EAAkC,CAAA,CAAE,UAGC;AAAA,cAErC,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/enrich-ip-data.ts
|
|
4
|
+
const PeopledatalabsEnrichIpDataInput = z.object({
|
|
5
|
+
ip: z.string().describe("The IP address to enrich. Must be a valid IPv4 or IPv6 address string."),
|
|
6
|
+
pretty: z.boolean().default(false).describe("If true, the JSON response will be formatted with human-readable indentation for easier manual inspection.").optional(),
|
|
7
|
+
titlecase: z.boolean().default(false).describe("If true, relevant string values in the response data (e.g., names, locations) will be converted to title case.").optional(),
|
|
8
|
+
return_person: z.boolean().default(false).describe("If true, attempts to include person data associated with the IP address, provided a match is found.").optional(),
|
|
9
|
+
min_confidence: z.string().describe("Specifies the minimum confidence level required for a company match to be returned. Matches below this threshold are excluded. If unspecified, the API's default (often 'very low') is used. Accepted values: `very low`, `low`, `medium`, `high`, `very high`.").optional(),
|
|
10
|
+
return_ip_location: z.boolean().default(false).describe("If true, includes location data specific to the IP address (e.g., city, region, country, GPS coordinates).").optional(),
|
|
11
|
+
return_ip_metadata: z.boolean().default(false).describe("If true, includes metadata specific to the IP address (e.g., connection type, line speed, ISP).").optional(),
|
|
12
|
+
return_if_unmatched: z.boolean().default(false).describe("If true, IP-specific data (like location or metadata if requested) will be returned even if no company profile is matched to the IP.").optional(),
|
|
13
|
+
updated_title_roles: z.boolean().default(false).describe("If true, the API will use an updated taxonomy for job title roles in the response. Refer to People Data Labs documentation for specifics on this taxonomy.").optional()
|
|
14
|
+
});
|
|
15
|
+
const PeopledatalabsEnrichIpData_IPLocationSchema = z.object({
|
|
16
|
+
geo: z.string().describe("Geographic coordinates in the format 'latitude, longitude'").nullable().optional(),
|
|
17
|
+
name: z.string().describe("Formatted location name in the pattern 'locality, region, country'"),
|
|
18
|
+
metro: z.string().describe("US-only metro area designation").nullable().optional(),
|
|
19
|
+
region: z.string().describe("State or province name").nullable().optional(),
|
|
20
|
+
country: z.string().describe("Standardized country name"),
|
|
21
|
+
locality: z.string().describe("City or town name").nullable().optional(),
|
|
22
|
+
timezone: z.string().describe("Lowercase timezone value"),
|
|
23
|
+
continent: z.string().describe("Standardized continent name"),
|
|
24
|
+
postal_code: z.string().describe("ZIP or postal code").nullable().optional()
|
|
25
|
+
}).describe("The geographic location associated with the IP address");
|
|
26
|
+
const PeopledatalabsEnrichIpData_IPMetadataSchema = z.object({
|
|
27
|
+
tor: z.boolean().describe("If the IP is a known Tor address"),
|
|
28
|
+
vpn: z.boolean().describe("If the IP is a known VPN address"),
|
|
29
|
+
proxy: z.boolean().describe("If the IP is a known proxy address"),
|
|
30
|
+
relay: z.boolean().describe("If the IP is a known relay address"),
|
|
31
|
+
mobile: z.boolean().describe("If the IP is a known mobile address"),
|
|
32
|
+
hosting: z.boolean().describe("If the IP is a known hosting address"),
|
|
33
|
+
service: z.string().describe("Service name if identifiable, returns null if unknown").nullable().optional(),
|
|
34
|
+
version: z.number().int().describe("IPv4 (4) or IPv6 (6) type indicator"),
|
|
35
|
+
asn_domain: z.string().describe("The domain associated with the ASN block, returns null if unknown").nullable().optional()
|
|
36
|
+
}).describe("Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services");
|
|
37
|
+
const PeopledatalabsEnrichIpData_IPAddressSchema = z.object({
|
|
38
|
+
address: z.string().describe("The matched IP address after validation"),
|
|
39
|
+
location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),
|
|
40
|
+
metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional()
|
|
41
|
+
}).describe("IP address information with metadata and location details");
|
|
42
|
+
const PeopledatalabsEnrichIpData_PersonSchema = z.object({
|
|
43
|
+
confidence: z.string().describe("Confidence level of the person match: very high, high, moderate, low, or very low").nullable().optional(),
|
|
44
|
+
job_title_role: z.string().describe("The derived role of the person's current job title").nullable().optional(),
|
|
45
|
+
job_title_levels: z.array(z.string()).describe("The derived hierarchical level(s) of the person's current job title").nullable().optional(),
|
|
46
|
+
job_title_sub_role: z.string().describe("The derived subrole of the person's current job title").nullable().optional()
|
|
47
|
+
}).describe("Person information when an individual can be matched to the IP address");
|
|
48
|
+
const PeopledatalabsEnrichIpData_CompanyLocationSchema = z.object({
|
|
49
|
+
geo: z.string().describe("Geographic coordinates").nullable().optional(),
|
|
50
|
+
name: z.string().describe("Formatted location name").nullable().optional(),
|
|
51
|
+
metro: z.string().describe("Metro area designation").nullable().optional(),
|
|
52
|
+
region: z.string().describe("State or province name").nullable().optional(),
|
|
53
|
+
country: z.string().describe("Country name").nullable().optional(),
|
|
54
|
+
locality: z.string().describe("City or town name").nullable().optional(),
|
|
55
|
+
timezone: z.string().describe("Timezone value").nullable().optional(),
|
|
56
|
+
continent: z.string().describe("Continent name").nullable().optional(),
|
|
57
|
+
postal_code: z.string().describe("ZIP or postal code").nullable().optional()
|
|
58
|
+
}).describe("Company headquarters location with full address details");
|
|
59
|
+
const PeopledatalabsEnrichIpData_CompanySchema = z.object({
|
|
60
|
+
id: z.string().describe("People Data Labs unique company identifier").nullable().optional(),
|
|
61
|
+
name: z.string().describe("Company name in lowercase format").nullable().optional(),
|
|
62
|
+
size: z.string().describe("Employee range indicating company size (e.g., '11-50', '51-200')").nullable().optional(),
|
|
63
|
+
tags: z.array(z.string()).describe("Descriptive business category tags").nullable().optional(),
|
|
64
|
+
website: z.string().describe("Primary company website URL").nullable().optional(),
|
|
65
|
+
industry: z.string().describe("Company industry classification").nullable().optional(),
|
|
66
|
+
location: PeopledatalabsEnrichIpData_CompanyLocationSchema.nullable().optional(),
|
|
67
|
+
confidence: z.string().describe("Confidence level of the company match: very high, high, moderate, low, or very low").nullable().optional(),
|
|
68
|
+
display_name: z.string().describe("Properly formatted company name with correct capitalization").nullable().optional(),
|
|
69
|
+
employee_count: z.number().int().describe("Current employee headcount").nullable().optional(),
|
|
70
|
+
inferred_revenue: z.string().describe("Estimated annual revenue range in USD").nullable().optional()
|
|
71
|
+
}).describe("Company associated with the IP address, including headquarters location and business details");
|
|
72
|
+
const PeopledatalabsEnrichIpData_IPEnrichmentDataSchema = z.object({
|
|
73
|
+
ip: PeopledatalabsEnrichIpData_IPAddressSchema.nullable(),
|
|
74
|
+
person: PeopledatalabsEnrichIpData_PersonSchema.nullable().optional(),
|
|
75
|
+
company: PeopledatalabsEnrichIpData_CompanySchema.nullable().optional(),
|
|
76
|
+
dataset_version: z.string().describe("Release version identifier of the data build")
|
|
77
|
+
}).describe("Container for all response information including IP, company, person, and version data");
|
|
78
|
+
const peopledatalabsEnrichIpData = action("PEOPLEDATALABS_ENRICH_IP_DATA", {
|
|
79
|
+
slug: "peopledatalabs-enrich-ip-data",
|
|
80
|
+
name: "Enrich IP Data",
|
|
81
|
+
description: "Enriches an IP address with company, location, metadata, and person data from People Data Labs.",
|
|
82
|
+
input: PeopledatalabsEnrichIpDataInput,
|
|
83
|
+
output: z.object({
|
|
84
|
+
data: PeopledatalabsEnrichIpData_IPEnrichmentDataSchema.nullable(),
|
|
85
|
+
status: z.number().int().describe("The API response code (200 for success, 404 for no match, 400 for unenrichable IPs)")
|
|
86
|
+
}).describe("Response from the IP Enrichment API")
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { peopledatalabsEnrichIpData };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=enrich-ip-data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-ip-data.mjs","names":[],"sources":["../../src/actions/enrich-ip-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichIpDataInput: z.ZodTypeAny = z.object({\n ip: z.string().describe(\"The IP address to enrich. Must be a valid IPv4 or IPv6 address string.\"),\n pretty: z.boolean().default(false).describe(\"If true, the JSON response will be formatted with human-readable indentation for easier manual inspection.\").optional(),\n titlecase: z.boolean().default(false).describe(\"If true, relevant string values in the response data (e.g., names, locations) will be converted to title case.\").optional(),\n return_person: z.boolean().default(false).describe(\"If true, attempts to include person data associated with the IP address, provided a match is found.\").optional(),\n min_confidence: z.string().describe(\"Specifies the minimum confidence level required for a company match to be returned. Matches below this threshold are excluded. If unspecified, the API's default (often 'very low') is used. Accepted values: `very low`, `low`, `medium`, `high`, `very high`.\").optional(),\n return_ip_location: z.boolean().default(false).describe(\"If true, includes location data specific to the IP address (e.g., city, region, country, GPS coordinates).\").optional(),\n return_ip_metadata: z.boolean().default(false).describe(\"If true, includes metadata specific to the IP address (e.g., connection type, line speed, ISP).\").optional(),\n return_if_unmatched: z.boolean().default(false).describe(\"If true, IP-specific data (like location or metadata if requested) will be returned even if no company profile is matched to the IP.\").optional(),\n updated_title_roles: z.boolean().default(false).describe(\"If true, the API will use an updated taxonomy for job title roles in the response. Refer to People Data Labs documentation for specifics on this taxonomy.\").optional(),\n});\nconst PeopledatalabsEnrichIpData_IPLocationSchema: z.ZodTypeAny = z.object({\n geo: z.string().describe(\"Geographic coordinates in the format 'latitude, longitude'\").nullable().optional(),\n name: z.string().describe(\"Formatted location name in the pattern 'locality, region, country'\"),\n metro: z.string().describe(\"US-only metro area designation\").nullable().optional(),\n region: z.string().describe(\"State or province name\").nullable().optional(),\n country: z.string().describe(\"Standardized country name\"),\n locality: z.string().describe(\"City or town name\").nullable().optional(),\n timezone: z.string().describe(\"Lowercase timezone value\"),\n continent: z.string().describe(\"Standardized continent name\"),\n postal_code: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n}).describe(\"The geographic location associated with the IP address\");\nconst PeopledatalabsEnrichIpData_IPMetadataSchema: z.ZodTypeAny = z.object({\n tor: z.boolean().describe(\"If the IP is a known Tor address\"),\n vpn: z.boolean().describe(\"If the IP is a known VPN address\"),\n proxy: z.boolean().describe(\"If the IP is a known proxy address\"),\n relay: z.boolean().describe(\"If the IP is a known relay address\"),\n mobile: z.boolean().describe(\"If the IP is a known mobile address\"),\n hosting: z.boolean().describe(\"If the IP is a known hosting address\"),\n service: z.string().describe(\"Service name if identifiable, returns null if unknown\").nullable().optional(),\n version: z.number().int().describe(\"IPv4 (4) or IPv6 (6) type indicator\"),\n asn_domain: z.string().describe(\"The domain associated with the ASN block, returns null if unknown\").nullable().optional(),\n}).describe(\"Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services\");\nconst PeopledatalabsEnrichIpData_IPAddressSchema: z.ZodTypeAny = z.object({\n address: z.string().describe(\"The matched IP address after validation\"),\n location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),\n metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional(),\n}).describe(\"IP address information with metadata and location details\");\nconst PeopledatalabsEnrichIpData_PersonSchema: z.ZodTypeAny = z.object({\n confidence: z.string().describe(\"Confidence level of the person match: very high, high, moderate, low, or very low\").nullable().optional(),\n job_title_role: z.string().describe(\"The derived role of the person's current job title\").nullable().optional(),\n job_title_levels: z.array(z.string()).describe(\"The derived hierarchical level(s) of the person's current job title\").nullable().optional(),\n job_title_sub_role: z.string().describe(\"The derived subrole of the person's current job title\").nullable().optional(),\n}).describe(\"Person information when an individual can be matched to the IP address\");\nconst PeopledatalabsEnrichIpData_CompanyLocationSchema: z.ZodTypeAny = z.object({\n geo: z.string().describe(\"Geographic coordinates\").nullable().optional(),\n name: z.string().describe(\"Formatted location name\").nullable().optional(),\n metro: z.string().describe(\"Metro area designation\").nullable().optional(),\n region: z.string().describe(\"State or province name\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n locality: z.string().describe(\"City or town name\").nullable().optional(),\n timezone: z.string().describe(\"Timezone value\").nullable().optional(),\n continent: z.string().describe(\"Continent name\").nullable().optional(),\n postal_code: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n}).describe(\"Company headquarters location with full address details\");\nconst PeopledatalabsEnrichIpData_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"People Data Labs unique company identifier\").nullable().optional(),\n name: z.string().describe(\"Company name in lowercase format\").nullable().optional(),\n size: z.string().describe(\"Employee range indicating company size (e.g., '11-50', '51-200')\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Descriptive business category tags\").nullable().optional(),\n website: z.string().describe(\"Primary company website URL\").nullable().optional(),\n industry: z.string().describe(\"Company industry classification\").nullable().optional(),\n location: PeopledatalabsEnrichIpData_CompanyLocationSchema.nullable().optional(),\n confidence: z.string().describe(\"Confidence level of the company match: very high, high, moderate, low, or very low\").nullable().optional(),\n display_name: z.string().describe(\"Properly formatted company name with correct capitalization\").nullable().optional(),\n employee_count: z.number().int().describe(\"Current employee headcount\").nullable().optional(),\n inferred_revenue: z.string().describe(\"Estimated annual revenue range in USD\").nullable().optional(),\n}).describe(\"Company associated with the IP address, including headquarters location and business details\");\nconst PeopledatalabsEnrichIpData_IPEnrichmentDataSchema: z.ZodTypeAny = z.object({\n ip: PeopledatalabsEnrichIpData_IPAddressSchema.nullable(),\n person: PeopledatalabsEnrichIpData_PersonSchema.nullable().optional(),\n company: PeopledatalabsEnrichIpData_CompanySchema.nullable().optional(),\n dataset_version: z.string().describe(\"Release version identifier of the data build\"),\n}).describe(\"Container for all response information including IP, company, person, and version data\");\nexport const PeopledatalabsEnrichIpDataOutput: z.ZodTypeAny = z.object({\n data: PeopledatalabsEnrichIpData_IPEnrichmentDataSchema.nullable(),\n status: z.number().int().describe(\"The API response code (200 for success, 404 for no match, 400 for unenrichable IPs)\"),\n}).describe(\"Response from the IP Enrichment API\");\n\nexport const peopledatalabsEnrichIpData = action(\"PEOPLEDATALABS_ENRICH_IP_DATA\", {\n slug: \"peopledatalabs-enrich-ip-data\",\n name: \"Enrich IP Data\",\n description: \"Enriches an IP address with company, location, metadata, and person data from People Data Labs.\",\n input: PeopledatalabsEnrichIpDataInput,\n output: PeopledatalabsEnrichIpDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACnK,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC1K,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACnK,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iQAAiQ,CAAC,CAAC,SAAS;CAChT,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAC/K,oBAA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SAAS;CACrF,UAAU,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAC1G,MAAM,oDAAkE,EAAE,OAAO;CAC/E,IAAI,2CAA2C,SAAS;CACxD,QAAQ,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACpE,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AACrF,CAAC,CAAC,CAAC,SAAS,wFAAwF;AAMpG,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4D,EAAE,OAAO;EACrE,MAAM,kDAAkD,SAAS;EACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF;CACzH,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/enrich-job-title-data.ts
|
|
4
|
+
const PeopledatalabsEnrichJobTitleDataInput = zod.z.object({ job_title: zod.z.string().describe("Job title to be enriched.") });
|
|
5
|
+
const PeopledatalabsEnrichJobTitleDataOutput = zod.z.object({
|
|
6
|
+
relevant_skills: zod.z.array(zod.z.string()).describe("A list of up to five of the most contextually-similar skills to the cleaned_job_title, determined using global resume data."),
|
|
7
|
+
cleaned_job_title: zod.z.string().describe("The job title that matches the API input job_title after passing it through the internal job title cleaner."),
|
|
8
|
+
similar_job_titles: zod.z.array(zod.z.string()).describe("A list of up to five of the most contextually-similar job titles to the cleaned_job_title, determined using global resume data.")
|
|
9
|
+
});
|
|
10
|
+
const peopledatalabsEnrichJobTitleData = require_action.action("PEOPLEDATALABS_ENRICH_JOB_TITLE_DATA", {
|
|
11
|
+
slug: "peopledatalabs-enrich-job-title-data",
|
|
12
|
+
name: "Enrich job title data",
|
|
13
|
+
description: "Enhances a job title by providing additional contextual information and details.",
|
|
14
|
+
input: PeopledatalabsEnrichJobTitleDataInput,
|
|
15
|
+
output: PeopledatalabsEnrichJobTitleDataOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.peopledatalabsEnrichJobTitleData = peopledatalabsEnrichJobTitleData;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=enrich-job-title-data.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-job-title-data.cjs","names":["z","action"],"sources":["../../src/actions/enrich-job-title-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichJobTitleDataInput: z.ZodTypeAny = z.object({\n job_title: z.string().describe(\"Job title to be enriched.\"),\n});\nexport const PeopledatalabsEnrichJobTitleDataOutput: z.ZodTypeAny = z.object({\n relevant_skills: z.array(z.string()).describe(\"A list of up to five of the most contextually-similar skills to the cleaned_job_title, determined using global resume data.\"),\n cleaned_job_title: z.string().describe(\"The job title that matches the API input job_title after passing it through the internal job title cleaner.\"),\n similar_job_titles: z.array(z.string()).describe(\"A list of up to five of the most contextually-similar job titles to the cleaned_job_title, determined using global resume data.\"),\n});\n\nexport const peopledatalabsEnrichJobTitleData = action(\"PEOPLEDATALABS_ENRICH_JOB_TITLE_DATA\", {\n slug: \"peopledatalabs-enrich-job-title-data\",\n name: \"Enrich job title data\",\n description: \"Enhances a job title by providing additional contextual information and details.\",\n input: PeopledatalabsEnrichJobTitleDataInput,\n output: PeopledatalabsEnrichJobTitleDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,EAC5D,CAAC;AACD,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6HAA6H;CAC3K,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACpJ,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iIAAiI;AACpL,CAAC;AAED,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/enrich-job-title-data.d.ts
|
|
4
|
+
declare const PeopledatalabsEnrichJobTitleDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const PeopledatalabsEnrichJobTitleDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const peopledatalabsEnrichJobTitleData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { peopledatalabsEnrichJobTitleData };
|
|
9
|
+
//# sourceMappingURL=enrich-job-title-data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-job-title-data.d.cts","names":[],"sources":["../../src/actions/enrich-job-title-data.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cACW,sCAAA,EAAwC,CAAA,CAAE,UAIrD;AAAA,cAEW,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/enrich-job-title-data.d.ts
|
|
4
|
+
declare const PeopledatalabsEnrichJobTitleDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const PeopledatalabsEnrichJobTitleDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const peopledatalabsEnrichJobTitleData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { peopledatalabsEnrichJobTitleData };
|
|
9
|
+
//# sourceMappingURL=enrich-job-title-data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-job-title-data.d.mts","names":[],"sources":["../../src/actions/enrich-job-title-data.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cACW,sCAAA,EAAwC,CAAA,CAAE,UAIrD;AAAA,cAEW,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const peopledatalabsEnrichJobTitleData = action("PEOPLEDATALABS_ENRICH_JOB_TITLE_DATA", {
|
|
4
|
+
slug: "peopledatalabs-enrich-job-title-data",
|
|
5
|
+
name: "Enrich job title data",
|
|
6
|
+
description: "Enhances a job title by providing additional contextual information and details.",
|
|
7
|
+
input: z.object({ job_title: z.string().describe("Job title to be enriched.") }),
|
|
8
|
+
output: z.object({
|
|
9
|
+
relevant_skills: z.array(z.string()).describe("A list of up to five of the most contextually-similar skills to the cleaned_job_title, determined using global resume data."),
|
|
10
|
+
cleaned_job_title: z.string().describe("The job title that matches the API input job_title after passing it through the internal job title cleaner."),
|
|
11
|
+
similar_job_titles: z.array(z.string()).describe("A list of up to five of the most contextually-similar job titles to the cleaned_job_title, determined using global resume data.")
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { peopledatalabsEnrichJobTitleData };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=enrich-job-title-data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrich-job-title-data.mjs","names":[],"sources":["../../src/actions/enrich-job-title-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichJobTitleDataInput: z.ZodTypeAny = z.object({\n job_title: z.string().describe(\"Job title to be enriched.\"),\n});\nexport const PeopledatalabsEnrichJobTitleDataOutput: z.ZodTypeAny = z.object({\n relevant_skills: z.array(z.string()).describe(\"A list of up to five of the most contextually-similar skills to the cleaned_job_title, determined using global resume data.\"),\n cleaned_job_title: z.string().describe(\"The job title that matches the API input job_title after passing it through the internal job title cleaner.\"),\n similar_job_titles: z.array(z.string()).describe(\"A list of up to five of the most contextually-similar job titles to the cleaned_job_title, determined using global resume data.\"),\n});\n\nexport const peopledatalabsEnrichJobTitleData = action(\"PEOPLEDATALABS_ENRICH_JOB_TITLE_DATA\", {\n slug: \"peopledatalabs-enrich-job-title-data\",\n name: \"Enrich job title data\",\n description: \"Enhances a job title by providing additional contextual information and details.\",\n input: PeopledatalabsEnrichJobTitleDataInput,\n output: PeopledatalabsEnrichJobTitleDataOutput,\n});\n"],"mappings":";;AAaA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbiE,EAAE,OAAO,EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,EAC5D,CAWS;CACP,QAXkE,EAAE,OAAO;EAC3E,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6HAA6H;EAC3K,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;EACpJ,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iIAAiI;CACpL,CAOU;AACV,CAAC"}
|