@keystrokehq/refiner 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/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +11 -3
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +11 -3
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +21 -21
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +26 -3
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +26 -3
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +21 -21
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +11 -11
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +32 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +32 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +11 -11
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-contacts.cjs +11 -11
- package/dist/actions/get-contacts.cjs.map +1 -1
- package/dist/actions/get-contacts.d.cts +57 -3
- package/dist/actions/get-contacts.d.cts.map +1 -1
- package/dist/actions/get-contacts.d.mts +57 -3
- package/dist/actions/get-contacts.d.mts.map +1 -1
- package/dist/actions/get-contacts.mjs +11 -11
- package/dist/actions/get-contacts.mjs.map +1 -1
- package/dist/actions/get-forms.cjs +9 -9
- package/dist/actions/get-forms.cjs.map +1 -1
- package/dist/actions/get-forms.d.cts +45 -3
- package/dist/actions/get-forms.d.cts.map +1 -1
- package/dist/actions/get-forms.d.mts +45 -3
- package/dist/actions/get-forms.d.mts.map +1 -1
- package/dist/actions/get-forms.mjs +9 -9
- package/dist/actions/get-forms.mjs.map +1 -1
- package/dist/actions/get-reporting.cjs +4 -4
- package/dist/actions/get-reporting.cjs.map +1 -1
- package/dist/actions/get-reporting.d.cts +37 -3
- package/dist/actions/get-reporting.d.cts.map +1 -1
- package/dist/actions/get-reporting.d.mts +37 -3
- package/dist/actions/get-reporting.d.mts.map +1 -1
- package/dist/actions/get-reporting.mjs +4 -4
- package/dist/actions/get-reporting.mjs.map +1 -1
- package/dist/actions/get-responses.cjs +24 -24
- package/dist/actions/get-responses.cjs.map +1 -1
- package/dist/actions/get-responses.d.cts +69 -3
- package/dist/actions/get-responses.d.cts.map +1 -1
- package/dist/actions/get-responses.d.mts +69 -3
- package/dist/actions/get-responses.d.mts.map +1 -1
- package/dist/actions/get-responses.mjs +24 -24
- package/dist/actions/get-responses.mjs.map +1 -1
- package/dist/actions/get-segments.cjs +10 -10
- package/dist/actions/get-segments.cjs.map +1 -1
- package/dist/actions/get-segments.d.cts +24 -3
- package/dist/actions/get-segments.d.cts.map +1 -1
- package/dist/actions/get-segments.d.mts +24 -3
- package/dist/actions/get-segments.d.mts.map +1 -1
- package/dist/actions/get-segments.mjs +10 -10
- package/dist/actions/get-segments.mjs.map +1 -1
- package/dist/actions/track-event.cjs +1 -1
- package/dist/actions/track-event.cjs.map +1 -1
- package/dist/actions/track-event.d.cts +13 -3
- package/dist/actions/track-event.d.cts.map +1 -1
- package/dist/actions/track-event.d.mts +13 -3
- package/dist/actions/track-event.d.mts.map +1 -1
- package/dist/actions/track-event.mjs +1 -1
- package/dist/actions/track-event.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +4 -4
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +22 -3
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +22 -3
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +4 -4
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -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":["refiner","executeRefinerTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { refiner } from \"./app\";\nimport { executeRefinerTool } 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":["refiner","executeRefinerTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { refiner } from \"./app\";\nimport { executeRefinerTool } 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 refiner.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 executeRefinerTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;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 { refiner } from \"./app\";\nimport { executeRefinerTool } 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 { refiner } from \"./app\";\nimport { executeRefinerTool } 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 refiner.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 executeRefinerTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -5,7 +5,7 @@ const RefinerDeleteContactInput = zod.z.object({
|
|
|
5
5
|
id: zod.z.string().describe("Your user ID that was used when the contact was created. This is the primary identifier for the contact.").optional(),
|
|
6
6
|
email: zod.z.string().describe("The email address of the contact to delete. Can be used as an alternative to id.").optional()
|
|
7
7
|
}).describe("Request model for deleting a Refiner contact.");
|
|
8
|
-
const RefinerDeleteContactOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').") }).describe("Response model returned after deleting a contact.");
|
|
8
|
+
const RefinerDeleteContactOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').").nullable() }).passthrough().describe("Response model returned after deleting a contact.");
|
|
9
9
|
const refinerDeleteContact = require_action.action("REFINER_DELETE_CONTACT", {
|
|
10
10
|
slug: "refiner-delete-contact",
|
|
11
11
|
name: "Delete Contact",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput
|
|
1
|
+
{"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput = z.object({\n id: z.string().describe(\"Your user ID that was used when the contact was created. This is the primary identifier for the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact to delete. Can be used as an alternative to id.\").optional(),\n}).describe(\"Request model for deleting a Refiner contact.\");\nexport const RefinerDeleteContactOutput = z.object({\n message: z.string().describe(\"Confirmation message that the contact was deleted (e.g., 'ok').\").nullable(),\n}).passthrough().describe(\"Response model returned after deleting a contact.\");\n\nexport const refinerDeleteContact = action(\"REFINER_DELETE_CONTACT\", {\n slug: \"refiner-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a specific contact by its identifier. Provide either the user ID or email address to identify and delete the contact.\",\n input: RefinerDeleteContactInput,\n output: RefinerDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-contact.d.ts
|
|
4
|
-
declare const RefinerDeleteContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerDeleteContactInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RefinerDeleteContactOutput: z.ZodObject<{
|
|
9
|
+
message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const refinerDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
email?: string | undefined;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { refinerDeleteContact };
|
|
9
17
|
//# sourceMappingURL=delete-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-contact.d.ts
|
|
4
|
-
declare const RefinerDeleteContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerDeleteContactInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RefinerDeleteContactOutput: z.ZodObject<{
|
|
9
|
+
message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const refinerDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
email?: string | undefined;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { refinerDeleteContact };
|
|
9
17
|
//# sourceMappingURL=delete-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const refinerDeleteContact = action("REFINER_DELETE_CONTACT", {
|
|
|
8
8
|
id: z.string().describe("Your user ID that was used when the contact was created. This is the primary identifier for the contact.").optional(),
|
|
9
9
|
email: z.string().describe("The email address of the contact to delete. Can be used as an alternative to id.").optional()
|
|
10
10
|
}).describe("Request model for deleting a Refiner contact."),
|
|
11
|
-
output: z.object({ message: z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').") }).describe("Response model returned after deleting a contact.")
|
|
11
|
+
output: z.object({ message: z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').").nullable() }).passthrough().describe("Response model returned after deleting a contact.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { refinerDeleteContact };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput
|
|
1
|
+
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput = z.object({\n id: z.string().describe(\"Your user ID that was used when the contact was created. This is the primary identifier for the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact to delete. Can be used as an alternative to id.\").optional(),\n}).describe(\"Request model for deleting a Refiner contact.\");\nexport const RefinerDeleteContactOutput = z.object({\n message: z.string().describe(\"Confirmation message that the contact was deleted (e.g., 'ok').\").nullable(),\n}).passthrough().describe(\"Response model returned after deleting a contact.\");\n\nexport const refinerDeleteContact = action(\"REFINER_DELETE_CONTACT\", {\n slug: \"refiner-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a specific contact by its identifier. Provide either the user ID or email address to identify and delete the contact.\",\n input: RefinerDeleteContactInput,\n output: RefinerDeleteContactOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,+CASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -3,31 +3,31 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-account-info.ts
|
|
4
4
|
const RefinerGetAccountInfoInput = zod.z.object({}).describe("Request model for GetAccountInfo - no parameters required.");
|
|
5
5
|
const RefinerGetAccountInfo_EnvironmentSchema = zod.z.object({
|
|
6
|
-
mpv: zod.z.number().int().describe("Monthly Page Views (MPV) - number of page views tracked in this environment during the current month"),
|
|
7
|
-
msr: zod.z.number().int().describe("Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month"),
|
|
8
|
-
mte: zod.z.number().int().describe("Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month"),
|
|
9
|
-
mtu: zod.z.number().int().describe("Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month"),
|
|
10
|
-
name: zod.z.string().describe("Name of the environment"),
|
|
11
|
-
uuid: zod.z.string().describe("UUID of the environment")
|
|
12
|
-
});
|
|
6
|
+
mpv: zod.z.number().int().describe("Monthly Page Views (MPV) - number of page views tracked in this environment during the current month").nullable(),
|
|
7
|
+
msr: zod.z.number().int().describe("Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month").nullable(),
|
|
8
|
+
mte: zod.z.number().int().describe("Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month").nullable(),
|
|
9
|
+
mtu: zod.z.number().int().describe("Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month").nullable(),
|
|
10
|
+
name: zod.z.string().describe("Name of the environment").nullable(),
|
|
11
|
+
uuid: zod.z.string().describe("UUID of the environment").nullable()
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const RefinerGetAccountInfo_SubscriptionSchema = zod.z.object({
|
|
14
|
-
plan: zod.z.string().describe("Name of the subscribed plan"),
|
|
15
|
-
mpv_count: zod.z.number().int().describe("Current number of Monthly Page Views (MPV) - page views tracked in the current month"),
|
|
16
|
-
mpv_limit: zod.z.number().int().describe("Limit for Monthly Page Views (MPV) allowed by the current plan"),
|
|
17
|
-
msr_count: zod.z.number().int().describe("Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month"),
|
|
18
|
-
msr_limit: zod.z.number().int().describe("Limit for Monthly Survey Responses (MSR) allowed by the current plan"),
|
|
19
|
-
mte_count: zod.z.number().int().describe("Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month"),
|
|
20
|
-
mtu_count: zod.z.number().int().describe("Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month"),
|
|
21
|
-
mtu_limit: zod.z.number().int().describe("Limit for Monthly Tracked Users (MTU) allowed by the current plan"),
|
|
22
|
-
mpv_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)"),
|
|
23
|
-
msr_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)"),
|
|
24
|
-
mte_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)"),
|
|
25
|
-
mtu_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)")
|
|
26
|
-
});
|
|
14
|
+
plan: zod.z.string().describe("Name of the subscribed plan").nullable(),
|
|
15
|
+
mpv_count: zod.z.number().int().describe("Current number of Monthly Page Views (MPV) - page views tracked in the current month").nullable(),
|
|
16
|
+
mpv_limit: zod.z.number().int().describe("Limit for Monthly Page Views (MPV) allowed by the current plan").nullable(),
|
|
17
|
+
msr_count: zod.z.number().int().describe("Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month").nullable(),
|
|
18
|
+
msr_limit: zod.z.number().int().describe("Limit for Monthly Survey Responses (MSR) allowed by the current plan").nullable(),
|
|
19
|
+
mte_count: zod.z.number().int().describe("Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month").nullable(),
|
|
20
|
+
mtu_count: zod.z.number().int().describe("Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month").nullable(),
|
|
21
|
+
mtu_limit: zod.z.number().int().describe("Limit for Monthly Tracked Users (MTU) allowed by the current plan").nullable(),
|
|
22
|
+
mpv_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)").nullable(),
|
|
23
|
+
msr_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)").nullable(),
|
|
24
|
+
mte_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)").nullable(),
|
|
25
|
+
mtu_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const RefinerGetAccountInfoOutput = zod.z.object({
|
|
28
28
|
environments: zod.z.array(RefinerGetAccountInfo_EnvironmentSchema).describe("List of environments and their usage statistics"),
|
|
29
29
|
subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable()
|
|
30
|
-
});
|
|
30
|
+
}).passthrough();
|
|
31
31
|
const refinerGetAccountInfo = require_action.action("REFINER_GET_ACCOUNT_INFO", {
|
|
32
32
|
slug: "refiner-get-account-info",
|
|
33
33
|
name: "Get Account Info",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput
|
|
1
|
+
{"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput = z.object({}).describe(\"Request model for GetAccountInfo - no parameters required.\");\nconst RefinerGetAccountInfo_EnvironmentSchema = z.object({\n mpv: z.number().int().describe(\"Monthly Page Views (MPV) - number of page views tracked in this environment during the current month\").nullable(),\n msr: z.number().int().describe(\"Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month\").nullable(),\n mte: z.number().int().describe(\"Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month\").nullable(),\n mtu: z.number().int().describe(\"Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month\").nullable(),\n name: z.string().describe(\"Name of the environment\").nullable(),\n uuid: z.string().describe(\"UUID of the environment\").nullable(),\n}).passthrough();\nconst RefinerGetAccountInfo_SubscriptionSchema = z.object({\n plan: z.string().describe(\"Name of the subscribed plan\").nullable(),\n mpv_count: z.number().int().describe(\"Current number of Monthly Page Views (MPV) - page views tracked in the current month\").nullable(),\n mpv_limit: z.number().int().describe(\"Limit for Monthly Page Views (MPV) allowed by the current plan\").nullable(),\n msr_count: z.number().int().describe(\"Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month\").nullable(),\n msr_limit: z.number().int().describe(\"Limit for Monthly Survey Responses (MSR) allowed by the current plan\").nullable(),\n mte_count: z.number().int().describe(\"Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month\").nullable(),\n mtu_count: z.number().int().describe(\"Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month\").nullable(),\n mtu_limit: z.number().int().describe(\"Limit for Monthly Tracked Users (MTU) allowed by the current plan\").nullable(),\n mpv_count_updated_at: z.string().describe(\"Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)\").nullable(),\n msr_count_updated_at: z.string().describe(\"Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)\").nullable(),\n mte_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)\").nullable(),\n mtu_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)\").nullable(),\n}).passthrough();\nexport const RefinerGetAccountInfoOutput = z.object({\n environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe(\"List of environments and their usage statistics\"),\n subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetAccountInfo = action(\"REFINER_GET_ACCOUNT_INFO\", {\n slug: \"refiner-get-account-info\",\n name: \"Get Account Info\",\n description: \"Retrieves Refiner account information including subscription plan, usage limits, and environment statistics. This action provides: - Current subscription plan and usage limits (MTU, MTE, MPV, MSR) - Usage counters for monthly tracked users, events, page views, and survey responses - Per-environment breakdown of usage statistics - Last updated timestamps for all usage metrics Use this when you need to check account status, monitor usage against limits, or audit environment statistics.\",\n input: RefinerGetAccountInfoInput,\n output: RefinerGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9J,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACvJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACtI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC7I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACnH,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3I,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACjJ,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/I,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,cAAcA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;CACzH,cAAc,yCAAyC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account-info.d.ts
|
|
4
|
-
declare const RefinerGetAccountInfoInput: z.
|
|
5
|
-
declare const RefinerGetAccountInfoOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetAccountInfoInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RefinerGetAccountInfoOutput: z.ZodObject<{
|
|
6
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
7
|
+
mpv: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
msr: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
mte: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
mtu: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
16
|
+
mpv_count: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
mpv_limit: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
msr_count: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
msr_limit: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
mte_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
mtu_count: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
mtu_limit: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
mpv_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
msr_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
mte_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
26
|
+
mtu_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const refinerGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { refinerGetAccountInfo };
|
|
9
32
|
//# sourceMappingURL=get-account-info.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.d.cts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-account-info.d.cts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account-info.d.ts
|
|
4
|
-
declare const RefinerGetAccountInfoInput: z.
|
|
5
|
-
declare const RefinerGetAccountInfoOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetAccountInfoInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RefinerGetAccountInfoOutput: z.ZodObject<{
|
|
6
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
7
|
+
mpv: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
msr: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
mte: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
mtu: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
16
|
+
mpv_count: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
mpv_limit: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
msr_count: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
msr_limit: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
mte_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
mtu_count: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
mtu_limit: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
mpv_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
msr_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
mte_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
26
|
+
mtu_count_updated_at: z.ZodNullable<z.ZodString>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const refinerGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { refinerGetAccountInfo };
|
|
9
32
|
//# sourceMappingURL=get-account-info.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.d.mts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-account-info.d.mts","names":[],"sources":["../../src/actions/get-account-info.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,27 +3,27 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-account-info.ts
|
|
4
4
|
const RefinerGetAccountInfoInput = z.object({}).describe("Request model for GetAccountInfo - no parameters required.");
|
|
5
5
|
const RefinerGetAccountInfo_EnvironmentSchema = z.object({
|
|
6
|
-
mpv: z.number().int().describe("Monthly Page Views (MPV) - number of page views tracked in this environment during the current month"),
|
|
7
|
-
msr: z.number().int().describe("Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month"),
|
|
8
|
-
mte: z.number().int().describe("Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month"),
|
|
9
|
-
mtu: z.number().int().describe("Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month"),
|
|
10
|
-
name: z.string().describe("Name of the environment"),
|
|
11
|
-
uuid: z.string().describe("UUID of the environment")
|
|
12
|
-
});
|
|
6
|
+
mpv: z.number().int().describe("Monthly Page Views (MPV) - number of page views tracked in this environment during the current month").nullable(),
|
|
7
|
+
msr: z.number().int().describe("Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month").nullable(),
|
|
8
|
+
mte: z.number().int().describe("Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month").nullable(),
|
|
9
|
+
mtu: z.number().int().describe("Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month").nullable(),
|
|
10
|
+
name: z.string().describe("Name of the environment").nullable(),
|
|
11
|
+
uuid: z.string().describe("UUID of the environment").nullable()
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const RefinerGetAccountInfo_SubscriptionSchema = z.object({
|
|
14
|
-
plan: z.string().describe("Name of the subscribed plan"),
|
|
15
|
-
mpv_count: z.number().int().describe("Current number of Monthly Page Views (MPV) - page views tracked in the current month"),
|
|
16
|
-
mpv_limit: z.number().int().describe("Limit for Monthly Page Views (MPV) allowed by the current plan"),
|
|
17
|
-
msr_count: z.number().int().describe("Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month"),
|
|
18
|
-
msr_limit: z.number().int().describe("Limit for Monthly Survey Responses (MSR) allowed by the current plan"),
|
|
19
|
-
mte_count: z.number().int().describe("Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month"),
|
|
20
|
-
mtu_count: z.number().int().describe("Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month"),
|
|
21
|
-
mtu_limit: z.number().int().describe("Limit for Monthly Tracked Users (MTU) allowed by the current plan"),
|
|
22
|
-
mpv_count_updated_at: z.string().describe("Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)"),
|
|
23
|
-
msr_count_updated_at: z.string().describe("Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)"),
|
|
24
|
-
mte_count_updated_at: z.string().describe("Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)"),
|
|
25
|
-
mtu_count_updated_at: z.string().describe("Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)")
|
|
26
|
-
});
|
|
14
|
+
plan: z.string().describe("Name of the subscribed plan").nullable(),
|
|
15
|
+
mpv_count: z.number().int().describe("Current number of Monthly Page Views (MPV) - page views tracked in the current month").nullable(),
|
|
16
|
+
mpv_limit: z.number().int().describe("Limit for Monthly Page Views (MPV) allowed by the current plan").nullable(),
|
|
17
|
+
msr_count: z.number().int().describe("Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month").nullable(),
|
|
18
|
+
msr_limit: z.number().int().describe("Limit for Monthly Survey Responses (MSR) allowed by the current plan").nullable(),
|
|
19
|
+
mte_count: z.number().int().describe("Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month").nullable(),
|
|
20
|
+
mtu_count: z.number().int().describe("Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month").nullable(),
|
|
21
|
+
mtu_limit: z.number().int().describe("Limit for Monthly Tracked Users (MTU) allowed by the current plan").nullable(),
|
|
22
|
+
mpv_count_updated_at: z.string().describe("Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)").nullable(),
|
|
23
|
+
msr_count_updated_at: z.string().describe("Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)").nullable(),
|
|
24
|
+
mte_count_updated_at: z.string().describe("Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)").nullable(),
|
|
25
|
+
mtu_count_updated_at: z.string().describe("Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const refinerGetAccountInfo = action("REFINER_GET_ACCOUNT_INFO", {
|
|
28
28
|
slug: "refiner-get-account-info",
|
|
29
29
|
name: "Get Account Info",
|
|
@@ -32,7 +32,7 @@ const refinerGetAccountInfo = action("REFINER_GET_ACCOUNT_INFO", {
|
|
|
32
32
|
output: z.object({
|
|
33
33
|
environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe("List of environments and their usage statistics"),
|
|
34
34
|
subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable()
|
|
35
|
-
})
|
|
35
|
+
}).passthrough()
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { refinerGetAccountInfo };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.mjs","names":[],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput
|
|
1
|
+
{"version":3,"file":"get-account-info.mjs","names":[],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput = z.object({}).describe(\"Request model for GetAccountInfo - no parameters required.\");\nconst RefinerGetAccountInfo_EnvironmentSchema = z.object({\n mpv: z.number().int().describe(\"Monthly Page Views (MPV) - number of page views tracked in this environment during the current month\").nullable(),\n msr: z.number().int().describe(\"Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month\").nullable(),\n mte: z.number().int().describe(\"Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month\").nullable(),\n mtu: z.number().int().describe(\"Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month\").nullable(),\n name: z.string().describe(\"Name of the environment\").nullable(),\n uuid: z.string().describe(\"UUID of the environment\").nullable(),\n}).passthrough();\nconst RefinerGetAccountInfo_SubscriptionSchema = z.object({\n plan: z.string().describe(\"Name of the subscribed plan\").nullable(),\n mpv_count: z.number().int().describe(\"Current number of Monthly Page Views (MPV) - page views tracked in the current month\").nullable(),\n mpv_limit: z.number().int().describe(\"Limit for Monthly Page Views (MPV) allowed by the current plan\").nullable(),\n msr_count: z.number().int().describe(\"Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month\").nullable(),\n msr_limit: z.number().int().describe(\"Limit for Monthly Survey Responses (MSR) allowed by the current plan\").nullable(),\n mte_count: z.number().int().describe(\"Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month\").nullable(),\n mtu_count: z.number().int().describe(\"Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month\").nullable(),\n mtu_limit: z.number().int().describe(\"Limit for Monthly Tracked Users (MTU) allowed by the current plan\").nullable(),\n mpv_count_updated_at: z.string().describe(\"Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)\").nullable(),\n msr_count_updated_at: z.string().describe(\"Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)\").nullable(),\n mte_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)\").nullable(),\n mtu_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)\").nullable(),\n}).passthrough();\nexport const RefinerGetAccountInfoOutput = z.object({\n environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe(\"List of environments and their usage statistics\"),\n subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetAccountInfo = action(\"REFINER_GET_ACCOUNT_INFO\", {\n slug: \"refiner-get-account-info\",\n name: \"Get Account Info\",\n description: \"Retrieves Refiner account information including subscription plan, usage limits, and environment statistics. This action provides: - Current subscription plan and usage limits (MTU, MTE, MPV, MSR) - Usage counters for monthly tracked users, events, page views, and survey responses - Per-environment breakdown of usage statistics - Last updated timestamps for all usage metrics Use this when you need to check account status, monitor usage against limits, or audit environment statistics.\",\n input: RefinerGetAccountInfoInput,\n output: RefinerGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9J,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACvJ,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACtI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC7I,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3I,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACnH,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3I,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACjJ,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/I,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,cAAc,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;EACzH,cAAc,yCAAyC,SAAS;CAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -7,29 +7,29 @@ const RefinerGetContactInput = zod.z.object({
|
|
|
7
7
|
email: zod.z.string().describe("Email address of the contact.").optional()
|
|
8
8
|
}).describe("Request model for GetContact. Provide exactly one identifier: id, email, or uuid.");
|
|
9
9
|
const RefinerGetContact_AccountSchema = zod.z.object({
|
|
10
|
-
uuid: zod.z.string().describe("Account UUID"),
|
|
10
|
+
uuid: zod.z.string().describe("Account UUID").nullable(),
|
|
11
11
|
domain: zod.z.string().describe("Account domain").nullable().optional(),
|
|
12
12
|
remote_id: zod.z.string().describe("Your account ID").nullable().optional(),
|
|
13
13
|
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional account attributes").nullable().optional(),
|
|
14
14
|
display_name: zod.z.string().describe("Account display name").nullable().optional(),
|
|
15
|
-
last_seen_at: zod.z.string().describe("When the account was last seen (ISO 8601)"),
|
|
16
|
-
first_seen_at: zod.z.string().describe("When the account was first seen (ISO 8601)")
|
|
17
|
-
});
|
|
15
|
+
last_seen_at: zod.z.string().describe("When the account was last seen (ISO 8601)").nullable(),
|
|
16
|
+
first_seen_at: zod.z.string().describe("When the account was first seen (ISO 8601)").nullable()
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const RefinerGetContact_SegmentSchema = zod.z.object({
|
|
19
|
-
name: zod.z.string().describe("Segment name"),
|
|
20
|
-
uuid: zod.z.string().describe("Segment UUID")
|
|
21
|
-
});
|
|
19
|
+
name: zod.z.string().describe("Segment name").nullable(),
|
|
20
|
+
uuid: zod.z.string().describe("Segment UUID").nullable()
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const RefinerGetContactOutput = zod.z.object({
|
|
23
|
-
uuid: zod.z.string().describe("Contact UUID"),
|
|
23
|
+
uuid: zod.z.string().describe("Contact UUID").nullable(),
|
|
24
24
|
email: zod.z.string().describe("Contact email address").nullable().optional(),
|
|
25
25
|
account: RefinerGetContact_AccountSchema.nullable(),
|
|
26
26
|
segments: zod.z.array(RefinerGetContact_SegmentSchema).describe("Segments this contact belongs to").nullable().optional(),
|
|
27
27
|
remote_id: zod.z.string().describe("Your contact ID").nullable().optional(),
|
|
28
28
|
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("All custom attributes for this contact").nullable().optional(),
|
|
29
29
|
display_name: zod.z.string().describe("Contact display name").nullable().optional(),
|
|
30
|
-
last_seen_at: zod.z.string().describe("When contact was last seen (ISO 8601)"),
|
|
31
|
-
first_seen_at: zod.z.string().describe("When contact was first seen (ISO 8601)")
|
|
32
|
-
});
|
|
30
|
+
last_seen_at: zod.z.string().describe("When contact was last seen (ISO 8601)").nullable(),
|
|
31
|
+
first_seen_at: zod.z.string().describe("When contact was first seen (ISO 8601)").nullable()
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const refinerGetContact = require_action.action("REFINER_GET_CONTACT", {
|
|
34
34
|
slug: "refiner-get-contact",
|
|
35
35
|
name: "Get Contact",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactInput
|
|
1
|
+
{"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactInput = z.object({\n id: z.string().describe(\"Your user ID used when the contact was created.\").optional(),\n uuid: z.string().describe(\"Refiner-generated UUID of the contact.\").optional(),\n email: z.string().describe(\"Email address of the contact.\").optional(),\n}).describe(\"Request model for GetContact. Provide exactly one identifier: id, email, or uuid.\");\nconst RefinerGetContact_AccountSchema = z.object({\n uuid: z.string().describe(\"Account UUID\").nullable(),\n domain: z.string().describe(\"Account domain\").nullable().optional(),\n remote_id: z.string().describe(\"Your account ID\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes\").nullable().optional(),\n display_name: z.string().describe(\"Account display name\").nullable().optional(),\n last_seen_at: z.string().describe(\"When the account was last seen (ISO 8601)\").nullable(),\n first_seen_at: z.string().describe(\"When the account was first seen (ISO 8601)\").nullable(),\n}).passthrough();\nconst RefinerGetContact_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name\").nullable(),\n uuid: z.string().describe(\"Segment UUID\").nullable(),\n}).passthrough();\nexport const RefinerGetContactOutput = z.object({\n uuid: z.string().describe(\"Contact UUID\").nullable(),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n account: RefinerGetContact_AccountSchema.nullable(),\n segments: z.array(RefinerGetContact_SegmentSchema).describe(\"Segments this contact belongs to\").nullable().optional(),\n remote_id: z.string().describe(\"Your contact ID\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"All custom attributes for this contact\").nullable().optional(),\n display_name: z.string().describe(\"Contact display name\").nullable().optional(),\n last_seen_at: z.string().describe(\"When contact was last seen (ISO 8601)\").nullable(),\n first_seen_at: z.string().describe(\"When contact was first seen (ISO 8601)\").nullable(),\n}).passthrough();\n\nexport const refinerGetContact = action(\"REFINER_GET_CONTACT\", {\n slug: \"refiner-get-contact\",\n name: \"Get Contact\",\n description: \"Retrieve detailed information about a specific contact using their ID, email, or UUID. Returns all stored attributes, segments, and account information.\",\n input: RefinerGetContactInput,\n output: RefinerGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,gCAAgC,SAAS;CAClD,UAAUA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contact.d.ts
|
|
4
|
-
declare const RefinerGetContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetContactInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const RefinerGetContactOutput: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
11
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
14
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
first_seen_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>>>;
|
|
25
|
+
remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
29
|
+
first_seen_at: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const refinerGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
uuid?: string | undefined;
|
|
34
|
+
email?: string | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { refinerGetContact };
|
|
9
38
|
//# sourceMappingURL=get-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-contact.d.cts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contact.d.ts
|
|
4
|
-
declare const RefinerGetContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetContactInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const RefinerGetContactOutput: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
11
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
14
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
first_seen_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>>>;
|
|
25
|
+
remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
29
|
+
first_seen_at: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const refinerGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
uuid?: string | undefined;
|
|
34
|
+
email?: string | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { refinerGetContact };
|
|
9
38
|
//# sourceMappingURL=get-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-contact.d.mts","names":[],"sources":["../../src/actions/get-contact.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -7,34 +7,34 @@ const RefinerGetContactInput = z.object({
|
|
|
7
7
|
email: z.string().describe("Email address of the contact.").optional()
|
|
8
8
|
}).describe("Request model for GetContact. Provide exactly one identifier: id, email, or uuid.");
|
|
9
9
|
const RefinerGetContact_AccountSchema = z.object({
|
|
10
|
-
uuid: z.string().describe("Account UUID"),
|
|
10
|
+
uuid: z.string().describe("Account UUID").nullable(),
|
|
11
11
|
domain: z.string().describe("Account domain").nullable().optional(),
|
|
12
12
|
remote_id: z.string().describe("Your account ID").nullable().optional(),
|
|
13
13
|
attributes: z.record(z.string(), z.unknown()).describe("Additional account attributes").nullable().optional(),
|
|
14
14
|
display_name: z.string().describe("Account display name").nullable().optional(),
|
|
15
|
-
last_seen_at: z.string().describe("When the account was last seen (ISO 8601)"),
|
|
16
|
-
first_seen_at: z.string().describe("When the account was first seen (ISO 8601)")
|
|
17
|
-
});
|
|
15
|
+
last_seen_at: z.string().describe("When the account was last seen (ISO 8601)").nullable(),
|
|
16
|
+
first_seen_at: z.string().describe("When the account was first seen (ISO 8601)").nullable()
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const RefinerGetContact_SegmentSchema = z.object({
|
|
19
|
-
name: z.string().describe("Segment name"),
|
|
20
|
-
uuid: z.string().describe("Segment UUID")
|
|
21
|
-
});
|
|
19
|
+
name: z.string().describe("Segment name").nullable(),
|
|
20
|
+
uuid: z.string().describe("Segment UUID").nullable()
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const refinerGetContact = action("REFINER_GET_CONTACT", {
|
|
23
23
|
slug: "refiner-get-contact",
|
|
24
24
|
name: "Get Contact",
|
|
25
25
|
description: "Retrieve detailed information about a specific contact using their ID, email, or UUID. Returns all stored attributes, segments, and account information.",
|
|
26
26
|
input: RefinerGetContactInput,
|
|
27
27
|
output: z.object({
|
|
28
|
-
uuid: z.string().describe("Contact UUID"),
|
|
28
|
+
uuid: z.string().describe("Contact UUID").nullable(),
|
|
29
29
|
email: z.string().describe("Contact email address").nullable().optional(),
|
|
30
30
|
account: RefinerGetContact_AccountSchema.nullable(),
|
|
31
31
|
segments: z.array(RefinerGetContact_SegmentSchema).describe("Segments this contact belongs to").nullable().optional(),
|
|
32
32
|
remote_id: z.string().describe("Your contact ID").nullable().optional(),
|
|
33
33
|
attributes: z.record(z.string(), z.unknown()).describe("All custom attributes for this contact").nullable().optional(),
|
|
34
34
|
display_name: z.string().describe("Contact display name").nullable().optional(),
|
|
35
|
-
last_seen_at: z.string().describe("When contact was last seen (ISO 8601)"),
|
|
36
|
-
first_seen_at: z.string().describe("When contact was first seen (ISO 8601)")
|
|
37
|
-
})
|
|
35
|
+
last_seen_at: z.string().describe("When contact was last seen (ISO 8601)").nullable(),
|
|
36
|
+
first_seen_at: z.string().describe("When contact was first seen (ISO 8601)").nullable()
|
|
37
|
+
}).passthrough()
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { refinerGetContact };
|