@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
|
@@ -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.$strip>;
|
|
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.$strip>;
|
|
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.");
|
|
@@ -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}).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,SAAS,uEAOF;AACV,CAAC"}
|
|
@@ -7,9 +7,9 @@ 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'")
|
|
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
13
|
}).describe("Response model for GetRoot action.");
|
|
14
14
|
const mopinionGetRoot = require_action.action("MOPINION_GET_ROOT", {
|
|
15
15
|
slug: "mopinion-get-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}).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,SAAS,oCAAoC;AAEhD,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.$strip>;
|
|
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.$strip>;
|
|
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,9 +10,9 @@ 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'")
|
|
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
16
|
}).describe("Response model for GetRoot action.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
@@ -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}).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,SAAS,oCAOF;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.2",
|
|
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": {
|