django-cfg 1.4.59__py3-none-any.whl → 1.4.60__py3-none-any.whl

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.

Potentially problematic release.


This version of django-cfg might be problematic. Click here for more details.

Files changed (53) hide show
  1. django_cfg/__init__.py +1 -1
  2. django_cfg/apps/ipc/RPC_LOGGING.md +321 -0
  3. django_cfg/apps/ipc/TESTING.md +539 -0
  4. django_cfg/apps/ipc/__init__.py +12 -3
  5. django_cfg/apps/ipc/admin.py +212 -0
  6. django_cfg/apps/ipc/migrations/0001_initial.py +137 -0
  7. django_cfg/apps/ipc/migrations/__init__.py +0 -0
  8. django_cfg/apps/ipc/models.py +221 -0
  9. django_cfg/apps/ipc/serializers/__init__.py +10 -0
  10. django_cfg/apps/ipc/serializers/serializers.py +114 -0
  11. django_cfg/apps/ipc/services/client/client.py +83 -4
  12. django_cfg/apps/ipc/services/logging.py +239 -0
  13. django_cfg/apps/ipc/services/monitor.py +5 -3
  14. django_cfg/apps/ipc/static/django_cfg_ipc/js/dashboard/main.mjs +269 -0
  15. django_cfg/apps/ipc/static/django_cfg_ipc/js/dashboard/overview.mjs +259 -0
  16. django_cfg/apps/ipc/static/django_cfg_ipc/js/dashboard/testing.mjs +375 -0
  17. django_cfg/apps/ipc/templates/django_cfg_ipc/components/methods_content.html +22 -0
  18. django_cfg/apps/ipc/templates/django_cfg_ipc/components/notifications_content.html +9 -0
  19. django_cfg/apps/ipc/templates/django_cfg_ipc/components/overview_content.html +9 -0
  20. django_cfg/apps/ipc/templates/django_cfg_ipc/components/requests_content.html +23 -0
  21. django_cfg/apps/ipc/templates/django_cfg_ipc/components/stat_cards.html +50 -0
  22. django_cfg/apps/ipc/templates/django_cfg_ipc/components/system_status.html +47 -0
  23. django_cfg/apps/ipc/templates/django_cfg_ipc/components/tab_navigation.html +29 -0
  24. django_cfg/apps/ipc/templates/django_cfg_ipc/components/testing_tools.html +184 -0
  25. django_cfg/apps/ipc/templates/django_cfg_ipc/pages/dashboard.html +56 -0
  26. django_cfg/apps/ipc/urls.py +4 -2
  27. django_cfg/apps/ipc/views/__init__.py +7 -2
  28. django_cfg/apps/ipc/views/dashboard.py +1 -1
  29. django_cfg/apps/ipc/views/{viewsets.py → monitoring.py} +17 -11
  30. django_cfg/apps/ipc/views/testing.py +285 -0
  31. django_cfg/modules/django_client/system/generate_mjs_clients.py +1 -1
  32. django_cfg/modules/django_dashboard/sections/widgets.py +209 -0
  33. django_cfg/modules/django_unfold/callbacks/main.py +43 -18
  34. django_cfg/modules/django_unfold/dashboard.py +41 -4
  35. django_cfg/pyproject.toml +1 -1
  36. django_cfg/static/js/api/index.mjs +8 -3
  37. django_cfg/static/js/api/ipc/client.mjs +40 -0
  38. django_cfg/static/js/api/knowbase/client.mjs +309 -0
  39. django_cfg/static/js/api/knowbase/index.mjs +13 -0
  40. django_cfg/static/js/api/payments/client.mjs +46 -1215
  41. django_cfg/static/js/api/types.mjs +164 -337
  42. django_cfg/templates/admin/index.html +8 -0
  43. django_cfg/templates/admin/layouts/dashboard_with_tabs.html +13 -1
  44. django_cfg/templates/admin/sections/widgets_section.html +129 -0
  45. django_cfg/templates/admin/snippets/tabs/widgets_tab.html +38 -0
  46. {django_cfg-1.4.59.dist-info → django_cfg-1.4.60.dist-info}/METADATA +1 -1
  47. {django_cfg-1.4.59.dist-info → django_cfg-1.4.60.dist-info}/RECORD +52 -28
  48. django_cfg/apps/ipc/templates/django_cfg_ipc/dashboard.html +0 -202
  49. /django_cfg/apps/ipc/static/django_cfg_ipc/js/{dashboard.mjs → dashboard.mjs.old} +0 -0
  50. /django_cfg/apps/ipc/templates/django_cfg_ipc/{base.html → layout/base.html} +0 -0
  51. {django_cfg-1.4.59.dist-info → django_cfg-1.4.60.dist-info}/WHEEL +0 -0
  52. {django_cfg-1.4.59.dist-info → django_cfg-1.4.60.dist-info}/entry_points.txt +0 -0
  53. {django_cfg-1.4.59.dist-info → django_cfg-1.4.60.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,309 @@
1
+ import { BaseAPIClient } from '../base.mjs';
2
+
3
+ /**
4
+ * Knowbase API Client
5
+ * Auto-generated from OpenAPI schema
6
+ * @module knowbase
7
+ * @extends BaseAPIClient
8
+ */
9
+ export class KnowbaseAPI extends BaseAPIClient {
10
+ /**
11
+ * Initialize knowbase API client
12
+ * @param {string} [baseURL] - Optional base URL
13
+ */
14
+ constructor(baseURL) {
15
+ super(baseURL);
16
+ }
17
+
18
+ /**
19
+ * knowbaseAdminChatList * Chat query endpoints. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedChatResponseList>} Response data
20
+ */
21
+ async knowbaseAdminChatList(params = {}) {
22
+ const path = `/cfg/knowbase/admin/chat/`; return this.get(path, params); }
23
+ /**
24
+ * knowbaseAdminChatCreate * Chat query endpoints. * @param {ChatResponseRequest} data - Request body * @returns {Promise<ChatResponse>} Response data
25
+ */
26
+ async knowbaseAdminChatCreate(data) {
27
+ const path = `/cfg/knowbase/admin/chat/`; return this.post(path, data); }
28
+ /**
29
+ * knowbaseAdminChatRetrieve * Chat query endpoints. * @param {string} id - A UUID string identifying this chat session. * @returns {Promise<ChatResponse>} Response data
30
+ */
31
+ async knowbaseAdminChatRetrieve(id) {
32
+ const path = `/cfg/knowbase/admin/chat/${id}/`; return this.get(path); }
33
+ /**
34
+ * knowbaseAdminChatUpdate * Chat query endpoints. * @param {string} id - A UUID string identifying this chat session. * @param {ChatResponseRequest} data - Request body * @returns {Promise<ChatResponse>} Response data
35
+ */
36
+ async knowbaseAdminChatUpdate(id, data) {
37
+ const path = `/cfg/knowbase/admin/chat/${id}/`; return this.put(path, data); }
38
+ /**
39
+ * knowbaseAdminChatPartialUpdate * Chat query endpoints. * @param {string} id - A UUID string identifying this chat session. * @param {PatchedChatResponseRequest} data - Request body * @returns {Promise<ChatResponse>} Response data
40
+ */
41
+ async knowbaseAdminChatPartialUpdate(id, data) {
42
+ const path = `/cfg/knowbase/admin/chat/${id}/`; return this.patch(path, data); }
43
+ /**
44
+ * knowbaseAdminChatDestroy * Chat query endpoints. * @param {string} id - A UUID string identifying this chat session. * @returns {Promise<void>} No content
45
+ */
46
+ async knowbaseAdminChatDestroy(id) {
47
+ const path = `/cfg/knowbase/admin/chat/${id}/`; return this.delete(path); }
48
+ /**
49
+ * Get chat history * Get chat session history. * @param {string} id - A UUID string identifying this chat session. * @returns {Promise<ChatHistory>} Response data
50
+ */
51
+ async knowbaseAdminChatHistoryRetrieve(id) {
52
+ const path = `/cfg/knowbase/admin/chat/${id}/history/`; return this.get(path); }
53
+ /**
54
+ * Process chat query with RAG * Process chat query with RAG context. * @param {ChatQueryRequest} data - Request body * @returns {Promise<ChatResponse>} Response data
55
+ */
56
+ async knowbaseAdminChatQueryCreate(data) {
57
+ const path = `/cfg/knowbase/admin/chat/query/`; return this.post(path, data); }
58
+ /**
59
+ * List user documents * List user documents with filtering and pagination. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @param {string} [params.status] - Filter by processing status * @returns {Promise<PaginatedDocumentList>} Response data
60
+ */
61
+ async knowbaseAdminDocumentsList(params = {}) {
62
+ const path = `/cfg/knowbase/admin/documents/`; return this.get(path, params); }
63
+ /**
64
+ * Upload new document * Upload and process a new knowledge document * @param {DocumentCreateRequest} data - Request body * @returns {Promise<Document>} Response data
65
+ */
66
+ async knowbaseAdminDocumentsCreate(data) {
67
+ const path = `/cfg/knowbase/admin/documents/`; return this.post(path, data); }
68
+ /**
69
+ * Get document details * Get document by ID. * @param {string} id - A UUID string identifying this document. * @returns {Promise<Document>} Response data
70
+ */
71
+ async knowbaseAdminDocumentsRetrieve(id) {
72
+ const path = `/cfg/knowbase/admin/documents/${id}/`; return this.get(path); }
73
+ /**
74
+ * knowbaseAdminDocumentsUpdate * Document management endpoints - Admin only. * @param {string} id - A UUID string identifying this document. * @param {DocumentRequest} data - Request body * @returns {Promise<Document>} Response data
75
+ */
76
+ async knowbaseAdminDocumentsUpdate(id, data) {
77
+ const path = `/cfg/knowbase/admin/documents/${id}/`; return this.put(path, data); }
78
+ /**
79
+ * knowbaseAdminDocumentsPartialUpdate * Document management endpoints - Admin only. * @param {string} id - A UUID string identifying this document. * @param {PatchedDocumentRequest} data - Request body * @returns {Promise<Document>} Response data
80
+ */
81
+ async knowbaseAdminDocumentsPartialUpdate(id, data) {
82
+ const path = `/cfg/knowbase/admin/documents/${id}/`; return this.patch(path, data); }
83
+ /**
84
+ * Delete document * Delete document and all associated chunks. * @param {string} id - A UUID string identifying this document. * @returns {Promise<void>} No content
85
+ */
86
+ async knowbaseAdminDocumentsDestroy(id) {
87
+ const path = `/cfg/knowbase/admin/documents/${id}/`; return this.delete(path); }
88
+ /**
89
+ * Reprocess document * Trigger reprocessing of document chunks and embeddings * @param {string} id - A UUID string identifying this document. * @param {DocumentRequest} data - Request body * @returns {Promise<Document>} Response data
90
+ */
91
+ async knowbaseAdminDocumentsReprocessCreate(id, data) {
92
+ const path = `/cfg/knowbase/admin/documents/${id}/reprocess/`; return this.post(path, data); }
93
+ /**
94
+ * Get document processing status * Get document processing status. * @param {string} id - A UUID string identifying this document. * @returns {Promise<DocumentProcessingStatus>} Response data
95
+ */
96
+ async knowbaseAdminDocumentsStatusRetrieve(id) {
97
+ const path = `/cfg/knowbase/admin/documents/${id}/status/`; return this.get(path); }
98
+ /**
99
+ * Get processing statistics * Get user's document processing statistics. * @returns {Promise<DocumentStats>} Response data
100
+ */
101
+ async knowbaseAdminDocumentsStatsRetrieve() {
102
+ const path = `/cfg/knowbase/admin/documents/stats/`; return this.get(path); }
103
+ /**
104
+ * List user chat sessions * List user chat sessions with filtering. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedChatSessionList>} Response data
105
+ */
106
+ async knowbaseAdminSessionsList(params = {}) {
107
+ const path = `/cfg/knowbase/admin/sessions/`; return this.get(path, params); }
108
+ /**
109
+ * Create new chat session * Create new chat session. * @param {ChatSessionCreateRequest} data - Request body * @returns {Promise<ChatSession>} Response data
110
+ */
111
+ async knowbaseAdminSessionsCreate(data) {
112
+ const path = `/cfg/knowbase/admin/sessions/`; return this.post(path, data); }
113
+ /**
114
+ * knowbaseAdminSessionsRetrieve * Chat session management endpoints. * @param {string} id - A UUID string identifying this chat session. * @returns {Promise<ChatSession>} Response data
115
+ */
116
+ async knowbaseAdminSessionsRetrieve(id) {
117
+ const path = `/cfg/knowbase/admin/sessions/${id}/`; return this.get(path); }
118
+ /**
119
+ * knowbaseAdminSessionsUpdate * Chat session management endpoints. * @param {string} id - A UUID string identifying this chat session. * @param {ChatSessionRequest} data - Request body * @returns {Promise<ChatSession>} Response data
120
+ */
121
+ async knowbaseAdminSessionsUpdate(id, data) {
122
+ const path = `/cfg/knowbase/admin/sessions/${id}/`; return this.put(path, data); }
123
+ /**
124
+ * knowbaseAdminSessionsPartialUpdate * Chat session management endpoints. * @param {string} id - A UUID string identifying this chat session. * @param {PatchedChatSessionRequest} data - Request body * @returns {Promise<ChatSession>} Response data
125
+ */
126
+ async knowbaseAdminSessionsPartialUpdate(id, data) {
127
+ const path = `/cfg/knowbase/admin/sessions/${id}/`; return this.patch(path, data); }
128
+ /**
129
+ * knowbaseAdminSessionsDestroy * Chat session management endpoints. * @param {string} id - A UUID string identifying this chat session. * @returns {Promise<void>} No content
130
+ */
131
+ async knowbaseAdminSessionsDestroy(id) {
132
+ const path = `/cfg/knowbase/admin/sessions/${id}/`; return this.delete(path); }
133
+ /**
134
+ * Activate chat session * Activate chat session. * @param {string} id - A UUID string identifying this chat session. * @param {ChatSessionRequest} data - Request body * @returns {Promise<ChatSession>} Response data
135
+ */
136
+ async knowbaseAdminSessionsActivateCreate(id, data) {
137
+ const path = `/cfg/knowbase/admin/sessions/${id}/activate/`; return this.post(path, data); }
138
+ /**
139
+ * Archive chat session * Archive (deactivate) chat session. * @param {string} id - A UUID string identifying this chat session. * @param {ChatSessionRequest} data - Request body * @returns {Promise<ChatSession>} Response data
140
+ */
141
+ async knowbaseAdminSessionsArchiveCreate(id, data) {
142
+ const path = `/cfg/knowbase/admin/sessions/${id}/archive/`; return this.post(path, data); }
143
+ /**
144
+ * List public categories * Get list of all public categories * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedPublicCategoryList>} Response data
145
+ */
146
+ async knowbaseCategoriesList(params = {}) {
147
+ const path = `/cfg/knowbase/categories/`; return this.get(path, params); }
148
+ /**
149
+ * Get public category details * Get category details by ID (public access) * @param {string} id - A UUID string identifying this Document Category. * @returns {Promise<PublicCategory>} Response data
150
+ */
151
+ async knowbaseCategoriesRetrieve(id) {
152
+ const path = `/cfg/knowbase/categories/${id}/`; return this.get(path); }
153
+ /**
154
+ * List public documents * Get list of all completed and publicly accessible documents * @param {Object} [params={}] - Query parameters * @param {string} [params.category] - Filter by category name * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @param {string} [params.search] - Search in title and content * @returns {Promise<PaginatedPublicDocumentListList>} Response data
155
+ */
156
+ async knowbaseDocumentsList(params = {}) {
157
+ const path = `/cfg/knowbase/documents/`; return this.get(path, params); }
158
+ /**
159
+ * Get public document details * Get document details by ID (public access) * @param {string} id - A UUID string identifying this document. * @returns {Promise<PublicDocument>} Response data
160
+ */
161
+ async knowbaseDocumentsRetrieve(id) {
162
+ const path = `/cfg/knowbase/documents/${id}/`; return this.get(path); }
163
+ /**
164
+ * knowbaseSystemArchivesList * Document archive management endpoints - Admin only. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedDocumentArchiveListList>} Response data
165
+ */
166
+ async knowbaseSystemArchivesList(params = {}) {
167
+ const path = `/cfg/knowbase/system/archives/`; return this.get(path, params); }
168
+ /**
169
+ * Upload and process archive * Upload archive file and process it synchronously * @param {any} data - Request body * @returns {Promise<ArchiveProcessingResult>} Response data
170
+ */
171
+ async knowbaseSystemArchivesCreate(data) {
172
+ const path = `/cfg/knowbase/system/archives/`; return this.post(path, data); }
173
+ /**
174
+ * knowbaseSystemArchivesRetrieve * Document archive management endpoints - Admin only. * @param {string} id - A UUID string identifying this Document Archive. * @returns {Promise<DocumentArchiveDetail>} Response data
175
+ */
176
+ async knowbaseSystemArchivesRetrieve(id) {
177
+ const path = `/cfg/knowbase/system/archives/${id}/`; return this.get(path); }
178
+ /**
179
+ * knowbaseSystemArchivesUpdate * Document archive management endpoints - Admin only. * @param {string} id - A UUID string identifying this Document Archive. * @param {DocumentArchiveRequest} data - Request body * @returns {Promise<DocumentArchive>} Response data
180
+ */
181
+ async knowbaseSystemArchivesUpdate(id, data) {
182
+ const path = `/cfg/knowbase/system/archives/${id}/`; return this.put(path, data); }
183
+ /**
184
+ * knowbaseSystemArchivesPartialUpdate * Document archive management endpoints - Admin only. * @param {string} id - A UUID string identifying this Document Archive. * @param {PatchedDocumentArchiveRequest} data - Request body * @returns {Promise<DocumentArchive>} Response data
185
+ */
186
+ async knowbaseSystemArchivesPartialUpdate(id, data) {
187
+ const path = `/cfg/knowbase/system/archives/${id}/`; return this.patch(path, data); }
188
+ /**
189
+ * knowbaseSystemArchivesDestroy * Document archive management endpoints - Admin only. * @param {string} id - A UUID string identifying this Document Archive. * @returns {Promise<void>} No content
190
+ */
191
+ async knowbaseSystemArchivesDestroy(id) {
192
+ const path = `/cfg/knowbase/system/archives/${id}/`; return this.delete(path); }
193
+ /**
194
+ * Get archive file tree * Get hierarchical file tree structure * @param {string} id - A UUID string identifying this Document Archive. * @returns {Promise<Object>} Response data
195
+ */
196
+ async knowbaseSystemArchivesFileTreeRetrieve(id) {
197
+ const path = `/cfg/knowbase/system/archives/${id}/file_tree/`; return this.get(path); }
198
+ /**
199
+ * Get archive items * Get all items in the archive * @param {string} id - A UUID string identifying this Document Archive. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedArchiveItemList>} Response data
200
+ */
201
+ async knowbaseSystemArchivesItemsList(id, params = {}) {
202
+ const path = `/cfg/knowbase/system/archives/${id}/items/`; return this.get(path, params); }
203
+ /**
204
+ * Search archive chunks * Semantic search within archive chunks * @param {string} id - A UUID string identifying this Document Archive. * @param {ArchiveSearchRequestRequest} data - Request body * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedArchiveSearchResultList>} Response data
205
+ */
206
+ async knowbaseSystemArchivesSearchCreate(id, data, params = {}) {
207
+ const path = `/cfg/knowbase/system/archives/${id}/search/`; return this.post(path, data); }
208
+ /**
209
+ * Re-vectorize chunks * Re-vectorize specific chunks * @param {ChunkRevectorizationRequestRequest} data - Request body * @returns {Promise<VectorizationResult>} Response data
210
+ */
211
+ async knowbaseSystemArchivesRevectorizeCreate(data) {
212
+ const path = `/cfg/knowbase/system/archives/revectorize/`; return this.post(path, data); }
213
+ /**
214
+ * Get archive statistics * Get processing and vectorization statistics * @returns {Promise<ArchiveStatistics>} Response data
215
+ */
216
+ async knowbaseSystemArchivesStatisticsRetrieve() {
217
+ const path = `/cfg/knowbase/system/archives/statistics/`; return this.get(path); }
218
+ /**
219
+ * Get vectorization statistics * Get vectorization statistics for archives * @returns {Promise<VectorizationStatistics>} Response data
220
+ */
221
+ async knowbaseSystemArchivesVectorizationStatsRetrieve() {
222
+ const path = `/cfg/knowbase/system/archives/vectorization_stats/`; return this.get(path); }
223
+ /**
224
+ * knowbaseSystemChunksList * Archive item chunk management endpoints - Admin only. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedArchiveItemChunkList>} Response data
225
+ */
226
+ async knowbaseSystemChunksList(params = {}) {
227
+ const path = `/cfg/knowbase/system/chunks/`; return this.get(path, params); }
228
+ /**
229
+ * knowbaseSystemChunksCreate * Archive item chunk management endpoints - Admin only. * @param {ArchiveItemChunkRequest} data - Request body * @returns {Promise<ArchiveItemChunk>} Response data
230
+ */
231
+ async knowbaseSystemChunksCreate(data) {
232
+ const path = `/cfg/knowbase/system/chunks/`; return this.post(path, data); }
233
+ /**
234
+ * knowbaseSystemChunksRetrieve * Archive item chunk management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item Chunk. * @returns {Promise<ArchiveItemChunkDetail>} Response data
235
+ */
236
+ async knowbaseSystemChunksRetrieve(id) {
237
+ const path = `/cfg/knowbase/system/chunks/${id}/`; return this.get(path); }
238
+ /**
239
+ * knowbaseSystemChunksUpdate * Archive item chunk management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item Chunk. * @param {ArchiveItemChunkRequest} data - Request body * @returns {Promise<ArchiveItemChunk>} Response data
240
+ */
241
+ async knowbaseSystemChunksUpdate(id, data) {
242
+ const path = `/cfg/knowbase/system/chunks/${id}/`; return this.put(path, data); }
243
+ /**
244
+ * knowbaseSystemChunksPartialUpdate * Archive item chunk management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item Chunk. * @param {PatchedArchiveItemChunkRequest} data - Request body * @returns {Promise<ArchiveItemChunk>} Response data
245
+ */
246
+ async knowbaseSystemChunksPartialUpdate(id, data) {
247
+ const path = `/cfg/knowbase/system/chunks/${id}/`; return this.patch(path, data); }
248
+ /**
249
+ * knowbaseSystemChunksDestroy * Archive item chunk management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item Chunk. * @returns {Promise<void>} No content
250
+ */
251
+ async knowbaseSystemChunksDestroy(id) {
252
+ const path = `/cfg/knowbase/system/chunks/${id}/`; return this.delete(path); }
253
+ /**
254
+ * Get chunk context * Get full context metadata for chunk * @param {string} id - A UUID string identifying this Archive Item Chunk. * @returns {Promise<ArchiveItemChunkDetail>} Response data
255
+ */
256
+ async knowbaseSystemChunksContextRetrieve(id) {
257
+ const path = `/cfg/knowbase/system/chunks/${id}/context/`; return this.get(path); }
258
+ /**
259
+ * Vectorize chunk * Generate embedding for specific chunk * @param {string} id - A UUID string identifying this Archive Item Chunk. * @param {ArchiveItemChunkRequest} data - Request body * @returns {Promise<Object>} Response data
260
+ */
261
+ async knowbaseSystemChunksVectorizeCreate(id, data) {
262
+ const path = `/cfg/knowbase/system/chunks/${id}/vectorize/`; return this.post(path, data); }
263
+ /**
264
+ * knowbaseSystemItemsList * Archive item management endpoints - Admin only. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedArchiveItemList>} Response data
265
+ */
266
+ async knowbaseSystemItemsList(params = {}) {
267
+ const path = `/cfg/knowbase/system/items/`; return this.get(path, params); }
268
+ /**
269
+ * knowbaseSystemItemsCreate * Archive item management endpoints - Admin only. * @param {ArchiveItemRequest} data - Request body * @returns {Promise<ArchiveItem>} Response data
270
+ */
271
+ async knowbaseSystemItemsCreate(data) {
272
+ const path = `/cfg/knowbase/system/items/`; return this.post(path, data); }
273
+ /**
274
+ * knowbaseSystemItemsRetrieve * Archive item management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item. * @returns {Promise<ArchiveItemDetail>} Response data
275
+ */
276
+ async knowbaseSystemItemsRetrieve(id) {
277
+ const path = `/cfg/knowbase/system/items/${id}/`; return this.get(path); }
278
+ /**
279
+ * knowbaseSystemItemsUpdate * Archive item management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item. * @param {ArchiveItemRequest} data - Request body * @returns {Promise<ArchiveItem>} Response data
280
+ */
281
+ async knowbaseSystemItemsUpdate(id, data) {
282
+ const path = `/cfg/knowbase/system/items/${id}/`; return this.put(path, data); }
283
+ /**
284
+ * knowbaseSystemItemsPartialUpdate * Archive item management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item. * @param {PatchedArchiveItemRequest} data - Request body * @returns {Promise<ArchiveItem>} Response data
285
+ */
286
+ async knowbaseSystemItemsPartialUpdate(id, data) {
287
+ const path = `/cfg/knowbase/system/items/${id}/`; return this.patch(path, data); }
288
+ /**
289
+ * knowbaseSystemItemsDestroy * Archive item management endpoints - Admin only. * @param {string} id - A UUID string identifying this Archive Item. * @returns {Promise<void>} No content
290
+ */
291
+ async knowbaseSystemItemsDestroy(id) {
292
+ const path = `/cfg/knowbase/system/items/${id}/`; return this.delete(path); }
293
+ /**
294
+ * Get item chunks * Get all chunks for this item * @param {string} id - A UUID string identifying this Archive Item. * @param {Object} [params={}] - Query parameters * @param {number} [params.page] - A page number within the paginated result set. * @param {number} [params.page_size] - Number of results to return per page. * @returns {Promise<PaginatedArchiveItemChunkList>} Response data
295
+ */
296
+ async knowbaseSystemItemsChunksList(id, params = {}) {
297
+ const path = `/cfg/knowbase/system/items/${id}/chunks/`; return this.get(path, params); }
298
+ /**
299
+ * Get item content * Get full content of archive item * @param {string} id - A UUID string identifying this Archive Item. * @returns {Promise<ArchiveItemDetail>} Response data
300
+ */
301
+ async knowbaseSystemItemsContentRetrieve(id) {
302
+ const path = `/cfg/knowbase/system/items/${id}/content/`; return this.get(path); }
303
+ }
304
+
305
+ // Default instance for convenience
306
+ export const knowbaseAPI = new KnowbaseAPI();
307
+
308
+ // Default export
309
+ export default KnowbaseAPI;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Knowbase API Module
3
+ * Re-exports the API client for convenient importing
4
+ * @module knowbase
5
+ */
6
+
7
+ import { KnowbaseAPI, knowbaseAPI } from './client.mjs';
8
+
9
+ // Re-export the class and instance
10
+ export { KnowbaseAPI, knowbaseAPI };
11
+
12
+ // Default export is the instance for convenience
13
+ export default knowbaseAPI;