@keystrokehq/freshservice 0.1.1 → 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 (85) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/bulk-update-tickets.cjs +3 -3
  4. package/dist/actions/bulk-update-tickets.cjs.map +1 -1
  5. package/dist/actions/bulk-update-tickets.d.cts +4 -11
  6. package/dist/actions/bulk-update-tickets.d.mts +4 -11
  7. package/dist/actions/bulk-update-tickets.mjs +3 -3
  8. package/dist/actions/bulk-update-tickets.mjs.map +1 -1
  9. package/dist/actions/create-service-request.cjs +38 -38
  10. package/dist/actions/create-service-request.cjs.map +1 -1
  11. package/dist/actions/create-service-request.d.cts +40 -77
  12. package/dist/actions/create-service-request.d.cts.map +1 -1
  13. package/dist/actions/create-service-request.d.mts +40 -77
  14. package/dist/actions/create-service-request.d.mts.map +1 -1
  15. package/dist/actions/create-service-request.mjs +38 -38
  16. package/dist/actions/create-service-request.mjs.map +1 -1
  17. package/dist/actions/create-ticket.cjs +26 -26
  18. package/dist/actions/create-ticket.cjs.map +1 -1
  19. package/dist/actions/create-ticket.d.cts +27 -67
  20. package/dist/actions/create-ticket.d.cts.map +1 -1
  21. package/dist/actions/create-ticket.d.mts +27 -67
  22. package/dist/actions/create-ticket.d.mts.map +1 -1
  23. package/dist/actions/create-ticket.mjs +26 -26
  24. package/dist/actions/create-ticket.mjs.map +1 -1
  25. package/dist/actions/delete-release.cjs +1 -1
  26. package/dist/actions/delete-release.cjs.map +1 -1
  27. package/dist/actions/delete-release.d.cts +2 -4
  28. package/dist/actions/delete-release.d.mts +2 -4
  29. package/dist/actions/delete-release.mjs +1 -1
  30. package/dist/actions/delete-release.mjs.map +1 -1
  31. package/dist/actions/delete-solution-article.cjs +1 -1
  32. package/dist/actions/delete-solution-article.cjs.map +1 -1
  33. package/dist/actions/delete-solution-article.d.cts +2 -5
  34. package/dist/actions/delete-solution-article.d.mts +2 -5
  35. package/dist/actions/delete-solution-article.mjs +1 -1
  36. package/dist/actions/delete-solution-article.mjs.map +1 -1
  37. package/dist/actions/delete-solution-category.cjs +3 -3
  38. package/dist/actions/delete-solution-category.cjs.map +1 -1
  39. package/dist/actions/delete-solution-category.d.cts +4 -7
  40. package/dist/actions/delete-solution-category.d.mts +4 -7
  41. package/dist/actions/delete-solution-category.mjs +3 -3
  42. package/dist/actions/delete-solution-category.mjs.map +1 -1
  43. package/dist/actions/get-problem-form-fields-by-workspace.cjs +7 -7
  44. package/dist/actions/get-problem-form-fields-by-workspace.cjs.map +1 -1
  45. package/dist/actions/get-problem-form-fields-by-workspace.d.cts +8 -32
  46. package/dist/actions/get-problem-form-fields-by-workspace.d.mts +8 -32
  47. package/dist/actions/get-problem-form-fields-by-workspace.mjs +7 -7
  48. package/dist/actions/get-problem-form-fields-by-workspace.mjs.map +1 -1
  49. package/dist/actions/get-release-form-fields.cjs +7 -7
  50. package/dist/actions/get-release-form-fields.cjs.map +1 -1
  51. package/dist/actions/get-release-form-fields.d.cts +8 -25
  52. package/dist/actions/get-release-form-fields.d.cts.map +1 -1
  53. package/dist/actions/get-release-form-fields.d.mts +8 -25
  54. package/dist/actions/get-release-form-fields.d.mts.map +1 -1
  55. package/dist/actions/get-release-form-fields.mjs +7 -7
  56. package/dist/actions/get-release-form-fields.mjs.map +1 -1
  57. package/dist/actions/get-ticket.cjs +30 -30
  58. package/dist/actions/get-ticket.cjs.map +1 -1
  59. package/dist/actions/get-ticket.d.cts +31 -71
  60. package/dist/actions/get-ticket.d.cts.map +1 -1
  61. package/dist/actions/get-ticket.d.mts +31 -71
  62. package/dist/actions/get-ticket.d.mts.map +1 -1
  63. package/dist/actions/get-ticket.mjs +30 -30
  64. package/dist/actions/get-ticket.mjs.map +1 -1
  65. package/dist/actions/list-locations.cjs +10 -10
  66. package/dist/actions/list-locations.cjs.map +1 -1
  67. package/dist/actions/list-locations.d.cts +11 -30
  68. package/dist/actions/list-locations.d.mts +11 -30
  69. package/dist/actions/list-locations.mjs +10 -10
  70. package/dist/actions/list-locations.mjs.map +1 -1
  71. package/dist/actions/list-service-catalog-items.cjs +18 -18
  72. package/dist/actions/list-service-catalog-items.cjs.map +1 -1
  73. package/dist/actions/list-service-catalog-items.d.cts +19 -38
  74. package/dist/actions/list-service-catalog-items.d.mts +19 -38
  75. package/dist/actions/list-service-catalog-items.mjs +18 -18
  76. package/dist/actions/list-service-catalog-items.mjs.map +1 -1
  77. package/dist/actions/list-tickets.cjs +30 -30
  78. package/dist/actions/list-tickets.cjs.map +1 -1
  79. package/dist/actions/list-tickets.d.cts +31 -71
  80. package/dist/actions/list-tickets.d.cts.map +1 -1
  81. package/dist/actions/list-tickets.d.mts +31 -71
  82. package/dist/actions/list-tickets.d.mts.map +1 -1
  83. package/dist/actions/list-tickets.mjs +30 -30
  84. package/dist/actions/list-tickets.mjs.map +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-ticket.d.cts","names":[],"sources":["../../src/actions/create-ticket.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4D7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAMnC,MAAA"}
1
+ {"version":3,"file":"create-ticket.d.cts","names":[],"sources":["../../src/actions/create-ticket.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4D7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -49,13 +49,13 @@ declare const FreshserviceCreateTicketOutput: z.ZodObject<{
49
49
  ticket: z.ZodNullable<z.ZodObject<{
50
50
  id: z.ZodNullable<z.ZodNumber>;
51
51
  spam: z.ZodNullable<z.ZodBoolean>;
52
- tags: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
53
- type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
52
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
53
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
54
54
  Incident: "Incident";
55
55
  "Service Request": "Service Request";
56
56
  }>>>;
57
- due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
58
- impact: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
57
+ due_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ impact: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
59
59
  low: "low";
60
60
  medium: "medium";
61
61
  high: "high";
@@ -75,46 +75,46 @@ declare const FreshserviceCreateTicketOutput: z.ZodObject<{
75
75
  closed: "closed";
76
76
  }>>;
77
77
  subject: z.ZodNullable<z.ZodString>;
78
- urgency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
78
+ urgency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
79
79
  low: "low";
80
80
  medium: "medium";
81
81
  high: "high";
82
82
  critical: "critical";
83
83
  }>>>;
84
- group_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
84
+ group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
85
  priority: z.ZodNullable<z.ZodEnum<{
86
86
  low: "low";
87
87
  medium: "medium";
88
88
  high: "high";
89
89
  urgent: "urgent";
90
90
  }>>;
91
- fr_due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
92
- to_emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
91
+ fr_due_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ to_emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
93
93
  created_at: z.ZodNullable<z.ZodString>;
94
94
  display_id: z.ZodNullable<z.ZodNumber>;
95
- group_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
95
+ group_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
96
  updated_at: z.ZodNullable<z.ZodString>;
97
97
  description: z.ZodNullable<z.ZodString>;
98
- impact_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
99
- source_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
100
- status_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
98
+ impact_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ source_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ status_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
101
  is_escalated: z.ZodNullable<z.ZodBoolean>;
102
102
  requester_id: z.ZodNullable<z.ZodNumber>;
103
- responder_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
104
- urgency_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
105
- custom_fields: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
106
- department_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
107
- priority_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
108
- assoc_asset_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
109
- requester_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
110
- responder_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
111
- assoc_change_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
112
- department_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
113
- assoc_problem_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
103
+ responder_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
104
+ urgency_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
106
+ department_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
+ priority_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ assoc_asset_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
109
+ requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ responder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ assoc_change_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
+ department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ assoc_problem_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
114
114
  description_text: z.ZodNullable<z.ZodString>;
115
- assoc_change_cause_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
116
- }, z.core.$strip>>;
117
- }, z.core.$strip>;
115
+ assoc_change_cause_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
+ }, z.core.$loose>>;
117
+ }, z.core.$loose>;
118
118
  declare const freshserviceCreateTicket: import("@keystrokehq/action").WorkflowActionDefinition<{
119
119
  status: "open" | "pending" | "resolved" | "closed";
120
120
  subject: string;
@@ -129,47 +129,7 @@ declare const freshserviceCreateTicket: import("@keystrokehq/action").WorkflowAc
129
129
  cc_emails?: string[] | undefined;
130
130
  requester_id?: number | undefined;
131
131
  email_config_id?: number | undefined;
132
- }, {
133
- ticket: {
134
- id: number | null;
135
- spam: boolean | null;
136
- source: "email" | "portal" | "phone" | "chat" | "twitter" | "facebook" | null;
137
- status: "open" | "pending" | "resolved" | "closed" | null;
138
- subject: string | null;
139
- priority: "low" | "medium" | "high" | "urgent" | null;
140
- created_at: string | null;
141
- display_id: number | null;
142
- updated_at: string | null;
143
- description: string | null;
144
- is_escalated: boolean | null;
145
- requester_id: number | null;
146
- description_text: string | null;
147
- tags?: string[] | undefined;
148
- type?: "Incident" | "Service Request" | undefined;
149
- due_by?: string | undefined;
150
- impact?: "low" | "medium" | "high" | undefined;
151
- urgency?: "low" | "medium" | "high" | "critical" | undefined;
152
- group_id?: number | undefined;
153
- fr_due_by?: string | undefined;
154
- to_emails?: string[] | undefined;
155
- group_name?: string | undefined;
156
- impact_name?: string | undefined;
157
- source_name?: string | undefined;
158
- status_name?: string | undefined;
159
- responder_id?: number | undefined;
160
- urgency_name?: string | undefined;
161
- custom_fields?: Record<string, unknown> | undefined;
162
- department_id?: number | undefined;
163
- priority_name?: string | undefined;
164
- assoc_asset_id?: number | undefined;
165
- requester_name?: string | undefined;
166
- responder_name?: string | undefined;
167
- assoc_change_id?: number | undefined;
168
- department_name?: string | undefined;
169
- assoc_problem_id?: number | undefined;
170
- assoc_change_cause_id?: number | undefined;
171
- } | null;
172
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
132
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
173
133
  //#endregion
174
134
  export { freshserviceCreateTicket };
175
135
  //# sourceMappingURL=create-ticket.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-ticket.d.mts","names":[],"sources":["../../src/actions/create-ticket.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4D7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAMnC,MAAA"}
1
+ {"version":3,"file":"create-ticket.d.mts","names":[],"sources":["../../src/actions/create-ticket.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4D7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -77,48 +77,48 @@ const FreshserviceCreateTicket_TicketPrioritySchema = z.enum([
77
77
  const FreshserviceCreateTicket_TicketSchema = z.object({
78
78
  id: z.number().int().describe("Unique ticket ID").nullable(),
79
79
  spam: z.boolean().describe("Whether the ticket is marked as spam").nullable(),
80
- tags: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Tags on the ticket").optional()),
81
- type: z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateTicket_TicketTypeSchema.optional()),
82
- due_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Due-by timestamp").optional()),
83
- impact: z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateTicket_TicketImpactSchema.optional()),
80
+ tags: z.array(z.string()).describe("Tags on the ticket").nullable().optional(),
81
+ type: FreshserviceCreateTicket_TicketTypeSchema.nullable().optional(),
82
+ due_by: z.string().describe("Due-by timestamp").nullable().optional(),
83
+ impact: FreshserviceCreateTicket_TicketImpactSchema.nullable().optional(),
84
84
  source: FreshserviceCreateTicket_TicketSourceSchema.nullable(),
85
85
  status: FreshserviceCreateTicket_TicketStatusSchema.nullable(),
86
86
  subject: z.string().describe("Subject of the ticket").nullable(),
87
- urgency: z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateTicket_TicketUrgencySchema.optional()),
88
- group_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("ID of the support group").optional()),
87
+ urgency: FreshserviceCreateTicket_TicketUrgencySchema.nullable().optional(),
88
+ group_id: z.number().int().describe("ID of the support group").nullable().optional(),
89
89
  priority: FreshserviceCreateTicket_TicketPrioritySchema.nullable(),
90
- fr_due_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("SLA due-by timestamp").optional()),
91
- to_emails: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Email addresses the ticket was sent to").optional()),
90
+ fr_due_by: z.string().describe("SLA due-by timestamp").nullable().optional(),
91
+ to_emails: z.array(z.string()).describe("Email addresses the ticket was sent to").nullable().optional(),
92
92
  created_at: z.string().describe("Ticket creation timestamp").nullable(),
93
93
  display_id: z.number().int().describe("Display ID of the ticket").nullable(),
94
- group_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the support group").optional()),
94
+ group_name: z.string().describe("Name of the support group").nullable().optional(),
95
95
  updated_at: z.string().describe("Last updated timestamp").nullable(),
96
96
  description: z.string().describe("HTML description of the ticket").nullable(),
97
- impact_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Impact name").optional()),
98
- source_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Source name").optional()),
99
- status_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status name").optional()),
97
+ impact_name: z.string().describe("Impact name").nullable().optional(),
98
+ source_name: z.string().describe("Source name").nullable().optional(),
99
+ status_name: z.string().describe("Status name").nullable().optional(),
100
100
  is_escalated: z.boolean().describe("Whether the ticket was escalated").nullable(),
101
101
  requester_id: z.number().int().describe("User ID of the requester").nullable(),
102
- responder_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("User ID of the assigned agent").optional()),
103
- urgency_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Urgency name").optional()),
104
- custom_fields: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Custom fields of the ticket").optional()),
105
- department_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("ID of the department").optional()),
106
- priority_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Priority name").optional()),
107
- assoc_asset_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated asset ID").optional()),
108
- requester_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the requester").optional()),
109
- responder_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the assigned agent").optional()),
110
- assoc_change_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated change ID").optional()),
111
- department_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the department").optional()),
112
- assoc_problem_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated problem ID").optional()),
102
+ responder_id: z.number().int().describe("User ID of the assigned agent").nullable().optional(),
103
+ urgency_name: z.string().describe("Urgency name").nullable().optional(),
104
+ custom_fields: z.record(z.string(), z.unknown()).describe("Custom fields of the ticket").nullable().optional(),
105
+ department_id: z.number().int().describe("ID of the department").nullable().optional(),
106
+ priority_name: z.string().describe("Priority name").nullable().optional(),
107
+ assoc_asset_id: z.number().int().describe("Associated asset ID").nullable().optional(),
108
+ requester_name: z.string().describe("Name of the requester").nullable().optional(),
109
+ responder_name: z.string().describe("Name of the assigned agent").nullable().optional(),
110
+ assoc_change_id: z.number().int().describe("Associated change ID").nullable().optional(),
111
+ department_name: z.string().describe("Name of the department").nullable().optional(),
112
+ assoc_problem_id: z.number().int().describe("Associated problem ID").nullable().optional(),
113
113
  description_text: z.string().describe("Plain text description of the ticket").nullable(),
114
- assoc_change_cause_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated change cause ID").optional())
115
- }).describe("Model representing a Freshservice ticket.");
114
+ assoc_change_cause_id: z.number().int().describe("Associated change cause ID").nullable().optional()
115
+ }).passthrough().describe("Model representing a Freshservice ticket.");
116
116
  const freshserviceCreateTicket = action("FRESHSERVICE_CREATE_TICKET", {
117
117
  slug: "freshservice-create-ticket",
118
118
  name: "Create Ticket",
119
119
  description: "Tool to create a new ticket. Use when you need to log an incident or service request.",
120
120
  input: FreshserviceCreateTicketInput,
121
- output: z.object({ ticket: FreshserviceCreateTicket_TicketSchema.nullable() }).describe("Response model for ticket creation.")
121
+ output: z.object({ ticket: FreshserviceCreateTicket_TicketSchema.nullable() }).passthrough().describe("Response model for ticket creation.")
122
122
  });
123
123
  //#endregion
124
124
  export { freshserviceCreateTicket };
@@ -1 +1 @@
1
- {"version":3,"file":"create-ticket.mjs","names":[],"sources":["../../src/actions/create-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceCreateTicketInput = z.object({\n name: z.string().describe(\"Name of the requester (creates new contact if not found)\").optional(),\n type: z.enum([\"Incident\", \"Service Request\"]).describe(\"Enum for Freshservice ticket type values.\").optional(),\n email: z.string().describe(\"Email address of the requester. Provide either requester_id or email\").optional(),\n impact: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\").optional(),\n source: z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\").optional(),\n status: z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Status of the ticket.\"),\n subject: z.string().describe(\"Subject of the ticket\"),\n urgency: z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\").optional(),\n priority: z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Priority of the ticket.\"),\n cc_emails: z.array(z.string()).describe(\"CC email addresses for outbound email tickets\").optional(),\n description: z.string().describe(\"HTML description of the ticket\"),\n requester_id: z.number().int().describe(\"User ID of the requester. Provide either requester_id or email\").optional(),\n email_config_id: z.number().int().describe(\"Email config ID for outbound email ticket creation\").optional(),\n}).describe(\"Request model for creating a ticket in Freshservice.\");\nconst FreshserviceCreateTicket_TicketTypeSchema = z.enum([\"Incident\", \"Service Request\"]).describe(\"Enum for Freshservice ticket type values.\");\nconst FreshserviceCreateTicket_TicketImpactSchema = z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\");\nconst FreshserviceCreateTicket_TicketSourceSchema = z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\");\nconst FreshserviceCreateTicket_TicketStatusSchema = z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Enum for Freshservice ticket status values.\");\nconst FreshserviceCreateTicket_TicketUrgencySchema = z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\");\nconst FreshserviceCreateTicket_TicketPrioritySchema = z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Enum for Freshservice ticket priority values.\");\nconst FreshserviceCreateTicket_TicketSchema = z.object({\n id: z.number().int().describe(\"Unique ticket ID\").nullable(),\n spam: z.boolean().describe(\"Whether the ticket is marked as spam\").nullable(),\n tags: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Tags on the ticket\").optional()),\n type: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateTicket_TicketTypeSchema.optional()),\n due_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Due-by timestamp\").optional()),\n impact: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateTicket_TicketImpactSchema.optional()),\n source: FreshserviceCreateTicket_TicketSourceSchema.nullable(),\n status: FreshserviceCreateTicket_TicketStatusSchema.nullable(),\n subject: z.string().describe(\"Subject of the ticket\").nullable(),\n urgency: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateTicket_TicketUrgencySchema.optional()),\n group_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the support group\").optional()),\n priority: FreshserviceCreateTicket_TicketPrioritySchema.nullable(),\n fr_due_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"SLA due-by timestamp\").optional()),\n to_emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Email addresses the ticket was sent to\").optional()),\n created_at: z.string().describe(\"Ticket creation timestamp\").nullable(),\n display_id: z.number().int().describe(\"Display ID of the ticket\").nullable(),\n group_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the support group\").optional()),\n updated_at: z.string().describe(\"Last updated timestamp\").nullable(),\n description: z.string().describe(\"HTML description of the ticket\").nullable(),\n impact_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Impact name\").optional()),\n source_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Source name\").optional()),\n status_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status name\").optional()),\n is_escalated: z.boolean().describe(\"Whether the ticket was escalated\").nullable(),\n requester_id: z.number().int().describe(\"User ID of the requester\").nullable(),\n responder_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"User ID of the assigned agent\").optional()),\n urgency_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Urgency name\").optional()),\n custom_fields: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Custom fields of the ticket\").optional()),\n department_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the department\").optional()),\n priority_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Priority name\").optional()),\n assoc_asset_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated asset ID\").optional()),\n requester_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the requester\").optional()),\n responder_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the assigned agent\").optional()),\n assoc_change_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated change ID\").optional()),\n department_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the department\").optional()),\n assoc_problem_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated problem ID\").optional()),\n description_text: z.string().describe(\"Plain text description of the ticket\").nullable(),\n assoc_change_cause_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated change cause ID\").optional()),\n}).describe(\"Model representing a Freshservice ticket.\");\nexport const FreshserviceCreateTicketOutput = z.object({\n ticket: FreshserviceCreateTicket_TicketSchema.nullable(),\n}).describe(\"Response model for ticket creation.\");\n\nexport const freshserviceCreateTicket = action(\"FRESHSERVICE_CREATE_TICKET\", {\n slug: \"freshservice-create-ticket\",\n name: \"Create Ticket\",\n description: \"Tool to create a new ticket. Use when you need to log an incident or service request.\",\n input: FreshserviceCreateTicketInput,\n output: FreshserviceCreateTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,KAAK,CAAC,YAAY,iBAAiB,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,KAAK;EAAC;EAAO;EAAU;CAAM,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,KAAK;EAAC;EAAS;EAAU;EAAS;EAAQ;EAAW;CAAU,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7I,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAY;CAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACpD,SAAS,EAAE,KAAK;EAAC;EAAO;EAAU;EAAQ;CAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzH,UAAU,EAAE,KAAK;EAAC;EAAO;EAAU;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB;CACxF,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;AACV,CAAC"}
1
+ {"version":3,"file":"create-ticket.mjs","names":[],"sources":["../../src/actions/create-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceCreateTicketInput = z.object({\n name: z.string().describe(\"Name of the requester (creates new contact if not found)\").optional(),\n type: z.enum([\"Incident\", \"Service Request\"]).describe(\"Enum for Freshservice ticket type values.\").optional(),\n email: z.string().describe(\"Email address of the requester. Provide either requester_id or email\").optional(),\n impact: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\").optional(),\n source: z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\").optional(),\n status: z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Status of the ticket.\"),\n subject: z.string().describe(\"Subject of the ticket\"),\n urgency: z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\").optional(),\n priority: z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Priority of the ticket.\"),\n cc_emails: z.array(z.string()).describe(\"CC email addresses for outbound email tickets\").optional(),\n description: z.string().describe(\"HTML description of the ticket\"),\n requester_id: z.number().int().describe(\"User ID of the requester. Provide either requester_id or email\").optional(),\n email_config_id: z.number().int().describe(\"Email config ID for outbound email ticket creation\").optional(),\n}).describe(\"Request model for creating a ticket in Freshservice.\");\nconst FreshserviceCreateTicket_TicketTypeSchema = z.enum([\"Incident\", \"Service Request\"]).describe(\"Enum for Freshservice ticket type values.\");\nconst FreshserviceCreateTicket_TicketImpactSchema = z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\");\nconst FreshserviceCreateTicket_TicketSourceSchema = z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\");\nconst FreshserviceCreateTicket_TicketStatusSchema = z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Enum for Freshservice ticket status values.\");\nconst FreshserviceCreateTicket_TicketUrgencySchema = z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\");\nconst FreshserviceCreateTicket_TicketPrioritySchema = z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Enum for Freshservice ticket priority values.\");\nconst FreshserviceCreateTicket_TicketSchema = z.object({\n id: z.number().int().describe(\"Unique ticket ID\").nullable(),\n spam: z.boolean().describe(\"Whether the ticket is marked as spam\").nullable(),\n tags: z.array(z.string()).describe(\"Tags on the ticket\").nullable().optional(),\n type: FreshserviceCreateTicket_TicketTypeSchema.nullable().optional(),\n due_by: z.string().describe(\"Due-by timestamp\").nullable().optional(),\n impact: FreshserviceCreateTicket_TicketImpactSchema.nullable().optional(),\n source: FreshserviceCreateTicket_TicketSourceSchema.nullable(),\n status: FreshserviceCreateTicket_TicketStatusSchema.nullable(),\n subject: z.string().describe(\"Subject of the ticket\").nullable(),\n urgency: FreshserviceCreateTicket_TicketUrgencySchema.nullable().optional(),\n group_id: z.number().int().describe(\"ID of the support group\").nullable().optional(),\n priority: FreshserviceCreateTicket_TicketPrioritySchema.nullable(),\n fr_due_by: z.string().describe(\"SLA due-by timestamp\").nullable().optional(),\n to_emails: z.array(z.string()).describe(\"Email addresses the ticket was sent to\").nullable().optional(),\n created_at: z.string().describe(\"Ticket creation timestamp\").nullable(),\n display_id: z.number().int().describe(\"Display ID of the ticket\").nullable(),\n group_name: z.string().describe(\"Name of the support group\").nullable().optional(),\n updated_at: z.string().describe(\"Last updated timestamp\").nullable(),\n description: z.string().describe(\"HTML description of the ticket\").nullable(),\n impact_name: z.string().describe(\"Impact name\").nullable().optional(),\n source_name: z.string().describe(\"Source name\").nullable().optional(),\n status_name: z.string().describe(\"Status name\").nullable().optional(),\n is_escalated: z.boolean().describe(\"Whether the ticket was escalated\").nullable(),\n requester_id: z.number().int().describe(\"User ID of the requester\").nullable(),\n responder_id: z.number().int().describe(\"User ID of the assigned agent\").nullable().optional(),\n urgency_name: z.string().describe(\"Urgency name\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields of the ticket\").nullable().optional(),\n department_id: z.number().int().describe(\"ID of the department\").nullable().optional(),\n priority_name: z.string().describe(\"Priority name\").nullable().optional(),\n assoc_asset_id: z.number().int().describe(\"Associated asset ID\").nullable().optional(),\n requester_name: z.string().describe(\"Name of the requester\").nullable().optional(),\n responder_name: z.string().describe(\"Name of the assigned agent\").nullable().optional(),\n assoc_change_id: z.number().int().describe(\"Associated change ID\").nullable().optional(),\n department_name: z.string().describe(\"Name of the department\").nullable().optional(),\n assoc_problem_id: z.number().int().describe(\"Associated problem ID\").nullable().optional(),\n description_text: z.string().describe(\"Plain text description of the ticket\").nullable(),\n assoc_change_cause_id: z.number().int().describe(\"Associated change cause ID\").nullable().optional(),\n}).passthrough().describe(\"Model representing a Freshservice ticket.\");\nexport const FreshserviceCreateTicketOutput = z.object({\n ticket: FreshserviceCreateTicket_TicketSchema.nullable(),\n}).passthrough().describe(\"Response model for ticket creation.\");\n\nexport const freshserviceCreateTicket = action(\"FRESHSERVICE_CREATE_TICKET\", {\n slug: \"freshservice-create-ticket\",\n name: \"Create Ticket\",\n description: \"Tool to create a new ticket. Use when you need to log an incident or service request.\",\n input: FreshserviceCreateTicketInput,\n output: FreshserviceCreateTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,KAAK,CAAC,YAAY,iBAAiB,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,KAAK;EAAC;EAAO;EAAU;CAAM,CAAC,CAAC,CAAC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xE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACvF,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAKrE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,QAAQ,sCAAsC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/delete-release.ts
4
4
  const FreshserviceDeleteReleaseInput = zod.z.object({ release_id: zod.z.number().int().describe("The unique ID of the release to delete") }).describe("Request model for deleting a release from Freshservice.");
5
- const FreshserviceDeleteReleaseOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the release deletion was successful").nullable() }).describe("Response model for release deletion.");
5
+ const FreshserviceDeleteReleaseOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the release deletion was successful").nullable() }).passthrough().describe("Response model for release deletion.");
6
6
  const freshserviceDeleteRelease = require_action.action("FRESHSERVICE_DELETE_RELEASE", {
7
7
  slug: "freshservice-delete-release",
8
8
  name: "Delete Release",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-release.cjs","names":["z","action"],"sources":["../../src/actions/delete-release.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteReleaseInput = z.object({\n release_id: z.number().int().describe(\"The unique ID of the release to delete\"),\n}).describe(\"Request model for deleting a release from Freshservice.\");\nexport const FreshserviceDeleteReleaseOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the release deletion was successful\").nullable(),\n}).describe(\"Response model for release deletion.\");\n\nexport const freshserviceDeleteRelease = action(\"FRESHSERVICE_DELETE_RELEASE\", {\n slug: \"freshservice-delete-release\",\n name: \"Delete Release\",\n description: \"Tool to delete a release from Freshservice. Use when you need to permanently remove a release from the system. This action is irreversible — the release cannot be recovered once deleted.\",\n input: FreshserviceDeleteReleaseInput,\n output: FreshserviceDeleteReleaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EAChF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EAClG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-release.cjs","names":["z","action"],"sources":["../../src/actions/delete-release.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteReleaseInput = z.object({\n release_id: z.number().int().describe(\"The unique ID of the release to delete\"),\n}).describe(\"Request model for deleting a release from Freshservice.\");\nexport const FreshserviceDeleteReleaseOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the release deletion was successful\").nullable(),\n}).passthrough().describe(\"Response model for release deletion.\");\n\nexport const freshserviceDeleteRelease = action(\"FRESHSERVICE_DELETE_RELEASE\", {\n slug: \"freshservice-delete-release\",\n name: \"Delete Release\",\n description: \"Tool to delete a release from Freshservice. Use when you need to permanently remove a release from the system. This action is irreversible — the release cannot be recovered once deleted.\",\n input: FreshserviceDeleteReleaseInput,\n output: FreshserviceDeleteReleaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EAChF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,12 +6,10 @@ declare const FreshserviceDeleteReleaseInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const FreshserviceDeleteReleaseOutput: z.ZodObject<{
8
8
  success: z.ZodNullable<z.ZodBoolean>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const freshserviceDeleteRelease: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  release_id: number;
12
- }, {
13
- success: boolean | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
13
  //#endregion
16
14
  export { freshserviceDeleteRelease };
17
15
  //# sourceMappingURL=delete-release.d.cts.map
@@ -6,12 +6,10 @@ declare const FreshserviceDeleteReleaseInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const FreshserviceDeleteReleaseOutput: z.ZodObject<{
8
8
  success: z.ZodNullable<z.ZodBoolean>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const freshserviceDeleteRelease: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  release_id: number;
12
- }, {
13
- success: boolean | null;
14
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
13
  //#endregion
16
14
  export { freshserviceDeleteRelease };
17
15
  //# sourceMappingURL=delete-release.d.mts.map
@@ -5,7 +5,7 @@ const freshserviceDeleteRelease = action("FRESHSERVICE_DELETE_RELEASE", {
5
5
  name: "Delete Release",
6
6
  description: "Tool to delete a release from Freshservice. Use when you need to permanently remove a release from the system. This action is irreversible — the release cannot be recovered once deleted.",
7
7
  input: z.object({ release_id: z.number().int().describe("The unique ID of the release to delete") }).describe("Request model for deleting a release from Freshservice."),
8
- output: z.object({ success: z.boolean().describe("Indicates whether the release deletion was successful").nullable() }).describe("Response model for release deletion.")
8
+ output: z.object({ success: z.boolean().describe("Indicates whether the release deletion was successful").nullable() }).passthrough().describe("Response model for release deletion.")
9
9
  });
10
10
  //#endregion
11
11
  export { freshserviceDeleteRelease };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-release.mjs","names":[],"sources":["../../src/actions/delete-release.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteReleaseInput = z.object({\n release_id: z.number().int().describe(\"The unique ID of the release to delete\"),\n}).describe(\"Request model for deleting a release from Freshservice.\");\nexport const FreshserviceDeleteReleaseOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the release deletion was successful\").nullable(),\n}).describe(\"Response model for release deletion.\");\n\nexport const freshserviceDeleteRelease = action(\"FRESHSERVICE_DELETE_RELEASE\", {\n slug: \"freshservice-delete-release\",\n name: \"Delete Release\",\n description: \"Tool to delete a release from Freshservice. Use when you need to permanently remove a release from the system. This action is irreversible — the release cannot be recovered once deleted.\",\n input: FreshserviceDeleteReleaseInput,\n output: FreshserviceDeleteReleaseOutput,\n});\n"],"mappings":";;AAWA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX4C,EAAE,OAAO,EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EAChF,CAAC,CAAC,CAAC,SAAS,yDASH;CACP,QAT6C,EAAE,OAAO,EACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EAClG,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-release.mjs","names":[],"sources":["../../src/actions/delete-release.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteReleaseInput = z.object({\n release_id: z.number().int().describe(\"The unique ID of the release to delete\"),\n}).describe(\"Request model for deleting a release from Freshservice.\");\nexport const FreshserviceDeleteReleaseOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the release deletion was successful\").nullable(),\n}).passthrough().describe(\"Response model for release deletion.\");\n\nexport const freshserviceDeleteRelease = action(\"FRESHSERVICE_DELETE_RELEASE\", {\n slug: \"freshservice-delete-release\",\n name: \"Delete Release\",\n description: \"Tool to delete a release from Freshservice. Use when you need to permanently remove a release from the system. This action is irreversible — the release cannot be recovered once deleted.\",\n input: FreshserviceDeleteReleaseInput,\n output: FreshserviceDeleteReleaseOutput,\n});\n"],"mappings":";;AAWA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX4C,EAAE,OAAO,EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EAChF,CAAC,CAAC,CAAC,SAAS,yDASH;CACP,QAT6C,EAAE,OAAO,EACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const FreshserviceDeleteSolutionArticleInput = zod.z.object({ article_id: zod.z.
5
5
  const FreshserviceDeleteSolutionArticleOutput = zod.z.object({
6
6
  message: zod.z.string().describe("Human-readable message describing the result of the delete operation").nullable(),
7
7
  success: zod.z.boolean().describe("Indicates whether the delete operation completed successfully").nullable()
8
- }).describe("Response model for solution article deletion.");
8
+ }).passthrough().describe("Response model for solution article deletion.");
9
9
  const freshserviceDeleteSolutionArticle = require_action.action("FRESHSERVICE_DELETE_SOLUTION_ARTICLE", {
10
10
  slug: "freshservice-delete-solution-article",
11
11
  name: "Delete Solution Article",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-solution-article.cjs","names":["z","action"],"sources":["../../src/actions/delete-solution-article.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionArticleInput = z.object({\n article_id: z.number().int().describe(\"ID of the solution article to delete\"),\n}).describe(\"Request model for deleting a solution article in Freshservice.\");\nexport const FreshserviceDeleteSolutionArticleOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the result of the delete operation\").nullable(),\n success: z.boolean().describe(\"Indicates whether the delete operation completed successfully\").nullable(),\n}).describe(\"Response model for solution article deletion.\");\n\nexport const freshserviceDeleteSolutionArticle = action(\"FRESHSERVICE_DELETE_SOLUTION_ARTICLE\", {\n slug: \"freshservice-delete-solution-article\",\n name: \"Delete Solution Article\",\n description: \"Tool to delete a solution article from the knowledge base by its ID. This action is irreversible — the article cannot be recovered once deleted. Use this action when you need to permanently remove a solution article from Freshservice.\",\n input: FreshserviceDeleteSolutionArticleInput,\n output: FreshserviceDeleteSolutionArticleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EAC9E,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-solution-article.cjs","names":["z","action"],"sources":["../../src/actions/delete-solution-article.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionArticleInput = z.object({\n article_id: z.number().int().describe(\"ID of the solution article to delete\"),\n}).describe(\"Request model for deleting a solution article in Freshservice.\");\nexport const FreshserviceDeleteSolutionArticleOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the result of the delete operation\").nullable(),\n success: z.boolean().describe(\"Indicates whether the delete operation completed successfully\").nullable(),\n}).passthrough().describe(\"Response model for solution article deletion.\");\n\nexport const freshserviceDeleteSolutionArticle = action(\"FRESHSERVICE_DELETE_SOLUTION_ARTICLE\", {\n slug: \"freshservice-delete-solution-article\",\n name: \"Delete Solution Article\",\n description: \"Tool to delete a solution article from the knowledge base by its ID. This action is irreversible — the article cannot be recovered once deleted. Use this action when you need to permanently remove a solution article from Freshservice.\",\n input: FreshserviceDeleteSolutionArticleInput,\n output: FreshserviceDeleteSolutionArticleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EAC9E,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,13 +7,10 @@ declare const FreshserviceDeleteSolutionArticleInput: z.ZodObject<{
7
7
  declare const FreshserviceDeleteSolutionArticleOutput: z.ZodObject<{
8
8
  message: z.ZodNullable<z.ZodString>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const freshserviceDeleteSolutionArticle: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  article_id: number;
13
- }, {
14
- message: string | null;
15
- success: boolean | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { freshserviceDeleteSolutionArticle };
19
16
  //# sourceMappingURL=delete-solution-article.d.cts.map
@@ -7,13 +7,10 @@ declare const FreshserviceDeleteSolutionArticleInput: z.ZodObject<{
7
7
  declare const FreshserviceDeleteSolutionArticleOutput: z.ZodObject<{
8
8
  message: z.ZodNullable<z.ZodString>;
9
9
  success: z.ZodNullable<z.ZodBoolean>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const freshserviceDeleteSolutionArticle: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  article_id: number;
13
- }, {
14
- message: string | null;
15
- success: boolean | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { freshserviceDeleteSolutionArticle };
19
16
  //# sourceMappingURL=delete-solution-article.d.mts.map
@@ -8,7 +8,7 @@ const freshserviceDeleteSolutionArticle = action("FRESHSERVICE_DELETE_SOLUTION_A
8
8
  output: z.object({
9
9
  message: z.string().describe("Human-readable message describing the result of the delete operation").nullable(),
10
10
  success: z.boolean().describe("Indicates whether the delete operation completed successfully").nullable()
11
- }).describe("Response model for solution article deletion.")
11
+ }).passthrough().describe("Response model for solution article deletion.")
12
12
  });
13
13
  //#endregion
14
14
  export { freshserviceDeleteSolutionArticle };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-solution-article.mjs","names":[],"sources":["../../src/actions/delete-solution-article.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionArticleInput = z.object({\n article_id: z.number().int().describe(\"ID of the solution article to delete\"),\n}).describe(\"Request model for deleting a solution article in Freshservice.\");\nexport const FreshserviceDeleteSolutionArticleOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the result of the delete operation\").nullable(),\n success: z.boolean().describe(\"Indicates whether the delete operation completed successfully\").nullable(),\n}).describe(\"Response model for solution article deletion.\");\n\nexport const freshserviceDeleteSolutionArticle = action(\"FRESHSERVICE_DELETE_SOLUTION_ARTICLE\", {\n slug: \"freshservice-delete-solution-article\",\n name: \"Delete Solution Article\",\n description: \"Tool to delete a solution article from the knowledge base by its ID. This action is irreversible — the article cannot be recovered once deleted. Use this action when you need to permanently remove a solution article from Freshservice.\",\n input: FreshserviceDeleteSolutionArticleInput,\n output: FreshserviceDeleteSolutionArticleOutput,\n});\n"],"mappings":";;AAYA,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EAC9E,CAAC,CAAC,CAAC,SAAS,gEAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-solution-article.mjs","names":[],"sources":["../../src/actions/delete-solution-article.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionArticleInput = z.object({\n article_id: z.number().int().describe(\"ID of the solution article to delete\"),\n}).describe(\"Request model for deleting a solution article in Freshservice.\");\nexport const FreshserviceDeleteSolutionArticleOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the result of the delete operation\").nullable(),\n success: z.boolean().describe(\"Indicates whether the delete operation completed successfully\").nullable(),\n}).passthrough().describe(\"Response model for solution article deletion.\");\n\nexport const freshserviceDeleteSolutionArticle = action(\"FRESHSERVICE_DELETE_SOLUTION_ARTICLE\", {\n slug: \"freshservice-delete-solution-article\",\n name: \"Delete Solution Article\",\n description: \"Tool to delete a solution article from the knowledge base by its ID. This action is irreversible — the article cannot be recovered once deleted. Use this action when you need to permanently remove a solution article from Freshservice.\",\n input: FreshserviceDeleteSolutionArticleInput,\n output: FreshserviceDeleteSolutionArticleOutput,\n});\n"],"mappings":";;AAYA,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EAC9E,CAAC,CAAC,CAAC,SAAS,gEAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -3,9 +3,9 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-solution-category.ts
4
4
  const FreshserviceDeleteSolutionCategoryInput = zod.z.object({ category_id: zod.z.number().int().describe("The unique ID of the solution category to delete") }).describe("Request model for deleting a solution category in Freshservice.");
5
5
  const FreshserviceDeleteSolutionCategoryOutput = zod.z.object({
6
- status: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Status of the deletion operation").optional()),
7
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Message describing the deletion result").optional())
8
- }).describe("Response model for solution category deletion.");
6
+ status: zod.z.string().describe("Status of the deletion operation").nullable().optional(),
7
+ message: zod.z.string().describe("Message describing the deletion result").nullable().optional()
8
+ }).passthrough().describe("Response model for solution category deletion.");
9
9
  const freshserviceDeleteSolutionCategory = require_action.action("FRESHSERVICE_DELETE_SOLUTION_CATEGORY", {
10
10
  slug: "freshservice-delete-solution-category",
11
11
  name: "Delete Solution Category",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-solution-category.cjs","names":["z","action"],"sources":["../../src/actions/delete-solution-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionCategoryInput = z.object({\n category_id: z.number().int().describe(\"The unique ID of the solution category to delete\"),\n}).describe(\"Request model for deleting a solution category in Freshservice.\");\nexport const FreshserviceDeleteSolutionCategoryOutput = z.object({\n status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status of the deletion operation\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Message describing the deletion result\").optional()),\n}).describe(\"Response model for solution category deletion.\");\n\nexport const freshserviceDeleteSolutionCategory = action(\"FRESHSERVICE_DELETE_SOLUTION_CATEGORY\", {\n slug: \"freshservice-delete-solution-category\",\n name: \"Delete Solution Category\",\n description: \"Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.\",\n input: FreshserviceDeleteSolutionCategoryInput,\n output: FreshserviceDeleteSolutionCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAC3F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;CACxI,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;AACjJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-solution-category.cjs","names":["z","action"],"sources":["../../src/actions/delete-solution-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionCategoryInput = z.object({\n category_id: z.number().int().describe(\"The unique ID of the solution category to delete\"),\n}).describe(\"Request model for deleting a solution category in Freshservice.\");\nexport const FreshserviceDeleteSolutionCategoryOutput = z.object({\n status: z.string().describe(\"Status of the deletion operation\").nullable().optional(),\n message: z.string().describe(\"Message describing the deletion result\").nullable().optional(),\n}).passthrough().describe(\"Response model for solution category deletion.\");\n\nexport const freshserviceDeleteSolutionCategory = action(\"FRESHSERVICE_DELETE_SOLUTION_CATEGORY\", {\n slug: \"freshservice-delete-solution-category\",\n name: \"Delete Solution Category\",\n description: \"Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.\",\n input: FreshserviceDeleteSolutionCategoryInput,\n output: FreshserviceDeleteSolutionCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAC3F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,15 +5,12 @@ declare const FreshserviceDeleteSolutionCategoryInput: z.ZodObject<{
5
5
  category_id: z.ZodNumber;
6
6
  }, z.core.$strip>;
7
7
  declare const FreshserviceDeleteSolutionCategoryOutput: z.ZodObject<{
8
- status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- }, z.core.$strip>;
8
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$loose>;
11
11
  declare const freshserviceDeleteSolutionCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  category_id: number;
13
- }, {
14
- status?: string | undefined;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { freshserviceDeleteSolutionCategory };
19
16
  //# sourceMappingURL=delete-solution-category.d.cts.map
@@ -5,15 +5,12 @@ declare const FreshserviceDeleteSolutionCategoryInput: z.ZodObject<{
5
5
  category_id: z.ZodNumber;
6
6
  }, z.core.$strip>;
7
7
  declare const FreshserviceDeleteSolutionCategoryOutput: z.ZodObject<{
8
- status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- }, z.core.$strip>;
8
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$loose>;
11
11
  declare const freshserviceDeleteSolutionCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  category_id: number;
13
- }, {
14
- status?: string | undefined;
15
- message?: string | undefined;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
14
  //#endregion
18
15
  export { freshserviceDeleteSolutionCategory };
19
16
  //# sourceMappingURL=delete-solution-category.d.mts.map
@@ -6,9 +6,9 @@ const freshserviceDeleteSolutionCategory = action("FRESHSERVICE_DELETE_SOLUTION_
6
6
  description: "Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.",
7
7
  input: z.object({ category_id: z.number().int().describe("The unique ID of the solution category to delete") }).describe("Request model for deleting a solution category in Freshservice."),
8
8
  output: z.object({
9
- status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status of the deletion operation").optional()),
10
- message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Message describing the deletion result").optional())
11
- }).describe("Response model for solution category deletion.")
9
+ status: z.string().describe("Status of the deletion operation").nullable().optional(),
10
+ message: z.string().describe("Message describing the deletion result").nullable().optional()
11
+ }).passthrough().describe("Response model for solution category deletion.")
12
12
  });
13
13
  //#endregion
14
14
  export { freshserviceDeleteSolutionCategory };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-solution-category.mjs","names":[],"sources":["../../src/actions/delete-solution-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionCategoryInput = z.object({\n category_id: z.number().int().describe(\"The unique ID of the solution category to delete\"),\n}).describe(\"Request model for deleting a solution category in Freshservice.\");\nexport const FreshserviceDeleteSolutionCategoryOutput = z.object({\n status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status of the deletion operation\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Message describing the deletion result\").optional()),\n}).describe(\"Response model for solution category deletion.\");\n\nexport const freshserviceDeleteSolutionCategory = action(\"FRESHSERVICE_DELETE_SOLUTION_CATEGORY\", {\n slug: \"freshservice-delete-solution-category\",\n name: \"Delete Solution Category\",\n description: \"Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.\",\n input: FreshserviceDeleteSolutionCategoryInput,\n output: FreshserviceDeleteSolutionCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAC3F,CAAC,CAAC,CAAC,SAAS,iEAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;EACxI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CACjJ,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-solution-category.mjs","names":[],"sources":["../../src/actions/delete-solution-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionCategoryInput = z.object({\n category_id: z.number().int().describe(\"The unique ID of the solution category to delete\"),\n}).describe(\"Request model for deleting a solution category in Freshservice.\");\nexport const FreshserviceDeleteSolutionCategoryOutput = z.object({\n status: z.string().describe(\"Status of the deletion operation\").nullable().optional(),\n message: z.string().describe(\"Message describing the deletion result\").nullable().optional(),\n}).passthrough().describe(\"Response model for solution category deletion.\");\n\nexport const freshserviceDeleteSolutionCategory = action(\"FRESHSERVICE_DELETE_SOLUTION_CATEGORY\", {\n slug: \"freshservice-delete-solution-category\",\n name: \"Delete Solution Category\",\n description: \"Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.\",\n input: FreshserviceDeleteSolutionCategoryInput,\n output: FreshserviceDeleteSolutionCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAC3F,CAAC,CAAC,CAAC,SAAS,iEAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -2,30 +2,30 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/get-problem-form-fields-by-workspace.ts
4
4
  const FreshserviceGetProblemFormFieldsByWorkspaceInput = zod.z.object({ workspace_id: zod.z.number().int().describe("ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.").optional() }).describe("Request model for listing problem form fields by workspace.");
5
- const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = zod.z.object({ value: zod.z.string().describe("Allowed value for the choice field").nullable() }).describe("Choice option for a choice-type problem field.");
5
+ const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = zod.z.object({ value: zod.z.string().describe("Allowed value for the choice field").nullable() }).passthrough().describe("Choice option for a choice-type problem field.");
6
6
  const FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema = zod.z.object({
7
7
  id: zod.z.number().int().describe("Unique ID of the nested field").nullable(),
8
8
  name: zod.z.string().describe("Internal name of the nested field").nullable(),
9
9
  label: zod.z.string().describe("Display label of the nested field").nullable(),
10
10
  required: zod.z.boolean().describe("Whether the nested field is mandatory").nullable(),
11
11
  field_type: zod.z.string().describe("Type of the nested field, e.g., checkbox, text, etc.").nullable()
12
- }).describe("Nested field within a problem field.");
12
+ }).passthrough().describe("Nested field within a problem field.");
13
13
  const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema = zod.z.object({
14
14
  id: zod.z.number().int().describe("Unique ID of the field").nullable(),
15
15
  name: zod.z.string().describe("Internal name of the field").nullable(),
16
16
  label: zod.z.string().describe("Display label of the field").nullable(),
17
- choices: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe("Allowed values for choice-type fields").optional()),
17
+ choices: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe("Allowed values for choice-type fields").nullable().optional(),
18
18
  required: zod.z.boolean().describe("Whether the field is mandatory").nullable(),
19
19
  created_at: zod.z.string().describe("Timestamp when the field was created (ISO 8601)").nullable(),
20
20
  field_type: zod.z.string().describe("Type of the field, e.g., checkbox, dropdown, text").nullable(),
21
21
  updated_at: zod.z.string().describe("Timestamp when the field was last updated (ISO 8601)").nullable(),
22
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the field").optional()),
22
+ description: zod.z.string().describe("Description of the field").nullable().optional(),
23
23
  workspace_id: zod.z.number().int().describe("Workspace to which the field belongs").nullable(),
24
24
  default_field: zod.z.boolean().describe("Whether the field is a default field (true) or custom (false)").nullable(),
25
- nested_fields: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe("Nested fields within this field, if applicable").optional()),
25
+ nested_fields: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe("Nested fields within this field, if applicable").nullable().optional(),
26
26
  required_for_closure: zod.z.boolean().describe("Whether the field is mandatory for problem closure").nullable()
27
- }).describe("Model representing a Freshservice problem form field.");
28
- const FreshserviceGetProblemFormFieldsByWorkspaceOutput = zod.z.object({ problem_fields: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe("List of problem form field definitions for the workspace") }).describe("Response model for listing problem form fields by workspace.");
27
+ }).passthrough().describe("Model representing a Freshservice problem form field.");
28
+ const FreshserviceGetProblemFormFieldsByWorkspaceOutput = zod.z.object({ problem_fields: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe("List of problem form field definitions for the workspace") }).passthrough().describe("Response model for listing problem form fields by workspace.");
29
29
  const freshserviceGetProblemFormFieldsByWorkspace = require_action.action("FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE", {
30
30
  slug: "freshservice-get-problem-form-fields-by-workspace",
31
31
  name: "Get Problem Form Fields by Workspace",