@keystrokehq/msg91 0.1.0

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.
Files changed (98) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-user-events.cjs +29 -0
  7. package/dist/actions/create-user-events.cjs.map +1 -0
  8. package/dist/actions/create-user-events.d.cts +9 -0
  9. package/dist/actions/create-user-events.d.cts.map +1 -0
  10. package/dist/actions/create-user-events.d.mts +9 -0
  11. package/dist/actions/create-user-events.d.mts.map +1 -0
  12. package/dist/actions/create-user-events.mjs +26 -0
  13. package/dist/actions/create-user-events.mjs.map +1 -0
  14. package/dist/actions/get-event-types.cjs +30 -0
  15. package/dist/actions/get-event-types.cjs.map +1 -0
  16. package/dist/actions/get-event-types.d.cts +9 -0
  17. package/dist/actions/get-event-types.d.cts.map +1 -0
  18. package/dist/actions/get-event-types.d.mts +9 -0
  19. package/dist/actions/get-event-types.d.mts.map +1 -0
  20. package/dist/actions/get-event-types.mjs +29 -0
  21. package/dist/actions/get-event-types.mjs.map +1 -0
  22. package/dist/actions/get-failed-events.cjs +38 -0
  23. package/dist/actions/get-failed-events.cjs.map +1 -0
  24. package/dist/actions/get-failed-events.d.cts +9 -0
  25. package/dist/actions/get-failed-events.d.cts.map +1 -0
  26. package/dist/actions/get-failed-events.d.mts +9 -0
  27. package/dist/actions/get-failed-events.d.mts.map +1 -0
  28. package/dist/actions/get-failed-events.mjs +37 -0
  29. package/dist/actions/get-failed-events.mjs.map +1 -0
  30. package/dist/actions/index.cjs +17 -0
  31. package/dist/actions/index.d.cts +9 -0
  32. package/dist/actions/index.d.mts +9 -0
  33. package/dist/actions/index.mjs +9 -0
  34. package/dist/actions/list-campaigns.cjs +35 -0
  35. package/dist/actions/list-campaigns.cjs.map +1 -0
  36. package/dist/actions/list-campaigns.d.cts +9 -0
  37. package/dist/actions/list-campaigns.d.cts.map +1 -0
  38. package/dist/actions/list-campaigns.d.mts +9 -0
  39. package/dist/actions/list-campaigns.d.mts.map +1 -0
  40. package/dist/actions/list-campaigns.mjs +34 -0
  41. package/dist/actions/list-campaigns.mjs.map +1 -0
  42. package/dist/actions/resend-otp.cjs +22 -0
  43. package/dist/actions/resend-otp.cjs.map +1 -0
  44. package/dist/actions/resend-otp.d.cts +9 -0
  45. package/dist/actions/resend-otp.d.cts.map +1 -0
  46. package/dist/actions/resend-otp.d.mts +9 -0
  47. package/dist/actions/resend-otp.d.mts.map +1 -0
  48. package/dist/actions/resend-otp.mjs +19 -0
  49. package/dist/actions/resend-otp.mjs.map +1 -0
  50. package/dist/actions/send-otp.cjs +30 -0
  51. package/dist/actions/send-otp.cjs.map +1 -0
  52. package/dist/actions/send-otp.d.cts +9 -0
  53. package/dist/actions/send-otp.d.cts.map +1 -0
  54. package/dist/actions/send-otp.d.mts +9 -0
  55. package/dist/actions/send-otp.d.mts.map +1 -0
  56. package/dist/actions/send-otp.mjs +27 -0
  57. package/dist/actions/send-otp.mjs.map +1 -0
  58. package/dist/actions/send-sms-v5.cjs +33 -0
  59. package/dist/actions/send-sms-v5.cjs.map +1 -0
  60. package/dist/actions/send-sms-v5.d.cts +9 -0
  61. package/dist/actions/send-sms-v5.d.cts.map +1 -0
  62. package/dist/actions/send-sms-v5.d.mts +9 -0
  63. package/dist/actions/send-sms-v5.d.mts.map +1 -0
  64. package/dist/actions/send-sms-v5.mjs +30 -0
  65. package/dist/actions/send-sms-v5.mjs.map +1 -0
  66. package/dist/actions/verify-otp.cjs +23 -0
  67. package/dist/actions/verify-otp.cjs.map +1 -0
  68. package/dist/actions/verify-otp.d.cts +9 -0
  69. package/dist/actions/verify-otp.d.cts.map +1 -0
  70. package/dist/actions/verify-otp.d.mts +9 -0
  71. package/dist/actions/verify-otp.d.mts.map +1 -0
  72. package/dist/actions/verify-otp.mjs +20 -0
  73. package/dist/actions/verify-otp.mjs.map +1 -0
  74. package/dist/app.cjs +9 -0
  75. package/dist/app.cjs.map +1 -0
  76. package/dist/app.d.cts +5 -0
  77. package/dist/app.d.cts.map +1 -0
  78. package/dist/app.d.mts +5 -0
  79. package/dist/app.d.mts.map +1 -0
  80. package/dist/app.mjs +10 -0
  81. package/dist/app.mjs.map +1 -0
  82. package/dist/catalog.cjs +15 -0
  83. package/dist/catalog.cjs.map +1 -0
  84. package/dist/catalog.d.cts +14 -0
  85. package/dist/catalog.d.cts.map +1 -0
  86. package/dist/catalog.d.mts +14 -0
  87. package/dist/catalog.d.mts.map +1 -0
  88. package/dist/catalog.mjs +15 -0
  89. package/dist/catalog.mjs.map +1 -0
  90. package/dist/execute.cjs +18 -0
  91. package/dist/execute.cjs.map +1 -0
  92. package/dist/execute.mjs +18 -0
  93. package/dist/execute.mjs.map +1 -0
  94. package/dist/index.cjs +22 -0
  95. package/dist/index.d.cts +11 -0
  96. package/dist/index.d.mts +11 -0
  97. package/dist/index.mjs +12 -0
  98. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/msg91
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `msg91`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 8
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { msg91CreateUserEvents } from "@keystrokehq/msg91/actions";
12
+
13
+ export default defineAgent({
14
+ key: "msg91-agent",
15
+ tools: [msg91CreateUserEvents],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.msg91.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeMsg91Tool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +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: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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"}
@@ -0,0 +1,21 @@
1
+ import { msg91 } from "./app.mjs";
2
+ import { executeMsg91Tool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return msg91.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeMsg91Tool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +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: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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"}
@@ -0,0 +1,29 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-user-events.ts
4
+ const Msg91CreateUserEventsInput = zod.z.object({
5
+ events: zod.z.array(zod.z.object({
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
+ 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.object({}).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
+ }).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
+ 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
+ }).describe("Request model for creating user events in MSG91 Segmento.");
12
+ const Msg91CreateUserEventsOutput = zod.z.object({
13
+ code: zod.z.string().describe("Response code").nullable().optional(),
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')"),
16
+ message: zod.z.string().describe("Success message or additional information").nullable().optional(),
17
+ hasError: zod.z.boolean().describe("Indicates if there was an error").nullable().optional()
18
+ }).describe("Response model after creating user events.");
19
+ const msg91CreateUserEvents = require_action.action("MSG91_CREATE_USER_EVENTS", {
20
+ slug: "msg91-create-user-events",
21
+ name: "Create User Events",
22
+ 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",
23
+ input: Msg91CreateUserEventsInput,
24
+ output: Msg91CreateUserEventsOutput
25
+ });
26
+ //#endregion
27
+ exports.msg91CreateUserEvents = msg91CreateUserEvents;
28
+
29
+ //# sourceMappingURL=create-user-events.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.object({}).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}).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.ZodTypeAny = 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')\"),\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}).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,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CAC9L,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,sGAAsG;CACxL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;AAC5K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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;CACxE,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,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user-events.d.ts
4
+ declare const Msg91CreateUserEventsInput: z.ZodTypeAny;
5
+ declare const Msg91CreateUserEventsOutput: z.ZodTypeAny;
6
+ declare const msg91CreateUserEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91CreateUserEvents };
9
+ //# sourceMappingURL=create-user-events.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-events.d.cts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAO6B;AAAA,cAC3D,2BAAA,EAA6B,CAAA,CAAE,UAMa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user-events.d.ts
4
+ declare const Msg91CreateUserEventsInput: z.ZodTypeAny;
5
+ declare const Msg91CreateUserEventsOutput: z.ZodTypeAny;
6
+ declare const msg91CreateUserEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91CreateUserEvents };
9
+ //# sourceMappingURL=create-user-events.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-events.d.mts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAO6B;AAAA,cAC3D,2BAAA,EAA6B,CAAA,CAAE,UAMa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const msg91CreateUserEvents = action("MSG91_CREATE_USER_EVENTS", {
4
+ slug: "msg91-create-user-events",
5
+ name: "Create User Events",
6
+ 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",
7
+ input: z.object({
8
+ events: z.array(z.object({
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
+ 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.object({}).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
+ }).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
+ 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
+ }).describe("Request model for creating user events in MSG91 Segmento."),
15
+ output: z.object({
16
+ code: z.string().describe("Response code").nullable().optional(),
17
+ errors: z.string().describe("Error message if hasError is true").nullable().optional(),
18
+ status: z.string().describe("API operation status ('success' or 'fail')"),
19
+ message: z.string().describe("Success message or additional information").nullable().optional(),
20
+ hasError: z.boolean().describe("Indicates if there was an error").nullable().optional()
21
+ }).describe("Response model after creating user events.")
22
+ });
23
+ //#endregion
24
+ export { msg91CreateUserEvents };
25
+
26
+ //# sourceMappingURL=create-user-events.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.object({}).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}).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.ZodTypeAny = 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')\"),\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}).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,OApBsD,EAAE,OAAO;EAC/D,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,CAAC,CAAC,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;EAC9L,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,sGAAsG;EACxL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC5K,CAAC,CAAC,CAAC,SAAS,2DAaH;CACP,QAbuD,EAAE,OAAO;EAChE,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;EACxE,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,SAAS,4CAOF;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-event-types.ts
4
+ const Msg91GetEventTypesInput = zod.z.object({}).describe("Request model for GET_EVENT_TYPES action.\nNo parameters are required - this endpoint retrieves all event types.");
5
+ const Msg91GetEventTypes_EventTypeSchema = zod.z.object({
6
+ name: zod.z.string().describe("Human-readable name of the event type").nullable().optional(),
7
+ createdAt: zod.z.string().describe("ISO 8601 timestamp indicating when this event type was created").nullable().optional(),
8
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp indicating when this event type was last modified").nullable().optional(),
9
+ description: zod.z.string().describe("Detailed description explaining what this event type tracks").nullable().optional(),
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.");
12
+ const Msg91GetEventTypesOutput = zod.z.object({
13
+ code: zod.z.string().describe("API response code providing additional context about the result").nullable().optional(),
14
+ errors: zod.z.string().describe("Error message describing what went wrong, present only when hasError is true").nullable().optional(),
15
+ status: zod.z.string().describe("Operation status: 'success' for successful requests, 'fail' for errors").nullable().optional(),
16
+ message: zod.z.string().describe("Additional informational message from the API").nullable().optional(),
17
+ hasError: zod.z.boolean().describe("Boolean flag indicating whether an error occurred during the request").nullable().optional(),
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.");
20
+ const msg91GetEventTypes = require_action.action("MSG91_GET_EVENT_TYPES", {
21
+ slug: "msg91-get-event-types",
22
+ name: "Get Event Types",
23
+ 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.",
24
+ input: Msg91GetEventTypesInput,
25
+ output: Msg91GetEventTypesOutput
26
+ });
27
+ //#endregion
28
+ exports.msg91GetEventTypes = msg91GetEventTypes;
29
+
30
+ //# sourceMappingURL=get-event-types.cjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({}).describe(\"Request model for GET_EVENT_TYPES action.\\nNo parameters are required - this endpoint retrieves all event types.\");\nconst Msg91GetEventTypes_EventTypeSchema: z.ZodTypeAny = 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}).describe(\"Represents a single event type tracked in MSG91 Segmento.\");\nexport const Msg91GetEventTypesOutput: z.ZodTypeAny = 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}).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,0BAAwCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAC7L,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,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,SAAS,2DAA2D;AACvE,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,SAAS,+GAA+G;AAE3H,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-event-types.d.ts
4
+ declare const Msg91GetEventTypesInput: z.ZodTypeAny;
5
+ declare const Msg91GetEventTypesOutput: z.ZodTypeAny;
6
+ declare const msg91GetEventTypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91GetEventTypes };
9
+ //# sourceMappingURL=get-event-types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-types.d.cts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAAsJ;AAAA,cAQjL,wBAAA,EAA0B,CAAA,CAAE,UAOmF;AAAA,cAE/G,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-event-types.d.ts
4
+ declare const Msg91GetEventTypesInput: z.ZodTypeAny;
5
+ declare const Msg91GetEventTypesOutput: z.ZodTypeAny;
6
+ declare const msg91GetEventTypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91GetEventTypes };
9
+ //# sourceMappingURL=get-event-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-types.d.mts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAAsJ;AAAA,cAQjL,wBAAA,EAA0B,CAAA,CAAE,UAOmF;AAAA,cAE/G,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-event-types.ts
4
+ const Msg91GetEventTypesInput = z.object({}).describe("Request model for GET_EVENT_TYPES action.\nNo parameters are required - this endpoint retrieves all event types.");
5
+ const Msg91GetEventTypes_EventTypeSchema = z.object({
6
+ name: z.string().describe("Human-readable name of the event type").nullable().optional(),
7
+ createdAt: z.string().describe("ISO 8601 timestamp indicating when this event type was created").nullable().optional(),
8
+ updatedAt: z.string().describe("ISO 8601 timestamp indicating when this event type was last modified").nullable().optional(),
9
+ description: z.string().describe("Detailed description explaining what this event type tracks").nullable().optional(),
10
+ eventTypeId: z.string().describe("Unique identifier for the event type").nullable().optional()
11
+ }).describe("Represents a single event type tracked in MSG91 Segmento.");
12
+ const msg91GetEventTypes = action("MSG91_GET_EVENT_TYPES", {
13
+ slug: "msg91-get-event-types",
14
+ name: "Get Event Types",
15
+ 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.",
16
+ input: Msg91GetEventTypesInput,
17
+ output: z.object({
18
+ code: z.string().describe("API response code providing additional context about the result").nullable().optional(),
19
+ errors: z.string().describe("Error message describing what went wrong, present only when hasError is true").nullable().optional(),
20
+ status: z.string().describe("Operation status: 'success' for successful requests, 'fail' for errors").nullable().optional(),
21
+ message: z.string().describe("Additional informational message from the API").nullable().optional(),
22
+ hasError: z.boolean().describe("Boolean flag indicating whether an error occurred during the request").nullable().optional(),
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.")
25
+ });
26
+ //#endregion
27
+ export { msg91GetEventTypes };
28
+
29
+ //# sourceMappingURL=get-event-types.mjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({}).describe(\"Request model for GET_EVENT_TYPES action.\\nNo parameters are required - this endpoint retrieves all event types.\");\nconst Msg91GetEventTypes_EventTypeSchema: z.ZodTypeAny = 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}).describe(\"Represents a single event type tracked in MSG91 Segmento.\");\nexport const Msg91GetEventTypesOutput: z.ZodTypeAny = 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}).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,0BAAwC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAC7L,MAAM,qCAAmD,EAAE,OAAO;CAChE,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,SAAS,2DAA2D;AAUvE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoD,EAAE,OAAO;EAC7D,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,SAAS,+GAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-failed-events.ts
4
+ const Msg91GetFailedEventsInput = zod.z.object({
5
+ page: zod.z.number().int().default(1).describe("Page number for pagination. Starts at 1. Use this to navigate through multiple pages of failed events.").optional(),
6
+ limit: zod.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(),
7
+ end_date: zod.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(),
8
+ start_date: zod.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(),
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
+ }).describe("Request model for retrieving failed Segmento user events for a specific campaign.");
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
+ });
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."),
20
+ total: zod.z.number().int().default(0).describe("Total number of failed events.").nullable().optional(),
21
+ failedEvents: zod.z.array(Msg91GetFailedEvents_FailedEventSchema).describe("List of failed event objects.").nullable().optional()
22
+ });
23
+ const Msg91GetFailedEventsOutput = zod.z.object({
24
+ data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),
25
+ status: zod.z.string().describe("Status of the request (e.g., 'success', 'error')."),
26
+ message: zod.z.string().describe("Additional information about the response.").nullable().optional()
27
+ });
28
+ const msg91GetFailedEvents = require_action.action("MSG91_GET_FAILED_EVENTS", {
29
+ slug: "msg91-get-failed-events",
30
+ name: "Get Failed Events",
31
+ 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.",
32
+ input: Msg91GetFailedEventsInput,
33
+ output: Msg91GetFailedEventsOutput
34
+ });
35
+ //#endregion
36
+ exports.msg91GetFailedEvents = msg91GetFailedEvents;
37
+
38
+ //# sourceMappingURL=get-failed-events.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n reason: z.string().describe(\"Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field).\"),\n eventId: z.string().describe(\"Unique identifier for this specific failed event instance.\"),\n recipient: z.string().describe(\"The intended recipient of the event (email address, phone number, or user identifier).\"),\n timestamp: z.string().describe(\"Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).\"),\n});\nconst Msg91GetFailedEvents_FailedEventsDataSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number.\"),\n limit: z.number().int().describe(\"Number of records per page.\"),\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});\nexport const Msg91GetFailedEventsOutput: z.ZodTypeAny = z.object({\n data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the request (e.g., 'success', 'error').\"),\n message: z.string().describe(\"Additional information about the response.\").nullable().optional(),\n});\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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAClJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;AAC7H,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC9D,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;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-failed-events.d.ts
4
+ declare const Msg91GetFailedEventsInput: z.ZodTypeAny;
5
+ declare const Msg91GetFailedEventsOutput: z.ZodTypeAny;
6
+ declare const msg91GetFailedEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91GetFailedEvents };
9
+ //# sourceMappingURL=get-failed-events.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-failed-events.d.cts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAMsD;AAAA,cAanF,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-failed-events.d.ts
4
+ declare const Msg91GetFailedEventsInput: z.ZodTypeAny;
5
+ declare const Msg91GetFailedEventsOutput: z.ZodTypeAny;
6
+ declare const msg91GetFailedEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91GetFailedEvents };
9
+ //# sourceMappingURL=get-failed-events.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-failed-events.d.mts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAMsD;AAAA,cAanF,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-failed-events.ts
4
+ const Msg91GetFailedEventsInput = z.object({
5
+ 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(),
6
+ 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(),
7
+ 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(),
8
+ 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(),
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
+ }).describe("Request model for retrieving failed Segmento user events for a specific campaign.");
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
+ });
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."),
20
+ total: z.number().int().default(0).describe("Total number of failed events.").nullable().optional(),
21
+ failedEvents: z.array(Msg91GetFailedEvents_FailedEventSchema).describe("List of failed event objects.").nullable().optional()
22
+ });
23
+ const msg91GetFailedEvents = action("MSG91_GET_FAILED_EVENTS", {
24
+ slug: "msg91-get-failed-events",
25
+ name: "Get Failed Events",
26
+ 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.",
27
+ input: Msg91GetFailedEventsInput,
28
+ output: z.object({
29
+ data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),
30
+ status: z.string().describe("Status of the request (e.g., 'success', 'error')."),
31
+ message: z.string().describe("Additional information about the response.").nullable().optional()
32
+ })
33
+ });
34
+ //#endregion
35
+ export { msg91GetFailedEvents };
36
+
37
+ //# sourceMappingURL=get-failed-events.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n reason: z.string().describe(\"Detailed reason explaining why the event failed (e.g., validation error, invalid recipient, missing required field).\"),\n eventId: z.string().describe(\"Unique identifier for this specific failed event instance.\"),\n recipient: z.string().describe(\"The intended recipient of the event (email address, phone number, or user identifier).\"),\n timestamp: z.string().describe(\"Timestamp when the event failure occurred, in ISO8601 format (e.g., 2024-01-30T12:00:00Z).\"),\n});\nconst Msg91GetFailedEvents_FailedEventsDataSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number.\"),\n limit: z.number().int().describe(\"Number of records per page.\"),\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});\nexport const Msg91GetFailedEventsOutput: z.ZodTypeAny = z.object({\n data: Msg91GetFailedEvents_FailedEventsDataSchema.nullable().optional(),\n status: z.string().describe(\"Status of the request (e.g., 'success', 'error').\"),\n message: z.string().describe(\"Additional information about the response.\").nullable().optional(),\n});\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,4BAA0C,EAAE,OAAO;CAC9D,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,yCAAuD,EAAE,OAAO;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAClJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;AAC7H,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC9D,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;AAOD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAOU;AACV,CAAC"}
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_user_events = require("./create-user-events.cjs");
3
+ const require_get_event_types = require("./get-event-types.cjs");
4
+ const require_get_failed_events = require("./get-failed-events.cjs");
5
+ const require_list_campaigns = require("./list-campaigns.cjs");
6
+ const require_resend_otp = require("./resend-otp.cjs");
7
+ const require_send_otp = require("./send-otp.cjs");
8
+ const require_send_sms_v5 = require("./send-sms-v5.cjs");
9
+ const require_verify_otp = require("./verify-otp.cjs");
10
+ exports.msg91CreateUserEvents = require_create_user_events.msg91CreateUserEvents;
11
+ exports.msg91GetEventTypes = require_get_event_types.msg91GetEventTypes;
12
+ exports.msg91GetFailedEvents = require_get_failed_events.msg91GetFailedEvents;
13
+ exports.msg91ListCampaigns = require_list_campaigns.msg91ListCampaigns;
14
+ exports.msg91ResendOtp = require_resend_otp.msg91ResendOtp;
15
+ exports.msg91SendOtp = require_send_otp.msg91SendOtp;
16
+ exports.msg91SendSmsV5 = require_send_sms_v5.msg91SendSmsV5;
17
+ exports.msg91VerifyOtp = require_verify_otp.msg91VerifyOtp;
@@ -0,0 +1,9 @@
1
+ import { msg91CreateUserEvents } from "./create-user-events.cjs";
2
+ import { msg91GetEventTypes } from "./get-event-types.cjs";
3
+ import { msg91GetFailedEvents } from "./get-failed-events.cjs";
4
+ import { msg91ListCampaigns } from "./list-campaigns.cjs";
5
+ import { msg91ResendOtp } from "./resend-otp.cjs";
6
+ import { msg91SendOtp } from "./send-otp.cjs";
7
+ import { msg91SendSmsV5 } from "./send-sms-v5.cjs";
8
+ import { msg91VerifyOtp } from "./verify-otp.cjs";
9
+ export { msg91CreateUserEvents, msg91GetEventTypes, msg91GetFailedEvents, msg91ListCampaigns, msg91ResendOtp, msg91SendOtp, msg91SendSmsV5, msg91VerifyOtp };
@@ -0,0 +1,9 @@
1
+ import { msg91CreateUserEvents } from "./create-user-events.mjs";
2
+ import { msg91GetEventTypes } from "./get-event-types.mjs";
3
+ import { msg91GetFailedEvents } from "./get-failed-events.mjs";
4
+ import { msg91ListCampaigns } from "./list-campaigns.mjs";
5
+ import { msg91ResendOtp } from "./resend-otp.mjs";
6
+ import { msg91SendOtp } from "./send-otp.mjs";
7
+ import { msg91SendSmsV5 } from "./send-sms-v5.mjs";
8
+ import { msg91VerifyOtp } from "./verify-otp.mjs";
9
+ export { msg91CreateUserEvents, msg91GetEventTypes, msg91GetFailedEvents, msg91ListCampaigns, msg91ResendOtp, msg91SendOtp, msg91SendSmsV5, msg91VerifyOtp };
@@ -0,0 +1,9 @@
1
+ import { msg91CreateUserEvents } from "./create-user-events.mjs";
2
+ import { msg91GetEventTypes } from "./get-event-types.mjs";
3
+ import { msg91GetFailedEvents } from "./get-failed-events.mjs";
4
+ import { msg91ListCampaigns } from "./list-campaigns.mjs";
5
+ import { msg91ResendOtp } from "./resend-otp.mjs";
6
+ import { msg91SendOtp } from "./send-otp.mjs";
7
+ import { msg91SendSmsV5 } from "./send-sms-v5.mjs";
8
+ import { msg91VerifyOtp } from "./verify-otp.mjs";
9
+ export { msg91CreateUserEvents, msg91GetEventTypes, msg91GetFailedEvents, msg91ListCampaigns, msg91ResendOtp, msg91SendOtp, msg91SendSmsV5, msg91VerifyOtp };
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-campaigns.ts
4
+ const Msg91ListCampaignsInput = zod.z.object({
5
+ page: zod.z.number().int().describe("Page number for pagination.").optional(),
6
+ limit: zod.z.number().int().describe("Number of campaigns per page.").optional()
7
+ }).describe("Request model for listing Segmento campaigns with optional pagination parameters.");
8
+ const Msg91ListCampaigns_CampaignSchema = zod.z.object({
9
+ name: zod.z.string().describe("Name of the campaign."),
10
+ campaign_id: zod.z.number().int().describe("Unique identifier of the campaign.")
11
+ }).describe("Represents a Segmento campaign.");
12
+ const Msg91ListCampaigns_CampaignListDataSchema = zod.z.object({
13
+ total: zod.z.number().int().describe("Total number of campaigns."),
14
+ per_page: zod.z.number().int().describe("Number of campaigns per page."),
15
+ campaigns: zod.z.array(Msg91ListCampaigns_CampaignSchema).describe("List of campaigns."),
16
+ current_page: zod.z.number().int().describe("Current page number.")
17
+ }).describe("Pagination details and list of campaigns.");
18
+ const Msg91ListCampaignsOutput = zod.z.object({
19
+ code: zod.z.string().describe("Error code (present in error responses).").nullable().optional(),
20
+ data: Msg91ListCampaigns_CampaignListDataSchema.nullable().optional(),
21
+ errors: zod.z.string().describe("Error message (present in error responses).").nullable().optional(),
22
+ status: zod.z.string().describe("Status of the response ('success' or 'fail')."),
23
+ hasError: zod.z.boolean().describe("Indicates if there's an error (present in error responses).").nullable().optional()
24
+ }).describe("Response model for listing Segmento campaigns.");
25
+ const msg91ListCampaigns = require_action.action("MSG91_LIST_CAMPAIGNS", {
26
+ slug: "msg91-list-campaigns",
27
+ name: "List Campaigns",
28
+ description: "Tool to list all campaigns in Segmento. Use when you need to retrieve campaigns with pagination support.",
29
+ input: Msg91ListCampaignsInput,
30
+ output: Msg91ListCampaignsOutput
31
+ });
32
+ //#endregion
33
+ exports.msg91ListCampaigns = msg91ListCampaigns;
34
+
35
+ //# sourceMappingURL=list-campaigns.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91ListCampaignsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n limit: z.number().int().describe(\"Number of campaigns per page.\").optional(),\n}).describe(\"Request model for listing Segmento campaigns with optional pagination parameters.\");\nconst Msg91ListCampaigns_CampaignSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign.\"),\n campaign_id: z.number().int().describe(\"Unique identifier of the campaign.\"),\n}).describe(\"Represents a Segmento campaign.\");\nconst Msg91ListCampaigns_CampaignListDataSchema: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of campaigns.\"),\n per_page: z.number().int().describe(\"Number of campaigns per page.\"),\n campaigns: z.array(Msg91ListCampaigns_CampaignSchema).describe(\"List of campaigns.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination details and list of campaigns.\");\nexport const Msg91ListCampaignsOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code (present in error responses).\").nullable().optional(),\n data: Msg91ListCampaigns_CampaignListDataSchema.nullable().optional(),\n errors: z.string().describe(\"Error message (present in error responses).\").nullable().optional(),\n status: z.string().describe(\"Status of the response ('success' or 'fail').\"),\n hasError: z.boolean().describe(\"Indicates if there's an error (present in error responses).\").nullable().optional(),\n}).describe(\"Response model for listing Segmento campaigns.\");\n\nexport const msg91ListCampaigns = action(\"MSG91_LIST_CAMPAIGNS\", {\n slug: \"msg91-list-campaigns\",\n name: \"List Campaigns\",\n description: \"Tool to list all campaigns in Segmento. Use when you need to retrieve campaigns with pagination support.\",\n input: Msg91ListCampaignsInput,\n output: Msg91ListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC7E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CACnE,WAAWA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,oBAAoB;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-campaigns.d.ts
4
+ declare const Msg91ListCampaignsInput: z.ZodTypeAny;
5
+ declare const Msg91ListCampaignsOutput: z.ZodTypeAny;
6
+ declare const msg91ListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91ListCampaigns };
9
+ //# sourceMappingURL=list-campaigns.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-campaigns.d.cts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGwD;AAAA,cAWnF,wBAAA,EAA0B,CAAA,CAAE,UAMoB;AAAA,cAEhD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-campaigns.d.ts
4
+ declare const Msg91ListCampaignsInput: z.ZodTypeAny;
5
+ declare const Msg91ListCampaignsOutput: z.ZodTypeAny;
6
+ declare const msg91ListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { msg91ListCampaigns };
9
+ //# sourceMappingURL=list-campaigns.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-campaigns.d.mts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGwD;AAAA,cAWnF,wBAAA,EAA0B,CAAA,CAAE,UAMoB;AAAA,cAEhD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}