@keystrokehq/persistiq 0.1.0 → 0.1.2
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/add-lead-to-campaign.cjs +1 -1
- package/dist/actions/add-lead-to-campaign.cjs.map +1 -1
- package/dist/actions/add-lead-to-campaign.d.cts +41 -3
- package/dist/actions/add-lead-to-campaign.d.cts.map +1 -1
- package/dist/actions/add-lead-to-campaign.d.mts +41 -3
- package/dist/actions/add-lead-to-campaign.d.mts.map +1 -1
- package/dist/actions/add-lead-to-campaign.mjs +1 -1
- package/dist/actions/add-lead-to-campaign.mjs.map +1 -1
- package/dist/actions/create-campaign.cjs +2 -2
- package/dist/actions/create-campaign.cjs.map +1 -1
- package/dist/actions/create-campaign.d.cts +26 -3
- package/dist/actions/create-campaign.d.cts.map +1 -1
- package/dist/actions/create-campaign.d.mts +26 -3
- package/dist/actions/create-campaign.d.mts.map +1 -1
- package/dist/actions/create-campaign.mjs +2 -2
- package/dist/actions/create-campaign.mjs.map +1 -1
- package/dist/actions/create-dnc-domain.cjs +3 -3
- package/dist/actions/create-dnc-domain.cjs.map +1 -1
- package/dist/actions/create-dnc-domain.d.cts +14 -3
- package/dist/actions/create-dnc-domain.d.cts.map +1 -1
- package/dist/actions/create-dnc-domain.d.mts +14 -3
- package/dist/actions/create-dnc-domain.d.mts.map +1 -1
- package/dist/actions/create-dnc-domain.mjs +3 -3
- package/dist/actions/create-dnc-domain.mjs.map +1 -1
- package/dist/actions/create-leads.cjs +4 -4
- package/dist/actions/create-leads.cjs.map +1 -1
- package/dist/actions/create-leads.d.cts +79 -3
- package/dist/actions/create-leads.d.cts.map +1 -1
- package/dist/actions/create-leads.d.mts +79 -3
- package/dist/actions/create-leads.d.mts.map +1 -1
- package/dist/actions/create-leads.mjs +4 -4
- package/dist/actions/create-leads.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +5 -5
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +36 -3
- package/dist/actions/list-campaigns.d.cts.map +1 -1
- package/dist/actions/list-campaigns.d.mts +36 -3
- package/dist/actions/list-campaigns.d.mts.map +1 -1
- package/dist/actions/list-campaigns.mjs +5 -5
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/list-dnc-domains.cjs +4 -4
- package/dist/actions/list-dnc-domains.cjs.map +1 -1
- package/dist/actions/list-dnc-domains.d.cts +10 -3
- package/dist/actions/list-dnc-domains.d.cts.map +1 -1
- package/dist/actions/list-dnc-domains.d.mts +10 -3
- package/dist/actions/list-dnc-domains.d.mts.map +1 -1
- package/dist/actions/list-dnc-domains.mjs +4 -4
- package/dist/actions/list-dnc-domains.mjs.map +1 -1
- package/dist/actions/list-events.cjs +3 -3
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +36 -3
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +36 -3
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +3 -3
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-lead-fields.cjs +4 -4
- package/dist/actions/list-lead-fields.cjs.map +1 -1
- package/dist/actions/list-lead-fields.d.cts +10 -3
- package/dist/actions/list-lead-fields.d.cts.map +1 -1
- package/dist/actions/list-lead-fields.d.mts +10 -3
- package/dist/actions/list-lead-fields.d.mts.map +1 -1
- package/dist/actions/list-lead-fields.mjs +4 -4
- package/dist/actions/list-lead-fields.mjs.map +1 -1
- package/dist/actions/list-lead-statuses.cjs +2 -2
- package/dist/actions/list-lead-statuses.cjs.map +1 -1
- package/dist/actions/list-lead-statuses.d.cts +10 -3
- package/dist/actions/list-lead-statuses.d.cts.map +1 -1
- package/dist/actions/list-lead-statuses.d.mts +10 -3
- package/dist/actions/list-lead-statuses.d.mts.map +1 -1
- package/dist/actions/list-lead-statuses.mjs +2 -2
- package/dist/actions/list-lead-statuses.mjs.map +1 -1
- package/dist/actions/list-leads.cjs +2 -2
- package/dist/actions/list-leads.cjs.map +1 -1
- package/dist/actions/list-leads.d.cts +50 -3
- package/dist/actions/list-leads.d.cts.map +1 -1
- package/dist/actions/list-leads.d.mts +50 -3
- package/dist/actions/list-leads.d.mts.map +1 -1
- package/dist/actions/list-leads.mjs +2 -2
- package/dist/actions/list-leads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -1
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +14 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +14 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -1
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/remove-lead-from-campaign.cjs +1 -1
- package/dist/actions/remove-lead-from-campaign.cjs.map +1 -1
- package/dist/actions/remove-lead-from-campaign.d.cts +12 -3
- package/dist/actions/remove-lead-from-campaign.d.cts.map +1 -1
- package/dist/actions/remove-lead-from-campaign.d.mts +12 -3
- package/dist/actions/remove-lead-from-campaign.d.mts.map +1 -1
- package/dist/actions/remove-lead-from-campaign.mjs +1 -1
- package/dist/actions/remove-lead-from-campaign.mjs.map +1 -1
- package/dist/actions/update-lead.cjs.map +1 -1
- package/dist/actions/update-lead.d.cts +23 -3
- package/dist/actions/update-lead.d.cts.map +1 -1
- package/dist/actions/update-lead.d.mts +23 -3
- package/dist/actions/update-lead.d.mts.map +1 -1
- package/dist/actions/update-lead.mjs.map +1 -1
- package/dist/actions/view-lead.cjs +2 -2
- package/dist/actions/view-lead.cjs.map +1 -1
- package/dist/actions/view-lead.d.cts +39 -3
- package/dist/actions/view-lead.d.cts.map +1 -1
- package/dist/actions/view-lead.d.mts +39 -3
- package/dist/actions/view-lead.d.mts.map +1 -1
- package/dist/actions/view-lead.mjs +2 -2
- package/dist/actions/view-lead.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
|
@@ -26,7 +26,7 @@ const PersistiqListLeads_LeadDataSchema = z.object({
|
|
|
26
26
|
company_name: z.string().describe("Lead's company name.").nullable().optional()
|
|
27
27
|
}).passthrough().describe("Nested data object containing lead details.");
|
|
28
28
|
const PersistiqListLeads_LeadSchema = z.object({
|
|
29
|
-
id: z.string().describe("The unique identifier for the lead."),
|
|
29
|
+
id: z.string().describe("The unique identifier for the lead.").nullable(),
|
|
30
30
|
data: PersistiqListLeads_LeadDataSchema.nullable().optional(),
|
|
31
31
|
status: z.string().describe("The status of the lead.").nullable().optional(),
|
|
32
32
|
bounced: z.boolean().describe("Whether the lead's email bounced.").nullable().optional(),
|
|
@@ -46,7 +46,7 @@ const persistiqListLeads = action("PERSISTIQ_LIST_LEADS", {
|
|
|
46
46
|
leads: z.array(PersistiqListLeads_LeadSchema).describe("List of lead objects."),
|
|
47
47
|
errors: z.array(z.string()).describe("List of errors if any.").nullable().optional(),
|
|
48
48
|
status: z.string().describe("Status of the API response.").nullable().optional(),
|
|
49
|
-
has_more: z.boolean().describe("Whether there are more pages of results."),
|
|
49
|
+
has_more: z.boolean().describe("Whether there are more pages of results.").nullable(),
|
|
50
50
|
next_page: z.string().describe("URL or cursor for the next page.").nullable().optional()
|
|
51
51
|
}).describe("Response model for listing leads in PersistIQ.")
|
|
52
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-leads.mjs","names":[],"sources":["../../src/actions/list-leads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListLeadsInput
|
|
1
|
+
{"version":3,"file":"list-leads.mjs","names":[],"sources":["../../src/actions/list-leads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListLeadsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve.\").optional(),\n limit: z.number().int().default(25).describe(\"Max number of leads per page (1-100).\").optional(),\n status: z.enum([\"active\", \"archived\"]).describe(\"Filter leads by status; valid values are 'active' or 'archived'.\").optional(),\n updated_after: z.string().describe(\"Return leads updated after this datetime (ISO 8601).\").optional(),\n}).describe(\"Request model for listing leads in PersistIQ.\");\nconst PersistiqListLeads_LeadDataSchema = z.object({\n city: z.string().describe(\"Lead's city.\").nullable().optional(),\n email: z.string().describe(\"Lead's email address.\").nullable().optional(),\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 source.\").nullable().optional(),\n address: z.string().describe(\"Lead's address.\").nullable().optional(),\n country: z.string().describe(\"Lead's country.\").nullable().optional(),\n twitter: z.string().describe(\"Lead's Twitter profile.\").nullable().optional(),\n website: z.string().describe(\"Lead's website.\").nullable().optional(),\n facebook: z.string().describe(\"Lead's Facebook profile.\").nullable().optional(),\n industry: z.string().describe(\"Lead's industry.\").nullable().optional(),\n linkedin: z.string().describe(\"Lead's LinkedIn profile.\").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 company_name: z.string().describe(\"Lead's company name.\").nullable().optional(),\n}).passthrough().describe(\"Nested data object containing lead details.\");\nconst PersistiqListLeads_LeadSchema = z.object({\n id: z.string().describe(\"The unique identifier for the lead.\").nullable(),\n data: PersistiqListLeads_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"The status of the lead.\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether the lead's email bounced.\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead opted out.\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the lead owner.\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead.\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to the lead.\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of the last email sent.\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from the lead.\").nullable().optional(),\n}).passthrough();\nexport const PersistiqListLeadsOutput = z.object({\n leads: z.array(PersistiqListLeads_LeadSchema).describe(\"List of lead objects.\"),\n errors: z.array(z.string()).describe(\"List of errors if any.\").nullable().optional(),\n status: z.string().describe(\"Status of the API response.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more pages of results.\").nullable(),\n next_page: z.string().describe(\"URL or cursor for the next page.\").nullable().optional(),\n}).describe(\"Response model for listing leads in PersistIQ.\");\n\nexport const persistiqListLeads = action(\"PERSISTIQ_LIST_LEADS\", {\n slug: \"persistiq-list-leads\",\n name: \"List Leads\",\n description: \"Tool to list leads from PersistIQ. Use when you need to fetch a paginated list of leads, optionally filtering by status or updated_after.\",\n input: PersistiqListLeadsInput,\n output: PersistiqListLeadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SA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AM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-users.ts
|
|
4
4
|
const PersistiqListUsersInput = zod.z.object({}).describe("Request model for listing users in PersistIQ.\nThis endpoint does not require any parameters.");
|
|
5
5
|
const PersistiqListUsers_UserSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier of the user"),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the user").nullable(),
|
|
7
7
|
name: zod.z.string().describe("Name of the user").nullable().optional(),
|
|
8
8
|
email: zod.z.string().describe("Email address of the user").nullable().optional(),
|
|
9
9
|
activated: zod.z.boolean().describe("Whether the user account is activated").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListUsersInput = z.object({}).describe(\"Request model for listing users in PersistIQ.\\nThis endpoint does not require any parameters.\");\nconst PersistiqListUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n activated: z.boolean().describe(\"Whether the user account is activated\").nullable().optional(),\n salesforce_id: z.string().describe(\"Associated Salesforce ID for the user\").nullable().optional(),\n default_mailbox_id: z.string().describe(\"ID of the user's default mailbox\").nullable().optional(),\n}).describe(\"User object representing a PersistIQ user.\");\nexport const PersistiqListUsersOutput = z.object({\n users: z.array(PersistiqListUsers_UserSchema).describe(\"List of non-archived user objects\"),\n errors: z.array(z.string()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable().optional(),\n}).describe(\"Response model for listing users in PersistIQ.\");\n\nexport const persistiqListUsers = action(\"PERSISTIQ_LIST_USERS\", {\n slug: \"persistiq-list-users\",\n name: \"List Users\",\n description: \"Tool to list all non-archived users in your company. Use when you need to retrieve user information including id, name, email, activated status, default_mailbox_id, and salesforce_id.\",\n input: PersistiqListUsersInput,\n output: PersistiqListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,mCAAmC;CAC1F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const PersistiqListUsersInput: z.
|
|
5
|
-
declare const PersistiqListUsersOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PersistiqListUsersInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PersistiqListUsersOutput: z.ZodObject<{
|
|
6
|
+
users: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
activated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
+
salesforce_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
default_mailbox_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const persistiqListUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { persistiqListUsers };
|
|
9
20
|
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const PersistiqListUsersInput: z.
|
|
5
|
-
declare const PersistiqListUsersOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PersistiqListUsersInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PersistiqListUsersOutput: z.ZodObject<{
|
|
6
|
+
users: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
activated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
+
salesforce_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
default_mailbox_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
15
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const persistiqListUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { persistiqListUsers };
|
|
9
20
|
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-users.ts
|
|
4
4
|
const PersistiqListUsersInput = z.object({}).describe("Request model for listing users in PersistIQ.\nThis endpoint does not require any parameters.");
|
|
5
5
|
const PersistiqListUsers_UserSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier of the user"),
|
|
6
|
+
id: z.string().describe("Unique identifier of the user").nullable(),
|
|
7
7
|
name: z.string().describe("Name of the user").nullable().optional(),
|
|
8
8
|
email: z.string().describe("Email address of the user").nullable().optional(),
|
|
9
9
|
activated: z.boolean().describe("Whether the user account is activated").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListUsersInput = z.object({}).describe(\"Request model for listing users in PersistIQ.\\nThis endpoint does not require any parameters.\");\nconst PersistiqListUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n activated: z.boolean().describe(\"Whether the user account is activated\").nullable().optional(),\n salesforce_id: z.string().describe(\"Associated Salesforce ID for the user\").nullable().optional(),\n default_mailbox_id: z.string().describe(\"ID of the user's default mailbox\").nullable().optional(),\n}).describe(\"User object representing a PersistIQ user.\");\nexport const PersistiqListUsersOutput = z.object({\n users: z.array(PersistiqListUsers_UserSchema).describe(\"List of non-archived user objects\"),\n errors: z.array(z.string()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable().optional(),\n}).describe(\"Response model for listing users in PersistIQ.\");\n\nexport const persistiqListUsers = action(\"PERSISTIQ_LIST_USERS\", {\n slug: \"persistiq-list-users\",\n name: \"List Users\",\n description: \"Tool to list all non-archived users in your company. Use when you need to retrieve user information including id, name, email, activated status, default_mailbox_id, and salesforce_id.\",\n input: PersistiqListUsersInput,\n output: PersistiqListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAOxD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,mCAAmC;EAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PersistiqRemoveLeadFromCampaignInput = zod.z.object({
|
|
|
7
7
|
});
|
|
8
8
|
const PersistiqRemoveLeadFromCampaignOutput = zod.z.object({
|
|
9
9
|
message: zod.z.string().describe("Optional message returned by the API.").nullable().optional(),
|
|
10
|
-
status_code: zod.z.number().int().describe("HTTP status code returned by the API.")
|
|
10
|
+
status_code: zod.z.number().int().describe("HTTP status code returned by the API.").nullable()
|
|
11
11
|
});
|
|
12
12
|
const persistiqRemoveLeadFromCampaign = require_action.action("PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN", {
|
|
13
13
|
slug: "persistiq-remove-lead-from-campaign",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-lead-from-campaign.cjs","names":["z","action"],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqRemoveLeadFromCampaignInput
|
|
1
|
+
{"version":3,"file":"remove-lead-from-campaign.cjs","names":["z","action"],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqRemoveLeadFromCampaignInput = z.object({\n lead_id: z.string().describe(\"The unique identifier of the lead to be removed from the campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign from which the lead will be removed.\"),\n});\nexport const PersistiqRemoveLeadFromCampaignOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n});\n\nexport const persistiqRemoveLeadFromCampaign = action(\"PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN\", {\n slug: \"persistiq-remove-lead-from-campaign\",\n name: \"Remove Lead From Campaign\",\n description: \"Tool to remove a lead from a specified campaign. Use when you need to detach a lead from an existing campaign after confirming both IDs.\",\n input: PersistiqRemoveLeadFromCampaignInput,\n output: PersistiqRemoveLeadFromCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;AAC/G,CAAC;AACD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC3F,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-lead-from-campaign.d.ts
|
|
4
|
-
declare const PersistiqRemoveLeadFromCampaignInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersistiqRemoveLeadFromCampaignInput: z.ZodObject<{
|
|
5
|
+
lead_id: z.ZodString;
|
|
6
|
+
campaign_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PersistiqRemoveLeadFromCampaignOutput: z.ZodObject<{
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status_code: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const persistiqRemoveLeadFromCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
lead_id: string;
|
|
14
|
+
campaign_id: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { persistiqRemoveLeadFromCampaign };
|
|
9
18
|
//# sourceMappingURL=remove-lead-from-campaign.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-lead-from-campaign.d.cts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"remove-lead-from-campaign.d.cts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-lead-from-campaign.d.ts
|
|
4
|
-
declare const PersistiqRemoveLeadFromCampaignInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersistiqRemoveLeadFromCampaignInput: z.ZodObject<{
|
|
5
|
+
lead_id: z.ZodString;
|
|
6
|
+
campaign_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PersistiqRemoveLeadFromCampaignOutput: z.ZodObject<{
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status_code: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const persistiqRemoveLeadFromCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
lead_id: string;
|
|
14
|
+
campaign_id: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { persistiqRemoveLeadFromCampaign };
|
|
9
18
|
//# sourceMappingURL=remove-lead-from-campaign.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-lead-from-campaign.d.mts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"remove-lead-from-campaign.d.mts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -10,7 +10,7 @@ const persistiqRemoveLeadFromCampaign = action("PERSISTIQ_REMOVE_LEAD_FROM_CAMPA
|
|
|
10
10
|
}),
|
|
11
11
|
output: z.object({
|
|
12
12
|
message: z.string().describe("Optional message returned by the API.").nullable().optional(),
|
|
13
|
-
status_code: z.number().int().describe("HTTP status code returned by the API.")
|
|
13
|
+
status_code: z.number().int().describe("HTTP status code returned by the API.").nullable()
|
|
14
14
|
})
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-lead-from-campaign.mjs","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqRemoveLeadFromCampaignInput
|
|
1
|
+
{"version":3,"file":"remove-lead-from-campaign.mjs","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqRemoveLeadFromCampaignInput = z.object({\n lead_id: z.string().describe(\"The unique identifier of the lead to be removed from the campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign from which the lead will be removed.\"),\n});\nexport const PersistiqRemoveLeadFromCampaignOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n});\n\nexport const persistiqRemoveLeadFromCampaign = action(\"PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN\", {\n slug: \"persistiq-remove-lead-from-campaign\",\n name: \"Remove Lead From Campaign\",\n description: \"Tool to remove a lead from a specified campaign. Use when you need to detach a lead from an existing campaign after confirming both IDs.\",\n input: PersistiqRemoveLeadFromCampaignInput,\n output: PersistiqRemoveLeadFromCampaignOutput,\n});\n"],"mappings":";;AAaA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkD,EAAE,OAAO;EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC/G,CAUS;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,CAOU;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-lead.cjs","names":["z","action"],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqUpdateLeadInput
|
|
1
|
+
{"version":3,"file":"update-lead.cjs","names":["z","action"],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqUpdateLeadInput = z.object({\n email: z.string().describe(\"Lead's email address\").optional(),\n phone: z.string().describe(\"Lead's phone number\").optional(),\n title: z.string().describe(\"Lead's job title\").optional(),\n lead_id: z.string().describe(\"ID of the lead to update\"),\n last_name: z.string().describe(\"Lead's last name\").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(\"Request parameters for updating a PersistIQ lead.\");\nexport const PersistiqUpdateLeadOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Response data wrapper containing status, error, and lead\").nullable().optional(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated PersistIQ lead.\\nThe API returns: {\\\"data\\\": {\\\"status\\\": \\\"success\\\", \\\"error\\\": null, \\\"lead\\\": {...}}, ...}\");\n\nexport const persistiqUpdateLead = action(\"PERSISTIQ_UPDATE_LEAD\", {\n slug: \"persistiq-update-lead\",\n name: \"Update Lead\",\n description: \"Tool to update a lead's information. Use when you need to modify fields (status, tags, or custom attributes) of an existing lead. Call after confirming the lead_id.\",\n input: PersistiqUpdateLeadInput,\n output: PersistiqUpdateLeadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACvD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2IAA2I;AAErK,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-lead.d.ts
|
|
4
|
-
declare const PersistiqUpdateLeadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersistiqUpdateLeadInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
lead_id: z.ZodString;
|
|
9
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
company_name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const PersistiqUpdateLeadOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
successfull: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const persistiqUpdateLead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
lead_id: string;
|
|
20
|
+
email?: string | undefined;
|
|
21
|
+
phone?: string | undefined;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
last_name?: string | undefined;
|
|
24
|
+
first_name?: string | undefined;
|
|
25
|
+
company_name?: string | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { persistiqUpdateLead };
|
|
9
29
|
//# sourceMappingURL=update-lead.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-lead.d.cts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-lead.d.cts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-lead.d.ts
|
|
4
|
-
declare const PersistiqUpdateLeadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersistiqUpdateLeadInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
lead_id: z.ZodString;
|
|
9
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
company_name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const PersistiqUpdateLeadOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
successfull: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const persistiqUpdateLead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
lead_id: string;
|
|
20
|
+
email?: string | undefined;
|
|
21
|
+
phone?: string | undefined;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
last_name?: string | undefined;
|
|
24
|
+
first_name?: string | undefined;
|
|
25
|
+
company_name?: string | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { persistiqUpdateLead };
|
|
9
29
|
//# sourceMappingURL=update-lead.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-lead.d.mts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-lead.d.mts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-lead.mjs","names":[],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqUpdateLeadInput
|
|
1
|
+
{"version":3,"file":"update-lead.mjs","names":[],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqUpdateLeadInput = z.object({\n email: z.string().describe(\"Lead's email address\").optional(),\n phone: z.string().describe(\"Lead's phone number\").optional(),\n title: z.string().describe(\"Lead's job title\").optional(),\n lead_id: z.string().describe(\"ID of the lead to update\"),\n last_name: z.string().describe(\"Lead's last name\").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(\"Request parameters for updating a PersistIQ lead.\");\nexport const PersistiqUpdateLeadOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Response data wrapper containing status, error, and lead\").nullable().optional(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated PersistIQ lead.\\nThe API returns: {\\\"data\\\": {\\\"status\\\": \\\"success\\\", \\\"error\\\": null, \\\"lead\\\": {...}}, ...}\");\n\nexport const persistiqUpdateLead = action(\"PERSISTIQ_UPDATE_LEAD\", {\n slug: \"persistiq-update-lead\",\n name: \"Update Lead\",\n description: \"Tool to update a lead's information. Use when you need to modify fields (status, tags, or custom attributes) of an existing lead. Call after confirming the lead_id.\",\n input: PersistiqUpdateLeadInput,\n output: PersistiqUpdateLeadOutput,\n});\n"],"mappings":";;AAmBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,mDAWH;CACP,QAXuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2IAOhB;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const PersistiqViewLead_LeadDataSchema = zod.z.object({
|
|
|
21
21
|
company_name: zod.z.string().describe("Company name of the lead").nullable().optional()
|
|
22
22
|
}).passthrough().describe("Nested data fields for a lead.");
|
|
23
23
|
const PersistiqViewLead_LeadSchema = zod.z.object({
|
|
24
|
-
id: zod.z.string().describe("Unique identifier of the lead"),
|
|
24
|
+
id: zod.z.string().describe("Unique identifier of the lead").nullable(),
|
|
25
25
|
data: PersistiqViewLead_LeadDataSchema.nullable().optional(),
|
|
26
26
|
status: zod.z.string().describe("Current status of the lead (e.g., 'open')").nullable().optional(),
|
|
27
27
|
bounced: zod.z.boolean().describe("Whether emails to this lead have bounced").nullable().optional(),
|
|
@@ -35,7 +35,7 @@ const PersistiqViewLead_LeadSchema = zod.z.object({
|
|
|
35
35
|
const PersistiqViewLeadOutput = zod.z.object({
|
|
36
36
|
lead: PersistiqViewLead_LeadSchema.nullable(),
|
|
37
37
|
error: zod.z.string().describe("Error message if any").nullable().optional(),
|
|
38
|
-
status: zod.z.string().describe("Status of the API response")
|
|
38
|
+
status: zod.z.string().describe("Status of the API response").nullable()
|
|
39
39
|
}).passthrough().describe("Response for viewing a single PersistIQ lead.");
|
|
40
40
|
const persistiqViewLead = require_action.action("PERSISTIQ_VIEW_LEAD", {
|
|
41
41
|
slug: "persistiq-view-lead",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-lead.cjs","names":["z","action"],"sources":["../../src/actions/view-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqViewLeadInput
|
|
1
|
+
{"version":3,"file":"view-lead.cjs","names":["z","action"],"sources":["../../src/actions/view-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqViewLeadInput = z.object({\n lead_id: z.string().describe(\"Unique identifier of the lead to retrieve\"),\n}).describe(\"Request parameters for retrieving a single PersistIQ lead by ID.\");\nconst PersistiqViewLead_LeadDataSchema = z.object({\n city: z.string().describe(\"City of the lead\").nullable().optional(),\n email: z.string().describe(\"Email address of the lead\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the lead\").nullable().optional(),\n state: z.string().describe(\"State of the lead\").nullable().optional(),\n title: z.string().describe(\"Job title of the lead\").nullable().optional(),\n source: z.string().describe(\"Source of the lead\").nullable().optional(),\n address: z.string().describe(\"Address of the lead\").nullable().optional(),\n country: z.string().describe(\"Country of the lead\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the lead\").nullable().optional(),\n website: z.string().describe(\"Website of the lead\").nullable().optional(),\n facebook: z.string().describe(\"Facebook URL of the lead\").nullable().optional(),\n industry: z.string().describe(\"Industry of the lead\").nullable().optional(),\n linkedin: z.string().describe(\"LinkedIn URL of the lead\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the lead\").nullable().optional(),\n first_name: z.string().describe(\"First name of the lead\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the lead\").nullable().optional(),\n}).passthrough().describe(\"Nested data fields for a lead.\");\nconst PersistiqViewLead_LeadSchema = z.object({\n id: z.string().describe(\"Unique identifier of the lead\").nullable(),\n data: PersistiqViewLead_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the lead (e.g., 'open')\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether emails to this lead have bounced\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead has opted out\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the user who owns the lead\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to this lead\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of last email sent\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from this lead\").nullable().optional(),\n}).passthrough().describe(\"Lead object returned by the PersistIQ API.\");\nexport const PersistiqViewLeadOutput = z.object({\n lead: PersistiqViewLead_LeadSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable(),\n}).passthrough().describe(\"Response for viewing a single PersistIQ lead.\");\n\nexport const persistiqViewLead = action(\"PERSISTIQ_VIEW_LEAD\", {\n slug: \"persistiq-view-lead\",\n name: \"View Lead\",\n description: \"Tool to retrieve a lead by its ID. Use when you have the lead ID and need its detailed information.\",\n input: PersistiqViewLeadInput,\n output: PersistiqViewLeadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC1E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SA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AAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/view-lead.d.ts
|
|
4
|
-
declare const PersistiqViewLeadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersistiqViewLeadInput: z.ZodObject<{
|
|
5
|
+
lead_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PersistiqViewLeadOutput: z.ZodObject<{
|
|
8
|
+
lead: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
twitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
facebook: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
linkedin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
bounced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
optedout: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
creator_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
sent_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
last_sent_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
replied_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
status: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
declare const persistiqViewLead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
|
+
lead_id: string;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { persistiqViewLead };
|
|
9
45
|
//# sourceMappingURL=view-lead.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-lead.d.cts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"view-lead.d.cts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAiCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/view-lead.d.ts
|
|
4
|
-
declare const PersistiqViewLeadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersistiqViewLeadInput: z.ZodObject<{
|
|
5
|
+
lead_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PersistiqViewLeadOutput: z.ZodObject<{
|
|
8
|
+
lead: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
twitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
facebook: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
linkedin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
bounced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
optedout: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
creator_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
sent_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
last_sent_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
replied_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
status: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
declare const persistiqViewLead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
|
+
lead_id: string;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { persistiqViewLead };
|
|
9
45
|
//# sourceMappingURL=view-lead.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-lead.d.mts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"view-lead.d.mts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAiCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -21,7 +21,7 @@ const PersistiqViewLead_LeadDataSchema = z.object({
|
|
|
21
21
|
company_name: z.string().describe("Company name of the lead").nullable().optional()
|
|
22
22
|
}).passthrough().describe("Nested data fields for a lead.");
|
|
23
23
|
const PersistiqViewLead_LeadSchema = z.object({
|
|
24
|
-
id: z.string().describe("Unique identifier of the lead"),
|
|
24
|
+
id: z.string().describe("Unique identifier of the lead").nullable(),
|
|
25
25
|
data: PersistiqViewLead_LeadDataSchema.nullable().optional(),
|
|
26
26
|
status: z.string().describe("Current status of the lead (e.g., 'open')").nullable().optional(),
|
|
27
27
|
bounced: z.boolean().describe("Whether emails to this lead have bounced").nullable().optional(),
|
|
@@ -40,7 +40,7 @@ const persistiqViewLead = action("PERSISTIQ_VIEW_LEAD", {
|
|
|
40
40
|
output: z.object({
|
|
41
41
|
lead: PersistiqViewLead_LeadSchema.nullable(),
|
|
42
42
|
error: z.string().describe("Error message if any").nullable().optional(),
|
|
43
|
-
status: z.string().describe("Status of the API response")
|
|
43
|
+
status: z.string().describe("Status of the API response").nullable()
|
|
44
44
|
}).passthrough().describe("Response for viewing a single PersistIQ lead.")
|
|
45
45
|
});
|
|
46
46
|
//#endregion
|