@keystrokehq/msg91 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-user-events.cjs +4 -4
- package/dist/actions/create-user-events.cjs.map +1 -1
- package/dist/actions/create-user-events.d.cts +24 -3
- package/dist/actions/create-user-events.d.cts.map +1 -1
- package/dist/actions/create-user-events.d.mts +24 -3
- package/dist/actions/create-user-events.d.mts.map +1 -1
- package/dist/actions/create-user-events.mjs +4 -4
- package/dist/actions/create-user-events.mjs.map +1 -1
- package/dist/actions/get-event-types.cjs +2 -2
- package/dist/actions/get-event-types.cjs.map +1 -1
- package/dist/actions/get-event-types.d.cts +16 -3
- package/dist/actions/get-event-types.d.cts.map +1 -1
- package/dist/actions/get-event-types.d.mts +16 -3
- package/dist/actions/get-event-types.d.mts.map +1 -1
- package/dist/actions/get-event-types.mjs +2 -2
- package/dist/actions/get-event-types.mjs.map +1 -1
- package/dist/actions/get-failed-events.cjs +10 -10
- package/dist/actions/get-failed-events.cjs.map +1 -1
- package/dist/actions/get-failed-events.d.cts +29 -3
- package/dist/actions/get-failed-events.d.cts.map +1 -1
- package/dist/actions/get-failed-events.d.mts +29 -3
- package/dist/actions/get-failed-events.d.mts.map +1 -1
- package/dist/actions/get-failed-events.mjs +10 -10
- package/dist/actions/get-failed-events.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +9 -9
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +23 -3
- package/dist/actions/list-campaigns.d.cts.map +1 -1
- package/dist/actions/list-campaigns.d.mts +23 -3
- package/dist/actions/list-campaigns.d.mts.map +1 -1
- package/dist/actions/list-campaigns.mjs +9 -9
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/resend-otp.cjs +3 -3
- package/dist/actions/resend-otp.cjs.map +1 -1
- package/dist/actions/resend-otp.d.cts +15 -3
- package/dist/actions/resend-otp.d.cts.map +1 -1
- package/dist/actions/resend-otp.d.mts +15 -3
- package/dist/actions/resend-otp.d.mts.map +1 -1
- package/dist/actions/resend-otp.mjs +3 -3
- package/dist/actions/resend-otp.mjs.map +1 -1
- package/dist/actions/send-otp.cjs +2 -2
- package/dist/actions/send-otp.cjs.map +1 -1
- package/dist/actions/send-otp.d.cts +27 -3
- package/dist/actions/send-otp.d.cts.map +1 -1
- package/dist/actions/send-otp.d.mts +27 -3
- package/dist/actions/send-otp.d.mts.map +1 -1
- package/dist/actions/send-otp.mjs +2 -2
- package/dist/actions/send-otp.mjs.map +1 -1
- package/dist/actions/send-sms-v5.cjs +2 -2
- package/dist/actions/send-sms-v5.cjs.map +1 -1
- package/dist/actions/send-sms-v5.d.cts +34 -3
- package/dist/actions/send-sms-v5.d.cts.map +1 -1
- package/dist/actions/send-sms-v5.d.mts +34 -3
- package/dist/actions/send-sms-v5.d.mts.map +1 -1
- package/dist/actions/send-sms-v5.mjs +2 -2
- package/dist/actions/send-sms-v5.mjs.map +1 -1
- package/dist/actions/verify-otp.cjs +3 -3
- package/dist/actions/verify-otp.cjs.map +1 -1
- package/dist/actions/verify-otp.d.cts +14 -3
- package/dist/actions/verify-otp.d.cts.map +1 -1
- package/dist/actions/verify-otp.d.mts +14 -3
- package/dist/actions/verify-otp.d.mts.map +1 -1
- package/dist/actions/verify-otp.mjs +3 -3
- package/dist/actions/verify-otp.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/send-sms-v5.d.ts
|
|
4
|
-
declare const Msg91SendSmsV5Input: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91SendSmsV5Input: z.ZodObject<{
|
|
5
|
+
short_url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
7
|
+
VAR1: z.ZodOptional<z.ZodString>;
|
|
8
|
+
VAR2: z.ZodOptional<z.ZodString>;
|
|
9
|
+
VAR3: z.ZodOptional<z.ZodString>;
|
|
10
|
+
VAR4: z.ZodOptional<z.ZodString>;
|
|
11
|
+
VAR5: z.ZodOptional<z.ZodString>;
|
|
12
|
+
mobiles: z.ZodString;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
template_id: z.ZodString;
|
|
15
|
+
realTimeResponse: z.ZodOptional<z.ZodString>;
|
|
16
|
+
short_url_expiry: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const Msg91SendSmsV5Output: z.ZodObject<{
|
|
19
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const msg91SendSmsV5: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
recipients: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
mobiles: string;
|
|
27
|
+
VAR1?: string | undefined;
|
|
28
|
+
VAR2?: string | undefined;
|
|
29
|
+
VAR3?: string | undefined;
|
|
30
|
+
VAR4?: string | undefined;
|
|
31
|
+
VAR5?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
template_id: string;
|
|
34
|
+
short_url?: string | undefined;
|
|
35
|
+
realTimeResponse?: string | undefined;
|
|
36
|
+
short_url_expiry?: number | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { msg91SendSmsV5 };
|
|
9
40
|
//# sourceMappingURL=send-sms-v5.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-sms-v5.d.mts","names":[],"sources":["../../src/actions/send-sms-v5.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"send-sms-v5.d.mts","names":[],"sources":["../../src/actions/send-sms-v5.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAcnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAMpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -13,7 +13,7 @@ const msg91SendSmsV5 = action("MSG91_SEND_SMS_V5", {
|
|
|
13
13
|
VAR4: z.string().describe("Fourth dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR4##).").optional(),
|
|
14
14
|
VAR5: z.string().describe("Fifth dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR5##).").optional(),
|
|
15
15
|
mobiles: z.string().describe("Recipient mobile number in international format without '+' prefix (e.g., '919999999999' for India, '15551234567' for USA). Use country code followed by mobile number.")
|
|
16
|
-
}).describe("Model for individual recipient details with mobile number and template variables.")).describe("Array of recipient objects containing mobile numbers and dynamic variable values. Each recipient can have different variable values for personalized messages."),
|
|
16
|
+
}).passthrough().describe("Model for individual recipient details with mobile number and template variables.")).describe("Array of recipient objects containing mobile numbers and dynamic variable values. Each recipient can have different variable values for personalized messages."),
|
|
17
17
|
template_id: z.string().describe("SMS template ID (Flow ID) from MSG91 dashboard. Create templates at https://control.msg91.com/flow/. Template must be approved before use."),
|
|
18
18
|
realTimeResponse: z.string().describe("Enable real-time delivery response: '1' to get immediate delivery status for each message. Note: This may increase response time. Default: '0' (asynchronous)").optional(),
|
|
19
19
|
short_url_expiry: z.number().int().describe("Short URL expiry time in seconds. Only applicable when short_url is enabled. After expiry, the shortened URL will no longer redirect. Default: no expiry").optional()
|
|
@@ -22,7 +22,7 @@ const msg91SendSmsV5 = action("MSG91_SEND_SMS_V5", {
|
|
|
22
22
|
type: z.string().describe("Response status type: 'success' when SMS is queued for delivery, 'error' when request fails. Check this field to determine if the SMS was accepted.").nullable().optional(),
|
|
23
23
|
message: z.string().describe("For successful requests: unique request ID for tracking delivery status. For failed requests: error description explaining why the SMS was rejected.").nullable().optional(),
|
|
24
24
|
request_id: z.string().describe("Unique request identifier for tracking the SMS delivery status. Use this ID to query delivery reports and track message status.").nullable().optional()
|
|
25
|
-
}).describe("Response model after sending SMS via Flow API v5.")
|
|
25
|
+
}).passthrough().describe("Response model after sending SMS via Flow API v5.")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { msg91SendSmsV5 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-sms-v5.mjs","names":[],"sources":["../../src/actions/send-sms-v5.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91SendSmsV5Input
|
|
1
|
+
{"version":3,"file":"send-sms-v5.mjs","names":[],"sources":["../../src/actions/send-sms-v5.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91SendSmsV5Input = z.object({\n short_url: z.string().describe(\"Enable URL shortening in SMS: '1' to enable, '0' to disable. When enabled, long URLs in the message are automatically shortened to save characters. Default: '0'\").optional(),\n recipients: z.array(z.object({\n VAR1: z.string().describe(\"First dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR1##).\").optional(),\n VAR2: z.string().describe(\"Second dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR2##).\").optional(),\n VAR3: z.string().describe(\"Third dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR3##).\").optional(),\n VAR4: z.string().describe(\"Fourth dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR4##).\").optional(),\n VAR5: z.string().describe(\"Fifth dynamic variable value to substitute in the SMS template. Variable names are case-sensitive and must match the template placeholders (e.g., ##VAR5##).\").optional(),\n mobiles: z.string().describe(\"Recipient mobile number in international format without '+' prefix (e.g., '919999999999' for India, '15551234567' for USA). Use country code followed by mobile number.\"),\n}).passthrough().describe(\"Model for individual recipient details with mobile number and template variables.\")).describe(\"Array of recipient objects containing mobile numbers and dynamic variable values. Each recipient can have different variable values for personalized messages.\"),\n template_id: z.string().describe(\"SMS template ID (Flow ID) from MSG91 dashboard. Create templates at https://control.msg91.com/flow/. Template must be approved before use.\"),\n realTimeResponse: z.string().describe(\"Enable real-time delivery response: '1' to get immediate delivery status for each message. Note: This may increase response time. Default: '0' (asynchronous)\").optional(),\n short_url_expiry: z.number().int().describe(\"Short URL expiry time in seconds. Only applicable when short_url is enabled. After expiry, the shortened URL will no longer redirect. Default: no expiry\").optional(),\n}).describe(\"Request model for sending SMS using MSG91 Flow API v5 with template-based messaging.\");\nexport const Msg91SendSmsV5Output = z.object({\n type: z.string().describe(\"Response status type: 'success' when SMS is queued for delivery, 'error' when request fails. Check this field to determine if the SMS was accepted.\").nullable().optional(),\n message: z.string().describe(\"For successful requests: unique request ID for tracking delivery status. For failed requests: error description explaining why the SMS was rejected.\").nullable().optional(),\n request_id: z.string().describe(\"Unique request identifier for tracking the SMS delivery status. Use this ID to query delivery reports and track message status.\").nullable().optional(),\n}).passthrough().describe(\"Response model after sending SMS via Flow API v5.\");\n\nexport const msg91SendSmsV5 = action(\"MSG91_SEND_SMS_V5\", {\n slug: \"msg91-send-sms-v5\",\n name: \"Send SMS via Flow (V5)\",\n description: \"Send SMS messages using pre-defined templates via MSG91 Flow API v5. Use when you need to send template-based SMS with dynamic variable substitution to single or multiple recipients. Templates must be created and approved in MSG91 dashboard before use.\",\n input: Msg91SendSmsV5Input,\n output: Msg91SendSmsV5Output,\n});\n"],"mappings":";;AAwBA,MAAa,iBAAiB,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBiC,EAAE,OAAO;EAC1C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EAC5M,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;GACnM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;GACpM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;GACnM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;GACpM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;GACnM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK;EACxM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,CAAC,SAAS,gKAAgK;EACvR,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;EAC7K,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;EAChN,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACnN,CAAC,CAAC,CAAC,SAAS,sFAWH;CACP,QAXkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzM,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -7,9 +7,9 @@ const Msg91VerifyOtpInput = zod.z.object({
|
|
|
7
7
|
otp_expiry: zod.z.number().int().describe("OTP expiry time in minutes. Only required if you passed a custom expiry time when sending the OTP. If not provided, the default expiry time (60 minutes) is used.").optional()
|
|
8
8
|
});
|
|
9
9
|
const Msg91VerifyOtpOutput = zod.z.object({
|
|
10
|
-
type: zod.z.string().describe("Response status type: 'success' when OTP is verified successfully, 'error' when verification fails (invalid OTP, expired OTP, or other errors)."),
|
|
11
|
-
message: zod.z.string().describe("Status message describing the verification result. For successful verification: 'number_verified_successfully' or similar. For failed verification: error description (e.g., 'invalid_otp', 'otp_expired').")
|
|
12
|
-
});
|
|
10
|
+
type: zod.z.string().describe("Response status type: 'success' when OTP is verified successfully, 'error' when verification fails (invalid OTP, expired OTP, or other errors).").nullable(),
|
|
11
|
+
message: zod.z.string().describe("Status message describing the verification result. For successful verification: 'number_verified_successfully' or similar. For failed verification: error description (e.g., 'invalid_otp', 'otp_expired').").nullable()
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const msg91VerifyOtp = require_action.action("MSG91_VERIFY_OTP", {
|
|
14
14
|
slug: "msg91-verify-otp",
|
|
15
15
|
name: "Verify OTP",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-otp.cjs","names":["z","action"],"sources":["../../src/actions/verify-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91VerifyOtpInput
|
|
1
|
+
{"version":3,"file":"verify-otp.cjs","names":["z","action"],"sources":["../../src/actions/verify-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91VerifyOtpInput = z.object({\n otp: z.string().describe(\"The OTP code to verify. This is the code that was sent to the mobile number via Send OTP API and entered by the user.\"),\n mobile: z.string().describe(\"Mobile number in international format with country code (e.g., '919876543210' for India, '15551234567' for USA). Must match the number used in Send OTP. Do not include '+' prefix or spaces.\"),\n otp_expiry: z.number().int().describe(\"OTP expiry time in minutes. Only required if you passed a custom expiry time when sending the OTP. If not provided, the default expiry time (60 minutes) is used.\").optional(),\n});\nexport const Msg91VerifyOtpOutput = z.object({\n type: z.string().describe(\"Response status type: 'success' when OTP is verified successfully, 'error' when verification fails (invalid OTP, expired OTP, or other errors).\").nullable(),\n message: z.string().describe(\"Status message describing the verification result. For successful verification: 'number_verified_successfully' or similar. For failed verification: error description (e.g., 'invalid_otp', 'otp_expired').\").nullable(),\n}).passthrough();\n\nexport const msg91VerifyOtp = action(\"MSG91_VERIFY_OTP\", {\n slug: \"msg91-verify-otp\",\n name: \"Verify OTP\",\n description: \"Tool to verify an OTP (One-Time Password) sent to a mobile number. Use when you need to confirm that the OTP code entered by the user matches the one sent via Send OTP API.\",\n input: Msg91VerifyOtpInput,\n output: Msg91VerifyOtpOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CAChJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+LAA+L;CAC3N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;AACtN,CAAC;AACD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6MAA6M,CAAC,CAAC,SAAS;AACvP,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/verify-otp.d.ts
|
|
4
|
-
declare const Msg91VerifyOtpInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91VerifyOtpInput: z.ZodObject<{
|
|
5
|
+
otp: z.ZodString;
|
|
6
|
+
mobile: z.ZodString;
|
|
7
|
+
otp_expiry: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const Msg91VerifyOtpOutput: z.ZodObject<{
|
|
10
|
+
type: z.ZodNullable<z.ZodString>;
|
|
11
|
+
message: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const msg91VerifyOtp: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
otp: string;
|
|
15
|
+
mobile: string;
|
|
16
|
+
otp_expiry?: number | undefined;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { msg91VerifyOtp };
|
|
9
20
|
//# sourceMappingURL=verify-otp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-otp.d.cts","names":[],"sources":["../../src/actions/verify-otp.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"verify-otp.d.cts","names":[],"sources":["../../src/actions/verify-otp.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/verify-otp.d.ts
|
|
4
|
-
declare const Msg91VerifyOtpInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91VerifyOtpInput: z.ZodObject<{
|
|
5
|
+
otp: z.ZodString;
|
|
6
|
+
mobile: z.ZodString;
|
|
7
|
+
otp_expiry: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const Msg91VerifyOtpOutput: z.ZodObject<{
|
|
10
|
+
type: z.ZodNullable<z.ZodString>;
|
|
11
|
+
message: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const msg91VerifyOtp: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
otp: string;
|
|
15
|
+
mobile: string;
|
|
16
|
+
otp_expiry?: number | undefined;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { msg91VerifyOtp };
|
|
9
20
|
//# sourceMappingURL=verify-otp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-otp.d.mts","names":[],"sources":["../../src/actions/verify-otp.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"verify-otp.d.mts","names":[],"sources":["../../src/actions/verify-otp.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -10,9 +10,9 @@ const msg91VerifyOtp = action("MSG91_VERIFY_OTP", {
|
|
|
10
10
|
otp_expiry: z.number().int().describe("OTP expiry time in minutes. Only required if you passed a custom expiry time when sending the OTP. If not provided, the default expiry time (60 minutes) is used.").optional()
|
|
11
11
|
}),
|
|
12
12
|
output: z.object({
|
|
13
|
-
type: z.string().describe("Response status type: 'success' when OTP is verified successfully, 'error' when verification fails (invalid OTP, expired OTP, or other errors)."),
|
|
14
|
-
message: z.string().describe("Status message describing the verification result. For successful verification: 'number_verified_successfully' or similar. For failed verification: error description (e.g., 'invalid_otp', 'otp_expired').")
|
|
15
|
-
})
|
|
13
|
+
type: z.string().describe("Response status type: 'success' when OTP is verified successfully, 'error' when verification fails (invalid OTP, expired OTP, or other errors).").nullable(),
|
|
14
|
+
message: z.string().describe("Status message describing the verification result. For successful verification: 'number_verified_successfully' or similar. For failed verification: error description (e.g., 'invalid_otp', 'otp_expired').").nullable()
|
|
15
|
+
}).passthrough()
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { msg91VerifyOtp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-otp.mjs","names":[],"sources":["../../src/actions/verify-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91VerifyOtpInput
|
|
1
|
+
{"version":3,"file":"verify-otp.mjs","names":[],"sources":["../../src/actions/verify-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91VerifyOtpInput = z.object({\n otp: z.string().describe(\"The OTP code to verify. This is the code that was sent to the mobile number via Send OTP API and entered by the user.\"),\n mobile: z.string().describe(\"Mobile number in international format with country code (e.g., '919876543210' for India, '15551234567' for USA). Must match the number used in Send OTP. Do not include '+' prefix or spaces.\"),\n otp_expiry: z.number().int().describe(\"OTP expiry time in minutes. Only required if you passed a custom expiry time when sending the OTP. If not provided, the default expiry time (60 minutes) is used.\").optional(),\n});\nexport const Msg91VerifyOtpOutput = z.object({\n type: z.string().describe(\"Response status type: 'success' when OTP is verified successfully, 'error' when verification fails (invalid OTP, expired OTP, or other errors).\").nullable(),\n message: z.string().describe(\"Status message describing the verification result. For successful verification: 'number_verified_successfully' or similar. For failed verification: error description (e.g., 'invalid_otp', 'otp_expired').\").nullable(),\n}).passthrough();\n\nexport const msg91VerifyOtp = action(\"MSG91_VERIFY_OTP\", {\n slug: \"msg91-verify-otp\",\n name: \"Verify OTP\",\n description: \"Tool to verify an OTP (One-Time Password) sent to a mobile number. Use when you need to confirm that the OTP code entered by the user matches the one sent via Send OTP API.\",\n input: Msg91VerifyOtpInput,\n output: Msg91VerifyOtpOutput,\n});\n"],"mappings":";;AAcA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;EAChJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+LAA+L;EAC3N,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACtN,CAUS;CACP,QAVkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;EACtL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6MAA6M,CAAC,CAAC,SAAS;CACvP,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const msg91Catalog = {
|
|
|
7
7
|
"category": "Communication",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/msg91",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "MSG91 Authkey",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The authentication key (Authkey) used to authenticate API requests."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.msg91Catalog = msg91Catalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","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;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","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 \"credentialFields\": {\n \"api_key\": {\n \"label\": \"MSG91 Authkey\",\n \"secret\": true,\n \"description\": \"The authentication key (Authkey) used to authenticate API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const msg91Catalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/msg91";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "MSG91 Authkey";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The authentication key (Authkey) used to authenticate API requests.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { msg91Catalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const msg91Catalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/msg91";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "MSG91 Authkey";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The authentication key (Authkey) used to authenticate API requests.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { msg91Catalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const msg91Catalog = {
|
|
|
7
7
|
"category": "Communication",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/msg91",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "MSG91 Authkey",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The authentication key (Authkey) used to authenticate API requests."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { msg91Catalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +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;
|
|
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 \"credentialFields\": {\n \"api_key\": {\n \"label\": \"MSG91 Authkey\",\n \"secret\": true,\n \"description\": \"The authentication key (Authkey) used to authenticate API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/msg91",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|