@keystrokehq/refiner 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/delete-contact.cjs +1 -1
  4. package/dist/actions/delete-contact.cjs.map +1 -1
  5. package/dist/actions/delete-contact.d.cts +11 -3
  6. package/dist/actions/delete-contact.d.cts.map +1 -1
  7. package/dist/actions/delete-contact.d.mts +11 -3
  8. package/dist/actions/delete-contact.d.mts.map +1 -1
  9. package/dist/actions/delete-contact.mjs +1 -1
  10. package/dist/actions/delete-contact.mjs.map +1 -1
  11. package/dist/actions/get-account-info.cjs +18 -18
  12. package/dist/actions/get-account-info.cjs.map +1 -1
  13. package/dist/actions/get-account-info.d.cts +26 -3
  14. package/dist/actions/get-account-info.d.cts.map +1 -1
  15. package/dist/actions/get-account-info.d.mts +26 -3
  16. package/dist/actions/get-account-info.d.mts.map +1 -1
  17. package/dist/actions/get-account-info.mjs +18 -18
  18. package/dist/actions/get-account-info.mjs.map +1 -1
  19. package/dist/actions/get-contact.cjs +8 -8
  20. package/dist/actions/get-contact.cjs.map +1 -1
  21. package/dist/actions/get-contact.d.cts +32 -3
  22. package/dist/actions/get-contact.d.cts.map +1 -1
  23. package/dist/actions/get-contact.d.mts +32 -3
  24. package/dist/actions/get-contact.d.mts.map +1 -1
  25. package/dist/actions/get-contact.mjs +8 -8
  26. package/dist/actions/get-contact.mjs.map +1 -1
  27. package/dist/actions/get-contacts.cjs +6 -6
  28. package/dist/actions/get-contacts.cjs.map +1 -1
  29. package/dist/actions/get-contacts.d.cts +57 -3
  30. package/dist/actions/get-contacts.d.cts.map +1 -1
  31. package/dist/actions/get-contacts.d.mts +57 -3
  32. package/dist/actions/get-contacts.d.mts.map +1 -1
  33. package/dist/actions/get-contacts.mjs +6 -6
  34. package/dist/actions/get-contacts.mjs.map +1 -1
  35. package/dist/actions/get-forms.cjs +6 -6
  36. package/dist/actions/get-forms.cjs.map +1 -1
  37. package/dist/actions/get-forms.d.cts +45 -3
  38. package/dist/actions/get-forms.d.cts.map +1 -1
  39. package/dist/actions/get-forms.d.mts +45 -3
  40. package/dist/actions/get-forms.d.mts.map +1 -1
  41. package/dist/actions/get-forms.mjs +6 -6
  42. package/dist/actions/get-forms.mjs.map +1 -1
  43. package/dist/actions/get-reporting.cjs +2 -2
  44. package/dist/actions/get-reporting.cjs.map +1 -1
  45. package/dist/actions/get-reporting.d.cts +37 -3
  46. package/dist/actions/get-reporting.d.cts.map +1 -1
  47. package/dist/actions/get-reporting.d.mts +37 -3
  48. package/dist/actions/get-reporting.d.mts.map +1 -1
  49. package/dist/actions/get-reporting.mjs +2 -2
  50. package/dist/actions/get-reporting.mjs.map +1 -1
  51. package/dist/actions/get-responses.cjs +17 -17
  52. package/dist/actions/get-responses.cjs.map +1 -1
  53. package/dist/actions/get-responses.d.cts +69 -3
  54. package/dist/actions/get-responses.d.cts.map +1 -1
  55. package/dist/actions/get-responses.d.mts +69 -3
  56. package/dist/actions/get-responses.d.mts.map +1 -1
  57. package/dist/actions/get-responses.mjs +17 -17
  58. package/dist/actions/get-responses.mjs.map +1 -1
  59. package/dist/actions/get-segments.cjs +7 -7
  60. package/dist/actions/get-segments.cjs.map +1 -1
  61. package/dist/actions/get-segments.d.cts +24 -3
  62. package/dist/actions/get-segments.d.cts.map +1 -1
  63. package/dist/actions/get-segments.d.mts +24 -3
  64. package/dist/actions/get-segments.d.mts.map +1 -1
  65. package/dist/actions/get-segments.mjs +7 -7
  66. package/dist/actions/get-segments.mjs.map +1 -1
  67. package/dist/actions/track-event.cjs +1 -1
  68. package/dist/actions/track-event.cjs.map +1 -1
  69. package/dist/actions/track-event.d.cts +13 -3
  70. package/dist/actions/track-event.d.cts.map +1 -1
  71. package/dist/actions/track-event.d.mts +13 -3
  72. package/dist/actions/track-event.d.mts.map +1 -1
  73. package/dist/actions/track-event.mjs +1 -1
  74. package/dist/actions/track-event.mjs.map +1 -1
  75. package/dist/actions/update-contact.cjs +2 -2
  76. package/dist/actions/update-contact.cjs.map +1 -1
  77. package/dist/actions/update-contact.d.cts +22 -3
  78. package/dist/actions/update-contact.d.cts.map +1 -1
  79. package/dist/actions/update-contact.d.mts +22 -3
  80. package/dist/actions/update-contact.d.mts.map +1 -1
  81. package/dist/actions/update-contact.mjs +2 -2
  82. package/dist/actions/update-contact.mjs.map +1 -1
  83. package/dist/catalog.cjs +7 -1
  84. package/dist/catalog.cjs.map +1 -1
  85. package/dist/catalog.d.cts +8 -0
  86. package/dist/catalog.d.mts +8 -0
  87. package/dist/catalog.mjs +7 -1
  88. package/dist/catalog.mjs.map +1 -1
  89. package/package.json +2 -2
@@ -1,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-reporting.d.ts
4
- declare const RefinerGetReportingInput: z.ZodTypeAny;
5
- declare const RefinerGetReportingOutput: z.ZodTypeAny;
6
- declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetReportingInput: z.ZodObject<{
5
+ type: z.ZodEnum<{
6
+ nps: "nps";
7
+ csat: "csat";
8
+ ratings: "ratings";
9
+ distribution: "distribution";
10
+ count: "count";
11
+ }>;
12
+ tag_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ date_range_end: z.ZodOptional<z.ZodString>;
16
+ date_range_start: z.ZodOptional<z.ZodString>;
17
+ question_identifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const RefinerGetReportingOutput: z.ZodObject<{
20
+ nps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ sum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ csat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodUnknown>]>>>;
24
+ count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ views: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ responses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ datapoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ date_range_end: z.ZodNullable<z.ZodString>;
30
+ date_range_start: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>;
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]>;
7
41
  //#endregion
8
42
  export { refinerGetReporting };
9
43
  //# 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,EAA0B,CAAA,CAAE,UAQW;AAAA,cACvC,yBAAA,EAA2B,CAAA,CAAE,UAYO;AAAA,cAEpC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-reporting.d.ts
4
- declare const RefinerGetReportingInput: z.ZodTypeAny;
5
- declare const RefinerGetReportingOutput: z.ZodTypeAny;
6
- declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetReportingInput: z.ZodObject<{
5
+ type: z.ZodEnum<{
6
+ nps: "nps";
7
+ csat: "csat";
8
+ ratings: "ratings";
9
+ distribution: "distribution";
10
+ count: "count";
11
+ }>;
12
+ tag_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ date_range_end: z.ZodOptional<z.ZodString>;
16
+ date_range_start: z.ZodOptional<z.ZodString>;
17
+ question_identifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const RefinerGetReportingOutput: z.ZodObject<{
20
+ nps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ sum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ csat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodUnknown>]>>>;
24
+ count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ views: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ responses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ datapoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ date_range_end: z.ZodNullable<z.ZodString>;
30
+ date_range_start: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>;
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]>;
7
41
  //#endregion
8
42
  export { refinerGetReporting };
9
43
  //# 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,EAA0B,CAAA,CAAE,UAQW;AAAA,cACvC,yBAAA,EAA2B,CAAA,CAAE,UAYO;AAAA,cAEpC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -29,8 +29,8 @@ const refinerGetReporting = action("REFINER_GET_REPORTING", {
29
29
  average: z.number().describe("Average rating value (only for 'ratings' report).").nullable().optional(),
30
30
  responses: z.number().int().describe("Number of responses (only for 'distribution' report).").nullable().optional(),
31
31
  datapoints: z.number().int().describe("Number of total data points considered (only for 'distribution' report).").nullable().optional(),
32
- date_range_end: z.string().describe("End of the date range for the report (ISO8601 format)."),
33
- date_range_start: z.string().describe("Start of the date range for the report (ISO8601 format).")
32
+ date_range_end: z.string().describe("End of the date range for the report (ISO8601 format).").nullable(),
33
+ date_range_start: z.string().describe("Start of the date range for the report (ISO8601 format).").nullable()
34
34
  }).describe("Response schema for GET_REPORTING.")
35
35
  });
36
36
  //#endregion
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.object({}), 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).\"),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\"),\n}).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,OA3BoD,EAAE,OAAO;EAC7D,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAW;GAAgB;EAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;EACrK,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EACpL,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;EACzL,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EAC1J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SA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C,CAAC,SAAS,0DAA0D;CAClG,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
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.object({}), 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}).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;EAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;EACrK,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EACpL,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;EACzL,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EAC1J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EACnK,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACjP,CAAC,CAAC,CAAC,SAAS,uCAmBH;CACP,QAnBuC,EAAE,OAAO;EAChD,KAAK,E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) for last_data_reception_at.").optional()
21
21
  }).describe("Parameters to filter, search, and paginate survey responses.");
22
22
  const RefinerGetResponses_FormInfoSchema = zod.z.object({
23
- name: zod.z.string().describe("Survey form name."),
24
- uuid: zod.z.string().describe("Survey form UUID.")
23
+ name: zod.z.string().describe("Survey form name.").nullable(),
24
+ uuid: zod.z.string().describe("Survey form UUID.").nullable()
25
25
  });
26
26
  const RefinerGetResponses_AccountInfoSchema = zod.z.object({
27
- uuid: zod.z.string().describe("Account UUID."),
27
+ uuid: zod.z.string().describe("Account UUID.").nullable(),
28
28
  domain: zod.z.string().describe("Account domain if available.").nullable().optional(),
29
- remote_id: zod.z.string().describe("External account ID."),
30
- display_name: zod.z.string().describe("Account display name.")
29
+ remote_id: zod.z.string().describe("External account ID.").nullable(),
30
+ display_name: zod.z.string().describe("Account display name.").nullable()
31
31
  });
32
32
  const RefinerGetResponses_ContactInfoSchema = zod.z.object({
33
- uuid: zod.z.string().describe("Contact UUID."),
34
- email: zod.z.string().describe("Contact email address."),
33
+ uuid: zod.z.string().describe("Contact UUID.").nullable(),
34
+ email: zod.z.string().describe("Contact email address.").nullable(),
35
35
  account: RefinerGetResponses_AccountInfoSchema.nullable(),
36
- remote_id: zod.z.string().describe("External user ID."),
37
- display_name: zod.z.string().describe("Contact display name.")
36
+ remote_id: zod.z.string().describe("External user ID.").nullable(),
37
+ display_name: zod.z.string().describe("Contact display name.").nullable()
38
38
  });
39
39
  const RefinerGetResponses_ResponseItemSchema = zod.z.object({
40
40
  data: zod.z.object({}).describe("Survey answers keyed by question identifiers."),
41
41
  form: RefinerGetResponses_FormInfoSchema.nullable(),
42
- uuid: zod.z.string().describe("Response UUID."),
42
+ uuid: zod.z.string().describe("Response UUID.").nullable(),
43
43
  contact: RefinerGetResponses_ContactInfoSchema.nullable(),
44
- received_at: zod.z.string().describe("Timestamp when response was received."),
45
- completed_at: zod.z.string().describe("Timestamp when survey was completed."),
44
+ received_at: zod.z.string().describe("Timestamp when response was received.").nullable(),
45
+ completed_at: zod.z.string().describe("Timestamp when survey was completed.").nullable(),
46
46
  dismissed_at: zod.z.string().describe("Timestamp when survey was dismissed, if any.").nullable().optional(),
47
- show_counter: zod.z.number().int().describe("Number of times the survey was shown."),
48
- last_shown_at: zod.z.string().describe("Timestamp when survey was last shown."),
49
- first_shown_at: zod.z.string().describe("Timestamp when survey was first shown."),
50
- last_data_reception_at: zod.z.string().describe("Timestamp when data was last received."),
51
- first_data_reception_at: zod.z.string().describe("Timestamp when data was first received.")
47
+ show_counter: zod.z.number().int().describe("Number of times the survey was shown.").nullable(),
48
+ last_shown_at: zod.z.string().describe("Timestamp when survey was last shown.").nullable(),
49
+ first_shown_at: zod.z.string().describe("Timestamp when survey was first shown.").nullable(),
50
+ last_data_reception_at: zod.z.string().describe("Timestamp when data was last received.").nullable(),
51
+ first_data_reception_at: zod.z.string().describe("Timestamp when data was first received.").nullable()
52
52
  });
53
53
  const RefinerGetResponses_PaginationSchema = zod.z.object({
54
54
  last_page: zod.z.number().int().describe("Last page number.").nullable().optional(),
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Survey form name.\"),\n uuid: z.string().describe(\"Survey form UUID.\"),\n});\nconst RefinerGetResponses_AccountInfoSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Account UUID.\"),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\"),\n display_name: z.string().describe(\"Account display name.\"),\n});\nconst RefinerGetResponses_ContactInfoSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Contact UUID.\"),\n email: z.string().describe(\"Contact email address.\"),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\"),\n display_name: z.string().describe(\"Contact display name.\"),\n});\nconst RefinerGetResponses_ResponseItemSchema: z.ZodTypeAny = z.object({\n data: z.object({}).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\"),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\"),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\"),\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.\"),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\"),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\"),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\"),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\"),\n});\nconst RefinerGetResponses_PaginationSchema: z.ZodTypeAny = 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});\nexport const RefinerGetResponsesOutput: z.ZodTypeAny = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n});\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,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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AAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,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;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;CAC3F,YAAY,qCAAqC,SAAS;AAC5D,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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});\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});\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});\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.object({}).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});\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});\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n});\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,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,aAAaA,IAA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AACnG,CAAC;AACD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,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;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;CAC3F,YAAY,qCAAqC,SAAS;AAC5D,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,75 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-responses.d.ts
4
- declare const RefinerGetResponsesInput: z.ZodTypeAny;
5
- declare const RefinerGetResponsesOutput: z.ZodTypeAny;
6
- declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetResponsesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ search: z.ZodOptional<z.ZodString>;
7
+ include: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ all: "all";
9
+ completed: "completed";
10
+ partials: "partials";
11
+ }>>>;
12
+ form_uuid: z.ZodOptional<z.ZodString>;
13
+ form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ page_cursor: z.ZodOptional<z.ZodString>;
15
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
16
+ segment_uuid: z.ZodOptional<z.ZodString>;
17
+ segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ date_range_end: z.ZodOptional<z.ZodString>;
19
+ with_attributes: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
20
+ date_range_start: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const RefinerGetResponsesOutput: z.ZodObject<{
23
+ items: z.ZodArray<z.ZodObject<{
24
+ data: z.ZodObject<{}, z.core.$strip>;
25
+ form: z.ZodNullable<z.ZodObject<{
26
+ name: z.ZodNullable<z.ZodString>;
27
+ uuid: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ uuid: z.ZodNullable<z.ZodString>;
30
+ contact: z.ZodNullable<z.ZodObject<{
31
+ uuid: z.ZodNullable<z.ZodString>;
32
+ email: z.ZodNullable<z.ZodString>;
33
+ account: z.ZodNullable<z.ZodObject<{
34
+ uuid: z.ZodNullable<z.ZodString>;
35
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ remote_id: z.ZodNullable<z.ZodString>;
37
+ display_name: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ remote_id: z.ZodNullable<z.ZodString>;
40
+ display_name: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ received_at: z.ZodNullable<z.ZodString>;
43
+ completed_at: z.ZodNullable<z.ZodString>;
44
+ dismissed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ show_counter: z.ZodNullable<z.ZodNumber>;
46
+ last_shown_at: z.ZodNullable<z.ZodString>;
47
+ first_shown_at: z.ZodNullable<z.ZodString>;
48
+ last_data_reception_at: z.ZodNullable<z.ZodString>;
49
+ first_data_reception_at: z.ZodNullable<z.ZodString>;
50
+ }, z.core.$strip>>;
51
+ pagination: z.ZodNullable<z.ZodObject<{
52
+ last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
+ items_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
+ page_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
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]>;
7
73
  //#endregion
8
74
  export { refinerGetResponses };
9
75
  //# 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,EAA0B,CAAA,CAAE,UAakC;AAAA,cAuC9D,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,75 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-responses.d.ts
4
- declare const RefinerGetResponsesInput: z.ZodTypeAny;
5
- declare const RefinerGetResponsesOutput: z.ZodTypeAny;
6
- declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetResponsesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ search: z.ZodOptional<z.ZodString>;
7
+ include: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ all: "all";
9
+ completed: "completed";
10
+ partials: "partials";
11
+ }>>>;
12
+ form_uuid: z.ZodOptional<z.ZodString>;
13
+ form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ page_cursor: z.ZodOptional<z.ZodString>;
15
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
16
+ segment_uuid: z.ZodOptional<z.ZodString>;
17
+ segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ date_range_end: z.ZodOptional<z.ZodString>;
19
+ with_attributes: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
20
+ date_range_start: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const RefinerGetResponsesOutput: z.ZodObject<{
23
+ items: z.ZodArray<z.ZodObject<{
24
+ data: z.ZodObject<{}, z.core.$strip>;
25
+ form: z.ZodNullable<z.ZodObject<{
26
+ name: z.ZodNullable<z.ZodString>;
27
+ uuid: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ uuid: z.ZodNullable<z.ZodString>;
30
+ contact: z.ZodNullable<z.ZodObject<{
31
+ uuid: z.ZodNullable<z.ZodString>;
32
+ email: z.ZodNullable<z.ZodString>;
33
+ account: z.ZodNullable<z.ZodObject<{
34
+ uuid: z.ZodNullable<z.ZodString>;
35
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ remote_id: z.ZodNullable<z.ZodString>;
37
+ display_name: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ remote_id: z.ZodNullable<z.ZodString>;
40
+ display_name: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ received_at: z.ZodNullable<z.ZodString>;
43
+ completed_at: z.ZodNullable<z.ZodString>;
44
+ dismissed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ show_counter: z.ZodNullable<z.ZodNumber>;
46
+ last_shown_at: z.ZodNullable<z.ZodString>;
47
+ first_shown_at: z.ZodNullable<z.ZodString>;
48
+ last_data_reception_at: z.ZodNullable<z.ZodString>;
49
+ first_data_reception_at: z.ZodNullable<z.ZodString>;
50
+ }, z.core.$strip>>;
51
+ pagination: z.ZodNullable<z.ZodObject<{
52
+ last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
+ items_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
+ page_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
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]>;
7
73
  //#endregion
8
74
  export { refinerGetResponses };
9
75
  //# 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,EAA0B,CAAA,CAAE,UAakC;AAAA,cAuC9D,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -20,35 +20,35 @@ const RefinerGetResponsesInput = z.object({
20
20
  date_range_start: z.string().describe("ISO-8601 start date (inclusive) for last_data_reception_at.").optional()
21
21
  }).describe("Parameters to filter, search, and paginate survey responses.");
22
22
  const RefinerGetResponses_FormInfoSchema = z.object({
23
- name: z.string().describe("Survey form name."),
24
- uuid: z.string().describe("Survey form UUID.")
23
+ name: z.string().describe("Survey form name.").nullable(),
24
+ uuid: z.string().describe("Survey form UUID.").nullable()
25
25
  });
26
26
  const RefinerGetResponses_AccountInfoSchema = z.object({
27
- uuid: z.string().describe("Account UUID."),
27
+ uuid: z.string().describe("Account UUID.").nullable(),
28
28
  domain: z.string().describe("Account domain if available.").nullable().optional(),
29
- remote_id: z.string().describe("External account ID."),
30
- display_name: z.string().describe("Account display name.")
29
+ remote_id: z.string().describe("External account ID.").nullable(),
30
+ display_name: z.string().describe("Account display name.").nullable()
31
31
  });
32
32
  const RefinerGetResponses_ContactInfoSchema = z.object({
33
- uuid: z.string().describe("Contact UUID."),
34
- email: z.string().describe("Contact email address."),
33
+ uuid: z.string().describe("Contact UUID.").nullable(),
34
+ email: z.string().describe("Contact email address.").nullable(),
35
35
  account: RefinerGetResponses_AccountInfoSchema.nullable(),
36
- remote_id: z.string().describe("External user ID."),
37
- display_name: z.string().describe("Contact display name.")
36
+ remote_id: z.string().describe("External user ID.").nullable(),
37
+ display_name: z.string().describe("Contact display name.").nullable()
38
38
  });
39
39
  const RefinerGetResponses_ResponseItemSchema = z.object({
40
40
  data: z.object({}).describe("Survey answers keyed by question identifiers."),
41
41
  form: RefinerGetResponses_FormInfoSchema.nullable(),
42
- uuid: z.string().describe("Response UUID."),
42
+ uuid: z.string().describe("Response UUID.").nullable(),
43
43
  contact: RefinerGetResponses_ContactInfoSchema.nullable(),
44
- received_at: z.string().describe("Timestamp when response was received."),
45
- completed_at: z.string().describe("Timestamp when survey was completed."),
44
+ received_at: z.string().describe("Timestamp when response was received.").nullable(),
45
+ completed_at: z.string().describe("Timestamp when survey was completed.").nullable(),
46
46
  dismissed_at: z.string().describe("Timestamp when survey was dismissed, if any.").nullable().optional(),
47
- show_counter: z.number().int().describe("Number of times the survey was shown."),
48
- last_shown_at: z.string().describe("Timestamp when survey was last shown."),
49
- first_shown_at: z.string().describe("Timestamp when survey was first shown."),
50
- last_data_reception_at: z.string().describe("Timestamp when data was last received."),
51
- first_data_reception_at: z.string().describe("Timestamp when data was first received.")
47
+ show_counter: z.number().int().describe("Number of times the survey was shown.").nullable(),
48
+ last_shown_at: z.string().describe("Timestamp when survey was last shown.").nullable(),
49
+ first_shown_at: z.string().describe("Timestamp when survey was first shown.").nullable(),
50
+ last_data_reception_at: z.string().describe("Timestamp when data was last received.").nullable(),
51
+ first_data_reception_at: z.string().describe("Timestamp when data was first received.").nullable()
52
52
  });
53
53
  const RefinerGetResponses_PaginationSchema = z.object({
54
54
  last_page: z.number().int().describe("Last page number.").nullable().optional(),
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Survey form name.\"),\n uuid: z.string().describe(\"Survey form UUID.\"),\n});\nconst RefinerGetResponses_AccountInfoSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Account UUID.\"),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\"),\n display_name: z.string().describe(\"Account display name.\"),\n});\nconst RefinerGetResponses_ContactInfoSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Contact UUID.\"),\n email: z.string().describe(\"Contact email address.\"),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\"),\n display_name: z.string().describe(\"Contact display name.\"),\n});\nconst RefinerGetResponses_ResponseItemSchema: z.ZodTypeAny = z.object({\n data: z.object({}).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\"),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\"),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\"),\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.\"),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\"),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\"),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\"),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\"),\n});\nconst RefinerGetResponses_PaginationSchema: z.ZodTypeAny = 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});\nexport const RefinerGetResponsesOutput: z.ZodTypeAny = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n});\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,2BAAyC,EAAE,OAAO;CAC7D,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,0DAA0D,CAAC,CAAC,SAAS;CACrJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAChI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAChH,CAA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AAuC;CAC1E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC5E,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACpF,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACxF,CAAC;AACD,MAAM,uCAAqD,EAAE,OAAO;CAClE,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;AAMD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;EAC3F,YAAY,qCAAqC,SAAS;CAC5D,CAOU;AACV,CAAC"}
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});\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});\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});\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.object({}).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});\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});\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n});\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,0DAA0D,CA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AACnG,CAAC;AACD,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;AAMD,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,CAOU;AACV,CAAC"}
@@ -7,15 +7,15 @@ const RefinerGetSegmentsInput = zod.z.object({
7
7
  page_length: zod.z.number().int().default(50).describe("Number of items per page (max 1000).").optional()
8
8
  }).describe("Query parameters for retrieving user segments.");
9
9
  const RefinerGetSegments_SegmentItemSchema = zod.z.object({
10
- name: zod.z.string().describe("Segment name."),
11
- uuid: zod.z.string().describe("Unique segment identifier."),
12
- is_manual: zod.z.boolean().describe("Whether the segment is manual.")
10
+ name: zod.z.string().describe("Segment name.").nullable(),
11
+ uuid: zod.z.string().describe("Unique segment identifier.").nullable(),
12
+ is_manual: zod.z.boolean().describe("Whether the segment is manual.").nullable()
13
13
  });
14
14
  const RefinerGetSegments_PaginationSchema = zod.z.object({
15
- last_page: zod.z.number().int().describe("Last available page number."),
16
- items_count: zod.z.number().int().describe("Total number of items."),
17
- page_length: zod.z.number().int().describe("Number of items per page."),
18
- current_page: zod.z.number().int().describe("Current page number."),
15
+ last_page: zod.z.number().int().describe("Last available page number.").nullable(),
16
+ items_count: zod.z.number().int().describe("Total number of items.").nullable(),
17
+ page_length: zod.z.number().int().describe("Number of items per page.").nullable(),
18
+ current_page: zod.z.number().int().describe("Current page number.").nullable(),
19
19
  next_page_cursor: zod.z.string().describe("Cursor for the next page, if any.").nullable().optional()
20
20
  });
21
21
  const RefinerGetSegmentsOutput = zod.z.object({
@@ -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.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Segment name.\"),\n uuid: z.string().describe(\"Unique segment identifier.\"),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\"),\n});\nconst RefinerGetSegments_PaginationSchema: z.ZodTypeAny = z.object({\n last_page: z.number().int().describe(\"Last available page number.\"),\n items_count: z.number().int().describe(\"Total number of items.\"),\n page_length: z.number().int().describe(\"Number of items per page.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetSegmentsOutput: z.ZodTypeAny = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;AAClE,CAAC;AACD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CAC9D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;CACjF,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n});\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mBAAmB;CACjF,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-segments.d.ts
4
- declare const RefinerGetSegmentsInput: z.ZodTypeAny;
5
- declare const RefinerGetSegmentsOutput: z.ZodTypeAny;
6
- declare const refinerGetSegments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetSegmentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ page_cursor: z.ZodOptional<z.ZodString>;
7
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const RefinerGetSegmentsOutput: z.ZodObject<{
10
+ items: z.ZodArray<z.ZodObject<{
11
+ name: z.ZodNullable<z.ZodString>;
12
+ uuid: z.ZodNullable<z.ZodString>;
13
+ is_manual: z.ZodNullable<z.ZodBoolean>;
14
+ }, z.core.$strip>>;
15
+ pagination: z.ZodNullable<z.ZodObject<{
16
+ last_page: z.ZodNullable<z.ZodNumber>;
17
+ items_count: z.ZodNullable<z.ZodNumber>;
18
+ page_length: z.ZodNullable<z.ZodNumber>;
19
+ current_page: z.ZodNullable<z.ZodNumber>;
20
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>;
23
+ declare const refinerGetSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ page?: number | undefined;
25
+ page_cursor?: string | undefined;
26
+ page_length?: number | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { refinerGetSegments };
9
30
  //# sourceMappingURL=get-segments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-segments.d.cts","names":[],"sources":["../../src/actions/get-segments.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAIqB;AAAA,cAahD,wBAAA,EAA0B,CAAA,CAAE,UAG4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-segments.d.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"}