@keystrokehq/refiner 0.1.2 → 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 (61) hide show
  1. package/dist/actions/delete-contact.cjs +1 -1
  2. package/dist/actions/delete-contact.cjs.map +1 -1
  3. package/dist/actions/delete-contact.d.cts +1 -1
  4. package/dist/actions/delete-contact.d.mts +1 -1
  5. package/dist/actions/delete-contact.mjs +1 -1
  6. package/dist/actions/delete-contact.mjs.map +1 -1
  7. package/dist/actions/get-account-info.cjs +3 -3
  8. package/dist/actions/get-account-info.cjs.map +1 -1
  9. package/dist/actions/get-account-info.d.cts +3 -3
  10. package/dist/actions/get-account-info.d.mts +3 -3
  11. package/dist/actions/get-account-info.mjs +3 -3
  12. package/dist/actions/get-account-info.mjs.map +1 -1
  13. package/dist/actions/get-contact.cjs +3 -3
  14. package/dist/actions/get-contact.cjs.map +1 -1
  15. package/dist/actions/get-contact.d.cts +3 -3
  16. package/dist/actions/get-contact.d.mts +3 -3
  17. package/dist/actions/get-contact.mjs +3 -3
  18. package/dist/actions/get-contact.mjs.map +1 -1
  19. package/dist/actions/get-contacts.cjs +5 -5
  20. package/dist/actions/get-contacts.cjs.map +1 -1
  21. package/dist/actions/get-contacts.d.cts +5 -5
  22. package/dist/actions/get-contacts.d.mts +5 -5
  23. package/dist/actions/get-contacts.mjs +5 -5
  24. package/dist/actions/get-contacts.mjs.map +1 -1
  25. package/dist/actions/get-forms.cjs +3 -3
  26. package/dist/actions/get-forms.cjs.map +1 -1
  27. package/dist/actions/get-forms.d.cts +3 -3
  28. package/dist/actions/get-forms.d.mts +3 -3
  29. package/dist/actions/get-forms.mjs +3 -3
  30. package/dist/actions/get-forms.mjs.map +1 -1
  31. package/dist/actions/get-reporting.cjs +2 -2
  32. package/dist/actions/get-reporting.cjs.map +1 -1
  33. package/dist/actions/get-reporting.d.cts +2 -2
  34. package/dist/actions/get-reporting.d.mts +2 -2
  35. package/dist/actions/get-reporting.mjs +2 -2
  36. package/dist/actions/get-reporting.mjs.map +1 -1
  37. package/dist/actions/get-responses.cjs +7 -7
  38. package/dist/actions/get-responses.cjs.map +1 -1
  39. package/dist/actions/get-responses.d.cts +7 -7
  40. package/dist/actions/get-responses.d.mts +7 -7
  41. package/dist/actions/get-responses.mjs +7 -7
  42. package/dist/actions/get-responses.mjs.map +1 -1
  43. package/dist/actions/get-segments.cjs +3 -3
  44. package/dist/actions/get-segments.cjs.map +1 -1
  45. package/dist/actions/get-segments.d.cts +3 -3
  46. package/dist/actions/get-segments.d.mts +3 -3
  47. package/dist/actions/get-segments.mjs +3 -3
  48. package/dist/actions/get-segments.mjs.map +1 -1
  49. package/dist/actions/track-event.cjs +1 -1
  50. package/dist/actions/track-event.cjs.map +1 -1
  51. package/dist/actions/track-event.d.cts +1 -1
  52. package/dist/actions/track-event.d.mts +1 -1
  53. package/dist/actions/track-event.mjs +1 -1
  54. package/dist/actions/track-event.mjs.map +1 -1
  55. package/dist/actions/update-contact.cjs +2 -2
  56. package/dist/actions/update-contact.cjs.map +1 -1
  57. package/dist/actions/update-contact.d.cts +3 -3
  58. package/dist/actions/update-contact.d.mts +3 -3
  59. package/dist/actions/update-contact.mjs +2 -2
  60. package/dist/actions/update-contact.mjs.map +1 -1
  61. package/package.json +1 -1
@@ -5,7 +5,7 @@ const RefinerDeleteContactInput = zod.z.object({
5
5
  id: zod.z.string().describe("Your user ID that was used when the contact was created. This is the primary identifier for the contact.").optional(),
6
6
  email: zod.z.string().describe("The email address of the contact to delete. Can be used as an alternative to id.").optional()
7
7
  }).describe("Request model for deleting a Refiner contact.");
8
- const RefinerDeleteContactOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').").nullable() }).describe("Response model returned after deleting a contact.");
8
+ const RefinerDeleteContactOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').").nullable() }).passthrough().describe("Response model returned after deleting a contact.");
9
9
  const refinerDeleteContact = require_action.action("REFINER_DELETE_CONTACT", {
10
10
  slug: "refiner-delete-contact",
11
11
  name: "Delete Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput = z.object({\n id: z.string().describe(\"Your user ID that was used when the contact was created. This is the primary identifier for the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact to delete. Can be used as an alternative to id.\").optional(),\n}).describe(\"Request model for deleting a Refiner contact.\");\nexport const RefinerDeleteContactOutput = z.object({\n message: z.string().describe(\"Confirmation message that the contact was deleted (e.g., 'ok').\").nullable(),\n}).describe(\"Response model returned after deleting a contact.\");\n\nexport const refinerDeleteContact = action(\"REFINER_DELETE_CONTACT\", {\n slug: \"refiner-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a specific contact by its identifier. Provide either the user ID or email address to identify and delete the contact.\",\n input: RefinerDeleteContactInput,\n output: RefinerDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput = z.object({\n id: z.string().describe(\"Your user ID that was used when the contact was created. This is the primary identifier for the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact to delete. Can be used as an alternative to id.\").optional(),\n}).describe(\"Request model for deleting a Refiner contact.\");\nexport const RefinerDeleteContactOutput = z.object({\n message: z.string().describe(\"Confirmation message that the contact was deleted (e.g., 'ok').\").nullable(),\n}).passthrough().describe(\"Response model returned after deleting a contact.\");\n\nexport const refinerDeleteContact = action(\"REFINER_DELETE_CONTACT\", {\n slug: \"refiner-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a specific contact by its identifier. Provide either the user ID or email address to identify and delete the contact.\",\n input: RefinerDeleteContactInput,\n output: RefinerDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const RefinerDeleteContactInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const RefinerDeleteContactOutput: z.ZodObject<{
9
9
  message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const refinerDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  id?: string | undefined;
13
13
  email?: string | undefined;
@@ -7,7 +7,7 @@ declare const RefinerDeleteContactInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const RefinerDeleteContactOutput: z.ZodObject<{
9
9
  message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const refinerDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  id?: string | undefined;
13
13
  email?: string | undefined;
@@ -8,7 +8,7 @@ const refinerDeleteContact = action("REFINER_DELETE_CONTACT", {
8
8
  id: z.string().describe("Your user ID that was used when the contact was created. This is the primary identifier for the contact.").optional(),
9
9
  email: z.string().describe("The email address of the contact to delete. Can be used as an alternative to id.").optional()
10
10
  }).describe("Request model for deleting a Refiner contact."),
11
- output: z.object({ message: z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').").nullable() }).describe("Response model returned after deleting a contact.")
11
+ output: z.object({ message: z.string().describe("Confirmation message that the contact was deleted (e.g., 'ok').").nullable() }).passthrough().describe("Response model returned after deleting a contact.")
12
12
  });
13
13
  //#endregion
14
14
  export { refinerDeleteContact };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput = z.object({\n id: z.string().describe(\"Your user ID that was used when the contact was created. This is the primary identifier for the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact to delete. Can be used as an alternative to id.\").optional(),\n}).describe(\"Request model for deleting a Refiner contact.\");\nexport const RefinerDeleteContactOutput = z.object({\n message: z.string().describe(\"Confirmation message that the contact was deleted (e.g., 'ok').\").nullable(),\n}).describe(\"Response model returned after deleting a contact.\");\n\nexport const refinerDeleteContact = action(\"REFINER_DELETE_CONTACT\", {\n slug: \"refiner-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a specific contact by its identifier. Provide either the user ID or email address to identify and delete the contact.\",\n input: RefinerDeleteContactInput,\n output: RefinerDeleteContactOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,+CASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerDeleteContactInput = z.object({\n id: z.string().describe(\"Your user ID that was used when the contact was created. This is the primary identifier for the contact.\").optional(),\n email: z.string().describe(\"The email address of the contact to delete. Can be used as an alternative to id.\").optional(),\n}).describe(\"Request model for deleting a Refiner contact.\");\nexport const RefinerDeleteContactOutput = z.object({\n message: z.string().describe(\"Confirmation message that the contact was deleted (e.g., 'ok').\").nullable(),\n}).passthrough().describe(\"Response model returned after deleting a contact.\");\n\nexport const refinerDeleteContact = action(\"REFINER_DELETE_CONTACT\", {\n slug: \"refiner-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete a specific contact by its identifier. Provide either the user ID or email address to identify and delete the contact.\",\n input: RefinerDeleteContactInput,\n output: RefinerDeleteContactOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,+CASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -9,7 +9,7 @@ const RefinerGetAccountInfo_EnvironmentSchema = zod.z.object({
9
9
  mtu: zod.z.number().int().describe("Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month").nullable(),
10
10
  name: zod.z.string().describe("Name of the environment").nullable(),
11
11
  uuid: zod.z.string().describe("UUID of the environment").nullable()
12
- });
12
+ }).passthrough();
13
13
  const RefinerGetAccountInfo_SubscriptionSchema = zod.z.object({
14
14
  plan: zod.z.string().describe("Name of the subscribed plan").nullable(),
15
15
  mpv_count: zod.z.number().int().describe("Current number of Monthly Page Views (MPV) - page views tracked in the current month").nullable(),
@@ -23,11 +23,11 @@ const RefinerGetAccountInfo_SubscriptionSchema = zod.z.object({
23
23
  msr_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)").nullable(),
24
24
  mte_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)").nullable(),
25
25
  mtu_count_updated_at: zod.z.string().describe("Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)").nullable()
26
- });
26
+ }).passthrough();
27
27
  const RefinerGetAccountInfoOutput = zod.z.object({
28
28
  environments: zod.z.array(RefinerGetAccountInfo_EnvironmentSchema).describe("List of environments and their usage statistics"),
29
29
  subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable()
30
- });
30
+ }).passthrough();
31
31
  const refinerGetAccountInfo = require_action.action("REFINER_GET_ACCOUNT_INFO", {
32
32
  slug: "refiner-get-account-info",
33
33
  name: "Get Account Info",
@@ -1 +1 @@
1
- {"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput = z.object({}).describe(\"Request model for GetAccountInfo - no parameters required.\");\nconst RefinerGetAccountInfo_EnvironmentSchema = z.object({\n mpv: z.number().int().describe(\"Monthly Page Views (MPV) - number of page views tracked in this environment during the current month\").nullable(),\n msr: z.number().int().describe(\"Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month\").nullable(),\n mte: z.number().int().describe(\"Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month\").nullable(),\n mtu: z.number().int().describe(\"Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month\").nullable(),\n name: z.string().describe(\"Name of the environment\").nullable(),\n uuid: z.string().describe(\"UUID of the environment\").nullable(),\n});\nconst RefinerGetAccountInfo_SubscriptionSchema = z.object({\n plan: z.string().describe(\"Name of the subscribed plan\").nullable(),\n mpv_count: z.number().int().describe(\"Current number of Monthly Page Views (MPV) - page views tracked in the current month\").nullable(),\n mpv_limit: z.number().int().describe(\"Limit for Monthly Page Views (MPV) allowed by the current plan\").nullable(),\n msr_count: z.number().int().describe(\"Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month\").nullable(),\n msr_limit: z.number().int().describe(\"Limit for Monthly Survey Responses (MSR) allowed by the current plan\").nullable(),\n mte_count: z.number().int().describe(\"Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month\").nullable(),\n mtu_count: z.number().int().describe(\"Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month\").nullable(),\n mtu_limit: z.number().int().describe(\"Limit for Monthly Tracked Users (MTU) allowed by the current plan\").nullable(),\n mpv_count_updated_at: z.string().describe(\"Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)\").nullable(),\n msr_count_updated_at: z.string().describe(\"Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)\").nullable(),\n mte_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)\").nullable(),\n mtu_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)\").nullable(),\n});\nexport const RefinerGetAccountInfoOutput = z.object({\n environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe(\"List of environments and their usage statistics\"),\n subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable(),\n});\n\nexport const refinerGetAccountInfo = action(\"REFINER_GET_ACCOUNT_INFO\", {\n slug: \"refiner-get-account-info\",\n name: \"Get Account Info\",\n description: \"Retrieves Refiner account information including subscription plan, usage limits, and environment statistics. This action provides: - Current subscription plan and usage limits (MTU, MTE, MPV, MSR) - Usage counters for monthly tracked users, events, page views, and survey responses - Per-environment breakdown of usage statistics - Last updated timestamps for all usage metrics Use this when you need to check account status, monitor usage against limits, or audit environment statistics.\",\n input: RefinerGetAccountInfoInput,\n output: RefinerGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9J,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACvJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,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AAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAChJ,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,cAAcA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;CACzH,cAAc,yCAAyC,SAAS;AAClE,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput = z.object({}).describe(\"Request model for GetAccountInfo - no parameters required.\");\nconst RefinerGetAccountInfo_EnvironmentSchema = z.object({\n mpv: z.number().int().describe(\"Monthly Page Views (MPV) - number of page views tracked in this environment during the current month\").nullable(),\n msr: z.number().int().describe(\"Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month\").nullable(),\n mte: z.number().int().describe(\"Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month\").nullable(),\n mtu: z.number().int().describe(\"Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month\").nullable(),\n name: z.string().describe(\"Name of the environment\").nullable(),\n uuid: z.string().describe(\"UUID of the environment\").nullable(),\n}).passthrough();\nconst RefinerGetAccountInfo_SubscriptionSchema = z.object({\n plan: z.string().describe(\"Name of the subscribed plan\").nullable(),\n mpv_count: z.number().int().describe(\"Current number of Monthly Page Views (MPV) - page views tracked in the current month\").nullable(),\n mpv_limit: z.number().int().describe(\"Limit for Monthly Page Views (MPV) allowed by the current plan\").nullable(),\n msr_count: z.number().int().describe(\"Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month\").nullable(),\n msr_limit: z.number().int().describe(\"Limit for Monthly Survey Responses (MSR) allowed by the current plan\").nullable(),\n mte_count: z.number().int().describe(\"Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month\").nullable(),\n mtu_count: z.number().int().describe(\"Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month\").nullable(),\n mtu_limit: z.number().int().describe(\"Limit for Monthly Tracked Users (MTU) allowed by the current plan\").nullable(),\n mpv_count_updated_at: z.string().describe(\"Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)\").nullable(),\n msr_count_updated_at: z.string().describe(\"Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)\").nullable(),\n mte_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)\").nullable(),\n mtu_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)\").nullable(),\n}).passthrough();\nexport const RefinerGetAccountInfoOutput = z.object({\n environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe(\"List of environments and their usage statistics\"),\n subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetAccountInfo = action(\"REFINER_GET_ACCOUNT_INFO\", {\n slug: \"refiner-get-account-info\",\n name: \"Get Account Info\",\n description: \"Retrieves Refiner account information including subscription plan, usage limits, and environment statistics. This action provides: - Current subscription plan and usage limits (MTU, MTE, MPV, MSR) - Usage counters for monthly tracked users, events, page views, and survey responses - Per-environment breakdown of usage statistics - Last updated timestamps for all usage metrics Use this when you need to check account status, monitor usage against limits, or audit environment statistics.\",\n input: RefinerGetAccountInfoInput,\n output: RefinerGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,KAAKA,IAAAA,EAA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AS;CACnH,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3I,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACjJ,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/I,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,cAAcA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;CACzH,cAAc,yCAAyC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,7 +10,7 @@ declare const RefinerGetAccountInfoOutput: z.ZodObject<{
10
10
  mtu: z.ZodNullable<z.ZodNumber>;
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  uuid: z.ZodNullable<z.ZodString>;
13
- }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
14
  subscription: z.ZodNullable<z.ZodObject<{
15
15
  plan: z.ZodNullable<z.ZodString>;
16
16
  mpv_count: z.ZodNullable<z.ZodNumber>;
@@ -24,8 +24,8 @@ declare const RefinerGetAccountInfoOutput: z.ZodObject<{
24
24
  msr_count_updated_at: z.ZodNullable<z.ZodString>;
25
25
  mte_count_updated_at: z.ZodNullable<z.ZodString>;
26
26
  mtu_count_updated_at: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
28
- }, z.core.$strip>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>;
29
29
  declare const refinerGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
30
  //#endregion
31
31
  export { refinerGetAccountInfo };
@@ -10,7 +10,7 @@ declare const RefinerGetAccountInfoOutput: z.ZodObject<{
10
10
  mtu: z.ZodNullable<z.ZodNumber>;
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  uuid: z.ZodNullable<z.ZodString>;
13
- }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
14
  subscription: z.ZodNullable<z.ZodObject<{
15
15
  plan: z.ZodNullable<z.ZodString>;
16
16
  mpv_count: z.ZodNullable<z.ZodNumber>;
@@ -24,8 +24,8 @@ declare const RefinerGetAccountInfoOutput: z.ZodObject<{
24
24
  msr_count_updated_at: z.ZodNullable<z.ZodString>;
25
25
  mte_count_updated_at: z.ZodNullable<z.ZodString>;
26
26
  mtu_count_updated_at: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
28
- }, z.core.$strip>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>;
29
29
  declare const refinerGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
30
  //#endregion
31
31
  export { refinerGetAccountInfo };
@@ -9,7 +9,7 @@ const RefinerGetAccountInfo_EnvironmentSchema = z.object({
9
9
  mtu: z.number().int().describe("Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month").nullable(),
10
10
  name: z.string().describe("Name of the environment").nullable(),
11
11
  uuid: z.string().describe("UUID of the environment").nullable()
12
- });
12
+ }).passthrough();
13
13
  const RefinerGetAccountInfo_SubscriptionSchema = z.object({
14
14
  plan: z.string().describe("Name of the subscribed plan").nullable(),
15
15
  mpv_count: z.number().int().describe("Current number of Monthly Page Views (MPV) - page views tracked in the current month").nullable(),
@@ -23,7 +23,7 @@ const RefinerGetAccountInfo_SubscriptionSchema = z.object({
23
23
  msr_count_updated_at: z.string().describe("Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)").nullable(),
24
24
  mte_count_updated_at: z.string().describe("Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)").nullable(),
25
25
  mtu_count_updated_at: z.string().describe("Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)").nullable()
26
- });
26
+ }).passthrough();
27
27
  const refinerGetAccountInfo = action("REFINER_GET_ACCOUNT_INFO", {
28
28
  slug: "refiner-get-account-info",
29
29
  name: "Get Account Info",
@@ -32,7 +32,7 @@ const refinerGetAccountInfo = action("REFINER_GET_ACCOUNT_INFO", {
32
32
  output: z.object({
33
33
  environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe("List of environments and their usage statistics"),
34
34
  subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable()
35
- })
35
+ }).passthrough()
36
36
  });
37
37
  //#endregion
38
38
  export { refinerGetAccountInfo };
@@ -1 +1 @@
1
- {"version":3,"file":"get-account-info.mjs","names":[],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput = z.object({}).describe(\"Request model for GetAccountInfo - no parameters required.\");\nconst RefinerGetAccountInfo_EnvironmentSchema = z.object({\n mpv: z.number().int().describe(\"Monthly Page Views (MPV) - number of page views tracked in this environment during the current month\").nullable(),\n msr: z.number().int().describe(\"Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month\").nullable(),\n mte: z.number().int().describe(\"Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month\").nullable(),\n mtu: z.number().int().describe(\"Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month\").nullable(),\n name: z.string().describe(\"Name of the environment\").nullable(),\n uuid: z.string().describe(\"UUID of the environment\").nullable(),\n});\nconst RefinerGetAccountInfo_SubscriptionSchema = z.object({\n plan: z.string().describe(\"Name of the subscribed plan\").nullable(),\n mpv_count: z.number().int().describe(\"Current number of Monthly Page Views (MPV) - page views tracked in the current month\").nullable(),\n mpv_limit: z.number().int().describe(\"Limit for Monthly Page Views (MPV) allowed by the current plan\").nullable(),\n msr_count: z.number().int().describe(\"Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month\").nullable(),\n msr_limit: z.number().int().describe(\"Limit for Monthly Survey Responses (MSR) allowed by the current plan\").nullable(),\n mte_count: z.number().int().describe(\"Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month\").nullable(),\n mtu_count: z.number().int().describe(\"Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month\").nullable(),\n mtu_limit: z.number().int().describe(\"Limit for Monthly Tracked Users (MTU) allowed by the current plan\").nullable(),\n mpv_count_updated_at: z.string().describe(\"Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)\").nullable(),\n msr_count_updated_at: z.string().describe(\"Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)\").nullable(),\n mte_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)\").nullable(),\n mtu_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)\").nullable(),\n});\nexport const RefinerGetAccountInfoOutput = z.object({\n environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe(\"List of environments and their usage statistics\"),\n subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable(),\n});\n\nexport const refinerGetAccountInfo = action(\"REFINER_GET_ACCOUNT_INFO\", {\n slug: \"refiner-get-account-info\",\n name: \"Get Account Info\",\n description: \"Retrieves Refiner account information including subscription plan, usage limits, and environment statistics. This action provides: - Current subscription plan and usage limits (MTU, MTE, MPV, MSR) - Usage counters for monthly tracked users, events, page views, and survey responses - Per-environment breakdown of usage statistics - Last updated timestamps for all usage metrics Use this when you need to check account status, monitor usage against limits, or audit environment statistics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O,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3I,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACnH,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3I,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACjJ,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/I,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAChJ,CAAC;AAMD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,cAAc,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;EACzH,cAAc,yCAAyC,SAAS;CAClE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-account-info.mjs","names":[],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetAccountInfoInput = z.object({}).describe(\"Request model for GetAccountInfo - no parameters required.\");\nconst RefinerGetAccountInfo_EnvironmentSchema = z.object({\n mpv: z.number().int().describe(\"Monthly Page Views (MPV) - number of page views tracked in this environment during the current month\").nullable(),\n msr: z.number().int().describe(\"Monthly Survey Responses (MSR) - number of survey responses collected in this environment during the current month\").nullable(),\n mte: z.number().int().describe(\"Monthly Tracked Events (MTE) - number of custom events tracked in this environment during the current month\").nullable(),\n mtu: z.number().int().describe(\"Monthly Tracked Users (MTU) - number of unique users tracked in this environment during the current month\").nullable(),\n name: z.string().describe(\"Name of the environment\").nullable(),\n uuid: z.string().describe(\"UUID of the environment\").nullable(),\n}).passthrough();\nconst RefinerGetAccountInfo_SubscriptionSchema = z.object({\n plan: z.string().describe(\"Name of the subscribed plan\").nullable(),\n mpv_count: z.number().int().describe(\"Current number of Monthly Page Views (MPV) - page views tracked in the current month\").nullable(),\n mpv_limit: z.number().int().describe(\"Limit for Monthly Page Views (MPV) allowed by the current plan\").nullable(),\n msr_count: z.number().int().describe(\"Current number of Monthly Survey Responses (MSR) - survey responses collected in the current month\").nullable(),\n msr_limit: z.number().int().describe(\"Limit for Monthly Survey Responses (MSR) allowed by the current plan\").nullable(),\n mte_count: z.number().int().describe(\"Current number of Monthly Tracked Events (MTE) - custom events tracked in the current month\").nullable(),\n mtu_count: z.number().int().describe(\"Current number of Monthly Tracked Users (MTU) - unique users tracked in the current month\").nullable(),\n mtu_limit: z.number().int().describe(\"Limit for Monthly Tracked Users (MTU) allowed by the current plan\").nullable(),\n mpv_count_updated_at: z.string().describe(\"Timestamp when the Monthly Page Views (MPV) count was last updated (ISO 8601 format)\").nullable(),\n msr_count_updated_at: z.string().describe(\"Timestamp when the Monthly Survey Responses (MSR) count was last updated (ISO 8601 format)\").nullable(),\n mte_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Events (MTE) count was last updated (ISO 8601 format)\").nullable(),\n mtu_count_updated_at: z.string().describe(\"Timestamp when the Monthly Tracked Users (MTU) count was last updated (ISO 8601 format)\").nullable(),\n}).passthrough();\nexport const RefinerGetAccountInfoOutput = z.object({\n environments: z.array(RefinerGetAccountInfo_EnvironmentSchema).describe(\"List of environments and their usage statistics\"),\n subscription: RefinerGetAccountInfo_SubscriptionSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetAccountInfo = action(\"REFINER_GET_ACCOUNT_INFO\", {\n slug: \"refiner-get-account-info\",\n name: \"Get Account Info\",\n description: \"Retrieves Refiner account information including subscription plan, usage limits, and environment statistics. This action provides: - Current subscription plan and usage limits (MTU, MTE, MPV, MSR) - Usage counters for monthly tracked users, events, page views, and survey responses - Per-environment breakdown of usage statistics - Last updated timestamps for all usage metrics Use this when you need to check account status, monitor usage against limits, or audit environment statistics.\",\n input: RefinerGetAccountInfoInput,\n output: RefinerGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9J,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACvJ,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACtI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC7I,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3I,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACnH,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3I,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACjJ,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/I,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,cAAc,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;EACzH,cAAc,yCAAyC,SAAS;CAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -14,11 +14,11 @@ const RefinerGetContact_AccountSchema = zod.z.object({
14
14
  display_name: zod.z.string().describe("Account display name").nullable().optional(),
15
15
  last_seen_at: zod.z.string().describe("When the account was last seen (ISO 8601)").nullable(),
16
16
  first_seen_at: zod.z.string().describe("When the account was first seen (ISO 8601)").nullable()
17
- });
17
+ }).passthrough();
18
18
  const RefinerGetContact_SegmentSchema = zod.z.object({
19
19
  name: zod.z.string().describe("Segment name").nullable(),
20
20
  uuid: zod.z.string().describe("Segment UUID").nullable()
21
- });
21
+ }).passthrough();
22
22
  const RefinerGetContactOutput = zod.z.object({
23
23
  uuid: zod.z.string().describe("Contact UUID").nullable(),
24
24
  email: zod.z.string().describe("Contact email address").nullable().optional(),
@@ -29,7 +29,7 @@ const RefinerGetContactOutput = zod.z.object({
29
29
  display_name: zod.z.string().describe("Contact display name").nullable().optional(),
30
30
  last_seen_at: zod.z.string().describe("When contact was last seen (ISO 8601)").nullable(),
31
31
  first_seen_at: zod.z.string().describe("When contact was first seen (ISO 8601)").nullable()
32
- });
32
+ }).passthrough();
33
33
  const refinerGetContact = require_action.action("REFINER_GET_CONTACT", {
34
34
  slug: "refiner-get-contact",
35
35
  name: "Get Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { 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});\nconst RefinerGetContact_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name\").nullable(),\n uuid: z.string().describe(\"Segment UUID\").nullable(),\n});\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});\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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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AoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact.cjs","names":["z","action"],"sources":["../../src/actions/get-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { 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: RefinerGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;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@ -17,17 +17,17 @@ declare const RefinerGetContactOutput: z.ZodObject<{
17
17
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  last_seen_at: z.ZodNullable<z.ZodString>;
19
19
  first_seen_at: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
22
  name: z.ZodNullable<z.ZodString>;
23
23
  uuid: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>>>;
24
+ }, z.core.$loose>>>>;
25
25
  remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
27
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  last_seen_at: z.ZodNullable<z.ZodString>;
29
29
  first_seen_at: z.ZodNullable<z.ZodString>;
30
- }, z.core.$strip>;
30
+ }, z.core.$loose>;
31
31
  declare const refinerGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  id?: string | undefined;
33
33
  uuid?: string | undefined;
@@ -17,17 +17,17 @@ declare const RefinerGetContactOutput: z.ZodObject<{
17
17
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  last_seen_at: z.ZodNullable<z.ZodString>;
19
19
  first_seen_at: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
22
  name: z.ZodNullable<z.ZodString>;
23
23
  uuid: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>>>;
24
+ }, z.core.$loose>>>>;
25
25
  remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
27
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  last_seen_at: z.ZodNullable<z.ZodString>;
29
29
  first_seen_at: z.ZodNullable<z.ZodString>;
30
- }, z.core.$strip>;
30
+ }, z.core.$loose>;
31
31
  declare const refinerGetContact: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  id?: string | undefined;
33
33
  uuid?: string | undefined;
@@ -14,11 +14,11 @@ const RefinerGetContact_AccountSchema = z.object({
14
14
  display_name: z.string().describe("Account display name").nullable().optional(),
15
15
  last_seen_at: z.string().describe("When the account was last seen (ISO 8601)").nullable(),
16
16
  first_seen_at: z.string().describe("When the account was first seen (ISO 8601)").nullable()
17
- });
17
+ }).passthrough();
18
18
  const RefinerGetContact_SegmentSchema = z.object({
19
19
  name: z.string().describe("Segment name").nullable(),
20
20
  uuid: z.string().describe("Segment UUID").nullable()
21
- });
21
+ }).passthrough();
22
22
  const refinerGetContact = action("REFINER_GET_CONTACT", {
23
23
  slug: "refiner-get-contact",
24
24
  name: "Get Contact",
@@ -34,7 +34,7 @@ const refinerGetContact = action("REFINER_GET_CONTACT", {
34
34
  display_name: z.string().describe("Contact display name").nullable().optional(),
35
35
  last_seen_at: z.string().describe("When contact was last seen (ISO 8601)").nullable(),
36
36
  first_seen_at: z.string().describe("When contact was first seen (ISO 8601)").nullable()
37
- })
37
+ }).passthrough()
38
38
  });
39
39
  //#endregion
40
40
  export { refinerGetContact };
@@ -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.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});\nconst RefinerGetContact_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name\").nullable(),\n uuid: z.string().describe(\"Segment UUID\").nullable(),\n});\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});\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,yBAAyB,EAAE,OAAO;CAC7C,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,mFAA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AAC,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,CAOU;AACV,CAAC"}
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.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: RefinerGetContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,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,kCAAkC,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,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,CAAC,SAAS;CAC5G,cAAc,EAA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C,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -22,13 +22,13 @@ const RefinerGetContacts_AccountSchema = zod.z.object({
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
27
  name: zod.z.string().describe("Segment name.").nullable(),
28
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
33
  uuid: zod.z.string().describe("Unique contact identifier.").nullable(),
34
34
  email: zod.z.string().describe("Email address of the contact.").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
47
  items_count: zod.z.number().int().describe("Total number of items.").nullable(),
48
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.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});\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});\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});\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});\nexport const RefinerGetContactsOutput = 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,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,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAA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,CAAC,SAAS;AACjG,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,SAAS,2CAA2C,CAAC,CAAC,SAA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C,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"}
@@ -26,13 +26,13 @@ declare const RefinerGetContactsOutput: z.ZodObject<{
26
26
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
31
  name: z.ZodNullable<z.ZodString>;
32
32
  uuid: z.ZodNullable<z.ZodString>;
33
33
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- }, z.core.$strip>>>>;
35
+ }, z.core.$loose>>>>;
36
36
  remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40,15 +40,15 @@ declare const RefinerGetContactsOutput: z.ZodObject<{
40
40
  first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  last_tracking_event_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  last_form_submission_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- }, z.core.$strip>>;
43
+ }, z.core.$loose>>;
44
44
  pagination: z.ZodNullable<z.ZodObject<{
45
45
  last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
46
  items_count: z.ZodNullable<z.ZodNumber>;
47
47
  page_length: z.ZodNullable<z.ZodNumber>;
48
48
  current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
49
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- }, z.core.$strip>>;
51
- }, z.core.$strip>;
50
+ }, z.core.$loose>>;
51
+ }, z.core.$loose>;
52
52
  declare const refinerGetContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
53
53
  page?: number | undefined;
54
54
  search?: string | undefined;
@@ -26,13 +26,13 @@ declare const RefinerGetContactsOutput: z.ZodObject<{
26
26
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
31
  name: z.ZodNullable<z.ZodString>;
32
32
  uuid: z.ZodNullable<z.ZodString>;
33
33
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- }, z.core.$strip>>>>;
35
+ }, z.core.$loose>>>>;
36
36
  remote_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40,15 +40,15 @@ declare const RefinerGetContactsOutput: z.ZodObject<{
40
40
  first_seen_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  last_tracking_event_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  last_form_submission_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- }, z.core.$strip>>;
43
+ }, z.core.$loose>>;
44
44
  pagination: z.ZodNullable<z.ZodObject<{
45
45
  last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
46
  items_count: z.ZodNullable<z.ZodNumber>;
47
47
  page_length: z.ZodNullable<z.ZodNumber>;
48
48
  current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
49
  next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- }, z.core.$strip>>;
51
- }, z.core.$strip>;
50
+ }, z.core.$loose>>;
51
+ }, z.core.$loose>;
52
52
  declare const refinerGetContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
53
53
  page?: number | undefined;
54
54
  search?: string | undefined;
@@ -22,13 +22,13 @@ const RefinerGetContacts_AccountSchema = z.object({
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
27
  name: z.string().describe("Segment name.").nullable(),
28
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
33
  uuid: z.string().describe("Unique contact identifier.").nullable(),
34
34
  email: z.string().describe("Email address of the contact.").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
47
  items_count: z.number().int().describe("Total number of items.").nullable(),
48
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.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});\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});\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});\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});\nexport const RefinerGetContactsOutput = 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,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,cAA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,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,QAVsC,EAAE,OAAO;EAC/C,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,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CA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