@keystrokehq/specific 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-company.cjs +3 -3
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +18 -3
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +18 -3
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +3 -3
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +16 -16
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +92 -3
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +92 -3
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +16 -16
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-or-update-company.cjs +10 -10
- package/dist/actions/create-or-update-company.cjs.map +1 -1
- package/dist/actions/create-or-update-company.d.cts +32 -3
- package/dist/actions/create-or-update-company.d.cts.map +1 -1
- package/dist/actions/create-or-update-company.d.mts +32 -3
- package/dist/actions/create-or-update-company.d.mts.map +1 -1
- package/dist/actions/create-or-update-company.mjs +10 -10
- package/dist/actions/create-or-update-company.mjs.map +1 -1
- package/dist/actions/create-or-update-user.cjs +7 -7
- package/dist/actions/create-or-update-user.cjs.map +1 -1
- package/dist/actions/create-or-update-user.d.cts +44 -3
- package/dist/actions/create-or-update-user.d.cts.map +1 -1
- package/dist/actions/create-or-update-user.d.mts +44 -3
- package/dist/actions/create-or-update-user.d.mts.map +1 -1
- package/dist/actions/create-or-update-user.mjs +7 -7
- package/dist/actions/create-or-update-user.mjs.map +1 -1
- package/dist/actions/create-user.cjs +3 -3
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +35 -3
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +35 -3
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +3 -3
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-company-attributes.cjs +5 -5
- package/dist/actions/delete-company-attributes.cjs.map +1 -1
- package/dist/actions/delete-company-attributes.d.cts +14 -3
- package/dist/actions/delete-company-attributes.d.cts.map +1 -1
- package/dist/actions/delete-company-attributes.d.mts +14 -3
- package/dist/actions/delete-company-attributes.d.mts.map +1 -1
- package/dist/actions/delete-company-attributes.mjs +5 -5
- package/dist/actions/delete-company-attributes.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +5 -5
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +12 -3
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +12 -3
- package/dist/actions/delete-company.d.mts.map +1 -1
- package/dist/actions/delete-company.mjs +5 -5
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +7 -7
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +32 -3
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +32 -3
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +7 -7
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +5 -5
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +18 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +18 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +5 -5
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-my-workspace.cjs +5 -5
- package/dist/actions/get-my-workspace.cjs.map +1 -1
- package/dist/actions/get-my-workspace.d.cts +10 -3
- package/dist/actions/get-my-workspace.d.cts.map +1 -1
- package/dist/actions/get-my-workspace.d.mts +10 -3
- package/dist/actions/get-my-workspace.d.mts.map +1 -1
- package/dist/actions/get-my-workspace.mjs +5 -5
- package/dist/actions/get-my-workspace.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +6 -6
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +76 -3
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +76 -3
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +6 -6
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-conversations.cjs +21 -21
- package/dist/actions/list-conversations.cjs.map +1 -1
- package/dist/actions/list-conversations.d.cts +47 -3
- package/dist/actions/list-conversations.d.cts.map +1 -1
- package/dist/actions/list-conversations.d.mts +47 -3
- package/dist/actions/list-conversations.d.mts.map +1 -1
- package/dist/actions/list-conversations.mjs +21 -21
- package/dist/actions/list-conversations.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +5 -5
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +21 -3
- package/dist/actions/list-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-custom-fields.d.mts +21 -3
- package/dist/actions/list-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-custom-fields.mjs +5 -5
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-sources.cjs +5 -5
- package/dist/actions/list-sources.cjs.map +1 -1
- package/dist/actions/list-sources.d.cts +10 -3
- package/dist/actions/list-sources.d.cts.map +1 -1
- package/dist/actions/list-sources.d.mts +10 -3
- package/dist/actions/list-sources.d.mts.map +1 -1
- package/dist/actions/list-sources.mjs +5 -5
- package/dist/actions/list-sources.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +16 -16
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +23 -3
- package/dist/actions/list-surveys.d.cts.map +1 -1
- package/dist/actions/list-surveys.d.mts +23 -3
- package/dist/actions/list-surveys.d.mts.map +1 -1
- package/dist/actions/list-surveys.mjs +16 -16
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/list-users.cjs +11 -11
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +84 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +84 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +11 -11
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/update-company.cjs +6 -6
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +18 -3
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +18 -3
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +6 -6
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-user.cjs +7 -7
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +44 -3
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +44 -3
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +7 -7
- package/dist/actions/update-user.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-conversation.mjs","names":[],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput
|
|
1
|
+
{"version":3,"file":"create-conversation.mjs","names":[],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput = z.object({\n source: z.object({\n id: z.string().describe(\"ID of the source to connect\"),\n}).describe(\"Source connection input.\").optional(),\n company: z.object({\n where: z.record(z.string(), z.unknown()).describe(\"Where clause to find existing company, e.g., {'id': 'company-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Company data to create if not found\"),\n}).describe(\"Company connection or creation input.\").optional(),\n contact: z.object({\n where: z.record(z.string(), z.unknown()).describe(\"Where clause to find existing contact, e.g., {'id': 'contact-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Contact data to create if not found\"),\n}).describe(\"Contact connection or creation input.\").optional(),\n content: z.union([z.string(), z.object({\n type: z.string().describe(\"Document type, must be 'doc'\"),\n content: z.array(z.union([z.object({\n type: z.string().describe(\"Node type, must be 'heading'\"),\n attrs: z.record(z.string(), z.unknown()).describe(\"Heading attributes, e.g., {'level': 1} for H1\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).passthrough().describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the heading\"),\n}).passthrough().describe(\"Represents a heading node in ProseMirror document structure.\"), z.object({\n type: z.string().describe(\"Node type, must be 'paragraph'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).passthrough().describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the paragraph\"),\n}).passthrough().describe(\"Represents a paragraph node in ProseMirror document structure.\")])).describe(\"List of content nodes (headings and paragraphs)\"),\n}).passthrough().describe(\"ProseMirror document structure for conversation content.\")]),\n sourceUrl: z.string().describe(\"Source reference URL where the conversation originated\").optional(),\n insertedAt: z.string().describe(\"Date and time when the conversation was inserted. Accepts YYYY-MM-DD or RFC 3339 format (e.g., 2007-12-03T10:15:30Z)\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom field data as key-value pairs\").optional(),\n}).describe(\"Request model for creating a new conversation in Specific platform.\");\nconst SpecificCreateConversation_SourceInfoSchema = z.object({\n id: z.string().describe(\"Source unique identifier\").nullable(),\n}).passthrough().describe(\"Source information in the response.\");\nconst SpecificCreateConversation_CompanyInfoSchema = z.object({\n id: z.string().describe(\"Company unique identifier\").nullable(),\n name: z.string().describe(\"Company name\").nullable(),\n}).passthrough().describe(\"Company information in the response.\");\nconst SpecificCreateConversation_ContactInfoSchema = z.object({\n id: z.string().describe(\"Contact unique identifier\").nullable(),\n name: z.string().describe(\"Contact name\").nullable(),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n}).passthrough().describe(\"Contact information in the response.\");\nexport const SpecificCreateConversationOutput = z.object({\n id: z.string().describe(\"The conversation's unique identifier if creation was successful\").nullable().optional(),\n name: z.string().describe(\"The conversation's name if creation was successful\").nullable().optional(),\n source: SpecificCreateConversation_SourceInfoSchema.nullable().optional(),\n company: SpecificCreateConversation_CompanyInfoSchema.nullable().optional(),\n contact: SpecificCreateConversation_ContactInfoSchema.nullable().optional(),\n message: z.string().describe(\"Error message if creation failed\").nullable().optional(),\n plainText: z.string().describe(\"The textual content of the conversation if creation was successful\").nullable().optional(),\n sourceUrl: z.string().describe(\"Source URL where the conversation was gathered if creation was successful\").nullable().optional(),\n insertedAt: z.string().describe(\"Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs if creation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for conversation creation. Returns the created conversation details or error information.\");\n\nexport const specificCreateConversation = action(\"SPECIFIC_CREATE_CONVERSATION\", {\n slug: \"specific-create-conversation\",\n name: \"Create Conversation\",\n description: \"Tool to create a new conversation (survey response) in the Specific platform. Use when you need to add a new conversation with content, optional contacts, companies, and custom fields. Content can be a simple string or structured ProseMirror document with headings and paragraphs.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,CAAC,YAAY,CAAC,CAAC,SAAS,0GAOhB;AACV,CAAC"}
|
|
@@ -5,28 +5,28 @@ const SpecificCreateOrUpdateCompanyInput = zod.z.object({
|
|
|
5
5
|
data: zod.z.object({
|
|
6
6
|
id: zod.z.string().describe("Company ID - unique identifier for the company. Required for upsert operations."),
|
|
7
7
|
name: zod.z.string().describe("Company name - the display name of the company.").optional(),
|
|
8
|
-
attributes: zod.z.
|
|
8
|
+
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
|
|
9
9
|
}).describe("Company data to create or update - must include ID and optionally name and attributes."),
|
|
10
10
|
where: zod.z.object({
|
|
11
11
|
id: zod.z.string().describe("Company ID for filtering - identifies which company to update.").optional(),
|
|
12
|
-
attributes: zod.z.
|
|
12
|
+
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter by company attributes - key-value pairs to match.").optional()
|
|
13
13
|
}).describe("Filter criteria to identify which company to update - typically matches by ID.")
|
|
14
14
|
}).describe("Request model for creating or updating a company in Specific.");
|
|
15
15
|
const SpecificCreateOrUpdateCompany_CompanySchema = zod.z.object({
|
|
16
|
-
id: zod.z.string().describe("The company's unique identifier."),
|
|
17
|
-
name: zod.z.string().describe("The company's name."),
|
|
18
|
-
visitorId: zod.z.string().describe("Internal Specific visitor ID."),
|
|
19
|
-
usersCount: zod.z.number().int().describe("Number of users who belong to the company.")
|
|
20
|
-
}).describe("Company object returned from Specific platform.");
|
|
16
|
+
id: zod.z.string().describe("The company's unique identifier.").nullable(),
|
|
17
|
+
name: zod.z.string().describe("The company's name.").nullable(),
|
|
18
|
+
visitorId: zod.z.string().describe("Internal Specific visitor ID.").nullable(),
|
|
19
|
+
usersCount: zod.z.number().int().describe("Number of users who belong to the company.").nullable()
|
|
20
|
+
}).passthrough().describe("Company object returned from Specific platform.");
|
|
21
21
|
const SpecificCreateOrUpdateCompanyOutput = zod.z.object({
|
|
22
22
|
message: zod.z.string().describe("Error message if operation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
|
|
23
23
|
companies: zod.z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe("List of companies that were created or updated (on success).").nullable().optional(),
|
|
24
24
|
fieldErrors: zod.z.union([
|
|
25
25
|
zod.z.string(),
|
|
26
|
-
zod.z.
|
|
27
|
-
zod.z.array(zod.z.
|
|
26
|
+
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
27
|
+
zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))
|
|
28
28
|
]).nullable().optional()
|
|
29
|
-
}).describe("Response model for company creation or update. Returns the created/updated company details or error information.");
|
|
29
|
+
}).passthrough().describe("Response model for company creation or update. Returns the created/updated company details or error information.");
|
|
30
30
|
const specificCreateOrUpdateCompany = require_action.action("SPECIFIC_CREATE_OR_UPDATE_COMPANY", {
|
|
31
31
|
slug: "specific-create-or-update-company",
|
|
32
32
|
name: "Create or Update Company",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-company.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput
|
|
1
|
+
{"version":3,"file":"create-or-update-company.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough().describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAChJ,CAAC,CAAC,CAAC,SAAS,w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AAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAAkH;AAE5I,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-or-update-company.d.ts
|
|
4
|
-
declare const SpecificCreateOrUpdateCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificCreateOrUpdateCompanyInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
where: z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
}, z.core.$loose>>>>;
|
|
23
|
+
fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const specificCreateOrUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
data: {
|
|
27
|
+
id: string;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
attributes?: Record<string, unknown> | undefined;
|
|
30
|
+
};
|
|
31
|
+
where: {
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
attributes?: Record<string, unknown> | undefined;
|
|
34
|
+
};
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { specificCreateOrUpdateCompany };
|
|
9
38
|
//# sourceMappingURL=create-or-update-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-company.d.cts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"create-or-update-company.d.cts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA;;;;iBAMxC,MAAA;EAAA;;;iBAAA,MAAA;EAAA;AAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-or-update-company.d.ts
|
|
4
|
-
declare const SpecificCreateOrUpdateCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificCreateOrUpdateCompanyInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
where: z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
}, z.core.$loose>>>>;
|
|
23
|
+
fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const specificCreateOrUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
data: {
|
|
27
|
+
id: string;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
attributes?: Record<string, unknown> | undefined;
|
|
30
|
+
};
|
|
31
|
+
where: {
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
attributes?: Record<string, unknown> | undefined;
|
|
34
|
+
};
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { specificCreateOrUpdateCompany };
|
|
9
38
|
//# sourceMappingURL=create-or-update-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-company.d.mts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"create-or-update-company.d.mts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA;;;;iBAMxC,MAAA;EAAA;;;iBAAA,MAAA;EAAA;AAAA"}
|
|
@@ -5,19 +5,19 @@ const SpecificCreateOrUpdateCompanyInput = z.object({
|
|
|
5
5
|
data: z.object({
|
|
6
6
|
id: z.string().describe("Company ID - unique identifier for the company. Required for upsert operations."),
|
|
7
7
|
name: z.string().describe("Company name - the display name of the company.").optional(),
|
|
8
|
-
attributes: z.
|
|
8
|
+
attributes: z.record(z.string(), z.unknown()).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
|
|
9
9
|
}).describe("Company data to create or update - must include ID and optionally name and attributes."),
|
|
10
10
|
where: z.object({
|
|
11
11
|
id: z.string().describe("Company ID for filtering - identifies which company to update.").optional(),
|
|
12
|
-
attributes: z.
|
|
12
|
+
attributes: z.record(z.string(), z.unknown()).describe("Filter by company attributes - key-value pairs to match.").optional()
|
|
13
13
|
}).describe("Filter criteria to identify which company to update - typically matches by ID.")
|
|
14
14
|
}).describe("Request model for creating or updating a company in Specific.");
|
|
15
15
|
const SpecificCreateOrUpdateCompany_CompanySchema = z.object({
|
|
16
|
-
id: z.string().describe("The company's unique identifier."),
|
|
17
|
-
name: z.string().describe("The company's name."),
|
|
18
|
-
visitorId: z.string().describe("Internal Specific visitor ID."),
|
|
19
|
-
usersCount: z.number().int().describe("Number of users who belong to the company.")
|
|
20
|
-
}).describe("Company object returned from Specific platform.");
|
|
16
|
+
id: z.string().describe("The company's unique identifier.").nullable(),
|
|
17
|
+
name: z.string().describe("The company's name.").nullable(),
|
|
18
|
+
visitorId: z.string().describe("Internal Specific visitor ID.").nullable(),
|
|
19
|
+
usersCount: z.number().int().describe("Number of users who belong to the company.").nullable()
|
|
20
|
+
}).passthrough().describe("Company object returned from Specific platform.");
|
|
21
21
|
const specificCreateOrUpdateCompany = action("SPECIFIC_CREATE_OR_UPDATE_COMPANY", {
|
|
22
22
|
slug: "specific-create-or-update-company",
|
|
23
23
|
name: "Create or Update Company",
|
|
@@ -28,10 +28,10 @@ const specificCreateOrUpdateCompany = action("SPECIFIC_CREATE_OR_UPDATE_COMPANY"
|
|
|
28
28
|
companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe("List of companies that were created or updated (on success).").nullable().optional(),
|
|
29
29
|
fieldErrors: z.union([
|
|
30
30
|
z.string(),
|
|
31
|
-
z.
|
|
32
|
-
z.array(z.
|
|
31
|
+
z.record(z.string(), z.unknown()),
|
|
32
|
+
z.array(z.record(z.string(), z.unknown()))
|
|
33
33
|
]).nullable().optional()
|
|
34
|
-
}).describe("Response model for company creation or update. Returns the created/updated company details or error information.")
|
|
34
|
+
}).passthrough().describe("Response model for company creation or update. Returns the created/updated company details or error information.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { specificCreateOrUpdateCompany };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput
|
|
1
|
+
{"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough().describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,M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GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAOhB;AACV,CAAC"}
|
|
@@ -17,19 +17,19 @@ const SpecificCreateOrUpdateUserInput = zod.z.object({
|
|
|
17
17
|
const SpecificCreateOrUpdateUser_CompanySchema = zod.z.object({
|
|
18
18
|
id: zod.z.string().describe("Company ID").nullable().optional(),
|
|
19
19
|
name: zod.z.string().describe("Company name").nullable().optional()
|
|
20
|
-
}).describe("Company information.");
|
|
20
|
+
}).passthrough().describe("Company information.");
|
|
21
21
|
const SpecificCreateOrUpdateUser_UserSchema = zod.z.object({
|
|
22
|
-
id: zod.z.string().describe("Contact's ID"),
|
|
23
|
-
name: zod.z.string().describe("Contact's name"),
|
|
22
|
+
id: zod.z.string().describe("Contact's ID").nullable(),
|
|
23
|
+
name: zod.z.string().describe("Contact's name").nullable(),
|
|
24
24
|
email: zod.z.string().describe("Contact's email").nullable().optional(),
|
|
25
25
|
company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
|
|
26
|
-
visitorId: zod.z.string().describe("Internal Specific ID")
|
|
27
|
-
}).describe("User/Contact information.");
|
|
26
|
+
visitorId: zod.z.string().describe("Internal Specific ID").nullable()
|
|
27
|
+
}).passthrough().describe("User/Contact information.");
|
|
28
28
|
const SpecificCreateOrUpdateUserOutput = zod.z.object({
|
|
29
29
|
error: zod.z.string().describe("Error message if failed").nullable().optional(),
|
|
30
|
-
success: zod.z.boolean().describe("Whether the operation was successful"),
|
|
30
|
+
success: zod.z.boolean().describe("Whether the operation was successful").nullable(),
|
|
31
31
|
contacts: zod.z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
|
|
32
|
-
}).describe("Response model for createOrUpdateUser mutation.");
|
|
32
|
+
}).passthrough().describe("Response model for createOrUpdateUser mutation.");
|
|
33
33
|
const specificCreateOrUpdateUser = require_action.action("SPECIFIC_CREATE_OR_UPDATE_USER", {
|
|
34
34
|
slug: "specific-create-or-update-user",
|
|
35
35
|
name: "Create Or Update User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput
|
|
1
|
+
{"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).passthrough().describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID.\",\n input: SpecificCreateOrUpdateUserInput,\n output: SpecificCreateOrUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-or-update-user.d.ts
|
|
4
|
-
declare const SpecificCreateOrUpdateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificCreateOrUpdateUserInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
connect: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
where: z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
email: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
|
|
20
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodNullable<z.ZodString>;
|
|
24
|
+
name: z.ZodNullable<z.ZodString>;
|
|
25
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>>>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
data: {
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
email?: string | undefined;
|
|
38
|
+
company?: {
|
|
39
|
+
connect?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
attributes?: Record<string, unknown> | undefined;
|
|
42
|
+
};
|
|
43
|
+
where: {
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { specificCreateOrUpdateUser };
|
|
9
50
|
//# sourceMappingURL=create-or-update-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-user.d.cts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-or-update-user.d.cts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cA0B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;iBAMrC,MAAA;EAAA"}
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-or-update-user.d.ts
|
|
4
|
-
declare const SpecificCreateOrUpdateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificCreateOrUpdateUserInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
connect: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
where: z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
email: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
|
|
20
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodNullable<z.ZodString>;
|
|
24
|
+
name: z.ZodNullable<z.ZodString>;
|
|
25
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>>>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
data: {
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
email?: string | undefined;
|
|
38
|
+
company?: {
|
|
39
|
+
connect?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
attributes?: Record<string, unknown> | undefined;
|
|
42
|
+
};
|
|
43
|
+
where: {
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { specificCreateOrUpdateUser };
|
|
9
50
|
//# sourceMappingURL=create-or-update-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-user.d.mts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-or-update-user.d.mts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cA0B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;iBAMrC,MAAA;EAAA"}
|
|
@@ -17,14 +17,14 @@ const SpecificCreateOrUpdateUserInput = z.object({
|
|
|
17
17
|
const SpecificCreateOrUpdateUser_CompanySchema = z.object({
|
|
18
18
|
id: z.string().describe("Company ID").nullable().optional(),
|
|
19
19
|
name: z.string().describe("Company name").nullable().optional()
|
|
20
|
-
}).describe("Company information.");
|
|
20
|
+
}).passthrough().describe("Company information.");
|
|
21
21
|
const SpecificCreateOrUpdateUser_UserSchema = z.object({
|
|
22
|
-
id: z.string().describe("Contact's ID"),
|
|
23
|
-
name: z.string().describe("Contact's name"),
|
|
22
|
+
id: z.string().describe("Contact's ID").nullable(),
|
|
23
|
+
name: z.string().describe("Contact's name").nullable(),
|
|
24
24
|
email: z.string().describe("Contact's email").nullable().optional(),
|
|
25
25
|
company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
|
|
26
|
-
visitorId: z.string().describe("Internal Specific ID")
|
|
27
|
-
}).describe("User/Contact information.");
|
|
26
|
+
visitorId: z.string().describe("Internal Specific ID").nullable()
|
|
27
|
+
}).passthrough().describe("User/Contact information.");
|
|
28
28
|
const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
|
|
29
29
|
slug: "specific-create-or-update-user",
|
|
30
30
|
name: "Create Or Update User",
|
|
@@ -32,9 +32,9 @@ const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
|
|
|
32
32
|
input: SpecificCreateOrUpdateUserInput,
|
|
33
33
|
output: z.object({
|
|
34
34
|
error: z.string().describe("Error message if failed").nullable().optional(),
|
|
35
|
-
success: z.boolean().describe("Whether the operation was successful"),
|
|
35
|
+
success: z.boolean().describe("Whether the operation was successful").nullable(),
|
|
36
36
|
contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
|
|
37
|
-
}).describe("Response model for createOrUpdateUser mutation.")
|
|
37
|
+
}).passthrough().describe("Response model for createOrUpdateUser mutation.")
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { specificCreateOrUpdateUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput
|
|
1
|
+
{"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).passthrough().describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID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MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAOrD,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8C,EAAE,OAAO;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -10,8 +10,8 @@ const SpecificCreateUserInput = zod.z.object({
|
|
|
10
10
|
}).describe("Request model for creating a new user (contact) in Specific.");
|
|
11
11
|
const SpecificCreateUser_ValidationFieldErrorSchema = zod.z.object({
|
|
12
12
|
path: zod.z.array(zod.z.string()).describe("Array of strings indicating the path to the field that failed validation."),
|
|
13
|
-
message: zod.z.string().describe("Description of the validation error.")
|
|
14
|
-
}).describe("Field-level validation error details.");
|
|
13
|
+
message: zod.z.string().describe("Description of the validation error.").nullable()
|
|
14
|
+
}).passthrough().describe("Field-level validation error details.");
|
|
15
15
|
const SpecificCreateUserOutput = zod.z.object({
|
|
16
16
|
id: zod.z.string().describe("The unique identifier of the created contact (present on success).").nullable().optional(),
|
|
17
17
|
name: zod.z.string().describe("The name of the created contact (present on success).").nullable().optional(),
|
|
@@ -21,7 +21,7 @@ const SpecificCreateUserOutput = zod.z.object({
|
|
|
21
21
|
visitorId: zod.z.string().describe("The internal Specific visitor ID (present on success).").nullable().optional(),
|
|
22
22
|
field_errors: zod.z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe("Field-level validation errors if validation failed.").nullable().optional(),
|
|
23
23
|
error_message: zod.z.string().describe("Error message if the operation failed.").nullable().optional()
|
|
24
|
-
}).describe("Response model for user creation. Contains either success data or error information.");
|
|
24
|
+
}).passthrough().describe("Response model for user creation. Contains either success data or error information.");
|
|
25
25
|
const specificCreateUser = require_action.action("SPECIFIC_CREATE_USER", {
|
|
26
26
|
slug: "specific-create-user",
|
|
27
27
|
name: "Create User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput
|
|
1
|
+
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).passthrough().describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created contact (present on success).\").nullable().optional(),\n name: z.string().describe(\"The name of the created contact (present on success).\").nullable().optional(),\n email: z.string().describe(\"The email of the created contact (present on success).\").nullable().optional(),\n company: z.record(z.string(), z.unknown()).describe(\"Company information (present on success if associated).\").nullable().optional(),\n success: z.boolean().default(false).describe(\"Indicates whether the user creation was successful.\").nullable().optional(),\n visitorId: z.string().describe(\"The internal Specific visitor ID (present on success).\").nullable().optional(),\n field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe(\"Field-level validation errors if validation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the operation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;C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,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user.d.ts
|
|
4
|
-
declare const SpecificCreateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificCreateUserInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
connect: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SpecificCreateUserOutput: z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
21
|
+
visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
field_errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
path: z.ZodArray<z.ZodString>;
|
|
24
|
+
message: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>>>>;
|
|
26
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
email?: string | undefined;
|
|
32
|
+
company?: {
|
|
33
|
+
connect: {
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
} | undefined;
|
|
37
|
+
attributes?: Record<string, unknown> | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { specificCreateUser };
|
|
9
41
|
//# sourceMappingURL=create-user.d.cts.map
|