@keystrokehq/refiner 0.1.4 → 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 -4
  6. package/dist/actions/delete-contact.d.cts.map +1 -1
  7. package/dist/actions/delete-contact.d.mts +3 -4
  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 -1
  14. package/dist/actions/get-account-info.d.cts.map +1 -1
  15. package/dist/actions/get-account-info.d.mts +3 -1
  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 -5
  22. package/dist/actions/get-contact.d.cts.map +1 -1
  23. package/dist/actions/get-contact.d.mts +3 -5
  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 -10
  30. package/dist/actions/get-contacts.d.cts.map +1 -1
  31. package/dist/actions/get-contacts.d.mts +4 -10
  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 -7
  38. package/dist/actions/get-forms.d.cts.map +1 -1
  39. package/dist/actions/get-forms.d.mts +3 -7
  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 -9
  46. package/dist/actions/get-reporting.d.cts.map +1 -1
  47. package/dist/actions/get-reporting.d.mts +3 -9
  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 +3 -14
  54. package/dist/actions/get-responses.d.cts.map +1 -1
  55. package/dist/actions/get-responses.d.mts +3 -14
  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 -5
  62. package/dist/actions/get-segments.d.cts.map +1 -1
  63. package/dist/actions/get-segments.d.mts +3 -5
  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 -5
  70. package/dist/actions/track-event.d.cts.map +1 -1
  71. package/dist/actions/track-event.d.mts +3 -5
  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 -10
  78. package/dist/actions/update-contact.d.cts.map +1 -1
  79. package/dist/actions/update-contact.d.mts +3 -10
  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 +5 -2
  84. package/dist/app.cjs.map +1 -1
  85. package/dist/app.d.cts +7 -1
  86. package/dist/app.d.cts.map +1 -1
  87. package/dist/app.d.mts +7 -1
  88. package/dist/app.d.mts.map +1 -1
  89. package/dist/app.mjs +3 -2
  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.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-forms.d.ts
@@ -39,13 +41,7 @@ declare const RefinerGetFormsOutput: z.ZodObject<{
39
41
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
42
  }, z.core.$loose>>;
41
43
  }, z.core.$loose>;
42
- declare const refinerGetForms: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- list?: "all" | "published" | "drafts" | "archived" | "all_with_archived" | undefined;
44
- page?: number | undefined;
45
- page_length?: number | undefined;
46
- include_info?: boolean | undefined;
47
- include_config?: boolean | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
44
+ declare const refinerGetForms: AppAction<typeof RefinerGetFormsInput, typeof RefinerGetFormsOutput, typeof refiner.credential>;
49
45
  //#endregion
50
46
  export { refinerGetForms };
51
47
  //# sourceMappingURL=get-forms.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-forms.d.mts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA8BpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
1
+ {"version":3,"file":"get-forms.d.mts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA8BpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,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-forms.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-forms.mjs","names":[],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_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 forms.\").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 fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,KAAK;EAAC;EAAO;EAAa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OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmC,EAAE,OAAO;EAC5C,OAAO,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,mCAAmC;EAC3F,YAAY,iCAAiC,SAAS;CACxD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-forms.mjs","names":[],"sources":["../../src/actions/get-forms.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 RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_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 forms.\").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 fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms: AppAction<\n typeof RefinerGetFormsInput,\n typeof RefinerGetFormsOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY;CAAmB,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAClN,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,S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od");
3
4
  //#region src/actions/get-reporting.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-reporting.cjs","names":["z","action"],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAW;EAAgB;CAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;CACrK,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACpL,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACzL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC1J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACnK,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;AACjP,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,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BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-reporting.cjs","names":["z","action"],"sources":["../../src/actions/get-reporting.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 RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting: AppAction<\n typeof RefinerGetReportingInput,\n typeof RefinerGetReportingOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAW;EAAgB;CAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;CACrK,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACpL,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAA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;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/get-reporting.d.ts
@@ -29,15 +31,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
29
31
  date_range_end: z.ZodNullable<z.ZodString>;
30
32
  date_range_start: z.ZodNullable<z.ZodString>;
31
33
  }, z.core.$loose>;
32
- declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<{
33
- type: "nps" | "csat" | "ratings" | "distribution" | "count";
34
- tag_uuids?: string[] | undefined;
35
- form_uuids?: string[] | undefined;
36
- segment_uuids?: string[] | undefined;
37
- date_range_end?: string | undefined;
38
- date_range_start?: string | undefined;
39
- question_identifiers?: string[] | undefined;
40
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ declare const refinerGetReporting: AppAction<typeof RefinerGetReportingInput, typeof RefinerGetReportingOutput, typeof refiner.credential>;
41
35
  //#endregion
42
36
  export { refinerGetReporting };
43
37
  //# sourceMappingURL=get-reporting.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-reporting.d.cts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-reporting.d.cts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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-reporting.d.ts
@@ -29,15 +31,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
29
31
  date_range_end: z.ZodNullable<z.ZodString>;
30
32
  date_range_start: z.ZodNullable<z.ZodString>;
31
33
  }, z.core.$loose>;
32
- declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<{
33
- type: "nps" | "csat" | "ratings" | "distribution" | "count";
34
- tag_uuids?: string[] | undefined;
35
- form_uuids?: string[] | undefined;
36
- segment_uuids?: string[] | undefined;
37
- date_range_end?: string | undefined;
38
- date_range_start?: string | undefined;
39
- question_identifiers?: string[] | undefined;
40
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ declare const refinerGetReporting: AppAction<typeof RefinerGetReportingInput, typeof RefinerGetReportingOutput, typeof refiner.credential>;
41
35
  //#endregion
42
36
  export { refinerGetReporting };
43
37
  //# sourceMappingURL=get-reporting.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-reporting.d.mts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-reporting.d.mts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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 refinerGetReporting = action("REFINER_GET_REPORTING", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-reporting.mjs","names":[],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;AA2BA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BsC,EAAE,OAAO;EAC/C,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAW;GAAgB;EA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AC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-reporting.mjs","names":[],"sources":["../../src/actions/get-reporting.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 RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting: AppAction<\n typeof RefinerGetReportingInput,\n typeof RefinerGetReportingOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;;AA6BA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BsC,EAAE,OAAO;EAC/C,MAAM,EAAE,KAAK;GAAC;GAAO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AC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAWhB;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/get-responses.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-responses.cjs","names":["z","action"],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAY;CAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,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cesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses: AppAction<\n typeof RefinerGetResponsesInput,\n typeof RefinerGetResponsesOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming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AC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;CAC3F,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/get-responses.d.ts
@@ -56,20 +58,7 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
56
58
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
59
  }, z.core.$loose>>;
58
60
  }, z.core.$loose>;
59
- declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
60
- page?: number | undefined;
61
- search?: string | undefined;
62
- include?: "all" | "completed" | "partials" | undefined;
63
- form_uuid?: string | undefined;
64
- form_uuids?: string[] | undefined;
65
- page_cursor?: string | undefined;
66
- page_length?: number | undefined;
67
- segment_uuid?: string | undefined;
68
- segment_uuids?: string[] | undefined;
69
- date_range_end?: string | undefined;
70
- with_attributes?: boolean | undefined;
71
- date_range_start?: string | undefined;
72
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
61
+ declare const refinerGetResponses: AppAction<typeof RefinerGetResponsesInput, typeof RefinerGetResponsesOutput, typeof refiner.credential>;
73
62
  //#endregion
74
63
  export { refinerGetResponses };
75
64
  //# sourceMappingURL=get-responses.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-responses.d.cts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-responses.d.cts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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-responses.d.ts
@@ -56,20 +58,7 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
56
58
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
59
  }, z.core.$loose>>;
58
60
  }, z.core.$loose>;
59
- declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
60
- page?: number | undefined;
61
- search?: string | undefined;
62
- include?: "all" | "completed" | "partials" | undefined;
63
- form_uuid?: string | undefined;
64
- form_uuids?: string[] | undefined;
65
- page_cursor?: string | undefined;
66
- page_length?: number | undefined;
67
- segment_uuid?: string | undefined;
68
- segment_uuids?: string[] | undefined;
69
- date_range_end?: string | undefined;
70
- with_attributes?: boolean | undefined;
71
- date_range_start?: string | undefined;
72
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
61
+ declare const refinerGetResponses: AppAction<typeof RefinerGetResponsesInput, typeof RefinerGetResponsesOutput, typeof refiner.credential>;
73
62
  //#endregion
74
63
  export { refinerGetResponses };
75
64
  //# sourceMappingURL=get-responses.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-responses.d.mts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-responses.d.mts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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-responses.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-responses.mjs","names":[],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,KAAK;EAAC;EAAa;EAAY;CAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS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CAAC,CAAC,SAAS;CAC/F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;EAC3F,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-responses.mjs","names":[],"sources":["../../src/actions/get-responses.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 RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses: AppAction<\n typeof RefinerGetResponsesInput,\n typeof RefinerGetResponsesOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OA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C,CAAC,CAAC,SAAS;CACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;EAC3F,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAWO;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/get-segments.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n}).passthrough();\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,S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eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import 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: Refiner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AAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;CACjF,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,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/get-segments.d.ts
@@ -20,11 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const refinerGetSegments: AppAction<typeof RefinerGetSegmentsInput, typeof RefinerGetSegmentsOutput, typeof refiner.credential>;
28
26
  //#endregion
29
27
  export { refinerGetSegments };
30
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,11 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const refinerGetSegments: AppAction<typeof RefinerGetSegmentsInput, typeof RefinerGetSegmentsOutput, typeof refiner.credential>;
28
26
  //#endregion
29
27
  export { refinerGetSegments };
30
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,MAA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C/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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AAa,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,11 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const refinerTrackEvent: AppAction<typeof RefinerTrackEventInput, typeof RefinerTrackEventOutput, typeof refiner.credential>;
17
15
  //#endregion
18
16
  export { refinerTrackEvent };
19
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,11 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const refinerTrackEvent: AppAction<typeof RefinerTrackEventInput, typeof RefinerTrackEventOutput, typeof refiner.credential>;
17
15
  //#endregion
18
16
  export { refinerTrackEvent };
19
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"}