@keystrokehq/simplesat 0.1.2 → 0.1.4

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 (55) hide show
  1. package/dist/actions/create-or-update-customer2.cjs +1 -1
  2. package/dist/actions/create-or-update-customer2.cjs.map +1 -1
  3. package/dist/actions/create-or-update-customer2.d.cts +1 -1
  4. package/dist/actions/create-or-update-customer2.d.mts +1 -1
  5. package/dist/actions/create-or-update-customer2.mjs +1 -1
  6. package/dist/actions/create-or-update-customer2.mjs.map +1 -1
  7. package/dist/actions/create-or-update-team-member.cjs +1 -1
  8. package/dist/actions/create-or-update-team-member.cjs.map +1 -1
  9. package/dist/actions/create-or-update-team-member.d.cts +1 -1
  10. package/dist/actions/create-or-update-team-member.d.mts +1 -1
  11. package/dist/actions/create-or-update-team-member.mjs +1 -1
  12. package/dist/actions/create-or-update-team-member.mjs.map +1 -1
  13. package/dist/actions/get-customer.cjs +2 -2
  14. package/dist/actions/get-customer.cjs.map +1 -1
  15. package/dist/actions/get-customer.d.cts +2 -2
  16. package/dist/actions/get-customer.d.mts +2 -2
  17. package/dist/actions/get-customer.mjs +2 -2
  18. package/dist/actions/get-customer.mjs.map +1 -1
  19. package/dist/actions/list-questions.cjs +5 -5
  20. package/dist/actions/list-questions.cjs.map +1 -1
  21. package/dist/actions/list-questions.d.cts +5 -5
  22. package/dist/actions/list-questions.d.mts +5 -5
  23. package/dist/actions/list-questions.mjs +5 -5
  24. package/dist/actions/list-questions.mjs.map +1 -1
  25. package/dist/actions/list-surveys.cjs +2 -2
  26. package/dist/actions/list-surveys.cjs.map +1 -1
  27. package/dist/actions/list-surveys.d.cts +2 -2
  28. package/dist/actions/list-surveys.d.mts +2 -2
  29. package/dist/actions/list-surveys.mjs +2 -2
  30. package/dist/actions/list-surveys.mjs.map +1 -1
  31. package/dist/actions/search-answers.cjs +9 -9
  32. package/dist/actions/search-answers.cjs.map +1 -1
  33. package/dist/actions/search-answers.d.cts +13 -12
  34. package/dist/actions/search-answers.d.mts +13 -12
  35. package/dist/actions/search-answers.mjs +9 -9
  36. package/dist/actions/search-answers.mjs.map +1 -1
  37. package/dist/actions/search-responses.cjs +3 -3
  38. package/dist/actions/search-responses.cjs.map +1 -1
  39. package/dist/actions/search-responses.d.cts +4 -3
  40. package/dist/actions/search-responses.d.mts +4 -3
  41. package/dist/actions/search-responses.mjs +3 -3
  42. package/dist/actions/search-responses.mjs.map +1 -1
  43. package/dist/actions/update-customer.cjs +2 -2
  44. package/dist/actions/update-customer.cjs.map +1 -1
  45. package/dist/actions/update-customer.d.cts +3 -3
  46. package/dist/actions/update-customer.d.mts +3 -3
  47. package/dist/actions/update-customer.mjs +2 -2
  48. package/dist/actions/update-customer.mjs.map +1 -1
  49. package/dist/catalog.cjs +1 -1
  50. package/dist/catalog.cjs.map +1 -1
  51. package/dist/catalog.d.cts +1 -1
  52. package/dist/catalog.d.mts +1 -1
  53. package/dist/catalog.mjs +1 -1
  54. package/dist/catalog.mjs.map +1 -1
  55. package/package.json +1 -1
@@ -16,7 +16,7 @@ const SimplesatSearchAnswersInput = zod.z.object({
16
16
  "lt",
17
17
  "lte"
18
18
  ]).describe("Comparison operator for filter values.").optional()
19
- }).describe("Individual filter object for searching answers.")).describe("Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.").optional(),
19
+ }).passthrough().describe("Individual filter object for searching answers.")).describe("Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.").optional(),
20
20
  end_date: zod.z.string().describe("End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.").optional(),
21
21
  operator: zod.z.enum(["and", "or"]).describe("Operator to apply between multiple filters.").optional(),
22
22
  page_size: zod.z.number().int().describe("Number of records per page (default 100)").optional(),
@@ -26,34 +26,34 @@ const SimplesatSearchAnswers_AnswerChoiceSchema = zod.z.object({
26
26
  id: zod.z.number().int().describe("Unique identifier of the choice").nullable().optional(),
27
27
  label: zod.z.string().describe("Label of the choice").nullable().optional(),
28
28
  value: zod.z.string().describe("Value of the choice").nullable().optional()
29
- }).describe("Choice information in an answer.");
29
+ }).passthrough().describe("Choice information in an answer.");
30
30
  const SimplesatSearchAnswers_AnswerSurveySchema = zod.z.object({
31
31
  id: zod.z.number().int().describe("Unique identifier of the survey").nullable().optional(),
32
32
  name: zod.z.string().describe("Name of the survey").nullable().optional(),
33
33
  type: zod.z.string().describe("Type of the survey").nullable().optional()
34
- }).describe("Survey information in an answer.");
34
+ }).passthrough().describe("Survey information in an answer.");
35
35
  const SimplesatSearchAnswers_AnswerQuestionSchema = zod.z.object({
36
36
  id: zod.z.number().int().describe("Unique identifier of the question").nullable().optional(),
37
37
  text: zod.z.string().describe("Text of the question").nullable().optional(),
38
38
  type: zod.z.string().describe("Type of the question").nullable().optional(),
39
39
  scale: zod.z.string().describe("Scale of the question").nullable().optional()
40
- }).describe("Question information in an answer.");
40
+ }).passthrough().describe("Question information in an answer.");
41
41
  const SimplesatSearchAnswers_AnswerSentimentSchema = zod.z.object({
42
42
  label: zod.z.string().describe("Sentiment label").nullable().optional(),
43
43
  value: zod.z.string().describe("Sentiment value (e.g., 'positive', 'neutral', 'negative')").nullable().optional()
44
- }).describe("Sentiment information in an answer.");
44
+ }).passthrough().describe("Sentiment information in an answer.");
45
45
  const SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = zod.z.object({
46
46
  id: zod.z.number().int().describe("Unique identifier of the choice").nullable().optional(),
47
47
  label: zod.z.string().describe("Label of the choice").nullable().optional(),
48
48
  value: zod.z.string().describe("Value of the choice").nullable().optional()
49
- }).describe("Follow-up answer choice information.");
49
+ }).passthrough().describe("Follow-up answer choice information.");
50
50
  const SimplesatSearchAnswers_FollowUpAnswerSchema = zod.z.object({
51
51
  id: zod.z.number().int().describe("Unique identifier of the follow-up answer").nullable().optional(),
52
52
  choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),
53
53
  rating: zod.z.number().int().describe("Rating given in follow-up").nullable().optional(),
54
54
  comment: zod.z.string().describe("Comment in follow-up").nullable().optional(),
55
55
  created: zod.z.string().describe("Creation timestamp").nullable().optional()
56
- }).describe("Follow-up answer information.");
56
+ }).passthrough().describe("Follow-up answer information.");
57
57
  const SimplesatSearchAnswers_AnswerSchema = zod.z.object({
58
58
  id: zod.z.number().int().describe("Unique identifier of the answer").nullable(),
59
59
  choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),
@@ -70,13 +70,13 @@ const SimplesatSearchAnswers_AnswerSchema = zod.z.object({
70
70
  follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),
71
71
  follow_up_answer_choices: zod.z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe("List of follow-up answer choices if multiple were available").nullable().optional(),
72
72
  published_as_testimonial: zod.z.boolean().describe("Whether this answer is published as a testimonial").nullable().optional()
73
- }).describe("Individual answer object.");
73
+ }).passthrough().describe("Individual answer object.");
74
74
  const SimplesatSearchAnswersOutput = zod.z.object({
75
75
  next: zod.z.string().describe("URL to the next page of results, null if no more pages").nullable().optional(),
76
76
  count: zod.z.number().int().describe("Total number of answers matching the query").nullable(),
77
77
  answers: zod.z.array(SimplesatSearchAnswers_AnswerSchema).describe("List of answer objects with detailed information"),
78
78
  previous: zod.z.string().describe("URL to the previous page of results, null if on first page").nullable().optional()
79
- }).describe("Response model for searching answers.");
79
+ }).passthrough().describe("Response model for searching answers.");
80
80
  const simplesatSearchAnswers = require_action.action("SIMPLESAT_SEARCH_ANSWERS", {
81
81
  slug: "simplesat-search-answers",
82
82
  name: "Search Answers",
@@ -1 +1 @@
1
- {"version":3,"file":"search-answers.cjs","names":["z","action"],"sources":["../../src/actions/search-answers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchAnswersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n filters: z.array(z.object({\n key: z.string().describe(\"Filter key (e.g., 'choice_value', 'collaborator', 'company', 'comment', 'customer', 'sentiment', 'metric', 'survey', 'tag', 'team_member', or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by\"),\n comparison: z.enum([\"eq\", \"ne\", \"contains\", \"not_contains\", \"gt\", \"gte\", \"lt\", \"lte\"]).describe(\"Comparison operator for filter values.\").optional(),\n}).describe(\"Individual filter object for searching answers.\")).describe(\"Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.\").optional(),\n end_date: z.string().describe(\"End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to apply between multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n start_date: z.string().describe(\"Start date and time in ISO 8601 format to filter answers (e.g., '2024-01-01T00:00:00Z'). If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching answers.\");\nconst SimplesatSearchAnswers_AnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).describe(\"Choice information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable().optional(),\n name: z.string().describe(\"Name of the survey\").nullable().optional(),\n type: z.string().describe(\"Type of the survey\").nullable().optional(),\n}).describe(\"Survey information in an answer.\");\nconst SimplesatSearchAnswers_AnswerQuestionSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the question\").nullable().optional(),\n text: z.string().describe(\"Text of the question\").nullable().optional(),\n type: z.string().describe(\"Type of the question\").nullable().optional(),\n scale: z.string().describe(\"Scale of the question\").nullable().optional(),\n}).describe(\"Question information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSentimentSchema = z.object({\n label: z.string().describe(\"Sentiment label\").nullable().optional(),\n value: z.string().describe(\"Sentiment value (e.g., 'positive', 'neutral', 'negative')\").nullable().optional(),\n}).describe(\"Sentiment information in an answer.\");\nconst SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).describe(\"Follow-up answer choice information.\");\nconst SimplesatSearchAnswers_FollowUpAnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the follow-up answer\").nullable().optional(),\n choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n rating: z.number().int().describe(\"Rating given in follow-up\").nullable().optional(),\n comment: z.string().describe(\"Comment in follow-up\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n}).describe(\"Follow-up answer information.\");\nconst SimplesatSearchAnswers_AnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the answer\").nullable(),\n choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),\n survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),\n choices: z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe(\"List of choices if multiple choices were available\").nullable().optional(),\n comment: z.string().describe(\"Comment text provided by the customer\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the answer was created (ISO 8601 format)\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the answer was last modified (ISO 8601 format)\").nullable().optional(),\n question: SimplesatSearchAnswers_AnswerQuestionSchema.nullable().optional(),\n sentiment: SimplesatSearchAnswers_AnswerSentimentSchema.nullable().optional(),\n response_id: z.number().int().describe(\"Unique identifier of the response\").nullable().optional(),\n choice_label: z.string().describe(\"Label for the choice\").nullable().optional(),\n follow_up_answer: SimplesatSearchAnswers_FollowUpAnswerSchema.nullable().optional(),\n follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe(\"List of follow-up answer choices if multiple were available\").nullable().optional(),\n published_as_testimonial: z.boolean().describe(\"Whether this answer is published as a testimonial\").nullable().optional(),\n}).describe(\"Individual answer object.\");\nexport const SimplesatSearchAnswersOutput = z.object({\n next: z.string().describe(\"URL to the next page of results, null if no more pages\").nullable().optional(),\n count: z.number().int().describe(\"Total number of answers matching the query\").nullable(),\n answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe(\"List of answer objects with detailed information\"),\n previous: z.string().describe(\"URL to the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Response model for searching answers.\");\n\nexport const simplesatSearchAnswers = action(\"SIMPLESAT_SEARCH_ANSWERS\", {\n slug: \"simplesat-search-answers\",\n name: \"Search Answers\",\n description: \"Tool to search and retrieve answers from Simplesat with advanced filtering. Use when you need to find specific answers based on filters like date range, choice value, sentiment, survey, customer, or custom attributes. If no filters are provided, returns all answers from the last 30 days by default.\",\n input: SimplesatSearchAnswersInput,\n output: SimplesatSearchAnswersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EAC3L,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6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search-answers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchAnswersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n filters: z.array(z.object({\n key: z.string().describe(\"Filter key (e.g., 'choice_value', 'collaborator', 'company', 'comment', 'customer', 'sentiment', 'metric', 'survey', 'tag', 'team_member', or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by\"),\n comparison: z.enum([\"eq\", \"ne\", \"contains\", \"not_contains\", \"gt\", \"gte\", \"lt\", \"lte\"]).describe(\"Comparison operator for filter values.\").optional(),\n}).passthrough().describe(\"Individual filter object for searching answers.\")).describe(\"Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.\").optional(),\n end_date: z.string().describe(\"End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to apply between multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n start_date: z.string().describe(\"Start date and time in ISO 8601 format to filter answers (e.g., '2024-01-01T00:00:00Z'). If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching answers.\");\nconst SimplesatSearchAnswers_AnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).passthrough().describe(\"Choice information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable().optional(),\n name: z.string().describe(\"Name of the survey\").nullable().optional(),\n type: z.string().describe(\"Type of the survey\").nullable().optional(),\n}).passthrough().describe(\"Survey information in an answer.\");\nconst SimplesatSearchAnswers_AnswerQuestionSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the question\").nullable().optional(),\n text: z.string().describe(\"Text of the question\").nullable().optional(),\n type: z.string().describe(\"Type of the question\").nullable().optional(),\n scale: z.string().describe(\"Scale of the question\").nullable().optional(),\n}).passthrough().describe(\"Question information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSentimentSchema = z.object({\n label: z.string().describe(\"Sentiment label\").nullable().optional(),\n value: z.string().describe(\"Sentiment value (e.g., 'positive', 'neutral', 'negative')\").nullable().optional(),\n}).passthrough().describe(\"Sentiment information in an answer.\");\nconst SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).passthrough().describe(\"Follow-up answer choice information.\");\nconst SimplesatSearchAnswers_FollowUpAnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the follow-up answer\").nullable().optional(),\n choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n rating: z.number().int().describe(\"Rating given in follow-up\").nullable().optional(),\n comment: z.string().describe(\"Comment in follow-up\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"Follow-up answer information.\");\nconst SimplesatSearchAnswers_AnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the answer\").nullable(),\n choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),\n survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),\n choices: z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe(\"List of choices if multiple choices were available\").nullable().optional(),\n comment: z.string().describe(\"Comment text provided by the customer\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the answer was created (ISO 8601 format)\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the answer was last modified (ISO 8601 format)\").nullable().optional(),\n question: SimplesatSearchAnswers_AnswerQuestionSchema.nullable().optional(),\n sentiment: SimplesatSearchAnswers_AnswerSentimentSchema.nullable().optional(),\n response_id: z.number().int().describe(\"Unique identifier of the response\").nullable().optional(),\n choice_label: z.string().describe(\"Label for the choice\").nullable().optional(),\n follow_up_answer: SimplesatSearchAnswers_FollowUpAnswerSchema.nullable().optional(),\n follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe(\"List of follow-up answer choices if multiple were available\").nullable().optional(),\n published_as_testimonial: z.boolean().describe(\"Whether this answer is published as a testimonial\").nullable().optional(),\n}).passthrough().describe(\"Individual answer object.\");\nexport const SimplesatSearchAnswersOutput = z.object({\n next: z.string().describe(\"URL to the next page of results, null if no more pages\").nullable().optional(),\n count: z.number().int().describe(\"Total number of answers matching the query\").nullable(),\n answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe(\"List of answer objects with detailed information\"),\n previous: z.string().describe(\"URL to the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Response model for searching answers.\");\n\nexport const simplesatSearchAnswers = action(\"SIMPLESAT_SEARCH_ANSWERS\", {\n slug: \"simplesat-search-answers\",\n name: \"Search Answers\",\n description: \"Tool to search and retrieve answers from Simplesat with advanced filtering. Use when you need to find specific answers based on filters like date range, choice value, sentiment, survey, customer, or custom attributes. If no filters are provided, returns all answers from the last 30 days by default.\",\n input: SimplesatSearchAnswersInput,\n output: SimplesatSearchAnswersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EAC3L,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,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,7 +16,7 @@ declare const SimplesatSearchAnswersInput: z.ZodObject<{
16
16
  lt: "lt";
17
17
  lte: "lte";
18
18
  }>>;
19
- }, z.core.$strip>>>;
19
+ }, z.core.$loose>>>;
20
20
  end_date: z.ZodOptional<z.ZodString>;
21
21
  operator: z.ZodOptional<z.ZodEnum<{
22
22
  and: "and";
@@ -34,17 +34,17 @@ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
34
34
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
35
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- }, z.core.$strip>>>;
37
+ }, z.core.$loose>>>;
38
38
  survey: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
39
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
40
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
45
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
46
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
- }, z.core.$strip>>>>;
47
+ }, z.core.$loose>>>>;
48
48
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -53,11 +53,11 @@ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
53
53
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  scale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
- }, z.core.$strip>>>;
56
+ }, z.core.$loose>>>;
57
57
  sentiment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
58
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
- }, z.core.$strip>>>;
60
+ }, z.core.$loose>>>;
61
61
  response_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
62
  choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
63
  follow_up_answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -66,28 +66,29 @@ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
66
66
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
67
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
- }, z.core.$strip>>>;
69
+ }, z.core.$loose>>>;
70
70
  rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
71
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
- }, z.core.$strip>>>;
73
+ }, z.core.$loose>>>;
74
74
  follow_up_answer_choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
75
75
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
76
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
77
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
- }, z.core.$strip>>>;
78
+ }, z.core.$loose>>>;
79
79
  follow_up_answer_choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
80
80
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
81
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
82
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- }, z.core.$strip>>>>;
83
+ }, z.core.$loose>>>>;
84
84
  published_as_testimonial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
85
- }, z.core.$strip>>;
85
+ }, z.core.$loose>>;
86
86
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
- }, z.core.$strip>;
87
+ }, z.core.$loose>;
88
88
  declare const simplesatSearchAnswers: import("@keystrokehq/action").WorkflowActionDefinition<{
89
89
  page?: number | undefined;
90
90
  filters?: {
91
+ [x: string]: unknown;
91
92
  key: string;
92
93
  values: string[];
93
94
  comparison?: "eq" | "ne" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | undefined;
@@ -16,7 +16,7 @@ declare const SimplesatSearchAnswersInput: z.ZodObject<{
16
16
  lt: "lt";
17
17
  lte: "lte";
18
18
  }>>;
19
- }, z.core.$strip>>>;
19
+ }, z.core.$loose>>>;
20
20
  end_date: z.ZodOptional<z.ZodString>;
21
21
  operator: z.ZodOptional<z.ZodEnum<{
22
22
  and: "and";
@@ -34,17 +34,17 @@ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
34
34
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
35
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- }, z.core.$strip>>>;
37
+ }, z.core.$loose>>>;
38
38
  survey: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
39
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
40
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
45
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
46
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
- }, z.core.$strip>>>>;
47
+ }, z.core.$loose>>>>;
48
48
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -53,11 +53,11 @@ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
53
53
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
55
  scale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
- }, z.core.$strip>>>;
56
+ }, z.core.$loose>>>;
57
57
  sentiment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
58
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
- }, z.core.$strip>>>;
60
+ }, z.core.$loose>>>;
61
61
  response_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
62
  choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
63
  follow_up_answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -66,28 +66,29 @@ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
66
66
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
67
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
- }, z.core.$strip>>>;
69
+ }, z.core.$loose>>>;
70
70
  rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
71
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
- }, z.core.$strip>>>;
73
+ }, z.core.$loose>>>;
74
74
  follow_up_answer_choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
75
75
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
76
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
77
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
- }, z.core.$strip>>>;
78
+ }, z.core.$loose>>>;
79
79
  follow_up_answer_choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
80
80
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
81
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
82
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- }, z.core.$strip>>>>;
83
+ }, z.core.$loose>>>>;
84
84
  published_as_testimonial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
85
- }, z.core.$strip>>;
85
+ }, z.core.$loose>>;
86
86
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
- }, z.core.$strip>;
87
+ }, z.core.$loose>;
88
88
  declare const simplesatSearchAnswers: import("@keystrokehq/action").WorkflowActionDefinition<{
89
89
  page?: number | undefined;
90
90
  filters?: {
91
+ [x: string]: unknown;
91
92
  key: string;
92
93
  values: string[];
93
94
  comparison?: "eq" | "ne" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | undefined;
@@ -16,7 +16,7 @@ const SimplesatSearchAnswersInput = z.object({
16
16
  "lt",
17
17
  "lte"
18
18
  ]).describe("Comparison operator for filter values.").optional()
19
- }).describe("Individual filter object for searching answers.")).describe("Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.").optional(),
19
+ }).passthrough().describe("Individual filter object for searching answers.")).describe("Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.").optional(),
20
20
  end_date: z.string().describe("End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.").optional(),
21
21
  operator: z.enum(["and", "or"]).describe("Operator to apply between multiple filters.").optional(),
22
22
  page_size: z.number().int().describe("Number of records per page (default 100)").optional(),
@@ -26,34 +26,34 @@ const SimplesatSearchAnswers_AnswerChoiceSchema = z.object({
26
26
  id: z.number().int().describe("Unique identifier of the choice").nullable().optional(),
27
27
  label: z.string().describe("Label of the choice").nullable().optional(),
28
28
  value: z.string().describe("Value of the choice").nullable().optional()
29
- }).describe("Choice information in an answer.");
29
+ }).passthrough().describe("Choice information in an answer.");
30
30
  const SimplesatSearchAnswers_AnswerSurveySchema = z.object({
31
31
  id: z.number().int().describe("Unique identifier of the survey").nullable().optional(),
32
32
  name: z.string().describe("Name of the survey").nullable().optional(),
33
33
  type: z.string().describe("Type of the survey").nullable().optional()
34
- }).describe("Survey information in an answer.");
34
+ }).passthrough().describe("Survey information in an answer.");
35
35
  const SimplesatSearchAnswers_AnswerQuestionSchema = z.object({
36
36
  id: z.number().int().describe("Unique identifier of the question").nullable().optional(),
37
37
  text: z.string().describe("Text of the question").nullable().optional(),
38
38
  type: z.string().describe("Type of the question").nullable().optional(),
39
39
  scale: z.string().describe("Scale of the question").nullable().optional()
40
- }).describe("Question information in an answer.");
40
+ }).passthrough().describe("Question information in an answer.");
41
41
  const SimplesatSearchAnswers_AnswerSentimentSchema = z.object({
42
42
  label: z.string().describe("Sentiment label").nullable().optional(),
43
43
  value: z.string().describe("Sentiment value (e.g., 'positive', 'neutral', 'negative')").nullable().optional()
44
- }).describe("Sentiment information in an answer.");
44
+ }).passthrough().describe("Sentiment information in an answer.");
45
45
  const SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = z.object({
46
46
  id: z.number().int().describe("Unique identifier of the choice").nullable().optional(),
47
47
  label: z.string().describe("Label of the choice").nullable().optional(),
48
48
  value: z.string().describe("Value of the choice").nullable().optional()
49
- }).describe("Follow-up answer choice information.");
49
+ }).passthrough().describe("Follow-up answer choice information.");
50
50
  const SimplesatSearchAnswers_FollowUpAnswerSchema = z.object({
51
51
  id: z.number().int().describe("Unique identifier of the follow-up answer").nullable().optional(),
52
52
  choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),
53
53
  rating: z.number().int().describe("Rating given in follow-up").nullable().optional(),
54
54
  comment: z.string().describe("Comment in follow-up").nullable().optional(),
55
55
  created: z.string().describe("Creation timestamp").nullable().optional()
56
- }).describe("Follow-up answer information.");
56
+ }).passthrough().describe("Follow-up answer information.");
57
57
  const SimplesatSearchAnswers_AnswerSchema = z.object({
58
58
  id: z.number().int().describe("Unique identifier of the answer").nullable(),
59
59
  choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),
@@ -70,7 +70,7 @@ const SimplesatSearchAnswers_AnswerSchema = z.object({
70
70
  follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),
71
71
  follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe("List of follow-up answer choices if multiple were available").nullable().optional(),
72
72
  published_as_testimonial: z.boolean().describe("Whether this answer is published as a testimonial").nullable().optional()
73
- }).describe("Individual answer object.");
73
+ }).passthrough().describe("Individual answer object.");
74
74
  const simplesatSearchAnswers = action("SIMPLESAT_SEARCH_ANSWERS", {
75
75
  slug: "simplesat-search-answers",
76
76
  name: "Search Answers",
@@ -81,7 +81,7 @@ const simplesatSearchAnswers = action("SIMPLESAT_SEARCH_ANSWERS", {
81
81
  count: z.number().int().describe("Total number of answers matching the query").nullable(),
82
82
  answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe("List of answer objects with detailed information"),
83
83
  previous: z.string().describe("URL to the previous page of results, null if on first page").nullable().optional()
84
- }).describe("Response model for searching answers.")
84
+ }).passthrough().describe("Response model for searching answers.")
85
85
  });
86
86
  //#endregion
87
87
  export { simplesatSearchAnswers };
@@ -1 +1 @@
1
- {"version":3,"file":"search-answers.mjs","names":[],"sources":["../../src/actions/search-answers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchAnswersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n filters: z.array(z.object({\n key: z.string().describe(\"Filter key (e.g., 'choice_value', 'collaborator', 'company', 'comment', 'customer', 'sentiment', 'metric', 'survey', 'tag', 'team_member', or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by\"),\n comparison: z.enum([\"eq\", \"ne\", \"contains\", \"not_contains\", \"gt\", \"gte\", \"lt\", \"lte\"]).describe(\"Comparison operator for filter values.\").optional(),\n}).describe(\"Individual filter object for searching answers.\")).describe(\"Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.\").optional(),\n end_date: z.string().describe(\"End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to apply between multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n start_date: z.string().describe(\"Start date and time in ISO 8601 format to filter answers (e.g., '2024-01-01T00:00:00Z'). If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching answers.\");\nconst SimplesatSearchAnswers_AnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).describe(\"Choice information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable().optional(),\n name: z.string().describe(\"Name of the survey\").nullable().optional(),\n type: z.string().describe(\"Type of the survey\").nullable().optional(),\n}).describe(\"Survey information in an answer.\");\nconst SimplesatSearchAnswers_AnswerQuestionSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the question\").nullable().optional(),\n text: z.string().describe(\"Text of the question\").nullable().optional(),\n type: z.string().describe(\"Type of the question\").nullable().optional(),\n scale: z.string().describe(\"Scale of the question\").nullable().optional(),\n}).describe(\"Question information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSentimentSchema = z.object({\n label: z.string().describe(\"Sentiment label\").nullable().optional(),\n value: z.string().describe(\"Sentiment value (e.g., 'positive', 'neutral', 'negative')\").nullable().optional(),\n}).describe(\"Sentiment information in an answer.\");\nconst SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).describe(\"Follow-up answer choice information.\");\nconst SimplesatSearchAnswers_FollowUpAnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the follow-up answer\").nullable().optional(),\n choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n rating: z.number().int().describe(\"Rating given in follow-up\").nullable().optional(),\n comment: z.string().describe(\"Comment in follow-up\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n}).describe(\"Follow-up answer information.\");\nconst SimplesatSearchAnswers_AnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the answer\").nullable(),\n choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),\n survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),\n choices: z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe(\"List of choices if multiple choices were available\").nullable().optional(),\n comment: z.string().describe(\"Comment text provided by the customer\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the answer was created (ISO 8601 format)\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the answer was last modified (ISO 8601 format)\").nullable().optional(),\n question: SimplesatSearchAnswers_AnswerQuestionSchema.nullable().optional(),\n sentiment: SimplesatSearchAnswers_AnswerSentimentSchema.nullable().optional(),\n response_id: z.number().int().describe(\"Unique identifier of the response\").nullable().optional(),\n choice_label: z.string().describe(\"Label for the choice\").nullable().optional(),\n follow_up_answer: SimplesatSearchAnswers_FollowUpAnswerSchema.nullable().optional(),\n follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe(\"List of follow-up answer choices if multiple were available\").nullable().optional(),\n published_as_testimonial: z.boolean().describe(\"Whether this answer is published as a testimonial\").nullable().optional(),\n}).describe(\"Individual answer object.\");\nexport const SimplesatSearchAnswersOutput = z.object({\n next: z.string().describe(\"URL to the next page of results, null if no more pages\").nullable().optional(),\n count: z.number().int().describe(\"Total number of answers matching the query\").nullable(),\n answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe(\"List of answer objects with detailed information\"),\n previous: z.string().describe(\"URL to the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Response model for searching answers.\");\n\nexport const simplesatSearchAnswers = action(\"SIMPLESAT_SEARCH_ANSWERS\", {\n slug: \"simplesat-search-answers\",\n name: \"Search Answers\",\n description: \"Tool to search and retrieve answers from Simplesat with advanced filtering. Use when you need to find specific answers based on filters like date range, choice value, sentiment, survey, customer, or custom attributes. If no filters are provided, returns all answers from the last 30 days by default.\",\n input: SimplesatSearchAnswersInput,\n output: SimplesatSearchAnswersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EAC3L,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B;EACl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,CAAC,CAAC,SAAS;CAClF,yBAAyB,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC/F,0BAA0B,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,2BAA2B;AAQvC,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,kDAAkD;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-answers.mjs","names":[],"sources":["../../src/actions/search-answers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchAnswersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n filters: z.array(z.object({\n key: z.string().describe(\"Filter key (e.g., 'choice_value', 'collaborator', 'company', 'comment', 'customer', 'sentiment', 'metric', 'survey', 'tag', 'team_member', or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by\"),\n comparison: z.enum([\"eq\", \"ne\", \"contains\", \"not_contains\", \"gt\", \"gte\", \"lt\", \"lte\"]).describe(\"Comparison operator for filter values.\").optional(),\n}).passthrough().describe(\"Individual filter object for searching answers.\")).describe(\"Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.\").optional(),\n end_date: z.string().describe(\"End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to apply between multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n start_date: z.string().describe(\"Start date and time in ISO 8601 format to filter answers (e.g., '2024-01-01T00:00:00Z'). If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching answers.\");\nconst SimplesatSearchAnswers_AnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).passthrough().describe(\"Choice information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable().optional(),\n name: z.string().describe(\"Name of the survey\").nullable().optional(),\n type: z.string().describe(\"Type of the survey\").nullable().optional(),\n}).passthrough().describe(\"Survey information in an answer.\");\nconst SimplesatSearchAnswers_AnswerQuestionSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the question\").nullable().optional(),\n text: z.string().describe(\"Text of the question\").nullable().optional(),\n type: z.string().describe(\"Type of the question\").nullable().optional(),\n scale: z.string().describe(\"Scale of the question\").nullable().optional(),\n}).passthrough().describe(\"Question information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSentimentSchema = z.object({\n label: z.string().describe(\"Sentiment label\").nullable().optional(),\n value: z.string().describe(\"Sentiment value (e.g., 'positive', 'neutral', 'negative')\").nullable().optional(),\n}).passthrough().describe(\"Sentiment information in an answer.\");\nconst SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).passthrough().describe(\"Follow-up answer choice information.\");\nconst SimplesatSearchAnswers_FollowUpAnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the follow-up answer\").nullable().optional(),\n choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n rating: z.number().int().describe(\"Rating given in follow-up\").nullable().optional(),\n comment: z.string().describe(\"Comment in follow-up\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"Follow-up answer information.\");\nconst SimplesatSearchAnswers_AnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the answer\").nullable(),\n choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),\n survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),\n choices: z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe(\"List of choices if multiple choices were available\").nullable().optional(),\n comment: z.string().describe(\"Comment text provided by the customer\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the answer was created (ISO 8601 format)\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the answer was last modified (ISO 8601 format)\").nullable().optional(),\n question: SimplesatSearchAnswers_AnswerQuestionSchema.nullable().optional(),\n sentiment: SimplesatSearchAnswers_AnswerSentimentSchema.nullable().optional(),\n response_id: z.number().int().describe(\"Unique identifier of the response\").nullable().optional(),\n choice_label: z.string().describe(\"Label for the choice\").nullable().optional(),\n follow_up_answer: SimplesatSearchAnswers_FollowUpAnswerSchema.nullable().optional(),\n follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe(\"List of follow-up answer choices if multiple were available\").nullable().optional(),\n published_as_testimonial: z.boolean().describe(\"Whether this answer is published as a testimonial\").nullable().optional(),\n}).passthrough().describe(\"Individual answer object.\");\nexport const SimplesatSearchAnswersOutput = z.object({\n next: z.string().describe(\"URL to the next page of results, null if no more pages\").nullable().optional(),\n count: z.number().int().describe(\"Total number of answers matching the query\").nullable(),\n answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe(\"List of answer objects with detailed information\"),\n previous: z.string().describe(\"URL to the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Response model for searching answers.\");\n\nexport const simplesatSearchAnswers = action(\"SIMPLESAT_SEARCH_ANSWERS\", {\n slug: \"simplesat-search-answers\",\n name: \"Search Answers\",\n description: \"Tool to search and retrieve answers from Simplesat with advanced filtering. Use when you need to find specific answers based on filters like date range, choice value, sentiment, survey, customer, or custom attributes. If no filters are provided, returns all answers from the last 30 days by default.\",\n input: SimplesatSearchAnswersInput,\n output: SimplesatSearchAnswersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EAC3L,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B;EAClE,YAAY,EAAE,KAAK;GAAC;GAAM;GAAM;GAAY;GAAgB;GAAM;GAAO;GAAM;EAAK,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CAC1X,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC7K,UAAU,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CA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,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAQrD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,kDAAkD;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -19,7 +19,7 @@ const SimplesatSearchResponsesInput = zod.z.object({
19
19
  ]).describe("The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)"),
20
20
  values: zod.z.array(zod.z.string()).describe("List of values to filter by for the specified key"),
21
21
  comparison: zod.z.enum(["is", "is_not"]).describe("Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.")
22
- }).describe("Filter object for searching responses.")).describe("Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.").optional(),
22
+ }).passthrough().describe("Filter object for searching responses.")).describe("Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.").optional(),
23
23
  end_date: zod.z.string().describe("The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.").optional(),
24
24
  operator: zod.z.enum(["and", "or"]).describe("Operator to combine multiple filters.").optional(),
25
25
  page_size: zod.z.number().int().describe("Number of records per page. Default is 100, maximum is 100.").optional(),
@@ -38,14 +38,14 @@ const SimplesatSearchResponses_ResponseDataSchema = zod.z.object({
38
38
  team_member: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Team member information associated with the response").nullable().optional(),
39
39
  choice_value: zod.z.string().describe("The choice/rating value of the response").nullable().optional(),
40
40
  custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes associated with the response").nullable().optional()
41
- }).describe("Individual response data.");
41
+ }).passthrough().describe("Individual response data.");
42
42
  const SimplesatSearchResponsesOutput = zod.z.object({
43
43
  page: zod.z.number().int().describe("Current page number").nullable().optional(),
44
44
  total: zod.z.number().int().describe("Total number of responses matching the criteria").nullable().optional(),
45
45
  page_size: zod.z.number().int().describe("Number of records per page").nullable().optional(),
46
46
  responses: zod.z.array(SimplesatSearchResponses_ResponseDataSchema).describe("List of response objects matching the search criteria").nullable().optional(),
47
47
  total_pages: zod.z.number().int().describe("Total number of pages").nullable().optional()
48
- }).describe("Response model for searching responses.");
48
+ }).passthrough().describe("Response model for searching responses.");
49
49
  const simplesatSearchResponses = require_action.action("SIMPLESAT_SEARCH_RESPONSES", {
50
50
  slug: "simplesat-search-responses",
51
51
  name: "Search Responses",
@@ -1 +1 @@
1
- {"version":3,"file":"search-responses.cjs","names":["z","action"],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Starts at 1.\").optional(),\n filters: z.array(z.object({\n key: z.enum([\"choice_value\", \"collaborator\", \"company\", \"comment\", \"customer\", \"sentiment\", \"metric\", \"survey\", \"tag\", \"team_member\", \"ticket_id\"]).describe(\"The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by for the specified key\"),\n comparison: z.enum([\"is\", \"is_not\"]).describe(\"Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.\"),\n}).describe(\"Filter object for searching responses.\")).describe(\"Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.\").optional(),\n end_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to combine multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page. Default is 100, maximum is 100.\").optional(),\n start_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to start displaying responses. If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching responses.\");\nconst SimplesatSearchResponses_ResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the response\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the response\").nullable().optional(),\n metric: z.record(z.string(), z.unknown()).describe(\"Metric information associated with the response\").nullable().optional(),\n survey: z.record(z.string(), z.unknown()).describe(\"Survey information associated with the response\").nullable().optional(),\n comment: z.string().describe(\"Text comment provided with the response\").nullable().optional(),\n customer: z.record(z.string(), z.unknown()).describe(\"Customer information associated with the response\").nullable().optional(),\n sentiment: z.string().describe(\"Sentiment of the response (positive, neutral, negative)\").nullable().optional(),\n ticket_id: z.string().describe(\"Associated ticket ID if available\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the response was created\").nullable().optional(),\n team_member: z.record(z.string(), z.unknown()).describe(\"Team member information associated with the response\").nullable().optional(),\n choice_value: z.string().describe(\"The choice/rating value of the response\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the response\").nullable().optional(),\n}).describe(\"Individual response data.\");\nexport const SimplesatSearchResponsesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of responses matching the criteria\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of records per page\").nullable().optional(),\n responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe(\"List of response objects matching the search criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n}).describe(\"Response model for searching responses.\");\n\nexport const simplesatSearchResponses = action(\"SIMPLESAT_SEARCH_RESPONSES\", {\n slug: \"simplesat-search-responses\",\n name: \"Search Responses\",\n description: \"Tool to search and retrieve responses from Simplesat by applying specific filters. Returns all responses from the last 30 days by default if no date range is specified. Supports filtering by date range, choice value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team member, ticket_id, and custom attributes. Use this when you need to find specific responses based on criteria like sentiment, customer, or time period.\",\n input: SimplesatSearchResponsesInput,\n output: SimplesatSearchResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,KAAKA,IAAAA,EAAE,KAAK;GAAC;GAAgB;GAAgB;GAAW;GAAW;GAAY;GAAa;GAAU;GAAU;GAAO;GAAe;EAAW,CAAC,CAAC,CAAC,SAAS,qKAAqK;EAClU,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;EACxF,YAAYA,IAAAA,EAAE,KAAK,CAAC,MAAM,QAAQ,CAAC,CAAC,CAAC,SAAS,wJAAwJ;CACxM,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CACvM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CACpL,UAAUA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,O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1
+ {"version":3,"file":"search-responses.cjs","names":["z","action"],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Starts at 1.\").optional(),\n filters: z.array(z.object({\n key: z.enum([\"choice_value\", \"collaborator\", \"company\", \"comment\", \"customer\", \"sentiment\", \"metric\", \"survey\", \"tag\", \"team_member\", \"ticket_id\"]).describe(\"The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by for the specified key\"),\n comparison: z.enum([\"is\", \"is_not\"]).describe(\"Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.\"),\n}).passthrough().describe(\"Filter object for searching responses.\")).describe(\"Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.\").optional(),\n end_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to combine multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page. Default is 100, maximum is 100.\").optional(),\n start_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to start displaying responses. If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching responses.\");\nconst SimplesatSearchResponses_ResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the response\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the response\").nullable().optional(),\n metric: z.record(z.string(), z.unknown()).describe(\"Metric information associated with the response\").nullable().optional(),\n survey: z.record(z.string(), z.unknown()).describe(\"Survey information associated with the response\").nullable().optional(),\n comment: z.string().describe(\"Text comment provided with the response\").nullable().optional(),\n customer: z.record(z.string(), z.unknown()).describe(\"Customer information associated with the response\").nullable().optional(),\n sentiment: z.string().describe(\"Sentiment of the response (positive, neutral, negative)\").nullable().optional(),\n ticket_id: z.string().describe(\"Associated ticket ID if available\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the response was created\").nullable().optional(),\n team_member: z.record(z.string(), z.unknown()).describe(\"Team member information associated with the response\").nullable().optional(),\n choice_value: z.string().describe(\"The choice/rating value of the response\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the response\").nullable().optional(),\n}).passthrough().describe(\"Individual response data.\");\nexport const SimplesatSearchResponsesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of responses matching the criteria\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of records per page\").nullable().optional(),\n responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe(\"List of response objects matching the search criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n}).passthrough().describe(\"Response model for searching responses.\");\n\nexport const simplesatSearchResponses = action(\"SIMPLESAT_SEARCH_RESPONSES\", {\n slug: \"simplesat-search-responses\",\n name: \"Search Responses\",\n description: \"Tool to search and retrieve responses from Simplesat by applying specific filters. Returns all responses from the last 30 days by default if no date range is specified. Supports filtering by date range, choice value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team member, ticket_id, and custom attributes. Use this when you need to find specific responses based on criteria like sentiment, customer, or time period.\",\n input: SimplesatSearchResponsesInput,\n output: SimplesatSearchResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,KAAKA,IAAAA,EAAE,KAAK;GAAC;GAAgB;GAAgB;GAAW;GAAW;GAAY;GAA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AO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -22,7 +22,7 @@ declare const SimplesatSearchResponsesInput: z.ZodObject<{
22
22
  is: "is";
23
23
  is_not: "is_not";
24
24
  }>;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  end_date: z.ZodOptional<z.ZodString>;
27
27
  operator: z.ZodOptional<z.ZodEnum<{
28
28
  and: "and";
@@ -48,12 +48,13 @@ declare const SimplesatSearchResponsesOutput: z.ZodObject<{
48
48
  team_member: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
49
  choice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
51
- }, z.core.$strip>>>>;
51
+ }, z.core.$loose>>>>;
52
52
  total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
- }, z.core.$strip>;
53
+ }, z.core.$loose>;
54
54
  declare const simplesatSearchResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
55
55
  page?: number | undefined;
56
56
  filters?: {
57
+ [x: string]: unknown;
57
58
  key: "company" | "metric" | "survey" | "comment" | "sentiment" | "choice_value" | "collaborator" | "customer" | "tag" | "team_member" | "ticket_id";
58
59
  values: string[];
59
60
  comparison: "is" | "is_not";
@@ -22,7 +22,7 @@ declare const SimplesatSearchResponsesInput: z.ZodObject<{
22
22
  is: "is";
23
23
  is_not: "is_not";
24
24
  }>;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  end_date: z.ZodOptional<z.ZodString>;
27
27
  operator: z.ZodOptional<z.ZodEnum<{
28
28
  and: "and";
@@ -48,12 +48,13 @@ declare const SimplesatSearchResponsesOutput: z.ZodObject<{
48
48
  team_member: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
49
  choice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
51
- }, z.core.$strip>>>>;
51
+ }, z.core.$loose>>>>;
52
52
  total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
- }, z.core.$strip>;
53
+ }, z.core.$loose>;
54
54
  declare const simplesatSearchResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
55
55
  page?: number | undefined;
56
56
  filters?: {
57
+ [x: string]: unknown;
57
58
  key: "company" | "metric" | "survey" | "comment" | "sentiment" | "choice_value" | "collaborator" | "customer" | "tag" | "team_member" | "ticket_id";
58
59
  values: string[];
59
60
  comparison: "is" | "is_not";
@@ -19,7 +19,7 @@ const SimplesatSearchResponsesInput = z.object({
19
19
  ]).describe("The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)"),
20
20
  values: z.array(z.string()).describe("List of values to filter by for the specified key"),
21
21
  comparison: z.enum(["is", "is_not"]).describe("Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.")
22
- }).describe("Filter object for searching responses.")).describe("Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.").optional(),
22
+ }).passthrough().describe("Filter object for searching responses.")).describe("Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.").optional(),
23
23
  end_date: z.string().describe("The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.").optional(),
24
24
  operator: z.enum(["and", "or"]).describe("Operator to combine multiple filters.").optional(),
25
25
  page_size: z.number().int().describe("Number of records per page. Default is 100, maximum is 100.").optional(),
@@ -38,7 +38,7 @@ const SimplesatSearchResponses_ResponseDataSchema = z.object({
38
38
  team_member: z.record(z.string(), z.unknown()).describe("Team member information associated with the response").nullable().optional(),
39
39
  choice_value: z.string().describe("The choice/rating value of the response").nullable().optional(),
40
40
  custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes associated with the response").nullable().optional()
41
- }).describe("Individual response data.");
41
+ }).passthrough().describe("Individual response data.");
42
42
  const simplesatSearchResponses = action("SIMPLESAT_SEARCH_RESPONSES", {
43
43
  slug: "simplesat-search-responses",
44
44
  name: "Search Responses",
@@ -50,7 +50,7 @@ const simplesatSearchResponses = action("SIMPLESAT_SEARCH_RESPONSES", {
50
50
  page_size: z.number().int().describe("Number of records per page").nullable().optional(),
51
51
  responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe("List of response objects matching the search criteria").nullable().optional(),
52
52
  total_pages: z.number().int().describe("Total number of pages").nullable().optional()
53
- }).describe("Response model for searching responses.")
53
+ }).passthrough().describe("Response model for searching responses.")
54
54
  });
55
55
  //#endregion
56
56
  export { simplesatSearchResponses };
@@ -1 +1 @@
1
- {"version":3,"file":"search-responses.mjs","names":[],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Starts at 1.\").optional(),\n filters: z.array(z.object({\n key: z.enum([\"choice_value\", \"collaborator\", \"company\", \"comment\", \"customer\", \"sentiment\", \"metric\", \"survey\", \"tag\", \"team_member\", \"ticket_id\"]).describe(\"The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by for the specified key\"),\n comparison: z.enum([\"is\", \"is_not\"]).describe(\"Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.\"),\n}).describe(\"Filter object for searching responses.\")).describe(\"Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.\").optional(),\n end_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to combine multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page. Default is 100, maximum is 100.\").optional(),\n start_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to start displaying responses. If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching responses.\");\nconst SimplesatSearchResponses_ResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the response\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the response\").nullable().optional(),\n metric: z.record(z.string(), z.unknown()).describe(\"Metric information associated with the response\").nullable().optional(),\n survey: z.record(z.string(), z.unknown()).describe(\"Survey information associated with the response\").nullable().optional(),\n comment: z.string().describe(\"Text comment provided with the response\").nullable().optional(),\n customer: z.record(z.string(), z.unknown()).describe(\"Customer information associated with the response\").nullable().optional(),\n sentiment: z.string().describe(\"Sentiment of the response (positive, neutral, negative)\").nullable().optional(),\n ticket_id: z.string().describe(\"Associated ticket ID if available\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the response was created\").nullable().optional(),\n team_member: z.record(z.string(), z.unknown()).describe(\"Team member information associated with the response\").nullable().optional(),\n choice_value: z.string().describe(\"The choice/rating value of the response\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the response\").nullable().optional(),\n}).describe(\"Individual response data.\");\nexport const SimplesatSearchResponsesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of responses matching the criteria\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of records per page\").nullable().optional(),\n responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe(\"List of response objects matching the search criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n}).describe(\"Response model for searching responses.\");\n\nexport const simplesatSearchResponses = action(\"SIMPLESAT_SEARCH_RESPONSES\", {\n slug: \"simplesat-search-responses\",\n name: \"Search Responses\",\n description: \"Tool to search and retrieve responses from Simplesat by applying specific filters. Returns all responses from the last 30 days by default if no date range is specified. Supports filtering by date range, choice value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team member, ticket_id, and custom attributes. Use this when you need to find specific responses based on criteria like sentiment, customer, or time period.\",\n input: SimplesatSearchResponsesInput,\n output: SimplesatSearchResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,KAAK,EAAE,KAAK;GAAC;GAAgB;GAAgB;GAAW;GAAW;GAAY;GAAa;GAAU;GAAU;GAAO;GAAe;EAAW,CAAC,CAAC,CAAC,SAAS,qKAAqK;EAClU,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;EACxF,YAAY,EAAE,KAAK,CAAC,MAAM,QAAQ,CAAC,CAAC,CAAC,SAAS,wJAAwJ;CACxM,CAAC,CAAC,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ources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Starts at 1.\").optional(),\n filters: z.array(z.object({\n key: z.enum([\"choice_value\", \"collaborator\", \"company\", \"comment\", \"customer\", \"sentiment\", \"metric\", \"survey\", \"tag\", \"team_member\", \"ticket_id\"]).describe(\"The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by for the specified key\"),\n comparison: z.enum([\"is\", \"is_not\"]).describe(\"Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.\"),\n}).passthrough().describe(\"Filter object for searching responses.\")).describe(\"Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.\").optional(),\n end_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to combine multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page. Default is 100, maximum is 100.\").optional(),\n start_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to start displaying responses. If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching responses.\");\nconst SimplesatSearchResponses_ResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the response\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the response\").nullable().optional(),\n metric: z.record(z.string(), z.unknown()).describe(\"Metric information associated with the response\").nullable().optional(),\n survey: z.record(z.string(), z.unknown()).describe(\"Survey information associated with the response\").nullable().optional(),\n comment: z.string().describe(\"Text comment provided with the response\").nullable().optional(),\n customer: z.record(z.string(), z.unknown()).describe(\"Customer information associated with the response\").nullable().optional(),\n sentiment: z.string().describe(\"Sentiment of the response (positive, neutral, negative)\").nullable().optional(),\n ticket_id: z.string().describe(\"Associated ticket ID if available\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the response was created\").nullable().optional(),\n team_member: z.record(z.string(), z.unknown()).describe(\"Team member information associated with the response\").nullable().optional(),\n choice_value: z.string().describe(\"The choice/rating value of the response\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the response\").nullable().optional(),\n}).passthrough().describe(\"Individual response data.\");\nexport const SimplesatSearchResponsesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of responses matching the criteria\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of records per page\").nullable().optional(),\n responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe(\"List of response objects matching the search criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n}).passthrough().describe(\"Response model for searching responses.\");\n\nexport const simplesatSearchResponses = action(\"SIMPLESAT_SEARCH_RESPONSES\", {\n slug: \"simplesat-search-responses\",\n name: \"Search Responses\",\n description: \"Tool to search and retrieve responses from Simplesat by applying specific filters. Returns all responses from the last 30 days by default if no date range is specified. Supports filtering by date range, choice value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team member, ticket_id, and custom attributes. Use this when you need to find specific responses based on criteria like sentiment, customer, or time period.\",\n input: SimplesatSearchResponsesInput,\n output: SimplesatSearchResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,KAAK,EAAE,KAAK;GAAC;GAAgB;GAAgB;GAAW;GAAW;GAAY;GAAa;GAAU;GAAU;GAAO;GAAe;EAAW,CAAC,CAAC,CAAC,SAAS,qKAAqK;EAClU,QAAQ,EA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