@keystrokehq/gender_api 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-country-of-origin-v1.cjs +16 -16
- package/dist/actions/get-country-of-origin-v1.cjs.map +1 -1
- package/dist/actions/get-country-of-origin-v1.d.cts +17 -33
- package/dist/actions/get-country-of-origin-v1.d.mts +17 -33
- package/dist/actions/get-country-of-origin-v1.mjs +16 -16
- package/dist/actions/get-country-of-origin-v1.mjs.map +1 -1
- package/dist/actions/get-country-of-origin.cjs +23 -23
- package/dist/actions/get-country-of-origin.cjs.map +1 -1
- package/dist/actions/get-country-of-origin.d.cts +24 -62
- package/dist/actions/get-country-of-origin.d.mts +24 -62
- package/dist/actions/get-country-of-origin.mjs +23 -23
- package/dist/actions/get-country-of-origin.mjs.map +1 -1
- package/dist/actions/get-statistic.cjs +3 -3
- package/dist/actions/get-statistic.cjs.map +1 -1
- package/dist/actions/get-statistic.d.cts +4 -15
- package/dist/actions/get-statistic.d.cts.map +1 -1
- package/dist/actions/get-statistic.d.mts +4 -15
- package/dist/actions/get-statistic.d.mts.map +1 -1
- package/dist/actions/get-statistic.mjs +3 -3
- package/dist/actions/get-statistic.mjs.map +1 -1
- package/dist/actions/query-by-email-address-multiple.cjs +24 -24
- package/dist/actions/query-by-email-address-multiple.cjs.map +1 -1
- package/dist/actions/query-by-email-address-multiple.d.cts +25 -51
- package/dist/actions/query-by-email-address-multiple.d.mts +25 -51
- package/dist/actions/query-by-email-address-multiple.mjs +24 -24
- package/dist/actions/query-by-email-address-multiple.mjs.map +1 -1
- package/dist/actions/query-by-email-address.cjs +16 -16
- package/dist/actions/query-by-email-address.cjs.map +1 -1
- package/dist/actions/query-by-email-address.d.cts +16 -37
- package/dist/actions/query-by-email-address.d.mts +16 -37
- package/dist/actions/query-by-email-address.mjs +16 -16
- package/dist/actions/query-by-email-address.mjs.map +1 -1
- package/dist/actions/query-by-first-name.cjs +14 -14
- package/dist/actions/query-by-first-name.cjs.map +1 -1
- package/dist/actions/query-by-first-name.d.cts +14 -33
- package/dist/actions/query-by-first-name.d.mts +14 -33
- package/dist/actions/query-by-first-name.mjs +14 -14
- package/dist/actions/query-by-first-name.mjs.map +1 -1
- package/dist/actions/query-by-full-name.cjs +15 -15
- package/dist/actions/query-by-full-name.cjs.map +1 -1
- package/dist/actions/query-by-full-name.d.cts +15 -35
- package/dist/actions/query-by-full-name.d.mts +15 -35
- package/dist/actions/query-by-full-name.mjs +15 -15
- package/dist/actions/query-by-full-name.mjs.map +1 -1
- package/dist/actions/query-gender-by-first-name-multiple.cjs +16 -16
- package/dist/actions/query-gender-by-first-name-multiple.cjs.map +1 -1
- package/dist/actions/query-gender-by-first-name-multiple.d.cts +17 -37
- package/dist/actions/query-gender-by-first-name-multiple.d.mts +17 -37
- package/dist/actions/query-gender-by-first-name-multiple.mjs +16 -16
- package/dist/actions/query-gender-by-first-name-multiple.mjs.map +1 -1
- package/dist/actions/query-gender-by-full-name-multiple.cjs +17 -17
- package/dist/actions/query-gender-by-full-name-multiple.cjs.map +1 -1
- package/dist/actions/query-gender-by-full-name-multiple.d.cts +18 -39
- package/dist/actions/query-gender-by-full-name-multiple.d.mts +18 -39
- package/dist/actions/query-gender-by-full-name-multiple.mjs +17 -17
- package/dist/actions/query-gender-by-full-name-multiple.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,20 +9,20 @@ const GenderApiQueryByEmailAddressInput = z.object({
|
|
|
9
9
|
country: z.string().describe("ISO 3166 ALPHA-2 country code").optional()
|
|
10
10
|
}).describe("Request model for querying gender by email address.");
|
|
11
11
|
const GenderApiQueryByEmailAddress_InputEchoSchema = z.object({
|
|
12
|
-
id: z.
|
|
13
|
-
ip: z.
|
|
12
|
+
id: z.string().describe("Correlation ID if provided in request").nullable().optional(),
|
|
13
|
+
ip: z.string().describe("IP address if provided in request").nullable().optional(),
|
|
14
14
|
email: z.string().describe("The email address that was queried").nullable(),
|
|
15
|
-
locale: z.
|
|
16
|
-
country: z.
|
|
17
|
-
}).describe("Echo of the submitted request parameters.");
|
|
15
|
+
locale: z.string().describe("Locale code if provided in request").nullable().optional(),
|
|
16
|
+
country: z.string().describe("Country code if provided in request").nullable().optional()
|
|
17
|
+
}).passthrough().describe("Echo of the submitted request parameters.");
|
|
18
18
|
const GenderApiQueryByEmailAddress_DetailsSchema = z.object({
|
|
19
|
-
country: z.
|
|
20
|
-
samples: z.
|
|
19
|
+
country: z.string().describe("Country code used for the query (from request or auto-detected)").nullable().optional(),
|
|
20
|
+
samples: z.number().int().describe("Number of matching database records used for determination (absent if no result found)").nullable().optional(),
|
|
21
21
|
duration: z.string().describe("Server processing time (e.g., '32ms')").nullable(),
|
|
22
22
|
credits_used: z.number().int().describe("Number of API credits consumed by this query (0 if no result found)").nullable(),
|
|
23
|
-
email_sanitized: z.
|
|
24
|
-
first_name_sanitized: z.
|
|
25
|
-
}).describe("Detailed statistics returned for a gender query.");
|
|
23
|
+
email_sanitized: z.number().int().describe("Sanitized email token count (if applicable)").nullable().optional(),
|
|
24
|
+
first_name_sanitized: z.string().describe("Normalized/lowercase first name extracted from the email (absent if no result found)").nullable().optional()
|
|
25
|
+
}).passthrough().describe("Detailed statistics returned for a gender query.");
|
|
26
26
|
const genderApiQueryByEmailAddress = action("GENDER_API_QUERY_BY_EMAIL_ADDRESS", {
|
|
27
27
|
slug: "gender_api-query-by-email-address",
|
|
28
28
|
name: "Query Gender by Email Address",
|
|
@@ -30,17 +30,17 @@ const genderApiQueryByEmailAddress = action("GENDER_API_QUERY_BY_EMAIL_ADDRESS",
|
|
|
30
30
|
input: GenderApiQueryByEmailAddressInput,
|
|
31
31
|
output: z.object({
|
|
32
32
|
input: GenderApiQueryByEmailAddress_InputEchoSchema.nullable(),
|
|
33
|
-
gender: z.
|
|
33
|
+
gender: z.enum([
|
|
34
34
|
"male",
|
|
35
35
|
"female",
|
|
36
36
|
"unknown"
|
|
37
|
-
]).describe("Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)").optional()
|
|
37
|
+
]).describe("Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)").nullable().optional(),
|
|
38
38
|
details: GenderApiQueryByEmailAddress_DetailsSchema.nullable(),
|
|
39
|
-
last_name: z.
|
|
40
|
-
first_name: z.
|
|
41
|
-
probability: z.
|
|
39
|
+
last_name: z.string().describe("Last name extracted/parsed from the email local part (e.g., 'Smith' from john.smith@example.com)").nullable().optional(),
|
|
40
|
+
first_name: z.string().describe("First name extracted/parsed from the email local part (e.g., 'John' from john.smith@example.com)").nullable().optional(),
|
|
41
|
+
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(),
|
|
42
42
|
result_found: z.boolean().describe("True if a gender determination was made, False otherwise").nullable()
|
|
43
|
-
}).describe("Response model for gender query by email address.")
|
|
43
|
+
}).passthrough().describe("Response model for gender query by email address.")
|
|
44
44
|
});
|
|
45
45
|
//#endregion
|
|
46
46
|
export { genderApiQueryByEmailAddress };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-email-address.mjs","names":[],"sources":["../../src/actions/query-by-email-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByEmailAddressInput = z.object({\n id: z.string().describe(\"Client-provided correlation ID\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address\").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')\").optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code\").optional(),\n}).describe(\"Request model for querying gender by email address.\");\nconst GenderApiQueryByEmailAddress_InputEchoSchema = z.object({\n id: z.
|
|
1
|
+
{"version":3,"file":"query-by-email-address.mjs","names":[],"sources":["../../src/actions/query-by-email-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByEmailAddressInput = z.object({\n id: z.string().describe(\"Client-provided correlation ID\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address\").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')\").optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code\").optional(),\n}).describe(\"Request model for querying gender by email address.\");\nconst GenderApiQueryByEmailAddress_InputEchoSchema = 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\").nullable(),\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}).passthrough().describe(\"Echo of the submitted request parameters.\");\nconst GenderApiQueryByEmailAddress_DetailsSchema = 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., '32ms')\").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.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}).passthrough().describe(\"Detailed statistics returned for a gender query.\");\nexport const GenderApiQueryByEmailAddressOutput = z.object({\n input: GenderApiQueryByEmailAddress_InputEchoSchema.nullable(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)\").nullable().optional(),\n details: GenderApiQueryByEmailAddress_DetailsSchema.nullable(),\n last_name: z.string().describe(\"Last name extracted/parsed from the email local part (e.g., 'Smith' from john.smith@example.com)\").nullable().optional(),\n first_name: z.string().describe(\"First name extracted/parsed from the email local part (e.g., 'John' from john.smith@example.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\").nullable(),\n}).passthrough().describe(\"Response model for gender query by email address.\");\n\nexport const genderApiQueryByEmailAddress = action(\"GENDER_API_QUERY_BY_EMAIL_ADDRESS\", {\n slug: \"gender_api-query-by-email-address\",\n name: \"Query Gender by Email Address\",\n description: \"Determine likely gender from an email address by extracting and analyzing the name portion. Returns male/female/unknown with a confidence score. Optionally filter by country for improved accuracy. Check result_found to know if a determination was made; probability indicates confidence level.\",\n input: GenderApiQueryByEmailAddressInput,\n output: GenderApiQueryByEmailAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC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kG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3K,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -9,31 +9,31 @@ const GenderApiQueryByFirstNameInput = zod.z.object({
|
|
|
9
9
|
first_name: zod.z.string().describe("Name to query.")
|
|
10
10
|
}).describe("Request parameters for querying gender by first name.");
|
|
11
11
|
const GenderApiQueryByFirstName_QueryByFirstNameInputSchema = zod.z.object({
|
|
12
|
-
id: zod.z.
|
|
13
|
-
ip: zod.z.
|
|
14
|
-
locale: zod.z.
|
|
15
|
-
country: zod.z.
|
|
12
|
+
id: zod.z.string().describe("Client-defined correlation ID, max 50 characters.").nullable().optional(),
|
|
13
|
+
ip: zod.z.string().describe("Valid IPv4 or IPv6 address.").nullable().optional(),
|
|
14
|
+
locale: zod.z.string().describe("Browser locale, e.g., 'en-US'.").nullable().optional(),
|
|
15
|
+
country: zod.z.string().describe("ISO 3166 ALPHA-2 country code.").nullable().optional(),
|
|
16
16
|
first_name: zod.z.string().describe("Name to query.").nullable()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema = zod.z.object({
|
|
19
|
-
country: zod.z.
|
|
20
|
-
samples: zod.z.
|
|
19
|
+
country: zod.z.string().describe("The country found (may be null).").nullable().optional(),
|
|
20
|
+
samples: zod.z.number().int().describe("Number of database records matching the request. Only present when result_found is true.").nullable().optional(),
|
|
21
21
|
duration: zod.z.string().describe("Server processing time, e.g., '436ms'.").nullable(),
|
|
22
22
|
credits_used: zod.z.number().int().describe("Requests (credits) used for this query.").nullable(),
|
|
23
|
-
first_name_sanitized: zod.z.
|
|
24
|
-
});
|
|
23
|
+
first_name_sanitized: zod.z.string().describe("Name after normalization. Only present when result_found is true.").nullable().optional()
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const GenderApiQueryByFirstNameOutput = zod.z.object({
|
|
26
26
|
input: GenderApiQueryByFirstName_QueryByFirstNameInputSchema.nullable(),
|
|
27
|
-
gender: zod.z.
|
|
27
|
+
gender: zod.z.enum([
|
|
28
28
|
"male",
|
|
29
29
|
"female",
|
|
30
30
|
"unknown"
|
|
31
|
-
]).describe("One of: male, female, unknown. Only present when result_found is true.").optional()
|
|
31
|
+
]).describe("One of: male, female, unknown. Only present when result_found is true.").nullable().optional(),
|
|
32
32
|
details: GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema.nullable(),
|
|
33
|
-
first_name: zod.z.
|
|
34
|
-
probability: zod.z.
|
|
33
|
+
first_name: zod.z.string().describe("The first name used for genderization. Only present when result_found is true.").nullable().optional(),
|
|
34
|
+
probability: zod.z.number().describe("Reliability of the result between 0 and 1. Only present when result_found is true.").nullable().optional(),
|
|
35
35
|
result_found: zod.z.boolean().describe("True if a gender could be determined for the name.").nullable()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const genderApiQueryByFirstName = require_action.action("GENDER_API_QUERY_BY_FIRST_NAME", {
|
|
38
38
|
slug: "gender_api-query-by-first-name",
|
|
39
39
|
name: "Gender From First Name",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-first-name.cjs","names":["z","action"],"sources":["../../src/actions/query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Client-defined correlation ID, max 50 characters.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address.\").optional(),\n locale: z.string().describe(\"Browser locale, e.g., 'en-US'.\").optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code.\").optional(),\n first_name: z.string().describe(\"Name to query.\"),\n}).describe(\"Request parameters for querying gender by first name.\");\nconst GenderApiQueryByFirstName_QueryByFirstNameInputSchema = z.object({\n id: z.
|
|
1
|
+
{"version":3,"file":"query-by-first-name.cjs","names":["z","action"],"sources":["../../src/actions/query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Client-defined correlation ID, max 50 characters.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address.\").optional(),\n locale: z.string().describe(\"Browser locale, e.g., 'en-US'.\").optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code.\").optional(),\n first_name: z.string().describe(\"Name to query.\"),\n}).describe(\"Request parameters for querying gender by first name.\");\nconst GenderApiQueryByFirstName_QueryByFirstNameInputSchema = z.object({\n id: z.string().describe(\"Client-defined correlation ID, max 50 characters.\").nullable().optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address.\").nullable().optional(),\n locale: z.string().describe(\"Browser locale, e.g., 'en-US'.\").nullable().optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code.\").nullable().optional(),\n first_name: z.string().describe(\"Name to query.\").nullable(),\n}).passthrough();\nconst GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema = z.object({\n country: z.string().describe(\"The country found (may be null).\").nullable().optional(),\n samples: z.number().int().describe(\"Number of database records matching the request. Only present when result_found is true.\").nullable().optional(),\n duration: z.string().describe(\"Server processing time, e.g., '436ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests (credits) used for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Name after normalization. Only present when result_found is true.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiQueryByFirstNameOutput = z.object({\n input: GenderApiQueryByFirstName_QueryByFirstNameInputSchema.nullable(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"One of: male, female, unknown. Only present when result_found is true.\").nullable().optional(),\n details: GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema.nullable(),\n first_name: z.string().describe(\"The first name used for genderization. Only present when result_found is true.\").nullable().optional(),\n probability: z.number().describe(\"Reliability of the result between 0 and 1. Only present when result_found is true.\").nullable().optional(),\n result_found: z.boolean().describe(\"True if a gender could be determined for the name.\").nullable(),\n}).passthrough();\n\nexport const genderApiQueryByFirstName = action(\"GENDER_API_QUERY_BY_FIRST_NAME\", {\n slug: \"gender_api-query-by-first-name\",\n name: \"Gender From First Name\",\n description: \"Tool to determine the gender of a first name. Use when you need to identify gender based on a given name.\",\n input: GenderApiQueryByFirstNameInput,\n output: GenderApiQueryByFirstNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAClD,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CA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AEf,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,54 +10,35 @@ declare const GenderApiQueryByFirstNameInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const GenderApiQueryByFirstNameOutput: z.ZodObject<{
|
|
12
12
|
input: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
id: z.
|
|
14
|
-
ip: z.
|
|
15
|
-
locale: z.
|
|
16
|
-
country: z.
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
first_name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
gender: z.
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
20
20
|
unknown: "unknown";
|
|
21
21
|
male: "male";
|
|
22
22
|
female: "female";
|
|
23
23
|
}>>>;
|
|
24
24
|
details: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
country: z.
|
|
26
|
-
samples: z.
|
|
25
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
samples: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
duration: z.ZodNullable<z.ZodString>;
|
|
28
28
|
credits_used: z.ZodNullable<z.ZodNumber>;
|
|
29
|
-
first_name_sanitized: z.
|
|
30
|
-
}, z.core.$
|
|
31
|
-
first_name: z.
|
|
32
|
-
probability: z.
|
|
29
|
+
first_name_sanitized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
33
|
result_found: z.ZodNullable<z.ZodBoolean>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const genderApiQueryByFirstName: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
first_name: string;
|
|
37
37
|
id?: string | undefined;
|
|
38
38
|
ip?: string | undefined;
|
|
39
39
|
locale?: string | undefined;
|
|
40
40
|
country?: string | undefined;
|
|
41
|
-
},
|
|
42
|
-
input: {
|
|
43
|
-
first_name: string | null;
|
|
44
|
-
id?: string | undefined;
|
|
45
|
-
ip?: string | undefined;
|
|
46
|
-
locale?: string | undefined;
|
|
47
|
-
country?: string | undefined;
|
|
48
|
-
} | null;
|
|
49
|
-
details: {
|
|
50
|
-
duration: string | null;
|
|
51
|
-
credits_used: number | null;
|
|
52
|
-
country?: string | undefined;
|
|
53
|
-
samples?: number | undefined;
|
|
54
|
-
first_name_sanitized?: string | undefined;
|
|
55
|
-
} | null;
|
|
56
|
-
result_found: boolean | null;
|
|
57
|
-
gender?: "unknown" | "male" | "female" | undefined;
|
|
58
|
-
first_name?: string | undefined;
|
|
59
|
-
probability?: number | undefined;
|
|
60
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
41
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
61
42
|
//#endregion
|
|
62
43
|
export { genderApiQueryByFirstName };
|
|
63
44
|
//# sourceMappingURL=query-by-first-name.d.cts.map
|
|
@@ -10,54 +10,35 @@ declare const GenderApiQueryByFirstNameInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const GenderApiQueryByFirstNameOutput: z.ZodObject<{
|
|
12
12
|
input: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
id: z.
|
|
14
|
-
ip: z.
|
|
15
|
-
locale: z.
|
|
16
|
-
country: z.
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
first_name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
gender: z.
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
20
20
|
unknown: "unknown";
|
|
21
21
|
male: "male";
|
|
22
22
|
female: "female";
|
|
23
23
|
}>>>;
|
|
24
24
|
details: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
country: z.
|
|
26
|
-
samples: z.
|
|
25
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
samples: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
duration: z.ZodNullable<z.ZodString>;
|
|
28
28
|
credits_used: z.ZodNullable<z.ZodNumber>;
|
|
29
|
-
first_name_sanitized: z.
|
|
30
|
-
}, z.core.$
|
|
31
|
-
first_name: z.
|
|
32
|
-
probability: z.
|
|
29
|
+
first_name_sanitized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
33
|
result_found: z.ZodNullable<z.ZodBoolean>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const genderApiQueryByFirstName: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
first_name: string;
|
|
37
37
|
id?: string | undefined;
|
|
38
38
|
ip?: string | undefined;
|
|
39
39
|
locale?: string | undefined;
|
|
40
40
|
country?: string | undefined;
|
|
41
|
-
},
|
|
42
|
-
input: {
|
|
43
|
-
first_name: string | null;
|
|
44
|
-
id?: string | undefined;
|
|
45
|
-
ip?: string | undefined;
|
|
46
|
-
locale?: string | undefined;
|
|
47
|
-
country?: string | undefined;
|
|
48
|
-
} | null;
|
|
49
|
-
details: {
|
|
50
|
-
duration: string | null;
|
|
51
|
-
credits_used: number | null;
|
|
52
|
-
country?: string | undefined;
|
|
53
|
-
samples?: number | undefined;
|
|
54
|
-
first_name_sanitized?: string | undefined;
|
|
55
|
-
} | null;
|
|
56
|
-
result_found: boolean | null;
|
|
57
|
-
gender?: "unknown" | "male" | "female" | undefined;
|
|
58
|
-
first_name?: string | undefined;
|
|
59
|
-
probability?: number | undefined;
|
|
60
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
41
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
61
42
|
//#endregion
|
|
62
43
|
export { genderApiQueryByFirstName };
|
|
63
44
|
//# sourceMappingURL=query-by-first-name.d.mts.map
|
|
@@ -9,19 +9,19 @@ const GenderApiQueryByFirstNameInput = z.object({
|
|
|
9
9
|
first_name: z.string().describe("Name to query.")
|
|
10
10
|
}).describe("Request parameters for querying gender by first name.");
|
|
11
11
|
const GenderApiQueryByFirstName_QueryByFirstNameInputSchema = z.object({
|
|
12
|
-
id: z.
|
|
13
|
-
ip: z.
|
|
14
|
-
locale: z.
|
|
15
|
-
country: z.
|
|
12
|
+
id: z.string().describe("Client-defined correlation ID, max 50 characters.").nullable().optional(),
|
|
13
|
+
ip: z.string().describe("Valid IPv4 or IPv6 address.").nullable().optional(),
|
|
14
|
+
locale: z.string().describe("Browser locale, e.g., 'en-US'.").nullable().optional(),
|
|
15
|
+
country: z.string().describe("ISO 3166 ALPHA-2 country code.").nullable().optional(),
|
|
16
16
|
first_name: z.string().describe("Name to query.").nullable()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema = z.object({
|
|
19
|
-
country: z.
|
|
20
|
-
samples: z.
|
|
19
|
+
country: z.string().describe("The country found (may be null).").nullable().optional(),
|
|
20
|
+
samples: z.number().int().describe("Number of database records matching the request. Only present when result_found is true.").nullable().optional(),
|
|
21
21
|
duration: z.string().describe("Server processing time, e.g., '436ms'.").nullable(),
|
|
22
22
|
credits_used: z.number().int().describe("Requests (credits) used for this query.").nullable(),
|
|
23
|
-
first_name_sanitized: z.
|
|
24
|
-
});
|
|
23
|
+
first_name_sanitized: z.string().describe("Name after normalization. Only present when result_found is true.").nullable().optional()
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const genderApiQueryByFirstName = action("GENDER_API_QUERY_BY_FIRST_NAME", {
|
|
26
26
|
slug: "gender_api-query-by-first-name",
|
|
27
27
|
name: "Gender From First Name",
|
|
@@ -29,16 +29,16 @@ const genderApiQueryByFirstName = action("GENDER_API_QUERY_BY_FIRST_NAME", {
|
|
|
29
29
|
input: GenderApiQueryByFirstNameInput,
|
|
30
30
|
output: z.object({
|
|
31
31
|
input: GenderApiQueryByFirstName_QueryByFirstNameInputSchema.nullable(),
|
|
32
|
-
gender: z.
|
|
32
|
+
gender: z.enum([
|
|
33
33
|
"male",
|
|
34
34
|
"female",
|
|
35
35
|
"unknown"
|
|
36
|
-
]).describe("One of: male, female, unknown. Only present when result_found is true.").optional()
|
|
36
|
+
]).describe("One of: male, female, unknown. Only present when result_found is true.").nullable().optional(),
|
|
37
37
|
details: GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema.nullable(),
|
|
38
|
-
first_name: z.
|
|
39
|
-
probability: z.
|
|
38
|
+
first_name: z.string().describe("The first name used for genderization. Only present when result_found is true.").nullable().optional(),
|
|
39
|
+
probability: z.number().describe("Reliability of the result between 0 and 1. Only present when result_found is true.").nullable().optional(),
|
|
40
40
|
result_found: z.boolean().describe("True if a gender could be determined for the name.").nullable()
|
|
41
|
-
})
|
|
41
|
+
}).passthrough()
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { genderApiQueryByFirstName };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-first-name.mjs","names":[],"sources":["../../src/actions/query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Client-defined correlation ID, max 50 characters.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address.\").optional(),\n locale: z.string().describe(\"Browser locale, e.g., 'en-US'.\").optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code.\").optional(),\n first_name: z.string().describe(\"Name to query.\"),\n}).describe(\"Request parameters for querying gender by first name.\");\nconst GenderApiQueryByFirstName_QueryByFirstNameInputSchema = z.object({\n id: z.
|
|
1
|
+
{"version":3,"file":"query-by-first-name.mjs","names":[],"sources":["../../src/actions/query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Client-defined correlation ID, max 50 characters.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address.\").optional(),\n locale: z.string().describe(\"Browser locale, e.g., 'en-US'.\").optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code.\").optional(),\n first_name: z.string().describe(\"Name to query.\"),\n}).describe(\"Request parameters for querying gender by first name.\");\nconst GenderApiQueryByFirstName_QueryByFirstNameInputSchema = z.object({\n id: z.string().describe(\"Client-defined correlation ID, max 50 characters.\").nullable().optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address.\").nullable().optional(),\n locale: z.string().describe(\"Browser locale, e.g., 'en-US'.\").nullable().optional(),\n country: z.string().describe(\"ISO 3166 ALPHA-2 country code.\").nullable().optional(),\n first_name: z.string().describe(\"Name to query.\").nullable(),\n}).passthrough();\nconst GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema = z.object({\n country: z.string().describe(\"The country found (may be null).\").nullable().optional(),\n samples: z.number().int().describe(\"Number of database records matching the request. Only present when result_found is true.\").nullable().optional(),\n duration: z.string().describe(\"Server processing time, e.g., '436ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests (credits) used for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Name after normalization. Only present when result_found is true.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiQueryByFirstNameOutput = z.object({\n input: GenderApiQueryByFirstName_QueryByFirstNameInputSchema.nullable(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"One of: male, female, unknown. Only present when result_found is true.\").nullable().optional(),\n details: GenderApiQueryByFirstName_QueryByFirstNameDetailsSchema.nullable(),\n first_name: z.string().describe(\"The first name used for genderization. Only present when result_found is true.\").nullable().optional(),\n probability: z.number().describe(\"Reliability of the result between 0 and 1. Only present when result_found is true.\").nullable().optional(),\n result_found: z.boolean().describe(\"True if a gender could be determined for the name.\").nullable(),\n}).passthrough();\n\nexport const genderApiQueryByFirstName = action(\"GENDER_API_QUERY_BY_FIRST_NAME\", {\n slug: \"gender_api-query-by-first-name\",\n name: \"Gender From First Name\",\n description: \"Tool to determine the gender of a first name. Use when you need to identify gender based on a given name.\",\n input: GenderApiQueryByFirstNameInput,\n output: GenderApiQueryByFirstNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SA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OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,OAAO,sDAAsD,SAAS;EACtE,QAAQ,EAAE,KAAK;GAAC;GAAQ;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,SAAS,wDAAwD,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -9,32 +9,32 @@ const GenderApiQueryByFullNameInput = zod.z.object({
|
|
|
9
9
|
full_name: zod.z.string().describe("Full name to query; must contain at least one non-space character.")
|
|
10
10
|
}).describe("Request model for querying gender by full name.");
|
|
11
11
|
const GenderApiQueryByFullName_QueryByFullNameRequestSchema = zod.z.object({
|
|
12
|
-
id: zod.z.
|
|
13
|
-
ip: zod.z.
|
|
14
|
-
locale: zod.z.
|
|
15
|
-
country: zod.z.
|
|
12
|
+
id: zod.z.string().describe("Arbitrary ID (max 50 chars) for correlating batch responses.").nullable().optional(),
|
|
13
|
+
ip: zod.z.string().describe("Valid IPv4 or IPv6 address for geo-based gender inference.").nullable().optional(),
|
|
14
|
+
locale: zod.z.string().describe("Browser locale string (e.g., en_US) for more accurate inference.").nullable().optional(),
|
|
15
|
+
country: zod.z.string().describe("ISO 3166 alpha-2 country code to hint regional gender conventions.").nullable().optional(),
|
|
16
16
|
full_name: zod.z.string().describe("Full name to query; must contain at least one non-space character.").nullable()
|
|
17
|
-
}).describe("Request model for querying gender by full name.");
|
|
17
|
+
}).passthrough().describe("Request model for querying gender by full name.");
|
|
18
18
|
const GenderApiQueryByFullName_DetailsSchema = zod.z.object({
|
|
19
|
-
country: zod.z.
|
|
20
|
-
samples: zod.z.
|
|
19
|
+
country: zod.z.string().describe("Country code determined by API.").nullable().optional(),
|
|
20
|
+
samples: zod.z.number().int().describe("Number of matching records. May be absent when no result is found.").nullable().optional(),
|
|
21
21
|
duration: zod.z.string().describe("Server processing time (e.g., '120ms').").nullable(),
|
|
22
22
|
credits_used: zod.z.number().int().describe("Number of credits consumed by this query.").nullable(),
|
|
23
|
-
first_name_sanitized: zod.z.
|
|
24
|
-
});
|
|
23
|
+
first_name_sanitized: zod.z.string().describe("Sanitized first name used for lookup. May be absent when no result is found.").nullable().optional()
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const GenderApiQueryByFullNameOutput = zod.z.object({
|
|
26
26
|
input: GenderApiQueryByFullName_QueryByFullNameRequestSchema.nullable(),
|
|
27
|
-
gender: zod.z.
|
|
27
|
+
gender: zod.z.enum([
|
|
28
28
|
"male",
|
|
29
29
|
"female",
|
|
30
30
|
"unknown"
|
|
31
|
-
]).describe("Inferred gender category. Only present when result_found is true.").optional()
|
|
31
|
+
]).describe("Inferred gender category. Only present when result_found is true.").nullable().optional(),
|
|
32
32
|
details: GenderApiQueryByFullName_DetailsSchema.nullable(),
|
|
33
|
-
last_name: zod.z.
|
|
34
|
-
first_name: zod.z.
|
|
35
|
-
probability: zod.z.
|
|
33
|
+
last_name: zod.z.string().describe("Parsed last name from the full_name. Only present when result_found is true.").nullable().optional(),
|
|
34
|
+
first_name: zod.z.string().describe("Parsed first name from the full_name. Only present when result_found is true.").nullable().optional(),
|
|
35
|
+
probability: zod.z.number().describe("Confidence score from 0.0 to 1.0. Only present when result_found is true.").nullable().optional(),
|
|
36
36
|
result_found: zod.z.boolean().describe("Whether a matching gender record was found.").nullable()
|
|
37
|
-
}).describe("Response model from gender-api.com for a single-name lookup.");
|
|
37
|
+
}).passthrough().describe("Response model from gender-api.com for a single-name lookup.");
|
|
38
38
|
const genderApiQueryByFullName = require_action.action("GENDER_API_QUERY_BY_FULL_NAME", {
|
|
39
39
|
slug: "gender_api-query-by-full-name",
|
|
40
40
|
name: "Query Gender by Full Name",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-full-name.cjs","names":["z","action"],"sources":["../../src/actions/query-by-full-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByFullNameInput = z.object({\n id: z.string().describe(\"Arbitrary ID (max 50 chars) for correlating batch responses.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based gender inference.\").optional(),\n locale: z.string().describe(\"Browser locale string (e.g., en_US) for more accurate inference.\").optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code to hint regional gender conventions.\").optional(),\n full_name: z.string().describe(\"Full name to query; must contain at least one non-space character.\"),\n}).describe(\"Request model for querying gender by full name.\");\nconst GenderApiQueryByFullName_QueryByFullNameRequestSchema = z.object({\n id: z.
|
|
1
|
+
{"version":3,"file":"query-by-full-name.cjs","names":["z","action"],"sources":["../../src/actions/query-by-full-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByFullNameInput = z.object({\n id: z.string().describe(\"Arbitrary ID (max 50 chars) for correlating batch responses.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based gender inference.\").optional(),\n locale: z.string().describe(\"Browser locale string (e.g., en_US) for more accurate inference.\").optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code to hint regional gender conventions.\").optional(),\n full_name: z.string().describe(\"Full name to query; must contain at least one non-space character.\"),\n}).describe(\"Request model for querying gender by full name.\");\nconst GenderApiQueryByFullName_QueryByFullNameRequestSchema = z.object({\n id: z.string().describe(\"Arbitrary ID (max 50 chars) for correlating batch responses.\").nullable().optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based gender inference.\").nullable().optional(),\n locale: z.string().describe(\"Browser locale string (e.g., en_US) for more accurate inference.\").nullable().optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code to hint regional gender conventions.\").nullable().optional(),\n full_name: z.string().describe(\"Full name to query; must contain at least one non-space character.\").nullable(),\n}).passthrough().describe(\"Request model for querying gender by full name.\");\nconst GenderApiQueryByFullName_DetailsSchema = z.object({\n country: z.string().describe(\"Country code determined by API.\").nullable().optional(),\n samples: z.number().int().describe(\"Number of matching records. May be absent when no result is found.\").nullable().optional(),\n duration: z.string().describe(\"Server processing time (e.g., '120ms').\").nullable(),\n credits_used: z.number().int().describe(\"Number of credits consumed by this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Sanitized first name used for lookup. May be absent when no result is found.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiQueryByFullNameOutput = z.object({\n input: GenderApiQueryByFullName_QueryByFullNameRequestSchema.nullable(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"Inferred gender category. Only present when result_found is true.\").nullable().optional(),\n details: GenderApiQueryByFullName_DetailsSchema.nullable(),\n last_name: z.string().describe(\"Parsed last name from the full_name. Only present when result_found is true.\").nullable().optional(),\n first_name: z.string().describe(\"Parsed first name from the full_name. Only present when result_found is true.\").nullable().optional(),\n probability: z.number().describe(\"Confidence score from 0.0 to 1.0. Only present when result_found is true.\").nullable().optional(),\n result_found: z.boolean().describe(\"Whether a matching gender record was found.\").nullable(),\n}).passthrough().describe(\"Response model from gender-api.com for a single-name lookup.\");\n\nexport const genderApiQueryByFullName = action(\"GENDER_API_QUERY_BY_FULL_NAME\", {\n slug: \"gender_api-query-by-full-name\",\n name: \"Query Gender by Full Name\",\n description: \"Tool to determine gender by splitting a full name. Use when you have an exact full name string and want to infer gender. Slightly less reliable for rare or ambiguous names.\",\n input: GenderApiQueryByFullNameInput,\n output: GenderApiQueryByFullNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IA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AC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAO,sDAAsD,SAAS;CACtE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,SAAS,uCAAuC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,56 +10,36 @@ declare const GenderApiQueryByFullNameInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const GenderApiQueryByFullNameOutput: z.ZodObject<{
|
|
12
12
|
input: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
id: z.
|
|
14
|
-
ip: z.
|
|
15
|
-
locale: z.
|
|
16
|
-
country: z.
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
full_name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
gender: z.
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
20
20
|
unknown: "unknown";
|
|
21
21
|
male: "male";
|
|
22
22
|
female: "female";
|
|
23
23
|
}>>>;
|
|
24
24
|
details: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
country: z.
|
|
26
|
-
samples: z.
|
|
25
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
samples: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
duration: z.ZodNullable<z.ZodString>;
|
|
28
28
|
credits_used: z.ZodNullable<z.ZodNumber>;
|
|
29
|
-
first_name_sanitized: z.
|
|
30
|
-
}, z.core.$
|
|
31
|
-
last_name: z.
|
|
32
|
-
first_name: z.
|
|
33
|
-
probability: z.
|
|
29
|
+
first_name_sanitized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
34
|
result_found: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const genderApiQueryByFullName: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
full_name: string;
|
|
38
38
|
id?: string | undefined;
|
|
39
39
|
ip?: string | undefined;
|
|
40
40
|
locale?: string | undefined;
|
|
41
41
|
country?: string | undefined;
|
|
42
|
-
},
|
|
43
|
-
input: {
|
|
44
|
-
full_name: string | null;
|
|
45
|
-
id?: string | undefined;
|
|
46
|
-
ip?: string | undefined;
|
|
47
|
-
locale?: string | undefined;
|
|
48
|
-
country?: string | undefined;
|
|
49
|
-
} | null;
|
|
50
|
-
details: {
|
|
51
|
-
duration: string | null;
|
|
52
|
-
credits_used: number | null;
|
|
53
|
-
country?: string | undefined;
|
|
54
|
-
samples?: number | undefined;
|
|
55
|
-
first_name_sanitized?: string | undefined;
|
|
56
|
-
} | null;
|
|
57
|
-
result_found: boolean | null;
|
|
58
|
-
gender?: "unknown" | "male" | "female" | undefined;
|
|
59
|
-
last_name?: string | undefined;
|
|
60
|
-
first_name?: string | undefined;
|
|
61
|
-
probability?: number | undefined;
|
|
62
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
63
43
|
//#endregion
|
|
64
44
|
export { genderApiQueryByFullName };
|
|
65
45
|
//# sourceMappingURL=query-by-full-name.d.cts.map
|