@djangocfg/ext-knowbase 1.0.17 → 1.0.20

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/index.js CHANGED
@@ -1461,8 +1461,8 @@ var ArchiveItemSchema = z.object({
1461
1461
  chunks_count: z.int(),
1462
1462
  total_tokens: z.int(),
1463
1463
  processing_cost: z.number(),
1464
- created_at: z.iso.datetime(),
1465
- updated_at: z.iso.datetime()
1464
+ created_at: z.string().datetime({ offset: true }),
1465
+ updated_at: z.string().datetime({ offset: true })
1466
1466
  });
1467
1467
  var ArchiveItemChunkSchema = z.object({
1468
1468
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
@@ -1474,7 +1474,7 @@ var ArchiveItemChunkSchema = z.object({
1474
1474
  embedding_model: z.string(),
1475
1475
  embedding_cost: z.number(),
1476
1476
  context_summary: z.object({}),
1477
- created_at: z.iso.datetime()
1477
+ created_at: z.string().datetime({ offset: true })
1478
1478
  });
1479
1479
  var ArchiveItemChunkDetailSchema = z.object({
1480
1480
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
@@ -1486,7 +1486,7 @@ var ArchiveItemChunkDetailSchema = z.object({
1486
1486
  embedding_model: z.string(),
1487
1487
  embedding_cost: z.number(),
1488
1488
  context_summary: z.object({}),
1489
- created_at: z.iso.datetime(),
1489
+ created_at: z.string().datetime({ offset: true }),
1490
1490
  context_metadata: z.record(z.string(), z.any())
1491
1491
  });
1492
1492
  var ArchiveItemChunkRequestSchema = z.object({
@@ -1507,8 +1507,8 @@ var ArchiveItemDetailSchema = z.object({
1507
1507
  chunks_count: z.int(),
1508
1508
  total_tokens: z.int(),
1509
1509
  processing_cost: z.number(),
1510
- created_at: z.iso.datetime(),
1511
- updated_at: z.iso.datetime(),
1510
+ created_at: z.string().datetime({ offset: true }),
1511
+ updated_at: z.string().datetime({ offset: true }),
1512
1512
  raw_content: z.string(),
1513
1513
  metadata: z.record(z.string(), z.any())
1514
1514
  });
@@ -1571,7 +1571,7 @@ var ChatMessageSchema = z.object({
1571
1571
  tokens_used: z.int().min(0).max(2147483647).optional(),
1572
1572
  cost_usd: z.number(),
1573
1573
  processing_time_ms: z.int().min(0).max(2147483647).optional(),
1574
- created_at: z.iso.datetime(),
1574
+ created_at: z.string().datetime({ offset: true }),
1575
1575
  context_chunks: z.record(z.string(), z.any()).optional()
1576
1576
  });
1577
1577
 
@@ -1629,8 +1629,8 @@ var ChatSessionSchema = z.object({
1629
1629
  model_name: z.string().max(100).optional(),
1630
1630
  temperature: z.number().optional(),
1631
1631
  max_context_chunks: z.int().min(0).max(2147483647).optional(),
1632
- created_at: z.iso.datetime(),
1633
- updated_at: z.iso.datetime()
1632
+ created_at: z.string().datetime({ offset: true }),
1633
+ updated_at: z.string().datetime({ offset: true })
1634
1634
  });
1635
1635
  var ChatSessionCreateRequestSchema = z.object({
1636
1636
  title: z.string().max(255).optional(),
@@ -1660,10 +1660,10 @@ var DocumentSchema = z.object({
1660
1660
  chunks_count: z.int(),
1661
1661
  total_tokens: z.int(),
1662
1662
  total_cost_usd: z.number(),
1663
- created_at: z.iso.datetime(),
1664
- updated_at: z.iso.datetime(),
1665
- processing_started_at: z.iso.datetime(),
1666
- processing_completed_at: z.iso.datetime(),
1663
+ created_at: z.string().datetime({ offset: true }),
1664
+ updated_at: z.string().datetime({ offset: true }),
1665
+ processing_started_at: z.string().datetime({ offset: true }),
1666
+ processing_completed_at: z.string().datetime({ offset: true }),
1667
1667
  processing_error: z.string(),
1668
1668
  metadata: z.record(z.string(), z.any()).nullable().optional()
1669
1669
  });
@@ -1672,7 +1672,7 @@ var DocumentCategorySchema = z.object({
1672
1672
  name: z.string().max(255),
1673
1673
  description: z.string().optional(),
1674
1674
  is_public: z.boolean().optional(),
1675
- created_at: z.iso.datetime()
1675
+ created_at: z.string().datetime({ offset: true })
1676
1676
  });
1677
1677
 
1678
1678
  // src/api/generated/ext_knowbase/_utils/schemas/DocumentArchive.schema.ts
@@ -1687,7 +1687,7 @@ var DocumentArchiveSchema = z.object({
1687
1687
  file_size: z.int(),
1688
1688
  archive_type: z.nativeEnum(DocumentArchiveArchiveType),
1689
1689
  processing_status: z.nativeEnum(DocumentArchiveProcessingStatus),
1690
- processed_at: z.iso.datetime().nullable(),
1690
+ processed_at: z.string().datetime({ offset: true }).nullable(),
1691
1691
  processing_duration_ms: z.int(),
1692
1692
  processing_error: z.string(),
1693
1693
  total_items: z.int(),
@@ -1699,8 +1699,8 @@ var DocumentArchiveSchema = z.object({
1699
1699
  processing_progress: z.number(),
1700
1700
  vectorization_progress: z.number(),
1701
1701
  is_processed: z.boolean(),
1702
- created_at: z.iso.datetime(),
1703
- updated_at: z.iso.datetime()
1702
+ created_at: z.string().datetime({ offset: true }),
1703
+ updated_at: z.string().datetime({ offset: true })
1704
1704
  });
1705
1705
  var DocumentArchiveDetailSchema = z.object({
1706
1706
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
@@ -1713,7 +1713,7 @@ var DocumentArchiveDetailSchema = z.object({
1713
1713
  file_size: z.int(),
1714
1714
  archive_type: z.nativeEnum(DocumentArchiveDetailArchiveType),
1715
1715
  processing_status: z.nativeEnum(DocumentArchiveDetailProcessingStatus),
1716
- processed_at: z.iso.datetime().nullable(),
1716
+ processed_at: z.string().datetime({ offset: true }).nullable(),
1717
1717
  processing_duration_ms: z.int(),
1718
1718
  processing_error: z.string(),
1719
1719
  total_items: z.int(),
@@ -1725,8 +1725,8 @@ var DocumentArchiveDetailSchema = z.object({
1725
1725
  processing_progress: z.number(),
1726
1726
  vectorization_progress: z.number(),
1727
1727
  is_processed: z.boolean(),
1728
- created_at: z.iso.datetime(),
1729
- updated_at: z.iso.datetime(),
1728
+ created_at: z.string().datetime({ offset: true }),
1729
+ updated_at: z.string().datetime({ offset: true }),
1730
1730
  items: z.array(ArchiveItemSchema),
1731
1731
  file_tree: z.record(z.string(), z.any()),
1732
1732
  metadata: z.record(z.string(), z.any()).nullable().optional()
@@ -1741,12 +1741,12 @@ var DocumentArchiveListSchema = z.object({
1741
1741
  file_size: z.int(),
1742
1742
  archive_type: z.nativeEnum(DocumentArchiveListArchiveType),
1743
1743
  processing_status: z.nativeEnum(DocumentArchiveListProcessingStatus),
1744
- processed_at: z.iso.datetime().nullable(),
1744
+ processed_at: z.string().datetime({ offset: true }).nullable(),
1745
1745
  total_items: z.int(),
1746
1746
  total_chunks: z.int(),
1747
1747
  total_cost_usd: z.number(),
1748
1748
  processing_progress: z.number(),
1749
- created_at: z.iso.datetime()
1749
+ created_at: z.string().datetime({ offset: true })
1750
1750
  });
1751
1751
  var DocumentArchiveRequestSchema = z.object({
1752
1752
  title: z.string().min(1).max(512),
@@ -1885,8 +1885,8 @@ var PublicDocumentListSchema = z.object({
1885
1885
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1886
1886
  title: z.string().max(512),
1887
1887
  category: PublicCategorySchema,
1888
- created_at: z.iso.datetime(),
1889
- updated_at: z.iso.datetime()
1888
+ created_at: z.string().datetime({ offset: true }),
1889
+ updated_at: z.string().datetime({ offset: true })
1890
1890
  });
1891
1891
 
1892
1892
  // src/api/generated/ext_knowbase/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
@@ -1946,8 +1946,8 @@ var PublicDocumentSchema = z.object({
1946
1946
  title: z.string().max(512),
1947
1947
  content: z.string(),
1948
1948
  category: PublicCategorySchema,
1949
- created_at: z.iso.datetime(),
1950
- updated_at: z.iso.datetime()
1949
+ created_at: z.string().datetime({ offset: true }),
1950
+ updated_at: z.string().datetime({ offset: true })
1951
1951
  });
1952
1952
  var VectorizationResultSchema = z.object({
1953
1953
  vectorized_count: z.int(),
@@ -4363,7 +4363,7 @@ var apiKnowbase = createExtensionAPI(API);
4363
4363
  // package.json
4364
4364
  var package_default = {
4365
4365
  name: "@djangocfg/ext-knowbase",
4366
- version: "1.0.17",
4366
+ version: "1.0.20",
4367
4367
  description: "Knowledge base and chat extension for DjangoCFG",
4368
4368
  keywords: [
4369
4369
  "django",
@@ -4434,7 +4434,7 @@ var package_default = {
4434
4434
  "react-dom": "^19",
4435
4435
  "react-markdown": "^9.0.0 || ^10.0.0",
4436
4436
  swr: "^2.3.7",
4437
- zod: "^4.1.13",
4437
+ zod: "^4.3.4",
4438
4438
  moment: "^2.30.1"
4439
4439
  },
4440
4440
  devDependencies: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ext-knowbase",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "Knowledge base and chat extension for DjangoCFG",
5
5
  "keywords": [
6
6
  "django",
@@ -59,10 +59,10 @@
59
59
  "check": "tsc --noEmit"
60
60
  },
61
61
  "peerDependencies": {
62
- "@djangocfg/api": "^2.1.108",
63
- "@djangocfg/ext-base": "^1.0.12",
64
- "@djangocfg/ui-core": "^2.1.108",
65
- "@djangocfg/ui-nextjs": "^2.1.108",
62
+ "@djangocfg/api": "^2.1.109",
63
+ "@djangocfg/ext-base": "^1.0.15",
64
+ "@djangocfg/ui-core": "^2.1.109",
65
+ "@djangocfg/ui-nextjs": "^2.1.109",
66
66
  "consola": "^3.4.2",
67
67
  "lucide-react": "^0.545.0",
68
68
  "next": "^16",
@@ -71,14 +71,14 @@
71
71
  "react-dom": "^19",
72
72
  "react-markdown": "^9.0.0 || ^10.0.0",
73
73
  "swr": "^2.3.7",
74
- "zod": "^4.1.13",
74
+ "zod": "^4.3.4",
75
75
  "moment": "^2.30.1"
76
76
  },
77
77
  "devDependencies": {
78
- "@djangocfg/api": "^2.1.108",
79
- "@djangocfg/ext-base": "^1.0.12",
80
- "@djangocfg/ui-core": "^2.1.108",
81
- "@djangocfg/typescript-config": "^2.1.108",
78
+ "@djangocfg/api": "^2.1.109",
79
+ "@djangocfg/ext-base": "^1.0.15",
80
+ "@djangocfg/ui-core": "^2.1.109",
81
+ "@djangocfg/typescript-config": "^2.1.109",
82
82
  "@types/node": "^24.7.2",
83
83
  "@types/react": "^19.0.0",
84
84
  "consola": "^3.4.2",
@@ -23,8 +23,8 @@ export const ArchiveItemSchema = z.object({
23
23
  chunks_count: z.int(),
24
24
  total_tokens: z.int(),
25
25
  processing_cost: z.number(),
26
- created_at: z.iso.datetime(),
27
- updated_at: z.iso.datetime(),
26
+ created_at: z.string().datetime({ offset: true }),
27
+ updated_at: z.string().datetime({ offset: true }),
28
28
  })
29
29
 
30
30
  /**
@@ -20,7 +20,7 @@ export const ArchiveItemChunkSchema = z.object({
20
20
  embedding_model: z.string(),
21
21
  embedding_cost: z.number(),
22
22
  context_summary: z.object({}),
23
- created_at: z.iso.datetime(),
23
+ created_at: z.string().datetime({ offset: true }),
24
24
  })
25
25
 
26
26
  /**
@@ -20,7 +20,7 @@ export const ArchiveItemChunkDetailSchema = z.object({
20
20
  embedding_model: z.string(),
21
21
  embedding_cost: z.number(),
22
22
  context_summary: z.object({}),
23
- created_at: z.iso.datetime(),
23
+ created_at: z.string().datetime({ offset: true }),
24
24
  context_metadata: z.record(z.string(), z.any()),
25
25
  })
26
26
 
@@ -23,8 +23,8 @@ export const ArchiveItemDetailSchema = z.object({
23
23
  chunks_count: z.int(),
24
24
  total_tokens: z.int(),
25
25
  processing_cost: z.number(),
26
- created_at: z.iso.datetime(),
27
- updated_at: z.iso.datetime(),
26
+ created_at: z.string().datetime({ offset: true }),
27
+ updated_at: z.string().datetime({ offset: true }),
28
28
  raw_content: z.string(),
29
29
  metadata: z.record(z.string(), z.any()),
30
30
  })
@@ -17,7 +17,7 @@ export const ChatMessageSchema = z.object({
17
17
  tokens_used: z.int().min(0.0).max(2147483647.0).optional(),
18
18
  cost_usd: z.number(),
19
19
  processing_time_ms: z.int().min(0.0).max(2147483647.0).optional(),
20
- created_at: z.iso.datetime(),
20
+ created_at: z.string().datetime({ offset: true }),
21
21
  context_chunks: z.record(z.string(), z.any()).optional(),
22
22
  })
23
23
 
@@ -19,8 +19,8 @@ export const ChatSessionSchema = z.object({
19
19
  model_name: z.string().max(100).optional(),
20
20
  temperature: z.number().optional(),
21
21
  max_context_chunks: z.int().min(0.0).max(2147483647.0).optional(),
22
- created_at: z.iso.datetime(),
23
- updated_at: z.iso.datetime(),
22
+ created_at: z.string().datetime({ offset: true }),
23
+ updated_at: z.string().datetime({ offset: true }),
24
24
  })
25
25
 
26
26
  /**
@@ -18,10 +18,10 @@ export const DocumentSchema = z.object({
18
18
  chunks_count: z.int(),
19
19
  total_tokens: z.int(),
20
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(),
21
+ created_at: z.string().datetime({ offset: true }),
22
+ updated_at: z.string().datetime({ offset: true }),
23
+ processing_started_at: z.string().datetime({ offset: true }),
24
+ processing_completed_at: z.string().datetime({ offset: true }),
25
25
  processing_error: z.string(),
26
26
  metadata: z.record(z.string(), z.any()).nullable().optional(),
27
27
  })
@@ -22,7 +22,7 @@ export const DocumentArchiveSchema = z.object({
22
22
  file_size: z.int(),
23
23
  archive_type: z.nativeEnum(Enums.DocumentArchiveArchiveType),
24
24
  processing_status: z.nativeEnum(Enums.DocumentArchiveProcessingStatus),
25
- processed_at: z.iso.datetime().nullable(),
25
+ processed_at: z.string().datetime({ offset: true }).nullable(),
26
26
  processing_duration_ms: z.int(),
27
27
  processing_error: z.string(),
28
28
  total_items: z.int(),
@@ -34,8 +34,8 @@ export const DocumentArchiveSchema = z.object({
34
34
  processing_progress: z.number(),
35
35
  vectorization_progress: z.number(),
36
36
  is_processed: z.boolean(),
37
- created_at: z.iso.datetime(),
38
- updated_at: z.iso.datetime(),
37
+ created_at: z.string().datetime({ offset: true }),
38
+ updated_at: z.string().datetime({ offset: true }),
39
39
  })
40
40
 
41
41
  /**
@@ -23,7 +23,7 @@ export const DocumentArchiveDetailSchema = z.object({
23
23
  file_size: z.int(),
24
24
  archive_type: z.nativeEnum(Enums.DocumentArchiveDetailArchiveType),
25
25
  processing_status: z.nativeEnum(Enums.DocumentArchiveDetailProcessingStatus),
26
- processed_at: z.iso.datetime().nullable(),
26
+ processed_at: z.string().datetime({ offset: true }).nullable(),
27
27
  processing_duration_ms: z.int(),
28
28
  processing_error: z.string(),
29
29
  total_items: z.int(),
@@ -35,8 +35,8 @@ export const DocumentArchiveDetailSchema = z.object({
35
35
  processing_progress: z.number(),
36
36
  vectorization_progress: z.number(),
37
37
  is_processed: z.boolean(),
38
- created_at: z.iso.datetime(),
39
- updated_at: z.iso.datetime(),
38
+ created_at: z.string().datetime({ offset: true }),
39
+ updated_at: z.string().datetime({ offset: true }),
40
40
  items: z.array(ArchiveItemSchema),
41
41
  file_tree: z.record(z.string(), z.any()),
42
42
  metadata: z.record(z.string(), z.any()).nullable().optional(),
@@ -21,12 +21,12 @@ export const DocumentArchiveListSchema = z.object({
21
21
  file_size: z.int(),
22
22
  archive_type: z.nativeEnum(Enums.DocumentArchiveListArchiveType),
23
23
  processing_status: z.nativeEnum(Enums.DocumentArchiveListProcessingStatus),
24
- processed_at: z.iso.datetime().nullable(),
24
+ processed_at: z.string().datetime({ offset: true }).nullable(),
25
25
  total_items: z.int(),
26
26
  total_chunks: z.int(),
27
27
  total_cost_usd: z.number(),
28
28
  processing_progress: z.number(),
29
- created_at: z.iso.datetime(),
29
+ created_at: z.string().datetime({ offset: true }),
30
30
  })
31
31
 
32
32
  /**
@@ -14,7 +14,7 @@ export const DocumentCategorySchema = z.object({
14
14
  name: z.string().max(255),
15
15
  description: z.string().optional(),
16
16
  is_public: z.boolean().optional(),
17
- created_at: z.iso.datetime(),
17
+ created_at: z.string().datetime({ offset: true }),
18
18
  })
19
19
 
20
20
  /**
@@ -15,8 +15,8 @@ export const PublicDocumentSchema = z.object({
15
15
  title: z.string().max(512),
16
16
  content: z.string(),
17
17
  category: PublicCategorySchema,
18
- created_at: z.iso.datetime(),
19
- updated_at: z.iso.datetime(),
18
+ created_at: z.string().datetime({ offset: true }),
19
+ updated_at: z.string().datetime({ offset: true }),
20
20
  })
21
21
 
22
22
  /**
@@ -14,8 +14,8 @@ export const PublicDocumentListSchema = z.object({
14
14
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
15
15
  title: z.string().max(512),
16
16
  category: PublicCategorySchema,
17
- created_at: z.iso.datetime(),
18
- updated_at: z.iso.datetime(),
17
+ created_at: z.string().datetime({ offset: true }),
18
+ updated_at: z.string().datetime({ offset: true }),
19
19
  })
20
20
 
21
21
  /**
package/src/config.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { createExtensionConfig } from '@djangocfg/ext-base';
6
6
 
7
+ // @ts-ignore - package.json is not typed
7
8
  import packageJson from '../package.json';
8
9
 
9
10
  export const extensionConfig = createExtensionConfig(packageJson, {