@keystrokehq/specific 0.1.0 → 0.1.2

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 (151) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-company.cjs.map +1 -1
  4. package/dist/actions/create-company.d.cts +18 -3
  5. package/dist/actions/create-company.d.cts.map +1 -1
  6. package/dist/actions/create-company.d.mts +18 -3
  7. package/dist/actions/create-company.d.mts.map +1 -1
  8. package/dist/actions/create-company.mjs.map +1 -1
  9. package/dist/actions/create-conversation.cjs +5 -5
  10. package/dist/actions/create-conversation.cjs.map +1 -1
  11. package/dist/actions/create-conversation.d.cts +87 -3
  12. package/dist/actions/create-conversation.d.cts.map +1 -1
  13. package/dist/actions/create-conversation.d.mts +87 -3
  14. package/dist/actions/create-conversation.d.mts.map +1 -1
  15. package/dist/actions/create-conversation.mjs +5 -5
  16. package/dist/actions/create-conversation.mjs.map +1 -1
  17. package/dist/actions/create-or-update-company.cjs +4 -4
  18. package/dist/actions/create-or-update-company.cjs.map +1 -1
  19. package/dist/actions/create-or-update-company.d.cts +32 -3
  20. package/dist/actions/create-or-update-company.d.cts.map +1 -1
  21. package/dist/actions/create-or-update-company.d.mts +32 -3
  22. package/dist/actions/create-or-update-company.d.mts.map +1 -1
  23. package/dist/actions/create-or-update-company.mjs +4 -4
  24. package/dist/actions/create-or-update-company.mjs.map +1 -1
  25. package/dist/actions/create-or-update-user.cjs +4 -4
  26. package/dist/actions/create-or-update-user.cjs.map +1 -1
  27. package/dist/actions/create-or-update-user.d.cts +44 -3
  28. package/dist/actions/create-or-update-user.d.cts.map +1 -1
  29. package/dist/actions/create-or-update-user.d.mts +44 -3
  30. package/dist/actions/create-or-update-user.d.mts.map +1 -1
  31. package/dist/actions/create-or-update-user.mjs +4 -4
  32. package/dist/actions/create-or-update-user.mjs.map +1 -1
  33. package/dist/actions/create-user.cjs +1 -1
  34. package/dist/actions/create-user.cjs.map +1 -1
  35. package/dist/actions/create-user.d.cts +35 -3
  36. package/dist/actions/create-user.d.cts.map +1 -1
  37. package/dist/actions/create-user.d.mts +35 -3
  38. package/dist/actions/create-user.d.mts.map +1 -1
  39. package/dist/actions/create-user.mjs +1 -1
  40. package/dist/actions/create-user.mjs.map +1 -1
  41. package/dist/actions/delete-company-attributes.cjs +4 -4
  42. package/dist/actions/delete-company-attributes.cjs.map +1 -1
  43. package/dist/actions/delete-company-attributes.d.cts +14 -3
  44. package/dist/actions/delete-company-attributes.d.cts.map +1 -1
  45. package/dist/actions/delete-company-attributes.d.mts +14 -3
  46. package/dist/actions/delete-company-attributes.d.mts.map +1 -1
  47. package/dist/actions/delete-company-attributes.mjs +4 -4
  48. package/dist/actions/delete-company-attributes.mjs.map +1 -1
  49. package/dist/actions/delete-company.cjs +4 -4
  50. package/dist/actions/delete-company.cjs.map +1 -1
  51. package/dist/actions/delete-company.d.cts +12 -3
  52. package/dist/actions/delete-company.d.cts.map +1 -1
  53. package/dist/actions/delete-company.d.mts +12 -3
  54. package/dist/actions/delete-company.d.mts.map +1 -1
  55. package/dist/actions/delete-company.mjs +4 -4
  56. package/dist/actions/delete-company.mjs.map +1 -1
  57. package/dist/actions/delete-user-attributes.cjs +3 -3
  58. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  59. package/dist/actions/delete-user-attributes.d.cts +32 -3
  60. package/dist/actions/delete-user-attributes.d.cts.map +1 -1
  61. package/dist/actions/delete-user-attributes.d.mts +32 -3
  62. package/dist/actions/delete-user-attributes.d.mts.map +1 -1
  63. package/dist/actions/delete-user-attributes.mjs +3 -3
  64. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  65. package/dist/actions/delete-user.cjs +3 -3
  66. package/dist/actions/delete-user.cjs.map +1 -1
  67. package/dist/actions/delete-user.d.cts +18 -3
  68. package/dist/actions/delete-user.d.cts.map +1 -1
  69. package/dist/actions/delete-user.d.mts +18 -3
  70. package/dist/actions/delete-user.d.mts.map +1 -1
  71. package/dist/actions/delete-user.mjs +3 -3
  72. package/dist/actions/delete-user.mjs.map +1 -1
  73. package/dist/actions/get-my-workspace.cjs +2 -2
  74. package/dist/actions/get-my-workspace.cjs.map +1 -1
  75. package/dist/actions/get-my-workspace.d.cts +10 -3
  76. package/dist/actions/get-my-workspace.d.cts.map +1 -1
  77. package/dist/actions/get-my-workspace.d.mts +10 -3
  78. package/dist/actions/get-my-workspace.d.mts.map +1 -1
  79. package/dist/actions/get-my-workspace.mjs +2 -2
  80. package/dist/actions/get-my-workspace.mjs.map +1 -1
  81. package/dist/actions/list-companies.cjs +4 -4
  82. package/dist/actions/list-companies.cjs.map +1 -1
  83. package/dist/actions/list-companies.d.cts +76 -3
  84. package/dist/actions/list-companies.d.cts.map +1 -1
  85. package/dist/actions/list-companies.d.mts +76 -3
  86. package/dist/actions/list-companies.d.mts.map +1 -1
  87. package/dist/actions/list-companies.mjs +4 -4
  88. package/dist/actions/list-companies.mjs.map +1 -1
  89. package/dist/actions/list-conversations.cjs +14 -14
  90. package/dist/actions/list-conversations.cjs.map +1 -1
  91. package/dist/actions/list-conversations.d.cts +47 -3
  92. package/dist/actions/list-conversations.d.cts.map +1 -1
  93. package/dist/actions/list-conversations.d.mts +47 -3
  94. package/dist/actions/list-conversations.d.mts.map +1 -1
  95. package/dist/actions/list-conversations.mjs +14 -14
  96. package/dist/actions/list-conversations.mjs.map +1 -1
  97. package/dist/actions/list-custom-fields.cjs +3 -3
  98. package/dist/actions/list-custom-fields.cjs.map +1 -1
  99. package/dist/actions/list-custom-fields.d.cts +21 -3
  100. package/dist/actions/list-custom-fields.d.cts.map +1 -1
  101. package/dist/actions/list-custom-fields.d.mts +21 -3
  102. package/dist/actions/list-custom-fields.d.mts.map +1 -1
  103. package/dist/actions/list-custom-fields.mjs +3 -3
  104. package/dist/actions/list-custom-fields.mjs.map +1 -1
  105. package/dist/actions/list-sources.cjs +2 -2
  106. package/dist/actions/list-sources.cjs.map +1 -1
  107. package/dist/actions/list-sources.d.cts +10 -3
  108. package/dist/actions/list-sources.d.cts.map +1 -1
  109. package/dist/actions/list-sources.d.mts +10 -3
  110. package/dist/actions/list-sources.d.mts.map +1 -1
  111. package/dist/actions/list-sources.mjs +2 -2
  112. package/dist/actions/list-sources.mjs.map +1 -1
  113. package/dist/actions/list-surveys.cjs +12 -12
  114. package/dist/actions/list-surveys.cjs.map +1 -1
  115. package/dist/actions/list-surveys.d.cts +23 -3
  116. package/dist/actions/list-surveys.d.cts.map +1 -1
  117. package/dist/actions/list-surveys.d.mts +23 -3
  118. package/dist/actions/list-surveys.d.mts.map +1 -1
  119. package/dist/actions/list-surveys.mjs +12 -12
  120. package/dist/actions/list-surveys.mjs.map +1 -1
  121. package/dist/actions/list-users.cjs +7 -7
  122. package/dist/actions/list-users.cjs.map +1 -1
  123. package/dist/actions/list-users.d.cts +84 -3
  124. package/dist/actions/list-users.d.cts.map +1 -1
  125. package/dist/actions/list-users.d.mts +84 -3
  126. package/dist/actions/list-users.d.mts.map +1 -1
  127. package/dist/actions/list-users.mjs +7 -7
  128. package/dist/actions/list-users.mjs.map +1 -1
  129. package/dist/actions/update-company.cjs +4 -4
  130. package/dist/actions/update-company.cjs.map +1 -1
  131. package/dist/actions/update-company.d.cts +18 -3
  132. package/dist/actions/update-company.d.cts.map +1 -1
  133. package/dist/actions/update-company.d.mts +18 -3
  134. package/dist/actions/update-company.d.mts.map +1 -1
  135. package/dist/actions/update-company.mjs +4 -4
  136. package/dist/actions/update-company.mjs.map +1 -1
  137. package/dist/actions/update-user.cjs +4 -4
  138. package/dist/actions/update-user.cjs.map +1 -1
  139. package/dist/actions/update-user.d.cts +44 -3
  140. package/dist/actions/update-user.d.cts.map +1 -1
  141. package/dist/actions/update-user.d.mts +44 -3
  142. package/dist/actions/update-user.d.mts.map +1 -1
  143. package/dist/actions/update-user.mjs +4 -4
  144. package/dist/actions/update-user.mjs.map +1 -1
  145. package/dist/catalog.cjs +7 -1
  146. package/dist/catalog.cjs.map +1 -1
  147. package/dist/catalog.d.cts +8 -0
  148. package/dist/catalog.d.mts +8 -0
  149. package/dist/catalog.mjs +7 -1
  150. package/dist/catalog.mjs.map +1 -1
  151. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput: z.ZodTypeAny = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.object({}).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's unique identifier.\"),\n name: z.string().describe(\"The company's name.\"),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\"),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\"),\n}).describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.object({}), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAO7D,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+D,EAAE,OAAO;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,kHAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.object({}).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.object({}), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAO7D,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,kHAOF;AACV,CAAC"}
@@ -19,15 +19,15 @@ const SpecificCreateOrUpdateUser_CompanySchema = zod.z.object({
19
19
  name: zod.z.string().describe("Company name").nullable().optional()
20
20
  }).describe("Company information.");
21
21
  const SpecificCreateOrUpdateUser_UserSchema = zod.z.object({
22
- id: zod.z.string().describe("Contact's ID"),
23
- name: zod.z.string().describe("Contact's name"),
22
+ id: zod.z.string().describe("Contact's ID").nullable(),
23
+ name: zod.z.string().describe("Contact's name").nullable(),
24
24
  email: zod.z.string().describe("Contact's email").nullable().optional(),
25
25
  company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
26
- visitorId: zod.z.string().describe("Internal Specific ID")
26
+ visitorId: zod.z.string().describe("Internal Specific ID").nullable()
27
27
  }).describe("User/Contact information.");
28
28
  const SpecificCreateOrUpdateUserOutput = zod.z.object({
29
29
  error: zod.z.string().describe("Error message if failed").nullable().optional(),
30
- success: zod.z.boolean().describe("Whether the operation was successful"),
30
+ success: zod.z.boolean().describe("Whether the operation was successful").nullable(),
31
31
  contacts: zod.z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
32
32
  }).describe("Response model for createOrUpdateUser mutation.");
33
33
  const specificCreateOrUpdateUser = require_action.action("SPECIFIC_CREATE_OR_UPDATE_USER", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput: 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,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,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,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,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,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACvD,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).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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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,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-or-update-user.d.ts
4
- declare const SpecificCreateOrUpdateUserInput: z.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]>;
4
+ declare const SpecificCreateOrUpdateUserInput: z.ZodObject<{
5
+ data: z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ email: z.ZodOptional<z.ZodString>;
9
+ company: z.ZodOptional<z.ZodObject<{
10
+ connect: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ where: z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodString>;
16
+ email: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ }, z.core.$strip>;
19
+ declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
20
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ success: z.ZodNullable<z.ZodBoolean>;
22
+ contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>>;
30
+ visitorId: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>>>>;
32
+ }, z.core.$strip>;
33
+ declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ data: {
35
+ id?: string | undefined;
36
+ name?: string | undefined;
37
+ email?: string | undefined;
38
+ company?: {
39
+ connect?: string | undefined;
40
+ } | undefined;
41
+ attributes?: Record<string, unknown> | undefined;
42
+ };
43
+ where: {
44
+ id?: string | undefined;
45
+ email?: string | undefined;
46
+ };
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { specificCreateOrUpdateUser };
9
50
  //# sourceMappingURL=create-or-update-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-user.d.cts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAcyB;AAAA,cAY5D,gCAAA,EAAkC,CAAA,CAAE,UAIa;AAAA,cAEjD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-or-update-user.d.cts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cA0B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;iBAMrC,MAAA;EAAA"}
@@ -1,9 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-or-update-user.d.ts
4
- declare const SpecificCreateOrUpdateUserInput: z.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]>;
4
+ declare const SpecificCreateOrUpdateUserInput: z.ZodObject<{
5
+ data: z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ email: z.ZodOptional<z.ZodString>;
9
+ company: z.ZodOptional<z.ZodObject<{
10
+ connect: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ where: z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodString>;
16
+ email: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ }, z.core.$strip>;
19
+ declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
20
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ success: z.ZodNullable<z.ZodBoolean>;
22
+ contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>>;
30
+ visitorId: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>>>>;
32
+ }, z.core.$strip>;
33
+ declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ data: {
35
+ id?: string | undefined;
36
+ name?: string | undefined;
37
+ email?: string | undefined;
38
+ company?: {
39
+ connect?: string | undefined;
40
+ } | undefined;
41
+ attributes?: Record<string, unknown> | undefined;
42
+ };
43
+ where: {
44
+ id?: string | undefined;
45
+ email?: string | undefined;
46
+ };
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { specificCreateOrUpdateUser };
9
50
  //# sourceMappingURL=create-or-update-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-user.d.mts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAcyB;AAAA,cAY5D,gCAAA,EAAkC,CAAA,CAAE,UAIa;AAAA,cAEjD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-or-update-user.d.mts","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cA0B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;iBAMrC,MAAA;EAAA"}
@@ -19,11 +19,11 @@ const SpecificCreateOrUpdateUser_CompanySchema = z.object({
19
19
  name: z.string().describe("Company name").nullable().optional()
20
20
  }).describe("Company information.");
21
21
  const SpecificCreateOrUpdateUser_UserSchema = z.object({
22
- id: z.string().describe("Contact's ID"),
23
- name: z.string().describe("Contact's name"),
22
+ id: z.string().describe("Contact's ID").nullable(),
23
+ name: z.string().describe("Contact's name").nullable(),
24
24
  email: z.string().describe("Contact's email").nullable().optional(),
25
25
  company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
26
- visitorId: z.string().describe("Internal Specific ID")
26
+ visitorId: z.string().describe("Internal Specific ID").nullable()
27
27
  }).describe("User/Contact information.");
28
28
  const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
29
29
  slug: "specific-create-or-update-user",
@@ -32,7 +32,7 @@ const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
32
32
  input: SpecificCreateOrUpdateUserInput,
33
33
  output: z.object({
34
34
  error: z.string().describe("Error message if failed").nullable().optional(),
35
- success: z.boolean().describe("Whether the operation was successful"),
35
+ success: z.boolean().describe("Whether the operation was successful").nullable(),
36
36
  contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
37
37
  }).describe("Response model for createOrUpdateUser mutation.")
38
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput: 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: S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AC,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"}
1
+ {"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).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,kCAAkC,EAAE,OAAO;CACtD,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,sE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AAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -10,7 +10,7 @@ const SpecificCreateUserInput = zod.z.object({
10
10
  }).describe("Request model for creating a new user (contact) in Specific.");
11
11
  const SpecificCreateUser_ValidationFieldErrorSchema = zod.z.object({
12
12
  path: zod.z.array(zod.z.string()).describe("Array of strings indicating the path to the field that failed validation."),
13
- message: zod.z.string().describe("Description of the validation error.")
13
+ message: zod.z.string().describe("Description of the validation error.").nullable()
14
14
  }).describe("Field-level validation error details.");
15
15
  const SpecificCreateUserOutput = zod.z.object({
16
16
  id: zod.z.string().describe("The unique identifier of the created contact (present on success).").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput: 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,qGA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AAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).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}).describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;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,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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"}
@@ -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.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]>;
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.$strip>>>>;
26
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ id?: string | undefined;
30
+ name?: string | undefined;
31
+ email?: string | undefined;
32
+ company?: {
33
+ connect: {
34
+ id: string;
35
+ };
36
+ } | undefined;
37
+ attributes?: Record<string, unknown> | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { specificCreateUser };
9
41
  //# sourceMappingURL=create-user.d.cts.map
@@ -1 +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"}
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.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]>;
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.$strip>>>>;
26
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>;
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,EAAyB,CAAA,CAAE,UAUmC;AAAA,cAK9D,wBAAA,EAA0B,CAAA,CAAE,UAS0D;AAAA,cAEtF,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,7 +10,7 @@ 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.")
13
+ message: z.string().describe("Description of the validation error.").nullable()
14
14
  }).describe("Field-level validation error details.");
15
15
  const specificCreateUser = action("SPECIFIC_CREATE_USER", {
16
16
  slug: "specific-create-user",
@@ -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: 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"}
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}).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}).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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AAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
@@ -6,10 +6,10 @@ 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.")
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
13
  });
14
14
  const specificDeleteCompanyAttributes = require_action.action("SPECIFIC_DELETE_COMPANY_ATTRIBUTES", {
15
15
  slug: "specific-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: 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"}
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});\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;AAED,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.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]>;
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.$strip>;
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,EAAsC,CAAA,CAAE,UAGnD;AAAA,cACW,qCAAA,EAAuC,CAAA,CAAE,UAKpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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.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]>;
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.$strip>;
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,EAAsC,CAAA,CAAE,UAGnD;AAAA,cACW,qCAAA,EAAuC,CAAA,CAAE,UAKpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,10 +9,10 @@ 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.")
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
16
  })
17
17
  });
18
18
  //#endregion
@@ -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: 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"}
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});\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,CAOU;AACV,CAAC"}
@@ -3,10 +3,10 @@ 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.")
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
10
  });
11
11
  const specificDeleteCompany = require_action.action("SPECIFIC_DELETE_COMPANY", {
12
12
  slug: "specific-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: 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"}
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});\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;AAED,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.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]>;
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.$strip>;
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,EAA4B,CAAA,CAAE,UAEzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}