@keystrokehq/gender_api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/get-country-of-origin-v1.cjs +33 -0
- package/dist/actions/get-country-of-origin-v1.cjs.map +1 -0
- package/dist/actions/get-country-of-origin-v1.d.cts +9 -0
- package/dist/actions/get-country-of-origin-v1.d.cts.map +1 -0
- package/dist/actions/get-country-of-origin-v1.d.mts +9 -0
- package/dist/actions/get-country-of-origin-v1.d.mts.map +1 -0
- package/dist/actions/get-country-of-origin-v1.mjs +32 -0
- package/dist/actions/get-country-of-origin-v1.mjs.map +1 -0
- package/dist/actions/get-country-of-origin.cjs +64 -0
- package/dist/actions/get-country-of-origin.cjs.map +1 -0
- package/dist/actions/get-country-of-origin.d.cts +9 -0
- package/dist/actions/get-country-of-origin.d.cts.map +1 -0
- package/dist/actions/get-country-of-origin.d.mts +9 -0
- package/dist/actions/get-country-of-origin.d.mts.map +1 -0
- package/dist/actions/get-country-of-origin.mjs +63 -0
- package/dist/actions/get-country-of-origin.mjs.map +1 -0
- package/dist/actions/get-statistic.cjs +29 -0
- package/dist/actions/get-statistic.cjs.map +1 -0
- package/dist/actions/get-statistic.d.cts +9 -0
- package/dist/actions/get-statistic.d.cts.map +1 -0
- package/dist/actions/get-statistic.d.mts +9 -0
- package/dist/actions/get-statistic.d.mts.map +1 -0
- package/dist/actions/get-statistic.mjs +28 -0
- package/dist/actions/get-statistic.mjs.map +1 -0
- package/dist/actions/index.cjs +19 -0
- package/dist/actions/index.d.cts +10 -0
- package/dist/actions/index.d.mts +10 -0
- package/dist/actions/index.mjs +10 -0
- package/dist/actions/query-by-email-address-multiple.cjs +54 -0
- package/dist/actions/query-by-email-address-multiple.cjs.map +1 -0
- package/dist/actions/query-by-email-address-multiple.d.cts +9 -0
- package/dist/actions/query-by-email-address-multiple.d.cts.map +1 -0
- package/dist/actions/query-by-email-address-multiple.d.mts +9 -0
- package/dist/actions/query-by-email-address-multiple.d.mts.map +1 -0
- package/dist/actions/query-by-email-address-multiple.mjs +53 -0
- package/dist/actions/query-by-email-address-multiple.mjs.map +1 -0
- package/dist/actions/query-by-email-address.cjs +49 -0
- package/dist/actions/query-by-email-address.cjs.map +1 -0
- package/dist/actions/query-by-email-address.d.cts +9 -0
- package/dist/actions/query-by-email-address.d.cts.map +1 -0
- package/dist/actions/query-by-email-address.d.mts +9 -0
- package/dist/actions/query-by-email-address.d.mts.map +1 -0
- package/dist/actions/query-by-email-address.mjs +48 -0
- package/dist/actions/query-by-email-address.mjs.map +1 -0
- package/dist/actions/query-by-first-name.cjs +47 -0
- package/dist/actions/query-by-first-name.cjs.map +1 -0
- package/dist/actions/query-by-first-name.d.cts +9 -0
- package/dist/actions/query-by-first-name.d.cts.map +1 -0
- package/dist/actions/query-by-first-name.d.mts +9 -0
- package/dist/actions/query-by-first-name.d.mts.map +1 -0
- package/dist/actions/query-by-first-name.mjs +46 -0
- package/dist/actions/query-by-first-name.mjs.map +1 -0
- package/dist/actions/query-by-full-name.cjs +48 -0
- package/dist/actions/query-by-full-name.cjs.map +1 -0
- package/dist/actions/query-by-full-name.d.cts +9 -0
- package/dist/actions/query-by-full-name.d.cts.map +1 -0
- package/dist/actions/query-by-full-name.d.mts +9 -0
- package/dist/actions/query-by-full-name.d.mts.map +1 -0
- package/dist/actions/query-by-full-name.mjs +47 -0
- package/dist/actions/query-by-full-name.mjs.map +1 -0
- package/dist/actions/query-gender-by-first-name-multiple.cjs +48 -0
- package/dist/actions/query-gender-by-first-name-multiple.cjs.map +1 -0
- package/dist/actions/query-gender-by-first-name-multiple.d.cts +9 -0
- package/dist/actions/query-gender-by-first-name-multiple.d.cts.map +1 -0
- package/dist/actions/query-gender-by-first-name-multiple.d.mts +9 -0
- package/dist/actions/query-gender-by-first-name-multiple.d.mts.map +1 -0
- package/dist/actions/query-gender-by-first-name-multiple.mjs +47 -0
- package/dist/actions/query-gender-by-first-name-multiple.mjs.map +1 -0
- package/dist/actions/query-gender-by-full-name-multiple.cjs +49 -0
- package/dist/actions/query-gender-by-full-name-multiple.cjs.map +1 -0
- package/dist/actions/query-gender-by-full-name-multiple.d.cts +9 -0
- package/dist/actions/query-gender-by-full-name-multiple.d.cts.map +1 -0
- package/dist/actions/query-gender-by-full-name-multiple.d.mts +9 -0
- package/dist/actions/query-gender-by-full-name-multiple.d.mts.map +1 -0
- package/dist/actions/query-gender-by-full-name-multiple.mjs +48 -0
- package/dist/actions/query-gender-by-full-name-multiple.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.mjs +13 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/gender_api
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `gender_api`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 9
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { genderApiGetCountryOfOrigin } from "@keystrokehq/gender_api/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "gender_api-agent",
|
|
15
|
+
tools: [genderApiGetCountryOfOrigin],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.genderApi.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeGenderApiTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["genderApi","executeGenderApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return genderApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGenderApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { genderApi } from "./app.mjs";
|
|
2
|
+
import { executeGenderApiTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return genderApi.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeGenderApiTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return genderApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGenderApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-country-of-origin-v1.ts
|
|
4
|
+
const GenderApiGetCountryOfOriginV1Input = zod.z.object({ name: zod.z.string().describe("First name to query country of origin for. Must contain at least one non-space character.") }).describe("Request model for retrieving country of origin using v1 simple API.");
|
|
5
|
+
const GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = zod.z.object({
|
|
6
|
+
country: zod.z.string().describe("Two-letter ISO country code (e.g., 'AT', 'US').").nullable().optional(),
|
|
7
|
+
probability: zod.z.number().describe("Probability score for this country (0.0 to 1.0).").nullable().optional(),
|
|
8
|
+
country_name: zod.z.string().describe("Full name of the country (e.g., 'Austria', 'United States').").nullable().optional(),
|
|
9
|
+
continental_region: zod.z.string().describe("Continental region (e.g., 'Europe', 'Asia', 'Americas').").nullable().optional(),
|
|
10
|
+
statistical_region: zod.z.string().describe("Statistical region (e.g., 'Western Europe', 'Eastern Asia').").nullable().optional()
|
|
11
|
+
}).describe("Model for individual country of origin item.");
|
|
12
|
+
const GenderApiGetCountryOfOriginV1Output = zod.z.object({
|
|
13
|
+
name: zod.z.string().describe("The name that was queried (lowercase).").nullable().optional(),
|
|
14
|
+
gender: zod.z.string().describe("The predicted gender for the name (e.g., 'male', 'female').").nullable().optional(),
|
|
15
|
+
samples: zod.z.number().int().describe("Number of samples used for the prediction.").nullable().optional(),
|
|
16
|
+
accuracy: zod.z.number().int().describe("Accuracy percentage (0-100).").nullable().optional(),
|
|
17
|
+
duration: zod.z.string().describe("Duration of the API request (e.g., '60ms').").nullable().optional(),
|
|
18
|
+
credits_used: zod.z.number().int().describe("Number of API credits used for this request.").nullable().optional(),
|
|
19
|
+
name_sanitized: zod.z.string().describe("The sanitized/capitalized version of the name.").nullable().optional(),
|
|
20
|
+
country_of_origin: zod.z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe("List of possible countries of origin with probability scores, ordered by likelihood.").nullable().optional(),
|
|
21
|
+
country_of_origin_map_url: zod.z.string().describe("URL to a visual map showing the country distribution.").nullable().optional()
|
|
22
|
+
}).describe("Response model from gender-api.com v1 country of origin endpoint.");
|
|
23
|
+
const genderApiGetCountryOfOriginV1 = require_action.action("GENDER_API_GET_COUNTRY_OF_ORIGIN_V1", {
|
|
24
|
+
slug: "gender_api-get-country-of-origin-v1",
|
|
25
|
+
name: "Get Country of Origin (v1)",
|
|
26
|
+
description: "Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.",
|
|
27
|
+
input: GenderApiGetCountryOfOriginV1Input,
|
|
28
|
+
output: GenderApiGetCountryOfOriginV1Output
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.genderApiGetCountryOfOriginV1 = genderApiGetCountryOfOriginV1;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-country-of-origin-v1.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input: z.ZodTypeAny = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema: z.ZodTypeAny = z.object({\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").nullable().optional(),\n probability: z.number().describe(\"Probability score for this country (0.0 to 1.0).\").nullable().optional(),\n country_name: z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").nullable().optional(),\n continental_region: z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").nullable().optional(),\n}).describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1 = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN_V1\", {\n slug: \"gender_api-get-country-of-origin-v1\",\n name: \"Get Country of Origin (v1)\",\n description: \"Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.\",\n input: GenderApiGetCountryOfOriginV1Input,\n output: GenderApiGetCountryOfOriginV1Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAA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AAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,mBAAmBA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvM,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,gCAAgCC,eAAAA,OAAO,uCAAuC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-country-of-origin-v1.d.ts
|
|
4
|
+
declare const GenderApiGetCountryOfOriginV1Input: z.ZodTypeAny;
|
|
5
|
+
declare const GenderApiGetCountryOfOriginV1Output: z.ZodTypeAny;
|
|
6
|
+
declare const genderApiGetCountryOfOriginV1: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { genderApiGetCountryOfOriginV1 };
|
|
9
|
+
//# sourceMappingURL=get-country-of-origin-v1.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.d.cts","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAE+B;AAAA,cAQrE,mCAAA,EAAqC,CAAA,CAAE,UAU4B;AAAA,cAEnE,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-country-of-origin-v1.d.ts
|
|
4
|
+
declare const GenderApiGetCountryOfOriginV1Input: z.ZodTypeAny;
|
|
5
|
+
declare const GenderApiGetCountryOfOriginV1Output: z.ZodTypeAny;
|
|
6
|
+
declare const genderApiGetCountryOfOriginV1: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { genderApiGetCountryOfOriginV1 };
|
|
9
|
+
//# sourceMappingURL=get-country-of-origin-v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAE+B;AAAA,cAQrE,mCAAA,EAAqC,CAAA,CAAE,UAU4B;AAAA,cAEnE,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-country-of-origin-v1.ts
|
|
4
|
+
const GenderApiGetCountryOfOriginV1Input = z.object({ name: z.string().describe("First name to query country of origin for. Must contain at least one non-space character.") }).describe("Request model for retrieving country of origin using v1 simple API.");
|
|
5
|
+
const GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({
|
|
6
|
+
country: z.string().describe("Two-letter ISO country code (e.g., 'AT', 'US').").nullable().optional(),
|
|
7
|
+
probability: z.number().describe("Probability score for this country (0.0 to 1.0).").nullable().optional(),
|
|
8
|
+
country_name: z.string().describe("Full name of the country (e.g., 'Austria', 'United States').").nullable().optional(),
|
|
9
|
+
continental_region: z.string().describe("Continental region (e.g., 'Europe', 'Asia', 'Americas').").nullable().optional(),
|
|
10
|
+
statistical_region: z.string().describe("Statistical region (e.g., 'Western Europe', 'Eastern Asia').").nullable().optional()
|
|
11
|
+
}).describe("Model for individual country of origin item.");
|
|
12
|
+
const genderApiGetCountryOfOriginV1 = action("GENDER_API_GET_COUNTRY_OF_ORIGIN_V1", {
|
|
13
|
+
slug: "gender_api-get-country-of-origin-v1",
|
|
14
|
+
name: "Get Country of Origin (v1)",
|
|
15
|
+
description: "Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.",
|
|
16
|
+
input: GenderApiGetCountryOfOriginV1Input,
|
|
17
|
+
output: z.object({
|
|
18
|
+
name: z.string().describe("The name that was queried (lowercase).").nullable().optional(),
|
|
19
|
+
gender: z.string().describe("The predicted gender for the name (e.g., 'male', 'female').").nullable().optional(),
|
|
20
|
+
samples: z.number().int().describe("Number of samples used for the prediction.").nullable().optional(),
|
|
21
|
+
accuracy: z.number().int().describe("Accuracy percentage (0-100).").nullable().optional(),
|
|
22
|
+
duration: z.string().describe("Duration of the API request (e.g., '60ms').").nullable().optional(),
|
|
23
|
+
credits_used: z.number().int().describe("Number of API credits used for this request.").nullable().optional(),
|
|
24
|
+
name_sanitized: z.string().describe("The sanitized/capitalized version of the name.").nullable().optional(),
|
|
25
|
+
country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe("List of possible countries of origin with probability scores, ordered by likelihood.").nullable().optional(),
|
|
26
|
+
country_of_origin_map_url: z.string().describe("URL to a visual map showing the country distribution.").nullable().optional()
|
|
27
|
+
}).describe("Response model from gender-api.com v1 country of origin endpoint.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { genderApiGetCountryOfOriginV1 };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=get-country-of-origin-v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.mjs","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input: z.ZodTypeAny = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema: z.ZodTypeAny = z.object({\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").nullable().optional(),\n probability: z.number().describe(\"Probability score for this country (0.0 to 1.0).\").nullable().optional(),\n country_name: z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").nullable().optional(),\n continental_region: z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").nullable().optional(),\n}).describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1 = action(\"GENDER_API_GET_COUNTRY_OF_ORIGIN_V1\", {\n slug: \"gender_api-get-country-of-origin-v1\",\n name: \"Get Country of Origin (v1)\",\n description: \"Tool to get the country of origin for a given first name using v1 API. Returns the most likely country where the name is most common.\",\n input: GenderApiGetCountryOfOriginV1Input,\n output: GenderApiGetCountryOfOriginV1Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO,EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAsE,EAAE,OAAO;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAa1D,MAAa,gCAAgC,OAAO,uCAAuC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB+D,EAAE,OAAO;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,mBAAmB,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvM,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-country-of-origin.ts
|
|
4
|
+
const GenderApiGetCountryOfOriginInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("Client-defined request ID for correlation (max 50 chars).").optional(),
|
|
6
|
+
email: zod.z.string().describe("Email address to query; can be provided instead of first_name.").optional(),
|
|
7
|
+
full_name: zod.z.string().describe("Full name to query; can be provided instead of first_name.").optional(),
|
|
8
|
+
first_name: zod.z.string().describe("First name to query. Required if full_name and email are not provided.").optional()
|
|
9
|
+
}).describe("Request model for retrieving a name's country of origin.\nProvide exactly one of first_name, full_name, or email.");
|
|
10
|
+
const GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("Client-defined request ID for correlation (max 50 chars).").nullable().optional(),
|
|
12
|
+
email: zod.z.string().describe("Email address to query; can be provided instead of first_name.").nullable().optional(),
|
|
13
|
+
full_name: zod.z.string().describe("Full name to query; can be provided instead of first_name.").nullable().optional(),
|
|
14
|
+
first_name: zod.z.string().describe("First name to query. Required if full_name and email are not provided.").nullable().optional()
|
|
15
|
+
}).describe("Request model for retrieving a name's country of origin.\nProvide exactly one of first_name, full_name, or email.");
|
|
16
|
+
const GenderApiGetCountryOfOrigin_DetailsSchema = zod.z.object({
|
|
17
|
+
country: zod.z.string().describe("Single best-guess country.").nullable().optional(),
|
|
18
|
+
samples: zod.z.number().int().describe("Count of matching records used."),
|
|
19
|
+
duration: zod.z.string().describe("Server processing time."),
|
|
20
|
+
credits_used: zod.z.number().int().describe("Number of requests charged for this query."),
|
|
21
|
+
first_name_sanitized: zod.z.string().describe("Normalized version of the name.").nullable().optional()
|
|
22
|
+
});
|
|
23
|
+
const GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = zod.z.object({
|
|
24
|
+
id: zod.z.string().describe("Identifier of the ethnic group."),
|
|
25
|
+
name: zod.z.string().describe("Name of the ethnic group."),
|
|
26
|
+
percentage: zod.z.number().describe("Percentage share of this ethnic group.")
|
|
27
|
+
});
|
|
28
|
+
const GenderApiGetCountryOfOrigin_EthnicitySchema = zod.z.object({
|
|
29
|
+
id: zod.z.string().describe("Primary ethnic group identifier.").nullable().optional(),
|
|
30
|
+
name: zod.z.string().describe("Primary ethnic group name.").nullable().optional(),
|
|
31
|
+
distribution: zod.z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe("Distribution across ethnic groups.").nullable().optional()
|
|
32
|
+
});
|
|
33
|
+
const GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = zod.z.object({
|
|
34
|
+
country: zod.z.string().describe("ISO country code."),
|
|
35
|
+
probability: zod.z.number().describe("Probability score for this country's origin."),
|
|
36
|
+
country_name: zod.z.string().describe("Full country name."),
|
|
37
|
+
continental_region: zod.z.string().describe("Continental region name.").nullable().optional(),
|
|
38
|
+
statistical_region: zod.z.string().describe("Statistical sub-region name.").nullable().optional()
|
|
39
|
+
});
|
|
40
|
+
const GenderApiGetCountryOfOriginOutput = zod.z.object({
|
|
41
|
+
input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),
|
|
42
|
+
gender: zod.z.string().describe("Detected gender: male, female, or unknown.").nullable().optional(),
|
|
43
|
+
details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),
|
|
44
|
+
meaning: zod.z.string().describe("Short description of the name's meaning.").nullable().optional(),
|
|
45
|
+
ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),
|
|
46
|
+
last_name: zod.z.string().describe("Last name extracted from full_name or email, if provided.").nullable().optional(),
|
|
47
|
+
first_name: zod.z.string().describe("First name used for analysis.").nullable().optional(),
|
|
48
|
+
probability: zod.z.number().describe("Overall reliability score (0-1)."),
|
|
49
|
+
result_found: zod.z.boolean().describe("Whether a result was found."),
|
|
50
|
+
country_of_origin: zod.z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe("Top 25 likely countries of origin."),
|
|
51
|
+
language_of_origin: zod.z.string().describe("Likely language of origin.").nullable().optional(),
|
|
52
|
+
country_of_origin_map_url: zod.z.string().describe("URL to interactive map for this name.")
|
|
53
|
+
});
|
|
54
|
+
const genderApiGetCountryOfOrigin = require_action.action("GENDER_API_GET_COUNTRY_OF_ORIGIN", {
|
|
55
|
+
slug: "gender_api-get-country-of-origin",
|
|
56
|
+
name: "Get Country of Origin",
|
|
57
|
+
description: "Tool to retrieve a name's likely countries of origin. Use after confirming the name identifier.",
|
|
58
|
+
input: GenderApiGetCountryOfOriginInput,
|
|
59
|
+
output: GenderApiGetCountryOfOriginOutput
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
exports.genderApiGetCountryOfOrigin = genderApiGetCountryOfOrigin;
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=get-country-of-origin.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-country-of-origin.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginInput: z.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"],"m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C,CAAC,SAAS;CAC9F,SAAS,0CAA0C,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAW,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACnE,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;CAChE,mBAAmBA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oCAAoC;CAC/H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AACxF,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { genderApiGetCountryOfOrigin };
|
|
9
|
+
//# sourceMappingURL=get-country-of-origin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-country-of-origin.d.cts","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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { genderApiGetCountryOfOrigin };
|
|
9
|
+
//# sourceMappingURL=get-country-of-origin.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-country-of-origin.ts
|
|
4
|
+
const GenderApiGetCountryOfOriginInput = z.object({
|
|
5
|
+
id: z.string().describe("Client-defined request ID for correlation (max 50 chars).").optional(),
|
|
6
|
+
email: z.string().describe("Email address to query; can be provided instead of first_name.").optional(),
|
|
7
|
+
full_name: z.string().describe("Full name to query; can be provided instead of first_name.").optional(),
|
|
8
|
+
first_name: z.string().describe("First name to query. Required if full_name and email are not provided.").optional()
|
|
9
|
+
}).describe("Request model for retrieving a name's country of origin.\nProvide exactly one of first_name, full_name, or email.");
|
|
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()
|
|
15
|
+
}).describe("Request model for retrieving a name's country of origin.\nProvide exactly one of first_name, full_name, or email.");
|
|
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()
|
|
22
|
+
});
|
|
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.")
|
|
27
|
+
});
|
|
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()
|
|
32
|
+
});
|
|
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()
|
|
39
|
+
});
|
|
40
|
+
const genderApiGetCountryOfOrigin = action("GENDER_API_GET_COUNTRY_OF_ORIGIN", {
|
|
41
|
+
slug: "gender_api-get-country-of-origin",
|
|
42
|
+
name: "Get Country of Origin",
|
|
43
|
+
description: "Tool to retrieve a name's likely countries of origin. Use after confirming the name identifier.",
|
|
44
|
+
input: GenderApiGetCountryOfOriginInput,
|
|
45
|
+
output: z.object({
|
|
46
|
+
input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),
|
|
47
|
+
gender: z.string().describe("Detected gender: male, female, or unknown.").nullable().optional(),
|
|
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."),
|
|
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.")
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { genderApiGetCountryOfOrigin };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=get-country-of-origin.mjs.map
|
|
@@ -0,0 +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,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAy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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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-statistic.ts
|
|
4
|
+
const GenderApiGetStatisticInput = zod.z.object({}).describe("Request model for GET /v2/statistic - no parameters.");
|
|
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.")
|
|
8
|
+
});
|
|
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.")
|
|
12
|
+
});
|
|
13
|
+
const GenderApiGetStatisticOutput = zod.z.object({
|
|
14
|
+
details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),
|
|
15
|
+
is_limit_reached: zod.z.boolean().describe("True if no requests left."),
|
|
16
|
+
usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),
|
|
17
|
+
remaining_credits: zod.z.number().int().describe("Number of requests left.")
|
|
18
|
+
});
|
|
19
|
+
const genderApiGetStatistic = require_action.action("GENDER_API_GET_STATISTIC", {
|
|
20
|
+
slug: "gender_api-get-statistic",
|
|
21
|
+
name: "Get Gender API Statistics",
|
|
22
|
+
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.",
|
|
23
|
+
input: GenderApiGetStatisticInput,
|
|
24
|
+
output: GenderApiGetStatisticOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.genderApiGetStatistic = genderApiGetStatistic;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-statistic.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { genderApiGetStatistic };
|
|
9
|
+
//# sourceMappingURL=get-statistic.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { genderApiGetStatistic };
|
|
9
|
+
//# sourceMappingURL=get-statistic.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-statistic.ts
|
|
4
|
+
const GenderApiGetStatisticInput = z.object({}).describe("Request model for GET /v2/statistic - no parameters.");
|
|
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.")
|
|
8
|
+
});
|
|
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.")
|
|
12
|
+
});
|
|
13
|
+
const genderApiGetStatistic = action("GENDER_API_GET_STATISTIC", {
|
|
14
|
+
slug: "gender_api-get-statistic",
|
|
15
|
+
name: "Get Gender API Statistics",
|
|
16
|
+
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.",
|
|
17
|
+
input: GenderApiGetStatisticInput,
|
|
18
|
+
output: z.object({
|
|
19
|
+
details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),
|
|
20
|
+
is_limit_reached: z.boolean().describe("True if no requests left."),
|
|
21
|
+
usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),
|
|
22
|
+
remaining_credits: z.number().int().describe("Number of requests left.")
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { genderApiGetStatistic };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-statistic.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_get_country_of_origin = require("./get-country-of-origin.cjs");
|
|
3
|
+
const require_get_country_of_origin_v1 = require("./get-country-of-origin-v1.cjs");
|
|
4
|
+
const require_get_statistic = require("./get-statistic.cjs");
|
|
5
|
+
const require_query_by_email_address = require("./query-by-email-address.cjs");
|
|
6
|
+
const require_query_by_email_address_multiple = require("./query-by-email-address-multiple.cjs");
|
|
7
|
+
const require_query_by_first_name = require("./query-by-first-name.cjs");
|
|
8
|
+
const require_query_by_full_name = require("./query-by-full-name.cjs");
|
|
9
|
+
const require_query_gender_by_first_name_multiple = require("./query-gender-by-first-name-multiple.cjs");
|
|
10
|
+
const require_query_gender_by_full_name_multiple = require("./query-gender-by-full-name-multiple.cjs");
|
|
11
|
+
exports.genderApiGetCountryOfOrigin = require_get_country_of_origin.genderApiGetCountryOfOrigin;
|
|
12
|
+
exports.genderApiGetCountryOfOriginV1 = require_get_country_of_origin_v1.genderApiGetCountryOfOriginV1;
|
|
13
|
+
exports.genderApiGetStatistic = require_get_statistic.genderApiGetStatistic;
|
|
14
|
+
exports.genderApiQueryByEmailAddress = require_query_by_email_address.genderApiQueryByEmailAddress;
|
|
15
|
+
exports.genderApiQueryByEmailAddressMultiple = require_query_by_email_address_multiple.genderApiQueryByEmailAddressMultiple;
|
|
16
|
+
exports.genderApiQueryByFirstName = require_query_by_first_name.genderApiQueryByFirstName;
|
|
17
|
+
exports.genderApiQueryByFullName = require_query_by_full_name.genderApiQueryByFullName;
|
|
18
|
+
exports.genderApiQueryGenderByFirstNameMultiple = require_query_gender_by_first_name_multiple.genderApiQueryGenderByFirstNameMultiple;
|
|
19
|
+
exports.genderApiQueryGenderByFullNameMultiple = require_query_gender_by_full_name_multiple.genderApiQueryGenderByFullNameMultiple;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { genderApiGetCountryOfOrigin } from "./get-country-of-origin.cjs";
|
|
2
|
+
import { genderApiGetCountryOfOriginV1 } from "./get-country-of-origin-v1.cjs";
|
|
3
|
+
import { genderApiGetStatistic } from "./get-statistic.cjs";
|
|
4
|
+
import { genderApiQueryByEmailAddress } from "./query-by-email-address.cjs";
|
|
5
|
+
import { genderApiQueryByEmailAddressMultiple } from "./query-by-email-address-multiple.cjs";
|
|
6
|
+
import { genderApiQueryByFirstName } from "./query-by-first-name.cjs";
|
|
7
|
+
import { genderApiQueryByFullName } from "./query-by-full-name.cjs";
|
|
8
|
+
import { genderApiQueryGenderByFirstNameMultiple } from "./query-gender-by-first-name-multiple.cjs";
|
|
9
|
+
import { genderApiQueryGenderByFullNameMultiple } from "./query-gender-by-full-name-multiple.cjs";
|
|
10
|
+
export { genderApiGetCountryOfOrigin, genderApiGetCountryOfOriginV1, genderApiGetStatistic, genderApiQueryByEmailAddress, genderApiQueryByEmailAddressMultiple, genderApiQueryByFirstName, genderApiQueryByFullName, genderApiQueryGenderByFirstNameMultiple, genderApiQueryGenderByFullNameMultiple };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { genderApiGetCountryOfOrigin } from "./get-country-of-origin.mjs";
|
|
2
|
+
import { genderApiGetCountryOfOriginV1 } from "./get-country-of-origin-v1.mjs";
|
|
3
|
+
import { genderApiGetStatistic } from "./get-statistic.mjs";
|
|
4
|
+
import { genderApiQueryByEmailAddress } from "./query-by-email-address.mjs";
|
|
5
|
+
import { genderApiQueryByEmailAddressMultiple } from "./query-by-email-address-multiple.mjs";
|
|
6
|
+
import { genderApiQueryByFirstName } from "./query-by-first-name.mjs";
|
|
7
|
+
import { genderApiQueryByFullName } from "./query-by-full-name.mjs";
|
|
8
|
+
import { genderApiQueryGenderByFirstNameMultiple } from "./query-gender-by-first-name-multiple.mjs";
|
|
9
|
+
import { genderApiQueryGenderByFullNameMultiple } from "./query-gender-by-full-name-multiple.mjs";
|
|
10
|
+
export { genderApiGetCountryOfOrigin, genderApiGetCountryOfOriginV1, genderApiGetStatistic, genderApiQueryByEmailAddress, genderApiQueryByEmailAddressMultiple, genderApiQueryByFirstName, genderApiQueryByFullName, genderApiQueryGenderByFirstNameMultiple, genderApiQueryGenderByFullNameMultiple };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { genderApiGetCountryOfOrigin } from "./get-country-of-origin.mjs";
|
|
2
|
+
import { genderApiGetCountryOfOriginV1 } from "./get-country-of-origin-v1.mjs";
|
|
3
|
+
import { genderApiGetStatistic } from "./get-statistic.mjs";
|
|
4
|
+
import { genderApiQueryByEmailAddress } from "./query-by-email-address.mjs";
|
|
5
|
+
import { genderApiQueryByEmailAddressMultiple } from "./query-by-email-address-multiple.mjs";
|
|
6
|
+
import { genderApiQueryByFirstName } from "./query-by-first-name.mjs";
|
|
7
|
+
import { genderApiQueryByFullName } from "./query-by-full-name.mjs";
|
|
8
|
+
import { genderApiQueryGenderByFirstNameMultiple } from "./query-gender-by-first-name-multiple.mjs";
|
|
9
|
+
import { genderApiQueryGenderByFullNameMultiple } from "./query-gender-by-full-name-multiple.mjs";
|
|
10
|
+
export { genderApiGetCountryOfOrigin, genderApiGetCountryOfOriginV1, genderApiGetStatistic, genderApiQueryByEmailAddress, genderApiQueryByEmailAddressMultiple, genderApiQueryByFirstName, genderApiQueryByFullName, genderApiQueryGenderByFirstNameMultiple, genderApiQueryGenderByFullNameMultiple };
|