@keystrokehq/rosette_text_analytics 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/address-similarity.cjs +3 -3
  4. package/dist/actions/address-similarity.cjs.map +1 -1
  5. package/dist/actions/address-similarity.d.cts +99 -3
  6. package/dist/actions/address-similarity.d.cts.map +1 -1
  7. package/dist/actions/address-similarity.d.mts +99 -3
  8. package/dist/actions/address-similarity.d.mts.map +1 -1
  9. package/dist/actions/address-similarity.mjs +3 -3
  10. package/dist/actions/address-similarity.mjs.map +1 -1
  11. package/dist/actions/language-identification.cjs +4 -4
  12. package/dist/actions/language-identification.cjs.map +1 -1
  13. package/dist/actions/language-identification.d.cts +18 -3
  14. package/dist/actions/language-identification.d.cts.map +1 -1
  15. package/dist/actions/language-identification.d.mts +18 -3
  16. package/dist/actions/language-identification.d.mts.map +1 -1
  17. package/dist/actions/language-identification.mjs +4 -4
  18. package/dist/actions/language-identification.mjs.map +1 -1
  19. package/dist/actions/name-similarity.cjs +1 -1
  20. package/dist/actions/name-similarity.cjs.map +1 -1
  21. package/dist/actions/name-similarity.d.cts +35 -3
  22. package/dist/actions/name-similarity.d.cts.map +1 -1
  23. package/dist/actions/name-similarity.d.mts +35 -3
  24. package/dist/actions/name-similarity.d.mts.map +1 -1
  25. package/dist/actions/name-similarity.mjs +1 -1
  26. package/dist/actions/name-similarity.mjs.map +1 -1
  27. package/dist/catalog.cjs +7 -1
  28. package/dist/catalog.cjs.map +1 -1
  29. package/dist/catalog.d.cts +8 -0
  30. package/dist/catalog.d.mts +8 -0
  31. package/dist/catalog.mjs +7 -1
  32. package/dist/catalog.mjs.map +1 -1
  33. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["rosetteTextAnalytics","executeRosetteTextAnalyticsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rosetteTextAnalytics } from \"./app\";\nimport { executeRosetteTextAnalyticsTool } 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 rosetteTextAnalytics.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 executeRosetteTextAnalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,qBAAqB,OAAO;EACjC,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,gCAAgC,MAAM,KAAgC,CAAC;EACvG;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["rosetteTextAnalytics","executeRosetteTextAnalyticsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rosetteTextAnalytics } from \"./app\";\nimport { executeRosetteTextAnalyticsTool } 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 rosetteTextAnalytics.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 executeRosetteTextAnalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,qBAAqB,OAAO;EACjC,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,gCAAgC,MAAM,KAAgC,CAAC;EACvG;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rosetteTextAnalytics } from \"./app\";\nimport { executeRosetteTextAnalyticsTool } 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 rosetteTextAnalytics.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 executeRosetteTextAnalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,qBAAqB,OAAO;EACjC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gCAAgC,MAAM,KAAgC,CAAC;EACvG;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rosetteTextAnalytics } from \"./app\";\nimport { executeRosetteTextAnalyticsTool } 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 rosetteTextAnalytics.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 executeRosetteTextAnalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,qBAAqB,OAAO;EACjC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gCAAgC,MAAM,KAAgC,CAAC;EACvG;CACF,CAAC;AACH"}
@@ -21,7 +21,7 @@ const RosetteTextAnalyticsAddressSimilarityInput = zod.z.object({
21
21
  cityDistrict: zod.z.string().nullable().optional(),
22
22
  countryRegion: zod.z.string().nullable().optional(),
23
23
  stateDistrict: zod.z.string().nullable().optional()
24
- }).describe("Represents a structured address."), zod.z.object({ address: zod.z.string().describe("An address string") }).describe("Represents an address as a single string.")]),
24
+ }).passthrough().describe("Represents a structured address."), zod.z.object({ address: zod.z.string().describe("An address string") }).passthrough().describe("Represents an address as a single string.")]),
25
25
  address2: zod.z.union([zod.z.object({
26
26
  city: zod.z.string().nullable().optional(),
27
27
  road: zod.z.string().nullable().optional(),
@@ -41,9 +41,9 @@ const RosetteTextAnalyticsAddressSimilarityInput = zod.z.object({
41
41
  cityDistrict: zod.z.string().nullable().optional(),
42
42
  countryRegion: zod.z.string().nullable().optional(),
43
43
  stateDistrict: zod.z.string().nullable().optional()
44
- }).describe("Represents a structured address."), zod.z.object({ address: zod.z.string().describe("An address string") }).describe("Represents an address as a single string.")])
44
+ }).passthrough().describe("Represents a structured address."), zod.z.object({ address: zod.z.string().describe("An address string") }).passthrough().describe("Represents an address as a single string.")])
45
45
  });
46
- const RosetteTextAnalyticsAddressSimilarityOutput = zod.z.object({ score: zod.z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.") });
46
+ const RosetteTextAnalyticsAddressSimilarityOutput = zod.z.object({ score: zod.z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.").nullable() }).passthrough();
47
47
  const rosetteTextAnalyticsAddressSimilarity = require_action.action("ROSETTE_TEXT_ANALYTICS_ADDRESS_SIMILARITY", {
48
48
  slug: "rosette_text_analytics-address-similarity",
49
49
  name: "Address Similarity",
@@ -1 +1 @@
1
- {"version":3,"file":"address-similarity.cjs","names":["z","action"],"sources":["../../src/actions/address-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsAddressSimilarityInput: z.ZodTypeAny = z.object({\n address1: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).describe(\"Represents an address as a single string.\")]),\n address2: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).describe(\"Represents an address as a single string.\")]),\n});\nexport const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodTypeAny = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.\"),\n});\n\nexport const rosetteTextAnalyticsAddressSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_ADDRESS_SIMILARITY\", {\n slug: \"rosette_text_analytics-address-similarity\",\n name: \"Address Similarity\",\n description: \"Compares two addresses and returns a similarity score. Addresses can be provided as single strings or as structured objects. The tool is optimized for English, Simplified Chinese, and Traditional Chinese addresses.\",\n input: RosetteTextAnalyticsAddressSimilarityInput,\n output: RosetteTextAnalyticsAddressSimilarityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC5B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;E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CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"address-similarity.cjs","names":["z","action"],"sources":["../../src/actions/address-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsAddressSimilarityInput = z.object({\n address1: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).passthrough().describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).passthrough().describe(\"Represents an address as a single string.\")]),\n address2: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).passthrough().describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).passthrough().describe(\"Represents an address as a single string.\")]),\n});\nexport const RosetteTextAnalyticsAddressSimilarityOutput = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.\").nullable(),\n}).passthrough();\n\nexport const rosetteTextAnalyticsAddressSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_ADDRESS_SIMILARITY\", {\n slug: \"rosette_text_analytics-address-similarity\",\n name: \"Address Similarity\",\n description: \"Compares two addresses and returns a similarity score. Addresses can be provided as single strings or as structured objects. The tool is optimized for English, Simplified Chinese, and Traditional Chinese addresses.\",\n input: RosetteTextAnalyticsAddressSimilarityInput,\n output: RosetteTextAnalyticsAddressSimilarityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC5B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,UAAUA,IAAAA,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+1,105 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/address-similarity.d.ts
4
- declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodTypeAny;
5
- declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodTypeAny;
6
- declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
5
+ address1: z.ZodUnion<readonly [z.ZodObject<{
6
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ road: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ house: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ poBox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ island: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ suburb: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ entrance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ postCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ staircase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ houseNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ worldRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>, z.ZodObject<{
25
+ address: z.ZodString;
26
+ }, z.core.$loose>]>;
27
+ address2: z.ZodUnion<readonly [z.ZodObject<{
28
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ road: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ house: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ poBox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ island: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ suburb: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ entrance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ postCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ staircase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ houseNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ worldRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>, z.ZodObject<{
47
+ address: z.ZodString;
48
+ }, z.core.$loose>]>;
49
+ }, z.core.$strip>;
50
+ declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodObject<{
51
+ score: z.ZodNullable<z.ZodNumber>;
52
+ }, z.core.$loose>;
53
+ declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
54
+ address1: {
55
+ [x: string]: unknown;
56
+ city?: string | null | undefined;
57
+ road?: string | null | undefined;
58
+ unit?: string | null | undefined;
59
+ house?: string | null | undefined;
60
+ level?: string | null | undefined;
61
+ poBox?: string | null | undefined;
62
+ state?: string | null | undefined;
63
+ island?: string | null | undefined;
64
+ suburb?: string | null | undefined;
65
+ country?: string | null | undefined;
66
+ entrance?: string | null | undefined;
67
+ postCode?: string | null | undefined;
68
+ staircase?: string | null | undefined;
69
+ houseNumber?: string | null | undefined;
70
+ worldRegion?: string | null | undefined;
71
+ cityDistrict?: string | null | undefined;
72
+ countryRegion?: string | null | undefined;
73
+ stateDistrict?: string | null | undefined;
74
+ } | {
75
+ [x: string]: unknown;
76
+ address: string;
77
+ };
78
+ address2: {
79
+ [x: string]: unknown;
80
+ city?: string | null | undefined;
81
+ road?: string | null | undefined;
82
+ unit?: string | null | undefined;
83
+ house?: string | null | undefined;
84
+ level?: string | null | undefined;
85
+ poBox?: string | null | undefined;
86
+ state?: string | null | undefined;
87
+ island?: string | null | undefined;
88
+ suburb?: string | null | undefined;
89
+ country?: string | null | undefined;
90
+ entrance?: string | null | undefined;
91
+ postCode?: string | null | undefined;
92
+ staircase?: string | null | undefined;
93
+ houseNumber?: string | null | undefined;
94
+ worldRegion?: string | null | undefined;
95
+ cityDistrict?: string | null | undefined;
96
+ countryRegion?: string | null | undefined;
97
+ stateDistrict?: string | null | undefined;
98
+ } | {
99
+ [x: string]: unknown;
100
+ address: string;
101
+ };
102
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
103
  //#endregion
8
104
  export { rosetteTextAnalyticsAddressSimilarity };
9
105
  //# sourceMappingURL=address-similarity.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"address-similarity.d.cts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UA6CzD;AAAA,cACW,2CAAA,EAA6C,CAAA,CAAE,UAE1D;AAAA,cAEW,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"address-similarity.d.cts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
@@ -1,9 +1,105 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/address-similarity.d.ts
4
- declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodTypeAny;
5
- declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodTypeAny;
6
- declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
5
+ address1: z.ZodUnion<readonly [z.ZodObject<{
6
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ road: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ house: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ poBox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ island: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ suburb: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ entrance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ postCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ staircase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ houseNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ worldRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>, z.ZodObject<{
25
+ address: z.ZodString;
26
+ }, z.core.$loose>]>;
27
+ address2: z.ZodUnion<readonly [z.ZodObject<{
28
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ road: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ house: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ poBox: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ island: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ suburb: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ entrance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ postCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ staircase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ houseNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ worldRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>, z.ZodObject<{
47
+ address: z.ZodString;
48
+ }, z.core.$loose>]>;
49
+ }, z.core.$strip>;
50
+ declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodObject<{
51
+ score: z.ZodNullable<z.ZodNumber>;
52
+ }, z.core.$loose>;
53
+ declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
54
+ address1: {
55
+ [x: string]: unknown;
56
+ city?: string | null | undefined;
57
+ road?: string | null | undefined;
58
+ unit?: string | null | undefined;
59
+ house?: string | null | undefined;
60
+ level?: string | null | undefined;
61
+ poBox?: string | null | undefined;
62
+ state?: string | null | undefined;
63
+ island?: string | null | undefined;
64
+ suburb?: string | null | undefined;
65
+ country?: string | null | undefined;
66
+ entrance?: string | null | undefined;
67
+ postCode?: string | null | undefined;
68
+ staircase?: string | null | undefined;
69
+ houseNumber?: string | null | undefined;
70
+ worldRegion?: string | null | undefined;
71
+ cityDistrict?: string | null | undefined;
72
+ countryRegion?: string | null | undefined;
73
+ stateDistrict?: string | null | undefined;
74
+ } | {
75
+ [x: string]: unknown;
76
+ address: string;
77
+ };
78
+ address2: {
79
+ [x: string]: unknown;
80
+ city?: string | null | undefined;
81
+ road?: string | null | undefined;
82
+ unit?: string | null | undefined;
83
+ house?: string | null | undefined;
84
+ level?: string | null | undefined;
85
+ poBox?: string | null | undefined;
86
+ state?: string | null | undefined;
87
+ island?: string | null | undefined;
88
+ suburb?: string | null | undefined;
89
+ country?: string | null | undefined;
90
+ entrance?: string | null | undefined;
91
+ postCode?: string | null | undefined;
92
+ staircase?: string | null | undefined;
93
+ houseNumber?: string | null | undefined;
94
+ worldRegion?: string | null | undefined;
95
+ cityDistrict?: string | null | undefined;
96
+ countryRegion?: string | null | undefined;
97
+ stateDistrict?: string | null | undefined;
98
+ } | {
99
+ [x: string]: unknown;
100
+ address: string;
101
+ };
102
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
103
  //#endregion
8
104
  export { rosetteTextAnalyticsAddressSimilarity };
9
105
  //# sourceMappingURL=address-similarity.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"address-similarity.d.mts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UA6CzD;AAAA,cACW,2CAAA,EAA6C,CAAA,CAAE,UAE1D;AAAA,cAEW,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"address-similarity.d.mts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
@@ -24,7 +24,7 @@ const rosetteTextAnalyticsAddressSimilarity = action("ROSETTE_TEXT_ANALYTICS_ADD
24
24
  cityDistrict: z.string().nullable().optional(),
25
25
  countryRegion: z.string().nullable().optional(),
26
26
  stateDistrict: z.string().nullable().optional()
27
- }).describe("Represents a structured address."), z.object({ address: z.string().describe("An address string") }).describe("Represents an address as a single string.")]),
27
+ }).passthrough().describe("Represents a structured address."), z.object({ address: z.string().describe("An address string") }).passthrough().describe("Represents an address as a single string.")]),
28
28
  address2: z.union([z.object({
29
29
  city: z.string().nullable().optional(),
30
30
  road: z.string().nullable().optional(),
@@ -44,9 +44,9 @@ const rosetteTextAnalyticsAddressSimilarity = action("ROSETTE_TEXT_ANALYTICS_ADD
44
44
  cityDistrict: z.string().nullable().optional(),
45
45
  countryRegion: z.string().nullable().optional(),
46
46
  stateDistrict: z.string().nullable().optional()
47
- }).describe("Represents a structured address."), z.object({ address: z.string().describe("An address string") }).describe("Represents an address as a single string.")])
47
+ }).passthrough().describe("Represents a structured address."), z.object({ address: z.string().describe("An address string") }).passthrough().describe("Represents an address as a single string.")])
48
48
  }),
49
- output: z.object({ score: z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.") })
49
+ output: z.object({ score: z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.").nullable() }).passthrough()
50
50
  });
51
51
  //#endregion
52
52
  export { rosetteTextAnalyticsAddressSimilarity };
@@ -1 +1 @@
1
- {"version":3,"file":"address-similarity.mjs","names":[],"sources":["../../src/actions/address-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsAddressSimilarityInput: z.ZodTypeAny = z.object({\n address1: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).describe(\"Represents an address as a single string.\")]),\n address2: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).describe(\"Represents an address as a single string.\")]),\n});\nexport const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodTypeAny = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.\"),\n});\n\nexport const rosetteTextAnalyticsAddressSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_ADDRESS_SIMILARITY\", {\n slug: \"rosette_text_analytics-address-similarity\",\n name: \"Address Similarity\",\n description: \"Compares two addresses and returns a similarity score. Addresses can be provided as single strings or as structured objects. The tool is optimized for English, Simplified Chinese, and Traditional Chinese addresses.\",\n input: RosetteTextAnalyticsAddressSimilarityInput,\n output: RosetteTextAnalyticsAddressSimilarityOutput,\n});\n"],"mappings":";;AAsDA,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtDsE,EAAE,OAAO;EAC/E,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO;GAC5B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACrC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACxC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACzC,UAAU,EAAE,OAAO,CAAC,CA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AC,SAAS,CAAC,CAAC,SAAS;GACzC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC1C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC5C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC5C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC7C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC9C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChD,CAAC,CAAC,CAAC,SAAS,kCAAkC,GAAG,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAClD,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC;CACzD,CASS;CACP,QATuE,EAAE,OAAO,EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,EACxG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"address-similarity.mjs","names":[],"sources":["../../src/actions/address-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsAddressSimilarityInput = z.object({\n address1: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).passthrough().describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).passthrough().describe(\"Represents an address as a single string.\")]),\n address2: z.union([z.object({\n city: z.string().nullable().optional(),\n road: z.string().nullable().optional(),\n unit: z.string().nullable().optional(),\n house: z.string().nullable().optional(),\n level: z.string().nullable().optional(),\n poBox: z.string().nullable().optional(),\n state: z.string().nullable().optional(),\n island: z.string().nullable().optional(),\n suburb: z.string().nullable().optional(),\n country: z.string().nullable().optional(),\n entrance: z.string().nullable().optional(),\n postCode: z.string().nullable().optional(),\n staircase: z.string().nullable().optional(),\n houseNumber: z.string().nullable().optional(),\n worldRegion: z.string().nullable().optional(),\n cityDistrict: z.string().nullable().optional(),\n countryRegion: z.string().nullable().optional(),\n stateDistrict: z.string().nullable().optional(),\n}).passthrough().describe(\"Represents a structured address.\"), z.object({\n address: z.string().describe(\"An address string\"),\n}).passthrough().describe(\"Represents an address as a single string.\")]),\n});\nexport const RosetteTextAnalyticsAddressSimilarityOutput = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.\").nullable(),\n}).passthrough();\n\nexport const rosetteTextAnalyticsAddressSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_ADDRESS_SIMILARITY\", {\n slug: \"rosette_text_analytics-address-similarity\",\n name: \"Address Similarity\",\n description: \"Compares two addresses and returns a similarity score. Addresses can be provided as single strings or as structured objects. The tool is optimized for English, Simplified Chinese, and Traditional Chinese addresses.\",\n input: RosetteTextAnalyticsAddressSimilarityInput,\n output: RosetteTextAnalyticsAddressSimilarityOutput,\n});\n"],"mappings":";;AAsDA,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtDwD,EAAE,OAAO;EACjE,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO;GAC5B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,S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AAC,CAAC,SAAS,mBAAmB,EAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC;CACvE,CASS;CACP,QATyD,EAAE,OAAO,EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -8,10 +8,10 @@ const RosetteTextAnalyticsLanguageIdentificationInput = zod.z.object({
8
8
  koreanDialects: zod.z.boolean().default(false).describe("If set to true, enables classification for North Korean (qkp) and South Korean (qkr) dialects. Default is false.").optional()
9
9
  });
10
10
  const RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema = zod.z.object({
11
- language: zod.z.string().describe("The detected language code (e.g., 'eng')."),
12
- confidence: zod.z.number().describe("The confidence score for the detected language (0.0 to 1.0).")
13
- });
14
- const RosetteTextAnalyticsLanguageIdentificationOutput = zod.z.object({ languageDetections: zod.z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe("A list of detected languages and their confidence scores.") });
11
+ language: zod.z.string().describe("The detected language code (e.g., 'eng').").nullable(),
12
+ confidence: zod.z.number().describe("The confidence score for the detected language (0.0 to 1.0).").nullable()
13
+ }).passthrough();
14
+ const RosetteTextAnalyticsLanguageIdentificationOutput = zod.z.object({ languageDetections: zod.z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe("A list of detected languages and their confidence scores.") }).passthrough();
15
15
  const rosetteTextAnalyticsLanguageIdentification = require_action.action("ROSETTE_TEXT_ANALYTICS_LANGUAGE_IDENTIFICATION", {
16
16
  slug: "rosette_text_analytics-language-identification",
17
17
  name: "Identify Language",
@@ -1 +1 @@
1
- {"version":3,"file":"language-identification.cjs","names":["z","action"],"sources":["../../src/actions/language-identification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsLanguageIdentificationInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The text to be analyzed.\").optional(),\n contentUri: z.string().describe(\"A URI pointing to the content to be analyzed. Mutually exclusive with content.\").optional(),\n multilingual: z.boolean().default(false).describe(\"If set to true, the endpoint detects regions in multilingual documents and returns a list of language regions in addition to whole-document results. Default is false.\").optional(),\n koreanDialects: z.boolean().default(false).describe(\"If set to true, enables classification for North Korean (qkp) and South Korean (qkr) dialects. Default is false.\").optional(),\n});\nconst RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema: z.ZodTypeAny = z.object({\n language: z.string().describe(\"The detected language code (e.g., 'eng').\"),\n confidence: z.number().describe(\"The confidence score for the detected language (0.0 to 1.0).\"),\n});\nexport const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodTypeAny = z.object({\n languageDetections: z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe(\"A list of detected languages and their confidence scores.\"),\n});\n\nexport const rosetteTextAnalyticsLanguageIdentification = action(\"ROSETTE_TEXT_ANALYTICS_LANGUAGE_IDENTIFICATION\", {\n slug: \"rosette_text_analytics-language-identification\",\n name: \"Identify Language\",\n description: \"This tool identifies the natural language of a given text. It takes a string of text as input and returns the detected language along with a confidence score. Optional parameters include specifying a genre (e.g., \\\"social-media\\\"), providing a list of language codes to constrain the identification, and indicating whether to include user-defined languages.\",\n input: RosetteTextAnalyticsLanguageIdentificationInput,\n output: RosetteTextAnalyticsLanguageIdentificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACnL,CAAC;AACD,MAAM,qEAAmFA,IAAAA,EAAE,OAAO;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAChG,CAAC;AACD,MAAa,mDAAiEA,IAAAA,EAAE,OAAO,EACrF,oBAAoBA,IAAAA,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,2DAA2D,EACtK,CAAC;AAED,MAAa,6CAA6CC,eAAAA,OAAO,kDAAkD;CACjH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"language-identification.cjs","names":["z","action"],"sources":["../../src/actions/language-identification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsLanguageIdentificationInput = z.object({\n content: z.string().describe(\"The text to be analyzed.\").optional(),\n contentUri: z.string().describe(\"A URI pointing to the content to be analyzed. Mutually exclusive with content.\").optional(),\n multilingual: z.boolean().default(false).describe(\"If set to true, the endpoint detects regions in multilingual documents and returns a list of language regions in addition to whole-document results. Default is false.\").optional(),\n koreanDialects: z.boolean().default(false).describe(\"If set to true, enables classification for North Korean (qkp) and South Korean (qkr) dialects. Default is false.\").optional(),\n});\nconst RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema = z.object({\n language: z.string().describe(\"The detected language code (e.g., 'eng').\").nullable(),\n confidence: z.number().describe(\"The confidence score for the detected language (0.0 to 1.0).\").nullable(),\n}).passthrough();\nexport const RosetteTextAnalyticsLanguageIdentificationOutput = z.object({\n languageDetections: z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe(\"A list of detected languages and their confidence scores.\"),\n}).passthrough();\n\nexport const rosetteTextAnalyticsLanguageIdentification = action(\"ROSETTE_TEXT_ANALYTICS_LANGUAGE_IDENTIFICATION\", {\n slug: \"rosette_text_analytics-language-identification\",\n name: \"Identify Language\",\n description: \"This tool identifies the natural language of a given text. It takes a string of text as input and returns the detected language along with a confidence score. Optional parameters include specifying a genre (e.g., \\\"social-media\\\"), providing a list of language codes to constrain the identification, and indicating whether to include user-defined languages.\",\n input: RosetteTextAnalyticsLanguageIdentificationInput,\n output: RosetteTextAnalyticsLanguageIdentificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACnL,CAAC;AACD,MAAM,qEAAqEA,IAAAA,EAAE,OAAO;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,mDAAmDA,IAAAA,EAAE,OAAO,EACvE,oBAAoBA,IAAAA,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,2DAA2D,EACtK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6CAA6CC,eAAAA,OAAO,kDAAkD;CACjH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/language-identification.d.ts
4
- declare const RosetteTextAnalyticsLanguageIdentificationInput: z.ZodTypeAny;
5
- declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodTypeAny;
6
- declare const rosetteTextAnalyticsLanguageIdentification: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RosetteTextAnalyticsLanguageIdentificationInput: z.ZodObject<{
5
+ content: z.ZodOptional<z.ZodString>;
6
+ contentUri: z.ZodOptional<z.ZodString>;
7
+ multilingual: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ koreanDialects: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ }, z.core.$strip>;
10
+ declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodObject<{
11
+ languageDetections: z.ZodArray<z.ZodObject<{
12
+ language: z.ZodNullable<z.ZodString>;
13
+ confidence: z.ZodNullable<z.ZodNumber>;
14
+ }, z.core.$loose>>;
15
+ }, z.core.$loose>;
16
+ declare const rosetteTextAnalyticsLanguageIdentification: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ content?: string | undefined;
18
+ contentUri?: string | undefined;
19
+ multilingual?: boolean | undefined;
20
+ koreanDialects?: boolean | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { rosetteTextAnalyticsLanguageIdentification };
9
24
  //# sourceMappingURL=language-identification.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"language-identification.d.cts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAK9D;AAAA,cAKW,gDAAA,EAAkD,CAAA,CAAE,UAE/D;AAAA,cAEW,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"language-identification.d.cts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAU/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;cAIhD,0CAAA,gCAA0C,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/language-identification.d.ts
4
- declare const RosetteTextAnalyticsLanguageIdentificationInput: z.ZodTypeAny;
5
- declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodTypeAny;
6
- declare const rosetteTextAnalyticsLanguageIdentification: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RosetteTextAnalyticsLanguageIdentificationInput: z.ZodObject<{
5
+ content: z.ZodOptional<z.ZodString>;
6
+ contentUri: z.ZodOptional<z.ZodString>;
7
+ multilingual: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ koreanDialects: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ }, z.core.$strip>;
10
+ declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodObject<{
11
+ languageDetections: z.ZodArray<z.ZodObject<{
12
+ language: z.ZodNullable<z.ZodString>;
13
+ confidence: z.ZodNullable<z.ZodNumber>;
14
+ }, z.core.$loose>>;
15
+ }, z.core.$loose>;
16
+ declare const rosetteTextAnalyticsLanguageIdentification: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ content?: string | undefined;
18
+ contentUri?: string | undefined;
19
+ multilingual?: boolean | undefined;
20
+ koreanDialects?: boolean | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { rosetteTextAnalyticsLanguageIdentification };
9
24
  //# sourceMappingURL=language-identification.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"language-identification.d.mts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAK9D;AAAA,cAKW,gDAAA,EAAkD,CAAA,CAAE,UAE/D;AAAA,cAEW,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"language-identification.d.mts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAU/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;cAIhD,0CAAA,gCAA0C,wBAAA"}
@@ -8,15 +8,15 @@ const RosetteTextAnalyticsLanguageIdentificationInput = z.object({
8
8
  koreanDialects: z.boolean().default(false).describe("If set to true, enables classification for North Korean (qkp) and South Korean (qkr) dialects. Default is false.").optional()
9
9
  });
10
10
  const RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema = z.object({
11
- language: z.string().describe("The detected language code (e.g., 'eng')."),
12
- confidence: z.number().describe("The confidence score for the detected language (0.0 to 1.0).")
13
- });
11
+ language: z.string().describe("The detected language code (e.g., 'eng').").nullable(),
12
+ confidence: z.number().describe("The confidence score for the detected language (0.0 to 1.0).").nullable()
13
+ }).passthrough();
14
14
  const rosetteTextAnalyticsLanguageIdentification = action("ROSETTE_TEXT_ANALYTICS_LANGUAGE_IDENTIFICATION", {
15
15
  slug: "rosette_text_analytics-language-identification",
16
16
  name: "Identify Language",
17
17
  description: "This tool identifies the natural language of a given text. It takes a string of text as input and returns the detected language along with a confidence score. Optional parameters include specifying a genre (e.g., \"social-media\"), providing a list of language codes to constrain the identification, and indicating whether to include user-defined languages.",
18
18
  input: RosetteTextAnalyticsLanguageIdentificationInput,
19
- output: z.object({ languageDetections: z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe("A list of detected languages and their confidence scores.") })
19
+ output: z.object({ languageDetections: z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe("A list of detected languages and their confidence scores.") }).passthrough()
20
20
  });
21
21
  //#endregion
22
22
  export { rosetteTextAnalyticsLanguageIdentification };
@@ -1 +1 @@
1
- {"version":3,"file":"language-identification.mjs","names":[],"sources":["../../src/actions/language-identification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsLanguageIdentificationInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The text to be analyzed.\").optional(),\n contentUri: z.string().describe(\"A URI pointing to the content to be analyzed. Mutually exclusive with content.\").optional(),\n multilingual: z.boolean().default(false).describe(\"If set to true, the endpoint detects regions in multilingual documents and returns a list of language regions in addition to whole-document results. Default is false.\").optional(),\n koreanDialects: z.boolean().default(false).describe(\"If set to true, enables classification for North Korean (qkp) and South Korean (qkr) dialects. Default is false.\").optional(),\n});\nconst RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema: z.ZodTypeAny = z.object({\n language: z.string().describe(\"The detected language code (e.g., 'eng').\"),\n confidence: z.number().describe(\"The confidence score for the detected language (0.0 to 1.0).\"),\n});\nexport const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodTypeAny = z.object({\n languageDetections: z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe(\"A list of detected languages and their confidence scores.\"),\n});\n\nexport const rosetteTextAnalyticsLanguageIdentification = action(\"ROSETTE_TEXT_ANALYTICS_LANGUAGE_IDENTIFICATION\", {\n slug: \"rosette_text_analytics-language-identification\",\n name: \"Identify Language\",\n description: \"This tool identifies the natural language of a given text. It takes a string of text as input and returns the detected language along with a confidence score. Optional parameters include specifying a genre (e.g., \\\"social-media\\\"), providing a list of language codes to constrain the identification, and indicating whether to include user-defined languages.\",\n input: RosetteTextAnalyticsLanguageIdentificationInput,\n output: RosetteTextAnalyticsLanguageIdentificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgE,EAAE,OAAO;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC3H,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACnL,CAAC;AACD,MAAM,qEAAmF,EAAE,OAAO;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAChG,CAAC;AAKD,MAAa,6CAA6C,OAAO,kDAAkD;CACjH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4E,EAAE,OAAO,EACrF,oBAAoB,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,2DAA2D,EACtK,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"language-identification.mjs","names":[],"sources":["../../src/actions/language-identification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsLanguageIdentificationInput = z.object({\n content: z.string().describe(\"The text to be analyzed.\").optional(),\n contentUri: z.string().describe(\"A URI pointing to the content to be analyzed. Mutually exclusive with content.\").optional(),\n multilingual: z.boolean().default(false).describe(\"If set to true, the endpoint detects regions in multilingual documents and returns a list of language regions in addition to whole-document results. Default is false.\").optional(),\n koreanDialects: z.boolean().default(false).describe(\"If set to true, enables classification for North Korean (qkp) and South Korean (qkr) dialects. Default is false.\").optional(),\n});\nconst RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema = z.object({\n language: z.string().describe(\"The detected language code (e.g., 'eng').\").nullable(),\n confidence: z.number().describe(\"The confidence score for the detected language (0.0 to 1.0).\").nullable(),\n}).passthrough();\nexport const RosetteTextAnalyticsLanguageIdentificationOutput = z.object({\n languageDetections: z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe(\"A list of detected languages and their confidence scores.\"),\n}).passthrough();\n\nexport const rosetteTextAnalyticsLanguageIdentification = action(\"ROSETTE_TEXT_ANALYTICS_LANGUAGE_IDENTIFICATION\", {\n slug: \"rosette_text_analytics-language-identification\",\n name: \"Identify Language\",\n description: \"This tool identifies the natural language of a given text. It takes a string of text as input and returns the detected language along with a confidence score. Optional parameters include specifying a genre (e.g., \\\"social-media\\\"), providing a list of language codes to constrain the identification, and indicating whether to include user-defined languages.\",\n input: RosetteTextAnalyticsLanguageIdentificationInput,\n output: RosetteTextAnalyticsLanguageIdentificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC3H,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACnL,CAAC;AACD,MAAM,qEAAqE,EAAE,OAAO;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,6CAA6C,OAAO,kDAAkD;CACjH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,oBAAoB,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,2DAA2D,EACtK,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -21,7 +21,7 @@ const RosetteTextAnalyticsNameSimilarityInput = zod.z.object({
21
21
  ]).describe("Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.").optional()
22
22
  }).describe("The second name object to be compared.")
23
23
  });
24
- const RosetteTextAnalyticsNameSimilarityOutput = zod.z.object({ score: zod.z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.") });
24
+ const RosetteTextAnalyticsNameSimilarityOutput = zod.z.object({ score: zod.z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.").nullable() }).passthrough();
25
25
  const rosetteTextAnalyticsNameSimilarity = require_action.action("ROSETTE_TEXT_ANALYTICS_NAME_SIMILARITY", {
26
26
  slug: "rosette_text_analytics-name-similarity",
27
27
  name: "Compare Name Similarity",
@@ -1 +1 @@
1
- {"version":3,"file":"name-similarity.cjs","names":["z","action"],"sources":["../../src/actions/name-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsNameSimilarityInput: z.ZodTypeAny = z.object({\n name1: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The first name object to be compared.\"),\n name2: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The second name object to be compared.\"),\n});\nexport const RosetteTextAnalyticsNameSimilarityOutput: z.ZodTypeAny = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.\"),\n});\n\nexport const rosetteTextAnalyticsNameSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_NAME_SIMILARITY\", {\n slug: \"rosette_text_analytics-name-similarity\",\n name: \"Compare Name Similarity\",\n description: \"The 'Name Similarity' tool compares two entity names (Person, Location, or Organization) and returns a similarity score between 0 and 1 to indicate if the names are similar. It is useful for tasks such as record linkage, identity resolution, and data deduplication.\",\n input: RosetteTextAnalyticsNameSimilarityInput,\n output: RosetteTextAnalyticsNameSimilarityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,YAAYA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAY;EAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,uCAAuC;CACjD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,YAAYA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAY;EAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC;AACD,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EACzG,CAAC;AAED,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"name-similarity.cjs","names":["z","action"],"sources":["../../src/actions/name-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsNameSimilarityInput = z.object({\n name1: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The first name object to be compared.\"),\n name2: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The second name object to be compared.\"),\n});\nexport const RosetteTextAnalyticsNameSimilarityOutput = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.\").nullable(),\n}).passthrough();\n\nexport const rosetteTextAnalyticsNameSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_NAME_SIMILARITY\", {\n slug: \"rosette_text_analytics-name-similarity\",\n name: \"Compare Name Similarity\",\n description: \"The 'Name Similarity' tool compares two entity names (Person, Location, or Organization) and returns a similarity score between 0 and 1 to indicate if the names are similar. It is useful for tasks such as record linkage, identity resolution, and data deduplication.\",\n input: RosetteTextAnalyticsNameSimilarityInput,\n output: RosetteTextAnalyticsNameSimilarityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,YAAYA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAY;EAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,uCAAuC;CACjD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,YAAYA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAY;EAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC;AACD,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/name-similarity.d.ts
4
- declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodTypeAny;
5
- declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodTypeAny;
6
- declare const rosetteTextAnalyticsNameSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodObject<{
5
+ name1: z.ZodObject<{
6
+ text: z.ZodString;
7
+ language: z.ZodOptional<z.ZodString>;
8
+ entityType: z.ZodOptional<z.ZodEnum<{
9
+ PERSON: "PERSON";
10
+ LOCATION: "LOCATION";
11
+ ORGANIZATION: "ORGANIZATION";
12
+ }>>;
13
+ }, z.core.$strip>;
14
+ name2: z.ZodObject<{
15
+ text: z.ZodString;
16
+ language: z.ZodOptional<z.ZodString>;
17
+ entityType: z.ZodOptional<z.ZodEnum<{
18
+ PERSON: "PERSON";
19
+ LOCATION: "LOCATION";
20
+ ORGANIZATION: "ORGANIZATION";
21
+ }>>;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>;
24
+ declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodObject<{
25
+ score: z.ZodNullable<z.ZodNumber>;
26
+ }, z.core.$loose>;
27
+ declare const rosetteTextAnalyticsNameSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ name1: {
29
+ text: string;
30
+ language?: string | undefined;
31
+ entityType?: "PERSON" | "LOCATION" | "ORGANIZATION" | undefined;
32
+ };
33
+ name2: {
34
+ text: string;
35
+ language?: string | undefined;
36
+ entityType?: "PERSON" | "LOCATION" | "ORGANIZATION" | undefined;
37
+ };
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { rosetteTextAnalyticsNameSimilarity };
9
41
  //# sourceMappingURL=name-similarity.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"name-similarity.d.cts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAWtD;AAAA,cACW,wCAAA,EAA0C,CAAA,CAAE,UAEvD;AAAA,cAEW,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"name-similarity.d.cts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/name-similarity.d.ts
4
- declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodTypeAny;
5
- declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodTypeAny;
6
- declare const rosetteTextAnalyticsNameSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodObject<{
5
+ name1: z.ZodObject<{
6
+ text: z.ZodString;
7
+ language: z.ZodOptional<z.ZodString>;
8
+ entityType: z.ZodOptional<z.ZodEnum<{
9
+ PERSON: "PERSON";
10
+ LOCATION: "LOCATION";
11
+ ORGANIZATION: "ORGANIZATION";
12
+ }>>;
13
+ }, z.core.$strip>;
14
+ name2: z.ZodObject<{
15
+ text: z.ZodString;
16
+ language: z.ZodOptional<z.ZodString>;
17
+ entityType: z.ZodOptional<z.ZodEnum<{
18
+ PERSON: "PERSON";
19
+ LOCATION: "LOCATION";
20
+ ORGANIZATION: "ORGANIZATION";
21
+ }>>;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>;
24
+ declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodObject<{
25
+ score: z.ZodNullable<z.ZodNumber>;
26
+ }, z.core.$loose>;
27
+ declare const rosetteTextAnalyticsNameSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ name1: {
29
+ text: string;
30
+ language?: string | undefined;
31
+ entityType?: "PERSON" | "LOCATION" | "ORGANIZATION" | undefined;
32
+ };
33
+ name2: {
34
+ text: string;
35
+ language?: string | undefined;
36
+ entityType?: "PERSON" | "LOCATION" | "ORGANIZATION" | undefined;
37
+ };
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { rosetteTextAnalyticsNameSimilarity };
9
41
  //# sourceMappingURL=name-similarity.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"name-similarity.d.mts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAWtD;AAAA,cACW,wCAAA,EAA0C,CAAA,CAAE,UAEvD;AAAA,cAEW,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"name-similarity.d.mts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
@@ -24,7 +24,7 @@ const rosetteTextAnalyticsNameSimilarity = action("ROSETTE_TEXT_ANALYTICS_NAME_S
24
24
  ]).describe("Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.").optional()
25
25
  }).describe("The second name object to be compared.")
26
26
  }),
27
- output: z.object({ score: z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.") })
27
+ output: z.object({ score: z.number().describe("Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.").nullable() }).passthrough()
28
28
  });
29
29
  //#endregion
30
30
  export { rosetteTextAnalyticsNameSimilarity };
@@ -1 +1 @@
1
- {"version":3,"file":"name-similarity.mjs","names":[],"sources":["../../src/actions/name-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsNameSimilarityInput: z.ZodTypeAny = z.object({\n name1: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The first name object to be compared.\"),\n name2: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The second name object to be compared.\"),\n});\nexport const RosetteTextAnalyticsNameSimilarityOutput: z.ZodTypeAny = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.\"),\n});\n\nexport const rosetteTextAnalyticsNameSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_NAME_SIMILARITY\", {\n slug: \"rosette_text_analytics-name-similarity\",\n name: \"Compare Name Similarity\",\n description: \"The 'Name Similarity' tool compares two entity names (Person, Location, or Organization) and returns a similarity score between 0 and 1 to indicate if the names are similar. It is useful for tasks such as record linkage, identity resolution, and data deduplication.\",\n input: RosetteTextAnalyticsNameSimilarityInput,\n output: RosetteTextAnalyticsNameSimilarityOutput,\n});\n"],"mappings":";;AAoBA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBmE,EAAE,OAAO;EAC5E,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;GACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,YAAY,EAAE,KAAK;IAAC;IAAU;IAAY;GAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC9J,CAAC,CAAC,CAAC,SAAS,uCAAuC;EACjD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;GACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,YAAY,EAAE,KAAK;IAAC;IAAU;IAAY;GAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC9J,CAAC,CAAC,CAAC,SAAS,wCAAwC;CACpD,CASS;CACP,QAToE,EAAE,OAAO,EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EACzG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"name-similarity.mjs","names":[],"sources":["../../src/actions/name-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RosetteTextAnalyticsNameSimilarityInput = z.object({\n name1: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The first name object to be compared.\"),\n name2: z.object({\n text: z.string().describe(\"The text of the name.\"),\n language: z.string().describe(\"ISO 639-3 language code of the name (e.g., 'eng', 'rus'). Optional but recommended.\").optional(),\n entityType: z.enum([\"PERSON\", \"LOCATION\", \"ORGANIZATION\"]).describe(\"Type of the entity. Optional. Valid values: PERSON, LOCATION, ORGANIZATION.\").optional(),\n}).describe(\"The second name object to be compared.\"),\n});\nexport const RosetteTextAnalyticsNameSimilarityOutput = z.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates a perfect match.\").nullable(),\n}).passthrough();\n\nexport const rosetteTextAnalyticsNameSimilarity = action(\"ROSETTE_TEXT_ANALYTICS_NAME_SIMILARITY\", {\n slug: \"rosette_text_analytics-name-similarity\",\n name: \"Compare Name Similarity\",\n description: \"The 'Name Similarity' tool compares two entity names (Person, Location, or Organization) and returns a similarity score between 0 and 1 to indicate if the names are similar. It is useful for tasks such as record linkage, identity resolution, and data deduplication.\",\n input: RosetteTextAnalyticsNameSimilarityInput,\n output: RosetteTextAnalyticsNameSimilarityOutput,\n});\n"],"mappings":";;AAoBA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBqD,EAAE,OAAO;EAC9D,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;GACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,YAAY,EAAE,KAAK;IAAC;IAAU;IAAY;GAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC9J,CAAC,CAAC,CAAC,SAAS,uCAAuC;EACjD,OAAO,EAAE,OAAO;GAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;GACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,YAAY,EAAE,KAAK;IAAC;IAAU;IAAY;GAAc,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC9J,CAAC,CAAC,CAAC,SAAS,wCAAwC;CACpD,CASS;CACP,QATsD,EAAE,OAAO,EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const rosetteTextAnalyticsCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/rosette_text_analytics",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "rosette_api_key": {
12
+ "label": "Rosette API Key",
13
+ "secret": true,
14
+ "description": "Your Rosette API key"
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.rosetteTextAnalyticsCatalog = rosetteTextAnalyticsCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const rosetteTextAnalyticsCatalog = {\n \"slug\": \"rosette_text_analytics\",\n \"name\": \"Rosette Text Analytics\",\n \"description\": \"Rosette Text Analytics is a platform that uses natural language processing, statistical modeling, and machine learning to analyze unstructured and semi-structured text across 364 language-encoding-script combinations, revealing valuable information and actionable data.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/rosette_text_analytics\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,8BAA8B;CACzC,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 rosetteTextAnalyticsCatalog = {\n \"slug\": \"rosette_text_analytics\",\n \"name\": \"Rosette Text Analytics\",\n \"description\": \"Rosette Text Analytics is a platform that uses natural language processing, statistical modeling, and machine learning to analyze unstructured and semi-structured text across 364 language-encoding-script combinations, revealing valuable information and actionable data.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/rosette_text_analytics\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"rosette_api_key\": {\n \"label\": \"Rosette API Key\",\n \"secret\": true,\n \"description\": \"Your Rosette API key\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,8BAA8B;CACzC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const rosetteTextAnalyticsCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/rosette_text_analytics";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly rosette_api_key: {
13
+ readonly label: "Rosette API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Rosette API key";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { rosetteTextAnalyticsCatalog };
@@ -8,6 +8,14 @@ declare const rosetteTextAnalyticsCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/rosette_text_analytics";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly rosette_api_key: {
13
+ readonly label: "Rosette API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Rosette API key";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { rosetteTextAnalyticsCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const rosetteTextAnalyticsCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/rosette_text_analytics",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "rosette_api_key": {
12
+ "label": "Rosette API Key",
13
+ "secret": true,
14
+ "description": "Your Rosette API key"
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { rosetteTextAnalyticsCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const rosetteTextAnalyticsCatalog = {\n \"slug\": \"rosette_text_analytics\",\n \"name\": \"Rosette Text Analytics\",\n \"description\": \"Rosette Text Analytics is a platform that uses natural language processing, statistical modeling, and machine learning to analyze unstructured and semi-structured text across 364 language-encoding-script combinations, revealing valuable information and actionable data.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/rosette_text_analytics\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,8BAA8B;CACzC,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 rosetteTextAnalyticsCatalog = {\n \"slug\": \"rosette_text_analytics\",\n \"name\": \"Rosette Text Analytics\",\n \"description\": \"Rosette Text Analytics is a platform that uses natural language processing, statistical modeling, and machine learning to analyze unstructured and semi-structured text across 364 language-encoding-script combinations, revealing valuable information and actionable data.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/rosette_text_analytics\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"rosette_api_key\": {\n \"label\": \"Rosette API Key\",\n \"secret\": true,\n \"description\": \"Your Rosette API key\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,8BAA8B;CACzC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/rosette_text_analytics",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
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": {