@keystrokehq/gender_api 0.1.0 → 0.1.1

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 (81) 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 +39 -3
  6. package/dist/actions/get-country-of-origin-v1.d.cts.map +1 -1
  7. package/dist/actions/get-country-of-origin-v1.d.mts +39 -3
  8. package/dist/actions/get-country-of-origin-v1.d.mts.map +1 -1
  9. package/dist/actions/get-country-of-origin-v1.mjs +14 -14
  10. package/dist/actions/get-country-of-origin-v1.mjs.map +1 -1
  11. package/dist/actions/get-country-of-origin.cjs +29 -29
  12. package/dist/actions/get-country-of-origin.cjs.map +1 -1
  13. package/dist/actions/get-country-of-origin.d.cts +89 -3
  14. package/dist/actions/get-country-of-origin.d.cts.map +1 -1
  15. package/dist/actions/get-country-of-origin.d.mts +89 -3
  16. package/dist/actions/get-country-of-origin.d.mts.map +1 -1
  17. package/dist/actions/get-country-of-origin.mjs +29 -29
  18. package/dist/actions/get-country-of-origin.mjs.map +1 -1
  19. package/dist/actions/get-statistic.cjs +6 -6
  20. package/dist/actions/get-statistic.cjs.map +1 -1
  21. package/dist/actions/get-statistic.d.cts +25 -3
  22. package/dist/actions/get-statistic.d.cts.map +1 -1
  23. package/dist/actions/get-statistic.d.mts +25 -3
  24. package/dist/actions/get-statistic.d.mts.map +1 -1
  25. package/dist/actions/get-statistic.mjs +6 -6
  26. package/dist/actions/get-statistic.mjs.map +1 -1
  27. package/dist/actions/query-by-email-address-multiple.cjs +22 -22
  28. package/dist/actions/query-by-email-address-multiple.cjs.map +1 -1
  29. package/dist/actions/query-by-email-address-multiple.d.cts +77 -3
  30. package/dist/actions/query-by-email-address-multiple.d.cts.map +1 -1
  31. package/dist/actions/query-by-email-address-multiple.d.mts +77 -3
  32. package/dist/actions/query-by-email-address-multiple.d.mts.map +1 -1
  33. package/dist/actions/query-by-email-address-multiple.mjs +22 -22
  34. package/dist/actions/query-by-email-address-multiple.mjs.map +1 -1
  35. package/dist/actions/query-by-email-address.cjs +17 -17
  36. package/dist/actions/query-by-email-address.cjs.map +1 -1
  37. package/dist/actions/query-by-email-address.d.cts +61 -3
  38. package/dist/actions/query-by-email-address.d.cts.map +1 -1
  39. package/dist/actions/query-by-email-address.d.mts +61 -3
  40. package/dist/actions/query-by-email-address.d.mts.map +1 -1
  41. package/dist/actions/query-by-email-address.mjs +17 -17
  42. package/dist/actions/query-by-email-address.mjs.map +1 -1
  43. package/dist/actions/query-by-first-name.cjs +15 -15
  44. package/dist/actions/query-by-first-name.cjs.map +1 -1
  45. package/dist/actions/query-by-first-name.d.cts +57 -3
  46. package/dist/actions/query-by-first-name.d.cts.map +1 -1
  47. package/dist/actions/query-by-first-name.d.mts +57 -3
  48. package/dist/actions/query-by-first-name.d.mts.map +1 -1
  49. package/dist/actions/query-by-first-name.mjs +15 -15
  50. package/dist/actions/query-by-first-name.mjs.map +1 -1
  51. package/dist/actions/query-by-full-name.cjs +16 -16
  52. package/dist/actions/query-by-full-name.cjs.map +1 -1
  53. package/dist/actions/query-by-full-name.d.cts +59 -3
  54. package/dist/actions/query-by-full-name.d.cts.map +1 -1
  55. package/dist/actions/query-by-full-name.d.mts +59 -3
  56. package/dist/actions/query-by-full-name.d.mts.map +1 -1
  57. package/dist/actions/query-by-full-name.mjs +16 -16
  58. package/dist/actions/query-by-full-name.mjs.map +1 -1
  59. package/dist/actions/query-gender-by-first-name-multiple.cjs +15 -15
  60. package/dist/actions/query-gender-by-first-name-multiple.cjs.map +1 -1
  61. package/dist/actions/query-gender-by-first-name-multiple.d.cts +65 -3
  62. package/dist/actions/query-gender-by-first-name-multiple.d.cts.map +1 -1
  63. package/dist/actions/query-gender-by-first-name-multiple.d.mts +65 -3
  64. package/dist/actions/query-gender-by-first-name-multiple.d.mts.map +1 -1
  65. package/dist/actions/query-gender-by-first-name-multiple.mjs +15 -15
  66. package/dist/actions/query-gender-by-first-name-multiple.mjs.map +1 -1
  67. package/dist/actions/query-gender-by-full-name-multiple.cjs +16 -16
  68. package/dist/actions/query-gender-by-full-name-multiple.cjs.map +1 -1
  69. package/dist/actions/query-gender-by-full-name-multiple.d.cts +67 -3
  70. package/dist/actions/query-gender-by-full-name-multiple.d.cts.map +1 -1
  71. package/dist/actions/query-gender-by-full-name-multiple.d.mts +67 -3
  72. package/dist/actions/query-gender-by-full-name-multiple.d.mts.map +1 -1
  73. package/dist/actions/query-gender-by-full-name-multiple.mjs +16 -16
  74. package/dist/actions/query-gender-by-full-name-multiple.mjs.map +1 -1
  75. package/dist/catalog.cjs +7 -1
  76. package/dist/catalog.cjs.map +1 -1
  77. package/dist/catalog.d.cts +8 -0
  78. package/dist/catalog.d.mts +8 -0
  79. package/dist/catalog.mjs +7 -1
  80. package/dist/catalog.mjs.map +1 -1
  81. package/package.json +2 -2
@@ -1,9 +1,95 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-country-of-origin.d.ts
4
- declare const GenderApiGetCountryOfOriginInput: z.ZodTypeAny;
5
- declare const GenderApiGetCountryOfOriginOutput: z.ZodTypeAny;
6
- declare const genderApiGetCountryOfOrigin: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GenderApiGetCountryOfOriginInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ full_name: z.ZodOptional<z.ZodString>;
8
+ first_name: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const GenderApiGetCountryOfOriginOutput: z.ZodObject<{
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>>;
16
+ }, z.core.$strip>>;
17
+ gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ details: z.ZodNullable<z.ZodObject<{
19
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ samples: z.ZodNullable<z.ZodNumber>;
21
+ duration: z.ZodNullable<z.ZodString>;
22
+ credits_used: z.ZodNullable<z.ZodNumber>;
23
+ first_name_sanitized: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
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<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ name: z.ZodNullable<z.ZodString>;
32
+ percentage: z.ZodNullable<z.ZodNumber>;
33
+ }, z.core.$strip>>>>;
34
+ }, z.core.$strip>>>;
35
+ last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
+ first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
+ probability: z.ZodNullable<z.ZodNumber>;
38
+ result_found: z.ZodNullable<z.ZodBoolean>;
39
+ country_of_origin: z.ZodArray<z.ZodObject<{
40
+ country: z.ZodNullable<z.ZodString>;
41
+ probability: z.ZodNullable<z.ZodNumber>;
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>>;
45
+ }, z.core.$strip>>;
46
+ language_of_origin: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
47
+ country_of_origin_map_url: z.ZodNullable<z.ZodString>;
48
+ }, z.core.$strip>;
49
+ declare const genderApiGetCountryOfOrigin: import("@keystrokehq/action").WorkflowActionDefinition<{
50
+ id?: string | undefined;
51
+ email?: string | undefined;
52
+ full_name?: string | undefined;
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]>;
7
93
  //#endregion
8
94
  export { genderApiGetCountryOfOrigin };
9
95
  //# sourceMappingURL=get-country-of-origin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-country-of-origin.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAK+E;AAAA,cA+BnH,iCAAA,EAAmC,CAAA,CAAE,UAahD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-country-of-origin.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAoChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAejC,2BAAA,gCAA2B,wBAAA"}
@@ -8,34 +8,34 @@ const GenderApiGetCountryOfOriginInput = z.object({
8
8
  first_name: 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 = z.object({
11
- id: z.string().describe("Client-defined request ID for correlation (max 50 chars).").nullable().optional(),
12
- email: z.string().describe("Email address to query; can be provided instead of first_name.").nullable().optional(),
13
- full_name: z.string().describe("Full name to query; can be provided instead of first_name.").nullable().optional(),
14
- first_name: z.string().describe("First name to query. Required if full_name and email are not provided.").nullable().optional()
11
+ id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Client-defined request ID for correlation (max 50 chars).").optional()),
12
+ email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address to query; can be provided instead of first_name.").optional()),
13
+ full_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name to query; can be provided instead of first_name.").optional()),
14
+ first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name to query. Required if full_name and email are not provided.").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 = z.object({
17
- country: z.string().describe("Single best-guess country.").nullable().optional(),
18
- samples: z.number().int().describe("Count of matching records used."),
19
- duration: z.string().describe("Server processing time."),
20
- credits_used: z.number().int().describe("Number of requests charged for this query."),
21
- first_name_sanitized: z.string().describe("Normalized version of the name.").nullable().optional()
17
+ country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Single best-guess country.").optional()),
18
+ samples: z.number().int().describe("Count of matching records used.").nullable(),
19
+ duration: z.string().describe("Server processing time.").nullable(),
20
+ credits_used: z.number().int().describe("Number of requests charged for this query.").nullable(),
21
+ first_name_sanitized: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Normalized version of the name.").optional())
22
22
  });
23
23
  const GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({
24
- id: z.string().describe("Identifier of the ethnic group."),
25
- name: z.string().describe("Name of the ethnic group."),
26
- percentage: z.number().describe("Percentage share of this ethnic group.")
24
+ id: z.string().describe("Identifier of the ethnic group.").nullable(),
25
+ name: z.string().describe("Name of the ethnic group.").nullable(),
26
+ percentage: z.number().describe("Percentage share of this ethnic group.").nullable()
27
27
  });
28
28
  const GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({
29
- id: z.string().describe("Primary ethnic group identifier.").nullable().optional(),
30
- name: z.string().describe("Primary ethnic group name.").nullable().optional(),
31
- distribution: z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe("Distribution across ethnic groups.").nullable().optional()
29
+ id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Primary ethnic group identifier.").optional()),
30
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Primary ethnic group name.").optional()),
31
+ distribution: z.preprocess((value) => value === null ? void 0 : value, z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe("Distribution across ethnic groups.").optional())
32
32
  });
33
33
  const GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({
34
- country: z.string().describe("ISO country code."),
35
- probability: z.number().describe("Probability score for this country's origin."),
36
- country_name: z.string().describe("Full country name."),
37
- continental_region: z.string().describe("Continental region name.").nullable().optional(),
38
- statistical_region: z.string().describe("Statistical sub-region name.").nullable().optional()
34
+ country: z.string().describe("ISO country code.").nullable(),
35
+ probability: z.number().describe("Probability score for this country's origin.").nullable(),
36
+ country_name: z.string().describe("Full country name.").nullable(),
37
+ continental_region: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Continental region name.").optional()),
38
+ statistical_region: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Statistical sub-region name.").optional())
39
39
  });
40
40
  const genderApiGetCountryOfOrigin = action("GENDER_API_GET_COUNTRY_OF_ORIGIN", {
41
41
  slug: "gender_api-get-country-of-origin",
@@ -44,17 +44,17 @@ const genderApiGetCountryOfOrigin = action("GENDER_API_GET_COUNTRY_OF_ORIGIN", {
44
44
  input: GenderApiGetCountryOfOriginInput,
45
45
  output: z.object({
46
46
  input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),
47
- gender: z.string().describe("Detected gender: male, female, or unknown.").nullable().optional(),
47
+ gender: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Detected gender: male, female, or unknown.").optional()),
48
48
  details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),
49
- meaning: z.string().describe("Short description of the name's meaning.").nullable().optional(),
50
- ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),
51
- last_name: z.string().describe("Last name extracted from full_name or email, if provided.").nullable().optional(),
52
- first_name: z.string().describe("First name used for analysis.").nullable().optional(),
53
- probability: z.number().describe("Overall reliability score (0-1)."),
54
- result_found: z.boolean().describe("Whether a result was found."),
49
+ meaning: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Short description of the name's meaning.").optional()),
50
+ ethnicity: z.preprocess((value) => value === null ? void 0 : value, GenderApiGetCountryOfOrigin_EthnicitySchema.optional()),
51
+ last_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name extracted from full_name or email, if provided.").optional()),
52
+ first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name used for analysis.").optional()),
53
+ probability: z.number().describe("Overall reliability score (0-1).").nullable(),
54
+ result_found: z.boolean().describe("Whether a result was found.").nullable(),
55
55
  country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe("Top 25 likely countries of origin."),
56
- language_of_origin: z.string().describe("Likely language of origin.").nullable().optional(),
57
- country_of_origin_map_url: z.string().describe("URL to interactive map for this name.")
56
+ language_of_origin: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Likely language of origin.").optional()),
57
+ country_of_origin_map_url: z.string().describe("URL to interactive map for this name.").nullable()
58
58
  })
59
59
  });
60
60
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-country-of-origin.mjs","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginInput: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = z.object({\n country: z.string().describe(\"Single best-guess country.\").nullable().optional(),\n samples: z.number().int().describe(\"Count of matching records used.\"),\n duration: z.string().describe(\"Server processing time.\"),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\"),\n first_name_sanitized: z.string().describe(\"Normalized version of the name.\").nullable().optional(),\n});\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\"),\n name: z.string().describe(\"Name of the ethnic group.\"),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\"),\n});\nconst GenderApiGetCountryOfOrigin_EthnicitySchema: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n country: z.string().describe(\"ISO country code.\"),\n probability: z.number().describe(\"Probability score for this country's origin.\"),\n country_name: z.string().describe(\"Full country name.\"),\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.ZodTypeAny = 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).\"),\n result_found: z.boolean().describe(\"Whether a result was found.\"),\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.\"),\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,mCAAiD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAM,uEAAqF,EAAE,OAAO;CAClG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAM,4CAA0D,EAAE,OAAO;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CA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D,EAAE,OAAO;EACtE,OAAO,qEAAqE,SAAS;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,SAAS,0CAA0C,SAAS;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,WAAW,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACnE,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;EAChE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oCAAoC;EAC/H,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACxF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-country-of-origin.mjs","names":[],"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,mCAAmC,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,OAA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BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApB+C,EAAE,OAAO;EACxD,OAAO,qEAAqE,SAAS;EACrF,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;EAClJ,SAAS,0CAA0C,SAAS;EAC5D,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC;EACjJ,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,4CAA4C,SAAS,CAAC;EAC/H,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;EACpK,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;EACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC3E,mBAAmB,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oCAAoC;EAC/H,oBAAoB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;EAC9I,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnG,CAOU;AACV,CAAC"}
@@ -3,18 +3,18 @@ let zod = require("zod");
3
3
  //#region src/actions/get-statistic.ts
4
4
  const GenderApiGetStatisticInput = zod.z.object({}).describe("Request model for GET /v2/statistic - no parameters.");
5
5
  const GenderApiGetStatistic_StatisticDetailsSchema = zod.z.object({
6
- duration: zod.z.string().describe("Server processing time for this query, e.g., '83ms'."),
7
- credits_used: zod.z.number().int().describe("Requests consumed by this query.")
6
+ duration: zod.z.string().describe("Server processing time for this query, e.g., '83ms'.").nullable(),
7
+ credits_used: zod.z.number().int().describe("Requests consumed by this query.").nullable()
8
8
  });
9
9
  const GenderApiGetStatistic_UsageLastMonthSchema = zod.z.object({
10
- date: zod.z.string().describe("Month of usage in 'YYYY-MM' format."),
11
- credits_used: zod.z.number().int().describe("Requests used last month.")
10
+ date: zod.z.string().describe("Month of usage in 'YYYY-MM' format.").nullable(),
11
+ credits_used: zod.z.number().int().describe("Requests used last month.").nullable()
12
12
  });
13
13
  const GenderApiGetStatisticOutput = zod.z.object({
14
14
  details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),
15
- is_limit_reached: zod.z.boolean().describe("True if no requests left."),
15
+ is_limit_reached: zod.z.boolean().describe("True if no requests left.").nullable(),
16
16
  usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),
17
- remaining_credits: zod.z.number().int().describe("Number of requests left.")
17
+ remaining_credits: zod.z.number().int().describe("Number of requests left.").nullable()
18
18
  });
19
19
  const genderApiGetStatistic = require_action.action("GENDER_API_GET_STATISTIC", {
20
20
  slug: "gender_api-get-statistic",
@@ -1 +1 @@
1
- {"version":3,"file":"get-statistic.cjs","names":["z","action"],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetStatisticInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema: z.ZodTypeAny = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\"),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\"),\n});\nconst GenderApiGetStatistic_UsageLastMonthSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\"),\n credits_used: z.number().int().describe(\"Requests used last month.\"),\n});\nexport const GenderApiGetStatisticOutput: z.ZodTypeAny = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\"),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\"),\n});\n\nexport const genderApiGetStatistic = action(\"GENDER_API_GET_STATISTIC\", {\n slug: \"gender_api-get-statistic\",\n name: \"Get Gender API Statistics\",\n description: \"Tool to retrieve account statistics from Gender-API, including remaining credits and usage details. Use when you need to check your credit balance before performing further gender lookups.\",\n input: GenderApiGetStatisticInput,\n output: GenderApiGetStatisticOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACpI,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;AAC5E,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;AACrE,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAAS,6CAA6C,SAAS;CAC/D,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;CAClE,kBAAkB,2CAA2C,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;AACzE,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-statistic.cjs","names":["z","action"],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetStatisticInput = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\").nullable(),\n});\nconst GenderApiGetStatistic_UsageLastMonthSchema = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\").nullable(),\n credits_used: z.number().int().describe(\"Requests used last month.\").nullable(),\n});\nexport const GenderApiGetStatisticOutput = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\").nullable(),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\").nullable(),\n});\n\nexport const genderApiGetStatistic = action(\"GENDER_API_GET_STATISTIC\", {\n slug: \"gender_api-get-statistic\",\n name: \"Get Gender API Statistics\",\n description: \"Tool to retrieve account statistics from Gender-API, including remaining credits and usage details. Use when you need to check your credit balance before performing further gender lookups.\",\n input: GenderApiGetStatisticInput,\n output: GenderApiGetStatisticOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACtH,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAChF,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAAS,6CAA6C,SAAS;CAC/D,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,kBAAkB,2CAA2C,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpF,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-statistic.d.ts
4
- declare const GenderApiGetStatisticInput: z.ZodTypeAny;
5
- declare const GenderApiGetStatisticOutput: z.ZodTypeAny;
6
- declare const genderApiGetStatistic: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GenderApiGetStatisticInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const GenderApiGetStatisticOutput: z.ZodObject<{
6
+ details: z.ZodNullable<z.ZodObject<{
7
+ duration: z.ZodNullable<z.ZodString>;
8
+ credits_used: z.ZodNullable<z.ZodNumber>;
9
+ }, z.core.$strip>>;
10
+ is_limit_reached: z.ZodNullable<z.ZodBoolean>;
11
+ usage_last_month: z.ZodNullable<z.ZodObject<{
12
+ date: z.ZodNullable<z.ZodString>;
13
+ credits_used: z.ZodNullable<z.ZodNumber>;
14
+ }, z.core.$strip>>;
15
+ remaining_credits: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ declare const genderApiGetStatistic: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
18
+ details: {
19
+ duration: string | null;
20
+ credits_used: number | null;
21
+ } | null;
22
+ is_limit_reached: boolean | null;
23
+ usage_last_month: {
24
+ date: string | null;
25
+ credits_used: number | null;
26
+ } | null;
27
+ remaining_credits: number | null;
28
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { genderApiGetStatistic };
9
31
  //# sourceMappingURL=get-statistic.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-statistic.d.cts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAA0F;AAAA,cASxH,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-statistic.d.cts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-statistic.d.ts
4
- declare const GenderApiGetStatisticInput: z.ZodTypeAny;
5
- declare const GenderApiGetStatisticOutput: z.ZodTypeAny;
6
- declare const genderApiGetStatistic: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GenderApiGetStatisticInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const GenderApiGetStatisticOutput: z.ZodObject<{
6
+ details: z.ZodNullable<z.ZodObject<{
7
+ duration: z.ZodNullable<z.ZodString>;
8
+ credits_used: z.ZodNullable<z.ZodNumber>;
9
+ }, z.core.$strip>>;
10
+ is_limit_reached: z.ZodNullable<z.ZodBoolean>;
11
+ usage_last_month: z.ZodNullable<z.ZodObject<{
12
+ date: z.ZodNullable<z.ZodString>;
13
+ credits_used: z.ZodNullable<z.ZodNumber>;
14
+ }, z.core.$strip>>;
15
+ remaining_credits: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ declare const genderApiGetStatistic: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
18
+ details: {
19
+ duration: string | null;
20
+ credits_used: number | null;
21
+ } | null;
22
+ is_limit_reached: boolean | null;
23
+ usage_last_month: {
24
+ date: string | null;
25
+ credits_used: number | null;
26
+ } | null;
27
+ remaining_credits: number | null;
28
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { genderApiGetStatistic };
9
31
  //# sourceMappingURL=get-statistic.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-statistic.d.mts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAA0F;AAAA,cASxH,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-statistic.d.mts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA"}
@@ -3,12 +3,12 @@ import { z } from "zod";
3
3
  //#region src/actions/get-statistic.ts
4
4
  const GenderApiGetStatisticInput = z.object({}).describe("Request model for GET /v2/statistic - no parameters.");
5
5
  const GenderApiGetStatistic_StatisticDetailsSchema = z.object({
6
- duration: z.string().describe("Server processing time for this query, e.g., '83ms'."),
7
- credits_used: z.number().int().describe("Requests consumed by this query.")
6
+ duration: z.string().describe("Server processing time for this query, e.g., '83ms'.").nullable(),
7
+ credits_used: z.number().int().describe("Requests consumed by this query.").nullable()
8
8
  });
9
9
  const GenderApiGetStatistic_UsageLastMonthSchema = z.object({
10
- date: z.string().describe("Month of usage in 'YYYY-MM' format."),
11
- credits_used: z.number().int().describe("Requests used last month.")
10
+ date: z.string().describe("Month of usage in 'YYYY-MM' format.").nullable(),
11
+ credits_used: z.number().int().describe("Requests used last month.").nullable()
12
12
  });
13
13
  const genderApiGetStatistic = action("GENDER_API_GET_STATISTIC", {
14
14
  slug: "gender_api-get-statistic",
@@ -17,9 +17,9 @@ const genderApiGetStatistic = action("GENDER_API_GET_STATISTIC", {
17
17
  input: GenderApiGetStatisticInput,
18
18
  output: z.object({
19
19
  details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),
20
- is_limit_reached: z.boolean().describe("True if no requests left."),
20
+ is_limit_reached: z.boolean().describe("True if no requests left.").nullable(),
21
21
  usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),
22
- remaining_credits: z.number().int().describe("Number of requests left.")
22
+ remaining_credits: z.number().int().describe("Number of requests left.").nullable()
23
23
  })
24
24
  });
25
25
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-statistic.mjs","names":[],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetStatisticInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema: z.ZodTypeAny = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\"),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\"),\n});\nconst GenderApiGetStatistic_UsageLastMonthSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\"),\n credits_used: z.number().int().describe(\"Requests used last month.\"),\n});\nexport const GenderApiGetStatisticOutput: z.ZodTypeAny = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\"),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\"),\n});\n\nexport const genderApiGetStatistic = action(\"GENDER_API_GET_STATISTIC\", {\n slug: \"gender_api-get-statistic\",\n name: \"Get Gender API Statistics\",\n description: \"Tool to retrieve account statistics from Gender-API, including remaining credits and usage details. Use when you need to check your credit balance before performing further gender lookups.\",\n input: GenderApiGetStatisticInput,\n output: GenderApiGetStatisticOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACpI,MAAM,+CAA6D,EAAE,OAAO;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;AAC5E,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;AACrE,CAAC;AAQD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,SAAS,6CAA6C,SAAS;EAC/D,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EAClE,kBAAkB,2CAA2C,SAAS;EACtE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACzE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-statistic.mjs","names":[],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetStatisticInput = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\").nullable(),\n});\nconst GenderApiGetStatistic_UsageLastMonthSchema = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\").nullable(),\n credits_used: z.number().int().describe(\"Requests used last month.\").nullable(),\n});\nexport const GenderApiGetStatisticOutput = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\").nullable(),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\").nullable(),\n});\n\nexport const genderApiGetStatistic = action(\"GENDER_API_GET_STATISTIC\", {\n slug: \"gender_api-get-statistic\",\n name: \"Get Gender API Statistics\",\n description: \"Tool to retrieve account statistics from Gender-API, including remaining credits and usage details. Use when you need to check your credit balance before performing further gender lookups.\",\n input: GenderApiGetStatisticInput,\n output: GenderApiGetStatisticOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACtH,MAAM,+CAA+C,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAChF,CAAC;AAQD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyC,EAAE,OAAO;EAClD,SAAS,6CAA6C,SAAS;EAC/D,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC7E,kBAAkB,2CAA2C,SAAS;EACtE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpF,CAOU;AACV,CAAC"}
@@ -9,36 +9,36 @@ const GenderApiQueryByEmailAddressMultipleInput = zod.z.object({ emails: zod.z.a
9
9
  country: zod.z.string().describe("ISO 3166 alpha-2 country code for improved regional accuracy").optional()
10
10
  }).describe("Single email query item in batch request.")).describe("List of email queries to process in a single batch request") }).describe("Request model for batch querying gender by multiple email addresses.");
11
11
  const GenderApiQueryByEmailAddressMultiple_InputEchoSchema = zod.z.object({
12
- id: zod.z.string().describe("Correlation ID if provided in request").nullable().optional(),
13
- ip: zod.z.string().describe("IP address if provided in request").nullable().optional(),
14
- email: zod.z.string().describe("The email address that was queried"),
15
- locale: zod.z.string().describe("Locale code if provided in request").nullable().optional(),
16
- country: zod.z.string().describe("Country code if provided in request").nullable().optional()
12
+ id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Correlation ID if provided in request").optional()),
13
+ ip: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("IP address if provided in request").optional()),
14
+ email: zod.z.string().describe("The email address that was queried").nullable(),
15
+ locale: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Locale code if provided in request").optional()),
16
+ country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Country code if provided in request").optional())
17
17
  }).describe("Echo of a single email query from the batch request.");
18
18
  const GenderApiQueryByEmailAddressMultiple_DetailsSchema = zod.z.object({
19
- country: zod.z.string().describe("Country code used for the query (from request or auto-detected)").nullable().optional(),
20
- samples: zod.z.number().int().describe("Number of matching database records used for determination (absent if no result found)").nullable().optional(),
21
- duration: zod.z.string().describe("Server processing time (e.g., '82ms')"),
22
- credits_used: zod.z.number().int().describe("Number of API credits consumed by this query (0 if no result found)"),
23
- email_sanitized: zod.z.number().int().describe("Sanitized email token count (if applicable)").nullable().optional(),
24
- first_name_sanitized: zod.z.string().describe("Normalized/lowercase first name extracted from the email (absent if no result found)").nullable().optional()
19
+ country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Country code used for the query (from request or auto-detected)").optional()),
20
+ samples: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of matching database records used for determination (absent if no result found)").optional()),
21
+ duration: zod.z.string().describe("Server processing time (e.g., '82ms')").nullable(),
22
+ credits_used: zod.z.number().int().describe("Number of API credits consumed by this query (0 if no result found)").nullable(),
23
+ email_sanitized: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Sanitized email token count (if applicable)").optional()),
24
+ first_name_sanitized: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Normalized/lowercase first name extracted from the email (absent if no result found)").optional())
25
25
  }).describe("Detailed statistics for a single gender query result.");
26
26
  const GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema = zod.z.object({
27
- type: zod.z.string().describe("Error type URI when an error occurs").nullable().optional(),
27
+ type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Error type URI when an error occurs").optional()),
28
28
  input: GenderApiQueryByEmailAddressMultiple_InputEchoSchema.nullable(),
29
- title: zod.z.string().describe("Error title/code when an error occurs").nullable().optional(),
30
- detail: zod.z.string().describe("Error detail message when an error occurs").nullable().optional(),
31
- gender: zod.z.enum([
29
+ title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Error title/code when an error occurs").optional()),
30
+ detail: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Error detail message when an error occurs").optional()),
31
+ gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.enum([
32
32
  "male",
33
33
  "female",
34
34
  "unknown"
35
- ]).describe("Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)").nullable().optional(),
36
- status: zod.z.number().int().describe("HTTP status code when an error occurs (e.g., 400 for invalid email)").nullable().optional(),
37
- details: GenderApiQueryByEmailAddressMultiple_DetailsSchema.nullable().optional(),
38
- last_name: zod.z.string().describe("Last name extracted/parsed from the email local part (e.g., 'Miller' from sandra.miller14@gmail.com)").nullable().optional(),
39
- first_name: zod.z.string().describe("First name extracted/parsed from the email local part (e.g., 'Sandra' from sandra.miller14@gmail.com)").nullable().optional(),
40
- probability: zod.z.number().describe("Confidence score from 0.0 to 1.0 indicating reliability of the gender prediction (absent if result_found is False)").nullable().optional(),
41
- result_found: zod.z.boolean().describe("True if a gender determination was made, False otherwise (absent on error)").nullable().optional()
35
+ ]).describe("Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)").optional()),
36
+ status: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("HTTP status code when an error occurs (e.g., 400 for invalid email)").optional()),
37
+ details: zod.z.preprocess((value) => value === null ? void 0 : value, GenderApiQueryByEmailAddressMultiple_DetailsSchema.optional()),
38
+ last_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name extracted/parsed from the email local part (e.g., 'Miller' from sandra.miller14@gmail.com)").optional()),
39
+ first_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name extracted/parsed from the email local part (e.g., 'Sandra' from sandra.miller14@gmail.com)").optional()),
40
+ probability: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Confidence score from 0.0 to 1.0 indicating reliability of the gender prediction (absent if result_found is False)").optional()),
41
+ result_found: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("True if a gender determination was made, False otherwise (absent on error)").optional())
42
42
  }).describe("Gender determination result for a single email address.\nCan be either a successful result or an error response.");
43
43
  const GenderApiQueryByEmailAddressMultipleOutput = zod.z.object({ results: zod.z.array(GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema).describe("List of gender determination results, one per input email query") }).describe("Response model for batch gender queries by email addresses.");
44
44
  const genderApiQueryByEmailAddressMultiple = require_action.action("GENDER_API_QUERY_BY_EMAIL_ADDRESS_MULTIPLE", {
@@ -1 +1 @@
1
- {"version":3,"file":"query-by-email-address-multiple.cjs","names":["z","action"],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByEmailAddressMultipleInput: z.ZodTypeAny = z.object({\n emails: z.array(z.object({\n id: z.string().describe(\"Client-provided correlation ID (max 50 chars) to match requests with responses\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based inference\").optional(),\n email: z.string().describe(\"Email address to query for gender determination\"),\n locale: z.string().describe(\"Browser locale code (e.g., 'en_US') for inference hints\").optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code for improved regional accuracy\").optional(),\n}).describe(\"Single email query item in batch request.\")).describe(\"List of email queries to process in a single batch request\"),\n}).describe(\"Request model for batch querying gender by multiple email addresses.\");\nconst GenderApiQueryByEmailAddressMultiple_InputEchoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Correlation ID if provided in request\").nullable().optional(),\n ip: z.string().describe(\"IP address if provided in request\").nullable().optional(),\n email: z.string().describe(\"The email address that was queried\"),\n locale: z.string().describe(\"Locale code if provided in request\").nullable().optional(),\n country: z.string().describe(\"Country code if provided in request\").nullable().optional(),\n}).describe(\"Echo of a single email query from the batch request.\");\nconst GenderApiQueryByEmailAddressMultiple_DetailsSchema: z.ZodTypeAny = z.object({\n country: z.string().describe(\"Country code used for the query (from request or auto-detected)\").nullable().optional(),\n samples: z.number().int().describe(\"Number of matching database records used for determination (absent if no result found)\").nullable().optional(),\n duration: z.string().describe(\"Server processing time (e.g., '82ms')\"),\n credits_used: z.number().int().describe(\"Number of API credits consumed by this query (0 if no result found)\"),\n email_sanitized: z.number().int().describe(\"Sanitized email token count (if applicable)\").nullable().optional(),\n first_name_sanitized: z.string().describe(\"Normalized/lowercase first name extracted from the email (absent if no result found)\").nullable().optional(),\n}).describe(\"Detailed statistics for a single gender query result.\");\nconst GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Error type URI when an error occurs\").nullable().optional(),\n input: GenderApiQueryByEmailAddressMultiple_InputEchoSchema.nullable(),\n title: z.string().describe(\"Error title/code when an error occurs\").nullable().optional(),\n detail: z.string().describe(\"Error detail message when an error occurs\").nullable().optional(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code when an error occurs (e.g., 400 for invalid email)\").nullable().optional(),\n details: GenderApiQueryByEmailAddressMultiple_DetailsSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted/parsed from the email local part (e.g., 'Miller' from sandra.miller14@gmail.com)\").nullable().optional(),\n first_name: z.string().describe(\"First name extracted/parsed from the email local part (e.g., 'Sandra' from sandra.miller14@gmail.com)\").nullable().optional(),\n probability: z.number().describe(\"Confidence score from 0.0 to 1.0 indicating reliability of the gender prediction (absent if result_found is False)\").nullable().optional(),\n result_found: z.boolean().describe(\"True if a gender determination was made, False otherwise (absent on error)\").nullable().optional(),\n}).describe(\"Gender determination result for a single email address.\\nCan be either a successful result or an error response.\");\nexport const GenderApiQueryByEmailAddressMultipleOutput: z.ZodTypeAny = z.object({\n results: z.array(GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema).describe(\"List of gender determination results, one per input email query\"),\n}).describe(\"Response model for batch gender queries by email addresses.\");\n\nexport const genderApiQueryByEmailAddressMultiple = action(\"GENDER_API_QUERY_BY_EMAIL_ADDRESS_MULTIPLE\", {\n slug: \"gender_api-query-by-email-address-multiple\",\n name: \"Query Gender by Multiple Email Addresses\",\n description: \"Determine likely gender for multiple email addresses in a single batch request. Returns male/female/unknown with confidence scores for each email. Use for efficient bulk processing. Each result includes result_found flag and optional probability score.\",\n input: GenderApiQueryByEmailAddressMultipleInput,\n output: GenderApiQueryByEmailAddressMultipleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO,EAC9E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAA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ourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByEmailAddressMultipleInput = z.object({\n emails: z.array(z.object({\n id: z.string().describe(\"Client-provided correlation ID (max 50 chars) to match requests with responses\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based inference\").optional(),\n email: z.string().describe(\"Email address to query for gender determination\"),\n locale: z.string().describe(\"Browser locale code (e.g., 'en_US') for inference hints\").optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code for improved regional accuracy\").optional(),\n}).describe(\"Single email query item in batch request.\")).describe(\"List of email queries to process in a single batch request\"),\n}).describe(\"Request model for batch querying gender by multiple email addresses.\");\nconst GenderApiQueryByEmailAddressMultiple_InputEchoSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Correlation ID if provided in request\").optional()),\n ip: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"IP address if provided in request\").optional()),\n email: z.string().describe(\"The email address that was queried\").nullable(),\n locale: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Locale code if provided in request\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code if provided in request\").optional()),\n}).describe(\"Echo of a single email query from the batch request.\");\nconst GenderApiQueryByEmailAddressMultiple_DetailsSchema = z.object({\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code used for the query (from request or auto-detected)\").optional()),\n samples: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of matching database records used for determination (absent if no result found)\").optional()),\n duration: z.string().describe(\"Server processing time (e.g., '82ms')\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed by this query (0 if no result found)\").nullable(),\n email_sanitized: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Sanitized email token count (if applicable)\").optional()),\n first_name_sanitized: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Normalized/lowercase first name extracted from the email (absent if no result found)\").optional()),\n}).describe(\"Detailed statistics for a single gender query result.\");\nconst GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema = z.object({\n type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error type URI when an error occurs\").optional()),\n input: GenderApiQueryByEmailAddressMultiple_InputEchoSchema.nullable(),\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error title/code when an error occurs\").optional()),\n detail: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error detail message when an error occurs\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.enum([\"male\", \"female\", \"unknown\"]).describe(\"Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)\").optional()),\n status: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"HTTP status code when an error occurs (e.g., 400 for invalid email)\").optional()),\n details: z.preprocess((value) => (value === null ? undefined : value), GenderApiQueryByEmailAddressMultiple_DetailsSchema.optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name extracted/parsed from the email local part (e.g., 'Miller' from sandra.miller14@gmail.com)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name extracted/parsed from the email local part (e.g., 'Sandra' from sandra.miller14@gmail.com)\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Confidence score from 0.0 to 1.0 indicating reliability of the gender prediction (absent if result_found is False)\").optional()),\n result_found: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"True if a gender determination was made, False otherwise (absent on error)\").optional()),\n}).describe(\"Gender determination result for a single email address.\\nCan be either a successful result or an error response.\");\nexport const GenderApiQueryByEmailAddressMultipleOutput = z.object({\n results: z.array(GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema).describe(\"List of gender determination results, one per input email query\"),\n}).describe(\"Response model for batch gender queries by email addresses.\");\n\nexport const genderApiQueryByEmailAddressMultiple = action(\"GENDER_API_QUERY_BY_EMAIL_ADDRESS_MULTIPLE\", {\n slug: \"gender_api-query-by-email-address-multiple\",\n name: \"Query Gender by Multiple Email Addresses\",\n description: \"Determine likely gender for multiple email addresses in a single batch request. Returns male/female/unknown with confidence scores for each email. Use for efficient bulk processing. Each result includes result_found flag and optional probability score.\",\n input: GenderApiQueryByEmailAddressMultipleInput,\n output: GenderApiQueryByEmailAddressMultipleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CACzI,IAAIA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC;CACrI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO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4E,CAAC,CAAC,SAAS,CAAC;AAC3L,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAC9H,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,iEAAiE,EAC3J,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,uCAAuCC,eAAAA,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,83 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-by-email-address-multiple.d.ts
4
- declare const GenderApiQueryByEmailAddressMultipleInput: z.ZodTypeAny;
5
- declare const GenderApiQueryByEmailAddressMultipleOutput: z.ZodTypeAny;
6
- declare const genderApiQueryByEmailAddressMultiple: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GenderApiQueryByEmailAddressMultipleInput: z.ZodObject<{
5
+ emails: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ ip: z.ZodOptional<z.ZodString>;
8
+ email: z.ZodString;
9
+ locale: z.ZodOptional<z.ZodString>;
10
+ country: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const GenderApiQueryByEmailAddressMultipleOutput: z.ZodObject<{
14
+ results: z.ZodArray<z.ZodObject<{
15
+ type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ input: z.ZodNullable<z.ZodObject<{
17
+ id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ ip: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ email: z.ZodNullable<z.ZodString>;
20
+ locale: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ detail: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ gender: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
26
+ unknown: "unknown";
27
+ male: "male";
28
+ female: "female";
29
+ }>>>;
30
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
31
+ details: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
32
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ samples: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
34
+ duration: z.ZodNullable<z.ZodString>;
35
+ credits_used: z.ZodNullable<z.ZodNumber>;
36
+ email_sanitized: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
37
+ first_name_sanitized: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ }, z.core.$strip>>>;
39
+ last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
42
+ result_found: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
45
+ declare const genderApiQueryByEmailAddressMultiple: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ emails: {
47
+ email: string;
48
+ id?: string | undefined;
49
+ ip?: string | undefined;
50
+ locale?: string | undefined;
51
+ country?: string | undefined;
52
+ }[];
53
+ }, {
54
+ results: {
55
+ input: {
56
+ email: string | null;
57
+ id?: string | undefined;
58
+ ip?: string | undefined;
59
+ locale?: string | undefined;
60
+ country?: string | undefined;
61
+ } | null;
62
+ type?: string | undefined;
63
+ title?: string | undefined;
64
+ detail?: string | undefined;
65
+ gender?: "unknown" | "male" | "female" | undefined;
66
+ status?: number | undefined;
67
+ details?: {
68
+ duration: string | null;
69
+ credits_used: number | null;
70
+ country?: string | undefined;
71
+ samples?: number | undefined;
72
+ email_sanitized?: number | undefined;
73
+ first_name_sanitized?: string | undefined;
74
+ } | undefined;
75
+ last_name?: string | undefined;
76
+ first_name?: string | undefined;
77
+ probability?: number | undefined;
78
+ result_found?: boolean | undefined;
79
+ }[];
80
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
81
  //#endregion
8
82
  export { genderApiQueryByEmailAddressMultiple };
9
83
  //# sourceMappingURL=query-by-email-address-multiple.d.cts.map