@keystrokehq/satismeter 0.1.4 → 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/embed-survey.cjs +1 -0
- package/dist/actions/embed-survey.cjs.map +1 -1
- package/dist/actions/embed-survey.d.cts +3 -6
- package/dist/actions/embed-survey.d.cts.map +1 -1
- package/dist/actions/embed-survey.d.mts +3 -6
- package/dist/actions/embed-survey.d.mts.map +1 -1
- package/dist/actions/embed-survey.mjs +1 -0
- package/dist/actions/embed-survey.mjs.map +1 -1
- package/dist/actions/get-unsubscribed-emails.cjs +1 -0
- package/dist/actions/get-unsubscribed-emails.cjs.map +1 -1
- package/dist/actions/get-unsubscribed-emails.d.cts +3 -3
- package/dist/actions/get-unsubscribed-emails.d.cts.map +1 -1
- package/dist/actions/get-unsubscribed-emails.d.mts +3 -3
- package/dist/actions/get-unsubscribed-emails.d.mts.map +1 -1
- package/dist/actions/get-unsubscribed-emails.mjs +1 -0
- package/dist/actions/get-unsubscribed-emails.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +1 -0
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +3 -3
- package/dist/actions/list-surveys.d.cts.map +1 -1
- package/dist/actions/list-surveys.d.mts +3 -3
- package/dist/actions/list-surveys.d.mts.map +1 -1
- package/dist/actions/list-surveys.mjs +1 -0
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -4
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -4
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/update-unsubscribed-emails.cjs +1 -0
- package/dist/actions/update-unsubscribed-emails.cjs.map +1 -1
- package/dist/actions/update-unsubscribed-emails.d.cts +3 -4
- package/dist/actions/update-unsubscribed-emails.d.cts.map +1 -1
- package/dist/actions/update-unsubscribed-emails.d.mts +3 -4
- package/dist/actions/update-unsubscribed-emails.d.mts.map +1 -1
- package/dist/actions/update-unsubscribed-emails.mjs +1 -0
- package/dist/actions/update-unsubscribed-emails.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- 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":["satismeter","executeSatismeterTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { satismeter } from \"./app\";\nimport { executeSatismeterTool } 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":["satismeter","executeSatismeterTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { satismeter } from \"./app\";\nimport { executeSatismeterTool } 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 satismeter.credential> {\n return satismeter.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 executeSatismeterTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO0D;CAC1D,OAAOA,YAAAA,WAAW,OAAO;EACvB,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,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;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 { satismeter } from \"./app\";\nimport { executeSatismeterTool } 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 { satismeter } from \"./app\";\nimport { executeSatismeterTool } 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 satismeter.credential> {\n return satismeter.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 executeSatismeterTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO0D;CAC1D,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-survey.cjs","names":["z","action"],"sources":["../../src/actions/embed-survey.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterEmbedSurveyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Additional user profile information\").optional(),\n userId: z.string().describe(\"Unique identifier for the user to target with the survey\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Survey display settings including language and custom text\").optional(),\n writeKey: z.string().describe(\"Project Write Key from SatisMeter\"),\n}).describe(\"Request model for generating the embed survey JavaScript snippet.\");\nexport const SatismeterEmbedSurveyOutput = z.object({\n embed_code: z.string().describe(\"HTML <script> block to embed the Satismeter survey\").nullable(),\n}).passthrough().describe(\"Response model containing the embed code snippet.\");\n\nexport const satismeterEmbedSurvey = action(\"SATISMETER_EMBED_SURVEY\", {\n slug: \"satismeter-embed-survey\",\n name: \"Embed Survey\",\n description: \"Tool to generate a JavaScript snippet to embed a SatisMeter survey. Use after configuring your project and obtaining your write key.\",\n input: SatismeterEmbedSurveyInput,\n output: SatismeterEmbedSurveyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"embed-survey.cjs","names":["z","action"],"sources":["../../src/actions/embed-survey.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterEmbedSurveyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Additional user profile information\").optional(),\n userId: z.string().describe(\"Unique identifier for the user to target with the survey\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Survey display settings including language and custom text\").optional(),\n writeKey: z.string().describe(\"Project Write Key from SatisMeter\"),\n}).describe(\"Request model for generating the embed survey JavaScript snippet.\");\nexport const SatismeterEmbedSurveyOutput = z.object({\n embed_code: z.string().describe(\"HTML <script> block to embed the Satismeter survey\").nullable(),\n}).passthrough().describe(\"Response model containing the embed code snippet.\");\n\nexport const satismeterEmbedSurvey: AppAction<\n typeof SatismeterEmbedSurveyInput,\n typeof SatismeterEmbedSurveyOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_EMBED_SURVEY\", {\n slug: \"satismeter-embed-survey\",\n name: \"Embed Survey\",\n description: \"Tool to generate a JavaScript snippet to embed a SatisMeter survey. Use after configuring your project and obtaining your write key.\",\n input: SatismeterEmbedSurveyInput,\n output: SatismeterEmbedSurveyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AACnE,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/embed-survey.d.ts
|
|
@@ -10,12 +12,7 @@ declare const SatismeterEmbedSurveyInput: z.ZodObject<{
|
|
|
10
12
|
declare const SatismeterEmbedSurveyOutput: z.ZodObject<{
|
|
11
13
|
embed_code: z.ZodNullable<z.ZodString>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const satismeterEmbedSurvey:
|
|
14
|
-
writeKey: string;
|
|
15
|
-
traits?: Record<string, unknown> | undefined;
|
|
16
|
-
userId?: string | undefined;
|
|
17
|
-
settings?: Record<string, unknown> | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const satismeterEmbedSurvey: AppAction<typeof SatismeterEmbedSurveyInput, typeof SatismeterEmbedSurveyOutput, typeof satismeter.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { satismeterEmbedSurvey };
|
|
21
18
|
//# sourceMappingURL=embed-survey.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-survey.d.cts","names":[],"sources":["../../src/actions/embed-survey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"embed-survey.d.cts","names":[],"sources":["../../src/actions/embed-survey.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/embed-survey.d.ts
|
|
@@ -10,12 +12,7 @@ declare const SatismeterEmbedSurveyInput: z.ZodObject<{
|
|
|
10
12
|
declare const SatismeterEmbedSurveyOutput: z.ZodObject<{
|
|
11
13
|
embed_code: z.ZodNullable<z.ZodString>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const satismeterEmbedSurvey:
|
|
14
|
-
writeKey: string;
|
|
15
|
-
traits?: Record<string, unknown> | undefined;
|
|
16
|
-
userId?: string | undefined;
|
|
17
|
-
settings?: Record<string, unknown> | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const satismeterEmbedSurvey: AppAction<typeof SatismeterEmbedSurveyInput, typeof SatismeterEmbedSurveyOutput, typeof satismeter.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { satismeterEmbedSurvey };
|
|
21
18
|
//# sourceMappingURL=embed-survey.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-survey.d.mts","names":[],"sources":["../../src/actions/embed-survey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"embed-survey.d.mts","names":[],"sources":["../../src/actions/embed-survey.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-survey.mjs","names":[],"sources":["../../src/actions/embed-survey.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterEmbedSurveyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Additional user profile information\").optional(),\n userId: z.string().describe(\"Unique identifier for the user to target with the survey\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Survey display settings including language and custom text\").optional(),\n writeKey: z.string().describe(\"Project Write Key from SatisMeter\"),\n}).describe(\"Request model for generating the embed survey JavaScript snippet.\");\nexport const SatismeterEmbedSurveyOutput = z.object({\n embed_code: z.string().describe(\"HTML <script> block to embed the Satismeter survey\").nullable(),\n}).passthrough().describe(\"Response model containing the embed code snippet.\");\n\nexport const satismeterEmbedSurvey = action(\"SATISMETER_EMBED_SURVEY\", {\n slug: \"satismeter-embed-survey\",\n name: \"Embed Survey\",\n description: \"Tool to generate a JavaScript snippet to embed a SatisMeter survey. Use after configuring your project and obtaining your write key.\",\n input: SatismeterEmbedSurveyInput,\n output: SatismeterEmbedSurveyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"embed-survey.mjs","names":[],"sources":["../../src/actions/embed-survey.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterEmbedSurveyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Additional user profile information\").optional(),\n userId: z.string().describe(\"Unique identifier for the user to target with the survey\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Survey display settings including language and custom text\").optional(),\n writeKey: z.string().describe(\"Project Write Key from SatisMeter\"),\n}).describe(\"Request model for generating the embed survey JavaScript snippet.\");\nexport const SatismeterEmbedSurveyOutput = z.object({\n embed_code: z.string().describe(\"HTML <script> block to embed the Satismeter survey\").nullable(),\n}).passthrough().describe(\"Response model containing the embed code snippet.\");\n\nexport const satismeterEmbedSurvey: AppAction<\n typeof SatismeterEmbedSurveyInput,\n typeof SatismeterEmbedSurveyOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_EMBED_SURVEY\", {\n slug: \"satismeter-embed-survey\",\n name: \"Embed Survey\",\n description: \"Tool to generate a JavaScript snippet to embed a SatisMeter survey. Use after configuring your project and obtaining your write key.\",\n input: SatismeterEmbedSurveyInput,\n output: SatismeterEmbedSurveyOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACnE,CAAC,CAAC,CAAC,SAAS,mEAaH;CACP,QAbyC,EAAE,OAAO,EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unsubscribed-emails.cjs","names":["z","action"],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterGetUnsubscribedEmailsInput = z.object({\n project_id: z.string().describe(\"Unique ID of the project to retrieve unsubscribed emails for. This is the Project ID found in Settings > Integrations > API in your SatisMeter dashboard (24-character MongoDB ObjectID format, e.g., '68877a5547d1914b110d41bd').\"),\n}).describe(\"Request model for retrieving unsubscribed emails for a Satismeter project.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema = z.object({\n emails: z.array(z.string()).describe(\"List of unsubscribed email addresses.\").nullable().optional(),\n}).passthrough().describe(\"Attributes containing the list of unsubscribed emails.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema = z.object({\n id: z.string().describe(\"The project ID.\").nullable(),\n type: z.string().describe(\"The resource type (always 'project-unsubscribes').\").nullable(),\n attributes: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema.nullable(),\n}).passthrough().describe(\"Data container for the unsubscribed emails response.\");\nexport const SatismeterGetUnsubscribedEmailsOutput = z.object({\n data: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the list of unsubscribed emails in JSON:API format.\");\n\nexport const satismeterGetUnsubscribedEmails = action(\"SATISMETER_GET_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-get-unsubscribed-emails\",\n name: \"Get Unsubscribed Emails\",\n description: \"Tool to retrieve list of unsubscribed emails for a project. Use when you need to fetch emails that have opted out of surveys.\",\n input: SatismeterGetUnsubscribedEmailsInput,\n output: SatismeterGetUnsubscribedEmailsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-unsubscribed-emails.cjs","names":["z","action"],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterGetUnsubscribedEmailsInput = z.object({\n project_id: z.string().describe(\"Unique ID of the project to retrieve unsubscribed emails for. This is the Project ID found in Settings > Integrations > API in your SatisMeter dashboard (24-character MongoDB ObjectID format, e.g., '68877a5547d1914b110d41bd').\"),\n}).describe(\"Request model for retrieving unsubscribed emails for a Satismeter project.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema = z.object({\n emails: z.array(z.string()).describe(\"List of unsubscribed email addresses.\").nullable().optional(),\n}).passthrough().describe(\"Attributes containing the list of unsubscribed emails.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema = z.object({\n id: z.string().describe(\"The project ID.\").nullable(),\n type: z.string().describe(\"The resource type (always 'project-unsubscribes').\").nullable(),\n attributes: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema.nullable(),\n}).passthrough().describe(\"Data container for the unsubscribed emails response.\");\nexport const SatismeterGetUnsubscribedEmailsOutput = z.object({\n data: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the list of unsubscribed emails in JSON:API format.\");\n\nexport const satismeterGetUnsubscribedEmails: AppAction<\n typeof SatismeterGetUnsubscribedEmailsInput,\n typeof SatismeterGetUnsubscribedEmailsOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_GET_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-get-unsubscribed-emails\",\n name: \"Get Unsubscribed Emails\",\n description: \"Tool to retrieve list of unsubscribed emails for a project. Use when you need to fetch emails that have opted out of surveys.\",\n input: SatismeterGetUnsubscribedEmailsInput,\n output: SatismeterGetUnsubscribedEmailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oOAAoO,EACtQ,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,gFAAgFA,IAAAA,EAAE,OAAO,EAC7F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,0EAA0EA,IAAAA,EAAE,OAAO;CACvF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,YAAY,8EAA8E,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAM,wEAAwE,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,kCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-unsubscribed-emails.d.ts
|
|
@@ -13,9 +15,7 @@ declare const SatismeterGetUnsubscribedEmailsOutput: z.ZodObject<{
|
|
|
13
15
|
}, z.core.$loose>>;
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const satismeterGetUnsubscribedEmails:
|
|
17
|
-
project_id: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const satismeterGetUnsubscribedEmails: AppAction<typeof SatismeterGetUnsubscribedEmailsInput, typeof SatismeterGetUnsubscribedEmailsOutput, typeof satismeter.credential>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { satismeterGetUnsubscribedEmails };
|
|
21
21
|
//# sourceMappingURL=get-unsubscribed-emails.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unsubscribed-emails.d.cts","names":[],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-unsubscribed-emails.d.cts","names":[],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAWpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-unsubscribed-emails.d.ts
|
|
@@ -13,9 +15,7 @@ declare const SatismeterGetUnsubscribedEmailsOutput: z.ZodObject<{
|
|
|
13
15
|
}, z.core.$loose>>;
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const satismeterGetUnsubscribedEmails:
|
|
17
|
-
project_id: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const satismeterGetUnsubscribedEmails: AppAction<typeof SatismeterGetUnsubscribedEmailsInput, typeof SatismeterGetUnsubscribedEmailsOutput, typeof satismeter.credential>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { satismeterGetUnsubscribedEmails };
|
|
21
21
|
//# sourceMappingURL=get-unsubscribed-emails.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unsubscribed-emails.d.mts","names":[],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-unsubscribed-emails.d.mts","names":[],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAWpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unsubscribed-emails.mjs","names":[],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterGetUnsubscribedEmailsInput = z.object({\n project_id: z.string().describe(\"Unique ID of the project to retrieve unsubscribed emails for. This is the Project ID found in Settings > Integrations > API in your SatisMeter dashboard (24-character MongoDB ObjectID format, e.g., '68877a5547d1914b110d41bd').\"),\n}).describe(\"Request model for retrieving unsubscribed emails for a Satismeter project.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema = z.object({\n emails: z.array(z.string()).describe(\"List of unsubscribed email addresses.\").nullable().optional(),\n}).passthrough().describe(\"Attributes containing the list of unsubscribed emails.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema = z.object({\n id: z.string().describe(\"The project ID.\").nullable(),\n type: z.string().describe(\"The resource type (always 'project-unsubscribes').\").nullable(),\n attributes: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema.nullable(),\n}).passthrough().describe(\"Data container for the unsubscribed emails response.\");\nexport const SatismeterGetUnsubscribedEmailsOutput = z.object({\n data: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the list of unsubscribed emails in JSON:API format.\");\n\nexport const satismeterGetUnsubscribedEmails = action(\"SATISMETER_GET_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-get-unsubscribed-emails\",\n name: \"Get Unsubscribed Emails\",\n description: \"Tool to retrieve list of unsubscribed emails for a project. Use when you need to fetch emails that have opted out of surveys.\",\n input: SatismeterGetUnsubscribedEmailsInput,\n output: SatismeterGetUnsubscribedEmailsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-unsubscribed-emails.mjs","names":[],"sources":["../../src/actions/get-unsubscribed-emails.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterGetUnsubscribedEmailsInput = z.object({\n project_id: z.string().describe(\"Unique ID of the project to retrieve unsubscribed emails for. This is the Project ID found in Settings > Integrations > API in your SatisMeter dashboard (24-character MongoDB ObjectID format, e.g., '68877a5547d1914b110d41bd').\"),\n}).describe(\"Request model for retrieving unsubscribed emails for a Satismeter project.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema = z.object({\n emails: z.array(z.string()).describe(\"List of unsubscribed email addresses.\").nullable().optional(),\n}).passthrough().describe(\"Attributes containing the list of unsubscribed emails.\");\nconst SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema = z.object({\n id: z.string().describe(\"The project ID.\").nullable(),\n type: z.string().describe(\"The resource type (always 'project-unsubscribes').\").nullable(),\n attributes: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseAttributesSchema.nullable(),\n}).passthrough().describe(\"Data container for the unsubscribed emails response.\");\nexport const SatismeterGetUnsubscribedEmailsOutput = z.object({\n data: SatismeterGetUnsubscribedEmails_GetUnsubscribedEmailsResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the list of unsubscribed emails in JSON:API format.\");\n\nexport const satismeterGetUnsubscribedEmails: AppAction<\n typeof SatismeterGetUnsubscribedEmailsInput,\n typeof SatismeterGetUnsubscribedEmailsOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_GET_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-get-unsubscribed-emails\",\n name: \"Get Unsubscribed Emails\",\n description: \"Tool to retrieve list of unsubscribed emails for a project. Use when you need to fetch emails that have opted out of surveys.\",\n input: SatismeterGetUnsubscribedEmailsInput,\n output: SatismeterGetUnsubscribedEmailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuC,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oOAAoO,EACtQ,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,gFAAgF,EAAE,OAAO,EAC7F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,0EAA0E,EAAE,OAAO;CACvF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,YAAY,8EAA8E,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAKhF,MAAa,kCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbmD,EAAE,OAAO,EAC5D,MAAM,wEAAwE,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterListSurveysInput = z.object({\n project: z.string().describe(\"SatisMeter project ID (24-character hex string). Obtain from your connected SatisMeter account or from the SatisMeter dashboard under Project Settings. Do not use project names.\"),\n}).describe(\"Request model for listing surveys (campaigns) in a SatisMeter project.\");\nconst SatismeterListSurveys_ListSurveysResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the survey (campaign)\").nullable(),\n name: z.string().describe(\"Name of the survey (campaign)\").nullable(),\n type: z.string().describe(\"Survey template type (nps, ces, csat, pmf, or custom)\").nullable().optional(),\n state: z.string().describe(\"Current survey status (live, paused, or draft)\").nullable().optional(),\n}).passthrough();\nexport const SatismeterListSurveysOutput = z.object({\n data: z.array(SatismeterListSurveys_ListSurveysResponseDataSchema).describe(\"List of surveys (campaigns)\"),\n}).passthrough();\n\nexport const satismeterListSurveys = action(\"SATISMETER_LIST_SURVEYS\", {\n slug: \"satismeter-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list surveys (campaigns) in a project. Use when you have a valid project ID and need to retrieve its surveys.\",\n input: SatismeterListSurveysInput,\n output: SatismeterListSurveysOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterListSurveysInput = z.object({\n project: z.string().describe(\"SatisMeter project ID (24-character hex string). Obtain from your connected SatisMeter account or from the SatisMeter dashboard under Project Settings. Do not use project names.\"),\n}).describe(\"Request model for listing surveys (campaigns) in a SatisMeter project.\");\nconst SatismeterListSurveys_ListSurveysResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the survey (campaign)\").nullable(),\n name: z.string().describe(\"Name of the survey (campaign)\").nullable(),\n type: z.string().describe(\"Survey template type (nps, ces, csat, pmf, or custom)\").nullable().optional(),\n state: z.string().describe(\"Current survey status (live, paused, or draft)\").nullable().optional(),\n}).passthrough();\nexport const SatismeterListSurveysOutput = z.object({\n data: z.array(SatismeterListSurveys_ListSurveysResponseDataSchema).describe(\"List of surveys (campaigns)\"),\n}).passthrough();\n\nexport const satismeterListSurveys: AppAction<\n typeof SatismeterListSurveysInput,\n typeof SatismeterListSurveysOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_LIST_SURVEYS\", {\n slug: \"satismeter-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list surveys (campaigns) in a project. Use when you have a valid project ID and need to retrieve its surveys.\",\n input: SatismeterListSurveysInput,\n output: SatismeterListSurveysOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EAClN,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,6BAA6B,EAC3G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-surveys.d.ts
|
|
@@ -12,9 +14,7 @@ declare const SatismeterListSurveysOutput: z.ZodObject<{
|
|
|
12
14
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const satismeterListSurveys:
|
|
16
|
-
project: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const satismeterListSurveys: AppAction<typeof SatismeterListSurveysInput, typeof SatismeterListSurveysOutput, typeof satismeter.credential>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { satismeterListSurveys };
|
|
20
20
|
//# sourceMappingURL=list-surveys.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.d.cts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-surveys.d.cts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-surveys.d.ts
|
|
@@ -12,9 +14,7 @@ declare const SatismeterListSurveysOutput: z.ZodObject<{
|
|
|
12
14
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const satismeterListSurveys:
|
|
16
|
-
project: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const satismeterListSurveys: AppAction<typeof SatismeterListSurveysInput, typeof SatismeterListSurveysOutput, typeof satismeter.credential>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { satismeterListSurveys };
|
|
20
20
|
//# sourceMappingURL=list-surveys.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.d.mts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-surveys.d.mts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.mjs","names":[],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterListSurveysInput = z.object({\n project: z.string().describe(\"SatisMeter project ID (24-character hex string). Obtain from your connected SatisMeter account or from the SatisMeter dashboard under Project Settings. Do not use project names.\"),\n}).describe(\"Request model for listing surveys (campaigns) in a SatisMeter project.\");\nconst SatismeterListSurveys_ListSurveysResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the survey (campaign)\").nullable(),\n name: z.string().describe(\"Name of the survey (campaign)\").nullable(),\n type: z.string().describe(\"Survey template type (nps, ces, csat, pmf, or custom)\").nullable().optional(),\n state: z.string().describe(\"Current survey status (live, paused, or draft)\").nullable().optional(),\n}).passthrough();\nexport const SatismeterListSurveysOutput = z.object({\n data: z.array(SatismeterListSurveys_ListSurveysResponseDataSchema).describe(\"List of surveys (campaigns)\"),\n}).passthrough();\n\nexport const satismeterListSurveys = action(\"SATISMETER_LIST_SURVEYS\", {\n slug: \"satismeter-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list surveys (campaigns) in a project. Use when you have a valid project ID and need to retrieve its surveys.\",\n input: SatismeterListSurveysInput,\n output: SatismeterListSurveysOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-surveys.mjs","names":[],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterListSurveysInput = z.object({\n project: z.string().describe(\"SatisMeter project ID (24-character hex string). Obtain from your connected SatisMeter account or from the SatisMeter dashboard under Project Settings. Do not use project names.\"),\n}).describe(\"Request model for listing surveys (campaigns) in a SatisMeter project.\");\nconst SatismeterListSurveys_ListSurveysResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the survey (campaign)\").nullable(),\n name: z.string().describe(\"Name of the survey (campaign)\").nullable(),\n type: z.string().describe(\"Survey template type (nps, ces, csat, pmf, or custom)\").nullable().optional(),\n state: z.string().describe(\"Current survey status (live, paused, or draft)\").nullable().optional(),\n}).passthrough();\nexport const SatismeterListSurveysOutput = z.object({\n data: z.array(SatismeterListSurveys_ListSurveysResponseDataSchema).describe(\"List of surveys (campaigns)\"),\n}).passthrough();\n\nexport const satismeterListSurveys: AppAction<\n typeof SatismeterListSurveysInput,\n typeof SatismeterListSurveysOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_LIST_SURVEYS\", {\n slug: \"satismeter-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list surveys (campaigns) in a project. Use when you have a valid project ID and need to retrieve its surveys.\",\n input: SatismeterListSurveysInput,\n output: SatismeterListSurveysOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EAClN,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,6BAA6B,EAC3G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterListUsersInput = z.object({\n project: z.string().describe(\"ID of the project to list users for\"),\n user_id: z.string().describe(\"Filter by specific user ID (the id passed on the widget) to return only that user\").optional(),\n}).describe(\"Request model for listing users in a Satismeter project.\");\nconst SatismeterListUsers_UserDataSchema = z.object({\n id: z.string().describe(\"Internal SatisMeter user ID\").nullable(),\n name: z.string().describe(\"User's name\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n traits: z.record(z.string(), z.unknown()).describe(\"Custom traits attached to the user\").nullable().optional(),\n userId: z.string().describe(\"The user ID passed on the widget\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n project: z.string().describe(\"The project ID this user belongs to\").nullable().optional(),\n lastSeen: z.string().describe(\"Timestamp of when the user was last seen\").nullable().optional(),\n unsubscribed: z.boolean().describe(\"Whether the user is unsubscribed\").nullable().optional(),\n}).passthrough().describe(\"Individual user data returned by the API\");\nexport const SatismeterListUsersOutput = z.object({\n users: z.array(SatismeterListUsers_UserDataSchema).describe(\"List of users in the project\"),\n}).passthrough().describe(\"Response model for listing users\");\n\nexport const satismeterListUsers = action(\"SATISMETER_LIST_USERS\", {\n slug: \"satismeter-list-users\",\n name: \"List Users\",\n description: \"Tool to list users in a project. Use when you have a valid project ID and need to retrieve its users. Optionally filter by a specific user ID.\",\n input: SatismeterListUsersInput,\n output: SatismeterListUsersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterListUsersInput = z.object({\n project: z.string().describe(\"ID of the project to list users for\"),\n user_id: z.string().describe(\"Filter by specific user ID (the id passed on the widget) to return only that user\").optional(),\n}).describe(\"Request model for listing users in a Satismeter project.\");\nconst SatismeterListUsers_UserDataSchema = z.object({\n id: z.string().describe(\"Internal SatisMeter user ID\").nullable(),\n name: z.string().describe(\"User's name\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n traits: z.record(z.string(), z.unknown()).describe(\"Custom traits attached to the user\").nullable().optional(),\n userId: z.string().describe(\"The user ID passed on the widget\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n project: z.string().describe(\"The project ID this user belongs to\").nullable().optional(),\n lastSeen: z.string().describe(\"Timestamp of when the user was last seen\").nullable().optional(),\n unsubscribed: z.boolean().describe(\"Whether the user is unsubscribed\").nullable().optional(),\n}).passthrough().describe(\"Individual user data returned by the API\");\nexport const SatismeterListUsersOutput = z.object({\n users: z.array(SatismeterListUsers_UserDataSchema).describe(\"List of users in the project\"),\n}).passthrough().describe(\"Response model for listing users\");\n\nexport const satismeterListUsers: AppAction<\n typeof SatismeterListUsersInput,\n typeof SatismeterListUsersOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_LIST_USERS\", {\n slug: \"satismeter-list-users\",\n name: \"List Users\",\n description: \"Tool to list users in a project. Use when you have a valid project ID and need to retrieve its users. Optionally filter by a specific user ID.\",\n input: SatismeterListUsersInput,\n output: SatismeterListUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,8BAA8B,EAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-users.d.ts
|
|
@@ -18,10 +20,7 @@ declare const SatismeterListUsersOutput: z.ZodObject<{
|
|
|
18
20
|
unsubscribed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const satismeterListUsers:
|
|
22
|
-
project: string;
|
|
23
|
-
user_id?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const satismeterListUsers: AppAction<typeof SatismeterListUsersInput, typeof SatismeterListUsersOutput, typeof satismeter.credential>;
|
|
25
24
|
//#endregion
|
|
26
25
|
export { satismeterListUsers };
|
|
27
26
|
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-users.d.ts
|
|
@@ -18,10 +20,7 @@ declare const SatismeterListUsersOutput: z.ZodObject<{
|
|
|
18
20
|
unsubscribed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const satismeterListUsers:
|
|
22
|
-
project: string;
|
|
23
|
-
user_id?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const satismeterListUsers: AppAction<typeof SatismeterListUsersInput, typeof SatismeterListUsersOutput, typeof satismeter.credential>;
|
|
25
24
|
//#endregion
|
|
26
25
|
export { satismeterListUsers };
|
|
27
26
|
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterListUsersInput = z.object({\n project: z.string().describe(\"ID of the project to list users for\"),\n user_id: z.string().describe(\"Filter by specific user ID (the id passed on the widget) to return only that user\").optional(),\n}).describe(\"Request model for listing users in a Satismeter project.\");\nconst SatismeterListUsers_UserDataSchema = z.object({\n id: z.string().describe(\"Internal SatisMeter user ID\").nullable(),\n name: z.string().describe(\"User's name\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n traits: z.record(z.string(), z.unknown()).describe(\"Custom traits attached to the user\").nullable().optional(),\n userId: z.string().describe(\"The user ID passed on the widget\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n project: z.string().describe(\"The project ID this user belongs to\").nullable().optional(),\n lastSeen: z.string().describe(\"Timestamp of when the user was last seen\").nullable().optional(),\n unsubscribed: z.boolean().describe(\"Whether the user is unsubscribed\").nullable().optional(),\n}).passthrough().describe(\"Individual user data returned by the API\");\nexport const SatismeterListUsersOutput = z.object({\n users: z.array(SatismeterListUsers_UserDataSchema).describe(\"List of users in the project\"),\n}).passthrough().describe(\"Response model for listing users\");\n\nexport const satismeterListUsers = action(\"SATISMETER_LIST_USERS\", {\n slug: \"satismeter-list-users\",\n name: \"List Users\",\n description: \"Tool to list users in a project. Use when you have a valid project ID and need to retrieve its users. Optionally filter by a specific user ID.\",\n input: SatismeterListUsersInput,\n output: SatismeterListUsersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterListUsersInput = z.object({\n project: z.string().describe(\"ID of the project to list users for\"),\n user_id: z.string().describe(\"Filter by specific user ID (the id passed on the widget) to return only that user\").optional(),\n}).describe(\"Request model for listing users in a Satismeter project.\");\nconst SatismeterListUsers_UserDataSchema = z.object({\n id: z.string().describe(\"Internal SatisMeter user ID\").nullable(),\n name: z.string().describe(\"User's name\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n traits: z.record(z.string(), z.unknown()).describe(\"Custom traits attached to the user\").nullable().optional(),\n userId: z.string().describe(\"The user ID passed on the widget\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n project: z.string().describe(\"The project ID this user belongs to\").nullable().optional(),\n lastSeen: z.string().describe(\"Timestamp of when the user was last seen\").nullable().optional(),\n unsubscribed: z.boolean().describe(\"Whether the user is unsubscribed\").nullable().optional(),\n}).passthrough().describe(\"Individual user data returned by the API\");\nexport const SatismeterListUsersOutput = z.object({\n users: z.array(SatismeterListUsers_UserDataSchema).describe(\"List of users in the project\"),\n}).passthrough().describe(\"Response model for listing users\");\n\nexport const satismeterListUsers: AppAction<\n typeof SatismeterListUsersInput,\n typeof SatismeterListUsersOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_LIST_USERS\", {\n slug: \"satismeter-list-users\",\n name: \"List Users\",\n description: \"Tool to list users in a project. Use when you have a valid project ID and need to retrieve its users. Optionally filter by a specific user ID.\",\n input: SatismeterListUsersInput,\n output: SatismeterListUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,8BAA8B,EAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-unsubscribed-emails.cjs","names":["z","action"],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterUpdateUnsubscribedEmailsInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses to unsubscribe.\"),\n project_id: z.string().describe(\"ID of the Satismeter project (24-character MongoDB ObjectId format).\"),\n}).describe(\"Request model for updating unsubscribed emails for a Satismeter project.\");\nexport const SatismeterUpdateUnsubscribedEmailsOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Map of emails that couldn't be unsubscribed to error reasons.\").nullable().optional(),\n success: z.boolean().describe(\"True if unsubscription was successful.\").nullable(),\n unsubscribed: z.array(z.string()).describe(\"List of emails successfully unsubscribed.\"),\n}).passthrough().describe(\"Response model for updating unsubscribed emails action.\");\n\nexport const satismeterUpdateUnsubscribedEmails = action(\"SATISMETER_UPDATE_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-update-unsubscribed-emails\",\n name: \"Update Unsubscribed Emails\",\n description: \"Tool to update the list of unsubscribed emails for a project. Use when you need to bulk unsubscribe user emails from surveys.\",\n input: SatismeterUpdateUnsubscribedEmailsInput,\n output: SatismeterUpdateUnsubscribedEmailsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-unsubscribed-emails.cjs","names":["z","action"],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterUpdateUnsubscribedEmailsInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses to unsubscribe.\"),\n project_id: z.string().describe(\"ID of the Satismeter project (24-character MongoDB ObjectId format).\"),\n}).describe(\"Request model for updating unsubscribed emails for a Satismeter project.\");\nexport const SatismeterUpdateUnsubscribedEmailsOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Map of emails that couldn't be unsubscribed to error reasons.\").nullable().optional(),\n success: z.boolean().describe(\"True if unsubscription was successful.\").nullable(),\n unsubscribed: z.array(z.string()).describe(\"List of emails successfully unsubscribed.\"),\n}).passthrough().describe(\"Response model for updating unsubscribed emails action.\");\n\nexport const satismeterUpdateUnsubscribedEmails: AppAction<\n typeof SatismeterUpdateUnsubscribedEmailsInput,\n typeof SatismeterUpdateUnsubscribedEmailsOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_UPDATE_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-update-unsubscribed-emails\",\n name: \"Update Unsubscribed Emails\",\n description: \"Tool to update the list of unsubscribed emails for a project. Use when you need to bulk unsubscribe user emails from surveys.\",\n input: SatismeterUpdateUnsubscribedEmailsInput,\n output: SatismeterUpdateUnsubscribedEmailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;AACxG,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,qCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-unsubscribed-emails.d.ts
|
|
@@ -10,10 +12,7 @@ declare const SatismeterUpdateUnsubscribedEmailsOutput: z.ZodObject<{
|
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
unsubscribed: z.ZodArray<z.ZodString>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const satismeterUpdateUnsubscribedEmails:
|
|
14
|
-
emails: string[];
|
|
15
|
-
project_id: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const satismeterUpdateUnsubscribedEmails: AppAction<typeof SatismeterUpdateUnsubscribedEmailsInput, typeof SatismeterUpdateUnsubscribedEmailsOutput, typeof satismeter.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { satismeterUpdateUnsubscribedEmails };
|
|
19
18
|
//# sourceMappingURL=update-unsubscribed-emails.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-unsubscribed-emails.d.cts","names":[],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-unsubscribed-emails.d.cts","names":[],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;cAMxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { satismeter } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-unsubscribed-emails.d.ts
|
|
@@ -10,10 +12,7 @@ declare const SatismeterUpdateUnsubscribedEmailsOutput: z.ZodObject<{
|
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
unsubscribed: z.ZodArray<z.ZodString>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const satismeterUpdateUnsubscribedEmails:
|
|
14
|
-
emails: string[];
|
|
15
|
-
project_id: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const satismeterUpdateUnsubscribedEmails: AppAction<typeof SatismeterUpdateUnsubscribedEmailsInput, typeof SatismeterUpdateUnsubscribedEmailsOutput, typeof satismeter.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { satismeterUpdateUnsubscribedEmails };
|
|
19
18
|
//# sourceMappingURL=update-unsubscribed-emails.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-unsubscribed-emails.d.mts","names":[],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-unsubscribed-emails.d.mts","names":[],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;cAMxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-unsubscribed-emails.mjs","names":[],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SatismeterUpdateUnsubscribedEmailsInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses to unsubscribe.\"),\n project_id: z.string().describe(\"ID of the Satismeter project (24-character MongoDB ObjectId format).\"),\n}).describe(\"Request model for updating unsubscribed emails for a Satismeter project.\");\nexport const SatismeterUpdateUnsubscribedEmailsOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Map of emails that couldn't be unsubscribed to error reasons.\").nullable().optional(),\n success: z.boolean().describe(\"True if unsubscription was successful.\").nullable(),\n unsubscribed: z.array(z.string()).describe(\"List of emails successfully unsubscribed.\"),\n}).passthrough().describe(\"Response model for updating unsubscribed emails action.\");\n\nexport const satismeterUpdateUnsubscribedEmails = action(\"SATISMETER_UPDATE_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-update-unsubscribed-emails\",\n name: \"Update Unsubscribed Emails\",\n description: \"Tool to update the list of unsubscribed emails for a project. Use when you need to bulk unsubscribe user emails from surveys.\",\n input: SatismeterUpdateUnsubscribedEmailsInput,\n output: SatismeterUpdateUnsubscribedEmailsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-unsubscribed-emails.mjs","names":[],"sources":["../../src/actions/update-unsubscribed-emails.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { satismeter } from \"../app\";\n\nexport const SatismeterUpdateUnsubscribedEmailsInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses to unsubscribe.\"),\n project_id: z.string().describe(\"ID of the Satismeter project (24-character MongoDB ObjectId format).\"),\n}).describe(\"Request model for updating unsubscribed emails for a Satismeter project.\");\nexport const SatismeterUpdateUnsubscribedEmailsOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Map of emails that couldn't be unsubscribed to error reasons.\").nullable().optional(),\n success: z.boolean().describe(\"True if unsubscription was successful.\").nullable(),\n unsubscribed: z.array(z.string()).describe(\"List of emails successfully unsubscribed.\"),\n}).passthrough().describe(\"Response model for updating unsubscribed emails action.\");\n\nexport const satismeterUpdateUnsubscribedEmails: AppAction<\n typeof SatismeterUpdateUnsubscribedEmailsInput,\n typeof SatismeterUpdateUnsubscribedEmailsOutput,\n typeof satismeter.credential\n> = action(\"SATISMETER_UPDATE_UNSUBSCRIBED_EMAILS\", {\n slug: \"satismeter-update-unsubscribed-emails\",\n name: \"Update Unsubscribed Emails\",\n description: \"Tool to update the list of unsubscribed emails for a project. Use when you need to bulk unsubscribe user emails from surveys.\",\n input: SatismeterUpdateUnsubscribedEmailsInput,\n output: SatismeterUpdateUnsubscribedEmailsOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,qCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBqD,EAAE,OAAO;EAC9D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACxG,CAAC,CAAC,CAAC,SAAS,0EAeH;CACP,QAfsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const
|
|
4
|
+
const credential = {
|
|
5
|
+
generic_api_key: zod.z.string(),
|
|
6
|
+
generic_id: zod.z.string()
|
|
7
|
+
};
|
|
8
|
+
const satismeter = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
9
|
slug: "satismeter",
|
|
4
|
-
auth: "keystroke"
|
|
10
|
+
auth: "keystroke",
|
|
11
|
+
credential
|
|
5
12
|
});
|
|
6
13
|
//#endregion
|
|
7
14
|
exports.satismeter = satismeter;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const satismeter = defineApp({\n slug: \"satismeter\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,cAAA,
|
|
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 generic_id: z.string(),\n};\n\nexport const satismeter: KeystrokeApp<\"satismeter\", typeof credential> = defineApp({\n slug: \"satismeter\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,cAAA,GAAA,2BAAA,UAAA,CAAsE;CACjF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
generic_id: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
declare const satismeter: KeystrokeApp<"satismeter", typeof credential>;
|
|
3
10
|
//#endregion
|
|
4
11
|
export { satismeter };
|
|
5
12
|
//# 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;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
generic_id: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
declare const satismeter: KeystrokeApp<"satismeter", typeof credential>;
|
|
3
10
|
//#endregion
|
|
4
11
|
export { satismeter };
|
|
5
12
|
//# 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;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const satismeter = defineApp({
|
|
4
4
|
slug: "satismeter",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: {
|
|
7
|
+
generic_api_key: z.string(),
|
|
8
|
+
generic_id: z.string()
|
|
9
|
+
}
|
|
6
10
|
});
|
|
7
11
|
//#endregion
|
|
8
12
|
export { satismeter };
|
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\";\n\nexport const satismeter = defineApp({\n slug: \"satismeter\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
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 generic_id: z.string(),\n};\n\nexport const satismeter: KeystrokeApp<\"satismeter\", typeof credential> = defineApp({\n slug: \"satismeter\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,aAA4D,UAAU;CACjF,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { satismeter } from "./app.cjs";
|
|
1
2
|
import { satismeterEmbedSurvey } from "./actions/embed-survey.cjs";
|
|
2
3
|
import { satismeterGetUnsubscribedEmails } from "./actions/get-unsubscribed-emails.cjs";
|
|
3
4
|
import { satismeterListSurveys } from "./actions/list-surveys.cjs";
|
|
4
5
|
import { satismeterListUsers } from "./actions/list-users.cjs";
|
|
5
6
|
import { satismeterUpdateUnsubscribedEmails } from "./actions/update-unsubscribed-emails.cjs";
|
|
6
|
-
import { satismeter } from "./app.cjs";
|
|
7
7
|
import { satismeterCatalog } from "./catalog.cjs";
|
|
8
8
|
export { satismeter, satismeterCatalog, satismeterEmbedSurvey, satismeterGetUnsubscribedEmails, satismeterListSurveys, satismeterListUsers, satismeterUpdateUnsubscribedEmails };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { satismeter } from "./app.mjs";
|
|
1
2
|
import { satismeterEmbedSurvey } from "./actions/embed-survey.mjs";
|
|
2
3
|
import { satismeterGetUnsubscribedEmails } from "./actions/get-unsubscribed-emails.mjs";
|
|
3
4
|
import { satismeterListSurveys } from "./actions/list-surveys.mjs";
|
|
4
5
|
import { satismeterListUsers } from "./actions/list-users.mjs";
|
|
5
6
|
import { satismeterUpdateUnsubscribedEmails } from "./actions/update-unsubscribed-emails.mjs";
|
|
6
|
-
import { satismeter } from "./app.mjs";
|
|
7
7
|
import { satismeterCatalog } from "./catalog.mjs";
|
|
8
8
|
export { satismeter, satismeterCatalog, satismeterEmbedSurvey, satismeterGetUnsubscribedEmails, satismeterListSurveys, satismeterListUsers, satismeterUpdateUnsubscribedEmails };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/satismeter",
|
|
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": {
|