@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
|
@@ -6,22 +6,22 @@ const Msg91ListCampaignsInput = zod.z.object({
|
|
|
6
6
|
limit: zod.z.number().int().describe("Number of campaigns per page.").optional()
|
|
7
7
|
}).describe("Request model for listing Segmento campaigns with optional pagination parameters.");
|
|
8
8
|
const Msg91ListCampaigns_CampaignSchema = zod.z.object({
|
|
9
|
-
name: zod.z.string().describe("Name of the campaign."),
|
|
10
|
-
campaign_id: zod.z.number().int().describe("Unique identifier of the campaign.")
|
|
11
|
-
}).describe("Represents a Segmento campaign.");
|
|
9
|
+
name: zod.z.string().describe("Name of the campaign.").nullable(),
|
|
10
|
+
campaign_id: zod.z.number().int().describe("Unique identifier of the campaign.").nullable()
|
|
11
|
+
}).passthrough().describe("Represents a Segmento campaign.");
|
|
12
12
|
const Msg91ListCampaigns_CampaignListDataSchema = zod.z.object({
|
|
13
|
-
total: zod.z.number().int().describe("Total number of campaigns."),
|
|
14
|
-
per_page: zod.z.number().int().describe("Number of campaigns per page."),
|
|
13
|
+
total: zod.z.number().int().describe("Total number of campaigns.").nullable(),
|
|
14
|
+
per_page: zod.z.number().int().describe("Number of campaigns per page.").nullable(),
|
|
15
15
|
campaigns: zod.z.array(Msg91ListCampaigns_CampaignSchema).describe("List of campaigns."),
|
|
16
|
-
current_page: zod.z.number().int().describe("Current page number.")
|
|
17
|
-
}).describe("Pagination details and list of campaigns.");
|
|
16
|
+
current_page: zod.z.number().int().describe("Current page number.").nullable()
|
|
17
|
+
}).passthrough().describe("Pagination details and list of campaigns.");
|
|
18
18
|
const Msg91ListCampaignsOutput = zod.z.object({
|
|
19
19
|
code: zod.z.string().describe("Error code (present in error responses).").nullable().optional(),
|
|
20
20
|
data: Msg91ListCampaigns_CampaignListDataSchema.nullable().optional(),
|
|
21
21
|
errors: zod.z.string().describe("Error message (present in error responses).").nullable().optional(),
|
|
22
|
-
status: zod.z.string().describe("Status of the response ('success' or 'fail')."),
|
|
22
|
+
status: zod.z.string().describe("Status of the response ('success' or 'fail').").nullable(),
|
|
23
23
|
hasError: zod.z.boolean().describe("Indicates if there's an error (present in error responses).").nullable().optional()
|
|
24
|
-
}).describe("Response model for listing Segmento campaigns.");
|
|
24
|
+
}).passthrough().describe("Response model for listing Segmento campaigns.");
|
|
25
25
|
const msg91ListCampaigns = require_action.action("MSG91_LIST_CAMPAIGNS", {
|
|
26
26
|
slug: "msg91-list-campaigns",
|
|
27
27
|
name: "List Campaigns",
|
|
@@ -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
|
|
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,uBAAuB,CAAC,CAAC,SAAS;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,oBAAoB;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,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,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-campaigns.d.ts
|
|
4
|
-
declare const Msg91ListCampaignsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91ListCampaignsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const Msg91ListCampaignsOutput: z.ZodObject<{
|
|
9
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
campaigns: z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
campaign_id: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
|
+
}, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { msg91ListCampaigns };
|
|
9
29
|
//# 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,
|
|
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,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-campaigns.d.ts
|
|
4
|
-
declare const Msg91ListCampaignsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91ListCampaignsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const Msg91ListCampaignsOutput: z.ZodObject<{
|
|
9
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
campaigns: z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
campaign_id: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
hasError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
|
+
}, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { msg91ListCampaigns };
|
|
9
29
|
//# 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,
|
|
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"}
|
|
@@ -6,15 +6,15 @@ const Msg91ListCampaignsInput = z.object({
|
|
|
6
6
|
limit: z.number().int().describe("Number of campaigns per page.").optional()
|
|
7
7
|
}).describe("Request model for listing Segmento campaigns with optional pagination parameters.");
|
|
8
8
|
const Msg91ListCampaigns_CampaignSchema = z.object({
|
|
9
|
-
name: z.string().describe("Name of the campaign."),
|
|
10
|
-
campaign_id: z.number().int().describe("Unique identifier of the campaign.")
|
|
11
|
-
}).describe("Represents a Segmento campaign.");
|
|
9
|
+
name: z.string().describe("Name of the campaign.").nullable(),
|
|
10
|
+
campaign_id: z.number().int().describe("Unique identifier of the campaign.").nullable()
|
|
11
|
+
}).passthrough().describe("Represents a Segmento campaign.");
|
|
12
12
|
const Msg91ListCampaigns_CampaignListDataSchema = z.object({
|
|
13
|
-
total: z.number().int().describe("Total number of campaigns."),
|
|
14
|
-
per_page: z.number().int().describe("Number of campaigns per page."),
|
|
13
|
+
total: z.number().int().describe("Total number of campaigns.").nullable(),
|
|
14
|
+
per_page: z.number().int().describe("Number of campaigns per page.").nullable(),
|
|
15
15
|
campaigns: z.array(Msg91ListCampaigns_CampaignSchema).describe("List of campaigns."),
|
|
16
|
-
current_page: z.number().int().describe("Current page number.")
|
|
17
|
-
}).describe("Pagination details and list of campaigns.");
|
|
16
|
+
current_page: z.number().int().describe("Current page number.").nullable()
|
|
17
|
+
}).passthrough().describe("Pagination details and list of campaigns.");
|
|
18
18
|
const msg91ListCampaigns = action("MSG91_LIST_CAMPAIGNS", {
|
|
19
19
|
slug: "msg91-list-campaigns",
|
|
20
20
|
name: "List Campaigns",
|
|
@@ -24,9 +24,9 @@ const msg91ListCampaigns = action("MSG91_LIST_CAMPAIGNS", {
|
|
|
24
24
|
code: z.string().describe("Error code (present in error responses).").nullable().optional(),
|
|
25
25
|
data: Msg91ListCampaigns_CampaignListDataSchema.nullable().optional(),
|
|
26
26
|
errors: z.string().describe("Error message (present in error responses).").nullable().optional(),
|
|
27
|
-
status: z.string().describe("Status of the response ('success' or 'fail')."),
|
|
27
|
+
status: z.string().describe("Status of the response ('success' or 'fail').").nullable(),
|
|
28
28
|
hasError: z.boolean().describe("Indicates if there's an error (present in error responses).").nullable().optional()
|
|
29
|
-
}).describe("Response model for listing Segmento campaigns.")
|
|
29
|
+
}).passthrough().describe("Response model for listing Segmento campaigns.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { msg91ListCampaigns };
|
|
@@ -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
|
|
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"}
|
|
@@ -6,9 +6,9 @@ const Msg91ResendOtpInput = zod.z.object({
|
|
|
6
6
|
retrytype: zod.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.")
|
|
7
7
|
});
|
|
8
8
|
const Msg91ResendOtpOutput = zod.z.object({
|
|
9
|
-
type: zod.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."),
|
|
10
|
-
message: zod.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.")
|
|
11
|
-
});
|
|
9
|
+
type: zod.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(),
|
|
10
|
+
message: zod.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()
|
|
11
|
+
}).passthrough();
|
|
12
12
|
const msg91ResendOtp = require_action.action("MSG91_RESEND_OTP", {
|
|
13
13
|
slug: "msg91-resend-otp",
|
|
14
14
|
name: "Resend OTP",
|
|
@@ -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
|
|
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,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/resend-otp.d.ts
|
|
4
|
-
declare const Msg91ResendOtpInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91ResendOtpInput: z.ZodObject<{
|
|
5
|
+
mobile: z.ZodString;
|
|
6
|
+
retrytype: z.ZodEnum<{
|
|
7
|
+
text: "text";
|
|
8
|
+
voice: "voice";
|
|
9
|
+
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const Msg91ResendOtpOutput: z.ZodObject<{
|
|
12
|
+
type: z.ZodNullable<z.ZodString>;
|
|
13
|
+
message: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
declare const msg91ResendOtp: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
mobile: string;
|
|
17
|
+
retrytype: "text" | "voice";
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { msg91ResendOtp };
|
|
9
21
|
//# sourceMappingURL=resend-otp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resend-otp.d.cts","names":[],"sources":["../../src/actions/resend-otp.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"resend-otp.d.cts","names":[],"sources":["../../src/actions/resend-otp.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;cAInB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/resend-otp.d.ts
|
|
4
|
-
declare const Msg91ResendOtpInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91ResendOtpInput: z.ZodObject<{
|
|
5
|
+
mobile: z.ZodString;
|
|
6
|
+
retrytype: z.ZodEnum<{
|
|
7
|
+
text: "text";
|
|
8
|
+
voice: "voice";
|
|
9
|
+
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const Msg91ResendOtpOutput: z.ZodObject<{
|
|
12
|
+
type: z.ZodNullable<z.ZodString>;
|
|
13
|
+
message: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
declare const msg91ResendOtp: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
mobile: string;
|
|
17
|
+
retrytype: "text" | "voice";
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { msg91ResendOtp };
|
|
9
21
|
//# sourceMappingURL=resend-otp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resend-otp.d.mts","names":[],"sources":["../../src/actions/resend-otp.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"resend-otp.d.mts","names":[],"sources":["../../src/actions/resend-otp.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;cAInB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -9,9 +9,9 @@ const msg91ResendOtp = action("MSG91_RESEND_OTP", {
|
|
|
9
9
|
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.")
|
|
10
10
|
}),
|
|
11
11
|
output: z.object({
|
|
12
|
-
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."),
|
|
13
|
-
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.")
|
|
14
|
-
})
|
|
12
|
+
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(),
|
|
13
|
+
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()
|
|
14
|
+
}).passthrough()
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { msg91ResendOtp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resend-otp.mjs","names":[],"sources":["../../src/actions/resend-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91ResendOtpInput
|
|
1
|
+
{"version":3,"file":"resend-otp.mjs","names":[],"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":";;AAaA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbiC,EAAE,OAAO;EAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EAClM,WAAW,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CAClM,CAUS;CACP,QAVkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;EAC9L,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CACxN,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,10 +13,10 @@ const Msg91SendOtpInput = zod.z.object({
|
|
|
13
13
|
realTimeResponse: zod.z.number().int().describe("Set to 1 to enable real-time response due to caching. This provides immediate delivery status. Set to 0 for standard response.")
|
|
14
14
|
});
|
|
15
15
|
const Msg91SendOtpOutput = zod.z.object({
|
|
16
|
-
type: zod.z.string().describe("Response status type: 'success' when OTP is sent successfully, 'error' when request fails. Check this field to determine if the OTP was delivered."),
|
|
16
|
+
type: zod.z.string().describe("Response status type: 'success' when OTP is sent successfully, 'error' when request fails. Check this field to determine if the OTP was delivered.").nullable(),
|
|
17
17
|
message: zod.z.string().describe("For error responses: error description explaining why the OTP sending failed. Not present in successful responses.").nullable().optional(),
|
|
18
18
|
request_id: zod.z.string().describe("Unique request ID for tracking the OTP request. Present in successful responses.").nullable().optional()
|
|
19
|
-
});
|
|
19
|
+
}).passthrough();
|
|
20
20
|
const msg91SendOtp = require_action.action("MSG91_SEND_OTP", {
|
|
21
21
|
slug: "msg91-send-otp",
|
|
22
22
|
name: "Send OTP",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-otp.cjs","names":["z","action"],"sources":["../../src/actions/send-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91SendOtpInput
|
|
1
|
+
{"version":3,"file":"send-otp.cjs","names":["z","action"],"sources":["../../src/actions/send-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91SendOtpInput = z.object({\n otp: z.string().describe(\"Custom OTP value to send. If not provided, MSG91 will auto-generate an OTP based on otp_length parameter. Use this when you need to send a specific OTP code.\").optional(),\n mobile: z.string().describe(\"Recipient mobile number in international format with country code (e.g., '919999999999' for India, '15551234567' for USA). Do not include '+' prefix or spaces.\"),\n userip: z.string().describe(\"End user's IP address for security tracking and fraud prevention. Helps identify the request origin.\").optional(),\n unicode: z.number().int().describe(\"Set to 1 for sending SMS in non-English languages (Hindi, Arabic, Chinese, etc.). Set to 0 for English only. Default: 0\").optional(),\n invisible: z.number().int().describe(\"For MOBILE APP only (do not use for web browsers). Set to 1 to enable invisible OTP verification, 0 to disable. Default: 0\").optional(),\n otp_expiry: z.number().int().describe(\"OTP expiry time in minutes. Minimum: 1 minute, Maximum: 10080 minutes (7 days), Default: 60 minutes. After this duration, the OTP becomes invalid.\"),\n otp_length: z.number().int().describe(\"Number of digits in the auto-generated OTP. Minimum: 4, Maximum: 9, Default: 4. Only applies when 'otp' parameter is not provided.\").optional(),\n template_id: z.string().describe(\"OTP template ID from the OTP section of MSG91 dashboard. This template defines the SMS content format with OTP placeholder.\"),\n realTimeResponse: z.number().int().describe(\"Set to 1 to enable real-time response due to caching. This provides immediate delivery status. Set to 0 for standard response.\"),\n});\nexport const Msg91SendOtpOutput = z.object({\n type: z.string().describe(\"Response status type: 'success' when OTP is sent successfully, 'error' when request fails. Check this field to determine if the OTP was delivered.\").nullable(),\n message: z.string().describe(\"For error responses: error description explaining why the OTP sending failed. Not present in successful responses.\").nullable().optional(),\n request_id: z.string().describe(\"Unique request ID for tracking the OTP request. Present in successful responses.\").nullable().optional(),\n}).passthrough();\n\nexport const msg91SendOtp = action(\"MSG91_SEND_OTP\", {\n slug: \"msg91-send-otp\",\n name: \"Send OTP\",\n description: \"Tool to send OTP (One-Time Password) to a mobile number using a pre-configured MSG91 template. Use when you need to verify user phone numbers for authentication, account registration, password reset, or transaction confirmation.\",\n input: Msg91SendOtpInput,\n output: Msg91SendOtpOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;CACnM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK;CAC7L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACvK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAC5K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ;CAC1L,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACrL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CAC9J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gIAAgI;AAC9K,CAAC;AACD,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,eAAeC,eAAAA,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/send-otp.d.ts
|
|
4
|
-
declare const Msg91SendOtpInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91SendOtpInput: z.ZodObject<{
|
|
5
|
+
otp: z.ZodOptional<z.ZodString>;
|
|
6
|
+
mobile: z.ZodString;
|
|
7
|
+
userip: z.ZodOptional<z.ZodString>;
|
|
8
|
+
unicode: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
invisible: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
otp_expiry: z.ZodNumber;
|
|
11
|
+
otp_length: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
template_id: z.ZodString;
|
|
13
|
+
realTimeResponse: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const Msg91SendOtpOutput: z.ZodObject<{
|
|
16
|
+
type: z.ZodNullable<z.ZodString>;
|
|
17
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
declare const msg91SendOtp: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
mobile: string;
|
|
22
|
+
otp_expiry: number;
|
|
23
|
+
template_id: string;
|
|
24
|
+
realTimeResponse: number;
|
|
25
|
+
otp?: string | undefined;
|
|
26
|
+
userip?: string | undefined;
|
|
27
|
+
unicode?: number | undefined;
|
|
28
|
+
invisible?: number | undefined;
|
|
29
|
+
otp_length?: number | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { msg91SendOtp };
|
|
9
33
|
//# sourceMappingURL=send-otp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-otp.d.cts","names":[],"sources":["../../src/actions/send-otp.ts"],"mappings":";;;cAIa,iBAAA,
|
|
1
|
+
{"version":3,"file":"send-otp.d.cts","names":[],"sources":["../../src/actions/send-otp.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAMlB,YAAA,gCAAY,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/send-otp.d.ts
|
|
4
|
-
declare const Msg91SendOtpInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Msg91SendOtpInput: z.ZodObject<{
|
|
5
|
+
otp: z.ZodOptional<z.ZodString>;
|
|
6
|
+
mobile: z.ZodString;
|
|
7
|
+
userip: z.ZodOptional<z.ZodString>;
|
|
8
|
+
unicode: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
invisible: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
otp_expiry: z.ZodNumber;
|
|
11
|
+
otp_length: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
template_id: z.ZodString;
|
|
13
|
+
realTimeResponse: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const Msg91SendOtpOutput: z.ZodObject<{
|
|
16
|
+
type: z.ZodNullable<z.ZodString>;
|
|
17
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
declare const msg91SendOtp: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
mobile: string;
|
|
22
|
+
otp_expiry: number;
|
|
23
|
+
template_id: string;
|
|
24
|
+
realTimeResponse: number;
|
|
25
|
+
otp?: string | undefined;
|
|
26
|
+
userip?: string | undefined;
|
|
27
|
+
unicode?: number | undefined;
|
|
28
|
+
invisible?: number | undefined;
|
|
29
|
+
otp_length?: number | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { msg91SendOtp };
|
|
9
33
|
//# sourceMappingURL=send-otp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-otp.d.mts","names":[],"sources":["../../src/actions/send-otp.ts"],"mappings":";;;cAIa,iBAAA,
|
|
1
|
+
{"version":3,"file":"send-otp.d.mts","names":[],"sources":["../../src/actions/send-otp.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAMlB,YAAA,gCAAY,wBAAA"}
|
|
@@ -16,10 +16,10 @@ const msg91SendOtp = action("MSG91_SEND_OTP", {
|
|
|
16
16
|
realTimeResponse: z.number().int().describe("Set to 1 to enable real-time response due to caching. This provides immediate delivery status. Set to 0 for standard response.")
|
|
17
17
|
}),
|
|
18
18
|
output: z.object({
|
|
19
|
-
type: z.string().describe("Response status type: 'success' when OTP is sent successfully, 'error' when request fails. Check this field to determine if the OTP was delivered."),
|
|
19
|
+
type: z.string().describe("Response status type: 'success' when OTP is sent successfully, 'error' when request fails. Check this field to determine if the OTP was delivered.").nullable(),
|
|
20
20
|
message: z.string().describe("For error responses: error description explaining why the OTP sending failed. Not present in successful responses.").nullable().optional(),
|
|
21
21
|
request_id: z.string().describe("Unique request ID for tracking the OTP request. Present in successful responses.").nullable().optional()
|
|
22
|
-
})
|
|
22
|
+
}).passthrough()
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { msg91SendOtp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-otp.mjs","names":[],"sources":["../../src/actions/send-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91SendOtpInput
|
|
1
|
+
{"version":3,"file":"send-otp.mjs","names":[],"sources":["../../src/actions/send-otp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Msg91SendOtpInput = z.object({\n otp: z.string().describe(\"Custom OTP value to send. If not provided, MSG91 will auto-generate an OTP based on otp_length parameter. Use this when you need to send a specific OTP code.\").optional(),\n mobile: z.string().describe(\"Recipient mobile number in international format with country code (e.g., '919999999999' for India, '15551234567' for USA). Do not include '+' prefix or spaces.\"),\n userip: z.string().describe(\"End user's IP address for security tracking and fraud prevention. Helps identify the request origin.\").optional(),\n unicode: z.number().int().describe(\"Set to 1 for sending SMS in non-English languages (Hindi, Arabic, Chinese, etc.). Set to 0 for English only. Default: 0\").optional(),\n invisible: z.number().int().describe(\"For MOBILE APP only (do not use for web browsers). Set to 1 to enable invisible OTP verification, 0 to disable. Default: 0\").optional(),\n otp_expiry: z.number().int().describe(\"OTP expiry time in minutes. Minimum: 1 minute, Maximum: 10080 minutes (7 days), Default: 60 minutes. After this duration, the OTP becomes invalid.\"),\n otp_length: z.number().int().describe(\"Number of digits in the auto-generated OTP. Minimum: 4, Maximum: 9, Default: 4. Only applies when 'otp' parameter is not provided.\").optional(),\n template_id: z.string().describe(\"OTP template ID from the OTP section of MSG91 dashboard. This template defines the SMS content format with OTP placeholder.\"),\n realTimeResponse: z.number().int().describe(\"Set to 1 to enable real-time response due to caching. This provides immediate delivery status. Set to 0 for standard response.\"),\n});\nexport const Msg91SendOtpOutput = z.object({\n type: z.string().describe(\"Response status type: 'success' when OTP is sent successfully, 'error' when request fails. Check this field to determine if the OTP was delivered.\").nullable(),\n message: z.string().describe(\"For error responses: error description explaining why the OTP sending failed. Not present in successful responses.\").nullable().optional(),\n request_id: z.string().describe(\"Unique request ID for tracking the OTP request. Present in successful responses.\").nullable().optional(),\n}).passthrough();\n\nexport const msg91SendOtp = action(\"MSG91_SEND_OTP\", {\n slug: \"msg91-send-otp\",\n name: \"Send OTP\",\n description: \"Tool to send OTP (One-Time Password) to a mobile number using a pre-configured MSG91 template. Use when you need to verify user phone numbers for authentication, account registration, password reset, or transaction confirmation.\",\n input: Msg91SendOtpInput,\n output: Msg91SendOtpOutput,\n});\n"],"mappings":";;AAqBA,MAAa,eAAe,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB+B,EAAE,OAAO;EACxC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;EACnM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK;EAC7L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EACvK,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;EAC5K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ;EAC1L,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EACrL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;EAC9J,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gIAAgI;CAC9K,CAWS;CACP,QAXgC,EAAE,OAAO;EACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;EACzL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const Msg91SendSmsV5Input = zod.z.object({
|
|
|
10
10
|
VAR4: zod.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(),
|
|
11
11
|
VAR5: zod.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(),
|
|
12
12
|
mobiles: zod.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.")
|
|
13
|
-
}).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."),
|
|
13
|
+
}).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."),
|
|
14
14
|
template_id: zod.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."),
|
|
15
15
|
realTimeResponse: zod.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(),
|
|
16
16
|
short_url_expiry: zod.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()
|
|
@@ -19,7 +19,7 @@ const Msg91SendSmsV5Output = zod.z.object({
|
|
|
19
19
|
type: zod.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(),
|
|
20
20
|
message: zod.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(),
|
|
21
21
|
request_id: zod.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()
|
|
22
|
-
}).describe("Response model after sending SMS via Flow API v5.");
|
|
22
|
+
}).passthrough().describe("Response model after sending SMS via Flow API v5.");
|
|
23
23
|
const msg91SendSmsV5 = require_action.action("MSG91_SEND_SMS_V5", {
|
|
24
24
|
slug: "msg91-send-sms-v5",
|
|
25
25
|
name: "Send SMS via Flow (V5)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-sms-v5.cjs","names":["z","action"],"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.cjs","names":["z","action"],"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":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CAC5M,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;EACnM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;EACpM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;EACnM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;EACpM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;EACnM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK;CACxM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,CAAC,SAAS,gKAAgK;CACvR,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC7K,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;CAChN,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;AACnN,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,iBAAiBC,eAAAA,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -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.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-sms-v5.d.cts","names":[],"sources":["../../src/actions/send-sms-v5.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"send-sms-v5.d.cts","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"}
|