@keystrokehq/sender 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-field.cjs +38 -0
- package/dist/actions/create-field.cjs.map +1 -0
- package/dist/actions/create-field.d.cts +9 -0
- package/dist/actions/create-field.d.cts.map +1 -0
- package/dist/actions/create-field.d.mts +9 -0
- package/dist/actions/create-field.d.mts.map +1 -0
- package/dist/actions/create-field.mjs +37 -0
- package/dist/actions/create-field.mjs.map +1 -0
- package/dist/actions/create-or-update-subscriber.cjs +43 -0
- package/dist/actions/create-or-update-subscriber.cjs.map +1 -0
- package/dist/actions/create-or-update-subscriber.d.cts +9 -0
- package/dist/actions/create-or-update-subscriber.d.cts.map +1 -0
- package/dist/actions/create-or-update-subscriber.d.mts +9 -0
- package/dist/actions/create-or-update-subscriber.d.mts.map +1 -0
- package/dist/actions/create-or-update-subscriber.mjs +42 -0
- package/dist/actions/create-or-update-subscriber.mjs.map +1 -0
- package/dist/actions/get-all-fields.cjs +28 -0
- package/dist/actions/get-all-fields.cjs.map +1 -0
- package/dist/actions/get-all-fields.d.cts +9 -0
- package/dist/actions/get-all-fields.d.cts.map +1 -0
- package/dist/actions/get-all-fields.d.mts +9 -0
- package/dist/actions/get-all-fields.d.mts.map +1 -0
- package/dist/actions/get-all-fields.mjs +27 -0
- package/dist/actions/get-all-fields.mjs.map +1 -0
- package/dist/actions/get-all-workflows.cjs +23 -0
- package/dist/actions/get-all-workflows.cjs.map +1 -0
- package/dist/actions/get-all-workflows.d.cts +9 -0
- package/dist/actions/get-all-workflows.d.cts.map +1 -0
- package/dist/actions/get-all-workflows.d.mts +9 -0
- package/dist/actions/get-all-workflows.d.mts.map +1 -0
- package/dist/actions/get-all-workflows.mjs +22 -0
- package/dist/actions/get-all-workflows.mjs.map +1 -0
- package/dist/actions/get-campaign-by-id.cjs +33 -0
- package/dist/actions/get-campaign-by-id.cjs.map +1 -0
- package/dist/actions/get-campaign-by-id.d.cts +9 -0
- package/dist/actions/get-campaign-by-id.d.cts.map +1 -0
- package/dist/actions/get-campaign-by-id.d.mts +9 -0
- package/dist/actions/get-campaign-by-id.d.mts.map +1 -0
- package/dist/actions/get-campaign-by-id.mjs +30 -0
- package/dist/actions/get-campaign-by-id.mjs.map +1 -0
- package/dist/actions/get-group-by-id.cjs +26 -0
- package/dist/actions/get-group-by-id.cjs.map +1 -0
- package/dist/actions/get-group-by-id.d.cts +9 -0
- package/dist/actions/get-group-by-id.d.cts.map +1 -0
- package/dist/actions/get-group-by-id.d.mts +9 -0
- package/dist/actions/get-group-by-id.d.mts.map +1 -0
- package/dist/actions/get-group-by-id.mjs +23 -0
- package/dist/actions/get-group-by-id.mjs.map +1 -0
- package/dist/actions/get-subscriber-by-id.cjs +26 -0
- package/dist/actions/get-subscriber-by-id.cjs.map +1 -0
- package/dist/actions/get-subscriber-by-id.d.cts +9 -0
- package/dist/actions/get-subscriber-by-id.d.cts.map +1 -0
- package/dist/actions/get-subscriber-by-id.d.mts +9 -0
- package/dist/actions/get-subscriber-by-id.d.mts.map +1 -0
- package/dist/actions/get-subscriber-by-id.mjs +23 -0
- package/dist/actions/get-subscriber-by-id.mjs.map +1 -0
- package/dist/actions/index.cjs +17 -0
- package/dist/actions/index.d.cts +9 -0
- package/dist/actions/index.d.mts +9 -0
- package/dist/actions/index.mjs +9 -0
- package/dist/actions/update-subscriber-fields.cjs +39 -0
- package/dist/actions/update-subscriber-fields.cjs.map +1 -0
- package/dist/actions/update-subscriber-fields.d.cts +9 -0
- package/dist/actions/update-subscriber-fields.d.cts.map +1 -0
- package/dist/actions/update-subscriber-fields.d.mts +9 -0
- package/dist/actions/update-subscriber-fields.d.mts.map +1 -0
- package/dist/actions/update-subscriber-fields.mjs +38 -0
- package/dist/actions/update-subscriber-fields.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +22 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +12 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/sender
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `sender`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 8
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { senderCreateField } from "@keystrokehq/sender/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "sender-agent",
|
|
15
|
+
tools: [senderCreateField],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.sender.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeSenderTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["sender","executeSenderTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sender } from \"./app\";\nimport { executeSenderTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return sender.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSenderTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { sender } from "./app.mjs";
|
|
2
|
+
import { executeSenderTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return sender.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeSenderTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sender } from \"./app\";\nimport { executeSenderTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return sender.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSenderTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-field.ts
|
|
4
|
+
const SenderCreateFieldInput = zod.z.object({
|
|
5
|
+
type: zod.z.string().describe("The data type of the field. Common types include 'text' for string values, 'number' for numeric values, 'date' for dates, and 'money' for currency values."),
|
|
6
|
+
title: zod.z.string().describe("The display name/title of the custom field. This will be visible when managing subscriber data.")
|
|
7
|
+
}).describe("Request model for creating a new custom subscriber field.");
|
|
8
|
+
const SenderCreateField_FieldDataSchema = zod.z.object({
|
|
9
|
+
fieldkey: zod.z.string().describe("Unique key identifier for the created custom field").nullable().optional(),
|
|
10
|
+
required: zod.z.boolean().describe("Indicates whether the field is required").nullable().optional(),
|
|
11
|
+
fieldname: zod.z.string().describe("Display name of the created custom field").nullable().optional(),
|
|
12
|
+
fieldtype: zod.z.string().describe("Data type of the created field").nullable().optional(),
|
|
13
|
+
default_value: zod.z.union([
|
|
14
|
+
zod.z.string(),
|
|
15
|
+
zod.z.number().int(),
|
|
16
|
+
zod.z.number(),
|
|
17
|
+
zod.z.boolean()
|
|
18
|
+
]).nullable().optional()
|
|
19
|
+
}).describe("Represents the created field data in the response.");
|
|
20
|
+
const SenderCreateFieldOutput = zod.z.object({
|
|
21
|
+
data: SenderCreateField_FieldDataSchema.nullable().optional(),
|
|
22
|
+
message: zod.z.string().describe("Message about the operation result").nullable().optional(),
|
|
23
|
+
success: zod.z.boolean().describe("Indicates if the field creation was successful").nullable().optional(),
|
|
24
|
+
fieldkey: zod.z.string().describe("Unique key identifier for the created custom field").nullable().optional(),
|
|
25
|
+
fieldname: zod.z.string().describe("Display name of the created custom field").nullable().optional(),
|
|
26
|
+
fieldtype: zod.z.string().describe("Data type of the created field").nullable().optional()
|
|
27
|
+
}).describe("Response model for creating a custom subscriber field.");
|
|
28
|
+
const senderCreateField = require_action.action("SENDER_CREATE_FIELD", {
|
|
29
|
+
slug: "sender-create-field",
|
|
30
|
+
name: "Create Field",
|
|
31
|
+
description: "Tool to create a new custom subscriber field in Sender.net. Use when you need to add custom fields for email personalization, segmentation, or storing additional subscriber information like company name, birthday, job title, or other custom attributes.",
|
|
32
|
+
input: SenderCreateFieldInput,
|
|
33
|
+
output: SenderCreateFieldOutput
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.senderCreateField = senderCreateField;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=create-field.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-field.cjs","names":["z","action"],"sources":["../../src/actions/create-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderCreateFieldInput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The data type of the field. Common types include 'text' for string values, 'number' for numeric values, 'date' for dates, and 'money' for currency values.\"),\n title: z.string().describe(\"The display name/title of the custom field. This will be visible when managing subscriber data.\"),\n}).describe(\"Request model for creating a new custom subscriber field.\");\nconst SenderCreateField_FieldDataSchema: z.ZodTypeAny = z.object({\n fieldkey: z.string().describe(\"Unique key identifier for the created custom field\").nullable().optional(),\n required: z.boolean().describe(\"Indicates whether the field is required\").nullable().optional(),\n fieldname: z.string().describe(\"Display name of the created custom field\").nullable().optional(),\n fieldtype: z.string().describe(\"Data type of the created field\").nullable().optional(),\n default_value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n}).describe(\"Represents the created field data in the response.\");\nexport const SenderCreateFieldOutput: z.ZodTypeAny = z.object({\n data: SenderCreateField_FieldDataSchema.nullable().optional(),\n message: z.string().describe(\"Message about the operation result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the field creation was successful\").nullable().optional(),\n fieldkey: z.string().describe(\"Unique key identifier for the created custom field\").nullable().optional(),\n fieldname: z.string().describe(\"Display name of the created custom field\").nullable().optional(),\n fieldtype: z.string().describe(\"Data type of the created field\").nullable().optional(),\n}).describe(\"Response model for creating a custom subscriber field.\");\n\nexport const senderCreateField = action(\"SENDER_CREATE_FIELD\", {\n slug: \"sender-create-field\",\n name: \"Create Field\",\n description: \"Tool to create a new custom subscriber field in Sender.net. Use when you need to add custom fields for email personalization, segmentation, or storing additional subscriber information like company name, birthday, job title, or other custom attributes.\",\n input: SenderCreateFieldInput,\n output: SenderCreateFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CACtL,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;AAC9H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAM,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-field.d.ts
|
|
4
|
+
declare const SenderCreateFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderCreateFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderCreateField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderCreateField };
|
|
9
|
+
//# sourceMappingURL=create-field.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-field.d.cts","names":[],"sources":["../../src/actions/create-field.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGiC;AAAA,cAQ3D,uBAAA,EAAyB,CAAA,CAAE,UAO6B;AAAA,cAExD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-field.d.ts
|
|
4
|
+
declare const SenderCreateFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderCreateFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderCreateField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderCreateField };
|
|
9
|
+
//# sourceMappingURL=create-field.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-field.d.mts","names":[],"sources":["../../src/actions/create-field.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGiC;AAAA,cAQ3D,uBAAA,EAAyB,CAAA,CAAE,UAO6B;AAAA,cAExD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-field.ts
|
|
4
|
+
const SenderCreateFieldInput = z.object({
|
|
5
|
+
type: z.string().describe("The data type of the field. Common types include 'text' for string values, 'number' for numeric values, 'date' for dates, and 'money' for currency values."),
|
|
6
|
+
title: z.string().describe("The display name/title of the custom field. This will be visible when managing subscriber data.")
|
|
7
|
+
}).describe("Request model for creating a new custom subscriber field.");
|
|
8
|
+
const SenderCreateField_FieldDataSchema = z.object({
|
|
9
|
+
fieldkey: z.string().describe("Unique key identifier for the created custom field").nullable().optional(),
|
|
10
|
+
required: z.boolean().describe("Indicates whether the field is required").nullable().optional(),
|
|
11
|
+
fieldname: z.string().describe("Display name of the created custom field").nullable().optional(),
|
|
12
|
+
fieldtype: z.string().describe("Data type of the created field").nullable().optional(),
|
|
13
|
+
default_value: z.union([
|
|
14
|
+
z.string(),
|
|
15
|
+
z.number().int(),
|
|
16
|
+
z.number(),
|
|
17
|
+
z.boolean()
|
|
18
|
+
]).nullable().optional()
|
|
19
|
+
}).describe("Represents the created field data in the response.");
|
|
20
|
+
const senderCreateField = action("SENDER_CREATE_FIELD", {
|
|
21
|
+
slug: "sender-create-field",
|
|
22
|
+
name: "Create Field",
|
|
23
|
+
description: "Tool to create a new custom subscriber field in Sender.net. Use when you need to add custom fields for email personalization, segmentation, or storing additional subscriber information like company name, birthday, job title, or other custom attributes.",
|
|
24
|
+
input: SenderCreateFieldInput,
|
|
25
|
+
output: z.object({
|
|
26
|
+
data: SenderCreateField_FieldDataSchema.nullable().optional(),
|
|
27
|
+
message: z.string().describe("Message about the operation result").nullable().optional(),
|
|
28
|
+
success: z.boolean().describe("Indicates if the field creation was successful").nullable().optional(),
|
|
29
|
+
fieldkey: z.string().describe("Unique key identifier for the created custom field").nullable().optional(),
|
|
30
|
+
fieldname: z.string().describe("Display name of the created custom field").nullable().optional(),
|
|
31
|
+
fieldtype: z.string().describe("Data type of the created field").nullable().optional()
|
|
32
|
+
}).describe("Response model for creating a custom subscriber field.")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { senderCreateField };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=create-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-field.mjs","names":[],"sources":["../../src/actions/create-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderCreateFieldInput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The data type of the field. Common types include 'text' for string values, 'number' for numeric values, 'date' for dates, and 'money' for currency values.\"),\n title: z.string().describe(\"The display name/title of the custom field. This will be visible when managing subscriber data.\"),\n}).describe(\"Request model for creating a new custom subscriber field.\");\nconst SenderCreateField_FieldDataSchema: z.ZodTypeAny = z.object({\n fieldkey: z.string().describe(\"Unique key identifier for the created custom field\").nullable().optional(),\n required: z.boolean().describe(\"Indicates whether the field is required\").nullable().optional(),\n fieldname: z.string().describe(\"Display name of the created custom field\").nullable().optional(),\n fieldtype: z.string().describe(\"Data type of the created field\").nullable().optional(),\n default_value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n}).describe(\"Represents the created field data in the response.\");\nexport const SenderCreateFieldOutput: z.ZodTypeAny = z.object({\n data: SenderCreateField_FieldDataSchema.nullable().optional(),\n message: z.string().describe(\"Message about the operation result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the field creation was successful\").nullable().optional(),\n fieldkey: z.string().describe(\"Unique key identifier for the created custom field\").nullable().optional(),\n fieldname: z.string().describe(\"Display name of the created custom field\").nullable().optional(),\n fieldtype: z.string().describe(\"Data type of the created field\").nullable().optional(),\n}).describe(\"Response model for creating a custom subscriber field.\");\n\nexport const senderCreateField = action(\"SENDER_CREATE_FIELD\", {\n slug: \"sender-create-field\",\n name: \"Create Field\",\n description: \"Tool to create a new custom subscriber field in Sender.net. Use when you need to add custom fields for email personalization, segmentation, or storing additional subscriber information like company name, birthday, job title, or other custom attributes.\",\n input: SenderCreateFieldInput,\n output: SenderCreateFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CACtL,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;AAC9H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,oCAAkD,EAAE,OAAO;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAe,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAUhE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,MAAM,kCAAkC,SAAS,CAAC,CAAC,SAAS;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-or-update-subscriber.ts
|
|
4
|
+
const SenderCreateOrUpdateSubscriberInput = zod.z.object({
|
|
5
|
+
email: zod.z.string().describe("Subscriber's email address. This is required and will be used to identify existing subscribers."),
|
|
6
|
+
phone: zod.z.string().describe("Subscriber's phone number.").optional(),
|
|
7
|
+
fields: zod.z.object({}).describe("Custom fields object for additional subscriber attributes such as birthday, gender, location, company, title, or other relevant data.").optional(),
|
|
8
|
+
groups: zod.z.array(zod.z.string()).describe("Array of group IDs to assign the subscriber to.").optional(),
|
|
9
|
+
lastname: zod.z.string().describe("Subscriber's last name.").optional(),
|
|
10
|
+
firstname: zod.z.string().describe("Subscriber's first name.").optional(),
|
|
11
|
+
trigger_automation: zod.z.boolean().describe("Whether to trigger email automations for this subscriber. Default is true when not specified.").optional()
|
|
12
|
+
}).describe("Request model for creating or updating a subscriber.");
|
|
13
|
+
const SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema = zod.z.object({
|
|
14
|
+
id: zod.z.string().describe("Subscriber's unique identifier").nullable().optional(),
|
|
15
|
+
email: zod.z.string().describe("Subscriber's email address").nullable().optional(),
|
|
16
|
+
phone: zod.z.string().describe("Subscriber's phone number").nullable().optional(),
|
|
17
|
+
fields: zod.z.object({}).describe("Custom field values").nullable().optional(),
|
|
18
|
+
groups: zod.z.array(zod.z.string()).describe("Array of group IDs the subscriber belongs to").nullable().optional(),
|
|
19
|
+
lastname: zod.z.string().describe("Subscriber's last name").nullable().optional(),
|
|
20
|
+
firstname: zod.z.string().describe("Subscriber's first name").nullable().optional(),
|
|
21
|
+
created_at: zod.z.string().describe("Timestamp when the subscriber was created").nullable().optional(),
|
|
22
|
+
updated_at: zod.z.string().describe("Timestamp when the subscriber was last updated").nullable().optional()
|
|
23
|
+
}).describe("Subscriber data in the response.");
|
|
24
|
+
const SenderCreateOrUpdateSubscriberOutput = zod.z.object({
|
|
25
|
+
data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),
|
|
26
|
+
message: zod.z.union([
|
|
27
|
+
zod.z.string(),
|
|
28
|
+
zod.z.array(zod.z.string()),
|
|
29
|
+
zod.z.object({})
|
|
30
|
+
]).nullable().optional(),
|
|
31
|
+
success: zod.z.boolean().describe("Indicates if the operation was successful").nullable().optional()
|
|
32
|
+
}).describe("Response model for creating or updating a subscriber.");
|
|
33
|
+
const senderCreateOrUpdateSubscriber = require_action.action("SENDER_CREATE_OR_UPDATE_SUBSCRIBER", {
|
|
34
|
+
slug: "sender-create-or-update-subscriber",
|
|
35
|
+
name: "Create Or Update Subscriber",
|
|
36
|
+
description: "Tool to create a new subscriber or update an existing one in Sender.net. Use when you need to add new subscribers to your email list or update existing subscriber information. This performs an upsert operation - creates if the email doesn't exist, updates if it does.",
|
|
37
|
+
input: SenderCreateOrUpdateSubscriberInput,
|
|
38
|
+
output: SenderCreateOrUpdateSubscriberOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.senderCreateOrUpdateSubscriber = senderCreateOrUpdateSubscriber;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=create-or-update-subscriber.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderCreateOrUpdateSubscriberInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Subscriber's email address. This is required and will be used to identify existing subscribers.\"),\n phone: z.string().describe(\"Subscriber's phone number.\").optional(),\n fields: z.object({}).describe(\"Custom fields object for additional subscriber attributes such as birthday, gender, location, company, title, or other relevant data.\").optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs to assign the subscriber to.\").optional(),\n lastname: z.string().describe(\"Subscriber's last name.\").optional(),\n firstname: z.string().describe(\"Subscriber's first name.\").optional(),\n trigger_automation: z.boolean().describe(\"Whether to trigger email automations for this subscriber. Default is true when not specified.\").optional(),\n}).describe(\"Request model for creating or updating a subscriber.\");\nconst SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Subscriber's unique identifier\").nullable().optional(),\n email: z.string().describe(\"Subscriber's email address\").nullable().optional(),\n phone: z.string().describe(\"Subscriber's phone number\").nullable().optional(),\n fields: z.object({}).describe(\"Custom field values\").nullable().optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs the subscriber belongs to\").nullable().optional(),\n lastname: z.string().describe(\"Subscriber's last name\").nullable().optional(),\n firstname: z.string().describe(\"Subscriber's first name\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the subscriber was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the subscriber was last updated\").nullable().optional(),\n}).describe(\"Subscriber data in the response.\");\nexport const SenderCreateOrUpdateSubscriberOutput: z.ZodTypeAny = z.object({\n data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),\n message: z.union([z.string(), z.array(z.string()), z.object({})]).nullable().optional(),\n success: z.boolean().describe(\"Indicates if the operation was successful\").nullable().optional(),\n}).describe(\"Response model for creating or updating a subscriber.\");\n\nexport const senderCreateOrUpdateSubscriber = action(\"SENDER_CREATE_OR_UPDATE_SUBSCRIBER\", {\n slug: \"sender-create-or-update-subscriber\",\n name: \"Create Or Update Subscriber\",\n description: \"Tool to create a new subscriber or update an existing one in Sender.net. Use when you need to add new subscribers to your email list or update existing subscriber information. This performs an upsert operation - creates if the email doesn't exist, updates if it does.\",\n input: SenderCreateOrUpdateSubscriberInput,\n output: SenderCreateOrUpdateSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAChL,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpE,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,8DAA4EA,IAAAA,EAAE,OAAO;CACzF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAM,4DAA4D,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-or-update-subscriber.d.ts
|
|
4
|
+
declare const SenderCreateOrUpdateSubscriberInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderCreateOrUpdateSubscriberOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderCreateOrUpdateSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderCreateOrUpdateSubscriber };
|
|
9
|
+
//# sourceMappingURL=create-or-update-subscriber.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-subscriber.d.cts","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAQe;AAAA,cAYtD,oCAAA,EAAsC,CAAA,CAAE,UAIe;AAAA,cAEvD,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-or-update-subscriber.d.ts
|
|
4
|
+
declare const SenderCreateOrUpdateSubscriberInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderCreateOrUpdateSubscriberOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderCreateOrUpdateSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderCreateOrUpdateSubscriber };
|
|
9
|
+
//# sourceMappingURL=create-or-update-subscriber.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-subscriber.d.mts","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAQe;AAAA,cAYtD,oCAAA,EAAsC,CAAA,CAAE,UAIe;AAAA,cAEvD,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-or-update-subscriber.ts
|
|
4
|
+
const SenderCreateOrUpdateSubscriberInput = z.object({
|
|
5
|
+
email: z.string().describe("Subscriber's email address. This is required and will be used to identify existing subscribers."),
|
|
6
|
+
phone: z.string().describe("Subscriber's phone number.").optional(),
|
|
7
|
+
fields: z.object({}).describe("Custom fields object for additional subscriber attributes such as birthday, gender, location, company, title, or other relevant data.").optional(),
|
|
8
|
+
groups: z.array(z.string()).describe("Array of group IDs to assign the subscriber to.").optional(),
|
|
9
|
+
lastname: z.string().describe("Subscriber's last name.").optional(),
|
|
10
|
+
firstname: z.string().describe("Subscriber's first name.").optional(),
|
|
11
|
+
trigger_automation: z.boolean().describe("Whether to trigger email automations for this subscriber. Default is true when not specified.").optional()
|
|
12
|
+
}).describe("Request model for creating or updating a subscriber.");
|
|
13
|
+
const SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema = z.object({
|
|
14
|
+
id: z.string().describe("Subscriber's unique identifier").nullable().optional(),
|
|
15
|
+
email: z.string().describe("Subscriber's email address").nullable().optional(),
|
|
16
|
+
phone: z.string().describe("Subscriber's phone number").nullable().optional(),
|
|
17
|
+
fields: z.object({}).describe("Custom field values").nullable().optional(),
|
|
18
|
+
groups: z.array(z.string()).describe("Array of group IDs the subscriber belongs to").nullable().optional(),
|
|
19
|
+
lastname: z.string().describe("Subscriber's last name").nullable().optional(),
|
|
20
|
+
firstname: z.string().describe("Subscriber's first name").nullable().optional(),
|
|
21
|
+
created_at: z.string().describe("Timestamp when the subscriber was created").nullable().optional(),
|
|
22
|
+
updated_at: z.string().describe("Timestamp when the subscriber was last updated").nullable().optional()
|
|
23
|
+
}).describe("Subscriber data in the response.");
|
|
24
|
+
const senderCreateOrUpdateSubscriber = action("SENDER_CREATE_OR_UPDATE_SUBSCRIBER", {
|
|
25
|
+
slug: "sender-create-or-update-subscriber",
|
|
26
|
+
name: "Create Or Update Subscriber",
|
|
27
|
+
description: "Tool to create a new subscriber or update an existing one in Sender.net. Use when you need to add new subscribers to your email list or update existing subscriber information. This performs an upsert operation - creates if the email doesn't exist, updates if it does.",
|
|
28
|
+
input: SenderCreateOrUpdateSubscriberInput,
|
|
29
|
+
output: z.object({
|
|
30
|
+
data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),
|
|
31
|
+
message: z.union([
|
|
32
|
+
z.string(),
|
|
33
|
+
z.array(z.string()),
|
|
34
|
+
z.object({})
|
|
35
|
+
]).nullable().optional(),
|
|
36
|
+
success: z.boolean().describe("Indicates if the operation was successful").nullable().optional()
|
|
37
|
+
}).describe("Response model for creating or updating a subscriber.")
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { senderCreateOrUpdateSubscriber };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=create-or-update-subscriber.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-subscriber.mjs","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderCreateOrUpdateSubscriberInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Subscriber's email address. This is required and will be used to identify existing subscribers.\"),\n phone: z.string().describe(\"Subscriber's phone number.\").optional(),\n fields: z.object({}).describe(\"Custom fields object for additional subscriber attributes such as birthday, gender, location, company, title, or other relevant data.\").optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs to assign the subscriber to.\").optional(),\n lastname: z.string().describe(\"Subscriber's last name.\").optional(),\n firstname: z.string().describe(\"Subscriber's first name.\").optional(),\n trigger_automation: z.boolean().describe(\"Whether to trigger email automations for this subscriber. Default is true when not specified.\").optional(),\n}).describe(\"Request model for creating or updating a subscriber.\");\nconst SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Subscriber's unique identifier\").nullable().optional(),\n email: z.string().describe(\"Subscriber's email address\").nullable().optional(),\n phone: z.string().describe(\"Subscriber's phone number\").nullable().optional(),\n fields: z.object({}).describe(\"Custom field values\").nullable().optional(),\n groups: z.array(z.string()).describe(\"Array of group IDs the subscriber belongs to\").nullable().optional(),\n lastname: z.string().describe(\"Subscriber's last name\").nullable().optional(),\n firstname: z.string().describe(\"Subscriber's first name\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the subscriber was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the subscriber was last updated\").nullable().optional(),\n}).describe(\"Subscriber data in the response.\");\nexport const SenderCreateOrUpdateSubscriberOutput: z.ZodTypeAny = z.object({\n data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),\n message: z.union([z.string(), z.array(z.string()), z.object({})]).nullable().optional(),\n success: z.boolean().describe(\"Indicates if the operation was successful\").nullable().optional(),\n}).describe(\"Response model for creating or updating a subscriber.\");\n\nexport const senderCreateOrUpdateSubscriber = action(\"SENDER_CREATE_OR_UPDATE_SUBSCRIBER\", {\n slug: \"sender-create-or-update-subscriber\",\n name: \"Create Or Update Subscriber\",\n description: \"Tool to create a new subscriber or update an existing one in Sender.net. Use when you need to add new subscribers to your email list or update existing subscriber information. This performs an upsert operation - creates if the email doesn't exist, updates if it does.\",\n input: SenderCreateOrUpdateSubscriberInput,\n output: SenderCreateOrUpdateSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoD,EAAE,OAAO;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAChL,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpE,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,8DAA4E,EAAE,OAAO;CACzF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAO9C,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXgE,EAAE,OAAO;EACzE,MAAM,4DAA4D,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,MAAM,EAAE,OAAO,CAAC;GAAG,EAAE,OAAO,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-all-fields.ts
|
|
4
|
+
const SenderGetAllFieldsInput = zod.z.object({}).describe("Request model for retrieving all custom subscriber fields. No parameters required.");
|
|
5
|
+
const SenderGetAllFields_FieldItemSchema = zod.z.object({
|
|
6
|
+
fieldkey: zod.z.string().describe("Unique key identifier for the custom field.").nullable().optional(),
|
|
7
|
+
required: zod.z.boolean().describe("Indicates whether the field is required.").nullable().optional(),
|
|
8
|
+
fieldname: zod.z.string().describe("Display name of the custom field.").nullable().optional(),
|
|
9
|
+
fieldtype: zod.z.string().describe("Data type of the field (e.g., text, number, date).").nullable().optional(),
|
|
10
|
+
default_value: zod.z.union([
|
|
11
|
+
zod.z.string(),
|
|
12
|
+
zod.z.number().int(),
|
|
13
|
+
zod.z.number(),
|
|
14
|
+
zod.z.boolean()
|
|
15
|
+
]).nullable().optional()
|
|
16
|
+
}).describe("Represents a single custom subscriber field.");
|
|
17
|
+
const SenderGetAllFieldsOutput = zod.z.object({ data: zod.z.array(SenderGetAllFields_FieldItemSchema).describe("List of custom subscriber fields.").nullable().optional() }).describe("Response model for listing all custom subscriber fields.");
|
|
18
|
+
const senderGetAllFields = require_action.action("SENDER_GET_ALL_FIELDS", {
|
|
19
|
+
slug: "sender-get-all-fields",
|
|
20
|
+
name: "Get All Fields",
|
|
21
|
+
description: "Tool to retrieve a list of all custom subscriber fields configured in the Sender.net account. Use when you need to view available fields for email personalization, segmentation, or managing subscriber data.",
|
|
22
|
+
input: SenderGetAllFieldsInput,
|
|
23
|
+
output: SenderGetAllFieldsOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.senderGetAllFields = senderGetAllFields;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-all-fields.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-all-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetAllFieldsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving all custom subscriber fields. No parameters required.\");\nconst SenderGetAllFields_FieldItemSchema: z.ZodTypeAny = z.object({\n fieldkey: z.string().describe(\"Unique key identifier for the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Indicates whether the field is required.\").nullable().optional(),\n fieldname: z.string().describe(\"Display name of the custom field.\").nullable().optional(),\n fieldtype: z.string().describe(\"Data type of the field (e.g., text, number, date).\").nullable().optional(),\n default_value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n}).describe(\"Represents a single custom subscriber field.\");\nexport const SenderGetAllFieldsOutput: z.ZodTypeAny = z.object({\n data: z.array(SenderGetAllFields_FieldItemSchema).describe(\"List of custom subscriber fields.\").nullable().optional(),\n}).describe(\"Response model for listing all custom subscriber fields.\");\n\nexport const senderGetAllFields = action(\"SENDER_GET_ALL_FIELDS\", {\n slug: \"sender-get-all-fields\",\n name: \"Get All Fields\",\n description: \"Tool to retrieve a list of all custom subscriber fields configured in the Sender.net account. Use when you need to view available fields for email personalization, segmentation, or managing subscriber data.\",\n input: SenderGetAllFieldsInput,\n output: SenderGetAllFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAC/J,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,eAAeA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-all-fields.d.ts
|
|
4
|
+
declare const SenderGetAllFieldsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderGetAllFieldsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderGetAllFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderGetAllFields };
|
|
9
|
+
//# sourceMappingURL=get-all-fields.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-fields.d.cts","names":[],"sources":["../../src/actions/get-all-fields.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAAwH;AAAA,cAQnJ,wBAAA,EAA0B,CAAA,CAAE,UAE8B;AAAA,cAE1D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-all-fields.d.ts
|
|
4
|
+
declare const SenderGetAllFieldsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderGetAllFieldsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderGetAllFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderGetAllFields };
|
|
9
|
+
//# sourceMappingURL=get-all-fields.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-fields.d.mts","names":[],"sources":["../../src/actions/get-all-fields.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAAwH;AAAA,cAQnJ,wBAAA,EAA0B,CAAA,CAAE,UAE8B;AAAA,cAE1D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-all-fields.ts
|
|
4
|
+
const SenderGetAllFieldsInput = z.object({}).describe("Request model for retrieving all custom subscriber fields. No parameters required.");
|
|
5
|
+
const SenderGetAllFields_FieldItemSchema = z.object({
|
|
6
|
+
fieldkey: z.string().describe("Unique key identifier for the custom field.").nullable().optional(),
|
|
7
|
+
required: z.boolean().describe("Indicates whether the field is required.").nullable().optional(),
|
|
8
|
+
fieldname: z.string().describe("Display name of the custom field.").nullable().optional(),
|
|
9
|
+
fieldtype: z.string().describe("Data type of the field (e.g., text, number, date).").nullable().optional(),
|
|
10
|
+
default_value: z.union([
|
|
11
|
+
z.string(),
|
|
12
|
+
z.number().int(),
|
|
13
|
+
z.number(),
|
|
14
|
+
z.boolean()
|
|
15
|
+
]).nullable().optional()
|
|
16
|
+
}).describe("Represents a single custom subscriber field.");
|
|
17
|
+
const senderGetAllFields = action("SENDER_GET_ALL_FIELDS", {
|
|
18
|
+
slug: "sender-get-all-fields",
|
|
19
|
+
name: "Get All Fields",
|
|
20
|
+
description: "Tool to retrieve a list of all custom subscriber fields configured in the Sender.net account. Use when you need to view available fields for email personalization, segmentation, or managing subscriber data.",
|
|
21
|
+
input: SenderGetAllFieldsInput,
|
|
22
|
+
output: z.object({ data: z.array(SenderGetAllFields_FieldItemSchema).describe("List of custom subscriber fields.").nullable().optional() }).describe("Response model for listing all custom subscriber fields.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { senderGetAllFields };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=get-all-fields.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-fields.mjs","names":[],"sources":["../../src/actions/get-all-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetAllFieldsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving all custom subscriber fields. No parameters required.\");\nconst SenderGetAllFields_FieldItemSchema: z.ZodTypeAny = z.object({\n fieldkey: z.string().describe(\"Unique key identifier for the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Indicates whether the field is required.\").nullable().optional(),\n fieldname: z.string().describe(\"Display name of the custom field.\").nullable().optional(),\n fieldtype: z.string().describe(\"Data type of the field (e.g., text, number, date).\").nullable().optional(),\n default_value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n}).describe(\"Represents a single custom subscriber field.\");\nexport const SenderGetAllFieldsOutput: z.ZodTypeAny = z.object({\n data: z.array(SenderGetAllFields_FieldItemSchema).describe(\"List of custom subscriber fields.\").nullable().optional(),\n}).describe(\"Response model for listing all custom subscriber fields.\");\n\nexport const senderGetAllFields = action(\"SENDER_GET_ALL_FIELDS\", {\n slug: \"sender-get-all-fields\",\n name: \"Get All Fields\",\n description: \"Tool to retrieve a list of all custom subscriber fields configured in the Sender.net account. Use when you need to view available fields for email personalization, segmentation, or managing subscriber data.\",\n input: SenderGetAllFieldsInput,\n output: SenderGetAllFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAC/J,MAAM,qCAAmD,EAAE,OAAO;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,eAAe,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAK1D,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-all-workflows.ts
|
|
4
|
+
const SenderGetAllWorkflowsInput = zod.z.object({}).describe("Request model for retrieving all automation workflows. No parameters required.");
|
|
5
|
+
const SenderGetAllWorkflows_WorkflowSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the workflow.").nullable().optional(),
|
|
7
|
+
name: zod.z.string().describe("Name of the workflow.").nullable().optional(),
|
|
8
|
+
status: zod.z.string().describe("Status of the workflow (e.g., active, inactive).").nullable().optional(),
|
|
9
|
+
created_at: zod.z.string().describe("Timestamp when the workflow was created.").nullable().optional(),
|
|
10
|
+
updated_at: zod.z.string().describe("Timestamp when the workflow was last updated.").nullable().optional()
|
|
11
|
+
}).describe("Represents a single automation workflow.");
|
|
12
|
+
const SenderGetAllWorkflowsOutput = zod.z.object({ data: zod.z.array(SenderGetAllWorkflows_WorkflowSchema).describe("List of automation workflows.").nullable().optional() }).describe("Response model for listing all automation workflows.");
|
|
13
|
+
const senderGetAllWorkflows = require_action.action("SENDER_GET_ALL_WORKFLOWS", {
|
|
14
|
+
slug: "sender-get-all-workflows",
|
|
15
|
+
name: "Get All Workflows",
|
|
16
|
+
description: "Tool to retrieve a list of all automation workflows in the Sender account. Use when you need to view or manage automation workflows.",
|
|
17
|
+
input: SenderGetAllWorkflowsInput,
|
|
18
|
+
output: SenderGetAllWorkflowsOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.senderGetAllWorkflows = senderGetAllWorkflows;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=get-all-workflows.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-workflows.cjs","names":["z","action"],"sources":["../../src/actions/get-all-workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetAllWorkflowsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving all automation workflows. No parameters required.\");\nconst SenderGetAllWorkflows_WorkflowSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable().optional(),\n name: z.string().describe(\"Name of the workflow.\").nullable().optional(),\n status: z.string().describe(\"Status of the workflow (e.g., active, inactive).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the workflow was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the workflow was last updated.\").nullable().optional(),\n}).describe(\"Represents a single automation workflow.\");\nexport const SenderGetAllWorkflowsOutput: z.ZodTypeAny = z.object({\n data: z.array(SenderGetAllWorkflows_WorkflowSchema).describe(\"List of automation workflows.\").nullable().optional(),\n}).describe(\"Response model for listing all automation workflows.\");\n\nexport const senderGetAllWorkflows = action(\"SENDER_GET_ALL_WORKFLOWS\", {\n slug: \"sender-get-all-workflows\",\n name: \"Get All Workflows\",\n description: \"Tool to retrieve a list of all automation workflows in the Sender account. Use when you need to view or manage automation workflows.\",\n input: SenderGetAllWorkflowsInput,\n output: SenderGetAllWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC9J,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-all-workflows.d.ts
|
|
4
|
+
declare const SenderGetAllWorkflowsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderGetAllWorkflowsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderGetAllWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderGetAllWorkflows };
|
|
9
|
+
//# sourceMappingURL=get-all-workflows.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-workflows.d.cts","names":[],"sources":["../../src/actions/get-all-workflows.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAoH;AAAA,cAQlJ,2BAAA,EAA6B,CAAA,CAAE,UAEuB;AAAA,cAEtD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-all-workflows.d.ts
|
|
4
|
+
declare const SenderGetAllWorkflowsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SenderGetAllWorkflowsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const senderGetAllWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { senderGetAllWorkflows };
|
|
9
|
+
//# sourceMappingURL=get-all-workflows.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-workflows.d.mts","names":[],"sources":["../../src/actions/get-all-workflows.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAoH;AAAA,cAQlJ,2BAAA,EAA6B,CAAA,CAAE,UAEuB;AAAA,cAEtD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-all-workflows.ts
|
|
4
|
+
const SenderGetAllWorkflowsInput = z.object({}).describe("Request model for retrieving all automation workflows. No parameters required.");
|
|
5
|
+
const SenderGetAllWorkflows_WorkflowSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier for the workflow.").nullable().optional(),
|
|
7
|
+
name: z.string().describe("Name of the workflow.").nullable().optional(),
|
|
8
|
+
status: z.string().describe("Status of the workflow (e.g., active, inactive).").nullable().optional(),
|
|
9
|
+
created_at: z.string().describe("Timestamp when the workflow was created.").nullable().optional(),
|
|
10
|
+
updated_at: z.string().describe("Timestamp when the workflow was last updated.").nullable().optional()
|
|
11
|
+
}).describe("Represents a single automation workflow.");
|
|
12
|
+
const senderGetAllWorkflows = action("SENDER_GET_ALL_WORKFLOWS", {
|
|
13
|
+
slug: "sender-get-all-workflows",
|
|
14
|
+
name: "Get All Workflows",
|
|
15
|
+
description: "Tool to retrieve a list of all automation workflows in the Sender account. Use when you need to view or manage automation workflows.",
|
|
16
|
+
input: SenderGetAllWorkflowsInput,
|
|
17
|
+
output: z.object({ data: z.array(SenderGetAllWorkflows_WorkflowSchema).describe("List of automation workflows.").nullable().optional() }).describe("Response model for listing all automation workflows.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { senderGetAllWorkflows };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=get-all-workflows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-workflows.mjs","names":[],"sources":["../../src/actions/get-all-workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetAllWorkflowsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving all automation workflows. No parameters required.\");\nconst SenderGetAllWorkflows_WorkflowSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable().optional(),\n name: z.string().describe(\"Name of the workflow.\").nullable().optional(),\n status: z.string().describe(\"Status of the workflow (e.g., active, inactive).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the workflow was created.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the workflow was last updated.\").nullable().optional(),\n}).describe(\"Represents a single automation workflow.\");\nexport const SenderGetAllWorkflowsOutput: z.ZodTypeAny = z.object({\n data: z.array(SenderGetAllWorkflows_WorkflowSchema).describe(\"List of automation workflows.\").nullable().optional(),\n}).describe(\"Response model for listing all automation workflows.\");\n\nexport const senderGetAllWorkflows = action(\"SENDER_GET_ALL_WORKFLOWS\", {\n slug: \"sender-get-all-workflows\",\n name: \"Get All Workflows\",\n description: \"Tool to retrieve a list of all automation workflows in the Sender account. Use when you need to view or manage automation workflows.\",\n input: SenderGetAllWorkflowsInput,\n output: SenderGetAllWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC9J,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,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;AACvG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-campaign-by-id.ts
|
|
4
|
+
const SenderGetCampaignByIdInput = zod.z.object({ campaign_id: zod.z.string().describe("The unique identifier of the campaign to retrieve. Example: '1'") }).describe("Request model for retrieving a specific campaign by ID.");
|
|
5
|
+
const SenderGetCampaignByIdOutput = zod.z.object({
|
|
6
|
+
opened: zod.z.number().int().describe("Total number of opens.").nullable().optional(),
|
|
7
|
+
status: zod.z.string().describe("Campaign status (draft, scheduled, sent, etc.).").nullable().optional(),
|
|
8
|
+
clicked: zod.z.number().int().describe("Total number of clicks.").nullable().optional(),
|
|
9
|
+
sent_at: zod.z.string().describe("Timestamp when campaign was sent.").nullable().optional(),
|
|
10
|
+
subject: zod.z.string().describe("Email subject line.").nullable().optional(),
|
|
11
|
+
created_at: zod.z.string().describe("Timestamp when campaign was created.").nullable().optional(),
|
|
12
|
+
campaign_id: zod.z.string().describe("Unique identifier for the campaign.").nullable().optional(),
|
|
13
|
+
hard_bounced: zod.z.number().int().describe("Number of permanent delivery failures.").nullable().optional(),
|
|
14
|
+
soft_bounced: zod.z.number().int().describe("Number of temporary delivery failures.").nullable().optional(),
|
|
15
|
+
unique_opens: zod.z.number().int().describe("Number of unique recipients who opened.").nullable().optional(),
|
|
16
|
+
unsubscribed: zod.z.number().int().describe("Number of unsubscribe events.").nullable().optional(),
|
|
17
|
+
campaign_name: zod.z.string().describe("Name of the campaign.").nullable().optional(),
|
|
18
|
+
unique_clicks: zod.z.number().int().describe("Number of unique recipients who clicked.").nullable().optional(),
|
|
19
|
+
spam_complaints: zod.z.number().int().describe("Number of spam reports.").nullable().optional(),
|
|
20
|
+
total_emails_sent: zod.z.number().int().describe("Total number of emails sent.").nullable().optional(),
|
|
21
|
+
total_emails_delivered: zod.z.number().int().describe("Number of successfully delivered emails.").nullable().optional()
|
|
22
|
+
}).describe("Response model for a campaign retrieved from Sender.");
|
|
23
|
+
const senderGetCampaignById = require_action.action("SENDER_GET_CAMPAIGN_BY_ID", {
|
|
24
|
+
slug: "sender-get-campaign-by-id",
|
|
25
|
+
name: "Get Campaign By ID",
|
|
26
|
+
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.",
|
|
27
|
+
input: SenderGetCampaignByIdInput,
|
|
28
|
+
output: SenderGetCampaignByIdOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.senderGetCampaignById = senderGetCampaignById;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-campaign-by-id.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-campaign-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SenderGetCampaignByIdInput: z.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACpG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|