@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
@@ -1,6 +1,5 @@
1
1
  // Auto-generated by DjangoCFG - see CLAUDE.md
2
2
  /**
3
- * Content classification
4
3
  * * `document` - Document
5
4
  * * `code` - Code
6
5
  * * `image` - Image
@@ -35,94 +34,6 @@ export enum ArchiveItemChunkChunkType {
35
34
  LIST = "list",
36
35
  }
37
36
 
38
- /**
39
- * Type of content in chunk
40
- * * `text` - Text
41
- * * `code` - Code
42
- * * `heading` - Heading
43
- * * `metadata` - Metadata
44
- * * `table` - Table
45
- * * `list` - List
46
- */
47
- export enum ArchiveItemChunkDetailChunkType {
48
- TEXT = "text",
49
- CODE = "code",
50
- HEADING = "heading",
51
- METADATA = "metadata",
52
- TABLE = "table",
53
- LIST = "list",
54
- }
55
-
56
- /**
57
- * Type of content in chunk
58
- * * `text` - Text
59
- * * `code` - Code
60
- * * `heading` - Heading
61
- * * `metadata` - Metadata
62
- * * `table` - Table
63
- * * `list` - List
64
- */
65
- export enum ArchiveItemChunkRequestChunkType {
66
- TEXT = "text",
67
- CODE = "code",
68
- HEADING = "heading",
69
- METADATA = "metadata",
70
- TABLE = "table",
71
- LIST = "list",
72
- }
73
-
74
- /**
75
- * Content classification
76
- * * `document` - Document
77
- * * `code` - Code
78
- * * `image` - Image
79
- * * `data` - Data
80
- * * `archive` - Archive
81
- * * `unknown` - Unknown
82
- */
83
- export enum ArchiveItemDetailContentType {
84
- DOCUMENT = "document",
85
- CODE = "code",
86
- IMAGE = "image",
87
- DATA = "data",
88
- ARCHIVE = "archive",
89
- UNKNOWN = "unknown",
90
- }
91
-
92
- /**
93
- * * `document` - Document
94
- * * `code` - Code
95
- * * `image` - Image
96
- * * `data` - Data
97
- * * `archive` - Archive
98
- * * `unknown` - Unknown
99
- */
100
- export enum ArchiveSearchRequestRequestContentTypesItems {
101
- DOCUMENT = "document",
102
- CODE = "code",
103
- IMAGE = "image",
104
- DATA = "data",
105
- ARCHIVE = "archive",
106
- UNKNOWN = "unknown",
107
- }
108
-
109
- /**
110
- * * `text` - Text
111
- * * `code` - Code
112
- * * `heading` - Heading
113
- * * `metadata` - Metadata
114
- * * `table` - Table
115
- * * `list` - List
116
- */
117
- export enum ArchiveSearchRequestRequestChunkTypesItems {
118
- TEXT = "text",
119
- CODE = "code",
120
- HEADING = "heading",
121
- METADATA = "metadata",
122
- TABLE = "table",
123
- LIST = "list",
124
- }
125
-
126
37
  /**
127
38
  * Message sender role
128
39
  * * `user` - User
@@ -164,79 +75,3 @@ export enum DocumentArchiveProcessingStatus {
164
75
  CANCELLED = "cancelled",
165
76
  }
166
77
 
167
- /**
168
- * Archive format
169
- * * `zip` - ZIP
170
- * * `tar` - TAR
171
- * * `tar.gz` - TAR GZ
172
- * * `tar.bz2` - TAR BZ2
173
- */
174
- export enum DocumentArchiveDetailArchiveType {
175
- ZIP = "zip",
176
- TAR = "tar",
177
- TAR_DOT_GZ = "tar.gz",
178
- TAR_DOT_BZ2 = "tar.bz2",
179
- }
180
-
181
- /**
182
- * * `pending` - Pending
183
- * * `processing` - Processing
184
- * * `completed` - Completed
185
- * * `failed` - Failed
186
- * * `cancelled` - Cancelled
187
- */
188
- export enum DocumentArchiveDetailProcessingStatus {
189
- PENDING = "pending",
190
- PROCESSING = "processing",
191
- COMPLETED = "completed",
192
- FAILED = "failed",
193
- CANCELLED = "cancelled",
194
- }
195
-
196
- /**
197
- * Archive format
198
- * * `zip` - ZIP
199
- * * `tar` - TAR
200
- * * `tar.gz` - TAR GZ
201
- * * `tar.bz2` - TAR BZ2
202
- */
203
- export enum DocumentArchiveListArchiveType {
204
- ZIP = "zip",
205
- TAR = "tar",
206
- TAR_DOT_GZ = "tar.gz",
207
- TAR_DOT_BZ2 = "tar.bz2",
208
- }
209
-
210
- /**
211
- * * `pending` - Pending
212
- * * `processing` - Processing
213
- * * `completed` - Completed
214
- * * `failed` - Failed
215
- * * `cancelled` - Cancelled
216
- */
217
- export enum DocumentArchiveListProcessingStatus {
218
- PENDING = "pending",
219
- PROCESSING = "processing",
220
- COMPLETED = "completed",
221
- FAILED = "failed",
222
- CANCELLED = "cancelled",
223
- }
224
-
225
- /**
226
- * Type of content in chunk
227
- * * `text` - Text
228
- * * `code` - Code
229
- * * `heading` - Heading
230
- * * `metadata` - Metadata
231
- * * `table` - Table
232
- * * `list` - List
233
- */
234
- export enum PatchedArchiveItemChunkRequestChunkType {
235
- TEXT = "text",
236
- CODE = "code",
237
- HEADING = "heading",
238
- METADATA = "metadata",
239
- TABLE = "table",
240
- LIST = "list",
241
- }
242
-
@@ -1,4 +1,5 @@
1
- import * as Models from './models';
1
+ import * as Models from "./models";
2
+
2
3
 
3
4
  /**
4
5
  * API endpoints for Knowbase.
@@ -10,8 +11,8 @@ export class ExtKnowbaseKnowbase {
10
11
  this.client = client;
11
12
  }
12
13
 
13
- async adminChatList(page?: number, page_size?: number): Promise<Models.PaginatedChatResponseList>;
14
- async adminChatList(params?: { page?: number; page_size?: number }): Promise<Models.PaginatedChatResponseList>;
14
+ async adminChatList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedChatResponseList>;
15
+ async adminChatList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedChatResponseList>;
15
16
 
16
17
  /**
17
18
  * Chat query endpoints.
@@ -23,7 +24,7 @@ export class ExtKnowbaseKnowbase {
23
24
  if (isParamsObject) {
24
25
  params = args[0];
25
26
  } else {
26
- params = { page: args[0], page_size: args[1] };
27
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
27
28
  }
28
29
  const response = await this.client.request('GET', "/cfg/knowbase/admin/chat/", { params });
29
30
  return response;
@@ -89,8 +90,8 @@ export class ExtKnowbaseKnowbase {
89
90
  return response;
90
91
  }
91
92
 
92
- async adminDocumentsList(page?: number, page_size?: number, status?: string): Promise<Models.PaginatedDocumentList>;
93
- async adminDocumentsList(params?: { page?: number; page_size?: number; status?: string }): Promise<Models.PaginatedDocumentList>;
93
+ async adminDocumentsList(ordering?: string, page?: number, page_size?: number, search?: string, status?: string): Promise<Models.PaginatedDocumentList>;
94
+ async adminDocumentsList(params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string }): Promise<Models.PaginatedDocumentList>;
94
95
 
95
96
  /**
96
97
  * List user documents
@@ -104,7 +105,7 @@ export class ExtKnowbaseKnowbase {
104
105
  if (isParamsObject) {
105
106
  params = args[0];
106
107
  } else {
107
- params = { page: args[0], page_size: args[1], status: args[2] };
108
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3], status: args[4] };
108
109
  }
109
110
  const response = await this.client.request('GET', "/cfg/knowbase/admin/documents/", { params });
110
111
  return response;
@@ -186,8 +187,8 @@ export class ExtKnowbaseKnowbase {
186
187
  return response;
187
188
  }
188
189
 
189
- async adminSessionsList(page?: number, page_size?: number): Promise<Models.PaginatedChatSessionList>;
190
- async adminSessionsList(params?: { page?: number; page_size?: number }): Promise<Models.PaginatedChatSessionList>;
190
+ async adminSessionsList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedChatSessionList>;
191
+ async adminSessionsList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedChatSessionList>;
191
192
 
192
193
  /**
193
194
  * List user chat sessions
@@ -201,7 +202,7 @@ export class ExtKnowbaseKnowbase {
201
202
  if (isParamsObject) {
202
203
  params = args[0];
203
204
  } else {
204
- params = { page: args[0], page_size: args[1] };
205
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
205
206
  }
206
207
  const response = await this.client.request('GET', "/cfg/knowbase/admin/sessions/", { params });
207
208
  return response;
@@ -269,8 +270,8 @@ export class ExtKnowbaseKnowbase {
269
270
  return response;
270
271
  }
271
272
 
272
- async categoriesList(page?: number, page_size?: number): Promise<Models.PaginatedPublicCategoryList>;
273
- async categoriesList(params?: { page?: number; page_size?: number }): Promise<Models.PaginatedPublicCategoryList>;
273
+ async categoriesList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedPublicCategoryList>;
274
+ async categoriesList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedPublicCategoryList>;
274
275
 
275
276
  /**
276
277
  * List public categories
@@ -284,7 +285,7 @@ export class ExtKnowbaseKnowbase {
284
285
  if (isParamsObject) {
285
286
  params = args[0];
286
287
  } else {
287
- params = { page: args[0], page_size: args[1] };
288
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
288
289
  }
289
290
  const response = await this.client.request('GET', "/cfg/knowbase/categories/", { params });
290
291
  return response;
@@ -300,8 +301,8 @@ export class ExtKnowbaseKnowbase {
300
301
  return response;
301
302
  }
302
303
 
303
- async documentsList(category?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedPublicDocumentListList>;
304
- async documentsList(params?: { category?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedPublicDocumentListList>;
304
+ async documentsList(category?: string, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedPublicDocumentListList>;
305
+ async documentsList(params?: { category?: string; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedPublicDocumentListList>;
305
306
 
306
307
  /**
307
308
  * List public documents
@@ -315,7 +316,7 @@ export class ExtKnowbaseKnowbase {
315
316
  if (isParamsObject) {
316
317
  params = args[0];
317
318
  } else {
318
- params = { category: args[0], page: args[1], page_size: args[2], search: args[3] };
319
+ params = { category: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
319
320
  }
320
321
  const response = await this.client.request('GET', "/cfg/knowbase/documents/", { params });
321
322
  return response;
@@ -331,8 +332,8 @@ export class ExtKnowbaseKnowbase {
331
332
  return response;
332
333
  }
333
334
 
334
- async systemArchivesList(page?: number, page_size?: number): Promise<Models.PaginatedDocumentArchiveListList>;
335
- async systemArchivesList(params?: { page?: number; page_size?: number }): Promise<Models.PaginatedDocumentArchiveListList>;
335
+ async systemArchivesList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedDocumentArchiveListList>;
336
+ async systemArchivesList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedDocumentArchiveListList>;
336
337
 
337
338
  /**
338
339
  * Document archive management endpoints - Admin only.
@@ -344,7 +345,7 @@ export class ExtKnowbaseKnowbase {
344
345
  if (isParamsObject) {
345
346
  params = args[0];
346
347
  } else {
347
- params = { page: args[0], page_size: args[1] };
348
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
348
349
  }
349
350
  const response = await this.client.request('GET', "/cfg/knowbase/system/archives/", { params });
350
351
  return response;
@@ -413,8 +414,8 @@ export class ExtKnowbaseKnowbase {
413
414
  return response;
414
415
  }
415
416
 
416
- async systemArchivesItemsList(id: string, page?: number, page_size?: number): Promise<Models.PaginatedArchiveItemList>;
417
- async systemArchivesItemsList(id: string, params?: { page?: number; page_size?: number }): Promise<Models.PaginatedArchiveItemList>;
417
+ async systemArchivesItemsList(id: string, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedArchiveItemList>;
418
+ async systemArchivesItemsList(id: string, params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedArchiveItemList>;
418
419
 
419
420
  /**
420
421
  * Get archive items
@@ -429,14 +430,14 @@ export class ExtKnowbaseKnowbase {
429
430
  if (isParamsObject) {
430
431
  params = args[1];
431
432
  } else {
432
- params = { page: args[1], page_size: args[2] };
433
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
433
434
  }
434
435
  const response = await this.client.request('GET', `/cfg/knowbase/system/archives/${id}/items/`, { params });
435
436
  return response;
436
437
  }
437
438
 
438
- async systemArchivesSearchCreate(id: string, data: Models.ArchiveSearchRequestRequest, page?: number, page_size?: number): Promise<Models.PaginatedArchiveSearchResultList>;
439
- async systemArchivesSearchCreate(id: string, data: Models.ArchiveSearchRequestRequest, params?: { page?: number; page_size?: number }): Promise<Models.PaginatedArchiveSearchResultList>;
439
+ async systemArchivesSearchCreate(id: string, data: Models.ArchiveSearchRequestRequest, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedArchiveSearchResultList>;
440
+ async systemArchivesSearchCreate(id: string, data: Models.ArchiveSearchRequestRequest, params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedArchiveSearchResultList>;
440
441
 
441
442
  /**
442
443
  * Search archive chunks
@@ -452,7 +453,7 @@ export class ExtKnowbaseKnowbase {
452
453
  if (isParamsObject) {
453
454
  params = args[2];
454
455
  } else {
455
- params = { page: args[2], page_size: args[3] };
456
+ params = { ordering: args[2], page: args[3], page_size: args[4], search: args[5] };
456
457
  }
457
458
  const formData = new FormData();
458
459
  formData.append('query', String(data.query));
@@ -499,8 +500,8 @@ export class ExtKnowbaseKnowbase {
499
500
  return response;
500
501
  }
501
502
 
502
- async systemChunksList(page?: number, page_size?: number): Promise<Models.PaginatedArchiveItemChunkList>;
503
- async systemChunksList(params?: { page?: number; page_size?: number }): Promise<Models.PaginatedArchiveItemChunkList>;
503
+ async systemChunksList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedArchiveItemChunkList>;
504
+ async systemChunksList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedArchiveItemChunkList>;
504
505
 
505
506
  /**
506
507
  * Archive item chunk management endpoints - Admin only.
@@ -512,7 +513,7 @@ export class ExtKnowbaseKnowbase {
512
513
  if (isParamsObject) {
513
514
  params = args[0];
514
515
  } else {
515
- params = { page: args[0], page_size: args[1] };
516
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
516
517
  }
517
518
  const response = await this.client.request('GET', "/cfg/knowbase/system/chunks/", { params });
518
519
  return response;
@@ -578,8 +579,8 @@ export class ExtKnowbaseKnowbase {
578
579
  return response;
579
580
  }
580
581
 
581
- async systemItemsList(page?: number, page_size?: number): Promise<Models.PaginatedArchiveItemList>;
582
- async systemItemsList(params?: { page?: number; page_size?: number }): Promise<Models.PaginatedArchiveItemList>;
582
+ async systemItemsList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedArchiveItemList>;
583
+ async systemItemsList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedArchiveItemList>;
583
584
 
584
585
  /**
585
586
  * Archive item management endpoints - Admin only.
@@ -591,7 +592,7 @@ export class ExtKnowbaseKnowbase {
591
592
  if (isParamsObject) {
592
593
  params = args[0];
593
594
  } else {
594
- params = { page: args[0], page_size: args[1] };
595
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
595
596
  }
596
597
  const response = await this.client.request('GET', "/cfg/knowbase/system/items/", { params });
597
598
  return response;
@@ -637,8 +638,8 @@ export class ExtKnowbaseKnowbase {
637
638
  return;
638
639
  }
639
640
 
640
- async systemItemsChunksList(id: string, page?: number, page_size?: number): Promise<Models.PaginatedArchiveItemChunkList>;
641
- async systemItemsChunksList(id: string, params?: { page?: number; page_size?: number }): Promise<Models.PaginatedArchiveItemChunkList>;
641
+ async systemItemsChunksList(id: string, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedArchiveItemChunkList>;
642
+ async systemItemsChunksList(id: string, params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedArchiveItemChunkList>;
642
643
 
643
644
  /**
644
645
  * Get item chunks
@@ -653,7 +654,7 @@ export class ExtKnowbaseKnowbase {
653
654
  if (isParamsObject) {
654
655
  params = args[1];
655
656
  } else {
656
- params = { page: args[1], page_size: args[2] };
657
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
657
658
  }
658
659
  const response = await this.client.request('GET', `/cfg/knowbase/system/items/${id}/chunks/`, { params });
659
660
  return response;
@@ -1,5 +1,5 @@
1
1
  // Auto-generated by DjangoCFG - see CLAUDE.md
2
- import * as Enums from '../enums';
2
+ import * as Enums from "../enums";
3
3
 
4
4
  /**
5
5
  *
@@ -489,13 +489,13 @@ export interface DocumentArchiveDetail {
489
489
  * `tar` - TAR
490
490
  * `tar.gz` - TAR GZ
491
491
  * `tar.bz2` - TAR BZ2 */
492
- archive_type: Enums.DocumentArchiveDetailArchiveType;
492
+ archive_type: Enums.DocumentArchiveArchiveType;
493
493
  /** * `pending` - Pending
494
494
  * `processing` - Processing
495
495
  * `completed` - Completed
496
496
  * `failed` - Failed
497
497
  * `cancelled` - Cancelled */
498
- processing_status: Enums.DocumentArchiveDetailProcessingStatus;
498
+ processing_status: Enums.DocumentArchiveProcessingStatus;
499
499
  /** When processing completed */
500
500
  processed_at?: string | null;
501
501
  /** Processing time in milliseconds */
@@ -793,7 +793,7 @@ export interface ArchiveItemChunkRequest {
793
793
  * `metadata` - Metadata
794
794
  * `table` - Table
795
795
  * `list` - List */
796
- chunk_type?: Enums.ArchiveItemChunkRequestChunkType;
796
+ chunk_type?: Enums.ArchiveItemChunkChunkType;
797
797
  }
798
798
 
799
799
  /**
@@ -848,7 +848,7 @@ export interface ArchiveItemChunkDetail {
848
848
  * `metadata` - Metadata
849
849
  * `table` - Table
850
850
  * `list` - List */
851
- chunk_type?: Enums.ArchiveItemChunkDetailChunkType;
851
+ chunk_type?: Enums.ArchiveItemChunkChunkType;
852
852
  /** Number of tokens in chunk */
853
853
  token_count: number;
854
854
  /** Number of characters in chunk */
@@ -881,7 +881,7 @@ export interface PatchedArchiveItemChunkRequest {
881
881
  * `metadata` - Metadata
882
882
  * `table` - Table
883
883
  * `list` - List */
884
- chunk_type?: Enums.PatchedArchiveItemChunkRequestChunkType;
884
+ chunk_type?: Enums.ArchiveItemChunkChunkType;
885
885
  }
886
886
 
887
887
  /**
@@ -961,7 +961,7 @@ export interface ArchiveItemDetail {
961
961
  * `data` - Data
962
962
  * `archive` - Archive
963
963
  * `unknown` - Unknown */
964
- content_type: Enums.ArchiveItemDetailContentType;
964
+ content_type: Enums.ArchiveItemContentType;
965
965
  /** Item size in bytes */
966
966
  file_size?: number;
967
967
  /** Whether item can be processed for chunks */
@@ -1083,13 +1083,13 @@ export interface DocumentArchiveList {
1083
1083
  * `tar` - TAR
1084
1084
  * `tar.gz` - TAR GZ
1085
1085
  * `tar.bz2` - TAR BZ2 */
1086
- archive_type: Enums.DocumentArchiveListArchiveType;
1086
+ archive_type: Enums.DocumentArchiveArchiveType;
1087
1087
  /** * `pending` - Pending
1088
1088
  * `processing` - Processing
1089
1089
  * `completed` - Completed
1090
1090
  * `failed` - Failed
1091
1091
  * `cancelled` - Cancelled */
1092
- processing_status: Enums.DocumentArchiveListProcessingStatus;
1092
+ processing_status: Enums.DocumentArchiveProcessingStatus;
1093
1093
  /** When processing completed */
1094
1094
  processed_at?: string | null;
1095
1095
  /** Total items in archive */
@@ -33,15 +33,17 @@
33
33
  * ```
34
34
  */
35
35
 
36
- import { APIClient } from './client';
37
- import { ExtKnowbaseKnowbase } from './ext_knowbase__knowbase/client';
38
- import { APILogger } from './logger';
36
+ import { APIClient } from "./client";
39
37
  import {
40
- CookieStorageAdapter, LocalStorageAdapter, MemoryStorageAdapter, StorageAdapter
41
- } from './storage';
42
-
38
+ StorageAdapter,
39
+ LocalStorageAdapter,
40
+ CookieStorageAdapter,
41
+ MemoryStorageAdapter
42
+ } from "./storage";
43
43
  import type { RetryConfig } from "./retry";
44
44
  import type { LoggerConfig } from "./logger";
45
+ import { APILogger } from "./logger";
46
+ import { ExtKnowbaseKnowbase } from "./ext_knowbase__knowbase/client";
45
47
  export * as ExtKnowbaseKnowbaseTypes from "./ext_knowbase__knowbase/models";
46
48
  // Note: Direct exports (export * from) are removed to avoid duplicate type conflicts
47
49
  // Use namespace exports like CfgAccountsTypes.User or import from specific modules
@@ -7,7 +7,6 @@
7
7
  */
8
8
 
9
9
  import pRetry, { AbortError } from 'p-retry';
10
-
11
10
  import { APIError, NetworkError } from './errors';
12
11
 
13
12
  /**