@keystrokehq/re_amaze 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/get-reports-tags.cjs +1 -0
- package/dist/actions/get-reports-tags.cjs.map +1 -1
- package/dist/actions/get-reports-tags.d.cts +3 -20
- package/dist/actions/get-reports-tags.d.cts.map +1 -1
- package/dist/actions/get-reports-tags.d.mts +3 -20
- package/dist/actions/get-reports-tags.d.mts.map +1 -1
- package/dist/actions/get-reports-tags.mjs +1 -0
- package/dist/actions/get-reports-tags.mjs.map +1 -1
- package/dist/actions/get-response-templates.cjs +1 -0
- package/dist/actions/get-response-templates.cjs.map +1 -1
- package/dist/actions/get-response-templates.d.cts +3 -20
- package/dist/actions/get-response-templates.d.cts.map +1 -1
- package/dist/actions/get-response-templates.d.mts +3 -20
- package/dist/actions/get-response-templates.d.mts.map +1 -1
- package/dist/actions/get-response-templates.mjs +1 -0
- package/dist/actions/get-response-templates.mjs.map +1 -1
- package/dist/app.cjs +6 -5
- 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":["reAmaze","executeReAmazeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { reAmaze } from \"./app\";\nimport { executeReAmazeTool } 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":["reAmaze","executeReAmazeTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { reAmaze } from \"./app\";\nimport { executeReAmazeTool } 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 reAmaze.credential> {\n return reAmaze.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 executeReAmazeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;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 { reAmaze } from \"./app\";\nimport { executeReAmazeTool } 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 { reAmaze } from \"./app\";\nimport { executeReAmazeTool } 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 reAmaze.credential> {\n return reAmaze.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 executeReAmazeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reports-tags.cjs","names":["z","action"],"sources":["../../src/actions/get-reports-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReAmazeGetReportsTagsInput = z.object({\n end_date: z.string().describe(\"Report end date in YYYY-MM-DD format\").optional(),\n start_date: z.string().describe(\"Report start date in YYYY-MM-DD format\").optional(),\n}).describe(\"Request model for GET /reports/tags\");\nexport const ReAmazeGetReportsTagsOutput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Dictionary of tag names to their usage counts\"),\n end_date: z.string().describe(\"Report period end date in YYYY-MM-DD format\").nullable().optional(),\n start_date: z.string().describe(\"Report period start date in YYYY-MM-DD format\").nullable().optional(),\n}).passthrough().describe(\"Parsed response for GET /reports/tags\");\n\nexport const reAmazeGetReportsTags = action(\"RE_AMAZE_GET_REPORTS_TAGS\", {\n slug: \"re_amaze-get-reports-tags\",\n name: \"Get report tags\",\n description: \"Tool to retrieve a list of tags used in reports. Use when analyzing tag usage metrics across conversations.\",\n input: ReAmazeGetReportsTagsInput,\n output: ReAmazeGetReportsTagsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reports-tags.cjs","names":["z","action"],"sources":["../../src/actions/get-reports-tags.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reAmaze } from \"../app\";\n\nexport const ReAmazeGetReportsTagsInput = z.object({\n end_date: z.string().describe(\"Report end date in YYYY-MM-DD format\").optional(),\n start_date: z.string().describe(\"Report start date in YYYY-MM-DD format\").optional(),\n}).describe(\"Request model for GET /reports/tags\");\nexport const ReAmazeGetReportsTagsOutput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Dictionary of tag names to their usage counts\"),\n end_date: z.string().describe(\"Report period end date in YYYY-MM-DD format\").nullable().optional(),\n start_date: z.string().describe(\"Report period start date in YYYY-MM-DD format\").nullable().optional(),\n}).passthrough().describe(\"Parsed response for GET /reports/tags\");\n\nexport const reAmazeGetReportsTags: AppAction<\n typeof ReAmazeGetReportsTagsInput,\n typeof ReAmazeGetReportsTagsOutput,\n typeof reAmaze.credential\n> = action(\"RE_AMAZE_GET_REPORTS_TAGS\", {\n slug: \"re_amaze-get-reports-tags\",\n name: \"Get report tags\",\n description: \"Tool to retrieve a list of tags used in reports. Use when analyzing tag usage metrics across conversations.\",\n input: ReAmazeGetReportsTagsInput,\n output: ReAmazeGetReportsTagsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,wBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reAmaze } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-reports-tags.d.ts
|
|
@@ -10,26 +12,7 @@ declare const ReAmazeGetReportsTagsOutput: z.ZodObject<{
|
|
|
10
12
|
end_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const reAmazeGetReportsTags:
|
|
14
|
-
end_date?: string | undefined;
|
|
15
|
-
start_date?: string | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
subdomain: z.ZodString;
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
generic_id: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
subdomain: z.ZodString;
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
generic_id: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const reAmazeGetReportsTags: AppAction<typeof ReAmazeGetReportsTagsInput, typeof ReAmazeGetReportsTagsOutput, typeof reAmaze.credential>;
|
|
33
16
|
//#endregion
|
|
34
17
|
export { reAmazeGetReportsTags };
|
|
35
18
|
//# sourceMappingURL=get-reports-tags.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reports-tags.d.cts","names":[],"sources":["../../src/actions/get-reports-tags.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reports-tags.d.cts","names":[],"sources":["../../src/actions/get-reports-tags.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reAmaze } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-reports-tags.d.ts
|
|
@@ -10,26 +12,7 @@ declare const ReAmazeGetReportsTagsOutput: z.ZodObject<{
|
|
|
10
12
|
end_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const reAmazeGetReportsTags:
|
|
14
|
-
end_date?: string | undefined;
|
|
15
|
-
start_date?: string | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
subdomain: z.ZodString;
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
generic_id: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
subdomain: z.ZodString;
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
generic_id: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const reAmazeGetReportsTags: AppAction<typeof ReAmazeGetReportsTagsInput, typeof ReAmazeGetReportsTagsOutput, typeof reAmaze.credential>;
|
|
33
16
|
//#endregion
|
|
34
17
|
export { reAmazeGetReportsTags };
|
|
35
18
|
//# sourceMappingURL=get-reports-tags.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reports-tags.d.mts","names":[],"sources":["../../src/actions/get-reports-tags.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reports-tags.d.mts","names":[],"sources":["../../src/actions/get-reports-tags.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reports-tags.mjs","names":[],"sources":["../../src/actions/get-reports-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReAmazeGetReportsTagsInput = z.object({\n end_date: z.string().describe(\"Report end date in YYYY-MM-DD format\").optional(),\n start_date: z.string().describe(\"Report start date in YYYY-MM-DD format\").optional(),\n}).describe(\"Request model for GET /reports/tags\");\nexport const ReAmazeGetReportsTagsOutput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Dictionary of tag names to their usage counts\"),\n end_date: z.string().describe(\"Report period end date in YYYY-MM-DD format\").nullable().optional(),\n start_date: z.string().describe(\"Report period start date in YYYY-MM-DD format\").nullable().optional(),\n}).passthrough().describe(\"Parsed response for GET /reports/tags\");\n\nexport const reAmazeGetReportsTags = action(\"RE_AMAZE_GET_REPORTS_TAGS\", {\n slug: \"re_amaze-get-reports-tags\",\n name: \"Get report tags\",\n description: \"Tool to retrieve a list of tags used in reports. Use when analyzing tag usage metrics across conversations.\",\n input: ReAmazeGetReportsTagsInput,\n output: ReAmazeGetReportsTagsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reports-tags.mjs","names":[],"sources":["../../src/actions/get-reports-tags.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reAmaze } from \"../app\";\n\nexport const ReAmazeGetReportsTagsInput = z.object({\n end_date: z.string().describe(\"Report end date in YYYY-MM-DD format\").optional(),\n start_date: z.string().describe(\"Report start date in YYYY-MM-DD format\").optional(),\n}).describe(\"Request model for GET /reports/tags\");\nexport const ReAmazeGetReportsTagsOutput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Dictionary of tag names to their usage counts\"),\n end_date: z.string().describe(\"Report period end date in YYYY-MM-DD format\").nullable().optional(),\n start_date: z.string().describe(\"Report period start date in YYYY-MM-DD format\").nullable().optional(),\n}).passthrough().describe(\"Parsed response for GET /reports/tags\");\n\nexport const reAmazeGetReportsTags: AppAction<\n typeof ReAmazeGetReportsTagsInput,\n typeof ReAmazeGetReportsTagsOutput,\n typeof reAmaze.credential\n> = action(\"RE_AMAZE_GET_REPORTS_TAGS\", {\n slug: \"re_amaze-get-reports-tags\",\n name: \"Get report tags\",\n description: \"Tool to retrieve a list of tags used in reports. Use when analyzing tag usage metrics across conversations.\",\n input: ReAmazeGetReportsTagsInput,\n output: ReAmazeGetReportsTagsOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,wBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,qCAeH;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-response-templates.cjs","names":["z","action"],"sources":["../../src/actions/get-response-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReAmazeGetResponseTemplatesInput = z.object({\n q: z.string().describe(\"Search query to filter response templates by keywords\").optional(),\n page: z.number().int().describe(\"Page number for pagination through results\").optional(),\n}).describe(\"Request parameters for GET /response_templates endpoint.\");\nexport const ReAmazeGetResponseTemplatesOutput = z.object({\n response_templates: z.array(z.record(z.string(), z.unknown())).describe(\"List of response templates\"),\n}).passthrough().describe(\"Response model for retrieving response templates.\");\n\nexport const reAmazeGetResponseTemplates = action(\"RE_AMAZE_GET_RESPONSE_TEMPLATES\", {\n slug: \"re_amaze-get-response-templates\",\n name: \"Get Response Templates\",\n description: \"Tool to retrieve response templates for the brand. Use when you need canned responses to streamline replies.\",\n input: ReAmazeGetResponseTemplatesInput,\n output: ReAmazeGetResponseTemplatesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-response-templates.cjs","names":["z","action"],"sources":["../../src/actions/get-response-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reAmaze } from \"../app\";\n\nexport const ReAmazeGetResponseTemplatesInput = z.object({\n q: z.string().describe(\"Search query to filter response templates by keywords\").optional(),\n page: z.number().int().describe(\"Page number for pagination through results\").optional(),\n}).describe(\"Request parameters for GET /response_templates endpoint.\");\nexport const ReAmazeGetResponseTemplatesOutput = z.object({\n response_templates: z.array(z.record(z.string(), z.unknown())).describe(\"List of response templates\"),\n}).passthrough().describe(\"Response model for retrieving response templates.\");\n\nexport const reAmazeGetResponseTemplates: AppAction<\n typeof ReAmazeGetResponseTemplatesInput,\n typeof ReAmazeGetResponseTemplatesOutput,\n typeof reAmaze.credential\n> = action(\"RE_AMAZE_GET_RESPONSE_TEMPLATES\", {\n slug: \"re_amaze-get-response-templates\",\n name: \"Get Response Templates\",\n description: \"Tool to retrieve response templates for the brand. Use when you need canned responses to streamline replies.\",\n input: ReAmazeGetResponseTemplatesInput,\n output: ReAmazeGetResponseTemplatesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,8BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reAmaze } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-response-templates.d.ts
|
|
@@ -8,26 +10,7 @@ declare const ReAmazeGetResponseTemplatesInput: z.ZodObject<{
|
|
|
8
10
|
declare const ReAmazeGetResponseTemplatesOutput: z.ZodObject<{
|
|
9
11
|
response_templates: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const reAmazeGetResponseTemplates:
|
|
12
|
-
q?: string | undefined;
|
|
13
|
-
page?: number | undefined;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
subdomain: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
generic_id: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
subdomain: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
generic_id: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const reAmazeGetResponseTemplates: AppAction<typeof ReAmazeGetResponseTemplatesInput, typeof ReAmazeGetResponseTemplatesOutput, typeof reAmaze.credential>;
|
|
31
14
|
//#endregion
|
|
32
15
|
export { reAmazeGetResponseTemplates };
|
|
33
16
|
//# sourceMappingURL=get-response-templates.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-response-templates.d.cts","names":[],"sources":["../../src/actions/get-response-templates.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-response-templates.d.cts","names":[],"sources":["../../src/actions/get-response-templates.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reAmaze } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-response-templates.d.ts
|
|
@@ -8,26 +10,7 @@ declare const ReAmazeGetResponseTemplatesInput: z.ZodObject<{
|
|
|
8
10
|
declare const ReAmazeGetResponseTemplatesOutput: z.ZodObject<{
|
|
9
11
|
response_templates: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const reAmazeGetResponseTemplates:
|
|
12
|
-
q?: string | undefined;
|
|
13
|
-
page?: number | undefined;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
subdomain: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
generic_id: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"re_amaze", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
subdomain: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
generic_id: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const reAmazeGetResponseTemplates: AppAction<typeof ReAmazeGetResponseTemplatesInput, typeof ReAmazeGetResponseTemplatesOutput, typeof reAmaze.credential>;
|
|
31
14
|
//#endregion
|
|
32
15
|
export { reAmazeGetResponseTemplates };
|
|
33
16
|
//# sourceMappingURL=get-response-templates.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-response-templates.d.mts","names":[],"sources":["../../src/actions/get-response-templates.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-response-templates.d.mts","names":[],"sources":["../../src/actions/get-response-templates.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-response-templates.mjs","names":[],"sources":["../../src/actions/get-response-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReAmazeGetResponseTemplatesInput = z.object({\n q: z.string().describe(\"Search query to filter response templates by keywords\").optional(),\n page: z.number().int().describe(\"Page number for pagination through results\").optional(),\n}).describe(\"Request parameters for GET /response_templates endpoint.\");\nexport const ReAmazeGetResponseTemplatesOutput = z.object({\n response_templates: z.array(z.record(z.string(), z.unknown())).describe(\"List of response templates\"),\n}).passthrough().describe(\"Response model for retrieving response templates.\");\n\nexport const reAmazeGetResponseTemplates = action(\"RE_AMAZE_GET_RESPONSE_TEMPLATES\", {\n slug: \"re_amaze-get-response-templates\",\n name: \"Get Response Templates\",\n description: \"Tool to retrieve response templates for the brand. Use when you need canned responses to streamline replies.\",\n input: ReAmazeGetResponseTemplatesInput,\n output: ReAmazeGetResponseTemplatesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-response-templates.mjs","names":[],"sources":["../../src/actions/get-response-templates.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reAmaze } from \"../app\";\n\nexport const ReAmazeGetResponseTemplatesInput = z.object({\n q: z.string().describe(\"Search query to filter response templates by keywords\").optional(),\n page: z.number().int().describe(\"Page number for pagination through results\").optional(),\n}).describe(\"Request parameters for GET /response_templates endpoint.\");\nexport const ReAmazeGetResponseTemplatesOutput = z.object({\n response_templates: z.array(z.record(z.string(), z.unknown())).describe(\"List of response templates\"),\n}).passthrough().describe(\"Response model for retrieving response templates.\");\n\nexport const reAmazeGetResponseTemplates: AppAction<\n typeof ReAmazeGetResponseTemplatesInput,\n typeof ReAmazeGetResponseTemplatesOutput,\n typeof reAmaze.credential\n> = action(\"RE_AMAZE_GET_RESPONSE_TEMPLATES\", {\n slug: \"re_amaze-get-response-templates\",\n name: \"Get Response Templates\",\n description: \"Tool to retrieve response templates for the brand. Use when you need canned responses to streamline replies.\",\n input: ReAmazeGetResponseTemplatesInput,\n output: ReAmazeGetResponseTemplatesOutput,\n});\n"],"mappings":";;;AAcA,MAAa,8BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB8C,EAAE,OAAO;EACvD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,0DAaH;CACP,QAb+C,EAAE,OAAO,EACxD,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/app.ts
|
|
4
|
+
const credential = {
|
|
5
|
+
subdomain: zod.z.string(),
|
|
6
|
+
generic_api_key: zod.z.string(),
|
|
7
|
+
generic_id: zod.z.string()
|
|
8
|
+
};
|
|
4
9
|
const reAmaze = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
10
|
slug: "re_amaze",
|
|
6
11
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
8
|
-
subdomain: zod.z.string(),
|
|
9
|
-
generic_api_key: zod.z.string(),
|
|
10
|
-
generic_id: zod.z.string()
|
|
11
|
-
}
|
|
12
|
+
credential
|
|
12
13
|
});
|
|
13
14
|
//#endregion
|
|
14
15
|
exports.reAmaze = reAmaze;
|
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\
|
|
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 subdomain: z.string(),\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const reAmaze: KeystrokeApp<\"re_amaze\", typeof credential> = defineApp({\n slug: \"re_amaze\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,WAAWA,IAAAA,EAAE,OAAO;CACpB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAiE;CAC5E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
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
|
subdomain: z.ZodString;
|
|
10
7
|
generic_api_key: z.ZodString;
|
|
11
8
|
generic_id: z.ZodString;
|
|
12
|
-
}
|
|
9
|
+
};
|
|
10
|
+
declare const reAmaze: KeystrokeApp<"re_amaze", typeof credential>;
|
|
13
11
|
//#endregion
|
|
14
12
|
export { reAmaze };
|
|
15
13
|
//# 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;;;;;cAMO,OAAA,EAAS,YAAY,oBAAoB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
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
|
subdomain: z.ZodString;
|
|
10
7
|
generic_api_key: z.ZodString;
|
|
11
8
|
generic_id: z.ZodString;
|
|
12
|
-
}
|
|
9
|
+
};
|
|
10
|
+
declare const reAmaze: KeystrokeApp<"re_amaze", typeof credential>;
|
|
13
11
|
//#endregion
|
|
14
12
|
export { reAmaze };
|
|
15
13
|
//# 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;;;;;cAMO,OAAA,EAAS,YAAY,oBAAoB,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\
|
|
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 subdomain: z.string(),\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const reAmaze: KeystrokeApp<\"re_amaze\", typeof credential> = defineApp({\n slug: \"re_amaze\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AASA,MAAa,UAAuD,UAAU;CAC5E,MAAM;CACN,MAAM;CACN;EARA,WAAW,EAAE,OAAO;EACpB,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { reAmaze } from "./app.cjs";
|
|
1
2
|
import { reAmazeGetReportsTags } from "./actions/get-reports-tags.cjs";
|
|
2
3
|
import { reAmazeGetResponseTemplates } from "./actions/get-response-templates.cjs";
|
|
3
|
-
import { reAmaze } from "./app.cjs";
|
|
4
4
|
import { reAmazeCatalog } from "./catalog.cjs";
|
|
5
5
|
export { reAmaze, reAmazeCatalog, reAmazeGetReportsTags, reAmazeGetResponseTemplates };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { reAmaze } from "./app.mjs";
|
|
1
2
|
import { reAmazeGetReportsTags } from "./actions/get-reports-tags.mjs";
|
|
2
3
|
import { reAmazeGetResponseTemplates } from "./actions/get-response-templates.mjs";
|
|
3
|
-
import { reAmaze } from "./app.mjs";
|
|
4
4
|
import { reAmazeCatalog } from "./catalog.mjs";
|
|
5
5
|
export { reAmaze, reAmazeCatalog, reAmazeGetReportsTags, reAmazeGetResponseTemplates };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/re_amaze",
|
|
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": {
|