@keystrokehq/mopinion 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-account.cjs +24 -24
- package/dist/actions/get-account.cjs.map +1 -1
- package/dist/actions/get-account.d.cts +36 -3
- package/dist/actions/get-account.d.cts.map +1 -1
- package/dist/actions/get-account.d.mts +36 -3
- package/dist/actions/get-account.d.mts.map +1 -1
- package/dist/actions/get-account.mjs +24 -24
- package/dist/actions/get-account.mjs.map +1 -1
- package/dist/actions/get-dataset-by-id.cjs +11 -11
- package/dist/actions/get-dataset-by-id.cjs.map +1 -1
- package/dist/actions/get-dataset-by-id.d.cts +24 -3
- package/dist/actions/get-dataset-by-id.d.cts.map +1 -1
- package/dist/actions/get-dataset-by-id.d.mts +24 -3
- package/dist/actions/get-dataset-by-id.d.mts.map +1 -1
- package/dist/actions/get-dataset-by-id.mjs +11 -11
- package/dist/actions/get-dataset-by-id.mjs.map +1 -1
- package/dist/actions/get-dataset-feedback-by-id.cjs +2 -2
- package/dist/actions/get-dataset-feedback-by-id.cjs.map +1 -1
- package/dist/actions/get-dataset-feedback-by-id.d.cts +38 -3
- package/dist/actions/get-dataset-feedback-by-id.d.cts.map +1 -1
- package/dist/actions/get-dataset-feedback-by-id.d.mts +38 -3
- package/dist/actions/get-dataset-feedback-by-id.d.mts.map +1 -1
- package/dist/actions/get-dataset-feedback-by-id.mjs +2 -2
- package/dist/actions/get-dataset-feedback-by-id.mjs.map +1 -1
- package/dist/actions/get-dataset-feedback.cjs +12 -12
- package/dist/actions/get-dataset-feedback.cjs.map +1 -1
- package/dist/actions/get-dataset-feedback.d.cts +43 -3
- package/dist/actions/get-dataset-feedback.d.cts.map +1 -1
- package/dist/actions/get-dataset-feedback.d.mts +43 -3
- package/dist/actions/get-dataset-feedback.d.mts.map +1 -1
- package/dist/actions/get-dataset-feedback.mjs +12 -12
- package/dist/actions/get-dataset-feedback.mjs.map +1 -1
- package/dist/actions/get-dataset-fields.cjs.map +1 -1
- package/dist/actions/get-dataset-fields.d.cts +9 -3
- package/dist/actions/get-dataset-fields.d.cts.map +1 -1
- package/dist/actions/get-dataset-fields.d.mts +9 -3
- package/dist/actions/get-dataset-fields.d.mts.map +1 -1
- package/dist/actions/get-dataset-fields.mjs.map +1 -1
- package/dist/actions/get-deployment-by-id.cjs.map +1 -1
- package/dist/actions/get-deployment-by-id.d.cts +9 -3
- package/dist/actions/get-deployment-by-id.d.cts.map +1 -1
- package/dist/actions/get-deployment-by-id.d.mts +9 -3
- package/dist/actions/get-deployment-by-id.d.mts.map +1 -1
- package/dist/actions/get-deployment-by-id.mjs.map +1 -1
- package/dist/actions/get-deployments.cjs +3 -3
- package/dist/actions/get-deployments.cjs.map +1 -1
- package/dist/actions/get-deployments.d.cts +17 -3
- package/dist/actions/get-deployments.d.cts.map +1 -1
- package/dist/actions/get-deployments.d.mts +17 -3
- package/dist/actions/get-deployments.d.mts.map +1 -1
- package/dist/actions/get-deployments.mjs +3 -3
- package/dist/actions/get-deployments.mjs.map +1 -1
- package/dist/actions/get-report-by-id.cjs +6 -6
- package/dist/actions/get-report-by-id.cjs.map +1 -1
- package/dist/actions/get-report-by-id.d.cts +29 -3
- package/dist/actions/get-report-by-id.d.cts.map +1 -1
- package/dist/actions/get-report-by-id.d.mts +29 -3
- package/dist/actions/get-report-by-id.d.mts.map +1 -1
- package/dist/actions/get-report-by-id.mjs +6 -6
- package/dist/actions/get-report-by-id.mjs.map +1 -1
- package/dist/actions/get-report-feedback.cjs +7 -7
- package/dist/actions/get-report-feedback.cjs.map +1 -1
- package/dist/actions/get-report-feedback.d.cts +30 -3
- package/dist/actions/get-report-feedback.d.cts.map +1 -1
- package/dist/actions/get-report-feedback.d.mts +30 -3
- package/dist/actions/get-report-feedback.d.mts.map +1 -1
- package/dist/actions/get-report-feedback.mjs +7 -7
- package/dist/actions/get-report-feedback.mjs.map +1 -1
- package/dist/actions/get-report-fields.cjs +6 -6
- package/dist/actions/get-report-fields.cjs.map +1 -1
- package/dist/actions/get-report-fields.d.cts +18 -3
- package/dist/actions/get-report-fields.d.cts.map +1 -1
- package/dist/actions/get-report-fields.d.mts +18 -3
- package/dist/actions/get-report-fields.d.mts.map +1 -1
- package/dist/actions/get-report-fields.mjs +6 -6
- package/dist/actions/get-report-fields.mjs.map +1 -1
- package/dist/actions/get-root.cjs +3 -3
- package/dist/actions/get-root.cjs.map +1 -1
- package/dist/actions/get-root.d.cts +15 -3
- package/dist/actions/get-root.d.cts.map +1 -1
- package/dist/actions/get-root.d.mts +15 -3
- package/dist/actions/get-root.d.mts.map +1 -1
- package/dist/actions/get-root.mjs +3 -3
- package/dist/actions/get-root.mjs.map +1 -1
- package/dist/catalog.cjs +20 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +19 -0
- package/dist/catalog.d.mts +19 -0
- package/dist/catalog.mjs +20 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
|
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 { 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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
|
|
@@ -3,39 +3,39 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-account.ts
|
|
4
4
|
const MopinionGetAccountInput = zod.z.object({}).describe("Request model for GetAccount action.\nNo parameters required - returns current authenticated account information.");
|
|
5
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")
|
|
6
|
+
code: zod.z.number().int().describe("HTTP status code").nullable(),
|
|
7
|
+
next: zod.z.boolean().describe("Whether there is a next page").nullable(),
|
|
8
|
+
count: zod.z.number().int().describe("Number of items in current response").nullable(),
|
|
9
|
+
total: zod.z.number().int().describe("Total number of items available").nullable(),
|
|
10
|
+
message: zod.z.string().describe("Status message").nullable(),
|
|
11
|
+
has_more: zod.z.boolean().describe("Whether there are more results available").nullable(),
|
|
12
|
+
previous: zod.z.boolean().describe("Whether there is a previous page").nullable()
|
|
13
13
|
}).describe("Metadata information for the response.");
|
|
14
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")
|
|
15
|
+
id: zod.z.number().int().describe("Unique identifier for the dataset").nullable(),
|
|
16
|
+
name: zod.z.string().describe("Name of the dataset").nullable(),
|
|
17
|
+
report_id: zod.z.number().int().describe("ID of the parent report").nullable(),
|
|
18
|
+
data_source: zod.z.string().describe("Source type of the data (e.g., 'form')").nullable(),
|
|
19
|
+
description: zod.z.string().describe("Description of the dataset").nullable()
|
|
20
20
|
}).describe("Model for a dataset within a report.");
|
|
21
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)"),
|
|
22
|
+
id: zod.z.number().int().describe("Unique identifier for the report").nullable(),
|
|
23
|
+
name: zod.z.string().describe("Name of the report").nullable(),
|
|
24
|
+
created: zod.z.string().describe("Creation date of the report (YYYY-MM-DD)").nullable(),
|
|
25
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")
|
|
26
|
+
language: zod.z.string().describe("Language code (e.g., 'en_US')").nullable(),
|
|
27
|
+
description: zod.z.string().describe("Description of the report").nullable()
|
|
28
28
|
}).describe("Model for a report in the account.");
|
|
29
29
|
const MopinionGetAccount_AccountInfoSchema = zod.z.object({
|
|
30
|
-
name: zod.z.string().describe("Account name"),
|
|
30
|
+
name: zod.z.string().describe("Account name").nullable(),
|
|
31
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')"),
|
|
32
|
+
enddate: zod.z.string().describe("End date of the current package (YYYY-MM-DD HH:MM:SS)").nullable(),
|
|
33
|
+
package: zod.z.string().describe("Package/plan type (e.g., 'Trial', 'Pro')").nullable(),
|
|
34
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")
|
|
35
|
+
number_forms: zod.z.number().int().describe("Number of forms allowed").nullable(),
|
|
36
|
+
number_users: zod.z.number().int().describe("Number of users allowed in the account").nullable(),
|
|
37
|
+
number_charts: zod.z.number().int().describe("Number of charts available").nullable(),
|
|
38
|
+
number_reports: zod.z.number().int().describe("Number of reports allowed").nullable()
|
|
39
39
|
}).describe("Detailed account information model.");
|
|
40
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
41
|
const mopinionGetAccount = require_action.action("MOPINION_GET_ACCOUNT", {
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for GetAccount action.\\nNo parameters required - returns current authenticated account information.\");\nconst MopinionGetAccount_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n next: z.boolean().describe(\"Whether there is a next page\").nullable(),\n count: z.number().int().describe(\"Number of items in current response\").nullable(),\n total: z.number().int().describe(\"Total number of items available\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n has_more: z.boolean().describe(\"Whether there are more results available\").nullable(),\n previous: z.boolean().describe(\"Whether there is a previous page\").nullable(),\n}).describe(\"Metadata information for the response.\");\nconst MopinionGetAccount_DataSetSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the dataset\").nullable(),\n name: z.string().describe(\"Name of the dataset\").nullable(),\n report_id: z.number().int().describe(\"ID of the parent report\").nullable(),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form')\").nullable(),\n description: z.string().describe(\"Description of the dataset\").nullable(),\n}).describe(\"Model for a dataset within a report.\");\nconst MopinionGetAccount_ReportSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the report\").nullable(),\n name: z.string().describe(\"Name of the report\").nullable(),\n created: z.string().describe(\"Creation date of the report (YYYY-MM-DD)\").nullable(),\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')\").nullable(),\n description: z.string().describe(\"Description of the report\").nullable(),\n}).describe(\"Model for a report in the account.\");\nconst MopinionGetAccount_AccountInfoSchema = z.object({\n name: z.string().describe(\"Account name\").nullable(),\n _meta: MopinionGetAccount_MetaInfoSchema.nullable(),\n enddate: z.string().describe(\"End date of the current package (YYYY-MM-DD HH:MM:SS)\").nullable(),\n package: z.string().describe(\"Package/plan type (e.g., 'Trial', 'Pro')\").nullable(),\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\").nullable(),\n number_users: z.number().int().describe(\"Number of users allowed in the account\").nullable(),\n number_charts: z.number().int().describe(\"Number of charts available\").nullable(),\n number_reports: z.number().int().describe(\"Number of reports allowed\").nullable(),\n}).describe(\"Detailed account information model.\");\nexport const MopinionGetAccountOutput = 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,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAChL,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAA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AAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,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"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account.d.ts
|
|
4
|
-
declare const MopinionGetAccountInput: z.
|
|
5
|
-
declare const MopinionGetAccountOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetAccountInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const MopinionGetAccountOutput: z.ZodObject<{
|
|
6
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
_meta: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
next: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
message: z.ZodNullable<z.ZodString>;
|
|
14
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
previous: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
enddate: z.ZodNullable<z.ZodString>;
|
|
18
|
+
package: z.ZodNullable<z.ZodString>;
|
|
19
|
+
reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
created: z.ZodNullable<z.ZodString>;
|
|
23
|
+
dataSets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
name: z.ZodNullable<z.ZodString>;
|
|
26
|
+
report_id: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
data_source: z.ZodNullable<z.ZodString>;
|
|
28
|
+
description: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>>;
|
|
30
|
+
language: z.ZodNullable<z.ZodString>;
|
|
31
|
+
description: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>>>;
|
|
33
|
+
number_forms: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
number_users: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
number_charts: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
number_reports: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const mopinionGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { mopinionGetAccount };
|
|
9
42
|
//# sourceMappingURL=get-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account.d.ts
|
|
4
|
-
declare const MopinionGetAccountInput: z.
|
|
5
|
-
declare const MopinionGetAccountOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetAccountInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const MopinionGetAccountOutput: z.ZodObject<{
|
|
6
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
_meta: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
next: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
message: z.ZodNullable<z.ZodString>;
|
|
14
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
previous: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
enddate: z.ZodNullable<z.ZodString>;
|
|
18
|
+
package: z.ZodNullable<z.ZodString>;
|
|
19
|
+
reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
created: z.ZodNullable<z.ZodString>;
|
|
23
|
+
dataSets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
name: z.ZodNullable<z.ZodString>;
|
|
26
|
+
report_id: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
data_source: z.ZodNullable<z.ZodString>;
|
|
28
|
+
description: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>>;
|
|
30
|
+
language: z.ZodNullable<z.ZodString>;
|
|
31
|
+
description: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>>>;
|
|
33
|
+
number_forms: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
number_users: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
number_charts: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
number_reports: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const mopinionGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { mopinionGetAccount };
|
|
9
42
|
//# sourceMappingURL=get-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,39 +3,39 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-account.ts
|
|
4
4
|
const MopinionGetAccountInput = z.object({}).describe("Request model for GetAccount action.\nNo parameters required - returns current authenticated account information.");
|
|
5
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")
|
|
6
|
+
code: z.number().int().describe("HTTP status code").nullable(),
|
|
7
|
+
next: z.boolean().describe("Whether there is a next page").nullable(),
|
|
8
|
+
count: z.number().int().describe("Number of items in current response").nullable(),
|
|
9
|
+
total: z.number().int().describe("Total number of items available").nullable(),
|
|
10
|
+
message: z.string().describe("Status message").nullable(),
|
|
11
|
+
has_more: z.boolean().describe("Whether there are more results available").nullable(),
|
|
12
|
+
previous: z.boolean().describe("Whether there is a previous page").nullable()
|
|
13
13
|
}).describe("Metadata information for the response.");
|
|
14
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")
|
|
15
|
+
id: z.number().int().describe("Unique identifier for the dataset").nullable(),
|
|
16
|
+
name: z.string().describe("Name of the dataset").nullable(),
|
|
17
|
+
report_id: z.number().int().describe("ID of the parent report").nullable(),
|
|
18
|
+
data_source: z.string().describe("Source type of the data (e.g., 'form')").nullable(),
|
|
19
|
+
description: z.string().describe("Description of the dataset").nullable()
|
|
20
20
|
}).describe("Model for a dataset within a report.");
|
|
21
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)"),
|
|
22
|
+
id: z.number().int().describe("Unique identifier for the report").nullable(),
|
|
23
|
+
name: z.string().describe("Name of the report").nullable(),
|
|
24
|
+
created: z.string().describe("Creation date of the report (YYYY-MM-DD)").nullable(),
|
|
25
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")
|
|
26
|
+
language: z.string().describe("Language code (e.g., 'en_US')").nullable(),
|
|
27
|
+
description: z.string().describe("Description of the report").nullable()
|
|
28
28
|
}).describe("Model for a report in the account.");
|
|
29
29
|
const MopinionGetAccount_AccountInfoSchema = z.object({
|
|
30
|
-
name: z.string().describe("Account name"),
|
|
30
|
+
name: z.string().describe("Account name").nullable(),
|
|
31
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')"),
|
|
32
|
+
enddate: z.string().describe("End date of the current package (YYYY-MM-DD HH:MM:SS)").nullable(),
|
|
33
|
+
package: z.string().describe("Package/plan type (e.g., 'Trial', 'Pro')").nullable(),
|
|
34
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")
|
|
35
|
+
number_forms: z.number().int().describe("Number of forms allowed").nullable(),
|
|
36
|
+
number_users: z.number().int().describe("Number of users allowed in the account").nullable(),
|
|
37
|
+
number_charts: z.number().int().describe("Number of charts available").nullable(),
|
|
38
|
+
number_reports: z.number().int().describe("Number of reports allowed").nullable()
|
|
39
39
|
}).describe("Detailed account information model.");
|
|
40
40
|
const mopinionGetAccount = action("MOPINION_GET_ACCOUNT", {
|
|
41
41
|
slug: "mopinion-get-account",
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for GetAccount action.\\nNo parameters required - returns current authenticated account information.\");\nconst MopinionGetAccount_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n next: z.boolean().describe(\"Whether there is a next page\").nullable(),\n count: z.number().int().describe(\"Number of items in current response\").nullable(),\n total: z.number().int().describe(\"Total number of items available\").nullable(),\n message: z.string().describe(\"Status message\").nullable(),\n has_more: z.boolean().describe(\"Whether there are more results available\").nullable(),\n previous: z.boolean().describe(\"Whether there is a previous page\").nullable(),\n}).describe(\"Metadata information for the response.\");\nconst MopinionGetAccount_DataSetSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the dataset\").nullable(),\n name: z.string().describe(\"Name of the dataset\").nullable(),\n report_id: z.number().int().describe(\"ID of the parent report\").nullable(),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form')\").nullable(),\n description: z.string().describe(\"Description of the dataset\").nullable(),\n}).describe(\"Model for a dataset within a report.\");\nconst MopinionGetAccount_ReportSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the report\").nullable(),\n name: z.string().describe(\"Name of the report\").nullable(),\n created: z.string().describe(\"Creation date of the report (YYYY-MM-DD)\").nullable(),\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')\").nullable(),\n description: z.string().describe(\"Description of the report\").nullable(),\n}).describe(\"Model for a report in the account.\");\nconst MopinionGetAccount_AccountInfoSchema = z.object({\n name: z.string().describe(\"Account name\").nullable(),\n _meta: MopinionGetAccount_MetaInfoSchema.nullable(),\n enddate: z.string().describe(\"End date of the current package (YYYY-MM-DD HH:MM:SS)\").nullable(),\n package: z.string().describe(\"Package/plan type (e.g., 'Trial', 'Pro')\").nullable(),\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\").nullable(),\n number_users: z.number().int().describe(\"Number of users allowed in the account\").nullable(),\n number_charts: z.number().int().describe(\"Number of charts available\").nullable(),\n number_reports: z.number().int().describe(\"Number of reports allowed\").nullable(),\n}).describe(\"Detailed account information model.\");\nexport const MopinionGetAccountOutput = 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,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAChL,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAA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= require("zod");
|
|
|
3
3
|
//#region src/actions/get-dataset-by-id.ts
|
|
4
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
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.")
|
|
6
|
+
code: zod.z.number().int().describe("HTTP status code of the response.").nullable(),
|
|
7
|
+
next: zod.z.boolean().describe("Whether next results exist.").nullable(),
|
|
8
|
+
count: zod.z.number().int().describe("Number of items in the current response.").nullable(),
|
|
9
|
+
total: zod.z.number().int().describe("Total number of items available.").nullable(),
|
|
10
|
+
message: zod.z.string().describe("Status message (e.g., 'OK').").nullable(),
|
|
11
|
+
has_more: zod.z.boolean().describe("Whether there are more results available.").nullable(),
|
|
12
|
+
previous: zod.z.boolean().describe("Whether previous results exist.").nullable()
|
|
13
13
|
}).describe("Metadata returned by the API.");
|
|
14
14
|
const MopinionGetDatasetById_DatasetSchema = zod.z.object({
|
|
15
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).")
|
|
16
|
+
name: zod.z.string().describe("Name of the dataset (form).").nullable(),
|
|
17
|
+
report_id: zod.z.number().int().describe("ID of the associated report.").nullable(),
|
|
18
|
+
data_source: zod.z.string().describe("Source type of the data (e.g., 'form', 'email', 'mobile').").nullable(),
|
|
19
|
+
description: zod.z.string().describe("Description of the dataset (may be empty).").nullable()
|
|
20
20
|
}).describe("Dataset resource returned by the API.");
|
|
21
21
|
const MopinionGetDatasetByIdOutput = zod.z.object({
|
|
22
22
|
_meta: MopinionGetDatasetById_MetaSchema.nullable(),
|
|
@@ -1 +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
|
|
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.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.object({\n code: z.number().int().describe(\"HTTP status code of the response.\").nullable(),\n next: z.boolean().describe(\"Whether next results exist.\").nullable(),\n count: z.number().int().describe(\"Number of items in the current response.\").nullable(),\n total: z.number().int().describe(\"Total number of items available.\").nullable(),\n message: z.string().describe(\"Status message (e.g., 'OK').\").nullable(),\n has_more: z.boolean().describe(\"Whether there are more results available.\").nullable(),\n previous: z.boolean().describe(\"Whether previous results exist.\").nullable(),\n}).describe(\"Metadata returned by the API.\");\nconst MopinionGetDatasetById_DatasetSchema = z.object({\n id: z.union([z.number().int(), z.string()]),\n name: z.string().describe(\"Name of the dataset (form).\").nullable(),\n report_id: z.number().int().describe(\"ID of the associated report.\").nullable(),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form', 'email', 'mobile').\").nullable(),\n description: z.string().describe(\"Description of the dataset (may be empty).\").nullable(),\n}).describe(\"Dataset resource returned by the API.\");\nexport const MopinionGetDatasetByIdOutput = 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,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAO,kCAAkC,SAAS;CAClD,SAAS,qCAAqC,SAAS;AACzD,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-dataset-by-id.d.ts
|
|
4
|
-
declare const MopinionGetDatasetByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetDatasetByIdInput: z.ZodObject<{
|
|
5
|
+
dataset_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MopinionGetDatasetByIdOutput: z.ZodObject<{
|
|
8
|
+
_meta: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
next: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
message: z.ZodNullable<z.ZodString>;
|
|
14
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
previous: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
dataset: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
report_id: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
data_source: z.ZodNullable<z.ZodString>;
|
|
22
|
+
description: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const mopinionGetDatasetById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
dataset_id: string | number;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { mopinionGetDatasetById };
|
|
9
30
|
//# sourceMappingURL=get-dataset-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset-by-id.d.cts","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-dataset-by-id.d.cts","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-dataset-by-id.d.ts
|
|
4
|
-
declare const MopinionGetDatasetByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetDatasetByIdInput: z.ZodObject<{
|
|
5
|
+
dataset_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MopinionGetDatasetByIdOutput: z.ZodObject<{
|
|
8
|
+
_meta: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
next: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
message: z.ZodNullable<z.ZodString>;
|
|
14
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
previous: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
dataset: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
report_id: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
data_source: z.ZodNullable<z.ZodString>;
|
|
22
|
+
description: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const mopinionGetDatasetById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
dataset_id: string | number;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { mopinionGetDatasetById };
|
|
9
30
|
//# sourceMappingURL=get-dataset-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset-by-id.d.mts","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-dataset-by-id.d.mts","names":[],"sources":["../../src/actions/get-dataset-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,20 +3,20 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-dataset-by-id.ts
|
|
4
4
|
const MopinionGetDatasetByIdInput = z.object({ dataset_id: z.union([z.number().int(), z.string()]) }).describe("Request parameters for retrieving a dataset by ID.");
|
|
5
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.")
|
|
6
|
+
code: z.number().int().describe("HTTP status code of the response.").nullable(),
|
|
7
|
+
next: z.boolean().describe("Whether next results exist.").nullable(),
|
|
8
|
+
count: z.number().int().describe("Number of items in the current response.").nullable(),
|
|
9
|
+
total: z.number().int().describe("Total number of items available.").nullable(),
|
|
10
|
+
message: z.string().describe("Status message (e.g., 'OK').").nullable(),
|
|
11
|
+
has_more: z.boolean().describe("Whether there are more results available.").nullable(),
|
|
12
|
+
previous: z.boolean().describe("Whether previous results exist.").nullable()
|
|
13
13
|
}).describe("Metadata returned by the API.");
|
|
14
14
|
const MopinionGetDatasetById_DatasetSchema = z.object({
|
|
15
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).")
|
|
16
|
+
name: z.string().describe("Name of the dataset (form).").nullable(),
|
|
17
|
+
report_id: z.number().int().describe("ID of the associated report.").nullable(),
|
|
18
|
+
data_source: z.string().describe("Source type of the data (e.g., 'form', 'email', 'mobile').").nullable(),
|
|
19
|
+
description: z.string().describe("Description of the dataset (may be empty).").nullable()
|
|
20
20
|
}).describe("Dataset resource returned by the API.");
|
|
21
21
|
const mopinionGetDatasetById = action("MOPINION_GET_DATASET_BY_ID", {
|
|
22
22
|
slug: "mopinion-get-dataset-by-id",
|
|
@@ -1 +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
|
|
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.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.object({\n code: z.number().int().describe(\"HTTP status code of the response.\").nullable(),\n next: z.boolean().describe(\"Whether next results exist.\").nullable(),\n count: z.number().int().describe(\"Number of items in the current response.\").nullable(),\n total: z.number().int().describe(\"Total number of items available.\").nullable(),\n message: z.string().describe(\"Status message (e.g., 'OK').\").nullable(),\n has_more: z.boolean().describe(\"Whether there are more results available.\").nullable(),\n previous: z.boolean().describe(\"Whether previous results exist.\").nullable(),\n}).describe(\"Metadata returned by the API.\");\nconst MopinionGetDatasetById_DatasetSchema = z.object({\n id: z.union([z.number().int(), z.string()]),\n name: z.string().describe(\"Name of the dataset (form).\").nullable(),\n report_id: z.number().int().describe(\"ID of the associated report.\").nullable(),\n data_source: z.string().describe(\"Source type of the data (e.g., 'form', 'email', 'mobile').\").nullable(),\n description: z.string().describe(\"Description of the dataset (may be empty).\").nullable(),\n}).describe(\"Dataset resource returned by the API.\");\nexport const MopinionGetDatasetByIdOutput = 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,8BAA8B,EAAE,OAAO,EAClD,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,EACpD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,OAAO,kCAAkC,SAAS;EAClD,SAAS,qCAAqC,SAAS;CACzD,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -30,11 +30,11 @@ const MopinionGetDatasetFeedbackById_FeedbackItemDataSchema = zod.z.object({
|
|
|
30
30
|
scores_object: zod.z.string().describe("JSON-encoded map of score field IDs to values").nullable().optional()
|
|
31
31
|
}).describe("Single feedback item data structure.");
|
|
32
32
|
const MopinionGetDatasetFeedbackById_MetaSchema = zod.z.object({
|
|
33
|
-
code: zod.z.number().int().describe("HTTP status code"),
|
|
33
|
+
code: zod.z.number().int().describe("HTTP status code").nullable(),
|
|
34
34
|
next: zod.z.boolean().describe("Whether next page exists").nullable().optional(),
|
|
35
35
|
count: zod.z.number().int().describe("Number of items in current response").nullable().optional(),
|
|
36
36
|
total: zod.z.number().int().describe("Total number of items").nullable().optional(),
|
|
37
|
-
message: zod.z.string().describe("Status message"),
|
|
37
|
+
message: zod.z.string().describe("Status message").nullable(),
|
|
38
38
|
has_more: zod.z.boolean().describe("Whether more results are available").nullable().optional(),
|
|
39
39
|
previous: zod.z.boolean().describe("Whether previous page exists").nullable().optional(),
|
|
40
40
|
warnings: zod.z.array(zod.z.string()).describe("Warning messages if any").nullable().optional()
|
|
@@ -1 +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
|
|
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.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.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.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.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\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\").nullable(),\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.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,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAA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