@djangocfg/api 1.2.25 → 1.2.26

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 (94) hide show
  1. package/dist/index.cjs +6319 -2061
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +698 -1532
  4. package/dist/index.d.ts +698 -1532
  5. package/dist/index.mjs +6319 -2061
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +59 -2
  9. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +30 -1
  10. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +175 -6
  11. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +30 -1
  12. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +146 -5
  13. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_auth.ts +30 -1
  14. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +117 -4
  15. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +88 -3
  16. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_activity.ts +1 -0
  17. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +30 -1
  18. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +59 -2
  19. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +59 -2
  20. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +30 -1
  21. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +30 -1
  22. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +30 -1
  23. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +59 -2
  24. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +59 -2
  25. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +88 -3
  26. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +204 -7
  27. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +59 -2
  28. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +117 -4
  29. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +30 -1
  30. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +88 -3
  31. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +88 -3
  32. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +59 -2
  33. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +1422 -49
  34. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +146 -5
  35. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +30 -1
  36. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +88 -3
  37. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +30 -1
  38. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +146 -5
  39. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +30 -1
  40. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +59 -2
  41. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +88 -3
  42. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +30 -1
  43. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +175 -6
  44. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +146 -5
  45. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_monitoring.ts +59 -2
  46. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_queues.ts +30 -1
  47. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +204 -7
  48. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +117 -4
  49. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_testing.ts +117 -4
  50. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_workers.ts +30 -1
  51. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +291 -10
  52. package/src/cfg/generated/_utils/schemas/ApiKeyStats.schema.ts +1 -1
  53. package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +2 -1
  54. package/src/cfg/generated/_utils/schemas/AppStatisticsData.schema.ts +21 -0
  55. package/src/cfg/generated/_utils/schemas/AxesConfig.schema.ts +35 -0
  56. package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResult.schema.ts +2 -1
  57. package/src/cfg/generated/_utils/schemas/CentrifugoMetrics.schema.ts +1 -1
  58. package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResult.schema.ts +2 -1
  59. package/src/cfg/generated/_utils/schemas/ConstanceConfig.schema.ts +24 -0
  60. package/src/cfg/generated/_utils/schemas/DjangoConfig.schema.ts +14 -7
  61. package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +2 -1
  62. package/src/cfg/generated/_utils/schemas/NextJSAdminConfig.schema.ts +21 -0
  63. package/src/cfg/generated/_utils/schemas/NgrokConfig.schema.ts +22 -0
  64. package/src/cfg/generated/_utils/schemas/OpenAPIClientConfig.schema.ts +26 -0
  65. package/src/cfg/generated/_utils/schemas/RQSchedule.schema.ts +26 -0
  66. package/src/cfg/generated/_utils/schemas/TelegramConfig.schema.ts +28 -0
  67. package/src/cfg/generated/_utils/schemas/index.ts +8 -0
  68. package/src/cfg/generated/cfg__accounts/models.ts +4 -4
  69. package/src/cfg/generated/cfg__accounts__user_profile/models.ts +3 -3
  70. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +27 -17
  71. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/models.ts +1 -1
  72. package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +2 -2
  73. package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +159 -26
  74. package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +18 -5
  75. package/src/cfg/generated/cfg__grpc__grpc_api_keys/models.ts +1 -1
  76. package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +5 -5
  77. package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +4 -4
  78. package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +1 -1
  79. package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +2 -2
  80. package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +6 -6
  81. package/src/cfg/generated/cfg__knowbase/models.ts +12 -12
  82. package/src/cfg/generated/cfg__leads__lead_submission/models.ts +1 -1
  83. package/src/cfg/generated/cfg__newsletter/models.ts +1 -1
  84. package/src/cfg/generated/cfg__newsletter__campaigns/models.ts +1 -1
  85. package/src/cfg/generated/cfg__newsletter__logs/models.ts +4 -4
  86. package/src/cfg/generated/cfg__newsletter__subscriptions/models.ts +1 -1
  87. package/src/cfg/generated/cfg__payments/models.ts +12 -12
  88. package/src/cfg/generated/cfg__rq__rq_jobs/models.ts +2 -2
  89. package/src/cfg/generated/cfg__rq__rq_monitoring/models.ts +1 -1
  90. package/src/cfg/generated/cfg__rq__rq_queues/models.ts +1 -1
  91. package/src/cfg/generated/cfg__rq__rq_schedules/models.ts +3 -3
  92. package/src/cfg/generated/cfg__rq__rq_testing/models.ts +2 -2
  93. package/src/cfg/generated/cfg__support/models.ts +2 -2
  94. package/src/cfg/generated/schema.json +340 -19
@@ -29,6 +29,7 @@
29
29
  * const users = await getUsers({ page: 1 }, api)
30
30
  * ```
31
31
  */
32
+ import { consola } from 'consola'
32
33
  import { ArchiveItemSchema, type ArchiveItem } from '../schemas/ArchiveItem.schema'
33
34
  import { ArchiveItemChunkSchema, type ArchiveItemChunk } from '../schemas/ArchiveItemChunk.schema'
34
35
  import { ArchiveItemChunkDetailSchema, type ArchiveItemChunkDetail } from '../schemas/ArchiveItemChunkDetail.schema'
@@ -85,7 +86,35 @@ export async function getKnowbaseAdminChatList( params?: { page?: number; page_
85
86
  ): Promise<PaginatedChatResponseList> {
86
87
  const api = client || getAPIInstance()
87
88
  const response = await api.cfg_knowbase.adminChatList(params?.page, params?.page_size)
88
- return PaginatedChatResponseListSchema.parse(response)
89
+ try {
90
+ return PaginatedChatResponseListSchema.parse(response)
91
+ } catch (error) {
92
+ // Zod validation error - log detailed information
93
+ consola.error('❌ Zod Validation Failed');
94
+ consola.box({
95
+ title: 'getKnowbaseAdminChatList',
96
+ message: `Path: /cfg/knowbase/admin/chat/\nMethod: GET`,
97
+ style: {
98
+ borderColor: 'red',
99
+ borderStyle: 'rounded'
100
+ }
101
+ });
102
+
103
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
104
+ consola.error('Validation Issues:');
105
+ (error as any).issues.forEach((issue: any, index: number) => {
106
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
107
+ consola.error(` ├─ Message: ${issue.message}`);
108
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
109
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
110
+ });
111
+ }
112
+
113
+ consola.error('Response data:', response);
114
+
115
+ // Re-throw the error
116
+ throw error;
117
+ }
89
118
  }
90
119
 
91
120
 
@@ -99,7 +128,35 @@ export async function createKnowbaseAdminChatCreate( data: ChatResponseRequest,
99
128
  ): Promise<ChatResponse> {
100
129
  const api = client || getAPIInstance()
101
130
  const response = await api.cfg_knowbase.adminChatCreate(data)
102
- return ChatResponseSchema.parse(response)
131
+ try {
132
+ return ChatResponseSchema.parse(response)
133
+ } catch (error) {
134
+ // Zod validation error - log detailed information
135
+ consola.error('❌ Zod Validation Failed');
136
+ consola.box({
137
+ title: 'createKnowbaseAdminChatCreate',
138
+ message: `Path: /cfg/knowbase/admin/chat/\nMethod: POST`,
139
+ style: {
140
+ borderColor: 'red',
141
+ borderStyle: 'rounded'
142
+ }
143
+ });
144
+
145
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
146
+ consola.error('Validation Issues:');
147
+ (error as any).issues.forEach((issue: any, index: number) => {
148
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
149
+ consola.error(` ├─ Message: ${issue.message}`);
150
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
151
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
152
+ });
153
+ }
154
+
155
+ consola.error('Response data:', response);
156
+
157
+ // Re-throw the error
158
+ throw error;
159
+ }
103
160
  }
104
161
 
105
162
 
@@ -113,7 +170,35 @@ export async function getKnowbaseAdminChatRetrieve( id: string, client?: any
113
170
  ): Promise<ChatResponse> {
114
171
  const api = client || getAPIInstance()
115
172
  const response = await api.cfg_knowbase.adminChatRetrieve(id)
116
- return ChatResponseSchema.parse(response)
173
+ try {
174
+ return ChatResponseSchema.parse(response)
175
+ } catch (error) {
176
+ // Zod validation error - log detailed information
177
+ consola.error('❌ Zod Validation Failed');
178
+ consola.box({
179
+ title: 'getKnowbaseAdminChatRetrieve',
180
+ message: `Path: /cfg/knowbase/admin/chat/{id}/\nMethod: GET`,
181
+ style: {
182
+ borderColor: 'red',
183
+ borderStyle: 'rounded'
184
+ }
185
+ });
186
+
187
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
188
+ consola.error('Validation Issues:');
189
+ (error as any).issues.forEach((issue: any, index: number) => {
190
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
191
+ consola.error(` ├─ Message: ${issue.message}`);
192
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
193
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
194
+ });
195
+ }
196
+
197
+ consola.error('Response data:', response);
198
+
199
+ // Re-throw the error
200
+ throw error;
201
+ }
117
202
  }
118
203
 
119
204
 
@@ -127,7 +212,35 @@ export async function updateKnowbaseAdminChatUpdate( id: string, data: ChatResp
127
212
  ): Promise<ChatResponse> {
128
213
  const api = client || getAPIInstance()
129
214
  const response = await api.cfg_knowbase.adminChatUpdate(id, data)
130
- return ChatResponseSchema.parse(response)
215
+ try {
216
+ return ChatResponseSchema.parse(response)
217
+ } catch (error) {
218
+ // Zod validation error - log detailed information
219
+ consola.error('❌ Zod Validation Failed');
220
+ consola.box({
221
+ title: 'updateKnowbaseAdminChatUpdate',
222
+ message: `Path: /cfg/knowbase/admin/chat/{id}/\nMethod: PUT`,
223
+ style: {
224
+ borderColor: 'red',
225
+ borderStyle: 'rounded'
226
+ }
227
+ });
228
+
229
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
230
+ consola.error('Validation Issues:');
231
+ (error as any).issues.forEach((issue: any, index: number) => {
232
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
233
+ consola.error(` ├─ Message: ${issue.message}`);
234
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
235
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
236
+ });
237
+ }
238
+
239
+ consola.error('Response data:', response);
240
+
241
+ // Re-throw the error
242
+ throw error;
243
+ }
131
244
  }
132
245
 
133
246
 
@@ -141,7 +254,35 @@ export async function partialUpdateKnowbaseAdminChatPartialUpdate( id: string,
141
254
  ): Promise<ChatResponse> {
142
255
  const api = client || getAPIInstance()
143
256
  const response = await api.cfg_knowbase.adminChatPartialUpdate(id, data)
144
- return ChatResponseSchema.parse(response)
257
+ try {
258
+ return ChatResponseSchema.parse(response)
259
+ } catch (error) {
260
+ // Zod validation error - log detailed information
261
+ consola.error('❌ Zod Validation Failed');
262
+ consola.box({
263
+ title: 'partialUpdateKnowbaseAdminChatPartialUpdate',
264
+ message: `Path: /cfg/knowbase/admin/chat/{id}/\nMethod: PATCH`,
265
+ style: {
266
+ borderColor: 'red',
267
+ borderStyle: 'rounded'
268
+ }
269
+ });
270
+
271
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
272
+ consola.error('Validation Issues:');
273
+ (error as any).issues.forEach((issue: any, index: number) => {
274
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
275
+ consola.error(` ├─ Message: ${issue.message}`);
276
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
277
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
278
+ });
279
+ }
280
+
281
+ consola.error('Response data:', response);
282
+
283
+ // Re-throw the error
284
+ throw error;
285
+ }
145
286
  }
146
287
 
147
288
 
@@ -169,7 +310,35 @@ export async function getKnowbaseAdminChatHistoryRetrieve( id: string, client?
169
310
  ): Promise<ChatHistory> {
170
311
  const api = client || getAPIInstance()
171
312
  const response = await api.cfg_knowbase.adminChatHistoryRetrieve(id)
172
- return ChatHistorySchema.parse(response)
313
+ try {
314
+ return ChatHistorySchema.parse(response)
315
+ } catch (error) {
316
+ // Zod validation error - log detailed information
317
+ consola.error('❌ Zod Validation Failed');
318
+ consola.box({
319
+ title: 'getKnowbaseAdminChatHistoryRetrieve',
320
+ message: `Path: /cfg/knowbase/admin/chat/{id}/history/\nMethod: GET`,
321
+ style: {
322
+ borderColor: 'red',
323
+ borderStyle: 'rounded'
324
+ }
325
+ });
326
+
327
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
328
+ consola.error('Validation Issues:');
329
+ (error as any).issues.forEach((issue: any, index: number) => {
330
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
331
+ consola.error(` ├─ Message: ${issue.message}`);
332
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
333
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
334
+ });
335
+ }
336
+
337
+ consola.error('Response data:', response);
338
+
339
+ // Re-throw the error
340
+ throw error;
341
+ }
173
342
  }
174
343
 
175
344
 
@@ -183,7 +352,35 @@ export async function createKnowbaseAdminChatQueryCreate( data: ChatQueryReques
183
352
  ): Promise<ChatResponse> {
184
353
  const api = client || getAPIInstance()
185
354
  const response = await api.cfg_knowbase.adminChatQueryCreate(data)
186
- return ChatResponseSchema.parse(response)
355
+ try {
356
+ return ChatResponseSchema.parse(response)
357
+ } catch (error) {
358
+ // Zod validation error - log detailed information
359
+ consola.error('❌ Zod Validation Failed');
360
+ consola.box({
361
+ title: 'createKnowbaseAdminChatQueryCreate',
362
+ message: `Path: /cfg/knowbase/admin/chat/query/\nMethod: POST`,
363
+ style: {
364
+ borderColor: 'red',
365
+ borderStyle: 'rounded'
366
+ }
367
+ });
368
+
369
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
370
+ consola.error('Validation Issues:');
371
+ (error as any).issues.forEach((issue: any, index: number) => {
372
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
373
+ consola.error(` ├─ Message: ${issue.message}`);
374
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
375
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
376
+ });
377
+ }
378
+
379
+ consola.error('Response data:', response);
380
+
381
+ // Re-throw the error
382
+ throw error;
383
+ }
187
384
  }
188
385
 
189
386
 
@@ -197,7 +394,35 @@ export async function getKnowbaseAdminDocumentsList( params?: { page?: number;
197
394
  ): Promise<PaginatedDocumentList> {
198
395
  const api = client || getAPIInstance()
199
396
  const response = await api.cfg_knowbase.adminDocumentsList(params?.page, params?.page_size, params?.status)
200
- return PaginatedDocumentListSchema.parse(response)
397
+ try {
398
+ return PaginatedDocumentListSchema.parse(response)
399
+ } catch (error) {
400
+ // Zod validation error - log detailed information
401
+ consola.error('❌ Zod Validation Failed');
402
+ consola.box({
403
+ title: 'getKnowbaseAdminDocumentsList',
404
+ message: `Path: /cfg/knowbase/admin/documents/\nMethod: GET`,
405
+ style: {
406
+ borderColor: 'red',
407
+ borderStyle: 'rounded'
408
+ }
409
+ });
410
+
411
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
412
+ consola.error('Validation Issues:');
413
+ (error as any).issues.forEach((issue: any, index: number) => {
414
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
415
+ consola.error(` ├─ Message: ${issue.message}`);
416
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
417
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
418
+ });
419
+ }
420
+
421
+ consola.error('Response data:', response);
422
+
423
+ // Re-throw the error
424
+ throw error;
425
+ }
201
426
  }
202
427
 
203
428
 
@@ -211,7 +436,35 @@ export async function createKnowbaseAdminDocumentsCreate( data: DocumentCreateR
211
436
  ): Promise<Document> {
212
437
  const api = client || getAPIInstance()
213
438
  const response = await api.cfg_knowbase.adminDocumentsCreate(data)
214
- return DocumentSchema.parse(response)
439
+ try {
440
+ return DocumentSchema.parse(response)
441
+ } catch (error) {
442
+ // Zod validation error - log detailed information
443
+ consola.error('❌ Zod Validation Failed');
444
+ consola.box({
445
+ title: 'createKnowbaseAdminDocumentsCreate',
446
+ message: `Path: /cfg/knowbase/admin/documents/\nMethod: POST`,
447
+ style: {
448
+ borderColor: 'red',
449
+ borderStyle: 'rounded'
450
+ }
451
+ });
452
+
453
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
454
+ consola.error('Validation Issues:');
455
+ (error as any).issues.forEach((issue: any, index: number) => {
456
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
457
+ consola.error(` ├─ Message: ${issue.message}`);
458
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
459
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
460
+ });
461
+ }
462
+
463
+ consola.error('Response data:', response);
464
+
465
+ // Re-throw the error
466
+ throw error;
467
+ }
215
468
  }
216
469
 
217
470
 
@@ -225,7 +478,35 @@ export async function getKnowbaseAdminDocumentsRetrieve( id: string, client?:
225
478
  ): Promise<Document> {
226
479
  const api = client || getAPIInstance()
227
480
  const response = await api.cfg_knowbase.adminDocumentsRetrieve(id)
228
- return DocumentSchema.parse(response)
481
+ try {
482
+ return DocumentSchema.parse(response)
483
+ } catch (error) {
484
+ // Zod validation error - log detailed information
485
+ consola.error('❌ Zod Validation Failed');
486
+ consola.box({
487
+ title: 'getKnowbaseAdminDocumentsRetrieve',
488
+ message: `Path: /cfg/knowbase/admin/documents/{id}/\nMethod: GET`,
489
+ style: {
490
+ borderColor: 'red',
491
+ borderStyle: 'rounded'
492
+ }
493
+ });
494
+
495
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
496
+ consola.error('Validation Issues:');
497
+ (error as any).issues.forEach((issue: any, index: number) => {
498
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
499
+ consola.error(` ├─ Message: ${issue.message}`);
500
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
501
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
502
+ });
503
+ }
504
+
505
+ consola.error('Response data:', response);
506
+
507
+ // Re-throw the error
508
+ throw error;
509
+ }
229
510
  }
230
511
 
231
512
 
@@ -239,7 +520,35 @@ export async function updateKnowbaseAdminDocumentsUpdate( id: string, data: Doc
239
520
  ): Promise<Document> {
240
521
  const api = client || getAPIInstance()
241
522
  const response = await api.cfg_knowbase.adminDocumentsUpdate(id, data)
242
- return DocumentSchema.parse(response)
523
+ try {
524
+ return DocumentSchema.parse(response)
525
+ } catch (error) {
526
+ // Zod validation error - log detailed information
527
+ consola.error('❌ Zod Validation Failed');
528
+ consola.box({
529
+ title: 'updateKnowbaseAdminDocumentsUpdate',
530
+ message: `Path: /cfg/knowbase/admin/documents/{id}/\nMethod: PUT`,
531
+ style: {
532
+ borderColor: 'red',
533
+ borderStyle: 'rounded'
534
+ }
535
+ });
536
+
537
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
538
+ consola.error('Validation Issues:');
539
+ (error as any).issues.forEach((issue: any, index: number) => {
540
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
541
+ consola.error(` ├─ Message: ${issue.message}`);
542
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
543
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
544
+ });
545
+ }
546
+
547
+ consola.error('Response data:', response);
548
+
549
+ // Re-throw the error
550
+ throw error;
551
+ }
243
552
  }
244
553
 
245
554
 
@@ -253,7 +562,35 @@ export async function partialUpdateKnowbaseAdminDocumentsPartialUpdate( id: str
253
562
  ): Promise<Document> {
254
563
  const api = client || getAPIInstance()
255
564
  const response = await api.cfg_knowbase.adminDocumentsPartialUpdate(id, data)
256
- return DocumentSchema.parse(response)
565
+ try {
566
+ return DocumentSchema.parse(response)
567
+ } catch (error) {
568
+ // Zod validation error - log detailed information
569
+ consola.error('❌ Zod Validation Failed');
570
+ consola.box({
571
+ title: 'partialUpdateKnowbaseAdminDocumentsPartialUpdate',
572
+ message: `Path: /cfg/knowbase/admin/documents/{id}/\nMethod: PATCH`,
573
+ style: {
574
+ borderColor: 'red',
575
+ borderStyle: 'rounded'
576
+ }
577
+ });
578
+
579
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
580
+ consola.error('Validation Issues:');
581
+ (error as any).issues.forEach((issue: any, index: number) => {
582
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
583
+ consola.error(` ├─ Message: ${issue.message}`);
584
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
585
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
586
+ });
587
+ }
588
+
589
+ consola.error('Response data:', response);
590
+
591
+ // Re-throw the error
592
+ throw error;
593
+ }
257
594
  }
258
595
 
259
596
 
@@ -281,7 +618,35 @@ export async function createKnowbaseAdminDocumentsReprocessCreate( id: string,
281
618
  ): Promise<Document> {
282
619
  const api = client || getAPIInstance()
283
620
  const response = await api.cfg_knowbase.adminDocumentsReprocessCreate(id, data)
284
- return DocumentSchema.parse(response)
621
+ try {
622
+ return DocumentSchema.parse(response)
623
+ } catch (error) {
624
+ // Zod validation error - log detailed information
625
+ consola.error('❌ Zod Validation Failed');
626
+ consola.box({
627
+ title: 'createKnowbaseAdminDocumentsReprocessCreate',
628
+ message: `Path: /cfg/knowbase/admin/documents/{id}/reprocess/\nMethod: POST`,
629
+ style: {
630
+ borderColor: 'red',
631
+ borderStyle: 'rounded'
632
+ }
633
+ });
634
+
635
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
636
+ consola.error('Validation Issues:');
637
+ (error as any).issues.forEach((issue: any, index: number) => {
638
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
639
+ consola.error(` ├─ Message: ${issue.message}`);
640
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
641
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
642
+ });
643
+ }
644
+
645
+ consola.error('Response data:', response);
646
+
647
+ // Re-throw the error
648
+ throw error;
649
+ }
285
650
  }
286
651
 
287
652
 
@@ -295,7 +660,35 @@ export async function getKnowbaseAdminDocumentsStatusRetrieve( id: string, cli
295
660
  ): Promise<DocumentProcessingStatus> {
296
661
  const api = client || getAPIInstance()
297
662
  const response = await api.cfg_knowbase.adminDocumentsStatusRetrieve(id)
298
- return DocumentProcessingStatusSchema.parse(response)
663
+ try {
664
+ return DocumentProcessingStatusSchema.parse(response)
665
+ } catch (error) {
666
+ // Zod validation error - log detailed information
667
+ consola.error('❌ Zod Validation Failed');
668
+ consola.box({
669
+ title: 'getKnowbaseAdminDocumentsStatusRetrieve',
670
+ message: `Path: /cfg/knowbase/admin/documents/{id}/status/\nMethod: GET`,
671
+ style: {
672
+ borderColor: 'red',
673
+ borderStyle: 'rounded'
674
+ }
675
+ });
676
+
677
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
678
+ consola.error('Validation Issues:');
679
+ (error as any).issues.forEach((issue: any, index: number) => {
680
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
681
+ consola.error(` ├─ Message: ${issue.message}`);
682
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
683
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
684
+ });
685
+ }
686
+
687
+ consola.error('Response data:', response);
688
+
689
+ // Re-throw the error
690
+ throw error;
691
+ }
299
692
  }
300
693
 
301
694
 
@@ -309,7 +702,35 @@ export async function getKnowbaseAdminDocumentsStatsRetrieve( client?: any
309
702
  ): Promise<DocumentStats> {
310
703
  const api = client || getAPIInstance()
311
704
  const response = await api.cfg_knowbase.adminDocumentsStatsRetrieve()
312
- return DocumentStatsSchema.parse(response)
705
+ try {
706
+ return DocumentStatsSchema.parse(response)
707
+ } catch (error) {
708
+ // Zod validation error - log detailed information
709
+ consola.error('❌ Zod Validation Failed');
710
+ consola.box({
711
+ title: 'getKnowbaseAdminDocumentsStatsRetrieve',
712
+ message: `Path: /cfg/knowbase/admin/documents/stats/\nMethod: GET`,
713
+ style: {
714
+ borderColor: 'red',
715
+ borderStyle: 'rounded'
716
+ }
717
+ });
718
+
719
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
720
+ consola.error('Validation Issues:');
721
+ (error as any).issues.forEach((issue: any, index: number) => {
722
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
723
+ consola.error(` ├─ Message: ${issue.message}`);
724
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
725
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
726
+ });
727
+ }
728
+
729
+ consola.error('Response data:', response);
730
+
731
+ // Re-throw the error
732
+ throw error;
733
+ }
313
734
  }
314
735
 
315
736
 
@@ -323,7 +744,35 @@ export async function getKnowbaseAdminSessionsList( params?: { page?: number; p
323
744
  ): Promise<PaginatedChatSessionList> {
324
745
  const api = client || getAPIInstance()
325
746
  const response = await api.cfg_knowbase.adminSessionsList(params?.page, params?.page_size)
326
- return PaginatedChatSessionListSchema.parse(response)
747
+ try {
748
+ return PaginatedChatSessionListSchema.parse(response)
749
+ } catch (error) {
750
+ // Zod validation error - log detailed information
751
+ consola.error('❌ Zod Validation Failed');
752
+ consola.box({
753
+ title: 'getKnowbaseAdminSessionsList',
754
+ message: `Path: /cfg/knowbase/admin/sessions/\nMethod: GET`,
755
+ style: {
756
+ borderColor: 'red',
757
+ borderStyle: 'rounded'
758
+ }
759
+ });
760
+
761
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
762
+ consola.error('Validation Issues:');
763
+ (error as any).issues.forEach((issue: any, index: number) => {
764
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
765
+ consola.error(` ├─ Message: ${issue.message}`);
766
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
767
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
768
+ });
769
+ }
770
+
771
+ consola.error('Response data:', response);
772
+
773
+ // Re-throw the error
774
+ throw error;
775
+ }
327
776
  }
328
777
 
329
778
 
@@ -337,7 +786,35 @@ export async function createKnowbaseAdminSessionsCreate( data: ChatSessionCreat
337
786
  ): Promise<ChatSession> {
338
787
  const api = client || getAPIInstance()
339
788
  const response = await api.cfg_knowbase.adminSessionsCreate(data)
340
- return ChatSessionSchema.parse(response)
789
+ try {
790
+ return ChatSessionSchema.parse(response)
791
+ } catch (error) {
792
+ // Zod validation error - log detailed information
793
+ consola.error('❌ Zod Validation Failed');
794
+ consola.box({
795
+ title: 'createKnowbaseAdminSessionsCreate',
796
+ message: `Path: /cfg/knowbase/admin/sessions/\nMethod: POST`,
797
+ style: {
798
+ borderColor: 'red',
799
+ borderStyle: 'rounded'
800
+ }
801
+ });
802
+
803
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
804
+ consola.error('Validation Issues:');
805
+ (error as any).issues.forEach((issue: any, index: number) => {
806
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
807
+ consola.error(` ├─ Message: ${issue.message}`);
808
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
809
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
810
+ });
811
+ }
812
+
813
+ consola.error('Response data:', response);
814
+
815
+ // Re-throw the error
816
+ throw error;
817
+ }
341
818
  }
342
819
 
343
820
 
@@ -351,7 +828,35 @@ export async function getKnowbaseAdminSessionsRetrieve( id: string, client?: a
351
828
  ): Promise<ChatSession> {
352
829
  const api = client || getAPIInstance()
353
830
  const response = await api.cfg_knowbase.adminSessionsRetrieve(id)
354
- return ChatSessionSchema.parse(response)
831
+ try {
832
+ return ChatSessionSchema.parse(response)
833
+ } catch (error) {
834
+ // Zod validation error - log detailed information
835
+ consola.error('❌ Zod Validation Failed');
836
+ consola.box({
837
+ title: 'getKnowbaseAdminSessionsRetrieve',
838
+ message: `Path: /cfg/knowbase/admin/sessions/{id}/\nMethod: GET`,
839
+ style: {
840
+ borderColor: 'red',
841
+ borderStyle: 'rounded'
842
+ }
843
+ });
844
+
845
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
846
+ consola.error('Validation Issues:');
847
+ (error as any).issues.forEach((issue: any, index: number) => {
848
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
849
+ consola.error(` ├─ Message: ${issue.message}`);
850
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
851
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
852
+ });
853
+ }
854
+
855
+ consola.error('Response data:', response);
856
+
857
+ // Re-throw the error
858
+ throw error;
859
+ }
355
860
  }
356
861
 
357
862
 
@@ -365,7 +870,35 @@ export async function updateKnowbaseAdminSessionsUpdate( id: string, data: Chat
365
870
  ): Promise<ChatSession> {
366
871
  const api = client || getAPIInstance()
367
872
  const response = await api.cfg_knowbase.adminSessionsUpdate(id, data)
368
- return ChatSessionSchema.parse(response)
873
+ try {
874
+ return ChatSessionSchema.parse(response)
875
+ } catch (error) {
876
+ // Zod validation error - log detailed information
877
+ consola.error('❌ Zod Validation Failed');
878
+ consola.box({
879
+ title: 'updateKnowbaseAdminSessionsUpdate',
880
+ message: `Path: /cfg/knowbase/admin/sessions/{id}/\nMethod: PUT`,
881
+ style: {
882
+ borderColor: 'red',
883
+ borderStyle: 'rounded'
884
+ }
885
+ });
886
+
887
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
888
+ consola.error('Validation Issues:');
889
+ (error as any).issues.forEach((issue: any, index: number) => {
890
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
891
+ consola.error(` ├─ Message: ${issue.message}`);
892
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
893
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
894
+ });
895
+ }
896
+
897
+ consola.error('Response data:', response);
898
+
899
+ // Re-throw the error
900
+ throw error;
901
+ }
369
902
  }
370
903
 
371
904
 
@@ -379,7 +912,35 @@ export async function partialUpdateKnowbaseAdminSessionsPartialUpdate( id: stri
379
912
  ): Promise<ChatSession> {
380
913
  const api = client || getAPIInstance()
381
914
  const response = await api.cfg_knowbase.adminSessionsPartialUpdate(id, data)
382
- return ChatSessionSchema.parse(response)
915
+ try {
916
+ return ChatSessionSchema.parse(response)
917
+ } catch (error) {
918
+ // Zod validation error - log detailed information
919
+ consola.error('❌ Zod Validation Failed');
920
+ consola.box({
921
+ title: 'partialUpdateKnowbaseAdminSessionsPartialUpdate',
922
+ message: `Path: /cfg/knowbase/admin/sessions/{id}/\nMethod: PATCH`,
923
+ style: {
924
+ borderColor: 'red',
925
+ borderStyle: 'rounded'
926
+ }
927
+ });
928
+
929
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
930
+ consola.error('Validation Issues:');
931
+ (error as any).issues.forEach((issue: any, index: number) => {
932
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
933
+ consola.error(` ├─ Message: ${issue.message}`);
934
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
935
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
936
+ });
937
+ }
938
+
939
+ consola.error('Response data:', response);
940
+
941
+ // Re-throw the error
942
+ throw error;
943
+ }
383
944
  }
384
945
 
385
946
 
@@ -407,7 +968,35 @@ export async function createKnowbaseAdminSessionsActivateCreate( id: string, da
407
968
  ): Promise<ChatSession> {
408
969
  const api = client || getAPIInstance()
409
970
  const response = await api.cfg_knowbase.adminSessionsActivateCreate(id, data)
410
- return ChatSessionSchema.parse(response)
971
+ try {
972
+ return ChatSessionSchema.parse(response)
973
+ } catch (error) {
974
+ // Zod validation error - log detailed information
975
+ consola.error('❌ Zod Validation Failed');
976
+ consola.box({
977
+ title: 'createKnowbaseAdminSessionsActivateCreate',
978
+ message: `Path: /cfg/knowbase/admin/sessions/{id}/activate/\nMethod: POST`,
979
+ style: {
980
+ borderColor: 'red',
981
+ borderStyle: 'rounded'
982
+ }
983
+ });
984
+
985
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
986
+ consola.error('Validation Issues:');
987
+ (error as any).issues.forEach((issue: any, index: number) => {
988
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
989
+ consola.error(` ├─ Message: ${issue.message}`);
990
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
991
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
992
+ });
993
+ }
994
+
995
+ consola.error('Response data:', response);
996
+
997
+ // Re-throw the error
998
+ throw error;
999
+ }
411
1000
  }
412
1001
 
413
1002
 
@@ -421,7 +1010,35 @@ export async function createKnowbaseAdminSessionsArchiveCreate( id: string, dat
421
1010
  ): Promise<ChatSession> {
422
1011
  const api = client || getAPIInstance()
423
1012
  const response = await api.cfg_knowbase.adminSessionsArchiveCreate(id, data)
424
- return ChatSessionSchema.parse(response)
1013
+ try {
1014
+ return ChatSessionSchema.parse(response)
1015
+ } catch (error) {
1016
+ // Zod validation error - log detailed information
1017
+ consola.error('❌ Zod Validation Failed');
1018
+ consola.box({
1019
+ title: 'createKnowbaseAdminSessionsArchiveCreate',
1020
+ message: `Path: /cfg/knowbase/admin/sessions/{id}/archive/\nMethod: POST`,
1021
+ style: {
1022
+ borderColor: 'red',
1023
+ borderStyle: 'rounded'
1024
+ }
1025
+ });
1026
+
1027
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1028
+ consola.error('Validation Issues:');
1029
+ (error as any).issues.forEach((issue: any, index: number) => {
1030
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1031
+ consola.error(` ├─ Message: ${issue.message}`);
1032
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1033
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1034
+ });
1035
+ }
1036
+
1037
+ consola.error('Response data:', response);
1038
+
1039
+ // Re-throw the error
1040
+ throw error;
1041
+ }
425
1042
  }
426
1043
 
427
1044
 
@@ -435,7 +1052,35 @@ export async function getKnowbaseCategoriesList( params?: { page?: number; page
435
1052
  ): Promise<PaginatedPublicCategoryList> {
436
1053
  const api = client || getAPIInstance()
437
1054
  const response = await api.cfg_knowbase.categoriesList(params?.page, params?.page_size)
438
- return PaginatedPublicCategoryListSchema.parse(response)
1055
+ try {
1056
+ return PaginatedPublicCategoryListSchema.parse(response)
1057
+ } catch (error) {
1058
+ // Zod validation error - log detailed information
1059
+ consola.error('❌ Zod Validation Failed');
1060
+ consola.box({
1061
+ title: 'getKnowbaseCategoriesList',
1062
+ message: `Path: /cfg/knowbase/categories/\nMethod: GET`,
1063
+ style: {
1064
+ borderColor: 'red',
1065
+ borderStyle: 'rounded'
1066
+ }
1067
+ });
1068
+
1069
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1070
+ consola.error('Validation Issues:');
1071
+ (error as any).issues.forEach((issue: any, index: number) => {
1072
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1073
+ consola.error(` ├─ Message: ${issue.message}`);
1074
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1075
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1076
+ });
1077
+ }
1078
+
1079
+ consola.error('Response data:', response);
1080
+
1081
+ // Re-throw the error
1082
+ throw error;
1083
+ }
439
1084
  }
440
1085
 
441
1086
 
@@ -449,7 +1094,35 @@ export async function getKnowbaseCategoriesRetrieve( id: string, client?: any
449
1094
  ): Promise<PublicCategory> {
450
1095
  const api = client || getAPIInstance()
451
1096
  const response = await api.cfg_knowbase.categoriesRetrieve(id)
452
- return PublicCategorySchema.parse(response)
1097
+ try {
1098
+ return PublicCategorySchema.parse(response)
1099
+ } catch (error) {
1100
+ // Zod validation error - log detailed information
1101
+ consola.error('❌ Zod Validation Failed');
1102
+ consola.box({
1103
+ title: 'getKnowbaseCategoriesRetrieve',
1104
+ message: `Path: /cfg/knowbase/categories/{id}/\nMethod: GET`,
1105
+ style: {
1106
+ borderColor: 'red',
1107
+ borderStyle: 'rounded'
1108
+ }
1109
+ });
1110
+
1111
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1112
+ consola.error('Validation Issues:');
1113
+ (error as any).issues.forEach((issue: any, index: number) => {
1114
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1115
+ consola.error(` ├─ Message: ${issue.message}`);
1116
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1117
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1118
+ });
1119
+ }
1120
+
1121
+ consola.error('Response data:', response);
1122
+
1123
+ // Re-throw the error
1124
+ throw error;
1125
+ }
453
1126
  }
454
1127
 
455
1128
 
@@ -463,7 +1136,35 @@ export async function getKnowbaseDocumentsList( params?: { category?: string; p
463
1136
  ): Promise<PaginatedPublicDocumentListList> {
464
1137
  const api = client || getAPIInstance()
465
1138
  const response = await api.cfg_knowbase.documentsList(params?.category, params?.page, params?.page_size, params?.search)
466
- return PaginatedPublicDocumentListListSchema.parse(response)
1139
+ try {
1140
+ return PaginatedPublicDocumentListListSchema.parse(response)
1141
+ } catch (error) {
1142
+ // Zod validation error - log detailed information
1143
+ consola.error('❌ Zod Validation Failed');
1144
+ consola.box({
1145
+ title: 'getKnowbaseDocumentsList',
1146
+ message: `Path: /cfg/knowbase/documents/\nMethod: GET`,
1147
+ style: {
1148
+ borderColor: 'red',
1149
+ borderStyle: 'rounded'
1150
+ }
1151
+ });
1152
+
1153
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1154
+ consola.error('Validation Issues:');
1155
+ (error as any).issues.forEach((issue: any, index: number) => {
1156
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1157
+ consola.error(` ├─ Message: ${issue.message}`);
1158
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1159
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1160
+ });
1161
+ }
1162
+
1163
+ consola.error('Response data:', response);
1164
+
1165
+ // Re-throw the error
1166
+ throw error;
1167
+ }
467
1168
  }
468
1169
 
469
1170
 
@@ -477,7 +1178,35 @@ export async function getKnowbaseDocumentsRetrieve( id: string, client?: any
477
1178
  ): Promise<PublicDocument> {
478
1179
  const api = client || getAPIInstance()
479
1180
  const response = await api.cfg_knowbase.documentsRetrieve(id)
480
- return PublicDocumentSchema.parse(response)
1181
+ try {
1182
+ return PublicDocumentSchema.parse(response)
1183
+ } catch (error) {
1184
+ // Zod validation error - log detailed information
1185
+ consola.error('❌ Zod Validation Failed');
1186
+ consola.box({
1187
+ title: 'getKnowbaseDocumentsRetrieve',
1188
+ message: `Path: /cfg/knowbase/documents/{id}/\nMethod: GET`,
1189
+ style: {
1190
+ borderColor: 'red',
1191
+ borderStyle: 'rounded'
1192
+ }
1193
+ });
1194
+
1195
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1196
+ consola.error('Validation Issues:');
1197
+ (error as any).issues.forEach((issue: any, index: number) => {
1198
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1199
+ consola.error(` ├─ Message: ${issue.message}`);
1200
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1201
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1202
+ });
1203
+ }
1204
+
1205
+ consola.error('Response data:', response);
1206
+
1207
+ // Re-throw the error
1208
+ throw error;
1209
+ }
481
1210
  }
482
1211
 
483
1212
 
@@ -491,7 +1220,35 @@ export async function getKnowbaseSystemArchivesList( params?: { page?: number;
491
1220
  ): Promise<PaginatedDocumentArchiveListList> {
492
1221
  const api = client || getAPIInstance()
493
1222
  const response = await api.cfg_knowbase.systemArchivesList(params?.page, params?.page_size)
494
- return PaginatedDocumentArchiveListListSchema.parse(response)
1223
+ try {
1224
+ return PaginatedDocumentArchiveListListSchema.parse(response)
1225
+ } catch (error) {
1226
+ // Zod validation error - log detailed information
1227
+ consola.error('❌ Zod Validation Failed');
1228
+ consola.box({
1229
+ title: 'getKnowbaseSystemArchivesList',
1230
+ message: `Path: /cfg/knowbase/system/archives/\nMethod: GET`,
1231
+ style: {
1232
+ borderColor: 'red',
1233
+ borderStyle: 'rounded'
1234
+ }
1235
+ });
1236
+
1237
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1238
+ consola.error('Validation Issues:');
1239
+ (error as any).issues.forEach((issue: any, index: number) => {
1240
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1241
+ consola.error(` ├─ Message: ${issue.message}`);
1242
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1243
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1244
+ });
1245
+ }
1246
+
1247
+ consola.error('Response data:', response);
1248
+
1249
+ // Re-throw the error
1250
+ throw error;
1251
+ }
495
1252
  }
496
1253
 
497
1254
 
@@ -505,7 +1262,35 @@ export async function createKnowbaseSystemArchivesCreate( data: any, client?:
505
1262
  ): Promise<ArchiveProcessingResult> {
506
1263
  const api = client || getAPIInstance()
507
1264
  const response = await api.cfg_knowbase.systemArchivesCreate(data)
508
- return ArchiveProcessingResultSchema.parse(response)
1265
+ try {
1266
+ return ArchiveProcessingResultSchema.parse(response)
1267
+ } catch (error) {
1268
+ // Zod validation error - log detailed information
1269
+ consola.error('❌ Zod Validation Failed');
1270
+ consola.box({
1271
+ title: 'createKnowbaseSystemArchivesCreate',
1272
+ message: `Path: /cfg/knowbase/system/archives/\nMethod: POST`,
1273
+ style: {
1274
+ borderColor: 'red',
1275
+ borderStyle: 'rounded'
1276
+ }
1277
+ });
1278
+
1279
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1280
+ consola.error('Validation Issues:');
1281
+ (error as any).issues.forEach((issue: any, index: number) => {
1282
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1283
+ consola.error(` ├─ Message: ${issue.message}`);
1284
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1285
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1286
+ });
1287
+ }
1288
+
1289
+ consola.error('Response data:', response);
1290
+
1291
+ // Re-throw the error
1292
+ throw error;
1293
+ }
509
1294
  }
510
1295
 
511
1296
 
@@ -519,7 +1304,35 @@ export async function getKnowbaseSystemArchivesRetrieve( id: string, client?:
519
1304
  ): Promise<DocumentArchiveDetail> {
520
1305
  const api = client || getAPIInstance()
521
1306
  const response = await api.cfg_knowbase.systemArchivesRetrieve(id)
522
- return DocumentArchiveDetailSchema.parse(response)
1307
+ try {
1308
+ return DocumentArchiveDetailSchema.parse(response)
1309
+ } catch (error) {
1310
+ // Zod validation error - log detailed information
1311
+ consola.error('❌ Zod Validation Failed');
1312
+ consola.box({
1313
+ title: 'getKnowbaseSystemArchivesRetrieve',
1314
+ message: `Path: /cfg/knowbase/system/archives/{id}/\nMethod: GET`,
1315
+ style: {
1316
+ borderColor: 'red',
1317
+ borderStyle: 'rounded'
1318
+ }
1319
+ });
1320
+
1321
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1322
+ consola.error('Validation Issues:');
1323
+ (error as any).issues.forEach((issue: any, index: number) => {
1324
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1325
+ consola.error(` ├─ Message: ${issue.message}`);
1326
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1327
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1328
+ });
1329
+ }
1330
+
1331
+ consola.error('Response data:', response);
1332
+
1333
+ // Re-throw the error
1334
+ throw error;
1335
+ }
523
1336
  }
524
1337
 
525
1338
 
@@ -533,7 +1346,35 @@ export async function updateKnowbaseSystemArchivesUpdate( id: string, data: Doc
533
1346
  ): Promise<DocumentArchive> {
534
1347
  const api = client || getAPIInstance()
535
1348
  const response = await api.cfg_knowbase.systemArchivesUpdate(id, data)
536
- return DocumentArchiveSchema.parse(response)
1349
+ try {
1350
+ return DocumentArchiveSchema.parse(response)
1351
+ } catch (error) {
1352
+ // Zod validation error - log detailed information
1353
+ consola.error('❌ Zod Validation Failed');
1354
+ consola.box({
1355
+ title: 'updateKnowbaseSystemArchivesUpdate',
1356
+ message: `Path: /cfg/knowbase/system/archives/{id}/\nMethod: PUT`,
1357
+ style: {
1358
+ borderColor: 'red',
1359
+ borderStyle: 'rounded'
1360
+ }
1361
+ });
1362
+
1363
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1364
+ consola.error('Validation Issues:');
1365
+ (error as any).issues.forEach((issue: any, index: number) => {
1366
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1367
+ consola.error(` ├─ Message: ${issue.message}`);
1368
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1369
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1370
+ });
1371
+ }
1372
+
1373
+ consola.error('Response data:', response);
1374
+
1375
+ // Re-throw the error
1376
+ throw error;
1377
+ }
537
1378
  }
538
1379
 
539
1380
 
@@ -547,7 +1388,35 @@ export async function partialUpdateKnowbaseSystemArchivesPartialUpdate( id: str
547
1388
  ): Promise<DocumentArchive> {
548
1389
  const api = client || getAPIInstance()
549
1390
  const response = await api.cfg_knowbase.systemArchivesPartialUpdate(id, data)
550
- return DocumentArchiveSchema.parse(response)
1391
+ try {
1392
+ return DocumentArchiveSchema.parse(response)
1393
+ } catch (error) {
1394
+ // Zod validation error - log detailed information
1395
+ consola.error('❌ Zod Validation Failed');
1396
+ consola.box({
1397
+ title: 'partialUpdateKnowbaseSystemArchivesPartialUpdate',
1398
+ message: `Path: /cfg/knowbase/system/archives/{id}/\nMethod: PATCH`,
1399
+ style: {
1400
+ borderColor: 'red',
1401
+ borderStyle: 'rounded'
1402
+ }
1403
+ });
1404
+
1405
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1406
+ consola.error('Validation Issues:');
1407
+ (error as any).issues.forEach((issue: any, index: number) => {
1408
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1409
+ consola.error(` ├─ Message: ${issue.message}`);
1410
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1411
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1412
+ });
1413
+ }
1414
+
1415
+ consola.error('Response data:', response);
1416
+
1417
+ // Re-throw the error
1418
+ throw error;
1419
+ }
551
1420
  }
552
1421
 
553
1422
 
@@ -589,7 +1458,35 @@ export async function getKnowbaseSystemArchivesItemsList( id: string, params?:
589
1458
  ): Promise<PaginatedArchiveItemList> {
590
1459
  const api = client || getAPIInstance()
591
1460
  const response = await api.cfg_knowbase.systemArchivesItemsList(id, params?.page, params?.page_size)
592
- return PaginatedArchiveItemListSchema.parse(response)
1461
+ try {
1462
+ return PaginatedArchiveItemListSchema.parse(response)
1463
+ } catch (error) {
1464
+ // Zod validation error - log detailed information
1465
+ consola.error('❌ Zod Validation Failed');
1466
+ consola.box({
1467
+ title: 'getKnowbaseSystemArchivesItemsList',
1468
+ message: `Path: /cfg/knowbase/system/archives/{id}/items/\nMethod: GET`,
1469
+ style: {
1470
+ borderColor: 'red',
1471
+ borderStyle: 'rounded'
1472
+ }
1473
+ });
1474
+
1475
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1476
+ consola.error('Validation Issues:');
1477
+ (error as any).issues.forEach((issue: any, index: number) => {
1478
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1479
+ consola.error(` ├─ Message: ${issue.message}`);
1480
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1481
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1482
+ });
1483
+ }
1484
+
1485
+ consola.error('Response data:', response);
1486
+
1487
+ // Re-throw the error
1488
+ throw error;
1489
+ }
593
1490
  }
594
1491
 
595
1492
 
@@ -603,7 +1500,35 @@ export async function createKnowbaseSystemArchivesSearchCreate( id: string, dat
603
1500
  ): Promise<PaginatedArchiveSearchResultList> {
604
1501
  const api = client || getAPIInstance()
605
1502
  const response = await api.cfg_knowbase.systemArchivesSearchCreate(id, data, params?.page, params?.page_size)
606
- return PaginatedArchiveSearchResultListSchema.parse(response)
1503
+ try {
1504
+ return PaginatedArchiveSearchResultListSchema.parse(response)
1505
+ } catch (error) {
1506
+ // Zod validation error - log detailed information
1507
+ consola.error('❌ Zod Validation Failed');
1508
+ consola.box({
1509
+ title: 'createKnowbaseSystemArchivesSearchCreate',
1510
+ message: `Path: /cfg/knowbase/system/archives/{id}/search/\nMethod: POST`,
1511
+ style: {
1512
+ borderColor: 'red',
1513
+ borderStyle: 'rounded'
1514
+ }
1515
+ });
1516
+
1517
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1518
+ consola.error('Validation Issues:');
1519
+ (error as any).issues.forEach((issue: any, index: number) => {
1520
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1521
+ consola.error(` ├─ Message: ${issue.message}`);
1522
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1523
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1524
+ });
1525
+ }
1526
+
1527
+ consola.error('Response data:', response);
1528
+
1529
+ // Re-throw the error
1530
+ throw error;
1531
+ }
607
1532
  }
608
1533
 
609
1534
 
@@ -617,7 +1542,35 @@ export async function createKnowbaseSystemArchivesRevectorizeCreate( data: Chun
617
1542
  ): Promise<VectorizationResult> {
618
1543
  const api = client || getAPIInstance()
619
1544
  const response = await api.cfg_knowbase.systemArchivesRevectorizeCreate(data)
620
- return VectorizationResultSchema.parse(response)
1545
+ try {
1546
+ return VectorizationResultSchema.parse(response)
1547
+ } catch (error) {
1548
+ // Zod validation error - log detailed information
1549
+ consola.error('❌ Zod Validation Failed');
1550
+ consola.box({
1551
+ title: 'createKnowbaseSystemArchivesRevectorizeCreate',
1552
+ message: `Path: /cfg/knowbase/system/archives/revectorize/\nMethod: POST`,
1553
+ style: {
1554
+ borderColor: 'red',
1555
+ borderStyle: 'rounded'
1556
+ }
1557
+ });
1558
+
1559
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1560
+ consola.error('Validation Issues:');
1561
+ (error as any).issues.forEach((issue: any, index: number) => {
1562
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1563
+ consola.error(` ├─ Message: ${issue.message}`);
1564
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1565
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1566
+ });
1567
+ }
1568
+
1569
+ consola.error('Response data:', response);
1570
+
1571
+ // Re-throw the error
1572
+ throw error;
1573
+ }
621
1574
  }
622
1575
 
623
1576
 
@@ -631,7 +1584,35 @@ export async function getKnowbaseSystemArchivesStatisticsRetrieve( client?: any
631
1584
  ): Promise<ArchiveStatistics> {
632
1585
  const api = client || getAPIInstance()
633
1586
  const response = await api.cfg_knowbase.systemArchivesStatisticsRetrieve()
634
- return ArchiveStatisticsSchema.parse(response)
1587
+ try {
1588
+ return ArchiveStatisticsSchema.parse(response)
1589
+ } catch (error) {
1590
+ // Zod validation error - log detailed information
1591
+ consola.error('❌ Zod Validation Failed');
1592
+ consola.box({
1593
+ title: 'getKnowbaseSystemArchivesStatisticsRetrieve',
1594
+ message: `Path: /cfg/knowbase/system/archives/statistics/\nMethod: GET`,
1595
+ style: {
1596
+ borderColor: 'red',
1597
+ borderStyle: 'rounded'
1598
+ }
1599
+ });
1600
+
1601
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1602
+ consola.error('Validation Issues:');
1603
+ (error as any).issues.forEach((issue: any, index: number) => {
1604
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1605
+ consola.error(` ├─ Message: ${issue.message}`);
1606
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1607
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1608
+ });
1609
+ }
1610
+
1611
+ consola.error('Response data:', response);
1612
+
1613
+ // Re-throw the error
1614
+ throw error;
1615
+ }
635
1616
  }
636
1617
 
637
1618
 
@@ -645,7 +1626,35 @@ export async function getKnowbaseSystemArchivesVectorizationStatsRetrieve( clie
645
1626
  ): Promise<VectorizationStatistics> {
646
1627
  const api = client || getAPIInstance()
647
1628
  const response = await api.cfg_knowbase.systemArchivesVectorizationStatsRetrieve()
648
- return VectorizationStatisticsSchema.parse(response)
1629
+ try {
1630
+ return VectorizationStatisticsSchema.parse(response)
1631
+ } catch (error) {
1632
+ // Zod validation error - log detailed information
1633
+ consola.error('❌ Zod Validation Failed');
1634
+ consola.box({
1635
+ title: 'getKnowbaseSystemArchivesVectorizationStatsRetrieve',
1636
+ message: `Path: /cfg/knowbase/system/archives/vectorization_stats/\nMethod: GET`,
1637
+ style: {
1638
+ borderColor: 'red',
1639
+ borderStyle: 'rounded'
1640
+ }
1641
+ });
1642
+
1643
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1644
+ consola.error('Validation Issues:');
1645
+ (error as any).issues.forEach((issue: any, index: number) => {
1646
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1647
+ consola.error(` ├─ Message: ${issue.message}`);
1648
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1649
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1650
+ });
1651
+ }
1652
+
1653
+ consola.error('Response data:', response);
1654
+
1655
+ // Re-throw the error
1656
+ throw error;
1657
+ }
649
1658
  }
650
1659
 
651
1660
 
@@ -659,7 +1668,35 @@ export async function getKnowbaseSystemChunksList( params?: { page?: number; pa
659
1668
  ): Promise<PaginatedArchiveItemChunkList> {
660
1669
  const api = client || getAPIInstance()
661
1670
  const response = await api.cfg_knowbase.systemChunksList(params?.page, params?.page_size)
662
- return PaginatedArchiveItemChunkListSchema.parse(response)
1671
+ try {
1672
+ return PaginatedArchiveItemChunkListSchema.parse(response)
1673
+ } catch (error) {
1674
+ // Zod validation error - log detailed information
1675
+ consola.error('❌ Zod Validation Failed');
1676
+ consola.box({
1677
+ title: 'getKnowbaseSystemChunksList',
1678
+ message: `Path: /cfg/knowbase/system/chunks/\nMethod: GET`,
1679
+ style: {
1680
+ borderColor: 'red',
1681
+ borderStyle: 'rounded'
1682
+ }
1683
+ });
1684
+
1685
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1686
+ consola.error('Validation Issues:');
1687
+ (error as any).issues.forEach((issue: any, index: number) => {
1688
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1689
+ consola.error(` ├─ Message: ${issue.message}`);
1690
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1691
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1692
+ });
1693
+ }
1694
+
1695
+ consola.error('Response data:', response);
1696
+
1697
+ // Re-throw the error
1698
+ throw error;
1699
+ }
663
1700
  }
664
1701
 
665
1702
 
@@ -673,7 +1710,35 @@ export async function createKnowbaseSystemChunksCreate( data: ArchiveItemChunkR
673
1710
  ): Promise<ArchiveItemChunk> {
674
1711
  const api = client || getAPIInstance()
675
1712
  const response = await api.cfg_knowbase.systemChunksCreate(data)
676
- return ArchiveItemChunkSchema.parse(response)
1713
+ try {
1714
+ return ArchiveItemChunkSchema.parse(response)
1715
+ } catch (error) {
1716
+ // Zod validation error - log detailed information
1717
+ consola.error('❌ Zod Validation Failed');
1718
+ consola.box({
1719
+ title: 'createKnowbaseSystemChunksCreate',
1720
+ message: `Path: /cfg/knowbase/system/chunks/\nMethod: POST`,
1721
+ style: {
1722
+ borderColor: 'red',
1723
+ borderStyle: 'rounded'
1724
+ }
1725
+ });
1726
+
1727
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1728
+ consola.error('Validation Issues:');
1729
+ (error as any).issues.forEach((issue: any, index: number) => {
1730
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1731
+ consola.error(` ├─ Message: ${issue.message}`);
1732
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1733
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1734
+ });
1735
+ }
1736
+
1737
+ consola.error('Response data:', response);
1738
+
1739
+ // Re-throw the error
1740
+ throw error;
1741
+ }
677
1742
  }
678
1743
 
679
1744
 
@@ -687,7 +1752,35 @@ export async function getKnowbaseSystemChunksRetrieve( id: string, client?: an
687
1752
  ): Promise<ArchiveItemChunkDetail> {
688
1753
  const api = client || getAPIInstance()
689
1754
  const response = await api.cfg_knowbase.systemChunksRetrieve(id)
690
- return ArchiveItemChunkDetailSchema.parse(response)
1755
+ try {
1756
+ return ArchiveItemChunkDetailSchema.parse(response)
1757
+ } catch (error) {
1758
+ // Zod validation error - log detailed information
1759
+ consola.error('❌ Zod Validation Failed');
1760
+ consola.box({
1761
+ title: 'getKnowbaseSystemChunksRetrieve',
1762
+ message: `Path: /cfg/knowbase/system/chunks/{id}/\nMethod: GET`,
1763
+ style: {
1764
+ borderColor: 'red',
1765
+ borderStyle: 'rounded'
1766
+ }
1767
+ });
1768
+
1769
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1770
+ consola.error('Validation Issues:');
1771
+ (error as any).issues.forEach((issue: any, index: number) => {
1772
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1773
+ consola.error(` ├─ Message: ${issue.message}`);
1774
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1775
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1776
+ });
1777
+ }
1778
+
1779
+ consola.error('Response data:', response);
1780
+
1781
+ // Re-throw the error
1782
+ throw error;
1783
+ }
691
1784
  }
692
1785
 
693
1786
 
@@ -701,7 +1794,35 @@ export async function updateKnowbaseSystemChunksUpdate( id: string, data: Archi
701
1794
  ): Promise<ArchiveItemChunk> {
702
1795
  const api = client || getAPIInstance()
703
1796
  const response = await api.cfg_knowbase.systemChunksUpdate(id, data)
704
- return ArchiveItemChunkSchema.parse(response)
1797
+ try {
1798
+ return ArchiveItemChunkSchema.parse(response)
1799
+ } catch (error) {
1800
+ // Zod validation error - log detailed information
1801
+ consola.error('❌ Zod Validation Failed');
1802
+ consola.box({
1803
+ title: 'updateKnowbaseSystemChunksUpdate',
1804
+ message: `Path: /cfg/knowbase/system/chunks/{id}/\nMethod: PUT`,
1805
+ style: {
1806
+ borderColor: 'red',
1807
+ borderStyle: 'rounded'
1808
+ }
1809
+ });
1810
+
1811
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1812
+ consola.error('Validation Issues:');
1813
+ (error as any).issues.forEach((issue: any, index: number) => {
1814
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1815
+ consola.error(` ├─ Message: ${issue.message}`);
1816
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1817
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1818
+ });
1819
+ }
1820
+
1821
+ consola.error('Response data:', response);
1822
+
1823
+ // Re-throw the error
1824
+ throw error;
1825
+ }
705
1826
  }
706
1827
 
707
1828
 
@@ -715,7 +1836,35 @@ export async function partialUpdateKnowbaseSystemChunksPartialUpdate( id: strin
715
1836
  ): Promise<ArchiveItemChunk> {
716
1837
  const api = client || getAPIInstance()
717
1838
  const response = await api.cfg_knowbase.systemChunksPartialUpdate(id, data)
718
- return ArchiveItemChunkSchema.parse(response)
1839
+ try {
1840
+ return ArchiveItemChunkSchema.parse(response)
1841
+ } catch (error) {
1842
+ // Zod validation error - log detailed information
1843
+ consola.error('❌ Zod Validation Failed');
1844
+ consola.box({
1845
+ title: 'partialUpdateKnowbaseSystemChunksPartialUpdate',
1846
+ message: `Path: /cfg/knowbase/system/chunks/{id}/\nMethod: PATCH`,
1847
+ style: {
1848
+ borderColor: 'red',
1849
+ borderStyle: 'rounded'
1850
+ }
1851
+ });
1852
+
1853
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1854
+ consola.error('Validation Issues:');
1855
+ (error as any).issues.forEach((issue: any, index: number) => {
1856
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1857
+ consola.error(` ├─ Message: ${issue.message}`);
1858
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1859
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1860
+ });
1861
+ }
1862
+
1863
+ consola.error('Response data:', response);
1864
+
1865
+ // Re-throw the error
1866
+ throw error;
1867
+ }
719
1868
  }
720
1869
 
721
1870
 
@@ -743,7 +1892,35 @@ export async function getKnowbaseSystemChunksContextRetrieve( id: string, clie
743
1892
  ): Promise<ArchiveItemChunkDetail> {
744
1893
  const api = client || getAPIInstance()
745
1894
  const response = await api.cfg_knowbase.systemChunksContextRetrieve(id)
746
- return ArchiveItemChunkDetailSchema.parse(response)
1895
+ try {
1896
+ return ArchiveItemChunkDetailSchema.parse(response)
1897
+ } catch (error) {
1898
+ // Zod validation error - log detailed information
1899
+ consola.error('❌ Zod Validation Failed');
1900
+ consola.box({
1901
+ title: 'getKnowbaseSystemChunksContextRetrieve',
1902
+ message: `Path: /cfg/knowbase/system/chunks/{id}/context/\nMethod: GET`,
1903
+ style: {
1904
+ borderColor: 'red',
1905
+ borderStyle: 'rounded'
1906
+ }
1907
+ });
1908
+
1909
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1910
+ consola.error('Validation Issues:');
1911
+ (error as any).issues.forEach((issue: any, index: number) => {
1912
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1913
+ consola.error(` ├─ Message: ${issue.message}`);
1914
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1915
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1916
+ });
1917
+ }
1918
+
1919
+ consola.error('Response data:', response);
1920
+
1921
+ // Re-throw the error
1922
+ throw error;
1923
+ }
747
1924
  }
748
1925
 
749
1926
 
@@ -771,7 +1948,35 @@ export async function getKnowbaseSystemItemsList( params?: { page?: number; pag
771
1948
  ): Promise<PaginatedArchiveItemList> {
772
1949
  const api = client || getAPIInstance()
773
1950
  const response = await api.cfg_knowbase.systemItemsList(params?.page, params?.page_size)
774
- return PaginatedArchiveItemListSchema.parse(response)
1951
+ try {
1952
+ return PaginatedArchiveItemListSchema.parse(response)
1953
+ } catch (error) {
1954
+ // Zod validation error - log detailed information
1955
+ consola.error('❌ Zod Validation Failed');
1956
+ consola.box({
1957
+ title: 'getKnowbaseSystemItemsList',
1958
+ message: `Path: /cfg/knowbase/system/items/\nMethod: GET`,
1959
+ style: {
1960
+ borderColor: 'red',
1961
+ borderStyle: 'rounded'
1962
+ }
1963
+ });
1964
+
1965
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
1966
+ consola.error('Validation Issues:');
1967
+ (error as any).issues.forEach((issue: any, index: number) => {
1968
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
1969
+ consola.error(` ├─ Message: ${issue.message}`);
1970
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
1971
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
1972
+ });
1973
+ }
1974
+
1975
+ consola.error('Response data:', response);
1976
+
1977
+ // Re-throw the error
1978
+ throw error;
1979
+ }
775
1980
  }
776
1981
 
777
1982
 
@@ -785,7 +1990,35 @@ export async function createKnowbaseSystemItemsCreate( data: ArchiveItemRequest
785
1990
  ): Promise<ArchiveItem> {
786
1991
  const api = client || getAPIInstance()
787
1992
  const response = await api.cfg_knowbase.systemItemsCreate(data)
788
- return ArchiveItemSchema.parse(response)
1993
+ try {
1994
+ return ArchiveItemSchema.parse(response)
1995
+ } catch (error) {
1996
+ // Zod validation error - log detailed information
1997
+ consola.error('❌ Zod Validation Failed');
1998
+ consola.box({
1999
+ title: 'createKnowbaseSystemItemsCreate',
2000
+ message: `Path: /cfg/knowbase/system/items/\nMethod: POST`,
2001
+ style: {
2002
+ borderColor: 'red',
2003
+ borderStyle: 'rounded'
2004
+ }
2005
+ });
2006
+
2007
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
2008
+ consola.error('Validation Issues:');
2009
+ (error as any).issues.forEach((issue: any, index: number) => {
2010
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
2011
+ consola.error(` ├─ Message: ${issue.message}`);
2012
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
2013
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
2014
+ });
2015
+ }
2016
+
2017
+ consola.error('Response data:', response);
2018
+
2019
+ // Re-throw the error
2020
+ throw error;
2021
+ }
789
2022
  }
790
2023
 
791
2024
 
@@ -799,7 +2032,35 @@ export async function getKnowbaseSystemItemsRetrieve( id: string, client?: any
799
2032
  ): Promise<ArchiveItemDetail> {
800
2033
  const api = client || getAPIInstance()
801
2034
  const response = await api.cfg_knowbase.systemItemsRetrieve(id)
802
- return ArchiveItemDetailSchema.parse(response)
2035
+ try {
2036
+ return ArchiveItemDetailSchema.parse(response)
2037
+ } catch (error) {
2038
+ // Zod validation error - log detailed information
2039
+ consola.error('❌ Zod Validation Failed');
2040
+ consola.box({
2041
+ title: 'getKnowbaseSystemItemsRetrieve',
2042
+ message: `Path: /cfg/knowbase/system/items/{id}/\nMethod: GET`,
2043
+ style: {
2044
+ borderColor: 'red',
2045
+ borderStyle: 'rounded'
2046
+ }
2047
+ });
2048
+
2049
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
2050
+ consola.error('Validation Issues:');
2051
+ (error as any).issues.forEach((issue: any, index: number) => {
2052
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
2053
+ consola.error(` ├─ Message: ${issue.message}`);
2054
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
2055
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
2056
+ });
2057
+ }
2058
+
2059
+ consola.error('Response data:', response);
2060
+
2061
+ // Re-throw the error
2062
+ throw error;
2063
+ }
803
2064
  }
804
2065
 
805
2066
 
@@ -813,7 +2074,35 @@ export async function updateKnowbaseSystemItemsUpdate( id: string, data: Archiv
813
2074
  ): Promise<ArchiveItem> {
814
2075
  const api = client || getAPIInstance()
815
2076
  const response = await api.cfg_knowbase.systemItemsUpdate(id, data)
816
- return ArchiveItemSchema.parse(response)
2077
+ try {
2078
+ return ArchiveItemSchema.parse(response)
2079
+ } catch (error) {
2080
+ // Zod validation error - log detailed information
2081
+ consola.error('❌ Zod Validation Failed');
2082
+ consola.box({
2083
+ title: 'updateKnowbaseSystemItemsUpdate',
2084
+ message: `Path: /cfg/knowbase/system/items/{id}/\nMethod: PUT`,
2085
+ style: {
2086
+ borderColor: 'red',
2087
+ borderStyle: 'rounded'
2088
+ }
2089
+ });
2090
+
2091
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
2092
+ consola.error('Validation Issues:');
2093
+ (error as any).issues.forEach((issue: any, index: number) => {
2094
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
2095
+ consola.error(` ├─ Message: ${issue.message}`);
2096
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
2097
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
2098
+ });
2099
+ }
2100
+
2101
+ consola.error('Response data:', response);
2102
+
2103
+ // Re-throw the error
2104
+ throw error;
2105
+ }
817
2106
  }
818
2107
 
819
2108
 
@@ -827,7 +2116,35 @@ export async function partialUpdateKnowbaseSystemItemsPartialUpdate( id: string
827
2116
  ): Promise<ArchiveItem> {
828
2117
  const api = client || getAPIInstance()
829
2118
  const response = await api.cfg_knowbase.systemItemsPartialUpdate(id, data)
830
- return ArchiveItemSchema.parse(response)
2119
+ try {
2120
+ return ArchiveItemSchema.parse(response)
2121
+ } catch (error) {
2122
+ // Zod validation error - log detailed information
2123
+ consola.error('❌ Zod Validation Failed');
2124
+ consola.box({
2125
+ title: 'partialUpdateKnowbaseSystemItemsPartialUpdate',
2126
+ message: `Path: /cfg/knowbase/system/items/{id}/\nMethod: PATCH`,
2127
+ style: {
2128
+ borderColor: 'red',
2129
+ borderStyle: 'rounded'
2130
+ }
2131
+ });
2132
+
2133
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
2134
+ consola.error('Validation Issues:');
2135
+ (error as any).issues.forEach((issue: any, index: number) => {
2136
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
2137
+ consola.error(` ├─ Message: ${issue.message}`);
2138
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
2139
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
2140
+ });
2141
+ }
2142
+
2143
+ consola.error('Response data:', response);
2144
+
2145
+ // Re-throw the error
2146
+ throw error;
2147
+ }
831
2148
  }
832
2149
 
833
2150
 
@@ -855,7 +2172,35 @@ export async function getKnowbaseSystemItemsChunksList( id: string, params?: {
855
2172
  ): Promise<PaginatedArchiveItemChunkList> {
856
2173
  const api = client || getAPIInstance()
857
2174
  const response = await api.cfg_knowbase.systemItemsChunksList(id, params?.page, params?.page_size)
858
- return PaginatedArchiveItemChunkListSchema.parse(response)
2175
+ try {
2176
+ return PaginatedArchiveItemChunkListSchema.parse(response)
2177
+ } catch (error) {
2178
+ // Zod validation error - log detailed information
2179
+ consola.error('❌ Zod Validation Failed');
2180
+ consola.box({
2181
+ title: 'getKnowbaseSystemItemsChunksList',
2182
+ message: `Path: /cfg/knowbase/system/items/{id}/chunks/\nMethod: GET`,
2183
+ style: {
2184
+ borderColor: 'red',
2185
+ borderStyle: 'rounded'
2186
+ }
2187
+ });
2188
+
2189
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
2190
+ consola.error('Validation Issues:');
2191
+ (error as any).issues.forEach((issue: any, index: number) => {
2192
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
2193
+ consola.error(` ├─ Message: ${issue.message}`);
2194
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
2195
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
2196
+ });
2197
+ }
2198
+
2199
+ consola.error('Response data:', response);
2200
+
2201
+ // Re-throw the error
2202
+ throw error;
2203
+ }
859
2204
  }
860
2205
 
861
2206
 
@@ -869,7 +2214,35 @@ export async function getKnowbaseSystemItemsContentRetrieve( id: string, clien
869
2214
  ): Promise<ArchiveItemDetail> {
870
2215
  const api = client || getAPIInstance()
871
2216
  const response = await api.cfg_knowbase.systemItemsContentRetrieve(id)
872
- return ArchiveItemDetailSchema.parse(response)
2217
+ try {
2218
+ return ArchiveItemDetailSchema.parse(response)
2219
+ } catch (error) {
2220
+ // Zod validation error - log detailed information
2221
+ consola.error('❌ Zod Validation Failed');
2222
+ consola.box({
2223
+ title: 'getKnowbaseSystemItemsContentRetrieve',
2224
+ message: `Path: /cfg/knowbase/system/items/{id}/content/\nMethod: GET`,
2225
+ style: {
2226
+ borderColor: 'red',
2227
+ borderStyle: 'rounded'
2228
+ }
2229
+ });
2230
+
2231
+ if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {
2232
+ consola.error('Validation Issues:');
2233
+ (error as any).issues.forEach((issue: any, index: number) => {
2234
+ consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);
2235
+ consola.error(` ├─ Message: ${issue.message}`);
2236
+ if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);
2237
+ if (issue.received) consola.error(` └─ Received: ${issue.received}`);
2238
+ });
2239
+ }
2240
+
2241
+ consola.error('Response data:', response);
2242
+
2243
+ // Re-throw the error
2244
+ throw error;
2245
+ }
873
2246
  }
874
2247
 
875
2248