@keystrokehq/msg91 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/create-user-events.cjs +4 -4
- package/dist/actions/create-user-events.cjs.map +1 -1
- package/dist/actions/create-user-events.d.cts +24 -3
- package/dist/actions/create-user-events.d.cts.map +1 -1
- package/dist/actions/create-user-events.d.mts +24 -3
- package/dist/actions/create-user-events.d.mts.map +1 -1
- package/dist/actions/create-user-events.mjs +4 -4
- package/dist/actions/create-user-events.mjs.map +1 -1
- package/dist/actions/get-event-types.cjs +2 -2
- package/dist/actions/get-event-types.cjs.map +1 -1
- package/dist/actions/get-event-types.d.cts +16 -3
- package/dist/actions/get-event-types.d.cts.map +1 -1
- package/dist/actions/get-event-types.d.mts +16 -3
- package/dist/actions/get-event-types.d.mts.map +1 -1
- package/dist/actions/get-event-types.mjs +2 -2
- package/dist/actions/get-event-types.mjs.map +1 -1
- package/dist/actions/get-failed-events.cjs +10 -10
- package/dist/actions/get-failed-events.cjs.map +1 -1
- package/dist/actions/get-failed-events.d.cts +29 -3
- package/dist/actions/get-failed-events.d.cts.map +1 -1
- package/dist/actions/get-failed-events.d.mts +29 -3
- package/dist/actions/get-failed-events.d.mts.map +1 -1
- package/dist/actions/get-failed-events.mjs +10 -10
- package/dist/actions/get-failed-events.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +9 -9
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +23 -3
- package/dist/actions/list-campaigns.d.cts.map +1 -1
- package/dist/actions/list-campaigns.d.mts +23 -3
- package/dist/actions/list-campaigns.d.mts.map +1 -1
- package/dist/actions/list-campaigns.mjs +9 -9
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/resend-otp.cjs +3 -3
- package/dist/actions/resend-otp.cjs.map +1 -1
- package/dist/actions/resend-otp.d.cts +15 -3
- package/dist/actions/resend-otp.d.cts.map +1 -1
- package/dist/actions/resend-otp.d.mts +15 -3
- package/dist/actions/resend-otp.d.mts.map +1 -1
- package/dist/actions/resend-otp.mjs +3 -3
- package/dist/actions/resend-otp.mjs.map +1 -1
- package/dist/actions/send-otp.cjs +2 -2
- package/dist/actions/send-otp.cjs.map +1 -1
- package/dist/actions/send-otp.d.cts +27 -3
- package/dist/actions/send-otp.d.cts.map +1 -1
- package/dist/actions/send-otp.d.mts +27 -3
- package/dist/actions/send-otp.d.mts.map +1 -1
- package/dist/actions/send-otp.mjs +2 -2
- package/dist/actions/send-otp.mjs.map +1 -1
- package/dist/actions/send-sms-v5.cjs +2 -2
- package/dist/actions/send-sms-v5.cjs.map +1 -1
- package/dist/actions/send-sms-v5.d.cts +34 -3
- package/dist/actions/send-sms-v5.d.cts.map +1 -1
- package/dist/actions/send-sms-v5.d.mts +34 -3
- package/dist/actions/send-sms-v5.d.mts.map +1 -1
- package/dist/actions/send-sms-v5.mjs +2 -2
- package/dist/actions/send-sms-v5.mjs.map +1 -1
- package/dist/actions/verify-otp.cjs +3 -3
- package/dist/actions/verify-otp.cjs.map +1 -1
- package/dist/actions/verify-otp.d.cts +14 -3
- package/dist/actions/verify-otp.d.cts.map +1 -1
- package/dist/actions/verify-otp.d.mts +14 -3
- package/dist/actions/verify-otp.d.mts.map +1 -1
- package/dist/actions/verify-otp.mjs +3 -3
- package/dist/actions/verify-otp.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":["msg91","executeMsg91Tool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { msg91 } from \"./app\";\nimport { executeMsg91Tool } 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":["msg91","executeMsg91Tool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { msg91 } from \"./app\";\nimport { executeMsg91Tool } 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 msg91.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 executeMsg91Tool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,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,iBAAiB,MAAM,KAAgC,CAAC;EACxF;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 { msg91 } from \"./app\";\nimport { executeMsg91Tool } 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 { msg91 } from \"./app\";\nimport { executeMsg91Tool } 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 msg91.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 executeMsg91Tool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
|
@@ -5,17 +5,17 @@ const Msg91CreateUserEventsInput = zod.z.object({
|
|
|
5
5
|
events: zod.z.array(zod.z.object({
|
|
6
6
|
name: zod.z.string().describe("Name of the event to track. Use descriptive names that represent user actions (e.g., 'login', 'purchase', 'page_view', 'button_click')."),
|
|
7
7
|
timestamp: zod.z.string().describe("Event timestamp in ISO8601 format (e.g., '2023-06-27T12:00:00Z'). If omitted, the server's current time will be used.").optional(),
|
|
8
|
-
properties: zod.z.
|
|
9
|
-
}).describe("Model for individual user event details in MSG91 Segmento.")).describe("List of user events to record. You can submit multiple events for the same user in a single request."),
|
|
8
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional custom properties for the event as key-value pairs. Use this to attach additional context like product IDs, page URLs, amounts, etc.").optional()
|
|
9
|
+
}).passthrough().describe("Model for individual user event details in MSG91 Segmento.")).describe("List of user events to record. You can submit multiple events for the same user in a single request."),
|
|
10
10
|
identifier: zod.z.string().describe("Unique identifier for the user. Can be an email address or phone number with country code (e.g., '+919999999999' or 'user@example.com').")
|
|
11
11
|
}).describe("Request model for creating user events in MSG91 Segmento.");
|
|
12
12
|
const Msg91CreateUserEventsOutput = zod.z.object({
|
|
13
13
|
code: zod.z.string().describe("Response code").nullable().optional(),
|
|
14
14
|
errors: zod.z.string().describe("Error message if hasError is true").nullable().optional(),
|
|
15
|
-
status: zod.z.string().describe("API operation status ('success' or 'fail')"),
|
|
15
|
+
status: zod.z.string().describe("API operation status ('success' or 'fail')").nullable(),
|
|
16
16
|
message: zod.z.string().describe("Success message or additional information").nullable().optional(),
|
|
17
17
|
hasError: zod.z.boolean().describe("Indicates if there was an error").nullable().optional()
|
|
18
|
-
}).describe("Response model after creating user events.");
|
|
18
|
+
}).passthrough().describe("Response model after creating user events.");
|
|
19
19
|
const msg91CreateUserEvents = require_action.action("MSG91_CREATE_USER_EVENTS", {
|
|
20
20
|
slug: "msg91-create-user-events",
|
|
21
21
|
name: "Create User Events",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-events.cjs","names":["z","action"],"sources":["../../src/actions/create-user-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91CreateUserEventsInput
|
|
1
|
+
{"version":3,"file":"create-user-events.cjs","names":["z","action"],"sources":["../../src/actions/create-user-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91CreateUserEventsInput = z.object({\n events: z.array(z.object({\n name: z.string().describe(\"Name of the event to track. Use descriptive names that represent user actions (e.g., 'login', 'purchase', 'page_view', 'button_click').\"),\n timestamp: z.string().describe(\"Event timestamp in ISO8601 format (e.g., '2023-06-27T12:00:00Z'). If omitted, the server's current time will be used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Optional custom properties for the event as key-value pairs. Use this to attach additional context like product IDs, page URLs, amounts, etc.\").optional(),\n}).passthrough().describe(\"Model for individual user event details in MSG91 Segmento.\")).describe(\"List of user events to record. You can submit multiple events for the same user in a single request.\"),\n identifier: z.string().describe(\"Unique identifier for the user. Can be an email address or phone number with country code (e.g., '+919999999999' or 'user@example.com').\"),\n}).describe(\"Request model for creating user events in MSG91 Segmento.\");\nexport const Msg91CreateUserEventsOutput = z.object({\n code: z.string().describe(\"Response code\").nullable().optional(),\n errors: z.string().describe(\"Error message if hasError is true\").nullable().optional(),\n status: z.string().describe(\"API operation status ('success' or 'fail')\").nullable(),\n message: z.string().describe(\"Success message or additional information\").nullable().optional(),\n hasError: z.boolean().describe(\"Indicates if there was an error\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating user events.\");\n\nexport const msg91CreateUserEvents = action(\"MSG91_CREATE_USER_EVENTS\", {\n slug: \"msg91-create-user-events\",\n name: \"Create User Events\",\n description: \"Create and track user events in MSG91 Segmento for customer behavior analysis and segmentation. Use this tool to record user actions and behaviors such as logins, purchases, page views, button clicks, or any custom events. These events help build user profiles and enable targeted campaigns based on user behavior. Examples: - Track user login events for engagement analysis - Record purchase events with product details for sales tracking - Log page views and clicks for behavior analytics - Capture custom events with properties for detailed segmentation\",\n input: Msg91CreateUserEventsInput,\n output: Msg91CreateUserEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;EACnK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EACjK,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,sGAAsG;CACtM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;AAC5K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user-events.d.ts
|
|
4
|
-
declare const Msg91CreateUserEventsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91CreateUserEventsInput: z.ZodObject<{
|
|
5
|
+
events: z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
8
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
identifier: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const Msg91CreateUserEventsOutput: z.ZodObject<{
|
|
13
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
status: z.ZodNullable<z.ZodString>;
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const msg91CreateUserEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
events: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
name: string;
|
|
23
|
+
timestamp?: string | undefined;
|
|
24
|
+
properties?: Record<string, unknown> | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
identifier: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { msg91CreateUserEvents };
|
|
9
30
|
//# sourceMappingURL=create-user-events.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-events.d.cts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-user-events.d.cts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA;;;;;iBAMhC,MAAA;EAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user-events.d.ts
|
|
4
|
-
declare const Msg91CreateUserEventsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91CreateUserEventsInput: z.ZodObject<{
|
|
5
|
+
events: z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
8
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
identifier: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const Msg91CreateUserEventsOutput: z.ZodObject<{
|
|
13
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
status: z.ZodNullable<z.ZodString>;
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const msg91CreateUserEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
events: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
name: string;
|
|
23
|
+
timestamp?: string | undefined;
|
|
24
|
+
properties?: Record<string, unknown> | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
identifier: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { msg91CreateUserEvents };
|
|
9
30
|
//# sourceMappingURL=create-user-events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-events.d.mts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-user-events.d.mts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA;;;;;iBAMhC,MAAA;EAAA"}
|
|
@@ -8,17 +8,17 @@ const msg91CreateUserEvents = action("MSG91_CREATE_USER_EVENTS", {
|
|
|
8
8
|
events: z.array(z.object({
|
|
9
9
|
name: z.string().describe("Name of the event to track. Use descriptive names that represent user actions (e.g., 'login', 'purchase', 'page_view', 'button_click')."),
|
|
10
10
|
timestamp: z.string().describe("Event timestamp in ISO8601 format (e.g., '2023-06-27T12:00:00Z'). If omitted, the server's current time will be used.").optional(),
|
|
11
|
-
properties: z.
|
|
12
|
-
}).describe("Model for individual user event details in MSG91 Segmento.")).describe("List of user events to record. You can submit multiple events for the same user in a single request."),
|
|
11
|
+
properties: z.record(z.string(), z.unknown()).describe("Optional custom properties for the event as key-value pairs. Use this to attach additional context like product IDs, page URLs, amounts, etc.").optional()
|
|
12
|
+
}).passthrough().describe("Model for individual user event details in MSG91 Segmento.")).describe("List of user events to record. You can submit multiple events for the same user in a single request."),
|
|
13
13
|
identifier: z.string().describe("Unique identifier for the user. Can be an email address or phone number with country code (e.g., '+919999999999' or 'user@example.com').")
|
|
14
14
|
}).describe("Request model for creating user events in MSG91 Segmento."),
|
|
15
15
|
output: z.object({
|
|
16
16
|
code: z.string().describe("Response code").nullable().optional(),
|
|
17
17
|
errors: z.string().describe("Error message if hasError is true").nullable().optional(),
|
|
18
|
-
status: z.string().describe("API operation status ('success' or 'fail')"),
|
|
18
|
+
status: z.string().describe("API operation status ('success' or 'fail')").nullable(),
|
|
19
19
|
message: z.string().describe("Success message or additional information").nullable().optional(),
|
|
20
20
|
hasError: z.boolean().describe("Indicates if there was an error").nullable().optional()
|
|
21
|
-
}).describe("Response model after creating user events.")
|
|
21
|
+
}).passthrough().describe("Response model after creating user events.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { msg91CreateUserEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-events.mjs","names":[],"sources":["../../src/actions/create-user-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91CreateUserEventsInput
|
|
1
|
+
{"version":3,"file":"create-user-events.mjs","names":[],"sources":["../../src/actions/create-user-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91CreateUserEventsInput = z.object({\n events: z.array(z.object({\n name: z.string().describe(\"Name of the event to track. Use descriptive names that represent user actions (e.g., 'login', 'purchase', 'page_view', 'button_click').\"),\n timestamp: z.string().describe(\"Event timestamp in ISO8601 format (e.g., '2023-06-27T12:00:00Z'). If omitted, the server's current time will be used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Optional custom properties for the event as key-value pairs. Use this to attach additional context like product IDs, page URLs, amounts, etc.\").optional(),\n}).passthrough().describe(\"Model for individual user event details in MSG91 Segmento.\")).describe(\"List of user events to record. You can submit multiple events for the same user in a single request.\"),\n identifier: z.string().describe(\"Unique identifier for the user. Can be an email address or phone number with country code (e.g., '+919999999999' or 'user@example.com').\"),\n}).describe(\"Request model for creating user events in MSG91 Segmento.\");\nexport const Msg91CreateUserEventsOutput = z.object({\n code: z.string().describe(\"Response code\").nullable().optional(),\n errors: z.string().describe(\"Error message if hasError is true\").nullable().optional(),\n status: z.string().describe(\"API operation status ('success' or 'fail')\").nullable(),\n message: z.string().describe(\"Success message or additional information\").nullable().optional(),\n hasError: z.boolean().describe(\"Indicates if there was an error\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating user events.\");\n\nexport const msg91CreateUserEvents = action(\"MSG91_CREATE_USER_EVENTS\", {\n slug: \"msg91-create-user-events\",\n name: \"Create User Events\",\n description: \"Create and track user events in MSG91 Segmento for customer behavior analysis and segmentation. Use this tool to record user actions and behaviors such as logins, purchases, page views, button clicks, or any custom events. These events help build user profiles and enable targeted campaigns based on user behavior. Examples: - Track user login events for engagement analysis - Record purchase events with product details for sales tracking - Log page views and clicks for behavior analytics - Capture custom events with properties for detailed segmentation\",\n input: Msg91CreateUserEventsInput,\n output: Msg91CreateUserEventsOutput,\n});\n"],"mappings":";;AAoBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO;GACzB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;GACnK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;GACjK,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;EACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,sGAAsG;EACtM,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC5K,CAAC,CAAC,CAAC,SAAS,2DAaH;CACP,QAbyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const Msg91GetEventTypes_EventTypeSchema = zod.z.object({
|
|
|
8
8
|
updatedAt: zod.z.string().describe("ISO 8601 timestamp indicating when this event type was last modified").nullable().optional(),
|
|
9
9
|
description: zod.z.string().describe("Detailed description explaining what this event type tracks").nullable().optional(),
|
|
10
10
|
eventTypeId: zod.z.string().describe("Unique identifier for the event type").nullable().optional()
|
|
11
|
-
}).describe("Represents a single event type tracked in MSG91 Segmento.");
|
|
11
|
+
}).passthrough().describe("Represents a single event type tracked in MSG91 Segmento.");
|
|
12
12
|
const Msg91GetEventTypesOutput = zod.z.object({
|
|
13
13
|
code: zod.z.string().describe("API response code providing additional context about the result").nullable().optional(),
|
|
14
14
|
errors: zod.z.string().describe("Error message describing what went wrong, present only when hasError is true").nullable().optional(),
|
|
@@ -16,7 +16,7 @@ const Msg91GetEventTypesOutput = zod.z.object({
|
|
|
16
16
|
message: zod.z.string().describe("Additional informational message from the API").nullable().optional(),
|
|
17
17
|
hasError: zod.z.boolean().describe("Boolean flag indicating whether an error occurred during the request").nullable().optional(),
|
|
18
18
|
eventTypes: zod.z.array(Msg91GetEventTypes_EventTypeSchema).describe("Array of event type objects, each representing a trackable user action or behavior in Segmento").nullable().optional()
|
|
19
|
-
}).describe("Response model for GET_EVENT_TYPES action.\nReturns the list of all event types configured in MSG91 Segmento.");
|
|
19
|
+
}).passthrough().describe("Response model for GET_EVENT_TYPES action.\nReturns the list of all event types configured in MSG91 Segmento.");
|
|
20
20
|
const msg91GetEventTypes = require_action.action("MSG91_GET_EVENT_TYPES", {
|
|
21
21
|
slug: "msg91-get-event-types",
|
|
22
22
|
name: "Get Event Types",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-types.cjs","names":["z","action"],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetEventTypesInput
|
|
1
|
+
{"version":3,"file":"get-event-types.cjs","names":["z","action"],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetEventTypesInput = z.object({}).describe(\"Request model for GET_EVENT_TYPES action.\\nNo parameters are required - this endpoint retrieves all event types.\");\nconst Msg91GetEventTypes_EventTypeSchema = z.object({\n name: z.string().describe(\"Human-readable name of the event type\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp indicating when this event type was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp indicating when this event type was last modified\").nullable().optional(),\n description: z.string().describe(\"Detailed description explaining what this event type tracks\").nullable().optional(),\n eventTypeId: z.string().describe(\"Unique identifier for the event type\").nullable().optional(),\n}).passthrough().describe(\"Represents a single event type tracked in MSG91 Segmento.\");\nexport const Msg91GetEventTypesOutput = z.object({\n code: z.string().describe(\"API response code providing additional context about the result\").nullable().optional(),\n errors: z.string().describe(\"Error message describing what went wrong, present only when hasError is true\").nullable().optional(),\n status: z.string().describe(\"Operation status: 'success' for successful requests, 'fail' for errors\").nullable().optional(),\n message: z.string().describe(\"Additional informational message from the API\").nullable().optional(),\n hasError: z.boolean().describe(\"Boolean flag indicating whether an error occurred during the request\").nullable().optional(),\n eventTypes: z.array(Msg91GetEventTypes_EventTypeSchema).describe(\"Array of event type objects, each representing a trackable user action or behavior in Segmento\").nullable().optional(),\n}).passthrough().describe(\"Response model for GET_EVENT_TYPES action.\\nReturns the list of all event types configured in MSG91 Segmento.\");\n\nexport const msg91GetEventTypes = action(\"MSG91_GET_EVENT_TYPES\", {\n slug: \"msg91-get-event-types\",\n name: \"Get Event Types\",\n description: \"Retrieves all event types configured in MSG91 Segmento. Event types represent different user actions and behaviors that can be tracked (e.g., purchases, signups, page views). Use this action to discover what events are available for tracking user behavior in your Segmento account. No parameters required - returns all event types.\",\n input: Msg91GetEventTypesInput,\n output: Msg91GetEventTypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAC/K,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+GAA+G;AAEzI,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-event-types.d.ts
|
|
4
|
-
declare const Msg91GetEventTypesInput: z.
|
|
5
|
-
declare const Msg91GetEventTypesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const Msg91GetEventTypesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const Msg91GetEventTypesOutput: z.ZodObject<{
|
|
6
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
+
eventTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
eventTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const msg91GetEventTypes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { msg91GetEventTypes };
|
|
9
22
|
//# sourceMappingURL=get-event-types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-types.d.cts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-event-types.d.cts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-event-types.d.ts
|
|
4
|
-
declare const Msg91GetEventTypesInput: z.
|
|
5
|
-
declare const Msg91GetEventTypesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const Msg91GetEventTypesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const Msg91GetEventTypesOutput: z.ZodObject<{
|
|
6
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
+
eventTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
eventTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const msg91GetEventTypes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { msg91GetEventTypes };
|
|
9
22
|
//# sourceMappingURL=get-event-types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-types.d.mts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-event-types.d.mts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -8,7 +8,7 @@ const Msg91GetEventTypes_EventTypeSchema = z.object({
|
|
|
8
8
|
updatedAt: z.string().describe("ISO 8601 timestamp indicating when this event type was last modified").nullable().optional(),
|
|
9
9
|
description: z.string().describe("Detailed description explaining what this event type tracks").nullable().optional(),
|
|
10
10
|
eventTypeId: z.string().describe("Unique identifier for the event type").nullable().optional()
|
|
11
|
-
}).describe("Represents a single event type tracked in MSG91 Segmento.");
|
|
11
|
+
}).passthrough().describe("Represents a single event type tracked in MSG91 Segmento.");
|
|
12
12
|
const msg91GetEventTypes = action("MSG91_GET_EVENT_TYPES", {
|
|
13
13
|
slug: "msg91-get-event-types",
|
|
14
14
|
name: "Get Event Types",
|
|
@@ -21,7 +21,7 @@ const msg91GetEventTypes = action("MSG91_GET_EVENT_TYPES", {
|
|
|
21
21
|
message: z.string().describe("Additional informational message from the API").nullable().optional(),
|
|
22
22
|
hasError: z.boolean().describe("Boolean flag indicating whether an error occurred during the request").nullable().optional(),
|
|
23
23
|
eventTypes: z.array(Msg91GetEventTypes_EventTypeSchema).describe("Array of event type objects, each representing a trackable user action or behavior in Segmento").nullable().optional()
|
|
24
|
-
}).describe("Response model for GET_EVENT_TYPES action.\nReturns the list of all event types configured in MSG91 Segmento.")
|
|
24
|
+
}).passthrough().describe("Response model for GET_EVENT_TYPES action.\nReturns the list of all event types configured in MSG91 Segmento.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { msg91GetEventTypes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-types.mjs","names":[],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetEventTypesInput
|
|
1
|
+
{"version":3,"file":"get-event-types.mjs","names":[],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetEventTypesInput = z.object({}).describe(\"Request model for GET_EVENT_TYPES action.\\nNo parameters are required - this endpoint retrieves all event types.\");\nconst Msg91GetEventTypes_EventTypeSchema = z.object({\n name: z.string().describe(\"Human-readable name of the event type\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp indicating when this event type was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp indicating when this event type was last modified\").nullable().optional(),\n description: z.string().describe(\"Detailed description explaining what this event type tracks\").nullable().optional(),\n eventTypeId: z.string().describe(\"Unique identifier for the event type\").nullable().optional(),\n}).passthrough().describe(\"Represents a single event type tracked in MSG91 Segmento.\");\nexport const Msg91GetEventTypesOutput = z.object({\n code: z.string().describe(\"API response code providing additional context about the result\").nullable().optional(),\n errors: z.string().describe(\"Error message describing what went wrong, present only when hasError is true\").nullable().optional(),\n status: z.string().describe(\"Operation status: 'success' for successful requests, 'fail' for errors\").nullable().optional(),\n message: z.string().describe(\"Additional informational message from the API\").nullable().optional(),\n hasError: z.boolean().describe(\"Boolean flag indicating whether an error occurred during the request\").nullable().optional(),\n eventTypes: z.array(Msg91GetEventTypes_EventTypeSchema).describe(\"Array of event type objects, each representing a trackable user action or behavior in Segmento\").nullable().optional(),\n}).passthrough().describe(\"Response model for GET_EVENT_TYPES action.\\nReturns the list of all event types configured in MSG91 Segmento.\");\n\nexport const msg91GetEventTypes = action(\"MSG91_GET_EVENT_TYPES\", {\n slug: \"msg91-get-event-types\",\n name: \"Get Event Types\",\n description: \"Retrieves all event types configured in MSG91 Segmento. Event types represent different user actions and behaviors that can be tracked (e.g., purchases, signups, page views). Use this action to discover what events are available for tracking user behavior in your Segmento account. No parameters required - returns all event types.\",\n input: Msg91GetEventTypesInput,\n output: Msg91GetEventTypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAC/K,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAUrF,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,YAAY,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+GAOhB;AACV,CAAC"}
|
|
@@ -9,22 +9,22 @@ const Msg91GetFailedEventsInput = zod.z.object({
|
|
|
9
9
|
campaign_id: zod.z.string().describe("The unique identifier of the Segmento campaign. This is the campaign ID returned when creating or listing campaigns.")
|
|
10
10
|
}).describe("Request model for retrieving failed Segmento user events for a specific campaign.");
|
|
11
11
|
const Msg91GetFailedEvents_FailedEventSchema = zod.z.object({
|
|
12
|
-
reason: zod.z.string().describe("Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field)."),
|
|
13
|
-
eventId: zod.z.string().describe("Unique identifier for this specific failed event instance."),
|
|
14
|
-
recipient: zod.z.string().describe("The intended recipient of the event (email address, phone number, or user identifier)."),
|
|
15
|
-
timestamp: zod.z.string().describe("Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).")
|
|
16
|
-
});
|
|
12
|
+
reason: zod.z.string().describe("Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field).").nullable(),
|
|
13
|
+
eventId: zod.z.string().describe("Unique identifier for this specific failed event instance.").nullable(),
|
|
14
|
+
recipient: zod.z.string().describe("The intended recipient of the event (email address, phone number, or user identifier).").nullable(),
|
|
15
|
+
timestamp: zod.z.string().describe("Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).").nullable()
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const Msg91GetFailedEvents_FailedEventsDataSchema = zod.z.object({
|
|
18
|
-
page: zod.z.number().int().describe("Current page number."),
|
|
19
|
-
limit: zod.z.number().int().describe("Number of records per page."),
|
|
18
|
+
page: zod.z.number().int().describe("Current page number.").nullable(),
|
|
19
|
+
limit: zod.z.number().int().describe("Number of records per page.").nullable(),
|
|
20
20
|
total: zod.z.number().int().default(0).describe("Total number of failed events.").nullable().optional(),
|
|
21
21
|
failedEvents: zod.z.array(Msg91GetFailedEvents_FailedEventSchema).describe("List of failed event objects.").nullable().optional()
|
|
22
|
-
});
|
|
22
|
+
}).passthrough();
|
|
23
23
|
const Msg91GetFailedEventsOutput = zod.z.object({
|
|
24
24
|
data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),
|
|
25
|
-
status: zod.z.string().describe("Status of the request (e.g., 'success', 'error')."),
|
|
25
|
+
status: zod.z.string().describe("Status of the request (e.g., 'success', 'error').").nullable(),
|
|
26
26
|
message: zod.z.string().describe("Additional information about the response.").nullable().optional()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const msg91GetFailedEvents = require_action.action("MSG91_GET_FAILED_EVENTS", {
|
|
29
29
|
slug: "msg91-get-failed-events",
|
|
30
30
|
name: "Get Failed Events",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-failed-events.cjs","names":["z","action"],"sources":["../../src/actions/get-failed-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetFailedEventsInput
|
|
1
|
+
{"version":3,"file":"get-failed-events.cjs","names":["z","action"],"sources":["../../src/actions/get-failed-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetFailedEventsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Starts at 1. Use this to navigate through multiple pages of failed events.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of failed events to return per page. Must be between 1 and 100. Default is 10.\").optional(),\n end_date: z.string().describe(\"Optional end date to filter failed events (format: YYYY-MM-DD). Only events that failed on or before this date will be included.\").optional(),\n start_date: z.string().describe(\"Optional start date to filter failed events (format: YYYY-MM-DD). Only events that failed on or after this date will be included.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier of the Segmento campaign. This is the campaign ID returned when creating or listing campaigns.\"),\n}).describe(\"Request model for retrieving failed Segmento user events for a specific campaign.\");\nconst Msg91GetFailedEvents_FailedEventSchema = z.object({\n reason: z.string().describe(\"Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field).\").nullable(),\n eventId: z.string().describe(\"Unique identifier for this specific failed event instance.\").nullable(),\n recipient: z.string().describe(\"The intended recipient of the event (email address, phone number, or user identifier).\").nullable(),\n timestamp: z.string().describe(\"Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).\").nullable(),\n}).passthrough();\nconst Msg91GetFailedEvents_FailedEventsDataSchema = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n limit: z.number().int().describe(\"Number of records per page.\").nullable(),\n total: z.number().int().default(0).describe(\"Total number of failed events.\").nullable().optional(),\n failedEvents: z.array(Msg91GetFailedEvents_FailedEventSchema).describe(\"List of failed event objects.\").nullable().optional(),\n}).passthrough();\nexport const Msg91GetFailedEventsOutput = z.object({\n data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the request (e.g., 'success', 'error').\").nullable(),\n message: z.string().describe(\"Additional information about the response.\").nullable().optional(),\n}).passthrough();\n\nexport const msg91GetFailedEvents = action(\"MSG91_GET_FAILED_EVENTS\", {\n slug: \"msg91-get-failed-events\",\n name: \"Get Failed Events\",\n description: \"Retrieve failed user events from a MSG91 Segmento campaign. This tool fetches events that failed to process during campaign execution, helping you identify and debug issues such as validation errors, invalid recipients, or missing required data. Use this when you need to: - Investigate why certain events didn't process successfully - Get detailed failure reasons for troubleshooting - Monitor campaign health and identify patterns in failures - Retrieve failed events within a specific date range Results are paginated for large datasets. Requires a valid campaign_id from a Segmento campaign.\",\n input: Msg91GetFailedEventsInput,\n output: Msg91GetFailedEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACvJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CAC3K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC9K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AACzJ,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC7J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-failed-events.d.ts
|
|
4
|
-
declare const Msg91GetFailedEventsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91GetFailedEventsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
8
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
9
|
+
campaign_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const Msg91GetFailedEventsOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
16
|
+
failedEvents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
17
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
18
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
recipient: z.ZodNullable<z.ZodString>;
|
|
20
|
+
timestamp: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const msg91GetFailedEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
campaign_id: string;
|
|
28
|
+
page?: number | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
end_date?: string | undefined;
|
|
31
|
+
start_date?: string | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { msg91GetFailedEvents };
|
|
9
35
|
//# sourceMappingURL=get-failed-events.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-failed-events.d.cts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-failed-events.d.cts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-failed-events.d.ts
|
|
4
|
-
declare const Msg91GetFailedEventsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91GetFailedEventsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
8
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
9
|
+
campaign_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const Msg91GetFailedEventsOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
16
|
+
failedEvents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
17
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
18
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
recipient: z.ZodNullable<z.ZodString>;
|
|
20
|
+
timestamp: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const msg91GetFailedEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
campaign_id: string;
|
|
28
|
+
page?: number | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
end_date?: string | undefined;
|
|
31
|
+
start_date?: string | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { msg91GetFailedEvents };
|
|
9
35
|
//# sourceMappingURL=get-failed-events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-failed-events.d.mts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-failed-events.d.mts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -9,17 +9,17 @@ const Msg91GetFailedEventsInput = z.object({
|
|
|
9
9
|
campaign_id: z.string().describe("The unique identifier of the Segmento campaign. This is the campaign ID returned when creating or listing campaigns.")
|
|
10
10
|
}).describe("Request model for retrieving failed Segmento user events for a specific campaign.");
|
|
11
11
|
const Msg91GetFailedEvents_FailedEventSchema = z.object({
|
|
12
|
-
reason: z.string().describe("Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field)."),
|
|
13
|
-
eventId: z.string().describe("Unique identifier for this specific failed event instance."),
|
|
14
|
-
recipient: z.string().describe("The intended recipient of the event (email address, phone number, or user identifier)."),
|
|
15
|
-
timestamp: z.string().describe("Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).")
|
|
16
|
-
});
|
|
12
|
+
reason: z.string().describe("Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field).").nullable(),
|
|
13
|
+
eventId: z.string().describe("Unique identifier for this specific failed event instance.").nullable(),
|
|
14
|
+
recipient: z.string().describe("The intended recipient of the event (email address, phone number, or user identifier).").nullable(),
|
|
15
|
+
timestamp: z.string().describe("Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).").nullable()
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const Msg91GetFailedEvents_FailedEventsDataSchema = z.object({
|
|
18
|
-
page: z.number().int().describe("Current page number."),
|
|
19
|
-
limit: z.number().int().describe("Number of records per page."),
|
|
18
|
+
page: z.number().int().describe("Current page number.").nullable(),
|
|
19
|
+
limit: z.number().int().describe("Number of records per page.").nullable(),
|
|
20
20
|
total: z.number().int().default(0).describe("Total number of failed events.").nullable().optional(),
|
|
21
21
|
failedEvents: z.array(Msg91GetFailedEvents_FailedEventSchema).describe("List of failed event objects.").nullable().optional()
|
|
22
|
-
});
|
|
22
|
+
}).passthrough();
|
|
23
23
|
const msg91GetFailedEvents = action("MSG91_GET_FAILED_EVENTS", {
|
|
24
24
|
slug: "msg91-get-failed-events",
|
|
25
25
|
name: "Get Failed Events",
|
|
@@ -27,9 +27,9 @@ const msg91GetFailedEvents = action("MSG91_GET_FAILED_EVENTS", {
|
|
|
27
27
|
input: Msg91GetFailedEventsInput,
|
|
28
28
|
output: z.object({
|
|
29
29
|
data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),
|
|
30
|
-
status: z.string().describe("Status of the request (e.g., 'success', 'error')."),
|
|
30
|
+
status: z.string().describe("Status of the request (e.g., 'success', 'error').").nullable(),
|
|
31
31
|
message: z.string().describe("Additional information about the response.").nullable().optional()
|
|
32
|
-
})
|
|
32
|
+
}).passthrough()
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { msg91GetFailedEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-failed-events.mjs","names":[],"sources":["../../src/actions/get-failed-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetFailedEventsInput
|
|
1
|
+
{"version":3,"file":"get-failed-events.mjs","names":[],"sources":["../../src/actions/get-failed-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91GetFailedEventsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Starts at 1. Use this to navigate through multiple pages of failed events.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of failed events to return per page. Must be between 1 and 100. Default is 10.\").optional(),\n end_date: z.string().describe(\"Optional end date to filter failed events (format: YYYY-MM-DD). Only events that failed on or before this date will be included.\").optional(),\n start_date: z.string().describe(\"Optional start date to filter failed events (format: YYYY-MM-DD). Only events that failed on or after this date will be included.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier of the Segmento campaign. This is the campaign ID returned when creating or listing campaigns.\"),\n}).describe(\"Request model for retrieving failed Segmento user events for a specific campaign.\");\nconst Msg91GetFailedEvents_FailedEventSchema = z.object({\n reason: z.string().describe(\"Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field).\").nullable(),\n eventId: z.string().describe(\"Unique identifier for this specific failed event instance.\").nullable(),\n recipient: z.string().describe(\"The intended recipient of the event (email address, phone number, or user identifier).\").nullable(),\n timestamp: z.string().describe(\"Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).\").nullable(),\n}).passthrough();\nconst Msg91GetFailedEvents_FailedEventsDataSchema = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n limit: z.number().int().describe(\"Number of records per page.\").nullable(),\n total: z.number().int().default(0).describe(\"Total number of failed events.\").nullable().optional(),\n failedEvents: z.array(Msg91GetFailedEvents_FailedEventSchema).describe(\"List of failed event objects.\").nullable().optional(),\n}).passthrough();\nexport const Msg91GetFailedEventsOutput = z.object({\n data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the request (e.g., 'success', 'error').\").nullable(),\n message: z.string().describe(\"Additional information about the response.\").nullable().optional(),\n}).passthrough();\n\nexport const msg91GetFailedEvents = action(\"MSG91_GET_FAILED_EVENTS\", {\n slug: \"msg91-get-failed-events\",\n name: \"Get Failed Events\",\n description: \"Retrieve failed user events from a MSG91 Segmento campaign. This tool fetches events that failed to process during campaign execution, helping you identify and debug issues such as validation errors, invalid recipients, or missing required data. Use this when you need to: - Investigate why certain events didn't process successfully - Get detailed failure reasons for troubleshooting - Monitor campaign health and identify patterns in failures - Retrieve failed events within a specific date range Results are paginated for large datasets. Requires a valid campaign_id from a Segmento campaign.\",\n input: Msg91GetFailedEventsInput,\n output: Msg91GetFailedEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACvJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CAC3K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC9K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AACzJ,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,yCAAyC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC7J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAClI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAc,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|