@keystrokehq/specific 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-company.cjs +27 -0
- package/dist/actions/create-company.cjs.map +1 -0
- package/dist/actions/create-company.d.cts +9 -0
- package/dist/actions/create-company.d.cts.map +1 -0
- package/dist/actions/create-company.d.mts +9 -0
- package/dist/actions/create-company.d.mts.map +1 -0
- package/dist/actions/create-company.mjs +24 -0
- package/dist/actions/create-company.mjs.map +1 -0
- package/dist/actions/create-conversation.cjs +67 -0
- package/dist/actions/create-conversation.cjs.map +1 -0
- package/dist/actions/create-conversation.d.cts +9 -0
- package/dist/actions/create-conversation.d.cts.map +1 -0
- package/dist/actions/create-conversation.d.mts +9 -0
- package/dist/actions/create-conversation.d.mts.map +1 -0
- package/dist/actions/create-conversation.mjs +66 -0
- package/dist/actions/create-conversation.mjs.map +1 -0
- package/dist/actions/create-or-update-company.cjs +40 -0
- package/dist/actions/create-or-update-company.cjs.map +1 -0
- package/dist/actions/create-or-update-company.d.cts +9 -0
- package/dist/actions/create-or-update-company.d.cts.map +1 -0
- package/dist/actions/create-or-update-company.d.mts +9 -0
- package/dist/actions/create-or-update-company.d.mts.map +1 -0
- package/dist/actions/create-or-update-company.mjs +39 -0
- package/dist/actions/create-or-update-company.mjs.map +1 -0
- package/dist/actions/create-or-update-user.cjs +43 -0
- package/dist/actions/create-or-update-user.cjs.map +1 -0
- package/dist/actions/create-or-update-user.d.cts +9 -0
- package/dist/actions/create-or-update-user.d.cts.map +1 -0
- package/dist/actions/create-or-update-user.d.mts +9 -0
- package/dist/actions/create-or-update-user.d.mts.map +1 -0
- package/dist/actions/create-or-update-user.mjs +42 -0
- package/dist/actions/create-or-update-user.mjs.map +1 -0
- package/dist/actions/create-user.cjs +35 -0
- package/dist/actions/create-user.cjs.map +1 -0
- package/dist/actions/create-user.d.cts +9 -0
- package/dist/actions/create-user.d.cts.map +1 -0
- package/dist/actions/create-user.d.mts +9 -0
- package/dist/actions/create-user.d.mts.map +1 -0
- package/dist/actions/create-user.mjs +34 -0
- package/dist/actions/create-user.mjs.map +1 -0
- package/dist/actions/delete-company-attributes.cjs +24 -0
- package/dist/actions/delete-company-attributes.cjs.map +1 -0
- package/dist/actions/delete-company-attributes.d.cts +9 -0
- package/dist/actions/delete-company-attributes.d.cts.map +1 -0
- package/dist/actions/delete-company-attributes.d.mts +9 -0
- package/dist/actions/delete-company-attributes.d.mts.map +1 -0
- package/dist/actions/delete-company-attributes.mjs +21 -0
- package/dist/actions/delete-company-attributes.mjs.map +1 -0
- package/dist/actions/delete-company.cjs +21 -0
- package/dist/actions/delete-company.cjs.map +1 -0
- package/dist/actions/delete-company.d.cts +9 -0
- package/dist/actions/delete-company.d.cts.map +1 -0
- package/dist/actions/delete-company.d.mts +9 -0
- package/dist/actions/delete-company.d.mts.map +1 -0
- package/dist/actions/delete-company.mjs +18 -0
- package/dist/actions/delete-company.mjs.map +1 -0
- package/dist/actions/delete-user-attributes.cjs +34 -0
- package/dist/actions/delete-user-attributes.cjs.map +1 -0
- package/dist/actions/delete-user-attributes.d.cts +9 -0
- package/dist/actions/delete-user-attributes.d.cts.map +1 -0
- package/dist/actions/delete-user-attributes.d.mts +9 -0
- package/dist/actions/delete-user-attributes.d.mts.map +1 -0
- package/dist/actions/delete-user-attributes.mjs +33 -0
- package/dist/actions/delete-user-attributes.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +29 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +28 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/get-my-workspace.cjs +21 -0
- package/dist/actions/get-my-workspace.cjs.map +1 -0
- package/dist/actions/get-my-workspace.d.cts +9 -0
- package/dist/actions/get-my-workspace.d.cts.map +1 -0
- package/dist/actions/get-my-workspace.d.mts +9 -0
- package/dist/actions/get-my-workspace.d.mts.map +1 -0
- package/dist/actions/get-my-workspace.mjs +20 -0
- package/dist/actions/get-my-workspace.mjs.map +1 -0
- package/dist/actions/index.cjs +37 -0
- package/dist/actions/index.d.cts +19 -0
- package/dist/actions/index.d.mts +19 -0
- package/dist/actions/index.mjs +19 -0
- package/dist/actions/list-companies.cjs +53 -0
- package/dist/actions/list-companies.cjs.map +1 -0
- package/dist/actions/list-companies.d.cts +9 -0
- package/dist/actions/list-companies.d.cts.map +1 -0
- package/dist/actions/list-companies.d.mts +9 -0
- package/dist/actions/list-companies.d.mts.map +1 -0
- package/dist/actions/list-companies.mjs +52 -0
- package/dist/actions/list-companies.mjs.map +1 -0
- package/dist/actions/list-conversations.cjs +50 -0
- package/dist/actions/list-conversations.cjs.map +1 -0
- package/dist/actions/list-conversations.d.cts +9 -0
- package/dist/actions/list-conversations.d.cts.map +1 -0
- package/dist/actions/list-conversations.d.mts +9 -0
- package/dist/actions/list-conversations.d.mts.map +1 -0
- package/dist/actions/list-conversations.mjs +49 -0
- package/dist/actions/list-conversations.mjs.map +1 -0
- package/dist/actions/list-custom-fields.cjs +29 -0
- package/dist/actions/list-custom-fields.cjs.map +1 -0
- package/dist/actions/list-custom-fields.d.cts +9 -0
- package/dist/actions/list-custom-fields.d.cts.map +1 -0
- package/dist/actions/list-custom-fields.d.mts +9 -0
- package/dist/actions/list-custom-fields.d.mts.map +1 -0
- package/dist/actions/list-custom-fields.mjs +28 -0
- package/dist/actions/list-custom-fields.mjs.map +1 -0
- package/dist/actions/list-sources.cjs +21 -0
- package/dist/actions/list-sources.cjs.map +1 -0
- package/dist/actions/list-sources.d.cts +9 -0
- package/dist/actions/list-sources.d.cts.map +1 -0
- package/dist/actions/list-sources.d.mts +9 -0
- package/dist/actions/list-sources.d.mts.map +1 -0
- package/dist/actions/list-sources.mjs +20 -0
- package/dist/actions/list-sources.mjs.map +1 -0
- package/dist/actions/list-surveys.cjs +37 -0
- package/dist/actions/list-surveys.cjs.map +1 -0
- package/dist/actions/list-surveys.d.cts +9 -0
- package/dist/actions/list-surveys.d.cts.map +1 -0
- package/dist/actions/list-surveys.d.mts +9 -0
- package/dist/actions/list-surveys.d.mts.map +1 -0
- package/dist/actions/list-surveys.mjs +36 -0
- package/dist/actions/list-surveys.mjs.map +1 -0
- package/dist/actions/list-users.cjs +61 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +60 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/update-company.cjs +26 -0
- package/dist/actions/update-company.cjs.map +1 -0
- package/dist/actions/update-company.d.cts +9 -0
- package/dist/actions/update-company.d.cts.map +1 -0
- package/dist/actions/update-company.d.mts +9 -0
- package/dist/actions/update-company.d.mts.map +1 -0
- package/dist/actions/update-company.mjs +25 -0
- package/dist/actions/update-company.mjs.map +1 -0
- package/dist/actions/update-user.cjs +43 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +42 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +42 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.mjs +22 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/specific
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `specific`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 18
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { specificCreateCompany } from "@keystrokehq/specific/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "specific-agent",
|
|
15
|
+
tools: [specificCreateCompany],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.specific.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeSpecificTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["specific","executeSpecificTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { specific } from \"./app\";\nimport { executeSpecificTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return specific.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpecificTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { specific } from "./app.mjs";
|
|
2
|
+
import { executeSpecificTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return specific.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeSpecificTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { specific } from \"./app\";\nimport { executeSpecificTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return specific.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpecificTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-company.ts
|
|
4
|
+
const SpecificCreateCompanyInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.").optional(),
|
|
6
|
+
name: zod.z.string().describe("Company name - the display name of the company.").optional(),
|
|
7
|
+
attributes: zod.z.object({}).describe("Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).").optional()
|
|
8
|
+
}).describe("Request model for creating a new company in Specific.");
|
|
9
|
+
const SpecificCreateCompanyOutput = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("The company's ID if creation was successful.").nullable().optional(),
|
|
11
|
+
name: zod.z.string().describe("The company's name if creation was successful.").nullable().optional(),
|
|
12
|
+
message: zod.z.string().describe("Error message if creation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
|
|
13
|
+
visitorId: zod.z.string().describe("Internal Specific ID if creation was successful.").nullable().optional(),
|
|
14
|
+
usersCount: zod.z.number().int().describe("Number of users who belong to the company if creation was successful.").nullable().optional(),
|
|
15
|
+
fieldErrors: zod.z.union([zod.z.string(), zod.z.array(zod.z.object({}))]).nullable().optional()
|
|
16
|
+
}).describe("Response model for company creation. Returns the created company details or error information.");
|
|
17
|
+
const specificCreateCompany = require_action.action("SPECIFIC_CREATE_COMPANY", {
|
|
18
|
+
slug: "specific-create-company",
|
|
19
|
+
name: "Create Company",
|
|
20
|
+
description: "Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.",
|
|
21
|
+
input: SpecificCreateCompanyInput,
|
|
22
|
+
output: SpecificCreateCompanyOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.specificCreateCompany = specificCreateCompany;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=create-company.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateCompanyInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.\").optional(),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).\").optional(),\n}).describe(\"Request model for creating a new company in Specific.\");\nexport const SpecificCreateCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's ID if creation was successful.\").nullable().optional(),\n name: z.string().describe(\"The company's name if creation was successful.\").nullable().optional(),\n message: z.string().describe(\"Error message if creation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID if creation was successful.\").nullable().optional(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company if creation was successful.\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany = action(\"SPECIFIC_CREATE_COMPANY\", {\n slug: \"specific-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.\",\n input: SpecificCreateCompanyInput,\n output: SpecificCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,gGAAgG;AAE5G,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-company.d.ts
|
|
4
|
+
declare const SpecificCreateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateCompany };
|
|
9
|
+
//# sourceMappingURL=create-company.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAOiE;AAAA,cAEhG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-company.d.ts
|
|
4
|
+
declare const SpecificCreateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateCompany };
|
|
9
|
+
//# sourceMappingURL=create-company.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAOiE;AAAA,cAEhG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const specificCreateCompany = action("SPECIFIC_CREATE_COMPANY", {
|
|
4
|
+
slug: "specific-create-company",
|
|
5
|
+
name: "Create Company",
|
|
6
|
+
description: "Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.").optional(),
|
|
9
|
+
name: z.string().describe("Company name - the display name of the company.").optional(),
|
|
10
|
+
attributes: z.object({}).describe("Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).").optional()
|
|
11
|
+
}).describe("Request model for creating a new company in Specific."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
id: z.string().describe("The company's ID if creation was successful.").nullable().optional(),
|
|
14
|
+
name: z.string().describe("The company's name if creation was successful.").nullable().optional(),
|
|
15
|
+
message: z.string().describe("Error message if creation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
|
|
16
|
+
visitorId: z.string().describe("Internal Specific ID if creation was successful.").nullable().optional(),
|
|
17
|
+
usersCount: z.number().int().describe("Number of users who belong to the company if creation was successful.").nullable().optional(),
|
|
18
|
+
fieldErrors: z.union([z.string(), z.array(z.object({}))]).nullable().optional()
|
|
19
|
+
}).describe("Response model for company creation. Returns the created company details or error information.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { specificCreateCompany };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=create-company.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateCompanyInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.\").optional(),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).\").optional(),\n}).describe(\"Request model for creating a new company in Specific.\");\nexport const SpecificCreateCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's ID if creation was successful.\").nullable().optional(),\n name: z.string().describe(\"The company's name if creation was successful.\").nullable().optional(),\n message: z.string().describe(\"Error message if creation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID if creation was successful.\").nullable().optional(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company if creation was successful.\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany = action(\"SPECIFIC_CREATE_COMPANY\", {\n slug: \"specific-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.\",\n input: SpecificCreateCompanyInput,\n output: SpecificCreateCompanyOutput,\n});\n"],"mappings":";;AAkBA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACtI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,SAAS,uDAcH;CACP,QAduD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,SAAS,gGAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-conversation.ts
|
|
4
|
+
const SpecificCreateConversationInput = zod.z.object({
|
|
5
|
+
source: zod.z.object({ id: zod.z.string().describe("ID of the source to connect") }).describe("Source connection input.").optional(),
|
|
6
|
+
company: zod.z.object({
|
|
7
|
+
where: zod.z.object({}).describe("Where clause to find existing company, e.g., {'id': 'company-id'}"),
|
|
8
|
+
create: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company data to create if not found")
|
|
9
|
+
}).describe("Company connection or creation input.").optional(),
|
|
10
|
+
contact: zod.z.object({
|
|
11
|
+
where: zod.z.object({}).describe("Where clause to find existing contact, e.g., {'id': 'contact-id'}"),
|
|
12
|
+
create: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Contact data to create if not found")
|
|
13
|
+
}).describe("Contact connection or creation input.").optional(),
|
|
14
|
+
content: zod.z.union([zod.z.string(), zod.z.object({
|
|
15
|
+
type: zod.z.string().describe("Document type, must be 'doc'"),
|
|
16
|
+
content: zod.z.array(zod.z.union([zod.z.object({
|
|
17
|
+
type: zod.z.string().describe("Node type, must be 'heading'"),
|
|
18
|
+
attrs: zod.z.object({}).describe("Heading attributes, e.g., {'level': 1} for H1"),
|
|
19
|
+
content: zod.z.array(zod.z.object({
|
|
20
|
+
text: zod.z.string().describe("The text content"),
|
|
21
|
+
type: zod.z.string().describe("Node type, must be 'text'")
|
|
22
|
+
}).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the heading")
|
|
23
|
+
}).describe("Represents a heading node in ProseMirror document structure."), zod.z.object({
|
|
24
|
+
type: zod.z.string().describe("Node type, must be 'paragraph'"),
|
|
25
|
+
content: zod.z.array(zod.z.object({
|
|
26
|
+
text: zod.z.string().describe("The text content"),
|
|
27
|
+
type: zod.z.string().describe("Node type, must be 'text'")
|
|
28
|
+
}).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the paragraph")
|
|
29
|
+
}).describe("Represents a paragraph node in ProseMirror document structure.")])).describe("List of content nodes (headings and paragraphs)")
|
|
30
|
+
}).describe("ProseMirror document structure for conversation content.")]),
|
|
31
|
+
sourceUrl: zod.z.string().describe("Source reference URL where the conversation originated").optional(),
|
|
32
|
+
insertedAt: zod.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(),
|
|
33
|
+
customFields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field data as key-value pairs").optional()
|
|
34
|
+
}).describe("Request model for creating a new conversation in Specific platform.");
|
|
35
|
+
const SpecificCreateConversation_SourceInfoSchema = zod.z.object({ id: zod.z.string().describe("Source unique identifier") }).describe("Source information in the response.");
|
|
36
|
+
const SpecificCreateConversation_CompanyInfoSchema = zod.z.object({
|
|
37
|
+
id: zod.z.string().describe("Company unique identifier"),
|
|
38
|
+
name: zod.z.string().describe("Company name")
|
|
39
|
+
}).describe("Company information in the response.");
|
|
40
|
+
const SpecificCreateConversation_ContactInfoSchema = zod.z.object({
|
|
41
|
+
id: zod.z.string().describe("Contact unique identifier"),
|
|
42
|
+
name: zod.z.string().describe("Contact name"),
|
|
43
|
+
email: zod.z.string().describe("Contact email address").nullable().optional()
|
|
44
|
+
}).describe("Contact information in the response.");
|
|
45
|
+
const SpecificCreateConversationOutput = zod.z.object({
|
|
46
|
+
id: zod.z.string().describe("The conversation's unique identifier if creation was successful").nullable().optional(),
|
|
47
|
+
name: zod.z.string().describe("The conversation's name if creation was successful").nullable().optional(),
|
|
48
|
+
source: SpecificCreateConversation_SourceInfoSchema.nullable().optional(),
|
|
49
|
+
company: SpecificCreateConversation_CompanyInfoSchema.nullable().optional(),
|
|
50
|
+
contact: SpecificCreateConversation_ContactInfoSchema.nullable().optional(),
|
|
51
|
+
message: zod.z.string().describe("Error message if creation failed").nullable().optional(),
|
|
52
|
+
plainText: zod.z.string().describe("The textual content of the conversation if creation was successful").nullable().optional(),
|
|
53
|
+
sourceUrl: zod.z.string().describe("Source URL where the conversation was gathered if creation was successful").nullable().optional(),
|
|
54
|
+
insertedAt: zod.z.string().describe("Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)").nullable().optional(),
|
|
55
|
+
customFields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields as key-value pairs if creation was successful").nullable().optional()
|
|
56
|
+
}).describe("Response model for conversation creation. Returns the created conversation details or error information.");
|
|
57
|
+
const specificCreateConversation = require_action.action("SPECIFIC_CREATE_CONVERSATION", {
|
|
58
|
+
slug: "specific-create-conversation",
|
|
59
|
+
name: "Create Conversation",
|
|
60
|
+
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.",
|
|
61
|
+
input: SpecificCreateConversationInput,
|
|
62
|
+
output: SpecificCreateConversationOutput
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.specificCreateConversation = specificCreateConversation;
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=create-conversation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation.cjs","names":["z","action"],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput: z.ZodTypeAny = 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.object({}).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.object({}).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.object({}).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}).describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the heading\"),\n}).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}).describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the paragraph\"),\n}).describe(\"Represents a paragraph node in ProseMirror document structure.\")])).describe(\"List of content nodes (headings and paragraphs)\"),\n}).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.ZodTypeAny = z.object({\n id: z.string().describe(\"Source unique identifier\"),\n}).describe(\"Source information in the response.\");\nconst SpecificCreateConversation_CompanyInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company unique identifier\"),\n name: z.string().describe(\"Company name\"),\n}).describe(\"Company information in the response.\");\nconst SpecificCreateConversation_ContactInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact unique identifier\"),\n name: z.string().describe(\"Contact name\"),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n}).describe(\"Contact information in the response.\");\nexport const SpecificCreateConversationOutput: z.ZodTypeAny = 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}).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.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/C,SAASA,IAAAA,EAAE,OAAO;EAClB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAChG,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAO;EAClB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAA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CAAC,SAAS;CACpG,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,0GAA0G;AAEtH,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-conversation.d.ts
|
|
4
|
+
declare const SpecificCreateConversationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateConversationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateConversation };
|
|
9
|
+
//# sourceMappingURL=create-conversation.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation.d.cts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAgCkC;AAAA,cAarE,gCAAA,EAAkC,CAAA,CAAE,UAWsE;AAAA,cAE1G,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-conversation.d.ts
|
|
4
|
+
declare const SpecificCreateConversationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateConversationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateConversation };
|
|
9
|
+
//# sourceMappingURL=create-conversation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation.d.mts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAgCkC;AAAA,cAarE,gCAAA,EAAkC,CAAA,CAAE,UAWsE;AAAA,cAE1G,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-conversation.ts
|
|
4
|
+
const SpecificCreateConversationInput = z.object({
|
|
5
|
+
source: z.object({ id: z.string().describe("ID of the source to connect") }).describe("Source connection input.").optional(),
|
|
6
|
+
company: z.object({
|
|
7
|
+
where: z.object({}).describe("Where clause to find existing company, e.g., {'id': 'company-id'}"),
|
|
8
|
+
create: z.record(z.string(), z.unknown()).describe("Company data to create if not found")
|
|
9
|
+
}).describe("Company connection or creation input.").optional(),
|
|
10
|
+
contact: z.object({
|
|
11
|
+
where: z.object({}).describe("Where clause to find existing contact, e.g., {'id': 'contact-id'}"),
|
|
12
|
+
create: z.record(z.string(), z.unknown()).describe("Contact data to create if not found")
|
|
13
|
+
}).describe("Contact connection or creation input.").optional(),
|
|
14
|
+
content: z.union([z.string(), z.object({
|
|
15
|
+
type: z.string().describe("Document type, must be 'doc'"),
|
|
16
|
+
content: z.array(z.union([z.object({
|
|
17
|
+
type: z.string().describe("Node type, must be 'heading'"),
|
|
18
|
+
attrs: z.object({}).describe("Heading attributes, e.g., {'level': 1} for H1"),
|
|
19
|
+
content: z.array(z.object({
|
|
20
|
+
text: z.string().describe("The text content"),
|
|
21
|
+
type: z.string().describe("Node type, must be 'text'")
|
|
22
|
+
}).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the heading")
|
|
23
|
+
}).describe("Represents a heading node in ProseMirror document structure."), z.object({
|
|
24
|
+
type: z.string().describe("Node type, must be 'paragraph'"),
|
|
25
|
+
content: z.array(z.object({
|
|
26
|
+
text: z.string().describe("The text content"),
|
|
27
|
+
type: z.string().describe("Node type, must be 'text'")
|
|
28
|
+
}).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the paragraph")
|
|
29
|
+
}).describe("Represents a paragraph node in ProseMirror document structure.")])).describe("List of content nodes (headings and paragraphs)")
|
|
30
|
+
}).describe("ProseMirror document structure for conversation content.")]),
|
|
31
|
+
sourceUrl: z.string().describe("Source reference URL where the conversation originated").optional(),
|
|
32
|
+
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(),
|
|
33
|
+
customFields: z.record(z.string(), z.unknown()).describe("Custom field data as key-value pairs").optional()
|
|
34
|
+
}).describe("Request model for creating a new conversation in Specific platform.");
|
|
35
|
+
const SpecificCreateConversation_SourceInfoSchema = z.object({ id: z.string().describe("Source unique identifier") }).describe("Source information in the response.");
|
|
36
|
+
const SpecificCreateConversation_CompanyInfoSchema = z.object({
|
|
37
|
+
id: z.string().describe("Company unique identifier"),
|
|
38
|
+
name: z.string().describe("Company name")
|
|
39
|
+
}).describe("Company information in the response.");
|
|
40
|
+
const SpecificCreateConversation_ContactInfoSchema = z.object({
|
|
41
|
+
id: z.string().describe("Contact unique identifier"),
|
|
42
|
+
name: z.string().describe("Contact name"),
|
|
43
|
+
email: z.string().describe("Contact email address").nullable().optional()
|
|
44
|
+
}).describe("Contact information in the response.");
|
|
45
|
+
const specificCreateConversation = action("SPECIFIC_CREATE_CONVERSATION", {
|
|
46
|
+
slug: "specific-create-conversation",
|
|
47
|
+
name: "Create Conversation",
|
|
48
|
+
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.",
|
|
49
|
+
input: SpecificCreateConversationInput,
|
|
50
|
+
output: z.object({
|
|
51
|
+
id: z.string().describe("The conversation's unique identifier if creation was successful").nullable().optional(),
|
|
52
|
+
name: z.string().describe("The conversation's name if creation was successful").nullable().optional(),
|
|
53
|
+
source: SpecificCreateConversation_SourceInfoSchema.nullable().optional(),
|
|
54
|
+
company: SpecificCreateConversation_CompanyInfoSchema.nullable().optional(),
|
|
55
|
+
contact: SpecificCreateConversation_ContactInfoSchema.nullable().optional(),
|
|
56
|
+
message: z.string().describe("Error message if creation failed").nullable().optional(),
|
|
57
|
+
plainText: z.string().describe("The textual content of the conversation if creation was successful").nullable().optional(),
|
|
58
|
+
sourceUrl: z.string().describe("Source URL where the conversation was gathered if creation was successful").nullable().optional(),
|
|
59
|
+
insertedAt: z.string().describe("Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)").nullable().optional(),
|
|
60
|
+
customFields: z.record(z.string(), z.unknown()).describe("Custom fields as key-value pairs if creation was successful").nullable().optional()
|
|
61
|
+
}).describe("Response model for conversation creation. Returns the created conversation details or error information.")
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
export { specificCreateConversation };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=create-conversation.mjs.map
|
|
@@ -0,0 +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: z.ZodTypeAny = 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.object({}).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.object({}).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.object({}).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}).describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the heading\"),\n}).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}).describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the paragraph\"),\n}).describe(\"Represents a paragraph node in ProseMirror document structure.\")])).describe(\"List of content nodes (headings and paragraphs)\"),\n}).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.ZodTypeAny = z.object({\n id: z.string().describe(\"Source unique identifier\"),\n}).describe(\"Source information in the response.\");\nconst SpecificCreateConversation_CompanyInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company unique identifier\"),\n name: z.string().describe(\"Company name\"),\n}).describe(\"Company information in the response.\");\nconst SpecificCreateConversation_ContactInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact unique identifier\"),\n name: z.string().describe(\"Contact name\"),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n}).describe(\"Contact information in the response.\");\nexport const SpecificCreateConversationOutput: z.ZodTypeAny = 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}).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.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,OAAO;EAClB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAChG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO;EAClB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAChG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACxD,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;GACnC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;GACxD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;GAC5E,SAAS,EAAE,MAAM,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.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-or-update-company.ts
|
|
4
|
+
const SpecificCreateOrUpdateCompanyInput = zod.z.object({
|
|
5
|
+
data: zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Company ID - unique identifier for the company. Required for upsert operations."),
|
|
7
|
+
name: zod.z.string().describe("Company name - the display name of the company.").optional(),
|
|
8
|
+
attributes: zod.z.object({}).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
|
|
9
|
+
}).describe("Company data to create or update - must include ID and optionally name and attributes."),
|
|
10
|
+
where: zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("Company ID for filtering - identifies which company to update.").optional(),
|
|
12
|
+
attributes: zod.z.object({}).describe("Filter by company attributes - key-value pairs to match.").optional()
|
|
13
|
+
}).describe("Filter criteria to identify which company to update - typically matches by ID.")
|
|
14
|
+
}).describe("Request model for creating or updating a company in Specific.");
|
|
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.");
|
|
21
|
+
const SpecificCreateOrUpdateCompanyOutput = zod.z.object({
|
|
22
|
+
message: zod.z.string().describe("Error message if operation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
|
|
23
|
+
companies: zod.z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe("List of companies that were created or updated (on success).").nullable().optional(),
|
|
24
|
+
fieldErrors: zod.z.union([
|
|
25
|
+
zod.z.string(),
|
|
26
|
+
zod.z.object({}),
|
|
27
|
+
zod.z.array(zod.z.object({}))
|
|
28
|
+
]).nullable().optional()
|
|
29
|
+
}).describe("Response model for company creation or update. Returns the created/updated company details or error information.");
|
|
30
|
+
const specificCreateOrUpdateCompany = require_action.action("SPECIFIC_CREATE_OR_UPDATE_COMPANY", {
|
|
31
|
+
slug: "specific-create-or-update-company",
|
|
32
|
+
name: "Create or Update Company",
|
|
33
|
+
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.",
|
|
34
|
+
input: SpecificCreateOrUpdateCompanyInput,
|
|
35
|
+
output: SpecificCreateOrUpdateCompanyOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.specificCreateOrUpdateCompany = specificCreateOrUpdateCompany;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=create-or-update-company.cjs.map
|
|
@@ -0,0 +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: z.ZodTypeAny = 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.object({}).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.object({}).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.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's unique identifier.\"),\n name: z.string().describe(\"The company's name.\"),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\"),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\"),\n}).describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput: z.ZodTypeAny = 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.object({}), z.array(z.object({}))]).nullable().optional(),\n}).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,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,WAAWA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,aAAaA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAE9H,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-or-update-company.d.ts
|
|
4
|
+
declare const SpecificCreateOrUpdateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateOrUpdateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateOrUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateOrUpdateCompany };
|
|
9
|
+
//# sourceMappingURL=create-or-update-company.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-company.d.cts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAUyB;AAAA,cAO/D,mCAAA,EAAqC,CAAA,CAAE,UAI2E;AAAA,cAElH,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-or-update-company.d.ts
|
|
4
|
+
declare const SpecificCreateOrUpdateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateOrUpdateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateOrUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateOrUpdateCompany };
|
|
9
|
+
//# sourceMappingURL=create-or-update-company.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-company.d.mts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAUyB;AAAA,cAO/D,mCAAA,EAAqC,CAAA,CAAE,UAI2E;AAAA,cAElH,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-or-update-company.ts
|
|
4
|
+
const SpecificCreateOrUpdateCompanyInput = z.object({
|
|
5
|
+
data: z.object({
|
|
6
|
+
id: z.string().describe("Company ID - unique identifier for the company. Required for upsert operations."),
|
|
7
|
+
name: z.string().describe("Company name - the display name of the company.").optional(),
|
|
8
|
+
attributes: z.object({}).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
|
|
9
|
+
}).describe("Company data to create or update - must include ID and optionally name and attributes."),
|
|
10
|
+
where: z.object({
|
|
11
|
+
id: z.string().describe("Company ID for filtering - identifies which company to update.").optional(),
|
|
12
|
+
attributes: z.object({}).describe("Filter by company attributes - key-value pairs to match.").optional()
|
|
13
|
+
}).describe("Filter criteria to identify which company to update - typically matches by ID.")
|
|
14
|
+
}).describe("Request model for creating or updating a company in Specific.");
|
|
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.");
|
|
21
|
+
const specificCreateOrUpdateCompany = action("SPECIFIC_CREATE_OR_UPDATE_COMPANY", {
|
|
22
|
+
slug: "specific-create-or-update-company",
|
|
23
|
+
name: "Create or Update Company",
|
|
24
|
+
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.",
|
|
25
|
+
input: SpecificCreateOrUpdateCompanyInput,
|
|
26
|
+
output: z.object({
|
|
27
|
+
message: z.string().describe("Error message if operation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
|
|
28
|
+
companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe("List of companies that were created or updated (on success).").nullable().optional(),
|
|
29
|
+
fieldErrors: z.union([
|
|
30
|
+
z.string(),
|
|
31
|
+
z.object({}),
|
|
32
|
+
z.array(z.object({}))
|
|
33
|
+
]).nullable().optional()
|
|
34
|
+
}).describe("Response model for company creation or update. Returns the created/updated company details or error information.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { specificCreateOrUpdateCompany };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=create-or-update-company.mjs.map
|
|
@@ -0,0 +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: z.ZodTypeAny = 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.object({}).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.object({}).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.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's unique identifier.\"),\n name: z.string().describe(\"The company's name.\"),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\"),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\"),\n}).describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput: z.ZodTypeAny = 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.object({}), z.array(z.object({}))]).nullable().optional(),\n}).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,qCAAmD,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAO7D,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+D,EAAE,OAAO;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,kHAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-or-update-user.ts
|
|
4
|
+
const SpecificCreateOrUpdateUserInput = zod.z.object({
|
|
5
|
+
data: zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Contact's ID").optional(),
|
|
7
|
+
name: zod.z.string().describe("Contact's name").optional(),
|
|
8
|
+
email: zod.z.string().describe("Contact's email").optional(),
|
|
9
|
+
company: zod.z.object({ connect: zod.z.string().describe("Company ID to connect to the contact").optional() }).describe("Input for establishing a relationship between contact and company.").optional(),
|
|
10
|
+
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Update custom field values. Will merge current values with new ones.").optional()
|
|
11
|
+
}).describe("Contact information to create or update"),
|
|
12
|
+
where: zod.z.object({
|
|
13
|
+
id: zod.z.string().describe("Contact ID to filter by").optional(),
|
|
14
|
+
email: zod.z.string().describe("Contact email to filter by").optional()
|
|
15
|
+
}).describe("Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.")
|
|
16
|
+
}).describe("Request model for creating or updating a user in Specific.");
|
|
17
|
+
const SpecificCreateOrUpdateUser_CompanySchema = zod.z.object({
|
|
18
|
+
id: zod.z.string().describe("Company ID").nullable().optional(),
|
|
19
|
+
name: zod.z.string().describe("Company name").nullable().optional()
|
|
20
|
+
}).describe("Company information.");
|
|
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"),
|
|
24
|
+
email: zod.z.string().describe("Contact's email").nullable().optional(),
|
|
25
|
+
company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
|
|
26
|
+
visitorId: zod.z.string().describe("Internal Specific ID")
|
|
27
|
+
}).describe("User/Contact information.");
|
|
28
|
+
const SpecificCreateOrUpdateUserOutput = zod.z.object({
|
|
29
|
+
error: zod.z.string().describe("Error message if failed").nullable().optional(),
|
|
30
|
+
success: zod.z.boolean().describe("Whether the operation was successful"),
|
|
31
|
+
contacts: zod.z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
|
|
32
|
+
}).describe("Response model for createOrUpdateUser mutation.");
|
|
33
|
+
const specificCreateOrUpdateUser = require_action.action("SPECIFIC_CREATE_OR_UPDATE_USER", {
|
|
34
|
+
slug: "specific-create-or-update-user",
|
|
35
|
+
name: "Create Or Update User",
|
|
36
|
+
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.",
|
|
37
|
+
input: SpecificCreateOrUpdateUserInput,
|
|
38
|
+
output: SpecificCreateOrUpdateUserOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.specificCreateOrUpdateUser = specificCreateOrUpdateUser;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=create-or-update-user.cjs.map
|
|
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact's ID\"),\n name: z.string().describe(\"Contact's name\"),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\"),\n}).describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\"),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).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,MAA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AC,CAAC,SAAS,cAAc;CACtC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACvD,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-or-update-user.d.ts
|
|
4
|
+
declare const SpecificCreateOrUpdateUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpecificCreateOrUpdateUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { specificCreateOrUpdateUser };
|
|
9
|
+
//# sourceMappingURL=create-or-update-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-user.d.cts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAcyB;AAAA,cAY5D,gCAAA,EAAkC,CAAA,CAAE,UAIa;AAAA,cAEjD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|