@objectstack/spec 0.1.1 → 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.
Files changed (174) hide show
  1. package/README.md +73 -1
  2. package/dist/api/contract.zod.d.ts +1733 -0
  3. package/dist/api/contract.zod.d.ts.map +1 -0
  4. package/dist/api/contract.zod.js +138 -0
  5. package/dist/data/dataset.zod.d.ts +2 -2
  6. package/dist/data/field.zod.d.ts +1648 -10
  7. package/dist/data/field.zod.d.ts.map +1 -1
  8. package/dist/data/field.zod.js +149 -8
  9. package/dist/data/filter.zod.d.ts +295 -0
  10. package/dist/data/filter.zod.d.ts.map +1 -0
  11. package/dist/data/filter.zod.js +226 -0
  12. package/dist/data/mapping.zod.d.ts +215 -2
  13. package/dist/data/mapping.zod.d.ts.map +1 -1
  14. package/dist/data/object.zod.d.ts +505 -25
  15. package/dist/data/object.zod.d.ts.map +1 -1
  16. package/dist/data/object.zod.js +32 -5
  17. package/dist/data/query.zod.d.ts +349 -0
  18. package/dist/data/query.zod.d.ts.map +1 -1
  19. package/dist/data/query.zod.js +77 -1
  20. package/dist/data/trigger.zod.d.ts +354 -0
  21. package/dist/data/trigger.zod.d.ts.map +1 -0
  22. package/dist/data/trigger.zod.js +195 -0
  23. package/dist/data/validation.zod.d.ts +83 -43
  24. package/dist/data/validation.zod.d.ts.map +1 -1
  25. package/dist/data/validation.zod.js +51 -5
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +11 -0
  29. package/dist/system/api.zod.d.ts +130 -4
  30. package/dist/system/api.zod.d.ts.map +1 -1
  31. package/dist/system/api.zod.js +4 -1
  32. package/dist/system/auth.zod.d.ts +2287 -0
  33. package/dist/system/auth.zod.d.ts.map +1 -0
  34. package/dist/system/auth.zod.js +365 -0
  35. package/dist/system/datasource.zod.d.ts +193 -30
  36. package/dist/system/datasource.zod.d.ts.map +1 -1
  37. package/dist/system/datasource.zod.js +58 -11
  38. package/dist/system/discovery.zod.d.ts +174 -0
  39. package/dist/system/discovery.zod.d.ts.map +1 -0
  40. package/dist/system/discovery.zod.js +53 -0
  41. package/dist/system/driver.zod.d.ts +1631 -0
  42. package/dist/system/driver.zod.d.ts.map +1 -0
  43. package/dist/system/driver.zod.js +337 -0
  44. package/dist/system/license.zod.d.ts +2 -2
  45. package/dist/system/manifest.zod.d.ts +323 -52
  46. package/dist/system/manifest.zod.d.ts.map +1 -1
  47. package/dist/system/manifest.zod.js +91 -17
  48. package/dist/system/plugin.zod.d.ts +3516 -0
  49. package/dist/system/plugin.zod.d.ts.map +1 -0
  50. package/dist/system/plugin.zod.js +226 -0
  51. package/dist/system/policy.zod.d.ts +10 -10
  52. package/dist/system/territory.zod.d.ts +1 -1
  53. package/dist/system/webhook.zod.d.ts +3 -3
  54. package/dist/ui/action.zod.d.ts +19 -12
  55. package/dist/ui/action.zod.d.ts.map +1 -1
  56. package/dist/ui/action.zod.js +7 -1
  57. package/dist/ui/app.zod.d.ts +109 -3
  58. package/dist/ui/app.zod.d.ts.map +1 -1
  59. package/dist/ui/app.zod.js +13 -2
  60. package/dist/ui/dashboard.zod.d.ts +19 -13
  61. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  62. package/dist/ui/dashboard.zod.js +10 -3
  63. package/dist/ui/page.zod.d.ts +6 -6
  64. package/dist/ui/report.zod.d.ts +13 -32
  65. package/dist/ui/report.zod.d.ts.map +1 -1
  66. package/dist/ui/report.zod.js +10 -9
  67. package/dist/ui/theme.zod.d.ts +1221 -0
  68. package/dist/ui/theme.zod.d.ts.map +1 -0
  69. package/dist/ui/theme.zod.js +202 -0
  70. package/dist/ui/widget.zod.d.ts +350 -0
  71. package/dist/ui/widget.zod.d.ts.map +1 -0
  72. package/dist/ui/widget.zod.js +66 -0
  73. package/json-schema/AccountLinkingConfig.json +27 -0
  74. package/json-schema/Action.json +8 -2
  75. package/json-schema/ActionParam.json +8 -2
  76. package/json-schema/Address.json +40 -0
  77. package/json-schema/AggregationFunction.json +19 -0
  78. package/json-schema/AggregationNode.json +42 -0
  79. package/json-schema/Animation.json +56 -0
  80. package/json-schema/ApiCapabilities.json +28 -0
  81. package/json-schema/ApiError.json +27 -0
  82. package/json-schema/ApiRoutes.json +41 -0
  83. package/json-schema/App.json +13 -2
  84. package/json-schema/AsyncValidation.json +70 -0
  85. package/json-schema/AuthConfig.json +606 -0
  86. package/json-schema/AuthPluginConfig.json +28 -0
  87. package/json-schema/AuthStrategy.json +17 -0
  88. package/json-schema/AuthenticationConfig.json +601 -0
  89. package/json-schema/AuthenticationProvider.json +617 -0
  90. package/json-schema/BaseResponse.json +63 -0
  91. package/json-schema/BorderRadius.json +44 -0
  92. package/json-schema/Breakpoints.json +36 -0
  93. package/json-schema/BulkRequest.json +29 -0
  94. package/json-schema/BulkResponse.json +108 -0
  95. package/json-schema/CSRFConfig.json +31 -0
  96. package/json-schema/ColorPalette.json +83 -0
  97. package/json-schema/ComparisonOperator.json +56 -0
  98. package/json-schema/ConditionalValidation.json +793 -0
  99. package/json-schema/CreateRequest.json +20 -0
  100. package/json-schema/CrossFieldValidation.json +56 -0
  101. package/json-schema/CustomValidator.json +57 -0
  102. package/json-schema/Dashboard.json +20 -0
  103. package/json-schema/DashboardWidget.json +20 -0
  104. package/json-schema/DatabaseAdapter.json +38 -0
  105. package/json-schema/Datasource.json +25 -23
  106. package/json-schema/DatasourceCapabilities.json +25 -5
  107. package/json-schema/DeleteResponse.json +68 -0
  108. package/json-schema/Discovery.json +114 -0
  109. package/json-schema/DriverCapabilities.json +69 -0
  110. package/json-schema/DriverDefinition.json +86 -0
  111. package/json-schema/DriverInterface.json +88 -0
  112. package/json-schema/DriverOptions.json +23 -0
  113. package/json-schema/DriverType.json +1 -18
  114. package/json-schema/EmailPasswordConfig.json +43 -0
  115. package/json-schema/EqualityOperator.json +14 -0
  116. package/json-schema/ExportRequest.json +786 -0
  117. package/json-schema/Field.json +75 -4
  118. package/json-schema/FieldOperators.json +108 -0
  119. package/json-schema/FieldType.json +8 -2
  120. package/json-schema/FieldWidgetProps.json +327 -0
  121. package/json-schema/FilterCondition.json +28 -0
  122. package/json-schema/I18nContext.json +12 -0
  123. package/json-schema/JoinNode.json +455 -0
  124. package/json-schema/JoinType.json +15 -0
  125. package/json-schema/ListRecordResponse.json +103 -0
  126. package/json-schema/LocationCoordinates.json +36 -0
  127. package/json-schema/Logger.json +25 -0
  128. package/json-schema/MagicLinkConfig.json +21 -0
  129. package/json-schema/Manifest.json +243 -18
  130. package/json-schema/Mapping.json +328 -0
  131. package/json-schema/ModificationResult.json +46 -0
  132. package/json-schema/NormalizedFilter.json +348 -0
  133. package/json-schema/OAuthProvider.json +66 -0
  134. package/json-schema/Object.json +103 -6
  135. package/json-schema/ObjectCapabilities.json +26 -0
  136. package/json-schema/ObjectQLClient.json +12 -0
  137. package/json-schema/PasskeyConfig.json +54 -0
  138. package/json-schema/Plugin.json +20 -0
  139. package/json-schema/PluginContext.json +91 -0
  140. package/json-schema/PluginLifecycle.json +11 -0
  141. package/json-schema/Query.json +328 -0
  142. package/json-schema/QueryFilter.json +34 -0
  143. package/json-schema/RangeOperator.json +41 -0
  144. package/json-schema/RateLimitConfig.json +36 -0
  145. package/json-schema/RecordData.json +11 -0
  146. package/json-schema/Report.json +20 -26
  147. package/json-schema/Router.json +12 -0
  148. package/json-schema/Scheduler.json +12 -0
  149. package/json-schema/ScopedStorage.json +12 -0
  150. package/json-schema/SessionConfig.json +56 -0
  151. package/json-schema/SetOperator.json +18 -0
  152. package/json-schema/Shadow.json +44 -0
  153. package/json-schema/SingleRecordResponse.json +69 -0
  154. package/json-schema/Spacing.json +64 -0
  155. package/json-schema/SpecialOperator.json +18 -0
  156. package/json-schema/StandardAuthProvider.json +622 -0
  157. package/json-schema/StringOperator.json +21 -0
  158. package/json-schema/SystemAPI.json +12 -0
  159. package/json-schema/Theme.json +543 -0
  160. package/json-schema/ThemeMode.json +14 -0
  161. package/json-schema/Trigger.json +73 -0
  162. package/json-schema/TriggerAction.json +14 -0
  163. package/json-schema/TriggerContext.json +61 -0
  164. package/json-schema/TriggerTiming.json +13 -0
  165. package/json-schema/TwoFactorConfig.json +40 -0
  166. package/json-schema/Typography.json +142 -0
  167. package/json-schema/UpdateRequest.json +20 -0
  168. package/json-schema/UserFieldMapping.json +47 -0
  169. package/json-schema/ValidationRule.json +583 -0
  170. package/json-schema/WindowFunction.json +24 -0
  171. package/json-schema/WindowFunctionNode.json +104 -0
  172. package/json-schema/WindowSpec.json +65 -0
  173. package/json-schema/ZIndex.json +44 -0
  174. package/package.json +8 -3
@@ -0,0 +1,20 @@
1
+ {
2
+ "$ref": "#/definitions/Plugin",
3
+ "definitions": {
4
+ "Plugin": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "description": "Plugin identifier"
10
+ },
11
+ "version": {
12
+ "type": "string",
13
+ "description": "Plugin version"
14
+ }
15
+ },
16
+ "additionalProperties": false
17
+ }
18
+ },
19
+ "$schema": "http://json-schema.org/draft-07/schema#"
20
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "$ref": "#/definitions/PluginContext",
3
+ "definitions": {
4
+ "PluginContext": {
5
+ "type": "object",
6
+ "properties": {
7
+ "ql": {
8
+ "type": "object",
9
+ "properties": {},
10
+ "additionalProperties": false,
11
+ "description": "ObjectQL Data Access Client"
12
+ },
13
+ "os": {
14
+ "type": "object",
15
+ "properties": {},
16
+ "additionalProperties": false,
17
+ "description": "Access to System Core"
18
+ },
19
+ "logger": {
20
+ "type": "object",
21
+ "properties": {
22
+ "debug": {
23
+ "description": "(message: string, ...meta: any[]) => void"
24
+ },
25
+ "info": {
26
+ "description": "(message: string, ...meta: any[]) => void"
27
+ },
28
+ "warn": {
29
+ "description": "(message: string, ...meta: any[]) => void"
30
+ },
31
+ "error": {
32
+ "description": "(message: string, ...meta: any[]) => void"
33
+ }
34
+ },
35
+ "additionalProperties": false,
36
+ "description": "Structured Logger"
37
+ },
38
+ "storage": {
39
+ "type": "object",
40
+ "properties": {},
41
+ "additionalProperties": false,
42
+ "description": "Plugin Scoped Data Storage (KV)"
43
+ },
44
+ "i18n": {
45
+ "type": "object",
46
+ "properties": {},
47
+ "additionalProperties": false,
48
+ "description": "Internationalization Helper"
49
+ },
50
+ "metadata": {
51
+ "description": "Metadata registry"
52
+ },
53
+ "events": {
54
+ "description": "Event bus"
55
+ },
56
+ "app": {
57
+ "type": "object",
58
+ "properties": {
59
+ "router": {
60
+ "type": "object",
61
+ "properties": {},
62
+ "additionalProperties": false,
63
+ "description": "HTTP Router Interface"
64
+ },
65
+ "scheduler": {
66
+ "type": "object",
67
+ "properties": {},
68
+ "additionalProperties": false,
69
+ "description": "Job Scheduler Interface"
70
+ }
71
+ },
72
+ "required": [
73
+ "router"
74
+ ],
75
+ "additionalProperties": false,
76
+ "description": "App Runtime Capabilities"
77
+ }
78
+ },
79
+ "required": [
80
+ "ql",
81
+ "os",
82
+ "logger",
83
+ "storage",
84
+ "i18n",
85
+ "app"
86
+ ],
87
+ "additionalProperties": false
88
+ }
89
+ },
90
+ "$schema": "http://json-schema.org/draft-07/schema#"
91
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$ref": "#/definitions/PluginLifecycle",
3
+ "definitions": {
4
+ "PluginLifecycle": {
5
+ "type": "object",
6
+ "properties": {},
7
+ "additionalProperties": false
8
+ }
9
+ },
10
+ "$schema": "http://json-schema.org/draft-07/schema#"
11
+ }
@@ -38,6 +38,148 @@
38
38
  },
39
39
  "description": "Fields to retrieve"
40
40
  },
41
+ "aggregations": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "function": {
47
+ "type": "string",
48
+ "enum": [
49
+ "count",
50
+ "sum",
51
+ "avg",
52
+ "min",
53
+ "max",
54
+ "count_distinct",
55
+ "array_agg",
56
+ "string_agg"
57
+ ],
58
+ "description": "Aggregation function"
59
+ },
60
+ "field": {
61
+ "type": "string",
62
+ "description": "Field to aggregate (optional for COUNT(*))"
63
+ },
64
+ "alias": {
65
+ "type": "string",
66
+ "description": "Result column alias"
67
+ },
68
+ "distinct": {
69
+ "type": "boolean",
70
+ "description": "Apply DISTINCT before aggregation"
71
+ }
72
+ },
73
+ "required": [
74
+ "function",
75
+ "alias"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "description": "Aggregation functions (GROUP BY)"
80
+ },
81
+ "windowFunctions": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "object",
85
+ "properties": {
86
+ "function": {
87
+ "type": "string",
88
+ "enum": [
89
+ "row_number",
90
+ "rank",
91
+ "dense_rank",
92
+ "percent_rank",
93
+ "lag",
94
+ "lead",
95
+ "first_value",
96
+ "last_value",
97
+ "sum",
98
+ "avg",
99
+ "count",
100
+ "min",
101
+ "max"
102
+ ],
103
+ "description": "Window function name"
104
+ },
105
+ "field": {
106
+ "type": "string",
107
+ "description": "Field to operate on (for aggregate window functions)"
108
+ },
109
+ "alias": {
110
+ "type": "string",
111
+ "description": "Result column alias"
112
+ },
113
+ "over": {
114
+ "type": "object",
115
+ "properties": {
116
+ "partitionBy": {
117
+ "type": "array",
118
+ "items": {
119
+ "type": "string"
120
+ },
121
+ "description": "PARTITION BY fields"
122
+ },
123
+ "orderBy": {
124
+ "type": "array",
125
+ "items": {
126
+ "type": "object",
127
+ "properties": {
128
+ "field": {
129
+ "type": "string"
130
+ },
131
+ "order": {
132
+ "type": "string",
133
+ "enum": [
134
+ "asc",
135
+ "desc"
136
+ ],
137
+ "default": "asc"
138
+ }
139
+ },
140
+ "required": [
141
+ "field"
142
+ ],
143
+ "additionalProperties": false
144
+ },
145
+ "description": "ORDER BY specification"
146
+ },
147
+ "frame": {
148
+ "type": "object",
149
+ "properties": {
150
+ "type": {
151
+ "type": "string",
152
+ "enum": [
153
+ "rows",
154
+ "range"
155
+ ]
156
+ },
157
+ "start": {
158
+ "type": "string",
159
+ "description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
160
+ },
161
+ "end": {
162
+ "type": "string",
163
+ "description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
164
+ }
165
+ },
166
+ "additionalProperties": false,
167
+ "description": "Window frame specification"
168
+ }
169
+ },
170
+ "additionalProperties": false,
171
+ "description": "Window specification (OVER clause)"
172
+ }
173
+ },
174
+ "required": [
175
+ "function",
176
+ "alias",
177
+ "over"
178
+ ],
179
+ "additionalProperties": false
180
+ },
181
+ "description": "Window functions with OVER clause"
182
+ },
41
183
  "filters": {
42
184
  "anyOf": [
43
185
  {
@@ -85,6 +227,188 @@
85
227
  ],
86
228
  "description": "Filtering criteria"
87
229
  },
230
+ "joins": {
231
+ "type": "array",
232
+ "items": {
233
+ "type": "object",
234
+ "properties": {
235
+ "type": {
236
+ "type": "string",
237
+ "enum": [
238
+ "inner",
239
+ "left",
240
+ "right",
241
+ "full"
242
+ ],
243
+ "description": "Join type"
244
+ },
245
+ "object": {
246
+ "type": "string",
247
+ "description": "Object/table to join"
248
+ },
249
+ "alias": {
250
+ "type": "string",
251
+ "description": "Table alias"
252
+ },
253
+ "on": {
254
+ "anyOf": [
255
+ {
256
+ "type": "array",
257
+ "minItems": 3,
258
+ "maxItems": 3,
259
+ "items": [
260
+ {
261
+ "type": "string"
262
+ },
263
+ {
264
+ "type": "string",
265
+ "enum": [
266
+ "=",
267
+ "!=",
268
+ "<>",
269
+ ">",
270
+ ">=",
271
+ "<",
272
+ "<=",
273
+ "startswith",
274
+ "contains",
275
+ "notcontains",
276
+ "between",
277
+ "in",
278
+ "notin",
279
+ "is_null",
280
+ "is_not_null"
281
+ ]
282
+ },
283
+ {}
284
+ ]
285
+ },
286
+ {
287
+ "type": "array",
288
+ "items": {
289
+ "anyOf": [
290
+ {
291
+ "type": "string"
292
+ },
293
+ {
294
+ "anyOf": [
295
+ {
296
+ "type": "array",
297
+ "minItems": 3,
298
+ "maxItems": 3,
299
+ "items": [
300
+ {
301
+ "type": "string"
302
+ },
303
+ {
304
+ "type": "string",
305
+ "enum": [
306
+ "=",
307
+ "!=",
308
+ "<>",
309
+ ">",
310
+ ">=",
311
+ "<",
312
+ "<=",
313
+ "startswith",
314
+ "contains",
315
+ "notcontains",
316
+ "between",
317
+ "in",
318
+ "notin",
319
+ "is_null",
320
+ "is_not_null"
321
+ ]
322
+ },
323
+ {}
324
+ ]
325
+ },
326
+ {
327
+ "type": "array",
328
+ "items": {
329
+ "anyOf": [
330
+ {
331
+ "type": "string"
332
+ },
333
+ {}
334
+ ]
335
+ }
336
+ }
337
+ ]
338
+ }
339
+ ]
340
+ }
341
+ }
342
+ ],
343
+ "description": "Join condition"
344
+ },
345
+ "subquery": {
346
+ "description": "Subquery instead of object"
347
+ }
348
+ },
349
+ "required": [
350
+ "type",
351
+ "object",
352
+ "on"
353
+ ],
354
+ "additionalProperties": false
355
+ },
356
+ "description": "Table joins"
357
+ },
358
+ "groupBy": {
359
+ "type": "array",
360
+ "items": {
361
+ "type": "string"
362
+ },
363
+ "description": "GROUP BY fields"
364
+ },
365
+ "having": {
366
+ "anyOf": [
367
+ {
368
+ "type": "array",
369
+ "minItems": 3,
370
+ "maxItems": 3,
371
+ "items": [
372
+ {
373
+ "type": "string"
374
+ },
375
+ {
376
+ "type": "string",
377
+ "enum": [
378
+ "=",
379
+ "!=",
380
+ "<>",
381
+ ">",
382
+ ">=",
383
+ "<",
384
+ "<=",
385
+ "startswith",
386
+ "contains",
387
+ "notcontains",
388
+ "between",
389
+ "in",
390
+ "notin",
391
+ "is_null",
392
+ "is_not_null"
393
+ ]
394
+ },
395
+ {}
396
+ ]
397
+ },
398
+ {
399
+ "type": "array",
400
+ "items": {
401
+ "anyOf": [
402
+ {
403
+ "type": "string"
404
+ },
405
+ {}
406
+ ]
407
+ }
408
+ }
409
+ ],
410
+ "description": "HAVING clause for aggregation filtering"
411
+ },
88
412
  "sort": {
89
413
  "type": "array",
90
414
  "items": {
@@ -116,6 +440,10 @@
116
440
  "skip": {
117
441
  "type": "number",
118
442
  "description": "Offset results"
443
+ },
444
+ "distinct": {
445
+ "type": "boolean",
446
+ "description": "SELECT DISTINCT flag"
119
447
  }
120
448
  },
121
449
  "required": [
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$ref": "#/definitions/RecordData",
3
+ "definitions": {
4
+ "RecordData": {
5
+ "type": "object",
6
+ "additionalProperties": {},
7
+ "description": "Key-value map of record data"
8
+ }
9
+ },
10
+ "$schema": "http://json-schema.org/draft-07/schema#"
11
+ }
@@ -137,33 +137,27 @@
137
137
  "description": "Column groupings (Matrix only)"
138
138
  },
139
139
  "filter": {
140
- "type": "string",
141
- "description": "Filter logic (e.g. \"1 AND (2 OR 3)\")"
142
- },
143
- "filterItems": {
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
- "required": [
160
- "id",
161
- "field",
162
- "operator"
163
- ],
164
- "additionalProperties": false
165
- },
166
- "description": "Filter criteria lines"
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,12 @@
1
+ {
2
+ "$ref": "#/definitions/Router",
3
+ "definitions": {
4
+ "Router": {
5
+ "type": "object",
6
+ "properties": {},
7
+ "additionalProperties": false,
8
+ "description": "HTTP Router Interface"
9
+ }
10
+ },
11
+ "$schema": "http://json-schema.org/draft-07/schema#"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$ref": "#/definitions/Scheduler",
3
+ "definitions": {
4
+ "Scheduler": {
5
+ "type": "object",
6
+ "properties": {},
7
+ "additionalProperties": false,
8
+ "description": "Job Scheduler Interface"
9
+ }
10
+ },
11
+ "$schema": "http://json-schema.org/draft-07/schema#"
12
+ }