@keystrokehq/specific 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-company.cjs +27 -0
  7. package/dist/actions/create-company.cjs.map +1 -0
  8. package/dist/actions/create-company.d.cts +9 -0
  9. package/dist/actions/create-company.d.cts.map +1 -0
  10. package/dist/actions/create-company.d.mts +9 -0
  11. package/dist/actions/create-company.d.mts.map +1 -0
  12. package/dist/actions/create-company.mjs +24 -0
  13. package/dist/actions/create-company.mjs.map +1 -0
  14. package/dist/actions/create-conversation.cjs +67 -0
  15. package/dist/actions/create-conversation.cjs.map +1 -0
  16. package/dist/actions/create-conversation.d.cts +9 -0
  17. package/dist/actions/create-conversation.d.cts.map +1 -0
  18. package/dist/actions/create-conversation.d.mts +9 -0
  19. package/dist/actions/create-conversation.d.mts.map +1 -0
  20. package/dist/actions/create-conversation.mjs +66 -0
  21. package/dist/actions/create-conversation.mjs.map +1 -0
  22. package/dist/actions/create-or-update-company.cjs +40 -0
  23. package/dist/actions/create-or-update-company.cjs.map +1 -0
  24. package/dist/actions/create-or-update-company.d.cts +9 -0
  25. package/dist/actions/create-or-update-company.d.cts.map +1 -0
  26. package/dist/actions/create-or-update-company.d.mts +9 -0
  27. package/dist/actions/create-or-update-company.d.mts.map +1 -0
  28. package/dist/actions/create-or-update-company.mjs +39 -0
  29. package/dist/actions/create-or-update-company.mjs.map +1 -0
  30. package/dist/actions/create-or-update-user.cjs +43 -0
  31. package/dist/actions/create-or-update-user.cjs.map +1 -0
  32. package/dist/actions/create-or-update-user.d.cts +9 -0
  33. package/dist/actions/create-or-update-user.d.cts.map +1 -0
  34. package/dist/actions/create-or-update-user.d.mts +9 -0
  35. package/dist/actions/create-or-update-user.d.mts.map +1 -0
  36. package/dist/actions/create-or-update-user.mjs +42 -0
  37. package/dist/actions/create-or-update-user.mjs.map +1 -0
  38. package/dist/actions/create-user.cjs +35 -0
  39. package/dist/actions/create-user.cjs.map +1 -0
  40. package/dist/actions/create-user.d.cts +9 -0
  41. package/dist/actions/create-user.d.cts.map +1 -0
  42. package/dist/actions/create-user.d.mts +9 -0
  43. package/dist/actions/create-user.d.mts.map +1 -0
  44. package/dist/actions/create-user.mjs +34 -0
  45. package/dist/actions/create-user.mjs.map +1 -0
  46. package/dist/actions/delete-company-attributes.cjs +24 -0
  47. package/dist/actions/delete-company-attributes.cjs.map +1 -0
  48. package/dist/actions/delete-company-attributes.d.cts +9 -0
  49. package/dist/actions/delete-company-attributes.d.cts.map +1 -0
  50. package/dist/actions/delete-company-attributes.d.mts +9 -0
  51. package/dist/actions/delete-company-attributes.d.mts.map +1 -0
  52. package/dist/actions/delete-company-attributes.mjs +21 -0
  53. package/dist/actions/delete-company-attributes.mjs.map +1 -0
  54. package/dist/actions/delete-company.cjs +21 -0
  55. package/dist/actions/delete-company.cjs.map +1 -0
  56. package/dist/actions/delete-company.d.cts +9 -0
  57. package/dist/actions/delete-company.d.cts.map +1 -0
  58. package/dist/actions/delete-company.d.mts +9 -0
  59. package/dist/actions/delete-company.d.mts.map +1 -0
  60. package/dist/actions/delete-company.mjs +18 -0
  61. package/dist/actions/delete-company.mjs.map +1 -0
  62. package/dist/actions/delete-user-attributes.cjs +34 -0
  63. package/dist/actions/delete-user-attributes.cjs.map +1 -0
  64. package/dist/actions/delete-user-attributes.d.cts +9 -0
  65. package/dist/actions/delete-user-attributes.d.cts.map +1 -0
  66. package/dist/actions/delete-user-attributes.d.mts +9 -0
  67. package/dist/actions/delete-user-attributes.d.mts.map +1 -0
  68. package/dist/actions/delete-user-attributes.mjs +33 -0
  69. package/dist/actions/delete-user-attributes.mjs.map +1 -0
  70. package/dist/actions/delete-user.cjs +29 -0
  71. package/dist/actions/delete-user.cjs.map +1 -0
  72. package/dist/actions/delete-user.d.cts +9 -0
  73. package/dist/actions/delete-user.d.cts.map +1 -0
  74. package/dist/actions/delete-user.d.mts +9 -0
  75. package/dist/actions/delete-user.d.mts.map +1 -0
  76. package/dist/actions/delete-user.mjs +28 -0
  77. package/dist/actions/delete-user.mjs.map +1 -0
  78. package/dist/actions/get-my-workspace.cjs +21 -0
  79. package/dist/actions/get-my-workspace.cjs.map +1 -0
  80. package/dist/actions/get-my-workspace.d.cts +9 -0
  81. package/dist/actions/get-my-workspace.d.cts.map +1 -0
  82. package/dist/actions/get-my-workspace.d.mts +9 -0
  83. package/dist/actions/get-my-workspace.d.mts.map +1 -0
  84. package/dist/actions/get-my-workspace.mjs +20 -0
  85. package/dist/actions/get-my-workspace.mjs.map +1 -0
  86. package/dist/actions/index.cjs +37 -0
  87. package/dist/actions/index.d.cts +19 -0
  88. package/dist/actions/index.d.mts +19 -0
  89. package/dist/actions/index.mjs +19 -0
  90. package/dist/actions/list-companies.cjs +53 -0
  91. package/dist/actions/list-companies.cjs.map +1 -0
  92. package/dist/actions/list-companies.d.cts +9 -0
  93. package/dist/actions/list-companies.d.cts.map +1 -0
  94. package/dist/actions/list-companies.d.mts +9 -0
  95. package/dist/actions/list-companies.d.mts.map +1 -0
  96. package/dist/actions/list-companies.mjs +52 -0
  97. package/dist/actions/list-companies.mjs.map +1 -0
  98. package/dist/actions/list-conversations.cjs +50 -0
  99. package/dist/actions/list-conversations.cjs.map +1 -0
  100. package/dist/actions/list-conversations.d.cts +9 -0
  101. package/dist/actions/list-conversations.d.cts.map +1 -0
  102. package/dist/actions/list-conversations.d.mts +9 -0
  103. package/dist/actions/list-conversations.d.mts.map +1 -0
  104. package/dist/actions/list-conversations.mjs +49 -0
  105. package/dist/actions/list-conversations.mjs.map +1 -0
  106. package/dist/actions/list-custom-fields.cjs +29 -0
  107. package/dist/actions/list-custom-fields.cjs.map +1 -0
  108. package/dist/actions/list-custom-fields.d.cts +9 -0
  109. package/dist/actions/list-custom-fields.d.cts.map +1 -0
  110. package/dist/actions/list-custom-fields.d.mts +9 -0
  111. package/dist/actions/list-custom-fields.d.mts.map +1 -0
  112. package/dist/actions/list-custom-fields.mjs +28 -0
  113. package/dist/actions/list-custom-fields.mjs.map +1 -0
  114. package/dist/actions/list-sources.cjs +21 -0
  115. package/dist/actions/list-sources.cjs.map +1 -0
  116. package/dist/actions/list-sources.d.cts +9 -0
  117. package/dist/actions/list-sources.d.cts.map +1 -0
  118. package/dist/actions/list-sources.d.mts +9 -0
  119. package/dist/actions/list-sources.d.mts.map +1 -0
  120. package/dist/actions/list-sources.mjs +20 -0
  121. package/dist/actions/list-sources.mjs.map +1 -0
  122. package/dist/actions/list-surveys.cjs +37 -0
  123. package/dist/actions/list-surveys.cjs.map +1 -0
  124. package/dist/actions/list-surveys.d.cts +9 -0
  125. package/dist/actions/list-surveys.d.cts.map +1 -0
  126. package/dist/actions/list-surveys.d.mts +9 -0
  127. package/dist/actions/list-surveys.d.mts.map +1 -0
  128. package/dist/actions/list-surveys.mjs +36 -0
  129. package/dist/actions/list-surveys.mjs.map +1 -0
  130. package/dist/actions/list-users.cjs +61 -0
  131. package/dist/actions/list-users.cjs.map +1 -0
  132. package/dist/actions/list-users.d.cts +9 -0
  133. package/dist/actions/list-users.d.cts.map +1 -0
  134. package/dist/actions/list-users.d.mts +9 -0
  135. package/dist/actions/list-users.d.mts.map +1 -0
  136. package/dist/actions/list-users.mjs +60 -0
  137. package/dist/actions/list-users.mjs.map +1 -0
  138. package/dist/actions/update-company.cjs +26 -0
  139. package/dist/actions/update-company.cjs.map +1 -0
  140. package/dist/actions/update-company.d.cts +9 -0
  141. package/dist/actions/update-company.d.cts.map +1 -0
  142. package/dist/actions/update-company.d.mts +9 -0
  143. package/dist/actions/update-company.d.mts.map +1 -0
  144. package/dist/actions/update-company.mjs +25 -0
  145. package/dist/actions/update-company.mjs.map +1 -0
  146. package/dist/actions/update-user.cjs +43 -0
  147. package/dist/actions/update-user.cjs.map +1 -0
  148. package/dist/actions/update-user.d.cts +9 -0
  149. package/dist/actions/update-user.d.cts.map +1 -0
  150. package/dist/actions/update-user.d.mts +9 -0
  151. package/dist/actions/update-user.d.mts.map +1 -0
  152. package/dist/actions/update-user.mjs +42 -0
  153. package/dist/actions/update-user.mjs.map +1 -0
  154. package/dist/app.cjs +9 -0
  155. package/dist/app.cjs.map +1 -0
  156. package/dist/app.d.cts +5 -0
  157. package/dist/app.d.cts.map +1 -0
  158. package/dist/app.d.mts +5 -0
  159. package/dist/app.d.mts.map +1 -0
  160. package/dist/app.mjs +10 -0
  161. package/dist/app.mjs.map +1 -0
  162. package/dist/catalog.cjs +15 -0
  163. package/dist/catalog.cjs.map +1 -0
  164. package/dist/catalog.d.cts +14 -0
  165. package/dist/catalog.d.cts.map +1 -0
  166. package/dist/catalog.d.mts +14 -0
  167. package/dist/catalog.d.mts.map +1 -0
  168. package/dist/catalog.mjs +15 -0
  169. package/dist/catalog.mjs.map +1 -0
  170. package/dist/execute.cjs +18 -0
  171. package/dist/execute.cjs.map +1 -0
  172. package/dist/execute.mjs +18 -0
  173. package/dist/execute.mjs.map +1 -0
  174. package/dist/index.cjs +42 -0
  175. package/dist/index.d.cts +21 -0
  176. package/dist/index.d.mts +21 -0
  177. package/dist/index.mjs +22 -0
  178. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-or-update-user.d.ts
4
+ declare const SpecificCreateOrUpdateUserInput: z.ZodTypeAny;
5
+ declare const SpecificCreateOrUpdateUserOutput: z.ZodTypeAny;
6
+ declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificCreateOrUpdateUser };
9
+ //# sourceMappingURL=create-or-update-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-or-update-user.d.mts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAcyB;AAAA,cAY5D,gCAAA,EAAkC,CAAA,CAAE,UAIa;AAAA,cAEjD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-or-update-user.ts
4
+ const SpecificCreateOrUpdateUserInput = z.object({
5
+ data: z.object({
6
+ id: z.string().describe("Contact's ID").optional(),
7
+ name: z.string().describe("Contact's name").optional(),
8
+ email: z.string().describe("Contact's email").optional(),
9
+ company: z.object({ connect: z.string().describe("Company ID to connect to the contact").optional() }).describe("Input for establishing a relationship between contact and company.").optional(),
10
+ attributes: z.record(z.string(), z.unknown()).describe("Update custom field values. Will merge current values with new ones.").optional()
11
+ }).describe("Contact information to create or update"),
12
+ where: z.object({
13
+ id: z.string().describe("Contact ID to filter by").optional(),
14
+ email: z.string().describe("Contact email to filter by").optional()
15
+ }).describe("Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.")
16
+ }).describe("Request model for creating or updating a user in Specific.");
17
+ const SpecificCreateOrUpdateUser_CompanySchema = z.object({
18
+ id: z.string().describe("Company ID").nullable().optional(),
19
+ name: z.string().describe("Company name").nullable().optional()
20
+ }).describe("Company information.");
21
+ const SpecificCreateOrUpdateUser_UserSchema = z.object({
22
+ id: z.string().describe("Contact's ID"),
23
+ name: z.string().describe("Contact's name"),
24
+ email: z.string().describe("Contact's email").nullable().optional(),
25
+ company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
26
+ visitorId: z.string().describe("Internal Specific ID")
27
+ }).describe("User/Contact information.");
28
+ const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
29
+ slug: "specific-create-or-update-user",
30
+ name: "Create Or Update User",
31
+ 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.",
32
+ input: SpecificCreateOrUpdateUserInput,
33
+ output: z.object({
34
+ error: z.string().describe("Error message if failed").nullable().optional(),
35
+ success: z.boolean().describe("Whether the operation was successful"),
36
+ contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
37
+ }).describe("Response model for createOrUpdateUser mutation.")
38
+ });
39
+ //#endregion
40
+ export { specificCreateOrUpdateUser };
41
+
42
+ //# sourceMappingURL=create-or-update-user.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput: z.ZodTypeAny = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact's ID\"),\n name: z.string().describe(\"Contact's name\"),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\"),\n}).describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\"),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID.\",\n input: SpecificCreateOrUpdateUserInput,\n output: SpecificCreateOrUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAAyD,EAAE,OAAO;CACtE,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,SAAS,sBAAsB;AAClC,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACtC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACvD,CAAC,CAAC,CAAC,SAAS,2BAA2B;AAOvC,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4D,EAAE,OAAO;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;EACpE,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-user.ts
4
+ const SpecificCreateUserInput = zod.z.object({
5
+ id: zod.z.string().describe("Optional custom identifier for the contact. If not provided, Specific will generate one automatically.").optional(),
6
+ name: zod.z.string().describe("The full name of the contact.").optional(),
7
+ email: zod.z.string().describe("The email address of the contact. While optional, it's highly recommended for user identification.").optional(),
8
+ company: zod.z.object({ connect: zod.z.object({ id: zod.z.string().describe("The unique identifier of the company to associate with the contact.") }).describe("Specifies the company to associate with the contact.") }).describe("Defines a relationship between a contact and a company.").optional(),
9
+ attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.").optional()
10
+ }).describe("Request model for creating a new user (contact) in Specific.");
11
+ const SpecificCreateUser_ValidationFieldErrorSchema = zod.z.object({
12
+ path: zod.z.array(zod.z.string()).describe("Array of strings indicating the path to the field that failed validation."),
13
+ message: zod.z.string().describe("Description of the validation error.")
14
+ }).describe("Field-level validation error details.");
15
+ const SpecificCreateUserOutput = zod.z.object({
16
+ id: zod.z.string().describe("The unique identifier of the created contact (present on success).").nullable().optional(),
17
+ name: zod.z.string().describe("The name of the created contact (present on success).").nullable().optional(),
18
+ email: zod.z.string().describe("The email of the created contact (present on success).").nullable().optional(),
19
+ company: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company information (present on success if associated).").nullable().optional(),
20
+ success: zod.z.boolean().default(false).describe("Indicates whether the user creation was successful.").nullable().optional(),
21
+ visitorId: zod.z.string().describe("The internal Specific visitor ID (present on success).").nullable().optional(),
22
+ field_errors: zod.z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe("Field-level validation errors if validation failed.").nullable().optional(),
23
+ error_message: zod.z.string().describe("Error message if the operation failed.").nullable().optional()
24
+ }).describe("Response model for user creation. Contains either success data or error information.");
25
+ const specificCreateUser = require_action.action("SPECIFIC_CREATE_USER", {
26
+ slug: "specific-create-user",
27
+ name: "Create User",
28
+ 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.",
29
+ input: SpecificCreateUserInput,
30
+ output: SpecificCreateUserOutput
31
+ });
32
+ //#endregion
33
+ exports.specificCreateUser = specificCreateUser;
34
+
35
+ //# sourceMappingURL=create-user.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput: z.ZodTypeAny = 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.ZodTypeAny = 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.\"),\n}).describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput: z.ZodTypeAny = 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}).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,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACrE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user.d.ts
4
+ declare const SpecificCreateUserInput: z.ZodTypeAny;
5
+ declare const SpecificCreateUserOutput: z.ZodTypeAny;
6
+ declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificCreateUser };
9
+ //# sourceMappingURL=create-user.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAUmC;AAAA,cAK9D,wBAAA,EAA0B,CAAA,CAAE,UAS0D;AAAA,cAEtF,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user.d.ts
4
+ declare const SpecificCreateUserInput: z.ZodTypeAny;
5
+ declare const SpecificCreateUserOutput: z.ZodTypeAny;
6
+ declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificCreateUser };
9
+ //# sourceMappingURL=create-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAUmC;AAAA,cAK9D,wBAAA,EAA0B,CAAA,CAAE,UAS0D;AAAA,cAEtF,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-user.ts
4
+ const SpecificCreateUserInput = z.object({
5
+ id: z.string().describe("Optional custom identifier for the contact. If not provided, Specific will generate one automatically.").optional(),
6
+ name: z.string().describe("The full name of the contact.").optional(),
7
+ email: z.string().describe("The email address of the contact. While optional, it's highly recommended for user identification.").optional(),
8
+ company: z.object({ connect: z.object({ id: z.string().describe("The unique identifier of the company to associate with the contact.") }).describe("Specifies the company to associate with the contact.") }).describe("Defines a relationship between a contact and a company.").optional(),
9
+ 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()
10
+ }).describe("Request model for creating a new user (contact) in Specific.");
11
+ const SpecificCreateUser_ValidationFieldErrorSchema = z.object({
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.");
15
+ const specificCreateUser = action("SPECIFIC_CREATE_USER", {
16
+ slug: "specific-create-user",
17
+ name: "Create User",
18
+ 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.",
19
+ input: SpecificCreateUserInput,
20
+ output: z.object({
21
+ id: z.string().describe("The unique identifier of the created contact (present on success).").nullable().optional(),
22
+ name: z.string().describe("The name of the created contact (present on success).").nullable().optional(),
23
+ email: z.string().describe("The email of the created contact (present on success).").nullable().optional(),
24
+ company: z.record(z.string(), z.unknown()).describe("Company information (present on success if associated).").nullable().optional(),
25
+ success: z.boolean().default(false).describe("Indicates whether the user creation was successful.").nullable().optional(),
26
+ visitorId: z.string().describe("The internal Specific visitor ID (present on success).").nullable().optional(),
27
+ field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe("Field-level validation errors if validation failed.").nullable().optional(),
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.")
30
+ });
31
+ //#endregion
32
+ export { specificCreateUser };
33
+
34
+ //# sourceMappingURL=create-user.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = 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.\"),\n}).describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput: z.ZodTypeAny = 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}).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,0BAAwC,EAAE,OAAO;CAC5D,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,gDAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E;CAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACrE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAYnD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBoD,EAAE,OAAO;EAC7D,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,SAAS,sFAOF;AACV,CAAC"}
@@ -0,0 +1,24 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-company-attributes.ts
4
+ const SpecificDeleteCompanyAttributesInput = zod.z.object({
5
+ keys: zod.z.array(zod.z.string()).describe("Custom field identifiers to delete from the company. Must provide at least one key."),
6
+ company_id: zod.z.string().describe("The unique identifier of the company to delete attributes from.")
7
+ });
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
+ });
14
+ const specificDeleteCompanyAttributes = require_action.action("SPECIFIC_DELETE_COMPANY_ATTRIBUTES", {
15
+ slug: "specific-delete-company-attributes",
16
+ name: "Delete Company Attributes",
17
+ 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.",
18
+ input: SpecificDeleteCompanyAttributesInput,
19
+ output: SpecificDeleteCompanyAttributesOutput
20
+ });
21
+ //#endregion
22
+ exports.specificDeleteCompanyAttributes = specificDeleteCompanyAttributes;
23
+
24
+ //# sourceMappingURL=delete-company-attributes.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's unique identifier.\"),\n name: z.string().describe(\"The company's name.\"),\n visitorId: z.string().describe(\"Internal Specific ID.\"),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\"),\n});\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,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,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,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACpF,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-company-attributes.d.ts
4
+ declare const SpecificDeleteCompanyAttributesInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteCompanyAttributesOutput: z.ZodTypeAny;
6
+ declare const specificDeleteCompanyAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteCompanyAttributes };
9
+ //# sourceMappingURL=delete-company-attributes.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-company-attributes.d.cts","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGnD;AAAA,cACW,qCAAA,EAAuC,CAAA,CAAE,UAKpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-company-attributes.d.ts
4
+ declare const SpecificDeleteCompanyAttributesInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteCompanyAttributesOutput: z.ZodTypeAny;
6
+ declare const specificDeleteCompanyAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteCompanyAttributes };
9
+ //# sourceMappingURL=delete-company-attributes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-company-attributes.d.mts","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAGnD;AAAA,cACW,qCAAA,EAAuC,CAAA,CAAE,UAKpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,21 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const specificDeleteCompanyAttributes = action("SPECIFIC_DELETE_COMPANY_ATTRIBUTES", {
4
+ slug: "specific-delete-company-attributes",
5
+ name: "Delete Company Attributes",
6
+ 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.",
7
+ input: z.object({
8
+ keys: z.array(z.string()).describe("Custom field identifiers to delete from the company. Must provide at least one key."),
9
+ company_id: z.string().describe("The unique identifier of the company to delete attributes from.")
10
+ }),
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
+ })
17
+ });
18
+ //#endregion
19
+ export { specificDeleteCompanyAttributes };
20
+
21
+ //# sourceMappingURL=delete-company-attributes.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's unique identifier.\"),\n name: z.string().describe(\"The company's name.\"),\n visitorId: z.string().describe(\"Internal Specific ID.\"),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\"),\n});\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,OAfgE,EAAE,OAAO;EACzE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACnG,CAYS;CACP,QAZiE,EAAE,OAAO;EAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CACpF,CAOU;AACV,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-company.ts
4
+ const SpecificDeleteCompanyInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the company to delete.") });
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
+ });
11
+ const specificDeleteCompany = require_action.action("SPECIFIC_DELETE_COMPANY", {
12
+ slug: "specific-delete-company",
13
+ name: "Delete Company",
14
+ 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.",
15
+ input: SpecificDeleteCompanyInput,
16
+ output: SpecificDeleteCompanyOutput
17
+ });
18
+ //#endregion
19
+ exports.specificDeleteCompany = specificDeleteCompany;
20
+
21
+ //# sourceMappingURL=delete-company.cjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\"),\n name: z.string().describe(\"The name of the deleted company.\"),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\"),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\"),\n});\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,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;AAC9F,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-company.d.ts
4
+ declare const SpecificDeleteCompanyInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteCompanyOutput: z.ZodTypeAny;
6
+ declare const specificDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteCompany };
9
+ //# sourceMappingURL=delete-company.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-company.d.cts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-company.d.ts
4
+ declare const SpecificDeleteCompanyInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteCompanyOutput: z.ZodTypeAny;
6
+ declare const specificDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteCompany };
9
+ //# sourceMappingURL=delete-company.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-company.d.mts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,18 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const specificDeleteCompany = action("SPECIFIC_DELETE_COMPANY", {
4
+ slug: "specific-delete-company",
5
+ name: "Delete Company",
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
+ input: z.object({ id: z.string().describe("The unique identifier of the company to delete.") }),
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
+ })
14
+ });
15
+ //#endregion
16
+ export { specificDeleteCompany };
17
+
18
+ //# sourceMappingURL=delete-company.mjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\"),\n name: z.string().describe(\"The name of the deleted company.\"),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\"),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\"),\n});\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,OAdsD,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAYS;CACP,QAZuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CAC9F,CAOU;AACV,CAAC"}
@@ -0,0 +1,34 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-user-attributes.ts
4
+ const SpecificDeleteUserAttributesInput = zod.z.object({
5
+ data: zod.z.object({ keys: zod.z.array(zod.z.string()).describe("A non-empty array of strings representing the custom field keys to be removed from the user record.") }).describe("Specifies which custom field attributes to delete from the user record."),
6
+ where: zod.z.object({
7
+ id: zod.z.string().describe("Contact ID to filter by. At least one of id or email must be provided.").optional(),
8
+ email: zod.z.string().describe("Contact email to filter by. At least one of id or email must be provided.").optional()
9
+ }).describe("Filter to identify which contact to delete attributes from (by id or email).")
10
+ }).describe("Request model for deleting user attributes in Specific.");
11
+ const SpecificDeleteUserAttributes_CompanySchema = zod.z.object({
12
+ id: zod.z.string().describe("Company ID").nullable().optional(),
13
+ name: zod.z.string().describe("Company name").nullable().optional()
14
+ }).describe("Company information.");
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"),
18
+ email: zod.z.string().describe("Contact's email").nullable().optional(),
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.");
24
+ const specificDeleteUserAttributes = require_action.action("SPECIFIC_DELETE_USER_ATTRIBUTES", {
25
+ slug: "specific-delete-user-attributes",
26
+ name: "Delete User Attributes",
27
+ 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.",
28
+ input: SpecificDeleteUserAttributesInput,
29
+ output: SpecificDeleteUserAttributesOutput
30
+ });
31
+ //#endregion
32
+ exports.specificDeleteUserAttributes = specificDeleteUserAttributes;
33
+
34
+ //# sourceMappingURL=delete-user-attributes.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificDeleteUserAttributes_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact's ID\"),\n name: z.string().describe(\"Contact's name\"),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\"),\n}).describe(\"User/Contact information returned after deleting attributes.\");\nconst SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema: z.ZodTypeAny = z.object({\n deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable(),\n}).describe(\"Wrapper for the deleteUserAttributes data response.\");\nexport const SpecificDeleteUserAttributesOutput: z.ZodTypeAny = z.object({\n data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable(),\n}).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,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,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,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,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,SAAS,sBAAsB;AAClC,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACtC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACvD,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8DAA4EA,IAAAA,EAAE,OAAO,EACzF,sBAAsB,wCAAwC,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-user-attributes.d.ts
4
+ declare const SpecificDeleteUserAttributesInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteUserAttributesOutput: z.ZodTypeAny;
6
+ declare const specificDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteUserAttributes };
9
+ //# sourceMappingURL=delete-user-attributes.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAQoB;AAAA,cAezD,kCAAA,EAAoC,CAAA,CAAE,UAEa;AAAA,cAEnD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-user-attributes.d.ts
4
+ declare const SpecificDeleteUserAttributesInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteUserAttributesOutput: z.ZodTypeAny;
6
+ declare const specificDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteUserAttributes };
9
+ //# sourceMappingURL=delete-user-attributes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAQoB;AAAA,cAezD,kCAAA,EAAoC,CAAA,CAAE,UAEa;AAAA,cAEnD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/delete-user-attributes.ts
4
+ const SpecificDeleteUserAttributesInput = z.object({
5
+ data: z.object({ keys: z.array(z.string()).describe("A non-empty array of strings representing the custom field keys to be removed from the user record.") }).describe("Specifies which custom field attributes to delete from the user record."),
6
+ where: z.object({
7
+ id: z.string().describe("Contact ID to filter by. At least one of id or email must be provided.").optional(),
8
+ email: z.string().describe("Contact email to filter by. At least one of id or email must be provided.").optional()
9
+ }).describe("Filter to identify which contact to delete attributes from (by id or email).")
10
+ }).describe("Request model for deleting user attributes in Specific.");
11
+ const SpecificDeleteUserAttributes_CompanySchema = z.object({
12
+ id: z.string().describe("Company ID").nullable().optional(),
13
+ name: z.string().describe("Company name").nullable().optional()
14
+ }).describe("Company information.");
15
+ const SpecificDeleteUserAttributes_UserSchema = z.object({
16
+ id: z.string().describe("Contact's ID"),
17
+ name: z.string().describe("Contact's name"),
18
+ email: z.string().describe("Contact's email").nullable().optional(),
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.");
23
+ const specificDeleteUserAttributes = action("SPECIFIC_DELETE_USER_ATTRIBUTES", {
24
+ slug: "specific-delete-user-attributes",
25
+ name: "Delete User Attributes",
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
+ input: SpecificDeleteUserAttributesInput,
28
+ output: z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).describe("Response model for deleteUserAttributes mutation.")
29
+ });
30
+ //#endregion
31
+ export { specificDeleteUserAttributes };
32
+
33
+ //# sourceMappingURL=delete-user-attributes.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificDeleteUserAttributes_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact's ID\"),\n name: z.string().describe(\"Contact's name\"),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\"),\n}).describe(\"User/Contact information returned after deleting attributes.\");\nconst SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema: z.ZodTypeAny = z.object({\n deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable(),\n}).describe(\"Wrapper for the deleteUserAttributes data response.\");\nexport const SpecificDeleteUserAttributesOutput: z.ZodTypeAny = z.object({\n data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable(),\n}).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,oCAAkD,EAAE,OAAO;CACtE,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,6CAA2D,EAAE,OAAO;CACxE,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,SAAS,sBAAsB;AAClC,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACtC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,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;AACvD,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8DAA4E,EAAE,OAAO,EACzF,sBAAsB,wCAAwC,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAKjE,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,29 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-user.ts
4
+ const SpecificDeleteUserInput = zod.z.object({
5
+ email: zod.z.string().describe("The email address of the user to delete. Either user_id or email must be provided.").optional(),
6
+ user_id: zod.z.string().describe("The unique identifier of the user to delete. Either user_id or email must be provided.").optional()
7
+ }).describe("Request model for deleting a user from the Specific platform.");
8
+ const SpecificDeleteUser_CompanySchema = zod.z.object({
9
+ id: zod.z.string().describe("Company's unique identifier.").nullable().optional(),
10
+ name: zod.z.string().describe("Company name.").nullable().optional()
11
+ }).describe("Company information associated with a user.");
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."),
15
+ email: zod.z.string().describe("The email address of the deleted user.").nullable().optional(),
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.");
19
+ const specificDeleteUser = require_action.action("SPECIFIC_DELETE_USER", {
20
+ slug: "specific-delete-user",
21
+ name: "Delete User",
22
+ description: "Tool to remove a user record from the Specific platform. Use when you need to permanently delete a contact from the workspace.",
23
+ input: SpecificDeleteUserInput,
24
+ output: SpecificDeleteUserOutput
25
+ });
26
+ //#endregion
27
+ exports.specificDeleteUser = specificDeleteUser;
28
+
29
+ //# sourceMappingURL=delete-user.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Company's unique identifier.\").nullable().optional(),\n name: z.string().describe(\"Company name.\").nullable().optional(),\n}).describe(\"Company information associated with a user.\");\nexport const SpecificDeleteUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted user.\"),\n name: z.string().describe(\"The name of the deleted user.\"),\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.\"),\n}).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,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,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,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,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,SAAS,6CAA6C;AACzD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,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;AAC7E,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-user.d.ts
4
+ declare const SpecificDeleteUserInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteUserOutput: z.ZodTypeAny;
6
+ declare const specificDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteUser };
9
+ //# sourceMappingURL=delete-user.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGoC;AAAA,cAK/D,wBAAA,EAA0B,CAAA,CAAE,UAM+B;AAAA,cAE3D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-user.d.ts
4
+ declare const SpecificDeleteUserInput: z.ZodTypeAny;
5
+ declare const SpecificDeleteUserOutput: z.ZodTypeAny;
6
+ declare const specificDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { specificDeleteUser };
9
+ //# sourceMappingURL=delete-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGoC;AAAA,cAK/D,wBAAA,EAA0B,CAAA,CAAE,UAM+B;AAAA,cAE3D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}