@keystrokehq/specific 0.1.2 → 0.1.4

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 (115) hide show
  1. package/dist/actions/create-company.cjs +3 -3
  2. package/dist/actions/create-company.cjs.map +1 -1
  3. package/dist/actions/create-company.d.cts +4 -4
  4. package/dist/actions/create-company.d.mts +4 -4
  5. package/dist/actions/create-company.mjs +3 -3
  6. package/dist/actions/create-company.mjs.map +1 -1
  7. package/dist/actions/create-conversation.cjs +12 -12
  8. package/dist/actions/create-conversation.cjs.map +1 -1
  9. package/dist/actions/create-conversation.d.cts +20 -15
  10. package/dist/actions/create-conversation.d.mts +20 -15
  11. package/dist/actions/create-conversation.mjs +12 -12
  12. package/dist/actions/create-conversation.mjs.map +1 -1
  13. package/dist/actions/create-or-update-company.cjs +6 -6
  14. package/dist/actions/create-or-update-company.cjs.map +1 -1
  15. package/dist/actions/create-or-update-company.d.cts +7 -7
  16. package/dist/actions/create-or-update-company.d.mts +7 -7
  17. package/dist/actions/create-or-update-company.mjs +6 -6
  18. package/dist/actions/create-or-update-company.mjs.map +1 -1
  19. package/dist/actions/create-or-update-user.cjs +3 -3
  20. package/dist/actions/create-or-update-user.cjs.map +1 -1
  21. package/dist/actions/create-or-update-user.d.cts +3 -3
  22. package/dist/actions/create-or-update-user.d.mts +3 -3
  23. package/dist/actions/create-or-update-user.mjs +3 -3
  24. package/dist/actions/create-or-update-user.mjs.map +1 -1
  25. package/dist/actions/create-user.cjs +2 -2
  26. package/dist/actions/create-user.cjs.map +1 -1
  27. package/dist/actions/create-user.d.cts +2 -2
  28. package/dist/actions/create-user.d.mts +2 -2
  29. package/dist/actions/create-user.mjs +2 -2
  30. package/dist/actions/create-user.mjs.map +1 -1
  31. package/dist/actions/delete-company-attributes.cjs +1 -1
  32. package/dist/actions/delete-company-attributes.cjs.map +1 -1
  33. package/dist/actions/delete-company-attributes.d.cts +1 -1
  34. package/dist/actions/delete-company-attributes.d.mts +1 -1
  35. package/dist/actions/delete-company-attributes.mjs +1 -1
  36. package/dist/actions/delete-company-attributes.mjs.map +1 -1
  37. package/dist/actions/delete-company.cjs +1 -1
  38. package/dist/actions/delete-company.cjs.map +1 -1
  39. package/dist/actions/delete-company.d.cts +1 -1
  40. package/dist/actions/delete-company.d.mts +1 -1
  41. package/dist/actions/delete-company.mjs +1 -1
  42. package/dist/actions/delete-company.mjs.map +1 -1
  43. package/dist/actions/delete-user-attributes.cjs +4 -4
  44. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  45. package/dist/actions/delete-user-attributes.d.cts +4 -4
  46. package/dist/actions/delete-user-attributes.d.mts +4 -4
  47. package/dist/actions/delete-user-attributes.mjs +4 -4
  48. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  49. package/dist/actions/delete-user.cjs +2 -2
  50. package/dist/actions/delete-user.cjs.map +1 -1
  51. package/dist/actions/delete-user.d.cts +2 -2
  52. package/dist/actions/delete-user.d.mts +2 -2
  53. package/dist/actions/delete-user.mjs +2 -2
  54. package/dist/actions/delete-user.mjs.map +1 -1
  55. package/dist/actions/get-my-workspace.cjs +3 -3
  56. package/dist/actions/get-my-workspace.cjs.map +1 -1
  57. package/dist/actions/get-my-workspace.d.cts +3 -3
  58. package/dist/actions/get-my-workspace.d.mts +3 -3
  59. package/dist/actions/get-my-workspace.mjs +3 -3
  60. package/dist/actions/get-my-workspace.mjs.map +1 -1
  61. package/dist/actions/list-companies.cjs +2 -2
  62. package/dist/actions/list-companies.cjs.map +1 -1
  63. package/dist/actions/list-companies.d.cts +2 -2
  64. package/dist/actions/list-companies.d.mts +2 -2
  65. package/dist/actions/list-companies.mjs +2 -2
  66. package/dist/actions/list-companies.mjs.map +1 -1
  67. package/dist/actions/list-conversations.cjs +7 -7
  68. package/dist/actions/list-conversations.cjs.map +1 -1
  69. package/dist/actions/list-conversations.d.cts +8 -8
  70. package/dist/actions/list-conversations.d.mts +8 -8
  71. package/dist/actions/list-conversations.mjs +7 -7
  72. package/dist/actions/list-conversations.mjs.map +1 -1
  73. package/dist/actions/list-custom-fields.cjs +2 -2
  74. package/dist/actions/list-custom-fields.cjs.map +1 -1
  75. package/dist/actions/list-custom-fields.d.cts +2 -2
  76. package/dist/actions/list-custom-fields.d.mts +2 -2
  77. package/dist/actions/list-custom-fields.mjs +2 -2
  78. package/dist/actions/list-custom-fields.mjs.map +1 -1
  79. package/dist/actions/list-sources.cjs +3 -3
  80. package/dist/actions/list-sources.cjs.map +1 -1
  81. package/dist/actions/list-sources.d.cts +3 -3
  82. package/dist/actions/list-sources.d.mts +3 -3
  83. package/dist/actions/list-sources.mjs +3 -3
  84. package/dist/actions/list-sources.mjs.map +1 -1
  85. package/dist/actions/list-surveys.cjs +4 -4
  86. package/dist/actions/list-surveys.cjs.map +1 -1
  87. package/dist/actions/list-surveys.d.cts +4 -4
  88. package/dist/actions/list-surveys.d.mts +4 -4
  89. package/dist/actions/list-surveys.mjs +4 -4
  90. package/dist/actions/list-surveys.mjs.map +1 -1
  91. package/dist/actions/list-users.cjs +4 -4
  92. package/dist/actions/list-users.cjs.map +1 -1
  93. package/dist/actions/list-users.d.cts +5 -5
  94. package/dist/actions/list-users.d.mts +5 -5
  95. package/dist/actions/list-users.mjs +4 -4
  96. package/dist/actions/list-users.mjs.map +1 -1
  97. package/dist/actions/update-company.cjs +2 -2
  98. package/dist/actions/update-company.cjs.map +1 -1
  99. package/dist/actions/update-company.d.cts +2 -2
  100. package/dist/actions/update-company.d.mts +2 -2
  101. package/dist/actions/update-company.mjs +2 -2
  102. package/dist/actions/update-company.mjs.map +1 -1
  103. package/dist/actions/update-user.cjs +3 -3
  104. package/dist/actions/update-user.cjs.map +1 -1
  105. package/dist/actions/update-user.d.cts +3 -3
  106. package/dist/actions/update-user.d.mts +3 -3
  107. package/dist/actions/update-user.mjs +3 -3
  108. package/dist/actions/update-user.mjs.map +1 -1
  109. package/dist/catalog.cjs +1 -1
  110. package/dist/catalog.cjs.map +1 -1
  111. package/dist/catalog.d.cts +1 -1
  112. package/dist/catalog.d.mts +1 -1
  113. package/dist/catalog.mjs +1 -1
  114. package/dist/catalog.mjs.map +1 -1
  115. package/package.json +1 -1
@@ -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.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.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,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AACjK,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,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"}
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const SpecificCreateCompanyInput: z.ZodObject<{
5
5
  id: z.ZodOptional<z.ZodString>;
6
6
  name: z.ZodOptional<z.ZodString>;
7
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  }, z.core.$strip>;
9
9
  declare const SpecificCreateCompanyOutput: z.ZodObject<{
10
10
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12,12 +12,12 @@ declare const SpecificCreateCompanyOutput: z.ZodObject<{
12
12
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  usersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
- fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{}, z.core.$strip>>]>>>;
16
- }, z.core.$strip>;
15
+ fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
16
+ }, z.core.$loose>;
17
17
  declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  id?: string | undefined;
19
19
  name?: string | undefined;
20
- attributes?: Record<string, never> | undefined;
20
+ attributes?: Record<string, unknown> | undefined;
21
21
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
22
  //#endregion
23
23
  export { specificCreateCompany };
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const SpecificCreateCompanyInput: z.ZodObject<{
5
5
  id: z.ZodOptional<z.ZodString>;
6
6
  name: z.ZodOptional<z.ZodString>;
7
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  }, z.core.$strip>;
9
9
  declare const SpecificCreateCompanyOutput: z.ZodObject<{
10
10
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12,12 +12,12 @@ declare const SpecificCreateCompanyOutput: z.ZodObject<{
12
12
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  usersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
- fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{}, z.core.$strip>>]>>>;
16
- }, z.core.$strip>;
15
+ fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
16
+ }, z.core.$loose>;
17
17
  declare const specificCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  id?: string | undefined;
19
19
  name?: string | undefined;
20
- attributes?: Record<string, never> | undefined;
20
+ attributes?: Record<string, unknown> | undefined;
21
21
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
22
  //#endregion
23
23
  export { specificCreateCompany };
@@ -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.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.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,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,CAAC,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACjK,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,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").nullable() }).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
37
  id: zod.z.string().describe("Company unique identifier").nullable(),
38
38
  name: zod.z.string().describe("Company name").nullable()
39
- }).describe("Company information in the response.");
39
+ }).passthrough().describe("Company information in the response.");
40
40
  const SpecificCreateConversation_ContactInfoSchema = zod.z.object({
41
41
  id: zod.z.string().describe("Contact unique identifier").nullable(),
42
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.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.object({\n id: z.string().describe(\"Source unique identifier\").nullable(),\n}).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}).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}).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}).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,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;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,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;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D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1E,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,0BAA0B,CAAC,CAAC,SAAS;CAC/C,SAASA,IAAAA,EAAE,OAAO;EAClB,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EACrH,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE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A0G;AAEpI,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,30 +6,30 @@ declare const SpecificCreateConversationInput: z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  }, z.core.$strip>>;
8
8
  company: z.ZodOptional<z.ZodObject<{
9
- where: z.ZodObject<{}, z.core.$strip>;
9
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
11
  }, z.core.$strip>>;
12
12
  contact: z.ZodOptional<z.ZodObject<{
13
- where: z.ZodObject<{}, z.core.$strip>;
13
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
15
  }, z.core.$strip>>;
16
16
  content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17
17
  type: z.ZodString;
18
18
  content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
19
19
  type: z.ZodString;
20
- attrs: z.ZodObject<{}, z.core.$strip>;
20
+ attrs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
21
21
  content: z.ZodArray<z.ZodObject<{
22
22
  text: z.ZodString;
23
23
  type: z.ZodString;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>, z.ZodObject<{
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>, z.ZodObject<{
26
26
  type: z.ZodString;
27
27
  content: z.ZodArray<z.ZodObject<{
28
28
  text: z.ZodString;
29
29
  type: z.ZodString;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>]>>;
32
- }, z.core.$strip>]>;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>]>>;
32
+ }, z.core.$loose>]>;
33
33
  sourceUrl: z.ZodOptional<z.ZodString>;
34
34
  insertedAt: z.ZodOptional<z.ZodString>;
35
35
  customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -39,35 +39,40 @@ declare const SpecificCreateConversationOutput: z.ZodObject<{
39
39
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
41
  id: z.ZodNullable<z.ZodString>;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
44
  id: z.ZodNullable<z.ZodString>;
45
45
  name: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>>;
47
47
  contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
48
  id: z.ZodNullable<z.ZodString>;
49
49
  name: z.ZodNullable<z.ZodString>;
50
50
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>>>;
51
+ }, z.core.$loose>>>;
52
52
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  plainText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  insertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
- }, z.core.$strip>;
57
+ }, z.core.$loose>;
58
58
  declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<{
59
59
  content: string | {
60
+ [x: string]: unknown;
60
61
  type: string;
61
62
  content: ({
63
+ [x: string]: unknown;
62
64
  type: string;
63
- attrs: Record<string, never>;
65
+ attrs: Record<string, unknown>;
64
66
  content: {
67
+ [x: string]: unknown;
65
68
  text: string;
66
69
  type: string;
67
70
  }[];
68
71
  } | {
72
+ [x: string]: unknown;
69
73
  type: string;
70
74
  content: {
75
+ [x: string]: unknown;
71
76
  text: string;
72
77
  type: string;
73
78
  }[];
@@ -77,11 +82,11 @@ declare const specificCreateConversation: import("@keystrokehq/action").Workflow
77
82
  id: string;
78
83
  } | undefined;
79
84
  company?: {
80
- where: Record<string, never>;
85
+ where: Record<string, unknown>;
81
86
  create: Record<string, unknown>;
82
87
  } | undefined;
83
88
  contact?: {
84
- where: Record<string, never>;
89
+ where: Record<string, unknown>;
85
90
  create: Record<string, unknown>;
86
91
  } | undefined;
87
92
  sourceUrl?: string | undefined;
@@ -6,30 +6,30 @@ declare const SpecificCreateConversationInput: z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  }, z.core.$strip>>;
8
8
  company: z.ZodOptional<z.ZodObject<{
9
- where: z.ZodObject<{}, z.core.$strip>;
9
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
11
  }, z.core.$strip>>;
12
12
  contact: z.ZodOptional<z.ZodObject<{
13
- where: z.ZodObject<{}, z.core.$strip>;
13
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  create: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
15
  }, z.core.$strip>>;
16
16
  content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17
17
  type: z.ZodString;
18
18
  content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
19
19
  type: z.ZodString;
20
- attrs: z.ZodObject<{}, z.core.$strip>;
20
+ attrs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
21
21
  content: z.ZodArray<z.ZodObject<{
22
22
  text: z.ZodString;
23
23
  type: z.ZodString;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>, z.ZodObject<{
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>, z.ZodObject<{
26
26
  type: z.ZodString;
27
27
  content: z.ZodArray<z.ZodObject<{
28
28
  text: z.ZodString;
29
29
  type: z.ZodString;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>]>>;
32
- }, z.core.$strip>]>;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>]>>;
32
+ }, z.core.$loose>]>;
33
33
  sourceUrl: z.ZodOptional<z.ZodString>;
34
34
  insertedAt: z.ZodOptional<z.ZodString>;
35
35
  customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -39,35 +39,40 @@ declare const SpecificCreateConversationOutput: z.ZodObject<{
39
39
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
41
  id: z.ZodNullable<z.ZodString>;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
44
  id: z.ZodNullable<z.ZodString>;
45
45
  name: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>>;
47
47
  contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
48
  id: z.ZodNullable<z.ZodString>;
49
49
  name: z.ZodNullable<z.ZodString>;
50
50
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>>>;
51
+ }, z.core.$loose>>>;
52
52
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  plainText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  insertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
- }, z.core.$strip>;
57
+ }, z.core.$loose>;
58
58
  declare const specificCreateConversation: import("@keystrokehq/action").WorkflowActionDefinition<{
59
59
  content: string | {
60
+ [x: string]: unknown;
60
61
  type: string;
61
62
  content: ({
63
+ [x: string]: unknown;
62
64
  type: string;
63
- attrs: Record<string, never>;
65
+ attrs: Record<string, unknown>;
64
66
  content: {
67
+ [x: string]: unknown;
65
68
  text: string;
66
69
  type: string;
67
70
  }[];
68
71
  } | {
72
+ [x: string]: unknown;
69
73
  type: string;
70
74
  content: {
75
+ [x: string]: unknown;
71
76
  text: string;
72
77
  type: string;
73
78
  }[];
@@ -77,11 +82,11 @@ declare const specificCreateConversation: import("@keystrokehq/action").Workflow
77
82
  id: string;
78
83
  } | undefined;
79
84
  company?: {
80
- where: Record<string, never>;
85
+ where: Record<string, unknown>;
81
86
  create: Record<string, unknown>;
82
87
  } | undefined;
83
88
  contact?: {
84
- where: Record<string, never>;
89
+ where: Record<string, unknown>;
85
90
  create: Record<string, unknown>;
86
91
  } | undefined;
87
92
  sourceUrl?: string | undefined;
@@ -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").nullable() }).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
37
  id: z.string().describe("Company unique identifier").nullable(),
38
38
  name: z.string().describe("Company name").nullable()
39
- }).describe("Company information in the response.");
39
+ }).passthrough().describe("Company information in the response.");
40
40
  const SpecificCreateConversation_ContactInfoSchema = z.object({
41
41
  id: z.string().describe("Contact unique identifier").nullable(),
42
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 };
@@ -1 +1 @@
1
- {"version":3,"file":"create-conversation.mjs","names":[],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput = z.object({\n source: z.object({\n id: z.string().describe(\"ID of the source to connect\"),\n}).describe(\"Source connection input.\").optional(),\n company: z.object({\n where: z.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.object({\n id: z.string().describe(\"Source unique identifier\").nullable(),\n}).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}).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}).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}).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,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,OAAO;EAClB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAChG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO;EAClB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;EAChG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAAS,EAA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,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,0GAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-conversation.mjs","names":[],"sources":["../../src/actions/create-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateConversationInput = z.object({\n source: z.object({\n id: z.string().describe(\"ID of the source to connect\"),\n}).describe(\"Source connection input.\").optional(),\n company: z.object({\n where: z.record(z.string(), z.unknown()).describe(\"Where clause to find existing company, e.g., {'id': 'company-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Company data to create if not found\"),\n}).describe(\"Company connection or creation input.\").optional(),\n contact: z.object({\n where: z.record(z.string(), z.unknown()).describe(\"Where clause to find existing contact, e.g., {'id': 'contact-id'}\"),\n create: z.record(z.string(), z.unknown()).describe(\"Contact data to create if not found\"),\n}).describe(\"Contact connection or creation input.\").optional(),\n content: z.union([z.string(), z.object({\n type: z.string().describe(\"Document type, must be 'doc'\"),\n content: z.array(z.union([z.object({\n type: z.string().describe(\"Node type, must be 'heading'\"),\n attrs: z.record(z.string(), z.unknown()).describe(\"Heading attributes, e.g., {'level': 1} for H1\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).passthrough().describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the heading\"),\n}).passthrough().describe(\"Represents a heading node in ProseMirror document structure.\"), z.object({\n type: z.string().describe(\"Node type, must be 'paragraph'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Node type, must be 'text'\"),\n}).passthrough().describe(\"Represents a text node in ProseMirror document structure.\")).describe(\"Content nodes within the paragraph\"),\n}).passthrough().describe(\"Represents a paragraph node in ProseMirror document structure.\")])).describe(\"List of content nodes (headings and paragraphs)\"),\n}).passthrough().describe(\"ProseMirror document structure for conversation content.\")]),\n sourceUrl: z.string().describe(\"Source reference URL where the conversation originated\").optional(),\n insertedAt: z.string().describe(\"Date and time when the conversation was inserted. Accepts YYYY-MM-DD or RFC 3339 format (e.g., 2007-12-03T10:15:30Z)\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom field data as key-value pairs\").optional(),\n}).describe(\"Request model for creating a new conversation in Specific platform.\");\nconst SpecificCreateConversation_SourceInfoSchema = z.object({\n id: z.string().describe(\"Source unique identifier\").nullable(),\n}).passthrough().describe(\"Source information in the response.\");\nconst SpecificCreateConversation_CompanyInfoSchema = z.object({\n id: z.string().describe(\"Company unique identifier\").nullable(),\n name: z.string().describe(\"Company name\").nullable(),\n}).passthrough().describe(\"Company information in the response.\");\nconst SpecificCreateConversation_ContactInfoSchema = z.object({\n id: z.string().describe(\"Contact unique identifier\").nullable(),\n name: z.string().describe(\"Contact name\").nullable(),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n}).passthrough().describe(\"Contact information in the response.\");\nexport const SpecificCreateConversationOutput = z.object({\n id: z.string().describe(\"The conversation's unique identifier if creation was successful\").nullable().optional(),\n name: z.string().describe(\"The conversation's name if creation was successful\").nullable().optional(),\n source: SpecificCreateConversation_SourceInfoSchema.nullable().optional(),\n company: SpecificCreateConversation_CompanyInfoSchema.nullable().optional(),\n contact: SpecificCreateConversation_ContactInfoSchema.nullable().optional(),\n message: z.string().describe(\"Error message if creation failed\").nullable().optional(),\n plainText: z.string().describe(\"The textual content of the conversation if creation was successful\").nullable().optional(),\n sourceUrl: z.string().describe(\"Source URL where the conversation was gathered if creation was successful\").nullable().optional(),\n insertedAt: z.string().describe(\"Date and time when conversation was inserted (format: YYYY-MM-DDTHH:mm:ss.sssZ)\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs if creation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for conversation creation. Returns the created conversation details or error information.\");\n\nexport const specificCreateConversation = action(\"SPECIFIC_CREATE_CONVERSATION\", {\n slug: \"specific-create-conversation\",\n name: \"Create Conversation\",\n description: \"Tool to create a new conversation (survey response) in the Specific platform. Use when you need to add a new conversation with content, optional contacts, companies, and custom fields. Content can be a simple string or structured ProseMirror document with headings and paragraphs.\",\n input: SpecificCreateConversationInput,\n output: SpecificCreateConversationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACvD,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,OAAO;EAClB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EACrH,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO;EAClB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;EACrH,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACxD,SAA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AS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0GAOhB;AACV,CAAC"}
@@ -5,11 +5,11 @@ const SpecificCreateOrUpdateCompanyInput = zod.z.object({
5
5
  data: zod.z.object({
6
6
  id: zod.z.string().describe("Company ID - unique identifier for the company. Required for upsert operations."),
7
7
  name: zod.z.string().describe("Company name - the display name of the company.").optional(),
8
- attributes: zod.z.object({}).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
8
+ attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
9
9
  }).describe("Company data to create or update - must include ID and optionally name and attributes."),
10
10
  where: zod.z.object({
11
11
  id: zod.z.string().describe("Company ID for filtering - identifies which company to update.").optional(),
12
- attributes: zod.z.object({}).describe("Filter by company attributes - key-value pairs to match.").optional()
12
+ attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter by company attributes - key-value pairs to match.").optional()
13
13
  }).describe("Filter criteria to identify which company to update - typically matches by ID.")
14
14
  }).describe("Request model for creating or updating a company in Specific.");
15
15
  const SpecificCreateOrUpdateCompany_CompanySchema = zod.z.object({
@@ -17,16 +17,16 @@ const SpecificCreateOrUpdateCompany_CompanySchema = zod.z.object({
17
17
  name: zod.z.string().describe("The company's name.").nullable(),
18
18
  visitorId: zod.z.string().describe("Internal Specific visitor ID.").nullable(),
19
19
  usersCount: zod.z.number().int().describe("Number of users who belong to the company.").nullable()
20
- }).describe("Company object returned from Specific platform.");
20
+ }).passthrough().describe("Company object returned from Specific platform.");
21
21
  const SpecificCreateOrUpdateCompanyOutput = zod.z.object({
22
22
  message: zod.z.string().describe("Error message if operation failed (DbError, GraphQLError, or ValidationError).").nullable().optional(),
23
23
  companies: zod.z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe("List of companies that were created or updated (on success).").nullable().optional(),
24
24
  fieldErrors: zod.z.union([
25
25
  zod.z.string(),
26
- zod.z.object({}),
27
- zod.z.array(zod.z.object({}))
26
+ zod.z.record(zod.z.string(), zod.z.unknown()),
27
+ zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))
28
28
  ]).nullable().optional()
29
- }).describe("Response model for company creation or update. Returns the created/updated company details or error information.");
29
+ }).passthrough().describe("Response model for company creation or update. Returns the created/updated company details or error information.");
30
30
  const specificCreateOrUpdateCompany = require_action.action("SPECIFIC_CREATE_OR_UPDATE_COMPANY", {
31
31
  slug: "specific-create-or-update-company",
32
32
  name: "Create or Update Company",