@objectstack/spec 2.0.3 → 2.0.5

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 (72) hide show
  1. package/dist/api/index.d.mts +1 -1
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +794 -686
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/index.mjs +789 -686
  6. package/dist/api/index.mjs.map +1 -1
  7. package/dist/contracts/index.d.mts +2 -2
  8. package/dist/contracts/index.d.ts +2 -2
  9. package/dist/data/index.d.mts +2 -2
  10. package/dist/data/index.d.ts +2 -2
  11. package/dist/data/index.js +482 -453
  12. package/dist/data/index.js.map +1 -1
  13. package/dist/data/index.mjs +481 -453
  14. package/dist/data/index.mjs.map +1 -1
  15. package/dist/{driver.zod-DddW_4lJ.d.mts → driver.zod-DnOPgUGi.d.mts} +430 -1
  16. package/dist/{driver.zod-BJHWEbwG.d.ts → driver.zod-E3C6n0W-.d.ts} +430 -1
  17. package/dist/{index-yvEIvpa3.d.ts → index-BPhGHW32.d.ts} +4 -2
  18. package/dist/{index-DAQcdY6O.d.ts → index-BbtSaxHm.d.ts} +138 -2
  19. package/dist/{index-D9IaDTui.d.ts → index-BpP0MwlW.d.ts} +1 -1
  20. package/dist/{index-C8xlxqpA.d.ts → index-C6p-2KXV.d.ts} +1 -1
  21. package/dist/index-CDN6TRx9.d.mts +765 -0
  22. package/dist/index-CDN6TRx9.d.ts +765 -0
  23. package/dist/{index-wFiQRott.d.mts → index-CVnGe2b8.d.mts} +1 -1
  24. package/dist/{index-Cp6xnrOM.d.mts → index-D-tf4nDV.d.mts} +4 -2
  25. package/dist/{index-C_oDEJoO.d.mts → index-DRCh2NTZ.d.mts} +138 -2
  26. package/dist/{index-DRMAu-1t.d.mts → index-DTCkpGMm.d.mts} +1 -1
  27. package/dist/{index-DOuMlF5h.d.ts → index-DyawwLFZ.d.ts} +31 -2
  28. package/dist/{index-DPlvQwlz.d.mts → index-E1mP_eoE.d.mts} +31 -2
  29. package/dist/index.d.mts +41 -802
  30. package/dist/index.d.ts +41 -802
  31. package/dist/index.js +8656 -8523
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +8656 -8523
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/kernel/index.d.mts +1 -1
  36. package/dist/kernel/index.d.ts +1 -1
  37. package/dist/kernel/index.js +23 -0
  38. package/dist/kernel/index.js.map +1 -1
  39. package/dist/kernel/index.mjs +22 -0
  40. package/dist/kernel/index.mjs.map +1 -1
  41. package/dist/security/index.d.mts +2 -0
  42. package/dist/security/index.d.ts +2 -0
  43. package/dist/security/index.js +666 -0
  44. package/dist/security/index.js.map +1 -0
  45. package/dist/security/index.mjs +616 -0
  46. package/dist/security/index.mjs.map +1 -0
  47. package/dist/system/index.d.mts +1 -1
  48. package/dist/system/index.d.ts +1 -1
  49. package/dist/system/index.js +2 -1
  50. package/dist/system/index.js.map +1 -1
  51. package/dist/system/index.mjs +2 -1
  52. package/dist/system/index.mjs.map +1 -1
  53. package/json-schema/api/AuthEndpoint.json +201 -0
  54. package/json-schema/api/GetDiscoveryResponse.json +42 -0
  55. package/json-schema/data/BaseEngineOptions.json +49 -0
  56. package/json-schema/data/DataEngineAggregateOptions.json +42 -0
  57. package/json-schema/data/DataEngineAggregateRequest.json +42 -0
  58. package/json-schema/data/DataEngineBatchRequest.json +294 -0
  59. package/json-schema/data/DataEngineCountOptions.json +42 -0
  60. package/json-schema/data/DataEngineCountRequest.json +42 -0
  61. package/json-schema/data/DataEngineDeleteOptions.json +42 -0
  62. package/json-schema/data/DataEngineDeleteRequest.json +42 -0
  63. package/json-schema/data/DataEngineFindOneRequest.json +42 -0
  64. package/json-schema/data/DataEngineFindRequest.json +42 -0
  65. package/json-schema/data/DataEngineInsertOptions.json +42 -0
  66. package/json-schema/data/DataEngineInsertRequest.json +42 -0
  67. package/json-schema/data/DataEngineQueryOptions.json +42 -0
  68. package/json-schema/data/DataEngineRequest.json +588 -0
  69. package/json-schema/data/DataEngineUpdateOptions.json +42 -0
  70. package/json-schema/data/DataEngineUpdateRequest.json +42 -0
  71. package/json-schema/kernel/ExecutionContext.json +43 -0
  72. package/package.json +6 -1
@@ -23,6 +23,48 @@
23
23
  "query": {
24
24
  "type": "object",
25
25
  "properties": {
26
+ "context": {
27
+ "type": "object",
28
+ "properties": {
29
+ "userId": {
30
+ "type": "string"
31
+ },
32
+ "tenantId": {
33
+ "type": "string"
34
+ },
35
+ "roles": {
36
+ "default": [],
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "permissions": {
43
+ "default": [],
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ },
49
+ "isSystem": {
50
+ "default": false,
51
+ "type": "boolean"
52
+ },
53
+ "accessToken": {
54
+ "type": "string"
55
+ },
56
+ "transaction": {},
57
+ "traceId": {
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "roles",
63
+ "permissions",
64
+ "isSystem"
65
+ ],
66
+ "additionalProperties": false
67
+ },
26
68
  "filter": {
27
69
  "anyOf": [
28
70
  {
@@ -149,6 +191,48 @@
149
191
  "query": {
150
192
  "type": "object",
151
193
  "properties": {
194
+ "context": {
195
+ "type": "object",
196
+ "properties": {
197
+ "userId": {
198
+ "type": "string"
199
+ },
200
+ "tenantId": {
201
+ "type": "string"
202
+ },
203
+ "roles": {
204
+ "default": [],
205
+ "type": "array",
206
+ "items": {
207
+ "type": "string"
208
+ }
209
+ },
210
+ "permissions": {
211
+ "default": [],
212
+ "type": "array",
213
+ "items": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "isSystem": {
218
+ "default": false,
219
+ "type": "boolean"
220
+ },
221
+ "accessToken": {
222
+ "type": "string"
223
+ },
224
+ "transaction": {},
225
+ "traceId": {
226
+ "type": "string"
227
+ }
228
+ },
229
+ "required": [
230
+ "roles",
231
+ "permissions",
232
+ "isSystem"
233
+ ],
234
+ "additionalProperties": false
235
+ },
152
236
  "filter": {
153
237
  "anyOf": [
154
238
  {
@@ -296,6 +380,48 @@
296
380
  "options": {
297
381
  "type": "object",
298
382
  "properties": {
383
+ "context": {
384
+ "type": "object",
385
+ "properties": {
386
+ "userId": {
387
+ "type": "string"
388
+ },
389
+ "tenantId": {
390
+ "type": "string"
391
+ },
392
+ "roles": {
393
+ "default": [],
394
+ "type": "array",
395
+ "items": {
396
+ "type": "string"
397
+ }
398
+ },
399
+ "permissions": {
400
+ "default": [],
401
+ "type": "array",
402
+ "items": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ "isSystem": {
407
+ "default": false,
408
+ "type": "boolean"
409
+ },
410
+ "accessToken": {
411
+ "type": "string"
412
+ },
413
+ "transaction": {},
414
+ "traceId": {
415
+ "type": "string"
416
+ }
417
+ },
418
+ "required": [
419
+ "roles",
420
+ "permissions",
421
+ "isSystem"
422
+ ],
423
+ "additionalProperties": false
424
+ },
299
425
  "returning": {
300
426
  "default": true,
301
427
  "type": "boolean"
@@ -343,6 +469,48 @@
343
469
  "options": {
344
470
  "type": "object",
345
471
  "properties": {
472
+ "context": {
473
+ "type": "object",
474
+ "properties": {
475
+ "userId": {
476
+ "type": "string"
477
+ },
478
+ "tenantId": {
479
+ "type": "string"
480
+ },
481
+ "roles": {
482
+ "default": [],
483
+ "type": "array",
484
+ "items": {
485
+ "type": "string"
486
+ }
487
+ },
488
+ "permissions": {
489
+ "default": [],
490
+ "type": "array",
491
+ "items": {
492
+ "type": "string"
493
+ }
494
+ },
495
+ "isSystem": {
496
+ "default": false,
497
+ "type": "boolean"
498
+ },
499
+ "accessToken": {
500
+ "type": "string"
501
+ },
502
+ "transaction": {},
503
+ "traceId": {
504
+ "type": "string"
505
+ }
506
+ },
507
+ "required": [
508
+ "roles",
509
+ "permissions",
510
+ "isSystem"
511
+ ],
512
+ "additionalProperties": false
513
+ },
346
514
  "filter": {
347
515
  "anyOf": [
348
516
  {
@@ -406,6 +574,48 @@
406
574
  "options": {
407
575
  "type": "object",
408
576
  "properties": {
577
+ "context": {
578
+ "type": "object",
579
+ "properties": {
580
+ "userId": {
581
+ "type": "string"
582
+ },
583
+ "tenantId": {
584
+ "type": "string"
585
+ },
586
+ "roles": {
587
+ "default": [],
588
+ "type": "array",
589
+ "items": {
590
+ "type": "string"
591
+ }
592
+ },
593
+ "permissions": {
594
+ "default": [],
595
+ "type": "array",
596
+ "items": {
597
+ "type": "string"
598
+ }
599
+ },
600
+ "isSystem": {
601
+ "default": false,
602
+ "type": "boolean"
603
+ },
604
+ "accessToken": {
605
+ "type": "string"
606
+ },
607
+ "transaction": {},
608
+ "traceId": {
609
+ "type": "string"
610
+ }
611
+ },
612
+ "required": [
613
+ "roles",
614
+ "permissions",
615
+ "isSystem"
616
+ ],
617
+ "additionalProperties": false
618
+ },
409
619
  "filter": {
410
620
  "anyOf": [
411
621
  {
@@ -449,6 +659,48 @@
449
659
  "query": {
450
660
  "type": "object",
451
661
  "properties": {
662
+ "context": {
663
+ "type": "object",
664
+ "properties": {
665
+ "userId": {
666
+ "type": "string"
667
+ },
668
+ "tenantId": {
669
+ "type": "string"
670
+ },
671
+ "roles": {
672
+ "default": [],
673
+ "type": "array",
674
+ "items": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ "permissions": {
679
+ "default": [],
680
+ "type": "array",
681
+ "items": {
682
+ "type": "string"
683
+ }
684
+ },
685
+ "isSystem": {
686
+ "default": false,
687
+ "type": "boolean"
688
+ },
689
+ "accessToken": {
690
+ "type": "string"
691
+ },
692
+ "transaction": {},
693
+ "traceId": {
694
+ "type": "string"
695
+ }
696
+ },
697
+ "required": [
698
+ "roles",
699
+ "permissions",
700
+ "isSystem"
701
+ ],
702
+ "additionalProperties": false
703
+ },
452
704
  "filter": {
453
705
  "anyOf": [
454
706
  {
@@ -488,6 +740,48 @@
488
740
  "query": {
489
741
  "type": "object",
490
742
  "properties": {
743
+ "context": {
744
+ "type": "object",
745
+ "properties": {
746
+ "userId": {
747
+ "type": "string"
748
+ },
749
+ "tenantId": {
750
+ "type": "string"
751
+ },
752
+ "roles": {
753
+ "default": [],
754
+ "type": "array",
755
+ "items": {
756
+ "type": "string"
757
+ }
758
+ },
759
+ "permissions": {
760
+ "default": [],
761
+ "type": "array",
762
+ "items": {
763
+ "type": "string"
764
+ }
765
+ },
766
+ "isSystem": {
767
+ "default": false,
768
+ "type": "boolean"
769
+ },
770
+ "accessToken": {
771
+ "type": "string"
772
+ },
773
+ "transaction": {},
774
+ "traceId": {
775
+ "type": "string"
776
+ }
777
+ },
778
+ "required": [
779
+ "roles",
780
+ "permissions",
781
+ "isSystem"
782
+ ],
783
+ "additionalProperties": false
784
+ },
491
785
  "filter": {
492
786
  "anyOf": [
493
787
  {
@@ -2,6 +2,48 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "context": {
6
+ "type": "object",
7
+ "properties": {
8
+ "userId": {
9
+ "type": "string"
10
+ },
11
+ "tenantId": {
12
+ "type": "string"
13
+ },
14
+ "roles": {
15
+ "default": [],
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "permissions": {
22
+ "default": [],
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "isSystem": {
29
+ "default": false,
30
+ "type": "boolean"
31
+ },
32
+ "accessToken": {
33
+ "type": "string"
34
+ },
35
+ "transaction": {},
36
+ "traceId": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": [
41
+ "roles",
42
+ "permissions",
43
+ "isSystem"
44
+ ],
45
+ "additionalProperties": false
46
+ },
5
47
  "filter": {
6
48
  "anyOf": [
7
49
  {
@@ -12,6 +12,48 @@
12
12
  "query": {
13
13
  "type": "object",
14
14
  "properties": {
15
+ "context": {
16
+ "type": "object",
17
+ "properties": {
18
+ "userId": {
19
+ "type": "string"
20
+ },
21
+ "tenantId": {
22
+ "type": "string"
23
+ },
24
+ "roles": {
25
+ "default": [],
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "permissions": {
32
+ "default": [],
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "isSystem": {
39
+ "default": false,
40
+ "type": "boolean"
41
+ },
42
+ "accessToken": {
43
+ "type": "string"
44
+ },
45
+ "transaction": {},
46
+ "traceId": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "roles",
52
+ "permissions",
53
+ "isSystem"
54
+ ],
55
+ "additionalProperties": false
56
+ },
15
57
  "filter": {
16
58
  "anyOf": [
17
59
  {
@@ -2,6 +2,48 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "context": {
6
+ "type": "object",
7
+ "properties": {
8
+ "userId": {
9
+ "type": "string"
10
+ },
11
+ "tenantId": {
12
+ "type": "string"
13
+ },
14
+ "roles": {
15
+ "default": [],
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "permissions": {
22
+ "default": [],
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "isSystem": {
29
+ "default": false,
30
+ "type": "boolean"
31
+ },
32
+ "accessToken": {
33
+ "type": "string"
34
+ },
35
+ "transaction": {},
36
+ "traceId": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": [
41
+ "roles",
42
+ "permissions",
43
+ "isSystem"
44
+ ],
45
+ "additionalProperties": false
46
+ },
5
47
  "filter": {
6
48
  "anyOf": [
7
49
  {
@@ -23,6 +23,48 @@
23
23
  "options": {
24
24
  "type": "object",
25
25
  "properties": {
26
+ "context": {
27
+ "type": "object",
28
+ "properties": {
29
+ "userId": {
30
+ "type": "string"
31
+ },
32
+ "tenantId": {
33
+ "type": "string"
34
+ },
35
+ "roles": {
36
+ "default": [],
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "permissions": {
43
+ "default": [],
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ },
49
+ "isSystem": {
50
+ "default": false,
51
+ "type": "boolean"
52
+ },
53
+ "accessToken": {
54
+ "type": "string"
55
+ },
56
+ "transaction": {},
57
+ "traceId": {
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "roles",
63
+ "permissions",
64
+ "isSystem"
65
+ ],
66
+ "additionalProperties": false
67
+ },
26
68
  "filter": {
27
69
  "anyOf": [
28
70
  {
@@ -12,6 +12,48 @@
12
12
  "query": {
13
13
  "type": "object",
14
14
  "properties": {
15
+ "context": {
16
+ "type": "object",
17
+ "properties": {
18
+ "userId": {
19
+ "type": "string"
20
+ },
21
+ "tenantId": {
22
+ "type": "string"
23
+ },
24
+ "roles": {
25
+ "default": [],
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "permissions": {
32
+ "default": [],
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "isSystem": {
39
+ "default": false,
40
+ "type": "boolean"
41
+ },
42
+ "accessToken": {
43
+ "type": "string"
44
+ },
45
+ "transaction": {},
46
+ "traceId": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "roles",
52
+ "permissions",
53
+ "isSystem"
54
+ ],
55
+ "additionalProperties": false
56
+ },
15
57
  "filter": {
16
58
  "anyOf": [
17
59
  {
@@ -12,6 +12,48 @@
12
12
  "query": {
13
13
  "type": "object",
14
14
  "properties": {
15
+ "context": {
16
+ "type": "object",
17
+ "properties": {
18
+ "userId": {
19
+ "type": "string"
20
+ },
21
+ "tenantId": {
22
+ "type": "string"
23
+ },
24
+ "roles": {
25
+ "default": [],
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "permissions": {
32
+ "default": [],
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "isSystem": {
39
+ "default": false,
40
+ "type": "boolean"
41
+ },
42
+ "accessToken": {
43
+ "type": "string"
44
+ },
45
+ "transaction": {},
46
+ "traceId": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "roles",
52
+ "permissions",
53
+ "isSystem"
54
+ ],
55
+ "additionalProperties": false
56
+ },
15
57
  "filter": {
16
58
  "anyOf": [
17
59
  {
@@ -2,6 +2,48 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "context": {
6
+ "type": "object",
7
+ "properties": {
8
+ "userId": {
9
+ "type": "string"
10
+ },
11
+ "tenantId": {
12
+ "type": "string"
13
+ },
14
+ "roles": {
15
+ "default": [],
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "permissions": {
22
+ "default": [],
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "isSystem": {
29
+ "default": false,
30
+ "type": "boolean"
31
+ },
32
+ "accessToken": {
33
+ "type": "string"
34
+ },
35
+ "transaction": {},
36
+ "traceId": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": [
41
+ "roles",
42
+ "permissions",
43
+ "isSystem"
44
+ ],
45
+ "additionalProperties": false
46
+ },
5
47
  "returning": {
6
48
  "default": true,
7
49
  "type": "boolean"