@keystrokehq/refiner 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 (61) hide show
  1. package/dist/actions/delete-contact.cjs +1 -1
  2. package/dist/actions/delete-contact.cjs.map +1 -1
  3. package/dist/actions/delete-contact.d.cts +1 -1
  4. package/dist/actions/delete-contact.d.mts +1 -1
  5. package/dist/actions/delete-contact.mjs +1 -1
  6. package/dist/actions/delete-contact.mjs.map +1 -1
  7. package/dist/actions/get-account-info.cjs +3 -3
  8. package/dist/actions/get-account-info.cjs.map +1 -1
  9. package/dist/actions/get-account-info.d.cts +3 -3
  10. package/dist/actions/get-account-info.d.mts +3 -3
  11. package/dist/actions/get-account-info.mjs +3 -3
  12. package/dist/actions/get-account-info.mjs.map +1 -1
  13. package/dist/actions/get-contact.cjs +3 -3
  14. package/dist/actions/get-contact.cjs.map +1 -1
  15. package/dist/actions/get-contact.d.cts +3 -3
  16. package/dist/actions/get-contact.d.mts +3 -3
  17. package/dist/actions/get-contact.mjs +3 -3
  18. package/dist/actions/get-contact.mjs.map +1 -1
  19. package/dist/actions/get-contacts.cjs +5 -5
  20. package/dist/actions/get-contacts.cjs.map +1 -1
  21. package/dist/actions/get-contacts.d.cts +5 -5
  22. package/dist/actions/get-contacts.d.mts +5 -5
  23. package/dist/actions/get-contacts.mjs +5 -5
  24. package/dist/actions/get-contacts.mjs.map +1 -1
  25. package/dist/actions/get-forms.cjs +3 -3
  26. package/dist/actions/get-forms.cjs.map +1 -1
  27. package/dist/actions/get-forms.d.cts +3 -3
  28. package/dist/actions/get-forms.d.mts +3 -3
  29. package/dist/actions/get-forms.mjs +3 -3
  30. package/dist/actions/get-forms.mjs.map +1 -1
  31. package/dist/actions/get-reporting.cjs +2 -2
  32. package/dist/actions/get-reporting.cjs.map +1 -1
  33. package/dist/actions/get-reporting.d.cts +2 -2
  34. package/dist/actions/get-reporting.d.mts +2 -2
  35. package/dist/actions/get-reporting.mjs +2 -2
  36. package/dist/actions/get-reporting.mjs.map +1 -1
  37. package/dist/actions/get-responses.cjs +7 -7
  38. package/dist/actions/get-responses.cjs.map +1 -1
  39. package/dist/actions/get-responses.d.cts +7 -7
  40. package/dist/actions/get-responses.d.mts +7 -7
  41. package/dist/actions/get-responses.mjs +7 -7
  42. package/dist/actions/get-responses.mjs.map +1 -1
  43. package/dist/actions/get-segments.cjs +3 -3
  44. package/dist/actions/get-segments.cjs.map +1 -1
  45. package/dist/actions/get-segments.d.cts +3 -3
  46. package/dist/actions/get-segments.d.mts +3 -3
  47. package/dist/actions/get-segments.mjs +3 -3
  48. package/dist/actions/get-segments.mjs.map +1 -1
  49. package/dist/actions/track-event.cjs +1 -1
  50. package/dist/actions/track-event.cjs.map +1 -1
  51. package/dist/actions/track-event.d.cts +1 -1
  52. package/dist/actions/track-event.d.mts +1 -1
  53. package/dist/actions/track-event.mjs +1 -1
  54. package/dist/actions/track-event.mjs.map +1 -1
  55. package/dist/actions/update-contact.cjs +2 -2
  56. package/dist/actions/update-contact.cjs.map +1 -1
  57. package/dist/actions/update-contact.d.cts +3 -3
  58. package/dist/actions/update-contact.d.mts +3 -3
  59. package/dist/actions/update-contact.mjs +2 -2
  60. package/dist/actions/update-contact.mjs.map +1 -1
  61. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n});\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;CACjF,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n}).passthrough();\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;CACjF,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,15 +11,15 @@ declare const RefinerGetSegmentsOutput: z.ZodObject<{
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  uuid: z.ZodNullable<z.ZodString>;
13
13
  is_manual: z.ZodNullable<z.ZodBoolean>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  pagination: z.ZodNullable<z.ZodObject<{
16
16
  last_page: z.ZodNullable<z.ZodNumber>;
17
17
  items_count: z.ZodNullable<z.ZodNumber>;
18
18
  page_length: z.ZodNullable<z.ZodNumber>;
19
19
  current_page: z.ZodNullable<z.ZodNumber>;
20
20
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>;
21
+ }, z.core.$loose>>;
22
+ }, z.core.$loose>;
23
23
  declare const refinerGetSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  page?: number | undefined;
25
25
  page_cursor?: string | undefined;
@@ -11,15 +11,15 @@ declare const RefinerGetSegmentsOutput: z.ZodObject<{
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  uuid: z.ZodNullable<z.ZodString>;
13
13
  is_manual: z.ZodNullable<z.ZodBoolean>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  pagination: z.ZodNullable<z.ZodObject<{
16
16
  last_page: z.ZodNullable<z.ZodNumber>;
17
17
  items_count: z.ZodNullable<z.ZodNumber>;
18
18
  page_length: z.ZodNullable<z.ZodNumber>;
19
19
  current_page: z.ZodNullable<z.ZodNumber>;
20
20
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>;
21
+ }, z.core.$loose>>;
22
+ }, z.core.$loose>;
23
23
  declare const refinerGetSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  page?: number | undefined;
25
25
  page_cursor?: string | undefined;
@@ -10,14 +10,14 @@ const RefinerGetSegments_SegmentItemSchema = z.object({
10
10
  name: z.string().describe("Segment name.").nullable(),
11
11
  uuid: z.string().describe("Unique segment identifier.").nullable(),
12
12
  is_manual: z.boolean().describe("Whether the segment is manual.").nullable()
13
- });
13
+ }).passthrough();
14
14
  const RefinerGetSegments_PaginationSchema = z.object({
15
15
  last_page: z.number().int().describe("Last available page number.").nullable(),
16
16
  items_count: z.number().int().describe("Total number of items.").nullable(),
17
17
  page_length: z.number().int().describe("Number of items per page.").nullable(),
18
18
  current_page: z.number().int().describe("Current page number.").nullable(),
19
19
  next_page_cursor: z.string().describe("Cursor for the next page, if any.").nullable().optional()
20
- });
20
+ }).passthrough();
21
21
  const refinerGetSegments = action("REFINER_GET_SEGMENTS", {
22
22
  slug: "refiner-get-segments",
23
23
  name: "Get Segments",
@@ -26,7 +26,7 @@ const refinerGetSegments = action("REFINER_GET_SEGMENTS", {
26
26
  output: z.object({
27
27
  items: z.array(RefinerGetSegments_SegmentItemSchema).describe("List of segments."),
28
28
  pagination: RefinerGetSegments_PaginationSchema.nullable()
29
- }).describe("Response model for a list of segments with pagination.")
29
+ }).passthrough().describe("Response model for a list of segments with pagination.")
30
30
  });
31
31
  //#endregion
32
32
  export { refinerGetSegments };
@@ -1 +1 @@
1
- {"version":3,"file":"get-segments.mjs","names":[],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n});\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO;CACnD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AAMD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;EACjF,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-segments.mjs","names":[],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n}).passthrough();\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsC,EAAE,OAAO;CACnD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;EACjF,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const RefinerTrackEventInput = zod.z.object({
6
6
  email: zod.z.string().describe("User email address. Required if id is not provided.").optional(),
7
7
  event: zod.z.string().describe("Name of the event to track for the specified user.")
8
8
  }).describe("Request model for TrackEvent. Provide either a user id or email address to identify the user, and a required event name.");
9
- const RefinerTrackEventOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message indicating the success of the tracking operation.").nullable() }).describe("Response model for TrackEvent. Contains a confirmation message.");
9
+ const RefinerTrackEventOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message indicating the success of the tracking operation.").nullable() }).passthrough().describe("Response model for TrackEvent. Contains a confirmation message.");
10
10
  const refinerTrackEvent = require_action.action("REFINER_TRACK_EVENT", {
11
11
  slug: "refiner-track-event",
12
12
  name: "Track Event",
@@ -1 +1 @@
1
- {"version":3,"file":"track-event.cjs","names":["z","action"],"sources":["../../src/actions/track-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerTrackEventInput = z.object({\n id: z.string().describe(\"Refiner user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n event: z.string().describe(\"Name of the event to track for the specified user.\"),\n}).describe(\"Request model for TrackEvent. Provide either a user id or email address to identify the user, and a required event name.\");\nexport const RefinerTrackEventOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the success of the tracking operation.\").nullable(),\n}).describe(\"Response model for TrackEvent. Contains a confirmation message.\");\n\nexport const refinerTrackEvent = action(\"REFINER_TRACK_EVENT\", {\n slug: \"refiner-track-event\",\n name: \"Track Event\",\n description: \"Tool to record a user event by name for a user identified via user ID or email. Use after confirming the identifier and event name.\",\n input: RefinerTrackEventInput,\n output: RefinerTrackEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACjF,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACtI,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"track-event.cjs","names":["z","action"],"sources":["../../src/actions/track-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerTrackEventInput = z.object({\n id: z.string().describe(\"Refiner user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n event: z.string().describe(\"Name of the event to track for the specified user.\"),\n}).describe(\"Request model for TrackEvent. Provide either a user id or email address to identify the user, and a required event name.\");\nexport const RefinerTrackEventOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the success of the tracking operation.\").nullable(),\n}).passthrough().describe(\"Response model for TrackEvent. Contains a confirmation message.\");\n\nexport const refinerTrackEvent = action(\"REFINER_TRACK_EVENT\", {\n slug: \"refiner-track-event\",\n name: \"Track Event\",\n description: \"Tool to record a user event by name for a user identified via user ID or email. Use after confirming the identifier and event name.\",\n input: RefinerTrackEventInput,\n output: RefinerTrackEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACjF,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACtI,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const RefinerTrackEventInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const RefinerTrackEventOutput: z.ZodObject<{
10
10
  message: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const refinerTrackEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  event: string;
14
14
  id?: string | undefined;
@@ -8,7 +8,7 @@ declare const RefinerTrackEventInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const RefinerTrackEventOutput: z.ZodObject<{
10
10
  message: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const refinerTrackEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  event: string;
14
14
  id?: string | undefined;
@@ -9,7 +9,7 @@ const refinerTrackEvent = action("REFINER_TRACK_EVENT", {
9
9
  email: z.string().describe("User email address. Required if id is not provided.").optional(),
10
10
  event: z.string().describe("Name of the event to track for the specified user.")
11
11
  }).describe("Request model for TrackEvent. Provide either a user id or email address to identify the user, and a required event name."),
12
- output: z.object({ message: z.string().describe("Confirmation message indicating the success of the tracking operation.").nullable() }).describe("Response model for TrackEvent. Contains a confirmation message.")
12
+ output: z.object({ message: z.string().describe("Confirmation message indicating the success of the tracking operation.").nullable() }).passthrough().describe("Response model for TrackEvent. Contains a confirmation message.")
13
13
  });
14
14
  //#endregion
15
15
  export { refinerTrackEvent };
@@ -1 +1 @@
1
- {"version":3,"file":"track-event.mjs","names":[],"sources":["../../src/actions/track-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerTrackEventInput = z.object({\n id: z.string().describe(\"Refiner user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n event: z.string().describe(\"Name of the event to track for the specified user.\"),\n}).describe(\"Request model for TrackEvent. Provide either a user id or email address to identify the user, and a required event name.\");\nexport const RefinerTrackEventOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the success of the tracking operation.\").nullable(),\n}).describe(\"Response model for TrackEvent. Contains a confirmation message.\");\n\nexport const refinerTrackEvent = action(\"REFINER_TRACK_EVENT\", {\n slug: \"refiner-track-event\",\n name: \"Track Event\",\n description: \"Tool to record a user event by name for a user identified via user ID or email. Use after confirming the identifier and event name.\",\n input: RefinerTrackEventInput,\n output: RefinerTrackEventOutput,\n});\n"],"mappings":";;AAaA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAboC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACjF,CAAC,CAAC,CAAC,SAAS,0HASH;CACP,QATqC,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"track-event.mjs","names":[],"sources":["../../src/actions/track-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerTrackEventInput = z.object({\n id: z.string().describe(\"Refiner user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n event: z.string().describe(\"Name of the event to track for the specified user.\"),\n}).describe(\"Request model for TrackEvent. Provide either a user id or email address to identify the user, and a required event name.\");\nexport const RefinerTrackEventOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the success of the tracking operation.\").nullable(),\n}).passthrough().describe(\"Response model for TrackEvent. Contains a confirmation message.\");\n\nexport const refinerTrackEvent = action(\"REFINER_TRACK_EVENT\", {\n slug: \"refiner-track-event\",\n name: \"Track Event\",\n description: \"Tool to record a user event by name for a user identified via user ID or email. Use after confirming the identifier and event name.\",\n input: RefinerTrackEventInput,\n output: RefinerTrackEventOutput,\n});\n"],"mappings":";;AAaA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAboC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACjF,CAAC,CAAC,CAAC,SAAS,0HASH;CACP,QATqC,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
@@ -5,12 +5,12 @@ const RefinerUpdateContactInput = zod.z.object({
5
5
  id: zod.z.string().describe("Your internal user ID. Required if email is not provided.").optional(),
6
6
  email: zod.z.string().describe("User email address. Required if id is not provided.").optional(),
7
7
  account: zod.z.object({ id: zod.z.string().describe("Account identifier to group users under.") }).passthrough().describe("Nested account object for grouping users. Must include an `id` field; additional traits allowed.").optional(),
8
- attributes: zod.z.object({}).describe("Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.").optional()
8
+ attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.").optional()
9
9
  }).passthrough().describe("Model to update a contact by `id` or `email` and set new traits or account grouping.");
10
10
  const RefinerUpdateContactOutput = zod.z.object({
11
11
  message: zod.z.string().describe("API status message, usually 'ok'.").nullable(),
12
12
  contact_uuid: zod.z.string().describe("Refiner-assigned UUID of the updated contact.").nullable()
13
- });
13
+ }).passthrough();
14
14
  const refinerUpdateContact = require_action.action("REFINER_UPDATE_CONTACT", {
15
15
  slug: "refiner-update-contact",
16
16
  name: "Update Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerUpdateContactInput = z.object({\n id: z.string().describe(\"Your internal user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n account: z.object({\n id: z.string().describe(\"Account identifier to group users under.\"),\n}).passthrough().describe(\"Nested account object for grouping users. Must include an `id` field; additional traits allowed.\").optional(),\n attributes: z.object({}).describe(\"Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.\").optional(),\n}).passthrough().describe(\"Model to update a contact by `id` or `email` and set new traits or account grouping.\");\nexport const RefinerUpdateContactOutput = z.object({\n message: z.string().describe(\"API status message, usually 'ok'.\").nullable(),\n contact_uuid: z.string().describe(\"Refiner-assigned UUID of the updated contact.\").nullable(),\n});\n\nexport const refinerUpdateContact = action(\"REFINER_UPDATE_CONTACT\", {\n slug: \"refiner-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to create or update a contact's attributes or account. Identifies a contact by `id` or `email` and updates their traits or account grouping. If the contact doesn't exist, it will be created automatically.\",\n input: RefinerUpdateContactInput,\n output: RefinerUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACrI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAChH,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerUpdateContactInput = z.object({\n id: z.string().describe(\"Your internal user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n account: z.object({\n id: z.string().describe(\"Account identifier to group users under.\"),\n}).passthrough().describe(\"Nested account object for grouping users. Must include an `id` field; additional traits allowed.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.\").optional(),\n}).passthrough().describe(\"Model to update a contact by `id` or `email` and set new traits or account grouping.\");\nexport const RefinerUpdateContactOutput = z.object({\n message: z.string().describe(\"API status message, usually 'ok'.\").nullable(),\n contact_uuid: z.string().describe(\"Refiner-assigned UUID of the updated contact.\").nullable(),\n}).passthrough();\n\nexport const refinerUpdateContact = action(\"REFINER_UPDATE_CONTACT\", {\n slug: \"refiner-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to create or update a contact's attributes or account. Identifies a contact by `id` or `email` and updates their traits or account grouping. If the contact doesn't exist, it will be created automatically.\",\n input: RefinerUpdateContactInput,\n output: RefinerUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACrI,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AAClN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAChH,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,12 +7,12 @@ declare const RefinerUpdateContactInput: z.ZodObject<{
7
7
  account: z.ZodOptional<z.ZodObject<{
8
8
  id: z.ZodString;
9
9
  }, z.core.$loose>>;
10
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
10
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
11
  }, z.core.$loose>;
12
12
  declare const RefinerUpdateContactOutput: z.ZodObject<{
13
13
  message: z.ZodNullable<z.ZodString>;
14
14
  contact_uuid: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>;
15
+ }, z.core.$loose>;
16
16
  declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  [x: string]: unknown;
18
18
  id?: string | undefined;
@@ -21,7 +21,7 @@ declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowAction
21
21
  [x: string]: unknown;
22
22
  id: string;
23
23
  } | undefined;
24
- attributes?: Record<string, never> | undefined;
24
+ attributes?: Record<string, unknown> | undefined;
25
25
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
26
  //#endregion
27
27
  export { refinerUpdateContact };
@@ -7,12 +7,12 @@ declare const RefinerUpdateContactInput: z.ZodObject<{
7
7
  account: z.ZodOptional<z.ZodObject<{
8
8
  id: z.ZodString;
9
9
  }, z.core.$loose>>;
10
- attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
10
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
11
  }, z.core.$loose>;
12
12
  declare const RefinerUpdateContactOutput: z.ZodObject<{
13
13
  message: z.ZodNullable<z.ZodString>;
14
14
  contact_uuid: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>;
15
+ }, z.core.$loose>;
16
16
  declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  [x: string]: unknown;
18
18
  id?: string | undefined;
@@ -21,7 +21,7 @@ declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowAction
21
21
  [x: string]: unknown;
22
22
  id: string;
23
23
  } | undefined;
24
- attributes?: Record<string, never> | undefined;
24
+ attributes?: Record<string, unknown> | undefined;
25
25
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
26
  //#endregion
27
27
  export { refinerUpdateContact };
@@ -8,12 +8,12 @@ const refinerUpdateContact = action("REFINER_UPDATE_CONTACT", {
8
8
  id: z.string().describe("Your internal user ID. Required if email is not provided.").optional(),
9
9
  email: z.string().describe("User email address. Required if id is not provided.").optional(),
10
10
  account: z.object({ id: z.string().describe("Account identifier to group users under.") }).passthrough().describe("Nested account object for grouping users. Must include an `id` field; additional traits allowed.").optional(),
11
- attributes: z.object({}).describe("Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.").optional()
11
+ attributes: z.record(z.string(), z.unknown()).describe("Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.").optional()
12
12
  }).passthrough().describe("Model to update a contact by `id` or `email` and set new traits or account grouping."),
13
13
  output: z.object({
14
14
  message: z.string().describe("API status message, usually 'ok'.").nullable(),
15
15
  contact_uuid: z.string().describe("Refiner-assigned UUID of the updated contact.").nullable()
16
- })
16
+ }).passthrough()
17
17
  });
18
18
  //#endregion
19
19
  export { refinerUpdateContact };
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerUpdateContactInput = z.object({\n id: z.string().describe(\"Your internal user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n account: z.object({\n id: z.string().describe(\"Account identifier to group users under.\"),\n}).passthrough().describe(\"Nested account object for grouping users. Must include an `id` field; additional traits allowed.\").optional(),\n attributes: z.object({}).describe(\"Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.\").optional(),\n}).passthrough().describe(\"Model to update a contact by `id` or `email` and set new traits or account grouping.\");\nexport const RefinerUpdateContactOutput = z.object({\n message: z.string().describe(\"API status message, usually 'ok'.\").nullable(),\n contact_uuid: z.string().describe(\"Refiner-assigned UUID of the updated contact.\").nullable(),\n});\n\nexport const refinerUpdateContact = action(\"REFINER_UPDATE_CONTACT\", {\n slug: \"refiner-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to create or update a contact's attributes or account. Identifies a contact by `id` or `email` and updates their traits or account grouping. If the contact doesn't exist, it will be created automatically.\",\n input: RefinerUpdateContactInput,\n output: RefinerUpdateContactOutput,\n});\n"],"mappings":";;AAiBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACrI,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAUjB;CACP,QAVwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerUpdateContactInput = z.object({\n id: z.string().describe(\"Your internal user ID. Required if email is not provided.\").optional(),\n email: z.string().describe(\"User email address. Required if id is not provided.\").optional(),\n account: z.object({\n id: z.string().describe(\"Account identifier to group users under.\"),\n}).passthrough().describe(\"Nested account object for grouping users. Must include an `id` field; additional traits allowed.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Traits to update (key=trait slug). Values: string (<=255 chars), integer, or boolean. Date-time strings accepted for keys ending with `_at`.\").optional(),\n}).passthrough().describe(\"Model to update a contact by `id` or `email` and set new traits or account grouping.\");\nexport const RefinerUpdateContactOutput = z.object({\n message: z.string().describe(\"API status message, usually 'ok'.\").nullable(),\n contact_uuid: z.string().describe(\"Refiner-assigned UUID of the updated contact.\").nullable(),\n}).passthrough();\n\nexport const refinerUpdateContact = action(\"REFINER_UPDATE_CONTACT\", {\n slug: \"refiner-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to create or update a contact's attributes or account. Identifies a contact by `id` or `email` and updates their traits or account grouping. If the contact doesn't exist, it will be created automatically.\",\n input: RefinerUpdateContactInput,\n output: RefinerUpdateContactOutput,\n});\n"],"mappings":";;AAiBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACrI,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAClN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAUjB;CACP,QAVwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/refiner",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"