@keystrokehq/genderize 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["genderize","executeGenderizeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderize } from \"./app\";\nimport { executeGenderizeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return genderize.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 executeGenderizeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["genderize","executeGenderizeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderize } from \"./app\";\nimport { executeGenderizeTool } 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 genderize.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 executeGenderizeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderize } from \"./app\";\nimport { executeGenderizeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return genderize.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 executeGenderizeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { genderize } from \"./app\";\nimport { executeGenderizeTool } 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 genderize.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 executeGenderizeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -7,11 +7,11 @@ const GenderizePredictGenderInput = zod.z.object({
7
7
  country_id: zod.z.string().describe("ISO 3166-1 alpha-2 country code to localize prediction (e.g., 'US').").optional()
8
8
  });
9
9
  const GenderizePredictGenderOutput = zod.z.object({
10
- name: zod.z.string().describe("Processed name from the API."),
11
- count: zod.z.number().int().describe("Number of data points used for the prediction.").nullable().optional(),
12
- error: zod.z.string().describe("Error message if the request failed.").nullable().optional(),
13
- gender: zod.z.string().describe("Predicted gender ('male' or 'female').").nullable().optional(),
14
- probability: zod.z.number().describe("Prediction confidence, between 0.0 and 1.0.").nullable().optional()
10
+ name: zod.z.string().describe("Processed name from the API.").nullable(),
11
+ count: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of data points used for the prediction.").optional()),
12
+ error: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Error message if the request failed.").optional()),
13
+ gender: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Predicted gender ('male' or 'female').").optional()),
14
+ probability: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Prediction confidence, between 0.0 and 1.0.").optional())
15
15
  });
16
16
  const genderizePredictGender = require_action.action("GENDERIZE_PREDICT_GENDER", {
17
17
  slug: "genderize-predict-gender",
@@ -1 +1 @@
1
- {"version":3,"file":"predict-gender.cjs","names":["z","action"],"sources":["../../src/actions/predict-gender.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderizePredictGenderInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"First name to classify. Must be a single given name.\"),\n apikey: z.string().describe(\"API key for higher rate limits.\").optional(),\n country_id: z.string().describe(\"ISO 3166-1 alpha-2 country code to localize prediction (e.g., 'US').\").optional(),\n});\nexport const GenderizePredictGenderOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Processed name from the API.\"),\n count: z.number().int().describe(\"Number of data points used for the prediction.\").nullable().optional(),\n error: z.string().describe(\"Error message if the request failed.\").nullable().optional(),\n gender: z.string().describe(\"Predicted gender ('male' or 'female').\").nullable().optional(),\n probability: z.number().describe(\"Prediction confidence, between 0.0 and 1.0.\").nullable().optional(),\n});\n\nexport const genderizePredictGender = action(\"GENDERIZE_PREDICT_GENDER\", {\n slug: \"genderize-predict-gender\",\n name: \"Predict Gender\",\n description: \"Tool to predict gender from a given first name. Use when you need a quick gender estimation possibly localized by country code.\",\n input: GenderizePredictGenderInput,\n output: GenderizePredictGenderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AACnH,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"predict-gender.cjs","names":["z","action"],"sources":["../../src/actions/predict-gender.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderizePredictGenderInput = z.object({\n name: z.string().describe(\"First name to classify. Must be a single given name.\"),\n apikey: z.string().describe(\"API key for higher rate limits.\").optional(),\n country_id: z.string().describe(\"ISO 3166-1 alpha-2 country code to localize prediction (e.g., 'US').\").optional(),\n});\nexport const GenderizePredictGenderOutput = z.object({\n name: z.string().describe(\"Processed name from the API.\").nullable(),\n count: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of data points used for the prediction.\").optional()),\n error: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error message if the request failed.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Predicted gender ('male' or 'female').\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Prediction confidence, between 0.0 and 1.0.\").optional()),\n});\n\nexport const genderizePredictGender = action(\"GENDERIZE_PREDICT_GENDER\", {\n slug: \"genderize-predict-gender\",\n name: \"Predict Gender\",\n description: \"Tool to predict gender from a given first name. Use when you need a quick gender estimation possibly localized by country code.\",\n input: GenderizePredictGenderInput,\n output: GenderizePredictGenderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AACnH,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CAC3J,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC3I,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CAC9I,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;AAC1J,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/predict-gender.d.ts
4
- declare const GenderizePredictGenderInput: z.ZodTypeAny;
5
- declare const GenderizePredictGenderOutput: z.ZodTypeAny;
6
- declare const genderizePredictGender: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GenderizePredictGenderInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ apikey: z.ZodOptional<z.ZodString>;
7
+ country_id: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const GenderizePredictGenderOutput: z.ZodObject<{
10
+ name: z.ZodNullable<z.ZodString>;
11
+ count: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
+ error: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ }, z.core.$strip>;
16
+ declare const genderizePredictGender: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ name: string;
18
+ apikey?: string | undefined;
19
+ country_id?: string | undefined;
20
+ }, {
21
+ name: string | null;
22
+ count?: number | undefined;
23
+ error?: string | undefined;
24
+ gender?: string | undefined;
25
+ probability?: number | undefined;
26
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { genderizePredictGender };
9
29
  //# sourceMappingURL=predict-gender.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"predict-gender.d.cts","names":[],"sources":["../../src/actions/predict-gender.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAM3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"predict-gender.d.cts","names":[],"sources":["../../src/actions/predict-gender.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAQ5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/predict-gender.d.ts
4
- declare const GenderizePredictGenderInput: z.ZodTypeAny;
5
- declare const GenderizePredictGenderOutput: z.ZodTypeAny;
6
- declare const genderizePredictGender: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GenderizePredictGenderInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ apikey: z.ZodOptional<z.ZodString>;
7
+ country_id: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const GenderizePredictGenderOutput: z.ZodObject<{
10
+ name: z.ZodNullable<z.ZodString>;
11
+ count: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
+ error: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ gender: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ probability: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ }, z.core.$strip>;
16
+ declare const genderizePredictGender: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ name: string;
18
+ apikey?: string | undefined;
19
+ country_id?: string | undefined;
20
+ }, {
21
+ name: string | null;
22
+ count?: number | undefined;
23
+ error?: string | undefined;
24
+ gender?: string | undefined;
25
+ probability?: number | undefined;
26
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { genderizePredictGender };
9
29
  //# sourceMappingURL=predict-gender.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"predict-gender.d.mts","names":[],"sources":["../../src/actions/predict-gender.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAM3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"predict-gender.d.mts","names":[],"sources":["../../src/actions/predict-gender.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAQ5B,sBAAA,gCAAsB,wBAAA"}
@@ -10,11 +10,11 @@ const genderizePredictGender = action("GENDERIZE_PREDICT_GENDER", {
10
10
  country_id: z.string().describe("ISO 3166-1 alpha-2 country code to localize prediction (e.g., 'US').").optional()
11
11
  }),
12
12
  output: z.object({
13
- name: z.string().describe("Processed name from the API."),
14
- count: z.number().int().describe("Number of data points used for the prediction.").nullable().optional(),
15
- error: z.string().describe("Error message if the request failed.").nullable().optional(),
16
- gender: z.string().describe("Predicted gender ('male' or 'female').").nullable().optional(),
17
- probability: z.number().describe("Prediction confidence, between 0.0 and 1.0.").nullable().optional()
13
+ name: z.string().describe("Processed name from the API.").nullable(),
14
+ count: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of data points used for the prediction.").optional()),
15
+ error: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Error message if the request failed.").optional()),
16
+ gender: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Predicted gender ('male' or 'female').").optional()),
17
+ probability: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Prediction confidence, between 0.0 and 1.0.").optional())
18
18
  })
19
19
  });
20
20
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"predict-gender.mjs","names":[],"sources":["../../src/actions/predict-gender.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderizePredictGenderInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"First name to classify. Must be a single given name.\"),\n apikey: z.string().describe(\"API key for higher rate limits.\").optional(),\n country_id: z.string().describe(\"ISO 3166-1 alpha-2 country code to localize prediction (e.g., 'US').\").optional(),\n});\nexport const GenderizePredictGenderOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Processed name from the API.\"),\n count: z.number().int().describe(\"Number of data points used for the prediction.\").nullable().optional(),\n error: z.string().describe(\"Error message if the request failed.\").nullable().optional(),\n gender: z.string().describe(\"Predicted gender ('male' or 'female').\").nullable().optional(),\n probability: z.number().describe(\"Prediction confidence, between 0.0 and 1.0.\").nullable().optional(),\n});\n\nexport const genderizePredictGender = action(\"GENDERIZE_PREDICT_GENDER\", {\n slug: \"genderize-predict-gender\",\n name: \"Predict Gender\",\n description: \"Tool to predict gender from a given first name. Use when you need a quick gender estimation possibly localized by country code.\",\n input: GenderizePredictGenderInput,\n output: GenderizePredictGenderOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,CAaS;CACP,QAbwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"predict-gender.mjs","names":[],"sources":["../../src/actions/predict-gender.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GenderizePredictGenderInput = z.object({\n name: z.string().describe(\"First name to classify. Must be a single given name.\"),\n apikey: z.string().describe(\"API key for higher rate limits.\").optional(),\n country_id: z.string().describe(\"ISO 3166-1 alpha-2 country code to localize prediction (e.g., 'US').\").optional(),\n});\nexport const GenderizePredictGenderOutput = z.object({\n name: z.string().describe(\"Processed name from the API.\").nullable(),\n count: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of data points used for the prediction.\").optional()),\n error: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error message if the request failed.\").optional()),\n gender: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Predicted gender ('male' or 'female').\").optional()),\n probability: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Prediction confidence, between 0.0 and 1.0.\").optional()),\n});\n\nexport const genderizePredictGender = action(\"GENDERIZE_PREDICT_GENDER\", {\n slug: \"genderize-predict-gender\",\n name: \"Predict Gender\",\n description: \"Tool to predict gender from a given first name. Use when you need a quick gender estimation possibly localized by country code.\",\n input: GenderizePredictGenderInput,\n output: GenderizePredictGenderOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,CAaS;CACP,QAb0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;EAC3J,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;EAC3I,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;EAC9I,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CAC1J,CAOU;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const genderizeCatalog = {
7
7
  "category": "Developer Tools",
8
8
  "logo": "https://logos.composio.dev/api/genderize",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Genderize API Key",
13
+ "secret": true,
14
+ "description": "The API key obtained from Genderize.io for authentication."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.genderizeCatalog = genderizeCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const genderizeCatalog = {\n \"slug\": \"genderize\",\n \"name\": \"Genderize\",\n \"description\": \"Genderize is an API that predicts the gender of a person based on their first name, providing statistical probabilities for male or female classifications.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/genderize\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const genderizeCatalog = {\n \"slug\": \"genderize\",\n \"name\": \"Genderize\",\n \"description\": \"Genderize is an API that predicts the gender of a person based on their first name, providing statistical probabilities for male or female classifications.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/genderize\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Genderize API Key\",\n \"secret\": true,\n \"description\": \"The API key obtained from Genderize.io for authentication.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const genderizeCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/genderize";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Genderize API Key";
14
+ readonly secret: true;
15
+ readonly description: "The API key obtained from Genderize.io for authentication.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { genderizeCatalog };
@@ -8,6 +8,14 @@ declare const genderizeCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/genderize";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Genderize API Key";
14
+ readonly secret: true;
15
+ readonly description: "The API key obtained from Genderize.io for authentication.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { genderizeCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const genderizeCatalog = {
7
7
  "category": "Developer Tools",
8
8
  "logo": "https://logos.composio.dev/api/genderize",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Genderize API Key",
13
+ "secret": true,
14
+ "description": "The API key obtained from Genderize.io for authentication."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { genderizeCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const genderizeCatalog = {\n \"slug\": \"genderize\",\n \"name\": \"Genderize\",\n \"description\": \"Genderize is an API that predicts the gender of a person based on their first name, providing statistical probabilities for male or female classifications.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/genderize\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const genderizeCatalog = {\n \"slug\": \"genderize\",\n \"name\": \"Genderize\",\n \"description\": \"Genderize is an API that predicts the gender of a person based on their first name, providing statistical probabilities for male or female classifications.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/genderize\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Genderize API Key\",\n \"secret\": true,\n \"description\": \"The API key obtained from Genderize.io for authentication.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/genderize",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {