@keystrokehq/specific 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-company.cjs +3 -3
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +18 -3
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +18 -3
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +3 -3
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +16 -16
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +92 -3
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +92 -3
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +16 -16
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-or-update-company.cjs +10 -10
- package/dist/actions/create-or-update-company.cjs.map +1 -1
- package/dist/actions/create-or-update-company.d.cts +32 -3
- package/dist/actions/create-or-update-company.d.cts.map +1 -1
- package/dist/actions/create-or-update-company.d.mts +32 -3
- package/dist/actions/create-or-update-company.d.mts.map +1 -1
- package/dist/actions/create-or-update-company.mjs +10 -10
- package/dist/actions/create-or-update-company.mjs.map +1 -1
- package/dist/actions/create-or-update-user.cjs +7 -7
- package/dist/actions/create-or-update-user.cjs.map +1 -1
- package/dist/actions/create-or-update-user.d.cts +44 -3
- package/dist/actions/create-or-update-user.d.cts.map +1 -1
- package/dist/actions/create-or-update-user.d.mts +44 -3
- package/dist/actions/create-or-update-user.d.mts.map +1 -1
- package/dist/actions/create-or-update-user.mjs +7 -7
- package/dist/actions/create-or-update-user.mjs.map +1 -1
- package/dist/actions/create-user.cjs +3 -3
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +35 -3
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +35 -3
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +3 -3
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-company-attributes.cjs +5 -5
- package/dist/actions/delete-company-attributes.cjs.map +1 -1
- package/dist/actions/delete-company-attributes.d.cts +14 -3
- package/dist/actions/delete-company-attributes.d.cts.map +1 -1
- package/dist/actions/delete-company-attributes.d.mts +14 -3
- package/dist/actions/delete-company-attributes.d.mts.map +1 -1
- package/dist/actions/delete-company-attributes.mjs +5 -5
- package/dist/actions/delete-company-attributes.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +5 -5
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +12 -3
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +12 -3
- package/dist/actions/delete-company.d.mts.map +1 -1
- package/dist/actions/delete-company.mjs +5 -5
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +7 -7
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +32 -3
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +32 -3
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +7 -7
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +5 -5
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +18 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +18 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +5 -5
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-my-workspace.cjs +5 -5
- package/dist/actions/get-my-workspace.cjs.map +1 -1
- package/dist/actions/get-my-workspace.d.cts +10 -3
- package/dist/actions/get-my-workspace.d.cts.map +1 -1
- package/dist/actions/get-my-workspace.d.mts +10 -3
- package/dist/actions/get-my-workspace.d.mts.map +1 -1
- package/dist/actions/get-my-workspace.mjs +5 -5
- package/dist/actions/get-my-workspace.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +6 -6
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +76 -3
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +76 -3
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +6 -6
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-conversations.cjs +21 -21
- package/dist/actions/list-conversations.cjs.map +1 -1
- package/dist/actions/list-conversations.d.cts +47 -3
- package/dist/actions/list-conversations.d.cts.map +1 -1
- package/dist/actions/list-conversations.d.mts +47 -3
- package/dist/actions/list-conversations.d.mts.map +1 -1
- package/dist/actions/list-conversations.mjs +21 -21
- package/dist/actions/list-conversations.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +5 -5
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +21 -3
- package/dist/actions/list-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-custom-fields.d.mts +21 -3
- package/dist/actions/list-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-custom-fields.mjs +5 -5
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-sources.cjs +5 -5
- package/dist/actions/list-sources.cjs.map +1 -1
- package/dist/actions/list-sources.d.cts +10 -3
- package/dist/actions/list-sources.d.cts.map +1 -1
- package/dist/actions/list-sources.d.mts +10 -3
- package/dist/actions/list-sources.d.mts.map +1 -1
- package/dist/actions/list-sources.mjs +5 -5
- package/dist/actions/list-sources.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +16 -16
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +23 -3
- package/dist/actions/list-surveys.d.cts.map +1 -1
- package/dist/actions/list-surveys.d.mts +23 -3
- package/dist/actions/list-surveys.d.mts.map +1 -1
- package/dist/actions/list-surveys.mjs +16 -16
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/list-users.cjs +11 -11
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +84 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +84 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +11 -11
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/update-company.cjs +6 -6
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +18 -3
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +18 -3
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +6 -6
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-user.cjs +7 -7
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +44 -3
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +44 -3
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +7 -7
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;eAM7B,MAAA;AAAA"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user.d.ts
|
|
4
|
-
declare const SpecificCreateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificCreateUserInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
connect: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SpecificCreateUserOutput: z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
21
|
+
visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
field_errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
path: z.ZodArray<z.ZodString>;
|
|
24
|
+
message: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>>>>;
|
|
26
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
email?: string | undefined;
|
|
32
|
+
company?: {
|
|
33
|
+
connect: {
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
} | undefined;
|
|
37
|
+
attributes?: Record<string, unknown> | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { specificCreateUser };
|
|
9
41
|
//# sourceMappingURL=create-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;eAM7B,MAAA;AAAA"}
|
|
@@ -10,8 +10,8 @@ const SpecificCreateUserInput = z.object({
|
|
|
10
10
|
}).describe("Request model for creating a new user (contact) in Specific.");
|
|
11
11
|
const SpecificCreateUser_ValidationFieldErrorSchema = z.object({
|
|
12
12
|
path: z.array(z.string()).describe("Array of strings indicating the path to the field that failed validation."),
|
|
13
|
-
message: z.string().describe("Description of the validation error.")
|
|
14
|
-
}).describe("Field-level validation error details.");
|
|
13
|
+
message: z.string().describe("Description of the validation error.").nullable()
|
|
14
|
+
}).passthrough().describe("Field-level validation error details.");
|
|
15
15
|
const specificCreateUser = action("SPECIFIC_CREATE_USER", {
|
|
16
16
|
slug: "specific-create-user",
|
|
17
17
|
name: "Create User",
|
|
@@ -26,7 +26,7 @@ const specificCreateUser = action("SPECIFIC_CREATE_USER", {
|
|
|
26
26
|
visitorId: z.string().describe("The internal Specific visitor ID (present on success).").nullable().optional(),
|
|
27
27
|
field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe("Field-level validation errors if validation failed.").nullable().optional(),
|
|
28
28
|
error_message: z.string().describe("Error message if the operation failed.").nullable().optional()
|
|
29
|
-
}).describe("Response model for user creation. Contains either success data or error information.")
|
|
29
|
+
}).passthrough().describe("Response model for user creation. Contains either success data or error information.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { specificCreateUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput
|
|
1
|
+
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).passthrough().describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created contact (present on success).\").nullable().optional(),\n name: z.string().describe(\"The name of the created contact (present on success).\").nullable().optional(),\n email: z.string().describe(\"The email of the created contact (present on success).\").nullable().optional(),\n company: z.record(z.string(), z.unknown()).describe(\"Company information (present on success if associated).\").nullable().optional(),\n success: z.boolean().default(false).describe(\"Indicates whether the user creation was successful.\").nullable().optional(),\n visitorId: z.string().describe(\"The internal Specific visitor ID (present on success).\").nullable().optional(),\n field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe(\"Field-level validation errors if validation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the operation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E;CAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAYjE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,cAAc,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
|
|
@@ -6,11 +6,11 @@ const SpecificDeleteCompanyAttributesInput = zod.z.object({
|
|
|
6
6
|
company_id: zod.z.string().describe("The unique identifier of the company to delete attributes from.")
|
|
7
7
|
});
|
|
8
8
|
const SpecificDeleteCompanyAttributesOutput = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("The company's unique identifier."),
|
|
10
|
-
name: zod.z.string().describe("The company's name."),
|
|
11
|
-
visitorId: zod.z.string().describe("Internal Specific ID."),
|
|
12
|
-
usersCount: zod.z.number().int().describe("Number of users who belong to the company.")
|
|
13
|
-
});
|
|
9
|
+
id: zod.z.string().describe("The company's unique identifier.").nullable(),
|
|
10
|
+
name: zod.z.string().describe("The company's name.").nullable(),
|
|
11
|
+
visitorId: zod.z.string().describe("Internal Specific ID.").nullable(),
|
|
12
|
+
usersCount: zod.z.number().int().describe("Number of users who belong to the company.").nullable()
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const specificDeleteCompanyAttributes = require_action.action("SPECIFIC_DELETE_COMPANY_ATTRIBUTES", {
|
|
15
15
|
slug: "specific-delete-company-attributes",
|
|
16
16
|
name: "Delete Company Attributes",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput
|
|
1
|
+
{"version":3,"file":"delete-company-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput = z.object({\n keys: z.array(z.string()).describe(\"Custom field identifiers to delete from the company. Must provide at least one key.\"),\n company_id: z.string().describe(\"The unique identifier of the company to delete attributes from.\"),\n});\nexport const SpecificDeleteCompanyAttributesOutput = 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 ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompanyAttributes = action(\"SPECIFIC_DELETE_COMPANY_ATTRIBUTES\", {\n slug: \"specific-delete-company-attributes\",\n name: \"Delete Company Attributes\",\n description: \"Tool to delete specific custom field attributes from a company record. Use when you need to remove custom attributes by their keys from a company. Returns the updated company details.\",\n input: SpecificDeleteCompanyAttributesInput,\n output: SpecificDeleteCompanyAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACnG,CAAC;AACD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,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,uBAAuB,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-company-attributes.d.ts
|
|
4
|
-
declare const SpecificDeleteCompanyAttributesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificDeleteCompanyAttributesInput: z.ZodObject<{
|
|
5
|
+
keys: z.ZodArray<z.ZodString>;
|
|
6
|
+
company_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SpecificDeleteCompanyAttributesOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
12
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const specificDeleteCompanyAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
keys: string[];
|
|
16
|
+
company_id: string;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { specificDeleteCompanyAttributes };
|
|
9
20
|
//# sourceMappingURL=delete-company-attributes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company-attributes.d.cts","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"delete-company-attributes.d.cts","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-company-attributes.d.ts
|
|
4
|
-
declare const SpecificDeleteCompanyAttributesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificDeleteCompanyAttributesInput: z.ZodObject<{
|
|
5
|
+
keys: z.ZodArray<z.ZodString>;
|
|
6
|
+
company_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SpecificDeleteCompanyAttributesOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
12
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const specificDeleteCompanyAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
keys: string[];
|
|
16
|
+
company_id: string;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { specificDeleteCompanyAttributes };
|
|
9
20
|
//# sourceMappingURL=delete-company-attributes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company-attributes.d.mts","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"delete-company-attributes.d.mts","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -9,11 +9,11 @@ const specificDeleteCompanyAttributes = action("SPECIFIC_DELETE_COMPANY_ATTRIBUT
|
|
|
9
9
|
company_id: z.string().describe("The unique identifier of the company to delete attributes from.")
|
|
10
10
|
}),
|
|
11
11
|
output: z.object({
|
|
12
|
-
id: z.string().describe("The company's unique identifier."),
|
|
13
|
-
name: z.string().describe("The company's name."),
|
|
14
|
-
visitorId: z.string().describe("Internal Specific ID."),
|
|
15
|
-
usersCount: z.number().int().describe("Number of users who belong to the company.")
|
|
16
|
-
})
|
|
12
|
+
id: z.string().describe("The company's unique identifier.").nullable(),
|
|
13
|
+
name: z.string().describe("The company's name.").nullable(),
|
|
14
|
+
visitorId: z.string().describe("Internal Specific ID.").nullable(),
|
|
15
|
+
usersCount: z.number().int().describe("Number of users who belong to the company.").nullable()
|
|
16
|
+
}).passthrough()
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { specificDeleteCompanyAttributes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company-attributes.mjs","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput
|
|
1
|
+
{"version":3,"file":"delete-company-attributes.mjs","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput = z.object({\n keys: z.array(z.string()).describe(\"Custom field identifiers to delete from the company. Must provide at least one key.\"),\n company_id: z.string().describe(\"The unique identifier of the company to delete attributes from.\"),\n});\nexport const SpecificDeleteCompanyAttributesOutput = 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 ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompanyAttributes = action(\"SPECIFIC_DELETE_COMPANY_ATTRIBUTES\", {\n slug: \"specific-delete-company-attributes\",\n name: \"Delete Company Attributes\",\n description: \"Tool to delete specific custom field attributes from a company record. Use when you need to remove custom attributes by their keys from a company. Returns the updated company details.\",\n input: SpecificDeleteCompanyAttributesInput,\n output: SpecificDeleteCompanyAttributesOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO;EAC3D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACnG,CAYS;CACP,QAZmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -3,11 +3,11 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/delete-company.ts
|
|
4
4
|
const SpecificDeleteCompanyInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the company to delete.") });
|
|
5
5
|
const SpecificDeleteCompanyOutput = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("The unique identifier of the deleted company."),
|
|
7
|
-
name: zod.z.string().describe("The name of the deleted company."),
|
|
8
|
-
visitorId: zod.z.string().describe("Internal Specific ID of the deleted company."),
|
|
9
|
-
usersCount: zod.z.number().int().describe("Number of users who belonged to the deleted company.")
|
|
10
|
-
});
|
|
6
|
+
id: zod.z.string().describe("The unique identifier of the deleted company.").nullable(),
|
|
7
|
+
name: zod.z.string().describe("The name of the deleted company.").nullable(),
|
|
8
|
+
visitorId: zod.z.string().describe("Internal Specific ID of the deleted company.").nullable(),
|
|
9
|
+
usersCount: zod.z.number().int().describe("Number of users who belonged to the deleted company.").nullable()
|
|
10
|
+
}).passthrough();
|
|
11
11
|
const specificDeleteCompany = require_action.action("SPECIFIC_DELETE_COMPANY", {
|
|
12
12
|
slug: "specific-delete-company",
|
|
13
13
|
name: "Delete Company",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput
|
|
1
|
+
{"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\").nullable(),\n name: z.string().describe(\"The name of the deleted company.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompany = action(\"SPECIFIC_DELETE_COMPANY\", {\n slug: \"specific-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.\",\n input: SpecificDeleteCompanyInput,\n output: SpecificDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-company.d.ts
|
|
4
|
-
declare const SpecificDeleteCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificDeleteCompanyInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SpecificDeleteCompanyOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const specificDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
id: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { specificDeleteCompany };
|
|
9
18
|
//# sourceMappingURL=delete-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company.d.cts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-company.d.cts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-company.d.ts
|
|
4
|
-
declare const SpecificDeleteCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificDeleteCompanyInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SpecificDeleteCompanyOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const specificDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
id: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { specificDeleteCompany };
|
|
9
18
|
//# sourceMappingURL=delete-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company.d.mts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-company.d.mts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -6,11 +6,11 @@ const specificDeleteCompany = action("SPECIFIC_DELETE_COMPANY", {
|
|
|
6
6
|
description: "Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.",
|
|
7
7
|
input: z.object({ id: z.string().describe("The unique identifier of the company to delete.") }),
|
|
8
8
|
output: z.object({
|
|
9
|
-
id: z.string().describe("The unique identifier of the deleted company."),
|
|
10
|
-
name: z.string().describe("The name of the deleted company."),
|
|
11
|
-
visitorId: z.string().describe("Internal Specific ID of the deleted company."),
|
|
12
|
-
usersCount: z.number().int().describe("Number of users who belonged to the deleted company.")
|
|
13
|
-
})
|
|
9
|
+
id: z.string().describe("The unique identifier of the deleted company.").nullable(),
|
|
10
|
+
name: z.string().describe("The name of the deleted company.").nullable(),
|
|
11
|
+
visitorId: z.string().describe("Internal Specific ID of the deleted company.").nullable(),
|
|
12
|
+
usersCount: z.number().int().describe("Number of users who belonged to the deleted company.").nullable()
|
|
13
|
+
}).passthrough()
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { specificDeleteCompany };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-company.mjs","names":[],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput
|
|
1
|
+
{"version":3,"file":"delete-company.mjs","names":[],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\").nullable(),\n name: z.string().describe(\"The name of the deleted company.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompany = action(\"SPECIFIC_DELETE_COMPANY\", {\n slug: \"specific-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.\",\n input: SpecificDeleteCompanyInput,\n output: SpecificDeleteCompanyOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAYS;CACP,QAZyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -11,16 +11,16 @@ const SpecificDeleteUserAttributesInput = zod.z.object({
|
|
|
11
11
|
const SpecificDeleteUserAttributes_CompanySchema = zod.z.object({
|
|
12
12
|
id: zod.z.string().describe("Company ID").nullable().optional(),
|
|
13
13
|
name: zod.z.string().describe("Company name").nullable().optional()
|
|
14
|
-
}).describe("Company information.");
|
|
14
|
+
}).passthrough().describe("Company information.");
|
|
15
15
|
const SpecificDeleteUserAttributes_UserSchema = zod.z.object({
|
|
16
|
-
id: zod.z.string().describe("Contact's ID"),
|
|
17
|
-
name: zod.z.string().describe("Contact's name"),
|
|
16
|
+
id: zod.z.string().describe("Contact's ID").nullable(),
|
|
17
|
+
name: zod.z.string().describe("Contact's name").nullable(),
|
|
18
18
|
email: zod.z.string().describe("Contact's email").nullable().optional(),
|
|
19
19
|
company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),
|
|
20
|
-
visitorId: zod.z.string().describe("Internal Specific ID")
|
|
21
|
-
}).describe("User/Contact information returned after deleting attributes.");
|
|
22
|
-
const SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = zod.z.object({ deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable() }).describe("Wrapper for the deleteUserAttributes data response.");
|
|
23
|
-
const SpecificDeleteUserAttributesOutput = zod.z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).describe("Response model for deleteUserAttributes mutation.");
|
|
20
|
+
visitorId: zod.z.string().describe("Internal Specific ID").nullable()
|
|
21
|
+
}).passthrough().describe("User/Contact information returned after deleting attributes.");
|
|
22
|
+
const SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = zod.z.object({ deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable() }).passthrough().describe("Wrapper for the deleteUserAttributes data response.");
|
|
23
|
+
const SpecificDeleteUserAttributesOutput = zod.z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).passthrough().describe("Response model for deleteUserAttributes mutation.");
|
|
24
24
|
const specificDeleteUserAttributes = require_action.action("SPECIFIC_DELETE_USER_ATTRIBUTES", {
|
|
25
25
|
slug: "specific-delete-user-attributes",
|
|
26
26
|
name: "Delete User Attributes",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserAttributesInput
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserAttributesInput = z.object({\n data: z.object({\n keys: z.array(z.string()).describe(\"A non-empty array of strings representing the custom field keys to be removed from the user record.\"),\n}).describe(\"Specifies which custom field attributes to delete from the user record.\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by. At least one of id or email must be provided.\").optional(),\n email: z.string().describe(\"Contact email to filter by. At least one of id or email must be provided.\").optional(),\n}).describe(\"Filter to identify which contact to delete attributes from (by id or email).\"),\n}).describe(\"Request model for deleting user attributes in Specific.\");\nconst SpecificDeleteUserAttributes_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 SpecificDeleteUserAttributes_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: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information returned after deleting attributes.\");\nconst SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = z.object({\n deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable(),\n}).passthrough().describe(\"Wrapper for the deleteUserAttributes data response.\");\nexport const SpecificDeleteUserAttributesOutput = z.object({\n data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable(),\n}).passthrough().describe(\"Response model for deleteUserAttributes mutation.\");\n\nexport const specificDeleteUserAttributes = action(\"SPECIFIC_DELETE_USER_ATTRIBUTES\", {\n slug: \"specific-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Tool to delete specific custom field attributes from a user record in the Specific platform. Use when you need to remove custom field values from a contact without deleting the contact itself.\",\n input: SpecificDeleteUserAttributesInput,\n output: SpecificDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,EACf,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qGAAqG,EAC1I,CAAC,CAAC,CAAC,SAAS,yEAAyE;CACnF,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAM,8DAA8DA,IAAAA,EAAE,OAAO,EAC3E,sBAAsB,wCAAwC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-user-attributes.d.ts
|
|
4
|
-
declare const SpecificDeleteUserAttributesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificDeleteUserAttributesInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
keys: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
where: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
email: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SpecificDeleteUserAttributesOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
deleteUserAttributes: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const specificDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
data: {
|
|
29
|
+
keys: string[];
|
|
30
|
+
};
|
|
31
|
+
where: {
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
email?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { specificDeleteUserAttributes };
|
|
9
38
|
//# sourceMappingURL=delete-user-attributes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cAuBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-user-attributes.d.ts
|
|
4
|
-
declare const SpecificDeleteUserAttributesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificDeleteUserAttributesInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
keys: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
where: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
email: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SpecificDeleteUserAttributesOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
deleteUserAttributes: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const specificDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
data: {
|
|
29
|
+
keys: string[];
|
|
30
|
+
};
|
|
31
|
+
where: {
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
email?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { specificDeleteUserAttributes };
|
|
9
38
|
//# sourceMappingURL=delete-user-attributes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cAuBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -11,21 +11,21 @@ const SpecificDeleteUserAttributesInput = z.object({
|
|
|
11
11
|
const SpecificDeleteUserAttributes_CompanySchema = z.object({
|
|
12
12
|
id: z.string().describe("Company ID").nullable().optional(),
|
|
13
13
|
name: z.string().describe("Company name").nullable().optional()
|
|
14
|
-
}).describe("Company information.");
|
|
14
|
+
}).passthrough().describe("Company information.");
|
|
15
15
|
const SpecificDeleteUserAttributes_UserSchema = z.object({
|
|
16
|
-
id: z.string().describe("Contact's ID"),
|
|
17
|
-
name: z.string().describe("Contact's name"),
|
|
16
|
+
id: z.string().describe("Contact's ID").nullable(),
|
|
17
|
+
name: z.string().describe("Contact's name").nullable(),
|
|
18
18
|
email: z.string().describe("Contact's email").nullable().optional(),
|
|
19
19
|
company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),
|
|
20
|
-
visitorId: z.string().describe("Internal Specific ID")
|
|
21
|
-
}).describe("User/Contact information returned after deleting attributes.");
|
|
22
|
-
const SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = z.object({ deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable() }).describe("Wrapper for the deleteUserAttributes data response.");
|
|
20
|
+
visitorId: z.string().describe("Internal Specific ID").nullable()
|
|
21
|
+
}).passthrough().describe("User/Contact information returned after deleting attributes.");
|
|
22
|
+
const SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = z.object({ deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable() }).passthrough().describe("Wrapper for the deleteUserAttributes data response.");
|
|
23
23
|
const specificDeleteUserAttributes = action("SPECIFIC_DELETE_USER_ATTRIBUTES", {
|
|
24
24
|
slug: "specific-delete-user-attributes",
|
|
25
25
|
name: "Delete User Attributes",
|
|
26
26
|
description: "Tool to delete specific custom field attributes from a user record in the Specific platform. Use when you need to remove custom field values from a contact without deleting the contact itself.",
|
|
27
27
|
input: SpecificDeleteUserAttributesInput,
|
|
28
|
-
output: z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).describe("Response model for deleteUserAttributes mutation.")
|
|
28
|
+
output: z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).passthrough().describe("Response model for deleteUserAttributes mutation.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { specificDeleteUserAttributes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserAttributesInput
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserAttributesInput = z.object({\n data: z.object({\n keys: z.array(z.string()).describe(\"A non-empty array of strings representing the custom field keys to be removed from the user record.\"),\n}).describe(\"Specifies which custom field attributes to delete from the user record.\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by. At least one of id or email must be provided.\").optional(),\n email: z.string().describe(\"Contact email to filter by. At least one of id or email must be provided.\").optional(),\n}).describe(\"Filter to identify which contact to delete attributes from (by id or email).\"),\n}).describe(\"Request model for deleting user attributes in Specific.\");\nconst SpecificDeleteUserAttributes_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 SpecificDeleteUserAttributes_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: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information returned after deleting attributes.\");\nconst SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = z.object({\n deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable(),\n}).passthrough().describe(\"Wrapper for the deleteUserAttributes data response.\");\nexport const SpecificDeleteUserAttributesOutput = z.object({\n data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable(),\n}).passthrough().describe(\"Response model for deleteUserAttributes mutation.\");\n\nexport const specificDeleteUserAttributes = action(\"SPECIFIC_DELETE_USER_ATTRIBUTES\", {\n slug: \"specific-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Tool to delete specific custom field attributes from a user record in the Specific platform. Use when you need to remove custom field values from a contact without deleting the contact itself.\",\n input: SpecificDeleteUserAttributesInput,\n output: SpecificDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qGAAqG,EAC1I,CAAC,CAAC,CAAC,SAAS,yEAAyE;CACnF,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAM,8DAA8D,EAAE,OAAO,EAC3E,sBAAsB,wCAAwC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAK/E,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -8,14 +8,14 @@ const SpecificDeleteUserInput = zod.z.object({
|
|
|
8
8
|
const SpecificDeleteUser_CompanySchema = zod.z.object({
|
|
9
9
|
id: zod.z.string().describe("Company's unique identifier.").nullable().optional(),
|
|
10
10
|
name: zod.z.string().describe("Company name.").nullable().optional()
|
|
11
|
-
}).describe("Company information associated with a user.");
|
|
11
|
+
}).passthrough().describe("Company information associated with a user.");
|
|
12
12
|
const SpecificDeleteUserOutput = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("The unique identifier of the deleted user."),
|
|
14
|
-
name: zod.z.string().describe("The name of the deleted user."),
|
|
13
|
+
id: zod.z.string().describe("The unique identifier of the deleted user.").nullable(),
|
|
14
|
+
name: zod.z.string().describe("The name of the deleted user.").nullable(),
|
|
15
15
|
email: zod.z.string().describe("The email address of the deleted user.").nullable().optional(),
|
|
16
16
|
company: SpecificDeleteUser_CompanySchema.nullable().optional(),
|
|
17
|
-
visitorId: zod.z.string().describe("Internal Specific ID for the deleted user.")
|
|
18
|
-
}).describe("Response model containing the deleted user's information.");
|
|
17
|
+
visitorId: zod.z.string().describe("Internal Specific ID for the deleted user.").nullable()
|
|
18
|
+
}).passthrough().describe("Response model containing the deleted user's information.");
|
|
19
19
|
const specificDeleteUser = require_action.action("SPECIFIC_DELETE_USER", {
|
|
20
20
|
slug: "specific-delete-user",
|
|
21
21
|
name: "Delete User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserInput
|
|
1
|
+
{"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserInput = z.object({\n email: z.string().describe(\"The email address of the user to delete. Either user_id or email must be provided.\").optional(),\n user_id: z.string().describe(\"The unique identifier of the user to delete. Either user_id or email must be provided.\").optional(),\n}).describe(\"Request model for deleting a user from the Specific platform.\");\nconst SpecificDeleteUser_CompanySchema = z.object({\n id: z.string().describe(\"Company's unique identifier.\").nullable().optional(),\n name: z.string().describe(\"Company name.\").nullable().optional(),\n}).passthrough().describe(\"Company information associated with a user.\");\nexport const SpecificDeleteUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted user.\").nullable(),\n name: z.string().describe(\"The name of the deleted user.\").nullable(),\n email: z.string().describe(\"The email address of the deleted user.\").nullable().optional(),\n company: SpecificDeleteUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID for the deleted user.\").nullable(),\n}).passthrough().describe(\"Response model containing the deleted user's information.\");\n\nexport const specificDeleteUser = action(\"SPECIFIC_DELETE_USER\", {\n slug: \"specific-delete-user\",\n name: \"Delete User\",\n description: \"Tool to remove a user record from the Specific platform. Use when you need to permanently delete a contact from the workspace.\",\n input: SpecificDeleteUserInput,\n output: SpecificDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|