@keystrokehq/persistiq 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/add-lead-to-campaign.cjs +43 -0
- package/dist/actions/add-lead-to-campaign.cjs.map +1 -0
- package/dist/actions/add-lead-to-campaign.d.cts +9 -0
- package/dist/actions/add-lead-to-campaign.d.cts.map +1 -0
- package/dist/actions/add-lead-to-campaign.d.mts +9 -0
- package/dist/actions/add-lead-to-campaign.d.mts.map +1 -0
- package/dist/actions/add-lead-to-campaign.mjs +42 -0
- package/dist/actions/add-lead-to-campaign.mjs.map +1 -0
- package/dist/actions/create-campaign.cjs +38 -0
- package/dist/actions/create-campaign.cjs.map +1 -0
- package/dist/actions/create-campaign.d.cts +9 -0
- package/dist/actions/create-campaign.d.cts.map +1 -0
- package/dist/actions/create-campaign.d.mts +9 -0
- package/dist/actions/create-campaign.d.mts.map +1 -0
- package/dist/actions/create-campaign.mjs +37 -0
- package/dist/actions/create-campaign.mjs.map +1 -0
- package/dist/actions/create-dnc-domain.cjs +24 -0
- package/dist/actions/create-dnc-domain.cjs.map +1 -0
- package/dist/actions/create-dnc-domain.d.cts +9 -0
- package/dist/actions/create-dnc-domain.d.cts.map +1 -0
- package/dist/actions/create-dnc-domain.d.mts +9 -0
- package/dist/actions/create-dnc-domain.d.mts.map +1 -0
- package/dist/actions/create-dnc-domain.mjs +23 -0
- package/dist/actions/create-dnc-domain.mjs.map +1 -0
- package/dist/actions/create-leads.cjs +81 -0
- package/dist/actions/create-leads.cjs.map +1 -0
- package/dist/actions/create-leads.d.cts +9 -0
- package/dist/actions/create-leads.d.cts.map +1 -0
- package/dist/actions/create-leads.d.mts +9 -0
- package/dist/actions/create-leads.d.mts.map +1 -0
- package/dist/actions/create-leads.mjs +80 -0
- package/dist/actions/create-leads.mjs.map +1 -0
- package/dist/actions/index.cjs +29 -0
- package/dist/actions/index.d.cts +15 -0
- package/dist/actions/index.d.mts +15 -0
- package/dist/actions/index.mjs +15 -0
- package/dist/actions/list-campaigns.cjs +46 -0
- package/dist/actions/list-campaigns.cjs.map +1 -0
- package/dist/actions/list-campaigns.d.cts +9 -0
- package/dist/actions/list-campaigns.d.cts.map +1 -0
- package/dist/actions/list-campaigns.d.mts +9 -0
- package/dist/actions/list-campaigns.d.mts.map +1 -0
- package/dist/actions/list-campaigns.mjs +45 -0
- package/dist/actions/list-campaigns.mjs.map +1 -0
- package/dist/actions/list-dnc-domains.cjs +22 -0
- package/dist/actions/list-dnc-domains.cjs.map +1 -0
- package/dist/actions/list-dnc-domains.d.cts +9 -0
- package/dist/actions/list-dnc-domains.d.cts.map +1 -0
- package/dist/actions/list-dnc-domains.d.mts +9 -0
- package/dist/actions/list-dnc-domains.d.mts.map +1 -0
- package/dist/actions/list-dnc-domains.mjs +21 -0
- package/dist/actions/list-dnc-domains.mjs.map +1 -0
- package/dist/actions/list-events.cjs +41 -0
- package/dist/actions/list-events.cjs.map +1 -0
- package/dist/actions/list-events.d.cts +9 -0
- package/dist/actions/list-events.d.cts.map +1 -0
- package/dist/actions/list-events.d.mts +9 -0
- package/dist/actions/list-events.d.mts.map +1 -0
- package/dist/actions/list-events.mjs +40 -0
- package/dist/actions/list-events.mjs.map +1 -0
- package/dist/actions/list-lead-fields.cjs +22 -0
- package/dist/actions/list-lead-fields.cjs.map +1 -0
- package/dist/actions/list-lead-fields.d.cts +9 -0
- package/dist/actions/list-lead-fields.d.cts.map +1 -0
- package/dist/actions/list-lead-fields.d.mts +9 -0
- package/dist/actions/list-lead-fields.d.mts.map +1 -0
- package/dist/actions/list-lead-fields.mjs +21 -0
- package/dist/actions/list-lead-fields.mjs.map +1 -0
- package/dist/actions/list-lead-statuses.cjs +22 -0
- package/dist/actions/list-lead-statuses.cjs.map +1 -0
- package/dist/actions/list-lead-statuses.d.cts +9 -0
- package/dist/actions/list-lead-statuses.d.cts.map +1 -0
- package/dist/actions/list-lead-statuses.d.mts +9 -0
- package/dist/actions/list-lead-statuses.d.mts.map +1 -0
- package/dist/actions/list-lead-statuses.mjs +21 -0
- package/dist/actions/list-lead-statuses.mjs.map +1 -0
- package/dist/actions/list-leads.cjs +57 -0
- package/dist/actions/list-leads.cjs.map +1 -0
- package/dist/actions/list-leads.d.cts +9 -0
- package/dist/actions/list-leads.d.cts.map +1 -0
- package/dist/actions/list-leads.d.mts +9 -0
- package/dist/actions/list-leads.d.mts.map +1 -0
- package/dist/actions/list-leads.mjs +56 -0
- package/dist/actions/list-leads.mjs.map +1 -0
- package/dist/actions/list-users.cjs +28 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +27 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/remove-lead-from-campaign.cjs +22 -0
- package/dist/actions/remove-lead-from-campaign.cjs.map +1 -0
- package/dist/actions/remove-lead-from-campaign.d.cts +9 -0
- package/dist/actions/remove-lead-from-campaign.d.cts.map +1 -0
- package/dist/actions/remove-lead-from-campaign.d.mts +9 -0
- package/dist/actions/remove-lead-from-campaign.d.mts.map +1 -0
- package/dist/actions/remove-lead-from-campaign.mjs +19 -0
- package/dist/actions/remove-lead-from-campaign.mjs.map +1 -0
- package/dist/actions/update-lead.cjs +28 -0
- package/dist/actions/update-lead.cjs.map +1 -0
- package/dist/actions/update-lead.d.cts +9 -0
- package/dist/actions/update-lead.d.cts.map +1 -0
- package/dist/actions/update-lead.d.mts +9 -0
- package/dist/actions/update-lead.d.mts.map +1 -0
- package/dist/actions/update-lead.mjs +25 -0
- package/dist/actions/update-lead.mjs.map +1 -0
- package/dist/actions/view-lead.cjs +50 -0
- package/dist/actions/view-lead.cjs.map +1 -0
- package/dist/actions/view-lead.d.cts +9 -0
- package/dist/actions/view-lead.d.cts.map +1 -0
- package/dist/actions/view-lead.d.mts +9 -0
- package/dist/actions/view-lead.d.mts.map +1 -0
- package/dist/actions/view-lead.mjs +49 -0
- package/dist/actions/view-lead.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 +34 -0
- package/dist/index.d.cts +17 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +18 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/persistiq
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `persistiq`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 14
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { persistiqAddLeadToCampaign } from "@keystrokehq/persistiq/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "persistiq-agent",
|
|
15
|
+
tools: [persistiqAddLeadToCampaign],
|
|
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.persistiq.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.executePersistiqTool(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":["persistiq","executePersistiqTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { persistiq } from \"./app\";\nimport { executePersistiqTool } 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 persistiq.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 executePersistiqTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { persistiq } from "./app.mjs";
|
|
2
|
+
import { executePersistiqTool } 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 persistiq.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 executePersistiqTool(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 { persistiq } from \"./app\";\nimport { executePersistiqTool } 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 persistiq.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 executePersistiqTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/add-lead-to-campaign.ts
|
|
4
|
+
const PersistiqAddLeadToCampaignInput = zod.z.object({
|
|
5
|
+
lead: zod.z.object({
|
|
6
|
+
email: zod.z.string().describe("The lead's email address"),
|
|
7
|
+
last_name: zod.z.string().describe("Last name of the lead").optional(),
|
|
8
|
+
variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional custom variables for the lead").optional(),
|
|
9
|
+
first_name: zod.z.string().describe("First name of the lead").optional(),
|
|
10
|
+
organization: zod.z.string().describe("Organization of the lead").optional()
|
|
11
|
+
}).describe("Details of the lead to add to a campaign."),
|
|
12
|
+
campaign_id: zod.z.string().describe("The unique identifier of the campaign to which the lead will be added.")
|
|
13
|
+
}).describe("Request model for adding a lead to a campaign.");
|
|
14
|
+
const PersistiqAddLeadToCampaign_ErrorDetailSchema = zod.z.object({
|
|
15
|
+
reason: zod.z.string().describe("The error reason code").nullable().optional(),
|
|
16
|
+
message: zod.z.string().describe("The error message").nullable().optional(),
|
|
17
|
+
campaign_lead: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Campaign lead details related to the error").nullable().optional()
|
|
18
|
+
}).describe("Details of an error when adding a lead to a campaign.");
|
|
19
|
+
const PersistiqAddLeadToCampaign_CampaignLeadInfoSchema = zod.z.object({
|
|
20
|
+
id: zod.z.string().describe("ID of the campaign lead").nullable().optional(),
|
|
21
|
+
lead: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The lead details").nullable().optional(),
|
|
22
|
+
mailbox_id: zod.z.string().describe("The mailbox ID associated with this campaign lead").nullable().optional(),
|
|
23
|
+
campaign_id: zod.z.string().describe("The campaign ID associated with this lead").nullable().optional()
|
|
24
|
+
}).describe("Information about a lead added to a campaign.");
|
|
25
|
+
const PersistiqAddLeadToCampaignOutput = zod.z.object({
|
|
26
|
+
error: PersistiqAddLeadToCampaign_ErrorDetailSchema.nullable().optional(),
|
|
27
|
+
errors: zod.z.array(PersistiqAddLeadToCampaign_ErrorDetailSchema).describe("List of errors when adding leads (e.g., lead already exists)").nullable().optional(),
|
|
28
|
+
status: zod.z.string().describe("Status of the operation ('success' or 'error')"),
|
|
29
|
+
has_more: zod.z.boolean().describe("Whether there are more results available").nullable().optional(),
|
|
30
|
+
next_page: zod.z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
31
|
+
campaign_leads: zod.z.array(PersistiqAddLeadToCampaign_CampaignLeadInfoSchema).describe("List of campaign leads that were added").nullable().optional()
|
|
32
|
+
}).describe("Response returned after adding a lead to a campaign.");
|
|
33
|
+
const persistiqAddLeadToCampaign = require_action.action("PERSISTIQ_ADD_LEAD_TO_CAMPAIGN", {
|
|
34
|
+
slug: "persistiq-add-lead-to-campaign",
|
|
35
|
+
name: "Add Lead To Campaign",
|
|
36
|
+
description: "Tool to add a lead to a specified campaign. Use when you have lead details and a campaign ID to enroll the lead into the campaign.",
|
|
37
|
+
input: PersistiqAddLeadToCampaignInput,
|
|
38
|
+
output: PersistiqAddLeadToCampaignOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.persistiqAddLeadToCampaign = persistiqAddLeadToCampaign;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=add-lead-to-campaign.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-lead-to-campaign.cjs","names":["z","action"],"sources":["../../src/actions/add-lead-to-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqAddLeadToCampaignInput: z.ZodTypeAny = z.object({\n lead: z.object({\n email: z.string().describe(\"The lead's email address\"),\n last_name: z.string().describe(\"Last name of the lead\").optional(),\n variables: z.record(z.string(), z.unknown()).describe(\"Additional custom variables for the lead\").optional(),\n first_name: z.string().describe(\"First name of the lead\").optional(),\n organization: z.string().describe(\"Organization of the lead\").optional(),\n}).describe(\"Details of the lead to add to a campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign to which the lead will be added.\"),\n}).describe(\"Request model for adding a lead to a campaign.\");\nconst PersistiqAddLeadToCampaign_ErrorDetailSchema: z.ZodTypeAny = z.object({\n reason: z.string().describe(\"The error reason code\").nullable().optional(),\n message: z.string().describe(\"The error message\").nullable().optional(),\n campaign_lead: z.record(z.string(), z.unknown()).describe(\"Campaign lead details related to the error\").nullable().optional(),\n}).describe(\"Details of an error when adding a lead to a campaign.\");\nconst PersistiqAddLeadToCampaign_CampaignLeadInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the campaign lead\").nullable().optional(),\n lead: z.record(z.string(), z.unknown()).describe(\"The lead details\").nullable().optional(),\n mailbox_id: z.string().describe(\"The mailbox ID associated with this campaign lead\").nullable().optional(),\n campaign_id: z.string().describe(\"The campaign ID associated with this lead\").nullable().optional(),\n}).describe(\"Information about a lead added to a campaign.\");\nexport const PersistiqAddLeadToCampaignOutput: z.ZodTypeAny = z.object({\n error: PersistiqAddLeadToCampaign_ErrorDetailSchema.nullable().optional(),\n errors: z.array(PersistiqAddLeadToCampaign_ErrorDetailSchema).describe(\"List of errors when adding leads (e.g., lead already exists)\").nullable().optional(),\n status: z.string().describe(\"Status of the operation ('success' or 'error')\"),\n has_more: z.boolean().describe(\"Whether there are more results available\").nullable().optional(),\n next_page: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n campaign_leads: z.array(PersistiqAddLeadToCampaign_CampaignLeadInfoSchema).describe(\"List of campaign leads that were added\").nullable().optional(),\n}).describe(\"Response returned after adding a lead to a campaign.\");\n\nexport const persistiqAddLeadToCampaign = action(\"PERSISTIQ_ADD_LEAD_TO_CAMPAIGN\", {\n slug: \"persistiq-add-lead-to-campaign\",\n name: \"Add Lead To Campaign\",\n description: \"Tool to add a lead to a specified campaign. Use when you have lead details and a campaign ID to enroll the lead into the campaign.\",\n input: PersistiqAddLeadTo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put: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqAddLeadToCampaignOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqAddLeadToCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqAddLeadToCampaign };
|
|
9
|
+
//# sourceMappingURL=add-lead-to-campaign.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-lead-to-campaign.d.cts","names":[],"sources":["../../src/actions/add-lead-to-campaign.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UASa;AAAA,cAYhD,gCAAA,EAAkC,CAAA,CAAE,UAOkB;AAAA,cAEtD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/add-lead-to-campaign.d.ts
|
|
4
|
+
declare const PersistiqAddLeadToCampaignInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqAddLeadToCampaignOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqAddLeadToCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqAddLeadToCampaign };
|
|
9
|
+
//# sourceMappingURL=add-lead-to-campaign.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-lead-to-campaign.d.mts","names":[],"sources":["../../src/actions/add-lead-to-campaign.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UASa;AAAA,cAYhD,gCAAA,EAAkC,CAAA,CAAE,UAOkB;AAAA,cAEtD,0BAAA,gCAA0B,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/add-lead-to-campaign.ts
|
|
4
|
+
const PersistiqAddLeadToCampaignInput = z.object({
|
|
5
|
+
lead: z.object({
|
|
6
|
+
email: z.string().describe("The lead's email address"),
|
|
7
|
+
last_name: z.string().describe("Last name of the lead").optional(),
|
|
8
|
+
variables: z.record(z.string(), z.unknown()).describe("Additional custom variables for the lead").optional(),
|
|
9
|
+
first_name: z.string().describe("First name of the lead").optional(),
|
|
10
|
+
organization: z.string().describe("Organization of the lead").optional()
|
|
11
|
+
}).describe("Details of the lead to add to a campaign."),
|
|
12
|
+
campaign_id: z.string().describe("The unique identifier of the campaign to which the lead will be added.")
|
|
13
|
+
}).describe("Request model for adding a lead to a campaign.");
|
|
14
|
+
const PersistiqAddLeadToCampaign_ErrorDetailSchema = z.object({
|
|
15
|
+
reason: z.string().describe("The error reason code").nullable().optional(),
|
|
16
|
+
message: z.string().describe("The error message").nullable().optional(),
|
|
17
|
+
campaign_lead: z.record(z.string(), z.unknown()).describe("Campaign lead details related to the error").nullable().optional()
|
|
18
|
+
}).describe("Details of an error when adding a lead to a campaign.");
|
|
19
|
+
const PersistiqAddLeadToCampaign_CampaignLeadInfoSchema = z.object({
|
|
20
|
+
id: z.string().describe("ID of the campaign lead").nullable().optional(),
|
|
21
|
+
lead: z.record(z.string(), z.unknown()).describe("The lead details").nullable().optional(),
|
|
22
|
+
mailbox_id: z.string().describe("The mailbox ID associated with this campaign lead").nullable().optional(),
|
|
23
|
+
campaign_id: z.string().describe("The campaign ID associated with this lead").nullable().optional()
|
|
24
|
+
}).describe("Information about a lead added to a campaign.");
|
|
25
|
+
const persistiqAddLeadToCampaign = action("PERSISTIQ_ADD_LEAD_TO_CAMPAIGN", {
|
|
26
|
+
slug: "persistiq-add-lead-to-campaign",
|
|
27
|
+
name: "Add Lead To Campaign",
|
|
28
|
+
description: "Tool to add a lead to a specified campaign. Use when you have lead details and a campaign ID to enroll the lead into the campaign.",
|
|
29
|
+
input: PersistiqAddLeadToCampaignInput,
|
|
30
|
+
output: z.object({
|
|
31
|
+
error: PersistiqAddLeadToCampaign_ErrorDetailSchema.nullable().optional(),
|
|
32
|
+
errors: z.array(PersistiqAddLeadToCampaign_ErrorDetailSchema).describe("List of errors when adding leads (e.g., lead already exists)").nullable().optional(),
|
|
33
|
+
status: z.string().describe("Status of the operation ('success' or 'error')"),
|
|
34
|
+
has_more: z.boolean().describe("Whether there are more results available").nullable().optional(),
|
|
35
|
+
next_page: z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
36
|
+
campaign_leads: z.array(PersistiqAddLeadToCampaign_CampaignLeadInfoSchema).describe("List of campaign leads that were added").nullable().optional()
|
|
37
|
+
}).describe("Response returned after adding a lead to a campaign.")
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { persistiqAddLeadToCampaign };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=add-lead-to-campaign.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-lead-to-campaign.mjs","names":[],"sources":["../../src/actions/add-lead-to-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqAddLeadToCampaignInput: z.ZodTypeAny = z.object({\n lead: z.object({\n email: z.string().describe(\"The lead's email address\"),\n last_name: z.string().describe(\"Last name of the lead\").optional(),\n variables: z.record(z.string(), z.unknown()).describe(\"Additional custom variables for the lead\").optional(),\n first_name: z.string().describe(\"First name of the lead\").optional(),\n organization: z.string().describe(\"Organization of the lead\").optional(),\n}).describe(\"Details of the lead to add to a campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign to which the lead will be added.\"),\n}).describe(\"Request model for adding a lead to a campaign.\");\nconst PersistiqAddLeadToCampaign_ErrorDetailSchema: z.ZodTypeAny = z.object({\n reason: z.string().describe(\"The error reason code\").nullable().optional(),\n message: z.string().describe(\"The error message\").nullable().optional(),\n campaign_lead: z.record(z.string(), z.unknown()).describe(\"Campaign lead details related to the error\").nullable().optional(),\n}).describe(\"Details of an error when adding a lead to a campaign.\");\nconst PersistiqAddLeadToCampaign_CampaignLeadInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the campaign lead\").nullable().optional(),\n lead: z.record(z.string(), z.unknown()).describe(\"The lead details\").nullable().optional(),\n mailbox_id: z.string().describe(\"The mailbox ID associated with this campaign lead\").nullable().optional(),\n campaign_id: z.string().describe(\"The campaign ID associated with this lead\").nullable().optional(),\n}).describe(\"Information about a lead added to a campaign.\");\nexport const PersistiqAddLeadToCampaignOutput: z.ZodTypeAny = z.object({\n error: PersistiqAddLeadToCampaign_ErrorDetailSchema.nullable().optional(),\n errors: z.array(PersistiqAddLeadToCampaign_ErrorDetailSchema).describe(\"List of errors when adding leads (e.g., lead already exists)\").nullable().optional(),\n status: z.string().describe(\"Status of the operation ('success' or 'error')\"),\n has_more: z.boolean().describe(\"Whether there are more results available\").nullable().optional(),\n next_page: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n campaign_leads: z.array(PersistiqAddLeadToCampaign_CampaignLeadInfoSchema).describe(\"List of campaign leads that were added\").nullable().optional(),\n}).describe(\"Response returned after adding a lead to a campaign.\");\n\nexport const persistiqAddLeadToCampaign = action(\"PERSISTIQ_ADD_LEAD_TO_CAMPAIGN\", {\n slug: \"persistiq-add-lead-to-campaign\",\n name: \"Add Lead To Campaign\",\n description: \"Tool to add a lead to a specified campaign. Use when you have lead details and a campaign ID to enroll the lead into the campaign.\",\n input: PersistiqAddLeadToCampaignInput,\n output: PersistiqAddLeadToCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,MAA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,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAU3D,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4D,EAAE,OAAO;EACrE,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAC5E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,gBAAgB,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-campaign.ts
|
|
4
|
+
const PersistiqCreateCampaignInput = zod.z.object({
|
|
5
|
+
owner_id: zod.z.string().describe("The ID of the user who will own this campaign. Can be obtained from GET /v1/users endpoint"),
|
|
6
|
+
campaign_name: zod.z.string().describe("The name of the campaign to create")
|
|
7
|
+
}).describe("Request model for creating a new campaign.");
|
|
8
|
+
const PersistiqCreateCampaign_StatsSchema = zod.z.object({
|
|
9
|
+
total_prospects: zod.z.number().int().describe("Total number of prospects").nullable().optional(),
|
|
10
|
+
prospects_opened: zod.z.number().int().describe("Number of prospects who opened").nullable().optional(),
|
|
11
|
+
prospects_bounced: zod.z.number().int().describe("Number of bounced prospects").nullable().optional(),
|
|
12
|
+
prospects_reached: zod.z.number().int().describe("Number of prospects reached").nullable().optional(),
|
|
13
|
+
prospects_replied: zod.z.number().int().describe("Number of prospects who replied").nullable().optional(),
|
|
14
|
+
prospects_optedout: zod.z.number().int().describe("Number of prospects who opted out").nullable().optional(),
|
|
15
|
+
prospects_contacted: zod.z.number().int().describe("Number of prospects contacted").nullable().optional()
|
|
16
|
+
}).describe("Campaign statistics.");
|
|
17
|
+
const PersistiqCreateCampaign_CreatorSchema = zod.z.object({
|
|
18
|
+
id: zod.z.string().describe("Creator's unique ID").nullable().optional(),
|
|
19
|
+
name: zod.z.string().describe("Creator's name").nullable().optional(),
|
|
20
|
+
email: zod.z.string().describe("Creator's email").nullable().optional()
|
|
21
|
+
}).describe("Creator information for the campaign.");
|
|
22
|
+
const PersistiqCreateCampaignOutput = zod.z.object({
|
|
23
|
+
id: zod.z.string().describe("The unique ID of the newly created campaign"),
|
|
24
|
+
name: zod.z.string().describe("The name of the campaign"),
|
|
25
|
+
stats: PersistiqCreateCampaign_StatsSchema.nullable().optional(),
|
|
26
|
+
creator: PersistiqCreateCampaign_CreatorSchema.nullable().optional()
|
|
27
|
+
}).describe("Response returned after creating a campaign.");
|
|
28
|
+
const persistiqCreateCampaign = require_action.action("PERSISTIQ_CREATE_CAMPAIGN", {
|
|
29
|
+
slug: "persistiq-create-campaign",
|
|
30
|
+
name: "Create Campaign",
|
|
31
|
+
description: "Tool to create a new campaign in PersistIQ. Use when you need to set up a new outreach campaign with a specific owner.",
|
|
32
|
+
input: PersistiqCreateCampaignInput,
|
|
33
|
+
output: PersistiqCreateCampaignOutput
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.persistiqCreateCampaign = persistiqCreateCampaign;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=create-campaign.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.cjs","names":["z","action"],"sources":["../../src/actions/create-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqCreateCampaignInput: z.ZodTypeAny = z.object({\n owner_id: z.string().describe(\"The ID of the user who will own this campaign. Can be obtained from GET /v1/users endpoint\"),\n campaign_name: z.string().describe(\"The name of the campaign to create\"),\n}).describe(\"Request model for creating a new campaign.\");\nconst PersistiqCreateCampaign_StatsSchema: z.ZodTypeAny = z.object({\n total_prospects: z.number().int().describe(\"Total number of prospects\").nullable().optional(),\n prospects_opened: z.number().int().describe(\"Number of prospects who opened\").nullable().optional(),\n prospects_bounced: z.number().int().describe(\"Number of bounced prospects\").nullable().optional(),\n prospects_reached: z.number().int().describe(\"Number of prospects reached\").nullable().optional(),\n prospects_replied: z.number().int().describe(\"Number of prospects who replied\").nullable().optional(),\n prospects_optedout: z.number().int().describe(\"Number of prospects who opted out\").nullable().optional(),\n prospects_contacted: z.number().int().describe(\"Number of prospects contacted\").nullable().optional(),\n}).describe(\"Campaign statistics.\");\nconst PersistiqCreateCampaign_CreatorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Creator's unique ID\").nullable().optional(),\n name: z.string().describe(\"Creator's name\").nullable().optional(),\n email: z.string().describe(\"Creator's email\").nullable().optional(),\n}).describe(\"Creator information for the campaign.\");\nexport const PersistiqCreateCampaignOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique ID of the newly created campaign\"),\n name: z.string().describe(\"The name of the campaign\"),\n stats: PersistiqCreateCampaign_StatsSchema.nullable().optional(),\n creator: PersistiqCreateCampaign_CreatorSchema.nullable().optional(),\n}).describe(\"Response returned after creating a campaign.\");\n\nexport const persistiqCreateCampaign = action(\"PERSISTIQ_CREATE_CAMPAIGN\", {\n slug: \"persistiq-create-campaign\",\n name: \"Create Campaign\",\n description: \"Tool to create a new campaign in PersistIQ. Use when you need to set up a new outreach campaign with a specific owner.\",\n input: PersistiqCreateCampaignInput,\n output: PersistiqCreateCampaignOutput,\n});\n"],"mappings":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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAO,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAC/D,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,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-campaign.d.ts
|
|
4
|
+
declare const PersistiqCreateCampaignInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqCreateCampaignOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqCreateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqCreateCampaign };
|
|
9
|
+
//# sourceMappingURL=create-campaign.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.d.cts","names":[],"sources":["../../src/actions/create-campaign.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAGY;AAAA,cAe5C,6BAAA,EAA+B,CAAA,CAAE,UAKa;AAAA,cAE9C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-campaign.d.ts
|
|
4
|
+
declare const PersistiqCreateCampaignInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqCreateCampaignOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqCreateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqCreateCampaign };
|
|
9
|
+
//# sourceMappingURL=create-campaign.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.d.mts","names":[],"sources":["../../src/actions/create-campaign.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAGY;AAAA,cAe5C,6BAAA,EAA+B,CAAA,CAAE,UAKa;AAAA,cAE9C,uBAAA,gCAAuB,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-campaign.ts
|
|
4
|
+
const PersistiqCreateCampaignInput = z.object({
|
|
5
|
+
owner_id: z.string().describe("The ID of the user who will own this campaign. Can be obtained from GET /v1/users endpoint"),
|
|
6
|
+
campaign_name: z.string().describe("The name of the campaign to create")
|
|
7
|
+
}).describe("Request model for creating a new campaign.");
|
|
8
|
+
const PersistiqCreateCampaign_StatsSchema = z.object({
|
|
9
|
+
total_prospects: z.number().int().describe("Total number of prospects").nullable().optional(),
|
|
10
|
+
prospects_opened: z.number().int().describe("Number of prospects who opened").nullable().optional(),
|
|
11
|
+
prospects_bounced: z.number().int().describe("Number of bounced prospects").nullable().optional(),
|
|
12
|
+
prospects_reached: z.number().int().describe("Number of prospects reached").nullable().optional(),
|
|
13
|
+
prospects_replied: z.number().int().describe("Number of prospects who replied").nullable().optional(),
|
|
14
|
+
prospects_optedout: z.number().int().describe("Number of prospects who opted out").nullable().optional(),
|
|
15
|
+
prospects_contacted: z.number().int().describe("Number of prospects contacted").nullable().optional()
|
|
16
|
+
}).describe("Campaign statistics.");
|
|
17
|
+
const PersistiqCreateCampaign_CreatorSchema = z.object({
|
|
18
|
+
id: z.string().describe("Creator's unique ID").nullable().optional(),
|
|
19
|
+
name: z.string().describe("Creator's name").nullable().optional(),
|
|
20
|
+
email: z.string().describe("Creator's email").nullable().optional()
|
|
21
|
+
}).describe("Creator information for the campaign.");
|
|
22
|
+
const persistiqCreateCampaign = action("PERSISTIQ_CREATE_CAMPAIGN", {
|
|
23
|
+
slug: "persistiq-create-campaign",
|
|
24
|
+
name: "Create Campaign",
|
|
25
|
+
description: "Tool to create a new campaign in PersistIQ. Use when you need to set up a new outreach campaign with a specific owner.",
|
|
26
|
+
input: PersistiqCreateCampaignInput,
|
|
27
|
+
output: z.object({
|
|
28
|
+
id: z.string().describe("The unique ID of the newly created campaign"),
|
|
29
|
+
name: z.string().describe("The name of the campaign"),
|
|
30
|
+
stats: PersistiqCreateCampaign_StatsSchema.nullable().optional(),
|
|
31
|
+
creator: PersistiqCreateCampaign_CreatorSchema.nullable().optional()
|
|
32
|
+
}).describe("Response returned after creating a campaign.")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { persistiqCreateCampaign };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=create-campaign.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.mjs","names":[],"sources":["../../src/actions/create-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqCreateCampaignInput: z.ZodTypeAny = z.object({\n owner_id: z.string().describe(\"The ID of the user who will own this campaign. Can be obtained from GET /v1/users endpoint\"),\n campaign_name: z.string().describe(\"The name of the campaign to create\"),\n}).describe(\"Request model for creating a new campaign.\");\nconst PersistiqCreateCampaign_StatsSchema: z.ZodTypeAny = z.object({\n total_prospects: z.number().int().describe(\"Total number of prospects\").nullable().optional(),\n prospects_opened: z.number().int().describe(\"Number of prospects who opened\").nullable().optional(),\n prospects_bounced: z.number().int().describe(\"Number of bounced prospects\").nullable().optional(),\n prospects_reached: z.number().int().describe(\"Number of prospects reached\").nullable().optional(),\n prospects_replied: z.number().int().describe(\"Number of prospects who replied\").nullable().optional(),\n prospects_optedout: z.number().int().describe(\"Number of prospects who opted out\").nullable().optional(),\n prospects_contacted: z.number().int().describe(\"Number of prospects contacted\").nullable().optional(),\n}).describe(\"Campaign statistics.\");\nconst PersistiqCreateCampaign_CreatorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Creator's unique ID\").nullable().optional(),\n name: z.string().describe(\"Creator's name\").nullable().optional(),\n email: z.string().describe(\"Creator's email\").nullable().optional(),\n}).describe(\"Creator information for the campaign.\");\nexport const PersistiqCreateCampaignOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique ID of the newly created campaign\"),\n name: z.string().describe(\"The name of the campaign\"),\n stats: PersistiqCreateCampaign_StatsSchema.nullable().optional(),\n creator: PersistiqCreateCampaign_CreatorSchema.nullable().optional(),\n}).describe(\"Response returned after creating a campaign.\");\n\nexport const persistiqCreateCampaign = action(\"PERSISTIQ_CREATE_CAMPAIGN\", {\n slug: \"persistiq-create-campaign\",\n name: \"Create Campaign\",\n description: \"Tool to create a new campaign in PersistIQ. Use when you need to set up a new outreach campaign with a specific owner.\",\n input: PersistiqCreateCampaignInput,\n output: PersistiqCreateCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,UAAU,EAAE,OAAO,CAAC,CAA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,CAAC,CAAC,SAAS,uCAAuC;AAQnD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,OAAO,oCAAoC,SAAS,CAAC,CAAC,SAAS;EAC/D,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-dnc-domain.ts
|
|
4
|
+
const PersistiqCreateDncDomainInput = zod.z.object({ name: zod.z.string().describe("Do Not Contact domain name (e.g., example.com)") }).describe("Request model for creating a Do Not Contact domain.");
|
|
5
|
+
const PersistiqCreateDncDomain_DncDomainDataSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the DNC domain record"),
|
|
7
|
+
name: zod.z.string().describe("Domain name marked as Do Not Contact")
|
|
8
|
+
}).describe("DNC domain object returned by the API.");
|
|
9
|
+
const PersistiqCreateDncDomainOutput = zod.z.object({
|
|
10
|
+
errors: zod.z.array(zod.z.unknown()).describe("List of errors if any").nullable().optional(),
|
|
11
|
+
status: zod.z.string().describe("Status of the operation"),
|
|
12
|
+
dnc_domain: PersistiqCreateDncDomain_DncDomainDataSchema.nullable().optional()
|
|
13
|
+
}).describe("Response model after creating a DNC domain.");
|
|
14
|
+
const persistiqCreateDncDomain = require_action.action("PERSISTIQ_CREATE_DNC_DOMAIN", {
|
|
15
|
+
slug: "persistiq-create-dnc-domain",
|
|
16
|
+
name: "Create Do Not Contact Domain",
|
|
17
|
+
description: "Tool to create a Do Not Contact domain. Use when you need to block emails from being sent to addresses at a specific domain without manual approval.",
|
|
18
|
+
input: PersistiqCreateDncDomainInput,
|
|
19
|
+
output: PersistiqCreateDncDomainOutput
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.persistiqCreateDncDomain = persistiqCreateDncDomain;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=create-dnc-domain.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dnc-domain.cjs","names":["z","action"],"sources":["../../src/actions/create-dnc-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqCreateDncDomainInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Do Not Contact domain name (e.g., example.com)\"),\n}).describe(\"Request model for creating a Do Not Contact domain.\");\nconst PersistiqCreateDncDomain_DncDomainDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the DNC domain record\"),\n name: z.string().describe(\"Domain name marked as Do Not Contact\"),\n}).describe(\"DNC domain object returned by the API.\");\nexport const PersistiqCreateDncDomainOutput: z.ZodTypeAny = z.object({\n errors: z.array(z.unknown()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the operation\"),\n dnc_domain: PersistiqCreateDncDomain_DncDomainDataSchema.nullable().optional(),\n}).describe(\"Response model after creating a DNC domain.\");\n\nexport const persistiqCreateDncDomain = action(\"PERSISTIQ_CREATE_DNC_DOMAIN\", {\n slug: \"persistiq-create-dnc-domain\",\n name: \"Create Do Not Contact Domain\",\n description: \"Tool to create a Do Not Contact domain. Use when you need to block emails from being sent to addresses at a specific domain without manual approval.\",\n input: PersistiqCreateDncDomainInput,\n output: PersistiqCreateDncDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAClE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACrD,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-dnc-domain.d.ts
|
|
4
|
+
declare const PersistiqCreateDncDomainInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqCreateDncDomainOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqCreateDncDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqCreateDncDomain };
|
|
9
|
+
//# sourceMappingURL=create-dnc-domain.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dnc-domain.d.cts","names":[],"sources":["../../src/actions/create-dnc-domain.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEoB;AAAA,cAKrD,8BAAA,EAAgC,CAAA,CAAE,UAIW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-dnc-domain.d.ts
|
|
4
|
+
declare const PersistiqCreateDncDomainInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqCreateDncDomainOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqCreateDncDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqCreateDncDomain };
|
|
9
|
+
//# sourceMappingURL=create-dnc-domain.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dnc-domain.d.mts","names":[],"sources":["../../src/actions/create-dnc-domain.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEoB;AAAA,cAKrD,8BAAA,EAAgC,CAAA,CAAE,UAIW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-dnc-domain.ts
|
|
4
|
+
const PersistiqCreateDncDomainInput = z.object({ name: z.string().describe("Do Not Contact domain name (e.g., example.com)") }).describe("Request model for creating a Do Not Contact domain.");
|
|
5
|
+
const PersistiqCreateDncDomain_DncDomainDataSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier for the DNC domain record"),
|
|
7
|
+
name: z.string().describe("Domain name marked as Do Not Contact")
|
|
8
|
+
}).describe("DNC domain object returned by the API.");
|
|
9
|
+
const persistiqCreateDncDomain = action("PERSISTIQ_CREATE_DNC_DOMAIN", {
|
|
10
|
+
slug: "persistiq-create-dnc-domain",
|
|
11
|
+
name: "Create Do Not Contact Domain",
|
|
12
|
+
description: "Tool to create a Do Not Contact domain. Use when you need to block emails from being sent to addresses at a specific domain without manual approval.",
|
|
13
|
+
input: PersistiqCreateDncDomainInput,
|
|
14
|
+
output: z.object({
|
|
15
|
+
errors: z.array(z.unknown()).describe("List of errors if any").nullable().optional(),
|
|
16
|
+
status: z.string().describe("Status of the operation"),
|
|
17
|
+
dnc_domain: PersistiqCreateDncDomain_DncDomainDataSchema.nullable().optional()
|
|
18
|
+
}).describe("Response model after creating a DNC domain.")
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { persistiqCreateDncDomain };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=create-dnc-domain.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dnc-domain.mjs","names":[],"sources":["../../src/actions/create-dnc-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqCreateDncDomainInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Do Not Contact domain name (e.g., example.com)\"),\n}).describe(\"Request model for creating a Do Not Contact domain.\");\nconst PersistiqCreateDncDomain_DncDomainDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the DNC domain record\"),\n name: z.string().describe(\"Domain name marked as Do Not Contact\"),\n}).describe(\"DNC domain object returned by the API.\");\nexport const PersistiqCreateDncDomainOutput: z.ZodTypeAny = z.object({\n errors: z.array(z.unknown()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the operation\"),\n dnc_domain: PersistiqCreateDncDomain_DncDomainDataSchema.nullable().optional(),\n}).describe(\"Response model after creating a DNC domain.\");\n\nexport const persistiqCreateDncDomain = action(\"PERSISTIQ_CREATE_DNC_DOMAIN\", {\n slug: \"persistiq-create-dnc-domain\",\n name: \"Create Do Not Contact Domain\",\n description: \"Tool to create a Do Not Contact domain. Use when you need to block emails from being sent to addresses at a specific domain without manual approval.\",\n input: PersistiqCreateDncDomainInput,\n output: PersistiqCreateDncDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC5E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAClE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAOpD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0D,EAAE,OAAO;EACnE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACrD,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-leads.ts
|
|
4
|
+
const PersistiqCreateLeadsInput = zod.z.object({
|
|
5
|
+
leads: zod.z.array(zod.z.object({
|
|
6
|
+
email: zod.z.string().describe("Lead’s email address"),
|
|
7
|
+
phone: zod.z.string().describe("Lead’s phone number").optional(),
|
|
8
|
+
title: zod.z.string().describe("Lead’s job title").optional(),
|
|
9
|
+
last_name: zod.z.string().describe("Lead’s last name").optional(),
|
|
10
|
+
variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field key-value map").optional(),
|
|
11
|
+
account_id: zod.z.string().describe("Account ID to associate lead with").optional(),
|
|
12
|
+
creator_id: zod.z.string().describe("User ID to assign as creator").optional(),
|
|
13
|
+
first_name: zod.z.string().describe("Lead’s first name").optional(),
|
|
14
|
+
company_name: zod.z.string().describe("Lead’s company name").optional()
|
|
15
|
+
}).describe("Single lead payload.")).describe("List of up to 10 leads to create"),
|
|
16
|
+
duplicate_lead_action: zod.z.enum([
|
|
17
|
+
"error",
|
|
18
|
+
"update",
|
|
19
|
+
"ignore"
|
|
20
|
+
]).default("error").describe("Behavior when a duplicate email is found: 'error', 'update', or 'ignore'").optional()
|
|
21
|
+
}).describe("Request model for bulk lead creation.");
|
|
22
|
+
const PersistiqCreateLeads_LeadDataSchema = zod.z.object({
|
|
23
|
+
city: zod.z.string().describe("Lead's city").nullable().optional(),
|
|
24
|
+
email: zod.z.string().describe("Lead's email address"),
|
|
25
|
+
phone: zod.z.string().describe("Lead's phone number").nullable().optional(),
|
|
26
|
+
state: zod.z.string().describe("Lead's state").nullable().optional(),
|
|
27
|
+
title: zod.z.string().describe("Lead's job title").nullable().optional(),
|
|
28
|
+
source: zod.z.string().describe("Lead's source").nullable().optional(),
|
|
29
|
+
address: zod.z.string().describe("Lead's address").nullable().optional(),
|
|
30
|
+
country: zod.z.string().describe("Lead's country").nullable().optional(),
|
|
31
|
+
revenue: zod.z.string().describe("Lead's revenue").nullable().optional(),
|
|
32
|
+
snippet: zod.z.string().describe("Custom snippet 1").nullable().optional(),
|
|
33
|
+
twitter: zod.z.string().describe("Lead's Twitter handle").nullable().optional(),
|
|
34
|
+
website: zod.z.string().describe("Lead's website").nullable().optional(),
|
|
35
|
+
category: zod.z.string().describe("Lead's category").nullable().optional(),
|
|
36
|
+
facebook: zod.z.string().describe("Lead's Facebook URL").nullable().optional(),
|
|
37
|
+
industry: zod.z.string().describe("Lead's industry").nullable().optional(),
|
|
38
|
+
linkedin: zod.z.string().describe("Lead's LinkedIn URL").nullable().optional(),
|
|
39
|
+
services: zod.z.string().describe("Lead's services").nullable().optional(),
|
|
40
|
+
snippet2: zod.z.string().describe("Custom snippet 2").nullable().optional(),
|
|
41
|
+
snippet3: zod.z.string().describe("Custom snippet 3").nullable().optional(),
|
|
42
|
+
snippet4: zod.z.string().describe("Custom snippet 4").nullable().optional(),
|
|
43
|
+
headcount: zod.z.string().describe("Lead's company headcount").nullable().optional(),
|
|
44
|
+
last_name: zod.z.string().describe("Lead's last name").nullable().optional(),
|
|
45
|
+
first_name: zod.z.string().describe("Lead's first name").nullable().optional(),
|
|
46
|
+
explanation: zod.z.string().describe("Explanation field").nullable().optional(),
|
|
47
|
+
company_name: zod.z.string().describe("Lead's company name").nullable().optional(),
|
|
48
|
+
business_type: zod.z.string().describe("Lead's business type").nullable().optional(),
|
|
49
|
+
salesforce_id: zod.z.string().describe("Salesforce ID").nullable().optional(),
|
|
50
|
+
email_verify_result: zod.z.string().describe("Email verification result").nullable().optional()
|
|
51
|
+
}).describe("Lead data fields returned by the API.");
|
|
52
|
+
const PersistiqCreateLeads_LeadSchema = zod.z.object({
|
|
53
|
+
id: zod.z.string().describe("Lead's unique ID in PersistIQ"),
|
|
54
|
+
data: PersistiqCreateLeads_LeadDataSchema.nullable(),
|
|
55
|
+
status: zod.z.string().describe("Lead's status").nullable().optional(),
|
|
56
|
+
bounced: zod.z.boolean().describe("Whether the lead has bounced").nullable().optional(),
|
|
57
|
+
optedout: zod.z.boolean().describe("Whether the lead has opted out").nullable().optional(),
|
|
58
|
+
owner_id: zod.z.string().describe("Owner user ID").nullable().optional(),
|
|
59
|
+
creator_id: zod.z.string().describe("Creator user ID").nullable().optional(),
|
|
60
|
+
sent_count: zod.z.number().int().describe("Number of emails sent").nullable().optional(),
|
|
61
|
+
last_sent_at: zod.z.string().describe("Last email sent timestamp").nullable().optional(),
|
|
62
|
+
replied_count: zod.z.number().int().describe("Number of replies received").nullable().optional()
|
|
63
|
+
}).describe("PersistIQ lead object returned by the API.");
|
|
64
|
+
const PersistiqCreateLeadsOutput = zod.z.object({
|
|
65
|
+
leads: zod.z.array(PersistiqCreateLeads_LeadSchema).describe("List of created lead records"),
|
|
66
|
+
errors: zod.z.array(zod.z.unknown()).describe("List of errors if any").nullable().optional(),
|
|
67
|
+
status: zod.z.string().describe("Status of the operation"),
|
|
68
|
+
has_more: zod.z.boolean().describe("Whether there are more results"),
|
|
69
|
+
next_page: zod.z.string().describe("URL for the next page of results").nullable().optional()
|
|
70
|
+
}).describe("Response model after creating leads.");
|
|
71
|
+
const persistiqCreateLeads = require_action.action("PERSISTIQ_CREATE_LEADS", {
|
|
72
|
+
slug: "persistiq-create-leads",
|
|
73
|
+
name: "Create Leads",
|
|
74
|
+
description: "Tool to bulk create up to 10 leads. Use when you have multiple new contacts and need optional duplicate-handling.",
|
|
75
|
+
input: PersistiqCreateLeadsInput,
|
|
76
|
+
output: PersistiqCreateLeadsOutput
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
exports.persistiqCreateLeads = persistiqCreateLeads;
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=create-leads.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-leads.cjs","names":["z","action"],"sources":["../../src/actions/create-leads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqCreateLeadsInput: z.ZodTypeAny = z.object({\n leads: z.array(z.object({\n email: z.string().describe(\"Lead’s email address\"),\n phone: z.string().describe(\"Lead’s phone number\").optional(),\n title: z.string().describe(\"Lead’s job title\").optional(),\n last_name: z.string().describe(\"Lead’s last name\").optional(),\n variables: z.record(z.string(), z.unknown()).describe(\"Custom field key-value map\").optional(),\n account_id: z.string().describe(\"Account ID to associate lead with\").optional(),\n creator_id: z.string().describe(\"User ID to assign as creator\").optional(),\n first_name: z.string().describe(\"Lead’s first name\").optional(),\n company_name: z.string().describe(\"Lead’s company name\").optional(),\n}).describe(\"Single lead payload.\")).describe(\"List of up to 10 leads to create\"),\n duplicate_lead_action: z.enum([\"error\", \"update\", \"ignore\"]).default(\"error\").describe(\"Behavior when a duplicate email is found: 'error', 'update', or 'ignore'\").optional(),\n}).describe(\"Request model for bulk lead creation.\");\nconst PersistiqCreateLeads_LeadDataSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"Lead's city\").nullable().optional(),\n email: z.string().describe(\"Lead's email address\"),\n phone: z.string().describe(\"Lead's phone number\").nullable().optional(),\n state: z.string().describe(\"Lead's state\").nullable().optional(),\n title: z.string().describe(\"Lead's job title\").nullable().optional(),\n source: z.string().describe(\"Lead's source\").nullable().optional(),\n address: z.string().describe(\"Lead's address\").nullable().optional(),\n country: z.string().describe(\"Lead's country\").nullable().optional(),\n revenue: z.string().describe(\"Lead's revenue\").nullable().optional(),\n snippet: z.string().describe(\"Custom snippet 1\").nullable().optional(),\n twitter: z.string().describe(\"Lead's Twitter handle\").nullable().optional(),\n website: z.string().describe(\"Lead's website\").nullable().optional(),\n category: z.string().describe(\"Lead's category\").nullable().optional(),\n facebook: z.string().describe(\"Lead's Facebook URL\").nullable().optional(),\n industry: z.string().describe(\"Lead's industry\").nullable().optional(),\n linkedin: z.string().describe(\"Lead's LinkedIn URL\").nullable().optional(),\n services: z.string().describe(\"Lead's services\").nullable().optional(),\n snippet2: z.string().describe(\"Custom snippet 2\").nullable().optional(),\n snippet3: z.string().describe(\"Custom snippet 3\").nullable().optional(),\n snippet4: z.string().describe(\"Custom snippet 4\").nullable().optional(),\n headcount: z.string().describe(\"Lead's company headcount\").nullable().optional(),\n last_name: z.string().describe(\"Lead's last name\").nullable().optional(),\n first_name: z.string().describe(\"Lead's first name\").nullable().optional(),\n explanation: z.string().describe(\"Explanation field\").nullable().optional(),\n company_name: z.string().describe(\"Lead's company name\").nullable().optional(),\n business_type: z.string().describe(\"Lead's business type\").nullable().optional(),\n salesforce_id: z.string().describe(\"Salesforce ID\").nullable().optional(),\n email_verify_result: z.string().describe(\"Email verification result\").nullable().optional(),\n}).describe(\"Lead data fields returned by the API.\");\nconst PersistiqCreateLeads_LeadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Lead's unique ID in PersistIQ\"),\n data: PersistiqCreateLeads_LeadDataSchema.nullable(),\n status: z.string().describe(\"Lead's status\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether the lead has bounced\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead has opted out\").nullable().optional(),\n owner_id: z.string().describe(\"Owner user ID\").nullable().optional(),\n creator_id: z.string().describe(\"Creator user ID\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent\").nullable().optional(),\n last_sent_at: z.string().describe(\"Last email sent timestamp\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies received\").nullable().optional(),\n}).describe(\"PersistIQ lead object returned by the API.\");\nexport const PersistiqCreateLeadsOutput: z.ZodTypeAny = z.object({\n leads: z.array(PersistiqCreateLeads_LeadSchema).describe(\"List of created lead records\"),\n errors: z.array(z.unknown()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the operation\"),\n has_more: z.boolean().describe(\"Whether there are more results\"),\n next_page: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).describe(\"Response model after creating leads.\");\n\nexport const persistiqCreateLeads = action(\"PERSISTIQ_CREATE_LEADS\", {\n slug: \"persistiq-create-leads\",\n name: \"Create Leads\",\n description: \"Tool to bulk create up to 10 leads. Use when you have multiple new contacts and need optional duplicate-handling.\",\n input: PersistiqCreateLeadsInput,\n output: PersistiqCreateLeadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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C,SAAS,sCAAsC;AAElD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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-leads.d.ts
|
|
4
|
+
declare const PersistiqCreateLeadsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqCreateLeadsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqCreateLeads: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqCreateLeads };
|
|
9
|
+
//# sourceMappingURL=create-leads.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-leads.d.cts","names":[],"sources":["../../src/actions/create-leads.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAaU;AAAA,cA2CvC,0BAAA,EAA4B,CAAA,CAAE,UAMQ;AAAA,cAEtC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-leads.d.ts
|
|
4
|
+
declare const PersistiqCreateLeadsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersistiqCreateLeadsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const persistiqCreateLeads: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { persistiqCreateLeads };
|
|
9
|
+
//# sourceMappingURL=create-leads.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-leads.d.mts","names":[],"sources":["../../src/actions/create-leads.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAaU;AAAA,cA2CvC,0BAAA,EAA4B,CAAA,CAAE,UAMQ;AAAA,cAEtC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|