@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.
- package/dist/config.cjs +1 -1
- package/dist/config.js +1 -1
- package/dist/hooks.cjs +118 -118
- package/dist/hooks.js +118 -118
- package/dist/i18n.cjs +34 -34
- package/dist/i18n.js +35 -35
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/package.json +11 -11
- package/src/api/generated/ext_knowbase/_utils/fetchers/ext_knowbase__knowbase.ts +114 -47
- package/src/api/generated/ext_knowbase/_utils/hooks/ext_knowbase__knowbase.ts +4 -3
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItem.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunk.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunkDetail.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemChunkRequest.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemDetail.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveItemRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveProcessingResult.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveSearchRequestRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveSearchResult.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ArchiveStatistics.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/CfgKnowbaseSystemArchivesCreateRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatHistory.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatMessage.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatQueryRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatResponse.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatResponseRequest.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatSession.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatSessionCreateRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatSessionRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatSource.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChatSourceRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/Document.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchive.schema.ts +4 -3
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveDetail.schema.ts +5 -4
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveList.schema.ts +4 -3
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentArchiveRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCategory.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCategoryRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentCreateRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentProcessingStatus.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/DocumentStats.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedChatResponseList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedChatSessionList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedDocumentList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicCategoryList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicDocumentListList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PatchedArchiveItemRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/PatchedChatResponseRequest.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PatchedChatSessionRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/PatchedDocumentRequest.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/PublicCategory.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/PublicDocument.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/PublicDocumentList.schema.ts +3 -2
- package/src/api/generated/ext_knowbase/_utils/schemas/VectorizationResult.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/_utils/schemas/VectorizationStatistics.schema.ts +1 -1
- package/src/api/generated/ext_knowbase/api-instance.ts +1 -1
- package/src/api/generated/ext_knowbase/client.ts +5 -6
- package/src/api/generated/ext_knowbase/ext_knowbase__knowbase/client.ts +1 -2
- package/src/api/generated/ext_knowbase/ext_knowbase__knowbase/models.ts +1 -1
- package/src/api/generated/ext_knowbase/index.ts +6 -8
- package/src/api/generated/ext_knowbase/retry.ts +1 -0
- package/src/i18n/useKnowbaseT.ts +3 -3
|
@@ -30,53 +30,120 @@
|
|
|
30
30
|
* const users = await getUsers({ page: 1 }, api)
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
import { consola } from 'consola'
|
|
34
|
-
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
import {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
import {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
import {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
33
|
+
import { consola } from 'consola';
|
|
34
|
+
|
|
35
|
+
import { getAPIInstance } from '../../api-instance';
|
|
36
|
+
import { type ArchiveItem, ArchiveItemSchema } from '../schemas/ArchiveItem.schema';
|
|
37
|
+
import { type ArchiveItemChunk, ArchiveItemChunkSchema } from '../schemas/ArchiveItemChunk.schema';
|
|
38
|
+
import {
|
|
39
|
+
type ArchiveItemChunkDetail, ArchiveItemChunkDetailSchema
|
|
40
|
+
} from '../schemas/ArchiveItemChunkDetail.schema';
|
|
41
|
+
import {
|
|
42
|
+
type ArchiveItemChunkRequest, ArchiveItemChunkRequestSchema
|
|
43
|
+
} from '../schemas/ArchiveItemChunkRequest.schema';
|
|
44
|
+
import {
|
|
45
|
+
type ArchiveItemDetail, ArchiveItemDetailSchema
|
|
46
|
+
} from '../schemas/ArchiveItemDetail.schema';
|
|
47
|
+
import {
|
|
48
|
+
type ArchiveItemRequest, ArchiveItemRequestSchema
|
|
49
|
+
} from '../schemas/ArchiveItemRequest.schema';
|
|
50
|
+
import {
|
|
51
|
+
type ArchiveProcessingResult, ArchiveProcessingResultSchema
|
|
52
|
+
} from '../schemas/ArchiveProcessingResult.schema';
|
|
53
|
+
import {
|
|
54
|
+
type ArchiveSearchRequestRequest, ArchiveSearchRequestRequestSchema
|
|
55
|
+
} from '../schemas/ArchiveSearchRequestRequest.schema';
|
|
56
|
+
import {
|
|
57
|
+
type ArchiveStatistics, ArchiveStatisticsSchema
|
|
58
|
+
} from '../schemas/ArchiveStatistics.schema';
|
|
59
|
+
import {
|
|
60
|
+
type CfgKnowbaseSystemArchivesCreateRequest, CfgKnowbaseSystemArchivesCreateRequestSchema
|
|
61
|
+
} from '../schemas/CfgKnowbaseSystemArchivesCreateRequest.schema';
|
|
62
|
+
import { type ChatHistory, ChatHistorySchema } from '../schemas/ChatHistory.schema';
|
|
63
|
+
import { type ChatQueryRequest, ChatQueryRequestSchema } from '../schemas/ChatQueryRequest.schema';
|
|
64
|
+
import { type ChatResponse, ChatResponseSchema } from '../schemas/ChatResponse.schema';
|
|
65
|
+
import {
|
|
66
|
+
type ChatResponseRequest, ChatResponseRequestSchema
|
|
67
|
+
} from '../schemas/ChatResponseRequest.schema';
|
|
68
|
+
import { type ChatSession, ChatSessionSchema } from '../schemas/ChatSession.schema';
|
|
69
|
+
import {
|
|
70
|
+
type ChatSessionCreateRequest, ChatSessionCreateRequestSchema
|
|
71
|
+
} from '../schemas/ChatSessionCreateRequest.schema';
|
|
72
|
+
import {
|
|
73
|
+
type ChatSessionRequest, ChatSessionRequestSchema
|
|
74
|
+
} from '../schemas/ChatSessionRequest.schema';
|
|
75
|
+
import {
|
|
76
|
+
type ChunkRevectorizationRequestRequest, ChunkRevectorizationRequestRequestSchema
|
|
77
|
+
} from '../schemas/ChunkRevectorizationRequestRequest.schema';
|
|
78
|
+
import { type Document, DocumentSchema } from '../schemas/Document.schema';
|
|
79
|
+
import { type DocumentArchive, DocumentArchiveSchema } from '../schemas/DocumentArchive.schema';
|
|
80
|
+
import {
|
|
81
|
+
type DocumentArchiveDetail, DocumentArchiveDetailSchema
|
|
82
|
+
} from '../schemas/DocumentArchiveDetail.schema';
|
|
83
|
+
import {
|
|
84
|
+
type DocumentArchiveRequest, DocumentArchiveRequestSchema
|
|
85
|
+
} from '../schemas/DocumentArchiveRequest.schema';
|
|
86
|
+
import {
|
|
87
|
+
type DocumentCreateRequest, DocumentCreateRequestSchema
|
|
88
|
+
} from '../schemas/DocumentCreateRequest.schema';
|
|
89
|
+
import {
|
|
90
|
+
type DocumentProcessingStatus, DocumentProcessingStatusSchema
|
|
91
|
+
} from '../schemas/DocumentProcessingStatus.schema';
|
|
92
|
+
import { type DocumentRequest, DocumentRequestSchema } from '../schemas/DocumentRequest.schema';
|
|
93
|
+
import { type DocumentStats, DocumentStatsSchema } from '../schemas/DocumentStats.schema';
|
|
94
|
+
import {
|
|
95
|
+
type PaginatedArchiveItemChunkList, PaginatedArchiveItemChunkListSchema
|
|
96
|
+
} from '../schemas/PaginatedArchiveItemChunkList.schema';
|
|
97
|
+
import {
|
|
98
|
+
type PaginatedArchiveItemList, PaginatedArchiveItemListSchema
|
|
99
|
+
} from '../schemas/PaginatedArchiveItemList.schema';
|
|
100
|
+
import {
|
|
101
|
+
type PaginatedArchiveSearchResultList, PaginatedArchiveSearchResultListSchema
|
|
102
|
+
} from '../schemas/PaginatedArchiveSearchResultList.schema';
|
|
103
|
+
import {
|
|
104
|
+
type PaginatedChatResponseList, PaginatedChatResponseListSchema
|
|
105
|
+
} from '../schemas/PaginatedChatResponseList.schema';
|
|
106
|
+
import {
|
|
107
|
+
type PaginatedChatSessionList, PaginatedChatSessionListSchema
|
|
108
|
+
} from '../schemas/PaginatedChatSessionList.schema';
|
|
109
|
+
import {
|
|
110
|
+
type PaginatedDocumentArchiveListList, PaginatedDocumentArchiveListListSchema
|
|
111
|
+
} from '../schemas/PaginatedDocumentArchiveListList.schema';
|
|
112
|
+
import {
|
|
113
|
+
type PaginatedDocumentList, PaginatedDocumentListSchema
|
|
114
|
+
} from '../schemas/PaginatedDocumentList.schema';
|
|
115
|
+
import {
|
|
116
|
+
type PaginatedPublicCategoryList, PaginatedPublicCategoryListSchema
|
|
117
|
+
} from '../schemas/PaginatedPublicCategoryList.schema';
|
|
118
|
+
import {
|
|
119
|
+
type PaginatedPublicDocumentListList, PaginatedPublicDocumentListListSchema
|
|
120
|
+
} from '../schemas/PaginatedPublicDocumentListList.schema';
|
|
121
|
+
import {
|
|
122
|
+
type PatchedArchiveItemChunkRequest, PatchedArchiveItemChunkRequestSchema
|
|
123
|
+
} from '../schemas/PatchedArchiveItemChunkRequest.schema';
|
|
124
|
+
import {
|
|
125
|
+
type PatchedArchiveItemRequest, PatchedArchiveItemRequestSchema
|
|
126
|
+
} from '../schemas/PatchedArchiveItemRequest.schema';
|
|
127
|
+
import {
|
|
128
|
+
type PatchedChatResponseRequest, PatchedChatResponseRequestSchema
|
|
129
|
+
} from '../schemas/PatchedChatResponseRequest.schema';
|
|
130
|
+
import {
|
|
131
|
+
type PatchedChatSessionRequest, PatchedChatSessionRequestSchema
|
|
132
|
+
} from '../schemas/PatchedChatSessionRequest.schema';
|
|
133
|
+
import {
|
|
134
|
+
type PatchedDocumentArchiveRequest, PatchedDocumentArchiveRequestSchema
|
|
135
|
+
} from '../schemas/PatchedDocumentArchiveRequest.schema';
|
|
136
|
+
import {
|
|
137
|
+
type PatchedDocumentRequest, PatchedDocumentRequestSchema
|
|
138
|
+
} from '../schemas/PatchedDocumentRequest.schema';
|
|
139
|
+
import { type PublicCategory, PublicCategorySchema } from '../schemas/PublicCategory.schema';
|
|
140
|
+
import { type PublicDocument, PublicDocumentSchema } from '../schemas/PublicDocument.schema';
|
|
141
|
+
import {
|
|
142
|
+
type VectorizationResult, VectorizationResultSchema
|
|
143
|
+
} from '../schemas/VectorizationResult.schema';
|
|
144
|
+
import {
|
|
145
|
+
type VectorizationStatistics, VectorizationStatisticsSchema
|
|
146
|
+
} from '../schemas/VectorizationStatistics.schema';
|
|
80
147
|
|
|
81
148
|
/**
|
|
82
149
|
* API operation
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
* await createUser({ name: 'John', email: 'john@example.com' })
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
import useSWR from 'swr'
|
|
21
|
-
|
|
22
|
-
import * as Fetchers from '../fetchers/ext_knowbase__knowbase'
|
|
20
|
+
import useSWR, { useSWRConfig } from 'swr';
|
|
21
|
+
|
|
22
|
+
import * as Fetchers from '../fetchers/ext_knowbase__knowbase';
|
|
23
|
+
|
|
23
24
|
import type { API } from '../../index'
|
|
24
25
|
import type { ArchiveItem } from '../schemas/ArchiveItem.schema'
|
|
25
26
|
import type { ArchiveItemChunk } from '../schemas/ArchiveItemChunk.schema'
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Archive item serializer.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Archive item serializer.
|
|
@@ -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
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Archive item chunk serializer.
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Detailed chunk serializer with full context.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Detailed chunk serializer with full context.
|
|
@@ -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
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Archive item chunk serializer.
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Detailed archive item serializer with content.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Detailed archive item serializer with content.
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Archive search result serializer.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import { ArchiveItemChunkSchema } from './ArchiveItemChunk.schema';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Archive search result serializer.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* */
|
|
6
|
-
import { z } from 'zod'
|
|
6
|
+
import { z } from 'zod';
|
|
7
7
|
|
|
8
8
|
export const CfgKnowbaseSystemArchivesCreateRequestSchema = z.object({
|
|
9
9
|
file: z.union([z.instanceof(File), z.instanceof(Blob)]).optional(),
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Chat history response serializer.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import { ChatMessageSchema } from './ChatMessage.schema';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Chat history response serializer.
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Chat message response serializer.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Chat message response 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
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import { ChatSourceSchema } from './ChatSource.schema';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Chat response 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
|
-
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import { ChatSourceRequestSchema } from './ChatSourceRequest.schema';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Chat response serializer.
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Document archive serializer.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
import
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
10
|
+
import { DocumentCategorySchema } from './DocumentCategory.schema';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Document archive serializer.
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Detailed archive serializer with items.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
10
|
+
import { ArchiveItemSchema } from './ArchiveItem.schema';
|
|
11
|
+
import { DocumentCategorySchema } from './DocumentCategory.schema';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Detailed archive serializer with items.
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Simplified archive serializer for list views.
|
|
6
6
|
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
import
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import * as Enums from '../../enums';
|
|
10
|
+
import { DocumentCategorySchema } from './DocumentCategory.schema';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Simplified archive serializer for list views.
|
package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* */
|
|
6
|
-
import { z } from 'zod'
|
|
7
|
-
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
import { ArchiveItemChunkSchema } from './ArchiveItemChunk.schema';
|
|
8
9
|
|
|
9
10
|
export const PaginatedArchiveItemChunkListSchema = 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
|
-
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
import { ArchiveItemSchema } from './ArchiveItem.schema';
|
|
8
9
|
|
|
9
10
|
export const PaginatedArchiveItemListSchema = z.object({
|
|
10
11
|
count: z.int(),
|
package/src/api/generated/ext_knowbase/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* */
|
|
6
|
-
import { z } from 'zod'
|
|
7
|
-
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
import { ArchiveSearchResultSchema } from './ArchiveSearchResult.schema';
|
|
8
9
|
|
|
9
10
|
export const PaginatedArchiveSearchResultListSchema = 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
|
-
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
import { ChatResponseSchema } from './ChatResponse.schema';
|
|
8
9
|
|
|
9
10
|
export const PaginatedChatResponseListSchema = 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
|
-
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
import { ChatSessionSchema } from './ChatSession.schema';
|
|
8
9
|
|
|
9
10
|
export const PaginatedChatSessionListSchema = z.object({
|
|
10
11
|
count: z.int(),
|