@keystrokehq/moosend 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/add-segment-criteria.cjs +2 -2
- package/dist/actions/add-segment-criteria.cjs.map +1 -1
- package/dist/actions/add-segment-criteria.d.cts +25 -3
- package/dist/actions/add-segment-criteria.d.cts.map +1 -1
- package/dist/actions/add-segment-criteria.d.mts +25 -3
- package/dist/actions/add-segment-criteria.d.mts.map +1 -1
- package/dist/actions/add-segment-criteria.mjs +2 -2
- package/dist/actions/add-segment-criteria.mjs.map +1 -1
- package/dist/actions/add-subscriber.cjs +2 -2
- package/dist/actions/add-subscriber.cjs.map +1 -1
- package/dist/actions/add-subscriber.d.cts +25 -3
- package/dist/actions/add-subscriber.d.cts.map +1 -1
- package/dist/actions/add-subscriber.d.mts +25 -3
- package/dist/actions/add-subscriber.d.mts.map +1 -1
- package/dist/actions/add-subscriber.mjs +2 -2
- package/dist/actions/add-subscriber.mjs.map +1 -1
- package/dist/actions/clone-campaign.cjs +2 -2
- package/dist/actions/clone-campaign.cjs.map +1 -1
- package/dist/actions/clone-campaign.d.cts +16 -3
- package/dist/actions/clone-campaign.d.cts.map +1 -1
- package/dist/actions/clone-campaign.d.mts +16 -3
- package/dist/actions/clone-campaign.d.mts.map +1 -1
- package/dist/actions/clone-campaign.mjs +2 -2
- package/dist/actions/clone-campaign.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +2 -2
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +32 -3
- package/dist/actions/create-custom-field.d.cts.map +1 -1
- package/dist/actions/create-custom-field.d.mts +32 -3
- package/dist/actions/create-custom-field.d.mts.map +1 -1
- package/dist/actions/create-custom-field.mjs +2 -2
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-mailing-list.cjs +2 -2
- package/dist/actions/create-mailing-list.cjs.map +1 -1
- package/dist/actions/create-mailing-list.d.cts +15 -3
- package/dist/actions/create-mailing-list.d.cts.map +1 -1
- package/dist/actions/create-mailing-list.d.mts +15 -3
- package/dist/actions/create-mailing-list.d.mts.map +1 -1
- package/dist/actions/create-mailing-list.mjs +2 -2
- package/dist/actions/create-mailing-list.mjs.map +1 -1
- package/dist/actions/create-segment.cjs +3 -3
- package/dist/actions/create-segment.cjs.map +1 -1
- package/dist/actions/create-segment.d.cts +42 -3
- package/dist/actions/create-segment.d.cts.map +1 -1
- package/dist/actions/create-segment.d.mts +42 -3
- package/dist/actions/create-segment.d.mts.map +1 -1
- package/dist/actions/create-segment.mjs +3 -3
- package/dist/actions/create-segment.mjs.map +1 -1
- package/dist/actions/delete-campaign.cjs +1 -1
- package/dist/actions/delete-campaign.cjs.map +1 -1
- package/dist/actions/delete-campaign.d.cts +16 -3
- package/dist/actions/delete-campaign.d.cts.map +1 -1
- package/dist/actions/delete-campaign.d.mts +16 -3
- package/dist/actions/delete-campaign.d.mts.map +1 -1
- package/dist/actions/delete-campaign.mjs +1 -1
- package/dist/actions/delete-campaign.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +18 -3
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +18 -3
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-mailing-list.cjs +1 -1
- package/dist/actions/delete-mailing-list.cjs.map +1 -1
- package/dist/actions/delete-mailing-list.d.cts +13 -3
- package/dist/actions/delete-mailing-list.d.cts.map +1 -1
- package/dist/actions/delete-mailing-list.d.mts +13 -3
- package/dist/actions/delete-mailing-list.d.mts.map +1 -1
- package/dist/actions/delete-mailing-list.mjs +1 -1
- package/dist/actions/delete-mailing-list.mjs.map +1 -1
- package/dist/actions/get-all-campaigns.cjs +3 -3
- package/dist/actions/get-all-campaigns.cjs.map +1 -1
- package/dist/actions/get-all-campaigns.d.cts +13 -3
- package/dist/actions/get-all-campaigns.d.cts.map +1 -1
- package/dist/actions/get-all-campaigns.d.mts +13 -3
- package/dist/actions/get-all-campaigns.d.mts.map +1 -1
- package/dist/actions/get-all-campaigns.mjs +3 -3
- package/dist/actions/get-all-campaigns.mjs.map +1 -1
- package/dist/actions/get-all-subscribers.cjs +18 -18
- package/dist/actions/get-all-subscribers.cjs.map +1 -1
- package/dist/actions/get-all-subscribers.d.cts +53 -3
- package/dist/actions/get-all-subscribers.d.cts.map +1 -1
- package/dist/actions/get-all-subscribers.d.mts +53 -3
- package/dist/actions/get-all-subscribers.d.mts.map +1 -1
- package/dist/actions/get-all-subscribers.mjs +18 -18
- package/dist/actions/get-all-subscribers.mjs.map +1 -1
- package/dist/actions/get-campaign-details.cjs +2 -2
- package/dist/actions/get-campaign-details.cjs.map +1 -1
- package/dist/actions/get-campaign-details.d.cts +11 -3
- package/dist/actions/get-campaign-details.d.cts.map +1 -1
- package/dist/actions/get-campaign-details.d.mts +11 -3
- package/dist/actions/get-campaign-details.d.mts.map +1 -1
- package/dist/actions/get-campaign-details.mjs +2 -2
- package/dist/actions/get-campaign-details.mjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.cjs +2 -2
- package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.cts +11 -3
- package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.mts +11 -3
- package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.mjs +2 -2
- package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
- package/dist/actions/get-mailing-list-details.cjs +16 -16
- package/dist/actions/get-mailing-list-details.cjs.map +1 -1
- package/dist/actions/get-mailing-list-details.d.cts +41 -3
- package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
- package/dist/actions/get-mailing-list-details.d.mts +41 -3
- package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
- package/dist/actions/get-mailing-list-details.mjs +16 -16
- package/dist/actions/get-mailing-list-details.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.cjs +11 -11
- package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.cts +33 -3
- package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.mts +33 -3
- package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
- package/dist/actions/get-subscriber-by-email.mjs +11 -11
- package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.cjs +23 -23
- package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.cts +61 -3
- package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.mts +61 -3
- package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
- package/dist/actions/list-all-mailing-lists.mjs +23 -23
- package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
- package/dist/actions/list-all-senders.cjs +3 -3
- package/dist/actions/list-all-senders.cjs.map +1 -1
- package/dist/actions/list-all-senders.d.cts +21 -3
- package/dist/actions/list-all-senders.d.cts.map +1 -1
- package/dist/actions/list-all-senders.d.mts +21 -3
- package/dist/actions/list-all-senders.d.mts.map +1 -1
- package/dist/actions/list-all-senders.mjs +3 -3
- package/dist/actions/list-all-senders.mjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.cjs +12 -12
- package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.cts +49 -3
- package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.mts +49 -3
- package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
- package/dist/actions/list-campaigns-with-paging.mjs +12 -12
- package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
- package/dist/actions/list-segments.cjs +6 -6
- package/dist/actions/list-segments.cjs.map +1 -1
- package/dist/actions/list-segments.d.cts +46 -3
- package/dist/actions/list-segments.d.cts.map +1 -1
- package/dist/actions/list-segments.d.mts +46 -3
- package/dist/actions/list-segments.d.mts.map +1 -1
- package/dist/actions/list-segments.mjs +6 -6
- package/dist/actions/list-segments.mjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.cjs +2 -2
- package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.d.cts +15 -3
- package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
- package/dist/actions/remove-multiple-subscribers.d.mts +15 -3
- package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -1
- package/dist/actions/remove-multiple-subscribers.mjs +2 -2
- package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
- package/dist/actions/schedule-campaign.cjs +1 -1
- package/dist/actions/schedule-campaign.cjs.map +1 -1
- package/dist/actions/schedule-campaign.d.cts +17 -3
- package/dist/actions/schedule-campaign.d.cts.map +1 -1
- package/dist/actions/schedule-campaign.d.mts +17 -3
- package/dist/actions/schedule-campaign.d.mts.map +1 -1
- package/dist/actions/schedule-campaign.mjs +1 -1
- package/dist/actions/schedule-campaign.mjs.map +1 -1
- package/dist/actions/send-campaign.cjs +2 -2
- package/dist/actions/send-campaign.cjs.map +1 -1
- package/dist/actions/send-campaign.d.cts +13 -3
- package/dist/actions/send-campaign.d.cts.map +1 -1
- package/dist/actions/send-campaign.d.mts +13 -3
- package/dist/actions/send-campaign.d.mts.map +1 -1
- package/dist/actions/send-campaign.mjs +2 -2
- package/dist/actions/send-campaign.mjs.map +1 -1
- package/dist/actions/unschedule-campaign.cjs +1 -1
- package/dist/actions/unschedule-campaign.cjs.map +1 -1
- package/dist/actions/unschedule-campaign.d.cts +16 -3
- package/dist/actions/unschedule-campaign.d.cts.map +1 -1
- package/dist/actions/unschedule-campaign.d.mts +16 -3
- package/dist/actions/unschedule-campaign.d.mts.map +1 -1
- package/dist/actions/unschedule-campaign.mjs +1 -1
- package/dist/actions/unschedule-campaign.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.cjs +2 -2
- package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.d.cts +16 -3
- package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-account.d.mts +16 -3
- package/dist/actions/unsubscribe-from-account.d.mts.map +1 -1
- package/dist/actions/unsubscribe-from-account.mjs +2 -2
- package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.cjs +2 -2
- package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.cts +15 -3
- package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.mts +15 -3
- package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.mjs +2 -2
- package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
- package/dist/actions/update-campaign.cjs +3 -3
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +64 -3
- package/dist/actions/update-campaign.d.cts.map +1 -1
- package/dist/actions/update-campaign.d.mts +64 -3
- package/dist/actions/update-campaign.d.mts.map +1 -1
- package/dist/actions/update-campaign.mjs +3 -3
- package/dist/actions/update-campaign.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +2 -2
- package/dist/actions/update-custom-field.cjs.map +1 -1
- package/dist/actions/update-custom-field.d.cts +34 -3
- package/dist/actions/update-custom-field.d.cts.map +1 -1
- package/dist/actions/update-custom-field.d.mts +34 -3
- package/dist/actions/update-custom-field.d.mts.map +1 -1
- package/dist/actions/update-custom-field.mjs +2 -2
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-mailing-list.cjs +10 -10
- package/dist/actions/update-mailing-list.cjs.map +1 -1
- package/dist/actions/update-mailing-list.d.cts +32 -3
- package/dist/actions/update-mailing-list.d.cts.map +1 -1
- package/dist/actions/update-mailing-list.d.mts +32 -3
- package/dist/actions/update-mailing-list.d.mts.map +1 -1
- package/dist/actions/update-mailing-list.mjs +10 -10
- package/dist/actions/update-mailing-list.mjs.map +1 -1
- package/dist/actions/update-segment-criteria.cjs +2 -2
- package/dist/actions/update-segment-criteria.cjs.map +1 -1
- package/dist/actions/update-segment-criteria.d.cts +30 -3
- package/dist/actions/update-segment-criteria.d.cts.map +1 -1
- package/dist/actions/update-segment-criteria.d.mts +30 -3
- package/dist/actions/update-segment-criteria.d.mts.map +1 -1
- package/dist/actions/update-segment-criteria.mjs +2 -2
- package/dist/actions/update-segment-criteria.mjs.map +1 -1
- package/dist/actions/update-segment.cjs +4 -4
- package/dist/actions/update-segment.cjs.map +1 -1
- package/dist/actions/update-segment.d.cts +53 -3
- package/dist/actions/update-segment.d.cts.map +1 -1
- package/dist/actions/update-segment.d.mts +53 -3
- package/dist/actions/update-segment.d.mts.map +1 -1
- package/dist/actions/update-segment.mjs +4 -4
- package/dist/actions/update-segment.mjs.map +1 -1
- package/dist/actions/update-subscriber.cjs +2 -2
- package/dist/actions/update-subscriber.cjs.map +1 -1
- package/dist/actions/update-subscriber.d.cts +26 -3
- package/dist/actions/update-subscriber.d.cts.map +1 -1
- package/dist/actions/update-subscriber.d.mts +26 -3
- package/dist/actions/update-subscriber.d.mts.map +1 -1
- package/dist/actions/update-subscriber.mjs +2 -2
- package/dist/actions/update-subscriber.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unschedule-campaign.d.mts","names":[],"sources":["../../src/actions/unschedule-campaign.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"unschedule-campaign.d.mts","names":[],"sources":["../../src/actions/unschedule-campaign.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -12,7 +12,7 @@ const moosendUnscheduleCampaign = action("MOOSEND_UNSCHEDULE_CAMPAIGN", {
|
|
|
12
12
|
Code: z.number().int().describe("Response code, 0 indicates success.").nullable().optional(),
|
|
13
13
|
Error: z.string().describe("Error message returned by the API, null if successful.").nullable().optional(),
|
|
14
14
|
Context: z.string().describe("Additional context, always null on success.").nullable().optional()
|
|
15
|
-
}).describe("Response model for UnscheduleCampaign action.")
|
|
15
|
+
}).passthrough().describe("Response model for UnscheduleCampaign action.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { moosendUnscheduleCampaign };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unschedule-campaign.mjs","names":[],"sources":["../../src/actions/unschedule-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnscheduleCampaignInput
|
|
1
|
+
{"version":3,"file":"unschedule-campaign.mjs","names":[],"sources":["../../src/actions/unschedule-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnscheduleCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default and recommended) or 'xml'. Note: Only JSON format is fully supported; XML responses are not parsed by this action.\").optional(),\n campaign_id: z.string().describe(\"The ID of the campaign to unschedule.\"),\n}).describe(\"Request model for unscheduling a campaign in Moosend.\");\nexport const MoosendUnscheduleCampaignOutput = z.object({\n Code: z.number().int().describe(\"Response code, 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message returned by the API, null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context, always null on success.\").nullable().optional(),\n}).passthrough().describe(\"Response model for UnscheduleCampaign action.\");\n\nexport const moosendUnscheduleCampaign = action(\"MOOSEND_UNSCHEDULE_CAMPAIGN\", {\n slug: \"moosend-unschedule-campaign\",\n name: \"Unschedule Campaign\",\n description: \"Tool to unschedule a campaign. Removes a previously defined scheduled date and time from a campaign, so that it will be delivered immediately if already queued or when sent.\",\n input: MoosendUnscheduleCampaignInput,\n output: MoosendUnscheduleCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd4C,EAAE,OAAO;EACrD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;EAC7N,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,CAAC,CAAC,CAAC,SAAS,uDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -6,10 +6,10 @@ const MoosendUnsubscribeFromAccountInput = zod.z.object({
|
|
|
6
6
|
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()
|
|
7
7
|
}).describe("Request schema for unsubscribing a subscriber from the account.");
|
|
8
8
|
const MoosendUnsubscribeFromAccountOutput = zod.z.object({
|
|
9
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
9
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
10
10
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
11
11
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional context information about the unsubscribe operation.").nullable().optional()
|
|
12
|
-
}).describe("Response schema for UnsubscribeFromAccount action.");
|
|
12
|
+
}).passthrough().describe("Response schema for UnsubscribeFromAccount action.");
|
|
13
13
|
const moosendUnsubscribeFromAccount = require_action.action("MOOSEND_UNSUBSCRIBE_FROM_ACCOUNT", {
|
|
14
14
|
slug: "moosend-unsubscribe-from-account",
|
|
15
15
|
name: "Unsubscribe From Account",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-account.cjs","names":["z","action"],"sources":["../../src/actions/unsubscribe-from-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromAccountInput
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-account.cjs","names":["z","action"],"sources":["../../src/actions/unsubscribe-from-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromAccountInput = z.object({\n Email: z.string().describe(\"The email address of the subscriber to unsubscribe from the account.\"),\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}).describe(\"Request schema for unsubscribing a subscriber from the account.\");\nexport const MoosendUnsubscribeFromAccountOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context information about the unsubscribe operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UnsubscribeFromAccount action.\");\n\nexport const moosendUnsubscribeFromAccount = action(\"MOOSEND_UNSUBSCRIBE_FROM_ACCOUNT\", {\n slug: \"moosend-unsubscribe-from-account\",\n name: \"Unsubscribe From Account\",\n description: \"Tool to unsubscribe a subscriber from the account. Use when you need to remove a subscriber from all mailing lists. Note: Rate limit is 20 requests per 10 seconds per API key.\",\n input: MoosendUnsubscribeFromAccountInput,\n output: MoosendUnsubscribeFromAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACjG,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,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,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/unsubscribe-from-account.d.ts
|
|
4
|
-
declare const MoosendUnsubscribeFromAccountInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUnsubscribeFromAccountInput: z.ZodObject<{
|
|
5
|
+
Email: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
json: "json";
|
|
8
|
+
xml: "xml";
|
|
9
|
+
}>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const MoosendUnsubscribeFromAccountOutput: z.ZodObject<{
|
|
12
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const moosendUnsubscribeFromAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
Email: string;
|
|
18
|
+
format?: "json" | "xml" | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { moosendUnsubscribeFromAccount };
|
|
9
22
|
//# sourceMappingURL=unsubscribe-from-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-account.d.cts","names":[],"sources":["../../src/actions/unsubscribe-from-account.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-account.d.cts","names":[],"sources":["../../src/actions/unsubscribe-from-account.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/unsubscribe-from-account.d.ts
|
|
4
|
-
declare const MoosendUnsubscribeFromAccountInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUnsubscribeFromAccountInput: z.ZodObject<{
|
|
5
|
+
Email: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
json: "json";
|
|
8
|
+
xml: "xml";
|
|
9
|
+
}>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const MoosendUnsubscribeFromAccountOutput: z.ZodObject<{
|
|
12
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const moosendUnsubscribeFromAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
Email: string;
|
|
18
|
+
format?: "json" | "xml" | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { moosendUnsubscribeFromAccount };
|
|
9
22
|
//# sourceMappingURL=unsubscribe-from-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-account.d.mts","names":[],"sources":["../../src/actions/unsubscribe-from-account.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-account.d.mts","names":[],"sources":["../../src/actions/unsubscribe-from-account.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -9,10 +9,10 @@ const moosendUnsubscribeFromAccount = action("MOOSEND_UNSUBSCRIBE_FROM_ACCOUNT",
|
|
|
9
9
|
format: z.enum(["json", "xml"]).default("json").describe("Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.").optional()
|
|
10
10
|
}).describe("Request schema for unsubscribing a subscriber from the account."),
|
|
11
11
|
output: z.object({
|
|
12
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
12
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
13
13
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
14
14
|
Context: z.record(z.string(), z.unknown()).describe("Additional context information about the unsubscribe operation.").nullable().optional()
|
|
15
|
-
}).describe("Response schema for UnsubscribeFromAccount action.")
|
|
15
|
+
}).passthrough().describe("Response schema for UnsubscribeFromAccount action.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { moosendUnsubscribeFromAccount };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-account.mjs","names":[],"sources":["../../src/actions/unsubscribe-from-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromAccountInput
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-account.mjs","names":[],"sources":["../../src/actions/unsubscribe-from-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromAccountInput = z.object({\n Email: z.string().describe(\"The email address of the subscriber to unsubscribe from the account.\"),\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}).describe(\"Request schema for unsubscribing a subscriber from the account.\");\nexport const MoosendUnsubscribeFromAccountOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context information about the unsubscribe operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UnsubscribeFromAccount action.\");\n\nexport const moosendUnsubscribeFromAccount = action(\"MOOSEND_UNSUBSCRIBE_FROM_ACCOUNT\", {\n slug: \"moosend-unsubscribe-from-account\",\n name: \"Unsubscribe From Account\",\n description: \"Tool to unsubscribe a subscriber from the account. Use when you need to remove a subscriber from all mailing lists. Note: Rate limit is 20 requests per 10 seconds per API key.\",\n input: MoosendUnsubscribeFromAccountInput,\n output: MoosendUnsubscribeFromAccountOutput,\n});\n"],"mappings":";;AAcA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;EACjG,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACvL,CAAC,CAAC,CAAC,SAAS,iEAWH;CACP,QAXiD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,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,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -7,10 +7,10 @@ const MoosendUnsubscribeFromMailingListInput = zod.z.object({
|
|
|
7
7
|
mailingListID: zod.z.string().describe("The unique identifier of the mailing list to unsubscribe from.")
|
|
8
8
|
}).describe("Request schema for unsubscribing a subscriber from a mailing list.");
|
|
9
9
|
const MoosendUnsubscribeFromMailingListOutput = zod.z.object({
|
|
10
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
10
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
11
11
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
12
12
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Full subscriber context including unsubscribe timestamp and status.").nullable().optional()
|
|
13
|
-
}).describe("Response schema for UnsubscribeFromMailingList action.");
|
|
13
|
+
}).passthrough().describe("Response schema for UnsubscribeFromMailingList action.");
|
|
14
14
|
const moosendUnsubscribeFromMailingList = require_action.action("MOOSEND_UNSUBSCRIBE_FROM_MAILING_LIST", {
|
|
15
15
|
slug: "moosend-unsubscribe-from-mailing-list",
|
|
16
16
|
name: "Unsubscribe from Mailing List",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromMailingListInput
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromMailingListInput = z.object({\n Email: z.string().describe(\"Email address of the subscriber to unsubscribe.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only JSON is supported.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to unsubscribe from.\"),\n}).describe(\"Request schema for unsubscribing a subscriber from a mailing list.\");\nexport const MoosendUnsubscribeFromMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\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 unsubscribe timestamp and status.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UnsubscribeFromMailingList action.\");\n\nexport const moosendUnsubscribeFromMailingList = action(\"MOOSEND_UNSUBSCRIBE_FROM_MAILING_LIST\", {\n slug: \"moosend-unsubscribe-from-mailing-list\",\n name: \"Unsubscribe from Mailing List\",\n description: \"Tool to unsubscribe a subscriber from a specified mailing list. Use when you need to remove a subscriber's active subscription. Rate limit: 20 requests per 10 seconds per API key.\",\n input: MoosendUnsubscribeFromMailingListInput,\n output: MoosendUnsubscribeFromMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AACrG,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,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,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,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/unsubscribe-from-mailing-list.d.ts
|
|
4
|
-
declare const MoosendUnsubscribeFromMailingListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUnsubscribeFromMailingListInput: z.ZodObject<{
|
|
5
|
+
Email: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
mailingListID: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MoosendUnsubscribeFromMailingListOutput: z.ZodObject<{
|
|
10
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const moosendUnsubscribeFromMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
Email: string;
|
|
16
|
+
mailingListID: string;
|
|
17
|
+
format?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { moosendUnsubscribeFromMailingList };
|
|
9
21
|
//# sourceMappingURL=unsubscribe-from-mailing-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-mailing-list.d.cts","names":[],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-mailing-list.d.cts","names":[],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/unsubscribe-from-mailing-list.d.ts
|
|
4
|
-
declare const MoosendUnsubscribeFromMailingListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUnsubscribeFromMailingListInput: z.ZodObject<{
|
|
5
|
+
Email: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
mailingListID: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MoosendUnsubscribeFromMailingListOutput: z.ZodObject<{
|
|
10
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const moosendUnsubscribeFromMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
Email: string;
|
|
16
|
+
mailingListID: string;
|
|
17
|
+
format?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { moosendUnsubscribeFromMailingList };
|
|
9
21
|
//# sourceMappingURL=unsubscribe-from-mailing-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-mailing-list.d.mts","names":[],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-mailing-list.d.mts","names":[],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -10,10 +10,10 @@ const moosendUnsubscribeFromMailingList = action("MOOSEND_UNSUBSCRIBE_FROM_MAILI
|
|
|
10
10
|
mailingListID: z.string().describe("The unique identifier of the mailing list to unsubscribe from.")
|
|
11
11
|
}).describe("Request schema for unsubscribing a subscriber from a mailing list."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
13
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
14
14
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
15
15
|
Context: z.record(z.string(), z.unknown()).describe("Full subscriber context including unsubscribe timestamp and status.").nullable().optional()
|
|
16
|
-
}).describe("Response schema for UnsubscribeFromMailingList action.")
|
|
16
|
+
}).passthrough().describe("Response schema for UnsubscribeFromMailingList action.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { moosendUnsubscribeFromMailingList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-from-mailing-list.mjs","names":[],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromMailingListInput
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-mailing-list.mjs","names":[],"sources":["../../src/actions/unsubscribe-from-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUnsubscribeFromMailingListInput = z.object({\n Email: z.string().describe(\"Email address of the subscriber to unsubscribe.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only JSON is supported.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to unsubscribe from.\"),\n}).describe(\"Request schema for unsubscribing a subscriber from a mailing list.\");\nexport const MoosendUnsubscribeFromMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\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 unsubscribe timestamp and status.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UnsubscribeFromMailingList action.\");\n\nexport const moosendUnsubscribeFromMailingList = action(\"MOOSEND_UNSUBSCRIBE_FROM_MAILING_LIST\", {\n slug: \"moosend-unsubscribe-from-mailing-list\",\n name: \"Unsubscribe from Mailing List\",\n description: \"Tool to unsubscribe a subscriber from a specified mailing list. Use when you need to remove a subscriber's active subscription. Rate limit: 20 requests per 10 seconds per API key.\",\n input: MoosendUnsubscribeFromMailingListInput,\n output: MoosendUnsubscribeFromMailingListOutput,\n});\n"],"mappings":";;AAeA,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfoD,EAAE,OAAO;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACrG,CAAC,CAAC,CAAC,SAAS,oEAWH;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,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,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const MoosendUpdateCampaignInput = zod.z.object({
|
|
|
15
15
|
MailingLists: zod.z.array(zod.z.object({
|
|
16
16
|
SegmentID: zod.z.string().describe("Optional segment ID within the mailing list.").optional(),
|
|
17
17
|
MailingListID: zod.z.string().describe("ID of the mailing list to target.")
|
|
18
|
-
}).describe("Mailing list entry for campaign targeting.")).describe("List of mailing lists and optional segments to send the campaign to.").optional(),
|
|
18
|
+
}).passthrough().describe("Mailing list entry for campaign targeting.")).describe("List of mailing lists and optional segments to send the campaign to.").optional(),
|
|
19
19
|
ReplyToEmail: zod.z.string().describe("Reply-to email address for the campaign.").optional(),
|
|
20
20
|
SenderEmailB: zod.z.string().describe("Sender email for version B of the campaign.").optional(),
|
|
21
21
|
WebLocationB: zod.z.string().describe("Web location for version B of the campaign.").optional(),
|
|
@@ -30,10 +30,10 @@ const MoosendUpdateCampaignInput = zod.z.object({
|
|
|
30
30
|
TrackInGoogleAnalytics: zod.z.boolean().describe("Enable Google Analytics tracking if configured.").optional()
|
|
31
31
|
}).describe("Request model for updating a draft campaign in Moosend.");
|
|
32
32
|
const MoosendUpdateCampaignOutput = zod.z.object({
|
|
33
|
-
Code: zod.z.number().int().describe("API response code; 0 indicates success."),
|
|
33
|
+
Code: zod.z.number().int().describe("API response code; 0 indicates success.").nullable(),
|
|
34
34
|
Error: zod.z.string().describe("Error message if any.").nullable().optional(),
|
|
35
35
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Reserved; always null for update.").nullable().optional()
|
|
36
|
-
}).describe("Response model for UpdateCampaign action.");
|
|
36
|
+
}).passthrough().describe("Response model for UpdateCampaign action.");
|
|
37
37
|
const moosendUpdateCampaign = require_action.action("MOOSEND_UPDATE_CAMPAIGN", {
|
|
38
38
|
slug: "moosend-update-campaign",
|
|
39
39
|
name: "Update Campaign",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-campaign.cjs","names":["z","action"],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCampaignInput
|
|
1
|
+
{"version":3,"file":"update-campaign.cjs","names":["z","action"],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCampaignInput = z.object({\n IsAB: z.boolean().describe(\"Flag to indicate an A/B split campaign.\").optional(),\n Name: z.string().describe(\"New name of the campaign.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").optional(),\n SubjectB: z.string().describe(\"Second subject line for A/B tests.\").optional(),\n CampaignID: z.string().describe(\"ID of the draft campaign to update.\"),\n HoursToTest: z.number().int().describe(\"Number of hours to run A/B test (1-24).\").optional(),\n SenderEmail: z.string().describe(\"Sender email address for the campaign.\").optional(),\n WebLocation: z.string().describe(\"URL to fetch campaign HTML content; CSS will be inlined.\").optional(),\n HTMLContentB: z.string().describe(\"HTML content for version B of the campaign.\").optional(),\n MailingLists: z.array(z.object({\n SegmentID: z.string().describe(\"Optional segment ID within the mailing list.\").optional(),\n MailingListID: z.string().describe(\"ID of the mailing list to target.\"),\n}).passthrough().describe(\"Mailing list entry for campaign targeting.\")).describe(\"List of mailing lists and optional segments to send the campaign to.\").optional(),\n ReplyToEmail: z.string().describe(\"Reply-to email address for the campaign.\").optional(),\n SenderEmailB: z.string().describe(\"Sender email for version B of the campaign.\").optional(),\n WebLocationB: z.string().describe(\"Web location for version B of the campaign.\").optional(),\n ABCampaignType: z.enum([\"Subjectline\", \"Content\", \"Sender\"]).describe(\"Type of A/B test: Subjectline, Content, or Sender.\").optional(),\n ListPercentage: z.number().int().describe(\"Percentage of list to use for A/B testing (5-40).\").optional(),\n ConfirmationToEmail: z.string().describe(\"Email address to receive send confirmations.\").optional(),\n ABWinnerSelectionType: z.enum([\"OpenRate\", \"TotalUniqueClicks\"]).describe(\"Metric to choose A/B winner: OpenRate or TotalUniqueClicks.\").optional(),\n TrackInGoogleAnalytics: z.boolean().describe(\"Enable Google Analytics tracking if configured.\").optional(),\n}).describe(\"Request model for updating a draft campaign in Moosend.\");\nexport const MoosendUpdateCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Reserved; always null for update.\").nullable().optional(),\n}).passthrough().describe(\"Response model for UpdateCampaign action.\");\n\nexport const moosendUpdateCampaign = action(\"MOOSEND_UPDATE_CAMPAIGN\", {\n slug: \"moosend-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update a draft campaign. Use when you want to modify properties of an existing draft campaign before sending.\",\n input: MoosendUpdateCampaignInput,\n output: MoosendUpdateCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC/B,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACjK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,uBAAuBA,IAAAA,EAAE,KAAK,CAAC,YAAY,mBAAmB,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClJ,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,70 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-campaign.d.ts
|
|
4
|
-
declare const MoosendUpdateCampaignInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateCampaignInput: z.ZodObject<{
|
|
5
|
+
IsAB: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
Name: z.ZodString;
|
|
7
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
json: "json";
|
|
9
|
+
xml: "xml";
|
|
10
|
+
}>>>;
|
|
11
|
+
Subject: z.ZodOptional<z.ZodString>;
|
|
12
|
+
SubjectB: z.ZodOptional<z.ZodString>;
|
|
13
|
+
CampaignID: z.ZodString;
|
|
14
|
+
HoursToTest: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
SenderEmail: z.ZodOptional<z.ZodString>;
|
|
16
|
+
WebLocation: z.ZodOptional<z.ZodString>;
|
|
17
|
+
HTMLContentB: z.ZodOptional<z.ZodString>;
|
|
18
|
+
MailingLists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
SegmentID: z.ZodOptional<z.ZodString>;
|
|
20
|
+
MailingListID: z.ZodString;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
ReplyToEmail: z.ZodOptional<z.ZodString>;
|
|
23
|
+
SenderEmailB: z.ZodOptional<z.ZodString>;
|
|
24
|
+
WebLocationB: z.ZodOptional<z.ZodString>;
|
|
25
|
+
ABCampaignType: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
Subjectline: "Subjectline";
|
|
27
|
+
Content: "Content";
|
|
28
|
+
Sender: "Sender";
|
|
29
|
+
}>>;
|
|
30
|
+
ListPercentage: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
ConfirmationToEmail: z.ZodOptional<z.ZodString>;
|
|
32
|
+
ABWinnerSelectionType: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
OpenRate: "OpenRate";
|
|
34
|
+
TotalUniqueClicks: "TotalUniqueClicks";
|
|
35
|
+
}>>;
|
|
36
|
+
TrackInGoogleAnalytics: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const MoosendUpdateCampaignOutput: z.ZodObject<{
|
|
39
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const moosendUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
Name: string;
|
|
45
|
+
CampaignID: string;
|
|
46
|
+
IsAB?: boolean | undefined;
|
|
47
|
+
format?: "json" | "xml" | undefined;
|
|
48
|
+
Subject?: string | undefined;
|
|
49
|
+
SubjectB?: string | undefined;
|
|
50
|
+
HoursToTest?: number | undefined;
|
|
51
|
+
SenderEmail?: string | undefined;
|
|
52
|
+
WebLocation?: string | undefined;
|
|
53
|
+
HTMLContentB?: string | undefined;
|
|
54
|
+
MailingLists?: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
MailingListID: string;
|
|
57
|
+
SegmentID?: string | undefined;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
ReplyToEmail?: string | undefined;
|
|
60
|
+
SenderEmailB?: string | undefined;
|
|
61
|
+
WebLocationB?: string | undefined;
|
|
62
|
+
ABCampaignType?: "Subjectline" | "Content" | "Sender" | undefined;
|
|
63
|
+
ListPercentage?: number | undefined;
|
|
64
|
+
ConfirmationToEmail?: string | undefined;
|
|
65
|
+
ABWinnerSelectionType?: "OpenRate" | "TotalUniqueClicks" | undefined;
|
|
66
|
+
TrackInGoogleAnalytics?: boolean | undefined;
|
|
67
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
68
|
//#endregion
|
|
8
69
|
export { moosendUpdateCampaign };
|
|
9
70
|
//# sourceMappingURL=update-campaign.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-campaign.d.cts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"update-campaign.d.cts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,70 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-campaign.d.ts
|
|
4
|
-
declare const MoosendUpdateCampaignInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateCampaignInput: z.ZodObject<{
|
|
5
|
+
IsAB: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
Name: z.ZodString;
|
|
7
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
json: "json";
|
|
9
|
+
xml: "xml";
|
|
10
|
+
}>>>;
|
|
11
|
+
Subject: z.ZodOptional<z.ZodString>;
|
|
12
|
+
SubjectB: z.ZodOptional<z.ZodString>;
|
|
13
|
+
CampaignID: z.ZodString;
|
|
14
|
+
HoursToTest: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
SenderEmail: z.ZodOptional<z.ZodString>;
|
|
16
|
+
WebLocation: z.ZodOptional<z.ZodString>;
|
|
17
|
+
HTMLContentB: z.ZodOptional<z.ZodString>;
|
|
18
|
+
MailingLists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
SegmentID: z.ZodOptional<z.ZodString>;
|
|
20
|
+
MailingListID: z.ZodString;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
ReplyToEmail: z.ZodOptional<z.ZodString>;
|
|
23
|
+
SenderEmailB: z.ZodOptional<z.ZodString>;
|
|
24
|
+
WebLocationB: z.ZodOptional<z.ZodString>;
|
|
25
|
+
ABCampaignType: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
Subjectline: "Subjectline";
|
|
27
|
+
Content: "Content";
|
|
28
|
+
Sender: "Sender";
|
|
29
|
+
}>>;
|
|
30
|
+
ListPercentage: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
ConfirmationToEmail: z.ZodOptional<z.ZodString>;
|
|
32
|
+
ABWinnerSelectionType: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
OpenRate: "OpenRate";
|
|
34
|
+
TotalUniqueClicks: "TotalUniqueClicks";
|
|
35
|
+
}>>;
|
|
36
|
+
TrackInGoogleAnalytics: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const MoosendUpdateCampaignOutput: z.ZodObject<{
|
|
39
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const moosendUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
Name: string;
|
|
45
|
+
CampaignID: string;
|
|
46
|
+
IsAB?: boolean | undefined;
|
|
47
|
+
format?: "json" | "xml" | undefined;
|
|
48
|
+
Subject?: string | undefined;
|
|
49
|
+
SubjectB?: string | undefined;
|
|
50
|
+
HoursToTest?: number | undefined;
|
|
51
|
+
SenderEmail?: string | undefined;
|
|
52
|
+
WebLocation?: string | undefined;
|
|
53
|
+
HTMLContentB?: string | undefined;
|
|
54
|
+
MailingLists?: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
MailingListID: string;
|
|
57
|
+
SegmentID?: string | undefined;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
ReplyToEmail?: string | undefined;
|
|
60
|
+
SenderEmailB?: string | undefined;
|
|
61
|
+
WebLocationB?: string | undefined;
|
|
62
|
+
ABCampaignType?: "Subjectline" | "Content" | "Sender" | undefined;
|
|
63
|
+
ListPercentage?: number | undefined;
|
|
64
|
+
ConfirmationToEmail?: string | undefined;
|
|
65
|
+
ABWinnerSelectionType?: "OpenRate" | "TotalUniqueClicks" | undefined;
|
|
66
|
+
TrackInGoogleAnalytics?: boolean | undefined;
|
|
67
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
68
|
//#endregion
|
|
8
69
|
export { moosendUpdateCampaign };
|
|
9
70
|
//# sourceMappingURL=update-campaign.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-campaign.d.mts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"update-campaign.d.mts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -18,7 +18,7 @@ const moosendUpdateCampaign = action("MOOSEND_UPDATE_CAMPAIGN", {
|
|
|
18
18
|
MailingLists: z.array(z.object({
|
|
19
19
|
SegmentID: z.string().describe("Optional segment ID within the mailing list.").optional(),
|
|
20
20
|
MailingListID: z.string().describe("ID of the mailing list to target.")
|
|
21
|
-
}).describe("Mailing list entry for campaign targeting.")).describe("List of mailing lists and optional segments to send the campaign to.").optional(),
|
|
21
|
+
}).passthrough().describe("Mailing list entry for campaign targeting.")).describe("List of mailing lists and optional segments to send the campaign to.").optional(),
|
|
22
22
|
ReplyToEmail: z.string().describe("Reply-to email address for the campaign.").optional(),
|
|
23
23
|
SenderEmailB: z.string().describe("Sender email for version B of the campaign.").optional(),
|
|
24
24
|
WebLocationB: z.string().describe("Web location for version B of the campaign.").optional(),
|
|
@@ -33,10 +33,10 @@ const moosendUpdateCampaign = action("MOOSEND_UPDATE_CAMPAIGN", {
|
|
|
33
33
|
TrackInGoogleAnalytics: z.boolean().describe("Enable Google Analytics tracking if configured.").optional()
|
|
34
34
|
}).describe("Request model for updating a draft campaign in Moosend."),
|
|
35
35
|
output: z.object({
|
|
36
|
-
Code: z.number().int().describe("API response code; 0 indicates success."),
|
|
36
|
+
Code: z.number().int().describe("API response code; 0 indicates success.").nullable(),
|
|
37
37
|
Error: z.string().describe("Error message if any.").nullable().optional(),
|
|
38
38
|
Context: z.record(z.string(), z.unknown()).describe("Reserved; always null for update.").nullable().optional()
|
|
39
|
-
}).describe("Response model for UpdateCampaign action.")
|
|
39
|
+
}).passthrough().describe("Response model for UpdateCampaign action.")
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { moosendUpdateCampaign };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-campaign.mjs","names":[],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCampaignInput
|
|
1
|
+
{"version":3,"file":"update-campaign.mjs","names":[],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCampaignInput = z.object({\n IsAB: z.boolean().describe(\"Flag to indicate an A/B split campaign.\").optional(),\n Name: z.string().describe(\"New name of the campaign.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").optional(),\n SubjectB: z.string().describe(\"Second subject line for A/B tests.\").optional(),\n CampaignID: z.string().describe(\"ID of the draft campaign to update.\"),\n HoursToTest: z.number().int().describe(\"Number of hours to run A/B test (1-24).\").optional(),\n SenderEmail: z.string().describe(\"Sender email address for the campaign.\").optional(),\n WebLocation: z.string().describe(\"URL to fetch campaign HTML content; CSS will be inlined.\").optional(),\n HTMLContentB: z.string().describe(\"HTML content for version B of the campaign.\").optional(),\n MailingLists: z.array(z.object({\n SegmentID: z.string().describe(\"Optional segment ID within the mailing list.\").optional(),\n MailingListID: z.string().describe(\"ID of the mailing list to target.\"),\n}).passthrough().describe(\"Mailing list entry for campaign targeting.\")).describe(\"List of mailing lists and optional segments to send the campaign to.\").optional(),\n ReplyToEmail: z.string().describe(\"Reply-to email address for the campaign.\").optional(),\n SenderEmailB: z.string().describe(\"Sender email for version B of the campaign.\").optional(),\n WebLocationB: z.string().describe(\"Web location for version B of the campaign.\").optional(),\n ABCampaignType: z.enum([\"Subjectline\", \"Content\", \"Sender\"]).describe(\"Type of A/B test: Subjectline, Content, or Sender.\").optional(),\n ListPercentage: z.number().int().describe(\"Percentage of list to use for A/B testing (5-40).\").optional(),\n ConfirmationToEmail: z.string().describe(\"Email address to receive send confirmations.\").optional(),\n ABWinnerSelectionType: z.enum([\"OpenRate\", \"TotalUniqueClicks\"]).describe(\"Metric to choose A/B winner: OpenRate or TotalUniqueClicks.\").optional(),\n TrackInGoogleAnalytics: z.boolean().describe(\"Enable Google Analytics tracking if configured.\").optional(),\n}).describe(\"Request model for updating a draft campaign in Moosend.\");\nexport const MoosendUpdateCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Reserved; always null for update.\").nullable().optional(),\n}).passthrough().describe(\"Response model for UpdateCampaign action.\");\n\nexport const moosendUpdateCampaign = action(\"MOOSEND_UPDATE_CAMPAIGN\", {\n slug: \"moosend-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update a draft campaign. Use when you want to modify properties of an existing draft campaign before sending.\",\n input: MoosendUpdateCampaignInput,\n output: MoosendUpdateCampaignOutput,\n});\n"],"mappings":";;AAkCA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCwC,EAAE,OAAO;EACjD,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACtG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC1F,cAAc,EAAE,MAAM,EAAE,OAAO;GAC/B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;GACxF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACjK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC1F,gBAAgB,EAAE,KAAK;GAAC;GAAe;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACxG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAClG,uBAAuB,EAAE,KAAK,CAAC,YAAY,mBAAmB,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClJ,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -18,10 +18,10 @@ const MoosendUpdateCustomFieldInput = zod.z.object({
|
|
|
18
18
|
]).describe("Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.").optional()
|
|
19
19
|
});
|
|
20
20
|
const MoosendUpdateCustomFieldOutput = zod.z.object({
|
|
21
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
21
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
22
22
|
Error: zod.z.string().describe("Error message if the request failed; null if successful.").nullable().optional(),
|
|
23
23
|
Context: zod.z.string().describe("Additional context or details; null if successful.").nullable().optional()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const moosendUpdateCustomField = require_action.action("MOOSEND_UPDATE_CUSTOM_FIELD", {
|
|
26
26
|
slug: "moosend-update-custom-field",
|
|
27
27
|
name: "Update custom field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput
|
|
1
|
+
{"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput = z.object({\n name: z.string().describe(\"The new name for the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for 'SingleSelectDropdown'; required if custom_field_type is 'SingleSelectDropdown'.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).describe(\"Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.\").optional(),\n});\nexport const MoosendUpdateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context or details; null if successful.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendUpdateCustomField = action(\"MOOSEND_UPDATE_CUSTOM_FIELD\", {\n slug: \"moosend-update-custom-field\",\n name: \"Update custom field\",\n description: \"Tool to update properties of an existing custom field in a mailing list. Use after confirming mailing list and custom field IDs.\",\n input: MoosendUpdateCustomFieldInput,\n output: MoosendUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACtJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|