@keystrokehq/refiner 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/delete-contact.cjs +1 -1
  4. package/dist/actions/delete-contact.cjs.map +1 -1
  5. package/dist/actions/delete-contact.d.cts +11 -3
  6. package/dist/actions/delete-contact.d.cts.map +1 -1
  7. package/dist/actions/delete-contact.d.mts +11 -3
  8. package/dist/actions/delete-contact.d.mts.map +1 -1
  9. package/dist/actions/delete-contact.mjs +1 -1
  10. package/dist/actions/delete-contact.mjs.map +1 -1
  11. package/dist/actions/get-account-info.cjs +18 -18
  12. package/dist/actions/get-account-info.cjs.map +1 -1
  13. package/dist/actions/get-account-info.d.cts +26 -3
  14. package/dist/actions/get-account-info.d.cts.map +1 -1
  15. package/dist/actions/get-account-info.d.mts +26 -3
  16. package/dist/actions/get-account-info.d.mts.map +1 -1
  17. package/dist/actions/get-account-info.mjs +18 -18
  18. package/dist/actions/get-account-info.mjs.map +1 -1
  19. package/dist/actions/get-contact.cjs +8 -8
  20. package/dist/actions/get-contact.cjs.map +1 -1
  21. package/dist/actions/get-contact.d.cts +32 -3
  22. package/dist/actions/get-contact.d.cts.map +1 -1
  23. package/dist/actions/get-contact.d.mts +32 -3
  24. package/dist/actions/get-contact.d.mts.map +1 -1
  25. package/dist/actions/get-contact.mjs +8 -8
  26. package/dist/actions/get-contact.mjs.map +1 -1
  27. package/dist/actions/get-contacts.cjs +6 -6
  28. package/dist/actions/get-contacts.cjs.map +1 -1
  29. package/dist/actions/get-contacts.d.cts +57 -3
  30. package/dist/actions/get-contacts.d.cts.map +1 -1
  31. package/dist/actions/get-contacts.d.mts +57 -3
  32. package/dist/actions/get-contacts.d.mts.map +1 -1
  33. package/dist/actions/get-contacts.mjs +6 -6
  34. package/dist/actions/get-contacts.mjs.map +1 -1
  35. package/dist/actions/get-forms.cjs +6 -6
  36. package/dist/actions/get-forms.cjs.map +1 -1
  37. package/dist/actions/get-forms.d.cts +45 -3
  38. package/dist/actions/get-forms.d.cts.map +1 -1
  39. package/dist/actions/get-forms.d.mts +45 -3
  40. package/dist/actions/get-forms.d.mts.map +1 -1
  41. package/dist/actions/get-forms.mjs +6 -6
  42. package/dist/actions/get-forms.mjs.map +1 -1
  43. package/dist/actions/get-reporting.cjs +2 -2
  44. package/dist/actions/get-reporting.cjs.map +1 -1
  45. package/dist/actions/get-reporting.d.cts +37 -3
  46. package/dist/actions/get-reporting.d.cts.map +1 -1
  47. package/dist/actions/get-reporting.d.mts +37 -3
  48. package/dist/actions/get-reporting.d.mts.map +1 -1
  49. package/dist/actions/get-reporting.mjs +2 -2
  50. package/dist/actions/get-reporting.mjs.map +1 -1
  51. package/dist/actions/get-responses.cjs +17 -17
  52. package/dist/actions/get-responses.cjs.map +1 -1
  53. package/dist/actions/get-responses.d.cts +69 -3
  54. package/dist/actions/get-responses.d.cts.map +1 -1
  55. package/dist/actions/get-responses.d.mts +69 -3
  56. package/dist/actions/get-responses.d.mts.map +1 -1
  57. package/dist/actions/get-responses.mjs +17 -17
  58. package/dist/actions/get-responses.mjs.map +1 -1
  59. package/dist/actions/get-segments.cjs +7 -7
  60. package/dist/actions/get-segments.cjs.map +1 -1
  61. package/dist/actions/get-segments.d.cts +24 -3
  62. package/dist/actions/get-segments.d.cts.map +1 -1
  63. package/dist/actions/get-segments.d.mts +24 -3
  64. package/dist/actions/get-segments.d.mts.map +1 -1
  65. package/dist/actions/get-segments.mjs +7 -7
  66. package/dist/actions/get-segments.mjs.map +1 -1
  67. package/dist/actions/track-event.cjs +1 -1
  68. package/dist/actions/track-event.cjs.map +1 -1
  69. package/dist/actions/track-event.d.cts +13 -3
  70. package/dist/actions/track-event.d.cts.map +1 -1
  71. package/dist/actions/track-event.d.mts +13 -3
  72. package/dist/actions/track-event.d.mts.map +1 -1
  73. package/dist/actions/track-event.mjs +1 -1
  74. package/dist/actions/track-event.mjs.map +1 -1
  75. package/dist/actions/update-contact.cjs +2 -2
  76. package/dist/actions/update-contact.cjs.map +1 -1
  77. package/dist/actions/update-contact.d.cts +22 -3
  78. package/dist/actions/update-contact.d.cts.map +1 -1
  79. package/dist/actions/update-contact.d.mts +22 -3
  80. package/dist/actions/update-contact.d.mts.map +1 -1
  81. package/dist/actions/update-contact.mjs +2 -2
  82. package/dist/actions/update-contact.mjs.map +1 -1
  83. package/dist/catalog.cjs +7 -1
  84. package/dist/catalog.cjs.map +1 -1
  85. package/dist/catalog.d.cts +8 -0
  86. package/dist/catalog.d.mts +8 -0
  87. package/dist/catalog.mjs +7 -1
  88. package/dist/catalog.mjs.map +1 -1
  89. package/package.json +2 -2
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-segments.d.ts
4
- declare const RefinerGetSegmentsInput: z.ZodTypeAny;
5
- declare const RefinerGetSegmentsOutput: z.ZodTypeAny;
6
- declare const refinerGetSegments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetSegmentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ page_cursor: z.ZodOptional<z.ZodString>;
7
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const RefinerGetSegmentsOutput: z.ZodObject<{
10
+ items: z.ZodArray<z.ZodObject<{
11
+ name: z.ZodNullable<z.ZodString>;
12
+ uuid: z.ZodNullable<z.ZodString>;
13
+ is_manual: z.ZodNullable<z.ZodBoolean>;
14
+ }, z.core.$strip>>;
15
+ pagination: z.ZodNullable<z.ZodObject<{
16
+ last_page: z.ZodNullable<z.ZodNumber>;
17
+ items_count: z.ZodNullable<z.ZodNumber>;
18
+ page_length: z.ZodNullable<z.ZodNumber>;
19
+ current_page: z.ZodNullable<z.ZodNumber>;
20
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>;
23
+ declare const refinerGetSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ page?: number | undefined;
25
+ page_cursor?: string | undefined;
26
+ page_length?: number | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { refinerGetSegments };
9
30
  //# sourceMappingURL=get-segments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-segments.d.mts","names":[],"sources":["../../src/actions/get-segments.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAIqB;AAAA,cAahD,wBAAA,EAA0B,CAAA,CAAE,UAG4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-segments.d.mts","names":[],"sources":["../../src/actions/get-segments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -7,15 +7,15 @@ const RefinerGetSegmentsInput = z.object({
7
7
  page_length: z.number().int().default(50).describe("Number of items per page (max 1000).").optional()
8
8
  }).describe("Query parameters for retrieving user segments.");
9
9
  const RefinerGetSegments_SegmentItemSchema = z.object({
10
- name: z.string().describe("Segment name."),
11
- uuid: z.string().describe("Unique segment identifier."),
12
- is_manual: z.boolean().describe("Whether the segment is manual.")
10
+ name: z.string().describe("Segment name.").nullable(),
11
+ uuid: z.string().describe("Unique segment identifier.").nullable(),
12
+ is_manual: z.boolean().describe("Whether the segment is manual.").nullable()
13
13
  });
14
14
  const RefinerGetSegments_PaginationSchema = z.object({
15
- last_page: z.number().int().describe("Last available page number."),
16
- items_count: z.number().int().describe("Total number of items."),
17
- page_length: z.number().int().describe("Number of items per page."),
18
- current_page: z.number().int().describe("Current page number."),
15
+ last_page: z.number().int().describe("Last available page number.").nullable(),
16
+ items_count: z.number().int().describe("Total number of items.").nullable(),
17
+ page_length: z.number().int().describe("Number of items per page.").nullable(),
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
  });
21
21
  const refinerGetSegments = action("REFINER_GET_SEGMENTS", {
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Segment name.\"),\n uuid: z.string().describe(\"Unique segment identifier.\"),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\"),\n});\nconst RefinerGetSegments_PaginationSchema: z.ZodTypeAny = z.object({\n last_page: z.number().int().describe(\"Last available page number.\"),\n items_count: z.number().int().describe(\"Total number of items.\"),\n page_length: z.number().int().describe(\"Number of items per page.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetSegmentsOutput: z.ZodTypeAny = 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,0BAAwC,EAAE,OAAO;CAC5D,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,uCAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;AAClE,CAAC;AACD,MAAM,sCAAoD,EAAE,OAAO;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAClE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAClE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CAC9D,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,QAVoD,EAAE,OAAO;EAC7D,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});\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"}
@@ -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.") }).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() }).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.ZodTypeAny = 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.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message indicating the success of the tracking operation.\"),\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,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,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}).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,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/track-event.d.ts
4
- declare const RefinerTrackEventInput: z.ZodTypeAny;
5
- declare const RefinerTrackEventOutput: z.ZodTypeAny;
6
- declare const refinerTrackEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerTrackEventInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ event: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const RefinerTrackEventOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const refinerTrackEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ event: string;
14
+ id?: string | undefined;
15
+ email?: string | undefined;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { refinerTrackEvent };
9
19
  //# sourceMappingURL=track-event.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track-event.d.cts","names":[],"sources":["../../src/actions/track-event.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIgG;AAAA,cAC1H,uBAAA,EAAyB,CAAA,CAAE,UAEsC;AAAA,cAEjE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"track-event.d.cts","names":[],"sources":["../../src/actions/track-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/track-event.d.ts
4
- declare const RefinerTrackEventInput: z.ZodTypeAny;
5
- declare const RefinerTrackEventOutput: z.ZodTypeAny;
6
- declare const refinerTrackEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerTrackEventInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ event: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const RefinerTrackEventOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const refinerTrackEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ event: string;
14
+ id?: string | undefined;
15
+ email?: string | undefined;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { refinerTrackEvent };
9
19
  //# sourceMappingURL=track-event.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track-event.d.mts","names":[],"sources":["../../src/actions/track-event.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIgG;AAAA,cAC1H,uBAAA,EAAyB,CAAA,CAAE,UAEsC;AAAA,cAEjE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"track-event.d.mts","names":[],"sources":["../../src/actions/track-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
@@ -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.") }).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() }).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.ZodTypeAny = 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.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message indicating the success of the tracking operation.\"),\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,OAbkD,EAAE,OAAO;EAC3D,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,QATmD,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,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}).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"}
@@ -8,8 +8,8 @@ const RefinerUpdateContactInput = zod.z.object({
8
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()
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
- message: zod.z.string().describe("API status message, usually 'ok'."),
12
- contact_uuid: zod.z.string().describe("Refiner-assigned UUID of the updated contact.")
11
+ message: zod.z.string().describe("API status message, usually 'ok'.").nullable(),
12
+ contact_uuid: zod.z.string().describe("Refiner-assigned UUID of the updated contact.").nullable()
13
13
  });
14
14
  const refinerUpdateContact = require_action.action("REFINER_UPDATE_CONTACT", {
15
15
  slug: "refiner-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.ZodTypeAny = 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.ZodTypeAny = z.object({\n message: z.string().describe(\"API status message, usually 'ok'.\"),\n contact_uuid: z.string().describe(\"Refiner-assigned UUID of the updated contact.\"),\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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACnF,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.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,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-contact.d.ts
4
- declare const RefinerUpdateContactInput: z.ZodTypeAny;
5
- declare const RefinerUpdateContactOutput: z.ZodTypeAny;
6
- declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerUpdateContactInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ account: z.ZodOptional<z.ZodObject<{
8
+ id: z.ZodString;
9
+ }, z.core.$loose>>;
10
+ attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ }, z.core.$loose>;
12
+ declare const RefinerUpdateContactOutput: z.ZodObject<{
13
+ message: z.ZodNullable<z.ZodString>;
14
+ contact_uuid: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ [x: string]: unknown;
18
+ id?: string | undefined;
19
+ email?: string | undefined;
20
+ account?: {
21
+ [x: string]: unknown;
22
+ id: string;
23
+ } | undefined;
24
+ attributes?: Record<string, never> | undefined;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { refinerUpdateContact };
9
28
  //# sourceMappingURL=update-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAOuE;AAAA,cACpG,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA;EAAA;;;;;;;eAM/B,MAAA;AAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-contact.d.ts
4
- declare const RefinerUpdateContactInput: z.ZodTypeAny;
5
- declare const RefinerUpdateContactOutput: z.ZodTypeAny;
6
- declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerUpdateContactInput: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ account: z.ZodOptional<z.ZodObject<{
8
+ id: z.ZodString;
9
+ }, z.core.$loose>>;
10
+ attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ }, z.core.$loose>;
12
+ declare const RefinerUpdateContactOutput: z.ZodObject<{
13
+ message: z.ZodNullable<z.ZodString>;
14
+ contact_uuid: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const refinerUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ [x: string]: unknown;
18
+ id?: string | undefined;
19
+ email?: string | undefined;
20
+ account?: {
21
+ [x: string]: unknown;
22
+ id: string;
23
+ } | undefined;
24
+ attributes?: Record<string, never> | undefined;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { refinerUpdateContact };
9
28
  //# sourceMappingURL=update-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAOuE;AAAA,cACpG,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA;EAAA;;;;;;;eAM/B,MAAA;AAAA"}
@@ -11,8 +11,8 @@ const refinerUpdateContact = action("REFINER_UPDATE_CONTACT", {
11
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()
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
- message: z.string().describe("API status message, usually 'ok'."),
15
- contact_uuid: z.string().describe("Refiner-assigned UUID of the updated contact.")
14
+ message: z.string().describe("API status message, usually 'ok'.").nullable(),
15
+ contact_uuid: z.string().describe("Refiner-assigned UUID of the updated contact.").nullable()
16
16
  })
17
17
  });
18
18
  //#endregion
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n message: z.string().describe(\"API status message, usually 'ok'.\"),\n contact_uuid: z.string().describe(\"Refiner-assigned UUID of the updated contact.\"),\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,OAjBqD,EAAE,OAAO;EAC9D,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,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACnF,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.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"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const refinerCatalog = {
7
7
  "category": "Forms & Surveys",
8
8
  "logo": "https://logos.composio.dev/api/refiner",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Refiner API Key",
13
+ "secret": true,
14
+ "description": "Your personal API key obtained from your Refiner dashboard under 'Integrations > Rest API'."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.refinerCatalog = refinerCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const refinerCatalog = {\n \"slug\": \"refiner\",\n \"name\": \"Refiner\",\n \"description\": \"Refiner is a customer feedback and survey tool designed to help businesses collect and analyze user insights.\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/refiner\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const refinerCatalog = {\n \"slug\": \"refiner\",\n \"name\": \"Refiner\",\n \"description\": \"Refiner is a customer feedback and survey tool designed to help businesses collect and analyze user insights.\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/refiner\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Refiner API Key\",\n \"secret\": true,\n \"description\": \"Your personal API key obtained from your Refiner dashboard under 'Integrations > Rest API'.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const refinerCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/refiner";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Refiner API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your personal API key obtained from your Refiner dashboard under 'Integrations > Rest API'.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { refinerCatalog };
@@ -8,6 +8,14 @@ declare const refinerCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/refiner";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Refiner API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your personal API key obtained from your Refiner dashboard under 'Integrations > Rest API'.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { refinerCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const refinerCatalog = {
7
7
  "category": "Forms & Surveys",
8
8
  "logo": "https://logos.composio.dev/api/refiner",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Refiner API Key",
13
+ "secret": true,
14
+ "description": "Your personal API key obtained from your Refiner dashboard under 'Integrations > Rest API'."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { refinerCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const refinerCatalog = {\n \"slug\": \"refiner\",\n \"name\": \"Refiner\",\n \"description\": \"Refiner is a customer feedback and survey tool designed to help businesses collect and analyze user insights.\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/refiner\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const refinerCatalog = {\n \"slug\": \"refiner\",\n \"name\": \"Refiner\",\n \"description\": \"Refiner is a customer feedback and survey tool designed to help businesses collect and analyze user insights.\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/refiner\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Refiner API Key\",\n \"secret\": true,\n \"description\": \"Your personal API key obtained from your Refiner dashboard under 'Integrations > Rest API'.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/refiner",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {