@keystrokehq/rosette_text_analytics 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/address-similarity.cjs +1 -0
- package/dist/actions/address-similarity.cjs.map +1 -1
- package/dist/actions/address-similarity.d.cts +3 -62
- package/dist/actions/address-similarity.d.cts.map +1 -1
- package/dist/actions/address-similarity.d.mts +3 -62
- package/dist/actions/address-similarity.d.mts.map +1 -1
- package/dist/actions/address-similarity.mjs +1 -0
- package/dist/actions/address-similarity.mjs.map +1 -1
- package/dist/actions/language-identification.cjs +1 -0
- package/dist/actions/language-identification.cjs.map +1 -1
- package/dist/actions/language-identification.d.cts +3 -18
- package/dist/actions/language-identification.d.cts.map +1 -1
- package/dist/actions/language-identification.d.mts +3 -18
- package/dist/actions/language-identification.d.mts.map +1 -1
- package/dist/actions/language-identification.mjs +1 -0
- package/dist/actions/language-identification.mjs.map +1 -1
- package/dist/actions/name-similarity.cjs +1 -0
- package/dist/actions/name-similarity.cjs.map +1 -1
- package/dist/actions/name-similarity.d.cts +3 -24
- package/dist/actions/name-similarity.d.cts.map +1 -1
- package/dist/actions/name-similarity.d.mts +3 -24
- package/dist/actions/name-similarity.d.mts.map +1 -1
- package/dist/actions/name-similarity.mjs +1 -0
- package/dist/actions/name-similarity.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["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:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["rosetteTextAnalytics","executeRosetteTextAnalyticsTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof rosetteTextAnalytics.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOoE;CACpE,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"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { 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:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof rosetteTextAnalytics.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOoE;CACpE,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 +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}).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":"
|
|
1
|
+
{"version":3,"file":"address-similarity.cjs","names":["z","action"],"sources":["../../src/actions/address-similarity.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rosetteTextAnalytics } from \"../app\";\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: AppAction<\n typeof RosetteTextAnalyticsAddressSimilarityInput,\n typeof RosetteTextAnalyticsAddressSimilarityOutput,\n typeof rosetteTextAnalytics.credential\n> = 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":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/address-similarity.d.ts
|
|
@@ -50,68 +52,7 @@ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
|
|
|
50
52
|
declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodObject<{
|
|
51
53
|
score: z.ZodNullable<z.ZodNumber>;
|
|
52
54
|
}, z.core.$loose>;
|
|
53
|
-
declare const rosetteTextAnalyticsAddressSimilarity:
|
|
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<"rosette_text_analytics", z.ZodObject<{
|
|
103
|
-
connectionId: z.ZodString;
|
|
104
|
-
entityId: z.ZodString;
|
|
105
|
-
instanceId: z.ZodString;
|
|
106
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
-
generic_api_key: z.ZodString;
|
|
108
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"rosette_text_analytics", z.ZodObject<{
|
|
109
|
-
connectionId: z.ZodString;
|
|
110
|
-
entityId: z.ZodString;
|
|
111
|
-
instanceId: z.ZodString;
|
|
112
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
-
generic_api_key: z.ZodString;
|
|
114
|
-
}, z.core.$strip>>]>;
|
|
55
|
+
declare const rosetteTextAnalyticsAddressSimilarity: AppAction<typeof RosetteTextAnalyticsAddressSimilarityInput, typeof RosetteTextAnalyticsAddressSimilarityOutput, typeof rosetteTextAnalytics.credential>;
|
|
115
56
|
//#endregion
|
|
116
57
|
export { rosetteTextAnalyticsAddressSimilarity };
|
|
117
58
|
//# sourceMappingURL=address-similarity.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-similarity.d.cts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"address-similarity.d.cts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,oBAAA,CAAqB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/address-similarity.d.ts
|
|
@@ -50,68 +52,7 @@ declare const RosetteTextAnalyticsAddressSimilarityInput: z.ZodObject<{
|
|
|
50
52
|
declare const RosetteTextAnalyticsAddressSimilarityOutput: z.ZodObject<{
|
|
51
53
|
score: z.ZodNullable<z.ZodNumber>;
|
|
52
54
|
}, z.core.$loose>;
|
|
53
|
-
declare const rosetteTextAnalyticsAddressSimilarity:
|
|
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<"rosette_text_analytics", z.ZodObject<{
|
|
103
|
-
connectionId: z.ZodString;
|
|
104
|
-
entityId: z.ZodString;
|
|
105
|
-
instanceId: z.ZodString;
|
|
106
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
-
generic_api_key: z.ZodString;
|
|
108
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"rosette_text_analytics", z.ZodObject<{
|
|
109
|
-
connectionId: z.ZodString;
|
|
110
|
-
entityId: z.ZodString;
|
|
111
|
-
instanceId: z.ZodString;
|
|
112
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
-
generic_api_key: z.ZodString;
|
|
114
|
-
}, z.core.$strip>>]>;
|
|
55
|
+
declare const rosetteTextAnalyticsAddressSimilarity: AppAction<typeof RosetteTextAnalyticsAddressSimilarityInput, typeof RosetteTextAnalyticsAddressSimilarityOutput, typeof rosetteTextAnalytics.credential>;
|
|
115
56
|
//#endregion
|
|
116
57
|
export { rosetteTextAnalyticsAddressSimilarity };
|
|
117
58
|
//# sourceMappingURL=address-similarity.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-similarity.d.mts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"address-similarity.d.mts","names":[],"sources":["../../src/actions/address-similarity.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,oBAAA,CAAqB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"address-similarity.mjs","names":[],"sources":["../../src/actions/address-similarity.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rosetteTextAnalytics } from \"../app\";\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: AppAction<\n typeof RosetteTextAnalyticsAddressSimilarityInput,\n typeof RosetteTextAnalyticsAddressSimilarityOutput,\n typeof rosetteTextAnalytics.credential\n> = 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":"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"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"language-identification.cjs","names":["z","action"],"sources":["../../src/actions/language-identification.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rosetteTextAnalytics } from \"../app\";\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: AppAction<\n typeof RosetteTextAnalyticsLanguageIdentificationInput,\n typeof RosetteTextAnalyticsLanguageIdentificationOutput,\n typeof rosetteTextAnalytics.credential\n> = 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":";;;;AAMA,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,6CAITC,eAAAA,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/language-identification.d.ts
|
|
@@ -13,24 +15,7 @@ declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodObject<{
|
|
|
13
15
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const rosetteTextAnalyticsLanguageIdentification:
|
|
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<"rosette_text_analytics", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"rosette_text_analytics", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const rosetteTextAnalyticsLanguageIdentification: AppAction<typeof RosetteTextAnalyticsLanguageIdentificationInput, typeof RosetteTextAnalyticsLanguageIdentificationOutput, typeof rosetteTextAnalytics.credential>;
|
|
34
19
|
//#endregion
|
|
35
20
|
export { rosetteTextAnalyticsLanguageIdentification };
|
|
36
21
|
//# sourceMappingURL=language-identification.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-identification.d.cts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"language-identification.d.cts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAU/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;cAIhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,oBAAA,CAAqB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/language-identification.d.ts
|
|
@@ -13,24 +15,7 @@ declare const RosetteTextAnalyticsLanguageIdentificationOutput: z.ZodObject<{
|
|
|
13
15
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const rosetteTextAnalyticsLanguageIdentification:
|
|
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<"rosette_text_analytics", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"rosette_text_analytics", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const rosetteTextAnalyticsLanguageIdentification: AppAction<typeof RosetteTextAnalyticsLanguageIdentificationInput, typeof RosetteTextAnalyticsLanguageIdentificationOutput, typeof rosetteTextAnalytics.credential>;
|
|
34
19
|
//#endregion
|
|
35
20
|
export { rosetteTextAnalyticsLanguageIdentification };
|
|
36
21
|
//# sourceMappingURL=language-identification.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-identification.d.mts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"language-identification.d.mts","names":[],"sources":["../../src/actions/language-identification.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAU/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;cAIhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,oBAAA,CAAqB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"language-identification.mjs","names":[],"sources":["../../src/actions/language-identification.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rosetteTextAnalytics } from \"../app\";\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: AppAction<\n typeof RosetteTextAnalyticsLanguageIdentificationInput,\n typeof RosetteTextAnalyticsLanguageIdentificationOutput,\n typeof rosetteTextAnalytics.credential\n> = 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":";;;;AAMA,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,6CAIT,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8D,EAAE,OAAO,EACvE,oBAAoB,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,2DAA2D,EACtK,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"name-similarity.cjs","names":["z","action"],"sources":["../../src/actions/name-similarity.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rosetteTextAnalytics } from \"../app\";\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: AppAction<\n typeof RosetteTextAnalyticsNameSimilarityInput,\n typeof RosetteTextAnalyticsNameSimilarityOutput,\n typeof rosetteTextAnalytics.credential\n> = 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":";;;;AAMA,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,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/name-similarity.d.ts
|
|
@@ -24,30 +26,7 @@ declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodObject<{
|
|
|
24
26
|
declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodObject<{
|
|
25
27
|
score: z.ZodNullable<z.ZodNumber>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const rosetteTextAnalyticsNameSimilarity:
|
|
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<"rosette_text_analytics", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"rosette_text_analytics", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const rosetteTextAnalyticsNameSimilarity: AppAction<typeof RosetteTextAnalyticsNameSimilarityInput, typeof RosetteTextAnalyticsNameSimilarityOutput, typeof rosetteTextAnalytics.credential>;
|
|
51
30
|
//#endregion
|
|
52
31
|
export { rosetteTextAnalyticsNameSimilarity };
|
|
53
32
|
//# sourceMappingURL=name-similarity.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name-similarity.d.cts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"name-similarity.d.cts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;cAIxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,oBAAA,CAAqB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/name-similarity.d.ts
|
|
@@ -24,30 +26,7 @@ declare const RosetteTextAnalyticsNameSimilarityInput: z.ZodObject<{
|
|
|
24
26
|
declare const RosetteTextAnalyticsNameSimilarityOutput: z.ZodObject<{
|
|
25
27
|
score: z.ZodNullable<z.ZodNumber>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const rosetteTextAnalyticsNameSimilarity:
|
|
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<"rosette_text_analytics", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"rosette_text_analytics", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const rosetteTextAnalyticsNameSimilarity: AppAction<typeof RosetteTextAnalyticsNameSimilarityInput, typeof RosetteTextAnalyticsNameSimilarityOutput, typeof rosetteTextAnalytics.credential>;
|
|
51
30
|
//#endregion
|
|
52
31
|
export { rosetteTextAnalyticsNameSimilarity };
|
|
53
32
|
//# sourceMappingURL=name-similarity.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name-similarity.d.mts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"name-similarity.d.mts","names":[],"sources":["../../src/actions/name-similarity.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;cAIxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,oBAAA,CAAqB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"name-similarity.mjs","names":[],"sources":["../../src/actions/name-similarity.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rosetteTextAnalytics } from \"../app\";\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: AppAction<\n typeof RosetteTextAnalyticsNameSimilarityInput,\n typeof RosetteTextAnalyticsNameSimilarityOutput,\n typeof rosetteTextAnalytics.credential\n> = 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":";;;AAsBA,MAAa,qCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBqD,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,CAaS;CACP,QAbsD,EAAE,OAAO,EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const rosetteTextAnalytics = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "rosette_text_analytics",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.rosetteTextAnalytics = rosetteTextAnalytics;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const rosetteTextAnalytics = defineApp({\n slug: \"rosette_text_analytics\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const rosetteTextAnalytics: KeystrokeApp<\"rosette_text_analytics\", typeof credential> = defineApp({\n slug: \"rosette_text_analytics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,wBAAA,GAAA,2BAAA,UAAA,CAA4F;CACvG,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const rosetteTextAnalytics: KeystrokeApp<"rosette_text_analytics", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { rosetteTextAnalytics };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,oBAAA,EAAsB,YAAY,kCAAkC,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const rosetteTextAnalytics: KeystrokeApp<"rosette_text_analytics", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { rosetteTextAnalytics };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,oBAAA,EAAsB,YAAY,kCAAkC,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const rosetteTextAnalytics = defineApp({\n slug: \"rosette_text_analytics\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const rosetteTextAnalytics: KeystrokeApp<\"rosette_text_analytics\", typeof credential> = defineApp({\n slug: \"rosette_text_analytics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,uBAAkF,UAAU;CACvG,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "./app.cjs";
|
|
1
2
|
import { rosetteTextAnalyticsAddressSimilarity } from "./actions/address-similarity.cjs";
|
|
2
3
|
import { rosetteTextAnalyticsLanguageIdentification } from "./actions/language-identification.cjs";
|
|
3
4
|
import { rosetteTextAnalyticsNameSimilarity } from "./actions/name-similarity.cjs";
|
|
4
|
-
import { rosetteTextAnalytics } from "./app.cjs";
|
|
5
5
|
import { rosetteTextAnalyticsCatalog } from "./catalog.cjs";
|
|
6
6
|
export { rosetteTextAnalytics, rosetteTextAnalyticsAddressSimilarity, rosetteTextAnalyticsCatalog, rosetteTextAnalyticsLanguageIdentification, rosetteTextAnalyticsNameSimilarity };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { rosetteTextAnalytics } from "./app.mjs";
|
|
1
2
|
import { rosetteTextAnalyticsAddressSimilarity } from "./actions/address-similarity.mjs";
|
|
2
3
|
import { rosetteTextAnalyticsLanguageIdentification } from "./actions/language-identification.mjs";
|
|
3
4
|
import { rosetteTextAnalyticsNameSimilarity } from "./actions/name-similarity.mjs";
|
|
4
|
-
import { rosetteTextAnalytics } from "./app.mjs";
|
|
5
5
|
import { rosetteTextAnalyticsCatalog } from "./catalog.mjs";
|
|
6
6
|
export { rosetteTextAnalytics, rosetteTextAnalyticsAddressSimilarity, rosetteTextAnalyticsCatalog, rosetteTextAnalyticsLanguageIdentification, rosetteTextAnalyticsNameSimilarity };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/rosette_text_analytics",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
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.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|