@keystrokehq/specific 0.1.5 → 0.1.6
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 +1 -0
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +3 -17
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +3 -17
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +1 -0
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +1 -0
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +3 -50
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +3 -50
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +1 -0
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-or-update-company.cjs +1 -0
- package/dist/actions/create-or-update-company.cjs.map +1 -1
- package/dist/actions/create-or-update-company.d.cts +3 -23
- package/dist/actions/create-or-update-company.d.cts.map +1 -1
- package/dist/actions/create-or-update-company.d.mts +3 -23
- package/dist/actions/create-or-update-company.d.mts.map +1 -1
- package/dist/actions/create-or-update-company.mjs +1 -0
- package/dist/actions/create-or-update-company.mjs.map +1 -1
- package/dist/actions/create-or-update-user.cjs +1 -0
- package/dist/actions/create-or-update-user.cjs.map +1 -1
- package/dist/actions/create-or-update-user.d.cts +3 -27
- package/dist/actions/create-or-update-user.d.cts.map +1 -1
- package/dist/actions/create-or-update-user.d.mts +3 -27
- package/dist/actions/create-or-update-user.d.mts.map +1 -1
- package/dist/actions/create-or-update-user.mjs +1 -0
- package/dist/actions/create-or-update-user.mjs.map +1 -1
- package/dist/actions/create-user.cjs +1 -0
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +3 -23
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +3 -23
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +1 -0
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-company-attributes.cjs +1 -0
- package/dist/actions/delete-company-attributes.cjs.map +1 -1
- package/dist/actions/delete-company-attributes.d.cts +3 -16
- package/dist/actions/delete-company-attributes.d.cts.map +1 -1
- package/dist/actions/delete-company-attributes.d.mts +3 -16
- package/dist/actions/delete-company-attributes.d.mts.map +1 -1
- package/dist/actions/delete-company-attributes.mjs +1 -0
- package/dist/actions/delete-company-attributes.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +1 -0
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +3 -15
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +3 -15
- package/dist/actions/delete-company.d.mts.map +1 -1
- package/dist/actions/delete-company.mjs +1 -0
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +1 -0
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +3 -21
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +3 -21
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +1 -0
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -16
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -16
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-my-workspace.cjs +1 -0
- package/dist/actions/get-my-workspace.cjs.map +1 -1
- package/dist/actions/get-my-workspace.d.cts +3 -13
- package/dist/actions/get-my-workspace.d.cts.map +1 -1
- package/dist/actions/get-my-workspace.d.mts +3 -13
- package/dist/actions/get-my-workspace.d.mts.map +1 -1
- package/dist/actions/get-my-workspace.mjs +1 -0
- package/dist/actions/get-my-workspace.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +1 -0
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +3 -46
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +3 -46
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +1 -0
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-conversations.cjs +1 -0
- package/dist/actions/list-conversations.cjs.map +1 -1
- package/dist/actions/list-conversations.d.cts +3 -17
- package/dist/actions/list-conversations.d.cts.map +1 -1
- package/dist/actions/list-conversations.d.mts +3 -17
- package/dist/actions/list-conversations.d.mts.map +1 -1
- package/dist/actions/list-conversations.mjs +1 -0
- package/dist/actions/list-conversations.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +1 -0
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +3 -15
- package/dist/actions/list-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-custom-fields.d.mts +3 -15
- package/dist/actions/list-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-custom-fields.mjs +1 -0
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-sources.cjs +1 -0
- package/dist/actions/list-sources.cjs.map +1 -1
- package/dist/actions/list-sources.d.cts +3 -13
- package/dist/actions/list-sources.d.cts.map +1 -1
- package/dist/actions/list-sources.d.mts +3 -13
- package/dist/actions/list-sources.d.mts.map +1 -1
- package/dist/actions/list-sources.mjs +1 -0
- package/dist/actions/list-sources.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +1 -0
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +3 -13
- package/dist/actions/list-surveys.d.cts.map +1 -1
- package/dist/actions/list-surveys.d.mts +3 -13
- package/dist/actions/list-surveys.d.mts.map +1 -1
- package/dist/actions/list-surveys.mjs +1 -0
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -47
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -47
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/update-company.cjs +1 -0
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +3 -17
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +3 -17
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +1 -0
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -27
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -27
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["specific","executeSpecificTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof specific.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,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.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof specific.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,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"}
|
|
@@ -1 +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.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.record(z.string(), z.unknown()).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.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.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\n\nexport const SpecificCreateCompanyInput = 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.record(z.string(), z.unknown()).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.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.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany: AppAction<\n typeof SpecificCreateCompanyInput,\n typeof SpecificCreateCompanyOutput,\n typeof specific.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAAgG;AAE1H,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-company.d.ts
|
|
@@ -14,23 +16,7 @@ declare const SpecificCreateCompanyOutput: z.ZodObject<{
|
|
|
14
16
|
usersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
17
|
fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const specificCreateCompany:
|
|
18
|
-
id?: string | undefined;
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
attributes?: Record<string, unknown> | undefined;
|
|
21
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const specificCreateCompany: AppAction<typeof SpecificCreateCompanyInput, typeof SpecificCreateCompanyOutput, typeof specific.credential>;
|
|
34
20
|
//#endregion
|
|
35
21
|
export { specificCreateCompany };
|
|
36
22
|
//# sourceMappingURL=create-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-company.d.ts
|
|
@@ -14,23 +16,7 @@ declare const SpecificCreateCompanyOutput: z.ZodObject<{
|
|
|
14
16
|
usersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
17
|
fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const specificCreateCompany:
|
|
18
|
-
id?: string | undefined;
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
attributes?: Record<string, unknown> | undefined;
|
|
21
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const specificCreateCompany: AppAction<typeof SpecificCreateCompanyInput, typeof SpecificCreateCompanyOutput, typeof specific.credential>;
|
|
34
20
|
//#endregion
|
|
35
21
|
export { specificCreateCompany };
|
|
36
22
|
//# sourceMappingURL=create-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +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.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.record(z.string(), z.unknown()).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.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.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\n\nexport const SpecificCreateCompanyInput = 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.record(z.string(), z.unknown()).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.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.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany: AppAction<\n typeof SpecificCreateCompanyInput,\n typeof SpecificCreateCompanyOutput,\n typeof specific.credential\n> = 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":";;;AAoBA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBwC,EAAE,OAAO;EACjD,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACtL,CAAC,CAAC,CAAC,SAAS,uDAkBH;CACP,QAlByC,EAAE,OAAO;EAClD,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-conversation.cjs","names":["z","action"],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\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: AppAction<\n typeof SpecificCreateConversationInput,\n typeof SpecificCreateConversationOutput,\n typeof specific.credential\n> = 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":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EACrH,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,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|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-conversation.d.ts
|
|
@@ -55,56 +57,7 @@ declare const SpecificCreateConversationOutput: z.ZodObject<{
|
|
|
55
57
|
insertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
58
|
customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
|
-
declare const specificCreateConversation:
|
|
59
|
-
content: string | {
|
|
60
|
-
[x: string]: unknown;
|
|
61
|
-
type: string;
|
|
62
|
-
content: ({
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
type: string;
|
|
65
|
-
attrs: Record<string, unknown>;
|
|
66
|
-
content: {
|
|
67
|
-
[x: string]: unknown;
|
|
68
|
-
text: string;
|
|
69
|
-
type: string;
|
|
70
|
-
}[];
|
|
71
|
-
} | {
|
|
72
|
-
[x: string]: unknown;
|
|
73
|
-
type: string;
|
|
74
|
-
content: {
|
|
75
|
-
[x: string]: unknown;
|
|
76
|
-
text: string;
|
|
77
|
-
type: string;
|
|
78
|
-
}[];
|
|
79
|
-
})[];
|
|
80
|
-
};
|
|
81
|
-
source?: {
|
|
82
|
-
id: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
company?: {
|
|
85
|
-
where: Record<string, unknown>;
|
|
86
|
-
create: Record<string, unknown>;
|
|
87
|
-
} | undefined;
|
|
88
|
-
contact?: {
|
|
89
|
-
where: Record<string, unknown>;
|
|
90
|
-
create: Record<string, unknown>;
|
|
91
|
-
} | undefined;
|
|
92
|
-
sourceUrl?: string | undefined;
|
|
93
|
-
insertedAt?: string | undefined;
|
|
94
|
-
customFields?: Record<string, unknown> | undefined;
|
|
95
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
96
|
-
connectionId: z.ZodString;
|
|
97
|
-
entityId: z.ZodString;
|
|
98
|
-
instanceId: z.ZodString;
|
|
99
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
-
generic_api_key: z.ZodString;
|
|
101
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
102
|
-
connectionId: z.ZodString;
|
|
103
|
-
entityId: z.ZodString;
|
|
104
|
-
instanceId: z.ZodString;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
generic_api_key: z.ZodString;
|
|
107
|
-
}, z.core.$strip>>]>;
|
|
60
|
+
declare const specificCreateConversation: AppAction<typeof SpecificCreateConversationInput, typeof SpecificCreateConversationOutput, typeof specific.credential>;
|
|
108
61
|
//#endregion
|
|
109
62
|
export { specificCreateConversation };
|
|
110
63
|
//# sourceMappingURL=create-conversation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-conversation.d.cts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-conversation.d.cts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAahC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-conversation.d.ts
|
|
@@ -55,56 +57,7 @@ declare const SpecificCreateConversationOutput: z.ZodObject<{
|
|
|
55
57
|
insertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
58
|
customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
|
-
declare const specificCreateConversation:
|
|
59
|
-
content: string | {
|
|
60
|
-
[x: string]: unknown;
|
|
61
|
-
type: string;
|
|
62
|
-
content: ({
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
type: string;
|
|
65
|
-
attrs: Record<string, unknown>;
|
|
66
|
-
content: {
|
|
67
|
-
[x: string]: unknown;
|
|
68
|
-
text: string;
|
|
69
|
-
type: string;
|
|
70
|
-
}[];
|
|
71
|
-
} | {
|
|
72
|
-
[x: string]: unknown;
|
|
73
|
-
type: string;
|
|
74
|
-
content: {
|
|
75
|
-
[x: string]: unknown;
|
|
76
|
-
text: string;
|
|
77
|
-
type: string;
|
|
78
|
-
}[];
|
|
79
|
-
})[];
|
|
80
|
-
};
|
|
81
|
-
source?: {
|
|
82
|
-
id: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
company?: {
|
|
85
|
-
where: Record<string, unknown>;
|
|
86
|
-
create: Record<string, unknown>;
|
|
87
|
-
} | undefined;
|
|
88
|
-
contact?: {
|
|
89
|
-
where: Record<string, unknown>;
|
|
90
|
-
create: Record<string, unknown>;
|
|
91
|
-
} | undefined;
|
|
92
|
-
sourceUrl?: string | undefined;
|
|
93
|
-
insertedAt?: string | undefined;
|
|
94
|
-
customFields?: Record<string, unknown> | undefined;
|
|
95
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
96
|
-
connectionId: z.ZodString;
|
|
97
|
-
entityId: z.ZodString;
|
|
98
|
-
instanceId: z.ZodString;
|
|
99
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
-
generic_api_key: z.ZodString;
|
|
101
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
102
|
-
connectionId: z.ZodString;
|
|
103
|
-
entityId: z.ZodString;
|
|
104
|
-
instanceId: z.ZodString;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
generic_api_key: z.ZodString;
|
|
107
|
-
}, z.core.$strip>>]>;
|
|
60
|
+
declare const specificCreateConversation: AppAction<typeof SpecificCreateConversationInput, typeof SpecificCreateConversationOutput, typeof specific.credential>;
|
|
108
61
|
//#endregion
|
|
109
62
|
export { specificCreateConversation };
|
|
110
63
|
//# sourceMappingURL=create-conversation.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-conversation.d.mts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-conversation.d.mts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAahC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -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 = 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.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-conversation.mjs","names":[],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\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: AppAction<\n typeof SpecificCreateConversationInput,\n typeof SpecificCreateConversationOutput,\n typeof specific.credential\n> = 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":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,S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":["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":"
|
|
1
|
+
{"version":3,"file":"create-or-update-company.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\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: AppAction<\n typeof SpecificCreateOrUpdateCompanyInput,\n typeof SpecificCreateOrUpdateCompanyOutput,\n typeof specific.credential\n> = 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":";;;;AAMA,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,wFAAwF;CAClG,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAAkH;AAE5I,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-company.d.ts
|
|
@@ -22,29 +24,7 @@ declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
|
|
|
22
24
|
}, z.core.$loose>>>>;
|
|
23
25
|
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
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const specificCreateOrUpdateCompany:
|
|
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<"specific", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
27
|
+
declare const specificCreateOrUpdateCompany: AppAction<typeof SpecificCreateOrUpdateCompanyInput, typeof SpecificCreateOrUpdateCompanyOutput, typeof specific.credential>;
|
|
48
28
|
//#endregion
|
|
49
29
|
export { specificCreateOrUpdateCompany };
|
|
50
30
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"create-or-update-company.d.cts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-company.d.ts
|
|
@@ -22,29 +24,7 @@ declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
|
|
|
22
24
|
}, z.core.$loose>>>>;
|
|
23
25
|
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
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const specificCreateOrUpdateCompany:
|
|
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<"specific", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
27
|
+
declare const specificCreateOrUpdateCompany: AppAction<typeof SpecificCreateOrUpdateCompanyInput, typeof SpecificCreateOrUpdateCompanyOutput, typeof specific.credential>;
|
|
48
28
|
//#endregion
|
|
49
29
|
export { specificCreateOrUpdateCompany };
|
|
50
30
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"create-or-update-company.d.mts","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\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: AppAction<\n typeof SpecificCreateOrUpdateCompanyInput,\n typeof SpecificCreateOrUpdateCompanyOutput,\n typeof specific.credential\n> = 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":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,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,EAAE,OAAO,GAAG,EA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AAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { specific } from \"../app\";\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: AppAction<\n typeof SpecificCreateOrUpdateUserInput,\n typeof SpecificCreateOrUpdateUserOutput,\n typeof specific.credential\n> = 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":";;;;AAMA,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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AAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { specific } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-user.d.ts
|
|
@@ -30,33 +32,7 @@ declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
|
|
|
30
32
|
visitorId: z.ZodNullable<z.ZodString>;
|
|
31
33
|
}, z.core.$loose>>>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const specificCreateOrUpdateUser:
|
|
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<"specific", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
generic_api_key: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"specific", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
generic_api_key: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>]>;
|
|
35
|
+
declare const specificCreateOrUpdateUser: AppAction<typeof SpecificCreateOrUpdateUserInput, typeof SpecificCreateOrUpdateUserOutput, typeof specific.credential>;
|
|
60
36
|
//#endregion
|
|
61
37
|
export { specificCreateOrUpdateUser };
|
|
62
38
|
//# sourceMappingURL=create-or-update-user.d.cts.map
|