@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.
- package/README.md +127 -5
- package/dist/ai/index.d.ts +14 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +29 -0
- package/dist/ai/model-registry.zod.d.ts +1389 -0
- package/dist/ai/model-registry.zod.d.ts.map +1 -0
- package/dist/ai/model-registry.zod.js +164 -0
- package/dist/ai/nlq.zod.d.ts +1126 -0
- package/dist/ai/nlq.zod.d.ts.map +1 -0
- package/dist/ai/nlq.zod.js +246 -0
- package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
- package/dist/ai/rag-pipeline.zod.js +244 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/data/filter.zod.d.ts +295 -0
- package/dist/data/filter.zod.d.ts.map +1 -0
- package/dist/data/filter.zod.js +226 -0
- package/dist/data/index.d.ts +21 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +36 -0
- package/dist/data/query.zod.d.ts +386 -3
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +386 -3
- package/dist/data/validation.zod.d.ts +349 -0
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +395 -0
- package/dist/index.d.ts +36 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -47
- package/dist/system/auth-protocol.d.ts +175 -0
- package/dist/system/auth-protocol.d.ts.map +1 -0
- package/dist/system/auth-protocol.js +60 -0
- package/dist/system/auth.zod.d.ts +3319 -0
- package/dist/system/auth.zod.d.ts.map +1 -0
- package/dist/system/auth.zod.js +499 -0
- package/dist/system/datasource.zod.d.ts +118 -38
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +25 -6
- package/dist/system/driver.zod.d.ts +106 -0
- package/dist/system/driver.zod.d.ts.map +1 -1
- package/dist/system/driver.zod.js +47 -0
- package/dist/system/identity.zod.d.ts +234 -180
- package/dist/system/identity.zod.d.ts.map +1 -1
- package/dist/system/identity.zod.js +168 -51
- package/dist/system/index.d.ts +28 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +43 -0
- package/dist/system/manifest.zod.d.ts +10 -10
- package/dist/system/organization.zod.d.ts +179 -0
- package/dist/system/organization.zod.d.ts.map +1 -0
- package/dist/system/organization.zod.js +129 -0
- package/dist/system/policy.zod.d.ts +10 -10
- package/dist/ui/action.zod.d.ts +2 -2
- package/dist/ui/dashboard.zod.d.ts +10 -10
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +3 -2
- package/dist/ui/index.d.ts +17 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/report.zod.d.ts +4 -32
- package/dist/ui/report.zod.d.ts.map +1 -1
- package/dist/ui/report.zod.js +3 -8
- package/dist/ui/theme.zod.d.ts +6 -6
- package/json-schema/Account.json +87 -0
- package/json-schema/AccountLinkingConfig.json +27 -0
- package/json-schema/AuthConfig.json +841 -0
- package/json-schema/AuthPluginConfig.json +28 -0
- package/json-schema/AuthStrategy.json +17 -0
- package/json-schema/AuthenticationConfig.json +601 -0
- package/json-schema/AuthenticationProvider.json +617 -0
- package/json-schema/CSRFConfig.json +31 -0
- package/json-schema/ChunkingStrategy.json +133 -0
- package/json-schema/ComparisonOperator.json +56 -0
- package/json-schema/Dashboard.json +20 -0
- package/json-schema/DashboardWidget.json +20 -0
- package/json-schema/DatabaseAdapter.json +38 -0
- package/json-schema/DatabaseMapping.json +48 -0
- package/json-schema/Datasource.json +25 -5
- package/json-schema/DatasourceCapabilities.json +25 -5
- package/json-schema/DocumentChunk.json +97 -0
- package/json-schema/DocumentLoaderConfig.json +69 -0
- package/json-schema/DocumentMetadata.json +61 -0
- package/json-schema/DriverCapabilities.json +30 -0
- package/json-schema/DriverDefinition.json +25 -5
- package/json-schema/DriverInterface.json +30 -0
- package/json-schema/EmailPasswordConfig.json +43 -0
- package/json-schema/EmbeddingModel.json +57 -0
- package/json-schema/EnterpriseAuthConfig.json +172 -0
- package/json-schema/Entity.json +55 -0
- package/json-schema/EqualityOperator.json +14 -0
- package/json-schema/FieldOperators.json +108 -0
- package/json-schema/FieldSynonymConfig.json +39 -0
- package/json-schema/FilterCondition.json +28 -0
- package/json-schema/Invitation.json +69 -0
- package/json-schema/InvitationStatus.json +15 -0
- package/json-schema/LDAPConfig.json +22 -5
- package/json-schema/MagicLinkConfig.json +21 -0
- package/json-schema/Member.json +46 -0
- package/json-schema/ModelCapability.json +47 -0
- package/json-schema/ModelConfig.json +181 -0
- package/json-schema/ModelLimits.json +45 -0
- package/json-schema/ModelPricing.json +28 -0
- package/json-schema/ModelProvider.json +19 -0
- package/json-schema/ModelRegistry.json +427 -0
- package/json-schema/ModelRegistryEntry.json +239 -0
- package/json-schema/ModelSelectionCriteria.json +50 -0
- package/json-schema/NLQAnalytics.json +106 -0
- package/json-schema/NLQFieldMapping.json +40 -0
- package/json-schema/NLQModelConfig.json +78 -0
- package/json-schema/NLQParseResult.json +252 -0
- package/json-schema/NLQRequest.json +110 -0
- package/json-schema/NLQResponse.json +288 -0
- package/json-schema/NLQTrainingExample.json +120 -0
- package/json-schema/NormalizedFilter.json +348 -0
- package/json-schema/OAuthProvider.json +66 -0
- package/json-schema/OIDCConfig.json +18 -3
- package/json-schema/Organization.json +52 -0
- package/json-schema/PasskeyConfig.json +54 -0
- package/json-schema/PromptTemplate.json +163 -0
- package/json-schema/PromptVariable.json +56 -0
- package/json-schema/QueryContext.json +72 -0
- package/json-schema/QueryFilter.json +34 -0
- package/json-schema/QueryIntent.json +21 -0
- package/json-schema/QueryTemplate.json +81 -0
- package/json-schema/RAGPipelineConfig.json +552 -0
- package/json-schema/RAGPipelineStatus.json +66 -0
- package/json-schema/RAGQueryRequest.json +64 -0
- package/json-schema/RAGQueryResponse.json +108 -0
- package/json-schema/RangeOperator.json +41 -0
- package/json-schema/RateLimitConfig.json +36 -0
- package/json-schema/Report.json +20 -26
- package/json-schema/RerankingConfig.json +34 -0
- package/json-schema/RetrievalStrategy.json +121 -0
- package/json-schema/SAMLConfig.json +17 -3
- package/json-schema/Session.json +63 -0
- package/json-schema/SessionConfig.json +56 -0
- package/json-schema/SetOperator.json +18 -0
- package/json-schema/SpecialOperator.json +18 -0
- package/json-schema/StandardAuthProvider.json +857 -0
- package/json-schema/StringOperator.json +21 -0
- package/json-schema/Timeframe.json +68 -0
- package/json-schema/TwoFactorConfig.json +40 -0
- package/json-schema/User.json +51 -0
- package/json-schema/UserFieldMapping.json +47 -0
- package/json-schema/VectorStoreConfig.json +82 -0
- package/json-schema/VectorStoreProvider.json +21 -0
- package/json-schema/VerificationToken.json +36 -0
- package/package.json +27 -1
- package/json-schema/AuthProtocol.json +0 -17
- package/json-schema/AuthProvider.json +0 -171
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RAGQueryResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RAGQueryResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"query": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"results": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"content": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"score": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"metadata": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"source": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Document source (file path, URL, etc.)"
|
|
27
|
+
},
|
|
28
|
+
"sourceType": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": [
|
|
31
|
+
"file",
|
|
32
|
+
"url",
|
|
33
|
+
"api",
|
|
34
|
+
"database",
|
|
35
|
+
"custom"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"title": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"author": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"createdAt": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "ISO timestamp"
|
|
47
|
+
},
|
|
48
|
+
"updatedAt": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "ISO timestamp"
|
|
51
|
+
},
|
|
52
|
+
"tags": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"category": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"language": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Document language (ISO 639-1 code)"
|
|
64
|
+
},
|
|
65
|
+
"custom": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": {},
|
|
68
|
+
"description": "Custom metadata fields"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"source"
|
|
73
|
+
],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
},
|
|
76
|
+
"chunkId": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"content",
|
|
82
|
+
"score"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"context": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "Assembled context for LLM"
|
|
90
|
+
},
|
|
91
|
+
"tokensUsed": {
|
|
92
|
+
"type": "integer"
|
|
93
|
+
},
|
|
94
|
+
"retrievalTime": {
|
|
95
|
+
"type": "number",
|
|
96
|
+
"description": "Retrieval time in milliseconds"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"query",
|
|
101
|
+
"results",
|
|
102
|
+
"context"
|
|
103
|
+
],
|
|
104
|
+
"additionalProperties": false
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
108
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RangeOperator",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RangeOperator": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$between": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"minItems": 2,
|
|
10
|
+
"maxItems": 2,
|
|
11
|
+
"items": [
|
|
12
|
+
{
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"type": "number"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "date-time"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"type": "number"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
41
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RateLimitConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RateLimitConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": true
|
|
10
|
+
},
|
|
11
|
+
"maxAttempts": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"default": 5,
|
|
14
|
+
"description": "Maximum login attempts"
|
|
15
|
+
},
|
|
16
|
+
"windowMs": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"default": 900000,
|
|
19
|
+
"description": "Time window in milliseconds (default 15 min)"
|
|
20
|
+
},
|
|
21
|
+
"blockDuration": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"default": 900000,
|
|
24
|
+
"description": "Block duration after max attempts in ms"
|
|
25
|
+
},
|
|
26
|
+
"skipSuccessfulRequests": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false,
|
|
29
|
+
"description": "Only count failed requests"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
36
|
+
}
|
package/json-schema/Report.json
CHANGED
|
@@ -137,33 +137,27 @@
|
|
|
137
137
|
"description": "Column groupings (Matrix only)"
|
|
138
138
|
},
|
|
139
139
|
"filter": {
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"type": "array",
|
|
145
|
-
"items": {
|
|
146
|
-
"type": "object",
|
|
147
|
-
"properties": {
|
|
148
|
-
"id": {
|
|
149
|
-
"type": "number"
|
|
150
|
-
},
|
|
151
|
-
"field": {
|
|
152
|
-
"type": "string"
|
|
153
|
-
},
|
|
154
|
-
"operator": {
|
|
155
|
-
"type": "string"
|
|
156
|
-
},
|
|
157
|
-
"value": {}
|
|
140
|
+
"allOf": [
|
|
141
|
+
{
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": {}
|
|
158
144
|
},
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
145
|
+
{
|
|
146
|
+
"type": "object",
|
|
147
|
+
"properties": {
|
|
148
|
+
"$and": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"items": {}
|
|
151
|
+
},
|
|
152
|
+
"$or": {
|
|
153
|
+
"type": "array",
|
|
154
|
+
"items": {}
|
|
155
|
+
},
|
|
156
|
+
"$not": {}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"description": "Filter criteria"
|
|
167
161
|
},
|
|
168
162
|
"chart": {
|
|
169
163
|
"type": "object",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RerankingConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RerankingConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false
|
|
10
|
+
},
|
|
11
|
+
"model": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Reranking model name"
|
|
14
|
+
},
|
|
15
|
+
"provider": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"cohere",
|
|
19
|
+
"huggingface",
|
|
20
|
+
"custom"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"topK": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"exclusiveMinimum": 0,
|
|
26
|
+
"default": 3,
|
|
27
|
+
"description": "Final number of results after reranking"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
34
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RetrievalStrategy",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RetrievalStrategy": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "similarity"
|
|
12
|
+
},
|
|
13
|
+
"topK": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"exclusiveMinimum": 0,
|
|
16
|
+
"default": 5,
|
|
17
|
+
"description": "Number of results to retrieve"
|
|
18
|
+
},
|
|
19
|
+
"scoreThreshold": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"minimum": 0,
|
|
22
|
+
"maximum": 1,
|
|
23
|
+
"description": "Minimum similarity score"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"type"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"type": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"const": "mmr"
|
|
37
|
+
},
|
|
38
|
+
"topK": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"exclusiveMinimum": 0,
|
|
41
|
+
"default": 5
|
|
42
|
+
},
|
|
43
|
+
"fetchK": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"exclusiveMinimum": 0,
|
|
46
|
+
"default": 20,
|
|
47
|
+
"description": "Initial fetch size"
|
|
48
|
+
},
|
|
49
|
+
"lambda": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"minimum": 0,
|
|
52
|
+
"maximum": 1,
|
|
53
|
+
"default": 0.5,
|
|
54
|
+
"description": "Diversity vs relevance (0=diverse, 1=relevant)"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"type"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"type": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"const": "hybrid"
|
|
68
|
+
},
|
|
69
|
+
"topK": {
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"exclusiveMinimum": 0,
|
|
72
|
+
"default": 5
|
|
73
|
+
},
|
|
74
|
+
"vectorWeight": {
|
|
75
|
+
"type": "number",
|
|
76
|
+
"minimum": 0,
|
|
77
|
+
"maximum": 1,
|
|
78
|
+
"default": 0.7,
|
|
79
|
+
"description": "Weight for vector search"
|
|
80
|
+
},
|
|
81
|
+
"keywordWeight": {
|
|
82
|
+
"type": "number",
|
|
83
|
+
"minimum": 0,
|
|
84
|
+
"maximum": 1,
|
|
85
|
+
"default": 0.3,
|
|
86
|
+
"description": "Weight for keyword search"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"type"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"type": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"const": "parent_document"
|
|
100
|
+
},
|
|
101
|
+
"topK": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"exclusiveMinimum": 0,
|
|
104
|
+
"default": 5
|
|
105
|
+
},
|
|
106
|
+
"retrieveParent": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": true,
|
|
109
|
+
"description": "Retrieve full parent document"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"type"
|
|
114
|
+
],
|
|
115
|
+
"additionalProperties": false
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
121
|
+
}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"SAMLConfig": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false
|
|
10
|
+
},
|
|
7
11
|
"entryPoint": {
|
|
8
12
|
"type": "string",
|
|
9
13
|
"format": "uri",
|
|
@@ -11,7 +15,7 @@
|
|
|
11
15
|
},
|
|
12
16
|
"cert": {
|
|
13
17
|
"type": "string",
|
|
14
|
-
"description": "IdP Public Certificate"
|
|
18
|
+
"description": "IdP Public Certificate (PEM format)"
|
|
15
19
|
},
|
|
16
20
|
"issuer": {
|
|
17
21
|
"type": "string",
|
|
@@ -23,13 +27,23 @@
|
|
|
23
27
|
"sha256",
|
|
24
28
|
"sha512"
|
|
25
29
|
],
|
|
26
|
-
"default": "sha256"
|
|
30
|
+
"default": "sha256",
|
|
31
|
+
"description": "Signature algorithm"
|
|
27
32
|
},
|
|
28
33
|
"attributeMapping": {
|
|
29
34
|
"type": "object",
|
|
30
35
|
"additionalProperties": {
|
|
31
36
|
"type": "string"
|
|
32
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"description": "Map SAML attributes to User fields"
|
|
39
|
+
},
|
|
40
|
+
"displayName": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Display name for the provider button"
|
|
43
|
+
},
|
|
44
|
+
"icon": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Icon URL or identifier"
|
|
33
47
|
}
|
|
34
48
|
},
|
|
35
49
|
"required": [
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Session",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Session": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique session identifier"
|
|
10
|
+
},
|
|
11
|
+
"sessionToken": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Session token"
|
|
14
|
+
},
|
|
15
|
+
"userId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Associated user ID"
|
|
18
|
+
},
|
|
19
|
+
"activeOrganizationId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Active organization ID for context switching"
|
|
22
|
+
},
|
|
23
|
+
"expires": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time",
|
|
26
|
+
"description": "Session expiry timestamp"
|
|
27
|
+
},
|
|
28
|
+
"createdAt": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time",
|
|
31
|
+
"description": "Session creation timestamp"
|
|
32
|
+
},
|
|
33
|
+
"updatedAt": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "date-time",
|
|
36
|
+
"description": "Last update timestamp"
|
|
37
|
+
},
|
|
38
|
+
"ipAddress": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "IP address"
|
|
41
|
+
},
|
|
42
|
+
"userAgent": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "User agent string"
|
|
45
|
+
},
|
|
46
|
+
"fingerprint": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Device fingerprint"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"id",
|
|
53
|
+
"sessionToken",
|
|
54
|
+
"userId",
|
|
55
|
+
"expires",
|
|
56
|
+
"createdAt",
|
|
57
|
+
"updatedAt"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
63
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SessionConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SessionConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"expiresIn": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"default": 604800,
|
|
10
|
+
"description": "Session expiry in seconds (default 7 days)"
|
|
11
|
+
},
|
|
12
|
+
"updateAge": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"default": 86400,
|
|
15
|
+
"description": "Session update interval in seconds (default 1 day)"
|
|
16
|
+
},
|
|
17
|
+
"cookieName": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "session_token",
|
|
20
|
+
"description": "Session cookie name"
|
|
21
|
+
},
|
|
22
|
+
"cookieSecure": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": true,
|
|
25
|
+
"description": "Use secure cookies (HTTPS only)"
|
|
26
|
+
},
|
|
27
|
+
"cookieSameSite": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"strict",
|
|
31
|
+
"lax",
|
|
32
|
+
"none"
|
|
33
|
+
],
|
|
34
|
+
"default": "lax",
|
|
35
|
+
"description": "SameSite cookie attribute"
|
|
36
|
+
},
|
|
37
|
+
"cookieDomain": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Cookie domain"
|
|
40
|
+
},
|
|
41
|
+
"cookiePath": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"default": "/",
|
|
44
|
+
"description": "Cookie path"
|
|
45
|
+
},
|
|
46
|
+
"cookieHttpOnly": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": true,
|
|
49
|
+
"description": "HttpOnly cookie attribute"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SetOperator",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SetOperator": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$in": {
|
|
8
|
+
"type": "array"
|
|
9
|
+
},
|
|
10
|
+
"$nin": {
|
|
11
|
+
"type": "array"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SpecialOperator",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SpecialOperator": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$null": {
|
|
8
|
+
"type": "boolean"
|
|
9
|
+
},
|
|
10
|
+
"$exist": {
|
|
11
|
+
"type": "boolean"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
}
|