@keystrokehq/refiner 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +21 -21
  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 +21 -21
  18. package/dist/actions/get-account-info.mjs.map +1 -1
  19. package/dist/actions/get-contact.cjs +11 -11
  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 +11 -11
  26. package/dist/actions/get-contact.mjs.map +1 -1
  27. package/dist/actions/get-contacts.cjs +11 -11
  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 +11 -11
  34. package/dist/actions/get-contacts.mjs.map +1 -1
  35. package/dist/actions/get-forms.cjs +9 -9
  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 +9 -9
  42. package/dist/actions/get-forms.mjs.map +1 -1
  43. package/dist/actions/get-reporting.cjs +4 -4
  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 +4 -4
  50. package/dist/actions/get-reporting.mjs.map +1 -1
  51. package/dist/actions/get-responses.cjs +24 -24
  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 +24 -24
  58. package/dist/actions/get-responses.mjs.map +1 -1
  59. package/dist/actions/get-segments.cjs +10 -10
  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 +10 -10
  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 +4 -4
  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 +4 -4
  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 +1 @@
1
- {"version":3,"file":"get-contact.mjs","names":[],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Your user ID used when the contact was created.\").optional(),\n uuid: z.string().describe(\"Refiner-generated UUID of the contact.\").optional(),\n email: z.string().describe(\"Email address of the contact.\").optional(),\n}).describe(\"Request model for GetContact. Provide exactly one identifier: id, email, or uuid.\");\nconst RefinerGetContact_AccountSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Account UUID\"),\n domain: z.string().describe(\"Account domain\").nullable().optional(),\n remote_id: z.string().describe(\"Your account ID\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes\").nullable().optional(),\n display_name: z.string().describe(\"Account display name\").nullable().optional(),\n last_seen_at: z.string().describe(\"When the account was last seen (ISO 8601)\"),\n first_seen_at: z.string().describe(\"When the account was first seen (ISO 8601)\"),\n});\nconst RefinerGetContact_SegmentSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Segment name\"),\n uuid: z.string().describe(\"Segment UUID\"),\n});\nexport const RefinerGetContactOutput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Contact UUID\"),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n account: RefinerGetContact_AccountSchema.nullable(),\n segments: z.array(RefinerGetContact_SegmentSchema).describe(\"Segments this contact belongs to\").nullable().optional(),\n remote_id: z.string().describe(\"Your contact ID\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"All custom attributes for this contact\").nullable().optional(),\n display_name: z.string().describe(\"Contact display name\").nullable().optional(),\n last_seen_at: z.string().describe(\"When contact was last seen (ISO 8601)\"),\n first_seen_at: z.string().describe(\"When contact was first seen (ISO 8601)\"),\n});\n\nexport const refinerGetContact = action(\"REFINER_GET_CONTACT\", {\n slug: \"refiner-get-contact\",\n name: \"Get Contact\",\n description: \"Retrieve detailed information about a specific contact using their ID, email, or UUID. Returns all stored attributes, segments, and account information.\",\n input: RefinerGetContactInput,\n output: RefinerGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,kCAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,C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import { action } from \"../action\";\n\nexport const RefinerGetContactInput = z.object({\n id: z.string().describe(\"Your user ID used when the contact was created.\").optional(),\n uuid: z.string().describe(\"Refiner-generated UUID of the contact.\").optional(),\n email: z.string().describe(\"Email address of the contact.\").optional(),\n}).describe(\"Request model for GetContact. Provide exactly one identifier: id, email, or uuid.\");\nconst RefinerGetContact_AccountSchema = z.object({\n uuid: z.string().describe(\"Account UUID\").nullable(),\n domain: z.string().describe(\"Account domain\").nullable().optional(),\n remote_id: z.string().describe(\"Your account ID\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes\").nullable().optional(),\n display_name: z.string().describe(\"Account display name\").nullable().optional(),\n last_seen_at: z.string().describe(\"When the account was last seen (ISO 8601)\").nullable(),\n first_seen_at: z.string().describe(\"When the account was first seen (ISO 8601)\").nullable(),\n}).passthrough();\nconst RefinerGetContact_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name\").nullable(),\n uuid: z.string().describe(\"Segment UUID\").nullable(),\n}).passthrough();\nexport const RefinerGetContactOutput = z.object({\n uuid: z.string().describe(\"Contact UUID\").nullable(),\n email: z.string().describe(\"Contact email address\").nullable().optional(),\n account: RefinerGetContact_AccountSchema.nullable(),\n segments: z.array(RefinerGetContact_SegmentSchema).describe(\"Segments this contact belongs to\").nullable().optional(),\n remote_id: z.string().describe(\"Your contact ID\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"All custom attributes for this contact\").nullable().optional(),\n display_name: z.string().describe(\"Contact display name\").nullable().optional(),\n last_seen_at: z.string().describe(\"When contact was last seen (ISO 8601)\").nullable(),\n first_seen_at: z.string().describe(\"When contact was first seen (ISO 8601)\").nullable(),\n}).passthrough();\n\nexport const refinerGetContact = action(\"REFINER_GET_CONTACT\", {\n slug: \"refiner-get-contact\",\n name: \"Get Contact\",\n description: \"Retrieve detailed information about a specific contact using their ID, email, or UUID. Returns all stored attributes, segments, and account information.\",\n input: RefinerGetContactInput,\n output: RefinerGetContactOut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CACP,QAjBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,gCAAgC,SAAS;EAClD,UAAU,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -15,22 +15,22 @@ const RefinerGetContactsInput = zod.z.object({
15
15
  segment_uuid: zod.z.string().describe("Filter contacts by segment UUID.").optional()
16
16
  }).describe("Query parameters for retrieving contacts list.");
17
17
  const RefinerGetContacts_AccountSchema = zod.z.object({
18
- uuid: zod.z.string().describe("Unique account identifier."),
18
+ uuid: zod.z.string().describe("Unique account identifier.").nullable(),
19
19
  domain: zod.z.string().describe("Account domain.").nullable().optional(),
20
20
  remote_id: zod.z.string().describe("Your system's identifier for the account.").nullable().optional(),
21
21
  attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional account attributes.").nullable().optional(),
22
22
  display_name: zod.z.string().describe("Display name of the account.").nullable().optional(),
23
23
  last_seen_at: zod.z.string().describe("Timestamp when the account was last seen (ISO 8601).").nullable().optional(),
24
24
  first_seen_at: zod.z.string().describe("Timestamp when the account was first seen (ISO 8601).").nullable().optional()
25
- });
25
+ }).passthrough();
26
26
  const RefinerGetContacts_SegmentSchema = zod.z.object({
27
- name: zod.z.string().describe("Segment name."),
28
- uuid: zod.z.string().describe("Unique segment identifier."),
27
+ name: zod.z.string().describe("Segment name.").nullable(),
28
+ uuid: zod.z.string().describe("Unique segment identifier.").nullable(),
29
29
  created_at: zod.z.string().describe("Timestamp when the segment was created (ISO 8601).").nullable().optional(),
30
30
  updated_at: zod.z.string().describe("Timestamp when the segment was last updated (ISO 8601).").nullable().optional()
31
- });
31
+ }).passthrough();
32
32
  const RefinerGetContacts_ContactSchema = zod.z.object({
33
- uuid: zod.z.string().describe("Unique contact identifier."),
33
+ uuid: zod.z.string().describe("Unique contact identifier.").nullable(),
34
34
  email: zod.z.string().describe("Email address of the contact.").nullable().optional(),
35
35
  account: RefinerGetContacts_AccountSchema.nullable().optional(),
36
36
  segments: zod.z.array(RefinerGetContacts_SegmentSchema).describe("List of segments the contact belongs to.").nullable().optional(),
@@ -41,18 +41,18 @@ const RefinerGetContacts_ContactSchema = zod.z.object({
41
41
  first_seen_at: zod.z.string().describe("Timestamp when the contact was first seen (ISO 8601).").nullable().optional(),
42
42
  last_tracking_event_at: zod.z.string().describe("Timestamp of the last tracking event (ISO 8601).").nullable().optional(),
43
43
  last_form_submission_at: zod.z.string().describe("Timestamp of the last form submission (ISO 8601).").nullable().optional()
44
- });
44
+ }).passthrough();
45
45
  const RefinerGetContacts_PaginationSchema = zod.z.object({
46
46
  last_page: zod.z.number().int().describe("Last available page number (null when using cursor pagination).").nullable().optional(),
47
- items_count: zod.z.number().int().describe("Total number of items."),
48
- page_length: zod.z.number().int().describe("Number of items per page."),
47
+ items_count: zod.z.number().int().describe("Total number of items.").nullable(),
48
+ page_length: zod.z.number().int().describe("Number of items per page.").nullable(),
49
49
  current_page: zod.z.number().int().describe("Current page number (null when using cursor pagination).").nullable().optional(),
50
50
  next_page_cursor: zod.z.string().describe("Cursor for the next page, if any.").nullable().optional()
51
- });
51
+ }).passthrough();
52
52
  const RefinerGetContactsOutput = zod.z.object({
53
53
  items: zod.z.array(RefinerGetContacts_ContactSchema).describe("List of contacts."),
54
54
  pagination: RefinerGetContacts_PaginationSchema.nullable()
55
- }).describe("Response model for a list of contacts with pagination.");
55
+ }).passthrough().describe("Response model for a list of contacts with pagination.");
56
56
  const refinerGetContacts = require_action.action("REFINER_GET_CONTACTS", {
57
57
  slug: "refiner-get-contacts",
58
58
  name: "Get Contacts",
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Filter by contact email, ID, or name.\").optional(),\n order_by: z.enum([\"first_seen_at\", \"last_seen_at\", \"last_form_submission_at\"]).default(\"first_seen_at\").describe(\"Order contacts by this field.\").optional(),\n form_uuid: z.string().describe(\"Filter contacts by survey UUID.\").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 segment_uuid: z.string().describe(\"Filter contacts by segment UUID.\").optional(),\n}).describe(\"Query parameters for retrieving contacts list.\");\nconst RefinerGetContacts_AccountSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique account identifier.\"),\n domain: z.string().describe(\"Account domain.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the account.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the account.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the account was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the account was first seen (ISO 8601).\").nullable().optional(),\n});\nconst RefinerGetContacts_SegmentSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Segment name.\"),\n uuid: z.string().describe(\"Unique segment identifier.\"),\n created_at: z.string().describe(\"Timestamp when the segment was created (ISO 8601).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the segment was last updated (ISO 8601).\").nullable().optional(),\n});\nconst RefinerGetContacts_ContactSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique contact identifier.\"),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n account: RefinerGetContacts_AccountSchema.nullable().optional(),\n segments: z.array(RefinerGetContacts_SegmentSchema).describe(\"List of segments the contact belongs to.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the contact.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Merged user attributes and survey responses.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the contact.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the contact was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the contact was first seen (ISO 8601).\").nullable().optional(),\n last_tracking_event_at: z.string().describe(\"Timestamp of the last tracking event (ISO 8601).\").nullable().optional(),\n last_form_submission_at: z.string().describe(\"Timestamp of the last form submission (ISO 8601).\").nullable().optional(),\n});\nconst RefinerGetContacts_PaginationSchema: z.ZodTypeAny = z.object({\n last_page: z.number().int().describe(\"Last available page number (null when using cursor pagination).\").nullable().optional(),\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 (null when using cursor pagination).\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetContactsOutput: z.ZodTypeAny = z.object({\n items: z.array(RefinerGetContacts_ContactSchema).describe(\"List of contacts.\"),\n pagination: RefinerGetContacts_PaginationSchema.nullable(),\n}).describe(\"Response model for a list of contacts with pagination.\");\n\nexport const refinerGetContacts = action(\"REFINER_GET_CONTACTS\", {\n slug: \"refiner-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a list of contacts from your Refiner account. Use when you need to filter or paginate through contacts.\",\n input: RefinerGetContactsInput,\n output: RefinerGetContactsOutput,\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,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAiB;EAAgB;CAAyB,CAAC,CAAC,CAAC,QAAQ,eAAe,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,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;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mBAAmB;CAC7E,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-contacts.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Filter by contact email, ID, or name.\").optional(),\n order_by: z.enum([\"first_seen_at\", \"last_seen_at\", \"last_form_submission_at\"]).default(\"first_seen_at\").describe(\"Order contacts by this field.\").optional(),\n form_uuid: z.string().describe(\"Filter contacts by survey UUID.\").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 segment_uuid: z.string().describe(\"Filter contacts by segment UUID.\").optional(),\n}).describe(\"Query parameters for retrieving contacts list.\");\nconst RefinerGetContacts_AccountSchema = z.object({\n uuid: z.string().describe(\"Unique account identifier.\").nullable(),\n domain: z.string().describe(\"Account domain.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the account.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the account.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the account was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the account was first seen (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the segment was created (ISO 8601).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the segment was last updated (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_ContactSchema = z.object({\n uuid: z.string().describe(\"Unique contact identifier.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n account: RefinerGetContacts_AccountSchema.nullable().optional(),\n segments: z.array(RefinerGetContacts_SegmentSchema).describe(\"List of segments the contact belongs to.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the contact.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Merged user attributes and survey responses.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the contact.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the contact was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the contact was first seen (ISO 8601).\").nullable().optional(),\n last_tracking_event_at: z.string().describe(\"Timestamp of the last tracking event (ISO 8601).\").nullable().optional(),\n last_form_submission_at: z.string().describe(\"Timestamp of the last form submission (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number (null when using cursor pagination).\").nullable().optional(),\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 (null when using cursor pagination).\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetContactsOutput = z.object({\n items: z.array(RefinerGetContacts_ContactSchema).describe(\"List of contacts.\"),\n pagination: RefinerGetContacts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of contacts with pagination.\");\n\nexport const refinerGetContacts = action(\"REFINER_GET_CONTACTS\", {\n slug: \"refiner-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a list of contacts from your Refiner account. Use when you need to filter or paginate through contacts.\",\n input: RefinerGetContactsInput,\n output: RefinerGetContactsOutput,\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,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAiB;EAAgB;CAAyB,CAAC,CAAC,CAAC,QAAQ,eAAe,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,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;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC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,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mBAAmB;CAC7E,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,63 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contacts.d.ts
4
- declare const RefinerGetContactsInput: z.ZodTypeAny;
5
- declare const RefinerGetContactsOutput: z.ZodTypeAny;
6
- declare const refinerGetContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetContactsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ search: z.ZodOptional<z.ZodString>;
7
+ order_by: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ first_seen_at: "first_seen_at";
9
+ last_seen_at: "last_seen_at";
10
+ last_form_submission_at: "last_form_submission_at";
11
+ }>>>;
12
+ form_uuid: z.ZodOptional<z.ZodString>;
13
+ page_cursor: z.ZodOptional<z.ZodString>;
14
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
+ segment_uuid: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const RefinerGetContactsOutput: z.ZodObject<{
18
+ items: z.ZodArray<z.ZodObject<{
19
+ uuid: z.ZodNullable<z.ZodString>;
20
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ uuid: z.ZodNullable<z.ZodString>;
23
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$loose>>>;
30
+ segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
+ name: z.ZodNullable<z.ZodString>;
32
+ uuid: z.ZodNullable<z.ZodString>;
33
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$loose>>>>;
36
+ remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ last_tracking_event_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ last_form_submission_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ }, z.core.$loose>>;
44
+ pagination: z.ZodNullable<z.ZodObject<{
45
+ last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ items_count: z.ZodNullable<z.ZodNumber>;
47
+ page_length: z.ZodNullable<z.ZodNumber>;
48
+ current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ }, z.core.$loose>>;
51
+ }, z.core.$loose>;
52
+ declare const refinerGetContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
53
+ page?: number | undefined;
54
+ search?: string | undefined;
55
+ order_by?: "first_seen_at" | "last_seen_at" | "last_form_submission_at" | undefined;
56
+ form_uuid?: string | undefined;
57
+ page_cursor?: string | undefined;
58
+ page_length?: number | undefined;
59
+ segment_uuid?: string | undefined;
60
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
61
  //#endregion
8
62
  export { refinerGetContacts };
9
63
  //# sourceMappingURL=get-contacts.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts.d.cts","names":[],"sources":["../../src/actions/get-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQqB;AAAA,cAoChD,wBAAA,EAA0B,CAAA,CAAE,UAG4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contacts.d.cts","names":[],"sources":["../../src/actions/get-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4CvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,63 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contacts.d.ts
4
- declare const RefinerGetContactsInput: z.ZodTypeAny;
5
- declare const RefinerGetContactsOutput: z.ZodTypeAny;
6
- declare const refinerGetContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetContactsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ search: z.ZodOptional<z.ZodString>;
7
+ order_by: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ first_seen_at: "first_seen_at";
9
+ last_seen_at: "last_seen_at";
10
+ last_form_submission_at: "last_form_submission_at";
11
+ }>>>;
12
+ form_uuid: z.ZodOptional<z.ZodString>;
13
+ page_cursor: z.ZodOptional<z.ZodString>;
14
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
+ segment_uuid: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const RefinerGetContactsOutput: z.ZodObject<{
18
+ items: z.ZodArray<z.ZodObject<{
19
+ uuid: z.ZodNullable<z.ZodString>;
20
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ uuid: z.ZodNullable<z.ZodString>;
23
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$loose>>>;
30
+ segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
+ name: z.ZodNullable<z.ZodString>;
32
+ uuid: z.ZodNullable<z.ZodString>;
33
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$loose>>>>;
36
+ remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ last_tracking_event_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ last_form_submission_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ }, z.core.$loose>>;
44
+ pagination: z.ZodNullable<z.ZodObject<{
45
+ last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ items_count: z.ZodNullable<z.ZodNumber>;
47
+ page_length: z.ZodNullable<z.ZodNumber>;
48
+ current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ }, z.core.$loose>>;
51
+ }, z.core.$loose>;
52
+ declare const refinerGetContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
53
+ page?: number | undefined;
54
+ search?: string | undefined;
55
+ order_by?: "first_seen_at" | "last_seen_at" | "last_form_submission_at" | undefined;
56
+ form_uuid?: string | undefined;
57
+ page_cursor?: string | undefined;
58
+ page_length?: number | undefined;
59
+ segment_uuid?: string | undefined;
60
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
61
  //#endregion
8
62
  export { refinerGetContacts };
9
63
  //# sourceMappingURL=get-contacts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts.d.mts","names":[],"sources":["../../src/actions/get-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQqB;AAAA,cAoChD,wBAAA,EAA0B,CAAA,CAAE,UAG4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contacts.d.mts","names":[],"sources":["../../src/actions/get-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4CvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -15,22 +15,22 @@ const RefinerGetContactsInput = z.object({
15
15
  segment_uuid: z.string().describe("Filter contacts by segment UUID.").optional()
16
16
  }).describe("Query parameters for retrieving contacts list.");
17
17
  const RefinerGetContacts_AccountSchema = z.object({
18
- uuid: z.string().describe("Unique account identifier."),
18
+ uuid: z.string().describe("Unique account identifier.").nullable(),
19
19
  domain: z.string().describe("Account domain.").nullable().optional(),
20
20
  remote_id: z.string().describe("Your system's identifier for the account.").nullable().optional(),
21
21
  attributes: z.record(z.string(), z.unknown()).describe("Additional account attributes.").nullable().optional(),
22
22
  display_name: z.string().describe("Display name of the account.").nullable().optional(),
23
23
  last_seen_at: z.string().describe("Timestamp when the account was last seen (ISO 8601).").nullable().optional(),
24
24
  first_seen_at: z.string().describe("Timestamp when the account was first seen (ISO 8601).").nullable().optional()
25
- });
25
+ }).passthrough();
26
26
  const RefinerGetContacts_SegmentSchema = z.object({
27
- name: z.string().describe("Segment name."),
28
- uuid: z.string().describe("Unique segment identifier."),
27
+ name: z.string().describe("Segment name.").nullable(),
28
+ uuid: z.string().describe("Unique segment identifier.").nullable(),
29
29
  created_at: z.string().describe("Timestamp when the segment was created (ISO 8601).").nullable().optional(),
30
30
  updated_at: z.string().describe("Timestamp when the segment was last updated (ISO 8601).").nullable().optional()
31
- });
31
+ }).passthrough();
32
32
  const RefinerGetContacts_ContactSchema = z.object({
33
- uuid: z.string().describe("Unique contact identifier."),
33
+ uuid: z.string().describe("Unique contact identifier.").nullable(),
34
34
  email: z.string().describe("Email address of the contact.").nullable().optional(),
35
35
  account: RefinerGetContacts_AccountSchema.nullable().optional(),
36
36
  segments: z.array(RefinerGetContacts_SegmentSchema).describe("List of segments the contact belongs to.").nullable().optional(),
@@ -41,14 +41,14 @@ const RefinerGetContacts_ContactSchema = z.object({
41
41
  first_seen_at: z.string().describe("Timestamp when the contact was first seen (ISO 8601).").nullable().optional(),
42
42
  last_tracking_event_at: z.string().describe("Timestamp of the last tracking event (ISO 8601).").nullable().optional(),
43
43
  last_form_submission_at: z.string().describe("Timestamp of the last form submission (ISO 8601).").nullable().optional()
44
- });
44
+ }).passthrough();
45
45
  const RefinerGetContacts_PaginationSchema = z.object({
46
46
  last_page: z.number().int().describe("Last available page number (null when using cursor pagination).").nullable().optional(),
47
- items_count: z.number().int().describe("Total number of items."),
48
- page_length: z.number().int().describe("Number of items per page."),
47
+ items_count: z.number().int().describe("Total number of items.").nullable(),
48
+ page_length: z.number().int().describe("Number of items per page.").nullable(),
49
49
  current_page: z.number().int().describe("Current page number (null when using cursor pagination).").nullable().optional(),
50
50
  next_page_cursor: z.string().describe("Cursor for the next page, if any.").nullable().optional()
51
- });
51
+ }).passthrough();
52
52
  const refinerGetContacts = action("REFINER_GET_CONTACTS", {
53
53
  slug: "refiner-get-contacts",
54
54
  name: "Get Contacts",
@@ -57,7 +57,7 @@ const refinerGetContacts = action("REFINER_GET_CONTACTS", {
57
57
  output: z.object({
58
58
  items: z.array(RefinerGetContacts_ContactSchema).describe("List of contacts."),
59
59
  pagination: RefinerGetContacts_PaginationSchema.nullable()
60
- }).describe("Response model for a list of contacts with pagination.")
60
+ }).passthrough().describe("Response model for a list of contacts with pagination.")
61
61
  });
62
62
  //#endregion
63
63
  export { refinerGetContacts };
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts.mjs","names":[],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Filter by contact email, ID, or name.\").optional(),\n order_by: z.enum([\"first_seen_at\", \"last_seen_at\", \"last_form_submission_at\"]).default(\"first_seen_at\").describe(\"Order contacts by this field.\").optional(),\n form_uuid: z.string().describe(\"Filter contacts by survey UUID.\").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 segment_uuid: z.string().describe(\"Filter contacts by segment UUID.\").optional(),\n}).describe(\"Query parameters for retrieving contacts list.\");\nconst RefinerGetContacts_AccountSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique account identifier.\"),\n domain: z.string().describe(\"Account domain.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the account.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the account.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the account was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the account was first seen (ISO 8601).\").nullable().optional(),\n});\nconst RefinerGetContacts_SegmentSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Segment name.\"),\n uuid: z.string().describe(\"Unique segment identifier.\"),\n created_at: z.string().describe(\"Timestamp when the segment was created (ISO 8601).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the segment was last updated (ISO 8601).\").nullable().optional(),\n});\nconst RefinerGetContacts_ContactSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique contact identifier.\"),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n account: RefinerGetContacts_AccountSchema.nullable().optional(),\n segments: z.array(RefinerGetContacts_SegmentSchema).describe(\"List of segments the contact belongs to.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the contact.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Merged user attributes and survey responses.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the contact.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the contact was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the contact was first seen (ISO 8601).\").nullable().optional(),\n last_tracking_event_at: z.string().describe(\"Timestamp of the last tracking event (ISO 8601).\").nullable().optional(),\n last_form_submission_at: z.string().describe(\"Timestamp of the last form submission (ISO 8601).\").nullable().optional(),\n});\nconst RefinerGetContacts_PaginationSchema: z.ZodTypeAny = z.object({\n last_page: z.number().int().describe(\"Last available page number (null when using cursor pagination).\").nullable().optional(),\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 (null when using cursor pagination).\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n});\nexport const RefinerGetContactsOutput: z.ZodTypeAny = z.object({\n items: z.array(RefinerGetContacts_ContactSchema).describe(\"List of contacts.\"),\n pagination: RefinerGetContacts_PaginationSchema.nullable(),\n}).describe(\"Response model for a list of contacts with pagination.\");\n\nexport const refinerGetContacts = action(\"REFINER_GET_CONTACTS\", {\n slug: \"refiner-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a list of contacts from your Refiner account. Use when you need to filter or paginate through contacts.\",\n input: RefinerGetContactsInput,\n output: RefinerGetContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,KAAK;EAAC;EAAiB;EAAgB;CAAyB,CAAC,CAAC,CAAC,QAAQ,eAAe,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAA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a,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAClE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AAMD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mBAAmB;EAC7E,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-contacts.mjs","names":[],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Filter by contact email, ID, or name.\").optional(),\n order_by: z.enum([\"first_seen_at\", \"last_seen_at\", \"last_form_submission_at\"]).default(\"first_seen_at\").describe(\"Order contacts by this field.\").optional(),\n form_uuid: z.string().describe(\"Filter contacts by survey UUID.\").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 segment_uuid: z.string().describe(\"Filter contacts by segment UUID.\").optional(),\n}).describe(\"Query parameters for retrieving contacts list.\");\nconst RefinerGetContacts_AccountSchema = z.object({\n uuid: z.string().describe(\"Unique account identifier.\").nullable(),\n domain: z.string().describe(\"Account domain.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the account.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the account.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the account was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the account was first seen (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the segment was created (ISO 8601).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the segment was last updated (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_ContactSchema = z.object({\n uuid: z.string().describe(\"Unique contact identifier.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n account: RefinerGetContacts_AccountSchema.nullable().optional(),\n segments: z.array(RefinerGetContacts_SegmentSchema).describe(\"List of segments the contact belongs to.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the contact.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Merged user attributes and survey responses.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the contact.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the contact was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the contact was first seen (ISO 8601).\").nullable().optional(),\n last_tracking_event_at: z.string().describe(\"Timestamp of the last tracking event (ISO 8601).\").nullable().optional(),\n last_form_submission_at: z.string().describe(\"Timestamp of the last form submission (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number (null when using cursor pagination).\").nullable().optional(),\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 (null when using cursor pagination).\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetContactsOutput = z.object({\n items: z.array(RefinerGetContacts_ContactSchema).describe(\"List of contacts.\"),\n pagination: RefinerGetContacts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of contacts with pagination.\");\n\nexport const refinerGetContacts = action(\"REFINER_GET_CONTACTS\", {\n slug: \"refiner-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a list of contacts from your Refiner account. Use when you need to filter or paginate through contacts.\",\n input: RefinerGetContactsInput,\n output: RefinerGetContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,KAAK;EAAC;EAAiB;EAAgB;CAAyB,CAAC,CAAC,CAAC,QAAQ,eAAe,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,S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CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mBAAmB;EAC7E,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -15,8 +15,8 @@ const RefinerGetFormsInput = zod.z.object({
15
15
  include_config: zod.z.boolean().default(false).describe("If True, include full survey configuration and elements.").optional()
16
16
  }).describe("Query parameters for retrieving the list of forms with filters and pagination.");
17
17
  const RefinerGetForms_FormItemSchema = zod.z.object({
18
- name: zod.z.string().describe("Name of the form."),
19
- uuid: zod.z.string().describe("Unique identifier of the form."),
18
+ name: zod.z.string().describe("Name of the form.").nullable(),
19
+ uuid: zod.z.string().describe("Unique identifier of the form.").nullable(),
20
20
  config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Raw configuration of the survey, present if include_config is True.").nullable().optional(),
21
21
  folder: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Folder object or identifier this form belongs to, if any.").nullable().optional(),
22
22
  channels: zod.z.array(zod.z.string()).describe("Distribution channels available.").nullable().optional(),
@@ -29,18 +29,18 @@ const RefinerGetForms_FormItemSchema = zod.z.object({
29
29
  responses_count: zod.z.number().int().describe("Number of responses received.").nullable().optional(),
30
30
  last_form_view_at: zod.z.string().describe("Timestamp of last form view.").nullable().optional(),
31
31
  first_form_view_at: zod.z.string().describe("Timestamp of first form view.").nullable().optional()
32
- });
32
+ }).passthrough();
33
33
  const RefinerGetForms_PaginationSchema = zod.z.object({
34
- last_page: zod.z.number().int().describe("Last available page number."),
35
- items_count: zod.z.number().int().describe("Total number of forms."),
36
- page_length: zod.z.number().int().describe("Number of items per page."),
37
- current_page: zod.z.number().int().describe("Current page number."),
34
+ last_page: zod.z.number().int().describe("Last available page number.").nullable(),
35
+ items_count: zod.z.number().int().describe("Total number of forms.").nullable(),
36
+ page_length: zod.z.number().int().describe("Number of items per page.").nullable(),
37
+ current_page: zod.z.number().int().describe("Current page number.").nullable(),
38
38
  next_page_cursor: zod.z.string().describe("Cursor for fetching the next page, if available.").nullable().optional()
39
- });
39
+ }).passthrough();
40
40
  const RefinerGetFormsOutput = zod.z.object({
41
41
  items: zod.z.array(RefinerGetForms_FormItemSchema).describe("List of forms matching the query."),
42
42
  pagination: RefinerGetForms_PaginationSchema.nullable()
43
- });
43
+ }).passthrough();
44
44
  const refinerGetForms = require_action.action("REFINER_GET_FORMS", {
45
45
  slug: "refiner-get-forms",
46
46
  name: "Get Forms",
@@ -1 +1 @@
1
- {"version":3,"file":"get-forms.cjs","names":["z","action"],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the form.\"),\n uuid: z.string().describe(\"Unique identifier of the form.\"),\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});\nconst RefinerGetForms_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 forms.\"),\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 fetching the next page, if available.\").nullable().optional(),\n});\nexport const RefinerGetFormsOutput: z.ZodTypeAny = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n});\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,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY;CAAmB,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAClN,MAAMA,IAAAA,EAAE,OAAO,CAAC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,OAAOA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,mCAAmC;CAC3F,YAAY,iCAAiC,SAAS;AACxD,CAAC;AAED,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-forms.cjs","names":["z","action"],"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,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY;CAAmB,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAClN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,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YAAY;AAEf,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-forms.d.ts
4
- declare const RefinerGetFormsInput: z.ZodTypeAny;
5
- declare const RefinerGetFormsOutput: z.ZodTypeAny;
6
- declare const refinerGetForms: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetFormsInput: z.ZodObject<{
5
+ list: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ all: "all";
7
+ published: "published";
8
+ drafts: "drafts";
9
+ archived: "archived";
10
+ all_with_archived: "all_with_archived";
11
+ }>>>;
12
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ include_info: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ include_config: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
+ }, z.core.$strip>;
17
+ declare const RefinerGetFormsOutput: z.ZodObject<{
18
+ items: z.ZodArray<z.ZodObject<{
19
+ name: z.ZodNullable<z.ZodString>;
20
+ uuid: z.ZodNullable<z.ZodString>;
21
+ config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
22
+ folder: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ channels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
+ page_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ views_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ responses_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ last_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ first_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$loose>>;
34
+ pagination: z.ZodNullable<z.ZodObject<{
35
+ last_page: z.ZodNullable<z.ZodNumber>;
36
+ items_count: z.ZodNullable<z.ZodNumber>;
37
+ page_length: z.ZodNullable<z.ZodNumber>;
38
+ current_page: z.ZodNullable<z.ZodNumber>;
39
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>;
41
+ }, 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]>;
7
49
  //#endregion
8
50
  export { refinerGetForms };
9
51
  //# sourceMappingURL=get-forms.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-forms.d.cts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAMwD;AAAA,cAwBhF,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-forms.d.cts","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,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-forms.d.ts
4
- declare const RefinerGetFormsInput: z.ZodTypeAny;
5
- declare const RefinerGetFormsOutput: z.ZodTypeAny;
6
- declare const refinerGetForms: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RefinerGetFormsInput: z.ZodObject<{
5
+ list: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ all: "all";
7
+ published: "published";
8
+ drafts: "drafts";
9
+ archived: "archived";
10
+ all_with_archived: "all_with_archived";
11
+ }>>>;
12
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ include_info: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ include_config: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
+ }, z.core.$strip>;
17
+ declare const RefinerGetFormsOutput: z.ZodObject<{
18
+ items: z.ZodArray<z.ZodObject<{
19
+ name: z.ZodNullable<z.ZodString>;
20
+ uuid: z.ZodNullable<z.ZodString>;
21
+ config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
22
+ folder: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ channels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
+ page_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ views_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ responses_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ last_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ first_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$loose>>;
34
+ pagination: z.ZodNullable<z.ZodObject<{
35
+ last_page: z.ZodNullable<z.ZodNumber>;
36
+ items_count: z.ZodNullable<z.ZodNumber>;
37
+ page_length: z.ZodNullable<z.ZodNumber>;
38
+ current_page: z.ZodNullable<z.ZodNumber>;
39
+ next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>;
41
+ }, 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]>;
7
49
  //#endregion
8
50
  export { refinerGetForms };
9
51
  //# 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,EAAsB,CAAA,CAAE,UAMwD;AAAA,cAwBhF,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -15,8 +15,8 @@ const RefinerGetFormsInput = z.object({
15
15
  include_config: z.boolean().default(false).describe("If True, include full survey configuration and elements.").optional()
16
16
  }).describe("Query parameters for retrieving the list of forms with filters and pagination.");
17
17
  const RefinerGetForms_FormItemSchema = z.object({
18
- name: z.string().describe("Name of the form."),
19
- uuid: z.string().describe("Unique identifier of the form."),
18
+ name: z.string().describe("Name of the form.").nullable(),
19
+ uuid: z.string().describe("Unique identifier of the form.").nullable(),
20
20
  config: z.record(z.string(), z.unknown()).describe("Raw configuration of the survey, present if include_config is True.").nullable().optional(),
21
21
  folder: z.record(z.string(), z.unknown()).describe("Folder object or identifier this form belongs to, if any.").nullable().optional(),
22
22
  channels: z.array(z.string()).describe("Distribution channels available.").nullable().optional(),
@@ -29,14 +29,14 @@ const RefinerGetForms_FormItemSchema = z.object({
29
29
  responses_count: z.number().int().describe("Number of responses received.").nullable().optional(),
30
30
  last_form_view_at: z.string().describe("Timestamp of last form view.").nullable().optional(),
31
31
  first_form_view_at: z.string().describe("Timestamp of first form view.").nullable().optional()
32
- });
32
+ }).passthrough();
33
33
  const RefinerGetForms_PaginationSchema = z.object({
34
- last_page: z.number().int().describe("Last available page number."),
35
- items_count: z.number().int().describe("Total number of forms."),
36
- page_length: z.number().int().describe("Number of items per page."),
37
- current_page: z.number().int().describe("Current page number."),
34
+ last_page: z.number().int().describe("Last available page number.").nullable(),
35
+ items_count: z.number().int().describe("Total number of forms.").nullable(),
36
+ page_length: z.number().int().describe("Number of items per page.").nullable(),
37
+ current_page: z.number().int().describe("Current page number.").nullable(),
38
38
  next_page_cursor: z.string().describe("Cursor for fetching the next page, if available.").nullable().optional()
39
- });
39
+ }).passthrough();
40
40
  const refinerGetForms = action("REFINER_GET_FORMS", {
41
41
  slug: "refiner-get-forms",
42
42
  name: "Get Forms",
@@ -45,7 +45,7 @@ const refinerGetForms = action("REFINER_GET_FORMS", {
45
45
  output: z.object({
46
46
  items: z.array(RefinerGetForms_FormItemSchema).describe("List of forms matching the query."),
47
47
  pagination: RefinerGetForms_PaginationSchema.nullable()
48
- })
48
+ }).passthrough()
49
49
  });
50
50
  //#endregion
51
51
  export { refinerGetForms };