@keystrokehq/mopinion 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/get-account.cjs +51 -0
  7. package/dist/actions/get-account.cjs.map +1 -0
  8. package/dist/actions/get-account.d.cts +9 -0
  9. package/dist/actions/get-account.d.cts.map +1 -0
  10. package/dist/actions/get-account.d.mts +9 -0
  11. package/dist/actions/get-account.d.mts.map +1 -0
  12. package/dist/actions/get-account.mjs +50 -0
  13. package/dist/actions/get-account.mjs.map +1 -0
  14. package/dist/actions/get-dataset-by-id.cjs +35 -0
  15. package/dist/actions/get-dataset-by-id.cjs.map +1 -0
  16. package/dist/actions/get-dataset-by-id.d.cts +9 -0
  17. package/dist/actions/get-dataset-by-id.d.cts.map +1 -0
  18. package/dist/actions/get-dataset-by-id.d.mts +9 -0
  19. package/dist/actions/get-dataset-by-id.d.mts.map +1 -0
  20. package/dist/actions/get-dataset-by-id.mjs +34 -0
  21. package/dist/actions/get-dataset-by-id.mjs.map +1 -0
  22. package/dist/actions/get-dataset-feedback-by-id.cjs +56 -0
  23. package/dist/actions/get-dataset-feedback-by-id.cjs.map +1 -0
  24. package/dist/actions/get-dataset-feedback-by-id.d.cts +9 -0
  25. package/dist/actions/get-dataset-feedback-by-id.d.cts.map +1 -0
  26. package/dist/actions/get-dataset-feedback-by-id.d.mts +9 -0
  27. package/dist/actions/get-dataset-feedback-by-id.d.mts.map +1 -0
  28. package/dist/actions/get-dataset-feedback-by-id.mjs +55 -0
  29. package/dist/actions/get-dataset-feedback-by-id.mjs.map +1 -0
  30. package/dist/actions/get-dataset-feedback.cjs +60 -0
  31. package/dist/actions/get-dataset-feedback.cjs.map +1 -0
  32. package/dist/actions/get-dataset-feedback.d.cts +9 -0
  33. package/dist/actions/get-dataset-feedback.d.cts.map +1 -0
  34. package/dist/actions/get-dataset-feedback.d.mts +9 -0
  35. package/dist/actions/get-dataset-feedback.d.mts.map +1 -0
  36. package/dist/actions/get-dataset-feedback.mjs +59 -0
  37. package/dist/actions/get-dataset-feedback.mjs.map +1 -0
  38. package/dist/actions/get-dataset-fields.cjs +16 -0
  39. package/dist/actions/get-dataset-fields.cjs.map +1 -0
  40. package/dist/actions/get-dataset-fields.d.cts +9 -0
  41. package/dist/actions/get-dataset-fields.d.cts.map +1 -0
  42. package/dist/actions/get-dataset-fields.d.mts +9 -0
  43. package/dist/actions/get-dataset-fields.d.mts.map +1 -0
  44. package/dist/actions/get-dataset-fields.mjs +13 -0
  45. package/dist/actions/get-dataset-fields.mjs.map +1 -0
  46. package/dist/actions/get-deployment-by-id.cjs +16 -0
  47. package/dist/actions/get-deployment-by-id.cjs.map +1 -0
  48. package/dist/actions/get-deployment-by-id.d.cts +9 -0
  49. package/dist/actions/get-deployment-by-id.d.cts.map +1 -0
  50. package/dist/actions/get-deployment-by-id.d.mts +9 -0
  51. package/dist/actions/get-deployment-by-id.d.mts.map +1 -0
  52. package/dist/actions/get-deployment-by-id.mjs +13 -0
  53. package/dist/actions/get-deployment-by-id.mjs.map +1 -0
  54. package/dist/actions/get-deployments.cjs +27 -0
  55. package/dist/actions/get-deployments.cjs.map +1 -0
  56. package/dist/actions/get-deployments.d.cts +9 -0
  57. package/dist/actions/get-deployments.d.cts.map +1 -0
  58. package/dist/actions/get-deployments.d.mts +9 -0
  59. package/dist/actions/get-deployments.d.mts.map +1 -0
  60. package/dist/actions/get-deployments.mjs +26 -0
  61. package/dist/actions/get-deployments.mjs.map +1 -0
  62. package/dist/actions/get-report-by-id.cjs +40 -0
  63. package/dist/actions/get-report-by-id.cjs.map +1 -0
  64. package/dist/actions/get-report-by-id.d.cts +9 -0
  65. package/dist/actions/get-report-by-id.d.cts.map +1 -0
  66. package/dist/actions/get-report-by-id.d.mts +9 -0
  67. package/dist/actions/get-report-by-id.d.mts.map +1 -0
  68. package/dist/actions/get-report-by-id.mjs +39 -0
  69. package/dist/actions/get-report-by-id.mjs.map +1 -0
  70. package/dist/actions/get-report-feedback.cjs +40 -0
  71. package/dist/actions/get-report-feedback.cjs.map +1 -0
  72. package/dist/actions/get-report-feedback.d.cts +9 -0
  73. package/dist/actions/get-report-feedback.d.cts.map +1 -0
  74. package/dist/actions/get-report-feedback.d.mts +9 -0
  75. package/dist/actions/get-report-feedback.d.mts.map +1 -0
  76. package/dist/actions/get-report-feedback.mjs +39 -0
  77. package/dist/actions/get-report-feedback.mjs.map +1 -0
  78. package/dist/actions/get-report-fields.cjs +26 -0
  79. package/dist/actions/get-report-fields.cjs.map +1 -0
  80. package/dist/actions/get-report-fields.d.cts +9 -0
  81. package/dist/actions/get-report-fields.d.cts.map +1 -0
  82. package/dist/actions/get-report-fields.d.mts +9 -0
  83. package/dist/actions/get-report-fields.d.mts.map +1 -0
  84. package/dist/actions/get-report-fields.mjs +25 -0
  85. package/dist/actions/get-report-fields.mjs.map +1 -0
  86. package/dist/actions/get-root.cjs +24 -0
  87. package/dist/actions/get-root.cjs.map +1 -0
  88. package/dist/actions/get-root.d.cts +9 -0
  89. package/dist/actions/get-root.d.cts.map +1 -0
  90. package/dist/actions/get-root.d.mts +9 -0
  91. package/dist/actions/get-root.d.mts.map +1 -0
  92. package/dist/actions/get-root.mjs +21 -0
  93. package/dist/actions/get-root.mjs.map +1 -0
  94. package/dist/actions/index.cjs +23 -0
  95. package/dist/actions/index.d.cts +12 -0
  96. package/dist/actions/index.d.mts +12 -0
  97. package/dist/actions/index.mjs +12 -0
  98. package/dist/app.cjs +9 -0
  99. package/dist/app.cjs.map +1 -0
  100. package/dist/app.d.cts +5 -0
  101. package/dist/app.d.cts.map +1 -0
  102. package/dist/app.d.mts +5 -0
  103. package/dist/app.d.mts.map +1 -0
  104. package/dist/app.mjs +10 -0
  105. package/dist/app.mjs.map +1 -0
  106. package/dist/catalog.cjs +15 -0
  107. package/dist/catalog.cjs.map +1 -0
  108. package/dist/catalog.d.cts +14 -0
  109. package/dist/catalog.d.cts.map +1 -0
  110. package/dist/catalog.d.mts +14 -0
  111. package/dist/catalog.d.mts.map +1 -0
  112. package/dist/catalog.mjs +15 -0
  113. package/dist/catalog.mjs.map +1 -0
  114. package/dist/execute.cjs +18 -0
  115. package/dist/execute.cjs.map +1 -0
  116. package/dist/execute.mjs +18 -0
  117. package/dist/execute.mjs.map +1 -0
  118. package/dist/index.cjs +28 -0
  119. package/dist/index.d.cts +14 -0
  120. package/dist/index.d.mts +14 -0
  121. package/dist/index.mjs +15 -0
  122. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/mopinion
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `mopinion`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 11
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { mopinionGetAccount } from "@keystrokehq/mopinion/actions";
12
+
13
+ export default defineAgent({
14
+ key: "mopinion-agent",
15
+ tools: [mopinionGetAccount],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.mopinion.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeMopinionTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["mopinion","executeMopinionTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { mopinion } from \"./app\";\nimport { executeMopinionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return mopinion.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 executeMopinionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,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,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { mopinion } from "./app.mjs";
2
+ import { executeMopinionTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return mopinion.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeMopinionTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { mopinion } from \"./app\";\nimport { executeMopinionTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return mopinion.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 executeMopinionTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,51 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-account.ts
4
+ const MopinionGetAccountInput = zod.z.object({}).describe("Request model for GetAccount action.\nNo parameters required - returns current authenticated account information.");
5
+ const MopinionGetAccount_MetaInfoSchema = zod.z.object({
6
+ code: zod.z.number().int().describe("HTTP status code"),
7
+ next: zod.z.boolean().describe("Whether there is a next page"),
8
+ count: zod.z.number().int().describe("Number of items in current response"),
9
+ total: zod.z.number().int().describe("Total number of items available"),
10
+ message: zod.z.string().describe("Status message"),
11
+ has_more: zod.z.boolean().describe("Whether there are more results available"),
12
+ previous: zod.z.boolean().describe("Whether there is a previous page")
13
+ }).describe("Metadata information for the response.");
14
+ const MopinionGetAccount_DataSetSchema = zod.z.object({
15
+ id: zod.z.number().int().describe("Unique identifier for the dataset"),
16
+ name: zod.z.string().describe("Name of the dataset"),
17
+ report_id: zod.z.number().int().describe("ID of the parent report"),
18
+ data_source: zod.z.string().describe("Source type of the data (e.g., 'form')"),
19
+ description: zod.z.string().describe("Description of the dataset")
20
+ }).describe("Model for a dataset within a report.");
21
+ const MopinionGetAccount_ReportSchema = zod.z.object({
22
+ id: zod.z.number().int().describe("Unique identifier for the report"),
23
+ name: zod.z.string().describe("Name of the report"),
24
+ created: zod.z.string().describe("Creation date of the report (YYYY-MM-DD)"),
25
+ dataSets: zod.z.array(MopinionGetAccount_DataSetSchema).describe("List of datasets associated with this report").nullable().optional(),
26
+ language: zod.z.string().describe("Language code (e.g., 'en_US')"),
27
+ description: zod.z.string().describe("Description of the report")
28
+ }).describe("Model for a report in the account.");
29
+ const MopinionGetAccount_AccountInfoSchema = zod.z.object({
30
+ name: zod.z.string().describe("Account name"),
31
+ _meta: MopinionGetAccount_MetaInfoSchema.nullable(),
32
+ enddate: zod.z.string().describe("End date of the current package (YYYY-MM-DD HH:MM:SS)"),
33
+ package: zod.z.string().describe("Package/plan type (e.g., 'Trial', 'Pro')"),
34
+ reports: zod.z.array(MopinionGetAccount_ReportSchema).describe("List of reports in the account").nullable().optional(),
35
+ number_forms: zod.z.number().int().describe("Number of forms allowed"),
36
+ number_users: zod.z.number().int().describe("Number of users allowed in the account"),
37
+ number_charts: zod.z.number().int().describe("Number of charts available"),
38
+ number_reports: zod.z.number().int().describe("Number of reports allowed")
39
+ }).describe("Detailed account information model.");
40
+ const MopinionGetAccountOutput = zod.z.object({ account: MopinionGetAccount_AccountInfoSchema.nullable() }).describe("Response model for GetAccount action.\nContains comprehensive account information including package details, limits, and associated reports.");
41
+ const mopinionGetAccount = require_action.action("MOPINION_GET_ACCOUNT", {
42
+ slug: "mopinion-get-account",
43
+ name: "Get Account",
44
+ description: "Tool to retrieve the current authenticated account information. Use to verify authentication and get account details.",
45
+ input: MopinionGetAccountInput,
46
+ output: MopinionGetAccountOutput
47
+ });
48
+ //#endregion
49
+ exports.mopinionGetAccount = mopinionGetAccount;
50
+
51
+ //# sourceMappingURL=get-account.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-account.cjs","names":["z","action"],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetAccountInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GetAccount action.\\nNo parameters required - returns current authenticated account information.\");\nconst MopinionGetAccount_MetaInfoSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code\"),\n next: z.boolean().describe(\"Whether there is a next page\"),\n count: z.number().int().describe(\"Number of items in current response\"),\n total: z.number().int().describe(\"Total number of items available\"),\n message: z.string().describe(\"Status message\"),\n has_more: z.boolean().describe(\"Whether there are more results available\"),\n previous: z.boolean().describe(\"Whether there is a previous page\"),\n}).describe(\"Metadata information for the response.\");\nconst MopinionGetAccount_DataSetSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the dataset\"),\n name: z.string().describe(\"Name of the dataset\"),\n report_id: z.number().int().describe(\"ID of the parent report\"),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form')\"),\n description: z.string().describe(\"Description of the dataset\"),\n}).describe(\"Model for a dataset within a report.\");\nconst MopinionGetAccount_ReportSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the report\"),\n name: z.string().describe(\"Name of the report\"),\n created: z.string().describe(\"Creation date of the report (YYYY-MM-DD)\"),\n dataSets: z.array(MopinionGetAccount_DataSetSchema).describe(\"List of datasets associated with this report\").nullable().optional(),\n language: z.string().describe(\"Language code (e.g., 'en_US')\"),\n description: z.string().describe(\"Description of the report\"),\n}).describe(\"Model for a report in the account.\");\nconst MopinionGetAccount_AccountInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Account name\"),\n _meta: MopinionGetAccount_MetaInfoSchema.nullable(),\n enddate: z.string().describe(\"End date of the current package (YYYY-MM-DD HH:MM:SS)\"),\n package: z.string().describe(\"Package/plan type (e.g., 'Trial', 'Pro')\"),\n reports: z.array(MopinionGetAccount_ReportSchema).describe(\"List of reports in the account\").nullable().optional(),\n number_forms: z.number().int().describe(\"Number of forms allowed\"),\n number_users: z.number().int().describe(\"Number of users allowed in the account\"),\n number_charts: z.number().int().describe(\"Number of charts available\"),\n number_reports: z.number().int().describe(\"Number of reports allowed\"),\n}).describe(\"Detailed account information model.\");\nexport const MopinionGetAccountOutput: z.ZodTypeAny = z.object({\n account: MopinionGetAccount_AccountInfoSchema.nullable(),\n}).describe(\"Response model for GetAccount action.\\nContains comprehensive account information including package details, limits, and associated reports.\");\n\nexport const mopinionGetAccount = action(\"MOPINION_GET_ACCOUNT\", {\n slug: \"mopinion-get-account\",\n name: \"Get Account\",\n description: \"Tool to retrieve the current authenticated account information. Use to verify authentication and get account details.\",\n input: MopinionGetAccountInput,\n output: MopinionGetAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC9L,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;CAClD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC7C,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACzE,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AS,2BAA2B;AACvE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,SAAS,qCAAqC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAE1J,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-account.d.ts
4
+ declare const MopinionGetAccountInput: z.ZodTypeAny;
5
+ declare const MopinionGetAccountOutput: z.ZodTypeAny;
6
+ declare const mopinionGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mopinionGetAccount };
9
+ //# sourceMappingURL=get-account.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAAuJ;AAAA,cAoClL,wBAAA,EAA0B,CAAA,CAAE,UAEkH;AAAA,cAE9I,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-account.d.ts
4
+ declare const MopinionGetAccountInput: z.ZodTypeAny;
5
+ declare const MopinionGetAccountOutput: z.ZodTypeAny;
6
+ declare const mopinionGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mopinionGetAccount };
9
+ //# sourceMappingURL=get-account.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAAuJ;AAAA,cAoClL,wBAAA,EAA0B,CAAA,CAAE,UAEkH;AAAA,cAE9I,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,50 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-account.ts
4
+ const MopinionGetAccountInput = z.object({}).describe("Request model for GetAccount action.\nNo parameters required - returns current authenticated account information.");
5
+ const MopinionGetAccount_MetaInfoSchema = z.object({
6
+ code: z.number().int().describe("HTTP status code"),
7
+ next: z.boolean().describe("Whether there is a next page"),
8
+ count: z.number().int().describe("Number of items in current response"),
9
+ total: z.number().int().describe("Total number of items available"),
10
+ message: z.string().describe("Status message"),
11
+ has_more: z.boolean().describe("Whether there are more results available"),
12
+ previous: z.boolean().describe("Whether there is a previous page")
13
+ }).describe("Metadata information for the response.");
14
+ const MopinionGetAccount_DataSetSchema = z.object({
15
+ id: z.number().int().describe("Unique identifier for the dataset"),
16
+ name: z.string().describe("Name of the dataset"),
17
+ report_id: z.number().int().describe("ID of the parent report"),
18
+ data_source: z.string().describe("Source type of the data (e.g., 'form')"),
19
+ description: z.string().describe("Description of the dataset")
20
+ }).describe("Model for a dataset within a report.");
21
+ const MopinionGetAccount_ReportSchema = z.object({
22
+ id: z.number().int().describe("Unique identifier for the report"),
23
+ name: z.string().describe("Name of the report"),
24
+ created: z.string().describe("Creation date of the report (YYYY-MM-DD)"),
25
+ dataSets: z.array(MopinionGetAccount_DataSetSchema).describe("List of datasets associated with this report").nullable().optional(),
26
+ language: z.string().describe("Language code (e.g., 'en_US')"),
27
+ description: z.string().describe("Description of the report")
28
+ }).describe("Model for a report in the account.");
29
+ const MopinionGetAccount_AccountInfoSchema = z.object({
30
+ name: z.string().describe("Account name"),
31
+ _meta: MopinionGetAccount_MetaInfoSchema.nullable(),
32
+ enddate: z.string().describe("End date of the current package (YYYY-MM-DD HH:MM:SS)"),
33
+ package: z.string().describe("Package/plan type (e.g., 'Trial', 'Pro')"),
34
+ reports: z.array(MopinionGetAccount_ReportSchema).describe("List of reports in the account").nullable().optional(),
35
+ number_forms: z.number().int().describe("Number of forms allowed"),
36
+ number_users: z.number().int().describe("Number of users allowed in the account"),
37
+ number_charts: z.number().int().describe("Number of charts available"),
38
+ number_reports: z.number().int().describe("Number of reports allowed")
39
+ }).describe("Detailed account information model.");
40
+ const mopinionGetAccount = action("MOPINION_GET_ACCOUNT", {
41
+ slug: "mopinion-get-account",
42
+ name: "Get Account",
43
+ description: "Tool to retrieve the current authenticated account information. Use to verify authentication and get account details.",
44
+ input: MopinionGetAccountInput,
45
+ output: z.object({ account: MopinionGetAccount_AccountInfoSchema.nullable() }).describe("Response model for GetAccount action.\nContains comprehensive account information including package details, limits, and associated reports.")
46
+ });
47
+ //#endregion
48
+ export { mopinionGetAccount };
49
+
50
+ //# sourceMappingURL=get-account.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-account.mjs","names":[],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetAccountInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GetAccount action.\\nNo parameters required - returns current authenticated account information.\");\nconst MopinionGetAccount_MetaInfoSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code\"),\n next: z.boolean().describe(\"Whether there is a next page\"),\n count: z.number().int().describe(\"Number of items in current response\"),\n total: z.number().int().describe(\"Total number of items available\"),\n message: z.string().describe(\"Status message\"),\n has_more: z.boolean().describe(\"Whether there are more results available\"),\n previous: z.boolean().describe(\"Whether there is a previous page\"),\n}).describe(\"Metadata information for the response.\");\nconst MopinionGetAccount_DataSetSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the dataset\"),\n name: z.string().describe(\"Name of the dataset\"),\n report_id: z.number().int().describe(\"ID of the parent report\"),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form')\"),\n description: z.string().describe(\"Description of the dataset\"),\n}).describe(\"Model for a dataset within a report.\");\nconst MopinionGetAccount_ReportSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the report\"),\n name: z.string().describe(\"Name of the report\"),\n created: z.string().describe(\"Creation date of the report (YYYY-MM-DD)\"),\n dataSets: z.array(MopinionGetAccount_DataSetSchema).describe(\"List of datasets associated with this report\").nullable().optional(),\n language: z.string().describe(\"Language code (e.g., 'en_US')\"),\n description: z.string().describe(\"Description of the report\"),\n}).describe(\"Model for a report in the account.\");\nconst MopinionGetAccount_AccountInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Account name\"),\n _meta: MopinionGetAccount_MetaInfoSchema.nullable(),\n enddate: z.string().describe(\"End date of the current package (YYYY-MM-DD HH:MM:SS)\"),\n package: z.string().describe(\"Package/plan type (e.g., 'Trial', 'Pro')\"),\n reports: z.array(MopinionGetAccount_ReportSchema).describe(\"List of reports in the account\").nullable().optional(),\n number_forms: z.number().int().describe(\"Number of forms allowed\"),\n number_users: z.number().int().describe(\"Number of users allowed in the account\"),\n number_charts: z.number().int().describe(\"Number of charts available\"),\n number_reports: z.number().int().describe(\"Number of reports allowed\"),\n}).describe(\"Detailed account information model.\");\nexport const MopinionGetAccountOutput: z.ZodTypeAny = z.object({\n account: MopinionGetAccount_AccountInfoSchema.nullable(),\n}).describe(\"Response model for GetAccount action.\\nContains comprehensive account information including package details, limits, and associated reports.\");\n\nexport const mopinionGetAccount = action(\"MOPINION_GET_ACCOUNT\", {\n slug: \"mopinion-get-account\",\n name: \"Get Account\",\n description: \"Tool to retrieve the current authenticated account information. Use to verify authentication and get account details.\",\n input: MopinionGetAccountInput,\n output: MopinionGetAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,CAAC,CAA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C7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC9D,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,uCAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,OAAO,kCAAkC,SAAS;CAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAChF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CACrE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;AACvE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAKjD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,SAAS,qCAAqC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,8IAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-dataset-by-id.ts
4
+ const MopinionGetDatasetByIdInput = zod.z.object({ dataset_id: zod.z.union([zod.z.number().int(), zod.z.string()]) }).describe("Request parameters for retrieving a dataset by ID.");
5
+ const MopinionGetDatasetById_MetaSchema = zod.z.object({
6
+ code: zod.z.number().int().describe("HTTP status code of the response."),
7
+ next: zod.z.boolean().describe("Whether next results exist."),
8
+ count: zod.z.number().int().describe("Number of items in the current response."),
9
+ total: zod.z.number().int().describe("Total number of items available."),
10
+ message: zod.z.string().describe("Status message (e.g., 'OK')."),
11
+ has_more: zod.z.boolean().describe("Whether there are more results available."),
12
+ previous: zod.z.boolean().describe("Whether previous results exist.")
13
+ }).describe("Metadata returned by the API.");
14
+ const MopinionGetDatasetById_DatasetSchema = zod.z.object({
15
+ id: zod.z.union([zod.z.number().int(), zod.z.string()]),
16
+ name: zod.z.string().describe("Name of the dataset (form)."),
17
+ report_id: zod.z.number().int().describe("ID of the associated report."),
18
+ data_source: zod.z.string().describe("Source type of the data (e.g., 'form', 'email', 'mobile')."),
19
+ description: zod.z.string().describe("Description of the dataset (may be empty).")
20
+ }).describe("Dataset resource returned by the API.");
21
+ const MopinionGetDatasetByIdOutput = zod.z.object({
22
+ _meta: MopinionGetDatasetById_MetaSchema.nullable(),
23
+ dataset: MopinionGetDatasetById_DatasetSchema.nullable()
24
+ }).describe("Response model for GetDatasetById action.");
25
+ const mopinionGetDatasetById = require_action.action("MOPINION_GET_DATASET_BY_ID", {
26
+ slug: "mopinion-get-dataset-by-id",
27
+ name: "Get Dataset by ID",
28
+ description: "Retrieve complete metadata for a specific Mopinion dataset (feedback form) by its ID. Returns dataset properties including name, associated report ID, data source type, and description. Use this action when you need detailed information about a specific dataset/form. To discover available dataset IDs, use the List Datasets action first. This is a read-only operation that does not modify any data.",
29
+ input: MopinionGetDatasetByIdInput,
30
+ output: MopinionGetDatasetByIdOutput
31
+ });
32
+ //#endregion
33
+ exports.mopinionGetDatasetById = mopinionGetDatasetById;
34
+
35
+ //# sourceMappingURL=get-dataset-by-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetDatasetByIdInput: z.ZodTypeAny = z.object({\n dataset_id: z.union([z.number().int(), z.string()]),\n}).describe(\"Request parameters for retrieving a dataset by ID.\");\nconst MopinionGetDatasetById_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code of the response.\"),\n next: z.boolean().describe(\"Whether next results exist.\"),\n count: z.number().int().describe(\"Number of items in the current response.\"),\n total: z.number().int().describe(\"Total number of items available.\"),\n message: z.string().describe(\"Status message (e.g., 'OK').\"),\n has_more: z.boolean().describe(\"Whether there are more results available.\"),\n previous: z.boolean().describe(\"Whether previous results exist.\"),\n}).describe(\"Metadata returned by the API.\");\nconst MopinionGetDatasetById_DatasetSchema: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]),\n name: z.string().describe(\"Name of the dataset (form).\"),\n report_id: z.number().int().describe(\"ID of the associated report.\"),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form', 'email', 'mobile').\"),\n description: z.string().describe(\"Description of the dataset (may be empty).\"),\n}).describe(\"Dataset resource returned by the API.\");\nexport const MopinionGetDatasetByIdOutput: z.ZodTypeAny = z.object({\n _meta: MopinionGetDatasetById_MetaSchema.nullable(),\n dataset: MopinionGetDatasetById_DatasetSchema.nullable(),\n}).describe(\"Response model for GetDatasetById action.\");\n\nexport const mopinionGetDatasetById = action(\"MOPINION_GET_DATASET_BY_ID\", {\n slug: \"mopinion-get-dataset-by-id\",\n name: \"Get Dataset by ID\",\n description: \"Retrieve complete metadata for a specific Mopinion dataset (feedback form) by its ID. Returns dataset properties including name, associated report ID, data source type, and description. Use this action when you need detailed information about a specific dataset/form. To discover available dataset IDs, use the List Datasets action first. This is a read-only operation that does not modify any data.\",\n input: MopinionGetDatasetByIdInput,\n output: MopinionGetDatasetByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,EACpD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,oCAAkD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
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-dataset-by-id.d.ts
4
+ declare const MopinionGetDatasetByIdInput: z.ZodTypeAny;
5
+ declare const MopinionGetDatasetByIdOutput: z.ZodTypeAny;
6
+ declare const mopinionGetDatasetById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mopinionGetDatasetById };
9
+ //# sourceMappingURL=get-dataset-by-id.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-by-id.d.cts","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEqB;AAAA,cAiBpD,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-dataset-by-id.d.ts
4
+ declare const MopinionGetDatasetByIdInput: z.ZodTypeAny;
5
+ declare const MopinionGetDatasetByIdOutput: z.ZodTypeAny;
6
+ declare const mopinionGetDatasetById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mopinionGetDatasetById };
9
+ //# sourceMappingURL=get-dataset-by-id.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-by-id.d.mts","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEqB;AAAA,cAiBpD,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-dataset-by-id.ts
4
+ const MopinionGetDatasetByIdInput = z.object({ dataset_id: z.union([z.number().int(), z.string()]) }).describe("Request parameters for retrieving a dataset by ID.");
5
+ const MopinionGetDatasetById_MetaSchema = z.object({
6
+ code: z.number().int().describe("HTTP status code of the response."),
7
+ next: z.boolean().describe("Whether next results exist."),
8
+ count: z.number().int().describe("Number of items in the current response."),
9
+ total: z.number().int().describe("Total number of items available."),
10
+ message: z.string().describe("Status message (e.g., 'OK')."),
11
+ has_more: z.boolean().describe("Whether there are more results available."),
12
+ previous: z.boolean().describe("Whether previous results exist.")
13
+ }).describe("Metadata returned by the API.");
14
+ const MopinionGetDatasetById_DatasetSchema = z.object({
15
+ id: z.union([z.number().int(), z.string()]),
16
+ name: z.string().describe("Name of the dataset (form)."),
17
+ report_id: z.number().int().describe("ID of the associated report."),
18
+ data_source: z.string().describe("Source type of the data (e.g., 'form', 'email', 'mobile')."),
19
+ description: z.string().describe("Description of the dataset (may be empty).")
20
+ }).describe("Dataset resource returned by the API.");
21
+ const mopinionGetDatasetById = action("MOPINION_GET_DATASET_BY_ID", {
22
+ slug: "mopinion-get-dataset-by-id",
23
+ name: "Get Dataset by ID",
24
+ description: "Retrieve complete metadata for a specific Mopinion dataset (feedback form) by its ID. Returns dataset properties including name, associated report ID, data source type, and description. Use this action when you need detailed information about a specific dataset/form. To discover available dataset IDs, use the List Datasets action first. This is a read-only operation that does not modify any data.",
25
+ input: MopinionGetDatasetByIdInput,
26
+ output: z.object({
27
+ _meta: MopinionGetDatasetById_MetaSchema.nullable(),
28
+ dataset: MopinionGetDatasetById_DatasetSchema.nullable()
29
+ }).describe("Response model for GetDatasetById action.")
30
+ });
31
+ //#endregion
32
+ export { mopinionGetDatasetById };
33
+
34
+ //# sourceMappingURL=get-dataset-by-id.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-by-id.mjs","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetDatasetByIdInput: z.ZodTypeAny = z.object({\n dataset_id: z.union([z.number().int(), z.string()]),\n}).describe(\"Request parameters for retrieving a dataset by ID.\");\nconst MopinionGetDatasetById_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code of the response.\"),\n next: z.boolean().describe(\"Whether next results exist.\"),\n count: z.number().int().describe(\"Number of items in the current response.\"),\n total: z.number().int().describe(\"Total number of items available.\"),\n message: z.string().describe(\"Status message (e.g., 'OK').\"),\n has_more: z.boolean().describe(\"Whether there are more results available.\"),\n previous: z.boolean().describe(\"Whether previous results exist.\"),\n}).describe(\"Metadata returned by the API.\");\nconst MopinionGetDatasetById_DatasetSchema: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]),\n name: z.string().describe(\"Name of the dataset (form).\"),\n report_id: z.number().int().describe(\"ID of the associated report.\"),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form', 'email', 'mobile').\"),\n description: z.string().describe(\"Description of the dataset (may be empty).\"),\n}).describe(\"Dataset resource returned by the API.\");\nexport const MopinionGetDatasetByIdOutput: z.ZodTypeAny = z.object({\n _meta: MopinionGetDatasetById_MetaSchema.nullable(),\n dataset: MopinionGetDatasetById_DatasetSchema.nullable(),\n}).describe(\"Response model for GetDatasetById action.\");\n\nexport const mopinionGetDatasetById = action(\"MOPINION_GET_DATASET_BY_ID\", {\n slug: \"mopinion-get-dataset-by-id\",\n name: \"Get Dataset by ID\",\n description: \"Retrieve complete metadata for a specific Mopinion dataset (feedback form) by its ID. Returns dataset properties including name, associated report ID, data source type, and description. Use this action when you need detailed information about a specific dataset/form. To discover available dataset IDs, use the List Datasets action first. This is a read-only operation that does not modify any data.\",\n input: MopinionGetDatasetByIdInput,\n output: MopinionGet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AC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,56 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-dataset-feedback-by-id.ts
4
+ const MopinionGetDatasetFeedbackByIdInput = zod.z.object({
5
+ dataset_id: zod.z.number().int().describe("Numeric identifier of the dataset (form) containing the feedback. Obtain this from List Datasets action."),
6
+ feedback_id: zod.z.number().int().describe("Numeric identifier of the specific feedback item to retrieve. Obtain this from Get Dataset Feedback action.")
7
+ }).describe("Request model for retrieving a single feedback item by its ID.");
8
+ const MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema = zod.z.object({
9
+ key: zod.z.string().describe("Field key identifier").nullable().optional(),
10
+ label: zod.z.string().describe("Field label").nullable().optional(),
11
+ value: zod.z.union([
12
+ zod.z.string(),
13
+ zod.z.boolean(),
14
+ zod.z.number(),
15
+ zod.z.number().int()
16
+ ]).nullable().optional()
17
+ }).describe("Individual field entry in the feedback item.");
18
+ const MopinionGetDatasetFeedbackById_FeedbackItemDataSchema = zod.z.object({
19
+ id: zod.z.number().int().describe("Feedback item ID").nullable().optional(),
20
+ tags: zod.z.array(zod.z.string()).describe("Associated tags").nullable().optional(),
21
+ uuid: zod.z.string().describe("UUID of the feedback").nullable().optional(),
22
+ active: zod.z.boolean().describe("Whether the feedback is active").nullable().optional(),
23
+ fields: zod.z.array(MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema).describe("Custom field entries").nullable().optional(),
24
+ created: zod.z.string().describe("Creation timestamp").nullable().optional(),
25
+ report_id: zod.z.number().int().describe("Report/project ID").nullable().optional(),
26
+ survey_id: zod.z.number().int().describe("Dataset/survey ID").nullable().optional(),
27
+ anonymised: zod.z.union([zod.z.number().int(), zod.z.boolean()]).nullable().optional(),
28
+ survey_name: zod.z.string().describe("Name of the survey/form").nullable().optional(),
29
+ project_name: zod.z.string().describe("Name of the project/report").nullable().optional(),
30
+ scores_object: zod.z.string().describe("JSON-encoded map of score field IDs to values").nullable().optional()
31
+ }).describe("Single feedback item data structure.");
32
+ const MopinionGetDatasetFeedbackById_MetaSchema = zod.z.object({
33
+ code: zod.z.number().int().describe("HTTP status code"),
34
+ next: zod.z.boolean().describe("Whether next page exists").nullable().optional(),
35
+ count: zod.z.number().int().describe("Number of items in current response").nullable().optional(),
36
+ total: zod.z.number().int().describe("Total number of items").nullable().optional(),
37
+ message: zod.z.string().describe("Status message"),
38
+ has_more: zod.z.boolean().describe("Whether more results are available").nullable().optional(),
39
+ previous: zod.z.boolean().describe("Whether previous page exists").nullable().optional(),
40
+ warnings: zod.z.array(zod.z.string()).describe("Warning messages if any").nullable().optional()
41
+ }).describe("Response metadata.");
42
+ const MopinionGetDatasetFeedbackByIdOutput = zod.z.object({
43
+ data: zod.z.array(MopinionGetDatasetFeedbackById_FeedbackItemDataSchema).describe("List containing the requested feedback item (or empty item if not found)"),
44
+ _meta: MopinionGetDatasetFeedbackById_MetaSchema.nullable()
45
+ }).describe("Response model for a single feedback item.\n\nContains structured feedback data and metadata from the API response.");
46
+ const mopinionGetDatasetFeedbackById = require_action.action("MOPINION_GET_DATASET_FEEDBACK_BY_ID", {
47
+ slug: "mopinion-get-dataset-feedback-by-id",
48
+ name: "Get Dataset Feedback By ID",
49
+ description: "Retrieves a single feedback item by its unique identifier from a specific dataset. Use this tool when you need detailed information about a specific feedback item. First obtain the dataset_id using List Datasets, then get feedback_id values using Get Dataset Feedback. **Important Notes:** - Returns a warning in metadata if the feedback item doesn't exist (with null field values) - Returns 404 error if the dataset_id itself is invalid or inaccessible - The response includes feedback fields, tags, scores, timestamps, and associated metadata",
50
+ input: MopinionGetDatasetFeedbackByIdInput,
51
+ output: MopinionGetDatasetFeedbackByIdOutput
52
+ });
53
+ //#endregion
54
+ exports.mopinionGetDatasetFeedbackById = mopinionGetDatasetFeedbackById;
55
+
56
+ //# sourceMappingURL=get-dataset-feedback-by-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-feedback-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset-feedback-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetDatasetFeedbackByIdInput: z.ZodTypeAny = z.object({\n dataset_id: z.number().int().describe(\"Numeric identifier of the dataset (form) containing the feedback. Obtain this from List Datasets action.\"),\n feedback_id: z.number().int().describe(\"Numeric identifier of the specific feedback item to retrieve. Obtain this from Get Dataset Feedback action.\"),\n}).describe(\"Request model for retrieving a single feedback item by its ID.\");\nconst MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Field key identifier\").nullable().optional(),\n label: z.string().describe(\"Field label\").nullable().optional(),\n value: z.union([z.string(), z.boolean(), z.number(), z.number().int()]).nullable().optional(),\n}).describe(\"Individual field entry in the feedback item.\");\nconst MopinionGetDatasetFeedbackById_FeedbackItemDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Feedback item ID\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Associated tags\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the feedback\").nullable().optional(),\n active: z.boolean().describe(\"Whether the feedback is active\").nullable().optional(),\n fields: z.array(MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema).describe(\"Custom field entries\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n report_id: z.number().int().describe(\"Report/project ID\").nullable().optional(),\n survey_id: z.number().int().describe(\"Dataset/survey ID\").nullable().optional(),\n anonymised: z.union([z.number().int(), z.boolean()]).nullable().optional(),\n survey_name: z.string().describe(\"Name of the survey/form\").nullable().optional(),\n project_name: z.string().describe(\"Name of the project/report\").nullable().optional(),\n scores_object: z.string().describe(\"JSON-encoded map of score field IDs to values\").nullable().optional(),\n}).describe(\"Single feedback item data structure.\");\nconst MopinionGetDatasetFeedbackById_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code\"),\n next: z.boolean().describe(\"Whether next page exists\").nullable().optional(),\n count: z.number().int().describe(\"Number of items in current response\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items\").nullable().optional(),\n message: z.string().describe(\"Status message\"),\n has_more: z.boolean().describe(\"Whether more results are available\").nullable().optional(),\n previous: z.boolean().describe(\"Whether previous page exists\").nullable().optional(),\n warnings: z.array(z.string()).describe(\"Warning messages if any\").nullable().optional(),\n}).describe(\"Response metadata.\");\nexport const MopinionGetDatasetFeedbackByIdOutput: z.ZodTypeAny = z.object({\n data: z.array(MopinionGetDatasetFeedbackById_FeedbackItemDataSchema).describe(\"List containing the requested feedback item (or empty item if not found)\"),\n _meta: MopinionGetDatasetFeedbackById_MetaSchema.nullable(),\n}).describe(\"Response model for a single feedback item.\\n\\nContains structured feedback data and metadata from the API response.\");\n\nexport const mopinionGetDatasetFeedbackById = action(\"MOPINION_GET_DATASET_FEEDBACK_BY_ID\", {\n slug: \"mopinion-get-dataset-feedback-by-id\",\n name: \"Get Dataset Feedback By ID\",\n description: \"Retrieves a single feedback item by its unique identifier from a specific dataset. Use this tool when you need detailed information about a specific feedback item. First obtain the dataset_id using List Datasets, then get feedback_id values using Get Dataset Feedback. **Important Notes:** - Returns a warning in metadata if the feedback item doesn't exist (with null field values) - Returns 404 error if the dataset_id itself is invalid or inaccessible - The response includes feedback fields, tags, scores, timestamps, and associated metadata\",\n input: MopinionGetDatasetFeedbackByIdInput,\n output: MopinionGetDatasetFeedbackByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G;CAChJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G;AACtJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,KAAKA,IAAAA,EA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C,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,oBAAoB;AAChC,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,0EAA0E;CACxJ,OAAO,0CAA0C,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,qHAAqH;AAEjI,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-dataset-feedback-by-id.d.ts
4
+ declare const MopinionGetDatasetFeedbackByIdInput: z.ZodTypeAny;
5
+ declare const MopinionGetDatasetFeedbackByIdOutput: z.ZodTypeAny;
6
+ declare const mopinionGetDatasetFeedbackById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mopinionGetDatasetFeedbackById };
9
+ //# sourceMappingURL=get-dataset-feedback-by-id.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-feedback-by-id.d.cts","names":[],"sources":["../../src/actions/get-dataset-feedback-by-id.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAGyB;AAAA,cA8BhE,oCAAA,EAAsC,CAAA,CAAE,UAG6E;AAAA,cAErH,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-dataset-feedback-by-id.d.ts
4
+ declare const MopinionGetDatasetFeedbackByIdInput: z.ZodTypeAny;
5
+ declare const MopinionGetDatasetFeedbackByIdOutput: z.ZodTypeAny;
6
+ declare const mopinionGetDatasetFeedbackById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mopinionGetDatasetFeedbackById };
9
+ //# sourceMappingURL=get-dataset-feedback-by-id.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-feedback-by-id.d.mts","names":[],"sources":["../../src/actions/get-dataset-feedback-by-id.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAGyB;AAAA,cA8BhE,oCAAA,EAAsC,CAAA,CAAE,UAG6E;AAAA,cAErH,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,55 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-dataset-feedback-by-id.ts
4
+ const MopinionGetDatasetFeedbackByIdInput = z.object({
5
+ dataset_id: z.number().int().describe("Numeric identifier of the dataset (form) containing the feedback. Obtain this from List Datasets action."),
6
+ feedback_id: z.number().int().describe("Numeric identifier of the specific feedback item to retrieve. Obtain this from Get Dataset Feedback action.")
7
+ }).describe("Request model for retrieving a single feedback item by its ID.");
8
+ const MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema = z.object({
9
+ key: z.string().describe("Field key identifier").nullable().optional(),
10
+ label: z.string().describe("Field label").nullable().optional(),
11
+ value: z.union([
12
+ z.string(),
13
+ z.boolean(),
14
+ z.number(),
15
+ z.number().int()
16
+ ]).nullable().optional()
17
+ }).describe("Individual field entry in the feedback item.");
18
+ const MopinionGetDatasetFeedbackById_FeedbackItemDataSchema = z.object({
19
+ id: z.number().int().describe("Feedback item ID").nullable().optional(),
20
+ tags: z.array(z.string()).describe("Associated tags").nullable().optional(),
21
+ uuid: z.string().describe("UUID of the feedback").nullable().optional(),
22
+ active: z.boolean().describe("Whether the feedback is active").nullable().optional(),
23
+ fields: z.array(MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema).describe("Custom field entries").nullable().optional(),
24
+ created: z.string().describe("Creation timestamp").nullable().optional(),
25
+ report_id: z.number().int().describe("Report/project ID").nullable().optional(),
26
+ survey_id: z.number().int().describe("Dataset/survey ID").nullable().optional(),
27
+ anonymised: z.union([z.number().int(), z.boolean()]).nullable().optional(),
28
+ survey_name: z.string().describe("Name of the survey/form").nullable().optional(),
29
+ project_name: z.string().describe("Name of the project/report").nullable().optional(),
30
+ scores_object: z.string().describe("JSON-encoded map of score field IDs to values").nullable().optional()
31
+ }).describe("Single feedback item data structure.");
32
+ const MopinionGetDatasetFeedbackById_MetaSchema = z.object({
33
+ code: z.number().int().describe("HTTP status code"),
34
+ next: z.boolean().describe("Whether next page exists").nullable().optional(),
35
+ count: z.number().int().describe("Number of items in current response").nullable().optional(),
36
+ total: z.number().int().describe("Total number of items").nullable().optional(),
37
+ message: z.string().describe("Status message"),
38
+ has_more: z.boolean().describe("Whether more results are available").nullable().optional(),
39
+ previous: z.boolean().describe("Whether previous page exists").nullable().optional(),
40
+ warnings: z.array(z.string()).describe("Warning messages if any").nullable().optional()
41
+ }).describe("Response metadata.");
42
+ const mopinionGetDatasetFeedbackById = action("MOPINION_GET_DATASET_FEEDBACK_BY_ID", {
43
+ slug: "mopinion-get-dataset-feedback-by-id",
44
+ name: "Get Dataset Feedback By ID",
45
+ description: "Retrieves a single feedback item by its unique identifier from a specific dataset. Use this tool when you need detailed information about a specific feedback item. First obtain the dataset_id using List Datasets, then get feedback_id values using Get Dataset Feedback. **Important Notes:** - Returns a warning in metadata if the feedback item doesn't exist (with null field values) - Returns 404 error if the dataset_id itself is invalid or inaccessible - The response includes feedback fields, tags, scores, timestamps, and associated metadata",
46
+ input: MopinionGetDatasetFeedbackByIdInput,
47
+ output: z.object({
48
+ data: z.array(MopinionGetDatasetFeedbackById_FeedbackItemDataSchema).describe("List containing the requested feedback item (or empty item if not found)"),
49
+ _meta: MopinionGetDatasetFeedbackById_MetaSchema.nullable()
50
+ }).describe("Response model for a single feedback item.\n\nContains structured feedback data and metadata from the API response.")
51
+ });
52
+ //#endregion
53
+ export { mopinionGetDatasetFeedbackById };
54
+
55
+ //# sourceMappingURL=get-dataset-feedback-by-id.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-feedback-by-id.mjs","names":[],"sources":["../../src/actions/get-dataset-feedback-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetDatasetFeedbackByIdInput: z.ZodTypeAny = z.object({\n dataset_id: z.number().int().describe(\"Numeric identifier of the dataset (form) containing the feedback. Obtain this from List Datasets action.\"),\n feedback_id: z.number().int().describe(\"Numeric identifier of the specific feedback item to retrieve. Obtain this from Get Dataset Feedback action.\"),\n}).describe(\"Request model for retrieving a single feedback item by its ID.\");\nconst MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Field key identifier\").nullable().optional(),\n label: z.string().describe(\"Field label\").nullable().optional(),\n value: z.union([z.string(), z.boolean(), z.number(), z.number().int()]).nullable().optional(),\n}).describe(\"Individual field entry in the feedback item.\");\nconst MopinionGetDatasetFeedbackById_FeedbackItemDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Feedback item ID\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Associated tags\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the feedback\").nullable().optional(),\n active: z.boolean().describe(\"Whether the feedback is active\").nullable().optional(),\n fields: z.array(MopinionGetDatasetFeedbackById_FeedbackFieldEntrySchema).describe(\"Custom field entries\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n report_id: z.number().int().describe(\"Report/project ID\").nullable().optional(),\n survey_id: z.number().int().describe(\"Dataset/survey ID\").nullable().optional(),\n anonymised: z.union([z.number().int(), z.boolean()]).nullable().optional(),\n survey_name: z.string().describe(\"Name of the survey/form\").nullable().optional(),\n project_name: z.string().describe(\"Name of the project/report\").nullable().optional(),\n scores_object: z.string().describe(\"JSON-encoded map of score field IDs to values\").nullable().optional(),\n}).describe(\"Single feedback item data structure.\");\nconst MopinionGetDatasetFeedbackById_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code\"),\n next: z.boolean().describe(\"Whether next page exists\").nullable().optional(),\n count: z.number().int().describe(\"Number of items in current response\").nullable().optional(),\n total: z.number().int().describe(\"Total number of items\").nullable().optional(),\n message: z.string().describe(\"Status message\"),\n has_more: z.boolean().describe(\"Whether more results are available\").nullable().optional(),\n previous: z.boolean().describe(\"Whether previous page exists\").nullable().optional(),\n warnings: z.array(z.string()).describe(\"Warning messages if any\").nullable().optional(),\n}).describe(\"Response metadata.\");\nexport const MopinionGetDatasetFeedbackByIdOutput: z.ZodTypeAny = z.object({\n data: z.array(MopinionGetDatasetFeedbackById_FeedbackItemDataSchema).describe(\"List containing the requested feedback item (or empty item if not found)\"),\n _meta: MopinionGetDatasetFeedbackById_MetaSchema.nullable(),\n}).describe(\"Response model for a single feedback item.\\n\\nContains structured feedback data and metadata from the API response.\");\n\nexport const mopinionGetDatasetFeedbackById = action(\"MOPINION_GET_DATASET_FEEDBACK_BY_ID\", {\n slug: \"mopinion-get-dataset-feedback-by-id\",\n name: \"Get Dataset Feedback By ID\",\n description: \"Retrieves a single feedback item by its unique identifier from a specific dataset. Use this tool when you need detailed information about a specific feedback item. First obtain the dataset_id using List Datasets, then get feedback_id values using Get Dataset Feedback. **Important Notes:** - Returns a warning in metadata if the feedback item doesn't exist (with null field values) - Returns 404 error if the dataset_id itself is invalid or inaccessible - The response includes feedback fields, tags, scores, timestamps, and associated metadata\",\n input: MopinionGetDatasetFeedbackByIdInput,\n output: MopinionGetDatasetFeedb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AAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,oBAAoB;AAMhC,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgE,EAAE,OAAO;EACzE,MAAM,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,0EAA0E;EACxJ,OAAO,0CAA0C,SAAS;CAC5D,CAAC,CAAC,CAAC,SAAS,qHAOF;AACV,CAAC"}
@@ -0,0 +1,60 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-dataset-feedback.ts
4
+ const MopinionGetDatasetFeedbackInput = zod.z.object({
5
+ page: zod.z.number().int().describe("Page number to return").optional(),
6
+ limit: zod.z.number().int().describe("Maximum number of results per page (max 100)").optional(),
7
+ filters: zod.z.object({}).describe("Field-level filters as a map of field_key to filter value. Serialized as filter[{field_key}]=value in the query string").optional(),
8
+ dataset_id: zod.z.number().int().describe("Identifier of the dataset (form) to retrieve feedback for")
9
+ }).describe("Request model for retrieving feedback items of a specific dataset.");
10
+ const MopinionGetDatasetFeedback_FeedbackFieldEntrySchema = zod.z.object({
11
+ key: zod.z.string().describe("Field key identifier"),
12
+ label: zod.z.string().describe("Field label"),
13
+ value: zod.z.union([
14
+ zod.z.string(),
15
+ zod.z.boolean(),
16
+ zod.z.number(),
17
+ zod.z.number().int()
18
+ ])
19
+ });
20
+ const MopinionGetDatasetFeedback_FeedbackFieldsSchema = zod.z.object({
21
+ _data: zod.z.array(MopinionGetDatasetFeedback_FeedbackFieldEntrySchema).describe("Collected field entries"),
22
+ _type: zod.z.string().describe("Denotes that the fields container is a list")
23
+ });
24
+ const MopinionGetDatasetFeedback_FeedbackItemSchema = zod.z.object({
25
+ id: zod.z.number().int().describe("Feedback item ID"),
26
+ uuid: zod.z.string().describe("UUID of the feedback when available").nullable().optional(),
27
+ active: zod.z.boolean().describe("Whether the feedback item is active"),
28
+ fields: MopinionGetDatasetFeedback_FeedbackFieldsSchema.nullable(),
29
+ created: zod.z.string().describe("Creation timestamp of the feedback item"),
30
+ survey_id: zod.z.number().int().describe("Form (survey) ID"),
31
+ anonymised: zod.z.union([zod.z.number().int(), zod.z.boolean()]),
32
+ project_id: zod.z.number().int().describe("Report/project ID the item belongs to"),
33
+ survey_name: zod.z.string().describe("Name of the survey/form"),
34
+ project_name: zod.z.string().describe("Name of the project/report"),
35
+ scores_object: zod.z.string().describe("JSON-encoded map of score field IDs to values")
36
+ });
37
+ const MopinionGetDatasetFeedback_MetaSchema = zod.z.object({
38
+ code: zod.z.number().int().describe("HTTP status code returned by the API"),
39
+ next: zod.z.union([zod.z.boolean(), zod.z.string()]).nullable().optional(),
40
+ count: zod.z.number().int().describe("Number of items returned in current page").nullable().optional(),
41
+ total: zod.z.number().int().describe("Total number of feedback items available").nullable().optional(),
42
+ message: zod.z.string().describe("Status message from the API").nullable().optional(),
43
+ has_more: zod.z.boolean().describe("Whether more pages are available after the current page").nullable().optional(),
44
+ previous: zod.z.union([zod.z.boolean(), zod.z.string()]).nullable().optional()
45
+ });
46
+ const MopinionGetDatasetFeedbackOutput = zod.z.object({
47
+ data: zod.z.array(MopinionGetDatasetFeedback_FeedbackItemSchema).describe("Paginated list of feedback items"),
48
+ _meta: MopinionGetDatasetFeedback_MetaSchema.nullable()
49
+ });
50
+ const mopinionGetDatasetFeedback = require_action.action("MOPINION_GET_DATASET_FEEDBACK", {
51
+ slug: "mopinion-get-dataset-feedback",
52
+ name: "Get Dataset Feedback",
53
+ description: "Retrieve feedback items (survey responses) for a specific dataset/form with optional pagination and filtering. Use this action to fetch multiple feedback entries from a dataset. Each feedback item contains the survey responses including custom fields, scores, metadata, and timestamps. Supports pagination for large result sets and filtering by field values. For retrieving a single feedback item by ID, use GET_DATASET_FEEDBACK_BY_ID instead.",
54
+ input: MopinionGetDatasetFeedbackInput,
55
+ output: MopinionGetDatasetFeedbackOutput
56
+ });
57
+ //#endregion
58
+ exports.mopinionGetDatasetFeedback = mopinionGetDatasetFeedback;
59
+
60
+ //# sourceMappingURL=get-dataset-feedback.cjs.map