@keystrokehq/rosette_text_analytics 0.1.2 → 0.1.4

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.
@@ -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.").nullable() });
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.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.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.\").nullable(),\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,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,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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AAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChD,CAAC,CAAC,CAAC,SAAS,kCAAkC,GAAGA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAClD,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC;AACzD,CAAC;AACD,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,EACnH,CAAC;AAED,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;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,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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S,CAAC,CAAC,SAAS;EACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC,GAAGA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC;AACvE,CAAC;AACD,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -21,9 +21,9 @@ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
21
21
  cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>, z.ZodObject<{
24
+ }, z.core.$loose>, z.ZodObject<{
25
25
  address: z.ZodString;
26
- }, z.core.$strip>]>;
26
+ }, z.core.$loose>]>;
27
27
  address2: z.ZodUnion<readonly [z.ZodObject<{
28
28
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  road: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43,15 +43,16 @@ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
43
43
  cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- }, z.core.$strip>, z.ZodObject<{
46
+ }, z.core.$loose>, z.ZodObject<{
47
47
  address: z.ZodString;
48
- }, z.core.$strip>]>;
48
+ }, z.core.$loose>]>;
49
49
  }, z.core.$strip>;
50
50
  declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodObject<{
51
51
  score: z.ZodNullable<z.ZodNumber>;
52
- }, z.core.$strip>;
52
+ }, z.core.$loose>;
53
53
  declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
54
54
  address1: {
55
+ [x: string]: unknown;
55
56
  city?: string | null | undefined;
56
57
  road?: string | null | undefined;
57
58
  unit?: string | null | undefined;
@@ -71,9 +72,11 @@ declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action
71
72
  countryRegion?: string | null | undefined;
72
73
  stateDistrict?: string | null | undefined;
73
74
  } | {
75
+ [x: string]: unknown;
74
76
  address: string;
75
77
  };
76
78
  address2: {
79
+ [x: string]: unknown;
77
80
  city?: string | null | undefined;
78
81
  road?: string | null | undefined;
79
82
  unit?: string | null | undefined;
@@ -93,6 +96,7 @@ declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action
93
96
  countryRegion?: string | null | undefined;
94
97
  stateDistrict?: string | null | undefined;
95
98
  } | {
99
+ [x: string]: unknown;
96
100
  address: string;
97
101
  };
98
102
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -21,9 +21,9 @@ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
21
21
  cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>, z.ZodObject<{
24
+ }, z.core.$loose>, z.ZodObject<{
25
25
  address: z.ZodString;
26
- }, z.core.$strip>]>;
26
+ }, z.core.$loose>]>;
27
27
  address2: z.ZodUnion<readonly [z.ZodObject<{
28
28
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  road: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43,15 +43,16 @@ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
43
43
  cityDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  countryRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  stateDistrict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- }, z.core.$strip>, z.ZodObject<{
46
+ }, z.core.$loose>, z.ZodObject<{
47
47
  address: z.ZodString;
48
- }, z.core.$strip>]>;
48
+ }, z.core.$loose>]>;
49
49
  }, z.core.$strip>;
50
50
  declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodObject<{
51
51
  score: z.ZodNullable<z.ZodNumber>;
52
- }, z.core.$strip>;
52
+ }, z.core.$loose>;
53
53
  declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
54
54
  address1: {
55
+ [x: string]: unknown;
55
56
  city?: string | null | undefined;
56
57
  road?: string | null | undefined;
57
58
  unit?: string | null | undefined;
@@ -71,9 +72,11 @@ declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action
71
72
  countryRegion?: string | null | undefined;
72
73
  stateDistrict?: string | null | undefined;
73
74
  } | {
75
+ [x: string]: unknown;
74
76
  address: string;
75
77
  };
76
78
  address2: {
79
+ [x: string]: unknown;
77
80
  city?: string | null | undefined;
78
81
  road?: string | null | undefined;
79
82
  unit?: string | null | undefined;
@@ -93,6 +96,7 @@ declare const rosetteTextAnalyticsAddressSimilarity: import("@keystrokehq/action
93
96
  countryRegion?: string | null | undefined;
94
97
  stateDistrict?: string | null | undefined;
95
98
  } | {
99
+ [x: string]: unknown;
96
100
  address: string;
97
101
  };
98
102
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -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.").nullable() })
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.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.object({\n score: z.number().describe(\"Similarity score between 0.0 and 1.0, where 1.0 indicates an exact match.\").nullable(),\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,OAtDwD,EAAE,OAAO;EACjE,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;G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ACxC,UAAU,EAAE,OAAO,CAAC,CAAC,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,QATyD,EAAE,OAAO,EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,EACnH,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,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AAkC,GAAG,EAAE,OAAO,EACtE,SAAS,EAAE,OAAO,CAAC,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"}
@@ -10,8 +10,8 @@ const RosetteTextAnalyticsLanguageIdentificationInput = zod.z.object({
10
10
  const RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema = zod.z.object({
11
11
  language: zod.z.string().describe("The detected language code (e.g., 'eng').").nullable(),
12
12
  confidence: zod.z.number().describe("The confidence score for the detected language (0.0 to 1.0).").nullable()
13
- });
14
- const RosetteTextAnalyticsLanguageIdentificationOutput = zod.z.object({ languageDetections: zod.z.array(RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema).describe("A list of detected languages and their confidence scores.") });
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.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});\nexport const RosetteTextAnalyticsLanguageIdentificationOutput = 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,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;AACD,MAAa,mDAAmDA,IAAAA,EAAE,OAAO,EACvE,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"}
@@ -11,8 +11,8 @@ declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodObject<{
11
11
  languageDetections: z.ZodArray<z.ZodObject<{
12
12
  language: z.ZodNullable<z.ZodString>;
13
13
  confidence: z.ZodNullable<z.ZodNumber>;
14
- }, z.core.$strip>>;
15
- }, z.core.$strip>;
14
+ }, z.core.$loose>>;
15
+ }, z.core.$loose>;
16
16
  declare const rosetteTextAnalyticsLanguageIdentification: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  content?: string | undefined;
18
18
  contentUri?: string | undefined;
@@ -11,8 +11,8 @@ declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodObject<{
11
11
  languageDetections: z.ZodArray<z.ZodObject<{
12
12
  language: z.ZodNullable<z.ZodString>;
13
13
  confidence: z.ZodNullable<z.ZodNumber>;
14
- }, z.core.$strip>>;
15
- }, z.core.$strip>;
14
+ }, z.core.$loose>>;
15
+ }, z.core.$loose>;
16
16
  declare const rosetteTextAnalyticsLanguageIdentification: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  content?: string | undefined;
18
18
  contentUri?: string | undefined;
@@ -10,13 +10,13 @@ const RosetteTextAnalyticsLanguageIdentificationInput = z.object({
10
10
  const RosetteTextAnalyticsLanguageIdentification_LanguageDetectionSchema = z.object({
11
11
  language: z.string().describe("The detected language code (e.g., 'eng').").nullable(),
12
12
  confidence: z.number().describe("The confidence score for the detected language (0.0 to 1.0).").nullable()
13
- });
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.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});\nexport const RosetteTextAnalyticsLanguageIdentificationOutput = 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,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;AAKD,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,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.").nullable() });
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.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});\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;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"}
@@ -23,7 +23,7 @@ declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodObject<{
23
23
  }, z.core.$strip>;
24
24
  declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodObject<{
25
25
  score: z.ZodNullable<z.ZodNumber>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const rosetteTextAnalyticsNameSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  name1: {
29
29
  text: string;
@@ -23,7 +23,7 @@ declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodObject<{
23
23
  }, z.core.$strip>;
24
24
  declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodObject<{
25
25
  score: z.ZodNullable<z.ZodNumber>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const rosetteTextAnalyticsNameSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  name1: {
29
29
  text: string;
@@ -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.").nullable() })
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.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});\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,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
@@ -8,7 +8,7 @@ const rosetteTextAnalyticsCatalog = {
8
8
  "logo": "https://logos.composio.dev/api/rosette_text_analytics",
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
- "credentialFields": { "rosette_api_key": {
11
+ "credentialFields": { "generic_api_key": {
12
12
  "label": "Rosette API Key",
13
13
  "secret": true,
14
14
  "description": "Your Rosette API key"
@@ -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 \"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"}
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 \"generic_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"}
@@ -9,7 +9,7 @@ declare const rosetteTextAnalyticsCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly rosette_api_key: {
12
+ readonly generic_api_key: {
13
13
  readonly label: "Rosette API Key";
14
14
  readonly secret: true;
15
15
  readonly description: "Your Rosette API key";
@@ -9,7 +9,7 @@ declare const rosetteTextAnalyticsCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly rosette_api_key: {
12
+ readonly generic_api_key: {
13
13
  readonly label: "Rosette API Key";
14
14
  readonly secret: true;
15
15
  readonly description: "Your Rosette API key";
package/dist/catalog.mjs CHANGED
@@ -8,7 +8,7 @@ const rosetteTextAnalyticsCatalog = {
8
8
  "logo": "https://logos.composio.dev/api/rosette_text_analytics",
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
- "credentialFields": { "rosette_api_key": {
11
+ "credentialFields": { "generic_api_key": {
12
12
  "label": "Rosette API Key",
13
13
  "secret": true,
14
14
  "description": "Your Rosette API key"
@@ -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 \"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"}
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 \"generic_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.2",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"