@keystrokehq/sendfox 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/delete-contact-from-list.cjs +30 -0
- package/dist/actions/delete-contact-from-list.cjs.map +1 -0
- package/dist/actions/delete-contact-from-list.d.cts +9 -0
- package/dist/actions/delete-contact-from-list.d.cts.map +1 -0
- package/dist/actions/delete-contact-from-list.d.mts +9 -0
- package/dist/actions/delete-contact-from-list.d.mts.map +1 -0
- package/dist/actions/delete-contact-from-list.mjs +27 -0
- package/dist/actions/delete-contact-from-list.mjs.map +1 -0
- package/dist/actions/get-automations.cjs +23 -0
- package/dist/actions/get-automations.cjs.map +1 -0
- package/dist/actions/get-automations.d.cts +9 -0
- package/dist/actions/get-automations.d.cts.map +1 -0
- package/dist/actions/get-automations.d.mts +9 -0
- package/dist/actions/get-automations.d.mts.map +1 -0
- package/dist/actions/get-automations.mjs +22 -0
- package/dist/actions/get-automations.mjs.map +1 -0
- package/dist/actions/get-campaign-by-id.cjs +27 -0
- package/dist/actions/get-campaign-by-id.cjs.map +1 -0
- package/dist/actions/get-campaign-by-id.d.cts +9 -0
- package/dist/actions/get-campaign-by-id.d.cts.map +1 -0
- package/dist/actions/get-campaign-by-id.d.mts +9 -0
- package/dist/actions/get-campaign-by-id.d.mts.map +1 -0
- package/dist/actions/get-campaign-by-id.mjs +24 -0
- package/dist/actions/get-campaign-by-id.mjs.map +1 -0
- package/dist/actions/get-campaigns.cjs +34 -0
- package/dist/actions/get-campaigns.cjs.map +1 -0
- package/dist/actions/get-campaigns.d.cts +9 -0
- package/dist/actions/get-campaigns.d.cts.map +1 -0
- package/dist/actions/get-campaigns.d.mts +9 -0
- package/dist/actions/get-campaigns.d.mts.map +1 -0
- package/dist/actions/get-campaigns.mjs +33 -0
- package/dist/actions/get-campaigns.mjs.map +1 -0
- package/dist/actions/get-contact-by-id.cjs +26 -0
- package/dist/actions/get-contact-by-id.cjs.map +1 -0
- package/dist/actions/get-contact-by-id.d.cts +9 -0
- package/dist/actions/get-contact-by-id.d.cts.map +1 -0
- package/dist/actions/get-contact-by-id.d.mts +9 -0
- package/dist/actions/get-contact-by-id.d.mts.map +1 -0
- package/dist/actions/get-contact-by-id.mjs +23 -0
- package/dist/actions/get-contact-by-id.mjs.map +1 -0
- package/dist/actions/get-contact-fields.cjs +21 -0
- package/dist/actions/get-contact-fields.cjs.map +1 -0
- package/dist/actions/get-contact-fields.d.cts +9 -0
- package/dist/actions/get-contact-fields.d.cts.map +1 -0
- package/dist/actions/get-contact-fields.d.mts +9 -0
- package/dist/actions/get-contact-fields.d.mts.map +1 -0
- package/dist/actions/get-contact-fields.mjs +20 -0
- package/dist/actions/get-contact-fields.mjs.map +1 -0
- package/dist/actions/get-contacts-in-list.cjs +34 -0
- package/dist/actions/get-contacts-in-list.cjs.map +1 -0
- package/dist/actions/get-contacts-in-list.d.cts +9 -0
- package/dist/actions/get-contacts-in-list.d.cts.map +1 -0
- package/dist/actions/get-contacts-in-list.d.mts +9 -0
- package/dist/actions/get-contacts-in-list.d.mts.map +1 -0
- package/dist/actions/get-contacts-in-list.mjs +33 -0
- package/dist/actions/get-contacts-in-list.mjs.map +1 -0
- package/dist/actions/get-contacts.cjs +34 -0
- package/dist/actions/get-contacts.cjs.map +1 -0
- package/dist/actions/get-contacts.d.cts +9 -0
- package/dist/actions/get-contacts.d.cts.map +1 -0
- package/dist/actions/get-contacts.d.mts +9 -0
- package/dist/actions/get-contacts.d.mts.map +1 -0
- package/dist/actions/get-contacts.mjs +33 -0
- package/dist/actions/get-contacts.mjs.map +1 -0
- package/dist/actions/get-current-user.cjs +29 -0
- package/dist/actions/get-current-user.cjs.map +1 -0
- package/dist/actions/get-current-user.d.cts +9 -0
- package/dist/actions/get-current-user.d.cts.map +1 -0
- package/dist/actions/get-current-user.d.mts +9 -0
- package/dist/actions/get-current-user.d.mts.map +1 -0
- package/dist/actions/get-current-user.mjs +26 -0
- package/dist/actions/get-current-user.mjs.map +1 -0
- package/dist/actions/get-forms.cjs +28 -0
- package/dist/actions/get-forms.cjs.map +1 -0
- package/dist/actions/get-forms.d.cts +9 -0
- package/dist/actions/get-forms.d.cts.map +1 -0
- package/dist/actions/get-forms.d.mts +9 -0
- package/dist/actions/get-forms.d.mts.map +1 -0
- package/dist/actions/get-forms.mjs +27 -0
- package/dist/actions/get-forms.mjs.map +1 -0
- package/dist/actions/get-list-by-id.cjs +22 -0
- package/dist/actions/get-list-by-id.cjs.map +1 -0
- package/dist/actions/get-list-by-id.d.cts +9 -0
- package/dist/actions/get-list-by-id.d.cts.map +1 -0
- package/dist/actions/get-list-by-id.d.mts +9 -0
- package/dist/actions/get-list-by-id.d.mts.map +1 -0
- package/dist/actions/get-list-by-id.mjs +19 -0
- package/dist/actions/get-list-by-id.mjs.map +1 -0
- package/dist/actions/get-lists.cjs +32 -0
- package/dist/actions/get-lists.cjs.map +1 -0
- package/dist/actions/get-lists.d.cts +9 -0
- package/dist/actions/get-lists.d.cts.map +1 -0
- package/dist/actions/get-lists.d.mts +9 -0
- package/dist/actions/get-lists.d.mts.map +1 -0
- package/dist/actions/get-lists.mjs +31 -0
- package/dist/actions/get-lists.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/list-contact-fields.cjs +28 -0
- package/dist/actions/list-contact-fields.cjs.map +1 -0
- package/dist/actions/list-contact-fields.d.cts +9 -0
- package/dist/actions/list-contact-fields.d.cts.map +1 -0
- package/dist/actions/list-contact-fields.d.mts +9 -0
- package/dist/actions/list-contact-fields.d.mts.map +1 -0
- package/dist/actions/list-contact-fields.mjs +27 -0
- package/dist/actions/list-contact-fields.mjs.map +1 -0
- package/dist/actions/list-unsubscribed-contacts.cjs +34 -0
- package/dist/actions/list-unsubscribed-contacts.cjs.map +1 -0
- package/dist/actions/list-unsubscribed-contacts.d.cts +9 -0
- package/dist/actions/list-unsubscribed-contacts.d.cts.map +1 -0
- package/dist/actions/list-unsubscribed-contacts.d.mts +9 -0
- package/dist/actions/list-unsubscribed-contacts.d.mts.map +1 -0
- package/dist/actions/list-unsubscribed-contacts.mjs +33 -0
- package/dist/actions/list-unsubscribed-contacts.mjs.map +1 -0
- package/dist/actions/patch-unsubscribe-contact.cjs +25 -0
- package/dist/actions/patch-unsubscribe-contact.cjs.map +1 -0
- package/dist/actions/patch-unsubscribe-contact.d.cts +9 -0
- package/dist/actions/patch-unsubscribe-contact.d.cts.map +1 -0
- package/dist/actions/patch-unsubscribe-contact.d.mts +9 -0
- package/dist/actions/patch-unsubscribe-contact.d.mts.map +1 -0
- package/dist/actions/patch-unsubscribe-contact.mjs +22 -0
- package/dist/actions/patch-unsubscribe-contact.mjs.map +1 -0
- package/dist/actions/post-create-contact.cjs +31 -0
- package/dist/actions/post-create-contact.cjs.map +1 -0
- package/dist/actions/post-create-contact.d.cts +9 -0
- package/dist/actions/post-create-contact.d.cts.map +1 -0
- package/dist/actions/post-create-contact.d.mts +9 -0
- package/dist/actions/post-create-contact.d.mts.map +1 -0
- package/dist/actions/post-create-contact.mjs +28 -0
- package/dist/actions/post-create-contact.mjs.map +1 -0
- package/dist/actions/post-create-list.cjs +21 -0
- package/dist/actions/post-create-list.cjs.map +1 -0
- package/dist/actions/post-create-list.d.cts +9 -0
- package/dist/actions/post-create-list.d.cts.map +1 -0
- package/dist/actions/post-create-list.d.mts +9 -0
- package/dist/actions/post-create-list.d.mts.map +1 -0
- package/dist/actions/post-create-list.mjs +18 -0
- package/dist/actions/post-create-list.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 +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.mjs +21 -0
- package/package.json +49 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-list-by-id.ts
|
|
4
|
+
const SendfoxGetListByIdInput = zod.z.object({ list_id: zod.z.number().int().describe("The unique numeric identifier of the contact list to retrieve. You can obtain list IDs from the 'Get Lists' action.") }).describe("Request model for retrieving a contact list by its ID.");
|
|
5
|
+
const SendfoxGetListByIdOutput = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("The unique numeric identifier of the list."),
|
|
7
|
+
name: zod.z.string().describe("The display name of the contact list."),
|
|
8
|
+
created_at: zod.z.string().describe("The date/time when the list was created (ISO 8601 format).").nullable().optional(),
|
|
9
|
+
updated_at: zod.z.string().describe("The date/time when the list was last updated (ISO 8601 format).").nullable().optional(),
|
|
10
|
+
contact_count: zod.z.number().int().describe("The total number of contacts currently in this list.")
|
|
11
|
+
}).describe("Response model for a contact list retrieved by its ID.");
|
|
12
|
+
const sendfoxGetListById = require_action.action("SENDFOX_GET_LIST_BY_ID", {
|
|
13
|
+
slug: "sendfox-get-list-by-id",
|
|
14
|
+
name: "Get List by ID",
|
|
15
|
+
description: "Retrieves details of a specific contact list by its ID from SendFox. Use this tool when you need information about a particular list (name, contact count, timestamps). Requires a valid list_id which can be obtained from the 'Get Lists' action.",
|
|
16
|
+
input: SendfoxGetListByIdInput,
|
|
17
|
+
output: SendfoxGetListByIdOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.sendfoxGetListById = sendfoxGetListById;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=get-list-by-id.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-list-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-list-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetListByIdInput: z.ZodTypeAny = z.object({\n list_id: z.number().int().describe(\"The unique numeric identifier of the contact list to retrieve. You can obtain list IDs from the 'Get Lists' action.\"),\n}).describe(\"Request model for retrieving a contact list by its ID.\");\nexport const SendfoxGetListByIdOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique numeric identifier of the list.\"),\n name: z.string().describe(\"The display name of the contact list.\"),\n created_at: z.string().describe(\"The date/time when the list was created (ISO 8601 format).\").nullable().optional(),\n updated_at: z.string().describe(\"The date/time when the list was last updated (ISO 8601 format).\").nullable().optional(),\n contact_count: z.number().int().describe(\"The total number of contacts currently in this list.\"),\n}).describe(\"Response model for a contact list retrieved by its ID.\");\n\nexport const sendfoxGetListById = action(\"SENDFOX_GET_LIST_BY_ID\", {\n slug: \"sendfox-get-list-by-id\",\n name: \"Get List by ID\",\n description: \"Retrieves details of a specific contact list by its ID from SendFox. Use this tool when you need information about a particular list (name, contact count, timestamps). Requires a valid list_id which can be obtained from the 'Get Lists' action.\",\n input: SendfoxGetListByIdInput,\n output: SendfoxGetListByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,EAC1J,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;AACjG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,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/get-list-by-id.d.ts
|
|
4
|
+
declare const SendfoxGetListByIdInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxGetListByIdOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxGetListById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxGetListById };
|
|
9
|
+
//# sourceMappingURL=get-list-by-id.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-list-by-id.d.cts","names":[],"sources":["../../src/actions/get-list-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE6B;AAAA,cACxD,wBAAA,EAA0B,CAAA,CAAE,UAM4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-list-by-id.d.ts
|
|
4
|
+
declare const SendfoxGetListByIdInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxGetListByIdOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxGetListById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxGetListById };
|
|
9
|
+
//# sourceMappingURL=get-list-by-id.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-list-by-id.d.mts","names":[],"sources":["../../src/actions/get-list-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE6B;AAAA,cACxD,wBAAA,EAA0B,CAAA,CAAE,UAM4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendfoxGetListById = action("SENDFOX_GET_LIST_BY_ID", {
|
|
4
|
+
slug: "sendfox-get-list-by-id",
|
|
5
|
+
name: "Get List by ID",
|
|
6
|
+
description: "Retrieves details of a specific contact list by its ID from SendFox. Use this tool when you need information about a particular list (name, contact count, timestamps). Requires a valid list_id which can be obtained from the 'Get Lists' action.",
|
|
7
|
+
input: z.object({ list_id: z.number().int().describe("The unique numeric identifier of the contact list to retrieve. You can obtain list IDs from the 'Get Lists' action.") }).describe("Request model for retrieving a contact list by its ID."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.number().int().describe("The unique numeric identifier of the list."),
|
|
10
|
+
name: z.string().describe("The display name of the contact list."),
|
|
11
|
+
created_at: z.string().describe("The date/time when the list was created (ISO 8601 format).").nullable().optional(),
|
|
12
|
+
updated_at: z.string().describe("The date/time when the list was last updated (ISO 8601 format).").nullable().optional(),
|
|
13
|
+
contact_count: z.number().int().describe("The total number of contacts currently in this list.")
|
|
14
|
+
}).describe("Response model for a contact list retrieved by its ID.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { sendfoxGetListById };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-list-by-id.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-list-by-id.mjs","names":[],"sources":["../../src/actions/get-list-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetListByIdInput: z.ZodTypeAny = z.object({\n list_id: z.number().int().describe(\"The unique numeric identifier of the contact list to retrieve. You can obtain list IDs from the 'Get Lists' action.\"),\n}).describe(\"Request model for retrieving a contact list by its ID.\");\nexport const SendfoxGetListByIdOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique numeric identifier of the list.\"),\n name: z.string().describe(\"The display name of the contact list.\"),\n created_at: z.string().describe(\"The date/time when the list was created (ISO 8601 format).\").nullable().optional(),\n updated_at: z.string().describe(\"The date/time when the list was last updated (ISO 8601 format).\").nullable().optional(),\n contact_count: z.number().int().describe(\"The total number of contacts currently in this list.\"),\n}).describe(\"Response model for a contact list retrieved by its ID.\");\n\nexport const sendfoxGetListById = action(\"SENDFOX_GET_LIST_BY_ID\", {\n slug: \"sendfox-get-list-by-id\",\n name: \"Get List by ID\",\n description: \"Retrieves details of a specific contact list by its ID from SendFox. Use this tool when you need information about a particular list (name, contact count, timestamps). Requires a valid list_id which can be obtained from the 'Get Lists' action.\",\n input: SendfoxGetListByIdInput,\n output: SendfoxGetListByIdOutput,\n});\n"],"mappings":";;AAeA,MAAa,qBAAqB,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfmD,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,EAC1J,CAAC,CAAC,CAAC,SAAS,wDAaH;CACP,QAboD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CACjG,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-lists.ts
|
|
4
|
+
const SendfoxGetListsInput = zod.z.object({ page: zod.z.number().int().describe("Page number for pagination (starts at 1). If not specified, returns the first page.").optional() }).describe("Request schema for retrieving paginated contact lists from SendFox.");
|
|
5
|
+
const SendfoxGetLists_ListItemSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier for the contact list."),
|
|
7
|
+
name: zod.z.string().describe("Name of the contact list."),
|
|
8
|
+
contact_count: zod.z.number().int().describe("Number of contacts in the list (may not be included in paginated responses).").nullable().optional()
|
|
9
|
+
}).describe("Represents a single contact list in SendFox.");
|
|
10
|
+
const SendfoxGetLists_PaginationDataSchema = zod.z.object({
|
|
11
|
+
to: zod.z.number().int().describe("Ending record number on this page.").nullable().optional(),
|
|
12
|
+
from: zod.z.number().int().describe("Starting record number on this page.").nullable().optional(),
|
|
13
|
+
total: zod.z.number().int().describe("Total number of records across all pages."),
|
|
14
|
+
per_page: zod.z.number().int().describe("Number of records per page."),
|
|
15
|
+
last_page: zod.z.number().int().describe("Total number of pages available."),
|
|
16
|
+
current_page: zod.z.number().int().describe("Current page number.")
|
|
17
|
+
}).describe("Pagination metadata returned by SendFox API.");
|
|
18
|
+
const SendfoxGetListsOutput = zod.z.object({
|
|
19
|
+
lists: zod.z.array(SendfoxGetLists_ListItemSchema).describe("Array of contact lists returned by the API."),
|
|
20
|
+
pagination: SendfoxGetLists_PaginationDataSchema.nullable().optional()
|
|
21
|
+
}).describe("Response schema for paginated contact lists from SendFox.");
|
|
22
|
+
const sendfoxGetLists = require_action.action("SENDFOX_GET_LISTS", {
|
|
23
|
+
slug: "sendfox-get-lists",
|
|
24
|
+
name: "Get Lists",
|
|
25
|
+
description: "Retrieve all contact lists from your SendFox account with pagination support. Use this tool when you need to: - Fetch all available contact lists for your account - Get list IDs to use with other SendFox actions (e.g., adding contacts to lists) - Check list names and browse through paginated results Returns a list of contact lists with their IDs and names, along with pagination metadata.",
|
|
26
|
+
input: SendfoxGetListsInput,
|
|
27
|
+
output: SendfoxGetListsOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.sendfoxGetLists = sendfoxGetLists;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=get-lists.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-lists.cjs","names":["z","action"],"sources":["../../src/actions/get-lists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetListsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1). If not specified, returns the first page.\").optional(),\n}).describe(\"Request schema for retrieving paginated contact lists from SendFox.\");\nconst SendfoxGetLists_ListItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact list.\"),\n name: z.string().describe(\"Name of the contact list.\"),\n contact_count: z.number().int().describe(\"Number of contacts in the list (may not be included in paginated responses).\").nullable().optional(),\n}).describe(\"Represents a single contact list in SendFox.\");\nconst SendfoxGetLists_PaginationDataSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Ending record number on this page.\").nullable().optional(),\n from: z.number().int().describe(\"Starting record number on this page.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of records across all pages.\"),\n per_page: z.number().int().describe(\"Number of records per page.\"),\n last_page: z.number().int().describe(\"Total number of pages available.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination metadata returned by SendFox API.\");\nexport const SendfoxGetListsOutput: z.ZodTypeAny = z.object({\n lists: z.array(SendfoxGetLists_ListItemSchema).describe(\"Array of contact lists returned by the API.\"),\n pagination: SendfoxGetLists_PaginationDataSchema.nullable().optional(),\n}).describe(\"Response schema for paginated contact lists from SendFox.\");\n\nexport const sendfoxGetLists = action(\"SENDFOX_GET_LISTS\", {\n slug: \"sendfox-get-lists\",\n name: \"Get Lists\",\n description: \"Retrieve all contact lists from your SendFox account with pagination support. Use this tool when you need to: - Fetch all available contact lists for your account - Get list IDs to use with other SendFox actions (e.g., adding contacts to lists) - Check list names and browse through paginated results Returns a list of contact lists with their IDs and names, along with pagination metadata.\",\n input: SendfoxGetListsInput,\n output: SendfoxGetListsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,6CAA6C;CACrG,YAAY,qCAAqC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,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/get-lists.d.ts
|
|
4
|
+
declare const SendfoxGetListsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxGetListsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxGetLists: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxGetLists };
|
|
9
|
+
//# sourceMappingURL=get-lists.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-lists.d.cts","names":[],"sources":["../../src/actions/get-lists.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAE6C;AAAA,cAcrE,qBAAA,EAAuB,CAAA,CAAE,UAGkC;AAAA,cAE3D,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-lists.d.ts
|
|
4
|
+
declare const SendfoxGetListsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxGetListsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxGetLists: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxGetLists };
|
|
9
|
+
//# sourceMappingURL=get-lists.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-lists.d.mts","names":[],"sources":["../../src/actions/get-lists.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAE6C;AAAA,cAcrE,qBAAA,EAAuB,CAAA,CAAE,UAGkC;AAAA,cAE3D,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-lists.ts
|
|
4
|
+
const SendfoxGetListsInput = z.object({ page: z.number().int().describe("Page number for pagination (starts at 1). If not specified, returns the first page.").optional() }).describe("Request schema for retrieving paginated contact lists from SendFox.");
|
|
5
|
+
const SendfoxGetLists_ListItemSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique identifier for the contact list."),
|
|
7
|
+
name: z.string().describe("Name of the contact list."),
|
|
8
|
+
contact_count: z.number().int().describe("Number of contacts in the list (may not be included in paginated responses).").nullable().optional()
|
|
9
|
+
}).describe("Represents a single contact list in SendFox.");
|
|
10
|
+
const SendfoxGetLists_PaginationDataSchema = z.object({
|
|
11
|
+
to: z.number().int().describe("Ending record number on this page.").nullable().optional(),
|
|
12
|
+
from: z.number().int().describe("Starting record number on this page.").nullable().optional(),
|
|
13
|
+
total: z.number().int().describe("Total number of records across all pages."),
|
|
14
|
+
per_page: z.number().int().describe("Number of records per page."),
|
|
15
|
+
last_page: z.number().int().describe("Total number of pages available."),
|
|
16
|
+
current_page: z.number().int().describe("Current page number.")
|
|
17
|
+
}).describe("Pagination metadata returned by SendFox API.");
|
|
18
|
+
const sendfoxGetLists = action("SENDFOX_GET_LISTS", {
|
|
19
|
+
slug: "sendfox-get-lists",
|
|
20
|
+
name: "Get Lists",
|
|
21
|
+
description: "Retrieve all contact lists from your SendFox account with pagination support. Use this tool when you need to: - Fetch all available contact lists for your account - Get list IDs to use with other SendFox actions (e.g., adding contacts to lists) - Check list names and browse through paginated results Returns a list of contact lists with their IDs and names, along with pagination metadata.",
|
|
22
|
+
input: SendfoxGetListsInput,
|
|
23
|
+
output: z.object({
|
|
24
|
+
lists: z.array(SendfoxGetLists_ListItemSchema).describe("Array of contact lists returned by the API."),
|
|
25
|
+
pagination: SendfoxGetLists_PaginationDataSchema.nullable().optional()
|
|
26
|
+
}).describe("Response schema for paginated contact lists from SendFox.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { sendfoxGetLists };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=get-lists.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-lists.mjs","names":[],"sources":["../../src/actions/get-lists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetListsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1). If not specified, returns the first page.\").optional(),\n}).describe(\"Request schema for retrieving paginated contact lists from SendFox.\");\nconst SendfoxGetLists_ListItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact list.\"),\n name: z.string().describe(\"Name of the contact list.\"),\n contact_count: z.number().int().describe(\"Number of contacts in the list (may not be included in paginated responses).\").nullable().optional(),\n}).describe(\"Represents a single contact list in SendFox.\");\nconst SendfoxGetLists_PaginationDataSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Ending record number on this page.\").nullable().optional(),\n from: z.number().int().describe(\"Starting record number on this page.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of records across all pages.\"),\n per_page: z.number().int().describe(\"Number of records per page.\"),\n last_page: z.number().int().describe(\"Total number of pages available.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination metadata returned by SendFox API.\");\nexport const SendfoxGetListsOutput: z.ZodTypeAny = z.object({\n lists: z.array(SendfoxGetLists_ListItemSchema).describe(\"Array of contact lists returned by the API.\"),\n pagination: SendfoxGetLists_PaginationDataSchema.nullable().optional(),\n}).describe(\"Response schema for paginated contact lists from SendFox.\");\n\nexport const sendfoxGetLists = action(\"SENDFOX_GET_LISTS\", {\n slug: \"sendfox-get-lists\",\n name: \"Get Lists\",\n description: \"Retrieve all contact lists from your SendFox account with pagination support. Use this tool when you need to: - Fetch all available contact lists for your account - Get list IDs to use with other SendFox actions (e.g., adding contacts to lists) - Check list names and browse through paginated results Returns a list of contact lists with their IDs and names, along with pagination metadata.\",\n input: SendfoxGetListsInput,\n output: SendfoxGetListsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAM1D,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,OAAO,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,6CAA6C;EACrG,YAAY,qCAAqC,SAAS,CAAC,CAAC,SAAS;CACvE,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_delete_contact_from_list = require("./delete-contact-from-list.cjs");
|
|
3
|
+
const require_get_automations = require("./get-automations.cjs");
|
|
4
|
+
const require_get_campaign_by_id = require("./get-campaign-by-id.cjs");
|
|
5
|
+
const require_get_campaigns = require("./get-campaigns.cjs");
|
|
6
|
+
const require_get_contact_by_id = require("./get-contact-by-id.cjs");
|
|
7
|
+
const require_get_contact_fields = require("./get-contact-fields.cjs");
|
|
8
|
+
const require_get_contacts = require("./get-contacts.cjs");
|
|
9
|
+
const require_get_contacts_in_list = require("./get-contacts-in-list.cjs");
|
|
10
|
+
const require_get_current_user = require("./get-current-user.cjs");
|
|
11
|
+
const require_get_forms = require("./get-forms.cjs");
|
|
12
|
+
const require_get_list_by_id = require("./get-list-by-id.cjs");
|
|
13
|
+
const require_get_lists = require("./get-lists.cjs");
|
|
14
|
+
const require_list_contact_fields = require("./list-contact-fields.cjs");
|
|
15
|
+
const require_list_unsubscribed_contacts = require("./list-unsubscribed-contacts.cjs");
|
|
16
|
+
const require_patch_unsubscribe_contact = require("./patch-unsubscribe-contact.cjs");
|
|
17
|
+
const require_post_create_contact = require("./post-create-contact.cjs");
|
|
18
|
+
const require_post_create_list = require("./post-create-list.cjs");
|
|
19
|
+
exports.sendfoxDeleteContactFromList = require_delete_contact_from_list.sendfoxDeleteContactFromList;
|
|
20
|
+
exports.sendfoxGetAutomations = require_get_automations.sendfoxGetAutomations;
|
|
21
|
+
exports.sendfoxGetCampaignById = require_get_campaign_by_id.sendfoxGetCampaignById;
|
|
22
|
+
exports.sendfoxGetCampaigns = require_get_campaigns.sendfoxGetCampaigns;
|
|
23
|
+
exports.sendfoxGetContactById = require_get_contact_by_id.sendfoxGetContactById;
|
|
24
|
+
exports.sendfoxGetContactFields = require_get_contact_fields.sendfoxGetContactFields;
|
|
25
|
+
exports.sendfoxGetContacts = require_get_contacts.sendfoxGetContacts;
|
|
26
|
+
exports.sendfoxGetContactsInList = require_get_contacts_in_list.sendfoxGetContactsInList;
|
|
27
|
+
exports.sendfoxGetCurrentUser = require_get_current_user.sendfoxGetCurrentUser;
|
|
28
|
+
exports.sendfoxGetForms = require_get_forms.sendfoxGetForms;
|
|
29
|
+
exports.sendfoxGetListById = require_get_list_by_id.sendfoxGetListById;
|
|
30
|
+
exports.sendfoxGetLists = require_get_lists.sendfoxGetLists;
|
|
31
|
+
exports.sendfoxListContactFields = require_list_contact_fields.sendfoxListContactFields;
|
|
32
|
+
exports.sendfoxListUnsubscribedContacts = require_list_unsubscribed_contacts.sendfoxListUnsubscribedContacts;
|
|
33
|
+
exports.sendfoxPatchUnsubscribeContact = require_patch_unsubscribe_contact.sendfoxPatchUnsubscribeContact;
|
|
34
|
+
exports.sendfoxPostCreateContact = require_post_create_contact.sendfoxPostCreateContact;
|
|
35
|
+
exports.sendfoxPostCreateList = require_post_create_list.sendfoxPostCreateList;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { sendfoxDeleteContactFromList } from "./delete-contact-from-list.cjs";
|
|
2
|
+
import { sendfoxGetAutomations } from "./get-automations.cjs";
|
|
3
|
+
import { sendfoxGetCampaignById } from "./get-campaign-by-id.cjs";
|
|
4
|
+
import { sendfoxGetCampaigns } from "./get-campaigns.cjs";
|
|
5
|
+
import { sendfoxGetContactById } from "./get-contact-by-id.cjs";
|
|
6
|
+
import { sendfoxGetContactFields } from "./get-contact-fields.cjs";
|
|
7
|
+
import { sendfoxGetContacts } from "./get-contacts.cjs";
|
|
8
|
+
import { sendfoxGetContactsInList } from "./get-contacts-in-list.cjs";
|
|
9
|
+
import { sendfoxGetCurrentUser } from "./get-current-user.cjs";
|
|
10
|
+
import { sendfoxGetForms } from "./get-forms.cjs";
|
|
11
|
+
import { sendfoxGetListById } from "./get-list-by-id.cjs";
|
|
12
|
+
import { sendfoxGetLists } from "./get-lists.cjs";
|
|
13
|
+
import { sendfoxListContactFields } from "./list-contact-fields.cjs";
|
|
14
|
+
import { sendfoxListUnsubscribedContacts } from "./list-unsubscribed-contacts.cjs";
|
|
15
|
+
import { sendfoxPatchUnsubscribeContact } from "./patch-unsubscribe-contact.cjs";
|
|
16
|
+
import { sendfoxPostCreateContact } from "./post-create-contact.cjs";
|
|
17
|
+
import { sendfoxPostCreateList } from "./post-create-list.cjs";
|
|
18
|
+
export { sendfoxDeleteContactFromList, sendfoxGetAutomations, sendfoxGetCampaignById, sendfoxGetCampaigns, sendfoxGetContactById, sendfoxGetContactFields, sendfoxGetContacts, sendfoxGetContactsInList, sendfoxGetCurrentUser, sendfoxGetForms, sendfoxGetListById, sendfoxGetLists, sendfoxListContactFields, sendfoxListUnsubscribedContacts, sendfoxPatchUnsubscribeContact, sendfoxPostCreateContact, sendfoxPostCreateList };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { sendfoxDeleteContactFromList } from "./delete-contact-from-list.mjs";
|
|
2
|
+
import { sendfoxGetAutomations } from "./get-automations.mjs";
|
|
3
|
+
import { sendfoxGetCampaignById } from "./get-campaign-by-id.mjs";
|
|
4
|
+
import { sendfoxGetCampaigns } from "./get-campaigns.mjs";
|
|
5
|
+
import { sendfoxGetContactById } from "./get-contact-by-id.mjs";
|
|
6
|
+
import { sendfoxGetContactFields } from "./get-contact-fields.mjs";
|
|
7
|
+
import { sendfoxGetContacts } from "./get-contacts.mjs";
|
|
8
|
+
import { sendfoxGetContactsInList } from "./get-contacts-in-list.mjs";
|
|
9
|
+
import { sendfoxGetCurrentUser } from "./get-current-user.mjs";
|
|
10
|
+
import { sendfoxGetForms } from "./get-forms.mjs";
|
|
11
|
+
import { sendfoxGetListById } from "./get-list-by-id.mjs";
|
|
12
|
+
import { sendfoxGetLists } from "./get-lists.mjs";
|
|
13
|
+
import { sendfoxListContactFields } from "./list-contact-fields.mjs";
|
|
14
|
+
import { sendfoxListUnsubscribedContacts } from "./list-unsubscribed-contacts.mjs";
|
|
15
|
+
import { sendfoxPatchUnsubscribeContact } from "./patch-unsubscribe-contact.mjs";
|
|
16
|
+
import { sendfoxPostCreateContact } from "./post-create-contact.mjs";
|
|
17
|
+
import { sendfoxPostCreateList } from "./post-create-list.mjs";
|
|
18
|
+
export { sendfoxDeleteContactFromList, sendfoxGetAutomations, sendfoxGetCampaignById, sendfoxGetCampaigns, sendfoxGetContactById, sendfoxGetContactFields, sendfoxGetContacts, sendfoxGetContactsInList, sendfoxGetCurrentUser, sendfoxGetForms, sendfoxGetListById, sendfoxGetLists, sendfoxListContactFields, sendfoxListUnsubscribedContacts, sendfoxPatchUnsubscribeContact, sendfoxPostCreateContact, sendfoxPostCreateList };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { sendfoxDeleteContactFromList } from "./delete-contact-from-list.mjs";
|
|
2
|
+
import { sendfoxGetAutomations } from "./get-automations.mjs";
|
|
3
|
+
import { sendfoxGetCampaignById } from "./get-campaign-by-id.mjs";
|
|
4
|
+
import { sendfoxGetCampaigns } from "./get-campaigns.mjs";
|
|
5
|
+
import { sendfoxGetContactById } from "./get-contact-by-id.mjs";
|
|
6
|
+
import { sendfoxGetContactFields } from "./get-contact-fields.mjs";
|
|
7
|
+
import { sendfoxGetContacts } from "./get-contacts.mjs";
|
|
8
|
+
import { sendfoxGetContactsInList } from "./get-contacts-in-list.mjs";
|
|
9
|
+
import { sendfoxGetCurrentUser } from "./get-current-user.mjs";
|
|
10
|
+
import { sendfoxGetForms } from "./get-forms.mjs";
|
|
11
|
+
import { sendfoxGetListById } from "./get-list-by-id.mjs";
|
|
12
|
+
import { sendfoxGetLists } from "./get-lists.mjs";
|
|
13
|
+
import { sendfoxListContactFields } from "./list-contact-fields.mjs";
|
|
14
|
+
import { sendfoxListUnsubscribedContacts } from "./list-unsubscribed-contacts.mjs";
|
|
15
|
+
import { sendfoxPatchUnsubscribeContact } from "./patch-unsubscribe-contact.mjs";
|
|
16
|
+
import { sendfoxPostCreateContact } from "./post-create-contact.mjs";
|
|
17
|
+
import { sendfoxPostCreateList } from "./post-create-list.mjs";
|
|
18
|
+
export { sendfoxDeleteContactFromList, sendfoxGetAutomations, sendfoxGetCampaignById, sendfoxGetCampaigns, sendfoxGetContactById, sendfoxGetContactFields, sendfoxGetContacts, sendfoxGetContactsInList, sendfoxGetCurrentUser, sendfoxGetForms, sendfoxGetListById, sendfoxGetLists, sendfoxListContactFields, sendfoxListUnsubscribedContacts, sendfoxPatchUnsubscribeContact, sendfoxPostCreateContact, sendfoxPostCreateList };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-contact-fields.ts
|
|
4
|
+
const SendfoxListContactFieldsInput = zod.z.object({}).describe("Request schema for listing contact fields. No parameters required.");
|
|
5
|
+
const SendfoxListContactFields_ContactFieldItemSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier for the contact field."),
|
|
7
|
+
name: zod.z.string().describe("Internal name/key of the custom contact field."),
|
|
8
|
+
type: zod.z.string().describe("Data type of the custom contact field (e.g., 'text', 'date')."),
|
|
9
|
+
label: zod.z.string().describe("Display label of the custom contact field.")
|
|
10
|
+
}).describe("Represents a single custom contact field in SendFox.");
|
|
11
|
+
const SendfoxListContactFields_PaginatedDataSchema = zod.z.object({
|
|
12
|
+
data: zod.z.array(SendfoxListContactFields_ContactFieldItemSchema).describe("Array of custom contact fields defined by the user."),
|
|
13
|
+
total: zod.z.number().int().describe("Total number of custom contact fields available."),
|
|
14
|
+
per_page: zod.z.number().int().describe("Number of contact fields returned per page."),
|
|
15
|
+
current_page: zod.z.number().int().describe("Current page number in the pagination.")
|
|
16
|
+
}).describe("Paginated data wrapper for contact fields.");
|
|
17
|
+
const SendfoxListContactFieldsOutput = zod.z.object({ data: SendfoxListContactFields_PaginatedDataSchema.nullable() }).describe("Response schema for paginated list of custom contact fields.");
|
|
18
|
+
const sendfoxListContactFields = require_action.action("SENDFOX_LIST_CONTACT_FIELDS", {
|
|
19
|
+
slug: "sendfox-list-contact-fields",
|
|
20
|
+
name: "List Contact Fields",
|
|
21
|
+
description: "Tool to list all custom contact fields defined by the user. Returns a paginated list of contact fields with their IDs, names, and timestamps.",
|
|
22
|
+
input: SendfoxListContactFieldsInput,
|
|
23
|
+
output: SendfoxListContactFieldsOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.sendfoxListContactFields = sendfoxListContactFields;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=list-contact-fields.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contact-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-contact-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxListContactFieldsInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing contact fields. No parameters required.\");\nconst SendfoxListContactFields_ContactFieldItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact field.\"),\n name: z.string().describe(\"Internal name/key of the custom contact field.\"),\n type: z.string().describe(\"Data type of the custom contact field (e.g., 'text', 'date').\"),\n label: z.string().describe(\"Display label of the custom contact field.\"),\n}).describe(\"Represents a single custom contact field in SendFox.\");\nconst SendfoxListContactFields_PaginatedDataSchema: z.ZodTypeAny = z.object({\n data: z.array(SendfoxListContactFields_ContactFieldItemSchema).describe(\"Array of custom contact fields defined by the user.\"),\n total: z.number().int().describe(\"Total number of custom contact fields available.\"),\n per_page: z.number().int().describe(\"Number of contact fields returned per page.\"),\n current_page: z.number().int().describe(\"Current page number in the pagination.\"),\n}).describe(\"Paginated data wrapper for contact fields.\");\nexport const SendfoxListContactFieldsOutput: z.ZodTypeAny = z.object({\n data: SendfoxListContactFields_PaginatedDataSchema.nullable(),\n}).describe(\"Response schema for paginated list of custom contact fields.\");\n\nexport const sendfoxListContactFields = action(\"SENDFOX_LIST_CONTACT_FIELDS\", {\n slug: \"sendfox-list-contact-fields\",\n name: \"List Contact Fields\",\n description: \"Tool to list all custom contact fields defined by the user. Returns a paginated list of contact fields with their IDs, names, and timestamps.\",\n input: SendfoxListContactFieldsInput,\n output: SendfoxListContactFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACrJ,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AACzE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,qDAAqD;CAC7H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AAClF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,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/list-contact-fields.d.ts
|
|
4
|
+
declare const SendfoxListContactFieldsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxListContactFieldsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxListContactFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxListContactFields };
|
|
9
|
+
//# sourceMappingURL=list-contact-fields.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contact-fields.d.cts","names":[],"sources":["../../src/actions/list-contact-fields.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAwG;AAAA,cAazI,8BAAA,EAAgC,CAAA,CAAE,UAE4B;AAAA,cAE9D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-contact-fields.d.ts
|
|
4
|
+
declare const SendfoxListContactFieldsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxListContactFieldsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxListContactFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxListContactFields };
|
|
9
|
+
//# sourceMappingURL=list-contact-fields.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contact-fields.d.mts","names":[],"sources":["../../src/actions/list-contact-fields.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAwG;AAAA,cAazI,8BAAA,EAAgC,CAAA,CAAE,UAE4B;AAAA,cAE9D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-contact-fields.ts
|
|
4
|
+
const SendfoxListContactFieldsInput = z.object({}).describe("Request schema for listing contact fields. No parameters required.");
|
|
5
|
+
const SendfoxListContactFields_ContactFieldItemSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique identifier for the contact field."),
|
|
7
|
+
name: z.string().describe("Internal name/key of the custom contact field."),
|
|
8
|
+
type: z.string().describe("Data type of the custom contact field (e.g., 'text', 'date')."),
|
|
9
|
+
label: z.string().describe("Display label of the custom contact field.")
|
|
10
|
+
}).describe("Represents a single custom contact field in SendFox.");
|
|
11
|
+
const SendfoxListContactFields_PaginatedDataSchema = z.object({
|
|
12
|
+
data: z.array(SendfoxListContactFields_ContactFieldItemSchema).describe("Array of custom contact fields defined by the user."),
|
|
13
|
+
total: z.number().int().describe("Total number of custom contact fields available."),
|
|
14
|
+
per_page: z.number().int().describe("Number of contact fields returned per page."),
|
|
15
|
+
current_page: z.number().int().describe("Current page number in the pagination.")
|
|
16
|
+
}).describe("Paginated data wrapper for contact fields.");
|
|
17
|
+
const sendfoxListContactFields = action("SENDFOX_LIST_CONTACT_FIELDS", {
|
|
18
|
+
slug: "sendfox-list-contact-fields",
|
|
19
|
+
name: "List Contact Fields",
|
|
20
|
+
description: "Tool to list all custom contact fields defined by the user. Returns a paginated list of contact fields with their IDs, names, and timestamps.",
|
|
21
|
+
input: SendfoxListContactFieldsInput,
|
|
22
|
+
output: z.object({ data: SendfoxListContactFields_PaginatedDataSchema.nullable() }).describe("Response schema for paginated list of custom contact fields.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { sendfoxListContactFields };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=list-contact-fields.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contact-fields.mjs","names":[],"sources":["../../src/actions/list-contact-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxListContactFieldsInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing contact fields. No parameters required.\");\nconst SendfoxListContactFields_ContactFieldItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact field.\"),\n name: z.string().describe(\"Internal name/key of the custom contact field.\"),\n type: z.string().describe(\"Data type of the custom contact field (e.g., 'text', 'date').\"),\n label: z.string().describe(\"Display label of the custom contact field.\"),\n}).describe(\"Represents a single custom contact field in SendFox.\");\nconst SendfoxListContactFields_PaginatedDataSchema: z.ZodTypeAny = z.object({\n data: z.array(SendfoxListContactFields_ContactFieldItemSchema).describe(\"Array of custom contact fields defined by the user.\"),\n total: z.number().int().describe(\"Total number of custom contact fields available.\"),\n per_page: z.number().int().describe(\"Number of contact fields returned per page.\"),\n current_page: z.number().int().describe(\"Current page number in the pagination.\"),\n}).describe(\"Paginated data wrapper for contact fields.\");\nexport const SendfoxListContactFieldsOutput: z.ZodTypeAny = z.object({\n data: SendfoxListContactFields_PaginatedDataSchema.nullable(),\n}).describe(\"Response schema for paginated list of custom contact fields.\");\n\nexport const sendfoxListContactFields = action(\"SENDFOX_LIST_CONTACT_FIELDS\", {\n slug: \"sendfox-list-contact-fields\",\n name: \"List Contact Fields\",\n description: \"Tool to list all custom contact fields defined by the user. Returns a paginated list of contact fields with their IDs, names, and timestamps.\",\n input: SendfoxListContactFieldsInput,\n output: SendfoxListContactFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACrJ,MAAM,kDAAgE,EAAE,OAAO;CAC7E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACzF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AACzE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,+CAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,qDAAqD;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AAClF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-unsubscribed-contacts.ts
|
|
4
|
+
const SendfoxListUnsubscribedContactsInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number to retrieve.").optional(),
|
|
6
|
+
query: zod.z.string().describe("Search query for filtering unsubscribed contacts by name or email.").optional()
|
|
7
|
+
}).describe("Request parameters for retrieving a paginated list of unsubscribed contacts.");
|
|
8
|
+
const SendfoxListUnsubscribedContacts_UnsubscribedContactSchema = zod.z.object({
|
|
9
|
+
id: zod.z.number().int().describe("Unique identifier for the contact."),
|
|
10
|
+
email: zod.z.string().describe("Email address of the contact."),
|
|
11
|
+
last_name: zod.z.string().describe("Last name of the contact.").nullable().optional(),
|
|
12
|
+
created_at: zod.z.string().describe("Timestamp when the contact was created (ISO8601).").nullable().optional(),
|
|
13
|
+
first_name: zod.z.string().describe("First name of the contact.").nullable().optional(),
|
|
14
|
+
ip_address: zod.z.string().describe("IP address from which the contact subscribed.").nullable().optional(),
|
|
15
|
+
updated_at: zod.z.string().describe("Timestamp when the contact was last updated (ISO8601).").nullable().optional(),
|
|
16
|
+
unsubscribed_at: zod.z.string().describe("Timestamp when the contact unsubscribed (ISO8601).").nullable().optional()
|
|
17
|
+
}).describe("Schema representing an unsubscribed Sendfox contact.");
|
|
18
|
+
const SendfoxListUnsubscribedContactsOutput = zod.z.object({
|
|
19
|
+
data: zod.z.array(SendfoxListUnsubscribedContacts_UnsubscribedContactSchema).describe("List of unsubscribed contacts returned by the API."),
|
|
20
|
+
total: zod.z.number().int().describe("Total number of unsubscribed contacts available."),
|
|
21
|
+
per_page: zod.z.number().int().describe("Number of contacts returned per page."),
|
|
22
|
+
current_page: zod.z.number().int().describe("Current page number in the pagination.")
|
|
23
|
+
}).describe("Response schema for a paginated list of unsubscribed contacts.");
|
|
24
|
+
const sendfoxListUnsubscribedContacts = require_action.action("SENDFOX_LIST_UNSUBSCRIBED_CONTACTS", {
|
|
25
|
+
slug: "sendfox-list-unsubscribed-contacts",
|
|
26
|
+
name: "List Unsubscribed Contacts",
|
|
27
|
+
description: "Tool to retrieve a paginated list of contacts who have unsubscribed. Use when you need to fetch unsubscribed contacts, optionally filtering by search query.",
|
|
28
|
+
input: SendfoxListUnsubscribedContactsInput,
|
|
29
|
+
output: SendfoxListUnsubscribedContactsOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.sendfoxListUnsubscribedContacts = sendfoxListUnsubscribedContacts;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=list-unsubscribed-contacts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-unsubscribed-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-unsubscribed-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxListUnsubscribedContactsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve.\").optional(),\n query: z.string().describe(\"Search query for filtering unsubscribed contacts by name or email.\").optional(),\n}).describe(\"Request parameters for retrieving a paginated list of unsubscribed contacts.\");\nconst SendfoxListUnsubscribedContacts_UnsubscribedContactSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact.\"),\n email: z.string().describe(\"Email address of the contact.\"),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the contact was created (ISO8601).\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n ip_address: z.string().describe(\"IP address from which the contact subscribed.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact was last updated (ISO8601).\").nullable().optional(),\n unsubscribed_at: z.string().describe(\"Timestamp when the contact unsubscribed (ISO8601).\").nullable().optional(),\n}).describe(\"Schema representing an unsubscribed Sendfox contact.\");\nexport const SendfoxListUnsubscribedContactsOutput: z.ZodTypeAny = z.object({\n data: z.array(SendfoxListUnsubscribedContacts_UnsubscribedContactSchema).describe(\"List of unsubscribed contacts returned by the API.\"),\n total: z.number().int().describe(\"Total number of unsubscribed contacts available.\"),\n per_page: z.number().int().describe(\"Number of contacts returned per page.\"),\n current_page: z.number().int().describe(\"Current page number in the pagination.\"),\n}).describe(\"Response schema for a paginated list of unsubscribed contacts.\");\n\nexport const sendfoxListUnsubscribedContacts = action(\"SENDFOX_LIST_UNSUBSCRIBED_CONTACTS\", {\n slug: \"sendfox-list-unsubscribed-contacts\",\n name: \"List Unsubscribed Contacts\",\n description: \"Tool to retrieve a paginated list of contacts who have unsubscribed. Use when you need to fetch unsubscribed contacts, optionally filtering by search query.\",\n input: SendfoxListUnsubscribedContactsInput,\n output: SendfoxListUnsubscribedContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,4DAA0EA,IAAAA,EAAE,OAAO;CACvF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,oDAAoD;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AAClF,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,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/list-unsubscribed-contacts.d.ts
|
|
4
|
+
declare const SendfoxListUnsubscribedContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxListUnsubscribedContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxListUnsubscribedContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxListUnsubscribedContacts };
|
|
9
|
+
//# sourceMappingURL=list-unsubscribed-contacts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-unsubscribed-contacts.d.cts","names":[],"sources":["../../src/actions/list-unsubscribed-contacts.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGsC;AAAA,cAW9E,qCAAA,EAAuC,CAAA,CAAE,UAKuB;AAAA,cAEhE,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-unsubscribed-contacts.d.ts
|
|
4
|
+
declare const SendfoxListUnsubscribedContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxListUnsubscribedContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxListUnsubscribedContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxListUnsubscribedContacts };
|
|
9
|
+
//# sourceMappingURL=list-unsubscribed-contacts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-unsubscribed-contacts.d.mts","names":[],"sources":["../../src/actions/list-unsubscribed-contacts.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGsC;AAAA,cAW9E,qCAAA,EAAuC,CAAA,CAAE,UAKuB;AAAA,cAEhE,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-unsubscribed-contacts.ts
|
|
4
|
+
const SendfoxListUnsubscribedContactsInput = z.object({
|
|
5
|
+
page: z.number().int().describe("Page number to retrieve.").optional(),
|
|
6
|
+
query: z.string().describe("Search query for filtering unsubscribed contacts by name or email.").optional()
|
|
7
|
+
}).describe("Request parameters for retrieving a paginated list of unsubscribed contacts.");
|
|
8
|
+
const SendfoxListUnsubscribedContacts_UnsubscribedContactSchema = z.object({
|
|
9
|
+
id: z.number().int().describe("Unique identifier for the contact."),
|
|
10
|
+
email: z.string().describe("Email address of the contact."),
|
|
11
|
+
last_name: z.string().describe("Last name of the contact.").nullable().optional(),
|
|
12
|
+
created_at: z.string().describe("Timestamp when the contact was created (ISO8601).").nullable().optional(),
|
|
13
|
+
first_name: z.string().describe("First name of the contact.").nullable().optional(),
|
|
14
|
+
ip_address: z.string().describe("IP address from which the contact subscribed.").nullable().optional(),
|
|
15
|
+
updated_at: z.string().describe("Timestamp when the contact was last updated (ISO8601).").nullable().optional(),
|
|
16
|
+
unsubscribed_at: z.string().describe("Timestamp when the contact unsubscribed (ISO8601).").nullable().optional()
|
|
17
|
+
}).describe("Schema representing an unsubscribed Sendfox contact.");
|
|
18
|
+
const sendfoxListUnsubscribedContacts = action("SENDFOX_LIST_UNSUBSCRIBED_CONTACTS", {
|
|
19
|
+
slug: "sendfox-list-unsubscribed-contacts",
|
|
20
|
+
name: "List Unsubscribed Contacts",
|
|
21
|
+
description: "Tool to retrieve a paginated list of contacts who have unsubscribed. Use when you need to fetch unsubscribed contacts, optionally filtering by search query.",
|
|
22
|
+
input: SendfoxListUnsubscribedContactsInput,
|
|
23
|
+
output: z.object({
|
|
24
|
+
data: z.array(SendfoxListUnsubscribedContacts_UnsubscribedContactSchema).describe("List of unsubscribed contacts returned by the API."),
|
|
25
|
+
total: z.number().int().describe("Total number of unsubscribed contacts available."),
|
|
26
|
+
per_page: z.number().int().describe("Number of contacts returned per page."),
|
|
27
|
+
current_page: z.number().int().describe("Current page number in the pagination.")
|
|
28
|
+
}).describe("Response schema for a paginated list of unsubscribed contacts.")
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { sendfoxListUnsubscribedContacts };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=list-unsubscribed-contacts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-unsubscribed-contacts.mjs","names":[],"sources":["../../src/actions/list-unsubscribed-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxListUnsubscribedContactsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve.\").optional(),\n query: z.string().describe(\"Search query for filtering unsubscribed contacts by name or email.\").optional(),\n}).describe(\"Request parameters for retrieving a paginated list of unsubscribed contacts.\");\nconst SendfoxListUnsubscribedContacts_UnsubscribedContactSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact.\"),\n email: z.string().describe(\"Email address of the contact.\"),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the contact was created (ISO8601).\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n ip_address: z.string().describe(\"IP address from which the contact subscribed.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the contact was last updated (ISO8601).\").nullable().optional(),\n unsubscribed_at: z.string().describe(\"Timestamp when the contact unsubscribed (ISO8601).\").nullable().optional(),\n}).describe(\"Schema representing an unsubscribed Sendfox contact.\");\nexport const SendfoxListUnsubscribedContactsOutput: z.ZodTypeAny = z.object({\n data: z.array(SendfoxListUnsubscribedContacts_UnsubscribedContactSchema).describe(\"List of unsubscribed contacts returned by the API.\"),\n total: z.number().int().describe(\"Total number of unsubscribed contacts available.\"),\n per_page: z.number().int().describe(\"Number of contacts returned per page.\"),\n current_page: z.number().int().describe(\"Current page number in the pagination.\"),\n}).describe(\"Response schema for a paginated list of unsubscribed contacts.\");\n\nexport const sendfoxListUnsubscribedContacts = action(\"SENDFOX_LIST_UNSUBSCRIBED_CONTACTS\", {\n slug: \"sendfox-list-unsubscribed-contacts\",\n name: \"List Unsubscribed Contacts\",\n description: \"Tool to retrieve a paginated list of contacts who have unsubscribed. Use when you need to fetch unsubscribed contacts, optionally filtering by search query.\",\n input: SendfoxListUnsubscribedContactsInput,\n output: SendfoxListUnsubscribedContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,4DAA0E,EAAE,OAAO;CACvF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAQlE,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiE,EAAE,OAAO;EAC1E,MAAM,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,oDAAoD;EACtI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;EAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAClF,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-unsubscribe-contact.ts
|
|
4
|
+
const SendfoxPatchUnsubscribeContactInput = zod.z.object({ email: zod.z.string().describe("Email address of the contact to unsubscribe. The contact must exist in your SendFox account.") }).describe("Request parameters for unsubscribing a SendFox contact.");
|
|
5
|
+
const SendfoxPatchUnsubscribeContactOutput = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("The unique identifier of the contact.").nullable().optional(),
|
|
7
|
+
email: zod.z.string().describe("The email address of the unsubscribed contact."),
|
|
8
|
+
last_name: zod.z.string().describe("The last name of the contact.").nullable().optional(),
|
|
9
|
+
created_at: zod.z.string().describe("The timestamp when the contact was created.").nullable().optional(),
|
|
10
|
+
first_name: zod.z.string().describe("The first name of the contact.").nullable().optional(),
|
|
11
|
+
ip_address: zod.z.string().describe("The IP address of the contact.").nullable().optional(),
|
|
12
|
+
updated_at: zod.z.string().describe("The timestamp when the contact was last updated.").nullable().optional(),
|
|
13
|
+
unsubscribed_at: zod.z.string().describe("The timestamp when the contact was unsubscribed. Set after this action completes.").nullable().optional()
|
|
14
|
+
}).describe("Response schema for unsubscribing a contact. Returns the contact details with updated unsubscribed_at timestamp.");
|
|
15
|
+
const sendfoxPatchUnsubscribeContact = require_action.action("SENDFOX_PATCH_UNSUBSCRIBE_CONTACT", {
|
|
16
|
+
slug: "sendfox-patch-unsubscribe-contact",
|
|
17
|
+
name: "Unsubscribe Contact",
|
|
18
|
+
description: "Unsubscribe a contact from all email communications in your SendFox account. Use this tool when you need to: - Globally unsubscribe a contact from all future emails - Honor unsubscribe requests from subscribers - Mark a contact as opted-out The contact will be marked as unsubscribed but remains in your contacts database. This is a permanent action - the contact will not receive any future campaigns.",
|
|
19
|
+
input: SendfoxPatchUnsubscribeContactInput,
|
|
20
|
+
output: SendfoxPatchUnsubscribeContactOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.sendfoxPatchUnsubscribeContact = sendfoxPatchUnsubscribeContact;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=patch-unsubscribe-contact.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-unsubscribe-contact.cjs","names":["z","action"],"sources":["../../src/actions/patch-unsubscribe-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxPatchUnsubscribeContactInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the contact to unsubscribe. The contact must exist in your SendFox account.\"),\n}).describe(\"Request parameters for unsubscribing a SendFox contact.\");\nexport const SendfoxPatchUnsubscribeContactOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the contact.\").nullable().optional(),\n email: z.string().describe(\"The email address of the unsubscribed contact.\"),\n last_name: z.string().describe(\"The last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"The timestamp when the contact was created.\").nullable().optional(),\n first_name: z.string().describe(\"The first name of the contact.\").nullable().optional(),\n ip_address: z.string().describe(\"The IP address of the contact.\").nullable().optional(),\n updated_at: z.string().describe(\"The timestamp when the contact was last updated.\").nullable().optional(),\n unsubscribed_at: z.string().describe(\"The timestamp when the contact was unsubscribed. Set after this action completes.\").nullable().optional(),\n}).describe(\"Response schema for unsubscribing a contact. Returns the contact details with updated unsubscribed_at timestamp.\");\n\nexport const sendfoxPatchUnsubscribeContact = action(\"SENDFOX_PATCH_UNSUBSCRIBE_CONTACT\", {\n slug: \"sendfox-patch-unsubscribe-contact\",\n name: \"Unsubscribe Contact\",\n description: \"Unsubscribe a contact from all email communications in your SendFox account. Use this tool when you need to: - Globally unsubscribe a contact from all future emails - Honor unsubscribe requests from subscribers - Mark a contact as opted-out The contact will be marked as unsubscribed but remains in your contacts database. This is a permanent action - the contact will not receive any future campaigns.\",\n input: SendfoxPatchUnsubscribeContactInput,\n output: SendfoxPatchUnsubscribeContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC3H,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAE9H,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,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/patch-unsubscribe-contact.d.ts
|
|
4
|
+
declare const SendfoxPatchUnsubscribeContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendfoxPatchUnsubscribeContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendfoxPatchUnsubscribeContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendfoxPatchUnsubscribeContact };
|
|
9
|
+
//# sourceMappingURL=patch-unsubscribe-contact.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-unsubscribe-contact.d.cts","names":[],"sources":["../../src/actions/patch-unsubscribe-contact.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAEkB;AAAA,cACzD,oCAAA,EAAsC,CAAA,CAAE,UAS0E;AAAA,cAElH,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|