@djangocfg/ext-knowbase 1.0.23 → 1.0.25

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 (71) hide show
  1. package/dist/config.cjs +1 -1
  2. package/dist/config.js +1 -1
  3. package/dist/hooks.cjs +118 -118
  4. package/dist/hooks.js +118 -118
  5. package/dist/i18n.cjs +34 -34
  6. package/dist/i18n.js +35 -35
  7. package/dist/index.cjs +84 -84
  8. package/dist/index.js +84 -84
  9. package/package.json +11 -11
  10. package/src/api/generated/ext_knowbase/_utils/fetchers/ext_knowbase__knowbase.ts +114 -47
  11. package/src/api/generated/ext_knowbase/_utils/hooks/ext_knowbase__knowbase.ts +4 -3
  12. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItem.schema.ts +3 -2
  13. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunk.schema.ts +3 -2
  14. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunkDetail.schema.ts +3 -2
  15. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunkRequest.schema.ts +3 -2
  16. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemDetail.schema.ts +3 -2
  17. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemRequest.schema.ts +1 -1
  18. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveProcessingResult.schema.ts +1 -1
  19. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveSearchRequestRequest.schema.ts +1 -1
  20. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveSearchResult.schema.ts +3 -2
  21. package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveStatistics.schema.ts +1 -1
  22. package/src/api/generated/ext_knowbase/_utils/schemas/CfgKnowbaseSystemArchivesCreateRequest.schema.ts +1 -1
  23. package/src/api/generated/ext_knowbase/_utils/schemas/ChatHistory.schema.ts +3 -2
  24. package/src/api/generated/ext_knowbase/_utils/schemas/ChatMessage.schema.ts +3 -2
  25. package/src/api/generated/ext_knowbase/_utils/schemas/ChatQueryRequest.schema.ts +1 -1
  26. package/src/api/generated/ext_knowbase/_utils/schemas/ChatResponse.schema.ts +3 -2
  27. package/src/api/generated/ext_knowbase/_utils/schemas/ChatResponseRequest.schema.ts +3 -2
  28. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSession.schema.ts +1 -1
  29. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSessionCreateRequest.schema.ts +1 -1
  30. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSessionRequest.schema.ts +1 -1
  31. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSource.schema.ts +1 -1
  32. package/src/api/generated/ext_knowbase/_utils/schemas/ChatSourceRequest.schema.ts +1 -1
  33. package/src/api/generated/ext_knowbase/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts +1 -1
  34. package/src/api/generated/ext_knowbase/_utils/schemas/Document.schema.ts +1 -1
  35. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchive.schema.ts +4 -3
  36. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveDetail.schema.ts +5 -4
  37. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveList.schema.ts +4 -3
  38. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveRequest.schema.ts +1 -1
  39. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCategory.schema.ts +1 -1
  40. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCategoryRequest.schema.ts +1 -1
  41. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCreateRequest.schema.ts +1 -1
  42. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentProcessingStatus.schema.ts +1 -1
  43. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentRequest.schema.ts +1 -1
  44. package/src/api/generated/ext_knowbase/_utils/schemas/DocumentStats.schema.ts +1 -1
  45. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts +3 -2
  46. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemList.schema.ts +3 -2
  47. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts +3 -2
  48. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedChatResponseList.schema.ts +3 -2
  49. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedChatSessionList.schema.ts +3 -2
  50. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts +3 -2
  51. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedDocumentList.schema.ts +3 -2
  52. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicCategoryList.schema.ts +3 -2
  53. package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicDocumentListList.schema.ts +3 -2
  54. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts +3 -2
  55. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedArchiveItemRequest.schema.ts +1 -1
  56. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedChatResponseRequest.schema.ts +3 -2
  57. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedChatSessionRequest.schema.ts +1 -1
  58. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts +1 -1
  59. package/src/api/generated/ext_knowbase/_utils/schemas/PatchedDocumentRequest.schema.ts +1 -1
  60. package/src/api/generated/ext_knowbase/_utils/schemas/PublicCategory.schema.ts +1 -1
  61. package/src/api/generated/ext_knowbase/_utils/schemas/PublicDocument.schema.ts +3 -2
  62. package/src/api/generated/ext_knowbase/_utils/schemas/PublicDocumentList.schema.ts +3 -2
  63. package/src/api/generated/ext_knowbase/_utils/schemas/VectorizationResult.schema.ts +1 -1
  64. package/src/api/generated/ext_knowbase/_utils/schemas/VectorizationStatistics.schema.ts +1 -1
  65. package/src/api/generated/ext_knowbase/api-instance.ts +1 -1
  66. package/src/api/generated/ext_knowbase/client.ts +5 -6
  67. package/src/api/generated/ext_knowbase/ext_knowbase__knowbase/client.ts +1 -2
  68. package/src/api/generated/ext_knowbase/ext_knowbase__knowbase/models.ts +1 -1
  69. package/src/api/generated/ext_knowbase/index.ts +6 -8
  70. package/src/api/generated/ext_knowbase/retry.ts +1 -0
  71. package/src/i18n/useKnowbaseT.ts +3 -3
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * This schema provides runtime validation and type inference.
5
5
  * */
6
- import { z } from 'zod'
7
- import { DocumentArchiveListSchema } from './DocumentArchiveList.schema'
6
+ import { z } from 'zod';
7
+
8
+ import { DocumentArchiveListSchema } from './DocumentArchiveList.schema';
8
9
 
9
10
  export const PaginatedDocumentArchiveListListSchema = z.object({
10
11
  count: z.int(),
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * This schema provides runtime validation and type inference.
5
5
  * */
6
- import { z } from 'zod'
7
- import { DocumentSchema } from './Document.schema'
6
+ import { z } from 'zod';
7
+
8
+ import { DocumentSchema } from './Document.schema';
8
9
 
9
10
  export const PaginatedDocumentListSchema = z.object({
10
11
  count: z.int(),
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * This schema provides runtime validation and type inference.
5
5
  * */
6
- import { z } from 'zod'
7
- import { PublicCategorySchema } from './PublicCategory.schema'
6
+ import { z } from 'zod';
7
+
8
+ import { PublicCategorySchema } from './PublicCategory.schema';
8
9
 
9
10
  export const PaginatedPublicCategoryListSchema = z.object({
10
11
  count: z.int(),
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * This schema provides runtime validation and type inference.
5
5
  * */
6
- import { z } from 'zod'
7
- import { PublicDocumentListSchema } from './PublicDocumentList.schema'
6
+ import { z } from 'zod';
7
+
8
+ import { PublicDocumentListSchema } from './PublicDocumentList.schema';
8
9
 
9
10
  export const PaginatedPublicDocumentListListSchema = z.object({
10
11
  count: z.int(),
@@ -4,8 +4,9 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Archive item chunk serializer.
6
6
  * */
7
- import { z } from 'zod'
8
- import * as Enums from '../../enums'
7
+ import { z } from 'zod';
8
+
9
+ import * as Enums from '../../enums';
9
10
 
10
11
  /**
11
12
  * Archive item chunk serializer.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Archive item serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Archive item serializer.
@@ -4,8 +4,9 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Chat response serializer.
6
6
  * */
7
- import { z } from 'zod'
8
- import { ChatSourceRequestSchema } from './ChatSourceRequest.schema'
7
+ import { z } from 'zod';
8
+
9
+ import { ChatSourceRequestSchema } from './ChatSourceRequest.schema';
9
10
 
10
11
  /**
11
12
  * Chat response serializer.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Chat session response serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Chat session response serializer.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Document archive serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Document archive serializer.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Document response serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Document response serializer.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Public category serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Public category serializer.
@@ -4,8 +4,9 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Public document detail serializer - only essential data for clients.
6
6
  * */
7
- import { z } from 'zod'
8
- import { PublicCategorySchema } from './PublicCategory.schema'
7
+ import { z } from 'zod';
8
+
9
+ import { PublicCategorySchema } from './PublicCategory.schema';
9
10
 
10
11
  /**
11
12
  * Public document detail serializer - only essential data for clients.
@@ -4,8 +4,9 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Public document list serializer - minimal fields for listing.
6
6
  * */
7
- import { z } from 'zod'
8
- import { PublicCategorySchema } from './PublicCategory.schema'
7
+ import { z } from 'zod';
8
+
9
+ import { PublicCategorySchema } from './PublicCategory.schema';
9
10
 
10
11
  /**
11
12
  * Public document list serializer - minimal fields for listing.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Vectorization result serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Vectorization result serializer.
@@ -4,7 +4,7 @@
4
4
  * This schema provides runtime validation and type inference.
5
5
  * * Vectorization statistics serializer.
6
6
  * */
7
- import { z } from 'zod'
7
+ import { z } from 'zod';
8
8
 
9
9
  /**
10
10
  * Vectorization statistics serializer.
@@ -38,7 +38,7 @@
38
38
  * ```
39
39
  */
40
40
 
41
- import { API, type APIOptions } from './index'
41
+ import { API, type APIOptions } from './index';
42
42
 
43
43
  let globalAPI: API | null = null
44
44
  let autoConfigAttempted = false
@@ -1,9 +1,8 @@
1
- import { ExtKnowbaseKnowbase } from "./ext_knowbase__knowbase";
2
- import { HttpClientAdapter, FetchAdapter } from "./http";
3
- import { APIError, NetworkError } from "./errors";
4
- import { APILogger, type LoggerConfig } from "./logger";
5
- import { withRetry, type RetryConfig } from "./retry";
6
-
1
+ import { APIError, NetworkError } from './errors';
2
+ import { ExtKnowbaseKnowbase } from './ext_knowbase__knowbase';
3
+ import { FetchAdapter, HttpClientAdapter } from './http';
4
+ import { APILogger, type LoggerConfig } from './logger';
5
+ import { type RetryConfig, withRetry } from './retry';
7
6
 
8
7
  /**
9
8
  * Async API client for Django CFG API.
@@ -1,5 +1,4 @@
1
- import * as Models from "./models";
2
-
1
+ import * as Models from './models';
3
2
 
4
3
  /**
5
4
  * API endpoints for Knowbase.
@@ -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
  *
@@ -33,17 +33,15 @@
33
33
  * ```
34
34
  */
35
35
 
36
- import { APIClient } from "./client";
36
+ import { APIClient } from './client';
37
+ import { ExtKnowbaseKnowbase } from './ext_knowbase__knowbase/client';
38
+ import { APILogger } from './logger';
37
39
  import {
38
- StorageAdapter,
39
- LocalStorageAdapter,
40
- CookieStorageAdapter,
41
- MemoryStorageAdapter
42
- } from "./storage";
40
+ CookieStorageAdapter, LocalStorageAdapter, MemoryStorageAdapter, StorageAdapter
41
+ } from './storage';
42
+
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";
47
45
  export * as ExtKnowbaseKnowbaseTypes from "./ext_knowbase__knowbase/models";
48
46
  // Note: Direct exports (export * from) are removed to avoid duplicate type conflicts
49
47
  // Use namespace exports like CfgAccountsTypes.User or import from specific modules
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import pRetry, { AbortError } from 'p-retry';
10
+
10
11
  import { APIError, NetworkError } from './errors';
11
12
 
12
13
  /**
@@ -7,13 +7,13 @@
7
7
  */
8
8
 
9
9
  import { useLocale } from 'next-intl';
10
- import { useMemo, useCallback } from 'react';
10
+ import { useCallback, useMemo } from 'react';
11
11
 
12
- import type { KnowbaseTranslations, KnowbaseLocalKeys } from './types';
13
12
  import { en } from './locales/en';
14
- import { ru } from './locales/ru';
15
13
  import { ko } from './locales/ko';
14
+ import { ru } from './locales/ru';
16
15
 
16
+ import type { KnowbaseTranslations, KnowbaseLocalKeys } from './types';
17
17
  const translations: Record<string, KnowbaseTranslations> = { en, ru, ko };
18
18
 
19
19
  /**