@keystrokehq/gender_api 0.1.5 → 0.1.6
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 +1 -0
- package/dist/actions/get-country-of-origin-v1.cjs.map +1 -1
- package/dist/actions/get-country-of-origin-v1.d.cts +3 -15
- package/dist/actions/get-country-of-origin-v1.d.cts.map +1 -1
- package/dist/actions/get-country-of-origin-v1.d.mts +3 -15
- package/dist/actions/get-country-of-origin-v1.d.mts.map +1 -1
- package/dist/actions/get-country-of-origin-v1.mjs +1 -0
- package/dist/actions/get-country-of-origin-v1.mjs.map +1 -1
- package/dist/actions/get-country-of-origin.cjs +1 -0
- package/dist/actions/get-country-of-origin.cjs.map +1 -1
- package/dist/actions/get-country-of-origin.d.cts +3 -18
- package/dist/actions/get-country-of-origin.d.cts.map +1 -1
- package/dist/actions/get-country-of-origin.d.mts +3 -18
- package/dist/actions/get-country-of-origin.d.mts.map +1 -1
- package/dist/actions/get-country-of-origin.mjs +1 -0
- package/dist/actions/get-country-of-origin.mjs.map +1 -1
- package/dist/actions/get-statistic.cjs +1 -0
- package/dist/actions/get-statistic.cjs.map +1 -1
- package/dist/actions/get-statistic.d.cts +3 -13
- package/dist/actions/get-statistic.d.cts.map +1 -1
- package/dist/actions/get-statistic.d.mts +3 -13
- package/dist/actions/get-statistic.d.mts.map +1 -1
- package/dist/actions/get-statistic.mjs +1 -0
- package/dist/actions/get-statistic.mjs.map +1 -1
- package/dist/actions/query-by-email-address-multiple.cjs +1 -0
- package/dist/actions/query-by-email-address-multiple.cjs.map +1 -1
- package/dist/actions/query-by-email-address-multiple.d.cts +3 -22
- package/dist/actions/query-by-email-address-multiple.d.cts.map +1 -1
- package/dist/actions/query-by-email-address-multiple.d.mts +3 -22
- package/dist/actions/query-by-email-address-multiple.d.mts.map +1 -1
- package/dist/actions/query-by-email-address-multiple.mjs +1 -0
- package/dist/actions/query-by-email-address-multiple.mjs.map +1 -1
- package/dist/actions/query-by-email-address.cjs +1 -0
- package/dist/actions/query-by-email-address.cjs.map +1 -1
- package/dist/actions/query-by-email-address.d.cts +3 -19
- package/dist/actions/query-by-email-address.d.cts.map +1 -1
- package/dist/actions/query-by-email-address.d.mts +3 -19
- package/dist/actions/query-by-email-address.d.mts.map +1 -1
- package/dist/actions/query-by-email-address.mjs +1 -0
- package/dist/actions/query-by-email-address.mjs.map +1 -1
- package/dist/actions/query-by-first-name.cjs +1 -0
- package/dist/actions/query-by-first-name.cjs.map +1 -1
- package/dist/actions/query-by-first-name.d.cts +3 -19
- package/dist/actions/query-by-first-name.d.cts.map +1 -1
- package/dist/actions/query-by-first-name.d.mts +3 -19
- package/dist/actions/query-by-first-name.d.mts.map +1 -1
- package/dist/actions/query-by-first-name.mjs +1 -0
- package/dist/actions/query-by-first-name.mjs.map +1 -1
- package/dist/actions/query-by-full-name.cjs +1 -0
- package/dist/actions/query-by-full-name.cjs.map +1 -1
- package/dist/actions/query-by-full-name.d.cts +3 -19
- package/dist/actions/query-by-full-name.d.cts.map +1 -1
- package/dist/actions/query-by-full-name.d.mts +3 -19
- package/dist/actions/query-by-full-name.d.mts.map +1 -1
- package/dist/actions/query-by-full-name.mjs +1 -0
- package/dist/actions/query-by-full-name.mjs.map +1 -1
- package/dist/actions/query-gender-by-first-name-multiple.cjs +1 -0
- package/dist/actions/query-gender-by-first-name-multiple.cjs.map +1 -1
- package/dist/actions/query-gender-by-first-name-multiple.d.cts +3 -22
- package/dist/actions/query-gender-by-first-name-multiple.d.cts.map +1 -1
- package/dist/actions/query-gender-by-first-name-multiple.d.mts +3 -22
- package/dist/actions/query-gender-by-first-name-multiple.d.mts.map +1 -1
- package/dist/actions/query-gender-by-first-name-multiple.mjs +1 -0
- package/dist/actions/query-gender-by-first-name-multiple.mjs.map +1 -1
- package/dist/actions/query-gender-by-full-name-multiple.cjs +1 -0
- package/dist/actions/query-gender-by-full-name-multiple.cjs.map +1 -1
- package/dist/actions/query-gender-by-full-name-multiple.d.cts +3 -22
- package/dist/actions/query-gender-by-full-name-multiple.d.cts.map +1 -1
- package/dist/actions/query-gender-by-full-name-multiple.d.mts +3 -22
- package/dist/actions/query-gender-by-full-name-multiple.d.mts.map +1 -1
- package/dist/actions/query-gender-by-full-name-multiple.mjs +1 -0
- package/dist/actions/query-gender-by-full-name-multiple.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["genderApi","executeGenderApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["genderApi","executeGenderApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof genderApi.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { genderApi } from \"./app\";\nimport { executeGenderApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof genderApi.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin-v1.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.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}).passthrough().describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").nullable().optional(),\n probability: z.number().describe(\"Probability score for this country (0.0 to 1.0).\").nullable().optional(),\n country_name: z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").nullable().optional(),\n continental_region: z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").nullable().optional(),\n}).passthrough().describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).passthrough().describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1: AppAction<\n typeof GenderApiGetCountryOfOriginV1Input,\n typeof GenderApiGetCountryOfOriginV1Output,\n typeof genderApi.credential\n> = 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":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,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C,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,gCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-country-of-origin-v1.d.ts
|
|
@@ -21,21 +23,7 @@ declare const GenderApiGetCountryOfOriginV1Output: z.ZodObject<{
|
|
|
21
23
|
}, z.core.$loose>>>>;
|
|
22
24
|
country_of_origin_map_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const genderApiGetCountryOfOriginV1:
|
|
25
|
-
name: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const genderApiGetCountryOfOriginV1: AppAction<typeof GenderApiGetCountryOfOriginV1Input, typeof GenderApiGetCountryOfOriginV1Output, typeof genderApi.credential>;
|
|
39
27
|
//#endregion
|
|
40
28
|
export { genderApiGetCountryOfOriginV1 };
|
|
41
29
|
//# sourceMappingURL=get-country-of-origin-v1.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin-v1.d.cts","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.d.cts","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-country-of-origin-v1.d.ts
|
|
@@ -21,21 +23,7 @@ declare const GenderApiGetCountryOfOriginV1Output: z.ZodObject<{
|
|
|
21
23
|
}, z.core.$loose>>>>;
|
|
22
24
|
country_of_origin_map_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const genderApiGetCountryOfOriginV1:
|
|
25
|
-
name: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const genderApiGetCountryOfOriginV1: AppAction<typeof GenderApiGetCountryOfOriginV1Input, typeof GenderApiGetCountryOfOriginV1Output, typeof genderApi.credential>;
|
|
39
27
|
//#endregion
|
|
40
28
|
export { genderApiGetCountryOfOriginV1 };
|
|
41
29
|
//# sourceMappingURL=get-country-of-origin-v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin-v1.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin-v1.mjs","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.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}).passthrough().describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin-v1.mjs","names":[],"sources":["../../src/actions/get-country-of-origin-v1.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiGetCountryOfOriginV1Input = z.object({\n name: z.string().describe(\"First name to query country of origin for. Must contain at least one non-space character.\"),\n}).describe(\"Request model for retrieving country of origin using v1 simple API.\");\nconst GenderApiGetCountryOfOriginV1_CountryOriginItemSchema = z.object({\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'AT', 'US').\").nullable().optional(),\n probability: z.number().describe(\"Probability score for this country (0.0 to 1.0).\").nullable().optional(),\n country_name: z.string().describe(\"Full name of the country (e.g., 'Austria', 'United States').\").nullable().optional(),\n continental_region: z.string().describe(\"Continental region (e.g., 'Europe', 'Asia', 'Americas').\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical region (e.g., 'Western Europe', 'Eastern Asia').\").nullable().optional(),\n}).passthrough().describe(\"Model for individual country of origin item.\");\nexport const GenderApiGetCountryOfOriginV1Output = z.object({\n name: z.string().describe(\"The name that was queried (lowercase).\").nullable().optional(),\n gender: z.string().describe(\"The predicted gender for the name (e.g., 'male', 'female').\").nullable().optional(),\n samples: z.number().int().describe(\"Number of samples used for the prediction.\").nullable().optional(),\n accuracy: z.number().int().describe(\"Accuracy percentage (0-100).\").nullable().optional(),\n duration: z.string().describe(\"Duration of the API request (e.g., '60ms').\").nullable().optional(),\n credits_used: z.number().int().describe(\"Number of API credits used for this request.\").nullable().optional(),\n name_sanitized: z.string().describe(\"The sanitized/capitalized version of the name.\").nullable().optional(),\n country_of_origin: z.array(GenderApiGetCountryOfOriginV1_CountryOriginItemSchema).describe(\"List of possible countries of origin with probability scores, ordered by likelihood.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to a visual map showing the country distribution.\").nullable().optional(),\n}).passthrough().describe(\"Response model from gender-api.com v1 country of origin endpoint.\");\n\nexport const genderApiGetCountryOfOriginV1: AppAction<\n typeof GenderApiGetCountryOfOriginV1Input,\n typeof GenderApiGetCountryOfOriginV1Output,\n typeof genderApi.credential\n> = 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":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EACvH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwD,EAAE,OAAO;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAaxE,MAAa,gCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBiD,EAAE,OAAO;EAC1D,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,YAAY,CAAC,CAAC,SAAS,mEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginInput = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = z.object({\n id: z.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}).passthrough().describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_DetailsSchema = z.object({\n country: z.string().describe(\"Single best-guess country.\").nullable().optional(),\n samples: z.number().int().describe(\"Count of matching records used.\").nullable(),\n duration: z.string().describe(\"Server processing time.\").nullable(),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Normalized version of the name.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\").nullable(),\n name: z.string().describe(\"Name of the ethnic group.\").nullable(),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\").nullable(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({\n id: z.string().describe(\"Primary ethnic group identifier.\").nullable().optional(),\n name: z.string().describe(\"Primary ethnic group name.\").nullable().optional(),\n distribution: z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe(\"Distribution across ethnic groups.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({\n country: z.string().describe(\"ISO country code.\").nullable(),\n probability: z.number().describe(\"Probability score for this country's origin.\").nullable(),\n country_name: z.string().describe(\"Full country name.\").nullable(),\n continental_region: z.string().describe(\"Continental region name.\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical sub-region name.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiGetCountryOfOriginOutput = z.object({\n input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),\n gender: z.string().describe(\"Detected gender: male, female, or unknown.\").nullable().optional(),\n details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),\n meaning: z.string().describe(\"Short description of the name's meaning.\").nullable().optional(),\n ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted from full_name or email, if provided.\").nullable().optional(),\n first_name: z.string().describe(\"First name used for analysis.\").nullable().optional(),\n probability: z.number().describe(\"Overall reliability score (0-1).\").nullable(),\n result_found: z.boolean().describe(\"Whether a result was found.\").nullable(),\n country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe(\"Top 25 likely countries of origin.\"),\n language_of_origin: z.string().describe(\"Likely language of origin.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to interactive map for this name.\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin.cjs","names":["z","action"],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiGetCountryOfOriginInput = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").nullable().optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").nullable().optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").nullable().optional(),\n}).passthrough().describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_DetailsSchema = z.object({\n country: z.string().describe(\"Single best-guess country.\").nullable().optional(),\n samples: z.number().int().describe(\"Count of matching records used.\").nullable(),\n duration: z.string().describe(\"Server processing time.\").nullable(),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Normalized version of the name.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\").nullable(),\n name: z.string().describe(\"Name of the ethnic group.\").nullable(),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\").nullable(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({\n id: z.string().describe(\"Primary ethnic group identifier.\").nullable().optional(),\n name: z.string().describe(\"Primary ethnic group name.\").nullable().optional(),\n distribution: z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe(\"Distribution across ethnic groups.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({\n country: z.string().describe(\"ISO country code.\").nullable(),\n probability: z.number().describe(\"Probability score for this country's origin.\").nullable(),\n country_name: z.string().describe(\"Full country name.\").nullable(),\n continental_region: z.string().describe(\"Continental region name.\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical sub-region name.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiGetCountryOfOriginOutput = z.object({\n input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),\n gender: z.string().describe(\"Detected gender: male, female, or unknown.\").nullable().optional(),\n details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),\n meaning: z.string().describe(\"Short description of the name's meaning.\").nullable().optional(),\n ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted from full_name or email, if provided.\").nullable().optional(),\n first_name: z.string().describe(\"First name used for analysis.\").nullable().optional(),\n probability: z.number().describe(\"Overall reliability score (0-1).\").nullable(),\n result_found: z.boolean().describe(\"Whether a result was found.\").nullable(),\n country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe(\"Top 25 likely countries of origin.\"),\n language_of_origin: z.string().describe(\"Likely language of origin.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to interactive map for this name.\").nullable(),\n}).passthrough();\n\nexport const genderApiGetCountryOfOrigin: AppAction<\n typeof GenderApiGetCountryOfOriginInput,\n typeof GenderApiGetCountryOfOriginOutput,\n typeof genderApi.credential\n> = 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":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAM,uEAAuEA,IAAAA,EAAE,OAAO;CACpF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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AAS;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,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC3E,mBAAmBA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oCAAoC;CAC/H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-country-of-origin.d.ts
|
|
@@ -46,24 +48,7 @@ declare const GenderApiGetCountryOfOriginOutput: z.ZodObject<{
|
|
|
46
48
|
language_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
49
|
country_of_origin_map_url: z.ZodNullable<z.ZodString>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
|
-
declare const genderApiGetCountryOfOrigin:
|
|
50
|
-
id?: string | undefined;
|
|
51
|
-
email?: string | undefined;
|
|
52
|
-
full_name?: string | undefined;
|
|
53
|
-
first_name?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>;
|
|
51
|
+
declare const genderApiGetCountryOfOrigin: AppAction<typeof GenderApiGetCountryOfOriginInput, typeof GenderApiGetCountryOfOriginOutput, typeof genderApi.credential>;
|
|
67
52
|
//#endregion
|
|
68
53
|
export { genderApiGetCountryOfOrigin };
|
|
69
54
|
//# sourceMappingURL=get-country-of-origin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin.d.cts","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin.d.cts","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAoChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAejC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-country-of-origin.d.ts
|
|
@@ -46,24 +48,7 @@ declare const GenderApiGetCountryOfOriginOutput: z.ZodObject<{
|
|
|
46
48
|
language_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
49
|
country_of_origin_map_url: z.ZodNullable<z.ZodString>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
|
-
declare const genderApiGetCountryOfOrigin:
|
|
50
|
-
id?: string | undefined;
|
|
51
|
-
email?: string | undefined;
|
|
52
|
-
full_name?: string | undefined;
|
|
53
|
-
first_name?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>;
|
|
51
|
+
declare const genderApiGetCountryOfOrigin: AppAction<typeof GenderApiGetCountryOfOriginInput, typeof GenderApiGetCountryOfOriginOutput, typeof genderApi.credential>;
|
|
67
52
|
//#endregion
|
|
68
53
|
export { genderApiGetCountryOfOrigin };
|
|
69
54
|
//# sourceMappingURL=get-country-of-origin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin.d.mts","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAoChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAejC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-country-of-origin.mjs","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetCountryOfOriginInput = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").nullable().optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").nullable().optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").nullable().optional(),\n}).passthrough().describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_DetailsSchema = z.object({\n country: z.string().describe(\"Single best-guess country.\").nullable().optional(),\n samples: z.number().int().describe(\"Count of matching records used.\").nullable(),\n duration: z.string().describe(\"Server processing time.\").nullable(),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Normalized version of the name.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\").nullable(),\n name: z.string().describe(\"Name of the ethnic group.\").nullable(),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\").nullable(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({\n id: z.string().describe(\"Primary ethnic group identifier.\").nullable().optional(),\n name: z.string().describe(\"Primary ethnic group name.\").nullable().optional(),\n distribution: z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe(\"Distribution across ethnic groups.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({\n country: z.string().describe(\"ISO country code.\").nullable(),\n probability: z.number().describe(\"Probability score for this country's origin.\").nullable(),\n country_name: z.string().describe(\"Full country name.\").nullable(),\n continental_region: z.string().describe(\"Continental region name.\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical sub-region name.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiGetCountryOfOriginOutput = z.object({\n input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),\n gender: z.string().describe(\"Detected gender: male, female, or unknown.\").nullable().optional(),\n details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),\n meaning: z.string().describe(\"Short description of the name's meaning.\").nullable().optional(),\n ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted from full_name or email, if provided.\").nullable().optional(),\n first_name: z.string().describe(\"First name used for analysis.\").nullable().optional(),\n probability: z.number().describe(\"Overall reliability score (0-1).\").nullable(),\n result_found: z.boolean().describe(\"Whether a result was found.\").nullable(),\n country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe(\"Top 25 likely countries of origin.\"),\n language_of_origin: z.string().describe(\"Likely language of origin.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to interactive map for this name.\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get-country-of-origin.mjs","names":[],"sources":["../../src/actions/get-country-of-origin.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiGetCountryOfOriginInput = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").optional(),\n}).describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema = z.object({\n id: z.string().describe(\"Client-defined request ID for correlation (max 50 chars).\").nullable().optional(),\n email: z.string().describe(\"Email address to query; can be provided instead of first_name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name to query; can be provided instead of first_name.\").nullable().optional(),\n first_name: z.string().describe(\"First name to query. Required if full_name and email are not provided.\").nullable().optional(),\n}).passthrough().describe(\"Request model for retrieving a name's country of origin.\\nProvide exactly one of first_name, full_name, or email.\");\nconst GenderApiGetCountryOfOrigin_DetailsSchema = z.object({\n country: z.string().describe(\"Single best-guess country.\").nullable().optional(),\n samples: z.number().int().describe(\"Count of matching records used.\").nullable(),\n duration: z.string().describe(\"Server processing time.\").nullable(),\n credits_used: z.number().int().describe(\"Number of requests charged for this query.\").nullable(),\n first_name_sanitized: z.string().describe(\"Normalized version of the name.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema = z.object({\n id: z.string().describe(\"Identifier of the ethnic group.\").nullable(),\n name: z.string().describe(\"Name of the ethnic group.\").nullable(),\n percentage: z.number().describe(\"Percentage share of this ethnic group.\").nullable(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_EthnicitySchema = z.object({\n id: z.string().describe(\"Primary ethnic group identifier.\").nullable().optional(),\n name: z.string().describe(\"Primary ethnic group name.\").nullable().optional(),\n distribution: z.array(GenderApiGetCountryOfOrigin_EthnicityDistributionItemSchema).describe(\"Distribution across ethnic groups.\").nullable().optional(),\n}).passthrough();\nconst GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema = z.object({\n country: z.string().describe(\"ISO country code.\").nullable(),\n probability: z.number().describe(\"Probability score for this country's origin.\").nullable(),\n country_name: z.string().describe(\"Full country name.\").nullable(),\n continental_region: z.string().describe(\"Continental region name.\").nullable().optional(),\n statistical_region: z.string().describe(\"Statistical sub-region name.\").nullable().optional(),\n}).passthrough();\nexport const GenderApiGetCountryOfOriginOutput = z.object({\n input: GenderApiGetCountryOfOrigin_GenderApiGetCountryOfOriginRequestSchema.nullable(),\n gender: z.string().describe(\"Detected gender: male, female, or unknown.\").nullable().optional(),\n details: GenderApiGetCountryOfOrigin_DetailsSchema.nullable(),\n meaning: z.string().describe(\"Short description of the name's meaning.\").nullable().optional(),\n ethnicity: GenderApiGetCountryOfOrigin_EthnicitySchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted from full_name or email, if provided.\").nullable().optional(),\n first_name: z.string().describe(\"First name used for analysis.\").nullable().optional(),\n probability: z.number().describe(\"Overall reliability score (0-1).\").nullable(),\n result_found: z.boolean().describe(\"Whether a result was found.\").nullable(),\n country_of_origin: z.array(GenderApiGetCountryOfOrigin_CountryOfOriginItemSchema).describe(\"Top 25 likely countries of origin.\"),\n language_of_origin: z.string().describe(\"Likely language of origin.\").nullable().optional(),\n country_of_origin_map_url: z.string().describe(\"URL to interactive map for this name.\").nullable(),\n}).passthrough();\n\nexport const genderApiGetCountryOfOrigin: AppAction<\n typeof GenderApiGetCountryOfOriginInput,\n typeof GenderApiGetCountryOfOriginOutput,\n typeof genderApi.credential\n> = 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":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,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,uEAAuE,EAAE,OAAO;CACpF,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,YAAY,CAAC,CAAC,SAAS,mHAAmH;AAC7I,MAAM,4CAA4C,EAAE,OAAO;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,O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{ z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetStatisticInput = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\").nullable(),\n}).passthrough();\nconst GenderApiGetStatistic_UsageLastMonthSchema = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\").nullable(),\n credits_used: z.number().int().describe(\"Requests used last month.\").nullable(),\n}).passthrough();\nexport const GenderApiGetStatisticOutput = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\").nullable(),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get-statistic.cjs","names":["z","action"],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiGetStatisticInput = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\").nullable(),\n}).passthrough();\nconst GenderApiGetStatistic_UsageLastMonthSchema = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\").nullable(),\n credits_used: z.number().int().describe(\"Requests used last month.\").nullable(),\n}).passthrough();\nexport const GenderApiGetStatisticOutput = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\").nullable(),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\").nullable(),\n}).passthrough();\n\nexport const genderApiGetStatistic: AppAction<\n typeof GenderApiGetStatisticInput,\n typeof GenderApiGetStatisticOutput,\n typeof genderApi.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACtH,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAAS,6CAA6C,SAAS;CAC/D,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,kBAAkB,2CAA2C,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-statistic.d.ts
|
|
@@ -14,19 +16,7 @@ declare const GenderApiGetStatisticOutput: z.ZodObject<{
|
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
remaining_credits: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const genderApiGetStatistic:
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const genderApiGetStatistic: AppAction<typeof GenderApiGetStatisticInput, typeof GenderApiGetStatisticOutput, typeof genderApi.credential>;
|
|
30
20
|
//#endregion
|
|
31
21
|
export { genderApiGetStatistic };
|
|
32
22
|
//# sourceMappingURL=get-statistic.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-statistic.d.cts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-statistic.d.cts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-statistic.d.ts
|
|
@@ -14,19 +16,7 @@ declare const GenderApiGetStatisticOutput: z.ZodObject<{
|
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
remaining_credits: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const genderApiGetStatistic:
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const genderApiGetStatistic: AppAction<typeof GenderApiGetStatisticInput, typeof GenderApiGetStatisticOutput, typeof genderApi.credential>;
|
|
30
20
|
//#endregion
|
|
31
21
|
export { genderApiGetStatistic };
|
|
32
22
|
//# sourceMappingURL=get-statistic.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-statistic.d.mts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-statistic.d.mts","names":[],"sources":["../../src/actions/get-statistic.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-statistic.mjs","names":[],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiGetStatisticInput = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\").nullable(),\n}).passthrough();\nconst GenderApiGetStatistic_UsageLastMonthSchema = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\").nullable(),\n credits_used: z.number().int().describe(\"Requests used last month.\").nullable(),\n}).passthrough();\nexport const GenderApiGetStatisticOutput = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\").nullable(),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get-statistic.mjs","names":[],"sources":["../../src/actions/get-statistic.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiGetStatisticInput = z.object({}).describe(\"Request model for GET /v2/statistic - no parameters.\");\nconst GenderApiGetStatistic_StatisticDetailsSchema = z.object({\n duration: z.string().describe(\"Server processing time for this query, e.g., '83ms'.\").nullable(),\n credits_used: z.number().int().describe(\"Requests consumed by this query.\").nullable(),\n}).passthrough();\nconst GenderApiGetStatistic_UsageLastMonthSchema = z.object({\n date: z.string().describe(\"Month of usage in 'YYYY-MM' format.\").nullable(),\n credits_used: z.number().int().describe(\"Requests used last month.\").nullable(),\n}).passthrough();\nexport const GenderApiGetStatisticOutput = z.object({\n details: GenderApiGetStatistic_StatisticDetailsSchema.nullable(),\n is_limit_reached: z.boolean().describe(\"True if no requests left.\").nullable(),\n usage_last_month: GenderApiGetStatistic_UsageLastMonthSchema.nullable(),\n remaining_credits: z.number().int().describe(\"Number of requests left.\").nullable(),\n}).passthrough();\n\nexport const genderApiGetStatistic: AppAction<\n typeof GenderApiGetStatisticInput,\n typeof GenderApiGetStatisticOutput,\n typeof genderApi.credential\n> = 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":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACtH,MAAM,+CAA+C,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhByC,EAAE,OAAO;EAClD,SAAS,6CAA6C,SAAS;EAC/D,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC7E,kBAAkB,2CAA2C,SAAS;EACtE,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-email-address-multiple.cjs","names":["z","action"],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderApiQueryByEmailAddressMultipleInput = z.object({\n emails: z.array(z.object({\n id: z.string().describe(\"Client-provided correlation ID (max 50 chars) to match requests with responses\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based inference\").optional(),\n email: z.string().describe(\"Email address to query for gender determination\"),\n locale: z.string().describe(\"Browser locale code (e.g., 'en_US') for inference hints\").optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code for improved regional accuracy\").optional(),\n}).passthrough().describe(\"Single email query item in batch request.\")).describe(\"List of email queries to process in a single batch request\"),\n}).describe(\"Request model for batch querying gender by multiple email addresses.\");\nconst GenderApiQueryByEmailAddressMultiple_InputEchoSchema = z.object({\n id: z.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 a single email query from the batch request.\");\nconst GenderApiQueryByEmailAddressMultiple_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., '82ms')\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed by this query (0 if no result found)\").nullable(),\n email_sanitized: z.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 for a single gender query result.\");\nconst GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema = z.object({\n type: z.string().describe(\"Error type URI when an error occurs\").nullable().optional(),\n input: GenderApiQueryByEmailAddressMultiple_InputEchoSchema.nullable(),\n title: z.string().describe(\"Error title/code when an error occurs\").nullable().optional(),\n detail: z.string().describe(\"Error detail message when an error occurs\").nullable().optional(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code when an error occurs (e.g., 400 for invalid email)\").nullable().optional(),\n details: GenderApiQueryByEmailAddressMultiple_DetailsSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted/parsed from the email local part (e.g., 'Miller' from sandra.miller14@gmail.com)\").nullable().optional(),\n first_name: z.string().describe(\"First name extracted/parsed from the email local part (e.g., 'Sandra' from sandra.miller14@gmail.com)\").nullable().optional(),\n probability: z.number().describe(\"Confidence score from 0.0 to 1.0 indicating reliability of the gender prediction (absent if result_found is False)\").nullable().optional(),\n result_found: z.boolean().describe(\"True if a gender determination was made, False otherwise (absent on error)\").nullable().optional(),\n}).passthrough().describe(\"Gender determination result for a single email address.\\nCan be either a successful result or an error response.\");\nexport const GenderApiQueryByEmailAddressMultipleOutput = z.object({\n results: z.array(GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema).describe(\"List of gender determination results, one per input email query\"),\n}).passthrough().describe(\"Response model for batch gender queries by email addresses.\");\n\nexport const genderApiQueryByEmailAddressMultiple = action(\"GENDER_API_QUERY_BY_EMAIL_ADDRESS_MULTIPLE\", {\n slug: \"gender_api-query-by-email-address-multiple\",\n name: \"Query Gender by Multiple Email Addresses\",\n description: \"Determine likely gender for multiple email addresses in a single batch request. Returns male/female/unknown with confidence scores for each email. Use for efficient bulk processing. Each result includes result_found flag and optional probability score.\",\n input: GenderApiQueryByEmailAddressMultipleInput,\n output: GenderApiQueryByEmailAddressMultipleOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-by-email-address-multiple.cjs","names":["z","action"],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { genderApi } from \"../app\";\n\nexport const GenderApiQueryByEmailAddressMultipleInput = z.object({\n emails: z.array(z.object({\n id: z.string().describe(\"Client-provided correlation ID (max 50 chars) to match requests with responses\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-based inference\").optional(),\n email: z.string().describe(\"Email address to query for gender determination\"),\n locale: z.string().describe(\"Browser locale code (e.g., 'en_US') for inference hints\").optional(),\n country: z.string().describe(\"ISO 3166 alpha-2 country code for improved regional accuracy\").optional(),\n}).passthrough().describe(\"Single email query item in batch request.\")).describe(\"List of email queries to process in a single batch request\"),\n}).describe(\"Request model for batch querying gender by multiple email addresses.\");\nconst GenderApiQueryByEmailAddressMultiple_InputEchoSchema = z.object({\n id: z.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 a single email query from the batch request.\");\nconst GenderApiQueryByEmailAddressMultiple_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., '82ms')\").nullable(),\n credits_used: z.number().int().describe(\"Number of API credits consumed by this query (0 if no result found)\").nullable(),\n email_sanitized: z.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 for a single gender query result.\");\nconst GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema = z.object({\n type: z.string().describe(\"Error type URI when an error occurs\").nullable().optional(),\n input: GenderApiQueryByEmailAddressMultiple_InputEchoSchema.nullable(),\n title: z.string().describe(\"Error title/code when an error occurs\").nullable().optional(),\n detail: z.string().describe(\"Error detail message when an error occurs\").nullable().optional(),\n gender: z.enum([\"male\", \"female\", \"unknown\"]).describe(\"Predicted gender: 'male', 'female', or 'unknown' (absent if result_found is False)\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code when an error occurs (e.g., 400 for invalid email)\").nullable().optional(),\n details: GenderApiQueryByEmailAddressMultiple_DetailsSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name extracted/parsed from the email local part (e.g., 'Miller' from sandra.miller14@gmail.com)\").nullable().optional(),\n first_name: z.string().describe(\"First name extracted/parsed from the email local part (e.g., 'Sandra' from sandra.miller14@gmail.com)\").nullable().optional(),\n probability: z.number().describe(\"Confidence score from 0.0 to 1.0 indicating reliability of the gender prediction (absent if result_found is False)\").nullable().optional(),\n result_found: z.boolean().describe(\"True if a gender determination was made, False otherwise (absent on error)\").nullable().optional(),\n}).passthrough().describe(\"Gender determination result for a single email address.\\nCan be either a successful result or an error response.\");\nexport const GenderApiQueryByEmailAddressMultipleOutput = z.object({\n results: z.array(GenderApiQueryByEmailAddressMultiple_EmailGenderResultSchema).describe(\"List of gender determination results, one per input email query\"),\n}).passthrough().describe(\"Response model for batch gender queries by email addresses.\");\n\nexport const genderApiQueryByEmailAddressMultiple: AppAction<\n typeof GenderApiQueryByEmailAddressMultipleInput,\n typeof GenderApiQueryByEmailAddressMultipleOutput,\n typeof genderApi.credential\n> = action(\"GENDER_API_QUERY_BY_EMAIL_ADDRESS_MULTIPLE\", {\n slug: \"gender_api-query-by-email-address-multiple\",\n name: \"Query Gender by Multiple Email Addresses\",\n description: \"Determine likely gender for multiple email addresses in a single batch request. Returns male/female/unknown with confidence scores for each email. Use for efficient bulk processing. Each result includes result_found flag and optional probability score.\",\n input: GenderApiQueryByEmailAddressMultipleInput,\n output: GenderApiQueryByEmailAddressMultipleOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EA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CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAAkH;AAC5I,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,iEAAiE,EAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,uCAITC,eAAAA,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-by-email-address-multiple.d.ts
|
|
@@ -42,28 +44,7 @@ declare const GenderApiQueryByEmailAddressMultipleOutput: z.ZodObject<{
|
|
|
42
44
|
result_found: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const genderApiQueryByEmailAddressMultiple:
|
|
46
|
-
emails: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
email: string;
|
|
49
|
-
id?: string | undefined;
|
|
50
|
-
ip?: string | undefined;
|
|
51
|
-
locale?: string | undefined;
|
|
52
|
-
country?: string | undefined;
|
|
53
|
-
}[];
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const genderApiQueryByEmailAddressMultiple: AppAction<typeof GenderApiQueryByEmailAddressMultipleInput, typeof GenderApiQueryByEmailAddressMultipleOutput, typeof genderApi.credential>;
|
|
67
48
|
//#endregion
|
|
68
49
|
export { genderApiQueryByEmailAddressMultiple };
|
|
69
50
|
//# sourceMappingURL=query-by-email-address-multiple.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-email-address-multiple.d.cts","names":[],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-by-email-address-multiple.d.cts","names":[],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;cAqCzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genderApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-by-email-address-multiple.d.ts
|
|
@@ -42,28 +44,7 @@ declare const GenderApiQueryByEmailAddressMultipleOutput: z.ZodObject<{
|
|
|
42
44
|
result_found: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const genderApiQueryByEmailAddressMultiple:
|
|
46
|
-
emails: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
email: string;
|
|
49
|
-
id?: string | undefined;
|
|
50
|
-
ip?: string | undefined;
|
|
51
|
-
locale?: string | undefined;
|
|
52
|
-
country?: string | undefined;
|
|
53
|
-
}[];
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gender_api", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const genderApiQueryByEmailAddressMultiple: AppAction<typeof GenderApiQueryByEmailAddressMultipleInput, typeof GenderApiQueryByEmailAddressMultipleOutput, typeof genderApi.credential>;
|
|
67
48
|
//#endregion
|
|
68
49
|
export { genderApiQueryByEmailAddressMultiple };
|
|
69
50
|
//# sourceMappingURL=query-by-email-address-multiple.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-by-email-address-multiple.d.mts","names":[],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-by-email-address-multiple.d.mts","names":[],"sources":["../../src/actions/query-by-email-address-multiple.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;cAqCzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,SAAA,CAAU,UAAA"}
|