@keystrokehq/moosend 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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-segment-criteria.cjs +29 -0
- package/dist/actions/add-segment-criteria.cjs.map +1 -0
- package/dist/actions/add-segment-criteria.d.cts +9 -0
- package/dist/actions/add-segment-criteria.d.cts.map +1 -0
- package/dist/actions/add-segment-criteria.d.mts +9 -0
- package/dist/actions/add-segment-criteria.d.mts.map +1 -0
- package/dist/actions/add-segment-criteria.mjs +26 -0
- package/dist/actions/add-segment-criteria.mjs.map +1 -0
- package/dist/actions/add-subscriber.cjs +29 -0
- package/dist/actions/add-subscriber.cjs.map +1 -0
- package/dist/actions/add-subscriber.d.cts +9 -0
- package/dist/actions/add-subscriber.d.cts.map +1 -0
- package/dist/actions/add-subscriber.d.mts +9 -0
- package/dist/actions/add-subscriber.d.mts.map +1 -0
- package/dist/actions/add-subscriber.mjs +26 -0
- package/dist/actions/add-subscriber.mjs.map +1 -0
- package/dist/actions/clone-campaign.cjs +23 -0
- package/dist/actions/clone-campaign.cjs.map +1 -0
- package/dist/actions/clone-campaign.d.cts +9 -0
- package/dist/actions/clone-campaign.d.cts.map +1 -0
- package/dist/actions/clone-campaign.d.mts +9 -0
- package/dist/actions/clone-campaign.d.mts.map +1 -0
- package/dist/actions/clone-campaign.mjs +20 -0
- package/dist/actions/clone-campaign.mjs.map +1 -0
- package/dist/actions/create-custom-field.cjs +34 -0
- package/dist/actions/create-custom-field.cjs.map +1 -0
- package/dist/actions/create-custom-field.d.cts +9 -0
- package/dist/actions/create-custom-field.d.cts.map +1 -0
- package/dist/actions/create-custom-field.d.mts +9 -0
- package/dist/actions/create-custom-field.d.mts.map +1 -0
- package/dist/actions/create-custom-field.mjs +31 -0
- package/dist/actions/create-custom-field.mjs.map +1 -0
- package/dist/actions/create-mailing-list.cjs +24 -0
- package/dist/actions/create-mailing-list.cjs.map +1 -0
- package/dist/actions/create-mailing-list.d.cts +9 -0
- package/dist/actions/create-mailing-list.d.cts.map +1 -0
- package/dist/actions/create-mailing-list.d.mts +9 -0
- package/dist/actions/create-mailing-list.d.mts.map +1 -0
- package/dist/actions/create-mailing-list.mjs +21 -0
- package/dist/actions/create-mailing-list.mjs.map +1 -0
- package/dist/actions/create-segment.cjs +36 -0
- package/dist/actions/create-segment.cjs.map +1 -0
- package/dist/actions/create-segment.d.cts +9 -0
- package/dist/actions/create-segment.d.cts.map +1 -0
- package/dist/actions/create-segment.d.mts +9 -0
- package/dist/actions/create-segment.d.mts.map +1 -0
- package/dist/actions/create-segment.mjs +33 -0
- package/dist/actions/create-segment.mjs.map +1 -0
- package/dist/actions/delete-campaign.cjs +23 -0
- package/dist/actions/delete-campaign.cjs.map +1 -0
- package/dist/actions/delete-campaign.d.cts +9 -0
- package/dist/actions/delete-campaign.d.cts.map +1 -0
- package/dist/actions/delete-campaign.d.mts +9 -0
- package/dist/actions/delete-campaign.d.mts.map +1 -0
- package/dist/actions/delete-campaign.mjs +20 -0
- package/dist/actions/delete-campaign.mjs.map +1 -0
- package/dist/actions/delete-custom-field.cjs +24 -0
- package/dist/actions/delete-custom-field.cjs.map +1 -0
- package/dist/actions/delete-custom-field.d.cts +9 -0
- package/dist/actions/delete-custom-field.d.cts.map +1 -0
- package/dist/actions/delete-custom-field.d.mts +9 -0
- package/dist/actions/delete-custom-field.d.mts.map +1 -0
- package/dist/actions/delete-custom-field.mjs +21 -0
- package/dist/actions/delete-custom-field.mjs.map +1 -0
- package/dist/actions/delete-mailing-list.cjs +23 -0
- package/dist/actions/delete-mailing-list.cjs.map +1 -0
- package/dist/actions/delete-mailing-list.d.cts +9 -0
- package/dist/actions/delete-mailing-list.d.cts.map +1 -0
- package/dist/actions/delete-mailing-list.d.mts +9 -0
- package/dist/actions/delete-mailing-list.d.mts.map +1 -0
- package/dist/actions/delete-mailing-list.mjs +20 -0
- package/dist/actions/delete-mailing-list.mjs.map +1 -0
- package/dist/actions/get-all-campaigns.cjs +23 -0
- package/dist/actions/get-all-campaigns.cjs.map +1 -0
- package/dist/actions/get-all-campaigns.d.cts +9 -0
- package/dist/actions/get-all-campaigns.d.cts.map +1 -0
- package/dist/actions/get-all-campaigns.d.mts +9 -0
- package/dist/actions/get-all-campaigns.d.mts.map +1 -0
- package/dist/actions/get-all-campaigns.mjs +20 -0
- package/dist/actions/get-all-campaigns.mjs.map +1 -0
- package/dist/actions/get-all-subscribers.cjs +64 -0
- package/dist/actions/get-all-subscribers.cjs.map +1 -0
- package/dist/actions/get-all-subscribers.d.cts +9 -0
- package/dist/actions/get-all-subscribers.d.cts.map +1 -0
- package/dist/actions/get-all-subscribers.d.mts +9 -0
- package/dist/actions/get-all-subscribers.d.mts.map +1 -0
- package/dist/actions/get-all-subscribers.mjs +63 -0
- package/dist/actions/get-all-subscribers.mjs.map +1 -0
- package/dist/actions/get-campaign-details.cjs +20 -0
- package/dist/actions/get-campaign-details.cjs.map +1 -0
- package/dist/actions/get-campaign-details.d.cts +9 -0
- package/dist/actions/get-campaign-details.d.cts.map +1 -0
- package/dist/actions/get-campaign-details.d.mts +9 -0
- package/dist/actions/get-campaign-details.d.mts.map +1 -0
- package/dist/actions/get-campaign-details.mjs +17 -0
- package/dist/actions/get-campaign-details.mjs.map +1 -0
- package/dist/actions/get-campaign-stats-by-location.cjs +20 -0
- package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -0
- package/dist/actions/get-campaign-stats-by-location.d.cts +9 -0
- package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -0
- package/dist/actions/get-campaign-stats-by-location.d.mts +9 -0
- package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -0
- package/dist/actions/get-campaign-stats-by-location.mjs +17 -0
- package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -0
- package/dist/actions/get-mailing-list-details.cjs +46 -0
- package/dist/actions/get-mailing-list-details.cjs.map +1 -0
- package/dist/actions/get-mailing-list-details.d.cts +9 -0
- package/dist/actions/get-mailing-list-details.d.cts.map +1 -0
- package/dist/actions/get-mailing-list-details.d.mts +9 -0
- package/dist/actions/get-mailing-list-details.d.mts.map +1 -0
- package/dist/actions/get-mailing-list-details.mjs +45 -0
- package/dist/actions/get-mailing-list-details.mjs.map +1 -0
- package/dist/actions/get-subscriber-by-email.cjs +49 -0
- package/dist/actions/get-subscriber-by-email.cjs.map +1 -0
- package/dist/actions/get-subscriber-by-email.d.cts +9 -0
- package/dist/actions/get-subscriber-by-email.d.cts.map +1 -0
- package/dist/actions/get-subscriber-by-email.d.mts +9 -0
- package/dist/actions/get-subscriber-by-email.d.mts.map +1 -0
- package/dist/actions/get-subscriber-by-email.mjs +48 -0
- package/dist/actions/get-subscriber-by-email.mjs.map +1 -0
- package/dist/actions/index.cjs +63 -0
- package/dist/actions/index.d.cts +32 -0
- package/dist/actions/index.d.mts +32 -0
- package/dist/actions/index.mjs +32 -0
- package/dist/actions/list-all-mailing-lists.cjs +68 -0
- package/dist/actions/list-all-mailing-lists.cjs.map +1 -0
- package/dist/actions/list-all-mailing-lists.d.cts +9 -0
- package/dist/actions/list-all-mailing-lists.d.cts.map +1 -0
- package/dist/actions/list-all-mailing-lists.d.mts +9 -0
- package/dist/actions/list-all-mailing-lists.d.mts.map +1 -0
- package/dist/actions/list-all-mailing-lists.mjs +67 -0
- package/dist/actions/list-all-mailing-lists.mjs.map +1 -0
- package/dist/actions/list-all-senders.cjs +28 -0
- package/dist/actions/list-all-senders.cjs.map +1 -0
- package/dist/actions/list-all-senders.d.cts +9 -0
- package/dist/actions/list-all-senders.d.cts.map +1 -0
- package/dist/actions/list-all-senders.d.mts +9 -0
- package/dist/actions/list-all-senders.d.mts.map +1 -0
- package/dist/actions/list-all-senders.mjs +27 -0
- package/dist/actions/list-all-senders.mjs.map +1 -0
- package/dist/actions/list-campaigns-with-paging.cjs +57 -0
- package/dist/actions/list-campaigns-with-paging.cjs.map +1 -0
- package/dist/actions/list-campaigns-with-paging.d.cts +9 -0
- package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -0
- package/dist/actions/list-campaigns-with-paging.d.mts +9 -0
- package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -0
- package/dist/actions/list-campaigns-with-paging.mjs +56 -0
- package/dist/actions/list-campaigns-with-paging.mjs.map +1 -0
- package/dist/actions/list-segments.cjs +60 -0
- package/dist/actions/list-segments.cjs.map +1 -0
- package/dist/actions/list-segments.d.cts +9 -0
- package/dist/actions/list-segments.d.cts.map +1 -0
- package/dist/actions/list-segments.d.mts +9 -0
- package/dist/actions/list-segments.d.mts.map +1 -0
- package/dist/actions/list-segments.mjs +59 -0
- package/dist/actions/list-segments.mjs.map +1 -0
- package/dist/actions/remove-multiple-subscribers.cjs +24 -0
- package/dist/actions/remove-multiple-subscribers.cjs.map +1 -0
- package/dist/actions/remove-multiple-subscribers.d.cts +9 -0
- package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -0
- package/dist/actions/remove-multiple-subscribers.d.mts +9 -0
- package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -0
- package/dist/actions/remove-multiple-subscribers.mjs +21 -0
- package/dist/actions/remove-multiple-subscribers.mjs.map +1 -0
- package/dist/actions/schedule-campaign.cjs +25 -0
- package/dist/actions/schedule-campaign.cjs.map +1 -0
- package/dist/actions/schedule-campaign.d.cts +9 -0
- package/dist/actions/schedule-campaign.d.cts.map +1 -0
- package/dist/actions/schedule-campaign.d.mts +9 -0
- package/dist/actions/schedule-campaign.d.mts.map +1 -0
- package/dist/actions/schedule-campaign.mjs +22 -0
- package/dist/actions/schedule-campaign.mjs.map +1 -0
- package/dist/actions/send-campaign.cjs +23 -0
- package/dist/actions/send-campaign.cjs.map +1 -0
- package/dist/actions/send-campaign.d.cts +9 -0
- package/dist/actions/send-campaign.d.cts.map +1 -0
- package/dist/actions/send-campaign.d.mts +9 -0
- package/dist/actions/send-campaign.d.mts.map +1 -0
- package/dist/actions/send-campaign.mjs +20 -0
- package/dist/actions/send-campaign.mjs.map +1 -0
- package/dist/actions/unschedule-campaign.cjs +23 -0
- package/dist/actions/unschedule-campaign.cjs.map +1 -0
- package/dist/actions/unschedule-campaign.d.cts +9 -0
- package/dist/actions/unschedule-campaign.d.cts.map +1 -0
- package/dist/actions/unschedule-campaign.d.mts +9 -0
- package/dist/actions/unschedule-campaign.d.mts.map +1 -0
- package/dist/actions/unschedule-campaign.mjs +20 -0
- package/dist/actions/unschedule-campaign.mjs.map +1 -0
- package/dist/actions/unsubscribe-from-account.cjs +23 -0
- package/dist/actions/unsubscribe-from-account.cjs.map +1 -0
- package/dist/actions/unsubscribe-from-account.d.cts +9 -0
- package/dist/actions/unsubscribe-from-account.d.cts.map +1 -0
- package/dist/actions/unsubscribe-from-account.d.mts +9 -0
- package/dist/actions/unsubscribe-from-account.d.mts.map +1 -0
- package/dist/actions/unsubscribe-from-account.mjs +20 -0
- package/dist/actions/unsubscribe-from-account.mjs.map +1 -0
- package/dist/actions/unsubscribe-from-mailing-list.cjs +24 -0
- package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -0
- package/dist/actions/unsubscribe-from-mailing-list.d.cts +9 -0
- package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -0
- package/dist/actions/unsubscribe-from-mailing-list.d.mts +9 -0
- package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -0
- package/dist/actions/unsubscribe-from-mailing-list.mjs +21 -0
- package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -0
- package/dist/actions/update-campaign.cjs +47 -0
- package/dist/actions/update-campaign.cjs.map +1 -0
- package/dist/actions/update-campaign.d.cts +9 -0
- package/dist/actions/update-campaign.d.cts.map +1 -0
- package/dist/actions/update-campaign.d.mts +9 -0
- package/dist/actions/update-campaign.d.mts.map +1 -0
- package/dist/actions/update-campaign.mjs +44 -0
- package/dist/actions/update-campaign.mjs.map +1 -0
- package/dist/actions/update-custom-field.cjs +35 -0
- package/dist/actions/update-custom-field.cjs.map +1 -0
- package/dist/actions/update-custom-field.d.cts +9 -0
- package/dist/actions/update-custom-field.d.cts.map +1 -0
- package/dist/actions/update-custom-field.d.mts +9 -0
- package/dist/actions/update-custom-field.d.mts.map +1 -0
- package/dist/actions/update-custom-field.mjs +32 -0
- package/dist/actions/update-custom-field.mjs.map +1 -0
- package/dist/actions/update-mailing-list.cjs +38 -0
- package/dist/actions/update-mailing-list.cjs.map +1 -0
- package/dist/actions/update-mailing-list.d.cts +9 -0
- package/dist/actions/update-mailing-list.d.cts.map +1 -0
- package/dist/actions/update-mailing-list.d.mts +9 -0
- package/dist/actions/update-mailing-list.d.mts.map +1 -0
- package/dist/actions/update-mailing-list.mjs +37 -0
- package/dist/actions/update-mailing-list.mjs.map +1 -0
- package/dist/actions/update-segment-criteria.cjs +30 -0
- package/dist/actions/update-segment-criteria.cjs.map +1 -0
- package/dist/actions/update-segment-criteria.d.cts +9 -0
- package/dist/actions/update-segment-criteria.d.cts.map +1 -0
- package/dist/actions/update-segment-criteria.d.mts +9 -0
- package/dist/actions/update-segment-criteria.d.mts.map +1 -0
- package/dist/actions/update-segment-criteria.mjs +27 -0
- package/dist/actions/update-segment-criteria.mjs.map +1 -0
- package/dist/actions/update-segment.cjs +47 -0
- package/dist/actions/update-segment.cjs.map +1 -0
- package/dist/actions/update-segment.d.cts +9 -0
- package/dist/actions/update-segment.d.cts.map +1 -0
- package/dist/actions/update-segment.d.mts +9 -0
- package/dist/actions/update-segment.d.mts.map +1 -0
- package/dist/actions/update-segment.mjs +46 -0
- package/dist/actions/update-segment.mjs.map +1 -0
- package/dist/actions/update-subscriber.cjs +28 -0
- package/dist/actions/update-subscriber.cjs.map +1 -0
- package/dist/actions/update-subscriber.d.cts +9 -0
- package/dist/actions/update-subscriber.d.cts.map +1 -0
- package/dist/actions/update-subscriber.d.mts +9 -0
- package/dist/actions/update-subscriber.d.mts.map +1 -0
- package/dist/actions/update-subscriber.mjs +25 -0
- package/dist/actions/update-subscriber.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +34 -0
- package/dist/index.d.mts +34 -0
- package/dist/index.mjs +35 -0
- package/package.json +49 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-mailing-list.ts
|
|
4
|
+
const MoosendUpdateMailingListInput = z.object({
|
|
5
|
+
name: z.string().describe("New name for the mailing list.").optional(),
|
|
6
|
+
format: z.string().default("json").describe("Response format, either 'json' or 'xml'.").optional(),
|
|
7
|
+
description: z.string().describe("A description for the mailing list.").optional(),
|
|
8
|
+
sender_name: z.string().describe("Sender name for the mailing list.").optional(),
|
|
9
|
+
sender_email: z.string().describe("Sender email address for the mailing list.").optional(),
|
|
10
|
+
reply_to_email: z.string().describe("Reply-to email address for the mailing list.").optional(),
|
|
11
|
+
mailing_list_id: z.string().describe("The unique identifier of the mailing list to update.")
|
|
12
|
+
}).describe("Request schema for `UpdateMailingList`");
|
|
13
|
+
const MoosendUpdateMailingList_MailingListContextSchema = z.object({
|
|
14
|
+
ID: z.string().describe("The mailing list ID."),
|
|
15
|
+
Name: z.string().describe("Mailing list name."),
|
|
16
|
+
CreatedOn: z.string().describe("Date-time when the list was created."),
|
|
17
|
+
UpdatedOn: z.string().describe("Date-time when the list was last updated."),
|
|
18
|
+
SenderName: z.string().describe("Sender name."),
|
|
19
|
+
Description: z.string().describe("Mailing list description.").nullable().optional(),
|
|
20
|
+
SenderEmail: z.string().describe("Sender email address."),
|
|
21
|
+
ReplyToEmail: z.string().describe("Reply-to email address.")
|
|
22
|
+
}).describe("Context schema containing updated mailing list details");
|
|
23
|
+
const moosendUpdateMailingList = action("MOOSEND_UPDATE_MAILING_LIST", {
|
|
24
|
+
slug: "moosend-update-mailing-list",
|
|
25
|
+
name: "Update Mailing List",
|
|
26
|
+
description: "Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.",
|
|
27
|
+
input: MoosendUpdateMailingListInput,
|
|
28
|
+
output: z.object({
|
|
29
|
+
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
30
|
+
Error: z.string().describe("Error message if any.").nullable().optional(),
|
|
31
|
+
Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional()
|
|
32
|
+
}).describe("Response schema for `UpdateMailingList`")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { moosendUpdateMailingList };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=update-mailing-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-mailing-list.mjs","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The mailing list ID.\"),\n Name: z.string().describe(\"Mailing list name.\"),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\"),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\"),\n SenderName: z.string().describe(\"Sender name.\"),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\"),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\"),\n}).describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAkE,EAAE,OAAO;CAC/E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CAC9C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACxD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC7D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAOpE,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,MAAM,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-segment-criteria.ts
|
|
4
|
+
const MoosendUpdateSegmentCriteriaInput = zod.z.object({
|
|
5
|
+
field: zod.z.string().describe("The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names)."),
|
|
6
|
+
value: zod.z.string().describe("A search term to filter the specified field by."),
|
|
7
|
+
format: zod.z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.").optional(),
|
|
8
|
+
date_to: zod.z.string().describe("Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.").optional(),
|
|
9
|
+
comparer: zod.z.string().default("Is").describe("An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').").optional(),
|
|
10
|
+
date_from: zod.z.string().describe("Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.").optional(),
|
|
11
|
+
segment_id: zod.z.string().describe("The ID of the segment containing the criterion to update."),
|
|
12
|
+
criteria_id: zod.z.number().int().describe("The ID of the criterion to update."),
|
|
13
|
+
mailing_list_id: zod.z.string().describe("The ID of the mailing list the specified segment belongs to.")
|
|
14
|
+
}).describe("Request schema for updating an existing criterion in a segment.");
|
|
15
|
+
const MoosendUpdateSegmentCriteriaOutput = zod.z.object({
|
|
16
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
17
|
+
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
18
|
+
Context: zod.z.number().int().describe("Contains the updated criteria ID.").nullable().optional()
|
|
19
|
+
}).describe("Response schema for UpdateSegmentCriteria action.");
|
|
20
|
+
const moosendUpdateSegmentCriteria = require_action.action("MOOSEND_UPDATE_SEGMENT_CRITERIA", {
|
|
21
|
+
slug: "moosend-update-segment-criteria",
|
|
22
|
+
name: "Update Segment Criteria",
|
|
23
|
+
description: "Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.",
|
|
24
|
+
input: MoosendUpdateSegmentCriteriaInput,
|
|
25
|
+
output: MoosendUpdateSegmentCriteriaOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.moosendUpdateSegmentCriteria = moosendUpdateSegmentCriteria;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=update-segment-criteria.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment containing the criterion to update.\"),\n criteria_id: z.number().int().describe(\"The ID of the criterion to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for updating an existing criterion in a segment.\");\nexport const MoosendUpdateSegmentCriteriaOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.number().int().describe(\"Contains the updated criteria ID.\").nullable().optional(),\n}).describe(\"Response schema for UpdateSegmentCriteria action.\");\n\nexport const moosendUpdateSegmentCriteria = action(\"MOOSEND_UPDATE_SEGMENT_CRITERIA\", {\n slug: \"moosend-update-segment-criteria\",\n name: \"Update Segment Criteria\",\n description: \"Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.\",\n input: MoosendUpdateSegmentCriteriaInput,\n output: MoosendUpdateSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACnJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-segment-criteria.d.ts
|
|
4
|
+
declare const MoosendUpdateSegmentCriteriaInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoosendUpdateSegmentCriteriaOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moosendUpdateSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moosendUpdateSegmentCriteria };
|
|
9
|
+
//# sourceMappingURL=update-segment-criteria.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.d.cts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAU4B;AAAA,cACjE,kCAAA,EAAoC,CAAA,CAAE,UAIa;AAAA,cAEnD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-segment-criteria.d.ts
|
|
4
|
+
declare const MoosendUpdateSegmentCriteriaInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoosendUpdateSegmentCriteriaOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moosendUpdateSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moosendUpdateSegmentCriteria };
|
|
9
|
+
//# sourceMappingURL=update-segment-criteria.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.d.mts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAU4B;AAAA,cACjE,kCAAA,EAAoC,CAAA,CAAE,UAIa;AAAA,cAEnD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const moosendUpdateSegmentCriteria = action("MOOSEND_UPDATE_SEGMENT_CRITERIA", {
|
|
4
|
+
slug: "moosend-update-segment-criteria",
|
|
5
|
+
name: "Update Segment Criteria",
|
|
6
|
+
description: "Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
field: z.string().describe("The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names)."),
|
|
9
|
+
value: z.string().describe("A search term to filter the specified field by."),
|
|
10
|
+
format: z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.").optional(),
|
|
11
|
+
date_to: z.string().describe("Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.").optional(),
|
|
12
|
+
comparer: z.string().default("Is").describe("An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').").optional(),
|
|
13
|
+
date_from: z.string().describe("Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.").optional(),
|
|
14
|
+
segment_id: z.string().describe("The ID of the segment containing the criterion to update."),
|
|
15
|
+
criteria_id: z.number().int().describe("The ID of the criterion to update."),
|
|
16
|
+
mailing_list_id: z.string().describe("The ID of the mailing list the specified segment belongs to.")
|
|
17
|
+
}).describe("Request schema for updating an existing criterion in a segment."),
|
|
18
|
+
output: z.object({
|
|
19
|
+
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
20
|
+
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
21
|
+
Context: z.number().int().describe("Contains the updated criteria ID.").nullable().optional()
|
|
22
|
+
}).describe("Response schema for UpdateSegmentCriteria action.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { moosendUpdateSegmentCriteria };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=update-segment-criteria.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.mjs","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment containing the criterion to update.\"),\n criteria_id: z.number().int().describe(\"The ID of the criterion to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for updating an existing criterion in a segment.\");\nexport const MoosendUpdateSegmentCriteriaOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.number().int().describe(\"Contains the updated criteria ID.\").nullable().optional(),\n}).describe(\"Response schema for UpdateSegmentCriteria action.\");\n\nexport const moosendUpdateSegmentCriteria = action(\"MOOSEND_UPDATE_SEGMENT_CRITERIA\", {\n slug: \"moosend-update-segment-criteria\",\n name: \"Update Segment Criteria\",\n description: \"Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.\",\n input: MoosendUpdateSegmentCriteriaInput,\n output: MoosendUpdateSegmentCriteriaOutput,\n});\n"],"mappings":";;AAqBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB6D,EAAE,OAAO;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACnJ,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;EACjN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACrJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,iEAWH;CACP,QAX8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-segment.ts
|
|
4
|
+
const MoosendUpdateSegmentInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("The new name for the segment. If not provided, the existing name is retained.").optional(),
|
|
6
|
+
format: zod.z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'.").optional(),
|
|
7
|
+
Criteria: zod.z.array(zod.z.object({
|
|
8
|
+
Field: zod.z.string().describe("The field to filter on (e.g., Email, Name, or custom field name)."),
|
|
9
|
+
Value: zod.z.string().describe("The value to compare against."),
|
|
10
|
+
Comparer: zod.z.string().describe("The comparison operator (e.g., Contains, Equals, NotEquals, GreaterThan, etc.).")
|
|
11
|
+
}).describe("A single filter criterion for segment matching.")).describe("Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.").optional(),
|
|
12
|
+
FetchType: zod.z.enum([
|
|
13
|
+
"All",
|
|
14
|
+
"Top",
|
|
15
|
+
"TopPercent"
|
|
16
|
+
]).describe("How many matching subscribers to fetch.").optional(),
|
|
17
|
+
MatchType: zod.z.enum(["All", "Any"]).describe("How segment criteria match together.").optional(),
|
|
18
|
+
FetchValue: zod.z.number().int().describe("Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%). Required when FetchType is 'Top' or 'TopPercent'.").optional(),
|
|
19
|
+
segment_id: zod.z.string().describe("The ID of the segment to update."),
|
|
20
|
+
mailing_list_id: zod.z.string().describe("The ID of the mailing list the segment belongs to.")
|
|
21
|
+
}).describe("Request schema for updating an existing segment in a mailing list.");
|
|
22
|
+
const MoosendUpdateSegment_SegmentContextSchema = zod.z.object({
|
|
23
|
+
ID: zod.z.string().describe("The segment ID.").nullable().optional(),
|
|
24
|
+
Name: zod.z.string().describe("Segment name.").nullable().optional(),
|
|
25
|
+
Criteria: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of criteria objects.").nullable().optional(),
|
|
26
|
+
CreatedOn: zod.z.string().describe("Date-time when the segment was created.").nullable().optional(),
|
|
27
|
+
FetchType: zod.z.string().describe("Fetch type: All, Top, or TopPercent.").nullable().optional(),
|
|
28
|
+
MatchType: zod.z.string().describe("Match type: All or Any.").nullable().optional(),
|
|
29
|
+
UpdatedOn: zod.z.string().describe("Date-time when the segment was last updated.").nullable().optional(),
|
|
30
|
+
FetchValue: zod.z.number().int().describe("Fetch value for Top/TopPercent.").nullable().optional()
|
|
31
|
+
}).describe("Context schema containing updated segment details.");
|
|
32
|
+
const MoosendUpdateSegmentOutput = zod.z.object({
|
|
33
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
34
|
+
Error: zod.z.string().describe("Error message if any; null if successful.").nullable().optional(),
|
|
35
|
+
Context: MoosendUpdateSegment_SegmentContextSchema.nullable().optional()
|
|
36
|
+
}).describe("Response schema for UpdateSegment action.");
|
|
37
|
+
const moosendUpdateSegment = require_action.action("MOOSEND_UPDATE_SEGMENT", {
|
|
38
|
+
slug: "moosend-update-segment",
|
|
39
|
+
name: "Update Segment",
|
|
40
|
+
description: "Tool to update properties and criteria of an existing segment. Use when you need to modify segment name, match type, or filtering criteria.",
|
|
41
|
+
input: MoosendUpdateSegmentInput,
|
|
42
|
+
output: MoosendUpdateSegmentOutput
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.moosendUpdateSegment = moosendUpdateSegment;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=update-segment.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment.cjs","names":["z","action"],"sources":["../../src/actions/update-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The new name for the segment. If not provided, the existing name is retained.\").optional(),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., Email, Name, or custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"The comparison operator (e.g., Contains, Equals, NotEquals, GreaterThan, etc.).\"),\n}).describe(\"A single filter criterion for segment matching.\")).describe(\"Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%). Required when FetchType is 'Top' or 'TopPercent'.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the segment belongs to.\"),\n}).describe(\"Request schema for updating an existing segment in a mailing list.\");\nconst MoosendUpdateSegment_SegmentContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The segment ID.\").nullable().optional(),\n Name: z.string().describe(\"Segment name.\").nullable().optional(),\n Criteria: z.array(z.record(z.string(), z.unknown())).describe(\"Array of criteria objects.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date-time when the segment was created.\").nullable().optional(),\n FetchType: z.string().describe(\"Fetch type: All, Top, or TopPercent.\").nullable().optional(),\n MatchType: z.string().describe(\"Match type: All or Any.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Date-time when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value for Top/TopPercent.\").nullable().optional(),\n}).describe(\"Context schema containing updated segment details.\");\nexport const MoosendUpdateSegmentOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if any; null if successful.\").nullable().optional(),\n Context: MoosendUpdateSegment_SegmentContextSchema.nullable().optional(),\n}).describe(\"Response schema for UpdateSegment action.\");\n\nexport const moosendUpdateSegment = action(\"MOOSEND_UPDATE_SEGMENT\", {\n slug: \"moosend-update-segment\",\n name: \"Update Segment\",\n description: \"Tool to update properties and criteria of an existing segment. Use when you need to modify segment name, match type, or filtering criteria.\",\n input: MoosendUpdateSegmentInput,\n output: MoosendUpdateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CAC/N,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACtM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AAC3F,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAAS,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-segment.d.ts
|
|
4
|
+
declare const MoosendUpdateSegmentInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoosendUpdateSegmentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moosendUpdateSegment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moosendUpdateSegment };
|
|
9
|
+
//# sourceMappingURL=update-segment.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment.d.cts","names":[],"sources":["../../src/actions/update-segment.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAauC;AAAA,cAWpE,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-segment.d.ts
|
|
4
|
+
declare const MoosendUpdateSegmentInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoosendUpdateSegmentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moosendUpdateSegment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moosendUpdateSegment };
|
|
9
|
+
//# sourceMappingURL=update-segment.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment.d.mts","names":[],"sources":["../../src/actions/update-segment.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAauC;AAAA,cAWpE,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-segment.ts
|
|
4
|
+
const MoosendUpdateSegmentInput = z.object({
|
|
5
|
+
Name: z.string().describe("The new name for the segment. If not provided, the existing name is retained.").optional(),
|
|
6
|
+
format: z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'.").optional(),
|
|
7
|
+
Criteria: z.array(z.object({
|
|
8
|
+
Field: z.string().describe("The field to filter on (e.g., Email, Name, or custom field name)."),
|
|
9
|
+
Value: z.string().describe("The value to compare against."),
|
|
10
|
+
Comparer: z.string().describe("The comparison operator (e.g., Contains, Equals, NotEquals, GreaterThan, etc.).")
|
|
11
|
+
}).describe("A single filter criterion for segment matching.")).describe("Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.").optional(),
|
|
12
|
+
FetchType: z.enum([
|
|
13
|
+
"All",
|
|
14
|
+
"Top",
|
|
15
|
+
"TopPercent"
|
|
16
|
+
]).describe("How many matching subscribers to fetch.").optional(),
|
|
17
|
+
MatchType: z.enum(["All", "Any"]).describe("How segment criteria match together.").optional(),
|
|
18
|
+
FetchValue: z.number().int().describe("Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%). Required when FetchType is 'Top' or 'TopPercent'.").optional(),
|
|
19
|
+
segment_id: z.string().describe("The ID of the segment to update."),
|
|
20
|
+
mailing_list_id: z.string().describe("The ID of the mailing list the segment belongs to.")
|
|
21
|
+
}).describe("Request schema for updating an existing segment in a mailing list.");
|
|
22
|
+
const MoosendUpdateSegment_SegmentContextSchema = z.object({
|
|
23
|
+
ID: z.string().describe("The segment ID.").nullable().optional(),
|
|
24
|
+
Name: z.string().describe("Segment name.").nullable().optional(),
|
|
25
|
+
Criteria: z.array(z.record(z.string(), z.unknown())).describe("Array of criteria objects.").nullable().optional(),
|
|
26
|
+
CreatedOn: z.string().describe("Date-time when the segment was created.").nullable().optional(),
|
|
27
|
+
FetchType: z.string().describe("Fetch type: All, Top, or TopPercent.").nullable().optional(),
|
|
28
|
+
MatchType: z.string().describe("Match type: All or Any.").nullable().optional(),
|
|
29
|
+
UpdatedOn: z.string().describe("Date-time when the segment was last updated.").nullable().optional(),
|
|
30
|
+
FetchValue: z.number().int().describe("Fetch value for Top/TopPercent.").nullable().optional()
|
|
31
|
+
}).describe("Context schema containing updated segment details.");
|
|
32
|
+
const moosendUpdateSegment = action("MOOSEND_UPDATE_SEGMENT", {
|
|
33
|
+
slug: "moosend-update-segment",
|
|
34
|
+
name: "Update Segment",
|
|
35
|
+
description: "Tool to update properties and criteria of an existing segment. Use when you need to modify segment name, match type, or filtering criteria.",
|
|
36
|
+
input: MoosendUpdateSegmentInput,
|
|
37
|
+
output: z.object({
|
|
38
|
+
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
39
|
+
Error: z.string().describe("Error message if any; null if successful.").nullable().optional(),
|
|
40
|
+
Context: MoosendUpdateSegment_SegmentContextSchema.nullable().optional()
|
|
41
|
+
}).describe("Response schema for UpdateSegment action.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { moosendUpdateSegment };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=update-segment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-segment.mjs","names":[],"sources":["../../src/actions/update-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The new name for the segment. If not provided, the existing name is retained.\").optional(),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., Email, Name, or custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"The comparison operator (e.g., Contains, Equals, NotEquals, GreaterThan, etc.).\"),\n}).describe(\"A single filter criterion for segment matching.\")).describe(\"Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%). Required when FetchType is 'Top' or 'TopPercent'.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the segment belongs to.\"),\n}).describe(\"Request schema for updating an existing segment in a mailing list.\");\nconst MoosendUpdateSegment_SegmentContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The segment ID.\").nullable().optional(),\n Name: z.string().describe(\"Segment name.\").nullable().optional(),\n Criteria: z.array(z.record(z.string(), z.unknown())).describe(\"Array of criteria objects.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date-time when the segment was created.\").nullable().optional(),\n FetchType: z.string().describe(\"Fetch type: All, Top, or TopPercent.\").nullable().optional(),\n MatchType: z.string().describe(\"Match type: All or Any.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Date-time when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value for Top/TopPercent.\").nullable().optional(),\n}).describe(\"Context schema containing updated segment details.\");\nexport const MoosendUpdateSegmentOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if any; null if successful.\").nullable().optional(),\n Context: MoosendUpdateSegment_SegmentContextSchema.nullable().optional(),\n}).describe(\"Response schema for UpdateSegment action.\");\n\nexport const moosendUpdateSegment = action(\"MOOSEND_UPDATE_SEGMENT\", {\n slug: \"moosend-update-segment\",\n name: \"Update Segment\",\n description: \"Tool to update properties and criteria of an existing segment. Use when you need to modify segment name, match type, or filtering criteria.\",\n input: MoosendUpdateSegmentInput,\n output: MoosendUpdateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CAC/N,WAAW,EAAE,KAAK;EAAC;EAAO;EAAO;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACtM,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AAC3F,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAOhE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-subscriber.ts
|
|
4
|
+
const MoosendUpdateSubscriberInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("The name of the member").optional(),
|
|
6
|
+
Email: zod.z.string().describe("The email address of the member"),
|
|
7
|
+
format: zod.z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.").optional(),
|
|
8
|
+
CustomFields: zod.z.array(zod.z.string()).describe("List of custom field values in 'FieldName=Value' format, matching the member's custom fields").optional(),
|
|
9
|
+
subscriberID: zod.z.string().describe("The id of the subscriber to be updated"),
|
|
10
|
+
mailingListID: zod.z.string().describe("The ID of the mailing list that contains the subscriber"),
|
|
11
|
+
HasExternalDoubleOptIn: zod.z.boolean().describe("Flags the member as having given subscription consent by other means").optional()
|
|
12
|
+
}).describe("Request schema for updating a subscriber in a mailing list.");
|
|
13
|
+
const MoosendUpdateSubscriberOutput = zod.z.object({
|
|
14
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
15
|
+
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
16
|
+
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Full subscriber context including ID, status, custom fields, and timestamps.").nullable().optional()
|
|
17
|
+
}).describe("Response schema for UpdateSubscriber action.");
|
|
18
|
+
const moosendUpdateSubscriber = require_action.action("MOOSEND_UPDATE_SUBSCRIBER", {
|
|
19
|
+
slug: "moosend-update-subscriber",
|
|
20
|
+
name: "Update Subscriber",
|
|
21
|
+
description: "Tool to update a subscriber in the specified mailing list. Use when you need to modify subscriber information like email, name, or custom fields.",
|
|
22
|
+
input: MoosendUpdateSubscriberInput,
|
|
23
|
+
output: MoosendUpdateSubscriberOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.moosendUpdateSubscriber = moosendUpdateSubscriber;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=update-subscriber.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/update-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSubscriberInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the member\").optional(),\n Email: z.string().describe(\"The email address of the member\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format, matching the member's custom fields\").optional(),\n subscriberID: z.string().describe(\"The id of the subscriber to be updated\"),\n mailingListID: z.string().describe(\"The ID of the mailing list that contains the subscriber\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flags the member as having given subscription consent by other means\").optional(),\n}).describe(\"Request schema for updating a subscriber in a mailing list.\");\nexport const MoosendUpdateSubscriberOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).describe(\"Response schema for UpdateSubscriber action.\");\n\nexport const moosendUpdateSubscriber = action(\"MOOSEND_UPDATE_SUBSCRIBER\", {\n slug: \"moosend-update-subscriber\",\n name: \"Update Subscriber\",\n description: \"Tool to update a subscriber in the specified mailing list. Use when you need to modify subscriber information like email, name, or custom fields.\",\n input: MoosendUpdateSubscriberInput,\n output: MoosendUpdateSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC5D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-subscriber.d.ts
|
|
4
|
+
declare const MoosendUpdateSubscriberInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoosendUpdateSubscriberOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moosendUpdateSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moosendUpdateSubscriber };
|
|
9
|
+
//# sourceMappingURL=update-subscriber.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-subscriber.d.cts","names":[],"sources":["../../src/actions/update-subscriber.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQ6B;AAAA,cAC7D,6BAAA,EAA+B,CAAA,CAAE,UAIa;AAAA,cAE9C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-subscriber.d.ts
|
|
4
|
+
declare const MoosendUpdateSubscriberInput: z.ZodTypeAny;
|
|
5
|
+
declare const MoosendUpdateSubscriberOutput: z.ZodTypeAny;
|
|
6
|
+
declare const moosendUpdateSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { moosendUpdateSubscriber };
|
|
9
|
+
//# sourceMappingURL=update-subscriber.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-subscriber.d.mts","names":[],"sources":["../../src/actions/update-subscriber.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQ6B;AAAA,cAC7D,6BAAA,EAA+B,CAAA,CAAE,UAIa;AAAA,cAE9C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const moosendUpdateSubscriber = action("MOOSEND_UPDATE_SUBSCRIBER", {
|
|
4
|
+
slug: "moosend-update-subscriber",
|
|
5
|
+
name: "Update Subscriber",
|
|
6
|
+
description: "Tool to update a subscriber in the specified mailing list. Use when you need to modify subscriber information like email, name, or custom fields.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
Name: z.string().describe("The name of the member").optional(),
|
|
9
|
+
Email: z.string().describe("The email address of the member"),
|
|
10
|
+
format: z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.").optional(),
|
|
11
|
+
CustomFields: z.array(z.string()).describe("List of custom field values in 'FieldName=Value' format, matching the member's custom fields").optional(),
|
|
12
|
+
subscriberID: z.string().describe("The id of the subscriber to be updated"),
|
|
13
|
+
mailingListID: z.string().describe("The ID of the mailing list that contains the subscriber"),
|
|
14
|
+
HasExternalDoubleOptIn: z.boolean().describe("Flags the member as having given subscription consent by other means").optional()
|
|
15
|
+
}).describe("Request schema for updating a subscriber in a mailing list."),
|
|
16
|
+
output: z.object({
|
|
17
|
+
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
18
|
+
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
19
|
+
Context: z.record(z.string(), z.unknown()).describe("Full subscriber context including ID, status, custom fields, and timestamps.").nullable().optional()
|
|
20
|
+
}).describe("Response schema for UpdateSubscriber action.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { moosendUpdateSubscriber };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=update-subscriber.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-subscriber.mjs","names":[],"sources":["../../src/actions/update-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSubscriberInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the member\").optional(),\n Email: z.string().describe(\"The email address of the member\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format, matching the member's custom fields\").optional(),\n subscriberID: z.string().describe(\"The id of the subscriber to be updated\"),\n mailingListID: z.string().describe(\"The ID of the mailing list that contains the subscriber\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flags the member as having given subscription consent by other means\").optional(),\n}).describe(\"Request schema for updating a subscriber in a mailing list.\");\nexport const MoosendUpdateSubscriberOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).describe(\"Response schema for UpdateSubscriber action.\");\n\nexport const moosendUpdateSubscriber = action(\"MOOSEND_UPDATE_SUBSCRIBER\", {\n slug: \"moosend-update-subscriber\",\n name: \"Update Subscriber\",\n description: \"Tool to update a subscriber in the specified mailing list. Use when you need to modify subscriber information like email, name, or custom fields.\",\n input: MoosendUpdateSubscriberInput,\n output: MoosendUpdateSubscriberOutput,\n});\n"],"mappings":";;AAmBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC5D,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrL,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACpJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC5F,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,6DAWH;CACP,QAXyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const moosend = defineApp({\n slug: \"moosend\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const moosend = defineApp({\n slug: \"moosend\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const moosendCatalog = {
|
|
4
|
+
"slug": "moosend",
|
|
5
|
+
"name": "Moosend",
|
|
6
|
+
"description": "Moosend is a cloud-based, AI-powered email marketing solution that allows you to target your audience at scale.",
|
|
7
|
+
"category": "Email Newsletters",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/moosend",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.moosendCatalog = moosendCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moosendCatalog = {\n \"slug\": \"moosend\",\n \"name\": \"Moosend\",\n \"description\": \"Moosend is a cloud-based, AI-powered email marketing solution that allows you to target your audience at scale.\",\n \"category\": \"Email Newsletters\",\n \"logo\": \"https://logos.composio.dev/api/moosend\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const moosendCatalog: {
|
|
4
|
+
readonly slug: "moosend";
|
|
5
|
+
readonly name: "Moosend";
|
|
6
|
+
readonly description: "Moosend is a cloud-based, AI-powered email marketing solution that allows you to target your audience at scale.";
|
|
7
|
+
readonly category: "Email Newsletters";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/moosend";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { moosendCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const moosendCatalog: {
|
|
4
|
+
readonly slug: "moosend";
|
|
5
|
+
readonly name: "Moosend";
|
|
6
|
+
readonly description: "Moosend is a cloud-based, AI-powered email marketing solution that allows you to target your audience at scale.";
|
|
7
|
+
readonly category: "Email Newsletters";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/moosend";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { moosendCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const moosendCatalog = {
|
|
4
|
+
"slug": "moosend",
|
|
5
|
+
"name": "Moosend",
|
|
6
|
+
"description": "Moosend is a cloud-based, AI-powered email marketing solution that allows you to target your audience at scale.",
|
|
7
|
+
"category": "Email Newsletters",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/moosend",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { moosendCatalog };
|
|
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 moosendCatalog = {\n \"slug\": \"moosend\",\n \"name\": \"Moosend\",\n \"description\": \"Moosend is a cloud-based, AI-powered email marketing solution that allows you to target your audience at scale.\",\n \"category\": \"Email Newsletters\",\n \"logo\": \"https://logos.composio.dev/api/moosend\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "moosend";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeMoosendTool(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.executeMoosendTool = executeMoosendTool;
|
|
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 = \"moosend\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMoosendTool(\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,mBACpB,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"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "moosend";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeMoosendTool(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 { executeMoosendTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|