@keystrokehq/specific 0.1.2 → 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 (109) 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/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-company.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.object({}).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.object({}), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mapp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D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,aAAaA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAE9H,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-company.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough().describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAChJ,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8CA,IAAAA,EA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- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
8
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
9
  }, z.core.$strip>;
10
10
  where: z.ZodObject<{
11
11
  id: z.ZodOptional<z.ZodString>;
12
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
13
  }, z.core.$strip>;
14
14
  }, z.core.$strip>;
15
15
  declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
@@ -19,18 +19,18 @@ declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
19
19
  name: z.ZodNullable<z.ZodString>;
20
20
  visitorId: z.ZodNullable<z.ZodString>;
21
21
  usersCount: z.ZodNullable<z.ZodNumber>;
22
- }, z.core.$strip>>>>;
23
- fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{}, z.core.$strip>>]>>>;
24
- }, z.core.$strip>;
22
+ }, z.core.$loose>>>>;
23
+ fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
24
+ }, z.core.$loose>;
25
25
  declare const specificCreateOrUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  data: {
27
27
  id: string;
28
28
  name?: string | undefined;
29
- attributes?: Record<string, never> | undefined;
29
+ attributes?: Record<string, unknown> | undefined;
30
30
  };
31
31
  where: {
32
32
  id?: string | undefined;
33
- attributes?: Record<string, never> | undefined;
33
+ attributes?: Record<string, unknown> | undefined;
34
34
  };
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
36
  //#endregion
@@ -5,11 +5,11 @@ declare const SpecificCreateOrUpdateCompanyInput: z.ZodObject<{
5
5
  data: z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  name: z.ZodOptional<z.ZodString>;
8
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
8
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
9
  }, z.core.$strip>;
10
10
  where: z.ZodObject<{
11
11
  id: z.ZodOptional<z.ZodString>;
12
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
13
  }, z.core.$strip>;
14
14
  }, z.core.$strip>;
15
15
  declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
@@ -19,18 +19,18 @@ declare const SpecificCreateOrUpdateCompanyOutput: z.ZodObject<{
19
19
  name: z.ZodNullable<z.ZodString>;
20
20
  visitorId: z.ZodNullable<z.ZodString>;
21
21
  usersCount: z.ZodNullable<z.ZodNumber>;
22
- }, z.core.$strip>>>>;
23
- fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{}, z.core.$strip>>]>>>;
24
- }, z.core.$strip>;
22
+ }, z.core.$loose>>>>;
23
+ fieldErrors: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
24
+ }, z.core.$loose>;
25
25
  declare const specificCreateOrUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  data: {
27
27
  id: string;
28
28
  name?: string | undefined;
29
- attributes?: Record<string, never> | undefined;
29
+ attributes?: Record<string, unknown> | undefined;
30
30
  };
31
31
  where: {
32
32
  id?: string | undefined;
33
- attributes?: Record<string, never> | undefined;
33
+ attributes?: Record<string, unknown> | undefined;
34
34
  };
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
36
  //#endregion
@@ -5,11 +5,11 @@ const SpecificCreateOrUpdateCompanyInput = z.object({
5
5
  data: z.object({
6
6
  id: z.string().describe("Company ID - unique identifier for the company. Required for upsert operations."),
7
7
  name: z.string().describe("Company name - the display name of the company.").optional(),
8
- attributes: z.object({}).describe("Company custom attributes - key-value pairs to merge with existing values.").optional()
8
+ attributes: z.record(z.string(), 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: z.object({
11
11
  id: z.string().describe("Company ID for filtering - identifies which company to update.").optional(),
12
- attributes: z.object({}).describe("Filter by company attributes - key-value pairs to match.").optional()
12
+ attributes: z.record(z.string(), 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 = z.object({
@@ -17,7 +17,7 @@ const SpecificCreateOrUpdateCompany_CompanySchema = z.object({
17
17
  name: z.string().describe("The company's name.").nullable(),
18
18
  visitorId: z.string().describe("Internal Specific visitor ID.").nullable(),
19
19
  usersCount: 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 specificCreateOrUpdateCompany = action("SPECIFIC_CREATE_OR_UPDATE_COMPANY", {
22
22
  slug: "specific-create-or-update-company",
23
23
  name: "Create or Update Company",
@@ -28,10 +28,10 @@ const specificCreateOrUpdateCompany = action("SPECIFIC_CREATE_OR_UPDATE_COMPANY"
28
28
  companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe("List of companies that were created or updated (on success).").nullable().optional(),
29
29
  fieldErrors: z.union([
30
30
  z.string(),
31
- z.object({}),
32
- z.array(z.object({}))
31
+ z.record(z.string(), z.unknown()),
32
+ z.array(z.record(z.string(), z.unknown()))
33
33
  ]).nullable().optional()
34
- }).describe("Response model for company creation or update. Returns the created/updated company details or error information.")
34
+ }).passthrough().describe("Response model for company creation or update. Returns the created/updated company details or error information.")
35
35
  });
36
36
  //#endregion
37
37
  export { specificCreateOrUpdateCompany };
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.object({}).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.object({}).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.object({}), z.array(z.object({}))]).nullable().optional(),\n}).describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAO7D,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,kHAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-company.mjs","names":[],"sources":["../../src/actions/create-or-update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateCompanyInput = z.object({\n data: z.object({\n id: z.string().describe(\"Company ID - unique identifier for the company. Required for upsert operations.\"),\n name: z.string().describe(\"Company name - the display name of the company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Company custom attributes - key-value pairs to merge with existing values.\").optional(),\n}).describe(\"Company data to create or update - must include ID and optionally name and attributes.\"),\n where: z.object({\n id: z.string().describe(\"Company ID for filtering - identifies which company to update.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Filter by company attributes - key-value pairs to match.\").optional(),\n}).describe(\"Filter criteria to identify which company to update - typically matches by ID.\"),\n}).describe(\"Request model for creating or updating a company in Specific.\");\nconst SpecificCreateOrUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough().describe(\"Company object returned from Specific platform.\");\nexport const SpecificCreateOrUpdateCompanyOutput = z.object({\n message: z.string().describe(\"Error message if operation failed (DbError, GraphQLError, or ValidationError).\").nullable().optional(),\n companies: z.array(SpecificCreateOrUpdateCompany_CompanySchema).describe(\"List of companies that were created or updated (on success).\").nullable().optional(),\n fieldErrors: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model for company creation or update. Returns the created/updated company details or error information.\");\n\nexport const specificCreateOrUpdateCompany = action(\"SPECIFIC_CREATE_OR_UPDATE_COMPANY\", {\n slug: \"specific-create-or-update-company\",\n name: \"Create or Update Company\",\n description: \"Tool to upsert a company record in the Specific platform (create if not exists, update if exists). Use when you need to ensure a company exists with specific data, creating or updating as necessary based on the filter criteria.\",\n input: SpecificCreateOrUpdateCompanyInput,\n output: SpecificCreateOrUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EACzG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAChJ,CAAC,CAAC,CAAC,SAAS,wFAAwF;CAClG,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAO3E,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAOhB;AACV,CAAC"}
@@ -17,19 +17,19 @@ const SpecificCreateOrUpdateUserInput = zod.z.object({
17
17
  const SpecificCreateOrUpdateUser_CompanySchema = zod.z.object({
18
18
  id: zod.z.string().describe("Company ID").nullable().optional(),
19
19
  name: zod.z.string().describe("Company name").nullable().optional()
20
- }).describe("Company information.");
20
+ }).passthrough().describe("Company information.");
21
21
  const SpecificCreateOrUpdateUser_UserSchema = zod.z.object({
22
22
  id: zod.z.string().describe("Contact's ID").nullable(),
23
23
  name: zod.z.string().describe("Contact's name").nullable(),
24
24
  email: zod.z.string().describe("Contact's email").nullable().optional(),
25
25
  company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
26
26
  visitorId: zod.z.string().describe("Internal Specific ID").nullable()
27
- }).describe("User/Contact information.");
27
+ }).passthrough().describe("User/Contact information.");
28
28
  const SpecificCreateOrUpdateUserOutput = zod.z.object({
29
29
  error: zod.z.string().describe("Error message if failed").nullable().optional(),
30
30
  success: zod.z.boolean().describe("Whether the operation was successful").nullable(),
31
31
  contacts: zod.z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
32
- }).describe("Response model for createOrUpdateUser mutation.");
32
+ }).passthrough().describe("Response model for createOrUpdateUser mutation.");
33
33
  const specificCreateOrUpdateUser = require_action.action("SPECIFIC_CREATE_OR_UPDATE_USER", {
34
34
  slug: "specific-create-or-update-user",
35
35
  name: "Create Or Update User",
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID.\",\n input: SpecificCreateOrUpdateUserInput,\n output: SpecificCreateOrUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzF,YAAYA,IAAAA,EAAE,OAAOA,IAAA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C,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-user.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).passthrough().describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID.\",\n input: SpecificCreateOrUpdateUserInput,\n output: SpecificCreateOrUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -26,10 +26,10 @@ declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
26
26
  company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  visitorId: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>>>;
32
+ }, z.core.$loose>;
33
33
  declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  data: {
35
35
  id?: string | undefined;
@@ -26,10 +26,10 @@ declare const SpecificCreateOrUpdateUserOutput: z.ZodObject<{
26
26
  company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  visitorId: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>>>;
32
+ }, z.core.$loose>;
33
33
  declare const specificCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  data: {
35
35
  id?: string | undefined;
@@ -17,14 +17,14 @@ const SpecificCreateOrUpdateUserInput = z.object({
17
17
  const SpecificCreateOrUpdateUser_CompanySchema = z.object({
18
18
  id: z.string().describe("Company ID").nullable().optional(),
19
19
  name: z.string().describe("Company name").nullable().optional()
20
- }).describe("Company information.");
20
+ }).passthrough().describe("Company information.");
21
21
  const SpecificCreateOrUpdateUser_UserSchema = z.object({
22
22
  id: z.string().describe("Contact's ID").nullable(),
23
23
  name: z.string().describe("Contact's name").nullable(),
24
24
  email: z.string().describe("Contact's email").nullable().optional(),
25
25
  company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),
26
26
  visitorId: z.string().describe("Internal Specific ID").nullable()
27
- }).describe("User/Contact information.");
27
+ }).passthrough().describe("User/Contact information.");
28
28
  const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
29
29
  slug: "specific-create-or-update-user",
30
30
  name: "Create Or Update User",
@@ -34,7 +34,7 @@ const specificCreateOrUpdateUser = action("SPECIFIC_CREATE_OR_UPDATE_USER", {
34
34
  error: z.string().describe("Error message if failed").nullable().optional(),
35
35
  success: z.boolean().describe("Whether the operation was successful").nullable(),
36
36
  contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe("Created or updated contacts if successful").nullable().optional()
37
- }).describe("Response model for createOrUpdateUser mutation.")
37
+ }).passthrough().describe("Response model for createOrUpdateUser mutation.")
38
38
  });
39
39
  //#endregion
40
40
  export { specificCreateOrUpdateUser };
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID.\",\n input: SpecificCreateOrUpdateUserInput,\n output: SpecificCreateOrUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,CAAC,CAAC,SA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O,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-user.mjs","names":[],"sources":["../../src/actions/create-or-update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateOrUpdateUserInput = z.object({\n data: z.object({\n id: z.string().describe(\"Contact's ID\").optional(),\n name: z.string().describe(\"Contact's name\").optional(),\n email: z.string().describe(\"Contact's email\").optional(),\n company: z.object({\n connect: z.string().describe(\"Company ID to connect to the contact\").optional(),\n}).describe(\"Input for establishing a relationship between contact and company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Update custom field values. Will merge current values with new ones.\").optional(),\n}).describe(\"Contact information to create or update\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by\").optional(),\n email: z.string().describe(\"Contact email to filter by\").optional(),\n}).describe(\"Filter criteria to identify which contact to modify (by id or email). At least one field must be provided.\"),\n}).describe(\"Request model for creating or updating a user in Specific.\");\nconst SpecificCreateOrUpdateUser_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).passthrough().describe(\"Company information.\");\nconst SpecificCreateOrUpdateUser_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificCreateOrUpdateUser_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information.\");\nexport const SpecificCreateOrUpdateUserOutput = z.object({\n error: z.string().describe(\"Error message if failed\").nullable().optional(),\n success: z.boolean().describe(\"Whether the operation was successful\").nullable(),\n contacts: z.array(SpecificCreateOrUpdateUser_UserSchema).describe(\"Created or updated contacts if successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for createOrUpdateUser mutation.\");\n\nexport const specificCreateOrUpdateUser = action(\"SPECIFIC_CREATE_OR_UPDATE_USER\", {\n slug: \"specific-create-or-update-user\",\n name: \"Create Or Update User\",\n description: \"Tool to upsert a user record in the Specific platform (creates if not exists, updates if exists). Use when you need to ensure a contact exists with specific data, merging with existing records based on email or ID.\",\n input: SpecificCreateOrUpdateUserInput,\n output: SpecificCreateOrUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO;EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,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
12
12
  path: zod.z.array(zod.z.string()).describe("Array of strings indicating the path to the field that failed validation."),
13
13
  message: zod.z.string().describe("Description of the validation error.").nullable()
14
- }).describe("Field-level validation error details.");
14
+ }).passthrough().describe("Field-level validation error details.");
15
15
  const SpecificCreateUserOutput = zod.z.object({
16
16
  id: zod.z.string().describe("The unique identifier of the created contact (present on success).").nullable().optional(),
17
17
  name: zod.z.string().describe("The name of the created contact (present on success).").nullable().optional(),
@@ -21,7 +21,7 @@ const SpecificCreateUserOutput = zod.z.object({
21
21
  visitorId: zod.z.string().describe("The internal Specific visitor ID (present on success).").nullable().optional(),
22
22
  field_errors: zod.z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe("Field-level validation errors if validation failed.").nullable().optional(),
23
23
  error_message: zod.z.string().describe("Error message if the operation failed.").nullable().optional()
24
- }).describe("Response model for user creation. Contains either success data or error information.");
24
+ }).passthrough().describe("Response model for user creation. Contains either success data or error information.");
25
25
  const specificCreateUser = require_action.action("SPECIFIC_CREATE_USER", {
26
26
  slug: "specific-create-user",
27
27
  name: "Create User",
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created contact (present on success).\").nullable().optional(),\n name: z.string().describe(\"The name of the created contact (present on success).\").nullable().optional(),\n email: z.string().describe(\"The email of the created contact (present on success).\").nullable().optional(),\n company: z.record(z.string(), z.unknown()).describe(\"Company information (present on success if associated).\").nullable().optional(),\n success: z.boolean().default(false).describe(\"Indicates whether the user creation was successful.\").nullable().optional(),\n visitorId: z.string().describe(\"The internal Specific visitor ID (present on success).\").nullable().optional(),\n field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe(\"Field-level validation errors if validation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the operation failed.\").nullable().optional(),\n}).describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAA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,CAAC,SAAS;CACzJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).passthrough().describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created contact (present on success).\").nullable().optional(),\n name: z.string().describe(\"The name of the created contact (present on success).\").nullable().optional(),\n email: z.string().describe(\"The email of the created contact (present on success).\").nullable().optional(),\n company: z.record(z.string(), z.unknown()).describe(\"Company information (present on success if associated).\").nullable().optional(),\n success: z.boolean().default(false).describe(\"Indicates whether the user creation was successful.\").nullable().optional(),\n visitorId: z.string().describe(\"The internal Specific visitor ID (present on success).\").nullable().optional(),\n field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe(\"Field-level validation errors if validation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the operation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,EAClB,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CA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<{
23
23
  path: z.ZodArray<z.ZodString>;
24
24
  message: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>>>;
25
+ }, z.core.$loose>>>>;
26
26
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  id?: string | undefined;
30
30
  name?: string | undefined;
@@ -22,9 +22,9 @@ declare const SpecificCreateUserOutput: z.ZodObject<{
22
22
  field_errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
23
  path: z.ZodArray<z.ZodString>;
24
24
  message: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>>>;
25
+ }, z.core.$loose>>>>;
26
26
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const specificCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  id?: string | undefined;
30
30
  name?: string | undefined;
@@ -11,7 +11,7 @@ const SpecificCreateUserInput = z.object({
11
11
  const SpecificCreateUser_ValidationFieldErrorSchema = z.object({
12
12
  path: z.array(z.string()).describe("Array of strings indicating the path to the field that failed validation."),
13
13
  message: z.string().describe("Description of the validation error.").nullable()
14
- }).describe("Field-level validation error details.");
14
+ }).passthrough().describe("Field-level validation error details.");
15
15
  const specificCreateUser = action("SPECIFIC_CREATE_USER", {
16
16
  slug: "specific-create-user",
17
17
  name: "Create User",
@@ -26,7 +26,7 @@ const specificCreateUser = action("SPECIFIC_CREATE_USER", {
26
26
  visitorId: z.string().describe("The internal Specific visitor ID (present on success).").nullable().optional(),
27
27
  field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe("Field-level validation errors if validation failed.").nullable().optional(),
28
28
  error_message: z.string().describe("Error message if the operation failed.").nullable().optional()
29
- }).describe("Response model for user creation. Contains either success data or error information.")
29
+ }).passthrough().describe("Response model for user creation. Contains either success data or error information.")
30
30
  });
31
31
  //#endregion
32
32
  export { specificCreateUser };
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created contact (present on success).\").nullable().optional(),\n name: z.string().describe(\"The name of the created contact (present on success).\").nullable().optional(),\n email: z.string().describe(\"The email of the created contact (present on success).\").nullable().optional(),\n company: z.record(z.string(), z.unknown()).describe(\"Company information (present on success if associated).\").nullable().optional(),\n success: z.boolean().default(false).describe(\"Indicates whether the user creation was successful.\").nullable().optional(),\n visitorId: z.string().describe(\"The internal Specific visitor ID (present on success).\").nullable().optional(),\n field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe(\"Field-level validation errors if validation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the operation failed.\").nullable().optional(),\n}).describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E;CAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAYnD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,cAAc,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificCreateUserInput = z.object({\n id: z.string().describe(\"Optional custom identifier for the contact. If not provided, Specific will generate one automatically.\").optional(),\n name: z.string().describe(\"The full name of the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact. While optional, it's highly recommended for user identification.\").optional(),\n company: z.object({\n connect: z.object({\n id: z.string().describe(\"The unique identifier of the company to associate with the contact.\"),\n}).describe(\"Specifies the company to associate with the contact.\"),\n}).describe(\"Defines a relationship between a contact and a company.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes/fields for the contact as key-value pairs. Use this to store additional metadata.\").optional(),\n}).describe(\"Request model for creating a new user (contact) in Specific.\");\nconst SpecificCreateUser_ValidationFieldErrorSchema = z.object({\n path: z.array(z.string()).describe(\"Array of strings indicating the path to the field that failed validation.\"),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).passthrough().describe(\"Field-level validation error details.\");\nexport const SpecificCreateUserOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created contact (present on success).\").nullable().optional(),\n name: z.string().describe(\"The name of the created contact (present on success).\").nullable().optional(),\n email: z.string().describe(\"The email of the created contact (present on success).\").nullable().optional(),\n company: z.record(z.string(), z.unknown()).describe(\"Company information (present on success if associated).\").nullable().optional(),\n success: z.boolean().default(false).describe(\"Indicates whether the user creation was successful.\").nullable().optional(),\n visitorId: z.string().describe(\"The internal Specific visitor ID (present on success).\").nullable().optional(),\n field_errors: z.array(SpecificCreateUser_ValidationFieldErrorSchema).describe(\"Field-level validation errors if validation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if the operation failed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for user creation. Contains either success data or error information.\");\n\nexport const specificCreateUser = action(\"SPECIFIC_CREATE_USER\", {\n slug: \"specific-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user (contact) record in the Specific platform. Use when you need to add a new contact with email, name, and optional custom attributes or company association.\",\n input: SpecificCreateUserInput,\n output: SpecificCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC3I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD,EAClE,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,EAAE,OAAO,G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AAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
@@ -10,7 +10,7 @@ const SpecificDeleteCompanyAttributesOutput = zod.z.object({
10
10
  name: zod.z.string().describe("The company's name.").nullable(),
11
11
  visitorId: zod.z.string().describe("Internal Specific ID.").nullable(),
12
12
  usersCount: zod.z.number().int().describe("Number of users who belong to the company.").nullable()
13
- });
13
+ }).passthrough();
14
14
  const specificDeleteCompanyAttributes = require_action.action("SPECIFIC_DELETE_COMPANY_ATTRIBUTES", {
15
15
  slug: "specific-delete-company-attributes",
16
16
  name: "Delete Company Attributes",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput = z.object({\n keys: z.array(z.string()).describe(\"Custom field identifiers to delete from the company. Must provide at least one key.\"),\n company_id: z.string().describe(\"The unique identifier of the company to delete attributes from.\"),\n});\nexport const SpecificDeleteCompanyAttributesOutput = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n});\n\nexport const specificDeleteCompanyAttributes = action(\"SPECIFIC_DELETE_COMPANY_ATTRIBUTES\", {\n slug: \"specific-delete-company-attributes\",\n name: \"Delete Company Attributes\",\n description: \"Tool to delete specific custom field attributes from a company record. Use when you need to remove custom attributes by their keys from a company. Returns the updated company details.\",\n input: SpecificDeleteCompanyAttributesInput,\n output: SpecificDeleteCompanyAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACnG,CAAC;AACD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-company-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput = z.object({\n keys: z.array(z.string()).describe(\"Custom field identifiers to delete from the company. Must provide at least one key.\"),\n company_id: z.string().describe(\"The unique identifier of the company to delete attributes from.\"),\n});\nexport const SpecificDeleteCompanyAttributesOutput = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompanyAttributes = action(\"SPECIFIC_DELETE_COMPANY_ATTRIBUTES\", {\n slug: \"specific-delete-company-attributes\",\n name: \"Delete Company Attributes\",\n description: \"Tool to delete specific custom field attributes from a company record. Use when you need to remove custom attributes by their keys from a company. Returns the updated company details.\",\n input: SpecificDeleteCompanyAttributesInput,\n output: SpecificDeleteCompanyAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACnG,CAAC;AACD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,7 +10,7 @@ declare const SpecificDeleteCompanyAttributesOutput: z.ZodObject<{
10
10
  name: z.ZodNullable<z.ZodString>;
11
11
  visitorId: z.ZodNullable<z.ZodString>;
12
12
  usersCount: z.ZodNullable<z.ZodNumber>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const specificDeleteCompanyAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  keys: string[];
16
16
  company_id: string;
@@ -10,7 +10,7 @@ declare const SpecificDeleteCompanyAttributesOutput: z.ZodObject<{
10
10
  name: z.ZodNullable<z.ZodString>;
11
11
  visitorId: z.ZodNullable<z.ZodString>;
12
12
  usersCount: z.ZodNullable<z.ZodNumber>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const specificDeleteCompanyAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  keys: string[];
16
16
  company_id: string;
@@ -13,7 +13,7 @@ const specificDeleteCompanyAttributes = action("SPECIFIC_DELETE_COMPANY_ATTRIBUT
13
13
  name: z.string().describe("The company's name.").nullable(),
14
14
  visitorId: z.string().describe("Internal Specific ID.").nullable(),
15
15
  usersCount: z.number().int().describe("Number of users who belong to the company.").nullable()
16
- })
16
+ }).passthrough()
17
17
  });
18
18
  //#endregion
19
19
  export { specificDeleteCompanyAttributes };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company-attributes.mjs","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput = z.object({\n keys: z.array(z.string()).describe(\"Custom field identifiers to delete from the company. Must provide at least one key.\"),\n company_id: z.string().describe(\"The unique identifier of the company to delete attributes from.\"),\n});\nexport const SpecificDeleteCompanyAttributesOutput = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n});\n\nexport const specificDeleteCompanyAttributes = action(\"SPECIFIC_DELETE_COMPANY_ATTRIBUTES\", {\n slug: \"specific-delete-company-attributes\",\n name: \"Delete Company Attributes\",\n description: \"Tool to delete specific custom field attributes from a company record. Use when you need to remove custom attributes by their keys from a company. Returns the updated company details.\",\n input: SpecificDeleteCompanyAttributesInput,\n output: SpecificDeleteCompanyAttributesOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO;EAC3D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACnG,CAYS;CACP,QAZmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-company-attributes.mjs","names":[],"sources":["../../src/actions/delete-company-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyAttributesInput = z.object({\n keys: z.array(z.string()).describe(\"Custom field identifiers to delete from the company. Must provide at least one key.\"),\n company_id: z.string().describe(\"The unique identifier of the company to delete attributes from.\"),\n});\nexport const SpecificDeleteCompanyAttributesOutput = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belong to the company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompanyAttributes = action(\"SPECIFIC_DELETE_COMPANY_ATTRIBUTES\", {\n slug: \"specific-delete-company-attributes\",\n name: \"Delete Company Attributes\",\n description: \"Tool to delete specific custom field attributes from a company record. Use when you need to remove custom attributes by their keys from a company. Returns the updated company details.\",\n input: SpecificDeleteCompanyAttributesInput,\n output: SpecificDeleteCompanyAttributesOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO;EAC3D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACnG,CAYS;CACP,QAZmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -7,7 +7,7 @@ const SpecificDeleteCompanyOutput = zod.z.object({
7
7
  name: zod.z.string().describe("The name of the deleted company.").nullable(),
8
8
  visitorId: zod.z.string().describe("Internal Specific ID of the deleted company.").nullable(),
9
9
  usersCount: zod.z.number().int().describe("Number of users who belonged to the deleted company.").nullable()
10
- });
10
+ }).passthrough();
11
11
  const specificDeleteCompany = require_action.action("SPECIFIC_DELETE_COMPANY", {
12
12
  slug: "specific-delete-company",
13
13
  name: "Delete Company",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\").nullable(),\n name: z.string().describe(\"The name of the deleted company.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\").nullable(),\n});\n\nexport const specificDeleteCompany = action(\"SPECIFIC_DELETE_COMPANY\", {\n slug: \"specific-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.\",\n input: SpecificDeleteCompanyInput,\n output: SpecificDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\").nullable(),\n name: z.string().describe(\"The name of the deleted company.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompany = action(\"SPECIFIC_DELETE_COMPANY\", {\n slug: \"specific-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.\",\n input: SpecificDeleteCompanyInput,\n output: SpecificDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const SpecificDeleteCompanyOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  visitorId: z.ZodNullable<z.ZodString>;
11
11
  usersCount: z.ZodNullable<z.ZodNumber>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const specificDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  id: string;
15
15
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -9,7 +9,7 @@ declare const SpecificDeleteCompanyOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  visitorId: z.ZodNullable<z.ZodString>;
11
11
  usersCount: z.ZodNullable<z.ZodNumber>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const specificDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  id: string;
15
15
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -10,7 +10,7 @@ const specificDeleteCompany = action("SPECIFIC_DELETE_COMPANY", {
10
10
  name: z.string().describe("The name of the deleted company.").nullable(),
11
11
  visitorId: z.string().describe("Internal Specific ID of the deleted company.").nullable(),
12
12
  usersCount: z.number().int().describe("Number of users who belonged to the deleted company.").nullable()
13
- })
13
+ }).passthrough()
14
14
  });
15
15
  //#endregion
16
16
  export { specificDeleteCompany };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company.mjs","names":[],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\").nullable(),\n name: z.string().describe(\"The name of the deleted company.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\").nullable(),\n});\n\nexport const specificDeleteCompany = action(\"SPECIFIC_DELETE_COMPANY\", {\n slug: \"specific-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.\",\n input: SpecificDeleteCompanyInput,\n output: SpecificDeleteCompanyOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAYS;CACP,QAZyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-company.mjs","names":[],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteCompanyInput = z.object({\n id: z.string().describe(\"The unique identifier of the company to delete.\"),\n});\nexport const SpecificDeleteCompanyOutput = z.object({\n id: z.string().describe(\"The unique identifier of the deleted company.\").nullable(),\n name: z.string().describe(\"The name of the deleted company.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific ID of the deleted company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users who belonged to the deleted company.\").nullable(),\n}).passthrough();\n\nexport const specificDeleteCompany = action(\"SPECIFIC_DELETE_COMPANY\", {\n slug: \"specific-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company record from the Specific platform. Use when you need to remove a company by its ID. The operation is permanent and returns the deleted company's details.\",\n input: SpecificDeleteCompanyInput,\n output: SpecificDeleteCompanyOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAYS;CACP,QAZyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -11,16 +11,16 @@ const SpecificDeleteUserAttributesInput = zod.z.object({
11
11
  const SpecificDeleteUserAttributes_CompanySchema = zod.z.object({
12
12
  id: zod.z.string().describe("Company ID").nullable().optional(),
13
13
  name: zod.z.string().describe("Company name").nullable().optional()
14
- }).describe("Company information.");
14
+ }).passthrough().describe("Company information.");
15
15
  const SpecificDeleteUserAttributes_UserSchema = zod.z.object({
16
16
  id: zod.z.string().describe("Contact's ID").nullable(),
17
17
  name: zod.z.string().describe("Contact's name").nullable(),
18
18
  email: zod.z.string().describe("Contact's email").nullable().optional(),
19
19
  company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),
20
20
  visitorId: zod.z.string().describe("Internal Specific ID").nullable()
21
- }).describe("User/Contact information returned after deleting attributes.");
22
- const SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = zod.z.object({ deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable() }).describe("Wrapper for the deleteUserAttributes data response.");
23
- const SpecificDeleteUserAttributesOutput = zod.z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).describe("Response model for deleteUserAttributes mutation.");
21
+ }).passthrough().describe("User/Contact information returned after deleting attributes.");
22
+ const SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = zod.z.object({ deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable() }).passthrough().describe("Wrapper for the deleteUserAttributes data response.");
23
+ const SpecificDeleteUserAttributesOutput = zod.z.object({ data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable() }).passthrough().describe("Response model for deleteUserAttributes mutation.");
24
24
  const specificDeleteUserAttributes = require_action.action("SPECIFIC_DELETE_USER_ATTRIBUTES", {
25
25
  slug: "specific-delete-user-attributes",
26
26
  name: "Delete User Attributes",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserAttributesInput = z.object({\n data: z.object({\n keys: z.array(z.string()).describe(\"A non-empty array of strings representing the custom field keys to be removed from the user record.\"),\n}).describe(\"Specifies which custom field attributes to delete from the user record.\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by. At least one of id or email must be provided.\").optional(),\n email: z.string().describe(\"Contact email to filter by. At least one of id or email must be provided.\").optional(),\n}).describe(\"Filter to identify which contact to delete attributes from (by id or email).\"),\n}).describe(\"Request model for deleting user attributes in Specific.\");\nconst SpecificDeleteUserAttributes_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).describe(\"Company information.\");\nconst SpecificDeleteUserAttributes_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).describe(\"User/Contact information returned after deleting attributes.\");\nconst SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = z.object({\n deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable(),\n}).describe(\"Wrapper for the deleteUserAttributes data response.\");\nexport const SpecificDeleteUserAttributesOutput = z.object({\n data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable(),\n}).describe(\"Response model for deleteUserAttributes mutation.\");\n\nexport const specificDeleteUserAttributes = action(\"SPECIFIC_DELETE_USER_ATTRIBUTES\", {\n slug: \"specific-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Tool to delete specific custom field attributes from a user record in the Specific platform. Use when you need to remove custom field values from a contact without deleting the contact itself.\",\n input: SpecificDeleteUserAttributesInput,\n output: SpecificDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,EACf,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qGAAqG,EAC1I,CAAC,CAAC,CAAC,SAAS,yEAAyE;CACnF,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8DAA8DA,IAAAA,EAAE,OAAO,EAC3E,sBAAsB,wCAAwC,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAM,4DAA4D,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificDeleteUserAttributesInput = z.object({\n data: z.object({\n keys: z.array(z.string()).describe(\"A non-empty array of strings representing the custom field keys to be removed from the user record.\"),\n}).describe(\"Specifies which custom field attributes to delete from the user record.\"),\n where: z.object({\n id: z.string().describe(\"Contact ID to filter by. At least one of id or email must be provided.\").optional(),\n email: z.string().describe(\"Contact email to filter by. At least one of id or email must be provided.\").optional(),\n}).describe(\"Filter to identify which contact to delete attributes from (by id or email).\"),\n}).describe(\"Request model for deleting user attributes in Specific.\");\nconst SpecificDeleteUserAttributes_CompanySchema = z.object({\n id: z.string().describe(\"Company ID\").nullable().optional(),\n name: z.string().describe(\"Company name\").nullable().optional(),\n}).passthrough().describe(\"Company information.\");\nconst SpecificDeleteUserAttributes_UserSchema = z.object({\n id: z.string().describe(\"Contact's ID\").nullable(),\n name: z.string().describe(\"Contact's name\").nullable(),\n email: z.string().describe(\"Contact's email\").nullable().optional(),\n company: SpecificDeleteUserAttributes_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific ID\").nullable(),\n}).passthrough().describe(\"User/Contact information returned after deleting attributes.\");\nconst SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema = z.object({\n deleteUserAttributes: SpecificDeleteUserAttributes_UserSchema.nullable(),\n}).passthrough().describe(\"Wrapper for the deleteUserAttributes data response.\");\nexport const SpecificDeleteUserAttributesOutput = z.object({\n data: SpecificDeleteUserAttributes_DeleteUserAttributesDataSchema.nullable(),\n}).passthrough().describe(\"Response model for deleteUserAttributes mutation.\");\n\nexport const specificDeleteUserAttributes = action(\"SPECIFIC_DELETE_USER_ATTRIBUTES\", {\n slug: \"specific-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Tool to delete specific custom field attributes from a user record in the Specific platform. Use when you need to remove custom field values from a contact without deleting the contact itself.\",\n input: SpecificDeleteUserAttributesInput,\n output: SpecificDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,EACf,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qGAAqG,EAC1I,CAAC,CAAC,CAAC,SAAS,yEAAyE;CACnF,OAAOA,IAAAA,EAAE,OAAO;EAChB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAM,0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