@keystrokehq/sender 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-field.cjs +2 -2
- package/dist/actions/create-field.cjs.map +1 -1
- package/dist/actions/create-field.d.cts +22 -3
- package/dist/actions/create-field.d.cts.map +1 -1
- package/dist/actions/create-field.d.mts +22 -3
- package/dist/actions/create-field.d.mts.map +1 -1
- package/dist/actions/create-field.mjs +2 -2
- package/dist/actions/create-field.mjs.map +1 -1
- package/dist/actions/create-or-update-subscriber.cjs +5 -5
- package/dist/actions/create-or-update-subscriber.cjs.map +1 -1
- package/dist/actions/create-or-update-subscriber.d.cts +33 -3
- package/dist/actions/create-or-update-subscriber.d.cts.map +1 -1
- package/dist/actions/create-or-update-subscriber.d.mts +33 -3
- package/dist/actions/create-or-update-subscriber.d.mts.map +1 -1
- package/dist/actions/create-or-update-subscriber.mjs +5 -5
- package/dist/actions/create-or-update-subscriber.mjs.map +1 -1
- package/dist/actions/get-all-fields.cjs +2 -2
- package/dist/actions/get-all-fields.cjs.map +1 -1
- package/dist/actions/get-all-fields.d.cts +11 -3
- package/dist/actions/get-all-fields.d.cts.map +1 -1
- package/dist/actions/get-all-fields.d.mts +11 -3
- package/dist/actions/get-all-fields.d.mts.map +1 -1
- package/dist/actions/get-all-fields.mjs +2 -2
- package/dist/actions/get-all-fields.mjs.map +1 -1
- package/dist/actions/get-all-workflows.cjs +2 -2
- package/dist/actions/get-all-workflows.cjs.map +1 -1
- package/dist/actions/get-all-workflows.d.cts +11 -3
- package/dist/actions/get-all-workflows.d.cts.map +1 -1
- package/dist/actions/get-all-workflows.d.mts +11 -3
- package/dist/actions/get-all-workflows.d.mts.map +1 -1
- package/dist/actions/get-all-workflows.mjs +2 -2
- package/dist/actions/get-all-workflows.mjs.map +1 -1
- package/dist/actions/get-campaign-by-id.cjs +1 -1
- package/dist/actions/get-campaign-by-id.cjs.map +1 -1
- package/dist/actions/get-campaign-by-id.d.cts +24 -3
- package/dist/actions/get-campaign-by-id.d.cts.map +1 -1
- package/dist/actions/get-campaign-by-id.d.mts +24 -3
- package/dist/actions/get-campaign-by-id.d.mts.map +1 -1
- package/dist/actions/get-campaign-by-id.mjs +1 -1
- package/dist/actions/get-campaign-by-id.mjs.map +1 -1
- package/dist/actions/get-group-by-id.cjs +1 -1
- package/dist/actions/get-group-by-id.cjs.map +1 -1
- package/dist/actions/get-group-by-id.d.cts +17 -3
- package/dist/actions/get-group-by-id.d.cts.map +1 -1
- package/dist/actions/get-group-by-id.d.mts +17 -3
- package/dist/actions/get-group-by-id.d.mts.map +1 -1
- package/dist/actions/get-group-by-id.mjs +1 -1
- package/dist/actions/get-group-by-id.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-id.cjs +2 -2
- package/dist/actions/get-subscriber-by-id.cjs.map +1 -1
- package/dist/actions/get-subscriber-by-id.d.cts +17 -3
- package/dist/actions/get-subscriber-by-id.d.cts.map +1 -1
- package/dist/actions/get-subscriber-by-id.d.mts +17 -3
- package/dist/actions/get-subscriber-by-id.d.mts.map +1 -1
- package/dist/actions/get-subscriber-by-id.mjs +2 -2
- package/dist/actions/get-subscriber-by-id.mjs.map +1 -1
- package/dist/actions/update-subscriber-fields.cjs +4 -4
- package/dist/actions/update-subscriber-fields.cjs.map +1 -1
- package/dist/actions/update-subscriber-fields.d.cts +30 -3
- package/dist/actions/update-subscriber-fields.d.cts.map +1 -1
- package/dist/actions/update-subscriber-fields.d.mts +30 -3
- package/dist/actions/update-subscriber-fields.d.mts.map +1 -1
- package/dist/actions/update-subscriber-fields.mjs +4 -4
- package/dist/actions/update-subscriber-fields.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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.map
CHANGED
|
@@ -1 +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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
|
|
@@ -16,7 +16,7 @@ const SenderCreateField_FieldDataSchema = zod.z.object({
|
|
|
16
16
|
zod.z.number(),
|
|
17
17
|
zod.z.boolean()
|
|
18
18
|
]).nullable().optional()
|
|
19
|
-
}).describe("Represents the created field data in the response.");
|
|
19
|
+
}).passthrough().describe("Represents the created field data in the response.");
|
|
20
20
|
const SenderCreateFieldOutput = zod.z.object({
|
|
21
21
|
data: SenderCreateField_FieldDataSchema.nullable().optional(),
|
|
22
22
|
message: zod.z.string().describe("Message about the operation result").nullable().optional(),
|
|
@@ -24,7 +24,7 @@ const SenderCreateFieldOutput = zod.z.object({
|
|
|
24
24
|
fieldkey: zod.z.string().describe("Unique key identifier for the created custom field").nullable().optional(),
|
|
25
25
|
fieldname: zod.z.string().describe("Display name of the created custom field").nullable().optional(),
|
|
26
26
|
fieldtype: zod.z.string().describe("Data type of the created field").nullable().optional()
|
|
27
|
-
}).describe("Response model for creating a custom subscriber field.");
|
|
27
|
+
}).passthrough().describe("Response model for creating a custom subscriber field.");
|
|
28
28
|
const senderCreateField = require_action.action("SENDER_CREATE_FIELD", {
|
|
29
29
|
slug: "sender-create-field",
|
|
30
30
|
name: "Create Field",
|
|
@@ -1 +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
|
|
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.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.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}).passthrough().describe(\"Represents the created field data in the response.\");\nexport const SenderCreateFieldOutput = 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}).passthrough().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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-field.d.ts
|
|
4
|
-
declare const SenderCreateFieldInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SenderCreateFieldInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SenderCreateFieldOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
fieldkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
fieldname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
fieldtype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
|
+
fieldkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
fieldname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
fieldtype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const senderCreateField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { senderCreateField };
|
|
9
28
|
//# sourceMappingURL=create-field.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-field.d.cts","names":[],"sources":["../../src/actions/create-field.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"create-field.d.cts","names":[],"sources":["../../src/actions/create-field.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAWtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-field.d.ts
|
|
4
|
-
declare const SenderCreateFieldInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SenderCreateFieldInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SenderCreateFieldOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
fieldkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
fieldname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
fieldtype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
|
+
fieldkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
fieldname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
fieldtype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const senderCreateField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { senderCreateField };
|
|
9
28
|
//# sourceMappingURL=create-field.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-field.d.mts","names":[],"sources":["../../src/actions/create-field.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"create-field.d.mts","names":[],"sources":["../../src/actions/create-field.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAWtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cASvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -16,7 +16,7 @@ const SenderCreateField_FieldDataSchema = z.object({
|
|
|
16
16
|
z.number(),
|
|
17
17
|
z.boolean()
|
|
18
18
|
]).nullable().optional()
|
|
19
|
-
}).describe("Represents the created field data in the response.");
|
|
19
|
+
}).passthrough().describe("Represents the created field data in the response.");
|
|
20
20
|
const senderCreateField = action("SENDER_CREATE_FIELD", {
|
|
21
21
|
slug: "sender-create-field",
|
|
22
22
|
name: "Create Field",
|
|
@@ -29,7 +29,7 @@ const senderCreateField = action("SENDER_CREATE_FIELD", {
|
|
|
29
29
|
fieldkey: z.string().describe("Unique key identifier for the created custom field").nullable().optional(),
|
|
30
30
|
fieldname: z.string().describe("Display name of the created custom field").nullable().optional(),
|
|
31
31
|
fieldtype: z.string().describe("Data type of the created field").nullable().optional()
|
|
32
|
-
}).describe("Response model for creating a custom subscriber field.")
|
|
32
|
+
}).passthrough().describe("Response model for creating a custom subscriber field.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { senderCreateField };
|
|
@@ -1 +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
|
|
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.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.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}).passthrough().describe(\"Represents the created field data in the response.\");\nexport const SenderCreateFieldOutput = 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}).passthrough().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,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CACtL,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;AAC9H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,oCAAoC,EAAE,OAAO;CACjD,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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAU9E,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,EAAE,OAAO;EAC9C,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,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ let zod = require("zod");
|
|
|
4
4
|
const SenderCreateOrUpdateSubscriberInput = zod.z.object({
|
|
5
5
|
email: zod.z.string().describe("Subscriber's email address. This is required and will be used to identify existing subscribers."),
|
|
6
6
|
phone: zod.z.string().describe("Subscriber's phone number.").optional(),
|
|
7
|
-
fields: zod.z.
|
|
7
|
+
fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields object for additional subscriber attributes such as birthday, gender, location, company, title, or other relevant data.").optional(),
|
|
8
8
|
groups: zod.z.array(zod.z.string()).describe("Array of group IDs to assign the subscriber to.").optional(),
|
|
9
9
|
lastname: zod.z.string().describe("Subscriber's last name.").optional(),
|
|
10
10
|
firstname: zod.z.string().describe("Subscriber's first name.").optional(),
|
|
@@ -14,22 +14,22 @@ const SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema = zod.z.object
|
|
|
14
14
|
id: zod.z.string().describe("Subscriber's unique identifier").nullable().optional(),
|
|
15
15
|
email: zod.z.string().describe("Subscriber's email address").nullable().optional(),
|
|
16
16
|
phone: zod.z.string().describe("Subscriber's phone number").nullable().optional(),
|
|
17
|
-
fields: zod.z.
|
|
17
|
+
fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values").nullable().optional(),
|
|
18
18
|
groups: zod.z.array(zod.z.string()).describe("Array of group IDs the subscriber belongs to").nullable().optional(),
|
|
19
19
|
lastname: zod.z.string().describe("Subscriber's last name").nullable().optional(),
|
|
20
20
|
firstname: zod.z.string().describe("Subscriber's first name").nullable().optional(),
|
|
21
21
|
created_at: zod.z.string().describe("Timestamp when the subscriber was created").nullable().optional(),
|
|
22
22
|
updated_at: zod.z.string().describe("Timestamp when the subscriber was last updated").nullable().optional()
|
|
23
|
-
}).describe("Subscriber data in the response.");
|
|
23
|
+
}).passthrough().describe("Subscriber data in the response.");
|
|
24
24
|
const SenderCreateOrUpdateSubscriberOutput = zod.z.object({
|
|
25
25
|
data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),
|
|
26
26
|
message: zod.z.union([
|
|
27
27
|
zod.z.string(),
|
|
28
28
|
zod.z.array(zod.z.string()),
|
|
29
|
-
zod.z.
|
|
29
|
+
zod.z.record(zod.z.string(), zod.z.unknown())
|
|
30
30
|
]).nullable().optional(),
|
|
31
31
|
success: zod.z.boolean().describe("Indicates if the operation was successful").nullable().optional()
|
|
32
|
-
}).describe("Response model for creating or updating a subscriber.");
|
|
32
|
+
}).passthrough().describe("Response model for creating or updating a subscriber.");
|
|
33
33
|
const senderCreateOrUpdateSubscriber = require_action.action("SENDER_CREATE_OR_UPDATE_SUBSCRIBER", {
|
|
34
34
|
slug: "sender-create-or-update-subscriber",
|
|
35
35
|
name: "Create Or Update Subscriber",
|
|
@@ -1 +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
|
|
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.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.record(z.string(), z.unknown()).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.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.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 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}).passthrough().describe(\"Subscriber data in the response.\");\nexport const SenderCreateOrUpdateSubscriberOutput = z.object({\n data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),\n message: z.union([z.string(), z.array(z.string()), z.record(z.string(), z.unknown())]).nullable().optional(),\n success: z.boolean().describe(\"Indicates if the operation was successful\").nullable().optional(),\n}).passthrough().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,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CACrM,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,8DAA8DA,IAAAA,EAAE,OAAO;CAC3E,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,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,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,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-or-update-subscriber.d.ts
|
|
4
|
-
declare const SenderCreateOrUpdateSubscriberInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SenderCreateOrUpdateSubscriberInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
7
|
+
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
lastname: z.ZodOptional<z.ZodString>;
|
|
10
|
+
firstname: z.ZodOptional<z.ZodString>;
|
|
11
|
+
trigger_automation: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SenderCreateOrUpdateSubscriberOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
26
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const senderCreateOrUpdateSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
email: string;
|
|
30
|
+
phone?: string | undefined;
|
|
31
|
+
fields?: Record<string, unknown> | undefined;
|
|
32
|
+
groups?: string[] | undefined;
|
|
33
|
+
lastname?: string | undefined;
|
|
34
|
+
firstname?: string | undefined;
|
|
35
|
+
trigger_automation?: boolean | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { senderCreateOrUpdateSubscriber };
|
|
9
39
|
//# sourceMappingURL=create-or-update-subscriber.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-subscriber.d.cts","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"create-or-update-subscriber.d.cts","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAMpC,8BAAA,gCAA8B,wBAAA;;;WAMzC,MAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-or-update-subscriber.d.ts
|
|
4
|
-
declare const SenderCreateOrUpdateSubscriberInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SenderCreateOrUpdateSubscriberInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
7
|
+
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
lastname: z.ZodOptional<z.ZodString>;
|
|
10
|
+
firstname: z.ZodOptional<z.ZodString>;
|
|
11
|
+
trigger_automation: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SenderCreateOrUpdateSubscriberOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
lastname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
26
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const senderCreateOrUpdateSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
email: string;
|
|
30
|
+
phone?: string | undefined;
|
|
31
|
+
fields?: Record<string, unknown> | undefined;
|
|
32
|
+
groups?: string[] | undefined;
|
|
33
|
+
lastname?: string | undefined;
|
|
34
|
+
firstname?: string | undefined;
|
|
35
|
+
trigger_automation?: boolean | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { senderCreateOrUpdateSubscriber };
|
|
9
39
|
//# sourceMappingURL=create-or-update-subscriber.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-subscriber.d.mts","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"create-or-update-subscriber.d.mts","names":[],"sources":["../../src/actions/create-or-update-subscriber.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAMpC,8BAAA,gCAA8B,wBAAA;;;WAMzC,MAAA"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
const SenderCreateOrUpdateSubscriberInput = z.object({
|
|
5
5
|
email: z.string().describe("Subscriber's email address. This is required and will be used to identify existing subscribers."),
|
|
6
6
|
phone: z.string().describe("Subscriber's phone number.").optional(),
|
|
7
|
-
fields: z.
|
|
7
|
+
fields: z.record(z.string(), z.unknown()).describe("Custom fields object for additional subscriber attributes such as birthday, gender, location, company, title, or other relevant data.").optional(),
|
|
8
8
|
groups: z.array(z.string()).describe("Array of group IDs to assign the subscriber to.").optional(),
|
|
9
9
|
lastname: z.string().describe("Subscriber's last name.").optional(),
|
|
10
10
|
firstname: z.string().describe("Subscriber's first name.").optional(),
|
|
@@ -14,13 +14,13 @@ const SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema = z.object({
|
|
|
14
14
|
id: z.string().describe("Subscriber's unique identifier").nullable().optional(),
|
|
15
15
|
email: z.string().describe("Subscriber's email address").nullable().optional(),
|
|
16
16
|
phone: z.string().describe("Subscriber's phone number").nullable().optional(),
|
|
17
|
-
fields: z.
|
|
17
|
+
fields: z.record(z.string(), z.unknown()).describe("Custom field values").nullable().optional(),
|
|
18
18
|
groups: z.array(z.string()).describe("Array of group IDs the subscriber belongs to").nullable().optional(),
|
|
19
19
|
lastname: z.string().describe("Subscriber's last name").nullable().optional(),
|
|
20
20
|
firstname: z.string().describe("Subscriber's first name").nullable().optional(),
|
|
21
21
|
created_at: z.string().describe("Timestamp when the subscriber was created").nullable().optional(),
|
|
22
22
|
updated_at: z.string().describe("Timestamp when the subscriber was last updated").nullable().optional()
|
|
23
|
-
}).describe("Subscriber data in the response.");
|
|
23
|
+
}).passthrough().describe("Subscriber data in the response.");
|
|
24
24
|
const senderCreateOrUpdateSubscriber = action("SENDER_CREATE_OR_UPDATE_SUBSCRIBER", {
|
|
25
25
|
slug: "sender-create-or-update-subscriber",
|
|
26
26
|
name: "Create Or Update Subscriber",
|
|
@@ -31,10 +31,10 @@ const senderCreateOrUpdateSubscriber = action("SENDER_CREATE_OR_UPDATE_SUBSCRIBE
|
|
|
31
31
|
message: z.union([
|
|
32
32
|
z.string(),
|
|
33
33
|
z.array(z.string()),
|
|
34
|
-
z.
|
|
34
|
+
z.record(z.string(), z.unknown())
|
|
35
35
|
]).nullable().optional(),
|
|
36
36
|
success: z.boolean().describe("Indicates if the operation was successful").nullable().optional()
|
|
37
|
-
}).describe("Response model for creating or updating a subscriber.")
|
|
37
|
+
}).passthrough().describe("Response model for creating or updating a subscriber.")
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { senderCreateOrUpdateSubscriber };
|
|
@@ -1 +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
|
|
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.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.record(z.string(), z.unknown()).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.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.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 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}).passthrough().describe(\"Subscriber data in the response.\");\nexport const SenderCreateOrUpdateSubscriberOutput = z.object({\n data: SenderCreateOrUpdateSubscriber_SubscriberResponseDataSchema.nullable().optional(),\n message: z.union([z.string(), z.array(z.string()), z.record(z.string(), z.unknown())]).nullable().optional(),\n success: z.boolean().describe(\"Indicates if the operation was successful\").nullable().optional(),\n}).passthrough().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,sCAAsC,EAAE,OAAO;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CACrM,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,8DAA8D,EAAE,OAAO;CAC3E,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,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,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAO5D,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXkD,EAAE,OAAO;EAC3D,MAAM,4DAA4D,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,MAAM,EAAE,OAAO,CAAC;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -13,8 +13,8 @@ const SenderGetAllFields_FieldItemSchema = zod.z.object({
|
|
|
13
13
|
zod.z.number(),
|
|
14
14
|
zod.z.boolean()
|
|
15
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.");
|
|
16
|
+
}).passthrough().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() }).passthrough().describe("Response model for listing all custom subscriber fields.");
|
|
18
18
|
const senderGetAllFields = require_action.action("SENDER_GET_ALL_FIELDS", {
|
|
19
19
|
slug: "sender-get-all-fields",
|
|
20
20
|
name: "Get All Fields",
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for retrieving all custom subscriber fields. No parameters required.\");\nconst SenderGetAllFields_FieldItemSchema = 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}).passthrough().describe(\"Represents a single custom subscriber field.\");\nexport const SenderGetAllFieldsOutput = z.object({\n data: z.array(SenderGetAllFields_FieldItemSchema).describe(\"List of custom subscriber fields.\").nullable().optional(),\n}).passthrough().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,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACjJ,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-fields.d.ts
|
|
4
|
-
declare const SenderGetAllFieldsInput: z.
|
|
5
|
-
declare const SenderGetAllFieldsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SenderGetAllFieldsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SenderGetAllFieldsOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
fieldkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9
|
+
fieldname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
fieldtype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>;
|
|
12
|
+
}, z.core.$loose>>>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const senderGetAllFields: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { senderGetAllFields };
|
|
9
17
|
//# sourceMappingURL=get-all-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-fields.d.cts","names":[],"sources":["../../src/actions/get-all-fields.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-all-fields.d.cts","names":[],"sources":["../../src/actions/get-all-fields.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-fields.d.ts
|
|
4
|
-
declare const SenderGetAllFieldsInput: z.
|
|
5
|
-
declare const SenderGetAllFieldsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SenderGetAllFieldsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SenderGetAllFieldsOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
fieldkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9
|
+
fieldname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
fieldtype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
default_value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>;
|
|
12
|
+
}, z.core.$loose>>>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const senderGetAllFields: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { senderGetAllFields };
|
|
9
17
|
//# sourceMappingURL=get-all-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-fields.d.mts","names":[],"sources":["../../src/actions/get-all-fields.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-all-fields.d.mts","names":[],"sources":["../../src/actions/get-all-fields.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -13,13 +13,13 @@ const SenderGetAllFields_FieldItemSchema = z.object({
|
|
|
13
13
|
z.number(),
|
|
14
14
|
z.boolean()
|
|
15
15
|
]).nullable().optional()
|
|
16
|
-
}).describe("Represents a single custom subscriber field.");
|
|
16
|
+
}).passthrough().describe("Represents a single custom subscriber field.");
|
|
17
17
|
const senderGetAllFields = action("SENDER_GET_ALL_FIELDS", {
|
|
18
18
|
slug: "sender-get-all-fields",
|
|
19
19
|
name: "Get All Fields",
|
|
20
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
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.")
|
|
22
|
+
output: z.object({ data: z.array(SenderGetAllFields_FieldItemSchema).describe("List of custom subscriber fields.").nullable().optional() }).passthrough().describe("Response model for listing all custom subscriber fields.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { senderGetAllFields };
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for retrieving all custom subscriber fields. No parameters required.\");\nconst SenderGetAllFields_FieldItemSchema = 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}).passthrough().describe(\"Represents a single custom subscriber field.\");\nexport const SenderGetAllFieldsOutput = z.object({\n data: z.array(SenderGetAllFields_FieldItemSchema).describe(\"List of custom subscriber fields.\").nullable().optional(),\n}).passthrough().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,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACjJ,MAAM,qCAAqC,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -8,8 +8,8 @@ const SenderGetAllWorkflows_WorkflowSchema = zod.z.object({
|
|
|
8
8
|
status: zod.z.string().describe("Status of the workflow (e.g., active, inactive).").nullable().optional(),
|
|
9
9
|
created_at: zod.z.string().describe("Timestamp when the workflow was created.").nullable().optional(),
|
|
10
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.");
|
|
11
|
+
}).passthrough().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() }).passthrough().describe("Response model for listing all automation workflows.");
|
|
13
13
|
const senderGetAllWorkflows = require_action.action("SENDER_GET_ALL_WORKFLOWS", {
|
|
14
14
|
slug: "sender-get-all-workflows",
|
|
15
15
|
name: "Get All Workflows",
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for retrieving all automation workflows. No parameters required.\");\nconst SenderGetAllWorkflows_WorkflowSchema = 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}).passthrough().describe(\"Represents a single automation workflow.\");\nexport const SenderGetAllWorkflowsOutput = z.object({\n data: z.array(SenderGetAllWorkflows_WorkflowSchema).describe(\"List of automation workflows.\").nullable().optional(),\n}).passthrough().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,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAChJ,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,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,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-workflows.d.ts
|
|
4
|
-
declare const SenderGetAllWorkflowsInput: z.
|
|
5
|
-
declare const SenderGetAllWorkflowsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SenderGetAllWorkflowsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SenderGetAllWorkflowsOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$loose>>>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const senderGetAllWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { senderGetAllWorkflows };
|
|
9
17
|
//# sourceMappingURL=get-all-workflows.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-workflows.d.cts","names":[],"sources":["../../src/actions/get-all-workflows.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-workflows.d.cts","names":[],"sources":["../../src/actions/get-all-workflows.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|