@objectstack/spec 0.1.2 → 0.2.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/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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/system/auth.zod.d.ts +2287 -0
- package/dist/system/auth.zod.d.ts.map +1 -0
- package/dist/system/auth.zod.js +365 -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/policy.zod.d.ts +10 -10
- 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/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/json-schema/AccountLinkingConfig.json +27 -0
- package/json-schema/AuthConfig.json +606 -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/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/Datasource.json +25 -5
- package/json-schema/DatasourceCapabilities.json +25 -5
- 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/EqualityOperator.json +14 -0
- package/json-schema/FieldOperators.json +108 -0
- package/json-schema/FilterCondition.json +28 -0
- package/json-schema/MagicLinkConfig.json +21 -0
- package/json-schema/NormalizedFilter.json +348 -0
- package/json-schema/OAuthProvider.json +66 -0
- package/json-schema/PasskeyConfig.json +54 -0
- package/json-schema/QueryFilter.json +34 -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/SessionConfig.json +56 -0
- package/json-schema/SetOperator.json +18 -0
- package/json-schema/SpecialOperator.json +18 -0
- package/json-schema/StandardAuthProvider.json +622 -0
- package/json-schema/StringOperator.json +21 -0
- package/json-schema/TwoFactorConfig.json +40 -0
- package/json-schema/UserFieldMapping.json +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/NormalizedFilter",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"NormalizedFilter": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$and": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"anyOf": [
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"$eq": {},
|
|
17
|
+
"$ne": {},
|
|
18
|
+
"$gt": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "number"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"$gte": {
|
|
30
|
+
"anyOf": [
|
|
31
|
+
{
|
|
32
|
+
"type": "number"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": "date-time"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"$lt": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"$lte": {
|
|
52
|
+
"anyOf": [
|
|
53
|
+
{
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "date-time"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"$in": {
|
|
63
|
+
"type": "array"
|
|
64
|
+
},
|
|
65
|
+
"$nin": {
|
|
66
|
+
"type": "array"
|
|
67
|
+
},
|
|
68
|
+
"$between": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"minItems": 2,
|
|
71
|
+
"maxItems": 2,
|
|
72
|
+
"items": [
|
|
73
|
+
{
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "string",
|
|
80
|
+
"format": "date-time"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "number"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "string",
|
|
91
|
+
"format": "date-time"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"$contains": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"$startsWith": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"$endsWith": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"$null": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"$exist": {
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"$or": {
|
|
121
|
+
"type": "array",
|
|
122
|
+
"items": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "object",
|
|
126
|
+
"additionalProperties": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"$eq": {},
|
|
130
|
+
"$ne": {},
|
|
131
|
+
"$gt": {
|
|
132
|
+
"anyOf": [
|
|
133
|
+
{
|
|
134
|
+
"type": "number"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "string",
|
|
138
|
+
"format": "date-time"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"$gte": {
|
|
143
|
+
"anyOf": [
|
|
144
|
+
{
|
|
145
|
+
"type": "number"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "string",
|
|
149
|
+
"format": "date-time"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"$lt": {
|
|
154
|
+
"anyOf": [
|
|
155
|
+
{
|
|
156
|
+
"type": "number"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "string",
|
|
160
|
+
"format": "date-time"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"$lte": {
|
|
165
|
+
"anyOf": [
|
|
166
|
+
{
|
|
167
|
+
"type": "number"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "string",
|
|
171
|
+
"format": "date-time"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"$in": {
|
|
176
|
+
"type": "array"
|
|
177
|
+
},
|
|
178
|
+
"$nin": {
|
|
179
|
+
"type": "array"
|
|
180
|
+
},
|
|
181
|
+
"$between": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"minItems": 2,
|
|
184
|
+
"maxItems": 2,
|
|
185
|
+
"items": [
|
|
186
|
+
{
|
|
187
|
+
"anyOf": [
|
|
188
|
+
{
|
|
189
|
+
"type": "number"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "string",
|
|
193
|
+
"format": "date-time"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"anyOf": [
|
|
199
|
+
{
|
|
200
|
+
"type": "number"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "string",
|
|
204
|
+
"format": "date-time"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"$contains": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"$startsWith": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
},
|
|
216
|
+
"$endsWith": {
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
"$null": {
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
"$exist": {
|
|
223
|
+
"type": "boolean"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"additionalProperties": false
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"$not": {
|
|
234
|
+
"anyOf": [
|
|
235
|
+
{
|
|
236
|
+
"type": "object",
|
|
237
|
+
"additionalProperties": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"$eq": {},
|
|
241
|
+
"$ne": {},
|
|
242
|
+
"$gt": {
|
|
243
|
+
"anyOf": [
|
|
244
|
+
{
|
|
245
|
+
"type": "number"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "string",
|
|
249
|
+
"format": "date-time"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
"$gte": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"type": "number"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "string",
|
|
260
|
+
"format": "date-time"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"$lt": {
|
|
265
|
+
"anyOf": [
|
|
266
|
+
{
|
|
267
|
+
"type": "number"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "string",
|
|
271
|
+
"format": "date-time"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"$lte": {
|
|
276
|
+
"anyOf": [
|
|
277
|
+
{
|
|
278
|
+
"type": "number"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"type": "string",
|
|
282
|
+
"format": "date-time"
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"$in": {
|
|
287
|
+
"type": "array"
|
|
288
|
+
},
|
|
289
|
+
"$nin": {
|
|
290
|
+
"type": "array"
|
|
291
|
+
},
|
|
292
|
+
"$between": {
|
|
293
|
+
"type": "array",
|
|
294
|
+
"minItems": 2,
|
|
295
|
+
"maxItems": 2,
|
|
296
|
+
"items": [
|
|
297
|
+
{
|
|
298
|
+
"anyOf": [
|
|
299
|
+
{
|
|
300
|
+
"type": "number"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "string",
|
|
304
|
+
"format": "date-time"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"anyOf": [
|
|
310
|
+
{
|
|
311
|
+
"type": "number"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "string",
|
|
315
|
+
"format": "date-time"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
"$contains": {
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
"$startsWith": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"$endsWith": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
"$null": {
|
|
331
|
+
"type": "boolean"
|
|
332
|
+
},
|
|
333
|
+
"$exist": {
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"additionalProperties": false
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{}
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"additionalProperties": false
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
348
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/OAuthProvider",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"OAuthProvider": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"provider": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"google",
|
|
11
|
+
"github",
|
|
12
|
+
"facebook",
|
|
13
|
+
"twitter",
|
|
14
|
+
"linkedin",
|
|
15
|
+
"microsoft",
|
|
16
|
+
"apple",
|
|
17
|
+
"discord",
|
|
18
|
+
"gitlab",
|
|
19
|
+
"custom"
|
|
20
|
+
],
|
|
21
|
+
"description": "OAuth provider type"
|
|
22
|
+
},
|
|
23
|
+
"clientId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "OAuth client ID"
|
|
26
|
+
},
|
|
27
|
+
"clientSecret": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "OAuth client secret (typically from ENV)"
|
|
30
|
+
},
|
|
31
|
+
"scopes": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"description": "Requested OAuth scopes"
|
|
37
|
+
},
|
|
38
|
+
"redirectUri": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "uri",
|
|
41
|
+
"description": "OAuth callback URL"
|
|
42
|
+
},
|
|
43
|
+
"enabled": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": true,
|
|
46
|
+
"description": "Whether this provider is enabled"
|
|
47
|
+
},
|
|
48
|
+
"displayName": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Display name for the provider button"
|
|
51
|
+
},
|
|
52
|
+
"icon": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Icon URL or identifier"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"provider",
|
|
59
|
+
"clientId",
|
|
60
|
+
"clientSecret"
|
|
61
|
+
],
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
66
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/PasskeyConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"PasskeyConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false
|
|
10
|
+
},
|
|
11
|
+
"rpName": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Relying Party name"
|
|
14
|
+
},
|
|
15
|
+
"rpId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Relying Party ID (defaults to domain)"
|
|
18
|
+
},
|
|
19
|
+
"allowedOrigins": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "uri"
|
|
24
|
+
},
|
|
25
|
+
"description": "Allowed origins for WebAuthn"
|
|
26
|
+
},
|
|
27
|
+
"userVerification": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"required",
|
|
31
|
+
"preferred",
|
|
32
|
+
"discouraged"
|
|
33
|
+
],
|
|
34
|
+
"default": "preferred"
|
|
35
|
+
},
|
|
36
|
+
"attestation": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"none",
|
|
40
|
+
"indirect",
|
|
41
|
+
"direct",
|
|
42
|
+
"enterprise"
|
|
43
|
+
],
|
|
44
|
+
"default": "none"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"rpName"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
54
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/QueryFilter",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"QueryFilter": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"where": {
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": {}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"$and": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {}
|
|
19
|
+
},
|
|
20
|
+
"$or": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {}
|
|
23
|
+
},
|
|
24
|
+
"$not": {}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
34
|
+
}
|
|
@@ -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,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
|
+
}
|