@keystrokehq/genderapi_io 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/gender-api-query-by-first-name.cjs +8 -8
  4. package/dist/actions/gender-api-query-by-first-name.cjs.map +1 -1
  5. package/dist/actions/gender-api-query-by-first-name.d.cts +9 -21
  6. package/dist/actions/gender-api-query-by-first-name.d.mts +9 -21
  7. package/dist/actions/gender-api-query-by-first-name.mjs +8 -8
  8. package/dist/actions/gender-api-query-by-first-name.mjs.map +1 -1
  9. package/dist/actions/genderapi-get-stats.d.cts +1 -5
  10. package/dist/actions/genderapi-get-stats.d.cts.map +1 -1
  11. package/dist/actions/genderapi-get-stats.d.mts +1 -5
  12. package/dist/actions/genderapi-get-stats.d.mts.map +1 -1
  13. package/dist/actions/get-gender-from-username.cjs +5 -5
  14. package/dist/actions/get-gender-from-username.cjs.map +1 -1
  15. package/dist/actions/get-gender-from-username.d.cts +6 -20
  16. package/dist/actions/get-gender-from-username.d.mts +6 -20
  17. package/dist/actions/get-gender-from-username.mjs +5 -5
  18. package/dist/actions/get-gender-from-username.mjs.map +1 -1
  19. package/dist/actions/list-error-codes.d.cts +1 -7
  20. package/dist/actions/list-error-codes.d.cts.map +1 -1
  21. package/dist/actions/list-error-codes.d.mts +1 -7
  22. package/dist/actions/list-error-codes.d.mts.map +1 -1
  23. package/dist/actions/query-by-email-address.cjs +10 -10
  24. package/dist/actions/query-by-email-address.cjs.map +1 -1
  25. package/dist/actions/query-by-email-address.d.cts +11 -25
  26. package/dist/actions/query-by-email-address.d.mts +11 -25
  27. package/dist/actions/query-by-email-address.mjs +10 -10
  28. package/dist/actions/query-by-email-address.mjs.map +1 -1
  29. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["genderapiIo","executeGenderapiIoTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderapiIo } from \"./app\";\nimport { executeGenderapiIoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return genderapiIo.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 executeGenderapiIoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,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,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["genderapiIo","executeGenderapiIoTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderapiIo } from \"./app\";\nimport { executeGenderapiIoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return genderapiIo.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGenderapiIoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,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,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderapiIo } from \"./app\";\nimport { executeGenderapiIoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return genderapiIo.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 executeGenderapiIoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderapiIo } from \"./app\";\nimport { executeGenderapiIoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return genderapiIo.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGenderapiIoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -12,16 +12,16 @@ const GenderapiIoGenderApiQueryByFirstNameInput = zod.z.object({
12
12
  });
13
13
  const GenderapiIoGenderApiQueryByFirstNameOutput = zod.z.object({
14
14
  q: zod.z.string().describe("Echo of your input (name).").nullable(),
15
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Found/extracted first name from the input.").optional()),
16
- gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").optional()),
15
+ name: zod.z.string().describe("Found/extracted first name from the input.").nullable().optional(),
16
+ gender: zod.z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").nullable().optional(),
17
17
  status: zod.z.boolean().describe("True if request succeeded.").nullable(),
18
- country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Most likely country code determined by the service.").optional()),
19
- expires: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Package expiry time as Unix timestamp (seconds).").optional()),
20
- duration: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Server processing time (e.g., '4ms').").optional()),
21
- probability: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Reliability percentage between 0 and 100.").optional()),
22
- total_names: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of matching name samples in the database.").optional()),
18
+ country: zod.z.string().describe("Most likely country code determined by the service.").nullable().optional(),
19
+ expires: zod.z.number().int().describe("Package expiry time as Unix timestamp (seconds).").nullable().optional(),
20
+ duration: zod.z.string().describe("Server processing time (e.g., '4ms').").nullable().optional(),
21
+ probability: zod.z.number().int().describe("Reliability percentage between 0 and 100.").nullable().optional(),
22
+ total_names: zod.z.number().int().describe("Number of matching name samples in the database.").nullable().optional(),
23
23
  used_credits: zod.z.number().int().describe("Number of credits used for this query.").nullable(),
24
- remaining_credits: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Credits remaining after this request.").optional())
24
+ remaining_credits: zod.z.number().int().describe("Credits remaining after this request.").nullable().optional()
25
25
  });
26
26
  const genderapiIoGenderApiQueryByFirstName = require_action.action("GENDERAPI_IO_GENDER_API_QUERY_BY_FIRST_NAME", {
27
27
  slug: "genderapi_io-gender-api-query-by-first-name",
@@ -1 +1 @@
1
- {"version":3,"file":"gender-api-query-by-first-name.cjs","names":["z","action"],"sources":["../../src/actions/gender-api-query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Optional arbitrary identifier (up to 50 characters) to correlate the response.\").optional(),\n ip: z.string().describe(\"Optional IP address (IPv4 or IPv6) to localize the query.\").optional(),\n name: z.string().describe(\"First name to query gender for.\"),\n locale: z.string().describe(\"Optional locale to guide gender inference.\").optional(),\n askToAI: z.boolean().describe(\"Ask AI model when the name isn’t present in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166 alpha-2 country code to localize the query.\").optional(),\n forceToGenderize: z.boolean().describe(\"Attempt to genderize even for non-typical names (e.g., nicknames).\").optional(),\n});\nexport const GenderapiIoGenderApiQueryByFirstNameOutput = z.object({\n q: z.string().describe(\"Echo of your input (name).\").nullable(),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Found/extracted first name from the input.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").optional()),\n status: z.boolean().describe(\"True if request succeeded.\").nullable(),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most likely country code determined by the service.\").optional()),\n expires: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Package expiry time as Unix timestamp (seconds).\").optional()),\n duration: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Server processing time (e.g., '4ms').\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Reliability percentage between 0 and 100.\").optional()),\n total_names: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of matching name samples in the database.\").optional()),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Credits remaining after this request.\").optional()),\n});\n\nexport const genderapiIoGenderApiQueryByFirstName = action(\"GENDERAPI_IO_GENDER_API_QUERY_BY_FIRST_NAME\", {\n slug: \"genderapi_io-gender-api-query-by-first-name\",\n name: \"Query Gender by First Name\",\n description: \"Tool to determine gender by querying first name. Use when you need to infer likely gender for a given name with optional localization hints.\",\n input: GenderapiIoGenderApiQueryByFirstNameInput,\n output: GenderapiIoGenderApiQueryByFirstNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACvG,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CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACnK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;AAChK,CAAC;AAED,MAAa,uCAAuCC,eAAAA,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"gender-api-query-by-first-name.cjs","names":["z","action"],"sources":["../../src/actions/gender-api-query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Optional arbitrary identifier (up to 50 characters) to correlate the response.\").optional(),\n ip: z.string().describe(\"Optional IP address (IPv4 or IPv6) to localize the query.\").optional(),\n name: z.string().describe(\"First name to query gender for.\"),\n locale: z.string().describe(\"Optional locale to guide gender inference.\").optional(),\n askToAI: z.boolean().describe(\"Ask AI model when the name isn’t present in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166 alpha-2 country code to localize the query.\").optional(),\n forceToGenderize: z.boolean().describe(\"Attempt to genderize even for non-typical names (e.g., nicknames).\").optional(),\n});\nexport const GenderapiIoGenderApiQueryByFirstNameOutput = z.object({\n q: z.string().describe(\"Echo of your input (name).\").nullable(),\n name: z.string().describe(\"Found/extracted first name from the input.\").nullable().optional(),\n gender: z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").nullable().optional(),\n status: z.boolean().describe(\"True if request succeeded.\").nullable(),\n country: z.string().describe(\"Most likely country code determined by the service.\").nullable().optional(),\n expires: z.number().int().describe(\"Package expiry time as Unix timestamp (seconds).\").nullable().optional(),\n duration: z.string().describe(\"Server processing time (e.g., '4ms').\").nullable().optional(),\n probability: z.number().int().describe(\"Reliability percentage between 0 and 100.\").nullable().optional(),\n total_names: z.number().int().describe(\"Number of matching name samples in the database.\").nullable().optional(),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.number().int().describe(\"Credits remaining after this request.\").nullable().optional(),\n});\n\nexport const genderapiIoGenderApiQueryByFirstName = action(\"GENDERAPI_IO_GENDER_API_QUERY_BY_FIRST_NAME\", {\n slug: \"genderapi_io-gender-api-query-by-first-name\",\n name: \"Query Gender by First Name\",\n description: \"Tool to determine gender by querying first name. Use when you need to infer likely gender for a given name with optional localization hints.\",\n input: GenderapiIoGenderApiQueryByFirstNameInput,\n output: GenderapiIoGenderApiQueryByFirstNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACxH,CAAC;AACD,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9D,MAAMA,IA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ueryByFirstNameOutput: z.ZodObject<{
14
14
  q: z.ZodNullable<z.ZodString>;
15
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  status: z.ZodNullable<z.ZodBoolean>;
18
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- expires: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
- duration: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
- total_names: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ expires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total_names: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  used_credits: z.ZodNullable<z.ZodNumber>;
24
- remaining_credits: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  }, z.core.$strip>;
26
26
  declare const genderapiIoGenderApiQueryByFirstName: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  name: string;
@@ -31,19 +31,7 @@ declare const genderapiIoGenderApiQueryByFirstName: import("@keystrokehq/action"
31
31
  askToAI?: boolean | undefined;
32
32
  country?: string | undefined;
33
33
  forceToGenderize?: boolean | undefined;
34
- }, {
35
- q: string | null;
36
- status: boolean | null;
37
- used_credits: number | null;
38
- name?: string | undefined;
39
- gender?: string | undefined;
40
- country?: string | undefined;
41
- expires?: number | undefined;
42
- duration?: string | undefined;
43
- probability?: number | undefined;
44
- total_names?: number | undefined;
45
- remaining_credits?: number | undefined;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
35
  //#endregion
48
36
  export { genderapiIoGenderApiQueryByFirstName };
49
37
  //# sourceMappingURL=gender-api-query-by-first-name.d.cts.map
@@ -12,16 +12,16 @@ declare const GenderapiIoGenderApiQueryByFirstNameInput: z.ZodObject<{
12
12
  }, z.core.$strip>;
13
13
  declare const GenderapiIoGenderApiQueryByFirstNameOutput: z.ZodObject<{
14
14
  q: z.ZodNullable<z.ZodString>;
15
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  status: z.ZodNullable<z.ZodBoolean>;
18
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- expires: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
- duration: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
- total_names: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ expires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total_names: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  used_credits: z.ZodNullable<z.ZodNumber>;
24
- remaining_credits: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  }, z.core.$strip>;
26
26
  declare const genderapiIoGenderApiQueryByFirstName: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  name: string;
@@ -31,19 +31,7 @@ declare const genderapiIoGenderApiQueryByFirstName: import("@keystrokehq/action"
31
31
  askToAI?: boolean | undefined;
32
32
  country?: string | undefined;
33
33
  forceToGenderize?: boolean | undefined;
34
- }, {
35
- q: string | null;
36
- status: boolean | null;
37
- used_credits: number | null;
38
- name?: string | undefined;
39
- gender?: string | undefined;
40
- country?: string | undefined;
41
- expires?: number | undefined;
42
- duration?: string | undefined;
43
- probability?: number | undefined;
44
- total_names?: number | undefined;
45
- remaining_credits?: number | undefined;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
35
  //#endregion
48
36
  export { genderapiIoGenderApiQueryByFirstName };
49
37
  //# sourceMappingURL=gender-api-query-by-first-name.d.mts.map
@@ -15,16 +15,16 @@ const genderapiIoGenderApiQueryByFirstName = action("GENDERAPI_IO_GENDER_API_QUE
15
15
  }),
16
16
  output: z.object({
17
17
  q: z.string().describe("Echo of your input (name).").nullable(),
18
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Found/extracted first name from the input.").optional()),
19
- gender: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").optional()),
18
+ name: z.string().describe("Found/extracted first name from the input.").nullable().optional(),
19
+ gender: z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").nullable().optional(),
20
20
  status: z.boolean().describe("True if request succeeded.").nullable(),
21
- country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Most likely country code determined by the service.").optional()),
22
- expires: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Package expiry time as Unix timestamp (seconds).").optional()),
23
- duration: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Server processing time (e.g., '4ms').").optional()),
24
- probability: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Reliability percentage between 0 and 100.").optional()),
25
- total_names: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of matching name samples in the database.").optional()),
21
+ country: z.string().describe("Most likely country code determined by the service.").nullable().optional(),
22
+ expires: z.number().int().describe("Package expiry time as Unix timestamp (seconds).").nullable().optional(),
23
+ duration: z.string().describe("Server processing time (e.g., '4ms').").nullable().optional(),
24
+ probability: z.number().int().describe("Reliability percentage between 0 and 100.").nullable().optional(),
25
+ total_names: z.number().int().describe("Number of matching name samples in the database.").nullable().optional(),
26
26
  used_credits: z.number().int().describe("Number of credits used for this query.").nullable(),
27
- remaining_credits: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Credits remaining after this request.").optional())
27
+ remaining_credits: z.number().int().describe("Credits remaining after this request.").nullable().optional()
28
28
  })
29
29
  });
30
30
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"gender-api-query-by-first-name.mjs","names":[],"sources":["../../src/actions/gender-api-query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Optional arbitrary identifier (up to 50 characters) to correlate the response.\").optional(),\n ip: z.string().describe(\"Optional IP address (IPv4 or IPv6) to localize the query.\").optional(),\n name: z.string().describe(\"First name to query gender for.\"),\n locale: z.string().describe(\"Optional locale to guide gender inference.\").optional(),\n askToAI: z.boolean().describe(\"Ask AI model when the name isn’t present in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166 alpha-2 country code to localize the query.\").optional(),\n forceToGenderize: z.boolean().describe(\"Attempt to genderize even for non-typical names (e.g., nicknames).\").optional(),\n});\nexport const GenderapiIoGenderApiQueryByFirstNameOutput = z.object({\n q: z.string().describe(\"Echo of your input (name).\").nullable(),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Found/extracted first name from the input.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").optional()),\n status: z.boolean().describe(\"True if request succeeded.\").nullable(),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most likely country code determined by the service.\").optional()),\n expires: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Package expiry time as Unix timestamp (seconds).\").optional()),\n duration: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Server processing time (e.g., '4ms').\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Reliability percentage between 0 and 100.\").optional()),\n total_names: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of matching name samples in the database.\").optional()),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Credits remaining after this request.\").optional()),\n});\n\nexport const genderapiIoGenderApiQueryByFirstName = action(\"GENDERAPI_IO_GENDER_API_QUERY_BY_FIRST_NAME\", {\n slug: \"genderapi_io-gender-api-query-by-first-name\",\n name: \"Query Gender by First Name\",\n description: \"Tool to determine gender by querying first name. Use when you need to infer likely gender for a given name with optional localization hints.\",\n input: GenderapiIoGenderApiQueryByFirstNameInput,\n output: GenderapiIoGenderApiQueryByFirstNameOutput,\n});\n"],"mappings":";;AA2BA,MAAa,uCAAuC,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC3D,QAAQ,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U,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;EACnK,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC3F,mBAAmB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CAChK,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"gender-api-query-by-first-name.mjs","names":[],"sources":["../../src/actions/gender-api-query-by-first-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGenderApiQueryByFirstNameInput = z.object({\n id: z.string().describe(\"Optional arbitrary identifier (up to 50 characters) to correlate the response.\").optional(),\n ip: z.string().describe(\"Optional IP address (IPv4 or IPv6) to localize the query.\").optional(),\n name: z.string().describe(\"First name to query gender for.\"),\n locale: z.string().describe(\"Optional locale to guide gender inference.\").optional(),\n askToAI: z.boolean().describe(\"Ask AI model when the name isn’t present in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166 alpha-2 country code to localize the query.\").optional(),\n forceToGenderize: z.boolean().describe(\"Attempt to genderize even for non-typical names (e.g., nicknames).\").optional(),\n});\nexport const GenderapiIoGenderApiQueryByFirstNameOutput = z.object({\n q: z.string().describe(\"Echo of your input (name).\").nullable(),\n name: z.string().describe(\"Found/extracted first name from the input.\").nullable().optional(),\n gender: z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").nullable().optional(),\n status: z.boolean().describe(\"True if request succeeded.\").nullable(),\n country: z.string().describe(\"Most likely country code determined by the service.\").nullable().optional(),\n expires: z.number().int().describe(\"Package expiry time as Unix timestamp (seconds).\").nullable().optional(),\n duration: z.string().describe(\"Server processing time (e.g., '4ms').\").nullable().optional(),\n probability: z.number().int().describe(\"Reliability percentage between 0 and 100.\").nullable().optional(),\n total_names: z.number().int().describe(\"Number of matching name samples in the database.\").nullable().optional(),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.number().int().describe(\"Credits remaining after this request.\").nullable().optional(),\n});\n\nexport const genderapiIoGenderApiQueryByFirstName = action(\"GENDERAPI_IO_GENDER_API_QUERY_BY_FIRST_NAME\", {\n slug: \"genderapi_io-gender-api-query-by-first-name\",\n name: \"Query Gender by First Name\",\n description: \"Tool to determine gender by querying first name. Use when you need to infer likely gender for a given name with optional localization hints.\",\n input: GenderapiIoGenderApiQueryByFirstNameInput,\n output: GenderapiIoGenderApiQueryByFirstNameOutput,\n});\n"],"mappings":";;AA2BA,MAAa,uCAAuC,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACxH,CAmBS;CACP,QAnBwD,EAAE,OAAO;EACjE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC3F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAOU;AACV,CAAC"}
@@ -7,11 +7,7 @@ declare const GenderapiIoGenderapiGetStatsOutput: z.ZodObject<{
7
7
  expiresAt: z.ZodNullable<z.ZodNumber>;
8
8
  remaining: z.ZodNullable<z.ZodNumber>;
9
9
  }, z.core.$strip>;
10
- declare const genderapiIoGenderapiGetStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
11
- status: boolean | null;
12
- expiresAt: number | null;
13
- remaining: number | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const genderapiIoGenderapiGetStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
11
  //#endregion
16
12
  export { genderapiIoGenderapiGetStats };
17
13
  //# sourceMappingURL=genderapi-get-stats.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"genderapi-get-stats.d.cts","names":[],"sources":["../../src/actions/genderapi-get-stats.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"genderapi-get-stats.d.cts","names":[],"sources":["../../src/actions/genderapi-get-stats.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -7,11 +7,7 @@ declare const GenderapiIoGenderapiGetStatsOutput: z.ZodObject<{
7
7
  expiresAt: z.ZodNullable<z.ZodNumber>;
8
8
  remaining: z.ZodNullable<z.ZodNumber>;
9
9
  }, z.core.$strip>;
10
- declare const genderapiIoGenderapiGetStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
11
- status: boolean | null;
12
- expiresAt: number | null;
13
- remaining: number | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const genderapiIoGenderapiGetStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
11
  //#endregion
16
12
  export { genderapiIoGenderapiGetStats };
17
13
  //# sourceMappingURL=genderapi-get-stats.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"genderapi-get-stats.d.mts","names":[],"sources":["../../src/actions/genderapi-get-stats.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"genderapi-get-stats.d.mts","names":[],"sources":["../../src/actions/genderapi-get-stats.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -9,14 +9,14 @@ const GenderapiIoGetGenderFromUsernameInput = zod.z.object({
9
9
  }).describe("Request model for determining gender from a username or nickname.");
10
10
  const GenderapiIoGetGenderFromUsernameOutput = zod.z.object({
11
11
  q: zod.z.string().describe("The input username submitted.").nullable(),
12
- to: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Additional metadata field returned by the API.").optional()),
13
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name extracted from the username, if any.").optional()),
14
- gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.enum(["male", "female"]).describe("Predicted gender: 'male', 'female', or null if undetermined.").optional()),
12
+ to: zod.z.boolean().describe("Additional metadata field returned by the API.").nullable().optional(),
13
+ name: zod.z.string().describe("Name extracted from the username, if any.").nullable().optional(),
14
+ gender: zod.z.enum(["male", "female"]).describe("Predicted gender: 'male', 'female', or null if undetermined.").nullable().optional(),
15
15
  status: zod.z.boolean().describe("Whether the request was successful.").nullable(),
16
- country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Country code considered during prediction.").optional()),
16
+ country: zod.z.string().describe("Country code considered during prediction.").nullable().optional(),
17
17
  expires: zod.z.number().int().describe("UNIX timestamp when plan expires.").nullable(),
18
18
  duration: zod.z.string().describe("Processing time, e.g., '6ms'.").nullable(),
19
- isHumanName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the username appears to be a human name (returned when askToAI is used).").optional()),
19
+ isHumanName: zod.z.boolean().describe("Whether the username appears to be a human name (returned when askToAI is used).").nullable().optional(),
20
20
  probability: zod.z.number().int().describe("Confidence score as a percentage (0-100).").nullable(),
21
21
  total_names: zod.z.number().int().describe("Number of name samples used.").nullable(),
22
22
  used_credits: zod.z.number().int().describe("Number of credits used for this request.").nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"get-gender-from-username.cjs","names":["z","action"],"sources":["../../src/actions/get-gender-from-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGetGenderFromUsernameInput = z.object({\n askToAI: z.boolean().describe(\"If true, asks the AI model when the name is not found in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166-1 alpha-2 country code to improve prediction accuracy.\").optional(),\n username: z.string().describe(\"Username or nickname to analyze for gender inference.\"),\n forceToGenderize: z.boolean().describe(\"If true, attempts prediction even for usernames that don't resemble real names.\").optional(),\n}).describe(\"Request model for determining gender from a username or nickname.\");\nexport const GenderapiIoGetGenderFromUsernameOutput = z.object({\n q: z.string().describe(\"The input username submitted.\").nullable(),\n to: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Additional metadata field returned by the API.\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name extracted from the username, if any.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.enum([\"male\", \"female\"]).describe(\"Predicted gender: 'male', 'female', or null if undetermined.\").optional()),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code considered during prediction.\").optional()),\n expires: z.number().int().describe(\"UNIX timestamp when plan expires.\").nullable(),\n duration: z.string().describe(\"Processing time, e.g., '6ms'.\").nullable(),\n isHumanName: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the username appears to be a human name (returned when askToAI is used).\").optional()),\n probability: z.number().int().describe(\"Confidence score as a percentage (0-100).\").nullable(),\n total_names: z.number().int().describe(\"Number of name samples used.\").nullable(),\n used_credits: z.number().int().describe(\"Number of credits used for this request.\").nullable(),\n remaining_credits: z.number().int().describe(\"Remaining credits after the request.\").nullable(),\n}).describe(\"Response model for gender determination from a username.\");\n\nexport const genderapiIoGetGenderFromUsername = action(\"GENDERAPI_IO_GET_GENDER_FROM_USERNAME\", {\n slug: \"genderapi_io-get-gender-from-username\",\n name: \"Get Gender from Username\",\n description: \"Tool to determine gender from a username or nickname. Use when you have an alias or handle and want to infer gender from that identifier.\",\n input: GenderapiIoGetGenderFromUsernameInput,\n output: GenderapiIoGetGenderFromUsernameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACrF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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AAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,mCAAmCC,eAAAA,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-gender-from-username.cjs","names":["z","action"],"sources":["../../src/actions/get-gender-from-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGetGenderFromUsernameInput = z.object({\n askToAI: z.boolean().describe(\"If true, asks the AI model when the name is not found in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166-1 alpha-2 country code to improve prediction accuracy.\").optional(),\n username: z.string().describe(\"Username or nickname to analyze for gender inference.\"),\n forceToGenderize: z.boolean().describe(\"If true, attempts prediction even for usernames that don't resemble real names.\").optional(),\n}).describe(\"Request model for determining gender from a username or nickname.\");\nexport const GenderapiIoGetGenderFromUsernameOutput = z.object({\n q: z.string().describe(\"The input username submitted.\").nullable(),\n to: z.boolean().describe(\"Additional metadata field returned by the API.\").nullable().optional(),\n name: z.string().describe(\"Name extracted from the username, if any.\").nullable().optional(),\n gender: z.enum([\"male\", \"female\"]).describe(\"Predicted gender: 'male', 'female', or null if undetermined.\").nullable().optional(),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.string().describe(\"Country code considered during prediction.\").nullable().optional(),\n expires: z.number().int().describe(\"UNIX timestamp when plan expires.\").nullable(),\n duration: z.string().describe(\"Processing time, e.g., '6ms'.\").nullable(),\n isHumanName: z.boolean().describe(\"Whether the username appears to be a human name (returned when askToAI is used).\").nullable().optional(),\n probability: z.number().int().describe(\"Confidence score as a percentage (0-100).\").nullable(),\n total_names: z.number().int().describe(\"Number of name samples used.\").nullable(),\n used_credits: z.number().int().describe(\"Number of credits used for this request.\").nullable(),\n remaining_credits: z.number().int().describe(\"Remaining credits after the request.\").nullable(),\n}).describe(\"Response model for gender determination from a username.\");\n\nexport const genderapiIoGetGenderFromUsername = action(\"GENDERAPI_IO_GET_GENDER_FROM_USERNAME\", {\n slug: \"genderapi_io-get-gender-from-username\",\n name: \"Get Gender from Username\",\n description: \"Tool to determine gender from a username or nickname. Use when you have an alias or handle and want to infer gender from that identifier.\",\n input: GenderapiIoGetGenderFromUsernameInput,\n output: GenderapiIoGetGenderFromUsernameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACrF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACjE,IAAIA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,mCAAmCC,eAAAA,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,17 +9,17 @@ declare const GenderapiIoGetGenderFromUsernameInput: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  declare const GenderapiIoGetGenderFromUsernameOutput: z.ZodObject<{
11
11
  q: z.ZodNullable<z.ZodString>;
12
- to: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
13
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
12
+ to: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
15
15
  male: "male";
16
16
  female: "female";
17
17
  }>>>;
18
18
  status: z.ZodNullable<z.ZodBoolean>;
19
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  expires: z.ZodNullable<z.ZodNumber>;
21
21
  duration: z.ZodNullable<z.ZodString>;
22
- isHumanName: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
22
+ isHumanName: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
23
  probability: z.ZodNullable<z.ZodNumber>;
24
24
  total_names: z.ZodNullable<z.ZodNumber>;
25
25
  used_credits: z.ZodNullable<z.ZodNumber>;
@@ -30,21 +30,7 @@ declare const genderapiIoGetGenderFromUsername: import("@keystrokehq/action").Wo
30
30
  askToAI?: boolean | undefined;
31
31
  country?: string | undefined;
32
32
  forceToGenderize?: boolean | undefined;
33
- }, {
34
- q: string | null;
35
- status: boolean | null;
36
- expires: number | null;
37
- duration: string | null;
38
- probability: number | null;
39
- total_names: number | null;
40
- used_credits: number | null;
41
- remaining_credits: number | null;
42
- to?: boolean | undefined;
43
- name?: string | undefined;
44
- gender?: "male" | "female" | undefined;
45
- country?: string | undefined;
46
- isHumanName?: boolean | undefined;
47
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
48
34
  //#endregion
49
35
  export { genderapiIoGetGenderFromUsername };
50
36
  //# sourceMappingURL=get-gender-from-username.d.cts.map
@@ -9,17 +9,17 @@ declare const GenderapiIoGetGenderFromUsernameInput: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  declare const GenderapiIoGetGenderFromUsernameOutput: z.ZodObject<{
11
11
  q: z.ZodNullable<z.ZodString>;
12
- to: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
13
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
12
+ to: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
15
15
  male: "male";
16
16
  female: "female";
17
17
  }>>>;
18
18
  status: z.ZodNullable<z.ZodBoolean>;
19
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  expires: z.ZodNullable<z.ZodNumber>;
21
21
  duration: z.ZodNullable<z.ZodString>;
22
- isHumanName: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
22
+ isHumanName: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
23
  probability: z.ZodNullable<z.ZodNumber>;
24
24
  total_names: z.ZodNullable<z.ZodNumber>;
25
25
  used_credits: z.ZodNullable<z.ZodNumber>;
@@ -30,21 +30,7 @@ declare const genderapiIoGetGenderFromUsername: import("@keystrokehq/action").Wo
30
30
  askToAI?: boolean | undefined;
31
31
  country?: string | undefined;
32
32
  forceToGenderize?: boolean | undefined;
33
- }, {
34
- q: string | null;
35
- status: boolean | null;
36
- expires: number | null;
37
- duration: string | null;
38
- probability: number | null;
39
- total_names: number | null;
40
- used_credits: number | null;
41
- remaining_credits: number | null;
42
- to?: boolean | undefined;
43
- name?: string | undefined;
44
- gender?: "male" | "female" | undefined;
45
- country?: string | undefined;
46
- isHumanName?: boolean | undefined;
47
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
48
34
  //#endregion
49
35
  export { genderapiIoGetGenderFromUsername };
50
36
  //# sourceMappingURL=get-gender-from-username.d.mts.map
@@ -12,14 +12,14 @@ const genderapiIoGetGenderFromUsername = action("GENDERAPI_IO_GET_GENDER_FROM_US
12
12
  }).describe("Request model for determining gender from a username or nickname."),
13
13
  output: z.object({
14
14
  q: z.string().describe("The input username submitted.").nullable(),
15
- to: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Additional metadata field returned by the API.").optional()),
16
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name extracted from the username, if any.").optional()),
17
- gender: z.preprocess((value) => value === null ? void 0 : value, z.enum(["male", "female"]).describe("Predicted gender: 'male', 'female', or null if undetermined.").optional()),
15
+ to: z.boolean().describe("Additional metadata field returned by the API.").nullable().optional(),
16
+ name: z.string().describe("Name extracted from the username, if any.").nullable().optional(),
17
+ gender: z.enum(["male", "female"]).describe("Predicted gender: 'male', 'female', or null if undetermined.").nullable().optional(),
18
18
  status: z.boolean().describe("Whether the request was successful.").nullable(),
19
- country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Country code considered during prediction.").optional()),
19
+ country: z.string().describe("Country code considered during prediction.").nullable().optional(),
20
20
  expires: z.number().int().describe("UNIX timestamp when plan expires.").nullable(),
21
21
  duration: z.string().describe("Processing time, e.g., '6ms'.").nullable(),
22
- isHumanName: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the username appears to be a human name (returned when askToAI is used).").optional()),
22
+ isHumanName: z.boolean().describe("Whether the username appears to be a human name (returned when askToAI is used).").nullable().optional(),
23
23
  probability: z.number().int().describe("Confidence score as a percentage (0-100).").nullable(),
24
24
  total_names: z.number().int().describe("Number of name samples used.").nullable(),
25
25
  used_credits: z.number().int().describe("Number of credits used for this request.").nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"get-gender-from-username.mjs","names":[],"sources":["../../src/actions/get-gender-from-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGetGenderFromUsernameInput = z.object({\n askToAI: z.boolean().describe(\"If true, asks the AI model when the name is not found in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166-1 alpha-2 country code to improve prediction accuracy.\").optional(),\n username: z.string().describe(\"Username or nickname to analyze for gender inference.\"),\n forceToGenderize: z.boolean().describe(\"If true, attempts prediction even for usernames that don't resemble real names.\").optional(),\n}).describe(\"Request model for determining gender from a username or nickname.\");\nexport const GenderapiIoGetGenderFromUsernameOutput = z.object({\n q: z.string().describe(\"The input username submitted.\").nullable(),\n to: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Additional metadata field returned by the API.\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name extracted from the username, if any.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.enum([\"male\", \"female\"]).describe(\"Predicted gender: 'male', 'female', or null if undetermined.\").optional()),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code considered during prediction.\").optional()),\n expires: z.number().int().describe(\"UNIX timestamp when plan expires.\").nullable(),\n duration: z.string().describe(\"Processing time, e.g., '6ms'.\").nullable(),\n isHumanName: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the username appears to be a human name (returned when askToAI is used).\").optional()),\n probability: z.number().int().describe(\"Confidence score as a percentage (0-100).\").nullable(),\n total_names: z.number().int().describe(\"Number of name samples used.\").nullable(),\n used_credits: z.number().int().describe(\"Number of credits used for this request.\").nullable(),\n remaining_credits: z.number().int().describe(\"Remaining credits after the request.\").nullable(),\n}).describe(\"Response model for gender determination from a username.\");\n\nexport const genderapiIoGetGenderFromUsername = action(\"GENDERAPI_IO_GET_GENDER_FROM_USERNAME\", {\n slug: \"genderapi_io-get-gender-from-username\",\n name: \"Get Gender from Username\",\n description: \"Tool to determine gender from a username or nickname. Use when you have an alias or handle and want to infer gender from that identifier.\",\n input: GenderapiIoGetGenderFromUsernameInput,\n output: GenderapiIoGetGenderFromUsernameOutput,\n});\n"],"mappings":";;AA0BA,MAAa,mCAAmC,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BmD,EAAE,OAAO;EAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACjH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACrF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,mEAqBH;CACP,QArBoD,EAAE,OAAO;EAC7D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACjE,IAAI,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;EACnJ,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;EAC/I,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC;EACpL,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;EACnJ,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC;EAC9L,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAChF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC7F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-gender-from-username.mjs","names":[],"sources":["../../src/actions/get-gender-from-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoGetGenderFromUsernameInput = z.object({\n askToAI: z.boolean().describe(\"If true, asks the AI model when the name is not found in the database.\").optional(),\n country: z.string().describe(\"Optional ISO 3166-1 alpha-2 country code to improve prediction accuracy.\").optional(),\n username: z.string().describe(\"Username or nickname to analyze for gender inference.\"),\n forceToGenderize: z.boolean().describe(\"If true, attempts prediction even for usernames that don't resemble real names.\").optional(),\n}).describe(\"Request model for determining gender from a username or nickname.\");\nexport const GenderapiIoGetGenderFromUsernameOutput = z.object({\n q: z.string().describe(\"The input username submitted.\").nullable(),\n to: z.boolean().describe(\"Additional metadata field returned by the API.\").nullable().optional(),\n name: z.string().describe(\"Name extracted from the username, if any.\").nullable().optional(),\n gender: z.enum([\"male\", \"female\"]).describe(\"Predicted gender: 'male', 'female', or null if undetermined.\").nullable().optional(),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.string().describe(\"Country code considered during prediction.\").nullable().optional(),\n expires: z.number().int().describe(\"UNIX timestamp when plan expires.\").nullable(),\n duration: z.string().describe(\"Processing time, e.g., '6ms'.\").nullable(),\n isHumanName: z.boolean().describe(\"Whether the username appears to be a human name (returned when askToAI is used).\").nullable().optional(),\n probability: z.number().int().describe(\"Confidence score as a percentage (0-100).\").nullable(),\n total_names: z.number().int().describe(\"Number of name samples used.\").nullable(),\n used_credits: z.number().int().describe(\"Number of credits used for this request.\").nullable(),\n remaining_credits: z.number().int().describe(\"Remaining credits after the request.\").nullable(),\n}).describe(\"Response model for gender determination from a username.\");\n\nexport const genderapiIoGetGenderFromUsername = action(\"GENDERAPI_IO_GET_GENDER_FROM_USERNAME\", {\n slug: \"genderapi_io-get-gender-from-username\",\n name: \"Get Gender from Username\",\n description: \"Tool to determine gender from a username or nickname. Use when you have an alias or handle and want to infer gender from that identifier.\",\n input: GenderapiIoGetGenderFromUsernameInput,\n output: GenderapiIoGetGenderFromUsernameOutput,\n});\n"],"mappings":";;AA0BA,MAAa,mCAAmC,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BmD,EAAE,OAAO;EAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACjH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACrF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,mEAqBH;CACP,QArBoD,EAAE,OAAO;EAC7D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACjE,IAAI,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oListErrorCodes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
13
- error_codes: {
14
- error_code: string | null;
15
- description: string | null;
16
- http_status: number | null;
17
- }[];
18
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const genderapiIoListErrorCodes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
13
  //#endregion
20
14
  export { genderapiIoListErrorCodes };
21
15
  //# sourceMappingURL=list-error-codes.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-error-codes.d.cts","names":[],"sources":["../../src/actions/list-error-codes.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"list-error-codes.d.cts","names":[],"sources":["../../src/actions/list-error-codes.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -9,13 +9,7 @@ declare const GenderapiIoListErrorCodesOutput: z.ZodObject<{
9
9
  http_status: z.ZodNullable<z.ZodNumber>;
10
10
  }, z.core.$strip>>;
11
11
  }, z.core.$strip>;
12
- declare const genderapiIoListErrorCodes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
13
- error_codes: {
14
- error_code: string | null;
15
- description: string | null;
16
- http_status: number | null;
17
- }[];
18
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const genderapiIoListErrorCodes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
13
  //#endregion
20
14
  export { genderapiIoListErrorCodes };
21
15
  //# sourceMappingURL=list-error-codes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-error-codes.d.mts","names":[],"sources":["../../src/actions/list-error-codes.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"list-error-codes.d.mts","names":[],"sources":["../../src/actions/list-error-codes.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -10,18 +10,18 @@ const GenderapiIoQueryByEmailAddressInput = zod.z.object({
10
10
  }).describe("Request model for querying gender by email address on GenderAPI.io.");
11
11
  const GenderapiIoQueryByEmailAddressOutput = zod.z.object({
12
12
  q: zod.z.string().describe("Echo of the input (email address).").nullable(),
13
- to: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Additional metadata flag (usage varies by API response).").optional()),
14
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name extracted from the email address, if any.").optional()),
15
- gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").optional()),
13
+ to: zod.z.boolean().describe("Additional metadata flag (usage varies by API response).").nullable().optional(),
14
+ name: zod.z.string().describe("Name extracted from the email address, if any.").nullable().optional(),
15
+ gender: zod.z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").nullable().optional(),
16
16
  status: zod.z.boolean().describe("Whether the request was successful.").nullable(),
17
- country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Country code determined/used by the service.").optional()),
18
- expires: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("UNIX timestamp when the current package expires").optional()),
19
- duration: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Server processing time (e.g., '5ms').").optional()),
20
- isHumanName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the extracted name appears to be a human name.").optional()),
21
- probability: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Reliability percentage between 0 and 100.").optional()),
22
- total_names: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of matching name samples in the database.").optional()),
17
+ country: zod.z.string().describe("Country code determined/used by the service.").nullable().optional(),
18
+ expires: zod.z.number().int().describe("UNIX timestamp when the current package expires").nullable().optional(),
19
+ duration: zod.z.string().describe("Server processing time (e.g., '5ms').").nullable().optional(),
20
+ isHumanName: zod.z.boolean().describe("Whether the extracted name appears to be a human name.").nullable().optional(),
21
+ probability: zod.z.number().int().describe("Reliability percentage between 0 and 100.").nullable().optional(),
22
+ total_names: zod.z.number().int().describe("Number of matching name samples in the database.").nullable().optional(),
23
23
  used_credits: zod.z.number().int().describe("Number of credits used for this query.").nullable(),
24
- remaining_credits: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Credits remaining after this request.").optional())
24
+ remaining_credits: zod.z.number().int().describe("Credits remaining after this request.").nullable().optional()
25
25
  }).describe("Response model for the gender-by-email query (GenderAPI.io format).");
26
26
  const genderapiIoQueryByEmailAddress = require_action.action("GENDERAPI_IO_QUERY_BY_EMAIL_ADDRESS", {
27
27
  slug: "genderapi_io-query-by-email-address",
@@ -1 +1 @@
1
- {"version":3,"file":"query-by-email-address.cjs","names":["z","action"],"sources":["../../src/actions/query-by-email-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoQueryByEmailAddressInput = z.object({\n id: z.string().describe(\"Optional client-provided ID (max 50 characters) for tracing.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-hinting.\").optional(),\n email: z.string().describe(\"Email address to query; must be a valid email format.\"),\n locale: z.string().describe(\"Browser locale to improve name parsing (e.g., 'en', 'fr').\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code to hint the endpoint (uppercase).\").optional(),\n}).describe(\"Request model for querying gender by email address on GenderAPI.io.\");\nexport const GenderapiIoQueryByEmailAddressOutput = z.object({\n q: z.string().describe(\"Echo of the input (email address).\").nullable(),\n to: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Additional metadata flag (usage varies by API response).\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name extracted from the email address, if any.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").optional()),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code determined/used by the service.\").optional()),\n expires: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"UNIX timestamp when the current package expires\").optional()),\n duration: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Server processing time (e.g., '5ms').\").optional()),\n isHumanName: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the extracted name appears to be a human name.\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Reliability percentage between 0 and 100.\").optional()),\n total_names: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of matching name samples in the database.\").optional()),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Credits remaining after this request.\").optional()),\n}).describe(\"Response model for the gender-by-email query (GenderAPI.io format).\");\n\nexport const genderapiIoQueryByEmailAddress = action(\"GENDERAPI_IO_QUERY_BY_EMAIL_ADDRESS\", {\n slug: \"genderapi_io-query-by-email-address\",\n name: \"Query gender by email address\",\n description: \"Tool to determine gender from an email address. Use when you need to infer gender for personalization after obtaining proper consent.\",\n input: GenderapiIoQueryByEmailAddressInput,\n output: GenderapiIoQueryByEmailAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACjG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACtE,IAAIA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;CAC7J,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IA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AAS;CAC3F,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;AAChK,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-by-email-address.cjs","names":["z","action"],"sources":["../../src/actions/query-by-email-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoQueryByEmailAddressInput = z.object({\n id: z.string().describe(\"Optional client-provided ID (max 50 characters) for tracing.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-hinting.\").optional(),\n email: z.string().describe(\"Email address to query; must be a valid email format.\"),\n locale: z.string().describe(\"Browser locale to improve name parsing (e.g., 'en', 'fr').\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code to hint the endpoint (uppercase).\").optional(),\n}).describe(\"Request model for querying gender by email address on GenderAPI.io.\");\nexport const GenderapiIoQueryByEmailAddressOutput = z.object({\n q: z.string().describe(\"Echo of the input (email address).\").nullable(),\n to: z.boolean().describe(\"Additional metadata flag (usage varies by API response).\").nullable().optional(),\n name: z.string().describe(\"Name extracted from the email address, if any.\").nullable().optional(),\n gender: z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").nullable().optional(),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.string().describe(\"Country code determined/used by the service.\").nullable().optional(),\n expires: z.number().int().describe(\"UNIX timestamp when the current package expires\").nullable().optional(),\n duration: z.string().describe(\"Server processing time (e.g., '5ms').\").nullable().optional(),\n isHumanName: z.boolean().describe(\"Whether the extracted name appears to be a human name.\").nullable().optional(),\n probability: z.number().int().describe(\"Reliability percentage between 0 and 100.\").nullable().optional(),\n total_names: z.number().int().describe(\"Number of matching name samples in the database.\").nullable().optional(),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.number().int().describe(\"Credits remaining after this request.\").nullable().optional(),\n}).describe(\"Response model for the gender-by-email query (GenderAPI.io format).\");\n\nexport const genderapiIoQueryByEmailAddress = action(\"GENDERAPI_IO_QUERY_BY_EMAIL_ADDRESS\", {\n slug: \"genderapi_io-query-by-email-address\",\n name: \"Query gender by email address\",\n description: \"Tool to determine gender from an email address. Use when you need to infer gender for personalization after obtaining proper consent.\",\n input: GenderapiIoQueryByEmailAddressInput,\n output: GenderapiIoQueryByEmailAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACjG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACtE,IAAIA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EA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declare const GenderapiIoQueryByEmailAddressOutput: z.ZodObject<{
12
12
  q: z.ZodNullable<z.ZodString>;
13
- to: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
14
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ to: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  status: z.ZodNullable<z.ZodBoolean>;
17
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- expires: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
- duration: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- isHumanName: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
21
- probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
- total_names: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
17
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ expires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ isHumanName: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total_names: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  used_credits: z.ZodNullable<z.ZodNumber>;
24
- remaining_credits: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  }, z.core.$strip>;
26
26
  declare const genderapiIoQueryByEmailAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  email: string;
@@ -29,21 +29,7 @@ declare const genderapiIoQueryByEmailAddress: import("@keystrokehq/action").Work
29
29
  ip?: string | undefined;
30
30
  locale?: string | undefined;
31
31
  country?: string | undefined;
32
- }, {
33
- q: string | null;
34
- status: boolean | null;
35
- used_credits: number | null;
36
- to?: boolean | undefined;
37
- name?: string | undefined;
38
- gender?: string | undefined;
39
- country?: string | undefined;
40
- expires?: number | undefined;
41
- duration?: string | undefined;
42
- isHumanName?: boolean | undefined;
43
- probability?: number | undefined;
44
- total_names?: number | undefined;
45
- remaining_credits?: number | undefined;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
33
  //#endregion
48
34
  export { genderapiIoQueryByEmailAddress };
49
35
  //# sourceMappingURL=query-by-email-address.d.cts.map
@@ -10,18 +10,18 @@ declare const GenderapiIoQueryByEmailAddressInput: z.ZodObject<{
10
10
  }, z.core.$strip>;
11
11
  declare const GenderapiIoQueryByEmailAddressOutput: z.ZodObject<{
12
12
  q: z.ZodNullable<z.ZodString>;
13
- to: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
14
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ to: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  status: z.ZodNullable<z.ZodBoolean>;
17
- country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- expires: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
- duration: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- isHumanName: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
21
- probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
- total_names: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
17
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ expires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ isHumanName: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total_names: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  used_credits: z.ZodNullable<z.ZodNumber>;
24
- remaining_credits: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  }, z.core.$strip>;
26
26
  declare const genderapiIoQueryByEmailAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  email: string;
@@ -29,21 +29,7 @@ declare const genderapiIoQueryByEmailAddress: import("@keystrokehq/action").Work
29
29
  ip?: string | undefined;
30
30
  locale?: string | undefined;
31
31
  country?: string | undefined;
32
- }, {
33
- q: string | null;
34
- status: boolean | null;
35
- used_credits: number | null;
36
- to?: boolean | undefined;
37
- name?: string | undefined;
38
- gender?: string | undefined;
39
- country?: string | undefined;
40
- expires?: number | undefined;
41
- duration?: string | undefined;
42
- isHumanName?: boolean | undefined;
43
- probability?: number | undefined;
44
- total_names?: number | undefined;
45
- remaining_credits?: number | undefined;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
33
  //#endregion
48
34
  export { genderapiIoQueryByEmailAddress };
49
35
  //# sourceMappingURL=query-by-email-address.d.mts.map
@@ -13,18 +13,18 @@ const genderapiIoQueryByEmailAddress = action("GENDERAPI_IO_QUERY_BY_EMAIL_ADDRE
13
13
  }).describe("Request model for querying gender by email address on GenderAPI.io."),
14
14
  output: z.object({
15
15
  q: z.string().describe("Echo of the input (email address).").nullable(),
16
- to: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Additional metadata flag (usage varies by API response).").optional()),
17
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name extracted from the email address, if any.").optional()),
18
- gender: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").optional()),
16
+ to: z.boolean().describe("Additional metadata flag (usage varies by API response).").nullable().optional(),
17
+ name: z.string().describe("Name extracted from the email address, if any.").nullable().optional(),
18
+ gender: z.string().describe("Predicted gender ('male' or 'female'); null if unknown.").nullable().optional(),
19
19
  status: z.boolean().describe("Whether the request was successful.").nullable(),
20
- country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Country code determined/used by the service.").optional()),
21
- expires: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("UNIX timestamp when the current package expires").optional()),
22
- duration: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Server processing time (e.g., '5ms').").optional()),
23
- isHumanName: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the extracted name appears to be a human name.").optional()),
24
- probability: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Reliability percentage between 0 and 100.").optional()),
25
- total_names: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of matching name samples in the database.").optional()),
20
+ country: z.string().describe("Country code determined/used by the service.").nullable().optional(),
21
+ expires: z.number().int().describe("UNIX timestamp when the current package expires").nullable().optional(),
22
+ duration: z.string().describe("Server processing time (e.g., '5ms').").nullable().optional(),
23
+ isHumanName: z.boolean().describe("Whether the extracted name appears to be a human name.").nullable().optional(),
24
+ probability: z.number().int().describe("Reliability percentage between 0 and 100.").nullable().optional(),
25
+ total_names: z.number().int().describe("Number of matching name samples in the database.").nullable().optional(),
26
26
  used_credits: z.number().int().describe("Number of credits used for this query.").nullable(),
27
- remaining_credits: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Credits remaining after this request.").optional())
27
+ remaining_credits: z.number().int().describe("Credits remaining after this request.").nullable().optional()
28
28
  }).describe("Response model for the gender-by-email query (GenderAPI.io format).")
29
29
  });
30
30
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"query-by-email-address.mjs","names":[],"sources":["../../src/actions/query-by-email-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoQueryByEmailAddressInput = z.object({\n id: z.string().describe(\"Optional client-provided ID (max 50 characters) for tracing.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-hinting.\").optional(),\n email: z.string().describe(\"Email address to query; must be a valid email format.\"),\n locale: z.string().describe(\"Browser locale to improve name parsing (e.g., 'en', 'fr').\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code to hint the endpoint (uppercase).\").optional(),\n}).describe(\"Request model for querying gender by email address on GenderAPI.io.\");\nexport const GenderapiIoQueryByEmailAddressOutput = z.object({\n q: z.string().describe(\"Echo of the input (email address).\").nullable(),\n to: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Additional metadata flag (usage varies by API response).\").optional()),\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name extracted from the email address, if any.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").optional()),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country code determined/used by the service.\").optional()),\n expires: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"UNIX timestamp when the current package expires\").optional()),\n duration: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Server processing time (e.g., '5ms').\").optional()),\n isHumanName: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the extracted name appears to be a human name.\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Reliability percentage between 0 and 100.\").optional()),\n total_names: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of matching name samples in the database.\").optional()),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Credits remaining after this request.\").optional()),\n}).describe(\"Response model for the gender-by-email query (GenderAPI.io format).\");\n\nexport const genderapiIoQueryByEmailAddress = action(\"GENDERAPI_IO_QUERY_BY_EMAIL_ADDRESS\", {\n slug: \"genderapi_io-query-by-email-address\",\n name: \"Query gender by email address\",\n description: \"Tool to determine gender from an email address. Use when you need to infer gender for personalization after obtaining proper consent.\",\n input: GenderapiIoQueryByEmailAddressInput,\n output: GenderapiIoQueryByEmailAddressOutput,\n});\n"],"mappings":";;AA2BA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACjG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,qEAqBH;CACP,QArBkD,EAAE,OAAO;EAC3D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACtE,IAAI,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;EAC7J,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OA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AAC,CAAC,SAAS,CAAC;CAChK,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-by-email-address.mjs","names":[],"sources":["../../src/actions/query-by-email-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderapiIoQueryByEmailAddressInput = z.object({\n id: z.string().describe(\"Optional client-provided ID (max 50 characters) for tracing.\").optional(),\n ip: z.string().describe(\"Valid IPv4 or IPv6 address for geo-hinting.\").optional(),\n email: z.string().describe(\"Email address to query; must be a valid email format.\"),\n locale: z.string().describe(\"Browser locale to improve name parsing (e.g., 'en', 'fr').\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code to hint the endpoint (uppercase).\").optional(),\n}).describe(\"Request model for querying gender by email address on GenderAPI.io.\");\nexport const GenderapiIoQueryByEmailAddressOutput = z.object({\n q: z.string().describe(\"Echo of the input (email address).\").nullable(),\n to: z.boolean().describe(\"Additional metadata flag (usage varies by API response).\").nullable().optional(),\n name: z.string().describe(\"Name extracted from the email address, if any.\").nullable().optional(),\n gender: z.string().describe(\"Predicted gender ('male' or 'female'); null if unknown.\").nullable().optional(),\n status: z.boolean().describe(\"Whether the request was successful.\").nullable(),\n country: z.string().describe(\"Country code determined/used by the service.\").nullable().optional(),\n expires: z.number().int().describe(\"UNIX timestamp when the current package expires\").nullable().optional(),\n duration: z.string().describe(\"Server processing time (e.g., '5ms').\").nullable().optional(),\n isHumanName: z.boolean().describe(\"Whether the extracted name appears to be a human name.\").nullable().optional(),\n probability: z.number().int().describe(\"Reliability percentage between 0 and 100.\").nullable().optional(),\n total_names: z.number().int().describe(\"Number of matching name samples in the database.\").nullable().optional(),\n used_credits: z.number().int().describe(\"Number of credits used for this query.\").nullable(),\n remaining_credits: z.number().int().describe(\"Credits remaining after this request.\").nullable().optional(),\n}).describe(\"Response model for the gender-by-email query (GenderAPI.io format).\");\n\nexport const genderapiIoQueryByEmailAddress = action(\"GENDERAPI_IO_QUERY_BY_EMAIL_ADDRESS\", {\n slug: \"genderapi_io-query-by-email-address\",\n name: \"Query gender by email address\",\n description: \"Tool to determine gender from an email address. Use when you need to infer gender for personalization after obtaining proper consent.\",\n input: GenderapiIoQueryByEmailAddressInput,\n output: GenderapiIoQueryByEmailAddressOutput,\n});\n"],"mappings":";;AA2BA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACjG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,qEAqBH;CACP,QArBkD,EAAE,OAAO;EAC3D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACtE,IAAI,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC3F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/genderapi_io",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"