@keystrokehq/refiner 0.1.5 → 0.1.6

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 (93) 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 -0
  4. package/dist/actions/delete-contact.cjs.map +1 -1
  5. package/dist/actions/delete-contact.d.cts +3 -16
  6. package/dist/actions/delete-contact.d.cts.map +1 -1
  7. package/dist/actions/delete-contact.d.mts +3 -16
  8. package/dist/actions/delete-contact.d.mts.map +1 -1
  9. package/dist/actions/delete-contact.mjs +1 -0
  10. package/dist/actions/delete-contact.mjs.map +1 -1
  11. package/dist/actions/get-account-info.cjs +1 -0
  12. package/dist/actions/get-account-info.cjs.map +1 -1
  13. package/dist/actions/get-account-info.d.cts +3 -13
  14. package/dist/actions/get-account-info.d.cts.map +1 -1
  15. package/dist/actions/get-account-info.d.mts +3 -13
  16. package/dist/actions/get-account-info.d.mts.map +1 -1
  17. package/dist/actions/get-account-info.mjs +1 -0
  18. package/dist/actions/get-account-info.mjs.map +1 -1
  19. package/dist/actions/get-contact.cjs +1 -0
  20. package/dist/actions/get-contact.cjs.map +1 -1
  21. package/dist/actions/get-contact.d.cts +3 -17
  22. package/dist/actions/get-contact.d.cts.map +1 -1
  23. package/dist/actions/get-contact.d.mts +3 -17
  24. package/dist/actions/get-contact.d.mts.map +1 -1
  25. package/dist/actions/get-contact.mjs +1 -0
  26. package/dist/actions/get-contact.mjs.map +1 -1
  27. package/dist/actions/get-contacts.cjs +1 -0
  28. package/dist/actions/get-contacts.cjs.map +1 -1
  29. package/dist/actions/get-contacts.d.cts +4 -22
  30. package/dist/actions/get-contacts.d.cts.map +1 -1
  31. package/dist/actions/get-contacts.d.mts +4 -22
  32. package/dist/actions/get-contacts.d.mts.map +1 -1
  33. package/dist/actions/get-contacts.mjs +1 -0
  34. package/dist/actions/get-contacts.mjs.map +1 -1
  35. package/dist/actions/get-forms.cjs +1 -0
  36. package/dist/actions/get-forms.cjs.map +1 -1
  37. package/dist/actions/get-forms.d.cts +3 -19
  38. package/dist/actions/get-forms.d.cts.map +1 -1
  39. package/dist/actions/get-forms.d.mts +3 -19
  40. package/dist/actions/get-forms.d.mts.map +1 -1
  41. package/dist/actions/get-forms.mjs +1 -0
  42. package/dist/actions/get-forms.mjs.map +1 -1
  43. package/dist/actions/get-reporting.cjs +1 -0
  44. package/dist/actions/get-reporting.cjs.map +1 -1
  45. package/dist/actions/get-reporting.d.cts +3 -21
  46. package/dist/actions/get-reporting.d.cts.map +1 -1
  47. package/dist/actions/get-reporting.d.mts +3 -21
  48. package/dist/actions/get-reporting.d.mts.map +1 -1
  49. package/dist/actions/get-reporting.mjs +1 -0
  50. package/dist/actions/get-reporting.mjs.map +1 -1
  51. package/dist/actions/get-responses.cjs +1 -0
  52. package/dist/actions/get-responses.cjs.map +1 -1
  53. package/dist/actions/get-responses.d.cts +4 -27
  54. package/dist/actions/get-responses.d.cts.map +1 -1
  55. package/dist/actions/get-responses.d.mts +4 -27
  56. package/dist/actions/get-responses.d.mts.map +1 -1
  57. package/dist/actions/get-responses.mjs +1 -0
  58. package/dist/actions/get-responses.mjs.map +1 -1
  59. package/dist/actions/get-segments.cjs +1 -0
  60. package/dist/actions/get-segments.cjs.map +1 -1
  61. package/dist/actions/get-segments.d.cts +3 -17
  62. package/dist/actions/get-segments.d.cts.map +1 -1
  63. package/dist/actions/get-segments.d.mts +3 -17
  64. package/dist/actions/get-segments.d.mts.map +1 -1
  65. package/dist/actions/get-segments.mjs +1 -0
  66. package/dist/actions/get-segments.mjs.map +1 -1
  67. package/dist/actions/track-event.cjs +1 -0
  68. package/dist/actions/track-event.cjs.map +1 -1
  69. package/dist/actions/track-event.d.cts +3 -17
  70. package/dist/actions/track-event.d.cts.map +1 -1
  71. package/dist/actions/track-event.d.mts +3 -17
  72. package/dist/actions/track-event.d.mts.map +1 -1
  73. package/dist/actions/track-event.mjs +1 -0
  74. package/dist/actions/track-event.mjs.map +1 -1
  75. package/dist/actions/update-contact.cjs +1 -0
  76. package/dist/actions/update-contact.cjs.map +1 -1
  77. package/dist/actions/update-contact.d.cts +3 -22
  78. package/dist/actions/update-contact.d.cts.map +1 -1
  79. package/dist/actions/update-contact.d.mts +3 -22
  80. package/dist/actions/update-contact.d.mts.map +1 -1
  81. package/dist/actions/update-contact.mjs +1 -0
  82. package/dist/actions/update-contact.mjs.map +1 -1
  83. package/dist/app.cjs +2 -2
  84. package/dist/app.cjs.map +1 -1
  85. package/dist/app.d.cts +4 -6
  86. package/dist/app.d.cts.map +1 -1
  87. package/dist/app.d.mts +4 -6
  88. package/dist/app.d.mts.map +1 -1
  89. package/dist/app.mjs +0 -1
  90. package/dist/app.mjs.map +1 -1
  91. package/dist/index.d.cts +1 -1
  92. package/dist/index.d.mts +1 -1
  93. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { refiner } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-segments.d.ts
@@ -20,23 +22,7 @@ declare const RefinerGetSegmentsOutput: z.ZodObject<{
20
22
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  }, z.core.$loose>>;
22
24
  }, z.core.$loose>;
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<"refiner", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>;
25
+ declare const refinerGetSegments: AppAction<typeof RefinerGetSegmentsInput, typeof RefinerGetSegmentsOutput, typeof refiner.credential>;
40
26
  //#endregion
41
27
  export { refinerGetSegments };
42
28
  //# sourceMappingURL=get-segments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-segments.d.cts","names":[],"sources":["../../src/actions/get-segments.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-segments.d.cts","names":[],"sources":["../../src/actions/get-segments.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { refiner } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-segments.d.ts
@@ -20,23 +22,7 @@ declare const RefinerGetSegmentsOutput: z.ZodObject<{
20
22
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  }, z.core.$loose>>;
22
24
  }, z.core.$loose>;
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<"refiner", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>;
25
+ declare const refinerGetSegments: AppAction<typeof RefinerGetSegmentsInput, typeof RefinerGetSegmentsOutput, typeof refiner.credential>;
40
26
  //#endregion
41
27
  export { refinerGetSegments };
42
28
  //# 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,EAAuB,CAAA,CAAA,SAAA;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-segments.d.mts","names":[],"sources":["../../src/actions/get-segments.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-segments.ts
@@ -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}).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"}
1
+ {"version":3,"file":"get-segments.mjs","names":[],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\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: AppAction<\n typeof RefinerGetSegmentsInput,\n typeof RefinerGetSegmentsOutput,\n typeof refiner.credential\n> = 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":";;;;AAMA,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,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;EACjF,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/track-event.ts
@@ -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}).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"}
1
+ {"version":3,"file":"track-event.cjs","names":["z","action"],"sources":["../../src/actions/track-event.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\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: AppAction<\n typeof RefinerTrackEventInput,\n typeof RefinerTrackEventOutput,\n typeof refiner.credential\n> = 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":";;;;AAMA,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,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { refiner } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/track-event.d.ts
@@ -9,23 +11,7 @@ declare const RefinerTrackEventInput: z.ZodObject<{
9
11
  declare const RefinerTrackEventOutput: z.ZodObject<{
10
12
  message: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>;
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<"refiner", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const refinerTrackEvent: AppAction<typeof RefinerTrackEventInput, typeof RefinerTrackEventOutput, typeof refiner.credential>;
29
15
  //#endregion
30
16
  export { refinerTrackEvent };
31
17
  //# 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,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"track-event.d.cts","names":[],"sources":["../../src/actions/track-event.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { refiner } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/track-event.d.ts
@@ -9,23 +11,7 @@ declare const RefinerTrackEventInput: z.ZodObject<{
9
11
  declare const RefinerTrackEventOutput: z.ZodObject<{
10
12
  message: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>;
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<"refiner", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const refinerTrackEvent: AppAction<typeof RefinerTrackEventInput, typeof RefinerTrackEventOutput, typeof refiner.credential>;
29
15
  //#endregion
30
16
  export { refinerTrackEvent };
31
17
  //# 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,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"track-event.d.mts","names":[],"sources":["../../src/actions/track-event.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const refinerTrackEvent = action("REFINER_TRACK_EVENT", {
@@ -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}).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"}
1
+ {"version":3,"file":"track-event.mjs","names":[],"sources":["../../src/actions/track-event.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\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: AppAction<\n typeof RefinerTrackEventInput,\n typeof RefinerTrackEventOutput,\n typeof refiner.credential\n> = 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":";;;AAeA,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBoC,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,0HAaH;CACP,QAbqC,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-contact.ts
@@ -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.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"}
1
+ {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\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: AppAction<\n typeof RefinerUpdateContactInput,\n typeof RefinerUpdateContactOutput,\n typeof refiner.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { refiner } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-contact.d.ts
@@ -13,28 +15,7 @@ declare const RefinerUpdateContactOutput: z.ZodObject<{
13
15
  message: z.ZodNullable<z.ZodString>;
14
16
  contact_uuid: z.ZodNullable<z.ZodString>;
15
17
  }, z.core.$loose>;
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, unknown> | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
18
+ declare const refinerUpdateContact: AppAction<typeof RefinerUpdateContactInput, typeof RefinerUpdateContactOutput, typeof refiner.credential>;
38
19
  //#endregion
39
20
  export { refinerUpdateContact };
40
21
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA;EAAA"}
1
+ {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { refiner } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-contact.d.ts
@@ -13,28 +15,7 @@ declare const RefinerUpdateContactOutput: z.ZodObject<{
13
15
  message: z.ZodNullable<z.ZodString>;
14
16
  contact_uuid: z.ZodNullable<z.ZodString>;
15
17
  }, z.core.$loose>;
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, unknown> | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
18
+ declare const refinerUpdateContact: AppAction<typeof RefinerUpdateContactInput, typeof RefinerUpdateContactOutput, typeof refiner.credential>;
38
19
  //#endregion
39
20
  export { refinerUpdateContact };
40
21
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA;EAAA"}
1
+ {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const refinerUpdateContact = action("REFINER_UPDATE_CONTACT", {
@@ -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.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"}
1
+ {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\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: AppAction<\n typeof RefinerUpdateContactInput,\n typeof RefinerUpdateContactOutput,\n typeof refiner.credential\n> = 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":";;;AAmBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,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,sFAcjB;CACP,QAdwC,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,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const refiner = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "refiner",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.refiner = refiner;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const refiner = defineApp({\n slug: \"refiner\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const refiner: KeystrokeApp<\"refiner\", typeof credential> = defineApp({\n slug: \"refiner\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const refiner: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const refiner: KeystrokeApp<"refiner", typeof credential>;
11
9
  //#endregion
12
10
  export { refiner };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const refiner: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const refiner: KeystrokeApp<"refiner", typeof credential>;
11
9
  //#endregion
12
10
  export { refiner };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const refiner = defineApp({
5
4
  slug: "refiner",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const refiner = defineApp({\n slug: \"refiner\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const refiner: KeystrokeApp<\"refiner\", typeof credential> = defineApp({\n slug: \"refiner\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { refiner } from "./app.cjs";
1
2
  import { refinerDeleteContact } from "./actions/delete-contact.cjs";
2
3
  import { refinerGetAccountInfo } from "./actions/get-account-info.cjs";
3
4
  import { refinerGetContact } from "./actions/get-contact.cjs";
@@ -8,6 +9,5 @@ import { refinerGetResponses } from "./actions/get-responses.cjs";
8
9
  import { refinerGetSegments } from "./actions/get-segments.cjs";
9
10
  import { refinerTrackEvent } from "./actions/track-event.cjs";
10
11
  import { refinerUpdateContact } from "./actions/update-contact.cjs";
11
- import { refiner } from "./app.cjs";
12
12
  import { refinerCatalog } from "./catalog.cjs";
13
13
  export { refiner, refinerCatalog, refinerDeleteContact, refinerGetAccountInfo, refinerGetContact, refinerGetContacts, refinerGetForms, refinerGetReporting, refinerGetResponses, refinerGetSegments, refinerTrackEvent, refinerUpdateContact };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { refiner } from "./app.mjs";
1
2
  import { refinerDeleteContact } from "./actions/delete-contact.mjs";
2
3
  import { refinerGetAccountInfo } from "./actions/get-account-info.mjs";
3
4
  import { refinerGetContact } from "./actions/get-contact.mjs";
@@ -8,6 +9,5 @@ import { refinerGetResponses } from "./actions/get-responses.mjs";
8
9
  import { refinerGetSegments } from "./actions/get-segments.mjs";
9
10
  import { refinerTrackEvent } from "./actions/track-event.mjs";
10
11
  import { refinerUpdateContact } from "./actions/update-contact.mjs";
11
- import { refiner } from "./app.mjs";
12
12
  import { refinerCatalog } from "./catalog.mjs";
13
13
  export { refiner, refinerCatalog, refinerDeleteContact, refinerGetAccountInfo, refinerGetContact, refinerGetContacts, refinerGetForms, refinerGetReporting, refinerGetResponses, refinerGetSegments, refinerTrackEvent, refinerUpdateContact };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/refiner",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
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.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {