@djangocfg/api 1.0.1 → 1.0.2

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 (108) hide show
  1. package/dist/index.cjs +18173 -8526
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +15000 -5567
  4. package/dist/index.d.ts +15000 -5567
  5. package/dist/index.mjs +17990 -8659
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +17 -17
  8. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -2
  9. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -1
  10. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -6
  11. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +1 -1
  12. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -2
  13. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +876 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -6
  15. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -1
  16. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -3
  17. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -1
  18. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -6
  19. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -1
  20. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -2
  21. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -3
  22. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -1
  23. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +171 -171
  24. package/src/cfg/generated/_utils/fetchers/cfg__payments__webhooks.ts +5 -5
  25. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -12
  26. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -10
  27. package/src/cfg/generated/_utils/fetchers/index.ts +1 -0
  28. package/src/cfg/generated/_utils/hooks/cfg__knowbase.ts +997 -0
  29. package/src/cfg/generated/_utils/hooks/index.ts +1 -0
  30. package/src/cfg/generated/_utils/schemas/ArchiveItem.schema.ts +33 -0
  31. package/src/cfg/generated/_utils/schemas/ArchiveItemChunk.schema.ts +29 -0
  32. package/src/cfg/generated/_utils/schemas/ArchiveItemChunkDetail.schema.ts +30 -0
  33. package/src/cfg/generated/_utils/schemas/ArchiveItemChunkRequest.schema.ts +22 -0
  34. package/src/cfg/generated/_utils/schemas/ArchiveItemDetail.schema.ts +35 -0
  35. package/src/cfg/generated/_utils/schemas/ArchiveItemRequest.schema.ts +22 -0
  36. package/src/cfg/generated/_utils/schemas/ArchiveProcessingResult.schema.ts +26 -0
  37. package/src/cfg/generated/_utils/schemas/ArchiveSearchRequestRequest.schema.ts +25 -0
  38. package/src/cfg/generated/_utils/schemas/ArchiveSearchResult.schema.ts +24 -0
  39. package/src/cfg/generated/_utils/schemas/ArchiveStatistics.schema.ts +28 -0
  40. package/src/cfg/generated/_utils/schemas/ChatHistory.schema.ts +22 -0
  41. package/src/cfg/generated/_utils/schemas/ChatMessage.schema.ts +27 -0
  42. package/src/cfg/generated/_utils/schemas/ChatQueryRequest.schema.ts +22 -0
  43. package/src/cfg/generated/_utils/schemas/ChatResponse.schema.ts +26 -0
  44. package/src/cfg/generated/_utils/schemas/ChatResponseRequest.schema.ts +26 -0
  45. package/src/cfg/generated/_utils/schemas/ChatSession.schema.ts +29 -0
  46. package/src/cfg/generated/_utils/schemas/ChatSessionCreateRequest.schema.ts +22 -0
  47. package/src/cfg/generated/_utils/schemas/ChatSessionRequest.schema.ts +25 -0
  48. package/src/cfg/generated/_utils/schemas/ChatSource.schema.ts +21 -0
  49. package/src/cfg/generated/_utils/schemas/ChatSourceRequest.schema.ts +21 -0
  50. package/src/cfg/generated/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts +20 -0
  51. package/src/cfg/generated/_utils/schemas/Document.schema.ts +32 -0
  52. package/src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts +44 -0
  53. package/src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts +48 -0
  54. package/src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts +35 -0
  55. package/src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts +21 -0
  56. package/src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts +23 -0
  57. package/src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts +21 -0
  58. package/src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts +22 -0
  59. package/src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts +23 -0
  60. package/src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts +22 -0
  61. package/src/cfg/generated/_utils/schemas/DocumentStats.schema.ts +25 -0
  62. package/src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts +24 -0
  63. package/src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts +24 -0
  64. package/src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts +24 -0
  65. package/src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts +24 -0
  66. package/src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts +24 -0
  67. package/src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts +24 -0
  68. package/src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts +24 -0
  69. package/src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts +24 -0
  70. package/src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts +24 -0
  71. package/src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts +22 -0
  72. package/src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts +22 -0
  73. package/src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts +26 -0
  74. package/src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts +25 -0
  75. package/src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts +21 -0
  76. package/src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts +22 -0
  77. package/src/cfg/generated/_utils/schemas/PublicCategory.schema.ts +21 -0
  78. package/src/cfg/generated/_utils/schemas/PublicDocument.schema.ts +25 -0
  79. package/src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts +24 -0
  80. package/src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts +24 -0
  81. package/src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts +26 -0
  82. package/src/cfg/generated/_utils/schemas/index.ts +52 -0
  83. package/src/cfg/generated/cfg__accounts/client.ts +1 -1
  84. package/src/cfg/generated/cfg__accounts__auth/client.ts +1 -1
  85. package/src/cfg/generated/cfg__accounts__user_profile/client.ts +1 -1
  86. package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
  87. package/src/cfg/generated/cfg__health/client.ts +1 -1
  88. package/src/cfg/generated/cfg__knowbase/client.ts +666 -0
  89. package/src/cfg/generated/cfg__knowbase/index.ts +2 -0
  90. package/src/cfg/generated/cfg__knowbase/models.ts +1120 -0
  91. package/src/cfg/generated/cfg__leads/client.ts +1 -1
  92. package/src/cfg/generated/cfg__leads__lead_submission/client.ts +1 -1
  93. package/src/cfg/generated/cfg__newsletter/client.ts +1 -1
  94. package/src/cfg/generated/cfg__newsletter__bulk_email/client.ts +1 -1
  95. package/src/cfg/generated/cfg__newsletter__campaigns/client.ts +1 -1
  96. package/src/cfg/generated/cfg__newsletter__logs/client.ts +1 -1
  97. package/src/cfg/generated/cfg__newsletter__newsletters/client.ts +1 -1
  98. package/src/cfg/generated/cfg__newsletter__subscriptions/client.ts +1 -1
  99. package/src/cfg/generated/cfg__newsletter__testing/client.ts +1 -1
  100. package/src/cfg/generated/cfg__payments/client.ts +1 -1
  101. package/src/cfg/generated/cfg__payments__webhooks/client.ts +1 -1
  102. package/src/cfg/generated/cfg__support/client.ts +1 -1
  103. package/src/cfg/generated/cfg__tasks/client.ts +1 -1
  104. package/src/cfg/generated/client.ts +57 -54
  105. package/src/cfg/generated/enums.ts +241 -0
  106. package/src/cfg/generated/index.ts +81 -27
  107. package/src/cfg/generated/schema.ts +10236 -4400
  108. package/src/index.ts +4 -1
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Zod schema for DocumentArchiveDetail
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Detailed archive serializer with items.
6
+ * */
7
+ import { z } from 'zod'
8
+ import * as Enums from '../../enums'
9
+ import { ArchiveItemSchema } from './ArchiveItem.schema'
10
+ import { DocumentCategorySchema } from './DocumentCategory.schema'
11
+
12
+ /**
13
+ * Detailed archive serializer with items.
14
+ */
15
+ export const DocumentArchiveDetailSchema = z.object({
16
+ id: z.uuid(),
17
+ title: z.string().max(512),
18
+ description: z.string().optional(),
19
+ categories: z.array(DocumentCategorySchema),
20
+ is_public: z.boolean().optional(),
21
+ archive_file: z.url(),
22
+ original_filename: z.string(),
23
+ file_size: z.int(),
24
+ archive_type: z.nativeEnum(Enums.DocumentArchiveDetailArchiveType),
25
+ processing_status: z.nativeEnum(Enums.DocumentArchiveDetailProcessingStatus),
26
+ processed_at: z.iso.datetime().nullable(),
27
+ processing_duration_ms: z.int(),
28
+ processing_error: z.string(),
29
+ total_items: z.int(),
30
+ processed_items: z.int(),
31
+ total_chunks: z.int(),
32
+ vectorized_chunks: z.int(),
33
+ total_tokens: z.int(),
34
+ total_cost_usd: z.number(),
35
+ processing_progress: z.number(),
36
+ vectorization_progress: z.number(),
37
+ is_processed: z.boolean(),
38
+ created_at: z.iso.datetime(),
39
+ updated_at: z.iso.datetime(),
40
+ items: z.array(ArchiveItemSchema),
41
+ file_tree: z.record(z.string(), z.any()),
42
+ metadata: z.string().nullable().optional(),
43
+ })
44
+
45
+ /**
46
+ * Infer TypeScript type from Zod schema
47
+ */
48
+ export type DocumentArchiveDetail = z.infer<typeof DocumentArchiveDetailSchema>
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Zod schema for DocumentArchiveList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Simplified archive serializer for list views.
6
+ * */
7
+ import { z } from 'zod'
8
+ import * as Enums from '../../enums'
9
+ import { DocumentCategorySchema } from './DocumentCategory.schema'
10
+
11
+ /**
12
+ * Simplified archive serializer for list views.
13
+ */
14
+ export const DocumentArchiveListSchema = z.object({
15
+ id: z.uuid(),
16
+ title: z.string(),
17
+ description: z.string(),
18
+ categories: z.array(DocumentCategorySchema),
19
+ is_public: z.boolean(),
20
+ original_filename: z.string(),
21
+ file_size: z.int(),
22
+ archive_type: z.nativeEnum(Enums.DocumentArchiveListArchiveType),
23
+ processing_status: z.nativeEnum(Enums.DocumentArchiveListProcessingStatus),
24
+ processed_at: z.iso.datetime().nullable(),
25
+ total_items: z.int(),
26
+ total_chunks: z.int(),
27
+ total_cost_usd: z.number(),
28
+ processing_progress: z.number(),
29
+ created_at: z.iso.datetime(),
30
+ })
31
+
32
+ /**
33
+ * Infer TypeScript type from Zod schema
34
+ */
35
+ export type DocumentArchiveList = z.infer<typeof DocumentArchiveListSchema>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Zod schema for DocumentArchiveRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document archive serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document archive serializer.
11
+ */
12
+ export const DocumentArchiveRequestSchema = z.object({
13
+ title: z.string().min(1).max(512),
14
+ description: z.string().optional(),
15
+ is_public: z.boolean().optional(),
16
+ })
17
+
18
+ /**
19
+ * Infer TypeScript type from Zod schema
20
+ */
21
+ export type DocumentArchiveRequest = z.infer<typeof DocumentArchiveRequestSchema>
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Zod schema for DocumentCategory
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document category serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document category serializer.
11
+ */
12
+ export const DocumentCategorySchema = z.object({
13
+ id: z.uuid(),
14
+ name: z.string().max(255),
15
+ description: z.string().optional(),
16
+ is_public: z.boolean().optional(),
17
+ created_at: z.iso.datetime(),
18
+ })
19
+
20
+ /**
21
+ * Infer TypeScript type from Zod schema
22
+ */
23
+ export type DocumentCategory = z.infer<typeof DocumentCategorySchema>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Zod schema for DocumentCategoryRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document category serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document category serializer.
11
+ */
12
+ export const DocumentCategoryRequestSchema = z.object({
13
+ name: z.string().min(1).max(255),
14
+ description: z.string().optional(),
15
+ is_public: z.boolean().optional(),
16
+ })
17
+
18
+ /**
19
+ * Infer TypeScript type from Zod schema
20
+ */
21
+ export type DocumentCategoryRequest = z.infer<typeof DocumentCategoryRequestSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for DocumentCreateRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document creation request serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document creation request serializer.
11
+ */
12
+ export const DocumentCreateRequestSchema = z.object({
13
+ title: z.string().min(1).max(512),
14
+ content: z.string().min(10).max(1000000),
15
+ file_type: z.string().min(1).regex(/^[a-z]+\/[a-z0-9\-\+\.]+$/).optional(),
16
+ metadata: z.string().optional(),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type DocumentCreateRequest = z.infer<typeof DocumentCreateRequestSchema>
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Zod schema for DocumentProcessingStatus
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document processing status serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document processing status serializer.
11
+ */
12
+ export const DocumentProcessingStatusSchema = z.object({
13
+ id: z.uuid(),
14
+ status: z.string(),
15
+ progress: z.string(),
16
+ error: z.string().nullable().optional(),
17
+ processing_time_seconds: z.number().nullable().optional(),
18
+ })
19
+
20
+ /**
21
+ * Infer TypeScript type from Zod schema
22
+ */
23
+ export type DocumentProcessingStatus = z.infer<typeof DocumentProcessingStatusSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for DocumentRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document response serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document response serializer.
11
+ */
12
+ export const DocumentRequestSchema = z.object({
13
+ title: z.string().min(1).max(512),
14
+ file_type: z.string().min(1).max(100).optional(),
15
+ file_size: z.int().min(0.0).max(9.223372036854776e+18).optional(),
16
+ metadata: z.string().nullable().optional(),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type DocumentRequest = z.infer<typeof DocumentRequestSchema>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Zod schema for DocumentStats
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document processing statistics serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document processing statistics serializer.
11
+ */
12
+ export const DocumentStatsSchema = z.object({
13
+ total_documents: z.int(),
14
+ completed_documents: z.int(),
15
+ processing_success_rate: z.number(),
16
+ total_chunks: z.int(),
17
+ total_tokens: z.int(),
18
+ total_cost_usd: z.number(),
19
+ avg_processing_time_seconds: z.number(),
20
+ })
21
+
22
+ /**
23
+ * Infer TypeScript type from Zod schema
24
+ */
25
+ export type DocumentStats = z.infer<typeof DocumentStatsSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedArchiveItemChunkList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { ArchiveItemChunkSchema } from './ArchiveItemChunk.schema'
8
+
9
+ export const PaginatedArchiveItemChunkListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(ArchiveItemChunkSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedArchiveItemChunkList = z.infer<typeof PaginatedArchiveItemChunkListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedArchiveItemList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { ArchiveItemSchema } from './ArchiveItem.schema'
8
+
9
+ export const PaginatedArchiveItemListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(ArchiveItemSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedArchiveItemList = z.infer<typeof PaginatedArchiveItemListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedArchiveSearchResultList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { ArchiveSearchResultSchema } from './ArchiveSearchResult.schema'
8
+
9
+ export const PaginatedArchiveSearchResultListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(ArchiveSearchResultSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedArchiveSearchResultList = z.infer<typeof PaginatedArchiveSearchResultListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedChatResponseList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { ChatResponseSchema } from './ChatResponse.schema'
8
+
9
+ export const PaginatedChatResponseListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(ChatResponseSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedChatResponseList = z.infer<typeof PaginatedChatResponseListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedChatSessionList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { ChatSessionSchema } from './ChatSession.schema'
8
+
9
+ export const PaginatedChatSessionListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(ChatSessionSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedChatSessionList = z.infer<typeof PaginatedChatSessionListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedDocumentArchiveListList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { DocumentArchiveListSchema } from './DocumentArchiveList.schema'
8
+
9
+ export const PaginatedDocumentArchiveListListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(DocumentArchiveListSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedDocumentArchiveListList = z.infer<typeof PaginatedDocumentArchiveListListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedDocumentList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { DocumentSchema } from './Document.schema'
8
+
9
+ export const PaginatedDocumentListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(DocumentSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedDocumentList = z.infer<typeof PaginatedDocumentListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedPublicCategoryList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { PublicCategorySchema } from './PublicCategory.schema'
8
+
9
+ export const PaginatedPublicCategoryListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(PublicCategorySchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedPublicCategoryList = z.infer<typeof PaginatedPublicCategoryListSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedPublicDocumentListList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { PublicDocumentListSchema } from './PublicDocumentList.schema'
8
+
9
+ export const PaginatedPublicDocumentListListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(PublicDocumentListSchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedPublicDocumentListList = z.infer<typeof PaginatedPublicDocumentListListSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for PatchedArchiveItemChunkRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Archive item chunk serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+ import * as Enums from '../../enums'
9
+
10
+ /**
11
+ * Archive item chunk serializer.
12
+ */
13
+ export const PatchedArchiveItemChunkRequestSchema = z.object({
14
+ content: z.string().min(1).optional(),
15
+ chunk_index: z.int().min(0.0).max(9.223372036854776e+18).optional(),
16
+ chunk_type: z.nativeEnum(Enums.PatchedArchiveItemChunkRequestChunkType).optional(),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type PatchedArchiveItemChunkRequest = z.infer<typeof PatchedArchiveItemChunkRequestSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for PatchedArchiveItemRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Archive item serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Archive item serializer.
11
+ */
12
+ export const PatchedArchiveItemRequestSchema = z.object({
13
+ relative_path: z.string().min(1).max(1024).optional(),
14
+ item_name: z.string().min(1).max(255).optional(),
15
+ item_type: z.string().min(1).max(100).optional(),
16
+ file_size: z.int().min(0.0).max(9.223372036854776e+18).optional(),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type PatchedArchiveItemRequest = z.infer<typeof PatchedArchiveItemRequestSchema>
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Zod schema for PatchedChatResponseRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Chat response serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+ import { ChatSourceRequestSchema } from './ChatSourceRequest.schema'
9
+
10
+ /**
11
+ * Chat response serializer.
12
+ */
13
+ export const PatchedChatResponseRequestSchema = z.object({
14
+ message_id: z.uuid().optional(),
15
+ content: z.string().min(1).optional(),
16
+ tokens_used: z.int().optional(),
17
+ cost_usd: z.number().optional(),
18
+ processing_time_ms: z.int().optional(),
19
+ model_used: z.string().min(1).optional(),
20
+ sources: z.array(ChatSourceRequestSchema).nullable().optional(),
21
+ })
22
+
23
+ /**
24
+ * Infer TypeScript type from Zod schema
25
+ */
26
+ export type PatchedChatResponseRequest = z.infer<typeof PatchedChatResponseRequestSchema>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Zod schema for PatchedChatSessionRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Chat session response serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Chat session response serializer.
11
+ */
12
+ export const PatchedChatSessionRequestSchema = z.object({
13
+ title: z.string().max(255).optional(),
14
+ is_active: z.boolean().optional(),
15
+ messages_count: z.int().min(0.0).max(9.223372036854776e+18).optional(),
16
+ total_tokens_used: z.int().min(0.0).max(9.223372036854776e+18).optional(),
17
+ model_name: z.string().min(1).max(100).optional(),
18
+ temperature: z.number().optional(),
19
+ max_context_chunks: z.int().min(0.0).max(9.223372036854776e+18).optional(),
20
+ })
21
+
22
+ /**
23
+ * Infer TypeScript type from Zod schema
24
+ */
25
+ export type PatchedChatSessionRequest = z.infer<typeof PatchedChatSessionRequestSchema>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Zod schema for PatchedDocumentArchiveRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document archive serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document archive serializer.
11
+ */
12
+ export const PatchedDocumentArchiveRequestSchema = z.object({
13
+ title: z.string().min(1).max(512).optional(),
14
+ description: z.string().optional(),
15
+ is_public: z.boolean().optional(),
16
+ })
17
+
18
+ /**
19
+ * Infer TypeScript type from Zod schema
20
+ */
21
+ export type PatchedDocumentArchiveRequest = z.infer<typeof PatchedDocumentArchiveRequestSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for PatchedDocumentRequest
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document response serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Document response serializer.
11
+ */
12
+ export const PatchedDocumentRequestSchema = z.object({
13
+ title: z.string().min(1).max(512).optional(),
14
+ file_type: z.string().min(1).max(100).optional(),
15
+ file_size: z.int().min(0.0).max(9.223372036854776e+18).optional(),
16
+ metadata: z.string().nullable().optional(),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type PatchedDocumentRequest = z.infer<typeof PatchedDocumentRequestSchema>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Zod schema for PublicCategory
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Public category serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Public category serializer.
11
+ */
12
+ export const PublicCategorySchema = z.object({
13
+ id: z.uuid(),
14
+ name: z.string().max(255),
15
+ description: z.string().optional(),
16
+ })
17
+
18
+ /**
19
+ * Infer TypeScript type from Zod schema
20
+ */
21
+ export type PublicCategory = z.infer<typeof PublicCategorySchema>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Zod schema for PublicDocument
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Public document detail serializer - only essential data for clients.
6
+ * */
7
+ import { z } from 'zod'
8
+ import { PublicCategorySchema } from './PublicCategory.schema'
9
+
10
+ /**
11
+ * Public document detail serializer - only essential data for clients.
12
+ */
13
+ export const PublicDocumentSchema = z.object({
14
+ id: z.uuid(),
15
+ title: z.string().max(512),
16
+ content: z.string(),
17
+ category: PublicCategorySchema,
18
+ created_at: z.iso.datetime(),
19
+ updated_at: z.iso.datetime(),
20
+ })
21
+
22
+ /**
23
+ * Infer TypeScript type from Zod schema
24
+ */
25
+ export type PublicDocument = z.infer<typeof PublicDocumentSchema>