@djangocfg/ext-knowbase 1.0.25 → 1.0.27

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/config.cjs +1 -1
  2. package/dist/config.js +1 -1
  3. package/dist/hooks.cjs +592 -210
  4. package/dist/hooks.d.cts +21 -0
  5. package/dist/hooks.d.ts +21 -0
  6. package/dist/hooks.js +592 -210
  7. package/dist/i18n.cjs +507 -3
  8. package/dist/i18n.d.cts +29 -1
  9. package/dist/i18n.d.ts +29 -1
  10. package/dist/i18n.js +492 -2
  11. package/dist/index.cjs +115 -209
  12. package/dist/index.d.cts +72 -205
  13. package/dist/index.d.ts +72 -205
  14. package/dist/index.js +115 -209
  15. package/package.json +9 -9
  16. package/src/api/generated/ext_knowbase/_utils/fetchers/ext_knowbase__knowbase.ts +69 -136
  17. package/src/api/generated/ext_knowbase/_utils/hooks/ext_knowbase__knowbase.ts +14 -15
  18. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItem.schema.ts +2 -3
  19. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunk.schema.ts +2 -3
  20. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunkDetail.schema.ts +3 -4
  21. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunkRequest.schema.ts +3 -4
  22. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemDetail.schema.ts +3 -4
  23. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemRequest.schema.ts +1 -1
  24. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveProcessingResult.schema.ts +1 -1
  25. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveSearchRequestRequest.schema.ts +1 -1
  26. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveSearchResult.schema.ts +2 -3
  27. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveStatistics.schema.ts +1 -1
  28. package/src/api/generated/ext_knowbase/_utils/schemas/CfgKnowbaseSystemArchivesCreateRequest.schema.ts +1 -1
  29. package/src/api/generated/ext_knowbase/_utils/schemas/ChatHistory.schema.ts +2 -3
  30. package/src/api/generated/ext_knowbase/_utils/schemas/ChatMessage.schema.ts +2 -3
  31. package/src/api/generated/ext_knowbase/_utils/schemas/ChatQueryRequest.schema.ts +1 -1
  32. package/src/api/generated/ext_knowbase/_utils/schemas/ChatResponse.schema.ts +2 -3
  33. package/src/api/generated/ext_knowbase/_utils/schemas/ChatResponseRequest.schema.ts +2 -3
  34. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSession.schema.ts +1 -1
  35. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSessionCreateRequest.schema.ts +1 -1
  36. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSessionRequest.schema.ts +1 -1
  37. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSource.schema.ts +1 -1
  38. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSourceRequest.schema.ts +1 -1
  39. package/src/api/generated/ext_knowbase/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts +1 -1
  40. package/src/api/generated/ext_knowbase/_utils/schemas/Document.schema.ts +1 -1
  41. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchive.schema.ts +3 -4
  42. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveDetail.schema.ts +6 -7
  43. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveList.schema.ts +5 -6
  44. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveRequest.schema.ts +1 -1
  45. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCategory.schema.ts +1 -1
  46. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCategoryRequest.schema.ts +1 -1
  47. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCreateRequest.schema.ts +1 -1
  48. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentProcessingStatus.schema.ts +1 -1
  49. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentRequest.schema.ts +1 -1
  50. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentStats.schema.ts +1 -1
  51. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts +2 -3
  52. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemList.schema.ts +2 -3
  53. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts +2 -3
  54. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedChatResponseList.schema.ts +2 -3
  55. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedChatSessionList.schema.ts +2 -3
  56. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts +2 -3
  57. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedDocumentList.schema.ts +2 -3
  58. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicCategoryList.schema.ts +2 -3
  59. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicDocumentListList.schema.ts +2 -3
  60. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts +3 -4
  61. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedArchiveItemRequest.schema.ts +1 -1
  62. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedChatResponseRequest.schema.ts +2 -3
  63. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedChatSessionRequest.schema.ts +1 -1
  64. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts +1 -1
  65. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedDocumentRequest.schema.ts +1 -1
  66. package/src/api/generated/ext_knowbase/_utils/schemas/PublicCategory.schema.ts +1 -1
  67. package/src/api/generated/ext_knowbase/_utils/schemas/PublicDocument.schema.ts +2 -3
  68. package/src/api/generated/ext_knowbase/_utils/schemas/PublicDocumentList.schema.ts +2 -3
  69. package/src/api/generated/ext_knowbase/_utils/schemas/VectorizationResult.schema.ts +1 -1
  70. package/src/api/generated/ext_knowbase/_utils/schemas/VectorizationStatistics.schema.ts +1 -1
  71. package/src/api/generated/ext_knowbase/api-instance.ts +1 -1
  72. package/src/api/generated/ext_knowbase/client.ts +6 -5
  73. package/src/api/generated/ext_knowbase/enums.ts +0 -165
  74. package/src/api/generated/ext_knowbase/ext_knowbase__knowbase/client.ts +35 -34
  75. package/src/api/generated/ext_knowbase/ext_knowbase__knowbase/models.ts +9 -9
  76. package/src/api/generated/ext_knowbase/index.ts +8 -6
  77. package/src/api/generated/ext_knowbase/retry.ts +0 -1
  78. package/src/api/generated/ext_knowbase/schema.json +189 -0
  79. package/src/i18n/index.ts +14 -0
  80. package/src/i18n/locales/ar.ts +36 -0
  81. package/src/i18n/locales/da.ts +36 -0
  82. package/src/i18n/locales/de.ts +36 -0
  83. package/src/i18n/locales/es.ts +36 -0
  84. package/src/i18n/locales/fr.ts +36 -0
  85. package/src/i18n/locales/it.ts +36 -0
  86. package/src/i18n/locales/ja.ts +36 -0
  87. package/src/i18n/locales/nl.ts +36 -0
  88. package/src/i18n/locales/no.ts +36 -0
  89. package/src/i18n/locales/pl.ts +36 -0
  90. package/src/i18n/locales/pt-BR.ts +36 -0
  91. package/src/i18n/locales/sv.ts +36 -0
  92. package/src/i18n/locales/tr.ts +36 -0
  93. package/src/i18n/locales/zh.ts +36 -0
  94. package/src/i18n/useKnowbaseT.ts +15 -1
package/dist/hooks.js CHANGED
@@ -23,89 +23,6 @@ var __export = (target, all) => {
23
23
  __defProp(target, name, { get: all[name], enumerable: true });
24
24
  };
25
25
 
26
- // src/api/generated/ext_knowbase/errors.ts
27
- var APIError = class extends Error {
28
- constructor(statusCode, statusText, response, url, message) {
29
- super(message || `HTTP ${statusCode}: ${statusText}`);
30
- this.statusCode = statusCode;
31
- this.statusText = statusText;
32
- this.response = response;
33
- this.url = url;
34
- this.name = "APIError";
35
- }
36
- /**
37
- * Get error details from response.
38
- * DRF typically returns: { "detail": "Error message" } or { "field": ["error1", "error2"] }
39
- */
40
- get details() {
41
- if (typeof this.response === "object" && this.response !== null) {
42
- return this.response;
43
- }
44
- return null;
45
- }
46
- /**
47
- * Get field-specific validation errors from DRF.
48
- * Returns: { "field_name": ["error1", "error2"], ... }
49
- */
50
- get fieldErrors() {
51
- const details = this.details;
52
- if (!details) return null;
53
- const fieldErrors = {};
54
- for (const [key, value] of Object.entries(details)) {
55
- if (Array.isArray(value)) {
56
- fieldErrors[key] = value;
57
- }
58
- }
59
- return Object.keys(fieldErrors).length > 0 ? fieldErrors : null;
60
- }
61
- /**
62
- * Get single error message from DRF.
63
- * Checks for "detail", "message", or first field error.
64
- */
65
- get errorMessage() {
66
- const details = this.details;
67
- if (!details) return this.message;
68
- if (details.detail) {
69
- return Array.isArray(details.detail) ? details.detail.join(", ") : String(details.detail);
70
- }
71
- if (details.message) {
72
- return String(details.message);
73
- }
74
- const fieldErrors = this.fieldErrors;
75
- if (fieldErrors) {
76
- const firstField = Object.keys(fieldErrors)[0];
77
- if (firstField) {
78
- return `${firstField}: ${fieldErrors[firstField]?.join(", ")}`;
79
- }
80
- }
81
- return this.message;
82
- }
83
- // Helper methods for common HTTP status codes
84
- get isValidationError() {
85
- return this.statusCode === 400;
86
- }
87
- get isAuthError() {
88
- return this.statusCode === 401;
89
- }
90
- get isPermissionError() {
91
- return this.statusCode === 403;
92
- }
93
- get isNotFoundError() {
94
- return this.statusCode === 404;
95
- }
96
- get isServerError() {
97
- return this.statusCode >= 500 && this.statusCode < 600;
98
- }
99
- };
100
- var NetworkError = class extends Error {
101
- constructor(message, url, originalError) {
102
- super(message);
103
- this.url = url;
104
- this.originalError = originalError;
105
- this.name = "NetworkError";
106
- }
107
- };
108
-
109
26
  // src/api/generated/ext_knowbase/ext_knowbase__knowbase/client.ts
110
27
  var ExtKnowbaseKnowbase = class {
111
28
  client;
@@ -121,7 +38,7 @@ var ExtKnowbaseKnowbase = class {
121
38
  if (isParamsObject) {
122
39
  params = args[0];
123
40
  } else {
124
- params = { page: args[0], page_size: args[1] };
41
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
125
42
  }
126
43
  const response = await this.client.request("GET", "/cfg/knowbase/admin/chat/", { params });
127
44
  return response;
@@ -190,7 +107,7 @@ var ExtKnowbaseKnowbase = class {
190
107
  if (isParamsObject) {
191
108
  params = args[0];
192
109
  } else {
193
- params = { page: args[0], page_size: args[1], status: args[2] };
110
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3], status: args[4] };
194
111
  }
195
112
  const response = await this.client.request("GET", "/cfg/knowbase/admin/documents/", { params });
196
113
  return response;
@@ -274,7 +191,7 @@ var ExtKnowbaseKnowbase = class {
274
191
  if (isParamsObject) {
275
192
  params = args[0];
276
193
  } else {
277
- params = { page: args[0], page_size: args[1] };
194
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
278
195
  }
279
196
  const response = await this.client.request("GET", "/cfg/knowbase/admin/sessions/", { params });
280
197
  return response;
@@ -345,7 +262,7 @@ var ExtKnowbaseKnowbase = class {
345
262
  if (isParamsObject) {
346
263
  params = args[0];
347
264
  } else {
348
- params = { page: args[0], page_size: args[1] };
265
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
349
266
  }
350
267
  const response = await this.client.request("GET", "/cfg/knowbase/categories/", { params });
351
268
  return response;
@@ -370,7 +287,7 @@ var ExtKnowbaseKnowbase = class {
370
287
  if (isParamsObject) {
371
288
  params = args[0];
372
289
  } else {
373
- params = { category: args[0], page: args[1], page_size: args[2], search: args[3] };
290
+ params = { category: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
374
291
  }
375
292
  const response = await this.client.request("GET", "/cfg/knowbase/documents/", { params });
376
293
  return response;
@@ -393,7 +310,7 @@ var ExtKnowbaseKnowbase = class {
393
310
  if (isParamsObject) {
394
311
  params = args[0];
395
312
  } else {
396
- params = { page: args[0], page_size: args[1] };
313
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
397
314
  }
398
315
  const response = await this.client.request("GET", "/cfg/knowbase/system/archives/", { params });
399
316
  return response;
@@ -467,7 +384,7 @@ var ExtKnowbaseKnowbase = class {
467
384
  if (isParamsObject) {
468
385
  params = args[1];
469
386
  } else {
470
- params = { page: args[1], page_size: args[2] };
387
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
471
388
  }
472
389
  const response = await this.client.request("GET", `/cfg/knowbase/system/archives/${id}/items/`, { params });
473
390
  return response;
@@ -485,7 +402,7 @@ var ExtKnowbaseKnowbase = class {
485
402
  if (isParamsObject) {
486
403
  params = args[2];
487
404
  } else {
488
- params = { page: args[2], page_size: args[3] };
405
+ params = { ordering: args[2], page: args[3], page_size: args[4], search: args[5] };
489
406
  }
490
407
  const formData = new FormData();
491
408
  formData.append("query", String(data.query));
@@ -537,7 +454,7 @@ var ExtKnowbaseKnowbase = class {
537
454
  if (isParamsObject) {
538
455
  params = args[0];
539
456
  } else {
540
- params = { page: args[0], page_size: args[1] };
457
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
541
458
  }
542
459
  const response = await this.client.request("GET", "/cfg/knowbase/system/chunks/", { params });
543
460
  return response;
@@ -604,7 +521,7 @@ var ExtKnowbaseKnowbase = class {
604
521
  if (isParamsObject) {
605
522
  params = args[0];
606
523
  } else {
607
- params = { page: args[0], page_size: args[1] };
524
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
608
525
  }
609
526
  const response = await this.client.request("GET", "/cfg/knowbase/system/items/", { params });
610
527
  return response;
@@ -656,7 +573,7 @@ var ExtKnowbaseKnowbase = class {
656
573
  if (isParamsObject) {
657
574
  params = args[1];
658
575
  } else {
659
- params = { page: args[1], page_size: args[2] };
576
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
660
577
  }
661
578
  const response = await this.client.request("GET", `/cfg/knowbase/system/items/${id}/chunks/`, { params });
662
579
  return response;
@@ -729,6 +646,89 @@ var FetchAdapter = class {
729
646
  };
730
647
  }
731
648
  };
649
+
650
+ // src/api/generated/ext_knowbase/errors.ts
651
+ var APIError = class extends Error {
652
+ constructor(statusCode, statusText, response, url, message) {
653
+ super(message || `HTTP ${statusCode}: ${statusText}`);
654
+ this.statusCode = statusCode;
655
+ this.statusText = statusText;
656
+ this.response = response;
657
+ this.url = url;
658
+ this.name = "APIError";
659
+ }
660
+ /**
661
+ * Get error details from response.
662
+ * DRF typically returns: { "detail": "Error message" } or { "field": ["error1", "error2"] }
663
+ */
664
+ get details() {
665
+ if (typeof this.response === "object" && this.response !== null) {
666
+ return this.response;
667
+ }
668
+ return null;
669
+ }
670
+ /**
671
+ * Get field-specific validation errors from DRF.
672
+ * Returns: { "field_name": ["error1", "error2"], ... }
673
+ */
674
+ get fieldErrors() {
675
+ const details = this.details;
676
+ if (!details) return null;
677
+ const fieldErrors = {};
678
+ for (const [key, value] of Object.entries(details)) {
679
+ if (Array.isArray(value)) {
680
+ fieldErrors[key] = value;
681
+ }
682
+ }
683
+ return Object.keys(fieldErrors).length > 0 ? fieldErrors : null;
684
+ }
685
+ /**
686
+ * Get single error message from DRF.
687
+ * Checks for "detail", "message", or first field error.
688
+ */
689
+ get errorMessage() {
690
+ const details = this.details;
691
+ if (!details) return this.message;
692
+ if (details.detail) {
693
+ return Array.isArray(details.detail) ? details.detail.join(", ") : String(details.detail);
694
+ }
695
+ if (details.message) {
696
+ return String(details.message);
697
+ }
698
+ const fieldErrors = this.fieldErrors;
699
+ if (fieldErrors) {
700
+ const firstField = Object.keys(fieldErrors)[0];
701
+ if (firstField) {
702
+ return `${firstField}: ${fieldErrors[firstField]?.join(", ")}`;
703
+ }
704
+ }
705
+ return this.message;
706
+ }
707
+ // Helper methods for common HTTP status codes
708
+ get isValidationError() {
709
+ return this.statusCode === 400;
710
+ }
711
+ get isAuthError() {
712
+ return this.statusCode === 401;
713
+ }
714
+ get isPermissionError() {
715
+ return this.statusCode === 403;
716
+ }
717
+ get isNotFoundError() {
718
+ return this.statusCode === 404;
719
+ }
720
+ get isServerError() {
721
+ return this.statusCode >= 500 && this.statusCode < 600;
722
+ }
723
+ };
724
+ var NetworkError = class extends Error {
725
+ constructor(message, url, originalError) {
726
+ super(message);
727
+ this.url = url;
728
+ this.originalError = originalError;
729
+ this.name = "NetworkError";
730
+ }
731
+ };
732
732
  var DEFAULT_CONFIG = {
733
733
  enabled: process.env.NODE_ENV !== "production",
734
734
  logRequests: true,
@@ -1264,20 +1264,10 @@ var MemoryStorageAdapter = class {
1264
1264
  var enums_exports = {};
1265
1265
  __export(enums_exports, {
1266
1266
  ArchiveItemChunkChunkType: () => ArchiveItemChunkChunkType,
1267
- ArchiveItemChunkDetailChunkType: () => ArchiveItemChunkDetailChunkType,
1268
- ArchiveItemChunkRequestChunkType: () => ArchiveItemChunkRequestChunkType,
1269
1267
  ArchiveItemContentType: () => ArchiveItemContentType,
1270
- ArchiveItemDetailContentType: () => ArchiveItemDetailContentType,
1271
- ArchiveSearchRequestRequestChunkTypesItems: () => ArchiveSearchRequestRequestChunkTypesItems,
1272
- ArchiveSearchRequestRequestContentTypesItems: () => ArchiveSearchRequestRequestContentTypesItems,
1273
1268
  ChatMessageRole: () => ChatMessageRole,
1274
1269
  DocumentArchiveArchiveType: () => DocumentArchiveArchiveType,
1275
- DocumentArchiveDetailArchiveType: () => DocumentArchiveDetailArchiveType,
1276
- DocumentArchiveDetailProcessingStatus: () => DocumentArchiveDetailProcessingStatus,
1277
- DocumentArchiveListArchiveType: () => DocumentArchiveListArchiveType,
1278
- DocumentArchiveListProcessingStatus: () => DocumentArchiveListProcessingStatus,
1279
- DocumentArchiveProcessingStatus: () => DocumentArchiveProcessingStatus,
1280
- PatchedArchiveItemChunkRequestChunkType: () => PatchedArchiveItemChunkRequestChunkType
1270
+ DocumentArchiveProcessingStatus: () => DocumentArchiveProcessingStatus
1281
1271
  });
1282
1272
  var ArchiveItemContentType = /* @__PURE__ */ ((ArchiveItemContentType2) => {
1283
1273
  ArchiveItemContentType2["DOCUMENT"] = "document";
@@ -1297,51 +1287,6 @@ var ArchiveItemChunkChunkType = /* @__PURE__ */ ((ArchiveItemChunkChunkType2) =>
1297
1287
  ArchiveItemChunkChunkType2["LIST"] = "list";
1298
1288
  return ArchiveItemChunkChunkType2;
1299
1289
  })(ArchiveItemChunkChunkType || {});
1300
- var ArchiveItemChunkDetailChunkType = /* @__PURE__ */ ((ArchiveItemChunkDetailChunkType2) => {
1301
- ArchiveItemChunkDetailChunkType2["TEXT"] = "text";
1302
- ArchiveItemChunkDetailChunkType2["CODE"] = "code";
1303
- ArchiveItemChunkDetailChunkType2["HEADING"] = "heading";
1304
- ArchiveItemChunkDetailChunkType2["METADATA"] = "metadata";
1305
- ArchiveItemChunkDetailChunkType2["TABLE"] = "table";
1306
- ArchiveItemChunkDetailChunkType2["LIST"] = "list";
1307
- return ArchiveItemChunkDetailChunkType2;
1308
- })(ArchiveItemChunkDetailChunkType || {});
1309
- var ArchiveItemChunkRequestChunkType = /* @__PURE__ */ ((ArchiveItemChunkRequestChunkType2) => {
1310
- ArchiveItemChunkRequestChunkType2["TEXT"] = "text";
1311
- ArchiveItemChunkRequestChunkType2["CODE"] = "code";
1312
- ArchiveItemChunkRequestChunkType2["HEADING"] = "heading";
1313
- ArchiveItemChunkRequestChunkType2["METADATA"] = "metadata";
1314
- ArchiveItemChunkRequestChunkType2["TABLE"] = "table";
1315
- ArchiveItemChunkRequestChunkType2["LIST"] = "list";
1316
- return ArchiveItemChunkRequestChunkType2;
1317
- })(ArchiveItemChunkRequestChunkType || {});
1318
- var ArchiveItemDetailContentType = /* @__PURE__ */ ((ArchiveItemDetailContentType2) => {
1319
- ArchiveItemDetailContentType2["DOCUMENT"] = "document";
1320
- ArchiveItemDetailContentType2["CODE"] = "code";
1321
- ArchiveItemDetailContentType2["IMAGE"] = "image";
1322
- ArchiveItemDetailContentType2["DATA"] = "data";
1323
- ArchiveItemDetailContentType2["ARCHIVE"] = "archive";
1324
- ArchiveItemDetailContentType2["UNKNOWN"] = "unknown";
1325
- return ArchiveItemDetailContentType2;
1326
- })(ArchiveItemDetailContentType || {});
1327
- var ArchiveSearchRequestRequestContentTypesItems = /* @__PURE__ */ ((ArchiveSearchRequestRequestContentTypesItems2) => {
1328
- ArchiveSearchRequestRequestContentTypesItems2["DOCUMENT"] = "document";
1329
- ArchiveSearchRequestRequestContentTypesItems2["CODE"] = "code";
1330
- ArchiveSearchRequestRequestContentTypesItems2["IMAGE"] = "image";
1331
- ArchiveSearchRequestRequestContentTypesItems2["DATA"] = "data";
1332
- ArchiveSearchRequestRequestContentTypesItems2["ARCHIVE"] = "archive";
1333
- ArchiveSearchRequestRequestContentTypesItems2["UNKNOWN"] = "unknown";
1334
- return ArchiveSearchRequestRequestContentTypesItems2;
1335
- })(ArchiveSearchRequestRequestContentTypesItems || {});
1336
- var ArchiveSearchRequestRequestChunkTypesItems = /* @__PURE__ */ ((ArchiveSearchRequestRequestChunkTypesItems2) => {
1337
- ArchiveSearchRequestRequestChunkTypesItems2["TEXT"] = "text";
1338
- ArchiveSearchRequestRequestChunkTypesItems2["CODE"] = "code";
1339
- ArchiveSearchRequestRequestChunkTypesItems2["HEADING"] = "heading";
1340
- ArchiveSearchRequestRequestChunkTypesItems2["METADATA"] = "metadata";
1341
- ArchiveSearchRequestRequestChunkTypesItems2["TABLE"] = "table";
1342
- ArchiveSearchRequestRequestChunkTypesItems2["LIST"] = "list";
1343
- return ArchiveSearchRequestRequestChunkTypesItems2;
1344
- })(ArchiveSearchRequestRequestChunkTypesItems || {});
1345
1290
  var ChatMessageRole = /* @__PURE__ */ ((ChatMessageRole2) => {
1346
1291
  ChatMessageRole2["USER"] = "user";
1347
1292
  ChatMessageRole2["ASSISTANT"] = "assistant";
@@ -1363,45 +1308,6 @@ var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessin
1363
1308
  DocumentArchiveProcessingStatus2["CANCELLED"] = "cancelled";
1364
1309
  return DocumentArchiveProcessingStatus2;
1365
1310
  })(DocumentArchiveProcessingStatus || {});
1366
- var DocumentArchiveDetailArchiveType = /* @__PURE__ */ ((DocumentArchiveDetailArchiveType2) => {
1367
- DocumentArchiveDetailArchiveType2["ZIP"] = "zip";
1368
- DocumentArchiveDetailArchiveType2["TAR"] = "tar";
1369
- DocumentArchiveDetailArchiveType2["TAR_DOT_GZ"] = "tar.gz";
1370
- DocumentArchiveDetailArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
1371
- return DocumentArchiveDetailArchiveType2;
1372
- })(DocumentArchiveDetailArchiveType || {});
1373
- var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDetailProcessingStatus2) => {
1374
- DocumentArchiveDetailProcessingStatus2["PENDING"] = "pending";
1375
- DocumentArchiveDetailProcessingStatus2["PROCESSING"] = "processing";
1376
- DocumentArchiveDetailProcessingStatus2["COMPLETED"] = "completed";
1377
- DocumentArchiveDetailProcessingStatus2["FAILED"] = "failed";
1378
- DocumentArchiveDetailProcessingStatus2["CANCELLED"] = "cancelled";
1379
- return DocumentArchiveDetailProcessingStatus2;
1380
- })(DocumentArchiveDetailProcessingStatus || {});
1381
- var DocumentArchiveListArchiveType = /* @__PURE__ */ ((DocumentArchiveListArchiveType2) => {
1382
- DocumentArchiveListArchiveType2["ZIP"] = "zip";
1383
- DocumentArchiveListArchiveType2["TAR"] = "tar";
1384
- DocumentArchiveListArchiveType2["TAR_DOT_GZ"] = "tar.gz";
1385
- DocumentArchiveListArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
1386
- return DocumentArchiveListArchiveType2;
1387
- })(DocumentArchiveListArchiveType || {});
1388
- var DocumentArchiveListProcessingStatus = /* @__PURE__ */ ((DocumentArchiveListProcessingStatus2) => {
1389
- DocumentArchiveListProcessingStatus2["PENDING"] = "pending";
1390
- DocumentArchiveListProcessingStatus2["PROCESSING"] = "processing";
1391
- DocumentArchiveListProcessingStatus2["COMPLETED"] = "completed";
1392
- DocumentArchiveListProcessingStatus2["FAILED"] = "failed";
1393
- DocumentArchiveListProcessingStatus2["CANCELLED"] = "cancelled";
1394
- return DocumentArchiveListProcessingStatus2;
1395
- })(DocumentArchiveListProcessingStatus || {});
1396
- var PatchedArchiveItemChunkRequestChunkType = /* @__PURE__ */ ((PatchedArchiveItemChunkRequestChunkType2) => {
1397
- PatchedArchiveItemChunkRequestChunkType2["TEXT"] = "text";
1398
- PatchedArchiveItemChunkRequestChunkType2["CODE"] = "code";
1399
- PatchedArchiveItemChunkRequestChunkType2["HEADING"] = "heading";
1400
- PatchedArchiveItemChunkRequestChunkType2["METADATA"] = "metadata";
1401
- PatchedArchiveItemChunkRequestChunkType2["TABLE"] = "table";
1402
- PatchedArchiveItemChunkRequestChunkType2["LIST"] = "list";
1403
- return PatchedArchiveItemChunkRequestChunkType2;
1404
- })(PatchedArchiveItemChunkRequestChunkType || {});
1405
1311
 
1406
1312
  // src/api/generated/ext_knowbase/_utils/schemas/index.ts
1407
1313
  var schemas_exports = {};
@@ -1492,7 +1398,7 @@ var ArchiveItemChunkDetailSchema = z.object({
1492
1398
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1493
1399
  content: z.string(),
1494
1400
  chunk_index: z.int().min(0).max(2147483647),
1495
- chunk_type: z.nativeEnum(ArchiveItemChunkDetailChunkType).optional(),
1401
+ chunk_type: z.nativeEnum(ArchiveItemChunkChunkType).optional(),
1496
1402
  token_count: z.int(),
1497
1403
  character_count: z.int(),
1498
1404
  embedding_model: z.string(),
@@ -1504,14 +1410,14 @@ var ArchiveItemChunkDetailSchema = z.object({
1504
1410
  var ArchiveItemChunkRequestSchema = z.object({
1505
1411
  content: z.string().min(1),
1506
1412
  chunk_index: z.int().min(0).max(2147483647),
1507
- chunk_type: z.nativeEnum(ArchiveItemChunkRequestChunkType).optional()
1413
+ chunk_type: z.nativeEnum(ArchiveItemChunkChunkType).optional()
1508
1414
  });
1509
1415
  var ArchiveItemDetailSchema = z.object({
1510
1416
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1511
1417
  relative_path: z.string().max(1024),
1512
1418
  item_name: z.string().max(255),
1513
1419
  item_type: z.string().max(100),
1514
- content_type: z.nativeEnum(ArchiveItemDetailContentType),
1420
+ content_type: z.nativeEnum(ArchiveItemContentType),
1515
1421
  file_size: z.int().min(0).max(2147483647).optional(),
1516
1422
  is_processable: z.boolean(),
1517
1423
  language: z.string(),
@@ -1723,8 +1629,8 @@ var DocumentArchiveDetailSchema = z.object({
1723
1629
  archive_file: z.union([z.url(), z.literal("")]),
1724
1630
  original_filename: z.string(),
1725
1631
  file_size: z.int(),
1726
- archive_type: z.nativeEnum(DocumentArchiveDetailArchiveType),
1727
- processing_status: z.nativeEnum(DocumentArchiveDetailProcessingStatus),
1632
+ archive_type: z.nativeEnum(DocumentArchiveArchiveType),
1633
+ processing_status: z.nativeEnum(DocumentArchiveProcessingStatus),
1728
1634
  processed_at: z.string().datetime({ offset: true }).nullable(),
1729
1635
  processing_duration_ms: z.int(),
1730
1636
  processing_error: z.string(),
@@ -1751,8 +1657,8 @@ var DocumentArchiveListSchema = z.object({
1751
1657
  is_public: z.boolean(),
1752
1658
  original_filename: z.string(),
1753
1659
  file_size: z.int(),
1754
- archive_type: z.nativeEnum(DocumentArchiveListArchiveType),
1755
- processing_status: z.nativeEnum(DocumentArchiveListProcessingStatus),
1660
+ archive_type: z.nativeEnum(DocumentArchiveArchiveType),
1661
+ processing_status: z.nativeEnum(DocumentArchiveProcessingStatus),
1756
1662
  processed_at: z.string().datetime({ offset: true }).nullable(),
1757
1663
  total_items: z.int(),
1758
1664
  total_chunks: z.int(),
@@ -1916,7 +1822,7 @@ var PaginatedPublicDocumentListListSchema = z.object({
1916
1822
  var PatchedArchiveItemChunkRequestSchema = z.object({
1917
1823
  content: z.string().min(1).optional(),
1918
1824
  chunk_index: z.int().min(0).max(2147483647).optional(),
1919
- chunk_type: z.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
1825
+ chunk_type: z.nativeEnum(ArchiveItemChunkChunkType).optional()
1920
1826
  });
1921
1827
  var PatchedArchiveItemRequestSchema = z.object({
1922
1828
  relative_path: z.string().min(1).max(1024).optional(),
@@ -2145,7 +2051,7 @@ function resetAPI() {
2145
2051
  // src/api/generated/ext_knowbase/_utils/fetchers/ext_knowbase__knowbase.ts
2146
2052
  async function getKnowbaseAdminChatList(params, client) {
2147
2053
  const api = client || getAPIInstance();
2148
- const response = await api.ext_knowbase_knowbase.adminChatList(params?.page, params?.page_size);
2054
+ const response = await api.ext_knowbase_knowbase.adminChatList(params?.ordering, params?.page, params?.page_size, params?.search);
2149
2055
  try {
2150
2056
  return PaginatedChatResponseListSchema.parse(response);
2151
2057
  } catch (error) {
@@ -2444,7 +2350,7 @@ Method: POST`);
2444
2350
  }
2445
2351
  async function getKnowbaseAdminDocumentsList(params, client) {
2446
2352
  const api = client || getAPIInstance();
2447
- const response = await api.ext_knowbase_knowbase.adminDocumentsList(params?.page, params?.page_size, params?.status);
2353
+ const response = await api.ext_knowbase_knowbase.adminDocumentsList(params?.ordering, params?.page, params?.page_size, params?.search, params?.status);
2448
2354
  try {
2449
2355
  return PaginatedDocumentListSchema.parse(response);
2450
2356
  } catch (error) {
@@ -2785,7 +2691,7 @@ Method: GET`);
2785
2691
  }
2786
2692
  async function getKnowbaseAdminSessionsList(params, client) {
2787
2693
  const api = client || getAPIInstance();
2788
- const response = await api.ext_knowbase_knowbase.adminSessionsList(params?.page, params?.page_size);
2694
+ const response = await api.ext_knowbase_knowbase.adminSessionsList(params?.ordering, params?.page, params?.page_size, params?.search);
2789
2695
  try {
2790
2696
  return PaginatedChatSessionListSchema.parse(response);
2791
2697
  } catch (error) {
@@ -3084,7 +2990,7 @@ Method: POST`);
3084
2990
  }
3085
2991
  async function getKnowbaseCategoriesList(params, client) {
3086
2992
  const api = client || getAPIInstance();
3087
- const response = await api.ext_knowbase_knowbase.categoriesList(params?.page, params?.page_size);
2993
+ const response = await api.ext_knowbase_knowbase.categoriesList(params?.ordering, params?.page, params?.page_size, params?.search);
3088
2994
  try {
3089
2995
  return PaginatedPublicCategoryListSchema.parse(response);
3090
2996
  } catch (error) {
@@ -3168,7 +3074,7 @@ Method: GET`);
3168
3074
  }
3169
3075
  async function getKnowbaseDocumentsList(params, client) {
3170
3076
  const api = client || getAPIInstance();
3171
- const response = await api.ext_knowbase_knowbase.documentsList(params?.category, params?.page, params?.page_size, params?.search);
3077
+ const response = await api.ext_knowbase_knowbase.documentsList(params?.category, params?.ordering, params?.page, params?.page_size, params?.search);
3172
3078
  try {
3173
3079
  return PaginatedPublicDocumentListListSchema.parse(response);
3174
3080
  } catch (error) {
@@ -3252,7 +3158,7 @@ Method: GET`);
3252
3158
  }
3253
3159
  async function getKnowbaseSystemArchivesList(params, client) {
3254
3160
  const api = client || getAPIInstance();
3255
- const response = await api.ext_knowbase_knowbase.systemArchivesList(params?.page, params?.page_size);
3161
+ const response = await api.ext_knowbase_knowbase.systemArchivesList(params?.ordering, params?.page, params?.page_size, params?.search);
3256
3162
  try {
3257
3163
  return PaginatedDocumentArchiveListListSchema.parse(response);
3258
3164
  } catch (error) {
@@ -3472,7 +3378,7 @@ async function getKnowbaseSystemArchivesFileTreeRetrieve(id, client) {
3472
3378
  }
3473
3379
  async function getKnowbaseSystemArchivesItemsList(id, params, client) {
3474
3380
  const api = client || getAPIInstance();
3475
- const response = await api.ext_knowbase_knowbase.systemArchivesItemsList(id, params?.page, params?.page_size);
3381
+ const response = await api.ext_knowbase_knowbase.systemArchivesItemsList(id, params?.ordering, params?.page, params?.page_size, params?.search);
3476
3382
  try {
3477
3383
  return PaginatedArchiveItemListSchema.parse(response);
3478
3384
  } catch (error) {
@@ -3514,7 +3420,7 @@ Method: GET`);
3514
3420
  }
3515
3421
  async function createKnowbaseSystemArchivesSearchCreate(id, data, params, client) {
3516
3422
  const api = client || getAPIInstance();
3517
- const response = await api.ext_knowbase_knowbase.systemArchivesSearchCreate(id, data, params?.page, params?.page_size);
3423
+ const response = await api.ext_knowbase_knowbase.systemArchivesSearchCreate(id, data, params?.ordering, params?.page, params?.page_size, params?.search);
3518
3424
  try {
3519
3425
  return PaginatedArchiveSearchResultListSchema.parse(response);
3520
3426
  } catch (error) {
@@ -3682,7 +3588,7 @@ Method: GET`);
3682
3588
  }
3683
3589
  async function getKnowbaseSystemChunksList(params, client) {
3684
3590
  const api = client || getAPIInstance();
3685
- const response = await api.ext_knowbase_knowbase.systemChunksList(params?.page, params?.page_size);
3591
+ const response = await api.ext_knowbase_knowbase.systemChunksList(params?.ordering, params?.page, params?.page_size, params?.search);
3686
3592
  try {
3687
3593
  return PaginatedArchiveItemChunkListSchema.parse(response);
3688
3594
  } catch (error) {
@@ -3944,7 +3850,7 @@ async function createKnowbaseSystemChunksVectorizeCreate(id, data, client) {
3944
3850
  }
3945
3851
  async function getKnowbaseSystemItemsList(params, client) {
3946
3852
  const api = client || getAPIInstance();
3947
- const response = await api.ext_knowbase_knowbase.systemItemsList(params?.page, params?.page_size);
3853
+ const response = await api.ext_knowbase_knowbase.systemItemsList(params?.ordering, params?.page, params?.page_size, params?.search);
3948
3854
  try {
3949
3855
  return PaginatedArchiveItemListSchema.parse(response);
3950
3856
  } catch (error) {
@@ -4159,7 +4065,7 @@ async function deleteKnowbaseSystemItemsDestroy(id, client) {
4159
4065
  }
4160
4066
  async function getKnowbaseSystemItemsChunksList(id, params, client) {
4161
4067
  const api = client || getAPIInstance();
4162
- const response = await api.ext_knowbase_knowbase.systemItemsChunksList(id, params?.page, params?.page_size);
4068
+ const response = await api.ext_knowbase_knowbase.systemItemsChunksList(id, params?.ordering, params?.page, params?.page_size, params?.search);
4163
4069
  try {
4164
4070
  return PaginatedArchiveItemChunkListSchema.parse(response);
4165
4071
  } catch (error) {
@@ -4789,7 +4695,7 @@ var apiKnowbase = createExtensionAPI(API);
4789
4695
  // package.json
4790
4696
  var package_default = {
4791
4697
  name: "@djangocfg/ext-knowbase",
4792
- version: "1.0.25",
4698
+ version: "1.0.27",
4793
4699
  description: "Knowledge base and chat extension for DjangoCFG",
4794
4700
  keywords: [
4795
4701
  "django",
@@ -5349,8 +5255,484 @@ var ru = {
5349
5255
  }
5350
5256
  };
5351
5257
 
5258
+ // src/i18n/locales/ja.ts
5259
+ var ja = {
5260
+ chat: {
5261
+ title: "\u30CA\u30EC\u30C3\u30B8\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8",
5262
+ titleShort: "\u30B5\u30DD\u30FC\u30C8",
5263
+ placeholder: "\u4F55\u3067\u3082\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044...",
5264
+ enterToSend: "Enter\u3067\u9001\u4FE1\u3001Shift+Enter\u3067\u6539\u884C",
5265
+ thinking: "\u8003\u3048\u4E2D...",
5266
+ source: "\u30BD\u30FC\u30B9 {index}",
5267
+ startConversation: "\u4F1A\u8A71\u3092\u59CB\u3081\u308B",
5268
+ startConversationDescription: "\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3001\u6A5F\u80FD\u306B\u3064\u3044\u3066\u3001\u307E\u305F\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30D8\u30EB\u30D7\u306B\u3064\u3044\u3066\u4F55\u3067\u3082\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
5269
+ openChat: "\u30B5\u30DD\u30FC\u30C8\u30C1\u30E3\u30C3\u30C8\u3092\u958B\u304F"
5270
+ },
5271
+ sessions: {
5272
+ title: "\u30C1\u30E3\u30C3\u30C8\u30BB\u30C3\u30B7\u30E7\u30F3",
5273
+ description: "\u30C1\u30E3\u30C3\u30C8\u5C65\u6B74\u306E\u8868\u793A\u3068\u7BA1\u7406",
5274
+ noSessions: "\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u3042\u308A\u307E\u305B\u3093",
5275
+ noSessionsDescription: "\u65B0\u3057\u3044\u4F1A\u8A71\u3092\u59CB\u3081\u3066\u6700\u521D\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
5276
+ untitled: "\u7121\u984C\u306E\u30BB\u30C3\u30B7\u30E7\u30F3",
5277
+ active: "\u30A2\u30AF\u30C6\u30A3\u30D6",
5278
+ archive: "\u30A2\u30FC\u30AB\u30A4\u30D6",
5279
+ delete: "\u524A\u9664",
5280
+ loadingMore: "\u8AAD\u307F\u8FBC\u307F\u4E2D...",
5281
+ noMore: "\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u3053\u308C\u4EE5\u4E0A\u3042\u308A\u307E\u305B\u3093",
5282
+ newChat: "\u65B0\u898F\u30C1\u30E3\u30C3\u30C8"
5283
+ },
5284
+ actions: {
5285
+ sessions: "\u30BB\u30C3\u30B7\u30E7\u30F3",
5286
+ collapse: "\u6298\u308A\u305F\u305F\u3080",
5287
+ expand: "\u5C55\u958B",
5288
+ close: "\u9589\u3058\u308B"
5289
+ }
5290
+ };
5291
+
5292
+ // src/i18n/locales/de.ts
5293
+ var de = {
5294
+ chat: {
5295
+ title: "Wissensassistent",
5296
+ titleShort: "Support",
5297
+ placeholder: "Fragen Sie mich alles...",
5298
+ enterToSend: "Enter zum Senden, Shift+Enter f\xFCr neue Zeile",
5299
+ thinking: "Denke nach...",
5300
+ source: "Quelle {index}",
5301
+ startConversation: "Gespr\xE4ch beginnen",
5302
+ startConversationDescription: "Fragen Sie mich alles \xFCber die Dokumentation, Funktionen oder erhalten Sie Hilfe f\xFCr Ihr Projekt.",
5303
+ openChat: "Support-Chat \xF6ffnen"
5304
+ },
5305
+ sessions: {
5306
+ title: "Chat-Sitzungen",
5307
+ description: "Chatverlauf anzeigen und verwalten",
5308
+ noSessions: "Noch keine Sitzungen",
5309
+ noSessionsDescription: "Beginnen Sie ein neues Gespr\xE4ch, um Ihre erste Sitzung zu erstellen.",
5310
+ untitled: "Unbenannte Sitzung",
5311
+ active: "Aktiv",
5312
+ archive: "Archiv",
5313
+ delete: "L\xF6schen",
5314
+ loadingMore: "Lade mehr...",
5315
+ noMore: "Keine weiteren Sitzungen",
5316
+ newChat: "Neuer Chat"
5317
+ },
5318
+ actions: {
5319
+ sessions: "Sitzungen",
5320
+ collapse: "Einklappen",
5321
+ expand: "Ausklappen",
5322
+ close: "Schlie\xDFen"
5323
+ }
5324
+ };
5325
+
5326
+ // src/i18n/locales/fr.ts
5327
+ var fr = {
5328
+ chat: {
5329
+ title: "Assistant de connaissances",
5330
+ titleShort: "Support",
5331
+ placeholder: "Posez-moi une question...",
5332
+ enterToSend: "Appuyez sur Entr\xE9e pour envoyer, Shift+Entr\xE9e pour nouvelle ligne",
5333
+ thinking: "R\xE9flexion...",
5334
+ source: "Source {index}",
5335
+ startConversation: "D\xE9marrer une conversation",
5336
+ startConversationDescription: "Posez-moi des questions sur la documentation, les fonctionnalit\xE9s ou obtenez de l'aide pour votre projet.",
5337
+ openChat: "Ouvrir le chat support"
5338
+ },
5339
+ sessions: {
5340
+ title: "Sessions de chat",
5341
+ description: "Afficher et g\xE9rer votre historique de chat",
5342
+ noSessions: "Aucune session",
5343
+ noSessionsDescription: "Commencez une nouvelle conversation pour cr\xE9er votre premi\xE8re session.",
5344
+ untitled: "Session sans titre",
5345
+ active: "Active",
5346
+ archive: "Archiver",
5347
+ delete: "Supprimer",
5348
+ loadingMore: "Chargement...",
5349
+ noMore: "Plus de sessions",
5350
+ newChat: "Nouveau chat"
5351
+ },
5352
+ actions: {
5353
+ sessions: "Sessions",
5354
+ collapse: "R\xE9duire",
5355
+ expand: "D\xE9velopper",
5356
+ close: "Fermer"
5357
+ }
5358
+ };
5359
+
5360
+ // src/i18n/locales/zh.ts
5361
+ var zh = {
5362
+ chat: {
5363
+ title: "\u77E5\u8BC6\u52A9\u624B",
5364
+ titleShort: "\u652F\u6301",
5365
+ placeholder: "\u6709\u4EC0\u4E48\u95EE\u9898\u8BF7\u95EE\u6211...",
5366
+ enterToSend: "\u6309Enter\u53D1\u9001\uFF0CShift+Enter\u6362\u884C",
5367
+ thinking: "\u601D\u8003\u4E2D...",
5368
+ source: "\u6765\u6E90 {index}",
5369
+ startConversation: "\u5F00\u59CB\u5BF9\u8BDD",
5370
+ startConversationDescription: "\u5411\u6211\u8BE2\u95EE\u5173\u4E8E\u6587\u6863\u3001\u529F\u80FD\u7684\u4EFB\u4F55\u95EE\u9898\uFF0C\u6216\u83B7\u53D6\u9879\u76EE\u5E2E\u52A9\u3002",
5371
+ openChat: "\u6253\u5F00\u652F\u6301\u804A\u5929"
5372
+ },
5373
+ sessions: {
5374
+ title: "\u804A\u5929\u4F1A\u8BDD",
5375
+ description: "\u67E5\u770B\u548C\u7BA1\u7406\u60A8\u7684\u804A\u5929\u8BB0\u5F55",
5376
+ noSessions: "\u6682\u65E0\u4F1A\u8BDD",
5377
+ noSessionsDescription: "\u5F00\u59CB\u65B0\u5BF9\u8BDD\u4EE5\u521B\u5EFA\u60A8\u7684\u7B2C\u4E00\u4E2A\u4F1A\u8BDD\u3002",
5378
+ untitled: "\u672A\u547D\u540D\u4F1A\u8BDD",
5379
+ active: "\u6D3B\u8DC3",
5380
+ archive: "\u5F52\u6863",
5381
+ delete: "\u5220\u9664",
5382
+ loadingMore: "\u52A0\u8F7D\u66F4\u591A...",
5383
+ noMore: "\u6CA1\u6709\u66F4\u591A\u4F1A\u8BDD",
5384
+ newChat: "\u65B0\u5EFA\u804A\u5929"
5385
+ },
5386
+ actions: {
5387
+ sessions: "\u4F1A\u8BDD",
5388
+ collapse: "\u6536\u8D77",
5389
+ expand: "\u5C55\u5F00",
5390
+ close: "\u5173\u95ED"
5391
+ }
5392
+ };
5393
+
5394
+ // src/i18n/locales/it.ts
5395
+ var it = {
5396
+ chat: {
5397
+ title: "Assistente della conoscenza",
5398
+ titleShort: "Supporto",
5399
+ placeholder: "Chiedimi qualsiasi cosa...",
5400
+ enterToSend: "Premi Invio per inviare, Shift+Invio per nuova riga",
5401
+ thinking: "Sto pensando...",
5402
+ source: "Fonte {index}",
5403
+ startConversation: "Inizia una conversazione",
5404
+ startConversationDescription: "Chiedimi qualsiasi cosa sulla documentazione, le funzionalit\xE0 o ottieni aiuto per il tuo progetto.",
5405
+ openChat: "Apri chat supporto"
5406
+ },
5407
+ sessions: {
5408
+ title: "Sessioni chat",
5409
+ description: "Visualizza e gestisci la cronologia chat",
5410
+ noSessions: "Nessuna sessione",
5411
+ noSessionsDescription: "Inizia una nuova conversazione per creare la tua prima sessione.",
5412
+ untitled: "Sessione senza titolo",
5413
+ active: "Attiva",
5414
+ archive: "Archivia",
5415
+ delete: "Elimina",
5416
+ loadingMore: "Caricamento...",
5417
+ noMore: "Nessun'altra sessione",
5418
+ newChat: "Nuova chat"
5419
+ },
5420
+ actions: {
5421
+ sessions: "Sessioni",
5422
+ collapse: "Comprimi",
5423
+ expand: "Espandi",
5424
+ close: "Chiudi"
5425
+ }
5426
+ };
5427
+
5428
+ // src/i18n/locales/es.ts
5429
+ var es = {
5430
+ chat: {
5431
+ title: "Asistente de conocimiento",
5432
+ titleShort: "Soporte",
5433
+ placeholder: "Preg\xFAntame lo que quieras...",
5434
+ enterToSend: "Presiona Enter para enviar, Shift+Enter para nueva l\xEDnea",
5435
+ thinking: "Pensando...",
5436
+ source: "Fuente {index}",
5437
+ startConversation: "Iniciar conversaci\xF3n",
5438
+ startConversationDescription: "Preg\xFAntame sobre la documentaci\xF3n, funcionalidades u obt\xE9n ayuda con tu proyecto.",
5439
+ openChat: "Abrir chat de soporte"
5440
+ },
5441
+ sessions: {
5442
+ title: "Sesiones de chat",
5443
+ description: "Ver y gestionar tu historial de chat",
5444
+ noSessions: "Sin sesiones",
5445
+ noSessionsDescription: "Inicia una nueva conversaci\xF3n para crear tu primera sesi\xF3n.",
5446
+ untitled: "Sesi\xF3n sin t\xEDtulo",
5447
+ active: "Activa",
5448
+ archive: "Archivar",
5449
+ delete: "Eliminar",
5450
+ loadingMore: "Cargando m\xE1s...",
5451
+ noMore: "No hay m\xE1s sesiones",
5452
+ newChat: "Nuevo chat"
5453
+ },
5454
+ actions: {
5455
+ sessions: "Sesiones",
5456
+ collapse: "Contraer",
5457
+ expand: "Expandir",
5458
+ close: "Cerrar"
5459
+ }
5460
+ };
5461
+
5462
+ // src/i18n/locales/nl.ts
5463
+ var nl = {
5464
+ chat: {
5465
+ title: "Kennisassistent",
5466
+ titleShort: "Support",
5467
+ placeholder: "Vraag me alles...",
5468
+ enterToSend: "Druk op Enter om te verzenden, Shift+Enter voor nieuwe regel",
5469
+ thinking: "Aan het nadenken...",
5470
+ source: "Bron {index}",
5471
+ startConversation: "Start een gesprek",
5472
+ startConversationDescription: "Vraag me alles over de documentatie, functies of krijg hulp bij uw project.",
5473
+ openChat: "Open support chat"
5474
+ },
5475
+ sessions: {
5476
+ title: "Chatsessies",
5477
+ description: "Bekijk en beheer uw chatgeschiedenis",
5478
+ noSessions: "Nog geen sessies",
5479
+ noSessionsDescription: "Start een nieuw gesprek om uw eerste sessie te maken.",
5480
+ untitled: "Naamloze sessie",
5481
+ active: "Actief",
5482
+ archive: "Archief",
5483
+ delete: "Verwijderen",
5484
+ loadingMore: "Meer laden...",
5485
+ noMore: "Geen sessies meer",
5486
+ newChat: "Nieuwe chat"
5487
+ },
5488
+ actions: {
5489
+ sessions: "Sessies",
5490
+ collapse: "Inklappen",
5491
+ expand: "Uitklappen",
5492
+ close: "Sluiten"
5493
+ }
5494
+ };
5495
+
5496
+ // src/i18n/locales/ar.ts
5497
+ var ar = {
5498
+ chat: {
5499
+ title: "\u0645\u0633\u0627\u0639\u062F \u0627\u0644\u0645\u0639\u0631\u0641\u0629",
5500
+ titleShort: "\u0627\u0644\u062F\u0639\u0645",
5501
+ placeholder: "\u0627\u0633\u0623\u0644\u0646\u064A \u0623\u064A \u0634\u064A\u0621...",
5502
+ enterToSend: "\u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0631\u0633\u0627\u0644\u060C Shift+Enter \u0644\u0633\u0637\u0631 \u062C\u062F\u064A\u062F",
5503
+ thinking: "\u062C\u0627\u0631\u064A \u0627\u0644\u062A\u0641\u0643\u064A\u0631...",
5504
+ source: "\u0627\u0644\u0645\u0635\u062F\u0631 {index}",
5505
+ startConversation: "\u0627\u0628\u062F\u0623 \u0645\u062D\u0627\u062F\u062B\u0629",
5506
+ startConversationDescription: "\u0627\u0633\u0623\u0644\u0646\u064A \u0623\u064A \u0634\u064A\u0621 \u0639\u0646 \u0627\u0644\u062A\u0648\u062B\u064A\u0642 \u0648\u0627\u0644\u0645\u064A\u0632\u0627\u062A \u0623\u0648 \u0627\u062D\u0635\u0644 \u0639\u0644\u0649 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0641\u064A \u0645\u0634\u0631\u0648\u0639\u0643.",
5507
+ openChat: "\u0641\u062A\u062D \u0645\u062D\u0627\u062F\u062B\u0629 \u0627\u0644\u062F\u0639\u0645"
5508
+ },
5509
+ sessions: {
5510
+ title: "\u062C\u0644\u0633\u0627\u062A \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629",
5511
+ description: "\u0639\u0631\u0636 \u0648\u0625\u062F\u0627\u0631\u0629 \u0633\u062C\u0644 \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0627\u062A",
5512
+ noSessions: "\u0644\u0627 \u062A\u0648\u062C\u062F \u062C\u0644\u0633\u0627\u062A",
5513
+ noSessionsDescription: "\u0627\u0628\u062F\u0623 \u0645\u062D\u0627\u062F\u062B\u0629 \u062C\u062F\u064A\u062F\u0629 \u0644\u0625\u0646\u0634\u0627\u0621 \u0623\u0648\u0644 \u062C\u0644\u0633\u0629 \u0644\u0643.",
5514
+ untitled: "\u062C\u0644\u0633\u0629 \u0628\u062F\u0648\u0646 \u0639\u0646\u0648\u0627\u0646",
5515
+ active: "\u0646\u0634\u0637\u0629",
5516
+ archive: "\u0623\u0631\u0634\u0641\u0629",
5517
+ delete: "\u062D\u0630\u0641",
5518
+ loadingMore: "\u062C\u0627\u0631\u064A \u0627\u0644\u062A\u062D\u0645\u064A\u0644...",
5519
+ noMore: "\u0644\u0627 \u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u062C\u0644\u0633\u0627\u062A",
5520
+ newChat: "\u0645\u062D\u0627\u062F\u062B\u0629 \u062C\u062F\u064A\u062F\u0629"
5521
+ },
5522
+ actions: {
5523
+ sessions: "\u0627\u0644\u062C\u0644\u0633\u0627\u062A",
5524
+ collapse: "\u0637\u064A",
5525
+ expand: "\u062A\u0648\u0633\u064A\u0639",
5526
+ close: "\u0625\u063A\u0644\u0627\u0642"
5527
+ }
5528
+ };
5529
+
5530
+ // src/i18n/locales/tr.ts
5531
+ var tr = {
5532
+ chat: {
5533
+ title: "Bilgi Asistan\u0131",
5534
+ titleShort: "Destek",
5535
+ placeholder: "Bana bir \u015Fey sorun...",
5536
+ enterToSend: "G\xF6ndermek i\xE7in Enter, yeni sat\u0131r i\xE7in Shift+Enter",
5537
+ thinking: "D\xFC\u015F\xFCn\xFCyor...",
5538
+ source: "Kaynak {index}",
5539
+ startConversation: "Sohbet Ba\u015Flat",
5540
+ startConversationDescription: "Dok\xFCmantasyon, \xF6zellikler hakk\u0131nda soru sorun veya projeniz i\xE7in yard\u0131m al\u0131n.",
5541
+ openChat: "Destek Sohbetini A\xE7"
5542
+ },
5543
+ sessions: {
5544
+ title: "Sohbet Oturumlar\u0131",
5545
+ description: "Sohbet ge\xE7mi\u015Finizi g\xF6r\xFCnt\xFCleyin ve y\xF6netin",
5546
+ noSessions: "Hen\xFCz oturum yok",
5547
+ noSessionsDescription: "\u0130lk oturumunuzu olu\u015Fturmak i\xE7in yeni bir sohbet ba\u015Flat\u0131n.",
5548
+ untitled: "Ads\u0131z Oturum",
5549
+ active: "Aktif",
5550
+ archive: "Ar\u015Fivle",
5551
+ delete: "Sil",
5552
+ loadingMore: "Daha fazla y\xFCkleniyor...",
5553
+ noMore: "Ba\u015Fka oturum yok",
5554
+ newChat: "Yeni Sohbet"
5555
+ },
5556
+ actions: {
5557
+ sessions: "Oturumlar",
5558
+ collapse: "Daralt",
5559
+ expand: "Geni\u015Flet",
5560
+ close: "Kapat"
5561
+ }
5562
+ };
5563
+
5564
+ // src/i18n/locales/pt-BR.ts
5565
+ var ptBR = {
5566
+ chat: {
5567
+ title: "Assistente de Conhecimento",
5568
+ titleShort: "Suporte",
5569
+ placeholder: "Pergunte-me qualquer coisa...",
5570
+ enterToSend: "Pressione Enter para enviar, Shift+Enter para nova linha",
5571
+ thinking: "Pensando...",
5572
+ source: "Fonte {index}",
5573
+ startConversation: "Iniciar Conversa",
5574
+ startConversationDescription: "Pergunte-me sobre a documenta\xE7\xE3o, recursos ou obtenha ajuda com seu projeto.",
5575
+ openChat: "Abrir Chat de Suporte"
5576
+ },
5577
+ sessions: {
5578
+ title: "Sess\xF5es de Chat",
5579
+ description: "Visualize e gerencie seu hist\xF3rico de chat",
5580
+ noSessions: "Nenhuma Sess\xE3o Ainda",
5581
+ noSessionsDescription: "Inicie uma nova conversa para criar sua primeira sess\xE3o.",
5582
+ untitled: "Sess\xE3o sem T\xEDtulo",
5583
+ active: "Ativa",
5584
+ archive: "Arquivar",
5585
+ delete: "Excluir",
5586
+ loadingMore: "Carregando mais...",
5587
+ noMore: "N\xE3o h\xE1 mais sess\xF5es",
5588
+ newChat: "Novo Chat"
5589
+ },
5590
+ actions: {
5591
+ sessions: "Sess\xF5es",
5592
+ collapse: "Recolher",
5593
+ expand: "Expandir",
5594
+ close: "Fechar"
5595
+ }
5596
+ };
5597
+
5598
+ // src/i18n/locales/pl.ts
5599
+ var pl = {
5600
+ chat: {
5601
+ title: "Asystent wiedzy",
5602
+ titleShort: "Wsparcie",
5603
+ placeholder: "Zapytaj mnie o cokolwiek...",
5604
+ enterToSend: "Naci\u015Bnij Enter, aby wys\u0142a\u0107, Shift+Enter dla nowej linii",
5605
+ thinking: "My\u015Bl\u0119...",
5606
+ source: "\u0179r\xF3d\u0142o {index}",
5607
+ startConversation: "Rozpocznij rozmow\u0119",
5608
+ startConversationDescription: "Zapytaj mnie o dokumentacj\u0119, funkcje lub uzyskaj pomoc z projektem.",
5609
+ openChat: "Otw\xF3rz czat wsparcia"
5610
+ },
5611
+ sessions: {
5612
+ title: "Sesje czatu",
5613
+ description: "Przegl\u0105daj i zarz\u0105dzaj histori\u0105 czatu",
5614
+ noSessions: "Brak sesji",
5615
+ noSessionsDescription: "Rozpocznij now\u0105 rozmow\u0119, aby utworzy\u0107 pierwsz\u0105 sesj\u0119.",
5616
+ untitled: "Sesja bez tytu\u0142u",
5617
+ active: "Aktywna",
5618
+ archive: "Archiwizuj",
5619
+ delete: "Usu\u0144",
5620
+ loadingMore: "\u0141adowanie...",
5621
+ noMore: "Brak wi\u0119cej sesji",
5622
+ newChat: "Nowy czat"
5623
+ },
5624
+ actions: {
5625
+ sessions: "Sesje",
5626
+ collapse: "Zwi\u0144",
5627
+ expand: "Rozwi\u0144",
5628
+ close: "Zamknij"
5629
+ }
5630
+ };
5631
+
5632
+ // src/i18n/locales/sv.ts
5633
+ var sv = {
5634
+ chat: {
5635
+ title: "Kunskapsassistent",
5636
+ titleShort: "Support",
5637
+ placeholder: "Fr\xE5ga mig vad som helst...",
5638
+ enterToSend: "Tryck Enter f\xF6r att skicka, Shift+Enter f\xF6r ny rad",
5639
+ thinking: "T\xE4nker...",
5640
+ source: "K\xE4lla {index}",
5641
+ startConversation: "Starta en konversation",
5642
+ startConversationDescription: "Fr\xE5ga mig om dokumentationen, funktioner eller f\xE5 hj\xE4lp med ditt projekt.",
5643
+ openChat: "\xD6ppna supportchatt"
5644
+ },
5645
+ sessions: {
5646
+ title: "Chattsessioner",
5647
+ description: "Visa och hantera din chatthistorik",
5648
+ noSessions: "Inga sessioner \xE4nnu",
5649
+ noSessionsDescription: "Starta en ny konversation f\xF6r att skapa din f\xF6rsta session.",
5650
+ untitled: "Namnl\xF6s session",
5651
+ active: "Aktiv",
5652
+ archive: "Arkiv",
5653
+ delete: "Ta bort",
5654
+ loadingMore: "Laddar fler...",
5655
+ noMore: "Inga fler sessioner",
5656
+ newChat: "Ny chatt"
5657
+ },
5658
+ actions: {
5659
+ sessions: "Sessioner",
5660
+ collapse: "F\xE4ll ihop",
5661
+ expand: "Expandera",
5662
+ close: "St\xE4ng"
5663
+ }
5664
+ };
5665
+
5666
+ // src/i18n/locales/no.ts
5667
+ var no = {
5668
+ chat: {
5669
+ title: "Kunnskapsassistent",
5670
+ titleShort: "St\xF8tte",
5671
+ placeholder: "Sp\xF8r meg om hva som helst...",
5672
+ enterToSend: "Trykk Enter for \xE5 sende, Shift+Enter for ny linje",
5673
+ thinking: "Tenker...",
5674
+ source: "Kilde {index}",
5675
+ startConversation: "Start en samtale",
5676
+ startConversationDescription: "Sp\xF8r meg om dokumentasjonen, funksjoner eller f\xE5 hjelp med prosjektet ditt.",
5677
+ openChat: "\xC5pne supportchat"
5678
+ },
5679
+ sessions: {
5680
+ title: "Chat\xF8kter",
5681
+ description: "Vis og administrer chathistorikken din",
5682
+ noSessions: "Ingen \xF8kter enn\xE5",
5683
+ noSessionsDescription: "Start en ny samtale for \xE5 opprette din f\xF8rste \xF8kt.",
5684
+ untitled: "Navnl\xF8s \xF8kt",
5685
+ active: "Aktiv",
5686
+ archive: "Arkiv",
5687
+ delete: "Slett",
5688
+ loadingMore: "Laster flere...",
5689
+ noMore: "Ingen flere \xF8kter",
5690
+ newChat: "Ny chat"
5691
+ },
5692
+ actions: {
5693
+ sessions: "\xD8kter",
5694
+ collapse: "Skjul",
5695
+ expand: "Utvid",
5696
+ close: "Lukk"
5697
+ }
5698
+ };
5699
+
5700
+ // src/i18n/locales/da.ts
5701
+ var da = {
5702
+ chat: {
5703
+ title: "Vidensassistent",
5704
+ titleShort: "Support",
5705
+ placeholder: "Sp\xF8rg mig om hvad som helst...",
5706
+ enterToSend: "Tryk Enter for at sende, Shift+Enter for ny linje",
5707
+ thinking: "T\xE6nker...",
5708
+ source: "Kilde {index}",
5709
+ startConversation: "Start en samtale",
5710
+ startConversationDescription: "Sp\xF8rg mig om dokumentationen, funktioner eller f\xE5 hj\xE6lp med dit projekt.",
5711
+ openChat: "\xC5bn supportchat"
5712
+ },
5713
+ sessions: {
5714
+ title: "Chatsessioner",
5715
+ description: "Se og administrer din chathistorik",
5716
+ noSessions: "Ingen sessioner endnu",
5717
+ noSessionsDescription: "Start en ny samtale for at oprette din f\xF8rste session.",
5718
+ untitled: "Unavngivet session",
5719
+ active: "Aktiv",
5720
+ archive: "Arkiv",
5721
+ delete: "Slet",
5722
+ loadingMore: "Indl\xE6ser flere...",
5723
+ noMore: "Ingen flere sessioner",
5724
+ newChat: "Ny chat"
5725
+ },
5726
+ actions: {
5727
+ sessions: "Sessioner",
5728
+ collapse: "Fold sammen",
5729
+ expand: "Udvid",
5730
+ close: "Luk"
5731
+ }
5732
+ };
5733
+
5352
5734
  // src/i18n/useKnowbaseT.ts
5353
- var translations = { en, ru, ko };
5735
+ var translations = { en, ru, ko, ja, de, fr, zh, it, es, nl, ar, tr, "pt-BR": ptBR, pl, sv, no, da };
5354
5736
  function getNestedValue(obj, path) {
5355
5737
  const keys = path.split(".");
5356
5738
  let result = obj;