@keystrokehq/specific 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) 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 +3 -3
  4. package/dist/actions/create-company.cjs.map +1 -1
  5. package/dist/actions/create-company.d.cts +18 -3
  6. package/dist/actions/create-company.d.cts.map +1 -1
  7. package/dist/actions/create-company.d.mts +18 -3
  8. package/dist/actions/create-company.d.mts.map +1 -1
  9. package/dist/actions/create-company.mjs +3 -3
  10. package/dist/actions/create-company.mjs.map +1 -1
  11. package/dist/actions/create-conversation.cjs +16 -16
  12. package/dist/actions/create-conversation.cjs.map +1 -1
  13. package/dist/actions/create-conversation.d.cts +92 -3
  14. package/dist/actions/create-conversation.d.cts.map +1 -1
  15. package/dist/actions/create-conversation.d.mts +92 -3
  16. package/dist/actions/create-conversation.d.mts.map +1 -1
  17. package/dist/actions/create-conversation.mjs +16 -16
  18. package/dist/actions/create-conversation.mjs.map +1 -1
  19. package/dist/actions/create-or-update-company.cjs +10 -10
  20. package/dist/actions/create-or-update-company.cjs.map +1 -1
  21. package/dist/actions/create-or-update-company.d.cts +32 -3
  22. package/dist/actions/create-or-update-company.d.cts.map +1 -1
  23. package/dist/actions/create-or-update-company.d.mts +32 -3
  24. package/dist/actions/create-or-update-company.d.mts.map +1 -1
  25. package/dist/actions/create-or-update-company.mjs +10 -10
  26. package/dist/actions/create-or-update-company.mjs.map +1 -1
  27. package/dist/actions/create-or-update-user.cjs +7 -7
  28. package/dist/actions/create-or-update-user.cjs.map +1 -1
  29. package/dist/actions/create-or-update-user.d.cts +44 -3
  30. package/dist/actions/create-or-update-user.d.cts.map +1 -1
  31. package/dist/actions/create-or-update-user.d.mts +44 -3
  32. package/dist/actions/create-or-update-user.d.mts.map +1 -1
  33. package/dist/actions/create-or-update-user.mjs +7 -7
  34. package/dist/actions/create-or-update-user.mjs.map +1 -1
  35. package/dist/actions/create-user.cjs +3 -3
  36. package/dist/actions/create-user.cjs.map +1 -1
  37. package/dist/actions/create-user.d.cts +35 -3
  38. package/dist/actions/create-user.d.cts.map +1 -1
  39. package/dist/actions/create-user.d.mts +35 -3
  40. package/dist/actions/create-user.d.mts.map +1 -1
  41. package/dist/actions/create-user.mjs +3 -3
  42. package/dist/actions/create-user.mjs.map +1 -1
  43. package/dist/actions/delete-company-attributes.cjs +5 -5
  44. package/dist/actions/delete-company-attributes.cjs.map +1 -1
  45. package/dist/actions/delete-company-attributes.d.cts +14 -3
  46. package/dist/actions/delete-company-attributes.d.cts.map +1 -1
  47. package/dist/actions/delete-company-attributes.d.mts +14 -3
  48. package/dist/actions/delete-company-attributes.d.mts.map +1 -1
  49. package/dist/actions/delete-company-attributes.mjs +5 -5
  50. package/dist/actions/delete-company-attributes.mjs.map +1 -1
  51. package/dist/actions/delete-company.cjs +5 -5
  52. package/dist/actions/delete-company.cjs.map +1 -1
  53. package/dist/actions/delete-company.d.cts +12 -3
  54. package/dist/actions/delete-company.d.cts.map +1 -1
  55. package/dist/actions/delete-company.d.mts +12 -3
  56. package/dist/actions/delete-company.d.mts.map +1 -1
  57. package/dist/actions/delete-company.mjs +5 -5
  58. package/dist/actions/delete-company.mjs.map +1 -1
  59. package/dist/actions/delete-user-attributes.cjs +7 -7
  60. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  61. package/dist/actions/delete-user-attributes.d.cts +32 -3
  62. package/dist/actions/delete-user-attributes.d.cts.map +1 -1
  63. package/dist/actions/delete-user-attributes.d.mts +32 -3
  64. package/dist/actions/delete-user-attributes.d.mts.map +1 -1
  65. package/dist/actions/delete-user-attributes.mjs +7 -7
  66. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  67. package/dist/actions/delete-user.cjs +5 -5
  68. package/dist/actions/delete-user.cjs.map +1 -1
  69. package/dist/actions/delete-user.d.cts +18 -3
  70. package/dist/actions/delete-user.d.cts.map +1 -1
  71. package/dist/actions/delete-user.d.mts +18 -3
  72. package/dist/actions/delete-user.d.mts.map +1 -1
  73. package/dist/actions/delete-user.mjs +5 -5
  74. package/dist/actions/delete-user.mjs.map +1 -1
  75. package/dist/actions/get-my-workspace.cjs +5 -5
  76. package/dist/actions/get-my-workspace.cjs.map +1 -1
  77. package/dist/actions/get-my-workspace.d.cts +10 -3
  78. package/dist/actions/get-my-workspace.d.cts.map +1 -1
  79. package/dist/actions/get-my-workspace.d.mts +10 -3
  80. package/dist/actions/get-my-workspace.d.mts.map +1 -1
  81. package/dist/actions/get-my-workspace.mjs +5 -5
  82. package/dist/actions/get-my-workspace.mjs.map +1 -1
  83. package/dist/actions/list-companies.cjs +6 -6
  84. package/dist/actions/list-companies.cjs.map +1 -1
  85. package/dist/actions/list-companies.d.cts +76 -3
  86. package/dist/actions/list-companies.d.cts.map +1 -1
  87. package/dist/actions/list-companies.d.mts +76 -3
  88. package/dist/actions/list-companies.d.mts.map +1 -1
  89. package/dist/actions/list-companies.mjs +6 -6
  90. package/dist/actions/list-companies.mjs.map +1 -1
  91. package/dist/actions/list-conversations.cjs +21 -21
  92. package/dist/actions/list-conversations.cjs.map +1 -1
  93. package/dist/actions/list-conversations.d.cts +47 -3
  94. package/dist/actions/list-conversations.d.cts.map +1 -1
  95. package/dist/actions/list-conversations.d.mts +47 -3
  96. package/dist/actions/list-conversations.d.mts.map +1 -1
  97. package/dist/actions/list-conversations.mjs +21 -21
  98. package/dist/actions/list-conversations.mjs.map +1 -1
  99. package/dist/actions/list-custom-fields.cjs +5 -5
  100. package/dist/actions/list-custom-fields.cjs.map +1 -1
  101. package/dist/actions/list-custom-fields.d.cts +21 -3
  102. package/dist/actions/list-custom-fields.d.cts.map +1 -1
  103. package/dist/actions/list-custom-fields.d.mts +21 -3
  104. package/dist/actions/list-custom-fields.d.mts.map +1 -1
  105. package/dist/actions/list-custom-fields.mjs +5 -5
  106. package/dist/actions/list-custom-fields.mjs.map +1 -1
  107. package/dist/actions/list-sources.cjs +5 -5
  108. package/dist/actions/list-sources.cjs.map +1 -1
  109. package/dist/actions/list-sources.d.cts +10 -3
  110. package/dist/actions/list-sources.d.cts.map +1 -1
  111. package/dist/actions/list-sources.d.mts +10 -3
  112. package/dist/actions/list-sources.d.mts.map +1 -1
  113. package/dist/actions/list-sources.mjs +5 -5
  114. package/dist/actions/list-sources.mjs.map +1 -1
  115. package/dist/actions/list-surveys.cjs +16 -16
  116. package/dist/actions/list-surveys.cjs.map +1 -1
  117. package/dist/actions/list-surveys.d.cts +23 -3
  118. package/dist/actions/list-surveys.d.cts.map +1 -1
  119. package/dist/actions/list-surveys.d.mts +23 -3
  120. package/dist/actions/list-surveys.d.mts.map +1 -1
  121. package/dist/actions/list-surveys.mjs +16 -16
  122. package/dist/actions/list-surveys.mjs.map +1 -1
  123. package/dist/actions/list-users.cjs +11 -11
  124. package/dist/actions/list-users.cjs.map +1 -1
  125. package/dist/actions/list-users.d.cts +84 -3
  126. package/dist/actions/list-users.d.cts.map +1 -1
  127. package/dist/actions/list-users.d.mts +84 -3
  128. package/dist/actions/list-users.d.mts.map +1 -1
  129. package/dist/actions/list-users.mjs +11 -11
  130. package/dist/actions/list-users.mjs.map +1 -1
  131. package/dist/actions/update-company.cjs +6 -6
  132. package/dist/actions/update-company.cjs.map +1 -1
  133. package/dist/actions/update-company.d.cts +18 -3
  134. package/dist/actions/update-company.d.cts.map +1 -1
  135. package/dist/actions/update-company.d.mts +18 -3
  136. package/dist/actions/update-company.d.mts.map +1 -1
  137. package/dist/actions/update-company.mjs +6 -6
  138. package/dist/actions/update-company.mjs.map +1 -1
  139. package/dist/actions/update-user.cjs +7 -7
  140. package/dist/actions/update-user.cjs.map +1 -1
  141. package/dist/actions/update-user.d.cts +44 -3
  142. package/dist/actions/update-user.d.cts.map +1 -1
  143. package/dist/actions/update-user.d.mts +44 -3
  144. package/dist/actions/update-user.d.mts.map +1 -1
  145. package/dist/actions/update-user.mjs +7 -7
  146. package/dist/actions/update-user.mjs.map +1 -1
  147. package/dist/catalog.cjs +7 -1
  148. package/dist/catalog.cjs.map +1 -1
  149. package/dist/catalog.d.cts +8 -0
  150. package/dist/catalog.d.mts +8 -0
  151. package/dist/catalog.mjs +7 -1
  152. package/dist/catalog.mjs.map +1 -1
  153. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["specific","executeSpecificTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { specific } from \"./app\";\nimport { executeSpecificTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return specific.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpecificTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["specific","executeSpecificTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { specific } from \"./app\";\nimport { executeSpecificTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return specific.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSpecificTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { specific } from \"./app\";\nimport { executeSpecificTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return specific.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpecificTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { specific } from \"./app\";\nimport { executeSpecificTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return specific.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSpecificTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const SpecificCreateCompanyInput = zod.z.object({
5
5
  id: zod.z.string().describe("Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.").optional(),
6
6
  name: zod.z.string().describe("Company name - the display name of the company.").optional(),
7
- attributes: zod.z.object({}).describe("Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).").optional()
7
+ attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).").optional()
8
8
  }).describe("Request model for creating a new company in Specific.");
9
9
  const SpecificCreateCompanyOutput = zod.z.object({
10
10
  id: zod.z.string().describe("The company's ID if creation was successful.").nullable().optional(),
@@ -12,8 +12,8 @@ const SpecificCreateCompanyOutput = zod.z.object({
12
12
  message: zod.z.string().describe("Error message if creation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
13
13
  visitorId: zod.z.string().describe("Internal Specific ID if creation was successful.").nullable().optional(),
14
14
  usersCount: zod.z.number().int().describe("Number of users who belong to the company if creation was successful.").nullable().optional(),
15
- fieldErrors: zod.z.union([zod.z.string(), zod.z.array(zod.z.object({}))]).nullable().optional()
16
- }).describe("Response model for company creation. Returns the created company details or error information.");
15
+ fieldErrors: zod.z.union([zod.z.string(), zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))]).nullable().optional()
16
+ }).passthrough().describe("Response model for company creation. Returns the created company details or error information.");
17
17
  const specificCreateCompany = require_action.action("SPECIFIC_CREATE_COMPANY", {
18
18
  slug: "specific-create-company",
19
19
  name: "Create Company",
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateCompanyInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.\").optional(),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).\").optional(),\n}).describe(\"Request model for creating a new company in Specific.\");\nexport const SpecificCreateCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's ID if creation was successful.\").nullable().optional(),\n name: z.string().describe(\"The company's name if creation was successful.\").nullable().optional(),\n message: z.string().describe(\"Error message if creation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID if creation was successful.\").nullable().optional(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company if creation was successful.\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany = action(\"SPECIFIC_CREATE_COMPANY\", {\n slug: \"specific-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.\",\n input: SpecificCreateCompanyInput,\n output: SpecificCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,gGAAgG;AAE5G,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateCompanyInput = z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.\").optional(),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).\").optional(),\n}).describe(\"Request model for creating a new company in Specific.\");\nexport const SpecificCreateCompanyOutput = z.object({\n id: z.string().describe(\"The company's ID if creation was successful.\").nullable().optional(),\n name: z.string().describe(\"The company's name if creation was successful.\").nullable().optional(),\n message: z.string().describe(\"Error message if creation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID if creation was successful.\").nullable().optional(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company if creation was successful.\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany = action(\"SPECIFIC_CREATE_COMPANY\", {\n slug: \"specific-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.\",\n input: SpecificCreateCompanyInput,\n output: SpecificCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAAgG;AAE1H,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-company.d.ts
4
- declare const SpecificCreateCompanyInput: z.ZodTypeAny;
5
- declare const SpecificCreateCompanyOutput: z.ZodTypeAny;
6
- declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpecificCreateCompanyInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ }, z.core.$strip>;
9
+ declare const SpecificCreateCompanyOutput: z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ usersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
16
+ }, z.core.$loose>;
17
+ declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ id?: string | undefined;
19
+ name?: string | undefined;
20
+ attributes?: Record<string, unknown> | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { specificCreateCompany };
9
24
  //# sourceMappingURL=create-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAOiE;AAAA,cAEhG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;eAMhC,MAAA;AAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-company.d.ts
4
- declare const SpecificCreateCompanyInput: z.ZodTypeAny;
5
- declare const SpecificCreateCompanyOutput: z.ZodTypeAny;
6
- declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpecificCreateCompanyInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ }, z.core.$strip>;
9
+ declare const SpecificCreateCompanyOutput: z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ usersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
16
+ }, z.core.$loose>;
17
+ declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ id?: string | undefined;
19
+ name?: string | undefined;
20
+ attributes?: Record<string, unknown> | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { specificCreateCompany };
9
24
  //# sourceMappingURL=create-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAOiE;AAAA,cAEhG,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;eAMhC,MAAA;AAAA"}
@@ -7,7 +7,7 @@ const specificCreateCompany = action("SPECIFIC_CREATE_COMPANY", {
7
7
  input: z.object({
8
8
  id: z.string().describe("Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.").optional(),
9
9
  name: z.string().describe("Company name - the display name of the company.").optional(),
10
- attributes: z.object({}).describe("Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).").optional()
10
+ attributes: z.record(z.string(), z.unknown()).describe("Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).").optional()
11
11
  }).describe("Request model for creating a new company in Specific."),
12
12
  output: z.object({
13
13
  id: z.string().describe("The company's ID if creation was successful.").nullable().optional(),
@@ -15,8 +15,8 @@ const specificCreateCompany = action("SPECIFIC_CREATE_COMPANY", {
15
15
  message: z.string().describe("Error message if creation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
16
16
  visitorId: z.string().describe("Internal Specific ID if creation was successful.").nullable().optional(),
17
17
  usersCount: z.number().int().describe("Number of users who belong to the company if creation was successful.").nullable().optional(),
18
- fieldErrors: z.union([z.string(), z.array(z.object({}))]).nullable().optional()
19
- }).describe("Response model for company creation. Returns the created company details or error information.")
18
+ fieldErrors: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).nullable().optional()
19
+ }).passthrough().describe("Response model for company creation. Returns the created company details or error information.")
20
20
  });
21
21
  //#endregion
22
22
  export { specificCreateCompany };
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateCompanyInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.\").optional(),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).\").optional(),\n}).describe(\"Request model for creating a new company in Specific.\");\nexport const SpecificCreateCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's ID if creation was successful.\").nullable().optional(),\n name: z.string().describe(\"The company's name if creation was successful.\").nullable().optional(),\n message: z.string().describe(\"Error message if creation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID if creation was successful.\").nullable().optional(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company if creation was successful.\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany = action(\"SPECIFIC_CREATE_COMPANY\", {\n slug: \"specific-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.\",\n input: SpecificCreateCompanyInput,\n output: SpecificCreateCompanyOutput,\n});\n"],"mappings":";;AAkBA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACtI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,SAAS,uDAcH;CACP,QAduD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,SAAS,gGAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateCompanyInput = z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. If not provided, Specific will auto-generate one.\").optional(),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Company custom fields - key-value pairs for custom company attributes (can include fields like tier, ARR, etc.).\").optional(),\n}).describe(\"Request model for creating a new company in Specific.\");\nexport const SpecificCreateCompanyOutput = z.object({\n id: z.string().describe(\"The company's ID if creation was successful.\").nullable().optional(),\n name: z.string().describe(\"The company's name if creation was successful.\").nullable().optional(),\n message: z.string().describe(\"Error message if creation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID if creation was successful.\").nullable().optional(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company if creation was successful.\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation. Returns the created company details or error information.\");\n\nexport const specificCreateCompany = action(\"SPECIFIC_CREATE_COMPANY\", {\n slug: \"specific-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company record in the Specific platform. Use when you need to add a new company to the workspace with optional ID, name, and custom attributes.\",\n input: SpecificCreateCompanyInput,\n output: SpecificCreateCompanyOutput,\n});\n"],"mappings":";;AAkBA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACtI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACtL,CAAC,CAAC,CAAC,SAAS,uDAcH;CACP,QAdyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAOhB;AACV,CAAC"}
@@ -4,44 +4,44 @@ let zod = require("zod");
4
4
  const SpecificCreateConversationInput = zod.z.object({
5
5
  source: zod.z.object({ id: zod.z.string().describe("ID of the source to connect") }).describe("Source connection input.").optional(),
6
6
  company: zod.z.object({
7
- where: zod.z.object({}).describe("Where clause to find existing company, e.g., {'id': 'company-id'}"),
7
+ where: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Where clause to find existing company, e.g., {'id': 'company-id'}"),
8
8
  create: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company data to create if not found")
9
9
  }).describe("Company connection or creation input.").optional(),
10
10
  contact: zod.z.object({
11
- where: zod.z.object({}).describe("Where clause to find existing contact, e.g., {'id': 'contact-id'}"),
11
+ where: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Where clause to find existing contact, e.g., {'id': 'contact-id'}"),
12
12
  create: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Contact data to create if not found")
13
13
  }).describe("Contact connection or creation input.").optional(),
14
14
  content: zod.z.union([zod.z.string(), zod.z.object({
15
15
  type: zod.z.string().describe("Document type, must be 'doc'"),
16
16
  content: zod.z.array(zod.z.union([zod.z.object({
17
17
  type: zod.z.string().describe("Node type, must be 'heading'"),
18
- attrs: zod.z.object({}).describe("Heading attributes, e.g., {'level': 1} for H1"),
18
+ attrs: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Heading attributes, e.g., {'level': 1} for H1"),
19
19
  content: zod.z.array(zod.z.object({
20
20
  text: zod.z.string().describe("The text content"),
21
21
  type: zod.z.string().describe("Node type, must be 'text'")
22
- }).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the heading")
23
- }).describe("Represents a heading node in ProseMirror document structure."), zod.z.object({
22
+ }).passthrough().describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the heading")
23
+ }).passthrough().describe("Represents a heading node in ProseMirror document structure."), zod.z.object({
24
24
  type: zod.z.string().describe("Node type, must be 'paragraph'"),
25
25
  content: zod.z.array(zod.z.object({
26
26
  text: zod.z.string().describe("The text content"),
27
27
  type: zod.z.string().describe("Node type, must be 'text'")
28
- }).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the paragraph")
29
- }).describe("Represents a paragraph node in ProseMirror document structure.")])).describe("List of content nodes (headings and paragraphs)")
30
- }).describe("ProseMirror document structure for conversation content.")]),
28
+ }).passthrough().describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the paragraph")
29
+ }).passthrough().describe("Represents a paragraph node in ProseMirror document structure.")])).describe("List of content nodes (headings and paragraphs)")
30
+ }).passthrough().describe("ProseMirror document structure for conversation content.")]),
31
31
  sourceUrl: zod.z.string().describe("Source reference URL where the conversation originated").optional(),
32
32
  insertedAt: zod.z.string().describe("Date and time when the conversation was inserted. Accepts YYYY-MM-DD or RFC 3339 format (e.g., 2007-12-03T10:15:30Z)").optional(),
33
33
  customFields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field data as key-value pairs").optional()
34
34
  }).describe("Request model for creating a new conversation in Specific platform.");
35
- const SpecificCreateConversation_SourceInfoSchema = zod.z.object({ id: zod.z.string().describe("Source unique identifier") }).describe("Source information in the response.");
35
+ const SpecificCreateConversation_SourceInfoSchema = zod.z.object({ id: zod.z.string().describe("Source unique identifier").nullable() }).passthrough().describe("Source information in the response.");
36
36
  const SpecificCreateConversation_CompanyInfoSchema = zod.z.object({
37
- id: zod.z.string().describe("Company unique identifier"),
38
- name: zod.z.string().describe("Company name")
39
- }).describe("Company information in the response.");
37
+ id: zod.z.string().describe("Company unique identifier").nullable(),
38
+ name: zod.z.string().describe("Company name").nullable()
39
+ }).passthrough().describe("Company information in the response.");
40
40
  const SpecificCreateConversation_ContactInfoSchema = zod.z.object({
41
- id: zod.z.string().describe("Contact unique identifier"),
42
- name: zod.z.string().describe("Contact name"),
41
+ id: zod.z.string().describe("Contact unique identifier").nullable(),
42
+ name: zod.z.string().describe("Contact name").nullable(),
43
43
  email: zod.z.string().describe("Contact email address").nullable().optional()
44
- }).describe("Contact information in the response.");
44
+ }).passthrough().describe("Contact information in the response.");
45
45
  const SpecificCreateConversationOutput = zod.z.object({
46
46
  id: zod.z.string().describe("The conversation's unique identifier if creation was successful").nullable().optional(),
47
47
  name: zod.z.string().describe("The conversation's name if creation was successful").nullable().optional(),
@@ -53,7 +53,7 @@ const SpecificCreateConversationOutput = zod.z.object({
53
53
  sourceUrl: zod.z.string().describe("Source URL where the conversation was gathered if creation was successful").nullable().optional(),
54
54
  insertedAt: zod.z.string().describe("Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)").nullable().optional(),
55
55
  customFields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields as key-value pairs if creation was successful").nullable().optional()
56
- }).describe("Response model for conversation creation. Returns the created conversation details or error information.");
56
+ }).passthrough().describe("Response model for conversation creation. Returns the created conversation details or error information.");
57
57
  const specificCreateConversation = require_action.action("SPECIFIC_CREATE_CONVERSATION", {
58
58
  slug: "specific-create-conversation",
59
59
  name: "Create Conversation",
@@ -1 +1 @@
1
- {"version":3,"file":"create-conversation.cjs","names":["z","action"],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput: z.ZodTypeAny = z.object({\n source: z.object({\n id: z.string().describe(\"ID of the source to connect\"),\n}).describe(\"Source connection input.\").optional(),\n company: z.object({\n where: z.object({}).describe(\"Where clause to find existing company, e.g., {'id': 'company-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Company data to create if not found\"),\n}).describe(\"Company connection or creation input.\").optional(),\n contact: z.object({\n where: z.object({}).describe(\"Where clause to find existing contact, e.g., {'id': 'contact-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Contact data to create if not found\"),\n}).describe(\"Contact connection or creation input.\").optional(),\n content: z.union([z.string(), z.object({\n type: z.string().describe(\"Document type, must be 'doc'\"),\n content: z.array(z.union([z.object({\n type: z.string().describe(\"Node type, must be 'heading'\"),\n attrs: z.object({}).describe(\"Heading attributes, e.g., {'level': 1} for H1\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the heading\"),\n}).describe(\"Represents a heading node in ProseMirror document structure.\"), z.object({\n type: z.string().describe(\"Node type, must be 'paragraph'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the paragraph\"),\n}).describe(\"Represents a paragraph node in ProseMirror document structure.\")])).describe(\"List of content nodes (headings and paragraphs)\"),\n}).describe(\"ProseMirror document structure for conversation content.\")]),\n sourceUrl: z.string().describe(\"Source reference URL where the conversation originated\").optional(),\n insertedAt: z.string().describe(\"Date and time when the conversation was inserted. Accepts YYYY-MM-DD or RFC 3339 format (e.g., 2007-12-03T10:15:30Z)\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom field data as key-value pairs\").optional(),\n}).describe(\"Request model for creating a new conversation in Specific platform.\");\nconst SpecificCreateConversation_SourceInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Source unique identifier\"),\n}).describe(\"Source information in the response.\");\nconst SpecificCreateConversation_CompanyInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Company unique identifier\"),\n name: z.string().describe(\"Company name\"),\n}).describe(\"Company information in the response.\");\nconst SpecificCreateConversation_ContactInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Contact unique identifier\"),\n name: z.string().describe(\"Contact name\"),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n}).describe(\"Contact information in the response.\");\nexport const SpecificCreateConversationOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The conversation's unique identifier if creation was successful\").nullable().optional(),\n name: z.string().describe(\"The conversation's name if creation was successful\").nullable().optional(),\n source: SpecificCreateConversation_SourceInfoSchema.nullable().optional(),\n company: SpecificCreateConversation_CompanyInfoSchema.nullable().optional(),\n contact: SpecificCreateConversation_ContactInfoSchema.nullable().optional(),\n message: z.string().describe(\"Error message if creation failed\").nullable().optional(),\n plainText: z.string().describe(\"The textual content of the conversation if creation was successful\").nullable().optional(),\n sourceUrl: z.string().describe(\"Source URL where the conversation was gathered if creation was successful\").nullable().optional(),\n insertedAt: z.string().describe(\"Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs if creation was successful\").nullable().optional(),\n}).describe(\"Response model for conversation creation. Returns the created conversation details or error information.\");\n\nexport const specificCreateConversation = action(\"SPECIFIC_CREATE_CONVERSATION\", {\n slug: \"specific-create-conversation\",\n name: \"Create Conversation\",\n description: \"Tool to create a new conversation (survey response) in the Specific platform. Use when you need to add a new conversation with content, optional contacts, companies, and custom fields. Content can be a simple string or structured ProseMirror document with headings and paragraphs.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/C,SAASA,IAAAA,EAAE,OAAO;EAClB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAChG,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;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AC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,0GAA0G;AAEtH,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-conversation.cjs","names":["z","action"],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput = z.object({\n source: z.object({\n id: z.string().describe(\"ID of the source to connect\"),\n}).describe(\"Source connection input.\").optional(),\n company: z.object({\n where: z.record(z.string(), z.unknown()).describe(\"Where clause to find existing company, e.g., {'id': 'company-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Company data to create if not found\"),\n}).describe(\"Company connection or creation input.\").optional(),\n contact: z.object({\n where: z.record(z.string(), z.unknown()).describe(\"Where clause to find existing contact, e.g., {'id': 'contact-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Contact data to create if not found\"),\n}).describe(\"Contact connection or creation input.\").optional(),\n content: z.union([z.string(), z.object({\n type: z.string().describe(\"Document type, must be 'doc'\"),\n content: z.array(z.union([z.object({\n type: z.string().describe(\"Node type, must be 'heading'\"),\n attrs: z.record(z.string(), z.unknown()).describe(\"Heading attributes, e.g., {'level': 1} for H1\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).passthrough().describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the heading\"),\n}).passthrough().describe(\"Represents a heading node in ProseMirror document structure.\"), z.object({\n type: z.string().describe(\"Node type, must be 'paragraph'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).passthrough().describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the paragraph\"),\n}).passthrough().describe(\"Represents a paragraph node in ProseMirror document structure.\")])).describe(\"List of content nodes (headings and paragraphs)\"),\n}).passthrough().describe(\"ProseMirror document structure for conversation content.\")]),\n sourceUrl: z.string().describe(\"Source reference URL where the conversation originated\").optional(),\n insertedAt: z.string().describe(\"Date and time when the conversation was inserted. Accepts YYYY-MM-DD or RFC 3339 format (e.g., 2007-12-03T10:15:30Z)\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom field data as key-value pairs\").optional(),\n}).describe(\"Request model for creating a new conversation in Specific platform.\");\nconst SpecificCreateConversation_SourceInfoSchema = z.object({\n id: z.string().describe(\"Source unique identifier\").nullable(),\n}).passthrough().describe(\"Source information in the response.\");\nconst SpecificCreateConversation_CompanyInfoSchema = z.object({\n id: z.string().describe(\"Company unique identifier\").nullable(),\n name: z.string().describe(\"Company name\").nullable(),\n}).passthrough().describe(\"Company information in the response.\");\nconst SpecificCreateConversation_ContactInfoSchema = z.object({\n id: z.string().describe(\"Contact unique identifier\").nullable(),\n name: z.string().describe(\"Contact name\").nullable(),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n}).passthrough().describe(\"Contact information in the response.\");\nexport const SpecificCreateConversationOutput = z.object({\n id: z.string().describe(\"The conversation's unique identifier if creation was successful\").nullable().optional(),\n name: z.string().describe(\"The conversation's name if creation was successful\").nullable().optional(),\n source: SpecificCreateConversation_SourceInfoSchema.nullable().optional(),\n company: SpecificCreateConversation_CompanyInfoSchema.nullable().optional(),\n contact: SpecificCreateConversation_ContactInfoSchema.nullable().optional(),\n message: z.string().describe(\"Error message if creation failed\").nullable().optional(),\n plainText: z.string().describe(\"The textual content of the conversation if creation was successful\").nullable().optional(),\n sourceUrl: z.string().describe(\"Source URL where the conversation was gathered if creation was successful\").nullable().optional(),\n insertedAt: z.string().describe(\"Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs if creation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for conversation creation. Returns the created conversation details or error information.\");\n\nexport const specificCreateConversation = action(\"SPECIFIC_CREATE_CONVERSATION\", {\n slug: \"specific-create-conversation\",\n name: \"Create Conversation\",\n description: \"Tool to create a new conversation (survey response) in the Specific platform. Use when you need to add a new conversation with content, optional contacts, companies, and custom fields. Content can be a simple string or structured ProseMirror document with headings and paragraphs.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,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AAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0GAA0G;AAEpI,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,98 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-conversation.d.ts
4
- declare const SpecificCreateConversationInput: z.ZodTypeAny;
5
- declare const SpecificCreateConversationOutput: z.ZodTypeAny;
6
- declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpecificCreateConversationInput: z.ZodObject<{
5
+ source: z.ZodOptional<z.ZodObject<{
6
+ id: z.ZodString;
7
+ }, z.core.$strip>>;
8
+ company: z.ZodOptional<z.ZodObject<{
9
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
+ create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
+ }, z.core.$strip>>;
12
+ contact: z.ZodOptional<z.ZodObject<{
13
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ }, z.core.$strip>>;
16
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17
+ type: z.ZodString;
18
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
19
+ type: z.ZodString;
20
+ attrs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
21
+ content: z.ZodArray<z.ZodObject<{
22
+ text: z.ZodString;
23
+ type: z.ZodString;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>, z.ZodObject<{
26
+ type: z.ZodString;
27
+ content: z.ZodArray<z.ZodObject<{
28
+ text: z.ZodString;
29
+ type: z.ZodString;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>]>>;
32
+ }, z.core.$loose>]>;
33
+ sourceUrl: z.ZodOptional<z.ZodString>;
34
+ insertedAt: z.ZodOptional<z.ZodString>;
35
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ }, z.core.$strip>;
37
+ declare const SpecificCreateConversationOutput: z.ZodObject<{
38
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ id: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>>;
43
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ id: z.ZodNullable<z.ZodString>;
45
+ name: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>>;
47
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
+ id: z.ZodNullable<z.ZodString>;
49
+ name: z.ZodNullable<z.ZodString>;
50
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ }, z.core.$loose>>>;
52
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ plainText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ insertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ }, z.core.$loose>;
58
+ declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<{
59
+ content: string | {
60
+ [x: string]: unknown;
61
+ type: string;
62
+ content: ({
63
+ [x: string]: unknown;
64
+ type: string;
65
+ attrs: Record<string, unknown>;
66
+ content: {
67
+ [x: string]: unknown;
68
+ text: string;
69
+ type: string;
70
+ }[];
71
+ } | {
72
+ [x: string]: unknown;
73
+ type: string;
74
+ content: {
75
+ [x: string]: unknown;
76
+ text: string;
77
+ type: string;
78
+ }[];
79
+ })[];
80
+ };
81
+ source?: {
82
+ id: string;
83
+ } | undefined;
84
+ company?: {
85
+ where: Record<string, unknown>;
86
+ create: Record<string, unknown>;
87
+ } | undefined;
88
+ contact?: {
89
+ where: Record<string, unknown>;
90
+ create: Record<string, unknown>;
91
+ } | undefined;
92
+ sourceUrl?: string | undefined;
93
+ insertedAt?: string | undefined;
94
+ customFields?: Record<string, unknown> | undefined;
95
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
96
  //#endregion
8
97
  export { specificCreateConversation };
9
98
  //# sourceMappingURL=create-conversation.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-conversation.d.cts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAgCkC;AAAA,cAarE,gCAAA,EAAkC,CAAA,CAAE,UAWsE;AAAA,cAE1G,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-conversation.d.cts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAahC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,98 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-conversation.d.ts
4
- declare const SpecificCreateConversationInput: z.ZodTypeAny;
5
- declare const SpecificCreateConversationOutput: z.ZodTypeAny;
6
- declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpecificCreateConversationInput: z.ZodObject<{
5
+ source: z.ZodOptional<z.ZodObject<{
6
+ id: z.ZodString;
7
+ }, z.core.$strip>>;
8
+ company: z.ZodOptional<z.ZodObject<{
9
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
+ create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
+ }, z.core.$strip>>;
12
+ contact: z.ZodOptional<z.ZodObject<{
13
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ }, z.core.$strip>>;
16
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17
+ type: z.ZodString;
18
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
19
+ type: z.ZodString;
20
+ attrs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
21
+ content: z.ZodArray<z.ZodObject<{
22
+ text: z.ZodString;
23
+ type: z.ZodString;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>, z.ZodObject<{
26
+ type: z.ZodString;
27
+ content: z.ZodArray<z.ZodObject<{
28
+ text: z.ZodString;
29
+ type: z.ZodString;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>]>>;
32
+ }, z.core.$loose>]>;
33
+ sourceUrl: z.ZodOptional<z.ZodString>;
34
+ insertedAt: z.ZodOptional<z.ZodString>;
35
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ }, z.core.$strip>;
37
+ declare const SpecificCreateConversationOutput: z.ZodObject<{
38
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ id: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>>;
43
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ id: z.ZodNullable<z.ZodString>;
45
+ name: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>>;
47
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
+ id: z.ZodNullable<z.ZodString>;
49
+ name: z.ZodNullable<z.ZodString>;
50
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ }, z.core.$loose>>>;
52
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ plainText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ insertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ }, z.core.$loose>;
58
+ declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<{
59
+ content: string | {
60
+ [x: string]: unknown;
61
+ type: string;
62
+ content: ({
63
+ [x: string]: unknown;
64
+ type: string;
65
+ attrs: Record<string, unknown>;
66
+ content: {
67
+ [x: string]: unknown;
68
+ text: string;
69
+ type: string;
70
+ }[];
71
+ } | {
72
+ [x: string]: unknown;
73
+ type: string;
74
+ content: {
75
+ [x: string]: unknown;
76
+ text: string;
77
+ type: string;
78
+ }[];
79
+ })[];
80
+ };
81
+ source?: {
82
+ id: string;
83
+ } | undefined;
84
+ company?: {
85
+ where: Record<string, unknown>;
86
+ create: Record<string, unknown>;
87
+ } | undefined;
88
+ contact?: {
89
+ where: Record<string, unknown>;
90
+ create: Record<string, unknown>;
91
+ } | undefined;
92
+ sourceUrl?: string | undefined;
93
+ insertedAt?: string | undefined;
94
+ customFields?: Record<string, unknown> | undefined;
95
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
96
  //#endregion
8
97
  export { specificCreateConversation };
9
98
  //# sourceMappingURL=create-conversation.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-conversation.d.mts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAgCkC;AAAA,cAarE,gCAAA,EAAkC,CAAA,CAAE,UAWsE;AAAA,cAE1G,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-conversation.d.mts","names":[],"sources":["../../src/actions/create-conversation.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAahC,0BAAA,gCAA0B,wBAAA"}
@@ -4,44 +4,44 @@ import { z } from "zod";
4
4
  const SpecificCreateConversationInput = z.object({
5
5
  source: z.object({ id: z.string().describe("ID of the source to connect") }).describe("Source connection input.").optional(),
6
6
  company: z.object({
7
- where: z.object({}).describe("Where clause to find existing company, e.g., {'id': 'company-id'}"),
7
+ where: z.record(z.string(), z.unknown()).describe("Where clause to find existing company, e.g., {'id': 'company-id'}"),
8
8
  create: z.record(z.string(), z.unknown()).describe("Company data to create if not found")
9
9
  }).describe("Company connection or creation input.").optional(),
10
10
  contact: z.object({
11
- where: z.object({}).describe("Where clause to find existing contact, e.g., {'id': 'contact-id'}"),
11
+ where: z.record(z.string(), z.unknown()).describe("Where clause to find existing contact, e.g., {'id': 'contact-id'}"),
12
12
  create: z.record(z.string(), z.unknown()).describe("Contact data to create if not found")
13
13
  }).describe("Contact connection or creation input.").optional(),
14
14
  content: z.union([z.string(), z.object({
15
15
  type: z.string().describe("Document type, must be 'doc'"),
16
16
  content: z.array(z.union([z.object({
17
17
  type: z.string().describe("Node type, must be 'heading'"),
18
- attrs: z.object({}).describe("Heading attributes, e.g., {'level': 1} for H1"),
18
+ attrs: z.record(z.string(), z.unknown()).describe("Heading attributes, e.g., {'level': 1} for H1"),
19
19
  content: z.array(z.object({
20
20
  text: z.string().describe("The text content"),
21
21
  type: z.string().describe("Node type, must be 'text'")
22
- }).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the heading")
23
- }).describe("Represents a heading node in ProseMirror document structure."), z.object({
22
+ }).passthrough().describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the heading")
23
+ }).passthrough().describe("Represents a heading node in ProseMirror document structure."), z.object({
24
24
  type: z.string().describe("Node type, must be 'paragraph'"),
25
25
  content: z.array(z.object({
26
26
  text: z.string().describe("The text content"),
27
27
  type: z.string().describe("Node type, must be 'text'")
28
- }).describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the paragraph")
29
- }).describe("Represents a paragraph node in ProseMirror document structure.")])).describe("List of content nodes (headings and paragraphs)")
30
- }).describe("ProseMirror document structure for conversation content.")]),
28
+ }).passthrough().describe("Represents a text node in ProseMirror document structure.")).describe("Content nodes within the paragraph")
29
+ }).passthrough().describe("Represents a paragraph node in ProseMirror document structure.")])).describe("List of content nodes (headings and paragraphs)")
30
+ }).passthrough().describe("ProseMirror document structure for conversation content.")]),
31
31
  sourceUrl: z.string().describe("Source reference URL where the conversation originated").optional(),
32
32
  insertedAt: z.string().describe("Date and time when the conversation was inserted. Accepts YYYY-MM-DD or RFC 3339 format (e.g., 2007-12-03T10:15:30Z)").optional(),
33
33
  customFields: z.record(z.string(), z.unknown()).describe("Custom field data as key-value pairs").optional()
34
34
  }).describe("Request model for creating a new conversation in Specific platform.");
35
- const SpecificCreateConversation_SourceInfoSchema = z.object({ id: z.string().describe("Source unique identifier") }).describe("Source information in the response.");
35
+ const SpecificCreateConversation_SourceInfoSchema = z.object({ id: z.string().describe("Source unique identifier").nullable() }).passthrough().describe("Source information in the response.");
36
36
  const SpecificCreateConversation_CompanyInfoSchema = z.object({
37
- id: z.string().describe("Company unique identifier"),
38
- name: z.string().describe("Company name")
39
- }).describe("Company information in the response.");
37
+ id: z.string().describe("Company unique identifier").nullable(),
38
+ name: z.string().describe("Company name").nullable()
39
+ }).passthrough().describe("Company information in the response.");
40
40
  const SpecificCreateConversation_ContactInfoSchema = z.object({
41
- id: z.string().describe("Contact unique identifier"),
42
- name: z.string().describe("Contact name"),
41
+ id: z.string().describe("Contact unique identifier").nullable(),
42
+ name: z.string().describe("Contact name").nullable(),
43
43
  email: z.string().describe("Contact email address").nullable().optional()
44
- }).describe("Contact information in the response.");
44
+ }).passthrough().describe("Contact information in the response.");
45
45
  const specificCreateConversation = action("SPECIFIC_CREATE_CONVERSATION", {
46
46
  slug: "specific-create-conversation",
47
47
  name: "Create Conversation",
@@ -58,7 +58,7 @@ const specificCreateConversation = action("SPECIFIC_CREATE_CONVERSATION", {
58
58
  sourceUrl: z.string().describe("Source URL where the conversation was gathered if creation was successful").nullable().optional(),
59
59
  insertedAt: z.string().describe("Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)").nullable().optional(),
60
60
  customFields: z.record(z.string(), z.unknown()).describe("Custom fields as key-value pairs if creation was successful").nullable().optional()
61
- }).describe("Response model for conversation creation. Returns the created conversation details or error information.")
61
+ }).passthrough().describe("Response model for conversation creation. Returns the created conversation details or error information.")
62
62
  });
63
63
  //#endregion
64
64
  export { specificCreateConversation };