@objectstack/spec 0.1.2 → 0.3.0

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 (152) hide show
  1. package/README.md +127 -5
  2. package/dist/ai/index.d.ts +14 -0
  3. package/dist/ai/index.d.ts.map +1 -0
  4. package/dist/ai/index.js +29 -0
  5. package/dist/ai/model-registry.zod.d.ts +1389 -0
  6. package/dist/ai/model-registry.zod.d.ts.map +1 -0
  7. package/dist/ai/model-registry.zod.js +164 -0
  8. package/dist/ai/nlq.zod.d.ts +1126 -0
  9. package/dist/ai/nlq.zod.d.ts.map +1 -0
  10. package/dist/ai/nlq.zod.js +246 -0
  11. package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
  12. package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
  13. package/dist/ai/rag-pipeline.zod.js +244 -0
  14. package/dist/api/index.d.ts +9 -0
  15. package/dist/api/index.d.ts.map +1 -0
  16. package/dist/api/index.js +24 -0
  17. package/dist/data/filter.zod.d.ts +295 -0
  18. package/dist/data/filter.zod.d.ts.map +1 -0
  19. package/dist/data/filter.zod.js +226 -0
  20. package/dist/data/index.d.ts +21 -0
  21. package/dist/data/index.d.ts.map +1 -0
  22. package/dist/data/index.js +36 -0
  23. package/dist/data/query.zod.d.ts +386 -3
  24. package/dist/data/query.zod.d.ts.map +1 -1
  25. package/dist/data/query.zod.js +386 -3
  26. package/dist/data/validation.zod.d.ts +349 -0
  27. package/dist/data/validation.zod.d.ts.map +1 -1
  28. package/dist/data/validation.zod.js +395 -0
  29. package/dist/index.d.ts +36 -39
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +64 -47
  32. package/dist/system/auth-protocol.d.ts +175 -0
  33. package/dist/system/auth-protocol.d.ts.map +1 -0
  34. package/dist/system/auth-protocol.js +60 -0
  35. package/dist/system/auth.zod.d.ts +3319 -0
  36. package/dist/system/auth.zod.d.ts.map +1 -0
  37. package/dist/system/auth.zod.js +499 -0
  38. package/dist/system/datasource.zod.d.ts +118 -38
  39. package/dist/system/datasource.zod.d.ts.map +1 -1
  40. package/dist/system/datasource.zod.js +25 -6
  41. package/dist/system/driver.zod.d.ts +106 -0
  42. package/dist/system/driver.zod.d.ts.map +1 -1
  43. package/dist/system/driver.zod.js +47 -0
  44. package/dist/system/identity.zod.d.ts +234 -180
  45. package/dist/system/identity.zod.d.ts.map +1 -1
  46. package/dist/system/identity.zod.js +168 -51
  47. package/dist/system/index.d.ts +28 -0
  48. package/dist/system/index.d.ts.map +1 -0
  49. package/dist/system/index.js +43 -0
  50. package/dist/system/manifest.zod.d.ts +10 -10
  51. package/dist/system/organization.zod.d.ts +179 -0
  52. package/dist/system/organization.zod.d.ts.map +1 -0
  53. package/dist/system/organization.zod.js +129 -0
  54. package/dist/system/policy.zod.d.ts +10 -10
  55. package/dist/ui/action.zod.d.ts +2 -2
  56. package/dist/ui/dashboard.zod.d.ts +10 -10
  57. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  58. package/dist/ui/dashboard.zod.js +3 -2
  59. package/dist/ui/index.d.ts +17 -0
  60. package/dist/ui/index.d.ts.map +1 -0
  61. package/dist/ui/index.js +32 -0
  62. package/dist/ui/report.zod.d.ts +4 -32
  63. package/dist/ui/report.zod.d.ts.map +1 -1
  64. package/dist/ui/report.zod.js +3 -8
  65. package/dist/ui/theme.zod.d.ts +6 -6
  66. package/json-schema/Account.json +87 -0
  67. package/json-schema/AccountLinkingConfig.json +27 -0
  68. package/json-schema/AuthConfig.json +841 -0
  69. package/json-schema/AuthPluginConfig.json +28 -0
  70. package/json-schema/AuthStrategy.json +17 -0
  71. package/json-schema/AuthenticationConfig.json +601 -0
  72. package/json-schema/AuthenticationProvider.json +617 -0
  73. package/json-schema/CSRFConfig.json +31 -0
  74. package/json-schema/ChunkingStrategy.json +133 -0
  75. package/json-schema/ComparisonOperator.json +56 -0
  76. package/json-schema/Dashboard.json +20 -0
  77. package/json-schema/DashboardWidget.json +20 -0
  78. package/json-schema/DatabaseAdapter.json +38 -0
  79. package/json-schema/DatabaseMapping.json +48 -0
  80. package/json-schema/Datasource.json +25 -5
  81. package/json-schema/DatasourceCapabilities.json +25 -5
  82. package/json-schema/DocumentChunk.json +97 -0
  83. package/json-schema/DocumentLoaderConfig.json +69 -0
  84. package/json-schema/DocumentMetadata.json +61 -0
  85. package/json-schema/DriverCapabilities.json +30 -0
  86. package/json-schema/DriverDefinition.json +25 -5
  87. package/json-schema/DriverInterface.json +30 -0
  88. package/json-schema/EmailPasswordConfig.json +43 -0
  89. package/json-schema/EmbeddingModel.json +57 -0
  90. package/json-schema/EnterpriseAuthConfig.json +172 -0
  91. package/json-schema/Entity.json +55 -0
  92. package/json-schema/EqualityOperator.json +14 -0
  93. package/json-schema/FieldOperators.json +108 -0
  94. package/json-schema/FieldSynonymConfig.json +39 -0
  95. package/json-schema/FilterCondition.json +28 -0
  96. package/json-schema/Invitation.json +69 -0
  97. package/json-schema/InvitationStatus.json +15 -0
  98. package/json-schema/LDAPConfig.json +22 -5
  99. package/json-schema/MagicLinkConfig.json +21 -0
  100. package/json-schema/Member.json +46 -0
  101. package/json-schema/ModelCapability.json +47 -0
  102. package/json-schema/ModelConfig.json +181 -0
  103. package/json-schema/ModelLimits.json +45 -0
  104. package/json-schema/ModelPricing.json +28 -0
  105. package/json-schema/ModelProvider.json +19 -0
  106. package/json-schema/ModelRegistry.json +427 -0
  107. package/json-schema/ModelRegistryEntry.json +239 -0
  108. package/json-schema/ModelSelectionCriteria.json +50 -0
  109. package/json-schema/NLQAnalytics.json +106 -0
  110. package/json-schema/NLQFieldMapping.json +40 -0
  111. package/json-schema/NLQModelConfig.json +78 -0
  112. package/json-schema/NLQParseResult.json +252 -0
  113. package/json-schema/NLQRequest.json +110 -0
  114. package/json-schema/NLQResponse.json +288 -0
  115. package/json-schema/NLQTrainingExample.json +120 -0
  116. package/json-schema/NormalizedFilter.json +348 -0
  117. package/json-schema/OAuthProvider.json +66 -0
  118. package/json-schema/OIDCConfig.json +18 -3
  119. package/json-schema/Organization.json +52 -0
  120. package/json-schema/PasskeyConfig.json +54 -0
  121. package/json-schema/PromptTemplate.json +163 -0
  122. package/json-schema/PromptVariable.json +56 -0
  123. package/json-schema/QueryContext.json +72 -0
  124. package/json-schema/QueryFilter.json +34 -0
  125. package/json-schema/QueryIntent.json +21 -0
  126. package/json-schema/QueryTemplate.json +81 -0
  127. package/json-schema/RAGPipelineConfig.json +552 -0
  128. package/json-schema/RAGPipelineStatus.json +66 -0
  129. package/json-schema/RAGQueryRequest.json +64 -0
  130. package/json-schema/RAGQueryResponse.json +108 -0
  131. package/json-schema/RangeOperator.json +41 -0
  132. package/json-schema/RateLimitConfig.json +36 -0
  133. package/json-schema/Report.json +20 -26
  134. package/json-schema/RerankingConfig.json +34 -0
  135. package/json-schema/RetrievalStrategy.json +121 -0
  136. package/json-schema/SAMLConfig.json +17 -3
  137. package/json-schema/Session.json +63 -0
  138. package/json-schema/SessionConfig.json +56 -0
  139. package/json-schema/SetOperator.json +18 -0
  140. package/json-schema/SpecialOperator.json +18 -0
  141. package/json-schema/StandardAuthProvider.json +857 -0
  142. package/json-schema/StringOperator.json +21 -0
  143. package/json-schema/Timeframe.json +68 -0
  144. package/json-schema/TwoFactorConfig.json +40 -0
  145. package/json-schema/User.json +51 -0
  146. package/json-schema/UserFieldMapping.json +47 -0
  147. package/json-schema/VectorStoreConfig.json +82 -0
  148. package/json-schema/VectorStoreProvider.json +21 -0
  149. package/json-schema/VerificationToken.json +36 -0
  150. package/package.json +27 -1
  151. package/json-schema/AuthProtocol.json +0 -17
  152. package/json-schema/AuthProvider.json +0 -171
@@ -0,0 +1,133 @@
1
+ {
2
+ "$ref": "#/definitions/ChunkingStrategy",
3
+ "definitions": {
4
+ "ChunkingStrategy": {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "fixed"
12
+ },
13
+ "chunkSize": {
14
+ "type": "integer",
15
+ "exclusiveMinimum": 0,
16
+ "description": "Fixed chunk size in tokens/chars"
17
+ },
18
+ "chunkOverlap": {
19
+ "type": "integer",
20
+ "minimum": 0,
21
+ "default": 0,
22
+ "description": "Overlap between chunks"
23
+ },
24
+ "unit": {
25
+ "type": "string",
26
+ "enum": [
27
+ "tokens",
28
+ "characters"
29
+ ],
30
+ "default": "tokens"
31
+ }
32
+ },
33
+ "required": [
34
+ "type",
35
+ "chunkSize"
36
+ ],
37
+ "additionalProperties": false
38
+ },
39
+ {
40
+ "type": "object",
41
+ "properties": {
42
+ "type": {
43
+ "type": "string",
44
+ "const": "semantic"
45
+ },
46
+ "model": {
47
+ "type": "string",
48
+ "description": "Model for semantic chunking"
49
+ },
50
+ "minChunkSize": {
51
+ "type": "integer",
52
+ "exclusiveMinimum": 0,
53
+ "default": 100
54
+ },
55
+ "maxChunkSize": {
56
+ "type": "integer",
57
+ "exclusiveMinimum": 0,
58
+ "default": 1000
59
+ }
60
+ },
61
+ "required": [
62
+ "type"
63
+ ],
64
+ "additionalProperties": false
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "type": {
70
+ "type": "string",
71
+ "const": "recursive"
72
+ },
73
+ "separators": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "string"
77
+ },
78
+ "default": [
79
+ "\n\n",
80
+ "\n",
81
+ " ",
82
+ ""
83
+ ]
84
+ },
85
+ "chunkSize": {
86
+ "type": "integer",
87
+ "exclusiveMinimum": 0
88
+ },
89
+ "chunkOverlap": {
90
+ "type": "integer",
91
+ "minimum": 0,
92
+ "default": 0
93
+ }
94
+ },
95
+ "required": [
96
+ "type",
97
+ "chunkSize"
98
+ ],
99
+ "additionalProperties": false
100
+ },
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "type": {
105
+ "type": "string",
106
+ "const": "markdown"
107
+ },
108
+ "maxChunkSize": {
109
+ "type": "integer",
110
+ "exclusiveMinimum": 0,
111
+ "default": 1000
112
+ },
113
+ "respectHeaders": {
114
+ "type": "boolean",
115
+ "default": true,
116
+ "description": "Keep headers with content"
117
+ },
118
+ "respectCodeBlocks": {
119
+ "type": "boolean",
120
+ "default": true,
121
+ "description": "Keep code blocks intact"
122
+ }
123
+ },
124
+ "required": [
125
+ "type"
126
+ ],
127
+ "additionalProperties": false
128
+ }
129
+ ]
130
+ }
131
+ },
132
+ "$schema": "http://json-schema.org/draft-07/schema#"
133
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "$ref": "#/definitions/ComparisonOperator",
3
+ "definitions": {
4
+ "ComparisonOperator": {
5
+ "type": "object",
6
+ "properties": {
7
+ "$gt": {
8
+ "anyOf": [
9
+ {
10
+ "type": "number"
11
+ },
12
+ {
13
+ "type": "string",
14
+ "format": "date-time"
15
+ }
16
+ ]
17
+ },
18
+ "$gte": {
19
+ "anyOf": [
20
+ {
21
+ "type": "number"
22
+ },
23
+ {
24
+ "type": "string",
25
+ "format": "date-time"
26
+ }
27
+ ]
28
+ },
29
+ "$lt": {
30
+ "anyOf": [
31
+ {
32
+ "type": "number"
33
+ },
34
+ {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ }
38
+ ]
39
+ },
40
+ "$lte": {
41
+ "anyOf": [
42
+ {
43
+ "type": "number"
44
+ },
45
+ {
46
+ "type": "string",
47
+ "format": "date-time"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ "additionalProperties": false
53
+ }
54
+ },
55
+ "$schema": "http://json-schema.org/draft-07/schema#"
56
+ }
@@ -46,6 +46,26 @@
46
46
  "description": "Data source object name"
47
47
  },
48
48
  "filter": {
49
+ "allOf": [
50
+ {
51
+ "type": "object",
52
+ "additionalProperties": {}
53
+ },
54
+ {
55
+ "type": "object",
56
+ "properties": {
57
+ "$and": {
58
+ "type": "array",
59
+ "items": {}
60
+ },
61
+ "$or": {
62
+ "type": "array",
63
+ "items": {}
64
+ },
65
+ "$not": {}
66
+ }
67
+ }
68
+ ],
49
69
  "description": "Data filter criteria"
50
70
  },
51
71
  "categoryField": {
@@ -28,6 +28,26 @@
28
28
  "description": "Data source object name"
29
29
  },
30
30
  "filter": {
31
+ "allOf": [
32
+ {
33
+ "type": "object",
34
+ "additionalProperties": {}
35
+ },
36
+ {
37
+ "type": "object",
38
+ "properties": {
39
+ "$and": {
40
+ "type": "array",
41
+ "items": {}
42
+ },
43
+ "$or": {
44
+ "type": "array",
45
+ "items": {}
46
+ },
47
+ "$not": {}
48
+ }
49
+ }
50
+ ],
31
51
  "description": "Data filter criteria"
32
52
  },
33
53
  "categoryField": {
@@ -0,0 +1,38 @@
1
+ {
2
+ "$ref": "#/definitions/DatabaseAdapter",
3
+ "definitions": {
4
+ "DatabaseAdapter": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "enum": [
10
+ "prisma",
11
+ "drizzle",
12
+ "kysely",
13
+ "custom"
14
+ ],
15
+ "description": "Database adapter type"
16
+ },
17
+ "connectionString": {
18
+ "type": "string",
19
+ "description": "Database connection string"
20
+ },
21
+ "tablePrefix": {
22
+ "type": "string",
23
+ "default": "auth_",
24
+ "description": "Prefix for auth tables"
25
+ },
26
+ "schema": {
27
+ "type": "string",
28
+ "description": "Database schema name"
29
+ }
30
+ },
31
+ "required": [
32
+ "type"
33
+ ],
34
+ "additionalProperties": false
35
+ }
36
+ },
37
+ "$schema": "http://json-schema.org/draft-07/schema#"
38
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$ref": "#/definitions/DatabaseMapping",
3
+ "definitions": {
4
+ "DatabaseMapping": {
5
+ "type": "object",
6
+ "properties": {
7
+ "user": {
8
+ "type": "object",
9
+ "additionalProperties": {
10
+ "type": "string"
11
+ },
12
+ "description": "User field mapping (e.g., { \"emailVerified\": \"email_verified\" })"
13
+ },
14
+ "session": {
15
+ "type": "object",
16
+ "additionalProperties": {
17
+ "type": "string"
18
+ },
19
+ "default": {
20
+ "sessionToken": "token",
21
+ "expires": "expiresAt"
22
+ },
23
+ "description": "Session field mapping"
24
+ },
25
+ "account": {
26
+ "type": "object",
27
+ "additionalProperties": {
28
+ "type": "string"
29
+ },
30
+ "default": {
31
+ "providerAccountId": "accountId",
32
+ "provider": "providerId"
33
+ },
34
+ "description": "Account field mapping"
35
+ },
36
+ "verificationToken": {
37
+ "type": "object",
38
+ "additionalProperties": {
39
+ "type": "string"
40
+ },
41
+ "description": "VerificationToken field mapping"
42
+ }
43
+ },
44
+ "additionalProperties": false
45
+ }
46
+ },
47
+ "$schema": "http://json-schema.org/draft-07/schema#"
48
+ }
@@ -25,29 +25,49 @@
25
25
  "capabilities": {
26
26
  "type": "object",
27
27
  "properties": {
28
- "joins": {
28
+ "transactions": {
29
29
  "type": "boolean",
30
30
  "default": false
31
31
  },
32
- "transactions": {
32
+ "queryFilters": {
33
33
  "type": "boolean",
34
34
  "default": false
35
35
  },
36
- "fullTextSearch": {
36
+ "queryAggregations": {
37
37
  "type": "boolean",
38
38
  "default": false
39
39
  },
40
- "aggregation": {
40
+ "querySorting": {
41
41
  "type": "boolean",
42
42
  "default": false
43
43
  },
44
- "dynamicSchema": {
44
+ "queryPagination": {
45
+ "type": "boolean",
46
+ "default": false
47
+ },
48
+ "queryWindowFunctions": {
49
+ "type": "boolean",
50
+ "default": false
51
+ },
52
+ "querySubqueries": {
53
+ "type": "boolean",
54
+ "default": false
55
+ },
56
+ "joins": {
57
+ "type": "boolean",
58
+ "default": false
59
+ },
60
+ "fullTextSearch": {
45
61
  "type": "boolean",
46
62
  "default": false
47
63
  },
48
64
  "readOnly": {
49
65
  "type": "boolean",
50
66
  "default": false
67
+ },
68
+ "dynamicSchema": {
69
+ "type": "boolean",
70
+ "default": false
51
71
  }
52
72
  },
53
73
  "additionalProperties": false,
@@ -4,29 +4,49 @@
4
4
  "DatasourceCapabilities": {
5
5
  "type": "object",
6
6
  "properties": {
7
- "joins": {
7
+ "transactions": {
8
8
  "type": "boolean",
9
9
  "default": false
10
10
  },
11
- "transactions": {
11
+ "queryFilters": {
12
12
  "type": "boolean",
13
13
  "default": false
14
14
  },
15
- "fullTextSearch": {
15
+ "queryAggregations": {
16
16
  "type": "boolean",
17
17
  "default": false
18
18
  },
19
- "aggregation": {
19
+ "querySorting": {
20
20
  "type": "boolean",
21
21
  "default": false
22
22
  },
23
- "dynamicSchema": {
23
+ "queryPagination": {
24
+ "type": "boolean",
25
+ "default": false
26
+ },
27
+ "queryWindowFunctions": {
28
+ "type": "boolean",
29
+ "default": false
30
+ },
31
+ "querySubqueries": {
32
+ "type": "boolean",
33
+ "default": false
34
+ },
35
+ "joins": {
36
+ "type": "boolean",
37
+ "default": false
38
+ },
39
+ "fullTextSearch": {
24
40
  "type": "boolean",
25
41
  "default": false
26
42
  },
27
43
  "readOnly": {
28
44
  "type": "boolean",
29
45
  "default": false
46
+ },
47
+ "dynamicSchema": {
48
+ "type": "boolean",
49
+ "default": false
30
50
  }
31
51
  },
32
52
  "additionalProperties": false
@@ -0,0 +1,97 @@
1
+ {
2
+ "$ref": "#/definitions/DocumentChunk",
3
+ "definitions": {
4
+ "DocumentChunk": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "description": "Unique chunk identifier"
10
+ },
11
+ "content": {
12
+ "type": "string",
13
+ "description": "Chunk text content"
14
+ },
15
+ "embedding": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "number"
19
+ },
20
+ "description": "Embedding vector"
21
+ },
22
+ "metadata": {
23
+ "type": "object",
24
+ "properties": {
25
+ "source": {
26
+ "type": "string",
27
+ "description": "Document source (file path, URL, etc.)"
28
+ },
29
+ "sourceType": {
30
+ "type": "string",
31
+ "enum": [
32
+ "file",
33
+ "url",
34
+ "api",
35
+ "database",
36
+ "custom"
37
+ ]
38
+ },
39
+ "title": {
40
+ "type": "string"
41
+ },
42
+ "author": {
43
+ "type": "string"
44
+ },
45
+ "createdAt": {
46
+ "type": "string",
47
+ "description": "ISO timestamp"
48
+ },
49
+ "updatedAt": {
50
+ "type": "string",
51
+ "description": "ISO timestamp"
52
+ },
53
+ "tags": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "category": {
60
+ "type": "string"
61
+ },
62
+ "language": {
63
+ "type": "string",
64
+ "description": "Document language (ISO 639-1 code)"
65
+ },
66
+ "custom": {
67
+ "type": "object",
68
+ "additionalProperties": {},
69
+ "description": "Custom metadata fields"
70
+ }
71
+ },
72
+ "required": [
73
+ "source"
74
+ ],
75
+ "additionalProperties": false
76
+ },
77
+ "chunkIndex": {
78
+ "type": "integer",
79
+ "minimum": 0,
80
+ "description": "Chunk position in document"
81
+ },
82
+ "tokens": {
83
+ "type": "integer",
84
+ "description": "Token count"
85
+ }
86
+ },
87
+ "required": [
88
+ "id",
89
+ "content",
90
+ "metadata",
91
+ "chunkIndex"
92
+ ],
93
+ "additionalProperties": false
94
+ }
95
+ },
96
+ "$schema": "http://json-schema.org/draft-07/schema#"
97
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "$ref": "#/definitions/DocumentLoaderConfig",
3
+ "definitions": {
4
+ "DocumentLoaderConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "enum": [
10
+ "file",
11
+ "directory",
12
+ "url",
13
+ "api",
14
+ "database",
15
+ "custom"
16
+ ]
17
+ },
18
+ "source": {
19
+ "type": "string",
20
+ "description": "Source path, URL, or identifier"
21
+ },
22
+ "fileTypes": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ },
27
+ "description": "Accepted file extensions (e.g., [\".pdf\", \".md\"])"
28
+ },
29
+ "recursive": {
30
+ "type": "boolean",
31
+ "default": false,
32
+ "description": "Process directories recursively"
33
+ },
34
+ "maxFileSize": {
35
+ "type": "integer",
36
+ "description": "Maximum file size in bytes"
37
+ },
38
+ "excludePatterns": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ },
43
+ "description": "Patterns to exclude"
44
+ },
45
+ "extractImages": {
46
+ "type": "boolean",
47
+ "default": false,
48
+ "description": "Extract text from images (OCR)"
49
+ },
50
+ "extractTables": {
51
+ "type": "boolean",
52
+ "default": false,
53
+ "description": "Extract and format tables"
54
+ },
55
+ "loaderConfig": {
56
+ "type": "object",
57
+ "additionalProperties": {},
58
+ "description": "Custom loader-specific config"
59
+ }
60
+ },
61
+ "required": [
62
+ "type",
63
+ "source"
64
+ ],
65
+ "additionalProperties": false
66
+ }
67
+ },
68
+ "$schema": "http://json-schema.org/draft-07/schema#"
69
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$ref": "#/definitions/DocumentMetadata",
3
+ "definitions": {
4
+ "DocumentMetadata": {
5
+ "type": "object",
6
+ "properties": {
7
+ "source": {
8
+ "type": "string",
9
+ "description": "Document source (file path, URL, etc.)"
10
+ },
11
+ "sourceType": {
12
+ "type": "string",
13
+ "enum": [
14
+ "file",
15
+ "url",
16
+ "api",
17
+ "database",
18
+ "custom"
19
+ ]
20
+ },
21
+ "title": {
22
+ "type": "string"
23
+ },
24
+ "author": {
25
+ "type": "string"
26
+ },
27
+ "createdAt": {
28
+ "type": "string",
29
+ "description": "ISO timestamp"
30
+ },
31
+ "updatedAt": {
32
+ "type": "string",
33
+ "description": "ISO timestamp"
34
+ },
35
+ "tags": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ },
41
+ "category": {
42
+ "type": "string"
43
+ },
44
+ "language": {
45
+ "type": "string",
46
+ "description": "Document language (ISO 639-1 code)"
47
+ },
48
+ "custom": {
49
+ "type": "object",
50
+ "additionalProperties": {},
51
+ "description": "Custom metadata fields"
52
+ }
53
+ },
54
+ "required": [
55
+ "source"
56
+ ],
57
+ "additionalProperties": false
58
+ }
59
+ },
60
+ "$schema": "http://json-schema.org/draft-07/schema#"
61
+ }