@keystrokehq/msg91 0.1.5 → 0.1.6

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 (77) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-user-events.cjs +1 -0
  4. package/dist/actions/create-user-events.cjs.map +1 -1
  5. package/dist/actions/create-user-events.d.cts +3 -21
  6. package/dist/actions/create-user-events.d.cts.map +1 -1
  7. package/dist/actions/create-user-events.d.mts +3 -21
  8. package/dist/actions/create-user-events.d.mts.map +1 -1
  9. package/dist/actions/create-user-events.mjs +1 -0
  10. package/dist/actions/create-user-events.mjs.map +1 -1
  11. package/dist/actions/get-event-types.cjs +1 -0
  12. package/dist/actions/get-event-types.cjs.map +1 -1
  13. package/dist/actions/get-event-types.d.cts +3 -13
  14. package/dist/actions/get-event-types.d.cts.map +1 -1
  15. package/dist/actions/get-event-types.d.mts +3 -13
  16. package/dist/actions/get-event-types.d.mts.map +1 -1
  17. package/dist/actions/get-event-types.mjs +1 -0
  18. package/dist/actions/get-event-types.mjs.map +1 -1
  19. package/dist/actions/get-failed-events.cjs +1 -0
  20. package/dist/actions/get-failed-events.cjs.map +1 -1
  21. package/dist/actions/get-failed-events.d.cts +3 -19
  22. package/dist/actions/get-failed-events.d.cts.map +1 -1
  23. package/dist/actions/get-failed-events.d.mts +3 -19
  24. package/dist/actions/get-failed-events.d.mts.map +1 -1
  25. package/dist/actions/get-failed-events.mjs +1 -0
  26. package/dist/actions/get-failed-events.mjs.map +1 -1
  27. package/dist/actions/list-campaigns.cjs +1 -0
  28. package/dist/actions/list-campaigns.cjs.map +1 -1
  29. package/dist/actions/list-campaigns.d.cts +3 -16
  30. package/dist/actions/list-campaigns.d.cts.map +1 -1
  31. package/dist/actions/list-campaigns.d.mts +3 -16
  32. package/dist/actions/list-campaigns.d.mts.map +1 -1
  33. package/dist/actions/list-campaigns.mjs +1 -0
  34. package/dist/actions/list-campaigns.mjs.map +1 -1
  35. package/dist/actions/resend-otp.cjs +1 -0
  36. package/dist/actions/resend-otp.cjs.map +1 -1
  37. package/dist/actions/resend-otp.d.cts +3 -16
  38. package/dist/actions/resend-otp.d.cts.map +1 -1
  39. package/dist/actions/resend-otp.d.mts +3 -16
  40. package/dist/actions/resend-otp.d.mts.map +1 -1
  41. package/dist/actions/resend-otp.mjs +1 -0
  42. package/dist/actions/resend-otp.mjs.map +1 -1
  43. package/dist/actions/send-otp.cjs +1 -0
  44. package/dist/actions/send-otp.cjs.map +1 -1
  45. package/dist/actions/send-otp.d.cts +3 -23
  46. package/dist/actions/send-otp.d.cts.map +1 -1
  47. package/dist/actions/send-otp.d.mts +3 -23
  48. package/dist/actions/send-otp.d.mts.map +1 -1
  49. package/dist/actions/send-otp.mjs +1 -0
  50. package/dist/actions/send-otp.mjs.map +1 -1
  51. package/dist/actions/send-sms-v5.cjs +1 -0
  52. package/dist/actions/send-sms-v5.cjs.map +1 -1
  53. package/dist/actions/send-sms-v5.d.cts +3 -27
  54. package/dist/actions/send-sms-v5.d.cts.map +1 -1
  55. package/dist/actions/send-sms-v5.d.mts +3 -27
  56. package/dist/actions/send-sms-v5.d.mts.map +1 -1
  57. package/dist/actions/send-sms-v5.mjs +1 -0
  58. package/dist/actions/send-sms-v5.mjs.map +1 -1
  59. package/dist/actions/verify-otp.cjs +1 -0
  60. package/dist/actions/verify-otp.cjs.map +1 -1
  61. package/dist/actions/verify-otp.d.cts +3 -17
  62. package/dist/actions/verify-otp.d.cts.map +1 -1
  63. package/dist/actions/verify-otp.d.mts +3 -17
  64. package/dist/actions/verify-otp.d.mts.map +1 -1
  65. package/dist/actions/verify-otp.mjs +1 -0
  66. package/dist/actions/verify-otp.mjs.map +1 -1
  67. package/dist/app.cjs +2 -2
  68. package/dist/app.cjs.map +1 -1
  69. package/dist/app.d.cts +4 -6
  70. package/dist/app.d.cts.map +1 -1
  71. package/dist/app.d.mts +4 -6
  72. package/dist/app.d.mts.map +1 -1
  73. package/dist/app.mjs +0 -1
  74. package/dist/app.mjs.map +1 -1
  75. package/dist/index.d.cts +1 -1
  76. package/dist/index.d.mts +1 -1
  77. package/package.json +2 -2
@@ -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<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"}
1
+ {"version":3,"file":"action.cjs","names":["msg91","executeMsg91Tool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof msg91.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,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"}
@@ -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<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"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof msg91.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,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"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-user-events.ts
@@ -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 = 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
+ {"version":3,"file":"create-user-events.cjs","names":["z","action"],"sources":["../../src/actions/create-user-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\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: AppAction<\n typeof Msg91CreateUserEventsInput,\n typeof Msg91CreateUserEventsOutput,\n typeof msg91.credential\n> = 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":";;;;AAMA,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,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-user-events.d.ts
@@ -16,27 +18,7 @@ declare const Msg91CreateUserEventsOutput: z.ZodObject<{
16
18
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
20
  }, 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<"msg91", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>;
21
+ declare const msg91CreateUserEvents: AppAction<typeof Msg91CreateUserEventsInput, typeof Msg91CreateUserEventsOutput, typeof msg91.credential>;
40
22
  //#endregion
41
23
  export { msg91CreateUserEvents };
42
24
  //# 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,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-user-events.d.cts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-user-events.d.ts
@@ -16,27 +18,7 @@ declare const Msg91CreateUserEventsOutput: z.ZodObject<{
16
18
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
20
  }, 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<"msg91", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>;
21
+ declare const msg91CreateUserEvents: AppAction<typeof Msg91CreateUserEventsInput, typeof Msg91CreateUserEventsOutput, typeof msg91.credential>;
40
22
  //#endregion
41
23
  export { msg91CreateUserEvents };
42
24
  //# 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,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-user-events.d.mts","names":[],"sources":["../../src/actions/create-user-events.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const msg91CreateUserEvents = action("MSG91_CREATE_USER_EVENTS", {
@@ -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 = 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"}
1
+ {"version":3,"file":"create-user-events.mjs","names":[],"sources":["../../src/actions/create-user-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\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: AppAction<\n typeof Msg91CreateUserEventsInput,\n typeof Msg91CreateUserEventsOutput,\n typeof msg91.credential\n> = 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":";;;AAsBA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBwC,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,2DAiBH;CACP,QAjByC,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,4CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-event-types.ts
@@ -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 = 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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AS,+GAA+G;AAEzI,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-event-types.cjs","names":["z","action"],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\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: AppAction<\n typeof Msg91GetEventTypesInput,\n typeof Msg91GetEventTypesOutput,\n typeof msg91.credential\n> = 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":";;;;AAMA,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,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-event-types.d.ts
@@ -16,19 +18,7 @@ declare const Msg91GetEventTypesOutput: z.ZodObject<{
16
18
  eventTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>>>>;
18
20
  }, z.core.$loose>;
19
- declare const msg91GetEventTypes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
21
+ declare const msg91GetEventTypes: AppAction<typeof Msg91GetEventTypesInput, typeof Msg91GetEventTypesOutput, typeof msg91.credential>;
32
22
  //#endregion
33
23
  export { msg91GetEventTypes };
34
24
  //# 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,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,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-event-types.d.cts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-event-types.d.ts
@@ -16,19 +18,7 @@ declare const Msg91GetEventTypesOutput: z.ZodObject<{
16
18
  eventTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>>>>;
18
20
  }, z.core.$loose>;
19
- declare const msg91GetEventTypes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
21
+ declare const msg91GetEventTypes: AppAction<typeof Msg91GetEventTypesInput, typeof Msg91GetEventTypesOutput, typeof msg91.credential>;
32
22
  //#endregion
33
23
  export { msg91GetEventTypes };
34
24
  //# 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,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,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-event-types.d.mts","names":[],"sources":["../../src/actions/get-event-types.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-event-types.ts
@@ -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 = 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"}
1
+ {"version":3,"file":"get-event-types.mjs","names":[],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\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: AppAction<\n typeof Msg91GetEventTypesInput,\n typeof Msg91GetEventTypesOutput,\n typeof msg91.credential\n> = 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: Msg91GetEventTypesOut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C,SAAS,CAAC,CAAC,SAAS;CACzL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+GAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-failed-events.ts
@@ -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 = 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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"sources":["../../src/actions/get-failed-events.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\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: AppAction<\n typeof Msg91GetFailedEventsInput,\n typeof Msg91GetFailedEventsOutput,\n typeof msg91.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-failed-events.d.ts
@@ -23,25 +25,7 @@ declare const Msg91GetFailedEventsOutput: z.ZodObject<{
23
25
  status: z.ZodNullable<z.ZodString>;
24
26
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  }, 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<"msg91", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
28
+ declare const msg91GetFailedEvents: AppAction<typeof Msg91GetFailedEventsInput, typeof Msg91GetFailedEventsOutput, typeof msg91.credential>;
45
29
  //#endregion
46
30
  export { msg91GetFailedEvents };
47
31
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-failed-events.d.cts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-failed-events.d.ts
@@ -23,25 +25,7 @@ declare const Msg91GetFailedEventsOutput: z.ZodObject<{
23
25
  status: z.ZodNullable<z.ZodString>;
24
26
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  }, 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<"msg91", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
28
+ declare const msg91GetFailedEvents: AppAction<typeof Msg91GetFailedEventsInput, typeof Msg91GetFailedEventsOutput, typeof msg91.credential>;
45
29
  //#endregion
46
30
  export { msg91GetFailedEvents };
47
31
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-failed-events.d.mts","names":[],"sources":["../../src/actions/get-failed-events.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-failed-events.ts
@@ -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 = 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,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["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\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: AppAction<\n typeof Msg91GetFailedEventsInput,\n typeof Msg91GetFailedEventsOutput,\n typeof msg91.credential\n> = 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":";;;;AAMA,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,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfwC,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,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-campaigns.ts
@@ -1 +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.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.object({\n name: z.string().describe(\"Name of the campaign.\").nullable(),\n campaign_id: z.number().int().describe(\"Unique identifier of the campaign.\").nullable(),\n}).passthrough().describe(\"Represents a Segmento campaign.\");\nconst Msg91ListCampaigns_CampaignListDataSchema = z.object({\n total: z.number().int().describe(\"Total number of campaigns.\").nullable(),\n per_page: z.number().int().describe(\"Number of campaigns per page.\").nullable(),\n campaigns: z.array(Msg91ListCampaigns_CampaignSchema).describe(\"List of campaigns.\"),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination details and list of campaigns.\");\nexport const Msg91ListCampaignsOutput = 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').\").nullable(),\n hasError: z.boolean().describe(\"Indicates if there's an error (present in error responses).\").nullable().optional(),\n}).passthrough().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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\n\nexport const Msg91ListCampaignsInput = 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.object({\n name: z.string().describe(\"Name of the campaign.\").nullable(),\n campaign_id: z.number().int().describe(\"Unique identifier of the campaign.\").nullable(),\n}).passthrough().describe(\"Represents a Segmento campaign.\");\nconst Msg91ListCampaigns_CampaignListDataSchema = z.object({\n total: z.number().int().describe(\"Total number of campaigns.\").nullable(),\n per_page: z.number().int().describe(\"Number of campaigns per page.\").nullable(),\n campaigns: z.array(Msg91ListCampaigns_CampaignSchema).describe(\"List of campaigns.\"),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination details and list of campaigns.\");\nexport const Msg91ListCampaignsOutput = 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').\").nullable(),\n hasError: z.boolean().describe(\"Indicates if there's an error (present in error responses).\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing Segmento campaigns.\");\n\nexport const msg91ListCampaigns: AppAction<\n typeof Msg91ListCampaignsInput,\n typeof Msg91ListCampaignsOutput,\n typeof msg91.credential\n> = 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: Msg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AS;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,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-campaigns.d.ts
@@ -20,22 +22,7 @@ declare const Msg91ListCampaignsOutput: z.ZodObject<{
20
22
  status: z.ZodNullable<z.ZodString>;
21
23
  hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
24
  }, z.core.$loose>;
23
- declare const msg91ListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- page?: number | undefined;
25
- limit?: number | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
25
+ declare const msg91ListCampaigns: AppAction<typeof Msg91ListCampaignsInput, typeof Msg91ListCampaignsOutput, typeof msg91.credential>;
39
26
  //#endregion
40
27
  export { msg91ListCampaigns };
41
28
  //# sourceMappingURL=list-campaigns.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-campaigns.d.cts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAQxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-campaigns.d.cts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAQxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { msg91 } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-campaigns.d.ts
@@ -20,22 +22,7 @@ declare const Msg91ListCampaignsOutput: z.ZodObject<{
20
22
  status: z.ZodNullable<z.ZodString>;
21
23
  hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
24
  }, z.core.$loose>;
23
- declare const msg91ListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- page?: number | undefined;
25
- limit?: number | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"msg91", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
25
+ declare const msg91ListCampaigns: AppAction<typeof Msg91ListCampaignsInput, typeof Msg91ListCampaignsOutput, typeof msg91.credential>;
39
26
  //#endregion
40
27
  export { msg91ListCampaigns };
41
28
  //# sourceMappingURL=list-campaigns.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-campaigns.d.mts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAQxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-campaigns.d.mts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAQxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-campaigns.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91ListCampaignsInput = 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.object({\n name: z.string().describe(\"Name of the campaign.\").nullable(),\n campaign_id: z.number().int().describe(\"Unique identifier of the campaign.\").nullable(),\n}).passthrough().describe(\"Represents a Segmento campaign.\");\nconst Msg91ListCampaigns_CampaignListDataSchema = z.object({\n total: z.number().int().describe(\"Total number of campaigns.\").nullable(),\n per_page: z.number().int().describe(\"Number of campaigns per page.\").nullable(),\n campaigns: z.array(Msg91ListCampaigns_CampaignSchema).describe(\"List of campaigns.\"),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination details and list of campaigns.\");\nexport const Msg91ListCampaignsOutput = 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').\").nullable(),\n hasError: z.boolean().describe(\"Indicates if there's an error (present in error responses).\").nullable().optional(),\n}).passthrough().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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,4CAA4C,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,oBAAoB;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AASrE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\n\nexport const Msg91ListCampaignsInput = 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.object({\n name: z.string().describe(\"Name of the campaign.\").nullable(),\n campaign_id: z.number().int().describe(\"Unique identifier of the campaign.\").nullable(),\n}).passthrough().describe(\"Represents a Segmento campaign.\");\nconst Msg91ListCampaigns_CampaignListDataSchema = z.object({\n total: z.number().int().describe(\"Total number of campaigns.\").nullable(),\n per_page: z.number().int().describe(\"Number of campaigns per page.\").nullable(),\n campaigns: z.array(Msg91ListCampaigns_CampaignSchema).describe(\"List of campaigns.\"),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination details and list of campaigns.\");\nexport const Msg91ListCampaignsOutput = 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').\").nullable(),\n hasError: z.boolean().describe(\"Indicates if there's an error (present in error responses).\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing Segmento campaigns.\");\n\nexport const msg91ListCampaigns: AppAction<\n typeof Msg91ListCampaignsInput,\n typeof Msg91ListCampaignsOutput,\n typeof msg91.credential\n> = 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":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAA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-1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/resend-otp.ts
@@ -1 +1 @@
1
- {"version":3,"file":"resend-otp.cjs","names":["z","action"],"sources":["../../src/actions/resend-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91ResendOtpInput = z.object({\n mobile: z.string().describe(\"Mobile number to resend OTP to, in international format without '+' prefix (e.g., '919999999999' for India). Must be the same number that received the original OTP.\"),\n retrytype: z.enum([\"text\", \"voice\"]).describe(\"Method to resend the OTP: 'text' for SMS message or 'voice' for voice call. Voice calls are useful when SMS delivery fails or for accessibility.\"),\n});\nexport const Msg91ResendOtpOutput = z.object({\n type: z.string().describe(\"Response status type: 'success' when OTP is resent successfully, 'error' when request fails. Check this field first to determine if the OTP was resent.\").nullable(),\n message: z.string().describe(\"For successful requests: confirmation message like 'otp_sent_successfully' or a request identifier. For failed requests: error description explaining why the resend failed.\").nullable(),\n}).passthrough();\n\nexport const msg91ResendOtp = action(\"MSG91_RESEND_OTP\", {\n slug: \"msg91-resend-otp\",\n name: \"Resend OTP\",\n description: \"Resend OTP to the same mobile number via text message or voice call. Use when the original OTP was not received or expired, and the user needs a new code sent to the same number.\",\n input: Msg91ResendOtpInput,\n output: Msg91ResendOtpOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAClM,WAAWA,IAAAA,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ;AAClM,CAAC;AACD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CAC9L,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;AACxN,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"resend-otp.cjs","names":["z","action"],"sources":["../../src/actions/resend-otp.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { msg91 } from \"../app\";\n\nexport const Msg91ResendOtpInput = z.object({\n mobile: z.string().describe(\"Mobile number to resend OTP to, in international format without '+' prefix (e.g., '919999999999' for India). Must be the same number that received the original OTP.\"),\n retrytype: z.enum([\"text\", \"voice\"]).describe(\"Method to resend the OTP: 'text' for SMS message or 'voice' for voice call. Voice calls are useful when SMS delivery fails or for accessibility.\"),\n});\nexport const Msg91ResendOtpOutput = z.object({\n type: z.string().describe(\"Response status type: 'success' when OTP is resent successfully, 'error' when request fails. Check this field first to determine if the OTP was resent.\").nullable(),\n message: z.string().describe(\"For successful requests: confirmation message like 'otp_sent_successfully' or a request identifier. For failed requests: error description explaining why the resend failed.\").nullable(),\n}).passthrough();\n\nexport const msg91ResendOtp: AppAction<\n typeof Msg91ResendOtpInput,\n typeof Msg91ResendOtpOutput,\n typeof msg91.credential\n> = action(\"MSG91_RESEND_OTP\", {\n slug: \"msg91-resend-otp\",\n name: \"Resend OTP\",\n description: \"Resend OTP to the same mobile number via text message or voice call. Use when the original OTP was not received or expired, and the user needs a new code sent to the same number.\",\n input: Msg91ResendOtpInput,\n output: Msg91ResendOtpOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAClM,WAAWA,IAAAA,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ;AAClM,CAAC;AACD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CAC9L,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;AACxN,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}