@keystrokehq/sender 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-field.cjs +1 -0
- package/dist/actions/create-field.cjs.map +1 -1
- package/dist/actions/create-field.d.cts +3 -16
- package/dist/actions/create-field.d.cts.map +1 -1
- package/dist/actions/create-field.d.mts +3 -16
- package/dist/actions/create-field.d.mts.map +1 -1
- package/dist/actions/create-field.mjs +1 -0
- package/dist/actions/create-field.mjs.map +1 -1
- package/dist/actions/create-or-update-subscriber.cjs +1 -0
- package/dist/actions/create-or-update-subscriber.cjs.map +1 -1
- package/dist/actions/create-or-update-subscriber.d.cts +3 -21
- package/dist/actions/create-or-update-subscriber.d.cts.map +1 -1
- package/dist/actions/create-or-update-subscriber.d.mts +3 -21
- package/dist/actions/create-or-update-subscriber.d.mts.map +1 -1
- package/dist/actions/create-or-update-subscriber.mjs +1 -0
- package/dist/actions/create-or-update-subscriber.mjs.map +1 -1
- package/dist/actions/get-all-fields.cjs +1 -0
- package/dist/actions/get-all-fields.cjs.map +1 -1
- package/dist/actions/get-all-fields.d.cts +3 -13
- package/dist/actions/get-all-fields.d.cts.map +1 -1
- package/dist/actions/get-all-fields.d.mts +3 -13
- package/dist/actions/get-all-fields.d.mts.map +1 -1
- package/dist/actions/get-all-fields.mjs +1 -0
- package/dist/actions/get-all-fields.mjs.map +1 -1
- package/dist/actions/get-all-workflows.cjs +1 -0
- package/dist/actions/get-all-workflows.cjs.map +1 -1
- package/dist/actions/get-all-workflows.d.cts +3 -13
- package/dist/actions/get-all-workflows.d.cts.map +1 -1
- package/dist/actions/get-all-workflows.d.mts +3 -13
- package/dist/actions/get-all-workflows.d.mts.map +1 -1
- package/dist/actions/get-all-workflows.mjs +1 -0
- package/dist/actions/get-all-workflows.mjs.map +1 -1
- package/dist/actions/get-campaign-by-id.cjs +1 -0
- package/dist/actions/get-campaign-by-id.cjs.map +1 -1
- package/dist/actions/get-campaign-by-id.d.cts +3 -15
- package/dist/actions/get-campaign-by-id.d.cts.map +1 -1
- package/dist/actions/get-campaign-by-id.d.mts +3 -15
- package/dist/actions/get-campaign-by-id.d.mts.map +1 -1
- package/dist/actions/get-campaign-by-id.mjs +1 -0
- package/dist/actions/get-campaign-by-id.mjs.map +1 -1
- package/dist/actions/get-group-by-id.cjs +1 -0
- package/dist/actions/get-group-by-id.cjs.map +1 -1
- package/dist/actions/get-group-by-id.d.cts +3 -15
- package/dist/actions/get-group-by-id.d.cts.map +1 -1
- package/dist/actions/get-group-by-id.d.mts +3 -15
- package/dist/actions/get-group-by-id.d.mts.map +1 -1
- package/dist/actions/get-group-by-id.mjs +1 -0
- package/dist/actions/get-group-by-id.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-id.cjs +1 -0
- package/dist/actions/get-subscriber-by-id.cjs.map +1 -1
- package/dist/actions/get-subscriber-by-id.d.cts +3 -15
- package/dist/actions/get-subscriber-by-id.d.cts.map +1 -1
- package/dist/actions/get-subscriber-by-id.d.mts +3 -15
- package/dist/actions/get-subscriber-by-id.d.mts.map +1 -1
- package/dist/actions/get-subscriber-by-id.mjs +1 -0
- package/dist/actions/get-subscriber-by-id.mjs.map +1 -1
- package/dist/actions/update-subscriber-fields.cjs +1 -0
- package/dist/actions/update-subscriber-fields.cjs.map +1 -1
- package/dist/actions/update-subscriber-fields.d.cts +3 -19
- package/dist/actions/update-subscriber-fields.d.cts.map +1 -1
- package/dist/actions/update-subscriber-fields.d.mts +3 -19
- package/dist/actions/update-subscriber-fields.d.mts.map +1 -1
- package/dist/actions/update-subscriber-fields.mjs +1 -0
- package/dist/actions/update-subscriber-fields.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-campaign-by-id.d.ts
|
|
@@ -22,21 +24,7 @@ declare const SenderGetCampaignByIdOutput: z.ZodObject<{
|
|
|
22
24
|
total_emails_sent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
25
|
total_emails_delivered: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const senderGetCampaignById:
|
|
26
|
-
campaign_id: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
27
|
+
declare const senderGetCampaignById: AppAction<typeof SenderGetCampaignByIdInput, typeof SenderGetCampaignByIdOutput, typeof sender.credential>;
|
|
40
28
|
//#endregion
|
|
41
29
|
export { senderGetCampaignById };
|
|
42
30
|
//# sourceMappingURL=get-campaign-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-by-id.d.mts","names":[],"sources":["../../src/actions/get-campaign-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-campaign-by-id.d.mts","names":[],"sources":["../../src/actions/get-campaign-by-id.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-by-id.mjs","names":[],"sources":["../../src/actions/get-campaign-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetCampaignByIdInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve. Example: '1'\"),\n}).describe(\"Request model for retrieving a specific campaign by ID.\");\nexport const SenderGetCampaignByIdOutput = z.object({\n opened: z.number().int().describe(\"Total number of opens.\").nullable().optional(),\n status: z.string().describe(\"Campaign status (draft, scheduled, sent, etc.).\").nullable().optional(),\n clicked: z.number().int().describe(\"Total number of clicks.\").nullable().optional(),\n sent_at: z.string().describe(\"Timestamp when campaign was sent.\").nullable().optional(),\n subject: z.string().describe(\"Email subject line.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when campaign was created.\").nullable().optional(),\n campaign_id: z.string().describe(\"Unique identifier for the campaign.\").nullable().optional(),\n hard_bounced: z.number().int().describe(\"Number of permanent delivery failures.\").nullable().optional(),\n soft_bounced: z.number().int().describe(\"Number of temporary delivery failures.\").nullable().optional(),\n unique_opens: z.number().int().describe(\"Number of unique recipients who opened.\").nullable().optional(),\n unsubscribed: z.number().int().describe(\"Number of unsubscribe events.\").nullable().optional(),\n campaign_name: z.string().describe(\"Name of the campaign.\").nullable().optional(),\n unique_clicks: z.number().int().describe(\"Number of unique recipients who clicked.\").nullable().optional(),\n spam_complaints: z.number().int().describe(\"Number of spam reports.\").nullable().optional(),\n total_emails_sent: z.number().int().describe(\"Total number of emails sent.\").nullable().optional(),\n total_emails_delivered: z.number().int().describe(\"Number of successfully delivered emails.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a campaign retrieved from Sender.\");\n\nexport const senderGetCampaignById = action(\"SENDER_GET_CAMPAIGN_BY_ID\", {\n slug: \"sender-get-campaign-by-id\",\n name: \"Get Campaign By ID\",\n description: \"Tool to retrieve a specific campaign by its unique ID from Sender. Use when you need detailed information about a campaign including delivery metrics and engagement statistics.\",\n input: SenderGetCampaignByIdInput,\n output: SenderGetCampaignByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-campaign-by-id.mjs","names":[],"sources":["../../src/actions/get-campaign-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderGetCampaignByIdInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve. Example: '1'\"),\n}).describe(\"Request model for retrieving a specific campaign by ID.\");\nexport const SenderGetCampaignByIdOutput = z.object({\n opened: z.number().int().describe(\"Total number of opens.\").nullable().optional(),\n status: z.string().describe(\"Campaign status (draft, scheduled, sent, etc.).\").nullable().optional(),\n clicked: z.number().int().describe(\"Total number of clicks.\").nullable().optional(),\n sent_at: z.string().describe(\"Timestamp when campaign was sent.\").nullable().optional(),\n subject: z.string().describe(\"Email subject line.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when campaign was created.\").nullable().optional(),\n campaign_id: z.string().describe(\"Unique identifier for the campaign.\").nullable().optional(),\n hard_bounced: z.number().int().describe(\"Number of permanent delivery failures.\").nullable().optional(),\n soft_bounced: z.number().int().describe(\"Number of temporary delivery failures.\").nullable().optional(),\n unique_opens: z.number().int().describe(\"Number of unique recipients who opened.\").nullable().optional(),\n unsubscribed: z.number().int().describe(\"Number of unsubscribe events.\").nullable().optional(),\n campaign_name: z.string().describe(\"Name of the campaign.\").nullable().optional(),\n unique_clicks: z.number().int().describe(\"Number of unique recipients who clicked.\").nullable().optional(),\n spam_complaints: z.number().int().describe(\"Number of spam reports.\").nullable().optional(),\n total_emails_sent: z.number().int().describe(\"Total number of emails sent.\").nullable().optional(),\n total_emails_delivered: z.number().int().describe(\"Number of successfully delivered emails.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a campaign retrieved from Sender.\");\n\nexport const senderGetCampaignById: AppAction<\n typeof SenderGetCampaignByIdInput,\n typeof SenderGetCampaignByIdOutput,\n typeof sender.credential\n> = action(\"SENDER_GET_CAMPAIGN_BY_ID\", {\n slug: \"sender-get-campaign-by-id\",\n name: \"Get Campaign By ID\",\n description: \"Tool to retrieve a specific campaign by its unique ID from Sender. Use when you need detailed information about a campaign including delivery metrics and engagement statistics.\",\n input: SenderGetCampaignByIdInput,\n output: SenderGetCampaignByIdOutput,\n});\n"],"mappings":";;;AA4BA,MAAa,wBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACpG,CAAC,CAAC,CAAC,SAAS,yDA4BH;CACP,QA5ByC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-group-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-group-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetGroupByIdInput = z.object({\n group_id: z.string().describe(\"The unique identifier of the group to retrieve. Example: 'dBEVzJ'\"),\n}).describe(\"Request model for retrieving a specific subscriber group by ID.\");\nexport const SenderGetGroupByIdOutput = z.object({\n id: z.string().describe(\"Unique identifier for the group.\").nullable().optional(),\n name: z.string().describe(\"Name of the group.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of subscribers in the group.\").nullable().optional(),\n active: z.number().int().describe(\"Number of active subscribers in the group.\").nullable().optional(),\n bounced: z.number().int().describe(\"Number of bounced subscribers in the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the group was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated.\").nullable().optional(),\n unconfirmed: z.number().int().describe(\"Number of unconfirmed subscribers in the group.\").nullable().optional(),\n unsubscribed: z.number().int().describe(\"Number of unsubscribed subscribers in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber group retrieved from Sender.\");\n\nexport const senderGetGroupById = action(\"SENDER_GET_GROUP_BY_ID\", {\n slug: \"sender-get-group-by-id\",\n name: \"Get Group By ID\",\n description: \"Tool to retrieve a specific subscriber group by its unique ID from Sender. Use when you need detailed information about a single group including subscriber counts.\",\n input: SenderGetGroupByIdInput,\n output: SenderGetGroupByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-group-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-group-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderGetGroupByIdInput = z.object({\n group_id: z.string().describe(\"The unique identifier of the group to retrieve. Example: 'dBEVzJ'\"),\n}).describe(\"Request model for retrieving a specific subscriber group by ID.\");\nexport const SenderGetGroupByIdOutput = z.object({\n id: z.string().describe(\"Unique identifier for the group.\").nullable().optional(),\n name: z.string().describe(\"Name of the group.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of subscribers in the group.\").nullable().optional(),\n active: z.number().int().describe(\"Number of active subscribers in the group.\").nullable().optional(),\n bounced: z.number().int().describe(\"Number of bounced subscribers in the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the group was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated.\").nullable().optional(),\n unconfirmed: z.number().int().describe(\"Number of unconfirmed subscribers in the group.\").nullable().optional(),\n unsubscribed: z.number().int().describe(\"Number of unsubscribed subscribers in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber group retrieved from Sender.\");\n\nexport const senderGetGroupById: AppAction<\n typeof SenderGetGroupByIdInput,\n typeof SenderGetGroupByIdOutput,\n typeof sender.credential\n> = action(\"SENDER_GET_GROUP_BY_ID\", {\n slug: \"sender-get-group-by-id\",\n name: \"Get Group By ID\",\n description: \"Tool to retrieve a specific subscriber group by its unique ID from Sender. Use when you need detailed information about a single group including subscriber counts.\",\n input: SenderGetGroupByIdInput,\n output: SenderGetGroupByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,EACnG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,qBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-group-by-id.d.ts
|
|
@@ -15,21 +17,7 @@ declare const SenderGetGroupByIdOutput: z.ZodObject<{
|
|
|
15
17
|
unconfirmed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
unsubscribed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const senderGetGroupById:
|
|
19
|
-
group_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const senderGetGroupById: AppAction<typeof SenderGetGroupByIdInput, typeof SenderGetGroupByIdOutput, typeof sender.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { senderGetGroupById };
|
|
35
23
|
//# sourceMappingURL=get-group-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-group-by-id.d.cts","names":[],"sources":["../../src/actions/get-group-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-group-by-id.d.cts","names":[],"sources":["../../src/actions/get-group-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-group-by-id.d.ts
|
|
@@ -15,21 +17,7 @@ declare const SenderGetGroupByIdOutput: z.ZodObject<{
|
|
|
15
17
|
unconfirmed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
unsubscribed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const senderGetGroupById:
|
|
19
|
-
group_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const senderGetGroupById: AppAction<typeof SenderGetGroupByIdInput, typeof SenderGetGroupByIdOutput, typeof sender.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { senderGetGroupById };
|
|
35
23
|
//# sourceMappingURL=get-group-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-group-by-id.d.mts","names":[],"sources":["../../src/actions/get-group-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-group-by-id.d.mts","names":[],"sources":["../../src/actions/get-group-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-group-by-id.mjs","names":[],"sources":["../../src/actions/get-group-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetGroupByIdInput = z.object({\n group_id: z.string().describe(\"The unique identifier of the group to retrieve. Example: 'dBEVzJ'\"),\n}).describe(\"Request model for retrieving a specific subscriber group by ID.\");\nexport const SenderGetGroupByIdOutput = z.object({\n id: z.string().describe(\"Unique identifier for the group.\").nullable().optional(),\n name: z.string().describe(\"Name of the group.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of subscribers in the group.\").nullable().optional(),\n active: z.number().int().describe(\"Number of active subscribers in the group.\").nullable().optional(),\n bounced: z.number().int().describe(\"Number of bounced subscribers in the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the group was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated.\").nullable().optional(),\n unconfirmed: z.number().int().describe(\"Number of unconfirmed subscribers in the group.\").nullable().optional(),\n unsubscribed: z.number().int().describe(\"Number of unsubscribed subscribers in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber group retrieved from Sender.\");\n\nexport const senderGetGroupById = action(\"SENDER_GET_GROUP_BY_ID\", {\n slug: \"sender-get-group-by-id\",\n name: \"Get Group By ID\",\n description: \"Tool to retrieve a specific subscriber group by its unique ID from Sender. Use when you need detailed information about a single group including subscriber counts.\",\n input: SenderGetGroupByIdInput,\n output: SenderGetGroupByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-group-by-id.mjs","names":[],"sources":["../../src/actions/get-group-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderGetGroupByIdInput = z.object({\n group_id: z.string().describe(\"The unique identifier of the group to retrieve. Example: 'dBEVzJ'\"),\n}).describe(\"Request model for retrieving a specific subscriber group by ID.\");\nexport const SenderGetGroupByIdOutput = z.object({\n id: z.string().describe(\"Unique identifier for the group.\").nullable().optional(),\n name: z.string().describe(\"Name of the group.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of subscribers in the group.\").nullable().optional(),\n active: z.number().int().describe(\"Number of active subscribers in the group.\").nullable().optional(),\n bounced: z.number().int().describe(\"Number of bounced subscribers in the group.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the group was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated.\").nullable().optional(),\n unconfirmed: z.number().int().describe(\"Number of unconfirmed subscribers in the group.\").nullable().optional(),\n unsubscribed: z.number().int().describe(\"Number of unsubscribed subscribers in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber group retrieved from Sender.\");\n\nexport const senderGetGroupById: AppAction<\n typeof SenderGetGroupByIdInput,\n typeof SenderGetGroupByIdOutput,\n typeof sender.credential\n> = action(\"SENDER_GET_GROUP_BY_ID\", {\n slug: \"sender-get-group-by-id\",\n name: \"Get Group By ID\",\n description: \"Tool to retrieve a specific subscriber group by its unique ID from Sender. Use when you need detailed information about a single group including subscriber counts.\",\n input: SenderGetGroupByIdInput,\n output: SenderGetGroupByIdOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,qBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqC,EAAE,OAAO,EAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,EACnG,CAAC,CAAC,CAAC,SAAS,iEAqBH;CACP,QArBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscriber-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-subscriber-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetSubscriberByIdInput = z.object({\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to retrieve. Example: 'MJABNBP'\"),\n}).describe(\"Request model for retrieving a subscriber by their unique ID.\");\nexport const SenderGetSubscriberByIdOutput = z.object({\n id: z.string().describe(\"Unique subscriber identifier\").nullable().optional(),\n email: z.string().describe(\"Subscriber email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field values\").nullable().optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs the subscriber belongs to\").nullable().optional(),\n status: z.string().describe(\"Subscriber status (active, unsubscribed, bounced)\").nullable().optional(),\n created: z.string().describe(\"ISO 8601 timestamp of creation\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n lastname: z.string().describe(\"Subscriber last name\").nullable().optional(),\n firstname: z.string().describe(\"Subscriber first name\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber retrieved from Sender.\");\n\nexport const senderGetSubscriberById = action(\"SENDER_GET_SUBSCRIBER_BY_ID\", {\n slug: \"sender-get-subscriber-by-id\",\n name: \"Get Subscriber By ID\",\n description: \"Tool to retrieve a specific subscriber by their unique ID from Sender. Use when you need to fetch detailed information about a single subscriber including their status, groups, and custom fields.\",\n input: SenderGetSubscriberByIdInput,\n output: SenderGetSubscriberByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-subscriber-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-subscriber-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderGetSubscriberByIdInput = z.object({\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to retrieve. Example: 'MJABNBP'\"),\n}).describe(\"Request model for retrieving a subscriber by their unique ID.\");\nexport const SenderGetSubscriberByIdOutput = z.object({\n id: z.string().describe(\"Unique subscriber identifier\").nullable().optional(),\n email: z.string().describe(\"Subscriber email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field values\").nullable().optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs the subscriber belongs to\").nullable().optional(),\n status: z.string().describe(\"Subscriber status (active, unsubscribed, bounced)\").nullable().optional(),\n created: z.string().describe(\"ISO 8601 timestamp of creation\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n lastname: z.string().describe(\"Subscriber last name\").nullable().optional(),\n firstname: z.string().describe(\"Subscriber first name\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber retrieved from Sender.\");\n\nexport const senderGetSubscriberById: AppAction<\n typeof SenderGetSubscriberByIdInput,\n typeof SenderGetSubscriberByIdOutput,\n typeof sender.credential\n> = action(\"SENDER_GET_SUBSCRIBER_BY_ID\", {\n slug: \"sender-get-subscriber-by-id\",\n name: \"Get Subscriber By ID\",\n description: \"Tool to retrieve a specific subscriber by their unique ID from Sender. Use when you need to fetch detailed information about a single subscriber including their status, groups, and custom fields.\",\n input: SenderGetSubscriberByIdInput,\n output: SenderGetSubscriberByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC9G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,0BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-subscriber-by-id.d.ts
|
|
@@ -15,21 +17,7 @@ declare const SenderGetSubscriberByIdOutput: z.ZodObject<{
|
|
|
15
17
|
lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const senderGetSubscriberById:
|
|
19
|
-
subscriber_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const senderGetSubscriberById: AppAction<typeof SenderGetSubscriberByIdInput, typeof SenderGetSubscriberByIdOutput, typeof sender.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { senderGetSubscriberById };
|
|
35
23
|
//# sourceMappingURL=get-subscriber-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscriber-by-id.d.cts","names":[],"sources":["../../src/actions/get-subscriber-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-subscriber-by-id.d.cts","names":[],"sources":["../../src/actions/get-subscriber-by-id.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-subscriber-by-id.d.ts
|
|
@@ -15,21 +17,7 @@ declare const SenderGetSubscriberByIdOutput: z.ZodObject<{
|
|
|
15
17
|
lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const senderGetSubscriberById:
|
|
19
|
-
subscriber_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const senderGetSubscriberById: AppAction<typeof SenderGetSubscriberByIdInput, typeof SenderGetSubscriberByIdOutput, typeof sender.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { senderGetSubscriberById };
|
|
35
23
|
//# sourceMappingURL=get-subscriber-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscriber-by-id.d.mts","names":[],"sources":["../../src/actions/get-subscriber-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-subscriber-by-id.d.mts","names":[],"sources":["../../src/actions/get-subscriber-by-id.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscriber-by-id.mjs","names":[],"sources":["../../src/actions/get-subscriber-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetSubscriberByIdInput = z.object({\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to retrieve. Example: 'MJABNBP'\"),\n}).describe(\"Request model for retrieving a subscriber by their unique ID.\");\nexport const SenderGetSubscriberByIdOutput = z.object({\n id: z.string().describe(\"Unique subscriber identifier\").nullable().optional(),\n email: z.string().describe(\"Subscriber email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field values\").nullable().optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs the subscriber belongs to\").nullable().optional(),\n status: z.string().describe(\"Subscriber status (active, unsubscribed, bounced)\").nullable().optional(),\n created: z.string().describe(\"ISO 8601 timestamp of creation\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n lastname: z.string().describe(\"Subscriber last name\").nullable().optional(),\n firstname: z.string().describe(\"Subscriber first name\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber retrieved from Sender.\");\n\nexport const senderGetSubscriberById = action(\"SENDER_GET_SUBSCRIBER_BY_ID\", {\n slug: \"sender-get-subscriber-by-id\",\n name: \"Get Subscriber By ID\",\n description: \"Tool to retrieve a specific subscriber by their unique ID from Sender. Use when you need to fetch detailed information about a single subscriber including their status, groups, and custom fields.\",\n input: SenderGetSubscriberByIdInput,\n output: SenderGetSubscriberByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-subscriber-by-id.mjs","names":[],"sources":["../../src/actions/get-subscriber-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderGetSubscriberByIdInput = z.object({\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to retrieve. Example: 'MJABNBP'\"),\n}).describe(\"Request model for retrieving a subscriber by their unique ID.\");\nexport const SenderGetSubscriberByIdOutput = z.object({\n id: z.string().describe(\"Unique subscriber identifier\").nullable().optional(),\n email: z.string().describe(\"Subscriber email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field values\").nullable().optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs the subscriber belongs to\").nullable().optional(),\n status: z.string().describe(\"Subscriber status (active, unsubscribed, bounced)\").nullable().optional(),\n created: z.string().describe(\"ISO 8601 timestamp of creation\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n lastname: z.string().describe(\"Subscriber last name\").nullable().optional(),\n firstname: z.string().describe(\"Subscriber first name\").nullable().optional(),\n}).passthrough().describe(\"Response model for a subscriber retrieved from Sender.\");\n\nexport const senderGetSubscriberById: AppAction<\n typeof SenderGetSubscriberByIdInput,\n typeof SenderGetSubscriberByIdOutput,\n typeof sender.credential\n> = action(\"SENDER_GET_SUBSCRIBER_BY_ID\", {\n slug: \"sender-get-subscriber-by-id\",\n name: \"Get Subscriber By ID\",\n description: \"Tool to retrieve a specific subscriber by their unique ID from Sender. Use when you need to fetch detailed information about a single subscriber including their status, groups, and custom fields.\",\n input: SenderGetSubscriberByIdInput,\n output: SenderGetSubscriberByIdOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,0BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0C,EAAE,OAAO,EACnD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC9G,CAAC,CAAC,CAAC,SAAS,+DAqBH;CACP,QArB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscriber-fields.cjs","names":["z","action"],"sources":["../../src/actions/update-subscriber-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderUpdateSubscriberFieldsInput = z.object({\n email: z.string().describe(\"The subscriber's email address\").optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs to assign the subscriber to\").optional(),\n lastname: z.string().describe(\"The subscriber's last name\").optional(),\n firstname: z.string().describe(\"The subscriber's first name\").optional(),\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to update\"),\n}).describe(\"Request model for updating subscriber fields and information.\");\nconst SenderUpdateSubscriberFields_GroupInfoSchema = z.object({\n id: z.string().describe(\"Group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n}).passthrough().describe(\"Represents a group the subscriber belongs to.\");\nconst SenderUpdateSubscriberFields_SubscriberDataSchema = z.object({\n id: z.string().describe(\"The subscriber's unique identifier\").nullable().optional(),\n email: z.string().describe(\"The subscriber's email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field key-value pairs\").nullable().optional(),\n groups: z.array(SenderUpdateSubscriberFields_GroupInfoSchema).describe(\"Array of group objects the subscriber belongs to\").nullable().optional(),\n lastname: z.string().describe(\"The subscriber's last name\").nullable().optional(),\n firstname: z.string().describe(\"The subscriber's first name\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of when the subscriber was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last update\").nullable().optional(),\n}).passthrough().describe(\"The updated subscriber information.\");\nexport const SenderUpdateSubscriberFieldsOutput = z.object({\n data: SenderUpdateSubscriberFields_SubscriberDataSchema.nullable().optional(),\n success: z.boolean().describe(\"Indicates if the update was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating subscriber fields.\");\n\nexport const senderUpdateSubscriberFields = action(\"SENDER_UPDATE_SUBSCRIBER_FIELDS\", {\n slug: \"sender-update-subscriber-fields\",\n name: \"Update Subscriber Fields\",\n description: \"Tool to update custom fields and information for an existing subscriber in Sender.net. Use when you need to modify subscriber details such as email, first name, last name, groups, or custom fields for email personalization and segmentation.\",\n input: SenderUpdateSubscriberFieldsInput,\n output: SenderUpdateSubscriberFieldsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-subscriber-fields.cjs","names":["z","action"],"sources":["../../src/actions/update-subscriber-fields.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderUpdateSubscriberFieldsInput = z.object({\n email: z.string().describe(\"The subscriber's email address\").optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs to assign the subscriber to\").optional(),\n lastname: z.string().describe(\"The subscriber's last name\").optional(),\n firstname: z.string().describe(\"The subscriber's first name\").optional(),\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to update\"),\n}).describe(\"Request model for updating subscriber fields and information.\");\nconst SenderUpdateSubscriberFields_GroupInfoSchema = z.object({\n id: z.string().describe(\"Group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n}).passthrough().describe(\"Represents a group the subscriber belongs to.\");\nconst SenderUpdateSubscriberFields_SubscriberDataSchema = z.object({\n id: z.string().describe(\"The subscriber's unique identifier\").nullable().optional(),\n email: z.string().describe(\"The subscriber's email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field key-value pairs\").nullable().optional(),\n groups: z.array(SenderUpdateSubscriberFields_GroupInfoSchema).describe(\"Array of group objects the subscriber belongs to\").nullable().optional(),\n lastname: z.string().describe(\"The subscriber's last name\").nullable().optional(),\n firstname: z.string().describe(\"The subscriber's first name\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of when the subscriber was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last update\").nullable().optional(),\n}).passthrough().describe(\"The updated subscriber information.\");\nexport const SenderUpdateSubscriberFieldsOutput = z.object({\n data: SenderUpdateSubscriberFields_SubscriberDataSchema.nullable().optional(),\n success: z.boolean().describe(\"Indicates if the update was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating subscriber fields.\");\n\nexport const senderUpdateSubscriberFields: AppAction<\n typeof SenderUpdateSubscriberFieldsInput,\n typeof SenderUpdateSubscriberFieldsOutput,\n typeof sender.credential\n> = action(\"SENDER_UPDATE_SUBSCRIBER_FIELDS\", {\n slug: \"sender-update-subscriber-fields\",\n name: \"Update Subscriber Fields\",\n description: \"Tool to update custom fields and information for an existing subscriber in Sender.net. Use when you need to modify subscriber details such as email, first name, last name, groups, or custom fields for email personalization and segmentation.\",\n input: SenderUpdateSubscriberFieldsInput,\n output: SenderUpdateSubscriberFieldsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACxF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,QAAQA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAM,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-subscriber-fields.d.ts
|
|
@@ -24,25 +26,7 @@ declare const SenderUpdateSubscriberFieldsOutput: z.ZodObject<{
|
|
|
24
26
|
}, z.core.$loose>>>;
|
|
25
27
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const senderUpdateSubscriberFields:
|
|
28
|
-
subscriber_id: string;
|
|
29
|
-
email?: string | undefined;
|
|
30
|
-
groups?: string[] | undefined;
|
|
31
|
-
lastname?: string | undefined;
|
|
32
|
-
firstname?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const senderUpdateSubscriberFields: AppAction<typeof SenderUpdateSubscriberFieldsInput, typeof SenderUpdateSubscriberFieldsOutput, typeof sender.credential>;
|
|
46
30
|
//#endregion
|
|
47
31
|
export { senderUpdateSubscriberFields };
|
|
48
32
|
//# sourceMappingURL=update-subscriber-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscriber-fields.d.cts","names":[],"sources":["../../src/actions/update-subscriber-fields.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-subscriber-fields.d.cts","names":[],"sources":["../../src/actions/update-subscriber-fields.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sender } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-subscriber-fields.d.ts
|
|
@@ -24,25 +26,7 @@ declare const SenderUpdateSubscriberFieldsOutput: z.ZodObject<{
|
|
|
24
26
|
}, z.core.$loose>>>;
|
|
25
27
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const senderUpdateSubscriberFields:
|
|
28
|
-
subscriber_id: string;
|
|
29
|
-
email?: string | undefined;
|
|
30
|
-
groups?: string[] | undefined;
|
|
31
|
-
lastname?: string | undefined;
|
|
32
|
-
firstname?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sender", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const senderUpdateSubscriberFields: AppAction<typeof SenderUpdateSubscriberFieldsInput, typeof SenderUpdateSubscriberFieldsOutput, typeof sender.credential>;
|
|
46
30
|
//#endregion
|
|
47
31
|
export { senderUpdateSubscriberFields };
|
|
48
32
|
//# sourceMappingURL=update-subscriber-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscriber-fields.d.mts","names":[],"sources":["../../src/actions/update-subscriber-fields.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-subscriber-fields.d.mts","names":[],"sources":["../../src/actions/update-subscriber-fields.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscriber-fields.mjs","names":[],"sources":["../../src/actions/update-subscriber-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderUpdateSubscriberFieldsInput = z.object({\n email: z.string().describe(\"The subscriber's email address\").optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs to assign the subscriber to\").optional(),\n lastname: z.string().describe(\"The subscriber's last name\").optional(),\n firstname: z.string().describe(\"The subscriber's first name\").optional(),\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to update\"),\n}).describe(\"Request model for updating subscriber fields and information.\");\nconst SenderUpdateSubscriberFields_GroupInfoSchema = z.object({\n id: z.string().describe(\"Group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n}).passthrough().describe(\"Represents a group the subscriber belongs to.\");\nconst SenderUpdateSubscriberFields_SubscriberDataSchema = z.object({\n id: z.string().describe(\"The subscriber's unique identifier\").nullable().optional(),\n email: z.string().describe(\"The subscriber's email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field key-value pairs\").nullable().optional(),\n groups: z.array(SenderUpdateSubscriberFields_GroupInfoSchema).describe(\"Array of group objects the subscriber belongs to\").nullable().optional(),\n lastname: z.string().describe(\"The subscriber's last name\").nullable().optional(),\n firstname: z.string().describe(\"The subscriber's first name\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of when the subscriber was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last update\").nullable().optional(),\n}).passthrough().describe(\"The updated subscriber information.\");\nexport const SenderUpdateSubscriberFieldsOutput = z.object({\n data: SenderUpdateSubscriberFields_SubscriberDataSchema.nullable().optional(),\n success: z.boolean().describe(\"Indicates if the update was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating subscriber fields.\");\n\nexport const senderUpdateSubscriberFields = action(\"SENDER_UPDATE_SUBSCRIBER_FIELDS\", {\n slug: \"sender-update-subscriber-fields\",\n name: \"Update Subscriber Fields\",\n description: \"Tool to update custom fields and information for an existing subscriber in Sender.net. Use when you need to modify subscriber details such as email, first name, last name, groups, or custom fields for email personalization and segmentation.\",\n input: SenderUpdateSubscriberFieldsInput,\n output: SenderUpdateSubscriberFieldsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-subscriber-fields.mjs","names":[],"sources":["../../src/actions/update-subscriber-fields.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sender } from \"../app\";\n\nexport const SenderUpdateSubscriberFieldsInput = z.object({\n email: z.string().describe(\"The subscriber's email address\").optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs to assign the subscriber to\").optional(),\n lastname: z.string().describe(\"The subscriber's last name\").optional(),\n firstname: z.string().describe(\"The subscriber's first name\").optional(),\n subscriber_id: z.string().describe(\"The unique identifier of the subscriber to update\"),\n}).describe(\"Request model for updating subscriber fields and information.\");\nconst SenderUpdateSubscriberFields_GroupInfoSchema = z.object({\n id: z.string().describe(\"Group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n}).passthrough().describe(\"Represents a group the subscriber belongs to.\");\nconst SenderUpdateSubscriberFields_SubscriberDataSchema = z.object({\n id: z.string().describe(\"The subscriber's unique identifier\").nullable().optional(),\n email: z.string().describe(\"The subscriber's email address\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom field key-value pairs\").nullable().optional(),\n groups: z.array(SenderUpdateSubscriberFields_GroupInfoSchema).describe(\"Array of group objects the subscriber belongs to\").nullable().optional(),\n lastname: z.string().describe(\"The subscriber's last name\").nullable().optional(),\n firstname: z.string().describe(\"The subscriber's first name\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of when the subscriber was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last update\").nullable().optional(),\n}).passthrough().describe(\"The updated subscriber information.\");\nexport const SenderUpdateSubscriberFieldsOutput = z.object({\n data: SenderUpdateSubscriberFields_SubscriberDataSchema.nullable().optional(),\n success: z.boolean().describe(\"Indicates if the update was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating subscriber fields.\");\n\nexport const senderUpdateSubscriberFields: AppAction<\n typeof SenderUpdateSubscriberFieldsInput,\n typeof SenderUpdateSubscriberFieldsOutput,\n typeof sender.credential\n> = action(\"SENDER_UPDATE_SUBSCRIBER_FIELDS\", {\n slug: \"sender-update-subscriber-fields\",\n name: \"Update Subscriber Fields\",\n description: \"Tool to update custom fields and information for an existing subscriber in Sender.net. Use when you need to modify subscriber details such as email, first name, last name, groups, or custom fields for email personalization and segmentation.\",\n input: SenderUpdateSubscriberFieldsInput,\n output: SenderUpdateSubscriberFieldsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACxF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,QAAQ,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdgD,EAAE,OAAO;EACzD,MAAM,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAC5E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const sender = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "sender",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.sender = sender;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const sender = defineApp({\n slug: \"sender\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const sender: KeystrokeApp<\"sender\", typeof credential> = defineApp({\n slug: \"sender\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const sender: KeystrokeApp<"sender", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { sender };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const sender: KeystrokeApp<"sender", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { sender };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const sender = defineApp({\n slug: \"sender\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const sender: KeystrokeApp<\"sender\", typeof credential> = defineApp({\n slug: \"sender\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sender } from "./app.cjs";
|
|
1
2
|
import { senderCreateField } from "./actions/create-field.cjs";
|
|
2
3
|
import { senderCreateOrUpdateSubscriber } from "./actions/create-or-update-subscriber.cjs";
|
|
3
4
|
import { senderGetAllFields } from "./actions/get-all-fields.cjs";
|
|
@@ -6,6 +7,5 @@ import { senderGetCampaignById } from "./actions/get-campaign-by-id.cjs";
|
|
|
6
7
|
import { senderGetGroupById } from "./actions/get-group-by-id.cjs";
|
|
7
8
|
import { senderGetSubscriberById } from "./actions/get-subscriber-by-id.cjs";
|
|
8
9
|
import { senderUpdateSubscriberFields } from "./actions/update-subscriber-fields.cjs";
|
|
9
|
-
import { sender } from "./app.cjs";
|
|
10
10
|
import { senderCatalog } from "./catalog.cjs";
|
|
11
11
|
export { sender, senderCatalog, senderCreateField, senderCreateOrUpdateSubscriber, senderGetAllFields, senderGetAllWorkflows, senderGetCampaignById, senderGetGroupById, senderGetSubscriberById, senderUpdateSubscriberFields };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sender } from "./app.mjs";
|
|
1
2
|
import { senderCreateField } from "./actions/create-field.mjs";
|
|
2
3
|
import { senderCreateOrUpdateSubscriber } from "./actions/create-or-update-subscriber.mjs";
|
|
3
4
|
import { senderGetAllFields } from "./actions/get-all-fields.mjs";
|
|
@@ -6,6 +7,5 @@ import { senderGetCampaignById } from "./actions/get-campaign-by-id.mjs";
|
|
|
6
7
|
import { senderGetGroupById } from "./actions/get-group-by-id.mjs";
|
|
7
8
|
import { senderGetSubscriberById } from "./actions/get-subscriber-by-id.mjs";
|
|
8
9
|
import { senderUpdateSubscriberFields } from "./actions/update-subscriber-fields.mjs";
|
|
9
|
-
import { sender } from "./app.mjs";
|
|
10
10
|
import { senderCatalog } from "./catalog.mjs";
|
|
11
11
|
export { sender, senderCatalog, senderCreateField, senderCreateOrUpdateSubscriber, senderGetAllFields, senderGetAllWorkflows, senderGetCampaignById, senderGetGroupById, senderGetSubscriberById, senderUpdateSubscriberFields };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/sender",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|