@keystrokehq/mopinion 0.1.0 → 0.1.3
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 +29 -29
- 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 +29 -29
- package/dist/actions/get-account.mjs.map +1 -1
- package/dist/actions/get-dataset-by-id.cjs +14 -14
- 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 +14 -14
- package/dist/actions/get-dataset-by-id.mjs.map +1 -1
- package/dist/actions/get-dataset-feedback-by-id.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-dataset-feedback-by-id.mjs.map +1 -1
- package/dist/actions/get-dataset-feedback.cjs +18 -18
- 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 +18 -18
- package/dist/actions/get-dataset-feedback.mjs.map +1 -1
- package/dist/actions/get-dataset-fields.cjs +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 +1 -1
- package/dist/actions/get-dataset-fields.mjs.map +1 -1
- package/dist/actions/get-deployment-by-id.cjs +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 +1 -1
- package/dist/actions/get-deployment-by-id.mjs.map +1 -1
- package/dist/actions/get-deployments.cjs +5 -5
- 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 +5 -5
- package/dist/actions/get-deployments.mjs.map +1 -1
- package/dist/actions/get-report-by-id.cjs +8 -8
- 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 +8 -8
- package/dist/actions/get-report-by-id.mjs.map +1 -1
- package/dist/actions/get-report-feedback.cjs +9 -9
- 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 +9 -9
- package/dist/actions/get-report-feedback.mjs.map +1 -1
- package/dist/actions/get-report-fields.cjs +7 -7
- 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 +7 -7
- package/dist/actions/get-report-fields.mjs.map +1 -1
- package/dist/actions/get-root.cjs +4 -4
- 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 +4 -4
- 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
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-report-feedback.d.ts
|
|
4
|
-
declare const MopinionGetReportFeedbackInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetReportFeedbackInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
report_id: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const MopinionGetReportFeedbackOutput: z.ZodObject<{
|
|
11
|
+
_meta: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
next: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
message: z.ZodNullable<z.ZodString>;
|
|
17
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
previous: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
feedback: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
report_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const mopinionGetReportFeedback: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
report_id: number;
|
|
30
|
+
page?: number | undefined;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
filters?: Record<string, unknown> | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { mopinionGetReportFeedback };
|
|
9
36
|
//# sourceMappingURL=get-report-feedback.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-feedback.d.cts","names":[],"sources":["../../src/actions/get-report-feedback.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-report-feedback.d.cts","names":[],"sources":["../../src/actions/get-report-feedback.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAsB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA;;;;YAMpC,MAAA;AAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-report-feedback.d.ts
|
|
4
|
-
declare const MopinionGetReportFeedbackInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetReportFeedbackInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
report_id: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const MopinionGetReportFeedbackOutput: z.ZodObject<{
|
|
11
|
+
_meta: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
next: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
message: z.ZodNullable<z.ZodString>;
|
|
17
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
previous: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
feedback: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
report_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
dataset_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const mopinionGetReportFeedback: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
report_id: number;
|
|
30
|
+
page?: number | undefined;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
filters?: Record<string, unknown> | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { mopinionGetReportFeedback };
|
|
9
36
|
//# sourceMappingURL=get-report-feedback.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-feedback.d.mts","names":[],"sources":["../../src/actions/get-report-feedback.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-report-feedback.d.mts","names":[],"sources":["../../src/actions/get-report-feedback.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAsB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA;;;;YAMpC,MAAA;AAAA"}
|
|
@@ -8,14 +8,14 @@ const MopinionGetReportFeedbackInput = z.object({
|
|
|
8
8
|
report_id: z.number().int().describe("The unique identifier of the report to retrieve feedback for.")
|
|
9
9
|
}).describe("Request model for GET_REPORT_FEEDBACK action.");
|
|
10
10
|
const MopinionGetReportFeedback_FeedbackMetadataSchema = z.object({
|
|
11
|
-
code: z.number().int().describe("HTTP status code of the response."),
|
|
12
|
-
next: z.boolean().describe("Whether a next page exists."),
|
|
13
|
-
count: z.number().int().describe("Number of items in current response."),
|
|
14
|
-
total: z.number().int().describe("Total number of items across all pages."),
|
|
15
|
-
message: z.string().describe("Status message from the API."),
|
|
16
|
-
has_more: z.boolean().describe("Whether more results are available for pagination."),
|
|
17
|
-
previous: z.boolean().describe("Whether a previous page exists.")
|
|
18
|
-
}).describe("Metadata structure for API responses.");
|
|
11
|
+
code: z.number().int().describe("HTTP status code of the response.").nullable(),
|
|
12
|
+
next: z.boolean().describe("Whether a next page exists.").nullable(),
|
|
13
|
+
count: z.number().int().describe("Number of items in current response.").nullable(),
|
|
14
|
+
total: z.number().int().describe("Total number of items across all pages.").nullable(),
|
|
15
|
+
message: z.string().describe("Status message from the API.").nullable(),
|
|
16
|
+
has_more: z.boolean().describe("Whether more results are available for pagination.").nullable(),
|
|
17
|
+
previous: z.boolean().describe("Whether a previous page exists.").nullable()
|
|
18
|
+
}).passthrough().describe("Metadata structure for API responses.");
|
|
19
19
|
const MopinionGetReportFeedback_FeedbackItemSchema = z.object({
|
|
20
20
|
id: z.number().int().describe("Unique feedback ID.").nullable().optional(),
|
|
21
21
|
tags: z.array(z.string()).describe("Tags associated with feedback.").nullable().optional(),
|
|
@@ -31,7 +31,7 @@ const mopinionGetReportFeedback = action("MOPINION_GET_REPORT_FEEDBACK", {
|
|
|
31
31
|
output: z.object({
|
|
32
32
|
_meta: MopinionGetReportFeedback_FeedbackMetadataSchema.nullable(),
|
|
33
33
|
feedback: z.array(MopinionGetReportFeedback_FeedbackItemSchema).describe("List of feedback items with typed common fields and dynamic custom fields.")
|
|
34
|
-
}).describe("Response model for GET_REPORT_FEEDBACK action.")
|
|
34
|
+
}).passthrough().describe("Response model for GET_REPORT_FEEDBACK action.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { mopinionGetReportFeedback };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-feedback.mjs","names":[],"sources":["../../src/actions/get-report-feedback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetReportFeedbackInput
|
|
1
|
+
{"version":3,"file":"get-report-feedback.mjs","names":[],"sources":["../../src/actions/get-report-feedback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetReportFeedbackInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve (1-based).\").optional(),\n limit: z.number().int().describe(\"Maximum number of feedback items to return per page (1-100).\").optional(),\n filters: z.record(z.string(), z.unknown()).describe(\"Server-side filters serialized as filter[field]=value in query parameters.\").optional(),\n report_id: z.number().int().describe(\"The unique identifier of the report to retrieve feedback for.\"),\n}).describe(\"Request model for GET_REPORT_FEEDBACK action.\");\nconst MopinionGetReportFeedback_FeedbackMetadataSchema = z.object({\n code: z.number().int().describe(\"HTTP status code of the response.\").nullable(),\n next: z.boolean().describe(\"Whether a next page exists.\").nullable(),\n count: z.number().int().describe(\"Number of items in current response.\").nullable(),\n total: z.number().int().describe(\"Total number of items across all pages.\").nullable(),\n message: z.string().describe(\"Status message from the API.\").nullable(),\n has_more: z.boolean().describe(\"Whether more results are available for pagination.\").nullable(),\n previous: z.boolean().describe(\"Whether a previous page exists.\").nullable(),\n}).passthrough().describe(\"Metadata structure for API responses.\");\nconst MopinionGetReportFeedback_FeedbackItemSchema = z.object({\n id: z.number().int().describe(\"Unique feedback ID.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with feedback.\").nullable().optional(),\n created: z.string().describe(\"Feedback creation timestamp.\").nullable().optional(),\n report_id: z.number().int().describe(\"Associated report ID.\").nullable().optional(),\n dataset_id: z.number().int().describe(\"Associated dataset ID.\").nullable().optional(),\n}).passthrough().describe(\"Individual feedback item structure.\\nNote: Feedback items have dynamic fields based on form configuration.\\nCommon fields are typed, while custom fields are in extra_fields.\");\nexport const MopinionGetReportFeedbackOutput = z.object({\n _meta: MopinionGetReportFeedback_FeedbackMetadataSchema.nullable(),\n feedback: z.array(MopinionGetReportFeedback_FeedbackItemSchema).describe(\"List of feedback items with typed common fields and dynamic custom fields.\"),\n}).passthrough().describe(\"Response model for GET_REPORT_FEEDBACK action.\");\n\nexport const mopinionGetReportFeedback = action(\"MOPINION_GET_REPORT_FEEDBACK\", {\n slug: \"mopinion-get-report-feedback\",\n name: \"Get Report Feedback\",\n description: \"Tool to retrieve feedback items for a report. Use when you need paginated and filtered feedback entries for analysis.\",\n input: MopinionGetReportFeedbackInput,\n output: MopinionGetReportFeedbackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC3I,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;AACtG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,mDAAmD,EAAE,OAAO;CAChE,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,sCAAsC,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+KAA+K;AAMzM,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,OAAO,iDAAiD,SAAS;EACjE,UAAU,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4EAA4E;CACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -3,16 +3,16 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-report-fields.ts
|
|
4
4
|
const MopinionGetReportFieldsInput = zod.z.object({ report_id: zod.z.number().int().describe("The unique ID of the report to retrieve fields for.") }).describe("Request model for fetching report field definitions.");
|
|
5
5
|
const MopinionGetReportFields_FieldDefinitionSchema = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("Internal field identifier."),
|
|
7
|
-
name: zod.z.string().describe("Field name."),
|
|
8
|
-
type: zod.z.string().describe("Field data type, e.g., 'text', 'textarea', 'email'."),
|
|
9
|
-
label: zod.z.string().describe("Field label shown in UI."),
|
|
10
|
-
readOnly: zod.z.boolean().describe("Whether the field is read-only."),
|
|
11
|
-
required: zod.z.boolean().describe("Whether the field is required."),
|
|
6
|
+
id: zod.z.number().int().describe("Internal field identifier.").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Field name.").nullable(),
|
|
8
|
+
type: zod.z.string().describe("Field data type, e.g., 'text', 'textarea', 'email'.").nullable(),
|
|
9
|
+
label: zod.z.string().describe("Field label shown in UI.").nullable(),
|
|
10
|
+
readOnly: zod.z.boolean().describe("Whether the field is read-only.").nullable(),
|
|
11
|
+
required: zod.z.boolean().describe("Whether the field is required.").nullable(),
|
|
12
12
|
formatter: zod.z.string().describe("Formatter used for this field, if any.").nullable().optional(),
|
|
13
13
|
defaultValue: zod.z.string().describe("Default value for this field, if any.").nullable().optional()
|
|
14
14
|
}).passthrough().describe("Definition of a single field within a report schema.");
|
|
15
|
-
const MopinionGetReportFieldsOutput = zod.z.object({ fields: zod.z.array(MopinionGetReportFields_FieldDefinitionSchema).describe("List of field definitions for the report.") }).describe("Response model containing a list of field definitions for the report.");
|
|
15
|
+
const MopinionGetReportFieldsOutput = zod.z.object({ fields: zod.z.array(MopinionGetReportFields_FieldDefinitionSchema).describe("List of field definitions for the report.") }).passthrough().describe("Response model containing a list of field definitions for the report.");
|
|
16
16
|
const mopinionGetReportFields = require_action.action("MOPINION_GET_REPORT_FIELDS", {
|
|
17
17
|
slug: "mopinion-get-report-fields",
|
|
18
18
|
name: "Get Report Fields",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-report-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetReportFieldsInput
|
|
1
|
+
{"version":3,"file":"get-report-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-report-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetReportFieldsInput = z.object({\n report_id: z.number().int().describe(\"The unique ID of the report to retrieve fields for.\"),\n}).describe(\"Request model for fetching report field definitions.\");\nconst MopinionGetReportFields_FieldDefinitionSchema = z.object({\n id: z.number().int().describe(\"Internal field identifier.\").nullable(),\n name: z.string().describe(\"Field name.\").nullable(),\n type: z.string().describe(\"Field data type, e.g., 'text', 'textarea', 'email'.\").nullable(),\n label: z.string().describe(\"Field label shown in UI.\").nullable(),\n readOnly: z.boolean().describe(\"Whether the field is read-only.\").nullable(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable(),\n formatter: z.string().describe(\"Formatter used for this field, if any.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for this field, if any.\").nullable().optional(),\n}).passthrough().describe(\"Definition of a single field within a report schema.\");\nexport const MopinionGetReportFieldsOutput = z.object({\n fields: z.array(MopinionGetReportFields_FieldDefinitionSchema).describe(\"List of field definitions for the report.\"),\n}).passthrough().describe(\"Response model containing a list of field definitions for the report.\");\n\nexport const mopinionGetReportFields = action(\"MOPINION_GET_REPORT_FIELDS\", {\n slug: \"mopinion-get-report-fields\",\n name: \"Get Report Fields\",\n description: \"Tool to retrieve field definitions for a specific report. Use when you need the schema of a report's feedback fields before constructing or analyzing forms.\",\n input: MopinionGetReportFieldsInput,\n output: MopinionGetReportFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,EAC5F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2CAA2C,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-report-fields.d.ts
|
|
4
|
-
declare const MopinionGetReportFieldsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetReportFieldsInput: z.ZodObject<{
|
|
5
|
+
report_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MopinionGetReportFieldsOutput: z.ZodObject<{
|
|
8
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
label: z.ZodNullable<z.ZodString>;
|
|
13
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
formatter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const mopinionGetReportFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
report_id: number;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { mopinionGetReportFields };
|
|
9
24
|
//# sourceMappingURL=get-report-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-fields.d.cts","names":[],"sources":["../../src/actions/get-report-fields.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-report-fields.d.cts","names":[],"sources":["../../src/actions/get-report-fields.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-report-fields.d.ts
|
|
4
|
-
declare const MopinionGetReportFieldsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetReportFieldsInput: z.ZodObject<{
|
|
5
|
+
report_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MopinionGetReportFieldsOutput: z.ZodObject<{
|
|
8
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
label: z.ZodNullable<z.ZodString>;
|
|
13
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
formatter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const mopinionGetReportFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
report_id: number;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { mopinionGetReportFields };
|
|
9
24
|
//# sourceMappingURL=get-report-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-fields.d.mts","names":[],"sources":["../../src/actions/get-report-fields.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-report-fields.d.mts","names":[],"sources":["../../src/actions/get-report-fields.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -3,12 +3,12 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-report-fields.ts
|
|
4
4
|
const MopinionGetReportFieldsInput = z.object({ report_id: z.number().int().describe("The unique ID of the report to retrieve fields for.") }).describe("Request model for fetching report field definitions.");
|
|
5
5
|
const MopinionGetReportFields_FieldDefinitionSchema = z.object({
|
|
6
|
-
id: z.number().int().describe("Internal field identifier."),
|
|
7
|
-
name: z.string().describe("Field name."),
|
|
8
|
-
type: z.string().describe("Field data type, e.g., 'text', 'textarea', 'email'."),
|
|
9
|
-
label: z.string().describe("Field label shown in UI."),
|
|
10
|
-
readOnly: z.boolean().describe("Whether the field is read-only."),
|
|
11
|
-
required: z.boolean().describe("Whether the field is required."),
|
|
6
|
+
id: z.number().int().describe("Internal field identifier.").nullable(),
|
|
7
|
+
name: z.string().describe("Field name.").nullable(),
|
|
8
|
+
type: z.string().describe("Field data type, e.g., 'text', 'textarea', 'email'.").nullable(),
|
|
9
|
+
label: z.string().describe("Field label shown in UI.").nullable(),
|
|
10
|
+
readOnly: z.boolean().describe("Whether the field is read-only.").nullable(),
|
|
11
|
+
required: z.boolean().describe("Whether the field is required.").nullable(),
|
|
12
12
|
formatter: z.string().describe("Formatter used for this field, if any.").nullable().optional(),
|
|
13
13
|
defaultValue: z.string().describe("Default value for this field, if any.").nullable().optional()
|
|
14
14
|
}).passthrough().describe("Definition of a single field within a report schema.");
|
|
@@ -17,7 +17,7 @@ const mopinionGetReportFields = action("MOPINION_GET_REPORT_FIELDS", {
|
|
|
17
17
|
name: "Get Report Fields",
|
|
18
18
|
description: "Tool to retrieve field definitions for a specific report. Use when you need the schema of a report's feedback fields before constructing or analyzing forms.",
|
|
19
19
|
input: MopinionGetReportFieldsInput,
|
|
20
|
-
output: z.object({ fields: z.array(MopinionGetReportFields_FieldDefinitionSchema).describe("List of field definitions for the report.") }).describe("Response model containing a list of field definitions for the report.")
|
|
20
|
+
output: z.object({ fields: z.array(MopinionGetReportFields_FieldDefinitionSchema).describe("List of field definitions for the report.") }).passthrough().describe("Response model containing a list of field definitions for the report.")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { mopinionGetReportFields };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-report-fields.mjs","names":[],"sources":["../../src/actions/get-report-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetReportFieldsInput
|
|
1
|
+
{"version":3,"file":"get-report-fields.mjs","names":[],"sources":["../../src/actions/get-report-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetReportFieldsInput = z.object({\n report_id: z.number().int().describe(\"The unique ID of the report to retrieve fields for.\"),\n}).describe(\"Request model for fetching report field definitions.\");\nconst MopinionGetReportFields_FieldDefinitionSchema = z.object({\n id: z.number().int().describe(\"Internal field identifier.\").nullable(),\n name: z.string().describe(\"Field name.\").nullable(),\n type: z.string().describe(\"Field data type, e.g., 'text', 'textarea', 'email'.\").nullable(),\n label: z.string().describe(\"Field label shown in UI.\").nullable(),\n readOnly: z.boolean().describe(\"Whether the field is read-only.\").nullable(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable(),\n formatter: z.string().describe(\"Formatter used for this field, if any.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for this field, if any.\").nullable().optional(),\n}).passthrough().describe(\"Definition of a single field within a report schema.\");\nexport const MopinionGetReportFieldsOutput = z.object({\n fields: z.array(MopinionGetReportFields_FieldDefinitionSchema).describe(\"List of field definitions for the report.\"),\n}).passthrough().describe(\"Response model containing a list of field definitions for the report.\");\n\nexport const mopinionGetReportFields = action(\"MOPINION_GET_REPORT_FIELDS\", {\n slug: \"mopinion-get-report-fields\",\n name: \"Get Report Fields\",\n description: \"Tool to retrieve field definitions for a specific report. Use when you need the schema of a report's feedback fields before constructing or analyzing forms.\",\n input: MopinionGetReportFieldsInput,\n output: MopinionGetReportFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,EAC5F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAKhF,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2CAA2C,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAOhB;AACV,CAAC"}
|
|
@@ -7,10 +7,10 @@ const MopinionGetRootInput = zod.z.object({
|
|
|
7
7
|
include_auth_header: zod.z.boolean().default(false).describe("Whether to include the Authorization header in the request. Defaults to False because the root ping does not require authentication.").optional()
|
|
8
8
|
}).describe("Request model for GetRoot action.");
|
|
9
9
|
const MopinionGetRootOutput = zod.z.object({
|
|
10
|
-
code: zod.z.number().int().describe("HTTP status code returned by the API"),
|
|
11
|
-
version: zod.z.string().describe("Current Mopinion API version"),
|
|
12
|
-
response: zod.z.string().describe("Ping response from the server, typically 'pong'")
|
|
13
|
-
}).describe("Response model for GetRoot action.");
|
|
10
|
+
code: zod.z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
11
|
+
version: zod.z.string().describe("Current Mopinion API version").nullable(),
|
|
12
|
+
response: zod.z.string().describe("Ping response from the server, typically 'pong'").nullable()
|
|
13
|
+
}).passthrough().describe("Response model for GetRoot action.");
|
|
14
14
|
const mopinionGetRoot = require_action.action("MOPINION_GET_ROOT", {
|
|
15
15
|
slug: "mopinion-get-root",
|
|
16
16
|
name: "Get API Root",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-root.cjs","names":["z","action"],"sources":["../../src/actions/get-root.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetRootInput
|
|
1
|
+
{"version":3,"file":"get-root.cjs","names":["z","action"],"sources":["../../src/actions/get-root.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetRootInput = z.object({\n extra_path: z.string().describe(\"Optional path to append to the base URL. Defaults to '/ping' for the standard health check endpoint. Use this to test other endpoints if needed.\").optional(),\n custom_base_url: z.string().describe(\"Optional override for the Mopinion API base URL. If not provided, the action uses the connection's base_url when it points to a Mopinion domain; otherwise it falls back to 'https://api.mopinion.com'.\").optional(),\n include_auth_header: z.boolean().default(false).describe(\"Whether to include the Authorization header in the request. Defaults to False because the root ping does not require authentication.\").optional(),\n}).describe(\"Request model for GetRoot action.\");\nexport const MopinionGetRootOutput = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n version: z.string().describe(\"Current Mopinion API version\").nullable(),\n response: z.string().describe(\"Ping response from the server, typically 'pong'\").nullable(),\n}).passthrough().describe(\"Response model for GetRoot action.\");\n\nexport const mopinionGetRoot = action(\"MOPINION_GET_ROOT\", {\n slug: \"mopinion-get-root\",\n name: \"Get API Root\",\n description: \"Check Mopinion API availability and get version information. Pings the API health check endpoint (/ping) and returns status code, 'pong' response, and current API version. Use this to verify the API is reachable and operational.\",\n input: MopinionGetRootInput,\n output: MopinionGetRootOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CAC7L,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CACzP,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;AAC5M,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-root.d.ts
|
|
4
|
-
declare const MopinionGetRootInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetRootInput: z.ZodObject<{
|
|
5
|
+
extra_path: z.ZodOptional<z.ZodString>;
|
|
6
|
+
custom_base_url: z.ZodOptional<z.ZodString>;
|
|
7
|
+
include_auth_header: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MopinionGetRootOutput: z.ZodObject<{
|
|
10
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
version: z.ZodNullable<z.ZodString>;
|
|
12
|
+
response: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const mopinionGetRoot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
extra_path?: string | undefined;
|
|
16
|
+
custom_base_url?: string | undefined;
|
|
17
|
+
include_auth_header?: boolean | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { mopinionGetRoot };
|
|
9
21
|
//# sourceMappingURL=get-root.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-root.d.cts","names":[],"sources":["../../src/actions/get-root.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"get-root.d.cts","names":[],"sources":["../../src/actions/get-root.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAKpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAMrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-root.d.ts
|
|
4
|
-
declare const MopinionGetRootInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MopinionGetRootInput: z.ZodObject<{
|
|
5
|
+
extra_path: z.ZodOptional<z.ZodString>;
|
|
6
|
+
custom_base_url: z.ZodOptional<z.ZodString>;
|
|
7
|
+
include_auth_header: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MopinionGetRootOutput: z.ZodObject<{
|
|
10
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
version: z.ZodNullable<z.ZodString>;
|
|
12
|
+
response: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const mopinionGetRoot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
extra_path?: string | undefined;
|
|
16
|
+
custom_base_url?: string | undefined;
|
|
17
|
+
include_auth_header?: boolean | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { mopinionGetRoot };
|
|
9
21
|
//# sourceMappingURL=get-root.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-root.d.mts","names":[],"sources":["../../src/actions/get-root.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"get-root.d.mts","names":[],"sources":["../../src/actions/get-root.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAKpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAMrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -10,10 +10,10 @@ const mopinionGetRoot = action("MOPINION_GET_ROOT", {
|
|
|
10
10
|
include_auth_header: z.boolean().default(false).describe("Whether to include the Authorization header in the request. Defaults to False because the root ping does not require authentication.").optional()
|
|
11
11
|
}).describe("Request model for GetRoot action."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
code: z.number().int().describe("HTTP status code returned by the API"),
|
|
14
|
-
version: z.string().describe("Current Mopinion API version"),
|
|
15
|
-
response: z.string().describe("Ping response from the server, typically 'pong'")
|
|
16
|
-
}).describe("Response model for GetRoot action.")
|
|
13
|
+
code: z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
14
|
+
version: z.string().describe("Current Mopinion API version").nullable(),
|
|
15
|
+
response: z.string().describe("Ping response from the server, typically 'pong'").nullable()
|
|
16
|
+
}).passthrough().describe("Response model for GetRoot action.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { mopinionGetRoot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-root.mjs","names":[],"sources":["../../src/actions/get-root.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetRootInput
|
|
1
|
+
{"version":3,"file":"get-root.mjs","names":[],"sources":["../../src/actions/get-root.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MopinionGetRootInput = z.object({\n extra_path: z.string().describe(\"Optional path to append to the base URL. Defaults to '/ping' for the standard health check endpoint. Use this to test other endpoints if needed.\").optional(),\n custom_base_url: z.string().describe(\"Optional override for the Mopinion API base URL. If not provided, the action uses the connection's base_url when it points to a Mopinion domain; otherwise it falls back to 'https://api.mopinion.com'.\").optional(),\n include_auth_header: z.boolean().default(false).describe(\"Whether to include the Authorization header in the request. Defaults to False because the root ping does not require authentication.\").optional(),\n}).describe(\"Request model for GetRoot action.\");\nexport const MopinionGetRootOutput = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n version: z.string().describe(\"Current Mopinion API version\").nullable(),\n response: z.string().describe(\"Ping response from the server, typically 'pong'\").nullable(),\n}).passthrough().describe(\"Response model for GetRoot action.\");\n\nexport const mopinionGetRoot = action(\"MOPINION_GET_ROOT\", {\n slug: \"mopinion-get-root\",\n name: \"Get API Root\",\n description: \"Check Mopinion API availability and get version information. Pings the API health check endpoint (/ping) and returns status code, 'pong' response, and current API version. Use this to verify the API is reachable and operational.\",\n input: MopinionGetRootInput,\n output: MopinionGetRootOutput,\n});\n"],"mappings":";;AAeA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkC,EAAE,OAAO;EAC3C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;EAC7L,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;EACzP,qBAAqB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC5M,CAAC,CAAC,CAAC,SAAS,mCAWH;CACP,QAXmC,EAAE,OAAO;EAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,26 @@ const mopinionCatalog = {
|
|
|
7
7
|
"category": "Analytics",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/mopinion",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"public_key": {
|
|
13
|
+
"label": "Public Key",
|
|
14
|
+
"secret": true,
|
|
15
|
+
"description": "The public key (ID) for the application communicating with the API. Obtained from Mopinion Suite at Settings » Feedback Api (classic) or Integrations » Feedback API (Raspberry)"
|
|
16
|
+
},
|
|
17
|
+
"private_key": {
|
|
18
|
+
"label": "Private Key",
|
|
19
|
+
"secret": true,
|
|
20
|
+
"description": "The private key used for obtaining the signature-token."
|
|
21
|
+
},
|
|
22
|
+
"generic_id_2": {
|
|
23
|
+
"label": "Token",
|
|
24
|
+
"secret": true,
|
|
25
|
+
"optional": true,
|
|
26
|
+
"description": "The signature token used to create encrypted authentication tokens. Can be obtained via the /token endpoint using public_key and private_key. Keep this secret"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"credentialScheme": "API_KEY"
|
|
11
30
|
};
|
|
12
31
|
//#endregion
|
|
13
32
|
exports.mopinionCatalog = mopinionCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const mopinionCatalog = {\n \"slug\": \"mopinion\",\n \"name\": \"Mopinion\",\n \"description\": \"Mopinion captures user feedback across websites and apps, providing insights, analytics, and reporting to optimize user experiences and drive conversions\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/mopinion\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const mopinionCatalog = {\n \"slug\": \"mopinion\",\n \"name\": \"Mopinion\",\n \"description\": \"Mopinion captures user feedback across websites and apps, providing insights, analytics, and reporting to optimize user experiences and drive conversions\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/mopinion\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"public_key\": {\n \"label\": \"Public Key\",\n \"secret\": true,\n \"description\": \"The public key (ID) for the application communicating with the API. Obtained from Mopinion Suite at Settings » Feedback Api (classic) or Integrations » Feedback API (Raspberry)\"\n },\n \"private_key\": {\n \"label\": \"Private Key\",\n \"secret\": true,\n \"description\": \"The private key used for obtaining the signature-token.\"\n },\n \"generic_id_2\": {\n \"label\": \"Token\",\n \"secret\": true,\n \"optional\": true,\n \"description\": \"The signature token used to create encrypted authentication tokens. Can be obtained via the /token endpoint using public_key and private_key. Keep this secret\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,cAAc;GACZ,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,eAAe;GACb,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,YAAY;GACZ,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,25 @@ declare const mopinionCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/mopinion";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly public_key: {
|
|
13
|
+
readonly label: "Public Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The public key (ID) for the application communicating with the API. Obtained from Mopinion Suite at Settings » Feedback Api (classic) or Integrations » Feedback API (Raspberry)";
|
|
16
|
+
};
|
|
17
|
+
readonly private_key: {
|
|
18
|
+
readonly label: "Private Key";
|
|
19
|
+
readonly secret: true;
|
|
20
|
+
readonly description: "The private key used for obtaining the signature-token.";
|
|
21
|
+
};
|
|
22
|
+
readonly generic_id_2: {
|
|
23
|
+
readonly label: "Token";
|
|
24
|
+
readonly secret: true;
|
|
25
|
+
readonly optional: true;
|
|
26
|
+
readonly description: "The signature token used to create encrypted authentication tokens. Can be obtained via the /token endpoint using public_key and private_key. Keep this secret";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly credentialScheme: "API_KEY";
|
|
11
30
|
};
|
|
12
31
|
//#endregion
|
|
13
32
|
export { mopinionCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,25 @@ declare const mopinionCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/mopinion";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly public_key: {
|
|
13
|
+
readonly label: "Public Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The public key (ID) for the application communicating with the API. Obtained from Mopinion Suite at Settings » Feedback Api (classic) or Integrations » Feedback API (Raspberry)";
|
|
16
|
+
};
|
|
17
|
+
readonly private_key: {
|
|
18
|
+
readonly label: "Private Key";
|
|
19
|
+
readonly secret: true;
|
|
20
|
+
readonly description: "The private key used for obtaining the signature-token.";
|
|
21
|
+
};
|
|
22
|
+
readonly generic_id_2: {
|
|
23
|
+
readonly label: "Token";
|
|
24
|
+
readonly secret: true;
|
|
25
|
+
readonly optional: true;
|
|
26
|
+
readonly description: "The signature token used to create encrypted authentication tokens. Can be obtained via the /token endpoint using public_key and private_key. Keep this secret";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly credentialScheme: "API_KEY";
|
|
11
30
|
};
|
|
12
31
|
//#endregion
|
|
13
32
|
export { mopinionCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,26 @@ const mopinionCatalog = {
|
|
|
7
7
|
"category": "Analytics",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/mopinion",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"public_key": {
|
|
13
|
+
"label": "Public Key",
|
|
14
|
+
"secret": true,
|
|
15
|
+
"description": "The public key (ID) for the application communicating with the API. Obtained from Mopinion Suite at Settings » Feedback Api (classic) or Integrations » Feedback API (Raspberry)"
|
|
16
|
+
},
|
|
17
|
+
"private_key": {
|
|
18
|
+
"label": "Private Key",
|
|
19
|
+
"secret": true,
|
|
20
|
+
"description": "The private key used for obtaining the signature-token."
|
|
21
|
+
},
|
|
22
|
+
"generic_id_2": {
|
|
23
|
+
"label": "Token",
|
|
24
|
+
"secret": true,
|
|
25
|
+
"optional": true,
|
|
26
|
+
"description": "The signature token used to create encrypted authentication tokens. Can be obtained via the /token endpoint using public_key and private_key. Keep this secret"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"credentialScheme": "API_KEY"
|
|
11
30
|
};
|
|
12
31
|
//#endregion
|
|
13
32
|
export { mopinionCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const mopinionCatalog = {\n \"slug\": \"mopinion\",\n \"name\": \"Mopinion\",\n \"description\": \"Mopinion captures user feedback across websites and apps, providing insights, analytics, and reporting to optimize user experiences and drive conversions\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/mopinion\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const mopinionCatalog = {\n \"slug\": \"mopinion\",\n \"name\": \"Mopinion\",\n \"description\": \"Mopinion captures user feedback across websites and apps, providing insights, analytics, and reporting to optimize user experiences and drive conversions\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/mopinion\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"public_key\": {\n \"label\": \"Public Key\",\n \"secret\": true,\n \"description\": \"The public key (ID) for the application communicating with the API. Obtained from Mopinion Suite at Settings » Feedback Api (classic) or Integrations » Feedback API (Raspberry)\"\n },\n \"private_key\": {\n \"label\": \"Private Key\",\n \"secret\": true,\n \"description\": \"The private key used for obtaining the signature-token.\"\n },\n \"generic_id_2\": {\n \"label\": \"Token\",\n \"secret\": true,\n \"optional\": true,\n \"description\": \"The signature token used to create encrypted authentication tokens. Can be obtained via the /token endpoint using public_key and private_key. Keep this secret\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,cAAc;GACZ,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,eAAe;GACb,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,YAAY;GACZ,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/mopinion",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|