@keystrokehq/gender_api 0.1.1 → 0.1.2

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.
Files changed (55) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-country-of-origin-v1.cjs +14 -14
  4. package/dist/actions/get-country-of-origin-v1.cjs.map +1 -1
  5. package/dist/actions/get-country-of-origin-v1.d.cts +15 -31
  6. package/dist/actions/get-country-of-origin-v1.d.mts +15 -31
  7. package/dist/actions/get-country-of-origin-v1.mjs +14 -14
  8. package/dist/actions/get-country-of-origin-v1.mjs.map +1 -1
  9. package/dist/actions/get-country-of-origin.cjs +17 -17
  10. package/dist/actions/get-country-of-origin.cjs.map +1 -1
  11. package/dist/actions/get-country-of-origin.d.cts +18 -56
  12. package/dist/actions/get-country-of-origin.d.mts +18 -56
  13. package/dist/actions/get-country-of-origin.mjs +17 -17
  14. package/dist/actions/get-country-of-origin.mjs.map +1 -1
  15. package/dist/actions/get-statistic.d.cts +1 -12
  16. package/dist/actions/get-statistic.d.cts.map +1 -1
  17. package/dist/actions/get-statistic.d.mts +1 -12
  18. package/dist/actions/get-statistic.d.mts.map +1 -1
  19. package/dist/actions/query-by-email-address-multiple.cjs +19 -19
  20. package/dist/actions/query-by-email-address-multiple.cjs.map +1 -1
  21. package/dist/actions/query-by-email-address-multiple.d.cts +19 -46
  22. package/dist/actions/query-by-email-address-multiple.d.mts +19 -46
  23. package/dist/actions/query-by-email-address-multiple.mjs +19 -19
  24. package/dist/actions/query-by-email-address-multiple.mjs.map +1 -1
  25. package/dist/actions/query-by-email-address.cjs +13 -13
  26. package/dist/actions/query-by-email-address.cjs.map +1 -1
  27. package/dist/actions/query-by-email-address.d.cts +13 -34
  28. package/dist/actions/query-by-email-address.d.mts +13 -34
  29. package/dist/actions/query-by-email-address.mjs +13 -13
  30. package/dist/actions/query-by-email-address.mjs.map +1 -1
  31. package/dist/actions/query-by-first-name.cjs +11 -11
  32. package/dist/actions/query-by-first-name.cjs.map +1 -1
  33. package/dist/actions/query-by-first-name.d.cts +11 -30
  34. package/dist/actions/query-by-first-name.d.mts +11 -30
  35. package/dist/actions/query-by-first-name.mjs +11 -11
  36. package/dist/actions/query-by-first-name.mjs.map +1 -1
  37. package/dist/actions/query-by-full-name.cjs +12 -12
  38. package/dist/actions/query-by-full-name.cjs.map +1 -1
  39. package/dist/actions/query-by-full-name.d.cts +12 -32
  40. package/dist/actions/query-by-full-name.d.mts +12 -32
  41. package/dist/actions/query-by-full-name.mjs +12 -12
  42. package/dist/actions/query-by-full-name.mjs.map +1 -1
  43. package/dist/actions/query-gender-by-first-name-multiple.cjs +11 -11
  44. package/dist/actions/query-gender-by-first-name-multiple.cjs.map +1 -1
  45. package/dist/actions/query-gender-by-first-name-multiple.d.cts +11 -32
  46. package/dist/actions/query-gender-by-first-name-multiple.d.mts +11 -32
  47. package/dist/actions/query-gender-by-first-name-multiple.mjs +11 -11
  48. package/dist/actions/query-gender-by-first-name-multiple.mjs.map +1 -1
  49. package/dist/actions/query-gender-by-full-name-multiple.cjs +12 -12
  50. package/dist/actions/query-gender-by-full-name-multiple.cjs.map +1 -1
  51. package/dist/actions/query-gender-by-full-name-multiple.d.cts +12 -34
  52. package/dist/actions/query-gender-by-full-name-multiple.d.mts +12 -34
  53. package/dist/actions/query-gender-by-full-name-multiple.mjs +12 -12
  54. package/dist/actions/query-gender-by-full-name-multiple.mjs.map +1 -1
  55. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["genderApi","executeGenderApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return genderApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGenderApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["genderApi","executeGenderApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return genderApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGenderApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return genderApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGenderApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return genderApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGenderApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -3,22 +3,22 @@ let zod = require("zod");
3
3
  //#region src/actions/get-country-of-origin-v1.ts
4
4
  const GenderApiGetCountryOfOriginV1Input = zod.z.object({ name: zod.z.string().describe("First name to query country of origin for. Must contain at least one non-space character.") }).describe("Request model for retrieving country of origin using v1 simple API.");
5
5
  const GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = zod.z.object({
6
- country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Two-letter ISO country code (e.g., 'AT', 'US').").optional()),
7
- probability: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Probability score for this country (0.0 to 1.0).").optional()),
8
- country_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the country (e.g., 'Austria', 'United States').").optional()),
9
- continental_region: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Continental region (e.g., 'Europe', 'Asia', 'Americas').").optional()),
10
- statistical_region: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Statistical region (e.g., 'Western Europe', 'Eastern Asia').").optional())
6
+ country: zod.z.string().describe("Two-letter ISO country code (e.g., 'AT', 'US').").nullable().optional(),
7
+ probability: zod.z.number().describe("Probability score for this country (0.0 to 1.0).").nullable().optional(),
8
+ country_name: zod.z.string().describe("Full name of the country (e.g., 'Austria', 'United States').").nullable().optional(),
9
+ continental_region: zod.z.string().describe("Continental region (e.g., 'Europe', 'Asia', 'Americas').").nullable().optional(),
10
+ statistical_region: zod.z.string().describe("Statistical region (e.g., 'Western Europe', 'Eastern Asia').").nullable().optional()
11
11
  }).describe("Model for individual country of origin item.");
12
12
  const GenderApiGetCountryOfOriginV1Output = zod.z.object({
13
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The name that was queried (lowercase).").optional()),
14
- gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The predicted gender for the name (e.g., 'male', 'female').").optional()),
15
- samples: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of samples used for the prediction.").optional()),
16
- accuracy: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Accuracy percentage (0-100).").optional()),
17
- duration: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Duration of the API request (e.g., '60ms').").optional()),
18
- credits_used: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of API credits used for this request.").optional()),
19
- name_sanitized: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The sanitized/capitalized version of the name.").optional()),
20
- country_of_origin: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe("List of possible countries of origin with probability scores, ordered by likelihood.").optional()),
21
- country_of_origin_map_url: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL to a visual map showing the country distribution.").optional())
13
+ name: zod.z.string().describe("The name that was queried (lowercase).").nullable().optional(),
14
+ gender: zod.z.string().describe("The predicted gender for the name (e.g., 'male', 'female').").nullable().optional(),
15
+ samples: zod.z.number().int().describe("Number of samples used for the prediction.").nullable().optional(),
16
+ accuracy: zod.z.number().int().describe("Accuracy percentage (0-100).").nullable().optional(),
17
+ duration: zod.z.string().describe("Duration of the API request (e.g., '60ms').").nullable().optional(),
18
+ credits_used: zod.z.number().int().describe("Number of API credits used for this request.").nullable().optional(),
19
+ name_sanitized: zod.z.string().describe("The sanitized/capitalized version of the name.").nullable().optional(),
20
+ country_of_origin: zod.z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe("List of possible countries of origin with probability scores, ordered by likelihood.").nullable().optional(),
21
+ country_of_origin_map_url: zod.z.string().describe("URL to a visual map showing the country distribution.").nullable().optional()
22
22
  }).describe("Response model from gender-api.com v1 country of origin endpoint.");
23
23
  const genderApiGetCountryOfOriginV1 = require_action.action("GENDER_API_GET_COUNTRY_OF_ORIGIN_V1", {
24
24
  slug: "gender_api-get-country-of-origin-v1",
@@ -1 +1 @@
1
- {"version":3,"file":"get-country-of-origin-v1.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Probability score for this country (0.0 to 1.0).\").optional()),\n country_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").optional()),\n continental_region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").optional()),\n statistical_region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").optional()),\n}).describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The name that was queried (lowercase).\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").optional()),\n samples: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of samples used for the prediction.\").optional()),\n accuracy: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Accuracy percentage (0-100).\").optional()),\n duration: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Duration of the API request (e.g., '60ms').\").optional()),\n credits_used: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of API credits used for this request.\").optional()),\n name_sanitized: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The sanitized/capitalized version of the name.\").optional()),\n country_of_origin: z.preprocess((value) => (value === null ? undefined : value), z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").optional()),\n country_of_origin_map_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to a visual map showing the country distribution.\").optional()),\n}).describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1 = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN_V1\", {\n slug: \"gender_api-get-country-of-origin-v1\",\n name: \"Get Country of Origin (v1)\",\n description: \"Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.\",\n input: GenderApiGetCountryOfOriginV1Input,\n output: GenderApiGetCountryOfOriginV1Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CACxJ,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CAC7J,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC;CAC1K,oBAAoBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DA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AAS,CAAC;CAC9J,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC;CAC3P,2BAA2BA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC;AAClL,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,gCAAgCC,eAAAA,OAAO,uCAAuC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-country-of-origin-v1.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").nullable().optional(),\n probability: z.number().describe(\"Probability score for this country (0.0 to 1.0).\").nullable().optional(),\n country_name: z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").nullable().optional(),\n continental_region: z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").nullable().optional(),\n}).describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1 = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN_V1\", {\n slug: \"gender_api-get-country-of-origin-v1\",\n name: \"Get Country of Origin (v1)\",\n description: \"Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.\",\n input: GenderApiGetCountryOfOriginV1Input,\n output: GenderApiGetCountryOfOriginV1Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,oBAAoBA,IAAAA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CAAC"}
@@ -5,41 +5,25 @@ declare const GenderApiGetCountryOfOriginV1Input: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const GenderApiGetCountryOfOriginV1Output: z.ZodObject<{
8
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- samples: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
- accuracy: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
- duration: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- credits_used: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
- name_sanitized: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- country_of_origin: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
16
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- country_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- continental_region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- statistical_region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ samples: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ accuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ credits_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ name_sanitized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ country_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ continental_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ statistical_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  }, z.core.$strip>>>>;
22
- country_of_origin_map_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ country_of_origin_map_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  }, z.core.$strip>;
24
24
  declare const genderApiGetCountryOfOriginV1: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  name: string;
26
- }, {
27
- name?: string | undefined;
28
- gender?: string | undefined;
29
- samples?: number | undefined;
30
- accuracy?: number | undefined;
31
- duration?: string | undefined;
32
- credits_used?: number | undefined;
33
- name_sanitized?: string | undefined;
34
- country_of_origin?: {
35
- country?: string | undefined;
36
- probability?: number | undefined;
37
- country_name?: string | undefined;
38
- continental_region?: string | undefined;
39
- statistical_region?: string | undefined;
40
- }[] | undefined;
41
- country_of_origin_map_url?: string | undefined;
42
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
27
  //#endregion
44
28
  export { genderApiGetCountryOfOriginV1 };
45
29
  //# sourceMappingURL=get-country-of-origin-v1.d.cts.map
@@ -5,41 +5,25 @@ declare const GenderApiGetCountryOfOriginV1Input: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const GenderApiGetCountryOfOriginV1Output: z.ZodObject<{
8
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- samples: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
- accuracy: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
- duration: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- credits_used: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
- name_sanitized: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- country_of_origin: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
16
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- country_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- continental_region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- statistical_region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ samples: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ accuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ credits_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ name_sanitized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ country_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ continental_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ statistical_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  }, z.core.$strip>>>>;
22
- country_of_origin_map_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ country_of_origin_map_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  }, z.core.$strip>;
24
24
  declare const genderApiGetCountryOfOriginV1: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  name: string;
26
- }, {
27
- name?: string | undefined;
28
- gender?: string | undefined;
29
- samples?: number | undefined;
30
- accuracy?: number | undefined;
31
- duration?: string | undefined;
32
- credits_used?: number | undefined;
33
- name_sanitized?: string | undefined;
34
- country_of_origin?: {
35
- country?: string | undefined;
36
- probability?: number | undefined;
37
- country_name?: string | undefined;
38
- continental_region?: string | undefined;
39
- statistical_region?: string | undefined;
40
- }[] | undefined;
41
- country_of_origin_map_url?: string | undefined;
42
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
27
  //#endregion
44
28
  export { genderApiGetCountryOfOriginV1 };
45
29
  //# sourceMappingURL=get-country-of-origin-v1.d.mts.map
@@ -3,11 +3,11 @@ import { z } from "zod";
3
3
  //#region src/actions/get-country-of-origin-v1.ts
4
4
  const GenderApiGetCountryOfOriginV1Input = z.object({ name: z.string().describe("First name to query country of origin for. Must contain at least one non-space character.") }).describe("Request model for retrieving country of origin using v1 simple API.");
5
5
  const GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({
6
- country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Two-letter ISO country code (e.g., 'AT', 'US').").optional()),
7
- probability: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Probability score for this country (0.0 to 1.0).").optional()),
8
- country_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the country (e.g., 'Austria', 'United States').").optional()),
9
- continental_region: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Continental region (e.g., 'Europe', 'Asia', 'Americas').").optional()),
10
- statistical_region: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Statistical region (e.g., 'Western Europe', 'Eastern Asia').").optional())
6
+ country: z.string().describe("Two-letter ISO country code (e.g., 'AT', 'US').").nullable().optional(),
7
+ probability: z.number().describe("Probability score for this country (0.0 to 1.0).").nullable().optional(),
8
+ country_name: z.string().describe("Full name of the country (e.g., 'Austria', 'United States').").nullable().optional(),
9
+ continental_region: z.string().describe("Continental region (e.g., 'Europe', 'Asia', 'Americas').").nullable().optional(),
10
+ statistical_region: z.string().describe("Statistical region (e.g., 'Western Europe', 'Eastern Asia').").nullable().optional()
11
11
  }).describe("Model for individual country of origin item.");
12
12
  const genderApiGetCountryOfOriginV1 = action("GENDER_API_GET_COUNTRY_OF_ORIGIN_V1", {
13
13
  slug: "gender_api-get-country-of-origin-v1",
@@ -15,15 +15,15 @@ const genderApiGetCountryOfOriginV1 = action("GENDER_API_GET_COUNTRY_OF_ORIGIN_V
15
15
  description: "Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.",
16
16
  input: GenderApiGetCountryOfOriginV1Input,
17
17
  output: z.object({
18
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The name that was queried (lowercase).").optional()),
19
- gender: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The predicted gender for the name (e.g., 'male', 'female').").optional()),
20
- samples: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of samples used for the prediction.").optional()),
21
- accuracy: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Accuracy percentage (0-100).").optional()),
22
- duration: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Duration of the API request (e.g., '60ms').").optional()),
23
- credits_used: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of API credits used for this request.").optional()),
24
- name_sanitized: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The sanitized/capitalized version of the name.").optional()),
25
- country_of_origin: z.preprocess((value) => value === null ? void 0 : value, z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe("List of possible countries of origin with probability scores, ordered by likelihood.").optional()),
26
- country_of_origin_map_url: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL to a visual map showing the country distribution.").optional())
18
+ name: z.string().describe("The name that was queried (lowercase).").nullable().optional(),
19
+ gender: z.string().describe("The predicted gender for the name (e.g., 'male', 'female').").nullable().optional(),
20
+ samples: z.number().int().describe("Number of samples used for the prediction.").nullable().optional(),
21
+ accuracy: z.number().int().describe("Accuracy percentage (0-100).").nullable().optional(),
22
+ duration: z.string().describe("Duration of the API request (e.g., '60ms').").nullable().optional(),
23
+ credits_used: z.number().int().describe("Number of API credits used for this request.").nullable().optional(),
24
+ name_sanitized: z.string().describe("The sanitized/capitalized version of the name.").nullable().optional(),
25
+ country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe("List of possible countries of origin with probability scores, ordered by likelihood.").nullable().optional(),
26
+ country_of_origin_map_url: z.string().describe("URL to a visual map showing the country distribution.").nullable().optional()
27
27
  }).describe("Response model from gender-api.com v1 country of origin endpoint.")
28
28
  });
29
29
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-country-of-origin-v1.mjs","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Probability score for this country (0.0 to 1.0).\").optional()),\n country_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").optional()),\n continental_region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").optional()),\n statistical_region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").optional()),\n}).describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The name that was queried (lowercase).\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").optional()),\n samples: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of samples used for the prediction.\").optional()),\n accuracy: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Accuracy percentage (0-100).\").optional()),\n duration: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Duration of the API request (e.g., '60ms').\").optional()),\n credits_used: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of API credits used for this request.\").optional()),\n name_sanitized: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The sanitized/capitalized version of the name.\").optional()),\n country_of_origin: z.preprocess((value) => (value === null ? undefined : value), z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").optional()),\n country_of_origin_map_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to a visual map showing the country distribution.\").optional()),\n}).describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1 = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN_V1\", {\n slug: \"gender_api-get-country-of-origin-v1\",\n name: \"Get Country of Origin (v1)\",\n description: \"Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.\",\n input: GenderApiGetCountryOfOriginV1Input,\n output: GenderApiGetCountryOfOriginV1Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwD,EAAE,OAAO;CACrE,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO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E,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;EACrJ,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;EAChK,gBAAgB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;EAC9J,mBAAmB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC;EAC3P,2BAA2B,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC;CAClL,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-country-of-origin-v1.mjs","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").nullable().optional(),\n probability: z.number().describe(\"Probability score for this country (0.0 to 1.0).\").nullable().optional(),\n country_name: z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").nullable().optional(),\n continental_region: z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").nullable().optional(),\n}).describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1 = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN_V1\", {\n slug: \"gender_api-get-country-of-origin-v1\",\n name: \"Get Country of Origin (v1)\",\n description: \"Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.\",\n input: GenderApiGetCountryOfOriginV1Input,\n output: GenderApiGetCountryOfOriginV1Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwD,EAAE,OAAO;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8D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C,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
@@ -8,17 +8,17 @@ const GenderApiGetCountryOfOriginInput = zod.z.object({
8
8
  first_name: zod.z.string().describe("First name to query. Required if full_name and email are not provided.").optional()
9
9
  }).describe("Request model for retrieving a name's country of origin.\nProvide exactly one of first_name, full_name, or email.");
10
10
  const GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = zod.z.object({
11
- id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Client-defined request ID for correlation (max 50 chars).").optional()),
12
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address to query; can be provided instead of first_name.").optional()),
13
- full_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name to query; can be provided instead of first_name.").optional()),
14
- first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name to query. Required if full_name and email are not provided.").optional())
11
+ id: zod.z.string().describe("Client-defined request ID for correlation (max 50 chars).").nullable().optional(),
12
+ email: zod.z.string().describe("Email address to query; can be provided instead of first_name.").nullable().optional(),
13
+ full_name: zod.z.string().describe("Full name to query; can be provided instead of first_name.").nullable().optional(),
14
+ first_name: zod.z.string().describe("First name to query. Required if full_name and email are not provided.").nullable().optional()
15
15
  }).describe("Request model for retrieving a name's country of origin.\nProvide exactly one of first_name, full_name, or email.");
16
16
  const GenderApiGetCountryOfOrigin_DetailsSchema = zod.z.object({
17
- country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Single best-guess country.").optional()),
17
+ country: zod.z.string().describe("Single best-guess country.").nullable().optional(),
18
18
  samples: zod.z.number().int().describe("Count of matching records used.").nullable(),
19
19
  duration: zod.z.string().describe("Server processing time.").nullable(),
20
20
  credits_used: zod.z.number().int().describe("Number of requests charged for this query.").nullable(),
21
- first_name_sanitized: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Normalized version of the name.").optional())
21
+ first_name_sanitized: zod.z.string().describe("Normalized version of the name.").nullable().optional()
22
22
  });
23
23
  const GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = zod.z.object({
24
24
  id: zod.z.string().describe("Identifier of the ethnic group.").nullable(),
@@ -26,29 +26,29 @@ const GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = zod.z.object
26
26
  percentage: zod.z.number().describe("Percentage share of this ethnic group.").nullable()
27
27
  });
28
28
  const GenderApiGetCountryOfOrigin_EthnicitySchema = zod.z.object({
29
- id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Primary ethnic group identifier.").optional()),
30
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Primary ethnic group name.").optional()),
31
- distribution: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe("Distribution across ethnic groups.").optional())
29
+ id: zod.z.string().describe("Primary ethnic group identifier.").nullable().optional(),
30
+ name: zod.z.string().describe("Primary ethnic group name.").nullable().optional(),
31
+ distribution: zod.z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe("Distribution across ethnic groups.").nullable().optional()
32
32
  });
33
33
  const GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = zod.z.object({
34
34
  country: zod.z.string().describe("ISO country code.").nullable(),
35
35
  probability: zod.z.number().describe("Probability score for this country's origin.").nullable(),
36
36
  country_name: zod.z.string().describe("Full country name.").nullable(),
37
- continental_region: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Continental region name.").optional()),
38
- statistical_region: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Statistical sub-region name.").optional())
37
+ continental_region: zod.z.string().describe("Continental region name.").nullable().optional(),
38
+ statistical_region: zod.z.string().describe("Statistical sub-region name.").nullable().optional()
39
39
  });
40
40
  const GenderApiGetCountryOfOriginOutput = zod.z.object({
41
41
  input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),
42
- gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Detected gender: male, female, or unknown.").optional()),
42
+ gender: zod.z.string().describe("Detected gender: male, female, or unknown.").nullable().optional(),
43
43
  details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),
44
- meaning: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Short description of the name's meaning.").optional()),
45
- ethnicity: zod.z.preprocess((value) => value === null ? void 0 : value, GenderApiGetCountryOfOrigin_EthnicitySchema.optional()),
46
- last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name extracted from full_name or email, if provided.").optional()),
47
- first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name used for analysis.").optional()),
44
+ meaning: zod.z.string().describe("Short description of the name's meaning.").nullable().optional(),
45
+ ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),
46
+ last_name: zod.z.string().describe("Last name extracted from full_name or email, if provided.").nullable().optional(),
47
+ first_name: zod.z.string().describe("First name used for analysis.").nullable().optional(),
48
48
  probability: zod.z.number().describe("Overall reliability score (0-1).").nullable(),
49
49
  result_found: zod.z.boolean().describe("Whether a result was found.").nullable(),
50
50
  country_of_origin: zod.z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe("Top 25 likely countries of origin."),
51
- language_of_origin: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Likely language of origin.").optional()),
51
+ language_of_origin: zod.z.string().describe("Likely language of origin.").nullable().optional(),
52
52
  country_of_origin_map_url: zod.z.string().describe("URL to interactive map for this name.").nullable()
53
53
  });
54
54
  const genderApiGetCountryOfOrigin = require_action.action("GENDER_API_GET_COUNTRY_OF_ORIGIN", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-country-of-origin.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginInput = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional()),\n full_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional()),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_DetailsSchema = z.object({\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Single best-guess country.\").optional()),\n samples: z.number().int().describe(\"Count of matching records used.\").nullable(),\n duration: z.string().describe(\"Server processing time.\").nullable(),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\").nullable(),\n first_name_sanitized: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Normalized version of the name.\").optional()),\n});\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\").nullable(),\n name: z.string().describe(\"Name of the ethnic group.\").nullable(),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\").nullable(),\n});\nconst GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Primary ethnic group identifier.\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Primary ethnic group name.\").optional()),\n distribution: z.preprocess((value) => (value === null ? undefined : value), z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe(\"Distribution across ethnic groups.\").optional()),\n});\nconst GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({\n country: z.string().describe(\"ISO country code.\").nullable(),\n probability: z.number().describe(\"Probability score for this country's origin.\").nullable(),\n country_name: z.string().describe(\"Full country name.\").nullable(),\n continental_region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Continental region name.\").optional()),\n statistical_region: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Statistical sub-region name.\").optional()),\n});\nexport const GenderApiGetCountryOfOriginOutput = z.object({\n input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Detected gender: male, female, or unknown.\").optional()),\n details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),\n meaning: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Short description of the name's meaning.\").optional()),\n ethnicity: z.preprocess((value) => (value === null ? undefined : value), GenderApiGetCountryOfOrigin_EthnicitySchema.optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name extracted from full_name or email, if provided.\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name used for analysis.\").optional()),\n probability: z.number().describe(\"Overall reliability score (0-1).\").nullable(),\n result_found: z.boolean().describe(\"Whether a result was found.\").nullable(),\n country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe(\"Top 25 likely countries of origin.\"),\n language_of_origin: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Likely language of origin.\").optional()),\n country_of_origin_map_url: z.string().describe(\"URL to interactive map for this name.\").nullable(),\n});\n\nexport const genderApiGetCountryOfOrigin = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN\", {\n slug: \"gender_api-get-country-of-origin\",\n name: \"Get Country of Origin\",\n description: \"Tool to retrieve a name's likely countries of origin. Use after confirming the name identifier.\",\n input: GenderApiGetCountryOfOriginInput,\n output: GenderApiGetCountryOfOriginOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAM,uEAAuEA,IAAAA,EAAE,OAAO;CACpF,IAAIA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CAC7J,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC;CACrK,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC;CACrK,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC;AACpL,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACz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,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,mBAAmBA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oCAAoC;CAC/H,oBAAoBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;CAC9I,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACnG,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-country-of-origin.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginInput = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").nullable().optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").nullable().optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").nullable().optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_DetailsSchema = z.object({\n country: z.string().describe(\"Single best-guess country.\").nullable().optional(),\n samples: z.number().int().describe(\"Count of matching records used.\").nullable(),\n duration: z.string().describe(\"Server processing time.\").nullable(),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Normalized version of the name.\").nullable().optional(),\n});\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\").nullable(),\n name: z.string().describe(\"Name of the ethnic group.\").nullable(),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\").nullable(),\n});\nconst GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({\n id: z.string().describe(\"Primary ethnic group identifier.\").nullable().optional(),\n name: z.string().describe(\"Primary ethnic group name.\").nullable().optional(),\n distribution: z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe(\"Distribution across ethnic groups.\").nullable().optional(),\n});\nconst GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({\n country: z.string().describe(\"ISO country code.\").nullable(),\n probability: z.number().describe(\"Probability score for this country's origin.\").nullable(),\n country_name: z.string().describe(\"Full country name.\").nullable(),\n continental_region: z.string().describe(\"Continental region name.\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical sub-region name.\").nullable().optional(),\n});\nexport const GenderApiGetCountryOfOriginOutput = z.object({\n input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),\n gender: z.string().describe(\"Detected gender: male, female, or unknown.\").nullable().optional(),\n details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),\n meaning: z.string().describe(\"Short description of the name's meaning.\").nullable().optional(),\n ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted from full_name or email, if provided.\").nullable().optional(),\n first_name: z.string().describe(\"First name used for analysis.\").nullable().optional(),\n probability: z.number().describe(\"Overall reliability score (0-1).\").nullable(),\n result_found: z.boolean().describe(\"Whether a result was found.\").nullable(),\n country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe(\"Top 25 likely countries of origin.\"),\n language_of_origin: z.string().describe(\"Likely language of origin.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to interactive map for this name.\").nullable(),\n});\n\nexport const genderApiGetCountryOfOrigin = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN\", {\n slug: \"gender_api-get-country-of-origin\",\n name: \"Get Country of Origin\",\n description: \"Tool to retrieve a name's likely countries of origin. Use after confirming the name identifier.\",\n input: GenderApiGetCountryOfOriginInput,\n output: GenderApiGetCountryOfOriginOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAM,uEAAuEA,IAAAA,EAAE,OAAO;CACpF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC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C9E,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,mBAAmBA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oCAAoC;CAC/H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACnG,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,41 +9,41 @@ declare const GenderApiGetCountryOfOriginInput: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  declare const GenderApiGetCountryOfOriginOutput: z.ZodObject<{
11
11
  input: z.ZodNullable<z.ZodObject<{
12
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- full_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  }, z.core.$strip>>;
17
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  details: z.ZodNullable<z.ZodObject<{
19
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  samples: z.ZodNullable<z.ZodNumber>;
21
21
  duration: z.ZodNullable<z.ZodString>;
22
22
  credits_used: z.ZodNullable<z.ZodNumber>;
23
- first_name_sanitized: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
+ first_name_sanitized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  }, z.core.$strip>>;
25
- meaning: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- ethnicity: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
27
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
- distribution: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ meaning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ ethnicity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ distribution: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
30
  id: z.ZodNullable<z.ZodString>;
31
31
  name: z.ZodNullable<z.ZodString>;
32
32
  percentage: z.ZodNullable<z.ZodNumber>;
33
33
  }, z.core.$strip>>>>;
34
34
  }, z.core.$strip>>>;
35
- last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
- first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  probability: z.ZodNullable<z.ZodNumber>;
38
38
  result_found: z.ZodNullable<z.ZodBoolean>;
39
39
  country_of_origin: z.ZodArray<z.ZodObject<{
40
40
  country: z.ZodNullable<z.ZodString>;
41
41
  probability: z.ZodNullable<z.ZodNumber>;
42
42
  country_name: z.ZodNullable<z.ZodString>;
43
- continental_region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
44
- statistical_region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
43
+ continental_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ statistical_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  }, z.core.$strip>>;
46
- language_of_origin: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
46
+ language_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  country_of_origin_map_url: z.ZodNullable<z.ZodString>;
48
48
  }, z.core.$strip>;
49
49
  declare const genderApiGetCountryOfOrigin: import("@keystrokehq/action").WorkflowActionDefinition<{
@@ -51,45 +51,7 @@ declare const genderApiGetCountryOfOrigin: import("@keystrokehq/action").Workflo
51
51
  email?: string | undefined;
52
52
  full_name?: string | undefined;
53
53
  first_name?: string | undefined;
54
- }, {
55
- input: {
56
- id?: string | undefined;
57
- email?: string | undefined;
58
- full_name?: string | undefined;
59
- first_name?: string | undefined;
60
- } | null;
61
- details: {
62
- samples: number | null;
63
- duration: string | null;
64
- credits_used: number | null;
65
- country?: string | undefined;
66
- first_name_sanitized?: string | undefined;
67
- } | null;
68
- probability: number | null;
69
- result_found: boolean | null;
70
- country_of_origin: {
71
- country: string | null;
72
- probability: number | null;
73
- country_name: string | null;
74
- continental_region?: string | undefined;
75
- statistical_region?: string | undefined;
76
- }[];
77
- country_of_origin_map_url: string | null;
78
- gender?: string | undefined;
79
- meaning?: string | undefined;
80
- ethnicity?: {
81
- id?: string | undefined;
82
- name?: string | undefined;
83
- distribution?: {
84
- id: string | null;
85
- name: string | null;
86
- percentage: number | null;
87
- }[] | undefined;
88
- } | undefined;
89
- last_name?: string | undefined;
90
- first_name?: string | undefined;
91
- language_of_origin?: string | undefined;
92
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
54
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
93
55
  //#endregion
94
56
  export { genderApiGetCountryOfOrigin };
95
57
  //# sourceMappingURL=get-country-of-origin.d.cts.map