@keystrokehq/sendfox 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/delete-contact-from-list.cjs +1 -1
- package/dist/actions/delete-contact-from-list.cjs.map +1 -1
- package/dist/actions/delete-contact-from-list.d.cts +20 -3
- package/dist/actions/delete-contact-from-list.d.cts.map +1 -1
- package/dist/actions/delete-contact-from-list.d.mts +20 -3
- package/dist/actions/delete-contact-from-list.d.mts.map +1 -1
- package/dist/actions/delete-contact-from-list.mjs +1 -1
- package/dist/actions/delete-contact-from-list.mjs.map +1 -1
- package/dist/actions/get-automations.cjs +4 -4
- package/dist/actions/get-automations.cjs.map +1 -1
- package/dist/actions/get-automations.d.cts +11 -3
- package/dist/actions/get-automations.d.cts.map +1 -1
- package/dist/actions/get-automations.d.mts +11 -3
- package/dist/actions/get-automations.d.mts.map +1 -1
- package/dist/actions/get-automations.mjs +4 -4
- package/dist/actions/get-automations.mjs.map +1 -1
- package/dist/actions/get-campaign-by-id.cjs +7 -7
- package/dist/actions/get-campaign-by-id.cjs.map +1 -1
- package/dist/actions/get-campaign-by-id.d.cts +18 -3
- package/dist/actions/get-campaign-by-id.d.cts.map +1 -1
- package/dist/actions/get-campaign-by-id.d.mts +18 -3
- package/dist/actions/get-campaign-by-id.d.mts.map +1 -1
- package/dist/actions/get-campaign-by-id.mjs +7 -7
- package/dist/actions/get-campaign-by-id.mjs.map +1 -1
- package/dist/actions/get-campaigns.cjs +3 -3
- package/dist/actions/get-campaigns.cjs.map +1 -1
- package/dist/actions/get-campaigns.d.cts +24 -3
- package/dist/actions/get-campaigns.d.cts.map +1 -1
- package/dist/actions/get-campaigns.d.mts +24 -3
- package/dist/actions/get-campaigns.d.mts.map +1 -1
- package/dist/actions/get-campaigns.mjs +3 -3
- package/dist/actions/get-campaigns.mjs.map +1 -1
- package/dist/actions/get-contact-by-id.cjs +3 -3
- package/dist/actions/get-contact-by-id.cjs.map +1 -1
- package/dist/actions/get-contact-by-id.d.cts +17 -3
- package/dist/actions/get-contact-by-id.d.cts.map +1 -1
- package/dist/actions/get-contact-by-id.d.mts +17 -3
- package/dist/actions/get-contact-by-id.d.mts.map +1 -1
- package/dist/actions/get-contact-by-id.mjs +3 -3
- package/dist/actions/get-contact-by-id.mjs.map +1 -1
- package/dist/actions/get-contact-fields.cjs +5 -5
- package/dist/actions/get-contact-fields.cjs.map +1 -1
- package/dist/actions/get-contact-fields.d.cts +9 -3
- package/dist/actions/get-contact-fields.d.cts.map +1 -1
- package/dist/actions/get-contact-fields.d.mts +9 -3
- package/dist/actions/get-contact-fields.d.mts.map +1 -1
- package/dist/actions/get-contact-fields.mjs +5 -5
- package/dist/actions/get-contact-fields.mjs.map +1 -1
- package/dist/actions/get-contacts-in-list.cjs +7 -7
- package/dist/actions/get-contacts-in-list.cjs.map +1 -1
- package/dist/actions/get-contacts-in-list.d.cts +23 -3
- package/dist/actions/get-contacts-in-list.d.cts.map +1 -1
- package/dist/actions/get-contacts-in-list.d.mts +23 -3
- package/dist/actions/get-contacts-in-list.d.mts.map +1 -1
- package/dist/actions/get-contacts-in-list.mjs +7 -7
- package/dist/actions/get-contacts-in-list.mjs.map +1 -1
- package/dist/actions/get-contacts.cjs +7 -7
- package/dist/actions/get-contacts.cjs.map +1 -1
- package/dist/actions/get-contacts.d.cts +23 -3
- package/dist/actions/get-contacts.d.cts.map +1 -1
- package/dist/actions/get-contacts.d.mts +23 -3
- package/dist/actions/get-contacts.d.mts.map +1 -1
- package/dist/actions/get-contacts.mjs +7 -7
- package/dist/actions/get-contacts.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +4 -4
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +16 -3
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +16 -3
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +4 -4
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-forms.cjs +4 -4
- package/dist/actions/get-forms.cjs.map +1 -1
- package/dist/actions/get-forms.d.cts +18 -3
- package/dist/actions/get-forms.d.cts.map +1 -1
- package/dist/actions/get-forms.d.mts +18 -3
- package/dist/actions/get-forms.d.mts.map +1 -1
- package/dist/actions/get-forms.mjs +4 -4
- package/dist/actions/get-forms.mjs.map +1 -1
- package/dist/actions/get-list-by-id.cjs +4 -4
- package/dist/actions/get-list-by-id.cjs.map +1 -1
- package/dist/actions/get-list-by-id.d.cts +13 -3
- package/dist/actions/get-list-by-id.d.cts.map +1 -1
- package/dist/actions/get-list-by-id.d.mts +13 -3
- package/dist/actions/get-list-by-id.d.mts.map +1 -1
- package/dist/actions/get-list-by-id.mjs +4 -4
- package/dist/actions/get-list-by-id.mjs.map +1 -1
- package/dist/actions/get-lists.cjs +9 -9
- package/dist/actions/get-lists.cjs.map +1 -1
- package/dist/actions/get-lists.d.cts +21 -3
- package/dist/actions/get-lists.d.cts.map +1 -1
- package/dist/actions/get-lists.d.mts +21 -3
- package/dist/actions/get-lists.d.mts.map +1 -1
- package/dist/actions/get-lists.mjs +9 -9
- package/dist/actions/get-lists.mjs.map +1 -1
- package/dist/actions/list-contact-fields.cjs +10 -10
- package/dist/actions/list-contact-fields.cjs.map +1 -1
- package/dist/actions/list-contact-fields.d.cts +15 -3
- package/dist/actions/list-contact-fields.d.cts.map +1 -1
- package/dist/actions/list-contact-fields.d.mts +15 -3
- package/dist/actions/list-contact-fields.d.mts.map +1 -1
- package/dist/actions/list-contact-fields.mjs +10 -10
- package/dist/actions/list-contact-fields.mjs.map +1 -1
- package/dist/actions/list-unsubscribed-contacts.cjs +7 -7
- package/dist/actions/list-unsubscribed-contacts.cjs.map +1 -1
- package/dist/actions/list-unsubscribed-contacts.d.cts +23 -3
- package/dist/actions/list-unsubscribed-contacts.d.cts.map +1 -1
- package/dist/actions/list-unsubscribed-contacts.d.mts +23 -3
- package/dist/actions/list-unsubscribed-contacts.d.mts.map +1 -1
- package/dist/actions/list-unsubscribed-contacts.mjs +7 -7
- package/dist/actions/list-unsubscribed-contacts.mjs.map +1 -1
- package/dist/actions/patch-unsubscribe-contact.cjs +2 -2
- package/dist/actions/patch-unsubscribe-contact.cjs.map +1 -1
- package/dist/actions/patch-unsubscribe-contact.d.cts +16 -3
- package/dist/actions/patch-unsubscribe-contact.d.cts.map +1 -1
- package/dist/actions/patch-unsubscribe-contact.d.mts +16 -3
- package/dist/actions/patch-unsubscribe-contact.d.mts.map +1 -1
- package/dist/actions/patch-unsubscribe-contact.mjs +2 -2
- package/dist/actions/patch-unsubscribe-contact.mjs.map +1 -1
- package/dist/actions/post-create-contact.cjs +3 -3
- package/dist/actions/post-create-contact.cjs.map +1 -1
- package/dist/actions/post-create-contact.d.cts +23 -3
- package/dist/actions/post-create-contact.d.cts.map +1 -1
- package/dist/actions/post-create-contact.d.mts +23 -3
- package/dist/actions/post-create-contact.d.mts.map +1 -1
- package/dist/actions/post-create-contact.mjs +3 -3
- package/dist/actions/post-create-contact.mjs.map +1 -1
- package/dist/actions/post-create-list.cjs +3 -3
- package/dist/actions/post-create-list.cjs.map +1 -1
- package/dist/actions/post-create-list.d.cts +12 -3
- package/dist/actions/post-create-list.d.cts.map +1 -1
- package/dist/actions/post-create-list.d.mts +12 -3
- package/dist/actions/post-create-list.d.mts.map +1 -1
- package/dist/actions/post-create-list.mjs +3 -3
- package/dist/actions/post-create-list.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
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-campaigns.ts
|
|
4
4
|
const SendfoxGetCampaignsInput = z.object({ page: z.number().int().describe("Page number of the results to fetch (starts at 1). Defaults to 1 if not provided.").optional() }).describe("Request parameters for retrieving paginated campaigns.");
|
|
5
5
|
const SendfoxGetCampaigns_CampaignSchema = z.object({
|
|
6
|
-
id: z.number().int().describe("Unique campaign ID."),
|
|
6
|
+
id: z.number().int().describe("Unique campaign ID.").nullable(),
|
|
7
7
|
lists: z.array(z.unknown()).describe("Lists attached to this campaign (array of list objects with id and name).").nullable().optional(),
|
|
8
8
|
status: z.string().describe("Current status of the campaign (e.g., 'draft', 'sent', 'scheduled').").nullable().optional(),
|
|
9
9
|
sent_at: z.string().describe("Timestamp when the campaign was sent, if applicable.").nullable().optional(),
|
|
@@ -13,7 +13,7 @@ const SendfoxGetCampaigns_CampaignSchema = z.object({
|
|
|
13
13
|
html_content: z.string().describe("HTML content of the campaign email body.").nullable().optional(),
|
|
14
14
|
scheduled_at: z.string().describe("Timestamp when the campaign is scheduled to be sent, if applicable.").nullable().optional(),
|
|
15
15
|
plain_content: z.string().describe("Plain-text content of the campaign email body.").nullable().optional()
|
|
16
|
-
}).describe("Schema for an individual campaign item.");
|
|
16
|
+
}).passthrough().describe("Schema for an individual campaign item.");
|
|
17
17
|
const sendfoxGetCampaigns = action("SENDFOX_GET_CAMPAIGNS", {
|
|
18
18
|
slug: "sendfox-get-campaigns",
|
|
19
19
|
name: "Get Campaigns",
|
|
@@ -25,7 +25,7 @@ const sendfoxGetCampaigns = action("SENDFOX_GET_CAMPAIGNS", {
|
|
|
25
25
|
per_page: z.number().int().describe("Number of campaigns per page.").nullable().optional(),
|
|
26
26
|
last_page: z.number().int().describe("Last page number in the paginated results.").nullable().optional(),
|
|
27
27
|
current_page: z.number().int().describe("Current page number in the paginated results.").nullable().optional()
|
|
28
|
-
}).describe("Response schema for a paginated list of campaigns.")
|
|
28
|
+
}).passthrough().describe("Response schema for a paginated list of campaigns.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { sendfoxGetCampaigns };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaigns.mjs","names":[],"sources":["../../src/actions/get-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetCampaignsInput
|
|
1
|
+
{"version":3,"file":"get-campaigns.mjs","names":[],"sources":["../../src/actions/get-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number of the results to fetch (starts at 1). Defaults to 1 if not provided.\").optional(),\n}).describe(\"Request parameters for retrieving paginated campaigns.\");\nconst SendfoxGetCampaigns_CampaignSchema = z.object({\n id: z.number().int().describe(\"Unique campaign ID.\").nullable(),\n lists: z.array(z.unknown()).describe(\"Lists attached to this campaign (array of list objects with id and name).\").nullable().optional(),\n status: z.string().describe(\"Current status of the campaign (e.g., 'draft', 'sent', 'scheduled').\").nullable().optional(),\n sent_at: z.string().describe(\"Timestamp when the campaign was sent, if applicable.\").nullable().optional(),\n subject: z.string().describe(\"Subject line of the campaign email.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the campaign was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the campaign was last updated.\").nullable().optional(),\n html_content: z.string().describe(\"HTML content of the campaign email body.\").nullable().optional(),\n scheduled_at: z.string().describe(\"Timestamp when the campaign is scheduled to be sent, if applicable.\").nullable().optional(),\n plain_content: z.string().describe(\"Plain-text content of the campaign email body.\").nullable().optional(),\n}).passthrough().describe(\"Schema for an individual campaign item.\");\nexport const SendfoxGetCampaignsOutput = z.object({\n data: z.array(SendfoxGetCampaigns_CampaignSchema).describe(\"List of campaigns returned by the API.\"),\n total: z.number().int().describe(\"Total number of campaigns across all pages.\").nullable().optional(),\n per_page: z.number().int().describe(\"Number of campaigns per page.\").nullable().optional(),\n last_page: z.number().int().describe(\"Last page number in the paginated results.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number in the paginated results.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a paginated list of campaigns.\");\n\nexport const sendfoxGetCampaigns = action(\"SENDFOX_GET_CAMPAIGNS\", {\n slug: \"sendfox-get-campaigns\",\n name: \"Get Campaigns\",\n description: \"Retrieve a paginated list of email campaigns from SendFox. Use this to fetch all campaigns or navigate through pages of results. Returns campaign details including status, subject, content, and timestamps.\",\n input: SendfoxGetCampaignsInput,\n output: SendfoxGetCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EAChI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AASnE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,wCAAwC;EACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-contact-by-id.ts
|
|
4
4
|
const SendfoxGetContactByIdInput = zod.z.object({ contact_id: zod.z.number().int().describe("Unique identifier of the contact to retrieve.") }).describe("Request model for retrieving a contact by its ID.");
|
|
5
5
|
const SendfoxGetContactByIdOutput = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("Unique numeric identifier of the contact."),
|
|
7
|
-
email: zod.z.string().describe("Email address of the contact."),
|
|
6
|
+
id: zod.z.number().int().describe("Unique numeric identifier of the contact.").nullable(),
|
|
7
|
+
email: zod.z.string().describe("Email address of the contact.").nullable(),
|
|
8
8
|
lists: zod.z.array(zod.z.unknown()).describe("List of mailing list IDs or names the contact is subscribed to.").nullable().optional(),
|
|
9
9
|
status: zod.z.string().describe("Current subscription status (e.g., 'subscribed', 'unsubscribed').").nullable().optional(),
|
|
10
10
|
confirmed: zod.z.boolean().describe("Whether the contact has confirmed their email subscription.").nullable().optional(),
|
|
@@ -12,7 +12,7 @@ const SendfoxGetContactByIdOutput = zod.z.object({
|
|
|
12
12
|
created_at: zod.z.string().describe("Timestamp when the contact was created (ISO 8601 format).").nullable().optional(),
|
|
13
13
|
first_name: zod.z.string().describe("First name of the contact, if provided.").nullable().optional(),
|
|
14
14
|
unsubscribed: zod.z.boolean().describe("Whether the contact has unsubscribed.").nullable().optional()
|
|
15
|
-
}).describe("Response model for a contact retrieved by ID.");
|
|
15
|
+
}).passthrough().describe("Response model for a contact retrieved by ID.");
|
|
16
16
|
const sendfoxGetContactById = require_action.action("SENDFOX_GET_CONTACT_BY_ID", {
|
|
17
17
|
slug: "sendfox-get-contact-by-id",
|
|
18
18
|
name: "Get Contact by ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactByIdInput
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactByIdInput = z.object({\n contact_id: z.number().int().describe(\"Unique identifier of the contact to retrieve.\"),\n}).describe(\"Request model for retrieving a contact by its ID.\");\nexport const SendfoxGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Unique numeric identifier of the contact.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable(),\n lists: z.array(z.unknown()).describe(\"List of mailing list IDs or names the contact is subscribed to.\").nullable().optional(),\n status: z.string().describe(\"Current subscription status (e.g., 'subscribed', 'unsubscribed').\").nullable().optional(),\n confirmed: z.boolean().describe(\"Whether the contact has confirmed their email subscription.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact, if provided.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the contact was created (ISO 8601 format).\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact, if provided.\").nullable().optional(),\n unsubscribed: z.boolean().describe(\"Whether the contact has unsubscribed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a contact retrieved by ID.\");\n\nexport const sendfoxGetContactById = action(\"SENDFOX_GET_CONTACT_BY_ID\", {\n slug: \"sendfox-get-contact-by-id\",\n name: \"Get Contact by ID\",\n description: \"Retrieves a contact's details by their unique ID from SendFox. Use this tool when you need to look up a specific contact's information after obtaining their ID from a contact list or other API response. Returns contact details including email, name, subscription status, and list memberships.\",\n input: SendfoxGetContactByIdInput,\n output: SendfoxGetContactByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACvF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contact-by-id.d.ts
|
|
4
|
-
declare const SendfoxGetContactByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendfoxGetContactByIdInput: z.ZodObject<{
|
|
5
|
+
contact_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SendfoxGetContactByIdOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
email: z.ZodNullable<z.ZodString>;
|
|
10
|
+
lists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
11
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
confirmed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
unsubscribed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const sendfoxGetContactById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
contact_id: number;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { sendfoxGetContactById };
|
|
9
23
|
//# sourceMappingURL=get-contact-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contact-by-id.d.ts
|
|
4
|
-
declare const SendfoxGetContactByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendfoxGetContactByIdInput: z.ZodObject<{
|
|
5
|
+
contact_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SendfoxGetContactByIdOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
email: z.ZodNullable<z.ZodString>;
|
|
10
|
+
lists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
11
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
confirmed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
unsubscribed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const sendfoxGetContactById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
contact_id: number;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { sendfoxGetContactById };
|
|
9
23
|
//# sourceMappingURL=get-contact-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -6,8 +6,8 @@ const sendfoxGetContactById = action("SENDFOX_GET_CONTACT_BY_ID", {
|
|
|
6
6
|
description: "Retrieves a contact's details by their unique ID from SendFox. Use this tool when you need to look up a specific contact's information after obtaining their ID from a contact list or other API response. Returns contact details including email, name, subscription status, and list memberships.",
|
|
7
7
|
input: z.object({ contact_id: z.number().int().describe("Unique identifier of the contact to retrieve.") }).describe("Request model for retrieving a contact by its ID."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
id: z.number().int().describe("Unique numeric identifier of the contact."),
|
|
10
|
-
email: z.string().describe("Email address of the contact."),
|
|
9
|
+
id: z.number().int().describe("Unique numeric identifier of the contact.").nullable(),
|
|
10
|
+
email: z.string().describe("Email address of the contact.").nullable(),
|
|
11
11
|
lists: z.array(z.unknown()).describe("List of mailing list IDs or names the contact is subscribed to.").nullable().optional(),
|
|
12
12
|
status: z.string().describe("Current subscription status (e.g., 'subscribed', 'unsubscribed').").nullable().optional(),
|
|
13
13
|
confirmed: z.boolean().describe("Whether the contact has confirmed their email subscription.").nullable().optional(),
|
|
@@ -15,7 +15,7 @@ const sendfoxGetContactById = action("SENDFOX_GET_CONTACT_BY_ID", {
|
|
|
15
15
|
created_at: z.string().describe("Timestamp when the contact was created (ISO 8601 format).").nullable().optional(),
|
|
16
16
|
first_name: z.string().describe("First name of the contact, if provided.").nullable().optional(),
|
|
17
17
|
unsubscribed: z.boolean().describe("Whether the contact has unsubscribed.").nullable().optional()
|
|
18
|
-
}).describe("Response model for a contact retrieved by ID.")
|
|
18
|
+
}).passthrough().describe("Response model for a contact retrieved by ID.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { sendfoxGetContactById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactByIdInput
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactByIdInput = z.object({\n contact_id: z.number().int().describe(\"Unique identifier of the contact to retrieve.\"),\n}).describe(\"Request model for retrieving a contact by its ID.\");\nexport const SendfoxGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Unique numeric identifier of the contact.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable(),\n lists: z.array(z.unknown()).describe(\"List of mailing list IDs or names the contact is subscribed to.\").nullable().optional(),\n status: z.string().describe(\"Current subscription status (e.g., 'subscribed', 'unsubscribed').\").nullable().optional(),\n confirmed: z.boolean().describe(\"Whether the contact has confirmed their email subscription.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact, if provided.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the contact was created (ISO 8601 format).\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact, if provided.\").nullable().optional(),\n unsubscribed: z.boolean().describe(\"Whether the contact has unsubscribed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a contact retrieved by ID.\");\n\nexport const sendfoxGetContactById = action(\"SENDFOX_GET_CONTACT_BY_ID\", {\n slug: \"sendfox-get-contact-by-id\",\n name: \"Get Contact by ID\",\n description: \"Retrieves a contact's details by their unique ID from SendFox. Use this tool when you need to look up a specific contact's information after obtaining their ID from a contact list or other API response. Returns contact details including email, name, subscription status, and list memberships.\",\n input: SendfoxGetContactByIdInput,\n output: SendfoxGetContactByIdOutput,\n});\n"],"mappings":";;AAmBA,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBwC,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACvF,CAAC,CAAC,CAAC,SAAS,mDAiBH;CACP,QAjByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -3,11 +3,11 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-contact-fields.ts
|
|
4
4
|
const SendfoxGetContactFieldsInput = zod.z.object({}).describe("Request schema for retrieving contact fields. No parameters required.");
|
|
5
5
|
const SendfoxGetContactFields_ContactFieldSchema = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("Unique identifier for the contact field"),
|
|
7
|
-
name: zod.z.string().describe("Name of the contact field (e.g., 'birthday', 'company')"),
|
|
8
|
-
type: zod.z.string().describe("Data type of the field (e.g., 'text', 'date', 'number')")
|
|
9
|
-
}).describe("Represents a contact field in SendFox.");
|
|
10
|
-
const SendfoxGetContactFieldsOutput = zod.z.object({ fields: zod.z.array(SendfoxGetContactFields_ContactFieldSchema).describe("List of contact fields configured in the SendFox account. May be empty if no custom fields exist.").nullable().optional() }).describe("Response schema containing list of contact fields.");
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier for the contact field").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the contact field (e.g., 'birthday', 'company')").nullable(),
|
|
8
|
+
type: zod.z.string().describe("Data type of the field (e.g., 'text', 'date', 'number')").nullable()
|
|
9
|
+
}).passthrough().describe("Represents a contact field in SendFox.");
|
|
10
|
+
const SendfoxGetContactFieldsOutput = zod.z.object({ fields: zod.z.array(SendfoxGetContactFields_ContactFieldSchema).describe("List of contact fields configured in the SendFox account. May be empty if no custom fields exist.").nullable().optional() }).passthrough().describe("Response schema containing list of contact fields.");
|
|
11
11
|
const sendfoxGetContactFields = require_action.action("SENDFOX_GET_CONTACT_FIELDS", {
|
|
12
12
|
slug: "sendfox-get-contact-fields",
|
|
13
13
|
name: "Get Contact Fields",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactFieldsInput
|
|
1
|
+
{"version":3,"file":"get-contact-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactFieldsInput = z.object({}).describe(\"Request schema for retrieving contact fields. No parameters required.\");\nconst SendfoxGetContactFields_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact field\").nullable(),\n name: z.string().describe(\"Name of the contact field (e.g., 'birthday', 'company')\").nullable(),\n type: z.string().describe(\"Data type of the field (e.g., 'text', 'date', 'number')\").nullable(),\n}).passthrough().describe(\"Represents a contact field in SendFox.\");\nexport const SendfoxGetContactFieldsOutput = z.object({\n fields: z.array(SendfoxGetContactFields_ContactFieldSchema).describe(\"List of contact fields configured in the SendFox account. May be empty if no custom fields exist.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing list of contact fields.\");\n\nexport const sendfoxGetContactFields = action(\"SENDFOX_GET_CONTACT_FIELDS\", {\n slug: \"sendfox-get-contact-fields\",\n name: \"Get Contact Fields\",\n description: \"Retrieves all contact fields available in the SendFox account. Use this to discover available fields before creating or updating contacts. Returns standard fields (email, first_name, last_name) and any custom fields configured in the account.\",\n input: SendfoxGetContactFieldsInput,\n output: SendfoxGetContactFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACzI,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contact-fields.d.ts
|
|
4
|
-
declare const SendfoxGetContactFieldsInput: z.
|
|
5
|
-
declare const SendfoxGetContactFieldsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SendfoxGetContactFieldsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SendfoxGetContactFieldsOutput: z.ZodObject<{
|
|
6
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const sendfoxGetContactFields: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { sendfoxGetContactFields };
|
|
9
15
|
//# sourceMappingURL=get-contact-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-fields.d.cts","names":[],"sources":["../../src/actions/get-contact-fields.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-contact-fields.d.cts","names":[],"sources":["../../src/actions/get-contact-fields.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contact-fields.d.ts
|
|
4
|
-
declare const SendfoxGetContactFieldsInput: z.
|
|
5
|
-
declare const SendfoxGetContactFieldsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SendfoxGetContactFieldsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SendfoxGetContactFieldsOutput: z.ZodObject<{
|
|
6
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const sendfoxGetContactFields: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { sendfoxGetContactFields };
|
|
9
15
|
//# sourceMappingURL=get-contact-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-fields.d.mts","names":[],"sources":["../../src/actions/get-contact-fields.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-contact-fields.d.mts","names":[],"sources":["../../src/actions/get-contact-fields.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,16 +3,16 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-contact-fields.ts
|
|
4
4
|
const SendfoxGetContactFieldsInput = z.object({}).describe("Request schema for retrieving contact fields. No parameters required.");
|
|
5
5
|
const SendfoxGetContactFields_ContactFieldSchema = z.object({
|
|
6
|
-
id: z.number().int().describe("Unique identifier for the contact field"),
|
|
7
|
-
name: z.string().describe("Name of the contact field (e.g., 'birthday', 'company')"),
|
|
8
|
-
type: z.string().describe("Data type of the field (e.g., 'text', 'date', 'number')")
|
|
9
|
-
}).describe("Represents a contact field in SendFox.");
|
|
6
|
+
id: z.number().int().describe("Unique identifier for the contact field").nullable(),
|
|
7
|
+
name: z.string().describe("Name of the contact field (e.g., 'birthday', 'company')").nullable(),
|
|
8
|
+
type: z.string().describe("Data type of the field (e.g., 'text', 'date', 'number')").nullable()
|
|
9
|
+
}).passthrough().describe("Represents a contact field in SendFox.");
|
|
10
10
|
const sendfoxGetContactFields = action("SENDFOX_GET_CONTACT_FIELDS", {
|
|
11
11
|
slug: "sendfox-get-contact-fields",
|
|
12
12
|
name: "Get Contact Fields",
|
|
13
13
|
description: "Retrieves all contact fields available in the SendFox account. Use this to discover available fields before creating or updating contacts. Returns standard fields (email, first_name, last_name) and any custom fields configured in the account.",
|
|
14
14
|
input: SendfoxGetContactFieldsInput,
|
|
15
|
-
output: z.object({ fields: z.array(SendfoxGetContactFields_ContactFieldSchema).describe("List of contact fields configured in the SendFox account. May be empty if no custom fields exist.").nullable().optional() }).describe("Response schema containing list of contact fields.")
|
|
15
|
+
output: z.object({ fields: z.array(SendfoxGetContactFields_ContactFieldSchema).describe("List of contact fields configured in the SendFox account. May be empty if no custom fields exist.").nullable().optional() }).passthrough().describe("Response schema containing list of contact fields.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { sendfoxGetContactFields };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-fields.mjs","names":[],"sources":["../../src/actions/get-contact-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactFieldsInput
|
|
1
|
+
{"version":3,"file":"get-contact-fields.mjs","names":[],"sources":["../../src/actions/get-contact-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactFieldsInput = z.object({}).describe(\"Request schema for retrieving contact fields. No parameters required.\");\nconst SendfoxGetContactFields_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact field\").nullable(),\n name: z.string().describe(\"Name of the contact field (e.g., 'birthday', 'company')\").nullable(),\n type: z.string().describe(\"Data type of the field (e.g., 'text', 'date', 'number')\").nullable(),\n}).passthrough().describe(\"Represents a contact field in SendFox.\");\nexport const SendfoxGetContactFieldsOutput = z.object({\n fields: z.array(SendfoxGetContactFields_ContactFieldSchema).describe(\"List of contact fields configured in the SendFox account. May be empty if no custom fields exist.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing list of contact fields.\");\n\nexport const sendfoxGetContactFields = action(\"SENDFOX_GET_CONTACT_FIELDS\", {\n slug: \"sendfox-get-contact-fields\",\n name: \"Get Contact Fields\",\n description: \"Retrieves all contact fields available in the SendFox account. Use this to discover available fields before creating or updating contacts. Returns standard fields (email, first_name, last_name) and any custom fields configured in the account.\",\n input: SendfoxGetContactFieldsInput,\n output: SendfoxGetContactFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACzI,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAKlE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -6,21 +6,21 @@ const SendfoxGetContactsInListInput = zod.z.object({
|
|
|
6
6
|
list_id: zod.z.number().int().describe("Unique identifier of the list to retrieve contacts from.")
|
|
7
7
|
}).describe("Request schema for retrieving contacts in a specific list.");
|
|
8
8
|
const SendfoxGetContactsInList_ContactSchema = 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."),
|
|
9
|
+
id: zod.z.number().int().describe("Unique identifier for the contact.").nullable(),
|
|
10
|
+
email: zod.z.string().describe("Email address of the contact.").nullable(),
|
|
11
11
|
last_name: zod.z.string().describe("Last name of the contact.").nullable().optional(),
|
|
12
12
|
created_at: zod.z.string().describe("Timestamp when the contact was created (ISO8601).").nullable().optional(),
|
|
13
13
|
first_name: zod.z.string().describe("First name of the contact.").nullable().optional(),
|
|
14
14
|
ip_address: zod.z.string().describe("IP address from which the contact subscribed.").nullable().optional(),
|
|
15
15
|
updated_at: zod.z.string().describe("Timestamp when the contact was last updated (ISO8601).").nullable().optional(),
|
|
16
16
|
unsubscribed_at: zod.z.string().describe("Timestamp when the contact unsubscribed (ISO8601), null if still subscribed.").nullable().optional()
|
|
17
|
-
}).describe("Schema representing a Sendfox contact.");
|
|
17
|
+
}).passthrough().describe("Schema representing a Sendfox contact.");
|
|
18
18
|
const SendfoxGetContactsInListOutput = zod.z.object({
|
|
19
19
|
data: zod.z.array(SendfoxGetContactsInList_ContactSchema).describe("List of contacts in the specified list."),
|
|
20
|
-
total: zod.z.number().int().describe("Total number of contacts in the list."),
|
|
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 paginated list of contacts in a specific list.");
|
|
20
|
+
total: zod.z.number().int().describe("Total number of contacts in the list.").nullable(),
|
|
21
|
+
per_page: zod.z.number().int().describe("Number of contacts returned per page.").nullable(),
|
|
22
|
+
current_page: zod.z.number().int().describe("Current page number in the pagination.").nullable()
|
|
23
|
+
}).passthrough().describe("Response schema for paginated list of contacts in a specific list.");
|
|
24
24
|
const sendfoxGetContactsInList = require_action.action("SENDFOX_GET_CONTACTS_IN_LIST", {
|
|
25
25
|
slug: "sendfox-get-contacts-in-list",
|
|
26
26
|
name: "Get Contacts in List",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts-in-list.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts-in-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactsInListInput
|
|
1
|
+
{"version":3,"file":"get-contacts-in-list.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts-in-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactsInListInput = z.object({\n query: z.string().describe(\"Search query for filtering contacts by name or email.\").optional(),\n list_id: z.number().int().describe(\"Unique identifier of the list to retrieve contacts from.\"),\n}).describe(\"Request schema for retrieving contacts in a specific list.\");\nconst SendfoxGetContactsInList_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable(),\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), null if still subscribed.\").nullable().optional(),\n}).passthrough().describe(\"Schema representing a Sendfox contact.\");\nexport const SendfoxGetContactsInListOutput = z.object({\n data: z.array(SendfoxGetContactsInList_ContactSchema).describe(\"List of contacts in the specified list.\"),\n total: z.number().int().describe(\"Total number of contacts in the list.\").nullable(),\n per_page: z.number().int().describe(\"Number of contacts returned per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number in the pagination.\").nullable(),\n}).passthrough().describe(\"Response schema for paginated list of contacts in a specific list.\");\n\nexport const sendfoxGetContactsInList = action(\"SENDFOX_GET_CONTACTS_IN_LIST\", {\n slug: \"sendfox-get-contacts-in-list\",\n name: \"Get Contacts in List\",\n description: \"Tool to retrieve contacts in a specific list. Use when you need to fetch all contacts belonging to a particular list, optionally filtering by search query.\",\n input: SendfoxGetContactsInListInput,\n output: SendfoxGetContactsInListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;AAC/F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,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,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAE9F,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contacts-in-list.d.ts
|
|
4
|
-
declare const SendfoxGetContactsInListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendfoxGetContactsInListInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodOptional<z.ZodString>;
|
|
6
|
+
list_id: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SendfoxGetContactsInListOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
email: z.ZodNullable<z.ZodString>;
|
|
12
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
unsubscribed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const sendfoxGetContactsInList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
list_id: number;
|
|
25
|
+
query?: string | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { sendfoxGetContactsInList };
|
|
9
29
|
//# sourceMappingURL=get-contacts-in-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts-in-list.d.cts","names":[],"sources":["../../src/actions/get-contacts-in-list.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-contacts-in-list.d.cts","names":[],"sources":["../../src/actions/get-contacts-in-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-contacts-in-list.d.ts
|
|
4
|
-
declare const SendfoxGetContactsInListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendfoxGetContactsInListInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodOptional<z.ZodString>;
|
|
6
|
+
list_id: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SendfoxGetContactsInListOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
email: z.ZodNullable<z.ZodString>;
|
|
12
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
unsubscribed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const sendfoxGetContactsInList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
list_id: number;
|
|
25
|
+
query?: string | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { sendfoxGetContactsInList };
|
|
9
29
|
//# sourceMappingURL=get-contacts-in-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts-in-list.d.mts","names":[],"sources":["../../src/actions/get-contacts-in-list.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-contacts-in-list.d.mts","names":[],"sources":["../../src/actions/get-contacts-in-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -6,15 +6,15 @@ const SendfoxGetContactsInListInput = z.object({
|
|
|
6
6
|
list_id: z.number().int().describe("Unique identifier of the list to retrieve contacts from.")
|
|
7
7
|
}).describe("Request schema for retrieving contacts in a specific list.");
|
|
8
8
|
const SendfoxGetContactsInList_ContactSchema = z.object({
|
|
9
|
-
id: z.number().int().describe("Unique identifier for the contact."),
|
|
10
|
-
email: z.string().describe("Email address of the contact."),
|
|
9
|
+
id: z.number().int().describe("Unique identifier for the contact.").nullable(),
|
|
10
|
+
email: z.string().describe("Email address of the contact.").nullable(),
|
|
11
11
|
last_name: z.string().describe("Last name of the contact.").nullable().optional(),
|
|
12
12
|
created_at: z.string().describe("Timestamp when the contact was created (ISO8601).").nullable().optional(),
|
|
13
13
|
first_name: z.string().describe("First name of the contact.").nullable().optional(),
|
|
14
14
|
ip_address: z.string().describe("IP address from which the contact subscribed.").nullable().optional(),
|
|
15
15
|
updated_at: z.string().describe("Timestamp when the contact was last updated (ISO8601).").nullable().optional(),
|
|
16
16
|
unsubscribed_at: z.string().describe("Timestamp when the contact unsubscribed (ISO8601), null if still subscribed.").nullable().optional()
|
|
17
|
-
}).describe("Schema representing a Sendfox contact.");
|
|
17
|
+
}).passthrough().describe("Schema representing a Sendfox contact.");
|
|
18
18
|
const sendfoxGetContactsInList = action("SENDFOX_GET_CONTACTS_IN_LIST", {
|
|
19
19
|
slug: "sendfox-get-contacts-in-list",
|
|
20
20
|
name: "Get Contacts in List",
|
|
@@ -22,10 +22,10 @@ const sendfoxGetContactsInList = action("SENDFOX_GET_CONTACTS_IN_LIST", {
|
|
|
22
22
|
input: SendfoxGetContactsInListInput,
|
|
23
23
|
output: z.object({
|
|
24
24
|
data: z.array(SendfoxGetContactsInList_ContactSchema).describe("List of contacts in the specified list."),
|
|
25
|
-
total: z.number().int().describe("Total number of contacts in the list."),
|
|
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 paginated list of contacts in a specific list.")
|
|
25
|
+
total: z.number().int().describe("Total number of contacts in the list.").nullable(),
|
|
26
|
+
per_page: z.number().int().describe("Number of contacts returned per page.").nullable(),
|
|
27
|
+
current_page: z.number().int().describe("Current page number in the pagination.").nullable()
|
|
28
|
+
}).passthrough().describe("Response schema for paginated list of contacts in a specific list.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { sendfoxGetContactsInList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts-in-list.mjs","names":[],"sources":["../../src/actions/get-contacts-in-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactsInListInput
|
|
1
|
+
{"version":3,"file":"get-contacts-in-list.mjs","names":[],"sources":["../../src/actions/get-contacts-in-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactsInListInput = z.object({\n query: z.string().describe(\"Search query for filtering contacts by name or email.\").optional(),\n list_id: z.number().int().describe(\"Unique identifier of the list to retrieve contacts from.\"),\n}).describe(\"Request schema for retrieving contacts in a specific list.\");\nconst SendfoxGetContactsInList_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable(),\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), null if still subscribed.\").nullable().optional(),\n}).passthrough().describe(\"Schema representing a Sendfox contact.\");\nexport const SendfoxGetContactsInListOutput = z.object({\n data: z.array(SendfoxGetContactsInList_ContactSchema).describe(\"List of contacts in the specified list.\"),\n total: z.number().int().describe(\"Total number of contacts in the list.\").nullable(),\n per_page: z.number().int().describe(\"Number of contacts returned per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number in the pagination.\").nullable(),\n}).passthrough().describe(\"Response schema for paginated list of contacts in a specific list.\");\n\nexport const sendfoxGetContactsInList = action(\"SENDFOX_GET_CONTACTS_IN_LIST\", {\n slug: \"sendfox-get-contacts-in-list\",\n name: \"Get Contacts in List\",\n description: \"Tool to retrieve contacts in a specific list. Use when you need to fetch all contacts belonging to a particular list, optionally filtering by search query.\",\n input: SendfoxGetContactsInListInput,\n output: SendfoxGetContactsInListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;AAC/F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,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,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ4C,EAAE,OAAO;EACrD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,yCAAyC;EACxG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACtF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAOhB;AACV,CAAC"}
|
|
@@ -6,21 +6,21 @@ const SendfoxGetContactsInput = zod.z.object({
|
|
|
6
6
|
email: zod.z.string().describe("Filter contacts by exact email address to find a specific contact.").optional()
|
|
7
7
|
}).describe("Request parameters for retrieving a paginated list of contacts.");
|
|
8
8
|
const SendfoxGetContacts_ContactSchema = 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."),
|
|
9
|
+
id: zod.z.number().int().describe("Unique identifier for the contact.").nullable(),
|
|
10
|
+
email: zod.z.string().describe("Email address of the contact.").nullable(),
|
|
11
11
|
last_name: zod.z.string().describe("Last name of the contact.").nullable().optional(),
|
|
12
12
|
created_at: zod.z.string().describe("Timestamp when the contact was created (ISO8601).").nullable().optional(),
|
|
13
13
|
first_name: zod.z.string().describe("First name of the contact.").nullable().optional(),
|
|
14
14
|
ip_address: zod.z.string().describe("IP address from which the contact subscribed.").nullable().optional(),
|
|
15
15
|
updated_at: zod.z.string().describe("Timestamp when the contact was last updated (ISO8601).").nullable().optional(),
|
|
16
16
|
unsubscribed_at: zod.z.string().describe("Timestamp when the contact unsubscribed (ISO8601), null if still subscribed.").nullable().optional()
|
|
17
|
-
}).describe("Schema representing a Sendfox contact.");
|
|
17
|
+
}).passthrough().describe("Schema representing a Sendfox contact.");
|
|
18
18
|
const SendfoxGetContactsOutput = zod.z.object({
|
|
19
19
|
data: zod.z.array(SendfoxGetContacts_ContactSchema).describe("List of contacts returned by the API."),
|
|
20
|
-
total: zod.z.number().int().describe("Total number of 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 contacts.");
|
|
20
|
+
total: zod.z.number().int().describe("Total number of contacts available.").nullable(),
|
|
21
|
+
per_page: zod.z.number().int().describe("Number of contacts returned per page.").nullable(),
|
|
22
|
+
current_page: zod.z.number().int().describe("Current page number in the pagination.").nullable()
|
|
23
|
+
}).passthrough().describe("Response schema for a paginated list of contacts.");
|
|
24
24
|
const sendfoxGetContacts = require_action.action("SENDFOX_GET_CONTACTS", {
|
|
25
25
|
slug: "sendfox-get-contacts",
|
|
26
26
|
name: "Get Contacts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactsInput
|
|
1
|
+
{"version":3,"file":"get-contacts.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendfoxGetContactsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1).\").optional(),\n email: z.string().describe(\"Filter contacts by exact email address to find a specific contact.\").optional(),\n}).describe(\"Request parameters for retrieving a paginated list of contacts.\");\nconst SendfoxGetContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the contact.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable(),\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), null if still subscribed.\").nullable().optional(),\n}).passthrough().describe(\"Schema representing a Sendfox contact.\");\nexport const SendfoxGetContactsOutput = z.object({\n data: z.array(SendfoxGetContacts_ContactSchema).describe(\"List of contacts returned by the API.\"),\n total: z.number().int().describe(\"Total number of contacts available.\").nullable(),\n per_page: z.number().int().describe(\"Number of contacts returned per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number in the pagination.\").nullable(),\n}).passthrough().describe(\"Response schema for a paginated list of contacts.\");\n\nexport const sendfoxGetContacts = action(\"SENDFOX_GET_CONTACTS\", {\n slug: \"sendfox-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a paginated list of contacts. Use when you need to fetch contacts in pages, optionally filtering by email.\",\n input: SendfoxGetContactsInput,\n output: SendfoxGetContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,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,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uCAAuC;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|