@djangocfg/api 1.0.1 → 1.0.3

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 (127) hide show
  1. package/dist/index.cjs +17641 -8457
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +14654 -5066
  4. package/dist/index.d.ts +14654 -5066
  5. package/dist/index.mjs +17885 -8728
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +17 -17
  8. package/src/cfg/contexts/payments/ApiKeysContext.tsx +2 -2
  9. package/src/cfg/contexts/payments/CurrenciesContext.tsx +0 -26
  10. package/src/cfg/contexts/payments/OverviewContext.tsx +79 -0
  11. package/src/cfg/contexts/payments/RootPaymentsContext.tsx +137 -0
  12. package/src/cfg/contexts/payments/index.ts +13 -0
  13. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -2
  14. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -1
  15. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -6
  16. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +1 -1
  17. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -2
  18. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +876 -0
  19. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -6
  20. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -1
  21. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -3
  22. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -1
  23. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -6
  24. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -1
  25. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -2
  26. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -3
  27. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -1
  28. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +181 -179
  29. package/src/cfg/generated/_utils/fetchers/cfg__payments__webhooks.ts +5 -5
  30. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -12
  31. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -10
  32. package/src/cfg/generated/_utils/fetchers/index.ts +1 -0
  33. package/src/cfg/generated/_utils/hooks/cfg__knowbase.ts +997 -0
  34. package/src/cfg/generated/_utils/hooks/cfg__payments.ts +12 -10
  35. package/src/cfg/generated/_utils/hooks/index.ts +1 -0
  36. package/src/cfg/generated/_utils/schemas/APIKeyValidationResponse.schema.ts +1 -1
  37. package/src/cfg/generated/_utils/schemas/AdminPaymentDetail.schema.ts +1 -1
  38. package/src/cfg/generated/_utils/schemas/AdminPaymentList.schema.ts +1 -1
  39. package/src/cfg/generated/_utils/schemas/ArchiveItem.schema.ts +33 -0
  40. package/src/cfg/generated/_utils/schemas/ArchiveItemChunk.schema.ts +29 -0
  41. package/src/cfg/generated/_utils/schemas/ArchiveItemChunkDetail.schema.ts +30 -0
  42. package/src/cfg/generated/_utils/schemas/ArchiveItemChunkRequest.schema.ts +22 -0
  43. package/src/cfg/generated/_utils/schemas/ArchiveItemDetail.schema.ts +35 -0
  44. package/src/cfg/generated/_utils/schemas/ArchiveItemRequest.schema.ts +22 -0
  45. package/src/cfg/generated/_utils/schemas/ArchiveProcessingResult.schema.ts +26 -0
  46. package/src/cfg/generated/_utils/schemas/ArchiveSearchRequestRequest.schema.ts +25 -0
  47. package/src/cfg/generated/_utils/schemas/ArchiveSearchResult.schema.ts +24 -0
  48. package/src/cfg/generated/_utils/schemas/ArchiveStatistics.schema.ts +28 -0
  49. package/src/cfg/generated/_utils/schemas/ChatHistory.schema.ts +22 -0
  50. package/src/cfg/generated/_utils/schemas/ChatMessage.schema.ts +27 -0
  51. package/src/cfg/generated/_utils/schemas/ChatQueryRequest.schema.ts +22 -0
  52. package/src/cfg/generated/_utils/schemas/ChatResponse.schema.ts +26 -0
  53. package/src/cfg/generated/_utils/schemas/ChatResponseRequest.schema.ts +26 -0
  54. package/src/cfg/generated/_utils/schemas/ChatSession.schema.ts +29 -0
  55. package/src/cfg/generated/_utils/schemas/ChatSessionCreateRequest.schema.ts +22 -0
  56. package/src/cfg/generated/_utils/schemas/ChatSessionRequest.schema.ts +25 -0
  57. package/src/cfg/generated/_utils/schemas/ChatSource.schema.ts +21 -0
  58. package/src/cfg/generated/_utils/schemas/ChatSourceRequest.schema.ts +21 -0
  59. package/src/cfg/generated/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts +20 -0
  60. package/src/cfg/generated/_utils/schemas/CurrencyList.schema.ts +2 -0
  61. package/src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts +26 -0
  62. package/src/cfg/generated/_utils/schemas/Document.schema.ts +32 -0
  63. package/src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts +44 -0
  64. package/src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts +48 -0
  65. package/src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts +35 -0
  66. package/src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts +21 -0
  67. package/src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts +23 -0
  68. package/src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts +21 -0
  69. package/src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts +22 -0
  70. package/src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts +23 -0
  71. package/src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts +22 -0
  72. package/src/cfg/generated/_utils/schemas/DocumentStats.schema.ts +25 -0
  73. package/src/cfg/generated/_utils/schemas/Network.schema.ts +1 -1
  74. package/src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts +24 -0
  75. package/src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts +24 -0
  76. package/src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts +24 -0
  77. package/src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts +24 -0
  78. package/src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts +24 -0
  79. package/src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts +24 -0
  80. package/src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts +24 -0
  81. package/src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts +24 -0
  82. package/src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts +24 -0
  83. package/src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts +22 -0
  84. package/src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts +22 -0
  85. package/src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts +26 -0
  86. package/src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts +25 -0
  87. package/src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts +21 -0
  88. package/src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts +22 -0
  89. package/src/cfg/generated/_utils/schemas/Payment.schema.ts +1 -0
  90. package/src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts +0 -1
  91. package/src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts +0 -1
  92. package/src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts +1 -1
  93. package/src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts +1 -1
  94. package/src/cfg/generated/_utils/schemas/PublicCategory.schema.ts +21 -0
  95. package/src/cfg/generated/_utils/schemas/PublicDocument.schema.ts +25 -0
  96. package/src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts +24 -0
  97. package/src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts +25 -0
  98. package/src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts +24 -0
  99. package/src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts +26 -0
  100. package/src/cfg/generated/_utils/schemas/index.ts +54 -0
  101. package/src/cfg/generated/cfg__accounts/client.ts +1 -1
  102. package/src/cfg/generated/cfg__accounts__auth/client.ts +1 -1
  103. package/src/cfg/generated/cfg__accounts__user_profile/client.ts +1 -1
  104. package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
  105. package/src/cfg/generated/cfg__health/client.ts +1 -1
  106. package/src/cfg/generated/cfg__knowbase/client.ts +666 -0
  107. package/src/cfg/generated/cfg__knowbase/index.ts +2 -0
  108. package/src/cfg/generated/cfg__knowbase/models.ts +1120 -0
  109. package/src/cfg/generated/cfg__leads/client.ts +1 -1
  110. package/src/cfg/generated/cfg__leads__lead_submission/client.ts +1 -1
  111. package/src/cfg/generated/cfg__newsletter/client.ts +1 -1
  112. package/src/cfg/generated/cfg__newsletter__bulk_email/client.ts +1 -1
  113. package/src/cfg/generated/cfg__newsletter__campaigns/client.ts +1 -1
  114. package/src/cfg/generated/cfg__newsletter__logs/client.ts +1 -1
  115. package/src/cfg/generated/cfg__newsletter__newsletters/client.ts +1 -1
  116. package/src/cfg/generated/cfg__newsletter__subscriptions/client.ts +1 -1
  117. package/src/cfg/generated/cfg__newsletter__testing/client.ts +1 -1
  118. package/src/cfg/generated/cfg__payments/client.ts +25 -45
  119. package/src/cfg/generated/cfg__payments/models.ts +46 -12
  120. package/src/cfg/generated/cfg__payments__webhooks/client.ts +1 -1
  121. package/src/cfg/generated/cfg__support/client.ts +1 -1
  122. package/src/cfg/generated/cfg__tasks/client.ts +1 -1
  123. package/src/cfg/generated/client.ts +57 -54
  124. package/src/cfg/generated/enums.ts +269 -16
  125. package/src/cfg/generated/index.ts +82 -29
  126. package/src/cfg/generated/schema.ts +10238 -4386
  127. package/src/index.ts +23 -1
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Zod schema for CurrencyRates
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Currency rates serializer for getting exchange rates.
6
+
7
+ Fetches current exchange rates through CurrencyService.
8
+ * */
9
+ import { z } from 'zod'
10
+ import * as Enums from '../../enums'
11
+
12
+ /**
13
+ * Currency rates serializer for getting exchange rates.
14
+
15
+ Fetches current exchange rates through CurrencyService.
16
+ */
17
+ export const CurrencyRatesSchema = z.object({
18
+ base_currency: z.string().max(10).optional(),
19
+ currencies: z.array(z.string().max(10)).optional(),
20
+ provider: z.nativeEnum(Enums.CurrencyRatesProvider).optional(),
21
+ })
22
+
23
+ /**
24
+ * Infer TypeScript type from Zod schema
25
+ */
26
+ export type CurrencyRates = z.infer<typeof CurrencyRatesSchema>
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Zod schema for Document
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 DocumentSchema = z.object({
13
+ id: z.uuid(),
14
+ title: z.string().max(512),
15
+ file_type: z.string().max(100).optional(),
16
+ file_size: z.int().min(0.0).max(9.223372036854776e+18).optional(),
17
+ processing_status: z.string(),
18
+ chunks_count: z.int(),
19
+ total_tokens: z.int(),
20
+ total_cost_usd: z.number(),
21
+ created_at: z.iso.datetime(),
22
+ updated_at: z.iso.datetime(),
23
+ processing_started_at: z.iso.datetime(),
24
+ processing_completed_at: z.iso.datetime(),
25
+ processing_error: z.string(),
26
+ metadata: z.string().nullable().optional(),
27
+ })
28
+
29
+ /**
30
+ * Infer TypeScript type from Zod schema
31
+ */
32
+ export type Document = z.infer<typeof DocumentSchema>
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Zod schema for DocumentArchive
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Document archive serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+ import * as Enums from '../../enums'
9
+ import { DocumentCategorySchema } from './DocumentCategory.schema'
10
+
11
+ /**
12
+ * Document archive serializer.
13
+ */
14
+ export const DocumentArchiveSchema = z.object({
15
+ id: z.uuid(),
16
+ title: z.string().max(512),
17
+ description: z.string().optional(),
18
+ categories: z.array(DocumentCategorySchema),
19
+ is_public: z.boolean().optional(),
20
+ archive_file: z.url(),
21
+ original_filename: z.string(),
22
+ file_size: z.int(),
23
+ archive_type: z.nativeEnum(Enums.DocumentArchiveArchiveType),
24
+ processing_status: z.nativeEnum(Enums.DocumentArchiveProcessingStatus),
25
+ processed_at: z.iso.datetime().nullable(),
26
+ processing_duration_ms: z.int(),
27
+ processing_error: z.string(),
28
+ total_items: z.int(),
29
+ processed_items: z.int(),
30
+ total_chunks: z.int(),
31
+ vectorized_chunks: z.int(),
32
+ total_tokens: z.int(),
33
+ total_cost_usd: z.number(),
34
+ processing_progress: z.number(),
35
+ vectorization_progress: z.number(),
36
+ is_processed: z.boolean(),
37
+ created_at: z.iso.datetime(),
38
+ updated_at: z.iso.datetime(),
39
+ })
40
+
41
+ /**
42
+ * Infer TypeScript type from Zod schema
43
+ */
44
+ export type DocumentArchive = z.infer<typeof DocumentArchiveSchema>
@@ -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).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>
@@ -16,7 +16,7 @@ Used for network information and selection.
16
16
  */
17
17
  export const NetworkSchema = z.object({
18
18
  id: z.int(),
19
- currency: CurrencyListSchema,
19
+ currency: CurrencyListSchema.nullable(),
20
20
  name: z.string(),
21
21
  code: z.string(),
22
22
  is_active: z.boolean(),
@@ -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>