@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
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const msg91Catalog = {
4
+ "slug": "msg91",
5
+ "name": "Msg91",
6
+ "description": "MSG91 is a cloud communication platform offering secure and robust APIs for SMS, WhatsApp, Email, Voice, and more, enabling businesses to connect with their customers across multiple channels.",
7
+ "category": "Communication",
8
+ "logo": "https://logos.composio.dev/api/msg91",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { msg91Catalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const msg91Catalog = {\n \"slug\": \"msg91\",\n \"name\": \"Msg91\",\n \"description\": \"MSG91 is a cloud communication platform offering secure and robust APIs for SMS, WhatsApp, Email, Voice, and more, enabling businesses to connect with their customers across multiple channels.\",\n \"category\": \"Communication\",\n \"logo\": \"https://logos.composio.dev/api/msg91\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "msg91";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeMsg91Tool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeMsg91Tool = executeMsg91Tool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"msg91\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMsg91Tool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,iBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "msg91";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeMsg91Tool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeMsg91Tool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"msg91\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMsg91Tool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,iBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_app = require("./app.cjs");
3
+ const require_catalog = require("./catalog.cjs");
4
+ const require_create_user_events = require("./actions/create-user-events.cjs");
5
+ const require_get_event_types = require("./actions/get-event-types.cjs");
6
+ const require_get_failed_events = require("./actions/get-failed-events.cjs");
7
+ const require_list_campaigns = require("./actions/list-campaigns.cjs");
8
+ const require_resend_otp = require("./actions/resend-otp.cjs");
9
+ const require_send_otp = require("./actions/send-otp.cjs");
10
+ const require_send_sms_v5 = require("./actions/send-sms-v5.cjs");
11
+ const require_verify_otp = require("./actions/verify-otp.cjs");
12
+ require("./actions/index.cjs");
13
+ exports.msg91 = require_app.msg91;
14
+ exports.msg91Catalog = require_catalog.msg91Catalog;
15
+ exports.msg91CreateUserEvents = require_create_user_events.msg91CreateUserEvents;
16
+ exports.msg91GetEventTypes = require_get_event_types.msg91GetEventTypes;
17
+ exports.msg91GetFailedEvents = require_get_failed_events.msg91GetFailedEvents;
18
+ exports.msg91ListCampaigns = require_list_campaigns.msg91ListCampaigns;
19
+ exports.msg91ResendOtp = require_resend_otp.msg91ResendOtp;
20
+ exports.msg91SendOtp = require_send_otp.msg91SendOtp;
21
+ exports.msg91SendSmsV5 = require_send_sms_v5.msg91SendSmsV5;
22
+ exports.msg91VerifyOtp = require_verify_otp.msg91VerifyOtp;
@@ -0,0 +1,11 @@
1
+ import { msg91CreateUserEvents } from "./actions/create-user-events.cjs";
2
+ import { msg91GetEventTypes } from "./actions/get-event-types.cjs";
3
+ import { msg91GetFailedEvents } from "./actions/get-failed-events.cjs";
4
+ import { msg91ListCampaigns } from "./actions/list-campaigns.cjs";
5
+ import { msg91ResendOtp } from "./actions/resend-otp.cjs";
6
+ import { msg91SendOtp } from "./actions/send-otp.cjs";
7
+ import { msg91SendSmsV5 } from "./actions/send-sms-v5.cjs";
8
+ import { msg91VerifyOtp } from "./actions/verify-otp.cjs";
9
+ import { msg91 } from "./app.cjs";
10
+ import { msg91Catalog } from "./catalog.cjs";
11
+ export { msg91, msg91Catalog, msg91CreateUserEvents, msg91GetEventTypes, msg91GetFailedEvents, msg91ListCampaigns, msg91ResendOtp, msg91SendOtp, msg91SendSmsV5, msg91VerifyOtp };
@@ -0,0 +1,11 @@
1
+ import { msg91CreateUserEvents } from "./actions/create-user-events.mjs";
2
+ import { msg91GetEventTypes } from "./actions/get-event-types.mjs";
3
+ import { msg91GetFailedEvents } from "./actions/get-failed-events.mjs";
4
+ import { msg91ListCampaigns } from "./actions/list-campaigns.mjs";
5
+ import { msg91ResendOtp } from "./actions/resend-otp.mjs";
6
+ import { msg91SendOtp } from "./actions/send-otp.mjs";
7
+ import { msg91SendSmsV5 } from "./actions/send-sms-v5.mjs";
8
+ import { msg91VerifyOtp } from "./actions/verify-otp.mjs";
9
+ import { msg91 } from "./app.mjs";
10
+ import { msg91Catalog } from "./catalog.mjs";
11
+ export { msg91, msg91Catalog, msg91CreateUserEvents, msg91GetEventTypes, msg91GetFailedEvents, msg91ListCampaigns, msg91ResendOtp, msg91SendOtp, msg91SendSmsV5, msg91VerifyOtp };
package/dist/index.mjs ADDED
@@ -0,0 +1,12 @@
1
+ import { msg91 } from "./app.mjs";
2
+ import { msg91Catalog } from "./catalog.mjs";
3
+ import { msg91CreateUserEvents } from "./actions/create-user-events.mjs";
4
+ import { msg91GetEventTypes } from "./actions/get-event-types.mjs";
5
+ import { msg91GetFailedEvents } from "./actions/get-failed-events.mjs";
6
+ import { msg91ListCampaigns } from "./actions/list-campaigns.mjs";
7
+ import { msg91ResendOtp } from "./actions/resend-otp.mjs";
8
+ import { msg91SendOtp } from "./actions/send-otp.mjs";
9
+ import { msg91SendSmsV5 } from "./actions/send-sms-v5.mjs";
10
+ import { msg91VerifyOtp } from "./actions/verify-otp.mjs";
11
+ import "./actions/index.mjs";
12
+ export { msg91, msg91Catalog, msg91CreateUserEvents, msg91GetEventTypes, msg91GetFailedEvents, msg91ListCampaigns, msg91ResendOtp, msg91SendOtp, msg91SendSmsV5, msg91VerifyOtp };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@keystrokehq/msg91",
3
+ "version": "0.1.0",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/keystrokehq/keystroke.git",
11
+ "directory": "packages/integrations/msg91"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "sideEffects": false,
17
+ "type": "module",
18
+ "main": "./dist/index.cjs",
19
+ "module": "./dist/index.mjs",
20
+ "types": "./dist/index.d.mts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.mts",
24
+ "import": "./dist/index.mjs",
25
+ "require": "./dist/index.cjs"
26
+ },
27
+ "./actions": {
28
+ "types": "./dist/actions/index.d.mts",
29
+ "import": "./dist/actions/index.mjs",
30
+ "require": "./dist/actions/index.cjs"
31
+ }
32
+ },
33
+ "peerDependencies": {
34
+ "@keystrokehq/keystroke": "^0.1.4",
35
+ "zod": "^4.4.3"
36
+ },
37
+ "devDependencies": {
38
+ "@keystrokehq/keystroke": "link:../../keystroke",
39
+ "@types/node": "^25.9.1",
40
+ "tsdown": "^0.22.0",
41
+ "typescript": "^6.0.3",
42
+ "zod": "^4.4.3"
43
+ },
44
+ "scripts": {
45
+ "build": "tsdown",
46
+ "dev": "tsdown --watch --no-clean",
47
+ "typecheck": "tsc --noEmit"
48
+ }
49
+ }