@keystrokehq/peopledatalabs 0.1.2 → 0.1.4
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/actions/clean-company-data.cjs +10 -10
- package/dist/actions/clean-company-data.cjs.map +1 -1
- package/dist/actions/clean-company-data.d.cts +10 -10
- package/dist/actions/clean-company-data.d.mts +10 -10
- package/dist/actions/clean-company-data.mjs +10 -10
- package/dist/actions/clean-company-data.mjs.map +1 -1
- package/dist/actions/clean-company-post.cjs +2 -2
- package/dist/actions/clean-company-post.cjs.map +1 -1
- package/dist/actions/clean-company-post.d.cts +2 -2
- package/dist/actions/clean-company-post.d.mts +2 -2
- package/dist/actions/clean-company-post.mjs +2 -2
- package/dist/actions/clean-company-post.mjs.map +1 -1
- package/dist/actions/clean-location-data.cjs +1 -1
- package/dist/actions/clean-location-data.cjs.map +1 -1
- package/dist/actions/clean-location-data.d.cts +1 -1
- package/dist/actions/clean-location-data.d.mts +1 -1
- package/dist/actions/clean-location-data.mjs +1 -1
- package/dist/actions/clean-location-data.mjs.map +1 -1
- package/dist/actions/clean-location-post.cjs +1 -1
- package/dist/actions/clean-location-post.cjs.map +1 -1
- package/dist/actions/clean-location-post.d.cts +1 -1
- package/dist/actions/clean-location-post.d.mts +1 -1
- package/dist/actions/clean-location-post.mjs +1 -1
- package/dist/actions/clean-location-post.mjs.map +1 -1
- package/dist/actions/clean-school-data-post.cjs +2 -2
- package/dist/actions/clean-school-data-post.cjs.map +1 -1
- package/dist/actions/clean-school-data-post.d.cts +2 -2
- package/dist/actions/clean-school-data-post.d.mts +2 -2
- package/dist/actions/clean-school-data-post.mjs +2 -2
- package/dist/actions/clean-school-data-post.mjs.map +1 -1
- package/dist/actions/clean-school-data.cjs +2 -2
- package/dist/actions/clean-school-data.cjs.map +1 -1
- package/dist/actions/clean-school-data.d.cts +2 -2
- package/dist/actions/clean-school-data.d.mts +2 -2
- package/dist/actions/clean-school-data.mjs +2 -2
- package/dist/actions/clean-school-data.mjs.map +1 -1
- package/dist/actions/enrich-bulk-company-data.cjs +3 -3
- package/dist/actions/enrich-bulk-company-data.cjs.map +1 -1
- package/dist/actions/enrich-bulk-company-data.d.cts +4 -3
- package/dist/actions/enrich-bulk-company-data.d.mts +4 -3
- package/dist/actions/enrich-bulk-company-data.mjs +3 -3
- package/dist/actions/enrich-bulk-company-data.mjs.map +1 -1
- package/dist/actions/enrich-bulk-person-data.cjs +18 -18
- package/dist/actions/enrich-bulk-person-data.cjs.map +1 -1
- package/dist/actions/enrich-bulk-person-data.d.cts +21 -20
- package/dist/actions/enrich-bulk-person-data.d.cts.map +1 -1
- package/dist/actions/enrich-bulk-person-data.d.mts +21 -20
- package/dist/actions/enrich-bulk-person-data.d.mts.map +1 -1
- package/dist/actions/enrich-bulk-person-data.mjs +18 -18
- package/dist/actions/enrich-bulk-person-data.mjs.map +1 -1
- package/dist/actions/enrich-company-data.cjs +6 -6
- package/dist/actions/enrich-company-data.cjs.map +1 -1
- package/dist/actions/enrich-company-data.d.cts +6 -6
- package/dist/actions/enrich-company-data.d.mts +6 -6
- package/dist/actions/enrich-company-data.mjs +6 -6
- package/dist/actions/enrich-company-data.mjs.map +1 -1
- package/dist/actions/enrich-ip-data.cjs +8 -8
- package/dist/actions/enrich-ip-data.cjs.map +1 -1
- package/dist/actions/enrich-ip-data.d.cts +8 -8
- package/dist/actions/enrich-ip-data.d.mts +8 -8
- package/dist/actions/enrich-ip-data.mjs +8 -8
- package/dist/actions/enrich-ip-data.mjs.map +1 -1
- package/dist/actions/enrich-job-title-data.cjs +1 -1
- package/dist/actions/enrich-job-title-data.cjs.map +1 -1
- package/dist/actions/enrich-job-title-data.d.cts +1 -1
- package/dist/actions/enrich-job-title-data.d.mts +1 -1
- package/dist/actions/enrich-job-title-data.mjs +1 -1
- package/dist/actions/enrich-job-title-data.mjs.map +1 -1
- package/dist/actions/enrich-person-data.cjs +14 -14
- package/dist/actions/enrich-person-data.cjs.map +1 -1
- package/dist/actions/enrich-person-data.d.cts +15 -15
- package/dist/actions/enrich-person-data.d.mts +15 -15
- package/dist/actions/enrich-person-data.mjs +14 -14
- package/dist/actions/enrich-person-data.mjs.map +1 -1
- package/dist/actions/enrich-skill-data.cjs +1 -1
- package/dist/actions/enrich-skill-data.cjs.map +1 -1
- package/dist/actions/enrich-skill-data.d.cts +1 -1
- package/dist/actions/enrich-skill-data.d.mts +1 -1
- package/dist/actions/enrich-skill-data.mjs +1 -1
- package/dist/actions/enrich-skill-data.mjs.map +1 -1
- package/dist/actions/get-autocomplete-suggestions-post.cjs +3 -3
- package/dist/actions/get-autocomplete-suggestions-post.cjs.map +1 -1
- package/dist/actions/get-autocomplete-suggestions-post.d.cts +6 -6
- package/dist/actions/get-autocomplete-suggestions-post.d.mts +6 -6
- package/dist/actions/get-autocomplete-suggestions-post.mjs +3 -3
- package/dist/actions/get-autocomplete-suggestions-post.mjs.map +1 -1
- package/dist/actions/get-autocomplete-suggestions.cjs +3 -3
- package/dist/actions/get-autocomplete-suggestions.cjs.map +1 -1
- package/dist/actions/get-autocomplete-suggestions.d.cts +3 -3
- package/dist/actions/get-autocomplete-suggestions.d.mts +3 -3
- package/dist/actions/get-autocomplete-suggestions.mjs +3 -3
- package/dist/actions/get-autocomplete-suggestions.mjs.map +1 -1
- package/dist/actions/get-column-details.cjs +2 -2
- package/dist/actions/get-column-details.cjs.map +1 -1
- package/dist/actions/get-column-details.d.cts +2 -2
- package/dist/actions/get-column-details.d.mts +2 -2
- package/dist/actions/get-column-details.mjs +2 -2
- package/dist/actions/get-column-details.mjs.map +1 -1
- package/dist/actions/get-schema.cjs +2 -2
- package/dist/actions/get-schema.cjs.map +1 -1
- package/dist/actions/get-schema.d.cts +2 -2
- package/dist/actions/get-schema.d.mts +2 -2
- package/dist/actions/get-schema.mjs +2 -2
- package/dist/actions/get-schema.mjs.map +1 -1
- package/dist/actions/get-subject-requests.cjs +1 -1
- package/dist/actions/get-subject-requests.cjs.map +1 -1
- package/dist/actions/get-subject-requests.d.cts +1 -1
- package/dist/actions/get-subject-requests.d.mts +1 -1
- package/dist/actions/get-subject-requests.mjs +1 -1
- package/dist/actions/get-subject-requests.mjs.map +1 -1
- package/dist/actions/identify-person-data.cjs +2 -2
- package/dist/actions/identify-person-data.cjs.map +1 -1
- package/dist/actions/identify-person-data.d.cts +2 -2
- package/dist/actions/identify-person-data.d.mts +2 -2
- package/dist/actions/identify-person-data.mjs +2 -2
- package/dist/actions/identify-person-data.mjs.map +1 -1
- package/dist/actions/people-search-elastic.cjs +9 -9
- package/dist/actions/people-search-elastic.cjs.map +1 -1
- package/dist/actions/people-search-elastic.d.cts +10 -10
- package/dist/actions/people-search-elastic.d.mts +10 -10
- package/dist/actions/people-search-elastic.mjs +9 -9
- package/dist/actions/people-search-elastic.mjs.map +1 -1
- package/dist/actions/query-person-changelog.cjs +3 -3
- package/dist/actions/query-person-changelog.cjs.map +1 -1
- package/dist/actions/query-person-changelog.d.cts +3 -3
- package/dist/actions/query-person-changelog.d.mts +3 -3
- package/dist/actions/query-person-changelog.mjs +3 -3
- package/dist/actions/query-person-changelog.mjs.map +1 -1
- package/dist/actions/search-company-elastic.cjs +31 -31
- package/dist/actions/search-company-elastic.cjs.map +1 -1
- package/dist/actions/search-company-elastic.d.cts +31 -31
- package/dist/actions/search-company-elastic.d.mts +31 -31
- package/dist/actions/search-company-elastic.mjs +31 -31
- package/dist/actions/search-company-elastic.mjs.map +1 -1
- package/dist/actions/search-company-post.cjs +3 -3
- package/dist/actions/search-company-post.cjs.map +1 -1
- package/dist/actions/search-company-post.d.cts +3 -3
- package/dist/actions/search-company-post.d.mts +3 -3
- package/dist/actions/search-company-post.mjs +3 -3
- package/dist/actions/search-company-post.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enrich-company-data.cjs","names":["z","action"],"sources":["../../src/actions/enrich-company-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichCompanyDataInput = 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.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.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.enum([\"educational\", \"government\", \"nonprofit\", \"private\", \"public\", \"public_subsidiary\"]).describe(\"Company type classification\");\nconst PeopledatalabsEnrichCompanyData_NAICSClassificationSchema = 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.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.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.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\").nullable(),\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\").nullable(),\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.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.\").nullable(),\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 requests.\",\n input: PeopledatalabsEnrichCompanyDataInput,\n output: PeopledatalabsEnrichCompanyDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjM,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAChK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACjJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACnL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CAC1L,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAq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AS;CAC/H,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,sBAAsB,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAC7F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;AACzL,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"enrich-company-data.cjs","names":["z","action"],"sources":["../../src/actions/enrich-company-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PeopledatalabsEnrichCompanyDataInput = 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.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}).passthrough().describe(\"Standard Industrial Classification (SIC) code details\");\nconst PeopledatalabsEnrichCompanyData_CompanySizeSchema = 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.enum([\"educational\", \"government\", \"nonprofit\", \"private\", \"public\", \"public_subsidiary\"]).describe(\"Company type classification\");\nconst PeopledatalabsEnrichCompanyData_NAICSClassificationSchema = 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}).passthrough().describe(\"North American Industry Classification System (NAICS) code details\");\nconst PeopledatalabsEnrichCompanyData_CompanyLocationSchema = 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}).passthrough().describe(\"Company headquarters location details\");\nconst PeopledatalabsEnrichCompanyData_FundingStageSchema = 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.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\").nullable(),\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\").nullable(),\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.record(z.string(), z.unknown()).describe(\"Employee counts per country (includes 'other_uncategorized')\").nullable().optional(),\n}).passthrough().describe(\"Enriched company data fields returned by the API\");\nexport const PeopledatalabsEnrichCompanyDataOutput = 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.\").nullable(),\n}).passthrough();\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 requests.\",\n input: PeopledatalabsEnrichCompanyDataInput,\n output: PeopledatalabsEnrichCompanyDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjM,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAChK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACjJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACnL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CAC1L,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC7K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CACjL,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC5K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CA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C,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,2BAA2BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -24,7 +24,7 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
24
24
|
major_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
industry_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
industry_sector: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
28
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
30
30
|
"1-10": "1-10";
|
|
@@ -52,7 +52,7 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
52
52
|
industry_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
naics_industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
national_industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
56
|
status: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
ticker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
founded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -71,7 +71,7 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
71
71
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
72
|
address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
73
|
street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$loose>>>;
|
|
75
75
|
profiles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
76
76
|
likelihood: z.ZodNullable<z.ZodNumber>;
|
|
77
77
|
industry_v2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -152,10 +152,10 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
152
152
|
}>>>;
|
|
153
153
|
total_funding_raised: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
154
154
|
number_funding_rounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
155
|
-
employee_count_by_country: z.ZodOptional<z.ZodNullable<z.
|
|
156
|
-
}, z.core.$
|
|
155
|
+
employee_count_by_country: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
157
|
found: z.ZodNullable<z.ZodBoolean>;
|
|
158
|
-
}, z.core.$
|
|
158
|
+
}, z.core.$loose>;
|
|
159
159
|
declare const peopledatalabsEnrichCompanyData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
160
160
|
name?: string | undefined;
|
|
161
161
|
pdl_id?: string | undefined;
|
|
@@ -24,7 +24,7 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
24
24
|
major_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
industry_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
industry_sector: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
28
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
30
30
|
"1-10": "1-10";
|
|
@@ -52,7 +52,7 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
52
52
|
industry_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
naics_industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
national_industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
56
|
status: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
ticker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
founded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -71,7 +71,7 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
71
71
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
72
|
address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
73
|
street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$loose>>>;
|
|
75
75
|
profiles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
76
76
|
likelihood: z.ZodNullable<z.ZodNumber>;
|
|
77
77
|
industry_v2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -152,10 +152,10 @@ declare const PeopledatalabsEnrichCompanyDataOutput: z.ZodObject<{
|
|
|
152
152
|
}>>>;
|
|
153
153
|
total_funding_raised: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
154
154
|
number_funding_rounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
155
|
-
employee_count_by_country: z.ZodOptional<z.ZodNullable<z.
|
|
156
|
-
}, z.core.$
|
|
155
|
+
employee_count_by_country: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
157
|
found: z.ZodNullable<z.ZodBoolean>;
|
|
158
|
-
}, z.core.$
|
|
158
|
+
}, z.core.$loose>;
|
|
159
159
|
declare const peopledatalabsEnrichCompanyData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
160
160
|
name?: string | undefined;
|
|
161
161
|
pdl_id?: string | undefined;
|
|
@@ -21,7 +21,7 @@ const PeopledatalabsEnrichCompanyData_SICClassificationSchema = z.object({
|
|
|
21
21
|
major_group: z.string().describe("SIC major group name").nullable().optional(),
|
|
22
22
|
industry_group: z.string().describe("SIC industry group").nullable().optional(),
|
|
23
23
|
industry_sector: z.string().describe("SIC industry sector").nullable().optional()
|
|
24
|
-
}).describe("Standard Industrial Classification (SIC) code details");
|
|
24
|
+
}).passthrough().describe("Standard Industrial Classification (SIC) code details");
|
|
25
25
|
const PeopledatalabsEnrichCompanyData_CompanySizeSchema = z.enum([
|
|
26
26
|
"1-10",
|
|
27
27
|
"11-50",
|
|
@@ -47,7 +47,7 @@ const PeopledatalabsEnrichCompanyData_NAICSClassificationSchema = z.object({
|
|
|
47
47
|
industry_group: z.string().describe("NAICS industry group").nullable().optional(),
|
|
48
48
|
naics_industry: z.string().describe("NAICS industry name").nullable().optional(),
|
|
49
49
|
national_industry: z.string().describe("NAICS national industry name").nullable().optional()
|
|
50
|
-
}).describe("North American Industry Classification System (NAICS) code details");
|
|
50
|
+
}).passthrough().describe("North American Industry Classification System (NAICS) code details");
|
|
51
51
|
const PeopledatalabsEnrichCompanyData_CompanyLocationSchema = z.object({
|
|
52
52
|
geo: z.string().describe("Geographic coordinates in 'latitude,longitude' format").nullable().optional(),
|
|
53
53
|
name: z.string().describe("Full location name").nullable().optional(),
|
|
@@ -59,7 +59,7 @@ const PeopledatalabsEnrichCompanyData_CompanyLocationSchema = z.object({
|
|
|
59
59
|
postal_code: z.string().describe("Postal or ZIP code").nullable().optional(),
|
|
60
60
|
address_line_2: z.string().describe("Additional address information (suite, floor, etc.)").nullable().optional(),
|
|
61
61
|
street_address: z.string().describe("Street address").nullable().optional()
|
|
62
|
-
}).describe("Company headquarters location details");
|
|
62
|
+
}).passthrough().describe("Company headquarters location details");
|
|
63
63
|
const PeopledatalabsEnrichCompanyData_FundingStageSchema = z.enum([
|
|
64
64
|
"angel",
|
|
65
65
|
"pre_seed",
|
|
@@ -127,8 +127,8 @@ const PeopledatalabsEnrichCompanyData_CompanyDataFieldsSchema = z.object({
|
|
|
127
127
|
latest_funding_stage: PeopledatalabsEnrichCompanyData_FundingStageSchema.nullable().optional(),
|
|
128
128
|
total_funding_raised: z.number().describe("Cumulative funding raised in USD").nullable().optional(),
|
|
129
129
|
number_funding_rounds: z.number().int().describe("Total number of funding events").nullable().optional(),
|
|
130
|
-
employee_count_by_country: z.
|
|
131
|
-
}).describe("Enriched company data fields returned by the API");
|
|
130
|
+
employee_count_by_country: z.record(z.string(), z.unknown()).describe("Employee counts per country (includes 'other_uncategorized')").nullable().optional()
|
|
131
|
+
}).passthrough().describe("Enriched company data fields returned by the API");
|
|
132
132
|
const peopledatalabsEnrichCompanyData = action("PEOPLEDATALABS_ENRICH_COMPANY_DATA", {
|
|
133
133
|
slug: "peopledatalabs-enrich-company-data",
|
|
134
134
|
name: "Enrich Company Data",
|
|
@@ -137,7 +137,7 @@ const peopledatalabsEnrichCompanyData = action("PEOPLEDATALABS_ENRICH_COMPANY_DA
|
|
|
137
137
|
output: z.object({
|
|
138
138
|
data: PeopledatalabsEnrichCompanyData_CompanyDataFieldsSchema.nullable().optional(),
|
|
139
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.").nullable()
|
|
140
|
-
})
|
|
140
|
+
}).passthrough()
|
|
141
141
|
});
|
|
142
142
|
//#endregion
|
|
143
143
|
export { peopledatalabsEnrichCompanyData };
|
|
@@ -1 +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.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.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.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.enum([\"educational\", \"government\", \"nonprofit\", \"private\", \"public\", \"public_subsidiary\"]).describe(\"Company type classification\");\nconst PeopledatalabsEnrichCompanyData_NAICSClassificationSchema = 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.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.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.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\").nullable(),\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\").nullable(),\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.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.\").nullable(),\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 requests.\",\n input: PeopledatalabsEnrichCompanyDataInput,\n output: PeopledatalabsEnrichCompanyDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjM,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAChK,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACjJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACnL,SAAS,E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AS;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,QAVmD,EAAE,OAAO;EAC5D,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACzL,CAOU;AACV,CAAC"}
|
|
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.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.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}).passthrough().describe(\"Standard Industrial Classification (SIC) code details\");\nconst PeopledatalabsEnrichCompanyData_CompanySizeSchema = 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.enum([\"educational\", \"government\", \"nonprofit\", \"private\", \"public\", \"public_subsidiary\"]).describe(\"Company type classification\");\nconst PeopledatalabsEnrichCompanyData_NAICSClassificationSchema = 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}).passthrough().describe(\"North American Industry Classification System (NAICS) code details\");\nconst PeopledatalabsEnrichCompanyData_CompanyLocationSchema = 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}).passthrough().describe(\"Company headquarters location details\");\nconst PeopledatalabsEnrichCompanyData_FundingStageSchema = 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.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\").nullable(),\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\").nullable(),\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.record(z.string(), z.unknown()).describe(\"Employee counts per country (includes 'other_uncategorized')\").nullable().optional(),\n}).passthrough().describe(\"Enriched company data fields returned by the API\");\nexport const PeopledatalabsEnrichCompanyDataOutput = 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.\").nullable(),\n}).passthrough();\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 requests.\",\n input: PeopledatalabsEnrichCompanyDataInput,\n output: PeopledatalabsEnrichCompanyDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjM,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAA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AAmD,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAM5E,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACzL,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -22,7 +22,7 @@ const PeopledatalabsEnrichIpData_IPLocationSchema = zod.z.object({
|
|
|
22
22
|
timezone: zod.z.string().describe("Lowercase timezone value").nullable(),
|
|
23
23
|
continent: zod.z.string().describe("Standardized continent name").nullable(),
|
|
24
24
|
postal_code: zod.z.string().describe("ZIP or postal code").nullable().optional()
|
|
25
|
-
}).describe("The geographic location associated with the IP address");
|
|
25
|
+
}).passthrough().describe("The geographic location associated with the IP address");
|
|
26
26
|
const PeopledatalabsEnrichIpData_IPMetadataSchema = zod.z.object({
|
|
27
27
|
tor: zod.z.boolean().describe("If the IP is a known Tor address").nullable(),
|
|
28
28
|
vpn: zod.z.boolean().describe("If the IP is a known VPN address").nullable(),
|
|
@@ -33,18 +33,18 @@ const PeopledatalabsEnrichIpData_IPMetadataSchema = zod.z.object({
|
|
|
33
33
|
service: zod.z.string().describe("Service name if identifiable, returns null if unknown").nullable().optional(),
|
|
34
34
|
version: zod.z.number().int().describe("IPv4 (4) or IPv6 (6) type indicator").nullable(),
|
|
35
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");
|
|
36
|
+
}).passthrough().describe("Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services");
|
|
37
37
|
const PeopledatalabsEnrichIpData_IPAddressSchema = zod.z.object({
|
|
38
38
|
address: zod.z.string().describe("The matched IP address after validation").nullable(),
|
|
39
39
|
location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),
|
|
40
40
|
metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional()
|
|
41
|
-
}).describe("IP address information with metadata and location details");
|
|
41
|
+
}).passthrough().describe("IP address information with metadata and location details");
|
|
42
42
|
const PeopledatalabsEnrichIpData_PersonSchema = zod.z.object({
|
|
43
43
|
confidence: zod.z.string().describe("Confidence level of the person match: very high, high, moderate, low, or very low").nullable().optional(),
|
|
44
44
|
job_title_role: zod.z.string().describe("The derived role of the person's current job title").nullable().optional(),
|
|
45
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
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");
|
|
47
|
+
}).passthrough().describe("Person information when an individual can be matched to the IP address");
|
|
48
48
|
const PeopledatalabsEnrichIpData_CompanyLocationSchema = zod.z.object({
|
|
49
49
|
geo: zod.z.string().describe("Geographic coordinates").nullable().optional(),
|
|
50
50
|
name: zod.z.string().describe("Formatted location name").nullable().optional(),
|
|
@@ -55,7 +55,7 @@ const PeopledatalabsEnrichIpData_CompanyLocationSchema = zod.z.object({
|
|
|
55
55
|
timezone: zod.z.string().describe("Timezone value").nullable().optional(),
|
|
56
56
|
continent: zod.z.string().describe("Continent name").nullable().optional(),
|
|
57
57
|
postal_code: zod.z.string().describe("ZIP or postal code").nullable().optional()
|
|
58
|
-
}).describe("Company headquarters location with full address details");
|
|
58
|
+
}).passthrough().describe("Company headquarters location with full address details");
|
|
59
59
|
const PeopledatalabsEnrichIpData_CompanySchema = zod.z.object({
|
|
60
60
|
id: zod.z.string().describe("People Data Labs unique company identifier").nullable().optional(),
|
|
61
61
|
name: zod.z.string().describe("Company name in lowercase format").nullable().optional(),
|
|
@@ -68,17 +68,17 @@ const PeopledatalabsEnrichIpData_CompanySchema = zod.z.object({
|
|
|
68
68
|
display_name: zod.z.string().describe("Properly formatted company name with correct capitalization").nullable().optional(),
|
|
69
69
|
employee_count: zod.z.number().int().describe("Current employee headcount").nullable().optional(),
|
|
70
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");
|
|
71
|
+
}).passthrough().describe("Company associated with the IP address, including headquarters location and business details");
|
|
72
72
|
const PeopledatalabsEnrichIpData_IPEnrichmentDataSchema = zod.z.object({
|
|
73
73
|
ip: PeopledatalabsEnrichIpData_IPAddressSchema.nullable(),
|
|
74
74
|
person: PeopledatalabsEnrichIpData_PersonSchema.nullable().optional(),
|
|
75
75
|
company: PeopledatalabsEnrichIpData_CompanySchema.nullable().optional(),
|
|
76
76
|
dataset_version: zod.z.string().describe("Release version identifier of the data build").nullable()
|
|
77
|
-
}).describe("Container for all response information including IP, company, person, and version data");
|
|
77
|
+
}).passthrough().describe("Container for all response information including IP, company, person, and version data");
|
|
78
78
|
const PeopledatalabsEnrichIpDataOutput = zod.z.object({
|
|
79
79
|
data: PeopledatalabsEnrichIpData_IPEnrichmentDataSchema.nullable(),
|
|
80
80
|
status: zod.z.number().int().describe("The API response code (200 for success, 404 for no match, 400 for unenrichable IPs)").nullable()
|
|
81
|
-
}).describe("Response from the IP Enrichment API");
|
|
81
|
+
}).passthrough().describe("Response from the IP Enrichment API");
|
|
82
82
|
const peopledatalabsEnrichIpData = require_action.action("PEOPLEDATALABS_ENRICH_IP_DATA", {
|
|
83
83
|
slug: "peopledatalabs-enrich-ip-data",
|
|
84
84
|
name: "Enrich IP Data",
|
|
@@ -1 +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.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.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'\").nullable(),\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\").nullable(),\n locality: z.string().describe(\"City or town name\").nullable().optional(),\n timezone: z.string().describe(\"Lowercase timezone value\").nullable(),\n continent: z.string().describe(\"Standardized continent name\").nullable(),\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.object({\n tor: z.boolean().describe(\"If the IP is a known Tor address\").nullable(),\n vpn: z.boolean().describe(\"If the IP is a known VPN address\").nullable(),\n proxy: z.boolean().describe(\"If the IP is a known proxy address\").nullable(),\n relay: z.boolean().describe(\"If the IP is a known relay address\").nullable(),\n mobile: z.boolean().describe(\"If the IP is a known mobile address\").nullable(),\n hosting: z.boolean().describe(\"If the IP is a known hosting address\").nullable(),\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\").nullable(),\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.object({\n address: z.string().describe(\"The matched IP address after validation\").nullable(),\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.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.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.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.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\").nullable(),\n}).describe(\"Container for all response information including IP, company, person, and version data\");\nexport const PeopledatalabsEnrichIpDataOutput = 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)\").nullable(),\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,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC1K,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACnK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iQAAiQ,CAAC,CAAC,SAAS;CAChT,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAC/K,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACpK,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC1M,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAA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EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
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.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.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'\").nullable(),\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\").nullable(),\n locality: z.string().describe(\"City or town name\").nullable().optional(),\n timezone: z.string().describe(\"Lowercase timezone value\").nullable(),\n continent: z.string().describe(\"Standardized continent name\").nullable(),\n postal_code: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n}).passthrough().describe(\"The geographic location associated with the IP address\");\nconst PeopledatalabsEnrichIpData_IPMetadataSchema = z.object({\n tor: z.boolean().describe(\"If the IP is a known Tor address\").nullable(),\n vpn: z.boolean().describe(\"If the IP is a known VPN address\").nullable(),\n proxy: z.boolean().describe(\"If the IP is a known proxy address\").nullable(),\n relay: z.boolean().describe(\"If the IP is a known relay address\").nullable(),\n mobile: z.boolean().describe(\"If the IP is a known mobile address\").nullable(),\n hosting: z.boolean().describe(\"If the IP is a known hosting address\").nullable(),\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\").nullable(),\n asn_domain: z.string().describe(\"The domain associated with the ASN block, returns null if unknown\").nullable().optional(),\n}).passthrough().describe(\"Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services\");\nconst PeopledatalabsEnrichIpData_IPAddressSchema = z.object({\n address: z.string().describe(\"The matched IP address after validation\").nullable(),\n location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),\n metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional(),\n}).passthrough().describe(\"IP address information with metadata and location details\");\nconst PeopledatalabsEnrichIpData_PersonSchema = 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}).passthrough().describe(\"Person information when an individual can be matched to the IP address\");\nconst PeopledatalabsEnrichIpData_CompanyLocationSchema = 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}).passthrough().describe(\"Company headquarters location with full address details\");\nconst PeopledatalabsEnrichIpData_CompanySchema = 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}).passthrough().describe(\"Company associated with the IP address, including headquarters location and business details\");\nconst PeopledatalabsEnrichIpData_IPEnrichmentDataSchema = 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\").nullable(),\n}).passthrough().describe(\"Container for all response information including IP, company, person, and version data\");\nexport const PeopledatalabsEnrichIpDataOutput = 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)\").nullable(),\n}).passthrough().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,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC1K,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACnK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iQAAiQ,CAAC,CAAC,SAAS;CAChT,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAC/K,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACpK,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAA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,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wFAAwF;AAClH,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAM,kDAAkD,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ declare const PeopledatalabsEnrichIpDataOutput: z.ZodObject<{
|
|
|
26
26
|
timezone: z.ZodNullable<z.ZodString>;
|
|
27
27
|
continent: z.ZodNullable<z.ZodString>;
|
|
28
28
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
31
|
tor: z.ZodNullable<z.ZodBoolean>;
|
|
32
32
|
vpn: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -37,14 +37,14 @@ declare const PeopledatalabsEnrichIpDataOutput: z.ZodObject<{
|
|
|
37
37
|
service: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
version: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
asn_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
43
|
confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
job_title_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
job_title_levels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
46
46
|
job_title_sub_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
48
|
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
49
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -62,16 +62,16 @@ declare const PeopledatalabsEnrichIpDataOutput: z.ZodObject<{
|
|
|
62
62
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
63
|
continent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
}, z.core.$
|
|
65
|
+
}, z.core.$loose>>>;
|
|
66
66
|
confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
68
|
employee_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
69
|
inferred_revenue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
}, z.core.$
|
|
70
|
+
}, z.core.$loose>>>;
|
|
71
71
|
dataset_version: z.ZodNullable<z.ZodString>;
|
|
72
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
73
|
status: z.ZodNullable<z.ZodNumber>;
|
|
74
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$loose>;
|
|
75
75
|
declare const peopledatalabsEnrichIpData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
76
76
|
ip: string;
|
|
77
77
|
pretty?: boolean | undefined;
|
|
@@ -26,7 +26,7 @@ declare const PeopledatalabsEnrichIpDataOutput: z.ZodObject<{
|
|
|
26
26
|
timezone: z.ZodNullable<z.ZodString>;
|
|
27
27
|
continent: z.ZodNullable<z.ZodString>;
|
|
28
28
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
31
|
tor: z.ZodNullable<z.ZodBoolean>;
|
|
32
32
|
vpn: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -37,14 +37,14 @@ declare const PeopledatalabsEnrichIpDataOutput: z.ZodObject<{
|
|
|
37
37
|
service: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
version: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
asn_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
43
|
confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
job_title_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
job_title_levels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
46
46
|
job_title_sub_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
48
|
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
49
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -62,16 +62,16 @@ declare const PeopledatalabsEnrichIpDataOutput: z.ZodObject<{
|
|
|
62
62
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
63
|
continent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
}, z.core.$
|
|
65
|
+
}, z.core.$loose>>>;
|
|
66
66
|
confidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
68
|
employee_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
69
|
inferred_revenue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
}, z.core.$
|
|
70
|
+
}, z.core.$loose>>>;
|
|
71
71
|
dataset_version: z.ZodNullable<z.ZodString>;
|
|
72
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
73
|
status: z.ZodNullable<z.ZodNumber>;
|
|
74
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$loose>;
|
|
75
75
|
declare const peopledatalabsEnrichIpData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
76
76
|
ip: string;
|
|
77
77
|
pretty?: boolean | undefined;
|
|
@@ -22,7 +22,7 @@ const PeopledatalabsEnrichIpData_IPLocationSchema = z.object({
|
|
|
22
22
|
timezone: z.string().describe("Lowercase timezone value").nullable(),
|
|
23
23
|
continent: z.string().describe("Standardized continent name").nullable(),
|
|
24
24
|
postal_code: z.string().describe("ZIP or postal code").nullable().optional()
|
|
25
|
-
}).describe("The geographic location associated with the IP address");
|
|
25
|
+
}).passthrough().describe("The geographic location associated with the IP address");
|
|
26
26
|
const PeopledatalabsEnrichIpData_IPMetadataSchema = z.object({
|
|
27
27
|
tor: z.boolean().describe("If the IP is a known Tor address").nullable(),
|
|
28
28
|
vpn: z.boolean().describe("If the IP is a known VPN address").nullable(),
|
|
@@ -33,18 +33,18 @@ const PeopledatalabsEnrichIpData_IPMetadataSchema = z.object({
|
|
|
33
33
|
service: z.string().describe("Service name if identifiable, returns null if unknown").nullable().optional(),
|
|
34
34
|
version: z.number().int().describe("IPv4 (4) or IPv6 (6) type indicator").nullable(),
|
|
35
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");
|
|
36
|
+
}).passthrough().describe("Premium add-on fields for identifying mobile, hosting, proxy, Tor, VPN, and relay services");
|
|
37
37
|
const PeopledatalabsEnrichIpData_IPAddressSchema = z.object({
|
|
38
38
|
address: z.string().describe("The matched IP address after validation").nullable(),
|
|
39
39
|
location: PeopledatalabsEnrichIpData_IPLocationSchema.nullable(),
|
|
40
40
|
metadata: PeopledatalabsEnrichIpData_IPMetadataSchema.nullable().optional()
|
|
41
|
-
}).describe("IP address information with metadata and location details");
|
|
41
|
+
}).passthrough().describe("IP address information with metadata and location details");
|
|
42
42
|
const PeopledatalabsEnrichIpData_PersonSchema = z.object({
|
|
43
43
|
confidence: z.string().describe("Confidence level of the person match: very high, high, moderate, low, or very low").nullable().optional(),
|
|
44
44
|
job_title_role: z.string().describe("The derived role of the person's current job title").nullable().optional(),
|
|
45
45
|
job_title_levels: z.array(z.string()).describe("The derived hierarchical level(s) of the person's current job title").nullable().optional(),
|
|
46
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");
|
|
47
|
+
}).passthrough().describe("Person information when an individual can be matched to the IP address");
|
|
48
48
|
const PeopledatalabsEnrichIpData_CompanyLocationSchema = z.object({
|
|
49
49
|
geo: z.string().describe("Geographic coordinates").nullable().optional(),
|
|
50
50
|
name: z.string().describe("Formatted location name").nullable().optional(),
|
|
@@ -55,7 +55,7 @@ const PeopledatalabsEnrichIpData_CompanyLocationSchema = z.object({
|
|
|
55
55
|
timezone: z.string().describe("Timezone value").nullable().optional(),
|
|
56
56
|
continent: z.string().describe("Continent name").nullable().optional(),
|
|
57
57
|
postal_code: z.string().describe("ZIP or postal code").nullable().optional()
|
|
58
|
-
}).describe("Company headquarters location with full address details");
|
|
58
|
+
}).passthrough().describe("Company headquarters location with full address details");
|
|
59
59
|
const PeopledatalabsEnrichIpData_CompanySchema = z.object({
|
|
60
60
|
id: z.string().describe("People Data Labs unique company identifier").nullable().optional(),
|
|
61
61
|
name: z.string().describe("Company name in lowercase format").nullable().optional(),
|
|
@@ -68,13 +68,13 @@ const PeopledatalabsEnrichIpData_CompanySchema = z.object({
|
|
|
68
68
|
display_name: z.string().describe("Properly formatted company name with correct capitalization").nullable().optional(),
|
|
69
69
|
employee_count: z.number().int().describe("Current employee headcount").nullable().optional(),
|
|
70
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");
|
|
71
|
+
}).passthrough().describe("Company associated with the IP address, including headquarters location and business details");
|
|
72
72
|
const PeopledatalabsEnrichIpData_IPEnrichmentDataSchema = z.object({
|
|
73
73
|
ip: PeopledatalabsEnrichIpData_IPAddressSchema.nullable(),
|
|
74
74
|
person: PeopledatalabsEnrichIpData_PersonSchema.nullable().optional(),
|
|
75
75
|
company: PeopledatalabsEnrichIpData_CompanySchema.nullable().optional(),
|
|
76
76
|
dataset_version: z.string().describe("Release version identifier of the data build").nullable()
|
|
77
|
-
}).describe("Container for all response information including IP, company, person, and version data");
|
|
77
|
+
}).passthrough().describe("Container for all response information including IP, company, person, and version data");
|
|
78
78
|
const peopledatalabsEnrichIpData = action("PEOPLEDATALABS_ENRICH_IP_DATA", {
|
|
79
79
|
slug: "peopledatalabs-enrich-ip-data",
|
|
80
80
|
name: "Enrich IP Data",
|
|
@@ -83,7 +83,7 @@ const peopledatalabsEnrichIpData = action("PEOPLEDATALABS_ENRICH_IP_DATA", {
|
|
|
83
83
|
output: z.object({
|
|
84
84
|
data: PeopledatalabsEnrichIpData_IPEnrichmentDataSchema.nullable(),
|
|
85
85
|
status: z.number().int().describe("The API response code (200 for success, 404 for no match, 400 for unenrichable IPs)").nullable()
|
|
86
|
-
}).describe("Response from the IP Enrichment API")
|
|
86
|
+
}).passthrough().describe("Response from the IP Enrichment API")
|
|
87
87
|
});
|
|
88
88
|
//#endregion
|
|
89
89
|
export { peopledatalabsEnrichIpData };
|